/* LAVNAV: looks like a maps app, works like a flight tracker. System fonts; B612 Mono (Airbus cockpit font) for codes. */
@font-face { font-family: "B612 Mono"; font-weight: 700; font-display: swap; src: url(/static/fonts/b612mono-700.woff2) format("woff2"); }

:root {
  --blue: #0a7cff; --blue-ink: #fff; --plane: #f7b500; --go: #1f9d5c; --soon: #e98300; --no: #e0393e;
  --bg: #f2f3f5; --card: #ffffff; --ink: #121821; --soft: #5f6b7a; --line: #e4e7eb; --chip: #eef1f4;
  --shadow: 0 6px 24px rgba(16,24,40,.14); --r: 18px;
  --ui: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "B612 Mono", ui-monospace, Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0d1117; --card: #1a1f27; --ink: #eef2f6; --soft: #9aa6b4; --line: #2a313b; --chip: #242b35; --shadow: 0 6px 24px rgba(0,0,0,.45); }
}
:root.night { --bg: #0d1117; --card: #1a1f27; --ink: #eef2f6; --soft: #9aa6b4; --line: #2a313b; --chip: #242b35; --shadow: 0 6px 24px rgba(0,0,0,.45); }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--ink); font: 16px/1.45 var(--ui); }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
h1, h2, h3 { margin: 0; }

.go { display: block; width: 100%; border: 0; border-radius: 14px; padding: 14px 16px; background: var(--blue); color: var(--blue-ink); font-weight: 700; font-size: 16px; cursor: pointer; }
.go:active { opacity: .85; }
.ghost { display: block; width: 100%; border: 1.5px solid var(--line); border-radius: 14px; padding: 13px 16px; background: transparent; font-weight: 600; cursor: pointer; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--chip); border-radius: 12px; padding: 3px; gap: 3px; }
.seg button { border: 0; background: transparent; border-radius: 9px; padding: 9px 6px; font-weight: 600; font-size: 14px; cursor: pointer; }
.seg button.on { background: var(--card); box-shadow: 0 1px 4px rgba(0,0,0,.15); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips button { border: 0; background: var(--chip); border-radius: 999px; padding: 9px 14px; font-size: 14px; font-weight: 600; cursor: pointer; }
.chips button.on { background: var(--blue); color: #fff; }
.chips button .n { opacity: .65; font-weight: 500; margin-left: 4px; }
.fine { font-size: 13px; color: var(--soft); margin: 10px 0 0; }
.err { color: var(--no); font-weight: 600; font-size: 15px; margin: 12px 2px 0; }
.err:empty { display: none; }

/* ---------- find your flight ---------- */
.find { min-height: 100%; background: var(--bg); padding-bottom: 40px; }
.brandbar { display: flex; align-items: center; gap: 10px; padding: 14px 18px; padding-top: max(14px, env(safe-area-inset-top)); background: #0e2238; color: #fff; }
.logo { width: 32px; height: 32px; }
.wordmark { font-family: var(--mono); font-weight: 700; font-size: 18px; letter-spacing: .16em; }
.find-inner { max-width: 560px; margin: 0 auto; padding: 18px 16px 0; }
.find h1 { font-size: 30px; letter-spacing: -.01em; margin: 4px 0 14px; }
.box { position: relative; background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); }
.apfield { position: relative; padding: 12px 16px 12px; }
#toField { border-top: 1px solid var(--line); }
.apfield .k { display: block; font-size: 12px; font-weight: 700; color: var(--soft); text-transform: uppercase; letter-spacing: .06em; }
.apfield input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); font: 600 20px var(--ui); padding: 2px 56px 0 0; }
.near { position: absolute; right: 56px; top: 10px; border: 0; background: transparent; color: var(--blue); font-size: 13px; font-weight: 600; cursor: pointer; padding: 2px 4px; }
.swap { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--card); font-size: 18px; cursor: pointer; z-index: 2; color: var(--blue); }
.sugg { position: absolute; left: 8px; right: 8px; top: 100%; margin: 4px 0 0; padding: 6px 0; list-style: none; background: var(--card); border-radius: 14px;
  box-shadow: var(--shadow); z-index: 20; max-height: 300px; overflow-y: auto; }
