/* ── Flights · "night ops" ─────────────────────────────────────────────
   An airport operations board after dark, on the Pulse palette.
   Type:   B612 / B612 Mono — Airbus's cockpit-display faces (times, codes, labels)
           Big Shoulders Display — condensed signage (cities, headlines);
           its Stencil cut only for section titles, like hangar markings.
   Colour: Pulse black + heat orange as the one accent. Colour = attention only:
           orange = boarding / act now · purple = delayed · red = canceled.
           Everything that's fine stays warm-neutral.
   Motion: one orchestrated entrance (rise + split-flap flips, staggered),
           sliding indicators, scramble on airport change. All off under
           prefers-reduced-motion.
──────────────────────────────────────────────────────────────────────── */

@font-face { font-family: 'Bebas Neue'; font-style: normal; font-weight: 400; font-display: swap; src: url('/vendor/bebas-neue-latin-400-normal.woff2') format('woff2'); }

:root {
  --night: #070707;
  --paper: #f3ece2;          /* warm white — board characters */
  --ink-2: #bdb5aa;
  --ink-3: #8b847b;
  --kicker: #5e5851;
  --heat: #ff3d00;           /* Pulse heat */
  --heat-2: #ff6b3d;         /* heat for text on black */
  --calm: #9f5fff;           /* Pulse purple → delays */
  --calm-2: #c9a8ff;
  --red: #ff2e4d;            /* cancellations */
  --tile: #1c1a19;
  --f-sign: 'Big Shoulders Display', 'Bebas Neue', 'Arial Narrow', sans-serif;
  --f-stencil: 'Big Shoulders Stencil Display', 'Big Shoulders Display', 'Bebas Neue', sans-serif;
  --f-mono: 'B612 Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --f-ui: 'B612', system-ui, -apple-system, sans-serif;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --ease-out: cubic-bezier(.16, .84, .3, 1);
  --ease-spring: cubic-bezier(.3, 1.25, .5, 1);
  color-scheme: dark;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--night); color: var(--ink-2);
  font-family: var(--f-ui); font-size: 14px; line-height: 1.45;
  min-height: 100vh; -webkit-tap-highlight-color: transparent;
  -webkit-font-smoothing: antialiased;
}
button, input { font: inherit; color: inherit; }
button { background: none; border: none; cursor: pointer; text-align: inherit; }
button:disabled { opacity: .45; cursor: default; }
a { color: inherit; }
code { font-family: var(--f-mono); font-size: .92em; color: var(--heat-2); }
.dim { color: var(--ink-3); }
.ic { flex: none; display: block; }
#root { position: relative; z-index: 1; }

/* ── atmosphere: floodlight glow, approach-chart rings, radar sweep, dot grid, grain ── */
.atmo {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 720 720'%3E%3Cg fill='none' stroke='%23fff'%3E%3Cg stroke-opacity='.07'%3E%3Ccircle cx='360' cy='360' r='90'/%3E%3Ccircle cx='360' cy='360' r='180'/%3E%3Ccircle cx='360' cy='360' r='270'/%3E%3C/g%3E%3Ccircle cx='360' cy='360' r='352' stroke-opacity='.09' stroke-dasharray='1 7'/%3E%3Cpath stroke-opacity='.035' d='M360 0v720M0 360h720M106 106l508 508M614 106L106 614'/%3E%3C/g%3E%3C/svg%3E") right -250px top -250px / 720px no-repeat,
    radial-gradient(110% 55% at 50% -14%, rgba(255, 61, 0, .19), transparent 62%),
    radial-gradient(70% 45% at 108% 104%, rgba(123, 47, 255, .14), transparent 70%),
    radial-gradient(55% 35% at -12% 64%, rgba(255, 61, 0, .06), transparent 70%),
    var(--night);
}
.atmo::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(rgba(255, 255, 255, .075) 1px, transparent 1.4px) 0 0 / 20px 20px;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 48%); mask-image: linear-gradient(180deg, #000, transparent 48%);
}
.sweep {
  position: absolute; width: 720px; height: 720px; top: -250px; right: -250px; border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(255, 61, 0, .2), rgba(255, 61, 0, .04) 34deg, transparent 60deg);
  -webkit-mask-image: radial-gradient(circle, #000 0 50%, transparent 70%); mask-image: radial-gradient(circle, #000 0 50%, transparent 70%);
  animation: spin 11s linear infinite;
}

.app { max-width: 680px; margin: 0 auto; padding: 0 16px calc(104px + var(--safe-b)); }
.view { padding-top: var(--safe-t); }
body::before { /* home-screen app: keep content from scrolling under the translucent status bar */
  content: ""; position: fixed; top: 0; left: 0; right: 0; height: var(--safe-t); background: var(--night); z-index: 9;
}

.demo-bar {
  margin: 0 -16px; padding: calc(var(--safe-t) + 7px) 16px 7px; text-align: center;
  background: repeating-linear-gradient(-45deg, rgba(255, 61, 0, .2) 0 10px, rgba(255, 61, 0, .06) 10px 20px);
  border-bottom: 1px solid rgba(255, 61, 0, .35);
  font-family: var(--f-mono); font-size: 9.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--heat-2);
}
.demo-bar + .view { padding-top: 0; }

/* ── entrance choreography ── */
.rise { animation: rise .75s var(--ease-out) both; animation-delay: calc(var(--d, 0) * 90ms); }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }
@keyframes fade { from { opacity: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes blink { 50% { opacity: .15; } }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(255, 61, 0, .65); } 80%, 100% { box-shadow: 0 0 0 9px rgba(255, 61, 0, 0); } }
@keyframes grow { from { width: 0; } }

