/* ---- tokens.css */
/* rohin.me - design tokens.
   Two attributes on <html>, both set before first paint by the small script in index.html:
     data-theme   = "dark" | "light"                          (the header switch: auto follows the device)
     data-palette = "almanac" | "chart" | "poster" | "mono" | "classic"  (the colour version; almanac is the default)
   A palette sets the BASE colours for both modes (surfaces, ink, accent, data colours, maps). Everything else is
   derived from those below, once, so a new palette is one pair of blocks. Scenes use only these variables, never
   raw colours; canvas and three.js code reads them with ctx.colors() and reads again in ctx.onTheme().
   tests/run-tests --palettes checks every palette in both modes (4.5:1 text, 3:1 marks and large shapes).

   THE LOOK. Every version but "classic" shares one structure: no rounded corners, no glass, no shadows; rules and
   space instead of boxes; three type families with fixed jobs. Light and dark are two designs on that structure:
     light  "almanac"     paper, titles and names in the serif, labels in small capitals of the sans, ink for what is on
     dark   "instrument"  graphite, titles and labels in capitals of the monospace, names in the sans, the accent for what is on
   Capitals come from a face, never from text-transform: see "Capitals without text-transform" below.
   The roles are tokens (--font-head --font-title --font-label --font-num, --title-*, --label-*, --rule, --on) so a
   page built against them changes with the mode. "classic" keeps the first look (one rounded sans, pills, glass). */

/* Fonts: self-hosted, SIL Open Font License 1.1. Newsreader (Production Type), IBM Plex Sans and IBM Plex Mono (IBM).
   Latin and Latin Extended only; a file is fetched only when a page uses that face and range. */
@font-face { font-family: 'Newsreader'; font-style: normal; font-weight: 200 800; font-display: swap; src: url(../../../fonts/newsreader-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Newsreader'; font-style: normal; font-weight: 200 800; font-display: swap; src: url(../../../fonts/newsreader-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Newsreader'; font-style: italic; font-weight: 400; font-display: swap; src: url(../../../fonts/newsreader-italic-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url(../../../fonts/plex-sans-400-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url(../../../fonts/plex-sans-400-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url(../../../fonts/plex-sans-600-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url(../../../fonts/plex-sans-600-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 700; font-display: swap; src: url(../../../fonts/plex-sans-700-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 700; font-display: swap; src: url(../../../fonts/plex-sans-700-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url(../../../fonts/plex-mono-400-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url(../../../fonts/plex-mono-400-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url(../../../fonts/plex-mono-500-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
/* Capitals without text-transform. Labels and the dark page titles are set in capitals, but the words in the page stay
   as written ("Data", not "DATA"): a screen reader, a copy, a test that reads the text all get the real word. These
   three small files are cuts of the faces above in which a to z draw as A to Z (made with fontTools from the same
   files, Basic Latin and Latin-1). font-display: block, and index.html preloads them: a label never shows in the
   wrong case first. */
@font-face { font-family: 'Plex Sans Caps'; font-style: normal; font-weight: 400 700; font-display: block; src: url(../../../fonts/plex-sans-600-caps.woff2) format('woff2'); }
@font-face { font-family: 'Plex Mono Caps'; font-style: normal; font-weight: 400; font-display: block; src: url(../../../fonts/plex-mono-400-caps.woff2) format('woff2'); }
@font-face { font-family: 'Plex Mono Caps'; font-style: normal; font-weight: 500 700; font-display: block; src: url(../../../fonts/plex-mono-500-caps.woff2) format('woff2'); }
/* What shows until a face has arrived: a face of the device, scaled to the same width and height of line, so words
   do not move when the real one swaps in. */
@font-face { font-family: 'Newsreader Fallback'; src: local('Times New Roman'), local('Times'), local('Tinos'); size-adjust: 103.8%; ascent-override: 70.8%; descent-override: 25.5%; line-gap-override: 0%; }
@font-face { font-family: 'Plex Sans Fallback'; src: local('Arial'), local('Roboto'), local('Helvetica Neue'), local('Liberation Sans'); size-adjust: 101.2%; ascent-override: 101.3%; descent-override: 27.2%; line-gap-override: 0%; }
@font-face { font-family: 'Plex Mono Fallback'; src: local('Menlo'), local('Courier New'), local('Liberation Mono'); ascent-override: 102.5%; descent-override: 27.5%; line-gap-override: 0%; }
/* The classic version's face. */
@font-face {
  font-family: 'Jakarta Classic'; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url(../../../fonts/plus-jakarta-sans-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Jakarta Classic'; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url(../../../fonts/plus-jakarta-sans-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}


/* Labels drawn on canvas by a few pages (the hikes map, a hike's land, the owners picture, the shelf) ask for
   'Plus Jakarta Sans' by name. Under that name they now get the sans of the look, so pictures and page agree;
   when those pages read the face from the page instead, these four lines can go. */
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 400 500; font-display: swap; src: url(../../../fonts/plex-sans-400-latin.woff2) format('woff2'); }
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 600 800; font-display: swap; src: url(../../../fonts/plex-sans-600-latin.woff2) format('woff2'); }

:root {
  /* ---------- the same in every palette and mode ---------- */
  /* things that keep their colour: a trail drawn over an aerial photo, a QR code tile */
  --on-photo: #ffe2a6;
  --on-photo-shade: #10130f;
  --paper: #fbfaf7;
  --paper-ink: #14130f;
  /* the offline hike card (a page for paper as well as screens) */
  --print-bg: #f5f3ee; --print-paper: #fbfaf7; --print-ink: #1b1a17; --print-ink-2: #5c574d; --print-line: #ddd8cc; --print-accent: #8a5a12;
  --print-land: #f2efe8; --print-relief: #c2bcae; --print-contour: #a39d8f;

  /* type */
  --font-serif: 'Newsreader', 'Newsreader Fallback', 'Iowan Old Style', Georgia, 'Times New Roman', serif;
  --font-sans: 'IBM Plex Sans', 'Plex Sans Fallback', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'IBM Plex Mono', 'Plex Mono Fallback', ui-monospace, 'SF Mono', Menlo, Consolas, 'Courier New', monospace;
  --font-caps-sans: 'Plex Sans Caps', var(--font-sans);
  --font-caps-mono: 'Plex Mono Caps', var(--font-mono);
  --font: var(--font-sans);                        /* running text, controls */
  --font-num: var(--font-mono);                    /* numbers that are read as numbers: counts, times, measures */
  --font-sci: var(--font-serif);                   /* set in italic: a bird's scientific name, a quotation */
  --t-display: var(--title-size);                  /* a page's title: one or two words */
  --t-title: clamp(1.375rem, 1.1rem + 1vw, 1.875rem);
  --t-lede: clamp(1.0625rem, .98rem + .35vw, 1.3125rem);
  --t-big: clamp(1.75rem, 1.2rem + 2vw, 3rem);      /* big numbers */
  --t-body: 1rem;
  --t-small: .875rem;
  --t-tiny: .75rem;

  /* space (4px base) */
  --s-1: .25rem; --s-2: .5rem; --s-3: .75rem; --s-4: 1rem; --s-5: 1.5rem; --s-6: 2rem; --s-7: 3rem; --s-8: 4.5rem; --s-9: 7rem;
  --gutter: clamp(.875rem, 4vw, 3.5rem);
  --measure: 38rem;
  --wide: 76rem;
  --bar-h: 3.5rem;
  --tap: 2.75rem;                                   /* the smallest thing a finger is asked to hit: 44px */
  /* the notch, the home bar, rounded corners */
  --safe-t: env(safe-area-inset-top, 0px); --safe-r: env(safe-area-inset-right, 0px); --safe-b: env(safe-area-inset-bottom, 0px); --safe-l: env(safe-area-inset-left, 0px);

  /* shape + motion */
  --r-1: 0px; --r-2: 0px; --r-3: 0px; --r-pill: 0px;      /* square; classic rounds them again */
  --ease: cubic-bezier(.22, .8, .22, 1);
  --ease-in-out: cubic-bezier(.6, 0, .2, 1);
  --fast: 140ms; --med: 320ms; --slow: 700ms;
  --blur: 0px;

  /* ---------- derived from the palette's base colours, and the roles of the type (dark = instrument; light differs just below) ---------- */
  color-scheme: dark;
  --glass: transparent;
  --glass-strong: var(--bg);
  --line: color-mix(in srgb, var(--ink) 16%, transparent);
  --line-strong: color-mix(in srgb, var(--ink) 42%, transparent);
  --accent-soft: color-mix(in srgb, var(--accent) 16%, transparent);
  --shade: rgba(0, 0, 0, .6);
  --shadow: none;
  --rule: var(--line-strong); --rule-w: 1px;       /* the rule under a page's title and over a block */
  --on: var(--accent); --on-ink: var(--accent-ink);  /* what is switched on, and the one filled button */
  --font-head: var(--font-caps-mono); --title-size: clamp(1.125rem, .8rem + 2.2vw, 2.25rem); --title-weight: 500; --title-case: none; --title-track: .12em; --title-ink: var(--accent); --title-lh: 1.2;
  --font-title: var(--font-sans); --name-weight: 600; --name-scale: 1;     /* --font-title: names of things (a bird, a film, a hike, a show) and titles inside a page */
  --font-label: var(--font-caps-mono); --label-size: .6875rem; --label-weight: 400; --label-track: .1em; --label-case: none;   /* small capitals over a number or a block (the capitals are in the face) */
  --num-weight: 400; --num-space: -.28em;          /* a space inside a monospaced figure ("86 mi") is a whole cell: draw it narrower */
  --sub-font: var(--font-caps-mono); --sub-size: .75rem; --sub-weight: 500; --sub-case: none; --sub-track: .1em;   /* a heading inside a page */
  --brand-size: .8125rem; --brand-weight: 500; --head-pad: .5rem;
}
:root[data-theme="light"] {
  color-scheme: light;
  --line: color-mix(in srgb, var(--ink) 17%, transparent);
  --line-strong: color-mix(in srgb, var(--ink) 50%, transparent);
  --accent-soft: color-mix(in srgb, var(--accent) 11%, transparent);
  --shade: color-mix(in srgb, var(--ink) 30%, transparent);
  --rule: var(--ink); --rule-w: 2px;
  --on: var(--ink); --on-ink: var(--bg);
  --font-head: var(--font-serif); --title-size: clamp(2rem, 1.4rem + 2.7vw, 3.375rem); --title-weight: 400; --title-case: none; --title-track: 0em; --title-ink: var(--ink); --title-lh: 1;
  --font-title: var(--font-serif); --name-weight: 500; --name-scale: 1.1;
  --font-label: var(--font-caps-sans); --label-size: .6875rem; --label-weight: 600; --label-track: .08em;
  --sub-font: var(--font-serif); --sub-size: 1.1875rem; --sub-weight: 600; --sub-case: none; --sub-track: 0em;
  --brand-size: 1.1875rem; --brand-weight: 600; --head-pad: .375rem;
}
/* poster: the third design on the same structure. One heavy sans for titles and numbers, thick rules, no capitals,
   no serif, no monospace; the accent fills what is on. The same in light and dark apart from the colours. */
:root[data-palette="poster"] {
  --rule: var(--ink); --rule-w: 4px;
  --on: var(--accent); --on-ink: var(--accent-ink);
  --font-head: var(--font-sans); --title-size: clamp(2.375rem, 1.6rem + 3.4vw, 4.25rem); --title-weight: 700; --title-case: none; --title-track: 0em; --title-ink: var(--ink); --title-lh: 1;
  --font-title: var(--font-sans); --name-weight: 600; --name-scale: 1;
  --font-label: var(--font-sans); --label-size: .75rem; --label-weight: 600; --label-track: 0em; --label-case: none;
  --font-num: var(--font-sans); --num-weight: 700; --num-space: 0em; --font-sci: var(--font-sans);
  --sub-font: var(--font-sans); --sub-size: 1.125rem; --sub-weight: 700; --sub-case: none; --sub-track: 0em;
  --brand-size: 1.0625rem; --brand-weight: 700; --head-pad: .5rem;
}
/* classic: THE DEFAULT, the soft look (the menu calls it Soft; the key stays "classic"). One friendly sans for
   everything, round corners, glass, a soft shadow, the drifting specks. What was wrong with it is fixed here and in
   look.css ("the soft look"): no negative letter-spacing anywhere (the face's own word gap is narrow, 0.17em, so
   --word-gap widens it to an ordinary one), a plain type scale, tabular figures where numbers are read. */
:root[data-palette="classic"] {
  --font: 'Jakarta Classic', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-title: var(--font); --font-head: var(--font); --font-label: var(--font); --font-num: var(--font); --font-sci: var(--font); --num-space: 0em;
  --title-size: clamp(1.625rem, 1.25rem + 1.6vw, 2.375rem); --title-weight: 600; --title-case: none; --title-track: 0em; --title-ink: var(--ink); --title-lh: 1.12;
  --sub-font: var(--font); --sub-size: 1.0625rem; --sub-weight: 600; --sub-case: none; --sub-track: 0em; --head-pad: 0px; --rule-w: 0px;
  --label-case: none; --label-track: 0em; --num-weight: 600; --word-gap: .09em;
  --r-1: 8px; --r-2: 14px; --r-3: 22px; --r-pill: 999px; --blur: 16px;
  --glass: color-mix(in srgb, var(--ink) 4.5%, transparent);
  --glass-strong: color-mix(in srgb, var(--bg-raise) 78%, transparent);
  --line: color-mix(in srgb, var(--ink) 10%, transparent);
  --line-strong: color-mix(in srgb, var(--ink) 20%, transparent);
  --accent-soft: color-mix(in srgb, var(--accent) 14%, transparent);
  --shade: rgba(0, 0, 0, .5);
  --shadow: 0 1px 0 color-mix(in srgb, var(--ink) 4%, transparent) inset, 0 18px 40px -22px rgba(0, 0, 0, .7);
}
:root[data-palette="classic"][data-theme="light"] {
  --glass: color-mix(in srgb, var(--bg-raise) 62%, transparent);
  --glass-strong: color-mix(in srgb, var(--bg-raise) 86%, transparent);
  --line: color-mix(in srgb, var(--ink) 11%, transparent);
  --line-strong: color-mix(in srgb, var(--ink) 23%, transparent);
  --accent-soft: color-mix(in srgb, var(--accent) 11%, transparent);
  --shade: color-mix(in srgb, var(--ink) 22%, transparent);
  --shadow: 0 1px 0 color-mix(in srgb, var(--bg-raise) 70%, transparent) inset, 0 16px 34px -22px color-mix(in srgb, var(--ink) 40%, transparent);
}

/* =====================================================================================================
   Palettes. Base colours only. The selectors are not tied to <html>, so a swatch in the colour menu can carry
   data-palette + data-theme itself and show another palette's colours.
     surfaces  --bg (page) --bg-raise (cards, charts) --bg-sunk
     ink       --ink --ink-2 --ink-3 (all three pass 4.5:1 on --bg and --bg-raise) --ink-inverse
     accent    --accent (links, the current page, the house) --accent-ink (text on the accent)
     data      --c-sky (aircraft) --c-yard (birds) --c-sea (vessels) --c-quiet --c-good --c-warn --c-bad (private equity) : marks only, never text
     maps      --map-water --map-land --map-relief --map-line --map-coast
   ===================================================================================================== */

/* ---- almanac (the default). Light: a field guide on paper, ink-red for the accent. Dark: an instrument panel, graphite, one amber signal. */
:root, [data-palette="almanac"] {
  --bg: #0f1112; --bg-raise: #16191b; --bg-sunk: #090a0b;
  --ink: #e9ebe6; --ink-2: #adb2ab; --ink-3: #878d86; --ink-inverse: #0f1112;
  --accent: #ffb000; --accent-ink: #14110a;
  --c-sky: #7fb2ff; --c-yard: #f0d277; --c-sea: #45d6a8; --c-quiet: #5d6468; --c-good: #45d6a8; --c-warn: #ff7a45; --c-bad: #ff4d5e;
  --map-water: #0a0c0d; --map-land: #181c1f; --map-relief: #3f484d; --map-line: #6f7a80; --map-coast: #b6bfc3;
}
[data-theme="light"], [data-palette="almanac"][data-theme="light"] {
  --bg: #f3efe5; --bg-raise: #f9f6ee; --bg-sunk: #e8e3d6;
  --ink: #17150f; --ink-2: #4a463a; --ink-3: #696455; --ink-inverse: #f9f6ee;
  --accent: #a8281a; --accent-ink: #fff7ee;
  --c-sky: #1f4fa3; --c-yard: #9a5d0a; --c-sea: #0b7a66; --c-quiet: #a29c8b; --c-good: #0b7a66; --c-warn: #b4541a; --c-bad: #c42232;
  --map-water: #d3dfe3; --map-land: #f1ecdf; --map-relief: #b9b19c; --map-line: #968d78; --map-coast: #4f4b3f;
}

/* ---- chart. Light: a sea chart, buff land and pale blue water, navy ink, the magenta of chart notes. Dark: the same chart at night. */
[data-palette="chart"] {
  --bg: #08131d; --bg-raise: #0e1b28; --bg-sunk: #050d15;
  --ink: #e2ebf3; --ink-2: #a5b4c3; --ink-3: #8092a3; --ink-inverse: #08131d;
  --accent: #6fd6ee; --accent-ink: #04141b;
  --c-sky: #f0a6d8; --c-yard: #f1c75b; --c-sea: #5fe0b4; --c-quiet: #4f6072; --c-good: #5fe0b4; --c-warn: #ff8a5c; --c-bad: #ff4d5e;
  --map-water: #050d15; --map-land: #122231; --map-relief: #35506a; --map-line: #63809b; --map-coast: #a9c0d6;
}
[data-palette="chart"][data-theme="light"] {
  --bg: #f1f3ef; --bg-raise: #f9faf7; --bg-sunk: #e3e7e2;
  --ink: #10222f; --ink-2: #3f5263; --ink-3: #5a6b7a; --ink-inverse: #f9faf7;
  --accent: #9c1f76; --accent-ink: #fff5fb;
  --c-sky: #9c1f76; --c-yard: #8f5b08; --c-sea: #0c6f8f; --c-quiet: #98a4ab; --c-good: #0b7a66; --c-warn: #b4541a; --c-bad: #c42232;
  --map-water: #cfe2ee; --map-land: #f4edd4; --map-relief: #c3b78f; --map-line: #9d936f; --map-coast: #4b5a66;
}

/* ---- poster: white and black with one vermilion */
[data-palette="poster"] {
  --bg: #0b0b0b; --bg-raise: #161616; --bg-sunk: #050505;
  --ink: #f4f2ec; --ink-2: #b9b6ae; --ink-3: #8f8c85; --ink-inverse: #0b0b0b;
  --accent: #ff5a2a; --accent-ink: #140600;
  --c-sky: #7fb2ff; --c-yard: #f0d277; --c-sea: #45d6a8; --c-quiet: #5c5c5c; --c-good: #45d6a8; --c-warn: #ff9a3d; --c-bad: #ff4d5e;
  --map-water: #050505; --map-land: #161616; --map-relief: #3d3d3d; --map-line: #707070; --map-coast: #b5b5b5;
}
[data-palette="poster"][data-theme="light"] {
  --bg: #f7f6f2; --bg-raise: #ffffff; --bg-sunk: #ebe9e3;
  --ink: #0c0c0c; --ink-2: #45433f; --ink-3: #66635d; --ink-inverse: #ffffff;
  --accent: #c93408; --accent-ink: #ffffff;
  --c-sky: #1f4fa3; --c-yard: #9a5d0a; --c-sea: #0b7a66; --c-quiet: #a3a09a; --c-good: #0b7a66; --c-warn: #a4560e; --c-bad: #c42232;
  --map-water: #d9e2e6; --map-land: #f4f2ec; --map-relief: #bdb9ae; --map-line: #99958a; --map-coast: #4a4843;
}

/* ---- mono: black and white, nothing else (data marks are steps of grey) */
[data-palette="mono"] {
  --bg: #000000; --bg-raise: #0c0c0c; --bg-sunk: #000000;
  --ink: #f5f5f5; --ink-2: #b8b8b8; --ink-3: #8e8e8e; --ink-inverse: #000000;
  --accent: #ffffff; --accent-ink: #000000;
  --c-sky: #f0f0f0; --c-yard: #c8c8c8; --c-sea: #7c7c7c; --c-quiet: #555555; --c-good: #f0f0f0; --c-warn: #a6a6a6; --c-bad: #ececec;
  --map-water: #000000; --map-land: #111111; --map-relief: #3d3d3d; --map-line: #707070; --map-coast: #b5b5b5;
}
[data-palette="mono"][data-theme="light"] {
  --bg: #ffffff; --bg-raise: #fafafa; --bg-sunk: #eeeeee;
  --ink: #0a0a0a; --ink-2: #474747; --ink-3: #636363; --ink-inverse: #ffffff;
  --accent: #000000; --accent-ink: #ffffff;
  --c-sky: #111111; --c-yard: #3c3c3c; --c-sea: #7a7a7a; --c-quiet: #a8a8a8; --c-good: #111111; --c-warn: #5a5a5a; --c-bad: #1c1c1c;
  --map-water: #e2e2e2; --map-land: #f7f7f7; --map-relief: #c4c4c4; --map-line: #a0a0a0; --map-coast: #666666;
}

/* ---- classic: near-black with a lamp-lit accent, or warm paper-white (the first look) */
[data-palette="classic"] {
  --bg: #090b0e; --bg-raise: #0f1216; --bg-sunk: #06080a;
  --ink: #edebe6; --ink-2: #b3b1aa; --ink-3: #8b8a85; --ink-inverse: #0b0d10;
  --accent: #e2c08f; --accent-ink: #1a1408;
  --c-sky: #6892e0; --c-yard: #bf8a2e; --c-sea: #2fa98b; --c-quiet: #5b6068; --c-good: #2fa98b; --c-warn: #d08a3a; --c-bad: #ff4d5e;
  --map-water: #06090d; --map-land: #12161c; --map-relief: #39414c; --map-line: #6c7683; --map-coast: #aab3bf;
}
[data-palette="classic"][data-theme="light"] {
  --bg: #f5f3ee; --bg-raise: #fbfaf7; --bg-sunk: #ebe8e1;
  --ink: #1b1a17; --ink-2: #55524b; --ink-3: #6b675e; --ink-inverse: #fbfaf7;
  --accent: #8a5a12; --accent-ink: #fff8ea;
  --c-sky: #3564b5; --c-yard: #a96c12; --c-sea: #0e8a72; --c-quiet: #9a968c; --c-good: #0e8a72; --c-warn: #a8611a; --c-bad: #c42232;
  --map-water: #dde4e9; --map-land: #f2efe8; --map-relief: #c2bcae; --map-line: #a39d8f; --map-coast: #6f6a5f;
}

/* ---- system.css */
/* rohin.me - design system: base, the frame (top bar, pages, panels) and the reusable pieces (chips, stats,
   buttons, charts, tables). Scene-specific layout lives in scenes.css and scene-<id>.css.

   Two layers. The first part of this file is the structure every colour version shares, and it is also the
   "classic" version as it stands. The last part, "THE LOOK", restyles the frame and the shared pieces for every
   version but classic: square, ruled, three type families with fixed jobs (see tokens.css). css/look.css, loaded
   last, does the same for the pieces that belong to one page.

   THE FRAME. The document never scrolls. <main class="deck"> is exactly one screen (100dvh); every
   <section class="scene"> is a page laid over it, one shown at a time. core.js moves between pages (the dots and
   the index in the top bar, a sideways swipe on touch screens, the arrow and Page keys) and slides them.
   A page is a column: .scene-head (one row: the title, then tools on the right) and .scene-visual (the rest).
   Long content scrolls inside its own panel, never the page. See README.md, "The page model". */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--bg); height: 100%; }
body {
  margin: 0; min-height: 100%; background: var(--bg); color: var(--ink);
  font: 400 var(--t-body)/1.55 var(--font); font-optical-sizing: auto; word-spacing: var(--word-gap, normal);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
}
/* nothing scrolls the document: not a finger, not a link to "#id", not focus */
html.js, html.js body { height: 100%; overflow: hidden; overflow: clip; overscroll-behavior: none; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
img, canvas, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
b, strong { font-weight: 600; }
::selection { background: var(--accent-soft); color: var(--ink); }

:focus { outline: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
h1:focus-visible, h2:focus-visible, h3:focus-visible { outline: none; }

.skip { position: fixed; left: var(--s-4); top: -4rem; z-index: 100; padding: var(--s-2) var(--s-4); background: var(--accent); color: var(--accent-ink); border-radius: var(--r-pill); font-weight: 600; transition: top var(--fast) var(--ease); }
.skip:focus { top: calc(var(--s-3) + var(--safe-t)); }
.num, .stat-num, .chart-tip, .table .num, time { font-variant-numeric: tabular-nums lining-nums; }
.ico { flex: none; }

/* the dust of the soft look: one bitmap, twice the screen tall (the same dots in both halves), slid up by one half for
   ever. Only a transform moves, so the compositor does it alone; core.js stops the drift (data-specks="still") while
   the page shown draws a map or a 3D picture, with reduced motion and in a hidden tab. */
#specks { position: fixed; left: 0; top: 0; width: 100%; height: 200%; max-width: none; z-index: 0; pointer-events: none; will-change: transform; animation: specks-drift 260s linear infinite; }
:root[data-specks="still"] #specks, :root[data-specks="off"] #specks { animation: none; will-change: auto; }
:root[data-specks="off"] #specks { visibility: hidden; }
@keyframes specks-drift { to { transform: translate3d(0, -50%, 0); } }

/* ------------------------------------------------------------ top bar: brand, page dots, index, appearance */
.bar {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: calc(var(--bar-h) + var(--safe-t));
  padding: var(--safe-t) max(var(--gutter), var(--safe-r)) 0 max(var(--gutter), var(--safe-l));
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: var(--s-3);
  background: linear-gradient(to bottom, color-mix(in srgb, var(--bg) 92%, transparent) 0%, color-mix(in srgb, var(--bg) 70%, transparent) 70%, color-mix(in srgb, var(--bg) 0%, transparent) 100%);
}
.brand { display: inline-flex; align-items: center; gap: .6rem; min-height: var(--tap); font-weight: 600; justify-self: start; padding: 0 .2rem; }
.brand-mark { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); transition: box-shadow var(--med) var(--ease); }
.brand:hover .brand-mark { box-shadow: 0 0 0 7px var(--accent-soft); }

/* The dots. With a mouse each dot is a link. Under a finger the whole strip is one control, 44px tall: touch it and
   slide, the name of the page under the finger shows below, and lifting the finger goes there. */
.rail { position: relative; display: flex; align-items: center; height: var(--tap); touch-action: none; -webkit-user-select: none; user-select: none; }
.rail-dot { position: relative; flex: 0 0 22px; height: var(--tap); display: grid; place-items: center; }
.rail-dot::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--ink-2); opacity: .7; transition: transform var(--med) var(--ease), background var(--med), opacity var(--med), width var(--med) var(--ease); }
.rail-dot[data-current]::before { width: 14px; border-radius: 3px; background: var(--accent); opacity: 1; }
.rail-dot[data-aim]::before { transform: scale(1.7); background: var(--ink); opacity: 1; }
.rail-dot:focus-visible { outline-offset: -8px; }
@media (hover: hover) {
  .rail-dot:hover::before { opacity: 1; transform: scale(1.5); background: var(--ink); }
  .rail-dot[data-current]:hover::before { transform: none; background: var(--accent); }
  .rail-dot::after { content: attr(data-tip); position: absolute; top: 100%; left: 50%; translate: -50% -4px; padding: .2rem .6rem; white-space: nowrap; font-size: var(--t-tiny); color: var(--ink); background: var(--bg-raise); border: 1px solid var(--line-strong); border-radius: var(--r-pill); opacity: 0; pointer-events: none; transition: opacity var(--fast), translate var(--fast) var(--ease); }
  .rail-dot:hover::after, .rail-dot:focus-visible::after { opacity: 1; translate: -50% 0; }
}
.rail-tip { position: absolute; top: calc(100% - 2px); left: 0; translate: -50% 0; padding: .3rem .75rem; white-space: nowrap; font-size: var(--t-small); font-weight: 500; color: var(--accent-ink); background: var(--accent); border-radius: var(--r-pill); pointer-events: none; z-index: 2; }

.bar-end { justify-self: end; display: flex; align-items: center; gap: var(--s-2); }
.index-btn, .look-btn { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; height: var(--tap); min-width: var(--tap); padding: 0 .9rem 0 .75rem; border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--glass); font-size: var(--t-small); font-weight: 500; backdrop-filter: blur(var(--blur)); -webkit-backdrop-filter: blur(var(--blur)); transition: border-color var(--fast), background var(--fast), transform var(--fast) var(--ease); }
.index-btn:hover, .look-btn:hover { border-color: var(--line-strong); }
.index-btn:active, .look-btn:active { transform: scale(.97); }
.index-now { color: var(--ink-2); max-width: 9.5rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-variant-numeric: tabular-nums; }
.look-btn { gap: .2rem; padding: 0 .55rem 0 .7rem; color: var(--ink-2); }
.look-dot { width: 16px; height: 16px; border-radius: 50%; background: linear-gradient(135deg, var(--accent) 0 50%, var(--ink) 50% 100%); box-shadow: 0 0 0 1px var(--line-strong); }
.theme { display: inline-flex; padding: 1px; border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--glass); backdrop-filter: blur(var(--blur)); -webkit-backdrop-filter: blur(var(--blur)); }
.theme button { min-width: var(--tap); height: var(--tap); display: inline-flex; align-items: center; justify-content: center; gap: .4rem; border-radius: var(--r-pill); color: var(--ink-2); font-size: var(--t-small); font-weight: 500; transition: color var(--fast), background var(--fast), transform var(--fast) var(--ease); }
.theme button:hover { color: var(--ink); }
.theme button:active { transform: scale(.94); }
.theme button[aria-pressed="true"] { color: var(--ink); background: color-mix(in srgb, var(--ink) 13%, transparent); }
.theme-menu { display: none; }
.theme-menu button { flex: 1 1 0; min-width: 0; height: var(--tap); padding: 0 .4rem; gap: .3rem; }   /* three equal parts of the colour menu: never wider than it (the menu showed a sideways scrollbar under 900px, 11-14) */

/* the two menus that drop from the bar: the index and the colours */
.bar-panel { position: absolute; top: calc(100% - .25rem); right: max(var(--gutter), var(--safe-r)); width: min(21rem, calc(100vw - 2 * var(--gutter))); max-height: calc(100vh - var(--bar-h) - var(--safe-t) - var(--safe-b) - .75rem); max-height: calc(100dvh - var(--bar-h) - var(--safe-t) - var(--safe-b) - .75rem); overflow-y: auto; overscroll-behavior: contain; padding: var(--s-2); border-radius: var(--r-3); border: 1px solid var(--line-strong); background: var(--bg-raise); box-shadow: var(--shadow); animation: drop var(--med) var(--ease); }
.index-panel a, .index-sources, .look-list button { display: flex; align-items: center; gap: .85rem; width: 100%; min-height: var(--tap); padding: 0 .8rem; border-radius: var(--r-2); color: var(--ink-2); text-align: left; font-size: var(--t-body); transition: background var(--fast), color var(--fast); }
.index-panel a:hover, .index-sources:hover, .look-list button:hover { background: color-mix(in srgb, var(--ink) 7%, transparent); color: var(--ink); }
.index-panel a[data-current] { color: var(--ink); background: var(--accent-soft); }
.index-panel a[data-current] .num { color: var(--ink); }
.index-panel .num { font-size: var(--t-tiny); color: var(--ink-3); min-width: 1.4rem; }
/* the index is the table of contents: each page's name, and under it what it is in a word or two */
.index-panel a { min-height: 3.25rem; padding-block: .3rem; }
.ix-name { display: grid; gap: .05rem; min-width: 0; line-height: 1.25; }
.ix-what { font-size: var(--t-tiny); color: var(--ink-3); font-family: var(--font-body, inherit); text-transform: none; letter-spacing: 0; }
.index-panel a[data-current] .ix-what, .index-panel a:hover .ix-what { color: var(--ink-2); }
.index-caret { display: none; }
/* a short screen (a small phone, a phone on its side): the label sits beside the name, one row per page; the list scrolls if it must */
@media (max-height: 700px) { .index-panel a { min-height: var(--tap); padding-block: 0; } .ix-name { grid-auto-flow: column; justify-content: start; align-items: baseline; gap: .55rem; } }
.index-sources { margin-top: var(--s-1); border-top: 1px solid var(--line); border-radius: 0 0 var(--r-2) var(--r-2); font-size: var(--t-small); }
.index-sources .ico { color: var(--ink-3); }
.look-panel { width: min(15rem, calc(100vw - 2 * var(--gutter))); display: grid; gap: var(--s-2); }
.look-list { display: grid; }
.look-list button[aria-pressed="true"] { color: var(--ink); background: var(--accent-soft); }
.swatch { flex: none; width: 2.5rem; height: 1.5rem; border-radius: var(--r-pill); background: var(--bg); border: 1px solid color-mix(in srgb, var(--ink) 35%, transparent); display: flex; align-items: center; justify-content: center; gap: 4px; }
.swatch i { width: 8px; height: 8px; border-radius: 50%; background: var(--ink); }
.swatch i + i { background: var(--accent); }
@keyframes drop { from { opacity: 0; transform: translateY(-6px) scale(.985); } }

/* tablets upright and phones: the dots take the middle, the index is its icon, light / dark moves into the colour menu */
@media (max-width: 900px) {
  .bar { grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--s-2); }
  .rail { justify-content: center; min-width: 0; }
  .rail-dot { flex: 1 1 0; min-width: 0; max-width: 22px; }
  /* phones: the index is a small round ≡ again (Rohin 11-16, "this is pretty bulky"): the page's name is already the
     title under it; its aria-label still says "Index, <page>" */
  .index-word, .index-now, .index-caret { display: none; }
  .index-ico { display: inline-flex; }
  .index-btn { width: var(--tap); min-width: var(--tap); padding: 0; justify-content: center; gap: 0; }
  .theme-bar { display: none; }
  .theme-menu { display: flex; }
  .bar-end { gap: .375rem; }
}
@media (max-width: 420px) { .brand { gap: .45rem; } .look-btn { padding: 0 .3rem 0 .45rem; } }
/* phones: the page's name takes the room the ≡ had; the colour button is its mark alone and the current dot is a little
   shorter, so twelve dots still sit apart */
@media (max-width: 520px) {
  .bar { gap: .375rem; }
  .look-btn { width: var(--tap); padding: 0; }
  .look-btn .ico { display: none; }
  .rail-dot[data-current]::before { width: 10px; }
}
/* the narrowest phones: the brand is its mark (still "Rohin, first page" to a screen reader), so the dots keep their room */
@media (max-width: 380px) { .brand > span { display: none; } .brand { min-width: var(--tap); justify-content: center; } }
/* 320px (the first iPhone SE): everything in the bar a little tighter, the title row's own buttons too */
@media (max-width: 340px) {
  .bar { gap: .25rem; }
  .bar-end { gap: .25rem; }
  .rail-dot[data-current]::before { width: 8px; }
  .scene-head { gap: var(--s-1, .25rem); }
  .scene-head h1, .scene-head h2 { font-size: calc(var(--t-display) * .78); }
  .scene-tools { gap: .25rem; }
  .data-btn { padding: 0 .8rem; }
  .data-btn .ico { display: none; }
  .scene-tools .btn { padding-inline: .6rem; }
  .scene-tools .seg button { padding-inline: .45rem; white-space: nowrap; }
}

/* ------------------------------------------------------------ the deck and its pages */
.deck { position: relative; z-index: 1; }
.js .deck { position: fixed; inset: 0 0 auto 0; height: 100vh; height: 100dvh; overflow: hidden; overflow: clip; touch-action: pan-y pinch-zoom; }
/* A panel that scrolls up and down inside a page hands sideways drags to the frame, like the rest of the page. Without this the
   browser keeps every drag that starts in it (a scroll container answers for its own touch-action), and the page cannot be swiped from a list. */
.ow-list, .ow-detail, .sc-list, .sc-card, .sf-list, .sf-card-body, .machine-side, .bird-rows, .cty-list, .cty-card, .hike-pane, .hk-data-body, .sig-side, .sig.is-flat .sig-bands { touch-action: pan-y pinch-zoom; }
.scene { position: relative; display: flex; flex-direction: column; min-width: 0;
  padding: calc(var(--bar-h) + var(--safe-t) + var(--s-1)) max(var(--gutter), var(--safe-r)) max(var(--s-3), var(--safe-b)) max(var(--gutter), var(--safe-l)); }
.js .scene { position: absolute; inset: 0; overflow: hidden; overflow: clip; visibility: hidden; }
/* round 33 (speed): each page is its own island for layout and paint (its box is the screen's, whatever it holds), so a
   change inside one page (a feed arriving, a neighbour being built) no longer makes the browser lay out all twelve */
.js .scene { contain: strict; }
.js .scene[data-current], .js .scene[data-show] { visibility: visible; }
.js .scene[data-show] { will-change: transform; }
.js .scene:not([data-current]) *, .js .scene:not([data-current]) *::before, .js .scene:not([data-current]) *::after { animation-play-state: paused !important; }
.scene-inner { position: relative; flex: 1; min-height: 0; width: 100%; max-width: var(--wide); margin: 0 auto; display: flex; flex-direction: column; gap: var(--s-2); }
.scene-head { flex: none; display: flex; align-items: center; gap: var(--s-3); min-height: var(--tap); min-width: 0; }
h1, h2 { font-family: var(--font-head); font-size: var(--t-display); font-weight: var(--title-weight); letter-spacing: var(--title-track); line-height: var(--title-lh); text-transform: var(--title-case); color: var(--title-ink); white-space: nowrap; }
h3 { font-size: var(--sub-size); font-weight: 600; line-height: 1.3; }
.scene-tools { margin-left: auto; display: flex; align-items: center; gap: var(--s-2); min-width: 0; }
.scene-visual { position: relative; flex: 1; min-height: 0; min-width: 0; }
/* a screen too short for a page (a phone on its side): the page's own area scrolls, the document still does not */
@media (max-height: 520px) { .js .scene-visual { overflow-y: auto; overscroll-behavior: contain; } }
/* a feed that is not live: one short label in the page's tools */
.feed-note { flex: none; display: inline-flex; align-items: center; gap: .45rem; min-height: 2rem; padding: 0 .8rem; border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--glass); font-size: var(--t-small); color: var(--ink-2); white-space: nowrap; }
.feed-note::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--c-warn); }
.feed-note[data-state="demo"]::before { background: var(--c-quiet); }      /* a sample is calm: it is not a fault */
/* the shared empty word */
.none { font-size: var(--t-small); color: var(--ink-2); }
/* one way back: "‹ Where-you-go" at the left of the row under the title (core.js backButton) */
.back-btn { flex: none; gap: .2rem; min-height: var(--tap); padding: 0 1rem 0 .6rem; white-space: nowrap; }
.back-btn .ico { color: var(--accent); }
.back-btn[hidden] { display: none; }
/* loading: a soft, still shape where the picture will be, never a blank picture with its buttons. Until a page's code has
   drawn it (data-ready), its picture's box holds a quiet wash; a real map holds one over itself until its first full
   frame (data-map="on"), and its zoom buttons wait with it. No spinner, no motion. */
.js .scene:not([data-ready]) [data-visual]:not(:has(> .feed-note))::before { content: ''; position: absolute; inset: 0; z-index: 0; border-radius: var(--r-3); pointer-events: none;
  background: radial-gradient(70% 55% at 38% 42%, color-mix(in srgb, var(--ink) 5%, transparent), transparent 70%), color-mix(in srgb, var(--ink) 3%, transparent); }
.js .scene-opening:not([data-ready]) [data-visual]::before { border-radius: 0; background: radial-gradient(60% 45% at 45% 40%, color-mix(in srgb, var(--map-water) 70%, transparent), transparent 72%), var(--map-land); }
.rmap::after { content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0; transition: opacity var(--med) var(--ease); background: radial-gradient(60% 45% at 45% 40%, color-mix(in srgb, var(--map-water) 70%, transparent), transparent 72%), var(--map-land); }
.rmap:not([data-map="on"])::after { opacity: 1; transition: none; }
:has(> .rmap:not([data-map="on"])) > .rmap-zoom { visibility: hidden; }
/* the narrowest phones: the note gives way (it is cut short) so the title and the page's own buttons stay on the page */
@media (max-width: 400px) {
  .scene-head { gap: var(--s-2); }
  .feed-note:not([hidden]) { display: block; flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; padding: 0 .65rem; line-height: calc(2rem - 2px); }
  .feed-note::before { display: inline-block; margin-right: .4rem; vertical-align: .08em; }
}
.side-title { font-size: var(--t-small); font-weight: 500; color: var(--ink-2); }

/* "Data": a button in the page's tools; the panel lies over the page and scrolls inside itself */
.data-btn { flex: none; min-height: var(--tap); padding: 0 1.1rem 0 .85rem; }
.data-btn .ico, .data-close .ico, .sheet-close .ico { color: var(--accent); }
.data-panel { position: absolute; inset: 0; z-index: 6; display: grid; grid-template-rows: auto minmax(0, 1fr); gap: var(--s-3); padding: var(--s-4); border-radius: var(--r-3); border: 1px solid var(--line-strong); background: var(--bg-raise); box-shadow: var(--shadow); animation: drop var(--med) var(--ease); }
.data-panel-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); }
.data-panel-head h3 { font-family: var(--font-title); font-size: 1.125rem; }
.data-close { min-height: var(--tap); padding: 0 1.1rem 0 .85rem; }
.data-panel-body { min-height: 0; overflow-y: auto; overscroll-behavior: contain; display: grid; gap: var(--s-4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); align-content: start; padding: 1px .3rem 1px 1px; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
.data-block { min-width: 0; padding: var(--s-4); border-radius: var(--r-2); border: 1px solid var(--line); background: var(--glass); display: grid; gap: var(--s-3); align-content: start; }
.data-block.span-2 { grid-column: span 2; }
.data-block.span-all { grid-column: 1 / -1; }
.data-block > h3 { color: var(--ink); }
.data-block p { color: var(--ink-2); font-size: var(--t-small); line-height: 1.6; max-width: 40rem; }
@media (max-width: 720px) { .data-block.span-2 { grid-column: auto; } .data-panel { padding: var(--s-3); border-radius: var(--r-2); } .data-block { padding: var(--s-3); } }

/* a sheet (<dialog class="sheet">): centred on wide screens, up from the bottom edge on phones */
.sheet { width: min(34rem, calc(100vw - 2 * var(--gutter))); max-height: min(44rem, 88vh); max-height: min(44rem, 88dvh); padding: var(--s-4) var(--s-5); border: 1px solid var(--line-strong); border-radius: var(--r-3); background: var(--bg-raise); color: var(--ink); box-shadow: var(--shadow); overflow-y: auto; overscroll-behavior: contain; }
.sheet[open] { display: grid; gap: var(--s-3); align-content: start; animation: drop var(--med) var(--ease); }
.sheet::backdrop { background: var(--shade); }
.sheet-top { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); }
.sheet-top h3 { font-family: var(--font-title); font-size: 1.125rem; }
.sheet-close { min-height: var(--tap); padding: 0 1.1rem 0 .85rem; }
.sources div { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: var(--s-3); padding: .6rem 0; border-top: 1px solid var(--line); font-size: var(--t-small); }
.sources dt { color: var(--ink-2); }
.sources dd { color: var(--ink); }
.sources a { text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: .2em; }
@media (max-width: 720px) {
  .sheet { position: fixed; inset: auto 0 0 0; width: 100%; max-width: none; margin: 0; padding: var(--s-4) max(var(--gutter), var(--safe-r)) calc(var(--s-4) + var(--safe-b)) max(var(--gutter), var(--safe-l)); border: 0; border-top: 1px solid var(--line-strong); border-radius: var(--r-3) var(--r-3) 0 0; }
  .sheet[open] { animation: sheet-up var(--med) var(--ease); }
  .sources div { grid-template-columns: 7rem minmax(0, 1fr); }
}
@keyframes sheet-up { from { transform: translateY(18%); opacity: 0; } }

/* without scripts: the pages are a plain list of titles, one under the other */
html:not(.js) .scene { min-height: 0; padding-top: var(--s-5); padding-bottom: var(--s-5); }
html:not(.js) .scene:first-of-type { padding-top: calc(var(--bar-h) + var(--s-5)); }
html:not(.js) .rail, html:not(.js) .bar-end { display: none; }
.noscript { position: relative; z-index: 2; padding: var(--s-4) var(--gutter); color: var(--ink-2); }

/* ------------------------------------------------------------ glass, chips, buttons, segmented control */
.glass { border: 1px solid var(--line); border-radius: var(--r-3); background: var(--glass); backdrop-filter: blur(var(--blur)) saturate(1.2); -webkit-backdrop-filter: blur(var(--blur)) saturate(1.2); box-shadow: var(--shadow); }
.lift { transition: transform var(--med) var(--ease), border-color var(--med), background var(--med); }
@media (hover: hover) { .lift:hover { transform: translateY(-2px); border-color: var(--line-strong); } }
.lift:active { transform: scale(.985); }

.chips { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.chip { display: inline-flex; align-items: center; gap: .5rem; min-height: 2.25rem; padding: .4rem .85rem .4rem .7rem; border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--glass); font-size: var(--t-small); color: var(--ink-2); backdrop-filter: blur(var(--blur)); -webkit-backdrop-filter: blur(var(--blur)); }
.chip b { color: var(--ink); font-weight: 600; }
.chip .ico { color: var(--ink-3); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 2.75rem; padding: 0 1.2rem; border-radius: var(--r-pill); font-weight: 600; font-size: var(--t-small); background: var(--ink); color: var(--ink-inverse); transition: transform var(--fast) var(--ease), opacity var(--fast), box-shadow var(--med); }
.btn:hover { box-shadow: 0 0 0 5px color-mix(in srgb, var(--ink) 10%, transparent); }
.btn:active { transform: scale(.96); }
.btn-quiet { background: var(--glass); color: var(--ink); border: 1px solid var(--line); font-weight: 500; backdrop-filter: blur(var(--blur)); -webkit-backdrop-filter: blur(var(--blur)); }
.btn-quiet:hover { border-color: var(--line-strong); box-shadow: none; }
.link { color: var(--ink); border-bottom: 1px solid var(--line-strong); transition: border-color var(--fast), color var(--fast); }
.link:hover { border-color: var(--accent); color: var(--accent); }

.seg { display: inline-flex; padding: 3px; border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--glass); }
.seg button { min-height: var(--tap); padding: 0 .95rem; border-radius: var(--r-pill); font-size: var(--t-small); font-weight: 500; color: var(--ink-2); transition: color var(--fast), background var(--med) var(--ease), transform var(--fast) var(--ease); }
.seg button:hover { color: var(--ink); }
.seg button:active { transform: scale(.96); }
.seg button[aria-pressed="true"] { color: var(--ink); background: color-mix(in srgb, var(--ink) 12%, transparent); }

.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--c-good); box-shadow: 0 0 0 0 color-mix(in srgb, var(--c-good) 60%, transparent); animation: live 2.6s var(--ease-in-out) infinite; flex: none; }
.live-dot[data-state="stale"], .live-dot[data-state="demo"], .live-dot[data-state="down"] { background: var(--ink-3); animation: none; }
@keyframes live { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--c-good) 55%, transparent); } 70%, 100% { box-shadow: 0 0 0 7px transparent; } }

/* ------------------------------------------------------------ stats: big confident numbers */
.stats { display: grid; gap: var(--s-3); grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr)); }
.stat { display: grid; gap: .15rem; align-content: start; padding: var(--s-4) var(--s-4) var(--s-4); border-radius: var(--r-2); border: 1px solid var(--line); background: var(--glass); backdrop-filter: blur(var(--blur)); -webkit-backdrop-filter: blur(var(--blur)); min-width: 0; }
.stat-num { font-size: clamp(1.5rem, 1.1rem + 1.3vw, 2.125rem); font-weight: 600; line-height: 1.15; color: var(--ink); }
.stat-big .stat-num { font-size: var(--t-big); }
.stat-label { font-size: var(--t-small); color: var(--ink-2); line-height: 1.35; }
.stat-sub { font-size: var(--t-tiny); color: var(--ink-3); line-height: 1.4; margin-top: .15rem; }

/* ------------------------------------------------------------ charts */
.chart { display: grid; gap: .45rem; min-width: 0; }
.chart-title { font-size: var(--t-small); color: var(--ink-2) !important; }
.chart-plot { position: relative; border-radius: var(--r-1); touch-action: pan-y; /* a finger runs along the chart; the page does not swipe from here (core.js) */ cursor: crosshair; border-bottom: 1px solid var(--line-strong); }
.chart-plot:focus-visible { outline-offset: 6px; }
.chart-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.chart-svg .bar { opacity: .8; transition: opacity var(--fast); }
.chart-plot:hover .bar, .chart-plot:focus .bar { opacity: .45; }
.chart-svg .bar.is-on { opacity: 1 !important; }
.chart-svg .bar.is-mark { opacity: 1; }
.chart-svg .line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart-svg .area { opacity: .13; }
.chart-svg .grid { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.chart-max { position: absolute; top: -.2rem; right: 0; font-size: .6875rem; color: var(--ink-3); pointer-events: none; }
.chart-hair { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--line-strong); pointer-events: none; }
.chart-dot { position: absolute; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%; box-shadow: 0 0 0 2px var(--bg-raise); pointer-events: none; }
.chart-tip { position: absolute; bottom: calc(100% + 6px); translate: -50% 0; z-index: 3; display: grid; gap: .1rem; min-width: 7rem; padding: .45rem .7rem; border-radius: var(--r-2); border: 1px solid var(--line-strong); background: var(--glass-strong); backdrop-filter: blur(var(--blur)); -webkit-backdrop-filter: blur(var(--blur)); font-size: var(--t-tiny); color: var(--ink-2); pointer-events: none; white-space: nowrap; box-shadow: var(--shadow); }
.tip-head { color: var(--ink-3); }
.tip-row { display: flex; align-items: center; gap: .4rem; }
.tip-row b { color: var(--ink); font-size: var(--t-small); }
.tip-key { width: 10px; height: 2px; border-radius: 2px; flex: none; }
.chart-ticks { position: relative; height: 1.1rem; font-size: .6875rem; color: var(--ink-3); }
.chart-ticks span { position: absolute; translate: -50% 0; white-space: nowrap; }
.chart-ticks span:first-child { translate: 0 0; left: 0 !important; }
.chart-ticks span:last-child { translate: -100% 0; left: 100% !important; }
.legend { display: flex; flex-wrap: wrap; gap: .35rem 1rem; font-size: var(--t-tiny); color: var(--ink-2); }
.legend span { display: inline-flex; align-items: center; gap: .4rem; }
.key-line { width: 14px; height: 2px; border-radius: 2px; }
.key-dot { width: 8px; height: 8px; border-radius: 50%; }

.table-wrap { overflow-x: auto; margin: 0 calc(-1 * var(--s-2)); }
.table { width: 100%; border-collapse: collapse; font-size: var(--t-small); }
.table caption { text-align: left; color: var(--ink-3); font-size: var(--t-tiny); padding: 0 var(--s-2) var(--s-2); }
.table th, .table td { padding: .5rem var(--s-2); text-align: left; border-bottom: 1px solid var(--line); font-weight: 400; color: var(--ink-2); overflow-wrap: anywhere; }
.table .num, .table td:has(> time) { white-space: nowrap; overflow-wrap: normal; }
.table tbody th { overflow-wrap: break-word; }   /* a row name (a time, a word) keeps its words whole */
.table thead th { overflow-wrap: normal; hyphens: auto; }   /* words wrap inside their cell, so a table is never wider than its panel (11-14: no sideways scrollbars) */
@media (max-width: 520px) { .table th, .table td { padding-left: .3rem; padding-right: .3rem; } .table thead th { overflow-wrap: anywhere; } }   /* many columns on a phone: tighter, and a long label may break */
.table thead th { color: var(--ink-3); font-size: var(--t-tiny); font-weight: 500; }
.table tbody th { color: var(--ink); }
.table .num { text-align: right; }
.table tbody tr:last-child th, .table tbody tr:last-child td { border-bottom: 0; }

/* =====================================================================================================
   THE LOOK: every colour version but "classic". No pills, no glass, no shadows, no boxed tiles. A block is set off
   by a rule over it and by space; a control is a word in small capitals in a plain rectangle; what is on is
   underlined or filled; numbers are in the monospace; names in --font-title. Sizes and faces come from the role
   tokens, which differ between light (almanac) and dark (instrument), so the two modes are not one design recoloured.
   Small capitals: classes below set --ls (letter-spacing) rather than letter-spacing; look.css applies it.
   ===================================================================================================== */
:root:not([data-palette="classic"]) {
  & body { font-feature-settings: normal; font-synthesis: style; line-height: 1.5; }      /* no made-up bold: the weights are 400, 600 (and 500 in the monospace) */
  & #specks { display: none; }
  & :focus-visible { border-radius: 0; outline-offset: 2px; }
  & b, & strong { font-weight: 600; }
  .skip { border-radius: 0; }
  .num, .stat-num, .chart-tip b, .chart-max, .table .num, time { font-family: var(--font-num); word-spacing: var(--num-space); }

  /* ---- top bar: the name, a ruler of pages, two quiet buttons */
  .brand { gap: .55rem; font-family: var(--font-head); font-size: var(--brand-size); font-weight: var(--brand-weight); text-transform: var(--title-case); --ls: var(--title-track); }
  .brand-mark { width: 8px; height: 8px; border-radius: 0; box-shadow: none; transition: transform var(--med) var(--ease); }
  .brand:hover .brand-mark { box-shadow: none; transform: rotate(45deg); }
  .rail-dot::before { width: 1px; height: 9px; border-radius: 0; background: var(--ink-3); opacity: 1; transition: height var(--med) var(--ease), background var(--med); }
  .rail-dot[data-current]::before { width: 2px; height: 17px; border-radius: 0; background: var(--accent); }
  .rail-dot[data-aim]::before { transform: none; height: 17px; background: var(--ink); }
  @media (hover: hover) {
    .rail-dot:hover::before { transform: none; height: 17px; background: var(--ink); }
    .rail-dot[data-current]:hover::before { background: var(--accent); }
    .rail-dot::after { padding: .25rem .55rem; border-radius: 0; border: 1px solid var(--rule); background: var(--bg-raise); font-family: var(--font-label); font-size: var(--label-size); font-weight: var(--label-weight); text-transform: var(--label-case); --ls: var(--label-track); }
  }
  .rail-tip { border-radius: 0; padding: .3rem .6rem; background: var(--on); color: var(--on-ink); font-family: var(--font-label); font-size: .75rem; font-weight: var(--label-weight); text-transform: var(--label-case); --ls: var(--label-track); }
  .index-btn, .look-btn { border: 0; border-radius: 0; background: none; backdrop-filter: none; -webkit-backdrop-filter: none; font-family: var(--font-label); font-size: .75rem; font-weight: var(--label-weight); text-transform: var(--label-case); --ls: var(--label-track); }
  .index-btn:hover, .look-btn:hover { color: var(--accent); }
  .index-btn:active, .look-btn:active { transform: none; }
  .index-btn[aria-expanded="true"], .look-btn[aria-expanded="true"] { background: var(--on); color: var(--on-ink); }
  .index-btn[aria-expanded="true"] .index-now { color: inherit; }
  .index-now { font-family: var(--font-num); text-transform: none; --ls: 0em; font-weight: 400; }
  .look-dot { width: 13px; height: 13px; border-radius: 0; box-shadow: none; outline: 1px solid var(--line-strong); outline-offset: 1px; }
  .theme { padding: 0; border: 0; border-radius: 0; background: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .theme button { border-radius: 0; border-bottom: 2px solid transparent; font-family: var(--font-label); font-size: .75rem; font-weight: var(--label-weight); text-transform: var(--label-case); --ls: var(--label-track); }
  .theme button:active { transform: none; }
  .theme button[aria-pressed="true"] { background: none; border-bottom-color: var(--on); }
  .bar-panel { padding: 0 var(--s-4) var(--s-2); border-radius: 0; border: 1px solid var(--rule); background: var(--bg-raise); box-shadow: none; }
  .index-panel a, .index-sources, .look-list button { gap: .9rem; padding: 0; border-radius: 0; border-top: 1px solid var(--line); color: var(--ink); }
  .index-panel li:first-child a, .look-list button:first-child { border-top: 0; }
  .index-panel a { font-family: var(--font-title); font-size: calc(1.0625rem * var(--name-scale)); }
  .index-panel a:hover, .index-sources:hover, .look-list button:hover { background: none; color: var(--accent); }
  .index-panel a[data-current] { background: none; color: var(--accent); }
  .index-panel .num { font-size: var(--t-tiny); color: var(--ink-3); min-width: 1.5rem; }
  .index-panel a[data-current] .num { color: var(--accent); }
  .index-sources { margin-top: 0; border-top: 1px solid var(--rule); border-radius: 0; font-family: var(--font-label); font-size: .75rem; font-weight: var(--label-weight); text-transform: var(--label-case); --ls: var(--label-track); color: var(--ink-2); }
  .look-panel { gap: 0; width: min(17rem, calc(100vw - 2 * var(--gutter))); }
  .theme-menu button { padding: 0 .2rem; gap: .35rem; }
  .look-list button { font-family: var(--font-label); font-size: .75rem; font-weight: var(--label-weight); text-transform: var(--label-case); --ls: var(--label-track); color: var(--ink-2); }
  .look-list button[aria-pressed="true"] { background: none; color: var(--ink); }
  .look-list button[aria-pressed="true"]::after { content: ''; margin-left: auto; width: 8px; height: 8px; background: var(--accent); }
  .theme-menu { border-bottom: 1px solid var(--rule); }
  .swatch { width: 2.25rem; height: 1.375rem; border-radius: 0; border: 1px solid color-mix(in srgb, var(--ink) 45%, transparent); gap: 3px; }
  .swatch i { width: 7px; height: 7px; border-radius: 0; }

  /* ---- a page: the title stands on a rule, tools at its right end */
  .scene-head { align-items: flex-end; min-height: calc(max(var(--tap), var(--title-size) * var(--title-lh)) + var(--head-pad) + var(--rule-w)); padding-bottom: var(--head-pad); border-bottom: var(--rule-w) solid var(--rule); }
  & h1, & h2 { --ls: var(--title-track); letter-spacing: var(--title-track); }
  & h3 { font-family: var(--sub-font); font-size: var(--sub-size); font-weight: var(--sub-weight); text-transform: var(--sub-case); --ls: var(--sub-track); line-height: 1.25; }
  .scene-tools { align-items: center; }
  .feed-note { min-height: 2rem; padding: 0; border: 0; border-radius: 0; background: none; font-family: var(--font-label); font-size: var(--label-size); font-weight: var(--label-weight); text-transform: var(--label-case); --ls: var(--label-track); color: var(--ink-2); }
  .feed-note::before { border-radius: 0; }
  @media (max-width: 420px) { .scene-head { gap: var(--s-2); } .feed-note { --ls: .03em; gap: .35rem; } }
  /* the narrowest phones, a long title in capitals and the Data button: the note gives way (it is cut with three dots) and the button stays on the page */
  @media (max-width: 380px) { .feed-note:not([hidden]) { display: block; flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; line-height: 2rem; } .feed-note::before { display: inline-block; margin-right: .35rem; vertical-align: .05em; } }
  .side-title { font-family: var(--font-label); font-size: var(--label-size); font-weight: var(--label-weight); text-transform: var(--label-case); --ls: var(--label-track); color: var(--ink-2); }
  .data-panel { padding: var(--s-3) 0 0; border: 0; border-radius: 0; background: var(--bg); box-shadow: none; }
  .data-panel-head h3, .sheet-top h3 { font-family: var(--font-title); font-size: calc(1.375rem * var(--name-scale)); font-weight: var(--name-weight); text-transform: none; --ls: 0em; }
  .data-panel-body { gap: var(--s-5) var(--s-6); padding: 0 .3rem 0 0; }
  .data-block { padding: var(--s-3) 0 0; border: 0; border-top: 1px solid var(--rule); border-radius: 0; background: none; }
  .sheet { border: 1px solid var(--rule); border-radius: 0; box-shadow: none; }
  .sources dt { font-family: var(--font-label); font-size: var(--label-size); font-weight: var(--label-weight); text-transform: var(--label-case); --ls: var(--label-track); padding-top: .2em; }
  @media (max-width: 720px) {
    .data-panel { padding: var(--s-2) 0 0; border-radius: 0; }
    .data-block { padding: var(--s-3) 0 0; }
    .sheet { border: 0; border-top: var(--rule-w) solid var(--rule); border-radius: 0; }
  }

  /* ---- blocks, labels, buttons, tabs */
  .glass { border: 0; border-radius: 0; background: none; backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: none; }
  @media (hover: hover) { .lift:hover { transform: none; } }
  .lift:active { transform: none; }
  .chips { gap: .1rem var(--s-4); }
  .chip { min-height: 2rem; padding: 0 0 0 .6rem; border: 0; border-left: 1px solid var(--line-strong); border-radius: 0; background: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .btn { border-radius: 0; background: var(--on); color: var(--on-ink); font-family: var(--font-label); font-size: .75rem; font-weight: var(--label-weight); text-transform: var(--label-case); --ls: var(--label-track); transition: opacity var(--fast); }
  .btn:hover { box-shadow: none; opacity: .86; }
  .btn:active { transform: none; opacity: .7; }
  .btn-quiet { background: none; color: var(--ink); border: 1px solid var(--line-strong); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .btn-quiet:hover { border-color: var(--ink); opacity: 1; }
  .data-btn .ico, .data-close .ico, .sheet-close .ico { color: currentColor; }
  .link { border-bottom: 1px solid var(--line-strong); }
  .seg { padding: 0; gap: 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: none; }
  .seg button { padding: 0 .8rem; border-radius: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; font-family: var(--font-label); font-size: .75rem; font-weight: var(--label-weight); text-transform: var(--label-case); --ls: var(--label-track); color: var(--ink-2); }
  .seg button:active { transform: none; }
  .seg button[aria-pressed="true"], .seg button[aria-selected="true"] { background: none; color: var(--ink); border-bottom-color: var(--on); }
  .live-dot { width: 6px; height: 6px; border-radius: 0; box-shadow: none; animation: none; }

  /* ---- numbers: a label in small capitals over a figure in the monospace, a rule over each */
  .stats { gap: var(--s-3) var(--s-5); }
  .stat { gap: 0; padding: .45rem 0 0; border: 0; border-top: 1px solid var(--rule); border-radius: 0; background: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .stat-num { font-weight: var(--num-weight); --ls: 0em; line-height: 1.3; }
  .stat-label { order: -1; font-family: var(--font-label); font-size: var(--label-size); font-weight: var(--label-weight); text-transform: var(--label-case); --ls: var(--label-track); color: var(--ink-2); line-height: 1.4; }
  .stat-sub { margin-top: 0; }

  /* ---- charts and tables */
  .chart-title { font-family: var(--font-label); font-size: var(--label-size); font-weight: var(--label-weight); text-transform: var(--label-case); --ls: var(--label-track); }
  .chart-plot { border-radius: 0; }
  .chart-svg .line { stroke-width: 1.5; stroke-linejoin: miter; stroke-linecap: butt; }
  .chart-dot { width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; border-radius: 0; box-shadow: 0 0 0 1px var(--bg); }
  .chart-tip { padding: .4rem .6rem; border-radius: 0; border: 1px solid var(--rule); background: var(--bg-raise); backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: none; }
  .tip-key, .key-line { border-radius: 0; }
  .key-dot { border-radius: 0; }
  .table thead th { font-family: var(--font-label); font-size: var(--label-size); font-weight: var(--label-weight); text-transform: var(--label-case); --ls: var(--label-track); color: var(--ink-2); border-bottom: 1px solid var(--rule); }
  .table tbody th { font-weight: 400; }
}

/* ------------------------------------------------------------ less motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
/* ?motion=0 (and the tests): the same as the system "reduce motion" setting */
.still *, .still *::before, .still *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
@media (forced-colors: active) { .glass, .stat, .chip, .data-block { border: 1px solid CanvasText; } }

/* ---------------------------------------------------------------- the shared map (js/map.js) */
.rmap { position: relative; overflow: hidden; touch-action: none; background: var(--map-water); -webkit-tap-highlight-color: transparent; }
.rmap-stage { position: absolute; inset: 0; background-size: cover; background-position: center; }
.rmap .maplibregl-canvas-container { position: absolute; inset: 0; cursor: grab; user-select: none; -webkit-user-select: none; }
.rmap .maplibregl-canvas-container:active { cursor: grabbing; }
.rmap .maplibregl-canvas { position: absolute; left: 0; top: 0; touch-action: none; outline: none; }
.rmap .maplibregl-canvas:focus-visible { outline: 2px solid var(--accent); outline-offset: -4px; }
.rmap .maplibregl-marker { position: absolute; top: 0; left: 0; will-change: transform; }
.rmap .maplibregl-control-container { display: none; }
/* the one control stack of every map and 3D view (js/hands.js, js/map.js buttons()): + - tilt home, top right. The Tilt button
   is also a handle: dragged, it turns and tilts the view. Home shows only once the view has moved */
.v3-turn { touch-action: none; cursor: grab; }
.v3-turn.is-drag { cursor: grabbing; color: var(--accent); }
.v3-home[hidden] { display: none; }
/* round 30, a map whose plain drag tilts and turns it (Now; js/map.js Orbit): the 3D button, lit while the map is in 3D */
.v3-3d { font-weight: 600; font-size: .8125rem; line-height: 1; letter-spacing: .02em; }
.v3-3d[aria-pressed="true"] { color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent); }
.v3-3d[aria-pressed="true"]:hover { color: var(--accent); }
.rmap.is-orbit .maplibregl-canvas-container { cursor: grabbing; }
/* the compass of the stack (round 27): the needle points where north is on the screen; north half in the accent, the
   south half quiet; a drag turns and tilts, a click: north and flat (js/hands.js compassButton) */
.v3-compass .v3-ring { fill: none; stroke: currentColor; stroke-width: 1.2; opacity: .35; }
.v3-compass .v3-north { fill: var(--accent); }
.v3-compass .v3-south { fill: currentColor; opacity: .45; }
.v3-compass .v3-needle-g { transition: transform var(--fast) linear; }
/* the hint, once per visitor with a mouse: low in the middle of the map (clear of the title shade, the stack and the panel), soft, gone after 4 s or at the first turn */
.v3-hint { position: absolute; z-index: 4; left: 50%; top: 58%; transform: translateX(-50%); padding: .35rem .8rem; border-radius: var(--r-pill);
  background: var(--glass-strong); border: 1px solid var(--line); box-shadow: var(--shadow); color: var(--ink); font-size: var(--t-small); white-space: nowrap; pointer-events: none;
  backdrop-filter: blur(var(--blur)); -webkit-backdrop-filter: blur(var(--blur)); transition: opacity var(--med) var(--ease); }
.v3-hint.is-out { opacity: 0; }
.v3-stack { position: absolute; z-index: 3; right: var(--s-2); top: var(--s-2); }
.rmap-credit { position: absolute; right: var(--s-2); bottom: var(--s-1); z-index: 1; font-size: var(--t-tiny); color: var(--ink-3); padding: 0 .4rem; border-radius: var(--r-1); background: color-mix(in srgb, var(--map-land) 70%, transparent); pointer-events: none; }

/* ---- scenes.css */
/* rohin.me - layout for each scene. Only tokens from tokens.css; shared pieces live in system.css. */

/* ------------------------------------------------------------ 1. now (the opening) */
/* The picture fills the page behind everything; the words sit at the bottom left over a soft shade. The picture takes
   no drags (the camera only leans toward a mouse), so a page swipe can start anywhere on it. */
.opening-stage { position: absolute; inset: 0; }
.opening-stage::after { content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, var(--bg) 0%, color-mix(in srgb, var(--bg) 74%, transparent) 24%, transparent 54%),
              radial-gradient(75% 95% at 0% 70%, color-mix(in srgb, var(--bg) 90%, transparent) 0%, color-mix(in srgb, var(--bg) 62%, transparent) 45%, transparent 78%); }
.opening-canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1.4s var(--ease); }
.opening-stage[data-mode] .opening-canvas { opacity: 1; }
.opening-labels { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 1; }
.ring-tag, .plane-tag { position: absolute; left: 0; top: 0; white-space: nowrap; font-size: .6875rem; will-change: transform; }
.ring-tag { color: var(--ink-2); opacity: .8; }
.house-tag { color: var(--accent); opacity: 1; font-weight: 500; }
.house-tag span { position: absolute; right: .8rem; top: .35rem; }
.plane-tag { opacity: 0; transition: opacity var(--med); padding: .12rem .5rem; border-radius: var(--r-pill); color: var(--ink-2); background: color-mix(in srgb, var(--bg) 62%, transparent); border: 1px solid var(--line); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.plane-tag b { color: var(--ink); font-weight: 600; margin-right: .4em; }
.plane-tag.is-on { opacity: 1; }
.plane-tag.is-hover { border-color: var(--line-strong); z-index: 2; }
.scene-opening .scene-inner { z-index: 2; }
.opening-clock { display: inline-flex; align-items: center; gap: .55rem; font-size: var(--t-small); font-weight: 500; color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.opening-text { margin-top: auto; display: grid; gap: var(--s-3); width: min(100%, 44rem); }
.hearing { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--s-5); }
.hearing li { border-top: 1px solid var(--line); }
.hearing a { display: grid; grid-template-columns: 2rem minmax(0, 1fr) auto; gap: .65rem; align-items: center; min-height: 3.25rem; padding: .3rem 0; border-radius: var(--r-1); transition: background var(--fast); }
.hearing a:hover { background: color-mix(in srgb, var(--ink) 5%, transparent); }
.hear-ico { width: 2rem; height: 2rem; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); color: var(--ink-2); background: var(--glass); }
.hearing li[data-kind="sky"] .hear-ico { color: var(--c-sky); } .hearing li[data-kind="sea"] .hear-ico { color: var(--c-sea); } .hearing li[data-kind="yard"] .hear-ico { color: var(--c-yard); } .hearing li[data-kind="radio"] .hear-ico { color: var(--accent); }
.hear-text { display: grid; min-width: 0; }
.hear-main { display: flex; align-items: baseline; gap: .5rem; min-width: 0; line-height: 1.3; }
.hear-label { flex: none; color: var(--ink-2); font-size: var(--t-small); }
.hear-main b { min-width: 0; color: var(--ink); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-variant-numeric: tabular-nums; }
.hear-sub { font-size: var(--t-tiny); color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-variant-numeric: tabular-nums; min-height: 1.1rem; }
@media (max-width: 720px) {
  .scene-opening .scene-head:has(.feed-note:not([hidden])) .opening-clock { display: none; }      /* no room for both on a phone; offline, the clock says little */
  .hearing { grid-template-columns: 1fr; }
  .hearing a { min-height: var(--tap); padding: .15rem 0; }
  .opening-stage::after { background: linear-gradient(to top, var(--bg) 0%, var(--bg) 38%, color-mix(in srgb, var(--bg) 70%, transparent) 52%, transparent 70%); }
}

/* ------------------------------------------------------------ 2. radio */
.radio { position: absolute; inset: 0; margin: auto; height: min(100%, 31rem); display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: var(--s-5); align-items: stretch; }
.radio-player { position: relative; overflow: hidden; display: grid; grid-template-columns: clamp(9rem, 15vw, 13.5rem) minmax(0, 1fr); gap: var(--s-5) var(--s-6); align-items: center; padding: var(--s-6); isolation: isolate; min-height: 0; }
.radio-glow { position: absolute; inset: -35%; z-index: -1; background-size: cover; background-position: center; filter: blur(64px) saturate(1.25); opacity: .2; pointer-events: none; transition: opacity var(--slow); }
.radio-player[data-playing] .radio-glow { opacity: .34; }
.radio-art { aspect-ratio: 1; border-radius: var(--r-2); overflow: hidden; background: var(--bg-raise); border: 1px solid var(--line); box-shadow: 0 20px 40px -24px var(--shade); }
.radio-art-img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.04); transition: opacity var(--slow) var(--ease), transform 1.4s var(--ease); }
.radio-art-img.is-in { opacity: 1; transform: none; }
.radio-info { display: grid; gap: .3rem; min-width: 0; }
.radio-show { font-size: var(--t-small); color: var(--ink-2); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.radio-title { font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem); font-weight: 500; letter-spacing: -.02em; line-height: 1.18; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.radio-by { font-size: var(--t-small); color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.radio-prog { display: grid; gap: .3rem; margin-top: var(--s-3); }
.radio-track { height: 3px; border-radius: 3px; background: color-mix(in srgb, var(--ink) 14%, transparent); overflow: hidden; }
.radio-track i { display: block; height: 100%; background: var(--ink); transform-origin: left; transform: scaleX(0); transition: transform 1s linear; }
.radio-times { display: flex; justify-content: space-between; font-size: var(--t-tiny); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.radio-controls { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3); margin-top: var(--s-3); }
.play { display: inline-flex; align-items: center; gap: .8rem; padding: .35rem 1.4rem .35rem .35rem; border-radius: var(--r-pill); background: var(--ink); color: var(--ink-inverse); text-align: left; transition: transform var(--fast) var(--ease), box-shadow var(--med); }
.play:hover { box-shadow: 0 0 0 6px color-mix(in srgb, var(--ink) 10%, transparent); }
.play:active { transform: scale(.97); }
.play-ico { width: 3rem; height: 3rem; display: grid; place-items: center; border-radius: 50%; background: var(--ink-inverse); color: var(--ink); }
.play-ico .ico { fill: currentColor; stroke-width: 1; }
.play[data-busy] .play-ico { animation: breathe 1.2s var(--ease-in-out) infinite; }
.play-text { display: grid; line-height: 1.2; }
.play-label { font-weight: 600; }
.eq { display: none; align-items: flex-end; gap: 2px; height: 14px; margin-left: .2rem; }
.radio-player[data-playing] .eq { display: inline-flex; }
.eq i { width: 2px; height: 100%; border-radius: 2px; background: currentColor; transform-origin: bottom; animation: eq 1.1s var(--ease-in-out) infinite; }
.eq i:nth-child(2) { animation-duration: .8s; animation-delay: -.3s; } .eq i:nth-child(3) { animation-duration: 1.3s; animation-delay: -.6s; } .eq i:nth-child(4) { animation-duration: .95s; animation-delay: -.15s; }
@keyframes eq { 0%, 100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }
@keyframes breathe { 50% { transform: scale(.9); opacity: .7; } }
.radio-msg { font-size: var(--t-small); color: var(--ink-2); }
.radio-day { display: grid; gap: var(--s-3); align-content: center; padding: var(--s-6); border: 1px solid var(--line); border-radius: var(--r-3); background: var(--glass); min-height: 0; overflow: hidden; }
.radio-day-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-3); }
.radio-count { font-size: var(--t-tiny); color: var(--ink-2); }
.ribbon-wrap { position: relative; padding-top: 8px; }
.ribbon { position: relative; height: var(--tap); touch-action: none; }
.slot { position: absolute; top: 0; bottom: 0; padding: 0; }
.slot::before { content: ''; position: absolute; inset: 0 1px; border-radius: 5px; background: color-mix(in srgb, var(--ink) 15%, transparent); transition: background var(--fast), transform var(--med) var(--ease); }
.slot span { display: none; }
.slot:hover::before, .slot[data-picked]::before, .slot:focus-visible::before { background: color-mix(in srgb, var(--ink) 38%, transparent); transform: scaleY(1.08); }
.slot[data-now]::before { background: var(--accent); }
.slot:focus-visible { outline-offset: 1px; z-index: 1; }
.ribbon-now { position: absolute; top: 0; bottom: -4px; width: 1px; background: var(--ink); pointer-events: none; }
.ribbon-now::before { content: ''; position: absolute; top: -3px; left: -3px; width: 7px; height: 7px; border-radius: 50%; background: var(--ink); }
.ribbon-hours { display: flex; justify-content: space-between; font-size: .6875rem; color: var(--ink-2); }
.ribbon-detail { min-height: 2.9rem; display: grid; align-content: start; font-size: var(--t-small); color: var(--ink-2); line-height: 1.45; }
.ribbon-detail b { color: var(--ink); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.radio-up { display: grid; gap: var(--s-2); padding-top: var(--s-3); border-top: 1px solid var(--line); }
.radio-next { display: grid; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); gap: .1rem var(--s-4); }
.radio-next li { display: grid; grid-template-columns: 3.9rem minmax(0, 1fr); gap: .5rem; padding: .28rem 0; font-size: var(--t-small); color: var(--ink-2); }
.radio-next li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.radio-next time { color: var(--ink-2); }
.radio-streams { display: flex; flex-wrap: wrap; gap: .2rem var(--s-4); }
.radio-streams .link { display: inline-flex; align-items: center; justify-content: center; min-height: var(--tap); min-width: var(--tap); }
.table-wrap-text td:last-child { min-width: min(14rem, 45vw); }
/* an upright tablet and phones: the player over the schedule */
@media (max-width: 900px) {
  .radio { height: 100%; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto; align-content: center; gap: var(--s-3); }
}
@media (max-width: 720px) {
  .radio { align-content: start; gap: var(--s-2); }
  .radio-player { grid-template-columns: 5.5rem minmax(0, 1fr); gap: .15rem var(--s-4); padding: var(--s-4); align-items: start; }
  .radio-art { grid-row: 1 / span 3; align-self: center; }
  .radio-info { display: contents; }
  .radio-title { font-size: 1.125rem; }
  .radio-prog, .radio-controls { grid-column: 1 / -1; }
  .radio-prog { margin-top: var(--s-3); }
  .radio-controls { margin-top: var(--s-2); }
  .play { width: 100%; }
  .play-ico { width: 2.75rem; height: 2.75rem; }
  .radio-day { padding: var(--s-4); gap: var(--s-2); align-content: start; }
  .ribbon-detail { min-height: 2.6rem; }
}
@media (max-width: 720px) and (max-height: 800px) { .radio-next li:nth-child(n+4) { display: none; } }

/* 3. sky: part of Now since 14 Nov (css/scene-opening.css: the timeline, the strip, Spotted) */

/* 4. birds: css/scene-birds.css */

/* ------------------------------------------------------------ 5. hikes */
/* One screen, like every page (the frame sizes it). Anything long (trail notes, the data) scrolls inside its own panel.
   Laid out for phones (360 and 390 wide: the map takes the page, two matches in a strip under it, filters in a bottom
   sheet), tablets upright (820: map over a four-row strip) and on their side (1180) and desktops (a short list beside
   the map; an open hike takes the map's place). Every control is at least 44px to a finger; nothing needs a hover.
   The map and a hike's land keep every drag (data-swipe="off", touch-action: none); the elevation chart keeps
   sideways ones; the page swipes from anywhere else. */
.hk-data-btn { min-height: 2.75rem; padding: 0 1.1rem 0 .85rem; }
.hk-data-btn .ico, .hike-back .ico, .hk-data-close .ico { color: var(--accent); }
.scene-hikes .seg button { min-height: 2.75rem; }
.scene-hikes .link { display: inline-flex; align-items: center; justify-content: center; gap: .3rem; min-height: 2.75rem; min-width: 2.75rem; border-bottom: 0; text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: .25em; background: none; }
.scene-hikes .link:hover { text-decoration-color: var(--accent); }

.scene-hikes .scene-visual.hikes { display: grid; gap: var(--s-3) var(--s-5); grid-template-columns: minmax(19rem, 23rem) minmax(0, 1fr); grid-template-rows: auto auto auto minmax(0, 1fr); grid-template-areas: "find main" "chips main" "bar main" "rows main"; }
.hk-find { grid-area: find; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-2); min-width: 0; }
/* the one count at the left; Zoom out (nothing in view), Clear (nothing matches) or List (phones) at the right */
.hk-bar { grid-area: bar; display: flex; align-items: center; gap: .2rem .8rem; min-height: 2.75rem; min-width: 0; font-size: var(--t-small); color: var(--ink-2); }
.hk-bar .btn { margin-left: auto; min-height: 2.75rem; padding: 0 1.1rem 0 .85rem; }
.hk-bar .btn[hidden] { display: none; }
@media (min-width: 1001px) { .hk-bar .hk-list-btn { display: none; } }      /* wide: the list is beside the map */
.hk-bar .btn .ico { color: var(--accent); }
.hk-rows { grid-area: rows; min-height: 0; overflow-y: auto; overscroll-behavior: contain; align-self: stretch; border-top: 1px solid var(--line); scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
/* Length, Climb, Time inline, then Filters; a chip's choices drop under the row */
.hk-chips { grid-area: chips; position: relative; min-width: 0; }
.hk-chips-row { display: flex; align-items: center; gap: .35rem; min-width: 0; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; }
.hk-chips-row::-webkit-scrollbar { display: none; }
.hk-chips .hk-filter-btn { margin-left: auto; }
.hk-chip { flex: none; display: inline-flex; align-items: center; gap: .2rem; height: 2.75rem; padding: 0 .55rem 0 .75rem; border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--glass); font-size: var(--t-small); font-weight: 500; color: var(--ink-2); white-space: nowrap; font-variant-numeric: tabular-nums; backdrop-filter: blur(var(--blur)); -webkit-backdrop-filter: blur(var(--blur)); transition: border-color var(--fast), background var(--fast), color var(--fast), transform var(--fast) var(--ease); }
.hk-chip > span { overflow: hidden; text-overflow: ellipsis; }
.hk-chip .ico { flex: none; color: var(--ink-3); transition: transform var(--med) var(--ease); }
.hk-chip:hover { border-color: var(--line-strong); color: var(--ink); }
.hk-chip:active { transform: scale(.97); }
.hk-chip[aria-pressed="true"] { border-color: color-mix(in srgb, var(--accent) 65%, transparent); background: var(--accent-soft); color: var(--ink); }
.hk-chip[aria-expanded="true"] .ico { transform: rotate(180deg); }
.hk-chip[aria-pressed="true"]:not([aria-expanded="true"]) .ico { display: none; }      /* a chip that reads its choice drops its arrow: room for the words */
.hk-pop { position: absolute; z-index: 8; left: 0; right: 0; top: calc(100% + .4rem); display: flex; flex-wrap: wrap; gap: .35rem; padding: var(--s-2); border-radius: var(--r-3); border: 1px solid var(--line-strong); background: var(--bg-raise); box-shadow: var(--shadow); animation: drop var(--med) var(--ease); }
.hk-pop[hidden] { display: none; }
.hk-main { grid-area: main; position: relative; min-width: 0; min-height: 0; display: grid; }
.hike-search { display: flex; align-items: center; gap: .55rem; height: 2.75rem; padding: 0 1rem; border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--glass); color: var(--ink-3); backdrop-filter: blur(var(--blur)); -webkit-backdrop-filter: blur(var(--blur)); transition: border-color var(--fast); }
.hike-search:focus-within { border-color: var(--accent); color: var(--ink-2); }
.hike-q { flex: 1; min-width: 0; height: 100%; border: 0; padding: 0; background: none; color: var(--ink); font: inherit; font-size: 1rem; outline: none; appearance: none; -webkit-appearance: none; }
.hike-q::placeholder { color: var(--ink-3); opacity: 1; }
.hike-q::-webkit-search-cancel-button { -webkit-appearance: none; }
.pick { position: relative; flex: none; display: inline-flex; align-items: center; gap: .45rem; height: 2.75rem; padding: 0 1rem 0 .85rem; border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--glass); font-size: var(--t-small); font-weight: 500; color: var(--ink); cursor: pointer; backdrop-filter: blur(var(--blur)); -webkit-backdrop-filter: blur(var(--blur)); transition: border-color var(--fast), background var(--fast), transform var(--fast) var(--ease); }
.pick:hover { border-color: var(--line-strong); }
.pick:active { transform: scale(.97); }
.pick .ico { color: var(--ink-3); }
.pick-n { min-width: 1.35rem; height: 1.35rem; display: grid; place-items: center; border-radius: var(--r-pill); background: var(--accent); color: var(--accent-ink); font-size: var(--t-tiny); font-weight: 600; }
.hikes-count { font-variant-numeric: tabular-nums; white-space: nowrap; }
.hike-zoom button[disabled] { opacity: .3; cursor: default; }
.hike-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: .1rem; height: 58px; align-content: center; padding: 0 .55rem; border-bottom: 1px solid var(--line); transition: background var(--fast), padding-left var(--med) var(--ease); }
.hike-row:hover, .hike-row:focus-visible, .hike-row[aria-current] { background: color-mix(in srgb, var(--ink) 6%, transparent); }
.hike-row[aria-current] { box-shadow: inset 2px 0 0 var(--accent); }
.hike-row:focus-visible { outline-offset: -2px; }
.hr-main { display: flex; align-items: baseline; gap: .6rem; min-width: 0; }
.hr-name { flex: 0 1 auto; min-width: 0; color: var(--ink); font-weight: 500; font-size: .9375rem; line-height: 1.35; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hr-where { flex: 1 1 0; min-width: 0; font-size: var(--t-tiny); color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hr-nums { display: flex; gap: .9rem; font-size: var(--t-tiny); color: var(--ink-3); font-variant-numeric: tabular-nums lining-nums; white-space: nowrap; }
.hr-num b { color: var(--ink-2); font-weight: 500; font-size: var(--t-small); }

/* the map */
.hk-map { min-width: 0; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); gap: var(--s-2); justify-items: start; }
.hikes-areas { padding: 3px; max-width: 100%; }
.hikes-areas button { white-space: nowrap; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.hikes-map-frame { position: relative; width: 100%; min-height: 0; border-radius: var(--r-3); overflow: hidden; border: 1px solid var(--line); background: var(--map-water); box-shadow: var(--shadow); }
.hikes-map-cv { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; }
.hikes-map-cv:focus-visible { outline-offset: -4px; border-radius: var(--r-3); }
.hikes-map-tip { position: absolute; z-index: 2; translate: -50% calc(-100% - 16px); max-width: 15rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: .25rem .65rem; border-radius: var(--r-pill); border: 1px solid var(--line-strong); background: var(--glass-strong); backdrop-filter: blur(var(--blur)); -webkit-backdrop-filter: blur(var(--blur)); font-size: var(--t-tiny); color: var(--ink); pointer-events: none; }
.hikes-map-tip.is-below { translate: -50% 16px; }
.hikes-map-frame .hike-zoom { position: absolute; right: var(--s-3); top: var(--s-3); }
.hike-zoom { display: inline-flex; flex-direction: column; padding: 3px; border-radius: var(--r-3); border: 1px solid var(--line); background: var(--glass-strong); backdrop-filter: blur(var(--blur)); -webkit-backdrop-filter: blur(var(--blur)); }
.hike-zoom button { width: 2.75rem; height: 2.75rem; display: grid; place-items: center; border-radius: 50%; color: var(--ink-2); transition: color var(--fast), background var(--fast), transform var(--fast) var(--ease); }
.hike-zoom button:hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 10%, transparent); }
.hike-zoom button:active { transform: scale(.9); }

/* filters: chips in a sheet */
.hikes-sheet { width: min(36rem, calc(100vw - 2 * var(--gutter))); max-height: min(46rem, 92dvh); padding: var(--s-4) var(--s-5); border: 1px solid var(--line-strong); border-radius: var(--r-3); background: var(--bg-raise); color: var(--ink); overflow-y: auto; box-shadow: var(--shadow); }
.hikes-sheet[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: var(--s-3); overflow: hidden; animation: drop var(--med) var(--ease); }
.hikes-sheet::backdrop { background: var(--shade); }
.sheet-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-3); }
.sheet-head h4 { margin: 0; font-size: 1.125rem; font-weight: 600; }
.sheet-count { font-size: var(--t-small); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.sheet-body { display: grid; gap: var(--s-2); min-height: 0; overflow-y: auto; overscroll-behavior: contain; align-content: start; padding: 2px; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
.chip-group { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); gap: .3rem var(--s-3); align-items: start; }
.chip-label { padding-top: .8rem; font-size: var(--t-small); color: var(--ink-3); }
.chip-row { display: flex; flex-wrap: wrap; gap: .35rem; }
.chip-btn { min-height: 2.75rem; padding: 0 .85rem; border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--glass); font-size: var(--t-small); font-weight: 500; color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; transition: border-color var(--fast), background var(--fast), color var(--fast), transform var(--fast) var(--ease); }
.chip-btn:hover { border-color: var(--line-strong); color: var(--ink); }
.chip-btn:active { transform: scale(.96); }
.chip-btn[aria-pressed="true"] { border-color: color-mix(in srgb, var(--accent) 65%, transparent); background: var(--accent-soft); color: var(--ink); }
.sheet-foot { display: grid; grid-template-columns: 1fr 2fr; gap: var(--s-2); }
/* the list as a sheet (phones, upright tablets): half the screen, every match in view, × closes it */
.hk-list-sheet { position: fixed; inset: auto 0 0 0; width: 100%; max-width: none; height: min(50dvh, 34rem); max-height: none; margin: 0; padding: var(--s-3) max(var(--gutter), env(safe-area-inset-right, 0px)) env(safe-area-inset-bottom, 0px) max(var(--gutter), env(safe-area-inset-left, 0px)); border: 0; border-top: 1px solid var(--line-strong); border-radius: var(--r-3) var(--r-3) 0 0; background: var(--bg-raise); color: var(--ink); box-shadow: 0 -24px 60px -30px var(--shade); overflow: hidden; }
.hk-list-sheet[open] { display: grid; grid-template-rows: auto minmax(0, 1fr); gap: var(--s-2); animation: sheet-up var(--med) var(--ease); }
.hk-list-sheet::backdrop { background: color-mix(in srgb, var(--shade) 55%, transparent); }
.hk-list-sheet .sheet-head { align-items: center; }
.hk-list-sheet .sheet-head h4 { font-size: var(--t-small); font-weight: 500; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.hk-list-close { width: 2.75rem; height: 2.75rem; display: grid; place-items: center; border-radius: 50%; color: var(--ink-2); transition: color var(--fast), background var(--fast); }
.hk-list-close:hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 8%, transparent); }
.hk-list-rows { min-height: 0; overflow-y: auto; overscroll-behavior: contain; border-top: 1px solid var(--line); padding-bottom: var(--s-3); }
.btn[disabled] { opacity: .45; cursor: default; box-shadow: none; }

/* one hike */
.hike { min-width: 0; min-height: 0; display: grid; grid-template-rows: auto minmax(8rem, 1fr) auto auto clamp(10rem, 28%, 15rem); gap: var(--s-2); }
.hike-head { display: flex; align-items: center; gap: var(--s-3); min-width: 0; }
.hike-back { flex: none; min-height: 2.75rem; padding: 0 1.1rem 0 .85rem; }
.hike-title { flex: 1 1 auto; min-width: 0; display: grid; }
.hike-go { flex: none; min-height: 2.75rem; padding: 0 1.1rem 0 .85rem; }
.hike-go .ico { color: var(--accent); }
.hike-name { font-size: clamp(1.125rem, .95rem + .9vw, 1.625rem); font-weight: 500; letter-spacing: -.02em; line-height: 1.15; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hike-name:focus-visible { outline: none; }
.hike-where { color: var(--ink-3); font-size: var(--t-tiny); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hike-stagebox { position: relative; min-height: 0; border-radius: var(--r-3); border: 1px solid var(--line); overflow: hidden; background: radial-gradient(110% 80% at 50% 8%, color-mix(in srgb, var(--ink) 6%, transparent), transparent 72%), var(--glass); box-shadow: var(--shadow); }
.hike-stage { position: absolute; inset: 0; }
.hike-canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: grab; opacity: 0; transition: opacity 1.1s var(--ease); }
.hike-stage[data-mode] .hike-canvas { opacity: 1; }
.hike-canvas.is-drag { cursor: grabbing; }
.hike-canvas:focus-visible { outline-offset: -5px; border-radius: var(--r-3); }
.hike-flatbox { position: absolute; inset: var(--s-3); display: grid; place-items: center; }
.hike-flatwrap { position: relative; line-height: 0; }
.hike-canvas.hike-flat { position: static; width: auto; height: auto; max-width: 100%; border-radius: var(--r-2); cursor: default; touch-action: auto; border: 1px solid var(--line); }
.hike-mark { position: absolute; left: 0; top: 0; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--accent); pointer-events: none; }
.hike-tags { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.hike-tag { position: absolute; left: 0; top: 0; margin: -1.75rem 0 0 .45rem; white-space: nowrap; font-size: .6875rem; line-height: 1.5; padding: .05rem .5rem; border-radius: var(--r-pill); color: var(--ink-2); background: color-mix(in srgb, var(--bg) 70%, transparent); border: 1px solid var(--line); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; transition: opacity var(--med); will-change: transform; }
.hike-tag.is-on { opacity: 1; }
.hike-tag.is-left { margin-left: 0; translate: calc(-100% - .45rem) 0; }
.hike-tag.is-under { margin-top: .7rem; }
.hike-tag.is-key { color: var(--ink); font-weight: 500; }
.hike-tag.is-spot { z-index: 2; color: var(--accent-ink); background: var(--accent); border-color: transparent; font-weight: 600; font-variant-numeric: tabular-nums; }
.hike-tags[data-photo] .hike-tag { color: var(--paper); background: color-mix(in srgb, var(--on-photo-shade) 72%, transparent); border-color: color-mix(in srgb, var(--paper) 24%, transparent); }
.hike-tags[data-photo] .hike-tag.is-spot { color: var(--on-photo-shade); background: var(--on-photo); border-color: transparent; }
.hike-wait { position: absolute; inset: 0; display: grid; place-items: center; color: var(--ink-3); font-size: var(--t-small); }
.hike-tools { position: absolute; inset: var(--s-2) var(--s-2) auto; display: flex; justify-content: space-between; align-items: flex-start; gap: var(--s-2); pointer-events: none; }
.hike-tools > * { pointer-events: auto; }
.hike-tools .hike-zoom { margin-left: auto; }
.hike-scale { position: absolute; left: var(--s-3); bottom: var(--s-3); padding: .15rem .6rem; border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--glass-strong); font-size: var(--t-tiny); color: var(--ink-2); font-variant-numeric: tabular-nums; pointer-events: none; }
.hike-tabs { display: flex; gap: 2px; padding: 3px; border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--glass); min-width: 0; }
.hike-tabs button { flex: 1 1 0; min-width: 2.75rem; min-height: 2.75rem; padding: 0 .3rem; border-radius: var(--r-pill); font-size: var(--t-small); font-weight: 500; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color var(--fast), background var(--med) var(--ease); }
.hike-tabs button:hover { color: var(--ink); }
.hike-tabs button[aria-selected="true"] { color: var(--ink); background: color-mix(in srgb, var(--ink) 12%, transparent); }
.hike-panel { min-height: 0; border-radius: var(--r-3); border: 1px solid var(--line); background: var(--glass); overflow: hidden; }
.hike-pane { height: 100%; overflow-y: auto; overscroll-behavior: contain; padding: var(--s-3) var(--s-4); scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
.hike-pane h4 { margin: var(--s-4) 0 var(--s-2); font-size: var(--t-small); font-weight: 600; color: var(--ink); }
.hike-stats { grid-template-columns: repeat(auto-fit, minmax(7.2rem, 1fr)); gap: var(--s-2); }
.hike-stats .stat { padding: var(--s-2) var(--s-3); }
.hike-stats .stat-label { order: -1; font-size: var(--t-tiny); color: var(--ink-3); }
.hike-stats .stat-num { font-size: clamp(1.125rem, .95rem + .7vw, 1.5rem); white-space: nowrap; }
.hike-stats .stat-sub { min-height: 1.05rem; margin-top: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.about-body { display: grid; gap: .7rem; font-size: var(--t-small); color: var(--ink-2); line-height: 1.65; max-width: 46rem; }
.hike-small { font-size: var(--t-tiny); color: var(--ink-3); line-height: 1.6; }
.hike-small .ico { display: inline-block; }
.hike-credit { margin-top: var(--s-2); font-size: var(--t-tiny); color: var(--ink-3); line-height: 1.6; }
.hike-credit a { text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: .2em; }
.expects li { display: grid; grid-template-columns: 8rem minmax(0, 1fr); gap: .1rem var(--s-3); padding: .6rem 0; border-top: 1px solid var(--line); font-size: var(--t-small); }
.expects li:first-child, .notes li:first-child, .peaks li:first-child { border-top: 0; }
.ex-label { color: var(--ink-3); }
.ex-value { color: var(--ink); font-weight: 600; }
.ex-quote { grid-column: 2; color: var(--ink-2); font-size: var(--t-tiny); line-height: 1.55; quotes: "\201c" "\201d"; }
.hike-profile { height: 100%; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: .35rem; }
.hike-read { font-size: var(--t-small); color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hike-read b { color: var(--ink); font-weight: 600; }
.hike-plot { min-height: 3.5rem; }
.hike-ft { position: absolute; left: 0; translate: 0 -100%; padding: 0 .15rem 1px; font-size: .6875rem; line-height: 1.2; color: var(--ink-3); font-variant-numeric: tabular-nums; pointer-events: none; }
.hike-topdot { position: absolute; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: var(--bg-raise); border: 1.5px solid var(--accent); pointer-events: none; }
.notes li, .peaks li { border-top: 1px solid var(--line); }
.note { display: grid; grid-template-columns: 3.3rem minmax(0, 1fr); gap: .75rem; width: 100%; min-height: 2.75rem; text-align: left; padding: .68rem .35rem; border-radius: var(--r-1); font-size: var(--t-small); color: var(--ink-2); line-height: 1.5; transition: background var(--fast); }
.note:hover, .peak:hover { background: color-mix(in srgb, var(--ink) 6%, transparent); }
.note-at { padding-top: .16rem; color: var(--accent); font-weight: 600; font-size: var(--t-tiny); font-variant-numeric: tabular-nums; }
.note b { color: var(--ink); }
.peak { display: grid; grid-template-columns: 1.15rem minmax(0, 1fr) auto; gap: 0 .65rem; align-items: center; width: 100%; min-height: 2.75rem; text-align: left; padding: .5rem .35rem; border-radius: var(--r-1); font-size: var(--t-small); transition: background var(--fast); }
.peak .ico { grid-row: span 2; color: var(--ink-3); }
.peak-name { color: var(--ink); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.peak-ft { color: var(--ink-2); font-variant-numeric: tabular-nums; }
.peak-note { grid-column: 2 / -1; font-size: var(--t-tiny); color: var(--ink-3); }
.hike-save { display: flex; flex-wrap: wrap; align-items: flex-start; gap: var(--s-3) var(--s-5); }
.save-btns { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.save-btns .btn { min-height: 2.75rem; padding: 0 1.1rem 0 .85rem; }
.save-btns .btn .ico { color: var(--accent); }
.save-qr { display: flex; align-items: flex-end; gap: var(--s-3); font-size: var(--t-tiny); color: var(--ink-3); }
.save-code { display: block; width: 6.25rem; height: 6.25rem; border-radius: var(--r-1); overflow: hidden; background: var(--paper); }
.save-code svg { width: 100%; height: 100%; }
.save-said { flex-basis: 100%; font-size: var(--t-tiny); color: var(--ink-2); line-height: 1.5; overflow-wrap: anywhere; }
.save-said:empty { display: none; }
.hike-print { position: fixed; right: 0; bottom: 0; width: 0; height: 0; border: 0; }

/* data: a panel laid over the page */
.hk-data { position: absolute; inset: 0; z-index: 6; display: grid; grid-template-rows: auto auto minmax(0, 1fr); gap: var(--s-3); padding: var(--s-4); border-radius: var(--r-3); border: 1px solid var(--line-strong); background: var(--bg-raise); box-shadow: var(--shadow); animation: drop var(--med) var(--ease); }
.hk-data-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); }
.hk-data-head h3 { font-size: 1.125rem; }
.hk-data-close { min-height: 2.75rem; padding: 0 1.1rem 0 .85rem; }
.hk-data-body { min-height: 0; overflow-y: auto; overscroll-behavior: contain; display: grid; gap: var(--s-4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); align-content: start; padding-right: .3rem; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
.hike-scatter { height: clamp(14rem, 28vw, 22rem); border-left: 1px solid var(--line-strong); }
/* a row of the block names at the top of the panel; a tap brings that block up */
.hk-jump { display: flex; gap: .35rem; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; margin: 0 calc(-1 * var(--s-1)); padding: 0 var(--s-1); }
.hk-jump::-webkit-scrollbar { display: none; }
.hk-jump .chip-btn { flex: none; }
/* records: a hike each, a tap opens it */
.hk-recs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: var(--s-2); }
.hk-rec { width: 100%; min-height: 2.75rem; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .1rem var(--s-3); align-items: baseline; text-align: left; padding: .6rem .8rem; border-radius: var(--r-2); border: 1px solid var(--line); background: var(--glass); transition: border-color var(--fast), background var(--fast); }
.hk-rec:hover { border-color: var(--line-strong); background: color-mix(in srgb, var(--ink) 5%, transparent); }
.hk-rec-k { grid-column: 1 / -1; font-size: var(--t-tiny); color: var(--ink-3); }
.hk-rec-name { min-width: 0; color: var(--ink); font-weight: 500; font-size: var(--t-small); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hk-rec-v { color: var(--ink-2); font-weight: 600; font-size: var(--t-small); font-variant-numeric: tabular-nums; white-space: nowrap; }
.scatter-svg .sdot { fill: var(--c-sea); opacity: .6; }
.scatter-svg .sdot.is-here { fill: var(--accent); opacity: 1; }
.scatter-ring, .scatter-here { position: absolute; left: 0; top: 0; width: 15px; height: 15px; margin: -7.5px 0 0 -7.5px; border-radius: 50%; pointer-events: none; }
.scatter-ring { border: 1.5px solid var(--ink); }
.scatter-here { width: 19px; height: 19px; margin: -9.5px 0 0 -9.5px; border: 2px solid var(--accent); background: var(--accent-soft); }
.scatter-tag { position: absolute; left: 0; top: 0; translate: -50% calc(-100% - 14px); max-width: 15rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: .12rem .55rem; border-radius: var(--r-pill); font-size: var(--t-tiny); font-weight: 500; color: var(--accent-ink); background: var(--accent); pointer-events: none; }
.scatter-tag.is-below { translate: -50% 14px; }
.axis-name, .data-block p.axis-name { font-size: .6875rem; line-height: 1.3; color: var(--ink-3); max-width: none; }
.axis-name.axis-x { text-align: right; }

/* phones and upright tablets: the map takes the page with a short strip of matches under it; an open hike takes over */
@media (max-width: 1000px) {
  .scene-hikes .scene-visual.hikes { grid-template-columns: minmax(0, 1fr); gap: var(--s-2); }
  .scene-hikes .scene-visual.hikes { grid-template-rows: auto auto minmax(0, 1fr) auto; grid-template-areas: "find" "chips" "main" "bar"; }
  .hk-rows { display: none; }
  .hikes[data-open] > .hk-find, .hikes[data-open] > .hk-chips, .hikes[data-open] > .hk-bar { display: none; }
  .hikes[data-open] { grid-template-rows: minmax(0, 1fr); grid-template-areas: "main"; }
  .hike { grid-template-rows: auto minmax(8rem, 1fr) auto auto clamp(11.5rem, 36%, 22rem); }
}
@media (max-width: 720px) {
  .hikes-map-frame, .hike-stagebox, .hike-panel { border-radius: var(--r-2); }
  .hikes-areas { width: 100%; }
  .hikes-areas button { flex: 1 1 auto; padding: 0 .35rem; font-size: .8125rem; }
  .hike-row { height: 54px; padding: 0 .25rem; }
  .hike { grid-template-rows: auto minmax(8rem, 1fr) auto auto clamp(9.5rem, 30%, 22rem); }
  .hike-head { gap: var(--s-2); }
  .hike-name { white-space: normal; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; }
  .hr-rate .hr-k { display: inline; }
  .hikes-sheet { position: fixed; inset: auto 0 0 0; width: 100%; max-width: none; max-height: 88dvh; margin: 0; padding: var(--s-4) max(var(--gutter), env(safe-area-inset-right, 0px)) calc(var(--s-4) + env(safe-area-inset-bottom, 0px)) max(var(--gutter), env(safe-area-inset-left, 0px)); border: 0; border-top: 1px solid var(--line-strong); border-radius: var(--r-3) var(--r-3) 0 0; box-shadow: 0 -24px 60px -30px var(--shade); }
  .hikes-sheet[open] { animation: sheet-up var(--med) var(--ease); }
  .chip-group { grid-template-columns: minmax(0, 1fr); }
  .chip-label { padding-top: 0; }
  .hike-tabs { gap: 0; }
  .hike-tabs button { flex: 1 1 auto; font-size: .78125rem; padding: 0 .2rem; }
  .hike-pane { padding: var(--s-3); }
  .expects li { grid-template-columns: 6.5rem minmax(0, 1fr); }
  .hk-data { padding: var(--s-3); border-radius: var(--r-2); }
  .save-btns .btn { flex: 1 1 8rem; }
}
.hr-k { display: none; }
/* the smallest phones (320 and 360 wide): the chip row and the area buttons still fit side by side */
@media (max-width: 380px) {
  .hk-chips-row { gap: .25rem; }
  .hk-chip { padding: 0 .4rem 0 .6rem; gap: .15rem; font-size: .8125rem; }
  .hk-chips .pick { padding: 0 .7rem; font-size: .8125rem; gap: .3rem; }
  .hk-chips .pick .ico { display: none; }
  .hikes-areas button { padding: 0 .2rem; font-size: .78125rem; }
}
/* a short phone (568 to 700 high): the land keeps its share; the + − tilt stack lies across its top instead of down its side */
@media (max-width: 720px) and (max-height: 700px) {
  .hike { grid-template-rows: auto minmax(7rem, 1fr) auto auto clamp(6.5rem, 24%, 22rem); }
  .hike-where { display: none; }
  .hike-tools .hike-zoom { flex-direction: row; }
}

/* ------------------------------------------------------------ placeholders (6-10) */
/* A page that is not built yet: its title (in the page's title row) and one quiet line drawing. No words. */
.soon { position: absolute; inset: 0; display: grid; place-items: center; }
.soon-art { width: min(100%, 40rem); max-height: 100%; height: auto; color: var(--ink-3); overflow: visible; }
.soon-art .ln { fill: none; stroke: currentColor; stroke-width: 1.25; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.8s var(--ease); transition-delay: calc(var(--i, 0) * 45ms + 250ms); }
.scene[data-seen] .soon-art .ln { stroke-dashoffset: 0; }
.soon-art .thin { stroke-width: 1; opacity: .55; }
.soon-art .hi { stroke: var(--accent); }
.soon-art .dash { stroke-dasharray: .014 .022; stroke-dashoffset: 0; opacity: 0; transition: opacity 1.2s var(--ease) 1.2s; }
.scene[data-seen] .soon-art .dash { opacity: 1; }
.soon-art .nd { fill: var(--bg); stroke: currentColor; stroke-width: 1.25; }
.soon-art .pt { fill: var(--accent); stroke: none; }

/* 11. machine room: css/scene-machine.css */

/* ------------------------------------------------------------ 12. cities */
.cities { position: absolute; inset: 0; margin: auto; height: min(100%, 36rem); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-5); }
.city { display: grid; grid-template-rows: minmax(0, 1fr) auto; overflow: hidden; min-height: 0; }
.city-map { min-height: 0; border-bottom: 1px solid var(--line); background: radial-gradient(80% 80% at 50% 50%, color-mix(in srgb, var(--ink) 4%, transparent), transparent); }
.city-dots { width: 100%; height: 100%; }
.city-text { padding: var(--s-4) var(--s-5); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .15rem var(--s-4); align-items: center; }
.city-text h3 { font-family: var(--font-title); font-size: 1.5rem; font-weight: 500; letter-spacing: -.02em; }
.city-count { grid-column: 1; color: var(--ink-2); font-size: var(--t-small); font-variant-numeric: tabular-nums; }
.city-kinds { grid-column: 1; display: flex; flex-wrap: wrap; gap: 0 var(--s-3); font-size: var(--t-small); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.city-go { grid-column: 2; grid-row: 1 / span 3; display: inline-flex; align-items: center; gap: .4rem; min-height: var(--tap); padding: 0 1rem 0 1.1rem; border: 1px solid var(--line-strong); border-radius: var(--r-pill); color: var(--ink); font-weight: 500; font-size: var(--t-small); }
.city-go .ico { color: var(--accent); transition: transform var(--med) var(--ease); }
.city:hover .city-go .ico { transform: translate(2px, -2px); }
/* an upright tablet and phones: one card over the other */
@media (max-width: 900px) { .cities { height: 100%; grid-template-columns: minmax(0, 1fr); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: var(--s-3); } }
@media (max-width: 720px) { .cities { gap: var(--s-2); } .city-text { padding: var(--s-3) var(--s-4); } .city-text h3 { font-size: 1.25rem; } }


/* hikes: the trail on the real map (a third surface of the open hike), and the row that gets you there */
.hike-route { position: absolute; inset: 0; }
.hike-route[hidden], .hike-stage[hidden] { display: none; }
.hike-routezoom { margin-left: auto; }
.hike-routezoom[hidden] { display: none; }
.hike-actions { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-3); align-items: center; margin-top: var(--s-3); }
.hike-ll { font-size: var(--t-small); color: var(--ink-3); }
.hike-ll b { color: var(--ink-2); font-weight: 600; font-variant-numeric: tabular-nums; }

/* now: the picture as the real map (js/now-map.js). The map takes drags; the page swipes from the title row and the words. */
.now-map { position: absolute; inset: 0; }
.now-over, .now-solid { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }      /* .now-solid: the craft as 3D models, under the 2D canvas (round 27) */      /* under the page's shade, like the map */
.scene-opening.has-map .scene-inner { pointer-events: none; }
.scene-opening.has-map .scene-head, .scene-opening.has-map .opening-text { pointer-events: auto; }
.scene-opening.has-map .now-map .rmap-credit { z-index: 3; right: max(var(--gutter), var(--safe-r)); bottom: max(var(--s-3), var(--safe-b)); }
@media (max-width: 899px), (max-aspect-ratio: 9 / 10) { .scene-opening.has-map .now-map .rmap-credit { bottom: calc(var(--now-text, 40%) + max(var(--s-3), var(--safe-b)) + var(--s-2)); } }      /* where the words fill the bottom edge (phones, upright tablets) the credit stands at the right just over them (round 22: it was under the title) */
.now-zoom { position: absolute; z-index: 3; right: max(var(--gutter), var(--safe-r)); top: calc(var(--now-top, 6rem) + var(--s-2)); }
.now-zoom.is-row { flex-direction: row; } .now-zoom.is-tight { visibility: hidden; }      /* Now: where a column of buttons would lie on the chart under the map (js/now-map.js pad) */
/* the Data panel lies over the page: the map's buttons and its credit, which stand over the page too, step back while it is open */
.scene-opening:has(.data-panel:not([hidden])) .now-zoom, .scene-opening:has(.data-panel:not([hidden])) .now-map .rmap-credit { display: none; }
.now-card { position: absolute; z-index: 3; top: calc(var(--now-top, 6rem) + var(--s-2)); right: calc(max(var(--gutter), var(--safe-r)) + 3.75rem); width: min(19rem, calc(100% - 2 * var(--gutter) - 3.75rem));
  padding: var(--s-3) var(--s-4) var(--s-3); border-radius: var(--r-3); border: 1px solid var(--line); background: var(--glass-strong); backdrop-filter: blur(var(--blur)); -webkit-backdrop-filter: blur(var(--blur)); box-shadow: var(--shadow); }
.now-card[hidden] { display: none; }
.nc-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: var(--s-2); }
.nc-head h3 { font-size: var(--t-body); font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nc-ico { width: 1.75rem; height: 1.75rem; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); }
.nc-ico[data-kind="sky"] { color: var(--c-sky); } .nc-ico[data-kind="sea"] { color: var(--c-sea); }
.nc-close { width: var(--tap); height: var(--tap); margin: -.4rem -.6rem -.4rem 0; display: grid; place-items: center; border-radius: 50%; color: var(--ink-2); }
.nc-close:hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 10%, transparent); }
.nc-rows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .1rem var(--s-4); margin-top: var(--s-2); font-size: var(--t-small); font-variant-numeric: tabular-nums; }
.nc-row { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-2); min-width: 0; border-top: 1px solid var(--line); padding: .22rem 0; }
.nc-wide { grid-column: 1 / -1; }
.nc-k { color: var(--ink-3); font-size: var(--t-tiny); white-space: nowrap; }
.nc-v { color: var(--ink); font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nc-links { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-2); }
.nc-link { min-height: var(--tap); }
.opening-text > .now-card { position: static; width: auto; padding: var(--s-2) var(--s-3); }
.opening-text > .now-card .nc-links { flex-wrap: nowrap; }
.opening-text > .now-card .nc-link { flex: 1 1 0; min-width: 0; justify-content: center; padding-inline: .6rem; }
/* the title row lies over the map: a shade under it, so the map's own names do not run through the title */
.scene-opening.has-map .opening-stage::before { content: ''; position: absolute; inset: 0 0 auto 0; height: calc(var(--now-top, 6rem) + 3rem); z-index: 2; pointer-events: none;
  background: linear-gradient(to bottom, var(--bg) 0%, var(--bg) 38%, color-mix(in srgb, var(--bg) 95%, transparent) 60%, color-mix(in srgb, var(--bg) 68%, transparent) 78%, transparent 100%); }
/* with the real map the shade is only where the words are: on wide screens the lower left, on phones a band as tall as the words */
.scene-opening.has-map .opening-stage::after { background: linear-gradient(to top, var(--bg) 0%, color-mix(in srgb, var(--bg) 55%, transparent) 14%, transparent 34%),
  radial-gradient(58% 62% at 0% 92%, color-mix(in srgb, var(--bg) 94%, transparent) 0%, color-mix(in srgb, var(--bg) 78%, transparent) 46%, transparent 76%); }
@media (max-width: 720px), (max-aspect-ratio: 9 / 10) {
  .scene-opening.has-map .opening-stage::after { background: linear-gradient(to top, var(--bg) 0, var(--bg) calc(var(--now-text, 40%) + 1.25rem), color-mix(in srgb, var(--bg) 60%, transparent) calc(var(--now-text, 40%) + 3rem), transparent calc(var(--now-text, 40%) + 6rem)); }
}
/* a phone with a card open: the two rows about the sky and the water stay, the bird and the radio wait under the card */
.scene-opening.card-in-text .hearing li[data-kind="yard"], .scene-opening.card-in-text .hearing li[data-kind="radio"] { display: none; }
/* a craft's outline as a small picture (js/craft.js): a card's corner */
.key-craft { display: inline-grid; place-items: center; width: 1rem; height: 1rem; }
.craft-ico { display: block; }
/* Now, a small landscape window: the words at the lower left stand on a soft patch of the page's colour, so no name of the
   map runs under them (from 900px wide the words are a card of their own: css/scene-opening.css) */
@media (min-width: 721px) and (max-width: 899px) and (min-aspect-ratio: 9 / 10) {
  .scene-opening.has-map .opening-text { position: relative; isolation: isolate; }
  .scene-opening.has-map .opening-text::before { content: ''; position: absolute; z-index: -1; inset: -1.4rem 0 0 -2.6rem; border-radius: 2.5rem; background: color-mix(in srgb, var(--bg) 90%, transparent); box-shadow: 1rem .6rem 0 1.2rem color-mix(in srgb, var(--bg) 90%, transparent); filter: blur(14px); pointer-events: none; }      /* right and down the patch is a shadow, not a box: a box past those edges would count as content the words hide (and could be scrolled to) */
}

/* ---- timestrip.css */
/* rohin.me - the time control (js/timestrip.js), one for the whole site: Live · ▶ · bars, the clock's hours under the
   bars and the chosen moment under the thumb. One row of 44 px plus a line of ticks. Tokens only. Used by Signals; Now
   and the Machine room can take it as it is. */
.ts { display: grid; grid-template-columns: auto auto minmax(0, 1fr); grid-template-rows: var(--tap) auto; column-gap: .4rem; row-gap: 2px; align-items: center; min-width: 0; }
.ts-live, .ts-play { grid-row: 1; }
.ts-line { grid-row: 1 / 3; grid-column: 3; display: grid; grid-template-rows: var(--tap) auto; row-gap: 2px; min-width: 0; }
.ts-live { display: inline-flex; align-items: center; gap: .45rem; height: var(--tap); padding: 0 .85rem 0 .75rem; border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--glass); font-size: var(--t-small); font-weight: 500; color: var(--ink-2); white-space: nowrap; transition: border-color var(--fast), color var(--fast), transform var(--fast) var(--ease); }
.ts-live[aria-pressed="true"] { color: var(--ink); border-color: var(--line-strong); }
.ts-live[aria-pressed="false"] { color: var(--ink); border-color: var(--accent); font-weight: 600; }      /* at an earlier moment: plainly the way back */
.ts-live[aria-pressed="false"] .ts-live-dot { background: var(--ink-3); animation: none; box-shadow: none; }
.ts-play { width: var(--tap); height: var(--tap); display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); background: var(--glass); color: var(--ink); transition: border-color var(--fast), transform var(--fast) var(--ease); }
.ts-play .ico { fill: currentColor; stroke-width: 1; }
.ts-play[data-on] { border-color: var(--accent); }
.ts-live:hover, .ts-play:hover { border-color: var(--line-strong); }
.ts-live:active, .ts-play:active { transform: scale(.94); }
.ts-track { position: relative; height: var(--tap); min-width: 0; }
.ts-bars { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(var(--ts-cols, 25), minmax(0, 1fr)); align-items: end; gap: 2px; padding: 4px 0; border-bottom: 1px solid var(--line-strong); }
.ts-bars i { display: block; min-height: 2px; border-radius: 3px 3px 0 0; background: var(--c-quiet); opacity: .55; }
.ts-bars i.none { background: none; border-bottom: 1px dashed var(--line-strong); min-height: 0; }
.ts-bars i.on { background: var(--accent); opacity: 1; }
.ts-bars i.ts-nowcol { align-self: stretch; background: none; border-left: 1px dashed var(--line-strong); border-radius: 0; opacity: 1; }
.ts-bars i.ts-nowcol.on { background: var(--accent-soft); border-left: 2px solid var(--accent); }
.ts:not([data-live]) .ts-bars { border-bottom-color: var(--accent); }
.ts-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; background: transparent; -webkit-appearance: none; appearance: none; cursor: ew-resize; touch-action: none; }
.ts-range::-webkit-slider-runnable-track { height: 100%; background: transparent; }
.ts-range::-moz-range-track { height: 100%; background: transparent; }
.ts-range::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 2.75rem; border: 0; border-radius: 8px; background: linear-gradient(to right, transparent 10px, var(--ink) 10px, var(--ink) 12px, transparent 12px), radial-gradient(circle at 50% 5px, var(--ink) 0 5px, transparent 5.5px); cursor: ew-resize; }
.ts-range::-moz-range-thumb { width: 22px; height: 2.75rem; border: 0; border-radius: 8px; background: linear-gradient(to right, transparent 10px, var(--ink) 10px, var(--ink) 12px, transparent 12px), radial-gradient(circle at 50% 5px, var(--ink) 0 5px, transparent 5.5px); cursor: ew-resize; }
.ts-range:focus-visible { outline-offset: 4px; }
/* under the bars: the clock's hours, and the moment chosen right under the thumb */
.ts-under { position: relative; height: .95rem; min-width: 0; font-size: .6875rem; line-height: 1.3; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.ts-ticks { position: absolute; inset: 0; }
.ts-tick { position: absolute; top: 0; transform: translateX(-50%); white-space: nowrap; transition: opacity var(--fast); }
.ts-tick.is-first { transform: none; }
.ts-tick.is-under { opacity: 0; }
.ts-at { position: absolute; top: 0; white-space: nowrap; color: var(--accent); font-weight: 600; }
.ts-at[hidden] { display: none; }
@media (max-width: 380px) { .ts-live { padding: 0 .65rem 0 .6rem; } }
@media (prefers-reduced-motion: reduce) { .ts-live, .ts-play, .ts-tick { transition: none; } .ts-live:active, .ts-play:active { transform: none; } }

/* ---- scene-opening.css */
/* rohin.me - Now (js/scenes/opening.js), the parts that came with Sky on 14 Nov: the timeline under the map, the rows
   that are not links, the strip of today's highlights and conditions, the Data panel's Spotted list. The map, the rows
   and the shade under the words are in css/scenes.css ("1. now"). The timeline's buttons keep the old Sky class names
   (sky-live, sky-play, scrub-*) so the other looks in css/look.css still dress them. Tokens only. */

/* ---- the timeline: Live, Play, the last days as bars, the moment shown */
.now-time { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--s-4); align-items: center; }
.scrub-buttons { display: flex; align-items: center; gap: .4rem; }
.sky-live { display: inline-flex; align-items: center; gap: .45rem; height: var(--tap); padding: 0 .95rem; border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--glass); font-size: var(--t-small); font-weight: 500; color: var(--ink-2); transition: border-color var(--fast), color var(--fast), transform var(--fast) var(--ease); }
.sky-live[aria-pressed="true"] { color: var(--ink); border-color: var(--line-strong); }
.sky-live[aria-pressed="false"] .live-dot { background: var(--ink-3); animation: none; }
.sky-live[aria-pressed="false"] { color: var(--ink); border-color: var(--accent); }      /* in a replay: the way back to live, plainly a button */
.sky-play { width: var(--tap); height: var(--tap); display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); background: var(--glass); color: var(--ink); transition: border-color var(--fast), transform var(--fast) var(--ease); }
.sky-play .ico { fill: currentColor; stroke-width: 1; }
.sky-live:hover, .sky-play:hover { border-color: var(--line-strong); }
.sky-live:active, .sky-play:active { transform: scale(.94); }
.scrub-line { display: grid; gap: .1rem; min-width: 0; }
.scrub-track { position: relative; height: calc(var(--tap) + 1px); border-bottom: 1px solid var(--line-strong); }
.scrub-spark { position: absolute; inset: 0; width: 100%; height: 100%; }
/* the slider: a sideways drag here belongs to it, never to the page (core.js leaves form controls alone) */
.scrub-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; background: transparent; -webkit-appearance: none; appearance: none; cursor: ew-resize; touch-action: none; }
.scrub-range::-webkit-slider-runnable-track { height: 100%; background: transparent; }
.scrub-range::-moz-range-track { height: 100%; background: transparent; }
.scrub-range::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 2.75rem; border: 0; border-radius: 8px; background: linear-gradient(to right, transparent 10px, var(--ink) 10px, var(--ink) 12px, transparent 12px), radial-gradient(circle at 50% 5px, var(--ink) 0 5px, transparent 5.5px); cursor: ew-resize; }
.scrub-range::-moz-range-thumb { width: 22px; height: 2.75rem; border: 0; border-radius: 8px; background: linear-gradient(to right, transparent 10px, var(--ink) 10px, var(--ink) 12px, transparent 12px), radial-gradient(circle at 50% 5px, var(--ink) 0 5px, transparent 5.5px); cursor: ew-resize; }
.scrub-range:focus-visible { outline-offset: 4px; }
.scrub-ends { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--s-3); font-size: .6875rem; line-height: 1.4; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.scrub-at { text-align: center; color: var(--ink); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.now-time[data-replay] .scrub-track { border-bottom-color: var(--accent); }
.now-time[data-replay] .scrub-at { color: var(--accent); }

/* ---- the rows: every one a door with a quiet › (Signals on its band, Birds on that bird, Radio); Radio's own ▶ stands
   in the place of its icon and plays the station from here */
.hear-go { display: grid; place-items: center; color: var(--ink-3); transition: color var(--fast), transform var(--fast) var(--ease); }
.hear-go .ico { transform: rotate(-90deg); }
.hearing a:hover .hear-go { color: var(--ink); transform: translateX(2px); }
.hearing li.has-play { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: .5rem; }
.scene-opening .hearing li.has-play a { grid-template-columns: minmax(0, 1fr) auto; }      /* over the looks' own columns (css/look.css): no icon here */
.hearing li.has-play .hear-ico { display: none; }
.hear-play { width: var(--tap); height: var(--tap); display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); background: var(--glass); color: var(--accent); transition: border-color var(--fast), transform var(--fast) var(--ease); }
.hear-play .ico { fill: currentColor; stroke-width: 1; }
.hear-play:hover { border-color: var(--line-strong); }
.hear-play:active { transform: scale(.94); }
.hear-play[aria-pressed="true"] { border-color: var(--accent); }
.hear-play[data-busy] .ico { animation: breathe 1.2s var(--ease-in-out) infinite; }

/* ---- the strip: Farthest, Highest, Fastest, Peak hour, then tide, earthquakes, a satellite pass, Sea-Tac, pressure */
.glance { display: grid; grid-template-columns: repeat(auto-fill, minmax(7.25rem, 1fr)); gap: 6px; min-width: 0; }
.gl { display: grid; align-content: start; gap: .05rem; min-width: 0; padding: .45rem .7rem .5rem; border-radius: var(--r-2); border: 1px solid var(--line); background: var(--glass); backdrop-filter: blur(var(--blur)); -webkit-backdrop-filter: blur(var(--blur)); }
.gl[hidden] { display: none; }
.gl-k { display: flex; align-items: center; gap: .3rem; min-width: 0; font-size: var(--t-tiny); color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gl-k .ico { flex: none; color: var(--ink-3); }
.gl-v { font-size: 1rem; font-weight: 600; line-height: 1.3; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.gl-s { min-height: 1em; font-size: var(--t-tiny); color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }

/* ---- the timeline in the panel, one 44px row everywhere (round 22; UX review #15): Live, ▶, the bars with the days
   under them (Mon Tue ... Now), the moment replayed written under the thumb in place of the days. The same look as the
   site's other time strips (Live · ▶ · bars with their ticks). */
.now-panel .scrub-line { position: relative; display: block; }
.now-panel .scrub-track { height: var(--tap); border-bottom: 0; }
.now-panel .scrub-spark { inset: 1px 0 auto 0; height: 1.6rem; }
.now-panel .scrub-track::after { content: ''; position: absolute; left: 0; right: 0; top: calc(1.6rem + 1px); height: 1px; background: var(--line-strong); pointer-events: none; }
.now-time[data-replay] .scrub-track::after { background: var(--accent); }
.now-panel .scrub-range::-webkit-slider-thumb { height: calc(1.6rem + 4px); margin-top: 0; }
.now-panel .scrub-range::-moz-range-thumb { height: calc(1.6rem + 4px); }
.scrub-ticks { position: absolute; left: 0; right: 0; bottom: 0; height: .95rem; pointer-events: none; font-size: .6875rem; line-height: .95rem; color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; transition: opacity var(--fast); }
.scrub-ticks span { position: absolute; top: 0; }
.scrub-ticks span:last-child { right: 0; }
.now-time[data-replay] .scrub-ticks { opacity: 0; }
.now-panel .scrub-ends { display: block; position: absolute; left: 0; right: 0; bottom: 0; height: .95rem; pointer-events: none; }
.now-panel .scrub-ends > span:not(.scrub-at) { display: none; }
.now-panel .scrub-at { position: absolute; top: 0; left: 50%; transform: translateX(-50%); font-size: .6875rem; line-height: .95rem; overflow: visible; }

/* ---- the panel's own buttons: fold (the card to a pill and back), More (the rest of the tiles) */
.np-bar { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: var(--s-2); min-width: 0; }
.np-bar[hidden], .np-body[hidden], .np-pill[hidden], .np-more[hidden] { display: none; }
.np-body { display: grid; gap: var(--s-2); min-width: 0; }
.np-fold { width: var(--tap); height: var(--tap); display: grid; place-items: center; border-radius: 50%; border: 1px solid transparent; color: var(--ink-2); transition: color var(--fast), background var(--fast), border-color var(--fast); }
.np-fold:hover { color: var(--ink); border-color: var(--line); background: var(--glass); }
.np-pill { display: inline-flex; align-items: center; gap: .55rem; height: var(--tap); max-width: 100%; padding: 0 .85rem 0 1rem; border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--glass-strong); backdrop-filter: blur(var(--blur)); -webkit-backdrop-filter: blur(var(--blur)); box-shadow: var(--shadow);
  color: var(--ink); font-size: var(--t-small); font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; transition: border-color var(--fast), transform var(--fast) var(--ease); }
.np-pill:hover { border-color: var(--line-strong); }
.np-pill:active, .np-fold:active, .np-more:active { transform: scale(.96); }
.np-pill-t { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.np-pill .ico { flex: none; color: var(--ink-2); transform: rotate(180deg); }
.scene-opening[data-replay] .np-pill { border-color: var(--accent); }
.scene-opening[data-replay] .np-pill .live-dot { background: var(--accent); animation: none; }
.np-more { min-width: var(--tap); min-height: var(--tap); padding: 0 .9rem; border-radius: var(--r-2); border: 1px solid var(--line); background: var(--glass); color: var(--ink); font-size: var(--t-small); font-weight: 500; white-space: nowrap; transition: border-color var(--fast), background var(--fast), transform var(--fast) var(--ease); }
.np-more:hover, .np-more[aria-expanded="true"] { border-color: var(--line-strong); }
/* folded, the panel is only its pill: the rest of its row belongs to the map (a craft's card in it on a phone stays live) */
.scene-opening.has-map .now-panel[data-folded] { pointer-events: none; }
.scene-opening.has-map .now-panel[data-folded] > * { pointer-events: auto; }
/* the card or the pill comes in softly when it is folded or opened (none with less motion: css/system.css) */
.now-panel.np-in > :not([hidden]) { animation: np-in var(--med) var(--ease); transform-origin: 0 100%; }
@keyframes np-in { from { opacity: 0; transform: translateY(6px) scale(.98); } }

/* ---- phones, upright tablets and small windows: the same parts as a compact strip under the map. The rows two by two;
   every tile in one line that scrolls sideways inside itself (no More: the line holds them all) */
@media (max-width: 899px), (max-aspect-ratio: 9 / 10) {
  .opening-text { gap: var(--s-2); }
  .now-time { gap: var(--s-2); }
  .sky-live { padding: 0 .7rem; }
  .now-panel .hearing { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--s-3); }
  .now-panel .hearing a { gap: .45rem; min-height: var(--tap); padding: .2rem 0; }
  .now-panel .hear-ico { width: 1.4rem; height: 1.4rem; border: 0; background: none; }
  .now-panel .hear-main { gap: .4rem; }
  .now-panel .hear-main b { font-size: .9375rem; }
  .now-panel .hear-label { min-width: 0; }
  .np-tiles { display: flex; gap: 6px; min-width: 0; overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scrollbar-width: none; touch-action: pan-x pinch-zoom; }
  .np-tiles::-webkit-scrollbar { display: none; }
  .np-tiles .glance, .np-extra, .np-extra-in { display: contents; }
  .np-tiles .np-more { display: none; }
  .gl { flex: 0 0 auto; min-width: 6.5rem; max-width: 9rem; scroll-snap-align: start; padding: .4rem .6rem .45rem; }
  .gl-v { font-size: .9375rem; }
  .now-panel[data-folded] { justify-items: start; }
}
/* a phone: the bird and the song are named by their icon and their ▶, so their names have the width; a narrower › */
@media (max-width: 480px) {
  .now-panel .hearing li:is([data-kind="yard"], [data-kind="radio"]) .hear-label { display: none; }
  .now-panel .hearing { column-gap: var(--s-2); }
  .scene-opening .now-panel .hearing a { column-gap: .4rem; }
  .now-panel .hearing li.has-play { gap: .35rem; }
  .now-panel .hear-go .ico { width: 12px; height: 12px; }
}
/* a short phone (an iPhone SE, 320 x 568): each tile one line, the label over the figure without the line under it, so
   the map keeps more of the screen */
@media (max-height: 700px) and ((max-width: 899px) or (max-aspect-ratio: 9 / 10)) {
  .now-panel .gl { display: flex; align-items: baseline; gap: .4rem; min-width: 0; max-width: none; padding: .35rem .6rem; }
  .now-panel .gl-s { display: none; }
  .now-panel .gl-v { font-size: .875rem; }
}
/* a craft's card on a phone takes the strip's place (and the bird's and the radio's: css/scenes.css) */
.scene-opening.card-in-text .np-tiles { display: none; }

/* ---- wide screens: one card at the lower left, a third of the map at most (Rohin, 15 Nov: "This is big, make it nicer
   and UX friendly"). The timeline is one slim line, the rows two by two, four tiles in one row, the rest behind More.
   It keeps clear of the map's buttons (top right) and its credit (bottom right). */
@media (min-width: 900px) and (min-aspect-ratio: 9 / 10) {
  .now-panel { align-self: flex-start; width: min(37rem, 100%); gap: var(--s-2); padding: var(--s-2) var(--s-2) var(--s-2) var(--s-3); border-radius: var(--r-3); border: 1px solid var(--line);
    background: var(--glass-strong); backdrop-filter: blur(var(--blur)) saturate(1.15); -webkit-backdrop-filter: blur(var(--blur)) saturate(1.15); box-shadow: var(--shadow); }
  .now-panel[data-folded] { width: auto; padding: 0; border-color: transparent; background: none; backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: none; }
  .now-panel .now-time { gap: var(--s-2); }
  .now-panel .scrub-buttons { gap: .3rem; }
  .now-panel .sky-live { padding: 0 .8rem; }
  /* the four rows, two by two */
  .now-panel .hearing { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--s-4); }
  .now-panel .hearing a { gap: .55rem; min-height: var(--tap); padding: .2rem 0; }
  .now-panel .hear-ico { width: 1.5rem; height: 1.5rem; border: 0; background: none; }
  .now-panel .hear-main { gap: .45rem; }
  .now-panel .hear-main b { font-size: .9375rem; }
  .now-panel .hear-sub { min-height: 0; }
  /* four tiles in a row and More; the rest open under them in place */
  .np-tiles { display: grid; grid-template-columns: minmax(0, 1fr) 4.25rem; gap: 0 6px; align-items: stretch; min-width: 0; }
  .np-tiles .glance { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .np-tiles .gl { padding: .4rem .6rem .45rem; }
  .np-tiles .gl-v { font-size: .9375rem; }
  .np-extra { grid-column: 1 / -1; display: grid; grid-template-rows: 0fr; opacity: 0; visibility: hidden;
    transition: grid-template-rows var(--med) var(--ease), opacity var(--med) var(--ease), visibility 0s linear var(--med); }
  .now-panel[data-more] .np-extra { grid-template-rows: 1fr; opacity: 1; visibility: visible; transition: grid-template-rows var(--med) var(--ease), opacity var(--med) var(--ease), visibility 0s; }
  .np-extra-in { min-height: 0; overflow: hidden; }
  .np-tiles .glance-more { padding: 6px calc(4.25rem + 6px) 0 0; }      /* under the four, column for column */
  /* the map is the picture: only a breath of shade at the bottom edge, for the credit */
  .scene-opening .opening-stage::after, .scene-opening.has-map .opening-stage::after { background: linear-gradient(to top, color-mix(in srgb, var(--bg) 55%, transparent) 0%, transparent 16%); }
}

/* ---- the Data panel: what was spotted today */
.spotted { display: grid; }
.spotted li { display: grid; grid-template-columns: 4.3rem minmax(0, 1fr); gap: .5rem; padding: .45rem 0; border-top: 1px solid var(--line); font-size: var(--t-small); color: var(--ink-2); line-height: 1.45; }
.spotted li:first-child { border-top: 0; }
.spotted time { color: var(--ink-2); } .spotted b { color: var(--ink); font-weight: 500; }

/* the page's own layer lets taps through to the map (css/scenes.css); the Data panel lies over the map and takes them
   itself: before this its Close button, its scrolling and the life list's rows went to the map under it (15 Nov) */
.scene-opening.has-map .data-panel { pointer-events: auto; }

/* ---- the Data panel: every aircraft type heard, rarest first (js/now-types.js); a row opens that type's last visit */
.types-head, .type-row { display: grid; grid-template-columns: minmax(0, 1fr) 3.6rem 3.2rem; gap: .5rem; align-items: center; }
.types-head { font-size: var(--t-tiny); color: var(--ink-3); padding: 0 .35rem; }
.types-head span:nth-child(n+2), .type-row time, .type-row b { text-align: right; font-variant-numeric: tabular-nums; }
.types-list { display: grid; }
.types-list li { border-top: 1px solid var(--line); }
.types-list li:first-child { border-top: 0; }
.type-row { width: 100%; min-height: var(--tap); padding: .3rem .35rem; border: 0; border-radius: var(--r-1); background: none; color: var(--ink); font: inherit; font-size: var(--t-small); text-align: left; cursor: pointer; }
.type-row:hover, .type-row:focus-visible { background: var(--accent-soft); }
.type-row:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.type-name { min-width: 0; overflow-wrap: anywhere; line-height: 1.3; }
.type-row time { color: var(--ink-2); } .type-row b { font-weight: 500; }

/* ---- the card of an earthquake or a weather balloon (js/now-depth.js) */
.nc-ico[data-kind="quake"] { color: var(--c-warn); } .nc-ico[data-kind="balloon"] { color: var(--c-good); } .nc-ico[data-kind="sat"] { color: var(--ink); }

/* the Data panel's parts from onair (2026-11-15, js/now-more.js): rows of a word, a soft bar and a number; chips of call signs */
.hbars { display: grid; gap: .35rem; margin: 0; padding: 0; list-style: none; }
.hbars li { display: grid; grid-template-columns: minmax(0, 9.5rem) minmax(0, 1fr) 2.6rem; align-items: center; column-gap: .6rem; font-size: var(--t-small); color: var(--ink); }
.hb-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hb-track { height: .5rem; border-radius: var(--r-pill); background: var(--bg-sunk); overflow: hidden; }
.hb-track i { display: block; height: 100%; border-radius: inherit; opacity: .85; }
.hb-n { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.more-body { min-width: 0; }
.more-chips { display: flex; flex-wrap: wrap; gap: .35rem; margin: 0; padding: 0; list-style: none; }
.more-chips li { padding: .2rem .55rem; border-radius: var(--r-pill); border: 1px solid var(--line); font-size: var(--t-small); color: var(--ink); font-variant-numeric: tabular-nums; }

/* ---- scene-owners.css */
/* rohin.me - page 6, Who Owns (js/scenes/owners.js, js/owners-graph.js). One screen: a search field and the list of
   owners, the picture of the chosen entity, its detail. Long things scroll inside their own panel. Tokens only.
   Wide: three columns. Tablet upright: the picture on top, list and detail side by side under it. Phones: the list,
   the picture and the detail take turns (tabs). */

.scene-visual.owners { min-height: 0; }
.owners .ow { position: absolute; inset: 0; display: grid; gap: var(--s-3) var(--s-4); min-width: 0;
  grid-template-columns: minmax(15rem, 18rem) minmax(0, 1fr) minmax(17rem, 22rem); grid-template-rows: auto auto minmax(0, 1fr);
  grid-template-areas: "find main detail" "chips main detail" "side main detail"; }

/* ---- search */
.ow-findrow { grid-area: find; display: flex; align-items: center; gap: var(--s-2); min-width: 0; }
.ow-findrow > .ow-search { flex: 1 1 auto; }
.ow-findrow > .ow-way { flex: none; }
.ow-search { display: flex; align-items: center; gap: .55rem; height: calc(var(--tap) + 2px); padding: 0 1rem; border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--glass); color: var(--ink-3); backdrop-filter: blur(var(--blur)); -webkit-backdrop-filter: blur(var(--blur)); transition: border-color var(--fast); min-width: 0; }
.ow-search:focus-within { border-color: var(--accent); color: var(--ink-2); }
.ow-q { flex: 1; min-width: 0; height: 100%; border: 0; padding: 0; background: none; color: var(--ink); font: inherit; font-size: 1rem; outline: none; appearance: none; -webkit-appearance: none; }
.ow-q::placeholder { color: var(--ink-3); opacity: 1; }
.ow-q::-webkit-search-cancel-button { -webkit-appearance: none; }

/* ---- tabs (phones only) */
.ow-tabs { grid-area: tabs; display: none; gap: 2px; padding: 3px; border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--glass); min-width: 0; }
.ow-tabs button { flex: 1 1 0; min-width: var(--tap); min-height: var(--tap); padding: 0 .4rem; border-radius: var(--r-pill); font-size: var(--t-small); font-weight: 500; color: var(--ink-2); white-space: nowrap; transition: color var(--fast), background var(--med) var(--ease); }
.ow-tabs button[aria-selected="true"] { color: var(--ink); background: color-mix(in srgb, var(--ink) 12%, transparent); }

/* ---- the list */
.ow-side { grid-area: side; min-width: 0; min-height: 0; display: grid; grid-template-rows: auto minmax(0, 1fr); gap: var(--s-2); }
.ow-head { display: grid; gap: var(--s-2); min-width: 0; }
.ow-head-row { display: flex; align-items: center; gap: var(--s-2); min-width: 0; min-height: 1.5rem; }
.ow-date { margin-left: auto; font-size: var(--t-tiny); color: var(--ink-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ow-by { flex: 1 1 auto; min-width: 0; }
.ow-by { display: flex; }
.ow-by button { flex: 1 1 0; min-width: 0; padding: 0 .2rem; font-size: .78125rem; white-space: nowrap; }
.ow-kind, .ow-state { flex: 0 0 auto; height: var(--tap); min-width: var(--tap); max-width: 100%; padding: 0 1.9rem 0 .85rem; border-radius: var(--r-pill); border: 1px solid var(--line); background-color: var(--glass); color: var(--ink); font: inherit; font-size: var(--t-small); appearance: none; -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%), linear-gradient(135deg, var(--ink-2) 50%, transparent 50%); background-position: calc(100% - 1.05rem) 55%, calc(100% - .75rem) 55%; background-size: .3rem .3rem; background-repeat: no-repeat; }
.ow-kind option, .ow-state option { background: var(--bg-raise); color: var(--ink); }
.ow-count { font-size: var(--t-small); color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ow-clear { margin-left: auto; min-height: var(--tap); min-width: var(--tap); padding: 0 .6rem; font-size: var(--t-small); color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: .25em; }
.ow-list { min-height: 0; overflow-y: auto; overscroll-behavior: contain; border-top: 1px solid var(--line); scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
.ow-group { position: sticky; top: 0; z-index: 1; padding: .5rem .5rem .35rem; font-size: var(--t-tiny); font-weight: 500; color: var(--ink-3); background: var(--bg); }
.ow-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .6rem; min-height: 54px; padding: 0 .5rem; border-bottom: 1px solid var(--line); transition: background var(--fast); }
.ow-row:hover, .ow-row:focus-visible, .ow-row[aria-current] { background: color-mix(in srgb, var(--ink) 6%, transparent); }
.ow-row[aria-current] { box-shadow: inset 2px 0 0 var(--accent); }
.ow-row:focus-visible { outline-offset: -2px; }
.ow-rank { min-width: 1.3rem; font-size: var(--t-tiny); color: var(--ink-3); font-variant-numeric: tabular-nums; text-align: right; }
.ow-row-main { grid-column: 2; display: grid; gap: .05rem; min-width: 0; }
.ow-row-name { display: flex; align-items: center; gap: .45rem; min-width: 0; color: var(--ink); font-weight: 500; font-size: .9375rem; line-height: 1.35; }
.ow-row-name > span, .ow-row-sub { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.ow-row-sub { font-size: var(--t-tiny); color: var(--ink-3); }
.ow-row-n { grid-column: 3; font-size: var(--t-small); font-weight: 500; color: var(--ink-2); font-variant-numeric: tabular-nums lining-nums; white-space: nowrap; }
.ow-none { padding: .8rem .5rem; color: var(--ink-3); font-size: var(--t-small); }

/* the mark of each kind of entity: the same shapes as in the picture, so the kinds read without colour too */
.ow-glyph { flex: none; fill: currentColor; color: var(--c-sky); }
.ow-glyph[data-type="investor"] { color: var(--accent); }
.ow-glyph[data-type="company"] { color: var(--c-sea); }
.ow-glyph[data-type="business"] { color: var(--c-yard); }
.ow-glyph[data-type="subsidiary"] { color: var(--c-quiet); }

/* ---- the picture */
.ow-main { grid-area: main; min-width: 0; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); gap: var(--s-2); }
.ow-toprow { display: flex; align-items: center; gap: var(--s-2); min-width: 0; min-height: var(--tap); }
.ow-toprow .ow-crumbs { flex: 1 1 auto; }
/* which picture: the map or the graph (the tabs choose on phones) */
.ow-view { flex: none; }
.ow-view button { padding: 0 1rem; }
.ow[data-nomap] .ow-view { display: none; }
.ow-stage, .ow-mapbox { grid-row: 2; grid-column: 1; }
.ow[data-view="map"] .ow-stage, .ow[data-view="graph"] .ow-mapbox { display: none; }

/* ---- the map (js/owners-map.js): the shared map module fills the box; the page's own things lie over it */
.ow-mapbox { position: relative; min-width: 0; min-height: 0; border-radius: var(--r-3); overflow: hidden; border: 1px solid var(--line); background: var(--map-water); box-shadow: var(--shadow); }
.ow-map { position: absolute; inset: 0; }
/* the two choices sit on one plate that hides the map under it, whatever the look does to a segmented control */
.ow-map-tools { position: absolute; z-index: 2; left: var(--s-3); top: var(--s-3); display: flex; align-items: center; gap: var(--s-1); padding: 3px; border-radius: var(--r-pill); border: 1px solid var(--line); background: color-mix(in srgb, var(--bg-raise) 92%, transparent); backdrop-filter: blur(var(--blur)); -webkit-backdrop-filter: blur(var(--blur)); }
.ow-map-usa { min-height: var(--tap); min-width: var(--tap); padding: 0 .85rem; border-radius: var(--r-pill); font-size: var(--t-small); font-weight: 500; color: var(--ink-2); transition: color var(--fast), background var(--med) var(--ease); }
.ow-map-usa[aria-pressed="true"] { color: var(--ink); background: color-mix(in srgb, var(--ink) 12%, transparent); }
.ow-map-zoom { position: absolute; z-index: 2; right: var(--s-3); top: var(--s-3); }
.ow-map-tools[hidden] { display: none; }
.ow-map-note { position: absolute; z-index: 2; left: var(--s-3); top: calc(var(--s-3) + var(--tap) + 8px + var(--s-2)); background: color-mix(in srgb, var(--bg-raise) 92%, transparent) !important; max-width: calc(100% - 5.5rem); min-height: 1.75rem; display: inline-flex; align-items: center; padding: 0 .7rem; border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--glass-strong); font-size: var(--t-tiny); color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; pointer-events: none; }
.ow-map-note:empty { display: none; }
.ow-map-key { position: absolute; z-index: 2; left: var(--s-3); bottom: var(--s-3); max-width: min(16rem, calc(100% - 9.5rem)); display: grid; gap: .1rem; padding: .45rem .7rem; border-radius: var(--r-2); border: 1px solid var(--line); background: var(--glass-strong); backdrop-filter: blur(var(--blur)); -webkit-backdrop-filter: blur(var(--blur)); font-size: var(--t-tiny); line-height: 1.5; color: var(--ink-2); pointer-events: none; }
.ow-map-key:empty { display: none; }
.ow-map-key li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .45rem; }
.ow-map-key span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); }
.ow-map-key b { font-weight: 500; font-variant-numeric: tabular-nums; }
/* a brand's mark: a hue and a form, the same on the map and in the key (it reads without colour too) */
.ow-dot { --h: var(--c-sky); width: 12px; height: 12px; border-radius: 50%; background: color-mix(in srgb, var(--h) 16%, var(--bg-raise)); box-shadow: inset 0 0 0 2.2px var(--h); }      /* the owner's colour as the map wears it: a soft ring */
.ow-dot[data-g="1"], .ow-dot[data-g="4"] { --h: var(--c-warn); }
.ow-dot[data-g="2"], .ow-dot[data-g="5"] { --h: var(--c-sea); }
.ow-dot[data-g="3"], .ow-dot[data-g="4"], .ow-dot[data-g="5"] { background: var(--bg-raise); box-shadow: inset 0 0 0 1.5px var(--h); }
.ow-dot[data-g="6"] { --h: var(--c-quiet); background: var(--bg-raise); box-shadow: inset 0 0 0 1px var(--line-strong); }
.ow-crumbs { display: flex; align-items: center; min-width: 0; min-height: var(--tap); overflow-x: auto; overscroll-behavior: contain; scrollbar-width: none; }
.ow-crumbs::-webkit-scrollbar { display: none; }
.ow-crumb { flex: none; display: inline-flex; align-items: center; justify-content: center; min-height: var(--tap); min-width: var(--tap); padding: 0 .1rem; font-size: var(--t-small); color: var(--ink-2); white-space: nowrap; }
.ow-crumb + .ow-crumb::before { content: '/'; margin: 0 .6rem 0 .5rem; color: var(--ink-3); }
button.ow-crumb:hover { color: var(--ink); }
.ow-crumb[aria-current] { color: var(--ink); font-weight: 600; }
.ow-stage { position: relative; min-width: 0; min-height: 0; border-radius: var(--r-3); overflow: hidden; border: 1px solid var(--line); background: var(--bg-sunk); box-shadow: var(--shadow); }
.ow-gl, .ow-ink { position: absolute; inset: 0; width: 100%; height: 100%; }
.ow-gl { touch-action: none; cursor: grab; }
.ow-gl:active { cursor: grabbing; }
.ow-gl:focus-visible { outline-offset: -4px; border-radius: var(--r-3); }
.ow-ink { pointer-events: none; }
.ow-note { position: absolute; left: var(--s-3); top: var(--s-3); max-width: calc(100% - 5.5rem); min-height: 1.75rem; display: inline-flex; align-items: center; padding: 0 .7rem; border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--glass-strong); font-size: var(--t-tiny); color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: none; }
.ow-note:empty { display: none; }
.ow-empty { position: absolute; inset: 0; display: grid; place-items: center; color: var(--ink-3); font-size: var(--t-small); pointer-events: none; }
.ow-legend { position: absolute; left: var(--s-3); right: var(--s-3); bottom: var(--s-2); display: flex; flex-wrap: wrap; gap: .1rem .9rem; font-size: .6875rem; line-height: 1.6; color: var(--ink-2); pointer-events: none; }
.ow-legend li { display: inline-flex; align-items: center; gap: .35rem; white-space: nowrap; }
.ow-zoom { position: absolute; right: var(--s-3); top: var(--s-3); display: inline-flex; flex-direction: column; padding: 3px; border-radius: var(--r-3); border: 1px solid var(--line); background: var(--glass-strong); backdrop-filter: blur(var(--blur)); -webkit-backdrop-filter: blur(var(--blur)); }
.ow-zoom button { width: var(--tap); height: var(--tap); display: grid; place-items: center; border-radius: 50%; color: var(--ink-2); transition: color var(--fast), background var(--fast), transform var(--fast) var(--ease); }
.ow-zoom button:hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 10%, transparent); }
.ow-zoom button:active { transform: scale(.9); }
.ow-zoom button[disabled] { opacity: .3; cursor: default; }
.ow-zoom button[aria-pressed="true"] { color: var(--ink); background: color-mix(in srgb, var(--ink) 14%, transparent); }
/* the outline that stands in for the picture (no WebGL, or "List") */
.ow-tree { position: absolute; inset: 2.9rem 4rem 2.1rem .5rem; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
.ow-stage[data-nogl] .ow-tree { right: .5rem; }
.ow-out-head { padding: .7rem .5rem .25rem; font-size: var(--t-tiny); font-weight: 500; color: var(--ink-3); }
.ow-out-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .5rem; min-height: var(--tap); padding: 0 .6rem 0 calc(.5rem + var(--d, 0) * .85rem); border-bottom: 1px solid var(--line); font-size: var(--t-small); color: var(--ink-2); }
.ow-out-row:hover, .ow-out-row:focus-visible { background: color-mix(in srgb, var(--ink) 6%, transparent); color: var(--ink); }
.ow-out-row:focus-visible { outline-offset: -2px; }
.ow-out-row[aria-current] { color: var(--ink); font-weight: 600; box-shadow: inset 2px 0 0 var(--accent); }
.ow-out-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.ow-out-n { font-size: var(--t-tiny); color: var(--ink-3); font-variant-numeric: tabular-nums; }

/* ---- the detail */
.ow-detail { grid-area: detail; min-width: 0; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: var(--s-4); border-radius: var(--r-3); border: 1px solid var(--line); background: var(--glass); scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; transition: opacity var(--fast); }
.ow-detail[aria-busy="true"] { opacity: .55; }
.ow-d-head { display: grid; gap: .3rem; }
.ow-d-name { font-family: var(--font-title); font-size: 1.25rem; font-weight: 600; line-height: 1.25; letter-spacing: -.01em; overflow-wrap: anywhere; }
.ow-d-kind { display: flex; align-items: center; gap: .45rem; font-size: var(--t-small); color: var(--ink-2); }
.ow-facts { margin-top: var(--s-3); }
.ow-facts > div { display: grid; grid-template-columns: 7rem minmax(0, 1fr); gap: var(--s-3); align-items: baseline; padding: .4rem 0; border-top: 1px solid var(--line); font-size: var(--t-small); }
.ow-facts dt { color: var(--ink-3); }
.ow-facts dd { color: var(--ink); overflow-wrap: anywhere; }
.ow-src > div { grid-template-columns: minmax(0, 1fr) auto; }
.ow-src dt { color: var(--ink-2); }
.ow-src dd { color: var(--ink-3); white-space: nowrap; font-variant-numeric: tabular-nums; }
.ow-out-link { font-size: .8125rem; font-variant-numeric: tabular-nums; display: inline-flex; align-items: center; gap: .3rem; min-height: var(--tap); min-width: var(--tap); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: .25em; }
.ow-out-link:hover { text-decoration-color: var(--accent); }
.ow-out-link .ico { color: var(--ink-3); }
.ow-sec { margin-top: var(--s-4); }
.ow-sec h4 { display: flex; align-items: baseline; gap: .5rem; margin-bottom: var(--s-1); font-size: var(--t-small); font-weight: 600; color: var(--ink); }
.ow-sec-n { font-weight: 400; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.ow-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; border-top: 1px solid var(--line); }
.ow-item-main { display: grid; gap: .12rem; min-width: 0; min-height: 56px; align-content: center; padding: .45rem .3rem; border-radius: var(--r-1); transition: background var(--fast); }
.ow-item-main:hover, .ow-item-main:focus-visible { background: color-mix(in srgb, var(--ink) 6%, transparent); }
.ow-item-main:focus-visible { outline-offset: -2px; }
.ow-item-top { display: flex; align-items: center; gap: .5rem; min-width: 0; }
.ow-item-top:empty { display: none; }
.ow-tag { padding: 0 .5rem; border-radius: var(--r-pill); border: 1px solid var(--line-strong); font-size: .6875rem; line-height: 1.55; color: var(--ink-2); white-space: nowrap; }
.ow-item-n { margin-left: auto; font-size: var(--t-tiny); color: var(--ink-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ow-item-name { display: flex; align-items: baseline; gap: .45rem; min-width: 0; font-size: .9375rem; font-weight: 500; line-height: 1.35; color: var(--ink); overflow-wrap: anywhere; }
.ow-item-name .ow-glyph { translate: 0 1px; }
.ow-item-meta { font-size: var(--t-tiny); color: var(--ink-3); line-height: 1.45; }
.ow-item-rec { width: var(--tap); height: var(--tap); display: grid; place-items: center; border-radius: 50%; color: var(--ink-3); transition: color var(--fast), background var(--fast); }
.ow-item-rec:hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 8%, transparent); }
.ow-more { margin-top: var(--s-2); min-height: var(--tap); }
.ow-more[disabled], .ow-addr-btn[disabled] { opacity: .5; }
.ow-cities li { display: flex; justify-content: space-between; gap: var(--s-3); padding: .3rem 0; border-top: 1px solid var(--line); font-size: var(--t-small); color: var(--ink-2); }
.ow-cities b { font-weight: 500; color: var(--ink); font-variant-numeric: tabular-nums; }
.ow-addr-tools { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); margin-top: var(--s-2); }
.ow-addr-btn { min-height: var(--tap); }
.ow-addr { margin-top: var(--s-2); }
.ow-addr li { display: grid; gap: .05rem; padding: .45rem 0; border-top: 1px solid var(--line); }
.ow-addr-name { font-size: var(--t-small); font-weight: 500; color: var(--ink); overflow-wrap: anywhere; }
.ow-addr-line { font-size: var(--t-tiny); color: var(--ink-2); }
.ow-people li { padding: .1rem 0; }
#owners .ow-data-src .table th, #owners .ow-data-src .table td { white-space: normal; vertical-align: top; }
#owners .ow-data-src .table td { white-space: nowrap; }

/* ---- the two ways in (title row): Places, the map of places people know; Owners, the owner side */
.ow-way button { min-width: var(--tap); padding: 0 .9rem; white-space: nowrap; }
.ow-places { grid-area: side; min-width: 0; min-height: 0; display: none; grid-template-rows: auto minmax(0, 1fr); gap: var(--s-2); }
.ow-places:has(> .ow-card:not([hidden])) { grid-template-rows: auto auto minmax(0, 1fr); }
.ow-places:has(> .ow-map-down:not([hidden])) { grid-template-rows: auto auto minmax(0, 1fr); }      /* the map's Retry box above the list: its own row (QA 11-16: the list's head lay over its first row) */
.ow-places:has(> .ow-map-down:not([hidden])):has(> .ow-card:not([hidden])) { grid-template-rows: auto auto auto minmax(0, 1fr); }
.ow-pmap { display: none; }
.ow-prow { width: 100%; text-align: left; font: inherit; color: inherit; background: none; grid-template-columns: minmax(0, 1fr) auto; }
.ow-prow .ow-row-main { grid-column: 1; }
.ow-prow .ow-row-n { grid-column: 2; }
.ow[data-way="places"] > .ow-places { display: grid; }
.ow[data-way="places"] > .ow-side, .ow[data-way="places"] > .ow-detail, .ow[data-way="places"] > .ow-tabs, .ow[data-way="places"] > .ow-tabrow { display: none !important; }
.ow[data-way="places"] .ow-toprow, .ow[data-way="places"] .ow-stage { display: none !important; }
.ow[data-way="places"] .ow-mapbox { display: block !important; grid-row: 1 / -1; }
.owners .ow[data-way="places"] { grid-template-columns: minmax(15rem, 20rem) minmax(0, 1fr); grid-template-rows: auto auto minmax(0, 1fr); grid-template-areas: "find main" "chips main" "side main"; }
.owners .ow[data-way="places"][data-nomap] { grid-template-columns: minmax(0, 34rem); justify-content: center; grid-template-areas: "find" "chips" "side"; }
/* kinds of business and Local: one row of chips that scrolls sideways (Places only) */
.ow-chips { grid-area: chips; display: none; gap: var(--s-1); min-width: 0; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; padding: 1px; }
.ow-chips::-webkit-scrollbar { display: none; }
.ow[data-way="places"] > .ow-chips { display: flex; }
.ow-chip { flex: none; min-height: var(--tap); padding: 0 .9rem; border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--glass); color: var(--ink-2); font-size: var(--t-small); white-space: nowrap; transition: color var(--fast), background var(--fast), border-color var(--fast); }
.ow-chip:hover { color: var(--ink); }
.ow-chip[aria-pressed="true"] { color: var(--ink); border-color: var(--accent); background: var(--accent-soft); }
.ow-chip[data-kind="local"] { font-weight: 600; }
/* Local, on a place's card */
.ow-card-title { display: flex; align-items: baseline; flex-wrap: wrap; gap: .2rem .55rem; min-width: 0; }
.ow-map-key .ow-key-head { display: block; color: var(--ink-3); }
.ow[data-way="places"][data-nomap] > .ow-main { display: none; }

/* ---- a place's card: its name, its city, its chain of ownership read upward (js/owners-places.js) */
.ow-card { display: grid; grid-template-rows: auto minmax(0, 1fr); gap: var(--s-2); min-width: 0; min-height: 0; padding: .7rem .45rem .5rem .8rem; border-radius: var(--r-3); border: 1px solid var(--line); background: var(--glass-strong); -webkit-backdrop-filter: blur(var(--blur)) saturate(1.15); backdrop-filter: blur(var(--blur)) saturate(1.15); box-shadow: var(--shadow); }
.ow-card[hidden] { display: none; }
.ow-mapbox .ow-card { position: absolute; z-index: 3; left: var(--s-3); bottom: var(--s-3); width: min(24rem, calc(100% - 2 * var(--s-3))); max-height: calc(100% - 2 * var(--s-3) - var(--tap) - 8px); }
.ow-places > .ow-card { max-height: 22rem; }
.ow-mapbox:has(.ow-card:not([hidden])) .ow-map-key { display: none; }
.ow-card-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; gap: .7rem; }
.ow-card-text { display: grid; gap: .15rem; min-width: 0; padding-top: .2rem; }
/* the kind's picture on the plaque the map shows: the owner's colour as a soft ring */
.ow-card-plate { --h: var(--line-strong); width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; color: var(--ink); background: var(--bg-raise); box-shadow: inset 0 0 0 1px var(--h), 0 1px 2px color-mix(in srgb, var(--ink) 12%, transparent); }
.ow-card-plate[data-g] { --h: var(--c-sky); background: color-mix(in srgb, var(--h) 13%, var(--bg-raise)); box-shadow: inset 0 0 0 2px var(--h), 0 1px 2px color-mix(in srgb, var(--ink) 12%, transparent); }
.ow-card-plate[data-g="1"], .ow-card-plate[data-g="4"] { --h: var(--c-warn); }
.ow-card-plate[data-g="2"], .ow-card-plate[data-g="5"] { --h: var(--c-sea); }
.ow-card-plate:empty { display: none; }
.ow-kind-ico { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ow-card-name { font-size: 1.125rem; font-weight: 600; line-height: 1.25; color: var(--ink); overflow-wrap: anywhere; }
.ow-card-sub { font-size: var(--t-small); color: var(--ink-2); }
.ow-card-sub:empty { display: none; }
.ow-card-x { width: var(--tap); height: var(--tap); display: grid; place-items: center; border-radius: 50%; color: var(--ink-2); }
.ow-card-x:hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 8%, transparent); }
.ow-card-body { min-height: 0; overflow-y: auto; overscroll-behavior: contain; touch-action: pan-y pinch-zoom; padding-right: .3rem; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
.ow-card .ow-none { padding: .3rem 0 .2rem; }
/* the ladder: the owner at the top, a line down through each step to the place */
.ow-ladder { position: relative; display: grid; }
.ow-ladder { padding-top: .15rem; border-top: 1px solid var(--line); }
.ow-ladder::before { content: ''; position: absolute; left: 5.25px; top: 26px; bottom: 22px; width: 1.5px; background: linear-gradient(var(--line-strong), color-mix(in srgb, var(--accent) 55%, var(--line-strong))); border-radius: 1px; }
.ow-ladder[aria-busy] { opacity: .6; }
.ow-ladder > li { position: relative; }
.ow-step { width: 100%; display: grid; grid-template-columns: 12px minmax(0, 1fr) auto auto; align-items: center; gap: .55rem; min-height: var(--tap); padding: 0 .3rem 0 0; border-radius: var(--r-1); text-align: left; font: inherit; color: var(--ink); background: none; transition: background var(--fast); }
.ow-step:hover, .ow-step:focus-visible { background: color-mix(in srgb, var(--ink) 6%, transparent); }
.ow-step .ow-glyph { position: relative; background: var(--bg-raise); box-shadow: 0 0 0 2px var(--bg-raise); border-radius: 2px; }
.ow-step .ico { color: var(--ink-3); }
.ow-step-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .9375rem; font-weight: 500; }
.ow-step-k { font-size: var(--t-tiny); color: var(--ink-3); white-space: nowrap; }
.ow-here { display: grid; grid-template-columns: 12px minmax(0, 1fr) auto; align-items: center; gap: .55rem; min-height: var(--tap); padding-right: calc(.3rem + 14px + .55rem); color: var(--ink); }
.ow-here-dot { position: relative; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 2.5px var(--bg-raise), 0 0 0 4px color-mix(in srgb, var(--accent) 45%, transparent); }
.ow-here .ow-step-name { font-weight: 600; }
.ow-group-list { margin-top: var(--s-1); }
.ow-group-list .ow-row { min-height: var(--tap); padding: 0 .2rem; }

/* ---- tablet on its side and small laptops: a narrower list and detail */
@media (max-width: 1240px) {
  .owners .ow { grid-template-columns: minmax(15.5rem, 16rem) minmax(0, 1fr) minmax(16rem, 19rem); gap: var(--s-3); }
}
/* ---- tablet upright: the picture on top, list and detail side by side under it */
@media (max-width: 1000px) {
  .owners .ow { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); grid-template-rows: minmax(0, 1.05fr) auto auto minmax(0, 1fr); grid-template-areas: "main main" "find detail" "chips detail" "side detail"; }
  .owners .ow[data-way="places"] { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1.7fr) auto auto minmax(0, 1fr); grid-template-areas: "main" "find" "chips" "side"; }
  .owners .ow[data-way="places"][data-nomap] { grid-template-rows: auto auto minmax(0, 1fr); grid-template-areas: "find" "chips" "side"; }
}
/* ---- phones: one column; the list, the picture and the detail take turns */
@media (max-width: 720px) {
  .owners .ow { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto auto minmax(0, 1fr); grid-template-areas: "find" "chips" "tabs" "pane"; gap: var(--s-2); }
  .ow[data-way="owners"]:not([data-pane="list"]) > .ow-chips { display: none; }      /* in Owners the kinds keep the list: shown with it */
  .ow-tabs { display: flex; }
  .ow-side > .ow-head:not(.ow-head-find) { display: none; }      /* a phone: Sort sits in the tab row, the unit over the list's column */
  .scene-owners .scene-head:has(.feed-note:not([hidden])) .data-btn { display: none; }      /* no room for both beside the title on a phone */
  .ow-side, .ow-main, .ow-detail { grid-area: pane; }
  .ow[data-pane="list"] > .ow-main, .ow[data-pane="list"] > .ow-detail, .ow[data-pane="detail"] > .ow-side, .ow[data-pane="detail"] > .ow-main, .ow:is([data-pane="map"], [data-pane="graph"]) > .ow-side, .ow:is([data-pane="map"], [data-pane="graph"]) > .ow-detail { display: none; }
  .ow-view { display: none; }
  .ow-tabs button { padding: 0 .2rem; }
  /* Places on a phone: the map, and the list over it while searching */
  .owners .ow[data-way="places"], .owners .ow[data-way="places"][data-nomap] { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto minmax(0, 1fr); grid-template-areas: "find" "chips" "pane"; }
  .ow[data-way="places"] > .ow-places { grid-area: pane; position: relative; z-index: 4; background: var(--bg); }
  .ow[data-way="places"][data-ppane="map"]:not([data-nomap]) > .ow-places { display: none; }
  /* Places always shows its map, whatever tab Owners was left on (11-15: from Owners' List or Details tab, Places was blank: the
     tab's rule hid the map's column) */
  .ow[data-way="places"]:not([data-nomap]) > .ow-main { display: grid !important; grid-area: pane; }
  .ow[data-way="places"][data-ppane="list"]:not([data-nomap]) .ow-mapbox { visibility: hidden; }      /* under the list: kept at its size, out of reach */
  .ow[data-way="places"]:not([data-nomap]) .ow-pmap { display: inline-flex; align-items: center; }
  .ow-way button { padding: 0 .75rem; }
  .ow-findrow .ow-search { padding: 0 .8rem; }
  .ow-mapbox { border-radius: var(--r-2); }
  .ow-map-tools, .ow-map-zoom { top: var(--s-2); }
  .ow-map-tools, .ow-map-note, .ow-map-key, .ow-mapbox .ow-card { left: var(--s-2); }
  .ow-map-zoom { right: var(--s-2); }
  .ow-mapbox .ow-card { width: auto; right: var(--s-2); max-height: calc(100% - 2 * var(--s-2) - var(--tap) - 8px); }
  .ow-mapbox:has(.ow-card:not([hidden])) .ow-map-zoom { display: none; }      /* a phone: the card spans the map, so the control stack steps aside while it is open (its Close met Start view on 360 and 320 px phones) */
  .ow-map-note { top: calc(var(--s-2) + var(--tap) + 8px + var(--s-2)); }
  .ow-map-key, .ow-mapbox .ow-card { bottom: var(--s-2); }
  .ow-stage, .ow-detail { border-radius: var(--r-2); }
  .ow-detail { padding: var(--s-3); }
  .ow-row { padding: 0 .25rem; }
  .ow-tree { bottom: 3.4rem; }
  .ow-zoom, .ow-note { top: var(--s-2); }
  .ow-zoom { right: var(--s-2); }
  .ow-note { left: var(--s-2); }
  .ow-legend { left: var(--s-2); right: var(--s-2); }
}

/* ---- Kind: a button beside Local opens a sheet of every kind in a few groups (pictures, a short search); the kind chosen is
   a chip of its own that a tap takes off. From the bottom edge on a phone, a centred panel on anything wider. */
.ow-kind-btn { display: inline-flex; align-items: center; gap: .4rem; }
.ow-chip-in { display: inline-flex; align-items: center; gap: .4rem; }
.ow-chip .ow-kind-ico, .ow-kind-tile .ow-kind-ico { flex: none; }
.ow-kinds-sheet, .ow-sort-sheet { width: min(34rem, calc(100% - 2 * var(--gutter))); max-height: min(36rem, calc(100dvh - 6rem)); padding: 0; border: 1px solid var(--line); border-radius: var(--r-3); background: var(--bg-raise); color: var(--ink); box-shadow: var(--shadow); overflow: hidden; }
.ow-kinds-sheet[open], .ow-sort-sheet[open] { display: grid; grid-template-rows: auto minmax(0, 1fr); }
.ow-kinds-sheet::backdrop, .ow-sort-sheet::backdrop { background: color-mix(in srgb, var(--bg) 55%, transparent); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.ow-kinds-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s-2); align-items: center; padding: var(--s-3) var(--s-3) var(--s-2); border-bottom: 1px solid var(--line); }
.ow-kinds-find { display: flex; align-items: center; gap: .5rem; min-height: var(--tap); padding: 0 .8rem; border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--glass); color: var(--ink-3); }
.ow-kinds-q { flex: 1; min-width: 0; border: 0; background: none; color: var(--ink); font: inherit; font-size: 16px; outline: none; }
.ow-kinds-x { width: var(--tap); height: var(--tap); display: grid; place-items: center; border-radius: 50%; color: var(--ink-2); }
.ow-kinds-body { min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: var(--s-2) var(--s-3) calc(var(--s-3) + var(--safe-b, 0px)); display: grid; gap: var(--s-3); }
.ow-kinds-group[hidden] { display: none; }
.ow-kinds-group h4 { margin: 0 0 var(--s-1); font-size: var(--t-tiny); font-weight: 600; color: var(--ink-3); }
.ow-kinds-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr)); gap: var(--s-1); }
.ow-kind-tile { display: flex; align-items: center; gap: .55rem; width: 100%; padding: 0 .75rem; border-radius: var(--r-2); text-align: left; white-space: normal; line-height: 1.2; }
.ow-kind-tile[hidden] { display: none; }
@media (max-width: 720px) {
  .ow-kinds-sheet, .ow-sort-sheet { width: 100%; max-width: 100%; margin: auto 0 0; border-radius: var(--r-3) var(--r-3) 0 0; max-height: 82dvh; }
  .ow-kinds-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* in-page steps are buttons (data-href), dressed as the links they were */
button.ow-row, button.ow-item-main, button.ow-crumb, button.ow-out-row { font: inherit; color: inherit; background: none; border: 0; border-radius: 0; text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent; }
button.ow-row, button.ow-item-main, button.ow-out-row { width: 100%; }
button.ow-row { border-bottom: 1px solid var(--line); }
button.ow-item-main { border-radius: var(--r-1); }
button.ow-crumb { color: var(--ink-2); }
/* Places: the Key button (who owns it, by kind of owner) and its list, bottom left of the map; hidden while a card is open */
.ow-map-keybtn { position: absolute; z-index: 2; left: var(--s-3); bottom: var(--s-3); min-height: var(--tap); min-width: var(--tap); padding: 0 .9rem; border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--glass-strong); -webkit-backdrop-filter: blur(var(--blur)); backdrop-filter: blur(var(--blur)); color: var(--ink); font: inherit; font-size: var(--t-small); font-weight: 600; box-shadow: var(--shadow); }
.ow-map-keybtn[hidden] { display: none; }
.ow-map-keybtn[aria-expanded="true"] { border-color: var(--accent); }
.ow-kinds-key { bottom: calc(var(--s-3) + var(--tap) + 8px); }
.ow-kinds-key[hidden] { display: none; }
.ow-kinds-key li { grid-template-columns: 22px minmax(0, 1fr) auto; min-height: 30px; }
.ow-kind-swatch { width: 22px; height: 22px; }
.ow-mapbox:has(.ow-card:not([hidden])) :is(.ow-map-keybtn, .ow-kinds-key) { display: none; }
@media (max-width: 720px) { .ow-map-keybtn { left: var(--s-2); bottom: var(--s-2); } .ow-kinds-key { bottom: calc(var(--s-2) + var(--tap) + 8px); } }
/* the card's first line: the kind of owner at the top and its name, with the map's badge */
.ow-card-own { display: flex; align-items: center; gap: .4rem; min-width: 0; max-width: 100%; overflow: hidden; margin: 0; font-size: var(--t-tiny); font-weight: 600; color: var(--ink-2); }
.ow-card-own[hidden] { display: none; }
.ow-card-own svg { flex: none; fill: var(--h, var(--ink-3)); }
.ow-card-own[data-owner-kind="pe"] { --h: var(--c-bad); }      /* private equity reads red (Rohin 15 Nov) */
.ow-card-own[data-owner-kind="public"] { --h: var(--c-sky); }
.ow-card-own[data-owner-kind="big"] { --h: var(--c-yard); }
.ow-card-own[data-owner-kind="local"] { --h: var(--c-good); }
.ow-card-own span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* the map that did not come: a calm box with Retry, the places listed under it (js/scenes/owners.js, guardMap) */
.ow-map-down { display: grid; gap: var(--s-2); justify-items: start; padding: var(--s-3); border: 1px solid var(--line); border-radius: var(--r-2); background: var(--glass); }
.ow-map-down[hidden] { display: none; }
.ow-map-down h4 { margin: 0; font-size: var(--sub-size, 1.0625rem); font-weight: 600; }
.ow-map-down small { font-size: var(--t-tiny); color: var(--ink-3); overflow-wrap: anywhere; }
/* the way back out of an owner, beside its name */
.ow-back { flex: none; display: inline-flex; align-items: center; gap: .3rem; min-height: var(--tap); padding: 0 .8rem 0 .55rem; margin-right: var(--s-2); border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--glass); color: var(--ink); font: inherit; font-size: var(--t-small); font-weight: 600; }
.ow-back[hidden] { display: none; }
.ow-back:hover { border-color: var(--line-strong); }
/* Places: the map's note ("Zoom in", "12 in view") sits at the bottom middle, like the other maps' status pills, clear of the
   names in the middle of the map and of the Key button at the left */
.ow-mapbox[data-scope="all"] .ow-map-note { top: auto; left: 50%; right: auto; bottom: var(--s-3); transform: translateX(-50%); max-width: calc(100% - 2 * (var(--tap) + var(--s-3) + var(--s-2))); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 720px) { .ow-mapbox[data-scope="all"] .ow-map-note { left: 50%; bottom: var(--s-2); } }
/* the kinds of owner as chips: each in the colour and shape its marks wear (private equity a diamond, public a square, big a
   triangle, local a dot, unknown a grey ring) */
.ow-hi-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--h, var(--ink-3)); flex: none; }
.ow-hi-dot[data-owner-kind="pe"] { border-radius: 1px; transform: rotate(45deg) scale(.86); }
.ow-hi-dot[data-owner-kind="public"] { border-radius: 2px; }
.ow-hi-dot[data-owner-kind="big"] { border-radius: 0; clip-path: polygon(50% 0, 100% 92%, 0 92%); width: 12px; height: 11px; }
.ow-hi-dot[data-owner-kind="none"] { background: none; box-shadow: inset 0 0 0 2px var(--ink-3); }
.ow > .ow-chips { display: flex; }      /* both ways: the kinds of owner filter Places' map and the Owners list */
.ow-hi-dot[data-owner-kind="pe"] { --h: var(--c-bad); }
.ow-hi-dot[data-owner-kind="public"] { --h: var(--c-sky); }
.ow-hi-dot[data-owner-kind="big"] { --h: var(--c-yard); }
.ow-hi-dot[data-owner-kind="local"] { --h: var(--c-good); }
/* an owner: one plain line under its name, the rest of its counts in small type (no number tiles) */
.ow-d-numbers { display: grid; gap: .2rem; margin-top: var(--s-2); }
.ow-d-line { margin: 0; font-size: var(--t-body); color: var(--ink); }
.ow-d-line[hidden] { display: none; }
.ow-d-more { margin: 0; font-size: var(--t-tiny); color: var(--ink-3); }
/* an owner's brands along the foot of its map: one shows only that brand, again shows all; a phone scrolls them sideways */
.ow-brand-chips { position: absolute; z-index: 2; left: var(--s-3); right: var(--s-3); bottom: var(--s-3); display: flex; gap: var(--s-1); overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; padding: 1px; }
.ow-brand-chips::-webkit-scrollbar { display: none; }
.ow-brand-chips[hidden] { display: none; }
.ow-brand-chip { flex: none; display: inline-flex; align-items: center; gap: .45rem; min-height: var(--tap); padding: 0 .85rem; border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--glass-strong); -webkit-backdrop-filter: blur(var(--blur)); backdrop-filter: blur(var(--blur)); color: var(--ink); font: inherit; font-size: var(--t-small); white-space: nowrap; }
.ow-brand-chip b { font-weight: 500; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.ow-brand-chip[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); }
.ow-brand-chip .ow-dot { width: 10px; height: 10px; box-shadow: none; background: var(--h); }
.ow-brand-chip span { max-width: 11em; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 720px) { .ow-brand-chips { left: var(--s-2); right: var(--s-2); bottom: var(--s-2); } }
/* the Data panel's row of its blocks' names: a tap goes to that block */
.ow-data-jumps { display: flex; flex-wrap: wrap; gap: var(--s-1); }
.ow-data-jumps .ow-chip { color: var(--ink); }
/* the owner's one line under its name above the map: a phone's Map tab only (elsewhere the details beside it say it) */
.ow-toptext { display: grid; min-width: 0; flex: 1 1 auto; }
.ow-map-line { display: none; margin: 0; font-size: var(--t-small); color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 720px) {
  .ow[data-way="owners"][data-pane="map"] .ow-map-line:not(:empty) { display: block; margin-top: -.55rem; }
}

/* ---- Then: what was here (js/owners-history.js), under the chain on a place's card; only when there are rows */
.ow-then-sec { margin-top: var(--s-2); padding-top: .45rem; border-top: 1px solid var(--line); }
.ow-then-h { margin: 0 0 .2rem; font-size: var(--t-tiny); font-weight: 600; color: var(--ink-2); }
.ow-then-list { display: grid; gap: 0; }
.ow-then-row { display: grid; grid-template-columns: 2.6rem minmax(0, 1fr) auto; align-items: baseline; gap: .55rem; min-height: 1.75rem; padding: .1rem 0; }
.ow-then-y { font-size: var(--t-small); color: var(--ink-3); font-variant-numeric: tabular-nums; }
.ow-then-w { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .9375rem; color: var(--ink); }
.ow-then-m { font-size: var(--t-tiny); color: var(--ink-3); white-space: nowrap; }
.ow-then-row.is-now .ow-then-y { color: var(--accent); font-weight: 600; }
.ow-then-row.is-now .ow-then-w { font-weight: 600; }
.ow-then-src { margin: .25rem 0 0; font-size: var(--t-tiny); color: var(--ink-3); }
.ow-then-row[hidden] { display: none; }

/* ---- Owners on a phone: two rows of controls above the list (Rohin 11-16): the kinds of owner, then List · Map · Graph
   (Details once an owner is open) with Sort beside them; how the list is ranked is in the Sort sheet */
.ow-tabrow { grid-area: tabs; display: none; align-items: center; gap: var(--s-2); min-width: 0; }
.ow-tabrow > .ow-tabs { grid-area: auto; flex: 1 1 auto; min-width: 0; }
.ow-sort-btn { flex: none; display: inline-flex; align-items: center; gap: .35rem; }
.ow-tabs button[hidden] { display: none; }
.ow-sort-body { display: grid; gap: var(--s-2); padding: var(--s-4); overflow-y: auto; }
.ow-sort-body h4 { margin: var(--s-1) 0 0; font-size: var(--t-small); font-weight: 600; color: var(--ink-2); }
.ow-sort-group { display: flex; flex-wrap: wrap; gap: var(--s-1); }
.ow-sort-done { justify-self: end; margin-top: var(--s-2); }
.ow-sort-sheet[open] { grid-template-rows: minmax(0, 1fr); }
/* the number's unit, once, over its column; the data's date, quietly, at the list's foot */
.ow-cols { display: flex; justify-content: space-between; padding: 0 .5rem .25rem calc(.5rem + 1.6rem); font-size: var(--t-tiny); color: var(--ink-3); border-bottom: 1px solid var(--line); }
.ow-list-foot { margin: 0; padding: var(--s-2) .5rem; font-size: var(--t-tiny); color: var(--ink-3); }
.ow-list-foot:empty { display: none; }
.ow-unit-head { flex: 1 1 auto; }
.ow-kind-mark { flex: none; }
@media (max-width: 720px) { .ow-tabrow { display: flex; } }
/* the Category sheet ends in Clear · Done */
.ow-kinds-sheet[open] { grid-template-rows: auto minmax(0, 1fr) auto; }
.ow-kinds-foot { display: flex; justify-content: flex-end; align-items: center; gap: var(--s-2); padding: var(--s-2) var(--s-3) calc(var(--s-2) + var(--safe-b, 0px)); border-top: 1px solid var(--line); }
.ow-kinds-foot .ow-sort-done { margin: 0; }
/* Near me, in the map's stack */
.ow-near { display: grid; place-items: center; }
.ow-near[aria-busy="true"] svg { opacity: .45; }
.ow-near[hidden] { display: none; }
.ow-mapbox:has(.ow-card:not([hidden])) .ow-near { display: none; }      /* a card open: the stack keeps clear of its Close (a 360 px phone) */
/* a home service's card: its fund and brand as lines, its licence record */
.ow-trade-rec { justify-self: start; margin-top: var(--s-1); }
/* Places: the key of the rings' and marks' colours (Rohin 11-16: "and have legend too"), one quiet line bottom left of the map;
   gone while a card is open and on an owner's own map (its brand chips sit there) */
.ow-kinds-legend { position: absolute; z-index: 2; left: var(--s-3); bottom: var(--s-3); max-width: calc(100% - 7rem); display: flex; flex-wrap: wrap; gap: .15rem .75rem; margin: 0; padding: .35rem .7rem; list-style: none; border-radius: var(--r-2); border: 1px solid var(--line); background: var(--glass-strong); backdrop-filter: blur(var(--blur)); -webkit-backdrop-filter: blur(var(--blur)); font-size: var(--t-tiny); line-height: 1.5; color: var(--ink-2); }
.ow-kinds-legend li { display: inline-flex; align-items: center; gap: .35rem; white-space: nowrap; }
.ow-kinds-legend .ow-hi-dot { width: 9px; height: 9px; }
.ow-kinds-legend .ow-hi-dot[data-owner-kind="big"] { width: 10px; height: 9px; }
.ow-mapbox[data-scope="owner"] .ow-kinds-legend, .ow-mapbox:has(.ow-card:not([hidden])) .ow-kinds-legend { display: none; }
@media (max-width: 720px) { .ow-kinds-legend { left: var(--s-2); bottom: var(--s-2); max-width: calc(100% - 5.5rem); gap: .1rem .6rem; padding: .3rem .55rem; } }
.ow-mapbox:has(.ow-card:not([hidden])) .ow-brand-chips { display: none; }      /* a card open: the brand chips step aside (they lay under it) */
/* round 29: Unknown in the key only while its chip is on; the head line's x; on a wide screen the chips wrap (nothing scrolled out of sight) */
.ow-kinds-legend li[hidden] { display: none; }
.ow-head-x { flex: none; display: inline-grid; place-items: center; min-width: var(--tap); min-height: var(--tap); margin: calc((1.5rem - var(--tap)) / 2) 0; border-radius: var(--r-pill); color: var(--ink-2); }
.ow-head-x:hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 8%, transparent); }
.ow-head-x[hidden] { display: none; }
@media (min-width: 721px) { .ow > .ow-chips { flex-wrap: wrap; overflow-x: visible; } }

/* ---- scene-owners-then.css */
/* Palimpsest - Then: the old maps over the Places map (js/owners-then.js): Sanborn sheets and USGS topos. Bottom right, above
   the credit line; with Then on, the years (where more than one is in view) sit above the button, one line: on a narrow
   screen it slides sideways rather than stack up over the map. Out of the way while a place's card is open. */
.ow-then { position: absolute; z-index: 2; right: var(--s-3); bottom: calc(var(--s-3) + 1.15rem); display: flex; flex-direction: column; align-items: flex-end; gap: var(--s-2); pointer-events: none; max-width: calc(100% - 7.5rem); }
.ow-then[hidden], .ow-then-years[hidden] { display: none; }
.ow-then > * { pointer-events: auto; }
.ow-then-btn { min-height: var(--tap); min-width: var(--tap); padding: 0 1rem; border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--glass-strong); -webkit-backdrop-filter: blur(var(--blur)); backdrop-filter: blur(var(--blur)); color: var(--ink); font: inherit; font-size: var(--t-small); font-weight: 600; box-shadow: var(--shadow); transition: background var(--med) var(--ease), color var(--fast), border-color var(--fast); }
.ow-then-btn[aria-pressed="true"] { background: var(--on); color: var(--on-ink); border-color: var(--on); }
.ow-then-years { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 2px; max-width: 100%; padding: 3px; border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--glass-strong); -webkit-backdrop-filter: blur(var(--blur)); backdrop-filter: blur(var(--blur)); box-shadow: var(--shadow); }
.ow-then-years button { flex: none; min-height: var(--tap); min-width: var(--tap); padding: 0 .7rem; white-space: nowrap; border-radius: var(--r-pill); font-size: var(--t-small); font-weight: 500; font-variant-numeric: tabular-nums; color: var(--ink-2); transition: color var(--fast), background var(--med) var(--ease); }
.ow-then-years button[aria-pressed="true"] { color: var(--ink); background: color-mix(in srgb, var(--ink) 12%, transparent); }
.ow-mapbox:has(.ow-card:not([hidden])) .ow-then { display: none; }
@media (max-width: 720px) {
  .ow-then { right: var(--s-2); bottom: calc(var(--s-2) + 1.15rem); max-width: calc(100% - 2 * var(--s-2)); }      /* the years may use the map's width: four topo years fit on a 390 px phone (QA 11-16: 1983 was cut off) */
  .ow-then-years { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .ow-then-years::-webkit-scrollbar { display: none; }
}
@media (prefers-reduced-motion: reduce) { .ow-then-btn, .ow-then-years button { transition: none; } }

/* ---- scene-scarecrow.css */
/* rohin.me - page 7, Scarecrow: the wall of spines (or the flat list), search and filters, one title's card.
   One screen: the wall takes what is left; the list, the card and the filter sheet scroll inside themselves.
   Tokens only. A spine's colour is its decade: ten steps from a quiet tone (oldest) to the accent (newest), computed
   from the tokens in js/scenes/scarecrow.js (rampOf) and handed to the css as --sc-d0 ... --sc-d10 and to the wall. */

.sc { position: absolute; inset: 0; display: grid; gap: var(--s-3); grid-template-columns: minmax(0, 1fr) 23rem; grid-template-rows: auto minmax(0, 1fr); grid-template-areas: "main top" "main panel"; }
.sc-panel { grid-area: panel; align-self: start; max-height: 100%; }      /* the filters, open beside the wall (css/shelves.css); on a phone they are a sheet */
.sc[data-panel] .sc-active { display: none; }      /* the panel itself shows what is chosen */
.sc-top { grid-area: top; display: grid; gap: var(--s-2); min-width: 0; }
.sc-find { display: flex; gap: var(--s-2); min-width: 0; }
.sc-find .sc-search { flex: 1 1 0; min-width: 0; }
.sc-search { display: flex; align-items: center; gap: .55rem; height: var(--tap); padding: 0 1rem; border-radius: var(--r-pill); box-shadow: inset 0 0 0 1px var(--line); background: var(--glass); color: var(--ink-3); backdrop-filter: blur(var(--blur)); -webkit-backdrop-filter: blur(var(--blur)); transition: box-shadow var(--fast); }
.sc-search:focus-within { box-shadow: inset 0 0 0 1px var(--accent); color: var(--ink-2); }
.sc-q { flex: 1; min-width: 0; height: var(--tap); border: 0; padding: 0; background: none; color: var(--ink); font: inherit; font-size: 1rem; outline: none; appearance: none; -webkit-appearance: none; }
.sc-q::placeholder { color: var(--ink-3); opacity: 1; }
.sc-q::-webkit-search-cancel-button { -webkit-appearance: none; }
.sc-pick { position: relative; flex: none; display: inline-flex; align-items: center; justify-content: center; gap: .45rem; height: var(--tap); padding: 0 .95rem; border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--glass); font-size: var(--t-small); font-weight: 500; color: var(--ink); white-space: nowrap; backdrop-filter: blur(var(--blur)); -webkit-backdrop-filter: blur(var(--blur)); transition: border-color var(--fast), background var(--fast), transform var(--fast) var(--ease); }
.sc-pick:hover { border-color: var(--line-strong); }
.sc-pick:active { transform: scale(.97); }
.sc-pick .ico { color: var(--ink-3); }
.sc-pick[aria-pressed="true"] { border-color: color-mix(in srgb, var(--accent) 65%, transparent); background: var(--accent-soft); }
.sc-pick[aria-busy="true"] { opacity: .6; }
/* Filters: the one way to narrow the list, so it stands out from the row it is in */
.sc-filter-btn { border-color: var(--line-strong); font-weight: 600; }
.sc-filter-btn .ico { color: var(--accent); }
.sc-back { width: var(--tap); padding: 0; }
.sc-back span { display: none; }      /* the tools stand in a narrow column at every size: the arrow alone, named for screen readers */
/* what is chosen: chips to take off */
.sc-active { display: flex; flex-wrap: wrap; gap: .35rem; min-width: 0; }
.sc-active[hidden] { display: none; }
.sc-on { flex: none; max-width: 100%; padding-right: .6rem; }
.sc-on span { overflow: hidden; text-overflow: ellipsis; }
.sc-on .ico { flex: none; opacity: .7; }
.sc-n { min-width: 1.35rem; height: 1.35rem; display: grid; place-items: center; border-radius: var(--r-pill); background: var(--accent); color: var(--accent-ink); font-size: var(--t-tiny); font-weight: 600; }
.sc-bar { display: flex; align-items: center; gap: var(--s-2); min-width: 0; }
.sc-count { flex: 1; min-width: 0; font-size: var(--t-small); color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.sc-count b { font-size: 1.375rem; font-weight: 500; letter-spacing: -.02em; color: var(--ink); }
.sc-view { flex: none; min-height: var(--tap); padding: 0 1.1rem; }
@media (max-width: 420px) { .sc-view { padding: 0 .75rem; } }      /* a phone: with a heavy title (the Poster colour version) "Wall" and "Data" still fit beside it at 390 wide */

/* ---- the wall (or the list) and the strip under it */
.sc-main { grid-area: main; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; gap: var(--s-2) var(--s-3); min-width: 0; min-height: 0; }
.sc-main > .sc-stage { grid-row: 1; grid-column: 1; } .sc-main > .sc-rail { grid-row: 2; grid-column: 1; }
.sc[data-open] .sc-main { grid-template-columns: minmax(0, 1fr) 20rem; }      /* one title: its card beside the wall */
.sc-stage { position: relative; min-width: 0; min-height: 0; border-radius: var(--r-3); border: 1px solid var(--line); background: var(--bg-sunk); overflow: hidden; }
.sc-wall { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; touch-action: none; cursor: grab; -webkit-user-select: none; user-select: none; }
.sc-wall:active { cursor: grabbing; }
.sc-wall:focus-visible, .sc-strip:focus-visible { outline: 2px solid var(--accent); outline-offset: -3px; border-radius: var(--r-3); }
.sc-none { position: absolute; inset: 0; display: grid; place-items: center; color: var(--ink-2); pointer-events: none; }
.sc-tag { position: absolute; left: var(--s-2); top: var(--s-2); z-index: 2; padding: .25rem .7rem; border-radius: var(--r-pill); border: 1px solid var(--line-strong); background: var(--glass-strong); font-size: var(--t-tiny); font-weight: 500; color: var(--ink); pointer-events: none; backdrop-filter: blur(var(--blur)); -webkit-backdrop-filter: blur(var(--blur)); }
.sc-tag::before { content: ''; display: inline-block; width: 6px; height: 6px; margin-right: .45rem; border-radius: 50%; background: var(--c-warn); vertical-align: 1px; }
.sc-hover { position: absolute; left: var(--s-2); bottom: var(--s-2); z-index: 2; max-width: calc(100% - 5rem); padding: .3rem .75rem; border-radius: var(--r-pill); border: 1px solid var(--line-strong); background: var(--glass-strong); font-size: var(--t-tiny); color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: none; backdrop-filter: blur(var(--blur)); -webkit-backdrop-filter: blur(var(--blur)); }
.sc-zooms[hidden] { display: none; }      /* the control stack: + - home, top right, as on every map and 3D view (js/hands.js, .v3-stack) */
.sc-rail { display: grid; grid-template-columns: minmax(0, auto) minmax(0, 1fr); align-items: center; gap: var(--s-3); height: var(--tap); min-width: 0; }
.sc-where { max-width: 12rem; font-size: var(--t-small); font-weight: 500; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc-strip { position: relative; height: var(--tap); min-width: 0; display: grid; align-items: center; touch-action: none; cursor: pointer; -webkit-user-select: none; user-select: none; }
.sc-strip-cv { width: 100%; height: 20px; max-width: none; border-radius: 4px; background: var(--bg-sunk); box-shadow: 0 0 0 1px var(--line); }
.sc-strip-view { position: absolute; left: 0; top: 50%; width: 10px; height: 30px; margin-top: -15px; border: 2px solid var(--ink); border-radius: 6px; box-shadow: 0 0 0 1px var(--bg); pointer-events: none; }

/* ---- a spine, drawn small: in the list, the card, the legend and the filter chips. --w / --h: its shape; --k: its decade */
.sc-spine { flex: none; display: inline-block; width: calc(var(--w, 1) * 11px); height: calc(var(--h, 1) * 30px); border-radius: 2px; background: var(--ink-3); box-shadow: 0 0 0 1px color-mix(in srgb, var(--ink) 16%, transparent); }
.sc-spine[data-d="0"] { background: var(--sc-d0); } .sc-spine[data-d="1"] { background: var(--sc-d1); } .sc-spine[data-d="2"] { background: var(--sc-d2); } .sc-spine[data-d="3"] { background: var(--sc-d3); }
.sc-spine[data-d="4"] { background: var(--sc-d4); } .sc-spine[data-d="5"] { background: var(--sc-d5); } .sc-spine[data-d="6"] { background: var(--sc-d6); } .sc-spine[data-d="7"] { background: var(--sc-d7); }
.sc-spine[data-d="8"] { background: var(--sc-d8); } .sc-spine[data-d="9"] { background: var(--sc-d9); } .sc-spine[data-d="10"] { background: var(--sc-d10); }

/* ---- rarity: words only (11-16 UX round: the old bar marks read as a phone's signal): the level tiles above the sections,
   a word at the end of a row, the word and its reason on a card */
.sc-levels { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: var(--s-2); min-width: 0; }
.sc-level { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: .6rem; min-height: var(--tap); padding: .3rem .8rem; border-radius: var(--r-2); border: 1px solid var(--line-strong); background: var(--bg-raise); color: var(--ink); text-align: left; transition: border-color var(--fast), transform var(--fast) var(--ease); }
.sc-level:hover { border-color: var(--accent); }
.sc-level:active { transform: scale(.985); }
.sc-level-name { font-size: var(--t-small); font-weight: 600; line-height: 1.2; }
.sc-level-n { font-size: var(--t-tiny); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.sc-rare { display: grid; gap: .15rem; }
.sc-rare-mark { display: inline-flex; align-items: center; gap: .5rem; font-size: var(--t-small); font-weight: 600; }
.sc-rare-why { font-size: var(--t-small); color: var(--ink-2); line-height: 1.4; }

/* ---- the sections: the store's own, as tiles with their counts */
.sc-rooms { position: absolute; inset: 0; overflow-y: auto; overscroll-behavior: contain; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 11.5rem), 1fr)); grid-auto-rows: auto; gap: var(--s-2); align-content: start; padding: var(--s-2); scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
.sc-rooms[hidden] { display: none; }
.sc-room { display: grid; grid-template-rows: minmax(1.9rem, 1fr) auto auto; gap: .1rem; min-width: 0; min-height: 5.4rem; padding: .55rem .8rem .6rem; border-radius: var(--r-2); border: 1px solid var(--line); background: var(--bg-raise); color: var(--ink); text-align: left; transition: border-color var(--fast), transform var(--fast) var(--ease); }
.sc-room:hover { border-color: var(--line-strong); }
.sc-room:active { transform: scale(.985); }
.sc-room:focus-visible { outline-offset: -3px; }
.sc-room-art { display: flex; align-items: flex-end; gap: 3px; min-height: 0; padding: 0 2px; border-bottom: 3px solid color-mix(in srgb, var(--ink) 26%, var(--bg-raise)); margin-bottom: .35rem; overflow: hidden; }
.sc-room-art .sc-spine { width: calc(var(--w, 1) * 8px); height: calc(var(--h, 1) * 28px); border-radius: 1.5px 1.5px 0 0; }
.sc-room-name { font-size: var(--t-small); font-weight: 600; line-height: 1.2; overflow-wrap: anywhere; }
.sc-room-n { font-size: var(--t-tiny); color: var(--ink-2); font-variant-numeric: tabular-nums; line-height: 1.3; }

/* ---- the flat list: only the rows in view are in the page */
.sc-list { position: absolute; inset: 0; overflow-y: auto; overscroll-behavior: contain; padding: var(--s-2); scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
.sc-list-inner { position: relative; min-height: 100%; }
.sc-tile { position: absolute; left: 0; top: 0; height: 60px; display: flex; align-items: center; gap: .8rem; padding: 0 .8rem; border-radius: var(--r-2); text-align: left; transition: background var(--fast); }
.sc-tile:hover { background: color-mix(in srgb, var(--ink) 6%, transparent); }
.sc-tile[data-on] { background: var(--accent-soft); }
.sc-tile:focus-visible { outline-offset: -3px; }
.sc-tile .sc-spine { width: calc(var(--w, 1) * 9px); height: calc(var(--h, 1) * 34px); margin: 0 calc((1 - var(--w, 1)) * 4.5px); }
.sc-tile-text { display: grid; min-width: 0; line-height: 1.3; }
.sc-tile-t { font-size: var(--t-small); font-weight: 500; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc-tile-m { font-size: var(--t-tiny); color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }

/* ---- one title: beside the wall, under it on an upright tablet, a sheet on phones. None open: no card (the panel is the key) */
.sc-card { grid-row: 1 / 3; grid-column: 2; min-width: 0; min-height: 0; overflow-y: auto; overscroll-behavior: contain; display: grid; gap: var(--s-3); align-content: start; padding: var(--s-4); border-radius: var(--r-3); border: 1px solid var(--line); background: var(--glass); scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
.sc-card:not(.is-open) { display: none; }
.sc-card-top { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--s-3); align-items: start; }
.sc-card-top .sc-spine { margin-top: .2rem; width: calc(var(--w, 1) * 14px); height: calc(var(--h, 1) * 52px); }
.sc-card-name { display: grid; gap: .2rem; min-width: 0; }
.sc-card-name h3 { font-family: var(--font-title); font-size: 1.25rem; font-weight: 600; line-height: 1.25; letter-spacing: -.01em; overflow-wrap: anywhere; }
.sc-card-sub { font-size: var(--t-small); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.sc-close { width: var(--tap); min-height: var(--tap); padding: 0; }
.sc-flag { justify-self: start; display: inline-flex; align-items: center; gap: .45rem; padding: .25rem .75rem; border-radius: var(--r-pill); border: 1px solid var(--line-strong); font-size: var(--t-tiny); font-weight: 500; color: var(--ink); }
.sc-flag::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--c-warn); }
.sc-flag-ok::before { background: var(--c-good); }
.sc-desc { font-size: var(--t-small); line-height: 1.6; color: var(--ink-2); max-width: 38rem; }
.sc-src { font-size: .6875rem; letter-spacing: .05em; color: var(--ink-3); white-space: nowrap; }
.sc-facts div, .sc-sources div { display: grid; grid-template-columns: 7rem minmax(0, 1fr); gap: var(--s-3); padding: .45rem 0; border-top: 1px solid var(--line); font-size: var(--t-small); }
.sc-facts dt, .sc-sources dt { color: var(--ink-2); }
.sc-facts dd, .sc-sources dd { color: var(--ink); overflow-wrap: anywhere; }
.sc-sources a { display: inline-flex; align-items: center; min-width: var(--tap); min-height: var(--tap); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: .2em; }
.sc-sources div { align-items: center; }
.sc-rent { justify-self: start; }
.sc-card-sheet[open] { gap: var(--s-3); }

/* ---- the filter sheet */
.sc-sheet[open] { grid-template-rows: auto minmax(0, 1fr) auto; overflow: hidden; }
.sc-sheet-body:focus-visible { outline: none; }
.sc-sheet-n { font-size: var(--t-small); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.sc-sheet-body { display: grid; gap: var(--s-3); align-content: start; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 2px; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
.sc-group { display: grid; grid-template-columns: 5rem minmax(0, 1fr); gap: .3rem var(--s-3); align-items: start; }
.sc-label { padding-top: .8rem; font-size: var(--t-small); color: var(--ink-2); }
.sc-chips { display: flex; flex-wrap: wrap; gap: .35rem; }
.sc-chip { display: inline-flex; align-items: center; gap: .45rem; min-height: var(--tap); padding: 0 .8rem; border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--glass); font-size: var(--t-small); font-weight: 500; color: var(--ink-2); white-space: nowrap; transition: border-color var(--fast), background var(--fast), color var(--fast), transform var(--fast) var(--ease); }
.sc-chip:hover { border-color: var(--line-strong); color: var(--ink); }
.sc-chip:active { transform: scale(.96); }
.sc-chip[aria-pressed="true"] { border-color: color-mix(in srgb, var(--accent) 65%, transparent); background: var(--accent-soft); color: var(--ink); }
.sc-chip .sc-spine { width: calc(var(--w, 1) * 8px); height: calc(var(--h, 1) * 22px); }
.sc-chip-n { font-size: var(--t-tiny); font-weight: 400; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.sc-chip-n:empty { display: none; }
.sc-chip:disabled { opacity: .38; cursor: default; }
.sc-chip:disabled:active { transform: none; }
.sc-chip[aria-pressed="true"] .sc-chip-n { color: inherit; }
.sc-sheet-foot .btn:disabled { opacity: .38; cursor: default; }
.sc-select { width: 100%; height: var(--tap); padding: 0 .8rem; border-radius: var(--r-2); border: 1px solid var(--line); background: var(--bg-raise); color: var(--ink); font: inherit; font-size: var(--t-small); }
.sc-sheet-foot { display: grid; grid-template-columns: 1fr 2fr; gap: var(--s-2); }

/* ---- wide screens: the tools stand in a narrow column, so the number stands over its words (never cut short) */
@media (min-width: 1001px) {
  .sc-count { white-space: normal; overflow: visible; line-height: 1.15; }
  .sc-count b { display: block; line-height: 1.05; }
}
/* ---- tablets upright: controls, the wall, the card under it */
@media (max-width: 1000px) {
  .sc { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto; grid-template-areas: "top" "main" "panel"; gap: var(--s-2); }
  .sc[data-open] .sc-main { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto minmax(0, 13.5rem); }
  .sc-card { grid-row: 3; grid-column: 1; }
  .sc-top { grid-template-columns: minmax(0, 1fr) auto; }
  .sc-active { grid-column: 1 / -1; }
  .sc-bar { gap: var(--s-2); }
  .sc-count { flex: none; padding: 0 var(--s-2); }
  .sc-card { padding: var(--s-3) var(--s-4); }
  .sc-card .sc-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--s-5); }
}
/* ---- phones: one column; a title opens in a sheet */
@media (max-width: 720px) {
  .sc { grid-template-rows: auto minmax(0, 1fr); grid-template-areas: "top" "main"; }
  .sc-top { grid-template-columns: minmax(0, 1fr); }
  .sc-count { flex: 1; padding: 0; white-space: normal; overflow: visible; line-height: 1.15; }
  .sc-count b { display: block; line-height: 1.05; }      /* the number, and "not streaming" under it: never cut short */
  .sc-card { display: none; }
  .sc-stage { border-radius: var(--r-2); }
  .sc-where { max-width: 7.5rem; }
  .sc-rail { gap: var(--s-2); }
  .sc-group { grid-template-columns: minmax(0, 1fr); }
  .sc-label { padding-top: 0; }
  .sc-pick { padding: 0 .8rem; }
  .sc-active { flex-wrap: nowrap; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; }
  .sc-active::-webkit-scrollbar { display: none; }
  .sc-levels { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .sc-level { padding: .3rem .6rem; gap: .5rem; }
  .sc-level-name { font-size: .8125rem; }
  .sc-rooms { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; padding: 6px; }
  .sc-room { grid-template-columns: 2.1rem minmax(0, 1fr); grid-template-rows: auto auto; align-content: center; column-gap: .55rem; min-height: 3.25rem; padding: .35rem .55rem; }
  .sc-room-art { grid-row: 1 / 3; align-self: center; height: 1.9rem; margin: 0; gap: 2px; border-bottom-width: 2px; }
  .sc-room-art .sc-spine { width: calc(var(--w, 1) * 6px); height: calc(var(--h, 1) * 26px); }
  .sc-room-art .sc-spine:nth-child(n+4) { display: none; }
  .sc-room-name { align-self: end; font-size: .8125rem; }
  .sc-room-n { align-self: start; }
}

/* the rarity word at the end of a row */
.sc-tile-r { margin-left: auto; flex: none; padding-left: .3rem; font-size: var(--t-tiny); color: var(--ink-2); white-space: nowrap; }
.sc-tile-text { flex: 1 1 auto; }

/* ---- 11-16 (UX round): "All sections" (the eight largest stand as tiles), its sheet, the Data panel's jump row */
.sc-room-all { grid-column: 1 / -1; border-style: dashed; border-color: var(--line-strong); }
.sc-room-all .sc-room-art { align-items: center; border-bottom: 0; color: var(--accent); }
.sc-room-all .sc-room-name { color: var(--ink); }
.sc-secs[open] { grid-template-rows: auto minmax(0, 1fr); overflow: hidden; }
.sc-secs-list { min-height: 0; overflow-y: auto; overscroll-behavior: contain; touch-action: pan-y pinch-zoom; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr)); gap: 2px var(--s-3); align-content: start; padding: 2px; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
.sc-sec { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); min-height: var(--tap); padding: 0 .8rem; border-radius: var(--r-1); color: var(--ink); font-size: var(--t-small); text-align: left; transition: background var(--fast); }
.sc-sec:hover { background: color-mix(in srgb, var(--ink) 6%, transparent); }
.sc-sec span:first-child { min-width: 0; overflow-wrap: anywhere; }
#scarecrow .data-jump { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: var(--s-2); }
@media (max-width: 720px) {
  .sc-room-all { grid-template-columns: 2.1rem minmax(0, 1fr); }
  .sc-room-all .sc-room-name { grid-row: 1 / 3; align-self: center; }
}
.sc-alt { color: var(--ink-3); font-weight: 400; }
.sc-card-alt { margin: 0; color: var(--ink-2); font-size: var(--t-small); line-height: 1.3; }
/* QA 11-16: a 320-wide phone: the section tiles give their little shelf's room to the name, so no name breaks mid-word */
@media (max-width: 359px) {
  .sc-room { grid-template-columns: minmax(0, 1fr); padding: .35rem .6rem; }
  .sc-room-art { display: none; }
  .sc-room-name { overflow-wrap: break-word; hyphens: auto; }
  .sc-room-all { grid-template-columns: minmax(0, 1fr); }
  .sc-room-all .sc-room-name { grid-row: auto; }
}

/* ---- scene-digest.css */
/* rohin.me - Night Digest (js/scenes/digest.js). One screen: the shelf of nights, the edition's pages as an index, and a
   reading panel that scrolls inside itself. Tokens only. Wide: index beside the panel. 1000px and less: stacked, the
   index becomes a row of numbered tabs. */
.dg { position: absolute; inset: 0; display: grid; grid-template-rows: auto minmax(0, 1fr); gap: var(--s-3); min-width: 0; }

/* the five families of the shelf, from the data colours of the palette; where the browser can turn a hue, two of them are
   turned so no two families share one (in mono they stay steps of grey) */
#digest { --f-history: var(--c-yard); --f-news: var(--c-warn); --f-ideas: var(--c-sky); --f-place: var(--c-sea); --f-life: var(--c-quiet); --f-other: var(--ink-3); }
@supports (color: oklch(from red l c h)) {
  #digest { --f-news: oklch(from var(--c-warn) calc(l - .04) c calc(h - 50)); --f-life: oklch(from var(--c-sky) calc(l - .1) c calc(h + 55)); }
}

/* ---- the shelf (js/digest-shelf.js): every night's book, newest at the end. Soft 3D in CSS only: the strip that scrolls
   the books holds the perspective, seen from above the middle, so the books to either side show a side and every book
   the top edge of its pages. Colour: the night's family (--fam), always mixed soft with the panel colour. */
.dg-top { min-width: 0; max-height: 14rem; transition: max-height .4s var(--ease), opacity var(--med) var(--ease); }
.dg-shelf-box { min-width: 0; }
.dg-shelf { --book-h: 7.5rem; --book-w: 50px; --tap-px: 44px; --depth: 2.25rem; --plank: .625rem; --head: 1.25rem;
  position: relative; height: calc(var(--book-h) + var(--plank) + var(--head) + 1.125rem); min-width: 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 1.25rem, #000 calc(100% - 1.25rem), transparent); mask-image: linear-gradient(90deg, transparent, #000 1.25rem, #000 calc(100% - 1.25rem), transparent); }
.dg-shelf-sc { position: absolute; inset: 0; overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scrollbar-width: none; perspective: 560px; perspective-origin: 50% -120%; }
.dg-shelf-sc::-webkit-scrollbar { display: none; }
.dg-shelf-track { position: relative; height: 100%; min-width: 100%; transform-style: preserve-3d; }
.dg-plank { position: absolute; left: 0; right: 0; bottom: 1.125rem; height: var(--plank); border-radius: 2px; transform-style: preserve-3d;
  background: linear-gradient(to bottom, color-mix(in srgb, var(--ink) 16%, var(--bg-raise)), color-mix(in srgb, var(--ink) 9%, var(--bg))); box-shadow: 0 10px 18px -12px var(--shade); }
.dg-plank::before { content: ''; position: absolute; left: 0; right: 0; bottom: 100%; height: calc(var(--depth) + .5rem); transform-origin: bottom; transform: rotateX(90deg);
  background: linear-gradient(to top, color-mix(in srgb, var(--ink) 11%, var(--bg-raise)), color-mix(in srgb, var(--ink) 5%, var(--bg))); }
.dg-month { position: absolute; bottom: 0; height: 1.125rem; display: flex; align-items: flex-end; font-size: var(--t-tiny); line-height: 1; color: var(--ink-3); font-variant-numeric: tabular-nums; }

.dg-book { --fam: var(--f-other); --spine: color-mix(in srgb, var(--fam) var(--tint, 34%), var(--bg-raise)); --side: color-mix(in srgb, var(--fam) 46%, var(--bg));
  position: absolute; bottom: calc(1.125rem + var(--plank)); height: var(--book-h); padding: 0; border-radius: 3px 3px 1px 1px; color: var(--ink); transform-style: preserve-3d;
  background: linear-gradient(90deg, color-mix(in srgb, var(--spine) 82%, var(--ink)) 0, var(--spine) 16%, color-mix(in srgb, var(--spine) 88%, var(--bg-raise)) 42%, var(--spine) 70%, color-mix(in srgb, var(--spine) 80%, var(--ink)) 100%);
  transition: transform var(--med) var(--ease), box-shadow var(--med) var(--ease); }
#digest [data-fam="history"] { --fam: var(--f-history); } #digest [data-fam="news"] { --fam: var(--f-news); } #digest [data-fam="ideas"] { --fam: var(--f-ideas); }
#digest [data-fam="place"] { --fam: var(--f-place); } #digest [data-fam="life"] { --fam: var(--f-life); }
/* the two covers (seen from the side) and the top edge of the pages, each a plane going back from an edge of the spine */
.dg-book::before, .dg-book::after { content: ''; position: absolute; top: 0; bottom: 0; width: var(--depth); background: var(--side); }
.dg-book::before { right: 100%; transform-origin: right; transform: rotateY(-90deg); }
.dg-book::after { left: 100%; transform-origin: left; transform: rotateY(90deg); }
.dg-b-top { position: absolute; left: 0; right: 0; bottom: 100%; height: var(--depth); transform-origin: bottom; transform: rotateX(90deg);
  background: repeating-linear-gradient(90deg, color-mix(in srgb, var(--ink) 7%, var(--bg-raise)) 0 2px, color-mix(in srgb, var(--ink) 14%, var(--bg-raise)) 2px 3px); border: 2px solid var(--side); }
:root[data-theme="dark"] .dg-book { --tint: 42%; }
.dg-b-band { position: absolute; left: 0; right: 0; top: .75rem; height: .3125rem; background: var(--fam); opacity: .85; }
.dg-b-t { position: absolute; top: 1.5rem; bottom: 1.625rem; left: 50%; translate: -50% 0; max-height: calc(100% - 3.125rem); writing-mode: vertical-rl; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  font-family: var(--font-title); font-size: .75rem; font-weight: 600; line-height: 1.15; }
.dg-b-d { position: absolute; left: 0; right: 0; bottom: .375rem; text-align: center; font-family: var(--font-num); font-size: .75rem; line-height: 1; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.dg-book:hover { transform: translateY(-3px); }
.dg-book[aria-pressed="true"] { transform: translateY(-.5rem); box-shadow: 0 .875rem 1rem -.75rem var(--shade), 0 0 0 2px var(--accent); }
.dg-book[aria-pressed="true"] .dg-b-d { color: var(--ink); font-weight: 600; }
.dg-book:focus-visible { outline-offset: 2px; }
.dg-book:active { transition-duration: var(--fast); }

.dg-steps { display: flex; gap: var(--s-1); }
.dg-step { flex: none; display: grid; place-items: center; width: var(--tap); height: var(--tap); border-radius: 50%; border: 1px solid var(--line); background: var(--glass); color: var(--ink); transition: border-color var(--fast), transform var(--fast) var(--ease); }
.dg-step:hover { border-color: var(--line-strong); }
.dg-step:active { transform: scale(.94); }
.dg-step:disabled { border-color: transparent; background: none; color: var(--ink-3); cursor: default; transform: none; }

.dg-head { grid-column: 2; grid-row: 1; display: flex; align-items: center; justify-content: flex-end; gap: var(--s-2); min-width: 0; }
.dg-head .dg-steps { margin-right: auto; }
.dg-date { display: inline-flex; align-items: center; gap: .45rem; min-height: var(--tap); padding: 0 .85rem 0 1.05rem; border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--glass); font-size: var(--t-small); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; transition: border-color var(--fast); }
.dg-date:hover { border-color: var(--line-strong); }
.dg-date .ico { color: var(--ink-3); }
.dg-date:disabled { cursor: default; }
.dg-send-btn:disabled { opacity: .55; cursor: default; }

/* ---- the edition: index and reading panel */
.dg-body { display: grid; grid-template-columns: minmax(14rem, 19rem) minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); gap: var(--s-3) var(--s-4); min-width: 0; min-height: 0; }
.dg-read { grid-column: 2; grid-row: 2; }
.dg-index { grid-column: 1; grid-row: 1 / 3; display: grid; grid-template-rows: auto minmax(0, 1fr); align-content: start; gap: var(--s-2); min-width: 0; min-height: 0; }
.dg-index .side-title { padding-left: .75rem; }
.dg-ix-list { position: relative; display: grid; align-content: start; gap: 2px; min-height: 0; overflow-y: auto; touch-action: pan-y pinch-zoom; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
.dg-ix { display: grid; grid-template-columns: 1.5rem minmax(0, 1fr); align-items: center; gap: var(--s-3); width: 100%; min-height: var(--tap); padding: .35rem .75rem; border-radius: var(--r-2); text-align: left; color: var(--ink-2); transition: background var(--med) var(--ease), color var(--fast); }
.dg-ix:hover { color: var(--ink); }
.dg-ix:focus-visible { outline-offset: -2px; border-radius: var(--r-2); }
.dg-ix-n { font-size: var(--t-small); font-variant-numeric: tabular-nums; text-align: right; color: var(--ink-3); }
.dg-ix-t { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; font-size: var(--t-small); line-height: 1.3; }
.dg-ix[aria-current="true"] { background: var(--accent-soft); color: var(--ink); }
.dg-ix[aria-current="true"] .dg-ix-n { color: var(--ink); font-weight: 600; }

.dg-read { position: relative; min-width: 0; min-height: 0; overflow-y: auto; touch-action: pan-y pinch-zoom;      /* up and down scrolls here; sideways is the page's swipe */ overscroll-behavior: contain; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--r-3); background: var(--bg-raise); scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
.dg-read:focus-visible { outline-offset: -3px; border-radius: var(--r-3); }
.dg-doc { max-width: 40rem; margin: 0 auto; padding: var(--s-5) clamp(1.25rem, 5vw, 2.75rem) var(--s-6); transition: opacity var(--med); font-kerning: normal; font-variant-ligatures: common-ligatures; }
/* a new night comes in softly (still under reduced motion) */
.dg-doc.is-in { animation: dg-in .4s var(--ease) both; }
@keyframes dg-in { from { opacity: 0; transform: translateY(.5rem); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .dg-doc.is-in { animation: none; } }
.dg-read[aria-busy="true"] .dg-doc { opacity: .45; }
.dg-mast { padding-bottom: var(--s-4); border-bottom: 1px solid var(--line); }
.dg-title { font-family: var(--font-title); font-size: clamp(1.625rem, 1.3rem + 1.3vw, 2.375rem); font-weight: 500; letter-spacing: 0; line-height: 1.12; overflow-wrap: break-word; text-wrap: balance; }
.dg-author { margin-top: .55rem; font-size: 1.0625rem; color: var(--ink-2); }
.dg-why, .dg-meta { margin-top: .25rem; font-size: var(--t-small); color: var(--ink-2); }
.dg-page { padding-top: var(--s-6, 2.5rem); }
.dg-page + .dg-page { margin-top: var(--s-2); border-top: 1px solid color-mix(in srgb, var(--line) 60%, transparent); }
.dg-page h4 { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: baseline; gap: .75rem; font-family: var(--font-title); font-size: 1.25rem; font-weight: 600; letter-spacing: 0; line-height: 1.28; text-wrap: balance; overflow-wrap: break-word; }
.dg-n { min-width: 1.35rem; font-size: .875rem; font-weight: 600; color: var(--accent); font-variant-numeric: tabular-nums; }
.dg-page p { margin-top: .9rem; font-size: 1.0625rem; line-height: 1.72; overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto; hyphenate-limit-chars: 7 3 3; text-wrap: pretty; hanging-punctuation: first; }
.dg-page h4 + p { margin-top: 1rem; }
/* the end of an edition: the nights either side */
.dg-on { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); gap: var(--s-2); margin-top: var(--s-6, 2.5rem); padding-top: var(--s-4); border-top: 1px solid var(--line); }
.dg-on-b { --fam: var(--f-other); display: grid; align-content: start; gap: .3rem; min-width: 0; min-height: var(--tap); padding: .8rem 1rem .9rem; border: 1px solid var(--line); border-radius: var(--r-2); text-align: left; background: var(--glass); transition: border-color var(--fast), transform var(--fast) var(--ease); }
.dg-on-b:hover { border-color: var(--line-strong); }
.dg-on-b:active { transform: scale(.985); }
.dg-on-b + .dg-on-b { text-align: right; justify-items: end; }
.dg-on-b > .dg-dot { grid-row: 1; justify-self: end; margin-top: .3rem; }
.dg-on-b + .dg-on-b > .dg-dot { justify-self: start; }
.dg-on-b > * { grid-column: 1; }
.dg-on-b:only-child { text-align: left; justify-items: start; }
.dg-on-l { display: inline-flex; align-items: center; gap: .3rem; font-size: var(--t-tiny); color: var(--ink-3); }
.dg-on-b b { font-family: var(--font-title); font-size: 1rem; font-weight: 600; line-height: 1.3; overflow-wrap: break-word; text-wrap: balance; }
.dg-on-d { font-size: var(--t-tiny); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.dg-src { margin-top: var(--s-5); }
.dg-none { padding: var(--s-6) 0; text-align: center; color: var(--ink-2); }

/* pictures of the pages (black on white, made for an e-reader): they take the panel's colour instead of a white slab */
.dg-doc[data-kind="pages"] { display: grid; gap: var(--s-3); max-width: 33rem; padding: var(--s-3) clamp(.5rem, 3vw, 1.5rem) var(--s-5); }
/* each picture carries its own wide margins: the frame trims a little of them, so the words are larger on a phone */
.dg-shot { margin: 0; overflow: hidden; border-bottom: 1px solid var(--line); }
.dg-shot img { width: 111.2%; max-width: none; height: auto; margin: -6% 0 0 -5.6%; mix-blend-mode: multiply; -webkit-user-drag: none; }
:root[data-theme="dark"] .dg-shot img { filter: invert(1); mix-blend-mode: screen; opacity: .9; }
.dg-shot.is-lost { display: none; }
.dg-doc[data-kind="pages"] .dg-meta { margin: 0; padding: 0 .5rem; }
.dg-doc[data-kind="pages"] .dg-src { margin: 0; padding: 0 .5rem; }

/* ---- sheets: the list of nights, send */
.dg-nl { display: grid; gap: 2px; }
.dg-nl-row { display: grid; grid-template-columns: 5.75rem minmax(0, 1fr); align-items: baseline; gap: 0 var(--s-3); width: 100%; min-height: var(--tap); padding: .5rem .75rem; border-radius: var(--r-2); text-align: left; transition: background var(--med) var(--ease); }
.dg-nl-row:hover { background: color-mix(in srgb, var(--ink) 6%, transparent); }
.dg-nl-row:focus-visible { outline-offset: -2px; border-radius: var(--r-2); }
.dg-nl-date { grid-row: span 2; font-size: var(--t-small); font-variant-numeric: tabular-nums; color: var(--ink-2); }
.dg-nl-row b { font-size: .9375rem; font-weight: 600; line-height: 1.3; overflow-wrap: break-word; }
.dg-nl-by { grid-column: 2; font-size: var(--t-small); color: var(--ink-2); }
.dg-nl-row[aria-current="true"] { background: var(--accent-soft); }
.dg-nl-row b .dg-dot { margin-right: .5rem; }
.dg-dot { --fam: var(--f-other); display: inline-block; width: .625rem; height: .625rem; border-radius: 2px; background: color-mix(in srgb, var(--fam) 75%, var(--bg-raise)); translate: 0 -.05em; }
.dg-nl > li { display: grid; gap: 1px; }
.dg-nl-hit { display: grid; grid-template-columns: 5.75rem minmax(0, 1fr); align-items: baseline; gap: 0 var(--s-3); width: 100%; min-height: var(--tap); padding: .4rem .75rem; border-radius: var(--r-2); text-align: left; font-size: var(--t-small); line-height: 1.45; color: var(--ink-2); transition: background var(--med) var(--ease); }
.dg-nl-hit:hover { background: color-mix(in srgb, var(--ink) 6%, transparent); }
.dg-nl-hit:focus-visible { outline-offset: -2px; border-radius: var(--r-2); }
.dg-nl-p { justify-self: end; font-family: var(--font-num); color: var(--ink-3); font-variant-numeric: tabular-nums; }
.dg-nl mark, .dg-page mark.dg-hit { background: color-mix(in srgb, var(--accent) 26%, transparent); color: inherit; border-radius: 2px; }
.dg-find { display: grid; gap: var(--s-3); min-width: 0; }
.dg-q-row { position: sticky; top: calc(-1 * var(--s-4)); z-index: 1; display: flex; align-items: center; gap: .5rem; min-height: var(--tap); padding: 0 .85rem; border: 1px solid var(--line-strong); border-radius: var(--r-pill); background: var(--bg-raise); }
.dg-q-row .ico { flex: none; color: var(--ink-3); }
.dg-q { flex: 1 1 auto; min-width: 0; min-height: var(--tap); border: 0; background: none; color: var(--ink); font: inherit; font-size: 1rem; outline: none; }
.dg-q::-webkit-search-cancel-button { cursor: pointer; }
.dg-q-row:focus-within { border-color: var(--accent); }
.dg-chips { display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-2); }
.dg-chip { display: inline-flex; align-items: center; gap: .45rem; min-height: var(--tap); padding: 0 .9rem; border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--glass); font-size: var(--t-small); color: var(--ink); transition: border-color var(--fast), background var(--fast); }
.dg-chip:hover { border-color: var(--line-strong); }
.dg-chip[aria-pressed="true"] { border-color: var(--fam); background: color-mix(in srgb, var(--fam) 18%, transparent); }
.dg-found { font-size: var(--t-small); color: var(--ink-2); }
.dg-found:empty { display: none; }

.dg-send-what { font-size: var(--t-small); color: var(--ink-2); overflow-wrap: break-word; }
.dg-send-body { display: flex; flex-wrap: wrap; align-items: flex-start; gap: var(--s-4) var(--s-5); }
.dg-qr { flex: none; display: grid; justify-items: center; gap: .4rem; font-size: var(--t-tiny); color: var(--ink-2); }
.dg-qr-code { display: block; width: 9.5rem; height: 9.5rem; border-radius: var(--r-1); overflow: hidden; }
.dg-qr-code svg { width: 100%; height: 100%; }
.dg-send-btns { flex: 1 1 12rem; display: flex; flex-wrap: wrap; gap: var(--s-2); }
.dg-send-btns [aria-disabled="true"], .dg-send-btns :disabled { opacity: .5; pointer-events: none; }
.dg-said { min-height: 1.5em; font-size: var(--t-small); color: var(--ink-2); overflow-wrap: anywhere; }
.dg-print { position: fixed; right: 0; bottom: 0; width: 0; height: 0; border: 0; }

/* ---- phones only: the pages as one row (‹ 3 / 10 ›) and the slim row that stands in for the top while reading */
.dg-pager, .dg-slim { display: none; }
.dg-pl { display: grid; gap: 2px; }
.dg-pl-row { display: grid; grid-template-columns: 1.5rem minmax(0, 1fr); align-items: baseline; gap: var(--s-3); width: 100%; min-height: var(--tap); padding: .55rem .75rem; border-radius: var(--r-2); text-align: left; font-size: .9375rem; line-height: 1.35; color: var(--ink); transition: background var(--med) var(--ease); }
.dg-pl-row:hover { background: color-mix(in srgb, var(--ink) 6%, transparent); }
.dg-pl-row[aria-current="true"] { background: var(--accent-soft); }
.dg-pl-row .dg-ix-n { color: var(--ink-3); }

/* ---- upright tablets and phones: stacked; the index is a row of numbered tabs */
@media (max-width: 1000px) {
  .dg { gap: var(--s-2); }
  .dg-head { grid-column: 1; }
  .dg-head .dg-steps { margin-right: 0; }
  .dg-head .dg-date { margin-right: auto; }
  .dg-body { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto minmax(0, 1fr); gap: var(--s-2); }
  .dg-index { grid-column: 1; grid-row: 2; }
  .dg-read { grid-column: 1; grid-row: 3; }
  .dg-index { grid-template-rows: auto; }
  .dg-index .side-title { display: none; }
  .dg-ix-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(var(--tap), 1fr)); gap: 2px; overflow: visible; }   /* 11-14: the numbers wrap to a second row instead of running off the side */
  .dg-ix { grid-template-columns: auto; justify-content: center; min-width: var(--tap); padding: 0 .4rem; }
  .dg-ix-t { display: none; }
  .dg-ix-n { font-size: .9375rem; text-align: center; color: var(--ink-2); }
}
@media (max-width: 720px) {
  /* the rows from the top: date row, pages row, slim row (only while reading), the reading panel. No grid gaps: each row
     carries its own space below, so a folded row takes none */
  .dg { gap: 0; }
  .dg-top { margin-bottom: var(--s-2); transition: max-height .4s var(--ease), opacity var(--med) var(--ease), margin-bottom .4s var(--ease); }
  .dg-body { grid-template-rows: auto auto auto minmax(0, 1fr); gap: 0; }
  .dg-index { display: none; }
  .dg-head { grid-row: 1; }
  .dg-pager.is-main { grid-row: 2; }
  .dg-slim { grid-row: 3; }
  .dg-read { grid-row: 4; }
  .dg-head, .dg-pager.is-main, .dg-slim { max-height: 4rem; margin: -4px 0 var(--s-2); padding: 4px; overflow: hidden;      /* room inside for the focus ring */
    transition: max-height .4s var(--ease), opacity var(--med) var(--ease), margin-bottom .4s var(--ease), padding .4s var(--ease); }
  .dg-pager { display: flex; align-items: center; gap: var(--s-1); min-width: 0; }
  .dg-pg-prev .ico { rotate: 90deg; } .dg-pg-next .ico { rotate: -90deg; }
  .dg-pg-now { flex: 1 1 auto; display: flex; align-items: center; gap: var(--s-3); min-width: 0; min-height: var(--tap); padding: 0 .6rem; border-radius: var(--r-pill); text-align: left; color: var(--ink); transition: background var(--fast); }
  @media (hover: hover) { .dg-pg-now:hover { background: color-mix(in srgb, var(--ink) 5%, transparent); } }
  .dg-pg-now:disabled { color: var(--ink-3); }
  .dg-pg-t { line-height: 1.3; }
  .dg-pg-n { flex: none; font-size: .9375rem; font-weight: 600; font-variant-numeric: tabular-nums; }
  .dg-pg-t { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--t-small); color: var(--ink-2); }
  .dg-slim { display: flex; align-items: center; justify-content: space-between; gap: var(--s-1); max-height: 0; margin-bottom: 0; padding-block: 0; opacity: 0; visibility: hidden;
    transition: max-height .4s var(--ease), opacity var(--med) var(--ease), margin-bottom .4s var(--ease), padding .4s var(--ease), visibility 0s .4s; }
  .dg-slim .dg-pager { flex: 0 1 auto; display: flex; }
  .dg-slim .dg-pg-now { flex: 0 0 auto; justify-content: center; padding: 0 .5rem; }
  .dg-slim .dg-pg-t { display: none; }
  .dg-unfold { flex: none; display: inline-flex; align-items: center; gap: .3rem; min-height: var(--tap); padding: 0 .7rem 0 .85rem; border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--glass); font-size: var(--t-small); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--ink); }
  .dg-unfold .ico { color: var(--ink-3); }
  .dg-send2 { flex: none; }
  .dg-send2:disabled { opacity: .55; }
  /* reading under way: the shelf, the date row and the pages fold away; the slim row takes their place */
  .dg.is-deep .dg-top, .dg.is-deep .dg-head, .dg.is-deep .dg-pager.is-main { max-height: 0; margin-bottom: 0; padding-block: 0; opacity: 0; overflow: hidden; pointer-events: none; visibility: hidden;
    transition: max-height .4s var(--ease), opacity var(--med) var(--ease), margin-bottom .4s var(--ease), padding .4s var(--ease), visibility 0s .4s; }
  .dg.is-deep .dg-slim { max-height: 4rem; margin-bottom: var(--s-2); padding-block: 4px; opacity: 1; visibility: visible; transition: max-height .4s var(--ease), opacity var(--med) var(--ease) .1s, margin-bottom .4s var(--ease), padding .4s var(--ease); }
  .dg-shelf { --book-h: 6.5rem; --book-w: 46px; --depth: 1.75rem; --head: 1.25rem; }
  .dg-steps { display: none; }
  .dg-page p { font-size: 1.0625rem; line-height: 1.66; margin-top: .8rem; }
  .dg-page h4 { font-size: 1.1875rem; }
  .dg-page { padding-top: var(--s-5); }
  .dg-doc { padding-top: var(--s-4); }
  .dg-doc[data-kind="pages"] { padding: var(--s-1) .25rem var(--s-4); }
  .dg-qr-code { width: 8rem; height: 8rem; }
}
/* a phone on its side: the frame lets the page's area scroll; keep the reading panel a usable height */
@media (max-height: 520px) { .dg { position: relative; inset: auto; height: max(100%, 26rem); } }
@media (max-height: 520px) { .dg-shelf { --book-h: 5.5rem; --depth: 1.5rem; --head: 1rem; } }
.dg-on-b > .dg-on-l { grid-row: 1; } .dg-on-b > b { grid-row: 2; } .dg-on-b > .dg-on-d { grid-row: 3; }
/* send: the file buttons (js/digest-files.js); a button that does not apply to this night is left out */
.dg-send-btns [hidden] { display: none; }
.dg-send-btns .btn { min-width: 0; }
/* the smallest phones (320 px): the slim row keeps to the width (date, ‹ 3 / 10 ›, Send) */
@media (max-width: 360px) {
  .dg-unfold { padding: 0 .65rem; }
  .dg-unfold .ico { display: none; }
  .dg-slim { gap: 2px; }
  .dg-slim .dg-pg-now { padding: 0 .2rem; }
  .dg-send2 { padding-inline: .75rem; }
}
/* less motion: the rows fold and unfold at once (the frame shortens every transition; this also drops their delays) */
@media (prefers-reduced-motion: reduce) { .dg-top, .dg-head, .dg-pager, .dg-slim { transition: none !important; } }
/* Search is a word (UX plan #12): the date gives way first (it is cut with three dots, never pushed off the page), and on
   the narrowest phones Send is its word alone */
.dg-head .dg-date { min-width: 0; flex: 0 1 auto; }
.dg-date-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dg-find-btn, .dg-send-btn { flex: none; }
@media (max-width: 380px) { .dg-head { gap: var(--s-1, .25rem); } .dg-head .btn { padding-inline: .75rem; } .dg-send-btn .ico { display: none; } .dg-date { padding: 0 .6rem 0 .8rem; gap: .25rem; } }
/* short phones (320 x 568): the slim row sits a little tighter, so the reading keeps as much as it can */
@media (max-width: 720px) and (max-height: 640px) {
  .dg.is-deep .dg-slim { margin-bottom: var(--s-1); padding-block: 2px; }
}

/* ---- scene-chazki.css */
/* rohin.me - page 10, Chazki (js/scenes/chazki.js, js/chazki-demo.js, js/chazki-views.js).
   One screen. Wide screens: the chooser and the way in | the phone. Phones: the chooser (a grid of equal pictures),
   the phone (it takes the room and scrolls inside itself), then the film and the way in in their own row. Nothing lies
   over anything; every tile does something when pressed (11-16: the More panel of pictures is gone).
   Everything outside the phone uses the site's tokens. INSIDE the phone (.cz-screen) the colours are Chazki's own and stay the same in every colour version, light and dark: they
   are pictures of a product, like a photograph. */

.cz { position: absolute; inset: 0; display: grid; grid-template-columns: minmax(17rem, .9fr) minmax(0, 1.1fr); grid-template-rows: minmax(0, 1fr); gap: var(--s-4) var(--s-7); align-items: center; }
.cz-side { display: grid; gap: var(--s-4); align-content: center; min-width: 0; max-width: 31rem; }

/* the chooser: a picture and a word or two; the one in the phone is marked */
.cz-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(6rem, 1fr)); gap: var(--s-2); min-width: 0; }
.cz-thing { display: grid; justify-items: center; align-content: center; gap: .3rem; min-height: 4.75rem; min-width: 0; padding: .55rem .3rem .5rem; border-radius: var(--r-2); border: 1px solid var(--line); background: var(--glass); color: var(--ink-2); font-size: var(--t-tiny); font-weight: 500; line-height: 1.2; text-align: center; transition: border-color var(--fast), background var(--fast), color var(--fast), transform var(--fast) var(--ease); }
.cz-thing span { max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cz-short { display: none; }      /* the one word of the phone's small tiles */
.cz-thing:hover { border-color: var(--line-strong); color: var(--ink); }
.cz-thing:active { transform: scale(.97); }
.cz-thing[aria-pressed="true"] { color: var(--ink); border-color: var(--accent); background: var(--accent-soft); }
.cz-pic { width: 3.5rem; height: 2.2rem; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.cz-pic .q { opacity: .5; }
.cz-pic .a { stroke: var(--accent); }
.cz-pic .af { fill: var(--accent); stroke: none; }
.cz-pic .dot { fill: currentColor; stroke: none; }

/* small: the film and the way in */
.cz-ways { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.cz-way { min-height: var(--tap); padding: 0 .9rem; gap: .4rem; font-size: var(--t-tiny); white-space: nowrap; }
.cz-way .ico { color: currentColor; }
.cz-film-btn { padding: 0 1.15rem 0 1rem; }      /* the first, filled button: the film explains the app best */
/* the reel's ▶ / pause, in the title row */
.cz-reel { width: var(--tap); min-height: var(--tap); padding: 0; justify-content: center; }
.cz-reel .ico { color: var(--accent); }
.cz-qr { display: flex; align-items: center; gap: var(--s-3); min-width: 0; }
.cz-qr-code { flex: none; width: 4.75rem; height: 4.75rem; border-radius: var(--r-1); overflow: hidden; background: var(--paper); }
.cz-qr-code svg { width: 100%; height: 100%; }
.cz-qr-text { display: grid; gap: .1rem; min-width: 0; font-size: var(--t-tiny); color: var(--ink-2); }
.cz-qr-text b { color: var(--ink); font-weight: 600; }
.cz-qr-text span { overflow-wrap: break-word; }

/* the phone: its body follows the site; its screen is Chazki */
.cz-stage { height: 100%; min-height: 0; min-width: 0; display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); place-items: center; perspective: 1700px; }
.cz-phone { position: relative; min-width: 0; height: 100%; max-height: 54rem; aspect-ratio: 10 / 19.5; max-width: 100%; padding: 9px; border-radius: 2.9rem; background: var(--bg-sunk); border: 1px solid var(--line-strong); box-shadow: var(--shadow), 0 0 0 0 var(--line-strong); transition: transform var(--slow) var(--ease), box-shadow var(--slow) var(--ease); }
/* a touch of depth, desktops only: the phone stands slightly turned and lies flat once the pointer is over it or it has been used */
@media (hover: hover) and (pointer: fine) and (min-width: 1000px) and (prefers-reduced-motion: no-preference) {
  .cz-phone { transform: rotateY(-12deg) rotateX(2.5deg) scale(.94); box-shadow: var(--shadow), 7px 1px 0 0 var(--line-strong); }      /* a little smaller: the near edge grows in perspective and must stay on the page */
  .cz-stage:hover .cz-phone, .cz-stage.is-flat .cz-phone, .still .cz-phone { transform: none; box-shadow: var(--shadow), 0 0 0 0 var(--line-strong); }
}

.cz-screen {
  /* Chazki's own colours (dark brown, gold), measured from the app. Not site tokens on purpose: see the top of this file. */
  --cz-bg: #1c1710; --cz-card: #2a241a; --cz-raise: #383226; --cz-line: #4d4535;
  --cz-ink: #f3ecdc; --cz-ink-2: #c6bba5; --cz-ink-3: #a79c86;
  --cz-gold: #d9a23f; --cz-gold-hi: #fccc4f; --cz-gold-ink: #221a08;
  --cz-serif: 'Iowan Old Style', 'Palatino Linotype', Palatino, 'Book Antiqua', Georgia, 'Times New Roman', serif;
  height: 100%; min-width: 0; display: flex; flex-direction: column; overflow: hidden; border-radius: 2.4rem; background: var(--cz-bg); color: var(--cz-ink); color-scheme: dark;
  font-size: 14px; line-height: 1.4; text-align: left;
}
.cz-screen.is-easy { font-size: 17px; }
.cz-screen button { color: inherit; }
.cz-screen :focus-visible { outline-color: var(--cz-gold-hi); outline-offset: 2px; }
.cz-screen ::selection { background: color-mix(in srgb, var(--cz-gold) 40%, transparent); color: var(--cz-ink); }

/* title row: the channel, the word Demo, the two switches */
.cz-top { flex: none; display: flex; align-items: center; gap: 6px; min-height: 56px; padding: 6px 10px 6px 16px; border-bottom: 1px solid var(--cz-line); background: var(--cz-card); }
.cz-name { display: grid; gap: 2px; min-width: 0; margin-right: auto; justify-items: start; }
.cz-name b { max-width: 100%; font: 700 15px/1.15 var(--cz-serif); font-variant: small-caps; letter-spacing: .04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cz-demo { padding: 0 .6em; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--cz-gold-hi) 60%, transparent); color: var(--cz-gold-hi); font-size: 11px; font-weight: 600; letter-spacing: .07em; line-height: 1.55; text-transform: uppercase; }
.cz-switches { flex: none; display: flex; gap: 6px; }
.cz-back { flex: none; display: inline-flex; align-items: center; gap: 4px; min-height: 44px; margin-left: -6px; padding: 0 10px 0 6px; border-radius: 999px; color: var(--cz-ink-2); font-size: 12px; font-weight: 500; }
.has-view .cz-switches, .has-view .cz-chat, .has-view .cz-easybar, .has-view .cz-box { display: none; }
.cz-switch { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 9px; border-radius: 999px; border: 1px solid var(--cz-line); background: var(--cz-raise); color: var(--cz-ink-2); font-size: 12px; font-weight: 500; white-space: nowrap; transition: background var(--fast), border-color var(--fast), color var(--fast); }
.cz-switch i { order: -1; flex: none; width: 7px; height: 7px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--cz-ink-3); }
.cz-switch[aria-checked="true"] { background: var(--cz-gold-hi); border-color: var(--cz-gold-hi); color: var(--cz-gold-ink); font-weight: 600; }
.cz-switch[aria-checked="true"] i { background: var(--cz-gold-ink); box-shadow: none; }

/* the chat: the newest at the bottom; it scrolls inside the phone */
/* touch-action: a scrolling box starts a new touch context, so it has to repeat the deck's pan-y for a sideways drag on the chat to reach the page swipe */
.cz-chat { flex: 1 1 0; min-height: 0; display: flex; flex-direction: column; overflow-y: auto; overscroll-behavior: contain; touch-action: pan-y pinch-zoom; padding: 12px 12px 14px; scrollbar-width: thin; scrollbar-color: var(--cz-line) transparent; }
.cz-chat:focus-visible { outline-offset: -3px; }
.cz-msgs { margin-top: auto; display: grid; gap: .95em; }
.cz-day { display: flex; align-items: center; gap: .8em; font-size: 12px; color: var(--cz-ink-3); }
.cz-day::before, .cz-day::after { content: ''; flex: 1; height: 1px; background: var(--cz-line); }
.cz-msg { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 9px; align-items: start; }
.cz-av { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--p); color: var(--cz-bg); font-size: 12px; font-weight: 700; letter-spacing: -.01em; }
.is-easy .cz-av { width: 40px; height: 40px; font-size: 13px; }
.cz-body { min-width: 0; }
.cz-who { display: flex; align-items: baseline; gap: .55em; min-width: 0; }
.cz-who b { color: var(--p); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cz-who time { flex: none; font-size: .82em; color: var(--cz-ink-3); }
.cz-text { margin-top: .1em; overflow-wrap: anywhere; }
.cz-note { display: block; margin-top: .2em; font-size: .82em; color: var(--cz-ink-3); }
.cz-p-0 { --p: #c792ea; } .cz-p-1 { --p: #f08ab8; } .cz-p-2 { --p: #f0a04b; } .cz-p-3 { --p: #4fd1b0; } .cz-p-4 { --p: #63b3ed; } .cz-p-5 { --p: #68d391; } .cz-p-6 { --p: #e8c66a; } .cz-p-7 { --p: #f29f8d; } .cz-p-you { --p: var(--cz-gold-hi); }

/* a tool's card */
.cz-card { margin-top: .55em; display: grid; gap: .55em; padding: .75em .8em .8em; border-radius: .7em; border: 1px solid var(--cz-line); border-left: 3px solid var(--cz-gold); background: var(--cz-card); }
.cz-msg.is-new .cz-card { animation: cz-arrive 1.1s var(--ease) 1; }
@keyframes cz-arrive { 0% { opacity: .2; transform: translateY(8px); box-shadow: 0 0 0 2px var(--cz-gold-hi); } 35% { opacity: 1; transform: none; } 100% { box-shadow: 0 0 0 2px transparent; } }
.cz-card-head { display: flex; align-items: baseline; justify-content: space-between; gap: .6em; }
.cz-card-title { font: 700 1.1em/1.2 var(--cz-serif); font-variant: small-caps; letter-spacing: .04em; }
.cz-kind { font-size: .82em; color: var(--cz-ink-3); }
.cz-sub { color: var(--cz-ink); }
.cz-foot { font-size: .86em; color: var(--cz-ink-2); }
.cz-big { font-size: 2.2em; font-weight: 500; letter-spacing: -.02em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.cz-opts { display: grid; gap: .4em; }
.cz-opt { position: relative; display: flex; align-items: center; gap: .6em; width: 100%; min-height: 44px; padding: .3em .8em; border-radius: .55em; border: 1px solid transparent; background: var(--cz-raise); text-align: left; overflow: hidden; transition: background var(--fast), border-color var(--fast); }
button.cz-opt:active { background: color-mix(in srgb, var(--cz-gold) 18%, var(--cz-raise)); }
.cz-opt-main { position: relative; display: grid; min-width: 0; margin-right: auto; }
.cz-opt-main b { font-weight: 500; }
.cz-opt-main small { font-size: .82em; color: var(--cz-ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cz-n { position: relative; flex: none; color: var(--cz-ink-2); font-variant-numeric: tabular-nums; }
.cz-opt[aria-pressed="true"] { background: color-mix(in srgb, var(--cz-gold) 36%, var(--cz-raise)); border-color: var(--cz-gold); }
.cz-opt[aria-pressed="true"] small, .cz-opt[aria-pressed="true"] .cz-n { color: var(--cz-ink); }
.cz-opt.is-best { border-color: var(--cz-gold-hi); }
.cz-best { position: relative; flex: none; padding: .1em .65em; border-radius: 999px; background: var(--cz-gold-hi); color: var(--cz-gold-ink); font-style: normal; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.cz-fill { position: absolute; inset: 0 auto 0 0; background: color-mix(in srgb, var(--cz-gold) 24%, transparent); }
.cz-opt.is-taken { background: none; border-color: var(--cz-line); }
.cz-claim { position: relative; flex: none; padding: .25em .85em; border-radius: 999px; background: var(--cz-bg); font-size: .86em; font-weight: 600; }
.cz-opt[aria-pressed="true"] .cz-claim { background: var(--cz-gold-hi); color: var(--cz-gold-ink); }
.cz-rows { display: grid; gap: .3em; }
.cz-row { display: flex; align-items: baseline; justify-content: space-between; gap: 1em; color: var(--cz-ink-2); }
.cz-row b { color: var(--cz-ink); font-weight: 500; text-align: right; }
.cz-count { font-variant-numeric: tabular-nums; }
.cz-row .cz-count { color: var(--cz-gold-hi); }
.cz-actions { display: flex; flex-wrap: wrap; gap: .5em; }
.cz-btn { min-height: 44px; padding: 0 1.1em; border-radius: .55em; background: var(--cz-raise); font-size: 1em; font-weight: 500; transition: transform var(--fast) var(--ease), background var(--fast); }
.cz-btn.is-gold { background: var(--cz-gold-hi); color: var(--cz-gold-ink); font-weight: 600; }
.cz-btn:active { transform: scale(.96); }

/* dice */
.cz-dice-top { display: flex; align-items: center; justify-content: space-between; gap: 1em; }
.cz-dice { display: flex; gap: .5em; }
.cz-die { width: 3em; height: 3em; padding: .5em; border-radius: .6em; background: var(--cz-ink); display: grid; grid-template: repeat(3, 1fr) / repeat(3, 1fr); gap: 2px; }
.cz-die i { border-radius: 50%; }
.cz-die i.on { background: var(--cz-bg); }
.cz-dice.is-rolling .cz-die { animation: cz-roll .5s var(--ease) 1; }
.cz-dice.is-rolling .cz-die + .cz-die { animation-direction: reverse; animation-timing-function: var(--ease-in-out); }
@keyframes cz-roll { 0% { transform: rotate(-200deg) scale(.7); } 60% { transform: rotate(12deg) scale(1.05); } 100% { transform: none; } }

/* the wheel: the one part of the miniature that takes a drag (data-swipe="off"), so a page swipe cannot start on it */
.cz-wheel-row { display: grid; justify-items: center; gap: .6em; }
.cz-wheel { width: min(100%, 13.5em); aspect-ratio: 1; border-radius: 50%; touch-action: none; cursor: grab; -webkit-user-select: none; user-select: none; }
.cz-wheel:active { cursor: grabbing; }
.cz-wheel-svg { width: 100%; height: 100%; overflow: visible; }
.cz-wheel-disc { transform-origin: 100px 100px; }
.cz-slice { fill: var(--cz-raise); stroke: var(--cz-gold); stroke-width: 1.2; }
.cz-slice:nth-of-type(even) { fill: var(--cz-bg); }
.cz-slice.is-win { fill: var(--cz-gold-hi); }
.cz-slice-text { font-size: 13px; font-weight: 600; fill: var(--cz-ink); pointer-events: none; }
.cz-slice-text.is-win { fill: var(--cz-gold-ink); }
.cz-hub { fill: var(--cz-gold); stroke: var(--cz-bg); stroke-width: 2; }
.cz-pointer { fill: var(--cz-ink); stroke: var(--cz-bg); stroke-width: 1.5; }
.cz-wheel-read { display: grid; justify-items: center; gap: .15em; min-height: 3.6em; align-content: end; }

/* under the chat: the four large buttons of Easy Mode, the message box (both part of the picture) */
.cz-easybar { flex: none; display: none; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; padding: 8px 12px 0; }
.is-easy .cz-easybar { display: grid; }
.cz-easybar span { display: grid; justify-items: center; gap: 2px; padding: 7px 2px 6px; border-radius: .7rem; border: 1px solid var(--cz-line); background: var(--cz-raise); font-size: 12px; white-space: nowrap; }
.cz-box { flex: none; display: flex; align-items: center; gap: 10px; min-height: 42px; margin: 8px 12px 12px; padding: 0 14px; border-radius: .9rem; border: 1px solid var(--cz-line); background: var(--cz-card); color: var(--cz-ink-3); font-size: 14px; white-space: nowrap; overflow: hidden; }
.cz-box span { color: var(--cz-ink-3); }

/* a shared list: tick, name, claim */
.cz-item { padding: 0 .5em 0 0; gap: .35em; }
.cz-tick { flex: none; width: 44px; height: 44px; display: grid; place-items: center; }
.cz-tick i { width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--cz-ink-3); position: relative; }
.cz-tick[aria-checked="true"] i { background: var(--cz-gold-hi); border-color: var(--cz-gold-hi); }
.cz-tick[aria-checked="true"] i::after { content: ''; position: absolute; left: 5px; top: 1px; width: 6px; height: 11px; border: solid var(--cz-gold-ink); border-width: 0 2px 2px 0; transform: rotate(42deg); }
.cz-item.is-done .cz-opt-main b { text-decoration: line-through; color: var(--cz-ink-2); }
.cz-item.is-mine { background: color-mix(in srgb, var(--cz-gold) 36%, var(--cz-raise)); border-color: var(--cz-gold); }
/* a 44px button that looks like the small pill it is in the app */
button.cz-claim { min-height: 44px; display: inline-flex; align-items: center; padding: 0 .85em; border-radius: 999px; background: linear-gradient(var(--cz-bg), var(--cz-bg)) center / 100% 1.9em no-repeat; }
button.cz-claim[aria-pressed="true"] { background-image: linear-gradient(var(--cz-gold-hi), var(--cz-gold-hi)); color: var(--cz-gold-ink); }

/* a video in the chat: a drawn clip (a ferry crossing); --t runs 0 to 1 */
.cz-card-bare { padding: 0; border: 0; background: none; }
.cz-clip { position: relative; --t: 0; border-radius: .8em; overflow: hidden; border: 1px solid var(--cz-line); background: var(--cz-card); }
.cz-clip-pic { display: block; width: 100%; aspect-ratio: 16 / 9; }
.cz-clip-sky { fill: #3b2f1f; } .cz-clip-sun { fill: var(--cz-gold-hi); transform: translateY(calc(var(--t) * -9px)); }
.cz-clip-hill { fill: #2a241a; } .cz-clip-sea { fill: #20303a; }
.cz-clip-boat { transform: translateX(calc(8px + var(--t) * 118px)); }
.cz-clip-hull { fill: var(--cz-ink); } .cz-clip-cabin { fill: none; stroke: var(--cz-ink); stroke-width: 1.6; stroke-linejoin: round; }
.cz-clip-wake { fill: none; stroke: var(--cz-ink-2); stroke-width: 1.2; stroke-linecap: round; opacity: calc(.15 + var(--t) * .7); }
.cz-clip-wave { fill: none; stroke: #48606c; stroke-width: 1.2; stroke-linecap: round; transform: translateX(calc(var(--t) * -10px)); }
.cz-clip-play { position: absolute; left: 50%; top: calc(50% - 22px); width: 64px; height: 64px; margin: -32px 0 0 -32px; display: grid; place-items: center; border-radius: 50%; background: color-mix(in srgb, var(--cz-bg) 72%, transparent); border: 1px solid var(--cz-gold-hi); color: var(--cz-gold-hi) !important; }
.cz-clip-row { display: flex; align-items: center; gap: 6px; padding: 0 10px 0 0; }
.cz-clip-btn { flex: none; width: 44px; height: 44px; display: grid; place-items: center; }
.cz-clip-time { flex: none; min-width: 2.6em; font-size: 12px; font-variant-numeric: tabular-nums; color: var(--cz-ink-2); }
.cz-clip-bar { flex: 1; min-width: 0; height: 44px; margin: 0; background: none; -webkit-appearance: none; appearance: none; --p: 0%; cursor: pointer; }
.cz-clip-bar::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: linear-gradient(to right, var(--cz-gold-hi) var(--p), var(--cz-line) var(--p)); }
.cz-clip-bar::-moz-range-track { height: 4px; border-radius: 2px; background: linear-gradient(to right, var(--cz-gold-hi) var(--p), var(--cz-line) var(--p)); }
.cz-clip-bar::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; margin-top: -5px; border-radius: 50%; background: var(--cz-gold-hi); border: 0; }
.cz-clip-bar::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--cz-gold-hi); border: 0; }

/* a view fills the phone under the title row and scrolls inside itself */
.cz-view { flex: 1 1 0; min-height: 0; overflow-y: auto; overscroll-behavior: contain; touch-action: pan-y pinch-zoom; padding: 12px; scrollbar-width: thin; scrollbar-color: var(--cz-line) transparent; }
.cz-wide { width: 100%; }
.cz-btn[disabled] { opacity: .55; }

/* the card scanner: the camera over an invented card, then what it is one card away from */
.cz-scan { min-height: 100%; display: grid; }
.cz-scan-live { display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 10px; min-height: 0; }
.cz-cam { position: relative; min-height: 15em; display: grid; place-items: center; overflow: hidden; border-radius: .9em; border: 1px solid var(--cz-line); background: radial-gradient(120% 90% at 30% 20%, #4a3a27, #2b2116 60%, #1d1710); }
.cz-cam-card { position: relative; font-size: 15px; transform: rotate(-4deg); border-radius: 9px; box-shadow: 0 10px 22px -8px #000; }
.cz-cam-corners { position: absolute; inset: 12px; pointer-events: none; background:
  linear-gradient(var(--cz-ink), var(--cz-ink)) left top / 18px 2px, linear-gradient(var(--cz-ink), var(--cz-ink)) left top / 2px 18px,
  linear-gradient(var(--cz-ink), var(--cz-ink)) right top / 18px 2px, linear-gradient(var(--cz-ink), var(--cz-ink)) right top / 2px 18px,
  linear-gradient(var(--cz-ink), var(--cz-ink)) left bottom / 18px 2px, linear-gradient(var(--cz-ink), var(--cz-ink)) left bottom / 2px 18px,
  linear-gradient(var(--cz-ink), var(--cz-ink)) right bottom / 18px 2px, linear-gradient(var(--cz-ink), var(--cz-ink)) right bottom / 2px 18px; background-repeat: no-repeat; opacity: .7; }
.cz-scanline { position: absolute; left: -8px; right: -8px; top: 0; height: 3px; border-radius: 2px; background: #7fe08f; box-shadow: 0 0 12px 3px rgba(127, 224, 143, .55); opacity: 0; }
.is-scanning .cz-scanline { opacity: 1; animation: cz-scan 1.6s var(--ease-in-out) 1 both; }
@keyframes cz-scan { 0% { top: 0; } 50% { top: calc(100% - 3px); } 100% { top: 0; } }
.is-found .cz-cam-card { outline: 2px solid #7fe08f; outline-offset: 3px; }
.cz-found { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: .5em; padding: .35em .9em .35em .6em; border-radius: 999px; background: color-mix(in srgb, var(--cz-bg) 86%, transparent); border: 1px solid #7fe08f; font-weight: 600; white-space: nowrap; }
.cz-found i, .cz-done i { flex: none; width: 10px; height: 10px; border-radius: 50%; background: #7fe08f; }
.cz-tcg { width: 10.6em; display: grid; gap: .3em; padding: .5em; border-radius: 9px; background: #efe6d2; color: #241c10; border: 1px solid #b9a880; font-size: inherit; line-height: 1.25; }
.cz-pair .cz-tcg { font-size: 12px; }
.cz-tcg-name { font: 700 1em/1.2 var(--cz-serif); }
.cz-tcg-art { display: block; width: 100%; border-radius: 4px; }
.cz-tcg-art .a0 { fill: #3a3022; } .cz-tcg-art .a1 { fill: #fccc4f; opacity: .35; } .cz-tcg-art .a2 { fill: #d9a23f; stroke: #241c10; stroke-width: 1.2; stroke-linejoin: round; }
.cz-tcg-art .a3 { fill: none; stroke: #241c10; stroke-width: 1.4; stroke-linecap: round; } .cz-tcg-art .a4 { fill: #efe6d2; }
.cz-tcg-kind { font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; opacity: .7; }
.cz-tcg-rules { display: grid; gap: .25em; font-size: 12px; }
.cz-tcg.is-small { width: 6.6em; padding: .4em; }
.cz-result { display: grid; gap: .55em; align-content: start; }
.cz-done { display: flex; align-items: center; gap: .5em; font-size: .86em; color: var(--cz-ink-2); }
.cz-result-title { font-size: 1.35em; }
.cz-combo { display: grid; gap: .6em; padding: .75em .8em; border-radius: .7em; border: 1px solid var(--cz-line); background: var(--cz-card); }
.cz-pair { display: flex; gap: .8em; }
.cz-pair figure { margin: 0; display: grid; gap: .3em; justify-items: center; }
.cz-pair figcaption { font-size: .82em; color: var(--cz-ink-2); }
.cz-pair .is-need .cz-tcg { opacity: .78; outline: 1.5px dashed var(--cz-gold-hi); outline-offset: 2px; }
.cz-tag { justify-self: start; padding: .1em .7em; border-radius: 999px; border: 1px solid #7fe08f; color: #9be8a8; font-size: .82em; font-weight: 600; }
.cz-steps { margin: 0; padding-left: 1.3em; display: grid; gap: .3em; list-style: decimal; }

/* the fantasy market (League Exchange) */
.cz-mkt { display: grid; gap: 10px; align-content: start; }
.cz-mkt-me { display: grid; grid-template-columns: 1.3fr 1fr auto; gap: 8px; padding: .6em .8em; border-radius: .7em; border: 1px solid var(--cz-line); border-left: 3px solid var(--cz-gold); background: var(--cz-card); }
.cz-mkt-me div { display: grid; min-width: 0; }
.cz-mkt-me small, .cz-val span, .cz-quote small { font-size: 11.5px; color: var(--cz-ink-2); }
.cz-mkt-me b { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cz-chg { font-size: 11.5px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cz-chg.is-up, .is-up > polyline { color: #8fdc9c; stroke: #8fdc9c; }
.cz-chg.is-down, .is-down > polyline { color: #f0957f; stroke: #f0957f; }
.cz-seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 3px; border-radius: 999px; background: var(--cz-card); border: 1px solid var(--cz-line); }
.cz-seg button { min-height: 44px; border-radius: 999px; font-size: 13px; font-weight: 500; color: var(--cz-ink-2); }
.cz-seg button[aria-pressed="true"] { background: var(--cz-raise); color: var(--cz-ink); }
.cz-mkt-body { display: grid; gap: 10px; }
.cz-stock { gap: .55em; padding: .3em .65em; min-height: 52px; }
.cz-sym { flex: none; min-width: 3.6em; padding: .2em .35em; border-radius: .4em; background: var(--cz-bg); color: var(--cz-gold-hi); font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-align: center; }
.cz-spark-box { flex: none; width: 46px; }
.cz-spark, .cz-chart-line { display: block; width: 100%; fill: none; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; overflow: visible; }
.cz-spark { height: 20px; } .cz-spark polyline, .cz-chart-line polyline { vector-effect: non-scaling-stroke; }
.cz-val { flex: none; display: grid; justify-items: end; }
.cz-val b { font-weight: 600; font-variant-numeric: tabular-nums; }
.cz-feed { display: grid; gap: .25em; font-size: .86em; color: var(--cz-ink-2); }
.cz-feed p { display: flex; justify-content: space-between; gap: 1em; }
.cz-feed b { color: var(--cz-ink); font-weight: 500; }
.cz-feed small { flex: none; font-size: 11.5px; color: var(--cz-ink-3); }
.cz-none { padding: 1.2em 0; text-align: center; }
.cz-leaders .cz-row { padding: .45em 0; border-bottom: 1px solid var(--cz-line); white-space: pre; }
.cz-leaders .is-me span, .cz-leaders .is-me b { color: var(--cz-gold-hi); }
.cz-ticket { display: grid; gap: 10px; padding: .75em .8em .8em; border-radius: .7em; border: 1px solid var(--cz-line); border-left: 3px solid var(--cz-gold); background: var(--cz-card); }
.cz-ticket-head { display: flex; align-items: center; gap: .55em; }
.cz-quote { display: flex; align-items: baseline; flex-wrap: wrap; gap: .1em .6em; }
.cz-chart { height: 64px; padding: 2px 0; border-bottom: 1px solid var(--cz-line); }
.cz-chart-line { height: 100%; }
.cz-amts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.cz-amts button { min-height: 44px; border-radius: .55em; background: var(--cz-raise); border: 1px solid transparent; font-weight: 500; font-variant-numeric: tabular-nums; }
.cz-amts button[aria-pressed="true"] { border-color: var(--cz-gold-hi); background: color-mix(in srgb, var(--cz-gold) 36%, var(--cz-raise)); }
.cz-amts button[disabled] { opacity: .4; }
.cz-own { display: grid; gap: 8px; }
.cz-own:empty { display: none; }

/* a chat import */
.cz-import-pick { display: grid; gap: 10px; align-content: start; }
/* 11-16: on a short screen the start button and Import stay in view: the camera and the file's lines give up room first */
.cz-scan:has(> .cz-scan-live:not([hidden])), .cz-import:has(> .cz-import-pick:not([hidden])) { height: 100%; min-height: 0; }
.cz-import-pick { height: 100%; grid-template-rows: auto minmax(0, 1fr) auto auto; }
.cz-import-pick .cz-raw { min-height: 0; overflow: hidden; }
.cz-cam { min-height: 0; grid-template: minmax(0, 1fr) / minmax(0, 1fr); }
.cz-cam-card { transform: rotate(-4deg) scale(var(--fit, 1)); }      /* --fit: set by the scanner when the camera is short */
@media (max-height: 600px) { .cz-import-pick .cz-raw { display: none; } }
.cz-file { display: flex; align-items: center; gap: .7em; padding: .7em .8em; border-radius: .7em; border: 1px dashed var(--cz-gold); background: var(--cz-card); color: var(--cz-gold-hi); }
.cz-file .cz-opt-main b { color: var(--cz-ink); }
.cz-raw { margin: 0; padding: .7em .8em; border-radius: .7em; background: #15110b; color: var(--cz-ink-2); font: 11px/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
.cz-import-chat { display: grid; gap: 12px; align-content: start; }
.cz-import-chat .cz-msg.is-new { animation: cz-in .32s var(--ease) 1 both; }
@keyframes cz-in { from { opacity: 0; transform: translateY(8px); } }

/* a Group Board (inside the phone): two groups, each with its own board; Add Widget, the catalog, Half or Wide, Add to Board */
.cz-board { display: grid; gap: 10px; align-content: start; }
.cz-seg-2 { grid-template-columns: repeat(2, 1fr); }
.cz-seg button[aria-pressed="true"] { background: var(--cz-raise); color: var(--cz-ink); }
.cz-board-main, .cz-board-cat { display: grid; gap: 10px; align-content: start; }
.cz-board-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.cz-board-empty { padding: 1.4em 0; text-align: center; color: var(--cz-ink-3); border: 1px dashed var(--cz-line); border-radius: .7em; }
.cz-w { display: grid; gap: 6px; align-content: start; min-width: 0; padding: .6em .7em .7em; border-radius: .7em; border: 1px solid var(--cz-line); background: var(--cz-card); }
.cz-w.is-wide { grid-column: 1 / -1; }
.cz-w.is-new { animation: cz-arrive 1.1s var(--ease) 1; }
.cz-w-title { font-size: 12px; font-weight: 600; color: var(--cz-ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cz-w-count { display: grid; gap: 2px; } .cz-w-count b { font-size: 1.45em; font-weight: 500; color: var(--cz-gold-hi); font-variant-numeric: tabular-nums; line-height: 1.1; } .cz-w-count small { font-size: 12px; color: var(--cz-ink-2); }
.cz-w-list { display: grid; gap: 3px; font-size: 12.5px; } .cz-w-list p { display: flex; align-items: center; gap: 6px; } .cz-w-list i { flex: none; width: 11px; height: 11px; border-radius: 3px; border: 1.5px solid var(--cz-ink-3); }
.cz-w-list .is-done i { background: var(--cz-gold-hi); border-color: var(--cz-gold-hi); } .cz-w-list .is-done { color: var(--cz-ink-3); text-decoration: line-through; }
.cz-w-rows { display: grid; gap: 3px; font-size: 12.5px; color: var(--cz-ink-2); } .cz-w-rows b { color: var(--cz-ink); font-weight: 500; font-variant-numeric: tabular-nums; }
.cz-w-note { font-size: 13px; }
.cz-w-photos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; } .cz-w-photos i { aspect-ratio: 1; border-radius: 4px; }
.cz-w-photos .ph0 { background: linear-gradient(160deg, #6b8fa3, #2f4652); } .cz-w-photos .ph1 { background: linear-gradient(160deg, #d9a23f, #7a4b1c); }
.cz-w-photos .ph2 { background: linear-gradient(160deg, #8fae6b, #3e5a2c); } .cz-w-photos .ph3 { background: linear-gradient(160deg, #c792ea, #5a3a73); }
.cz-w-hike { display: grid; gap: 4px; } .cz-w-hike svg { width: 100%; height: 30px; } .cz-w-hike path { fill: #3e5a2c; stroke: #8fae6b; stroke-width: 1.2; stroke-linejoin: round; } .cz-w-hike small { font-size: 12px; color: var(--cz-ink-2); }

/* a video call (inside the phone): the lobby with one button, then everyone at once */
.cz-call { min-height: 100%; display: grid; }
.cz-call-lobby { display: grid; gap: 12px; align-content: center; justify-items: center; text-align: center; }
.cz-call-faces { display: flex; gap: 6px; }
.cz-call-av { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--p); color: var(--cz-bg); font-size: 13px; font-weight: 700; }
.cz-call-live { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 8px; min-height: 0; }
.cz-call-top { display: flex; justify-content: space-between; align-items: baseline; color: var(--cz-ink-2); }
.cz-call-clock { color: #8fdc9c; font-weight: 600; font-variant-numeric: tabular-nums; }
.cz-call-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: minmax(4.5em, 1fr); gap: 6px; min-height: 0; }
.cz-call-tile { position: relative; display: grid; place-items: center; border-radius: .8em; overflow: hidden; background: radial-gradient(120% 100% at 50% 20%, color-mix(in srgb, var(--p) 34%, var(--cz-card)), var(--cz-bg)); border: 1px solid var(--cz-line); }
.cz-call-tile .cz-call-av { background: var(--p); }
.cz-call-tile small { position: absolute; left: 7px; bottom: 5px; font-size: 11.5px; color: var(--cz-ink); }
.cz-call-tile.is-talking { border-color: #8fdc9c; box-shadow: inset 0 0 0 1px #8fdc9c; }
.cz-call.is-on:not(.is-still) .is-talking .cz-call-av { animation: cz-talk 1.4s var(--ease-in-out) infinite alternate; }
@keyframes cz-talk { to { box-shadow: 0 0 0 6px color-mix(in srgb, #8fdc9c 30%, transparent); } }
.cz-call-tile.is-cam-off { background: var(--cz-card); }
.cz-call-bar { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.cz-call-btn { min-height: 44px; border-radius: 999px; background: var(--cz-raise); font-size: 12.5px; font-weight: 500; }
.cz-call-btn[aria-pressed="true"] { background: var(--cz-ink); color: var(--cz-bg); }
.cz-call-btn.is-end { background: #c8553d; color: #fff; }
.cz-view:has(> .cz-call.is-on) { display: flex; flex-direction: column; } .cz-view > .cz-call.is-on { flex: 1; }

/* the reel: a soft ring where the next tap lands (it plays by itself until a visitor touches the page) */
.cz-screen { position: relative; }
.cz-tap { position: absolute; z-index: 5; width: 38px; height: 38px; margin: -19px 0 0 -19px; border-radius: 50%; border: 2px solid var(--cz-gold-hi); background: color-mix(in srgb, var(--cz-gold-hi) 22%, transparent); pointer-events: none; animation: cz-tap .7s var(--ease) 1 both; }
@keyframes cz-tap { 0% { opacity: 0; transform: scale(1.6); } 40% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(.85); } }



/* the film, over the page */
.cz-film { max-width: none; max-height: none; padding: var(--s-3); overflow: hidden; border: 1px solid var(--line-strong); border-radius: var(--r-3); background: var(--bg-raise); color: var(--ink); box-shadow: var(--shadow); }
.cz-film[open] { display: grid; gap: var(--s-2); animation: drop var(--med) var(--ease); }
.cz-film::backdrop { background: var(--shade); }
.cz-film .sheet-top h3 { padding-left: var(--s-2); }
.cz-video { display: block; max-width: none; border-radius: var(--r-2); background: var(--on-photo-shade); }
.cz-film[data-cut="wide"] .cz-video { aspect-ratio: 16 / 9; height: auto; width: min(72rem, 100vw - 2 * var(--gutter) - 2 * var(--s-3) - 2px, (100vh - 8.5rem) * 16 / 9); width: min(72rem, 100vw - 2 * var(--gutter) - 2 * var(--s-3) - 2px, (100dvh - 8.5rem) * 16 / 9); }
.cz-film[data-cut="tall"] .cz-video { aspect-ratio: 9 / 16; width: auto; height: min(100vh - 8.5rem, (100vw - 2 * var(--gutter) - 2 * var(--s-3) - 2px) * 16 / 9); height: min(100dvh - 8.5rem, (100vw - 2 * var(--gutter) - 2 * var(--s-3) - 2px) * 16 / 9); }

/* request an invite */
.cz-form { display: grid; gap: var(--s-3); }
.cz-field { display: grid; gap: .3rem; font-size: var(--t-small); color: var(--ink-2); }
.cz-field input { width: 100%; min-height: var(--tap); padding: 0 .9rem; border-radius: var(--r-2); border: 1px solid var(--line-strong); background: var(--bg); color: var(--ink); font: inherit; font-size: 1rem; }
.cz-field input:focus-visible { outline-offset: 1px; }
.cz-hp { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; opacity: 0; clip-path: inset(50%); pointer-events: none; }
.cz-send { display: flex; align-items: center; gap: var(--s-3); min-height: var(--tap); }
.cz-send .btn { flex: none; min-width: 7rem; }
.cz-send .btn[disabled] { opacity: .55; cursor: default; }
.cz-status { display: grid; gap: .1rem; min-width: 0; font-size: var(--t-small); color: var(--ink-2); }
.cz-status-label { color: var(--ink); font-weight: 500; }
.cz-sent { padding: var(--s-4) 0 var(--s-5); font-family: var(--font-title); font-size: var(--t-title); letter-spacing: -.02em; }


/* phones: the chooser, the phone, then the film and the way in in a row of their own.
   11-16 UX round: the chooser is two rows of six small tiles (a picture and one word), so the miniature gets about 60 %
   of the screen; nothing below the phone but the three buttons, which nothing covers. */
@media (max-width: 720px) {
  .cz { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto; gap: .5rem; align-items: stretch; }
  .cz-side { display: contents; }
  .cz-pick { grid-row: 1; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: .25rem; }
  .cz-thing { min-height: var(--tap); padding: .2rem 0 .15rem; gap: .1rem; border-radius: var(--r-1); font-size: .6875rem; line-height: 1.1; --ls: -.01em; }
  .cz-long { display: none; }
  .cz-short { display: block; }
  .cz-pic { width: 1.6rem; height: 1rem; }
  .cz-stage { grid-row: 2; }
  .cz-ways { grid-row: 3; flex-wrap: nowrap; gap: .4rem; }
  .cz-way { flex: 1 1 auto; min-width: 0; padding: 0 .4rem; gap: .3rem; }
  .cz-qr { display: none; }
  .cz-phone { aspect-ratio: auto; width: 100%; max-height: none; padding: 0; border-radius: var(--r-3); }
  .cz-screen { border-radius: inherit; }
  .cz-top { min-height: 50px; padding: 3px 8px 3px 12px; }
  .cz-box { display: none; }      /* the room goes to the chat */
  .sheet.cz-invite { inset: 0 0 auto 0; padding-top: calc(var(--s-4) + var(--safe-t)); padding-bottom: var(--s-4); border-top: 0; border-bottom: 1px solid var(--line-strong); border-radius: 0 0 var(--r-3) var(--r-3); }
  .sheet.cz-invite[open] { animation: drop var(--med) var(--ease); }
}
/* a phone on its side (short and wide): two columns that fit the screen, the chooser small, the phone as a wide panel
   that scrolls inside itself, no code. Anything shorter or narrower still: the frame lets the page's own area scroll. */
@media (max-height: 520px) and (orientation: landscape) and (min-width: 600px) {
  .cz { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); gap: .5rem var(--s-5); align-items: stretch; }
  .cz-side { display: grid; grid-row: auto; align-content: center; gap: .5rem; max-width: none; }
  .cz-pick { grid-row: auto; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: .3rem; }
  .cz-thing { min-height: 44px; padding: .15rem .1rem; gap: 0; font-size: .6875rem; line-height: 1.12; }
  .cz-thing span { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; text-align: center; }
  .cz-thing .cz-short { display: none; } .cz-thing .cz-long { display: -webkit-box; }
  .cz-pic { width: 1.9rem; height: 1.1rem; }
  .cz-stage { grid-row: auto; }
  .cz-ways { grid-row: auto; flex-wrap: nowrap; gap: .4rem; }
  .cz-way { flex: 1 1 auto; min-width: 0; padding: 0 .4rem; gap: .3rem; }
  .cz-qr { display: none; }
  .cz-phone { aspect-ratio: auto; width: 100%; height: 100%; max-height: none; padding: 0; border-radius: var(--r-3); transform: none !important; }
  .cz-screen { border-radius: inherit; }
  .cz-top { min-height: 48px; padding: 2px 8px 2px 12px; }
  .cz-box { display: none; }
}
@media (max-height: 520px) and (not ((orientation: landscape) and (min-width: 600px))) { .cz { position: relative; inset: auto; min-height: 31rem; } }
/* a short phone (Safari's bars on a small iPhone): the chooser's pictures give their room to the miniature */
@media (max-width: 720px) and (max-height: 600px) and (orientation: portrait) {
  .cz-pic { display: none; }
  .cz-thing { min-height: 44px; }
}
@media (forced-colors: active) { .cz-thing, .cz-phone { border: 1px solid CanvasText; } }
/* QA 11-16: on a wide screen the chooser starts at the top of the page, beside the phone (no empty band over it) */
@media (min-width: 721px) { .cz-side { align-self: start; padding-top: var(--s-2); } }
@media (min-width: 721px) and (max-height: 520px) { .cz-side { align-self: auto; padding-top: 0; } }

/* ---- scene-shelf.css */
/* rohin.me - page 8, "DVD / VHS": a bookcase of titles held on disc or tape (js/scenes/shelf.js; on a wide screen the
   wall of js/scarecrow-wall.js, as on Scarecrow; on a phone js/shelf-flat.js).
   One screen. Wide (as on Scarecrow): the wall and its strip on the left, a column on the right with the search, the
   count and the filters open (css/shelves.css). Tablets upright: the tools above the shelf, the filters under it. Phones:
   one column, the filters in a sheet. One title's card stands beside the shelf on wide screens and under it otherwise.
   Colours: tokens only. The six type colours are named here once and read by the 3D code too. */
:root {
  --shelf-doc: var(--c-sea);
  --shelf-docs: var(--c-sky);
  --shelf-film: var(--c-yard);
  --shelf-tv: color-mix(in srgb, var(--c-warn) 58%, var(--c-sky));
  --shelf-sfilm: var(--accent);
  --shelf-sdoc: var(--c-quiet);
}
.sf-ty-doc { --ty: var(--shelf-doc); } .sf-ty-docs { --ty: var(--shelf-docs); } .sf-ty-film { --ty: var(--shelf-film); }
.sf-ty-tv { --ty: var(--shelf-tv); } .sf-ty-sfilm { --ty: var(--shelf-sfilm); } .sf-ty-sdoc { --ty: var(--shelf-sdoc); }
.sf-dot { flex: none; width: 9px; height: 9px; border-radius: 2px; background: var(--ty); }

/* a column: the search row, the count row, what is chosen, a kind's periods, the shelf (all that is left), the place along it */
.shelf { position: absolute; inset: 0; display: flex; flex-direction: column; gap: var(--s-2); min-width: 0; }
.shelf > *, .sf-col > * { flex: none; min-width: 0; }
.shelf > .sf-main { flex: 1 1 0; min-height: 0; }
.sf-col { display: contents; }      /* narrower than a desktop its parts stand in the page's column */
.sf-side { order: 9; }              /* an upright tablet: the filters under the shelf */
.shelf[data-panel] .sf-active { display: none; }      /* the open panel itself shows what is chosen */
/* a wide screen, as on Scarecrow: the shelf on the left, its strip under it; the tools and the filters in a column on the right */
@media (min-width: 1001px) {
  .shelf { display: grid; grid-template-columns: minmax(0, 1fr) 23rem; grid-template-rows: minmax(0, 1fr) auto; grid-template-areas: "main col" "rail col"; gap: var(--s-2) var(--s-3); }
  .shelf > .sf-main { grid-area: main; }
  .shelf > .sf-rail, .shelf > .sf-foot { grid-area: rail; }
  .sf-col { grid-area: col; display: flex; flex-direction: column; gap: var(--s-2); min-width: 0; min-height: 0; }
  .sf-col > .sf-side { order: 0; flex: 0 1 auto; min-height: 0; }
  .sf-find .sf-search { flex: 1 1 0; }
}
.sf-stage .sc-hover { z-index: 3; }

/* ---- search, filters */
.sf-find { display: flex; gap: var(--s-2); min-width: 0; }
.sf-find .sf-search { flex: 0 1 24rem; min-width: 0; }
.sf-back span, .sf-filter-btn span { white-space: nowrap; }
/* Filters: the one way to narrow the list, so it stands out from the row it is in (as on the Scarecrow page) */
.sf-filter-btn { border-color: var(--line-strong); font-weight: 600; }
.sf-filter-btn .ico { color: var(--accent); }
.sf-search { display: flex; align-items: center; gap: .55rem; padding: 0 1rem; border-radius: var(--r-pill); box-shadow: inset 0 0 0 1px var(--line); background: var(--glass); color: var(--ink-3); backdrop-filter: blur(var(--blur)); -webkit-backdrop-filter: blur(var(--blur)); transition: box-shadow var(--fast); }
.sf-search:focus-within { box-shadow: inset 0 0 0 1px var(--accent); color: var(--ink-2); }
.sf-q { flex: 1; min-width: 0; height: var(--tap); border: 0; padding: 0; background: none; color: var(--ink); font: inherit; font-size: 1rem; outline: none; appearance: none; -webkit-appearance: none; }
.sf-q::placeholder { color: var(--ink-3); opacity: 1; }
.sf-q::-webkit-search-cancel-button { -webkit-appearance: none; }
.sf-view { flex: none; min-height: var(--tap); padding: 0 1.1rem 0 .85rem; }
.sf-view .ico { color: var(--accent); }
.sf-filters { display: grid; gap: var(--s-2); align-content: start; min-width: 0; }
.sf-filters .chip-btn, .sf-on { display: inline-flex; align-items: center; gap: .45rem; }
.sf-k { font-size: var(--t-tiny); font-weight: 400; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.chip-btn[aria-pressed="true"] .sf-k { color: inherit; }
.sf-filters .chip-btn:disabled, .sf-sheet .sheet-foot .btn:disabled { opacity: .38; cursor: default; }
.sf-filters .chip-btn:disabled:active { transform: none; }
.sf-pick { width: 100%; max-width: 20rem; }
/* what is chosen: chips to take off, one row that scrolls sideways when it must */
.sf-active { display: flex; gap: .35rem; min-width: 0; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; }
.sf-active::-webkit-scrollbar { display: none; }
.sf-active[hidden], .sf-side[hidden] { display: none; }
.sf-on { flex: none; padding-right: .6rem; }
.sf-on .ico { opacity: .7; }
/* wider than a phone the filters stand open (css/shelves.css .shp); the kind's dot keys the list's rows, the decade's spine the shelf */
.sf-more { min-height: var(--tap); max-width: 100%; padding: 0 2rem 0 .85rem; border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--glass); color: var(--ink-2); font: inherit; font-size: var(--t-small); font-weight: 500; }
.sf-more[data-on] { border-color: color-mix(in srgb, var(--accent) 65%, transparent); background: var(--accent-soft); color: var(--ink); }

/* ---- the shelf, the list, the card */
.sf-main { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); gap: var(--s-3); min-width: 0; min-height: 0; }
.shelf[data-open] .sf-main { grid-template-columns: minmax(0, 1fr) minmax(19rem, 23rem); }
.sf-stage { position: relative; min-width: 0; min-height: 0; border-radius: var(--r-2); overflow: hidden; touch-action: none; -webkit-user-select: none; user-select: none; }
.sf-canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: grab; border-radius: var(--r-2); }
.sf-canvas:active { cursor: grabbing; }
.sf-canvas:focus-visible { outline-offset: -3px; }
.sf-tip { position: absolute; z-index: 2; translate: -50% -100%; max-width: 15rem; padding: .3rem .7rem; border-radius: var(--r-1); border: 1px solid var(--line-strong); background: var(--bg-raise); color: var(--ink); font-size: var(--t-tiny); line-height: 1.3; text-align: center; pointer-events: none; box-shadow: var(--shadow); }
.sf-said { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; font-size: var(--t-tiny); }

/* the flat list: every title a spine lying down, its edge in the colour of its type */
.sf-list { position: relative; min-width: 0; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
.sf-sizer { width: 1px; }
.sf-li { position: absolute; height: 44px; }
.sf-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: .7rem; height: 100%; padding: .2rem .8rem .2rem .9rem; border-radius: 4px; border-left: 6px solid var(--ty); background: color-mix(in srgb, var(--ty) 13%, var(--bg-raise)); color: var(--ink); font-size: var(--t-small); line-height: 1.25; transition: background var(--fast); }
.sf-row:hover { background: color-mix(in srgb, var(--ty) 22%, var(--bg-raise)); }
.sf-row[aria-current] { background: color-mix(in srgb, var(--ty) 30%, var(--bg-raise)); box-shadow: inset 0 0 0 1px var(--line-strong); }
.sf-row:focus-visible { outline-offset: -2px; }
.sf-rt { min-width: 0; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; font-weight: 500; }
.sf-ry { color: var(--ink-2); font-variant-numeric: tabular-nums; }

.sf-card { min-width: 0; min-height: 0; display: grid; grid-template-rows: auto auto minmax(0, 1fr); gap: var(--s-2); padding: var(--s-3) var(--s-4) var(--s-3); border-radius: var(--r-2); background: var(--bg-raise); animation: drop var(--med) var(--ease); }
.sf-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s-3); min-width: 0; padding-bottom: 2px; }
.sf-title { min-width: 0; padding-top: .55rem; font-family: var(--font-title); font-size: 1.1875rem; font-weight: 600; line-height: 1.22; letter-spacing: -.012em; overflow-wrap: anywhere; }
.sf-close { flex: none; width: var(--tap); min-height: var(--tap); padding: 0; }
.sf-card-body { min-height: 0; overflow-y: auto; overscroll-behavior: contain; display: grid; gap: var(--s-3); align-content: start; padding-right: .3rem; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
.sf-tags { gap: .35rem; }
.sf-tags .chip { min-height: 2rem; padding: .25rem .75rem; backdrop-filter: none; -webkit-backdrop-filter: none; color: var(--ink); }
.sf-facts { display: grid; gap: 0; font-size: var(--t-small); }
.sf-facts > div { display: grid; grid-template-columns: 5.4rem minmax(0, 1fr); gap: var(--s-3); padding: .42rem 0; border-top: 1px solid var(--line); }
.sf-facts > div:first-child { border-top: 0; padding-top: 0; }
.sf-facts dt { color: var(--ink-3); }
.sf-facts dd { color: var(--ink); overflow-wrap: anywhere; }
.sf-desc { color: var(--ink-2); font-size: var(--t-small); line-height: 1.6; }
.sf-held, .sf-eps { display: grid; gap: .15rem; font-size: var(--t-small); color: var(--ink-2); padding-top: var(--s-2); border-top: 1px solid var(--line); }
.sf-held p { font-size: var(--t-tiny); line-height: 1.5; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.sf-eps-h { margin: .35rem 0 .1rem; font-size: var(--t-tiny); font-weight: 600; color: var(--ink-3); }
.sf-eps-h:first-child { margin-top: 0; }
.sf-eps li { display: grid; grid-template-columns: 2rem minmax(0, 1fr) auto; gap: var(--s-2); padding: .1rem 0; line-height: 1.32; }
.sf-epn, .sf-epy { color: var(--ink-3); font-variant-numeric: tabular-nums; white-space: nowrap; font-size: var(--t-tiny); padding-top: .1rem; }
.sf-card-bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--s-2) var(--s-3); min-width: 0; }
.sf-ask-btn { flex: none; min-width: 6rem; margin-left: auto; }

/* ---- the count, and the place along the shelf */
.sf-foot { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: var(--s-3); min-height: var(--tap); min-width: 0; font-size: var(--t-small); color: var(--ink-2); }
.sf-tally { display: flex; align-items: center; gap: var(--s-3); min-width: 0; }
.sf-count { font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--ink); }
.sf-clear { display: inline-flex; align-items: center; justify-content: center; min-height: var(--tap); min-width: var(--tap); padding: 0 .2rem; border-bottom: 0; text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: .25em; }
.sf-jump { min-height: var(--tap); min-width: 4.6rem; padding: 0 .5rem 0 .8rem; border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--glass); color: var(--ink); font: inherit; font-size: var(--t-small); font-weight: 500; font-variant-numeric: tabular-nums; }
.sf-jump:disabled { opacity: .4; }
.sf-pos { width: 100%; min-width: 0; height: var(--tap); margin: 0; background: none; appearance: none; -webkit-appearance: none; cursor: pointer; }
.sf-pos::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: var(--line-strong); }
.sf-pos::-moz-range-track { height: 4px; border-radius: 2px; background: var(--line-strong); }
.sf-pos::-webkit-slider-thumb { -webkit-appearance: none; width: 34px; height: 14px; margin-top: -5px; border-radius: 7px; border: 0; background: var(--accent); }
.sf-pos::-moz-range-thumb { width: 34px; height: 14px; border-radius: 7px; border: 0; background: var(--accent); }
.sf-pos:disabled { opacity: .35; cursor: default; }
.shelf[data-view="list"] .sf-pos { visibility: hidden; }
.shelf:not([data-mode="section"]) .sf-foot, .shelf[data-wall] .sf-foot { display: none; }      /* the place along the light shelf: only inside a section (the wall has its strip) */
.sf-row-plain { --ty: var(--line-strong); }
.shelf[data-mode="find"]:not([data-wall]) .sf-card { display: none; }
.shelf[data-mode="find"]:not([data-wall]) .sf-main { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); }

/* ---- rarity: words only (11-16 UX round: bars read as a phone's signal): the level tiles above the sections, a word at the end of a row, the word on a card */
.sf-rooms.has-levels { grid-template-rows: auto; }      /* the row of levels takes the height it needs; the section rows share the rest */
.sf-levels { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: var(--s-2) var(--s-3); min-width: 0; }
.sf-level { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: .6rem; min-height: var(--tap); padding: .3rem .8rem; border-radius: var(--r-2); border: 1px solid var(--line-strong); background: var(--glass); color: var(--ink); text-align: left; transition: border-color var(--fast), transform var(--fast) var(--ease); }
.sf-level:hover { border-color: var(--accent); }
.sf-level:active { transform: scale(.985); }
.sf-level-name { font-size: var(--t-small); font-weight: 600; line-height: 1.2; }
.sf-level-n { font-size: var(--t-tiny); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.sf-rare { display: grid; gap: .15rem; }
.sf-rare-mark { display: inline-flex; align-items: center; gap: .5rem; font-size: var(--t-small); font-weight: 600; }
.sf-rare-why { font-size: var(--t-small); color: var(--ink-2); line-height: 1.4; }

/* ---- the sections: a room of small shelves, each with its name */
.sf-rooms { min-width: 0; min-height: 0; overflow-y: auto; overscroll-behavior: contain; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 11.5rem), 1fr)); grid-auto-rows: minmax(5.6rem, 1fr); gap: var(--s-2) var(--s-3); align-content: start; padding: 1px .25rem 1px 1px; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
button.sf-room { width: 100%; font: inherit; text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.sf-room * { pointer-events: none; }      /* the tile itself takes every touch, never a word inside it */
.sf-room { display: grid; grid-template-rows: minmax(2.1rem, 1fr) auto auto; gap: .1rem; min-height: 5.6rem; max-height: 9rem; padding: .55rem .8rem .6rem; border-radius: var(--r-2); border: 1px solid var(--line); background: var(--glass); color: var(--ink); transition: border-color var(--fast), transform var(--fast) var(--ease); }
.sf-room:hover { border-color: var(--line-strong); }
.sf-room:active { transform: scale(.985); }
.sf-room-art { display: flex; align-items: flex-end; gap: 2px; min-height: 0; padding: 0 2px; border-bottom: 3px solid color-mix(in srgb, var(--ink) 26%, var(--bg-raise)); margin-bottom: .35rem; overflow: hidden; }
.sf-room-art i { flex: none; border-radius: 1.5px 1.5px 0 0; background: var(--ty); }
.sf-room-name { font-size: var(--t-small); font-weight: 600; line-height: 1.2; }
.sf-room-when { font-size: var(--t-tiny); color: var(--ink-2); font-variant-numeric: tabular-nums; line-height: 1.3; }

/* ---- the light shelf (js/shelf-flat.js): cases as plain elements in a strip the browser scrolls itself */
.sfc { position: absolute; inset: 0; overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scrollbar-width: none; border-radius: var(--r-2); background: color-mix(in srgb, var(--ink) 7%, var(--bg-sunk)); touch-action: pan-x; }
.sfc::-webkit-scrollbar { display: none; }
.sfc:focus-visible { outline-offset: -3px; }
.sfc-run { position: relative; height: 100%; --wood: color-mix(in srgb, var(--c-yard) 14%, color-mix(in srgb, var(--ink) 20%, var(--bg-raise)));
  background:
    repeating-linear-gradient(to right, color-mix(in srgb, var(--wood) 86%, var(--bg-sunk)) 0 12px, transparent 12px var(--bay, 100%)),
    repeating-linear-gradient(to bottom, color-mix(in srgb, var(--paper-ink) 26%, transparent) 0, transparent 22px, transparent calc(var(--row, 50%) - 14px), var(--wood) calc(var(--row, 50%) - 14px), var(--wood) var(--row, 50%)); }
.sfc-s { position: absolute; height: var(--case); box-sizing: border-box; contain: layout paint style; display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 4px; padding: 7px 0 6px; overflow: hidden; cursor: pointer; border-top: 3px solid var(--paper-ink); border-bottom: 3px solid var(--paper-ink); border-radius: 1.5px;
  background-image: linear-gradient(to right, color-mix(in srgb, var(--paper-ink) 34%, transparent), transparent 22%, transparent 74%, color-mix(in srgb, var(--paper-ink) 38%, transparent)); line-height: 1; font-weight: 600; -webkit-user-select: none; user-select: none; transition: transform var(--med) var(--ease), box-shadow var(--med); }
.sfc-t { flex: 1 1 auto; min-height: 0; writing-mode: vertical-rl; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.sfc-y { flex: none; writing-mode: vertical-rl; font-size: 11px; font-weight: 500; opacity: .82; font-variant-numeric: tabular-nums; }
.sfc-s[data-cursor] { outline: 2px solid var(--accent); outline-offset: 1px; z-index: 2; }
.sfc-s[aria-selected="true"] { transform-origin: 50% 100%; transform: translateY(-3px) scale(1.045); z-index: 3; box-shadow: 0 10px 18px -6px var(--shade), 0 0 0 2px var(--accent); }


/* ---- ask */
.sf-ask-what { color: var(--ink); font-weight: 500; overflow-wrap: anywhere; }
.sf-ask-form { display: grid; gap: var(--s-3); }
.sf-ask-form label { display: grid; gap: .3rem; font-size: var(--t-small); color: var(--ink-2); }
.sf-ask-form input { height: var(--tap); padding: 0 .9rem; border-radius: var(--r-1); border: 1px solid var(--line-strong); background: var(--bg); color: var(--ink); font: inherit; font-size: 1rem; }
.sf-ask-form input:focus-visible { outline-offset: 1px; }
.sf-ask-form input[aria-invalid] { border-color: var(--c-warn); }
.sf-ask-go { display: flex; align-items: center; gap: var(--s-3); min-height: var(--tap); }
.sf-ask-go .btn { min-width: 7rem; }
.sf-ask-msg { font-size: var(--t-small); color: var(--ink-2); }

/* ---- upright tablets and phones: the card goes under the shelf */
@media (max-width: 1000px) {
  .sf-find .sf-search { flex: 1 1 0; }
  .shelf[data-open] .sf-main { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 58fr) minmax(0, 42fr); gap: var(--s-2); }
}
@media (max-width: 720px) {
  .shelf[data-open] .sf-main { grid-template-rows: minmax(0, 46fr) minmax(0, 54fr); }
  .sf-card { padding: var(--s-2) var(--s-3) var(--s-3); }
  .sf-title { font-size: 1.0625rem; }
  .sf-facts > div { padding: .3rem 0; }
  .sf-tags .chip { min-height: 1.75rem; padding: .15rem .55rem; gap: .35rem; font-size: var(--t-tiny); }
  .sf-card-bar { gap: var(--s-2); }
  .sf-ask-btn { min-width: 4.5rem; padding: 0 1rem; }
  .sf-card-body { gap: var(--s-2); }
  .sf-foot { gap: var(--s-2); }
  .sf-back { padding: 0 .8rem 0 .45rem; }      /* "‹ Sections" in words on a phone too: one way back on every page */
  .sf-filter-btn { padding: 0 .8rem 0 .7rem; }
  @media (max-width: 380px) { .sf-back { padding: 0 .6rem 0 .3rem; } .sf-filter-btn .ico { display: none; } .sf-filter-btn { padding: 0 .75rem; } }      /* the narrowest phones: "‹ Sections" and the search both keep room */
  @media (max-width: 340px) { .sf-find:has(.sf-back:not([hidden])) { flex-wrap: wrap; } .sf-find:has(.sf-back:not([hidden])) .sf-search { order: 3; flex: 1 1 100%; } }      /* 320px: in a section the search takes its own row under "‹ Sections" and Filters */
  .sf-count { white-space: normal; line-height: 1.25; font-size: var(--t-tiny); }
  .sf-tally { max-width: 10rem; }
  .sf-levels { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px var(--s-2); }
  .sf-level { padding: .3rem .6rem; gap: .5rem; }
  .sf-level-name { font-size: .8125rem; }
  .sf-rooms { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: auto; gap: 6px var(--s-2); }
  .sf-room { grid-template-columns: 2.6rem minmax(0, 1fr); grid-template-rows: auto auto; align-content: center; column-gap: .6rem; min-height: 3.4rem; max-height: none; padding: .3rem .6rem; }      /* a long name takes a third line, never cut */
  .sf-room-art { grid-row: 1 / 3; align-self: center; height: 2rem; margin: 0; gap: 1px; border-bottom-width: 2px; }
  .sf-room-art i:nth-child(n+8) { display: none; }
  .sf-room-name { align-self: end; font-size: .8125rem; }
  .sf-room-when { align-self: start; }
}

/* r12: the rarity word at the end of a row; the sheet opens on its heading */
.sf-rr { grid-column: 3; font-size: var(--t-tiny); color: var(--ink-2); white-space: nowrap; }      /* its own column, also when a title has no year */
.sf-row .sf-rt { grid-column: 1; } .sf-row .sf-ry { grid-column: 2; }
.sf-sheet .sheet-head h4:focus { outline: none; }
/* r12: on a phone a tile's art is a narrow stack of five spines, so the name and its line (period · count) keep one line each */
@media (max-width: 699px) {
  .sf-room { grid-template-columns: 1.7rem minmax(0, 1fr); column-gap: .55rem; padding: .3rem .55rem; }
  .sf-room-art { padding: 0; }
  .sf-room-art i:nth-child(n+6) { display: none; }
  .sf-room-when { white-space: nowrap; }
}

/* ---- r13: depth. CSS only (no WebGL on the first view); still under reduced motion, which stops every transition here */
/* the sections: each tile's spines stand at an angle on a little shelf, lit from the left; a touch turns them a little */
.sf-room { box-shadow: 0 7px 14px -12px var(--shade); }
.sf-room-art { perspective: 140px; perspective-origin: 20% 30%; }
.sf-room-art i { transform: rotateY(-24deg); transform-origin: 0 100%; transition: transform var(--med) var(--ease);
  background-image: linear-gradient(to right, color-mix(in srgb, var(--bg-raise) 34%, transparent), transparent 40%, color-mix(in srgb, var(--paper-ink) 30%, transparent));
  box-shadow: inset 0 2px 0 color-mix(in srgb, var(--paper-ink) 40%, transparent), 2px 0 3px -1px var(--shade); }
/* the turn is for a mouse only. On a phone a hover rule that moves content makes iOS Safari treat the first tap as a hover
   (its content-change check), so a tap on a tile did nothing (live 11-15). The picture never takes a touch: the tile does. */
.sf-room-art, .sf-room-art i { pointer-events: none; }
@media (hover: hover) and (pointer: fine) { .sf-room:hover .sf-room-art i { transform: rotateY(-8deg); } }
.sf-room-art { border-bottom-color: color-mix(in srgb, var(--ink) 34%, var(--bg-raise)); box-shadow: 0 3px 4px -3px var(--shade); }
/* the light shelf: a lip on every board, the cases cast a little shade on the next, the chosen one is pulled out towards you */
.sfc-run { background:
    repeating-linear-gradient(to right, color-mix(in srgb, var(--wood) 86%, var(--bg-sunk)) 0 12px, transparent 12px var(--bay, 100%)),
    repeating-linear-gradient(to bottom, color-mix(in srgb, var(--paper-ink) 34%, transparent) 0, transparent 26px, transparent calc(var(--row, 50%) - 22px), color-mix(in srgb, var(--paper-ink) 18%, transparent) calc(var(--row, 50%) - 14px), color-mix(in srgb, var(--bg-raise) 32%, var(--wood)) calc(var(--row, 50%) - 14px), color-mix(in srgb, var(--bg-raise) 32%, var(--wood)) calc(var(--row, 50%) - 11px), var(--wood) calc(var(--row, 50%) - 11px), color-mix(in srgb, var(--paper-ink) 22%, var(--wood)) var(--row, 50%)); }
.sfc-s { contain: layout style; box-shadow: 3px 0 4px -2px var(--shade); }
.sfc-s[aria-selected="true"] { transform-origin: 50% 100%; transform: perspective(520px) translate3d(0, 0, 22px) rotateY(-20deg); box-shadow: 0 0 0 2px var(--accent), 10px 14px 20px -8px var(--shade); }
/* the card comes out like a case taken off the shelf: it turns towards you as it opens */
.shelf[data-view="shelf"] .sf-card.sf-pulled { transform-origin: 0 50%; animation: sf-pull .26s var(--ease); }
@keyframes sf-pull { from { opacity: 0; transform: perspective(900px) rotateY(12deg) translate3d(0, 6px, -24px); } }      /* it turns in from behind, so it is never wider than its box on the way */
/* its case: a spine in the kind's colour with a side and a top, as thick as the shelf draws it */
.sf-card-head { justify-content: flex-start; }
.sf-card-head .sf-close { margin-left: auto; }
.sf-case { flex: none; position: relative; width: var(--cw, 9px); height: 2.6rem; margin: .35rem .5rem 0 .1rem; border-radius: 1.5px; background: var(--ty);
  background-image: linear-gradient(to right, color-mix(in srgb, var(--bg-raise) 30%, transparent), transparent 45%, color-mix(in srgb, var(--paper-ink) 30%, transparent));
  box-shadow: inset 0 2px 0 color-mix(in srgb, var(--paper-ink) 45%, transparent), inset 0 -2px 0 color-mix(in srgb, var(--paper-ink) 45%, transparent), 3px 4px 6px -3px var(--shade); }
.sf-case::after { content: ''; position: absolute; top: 0; left: 100%; width: .55rem; height: 100%; transform-origin: 0 0; transform: skewY(-38deg); border-radius: 0 1.5px 1.5px 0; background: color-mix(in srgb, var(--ty) 62%, var(--paper-ink)); }
/* the jump names a level when sorted by rarity ("Not for sale"): on a small phone it gives way so the slider keeps 44 px */
@media (max-width: 420px) { .sf-jump { max-width: 8.5rem; text-overflow: ellipsis; } .sf-pos { min-width: 48px; } .sf-tally { max-width: 8.5rem; } }
/* not streaming: the same mark as Scarecrow's card */
.sf-flag { justify-self: start; display: inline-flex; align-items: center; gap: .45rem; margin: 0; padding: .25rem .75rem; border-radius: var(--r-pill); border: 1px solid var(--line-strong); font-size: var(--t-tiny); font-weight: 500; color: var(--ink); }
.sf-flag::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--c-good); }
@media (max-width: 699px) { .sf-level[data-level="0"] { grid-column: 1 / -1; } }

/* 15 Nov (live): on a touch screen no 3D at all. iPhone Safari still missed taps on the section and level tiles after the
   hover fix, and composited 3D layers (perspective, rotateY, translate3d) are the one thing left that only it treats
   differently. The look stays (the spines lean in 2D, the chosen case lifts, the card rises). */
@keyframes sf-rise { from { opacity: 0; transform: translateY(8px); } }
@media (hover: none), (pointer: coarse) {
  .sf-room-art { perspective: none; }
  .sf-room-art i { transform: skewY(-7deg); transition: none; }
  .sfc-s[aria-selected="true"] { transform: translateY(-6px); }
  .shelf[data-view="shelf"] .sf-card.sf-pulled { animation: sf-rise .22s var(--ease); }
}

/* ---- 11-16 (UX round): the count at the top with Random (as on Scarecrow), one tile per kind and its periods inside,
   "Ask to watch" in the title row, and the Ask sheet's picker */
.sf-bar { display: flex; align-items: center; gap: var(--s-2); min-height: var(--tap); }
.sf-bar .sf-tally { flex: 1 1 auto; max-width: none; }
.sf-bar .sf-view .ico { color: var(--accent); }
.sf-bar .pick[hidden] { display: none; }
.sf-count { font-size: var(--t-small); color: var(--ink-2); }
.sf-periods { display: flex; gap: .35rem; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; }
.sf-periods::-webkit-scrollbar { display: none; }
.sf-periods[hidden] { display: none; }
.sf-period { flex: none; }
.sf-ask-top { flex: none; min-height: var(--tap); padding: 0 1.1rem; white-space: nowrap; }
.sf-ask-row { display: flex; align-items: baseline; gap: var(--s-3); min-width: 0; }
.sf-ask-row .sf-ask-what { flex: 1 1 auto; min-width: 0; }
.sf-ask-what[hidden] { display: none; }
.sf-ask-change { flex: none; display: inline-flex; align-items: center; min-height: var(--tap); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: .25em; }
.sf-ask-change[hidden] { display: none; }
.sf-ask-pick { display: grid; gap: var(--s-2); }
.sf-ask-pick[hidden] { display: none; }
.sf-ask-find { display: flex; gap: var(--s-2); min-width: 0; }
.sf-ask-find .sf-search { flex: 1 1 0; min-width: 0; }
.sf-ask-hits { display: grid; gap: 2px; }
.sf-ask-hit { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: var(--s-3); min-height: var(--tap); padding: .25rem .8rem; border-radius: var(--r-1); color: var(--ink); font-size: var(--t-small); text-align: left; background: color-mix(in srgb, var(--ink) 4%, transparent); }
.sf-ask-hit:hover { background: color-mix(in srgb, var(--ink) 9%, transparent); }
.sf-ask-hit span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sf-ask-none { font-size: var(--t-small); color: var(--ink-2); }
.sf-ask .btn[disabled] { opacity: .45; cursor: default; }
@media (max-width: 720px) {
  .sf-bar .pick { padding: 0 .8rem; }
  .sf-ask-top { padding: 0 .9rem; }
}
.sf-rooms { grid-auto-rows: minmax(5.6rem, 9rem); }      /* twelve tiles now (one per kind): rows grow to a tile's height, not to the page's */
@media (max-width: 720px) { .sf-rooms { grid-auto-rows: auto; } }
/* a short phone (320 x 568) with a title open: the shelf's slider, the jump and the period row give their room to the
   card, so its Ask bar never lies over the slider (11-16, the shell's test at "se"); the shelf keeps a strip of cases */
@media (max-width: 720px) and (max-height: 640px) {
  .shelf[data-open] .sf-foot, .shelf[data-open] .sf-periods { display: none; }
  .shelf[data-open] .sf-main { grid-template-rows: minmax(0, 34fr) minmax(0, 66fr); }
}
.sf-card { overflow: hidden; }      /* the body scrolls inside; nothing of the card spills over what is under it */

/* ---- shelves.css */
/* rohin.me - what the two shelf pages share (js/shelves.js): Scarecrow (.sc-*) and DVD / VHS (.sf-*).
   The filter panel: wider than a phone it stands open beside the shelf, every group as small chips (Format and Decade
   carry the spine's shape and colour, so the panel is also the key); on a phone the same chips sit in a sheet. Small to
   look at; on a touch screen each chip still takes a 44 px touch (the pill is drawn inside it). Tokens only. */
.shp { min-width: 0; min-height: 0; display: grid; grid-template-rows: minmax(0, 1fr); padding: .6rem .7rem .7rem; border-radius: var(--r-3); border: 1px solid var(--line); background: var(--glass); backdrop-filter: blur(var(--blur)); -webkit-backdrop-filter: blur(var(--blur)); overflow: hidden; }
.shp[hidden] { display: none; }
/* Clear: beside the count while something is chosen (the panel itself has no head: every pixel goes to the chips) */
.shp-clear[hidden] { display: none; }
/* the groups: a small label over its chips; the box scrolls inside itself only if a short screen needs it */
.shp > :last-child { min-height: 0; overflow-y: auto; overscroll-behavior: contain; display: grid; gap: .45rem; align-content: start; padding: 1px; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
.shp .sc-group, .shp .chip-group { display: grid; grid-template-columns: minmax(0, 1fr); gap: .25rem; align-items: start; min-width: 0; }
.shp .sc-label, .shp .chip-label { padding-top: 0; font-size: .6875rem; font-weight: 500; line-height: 1.2; letter-spacing: .02em; color: var(--ink-3); }
.shp .sc-chips, .shp .chip-row { display: flex; flex-wrap: wrap; gap: .25rem; min-width: 0; }
.shp .sc-chip, .shp .chip-btn { display: inline-flex; align-items: center; gap: .3rem; min-height: 1.625rem; padding: 0 .5rem; font-size: var(--t-tiny); line-height: 1; }
.shp .sc-chip-n, .shp .sf-k { font-size: .6875rem; font-weight: 400; color: var(--ink-3); }
.shp [aria-pressed="true"] .sc-chip-n, .shp [aria-pressed="true"] .sf-k { color: var(--ink-2); }
.shp .sc-chip .sc-spine, .shp .chip-btn .sc-spine { width: calc(var(--w, 1) * 6px); height: calc(var(--h, 1) * 16px); border-radius: 1.5px; }
.shp .sc-select, .shp .sf-more { width: 100%; max-width: none; min-height: 0; height: 1.875rem; padding: 0 1.6rem 0 .6rem; border-radius: var(--r-1); font-size: var(--t-tiny); }
/* two menus side by side (they name themselves: "All sections"); groups that share a row (Sort, Verified) */
.shp-pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .5rem; min-width: 0; }
.shp .shp-pair .sc-label, .shp .shp-pair .chip-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.shp-row { display: flex; flex-wrap: wrap; align-items: start; gap: .5rem .9rem; min-width: 0; }
.shp-row > * { min-width: 0; }
.shp-row > [data-filter="country"] { flex: 1 1 8rem; }
.sc-sheet-body .shp-pair, .sheet-body .shp-pair, .sc-sheet-body .shp-row, .sheet-body .shp-row { display: contents; }      /* in the sheet: one group under the other, as before */

/* a touch screen (a tablet with the panel open): the chip is 44 px to the finger, the pill inside it stays small */
@media (pointer: coarse) {
  .shp .sc-chips, .shp .chip-row { gap: 0 .25rem; }
  .shp .sc-chip, .shp .chip-btn { position: relative; z-index: 0; min-height: var(--tap); min-width: var(--tap); justify-content: center; border-color: transparent; background: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .shp .sc-chip::before, .shp .chip-btn::before { content: ''; position: absolute; inset: .45rem 0; z-index: -1; border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--glass); transition: border-color var(--fast), background var(--fast); }
  .shp .sc-chip[aria-pressed="true"], .shp .chip-btn[aria-pressed="true"] { border-color: transparent; background: none; }
  .shp .sc-chip[aria-pressed="true"]::before, .shp .chip-btn[aria-pressed="true"]::before { border-color: color-mix(in srgb, var(--accent) 65%, transparent); background: var(--accent-soft); }
  .shp .sc-select, .shp .sf-more { min-height: var(--tap); height: var(--tap); }
  .shp .sc-group, .shp .chip-group { gap: 0; }
  .shp > :last-child { gap: .35rem; }
}
@media (prefers-reduced-motion: reduce) { .shp .sc-chip::before, .shp .chip-btn::before { transition: none; } }

/* ---- scene-signals.css */
/* rohin.me - "Signals": a dome of sky over the antenna (js/scenes/signals.js, js/signals-dome.js, js/signals-model.js).
   One screen, top to bottom: the lead (the rarest thing heard), the dome, the dial (eleven bands in the order they
   lie on the dial: two rows on a phone, one row above 720 px), one line that reads the band in focus, the time strip.
   One band's detail stands beside the dome on wide screens ([data-wide], 1200 px of page or more) and is a sheet
   otherwise. Without WebGL the dial becomes a ruled list. Colours: tokens only; a band's colour is --tone. */
.sig { position: absolute; inset: 0; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto auto auto; gap: var(--s-2); min-width: 0; }
.sig-side { display: none; }

/* ---- the lead */
.sig-lead { display: flex; align-items: baseline; gap: .6rem; min-height: var(--tap); min-width: 0; padding: 0 .1rem; text-align: left; color: var(--ink); }
.sig-lead::before { content: ''; align-self: center; flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px var(--accent-soft); margin: 0 .3rem 0 .25rem; }
.sig-lead-what { font-family: var(--font-title); font-size: 1.125rem; font-weight: 600; line-height: 1.2; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sig-lead-when { flex: none; font-size: var(--t-small); color: var(--ink-2); font-variant-numeric: tabular-nums; }

/* ---- the dome */
.sig-stage { position: relative; min-width: 0; min-height: 0; overflow: hidden; touch-action: none; -webkit-user-select: none; user-select: none; }
.sig-canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: grab; }
.sig-canvas:active { cursor: grabbing; }
.sig-canvas:focus { outline: none; }      /* focused by a click only (js/hands.js focusOnPress), so the arrow keys turn the dome */
.sig-tags { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: hidden; }
.sig-tick { position: absolute; left: 0; top: 0; font-size: .6875rem; line-height: 1; color: var(--ink-3); white-space: nowrap; font-variant-numeric: tabular-nums; }
.sig-compass { color: var(--ink-2); font-weight: 600; font-size: var(--t-tiny); }
.sig-compass, .sig-town { transition: opacity var(--med); } .sig-compass.is-under { opacity: .12; }
.sig-town { color: var(--ink-3); font-size: .6875rem; letter-spacing: .02em; } .sig-town.is-under { opacity: 0; } .sig-town[hidden] { display: none; }      /* a few towns on the land under the dome */
.sig-city { color: var(--ink-2); font-weight: 650; }      /* Seattle: always shown, a touch bolder (js/signals-dome.js) */
.sig-ctl { right: 2px; top: 2px; }      /* the control stack (js/hands.js viewStack): + - tilt, and home where "Whole sky" was */
.sig-credit { position: absolute; left: 2px; bottom: 2px; z-index: 1; margin: 0; font-size: .6875rem; line-height: 1; color: var(--ink-3); opacity: .8; pointer-events: none; white-space: nowrap; }      /* the stars' catalogue (js/signals-stars.js) */
.sig-pick { position: absolute; left: 0; top: 0; z-index: 2; margin: 0; padding: .3rem .65rem; border-radius: var(--r-pill); border: 1px solid var(--line-strong); background: var(--bg-raise); color: var(--ink); font-size: var(--t-tiny); line-height: 1.3; white-space: nowrap; pointer-events: none; box-shadow: var(--shadow); max-width: calc(100% - 8px); overflow: hidden; text-overflow: ellipsis; }

/* ---- the dial */
.sig-bands { display: grid; grid-template-columns: repeat(11, minmax(0, 1fr)); gap: 0 4px; min-width: 0; }
.sig-band { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; row-gap: 1px; min-height: var(--tap); padding: .5rem .1rem .3rem; text-align: left; color: var(--ink-3); font-size: .6875rem; line-height: 1.25; min-width: 0; border-radius: 0 0 var(--r-1) var(--r-1); transition: background var(--fast); }
.sig-band:hover { background: color-mix(in srgb, var(--ink) 5%, transparent); }
.sig-band[aria-pressed="true"], .sig-band[data-focus] { background: var(--accent-soft); }
.sig-key { position: absolute; left: 0; right: 0; top: 0; height: 3px; border-radius: 3px; background: var(--c-quiet); opacity: .35; transform-origin: 50% 0; transition: transform var(--slow) var(--ease), opacity var(--med); }
.sig-band[data-lit] .sig-key, .sig-card .sig-key { background: var(--tone); opacity: 1; }
.sig-band.heard .sig-key { transform: scaleY(3); transition-duration: var(--fast); }      /* a pulse was just drawn for this band */
.sig-l1, .sig-l2 { display: contents; }
.sig-name { color: var(--ink-2); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sig-band[data-lit] .sig-name { color: var(--ink); }
.sig-full, .sig-count, .sig-state, .sig-last { display: none; }
.sig-word { color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }      /* what the band brings, in a word (its MHz are in its sheet) */
.sig-band[data-lit] .sig-word { color: var(--ink-2); }
.sig-read { margin: 0; min-height: 1.35em; font-size: var(--t-tiny); line-height: 1.35; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }

/* ---- time: the site's one time control (js/timestrip.js, css/timestrip.css): Live · ▶ · the hours as bars */
.sig-strip { min-width: 0; }

/* ---- one band (beside the dome, or in the sheet) and the latest sentences */
.sig-card { display: grid; gap: var(--s-3); align-content: start; min-width: 0; }
.sig-side-top { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); margin-bottom: var(--s-2); }
.sig-side-title, .sig-sheet-title { font-family: var(--font-title); font-size: 1.125rem; font-weight: 600; color: var(--ink); }
.sig-what { display: flex; align-items: center; gap: .5rem; font-size: var(--t-small); color: var(--ink-2); }
.sig-what .sig-key { position: static; flex: none; width: 4px; height: 1rem; }
.sig-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(6.5rem, 1fr)); gap: var(--s-2) var(--s-3); margin: 0; }
.sig-facts div { display: grid; gap: 1px; padding-top: .35rem; border-top: 1px solid var(--line); min-width: 0; }
.sig-facts dt { font-size: var(--t-tiny); color: var(--ink-3); }
.sig-facts dd { margin: 0; font-size: 1rem; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
/* pictures from space (the Satellite band, 2026-11-15): small buttons in a row; the pressed one fills the card */
.sig-pics-wrap { display: grid; gap: var(--s-2); min-width: 0; }
.sig-pics { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: var(--s-2); min-width: 0; }
.sig-pic { display: grid; gap: 2px; min-height: var(--tap); padding: 0; border: 1px solid var(--line); border-radius: var(--r-2); background: var(--bg-sunk); color: var(--ink-3); font: inherit; cursor: pointer; overflow: hidden; text-align: center; }
.sig-pic img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--bg-sunk); }
.sig-pic time { font-size: var(--t-tiny); padding: 0 4px 4px; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sig-pic[aria-pressed="true"] { grid-column: 1 / -1; border-color: var(--line-strong); }
.sig-pic[aria-pressed="true"] img { aspect-ratio: auto; object-fit: contain; max-height: 22rem; }
.sig-pic:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* From space (js/signals-space.js, 11-19): GOES-West with its hours, the house's Meteor pictures, SatNOGS neighbours */
.sp { display: grid; gap: var(--s-2); min-width: 0; }
.sp .side-title { margin: var(--s-2) 0 0; }
.sp-goes { display: grid; gap: var(--s-1); margin: 0; min-width: 0; }
.sp-frame { position: relative; aspect-ratio: 1 / 1; border-radius: var(--r-2); overflow: hidden; background: var(--bg-sunk); border: 1px solid var(--line); }
.sp-frame img { display: block; width: 100%; height: 100%; object-fit: cover; }
.sp-bar { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: var(--s-1) var(--s-2); min-width: 0; }
.sp-play { min-width: var(--tap); min-height: var(--tap); padding: 0; display: inline-grid; place-items: center; }
.sp-scrub { width: 100%; min-width: 0; margin: 0; accent-color: var(--accent); height: var(--tap); }
.sp-time { grid-column: 1 / -1; font-size: var(--t-tiny); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.sp-credit { margin: 0; font-size: var(--t-tiny); color: var(--ink-3); }
.sp-credit a, .sp-src { color: inherit; text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 2px; }
.sp-pics .sig-pic[aria-pressed="true"] img { max-height: none; }      /* a Meteor pass is a tall strip: shown whole, the sheet scrolls */
.sp-near { display: grid; gap: var(--s-2); margin: 0; padding: 0; list-style: none; min-width: 0; }
.sp-near li { display: grid; gap: 4px; min-width: 0; }
.sp-src { font-size: var(--t-tiny); color: var(--ink-3); overflow-wrap: anywhere; }
.sp-teaser { display: grid; grid-template-columns: 3.4rem minmax(0, 1fr); align-items: center; gap: var(--s-2); width: 100%; margin-top: var(--s-2); padding: 4px; border: 1px solid var(--line); border-radius: var(--r-2); background: var(--bg-sunk); color: var(--ink-2); font: inherit; font-size: var(--t-small); text-align: left; cursor: pointer; }
.sp-teaser img { width: 3.4rem; height: 3.4rem; object-fit: cover; border-radius: calc(var(--r-2) - 2px); display: block; }
.sp-teaser:hover { border-color: var(--line-strong); color: var(--ink); }
.sp-teaser:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sig-items { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.sig-items li { display: grid; grid-template-columns: 3.2rem minmax(0, 1fr); column-gap: .6rem; padding: .4rem 0; border-top: 1px solid var(--line); font-size: var(--t-small); line-height: 1.4; color: var(--ink); }
.sig-items time { grid-row: 1 / span 2; font-size: var(--t-tiny); color: var(--ink-3); padding-top: .15em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.sig-items b { font-weight: 500; font-size: var(--t-tiny); color: var(--ink-2); }
.sig-items span { grid-column: 2; overflow-wrap: anywhere; }
.sig-none { font-size: var(--t-small); color: var(--ink-3); }
.sig-chart .chart { margin-top: var(--s-1); }
.sig-detail { min-width: 0; }
.sig-sheet .sig-detail { padding-bottom: var(--s-2); }

/* ---- wide: the detail beside the dome; a cell has room for its count */
.sig[data-wide] { grid-template-columns: minmax(0, 1fr) minmax(18rem, 21.5rem); column-gap: var(--s-5); }
.sig[data-wide] > :not(.sig-side):not(dialog) { grid-column: 1; }
.sig[data-wide] .sig-side { display: block; grid-column: 2; grid-row: 1 / 6; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 0 var(--s-2) var(--s-3) var(--s-4); border-left: 1px solid var(--line); }
.sig[data-wide] .sig-band { font-size: var(--t-tiny); padding-top: .6rem; }
.sig[data-wide] .sig-count { display: block; color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---- a phone: the dial in two rows */
@media (max-width: 720px) {
  .sig-bands { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px 4px; }
}

/* ---- no WebGL: the same bands as a ruled list, each with the last thing it heard */
.sig.is-flat { grid-template-rows: auto minmax(0, 1fr) auto; }
.sig.is-flat .sig-stage, .sig.is-flat .sig-read, .sig.is-flat .ts-play { display: none; }
.sig.is-flat .sig-bands { grid-template-columns: minmax(0, 1fr); align-content: start; overflow-y: auto; overscroll-behavior: contain; min-height: 0; gap: 0; }
.sig.is-flat .sig-band { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "key l1" "key l2" "key last"; column-gap: .5rem; border-top: 1px solid var(--line); border-radius: 0; min-height: var(--tap); padding: .45rem .25rem .45rem .1rem; font-size: var(--t-tiny); }
.sig.is-flat .sig-key { position: static; grid-area: key; align-self: center; width: 4px; height: 1.6rem; }
.sig.is-flat .sig-l1, .sig.is-flat .sig-l2 { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; min-width: 0; }
.sig.is-flat .sig-l1 { grid-area: l1; } .sig.is-flat .sig-l2 { grid-area: l2; }
.sig.is-flat .sig-short { display: none; }
.sig.is-flat .sig-full, .sig.is-flat .sig-count, .sig.is-flat .sig-state { display: inline; }
.sig.is-flat .sig-name { color: var(--ink); font-size: .8125rem; }
.sig.is-flat .sig-count { color: var(--ink); white-space: nowrap; }
.sig.is-flat .sig-state { color: var(--ink-2); white-space: nowrap; }
.sig.is-flat .sig-last { grid-area: last; display: block; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sig.is-flat .sig-last:empty { display: none; }
.sig.is-flat[data-wide] .sig-side { grid-row: 1 / 4; }

/* the house's own gadgets: the hours a band was heard in (no counts) */
.sig-heard { display: grid; grid-template-columns: repeat(24, minmax(0, 1fr)); gap: 2px; height: 14px; margin-top: .4rem; }
.sig-heard i { border-radius: 2px; background: color-mix(in srgb, var(--ink) 9%, transparent); }
.sig-heard i.on { background: var(--tone); }
.sig-heard i.none { background: none; border-bottom: 1px dashed var(--line-strong); }
.sig-heard-ticks { display: flex; justify-content: space-between; margin-top: .3rem; font-size: var(--t-tiny); color: var(--ink-3); font-variant-numeric: tabular-nums; }

/* a phone: the band's sheet takes the lower part of the screen only, over a light shade, so the dome above it shows
   what the band brings in (Marine: every vessel that fits) */
@media (max-width: 720px) {
  .sig-sheet { max-height: 46vh; max-height: 46dvh; }
  .sig-sheet::backdrop { background: color-mix(in srgb, var(--shade) 35%, transparent); }
}

/* listening (js/signals-listen.js): one Listen button beside the lead (a now-playing bar while sound plays) and its picker */
.sig-top { display: flex; align-items: center; gap: var(--s-2); min-width: 0; }
.sig-top .sig-lead { flex: 1 1 auto; }
.sig-listen-ctl { flex: none; display: flex; }
.sig-listen { min-height: var(--tap); padding: 0 1rem 0 .8rem; gap: .45rem; border-radius: 999px; background: color-mix(in srgb, var(--c-sky) 14%, var(--bg-raise)); color: var(--ink); border: 1px solid color-mix(in srgb, var(--c-sky) 35%, transparent); font-weight: 600; }
.sig-listen[data-quiet] { background: transparent; border-color: var(--line); color: var(--ink-2); font-weight: 500; }
.sig-listen[hidden], .sig-np[hidden] { display: none; }
.sig-np { display: flex; align-items: center; gap: .5rem; min-height: var(--tap); padding: 0 .2rem 0 .8rem; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--c-sky) 35%, transparent); background: color-mix(in srgb, var(--c-sky) 14%, var(--bg-raise)); }
.sig-np-name { min-height: var(--tap); font-size: var(--t-small); font-weight: 600; color: var(--ink); max-width: 9.5rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sig-np-stop { min-width: var(--tap); min-height: var(--tap); padding: 0; justify-content: center; border-radius: 50%; }
.sig-meter { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; width: 22px; color: var(--c-sky); }
.sig-meter i { flex: 1; height: calc(3px + 11px * var(--k, 0)); border-radius: 1px; background: currentColor; opacity: .35; transition: height .9s ease; }
.sig-meter[data-on] i { opacity: .9; }
.sig-chans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--s-3); margin: 0 0 var(--s-2); }
.sig-chan { display: flex; align-items: center; gap: .45rem; min-height: var(--tap); min-width: 0; padding: 0 .1rem; border-top: 1px solid var(--line); text-align: left; color: var(--ink); font-size: var(--t-small); }
.sig-chan span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sig-chan:nth-child(-n+2) { border-top: 0; }
.sig-chan:disabled { color: var(--ink-3); opacity: .7; } .sig-chan:disabled svg { color: var(--ink-3); }
.sig-chan svg { color: var(--c-sky); flex: none; }
.sig-chan[aria-pressed="true"] { font-weight: 650; }
.sig-soon { margin: 0 0 var(--s-1); color: var(--ink-2); font-size: var(--t-small); font-weight: 600; }
.sig-day { margin: var(--s-2) 0 0; font-size: var(--t-tiny); font-weight: 600; color: var(--ink-3); }
.sig-nosound { color: var(--ink-3); font-size: var(--t-small); margin: var(--s-1) 0 var(--s-2); }
.sig-heard-list { list-style: none; margin: 0; padding: 0; display: grid; }
.sig-heard-list li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "t b p" "x x p"; column-gap: var(--s-2); align-items: center; padding: .35rem 0; border-top: 1px solid var(--line); font-size: var(--t-small); }
.sig-heard-list time { grid-area: t; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.sig-heard-band { grid-area: b; color: var(--ink-3); }
.sig-heard-text { grid-area: x; color: var(--ink); overflow-wrap: anywhere; }
.sig-heard-play, .sig-heard-none { grid-area: p; min-width: var(--tap); min-height: var(--tap); padding: 0; justify-content: center; }
@media (prefers-reduced-motion: reduce) { .sig-meter i { transition: none; } }

/* the Listen popover (15 Nov: "the listen function covers all the other things"): under the button, inside the picture,
   at most about 40% of it; the bands and the timeline stay in view */
.sig-pop { position: absolute; z-index: 4; top: 4px; right: 2px; width: min(21rem, calc(100% - 4px)); max-height: 42%; overflow-y: auto; overscroll-behavior: contain; padding: var(--s-2) var(--s-3); border-radius: var(--r-3); border: 1px solid var(--line); background: var(--glass-strong); backdrop-filter: blur(var(--blur)); -webkit-backdrop-filter: blur(var(--blur)); box-shadow: var(--shadow); }
.sig-pop[hidden] { display: none; }
.sig-pop .side-title { margin: var(--s-1) 0 0; }
/* the lead's few words of detail, on a second line */
.sig-lead { transition: opacity var(--slow, .6s); }
.sig-lead[hidden] { display: none; }
.sig-top { flex-wrap: wrap; row-gap: 0; }
.sig-lead-more { flex-basis: 100%; min-width: 0; margin-top: -.55rem; padding-left: calc(9px + .55rem + .7rem); text-align: left; font-size: var(--t-small); color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sig-lead-more:empty { display: none; }
.sig-listen-ctl { margin-left: auto; }
.sig-lead-when:empty { display: none; }
.sig-lead-more { cursor: pointer; }
/* Listen has a cell of its own (15 Nov, Rohin's screenshot: the now-playing bar lay over the Data button): the top row is
   a grid, the lead in the first column, Listen (or its now-playing bar) in the second at the right, the lead's detail on
   a full line under both. A cell cannot reach the title row above, the lead beside it or the bands below, and no row is
   added (a row of its own cost a small phone 46 px of picture). */
.sig-top { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "lead ctl" "more more"; align-items: center; column-gap: var(--s-2); }
.sig-top > .sig-lead { grid-area: lead; min-width: 0; }
.sig-top > .sig-listen-ctl { grid-area: ctl; justify-self: end; margin-left: 0; min-width: 0; }
.sig-top > .sig-lead-more { grid-area: more; }
.sig-np { min-width: 0; }
@media (max-width: 520px) { .sig-np-name { max-width: 7.2rem; } .sig-top:has(.sig-np:not([hidden])) .sig-lead-when { display: none; } }      /* playing on a phone: the lead keeps its words */

/* a band's own channels at the top of its sheet (UX review #10): the same ▶ buttons as the Listen popover, one player */
.sig-bchans { display: grid; gap: var(--s-1); min-width: 0; }
.sig-bchans .sig-chans { margin: 0; }
.sig-bchans .sig-chan { border: 1px solid var(--line); border-radius: var(--r-pill); padding: 0 .8rem 0 .65rem; background: color-mix(in srgb, var(--c-sky) 8%, var(--bg-raise)); }
.sig-bchans .sig-chan:nth-child(-n+2) { border-top: 1px solid var(--line); }
.sig-bchans .sig-chan[aria-pressed="true"] { border-color: color-mix(in srgb, var(--c-sky) 55%, transparent); background: color-mix(in srgb, var(--c-sky) 18%, var(--bg-raise)); }
.sig-bchans .sig-chans { row-gap: var(--s-2); column-gap: var(--s-2); }
/* the Listen popover: the channels by band, each band's name over its channels */
.sig-chgroup { display: grid; gap: 0; margin-bottom: var(--s-1); }
.sig-chgroup-h { margin: var(--s-1) 0 0; font-size: var(--t-tiny); font-weight: 600; color: var(--ink-3); }

/* the Data panel: a row of the blocks' names to jump; the hours of every band as small charts */
.sig-jump { display: flex; flex-wrap: wrap; gap: var(--s-2); padding: 0; border: 0; background: none; }
.sig-jump-btn { min-height: var(--tap); cursor: pointer; color: var(--ink); }
.sig-data-hours { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); gap: var(--s-4) var(--s-5); min-width: 0; }
/* tuning (QA 15 Nov): the meter breathes softly until sound arrives; still with reduced motion */
.sig-np[data-busy] .sig-meter i { animation: sig-tune 1.6s ease-in-out infinite; height: 7px; opacity: .55; }
.sig-np[data-busy] .sig-meter i:nth-child(2) { animation-delay: .15s; } .sig-np[data-busy] .sig-meter i:nth-child(3) { animation-delay: .3s; }
.sig-np[data-busy] .sig-meter i:nth-child(4) { animation-delay: .45s; } .sig-np[data-busy] .sig-meter i:nth-child(5) { animation-delay: .6s; }
@keyframes sig-tune { 0%, 100% { transform: scaleY(.45); } 50% { transform: scaleY(1); } }
.sig-meter i { transform-origin: 50% 100%; }
@media (prefers-reduced-motion: reduce) { .sig-np[data-busy] .sig-meter i { animation: none; } }
.sig-stage:has(> .sig-pop:not([hidden])) .sig-ctl { display: none; }      /* the Listen popover lies over the dome: the control stack steps aside while it is open */

/* a thing tapped on the dome (11-17, Rohin: "when you click a vessel or airplane it doesn't give any information"): its
   card, with Now's rows and look (.now-card, .nc-*), a non-modal dialog so the dome stays in use. Wider: beside the thing
   (js/scenes/signals.js placeCard moves it); a phone: a sheet over the lower part of the screen. A ring marks the thing. */
.sig-craft.now-card { position: absolute; inset: 0 auto auto 0; margin: 0; z-index: 5; width: min(21rem, calc(100% - 8px)); max-height: 70%; overflow-y: auto; overscroll-behavior: contain;
  padding: var(--s-2) var(--s-3) var(--s-3); color: var(--ink); will-change: transform; }
.sig-craft:not([open]) { display: none; }
.sig-craft:focus { outline: none; }
.sig-craft[open] { animation: sig-card-in var(--med) var(--ease); }      /* opacity only: its place is a transform set every frame */
@keyframes sig-card-in { from { opacity: 0; } }
.sig-craft .nc-ico[data-kind="sky"] { color: var(--c-sky); } .sig-craft .nc-ico[data-kind="sea"] { color: var(--c-sea); }
.sig-craft .cc-radio { margin-top: var(--s-2); }
.sig-craft .cc-radio .side-title { margin: 0; }
.sig-craft .cc-radio .nc-rows { margin-top: var(--s-1); }
.sig-craft .cc-clips:empty { display: none; }
.sig-craft .sig-heard-list li:first-child { border-top: 0; }
.sig-craft[data-sheet] { position: fixed; inset: auto 0 0 0; width: auto; max-height: 52%; transform: none; border-radius: var(--r-3) var(--r-3) 0 0; border-bottom: 0;
  padding: var(--s-2) max(var(--gutter), var(--safe-r)) calc(var(--s-3) + var(--safe-b)) max(var(--gutter), var(--safe-l)); background: var(--bg-raise); }
.sig-craft[data-sheet][open] { animation: sig-sheet-up var(--med) var(--ease); }
@keyframes sig-sheet-up { from { transform: translateY(16px); opacity: .4; } }
.sig-ring { position: absolute; left: 0; top: 0; z-index: 2; width: 2.4rem; height: 2.4rem; border-radius: 50%; pointer-events: none; border: 2px solid var(--c-sky);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--bg) 55%, transparent), inset 0 0 0 1px color-mix(in srgb, var(--bg) 55%, transparent); }
.sig-ring[hidden] { display: none; }
.sig-ring[data-kind="sea"] { border-color: var(--c-sea); } .sig-ring[data-kind="balloon"] { border-color: var(--c-good); } .sig-ring[data-kind="sat"] { border-color: var(--ink); }
@media (prefers-reduced-motion: reduce) { .sig-craft[open], .sig-craft[data-sheet][open] { animation: none; } }
/* small (Rohin 11-17: "Ideally this would be real small"): a tag, not a table - the name, then one flowing line of values
   (a key only where a value alone would not say what it is), then its radio in the same small type */
.sig-craft.now-card { width: max-content; max-width: min(16rem, calc(100% - 8px)); padding: .4rem .6rem .5rem; border-radius: var(--r-2); font-size: var(--t-tiny); line-height: 1.45; }
.sig-craft .nc-head { gap: .35rem; min-height: 0; padding: 0; border: 0; margin: 0; }
.sig-craft .nc-head h3 { font-size: var(--t-small); font-weight: 600; margin: 0; }
.sig-craft .nc-ico svg { width: 14px; height: 14px; }
.sig-craft .nc-close { margin-left: auto; width: 28px; height: 28px; min-width: 28px; min-height: 28px; }
.sig-craft .nc-close::after { content: ''; position: absolute; inset: -8px; }      /* a 44 px reach around the small ×: */
.sig-craft .nc-close { position: relative; }
.sig-craft .nc-rows { display: flex; flex-wrap: wrap; gap: 0 .7rem; margin: .1rem 0 0; padding: 0; border: 0; }
.sig-craft .nc-row { display: inline-flex; gap: .25rem; align-items: baseline; padding: 0; border: 0; min-height: 0; grid-column: auto; }
.sig-craft .nc-k { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }      /* read aloud, not shown */
.sig-craft .nc-row:is([data-k="Length"], [data-k="Climb"], [data-k="Route"], [data-k="Destination"], [data-k="Up"], [data-k="Height"]) .nc-k { position: static; width: auto; height: auto; clip: auto; color: var(--ink-3); }
.sig-craft .nc-v { font-weight: 500; color: var(--ink); white-space: nowrap; }
.sig-craft .nc-row[data-k="Type"] .nc-v, .sig-craft .nc-row[data-k="Route"] .nc-v { white-space: normal; }
.sig-craft .cc-radio { margin-top: .2rem; }
.sig-craft .cc-radio .side-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.sig-craft .cc-radio .nc-rows { margin: 0; display: grid; gap: 0; }
.sig-craft .cc-radio .nc-k { position: static; width: auto; height: auto; clip: auto; color: var(--ink-3); }      /* ADS-B, AIS, ACARS: the key is the point */
.sig-craft .cc-radio .nc-v { font-weight: 400; color: var(--ink-2); }
.sig-craft[data-sheet] { max-width: none; width: auto; font-size: var(--t-small); padding-top: var(--s-2); }
.sig-craft[data-sheet] .nc-head h3 { font-size: var(--t-body); }
.sig-craft[data-sheet] .nc-close { width: var(--tap); height: var(--tap); }
/* the first tap: just its name and one number written by the craft, like the dome's place names (Rohin 11-17: "Still looks
   huge") - no bubble, no icon; a tap on it, or on the craft again, opens the card */
.sig-craft.now-card[data-mini] { width: max-content; max-width: 12rem; padding: 2px 4px; border: 0; border-radius: 0; background: none !important; box-shadow: none !important;
  backdrop-filter: none; -webkit-backdrop-filter: none; cursor: pointer; overflow: visible; font-size: 11px; line-height: 1.2; }
.sig-craft[data-mini] .nc-head { display: flex; align-items: baseline; gap: .3rem; min-height: 0; padding: 0; margin: 0; border: 0; }
.sig-craft[data-mini] .nc-ico { display: none; }
.sig-craft[data-mini] .nc-head h3 { font-size: 11px; font-weight: 650; color: var(--ink); }
.sig-craft[data-mini] .sig-mini-v { font-size: 11px; color: var(--ink-2); white-space: nowrap; }
.sig-craft[data-mini] :is(h3, .sig-mini-v) { text-shadow: 0 0 2px var(--bg), 0 0 4px var(--bg), 0 0 6px var(--bg); }
.sig-craft[data-mini]::after { content: ''; position: absolute; inset: -12px -6px; }      /* a finger's reach around the small words */

/* ---- scene-birds.css */
/* ------------------------------------------------------------ 4. birds */
/* The day as a sky, the chosen bird large with its recording, the birds as soft rows that scroll inside their own
   panel. Wide: sky and rows on the left, the bird on the right. Upright tablet: sky, the bird, the rows. Phone: sky,
   then the rows straight away; the picked bird opens inside its own row. Season: the dawn chorus in place of all three.
   Colours are tokens only; the sky and the spectrogram read theirs through ctx.colors(). */
.birds { position: absolute; inset: 0; display: grid; grid-template-columns: minmax(0, 1fr) 23rem; grid-template-rows: auto auto minmax(0, 1fr);
  grid-template-areas: "top side" "sky side" "list side"; gap: var(--s-3) var(--s-5); }
.birds-top { grid-area: top; display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-4); min-width: 0; }
.birds-sum { font-size: var(--t-small); color: var(--ink-2); font-variant-numeric: tabular-nums; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bd-listen { margin-left: auto; }
.birds-info { display: flex; align-items: center; gap: var(--s-2) var(--s-3); min-width: 0; }
.birds-info .birds-sum { flex: none; }
.bd-notice { flex: 0 1 auto; justify-content: flex-end; }
.bd-notice { display: flex; gap: var(--s-2); min-width: 0; }
.bd-notice:empty { display: none; }
.bd-flag { display: inline-flex; align-items: center; gap: .4rem; min-height: var(--tap); max-width: 15rem; padding: 0 .85rem; border-radius: 999px; border: 1px solid var(--line);
  background: var(--bg-raise); color: var(--ink); font-size: var(--t-small); min-width: 0; }
.bd-flag b { display: inline-flex; align-items: center; gap: .35rem; flex: none; font-weight: 600; color: var(--ink); }
.bd-flag b::before { content: ''; flex: none; width: .45rem; height: .45rem; border-radius: 50%; background: var(--accent); }
.bd-flag span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.bd-tag { font-style: normal; font-family: var(--font-sans, inherit); margin-left: .5rem; padding: .05rem .45rem; border-radius: 999px; background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--ink); font-size: var(--t-tiny); }
.bird-row.is-flag .bird-name span { color: var(--ink); }
.bd-moments { display: flex; align-items: baseline; gap: var(--s-3); min-width: 0; }
.bd-mlabel { flex: none; font-size: var(--t-tiny); color: var(--ink-2); }
.bd-moments ol { display: flex; flex-wrap: wrap; gap: .25rem .4rem; min-width: 0; }
.bd-moments li { padding: .1rem .5rem; border-radius: 999px; background: var(--bg-sunk); font-size: var(--t-small); font-variant-numeric: tabular-nums; color: var(--ink); white-space: nowrap; }
.bd-x { margin-left: .3rem; color: var(--ink-2); font-size: var(--t-tiny); }
.bd-listen[aria-pressed="true"] { background: var(--ink); color: var(--ink-inverse); border-color: var(--ink); }
.bd-listen[aria-busy="true"] { opacity: .6; }
.bd-listen:disabled { opacity: .4; }
.bd-listen[hidden] { display: none; }

/* the sky */
.bd-sky { grid-area: sky; position: relative; height: clamp(8.5rem, 24vh, 13rem); min-width: 0; border-radius: var(--r-3); overflow: hidden; background: var(--bg-raise); }
.bd-sky-pic { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.bd-sky-marks { position: absolute; inset: 0; pointer-events: none; }
.bd-sky-l { position: absolute; bottom: 6px; translate: -50% 0; white-space: nowrap; font-size: var(--t-tiny); line-height: 1.2; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.bd-sky-l[data-side="left"] { translate: calc(-100% - 5px) 0; }
.bd-sky-l[data-side="right"] { translate: 5px 0; }
.bd-sky-hour[data-side="right"] { translate: -4px 0; } .bd-sky-hour[data-side="left"] { translate: calc(-100% + 4px) 0; }
.bd-sky-hour.is-now { color: var(--ink); font-weight: 600; }
.bd-sky-sun { bottom: 34px; display: inline-flex; align-items: center; gap: .25rem; color: var(--ink); }

/* the chosen bird */
.birds-side { grid-area: side; display: grid; grid-template-rows: auto minmax(0, 1fr); gap: var(--s-4); align-content: start; min-width: 0; min-height: 0; }
.bd-card { display: grid; gap: var(--s-3); padding: var(--s-4); min-width: 0; align-content: start; }
.bd-who { display: flex; align-items: center; gap: var(--s-4); min-width: 0; }
.bird-photo { width: 3rem; height: 3rem; flex: none; border-radius: 50%; object-fit: cover; background: var(--bg-sunk); color: var(--ink-3); display: grid; place-items: center; }
.bd-card .bird-photo { width: 6rem; height: 6rem; border-radius: var(--r-2); }
.bird-name { display: grid; min-width: 0; line-height: 1.3; }
.bird-name b { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bird-name span { font-size: var(--t-tiny); color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bd-card .bird-name b { font-family: var(--font-title); font-size: 1.5rem; font-weight: 600; white-space: normal; line-height: 1.15; }
.bd-card .bird-name span { font-size: var(--t-small); }
.bd-facts { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); }
.bd-facts div { display: grid; }
.bd-facts dt { font-size: var(--t-tiny); color: var(--ink-2); }
.bd-facts dd { font-variant-numeric: tabular-nums; }
.bd-song { display: grid; grid-template-columns: var(--tap) minmax(0, 1fr); gap: var(--s-2) var(--s-3); align-items: center; }
.bd-spec { grid-column: 1 / -1; position: relative; height: 9rem; border-radius: var(--r-2); overflow: hidden; background: var(--bg-sunk); }
.bd-spec-pic { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity var(--med); }
.bd-spec-pic.is-on { opacity: 1; }
.bd-veil { position: absolute; inset: 0; background: color-mix(in srgb, var(--bg-sunk) 72%, transparent); transform-origin: right center; opacity: 0; }
.bd-veil.is-on { opacity: 1; }
.bd-head { position: absolute; top: 0; bottom: 0; left: 0; width: 2px; margin-left: -1px; background: var(--accent); opacity: 0; }
.bd-head.is-on { opacity: 1; }
.bd-band, .bd-none { font-size: var(--t-tiny); color: var(--ink-2); }
/* the card's last line: the reference recording (a small play button and its word) and "Credits", which opens the
   names behind the picture and the reference, whole, one tap away */
.bd-foot { display: flex; align-items: center; gap: var(--s-3); min-width: 0; }
.bd-ref { display: inline-flex; align-items: center; gap: var(--s-2); min-width: 0; }
.bd-ref-l { font-size: var(--t-small); color: var(--ink); line-height: 1.25; }
.bd-credits-btn { margin-left: auto; display: inline-flex; align-items: center; gap: .3rem; min-height: var(--tap); padding: 0 .55rem; border-radius: var(--r-pill); font-size: var(--t-small); color: var(--ink-2); transition: color var(--fast), background var(--fast); }
.bd-credits-btn:hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 5%, transparent); }
.bd-credits-btn .ico { transition: rotate var(--med) var(--ease); }
.bd-credits-btn[aria-expanded="true"] { color: var(--ink); }
.bd-credits-btn[aria-expanded="true"] .ico { rotate: 180deg; }
.bd-credits { display: grid; gap: .2rem; min-width: 0; animation: bd-in var(--med) var(--ease); }
.bd-credits[hidden] { display: none; }
.bd-credits p { font-size: var(--t-tiny); line-height: 1.4; color: var(--ink-2); overflow-wrap: anywhere; }
.bd-cr-k { color: var(--ink); font-weight: 600; }
.bd-ref-lic { white-space: nowrap; }
@keyframes bd-in { from { opacity: 0; transform: translateY(-.25rem); } to { opacity: 1; transform: none; } }
.bd-late { display: grid; grid-template-rows: auto minmax(0, 1fr); gap: var(--s-2); min-height: 0; overflow: hidden; }
.bd-late[hidden] { display: none; }
.bird-latest { min-height: 0; overflow: hidden; }
.bird-latest li { display: grid; grid-template-columns: 3.4rem minmax(0, 1fr); gap: .5rem; padding: .45rem 0; border-top: 1px solid var(--line); font-size: var(--t-small); color: var(--ink-2); }
.bird-latest li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bird-latest time { color: var(--ink-2); font-variant-numeric: tabular-nums; }

/* the birds: one soft row each; the panel scrolls inside itself */
.birds-main { grid-area: list; display: flex; flex-direction: column; gap: var(--s-1); min-width: 0; min-height: 0; }
.bird-axis { flex: none; }
.bird-axis, .bird-row { display: grid; grid-template-columns: 3rem minmax(0, 13rem) minmax(0, 1fr) 2rem var(--tap); gap: var(--s-3); align-items: center; padding-inline: var(--s-3); }
.bird-axis .axis-lane { grid-column: 3; }
.axis-pad, .axis-pad2 { display: none; }
.bird-axis[data-mode="today"] { display: none; }          /* the hours are under the sky already; the rows' lanes show the daylight */
.axis-lane { position: relative; height: 1.1rem; font-size: var(--t-tiny); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.axis-lane span { position: absolute; top: 0; translate: -50% 0; white-space: nowrap; }
.bird-axis[data-mode="today"] .axis-lane span:first-of-type { translate: 0 0; }
.bird-axis[data-mode="today"] .axis-lane span:last-of-type { translate: -100% 0; }
.axis-dow.is-now { color: var(--ink); font-weight: 600; }
.bird-rows { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; touch-action: pan-y; align-content: start; display: grid; gap: var(--s-1); scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
.bird-row { padding-block: .45rem; border-radius: var(--r-2); cursor: pointer; transition: background var(--fast); }
.bird-row.is-on { background: var(--accent-soft); }
.bird-row.is-on .bird-name b { font-weight: 700; }
.bird-row.is-sounding .beat { background: var(--accent); }
@media (hover: hover) { .bird-row:hover:not(.is-on) { background: color-mix(in srgb, var(--ink) 5%, transparent); } }
.bird-lane { position: relative; height: 1.6rem; border-radius: var(--r-pill); background: color-mix(in srgb, var(--ink) 6%, transparent); }
.bird-lane .axis-day { position: absolute; top: 0; bottom: 0; border-radius: var(--r-pill); background: color-mix(in srgb, var(--accent) 16%, transparent); }
.bird-lane[data-mode="week"] { background: none; }
.day-slot { position: absolute; top: 50%; width: 5px; height: 5px; translate: -50% -50%; border-radius: 50%; background: color-mix(in srgb, var(--ink) 14%, transparent); }
.beat { position: absolute; top: 50%; translate: -50% -50%; border-radius: 50%; background: var(--c-yard); transition: background var(--fast); }
.bird-row.is-on .beat { background: var(--accent); }
.bird-count { text-align: right; color: var(--ink-2); font-size: var(--t-small); }
.bird-call { width: var(--tap); height: var(--tap); display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); background: var(--glass); color: var(--ink); transition: border-color var(--fast), background var(--fast), transform var(--fast) var(--ease); }
.bird-call .ico { fill: currentColor; stroke-width: 1; }
.bird-call:hover { border-color: var(--line-strong); } .bird-call:active { transform: scale(.92); }
.bird-call[aria-pressed="true"] { background: var(--ink); color: var(--ink-inverse); border-color: var(--ink); }
.bd-play { width: 3.25rem; height: 3.25rem; }

/* an upright tablet: the sky, then the bird beside the latest calls, then the rows */
@media (max-width: 1000px) {
  .birds { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto auto minmax(0, 1fr); grid-template-areas: "top" "sky" "side" "list"; }
  .birds-side { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); grid-template-rows: auto; gap: var(--s-5); align-items: start; }
  .bird-latest li:nth-child(n+6) { display: none; }
  .bd-spec { height: 7rem; }
}
/* a phone: the same order, everything a little smaller; the count of the day sits under the buttons */
@media (max-width: 720px) {
  .birds { gap: var(--s-2); }
  .birds-top { gap: var(--s-1) var(--s-2); }
  .birds-top .seg button { padding: 0 .8rem; }
  .birds-info { order: 3; flex-basis: 100%; justify-content: space-between; }
  .birds-sum { font-size: var(--t-tiny); }
  .birds-info .birds-sum { flex: 0 1 auto; }
  .bd-notice { flex: none; gap: var(--s-1); }
  .bd-flag { font-size: var(--t-tiny); padding: 0 .6rem; gap: .3rem; max-width: 9.5rem; }
  .bd-flag b::before { display: none; }
  .bd-flag b { font-weight: 700; }
  .bd-moments li { font-size: var(--t-tiny); }
  .bd-sky { height: clamp(6.75rem, 15.5vh, 8.5rem); }
  .birds-side { grid-template-columns: minmax(0, 1fr); }
  .bd-late { display: none; }
  .bd-card { gap: var(--s-2); padding: var(--s-3); }
  .bd-who { gap: var(--s-3); }
  .bd-card .bird-photo { width: 4.5rem; height: 4.5rem; }
  .bd-card .bird-name b { font-size: 1.1875rem; }
  .bd-card .bird-name span { font-size: var(--t-tiny); }
  .bd-facts { gap: var(--s-1) var(--s-4); }
  .bd-facts dd { font-size: var(--t-small); }
  .bd-song { grid-template-columns: minmax(0, 1fr) var(--tap); gap: var(--s-1) var(--s-3); }
  .bd-spec { grid-column: 1; grid-row: 1; height: 4.75rem; }
  .bd-play { grid-column: 2; grid-row: 1; width: var(--tap); height: var(--tap); }
  .bd-band { display: none; }
  .bird-axis, .bird-row { grid-template-columns: 2.75rem minmax(0, 1fr) 1.6rem var(--tap); gap: 0 var(--s-3); padding-inline: var(--s-2); }
  .bird-axis[data-mode="today"] { display: none; }
  .bird-axis .axis-lane { grid-column: 2; }
  .bird-row { padding-block: .3rem; }
  .bird-photo { width: 2.75rem; height: 2.75rem; }
  .bird-row .bird-photo { grid-row: 1 / 3; }
  .bird-row .bird-name { grid-column: 2; grid-row: 1; }
  .bird-row .bird-name span { display: none; }
  .bird-track { grid-column: 2; grid-row: 2; }
  .bird-count { grid-row: 1 / 3; }
  .bird-call { grid-row: 1 / 3; }
  .bird-lane { height: 1rem; }
}
@media (max-height: 720px) and (max-width: 720px) { .bd-sky { height: 6rem; } }

/* the card's frame: beside the rows it is simply open; on a phone it grows open inside its row */
.bd-more { display: grid; grid-template-rows: 1fr; min-width: 0; }
.bd-more > .bd-card { min-height: 0; }
@media (max-width: 720px) {
  .birds { grid-template-rows: auto auto minmax(0, 1fr); grid-template-areas: "top" "sky" "list"; }
  .birds-side { display: none; }
  .bird-row > .bd-more { grid-column: 1 / -1; grid-row: 3; grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows var(--med) var(--ease), visibility 0s var(--med); }
  .bird-row > .bd-more.is-open { grid-template-rows: 1fr; visibility: visible; transition: grid-template-rows var(--med) var(--ease); }
  .bird-row > .bd-more > .bd-card { overflow: hidden; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; cursor: default; }
  .bird-row > .bd-more.is-open > .bd-card { padding-top: var(--s-2); }
  .bird-row .bd-who { display: none; }
  .bird-row.is-open { padding-bottom: var(--s-2); }
  .bird-row .bd-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-1) var(--s-3); }
}

/* Season: the dawn chorus (js/birds-record.js) takes the place of the sky, the rows and the bird */
.birds.is-season { grid-template-rows: auto minmax(0, 1fr); grid-template-areas: "top top" "season season"; }
.birds.is-season > .bd-sky, .birds.is-season > .birds-side, .birds.is-season > .birds-main, .birds.is-season .birds-info, .birds.is-season .bd-listen { display: none; }
.bd-season:not([hidden]) { grid-area: season; display: grid; min-width: 0; min-height: 0; }
.bd-season .rec-dawn { display: grid; grid-template-rows: auto minmax(0, 1fr); gap: var(--s-3); min-width: 0; min-height: 0; animation: bd-in var(--med) var(--ease); }
.bd-season .dawn-grid { min-height: 0; grid-template-rows: minmax(0, 1fr); }
.bd-season .dawn-left { grid-template-rows: minmax(0, 1fr) auto; min-height: 0; }
.bd-season .dawn-box { height: auto; min-height: 12rem; background: var(--bg-raise); }
.bd-season .dawn-right { max-height: none; min-height: 0; }
.bd-season-wait { align-self: center; justify-self: center; }
@media (max-width: 1000px) {
  .birds.is-season { grid-template-areas: "top" "season"; }
  .bd-season .dawn-grid { grid-template-rows: auto minmax(0, 1fr); }
  .bd-season .dawn-left { grid-template-rows: auto auto; }
  .bd-season .dawn-box { height: 17rem; }
}
@media (max-width: 720px) { .bd-season .dawn-box { height: 13rem; min-height: 0; } .bd-season .rec-dawn { gap: var(--s-2); } }
@media (max-height: 720px) and (max-width: 720px) { .bd-season .dawn-box { height: 10rem; } }

/* the Data panel's row of block names: a tap goes to that block */
.bd-jump { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: var(--s-2); }
.bd-jump-b { min-height: var(--tap); padding: 0 1rem; border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--glass); font-size: var(--t-small); color: var(--ink); transition: border-color var(--fast); }
.bd-jump-b:hover { border-color: var(--line-strong); }
@media (prefers-reduced-motion: reduce) { .bd-veil, .bd-head { display: none; } .bd-more, .bd-credits-btn .ico { transition: none !important; } }

/* ------------------------------------------------------------ the record, in the Data panel (js/birds-record.js) */
.rec-head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-4); min-width: 0; }
.rec-head h3 { color: var(--ink); }
.rec-span { font-size: var(--t-small); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.rec-head .seg { margin-left: auto; }
.rec-load { min-height: 12rem; }

/* dawn chorus: the picture, and beside it (under it on a phone) the species in the order they start the day */
.dawn-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(16rem, 22rem); gap: var(--s-4); min-width: 0; }
.dawn-left { display: grid; gap: var(--s-2); min-width: 0; align-content: start; }
.dawn-box { position: relative; height: 17rem; min-width: 0; border-radius: var(--r-2); overflow: hidden; }
.dawn-pic { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: pointer; }
.dawn-read { font-size: var(--t-small); color: var(--ink-2); font-variant-numeric: tabular-nums; min-height: 1.4em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dawn-right { display: grid; grid-template-rows: auto minmax(0, 1fr); min-width: 0; min-height: 0; max-height: 19rem; }
.dawn-list { min-height: 0; overflow-y: auto; overscroll-behavior: contain; touch-action: pan-y pinch-zoom; display: grid; gap: 2px; align-content: start; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
.dawn-row { width: 100%; min-height: var(--tap); display: grid; grid-template-columns: 1.25rem minmax(0, 1fr) 3.2rem 4.4rem; gap: var(--s-2); align-items: center; padding: 0 var(--s-2); border-radius: var(--r-2); text-align: left; font-size: var(--t-small); color: var(--ink); transition: background var(--fast); }
.dawn-row .num { text-align: right; font-variant-numeric: tabular-nums; color: var(--ink-2); }
.dawn-row[aria-pressed="true"] { background: var(--accent-soft); }
.dawn-row[aria-pressed="true"] .dawn-name { font-weight: 600; }
@media (hover: hover) { .dawn-row:hover:not([aria-pressed="true"]) { background: color-mix(in srgb, var(--ink) 5%, transparent); } }
.dawn-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dawn-play { display: grid; place-items: center; color: var(--ink-2); }
.dawn-play .ico { fill: currentColor; stroke-width: 1; }
.dawn-row[aria-pressed="true"] .dawn-play { color: var(--accent); }
.dawn-cols { min-height: 0; padding-block: 0 var(--s-1); font-size: var(--t-tiny); color: var(--ink-2); }
.dawn-cols span:nth-child(n+3) { text-align: right; }

/* arrivals and departures: one lane per species across the season, a dot for each day heard */
.ss-list { display: grid; gap: 0; max-height: 26rem; overflow-y: auto; overscroll-behavior: contain; touch-action: pan-y pinch-zoom; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
.ss-row { display: grid; grid-template-columns: minmax(0, 12rem) minmax(0, 1fr) 3.6rem 3.6rem; gap: var(--s-3); align-items: center; padding: .35rem var(--s-1); border-top: 1px solid var(--line); font-size: var(--t-small); }
.ss-head { border-top: 0; padding-block: 0; font-size: var(--t-tiny); color: var(--ink-2); }
.ss-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ss-d { text-align: right; color: var(--ink-2); font-variant-numeric: tabular-nums; display: grid; line-height: 1.25; }
.ss-d small { font-size: var(--t-tiny); color: var(--ink-3); }
.ss-lanes { display: grid; gap: 3px; min-width: 0; }
.ss-lane { position: relative; height: .85rem; }
.ss-lane.is-before { height: .5rem; opacity: .55; }
.ss-span { position: absolute; top: 50%; height: 2px; translate: 0 -50%; border-radius: 2px; background: color-mix(in srgb, var(--c-yard) 45%, transparent); }
.ss-day { position: absolute; top: 50%; width: 5px; height: 5px; translate: -50% -50%; border-radius: 50%; background: var(--c-yard); }
.ss-lane.is-before .ss-day { width: 4px; height: 4px; background: var(--ink-3); }
.ss-lane.is-before .ss-span { background: color-mix(in srgb, var(--ink-3) 45%, transparent); }
.ss-ticks { height: 1rem; }
.ss-ticks span { position: absolute; top: 0; white-space: nowrap; }
.ss-key { display: flex; gap: var(--s-4); font-size: var(--t-tiny); color: var(--ink-2); }
.ss-key span { display: inline-flex; align-items: center; gap: .35rem; }
.ss-key i { width: 1rem; height: 2px; background: var(--c-yard); } .ss-key i.is-before { background: var(--ink-3); }

/* life list: every species ever heard, the day it was first heard; found by search */
.life-search { display: flex; align-items: center; gap: .55rem; padding: 0 1rem; border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--glass); color: var(--ink-3); }
.life-search:focus-within { border-color: var(--accent); color: var(--ink-2); }
.life-q { flex: 1; min-width: 0; height: var(--tap); border: 0; padding: 0; background: none; color: var(--ink); font: inherit; font-size: 1rem; outline: none; appearance: none; -webkit-appearance: none; }
.life-q::placeholder { color: var(--ink-3); opacity: 1; }
.life-q::-webkit-search-cancel-button { -webkit-appearance: none; }
.life-list { display: grid; max-height: 24rem; overflow-y: auto; overscroll-behavior: contain; touch-action: pan-y pinch-zoom; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
.life-row { display: grid; grid-template-columns: minmax(0, 1fr) auto var(--tap); gap: var(--s-3); align-items: center; min-height: var(--tap); padding: .2rem var(--s-1); border-top: 1px solid var(--line); }
.life-row[hidden] { display: none; }
.life-d { font-size: var(--t-small); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.life-play .ico { fill: currentColor; stroke-width: 1; }
.life-none { font-size: var(--t-small); color: var(--ink-2); }
.life-none[hidden] { display: none; }

@media (max-width: 1000px) {
  .dawn-grid { grid-template-columns: minmax(0, 1fr); }
  .dawn-right { max-height: 17rem; }
}
@media (max-width: 720px) {
  .dawn-box { height: 13.5rem; }
  .rec-head .seg { margin-left: 0; }
  .ss-row { grid-template-columns: minmax(0, 1fr) 3.4rem 3.4rem; gap: .15rem var(--s-2); }
  .ss-row .ss-lanes { grid-column: 1 / -1; grid-row: 2; }
  .ss-head .ss-ticks { grid-column: 1 / -1; grid-row: 2; }
  .ss-list { max-height: 22rem; }
}
.life-row > .bird-name { grid-column: 1; grid-row: 1; }
.life-row > .life-d { grid-column: 2; grid-row: 1; }
.life-row > .life-play, .life-row > .life-pad { grid-column: 3; grid-row: 1; }
.life-row .bird-name span { display: block; }
#birds .data-panel .table thead th { white-space: nowrap; }

/* the smallest phones (320 px): Today · Week · Season and Listen keep to one row, so the rows get the room */
@media (max-width: 360px) {
  .birds-top .seg button { padding: 0 .6rem; }
  .bd-listen { padding-inline: .85rem; }
  .bd-listen .ico { display: none; }
}

/* ---- scene-machine.css */
/* Machine room. The picture takes the page: one dark, glowing stage (dark in both looks: it carries data-theme="dark")
   that keeps every drag (data-swipe="off"). Under it one row of layer words. The list of everything is behind the "List"
   button: a panel over the picture (a sheet from the bottom on phones) that scrolls inside itself. Colours: tokens only. */
.machine { position: absolute; inset: 0; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; gap: var(--s-2); }
.machine-stage { position: relative; grid-column: 1; grid-row: 1; min-height: 0; min-width: 0; overflow: hidden; border-radius: var(--r-3, var(--r-2)); background: var(--bg); color: var(--ink); touch-action: none; cursor: grab; outline: none; -webkit-user-select: none; user-select: none; }
.machine-stage:active { cursor: grabbing; }
.machine-stage:focus-visible { box-shadow: inset 0 0 0 2px var(--accent); }
.machine-still { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: pointer; }      /* the still drawing: until the room is built, and all there is without WebGL */
.machine-stage.is-flat { cursor: default; }
.machine-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.machine-tags { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.node-tag { position: absolute; left: 0; top: 0; display: grid; justify-items: center; white-space: nowrap; font-size: .6875rem; line-height: 1.25; color: var(--ink-2); will-change: transform; transition: opacity var(--med); text-shadow: 0 0 6px var(--bg), 0 0 2px var(--bg); }
.node-tag b { color: var(--ink-2); font-weight: 500; }
.node-tag.is-main b { color: var(--ink); font-weight: 600; font-size: .75rem; }
.node-tag .sub { display: none; }

.care-tag b { color: var(--accent); }
.net-tag b { color: var(--ink); }
.tray-tag { display: flex; gap: .4rem; align-items: baseline; padding: 0 .35rem; }
.tray-tag b { color: var(--ink); }
.tray-tag .n { color: var(--ink-2); font-variant-numeric: tabular-nums; }
.tray-tag.is-on b, .tray-tag.is-on .n { color: var(--accent); font-weight: 600; }
.unit-tag b { color: var(--ink-2); font-weight: 500; }
.unit-tag.is-on b { color: var(--accent); font-weight: 600; }

/* the layers: the house from the outside in. One row of words; on a narrow screen it wraps to a second row (11-14: nothing wider than its box) */
.machine-layers { grid-column: 1; grid-row: 2; display: flex; flex-wrap: wrap; gap: .35rem; min-width: 0; }
.machine-layers[hidden] { display: none; }
.mr-layer { flex: none; min-height: var(--tap); padding: 0 .85rem; border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--glass); color: var(--ink-2); font: inherit; font-size: var(--t-small); white-space: nowrap; cursor: pointer; transition: border-color var(--fast), color var(--fast), background var(--fast); }
.mr-layer:hover { border-color: var(--line-strong); color: var(--ink); }
.mr-layer[aria-pressed="true"] { border-color: color-mix(in srgb, var(--accent) 60%, transparent); background: var(--accent-soft); color: var(--ink); }

.machine-panel { grid-column: 1; grid-row: 1; z-index: 2; justify-self: end; align-self: stretch; width: min(21rem, 100%); margin: var(--s-2); padding: var(--s-3); display: grid; grid-template-rows: auto minmax(0, 1fr); gap: var(--s-2); min-height: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r-2); background: var(--bg-raise); box-shadow: var(--shadow); }      /* opaque: nothing of the picture shows through it (QA 15 Nov) */
.machine-panel[hidden] { display: none; }
.machine-side { display: grid; gap: var(--s-3); min-width: 0; min-height: 0; align-content: start; overflow-y: auto; overscroll-behavior: contain; padding: 2px; }
.mr-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.mr-row { width: 100%; min-height: var(--tap); display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .6rem; padding: 0 .75rem; border: 1px solid transparent; border-radius: var(--r-2); background: none; color: var(--ink-2); font: inherit; font-size: var(--t-small); text-align: left; cursor: pointer; transition: background var(--fast), border-color var(--fast), color var(--fast); }
.mr-row:hover { background: var(--glass); color: var(--ink); }
.mr-row[aria-pressed="true"] { border-color: color-mix(in srgb, var(--accent) 60%, transparent); background: var(--accent-soft); color: var(--ink); }
.mr-row .mr-name { color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mr-row b { font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.mr-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c-quiet); }
.mr-dot[data-state="up"] { background: var(--c-good); }
.mr-dot[data-state="down"] { background: var(--c-warn); }
.mr-head { display: flex; align-items: center; gap: var(--s-3); min-width: 0; }
.mr-head h3 { font-size: 1rem; font-weight: 600; color: var(--ink); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mr-back { min-height: var(--tap); flex: none; }
.mr-meta { display: flex; flex-wrap: wrap; gap: .15rem var(--s-4); font-size: var(--t-small); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.mr-none { font-size: var(--t-small); color: var(--ink-2); }
.mr-fact { min-height: var(--tap); display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .6rem; padding: 0 .75rem; font-size: var(--t-small); color: var(--ink-2); }
.mr-fact .mr-name { color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mr-fact b { font-weight: 600; color: var(--ink); }
.mr-facts { display: flex; flex-wrap: wrap; gap: .1rem var(--s-4); padding: .1rem .75rem .5rem 2.1rem; font-size: var(--t-small); color: var(--ink-2); }
.mr-counts { list-style: none; margin: 0; padding: 0; display: grid; font-size: var(--t-small); color: var(--ink-2); }
.mr-counts li { display: grid; grid-template-columns: minmax(0, 1fr) auto 4.6rem; gap: .6rem; min-height: 2rem; align-items: center; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.mr-counts span:first-child { color: var(--ink); }
.mr-counts b { color: var(--ink); font-weight: 500; }

.machine-by { display: grid; gap: var(--s-2); min-width: 0; }
.machine-kinds { display: none; flex-wrap: wrap; gap: .4rem; }      /* chips where a screen is tall enough for them; one select otherwise */
.kind { display: inline-flex; align-items: center; gap: .5rem; min-height: var(--tap); padding: 0 .8rem 0 .9rem; border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--glass); font-size: var(--t-small); color: var(--ink-2); transition: border-color var(--fast), color var(--fast), background var(--fast), transform var(--fast) var(--ease); }
.kind b { font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.kind:hover { border-color: var(--line-strong); color: var(--ink); }
.kind:active { transform: scale(.96); }
.kind[aria-pressed="true"] { border-color: color-mix(in srgb, var(--accent) 60%, transparent); background: var(--accent-soft); color: var(--ink); }
.machine-pick { display: block; width: 100%; height: var(--tap); padding: 0 2.2rem 0 1rem; border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--glass); color: var(--ink); font: inherit; font-size: 1rem; appearance: none; -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%), linear-gradient(135deg, var(--ink-2) 50%, transparent 50%); background-position: calc(100% - 1.25rem) 55%, calc(100% - .95rem) 55%; background-size: .3rem .3rem; background-repeat: no-repeat; }
.machine-pick option { background: var(--bg-raise); color: var(--ink); }
.machine-where { min-height: 1.4rem; display: flex; flex-wrap: wrap; gap: .1rem var(--s-4); font-size: var(--t-small); color: var(--ink-2); }
.machine-where b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.machine-sample { position: absolute; left: var(--s-2); top: var(--s-2); z-index: 1; pointer-events: none; display: inline-flex; align-items: center; gap: .45rem; min-height: 1.75rem; padding: 0 .7rem; margin: 0; border: 1px solid color-mix(in srgb, var(--ink) 16%, transparent); border-radius: var(--r-pill); background: color-mix(in srgb, var(--bg) 70%, transparent); font-size: var(--t-small); color: var(--ink-2); white-space: nowrap; font-variant-numeric: tabular-nums; }

.machine-time[hidden] { display: none; }

@media (max-width: 720px) {
  .machine-panel { justify-self: stretch; align-self: end; width: auto; max-height: max(50%, 15rem); margin: 0; padding: var(--s-2) var(--s-3) var(--s-3); border-radius: var(--r-3, var(--r-2)) var(--r-3, var(--r-2)) 0 0; }      /* a half-height sheet: the picture keeps the top half */
  .machine-list-btn { min-width: var(--tap); justify-content: center; padding: 0 .9rem; }      /* the word, never the ≡ alone: that is the Index's mark */
  .mr-layer { padding: 0 .7rem; }
}
/* the narrowest phones: the title gives the two buttons beside it their room */
@media (max-width: 380px) { .scene-machine .scene-head { gap: var(--s-1, .25rem); } .scene-machine .scene-head h2 { font-size: calc(var(--t-display) * .9); } .scene-machine .scene-tools { gap: var(--s-1, .25rem); } }
/* inside a machine: one way back ("‹ House"), at the picture's top left; the Live / Sample tag steps down under it */
.machine-stage:has(> .machine-back:not([hidden])) .machine-sample { top: calc(var(--s-2) * 2 + var(--tap)); }
.machine-back { position: absolute; left: var(--s-2); top: var(--s-2); z-index: 1; min-height: var(--tap); min-width: var(--tap); padding: 0 .9rem 0 .55rem; border: 1px solid color-mix(in srgb, var(--ink) 16%, transparent); border-radius: var(--r-pill); background: color-mix(in srgb, var(--bg) 70%, transparent); color: var(--ink); font: inherit; font-size: var(--t-small); cursor: pointer; }
.machine-back[hidden] { display: none; }
/* one "‹ House": the picture's, at its top left (the control stack + - tilt home is at the top right); the list's own is for the
   flat form only, where the picture's is not shown (11-16) */
.machine:has(> .machine-stage:not(.is-flat)) .mr-head > .mr-back { display: none; }
.machine-stage.is-flat .machine-ctl { display: none; }
.machine-stage.is-flat .machine-back { display: none; }      /* without the room the list is open and has its own way back */

/* the caretaker's diary on the last day: a mark under the track per moment, the chosen slot in words, Play */
.machine-time { display: grid; gap: 2px; min-width: 0; }
.machine-ts .ts-play[hidden] { display: none; }
.machine-marks { position: absolute; left: 0; right: 0; bottom: -3px; height: 6px; pointer-events: none; z-index: 1; }
.machine-marks i { position: absolute; top: 0; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--accent); opacity: .75; }
.machine-did { display: flex; flex-wrap: wrap; gap: .1rem var(--s-3); min-height: 1.3rem; margin: -.2rem 0 .2rem; font-size: var(--t-small); color: var(--accent); }
.machine-did:empty { display: none; }
.mr-diary .mr-row { grid-template-columns: 3.2rem minmax(0, 1fr) auto; }
.mr-diary .mr-t { color: var(--ink-2); font-variant-numeric: tabular-nums; }
.mr-diary .mr-row[aria-pressed="true"] .mr-name { color: var(--accent); }
.moment-tag b { color: var(--accent); font-weight: 600; font-size: .75rem; }

/* inside a machine: three quiet level marks at the foot of the picture (a word and a soft bar: no figure, no scale) */
.machine-levels { position: absolute; left: 50%; bottom: var(--s-2); transform: translateX(-50%); z-index: 1; display: flex; gap: .3rem; max-width: calc(100% - 2 * var(--s-2)); }
.machine-levels[hidden], .machine-stage.is-flat .machine-levels { display: none; }
.mr-level { display: grid; align-content: center; gap: .3rem; min-height: var(--tap); min-width: 5.2rem; padding: .3rem .75rem; border: 1px solid color-mix(in srgb, var(--ink) 14%, transparent); border-radius: var(--r-2, 12px); background: color-mix(in srgb, var(--bg) 66%, transparent); color: var(--ink-2); font: inherit; font-size: var(--t-small); line-height: 1.1; text-align: left; cursor: pointer; }
.mr-level[aria-pressed="true"] { color: var(--ink); border-color: color-mix(in srgb, var(--accent) 60%, transparent); }
.mr-bar { display: block; height: 3px; border-radius: 2px; background: color-mix(in srgb, var(--ink) 12%, transparent); overflow: hidden; }
.mr-bar i { display: block; height: 100%; border-radius: 2px; background: linear-gradient(90deg, color-mix(in srgb, var(--c-good) 70%, transparent), color-mix(in srgb, var(--accent) 80%, transparent)); transition: width 1.2s var(--ease, ease); }
.mr-level[aria-pressed="true"] .mr-bar i { background: var(--accent); }
@media (max-width: 380px) { .mr-level { min-width: 4.6rem; padding: .3rem .55rem; } }

/* a machine's state when the house does not watch it: a quiet word, the dot left out (QA 15 Nov: a grey dot with no state) */
.mr-row b.mr-quiet, .mr-meta .mr-quiet { color: var(--ink-3); font-weight: 400; }
.mr-row .mr-hint { color: var(--ink-3); font-weight: 400; }      /* the house view's quiet "· Streaming" after a machine's name */
.mr-row:has(b.mr-quiet) .mr-dot { visibility: hidden; }
/* a link's soft meter: how much flows there, no figure */
.mr-links .mr-row b { display: grid; justify-items: end; gap: .25rem; font-weight: 500; }
.mr-meter { width: 3.2rem; }
/* inside a machine, over the level marks: what it is doing now, in a few role words */
.machine-now { position: absolute; left: var(--s-2); right: var(--s-2); bottom: calc(var(--s-2) * 2 + var(--tap)); z-index: 1; display: flex; flex-wrap: wrap; justify-content: center; gap: .3rem; pointer-events: none; }
.machine-now[hidden], .machine-stage.is-flat .machine-now { display: none; }
.mr-now { pointer-events: auto; display: inline-flex; align-items: center; gap: .45rem; min-height: 2rem; padding: 0 .75rem; border: 1px solid color-mix(in srgb, var(--ink) 14%, transparent); border-radius: var(--r-pill); background: color-mix(in srgb, var(--bg) 66%, transparent); color: var(--ink-2); font: inherit; font-size: var(--t-small); white-space: nowrap; }
.mr-now b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
button.mr-now { min-height: var(--tap); cursor: pointer; }
button.mr-now:hover { border-color: color-mix(in srgb, var(--accent) 60%, transparent); }
.machine-levels:not([hidden]) ~ .machine-now { bottom: calc(var(--s-2) * 2 + var(--tap) + .2rem); }
.machine-levels[hidden] ~ .machine-now { bottom: var(--s-2); }
.machine-panel.is-deep .machine-time { display: none; }      /* inside a shelf or one thing: its rows, not the day */
/* while the list is open on a phone or a tablet, the level marks and the "now" line step away: they would sit under its rows */
@media (max-width: 1000px) { .machine:has(> .machine-panel:not([hidden])) .machine-levels, .machine:has(> .machine-panel:not([hidden])) .machine-now { display: none; } }
/* the control stack (+ - tilt home) steps left of the List panel while it is open on a wide screen; on a phone the panel is a sheet at the foot */
@media (min-width: 721px) { .machine:has(> .machine-panel:not([hidden])) .machine-ctl { right: calc(min(21rem, 100%) + var(--s-2) * 2); } }
@media (min-width: 1001px) { .machine:has(> .machine-panel:not([hidden])) .machine-now { right: calc(min(21rem, 100%) + var(--s-2) * 3); } }      /* the list floats on the right: what is on now stays beside it, never under it (11-16: up to five pills) */

/* ---- scene-cities.css */
/* ------------------------------------------------------------ 12. cities: the map, the panel beside it, the card
   Every colour is a token. The map is the shared module's (js/map.js, .rmap in system.css). */
.cty { position: absolute; inset: 0; display: grid; grid-template-columns: minmax(0, 1fr) 21.5rem; gap: var(--s-4); }
.cty-map { min-width: 0; min-height: 0; border: 1px solid var(--line); border-radius: var(--r-3); background: var(--map-water); transition: opacity var(--fast) linear; }      /* the map's own rules: .rmap in system.css */
.cty-map[data-fade] { opacity: 0; }
.cty-zoom { position: absolute; right: var(--s-3); top: var(--s-3); z-index: 2; }

.cty-side { min-width: 0; min-height: 0; display: grid; grid-template-rows: auto auto auto minmax(0, 1fr); gap: var(--s-2); align-content: start; }
.cty-dot { flex: none; width: .6rem; height: .6rem; border-radius: 50%; background: var(--k, var(--ink-3)); }
.cty-dot.ring { background: none; box-shadow: inset 0 0 0 2.5px var(--k, var(--ink-3)); width: .68rem; height: .68rem; }
.cty-kinds { display: flex; flex-wrap: wrap; gap: .35rem; min-width: 0; }
.cty-kind { display: inline-flex; align-items: center; gap: .45rem; padding: 0 .7rem; white-space: nowrap; }
.cty-find { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: var(--s-2); }
.cty-search { display: flex; align-items: center; gap: .5rem; min-height: var(--tap); padding: 0 .9rem; border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--glass); color: var(--ink-3); }
.cty-search:focus-within { border-color: var(--accent); color: var(--ink-2); }
.cty-q { flex: 1; min-width: 0; min-height: var(--tap); border: 0; background: none; color: var(--ink); font: inherit; font-size: var(--t-body); outline: none; }
.cty-q::-webkit-search-cancel-button { -webkit-appearance: none; }
.cty-q::placeholder { color: var(--ink-3); }
.cty-hood-btn { min-width: 0; min-height: var(--tap); display: inline-flex; align-items: center; justify-content: space-between; gap: .4rem; padding: 0 .8rem 0 1rem; }
.cty-hood-word { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cty-hood-btn .ico { flex: none; color: var(--ink-3); }
/* the neighbourhood sheet: boroughs as groups, a chip per neighbourhood with what it holds (counts only here: what you would get) */
.cty-hood-sheet[open] { grid-template-rows: auto minmax(0, 1fr) auto; }
.cty-hood-body { max-height: min(26rem, 52vh); max-height: min(26rem, 52dvh); }
.cty-hood-body .chip-row { display: flex; flex-wrap: wrap; gap: .35rem; }
.cty-hood-body .chip-btn { display: inline-flex; align-items: center; gap: .45rem; }
.cty-hood-n { font-weight: 500; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.cty-hood-body .chip-label { display: block; margin: .3rem 0 .25rem; font-size: var(--t-small); color: var(--ink-2); }
.cty-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); min-height: var(--tap); }
.cty-count { font-size: var(--t-small); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.cty-count b { font-weight: 500; color: var(--ink); }
.cty-count[data-state="view"] b::before { content: ""; display: inline-block; width: .45rem; height: .45rem; margin-right: .4rem; border-radius: 50%; background: var(--accent); vertical-align: .08em; }
.cty-walk { min-height: var(--tap); padding: 0 1rem; }
.cty-walk[aria-pressed="true"] { border-color: var(--accent); }
.cty-list { min-height: 0; margin: 0; padding: 0; list-style: none; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; border-top: 1px solid var(--line); }
.cty-row { width: 100%; min-height: 3.25rem; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: .7rem; padding: .4rem .3rem; text-align: left; border-bottom: 1px solid var(--line); color: var(--ink); }
.cty-row:hover, .cty-row:focus-visible { background: color-mix(in srgb, var(--ink) 6%, transparent); }
.cty-row .cty-dot, .cty-row .cty-sign { grid-row: 1 / span 2; }
.cty-sign { flex: none; width: 1.5rem; height: 1.5rem; display: block; user-select: none; }
.cty-row-n { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cty-row-m { grid-column: 2; font-size: var(--t-small); color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cty-none { padding: var(--s-3) .3rem; color: var(--ink-3); font-size: var(--t-small); }

/* the card: the place's own sign, what and where above its name, the two things to do, Rohin's note, the facts */
.cty-card { grid-row: 3 / -1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; display: grid; gap: var(--s-3); align-content: start; padding: var(--s-3) var(--s-4) var(--s-4);
  border: 1px solid var(--line); border-radius: var(--r-3); background: linear-gradient(180deg, color-mix(in srgb, var(--bg-raise) 96%, var(--accent)) 0%, var(--bg-raise) 5.5rem); box-shadow: var(--shadow);
  animation: cty-in var(--fast, .2s) ease-out both; }
@keyframes cty-in { from { opacity: 0; transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) { .cty-card { animation: none; } }
.cty-card[hidden] { display: none; }
.cty-side[data-open] .cty-head, .cty-side[data-open] .cty-list { display: none; }
.cty-card-top { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .75rem; }
.cty-card-top .cty-sign { width: 2.5rem; height: 2.5rem; }
.cty-card-t { min-width: 0; display: grid; gap: .1rem; }
.cty-eyebrow { margin: 0; font-size: var(--t-small); line-height: 1.3; color: var(--ink-3); overflow-wrap: anywhere; }      /* wraps rather than cuts (QA 15 Nov: "Murray Hill, Manhatt…") */
.cty-card-top h3 { margin: 0; font-family: var(--font-title); font-size: 1.3rem; font-weight: 600; line-height: 1.2; overflow-wrap: anywhere; }
.cty-close { width: var(--tap); height: var(--tap); display: grid; place-items: center; border-radius: 50%; color: var(--ink-2); }
.cty-close:hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 8%, transparent); }
.cty-note { margin: 0; padding: .1rem 0 .1rem .8rem; border-left: 2px solid color-mix(in srgb, var(--accent) 55%, transparent); color: var(--ink); line-height: 1.45; overflow-wrap: anywhere; }
.cty-facts { display: grid; margin: 0; border-top: 1px solid var(--line); }
.cty-fact { display: grid; grid-template-columns: 6.6rem minmax(0, 1fr); gap: var(--s-3); align-items: baseline; padding: .5rem 0; border-bottom: 1px solid var(--line); }
.cty-fact:last-child { border-bottom: 0; }
.cty-fact dt { font-size: var(--t-small); color: var(--ink-3); }
.cty-fact dd { margin: 0; color: var(--ink); overflow-wrap: anywhere; }
.cty-acts { display: flex; flex-wrap: wrap; gap: var(--s-2); }

/* the map: a soft haze where a tilted city meets the sky, and the corners a touch deeper (drawn over the map, under its controls) */
.cty-map::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; border-radius: inherit;
  background: linear-gradient(180deg, color-mix(in srgb, var(--bg) 22%, transparent) 0%, transparent 16%), radial-gradient(130% 100% at 50% 45%, transparent 62%, color-mix(in srgb, var(--bg-sunk) 30%, transparent) 100%); }

.cty-layers-btn { min-height: var(--tap); padding: 0 1rem; }
.cty-sheet-row { display: flex; flex-wrap: wrap; gap: .4rem; }
.cty-sheet-light { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: var(--s-2) var(--s-3); }
.cty-hour-out { font-size: var(--t-small); color: var(--ink-2); font-variant-numeric: tabular-nums; text-align: right; }
.cty-hour { grid-column: 1 / -1; width: 100%; min-height: var(--tap); accent-color: var(--accent); }

/* an upright tablet and phones: the map over the panel */
@media (max-width: 1000px) {
  .cty { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; gap: var(--s-2); }
  .cty-side { grid-template-rows: auto auto auto auto; }
  .cty-kinds { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; }
  .cty-kinds::-webkit-scrollbar { display: none; }
  .cty-list { height: 13rem; }
  .cty-card { grid-row: auto; max-height: 17rem; }
  .cty-side[data-open] .cty-kinds, .cty-side[data-open] .cty-find { display: none; }
  .cty-card-top { order: -2; } .cty-acts { order: -1; }      /* the buttons stay in reach; the facts scroll under them */
  .cty-card-top .cty-sign { width: 2.1rem; height: 2.1rem; }
  .cty-head { min-height: 0; }
  .cty-head .cty-walk { margin: -.1rem 0; }
}
@media (max-width: 720px) {
  .cty-list { height: 6.5rem; }
  .cty-card { max-height: 14.5rem; padding: var(--s-2) var(--s-3) var(--s-3); gap: var(--s-2); }
  .cty-switch button { padding: 0 .7rem; }
  .cty-fact { grid-template-columns: 6.4rem minmax(0, 1fr); }
  .cty-head:has(.cty-walk[hidden]) { min-height: 0; }
}
@media (max-height: 700px) and (max-width: 1000px) { .cty-list { height: 3.25rem; } }
.cty-hood-body .chip-group { grid-template-columns: minmax(0, 1fr); gap: 0; }

/* ---- scene-radio.css */
/* rohin.me - page 2, Radio (js/scenes/radio.js): the parts added on 11-14. The schedule and the antennas are two views of
   the right-hand panel; an antenna channel plays in the same player as the station, with its level where the cover is. */

/* the two views */
.radio-tabs { display: flex; gap: var(--s-1); min-width: 0; }
.radio-tab { min-height: var(--tap); padding: 0 .7rem; margin-left: -.7rem; border-radius: var(--r-pill); font: inherit; font-size: var(--t-body); font-weight: 600; color: var(--ink-2); transition: color var(--fast), background var(--fast); }
.radio-tab + .radio-tab { margin-left: 0; }
.radio-tab:hover { color: var(--ink); }
.radio-tab[aria-selected="true"] { color: var(--ink); }
.radio-tabs:has(.radio-tab:not([hidden]) + .radio-tab:not([hidden])) .radio-tab[aria-selected="true"] { background: var(--accent-soft); }
.radio-tab[hidden] { display: none; }
.radio-day-head { align-items: center; }
.radio-sched { display: grid; gap: var(--s-3); min-width: 0; }
.radio-sched[hidden], .radio-ant[hidden], .radio-back[hidden], .radio-prog[hidden], .radio-count[hidden] { display: none; }

/* the antennas: a row per kind (Air, Sea, Weather, Ham), a button per channel; lit while someone is talking */
.radio-ant { display: grid; gap: var(--s-1); align-content: start; min-height: 0; overflow-y: auto; overscroll-behavior: contain; touch-action: pan-y pinch-zoom; }
.ant-group { display: grid; grid-template-columns: 4.25rem minmax(0, 1fr); gap: var(--s-2); align-items: start; }
.ant-group h4 { margin: 0; min-height: var(--tap); display: flex; align-items: center; font-size: var(--t-small); font-weight: 500; color: var(--ink-2); }
.ant-list { display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-1); min-width: 0; }
.ant { display: inline-flex; align-items: center; gap: .45rem; min-height: var(--tap); max-width: 100%; padding: 0 .75rem 0 .6rem; border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--glass); color: var(--ink); font: inherit; font-size: var(--t-small); transition: border-color var(--fast), background var(--fast), transform var(--fast) var(--ease); }
.ant:hover { border-color: var(--line-strong); }
.ant:active { transform: scale(.97); }
.ant-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ant-mhz { display: none; }   /* the frequency shows in the player once a channel plays */
.ant-dot { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); opacity: .55; }
.ant[data-quiet] .ant-dot { opacity: .25; }
.ant[data-now] .ant-dot { background: var(--accent); opacity: 1; box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
.ant[data-on] { border-color: var(--accent); background: var(--accent-soft); }

/* the player with a channel: the level of the last minutes instead of the cover, "Station" to go back */
.radio-art { position: relative; }
.radio-wave { position: absolute; inset: 0; width: 100%; height: 100%; display: none; }
.radio-player[data-ant] .radio-wave { display: block; }
.radio-player[data-ant] .radio-art-img, .radio-player[data-ant] .radio-glow { visibility: hidden; }
.radio-back { min-height: var(--tap); }

@media (max-width: 720px) {
  .ant-group { grid-template-columns: 3.6rem minmax(0, 1fr); gap: var(--s-1); }
  .ant { padding: 0 .65rem 0 .6rem; }
  .radio-controls .play { width: auto; flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) { .ant { transition: none; } }

/* ---- 15 Nov: two more views, "Played" (the station's time machine) and "New" (the newest albums on the air) */
@media (min-width: 901px) { .radio { height: min(100%, 36rem); } }
.radio[data-view="past"] .radio-day, .radio[data-view="new"] .radio-day { grid-template-rows: auto minmax(0, 1fr); align-content: stretch; }
@media (max-width: 900px) { .radio[data-view="past"], .radio[data-view="new"] { grid-template-rows: auto minmax(0, 1fr); align-content: stretch; } }
.radio-tabs { flex-wrap: nowrap; }
.radio-past[hidden], .radio-new[hidden], .past-axis[hidden], .past-note[hidden] { display: none; }
.past-note { flex: none; align-self: center; font-size: var(--t-tiny); color: var(--ink-2); }

/* Played: a strip of days ("Today" at the right end), a strip of the day's 24 hours (each a show, the now line on
   today), then the hour's songs with their covers, scrolling inside the panel */
.radio-past { display: grid; grid-template-rows: auto auto auto auto auto minmax(0, 1fr); gap: var(--s-1); min-height: 0; min-width: 0; }
.past-top { display: flex; align-items: center; gap: var(--s-2); min-width: 0; }
.past-days, .past-hours { position: relative; display: flex; height: var(--tap); touch-action: none; min-width: 0; flex: 1 1 auto; }
.past-days .slot, .past-hours .slot { position: relative; flex: 1 1 0; min-width: 0; height: 100%; }
.past-hours .slot[data-edge] { margin-left: 3px; }
.radio .radio-day .past-days .slot[disabled]::before, .radio .radio-day .past-hours .slot[disabled]::before { background: color-mix(in srgb, var(--ink) 6%, transparent); }
.radio .radio-day .past-hours .slot[data-future]::before { background: none; border: 1px dashed var(--line); }
.radio .radio-day .past-days .slot[aria-pressed="true"]::before, .radio .radio-day .past-hours .slot[aria-pressed="true"]::before { background: var(--accent); }
.past-days[data-few] .slot span { display: flex; align-items: center; justify-content: center; position: relative; height: 100%; padding: 0 2px; font-size: var(--t-tiny); font-weight: 600; color: var(--ink); overflow: hidden; white-space: nowrap; }
.radio .radio-day .past-days[data-few] .slot[aria-pressed="true"] span { color: var(--accent-ink); }
.past-days[data-few] .slot[disabled] span { color: var(--ink-2); font-weight: 500; }
.past-axis { display: flex; justify-content: space-between; font-size: .6875rem; color: var(--ink-2); }
.past-hours-wrap { position: relative; padding-top: 8px; margin-top: var(--s-1); }
.past-hours-wrap .ribbon-now[hidden] { display: none; }
.past-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-3); min-width: 0; padding-top: var(--s-2); font-size: var(--t-small); color: var(--ink-2); }
.past-head b { color: var(--ink); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.past-head span { flex: none; font-variant-numeric: tabular-nums; }
.past-list { min-height: 0; overflow-y: auto; overscroll-behavior: contain; touch-action: pan-y pinch-zoom; display: grid; align-content: start; margin: 0 calc(-1 * var(--s-2)); padding: 0 var(--s-2); }
.past-list li { display: grid; grid-template-columns: 2.75rem minmax(0, 1fr) auto; gap: var(--s-3); align-items: center; padding: .4rem 0; border-top: 1px solid var(--line); }
.past-list li:first-child { border-top: 0; }
.pl-text { display: grid; min-width: 0; font-size: var(--t-small); line-height: 1.3; }
.pl-text b { font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-text span { color: var(--ink-2); font-size: var(--t-tiny); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.past-list time { font-size: var(--t-tiny); color: var(--ink-2); font-variant-numeric: tabular-nums; }

/* covers: the station's own, fading in; an empty square while one loads or when there is none */
.cov { display: block; aspect-ratio: 1; border-radius: var(--r-1); overflow: hidden; background: var(--bg-sunk); border: 1px solid var(--line); }
.cov img { display: block; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity var(--med) var(--ease); }
.cov img.is-in { opacity: 1; }

/* New: the newest albums now in a show, on shelves by the day they came */
.radio-new { position: relative; display: grid; grid-template-rows: minmax(0, 1fr); min-height: 0; min-width: 0; }
.nw-top { position: absolute; top: 0; right: 0; z-index: 1; line-height: 1.4; }
.nw-scroll { min-height: 0; overflow-y: auto; overscroll-behavior: contain; touch-action: pan-y pinch-zoom; display: grid; align-content: start; gap: var(--s-4); }
.nw-group h4 { margin: 0 0 var(--s-2); font-size: var(--t-small); font-weight: 500; color: var(--ink-2); }
.nw-shelf { display: grid; grid-template-columns: repeat(auto-fill, minmax(6.25rem, 1fr)); gap: var(--s-4) var(--s-3); margin: 0; padding: 0; list-style: none; }
.nw-album { display: grid; gap: .1rem; min-width: 0; align-content: start; font-size: var(--t-tiny); line-height: 1.3; }
.nw-album .cov { margin-bottom: .35rem; box-shadow: 0 10px 18px -12px var(--shade); }
.nw-album b { font-size: var(--t-small); font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nw-album span { color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nw-none { color: var(--ink-2); font-size: var(--t-small); }

@media (max-width: 720px) {
  .radio-tab { padding: 0 .55rem; margin-left: -.55rem; }
  .radio-tabs { gap: 0; }
  .radio-day-head:has(.radio-tab:nth-child(4):not([hidden])) .radio-count { display: none; }
  .nw-shelf { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-3) var(--s-2); }
  .past-list li { grid-template-columns: 2.5rem minmax(0, 1fr) auto; gap: var(--s-2); }
}
@media (prefers-reduced-motion: reduce) { .cov img { transition: none; } }

/* ---- 15 Nov (r11): a phone with Safari's bars shows about 660 px: there the schedule keeps only the next show, so no
   row is cut in half at the panel's edge */
@media (max-width: 720px) and (max-height: 760px) { .radio-next li:nth-child(n+2) { display: none; } }

/* ---- 15 Nov (r12): talk hours. From 16 Nov the station has a talk hour at 07:00 and 22:00 (interviews, lectures,
   documentaries). It reads as itself: a calm "Talk" in small capitals, then the programme and its part. A programme
   without a picture shows its series in large type where the cover is. */
.talk-tag { font-style: normal; font-size: .6875rem; font-weight: 600; text-transform: uppercase; --ls: .12em; color: var(--ink-2); margin-right: .35rem; }
.radio-next li[data-talk] span { color: var(--ink); }
.ribbon-detail b .talk-tag { color: var(--ink-2); }
.radio-talkcard { position: absolute; inset: 0; display: none; flex-direction: column; justify-content: flex-end; padding: 10%; overflow: hidden;
  background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 16%, var(--bg-raise)), var(--bg-sunk)); }
.radio-player[data-card] .radio-talkcard { display: flex; }
.radio-player[data-card] .radio-art-img { visibility: hidden; }
.radio-talkcard span { display: none; font-size: .625rem; font-weight: 600; text-transform: uppercase; --ls: .14em; color: var(--ink-2); }
.radio-talkcard b { font-family: var(--font-serif); font-weight: 500; font-size: clamp(.95rem, .6rem + 1.2vw, 1.6rem); line-height: 1.1; color: var(--ink);
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.radio-player[data-ant] .radio-talkcard { display: none; }
.ribbon .slot[data-talk] { z-index: 1; }
.ribbon .slot[data-talk]::before { inset: 0 2px; background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--ink) 30%, transparent) 0 2px, color-mix(in srgb, var(--ink) 14%, transparent) 2px 6px); box-shadow: 0 0 0 2px var(--bg-raise); }
.ribbon .slot[data-talk][data-now]::before { background: var(--accent); }
.ribbon .slot[data-talk][data-picked]::before, .ribbon .slot[data-talk]:hover::before { background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--ink) 50%, transparent) 0 2px, color-mix(in srgb, var(--ink) 26%, transparent) 2px 6px); }
.cov-talk { display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 12%, var(--bg-sunk)); }
.cov-talk span { font-size: .5625rem; font-weight: 600; text-transform: uppercase; --ls: .12em; color: var(--ink-2); }

/* ---- 15 Nov (r12): closer to the station's own page (Rohin: "Make radio look more like radio.rohin.me"): the player
   takes on the cover's colour, the show in small spaced capitals, the title in the serif, a larger cover with a deep
   soft shadow, a plain 4 px progress line, and the lists under small capitals with a hairline. Soft look only; the
   other colour versions keep their own rules (css/look.css). */
:root[data-palette="classic"] {
  & .radio-player { background: linear-gradient(165deg, rgb(var(--cover-rgb, 128 128 128) / var(--cover-a, 0)) 0%, transparent 72%), var(--glass); transition: background var(--slow); }
  & .radio-player[style*="--cover-rgb"] { --cover-a: .30; }
  & .radio-show { font-size: .6875rem; font-weight: 600; text-transform: uppercase; --ls: .14em; color: var(--ink-2); display: flex; align-items: center; gap: .5rem; }
  & .radio-player[data-playing] .radio-show::before { content: ''; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
  & .radio-title { font-family: var(--font-serif); font-weight: 500; font-size: clamp(1.6rem, 1.05rem + 1.7vw, 2.5rem); line-height: 1.06; text-wrap: balance; }
  & .radio-by { font-size: var(--t-body); }
  & .radio-art { border-radius: 14px; border: 0; box-shadow: 0 24px 56px -22px var(--shade), 0 0 0 1px var(--line); }
  & .radio-track { height: 4px; border-radius: 2px; }
  & .radio-up { border-top: 0; padding-top: var(--s-2); }
  & .radio-up h3 { margin: 0; padding-bottom: var(--s-2); border-bottom: 1px solid var(--line); font-size: .6875rem; font-weight: 600; text-transform: uppercase; --ls: .14em; color: var(--ink-2); }
  & .radio-next { gap: 0 var(--s-5); }
  & .radio-next li { padding: .45rem 0; border-bottom: 1px solid var(--line); color: var(--ink); }
  & .radio-next time { font-size: var(--t-tiny); color: var(--ink-2); align-self: center; }
  & .ribbon-detail b { font-family: var(--font-serif); font-weight: 500; font-size: 1.125rem; }
  & .ribbon-detail b .talk-tag, & .radio-talkcard span { font-family: var(--font); }
  & .past-head b { font-family: var(--font-serif); font-weight: 500; font-size: 1.0625rem; }
  & .nw-album .cov, & .past-list .cov { border-radius: 6px; border: 0; }
  & .nw-album .cov { border-radius: 10px; box-shadow: 0 14px 26px -16px var(--shade); }
}
:root[data-palette="classic"][data-theme="light"] .radio-player[style*="--cover-rgb"] { --cover-a: .20; }
@media (min-width: 901px) { :root[data-palette="classic"] .radio-player { grid-template-columns: clamp(10rem, 17vw, 15rem) minmax(0, 1fr); } }
@media (max-width: 720px) {
  :root[data-palette="classic"] .radio-player { grid-template-columns: 6.25rem minmax(0, 1fr); }
  :root[data-palette="classic"] .radio-title { font-size: 1.5rem; line-height: 1.08; }
  :root[data-palette="classic"] .radio-by { font-size: var(--t-small); }
  :root[data-palette="classic"] .radio-next li { padding: .3rem 0; }
}

/* ---- 11-16 (UX round): whose station it is, the talk hours named on the ribbon, the Data panel's jump row */
.radio-station { margin: 0; font-size: .6875rem; font-weight: 600; text-transform: uppercase; --ls: .14em; letter-spacing: var(--ls); color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.radio-player[data-ant] .radio-station { display: none; }      /* an antenna channel is not the station */
.ribbon-talks { position: relative; height: 1rem; margin-bottom: -.35rem; }
.ribbon-talks[hidden] { display: none; }
.ribbon-talk { position: absolute; bottom: 0; font-size: .6875rem; font-weight: 600; line-height: 1; color: var(--ink-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.ribbon-talk::before { content: ''; display: inline-block; width: 8px; height: 8px; margin-right: .3rem; vertical-align: -1px; border-radius: 2px;
  background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--ink) 50%, transparent) 0 1.5px, color-mix(in srgb, var(--ink) 18%, transparent) 1.5px 4px); }
#radio .data-jump { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: var(--s-2); }
@media (max-width: 720px) {
  .radio-art { grid-row: 1 / span 4; }
}
/* QA 11-16: the schedule card never cut off. Wide screens: the day starts at the card's top (no empty band over the tabs)
   and Next lists up to six. Upright tablets: up to six. Phones: the card takes what is left under the player and its
   schedule scrolls inside it (pan-y hands a sideways drag to the page swipe); Next keeps three there. */
.radio-day { align-content: start; }
@media (max-width: 720px) {
  .radio { grid-template-rows: auto minmax(0, 1fr); align-content: stretch; }
  .radio-day { grid-template-rows: auto minmax(0, 1fr); align-content: stretch; }
  .radio-sched { min-height: 0; overflow-y: auto; overscroll-behavior: contain; touch-action: pan-y pinch-zoom; align-content: start; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
  .radio-next li:nth-child(n+4) { display: none; }
}
@media (max-width: 720px) and (max-height: 760px) { .radio-next li:nth-child(n+2) { display: grid; } .radio-next li:nth-child(n+4) { display: none; } }
/* a small phone (320 wide): smaller tabs, so four fit; the title on one line, cut short, never into the artist's line */
@media (max-width: 359px) {
  .radio-tab { padding: 0 .4rem; margin-left: -.4rem; font-size: var(--t-small); }
  .radio-title, :root[data-palette="classic"] .radio-title { font-size: 1.1875rem; -webkit-line-clamp: 1; line-clamp: 1; }
}

/* ---- scene-hikes.css */
/* Hikes: the panorama from a hike's high point (js/hikes-summit.js), the flight along the trail (js/hike3d.js fly) and the row under the land.
   The rest of the page's styles are in scenes.css. Tokens only. */
.hike-panobox { position: absolute; inset: 0; }
.hike-panobox[hidden] { display: none; }
.hike-pano { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: grab; display: block; }
.hike-pano:active { cursor: grabbing; }
.hike-pano:focus-visible { outline: 2px solid var(--accent); outline-offset: -4px; border-radius: var(--r-3); }

/* the row under the land: the surfaces (Photo, Contours, Map) or, in flight, the flight's bar on the left; Panorama and
   Fly on the right, Fly the filled button. Nothing of it lies on the land (only the + - tilt stack does). */
.hike-bar { display: flex; align-items: center; gap: var(--s-2); min-width: 0; min-height: var(--tap); }
.hike-bar .hike-style { flex: 0 1 auto; min-width: 0; }
.hike-bar .hike-style[hidden], .hike[data-fly] .hike-bar .hike-style { display: none; }
.hike-actpair { margin-left: auto; flex: none; display: flex; gap: var(--s-2); }
.hike-actpair:not(:has(> :not([hidden]))) { display: none; }
.hike-act { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: var(--tap); min-width: var(--tap); padding: 0 1rem 0 .85rem; border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--glass); font-size: var(--t-small); font-weight: 500; color: var(--ink); white-space: nowrap; transition: color var(--fast), background var(--med) var(--ease), border-color var(--fast), transform var(--fast) var(--ease); }
.hike-act[hidden] { display: none; }
.hike-act:hover { border-color: var(--line-strong); }
.hike-act:active { transform: scale(.96); }
.hike-act[aria-pressed="true"] { background: color-mix(in srgb, var(--ink) 12%, transparent); }
.hike-act .ico { flex: none; color: var(--accent); }
/* Fly: the main thing to do with a hike, filled */
.hike-act.hike-fly { border-color: transparent; background: var(--ink); color: var(--ink-inverse); font-weight: 600; padding: 0 1.15rem 0 .95rem; }
.hike-act.hike-fly .ico { color: currentColor; }
.hike-act.hike-fly:hover { box-shadow: 0 0 0 5px color-mix(in srgb, var(--ink) 10%, transparent); }
.hike-act.hike-fly[aria-pressed="true"] { background: var(--ink); box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--accent); }
/* the compass: the panorama's own, in its top corner (only on a phone that can tell where it points) */
.hike-compass { border: 1px solid var(--line); background: var(--glass-strong); backdrop-filter: blur(var(--blur)); -webkit-backdrop-filter: blur(var(--blur)); }
.hike-stagebox[data-pano] .hike-scale { display: none; }

.hike-flybar { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: var(--s-2); padding: 3px .9rem 3px 3px; border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--glass); }
.hike-flybar[hidden] { display: none; }
.hike-play { flex: none; width: var(--tap); height: var(--tap); display: grid; place-items: center; border-radius: 50%; color: var(--ink); background: color-mix(in srgb, var(--ink) 10%, transparent); }
.hike-play[hidden] { display: none; }
.hike-play:hover { background: color-mix(in srgb, var(--ink) 16%, transparent); }
.hike-flyread { flex: none; font-size: var(--t-small); font-weight: 500; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.hike-flybar:has(.hike-play[hidden]) .hike-flyread { padding-left: .6rem; }
.hike-flyline { flex: 1 1 auto; min-width: 1.5rem; height: 3px; border-radius: 2px; background: color-mix(in srgb, var(--ink) 14%, transparent); overflow: hidden; }
.hike-flyline b { display: block; height: 100%; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); }
/* in flight the scale note goes */
.hike-stagebox[data-fly] .hike-scale { display: none; }

/* a phone: the row has to hold Photo · Contours · Map, Panorama and Fly side by side */
@media (max-width: 520px) {
  .hike-bar { gap: .3rem; }
  .hike-bar .hike-style button { padding: 0 .55rem; font-size: .8125rem; }
  .hike-actpair { gap: .3rem; }
  .hike-act { padding: 0 .75rem; font-size: .8125rem; }
  .hike-act:not(.hike-fly):not(.hike-compass) .ico { display: none; }
  .hike-act.hike-fly { padding: 0 .9rem 0 .75rem; }
  .hike-go { padding: 0 .9rem; }
  .hike-go .ico { display: none; }
}
@media (max-width: 380px) {
  .hike-bar, .hike-actpair { gap: .25rem; }
  .hike-bar .hike-style { padding: 2px; }
  .hike-bar .hike-style button { padding: 0 .4rem; font-size: .78125rem; }
  .hike-act { padding: 0 .5rem; font-size: .78125rem; }
  .hike-act.hike-fly { padding: 0 .75rem; }
  .hike-act.hike-fly .ico { display: none; }
  .hike-head .hike-back { padding: 0 .8rem 0 .6rem; }
  .hike-go { padding: 0 .7rem; }
}
@media (prefers-reduced-motion: reduce) { .hike-act { transition: none; } }

/* in flight the land under the controls changes every frame: a blur behind them would be worked out again each frame
   (the costliest thing on a phone, more than the land itself), so in flight they are plain and a little more solid */
.hike-stagebox[data-fly] * { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
.hike-stagebox[data-fly] :is(.glass, .seg, .chip, .btn-quiet, .hike-act, .hike-zoom) { background: color-mix(in srgb, var(--bg) 78%, transparent); }

/* glaciers then and now (js/hikes-glaciers.js): one quiet line under the facts, only when the hike has a measured glacier */
.hike-glacier { margin: var(--s-3) 0 0; font-size: var(--label-size, .8125rem); color: var(--ink-2); font-variant-numeric: tabular-nums; }

/* ---- look.css */
/* rohin.me - the look, page by page. Loaded last. First the few rules of the soft default ("classic"), then the
   hard looks (every colour version but "classic"): the long part.

   tokens.css holds the colours and the roles of the type; system.css ("THE LOOK") restyles the frame and the shared
   pieces. This file does the same for what belongs to one page, so the page files (scenes.css, scene-<id>.css) stay
   as their authors left them and "classic" still shows them unchanged.

   The rules of the look, for a page built later:
     no pill, no glass, no shadow, no rounded box, no icon in a circle
     a block is set off by a rule over it (1px var(--rule)) and by space, never by a border around it
     a control is a plain rectangle or a word with a rule under it; what is on is underlined or filled with var(--on)
     names (a bird, a film, a hike) in var(--font-title); numbers in var(--font-num); labels over them in small
       capitals: font-family var(--font-label), font-size var(--label-size), uppercase, --ls: var(--label-track)
     letter-spacing is 0 everywhere; only small capitals are spaced, by setting --ls on the element
     nothing is drawn round a picture or a map: no border, no corner, no shadow */

/* Letter-spacing: nothing is squeezed, in any colour version. An element is spaced only when it or a parent sets --ls
   (the small capitals of the hard looks, their dark page title); in the soft look nothing sets it, so every letter
   stands at its own width. A negative value in a page's own CSS does nothing. The miniature of the Chazki app keeps
   its own type: it is a picture of another product. */
:root *:not(.cz-screen, .cz-screen *) { letter-spacing: var(--ls); }

/* =====================================================================================================
   THE SOFT LOOK (data-palette="classic", the default; "Soft" in the menu). The page files were written against it,
   so there is little here: only what made the first version of it look careless.
     numbers in a row share one soft panel, with a hairline between them, instead of standing in a box each
     an icon stands free in its colour where the circle round it said nothing (buttons keep their round shape)
     figures are tabular wherever numbers are read
   ===================================================================================================== */
:root[data-palette="classic"] {
  /* ---- numbers in a row: one panel */
  .stats { gap: 0; border: 1px solid var(--line); border-radius: var(--r-2); background: var(--glass); backdrop-filter: blur(var(--blur)); -webkit-backdrop-filter: blur(var(--blur)); overflow: hidden; }
  .stats > .stat { border: 0; border-radius: 0; background: none; backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: -1px 0 0 var(--line), 0 -1px 0 var(--line); }
  .stat-num, .num, time, .chip b { font-variant-numeric: tabular-nums lining-nums; }
  .stat-label { color: var(--ink-2); }

  /* ---- now: the four rows of what is heard */
  .hear-ico { width: 1.75rem; height: 1.75rem; border: 0; background: none; }
  .hearing a { grid-template-columns: 1.75rem minmax(0, 1fr) auto; gap: .7rem; }
  .hear-main b { font-size: 1.0625rem; }
  .hear-sub { font-size: .8125rem; }
  .nc-ico { border: 0; }

  /* ---- sky: the day's records, four in one panel on a phone */
  .sky-records > .stat { border-radius: 0; }
}

:root:not([data-palette="classic"]) {
  /* ------------------------------------------------------------ shared by several pages */
  /* names: the serif in light, the sans in dark */
  .radio-title, .hear-main b, .bird-name b, .hr-name, .hike-name, .city-text h3, .peak-name, .ribbon-detail b,
  .dg-title, .dg-page h4, .ow-d-name, .ow-row-name, .ow-item-name, .ow-crumb[aria-current], .sc-card-name h3, .sc-tile-t, .sf-title, .sf-rt, .cz-sent { font-family: var(--font-title); font-weight: var(--name-weight); text-transform: none; --ls: 0em; }
  /* numbers: the monospace for a figure that stands alone (a count, a clock time, a measure on a map). A phrase that
     has words in it stays in the sans, whose figures are tabular too: a monospaced phrase is loosely spaced. */
  .radio-times, .radio-next time, .bird-count, .bird-latest time, .spotted time, .seg-n, .hr-num b, .hike-ft, .hike-scale, .peak-ft, .note-at,
  .machine-where b, .kind b, .ring-tag, .plane-tag, .ow-row-n, .ow-tile b, .ow-cities b, .sc-count b, .sc-n, .sc-tile-y, .sf-ry,
  .dg-night b, .dg-ix-n { font-family: var(--font-num); font-weight: var(--num-weight); word-spacing: var(--num-space); --ls: 0em; }
  .hear-sub, .birds-sum, .sky-readout, .hr-nums, .hk-pager, .hikes-count, .city-count, .city-kinds, .radio-count, .sheet-count, .hike-read,
  .scrub-ends, .ribbon-hours, .axis-lane, .dg-meta, .sf-count { font-variant-numeric: tabular-nums lining-nums; }
  /* labels in small capitals */
  .hear-label, .radio-show, .chip-label, .ex-label, .hk-none, .machine-sample, .hike-wait, .axis-name, .data-block p.axis-name,
  .ow-group, .ow-out-head, .ow-sec h4, .ow-legend, .ow-tile span, .sc-src, .sc-label, .sc-tag, .sc-flag, .ow-tag, .ow-note, .dg-night span {
    font-family: var(--font-label); font-size: var(--label-size); font-weight: var(--label-weight); text-transform: var(--label-case); --ls: var(--label-track); }
  /* round buttons become square ones with a hairline */
  .sky-play, .bird-call, .hk-step, .hike-zoom button, .ow-zoom button, .ow-item-rec, .sc-zoom, .dg-step { border-radius: 0; }
  .sky-play:active, .bird-call:active, .hk-step:active, .hike-zoom button:active, .sky-live:active, .pick:active, .chip-btn:active, .kind:active, .play:active { transform: none; }

  /* ------------------------------------------------------------ 1. now */
  .scene-opening .scene-head { border-bottom-color: transparent; }
  .plane-tag { padding: .1rem .4rem; border-radius: 0; border: 0; border-left: 2px solid var(--c-sky); background: color-mix(in srgb, var(--bg) 78%, transparent); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .opening-clock { font-family: var(--font-label); font-size: var(--label-size); font-weight: var(--label-weight); text-transform: var(--label-case); --ls: var(--label-track); padding-bottom: .5rem; }
  .opening-text { gap: var(--s-4); }
  .hearing { border-bottom: 1px solid var(--line); }
  .hearing li { border-top: 1px solid var(--line); }
  .hearing li:first-child, .hearing li:nth-child(2) { border-top: 1px solid var(--rule); }
  .hearing a { grid-template-columns: 1.5rem minmax(0, 1fr) auto; gap: .6rem; border-radius: 0; }
  .hear-play { border-radius: 0; }
  .hearing a:hover { background: none; }
  .hearing a:hover .hear-main b { color: var(--accent); }
  .hear-ico { width: 1.5rem; height: 1.5rem; border: 0; border-radius: 0; background: none; }
  .hear-main { gap: .6rem; }
  .hear-main b { font-size: calc(1.0625rem * var(--name-scale)); }
  .hear-label { color: var(--ink-2); min-width: 4.2rem; }
  .scene-opening .stat { padding: .45rem 0 0; }
  .scene-opening .stat-label { color: var(--ink-2); font-size: var(--label-size); }
  /* the panel (css/scene-opening.css): on a wide screen a plain block of the page's colour with a rule over it; square buttons */
  .np-fold, .np-more, .np-pill { border-radius: 0; }
  .np-fold:hover { background: none; border-color: transparent; color: var(--accent); }
  .np-more { border-color: var(--line-strong); background: none; font-family: var(--font-label); font-size: .75rem; font-weight: var(--label-weight); text-transform: var(--label-case); --ls: var(--label-track); }
  .np-pill { border-color: var(--line-strong); background: var(--bg); font-family: var(--font-label); font-size: .75rem; font-weight: var(--label-weight); text-transform: var(--label-case); --ls: var(--label-track); }
  @media (min-width: 900px) and (min-aspect-ratio: 9 / 10) {
    .now-panel { gap: var(--s-2); border: 0; border-top: 1px solid var(--rule); background: var(--bg); }
    .now-panel[data-folded] { border-top: 0; background: none; }
    .now-panel .hear-label { min-width: 0; }
    .now-panel .scrub-buttons { gap: 0; }
  }
  @media (max-width: 720px) {
    .hearing li:nth-child(2) { border-top: 1px solid var(--line); }
    .opening-text { gap: var(--s-3); }
    .stats-4 { gap: var(--s-2) var(--s-5); }
    .scene-opening .stat { padding: .35rem 0 0; }
    .scene-opening .stat-num { font-size: 1.5rem; }
  }

  /* the card of one aircraft or vessel on the real map (js/now-map.js) */
  .now-card { padding: var(--s-3) var(--s-4); border-radius: 0; border: 1px solid var(--rule); background: var(--bg); backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: none; }
  .nc-head h3 { font-family: var(--font-title); font-size: calc(1.125rem * var(--name-scale)); font-weight: var(--name-weight); text-transform: none; --ls: 0em; }
  .nc-ico { width: 1.5rem; height: 1.5rem; border: 0; border-radius: 0; }
  .nc-close { border-radius: 0; }
  .nc-close:hover { background: none; color: var(--accent); }
  .nc-k { font-family: var(--font-label); font-size: var(--label-size); font-weight: var(--label-weight); text-transform: var(--label-case); --ls: var(--label-track); color: var(--ink-2); }
  .opening-text > .now-card { padding: var(--s-2) 0 0; border: 0; border-top: 1px solid var(--rule); background: none; }
  .rmap-credit { border-radius: 0; }

  /* ------------------------------------------------------------ 2. radio */
  .radio { gap: var(--s-7); }
  @media (min-width: 901px) { .radio { margin: var(--s-6) 0 auto; } }
  .radio-player { padding: var(--s-5) 0 0; align-content: start; }
  .radio-glow { display: none; }
  .radio-art { border-radius: 0; border: 1px solid var(--line-strong); box-shadow: none; background: var(--bg-sunk); }
  .radio-show { color: var(--accent); }
  .radio-title { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.375rem); line-height: 1.12; }
  .radio-track { height: 2px; border-radius: 0; background: var(--line); }
  .radio-track i { background: var(--accent); }
  .play { padding: 0 1.4rem 0 0; gap: 1rem; border-radius: 0; background: var(--on); color: var(--on-ink); }
  .play:hover { box-shadow: none; opacity: .88; }
  .play-ico { width: 3rem; height: 3rem; border-radius: 0; background: none; color: inherit; border-right: 1px solid color-mix(in srgb, var(--on-ink) 35%, transparent); }
  .play-label { font-family: var(--font-label); font-size: .8125rem; font-weight: var(--label-weight); text-transform: var(--label-case); --ls: var(--label-track); }
  .eq i { border-radius: 0; }
  .radio-day { padding: var(--s-5) 0 0; border: 0; border-radius: 0; background: none; align-content: start; }
  .slot::before { inset: 0 1px 0 0; border-radius: 0; background: color-mix(in srgb, var(--ink) 16%, transparent); }
  .slot:hover::before, .slot[data-picked]::before, .slot:focus-visible::before { transform: none; background: color-mix(in srgb, var(--ink) 45%, transparent); }
  .slot[data-now]::before { background: var(--accent); }
  .ribbon-now::before { border-radius: 0; top: -4px; left: -3px; width: 7px; height: 4px; }
  .ribbon-detail b { font-size: calc(1rem * var(--name-scale)); }
  .radio-next li { padding: .4rem 0; border-top: 1px solid var(--line); color: var(--ink); }
  .radio-next { gap: 0 var(--s-5); }
  @media (max-width: 720px) {
    .radio { gap: var(--s-3); }
    .radio-player { padding: var(--s-3) 0 0; }
    .radio-title { font-size: 1.375rem; }
    .play-ico { width: 2.75rem; height: 2.75rem; }
    .radio-day { padding: var(--s-3) 0 0; border-top: 1px solid var(--rule); }
  }

  /* ------------------------------------------------------------ 3. sky */
  .sky-map { border: 0; border-radius: 0; box-shadow: none; }
  .sky-legend { left: 0; top: 0; padding: .3rem .6rem; border: 0; border-radius: 0; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: none; -webkit-backdrop-filter: none; font-family: var(--font-label); font-size: var(--label-size); font-weight: var(--label-weight); text-transform: var(--label-case); --ls: var(--label-track); }
  .sky-ramp i { border-radius: 0; height: 4px; }
  .sky-readout { left: 0; bottom: 0; padding: .3rem .6rem; border: 0; border-radius: 0; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: none; -webkit-backdrop-filter: none; font-size: .8125rem; }
  .sky-map[data-replay] .sky-readout { background: var(--on); color: var(--on-ink); }
  .sky-tip { padding: .3rem .55rem; border-radius: 0; border: 1px solid var(--rule); background: var(--bg-raise); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .sky-scrub { padding: 0; border-radius: 0; }
  .sky-live { padding: 0 .8rem; border-radius: 0; border: 1px solid var(--line-strong); font-family: var(--font-label); font-size: .75rem; font-weight: var(--label-weight); text-transform: var(--label-case); --ls: var(--label-track); }
  .sky-live[aria-pressed="true"] { border-color: var(--ink); }
  .sky-play { border: 1px solid var(--line-strong); margin-left: -1px; }
  .scrub-buttons { gap: 0; }
  .scrub-range::-webkit-slider-thumb { border-radius: 0; background: linear-gradient(to right, transparent 10px, var(--accent) 10px, var(--accent) 12px, transparent 12px), linear-gradient(to bottom, var(--accent) 0 6px, transparent 6px) 6px 0 / 10px 100% no-repeat; }
  .scrub-range::-moz-range-thumb { border-radius: 0; background: linear-gradient(to right, transparent 10px, var(--accent) 10px, var(--accent) 12px, transparent 12px), linear-gradient(to bottom, var(--accent) 0 6px, transparent 6px) 6px 0 / 10px 100% no-repeat; }
  .sky-records { gap: var(--s-3) var(--s-5); }
  .sky-records .stat { padding: .45rem 0 0; }
  .sky-chips { gap: .1rem var(--s-4); }
  .sky-chips .chip { border-radius: 0; }
  .spotted li { color: var(--ink); }
  @media (max-width: 720px) {
    .sky-scrub { padding: 0; }
    .sky-records { gap: .3rem .6rem; }
    .sky-records .stat { padding: .3rem 0 0; border-radius: 0; }
    .sky-records .stat-num { font-size: .9375rem; }
    .sky-records .stat-label { font-size: var(--label-size); --ls: .04em; }
    .sky-chips { gap: 0 .8rem; }
  }
  @media (max-width: 380px) {
    .sky-records .stat-num { font-size: .875rem; }
    .sky-chips .chip { min-height: 1.75rem; padding: 0 0 0 .5rem; }
  }

  /* ------------------------------------------------------------ 4. birds */
  .birds-main { padding: var(--s-2) 0 0; }
  .birds-top { gap: var(--s-2) var(--s-5); }
  .bird-axis .axis-day { height: 2px; border-radius: 0; background: var(--accent); }
  .axis-now { width: 1px; height: 10px; margin-left: 0; bottom: 0; border-radius: 0; box-shadow: none; }
  .bird-row { padding: .5rem 0; }
  .bird-photo { border-radius: 0; border: 0; background: var(--bg-sunk); }
  .bird-name b { font-size: calc(1.0625rem * var(--name-scale)); }
  .bird-name span { font-family: var(--font-sci); font-style: italic; font-size: .875rem; color: var(--ink-2); }
  .bird-lane { border-radius: 0; background: none; border-bottom: 1px solid var(--line); }
  .bird-lane .axis-day { background: color-mix(in srgb, var(--accent) 7%, transparent); border-inline: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); }
  .beat { box-shadow: 0 0 0 1.5px var(--bg); }
  .daybar { border-radius: 0; }
  @media (hover: hover) { .beat::after, .daybar::after { border-radius: 0; border-color: var(--rule); } }
  .bird-count { color: var(--ink); font-size: .9375rem; }
  .bird-call { border: 1px solid var(--line-strong); }
  .bird-call[aria-pressed="true"] { background: var(--on); color: var(--on-ink); border-color: var(--on); }
  .bird-latest li { color: var(--ink); }
  @media (max-width: 720px) { .birds-main { padding: var(--s-1) 0 0; } }

  /* ------------------------------------------------------------ 5. hikes */
  .hk-data-btn .ico, .hike-back .ico, .hk-data-close .ico, .save-btns .btn .ico { color: currentColor; }
  .hike-search { padding: 0 .1rem; border: 0; border-bottom: 1px solid var(--line-strong); border-radius: 0; background: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .hike-search:focus-within { border-bottom-color: var(--accent); }
  .pick { padding: 0 .9rem; border-radius: 0; border: 1px solid var(--line-strong); background: none; backdrop-filter: none; -webkit-backdrop-filter: none; font-family: var(--font-label); font-size: .75rem; font-weight: var(--label-weight); text-transform: var(--label-case); --ls: var(--label-track); }
  .pick:hover { border-color: var(--ink); }
  .pick .ico { color: currentColor; }
  .pick-n { border-radius: 0; background: var(--on); color: var(--on-ink); font-family: var(--font-num); --ls: 0em; }
  .hk-chip { border-radius: 0; border: 1px solid var(--line-strong); background: none; backdrop-filter: none; -webkit-backdrop-filter: none; color: var(--ink); }
  .hk-chip:hover { border-color: var(--ink); }
  .hk-chip .ico { color: currentColor; }
  .hk-chip[aria-pressed="true"] { border-color: var(--on); background: var(--on); color: var(--on-ink); }
  .hk-pop, .hk-list-sheet { border-radius: 0; border: 1px solid var(--rule); box-shadow: none; }
  .hk-bar .btn .ico, .hike-go .ico, .hike-act .ico { color: currentColor; }
  .hk-list-close { border-radius: 0; }
  .hk-rec { border-radius: 0; border: 0; border-top: 1px solid var(--rule); background: none; padding: .6rem 0; }
  .hk-rec:hover { background: none; }
  .hk-rec:hover .hk-rec-name { color: var(--accent); }
  .hk-rec-k { font-family: var(--font-label); font-size: var(--label-size); text-transform: var(--label-case); --ls: var(--label-track); }
  .hk-rec-name { font-family: var(--font-title); }
  .hk-rec-v { font-family: var(--font-num); font-weight: var(--num-weight); }
  .hike-act, .hike-flybar { border-radius: 0; border: 1px solid var(--line-strong); background: none; }
  .hike-act[aria-pressed="true"] { background: var(--on); border-color: var(--on); color: var(--on-ink); }
  .hike-act.hike-fly { border-radius: 0; background: var(--on); color: var(--on-ink); }
  .hike-act.hike-fly[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--on-ink); }
  .hike-play { border-radius: 0; }
  .hk-rows { border-top: 1px solid var(--rule); }
  .hike-row { padding: 0; }
  .hike-row:hover, .hike-row:focus-visible, .hike-row[aria-current] { background: none; }
  .hike-row:hover .hr-name, .hike-row[aria-current] .hr-name { color: var(--accent); }
  .hike-row[aria-current] { box-shadow: none; }
  .hr-name { font-size: calc(1rem * var(--name-scale)); }
  .hr-num b { color: var(--ink); }
  .hike-ll b { font-family: var(--font-num); font-weight: var(--num-weight); }
  .hk-map { grid-template-columns: minmax(0, 1fr); }
  .hikes-areas { padding: 0; }
  .hikes-map-frame { border: 0; border-radius: 0; box-shadow: none; }
  .hikes-map-cv:focus-visible, .hike-canvas:focus-visible { border-radius: 0; }
  .hikes-map-tip, .hike-tag, .scatter-tag, .hike-scale { border-radius: 0; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .hikes-map-tip { border-color: var(--rule); background: var(--bg-raise); }
  .hike-tag { border: 0; border-left: 1px solid var(--ink-3); background: color-mix(in srgb, var(--bg) 80%, transparent); }
  .hike-tag.is-spot { border-left: 0; }
  .hike-tags[data-photo] .hike-tag { background: color-mix(in srgb, var(--on-photo-shade) 72%, transparent); border-left-color: color-mix(in srgb, var(--paper) 45%, transparent); }      /* over the aerial picture: light words on a dark slip, in both modes */
  .hike-tags[data-photo] .hike-tag.is-spot { background: var(--on-photo); }
  .hike-scale { border: 0; background: color-mix(in srgb, var(--bg) 86%, transparent); }
  .hike-zoom { padding: 0; border-radius: 0; border: 1px solid var(--line-strong); background: var(--bg); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .hike-zoom button + button { border-top: 1px solid var(--line-strong); }
  .hike-zoom button:hover { background: none; color: var(--accent); }
  .hikes-sheet { border-radius: 0; border: 1px solid var(--rule); box-shadow: none; }
  .sheet-head h4 { font-family: var(--font-title); font-size: calc(1.375rem * var(--name-scale)); font-weight: var(--name-weight); }
  .chip-btn, .kind { border-radius: 0; border: 1px solid var(--line-strong); background: none; color: var(--ink); }
  .chip-btn:hover, .kind:hover { border-color: var(--ink); }
  .chip-btn[aria-pressed="true"], .kind[aria-pressed="true"] { border-color: var(--on); background: var(--on); color: var(--on-ink); }
  .kind[aria-pressed="true"] b { color: inherit; }
  .chip-row { gap: .4rem; }
  .hike-stagebox { border: 0; border-radius: 0; background: var(--bg-sunk); box-shadow: none; }
  .hike-canvas.hike-flat { border-radius: 0; }
  .hike-mark { border-radius: 0; rotate: 45deg; width: 10px; height: 10px; margin: -5px 0 0 -5px; box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent); }
  .hike-style { background: var(--bg); border: 1px solid var(--line-strong); }
  .hike-style button { margin-bottom: 0; }
  .hike-tabs { gap: 0; padding: 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: none; }
  .hike-tabs button { border-radius: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; font-family: var(--font-label); font-size: .75rem; font-weight: var(--label-weight); text-transform: var(--label-case); --ls: var(--label-track); }
  .hike-tabs button[aria-selected="true"] { background: none; border-bottom-color: var(--on); }
  .hike-panel { border: 0; border-radius: 0; background: none; }
  .hike-pane { padding: var(--s-3) 0; }
  .hike-pane h4 { font-family: var(--font-label); font-size: var(--label-size); font-weight: var(--label-weight); text-transform: var(--label-case); --ls: var(--label-track); color: var(--ink-2); }
  .hike-stats { gap: var(--s-3) var(--s-5); }
  .hike-stats .stat { padding: .4rem 0 0; }
  .hike-stats .stat-label { font-size: var(--label-size); color: var(--ink-2); }
  .about-body { font-size: .9375rem; color: var(--ink); }
  .ex-value { font-weight: 600; }
  .ex-quote { font-family: var(--font-sci); font-style: italic; font-size: .9375rem; }
  .hike-topdot { border-radius: 0; }
  .note, .peak { border-radius: 0; padding-inline: 0; }
  .note:hover, .peak:hover { background: none; }
  .note:hover b, .peak:hover .peak-name { color: var(--accent); }
  .save-code { border-radius: 0; }
  .hk-data { padding: var(--s-3) 0 0; border: 0; border-radius: 0; background: var(--bg); box-shadow: none; }
  .hk-data-head h3 { font-family: var(--font-title); font-size: calc(1.375rem * var(--name-scale)); font-weight: var(--name-weight); text-transform: none; --ls: 0em; }
  .scatter-ring, .scatter-here { border-radius: 0; }
  @media (max-width: 720px) {
    .hike-panel { border-radius: 0; }
    .hikes-sheet { border: 0; border-top: var(--rule-w) solid var(--rule); border-radius: 0; box-shadow: none; }
    .hike-tabs button { font-size: .6875rem; padding: 0 .1rem; --ls: .04em; }
    .hikes-areas button { font-size: .6875rem; padding: 0 .3rem; --ls: .04em; }
    .hike-row { padding: 0; }
  }

  /* ------------------------------------------------------------ search fields, pickers, stages: the same on every page that has them */
  .ow-search, .sc-search, .sf-search { padding: 0 .1rem; border: 0; border-bottom: 1px solid var(--line-strong); border-radius: 0; box-shadow: none; background: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .ow-search:focus-within, .sc-search:focus-within, .sf-search:focus-within { border-bottom-color: var(--accent); box-shadow: none; }
  .sc-pick, .dg-date, .sc-chip { border-radius: 0; border: 1px solid var(--line-strong); background: none; backdrop-filter: none; -webkit-backdrop-filter: none; font-family: var(--font-label); font-size: .75rem; font-weight: var(--label-weight); text-transform: var(--label-case); --ls: var(--label-track); color: var(--ink); }
  .sc-pick:hover, .dg-date:hover, .sc-chip:hover { border-color: var(--ink); }
  .sc-pick:active, .sc-chip:active, .dg-date:active, .dg-step:active, .sc-zoom:active { transform: none; }
  .sc-pick .ico { color: currentColor; }
  .sc-chip[aria-pressed="true"] { border-color: var(--on); background: var(--on); color: var(--on-ink); }
  .sc-n { border-radius: 0; background: var(--on); color: var(--on-ink); }
  .ow-kind, .ow-state, .sf-more, .sc-select { border-radius: 0; border: 0; border-bottom: 1px solid var(--line-strong); background-color: transparent; }
  .ow-stage, .sc-stage, .sf-stage, .sf-canvas { border: 0; border-radius: 0; box-shadow: none; }
  .ow-gl:focus-visible, .sc-wall:focus-visible, .sc-strip:focus-visible, .dg-read:focus-visible, .dg-ix:focus-visible, .dg-nl-row:focus-visible, button.dg-night:focus-visible { border-radius: 0; }
  .ow-zoom { padding: 0; border-radius: 0; border: 1px solid var(--line-strong); background: var(--bg); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .ow-zoom button + button { border-top: 1px solid var(--line-strong); }
  .ow-zoom button:hover { background: none; color: var(--accent); }
  .ow-note, .sc-tag, .sc-hover, .sf-tip { border-radius: 0; border: 0; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .sc-tag::before, .sc-flag::before { border-radius: 0; }
  .sc-flag, .ow-tag { border-radius: 0; }

  /* ------------------------------------------------------------ 6. who owns */
  /* the map of Who Owns (round 2): nothing round the map, its tools as plain rectangles, the key and the card set off by a rule */
  .ow-mapbox { border: 0; border-radius: 0; box-shadow: none; }
  .ow-map-tools { padding: 0; border-radius: 0; border: 1px solid var(--line-strong); background: var(--bg); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .ow-map-usa { border-radius: 0; font-family: var(--font-label); font-size: .6875rem; font-weight: var(--label-weight); text-transform: var(--label-case); --ls: var(--label-track); }
  .ow-map-usa[aria-pressed="true"] { background: var(--on); color: var(--on-ink); }
  .ow-map-note, .ow-map-key, .ow-kinds-legend { border: 0; border-radius: 0; background: color-mix(in srgb, var(--bg) 88%, transparent) !important; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .ow-map-key b { font-family: var(--font-num); font-weight: var(--num-weight); }
  .ow-map-card { border: 0; border-top: 1px solid var(--rule); border-radius: 0; background: var(--bg); box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .ow-map-text h4 { font-family: var(--font-title); font-size: calc(1rem * var(--name-scale)); font-weight: var(--name-weight); }
  .ow-map-x { border-radius: 0; }
  .ow-map-x:hover { background: none; color: var(--accent); }
  .ow-tabs { gap: 0; padding: 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: none; }
  .ow-tabs button { padding: 0 .2rem; border-radius: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; font-family: var(--font-label); font-size: .6875rem; font-weight: var(--label-weight); text-transform: var(--label-case); --ls: var(--label-track); }
  .ow-tabs button[aria-selected="true"] { background: none; border-bottom-color: var(--on); }
  .ow-by button { padding: 0 .25rem; font-size: .6875rem; --ls: .02em; }
  .ow-group { padding-inline: 0; color: var(--ink-2); }
  .ow-row { padding: 0; }
  .ow-row:hover, .ow-row:focus-visible, .ow-row[aria-current] { background: none; }
  .ow-row:hover .ow-row-name, .ow-row[aria-current] .ow-row-name { color: var(--accent); }
  .ow-row[aria-current], .ow-out-row[aria-current] { box-shadow: none; }
  .ow-row-name { font-size: calc(1rem * var(--name-scale)); }
  .ow-stage { background: var(--bg-sunk); }
  .ow-out-head { padding-inline: 0; }
  .ow-out-row[aria-current] { color: var(--accent); }
  .ow-detail { padding: var(--s-3) 0 0; border: 0; border-top: 1px solid var(--rule); border-radius: 0; background: none; }
  .ow-d-name { font-size: calc(1.5rem * var(--name-scale)); line-height: 1.15; }
  .ow-tile { padding: .4rem 0 0; border: 0; border-top: 1px solid var(--rule); border-radius: 0; background: none; }
  .ow-tile b { font-size: 1.25rem; }
  .ow-sec h4 { color: var(--ink-2); }
  .ow-item-main { border-radius: 0; padding-inline: 0; }
  .ow-item-name { font-size: calc(1rem * var(--name-scale)); }
  @media (max-width: 720px) { .ow-row { padding: 0; } }

  /* ------------------------------------------------------------ 7. scarecrow */
  .sc-count b { font-size: 1.5rem; }
  .sc-stage { background: var(--bg-sunk); }
  .sc-strip-cv { border-radius: 0; box-shadow: none; }
  .sc-strip-view { border-radius: 0; border-width: 1px 2px; box-shadow: none; }
  .sc-spine { border-radius: 0; }
  .sc-list { padding: 0; }
  .sc-tile { border-radius: 0; padding: 0; border-bottom: 1px solid var(--line); }
  .sc-tile:hover { background: none; }
  .sc-tile:hover .sc-tile-t { color: var(--accent); }
  .sc-tile-t { font-size: calc(1rem * var(--name-scale)); }
  .sc-card { padding: var(--s-3) 0 0; border: 0; border-top: 1px solid var(--rule); border-radius: 0; background: var(--bg); backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: none; }
  .sc-card-name h3 { font-size: calc(1.5rem * var(--name-scale)); line-height: 1.15; }

  /* ------------------------------------------------------------ 8. dvd / vhs */
  .sf-dot { border-radius: 0; }
  .sf-jump { border-radius: 0; border: 0; border-bottom: 1px solid var(--line-strong); background-color: transparent; }
  .sf-eps-h { font-family: var(--font-label); font-size: var(--label-size); font-weight: var(--label-weight); text-transform: var(--label-case); --ls: var(--label-track); color: var(--ink-2); }
  .sf-epn, .sf-epy { font-family: var(--font-num); }
  .sf-list { gap: 0 var(--s-5); }
  .sf-row { padding: .2rem 0 .2rem .7rem; border-radius: 0; border-left: 4px solid var(--ty); border-bottom: 1px solid var(--line); background: none; }
  .sf-row:hover { background: none; }
  .sf-row:hover .sf-rt, .sf-row[aria-current] .sf-rt { color: var(--accent); }
  .sf-row[aria-current] { background: none; box-shadow: none; }
  .sf-rt { font-size: calc(1rem * var(--name-scale)); }
  .sf-card { padding: var(--s-3) 0 0; border-top: 1px solid var(--rule); border-radius: 0; background: var(--bg); }
  .sf-title { font-size: calc(1.375rem * var(--name-scale)); line-height: 1.15; }
  .sf-tags .chip { padding: 0 0 0 .6rem; }
  .sf-pos::-webkit-slider-runnable-track { height: 2px; border-radius: 0; }
  .sf-pos::-moz-range-track { height: 2px; border-radius: 0; }
  .sf-pos::-webkit-slider-thumb { width: 28px; height: 12px; margin-top: -5px; border-radius: 0; }
  .sf-pos::-moz-range-thumb { width: 28px; height: 12px; border-radius: 0; }
  .sf-ask-form input, .cz-field input { border-radius: 0; border: 0; border-bottom: 1px solid var(--line-strong); background: none; padding: 0 .1rem; }

  /* ------------------------------------------------------------ 9. night digest */
  .dg-step { border: 1px solid var(--line-strong); background: none; }
  .dg-step:hover { border-color: var(--ink); }
  .dg-night { border-radius: 0; border: 0; border-bottom: 2px solid transparent; }
  button.dg-night { border: 0; border-bottom: 2px solid transparent; background: none; }
  button.dg-night[aria-pressed="true"] { background: none; color: var(--ink); border-color: var(--on); }
  button.dg-night[aria-pressed="true"] span { color: var(--accent); }
  .dg-night b { font-size: 1.0625rem; }
  .dg-ix { border-radius: 0; padding-inline: 0; border-top: 1px solid var(--line); }
  .dg-ix[aria-current="true"], .dg-nl-row[aria-current="true"] { background: none; color: var(--accent); }
  .dg-ix[aria-current="true"] .dg-ix-n { color: var(--accent); font-weight: 400; }
  .dg-ix-list { gap: 0; }
  .dg-read { border: 0; border-top: 1px solid var(--rule); border-radius: 0; background: none; }
  .dg-doc { font-size: 1.0625rem; }
  .dg-page p { font-family: var(--font-title); font-size: calc(1.0625rem * var(--name-scale)); line-height: 1.6; }
  .dg-nl-row { border-radius: 0; padding-inline: 0; border-top: 1px solid var(--line); }
  .dg-title { font-size: clamp(1.75rem, 1.4rem + 1.6vw, 2.75rem); line-height: 1.08; }
  .dg-page h4 { font-size: calc(1.1875rem * var(--name-scale)); line-height: 1.25; }
  .dg-qr-code, .cz-qr-code { border-radius: 0; }

  /* ------------------------------------------------------------ 10. chazki (the miniature of the app keeps its own look; the phone round it is the picture) */
  .cz-phone { box-shadow: none; }
  .cz-film { border-radius: 0; border: 1px solid var(--rule); box-shadow: none; }
  .cz-video { border-radius: 0; }
  .cz-sent { font-size: calc(1.5rem * var(--name-scale)); }
  @media (max-width: 720px) {
    .cz-phone { border-radius: 0; }
    .cz-ways { gap: .375rem; }
    .cz-way { flex: 1 1 auto; min-width: 0; padding: 0 .5rem; font-size: .6875rem; --ls: .04em; gap: .3rem; }
    .sheet.cz-invite { border-radius: 0; border-bottom: var(--rule-w) solid var(--rule); }
  }

  /* ------------------------------------------------------------ 11. machine room */
  .node-tag { font-family: var(--font-label); text-transform: var(--label-case); --ls: var(--label-track); }
  .machine-numbers { gap: var(--s-4) var(--s-5); }
  .machine-numbers .stat { padding: .45rem 0 0; }
  .machine-numbers .stat-label { color: var(--ink-2); font-size: var(--label-size); }
  .machine-kinds { gap: .4rem; }
  .kind { font-size: .8125rem; }
  .machine-pick { padding: 0 2rem 0 0; border: 0; border-bottom: 1px solid var(--line-strong); border-radius: 0; background-color: transparent; background-position: calc(100% - .45rem) 55%, calc(100% - .15rem) 55%; }
  @media (max-width: 720px) {
    .machine-numbers { gap: var(--s-2) var(--s-5); }
    .machine-numbers .stat { padding: .35rem 0 0; }
    .machine-numbers .stat-label { font-size: var(--label-size); }
  }

  /* ------------------------------------------------------------ 12. cities */
  .cities { gap: var(--s-6); }
  .city-text { padding: var(--s-3) 0 0; border-top: 1px solid var(--line); }
  .city-text h3 { font-size: calc(1.75rem * var(--name-scale)); text-transform: none; }
  .city-go { padding: 0 .9rem; border-radius: 0; border: 1px solid var(--line-strong); font-family: var(--font-label); font-size: .75rem; font-weight: var(--label-weight); text-transform: var(--label-case); --ls: var(--label-track); }
  .city:hover .city-go { border-color: var(--ink); }
  .city-go .ico { color: currentColor; }
  @media (max-width: 900px) { .city + .city { border-top: 1px solid var(--rule); } }
  @media (max-width: 720px) { .cities { gap: var(--s-3); } .city-text { padding: var(--s-2) 0 0; } .city-text h3 { font-size: calc(1.375rem * var(--name-scale)); } }

  /* ------------------------------------------------------------ 4. birds: the sky, the chosen bird (js/birds-sky.js) */
  .bd-listen[aria-pressed="true"] { background: var(--on); color: var(--on-ink); border-color: var(--on); }
  .bd-card { padding: var(--s-3) 0 0; border-top: 1px solid var(--rule); }
  .bird-row { padding-inline: 0; } .bird-axis { padding-inline: 0; }
  .bd-card .bird-name b { font-size: calc(1.375rem * var(--name-scale)); }
  .bd-facts dt, .sig-facts dt, .cty-fact dt { font-family: var(--font-label); font-size: var(--label-size); font-weight: var(--label-weight); text-transform: var(--label-case); --ls: var(--label-track); color: var(--ink-2); }
  .bd-facts dd, .bd-sky-l, .axis-lane { font-family: var(--font-num); font-weight: var(--num-weight); word-spacing: var(--num-space); }

  /* ------------------------------------------------------------ 4. signals */
  .sig-key, .sig-hours i { border-radius: 0; }
  .sig-range::-webkit-slider-thumb { border-radius: 0; }
  .sig-range::-moz-range-thumb { border-radius: 0; }
  .sig-band:hover, .sig-band[aria-pressed="true"] { background: none; }
  .sig-band:hover .sig-name, .sig-band[aria-pressed="true"] .sig-name { color: var(--accent); }
  .sig-band[aria-pressed="true"] { border-top-color: var(--on); }
  .sig-freq, .sig-tick, .sig-tick-h, .sig-when, .sig-items time, .sig-facts dd { font-family: var(--font-num); font-weight: var(--num-weight); word-spacing: var(--num-space); }
  .sig-side-title, .sig-sheet-title, .mr-head h3, .cty-card-top h3 { font-family: var(--font-title); font-size: calc(1.125rem * var(--name-scale)); font-weight: var(--name-weight); text-transform: none; --ls: 0em; }
  .sig-facts div { border-top-color: var(--rule); }

  /* ------------------------------------------------------------ 12. machine room: the room and its list (js/machine-room.js) */
  .machine-stage { border-radius: 0; }
  .machine-stage:focus-visible { box-shadow: none; outline: 2px solid var(--accent); outline-offset: -2px; }
  .machine-sample { padding: 0 .5rem; margin: 0; border: 0; background: color-mix(in srgb, var(--bg) 86%, transparent); }
  .mr-list { row-gap: 0; border-top: 1px solid var(--rule); }
  .mr-row { padding: 0 .1rem; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; color: var(--ink); }
  .mr-row:hover, .mr-row[aria-pressed="true"] { background: none; }
  .mr-row:hover .mr-name, .mr-row[aria-pressed="true"] .mr-name { color: var(--accent); }
  .mr-row[aria-pressed="true"] { border-bottom-color: var(--on); }
  .mr-row b, .mr-acts time, .tray-tag .n { font-family: var(--font-num); font-weight: var(--num-weight); word-spacing: var(--num-space); }
  .mr-dot, .machine-ticks i { border-radius: 0; }
  .machine-scrub { -webkit-appearance: none; appearance: none; }
  .machine-scrub::-webkit-slider-runnable-track { height: 2px; border-radius: 0; background: var(--line-strong); }
  .machine-scrub::-moz-range-track { height: 2px; border-radius: 0; background: var(--line-strong); }
  .machine-scrub::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 12px; margin-top: -5px; border: 0; border-radius: 0; background: var(--accent); }
  .machine-scrub::-moz-range-thumb { width: 28px; height: 12px; border: 0; border-radius: 0; background: var(--accent); }

  /* ------------------------------------------------------------ 13. cities: the map, the panel, the card (js/scenes/cities.js) */
  .cty-map { border: 0; border-radius: 0; }
  .cty-search { padding: 0 .1rem; border: 0; border-bottom: 1px solid var(--line-strong); border-radius: 0; background: none; }
  .cty-search:focus-within { border-bottom-color: var(--accent); }
  .cty-hood { padding: 0 .1rem; border: 0; border-bottom: 1px solid var(--line-strong); border-radius: 0; background-color: transparent; }
  .cty-dot { border-radius: 0; }
  .cty-kind b { font-family: var(--font-num); font-weight: var(--num-weight); color: inherit; opacity: .7; }
  .cty-list { border-top-color: var(--rule); }
  .cty-row { padding-inline: 0; }
  .cty-row:hover, .cty-row:focus-visible { background: none; }
  .cty-row:hover .cty-row-n { color: var(--accent); }
  .cty-row-n { font-family: var(--font-title); font-size: calc(1rem * var(--name-scale)); font-weight: var(--name-weight); }
  .cty-card { padding: var(--s-3) 0 0; border: 0; border-top: 1px solid var(--rule); border-radius: 0; background: var(--bg); }
  .cty-card-top h3 { font-size: calc(1.25rem * var(--name-scale)); }
  .cty-fact { grid-template-columns: 8.4rem minmax(0, 1fr); }      /* the label in spaced capitals is wider than the word was ("Neighbourhood") */
  .cty-close { border-radius: 0; }
  .cty-close:hover { background: none; color: var(--accent); }
  .cty-walk[aria-pressed="true"] { border-color: var(--on); background: var(--on); color: var(--on-ink); }
}

