:root {
  --os-finish: #222b38;
  --os-finish-edge: #3b4a60;
  --os-finish-ink: #f3f6fc;
  --os-accent: #2749ba;
}

.page-top-anchor { position: absolute; inset: 0 auto auto 0; width: 1px; height: 1px; pointer-events: none; }
[data-page-header]:focus { outline: none; }
.page-end { position: relative; width: 100%; overflow: clip; isolation: isolate; background: var(--os-finish); color: var(--os-finish-ink); border-bottom: 1px solid var(--os-finish-edge); }
.page-end::before { content: ''; position: absolute; inset: 0 0 auto; height: 3px; background: #85a4ff; transform-origin: left; }
.page-end-inner { width: min(1280px,calc(100% - 112px)); margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; min-height: 110px; padding-block: 18px; }
.page-end-label { display: inline-flex; align-items: center; gap: 11px; font-size: 18px; font-weight: 780; line-height: 1.35; }
.page-end-label svg { color: #b4c7ff; }
.page-end-up { display: inline-flex; align-items: center; gap: 13px; flex: none; padding: 5px 5px 5px 16px; min-height: 48px; border: 1px solid #60718a; border-radius: 999px; color: var(--os-finish-ink); font-size: 14px; font-weight: 780; line-height: 1.25; text-decoration: none; transition: background-color .2s ease, border-color .2s ease; }
.page-end-up:hover { background: #364357; border-color: #8cacef; }
.page-end-glyph { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #edf2ff; color: #2647ab; }
.floating-top { position: fixed; z-index: 8; inset: auto max(16px,env(safe-area-inset-right)) max(16px,env(safe-area-inset-bottom)) auto; display: grid; place-items: center; width: 52px; height: 52px; padding: 0; border: 1px solid #2c4cb8; border-radius: 50%; background: var(--os-accent); color: #fff; box-shadow: 0 6px 18px #1f337337; transition: background-color .18s ease; }
.floating-top[hidden] { display: none; }
.floating-top:hover { background: #1b368e; }
.page-end-up:focus-visible, .floating-top:focus-visible { outline: 3px solid #8bacff; outline-offset: 4px; }

@media (max-width: 1200px) { .page-end-inner { width: calc(100% - 64px); } }
@media (max-width: 650px) {
  .page-end-inner { width: calc(100% - 32px); min-height: 88px; gap: 10px 14px; flex-wrap: wrap; }
  .page-end-label { font-size: 15px; gap: 8px; }
  .page-end-up { padding-left: 12px; gap: 8px; font-size: 13px; }
  .floating-top { width: 48px; height: 48px; }
}

@keyframes os-sweep { from { transform: scaleX(.07); } to { transform: scaleX(1); } }
@keyframes os-footer-in { from { opacity: .74; transform: translateY(9px); } to { opacity: 1; transform: none; } }
@keyframes os-top-in { from { opacity: 0; transform: translateY(8px) scale(.92); } to { opacity: 1; transform: none; } }

@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 170ms; animation-timing-function: ease-out; }

@media (prefers-reduced-motion: no-preference) {
  .floating-top:not([hidden]) { animation: os-top-in 190ms ease-out both; }
  .page-end-glyph svg, .floating-top svg { transition: transform 180ms ease-out; }
  :is(.page-end-up,.floating-top):hover svg { transform: translateY(-3px); }
  @supports (animation-timeline: view()) {
    .page-end { view-timeline-name: --os-footer-entry; }
    .page-end::before { animation: os-sweep linear both; animation-timeline: --os-footer-entry; animation-range: entry 0% entry 96%; }
    .page-end-inner { animation: os-footer-in ease-out both; animation-timeline: --os-footer-entry; animation-range: entry 10% entry 100%; }
  }
}
@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root), ::view-transition-new(root) { animation: none !important; }
  :root { scroll-behavior: auto; }
}
