/* OVERHEAD on the web.
   Tokens first (primitives, then the semantic roles every rule uses), then components.
   Type is Outfit, set after Butterick: few sizes, two or three weights, caps only for short runs and
   always tracked, lowercase never tracked, real leading. Red has one job: home. */

/*LOCAL-FONTS*/
@font-face { font-family: "Outfit"; font-weight: 300; font-display: swap; src: url("/fonts/Outfit-Light.ttf") format("truetype"); }
@font-face { font-family: "Outfit"; font-weight: 400; font-display: swap; src: url("/fonts/Outfit-Regular.ttf") format("truetype"); }
@font-face { font-family: "Outfit"; font-weight: 500; font-display: swap; src: url("/fonts/Outfit-Medium.ttf") format("truetype"); }
@font-face { font-family: "Outfit"; font-weight: 600; font-display: swap; src: url("/fonts/Outfit-SemiBold.ttf") format("truetype"); }
/*/LOCAL-FONTS*/

:root {
  /* primitives: paper and ink by day, night and bone by night, and the panel's inks as they look on real glass.
     Nothing below the token blocks names a primitive or a literal color; rules use the semantic roles. */
  --p-paper-50: #F5F2EB;
  --p-paper-100: #ECE8DE;
  --p-paper-200: #E1DCCF;
  --p-ink-900: #1F1E22;
  --p-ink-700: #37353B;
  --p-ink-500: #57535D;
  --p-ink-400: #625D69;
  --p-sky-800: #1E2D66;
  --p-sky-600: #2E4A94;
  --p-sky-400: #7487C3;
  --p-sky-300: #A3AFD8;
  --p-sky-200: #C9D0E7;
  --p-red-500: #AC342C;
  --p-gold-400: #DEC434;
  --p-gold-200: #E9D776;
  --p-gold-100: #F2E7AC;
  --p-night-950: #0F0F11;
  --p-night-900: #151517;
  --p-night-800: #1E1E21;
  --p-bone-100: #ECE7DB;
  --p-bone-400: #ABA598;
  --p-bone-600: #99948A;
  --p-dusk-200: #A4B6E6;
  --p-dusk-500: #6577AE;
  --p-dusk-600: #4C5E95;
  --p-dusk-800: #34467C;
  --p-red-400: #E2685C;
  --p-brass-300: #E3D27C;
  --p-brass-400: #D5BF4F;
  --p-brass-500: #C9AF2E;
  --p-glass-paper: #E4E0D5;
  --p-glass-ink: #242226;
  --p-mount: #1B1A1D;
  --p-poster-sky: #2390C9;
  --p-poster-grain: #1B82B8;
  --p-poster-cloud: #F4EFE3;
  --p-poster-ink: #10202E;
  --p-ms-sheet-day: #E6E7E4; --p-ms-sheet-night: #16181B;
  --p-ms-contour-day: #C3C5C1; --p-ms-contour-night: #2C3035;
  --p-ms-grid-day: #9FA19D; --p-ms-grid-night: #555B63;
  --p-ms-card-day: #C4BAAB; --p-ms-card-night: #3B362F;

  /* semantic roles: these change with the theme */
  --bg: var(--p-paper-100);
  --surface: var(--p-paper-50);
  --sunk: var(--p-paper-200);
  --text: var(--p-ink-900);
  --text-2: var(--p-ink-500);
  /* the faintest text: 5:1 or better on the page and on a card in both themes, so the paper grain can't take it under 4.5 */
  --text-3: var(--p-ink-400);
  --rule: rgba(31, 30, 34, .13);
  --rule-2: rgba(31, 30, 34, .34);
  /* the edge of a control you have to find (an empty box, a field's line, a chip): 3:1 on every surface */
  --edge: rgba(31, 30, 34, .52);
  --ink: var(--p-ink-900);
  --on-ink: var(--p-paper-50);
  --on-ink-2: color-mix(in srgb, var(--on-ink) 70%, transparent);
  --accent: var(--p-sky-600);
  --band: var(--p-sky-400);
  --echo-1: var(--p-sky-200);
  --echo-2: var(--p-sky-300);
  /* an aircraft that has gone by, printed in the sky's own darker ink: 3:1 or better on the band */
  --gone-ink: var(--p-sky-800);
  /* the sky's own colors under a second name: resolved here, so a card whose band has turned gold can still name the blue it left */
  --sky-band: var(--band); --sky-echo-1: var(--echo-1); --sky-echo-2: var(--echo-2);
  --home: var(--p-red-500);
  /* the Illustrated interface: a poster sky, the same by day and by night, like a print on the wall */
  --poster-sky: var(--p-poster-sky); --poster-grain: var(--p-poster-grain); --poster-cloud: var(--p-poster-cloud); --poster-ink: var(--p-poster-ink);
  --poster-shade: color-mix(in srgb, var(--p-poster-ink) 34%, transparent);
  /* the Map sheet interface: a drawn sheet, light by day and dark by night; the contours are texture, red is home alone */
  --ms-sheet: var(--p-ms-sheet-day); --ms-contour: var(--p-ms-contour-day); --ms-grid: var(--p-ms-grid-day); --ms-card: var(--p-ms-card-day); --ms-ink: var(--p-ink-900); --ms-ink-2: var(--p-ink-500); --ms-card-ink: var(--p-ink-900); --ms-card-ink-2: var(--p-ink-700); --ms-home: var(--p-red-500);
  --focus: var(--p-sky-600);
  /* gold: the panel's yellow ink as it looks on glass, and it means one thing, rare */
  --gold-band: var(--p-gold-400);
  --gold-echo-1: var(--p-gold-100);
  --gold-echo-2: var(--p-gold-200);
  --gold-on: var(--p-ink-900);
  --gold-star: var(--p-gold-400);
  --gold-edge: rgba(31, 30, 34, .62);

  --key: inset 0 1px 0 rgba(255, 255, 255, .75), 0 1px 0 rgba(31, 30, 34, .16), 0 3px 10px -4px rgba(31, 30, 34, .14);
  --key-down: inset 0 2px 3px rgba(31, 30, 34, .16);
  --well: inset 0 1px 3px rgba(31, 30, 34, .16), 0 1px 0 rgba(255, 255, 255, .7);
  --lift: 0 18px 40px -18px rgba(31, 30, 34, .45);

  /* the same in both themes: the glass is always paper, the frame always black, an inked key always casts down */
  --glass-paper: var(--p-glass-paper);
  --glass-ink: var(--p-glass-ink);
  --glass-sky: var(--p-sky-600);
  --glass-text-2: var(--p-ink-500);
  --glass-key: var(--p-paper-50);
  --glass-key-text: var(--p-ink-900);
  --glass-inset: inset 0 0 0 1px rgba(0, 0, 0, .3), inset 0 2px 8px rgba(0, 0, 0, .16);
  --glass-sheen: rgba(255, 255, 255, .13);
  --mount: var(--p-mount);
  --mount-shadow: inset 0 1px 0 rgba(255, 255, 255, .09), inset 0 -1px 0 rgba(0, 0, 0, .6), 0 34px 60px -30px rgba(31, 30, 34, .6), 0 10px 20px -12px rgba(31, 30, 34, .45);
  --band-grain: rgba(255, 255, 255, .16);
  --key-ink: inset 0 1px 0 rgba(255, 255, 255, .1), 0 2px 0 rgba(0, 0, 0, .32), 0 8px 18px -8px rgba(31, 30, 34, .55);
  --key-ink-down: inset 0 2px 4px rgba(0, 0, 0, .35);
  --key-ink-on: 0 2px 0 rgba(0, 0, 0, .28), 0 8px 18px -10px rgba(0, 0, 0, .5);
  --shadow-sheet: 0 30px 80px -20px rgba(0, 0, 0, .5);
  --shadow-toast: 0 14px 30px -14px rgba(0, 0, 0, .55);
  --scrim: rgba(18, 18, 20, .5);

  /* one focus ring for every control: outside the control, or inside it when it sits in a track */
  --ring-w: 2px; --ring-offset: 3px; --ring-inset: -2px;
  /* icons: Lucide UI icons at one stroke, the larger line drawings at another, nothing else */
  --stroke-ui: 1.75; --stroke-draw: 1.5;

  /* scale */
  --r-sm: 6px; --r-md: 12px; --r-lg: 20px; --r-pill: 999px;
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px;
  /* type: eight sizes and no others. Every tracked caps label is --t-cap; names set in capitals (the headline,
     a station, a code) take the size of their role. In rem, so a reader's own text size still counts. */
  --t-cap: .6875rem;                          /* 11: caps labels, one size */
  --t-sm: .9375rem;                           /* 15: help, captions, small controls */
  --t-body: 1.0625rem;                        /* 17 */
  --t-lead: 1.1875rem;                        /* 19: a lede, a sentence in the sky, a reading */
  --t-h: 2rem;                                /* 32: a question, a view's title */
  --t-display: 2.5rem;                        /* 40 */
  --t-head: clamp(1.75rem, 8.4vw, 2.375rem);  /* 28 to 38: the Now headline and the quiet clock */
  --t-big: 3.5rem;                            /* 56: the welcome and done pages on a wide screen */

  /* motion */
  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-in-out: cubic-bezier(.77, 0, .175, 1);
  --ease-drawer: cubic-bezier(.32, .72, 0, 1);
  --ease-spring: cubic-bezier(.34, 1.3, .64, 1);
  --d1: 120ms; --d2: 200ms; --d3: 360ms;     /* press, small, an arrival */

  /* aircraft scale: CSS px per 1:1500 glass px, set by app.js from the screen width */
  --k: 1;
  --kl: .55;
  color-scheme: light;
}

/* night: the same roles, redefined twice (system dark unless the page says light, and dark by choice); keep the two blocks identical */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: var(--p-night-900); --surface: var(--p-night-800); --sunk: var(--p-night-950);
  /* at night the sheet is the page's own color: a deeper scrim and a hairline give it an edge */
  --scrim: rgba(0, 0, 0, .62); --shadow-sheet: 0 0 0 1px var(--rule-2), 0 30px 80px -20px rgba(0, 0, 0, .8);
    --text: var(--p-bone-100); --text-2: var(--p-bone-400); --text-3: var(--p-bone-600);
    --rule: rgba(236, 231, 219, .11); --rule-2: rgba(236, 231, 219, .3); --edge: rgba(236, 231, 219, .42);
    --ink: var(--p-bone-100); --on-ink: var(--p-night-900);
    --accent: var(--p-dusk-200); --band: var(--p-dusk-800); --echo-1: var(--p-dusk-500); --echo-2: var(--p-dusk-600); --gone-ink: var(--p-dusk-200);
    --home: var(--p-red-400); --focus: var(--p-dusk-200);
    --ms-sheet: var(--p-ms-sheet-night); --ms-contour: var(--p-ms-contour-night); --ms-grid: var(--p-ms-grid-night); --ms-card: var(--p-ms-card-night); --ms-ink: var(--p-bone-100); --ms-ink-2: var(--p-bone-400); --ms-card-ink: var(--p-bone-100); --ms-card-ink-2: var(--p-bone-400); --ms-home: var(--p-red-400);
    --gold-band: var(--p-brass-500); --gold-echo-1: var(--p-brass-300); --gold-echo-2: var(--p-brass-400); --gold-on: var(--p-ink-900); --gold-star: var(--p-gold-400); --gold-edge: transparent;
    --key: inset 0 1px 0 rgba(255, 255, 255, .06), 0 1px 0 rgba(0, 0, 0, .55), 0 3px 10px -4px rgba(0, 0, 0, .6);
    --key-down: inset 0 2px 3px rgba(0, 0, 0, .5);
    --well: inset 0 1px 3px rgba(0, 0, 0, .6), 0 1px 0 rgba(255, 255, 255, .05);
    --lift: 0 18px 40px -18px rgba(0, 0, 0, .8);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: var(--p-night-900); --surface: var(--p-night-800); --sunk: var(--p-night-950);
  /* at night the sheet is the page's own color: a deeper scrim and a hairline give it an edge */
  --scrim: rgba(0, 0, 0, .62); --shadow-sheet: 0 0 0 1px var(--rule-2), 0 30px 80px -20px rgba(0, 0, 0, .8);
  --text: var(--p-bone-100); --text-2: var(--p-bone-400); --text-3: var(--p-bone-600);
  --rule: rgba(236, 231, 219, .11); --rule-2: rgba(236, 231, 219, .3); --edge: rgba(236, 231, 219, .42);
  --ink: var(--p-bone-100); --on-ink: var(--p-night-900);
  --accent: var(--p-dusk-200); --band: var(--p-dusk-800); --echo-1: var(--p-dusk-500); --echo-2: var(--p-dusk-600); --gone-ink: var(--p-dusk-200);
  --home: var(--p-red-400); --focus: var(--p-dusk-200);
  --ms-sheet: var(--p-ms-sheet-night); --ms-contour: var(--p-ms-contour-night); --ms-grid: var(--p-ms-grid-night); --ms-card: var(--p-ms-card-night); --ms-ink: var(--p-bone-100); --ms-ink-2: var(--p-bone-400); --ms-card-ink: var(--p-bone-100); --ms-card-ink-2: var(--p-bone-400); --ms-home: var(--p-red-400);
  --gold-band: var(--p-brass-500); --gold-echo-1: var(--p-brass-300); --gold-echo-2: var(--p-brass-400); --gold-on: var(--p-ink-900); --gold-star: var(--p-gold-400); --gold-edge: transparent;
  --key: inset 0 1px 0 rgba(255, 255, 255, .06), 0 1px 0 rgba(0, 0, 0, .55), 0 3px 10px -4px rgba(0, 0, 0, .6);
  --key-down: inset 0 2px 3px rgba(0, 0, 0, .5);
  --well: inset 0 1px 3px rgba(0, 0, 0, .6), 0 1px 0 rgba(255, 255, 255, .05);
  --lift: 0 18px 40px -18px rgba(0, 0, 0, .8);
  color-scheme: dark;
}

/* --- base ------------------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
/* a phone app, not a page: no tap flash, no pull-to-refresh or rubber band under the dock */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--bg); -webkit-tap-highlight-color: transparent; overscroll-behavior: none; }
html:has(.sheet[open]) { overflow: hidden; }
body {
  margin: 0; min-height: 100vh; min-height: 100dvh; background: var(--bg); color: var(--text);
  font-family: "Outfit", ui-sans-serif, system-ui, sans-serif; font-size: var(--t-body); line-height: 1.42;
  font-weight: 400; font-kerning: normal; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
/* paper: a little grain, so the screen reads as a sheet rather than a pane */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .18; mix-blend-mode: multiply;
  background-size: 270px 270px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
/* Added to an iPhone's home screen the page runs under the status bar (black-translucent in index.html, so a frame
   that fills the screen really does), and iOS sets the clock there in white: this band keeps it readable over paper.
   It is nothing tall anywhere else, and the full-screen frame covers it. */
body::after { content: ""; position: fixed; top: 0; left: 0; right: 0; z-index: 25; height: env(safe-area-inset-top, 0px); background: var(--p-ink-900); pointer-events: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) body::before { mix-blend-mode: overlay; opacity: .22; } }
:root[data-theme="dark"] body::before { mix-blend-mode: overlay; opacity: .22; }