/* ── split-flap tiles ── */
.flap {
  --fs: 17px; font-size: var(--fs);
  display: inline-flex; align-items: center; gap: .09em;
  font-family: var(--f-mono); font-weight: 700; line-height: 1; perspective: 300px;
}
.flap i {
  font-style: normal; position: relative; display: inline-grid; place-items: center;
  width: .84em; height: 1.26em; border-radius: .13em; color: var(--paper);
  background: linear-gradient(180deg, #262321 0%, #1b1918 48%, #080808 48% 52%, #171514 52%, #100f0e 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 1px 0 rgba(0, 0, 0, .7), 0 2px 6px rgba(0, 0, 0, .35);
  backface-visibility: hidden;
}
.flap i::after { content: ""; position: absolute; left: 0; right: 0; top: calc(50% - .5px); height: 1px; background: rgba(0, 0, 0, .75); }
.flap i.z { color: #4a4540; }
.flap .colon { width: .28em; text-align: center; color: var(--ink-3); font-weight: 700; }
.flap.sm { --fs: 15px; }
.flap.lg { --fs: 25px; }
.flap.xl { --fs: 42px; }
.flap.xl i, .flap.lg i { border-radius: .1em; }
.row.anim .flap i, .ap .flap i, .plan .flap i, .pk-row .flap i, .empty-start .flap i {
  animation: flip .66s var(--ease-out) both;
  animation-delay: calc(var(--i, 0) * 40ms + var(--c, 0) * 48ms + 140ms);
}
@keyframes flip {
  0% { transform: rotateX(-95deg); opacity: .25; }
  55% { transform: rotateX(16deg); opacity: 1; }
  78% { transform: rotateX(-6deg); }
  100% { transform: none; }
}
.flap.loop i { animation: flipLoop 1.8s cubic-bezier(.45, 0, .2, 1) infinite !important; animation-delay: calc(var(--c, 0) * 170ms) !important; }
@keyframes flipLoop { 0%, 55%, 100% { transform: none; } 22% { transform: rotateX(-90deg); opacity: .3; } }

/* ── kicker / headings ── */
.kick {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--f-mono); font-size: 10px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3);
}
.page-kick { padding: 22px 2px 12px; }
.page-kick::before { content: ""; width: 18px; height: 2px; background: var(--heat); box-shadow: 0 0 10px var(--heat); }
.stencil { font-family: var(--f-stencil); font-weight: 800; font-size: 26px; line-height: 1; letter-spacing: .05em; text-transform: uppercase; color: var(--paper); }
.hint { font-size: 12.5px; color: var(--ink-3); margin: 0 0 10px; line-height: 1.55; }
.hint.inl { display: inline; margin: 0 0 0 10px; }

/* ── board header ── */
.ap { padding: 20px 0 6px; }
.live { width: 7px; height: 7px; border-radius: 50%; background: var(--heat); animation: ping 1.8s ease-out infinite; }
.live.demo { background: var(--ink-3); animation: none; }
.ap-clock { margin-left: auto; color: var(--paper); letter-spacing: .14em; }
.blink { animation: blink 1s steps(2, jump-none) infinite; }
.ap-main { display: flex; align-items: center; gap: 14px; width: 100%; margin-top: 12px; padding: 2px 0; color: var(--ink-3); }
.ap-main .flap i { color: var(--heat-2); text-shadow: 0 0 18px rgba(255, 61, 0, .45); }
.ap-txt { display: grid; gap: 4px; min-width: 0; flex: 1; }
.ap-name {
  font-family: var(--f-sign); font-weight: 800; font-size: 21px; line-height: .98; letter-spacing: .01em; text-transform: uppercase; color: var(--paper);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.ap-sub { font-size: 12px; color: var(--ink-3); }
.ap-chev { transition: transform .2s; }
.ap-main:active .ap-chev { transform: translateY(2px); }

/* ── sticky dep/arr + search ── */
.sticky {
  position: sticky; top: var(--safe-t); z-index: 5;
  margin: 0 -16px; padding: 10px 16px; display: grid; gap: 8px;
  background: rgba(8, 8, 8, .88); -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3);
  border-bottom: 1px solid rgba(255, 255, 255, .05);
}
.dir {
  position: relative; display: grid; grid-template-columns: 1fr 1fr; overflow: hidden;
  border-radius: 14px; background: rgba(255, 255, 255, .03); border: 1px solid rgba(255, 255, 255, .07);
}
.dir::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 50%;
  background: linear-gradient(180deg, transparent, rgba(255, 61, 0, .14));
  transform: translateX(calc(var(--t) * 100%)); transition: transform .5s var(--ease-spring);
}
.dir button { position: relative; z-index: 1; display: flex; align-items: center; gap: 8px; padding: 10px 12px 12px; color: var(--ink-3); transition: color .25s; }
.dir button span { font-family: var(--f-sign); font-weight: 800; font-size: 20px; line-height: 1; letter-spacing: .03em; text-transform: uppercase; }
.dir button em { margin-left: auto; font-style: normal; font-family: var(--f-mono); font-size: 11px; font-weight: 700; }
.dir button.on { color: var(--paper); }
.dir button.on .ic { color: var(--heat); }
.dir button.on em { color: var(--heat-2); }
.dir-ind {
  position: absolute; left: 0; bottom: 0; width: 50%; height: 3px; background: var(--heat);
  box-shadow: 0 0 16px 1px rgba(255, 61, 0, .75);
  transform: translateX(calc(var(--t) * 100%)); transition: transform .5s var(--ease-spring);
}
.dir-ind::after { /* runway centreline */
  content: ""; position: absolute; left: 12%; right: 12%; top: 1px; height: 1px;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .9) 0 7px, transparent 7px 14px);
}

.search-field {
  display: flex; align-items: center; gap: 10px; padding: 0 8px 0 14px; color: var(--ink-3);
  border-radius: 13px; background: rgba(255, 255, 255, .035); border: 1px solid rgba(255, 255, 255, .08);
  transition: border-color .2s, box-shadow .2s;
}
.search-field:focus-within { border-color: rgba(255, 61, 0, .6); box-shadow: 0 0 0 4px rgba(255, 61, 0, .1); }
.search-field input {
  flex: 1; min-width: 0; padding: 11px 0; background: none; border: none; outline: none;
  color: var(--paper); font-family: var(--f-mono); font-size: 16px; /* ≥16px stops iOS zoom */
}
.search-field input::placeholder { color: var(--kicker); }
.search-field input::-webkit-search-cancel-button { display: none; }
.iconbtn { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; color: var(--ink-3); flex: none; transition: background .2s; }
.iconbtn.sm { width: 28px; height: 28px; }
.iconbtn:active { background: rgba(255, 255, 255, .08); }

.subbar { display: grid; gap: 10px; padding: 10px 0 4px; }
.toolbar { display: flex; gap: 8px; align-items: center; }
.toolbar .seg { flex: 1 1 auto; min-width: 0; }

/* ── segmented control w/ sliding indicator ── */
.seg {
  position: relative; display: grid; grid-template-columns: repeat(var(--n), 1fr); padding: 3px;
  border-radius: 11px; background: rgba(255, 255, 255, .03); border: 1px solid rgba(255, 255, 255, .08);
}
.seg button {
  position: relative; z-index: 1; padding: 7px 8px; text-align: center; white-space: nowrap;
  font-family: var(--f-mono); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3);
  transition: color .25s;
}
.seg button.on { color: var(--heat-2); }
.seg-ind {
  position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc((100% - 6px) / var(--n)); border-radius: 8px;
  background: rgba(255, 61, 0, .13); border: 1px solid rgba(255, 61, 0, .5);
  transform: translateX(calc(var(--t) * 100%)); transition: transform .45s var(--ease-spring);
}

