/* FlyByMe UI v0.3 — "Altitude": navy-to-sky atmosphere, ticket cards, frosted glass, floating dock. */
@property --p { syntax: '<number>'; inherits: true; initial-value: 0; }

:root {
  color-scheme: light;
  --navy-950: #06122B; --navy-900: #0A1B40; --navy-800: #0F2A63;
  --blue-700: #173FBF; --blue-600: #2358D8; --blue-500: #3B82F6; --sky-400: #6FA8F8; --sky-300: #9CC4FB; --sky-100: #DCEAFE; --sky-50: #EDF4FF;
  --paper: #EDF2F8; --card: #FFFFFF;
  --ink: #0B1630; --ink-2: #3E4C6B; --ink-3: #566383; --line: #D9E2EE; --fill: #DFE8F3;
  --blue: #2358D8; --blue-ink: #1B46C9; --blue-soft: #E3EEFF;
  --green: #0F7A4B; --green-soft: #DDF4E8; --amber: #8F5300; --amber-soft: #FFEFCE; --red: #B42318; --red-soft: #FDE8E6;
  --grad-cta: linear-gradient(100deg, #173FBF 0%, #2A74E8 100%);
  --atmos: linear-gradient(172deg, #06122B 0%, #0B2358 30%, #1B4FC4 64%, #7FB1F4 100%);
  --shadow-card: 0 1px 0 rgba(255,255,255,.9) inset, 0 14px 30px -16px rgba(6,18,43,.30), 0 2px 5px rgba(6,18,43,.06);
  --shadow-pop: 0 2px 5px rgba(6,18,43,.10), 0 22px 44px -12px rgba(6,18,43,.38);
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-drawer: cubic-bezier(.32, .72, 0, 1);
  --ts: 1;
  --d-press: calc(140ms * var(--ts));
  --d-fade: calc(180ms * var(--ts));
  --d-seg: calc(280ms * var(--ts));
  --d-push: calc(380ms * var(--ts));
  --d-pop: calc(280ms * var(--ts));
  --sat: 54px; --sab: 22px;
  --dock-h: 78px;
  --font: 'Figtree', ui-sans-serif, system-ui, -apple-system, 'SF Pro Text', 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: #DCE4EF; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; font-variant-numeric: lining-nums; }
::selection { background: #BFD6FF; color: var(--ink); }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: inherit; touch-action: manipulation; }
input { font: inherit; color: inherit; caret-color: var(--blue); }
h1, h2, h3, p, ul { margin: 0; padding: 0; }
ul { list-style: none; }
:focus-visible { outline: 2px solid var(--sky-400); outline-offset: 2px; border-radius: 10px; }
.tnum { font-variant-numeric: tabular-nums lining-nums; }
.sr { position: absolute; left: -9999px; }

.i { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.i .f { fill: currentColor; stroke: none; }
.i.xs { width: 12px; height: 12px; margin: 0 3px; vertical-align: -1px; }

.press { transition: transform var(--d-press) var(--ease-out), background-color var(--d-fade) ease, box-shadow var(--d-fade) ease, opacity var(--d-fade) ease; }
.press:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) {
  .row-hover:hover { box-shadow: var(--shadow-card), 0 0 0 1px rgba(35,88,216,.16); }
  .circle:hover { background: rgba(255,255,255,.26); }
  .btn-ghost:hover { background: #fff; }
}

/* ---------- stage (desktop preview) ---------- */
.stage { min-height: 100dvh; display: grid; grid-template-columns: minmax(230px, 290px) auto; justify-content: center; align-items: center; gap: 64px; padding: 20px 28px; }
.panel { display: flex; flex-direction: column; gap: 22px; align-self: center; }
.panel h1 { font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.panel p { font-size: 14px; line-height: 1.5; color: var(--ink-2); max-width: 30ch; }
.jump { display: grid; gap: 6px; }
.jump button { display: flex; align-items: center; justify-content: space-between; padding: 11px 14px; border-radius: 14px; font-weight: 600; font-size: 14.5px; background: rgba(255,255,255,.55); transition: background-color var(--d-fade) ease, transform var(--d-press) var(--ease-out); }
.jump button:active { transform: scale(.98); }
.jump button[aria-current="true"] { background: var(--navy-900); color: #fff; }
@media (hover: hover) { .jump button:not([aria-current="true"]):hover { background: #fff; } }
.toggles { display: grid; gap: 10px; font-size: 14px; font-weight: 600; }
.toggles label { display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; }
.sw { appearance: none; width: 44px; height: 26px; border-radius: 99px; background: #B9C6D8; position: relative; transition: background-color var(--d-fade) ease; cursor: pointer; flex: none; margin: 0; }
.sw::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform var(--d-fade) var(--ease-out); }
.sw:checked { background: var(--blue); }
.sw:checked::after { transform: translateX(18px); }
.panel small { font-size: 12.5px; color: var(--ink-2); line-height: 1.45; max-width: 34ch; }

.device-wrap { position: relative; }
.device { width: 414px; height: 868px; padding: 12px; border-radius: 64px; background: #0C1322; outline: 2px solid #2A3550; outline-offset: -2px; box-shadow: 0 40px 80px -30px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.14); transform-origin: top left; position: relative; }
.island { position: absolute; z-index: 300; top: 24px; left: 50%; width: 118px; height: 34px; margin-left: -59px; background: #000; border-radius: 99px; pointer-events: none; }
.screen { position: relative; width: 390px; height: 844px; overflow: hidden; border-radius: 52px; background: var(--paper); isolation: isolate; }

.statusbar { position: absolute; z-index: 290; top: 0; left: 0; right: 0; height: 54px; padding: 18px 34px 0 42px; display: flex; justify-content: space-between; align-items: flex-start; font-weight: 700; font-size: 16px; pointer-events: none; color: #fff; }
.statusbar::before { content: ''; position: absolute; inset: 0; z-index: -1; background: rgba(8,22,56,.78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); opacity: 0; transition: opacity var(--d-fade) ease; }
.sb-solid .statusbar::before { opacity: 1; }
.statusbar .sb-r { display: flex; gap: 6px; align-items: center; margin-top: 2px; }
.statusbar svg { height: 12px; width: auto; fill: currentColor; }

.native .stage { display: block; padding: 0; min-height: 0; }
.native .panel { display: none; }
.native .device { width: 100%; height: 100dvh; padding: 0; border-radius: 0; background: none; outline: 0; box-shadow: none; transform: none !important; }
.native .screen { width: 100%; height: 100%; border-radius: 0; }
.native .island, .native .statusbar { display: none; }
.native { --sat: max(env(safe-area-inset-top), 14px); --sab: max(env(safe-area-inset-bottom), 10px); --dock-h: calc(60px + var(--sab) + 4px); }

/* ---------- shared bits ---------- */
.mark { width: var(--s, 44px); height: var(--s, 44px); border-radius: 50%; background: var(--c); color: #fff; display: inline-grid; place-items: center; flex: none; box-shadow: inset 0 0 0 1px rgba(255,255,255,.2), 0 2px 6px -2px rgba(6,18,43,.4); }
.mark b { font-size: calc(var(--s, 44px) * .34); font-weight: 800; letter-spacing: .02em; }
.pill { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 99px; font-size: 12px; font-weight: 700; line-height: 1.2; white-space: nowrap; }
.pill.ok { background: var(--green-soft); color: var(--green); }
.pill.board, .pill.soon { background: var(--blue-soft); color: var(--blue-ink); }
.pill.warn { background: var(--amber-soft); color: var(--amber); }
.pill.bad { background: var(--red-soft); color: var(--red); }
.pill.done { background: var(--fill); color: var(--ink-2); }
.glass { background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.26); box-shadow: 0 1px 0 rgba(255,255,255,.22) inset, 0 8px 20px -10px rgba(6,18,43,.5); }
.circle { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.28); box-shadow: 0 1px 0 rgba(255,255,255,.22) inset, 0 8px 18px -10px rgba(6,18,43,.5); color: #fff; flex: none; position: relative; }
.circle[aria-pressed="true"] { color: #FF8A8A; }
.circle[aria-pressed="true"] .i { fill: currentColor; }
.circle .dot { position: absolute; top: 10px; right: 11px; width: 9px; height: 9px; border-radius: 50%; background: #FF5A5F; box-shadow: 0 0 0 2px rgba(14,40,100,.9); }
.btn { display: flex; align-items: center; justify-content: center; gap: 10px; height: 56px; width: 100%; border-radius: 99px; font-weight: 700; font-size: 17px; letter-spacing: -.005em; }
.btn-cta { background: var(--grad-cta); color: #fff; box-shadow: 0 1px 0 rgba(255,255,255,.28) inset, 0 14px 26px -12px rgba(6,18,43,.5); }
.btn-ghost { background: rgba(255,255,255,.82); color: var(--ink); box-shadow: 0 1px 0 #fff inset, 0 10px 22px -14px rgba(6,18,43,.35), 0 0 0 1px rgba(255,255,255,.7); }
.btn-stack { display: grid; gap: 12px; margin-top: 18px; }
.card { background: linear-gradient(180deg, #fff, #F8FBFF); border-radius: 24px; box-shadow: var(--shadow-card); }

.seg { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; border-radius: 99px; padding: 4px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.26); }
.seg-ind { position: absolute; top: 4px; bottom: 4px; left: 0; width: var(--w, 0px); transform: translateX(var(--x, 0px)); background: #fff; border-radius: 99px; box-shadow: 0 6px 14px -6px rgba(6,18,43,.5); transition: transform var(--d-seg) var(--ease-drawer), width var(--d-seg) var(--ease-drawer); }
.seg.init .seg-ind { transition: none; }
.seg button { position: relative; z-index: 1; text-align: center; padding: 9px 4px; min-height: 44px; font-weight: 700; font-size: 14px; color: rgba(255,255,255,.86); transition: color var(--d-fade) ease; border-radius: 99px; }
.seg button[aria-selected="true"] { color: var(--navy-900); }
.seg.light { background: var(--fill); border-color: transparent; backdrop-filter: none; }
.seg.light .seg-ind { background: var(--grad-cta); box-shadow: 0 8px 16px -8px rgba(6,18,43,.5); }
.seg.light button { color: var(--ink-2); }
.seg.light button[aria-selected="true"] { color: #fff; }

.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 16px; margin: 0 -16px; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; padding: 9px 16px; min-height: 44px; border-radius: 99px; font-size: 14px; font-weight: 700; color: rgba(255,255,255,.92); background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.26); transition: background-color var(--d-fade) ease, color var(--d-fade) ease, transform var(--d-press) var(--ease-out); }
.chip:active { transform: scale(.97); }
.chip[aria-pressed="true"] { background: #fff; color: var(--navy-900); border-color: #fff; box-shadow: 0 8px 16px -8px rgba(6,18,43,.5); }

/* ---------- layers, atmosphere, scroll ---------- */
.layer { position: absolute; inset: 0; }
.roots { z-index: 1; }
.root { position: absolute; inset: 0; z-index: 0; isolation: isolate; display: flex; flex-direction: column; background: var(--paper); opacity: 0; visibility: hidden; transition: opacity var(--d-fade) ease, visibility 0s linear var(--d-fade); }
.root.active { opacity: 1; visibility: visible; transition: opacity var(--d-fade) ease; }
.atmos { z-index: -1; position: absolute; top: 0; left: 0; right: 0; height: 430px; background: var(--atmos); -webkit-mask-image: linear-gradient(#000 58%, transparent 100%); mask-image: linear-gradient(#000 58%, transparent 100%); pointer-events: none; overflow: hidden; }
.atmos::before { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(128deg, rgba(255,255,255,.055) 0 1px, transparent 1px 7px); }
.atmos::after { content: ''; position: absolute; inset: -20% -10% auto auto; width: 90%; height: 80%; background: radial-gradient(closest-side, rgba(127,177,244,.55), rgba(127,177,244,0)); }
.atmos.short { height: 250px; }
.scroll { flex: 1; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; scrollbar-width: none; -webkit-overflow-scrolling: touch; position: relative; }
.scroll::-webkit-scrollbar { display: none; }
.root .scroll { padding: calc(var(--sat) + 8px) 16px calc(var(--dock-h) + 28px); }
.ptitle { display: flex; align-items: center; justify-content: space-between; padding: 6px 4px 16px; color: #fff; }
.ptitle h1 { font-size: 32px; font-weight: 800; letter-spacing: -.03em; }
.sec-h { display: flex; align-items: center; justify-content: space-between; margin: 26px 4px 12px; font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.sec-h.on-dark { color: #fff; }
.sec-h a, .sec-h button { font-size: 14px; font-weight: 700; color: var(--blue-ink); min-height: 44px; padding: 0 2px; }

/* floating dock */
.dock { position: absolute; z-index: 5; left: 0; right: 0; margin: 0 auto; bottom: calc(var(--sab) + 6px); width: fit-content; max-width: calc(100% - 28px); display: flex; gap: 2px; padding: 7px; border-radius: 99px; background: rgba(255,255,255,.74); backdrop-filter: blur(22px) saturate(1.6); -webkit-backdrop-filter: blur(22px) saturate(1.6); box-shadow: 0 1px 0 #fff inset, 0 0 0 1px rgba(255,255,255,.7), 0 22px 40px -14px rgba(6,18,43,.5); }
.tab { display: flex; align-items: center; gap: 0; height: 50px; min-width: 50px; padding: 0 13px; justify-content: center; border-radius: 99px; color: var(--ink-3); font-weight: 700; font-size: 14.5px; transition: background-color var(--d-seg) var(--ease-out), color var(--d-fade) ease, padding var(--d-seg) var(--ease-drawer), transform var(--d-press) var(--ease-out); }
.tab:active { transform: scale(.94); }
.tab .i { width: 24px; height: 24px; }
.tab span { display: block; max-width: 0; opacity: 0; overflow: hidden; white-space: nowrap; transition: max-width var(--d-seg) var(--ease-drawer), opacity var(--d-fade) ease, margin var(--d-seg) var(--ease-drawer); }
.tab[aria-current="page"] { background: var(--grad-cta); color: #fff; padding: 0 18px 0 14px; box-shadow: 0 1px 0 rgba(255,255,255,.3) inset, 0 12px 22px -10px rgba(6,18,43,.55); }
.tab[aria-current="page"] span { max-width: 84px; opacity: 1; margin-left: 8px; }

.rise { animation: rise calc(300ms * var(--ts)) var(--ease-out) backwards; animation-delay: calc(var(--i, 0) * 40ms * var(--ts)); }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- ticket card (the signature surface) ---------- */
.ticket { position: relative; display: block; width: 100%; text-align: left; filter: drop-shadow(0 18px 20px rgba(6,18,43,.20)) drop-shadow(0 2px 3px rgba(6,18,43,.10)); }
.t-top, .t-bot { position: relative; }
.t-top { padding: 16px 18px 16px; border-radius: 28px 28px 0 0; background: linear-gradient(180deg, rgba(221,235,255,.94) 0%, rgba(236,244,255,.96) 100%); -webkit-mask: radial-gradient(circle 12px at 0 100%, #0000 97%, #000) left / 51% 100% no-repeat, radial-gradient(circle 12px at 100% 100%, #0000 97%, #000) right / 51% 100% no-repeat; mask: radial-gradient(circle 12px at 0 100%, #0000 97%, #000) left / 51% 100% no-repeat, radial-gradient(circle 12px at 100% 100%, #0000 97%, #000) right / 51% 100% no-repeat; }
.t-bot { padding: 14px 18px 16px; border-radius: 0 0 28px 28px; background: linear-gradient(180deg, #F4F9FF 0%, #FFFDF4 100%); -webkit-mask: radial-gradient(circle 12px at 0 0, #0000 97%, #000) left / 51% 100% no-repeat, radial-gradient(circle 12px at 100% 0, #0000 97%, #000) right / 51% 100% no-repeat; mask: radial-gradient(circle 12px at 0 0, #0000 97%, #000) left / 51% 100% no-repeat, radial-gradient(circle 12px at 100% 0, #0000 97%, #000) right / 51% 100% no-repeat; }
.t-mid { position: relative; padding: 14px 18px 16px; background: linear-gradient(180deg, #ECF4FF 0%, #F4F9FF 100%); -webkit-mask: radial-gradient(circle 12px at 0 0, #0000 97%, #000) left top / 51% 51% no-repeat, radial-gradient(circle 12px at 100% 0, #0000 97%, #000) right top / 51% 51% no-repeat, radial-gradient(circle 12px at 0 100%, #0000 97%, #000) left bottom / 51% 51% no-repeat, radial-gradient(circle 12px at 100% 100%, #0000 97%, #000) right bottom / 51% 51% no-repeat; mask: radial-gradient(circle 12px at 0 0, #0000 97%, #000) left top / 51% 51% no-repeat, radial-gradient(circle 12px at 100% 0, #0000 97%, #000) right top / 51% 51% no-repeat, radial-gradient(circle 12px at 0 100%, #0000 97%, #000) left bottom / 51% 51% no-repeat, radial-gradient(circle 12px at 100% 100%, #0000 97%, #000) right bottom / 51% 51% no-repeat; }
.t-mid::before, .t-bot::before { content: ''; position: absolute; left: 22px; right: 22px; top: -1px; border-top: 2px dashed rgba(40,80,160,.26); }
.t-head { display: flex; align-items: center; gap: 10px; }
.t-air { flex: 1; min-width: 0; font-style: italic; font-weight: 800; font-size: 19px; letter-spacing: -.015em; color: var(--c, var(--blue-ink)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t-route { display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 6px; margin-top: 14px; }
.t-end { display: grid; gap: 1px; min-width: 0; }
.t-end.r { text-align: right; justify-items: end; }
.t-time { font-size: 13px; font-weight: 700; color: var(--ink-2); }
.t-code { font-size: 32px; line-height: 1.05; font-weight: 800; letter-spacing: -.03em; }
.t-city { font-size: 12.5px; font-weight: 600; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t-arcw { display: grid; justify-items: center; gap: 2px; padding-bottom: 4px; }
.t-arc { --p: 0; position: relative; width: 112px; height: 40px; transition: --p calc(1200ms * var(--ts)) var(--ease-out); }
.t-arc svg { position: absolute; inset: 0; width: 112px; height: 40px; overflow: visible; }
.t-arc .base { fill: none; stroke: #7C93BE; stroke-width: 2; stroke-linecap: round; stroke-dasharray: .1 5.4; }
.t-arc .done { fill: none; stroke: var(--blue); stroke-width: 2.6; stroke-linecap: round; stroke-dasharray: calc(var(--p) * 100) 100; }
.t-plane { position: absolute; left: 0; top: 0; width: 22px; height: 22px; color: var(--navy-900); offset-path: path('M4 32 Q56 -8 108 32'); offset-distance: calc(var(--p) * 100%); offset-rotate: auto 45deg; display: block; }
.t-plane .i { width: 22px; height: 22px; }
.t-plane .i path { fill: currentColor; stroke: #fff; stroke-width: 1.3; paint-order: stroke; }
.t-arc.static { --p: .5; }
.t-arc.go { --p: var(--target); }
.t-dur { font-size: 12.5px; font-weight: 700; color: var(--ink-2); }
.t-foot { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 10px; }
.t-cell .lab { font-size: 12px; font-weight: 600; color: var(--ink-3); }
.t-cell .val { font-size: 15px; font-weight: 700; margin-top: 1px; }
.t-cell.c { text-align: center; }
.t-cell.r { text-align: right; }
.t-cell .val.est { color: var(--amber); }
.ticket.compact .t-top { padding: 12px 16px 12px; }
.ticket.compact .t-bot { padding: 11px 16px 12px; }
.ticket.compact .t-route { margin-top: 10px; }
.ticket.compact .t-code { font-size: 26px; }
.ticket.compact .t-air { font-size: 16px; }
.ticket.compact .t-arc { transform: scale(.88); transform-origin: center; margin: 0 -6px; }
.ticket.compact .t-foot { align-items: center; }
.ticket.press:active { transform: scale(.985); }
@media (hover: hover) and (pointer: fine) { .ticket.row-hover:hover { box-shadow: none; transform: translateY(-1px); } }

/* ---------- home (trips) ---------- */
.hd { display: flex; align-items: center; gap: 12px; padding: 6px 4px 18px; color: #fff; }
.hd .av { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 17px; background: linear-gradient(145deg, #7FB1F4, #2358D8); border: 2px solid rgba(255,255,255,.6); box-shadow: 0 8px 18px -8px rgba(6,18,43,.6); flex: none; }
.hd .t { flex: 1; min-width: 0; }
.hd small { display: block; font-size: 14px; font-weight: 500; opacity: .86; }
.hd b { font-size: 19px; font-weight: 800; letter-spacing: -.015em; }
.track { padding: 16px; border-radius: 28px; background: linear-gradient(180deg, #fff, #F6FAFF); box-shadow: var(--shadow-card); margin-top: 20px; }
.trk-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.trk-h h2 { font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.trk-mode { font-size: 14px; font-weight: 700; color: var(--blue-ink); min-height: 44px; padding: 0 2px; }
.trk-row { display: grid; grid-template-columns: minmax(0, 1fr) 52px; gap: 10px; align-items: center; }
.trk-ins input { width: 100%; min-width: 0; height: 52px; padding: 0 16px; border: 0; border-radius: 18px; background: #EEF3FA; box-shadow: inset 0 0 0 1px var(--line); font-size: 16px; font-weight: 700; color: var(--ink); outline: 0; text-transform: uppercase; transition: box-shadow var(--d-fade) ease, background-color var(--d-fade) ease; }
.trk-ins.two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.trk-ins input::placeholder { color: #5F6B88; font-weight: 600; text-transform: none; }
.trk-ins input:focus, .trk-date input:focus { background: #fff; box-shadow: inset 0 0 0 2px var(--blue); }
.trk-ins input.bad, .trk-date input.bad { box-shadow: inset 0 0 0 2px var(--red); }
.trk-go { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--grad-cta); box-shadow: 0 1px 0 rgba(255,255,255,.3) inset, 0 12px 20px -10px rgba(6,18,43,.55); }
.trk-go .i { width: 22px; height: 22px; }
.trk-date { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; font-size: 13.5px; font-weight: 700; color: var(--ink-2); }
.trk-date input { height: 44px; padding: 0 12px; border: 0; border-radius: 14px; background: #EEF3FA; box-shadow: inset 0 0 0 1px var(--line); font-size: 15px; font-weight: 700; color: var(--ink); outline: 0; }
.track .err { margin-top: 8px; font-size: 13px; font-weight: 600; color: var(--red); }
.track .err:empty { display: none; }
.tlist { display: grid; gap: 14px; }
.empty { text-align: center; padding: 40px 20px; color: var(--ink-3); font-size: 15px; line-height: 1.5; }
.empty b { display: block; color: var(--ink); font-size: 17px; margin-bottom: 4px; }
.sw-seg { margin: 4px 0 14px; }

/* ---------- welcome ---------- */
.welcome { z-index: 100; background: #0B2150; overflow: hidden; transition: opacity calc(520ms * var(--ts)) var(--ease-out), transform calc(620ms * var(--ts)) var(--ease-out), visibility 0s linear calc(620ms * var(--ts)); will-change: transform; }
.welcome.gone { opacity: 0; transform: scale(1.05) translateY(-2%); visibility: hidden; pointer-events: none; }
.welcome .scene { position: absolute; inset: 0; width: 100%; height: 100%; }
.welcome .copy { position: absolute; z-index: 2; left: 28px; right: 28px; top: calc(var(--sat) + 38px); color: #fff; }
.welcome .brand { width: 40px; height: 40px; color: #fff; margin-bottom: 14px; }
.welcome .brand .i { width: 40px; height: 40px; }
.welcome h1 { font-size: 54px; line-height: 1; font-weight: 800; letter-spacing: -.035em; }
.welcome .tag { margin-top: 16px; font-size: 19px; line-height: 1.35; font-weight: 600; max-width: 14ch; }
.welcome .demo { margin-top: 14px; display: inline-block; padding: 5px 11px; border-radius: 99px; font-size: 12px; font-weight: 700; }
.welcome .cta { position: absolute; z-index: 2; left: 28px; right: 28px; bottom: calc(var(--sab) + 32px); display: grid; gap: 18px; justify-items: center; }
.welcome .cta::before { content: ''; position: absolute; z-index: -1; left: -28px; right: -28px; bottom: calc(-1 * var(--sab) - 32px); height: 240px; background: linear-gradient(to top, rgba(6,18,43,.7), rgba(6,18,43,0)); }
.welcome .go { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; height: 58px; border-radius: 99px; background: #fff; color: var(--navy-900); font-weight: 700; font-size: 17px; box-shadow: 0 14px 30px -10px rgba(6,18,43,.7); }
.welcome .login { color: #fff; font-size: 15px; font-weight: 500; padding: 14px 14px; min-height: 44px; }
.welcome .login b { font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.welcome .in { animation: rise calc(700ms * var(--ts)) var(--ease-out) backwards; animation-delay: calc(var(--d, 0) * 1ms * var(--ts)); }
.wing { animation: wing calc(9s * var(--ts)) ease-in-out infinite alternate; transform-origin: 390px 420px; }
@keyframes wing { from { transform: translate(0, 0) rotate(0deg); } to { transform: translate(-4px, -9px) rotate(-.9deg); } }
.drift-a { animation: drift calc(46s * var(--ts)) linear infinite alternate; }
.drift-b { animation: drift calc(34s * var(--ts)) linear infinite alternate-reverse; }
.drift-c { animation: drift calc(26s * var(--ts)) ease-in-out infinite alternate; }
@keyframes drift { from { transform: translateX(-14px); } to { transform: translateX(18px); } }

/* ---------- live map ---------- */
.map-top { padding: calc(var(--sat) + 4px) 16px 0; display: grid; gap: 14px; position: relative; }
.searchbar { display: flex; align-items: center; gap: 10px; height: 48px; flex: 1; padding: 0 16px; border-radius: 99px; color: rgba(255,255,255,.82); font-size: 15px; font-weight: 500; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.28); box-shadow: 0 1px 0 rgba(255,255,255,.22) inset; }
.searchbar .i { width: 20px; height: 20px; }
.avatar { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: linear-gradient(145deg, #7FB1F4, #2358D8); color: #fff; border: 2px solid rgba(255,255,255,.6); flex: none; }
.map-title { display: flex; align-items: center; justify-content: space-between; color: #fff; }
.map-title h1 { font-size: 30px; font-weight: 800; letter-spacing: -.03em; }
.map-wrap { position: relative; flex: 1; margin: 14px 16px calc(var(--dock-h) + 6px); border-radius: 30px; overflow: hidden; box-shadow: 0 0 0 1px rgba(255,255,255,.6), 0 26px 44px -22px rgba(6,18,43,.55); background: #DCE8F2; isolation: isolate; }
#map { position: absolute; inset: 0; background: #DCE8F2; font-family: var(--font); }
.attrib { position: absolute; z-index: 400; left: 10px; bottom: 6px; font-size: 9px; color: #4B5870; background: rgba(255,255,255,.75); padding: 1px 5px; border-radius: 6px; pointer-events: none; }
.demo-tag { position: absolute; z-index: 450; left: 12px; top: 12px; padding: 5px 11px; border-radius: 99px; font-size: 12px; font-weight: 700; color: var(--ink-2); background: rgba(255,255,255,.9); backdrop-filter: blur(8px); pointer-events: none; }
.ac-wrap { width: 30px; height: 30px; display: grid; place-items: center; background: none; border: 0; padding: 0; cursor: pointer; border-radius: 50%; }
.maplibregl-canvas { outline: none; }
.ac { width: 28px; height: 28px; display: grid; place-items: center; transform: rotate(var(--r, 0deg)); transition: opacity var(--d-fade) ease; filter: drop-shadow(0 2px 2px rgba(6,18,43,.3)); }
.ac svg { width: 26px; height: 26px; fill: var(--ac-c, #12285A); }
.ac.tracked { --ac-c: var(--blue); }
.ac.tracked svg { width: 30px; height: 30px; }
.ac.sel svg { fill: var(--blue); }
.ac.off { opacity: 0; pointer-events: none; }
.ac.sel::before { content: ''; position: absolute; width: 38px; height: 38px; border-radius: 50%; background: rgba(35,88,216,.14); box-shadow: inset 0 0 0 1.5px rgba(35,88,216,.38); transform: rotate(calc(var(--r, 0deg) * -1)); }
.fcard { position: absolute; z-index: 450; left: 0; top: 0; pointer-events: none; will-change: transform; }
.fcard-in { pointer-events: auto; width: 192px; padding: 11px 13px 12px; border-radius: 18px; background: rgba(255,255,255,.92); backdrop-filter: blur(14px); box-shadow: var(--shadow-pop); display: grid; grid-template-columns: auto 1fr; column-gap: 9px; align-items: center; transform-origin: 50% 100%; position: relative; transition: opacity var(--d-fade) ease, transform var(--d-fade) var(--ease-out); text-align: left; }
.fcard-in::after { content: ''; position: absolute; left: calc(50% - 6px + var(--ax, 0px)); bottom: -5px; width: 12px; height: 12px; background: rgba(255,255,255,.92); transform: rotate(45deg); border-radius: 0 0 3px 0; }
.fcard.hidden .fcard-in { opacity: 0; transform: scale(.94); pointer-events: none; }
.fcard b { font-size: 15px; font-weight: 800; display: block; line-height: 1.15; }
.fcard span.rt { font-size: 12.5px; color: var(--ink-2); font-weight: 600; }
.fcard .meta { grid-column: 1 / -1; margin-top: 4px; font-size: 12px; color: var(--ink-3); font-weight: 600; }
.fcard .mark { --s: 30px; }
.locate { position: absolute; z-index: 450; right: 12px; bottom: 12px; width: 48px; height: 48px; border-radius: 50%; background: rgba(255,255,255,.94); display: grid; place-items: center; box-shadow: var(--shadow-pop); color: var(--blue); }

/* ---------- flights list ---------- */
.frow { display: grid; grid-template-columns: minmax(0, 1fr) auto; width: 100%; margin-bottom: 12px; text-align: left; filter: drop-shadow(0 12px 14px rgba(6,18,43,.16)) drop-shadow(0 1px 2px rgba(6,18,43,.10)); }
.fr-main, .fr-stub { position: relative; display: flex; align-items: center; min-width: 0; }
.fr-main { gap: 12px; padding: 14px 16px 14px 14px; border-radius: 24px 0 0 24px; background: linear-gradient(180deg, #E4EFFF, #F1F7FF); -webkit-mask: radial-gradient(circle 10px at 100% 0, #0000 97%, #000) top / 100% 51% no-repeat, radial-gradient(circle 10px at 100% 100%, #0000 97%, #000) bottom / 100% 51% no-repeat; mask: radial-gradient(circle 10px at 100% 0, #0000 97%, #000) top / 100% 51% no-repeat, radial-gradient(circle 10px at 100% 100%, #0000 97%, #000) bottom / 100% 51% no-repeat; }
.fr-stub { flex-direction: column; justify-content: center; align-items: flex-end; gap: 7px; padding: 14px 16px 14px 14px; border-radius: 0 24px 24px 0; background: linear-gradient(180deg, #F4F9FF, #FFFDF4); min-width: 128px; -webkit-mask: radial-gradient(circle 10px at 0 0, #0000 97%, #000) top / 100% 51% no-repeat, radial-gradient(circle 10px at 0 100%, #0000 97%, #000) bottom / 100% 51% no-repeat; mask: radial-gradient(circle 10px at 0 0, #0000 97%, #000) top / 100% 51% no-repeat, radial-gradient(circle 10px at 0 100%, #0000 97%, #000) bottom / 100% 51% no-repeat; }
.fr-stub::before { content: ''; position: absolute; left: -1px; top: 14px; bottom: 14px; border-left: 2px dashed rgba(40,80,160,.26); }
.frow .id { display: block; font-size: 17px; font-weight: 800; letter-spacing: -.01em; }
.frow .rt { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: var(--ink-2); margin-top: 1px; }
.frow .rt .i { width: 14px; height: 14px; color: var(--ink-3); }
.frow .al { display: block; font-size: 12.5px; color: var(--ink-3); margin-top: 2px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.frow .times { font-size: 12.5px; font-weight: 700; color: var(--ink-2); }
.frow .times em { font-style: normal; color: var(--amber); font-weight: 800; }
@media (hover: hover) and (pointer: fine) { .frow.row-hover:hover { box-shadow: none; transform: translateY(-1px); } }

/* ---------- pushed screens ---------- */
.pushed { z-index: 20; background: var(--paper); overflow: hidden; box-shadow: -14px 0 34px rgba(6,18,43,.14); will-change: transform; }
.pushed .scroll { position: absolute; inset: 0; padding: calc(var(--sat) + 62px) 16px calc(var(--sab) + 28px); }
.root .pushed { z-index: 0; box-shadow: none; }
.nav { position: absolute; z-index: 6; top: 0; left: 0; right: 0; padding: calc(var(--sat) + 4px) 16px 8px; display: flex; align-items: center; gap: 10px; pointer-events: none; color: #fff; }
.nav > * { position: relative; pointer-events: auto; }
.nav .ttl { flex: 1; text-align: center; font-weight: 800; font-size: 17px; letter-spacing: -.01em; pointer-events: none; }
.nav .acts { display: flex; gap: 10px; min-width: 44px; justify-content: flex-end; }
.nav .ph { width: 44px; }

.live { margin-top: 16px; padding: 18px; }
.live-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.live-h .loc { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink-3); }
.live-h .loc .i { width: 16px; height: 16px; }
.live h3, .card h3 { font-size: 18px; font-weight: 800; letter-spacing: -.015em; }
.prog-bar { --p: 0; position: relative; height: 8px; margin-top: 14px; border-radius: 99px; background: #D5E2F7; overflow: hidden; transition: --p calc(1200ms * var(--ts)) var(--ease-out); }
.prog-bar.go { --p: var(--target); }
.prog-fill { position: absolute; inset: 0; background: var(--grad-cta); border-radius: 99px; transform-origin: left center; transform: scaleX(var(--p)); }
.prog-meta { display: flex; justify-content: space-between; align-items: baseline; margin-top: 14px; }
.prog-meta b { display: block; font-weight: 800; font-size: 16px; color: var(--blue-ink); }
.prog-meta span { font-size: 13.5px; color: var(--ink-2); font-weight: 600; }
.prog-meta .r { text-align: right; font-weight: 800; color: var(--ink); font-size: 16px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.stats > div + div { padding-left: 14px; border-left: 1px solid var(--line); }
.stats .lab { font-size: 12.5px; font-weight: 600; color: var(--ink-3); }
.stats .val { font-size: 20px; font-weight: 800; letter-spacing: -.015em; margin-top: 4px; white-space: nowrap; }
.link-row { display: flex; align-items: center; gap: 12px; width: 100%; margin-top: 14px; padding: 14px; border-radius: 24px; background: linear-gradient(180deg, #fff, #F6FAFF); box-shadow: var(--shadow-card); }
.link-row .ico { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue); flex: none; }
.link-row b { display: block; font-size: 15.5px; font-weight: 700; }
.link-row small { font-size: 13px; color: var(--ink-3); font-weight: 500; }
.link-row .t { flex: 1; }
.link-row > .i { color: var(--ink-3); width: 18px; height: 18px; }
.swt { appearance: none; width: 50px; height: 30px; border-radius: 99px; background: #B9C6D8; position: relative; flex: none; margin: 0; cursor: pointer; transition: background-color var(--d-fade) ease; }
.swt::after { content: ''; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 2px 4px rgba(0,0,0,.25); transition: transform var(--d-fade) var(--ease-out); }
.swt:checked { background: var(--blue); }
.swt:checked::after { transform: translateX(20px); }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 14px; padding: 18px; margin-top: 16px; }
.facts .lab { font-size: 12.5px; font-weight: 600; color: var(--ink-3); }
.facts .val { font-size: 20px; font-weight: 800; letter-spacing: -.015em; margin-top: 2px; }
.facts .r { text-align: right; }

/* boarding pass */

/* airport */
.apt .hero { position: absolute; top: 0; left: 0; right: 0; height: 310px; overflow: hidden; background: #0B2150; will-change: transform; }
.apt .hero .scene { display: block; width: 100%; height: 100%; }
.apt .hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(6,18,43,.55), rgba(6,18,43,0) 38%); }
.apt .scroll { padding: 0; }
.spacer { height: 246px; }
.sheet { position: relative; background: var(--paper); border-radius: 32px 32px 0 0; padding: 24px 18px calc(var(--sab) + 32px); min-height: calc(100% - 246px); box-shadow: 0 -16px 34px -18px rgba(6,18,43,.5); }
.apt-root .sheet { padding-bottom: calc(var(--dock-h) + 32px); }
.apt-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.apt-head h1 { font-size: 48px; line-height: 1; font-weight: 800; letter-spacing: -.04em; }
.apt-head .city { font-size: 22px; font-weight: 800; margin-top: 4px; letter-spacing: -.01em; }
.apt-head .fine { font-size: 13.5px; color: var(--ink-3); font-weight: 500; margin-top: 6px; }
.wx { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; padding: 16px 18px; }
.wx .l { display: flex; align-items: center; gap: 14px; }
.wx .sunico { color: #E8A21D; }
.wx .sunico .i { width: 38px; height: 38px; stroke-width: 1.6; }
.wx .temp { font-size: 22px; font-weight: 800; }
.wx .cond { font-size: 13px; color: var(--ink-3); font-weight: 600; }
.wx .r { text-align: right; }
.wx .r small { font-size: 12px; color: var(--ink-3); font-weight: 600; display: block; }
.wx .r b { font-size: 22px; font-weight: 800; }
.apt .sec-h { margin: 24px 2px 12px; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tile { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 22px; background: linear-gradient(180deg, #E1ECFF, #EEF4FF); box-shadow: 0 1px 0 #fff inset, 0 0 0 1px rgba(35,88,216,.1); }
.tile .ti { width: 42px; height: 42px; border-radius: 14px; background: #fff; display: grid; place-items: center; color: var(--blue); flex: none; box-shadow: 0 6px 12px -8px rgba(6,18,43,.5); }
.tile small { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.tile b { font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.tmap { width: 100%; height: auto; display: block; border-radius: 18px; }

/* ---------- search ---------- */
.search { z-index: 60; background: var(--paper); display: flex; flex-direction: column; transition: opacity var(--d-fade) ease, transform var(--d-pop) var(--ease-out), visibility 0s linear var(--d-pop); }
.search.closed { opacity: 0; transform: translateY(18px); visibility: hidden; pointer-events: none; }
.search .scroll { padding: calc(var(--sat) + 8px) 16px calc(var(--sab) + 24px); }
.search .ptitle { padding-bottom: 14px; }
.search .cancel { font-size: 16px; font-weight: 700; color: #fff; padding: 12px 6px; min-height: 44px; }
.field { display: flex; align-items: center; gap: 10px; height: 54px; padding: 0 14px; border-radius: 20px; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.3); box-shadow: 0 1px 0 rgba(255,255,255,.22) inset; transition: box-shadow var(--d-fade) ease, background-color var(--d-fade) ease; color: #fff; }
.field:focus-within { background: rgba(255,255,255,.26); box-shadow: 0 0 0 2px rgba(255,255,255,.8); }
.field .i { width: 20px; height: 20px; }
.field input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font-size: 17px; font-weight: 700; color: #fff; caret-color: #fff; }
.field input::placeholder { color: rgba(255,255,255,.72); font-weight: 500; }
.field .clr { color: rgba(255,255,255,.8); display: grid; place-items: center; transition: opacity var(--d-fade) ease, transform var(--d-fade) var(--ease-out); }
.field .clr .i { width: 22px; height: 22px; }
.field .clr.off { opacity: 0; transform: scale(.8); pointer-events: none; }
.search .seg { margin-top: 14px; }
.group-h { font-size: 16px; font-weight: 800; margin: 24px 4px 10px; letter-spacing: -.01em; }
.rgroup { overflow: hidden; }
.rrow { display: flex; align-items: center; gap: 12px; width: 100%; padding: 13px 14px; }
.rrow + .rrow { border-top: 1px solid var(--line); }
.rrow .ti { width: 40px; height: 40px; border-radius: 13px; background: var(--blue-soft); color: var(--blue); display: grid; place-items: center; flex: none; }
.rrow .ti.grey { background: var(--fill); color: var(--ink-2); }
.rrow .ti .i { width: 20px; height: 20px; }
.rrow .t { flex: 1; min-width: 0; }
.rrow b { display: block; font-size: 16px; font-weight: 700; }
.rrow small { font-size: 13px; color: var(--ink-3); font-weight: 500; }
.rrow > .i { color: #8E9AB5; width: 18px; height: 18px; }
.rrow b em { font-style: normal; color: var(--ink-3); font-weight: 600; margin: 0 2px; }
.h1-arrow .i { width: 30px; height: 30px; vertical-align: -4px; margin: 0 8px; stroke-width: 2.2; }

.toast { position: absolute; z-index: 200; left: 50%; bottom: calc(var(--dock-h) + 18px); max-width: calc(100% - 40px); padding: 12px 18px; border-radius: 99px; background: rgba(8,22,56,.94); color: #fff; font-size: 14.5px; font-weight: 600; box-shadow: var(--shadow-pop); opacity: 0; transform: translate(-50%, 10px) scale(.96); transition: opacity var(--d-fade) ease, transform var(--d-fade) var(--ease-out); pointer-events: none; white-space: nowrap; }
.toast.show { opacity: 1; transform: translate(-50%, 0) scale(1); }

@media (max-width: 920px) { .stage { grid-template-columns: auto; } .panel { display: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .drift-a, .drift-b, .drift-c, .wing { animation: none !important; }
}
[hidden] { display: none !important; }
.t-arc.static .done { display: none; }

.dock-scrim { position: absolute; z-index: 4; left: 0; right: 0; bottom: 0; height: calc(var(--dock-h) + 36px); background: linear-gradient(to top, var(--paper) 38%, rgba(237,242,248,0)); pointer-events: none; }
.roots[data-tab="map"] .dock-scrim { display: none; }

/* ======================= v3: flight numbers, Contrail, Profile ======================= */
.t-ttl { flex: 1; min-width: 0; display: grid; gap: 1px; }
.t-ttl .t-air { flex: none; min-width: 0; font-size: 18px; line-height: 1.15; }
.t-id { font-size: 12.5px; font-weight: 700; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t-id b { color: var(--ink); font-weight: 800; }
.ticket.compact .t-ttl .t-air { font-size: 15.5px; }

.page-top { display: flex; align-items: center; gap: 10px; color: #fff; padding: 6px 4px 14px; }
.page-top h1 { flex: 1; font-size: 32px; font-weight: 800; letter-spacing: -.03em; }
.page-top .circle.ghost-av { font-weight: 800; background: linear-gradient(145deg, #7FB1F4, #2358D8); border-color: rgba(255,255,255,.6); }
.lede { color: rgba(255,255,255,.88); font-size: 15px; font-weight: 500; margin: -8px 4px 16px; }

.cstat { position: relative; overflow: hidden; border-radius: 30px; padding: 20px; color: #fff; margin-bottom: 14px; background: linear-gradient(160deg, #071C47 0%, #0F3A9E 68%, #2A74E8 135%); box-shadow: 0 1px 0 rgba(255,255,255,.18) inset, 0 0 0 1px rgba(255,255,255,.08), 0 26px 40px -24px rgba(6,18,43,.75); }
.cstat::before { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(128deg, rgba(255,255,255,.045) 0 1px, transparent 1px 7px); pointer-events: none; }
.cstat > * { position: relative; }
.cstat.warm { background: linear-gradient(160deg, #3A1408 0%, #8E2F12 62%, #D2692F 135%); }
.cs-trail { position: absolute !important; right: -6px; top: -4px; width: 190px; height: 120px; opacity: .55; pointer-events: none; }
.cs-trail path { fill: none; stroke: #9CC4FB; stroke-width: 1.6; stroke-linecap: round; stroke-dasharray: 1 6; }
.cs-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cs-h h2 { font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.cs-share { width: 44px; height: 44px; margin: -6px -8px -6px 0; display: grid; place-items: center; color: #fff; border-radius: 50%; }
.cs-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 20px 14px; margin-top: 14px; }
.cs-lab { font-size: 13px; font-weight: 600; color: rgba(255,255,255,.8); }
.cs-num { font-size: 54px; font-weight: 800; letter-spacing: -.04em; line-height: 1.02; margin-top: 2px; }
.cs-num.md { font-size: 32px; line-height: 1.1; }
.cs-num .u { font-size: 22px; font-weight: 700; letter-spacing: -.01em; margin-left: 5px; opacity: .88; }
.cs-sub { font-size: 13px; font-weight: 600; color: rgba(255,255,255,.8); margin-top: 2px; }
.cs-row { display: grid; grid-template-columns: 1.1fr .9fr .9fr; gap: 10px; margin-top: 18px; }
.cs-link { display: flex; align-items: center; justify-content: space-between; width: 100%; margin-top: 18px; padding: 0 16px; height: 52px; border-radius: 18px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22); color: #fff; font-weight: 700; font-size: 15.5px; }
.cs-link .i { width: 18px; height: 18px; }
.cair { padding: 20px; border-radius: 30px; margin-bottom: 14px; background: linear-gradient(180deg, #DDEBFF 0%, #F4F8FF 100%); box-shadow: var(--shadow-card); }
.cair h2 { font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.cair .ac-name { font-size: 34px; font-weight: 800; letter-spacing: -.035em; color: var(--navy-800); line-height: 1.1; margin-top: 4px; }
.cair .scene { display: block; width: 100%; height: 118px; margin: 10px 0 4px; }
.cair .cs-link { background: rgba(35,88,216,.10); border-color: rgba(35,88,216,.16); color: var(--blue-ink); }
.pro { display: block; width: 100%; padding: 16px; border-radius: 24px; background: linear-gradient(180deg, #fff, #F3F7FF); border: 1.5px dashed rgba(35,88,216,.42); margin-bottom: 8px; }
.pro .l1 { display: flex; align-items: center; gap: 10px; }
.pro-chip { background: var(--grad-cta); color: #fff; padding: 3px 9px; border-radius: 99px; font-size: 12px; font-weight: 800; }
.pro b { flex: 1; font-size: 16.5px; font-weight: 800; letter-spacing: -.01em; }
.pro p { font-size: 13.5px; color: var(--ink-2); font-weight: 500; margin-top: 6px; }
.pro .i { color: var(--blue); width: 18px; height: 18px; }
.chips.light .chip { background: #fff; color: var(--ink-2); border: 1px solid var(--line); box-shadow: 0 1px 0 #fff inset; }
.chips.light .chip[aria-pressed="true"] { background: var(--navy-900); color: #fff; border-color: var(--navy-900); }
.chip .i { width: 14px; height: 14px; margin-left: 4px; vertical-align: -2px; }
.ghd { display: flex; align-items: baseline; justify-content: space-between; margin: 22px 4px 8px; font-weight: 800; font-size: 17px; letter-spacing: -.01em; }
.ghd span { font-size: 13px; font-weight: 600; color: var(--ink-3); }
.hrow { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; }
.hrow + .hrow { border-top: 1px solid var(--line); }
.hrow .mark { --s: 38px; }
.hrow .t { flex: 1; min-width: 0; }
.hrow b { display: block; font-size: 15.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hrow b em { font-style: normal; color: var(--ink-3); font-weight: 700; }
.hrow small { font-size: 13px; color: var(--ink-3); font-weight: 500; }
.hrow .d { text-align: right; font-size: 13px; font-weight: 700; color: var(--ink-2); }
.hrow .d i { display: block; font-style: normal; font-size: 12px; font-weight: 700; color: var(--amber); margin-top: 2px; }
.sec-sub { font-size: 13.5px; color: var(--ink-3); font-weight: 500; margin: -6px 4px 12px; }

/* stats screen */
.rmap { position: relative; height: 300px; border-radius: 30px; overflow: hidden; margin-bottom: 14px; background: #C7DCF3; box-shadow: 0 0 0 1px rgba(255,255,255,.6), 0 26px 44px -22px rgba(6,18,43,.55); isolation: isolate; }
.rmap .m { position: absolute; inset: 0; }
.scard { padding: 18px; margin-bottom: 14px; }
.scard-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.scard-h h3 { font-size: 18px; font-weight: 800; letter-spacing: -.015em; }
.scard-h button { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: var(--blue-ink); min-height: 44px; margin: -8px -4px -8px 0; padding: 0 4px; }
.scard-h button .i { width: 18px; height: 18px; }
.big { font-size: 50px; font-weight: 800; letter-spacing: -.04em; line-height: 1.04; margin-top: 2px; }
.big small { font-size: 22px; color: var(--ink-3); font-weight: 700; letter-spacing: -.01em; margin-left: 6px; }
.big-sub { font-size: 15px; color: var(--ink-3); font-weight: 600; margin-top: 2px; }
.kv { display: flex; justify-content: space-between; padding: 10px 0; border-top: 1px solid var(--line); font-weight: 600; color: var(--ink-2); font-size: 14.5px; }
.kv:first-of-type { margin-top: 10px; }
.kv b { color: var(--ink); font-weight: 800; }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 156px; margin-top: 14px; }
.bar { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; }
.bar em { font-style: normal; font-size: 12px; font-weight: 800; color: var(--ink-2); min-height: 14px; }
.bar .col { width: 100%; max-width: 28px; height: calc(var(--h) * 1px); min-height: 3px; border-radius: 10px 10px 4px 4px; background: var(--grad-cta); transform-origin: bottom; transform: scaleY(0); transition: transform calc(620ms * var(--ts)) var(--ease-out); transition-delay: calc(var(--i) * 35ms * var(--ts)); }
.bar .col.zero { background: var(--fill); }
.bars.go .col { transform: scaleY(1); }
.bar span { font-size: 12px; font-weight: 600; color: var(--ink-3); }
.cmp { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.cmp .tk { position: relative; flex: 1; height: 46px; border-radius: 99px; background: #E1EAF8; overflow: hidden; }
.cmp .fill { position: absolute; top: 0; bottom: 0; left: 0; width: calc(var(--w) * 1%); min-width: 126px; border-radius: 99px; background: linear-gradient(90deg, #173FBF, #4C8EF0); color: #fff; font-weight: 700; font-size: 14px; display: flex; align-items: center; justify-content: flex-end; padding: 0 14px; white-space: nowrap; transform-origin: left; transform: scaleX(0); transition: transform calc(900ms * var(--ts)) var(--ease-out); }
.cmp .fill b { font-weight: 800; margin-right: 4px; }
.go .cmp .fill { transform: scaleX(1); }
.rank { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.rank:first-of-type { margin-top: 8px; }
.rank b { font-size: 15px; font-weight: 700; }
.rank small { color: var(--ink-3); font-weight: 600; margin-left: 6px; }
.rank .n { font-weight: 800; color: var(--ink-2); font-size: 14.5px; }
.rank .mb { grid-column: 1 / -1; height: 6px; border-radius: 99px; background: #E1EAF8; overflow: hidden; }
.rank .mb i { display: block; height: 100%; width: calc(var(--w) * 1%); background: var(--grad-cta); border-radius: 99px; transform-origin: left; transform: scaleX(0); transition: transform calc(800ms * var(--ts)) var(--ease-out); }
.go .rank .mb i { transform: scaleX(1); }

/* profile */
.prof-h { display: grid; justify-items: center; text-align: center; gap: 4px; padding: 6px 0 6px; color: #fff; }
.prof-h .av { width: 92px; height: 92px; border-radius: 50%; display: grid; place-items: center; font-size: 32px; font-weight: 800; background: linear-gradient(145deg, #7FB1F4, #2358D8); border: 3px solid rgba(255,255,255,.7); box-shadow: 0 16px 30px -12px rgba(6,18,43,.7); margin-bottom: 8px; }
.prof-h h2 { font-size: 26px; font-weight: 800; letter-spacing: -.025em; }
.prof-h p { font-size: 14px; font-weight: 500; color: rgba(255,255,255,.88); }
.prof-h .pill { margin-top: 8px; background: rgba(255,255,255,.18); color: #fff; border: 1px solid rgba(255,255,255,.3); }
.mini3 { display: grid; grid-template-columns: repeat(3, 1fr); padding: 16px 6px; margin-top: 18px; text-align: center; }
.mini3 > div + div { border-left: 1px solid var(--line); }
.mini3 b { display: block; font-size: 26px; font-weight: 800; letter-spacing: -.03em; }
.mini3 span { font-size: 12.5px; font-weight: 600; color: var(--ink-3); }
.gopro { display: block; width: 100%; margin-top: 14px; padding: 18px; border-radius: 28px; color: #fff; text-align: left; background: linear-gradient(160deg, #071C47 0%, #1B4FC4 130%); box-shadow: 0 1px 0 rgba(255,255,255,.18) inset, 0 22px 36px -22px rgba(6,18,43,.8); position: relative; overflow: hidden; }
.gopro::before { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(128deg, rgba(255,255,255,.045) 0 1px, transparent 1px 7px); }
.gopro > * { position: relative; }
.gopro h3 { font-size: 20px; font-weight: 800; letter-spacing: -.02em; display: flex; align-items: center; gap: 8px; }
.gopro p { font-size: 14px; font-weight: 500; color: rgba(255,255,255,.86); margin-top: 6px; max-width: 30ch; }
.gopro .btn { margin-top: 14px; height: 48px; font-size: 15.5px; background: #fff; color: var(--navy-900); }
.pgroup { margin-top: 20px; }
.pgroup > h3 { font-size: 15px; font-weight: 800; margin: 0 4px 8px; letter-spacing: -.005em; }
.prow { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; min-height: 60px; }
.prow + .prow { border-top: 1px solid var(--line); }
.prow .ico { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue); flex: none; }
.prow .ico .i { width: 20px; height: 20px; }
.prow .t { flex: 1; min-width: 0; }
.prow b { display: block; font-size: 15.5px; font-weight: 700; }
.prow small { font-size: 13px; color: var(--ink-3); font-weight: 500; }
.prow .val { font-size: 14.5px; font-weight: 700; color: var(--ink-2); }
.prow > .i { color: #8E9AB5; width: 18px; height: 18px; }
.prow.danger b { color: var(--red); }
.prow.danger .ico { background: var(--red-soft); color: var(--red); }
.prow .seg { min-width: 134px; padding: 3px; }
.prow .seg button { min-height: 38px; font-size: 13.5px; padding: 6px 10px; }
.prow .seg-ind { top: 3px; bottom: 3px; }
.lead { padding: 4px 14px 14px; }
.stack-av { display: flex; }
.stack-av span { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; color: #fff; border: 2px solid #fff; margin-left: -8px; }
.stack-av span:first-child { margin-left: 0; }

/* map: tracked-flight airport dots */
.ap-dot { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 3.5px solid var(--blue); box-shadow: 0 2px 6px rgba(6,18,43,.4); cursor: pointer; transition: transform var(--d-press) var(--ease-out), background-color var(--d-fade) ease; }
.ap-dot.sel { background: var(--blue); transform: scale(1.15); }
.ap-dot.dest { border-color: #7C93BE; width: 12px; height: 12px; }
.map-empty { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 30px; color: var(--ink-2); }

.yr { margin-bottom: 16px; }
.disc { width: 46px; height: 46px; flex: none; filter: drop-shadow(0 6px 8px rgba(6,18,43,.3)); }
.rk-h { font-size: 14px; font-weight: 800; color: var(--ink-2); margin: 16px 0 2px; }
.cstat .big { color: #fff; }
.cstat .big small { color: rgba(255,255,255,.82); }
.cstat .big-sub { color: rgba(255,255,255,.84); }
.cstat .kv { border-top-color: rgba(255,255,255,.2); color: rgba(255,255,255,.86); }
.cstat .kv b { color: #fff; }
.cstat .cmp .tk { background: rgba(255,255,255,.14); }
.cstat .cmp .fill { background: linear-gradient(90deg, #4C8EF0, #A9CCFB); color: var(--navy-900); }
.cair .rank { border-top-color: rgba(35,88,216,.14); }
.cair .rank .mb { background: rgba(35,88,216,.14); }
.nav::before { content: ''; position: absolute; inset: 0; background: rgba(8,22,56,.84); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); opacity: 0; transition: opacity var(--d-fade) ease; }
.sb-solid .nav::before { opacity: 1; }

.btn-danger { color: var(--red); }
.trk-go[aria-busy="true"], .btn[aria-busy="true"] { opacity: .55; pointer-events: none; }
.rrow .d { font-size: 12.5px; font-weight: 700; color: var(--ink-3); white-space: nowrap; align-self: flex-start; margin-top: 2px; }
.rrow b { white-space: normal; line-height: 1.3; }
.btn-stack .sec-sub { margin: 6px 4px 0; }