button, input, select, textarea { font: inherit; color: inherit; }
/* controls answer the tap at once and never select their own label on a long press; content stays selectable */
button, a, label, summary, [role="button"] { touch-action: manipulation; }
button, label, summary, .dock-opt, .chip { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
img, svg { max-width: 100%; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: var(--ring-w) solid var(--focus); outline-offset: var(--ring-offset); }
[tabindex="-1"]:focus { outline: none; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.i { display: block; flex: none; stroke-width: var(--stroke-ui); }

/* --- type ------------------------------------------------------------------------------------- */
.eyebrow { font-size: var(--t-cap); font-weight: 600; letter-spacing: .11em; text-transform: uppercase; color: var(--text-2); margin-bottom: var(--s-3); font-variant-numeric: tabular-nums; }
.h1, .ob-main h1 { font-size: var(--t-h); line-height: 1.14; font-weight: 500; letter-spacing: -.012em; margin-bottom: var(--s-3); text-wrap: balance; overflow-wrap: break-word; }
.display { font-size: var(--t-display) !important; line-height: 1.06 !important; }
.lede { font-size: var(--t-lead); line-height: 1.38; color: var(--text-2); max-width: 34ch; text-wrap: pretty; margin-bottom: var(--s-5); }
.help { font-size: var(--t-sm); line-height: 1.4; color: var(--text-2); max-width: 38ch; margin-top: var(--s-3); }
.fine { font-size: var(--t-sm); line-height: 1.4; color: var(--text-3); text-wrap: pretty; }
.caps { font-size: var(--t-cap); font-weight: 600; letter-spacing: .11em; text-transform: uppercase; }

/* --- buttons ---------------------------------------------------------------------------------- */
.btn {
  appearance: none; border: 0; cursor: pointer; text-decoration: none; touch-action: manipulation; -webkit-tap-highlight-color: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 22px; border-radius: var(--r-md); font-size: var(--t-body); font-weight: 500;
  transition: transform var(--d1) var(--ease), box-shadow var(--d1) var(--ease), background-color var(--d2) var(--ease), opacity var(--d2) var(--ease), color var(--d2) var(--ease);
}
.btn-primary {
  width: 100%; background: var(--ink); color: var(--on-ink);
  box-shadow: var(--key-ink);
}
.btn-primary:active:not(:disabled) { transform: translateY(2px); box-shadow: var(--key-ink-down); }
.btn-ghost { background: var(--surface); color: var(--text); box-shadow: var(--key); }
.btn-ghost:active:not(:disabled) { transform: translateY(1px); box-shadow: var(--key-down); }
.btn-quiet { background: transparent; color: var(--text-2); min-height: 44px; padding: 0 12px; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; text-decoration-color: var(--rule-2); }
.btn-quiet:active:not(:disabled) { color: var(--text); opacity: .7; }
.btn-sm { min-height: 44px; padding: 0 16px; font-size: var(--t-sm); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn[aria-busy="true"]:disabled { opacity: 1; cursor: progress; }
/* a disabled button says why, in a line under it; the line keeps its place once met, so the button never jumps */
.why.is-met { visibility: hidden; }
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover:not(:disabled) { opacity: .9; }
  .btn-ghost:hover:not(:disabled) { background: color-mix(in srgb, var(--surface), var(--text) 4%); }
  .btn-quiet:hover { color: var(--text); text-decoration-color: currentColor; }
}
.icon-btn {
  appearance: none; border: 0; background: transparent; color: var(--text); cursor: pointer; -webkit-tap-highlight-color: transparent;
  width: 44px; height: 44px; border-radius: var(--r-pill); display: inline-grid; place-items: center; flex: none;
  transition: background-color var(--d2) var(--ease), transform var(--d1) var(--ease), opacity var(--d2);
}
.icon-btn:active:not(:disabled) { transform: scale(.96); }
.icon-btn:disabled { opacity: .36; cursor: not-allowed; }
@media (hover: hover) and (pointer: fine) { .icon-btn:hover:not(:disabled) { background: var(--sunk); } }
.icon-btn--ink { background: var(--ink); color: var(--on-ink); }
@media (hover: hover) and (pointer: fine) { .icon-btn--ink:hover:not(:disabled) { background: var(--ink); opacity: .88; } }

/* --- onboarding ------------------------------------------------------------------------------- */
.ob {
  /* the step's slide-in travels sideways; it must never widen the page */
  overflow-x: clip;
  min-height: 100dvh; max-width: 1080px; margin: 0 auto; display: grid; grid-template-rows: auto 1fr auto; grid-template-columns: minmax(0, 1fr);
  padding: max(var(--s-2), env(safe-area-inset-top)) max(var(--s-5), env(safe-area-inset-right)) 0 max(var(--s-5), env(safe-area-inset-left));
}
.ob-top { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; gap: var(--s-3); min-height: 56px; }
.ob[data-step="welcome"] .ob-top > * { visibility: hidden; }
.ob-grid { display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; padding-top: var(--s-5); }
.ob-main { max-width: 520px; }
.ob-main:focus { outline: none; }
.ob-aside { display: none; }
/* one slot for the step's button, pinned at the foot of the screen on every step: a long step scrolls under it.
   Its line (why it waits, what it keeps) sits above it, so the button itself never moves */
.ob-foot { position: sticky; bottom: 0; z-index: 2; display: grid; gap: var(--s-2); justify-items: center; padding: var(--s-6) 0 max(24px, env(safe-area-inset-bottom)); width: 100%; max-width: 520px; background: linear-gradient(to bottom, transparent, var(--bg) var(--s-5)); }
.ob-foot .btn-primary { order: 1; }
.ob-foot .btn-primary .i-arrow { margin-right: -4px; }
.only-narrow { margin-top: var(--s-4); }

.turn-fwd { animation: turn-fwd 240ms var(--ease-out) both; }
.turn-back { animation: turn-back 240ms var(--ease-out) both; }
@keyframes turn-fwd { from { opacity: 0; transform: translateX(16px); } }
@keyframes turn-back { from { opacity: 0; transform: translateX(-16px); } }

/* progress: the onboarding is a short flight that lands on your house */
/* drawn 300 units wide and never shown wider, so on a desktop its strokes and its plane stay the size they are on a phone */
.dp { display: block; width: 100%; max-width: 300px; height: auto; margin: 0 auto; overflow: visible; }
.dp-ahead { stroke: var(--text-3); stroke-width: 1.5; stroke-dasharray: .5 5; stroke-linecap: round; }
/* the plane flies on screen, so it eases in and out; the line it draws keeps pace with it */
.dp-done { stroke: var(--text); stroke-width: 1.5; transition: stroke-dashoffset 480ms var(--ease-in-out); }
.dp-tick { stroke: var(--text-3); stroke-width: 1.25; }
.dp-home { fill: var(--home); }
.dp-plane { transition: transform 480ms var(--ease-in-out), opacity 200ms var(--ease-out); }
.dp.is-landed .dp-plane { opacity: 0; transition: transform 480ms var(--ease-in-out), opacity 200ms var(--ease-out) 400ms; }
.dp-home { transform-box: fill-box; transform-origin: center; transition: transform 280ms var(--ease-spring) 420ms; }
.dp.is-landed .dp-home { transform: scale(1.35); }
.dp-plane path { fill: var(--text); stroke: var(--bg); stroke-width: 2.5; paint-order: stroke; }

.hero { position: relative; margin: var(--s-6) calc(var(--s-5) * -1) 0; }
.hero img { display: block; width: 100%; height: auto; -webkit-touch-callout: none; -webkit-user-drag: none; }
/* two pictures, day and night, switched by the same rules that switch the tokens, so the hero follows the theme however it was chosen */
.hero .hero-night { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .hero .hero-day { display: none; } :root:not([data-theme="light"]) .hero .hero-night { display: block; } }
:root[data-theme="dark"] .hero .hero-day { display: none; }
:root[data-theme="dark"] .hero .hero-night { display: block; }
/* each picture is flat color; its screen is laid over it here, the Now band's own grain, in whole screen pixels, so it never beats
   against the display whatever size the picture is shown at */
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; background-image: radial-gradient(circle, var(--band-grain) .8px, transparent 1.15px); background-size: 4px 4px; }

/* fields: a line to write on */
.line-input {
  width: 100%; min-height: 52px; padding: 8px 0; border: 0; border-bottom: 1.5px solid var(--edge); border-radius: 0;
  background: transparent; color: var(--text); font-size: var(--t-lead); font-weight: 400; outline: none;
  transition: border-color var(--d2) var(--ease), box-shadow var(--d2) var(--ease);
}
.line-input::placeholder { color: var(--text-3); opacity: 1; }
.line-input:focus { border-bottom-color: var(--text); box-shadow: 0 1.5px 0 0 var(--text); }
.line-input:focus-visible { border-bottom-color: var(--focus); box-shadow: 0 1.5px 0 0 var(--focus); }
.addr { display: grid; grid-template-columns: 1fr 44px; gap: var(--s-3); align-items: center; }
.or { display: flex; align-items: center; gap: var(--s-3); margin: var(--s-5) 0 var(--s-4); color: var(--text-3); font-size: var(--t-cap); font-weight: 600; letter-spacing: .11em; text-transform: uppercase; }
.or::before, .or::after { content: ""; height: 1px; flex: 1; background: var(--rule); }

.geo { min-height: 8px; }
.geo-busy { display: flex; align-items: center; gap: var(--s-3); margin-top: var(--s-5); color: var(--text-2); }
.geo-msg { display: flex; gap: var(--s-3); align-items: flex-start; margin-top: var(--s-5); padding: var(--s-3) var(--s-4); background: var(--sunk); border-radius: var(--r-md); color: var(--text); font-size: var(--t-sm); line-height: 1.4; }
.geo-msg .i { margin-top: 2px; color: var(--text-2); }
.place-card { display: grid; grid-template-columns: 64px 1fr; gap: var(--s-4); align-items: center; margin-top: var(--s-5); padding: var(--s-4); background: var(--surface); border-radius: var(--r-md); box-shadow: var(--key); animation: stamp 260ms var(--ease-out) both; }
.place-card svg { width: 64px; height: 64px; }
.place-card > div { min-width: 0; overflow-wrap: break-word; }
.place-name { font-size: var(--t-lead); font-weight: 600; letter-spacing: .07em; text-transform: uppercase; line-height: 1.15; }
.place-sub { color: var(--text-2); margin-top: 2px; font-size: var(--t-sm); }
.place-coords { margin-top: 6px; font-size: var(--t-sm); color: var(--text-3); font-variant-numeric: tabular-nums; }
.mini-sky circle.r { fill: none; stroke: var(--rule-2); stroke-dasharray: 1 3; }
.mini-sky circle.c { fill: var(--band); }
.mini-sky circle.h { fill: var(--home); }
@keyframes stamp { from { opacity: 0; transform: translateY(6px) scale(.985); } }

.dots { display: inline-block; width: 30px; height: 3px; flex: none; background: radial-gradient(circle, currentColor 1.1px, transparent 1.5px) 0 50% / 7.5px 3px repeat-x; animation: dots 900ms linear infinite; }
@keyframes dots { to { background-position: 7.5px 50%; } }

/* choices: tactile cards; chosen ones print in reverse, like ink on the glass */
.opts { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: var(--s-3); }
.opt {
  position: relative; display: grid; grid-template-columns: auto 1fr 22px; align-items: center; gap: var(--s-4);
  min-height: 68px; padding: var(--s-4); border-radius: var(--r-md); background: var(--surface); box-shadow: var(--key);
  cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: background-color var(--d2) var(--ease), color var(--d2) var(--ease), transform var(--d1) var(--ease), box-shadow var(--d1) var(--ease);
}
.opt:not(.opt--art) { grid-template-columns: 1fr 22px; }
.opt input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.opt:active { transform: translateY(1px); box-shadow: var(--key-down); }
.opt:has(input:checked) { background: var(--ink); color: var(--on-ink); box-shadow: var(--key-ink-on); }
.opt:has(input:focus-visible) { outline: var(--ring-w) solid var(--focus); outline-offset: var(--ring-offset); }
.opt-art { width: 48px; height: 48px; display: block; }
.opt-art svg { width: 48px; height: 48px; display: block; fill: none; stroke: currentColor; stroke-width: var(--stroke-draw); stroke-linecap: round; stroke-linejoin: round; }
.opt-art .hd { fill: var(--home); stroke: none; }
.opt-title { display: block; font-weight: 500; font-size: var(--t-body); line-height: 1.25; }
.opt-sub { display: block; margin-top: 2px; font-size: var(--t-sm); line-height: 1.35; color: var(--text-2); transition: color var(--d2); }
.opt:has(input:checked) .opt-sub { color: var(--on-ink-2); }
.opt-check { opacity: 0; transform: scale(.8); transition: opacity 160ms var(--ease-out), transform 240ms var(--ease-spring); }
.opt:has(input:checked) .opt-check { opacity: 1; transform: none; }
@media (hover: hover) and (pointer: fine) { .opt:hover:not(:has(input:checked)) { background: color-mix(in srgb, var(--surface), var(--text) 5%); } }

.star { display: block; flex: none; width: 1em; height: 1em; fill: currentColor; }
.star--gold { fill: var(--gold-star); stroke: var(--gold-edge); stroke-width: .9; stroke-linejoin: round; paint-order: stroke; }

/* what gets you excited: a grid of keys, any number down at once; rare runs the full width */
/* every chip at once: a small key and a running count, on one line above the chips */
.pick-all { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); margin-bottom: var(--s-3); }
.pick-count { font-size: var(--t-sm); color: var(--text-2); font-variant-numeric: tabular-nums; }
.wants { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-3); }
.want {
  position: relative; display: grid; grid-template-rows: 40px auto; align-content: start; gap: var(--s-2);
  min-height: 96px; padding: var(--s-3) var(--s-3) 14px; border-radius: var(--r-md); background: var(--surface); box-shadow: var(--key);
  cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: background-color var(--d2) var(--ease), color var(--d2) var(--ease), transform var(--d1) var(--ease), box-shadow var(--d1) var(--ease);
}
.want--wide { grid-column: 1 / -1; grid-template-rows: none; grid-template-columns: 48px minmax(0, 1fr) 22px; align-items: center; gap: var(--s-4); min-height: 76px; padding: var(--s-3) var(--s-4); }
.want input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.want:active { transform: translateY(1px); box-shadow: var(--key-down); }
.want:has(input:checked) { background: var(--ink); color: var(--on-ink); box-shadow: var(--key-ink-on); }
.want:has(input:focus-visible) { outline: var(--ring-w) solid var(--focus); outline-offset: var(--ring-offset); }
.want-art { display: block; width: 40px; height: 40px; }
.want--wide .want-art { width: 48px; height: 48px; }
.want-art svg { display: block; width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: var(--stroke-draw); stroke-linecap: round; stroke-linejoin: round; }
.want-art .gd { fill: var(--gold-star); }
.want-text { min-width: 0; }
.want-title { display: block; font-weight: 500; font-size: var(--t-body); line-height: 1.2; overflow-wrap: break-word; }
.want-sub { display: block; margin-top: 2px; font-size: var(--t-sm); line-height: 1.35; color: var(--text-2); transition: color var(--d2); }
.want:has(input:checked) .want-sub { color: var(--on-ink-2); }
/* an empty box says "pick several"; it fills with the check, like the single choices do */
.want-box { position: absolute; top: 10px; right: 10px; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 6px; border: 1.5px solid var(--edge); transition: border-color var(--d2), background-color var(--d2); }
.want--wide .want-box { position: static; }
.want-box .i { opacity: 0; transform: scale(.7); transition: opacity 160ms var(--ease-out), transform 240ms var(--ease-spring); }
.want:has(input:checked) .want-box { border-color: transparent; }
.want:has(input:checked) .want-box .i { opacity: 1; transform: none; }
@media (hover: hover) and (pointer: fine) { .want:hover:not(:has(input:checked)) { background: color-mix(in srgb, var(--surface), var(--text) 5%); } }

.sky-pick { display: grid; gap: var(--s-5); }
.rings { width: 200px; max-width: 100%; margin: 0 auto; }
/* drawn one unit to one CSS px, so the ring labels are the caps size, never smaller */
.rings svg { display: block; width: 100%; height: auto; overflow: visible; }
.ring { fill: transparent; stroke: var(--rule-2); stroke-width: 1; stroke-dasharray: 1.5 4; stroke-linecap: round; transition: fill var(--d2) var(--ease), stroke var(--d2) var(--ease); }
.ring.on { fill: var(--band); stroke: var(--text); stroke-dasharray: none; }
.ring-label { font-size: var(--t-cap); font-weight: 600; letter-spacing: .1em; fill: var(--text-3); transition: fill var(--d2); }
.ring-label.on { fill: var(--text); }
.ring-home { fill: var(--home); }
@media (min-width: 640px) { .sky-pick { grid-template-columns: 200px 1fr; align-items: center; } }

.more { margin-top: var(--s-5); border-top: 1px solid var(--rule); }
.more summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); min-height: 52px; cursor: pointer; font-weight: 500; border-radius: var(--r-sm); }
.more summary::-webkit-details-marker { display: none; }
.more summary .val { margin-left: auto; color: var(--text-2); font-weight: 400; }
.more summary .i { transition: transform var(--d2) var(--ease); color: var(--text-2); }
.more[open] summary .i { transform: rotate(180deg); }
.more summary:active { opacity: .7; }
@media (hover: hover) and (pointer: fine) { .more summary:hover .i, .more summary:hover .val { color: var(--text); } }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; border-radius: var(--r-md); background: var(--sunk); box-shadow: var(--well); border: 0; margin: 0 0 var(--s-3); min-width: 0; }
.seg label { position: relative; display: grid; place-items: center; min-height: 44px; padding: 4px 6px; border-radius: calc(var(--r-md) - 4px); font-size: var(--t-sm); text-align: center; line-height: 1.15; cursor: pointer; color: var(--text-2); transition: background-color var(--d2) var(--ease), color var(--d2), transform var(--d1) var(--ease-out); }
.seg input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.seg label:has(input:checked) { background: var(--surface); box-shadow: var(--key); color: var(--text); font-weight: 500; }
.seg label:active { transform: scale(.98); }
/* in a track the ring sits just inside the key, like the dock's */
.seg label:has(input:focus-visible) { outline: var(--ring-w) solid var(--focus); outline-offset: var(--ring-inset); }
@media (hover: hover) and (pointer: fine) { .seg label:hover:not(:has(input:checked)) { color: var(--text); } }

/* the look: which interface, which home screen icon. Small keys in a row, the chosen one inked like every other choice */
.faces { border: 0; margin: 0 0 var(--s-5); padding: 0; min-width: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-2); }
.faces--icons { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.faces legend { padding: 0; }
.face { position: relative; display: grid; justify-items: center; align-content: start; gap: var(--s-2); min-height: 96px; padding: var(--s-3) var(--s-2); border-radius: var(--r-md); background: var(--surface); box-shadow: var(--key); cursor: pointer; text-align: center; transition: background-color var(--d2) var(--ease), color var(--d2) var(--ease), transform var(--d1) var(--ease-out), box-shadow var(--d1) var(--ease); }
.face input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.face:active { transform: scale(.97); box-shadow: var(--key-down); }
.face:has(input:checked) { background: var(--ink); color: var(--on-ink); box-shadow: var(--key-ink-on); }
.face:has(input:focus-visible) { outline: var(--ring-w) solid var(--focus); outline-offset: var(--ring-offset); }
.face-art { width: 48px; height: 48px; display: block; fill: none; stroke: currentColor; stroke-width: var(--stroke-draw); stroke-linecap: round; stroke-linejoin: round; }
.face-art .fill { fill: var(--band); stroke: none; }
.face-art .hd { fill: var(--home); stroke: none; }
.face-art .hd-line { stroke: var(--home); }
/* an icon keeps its own corner inside the key: 12 px key, 8 px of padding, so about a quarter of its side */
.face-icon { width: 56px; height: 56px; display: block; border-radius: 13px; box-shadow: 0 0 0 1px var(--rule); }
.face-name { font-size: var(--t-sm); line-height: 1.2; font-weight: 500; }
.face.is-soon { cursor: default; box-shadow: none; background: transparent; outline: 1px dashed var(--rule-2); outline-offset: -1px; color: var(--text-3); }
.face.is-soon input { cursor: default; }
.face.is-soon:active { transform: none; }
.soon { font-size: var(--t-cap); font-weight: 600; letter-spacing: .11em; text-transform: uppercase; color: var(--text-3); }
@media (hover: hover) and (pointer: fine) { .face:not(.is-soon):not(:has(input:checked)):hover { background: var(--sunk); } }

/* an operator's mark: a one-ink stamp in the corner of the card, above the date, the way a notebook page gets stamped */
.mark { display: block; height: 18px; width: calc(18px * var(--mw, 1)); margin: 0 0 var(--s-2) auto; background: currentColor; -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; }
.mark--row { display: inline-block; height: .78em; width: calc(.78em * var(--mw, 1)); margin: 0 .5em 0 0; vertical-align: -.04em; }

/* what the card may leave out: one row each, a switch at the end, 44 px tall so the whole row is the target */
.shows { border: 0; margin: 0 0 var(--s-5); padding: 0; min-width: 0; }
.shows legend { padding: 0; }
.show { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); min-height: 48px; border-top: 1px solid var(--rule); cursor: pointer; }
.show:first-of-type { border-top: 0; }
.sw { appearance: none; -webkit-appearance: none; flex: none; position: relative; width: 44px; height: 26px; margin: 0; border-radius: var(--r-pill); background: var(--sunk); box-shadow: inset 0 0 0 1px var(--edge); cursor: pointer; transition: background-color var(--d2) var(--ease), box-shadow var(--d2) var(--ease); }
.sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--text-2); transition: transform var(--d2) var(--ease-out), background-color var(--d2) var(--ease); }
.sw:checked { background: var(--ink); box-shadow: none; }
.sw:checked::after { transform: translateX(18px); background: var(--on-ink); }
.sw:active::after { transform: scale(.92); }
.sw:checked:active::after { transform: translateX(18px) scale(.92); }
.sw:focus-visible { outline: var(--ring-w) solid var(--focus); outline-offset: var(--ring-offset); }
html[data-hide~="say"] .pk-say, html[data-hide~="say"] .pk-note,
html[data-hide~="facts"] .pk-facts,
html[data-hide~="route"] .pk-datum,
html[data-hide~="numbers"] .pk-metrics,
html[data-hide~="marks"] .pk-marks, html[data-hide~="marks"] .pk-detail { display: none; }

/* the field note: the first page of the notebook, filled in as you answer */
.note-card { position: relative; padding: var(--s-5) var(--s-5) var(--s-4); background: var(--surface); border-radius: var(--r-sm); box-shadow: var(--key); }
.note-head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-3); padding-bottom: var(--s-3); border-bottom: 1.5px solid var(--text); }
.note-head .caps { color: var(--text); min-width: 0; overflow-wrap: anywhere; }
.note-no { flex: none; font-size: var(--t-cap); color: var(--text-3); font-variant-numeric: tabular-nums; letter-spacing: 0; }
.note-card dl { margin: 0; }
/* labels sit on the first line of their answer, however many lines the answer takes */
.note-row { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: var(--s-3); align-items: start; padding: 11px 0; border-bottom: 1px solid var(--rule); min-height: 46px; }
.note-row dt { font-size: var(--t-cap); line-height: 1.3; padding-top: 5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); }
.note-row dd { margin: 0; font-size: var(--t-body); line-height: 1.3; min-width: 0; overflow-wrap: anywhere; }
.note-row.is-fresh dd { animation: ink-in 240ms var(--ease-out) both; }
@keyframes ink-in { from { opacity: .35; filter: blur(1.5px); } }
.leader { display: block; height: 1.1em; background: radial-gradient(circle, var(--text-3) .8px, transparent 1.2px) 0 75% / 6px 4px repeat-x; opacity: .7; }
.note-row { position: relative; }
/* an answer you can change: the whole row is the button (44 px or taller), its text where a plain answer's sits */
.note-row:has(.note-edit) { padding: 0; }
.note-row:has(.note-edit) dt { padding-top: 16px; }
.note-edit { appearance: none; border: 0; background: none; display: block; width: 100%; min-height: 44px; padding: 11px 0; margin: 0; text-align: left; cursor: pointer; color: inherit; font: inherit; line-height: 1.3; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; text-decoration-color: var(--rule-2); }
.note-edit::after { content: ""; position: absolute; inset: 0; border-radius: var(--r-sm); }
.note-edit:focus-visible { outline: none; }
.note-edit:focus-visible::after { outline: var(--ring-w) solid var(--focus); outline-offset: 0; }
.note-row:has(.note-edit:active) { opacity: .64; }
@media (hover: hover) and (pointer: fine) { .note-edit:hover { text-decoration-color: currentColor; } }
.note-foot { margin-top: var(--s-3); font-size: var(--t-cap); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); }

@media (min-width: 768px) {
  .ob { padding-left: var(--s-7); padding-right: var(--s-7); }
  .ob-grid { grid-template-columns: minmax(0, 1fr) 340px; gap: var(--s-8); padding-top: var(--s-7); }
  .ob[data-step="welcome"] .ob-grid { grid-template-columns: minmax(0, 1fr); }
  .ob[data-step="welcome"] .ob-main { max-width: 760px; }
  .ob-aside { display: block; position: sticky; top: var(--s-6); align-self: start; }
  .ob-foot { justify-items: start; }
  .ob-foot .btn-primary { width: auto; min-width: 240px; }
  .only-narrow { display: none; }
  .ob-main h1 { font-size: var(--t-display); }
  .display { font-size: var(--t-big) !important; }
  .hero { margin: var(--s-7) 0 0; border-radius: var(--r-sm); overflow: hidden; }
}

/* --- the app ---------------------------------------------------------------------------------- */
.app {
  /* the page always ends clear of the dock: its gap from the bottom, its height, and some air */
  --dock-h: 56px; --dock-gap: max(14px, env(safe-area-inset-bottom));
  min-height: 100dvh; display: flex; flex-direction: column;
  padding: 0 env(safe-area-inset-right) calc(var(--dock-gap) + var(--dock-h) + var(--s-6)) env(safe-area-inset-left);
}
.bar {
  /* the row keeps the settings key's 44 px when the frame lifts that key out over the picture, so the view under it never moves */
  position: sticky; top: 0; z-index: 20; display: grid; grid-template-columns: auto 1fr 44px; grid-template-rows: minmax(44px, auto); align-items: center; gap: var(--s-3);
  padding: max(6px, env(safe-area-inset-top)) var(--s-3) 6px var(--s-4);
  background: color-mix(in srgb, var(--bg) 97%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);  /* near-solid: a bright badge under it must not glow through as a smudge */
}
.wordmark { font-size: var(--t-cap); font-weight: 600; letter-spacing: .22em; }
.bar-place { display: flex; justify-content: flex-end; align-items: baseline; gap: 10px; min-width: 0; white-space: nowrap; font-size: var(--t-cap); font-weight: 600; letter-spacing: .11em; text-transform: uppercase; color: var(--text-2); }
.bar-place > span:first-of-type { overflow: hidden; text-overflow: ellipsis; }
/* away from home, the bar says so: a quiet pill that comes home in one tap; ::after stretches its target to 44 px */
.bar-away { position: relative; flex: none; align-self: center; display: inline-flex; align-items: center; gap: 4px; min-height: 28px; padding: 0 8px 0 10px; border: 1px solid var(--rule-2); border-radius: var(--r-pill); background: none; color: var(--text); font: inherit; letter-spacing: inherit; text-transform: inherit; cursor: pointer; }
.bar-away::after { content: ""; position: absolute; inset: -8px -4px; }
.bar-away + span { display: none; }      /* the pill names the visit; a place cut to one letter beside it says nothing */
.bar-away .i { color: var(--text-2); }
@media (prefers-reduced-motion: no-preference) { .bar-away { transition: transform var(--d1) var(--ease-out); } .bar-away:active { transform: scale(.96); } }
@media (hover: hover) and (pointer: fine) { .bar-away:hover .i { color: var(--text); } }
.bar-clock { color: var(--text); font-variant-numeric: tabular-nums; }
.bar-clock small { font-size: var(--t-cap); color: var(--text-2); margin-left: 3px; }
/* on the smallest phones the place would show as three letters and a dot; the datum line already names it */
@media (max-width: 359px) { .bar-place > span:first-of-type { display: none; } }
/* with large text the wordmark and the clock no longer share a row: the clock takes a row of its own below */
.bar { container: bar / inline-size; }
@container bar (max-width: calc(10rem + 96px)) { .bar-place { grid-column: 1 / -1; grid-row: 2; } .bar [data-act="settings"] { grid-column: 3; } }

