:root {
  --bg: #080A0B;
  --raised: #141715;
  --raised-2: #1B1F1C;
  --text: #F0EBDD;
  --text-2: #AAA99F;
  --muted: #7E7D74;
  --line: #30332F;
  --line-soft: #1F221F;
  --lime: #D6FF62;
  --lime-ink: #1B2400;
  --l0: #70E5B1;
  --l1: #66BCFF;
  --l2: #FFC164;
  --l3: #FF6F91;
  --display: "Space Grotesk", "Heebo", system-ui, sans-serif;
  --body: "Heebo", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --w: 1240px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
html { background: var(--bg); color-scheme: dark; }
body { margin: 0; overflow-x: hidden; background: var(--bg); color: var(--text); font: 400 15px/1.5 var(--body); -webkit-font-smoothing: antialiased; }
.page { max-width: var(--w); margin: 0 auto; padding: 22px 48px 56px; }
h1, h2 { margin: 0; font-family: var(--display); font-weight: 700; letter-spacing: -0.02em; }
h1 { font-size: clamp(38px, 5.2vw, 64px); line-height: 0.98; }
h2 { font-size: 30px; line-height: 1.1; }
svg { width: 1em; height: 1em; flex: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }
.mono, .util, .eyebrow, .lbl, .day-chips .chip, .term-pick select, .legend, .hint, .tip, .disc, .pass .k, .pass .v, .fields .v, .fields .k, td:first-child, td.codes, .pass .v, .foot { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.eyebrow { font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--lime); margin: 0 0 10px; }
hr, .rule { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* Utility header */
.util { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 12px; line-height: 1; letter-spacing: 0.22em; text-transform: uppercase; color: var(--text-2); padding-bottom: 14px; border-bottom: 1px solid var(--line); }

.util-r { display: inline-flex; gap: 16px; align-items: center; }
.util a.lang { display: inline-flex; align-items: center; height: 24px; color: var(--lime); text-decoration: none; border: 1px solid var(--lime); border-radius: 3px; padding: 0 8px; letter-spacing: 0.04em; text-transform: none; font-family: var(--body); font-size: 12px; line-height: 1; }
.util a.lang:hover { background: rgba(214,255,98,0.1); }
[dir=rtl] .go svg, [dir=rtl] .board summary h2::after { transform: scaleX(-1); }
[dir=rtl] .foot .brand svg { transform: rotate(-45deg); }
[dir=rtl] .logo { transform: rotate(-45deg); }
[dir=rtl] .token .n, [dir=rtl] .fields .v, [dir=rtl] .pool-bars .val, [dir=rtl] td:first-child, [dir=rtl] td.codes { direction: ltr; unicode-bidi: isolate; }
[dir=rtl] .day-chips .chip, [dir=rtl] .hint, [dir=rtl] .legend { letter-spacing: 0; }
[dir=rtl] .lbl, [dir=rtl] .fields .k, [dir=rtl] .pass .k, [dir=rtl] .eyebrow, [dir=rtl] .util, [dir=rtl] th, [dir=rtl] .disc, [dir=rtl] .term-pick select, [dir=rtl] .legend, [dir=rtl] .hint, [dir=rtl] .day-chips .chip, [dir=rtl] .tip, [dir=rtl] .foot, [dir=rtl] .sel select, [dir=rtl] .pool-bars .who small { font-family: var(--body); letter-spacing: 0.02em; font-weight: 500; }
[dir=rtl] .fields .v, [dir=rtl] .pass .v, [dir=rtl] .cell input { font-family: var(--mono); }
[dir=rtl] h1, [dir=rtl] h2, [dir=rtl] .verdict .word { letter-spacing: 0; font-family: var(--body); font-weight: 700; }
[dir=rtl] .go { font-family: var(--body); }
[dir=rtl] .token .name { font-family: var(--body); }

/* Picker bar (phones): shows the chosen flight, opens the search */
.picker { display: none; }
@media (max-width: 900px) {
  .util { order: -1; }
  .picker { order: 0; display: flex; align-items: center; gap: 12px; width: 100%; margin: 14px 0 4px; padding: 10px; padding-inline-start: 16px; background: var(--raised); border: 1px solid var(--line); border-radius: 12px; color: var(--text); cursor: pointer; text-align: start; font: inherit; }
  .picker:active { background: var(--raised-2); }
  .picker-ic { width: 22px; height: 22px; color: var(--text-2); flex: none; }
  .picker.has-sel .picker-ic { color: var(--lime); }
  .picker-text { display: flex; flex-direction: column; gap: 2px; flex: 1 1 auto; min-width: 0; }
  .picker-text b { font-family: var(--display); font-size: 17px; font-weight: 700; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  [dir=rtl] .picker-text b { font-family: var(--body); }
  .picker-text small { font-size: 13px; color: var(--text-2); line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .picker-cta { flex: none; background: var(--lime); color: var(--lime-ink); font-family: var(--display); font-weight: 700; font-size: 14px; padding: 10px 14px; border-radius: 8px; }
  [dir=rtl] .picker-cta { font-family: var(--body); }
}

/* Hero */
.hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; padding: 26px 0 22px; }
.hero-sub { margin: 0 0 8px; max-width: 30ch; color: var(--text-2); font-size: 17px; line-height: 1.4; }

/* Search rail */
.ask-toggle, .fab, .sheet-back { display: none; }
@media (max-width: 900px) { .fab { display: inline-flex; } .sheet-back:not([hidden]) { display: block; } }
.modes { display: flex; gap: 28px; margin-bottom: 4px; }
.mode { background: none; border: 0; padding: 8px 0; cursor: pointer; font-size: 15px; font-weight: 500; color: var(--text-2); border-bottom: 2px solid transparent; }
.mode.is-on { color: var(--lime); border-bottom-color: var(--lime); }
.rail { display: flex; align-items: stretch; gap: 0; border-top: 1px solid var(--line); }
.cell { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 12px 0; padding-inline-end: 18px; margin-inline-end: 18px; border-bottom: 1px solid var(--line); min-width: 150px; }
.cell.grow { flex: 1 1 220px; }
.cell + .cell::before { content: ""; position: absolute; inset-inline-start: -18px; top: 12px; bottom: 12px; border-inline-start: 1px solid var(--line); }
.lbl { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.cell input, .cell select { background: none; border: 0; padding: 0; color: var(--text); font: 500 18px/1.3 var(--mono); outline: none; appearance: none; width: 100%; min-width: 0; }
.cell input[type=text] { text-transform: uppercase; letter-spacing: 0.06em; direction: ltr; text-align: start; }
.cell input[type=time] { direction: ltr; }
.cell input::placeholder { color: var(--muted); }
.cell input[type=time]::-webkit-calendar-picker-indicator { display: none; }
.cell:focus-within { border-bottom-color: var(--lime); }
.sel { position: relative; display: flex; align-items: center; }
.sel select { padding-inline-end: 26px; cursor: pointer; }
.sel select option { background: var(--raised); color: var(--text); }
.sel svg { position: absolute; inset-inline-end: 4px; width: 16px; height: 16px; color: var(--text-2); pointer-events: none; }
.go { align-self: center; margin-inline-start: auto; min-height: 50px; padding: 0 22px; border: 0; border-radius: 5px; cursor: pointer; background: var(--lime); color: var(--lime-ink); font-family: var(--display); font-size: 17px; font-weight: 700; display: inline-flex; align-items: center; gap: 10px; transition: filter 160ms, transform 160ms, box-shadow 160ms; }
.go svg { width: 20px; height: 20px; }
.go:hover, .go:focus-visible { filter: brightness(1.06); transform: translateY(-1px); box-shadow: 0 0 0 1px rgba(214,255,98,.5), 0 0 22px rgba(214,255,98,.25); }
.go:active { transform: none; transition-duration: 90ms; }
.note { margin: 12px 0 0; color: var(--text-2); }
.note.err { color: var(--l3); }

/* Flight suggestions */
.cell { position: relative; }
.suggest { position: absolute; inset-inline-start: 0; top: 100%; z-index: 20; margin: 0; padding: 6px 0; list-style: none; min-width: 100%; width: max-content; max-width: min(520px, 92vw); background: var(--raised); border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 18px 50px rgba(0,0,0,0.55); max-height: 320px; overflow-y: auto; }
.suggest li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 4px 14px; align-items: center; padding: 9px 14px; cursor: pointer; }
.suggest li:hover, .suggest li[aria-selected=true] { background: var(--raised-2); }
.suggest .code { font-family: var(--mono); font-size: 15px; letter-spacing: 0.04em; color: var(--text); direction: ltr; unicode-bidi: isolate; }
.suggest .city { font-size: 14px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.suggest .city small { display: block; font-size: 12px; color: var(--muted); }
.suggest .dir-ic { width: 18px; height: 18px; vertical-align: -4px; margin-inline-end: 8px; color: var(--lime); }
[dir=rtl] .suggest .dir-ic { transform: scaleX(-1); }
.suggest .when { font-family: var(--mono); font-size: 12px; color: var(--text-2); white-space: nowrap; text-align: end; }
.suggest .when b { display: block; font-weight: 500; color: var(--text); font-size: 13px; }
.suggest .when i { font-style: normal; color: var(--lime); }
.suggest .none { padding: 10px 14px; color: var(--muted); font-size: 14px; cursor: default; display: block; }
[dir=rtl] .suggest .city { font-family: var(--body); }
@media (max-width: 900px) { .suggest { position: static; width: 100%; max-width: none; box-shadow: none; margin-top: 8px; max-height: 40vh; } }

/* Result strip */
.verdict { display: flex; align-items: stretch; gap: 0; margin: 22px 0 8px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.verdict > * { animation: settle 220ms ease-out both; }
@keyframes settle { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
.verdict .status { display: flex; align-items: center; gap: 18px; padding-inline-end: 28px; }
.lamp { width: 26px; height: 26px; border-radius: 50%; background: var(--lvl); box-shadow: 0 0 0 4px color-mix(in srgb, var(--lvl) 18%, transparent), 0 0 24px color-mix(in srgb, var(--lvl) 55%, transparent); flex: none; }
.verdict .word { font-family: var(--display); font-size: clamp(40px, 5vw, 60px); font-weight: 700; letter-spacing: -0.03em; line-height: 1; white-space: nowrap; }
.fields { display: flex; align-items: center; flex: 1 1 auto; }
.fields .f { padding: 4px 26px; border-inline-start: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.fields .k { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.fields .v { font-size: 24px; font-weight: 500; line-height: 1.1; white-space: nowrap; }
.fields .v.warn { color: var(--l3); }
.pass { display: flex; align-items: stretch; margin-inline-start: auto; border: 1px solid var(--text-2); border-radius: 8px; overflow: hidden; position: relative; background: var(--bg); }
.pass .seg-a, .pass .seg-b { padding: 10px 18px; display: flex; flex-direction: column; justify-content: center; gap: 2px; }
.pass .seg-b { border-inline-start: 1px dashed var(--text-2); position: relative; }
.pass .seg-b::before, .pass .seg-b::after { content: ""; position: absolute; inset-inline-start: -8px; width: 15px; height: 15px; border-radius: 50%; background: var(--bg); border: 1px solid var(--text-2); }
.pass .seg-b::before { top: -9px; } .pass .seg-b::after { bottom: -9px; }
.pass .k { font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-2); line-height: 1.35; }
.pass .v { font-size: 22px; font-weight: 500; letter-spacing: 0.06em; line-height: 1.1; margin-top: 2px; }
.pass .v.big { font-size: 40px; font-weight: 500; letter-spacing: 0.02em; display: flex; align-items: center; gap: 12px; }
.pass .v.big svg { width: 20px; height: 20px; color: var(--text-2); }
.verdict-more { margin: 0 0 18px; font-size: 14px; color: var(--text-2); display: flex; flex-wrap: wrap; gap: 6px 22px; align-items: center; }
.verdict-more b { color: var(--text); font-weight: 600; }
.verdict-more .idx { display: inline-flex; align-items: center; gap: 10px; }
.verdict-more .bar { width: 90px; height: 3px; background: var(--line); border-radius: 2px; overflow: hidden; }
.verdict-more .bar i { display: block; height: 100%; background: var(--lvl); }
.verdict-more .change { margin-inline-start: auto; background: none; border: 1px solid var(--line); border-radius: 4px; color: var(--lime); font-size: 13px; padding: 6px 12px; cursor: pointer; }
.verdict-more .change:hover { border-color: var(--lime); }

/* Chart */
.chart-sec { padding-top: 22px; }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 8px; }
.tabs { display: flex; gap: 24px; }
.tabs label { position: relative; }
.tabs input { position: absolute; opacity: 0; pointer-events: none; }
.tabs i { display: block; font-style: normal; font-size: 16px; font-weight: 500; color: var(--text-2); padding: 6px 0; border-bottom: 2px solid transparent; cursor: pointer; }
.tabs input:checked + i { color: var(--text); border-bottom-color: var(--lime); }
.tabs input:focus-visible + i { outline: 2px solid var(--lime); outline-offset: 3px; }
.tabs.small i { font-size: 13px; }
.pager { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; margin: 4px 0 2px; }
.y-title { font-size: 13px; color: var(--text-2); }
.pager-mid { display: flex; align-items: center; gap: 8px; justify-content: center; }
.day-chips { display: flex; gap: 6px; }
.day-chips .chip { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-2); background: none; border: 1px solid transparent; border-radius: 4px; padding: 7px 12px; cursor: pointer; white-space: nowrap; }
.day-chips .chip.is-on { color: var(--lime); border-color: var(--lime); }
.day-chips .chip.is-past { color: var(--muted); }
.icon-btn { width: 34px; height: 34px; border-radius: 4px; border: 1px solid transparent; background: none; color: var(--text-2); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn:hover { color: var(--text); border-color: var(--line); }
.icon-btn:disabled { opacity: 0.3; cursor: default; border-color: transparent; }
.term-pick { justify-self: end; position: relative; display: inline-flex; align-items: center; }
.term-pick select { appearance: none; background: none; border: 0; color: var(--text-2); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; padding: 6px 6px; padding-inline-end: 24px; cursor: pointer; }
.term-pick select option { background: var(--raised); text-transform: none; letter-spacing: 0; }
.term-pick svg { position: absolute; inset-inline-end: 4px; pointer-events: none; width: 16px; height: 16px; color: var(--text-2); }
.chart-wrap { position: relative; height: 340px; }
.fly { position: absolute; left: 0; top: 0; pointer-events: none; opacity: 0; color: var(--lime); filter: drop-shadow(0 0 6px rgba(214,255,98,0.7)); }
.fly svg { width: 18px; height: 18px; display: block; }
canvas { display: block; width: 100%; height: 100%; touch-action: pan-y; cursor: grab; }
canvas.is-dragging { cursor: grabbing; }
.tip { position: absolute; pointer-events: none; display: none; background: var(--text); color: var(--bg); font-size: 12px; letter-spacing: 0.04em; padding: 6px 10px; border-radius: 4px; white-space: nowrap; transform: translate(-50%, -100%); z-index: 2; }
.tip b { font-weight: 500; }
.tip small { font-size: 12px; opacity: 0.7; }
.loading { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 15px; }
.loading.err { color: var(--l3); }
.chart-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 6px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.legend { display: flex; gap: 22px; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-2); }
.lv { position: relative; padding-inline-start: 20px; }
.lv::before { content: ""; position: absolute; inset-inline-start: 0; top: 2px; width: 11px; height: 11px; border-radius: 50%; box-shadow: 0 0 8px currentColor; }
.lv.l0::before { background: var(--l0); color: var(--l0); } .lv.l1::before { background: var(--l1); color: var(--l1); } .lv.l2::before { background: var(--l2); color: var(--l2); } .lv.l3::before { background: var(--l3); color: var(--l3); }
.nav { display: flex; align-items: center; gap: 8px; }
.hint { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-2); margin-inline-end: 10px; }
.hint svg { width: 16px; height: 16px; }
.text-btn { background: none; border: 1px solid var(--line); border-radius: 4px; color: var(--text); font-size: 13px; padding: 7px 12px; cursor: pointer; margin-inline-end: 8px; }
.text-btn:hover { border-color: var(--text-2); }

/* Country pool */
.pool-sec { padding-top: 6px; border-bottom: 1px solid var(--line); }
.pool-sec summary, .board summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; }
.pool-sec summary::-webkit-details-marker, .board summary::-webkit-details-marker { display: none; }
.pool-sec summary .eyebrow { margin: 10px 0 0; color: var(--text-2); }
.disc { display: inline-flex; align-items: center; gap: 12px; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-2); text-align: end; }
.disc svg { width: 18px; height: 18px; transition: transform 200ms; }
.pool-sec[open] summary .disc svg { transform: rotate(180deg); }
.board[open] summary .disc svg { transform: rotate(45deg); }
.pool-body { padding-bottom: 20px; }
.pool-stage { position: relative; height: 380px; touch-action: none; user-select: none; -webkit-user-select: none; }
.token { position: absolute; left: 0; top: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; border-radius: 50%; cursor: grab; will-change: transform; text-align: center; line-height: 1.15; color: var(--text);
  background: radial-gradient(circle at 35% 30%, rgba(240,235,221,0.10), rgba(240,235,221,0.02) 45%, rgba(0,0,0,0) 70%), var(--raised);
  border: 1px solid rgba(170,169,159,0.55);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.03), inset 0 -10px 24px rgba(0,0,0,0.45), 0 0 0 0 rgba(240,235,221,0);
  transition: box-shadow 180ms, border-color 180ms; }
.token:hover { border-color: rgba(240,235,221,0.8); }
.token.is-held { cursor: grabbing; z-index: 3; border-color: var(--text); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.05), 0 0 0 6px rgba(240,235,221,0.06), 0 0 30px rgba(240,235,221,0.18); }
.token.is-pop { animation: tokenpop 500ms ease-out; }
@keyframes tokenpop { 0% { box-shadow: 0 0 0 0 rgba(240,235,221,0.35); } 100% { box-shadow: 0 0 0 26px rgba(240,235,221,0); } }
.token .flag { font-size: var(--flag, 16px); line-height: 1; margin-bottom: 3px; opacity: 0.9; }
.token .name { font-family: var(--display); font-weight: 500; font-size: var(--fs, 13px); max-width: 88%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.token .n { font-family: var(--mono); font-size: calc(var(--fs, 13px) - 1px); color: var(--text-2); }
.pool-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 8px; }
.pool-detail { margin: 0; color: var(--text-2); font-size: 14px; }
.pool-detail b { color: var(--text); font-weight: 600; }
.pool-empty { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--muted); }
.pool-bars { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; column-gap: 16px; row-gap: 4px; align-items: center; font-size: 14px; padding: 6px 0; }
.pool-bars .row { display: contents; cursor: pointer; }
.pool-bars .who { display: flex; align-items: center; gap: 10px; white-space: nowrap; padding: 5px 0; }
.pool-bars .who .flag { font-size: 16px; line-height: 1; }
.pool-bars .who small { color: var(--muted); font-family: var(--mono); font-size: 12px; }
.pool-bars .bar { height: 10px; background: var(--raised); border-radius: 2px; overflow: hidden; }
.pool-bars .bar i { display: block; height: 100%; background: var(--text-2); border-radius: 2px; }
.pool-bars .row:hover .bar i, .pool-bars .row.is-on .bar i { background: var(--text); }
.pool-bars .row.is-on .who { color: var(--lime); }
.pool-bars .val { font-family: var(--mono); color: var(--text-2); text-align: end; white-space: nowrap; font-size: 13px; }
.pool-bars .val b { color: var(--text); font-weight: 500; }