/* ── chips ── */
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.chips.scroll { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px; padding: 0 16px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.chips.scroll::-webkit-scrollbar { display: none; }
.chip {
  flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 7px 11px; border-radius: 999px; white-space: nowrap;
  font-family: var(--f-mono); font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  color: var(--ink-2); background: rgba(255, 255, 255, .035); border: 1px solid rgba(255, 255, 255, .09);
  transition: color .2s, border-color .2s, background .2s, transform .12s;
}
.chip:active { transform: scale(.96); }
.chip.on { color: var(--heat-2); border-color: rgba(255, 61, 0, .6); background: rgba(255, 61, 0, .12); }
.chip-n { font-weight: 400; letter-spacing: .02em; color: var(--kicker); }
.chip.on .chip-n { color: rgba(255, 107, 61, .75); }
.chip.add { border-style: dashed; color: var(--paper); }
.chip.ghost { border-color: transparent; background: none; color: var(--ink-3); }
.chip.date { position: relative; overflow: hidden; }
.chip.date input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.daypick { display: flex; gap: 6px; }
.tochip {
  display: inline-flex; align-items: center; gap: 2px; padding: 3px 3px 3px 10px; border-radius: 8px;
  font-family: var(--f-mono); font-size: 15px; font-weight: 700; letter-spacing: .08em; color: var(--heat-2);
  background: rgba(255, 61, 0, .1); border: 1px solid rgba(255, 61, 0, .55);
  animation: rise .4s var(--ease-out) both;
}
.tochip button { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 6px; color: rgba(255, 107, 61, .7); }
.tochip button:active { background: rgba(255, 61, 0, .2); }

/* ── board rows (slats) ── */
.reveals { display: flex; gap: 18px; margin: 12px 2px 6px; }
.link {
  display: inline-flex; align-items: center; gap: 5px; color: var(--heat-2);
  font-family: var(--f-mono); font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
}
.rows { display: grid; gap: 6px; margin-top: 6px; }
.row {
  position: relative; overflow: hidden; width: 100%;
  display: grid; grid-template-columns: 82px minmax(0, 1fr) auto; grid-template-areas: "t city city" "t sub pill";
  column-gap: 10px; row-gap: 5px; align-items: center;
  padding: 10px 10px 10px 12px; border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .042), rgba(255, 255, 255, .016));
  border: 1px solid rgba(255, 255, 255, .055);
  transition: background .2s, transform .12s, border-color .2s;
}
.row.anim { animation: slat .55s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 40ms + 80ms); }
@keyframes slat { from { opacity: 0; transform: translateX(-10px); } }
.row:active { transform: scale(.99); background: rgba(255, 255, 255, .06); }
.row::before { /* status rail */
  content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 2px; border-radius: 0 2px 2px 0; background: transparent;
}
.row.s-board::before { background: var(--heat); box-shadow: 0 0 10px var(--heat); }
.row.s-closed::before { background: var(--heat-2); }
.row.s-late::before { background: var(--calm); box-shadow: 0 0 8px rgba(159, 95, 255, .7); }
.row.s-cxl::before, .row.s-div::before { background: var(--red); box-shadow: 0 0 8px rgba(255, 46, 77, .7); }
.row.gone { opacity: .42; }

.bt { grid-area: t; display: grid; gap: 5px; justify-items: start; align-self: center; }
.bt-tiles { position: relative; display: inline-flex; align-items: flex-end; gap: 3px; }
.bt-ap { font-family: var(--f-mono); font-size: 10px; font-weight: 700; color: var(--ink-3); padding-bottom: 1px; }
.bt-day { position: absolute; top: -7px; right: -9px; font-family: var(--f-mono); font-size: 9px; font-weight: 700; color: var(--heat-2); }
.bt-was { font-family: var(--f-mono); font-size: 10.5px; color: var(--ink-3); text-decoration-color: rgba(201, 168, 255, .8); }
.bt.late .flap i { color: var(--calm-2); }
.bt.cxl .flap i { color: #b83a4c; }
.bt.cxl .bt-tiles::after {
  content: ""; position: absolute; left: -3px; right: 9px; top: 50%; height: 2px; border-radius: 1px;
  background: var(--red); box-shadow: 0 0 8px rgba(255, 46, 77, .7); transform: rotate(-9deg);
}

.r-city {
  grid-area: city; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  font-family: var(--f-sign); font-weight: 800; font-size: 25px; line-height: .95; letter-spacing: .01em; text-transform: uppercase; color: var(--paper);
}
.r-num { font-weight: 700; color: var(--paper); white-space: nowrap; }
.r-num sup { margin-left: 2px; font-size: 9px; color: var(--heat-2); }
.r-sub {
  grid-area: sub; min-width: 0; display: flex; align-items: baseline; gap: 8px; white-space: nowrap; overflow: hidden;
  font-family: var(--f-mono); font-size: 10.5px; color: var(--ink-3); letter-spacing: .02em;
}
.r-code { color: var(--heat-2); font-weight: 700; letter-spacing: .08em; }
.r-sub em { font-style: normal; font-weight: 700; color: var(--paper); }
.r-gate i { font-style: normal; font-size: 8px; letter-spacing: .14em; text-transform: uppercase; color: var(--kicker); margin-right: 3px; }
.r-al { min-width: 0; overflow: hidden; text-overflow: ellipsis; font-family: var(--f-ui); letter-spacing: 0; }
.r-pill { grid-area: pill; justify-self: end; }
.row.has-arr { grid-template-areas: "t city arr" "t sub pill"; }
.row.has-arr.has-fare { grid-template-areas: "t city arr" "t sub pill" "t fare fare"; }
.r-fare {
  grid-area: fare; display: flex; align-items: baseline; gap: 8px; margin-top: 3px; padding-top: 6px;
  border-top: 1px dashed rgba(255, 255, 255, .09); animation: rise .45s var(--ease-out) both;
}
.r-fare b { font-family: var(--f-sign); font-weight: 900; font-size: 23px; line-height: 1; color: var(--paper); }
.r-fare i { font-style: normal; font-family: var(--f-mono); font-size: 8.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--kicker); }
.r-fare em {
  margin-left: auto; font-style: normal; font-family: var(--f-mono); font-size: 9px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: #1a0700; background: var(--heat); padding: 2px 7px 1px; border-radius: 4px; box-shadow: 0 0 12px rgba(255, 61, 0, .45);
}
.r-fare.none { font-family: var(--f-mono); font-size: 9.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--kicker); }
.r-arr { grid-area: arr; justify-self: end; font-family: var(--f-mono); font-size: 13px; font-weight: 700; color: var(--paper); white-space: nowrap; }
.r-arr i { font-style: normal; font-size: 8px; letter-spacing: .14em; text-transform: uppercase; color: var(--kicker); margin-right: 4px; }
.r-arr sup { font-size: 8.5px; color: var(--heat-2); margin-left: 1px; }