.preview { display: flex; align-items: center; gap: var(--s-3); padding: 2px 0 var(--s-2) var(--s-4); }
.preview-tag { flex: none; font-size: var(--t-cap); font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.preview-scroll { display: flex; gap: var(--s-2); overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; padding: 6px var(--s-4) 6px 6px; margin: -4px 0 -4px -4px; -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); }
.preview-scroll::-webkit-scrollbar { display: none; }
.chip { flex: none; min-height: 44px; padding: 0 14px; border-radius: var(--r-pill); border: 1px solid var(--edge); background: transparent; color: var(--text-2); font-size: var(--t-sm); cursor: pointer; white-space: nowrap; transition: background-color var(--d2), color var(--d2), border-color var(--d2), transform var(--d1) var(--ease-out); }
.chip:active { transform: scale(.97); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
@media (hover: hover) and (pointer: fine) { .chip:hover:not([aria-pressed="true"]) { color: var(--text); border-color: var(--text-2); } }

.status { margin: 0 var(--s-4) var(--s-3); font-size: var(--t-sm); color: var(--text-2); }
.status:empty { display: none; }
.status.warn { display: flex; gap: var(--s-3); align-items: flex-start; padding: var(--s-3) var(--s-4); background: var(--sunk); border-radius: var(--r-md); color: var(--text); }
.view { position: relative; flex: 1; width: 100%; max-width: 1040px; margin: 0 auto; padding: var(--s-2) var(--s-4) 0; }
.view:focus { outline: none; }
/* a sky the person asked for is on its way: the old one dims, but only if the wait is long enough to notice */
.view > * { transition: opacity var(--d2) var(--ease); }
.view[aria-busy="true"] > * { opacity: .5; transition-delay: 300ms; }

/* the dock: a soft switch, never a wall of tabs */
.dock { position: fixed; left: 50%; bottom: max(14px, env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 30; }
/* scrolled cards slip under a soft fade, not straight behind the pill; the full-screen sky stays bare */
html:not(.is-framed) .dock::before { content: ''; position: absolute; z-index: -1; left: 50%; bottom: calc(-1 * max(14px, env(safe-area-inset-bottom))); width: 100vw; height: calc(100% + max(14px, env(safe-area-inset-bottom)) + var(--s-6)); transform: translateX(-50%); background: linear-gradient(to bottom, transparent, var(--bg) 55%); pointer-events: none; }
.dock-track {
  /* each option grows with large text but the three always fit the screen; the knob is one option wide */
  --opt: min(max(92px, 5.75rem), (100vw - 42px) / 3);
  position: relative; display: grid; grid-template-columns: repeat(3, var(--opt)); padding: 5px; border-radius: var(--r-pill);
  background: var(--sunk); box-shadow: var(--well), var(--lift);
}
.dock-knob {
  position: absolute; top: 5px; left: 5px; width: var(--opt); height: calc(100% - 10px); border-radius: var(--r-pill);
  background: var(--surface); box-shadow: var(--key); transform: translateX(calc(var(--i, 0) * 100%));
  transition: transform 260ms var(--ease-out);
}
/* arrow keys are for moving fast: the knob is simply there */
.dock-track.is-keyed .dock-knob { transition: none; }
.dock-opt {
  position: relative; z-index: 1; min-height: 46px; border: 0; background: transparent; border-radius: var(--r-pill); cursor: pointer;
  font-size: var(--t-cap); font-weight: 600; letter-spacing: min(.12em, 1.5px); text-transform: uppercase; color: var(--text-2);
  transition: color var(--d2) var(--ease), transform var(--d1) var(--ease-out);
}
.dock-opt:active { transform: scale(.97); }
.dock-opt[aria-checked="true"] { color: var(--text); }
.dock-opt:focus-visible { outline-offset: var(--ring-inset); }
@media (hover: hover) and (pointer: fine) { .dock-opt:hover { color: var(--text); } }

/* skeleton: the line drawn, nothing on it yet */
.skel { display: grid; gap: var(--s-4); justify-items: center; padding-top: var(--s-5); }
.skel-glass { position: relative; width: 100%; max-width: 520px; aspect-ratio: 5 / 3; border-radius: var(--r-sm); background: var(--sunk); overflow: hidden; }
.skel--frame .skel-glass { max-width: 960px; }
.skel-glass::after { content: ""; position: absolute; left: 8%; right: 8%; top: 64%; height: 3px; color: var(--text-3); background: radial-gradient(circle, currentColor 1.1px, transparent 1.5px) 0 50% / 8px 3px repeat-x; animation: dots 1.1s linear infinite; }
.skel-msg { display: flex; align-items: center; gap: var(--s-3); color: var(--text-2); font-size: var(--t-sm); }

/* FRAME: exactly what the wall shows, in a frame on a wall */
.framev { display: grid; justify-items: center; gap: var(--s-5); padding-top: var(--s-3); }
.mount {
  /* the glass takes the height left once the bar, the caption, its two buttons and the dock have theirs, so
     on a desktop the whole frame, caption and buttons sit above the dock. app.js measures those heights and
     sets --fit, the widest the frame may be; nothing here assumes them */
  --mat: clamp(9px, 2.2vw, 22px);
  margin: 0; width: 100%; max-width: min(980px, var(--fit, 100%)); padding: var(--mat); border-radius: 3px; background: var(--mount);
  box-shadow: var(--mount-shadow);
}
.glass { position: relative; aspect-ratio: 5 / 3; overflow: hidden; background: var(--glass-paper); box-shadow: var(--glass-inset); }
.glass svg { display: block; width: 100%; height: 100%; }
.glass::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(155deg, var(--glass-sheen), transparent 42%); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .glass svg { filter: brightness(.9); } }
:root[data-theme="dark"] .glass svg { filter: brightness(.9); }
.framev-cap { display: grid; gap: var(--s-4); justify-items: center; max-width: 520px; text-align: center; color: var(--text-2); font-size: var(--t-sm); line-height: 1.45; text-wrap: pretty; }
.framev-acts { display: flex; flex-wrap: wrap; gap: var(--s-3); justify-content: center; }

/* POCKET: the glass, reflowed for a hand */
.pk { max-width: 520px; margin: 0 auto; background: var(--surface); border-radius: var(--r-sm); box-shadow: var(--key); overflow: hidden; }
/* the headline keeps its words whole; when the longest one can't sit beside the clock, the clock steps under it */
.pk-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: var(--s-1) var(--s-3); padding: var(--s-4) var(--s-4) var(--s-3); }
.pk-head { flex: 1 1 min-content; min-width: 0; font-size: var(--t-head); font-weight: 600; line-height: 1.04; letter-spacing: .035em; text-transform: uppercase; overflow-wrap: break-word; }
.pk-head--clock { font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.pk-head small { font-size: var(--t-cap); font-weight: 600; letter-spacing: .12em; margin-left: 6px; color: var(--text-2); }
.pk-when { flex: 1 0 auto; padding-top: 4px; text-align: right; white-space: nowrap; font-size: var(--t-cap); font-weight: 600; line-height: 1.5; letter-spacing: .11em; text-transform: uppercase; font-variant-numeric: tabular-nums; }
.pk-band {
  /* the band clips sideways, so a big aircraft's trailing wing echoes can run off its left edge; the body
     itself always fits (app.js sizes it against the longest body we draw) */
  container-type: inline-size; overflow-x: clip;
  position: relative; display: flex; flex-direction: column; min-height: calc(var(--k) * 128px + 150px); padding: var(--s-4) var(--s-4) var(--s-5);
  background-color: var(--band); background-image: radial-gradient(circle, var(--band-grain) .8px, transparent 1.15px); background-size: 4px 4px;
}
.pk-status { color: var(--text); margin-bottom: var(--s-2); }
.pk-say { font-size: var(--t-lead); font-weight: 500; line-height: 1.24; max-width: 19ch; text-wrap: balance; }
.pk-note { margin-top: 6px; font-size: var(--t-body); line-height: 1.36; max-width: 25ch; text-wrap: pretty; }
.pk-plane {
  /* --bw is the body's length in 1:1500 px. One scale on a screen: the longest body we draw (280 px) fills
     the band's inner width, up to 1.5 CSS px per glass px. The svg is wider than the figure by its echoes. */
  margin: auto 0 0 auto; padding-top: var(--s-4); flex: none;
  width: calc(var(--bw) * min(1.5px, 100cqw / 280));
}
.pk-plane svg { display: block; max-width: none; height: auto; overflow: visible; }
.pk--quiet .pk-band, .pk--bare .pk-band { min-height: 220px; }
/* Illustrated: the band is the frame's own painting, upright, of the lead aircraft alone, at the band's whole width.
   The words over it are set on its sky, in the frame's own small ink; a rare one still gilds them. */
.pk-band--sky { min-height: 0; padding-bottom: 0; background: #0B8FD0; color: #03162C; }
.pk-band--sky.is-night { background: #050E1B; color: #F6EAD2; }
.pk-band--sky .pk-status { color: inherit; }
.pk.is-rare .pk-band--sky { background-color: var(--band); }
.pk-sky { margin: var(--s-4) calc(var(--s-4) * -1) 0; }
/* the card's heading has said the name: the painting's caption starts at the type (its accessible name still has both) */
.pk-sky .il-call { display: none; }
.pk-sky .il .il-kind { margin-top: 0; }
.pf-ink { fill: var(--text); }
.pf-gap { stroke: var(--band); }
.pf-echo-1 { fill: var(--echo-1); }
.pf-echo-2 { fill: var(--echo-2); }
.is-gone .pf-ink { fill: var(--gone-ink); }
.is-gone .pf-echo { display: none; }
.pk-facts { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px var(--s-3); padding: var(--s-4) var(--s-4) 0; font-size: var(--t-cap); font-weight: 600; letter-spacing: .11em; text-transform: uppercase; }
.pk-facts span:last-child { color: var(--text-2); }
/* the Illustrated card is the lead's; the others in the sky are named on one quiet line */
.pk-also { margin: 0; padding: var(--s-3) var(--s-4) 0; font-size: var(--t-cap); line-height: 1.4; color: var(--text-2); }
.pk-also span { font-weight: 600; letter-spacing: .06em; white-space: nowrap; color: var(--text); }
/* a rare one gilds the sky: the band, its echoes and everything printed on it, as on the glass */
.pk.is-rare { --band: var(--gold-band); --echo-1: var(--gold-echo-1); --echo-2: var(--gold-echo-2); }
.pk.is-rare .pk-band { --text: var(--gold-on); color: var(--gold-on); }
.pk.is-rare.is-gone .pk-band .pf-ink { fill: var(--gold-on); opacity: .62; }
/* the sky turns gold: when a rare one arrives over a sky that was blue, the band, the wing echoes and the gaps
   cut in the silhouette warm from that blue together, over most of a second, as the new card finishes fading in.
   Once per arrival (app.js decides), color only, nothing moves. Blue and gold sit across the wheel from each
   other, so a straight sRGB (or oklab) blend dies to grey-olive halfway; instead one number runs 0 to 1 and every
   color is mixed in oklch the long way round, through violet and rose: a dusk, a sky color at every frame,
   never less saturated than the paler end */
@property --gild { syntax: "<number>"; inherits: false; initial-value: 1; }
@media (prefers-reduced-motion: no-preference) {
  .pk.is-gilding :is(.pk-band, .pf-gap, .pf-echo-1, .pf-echo-2) { animation: gild 900ms ease 160ms both; }
  .pk.is-gilding .pk-band { background-color: color-mix(in oklch increasing hue, var(--sky-band) calc(100% - var(--gild) * 100%), var(--gold-band)); }
  .pk.is-gilding .pf-gap { stroke: color-mix(in oklch increasing hue, var(--sky-band) calc(100% - var(--gild) * 100%), var(--gold-band)); }
  .pk.is-gilding .pf-echo-1 { fill: color-mix(in oklch increasing hue, var(--sky-echo-1) calc(100% - var(--gild) * 100%), var(--gold-echo-1)); }
  .pk.is-gilding .pf-echo-2 { fill: color-mix(in oklch increasing hue, var(--sky-echo-2) calc(100% - var(--gild) * 100%), var(--gold-echo-2)); }
}
@keyframes gild { from { --gild: 0; } to { --gild: 1; } }
.pk-status { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; }
/* when the note already says "a rare one", the eyebrow keeps the star alone, set as a mark before the status */
.pk-status--mark { flex-direction: row; align-items: flex-start; gap: 7px; }
.pk-status--mark .pk-rare .star { width: 1.18em; height: 1.18em; margin-top: .12em; }
.pk-rare { display: inline-flex; align-items: center; gap: 6px; }
.pk-rare .star { width: 13px; height: 13px; }
/* field marks: short tracked caps on paper tags, never colored; they're facts, not buttons */
.pk-marks { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: var(--s-3) var(--s-4) 0; }
.pk-marks li { padding: 4px 8px 3px; border: 1px solid var(--rule-2); border-radius: 3px; background: var(--bg); font-size: var(--t-cap); font-weight: 600; line-height: 1.3; letter-spacing: .12em; text-transform: uppercase; color: var(--text); white-space: nowrap; }
.pk-datum { padding: var(--s-3) var(--s-4) var(--s-2); }
.datum { display: block; width: 100%; height: auto; overflow: visible; }
.dl-solid, .dl-tick { stroke: var(--text); stroke-width: 1.5; }
.dl-dots { stroke: var(--text); stroke-width: 1.6; stroke-dasharray: .4 4.2; stroke-linecap: round; }
.dl-home { fill: var(--home); }
.dl-code { font-size: var(--t-sm); font-weight: 600; letter-spacing: .06em; fill: var(--text); }
.dl-small { font-size: var(--t-cap); font-weight: 600; letter-spacing: .1em; fill: var(--text-2); }
.dl-plane path { fill: var(--text); stroke: var(--surface); stroke-width: 2.5; paint-order: stroke; }
.dl-arrow { fill: var(--text); }

.pk-metrics { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: var(--s-4); align-items: start; padding: var(--s-4); border-top: 1px solid var(--rule); }
/* no dial: the readings take the row */
.pk-metrics--plain { grid-template-columns: minmax(0, 1fr); }
/* where to look, from the side: you on the ground, the sky as a quarter arc, a line up to the aircraft */
.look { margin: 0; display: grid; justify-items: start; gap: var(--s-2); }
.look svg { display: block; width: 84px; height: 56px; overflow: visible; }
.look figcaption { font-size: var(--t-sm); line-height: 1.3; text-wrap: balance; }
.ld-horizon { stroke: var(--text-2); stroke-width: 1.25; stroke-linecap: round; }
.ld-arc { fill: none; stroke: var(--rule-2); stroke-width: 1; stroke-dasharray: 1 3.5; stroke-linecap: round; }
.ld-ray { stroke: var(--text); stroke-width: 1.25; stroke-linecap: round; }
.ld-home { fill: var(--home); }
.ld-plane path { fill: var(--text); stroke: var(--surface); stroke-width: 2.5; paint-order: stroke; }
/* two to a row; a reading too wide to share its row takes the whole row instead of running into its neighbor */
.metrics { display: flex; flex-wrap: wrap; gap: var(--s-4) var(--s-3); margin: 0; }
.metrics > div { flex: 1 0 calc(50% - var(--s-3)); }
.metrics dd { margin: 3px 0 0; white-space: nowrap; }
/* on the smallest phones the dial and its words take a row of their own, the readings two across under it */
@media (max-width: 399px) {
  .pk-metrics { grid-template-columns: minmax(0, 1fr); gap: var(--s-4); }
  .look { grid-template-columns: 84px minmax(0, 1fr); align-items: center; gap: var(--s-3); }
}
/* a dial with nothing to add in words is only its drawing, in a column its own width: narrow enough to keep its
   place beside the readings on all but the smallest phones */
.pk-metrics--mute { grid-template-columns: 84px minmax(0, 1fr); }
@media (max-width: 379px) { .pk-metrics--mute { grid-template-columns: minmax(0, 1fr); } }
.ml, .metrics dt { display: block; font-size: var(--t-cap); font-weight: 600; letter-spacing: .11em; text-transform: uppercase; color: var(--text-2); }
/* readings in a field note: the body's own weight, a step up in size, units small beside them */
.mv { font-size: var(--t-lead); font-weight: 400; line-height: 1.2; font-variant-numeric: tabular-nums; }
.mu { font-size: var(--t-cap); font-weight: 600; letter-spacing: .11em; text-transform: uppercase; color: var(--text-2); }
.pk-detail { padding: var(--s-4); border-top: 1px solid var(--rule); }
.pk-foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px var(--s-3); padding: var(--s-3) var(--s-4) var(--s-4); border-top: 1px solid var(--rule); font-size: var(--t-cap); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); }

/* LOG: the day as a shelf, every silhouette at one scale */
.log { max-width: 680px; margin: 0 auto; padding-top: var(--s-3); }
.log-title { font-size: var(--t-h); font-weight: 500; line-height: 1.15; letter-spacing: -.01em; margin-bottom: var(--s-2); text-wrap: balance; }
.log-list { list-style: none; margin: var(--s-4) 0 0; padding: 0; background: var(--surface); border-radius: var(--r-sm); box-shadow: var(--key); }
.log-row { display: grid; grid-template-columns: 4.25rem 1fr auto; grid-template-areas: "time plane plane" "time what close"; gap: var(--s-2) var(--s-3); padding: var(--s-4); border-bottom: 1px solid var(--rule); }
.log-row:last-child { border-bottom: 0; }
.log-time { grid-area: time; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; margin: 0; white-space: nowrap; font-weight: 600; font-size: var(--t-sm); font-variant-numeric: tabular-nums; padding-top: 2px; }
.log-rare .star { width: 16px; height: 16px; }
.log-marks { display: block; margin-top: 3px; font-size: var(--t-cap); font-weight: 600; line-height: 1.5; letter-spacing: .12em; text-transform: uppercase; }
/* a mark keeps its words together and moves to the next line whole; only one wider than its column breaks inside */
.log-mark { display: inline-block; max-width: 100%; }
.log-plane { grid-area: plane; display: flex; align-items: flex-end; min-height: calc(var(--kl) * 64px); }
.log-plane span { display: block; }
.log-plane svg { display: block; max-width: none; height: auto; overflow: visible; }
.log-plane .pf-gap { stroke: var(--surface); }
.log-plane .pf-echo { display: none; }
.log-what { grid-area: what; min-width: 0; }
.log-name { font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.log-type, .log-route { margin-top: 2px; font-size: var(--t-sm); line-height: 1.35; color: var(--text-2); }
.log-close { grid-area: close; text-align: right; font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; align-self: end; }
.log-foot { margin: var(--s-4) 0 0; text-align: center; }
/* the day's summary: four plain facts under the count, then the few worth a second look */
.day-facts { margin: var(--s-4) 0 0; display: grid; gap: var(--s-2); }
.day-facts div { display: grid; grid-template-columns: 5rem 1fr; gap: var(--s-3); align-items: baseline; }
.day-facts dd { margin: 0; font-variant-numeric: tabular-nums; }
.day-head { margin-top: var(--s-6); }
.day-head + .log-list { margin-top: var(--s-2); }
.log-row--plain { grid-template-areas: "time what close"; }
.log-all .log-list { margin-top: 0; margin-bottom: var(--s-2); }
.shelf { display: flex; align-items: center; gap: var(--s-3); margin-top: var(--s-6); color: var(--text-3); }
.shelf::before { content: ""; flex: 1; height: 3px; background: radial-gradient(circle, currentColor 1px, transparent 1.4px) 0 50% / 8px 3px repeat-x; }
.shelf i { width: 10px; height: 10px; border-radius: 50%; background: var(--home); flex: none; }
.shelf::after { content: ""; flex: .25; height: 3px; background: radial-gradient(circle, currentColor 1px, transparent 1.4px) 0 50% / 8px 3px repeat-x; }
@media (min-width: 640px) {
  .log-row { grid-template-columns: 4.75rem 200px 1fr auto; grid-template-areas: "time plane what close"; align-items: center; }
  .log-plane { min-height: 0; }
  .log-close { align-self: center; }
}

/* The life list, under Today: every kind of aircraft this device has seen. Cards in a grid, each a button that
   opens the sheet; only the press moves, and only by transform. One selector to a line, tokens only. */
.life { max-width: 680px; margin: var(--s-7) auto 0; padding-top: var(--s-5); border-top: 1px solid var(--rule); }
.life-tally { margin-bottom: var(--s-3); font-size: var(--t-lead); font-weight: 500; line-height: 1.2; font-variant-numeric: tabular-nums; }
.life-empty { margin-bottom: 0; }
.life-chips { display: flex; gap: var(--s-2); }
/* the order is not a filter: quiet words at the end of the chip row, a tap switches it */
.life-filter { display: flex; align-items: center; gap: var(--s-2); }
.life-chips { flex: 1; min-width: 0; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; padding: 6px; margin: -6px 0 -6px -6px;
  /* a chip cut by the sort word fades out instead of ending in a sliced outline */
  -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 32px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 32px), transparent); }
.life-chips::-webkit-scrollbar { display: none; }
.life-sort { appearance: none; flex: none; min-height: 44px; padding: 0 2px 0 var(--s-2); border: 0; background: none; color: var(--text-2); font: inherit; font-size: var(--t-sm); cursor: pointer; white-space: nowrap; }
.life-sort:active { opacity: .64; }
.life-n { margin-left: 2px; font-weight: 600; font-variant-numeric: tabular-nums; }
.life-grid { list-style: none; margin: var(--s-4) 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: var(--s-3); }
.life-card { appearance: none; border: 0; display: grid; align-content: start; gap: 2px; width: 100%; height: 100%; min-height: 44px; padding: var(--s-2) var(--s-2) var(--s-3); text-align: left; background: var(--surface); color: var(--text); border-radius: var(--r-sm); box-shadow: var(--key); cursor: pointer; -webkit-tap-highlight-color: transparent; transition: transform var(--d1) var(--ease-out), background-color var(--d2) var(--ease-out); }
.life-card:active { transform: scale(.98); }
@media (hover: hover) and (pointer: fine) { .life-card:hover { background: color-mix(in srgb, var(--surface), var(--text) 4%); } }
.life-art { display: grid; place-items: center; aspect-ratio: 16 / 9; margin: 0 0 var(--s-2); padding: var(--s-2); border-radius: calc(var(--r-sm) - 2px); background: var(--band); overflow: hidden; }
.life-art img { display: block; width: auto; height: auto; max-width: 100%; max-height: 100%; min-height: 0; object-fit: contain; }
.life-glyph { width: 44%; height: auto; fill: var(--text); }
.life-name { font-weight: 600; line-height: 1.2; overflow-wrap: anywhere; }
.life-type { font-size: var(--t-sm); line-height: 1.25; color: var(--text-2); }
.life-facts { display: grid; margin-top: var(--s-1); font-size: var(--t-sm); line-height: 1.35; color: var(--text-2); font-variant-numeric: tabular-nums; }
.life-more { margin-top: var(--s-3); text-align: center; }
.life-left { margin-top: var(--s-3); }
.life-head { margin: var(--s-6) 0 0; }
.life-span { font-size: var(--t-cap); font-weight: 600; letter-spacing: .11em; text-transform: uppercase; color: var(--text-2); font-variant-numeric: tabular-nums; }
.life-days { margin-top: var(--s-3); }
/* the day strip: 24 hours, one bar each, the busiest in the accent; now marked on today's (the dashed rest is still to come) */
.day-strip { container: strip / inline-size; margin: var(--s-4) 0 var(--s-5); }
.day-say { display: flex; align-items: center; gap: var(--s-2); margin: 0 0 var(--s-2); font-size: var(--t-sm); color: var(--text); }
.day-key { flex: none; width: 8px; height: 8px; background: var(--accent); }
.day-bars { position: relative; display: grid; grid-template-columns: repeat(24, minmax(0, 1fr)); align-items: end; gap: 2px; height: 56px; }
.day-bars i { grid-row: 1; background: var(--edge); }
.day-bars i.is-top { background: var(--accent); }
.day-base { position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--rule-2); }
.day-base.is-after { right: 0; background: repeating-linear-gradient(90deg, var(--rule-2) 0 3px, transparent 3px 5px); }
.day-now { position: absolute; bottom: -7px; width: 2px; height: 6px; margin-left: -1px; background: var(--text); }
.day-hours { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) 0; margin: var(--s-2) 0 0; font-size: var(--t-cap); color: var(--text-3); font-variant-numeric: tabular-nums; }
.day-hours span { min-width: 0; justify-self: start; white-space: nowrap; }
.day-hours span:last-child { justify-self: end; }
@container strip (max-width: 15em) { .day-hours span:last-child { visibility: hidden; } }      /* em, so 200% text trips it too: the four hours keep their room */
.life-strip { display: flex; align-items: flex-end; gap: 2px; height: 56px; border-bottom: 1px solid var(--rule-2); }
.life-strip i { flex: 1; min-width: 0; background: var(--text); }
.life-strip .is-none { height: 2px; background: var(--rule-2); }
.life-span { display: flex; justify-content: space-between; gap: var(--s-3); margin-top: var(--s-2); }
.life-plate { aspect-ratio: 2 / 1; margin: 0; padding: var(--s-3); }
.life-sheet .eyebrow { margin-bottom: var(--s-2); }
.life-sheet .life-dl { margin-top: 0; }
.life-tags, .life-toward { list-style: none; margin: 0; padding: 0; }
/* Drawn to scale: an Instruments plate on the livery sheet (.ig: its black, its tile ink, its accent, day and night alike).
   The drawing is svg geometry in metres at one scale; every word is HTML, so only words grow with the text */
