/* Flight Globe "Classic" design: the Telemetry look as it was before the Cinematic redesign (Nov 15 2026), kept as an
   option in Settings > Design. Loaded instead of app.css when chosen. Urbanist is self-hosted now. The few rules
   marked "adapter" map the card's newer markup back onto the old layout. */
@font-face { font-family: 'Urbanist'; font-weight: 400; font-style: normal; font-display: swap; src: url(fonts/urbanist-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Urbanist'; font-weight: 600; font-style: normal; font-display: swap; src: url(fonts/urbanist-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: 'Urbanist'; font-weight: 700; font-style: normal; font-display: swap; src: url(fonts/urbanist-latin-700-normal.woff2) format('woff2'); }
:root {
  --card: #f1f1f1; --raised: #ffffff; --ink: #0b0b0d; --muted: #58585c; --hair: rgba(11, 11, 13, 0.12); --volt: #b8fc64;
  --shadow: 0 1px 2px rgba(22, 20, 31, 0.06), 0 10px 28px rgba(22, 20, 31, 0.09); --dot-ring: #0b0b0d; --focus: #0b0b0d;
  --glass: rgba(255, 255, 255, 0.58); --glass-edge: rgba(255, 255, 255, 0.85); --glass-line: rgba(11, 11, 13, 0.12);
  --page: radial-gradient(120% 90% at 50% 45%, #ffffff 0%, #f1f1f1 55%, #e2e2e6 100%);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --card: #1d1c28; --raised: #272636; --ink: #f3f3ee; --muted: #aaa9b4; --hair: rgba(243, 243, 238, 0.14);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.5), 0 10px 28px rgba(0, 0, 0, 0.45); --dot-ring: #272636; --focus: #b8fc64;
  --glass: rgba(39, 38, 54, 0.6); --glass-edge: rgba(243, 243, 238, 0.12); --glass-line: rgba(243, 243, 238, 0.14);
  --page: radial-gradient(110% 85% at 50% 48%, #262438 0%, #15141d 55%, #09080e 100%);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body { background: var(--page); color: var(--ink); font-family: "Urbanist", "Avenir Next", "Segoe UI", system-ui, sans-serif; overflow: hidden; -webkit-font-smoothing: antialiased; }
#app { position: fixed; inset: 0; overflow: clip; }
#gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; outline: none; }
#labels { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
button { font: inherit; color: inherit; }
button:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.top { position: absolute; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 24px; pointer-events: none; }
.top > * { pointer-events: auto; }
.pill { display: flex; align-items: center; gap: 8px; min-height: 36px; padding: 6px 14px; background: var(--raised); border-radius: 999px; box-shadow: var(--shadow); font-size: 13px; line-height: 18px; }
.pill b { font-weight: 700; letter-spacing: 0.08em; font-size: 12px; }
.pill span { color: var(--muted); font-variant-numeric: tabular-nums; }
.dot { width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--volt); box-shadow: 0 0 0 1.5px var(--dot-ring); }
.pill.off .dot { background: var(--muted); }
.tools { display: flex; flex-direction: column; gap: 8px; }
.tools button, #c-close { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; padding: 0; border: 0; border-radius: 999px; background: var(--raised); box-shadow: var(--shadow); cursor: pointer; }
.tools svg, #c-close svg { width: 18px; height: 18px; }
#c-close { width: 36px; height: 36px; box-shadow: none; background: var(--hair); flex: none; }

/* search */
.left { display: flex; align-items: flex-start; gap: 8px; flex-wrap: wrap; min-width: 0; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.search { position: relative; display: flex; align-items: center; gap: 8px; height: 36px; width: 280px; padding: 0 12px; background: var(--raised); border-radius: 999px; box-shadow: var(--shadow); }
.search:focus-within { outline: 2px solid var(--focus); outline-offset: 2px; }
.search > svg { width: 16px; height: 16px; flex: none; color: var(--muted); }
.search input { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; color: var(--ink); font-family: inherit; font-size: 14px; font-weight: 600; outline: none; }
.search input::placeholder { color: var(--muted); font-weight: 400; }
.search kbd { flex: none; min-width: 18px; padding: 1px 5px; border-radius: 6px; background: var(--hair); color: var(--muted); font-family: inherit; font-size: 11px; line-height: 16px; font-weight: 600; text-align: center; }
.search:focus-within kbd { display: none; }
.results { position: absolute; left: 0; top: 44px; width: 320px; max-width: calc(100vw - 32px); padding: 6px; background: var(--raised); border-radius: 18px; box-shadow: var(--shadow); z-index: 5; }
.results__head { padding: 6px 10px 4px; font-size: 12px; line-height: 16px; color: var(--muted); }
.results ul { margin: 0; padding: 0; list-style: none; }
.results button { width: 100%; display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 6px 10px; border: 0; border-radius: 12px; background: transparent; text-align: left; cursor: pointer; }
.results button:hover, .results button[aria-selected="true"] { background: var(--hair); }
.results .cs { font-size: 15px; line-height: 20px; }
.results .who { flex: 1; min-width: 0; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.results .alt { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }

#card { position: absolute; left: 24px; bottom: 24px; width: 320px; max-width: calc(100vw - 48px); display: flex; flex-direction: column; gap: 14px; padding: 20px 22px; background: var(--raised); border-radius: 22px; box-shadow: var(--shadow); }
#card[hidden], [hidden] { display: none !important; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.row.head { align-items: flex-start; }
.cs { font-size: 22px; line-height: 26px; font-weight: 700; }
.sub { font-size: 12px; line-height: 16px; color: var(--muted); }
.code { font-size: 28px; line-height: 30px; font-weight: 700; }
.right { text-align: right; }
.arrow { width: 40px; height: 14px; flex: none; color: var(--muted); stroke-width: 1.6; }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding-top: 12px; border-top: 1px solid var(--hair); }
.val { font-size: 15px; line-height: 20px; font-weight: 600; font-variant-numeric: tabular-nums; }

#hint { position: absolute; left: 24px; bottom: 24px; margin: 0; font-size: 13px; line-height: 18px; color: var(--muted); }
.attr { position: absolute; right: 24px; bottom: 24px; max-width: 46vw; text-align: right; font-size: 11px; line-height: 16px; color: var(--muted); }
.attr a { color: inherit; }
.attr a:hover { color: var(--ink); }

.ap { position: absolute; left: 0; top: 0; display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; will-change: transform; }
.ap i { width: 9px; height: 9px; background: var(--ink); border: 2.75px solid var(--ink); background-clip: content-box; background-color: var(--volt); margin: -4.5px 0 0 -4.5px; }
:root[data-theme="dark"] .ap i { background-color: var(--card); }
.ap b, .tag { text-shadow: 0 0 3px var(--card), 0 0 3px var(--card), 0 0 6px var(--card); margin-top: -4.5px; }
.tag { position: absolute; left: 0; top: 0; font-size: 13px; font-weight: 700; will-change: transform; }
#tip { position: absolute; left: 0; top: 0; z-index: 4; pointer-events: none; padding: 8px 12px; border-radius: 14px; background: var(--ink); color: var(--card); font-size: 12px; line-height: 16px; white-space: nowrap; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18); }
#tip b { display: block; font-weight: 600; }

@media (max-width: 640px) {
  .top { padding: 16px; }
  .left { flex-direction: column; }
  .search { width: calc(100vw - 32px - 56px); }
  .search kbd { display: none; }
  #card { left: 16px; right: 16px; bottom: 16px; width: auto; max-width: none; }
  #hint { left: 16px; right: 16px; bottom: 56px; }
  .attr { left: 16px; right: 16px; bottom: 16px; max-width: none; text-align: left; }
  #card:not([hidden]) ~ .attr { display: none; }
  /* keep the card short on phones so the globe stays visible: no altitude chart, two stats, tighter spacing */
  #card { gap: 10px; padding: 14px 16px; }
  #card .profile, #card #c-zoom, .stats > div:nth-child(n+3) { display: none !important; }
  .stats { padding-top: 8px; }
  .code { font-size: 24px; line-height: 26px; }
}

/* glass panels (pick 50): frosted, see-through, the globe blurred behind */
.pill, .tools button, #card, .search, .results {
  background: var(--glass); border: 1px solid var(--glass-edge);
  -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4);
}
.tools button[aria-pressed="true"] { background: var(--ink); color: var(--card); border-color: var(--ink); }
.stats { border-top-color: var(--glass-line); }
/* flight progress and altitude profile on the card */
.progress { display: flex; flex-direction: column; gap: 6px; }
.bar { position: relative; height: 6px; border-radius: 3px; background: var(--glass-line); }
.bar i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 3px; background: var(--ink); }
.bar b { position: absolute; top: -4px; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: var(--volt); box-shadow: 0 0 0 2px var(--ink); }
.profile { display: flex; flex-direction: column; gap: 4px; }
.profile svg { width: 100%; height: 40px; display: block; overflow: visible; }
.profile path { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.profile circle { fill: var(--volt); stroke: var(--ink); stroke-width: 1.5; }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .pill, .tools button, #card, .search, .results { background: var(--raised); }
}

/* settings panel */
.settings { position: absolute; top: 24px; right: 80px; bottom: 24px; width: 320px; max-width: calc(100vw - 104px); display: flex; flex-direction: column;
  background: var(--glass); border: 1px solid var(--glass-edge); border-radius: 22px; box-shadow: var(--shadow); z-index: 6;
  -webkit-backdrop-filter: blur(22px) saturate(1.4); backdrop-filter: blur(22px) saturate(1.4); }
.set-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 16px 8px 22px; }
.set-head h2 { margin: 0; font-size: 18px; line-height: 24px; font-weight: 700; }
.icon { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; padding: 0; border: 0; border-radius: 999px; background: var(--hair); cursor: pointer; }
.icon svg { width: 18px; height: 18px; }
.set-body { flex: 1; min-height: 0; overflow-y: auto; padding: 0 22px 22px; display: flex; flex-direction: column; gap: 18px; }
.settings section { display: flex; flex-direction: column; gap: 10px; padding-top: 14px; border-top: 1px solid var(--glass-line); }
.settings section:first-child { border-top: 0; padding-top: 4px; }
.settings h3 { margin: 0; font-size: 12px; line-height: 16px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.field { display: flex; flex-direction: column; gap: 6px; }
.lbl { display: flex; justify-content: space-between; font-size: 14px; line-height: 20px; }
.lbl output { color: var(--muted); font-variant-numeric: tabular-nums; }
.hint { margin: 0; font-size: 12px; line-height: 16px; color: var(--muted); }
.settings select { width: 100%; min-height: 40px; padding: 0 12px; border: 1px solid var(--glass-line); border-radius: 12px; background: var(--raised); color: var(--ink); font: inherit; font-size: 14px; cursor: pointer; }
.settings select:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.settings input[type="range"] { width: 100%; height: 24px; margin: 0; accent-color: var(--ink); cursor: pointer; }
.tog { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 36px; font-size: 14px; cursor: pointer; }
.tog small { display: block; font-size: 12px; color: var(--muted); }
.tog input { appearance: none; -webkit-appearance: none; position: relative; flex: none; width: 40px; height: 24px; margin: 0; border-radius: 999px; background: var(--glass-line); cursor: pointer; transition: background 0.2s; }
.tog input::after { content: ""; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--raised); box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: transform 0.2s; }
.tog input:checked { background: var(--ink); }
.tog input:checked::after { transform: translateX(16px); background: var(--volt); }
.tog input:disabled { opacity: 0.4; }
.tog:has(input:disabled) { color: var(--muted); }
.tog input:focus-visible, .seg input:focus-visible + span, .settings input[type="range"]:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.seg { display: flex; padding: 3px; gap: 3px; border-radius: 999px; background: var(--glass-line); }
.seg label { flex: 1; cursor: pointer; }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg span { display: block; padding: 7px 8px; border-radius: 999px; text-align: center; font-size: 13px; line-height: 18px; font-weight: 600; color: var(--muted); }
.seg input:checked + span { background: var(--raised); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.15); }
.reset { align-self: flex-start; min-height: 40px; padding: 0 16px; border: 1px solid var(--glass-line); border-radius: 999px; background: transparent; font-weight: 600; cursor: pointer; }
.reset:hover { background: var(--hair); }
.tools button[aria-expanded="true"] { background: var(--ink); color: var(--card); border-color: var(--ink); }
@media (max-width: 640px) {
  .settings { top: auto; left: 8px; right: 8px; bottom: 8px; width: auto; max-width: none; max-height: 72vh; }
}
@media (prefers-reduced-motion: reduce) { .tog input, .tog input::after { transition: none; } }