/* ── status pills ── */
.pill {
  display: inline-flex; align-items: center; gap: 5px; padding: 3px 7px 2px; border-radius: 5px; white-space: nowrap; line-height: 1.3;
  font-family: var(--f-mono); font-size: 9.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  border: 1px solid transparent; color: var(--ink-2);
}
.pill.ok { border-color: rgba(255, 255, 255, .13); }
.pill.sched { color: var(--ink-3); border-color: rgba(255, 255, 255, .07); }
.pill.board { color: #1a0700; background: var(--heat); box-shadow: 0 0 16px rgba(255, 61, 0, .5); }
.pill.board::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: #1a0700; animation: blink .9s steps(2, jump-none) infinite; }
.pill.closed { color: var(--heat-2); border-color: rgba(255, 107, 61, .55); }
.pill.late { color: var(--calm-2); background: rgba(159, 95, 255, .15); border-color: rgba(159, 95, 255, .4); }
.pill.cxl { color: #fff; background: repeating-linear-gradient(-45deg, #c8102e 0 6px, #96091f 6px 12px); }
.pill.div { color: var(--red); border-color: rgba(255, 46, 77, .6); }
.pill.air { color: var(--calm-2); border-color: rgba(159, 95, 255, .3); }
.pill.air::before { content: ""; width: 12px; height: 2px; border-radius: 1px; background: linear-gradient(90deg, transparent, var(--calm-2)); animation: contrail 1.4s linear infinite; }
@keyframes contrail { from { transform: translateX(-4px); opacity: .2; } 60% { opacity: 1; } to { transform: translateX(3px); opacity: .2; } }
.pill.gone { color: var(--kicker); border-color: rgba(255, 255, 255, .06); }

/* ── by-city grid ── */
.places { display: grid; grid-template-columns: repeat(auto-fill, minmax(156px, 1fr)); gap: 8px; margin-top: 12px; }
.place {
  display: grid; gap: 7px; align-content: start; padding: 12px; border-radius: 13px; text-align: left;
  background: linear-gradient(160deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .015));
  border: 1px solid rgba(255, 255, 255, .06);
  animation: rise .55s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 35ms + 60ms);
  transition: border-color .2s, transform .12s;
}
.place:active { transform: scale(.98); border-color: rgba(255, 61, 0, .5); }
.pl-name { font-family: var(--f-sign); font-weight: 800; font-size: 22px; line-height: .95; text-transform: uppercase; color: var(--paper); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-meta { font-family: var(--f-mono); font-size: 10px; color: var(--ink-3); letter-spacing: .05em; }
.pl-meta b { color: var(--heat-2); letter-spacing: .1em; margin-right: 4px; }
.pl-times { display: flex; flex-wrap: wrap; gap: 4px; }
.pl-t { font-family: var(--f-mono); font-size: 11px; font-weight: 700; padding: 3px 5px 2px; border-radius: 4px; background: var(--tile); color: var(--paper); box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .6); }
.pl-t.late { color: var(--calm-2); }
.pl-t.cxl, .pl-t.div { color: var(--red); text-decoration: line-through; }
.pl-t.board { color: #1a0700; background: var(--heat); }
.pl-more { font-family: var(--f-mono); font-size: 10px; color: var(--ink-3); align-self: center; }
.pl-al { font-family: var(--f-mono); font-size: 9.5px; letter-spacing: .1em; color: var(--kicker); }

/* ── misc blocks ── */
.loading { display: grid; justify-items: center; gap: 14px; padding: 46px 0 30px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.loading .flap i { color: var(--heat-2); }
.none { padding: 28px 8px; text-align: center; font-family: var(--f-mono); font-size: 11.5px; color: var(--ink-3); letter-spacing: .03em; }
.notice {
  margin: 12px 0; padding: 12px 14px; border-radius: 12px; font-size: 13px; line-height: 1.5; color: var(--ink-2);
  background: rgba(255, 255, 255, .03); border: 1px solid rgba(255, 255, 255, .07); border-left: 3px solid var(--ink-3);
  animation: rise .5s var(--ease-out) both;
}
.notice.bad { border-left-color: var(--red); color: #ffc4cc; }
.notice.demo { border-left-color: var(--heat); color: var(--heat-2); }
.foot { display: grid; gap: 12px; justify-items: center; padding: 20px 0 6px; }
.updated { display: flex; align-items: center; gap: 12px; font-family: var(--f-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 16px; border-radius: 12px; text-decoration: none;
  font-family: var(--f-mono); font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--paper); background: rgba(255, 255, 255, .045); border: 1px solid rgba(255, 255, 255, .1);
  transition: transform .12s, background .2s, box-shadow .2s;
}
.btn:active { transform: scale(.97); }
.btn.primary {
  color: #1a0700; border-color: transparent;
  background: linear-gradient(180deg, #ff6a2e, var(--heat));
  box-shadow: 0 10px 26px -10px rgba(255, 61, 0, .85), inset 0 1px 0 rgba(255, 255, 255, .3);
}
.btn.primary.scanning { /* hazard stripes march while hubs are checked */
  background: repeating-linear-gradient(-45deg, var(--heat) 0 12px, #d93400 12px 24px) 0 0 / 34px 34px;
  animation: march .7s linear infinite; opacity: 1;
}
@keyframes march { to { background-position: 34px 0; } }
.btn.wide { width: 100%; padding: 13px 16px; }
.btn-sub { font-family: var(--f-ui); font-weight: 400; font-size: 11px; letter-spacing: 0; text-transform: none; opacity: .6; }

.empty-start { display: grid; gap: 16px; justify-items: start; padding: 64px 4px 20px; }
.empty-start p { color: var(--ink-3); max-width: 30ch; }
.hero { font-family: var(--f-sign); font-weight: 900; font-size: 64px; line-height: .86; letter-spacing: .005em; text-transform: uppercase; color: var(--paper); }
.empty-start .flap i { color: var(--heat-2); }
.empty-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }

/* ── route: flight plan ── */
.plan {
  position: relative; overflow: hidden; padding: 16px 14px 14px; border-radius: 18px;
  background: linear-gradient(155deg, rgba(255, 61, 0, .1), rgba(255, 255, 255, .02) 45%, rgba(123, 47, 255, .08));
  border: 1px solid rgba(255, 255, 255, .08);
}
.plan::after { /* chart grid */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 18px 18px;
  -webkit-mask-image: linear-gradient(110deg, transparent 30%, #000); mask-image: linear-gradient(110deg, transparent 30%, #000);
}
.plan-row { position: relative; z-index: 1; display: grid; grid-template-columns: 42px 1fr; gap: 10px; align-items: center; }
.plan-lab { font-family: var(--f-mono); font-size: 9.5px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); }
.plan-from { display: flex; align-items: center; gap: 12px; color: var(--ink-3); min-width: 0; }
.plan-from .flap i { color: var(--heat-2); }
.plan-city { flex: 1; min-width: 0; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--f-sign); font-weight: 800; font-size: 24px; line-height: 1; text-transform: uppercase; color: var(--paper); }
.plan-spine { position: relative; z-index: 1; height: 44px; margin: 4px 0 4px 87px; border-left: 2px dashed rgba(255, 107, 61, .45); }
.plan-plane {
  position: absolute; left: -9px; top: 0; color: var(--heat); filter: drop-shadow(0 0 6px rgba(255, 61, 0, .9));
  animation: glide 3.4s cubic-bezier(.45, 0, .55, 1) infinite;
}
@keyframes glide {
  0% { transform: translateY(-6px) rotate(180deg); opacity: 0; }
  18%, 78% { opacity: 1; }
  100% { transform: translateY(34px) rotate(180deg); opacity: 0; }
}
.plan-to { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; min-height: 34px; }

.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 30px 2px 10px; }
.sec-sub { font-family: var(--f-mono); font-size: 10px; letter-spacing: .08em; color: var(--ink-3); }

.conns { display: grid; gap: 10px; margin-top: 14px; }
.conn {
  overflow: hidden; border-radius: 15px; background: linear-gradient(180deg, #171514, #121110);
  border: 1px solid rgba(255, 255, 255, .07);
  animation: rise .6s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 60ms);
}
.conn-head {
  display: grid; grid-template-columns: 1fr auto; grid-template-areas: "k tot" "t tot" "to tot"; row-gap: 2px;
  padding: 12px 14px 11px; position: relative;
  background: linear-gradient(100deg, rgba(255, 61, 0, .18), rgba(255, 61, 0, .02) 70%);
  border-bottom: 2px dashed rgba(255, 255, 255, .1);
}
.ch-k { grid-area: k; font-family: var(--f-mono); font-size: 9.5px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--heat-2); }
.ch-t { grid-area: t; font-family: var(--f-sign); font-weight: 900; font-size: 32px; line-height: .95; color: var(--paper); text-transform: uppercase; }
.ch-to { grid-area: to; font-family: var(--f-sign); font-weight: 700; font-size: 17px; text-transform: uppercase; color: var(--ink-2); }
.ch-to b { color: var(--heat-2); font-family: var(--f-mono); font-size: 12px; letter-spacing: .1em; margin-left: 4px; }
.ch-tot { grid-area: tot; align-self: end; display: grid; justify-items: end; gap: 4px; font-family: var(--f-mono); font-size: 11px; font-weight: 700; color: var(--ink-2); }
.ch-fare { font-family: var(--f-sign); font-weight: 900; font-size: 28px; line-height: .9; color: var(--paper); }
.ch-tot i { font-style: normal; font-size: 8.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--kicker); }
.conn-body { padding: 8px 14px 12px; }
.cleg { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; align-items: center; width: 100%; padding: 6px 0; text-align: left; }
.cl-num { font-family: var(--f-mono); font-size: 13px; font-weight: 700; color: var(--paper); letter-spacing: .03em; }
.cl-path { grid-column: 1 / -1; display: flex; align-items: center; gap: 6px; min-width: 0; font-family: var(--f-mono); font-size: 11.5px; color: var(--ink-3); }
.cl-path b { color: var(--paper); }
.cl-path sup { font-size: 8.5px; color: var(--heat-2); }
.cl-dash { flex: 0 0 22px; border-top: 1px dashed var(--ink-3); }
.cl-al { margin-left: auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--f-ui); font-size: 11px; }
.conn-any { padding: 4px 0 0; font-family: var(--f-mono); font-size: 9.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--heat-2); }
.conn-lay {
  display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 2px 0 2px 5px; padding: 6px 0 6px 14px;
  border-left: 2px dotted rgba(255, 107, 61, .5);
  font-family: var(--f-mono); font-size: 10px; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3);
}
.conn-lay b { color: var(--heat-2); }

