/* Layout: sticky header with four group tabs, a row of page pills under it, then tiles → charts → tables. Aurora: grey ground, white cards, one colour per subject. */
:root {
  --bg: #F5F5F7; --surface: #FFFFFF; --ink: #1D1D1F; --muted: #6E6E73; --line: #E8E8ED; --ref: #D2D2D7; --seg: #E3E3E8;
  --good: #1E7B36; --good-tint: #E9F7EC; --warn: #B25000; --warn-tint: #FFF4E0; --bad: #D70015; --bad-tint: #FFF0F0;
  --ops: #30B0C7; --ops-text: #007A8C; --ops-tint: #E6F6F9;
  --sales: #0A84FF; --sales-text: #0066CC; --sales-tint: #EAF3FF;
  --fin: #30A14E; --fin-text: #1E7B36; --fin-tint: #E9F7EC;
  --fuel: #FF9500; --fuel-text: #B25000; --fuel-tint: #FFF4E0;
  --y1: #C7C7CC; --y2: #8E8E93;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Helvetica Neue", Arial, sans-serif;
  --display: var(--sans); --num: var(--sans);
  --radius: 20px; --shadow: none; --title-weight: 700;
  --head-bg: #F5F5F7; --head-ink: #1D1D1F; --head-muted: #6E6E73; --pill-bg: #1D1D1F; --pill-ink: #FFFFFF; --seg-on: #FFFFFF; --seg-on-ink: #1D1D1F; --logo-filter: none;
}
/* The other styles are deliberate single looks; each sets every token. */
:root[data-design="E"] { /* Damal: navy header, teal and navy */
  --bg: #F5F8FA; --surface: #FFFFFF; --ink: #13202E; --muted: #4A5B6C; --line: #D5DFE8; --ref: #C9D6E2; --seg: #1B3A5C;
  --good: #237049; --good-tint: #E6F2EB; --warn: #9A5B00; --warn-tint: #FDF3E1; --bad: #B5432A; --bad-tint: #FBEDE9;
  --ops: #2997B8; --ops-text: #1F7391; --ops-tint: #E3F1F6; --sales: #225683; --sales-text: #225683; --sales-tint: #E6EEF5;
  --fin: #237049; --fin-text: #237049; --fin-tint: #E6F2EB; --fuel: #C27A00; --fuel-text: #9A5B00; --fuel-tint: #FDF3E1; --y1: #C9D6E2; --y2: #7F93A8;
  --sans: "Inter", -apple-system, "Segoe UI", Arial, sans-serif; --display: var(--sans); --num: var(--sans);
  --radius: 16px; --shadow: 0 1px 2px rgba(14,42,71,.04), 0 4px 14px -8px rgba(14,42,71,.10); --title-weight: 800;
  --head-bg: #0E2A47; --head-ink: #FFFFFF; --head-muted: #B7CCDD; --pill-bg: #FFFFFF; --pill-ink: #0E2A47; --seg-on: #FFFFFF; --seg-on-ink: #0E2A47; --logo-filter: brightness(0) invert(1); color-scheme: light }
:root[data-design="A"] { /* Ivory: warm paper, serif titles, Daallo green */
  --bg: #F8F6F2; --surface: #FFFFFF; --ink: #1D2A22; --muted: #5E6A61; --line: #E8E9E3; --ref: #B4BDB6; --seg: #ECEBE4;
  --good: #1E5B2A; --good-tint: #EAF3E8; --warn: #A15C07; --warn-tint: #FDF3E3; --bad: #B42318; --bad-tint: #FDECEA;
  --ops: #2E7E2A; --ops-text: #1E5B2A; --ops-tint: #EAF3E8; --sales: #3D7A8C; --sales-text: #2B5E6D; --sales-tint: #E7F0F2;
  --fin: #1E5B2A; --fin-text: #1E5B2A; --fin-tint: #EAF3E8; --fuel: #C7861C; --fuel-text: #A15C07; --fuel-tint: #FDF3E3; --y1: #D5D9D2; --y2: #8F9A91;
  --sans: "Poppins", "Helvetica Neue", Arial, sans-serif; --display: "Playfair Display", Georgia, serif; --num: var(--sans);
  --radius: 12px; --shadow: none; --title-weight: 600;
  --head-bg: #FFFFFF; --head-ink: #1D2A22; --head-muted: #5E6A61; --pill-bg: #EAF3E8; --pill-ink: #1E5B2A; --seg-on: #FFFFFF; --seg-on-ink: #1E5B2A; --logo-filter: none; color-scheme: light }
:root[data-design="B"] { /* Control room: dark and dense, mono numerals */
  --bg: #0E1612; --surface: #16211B; --ink: #E9F0EA; --muted: #9AAAA0; --line: #2A3A31; --ref: #51645A; --seg: #1C2A22;
  --good: #8FDB88; --good-tint: #1F3526; --warn: #F2B84B; --warn-tint: #3A2E14; --bad: #FF8F80; --bad-tint: #3A1F1C;
  --ops: #5CC255; --ops-text: #8FDB88; --ops-tint: #1F3526; --sales: #4FB3D9; --sales-text: #8FD0EA; --sales-tint: #16303A;
  --fin: #B9D65C; --fin-text: #CFE58A; --fin-tint: #2A3319; --fuel: #F2B84B; --fuel-text: #F2B84B; --fuel-tint: #3A2E14; --y1: #3A4C42; --y2: #7C8F84;
  --sans: "Poppins", "Helvetica Neue", Arial, sans-serif; --display: var(--sans); --num: "IBM Plex Mono", Consolas, monospace;
  --radius: 6px; --shadow: none; --title-weight: 600;
  --head-bg: #0A110E; --head-ink: #E9F0EA; --head-muted: #9AAAA0; --pill-bg: #1F3526; --pill-ink: #8FDB88; --seg-on: #1F3526; --seg-on-ink: #8FDB88; --logo-filter: brightness(0) invert(1); color-scheme: dark }
:root[data-design="C"] { /* Bold green: green header band, soft cards */
  --bg: #ECF1EA; --surface: #FFFFFF; --ink: #14201A; --muted: #56635A; --line: #DDE5DA; --ref: #B9C6B6; --seg: #2F6E3A;
  --good: #1E5B2A; --good-tint: #E3F0E0; --warn: #A15C07; --warn-tint: #FDF3E3; --bad: #B42318; --bad-tint: #FDECEA;
  --ops: #2E7E2A; --ops-text: #1E5B2A; --ops-tint: #E3F0E0; --sales: #1F7A6B; --sales-text: #17594E; --sales-tint: #E0F0EC;
  --fin: #1E5B2A; --fin-text: #1E5B2A; --fin-tint: #E3F0E0; --fuel: #C7861C; --fuel-text: #A15C07; --fuel-tint: #FDF3E3; --y1: #CBD6C8; --y2: #86968A;
  --sans: "Poppins", "Helvetica Neue", Arial, sans-serif; --display: var(--sans); --num: var(--sans);
  --radius: 18px; --shadow: 0 10px 24px -18px rgba(20,32,26,.45); --title-weight: 700;
  --head-bg: #1E5B2A; --head-ink: #FFFFFF; --head-muted: #D5E8D2; --pill-bg: #FFFFFF; --pill-ink: #1E5B2A; --seg-on: #FFFFFF; --seg-on-ink: #1E5B2A; --logo-filter: brightness(0) invert(1); color-scheme: light }
@media (prefers-color-scheme: dark) { :root[data-design="D"]:not([data-theme="light"]), :root:not([data-design]):not([data-theme="light"]) {
  --head-bg: #000000; --head-ink: #F5F5F7; --head-muted: #A1A1A6; --pill-bg: #F5F5F7; --pill-ink: #000000; --seg-on: #48484A; --seg-on-ink: #F5F5F7; --logo-filter: brightness(0) invert(1);
  --bg: #000000; --surface: #1C1C1E; --ink: #F5F5F7; --muted: #A1A1A6; --line: #2C2C2E; --ref: #48484A; --seg: #2C2C2E;
  --good: #5ED17A; --good-tint: #12301B; --warn: #FFB340; --warn-tint: #3A2A0A; --bad: #FF6961; --bad-tint: #3A1414;
  --ops: #40C8E0; --ops-text: #6FD8EA; --ops-tint: #0E2E35; --sales: #0A84FF; --sales-text: #6CB6FF; --sales-tint: #0C2540;
  --fin: #30D158; --fin-text: #5ED17A; --fin-tint: #12301B; --fuel: #FF9F0A; --fuel-text: #FFB340; --fuel-tint: #3A2A0A;
  --y1: #48484A; --y2: #8E8E93; color-scheme: dark } }
:root[data-theme="dark"][data-design="D"], :root[data-theme="dark"]:not([data-design]) {
  --head-bg: #000000; --head-ink: #F5F5F7; --head-muted: #A1A1A6; --pill-bg: #F5F5F7; --pill-ink: #000000; --seg-on: #48484A; --seg-on-ink: #F5F5F7; --logo-filter: brightness(0) invert(1);
  --bg: #000000; --surface: #1C1C1E; --ink: #F5F5F7; --muted: #A1A1A6; --line: #2C2C2E; --ref: #48484A; --seg: #2C2C2E;
  --good: #5ED17A; --good-tint: #12301B; --warn: #FFB340; --warn-tint: #3A2A0A; --bad: #FF6961; --bad-tint: #3A1414;
  --ops: #40C8E0; --ops-text: #6FD8EA; --ops-tint: #0E2E35; --sales: #0A84FF; --sales-text: #6CB6FF; --sales-tint: #0C2540;
  --fin: #30D158; --fin-text: #5ED17A; --fin-tint: #12301B; --fuel: #FF9F0A; --fuel-text: #FFB340; --fuel-tint: #3A2A0A;
  --y1: #48484A; --y2: #8E8E93; color-scheme: dark }
* { box-sizing: border-box; }
body { background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 14px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
.fam-ops { --a: var(--ops); --at: var(--ops-text); --tint: var(--ops-tint); }
.fam-sales { --a: var(--sales); --at: var(--sales-text); --tint: var(--sales-tint); }
.fam-fin { --a: var(--fin); --at: var(--fin-text); --tint: var(--fin-tint); }
.fam-fuel { --a: var(--fuel); --at: var(--fuel-text); --tint: var(--fuel-tint); }
.wrap { max-width: 1240px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--bg); }
.styles { background: var(--surface); border-bottom: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.styles .wrap { display: flex; align-items: center; gap: 10px; padding-block: 6px; overflow-x: auto; scrollbar-width: none; }
.styles b { font-weight: 600; white-space: nowrap; }
.styles button { font: inherit; font-weight: 600; border: 1px solid var(--line); background: transparent; color: var(--ink); padding: 4px 11px; border-radius: 999px; cursor: pointer; white-space: nowrap; }
.styles button[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; background: var(--head-bg); color: var(--head-ink); border-bottom: 1px solid var(--line); }
.top { display: flex; align-items: center; gap: 14px; padding-block: 9px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
#menu { border: 0; background: transparent; color: var(--head-ink); width: 38px; height: 38px; border-radius: 10px; cursor: pointer; display: grid; place-items: center; flex: none; }
#menu:hover { background: color-mix(in srgb, var(--head-ink) 12%, transparent); }
#menu svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; }
.shell { display: flex; align-items: flex-start; }
aside { width: 250px; flex: none; position: sticky; top: calc(env(safe-area-inset-top, 0px) + 57px); height: calc(100vh - 57px); overflow-y: auto; background: var(--surface); border-right: 1px solid var(--line); padding: 14px 10px 30px; }
:root[data-nav="closed"] aside { display: none; }
.navhead { font-size: 11px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--ink); margin: 18px 0 6px 10px; padding-left: 9px; border-left: 3px solid var(--a); }
aside a { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 500; font-size: 13.5px; padding: 8px 12px; border-radius: 10px; }
aside a::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--a); flex: none; opacity: .55; }
aside a:hover { background: var(--tint); }
aside a[aria-current="page"] { background: var(--at); color: var(--surface); font-weight: 600; }
aside a[aria-current="page"]::before { background: var(--surface); opacity: 1; }
aside .badge { margin-left: auto; font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 999px; background: var(--warn-tint); color: var(--warn); }
aside .depth { margin: 0 10px 4px; font-size: 11.5px; color: var(--muted); }
.scrim { display: none; }
@media (max-width: 900px) {
  aside { position: fixed; z-index: 8; left: 0; top: 0; height: 100%; padding-top: calc(env(safe-area-inset-top, 0px) + 14px); padding-left: max(10px, env(safe-area-inset-left, 0px)); box-shadow: 0 0 40px rgba(0,0,0,.3); }
  :root:not([data-nav="open"]) aside { display: none; }
  :root[data-nav="open"] .scrim { display: block; position: fixed; inset: 0; z-index: 7; background: rgba(0,0,0,.35); border: 0; width: 100%; }
}
.stack { display: flex; flex-direction: column; gap: 14px; }
.fbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 10px 0; background: var(--bg); font-size: 13px; }
@media (min-width: 901px) { .fbar { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 57px); z-index: 4; } }
.fbar input[type="date"], .fbar select, .fbar summary, .fbar > button { font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 7px 11px; height: 36px; }
.fbar .to { color: var(--muted); }
.fbar .fcount { color: var(--ops-text); font-weight: 600; font-size: 12px; margin-left: 4px; }
.fbar > button { cursor: pointer; font-weight: 600; }
.fbar details { position: relative; }
.fbar summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.fbar summary::-webkit-details-marker { display: none; }
.fbar summary::after { content: ""; width: 7px; height: 7px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg) translateY(-2px); }
.fbar summary b { color: var(--ops-text); font-weight: 700; }
.fbar details[data-on] summary { border-color: var(--ops); }
.ddp { position: absolute; top: 40px; left: 0; z-index: 6; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 30px -10px rgba(0,0,0,.35); padding: 6px; min-width: 170px; max-height: 280px; overflow-y: auto; }
.ddp label { display: flex; gap: 8px; align-items: center; padding: 6px 8px; border-radius: 8px; white-space: nowrap; cursor: pointer; }
.ddp label:hover { background: var(--ops-tint); }
.net { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(250px, 1fr); gap: 14px; align-items: start; }
@media (max-width: 1000px) { .net { grid-template-columns: minmax(0, 1fr); } }
.netsvg { width: 100%; height: auto; display: block; }
.netsvg text { font: 700 13px var(--sans); fill: var(--ink); paint-order: stroke; stroke: var(--surface); stroke-width: 4px; stroke-linejoin: round; }
.netsvg marker path { fill: var(--ops-text); } .netsvg #arrowOn path { fill: var(--sales); }
.edge { cursor: pointer; outline: none; }
.edge-base { fill: none; stroke: var(--ops); opacity: .5; stroke-linecap: round; }
.geo .sea { fill: color-mix(in srgb, var(--ops) 20%, var(--surface)); } .geo .land { fill: var(--bg); stroke: color-mix(in srgb, var(--ops) 55%, var(--surface)); stroke-width: 1.2; stroke-linejoin: round; }
.geo .lake { fill: color-mix(in srgb, var(--ops) 20%, var(--surface)); stroke: color-mix(in srgb, var(--ops) 55%, var(--surface)); stroke-width: .8; } .geo .grid { fill: none; stroke: var(--ink); opacity: .05; stroke-width: 1; }
.netsvg .sealabel { font: italic 500 11px var(--sans); fill: var(--ops-text); opacity: .6; stroke: none; letter-spacing: .08em; text-anchor: middle; }
.plane { fill: var(--ops-text); stroke: var(--surface); stroke-width: .8; offset-rotate: auto; animation: fly 4s linear infinite; }
.edge.sel .plane { fill: var(--sales); transform: scale(1.5); }
.edge.sel .edge-base { stroke-dasharray: 1000; animation: draw .7s ease-out; }
.edge.back { opacity: .22; } .edge.back .plane { display: none; }
.netsvg:has(.edge:hover) .edge:not(:hover):not(.sel) { opacity: .25; }
.edge { transition: opacity .2s ease; }
.edge-hit { fill: none; stroke: transparent; stroke-width: 16; }
.edge:hover .edge-base, .edge:focus-visible .edge-base { opacity: .65; }
.edge.sel .edge-base { stroke: var(--sales); opacity: .9; }
.node { cursor: pointer; outline: none; }
.node .dot { fill: var(--ink); stroke: var(--surface); stroke-width: 2; } .node .ring { fill: none; stroke: var(--ink); opacity: .25; stroke-width: 1.5; }
.node:hover .ring, .node:focus-visible .ring { opacity: .7; }
.node.sel .dot { fill: var(--sales); } .node.sel .ring { stroke: var(--sales); opacity: .8; animation: pulse 1.8s ease-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes fly { 0% { offset-distance: 0%; opacity: 0; } 8% { opacity: 1; } 90% { opacity: 1; } 100% { offset-distance: 100%; opacity: 0; } }
@keyframes draw { from { stroke-dashoffset: 1000; } to { stroke-dashoffset: 0; } }
@keyframes pulse { from { transform: scale(.8); opacity: .9; } to { transform: scale(1.7); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .plane { display: none; } .edge.sel .edge-base, .node.sel .ring { animation: none; } .edge { transition: none; } }
.seldetail h3 { font-size: 20px; margin-bottom: 4px; } .seldetail h3::before { display: none; }
.eyebrow { margin: 0 0 2px; font-size: 11px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.seldetail h4, .card h4 { margin: 14px 0 6px; font-size: 12px; font-weight: 600; color: var(--muted); }
.facts { margin: 12px 0 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 5px 10px; font-size: 13px; }
.facts dt { color: var(--muted); } .facts dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; font-family: var(--num); }
.seldetail .spark { width: 100%; height: 56px; display: block; } td .spark { width: 120px; height: 28px; display: block; }
button.open { margin-top: 14px; font: inherit; font-weight: 600; border: 0; background: var(--tint); color: var(--at); padding: 9px 14px; border-radius: 10px; cursor: pointer; width: 100%; }
tr.drill.on td { background: var(--sales-tint); }
details.qa { border-bottom: 1px solid var(--line); padding: 10px 0; } details.qa:last-child { border-bottom: 0; }
details.qa summary { cursor: pointer; font-weight: 600; } details.qa p { margin: 8px 0 0; color: var(--muted); max-width: 75ch; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--head-muted); font-size: 12px; font-weight: 600; }
.brand img { width: 150px; max-width: 42vw; height: auto; display: block; filter: var(--logo-filter); }
.seg { display: flex; background: var(--seg); padding: 3px; border-radius: 999px; gap: 2px; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.seg button { border: 0; background: transparent; color: var(--head-ink); font: inherit; font-weight: 600; font-size: 13px; padding: 6px 14px; border-radius: 999px; cursor: pointer; white-space: nowrap; }
.seg button[aria-pressed="true"] { background: var(--seg-on); color: var(--seg-on-ink); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.period { margin-left: auto; font-size: 12px; color: var(--head-muted); border: 1px solid color-mix(in srgb, var(--head-muted) 40%, transparent); border-radius: 999px; padding: 5px 12px; white-space: nowrap; }
.subs { display: flex; gap: 6px; padding-block: 0 10px; overflow-x: auto; scrollbar-width: none; }
.subs a { text-decoration: none; color: var(--head-muted); font-weight: 600; font-size: 13px; padding: 6px 12px; border-radius: 999px; white-space: nowrap; }
.subs a:hover { color: var(--head-ink); }
.subs a[aria-current="page"] { background: var(--pill-bg); color: var(--pill-ink); }
.sec { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-top: 8px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.sec h2 { margin: 0; font-size: 16px; font-weight: 700; font-family: var(--display); display: flex; align-items: center; gap: 9px; }
.sec h2::before { content: ""; width: 9px; height: 9px; border-radius: 2px; background: var(--a); }
.sec span { margin-left: auto; color: var(--muted); font-size: 12.5px; }
.kpi.full { border-top: 4px solid var(--a); padding-top: 14px; }
.kpi .v small { display: inline-block; white-space: nowrap; font-size: 14px; font-weight: 600; color: var(--muted); margin-left: 5px; letter-spacing: 0; }
.kpi .delta { margin-top: 5px; font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.kpi .delta i { font-style: normal; font-weight: 500; color: var(--muted); margin-left: 4px; }
/* Up and down are shown by the arrow and the sign, in one colour: a fall in cost is good news, a fall in revenue is not. */
.kpi .delta.up, .kpi .delta.down { color: var(--ink); } .kpi .delta.flat { color: var(--muted); }
.kpi .delta span { font-size: 9px; vertical-align: 1px; }
.kpi dl { margin: 12px 0 0; padding-top: 10px; border-top: 1px solid var(--line); display: grid; grid-template-columns: fit-content(55%) minmax(0, 1fr); gap: 4px 10px; font-size: 12px; }
.kpi dt { color: var(--muted); overflow-wrap: anywhere; } .kpi dd { overflow-wrap: anywhere; margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
.kpi .cov { text-align: right; font-size: 11px; color: var(--muted); margin-top: 8px; font-weight: 600; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid var(--sales); outline-offset: 2px; }
main { padding-block: 22px 60px; display: flex; flex-direction: column; gap: 14px; flex: 1; min-width: 0; }
h1 { font-size: clamp(26px, 3.4vw, 34px); letter-spacing: -0.02em; margin: 0; font-weight: var(--title-weight); font-family: var(--display); text-wrap: balance; }
.card { box-shadow: var(--shadow); } .kpi .v, td, .bar .val { font-family: var(--num); }
.lead { color: var(--muted); margin: 4px 0 6px; max-width: 75ch; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.card { background: var(--surface); border-radius: var(--radius); padding: 18px 20px; min-width: 0; }
.kpi .k { color: var(--muted); font-size: 12.5px; font-weight: 600; display: flex; align-items: center; gap: 7px; }
.kpi .k::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--a); flex: none; }
.kpi .v { color: var(--at); font-size: 27px; font-weight: 700; letter-spacing: -0.02em; margin-top: 6px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.kpi .d { color: var(--muted); font-size: 12px; margin-top: 3px; min-height: 17px; }
.row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 14px; align-items: start; }
.row > .kpis { grid-template-columns: 1fr; }
h3 { margin: 0 0 12px; font-size: 15px; font-weight: 700; letter-spacing: -0.01em; display: flex; align-items: center; gap: 8px; }
h3::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--a, var(--ref)); flex: none; }
.hint { color: var(--muted); font-size: 12px; margin: 10px 0 0; }
.bar { display: grid; grid-template-columns: minmax(84px, 34%) 1fr auto; gap: 10px; align-items: center; padding: 4px 6px; margin: 0 -6px; border-radius: 8px; font-size: 13px; width: calc(100% + 12px); border: 0; background: transparent; color: inherit; font-family: inherit; text-align: left; }
button.bar { cursor: pointer; } button.bar:hover { background: var(--tint); }
.bar .n { overflow-wrap: anywhere; }
.bar .tr { height: 10px; border-radius: 5px; background: var(--bg); position: relative; overflow: hidden; }
.bar .tr b { position: absolute; top: 0; bottom: 0; border-radius: 5px; background: var(--a); }
.bar .tr b.neg { background: var(--bad); }
.bar .val { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.bar .val.neg { color: var(--bad); }
svg.ch { width: 100%; height: auto; max-height: 300px; display: block; touch-action: pan-y; cursor: crosshair; border-radius: 8px; }
svg.ch text { fill: var(--muted); font-size: 11px; font-family: var(--sans); }
svg.ch .g { stroke: var(--line); stroke-width: 1; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; margin-right: 5px; vertical-align: -1px; }
.scroll { overflow-x: auto; margin: 0 -6px; padding: 0 6px; }
table { border-collapse: collapse; width: 100%; font-size: 13px; }
th { text-align: left; color: var(--muted); font-weight: 600; font-size: 12px; padding: 7px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 7px 10px; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; white-space: nowrap; }
td:first-child { font-weight: 600; } tr:last-child td { border-bottom: 0; }
td.wrapc { white-space: normal; min-width: 150px; font-weight: 400; }
tr.drill { cursor: pointer; } tr.drill:hover td { background: var(--tint); }
td.pos { color: var(--good); background: var(--good-tint); font-weight: 600; } td.negc { color: var(--bad); background: var(--bad-tint); font-weight: 600; }
.chip { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.chip.ok { background: var(--good-tint); color: var(--good); } .chip.mid { background: var(--warn-tint); color: var(--warn); } .chip.late { background: var(--bad-tint); color: var(--bad); }
.note { border-radius: 14px; padding: 11px 14px; font-size: 13px; background: var(--sales-tint); color: var(--sales-text); }
.note.warn { background: var(--warn-tint); color: var(--warn); }
.tools { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.tools input { font: inherit; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); min-width: 0; flex: 1 1 200px; max-width: 320px; }
.tools .count { color: var(--muted); font-size: 12px; margin-left: auto; }
.tools button { font: inherit; font-weight: 600; font-size: 12px; border: 0; background: var(--ops-tint); color: var(--ops-text); padding: 6px 12px; border-radius: 999px; cursor: pointer; }
.pyr { display: grid; grid-template-columns: 1fr 52px 1fr; gap: 4px 8px; align-items: center; font-size: 12px; }
.pyr .l { display: flex; justify-content: flex-end; align-items: center; gap: 6px; } .pyr .r { display: flex; align-items: center; gap: 6px; }
.pyr b { height: 14px; border-radius: 4px; display: block; } .pyr .l b { background: var(--ops); } .pyr .r b { background: var(--sales); }
.pyr .c { text-align: center; font-weight: 600; } .pyr span { color: var(--muted); font-variant-numeric: tabular-nums; }
.foot { color: var(--muted); font-size: 12px; margin-top: 10px; max-width: 80ch; }
@media (max-width: 560px) { .period { margin-left: 0; } .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .kpi .v { font-size: 22px; --vmax: 22px; } .card { padding: 14px 15px; } }
/* signed-in person and the sign-out button, at the right of the header */
.who { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--head-muted); margin: 0; }
.who-name { max-width: 22ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.who button { font: inherit; font-weight: 600; color: var(--head-ink); background: transparent; border: 1px solid color-mix(in srgb, var(--head-muted) 40%, transparent); border-radius: 999px; padding: 5px 12px; cursor: pointer; white-space: nowrap; }
.who a { color: var(--head-ink); font-weight: 600; text-decoration: none; padding: 5px 2px; white-space: nowrap; }
.who a:hover { text-decoration: underline; }
.who a:focus-visible { outline: 2px solid var(--head-ink); outline-offset: 2px; border-radius: 4px; }
.who button:hover { background: color-mix(in srgb, var(--head-ink) 12%, transparent); }
.who button:focus-visible { outline: 2px solid var(--head-ink); outline-offset: 2px; }
@media (max-width: 720px) { .who-name { display: none; } }
/* On a phone the header keeps the menu, the logo and Sign out; the date range is already shown in the filters. */
@media (max-width: 640px) { .brand span, header .period, .who a { display: none; } .who { margin-left: auto; } }
/* the same links, in the menu, where a phone has room for them */
aside .acct { display: none; margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--line); }
@media (max-width: 640px) { aside .acct { display: block; } }
/* shown once after sign-in when there were wrong tries against the account */
.acct-warn { margin: 0; padding: 10px max(16px, env(safe-area-inset-left, 0px)); background: var(--warn-tint); color: var(--warn); font-size: 14px; }
.acct-warn a { color: inherit; font-weight: 700; }

/* ---------- card headings with the export button; the page title with Print */
.chead { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.chead h3 { margin-bottom: 0; }
.chead + * { margin-top: 12px; }
button.csv, #print { font: inherit; font-size: 11px; font-weight: 700; letter-spacing: 0.04em; color: var(--muted); background: transparent; border: 1px solid var(--line); border-radius: 999px; padding: 3px 9px; cursor: pointer; flex: none; }
button.csv:hover, #print:hover { color: var(--ink); border-color: var(--y2); }
button.csv:focus-visible, #print:focus-visible { outline: 2px solid var(--ops); outline-offset: 2px; }
.ptitle { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ptitle.bare { justify-content: flex-end; } .ptitle.bare h1 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
#print { font-size: 12px; padding: 6px 13px; }
/* ---------- change against the earlier period, on bar lists and tables */
.chg { font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; margin-left: 8px; }
.chg.up, td.chgc.up, .chg.down, td.chgc.down { color: var(--ink); } .chg.flat, td.chgc.flat { color: var(--muted); }
td.chgc { font-weight: 600; white-space: nowrap; }
.card.cmp .bar { grid-template-columns: minmax(84px, 30%) 1fr auto auto; }
td.flag { font-weight: 700; white-space: nowrap; } td.flag.on { color: var(--bad); } td.flag.off { color: var(--good); } td.flag.na { color: var(--muted); font-weight: 500; }
/* ---------- targets */
.kpi.tgt .meter { height: 6px; border-radius: 3px; background: var(--line); margin: 10px 0 8px; overflow: hidden; }
.kpi.tgt .meter b { display: block; height: 100%; border-radius: 3px; background: var(--muted); }
.kpi.tgt .state { margin-top: 6px; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.kpi.tgt .pill { display: inline-block; font-weight: 700; font-size: 11px; border-radius: 999px; padding: 2px 9px; margin-right: 4px; }
.kpi.tgt.st-met .pill { background: var(--good-tint); color: var(--good); } .kpi.tgt.st-met .meter b { background: var(--good); }
.kpi.tgt.st-close .pill { background: var(--warn-tint); color: var(--warn); } .kpi.tgt.st-close .meter b { background: var(--fuel); }
.kpi.tgt.st-missed .pill { background: var(--bad-tint); color: var(--bad); } .kpi.tgt.st-missed .meter b { background: var(--bad); }
.kpi.tgt.st-nodata .pill { background: var(--bg); color: var(--muted); }
.printhead { display: none; }
/* ---------- a figure stays on one line: the type shrinks to the card instead of the number breaking (--n is its length) */
@supports (width: 1cqi) {
  .kpi { container-type: inline-size; }
  .kpi .v { white-space: nowrap; overflow-wrap: normal; font-size: max(13px, min(var(--vmax, 27px), calc(100cqi / (var(--n, 8) * .64)))); }
}
.kpi .spark { display: block; width: 100%; height: 26px; margin-top: 8px; }
/* ---------- reading a chart: the line under the pointer, the box that names the point, the target */
svg.ch:focus-visible { outline: 3px solid var(--ops); outline-offset: 2px; }
svg.ch .xh { stroke: var(--ink); stroke-width: 1; opacity: .5; pointer-events: none; }
svg.ch .tg { stroke: var(--ink); stroke-width: 1.5; stroke-dasharray: 2 4; opacity: .75; }
.cmpsw { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-bottom: 10px; font-size: 12.5px; color: var(--muted); }
.cmpsw [role=group] { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 3px; border-radius: 999px; background: var(--y1); background: color-mix(in srgb, var(--y1) 45%, transparent); }
.cmpsw button { font: inherit; color: var(--muted); background: none; border: 0; border-radius: 999px; padding: 5px 12px; cursor: pointer; min-height: 30px; }
.cmpsw button[aria-pressed="true"] { color: var(--ink); background: var(--surface); font-weight: 600; box-shadow: 0 1px 2px rgba(0,0,0,.12); }
.cmpsw label { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
svg.ch text.chl { font-size: 10.5px; font-weight: 600; fill: var(--ink); }
.legend .tgsw { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; } .legend .tgsw[aria-pressed="false"] { opacity: .5; text-decoration: line-through; }
.no-tg svg.ch .tg { display: none; }
.legend i.tgi { height: 0; border-top: 2px dotted var(--ink); border-radius: 0; vertical-align: 3px; width: 16px; }
.tip { position: fixed; z-index: 70; pointer-events: none; max-width: 260px; background: var(--ink); color: var(--surface); border-radius: 10px; padding: 8px 11px; font-size: 12px; line-height: 1.55; font-variant-numeric: tabular-nums; box-shadow: 0 10px 24px -12px rgba(0,0,0,.55); }
.tip[hidden], .fbar[hidden] { display: none; }
.tip b, .tip span, .tip em { display: block; } .tip em { font-style: normal; opacity: .75; margin-top: 3px; }
.tip i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 6px; }
/* ---------- the filters that are on, each with its own way out */
.chips { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 6px; } .chips:empty { display: none; }
.fchip, #f-undo { font: inherit; font-size: 12px; font-weight: 600; border-radius: 999px; padding: 5px 11px; min-height: 30px; cursor: pointer; }
.fchip { border: 0; background: var(--ops-tint); color: var(--ops-text); } .fchip span { margin-left: 7px; font-size: 14px; line-height: 1; }
.fchip:hover { background: color-mix(in srgb, var(--ops) 26%, var(--surface)); }
#f-undo { border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
@media (max-width: 640px) { .fchip, #f-undo { min-height: 38px; padding-inline: 13px; } }
/* ---------- route pairs: a heading for the pair, then one bar for each direction */
.pair { border-top: 1px solid var(--line); padding: 9px 0 5px; } h3 + .pair { border-top: 0; padding-top: 0; }
.pairttl { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; font-weight: 700; margin-bottom: 2px; font-variant-numeric: tabular-nums; }
.pairttl .pos { color: var(--good); } .pairttl .neg { color: var(--bad); }
.pair .bar .n { color: var(--muted); }
.bar .tr.mid::after { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: var(--y2); }
/* ---------- online sales: one button per channel */
.chsel { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.chsel button { font: inherit; text-align: left; cursor: pointer; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; min-height: 44px; }
.chsel button b, .chsel button span { display: block; } .chsel button span { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; margin-top: 2px; }
.chsel button:hover { border-color: var(--sales); } .chsel button[aria-pressed="true"] { background: var(--sales-tint); border-color: var(--sales); color: var(--sales-text); }
.chsel button[aria-pressed="true"] span { color: var(--sales-text); }
/* ---------- headings that sort their table */
th[aria-sort] { cursor: pointer; user-select: none; } th[aria-sort]:hover { color: var(--ink); }
th[aria-sort]:focus-visible { outline: 3px solid var(--ops); outline-offset: -3px; }
th[aria-sort="ascending"]::after { content: " ▲"; font-size: 9px; } th[aria-sort="descending"]::after { content: " ▼"; font-size: 9px; }
th[aria-sort="ascending"], th[aria-sort="descending"] { color: var(--ink); }
/* ---------- the place of the page while the data loads */
.skel { display: flex; flex-direction: column; gap: 14px; }
.skel i { display: block; height: 104px; border-radius: var(--radius); background: var(--surface); position: relative; overflow: hidden; } .skel i.big { height: 280px; }
/* ---------- motion: what is drawn grows into place once; none of it for a reader who asked for less motion */
@media (prefers-reduced-motion: no-preference) {
  .skel i::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, var(--bg) 50%, transparent 70%); animation: shimmer 1.3s linear infinite; }
  @keyframes shimmer { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
  :is(#view.anim, .detail) .bar .tr b, #view.anim .kpi.tgt .meter b { transform-origin: left; animation: grow-x .45s cubic-bezier(.2,.7,.2,1) both; }
  :is(#view.anim, .detail) .bar .tr b.neg { transform-origin: right; }
  @keyframes grow-x { from { transform: scaleX(0); } }
  :is(#view.anim, .detail) svg.ch rect { transform-box: fill-box; transform-origin: bottom; animation: grow-y .45s cubic-bezier(.2,.7,.2,1) both; }
  :is(#view.anim, .detail) svg.ch rect.neg { transform-origin: top; }
  @keyframes grow-y { from { transform: scaleY(0); } }
  :is(#view.anim, .detail) svg.ch path.ln { stroke-dasharray: 1; animation: draw-ln .7s ease-out both; }
  @keyframes draw-ln { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
  :is(#view.anim, .detail) svg.ch circle { animation: appear .3s .5s both; }
  @keyframes appear { from { opacity: 0; } }
  #view.anim .kpi .delta { transform-origin: left center; animation: nudge .6s ease-out; }
  @keyframes nudge { 40% { transform: scale(1.1); } }
  #view.fresh > * { animation: page-in .28s ease-out both; }
  @keyframes page-in { from { opacity: 0; transform: translateY(6px); } }
}
/* ---------- printing: the page itself, without the menu, the filters and the buttons */
/* Metric detail: a card that opens says so, and the panel slides over the right of the page. */
.kpi[data-metric] { cursor: pointer; position: relative; transition: transform .12s, box-shadow .12s; }
.kpi[data-metric]::after { content: "›"; position: absolute; top: 8px; right: 14px; font-size: 18px; font-weight: 700; color: var(--muted); opacity: .55; }
.kpi[data-metric]:hover, .kpi[data-metric]:focus-visible { transform: translateY(-2px); box-shadow: 0 8px 22px -14px rgba(14,42,71,.45); }
.kpi[data-metric]:hover::after, .kpi[data-metric]:focus-visible::after { content: "Details ›"; top: 12px; font-size: 11px; opacity: 1; background: var(--surface); padding-left: 6px; color: var(--a, var(--ops-text)); }
.kpi[data-metric]:focus-visible { outline: 3px solid var(--ops); outline-offset: 2px; }
.detail[hidden], .detail-scrim[hidden] { display: none; }
.kpi[data-metric] .k { padding-right: 14px; }
.detail dl.facts { margin: 0; }
.detail-scrim { position: fixed; inset: 0; z-index: 60; border: 0; padding: 0; background: rgba(14,28,45,.42); }
.detail { position: fixed; top: 0; right: 0; bottom: 0; z-index: 61; width: min(560px, 100vw); display: flex; flex-direction: column; background: var(--surface); color: var(--ink); box-shadow: -18px 0 40px -24px rgba(14,28,45,.5); animation: detail-in .18s ease-out; }
@keyframes detail-in { from { transform: translateX(24px); opacity: 0; } }
.detail-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 20px 22px 14px; border-bottom: 1px solid var(--line); }
.detail-head .eyebrow { margin: 0 0 4px; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.detail-head h2 { margin: 0; font-size: 22px; font-weight: var(--title-weight); font-family: var(--display); }
#detail-x { flex: none; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); font-size: 24px; line-height: 1; cursor: pointer; }
#detail-x:hover { background: var(--bg); } #detail-x:focus-visible { outline: 3px solid var(--ops); outline-offset: 2px; }
.detail-body { flex: 1; min-height: 0; overflow-y: auto; padding: 18px 22px; display: flex; flex-direction: column; gap: 14px; }
.detail .hero { background: var(--ops-tint); border-radius: var(--radius); padding: 18px 20px; }
.detail .hero .v { font-family: var(--num); font-size: 34px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.detail .hero .v small { font-size: 15px; font-weight: 600; color: var(--muted); margin-left: 6px; letter-spacing: 0; }
.detail .hero p { margin: 6px 0 0; font-size: 13px; color: var(--muted); }
.detail .card { box-shadow: none; border: 1px solid var(--line); }
.detail-foot { padding: 14px 22px; border-top: 1px solid var(--line); }
.detail-foot a { display: block; text-align: center; padding: 14px; border-radius: 14px; background: var(--ops-text); color: #fff; font-weight: 700; text-decoration: none; }
.detail-foot a:hover { filter: brightness(1.08); } .detail-foot a:focus-visible { outline: 3px solid var(--ops); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .detail { animation: none; } .kpi[data-metric] { transition: none; } .kpi[data-metric]:hover, .kpi[data-metric]:focus-visible { transform: none; } }
@media print { .kpi[data-metric]::after { content: none; } }
@media print {
  @page { size: A4; margin: 12mm 12mm 16mm;
    @bottom-left { content: "Daallo Airlines · Confidential, for internal use"; font: 8pt sans-serif; color: #666; }
    @bottom-right { content: "Page " counter(page) " of " counter(pages); font: 8pt sans-serif; color: #666; } }
  html, body { background: #fff !important; }
  header, aside, .scrim, .detail, .detail-scrim, .fbar, #phead, #print, button.csv, .tools, .acct-warn, .cmpsw { display: none !important; }
  .shell { display: block !important; } main.wrap { padding: 0 !important; max-width: none !important; }
  .printhead { display: flex; justify-content: space-between; align-items: flex-start; gap: 10mm; margin: 0 0 10pt; padding-bottom: 7pt; border-bottom: 1.5pt solid #1E8A47; }
  .ph-logo { width: 54mm; height: auto; flex: none; }
  .printhead p { margin: 0; } .ph-org { font-size: 8pt; letter-spacing: .08em; text-transform: uppercase; color: #555; }
  .ph-title { font-size: 17pt; font-weight: 700; color: #13202E; margin: 2pt 0 3pt !important; } .ph-meta { font-size: 8.5pt; color: #444; line-height: 1.45; }
  .card { box-shadow: none !important; border: 1px solid #c9d6e2; break-inside: avoid; }
  .row, .kpis, .sec { break-inside: avoid; }
  .scroll { overflow: visible !important; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
@media (max-width: 640px) { #fbar > input, #fbar > select, #fbar > details > summary, #fbar > button { min-height: 40px; } }
@media (max-width: 640px) { .who button { min-height: 38px; padding-inline: 14px; } }
.kpis.tgts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .kpis.tgts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.kpi.tgt.st-slice .pill { background: var(--bg); color: var(--muted); font-weight: 600; }
.tagx { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); color: var(--muted); font-size: 11px; font-weight: 600; }
/* On a phone a filter's list opens across the whole filter bar, so that it can never run off the screen. */
@media (max-width: 640px) { .fbar { position: relative; } .fbar details { position: static; } .ddp { left: 0; right: 0; top: auto; margin-top: 4px; } }
.fbar details:not([open]) .ddp { display: none; }

/* ---------- the live map (T32): the control room, in the dashboard's light colours. Colours come from its tokens. */
.live { --sea: color-mix(in srgb, var(--ops) 10%, var(--surface)); --land: color-mix(in srgb, var(--bg) 55%, var(--surface)); --coast: color-mix(in srgb, var(--ops) 30%, var(--line)); --route: color-mix(in srgb, var(--y2) 55%, var(--line)); }
.live .room { padding: 0; overflow: hidden; }
.live .ribbon { display: flex; flex-wrap: wrap; align-items: stretch; border-bottom: 1px solid var(--line); }
.live .ribbon > div { padding: 11px 16px; display: flex; flex-direction: column; gap: 2px; border-right: 1px solid var(--line); min-width: 0; }
.live .ribbon small { font-size: 11px; font-weight: 700; letter-spacing: .06em; color: var(--muted); white-space: nowrap; }
.live .ribbon b { font: 600 18px/1.25 var(--num); white-space: nowrap; } .live .ribbon b em { font: 500 12.5px var(--sans); color: var(--muted); font-style: normal; }
.live .ribbon .livedot { flex-direction: row; align-items: center; gap: 11px; } .live .ribbon .livedot > div { display: flex; flex-direction: column; gap: 2px; }
.live .ribbon .upd { margin-left: auto; border-right: 0; flex-direction: row; align-items: center; gap: 12px; }
.live .ribbon .upd span { font-size: 12px; color: var(--muted); white-space: nowrap; }
.live .upd button { font: 600 12.5px var(--sans); color: var(--surface); background: var(--ops); border: 0; border-radius: 999px; padding: 8px 16px; cursor: pointer; min-height: 34px; white-space: nowrap; }
.live .upd button:disabled { background: var(--y1); color: var(--muted); cursor: default; }
.live .dot { position: relative; width: 10px; height: 10px; border-radius: 50%; background: var(--good); flex: none; } .live .dot.off { background: var(--y2); }
.live .dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--good); opacity: .6; animation: live-fade 2.4s ease-in-out infinite; } .live .dot.off::after { display: none; }
.live .live-msg { margin: 0; padding: 8px 16px; font-size: 12.5px; color: var(--muted); background: var(--warn-tint); border-bottom: 1px solid var(--line); } .live .live-msg.bad { color: var(--bad); background: var(--bad-tint); }
.live .a-grid { display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(260px, 1fr); }
.live .mapbox { background: var(--sea); display: flex; align-items: center; min-width: 0; }
.live .rail { border-left: 1px solid var(--line); display: flex; flex-direction: column; min-width: 0; }
.live .ac { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; border-bottom: 1px solid var(--line); min-width: 0; }
.live .ac.due { background: color-mix(in srgb, var(--warn-tint) 60%, transparent); } .live .ac.miss { background: color-mix(in srgb, var(--bad-tint) 50%, transparent); }
.live .ac-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.live .ac-top b { font: 600 15px var(--num); } .live .ac-top small { font-size: 11.5px; color: var(--muted); margin-left: 6px; }
.live .ac h4 { margin: 0; font-size: 15px; font-weight: 700; line-height: 1.3; }
.live .ac p { margin: 0; font-size: 12.5px; color: var(--muted); } .live .ac p strong { color: var(--ink); font-weight: 600; }
.live .pill { font-size: 11.5px; font-weight: 700; border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.live .pill.air { color: var(--ops-text); background: var(--ops-tint); } .live .pill.due { color: var(--warn); background: var(--warn-tint); }
.live .pill.ground { color: var(--muted); background: var(--line); } .live .pill.late { color: var(--bad); background: var(--bad-tint); }
.live .leg { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 8px; font: 600 12px var(--num); }
.live .leg .bar { height: 4px; border-radius: 2px; background: var(--line); position: relative; }
.live .leg .bar i { position: absolute; inset: 0 auto 0 0; border-radius: 2px; background: var(--ops); }
.live .leg .bar u { position: absolute; top: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--ops); border: 2px solid var(--surface); }
.live .times { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 10px; font-size: 12px; color: var(--muted); }
.live .times b { color: var(--ink); font: 600 12.5px var(--num); } .live .times em { font-style: normal; font-weight: 700; color: var(--muted); } .live .times em.late { color: var(--bad); }
.live .facts { display: flex; flex-wrap: wrap; gap: 4px 12px; font: 500 11.5px var(--num); color: var(--muted); }
.live .mapkey { margin-top: auto; padding: 12px 16px; display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 7px 8px; align-items: center; font-size: 12px; color: var(--muted); }
.live .mapkey small { grid-column: 1 / -1; font-size: 11px; font-weight: 700; letter-spacing: .06em; } .live .mapkey svg { display: block; }
.live .k-flown { stroke: var(--ops); stroke-width: 3; stroke-linecap: round; } .live .k-todo { stroke: var(--ops); stroke-width: 2; stroke-dasharray: 2 5; stroke-linecap: round; }
.live .k-fix { fill: var(--sea); stroke: var(--ops); stroke-width: 1.6; } .live .k-park { fill: var(--surface); stroke: var(--ink); stroke-width: 1.8; } .live .k-hub { fill: var(--ink); }
.live .k-park.due { stroke: var(--warn); } .live .k-hub.due { fill: var(--warn); }
.map { display: block; width: 100%; height: auto; }
.map .sea { fill: var(--sea); } .map .land { fill: var(--land); stroke: var(--coast); stroke-width: .9; stroke-linejoin: round; } .map .lake { stroke: var(--coast); stroke-width: 1; }
.map .border { fill: none; stroke: var(--coast); stroke-width: 1; stroke-dasharray: 4 3; stroke-linejoin: round; opacity: .8; }
.map text.seaname { font-size: 11px; font-style: italic; fill: var(--muted); opacity: .7; letter-spacing: .06em; text-anchor: middle; }
.map text.landname { font-size: 10px; font-weight: 700; letter-spacing: .16em; fill: var(--muted); opacity: .6; text-anchor: middle; }
.map .lane { fill: none; stroke: var(--route); stroke-width: 1.1; }
.map .apt { fill: var(--ink); stroke: var(--land); stroke-width: 1.6; }
.map text.code { font-weight: 700; fill: var(--ink); paint-order: stroke; stroke: var(--land); stroke-width: 3px; stroke-linejoin: round; } .map text.code.tag { fill: var(--ops-text); }
.map text.city { fill: var(--muted); paint-order: stroke; stroke: var(--land); stroke-width: 3px; stroke-linejoin: round; }
/* the aircraft's mark, 19 Nov 2026: on the ground a square with a ground line, amber when due */
.map .parked .box { fill: var(--surface); stroke: var(--ink); stroke-width: 1.7; } .map .parked .craft { fill: var(--ink); } .map .parked .gl { stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; }
.map .parked.due .box { stroke: var(--warn); stroke-width: 2.4; } .map .parked.due .gl { stroke: var(--warn); } .map .parked .ping { stroke: var(--warn); }
.map .bdg circle { fill: var(--bad); stroke: var(--surface); stroke-width: 1.5; } .map .bdg rect, .map .bdg .i { fill: var(--surface); stroke: none; }
.map .clk circle { fill: var(--surface); stroke: var(--muted); stroke-width: 1.4; } .map .clk path { fill: none; stroke: var(--muted); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.map .selring { fill: var(--ops-tint); stroke: var(--ops); stroke-width: 1.6; }
.map .todo.sched { stroke: var(--muted); }
.map .flown { fill: none; stroke: var(--ops); stroke-width: 3; stroke-linecap: round; } .map .flown.late { stroke: var(--bad); }
.map .todo { fill: none; stroke: var(--ops); stroke-width: 2; stroke-dasharray: 2 6; stroke-linecap: round; opacity: .85; }
.map .fix { fill: var(--sea); stroke: var(--ops); stroke-width: 1.4; }
.map .jet .craft { fill: var(--ops); stroke: var(--surface); stroke-width: 1.3; stroke-linejoin: round; paint-order: stroke; }   /* late keeps the teal: the red is its badge */
.map .jet.stale .craft { fill: var(--surface); stroke: var(--muted); paint-order: normal; }
.map .jet .ping { stroke: var(--ops); } .map .jet.late .ping { stroke: var(--bad); }
.map .chip rect { fill: var(--surface); stroke-width: 1.2; } .map .chip .l1 { font-weight: 700; fill: var(--ink); } .map .chip .l2 { font-weight: 600; }
/* the live beacon: rings beam out from each aircraft in the air and from the live light; an aircraft due to leave beats slowly.
   A reader who asked the device for less motion gets a slow fade in place instead. */
/* the rings fade, they do not grow (19 Nov 2026): a scaled SVG circle is laid out again every frame, 60 times a second; opacity costs nothing */
.map .ping { fill: none; stroke-width: 2; vector-effect: non-scaling-stroke; opacity: .7; animation: live-fade 2.4s ease-in-out infinite; } .map .ping.p2 { animation-delay: 1.2s; } .map .ping.slow { animation-duration: 3.4s; }
@keyframes live-fade { 0%, 100% { opacity: .7; } 50% { opacity: .15; } }
@media (prefers-reduced-motion: no-preference) {
  .live .dot::after { animation: live-beam 2.2s cubic-bezier(.2, .6, .35, 1) infinite; }
  @keyframes live-beam { 0% { transform: scale(.55); opacity: .95; } 80%, 100% { transform: scale(3.1); opacity: 0; } }
}
.live .strip { border-top: 1px solid var(--line); padding: 0 0 12px; }
.live .sec-h { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 14px; padding: 12px 16px 6px; }
.live .sec-h h3 { font-size: 13px; letter-spacing: .06em; margin: 0; }
.live .key { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12px; color: var(--muted); }
.live .key i { display: inline-block; width: 18px; height: 8px; border-radius: 3px; margin-right: 5px; }
.live .key .k-plan { border: 1.3px solid var(--route); } .live .key .k-ok { background: var(--ops); } .live .key .k-late { background: var(--bad); } .live .key .k-due { border: 1.3px solid var(--warn); }
.live .gscroll { overflow-x: auto; padding: 0 8px; } .timeline { display: block; width: 100%; min-width: 640px; height: auto; }
.timeline .g { stroke: var(--line); } .timeline text { font: 11px var(--num); fill: var(--muted); } .timeline .reg { font-weight: 600; fill: var(--ink); font-size: 12px; } .timeline .fl { font-weight: 600; fill: var(--ink); }
.timeline .tl-plan { fill: none; stroke: var(--route); stroke-width: 1.3; } .timeline .tl-plan.dash { stroke-dasharray: 3 3; } .timeline .tl-plan.due { stroke: var(--warn); } .timeline .tl-plan.miss { stroke: var(--bad); }
.timeline .tl-ok { fill: var(--ops); } .timeline .tl-late { fill: var(--bad); } .timeline .tl-late-t { fill: var(--bad); font-weight: 700; }
.timeline .tl-now { stroke: var(--ink); stroke-width: 1.6; } .timeline .tl-nowbox { fill: var(--ink); } .timeline .tl-nowt { fill: var(--surface); font-weight: 600; }
.live td.st-late { color: var(--bad); font-weight: 600; } .live td.st-done, .live td.st-air { color: var(--good); font-weight: 600; } .live td.st-due { color: var(--warn); font-weight: 600; }
@media (max-width: 900px) {
  .live .a-grid { grid-template-columns: minmax(0, 1fr); } .live .rail { border-left: 0; border-top: 1px solid var(--line); }
  .live .ribbon > div { flex: 1 1 40%; border-bottom: 1px solid var(--line); } .live .ribbon .upd { flex: 1 1 100%; margin-left: 0; border-bottom: 0; justify-content: space-between; }
  .live .ribbon b, .live .ribbon .upd span { white-space: normal; }
}
.fleetnow .fn { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 22px; background: var(--surface); box-shadow: var(--shadow); border-radius: var(--radius); padding: 12px 18px; color: var(--muted); text-decoration: none; font-size: 13px; }
.fleetnow b { font-size: 20px; color: var(--ink); margin-right: 4px; font-family: var(--num); } .fleetnow .go { margin-left: auto; color: var(--ops-text); font-weight: 600; }
@media print { .live .upd, .live .live-msg, .fleetnow { display: none !important; } }

/* ---------- tracked days (T33 to T36): yesterday, this month so far, the file against tracking, the credits */
.trk { display: flex; flex-direction: column; gap: 14px; } .trk:empty { display: none; }
.trk h4 { margin: 14px 0 6px; font-size: 13.5px; }
.trk .kpis.inner { margin: 4px 0 0; } .trk .credits .kpi { box-shadow: none; border: 1px solid var(--line); }
.trk .credits .say { margin: 10px 0 0; font-size: 13px; font-weight: 600; padding: 8px 12px; border-radius: 10px; }
.trk .credits.warn .say { color: var(--warn); background: var(--warn-tint); } .trk .credits.stop .say { color: var(--bad); background: var(--bad-tint); }

/* ---------- the menu (T37): Live Now is a tab with its pages beneath it */
#nav .tabgrp { margin: 2px 0; }
#nav a.tab { font-weight: 700; }
#nav a.tab[aria-current="true"] { background: var(--ops-tint); color: var(--ops-text); }
#nav a.sub { padding-left: 34px; font-size: 13.5px; }

/* ---------- Flight replay (T39) */
.replay { display: flex; flex-direction: column; gap: 12px; }
.replay .days { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.replay .days button { font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; cursor: pointer; }
.replay .days button[aria-pressed="true"] { border-color: var(--ops); color: var(--ops-text); background: var(--ops-tint); font-weight: 600; }
.replay .days label { display: inline-flex; align-items: center; gap: 6px; margin-left: 6px; }
.replay button.get { font: 600 12px var(--sans); color: var(--surface); background: var(--ops); border: 0; border-radius: 999px; padding: 5px 12px; cursor: pointer; white-space: nowrap; }
.replay button.get:disabled { background: var(--y1); color: var(--muted); cursor: default; }
.replay .mapbox { background: color-mix(in srgb, var(--ops) 10%, var(--surface)); border-radius: 12px; overflow: hidden; --sea: color-mix(in srgb, var(--ops) 10%, var(--surface)); --land: color-mix(in srgb, var(--bg) 55%, var(--surface)); --coast: color-mix(in srgb, var(--ops) 30%, var(--line)); }
.map .run { fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.map .gap { fill: none; stroke-width: 1.8; stroke-dasharray: 3 6; stroke-linecap: round; opacity: .7; }
.map .mark circle { stroke: var(--surface); stroke-width: 2; } .map .mark.off { opacity: .35; }
.replay .slider { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; font: 600 12.5px var(--num); color: var(--muted); }
.replay .slider input { width: 100%; accent-color: var(--ops); }
.replay .slider button { font: 600 12.5px var(--sans); color: var(--surface); background: var(--ops); border: 0; border-radius: 999px; padding: 7px 16px; cursor: pointer; }
/* Live map: aircraft, map labels and cards can be chosen; the chosen one is marked and its details open below the map */
.live .ac[role=button], .map [data-reg] { cursor: pointer; }
.live .ac[role=button]:hover { background: color-mix(in srgb, var(--ops) 6%, transparent); }
.live .ac[role=button]:focus-visible { outline: 2px solid var(--ops); outline-offset: -2px; }
.live .ac.sel { box-shadow: inset 4px 0 0 var(--ops); background: color-mix(in srgb, var(--ops) 9%, transparent); }
.live .rail .pick { margin: 0; padding: 10px 16px; border-bottom: 1px solid var(--line); }
.map .chip.sel rect { stroke-width: 2.4; } .map .parked.sel .box { stroke: var(--ops); stroke-width: 2.8; }
.live-detail:empty { display: none; } .live-detail .card { margin-top: 14px; } .live-detail .det-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; } .live-detail .det-h h3 { margin: 0; font-size: 18px; }
.live-detail h3 small { font-weight: 400; color: var(--muted); margin-left: 6px; } .live-detail h3:focus { outline: none; }
#live-detail-x { flex: none; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); font-size: 24px; line-height: 1; cursor: pointer; } #live-detail-x:hover { background: var(--bg); } #live-detail-x:focus-visible { outline: 3px solid var(--ops); outline-offset: 2px; }
.live td.st-cancel, .replay td.st-late { color: var(--bad); font-weight: 600; } .replay td.st-plan { color: var(--muted); } .replay td.st-due { color: var(--warn); font-weight: 600; }
a.go-live, a.go-replay { color: var(--ops); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.replay tr.want td { background: color-mix(in srgb, var(--ops) 12%, transparent); } .replay tr.up td { color: var(--muted); }
.replay .rest-h { margin: 18px 0 6px; }
.replay .slider[hidden] { display: none; }   /* no path chosen yet: nothing to play */
/* Times: local at the airport, with UTC after a bar (18 Nov 2026, for board presentations) */
.lt { white-space: nowrap; font-variant-numeric: tabular-nums; } .lt b { font-weight: 600; color: var(--ink); } .lt i { font-style: normal; font-size: .82em; font-weight: 600; letter-spacing: .03em; color: var(--muted); margin-left: 2px; }
.lt .utc, .ribbon em.utc { color: var(--muted); font-size: .82em; font-weight: 400; }
/* The chosen aircraft's coming flights, as a flow */
.live-detail .det-sub { margin: 14px 0 6px; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.live-detail .flow { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.live-detail .flow li { position: relative; display: flex; flex-direction: column; gap: 2px; min-width: 150px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.live-detail .flow li + li::before { content: "→"; position: absolute; left: -8px; top: 50%; transform: translate(-50%, -50%); color: var(--muted); font-size: 13px; }
.live-detail .flow li.here { background: color-mix(in srgb, var(--ops) 9%, transparent); border-color: color-mix(in srgb, var(--ops) 35%, transparent); }
.live-detail .flow small { font-size: 11px; color: var(--muted); } .live-detail .flow b { font-size: 14px; color: var(--ink); } .live-detail .flow em { font-style: normal; font-size: 11px; font-weight: 600; color: var(--warn); }
.live-day tr.dayrow th { text-align: left; padding: 10px 0 4px; font-size: 12px; color: var(--ink); border-bottom: 1px solid var(--line); background: transparent; }
/* An aircraft's flights as rows (18 Nov 2026): day tabs, local time or UTC, route large, a status pill with what happened beneath */
.fx { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--surface); }
.fx-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.fx-tabs { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 3px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line); }
.fx-tabs button, .fx-zone { font: 600 12.5px/1 var(--sans, inherit); border: 0; border-radius: 8px; padding: 8px 12px; background: transparent; color: var(--ink); cursor: pointer; }
.fx-tabs button[aria-pressed=true] { background: var(--ops-text); color: #fff; }
.fx-tabs button:hover:not([aria-pressed=true]) { background: var(--ops-tint); }
.fx-zone { border: 1px solid var(--line); background: var(--surface); }
.fx-zone[aria-pressed=true] { border-color: var(--ops-text); color: var(--ops-text); }
.fx-tabs button:focus-visible, .fx-zone:focus-visible { outline: 2px solid var(--ops); outline-offset: 2px; }
.fx-sum { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px; padding: 9px 16px; font-size: 12.5px; color: var(--muted); border-bottom: 1px solid var(--line); }
.fx-sum b { color: var(--ink); }
.fx-head, .fx-row { display: grid; grid-template-columns: 104px minmax(190px, 1.3fr) minmax(96px, .8fr) minmax(96px, .8fr) minmax(220px, 1.5fr); gap: 16px; align-items: center; padding: 0 16px; }
.fx-head { padding-top: 10px; padding-bottom: 8px; font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); background: var(--bg); border-bottom: 1px solid var(--line); }
.fx-day { padding: 9px 16px; font-size: 13px; color: var(--muted); background: var(--bg); border-bottom: 1px solid var(--line); }
.fx-day b { color: var(--ink); margin-right: 2px; }
.fx-today { display: inline-block; margin-left: 8px; padding: 2px 8px; border-radius: 6px; font-size: 11px; font-weight: 700; color: var(--ops-text); background: var(--ops-tint); }
.fx-row { padding-top: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.fx-row:last-child { border-bottom: 0; }
.fx-row.is-air { background: color-mix(in srgb, var(--ops) 7%, transparent); box-shadow: inset 3px 0 0 var(--ops); }
.fx-fl b { display: block; font-size: 14px; color: var(--ink); font-variant-numeric: tabular-nums; }
.fx-fl span { display: inline-block; margin-top: 4px; font-size: 12px; }
.fx-fl .fx-on { font-weight: 600; color: var(--ops-text); }
.fx-rt { display: flex; align-items: center; gap: 12px; min-width: 0; }
.fx-rt b { display: block; font-size: 19px; line-height: 1.1; letter-spacing: .01em; color: var(--ink); }
.fx-rt small { display: block; font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fx-rt i { font-style: normal; color: var(--ops); font-size: 15px; }
.fx-lab { display: none; font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.fx-t b { display: block; font-size: 19px; line-height: 1.15; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.fx-t b i { font-style: normal; font-size: 11px; font-weight: 600; color: var(--muted); }
.fx-t small { display: block; font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.fx-st { min-width: 0; }
.fx-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.fx-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.fx-pill.air { color: var(--ops-text); background: var(--ops-tint); } .fx-pill.done { color: var(--good); background: var(--good-tint); }
.fx-pill.plan { color: var(--ops-text); background: color-mix(in srgb, var(--ops-tint) 60%, transparent); } .fx-pill.warn { color: var(--warn); background: var(--warn-tint); }
.fx-pill.bad { color: var(--bad); background: var(--bad-tint); } .fx-pill.none { color: var(--muted); background: var(--bg); }
.fx-st small { display: block; margin-top: 6px; font-size: 12px; color: var(--muted); line-height: 1.45; }
.fx-st em { font-style: normal; font-weight: 700; white-space: nowrap; } .fx-st em.bad { color: var(--bad); } .fx-st em.ok { color: var(--good); }
/* phone: each flight is a card; labels on the times instead of column headings */
@media (max-width: 760px) {
  .fx-head { display: none; }
  .fx-row { grid-template-columns: 1fr 1fr; grid-template-areas: "fl st" "rt rt" "dep arr"; gap: 10px 14px; padding: 14px; }
  .fx-fl { grid-area: fl; } .fx-st { grid-area: st; text-align: right; } .fx-rt { grid-area: rt; } .fx-dep { grid-area: dep; } .fx-arr { grid-area: arr; }
  .fx-lab { display: block; }
  .fx-st small { margin-top: 4px; }
}
/* Flight replay, 18 Nov 2026 design: two-line times, path buttons, an upcoming card, an info note and a key */
.replay .rp-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; }
.replay .rp-upd { font-size: 13px; color: var(--muted); }
.replay .rp-date input { padding: 7px 10px; border: 1px solid var(--line); border-radius: 10px; font: inherit; background: var(--surface); color: var(--ink); }
.replay .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.replay .rp-note { margin: 10px 0 4px; font-size: 12.5px; color: var(--muted); }
.replay-list td { vertical-align: middle; padding-top: 10px; padding-bottom: 10px; }
.replay-list td b { color: var(--ink); }
.replay button.get { white-space: nowrap; border-radius: 999px; padding: 7px 16px; font-weight: 700; font-size: 12.5px; cursor: pointer; }
.replay button.get.show { background: var(--surface); color: var(--ops-text); border: 1.5px solid var(--ops-text); }
.replay button.get.buy { background: var(--ops-text); color: #fff; border: 1.5px solid var(--ops-text); }
.replay button.get:disabled { opacity: .5; cursor: not-allowed; }
.replay button.get:focus-visible { outline: 2px solid var(--ops); outline-offset: 2px; }
.replay tr.up td { color: inherit; background: color-mix(in srgb, var(--ops) 8%, transparent); }
.replay .rp-after { display: block; font-size: 12.5px; color: var(--muted); }
.replay .rp-msg { margin: 10px 0 0; padding: 8px 12px; border-radius: 10px; background: var(--ops-tint); color: var(--ops-text); font-size: 13px; font-weight: 600; }
.replay .rp-key { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 8px; font-size: 12.5px; color: var(--muted); }
.replay .rp-key i { display: inline-block; width: 34px; margin-right: 8px; vertical-align: middle; border-top: 2px solid var(--ink); }
.replay .rp-key i.dash { border-top-style: dashed; }
.rp-info { display: flex; align-items: center; gap: 12px; margin-top: 16px; padding: 12px 16px; border-radius: 12px; background: var(--ops-tint); color: var(--ink); font-size: 13.5px; }
.rp-info span { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--ops-text); color: var(--ops-text); display: grid; place-items: center; font: 700 12px/1 Georgia, serif; }
.rp-info p { margin: 0; }
.rp-foot { margin: 10px 0 0; font-size: 12px; color: var(--muted); }
.replay .rp-key[hidden], .replay .rp-msg[hidden] { display: none; }   /* their display rule would otherwise beat [hidden] */
/* phone: each flight a card, labels on the fields, no sideways scrolling */
@media (max-width: 760px) {
  .replay-list, .replay-list tbody { display: block; width: 100%; }
  .replay-list thead { display: none; }
  .replay-list tr { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; padding: 12px 2px; border-bottom: 1px solid var(--line); }
  .replay-list td { display: block; padding: 0; border: 0; }
  .replay-list td[data-l]::before { content: attr(data-l); display: block; font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
  .replay .rp-fl { grid-column: 1 / -1; font-size: 15px; } .replay .rp-go { grid-column: 1 / -1; }
  .replay .rp-go button.get { width: 100%; padding: 10px 16px; }
  .replay .scroll { overflow: visible; }
}
/* Today's flights as a list: the same rows as the aircraft panel, with the registration under the flight number */

/* ---- Live map, step 6 of the 18 Nov plan: clock and tiles, the network beside Fleet status ---- */
.live .lv6 { display: grid; gap: 14px; --due: #E8A317; }
.lv6 .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--good); margin-right: 6px; vertical-align: 1px; flex: none; }
.lv6 .dot.off { background: var(--muted); } .lv6 .dot.due { background: var(--due); } .lv6 .dot.air { background: var(--ops); }
.lv-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px; }
.lv-top .lv-date { color: var(--muted); font-size: 15px; }
.lv-clock { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.lv-clock > b { font: 800 46px/1 var(--sans); letter-spacing: -.02em; font-variant-numeric: tabular-nums; padding-right: 14px; border-right: 1px solid var(--line); color: var(--ink); }
.lv-clock > span { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); }
.lv-clock > span small { display: block; font-size: 15px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--muted); margin-top: 3px; }
.lv-clock #live-upd { border: 0; border-radius: 999px; padding: 10px 18px; background: var(--ops-text); color: #fff; font: 700 13px var(--sans); cursor: pointer; }
.lv-clock #live-upd:disabled { opacity: .5; cursor: not-allowed; }
.lv6 .live-msg { margin: 0; }
.lv-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.lv-t { display: flex; justify-content: space-between; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; min-width: 0; }
.lv-t small { display: block; font-size: 14px; font-weight: 600; color: var(--ink); } .lv-t b { display: block; font: 800 32px/1.15 var(--sans); font-variant-numeric: tabular-nums; color: var(--ink); } .lv-t span { font-size: 13px; color: var(--muted); }
.lv-t svg { flex: none; width: 46px; height: 46px; padding: 11px; border-radius: 50%; background: var(--ops-tint); fill: none; stroke: var(--ops-text); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.lv-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(300px, 1fr); gap: 16px; align-items: start; }
.lv-mapcard { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; min-width: 0; }
.lv-map-h { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px; padding: 12px 16px; } .lv-map-h b { font-size: 17px; color: var(--ink); } .lv-map-h span { font-size: 13px; color: var(--muted); }
.lv-mapwrap { position: relative; } .lv6 .mapbox { border-radius: 0; }
.lv-zoom { position: absolute; right: 12px; bottom: 12px; display: grid; gap: 8px; }
.lv-zoom button { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: 700 16px var(--sans); cursor: pointer; box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.lv-zoom button:focus-visible { outline: 2px solid var(--ops); outline-offset: 2px; }
.lv-key { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 10px 16px; font-size: 12.5px; color: var(--muted); border-top: 1px solid var(--line); }
.lv-key i { display: inline-block; vertical-align: -2px; margin-right: 6px; }
.lv-key .k-g { width: 12px; height: 12px; border-radius: 3px; border: 2px solid var(--ink); } .lv-key .k-d { width: 12px; height: 12px; border-radius: 3px; border: 2.5px solid var(--warn); }
.lv-key .k-l { width: 11px; height: 11px; border-radius: 50%; background: var(--bad); } .lv-key .k-s { width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid var(--muted); }
.lv-key .k-r { width: 24px; border-top: 2px dashed var(--due); vertical-align: 3px; } .lv-key .k-f { width: 24px; border-top: 2.5px solid var(--ops); vertical-align: 3px; } .lv-key .k-t { width: 24px; border-top: 2px dotted var(--ops); vertical-align: 3px; }
.map .nextleg { fill: none; stroke: var(--due, #E8A317); stroke-dasharray: 6 5; stroke-linecap: round; }
.map .plabel text { fill: var(--ink); } .map .plabel { cursor: pointer; }
/* Fleet status */
.lv6 .rail { border: 0; display: grid; gap: 10px; align-content: start; }
.fs-h { display: flex; justify-content: space-between; align-items: baseline; } .fs-h b { font-size: 17px; color: var(--ink); } .fs-h span { font-size: 13px; color: var(--muted); }
.lv6 .rail .ac { border-bottom: 0; }
.fs-dark { background: #0E2A47; color: #fff; border-radius: 14px; padding: 16px 18px !important; gap: 10px !important; }
.fs-dark.sel { box-shadow: 0 0 0 3px var(--ops) !important; background: #0E2A47 !important; }
.fs-dark:hover { background: #12345A !important; }
.fs-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #F2C14E; }
.fs-air .fs-top { color: #8FD3EA; }
.fs-top em { font-style: normal; letter-spacing: 0; text-transform: none; font-size: 13px; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.fs-top em.due { color: #3A2600; background: #F2B33D; } .fs-top em.late { color: #3D140B; background: #F08B72; } .fs-top em.ok { color: #0F3A22; background: #8FD9A8; }
.fs-rt { display: flex; align-items: center; gap: 14px; } .fs-rt b { display: block; font: 800 28px/1 var(--sans); color: #fff; } .fs-rt small { font-size: 13px; color: #BFD3E2; }
.fs-arrow { font-style: normal; font-size: 24px; color: #BFD3E2; }
.fs-prog { flex: 1; position: relative; height: 4px; border-radius: 2px; background: rgba(255,255,255,.25); } .fs-prog i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 2px; background: #4DB6D6; }
.fs-prog u { position: absolute; top: 50%; transform: translate(-50%, -58%); text-decoration: none; font-size: 15px; color: #fff; }
.fs-tm { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; } .fs-tm b { font: 800 32px/1 var(--sans); font-variant-numeric: tabular-nums; padding-right: 14px; border-right: 1px solid rgba(255,255,255,.35); color: #fff; }
.fs-tm b small { font-size: 15px; font-weight: 700; } .fs-tm span { font-size: 14px; color: #D3E3EE; }
/* 19 Nov 2026: the "Lands about" tag of the cards */
.fs-eta { align-self: flex-start; justify-self: start; width: fit-content; padding: 5px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; white-space: nowrap; color: #0B2F45; background: #8FD3EA; }
.fs-eta b { font-weight: 800; } .fs-eta.ok { color: #0F3A22; background: #8FD9A8; } .fs-eta.late { color: #3D140B; background: #F08B72; }
.lq-now .fs-eta { color: var(--ops-text); background: var(--surface); box-shadow: inset 0 0 0 1px var(--ops); } .lq-now .fs-eta.ok { color: var(--good); box-shadow: inset 0 0 0 1px var(--good); } .lq-now .fs-eta.late { color: var(--bad); box-shadow: inset 0 0 0 1px var(--bad); }
.fs-facts { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; color: #D3E3EE; }
.fs-dark .lt b { color: #fff; } .fs-dark .lt i, .fs-dark .lt .utc { color: #BFD3E2; }
.fs-foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px; padding-top: 10px; border-top: 1px solid rgba(255,255,255,.25); font-size: 13.5px; } .fs-foot b { color: #fff; } .fs-foot span { color: #D3E3EE; }
.fs-item { display: grid !important; grid-template-columns: 32px 1fr; gap: 12px !important; padding: 12px 6px !important; border-bottom: 1px solid var(--line) !important; border-radius: 10px; }
.fs-n { width: 30px; height: 30px; border-radius: 50%; background: #0E2A47; color: #fff; font-size: 12px; font-weight: 800; display: grid; place-items: center; }
.fs-body { min-width: 0; }
.fs-l1 { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; } .fs-l1 b { font-size: 17px; font-weight: 800; color: var(--ink); } .fs-l1 small { color: var(--muted); font-size: 13px; }
.fs-l1 em { margin-left: auto; font-style: normal; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.fs-l1 em.ground { background: var(--bg); color: var(--ink); border: 1px solid var(--line); } .fs-l1 em.due { background: var(--warn-tint); color: var(--warn); } .fs-l1 em.late { background: var(--bad-tint); color: var(--bad); }
.fs-l2 { font-size: 17px; font-weight: 700; color: var(--ink); margin-top: 2px; } .fs-l2 i { font-style: normal; color: var(--muted); margin: 0 4px; }
.fs-l3 { font-size: 14px; color: var(--ink); margin-top: 2px; } .fs-l3 span, .fs-l4 { color: var(--muted); font-size: 13px; } .fs-l4 { margin-top: 2px; }
.fs-info { display: flex; gap: 10px; align-items: center; margin: 2px 0 0; font-size: 13px; color: var(--muted); }
.fs-info span { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--muted); display: grid; place-items: center; font: 700 11px Georgia, serif; flex: none; }
.lv-foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.lv6 > .room { margin: 0; }
@media (max-width: 1100px) { .lv-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) { .lv-tiles { grid-template-columns: 1fr 1fr; } .lv-clock > b { font-size: 36px; } .lv-t b { font-size: 26px; } .lv-t svg { width: 38px; height: 38px; padding: 9px; } }
.lv6 .map .land, .lv6 .map .lane, .lv6 .map .border { vector-effect: non-scaling-stroke; }   /* zooming keeps coastlines and routes thin */

/* ---- Route style (18 Nov plan, steps 1–5): codes large with cities beneath in tables; codes with cities on hover elsewhere ---- */
.rc { display: inline-flex; align-items: center; gap: 9px; white-space: nowrap; }
.rc b { display: block; font-size: 15px; font-weight: 800; line-height: 1.1; letter-spacing: .01em; color: var(--ink); }
.rc small { display: block; font-size: 11.5px; font-weight: 400; color: var(--muted); }
.rc i { font-style: normal; color: var(--ops); font-size: 13px; }
.rc-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ac1 b { display: block; font-size: 15px; font-weight: 800; line-height: 1.1; color: var(--ink); } .ac1 small { display: block; font-size: 11.5px; color: var(--muted); }
td.rcell { padding-top: 7px; padding-bottom: 7px; }
.rt1 { cursor: help; white-space: nowrap; } .rt1 b { font-weight: 700; } .rt1 i { font-style: normal; color: var(--ops); margin: 0 5px; font-size: .9em; }
.ph { cursor: help; text-decoration: underline dotted color-mix(in srgb, var(--muted) 70%, transparent); text-underline-offset: 3px; }
/* the flight list as cards on a phone */
@media (max-width: 760px) {
  table.flist, table.flist tbody { display: block; } table.flist thead { display: none; }
  table.flist tr { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; padding: 12px 2px; border-bottom: 1px solid var(--line); }
  table.flist td { display: block; padding: 0; border: 0; text-align: left !important; }
  table.flist td:nth-child(3) { grid-column: 1 / -1; }
  table.flist td:nth-child(n+4)::before { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
  table.flist td:nth-child(4)::before { content: "Registration"; } table.flist td:nth-child(5)::before { content: "Type"; } table.flist td:nth-child(6)::before { content: "Passengers"; }
  table.flist td:nth-child(7)::before { content: "Dep. delay"; } table.flist td:nth-child(8)::before { content: "Arr. delay"; } table.flist td:nth-child(9)::before { content: "Block h"; }
  table.flist td:nth-child(10)::before { content: "Fuel L"; } table.flist td:nth-child(11)::before { content: "Cargo kg"; } table.flist td:nth-child(12)::before { content: "Revenue"; }
  table.flist td:nth-child(13)::before { content: "Result"; } table.flist td:nth-child(14)::before { content: "AOC"; }
}
/* ---- Live Now as one page (step 7): sections and their headings (the bar of sections was removed on 19 Nov 2026) ---- */
.lv-sec { scroll-margin-top: calc(env(safe-area-inset-top, 0px) + 70px); display: grid; gap: 14px; }
.lv-sh { margin: 10px 0 0; font-size: 20px; font-weight: 800; letter-spacing: -.01em; color: var(--ink); }
#lv-replay { margin-top: 18px; }
/* ---- 19 Nov 2026: the next departure is a light card, so the aircraft in the air is the one dark block in the rail.
   Framed in amber; inside 30 minutes the dot pings and a halo leaves the frame; red once late. --fr is the frame's colour ---- */
.lv6 .rail .ac.fs-next { --fr: #F2B33D; position: relative; background: linear-gradient(var(--warn-tint), var(--surface) 46px); color: var(--ink); border: 1px solid color-mix(in srgb, var(--fr) 55%, var(--line)); border-radius: 14px; padding: 16px 18px; gap: 10px; }
.lv6 .rail .ac.fs-soon, .lv6 .rail .ac.fs-late { border: 2px solid var(--fr); padding: 15px 17px; }
.lv6 .rail .ac.fs-late { --fr: var(--bad); background: linear-gradient(var(--bad-tint), var(--surface) 46px); }
.lv6 .rail .ac.fs-next:hover { border-color: var(--fr); }
.lv6 .rail .ac.fs-next.sel { box-shadow: 0 0 0 3px var(--ops); }
.fs-next .fs-top { color: var(--warn); } .fs-late .fs-top { color: var(--bad); } .lv6 .fs-late .dot { background: var(--bad); }
.fs-late .fs-top em.late { background: var(--bad); color: var(--surface); }
.fs-next .fs-rt b, .fs-next .fs-tm b, .fs-next .fs-foot b { color: var(--ink); }
.fs-next .fs-rt small, .fs-next .fs-arrow, .fs-next .fs-tm span, .fs-next .fs-foot span { color: var(--muted); }
.fs-next .fs-tm b, .fs-next .fs-foot { border-color: var(--line); }
@media (prefers-reduced-motion: no-preference) {
  .fs-soon .fs-top .dot, .fs-late .fs-top .dot { position: relative; }
  .fs-soon .fs-top .dot::after, .fs-late .fs-top .dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 0; background: var(--fr); animation: fs-ping 2s ease-out infinite; }
  .fs-soon::after, .fs-late::after { content: ""; position: absolute; inset: -2px; border-radius: 14px; pointer-events: none; box-shadow: 0 0 0 6px color-mix(in srgb, var(--fr) 45%, transparent); animation: fs-halo 2.4s ease-out infinite; }
}
/* transform and opacity only: the browser moves these without laying the page out or repainting it */
@keyframes fs-ping { 0% { transform: scale(1); opacity: .7; } 80%, 100% { transform: scale(3.2); opacity: 0; } }
@keyframes fs-halo { 0% { opacity: .9; } 75%, 100% { opacity: 0; } }
@media print { .fs-next::after { content: none !important; } .fs-next .dot { animation: none !important; } }

/* ---- T45 (18 Nov 2026): a route is a grid of origin | ✈ | destination, so origins and destinations line up down a table ---- */
.rc { display: inline-grid; grid-template-columns: 66px 18px minmax(66px, auto); column-gap: 8px; align-items: center; white-space: normal; }
.rc > span:not(.rc-sr) { display: grid; row-gap: 2px; justify-items: start; text-align: left; min-width: 0; }
.rc small { overflow-wrap: anywhere; }
.rc i { justify-self: center; }
/* flight-by-flight tables (flight list, 7 a.m., charters, replay): the full size */
td.rgrid { padding-top: 14px; padding-bottom: 14px; vertical-align: middle; }
td.rgrid .rc { grid-template-columns: 80px 32px 100px; column-gap: 12px; }
td.rgrid .rc > span:not(.rc-sr) { row-gap: 3px; }
td.rgrid .rc b { font-size: 18px; } td.rgrid .rc small { font-size: 12px; } td.rgrid .rc i { font-size: 16px; }
.rp-dur { font-weight: 700; color: var(--ink); white-space: nowrap; } .rp-dur.go { color: var(--ops-text); }

/* ---- 18 Nov 2026: summary tables stay compact — a route on one line (cities on hover), an airport with its city beside it.
   The two-line route (code over city) is kept for flight-by-flight tables (td.rgrid). ---- */
td.rcell:not(.rgrid) { padding-top: 6px; padding-bottom: 6px; }
td.rcell:not(.rgrid) .rc { grid-template-columns: 34px 16px auto; column-gap: 4px; cursor: help; }
td.rcell:not(.rgrid) .rc b { font-size: 13.5px; font-weight: 700; }
td.rcell:not(.rgrid) .rc small { display: none; }
td.rcell:not(.rgrid) .rc i { font-size: 12px; }
.ac1 { white-space: nowrap; cursor: help; } .ac1 b, .ac1 small { display: inline; } .ac1 b { font-size: 13.5px; font-weight: 700; } .ac1 small { margin-left: 6px; font-size: 12px; }

/* ---- 18 Nov 2026: one table of the day's flights — plan and actual, flight time, status, replay ---- */
.replay .rp-head { justify-content: flex-start; column-gap: 14px; } .replay .rp-upd { margin-left: auto; }
.replay .rp-n { font-size: 14px; color: var(--muted); padding-left: 14px; border-left: 1px solid var(--line); }
.replay-list th { font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; }
.replay-list td, .replay-list th { padding-left: 5px; padding-right: 5px; }
.replay-list th.rp-th2 { white-space: normal !important; width: 4.5em; }
.replay-list .rp-fl small { display: block; font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
/* seven columns: the route grid is a little narrower than the flight list's, with the same line-up */
.replay-list td.rgrid .rc { grid-template-columns: 64px 16px 74px; column-gap: 7px; } td.rgrid .rc small { overflow-wrap: normal; }
.pa { display: block; white-space: nowrap; font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; line-height: 1.7; }
.pa i { font-style: normal; display: inline-block; min-width: 3.1em; } .pa b { font-size: 14px; color: var(--ink); } .pa small { font-size: 11.5px; }
.pa.act b { color: var(--good); font-size: 15px; }
.rp-st { white-space: nowrap; } .rp-st small { display: block; margin-top: 4px; font-size: 12.5px; font-weight: 700; }
.rp-st .rp-late { color: var(--bad); } .rp-st .rp-ok { color: var(--good); } .rp-st .rp-sub { font-weight: 400; color: var(--muted); }
.replay button.get { padding: 7px 12px; }
.lv-sec > *, #replay-box, #replay-box > .card { min-width: 0; }   /* a wide table scrolls inside its card, never the page */
@media (max-width: 760px) {
  .replay-list td.rgrid { grid-column: 1 / -1; }
  .replay-list .pa { white-space: normal; } .replay-list .pa small { display: block; padding-left: 3.1em; line-height: 1.2; }
  .replay .rp-go button.get { box-sizing: border-box; max-width: 100%; }
  .replay .rp-n { border-left: 0; padding-left: 0; }
}
.pa sup.pa-d { margin-left: 2px; font-size: 10px; font-weight: 700; color: var(--warn); cursor: help; }

/* ---- 19 Nov 2026: the quick card of the chosen aircraft. Beside its card in Fleet status; a sheet from the bottom when the page is one column ---- */
.lv-grid { position: relative; }
.lq-scrim { display: none; }
.lq { position: absolute; z-index: 6; width: min(420px, calc(100% - 24px)); display: grid; gap: 10px; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 12px 32px rgba(14,42,71,.22); }
.lq-h { display: flex; align-items: baseline; gap: 10px; } .lq-h b { font-size: 19px; font-weight: 800; color: var(--ink); } .lq-h small { font-size: 14px; color: var(--muted); }
#live-quick-x { margin-left: auto; align-self: center; flex: none; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); font-size: 22px; line-height: 1; cursor: pointer; }
#live-quick-x:hover { background: var(--bg); } #live-quick-x:focus-visible, #lq-full:focus-visible { outline: 2px solid var(--ops); outline-offset: 2px; }
.lq-now { display: grid; gap: 8px; padding: 12px 14px; border-radius: 12px; background: var(--bg); font-size: 13.5px; color: var(--ink); } .lq-now.air { background: var(--ops-tint); } .lq-now p { margin: 0; }
.lq .lt .utc { display: none; }   /* local times only; the full schedule has both clocks */
.lq-rt { display: flex; align-items: center; gap: 10px; font: 800 20px/1 var(--sans); }
.lq-bar { flex: 1; position: relative; height: 4px; border-radius: 2px; background: color-mix(in srgb, var(--ops) 25%, transparent); } .lq-bar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 2px; background: var(--ops); }
.lq .det-sub { margin: 4px 0 0; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.lq-row { display: grid; grid-template-columns: 58px 1fr auto auto; column-gap: 12px; align-items: baseline; padding: 7px 8px; border-top: 1px solid var(--line); font-variant-numeric: tabular-nums; color: var(--ink); }
.lq-row:first-child { border-top: 0; } .lq-row.cur { background: var(--ops-tint); border-radius: 8px; border-top-color: transparent; } .lq-row.cur + .lq-row { border-top-color: transparent; }
.lq-fl { font-weight: 700; font-size: 13.5px; } .lq-r { font-weight: 800; font-size: 15px; } .lq-r i { font-style: normal; color: var(--ops); margin: 0 4px; font-size: 12px; }
.lq-tm { font-weight: 700; font-size: 14px; } .lq-tm + .lq-tm { color: var(--muted); font-weight: 600; }
.lq-st { grid-column: 2 / -1; font-size: 12.5px; color: var(--muted); } .lq-st.air { color: var(--ops-text); font-weight: 700; } .lq-st.late, .lq-st.cancel { color: var(--bad); } .lq-st.done { color: var(--good); }
.lq .flow { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.lq .flow li { flex: 1 1 110px; display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; min-width: 0; font-size: 12.5px; }
.lq .flow small { font-size: 11px; color: var(--muted); } .lq .flow b { font-size: 14px; color: var(--ink); } .lq .flow em { font-style: normal; font-size: 11px; font-weight: 600; color: var(--warn); }
.lq-f { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
#lq-full { border: 0; background: none; padding: 0; font: 700 13px var(--sans); color: var(--ops-text); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
@media (max-width: 1100px) {
  .lq-scrim { display: block; position: fixed; inset: 0; z-index: 64; background: rgba(14,42,71,.4); }
  .lq { position: fixed; left: 0; right: 0; bottom: 0; z-index: 65; width: auto; max-height: 82vh; overflow: auto; border-radius: 18px 18px 0 0; padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
}
/* the leg being flown: its outline breathes and a small aircraft travels the line between the two airports; still for reduced motion */
.lq-row.cur { position: relative; }
.lq-row.cur::after, .replay-list tr.up td:first-child::after { content: ""; position: absolute; inset: 0; border-radius: 8px; pointer-events: none; box-shadow: inset 0 0 0 1.5px var(--ops), 0 0 0 3px color-mix(in srgb, var(--ops) 22%, transparent); opacity: .55; }
.lq-path { position: relative; display: inline-block; width: 46px; height: 12px; margin: 0 5px; vertical-align: -1px; overflow: hidden; }
.lq-path::before, .replay-list tr.up .rc i::before { content: ""; position: absolute; left: -10px; right: 0; top: 5px; height: 2px; background: repeating-linear-gradient(90deg, var(--ops) 0 5px, transparent 5px 10px); }
.lq-path b, .replay-list tr.up .rc i::after { position: absolute; top: -4px; left: 0; font-size: 12px; font-weight: 400; line-height: 20px; color: var(--ops); transform: translateX(17px); }
@media (prefers-reduced-motion: no-preference) {
  .lq-row.cur::after, .replay-list tr.up td:first-child::after { animation: lq-breathe 2.2s ease-in-out infinite; }
  .lq-path::before, .replay-list tr.up .rc i::before { animation: lq-march .7s linear infinite; }
  .lq-path b, .replay-list tr.up .rc i::after { animation: lq-fly 2.8s ease-in-out infinite; }
}
/* transform and opacity only: the browser moves these without laying the page out or repainting it */
@keyframes lq-breathe { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
@keyframes lq-march { to { transform: translateX(10px); } }
@keyframes lq-fly { 0% { transform: translateX(0); opacity: 0; } 15%, 85% { opacity: 1; } 100% { transform: translateX(var(--fly, 34px)); opacity: 0; } }
@media print { .lq, .lq-scrim { display: none !important; } }

/* ---- 19 Nov 2026: Flights & replay on one header line; the flights in the air first, outlined, with the aircraft travelling their route and a bar of how far they have flown ---- */
.replay .rp-head { align-items: center; gap: 8px 14px; }
.replay .rp-head h2 { margin: 0; font-size: 18px; font-weight: 800; letter-spacing: -.01em; color: var(--ink); }
.replay .rp-head .days { margin-left: auto; }
.replay-list td.rgrid .rc { grid-template-columns: 64px 34px 74px; }   /* room for the route line; the same in every row, so origins and destinations still line up */
.replay-list td.rgrid .rc i { text-align: center; }
.replay-list tr.up { position: relative; }
.replay-list tr.up td:first-child::after { border-radius: 10px; }
.replay-list tr.up .rc i { position: relative; height: 12px; overflow: hidden; color: transparent; --fly: 22px; }
.replay-list tr.up .rc i::after { content: "✈"; }
.rp-dur small { display: block; font-weight: 500; color: var(--muted); }
.rp-bar { display: block; position: relative; height: 4px; max-width: 130px; margin-top: 6px; border-radius: 2px; background: color-mix(in srgb, var(--ops) 22%, transparent); }
.rp-bar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 2px; background: var(--ops); }
@media print { .replay-list tr.up td:first-child::after { opacity: 1; animation: none; } }