.spec { container: spec / inline-size; margin: 0; padding: var(--s-4); border-radius: var(--r-sm); overflow: hidden; background: var(--ig-ground); color: var(--p-paper-100); }
.life-sheet .spec h3 { display: flex; align-items: center; gap: var(--s-2); margin: 0 0 var(--s-3); color: var(--ig-tile); }
.spec h3::before { content: ""; width: 3px; height: 1.1em; background: var(--ig-accent); }
.spec-draw { display: grid; grid-template-columns: minmax(0, 1fr) 6.2ch; align-items: end; margin-left: calc(-1 * var(--s-4)); font-size: clamp(2rem, 9cqi, 3rem); }
.spec svg { display: block; overflow: hidden; }
.spec-draw svg { width: 100%; height: auto; }
.spec svg path, .spec svg line { vector-effect: non-scaling-stroke; }
.spec-centre { stroke: var(--p-ink-400); stroke-width: 1; stroke-dasharray: 10 3 2 3; }
.spec-ghost.is-over path { fill: none; }
.spec-ghost path { fill: var(--ig-ground); stroke: var(--ig-empty); stroke-width: 1; stroke-dasharray: 4 3; }
.spec-subject path { fill: var(--p-paper-100); stroke: var(--ig-ground); stroke-width: .75; stroke-linejoin: round; }
.spec-ext, .spec-dim { stroke: var(--ig-tile); stroke-width: 1; }
.spec svg .spec-arrow { fill: var(--ig-tile); stroke: none; }
.spec-len { margin: 0 0 var(--s-5); line-height: 1; font-variant-numeric: tabular-nums; }
.spec-len b { display: block; font-weight: 500; white-space: nowrap; color: var(--p-paper-100); }
.spec-len small { display: block; margin-top: var(--s-1); font-size: var(--t-sm); color: var(--ig-empty); }
.spec-block { display: flex; flex-wrap: wrap; align-items: flex-start; gap: var(--s-3) var(--s-4); margin-top: var(--s-3); padding-top: var(--s-4); border-top: 1px solid var(--p-ink-400); }
.spec-stamps { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.spec-stamps li { padding: 3px 10px; border: 1px solid var(--ig-accent); border-radius: var(--r-pill); font-size: var(--t-cap); font-weight: 600; letter-spacing: .11em; color: var(--p-paper-100); }
.spec-cap { flex: 1 1 14em; display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: var(--s-1) var(--s-3); margin: 0; font-size: var(--t-cap); }
.spec-cap > div { display: contents; }
.spec-cap dt { font-weight: 600; letter-spacing: .11em; text-transform: uppercase; color: var(--ig-empty); }
.spec-cap dd { margin: 0; min-width: 0; overflow-wrap: anywhere; text-wrap: pretty; color: var(--ig-tile); }
.spec-scale { margin-top: var(--s-5); font-size: var(--t-cap); font-variant-numeric: tabular-nums; }
.spec-marks { position: relative; height: 1.6em; margin-bottom: 2px; }
.spec-marks.is-two { height: 3.2em; }
.spec-mark { position: absolute; bottom: 0; display: flex; align-items: flex-end; gap: 4px; margin: 0; white-space: nowrap; color: var(--p-paper-100); transform: translateX(-4px); }
.spec-mark.is-end { transform: translateX(4px); }
.spec-marks.is-two .spec-mark:not(.is-low) { bottom: 1.6em; }
.spec-mark b { font-weight: 600; color: var(--ig-accent); }
.spec-mark i { flex: none; width: 8px; height: 6px; clip-path: polygon(0 0, 100% 0, 50% 100%); background: var(--ig-accent); }
.spec-mark.is-end i { order: 1; }
.spec-ruler { width: 100%; height: 10px; }
.spec-ruler line { stroke: var(--ig-empty); stroke-width: 1; }
.spec-nums { position: relative; height: 1.4em; margin: var(--s-1) 0 0; color: var(--ig-empty); }
.spec-nums span { position: absolute; top: 0; transform: translateX(-50%); white-space: nowrap; }
.spec-nums span:first-child { transform: none; }
.spec-nums span:last-child { transform: translateX(-100%); }
@container spec (max-width: 23.75em) { .spec-block { flex-direction: column; } .spec-cap { flex: none; align-self: stretch; } }
@container spec (max-width: 18.75em) { .spec-nums .is-odd { visibility: hidden; } }
@container spec (max-width: 12.5em) {
  .spec-marks { height: 3.2em; }
  .spec-marks .spec-mark:first-child { bottom: 1.6em; }
}
@container spec (max-width: 15em) {
  .spec-draw { grid-template-columns: minmax(0, 1fr); }
  .spec-len { margin: var(--s-2) 0 0; text-align: right; }
}
@container spec (max-width: 12.5em) { .spec-nums .is-q { visibility: hidden; } }
.life-tags { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.life-tags li { padding: 4px var(--s-3); border: 1px solid var(--edge); border-radius: var(--r-pill); font-size: var(--t-sm); }
.life-toward li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-3); padding: var(--s-2) 0; border-top: 1px solid var(--rule); }
.life-toward-at { color: var(--text-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (min-width: 640px) { .life-chips { flex-wrap: wrap; overflow: visible; -webkit-mask-image: none; mask-image: none; } }
/* the same list in the other two interfaces: the poster's own sky behind a painting, and the map sheet's ruled index */
html[data-ui="poster"] .life-art { background: var(--poster-sky); }
html[data-ui="mapsheet"] .life-card { background: none; box-shadow: none; border-radius: 0; border-top: 1.5px solid var(--text); }
html[data-ui="mapsheet"] .life-card { padding: var(--s-2) 0 var(--s-3); }
html[data-ui="mapsheet"] .life-art { background: var(--ms-card); border-radius: 0; }

/* THE COLLECTION, under the life list: thirty medals in a case of fixed slots, a family to a shelf.
   THE LAW OF ITS GRID. .medals is an inline-size container: one column under 11em, two from 11em, three from 16.5em,
   four from 36em, six from 56em, on one gutter (--s-3). A cell is one button: the medal at most 96 px and centred, its
   name wrapped and never cut, its status in caps under it. Nothing breaks this grid; only the sheet's painting breaks
   its own. The case sits in the life list's column, so it is four across at most. */
.medal-fam, .medal-next { margin-top: var(--s-5); }
.medal-fam { content-visibility: auto; contain-intrinsic-size: auto 240px; }      /* one row and its See all, at 390 wide */
.medal-fam .eyebrow, .medal-next .eyebrow { margin: 0 0 var(--s-2); }
.medals, .next { list-style: none; margin: 0; padding: 0; }
.medal-fam { container-type: inline-size; }
.medals { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.medals > li { flex: 0 0 100%; min-width: 0; }
@container (min-width: 11em) { .medals > li { flex-basis: calc((100% - var(--s-3)) / 2); } }
@container (min-width: 16.5em) { .medals > li { flex-basis: calc((100% - 2 * var(--s-3)) / 3); } }
@container (min-width: 36em) { .medals > li { flex-basis: calc((100% - 3 * var(--s-3)) / 4); } }
@container (min-width: 56em) { .medals > li { flex-basis: calc((100% - 5 * var(--s-3)) / 6); } }
/* closed, a family is one row of the grid above (its columns: 1, 2, 3, 4, 6), and See all shows only when there is more */
.medal-fam:not(.is-open) .medals > li:nth-child(n + 2) { display: none; }
.medal-fam:not(:has(.medals > li:nth-child(2))) .fam-all { display: none; }
@container (min-width: 11em) { .medal-fam:not(.is-open) .medals > li:nth-child(n + 2) { display: block; } .medal-fam:not(.is-open) .medals > li:nth-child(n + 3) { display: none; } .medal-fam:not(:has(.medals > li:nth-child(3))) .fam-all { display: none; } }
@container (min-width: 16.5em) { .medal-fam:not(.is-open) .medals > li:nth-child(n + 3) { display: block; } .medal-fam:not(.is-open) .medals > li:nth-child(n + 4) { display: none; } .medal-fam:not(:has(.medals > li:nth-child(4))) .fam-all { display: none; } }
@container (min-width: 36em) { .medal-fam:not(.is-open) .medals > li:nth-child(n + 4) { display: block; } .medal-fam:not(.is-open) .medals > li:nth-child(n + 5) { display: none; } .medal-fam:not(:has(.medals > li:nth-child(5))) .fam-all { display: none; } }
@container (min-width: 56em) { .medal-fam:not(.is-open) .medals > li:nth-child(n + 5) { display: block; } .medal-fam:not(.is-open) .medals > li:nth-child(n + 7) { display: none; } .medal-fam:not(:has(.medals > li:nth-child(7))) .fam-all { display: none; } }
.fam-all { appearance: none; display: block; min-height: 44px; margin: 0 auto; padding: 0 var(--s-3); border: 0; background: none; color: var(--text-2); font: inherit; font-size: var(--t-sm); font-weight: 600; cursor: pointer; }
.fam-all:active { opacity: .64; }
.medal-cell, .next-row { appearance: none; border: 0; background: none; color: var(--text); font: inherit; width: 100%; min-height: 44px; border-radius: var(--r-sm); cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation; user-select: none; -webkit-touch-callout: none; }
.medal-cell { display: grid; justify-items: center; align-content: start; gap: 2px; height: 100%; padding: var(--s-2) var(--s-1) var(--s-3); text-align: center; }
@media (prefers-reduced-motion: no-preference) { .medal-cell .medal { transition: transform var(--d1) var(--ease-out); } }
.medal-cell:active .medal { transform: scale(.96); }
.next-row:active { background-color: color-mix(in srgb, var(--bg), var(--text) 6%); }
.next-row:focus-visible { outline-offset: var(--ring-inset); }
@media (hover: hover) and (pointer: fine) { .medal-cell:hover, .next-row:hover { background-color: color-mix(in srgb, var(--bg), var(--text) 4%); } }
.medal-cell .medal { width: min(100%, 96px); margin-bottom: var(--s-1); }
.medal-cell .medal-name { min-height: 2.5em; }      /* a two-line slot: every status in a row sits on one line */
.medal-invite { margin: var(--s-2) 0 0; }
.medal-name { font-size: var(--t-sm); font-weight: 600; line-height: 1.25; overflow-wrap: anywhere; text-wrap: balance; }
.medal-at { font-size: var(--t-cap); font-weight: 600; letter-spacing: .11em; text-transform: uppercase; color: var(--text-2); font-variant-numeric: tabular-nums; }
.next { display: grid; }
.next-row { display: grid; grid-template-columns: 56px minmax(0, 1fr); align-items: center; gap: var(--s-3); padding: var(--s-2) var(--s-1); border-top: 1px solid var(--rule); border-radius: 0; text-align: left; }
.next-row .medal { width: 56px; }
.next-text { display: grid; gap: 2px; }
.next-ask { font-size: var(--t-sm); line-height: 1.3; color: var(--text-2); text-wrap: pretty; overflow-wrap: anywhere; }
/* the medal: the badge kit's sticker, its colours the art's own; the multiplier in words over it on the sheet */
.medal { position: relative; display: block; aspect-ratio: 1; contain: layout paint; }
.medal svg { display: block; width: 100%; height: 100%; }
.medal img { position: relative; display: block; width: 100%; height: 100%; }
/* a quiet ground the sticker's own shape until it has loaded; no fade */
.medal::before { content: ''; position: absolute; inset: 10.7%; border-radius: 22%; background: var(--sunk); }
.medal[data-shape="circle"]::before { border-radius: 50%; }
.medal[data-shape="shield"]::before { border-radius: 22% 22% 50% 50%; }
.medal.is-in::before { content: none; }
/* the kit's locked sticker is near the paper: a soft ink edge in light only, the art untouched */
.medal.is-locked img { filter: grayscale(1) drop-shadow(0 0 .75px var(--text-3)); opacity: .6; }
/* one painted sticker per medal; the tier is a small enamel pip on its lower right */
.medal[data-tier="bronze"]::after, .medal[data-tier="silver"]::after, .medal[data-tier="gold"]::after { content: ''; position: absolute; right: 6%; bottom: 6%; width: 18%; aspect-ratio: 1; border-radius: 50%; border: 2px solid #f6ead2; }
.medal[data-tier="bronze"]::after { background: #b4703a; }
.medal[data-tier="silver"]::after { background: #b9bec4; }
.medal[data-tier="gold"]::after { background: #e8b923; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .medal.is-locked img { filter: grayscale(1); } }
:root[data-theme="dark"] .medal.is-locked img { filter: grayscale(1); }
/* the medal's sheet: the painting runs from the medal's right ring off the sheet's edge, over no word */
.medal-sheet .eyebrow { margin-bottom: var(--s-2); }
/* pass quality: a small word after the closest pass; Overhead wears a hand-drawn ring */
.pass { position: relative; display: inline-block; margin-left: .35em; color: var(--accent); font-weight: inherit; }
.pass--close { color: var(--text-2); }
.log-close .pass { display: block; margin: 2px 0 0; }      /* in the log, under the distance: the line itself never wraps */
.pass-ring { position: absolute; left: -18%; top: -45%; width: 136%; height: 190%; overflow: visible; fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; pointer-events: none; }
/* this week's sky: three things to look up for, ticked as each new flight is recorded */
.week { margin: 0 0 var(--s-5); padding: var(--s-4); border: 1px solid var(--rule); border-radius: var(--r-lg); }
.week-asks { display: grid; gap: var(--s-2); margin: var(--s-2) 0; padding: 0; list-style: none; }
.week-asks li { display: flex; align-items: center; gap: var(--s-2); color: var(--text-2); }
.week-asks li.is-done { color: var(--text); }
.week-tick { flex: none; width: 14px; height: 14px; border: 1.5px solid currentColor; border-radius: 50%; }
.is-done .week-tick { border-color: var(--accent); background: var(--accent); }
/* where they fly from: one chip a region; a region not yet seen stays faint until its first */
.life-where .is-none { opacity: .5; }
/* away from home: what you are visiting, and the way back */
.away { display: grid; gap: var(--s-2); justify-items: start; }
.away-says { margin: 0; }
/* the year, overhead: an entry on Today, and the cards side by side in a sheet, one screen wide each */
.recap-entry { display: grid; gap: var(--s-1); width: 100%; margin: 0 0 var(--s-5); padding: var(--s-4); border: 1px solid var(--rule); border-radius: var(--r-lg); background: var(--surface, var(--bg)); color: inherit; text-align: left; font: inherit; cursor: pointer; }
@media (prefers-reduced-motion: no-preference) {
  .recap-entry { transition: transform var(--d1) var(--ease-out); }
  .recap-entry:active { transform: scale(.98); }
  /* a year's card settles in line by line, once; the recap is seen rarely, so it may */
  .rc-card > * { opacity: 0; transform: translateY(6px); transition: opacity var(--d2) var(--ease-out), transform var(--d2) var(--ease-out); }
  .rc-card.is-in > * { opacity: 1; transform: none; }
  .rc-card.is-in > :nth-child(2) { transition-delay: 40ms; }
  .rc-card.is-in > :nth-child(3) { transition-delay: 90ms; }
}
.rc-at { margin: 0; text-align: center; font-variant-numeric: tabular-nums; }
.rc-nav { display: flex; align-items: center; justify-content: center; gap: var(--s-3); }
.rc-step:disabled { opacity: .35; cursor: default; }
.rc-step--prev svg { transform: rotate(90deg); }
.rc-step--next svg { transform: rotate(-90deg); }
.sync-acts { display: grid; gap: var(--s-2); width: 100%; }
.sync-acts .btn { width: 100%; }
.rc { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; gap: var(--s-4); overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; }
.rc::-webkit-scrollbar { display: none; }
.rc-card { scroll-snap-align: start; display: grid; align-content: start; gap: var(--s-3); min-height: 52dvh; padding: var(--s-4); border-radius: var(--r-lg); background: var(--bg-2, rgb(3 22 44 / .04)); }
.rc-n { display: inline-block; font-variant-numeric: tabular-nums; }
.rc-art img, .rc-art svg { display: block; width: 100%; height: auto; }
.rc-dial { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-2); margin: 0; padding: 0; list-style: none; }
.rc-dial li { display: grid; justify-items: center; gap: var(--s-1); padding: var(--s-2) 0; border-radius: var(--r-md, 8px); opacity: .45; }
.rc-dial li.is-on { opacity: 1; background: rgb(3 22 44 / .05); }
.rc-dial img { width: 100%; height: auto; }
.rc-medals { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-3); margin: 0; padding: 0; list-style: none; text-align: center; }
.medal-plate { position: relative; height: 168px; margin: 0 calc(-1 * var(--s-5)) 0 0; overflow: hidden; }
.medal-plate .medal { position: absolute; left: 0; top: 0; width: 168px; height: 168px; }
.medal-plate .medal-paint { position: absolute; left: calc(168px * .8); top: 0; width: max(62%, calc(100% - 168px * .88 + var(--s-5))); height: 100%; object-fit: cover; object-position: left center; background: var(--sunk); border-radius: var(--r-sm); }
.medal-paint.is-in { background: none; }
.medal-plate[data-shape="square"] .medal-paint { left: calc(168px * .88); }      /* tucked under a square; a round or shield sticker leaves no wedge at .8 */
.medal-stamp { margin: calc(-1 * var(--s-2)) 0 0; font-size: var(--t-cap); font-weight: 600; letter-spacing: .11em; text-transform: uppercase; color: var(--text-2); font-variant-numeric: tabular-nums; }
.medal-ask { margin: 0; font-size: var(--t-lead); line-height: 1.3; text-wrap: pretty; }
.medal-tiers { list-style: none; margin: 0; padding: 0; }
.medal-tiers li, .medal-line { display: flex; justify-content: space-between; align-items: center; gap: var(--s-3); padding: var(--s-2) 0; border-top: 1px solid var(--rule); }
.medal-tiers li > :first-child { white-space: nowrap; }
.medal-when { color: var(--text-2); font-variant-numeric: tabular-nums; text-align: right; }
.medal-ticks { display: flex; flex: 1; gap: 3px; max-width: 160px; }
.medal-ticks i { flex: 1; height: 12px; border-radius: var(--r-pill); background: var(--edge); }
.medal-ticks .is-on { background: var(--accent); }
.medal-so { margin: 0; color: var(--text-2); }
.medal-by p { margin: var(--s-1) 0 0; }
.medal-by .btn-ghost { border: 1px solid var(--rule-2); }
@media (max-width: 359px) { .medal-plate { margin-right: calc(-1 * var(--s-4)); } }

/* sheet */
.sheet { width: calc(100% - 16px); max-width: 520px; max-height: 90dvh; margin: auto auto max(8px, env(safe-area-inset-bottom)); padding: 0; border: 0; border-radius: var(--r-lg); background: var(--bg); color: var(--text); box-shadow: var(--shadow-sheet); overflow: auto; overscroll-behavior: contain; }
.sheet[open] { animation: sheet-in 340ms var(--ease-drawer); }
.sheet::backdrop { background: var(--scrim); }
.sheet[open]::backdrop { animation: fade-in 240ms var(--ease-out); }
/* closing, the sheet goes back the way it came, quicker than it arrived, and the page behind it comes back with it.
   A browser that can't hold a closing dialog on screen drops these two lines and simply closes it */
.sheet { transition: opacity 220ms var(--ease-drawer), transform 220ms var(--ease-drawer), overlay 220ms allow-discrete, display 220ms allow-discrete; }
.sheet::backdrop { transition: opacity 220ms var(--ease-drawer), overlay 220ms allow-discrete, display 220ms allow-discrete; }
.sheet:not([open]) { opacity: 0; transform: translateY(20px); pointer-events: none; }
.sheet:not([open])::backdrop { opacity: 0; }
@keyframes sheet-in { from { opacity: 0; transform: translateY(28px); } }
@media (max-width: 639px) and (prefers-reduced-motion: no-preference) {
  .sheet[open] { animation: sheet-up 300ms var(--ease-drawer); }
  .sheet:not([open]) { opacity: 1; transform: translateY(calc(100% + 16px)); }
}
@keyframes sheet-up { from { transform: translateY(calc(100% + 16px)); } }
@keyframes fade-in { from { opacity: 0; } }
@media (min-width: 640px) { .sheet { margin: auto; } }
.sheet-in { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-4); padding: var(--s-4) var(--s-5) var(--s-5); }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); }
/* the title and Close stay at the top of a long sheet, on the sheet's own paper, under a grabber that says it is a sheet */
.sheet-head { position: sticky; top: 0; z-index: 3; margin: calc(var(--s-4) * -1) calc(var(--s-5) * -1) 0; padding: var(--s-5) var(--s-5) var(--s-2); background: var(--bg); }
.sheet-head::before { content: ""; position: absolute; top: 6px; left: 50%; width: 36px; height: 5px; margin-left: -18px; border-radius: 3px; background: var(--rule-2); }
/* rows scrolling up fade under the title instead of being sliced at its edge */
.sheet-head::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: var(--s-4); background: linear-gradient(var(--bg), transparent); pointer-events: none; }
.sheet-head h2 { font-size: var(--t-lead); font-weight: 500; letter-spacing: -.005em; }
.sheet-acts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-2); margin-top: var(--s-2); }
.sheet-acts > :only-child { grid-column: 1 / -1; }
/* show a friend: the card as it is sent, 4:5, on the sky's own blue while it comes */
.share-card { aspect-ratio: 4 / 5; margin: 0 0 var(--s-3); border-radius: var(--r-md); overflow: hidden; background: #0B8FD0; }      /* the frame's sky, as the card */
.share-card img { display: block; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 250ms var(--ease); }
.share-card img.is-in { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .share-card img { transition: none; } }
/* while the card is drawn the button says so, dimmed, with a turning ring */
.share-sheet .btn[aria-busy="true"]:disabled { opacity: .62; }
.spin { width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin 800ms linear infinite; }
.btn:not([aria-busy="true"]) .spin { display: none; }
@keyframes spin { to { transform: rotate(1turn); } }
@media (prefers-reduced-motion: reduce) { .spin { animation-duration: 2400ms; } }
.share-sheet .btn-primary { margin-top: var(--s-3); }
.share-say:empty { display: none; }
.share-url { display: block; margin-top: var(--s-2); user-select: all; -webkit-user-select: all; overflow-wrap: anywhere; color: var(--text); }
.sheet .btn-ghost { width: 100%; justify-content: flex-start; }
.sheet-acts .btn-ghost { padding: 0 var(--s-3); justify-content: center; }
.sheet .seg { margin: 0; }
/* settings: a line of who and where, then small-labelled groups of one-line rows. A row is its name, what it is set
   to now, and a chevron; it opens in place, one at a time, with no height animation (the chevron turns, and what it
   holds fades in: MOTION, M10). A rare action is a quiet underlined word under its group's buttons, never a third button */
.who { display: grid; gap: 2px; padding-bottom: var(--s-2); }
.who-name { margin: 0; font-size: var(--t-body); font-weight: 600; }
.who .fine { margin: 0; }
.set-quiet { margin: 0; }
.set-quiet .btn-quiet { margin-left: calc(var(--s-3) * -1); }
.set .eyebrow { margin-bottom: var(--s-1); }
.sheet .more { margin-top: 0; }
.sheet .more summary { min-height: 44px; padding: 0 2px; transition: transform var(--d1) var(--ease-out), opacity var(--d1) var(--ease-out); }
.sheet .more summary:active { transform: scale(.98); }
.sheet .more .val { font-variant-numeric: tabular-nums; }
.more-in { display: grid; gap: var(--s-3); padding: var(--s-1) 0 var(--s-4); }
.more-in > *, .more-in .faces, .more-in .shows { margin: 0; }
.more-in form { display: contents; }
/* the field note's answers, two to a line: label over answer, the whole cell the button */
.sky { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--s-4); }
.sky-row { position: relative; min-height: 52px; padding: var(--s-2) 0; border-top: 1px solid var(--rule); transition: transform var(--d1) var(--ease-out), opacity var(--d1) var(--ease-out); }
.sky-row[data-row="watching"] { grid-column: 1 / -1; }
.sky-row dt { font-size: var(--t-cap); line-height: 1.3; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); }
.sky-row dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.sky-row .note-edit { min-height: 44px; padding: 2px 0 0; text-decoration: none; }      /* the whole cell is the target; the answer reads as an answer, not a link */
/* a quiet right chevron, like the rows above it: each answer opens its question again */
.sky-row .note-edit { display: flex; align-items: center; justify-content: space-between; gap: var(--s-2); }
.sky-row .note-edit svg { flex: none; transform: rotate(-90deg); color: var(--text-2); }
.sky-row .note-edit:focus-visible::after { outline-offset: var(--ring-inset); }
.sky-row:has(.note-edit:active) { transform: scale(.98); opacity: .64; }
.sheet-foot { display: grid; justify-items: start; }
.sheet-foot .btn-quiet { margin-left: calc(var(--s-3) * -1); }
.sheet p { line-height: 1.45; }
@media (max-width: 359px) { .sheet-in, .note-card { padding-left: var(--s-4); padding-right: var(--s-4); } .sheet-head { margin-left: calc(var(--s-4) * -1); margin-right: calc(var(--s-4) * -1); padding-left: var(--s-4); padding-right: var(--s-4); } }
/* a label belongs to the thing under it: 8 px to its own block, the sheet's 16 and 8 more to the one before */
.pair-step { display: grid; gap: var(--s-2); }
.pair-step + .pair-step { margin-top: var(--s-2); }
.pair-step .eyebrow, .pair-step .help { margin: 0; }
.pair-step ol.help { padding-left: 1.3em; }
.copy-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: var(--s-2); padding: 6px 6px 6px var(--s-4); background: var(--surface); border-radius: var(--r-md); box-shadow: var(--key); }
.copy-row .btn { border-radius: var(--r-sm); min-width: 6.75rem; }
.copy-row code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: var(--t-sm); line-height: 1.4; overflow-wrap: break-word; hyphens: none; }
.danger-armed { color: var(--text) !important; text-decoration-color: currentColor !important; font-weight: 500; }