/* ── fares ── */
.fare-cta {
  display: flex; align-items: center; gap: 14px; width: 100%; margin: 2px 0 12px; padding: 12px 14px; border-radius: 14px; text-align: left;
  color: var(--paper); background: linear-gradient(100deg, rgba(255, 61, 0, .15), rgba(255, 255, 255, .02) 72%);
  border: 1px dashed rgba(255, 61, 0, .55); transition: transform .12s, border-color .2s;
}
.fare-cta:active { transform: scale(.985); }
.fare-sign { font-family: var(--f-stencil); font-weight: 800; font-size: 36px; line-height: 1; color: var(--heat-2); text-shadow: 0 0 18px rgba(255, 61, 0, .55); }
.fare-cta.busy .fare-sign { animation: coin 1.1s linear infinite; }
@keyframes coin { to { transform: rotateY(360deg); } }
.fare-txt { flex: 1; display: grid; gap: 2px; }
.fare-cta.slim { margin: 12px 0 0; padding: 9px 12px; }
.fare-cta.slim .fare-sign { font-size: 26px; }
.fare-txt b { font-family: var(--f-mono); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.fare-txt small { font-size: 11.5px; color: var(--ink-3); }
.fares {
  margin: 2px 0 12px; padding: 14px; border-radius: 14px; animation: rise .55s var(--ease-out) both;
  background: linear-gradient(120deg, rgba(255, 61, 0, .12), rgba(255, 255, 255, .02) 60%, rgba(123, 47, 255, .07));
  border: 1px solid rgba(255, 61, 0, .32);
}
.fares-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.lvl { font-family: var(--f-mono); font-size: 9px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: 3px 7px 2px; border-radius: 5px; border: 1px solid rgba(255, 255, 255, .12); color: var(--ink-3); white-space: nowrap; }
.lvl.low { color: var(--paper); border-color: rgba(255, 255, 255, .3); }
.lvl.high { color: var(--heat-2); border-color: rgba(255, 61, 0, .55); }
.fares-nums { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 12px 0 10px; }
.fares-nums span { display: block; font-family: var(--f-mono); font-size: 8.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--kicker); margin-bottom: 3px; }
.fares-nums b { font-family: var(--f-sign); font-weight: 900; font-size: 28px; line-height: .9; color: var(--paper); }
.fares-nums div:first-child b { color: var(--heat-2); }
.fares-best { font-size: 12.5px; color: var(--ink-2); line-height: 1.5; }
.fares-best b { font-family: var(--f-mono); color: var(--heat-2); }
.fares-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; margin-top: 12px; }