/* Flights */
.board summary h2 { font-size: 20px; display: flex; align-items: center; gap: 12px; }
.board summary h2::after { content: ""; width: 22px; height: 1px; background: var(--text-2); }
.board { border-bottom: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; margin-bottom: 20px; }
th { text-align: start; font-family: var(--mono); font-weight: 400; color: var(--muted); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; padding: 8px 12px 8px 0; border-bottom: 1px solid var(--line); }
td { padding: 10px 0; padding-inline-end: 12px; border-bottom: 1px solid var(--line-soft); vertical-align: top; white-space: nowrap; }
td.city { white-space: normal; }
td.city small { display: block; color: var(--muted); font-size: 12px; }
td.codes small { display: block; color: var(--muted); font-size: 12px; }
td.airline { color: var(--text-2); white-space: normal; font-size: 13px; }
td.status { color: var(--text-2); }
td.status.bad { color: var(--l3); }
td.status.good { color: var(--l0); }
tr.is-you td { background: rgba(214,255,98,0.06); }
tr.is-you td:first-child { border-inline-start: 2px solid var(--lime); padding-inline-start: 10px; }

.foot { display: flex; justify-content: space-between; gap: 24px; align-items: center; margin-top: 18px; color: var(--muted); font-size: 11px; letter-spacing: 0.06em; }
.foot .brand { letter-spacing: 0.22em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; }
.foot .brand svg { width: 16px; height: 16px; transform: rotate(45deg); }