.sugg li { display: grid; grid-template-columns: 52px 1fr; gap: 6px; align-items: center; padding: 9px 12px; cursor: pointer; }
.sugg li:hover, .sugg li.act { background: var(--chip); }
.sugg .c { font-family: var(--mono); font-weight: 700; font-size: 15px; }
.sugg .n { font-size: 14px; line-height: 1.25; }
.sugg .n small { display: block; color: var(--soft); font-size: 12.5px; }
#results { margin-top: 18px; }
.flights { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.flights li { background: var(--card); border-radius: 14px; padding: 12px 14px; display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; align-items: center;
  cursor: pointer; box-shadow: 0 1px 3px rgba(16,24,40,.08); }
.flights li:active { transform: scale(.99); }
.flights .fn { font-family: var(--mono); font-weight: 700; font-size: 17px; }
.flights .fs { font-size: 13px; color: var(--soft); grid-column: 1; }
.flights .st { grid-row: 1 / span 2; grid-column: 2; font-size: 12px; font-weight: 700; padding: 4px 9px; border-radius: 999px; background: var(--chip); color: var(--soft); white-space: nowrap; }
.flights .st.air { background: rgba(10,124,255,.12); color: var(--blue); } .flights .st.gnd { background: rgba(31,157,92,.13); color: var(--go); }
.typeit { margin-top: 18px; background: var(--card); border-radius: 14px; padding: 12px 14px; }
.typeit summary { cursor: pointer; font-weight: 600; color: var(--blue); }
.numform { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-top: 10px; }
.numform input { font: 700 18px var(--mono); text-transform: uppercase; padding: 11px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--ink); }
.numform .go { width: auto; padding: 11px 20px; }
.loading { display: flex; gap: 14px; align-items: center; margin-top: 16px; background: var(--card); border-radius: 14px; padding: 14px; box-shadow: var(--shadow); }
.spin { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--blue); animation: sp 0.9s linear infinite; flex: none; }
@keyframes sp { to { transform: rotate(360deg); } }
.what { list-style: none; margin: 28px 4px 0; padding: 0; display: grid; gap: 9px; color: var(--soft); font-size: 15px; }
.what li { padding-left: 24px; position: relative; }
.what li::before { content: "\2708"; position: absolute; left: 0; color: var(--plane); }
.what b { color: var(--ink); }