/* toast */
.toast { position: fixed; left: 50%; bottom: calc(max(14px, env(safe-area-inset-bottom)) + 76px); z-index: 40; transform: translateX(-50%); width: max-content; max-width: min(420px, calc(100% - 32px)); padding: var(--s-3) var(--s-4); border-radius: var(--r-md); background: var(--ink); color: var(--on-ink); font-size: var(--t-sm); line-height: 1.4; box-shadow: var(--shadow-toast); opacity: 1; transition: opacity 400ms ease, transform 400ms ease; }
/* a transition, not keyframes, so a toast replaced mid-arrival leaves from wherever it got to */
@starting-style { .toast { opacity: 0; transform: translate(-50%, 10px); } }
/* leaving is the system tidying up, so it is quicker than arriving */
/* pull to refresh: a small ink pill that follows the finger down from the top edge, then rests while it asks */
.pull { position: fixed; left: 50%; top: env(safe-area-inset-top); z-index: 70; padding: var(--s-2) var(--s-4); border-radius: 999px; background: var(--ink); color: var(--on-ink); font-size: var(--t-sm); line-height: 1.4; white-space: nowrap; box-shadow: var(--shadow-toast); pointer-events: none; opacity: 0; transform: translate(-50%, calc(var(--pull, 0px) - 140%)); transition: transform 220ms var(--ease-out), opacity 160ms var(--ease-out); }
.pull.is-in { opacity: 1; }
.pull.is-drag { transition: opacity 160ms var(--ease-out); }
.toast.out { opacity: 0; transform: translate(-50%, 6px); transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out); }

/* KIOSK: an old tablet becomes the frame */
/* the glass is paper in both themes, so its controls and focus ring are glass colors, not night ones */
/* added to a home screen there is no browser bar, so the frame takes the largest viewport: after a turn iOS can
   leave a fixed box short of the bottom edge. And it can open the app with a window one status bar shorter than
   the screen, which no viewport unit sees: app.js measures the screen itself (--screen-w, --screen-h) and the frame
   takes that. The page beneath wears the frame's colour for the same reason. */
@media (display-mode: standalone) { @supports (height: 100lvh) { .kiosk { height: 100lvh; bottom: auto; } } }
/* --screen-h is only ever set on an iPhone or iPad opened from its home screen */
@supports (height: 100lvh) { html[style*="--screen-h"] .kiosk { height: max(100lvh, var(--screen-h, 0px)); width: max(100%, var(--screen-w, 0px)); bottom: auto; right: auto; } }
html.is-framed, html.is-framed body { background: var(--frame-bg, var(--bg)); }
.kiosk { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; background: var(--glass-paper); --focus: var(--glass-sky); --sa-t: env(safe-area-inset-top, 0px); --sa-r: env(safe-area-inset-right, 0px); --sa-b: env(safe-area-inset-bottom, 0px); --sa-l: env(safe-area-inset-left, 0px); }
/* the background runs under the status bar and the home indicator; only words and readings are held clear of them.
   A frame drawn sideways (turned a quarter clockwise) has its top at the screen's right edge and its left at the top */
.kiosk.is-turned { --sa-t: env(safe-area-inset-right, 0px); --sa-r: env(safe-area-inset-bottom, 0px); --sa-b: env(safe-area-inset-left, 0px); --sa-l: env(safe-area-inset-top, 0px); }
/* the six-ink drawing, full screen in the app, keeps clear of a notch and a home indicator */
.kiosk--app { --kr: calc(var(--sa-t) + var(--sa-b)); padding-top: var(--sa-t); padding-bottom: var(--sa-b); }
/* Traffic on a phone is a page of panels, not a picture: its foot ends clear of the dock (56 px on its inset, and air) */
.kiosk--app:has(.tf):not(.is-turned) { --sa-b: calc(64px + max(14px, env(safe-area-inset-bottom))); }
.kiosk-glass { position: relative; width: min(100vw, calc((100vh - var(--kr, 0px)) * 5 / 3)); width: min(100vw, calc((100dvh - var(--kr, 0px)) * 5 / 3)); aspect-ratio: 5 / 3; }
.kiosk-glass svg { display: block; width: 100%; height: 100%; }
/* The frame in the app has no button of its own. A tap on the picture (or Escape, or Tab) fades the app's own
   controls in over it for a few seconds: the dock, and the settings sliders in the corner. Opacity only. */
html.is-framed .dock, html.is-framed .bar [data-act="settings"] { z-index: 61; opacity: 0; pointer-events: none; transition: opacity var(--d2) var(--ease); }
/* the bar itself steps aside: only its settings button comes up over the picture */
html.is-framed .bar { z-index: 61; background: none; border-color: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; pointer-events: none; }
html.is-framed .bar > :not([data-act="settings"]) { visibility: hidden; }
html.is-framed .bar [data-act="settings"] { position: fixed; top: calc(8px + env(safe-area-inset-top, 0px)); right: max(14px, env(safe-area-inset-right)); border-radius: var(--r-pill); background: var(--glass-key); color: var(--glass-key-text); ; box-shadow: 0 0 0 1px rgb(3 22 44 / .16), 0 2px 10px rgb(3 22 44 / .18)}
html.is-framed.show-ui .dock, html.is-framed.show-ui .bar [data-act="settings"], html.is-framed .dock:focus-within, html.is-framed .bar [data-act="settings"]:focus-visible { opacity: 1; pointer-events: auto; }
/* while the dock is up, what is written at the picture's foot steps up clear of it (the dock: 56 px tall, on its inset) */
html.is-framed.show-ui .kiosk:not(.is-turned) { --lift: calc(64px + max(14px, env(safe-area-inset-bottom))); }
.kiosk .il-wx, .kiosk .il-facts, .kiosk .ms-colophon, .kiosk .ms-card { translate: 0 calc(var(--lift, 0px) * -1); transition: translate var(--d2) var(--ease); }
/* said once: how to get to everything else */
.kiosk-hint { position: absolute; z-index: 3; left: 50%; bottom: calc(max(14px, env(safe-area-inset-bottom)) + 14px); transform: translateX(-50%); margin: 0; padding: var(--s-2) var(--s-4); width: max-content; max-width: calc(100% - 32px); border-radius: var(--r-pill); background: var(--glass-key); color: var(--glass-key-text); font-size: var(--t-sm); text-align: center; opacity: 0; pointer-events: none; transition: opacity var(--d2) var(--ease); }
.kiosk-hint.is-on { opacity: 1; }
/* the weather is written at the foot of the picture, so the line is said at its head instead */
.kiosk:has(.il-wx) .kiosk-hint { bottom: auto; top: calc(env(safe-area-inset-top, 0px) + 14px); }
.kiosk-hint:empty { display: none; }
@media (prefers-reduced-motion: reduce) { html.is-framed .dock, html.is-framed .bar [data-act="settings"], .kiosk-hint { transition: none; } .kiosk .il-wx, .kiosk .il-facts, .kiosk .ms-colophon, .kiosk .ms-card { transition: none; } }
/* A phone being turned: the aircraft and the words go at once, the frame is set out for the new screen behind the
   sky, and they come back once, in a fifth of a second. Opacity only. */
.kiosk--il .il > * { transition: opacity 200ms var(--ease-out); }
.kiosk.is-turning .il > * { opacity: 0; transition: none; }
@media (prefers-reduced-motion: reduce) { .kiosk--il .il > * { transition: none; } }
.kiosk-wait { position: absolute; inset: 0; display: grid; place-items: center; color: var(--glass-text-2); font-size: var(--t-lead); }
html.is-kiosk body::before, html.is-kiosk body::after { display: none; }
html.is-kiosk, html.is-kiosk body { background: var(--glass-paper); overflow: hidden; }
/* The wall's one key, shown only for a few seconds after a tap. Opacity only; hidden, it can be neither tapped nor tabbed to */
.wall-keys { position: fixed; z-index: 61; top: calc(8px + env(safe-area-inset-top, 0px)); right: max(14px, env(safe-area-inset-right)); display: flex; flex-direction: row-reverse; align-items: center; gap: var(--s-2); --focus: var(--glass-sky); opacity: 0; visibility: hidden; transition: opacity var(--d2) var(--ease), visibility 0s linear var(--d2); }
.wall-keys.is-on { opacity: 1; visibility: visible; transition: opacity var(--d2) var(--ease); }
.wall-keys .btn { background: var(--glass-key); color: var(--glass-key-text); border-radius: var(--r-pill); }
.wall-say { align-self: stretch; display: flex; align-items: center; margin: 0; padding: 0 var(--s-4); border-radius: var(--r-pill); background: var(--glass-key); color: var(--glass-key-text); font-size: var(--t-sm); }
.wall-say:empty { display: none; }
@media (prefers-reduced-motion: reduce) { .wall-keys { transition: none; } }

/* the app itself never flashes: a new view or a new sky crossfades in, opacity only */
.view-old { position: absolute; top: 0; left: 0; right: 0; padding: inherit; pointer-events: none; animation: fade-out var(--d2) var(--ease) forwards; }
.view.is-fading > :not(.view-old) { animation: fade-in var(--d2) var(--ease) both; }
@keyframes fade-out { to { opacity: 0; } }
/* opening your sky for the first time: the app fades in over its own background, so night never goes bright */
.is-revealing { animation: fade-in 360ms var(--ease-out) both; }

/* e-ink refreshes, only where the picture IS the glass: the Frame view's glass and the full-screen frame */
.ink-flash { position: absolute; inset: 0; z-index: 5; pointer-events: none; border-radius: inherit; }
.ink-flash--quick { animation: ink-quick 420ms linear forwards; }
.ink-flash--full { animation: ink-full 1150ms linear forwards; }
/* the swap happens in app.js at the moment each flash is fully opaque: quick 40%, full 47% */
@keyframes ink-quick { 0% { background: var(--glass-ink); opacity: .92; } 38% { background: var(--glass-ink); opacity: .92; } 40% { background: var(--glass-paper); opacity: 1; } 100% { background: var(--glass-paper); opacity: 0; } }
@keyframes ink-full {
  0%, 17% { background: var(--glass-ink); opacity: 1; }
  18%, 35% { background: var(--glass-paper); opacity: 1; }
  36%, 46% { background: var(--glass-sky); opacity: 1; }
  47% { background: var(--glass-paper); opacity: 1; }
  100% { background: var(--glass-paper); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; scroll-behavior: auto !important; }
  /* gentler, not gone: things that arrive still fade in, they just don't travel */
  .sheet[open], .sheet[open]::backdrop, .toast:not(.out), .place-card, .note-row.is-fresh dd { animation-name: fade-in !important; animation-duration: 150ms !important; animation-timing-function: ease !important; }
}

/* names in capitals are tracked like every other caps run (Butterick) */
.log-type, .log-route, .place-sub, .note-row[data-row="station"] dd { letter-spacing: .07em; }

/* caps inside running text, and readings that are codes, get the same light tracking as every caps run */
.caps-in { letter-spacing: .06em; }
.mv, .log-close { letter-spacing: .03em; }
/* small phones: the time sits above its row, so names and types get the full width */
@media (max-width: 359px) {
  .log-row { grid-template-columns: 1fr auto; grid-template-areas: "time time" "plane plane" "what close"; }
}
/* status messages never block a tap */
.toast { pointer-events: none; }

/* THE FIELD NOTE, FULL SCREEN on an upright phone: the written card, full bleed, on the glass's own paper and ink
   whatever the app's theme (app.js, noteKiosk). Sideways and on a wall the six-ink glass is shown as it always was.

   THE LAW OF THE GRID.
   1. One margin, 16 px, inside the status bar and the home indicator. The paper runs to every edge of the screen.
   2. One type edge: the name, the state, the sentence, the facts, the route line, the numbers and the foot all
      start on the margin, and what is set right ends on the other one.
   3. One rhythm: blocks stand 16 px apart, and every block after the sky opens with a hairline rule.
   4. The drawing alone breaks it. The sky takes all the height the words leave; the aircraft is drawn there at one
      scale, nose on the right margin, large, and one longer than the screen is wide runs off the left edge.
   5. A quiet sky has no drawing, so the hour is the picture: the clock is set large on the margin with the date
      under it, the sky is named at its head, and its sentence stands large on its foot, one margin up.
   6. Between them a quiet sky keeps a ledger of what there is: the day so far, a count and then a row a passage,
      newest first, each opened by a hairline, the time on the type edge and the name on one line down the ledger
      with its type under it; rows are shed from the bottom before anything else gives way, and a last line counts
      the ones not shown. One to three rows are set a size larger. Under the ledger, or alone, the air: large, a
      fact a line. The sentence is one size in every state. No sky is left open for more than an eighth of the
      screen: the band is that much shorter, the day's line and the foot keep the bottom edge on the same rhythm,
      and the height between is one margin of paper.
   No motion: nothing here fades, gilds or moves. */
.kiosk--note { place-items: stretch; padding: var(--sa-t) var(--sa-r) var(--sa-b) var(--sa-l); background: var(--glass-paper);
  --bg: var(--p-paper-100); --surface: var(--glass-paper); --text: var(--glass-ink); --text-2: var(--p-ink-500); --text-3: var(--p-ink-400); --rule: rgba(31, 30, 34, .13); --rule-2: rgba(31, 30, 34, .34);
  --accent: var(--p-sky-600); --band: var(--p-sky-400); --echo-1: var(--p-sky-200); --echo-2: var(--p-sky-300); --gone-ink: var(--p-sky-800); --home: var(--p-red-500); --band-grain: rgba(255, 255, 255, .16); color: var(--text); }
.kiosk--note *, .kiosk--note *::before, .kiosk--note *::after { animation: none !important; transition: none !important; }
.kiosk--note .kiosk-glass { width: 100%; height: 100%; aspect-ratio: auto; min-height: 0; }
.kiosk--note .pk { display: flex; flex-direction: column; max-width: none; height: 100%; margin: 0; overflow: hidden; background: none; box-shadow: none; border-radius: 0; text-align: left; }
.kiosk--note .pk > * { flex: none; }
.kiosk--note .pk [hidden] { display: none; }
.kiosk--note .pk .pk-band { flex: 1 0 auto; min-height: 0; }
.kiosk--note .pk-plane { align-self: flex-end; margin-left: 0; width: calc(var(--bw) * 100cqw / 180); }
.kiosk--note .pk--small .pk-plane { width: calc(var(--bw) * 100cqw / 280); padding-top: var(--s-2); }
.kiosk--note .pk--small .pk-band { padding-bottom: var(--s-4); }
.kiosk--note .pk-facts, .kiosk--note .pk-datum { border-top: 1px solid var(--rule); padding-top: var(--s-4); padding-bottom: var(--s-4); }
.kiosk--note .pk-facts + .pk-datum { border-top: 0; padding-top: 0; }
.kiosk--note .pk--quiet .pk-head--clock { flex-basis: 100%; font-size: 17vw; line-height: 1; white-space: nowrap; }
.kiosk--note .pk--quiet .pk-band { padding-bottom: var(--s-4); }
.kiosk--note .pk--quiet .pk-when { flex-basis: 100%; text-align: left; }
.kiosk--note .pk-ledger, .kiosk--note .pk-air { margin: var(--s-2) 0 var(--s-4); }
.kiosk--note .pk-ledger-head { margin: 0 0 var(--s-2); font-size: var(--t-lead); font-weight: 500; line-height: 1.24; }
.kiosk--note .pk-ledger ol { margin: 0; padding: 0; list-style: none; }
.kiosk--note .pk-ledger li { display: grid; grid-template-columns: 4.6rem minmax(0, 1fr); column-gap: var(--s-2); padding: 6px 0; border-top: 1px solid var(--rule-2); }
.kiosk--note .pk-ledger :is(time, .lg-name) { font-size: var(--t-sm); font-weight: 600; line-height: 1.3; font-variant-numeric: tabular-nums; }
.kiosk--note .lg-name { letter-spacing: .035em; text-transform: uppercase; overflow-wrap: anywhere; }
.kiosk--note .lg-type { grid-column: 2; font-size: var(--t-cap); font-weight: 600; line-height: 1.45; letter-spacing: .11em; text-transform: uppercase; }
.kiosk--note .pk-ledger--few :is(time, .lg-name) { font-size: var(--t-lead); }
.kiosk--note .pk-ledger--few li { grid-template-columns: 5.8rem minmax(0, 1fr); padding: 10px 0; }
.kiosk--note .pk-ledger-more { margin: 0; padding-top: 6px; border-top: 1px solid var(--rule-2); font-size: var(--t-cap); font-weight: 600; line-height: 1.45; letter-spacing: .11em; text-transform: uppercase; white-space: nowrap; }
.kiosk--note .pk--short .pk-datum { margin-top: auto; }
.kiosk--note .pk-air { font-size: 10vw; font-weight: 500; line-height: 1.12; }
.kiosk--note .pk-air span { display: block; text-wrap: balance; }
.kiosk--note .pk--quiet .pk-say { margin-top: auto; font-size: 10vw; line-height: 1.12; max-width: none; }

/* THE ILLUSTRATED FRAME: a painted sky that fills whatever holds it, landscape or portrait. Everything is
   sized from the frame's own short side (--u is a hundredth of it), so the Frame tab's small preview and a
   wall screen are the same picture. A browser without container units falls back to the window's short side.

   THE LAW OF THE GRID. Type keeps it; paint breaks it. app.js (skyLayout) holds both.
   1. One margin, M: 6u, or 24 px where that is more, plus any inset of the screen (.il-safe). No type crosses it.
   2. A caption hangs from M or from its aircraft's nose line. Two captions' edges are the same line or 6u apart or
      more, and captions in a row share a top: none starts a little above or below its neighbour.
   3. The colophon stands on M, bottom left.
   4. Paint alone breaks it. An aircraft's tail or wing tip may leave the picture, and then it leaves by 6u or more;
      otherwise every edge of it is 2u inside the frame or more. It is never tangent to the frame, on its edge or a
      little either side of it. A nose never leaves the picture, and nothing is painted under a status bar.
      The one exception: where clearing an edge would cost the picture scale, the edge stays (data-tangent). */