@media (prefers-reduced-motion: reduce) {
  .verdict > * { animation: none; }
  .token.is-pop { animation: none; }
  .go, .disc svg, .token { transition: none; }
}

@media (max-width: 900px) {
  .page { padding: 16px 16px 44px; display: flex; flex-direction: column; }
  .util { order: 0; font-size: 11px; letter-spacing: 0.12em; padding-bottom: 12px; }
  .util-r { gap: 10px; }
  .hero { display: none; }
  .chart-sec { order: 1; padding-top: 14px; }
  .verdict { order: 2; }
  #verdictMore { order: 3; }
  .ask { order: 4; margin-top: 8px; border-bottom: 1px solid var(--line); }
  .pool-sec { order: 5; }
  .board { order: 6; }
  .foot { order: 7; }
  /* search lives in a bottom sheet, opened by the floating button */
  .ask { display: none; }
  .ask.is-open { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; margin: 0; padding: 0 16px calc(16px + env(safe-area-inset-bottom)); background: var(--raised); border: 1px solid var(--line); border-bottom: 0; border-radius: 16px 16px 0 0; max-height: 88vh; overflow-y: auto; box-shadow: 0 -20px 60px rgba(0,0,0,0.6); will-change: transform; }
  .ask-toggle { display: flex; width: 100%; justify-content: space-between; align-items: center; background: none; border: 0; padding: 18px 0 12px; cursor: pointer; font-family: var(--display); font-size: 20px; font-weight: 700; color: var(--text); position: sticky; top: 0; background: var(--raised); }
  [dir=rtl] .ask-toggle { font-family: var(--body); }
  .ask-toggle::before { content: ""; position: absolute; top: 8px; left: 50%; width: 40px; height: 4px; border-radius: 2px; background: var(--line); transform: translateX(-50%); }
  .ask-toggle svg { width: 22px; height: 22px; color: var(--text-2); }
  .ask-body { display: block; padding-bottom: 8px; }
  .modes { gap: 20px; }
  .cell { padding: 12px 0; }
  .sheet-back { position: fixed; inset: 0; background: rgba(8,10,11,0.6); z-index: 29; }
  body.sheet-open { overflow: hidden; }
  .fab { position: fixed; z-index: 28; bottom: calc(18px + env(safe-area-inset-bottom)); inset-inline-end: 20px; display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 20px 0 18px; border: 0; border-radius: 26px; background: var(--lime); color: var(--lime-ink); font-family: var(--display); font-size: 16px; font-weight: 700; box-shadow: 0 4px 14px rgba(214,255,98,0.22), 0 2px 6px rgba(0,0,0,0.5); cursor: pointer; }
  [dir=rtl] .fab { font-family: var(--body); }
  .fab svg { width: 20px; height: 20px; transform: rotate(45deg); }
  [dir=rtl] .fab svg { transform: rotate(-45deg); }
  .fab { transition: transform 220ms cubic-bezier(.2,.8,.2,1), opacity 180ms; }
  .fab.is-hidden { transform: scale(.6) translateY(12px); opacity: 0; pointer-events: none; }
  .page { padding-bottom: 96px; }
  .sec-head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .hero { flex-direction: column; align-items: flex-start; gap: 12px; padding: 20px 0 14px; }
  h1 { font-size: 36px; }
  h2 { font-size: 24px; }
  .rail { flex-wrap: wrap; }
  .cell { min-width: 0; flex: 1 1 45%; margin-right: 0; padding-right: 12px; }
  .cell + .cell::before { display: none; }
  .go { width: 100%; justify-content: center; margin: 12px 0 0; }
  .verdict { flex-wrap: wrap; gap: 14px; padding: 18px 0; }
  .verdict .status { padding-inline-end: 0; width: 100%; gap: 14px; }
  .lamp { width: 20px; height: 20px; }
  .verdict .word { font-size: 40px; }
  .fields { display: grid; grid-template-columns: 1.45fr 1fr 1fr; gap: 12px 14px; width: 100%; }
  .fields .f { padding: 10px 0 0; border-inline-start: 0; border-top: 1px solid var(--line); min-width: 0; }
  .fields .f:nth-child(n+4) { grid-column: 1 / -1; }
  .fields .k { white-space: normal; font-size: 10px; line-height: 1.3; min-height: 26px; }
  .fields .v { font-size: 19px; letter-spacing: -0.01em; }
  .pass { margin-inline-start: 0; width: 100%; margin-top: 4px; }
  .pass .seg-a, .pass .seg-b { flex: 1 1 50%; padding: 12px 16px; }
  .pass .v.big { font-size: 34px; justify-content: space-between; }
  .verdict-more { font-size: 13px; gap: 8px 16px; }
  .verdict-more .idx { width: 100%; }
  .verdict-more .change { margin-inline-start: 0; width: 100%; text-align: center; padding: 10px; font-size: 14px; }
  .fab { z-index: 31; bottom: max(18px, calc(12px + env(safe-area-inset-bottom))); }
  .pager { grid-template-columns: 1fr; gap: 6px; }
  .y-title { display: none; }
  .term-pick { justify-self: center; }
  .day-chips .chip { padding: 7px 9px; }
  .chart-wrap { height: 280px; }
  .chart-foot { flex-direction: column; align-items: flex-start; }
  .legend { flex-wrap: wrap; gap: 12px 18px; }
  .hint { display: none; }
  .pool-stage { height: 400px; }
  .pool-foot { flex-direction: column; align-items: flex-start; }
  .pool-sec summary { flex-direction: column; align-items: flex-start; gap: 10px; padding: 18px 0 14px; }
  .pool-sec summary .disc { width: 100%; justify-content: space-between; text-align: start; }
  .pool-sec summary .eyebrow { margin-top: 6px; font-size: 11px; }
  .token .name { max-width: 92%; }
  /* flights: two-line rows instead of a table */
  .board thead { display: none; }
  .board table, .board tbody { display: block; margin-bottom: 12px; }
  .board tr { display: grid; grid-template-columns: 62px minmax(0, 1fr) auto; grid-template-areas: "time flight status" "time city status"; column-gap: 12px; row-gap: 2px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); align-items: center; }
  .board td { display: block; padding: 0; border: 0; white-space: normal; }
  .board td:first-child { grid-area: time; font-size: 17px; }
  .board td:first-child span { display: block; font-size: 12px; }
  .board td.codes { grid-area: flight; font-size: 15px; }
  .board td.codes small { display: inline; font-size: 12px; margin-inline-start: 8px; }
  .board td.city { grid-area: city; font-size: 13px; color: var(--text-2); }
  .board td.city small { display: inline; margin-inline-start: 8px; }
  .board td.airline { display: none; }
  .board td.status { grid-area: status; font-size: 13px; text-align: end; }
  .board tr.is-you { background: rgba(214,255,98,0.06); border-inline-start: 2px solid var(--lime); padding-inline-start: 10px; }
  .board tr.is-you td:first-child { border: 0; padding-inline-start: 0; }
  [dir=rtl] .board td:first-child, [dir=rtl] .board td.codes { text-align: right; }
  [dir=rtl] .board td.status { text-align: left; }
  .foot { flex-direction: column; align-items: flex-start; }
}