/* ---------- the flight ---------- */
.fv { position: fixed; inset: 0; overflow: hidden; background: #aad3df; }
.map { position: absolute; inset: 0; }
.maplibregl-ctrl-attrib { font-size: 10px; }
.topbar { position: absolute; left: 10px; right: 10px; top: max(10px, env(safe-area-inset-top)); display: flex; align-items: flex-start; gap: 8px; pointer-events: none; }
.topbar > * { pointer-events: auto; }
.mapbtns { margin-left: auto; display: grid; gap: 8px; }
.mbtn { width: 44px; height: 44px; border-radius: 12px; border: 0; background: var(--card); color: var(--ink); box-shadow: var(--shadow); display: grid; place-items: center; cursor: pointer; }
.mbtn svg { width: 22px; height: 22px; fill: currentColor; }
.mbtn.on { color: var(--blue); }
.offline { flex: 1; align-self: center; text-align: center; font-size: 12.5px; font-weight: 600; background: var(--card); color: var(--soft); border-radius: 999px; padding: 6px 12px; box-shadow: var(--shadow); }
.acpop { position: absolute; left: 50%; transform: translateX(-50%); top: calc(max(10px, env(safe-area-inset-top)) + 54px); background: var(--card); border-radius: 14px;
  box-shadow: var(--shadow); padding: 10px 14px; font-size: 14px; min-width: 200px; text-align: center; }
.acpop b { font-family: var(--mono); font-size: 16px; }

.lavfab { position: absolute; right: 12px; bottom: calc(var(--sheet-h, 190px) + 12px); width: 60px; height: 60px; border-radius: 50%; border: 0;
  background: var(--card); color: var(--ink); display: grid; place-items: center; align-content: center; cursor: pointer; box-shadow: var(--shadow); transition: bottom .2s; }
.lavfab svg { width: 24px; height: 24px; fill: currentColor; }
.lavfab span { font-weight: 800; font-size: 10px; letter-spacing: .04em; }
.lavfab.go { background: var(--go); color: #fff; } .lavfab.soon { background: var(--soon); color: #fff; } .lavfab.no { background: var(--no); color: #fff; }

.sheet { position: absolute; left: 0; right: 0; bottom: 0; max-height: 74vh; background: var(--card); border-radius: 20px 20px 0 0; box-shadow: 0 -6px 24px rgba(16,24,40,.16);
  padding: 0 16px max(12px, env(safe-area-inset-bottom)); display: flex; flex-direction: column; }
.sheet.peek .tabs, .sheet.peek .pane { display: none; }
.handle { display: block; width: 100%; border: 0; background: transparent; padding: 8px 0 6px; cursor: pointer; }
.handle span { display: block; width: 38px; height: 5px; border-radius: 3px; background: var(--line); margin: 0 auto; }
.fcard { padding: 0 0 12px; cursor: pointer; }
.fc-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.fc-num { font-family: var(--mono); font-weight: 700; font-size: 20px; }
.fc-air { font-size: 13px; color: var(--soft); }
.pill { font-size: 11.5px; font-weight: 700; padding: 4px 9px; border-radius: 999px; background: var(--chip); color: var(--soft); white-space: nowrap; }
.pill.gps { background: rgba(31,157,92,.14); color: var(--go); } .pill.est { background: rgba(233,131,0,.14); color: var(--soon); }
.fc-route { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; margin-top: 10px; }
.ap b { display: block; font-size: 24px; font-weight: 800; letter-spacing: .01em; line-height: 1.1; }
.ap span { display: block; font-size: 12px; color: var(--soft); max-width: 110px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ap.r { text-align: right; }
.ap.r span { margin-left: auto; }
.prog-line { position: relative; height: 4px; border-radius: 2px; background: var(--line); }
.prog-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 2px; background: var(--plane); }
.prog-plane { position: absolute; top: 50%; left: 0; transform: translate(-50%, -55%); color: var(--plane); font-size: 18px; line-height: 1; }
.prog-txt { text-align: center; font-size: 12px; color: var(--soft); margin-top: 7px; }
.tabs { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--chip); border-radius: 12px; padding: 3px; gap: 3px; margin-bottom: 10px; }
.tabs button { border: 0; background: transparent; border-radius: 9px; padding: 7px 2px; font-weight: 600; font-size: 13.5px; color: var(--soft); cursor: pointer; }
.tabs button.on { background: var(--card); color: var(--ink); box-shadow: 0 1px 4px rgba(0,0,0,.14); }
.pane { overflow-y: auto; padding-bottom: 6px; }
.pane h3 { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--soft); margin: 16px 0 6px; }
.nowcard .eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--blue); }
.nowcard .big { font-size: 21px; font-weight: 700; line-height: 1.2; margin: 2px 0 4px; }
.nowcard .story { font-size: 15px; color: var(--soft); display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.src { display: inline-block; margin-top: 6px; font-size: 14px; font-weight: 600; color: var(--blue); text-decoration: none; }
.src:empty { display: none; }
#takeoff { margin: 12px 0 4px; }
.tl { list-style: none; margin: 14px 0 0; padding: 0; }
.tl li { display: grid; grid-template-columns: 44px 1fr; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); cursor: pointer; }
.tl .t { font-family: var(--mono); font-weight: 700; font-size: 14px; color: var(--soft); }
.tl .nm { font-weight: 600; }
.tl .meta { font-size: 13px; color: var(--soft); }
.tl li.mine .side { color: var(--go); font-weight: 700; }
.tl li.past { opacity: .4; }
.lst { margin: 0; padding: 0; list-style: none; }
.lst li { padding: 8px 0 8px 20px; border-top: 1px solid var(--line); position: relative; font-size: 15px; }
.lst li::before { content: ""; position: absolute; left: 2px; top: 15px; width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
#lavClosed li::before { background: var(--no); } #lavGood li::before { background: var(--go); }
.lst li.now { font-weight: 700; }
.lst.mine li { display: flex; justify-content: space-between; align-items: center; }
.lst.mine li::before { background: var(--plane); }
.lst.mine button { border: 0; background: transparent; color: var(--no); font-weight: 600; cursor: pointer; padding: 4px 8px; }
.lavnow { font-size: 18px; font-weight: 700; line-height: 1.3; padding: 12px 14px; border-radius: 14px; background: var(--chip); }
.lavnow.go { background: rgba(31,157,92,.13); color: var(--go); } .lavnow.soon { background: rgba(233,131,0,.13); color: var(--soon); } .lavnow.no { background: rgba(224,57,62,.12); color: var(--no); }
.item { margin: 0 0 8px; }
.badge { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .04em; padding: 2px 8px; border-radius: 999px; vertical-align: 1px; }
.b-lgt { background: #fff1b8; color: #6a5200; } .b-mod { background: #ffd9a8; color: #7a3d00; } .b-sev { background: #ffc9c9; color: #7a1010; }
.ride { display: flex; height: 10px; border-radius: 5px; overflow: hidden; background: var(--chip); margin: 4px 0 4px; }
.ride span { display: block; height: 100%; }
.ride .calm { background: transparent; } .ride .rough { background: #f5a524; } .ride .bad { background: var(--no); } .ride .lav { background: var(--go); }
.scale { display: flex; justify-content: space-between; font-size: 11px; color: var(--soft); margin-bottom: 10px; }
#newFlight { margin-top: 14px; }

.dlg { border: 0; border-radius: 20px; padding: 20px 18px; width: min(520px, calc(100% - 20px)); max-height: 88vh; background: var(--card); color: var(--ink); }
.dlg::backdrop { background: rgba(5,15,30,.45); }
.dlg h2 { font-size: 20px; margin-bottom: 10px; }
.dlg h3 { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--soft); margin: 18px 0 8px; }
.dlg .go { margin-top: 20px; }
.sw { display: flex; align-items: center; gap: 12px; padding: 11px 0; font-weight: 600; cursor: pointer; border-bottom: 1px solid var(--line); }
.sw small { color: var(--soft); font-weight: 500; }
.sw input { order: 3; margin-left: auto; appearance: none; width: 50px; height: 30px; border-radius: 999px; background: var(--line); position: relative; cursor: pointer; transition: background .2s; flex: none; }
.sw input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: left .2s; }
.sw input:checked { background: var(--go); }
.sw input:checked::after { left: 23px; }
.dot { width: 12px; height: 12px; border-radius: 50%; flex: none; }
.d-traffic { background: var(--plane); } .d-places { background: #d6198a; } .d-turb { background: #f5a524; } .d-lav { background: var(--go); } .d-clouds { background: #9fb3c8; }
.chips button[data-kind]::before { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 7px; vertical-align: 1px; }
.chips button[data-kind=city]::before { background: #d6198a; } .chips button[data-kind=water]::before { background: #1f7fc4; }
.chips button[data-kind=mountain]::before { background: #a07a46; } .chips button[data-kind=park]::before { background: #2c8a4b; }
.chips button[data-kind=mine]::before { background: var(--plane); }
#addName { width: 100%; font: 600 18px var(--ui); padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--ink); margin-top: 10px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.row2 .go, .row2 .ghost { margin: 0; }
.toast { position: fixed; left: 12px; right: 12px; top: calc(max(10px, env(safe-area-inset-top)) + 54px); background: #121821; color: #fff;
  padding: 12px 16px; border-radius: 14px; box-shadow: var(--shadow); font-weight: 600; z-index: 30; text-align: center; font-size: 15px; }
@media (min-width: 760px) {
  .sheet { left: 16px; right: auto; top: auto; bottom: 16px; width: 390px; border-radius: 20px; max-height: calc(100vh - 100px); }
  .lavfab { bottom: 16px; right: 16px; }
  .toast { left: 50%; right: auto; transform: translateX(-50%); width: 420px; }
}
.maplibregl-ctrl-bottom-right, .maplibregl-ctrl-bottom-left { bottom: var(--sheet-h, 190px); transition: bottom .2s; }
@media (min-width: 760px) { .maplibregl-ctrl-bottom-right, .maplibregl-ctrl-bottom-left { bottom: 0; } }

.topbar, .lavfab, .sheet, .acpop { z-index: 5; }
.maplibregl-ctrl-bottom-left { max-width: calc(100% - 90px); }

/* clarity pass, 15 Nov */
.sw small { display: block; font-size: 12.5px; color: var(--soft); font-weight: 500; margin-top: 1px; }
.d-radar { background: #3cb44b; }
.howto { position: absolute; left: 12px; right: 12px; top: calc(max(10px, env(safe-area-inset-top)) + 56px); z-index: 6; background: var(--card); color: var(--ink);
  border-radius: 18px; box-shadow: var(--shadow); padding: 16px 16px 14px; font-size: 15px; }
.howto > b { font-size: 17px; }
.howto ol { margin: 8px 0 12px; padding-left: 20px; display: grid; gap: 7px; }
.key { position: absolute; left: 10px; bottom: calc(var(--sheet-h, 190px) + 10px); z-index: 4; display: flex; flex-wrap: wrap; gap: 4px 12px;
  max-width: calc(100% - 96px); background: var(--card); color: var(--ink); border-radius: 12px; padding: 7px 11px; font-size: 12px; font-weight: 600;
  box-shadow: var(--shadow); transition: bottom .2s; }
.key:empty { display: none; }
.key span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.key i { display: inline-block; width: 20px; height: 5px; border-radius: 3px; }
.key .k-route { background: #0a7cff; } .key .k-lav { background: #1f9d5c; } .key .k-turb { background: #f58c14; height: 9px; opacity: .7; }
.key .k-radar { background: linear-gradient(90deg, #3cb44b, #f5e100, #e0393e); height: 8px; }
.maplibregl-ctrl-bottom-left { bottom: calc(var(--sheet-h, 190px) + 52px); }
.sheet { padding-bottom: max(34px, env(safe-area-inset-bottom)); }
@media (min-width: 760px) { .key { left: 422px; bottom: 16px; } .howto { left: auto; width: 380px; right: 70px; } }
.key { flex-wrap: nowrap; overflow-x: auto; font-size: 11.5px; padding: 6px 10px; gap: 10px; max-width: calc(100% - 92px); }
.key i { width: 14px; }
.maplibregl-ctrl-bottom-left { bottom: calc(var(--sheet-h, 190px) + 46px); }

/* persona test fixes, 15 Nov */
.sheet.peek .tabs { display: grid; margin-bottom: 0; }
.tabs button { min-height: 44px; font-size: 15px; }
.handle { padding: 12px 0 10px; }
.near { padding: 8px 6px; top: 4px; font-size: 14px; }
.tobtn { display: block; width: 100%; margin: 12px 0 2px; border: 0; border-radius: 14px; padding: 14px; background: var(--blue); color: #fff; font-weight: 700; font-size: 17px; cursor: pointer; }
.tobtn.done { background: var(--chip); color: var(--ink); font-weight: 600; font-size: 15px; padding: 11px; }
.toadj { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.toadj span { width: 100%; font-weight: 700; }
.toadj button { border: 0; background: var(--chip); border-radius: 999px; padding: 10px 14px; font-weight: 600; font-size: 15px; cursor: pointer; }
.lavfab { width: auto; height: auto; min-width: 84px; border-radius: 18px; padding: 8px 12px; gap: 1px; }
.lavfab .lt { font-size: 11px; font-weight: 700; letter-spacing: 0; opacity: .85; }
.lavfab #lavFabText { font-size: 15px; font-weight: 800; letter-spacing: 0; }
.need { margin: 10px 0 0; font-weight: 600; font-size: 15px; }
.bestside { font-weight: 700; margin: 12px 0 0; }
.bestside:empty { display: none; }
.lavnow { font-size: 19px; }
.ride { position: relative; height: 14px; overflow: visible; }
.ride span:first-child { border-radius: 7px 0 0 7px; }
.ride .you { position: absolute; top: -9px; width: 0; height: 0; border-left: 7px solid transparent; border-right: 7px solid transparent; border-top: 9px solid var(--ink); transform: translateX(-7px); }
.ridekey { margin: 0 0 10px; }
.item b { font-weight: 700; }
.fv { background: var(--bg); }
.pill { font-size: 12.5px; }
.prog-txt { font-size: 13px; }

.stale { color: var(--soon); font-weight: 600; }
#refreshBtn { margin-top: 10px; }
.tobtn.done { background: transparent; color: var(--soft); font-size: 13.5px; font-weight: 600; padding: 6px; text-decoration: underline; }

.flights li.oldhdr { background: transparent; box-shadow: none; padding: 14px 4px 2px; font-size: 13px; font-weight: 700; color: var(--soft); cursor: default; display: block; }
.flights li.old { opacity: .6; }

/* ================= JET AGE (Jack picked style 1, 15 Nov 2026) =================
   A 1960s airline poster: cream paper, teal and orange, Righteous (OFL) headings, Nunito (OFL) body,
   cards with a bold outline and a flat offset shadow. Night keeps the same shapes in a dark cabin palette. */
@font-face { font-family: "Righteous"; font-weight: 400; font-display: swap; src: url(/static/fonts/righteous.woff2) format("woff2"); }
@font-face { font-family: "Nunito"; font-weight: 200 1000; font-display: swap; src: url(/static/fonts/nunito.woff2) format("woff2"); }
:root { --bg: #f4ead5; --card: #fffaf0; --ink: #2b2118; --soft: #6b5a48; --line: #2b2118; --chip: #efe2c4; --blue: #1d7f86;
  --go: #2f8f5b; --soon: #e8702a; --no: #c8442f; --plane: #f2b134; --edge: #2b2118; --shadow: 4px 4px 0 var(--edge);
  --ui: Nunito, -apple-system, "Segoe UI", Roboto, sans-serif; --display: Righteous, Nunito, sans-serif; --teal: #1d7f86; --orange: #e8702a; }
@media (prefers-color-scheme: dark) {
  :root { --bg: #17201f; --card: #213130; --ink: #f4ead5; --soft: #b7c4bd; --line: #3a4e4c; --chip: #2b3d3c; --edge: #0b1110; --teal: #4fc1c4; }
}
:root.night { --bg: #17201f; --card: #213130; --ink: #f4ead5; --soft: #b7c4bd; --line: #3a4e4c; --chip: #2b3d3c; --edge: #0b1110; --teal: #4fc1c4; }
html, body { font-family: var(--ui); }
.brandbar { background: #1d7f86; border-bottom: 8px solid #e8702a; box-shadow: 0 8px 0 #f2b134; margin-bottom: 8px; }
.wordmark { font-family: var(--display); font-weight: 400; letter-spacing: .12em; font-size: 24px; }
.find h1 { font-family: var(--display); font-weight: 400; font-size: 34px; letter-spacing: .01em; color: var(--teal); margin-top: 22px; }
.box, .flights li:not(.oldhdr), .typeit, .loading, .howto, .dlg, .sugg { border: 2.5px solid var(--edge); border-radius: 18px; box-shadow: var(--shadow); }
.apfield + .apfield, #toField { border-top: 2px solid var(--edge); }
.swap { border: 2px solid var(--edge); }
.chips button { border: 2px solid var(--edge); background: var(--card); font-family: var(--display); font-weight: 400; letter-spacing: .02em; }
.chips button.on { background: #e8702a; color: #fff; }
.flights .fn { font-family: var(--display); font-weight: 400; font-size: 20px; color: var(--teal); }
.flights .st { border: 1.5px solid currentColor; }
.go { background: #e8702a; color: #fff; border: 2.5px solid var(--edge); box-shadow: var(--shadow); font-family: var(--display); font-weight: 400; letter-spacing: .03em; }
.go:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--edge); }
.ghost { border: 2.5px solid var(--edge); font-family: var(--display); font-weight: 400; }
.what li::before { color: #e8702a; }
.sheet { border-top: 3px solid var(--edge); border-radius: 26px 26px 0 0; background: var(--card); }
.handle span { background: var(--edge); }
.fc-num { font-family: var(--display); font-weight: 400; font-size: 26px; color: var(--teal); }
.ap b { font-family: var(--display); font-weight: 400; font-size: 30px; }
.prog-line { height: 6px; background: repeating-linear-gradient(90deg, var(--ink) 0 6px, transparent 6px 12px); }
.prog-fill { background: #e8702a; height: 6px; }
.prog-plane { color: #e8702a; }
.tabs { background: var(--chip); border: 2px solid var(--edge); }
.tabs button { font-family: var(--display); font-weight: 400; letter-spacing: .02em; }
.tabs button.on { background: #f2b134; color: #2b2118; box-shadow: none; }
.tobtn { background: #e8702a; border: 2.5px solid var(--edge); box-shadow: var(--shadow); font-family: var(--display); font-weight: 400; letter-spacing: .03em; }
.tobtn.done { background: transparent; border: 0; box-shadow: none; font-family: var(--ui); }
.mbtn, .key, .offline, .acpop { border: 2.5px solid var(--edge); box-shadow: var(--shadow); background: var(--card); }
.lavfab { border: 3px solid var(--edge); box-shadow: var(--shadow); border-radius: 50%; width: 88px; height: 88px; min-width: 0; padding: 0; }
.lavfab #lavFabText { font-family: var(--display); font-weight: 400; }
.lavnow { border: 2.5px solid var(--edge); box-shadow: var(--shadow); font-family: var(--display); font-weight: 400; letter-spacing: .01em; }
.pill { border: 2px solid currentColor; }
.pane h3, .dlg h3 { color: var(--teal); }
.dlg h2, .howto > b { font-family: var(--display); font-weight: 400; color: var(--teal); }
.sw input:checked { background: #e8702a; }
.toast { background: #1d7f86; border: 2.5px solid var(--edge); box-shadow: var(--shadow); }
.map canvas { filter: sepia(.28) saturate(1.15) contrast(1.02); }
:root.night .map canvas { filter: sepia(.15) saturate(1.05); }
.key .k-route { background: #1d7f86; }

/* legal pages + credit line */
.legal-links a, .builtby a { color: var(--teal); font-weight: 700; }
.builtby { text-align: center; font-size: 13px; color: var(--soft); margin: 14px 0 0; }
body.legal { background: var(--bg); }
.legal-home { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.legal-inner { max-width: 720px; margin: 0 auto; padding: 18px 18px 50px; font-size: 16px; line-height: 1.6; }
.legal-inner h1 { font-family: var(--display); font-weight: 400; color: var(--teal); font-size: 32px; margin: 14px 0 8px; }
.legal-inner h2 { font-family: var(--display); font-weight: 400; font-size: 20px; margin: 26px 0 6px; }
.legal-inner .tablewrap { overflow-x: auto; border: 2.5px solid var(--edge); border-radius: 14px; box-shadow: var(--shadow); background: var(--card); }
.legal-inner table { border-collapse: collapse; width: 100%; font-size: 14px; }
.legal-inner th, .legal-inner td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal-inner th { background: var(--chip); }
.legal-inner .legal-links { margin-top: 30px; text-align: center; }