.glass--il { aspect-ratio: 16 / 9; background: #0B8FD0; }
.glass--il.glass--portrait { aspect-ratio: 4 / 5; }
.seg--2 { grid-template-columns: repeat(2, 1fr); width: min(100%, 280px); margin: 0; }
.il { --u: 1vmin; --il-min: 0px; --il-name: 0px; --il-ink: #FBF4E4; position: relative; width: 100%; height: 100%; overflow: hidden; container-type: size; background: #0B8FD0 center / cover no-repeat; color: var(--il-ink); text-align: left; line-height: 1.2; }
.il.is-night { background-color: #050E1B; }
/* the page's paper grain multiplies to nothing on a full-bleed sky, so the picture carries its own: overlay keeps it alive by day and by night, over everything in it (aircraft, moon, type) so the whole canvas is one printed sheet */
.il::after { content: ""; position: absolute; inset: 0; z-index: 9; pointer-events: none; opacity: .85; mix-blend-mode: overlay;
  background-size: 270px 270px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
@supports (width: 1cqmin) { .il > * { --u: 1cqmin; } }
.il p, .il ol, .il dl, .il dd { margin: 0; padding: 0; }
.il-top { position: absolute; top: calc(var(--u) * 7); left: calc(var(--u) * 7); max-width: 54%; display: grid; gap: calc(var(--u) * 1.8); }
.il-status { display: flex; flex-wrap: wrap; align-items: center; gap: .2em 1.4em; font-size: max(calc(var(--u) * 2.5), var(--il-min)); font-weight: 500; letter-spacing: .14em; text-transform: uppercase; }
.il-status span { white-space: nowrap; }
.il-status .star { width: 1.1em; height: 1.1em; margin-right: .4em; vertical-align: -.15em; fill: currentColor; }
.il-head { font-size: calc(var(--u) * 10.5); font-weight: 500; line-height: .98; letter-spacing: .02em; text-transform: uppercase; text-wrap: balance; }
/* a long name is set smaller and held to two lines, so the note under it stays clear of the cloud */
.il-head { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.il .il-head--long { font-size: calc(var(--u) * 7.2); }
.il-head small { margin-left: .35em; font-size: max(.3em, var(--il-min)); font-weight: 500; letter-spacing: .14em; }
.il-type { font-size: max(calc(var(--u) * 2.9), var(--il-min)); font-weight: 500; letter-spacing: .12em; text-transform: uppercase; }
.il-say { max-width: 24em; font-size: calc(var(--u) * 3.5); line-height: 1.32; text-wrap: pretty; }
.il-day { list-style: none; display: grid; gap: calc(var(--u) * 1.4); font-size: calc(var(--u) * 3.4); letter-spacing: .04em; }
.il-day li { display: grid; grid-template-columns: 5.2em 1fr; }
.il-day span:first-child { opacity: .8; font-variant-numeric: tabular-nums; }
.il-plane { position: absolute; left: 50%; top: 59%; width: min(54%, calc(var(--u) * 92)); transform: translate(-50%, -50%); display: flex; justify-content: center; color: var(--il-ink); }
.il-plane .po-plane { margin: 0; padding: 0; filter: drop-shadow(calc(var(--u) * 1.3) calc(var(--u) * 1.7) 0 rgba(3, 22, 44, .26)); }
.il .il-plane > svg { width: 60% !important; height: auto; margin: 0 !important; }
.il-facts { position: absolute; right: calc(var(--u) * 7); bottom: calc(var(--u) * 6); display: flex; gap: calc(var(--u) * 5); text-align: right; }
.il-facts dt { font-size: max(calc(var(--u) * 2.1), var(--il-min)); font-weight: 500; letter-spacing: .14em; }
.il-facts dd { font-size: calc(var(--u) * 5.2); font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
.il-facts small { margin-left: .3em; font-size: max(.42em, var(--il-min)); font-weight: 500; letter-spacing: .1em; }
/* the moon is part of the sky: behind every aircraft, and no type touches it */
.il .il-moon { position: absolute; z-index: 0; top: calc(var(--u) * 8); right: 31%; width: calc(var(--u) * 17); height: calc(var(--u) * 17); filter: drop-shadow(0 0 calc(var(--u) * 2.5) rgba(246, 234, 210, .3)); }
/* the dark side is the same photograph as earthshine, matched to the dark limb of Lee's crescent */
.il-moon-dark { fill: #05101A; }
.il-moon-shine { opacity: .33; }
.il--portrait .il-top { top: calc(var(--u) * 8); left: calc(var(--u) * 7); max-width: 56%; }
.il--portrait .il-head { font-size: calc(var(--u) * 8); }
.il--portrait .il-head--long { font-size: calc(var(--u) * 6.4); }
.il--portrait .il-status { font-size: max(calc(var(--u) * 2.9), var(--il-min)); }
.il--portrait .il-type { font-size: calc(var(--u) * 3.4); }
.il--portrait .il-say { font-size: calc(var(--u) * 3.8); }
.il--portrait .il-day { font-size: calc(var(--u) * 4); }
.il--portrait .il-plane { left: 48%; top: 59%; width: 88%; }
.il--portrait .il-facts { right: calc(var(--u) * 7); bottom: calc(var(--u) * 5); flex-direction: column; gap: calc(var(--u) * 2); }
.il--portrait .il-facts dd { font-size: calc(var(--u) * 5.4); }
.il--portrait .il-facts dt { font-size: max(calc(var(--u) * 2.6), var(--il-min)); }
.il--portrait .il-moon { top: 36%; right: 9%; width: calc(var(--u) * 19); height: calc(var(--u) * 19); }
/* with aircraft in an upright sky the moon hangs high on the left, clear of the cloud, where a wing may cross it */
.il--sky.il--portrait .il-moon { top: calc(14% - var(--u) * 8); right: calc(70% - var(--u) * 8); width: calc(var(--u) * 16); height: calc(var(--u) * 16); }
.il--sky.il--tall .il-moon { top: calc(13% - var(--u) * 8); right: calc(74% - var(--u) * 8); }
/* Up to three aircraft at once, each a hero: its painting, and standing on its nose one caption of three lines at
   most (name, type, one fact). app.js (fitSky) sets them out, all at one true scale. Nothing on the picture is a
   plate, a rule or a fill: one face, one weight, two sizes. Small type on the open sky is navy by day (4.75:1);
   cream there is 3.3:1, so cream is for the names alone, which are large. */
.il { --il-spec: #03162C; }
.il.is-night { --il-spec: #F6EAD2; }
/* the type margin: paint crosses it, type never does */
.il-safe { position: absolute; inset: max(calc(var(--u) * 6), var(--il-name)); visibility: hidden; pointer-events: none; }
.il-fly { position: absolute; z-index: 1; margin: 0; width: calc(var(--u) * 40); color: var(--il-ink); }
.il-fly img, .il .il-fly svg { display: block; width: 100% !important; height: auto; margin: 0 !important; }
.il-fly--plan.is-west svg { transform: scaleX(-1); }
.il-fly--plan .pf-ink { fill: var(--il-ink); }
.il-fly--plan .pf-gap { stroke: transparent; }
.il-fly--plan .pf-echo { display: none; }
/* THE CAPTION. Flying west it is flush left on the nose line, flying east flush right; nothing covers it */
.il-tag { position: absolute; z-index: 5; width: max-content; max-width: calc(var(--u) * 72); }
/* flush right, the space after a name's last letter hangs past the line, so its ink stands on the line and it breaks where it did flush left */
.il-tag--east { text-align: right; }
.il-tag--east .il-call { margin-right: -.035em; }
.il-call { font-size: max(calc(var(--u) * 4.4), var(--il-name)); font-weight: 500; line-height: 1.02; letter-spacing: .035em; text-transform: uppercase; text-wrap: balance; }
/* a name breaks between words; app.js lets one word split only when it is wider than the type box at the name floor */
.il-call.is-broken { overflow-wrap: anywhere; }
.il-kind, .il-read, .il-wx { font-size: max(calc(var(--u) * 2.2), var(--il-min)); font-weight: 500; line-height: 1.45; letter-spacing: .12em; text-transform: uppercase; font-variant-numeric: tabular-nums; color: var(--il-spec); }
.il-kind, .il-read, .il-wx-say, .il-wx-line { display: flex; flex-wrap: wrap; gap: 0 1.4em; }
/* a line breaks only between two whole facts, and with its route beside it not at all: app.js drops the route instead */
.il .il-kind { margin-top: max(calc(var(--u) * 1.2), calc(var(--il-min) * 5 / 11)); }
.il-tag--east .il-kind, .il-tag--east .il-read { justify-content: flex-end; }
.il-kind span, .il-fact { flex: none; white-space: nowrap; }
.il-kind .il-model { max-width: 100%; white-space: normal; text-wrap: balance; }
.il .il-kind .star { display: inline-block; width: 1.1em; height: 1.1em; margin-right: .4em; vertical-align: -.15em; fill: currentColor; }
/* the two glyphs: the angle that leads where to look, the arrow that leads the wind. A 20 grid in a 1.15em box */
.il .il-fact svg, .il .il-wx-wind svg { display: inline-block; width: 1.15em; height: 1.15em; margin-right: .45em; vertical-align: -.2em; overflow: visible; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.il .il-fact .f, .il .il-wx .f { fill: currentColor; stroke: none; }
.il .il-fact .il-arrow { width: .6em; height: .75em; margin: 0 0 0 .45em; vertical-align: -.03em; }
/* what a caption gives up when the picture needs the room: the route and the height, then its fact line */
.il-tag--lite .il-route, .il-tag--lite .il-fact--alt, .il-tag--bare .il-route, .il-tag--bare .il-read { display: none; }
/* an aircraft that has gone is painted as a memory */
.il--gone .il-fly { opacity: .78; }
/* THE SPACE STATION, when it is up: sky, behind every aircraft, facing the way it travels; dimmed when the eye cannot
   see it, and then its caption says why (on the type line once the fact line has been cut) */
.il-iss { position: absolute; z-index: 0; margin: 0; width: calc(var(--u) * 30); }
.il-iss img { display: block; width: 100%; height: auto; }
.il-iss.is-west img { transform: scaleX(-1); }
.il-iss.is-dim { opacity: .7; }
.il-tag--iss .il-why, .il-wx-say[hidden] { display: none; }
.il-tag--bare.il-tag--iss .il-why { display: block; }
.il-wx .il-wx-iss span { white-space: normal; }
.il .il-kind.il-quiet, .il .il-quiet + .il-kind { margin-top: 0; }
/* a resting sky's small words are navy by day, as every small word on the open sky is */
.il--rest .il-status, .il--rest .il-say, .il--rest .il-day, .il--rest .il-head small { color: var(--il-spec); }
/* THE COLOPHON, on the low cloud: the date, how many of the sky are painted, the nearest airport's weather. The
   one block of type allowed on a cloud; app.js hangs it from the left type margin and cuts it from the bottom up */
.il-wx { position: absolute; z-index: 5; left: max(calc(var(--u) * 6), var(--il-name)); bottom: max(calc(var(--u) * 6), var(--il-name)); display: grid; max-width: calc(var(--u) * 40); }
.il-wx-say span, .il-wx-line span { white-space: nowrap; }
/* it sits on cloud texture: a soft halo in the opposite ink keeps it legible on cream or on the blue grain */
.il-wx { text-shadow: 0 0 .35em var(--il-halo), 0 0 .8em var(--il-halo); }
.il { --il-halo: #F6EAD2; } .il.is-night { --il-halo: #03162C; }
/* the weather is one line and one mark: where it runs out of cloud, app.js drops cover and visibility, then all of it */
.il .il-wx-line { flex-wrap: nowrap; }
.il-wx-raw { letter-spacing: .05em; overflow-wrap: break-word; }
.il-wx[hidden], .il-wx--short .il-wx-raw, .il-wx--brief .il-wx-raw, .il-wx--brief .il-wx-more, .il-wx--bare .il-wx-raw, .il-wx--bare .il-wx-line { display: none; }
/* the raw report is for a wall: on a phone it wraps to a paragraph and stops being quiet */
@container (max-width: 520px) { .il-wx-raw { display: none; } }
.kiosk--app .il-wx-raw { display: none; }
/* Full screen on a phone, a hundredth of the short side is under four pixels: no text there is set under 11 px.
   A name is never under 24 px, the size at which cream on the day sky (3.3:1) is large text whatever its weight.
   A wall (720 px and up) is unchanged, and so is the Frame tab's small preview, which is a miniature of the picture.
   The Now card's painting is read on a phone too, and keeps the same floors. */
.kiosk .il { --il-min: 11px; --il-name: 24px; }
.pk .il { --il-min: 11px; --il-name: 24px; }
/* full screen: the sky bleeds to every edge; a frame hung the other way from its screen is drawn sideways */
.kiosk--il { padding: 0; background: var(--frame-bg, #050E1B); }
.kiosk--il .kiosk-glass { width: 100%; height: 100%; aspect-ratio: auto; }
.kiosk--il.is-turned .kiosk-glass { position: absolute; top: 50%; left: 50%; width: 100vh; height: 100vw; transform: translate(-50%, -50%) rotate(90deg); }
@supports (width: 1dvh) { .kiosk--il.is-turned .kiosk-glass { width: 100dvh; height: 100dvw; } }
/* the painting bleeds; its words step in from a notch or a home indicator (with no insets these are the plain offsets) */
.kiosk .il-top { top: max(calc(var(--u) * 7), calc(var(--sa-t) + var(--u) * 2)); left: max(calc(var(--u) * 7), calc(var(--sa-l) + var(--u) * 2)); }
.kiosk .il--portrait .il-top { top: max(calc(var(--u) * 8), calc(var(--sa-t) + var(--u) * 2)); }
.kiosk .il-facts { right: max(calc(var(--u) * 7), calc(var(--sa-r) + var(--u) * 2)); bottom: max(calc(var(--u) * 6), calc(var(--sa-b) + var(--u) * 2)); }
.kiosk .il--portrait .il-facts { bottom: max(calc(var(--u) * 5), calc(var(--sa-b) + var(--u) * 2)); }
/* type keeps three u clear of a status bar, an island or a home indicator; aircraft keep two (fitSky reads this box) */
.kiosk .il-safe { top: max(calc(var(--u) * 6), var(--il-name), calc(var(--sa-t) + var(--u) * 3)); right: max(calc(var(--u) * 6), var(--il-name), calc(var(--sa-r) + var(--u) * 3)); bottom: max(calc(var(--u) * 6), var(--il-name), calc(var(--sa-b) + var(--u) * 3)); left: max(calc(var(--u) * 6), var(--il-name), calc(var(--sa-l) + var(--u) * 3)); }
/* the moon never rises under a status bar, and never sinks past a quarter of the way down */
.kiosk .il--sky.il--portrait .il-moon { top: min(max(calc(14% - var(--u) * 8), calc(var(--sa-t) + var(--u) * 3)), calc(24% - var(--u) * 8)); }
.kiosk .il--sky.il--tall .il-moon { top: min(max(calc(13% - var(--u) * 8), calc(var(--sa-t) + var(--u) * 3)), calc(24% - var(--u) * 8)); }

/* THE MAP SHEET: the sighting plotted on a drawn sheet. As with the Illustrated frame, the wall frame is sized from
   its own short side (--u is a hundredth of it); on the Now card --u is 7.5 px (MS_PX in app.js), so one drawing
   serves both. The contours are one seamless tile inked through a mask, so the same file is day and night; the
   window, the neatline and the scale bar are square, the card alone is rounded. Red is home and nothing else.

   THE LAW OF THE GRID. A 4u module, and everything on the sheet stands on it except the plot.
   1. The neatline is 4u in from the sheet's edge. The card is 4u inside the neatline, with 4u of padding all round
      and 2u between its rows. On the Now card the module is 16 px, and 12 px between rows.
   2. Every line of the card starts on the card's type edge: the eyebrow, the name, the sentence, each row's label,
      the first ink of the scale bar. The colophon stands on the neatline's two edges, sheet number left, date right.
   3. A sheet is one box: 16:9 on its side, 4:5 upright; on a phone held upright, the whole screen inside the status
      bar and the home indicator. On a screen no word is under 11 px: the card and the colophon by --ms-min, the
      plot's lettering and the bar's numerals by --ms-t (app.js knows the sheet's size). The Frame tab's preview is
      a picture of the wall, so there the floor is let go. Nothing is clipped: a card or a colophon with no room
      says less, in a fixed order (fitScale in app.js).
   4. The plot alone breaks it. The ring, the track and the spot height go where the survey puts them. */
:root[data-ui="mapsheet"]:not(.is-kiosk) { --bg: var(--ms-sheet); }
.ms { position: relative; background: var(--ms-sheet); color: var(--ms-ink); text-align: left; line-height: 1.2; font-variant-numeric: tabular-nums; }
.ms p, .ms ol, .ms dl, .ms dd, .ms figure, .ms h1 { margin: 0; padding: 0; }
/* the frame keeps its own light: day or night by the sun at the place, whatever the app's theme */
/* On a wall the sheet is one box of exactly 16:9, or 4:5 upright: the largest the screen holds, centred, the rest of the
   screen plain sheet with no contours. Everything on it is sized from that one box, so the ring, the dot and the scale
   bar always share one scale, whatever shape the screen is. Gold follows the frame's own light too. */
.ms-wall { width: 100%; height: 100%; display: grid; place-items: center; overflow: hidden; container-type: size; background: var(--ms-sheet); --gold-band: var(--p-gold-400); --gold-on: var(--p-ink-900); --ms-sheet: var(--p-ms-sheet-day); --ms-contour: var(--p-ms-contour-day); --ms-grid: var(--p-ms-grid-day); --ms-card: var(--p-ms-card-day); --ms-ink: var(--p-ink-900); --ms-ink-2: var(--p-ink-500); --ms-card-ink: var(--p-ink-900); --ms-card-ink-2: var(--p-ink-700); --ms-home: var(--p-red-500); }
/* full screen on a phone: no word under 11 px, and an upright sheet keeps clear of the status bar and the home indicator */
.kiosk .ms { --ms-min: 11px; }
.kiosk .ms-wall--tall { padding: var(--sa-t) var(--sa-r) var(--sa-b) var(--sa-l); }
.ms-wall.is-night { --gold-band: var(--p-brass-500); --ms-sheet: var(--p-ms-sheet-night); --ms-contour: var(--p-ms-contour-night); --ms-grid: var(--p-ms-grid-night); --ms-card: var(--p-ms-card-night); --ms-ink: var(--p-bone-100); --ms-ink-2: var(--p-bone-400); --ms-card-ink: var(--p-bone-100); --ms-card-ink-2: var(--p-bone-400); --ms-home: var(--p-red-400); }
.ms--frame { --u: 1vmin; width: min(100vw, 100vh * 16 / 9); aspect-ratio: 16 / 9; overflow: hidden; container-type: size; }
.ms--frame.ms--portrait { width: min(100vw, 100vh * 4 / 5); aspect-ratio: 4 / 5; }
.ms--frame.ms--tall { width: 100%; height: 100%; aspect-ratio: auto; }
@supports (width: 1cqmin) { .ms--frame { width: min(100cqw, 100cqh * 16 / 9); } .ms--frame.ms--portrait { width: min(100cqw, 100cqh * 4 / 5); } .ms--frame.ms--tall { width: 100%; } .ms--frame > * { --u: 1cqmin; } }
.ms-ground { position: absolute; inset: calc(var(--u) * 4) calc(var(--u) * 4) calc(var(--u) * 9.1); background: var(--ms-contour); -webkit-mask: url(/relief/sheet.svg) 0 0 / calc(var(--u) * 133) repeat; mask: url(/relief/sheet.svg) 0 0 / calc(var(--u) * 133) repeat; }
.ms-plot { display: block; position: absolute; inset: 0; width: 100%; height: 100%; font-weight: 500; }
.ms-neat { fill: none; stroke: var(--ms-ink); stroke-width: .14; }
.ms-grid { fill: var(--ms-grid); }
.ms-ring { fill: none; stroke: var(--ms-ink); stroke-width: .16; stroke-dasharray: 1.8 .8 .01 .8; stroke-linecap: round; }
.ms-sight { stroke: var(--ms-ink); stroke-width: .2; stroke-dasharray: .01 .8; stroke-linecap: round; }
.ms-track { stroke: var(--ms-ink); stroke-width: .5; stroke-linecap: round; }
.ms-ac { fill: var(--ms-ink); stroke: var(--ms-sheet); stroke-width: .3; }
/* gone by: a hollow dot where it was last seen */
.is-gone .ms-ac { fill: var(--ms-sheet); stroke: var(--ms-ink); stroke-width: .34; }
.ms-home path { fill: var(--ms-sheet); stroke: var(--ms-home); stroke-width: .34; stroke-linejoin: round; }
.ms-home circle { fill: var(--ms-home); }
.ms-north path { fill: none; stroke: var(--ms-ink); stroke-width: .16; stroke-linecap: round; stroke-linejoin: round; }
/* a label on the ground gets a paper halo */
.ms [hidden] { display: none !important; }
.ms-lab { font-size: calc(2.3px * var(--ms-t, 1)); font-weight: 600; letter-spacing: .14em; fill: var(--ms-ink); stroke: var(--ms-sheet); stroke-width: .9px; stroke-linejoin: round; paint-order: stroke; }
.ms-lab--ring { font-size: calc(2.1px * var(--ms-t, 1)); font-weight: 500; fill: var(--ms-ink-2); }
.ms-spot { font-size: 5.2px; letter-spacing: .01em; stroke-width: 1.1px; }
.ms-spot-unit { font-size: calc(2.1px * var(--ms-t, 1)); letter-spacing: .12em; }
/* the card */
.ms-card > * { min-width: 0; }
.ms-card { z-index: 1; display: grid; align-content: start; background: var(--ms-card); color: var(--ms-card-ink); border-radius: var(--r-lg); --text: var(--ms-card-ink); --text-2: var(--ms-card-ink-2); --band: var(--ms-card); --ms-rule: color-mix(in srgb, var(--ms-card-ink) 30%, transparent); }
.ms-card.is-rare { background: var(--gold-band); --band: var(--gold-band); --ms-card-ink: var(--gold-on); --ms-card-ink-2: var(--gold-on); }
.ms-eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: .2em 1.2em; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--ms-card-ink-2); }
.ms-eyebrow span { white-space: nowrap; }
.ms-eyebrow .star { display: inline-block; width: 1.1em; height: 1.1em; margin-right: .45em; vertical-align: -.15em; }
/* the plan drawing hangs at the right of the name, under its first line: the name's later lines step around it */
.ms-head { display: flow-root; }
.ms-title { font-weight: 600; overflow-wrap: break-word; line-height: 1; letter-spacing: .02em; text-transform: uppercase; text-wrap: balance; }
.ms-title small { margin-left: .35em; font-size: max(.3em, var(--ms-min, 0px)); font-weight: 500; letter-spacing: .14em; }
.ms .ms-plan { float: right; display: grid; justify-items: center; margin-top: var(--ms-line); shape-outside: inset(var(--ms-line) 0 0 0); }
.ms-plan span { display: block; }
.ms-plan svg { display: block; max-width: none; height: auto; overflow: visible; }
.ms-plan .pf-echo { display: none; }
.ms.is-gone .ms-plan .pf-ink { fill: var(--ms-card-ink); opacity: .5; }
.ms-plan figcaption { font-weight: 500; letter-spacing: .1em; color: var(--ms-card-ink-2); visibility: hidden; }
.ms-plan.is-true figcaption { visibility: visible; }
/* the sentence stands straight under the name, beside the drawing: never under the whole of it */
.ms-say { text-wrap: pretty; }
.ms-rows { border-top: 1px solid var(--ms-rule); }
.ms-row { display: grid; align-items: baseline; border-bottom: 1px solid var(--ms-rule); }
.ms-row dt { font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--ms-card-ink-2); }
.ms-row dd { font-weight: 500; letter-spacing: .05em; text-transform: uppercase; min-width: 0; overflow-wrap: break-word; }
.ms-tools { display: flex; align-items: flex-end; justify-content: space-between; }
.ms svg.ms-bar { display: block; flex: none; width: calc(var(--u) * var(--w)); height: auto; overflow: visible; font-size: calc(2.1px * var(--ms-t, 1)); font-weight: 500; fill: var(--ms-card-ink); }
.ms-bar-a, .ms-bar-b { stroke: var(--ms-card-ink); stroke-width: .16; }
.ms-bar-b { fill: color-mix(in srgb, var(--ms-card), white 38%); }
.ms-bar-val { font-size: calc(2.6px * var(--ms-t, 1)); font-weight: 600; }
.ms svg.ms-rose { display: block; flex: none; fill: none; stroke: var(--ms-card-ink-2); stroke-width: .55; stroke-linejoin: round; }
.ms-rose .is-lit { fill: var(--ms-card-ink); stroke: var(--ms-card-ink); }
.ms-day { list-style: none; display: grid; }
.ms-day li { display: grid; grid-template-columns: 5.4em 1fr; border-top: 1px solid var(--ms-rule); letter-spacing: .04em; }
.ms-day span:first-child { color: var(--ms-card-ink-2); }
.ms-colophon { display: flex; align-items: baseline; flex-wrap: wrap; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--ms-ink-2); white-space: nowrap; }
.ms-word { font-weight: 600; letter-spacing: .22em; color: var(--ms-ink); }
.ms-when { margin-left: auto; }
/* on the frame: the card on the left with home about 71% across; upright, the card across the foot with home about 27% down */
.ms--frame .ms-card { position: absolute; left: calc(var(--u) * 8); bottom: calc(var(--u) * 13.1); width: calc(var(--u) * 58); padding: calc(var(--u) * 4); gap: calc(var(--u) * 2); border-radius: calc(var(--u) * 3.2); }
.ms--portrait .ms-card { width: auto; right: calc(var(--u) * 8); }
.ms--frame .ms-eyebrow, .ms--frame .ms-colophon { font-size: max(calc(var(--u) * 2.2), var(--ms-min, 0px)); }
/* a name is held to two lines; a long one is set smaller, and on its side takes two full lines before the drawing and one beside it */
.ms--frame .ms-title { font-size: calc(var(--u) * 7.4); max-height: 2em; overflow: clip; }
.ms--frame .ms-title--long { font-size: max(calc(var(--u) * 4.8), var(--ms-min, 0px)); line-height: 1.06; max-height: 2.12em; }
.ms--landscape .ms-title--long { max-height: 3.18em; }
.ms--landscape .ms-head--long .ms-plan { --ms-line: calc(var(--u) * 10.3); }
.ms--landscape .ms-head--long .ms-plan span { width: min(calc(var(--px) * 1px), calc(var(--u) * 10)); }
.ms--landscape .ms-head--long .ms-say { -webkit-line-clamp: 3; }
/* whatever it is given, the card stays inside the neatline */
.ms--landscape .ms-card { max-height: calc(var(--u) * 80.5); overflow: hidden; }
.ms--portrait .ms-card { max-height: calc(var(--u) * 71); overflow: hidden; }
.ms--tall .ms-card { bottom: calc(var(--u) * 16); max-height: calc(var(--u) * 76); }
/* a phone's colophon has no room for the wordmark: the foot margin is 12u, and it hangs from the neatline */
.ms--tall .ms-ground { bottom: calc(var(--u) * 12); }
.ms--frame.ms--tall .ms-colophon { bottom: auto; top: calc(100% - var(--u) * 10.5); }
.ms--tall .ms-word { display: none; }
.ms--frame .ms-title--clock { font-size: calc(var(--u) * 8.6); white-space: nowrap; }
.ms--portrait .ms-title--clock { font-size: calc(var(--u) * 10); }
.ms--frame .ms-plan { --ms-line: calc(var(--u) * 7.6); gap: calc(var(--u) * .9); margin-left: calc(var(--u) * 2); }
.ms--frame .ms-plan span { width: min(calc(var(--px) * 1px), calc(var(--u) * 14)); }
.ms--portrait .ms-plan span { width: min(calc(var(--px) * 1px), calc(var(--u) * 14)); }
/* upright the card is wide: the drawing sits beside the name instead, so a one-line name leaves no gap over home */
.ms--portrait .ms-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto 1fr; align-items: start; column-gap: calc(var(--u) * 2); }
.ms--portrait .ms-plan { float: none; margin: 0; grid-column: 2; grid-row: 1 / span 2; }
.ms--portrait .ms-title, .ms--portrait .ms-say { grid-column: 1; }
.ms--frame .ms-plan figcaption { font-size: max(calc(var(--u) * 2.1), var(--ms-min, 0px)); }
.ms--frame .ms-say { margin-top: calc(var(--u) * 2); font-size: max(calc(var(--u) * 3.1), var(--ms-min, 0px)); line-height: 1.3; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden; }
.ms--frame .ms-row { grid-template-columns: max(calc(var(--u) * 11), calc(var(--ms-min, 0px) * 5.5)) minmax(0, 1fr); padding: calc(var(--u) * 1.15) 0 calc(var(--u) * 1); }
.ms--frame .ms-row dt { font-size: max(calc(var(--u) * 2.1), var(--ms-min, 0px)); }
.ms--frame .ms-row dd { font-size: max(calc(var(--u) * 2.7), var(--ms-min, 0px)); line-height: 1.25; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.ms--frame .ms-tools { margin-top: calc(var(--u) * .6); }
.ms--frame svg.ms-rose { width: calc(var(--u) * 8.6); height: calc(var(--u) * 8.6); }
.ms--frame .ms-day { font-size: max(calc(var(--u) * 3), var(--ms-min, 0px)); }
.ms--frame .ms-day li { padding: calc(var(--u) * 1.2) 0; }
.ms--frame .ms-day span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ms--frame .ms-colophon { position: absolute; left: calc(var(--u) * 4); right: calc(var(--u) * 4); bottom: calc(var(--u) * 3.6); gap: 0 calc(var(--u) * 4); }
.ms--frame .ms-word { font-size: max(calc(var(--u) * 2.3), var(--ms-min, 0px)); }
/* the Now card: a map window 300 px tall, the card over its foot, all inside one neatline; the colophon in the margin */
.pk.ms-now { --u: 7.5px; background: none; box-shadow: none; border-radius: 0; overflow: visible; }
.ms-neatline { position: relative; overflow: hidden; border: 1px solid var(--ms-ink); padding-bottom: var(--s-4); }
.ms-now .ms-ground { inset: 0; -webkit-mask-size: 900px; mask-size: 900px; }
.ms-win { position: relative; height: 300px; }
.ms-now .ms-ring { stroke-width: .2; }
.ms-now .ms-lab, .ms-now .ms-spot-unit { font-size: 1.6px; }
.ms-now .ms-spot { font-size: 3.6px; }
.ms-now .ms-card { position: relative; margin: -52px var(--s-4) 0; padding: var(--s-4); gap: var(--s-3); }
.ms-now .ms-eyebrow, .ms-now .ms-colophon, .ms-now .ms-plan figcaption, .ms-now .ms-row dt { font-size: var(--t-cap); font-weight: 600; letter-spacing: .11em; }
.ms-now .ms-title { font-size: var(--t-head); line-height: 1.04; letter-spacing: .035em; overflow-wrap: normal; }
.ms-now .ms-title.is-broken { overflow-wrap: anywhere; }
.ms-now .ms-title small { font-size: var(--t-cap); font-weight: 600; margin-left: 6px; }
.ms-now .ms-plan { --ms-line: calc(var(--t-head) * 1.08); gap: var(--s-1); margin-left: var(--s-3); }
.ms-now .ms-plan span { width: min(calc(var(--px) * 1px), 240px); }
.ms-now .ms-say { margin-top: var(--s-3); font-size: var(--t-lead); line-height: 1.3; }
.ms-now .ms-row { grid-template-columns: 4.5rem minmax(0, 1fr); gap: var(--s-2); padding: 9px 0 8px; }
.ms-now .ms-row dd { font-size: var(--t-sm); }
.ms-now svg.ms-rose { width: 64px; height: 64px; stroke-width: .7; }
.ms-now .ms-colophon { gap: var(--s-1) var(--s-4); padding: var(--s-3) 1px var(--s-2); }
/* the app's own bar already carries the wordmark */
.ms-now .ms-word { display: none; }
html[data-hide~="say"] .ms-now .ms-say, html[data-hide~="facts"] .ms-now .ms-row--type, html[data-hide~="route"] .ms-now .ms-row--route,
html[data-hide~="numbers"] .ms-now :is(.ms-row--speed, .ms-spot, .ms-bar-at) { display: none; }
/* Today on the Map sheet: the sheet's index. A plain table on the sheet's own colour, ruled, square, no contours */
html[data-ui="mapsheet"] .log-list { background: none; box-shadow: none; border-radius: 0; border-top: 1.5px solid var(--text); border-bottom: 1px solid var(--rule-2); }
html[data-ui="mapsheet"] .log-row { padding-left: 0; padding-right: 0; border-bottom-color: var(--rule-2); }
html[data-ui="mapsheet"] .log-plane .pf-gap { stroke: var(--bg); }
html[data-ui="mapsheet"] .log-time, html[data-ui="mapsheet"] .log-close { font-variant-numeric: tabular-nums; letter-spacing: .04em; }

/* MOTION: five quiet moments in the app, and nothing else moves. The law:
   opacity and transform only, never a layout property. Durations are --d1 (press), --d2 (small) and --d3 (an
   arrival); curves are --ease-out arriving, --ease-in-out moving on screen, --ease-drawer for sheets. Each moment
   plays once per cause (app.js decides): never a loop, never on a re-render or the minute's refresh.
   Under reduced motion nothing travels or scales: everything that travels lives in the no-preference block below. Nothing delays
   a tap, and a key held down moves nothing. Never on the wall frame, the share card, the widget or the e-ink glass. */
@media (prefers-reduced-motion: no-preference) {
  /* M4: the dock hands over. The old view fades as the new one rises 8 px into place (app.js: setView, never by key) */
  .view.is-fading.is-handing > :not(.view-old) { animation: hand-in var(--d2) var(--ease-out) both; }
  /* M5: a sheet opened from a medal, a livery or a share grows from where it was tapped (app.js sets --ox, --oy;
     by keyboard, its centre). On a phone the sheet stays a drawer from the bottom edge */
  @media (min-width: 640px) {
    .sheet.is-from[open] { transform-origin: var(--ox, 50%) var(--oy, 50%); animation: sheet-from var(--d3) var(--ease-drawer); }
  }
  /* M1: a new lead aircraft drifts in along its heading, 24 px, as it fades up (app.js: once per new headline) */
  .is-arriving :is(.pk-plane, .il-fly) { animation: arrive var(--d3) var(--ease-out) both; }
  .is-arriving .il-fly[data-east="0"] { --drift: 24px; }     /* a painting faces the way it flies; the Field note plan always faces right */
  /* M2: a medal newly stamped settles onto the case, once, with one buzz (app.js: S.landing) */
  .medal-cell.is-landing .medal, .next-row.is-landing .medal { animation: land var(--d3) var(--ease-out) both; }
  @keyframes land { from { opacity: 0; scale: .92; } }
  /* M3: the old view's dot steps aside, so only one dot slides */
  .view-old .ig-dot { opacity: 0; }
  @keyframes hand-in { from { opacity: 0; transform: translateY(8px); } }
  @keyframes arrive { from { opacity: 0; translate: var(--drift, -24px) 0; } }
  @keyframes sheet-from { from { opacity: 0; transform: scale(.96); } }
  /* M9: an Overhead pass's hand-drawn ring lands once around the word */
  .pass-ring { animation: ring-in var(--d3) var(--ease-out) both; }
  @keyframes ring-in { from { opacity: 0; transform: scale(.7) rotate(-8deg); } }
  /* M6: a livery tapped in the life list: its painting flies to the plate (app.js: morph), so the sheet only fades */
  .sheet.is-morph[open] { animation: fade-in var(--d2) var(--ease-out); }
  /* M7: a new lead's name riffles in, a departures board's flaps, 18 ms apart (app.js: flap) */
  .flap { display: inline-block; transform-origin: 50% 0; animation: flap var(--d3) var(--ease-out) both; animation-delay: calc(var(--i) * 18ms); }
  @keyframes flap { from { opacity: 0; transform: perspective(400px) rotateX(-90deg); } }
  /* M8: a count that went up rolls up into place (app.js: lifeDraw) */
  .is-rolling { display: inline-block; animation: roll var(--d3) var(--ease-out) both; }
  @keyframes roll { from { opacity: 0; transform: translateY(.6em); } }
  /* M10: a settings row opens: what it holds fades down 4 px into place under it; its height arrives at once (app.js: fold) */
  .sheet .more[open] > .more-in { animation: unfold var(--d2) var(--ease-out) both; }
  .sheet .more[open]:has(> summary:focus-visible) > .more-in { animation: none; }     /* by keyboard it is simply there */
  @keyframes unfold { from { opacity: 0; transform: translateY(-4px); } }
}
/* /MOTION */

/* TOP 10 OVER INDIANAPOLIS: a finished poster, matched to the prototype. Upright, the title has its own band on the
   ground above the art; on its side it sits over a soft scrim top left. Type is set in cqmin of the frame's short side,
   with a 9px floor only on the operator and stats, so the app's small previews are the wall in small. The footer is always a near-solid plate, so the
   status and the note that this is the top ten only read over the brightest art; the note has a line of its own.
   A stat never breaks inside its value: two columns, one when two do not fit, a rule only before the second.
   In a small box (either side under 300px) the stats go and the title and footer each take a band of their own.
   Nothing moves. */
.tt { --tt-ground: #0D0D0E; --tt-ink: #F4F1EA; --tt-dim: #B9B5AD; --tt-plate: rgb(13 13 14 / .92); width: 100%; height: 100%; overflow: hidden; container-type: size;
      background: var(--tt-ground); color: var(--tt-ink); line-height: 1.2; }
.tt-in { position: relative; width: 100%; height: 100%; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); }
.tt-art { grid-area: 1 / 1; width: 100%; height: 100%; min-height: 0; object-fit: cover; display: block; }
.tt-type { grid-area: 1 / 1; z-index: 1; min-width: 0; container-type: inline-size; font-size: min(2.4cqmin, .95rem);
           padding: max(4cqmin, var(--sa-t, 0px)) max(5cqmin, var(--sa-r, 0px)) 0 max(5cqmin, var(--sa-l, 0px)); }
.tt-op { margin: 0; font-weight: 500; text-transform: uppercase; letter-spacing: .32em; font-size: max(min(2.6cqmin, 1.1rem), 9px); }
.tt-model { margin: .1em 0 0; font-style: italic; font-weight: 600; text-transform: uppercase; line-height: .95; font-size: min(8cqmin, 5rem); overflow-wrap: anywhere; }
.tt-maker { display: block; font-size: .42em; letter-spacing: .12em; }
.tt-stats { display: grid; grid-template-columns: repeat(2, max-content); justify-content: start; gap: .35em 0; margin: .9em 0 0; padding: 0; list-style: none;
            text-transform: uppercase; letter-spacing: .08em; font-size: max(1em, 9px); }
.tt-stats li { white-space: nowrap; }
.tt-stats li:nth-child(even)::before { content: ""; display: inline-block; width: 1px; height: .9em; margin: 0 .8em; vertical-align: -.1em; background: var(--tt-accent); }
.tt-stats b { font-weight: 500; color: var(--tt-dim); margin-right: .4em; }
@container (max-width: 31em) {
  .tt-stats { grid-template-columns: max-content; }
  .tt-stats li:nth-child(even)::before { display: none; }
}
.tt-foot { grid-area: 1 / 1; z-index: 1; align-self: end; min-width: 0; background: var(--tt-plate); text-transform: uppercase; letter-spacing: .14em;
           padding: 3cqmin max(5cqmin, var(--sa-r, 0px)) max(3.5cqmin, var(--sa-b, 0px)) max(5cqmin, var(--sa-l, 0px)); }
.tt-foot p { margin: 0; }
.tt-status { font-weight: 500; color: var(--tt-ink); font-size: min(3cqmin, 1rem); }
.tt--now .tt-status::before { content: ""; display: inline-block; width: .6em; height: .6em; border-radius: 50%; margin-right: .6em; background: var(--tt-accent); }
.tt-rank { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 .7em; margin-top: .35em !important; font-size: min(2.6cqmin, .9rem); }
.tt-rank strong { font-style: italic; font-weight: 600; font-size: 2.4em; letter-spacing: 0; line-height: 1; color: var(--tt-accent); }
.tt-deps { color: var(--tt-dim); }
.tt-only { margin-top: .4em !important; font-weight: 500; color: var(--tt-ink); font-size: min(3.6cqmin, 1.25rem); letter-spacing: .1em; }
.tt--portrait .tt-in { grid-template-rows: auto minmax(0, 1fr) auto; }
.tt--portrait .tt-type { grid-area: 1 / 1; text-align: center; padding-bottom: 2cqmin; }
.tt--portrait .tt-stats { justify-content: center; text-align: left; }
.tt--portrait .tt-art { grid-area: 2 / 1; object-position: 50% 30%; }
.tt--portrait .tt-foot { grid-area: 3 / 1; text-align: center; }
.tt--portrait .tt-rank { justify-content: center; }
.tt--landscape .tt-type { align-self: start; justify-self: start; width: 42cqw; padding-right: 6cqmin; padding-bottom: 6cqmin;
                          background: radial-gradient(ellipse at 0 0, rgb(13 13 14 / .9) 40%, transparent 72%); }
.tt--landscape .tt-foot { justify-self: start; max-width: 60cqw; }
@container (max-width: 300px) or (max-height: 300px) {
  .tt-in, .tt--portrait .tt-in { grid-template-rows: auto minmax(0, 1fr) auto; }
  .tt-type, .tt--landscape .tt-type { grid-area: 1 / 1; width: auto; justify-self: stretch; background: none; padding: 4cqmin 5cqmin 2cqmin; }
  .tt-stats { display: none; }
  .tt-art { grid-area: 2 / 1; }
  .tt-foot, .tt--landscape .tt-foot { grid-area: 3 / 1; max-width: none; justify-self: stretch; padding: 2.5cqmin 5cqmin 3cqmin; }
}
.tt-now { padding: 0; overflow: hidden; aspect-ratio: 3 / 4; }
.glass .tt { --sa-t: 0px; --sa-r: 0px; --sa-b: 0px; --sa-l: 0px; }
/* /TOP 10 OVER INDIANAPOLIS */

/* TRAFFIC: what a controller calls nearby aircraft (the ruling of 22 Nov 2026). Dots count, type measures. The module
   is the dot pitch --dp; panels are surface on ground with one hairline, no shadows. One accent, electric ultramarine,
   and it means now: the current hour, the lead's closest-approach line, a selection. fitTraffic (app.js) sets the layout
   from the frame's own box: data-l portrait | landscape (a phone on its side) | wall, and data-s="s" for a small box.
   The wall never moves; in the app every duration is a house token and only opacity and transform are animated. */
.tf { --tf-accent: #2F35E6; --tf-ink: rgb(31 30 34); --tf-unlit: rgb(31 30 34 / .08); --tf-contour: rgb(31 30 34 / .15); --tf-rule: rgb(31 30 34 / .13);
  position: relative; width: 100%; height: 100%; overflow: hidden; container-type: size; background: var(--bg); color: var(--text); text-align: left;
  font-family: "Outfit", ui-sans-serif, system-ui, sans-serif; font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tf { --tf-accent: #8C93FF; --tf-ink: rgb(236 231 219); --tf-unlit: rgb(236 231 219 / .08); --tf-contour: rgb(236 231 219 / .13); --tf-rule: rgb(236 231 219 / .11); } }
:root[data-theme="dark"] .tf { --tf-accent: #8C93FF; --tf-ink: rgb(236 231 219); --tf-unlit: rgb(236 231 219 / .08); --tf-contour: rgb(236 231 219 / .13); --tf-rule: rgb(236 231 219 / .11); }
.tf > * { --dp: max(4px, .9cqmin); }
.tf svg { width: auto; height: auto; filter: none; display: block; overflow: visible; }
.tf p, .tf h1, .tf h2, .tf dl, .tf dd, .tf dt, .tf ol { margin: 0; font-weight: inherit; }
.tf-u { position: absolute; width: var(--dp); height: 0; visibility: hidden; }
.tf-grid { --m: max(16px, calc(var(--dp) * 3)); --g: calc(var(--dp) * 2); --pad: calc(var(--dp) * 2); --ft: max(24px, var(--m));
  --fc: max(11px, calc(var(--dp) * 1.5)); --fs: max(15px, calc(var(--dp) * 2.2)); --fh: max(20px, calc(var(--dp) * 4.4)); --hero: calc(var(--dp) * 14);
  display: grid; gap: var(--g); height: 100%; font-size: var(--fs); line-height: 1.25;
  /* full screen in the app the frame runs under the status bar and the home indicator (the kiosk's --sa-*); its panels step clear */
  padding: max(var(--m), calc(var(--sa-t, 0px) + var(--g))) max(var(--m), var(--sa-r, 0px)) calc(var(--ft) + var(--sa-b, 0px)) max(var(--m), var(--sa-l, 0px)); }
.tf[data-s="s"] .tf-grid { --m: 10px; --g: 6px; --pad: 8px; --ft: 22px; --fs: 12px; --fh: 15px; --fc: 11px; --hero: 30px; }
.tf-lead { grid-area: lead; } .tf-plot { grid-area: plot; } .tf-today { grid-area: today; } .tf-recent { grid-area: recent; }
.tf-grid { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto auto; grid-template-areas: "lead" "plot" "today" "recent"; }
.tf[data-l="landscape"] .tf-grid { grid-template-columns: calc(100cqh - var(--m) - var(--ft)) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "plot lead" "plot today"; }
.tf[data-l="landscape"] .tf-recent { display: none; }
.tf[data-l="wall"] .tf-grid { --hero: calc(var(--dp) * 18); grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: minmax(0, 3fr) minmax(0, 2fr);
  grid-template-areas: "plot plot plot plot plot plot plot lead lead lead lead lead" "today today today today today today today recent recent recent recent recent"; }
.tf[data-s="s"] :is(.tf-today, .tf-recent, .tf-route, .tf-stats) { display: none; }
.tf[data-s="s"][data-l="landscape"] .tf-grid { grid-template-rows: minmax(0, 1fr); grid-template-areas: "plot lead"; }
.tf[data-s="s"][data-l="portrait"] .tf-grid { grid-template-rows: auto minmax(0, 1fr); }
.tf-panel { position: relative; min-width: 0; min-height: 0; background: var(--surface); border: 1px solid var(--tf-rule); border-radius: var(--dp); padding: var(--pad); }
.tf-label { color: var(--text-2); line-height: 1.2; }
[hidden].tf-panel, .tf [hidden] { display: none !important; }

/* LEAD */
.tf-lead { z-index: 2; display: grid; column-gap: var(--g); align-content: start; grid-template-columns: minmax(0, 1fr) var(--zw, 0px);
  grid-template-areas: "status status" "hero hero" "head zone" "route zone" "stats zone"; }     /* upright the plan's room runs beside the words, not under them */
.tf[data-l="wall"] .tf-lead { grid-template-columns: var(--zw, 0px) minmax(0, 1fr); align-content: space-between;
  grid-template-areas: "zone status" "zone hero" "head head" "route route" "stats stats"; }
.tf[data-l="landscape"] .tf-lead { grid-template-columns: var(--zw, 0px) minmax(0, 1fr) auto; align-content: start;
  grid-template-areas: "zone status stats" "zone hero hero" "head head head" "route route route"; }
.tf-zone { grid-area: zone; min-height: var(--zh, 0px); }
.tf[data-l="portrait"] .tf-panel:not(.tf-plot) { min-height: min-content; }
.tf-lead-plan { position: absolute; z-index: 3; pointer-events: none; fill: var(--tf-ink); }
.tf-status { grid-area: status; font-weight: 500; line-height: 1.2; align-self: start; }
.tf-hero { grid-area: hero; align-self: end; display: flex; align-items: baseline; column-gap: calc(var(--dp) * 1.5); white-space: nowrap; min-width: 0; }
.tf-alt { font-size: var(--hero); font-weight: 300; letter-spacing: -.025em; line-height: 1.26; }
.tf-unit { font-size: max(15px, calc(var(--hero) * .3)); color: var(--text-2); }
.tf[data-s="s"] .tf-unit { font-size: 12px; }
.tf[data-s="s"] .tf-hero { margin-bottom: 4px; }
.tf-head { grid-area: head; min-width: 0; }
.tf-head :is(h1, h2) { font-size: var(--fh); font-weight: 500; letter-spacing: -.012em; line-height: 1.1; overflow-wrap: anywhere; }
.tf-head p { color: var(--text-2); margin-top: calc(var(--dp) * .5); }
.tf-route { grid-area: route; margin-top: calc(var(--dp) * 2); min-width: 0; }
.tf-ends { display: flex; justify-content: space-between; font-weight: 500; margin-bottom: calc(var(--dp) * 1); }
.tf-line { display: block; }
.tf-stats { grid-area: stats; display: flex; gap: calc(var(--dp) * 5); margin-top: calc(var(--dp) * 2); align-self: end; }
.tf[data-l="landscape"] .tf-stats { margin-top: 0; gap: calc(var(--dp) * 3); justify-self: end; align-self: start; }
.tf-stats div { display: flex; flex-direction: column; gap: 2px; }
.tf-stats dt { font-size: var(--fc); color: var(--text-2); letter-spacing: .11em; font-weight: 500; text-transform: uppercase; line-height: 1.2; }
.tf-stats dd { font-weight: 500; line-height: 1.2; }
.tf[data-l="wall"] .tf-stats dd { font-size: calc(var(--dp) * 3); }

/* PLOT: a field of unlit dots on the contour ground, the interest radius a ring of lit dots, home an ink ring */
.tf-plot { padding: 0; overflow: hidden; min-height: 0; }
.tf-ground-v { position: absolute; inset: 0; -webkit-mask-image: radial-gradient(ellipse 68% 68% at 50% 50%, #000 30%, rgb(0 0 0 / .28) 100%); mask-image: radial-gradient(ellipse 68% 68% at 50% 50%, #000 30%, rgb(0 0 0 / .28) 100%); }
.tf-ground { position: absolute; inset: 0; background: var(--tf-contour); -webkit-mask: url(/relief/traffic.svg) 22% 30% / calc(var(--dp) * 150) repeat; mask: url(/relief/traffic.svg) 22% 30% / calc(var(--dp) * 150) repeat; }
.tf .tf-plot-svg { position: absolute; inset: 0; overflow: hidden; font-size: var(--fs); }
.tf-plot text { font-family: inherit; paint-order: stroke; stroke: var(--surface); stroke-width: 4px; stroke-linejoin: round; fill: var(--text-2); }
.tf-plot text.is-lead, .tf-plot .tf-clock { fill: var(--text); font-weight: 500; }
.tf-plot text.is-small { font-size: var(--fc); }
.tf-unlit { fill: var(--tf-unlit); }
.tf-lit { fill: var(--tf-ink); }
.tf-plan { fill: var(--tf-ink); stroke: var(--surface); stroke-width: 1.5px; paint-order: stroke; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.tf-lead-plan .tf-plan { stroke: none; }
.tf-cpa circle { fill: var(--text-3); }
.tf-cpa.is-lead circle { fill: var(--tf-accent); }
.tf-cpa circle.foot { fill: none; stroke: var(--text-3); stroke-width: 1.4px; }
.tf-cpa.is-lead circle.foot { fill: none; stroke: var(--tf-accent); }
.tf-home { fill: var(--surface); stroke: var(--tf-ink); }

/* TODAY: one dot per passage in its hour; no y-axis */
.tf-today { display: flex; flex-direction: column; gap: calc(var(--dp) * 1.5); }
.tf-today-top { display: flex; align-items: flex-end; gap: calc(var(--dp) * 3); }
.tf-count { flex: none; }
.tf-day-note { color: var(--text-2); line-height: 1.25; min-width: 0; }
.tf-day-note :is(span, b) { display: block; }
.tf-day-note b { color: var(--text); font-weight: 500; }
.tf-colwrap { position: relative; flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; padding-top: calc(var(--fc) * 1.6); }
.tf-cols { position: relative; flex: 1 1 0; min-height: calc(var(--dp) * 10); display: grid; grid-template-columns: repeat(24, minmax(0, 1fr)); outline-offset: 4px; }
.tf-col { display: flex; flex-direction: column-reverse; align-items: center; min-height: 0; }
.tf-dot { position: relative; flex: none; width: calc(var(--tf-pitch, 10px) * .67); aspect-ratio: 1; margin-top: calc(var(--tf-pitch, 10px) * .33); border-radius: 50%; background: var(--tf-ink); }
.tf-dot.is-off { background: var(--tf-unlit); }
.tf-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--tf-accent); opacity: 0; transition: opacity var(--d1) var(--ease-out); }
.tf-col.tf-now .tf-dot:not(.is-off)::after, .tf-col.is-sel .tf-dot:not(.is-off)::after { opacity: 1; }
.tf-now-line { position: absolute; top: calc(var(--fc) * -1.1); bottom: 0; left: calc(100% * var(--at) / 24); width: 0; border-left: 2px dotted var(--tf-accent); pointer-events: none; }
.tf-now-label { position: absolute; top: 0; left: calc(100% * var(--at) / 24 + 5px); font-size: var(--fc); font-weight: 600; letter-spacing: .11em; text-transform: uppercase; color: var(--tf-accent); line-height: 1; }
.tf-now-label[style*="--at:24"], .tf-now-label[style*="--at:23"] { left: auto; right: calc(100% - 100% * var(--at) / 24 + 5px); }
.tf-axis { position: relative; height: calc(var(--fc) * 1.3); margin-top: calc(var(--dp) * .75); flex: none; }
.tf-axis span { position: absolute; top: 0; left: calc(100% * var(--at) / 24); font-size: var(--fc); color: var(--text-3); line-height: 1.2; font-weight: 500; white-space: nowrap; }
.tf-tip { position: absolute; z-index: 4; bottom: calc(100% + 4px); padding: 4px 8px; border-radius: 6px; background: var(--tf-ink); color: var(--surface); font-size: max(11px, var(--fc)); font-weight: 500; line-height: 1.25; white-space: nowrap; opacity: 0; transform: translateY(4px); pointer-events: none; transition: opacity var(--d1) var(--ease-out), transform var(--d1) var(--ease-out); }
.tf-tip.is-on { opacity: 1; transform: none; }

/* RECENT */
.tf-recent { display: flex; flex-direction: column; gap: calc(var(--dp) * 1); }
.tf-rows { list-style: none; padding: 0; flex: 1; min-height: 0; display: grid; grid-auto-rows: minmax(calc(var(--dp) * 11), 1fr); overflow: hidden; }
.tf-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; column-gap: calc(var(--dp) * 2); border-top: 1px solid var(--tf-rule); min-height: 0; }
.tf-row-plan { display: flex; justify-content: center; fill: var(--tf-ink); }
.tf-row .who { min-width: 0; display: block; }
.tf-row :is(.who, .when) > * { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tf-row b { font-weight: 500; }
.tf-row .who > span, .tf-row .when > span { color: var(--text-2); }
.tf-row .who > span { white-space: normal; overflow: visible; }
.tf-row .when { text-align: right; }

.tf-foot { position: absolute; left: var(--sa-l, 0px); right: var(--sa-r, 0px); bottom: var(--sa-b, 0px); height: var(--ft, 24px); display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 max(16px, calc(var(--dp) * 3)); font-size: max(11px, calc(var(--dp) * 1.5)); color: var(--text-2); line-height: 1; white-space: nowrap; }
.tf-foot b { font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--text); }
.tf[data-s="s"] .tf-foot { height: 22px; padding: 0 10px; }
.tf-nowcard { padding: 0; overflow: hidden; aspect-ratio: 3 / 4; box-shadow: none; }

/* MOTION, the app only: M1 opening, M2 a passage counted, M3 its row, M4 a new lead. Fill is backwards only, so a finished
   move leaves nothing running; a refresh that changes nothing adds no class and so never moves. */
@media (prefers-reduced-motion: no-preference) {
  .tf.is-opening :is(.tf-col, .tf-digit) { animation: tf-up var(--d2) var(--ease-out) backwards; animation-delay: calc(var(--i, 0) * 6ms + var(--tf-in, 0s)); }
  .tf .tf-dot.is-new { animation: tf-drop var(--d2) var(--ease-out) backwards; }
  .tf .tf-digit.is-new .tf-lit { animation: tf-fade var(--d2) var(--ease-out) backwards; }
  .tf .tf-row.is-new { animation: tf-rise var(--d2) var(--ease-out) backwards; }
  .tf .tf-row.is-flip { animation: tf-flip var(--d2) var(--ease-out) backwards; }
  .tf :is(.tf-lead-plan, .tf-air).is-new { animation: tf-arrive var(--d3) var(--ease-out) backwards; }
  .tf :is(.tf-cpa, .tf-name).is-new { animation: tf-fade var(--d3) var(--ease-out) backwards; }
  .tf.tf :is(.is-new, .is-new .tf-lit, .is-flip) { animation-delay: var(--tf-in, 0s); }     /* a redraw mid-move picks it up where it was */
  @keyframes tf-up { from { opacity: 0; transform: translateY(var(--tf-dpx, 4px)); } }
  @keyframes tf-drop { from { opacity: 0; transform: translateY(calc(var(--tf-dpx, 4px) * -2)); } }
  @keyframes tf-fade { from { opacity: 0; } }
  @keyframes tf-rise { from { opacity: 0; transform: translateY(8px); } }
  @keyframes tf-flip { from { transform: translateY(-100%); } }
  @keyframes tf-arrive { from { opacity: 0; translate: var(--dx, -24px) var(--dy, 0px); } }
}
.is-kiosk .tf *, .is-kiosk .tf *::after { animation: none !important; transition: none !important; }
/* /TRAFFIC */

/* THE INSTRUMENTS: the sighting read out on five flat tiles. Black ground, one tile colour, black ink, one accent,
   by day and by night alike (the black is the look). Each tile: a small label, one large reading, one small drawing
   that restates it. As with the other drawn frames --u is a hundredth of the frame's short side, and 4 px on the Now
   card; --ig-row is the height of one tile, which the reading is sized from. On a screen no word is under 11 px; the
   Frame tab's preview is a picture of the wall, so there the floors are let go. No motion, no shadows, no borders.

   THE LAW OF THE GRID. Everything here sits on it except the painting.
   1. Tiles. Every tile is one height, on equal gutters down and across (--ig-gap). Upright the
      tiles are one column; sideways two, with the Aircraft tile across both.
   2. Columns: one column grid in every tile. A tile is two columns, six tenths and four, a padding apart. Labels,
      readings and foot lines start on the first line. Every drawing starts on the second, the graphics line: the
      route line, the compass's bearing, the tick bar, the distance bar, the date. The Aircraft tile across two tiles
      keeps the columns of the two tiles under it, so its lines are theirs.
   3. Rows: one rhythm in every tile. The label hangs in a row one line tall (--ig-line); the foot line stands in a
      row one line tall (--ig-footline), kept whether or not anything is written in it; the reading stands on the
      foot row's top edge. So across a frame the labels share a line, the readings share a line and a size, and the
      foot lines share a line.
   4. The painting alone breaks it. When the lead aircraft has a painting a band of bare ground is kept over the
      Aircraft tile, a tile's height, and the aircraft flies there, in front of the tile and across its top edge:
      westbound at the right, eastbound at the left, its tail off the screen behind it. It never covers a word.
      Sideways the words yield it that side: flying east they start on the first line of the right-hand tile under
      them and the route line on its graphics line, so the painting is as large flying east as flying west. A name
      too long for that half keeps the whole tile, and the painting is smaller. */
.ig { --ig-ground: #000000; --ig-tile: #DCDCDA; --ig-ink: #000000; --ig-quiet: #56524B; --ig-accent: #BC5E2E; --ig-empty: #B1B1AD;
  background: var(--ig-ground); color: var(--ig-ink); text-align: left; line-height: 1.15; font-weight: 400; font-variant-numeric: tabular-nums; }
.ig p, .ig figure { margin: 0; padding: 0; }
.ig--frame { width: 100%; height: 100%; overflow: hidden; container-type: size; }
/* the sizes are worked out on the grid, where --u is the frame's own. --ig-rows: how many tile heights the frame is cut into */
.ig-grid, .ig-now { --u: 1vmin; --ig-min: 1; --ig-rows: 5; --ig-row: calc(var(--u) * 26); --ig-gap: max(calc(6px * var(--ig-min)), calc(var(--u) * 1.4)); --ig-pad: max(calc(10px * var(--ig-min)), calc(var(--u) * 2.6)); --ig-small: max(calc(11px * var(--ig-min)), calc(var(--u) * 2.6)); --ig-mid: max(calc(12px * var(--ig-min)), calc(var(--u) * 3.6)); --ig-foot: max(calc(13px * var(--ig-min)), calc(var(--u) * 2.9));
  --ig-line: calc(var(--ig-small) * 1.3); --ig-footline: calc(var(--ig-foot) * 1.45); position: relative; }
.glass .ig-grid { --ig-min: 0; }
.ig-grid.has-fly { --ig-rows: 6; }
.ig--landscape .ig-grid { --ig-rows: 3; }
.ig--landscape .ig-grid.has-fly { --ig-rows: 4; }
/* a frame too short for that keeps two thirds of the band before it gives the painting up */
.ig-grid.has-fly.is-low { --ig-rows: 5.65; grid-template-rows: minmax(0, .65fr); }
.ig--landscape .ig-grid.has-fly.is-low { --ig-rows: 3.65; }
@supports (width: 1cqmin) { .ig-grid { --u: 1cqmin; --ig-row: calc((100cqh - var(--sa-t, 0px) - var(--sa-b, 0px)) / var(--ig-rows) - var(--ig-gap) * 1.25); } }
.ig-grid { box-sizing: border-box; width: 100%; height: 100%; display: grid; grid-auto-rows: minmax(0, 1fr); gap: var(--ig-gap); padding: var(--ig-gap); }
.ig--landscape .ig-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.ig-head { grid-column: 1 / -1; min-height: 0; }
.ig--landscape .ig-tile--craft { grid-column: 1 / -1; }
/* nothing is drawn under a status bar, an island or a home indicator: the tiles step in, the ground runs on */
.kiosk .ig-grid { padding: max(var(--ig-gap), var(--sa-t)) max(var(--ig-gap), var(--sa-r)) max(var(--ig-gap), var(--sa-b)) max(var(--ig-gap), var(--sa-l)); }
/* a tile: two columns, three rows (the law, 2 and 3) */
.ig-tile { position: relative; box-sizing: border-box; min-width: 0; min-height: 0; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); grid-template-rows: var(--ig-line) minmax(0, 1fr) var(--ig-footline); column-gap: var(--ig-pad); padding: var(--ig-pad); border-radius: max(calc(6px * var(--ig-min)), calc(var(--u) * 1.6)); background: var(--ig-tile); }
/* across two tiles: their four columns, and their two paddings and the gutter between */
.ig--landscape .ig-tile--craft { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) var(--ig-gap) minmax(0, 1.5fr) minmax(0, 1fr); }
.ig-label { grid-column: 1; grid-row: 1; font-size: var(--ig-small); white-space: nowrap; }
.ig-read { grid-column: 1 / -1; grid-row: 2; align-self: end; min-width: 0; font-size: max(calc(20px * var(--ig-min)), calc(var(--ig-row) * .46)); font-weight: 500; line-height: 1; letter-spacing: -.015em; white-space: nowrap; }
.ig-read small { margin-left: .35em; line-height: 0; font-size: var(--ig-small); font-weight: 400; letter-spacing: 0; color: var(--ig-quiet); }
.ig-tile--craft .ig-read { white-space: normal; }
.ig-read.is-broken { overflow-wrap: anywhere; }
.ig-foot { grid-column: 1 / -1; grid-row: 3; align-self: end; min-width: 0; min-height: 1.15em; display: flex; gap: 0 1.2em; font-size: var(--ig-foot); color: var(--ig-quiet); white-space: nowrap; }
/* a foot line too long for its tile is said in short: nothing is taken away */
.is-tight .ig-foot span { font-size: 0; }
.is-tight .ig-foot span::after { content: attr(data-short); font-size: var(--ig-foot); }
.is-tight .ig-foot span[data-short=""] { display: none; }
.is-off .ig-read { color: var(--ig-quiet); }
.ig-tile--craft.is-off .ig-read { color: var(--ig-ink); }
/* the drawings start on the graphics line and hang from the label's row, over the reading's right end: flat fills in
   three inks. Words beside a drawing are set in the page's own type, so they keep their size */
.ig-art { grid-column: 2; grid-row: 1 / 3; align-self: start; min-width: 0; display: grid; gap: calc(var(--ig-pad) * .4); font-size: var(--ig-small); }
.ig-art svg { display: block; width: 100%; height: auto; overflow: visible; }
.ig-on { fill: var(--ig-ink); }
.ig-off { fill: var(--ig-empty); }
.ig-acc { fill: var(--ig-accent); }
.ig-dot { fill: var(--ig-ink); stroke: var(--ig-tile); stroke-width: 1; }
.ig-tick { fill: none; stroke: var(--ig-ink); stroke-width: .7; }
.ig-hand { fill: none; stroke: var(--ig-ink); stroke-width: 1.6; stroke-linecap: round; }
.ig-route { display: flex; align-items: center; gap: .6em; font-size: var(--ig-mid); font-weight: 500; line-height: var(--ig-line); }
.ig-route svg { flex: 1; min-width: 0; height: .9em; }
/* the tick bar takes its column's whole width; its bars are as tall as the room over the reading allows */
.ig-tile--alt .ig-art svg { width: 100%; aspect-ratio: 108 / 26; max-height: max(var(--ig-line) * 1.1, calc(var(--ig-row) * .56 - var(--ig-pad) * 2 - var(--ig-footline))); }
/* an aircraft with neither route nor painting is drawn in plan, from the graphics line */
.ig-plan { height: calc(var(--ig-row) * .5); }
.ig-plan svg { width: auto; height: 100%; }
.ig-plan .pf-ink { fill: var(--ig-ink); }
.ig-plan .pf-gap { stroke: var(--ig-tile); }
.ig-plan .pf-echo { display: none; }
.is-off .ig-plan .pf-ink { fill: var(--ig-empty); }
/* the compass: its bearing on the graphics line, its pointer running from there to the card, which comes in from the
   tile's right edge as tall as the tile; the word inside the rim */
.ig-tile--look .ig-art { position: relative; grid-row: 1 / 4; align-self: stretch; display: block; overflow: hidden; margin: calc(var(--ig-pad) * -1) calc(var(--ig-pad) * -1) calc(var(--ig-pad) * -1) 0; }
.ig-disc { position: absolute; top: 0; right: 0; height: 100%; aspect-ratio: 1; }
.ig-disc svg { height: 100%; }
.ig-deg, .ig-dir { position: absolute; top: 50%; transform: translateY(-50%); }
.ig-deg { left: 0; padding-right: .5em; background: var(--ig-tile); color: var(--ig-quiet); }
.ig-dir { left: 74%; font-weight: 500; }
.ig-ends { position: relative; display: block; height: 1.15em; color: var(--ig-quiet); white-space: nowrap; }
.ig-ends span + span { position: absolute; top: 0; }
/* the day: no drawing; the date at reading size on the graphics line, the clock under it */
.ig-tile--day .ig-art { font-size: var(--ig-mid); font-weight: 500; line-height: var(--ig-line); }
/* THE PAINTING (the law, 4). fitGauges sets it out (where it hangs and how large); until then it waits in the band */
.ig-fly { position: absolute; z-index: 2; top: 0; left: 50%; width: 40%; aspect-ratio: 1 / var(--asp); pointer-events: none; }
.ig-fly img { display: block; width: 100%; height: 100%; }
/* a frame set out without its painting (a name too long to share the height) is the plain five tiles */
:not(.has-fly) > :is(.ig-head, .ig-fly) { display: none; }
/* upright the route line gives the painting its corner: it stands on the graphics line of the foot row */
:is(.ig--portrait .has-fly, .ig-now.has-fly) .ig-tile--craft .ig-art { grid-row: 3; align-self: end; }
:is(.ig--portrait .has-fly, .ig-now.has-fly) .ig-tile--craft .ig-foot { grid-column: 1; }
:is(.ig--portrait .has-fly, .ig-now.has-fly) .ig-tile--craft .ig-route { line-height: 1.15; }
/* sideways and flying east the painting has the left: the tile's lines move to the columns of the tile under its right half */
.ig--landscape .has-fly:not(.is-full) > .ig-fly.is-east ~ .ig-tile--craft > :is(.ig-label, .ig-read, .ig-foot) { grid-column: 4 / -1; }
.ig--landscape .has-fly:not(.is-full) > .ig-fly.is-east ~ .ig-tile--craft > .ig-art { grid-column: 5; }
/* the Now card: the same five tiles down the page, on their own black ground */
.pk.ig-now { --u: 4px; --ig-row: 132px; display: grid; gap: var(--ig-gap); padding: var(--ig-gap); background: var(--ig-ground); box-shadow: none; }
.ig-now .ig-tile, .ig-now .ig-head { height: var(--ig-row); }
html[data-hide~="numbers"] .ig-now :is(.ig-tile--alt, .ig-tile--dist), html[data-hide~="route"] .ig-now .ig-route, html[data-hide~="say"] .ig-now .ig-foot span, html[data-hide~="facts"] .ig-now .ig-tile--craft .ig-label { display: none; }