#card .type { display: flex; align-items: center; gap: 10px; margin-top: 2px; }
#card .type svg { width: 18px; height: 18px; flex: none; fill: currentColor; opacity: 0.7; }
#card .type > span { display: flex; flex-direction: column; min-width: 0; }
#card .type b { font-size: 14px; line-height: 18px; font-weight: 600; }

#card .explore { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border: 0; border-radius: 14px; background: var(--ink); color: var(--raised); font: inherit; text-align: left; cursor: pointer; }
#card .explore svg { width: 22px; height: 22px; flex: none; fill: none; stroke: var(--volt); stroke-width: 1.8; stroke-linecap: round; }
#card .explore span { display: flex; flex-direction: column; font-size: 15px; font-weight: 700; line-height: 19px; }
#card .explore small { font-size: 12px; font-weight: 500; opacity: 0.7; }
#card .explore:hover { filter: brightness(1.12); }
#card .explore:focus-visible, .pop button:focus-visible { outline: 2px solid var(--volt); outline-offset: 2px; }
.pop { position: absolute; left: 0; top: 0; z-index: 6; transform: translate(-50%, calc(-100% - 14px)); }
.pop button { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; padding: 10px 14px; border: 0; border-radius: 14px; background: var(--ink); color: var(--raised); font: inherit; cursor: pointer; box-shadow: var(--shadow); white-space: nowrap; }
.pop b { font-size: 14px; } .pop span { font-size: 12px; opacity: 0.7; }
.pop::after { content: ""; position: absolute; left: 50%; bottom: -6px; width: 12px; height: 12px; margin-left: -6px; background: var(--ink); transform: rotate(45deg); border-radius: 2px; }
.detail { position: fixed; inset: 0; z-index: 50; background: #1d1c28; animation: detail-in 0.28s ease-out; }
.detail iframe { width: 100%; height: 100%; border: 0; display: block; }
@keyframes detail-in { from { opacity: 0; transform: scale(0.985); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .detail { animation: none; } }

/* inferred phase of flight */
#card .phase { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: color-mix(in srgb, var(--ink) 6%, transparent); }
#card .phase > i { width: 8px; height: 8px; border-radius: 50%; background: var(--volt); box-shadow: 0 0 0 3px color-mix(in srgb, var(--volt) 30%, transparent); flex: none; }
#card .phase > span:first-of-type { display: flex; flex-direction: column; min-width: 0; flex: 1; }
#card .phase b { font-size: 14px; line-height: 18px; font-weight: 600; }
#card .phase .inf { font-size: 11px; font-weight: 600; letter-spacing: 0.02em; padding: 2px 7px; border-radius: 99px; border: 1px dashed currentColor; opacity: 0.65; cursor: help; flex: none; }
#card .replaybtn { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 14px; border: 1px solid var(--glass-edge); border-radius: 14px; background: transparent; color: inherit; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; text-align: left; }
#card .replaybtn svg { width: 16px; height: 16px; fill: currentColor; flex: none; }
#card .replaybtn span { flex: 1; }
#card .replaybtn small { font-size: 12px; font-weight: 500; opacity: 0.6; }
#card .replaybtn:hover { background: color-mix(in srgb, var(--ink) 6%, transparent); }
#card .replaybtn:focus-visible { outline: 2px solid var(--volt); outline-offset: 2px; }

/* replay panel */
.replay { position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%); width: min(560px, calc(100vw - 32px)); z-index: 5; display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; border-radius: 20px; background: var(--glass); border: 1px solid var(--glass-edge); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); box-shadow: var(--shadow); }
.replay .rp-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.replay .rp-head > div { display: flex; flex-direction: column; min-width: 0; }
.replay .rp-head b { font-size: 20px; line-height: 24px; font-weight: 700; }
.replay .rp-head button { width: 32px; height: 32px; border: 0; border-radius: 50%; background: transparent; color: inherit; cursor: pointer; display: grid; place-items: center; }
.replay .rp-head button svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.replay .rp-now { display: flex; align-items: baseline; gap: 14px; font-size: 13px; font-variant-numeric: tabular-nums; }
.replay .rp-now span:first-child { opacity: 0.7; }
.replay .rp-now b { font-size: 15px; font-weight: 600; }
.replay .grow { flex: 1; }
.replay .rp-phase { display: flex; align-items: center; gap: 8px; min-height: 22px; }
.replay .rp-phase > i { width: 8px; height: 8px; border-radius: 50%; background: var(--volt); box-shadow: 0 0 0 3px color-mix(in srgb, var(--volt) 30%, transparent); flex: none; }
.replay .rp-phase b { font-size: 14px; font-weight: 600; white-space: nowrap; }
.replay .rp-phase .sub { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.replay .inf { font-size: 11px; font-weight: 600; padding: 2px 7px; border-radius: 99px; border: 1px dashed currentColor; opacity: 0.65; cursor: help; flex: none; }
.replay .rp-bar { position: relative; height: 6px; border-radius: 3px; background: color-mix(in srgb, var(--ink) 15%, transparent); cursor: pointer; touch-action: none; }
.replay .rp-bar::before { content: ""; position: absolute; inset: -9px 0; }
.replay .rp-bar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 3px; background: var(--ink); }
.replay .rp-bar:focus-visible { outline: 2px solid var(--volt); outline-offset: 4px; }
.replay .rp-ctl { display: flex; align-items: center; gap: 8px; }
.replay .round { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--glass-edge); background: transparent; color: inherit; cursor: pointer; display: grid; place-items: center; }
.replay #rp-play { background: var(--ink); color: var(--raised); border: 0; }
.replay .round svg { width: 18px; height: 18px; fill: currentColor; }
.replay #rp-play .pl, .replay #rp-play[data-on="1"] .pa { display: inline; }
.replay #rp-play .pa, .replay #rp-play[data-on="1"] .pl { display: none; }
.replay .pillbtn { height: 36px; padding: 0 14px; border-radius: 99px; border: 1px solid var(--glass-edge); background: transparent; color: inherit; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.replay .pillbtn:hover, .replay .round:hover { background: color-mix(in srgb, var(--ink) 7%, transparent); }
.replay #rp-play:hover { filter: brightness(1.12); background: var(--ink); }
.replay button:focus-visible { outline: 2px solid var(--volt); outline-offset: 2px; }
.replay .pillbtn:disabled { opacity: 0.5; cursor: default; }
.replay.recording .pillbtn#rp-video { border-color: #ff5a4e; color: #ff5a4e; opacity: 1; }
.replay .rp-msg a { color: inherit; font-weight: 600; }
.replay .rp-link { width: 100%; font: inherit; font-size: 12px; padding: 6px 8px; border-radius: 8px; border: 1px solid var(--glass-edge); background: transparent; color: inherit; }
@media (max-width: 640px) { .replay { bottom: 12px; padding: 12px 14px; } .replay .rp-phase .sub { display: none; } }

/* adapter: the card's newer markup laid out the old way */
.arrow { position: relative; display: block; }
.arrow::before { content: ""; position: absolute; left: 1px; right: 2px; top: 6.2px; height: 1.6px; border-radius: 1px; background: currentColor; }
.arrow i { position: absolute; right: 1.5px; top: 2.6px; width: 7px; height: 7px; border-top: 1.6px solid currentColor; border-right: 1.6px solid currentColor; transform: rotate(45deg); border-radius: 1px; }
#card .actions { display: contents; }
#card > .head { order: 1; } #c-route { order: 2; } #c-noroute { order: 3; } #c-type { order: 4; } #c-explore { order: 5; } #c-prog { order: 6; }
#card > .stats { order: 7; } #c-phase { order: 8; } #c-prof { order: 9; } #c-replay, #c-history { order: 10; } #c-zoom { order: 11; }
#card .ln { display: none !important; }

/* aircraft history panel, in the Classic look */
#card .histbtn svg { fill: none; stroke: currentColor; stroke-width: 1.8; }
.h-top { display: flex; flex-direction: column; gap: 4px; }
.h-reg { font-size: 26px; line-height: 30px; font-weight: 700; }
.h-count { margin-left: 8px; padding: 1px 8px; border-radius: 99px; background: var(--hair); font-size: 11px; color: var(--ink); }
.h-facts { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0; font-size: 14px; line-height: 19px; }
.h-facts dt { color: var(--muted); }
.h-facts dd { margin: 0; text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.h-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.h-list li { display: flex; justify-content: space-between; gap: 12px; }
.h-ev { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; border-radius: 12px; background: color-mix(in srgb, var(--ink) 6%, transparent); }
.h-ev + .h-ev { margin-top: 6px; }
.h-ev-head { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; font-size: 14px; }
.h-ev-head span { color: var(--muted); font-size: 13px; }
.h-sum { margin: 2px 0 0; font-size: 13px; line-height: 18px; }
.h-sum.clamp { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.h-more { align-self: flex-start; padding: 0; border: 0; background: none; font-size: 13px; font-weight: 700; text-decoration: underline; cursor: pointer; }
.h-ev-foot { font-size: 12px; color: var(--muted); }
.h-none { margin: 0; font-size: 14px; }
.h-text { margin: 0; font-size: 14px; line-height: 20px; }
.h-links { display: flex; flex-wrap: wrap; gap: 6px; }
.h-links a { padding: 7px 12px; border-radius: 99px; background: var(--hair); font-size: 13px; font-weight: 600; color: var(--ink); text-decoration: none; }
.h-foot { margin: 6px 0 0; font-size: 12px; line-height: 16px; color: var(--muted); }

/* ---- the 3D airport: over the globe, under the replay player */
.airport { position: absolute; inset: 0; z-index: 4; opacity: 0; transition: opacity 0.8s ease; background: #9fb4c8; }
.airport.on { opacity: 1; }
.airport canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }
.apt-labels { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.apt-tag { position: absolute; left: 0; top: 0; margin: -22px 0 0 8px; padding: 2px 7px; border-radius: 8px; background: rgba(10, 10, 13, 0.62); color: #f5f3ee; font-size: 11px; font-weight: 600; letter-spacing: 0.04em; white-space: nowrap; will-change: transform; }
.apt-tag.air { background: rgba(255, 207, 122, 0.9); color: #17140c; }
.apt-head { position: absolute; left: 24px; top: 24px; display: flex; align-items: center; gap: 16px; padding: 12px 12px 12px 18px; border-radius: 18px; background: rgba(10, 10, 13, 0.72); color: #f5f3ee; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); max-width: calc(100vw - 48px); }
.apt-head b { display: block; font-size: 15px; font-weight: 600; }
.apt-head .sub { display: block; margin-top: 3px; font-size: 12px; color: rgba(245, 243, 238, 0.66); }
.apt-close { width: 36px; height: 36px; flex: none; border: 0; border-radius: 50%; background: rgba(245, 243, 238, 0.14); color: inherit; cursor: pointer; }
.apt-close svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.apt-note { position: absolute; left: 24px; bottom: 14px; margin: 0; max-width: 70vw; font-size: 11px; color: rgba(20, 22, 26, 0.72); }
.apt-open { pointer-events: auto; border: 0; background: none; color: inherit; cursor: pointer; padding: 6px 8px 6px 0; z-index: 2; }
.apt-open span { margin-top: -4.5px; padding: 2px 7px; border-radius: 999px; border: 1px solid var(--accent, var(--volt)); font-size: 9.5px; letter-spacing: 0.08em; text-transform: uppercase; background: var(--card); }
.apt-open:hover span, .apt-open:focus-visible span { background: var(--accent, var(--volt)); color: #17140c; }
html[data-airport] .top, html[data-airport] .attr, html[data-airport] #labels { visibility: hidden; }

/* ---- the explore view over the flying aircraft: see-through, cross-faded in; the globe's own panels step aside */
.detail.air { background: transparent; animation: none; opacity: 0; pointer-events: none; transition: opacity 0.4s ease; }
.detail.air.on { opacity: 1; pointer-events: auto; }
.detail.air iframe { background: transparent; }
html[data-detail] .top, html[data-detail] #card, html[data-detail] #labels, html[data-detail] .attr, html[data-detail] #hint, html[data-detail] .apt-open { opacity: 0; pointer-events: none; transition: opacity 0.35s ease; }