/* ── boarding pass ── */
.pass { position: relative; filter: drop-shadow(0 18px 28px rgba(0, 0, 0, .55)); animation: rise .6s var(--ease-out) both .05s; }
.pass-top, .pass-stub { position: relative; overflow: hidden; background: linear-gradient(180deg, #1c1a18, #151413); }
.pass-top {
  border-radius: 16px 16px 0 0; padding: 18px 16px 14px;
  -webkit-mask: radial-gradient(circle 11px at 0 100%, transparent 97%, #000) left / 51% 100% no-repeat,
                radial-gradient(circle 11px at 100% 100%, transparent 97%, #000) right / 51% 100% no-repeat;
          mask: radial-gradient(circle 11px at 0 100%, transparent 97%, #000) left / 51% 100% no-repeat,
                radial-gradient(circle 11px at 100% 100%, transparent 97%, #000) right / 51% 100% no-repeat;
}
.pass-top::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--heat), #ff8a4c 55%, var(--calm)); }
.pass.is-cxl .pass-top::before { background: repeating-linear-gradient(-45deg, #c8102e 0 8px, #96091f 8px 16px); }
.pass-stub {
  border-radius: 0 0 16px 16px; padding: 16px 16px 16px;
  background: linear-gradient(180deg, #171514, #121110);
  -webkit-mask: radial-gradient(circle 11px at 0 0, transparent 97%, #000) left / 51% 100% no-repeat,
                radial-gradient(circle 11px at 100% 0, transparent 97%, #000) right / 51% 100% no-repeat;
          mask: radial-gradient(circle 11px at 0 0, transparent 97%, #000) left / 51% 100% no-repeat,
                radial-gradient(circle 11px at 100% 0, transparent 97%, #000) right / 51% 100% no-repeat;
}
.pass-stub::before { content: ""; position: absolute; top: 0; left: 16px; right: 16px; border-top: 2px dashed rgba(255, 255, 255, .13); }
.pass-head { display: flex; justify-content: space-between; gap: 10px; font-family: var(--f-mono); font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
.pass-al { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pass-num { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 6px; }
.pass-num > span:first-child { font-family: var(--f-sign); font-weight: 900; font-size: 34px; line-height: 1; letter-spacing: .02em; color: var(--heat-2); }
.pass-route { display: grid; grid-template-columns: auto minmax(70px, 1fr) auto; align-items: center; gap: 12px; margin: 16px 0 14px; }
.pr-code { font-family: var(--f-sign); font-weight: 900; font-size: 56px; line-height: .82; letter-spacing: .01em; color: var(--paper); }
.pr-city { margin-top: 6px; font-size: 11.5px; color: var(--ink-3); max-width: 11ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pr-end.r { text-align: right; }
.pr-end.r .pr-city { margin-left: auto; }
.pr-track { position: relative; height: 36px; }
.pr-line { position: absolute; left: 0; right: 0; top: 50%; border-top: 2px dashed rgba(255, 255, 255, .18); }
.pr-done { position: absolute; left: 0; top: calc(50% - 1px); height: 2px; width: var(--p); background: linear-gradient(90deg, rgba(255, 61, 0, .15), var(--heat)); animation: grow 1.5s var(--ease-out) .35s both; }
.pr-plane {
  position: absolute; top: 50%; left: var(--p); color: var(--heat);
  transform: translate(-50%, -50%) rotate(90deg); filter: drop-shadow(0 0 7px rgba(255, 61, 0, .85));
  animation: fly 1.5s var(--ease-out) .35s both;
}
@keyframes fly { from { left: 0; } }
.pr-track.done .pr-plane { color: var(--ink-2); filter: none; }
.pr-dur { position: absolute; left: 50%; top: calc(50% + 9px); transform: translateX(-50%); font-family: var(--f-mono); font-size: 9.5px; color: var(--ink-3); white-space: nowrap; }
.pass-times { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pt { display: grid; gap: 4px; align-content: start; }
.pt div { display: flex; align-items: baseline; gap: 8px; }
.pt.arr div { justify-content: flex-end; }
.pt span { font-family: var(--f-mono); font-size: 9px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--kicker); }
.pt b { font-family: var(--f-mono); font-size: 12.5px; color: var(--paper); white-space: nowrap; }
.pt b.late { color: var(--calm-2); }
.pt small { font-size: 10px; }
.stub-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(64px, 1fr)); gap: 10px; }
.stub-grid span { display: block; font-family: var(--f-mono); font-size: 9px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--kicker); }
.stub-grid b { font-family: var(--f-sign); font-weight: 900; font-size: 30px; line-height: 1; color: var(--heat-2); }
.stub-none b { font-family: var(--f-ui); font-weight: 400; font-size: 13px; color: var(--ink-3); }
.stub-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 12px; font-family: var(--f-mono); font-size: 10.5px; color: var(--ink-3); }
.barcode {
  height: 34px; margin-top: 14px; color: rgba(243, 236, 226, .5);
  background-size: 260px 100%; background-repeat: repeat-x;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

/* ── track form (a ticket) ── */
.ticket {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px 14px; padding: 18px 16px 16px; border-radius: 18px;
  background: linear-gradient(160deg, rgba(255, 61, 0, .08), rgba(255, 255, 255, .02) 50%), #121110;
  border: 1px solid rgba(255, 255, 255, .08);
}
.tf { display: grid; gap: 6px; font-family: var(--f-mono); font-size: 9.5px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3); }
.tf.al { grid-column: 1 / -1; }
.tf input {
  width: 100%; padding: 2px 0 6px; border: none; border-bottom: 1px solid rgba(255, 255, 255, .16); border-radius: 0; outline: none; background: transparent;
  font-family: var(--f-sign); font-weight: 800; font-size: 30px; letter-spacing: .03em; text-transform: uppercase; color: var(--paper);
  transition: border-color .2s;
}
.tf input::placeholder { color: #3e3934; }
.tf input:focus { border-bottom-color: var(--heat); }
.tf.dt input { font-family: var(--f-mono); font-size: 16px; font-weight: 700; padding: 12px 0 8px; letter-spacing: .04em; }
.ticket .sugg, .ticket .btn { grid-column: 1 / -1; }
.sugg { display: flex; flex-wrap: wrap; gap: 6px; margin-top: -8px; }
.trk { margin-top: 18px; }
.sh-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }

/* ── settings ── */
.card {
  margin-top: 12px; padding: 16px; border-radius: 16px;
  background: linear-gradient(170deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .012));
  border: 1px solid rgba(255, 255, 255, .07);
}
.card .stencil { font-size: 24px; margin-bottom: 8px; }
.card p { margin-bottom: 8px; }
.gauge { position: relative; height: 18px; margin: 12px 0 6px; border-radius: 4px; overflow: hidden; background: rgba(255, 255, 255, .05); }
.gauge-fill { position: absolute; top: 0; bottom: 0; left: 0; width: var(--pct); background: linear-gradient(90deg, #c22d00, var(--heat) 60%, #ff8a4c); animation: grow 1.3s var(--ease-out) .3s both; }
.gauge-ticks { position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 calc(10% - 1px), rgba(0, 0, 0, .65) calc(10% - 1px) 10%); }
.gauge-scale { display: flex; justify-content: space-between; font-family: var(--f-mono); font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 10px; }
.notes { padding-left: 18px; display: grid; gap: 8px; font-size: 13px; color: var(--ink-2); }
.notes li::marker { color: var(--heat); }

/* ── sheets ── */
.sheet-back {
  position: fixed; inset: 0; z-index: 30; display: flex; align-items: flex-end; justify-content: center;
  background: rgba(4, 4, 4, .62); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px);
  animation: fade .22s ease both;
}
.sheet {
  position: relative; width: 100%; max-width: 640px; max-height: 90vh; overflow-y: auto; -webkit-overflow-scrolling: touch;
  padding: 10px 14px calc(18px + var(--safe-b)); border-radius: 24px 24px 0 0;
  background: radial-gradient(120% 40% at 50% 0%, rgba(255, 61, 0, .11), transparent 62%), #0d0c0c;
  border: 1px solid rgba(255, 255, 255, .08); border-bottom: none;
  animation: sheetUp .5s cubic-bezier(.2, .9, .25, 1.04) both;
}
@keyframes sheetUp { from { transform: translateY(40%); opacity: .4; } }
.sheet-grab { width: 40px; height: 4px; margin: 0 auto 12px; border-radius: 2px; background: rgba(255, 255, 255, .18); }
.sheet-x { position: absolute; top: 8px; right: 8px; z-index: 2; }
.sheet .pass-head { padding-right: 30px; }
.sheet.picker { height: 90vh; display: flex; flex-direction: column; gap: 12px; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pk-list { flex: 1; overflow-y: auto; margin: 0 -14px; padding: 0 14px 10px; -webkit-overflow-scrolling: touch; }
.pk-list .kick { padding: 16px 2px 6px; }
.pk-row {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 2px; border-bottom: 1px solid rgba(255, 255, 255, .05);
  animation: rise .45s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 30ms);
}
.pk-row:active { background: rgba(255, 255, 255, .04); }
.pk-row .flap i { color: var(--heat-2); }
.pk-row.chosen .flap i { color: #1a0700; background: linear-gradient(180deg, #ff6a2e 0%, var(--heat) 48%, #8a2100 48% 52%, var(--heat) 52%); }
.pk-txt { display: grid; min-width: 0; flex: 1; }
.pk-name { color: var(--paper); font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pk-sub { font-family: var(--f-mono); font-size: 10.5px; color: var(--ink-3); }
.pk-check { color: var(--heat-2); font-weight: 700; }
.pk-loc {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 14px 2px; border-bottom: 1px solid rgba(255, 255, 255, .05);
  font-family: var(--f-mono); font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--heat-2);
}
.pk-loc.busy .radar-dot { animation: spin 1.1s linear infinite; }
.pk-note { padding: 12px 2px; font-size: 12.5px; color: var(--ink-3); }

/* ── floating tab bar ── */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; padding: 0 14px calc(10px + var(--safe-b)); pointer-events: none; }
.tabbar-in {
  position: relative; max-width: 460px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); padding: 6px;
  border-radius: 22px; pointer-events: auto;
  background: rgba(20, 19, 18, .8); -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, .08); box-shadow: 0 14px 40px rgba(0, 0, 0, .65), inset 0 1px 0 rgba(255, 255, 255, .05);
  animation: rise .8s var(--ease-out) .25s both;
}
.tabbar button {
  position: relative; z-index: 1; display: grid; justify-items: center; gap: 3px; padding: 7px 0 6px; color: var(--ink-3);
  font-family: var(--f-mono); font-size: 9px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  transition: color .25s;
}
.tabbar button.on { color: var(--paper); }
.tabbar button.on .ic { color: var(--heat); filter: drop-shadow(0 0 6px rgba(255, 61, 0, .7)); }
.tab-ind {
  position: absolute; top: 6px; bottom: 6px; left: 6px; width: calc((100% - 12px) / 4); border-radius: 16px;
  background: radial-gradient(80% 100% at 50% 100%, rgba(255, 61, 0, .3), rgba(255, 61, 0, .05) 75%);
  border: 1px solid rgba(255, 61, 0, .35);
  transform: translateX(calc(var(--t) * 100%)); transition: transform .5s var(--ease-spring);
}

@media (min-width: 720px) {
  .r-city { font-size: 28px; }
  .row { grid-template-columns: 100px minmax(0, 1fr) auto; }
  .r-sub { font-size: 11.5px; gap: 12px; }
  .sheet-back { align-items: center; }
  .sheet { border-radius: 24px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
  .hero { font-size: 84px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .sweep { display: none; }
}

/* ── standby odds (meter: 4 bars, orange = better; purple ▼ / orange ▲ reasons) ── */
.row.has-arr.has-x { grid-template-areas: "t city arr" "t sub pill" "t x x"; }
.r-x { grid-area: x; display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 3px; padding-top: 7px; border-top: 1px dashed rgba(255, 255, 255, .09); }
.r-price { display: inline-flex; align-items: baseline; gap: 8px; }
.r-price b { font-family: var(--f-sign); font-weight: 900; font-size: 23px; line-height: 1; color: var(--paper); }
.r-price em { font-style: normal; font-family: var(--f-mono); font-size: 9px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #1a0700; background: var(--heat); padding: 2px 7px 1px; border-radius: 4px; }
.r-nofare { font-family: var(--f-mono); font-size: 9.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--kicker); }
.odds { display: inline-flex; align-items: center; gap: 7px; font-family: var(--f-mono); font-size: 9.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.odds-bars { display: inline-flex; align-items: flex-end; gap: 2px; height: 12px; }
.odds-bars i { width: 4px; border-radius: 1px; background: rgba(255, 255, 255, .12); transform-origin: bottom; }
.odds-bars i:nth-child(1) { height: 4px; } .odds-bars i:nth-child(2) { height: 7px; } .odds-bars i:nth-child(3) { height: 9.5px; } .odds-bars i:nth-child(4) { height: 12px; }
.odds-bars i.on { background: var(--heat); box-shadow: 0 0 6px rgba(255, 61, 0, .55); animation: barUp .5s var(--ease-out) both; animation-delay: calc(var(--n) * 70ms + 250ms); }
@keyframes barUp { from { transform: scaleY(0); } }
.odds.l4 .odds-lbl { color: var(--heat-2); }
.odds.l1 .odds-lbl { color: var(--calm-2); }
.odds.l0 .odds-lbl { color: var(--red); }
.odds-src { font-weight: 400; letter-spacing: .04em; text-transform: none; color: var(--kicker); }
.odds.mini { vertical-align: middle; margin-left: 6px; }
.faa { display: grid; gap: 6px; margin: 12px 0 2px; }
.faa-i { padding: 9px 12px; border-radius: 11px; font-size: 12.5px; color: var(--ink-2); background: rgba(159, 95, 255, .08); border: 1px solid rgba(159, 95, 255, .3); animation: rise .5s var(--ease-out) both; }
.faa-i b { font-family: var(--f-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--calm-2); margin-right: 8px; }
.faa-i span { color: var(--ink-3); }
.faa-i.ground_stop, .faa-i.closure { background: rgba(255, 46, 77, .08); border-color: rgba(255, 46, 77, .45); }
.faa-i.ground_stop b, .faa-i.closure b { color: var(--red); }
.oddsp { margin-top: 14px; padding: 14px; border-radius: 14px; background: rgba(255, 255, 255, .03); border: 1px solid rgba(255, 255, 255, .08); }
.oddsp-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.oddsp-head .odds { font-size: 11px; }
.oddsp-why { list-style: none; display: grid; gap: 6px; margin: 12px 0 2px; font-size: 12.5px; color: var(--ink-2); }
.oddsp-why li { position: relative; padding-left: 18px; }
.oddsp-why li::before { content: "•"; position: absolute; left: 4px; color: var(--ink-3); }
.oddsp-why li.up::before { content: "▲"; top: 2px; font-size: 9px; color: var(--heat-2); }
.oddsp-why li.down::before { content: "▼"; top: 2px; font-size: 9px; color: var(--calm-2); }

/* ── day theme ("day ops") — Settings → Look: Auto follows the phone, or pick Day / Night.
   Warm paper terminal in daylight; split-flap tiles stay dark, like real boards. ── */
:root[data-theme="day"] { --night: #f2ece2; --paper: #17130f; --ink-2: #4b443c; --ink-3: #7b7268; --kicker: #a2988c; --heat: #e93a00; --heat-2: #cf3300; --calm-2: #5b2fc9; --red: #cf0f2e; color-scheme: light; }
[data-theme="day"] .atmo {
  background:
    radial-gradient(120% 55% at 50% -16%, rgba(255, 140, 60, .30), transparent 62%),
    radial-gradient(70% 45% at 110% 105%, rgba(123, 47, 255, .10), transparent 70%),
    #f2ece2;
}
[data-theme="day"] .atmo::after { background: radial-gradient(rgba(60, 40, 20, .10) 1px, transparent 1.4px) 0 0 / 20px 20px; }
[data-theme="day"] .sweep { background: conic-gradient(from 0deg, rgba(255, 90, 20, .14), transparent 60deg); }
[data-theme="day"] .flap i { color: #f3ece2; }
[data-theme="day"] .flap i.z { color: #5a544e; }
[data-theme="day"] .ap-main .flap i, [data-theme="day"] .plan-from .flap i, [data-theme="day"] .pk-row .flap i,
[data-theme="day"] .loading .flap i, [data-theme="day"] .empty-start .flap i { color: #ff7a45; text-shadow: none; }
[data-theme="day"] .bt.late .flap i { color: #c9a8ff; }
[data-theme="day"] .row, [data-theme="day"] .place { background: #fffcf7; border-color: rgba(40, 25, 10, .08); box-shadow: 0 1px 2px rgba(40, 25, 10, .05); }
[data-theme="day"] .row:active { background: #f7f0e6; }
[data-theme="day"] .sticky { background: rgba(242, 236, 226, .9); border-bottom-color: rgba(40, 25, 10, .08); }
[data-theme="day"] .dir, [data-theme="day"] .seg, [data-theme="day"] .search-field, [data-theme="day"] .chip, [data-theme="day"] .btn:not(.primary) { background: #fffcf7; border-color: rgba(40, 25, 10, .12); }
[data-theme="day"] .chip.on, [data-theme="day"] .seg-ind { background: rgba(233, 58, 0, .09); border-color: rgba(233, 58, 0, .55); }
[data-theme="day"] .dir::before { background: linear-gradient(180deg, transparent, rgba(233, 58, 0, .10)); }
[data-theme="day"] .pill.ok { border-color: rgba(40, 25, 10, .18); color: var(--ink-2); }
[data-theme="day"] .pill.sched { border-color: rgba(40, 25, 10, .1); }
[data-theme="day"] .pill.late { color: #4f24b8; background: rgba(123, 47, 255, .10); border-color: rgba(123, 47, 255, .35); }
[data-theme="day"] .pill.air { color: #4f24b8; }
[data-theme="day"] .pill.gone { border-color: rgba(40, 25, 10, .08); }
[data-theme="day"] .tabbar-in { background: rgba(255, 252, 247, .86); border-color: rgba(40, 25, 10, .1); box-shadow: 0 14px 40px rgba(40, 25, 10, .14); }
[data-theme="day"] .tabbar button.on .ic { filter: none; }
[data-theme="day"] .plan, [data-theme="day"] .fares, [data-theme="day"] .card, [data-theme="day"] .conn, [data-theme="day"] .ticket,
[data-theme="day"] .faa-i, [data-theme="day"] .oddsp, [data-theme="day"] .notice, [data-theme="day"] .fare-cta { background: #fffcf7; border-color: rgba(40, 25, 10, .1); }
[data-theme="day"] .conn-head { background: linear-gradient(100deg, rgba(233, 58, 0, .12), rgba(233, 58, 0, .02) 70%); border-bottom-color: rgba(40, 25, 10, .12); }
[data-theme="day"] .odds-bars i { background: rgba(40, 25, 10, .12); }
[data-theme="day"] .r-x { border-top-color: rgba(40, 25, 10, .1); }
[data-theme="day"] .pass-top, [data-theme="day"] .pass-stub { background: #fffcf7; }
[data-theme="day"] .pass { filter: drop-shadow(0 12px 22px rgba(40, 25, 10, .16)); }
[data-theme="day"] .pass-stub::before { border-top-color: rgba(40, 25, 10, .16); }
[data-theme="day"] .barcode { color: rgba(23, 19, 15, .55); }
[data-theme="day"] .sheet { background: radial-gradient(120% 40% at 50% 0%, rgba(255, 120, 40, .14), transparent 62%), #f6f0e7; border-color: rgba(40, 25, 10, .1); }
[data-theme="day"] .sheet-back { background: rgba(40, 25, 10, .35); }
[data-theme="day"] .sheet-grab { background: rgba(40, 25, 10, .2); }
[data-theme="day"] .pk-row, [data-theme="day"] .pk-loc { border-bottom-color: rgba(40, 25, 10, .08); }
[data-theme="day"] .tf input { border-bottom-color: rgba(40, 25, 10, .2); }
[data-theme="day"] .tf input::placeholder { color: #c9bfb2; }
[data-theme="day"] .gauge { background: rgba(40, 25, 10, .08); }
[data-theme="day"] .demo-bar { color: #b02c00; }
[data-theme="day"] .odds-bars i.on, [data-theme="day"] .pill.board, [data-theme="day"] .r-price em { box-shadow: none; }
