
@font-face{font-family:"IBM Plex Sans";font-style:normal;font-weight:400;font-display:swap;src:url(/assets/fonts/ibm-plex-sans-400.woff2) format("woff2")}
@font-face{font-family:"IBM Plex Sans";font-style:normal;font-weight:500;font-display:swap;src:url(/assets/fonts/ibm-plex-sans-500.woff2) format("woff2")}
@font-face{font-family:"IBM Plex Mono";font-style:normal;font-weight:400;font-display:swap;src:url(/assets/fonts/ibm-plex-mono-400.woff2) format("woff2")}
@font-face{font-family:"IBM Plex Sans";font-style:normal;font-weight:600;font-display:swap;src:url(/assets/fonts/ibm-plex-sans-600.woff2) format("woff2")}
/* Base styles shared by templates: introdus's Neutral palette (introdus-neutral.css)
   on IBM Plex, with Fluent 2 shape, depth and motion. Colours come from custom
   properties set by theme.js (applyTheme); the defaults below are the light
   tokens so a page still reads correctly if the script has not run. `--page` is
   the ground of a web page and `--surface` the layer its content sits on
   (docs/theme.md). An export with the `system` theme starts as
   data-theme="system", which the block below switches before any script runs;
   followTheme then sets the resolved theme. */
:root {
  --page: #fafafa; --surface: #ffffff; --raised: #f1f3f4; --sunk: #ededee; --ink: #202124; --ink-2: #5f6368; --muted: #6b7075;
  --grid: #e8eaed; --baseline: #d4d7db; --accent: #202124; --neutral: #f1f3f4;
  --highlight: #dce7f5; --check: #188038; --rim: #e8710a;
  /* The light island: a document's callout band keeps the light palette in every theme (reading/furniture.css), so these are never set in the dark blocks. */
  --band: #dce7f5; --band-ink: #202124; --band-accent: #202124; --band-raised: #f1f3f4;
  /* Layers, buttons (the primary is ink-filled: the palette is monochrome), the green tag and the inverse tooltip. */
  --layer-2: #ffffff; --layer-hover: #f1f3f4; --layer-selected: #e8eaed;
  --button-primary-hover: #3c4043; --button-primary-ink: #ffffff; --button-secondary: #3c4043; --button-secondary-hover: #5f6368;
  --tag-green: #e6f4ea; --tag-green-ink: #137333; --inverse: #303134; --inverse-ink: #f1f3f4;
  --button-primary: #202124; --border-strong: #80868b; --disabled: #dadce0; --disabled-ink: #9aa0a6; --control-fill: #ffffff; --control-fill-hover: #f5f5f5; --control-fill-pressed: #e0e0e0; --control-stroke: #d1d1d1; --control-stroke-hover: #c7c7c7; --control-stroke-pressed: #b3b3b3;
  --well: color-mix(in srgb, var(--ink) 3%, transparent); --well-hover: color-mix(in srgb, var(--ink) 5%, transparent); --well-shade: inset 0 1px 2px rgb(0 0 0 / .09); --well-halo: color-mix(in srgb, var(--ink) 12%, transparent);
  /* Notifications: a quiet support colour (borders and icons, 3:1 or more) and its tint; text on a tint stays --ink. */
  --info: #5b7bab; --info-bg: #eef3fa; --success: #188038; --success-bg: #e6f4ea;
  --warning: #c58a00; --warning-bg: #fef7e0; --error: #a12a2a; --error-bg: #fce8e6;
  /* Productive motion for the few transitions that predate Fluent's curves. */
  --ease: cubic-bezier(.2, 0, .38, .9);
  --font: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  /* The display face for titles and the largest text: the sans unless a brand names one (docs/brand.md). */
  --display: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --serif: "IBM Plex Serif", Georgia, serif;
  --mono: "IBM Plex Mono", Menlo, "DejaVu Sans Mono", monospace;
  /* The overlay shadow, for what floats over a picture; tiles on the page have none. */
  --overlay-shadow: 0 2px 6px rgba(0, 0, 0, .3);
  /* The scrim behind a drawer or modal sheet: it dims what is behind in both themes, so it is never a mix of the ink. */
  --scrim: rgba(0, 0, 0, .4);
  /* Fluent 2 shape, depth and motion (fluent-tokens.css). */
  --radius-s: 2px; --radius-m: 4px; --radius-l: 6px; --radius-xl: 8px; --radius-pill: 10000px;
  --stroke-thin: 1px; --stroke-thick: 2px; --stroke-thicker: 3px; --stroke-thickest: 4px;
  --dur-ultrafast: 50ms; --dur-faster: 100ms; --dur-fast: 150ms; --dur-normal: 200ms;
  --dur-gentle: 250ms; --dur-slow: 300ms; --dur-slower: 400ms; --dur-ultraslow: 500ms;
  --curve-accel-max: cubic-bezier(0.9,0.1,1,0.2); --curve-accel-mid: cubic-bezier(1,0,1,1); --curve-accel-min: cubic-bezier(0.8,0,0.78,1);
  --curve-decel-max: cubic-bezier(0.1,0.9,0.2,1); --curve-decel-mid: cubic-bezier(0,0,0,1); --curve-decel-min: cubic-bezier(0.33,0,0.1,1);
  --curve-easy-max: cubic-bezier(0.8,0,0.2,1); --curve-easy: cubic-bezier(0.33,0,0.67,1); --curve-linear: cubic-bezier(0,0,1,1);
  --shadow-2: 0 0 2px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.14);
  --shadow-4: 0 0 2px rgba(0,0,0,0.12), 0 2px 4px rgba(0,0,0,0.14);
  --shadow-8: 0 0 2px rgba(0,0,0,0.12), 0 4px 8px rgba(0,0,0,0.14);
  --shadow-16: 0 0 2px rgba(0,0,0,0.12), 0 8px 16px rgba(0,0,0,0.14);
  --shadow-28: 0 0 8px rgba(0,0,0,0.12), 0 14px 28px rgba(0,0,0,0.14);
  --shadow-64: 0 0 8px rgba(0,0,0,0.12), 0 32px 64px rgba(0,0,0,0.14);
}
:root[data-theme="dark"] {
  --page: #202124; --surface: #292a2d; --raised: #35363a; --sunk: #17181a; --ink: #f1f3f4; --ink-2: #bdc1c6; --muted: #9aa0a6;
  --grid: #3c4043; --baseline: #383a3d; --accent: #f1f3f4; --neutral: #35363a;
  --highlight: #3d4d66; --check: #81c995; --rim: #fcad70;
  --layer-2: #35363a; --layer-hover: #3c4043; --layer-selected: #44464b;
  --button-primary-hover: #dadce0; --button-primary-ink: #202124; --button-secondary: #5f6368; --button-secondary-hover: #70757a;
  --tag-green: #1c2f24; --tag-green-ink: #a8dab5; --inverse: #f1f3f4; --inverse-ink: #202124;
  --button-primary: #f1f3f4; --border-strong: #80868b; --disabled: #3c4043; --disabled-ink: #80868b; --control-fill: #292929; --control-fill-hover: #3d3d3d; --control-fill-pressed: #1f1f1f; --control-stroke: #525252; --control-stroke-hover: #666666; --control-stroke-pressed: #6b6b6b;
  --well: rgb(0 0 0 / .26); --well-hover: rgb(0 0 0 / .34); --well-shade: inset 0 1px 2px rgb(0 0 0 / .4); --well-halo: color-mix(in srgb, var(--ink) 18%, transparent);
  --info: #7c9cc9; --info-bg: #23304a; --success: #81c995; --success-bg: #1c2f24;
  --warning: #e2b33c; --warning-bg: #33291a; --error: #f2a5a5; --error-bg: #3a2222;
  --shadow-2: 0 0 2px rgba(0,0,0,0.24), 0 1px 2px rgba(0,0,0,0.28); --shadow-4: 0 0 2px rgba(0,0,0,0.24), 0 2px 4px rgba(0,0,0,0.28); --shadow-8: 0 0 2px rgba(0,0,0,0.24), 0 4px 8px rgba(0,0,0,0.28); --shadow-16: 0 0 2px rgba(0,0,0,0.24), 0 8px 16px rgba(0,0,0,0.28); --shadow-28: 0 0 8px rgba(0,0,0,0.24), 0 14px 28px rgba(0,0,0,0.28); --shadow-64: 0 0 8px rgba(0,0,0,0.24), 0 32px 64px rgba(0,0,0,0.28);
}
@media (prefers-color-scheme: dark) {
  :root[data-theme="system"] {
    --page: #202124; --surface: #292a2d; --raised: #35363a; --sunk: #17181a; --ink: #f1f3f4; --ink-2: #bdc1c6; --muted: #9aa0a6;
    --grid: #3c4043; --baseline: #383a3d; --accent: #f1f3f4; --neutral: #35363a;
    --highlight: #3d4d66; --check: #81c995; --rim: #fcad70;
    --layer-2: #35363a; --layer-hover: #3c4043; --layer-selected: #44464b;
    --button-primary-hover: #dadce0; --button-primary-ink: #202124; --button-secondary: #5f6368; --button-secondary-hover: #70757a;
    --tag-green: #1c2f24; --tag-green-ink: #a8dab5; --inverse: #f1f3f4; --inverse-ink: #202124;
    --button-primary: #f1f3f4; --border-strong: #80868b; --disabled: #3c4043; --disabled-ink: #80868b; --control-fill: #292929; --control-fill-hover: #3d3d3d; --control-fill-pressed: #1f1f1f; --control-stroke: #525252; --control-stroke-hover: #666666; --control-stroke-pressed: #6b6b6b;
  --well: rgb(0 0 0 / .26); --well-hover: rgb(0 0 0 / .34); --well-shade: inset 0 1px 2px rgb(0 0 0 / .4); --well-halo: color-mix(in srgb, var(--ink) 18%, transparent);
    --info: #7c9cc9; --info-bg: #23304a; --success: #81c995; --success-bg: #1c2f24;
    --warning: #e2b33c; --warning-bg: #33291a; --error: #f2a5a5; --error-bg: #3a2222;
    --shadow-2: 0 0 2px rgba(0,0,0,0.24), 0 1px 2px rgba(0,0,0,0.28); --shadow-4: 0 0 2px rgba(0,0,0,0.24), 0 2px 4px rgba(0,0,0,0.28); --shadow-8: 0 0 2px rgba(0,0,0,0.24), 0 4px 8px rgba(0,0,0,0.28); --shadow-16: 0 0 2px rgba(0,0,0,0.24), 0 8px 16px rgba(0,0,0,0.28); --shadow-28: 0 0 8px rgba(0,0,0,0.24), 0 14px 28px rgba(0,0,0,0.28); --shadow-64: 0 0 8px rgba(0,0,0,0.24), 0 32px 64px rgba(0,0,0,0.28);
    color-scheme: dark;
  }
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; background: var(--page); color: var(--ink); font-family: var(--font); }
body { font-size: .875rem; line-height: 1.25rem; letter-spacing: 0; } /* --fs-ui/--lh-ui (ui/ui.css), in rem so text follows the reader's font size */
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; font-synthesis: none; font-optical-sizing: auto; font-variant-numeric: lining-nums; }
/* Type contract (introdus, IBM Plex): 400 body, 500 labels, 600 headings and strong; titles balance, paragraphs wrap prettily. */
h1, h2, h3, h4 { font-weight: 600; text-wrap: balance; }
p, li { text-wrap: pretty; }
strong, b { font-weight: 600; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: .2em; }
code, kbd, samp, pre { font-family: var(--mono); font-weight: 400; }
table, output, time { font-variant-numeric: tabular-nums lining-nums; }
/* Fluent focus: a 2px ink ring, a 1px gap in the page colour inside it (components add the gap with box-shadow). */
:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }
/* ---- grounds: written by tools/make-grounds.mjs from lib/grounds.js; do not edit by hand ---- */
:root {
  --ground-isolines: url(/assets/grounds/isolines.svg?v=60f8072d2ed8);
  --ground-dots: url(/assets/grounds/dots.svg?v=929b39de244d);
  /* Strong at the far end, gone before the text: the fade runs across the surface, whatever its size. */
  --ground-fade: linear-gradient(to left, #000, rgb(0 0 0 / .55) 28%, transparent 62%);
}
/* A ground: the element keeps its tint as its background; this draws the texture over it in `--ground-ink` (the
   tone's colour) at `--ground-alpha`, behind the content. `--ground-texture` picks the texture (isolines by default). */
:where(.ground) { position: relative; isolation: isolate; }
.ground::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background: var(--ground-ink, var(--ink-2)); opacity: var(--ground-alpha, .28);
  mask: var(--ground-fade) 0 0 / 100% 100% no-repeat, var(--ground-texture, var(--ground-isolines, linear-gradient(transparent, transparent))) var(--ground-at, 100% 0) / auto no-repeat;
  mask-composite: intersect; }
/* Each tone shows its own slice of the texture, so a stack of grounds never repeats one shape. */
.ground[data-tone="info"] { --ground-ink: var(--info); }
.ground[data-tone="success"] { --ground-ink: var(--success); --ground-at: 100% 100%; }
.ground[data-tone="warning"] { --ground-ink: var(--warning); --ground-at: 100% 50%; }
.ground[data-tone="error"] { --ground-ink: var(--error); --ground-at: 100% 25%; }
.ground[data-tone="neutral"] { --ground-at: 100% 75%; }
.ground:dir(rtl) { --ground-fade: linear-gradient(to right, #000, rgb(0 0 0 / .55) 28%, transparent 62%); --ground-at: 0 0; }
@media (forced-colors: active) { .ground::before { display: none; } }
/* ---- end of grounds ---- */
/* The shared UI layer (docs/ui.md): the scale and every control, for any page that draws one. Loaded after base.css,
   whose tokens it uses; it has no layout of a page and no rule for an element it did not name. An app page loads
   app/kit.css (the shell) after it. Two conditions are written out in each media query: touch is (pointer: coarse),
   (max-width: 699.98px) and compact is (max-width: 699.98px). */
:root {
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-5: 24px; --space-6: 32px; --space-7: 48px;
  /* The type scale is in rem, so text follows the reader's browser font size; at the default 16px root these are
     11/16, 13/18, 14/20, 16/24, 18/28 and 22/28 px. */
  --fs-caption: .6875rem; --lh-caption: 1rem; --fs-small: .8125rem; --lh-small: 1.125rem; --fs-ui: .875rem; --lh-ui: 1.25rem;
  --fs-base: 1rem; --lh-base: 1.5rem; --fs-reading: 1.125rem; --lh-reading: 1.75rem; --fs-title: 1.375rem; --lh-title: 1.75rem;
  /* A reading or host page's title grows with the window between 32 and 48px (at a 16px root); its line-height is the page's. */
  --fs-display: clamp(2rem, 3.6vw, 3rem);
  /* Inline code set in running text, relative to the text it sits in. */
  --fs-code: .92em;
  --control-s: 32px; --control-m: 40px; --control-l: 48px; --touch: 44px; --measure: 34rem;
  /* The height of every top bar (`.topbar`, `.bar`, the host's bar): the one place it is written; what sits under a bar reads it. */
  --topbar-h: 48px;
  --z-sticky: 10; --z-sheet: 20; --z-menu: 30; --z-status: 40;
  --pip: 10px;
  /* A button is a tile pressed out of its ground: a tint of the ink over whatever is under it, so it reads one step
     darker (lighter in dark) on the surface, the page and a raised box alike. A field is a well cut into its ground
     instead (`--well`, base.css; the fields block below). */
  --button-tint: color-mix(in srgb, var(--ink) 7%, transparent);
  --button-tint-hover: color-mix(in srgb, var(--ink) 11%, transparent);
  --button-tint-pressed: color-mix(in srgb, var(--ink) 16%, transparent);
  /* Read with a fallback, so the default resolves where the element sits (a reading page's own --surface): a resting
     panel's ground `--panel-fill` (var(--surface)) and edge `--panel-edge`, a box-shadow (var(--shadow-8)); a
     multi-line field's frame `--field-frame`, a box-shadow (var(--well-shade)). A floating panel and a dialog keep
     the surface and their own shadow. A brand sets them (docs/brand.md). */
}

/* ---- icons ---- */
.icon { flex: none; width: 1rem; height: 1rem; }
/* Two larger steps: `large` for a control's glyph (a 48 px button), `xl` for a tile's glyph. Drawn larger, an icon keeps a
   fixed line weight instead of scaling the 1.5 unit stroke. */
.icon.large { width: 1.5rem; height: 1.5rem; }
.icon.xl { width: 2.25rem; height: 2.25rem; }
.icon.large > *, .icon.xl > * { vector-effect: non-scaling-stroke; stroke-width: 2px; }

/* ---- buttons ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); min-height: var(--control-m); max-width: 100%; padding: var(--space-2) var(--space-4); border: 1px solid transparent; border-radius: var(--radius-m); background: var(--button-tint); color: var(--ink); font: 500 var(--fs-ui)/var(--lh-ui) var(--font); text-align: center; cursor: pointer; transition: background var(--dur-faster), border-color var(--dur-faster); }
a.btn { text-decoration: none; }
.btn:hover:not(:disabled) { background: var(--button-tint-hover); }
.btn:active:not(:disabled) { background: var(--button-tint-pressed); }
.btn-label, .btn-text { min-width: 0; overflow-wrap: anywhere; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.btn-text { display: flex; flex-direction: column; align-items: flex-start; text-align: left; -webkit-line-clamp: unset; overflow: visible; }
.btn-note { font-size: var(--fs-small); line-height: var(--lh-small); font-weight: 400; }
.btn.small { min-height: var(--control-s); padding: var(--space-1) var(--space-3); }
.btn.large { min-height: var(--control-l); }
.btn.primary { border-color: transparent; background: var(--button-primary); color: var(--button-primary-ink); font-weight: 600; }
.btn.primary:hover:not(:disabled), .btn.primary:active:not(:disabled) { background: var(--button-primary-hover); border-color: transparent; }
.btn.quiet { border-color: transparent; background: transparent; }
.btn.quiet:hover:not(:disabled) { background: var(--layer-hover); border-color: transparent; }
.btn.quiet:active:not(:disabled) { background: var(--layer-selected); border-color: transparent; }
.btn.danger { border-color: var(--error); color: var(--error); }
/* The filled danger button: the final, confirming submit of a destructive action. Ink is the primary button's ink, which
   keeps 4.5:1 on --error in both modes (7.3:1 light, 8.2:1 dark). Hover moves the fill toward --ink (darker in light,
   lighter in dark), which only raises the contrast. */
.btn.danger.primary { border-color: transparent; background: var(--error); color: var(--button-primary-ink); }
.btn.danger.primary:hover:not(:disabled), .btn.danger.primary:active:not(:disabled) { background: color-mix(in srgb, var(--error) 85%, var(--ink)); border-color: transparent; }
.btn.danger.primary:active:not(:disabled) { background: color-mix(in srgb, var(--error) 70%, var(--ink)); }
.btn.icon-only { padding: var(--space-1); min-width: var(--control-m); }
.btn.icon-only.small { min-width: var(--control-s); }
.btn[aria-pressed="true"] { border-color: var(--ink); background: var(--button-tint-pressed); }
.btn[aria-busy="true"] { cursor: progress; }
/* The current place (a link or button with aria-current="page"): heavier type and a line under it, so the mark does not rest on colour. */
/* The line under the current place ends square at its edges: the place's bottom corners are square while it is marked, as a tab's. */
.btn[aria-current="page"] { font-weight: 600; border-bottom-left-radius: 0; border-bottom-right-radius: 0; box-shadow: inset 0 -2px 0 var(--accent); }
.btn:disabled { border-color: transparent; background: var(--disabled); color: var(--disabled-ink); cursor: default; }
.btn.danger.primary:disabled { border-color: transparent; background: var(--disabled); color: var(--disabled-ink); }
/* A jump's target that holds focus only to set where Tab continues (place.js) draws no ring, as a fragment jump draws none. */
[data-place-target]:focus, [data-place-target]:focus-visible { outline: none; }
/* A heading or region focused by script (arriving at a place, ui/arrive.js) is not something a person operates: no ring. Controls keep theirs.
   So is a column's row a page focuses on opening (it marks it `data-place-target` until a key is pressed); the row's own ring rule needs the class to be outranked. */
:is(h1, h2, h3, h4, section, header)[tabindex="-1"]:focus, :is(h1, h2, h3, h4, section, header)[tabindex="-1"]:focus-visible, .miller-item[data-place-target]:focus-visible { outline: none; }
.btn:focus-visible, .btn.primary:focus-visible { outline-offset: 2px; box-shadow: 0 0 0 2px var(--surface); }
.key, .key-cap { display: inline-block; padding: 0 var(--space-1); border: 1px solid currentColor; border-radius: var(--radius-s); font-family: var(--mono); font-size: var(--fs-small); line-height: var(--lh-small); font-weight: 400; opacity: .85; }
.actions { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.actions.equal > * { flex: 1 1 0; }
.actions.end { justify-content: flex-end; }

/* ---- fields ---- */
.field { display: flex; flex-direction: column; gap: var(--space-1); }
.field-label { font-weight: 500; font-size: var(--fs-ui); line-height: var(--lh-ui); }
.field-help { font-size: var(--fs-small); line-height: var(--lh-small); color: var(--ink-2); }
.problem { font-size: var(--fs-ui); line-height: var(--lh-ui); font-weight: 500; color: var(--error); }
/* A field is a well, the language of the grounds turned inward: a tint below its ground with a faint shade inside its
   top edge, and one line, its baseline in the strong stroke (3:1 against the ground, as an input's edge must be). It
   has no box. A button is a tile with no edge, so the two never share a look. Focus thickens the baseline to the ink
   and rings the well in a halo of tint, where a button takes the 2 px ring: a field is where text is typed and its
   caret is there too. An invalid field takes the error tint and an error baseline. The focus look is not eased: it is
   there in the frame focus arrives, as a button's ring is (an eased shadow read at its first frame looked unfocused). */
.text-in, .select { width: 100%; min-height: var(--control-m); padding: var(--space-2) var(--space-3); border: 0; border-bottom: 1px solid var(--border-strong); border-radius: var(--radius-m) var(--radius-m) var(--radius-s) var(--radius-s); background-color: var(--well); box-shadow: var(--well-shade); color: var(--ink); font: 400 var(--fs-ui)/var(--lh-ui) var(--font); transition: background-color var(--dur-faster); }
textarea.text-in { resize: vertical; box-shadow: var(--field-frame, var(--well-shade)); }
/* A field that grows with what is typed (textInput { grow }): from its rows up to --grow-lines lines, then it scrolls; no grip. */
textarea.text-in[data-grow] { resize: none; field-sizing: content; max-height: calc(var(--lh-ui) * var(--grow-lines, 6) + 2 * var(--field-pad-y, var(--space-2)) + 1px); overflow-y: auto; }
/* A select that fits its content (select { fit }, fitSelect in ui.js): as wide as the option chosen, within its field. Where
   field-sizing is missing, ui.js sets the measured width as an inline style. */
.select[data-fit] { width: auto; max-width: 100%; field-sizing: content; }
.text-in::placeholder { color: var(--ink-2); }
.text-in:hover, .select:hover { border-bottom-color: var(--ink-2); background-color: var(--well-hover); }
.text-in:focus, .select:focus-visible { outline: none; border-bottom-color: var(--ink); box-shadow: var(--well-shade), inset 0 -1px 0 var(--ink), 0 0 0 3px var(--well-halo); }
.text-in[aria-invalid="true"] { border-bottom-color: var(--error); background-color: var(--error-bg); box-shadow: var(--well-shade), inset 0 -1px 0 var(--error); }
.text-in[aria-invalid="true"]:focus { box-shadow: var(--well-shade), inset 0 -1px 0 var(--error), 0 0 0 3px color-mix(in srgb, var(--error) 22%, transparent); }
/* A field with a leading icon, no script needed: a `.text-field` wrapper holds a `.field-icon` (any 16 px svg,
   aria-hidden) and then the input. The icon is drawn in the start padding, so the typed text and the placeholder
   never meet it; it takes no pointer events, so a click on it reaches the field. The field keeps its own height
   (44 px under touch). */
.text-field { position: relative; display: block; }
.text-field > .field-icon { width: 1rem; height: 1rem; position: absolute; inset-inline-start: var(--space-3); top: 50%; transform: translateY(-50%); color: var(--ink-2); pointer-events: none; }
.text-in.has-icon { padding-inline-start: calc(var(--space-3) + 1rem + var(--space-2)); }
/* A field with a control inside its end (a message box's Send): the `.text-field` wrapper holds the field, marked
   `.has-end`, and the control, marked `.field-end`; under touch the field is tall enough to hold the control's target. */
.text-field > .text-in { display: block; }
.text-in.has-end { padding-inline-end: calc(var(--control-s) + 2 * var(--space-1)); }
.text-field > .field-end { position: absolute; inset-inline-end: var(--space-1); bottom: calc((var(--control-m) - var(--control-s)) / 2); }
@media (pointer: coarse), (max-width: 699.98px) {
  .text-in.has-end { --field-pad-y: calc((var(--touch) + 2 * var(--space-1) - var(--lh-ui) - 1px) / 2); min-height: calc(var(--touch) + 2 * var(--space-1)); padding-top: var(--field-pad-y); padding-bottom: var(--field-pad-y); padding-inline-end: calc(var(--touch) + 2 * var(--space-1)); }
  .text-field > .field-end { bottom: var(--space-1); }
}
/* Several controls inside the end (ui.js fieldEnd: a quiet one before Send): a row, its width kept free at the field's
   end (`--field-end`); a hidden control in it keeps its room, unseen, so showing it moves nothing. */
.text-field > .field-ends { display: flex; align-items: center; gap: var(--space-1); }
.text-field > .field-ends > [hidden] { display: inline-flex; visibility: hidden; }
.text-in.has-end.has-ends { padding-inline-end: calc(var(--field-end, var(--control-s)) + 2 * var(--space-1)); }
@media (pointer: coarse), (max-width: 699.98px) {
  .text-in.has-end.has-ends { padding-inline-end: calc(var(--field-end, var(--touch)) + 2 * var(--space-1)); }
}
/* The way back to the newest entry of a log (latest): a button raised over the entries it floats on. */
.btn.latest { background: var(--raised); box-shadow: var(--shadow-8); }
.range { width: 100%; min-height: var(--control-m); margin: 0; background: transparent; accent-color: var(--accent); }
.range:focus-visible { outline-offset: 2px; }
/* A slider with labelled stops: the native range, then the stops' words in as many equal columns as there are stops, the
   first under the track's start and the last under its end; the chosen stop's word is in ink and heavier. */
.slider { display: flex; flex-direction: column; gap: var(--space-1); min-width: 0; }
.slider-caption { font: 500 var(--fs-ui)/var(--lh-ui) var(--font); color: var(--ink); }
.slider-stops { display: flex; justify-content: space-between; gap: var(--space-1); font: 400 var(--fs-small)/var(--lh-small) var(--font); color: var(--ink-2); }
.slider-stop { flex: 1 1 0; min-width: 0; text-align: center; overflow-wrap: anywhere; }
.slider-stop:first-child { text-align: start; }
.slider-stop:last-child { text-align: end; }
.slider-stop.on { color: var(--ink); font-weight: 600; }
.control { display: flex; flex-direction: column; gap: var(--space-2); }
/* A choice is a well row without the shade or the baseline (its own box or circle is the edge); the chosen one is a
   selected layer inside an ink ring. */
.choice { display: flex; align-items: flex-start; gap: var(--space-3); min-height: var(--touch); padding: var(--space-3); border: 0; border-radius: var(--radius-m); background: var(--well); cursor: pointer; overflow-wrap: anywhere; transition: background var(--dur-faster); }
.choice:hover { background: var(--well-hover); }
.choice:has(input:checked) { background: var(--layer-selected); box-shadow: inset 0 0 0 1px var(--ink); }
.choice input { flex: none; width: 1.25rem; height: 1.25rem; margin: 0; accent-color: var(--accent); }
.choice input:focus-visible { outline-offset: 2px; }
.segmented { display: inline-flex; gap: var(--segmented-gap, normal); max-width: 100%; border-radius: var(--radius-m); background: var(--well); }
.segment { flex: 1 1 auto; min-height: var(--control-m); padding: 0 var(--space-4); border: 0; border-radius: var(--segment-radius, var(--radius-m)); background: transparent; color: var(--segment-ink, var(--ink)); font: 500 var(--fs-ui)/var(--lh-ui) var(--font); cursor: pointer; transition: background var(--dur-faster); }
.segment:hover { background: var(--layer-hover); }
/* A segmented set of links (a site's view switch: each a page of its own) marks the current one as a checked segment; so is a segment that is a pressed toggle. */
.segment[aria-checked="true"], .segment[aria-current], .segment[aria-pressed="true"] { background: var(--segment-fill-checked, var(--button-primary)); color: var(--segment-ink-checked, var(--button-primary-ink)); font-weight: var(--segment-weight-checked, 500); border-bottom-left-radius: var(--segment-radius-checked-bottom, var(--segment-radius, var(--radius-m))); border-bottom-right-radius: var(--segment-radius-checked-bottom, var(--segment-radius, var(--radius-m))); box-shadow: var(--segment-mark-checked, none); }
a.segment { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.segment:focus-visible { outline-offset: 2px; box-shadow: 0 0 0 2px var(--surface); }
/* A checked segment keeps its mark under the keyboard ring, as a brand that draws one has it; the kit draws the halo. */
.segment:is([aria-checked="true"], [aria-current], [aria-pressed="true"]):focus-visible { box-shadow: var(--segment-mark-checked, 0 0 0 2px var(--surface)); }

/* ---- banner, tag ---- */
/* A banner's tone is its tint, its icon and its words, and its ground draws the message texture over the tint in the
   tone's colour (base.css, `.ground`); no element carries an accent stripe (docs/app-ui.md, rule 15). */
.banner { display: flex; gap: var(--space-3); padding: var(--space-3) var(--space-4); border-radius: var(--radius-m); background: var(--raised); color: var(--ink); }
.banner[data-tone="info"] { background: var(--info-bg); }
.banner[data-tone="success"] { background: var(--success-bg); }
.banner[data-tone="warning"] { background: var(--warning-bg); }
.banner[data-tone="error"] { background: var(--error-bg); }
.banner-icon { flex: none; margin-top: var(--space-1); }
.banner[data-tone="info"] .banner-icon { color: var(--info); }
.banner[data-tone="success"] .banner-icon { color: var(--success); }
.banner[data-tone="warning"] .banner-icon { color: var(--warning); }
.banner[data-tone="error"] .banner-icon { color: var(--error); }
.banner-text { display: flex; flex-direction: column; gap: var(--space-1); min-width: 0; }
.banner-title { font-weight: 600; }
.banner-body { font-size: var(--fs-ui); line-height: var(--lh-ui); }
.banner .actions { margin-top: var(--space-2); }
/* A tag only labels, so it is quieter than any control: a faint ink tint without an edge, small corners, caption type in
   the secondary ink. A tone is its tint ground and the words (docs/app-ui.md rules 2 and 15: no pill, no coloured edge). */
.tag { display: inline-block; padding: 1px var(--space-2); border: 0; border-radius: var(--radius-s); background: var(--tag-fill, color-mix(in srgb, var(--ink) 6%, transparent)); box-shadow: var(--tag-edge, none); color: var(--ink-2); font-size: var(--fs-caption); line-height: var(--lh-caption); font-weight: 500; white-space: nowrap; vertical-align: middle; }
.tag[data-tone] { box-shadow: none; }
.tag[data-tone="info"] { background: var(--info-bg); color: var(--ink); }
.tag[data-tone="success"] { background: var(--success-bg); color: var(--ink); }
.tag[data-tone="warning"] { background: var(--warning-bg); color: var(--ink); }
.tag[data-tone="error"] { background: var(--error-bg); color: var(--ink); }

/* ---- meta line (docs/app-kit.md section 3.43) ----
   Parts wrap whole. Each part after the first leads with its separator, and the line starts one separator early and
   clips that strip, so the separator of a part that begins a line is never seen; the first part steps back in. */
.meta-line { --meta-sep: calc(var(--space-2) + 0.3rem); display: flex; flex-wrap: wrap; align-items: center; gap: 0 var(--space-2);
  margin-inline-start: calc(-1 * var(--meta-sep)); clip-path: inset(-0.5em -0.5em -0.5em var(--meta-sep)); }
.meta-line:dir(rtl) { clip-path: inset(-0.5em var(--meta-sep) -0.5em -0.5em); }
.meta-line > :first-child { margin-inline-start: var(--meta-sep); }
.meta-part { display: inline-flex; align-items: center; white-space: nowrap; }
.meta-glue { display: inline-flex; align-items: center; gap: var(--space-2); white-space: nowrap; }
.meta-sep { flex: none; box-sizing: border-box; inline-size: var(--meta-sep); padding-inline-end: var(--space-2); text-align: end; }

/* ---- disclosure ---- */
.disclosure { border-bottom: 1px solid var(--grid); }
.disclosure-summary { display: flex; align-items: center; gap: var(--space-2); min-height: var(--control-m); padding: var(--space-1) 0; font-weight: 500; font-size: var(--fs-ui); line-height: var(--lh-ui); cursor: pointer; list-style: none; }
.disclosure-summary::-webkit-details-marker { display: none; }
.disclosure-summary .icon { color: var(--ink-2); transition: transform var(--dur-fast); }
.disclosure[open] > .disclosure-summary .icon { transform: rotate(90deg); }
/* The one expand marker where no script builds the icon: an author's bare <details> (a document's markdown) gets the
   kit's row, and it and a .disclosure-summary written without the icon (the host's pages, a template, a kind's own page)
   get chevron-right of icons.js drawn in CSS (the corner of a square, as reading/toc.css draws its toggle): the same
   arm, stroke and 16 px slot, centred in it, in the second ink. Never the browser's filled marker. */
details:not([class]) > summary { display: flex; align-items: center; gap: var(--space-2); min-height: var(--control-m); padding: var(--space-1) 0; font-weight: 500; font-size: var(--fs-ui); line-height: var(--lh-ui); cursor: pointer; list-style: none; }
details:not([class]) > summary::-webkit-details-marker { display: none; }
details:not([class]) > summary::before, .disclosure-summary:not(:has(> svg))::before { content: ""; flex: none; box-sizing: border-box; width: .375rem; height: .375rem; margin: 0 .3125rem; border-right: 1.5px solid var(--ink-2); border-bottom: 1.5px solid var(--ink-2); transform: translateX(-35%) rotate(-45deg); transition: transform var(--dur-fast); }
details[open]:not([class]) > summary::before, .disclosure[open] > .disclosure-summary:not(:has(> svg))::before { transform: translateY(-35%) rotate(45deg); }
.disclosure-body { padding: var(--space-1) 0 var(--space-3); }
.disclosure-body > * + * { margin-top: var(--space-2); }

/* ---- menu, sheet ---- */
.menu { position: relative; display: inline-block; }
/* One floating panel look for a menu: the kit's `menu` list and the bar's folded list (`.topbar-menu-list`, below). */
.menu-list, .topbar-menu-list { z-index: var(--z-menu); min-width: 12rem; padding: var(--space-1); border: 1px solid var(--grid); border-radius: var(--radius-l); background: var(--surface); box-shadow: var(--shadow-16); }
.menu-list { position: absolute; top: 100%; left: 0; max-width: calc(100vw - var(--space-4)); margin-top: var(--space-1); }
.menu[data-align="end"] .menu-list { left: auto; right: 0; }
.menu-item { display: flex; align-items: center; gap: var(--space-2); width: 100%; min-height: var(--control-m); padding: 0 var(--space-3); border: 0; border-radius: var(--radius-m); background: transparent; color: var(--ink); font: 400 var(--fs-ui)/var(--lh-ui) var(--font); text-align: left; cursor: pointer; }
.menu-item:hover { background: var(--layer-hover); }
.menu-item:focus-visible { outline-offset: -2px; background: var(--layer-hover); }
.sheet { position: fixed; z-index: var(--z-sheet); margin: 0 0 0 auto; padding: 0; width: min(28rem, 100vw); max-width: 100vw; height: 100dvh; max-height: 100dvh; border: 0; border-radius: var(--radius-xl) 0 0 var(--radius-xl); background: var(--surface); color: var(--ink); box-shadow: var(--shadow-28); overflow: hidden; }
.sheet[open] { display: flex; flex-direction: column; }
.sheet[data-side="bottom"] { margin: auto 0 0; width: 100vw; height: auto; max-height: 85dvh; border-radius: var(--radius-xl) var(--radius-xl) 0 0; }
.sheet::backdrop { background: var(--scrim); }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--grid); }
.sheet .sheet-title { margin: 0; font-size: var(--fs-base); line-height: var(--lh-base); }
.sheet-body { flex: 1 1 auto; overflow-y: auto; padding: var(--space-4) var(--space-4) calc(var(--space-4) + env(safe-area-inset-bottom)); font: 400 var(--fs-base)/var(--lh-base) var(--font); }
.sheet-body > * + * { margin-top: var(--space-3); }
.help-row { display: flex; align-items: baseline; gap: var(--space-3); }
.help-row .key-cap { min-width: 2rem; text-align: center; }
@media (max-width: 699.98px) {
  .sheet[data-side="right"] { margin: auto 0 0; width: 100vw; height: auto; max-height: 85dvh; border-radius: var(--radius-xl) var(--radius-xl) 0 0; }
}

/* ---- marks ---- */
.pips { display: inline-flex; gap: var(--space-1); vertical-align: middle; }
.pip { box-sizing: border-box; width: var(--pip); height: var(--pip); border-radius: 50%; border: 1.5px solid var(--border-strong); }
.pip.on { background: var(--ink); border-color: var(--ink); }
.pip.working { border: 2px solid var(--ink); }
.pip.target { outline: 1.5px solid var(--rim); outline-offset: 2px; }
.meter { height: var(--space-2); border-radius: var(--radius-s); background: var(--sunk); overflow: hidden; }
.meter-fill { display: block; height: 100%; width: calc(var(--at) * 100%); background: var(--ink); }
.steps { display: inline-flex; align-items: center; gap: var(--space-2); font-size: var(--fs-small); line-height: var(--lh-small); color: var(--ink-2); }
.steps-marks { display: inline-flex; gap: var(--space-1); }
.step { width: var(--space-2); height: 3px; background: var(--baseline); }
.step.on { background: var(--ink); }

/* ---- rows ---- */
.rows { display: flex; flex-direction: column; }
.row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: var(--space-2) var(--space-4); padding: var(--space-3) 0; border-top: 1px solid var(--grid); }
.rows > .row:first-child { border-top: 0; }
.row.current { padding-left: var(--space-3); padding-right: var(--space-3); border-radius: var(--radius-m); background: var(--raised); }
.row.current + .row { border-top-color: transparent; }
.row-head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-1) var(--space-2); }
.row-title { font-weight: 500; overflow-wrap: anywhere; }
.row-meta, .row-note { font-size: var(--fs-small); line-height: var(--lh-small); color: var(--ink-2); }
@media (max-width: 699.98px) {
  .row { grid-template-columns: minmax(0, 1fr); }
}

/* A contents tree (docs/ui.md, "Contents tree"): the column that lists a long work's parts beside it (a book's chapters
   and sections). It stands on the page ground with a hairline at its inner edge and at its foot (whichever meets the
   work: beside it, or above it on a phone); entries are quiet ink, and the current one (aria-current) takes the ink,
   with a short ink rule at its start where its row draws one (`::before`). */
.contents-tree { background: var(--page); color: var(--ink-2); box-shadow: inset -1px 0 var(--baseline), inset 0 -1px var(--baseline); }
.contents-tree a, .contents-tree button { color: inherit; }
.contents-tree a:hover, .contents-tree button:hover { color: var(--ink); }
.contents-tree [aria-current] { color: var(--ink); }
.contents-tree [aria-current]::before { background: var(--ink); }
/* A preview tile (docs/ui.md, "Preview tile"): a picture or a glyph that stands for a thing (a share's cover in a browser), set
   on the page ground inside a hairline, with no fill of its own; the glyph is the quiet ink. */
.preview-tile { background: var(--page); color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--grid); border-radius: var(--radius-l); }
.preview-tile img { background: var(--page); }
/* The secondary ink for a text that is no named element (a card's meta line, a key's description): colour only, the size
   stays the page's. A named text element (.meta-line, .row-meta, .field-help) comes first. */
.ink-secondary { color: var(--ink-2); }
/* A fact list (docs/ui.md, "Fact list"): a `dl` of what a thing is, key beside value: the key in the secondary ink,
   figures lined up, a long value wrapping inside its column. */
.fact-list { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--space-1) var(--space-4); margin: 0; font-variant-numeric: tabular-nums lining-nums; }
.fact-list dt { color: var(--ink-2); }
.fact-list dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
/* A tile card (docs/ui.md, "Tile card"): one card in a grid of things (a share's card in a site browser, an item of a
   gallery): the page ground inside a hairline, a stronger hairline under the pointer, and the selected layer with that
   stronger hairline for the current card (aria-current). Its layout (the picture, the name, the meta) is the page's. */
.tile-card { background: var(--page); color: var(--ink); box-shadow: 0 0 0 1px var(--grid); border-radius: var(--radius-l); }
.tile-card:hover { box-shadow: 0 0 0 1px var(--border-strong); }
.tile-card[aria-current] { background: var(--layer-selected); box-shadow: 0 0 0 1px var(--border-strong); }

/* ---- empty, skeleton ---- */
.empty-state { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-2); padding: var(--space-5) 0; }
.empty-title { font-weight: 600; }
.empty-body { color: var(--ink-2); font-size: var(--fs-ui); line-height: var(--lh-ui); }
.skeleton { display: flex; flex-direction: column; gap: var(--space-2); }
.skeleton-line { display: block; height: var(--space-3); border-radius: var(--radius-s); background: var(--sunk); }
.skeleton-line:last-child { width: 60%; }

/* ---- panel, toolbar, popover ---- */
/* A panel is a surface raised over what is under it (a stage, a figure, the page): the surface with a shadow and no
   edge. A toolbar is a row of compact controls on such a surface, floating over a stage; `.flat` puts it in the flow
   of a page with neither. A popover is a small floating note or menu body. */
.panel { padding: var(--space-3) var(--space-4); border-radius: var(--radius-l); background: var(--panel-fill, var(--surface)); color: var(--ink); box-shadow: var(--panel-edge, var(--shadow-8)); font: 400 var(--fs-ui)/var(--lh-ui) var(--font); }
.panel.floating { background: var(--surface); box-shadow: var(--shadow-16); }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); margin-bottom: var(--space-2); }
.panel-title { margin: 0; font-size: var(--fs-ui); line-height: var(--lh-ui); font-weight: 600; }
.panel-body > * + * { margin-top: var(--space-2); }
.toolbar { display: inline-flex; flex-wrap: wrap; align-items: center; gap: var(--space-1); max-width: 100%; padding: var(--space-1); border-radius: var(--radius-l); background: var(--toolbar-fill, var(--surface)); color: var(--ink); box-shadow: var(--shadow-8); }
.toolbar.flat { padding: 0; background: transparent; box-shadow: none; }
.toolbar-sep { align-self: stretch; width: 1px; margin: var(--space-1); background: var(--grid); }
.toolbar-text { padding: 0 var(--space-2); font: 400 var(--fs-small)/var(--lh-small) var(--font); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.toolbar.transport { display: flex; flex-wrap: nowrap; }
.transport .transport-position { flex: 1 1 8rem; min-width: 4rem; }
.transport .toolbar-text { white-space: nowrap; }
.transport-back .icon { transform: scaleX(-1); }
.popover { position: absolute; z-index: var(--z-menu); max-width: min(20rem, calc(100vw - var(--space-4))); padding: var(--space-2) var(--space-3); border-radius: var(--radius-m); background: var(--surface); color: var(--ink); box-shadow: var(--shadow-16); font: 400 var(--fs-small)/var(--lh-small) var(--font); }
/* A preview card (ui/preview.js): a popover placed by script with `position: fixed` (left, top and max-height are set), wide enough to read and
   never wider than the viewport; it scrolls when the room is short. Its content is the app's. The sheet it becomes on touch is the kit's. */
.preview-card { position: fixed; box-sizing: border-box; width: min(26rem, calc(100vw - 2 * var(--space-2))); max-width: none; overflow-y: auto; overscroll-behavior: contain; padding: var(--space-3) var(--space-4); border: 1px solid var(--grid); border-radius: var(--radius-l); font-size: var(--fs-ui); line-height: var(--lh-ui); }
.preview-card > * + * { margin-top: var(--space-2); }
/* It fades in, at most 150 ms and linear; nothing slides. Under reduced motion it is there at once. */
.preview-card { animation: preview-in var(--dur-fast) var(--curve-linear) both; }
@keyframes preview-in { from { opacity: 0; } }

/* ---- chip ---- */
/* A chip is a pressable filter or toggle: a tile like a small button (the button tint without an edge, rule 2), the primary
   fill while pressed; one line that never shrinks, so a row that scrolls sideways keeps it whole. A tag only labels. */
.chip { display: inline-flex; align-items: center; gap: var(--space-1); min-height: var(--control-s); flex: none; max-width: 100%; padding: 0 var(--space-3); border: 0; border-radius: var(--radius-m); background: var(--chip-fill, var(--button-tint)); color: var(--chip-ink, var(--ink)); box-shadow: var(--chip-edge, none); font: 500 var(--fs-small)/var(--lh-small) var(--font); white-space: nowrap; cursor: pointer; transition: background var(--dur-faster); }
.chip:hover { background: var(--chip-fill-hover, var(--button-tint-hover)); }
.chip[aria-pressed="true"] { background: var(--toggle-fill-pressed, var(--button-primary)); color: var(--toggle-ink-pressed, var(--button-primary-ink)); font-weight: var(--toggle-weight-pressed, 500); box-shadow: var(--toggle-edge-pressed, none); }
.chip:focus-visible { outline-offset: 2px; }
.chips { display: flex; flex-wrap: wrap; gap: var(--space-2); }

/* ---- table ---- */
.table { width: 100%; border-collapse: collapse; font: 400 var(--fs-ui)/var(--lh-ui) var(--font); font-variant-numeric: tabular-nums; color: var(--ink); }
.table caption { caption-side: top; padding: 0 0 var(--space-2); text-align: left; font-weight: 600; }
.table th { padding: var(--space-2) var(--space-3); border-bottom: 1px solid var(--grid); text-align: left; font-size: var(--fs-small); line-height: var(--lh-small); font-weight: 600; color: var(--ink-2); }
.table td { padding: var(--space-2) var(--space-3); border-bottom: 1px solid var(--grid); vertical-align: top; }
.table .num { text-align: right; }
.table tr.current td { background: var(--raised); }

/* ---- hidden, touch, motion ---- */
.sheet [hidden], .panel [hidden], .toolbar [hidden], .menu-list [hidden], .popover[hidden] { display: none; }
/* Read by a screen reader, not drawn; .compact-icon does that to a button's label under compact, leaving its icon. */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (pointer: coarse), (max-width: 699.98px) {
  .btn, .btn.small, .btn.large, .btn.icon-only, .btn.icon-only.small { min-height: var(--touch); min-width: var(--touch); }
  .text-in, .select, .range, .segment, .menu-item, .disclosure-summary, details:not([class]) > summary { min-height: var(--touch); }
  .chip { min-height: var(--touch); min-width: var(--touch); }
  .miller .miller-item, .miller .miller-crumb { min-height: var(--touch); }
  .key { display: none; }
}
@media (max-width: 699.98px) {
  .btn.compact-icon .btn-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .btn.compact-icon { padding: var(--space-1) var(--space-3); }
}
@media (prefers-reduced-motion: reduce) {
  .btn, .text-in, .select, .choice, .segment, .menu-item, .disclosure-summary .icon, .disclosure-summary::before, details > summary::before, .chip, .sheet, .sheet *, .panel, .popover { transition: none !important; }
  .miller-col, .miller-preview, .preview-card { animation: none !important; }
  .miller-more > summary .miller-chevron .icon { transition: none !important; }
}

/* ---- piece: simulation ---- */
/* A tool tile of the simulation player (.btn.tile): a toggle, held when pressed, filled like a pressed chip. */
.btn.tile[aria-pressed="true"] { border-color: transparent; background: var(--toggle-fill-pressed, var(--button-primary)); color: var(--toggle-ink-pressed, var(--button-primary-ink)); font-weight: var(--toggle-weight-pressed, 500); box-shadow: var(--toggle-edge-pressed, none); }
.btn.tile[aria-pressed="true"]:focus-visible { box-shadow: var(--toggle-edge-pressed, 0 0 0 2px var(--surface)); }
.btn.tile[aria-pressed="true"]:hover:not(:disabled) { border-color: transparent; background: var(--button-primary); color: var(--button-primary-ink); }

/* ---- piece: visual ---- */
/* A chip with nothing behind it (a facet value that no card carries): inert, in the disabled tone. */
.chip:disabled, .chip:disabled:hover { background: var(--disabled); color: var(--disabled-ink); cursor: default; }

/* ---- piece: walkthrough ---- */
/* The current step of a list of steps (a step number, a checkpoint): the pressed tile, without the toggle's meaning. */
.btn[aria-current="step"], .btn.quiet[aria-current="step"], .btn.quiet[aria-current="step"]:hover:not(:disabled) { border-color: var(--ink); background: var(--button-tint-pressed); }
/* A panel set into another panel (a card in a sheet): a tile on its ground, without the shadow. */
.panel.inset { background: var(--raised); box-shadow: none; }

/* ---- piece: player ---- */
/* A button over a picture (a film's "Turn sound on"): a dark glass tile, so it reads on any frame. */
.btn.on-stage { background: color-mix(in srgb, var(--sunk) 60%, transparent); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.btn.on-stage:hover:not(:disabled) { background: color-mix(in srgb, var(--sunk) 78%, transparent); }

/* ---- piece: apps ---- */
/* A stage is a full-bleed ground (a canvas, an instrument) that wears the theme: the page's own ground and ink in
   light, the brand's dark page in dark. What is drawn over it uses these stage tokens, which are the theme's tokens
   under another name, so a brand's palette reaches the stage from its one source. A canvas reads them at draw time. */
:root {
  --stage-ground: var(--page); --stage-glass: color-mix(in srgb, var(--surface) 94%, transparent); --stage-line: var(--baseline);
  --stage-scrim: var(--scrim); --stage-ink: var(--ink); --stage-ink-2: var(--ink-2); --stage-on-ink: var(--page); --stage-ink-hover: var(--button-primary-hover);
}
/* A button on a stage: the ink-filled pill with the page's colour as its text, and a ring of its own, since the theme's ring is drawn for a page. */
.btn.stage { padding: 0 var(--space-6); border-color: transparent; border-radius: 999px; background: var(--stage-ink); color: var(--stage-on-ink); font-weight: 600; }
.btn.stage:hover:not(:disabled), .btn.stage:active:not(:disabled) { border-color: transparent; background: var(--stage-ink-hover); color: var(--stage-on-ink); }
.btn.stage:focus-visible { outline: 3px solid var(--stage-ink); outline-offset: 4px; box-shadow: none; }
/* A dialog panel over a stage (`.panel.floating.dialog` inside a `.scrim`): it scrolls on its own, keeps its text
   selectable, and states the headings, hidden and status rules that the app shell scopes to `.app`, because a dialog
   over a stage has no shell. The status sits at the foot of the panel in view and takes no room while it is empty. */
.scrim { position: fixed; inset: 0; z-index: var(--z-menu); display: flex; align-items: center; justify-content: center; padding: var(--space-3); box-sizing: border-box; background: var(--stage-scrim); }
.scrim[hidden] { display: none; }
.panel.dialog { background: var(--surface); width: min(520px, 100%); max-height: 100%; overflow-y: auto; overscroll-behavior: contain; touch-action: pan-y; box-sizing: border-box; padding: var(--space-4); border-radius: var(--radius-xl); box-shadow: var(--shadow-28); -webkit-user-select: text; user-select: text; }
.panel.dialog .panel-head { margin-bottom: var(--space-2); }
.panel.dialog .panel-body > .actions { align-self: flex-start; }
.panel.dialog .panel-title { font-family: var(--display); font-size: 22px; line-height: 28px; overflow-wrap: anywhere; }
.panel.dialog .panel-body { display: flex; flex-direction: column; gap: var(--space-3); }
.panel.dialog .panel-body > * + * { margin-top: 0; }
.panel.dialog h3 { margin: var(--space-2) 0 0; font-size: var(--fs-ui); line-height: var(--lh-ui); font-weight: 600; }
.panel.dialog p { margin: 0; }
.panel.dialog .sub { color: var(--ink-2); }
.panel.dialog .empty-state { padding: 0; }
.panel.dialog .actions.end { margin-top: var(--space-1); }
.panel.dialog .status { position: sticky; bottom: 0; border-radius: var(--radius-m); }
.panel.dialog .status:empty { margin-top: calc(-1 * var(--space-3)); }

/* ---- piece: progress ---- */
/* A rail: where a reader is in something long. The name of the current mark as text over a track with its fill and one
   short notch across it for each section: unread notches in --ink-2, read ones in --ink, the current one in --ink and
   taller, a merged group a doubled notch, each at 3:1 against the surface. The track is 12 px high (--rail-track). A
   hit area is 24 px, and --touch under touch (the marks merge before hit areas meet); it is centred on the track and
   overflows it above and below. Opened under touch the track is as tall as the hit area. Whatever holds it places it
   (sticky, fixed, in a toolbar's row) and sets its width. */
.rail { --rail-hit: 24px; --rail-track: 12px; --rail-notch: 6px; --rail-notch-now: 10px; --rail-notch-w: 2px; display: flex; flex-direction: column; padding: env(safe-area-inset-top) max(var(--space-3), env(safe-area-inset-right)) 0 max(var(--space-3), env(safe-area-inset-left)); background: var(--surface); border-bottom: 1px solid var(--grid); color: var(--ink); font: 400 var(--fs-ui)/var(--lh-ui) var(--font); }

/* One compact frame for host pages and kind shells. It stands on the page ground under the hairline, as the host's
   bar (`.site-header`) does, so a standalone bar and a hosted one look the same under every brand. Progress occupies its bottom
   two pixels; it never creates another row or moves the content when it appears. */
.topbar, .bar { position: relative; display: flex; flex: none; align-items: center; gap: var(--space-2); height: var(--topbar-h); box-sizing: border-box; padding: 0 max(var(--space-3), env(safe-area-inset-right)) 0 max(var(--space-3), env(safe-area-inset-left)); background: var(--page); border-bottom: 1px solid var(--baseline); color: var(--ink); font: 400 var(--fs-ui)/var(--lh-ui) var(--font); }
/* The title keeps a 4rem floor however much the tools take ("News" was 0 px wide at 390, a gallery's "Ma…" 35 px).
   The host's bar scrolls its tools, so its title holds the floor. A page's own bar cannot scroll them: there the
   tools give what they can first (the title shrinks last) and, where they still need the room, the title gives way
   whole (under 3.5rem it is not drawn, but still read) rather than showing two letters. */
.topbar-heading { flex: 1 1 4rem; min-width: 0; container: topbar-heading / inline-size; }
.bar > .topbar-heading { min-width: 4rem; }
.topbar > .topbar-tools { flex-shrink: 100; min-width: auto; max-width: none; }
@container topbar-heading (max-width: 3.49rem) { .topbar-title, .topbar-context { opacity: 0; } }
.topbar-title, .topbar-context { margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Under a bar the title outranks a page's heading rules (app/kit.css `.app h1`): it is 14 px at 600 in every bar. */
.topbar-title, :is(.topbar, .bar) .topbar-title { font: 600 var(--fs-ui)/var(--lh-ui) var(--font); }
.topbar-context { color: var(--ink-2); font: 400 var(--fs-small)/var(--lh-small) var(--font); }
.topbar-context:empty, .topbar-leading:empty, .topbar-tools:empty { display: none; }
.topbar-leading, .topbar-tools { display: flex; align-items: center; gap: var(--space-1); min-width: 0; }
.topbar-tools { flex: 0 1 auto; max-width: 70vw; overflow: visible; }
/* Host menus use fixed placement; local menus must escape the bar's bounds. */
.bar > .topbar-tools { overflow-x: auto; scrollbar-width: none; }
.topbar-tools > * { flex-shrink: 0; }
.topbar-tools .btn:not(.icon-only), .topbar-tools .select { max-width: 10rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* A field in the bar (a lent search) takes a field's width, not the whole row: the kit's `width: 100%` would push the
   tools after it out of the bar. */
.topbar-tools > .text-in { width: 12rem; min-width: 6rem; flex-shrink: 1; }
/* On a phone (the kit's narrow width) the controls a page lends the host's bar sit closer, so a short title keeps its room ("News" read "Ne…" at 390 px). */
@media (max-width: 699.98px) { .bar > .topbar-tools .btn { padding-inline: var(--space-2); } }
/* On a phone the host's bar does not draw the place text a page lends it; the page's own heading names the place. */
@media (max-width: 699.98px) { .bar > .topbar-tools .topbar-context { display: none; } }
/* A note in a bar (ui.js `barNote`): what the page's documents are doing, or where its progress is kept. The host reads it as bar text. */
.bar-note { margin: 0; min-width: 0; color: var(--ink-2); font: 400 var(--fs-small)/var(--lh-small) var(--font); overflow-wrap: anywhere; }
.bar-note:empty, .bar-note[hidden] { display: none; }
@media (max-width: 699.98px) { .bar-note.wide-only { display: none; } }
.topbar-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: linear-gradient(to right, var(--ink) var(--progress, 0%), var(--baseline) var(--progress, 0%)); pointer-events: none; }
.topbar-progress[hidden] { display: none; }
.topbar-mark { position: absolute; left: min(var(--at, 0%), calc(100% - 1px)); bottom: 0; width: 1px; height: 6px; background: var(--muted); pointer-events: none; }
.topbar-mark.is-sub { height: 4px; }
.topbar-mark.is-read { background: var(--ink); }
.topbar-menu > summary { list-style: none; cursor: pointer; }
.topbar-menu > summary::-webkit-details-marker { display: none; }
.topbar-menu-list { position: fixed; top: var(--topbar-h); right: max(var(--space-2), env(safe-area-inset-right)); display: flex; flex-direction: column; max-width: calc(100vw - var(--space-4)); max-height: calc(100dvh - var(--topbar-h) - var(--space-4)); overflow-y: auto; }
.topbar-menu-list .btn { justify-content: flex-start; max-width: none !important; }
/* The host draws a page's places (ui/topbar.js `places`) as a row of buttons, or as this menu where the row does not fit; the current is marked in both. */
.topbar-places { display: flex; align-items: center; gap: var(--space-1); }
.topbar-menu-list .btn[aria-current="page"] { box-shadow: none; background: var(--button-tint); }
html.hosted-topbar [data-topbar] { display: none !important; }
/* A site header (docs/ui.md, "Site header"): the bar a site's own pages open with (a share's bar, a site browser's top,
   a notice's header). It stands on the page ground under a hairline, like the page it heads: one paper, structure from
   the line; only what floats over it (a menu, a popover, an overlay drawer) is raised. Its mark (`.site-mark`) is
   drawn in the ink with no ground of its own. A header that stays over scrolled content keeps the page ground,
   frosted where the browser can (`.site-header.is-frosted`); a site that honours reduced transparency
   sets `--frost: 100%` and no filter in its own sheet, since the kit's sheets write only the media conditions app-source.test.mjs lists. */
.site-header { background: var(--page); color: var(--ink); border-bottom: 1px solid var(--baseline); }
@supports (backdrop-filter: blur(1px)) { .site-header.is-frosted { background: color-mix(in srgb, var(--page) var(--frost, 85%), transparent); -webkit-backdrop-filter: blur(30px) saturate(125%); backdrop-filter: blur(30px) saturate(125%); } }
.site-mark { display: inline-flex; flex: none; color: inherit; text-decoration: none; }
.site-mark svg { fill: none; stroke: currentColor; }
.rail-name { display: flex; align-items: center; gap: var(--space-2); width: 100%; min-height: var(--control-s); padding: 0 var(--space-2); margin: 0; border: 0; border-radius: var(--radius-m); background: transparent; color: var(--ink); font: 500 var(--fs-ui)/var(--lh-ui) var(--font); text-align: left; }
button.rail-name { cursor: pointer; transition: background var(--dur-faster); }
button.rail-name:hover { background: var(--button-tint-hover); }
button.rail-name:active { background: var(--button-tint-pressed); }
.rail-name .icon { color: var(--ink-2); }
.rail-words { min-width: 0; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; overflow-wrap: anywhere; }
.rail-count { color: var(--ink-2); font-variant-numeric: tabular-nums; font-weight: 400; }
.rail-track { position: relative; }
.rail-line { position: relative; height: var(--rail-track); margin: 0 calc(var(--rail-hit) / 2); }
.rail-line::before, .rail-fill { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--baseline); }
.rail-fill { height: 2px; margin-top: -1px; background: var(--ink); transform: scaleX(0); transform-origin: 0 50%; }
.rail-mark { position: absolute; top: 50%; display: block; width: var(--rail-hit); height: var(--rail-hit); margin: calc(var(--rail-hit) / -2) 0 0 calc(var(--rail-hit) / -2); padding: 0; border: 0; border-radius: var(--radius-m); background: transparent; color: var(--ink-2); text-decoration: none; cursor: pointer; }
.rail-mark::before { content: ""; position: absolute; left: 50%; top: 50%; width: var(--rail-notch-w); height: var(--rail-notch); transform: translate(-50%, -50%); background: var(--rail-tone, var(--ink-2)); transition: height var(--dur-faster); }
.rail-mark.is-merged::before { width: calc(var(--rail-notch-w) * 3); background: linear-gradient(90deg, var(--rail-tone, var(--ink-2)) var(--rail-notch-w), transparent 0 calc(var(--rail-notch-w) * 2), var(--rail-tone, var(--ink-2)) 0); }
.rail-mark.is-read { --rail-tone: var(--ink); }
.rail-mark[aria-current] { --rail-tone: var(--ink); }
.rail-mark[aria-current]::before, .rail-mark:hover::before, .rail-mark:focus-visible::before { height: var(--rail-notch-now); }
.rail-mark:hover, .rail-mark:focus-visible { --rail-tone: var(--ink); }
.rail-tip { position: absolute; z-index: var(--z-menu); top: calc(100% + var(--space-1)); left: 0; width: max-content; max-width: min(20rem, calc(100vw - var(--space-4))); padding: var(--space-2) var(--space-3); border-radius: var(--radius-m); background: var(--surface); color: var(--ink); box-shadow: var(--shadow-16); font: 400 var(--fs-small)/var(--lh-small) var(--font); pointer-events: none; }
.rail-tip[hidden] { display: none; }
.rail-toggle { display: none; }
@media (pointer: coarse), (max-width: 699.98px) {
  .rail { --rail-hit: var(--touch); --rail-track: var(--rail-hit); }
  .rail-name { min-height: var(--touch); }
  /* Folded (the default under touch): a 12 px track that still shows the fill and the read and current marks, the name
     row gone, and one tap target over the whole track. Open: the name row, a track as tall as a hit area and 44 px marks. */
  .rail[data-fold] { position: relative; }
  .rail[data-fold] .rail-line, .rail[data-fold] .rail-mark { transition: height var(--dur-fast), width var(--dur-fast), margin var(--dur-fast); }
  .rail[data-fold] .rail-name { max-height: var(--touch); padding-right: var(--touch); transition: max-height var(--dur-fast), opacity var(--dur-fast); }
  .rail[data-fold="closed"] { --rail-hit: 24px; --rail-track: 12px; }
  .rail[data-fold="closed"] .rail-name { max-height: 0; min-height: 0; overflow: hidden; opacity: 0; visibility: hidden; transition: max-height var(--dur-fast), opacity var(--dur-fast), visibility 0s var(--dur-fast); }
  .rail-toggle { display: block; position: absolute; z-index: 1; top: env(safe-area-inset-top); right: max(var(--space-3), env(safe-area-inset-right)); width: var(--touch); height: var(--touch); margin: 0; padding: 0; border: 0; border-radius: var(--radius-m); background: transparent; color: var(--ink-2); cursor: pointer; transition: background var(--dur-faster); }
  .rail-toggle:hover { background: var(--button-tint-hover); }
  .rail-toggle:active { background: var(--button-tint-pressed); }
  .rail-toggle .icon { position: absolute; left: 50%; top: 50%; margin: -8px 0 0 -8px; transform: rotate(180deg); transition: transform var(--dur-fast); }
  /* The tap target is the whole width and 44 px high: the 12 px track and the page below it. */
  .rail[data-fold="closed"] .rail-toggle { left: 0; right: 0; width: auto; border-radius: 0; }
  .rail[data-fold="closed"] .rail-toggle .icon { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  button.rail-name, .rail-mark::before { transition: none !important; }
  .rail[data-fold] .rail-line, .rail[data-fold] .rail-mark, .rail[data-fold] .rail-name, .rail-toggle, .rail-toggle .icon { transition: none !important; }
}

/* ---- piece: miller ---- */
/* Columns (docs/ui.md, "Columns"): lead | here | preview, tracks by role (--miller-lead, --miller-here, the preview takes
   the rest, its content capped by --miller-preview-max), hairlines between panes, one calm list per column. The
   frame is an outline drawn over the panes, so the last pane's divider and the frame are the same pixel. A column
   hidden by the builder (or a server page) carries [hidden]; `is-next` is the column that fills the preview's place,
   `is-here` the pane a phone shows, and `.miller-spine` the pane behind it, folded to a bar (introdus's phone bar). */
.miller-frame { container: miller / inline-size; }
.miller { --miller-lead: clamp(12rem, 18cqw, 16rem); --miller-here: clamp(18rem, 32cqw, 30rem); --miller-preview-max: 44rem; --miller-spine: 2rem; display: grid; grid-template-columns: minmax(0, min(var(--miller-lead), 36cqw)) minmax(0, 1fr); grid-template-rows: auto auto minmax(0, 1fr) minmax(8rem, .8fr); height: clamp(28rem, 80vh, 40rem); overflow: hidden; border-radius: var(--radius-l); outline: 1px solid var(--grid); outline-offset: -1px; background: var(--surface); color: var(--ink); font: 400 var(--fs-ui)/var(--lh-ui) var(--font); }
.miller-path { grid-column: 1 / -1; grid-row: 1; display: flex; align-items: center; gap: var(--space-1); min-width: 0; padding: var(--space-1) var(--space-3); box-shadow: inset 0 -1px 0 var(--grid); font-size: var(--fs-small); line-height: var(--lh-small); white-space: nowrap; overflow: hidden; }
.miller-crumb { display: block; align-content: center; white-space: nowrap; min-width: 0; padding: var(--space-1) var(--space-2); border-radius: var(--radius-m); overflow: hidden; text-overflow: ellipsis; color: var(--ink-2); text-decoration: none; }
a.miller-crumb:hover { background: var(--button-tint-hover); color: var(--ink); }
.miller-crumb:not([aria-current]) { flex: none; max-width: 12em; }
.miller-crumb[aria-current] { flex: 0 1 auto; color: var(--ink); font-weight: 500; }
.miller-sep { display: inline-flex; flex: none; color: var(--ink-2); }
.miller-sep .icon { width: .75rem; height: .75rem; }
.miller-filter { grid-column: 1 / -1; grid-row: 2; padding: var(--space-2) var(--space-3); box-shadow: inset 0 -1px 0 var(--grid); }
.miller-filter[hidden], .miller-col[hidden], .miller-preview[hidden] { display: none; }
/* The spine: on one pane the pane behind the one shown lies down as one thin row across the top of the panes, a back
   chevron and that pane's name, and pressing it goes back there; the pane shown takes the whole width under it. This is
   introdus's phone bar (its section 143, O13, owner 2026-10-23: a rail beside a 390 px page took 50 px of its width; "a
   thin top bar"). It is 2rem high, and --touch under touch, as every target there is. Nothing behind (the first
   column), no spine. Wider, the panes themselves show, so it never does. */
.miller-spine { display: none; grid-column: 1 / -1; grid-row: 3; justify-self: stretch; flex-direction: row; align-items: center; justify-content: flex-start; gap: var(--space-1); box-sizing: border-box; min-width: 0; height: var(--miller-spine); margin: 0; padding: 0 var(--space-3); border: 0; border-radius: 0; box-shadow: inset 0 -1px 0 var(--grid); background: none; text-align: start; color: var(--ink-2); font: 500 var(--fs-small)/var(--lh-small) var(--font); text-decoration: none; cursor: pointer; overflow: hidden; -webkit-user-select: none; user-select: none; }
.miller-spine:hover { background: var(--button-tint-hover); color: var(--ink); }
.miller-spine:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }
.miller-spine > svg { flex: none; width: 1rem; height: 1rem; }
.miller-spine-name { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.miller-col { grid-row: 3; min-width: 0; padding: var(--space-2); box-sizing: border-box; overflow-y: auto; overscroll-behavior: contain; box-shadow: inset -1px 0 0 var(--grid); outline: none; }
.miller-preview { grid-column: 1 / -1; grid-row: 4; box-shadow: inset 0 1px 0 var(--grid); min-width: 0; padding: var(--space-4); box-sizing: border-box; overflow: auto; overflow-wrap: anywhere; }
.miller-item { container: miller-item / inline-size; display: flex; align-items: center; gap: var(--space-2); box-sizing: border-box; min-height: var(--control-m); padding: 0 var(--space-3); border-radius: var(--radius-m); color: inherit; text-decoration: none; cursor: pointer; -webkit-user-select: none; user-select: none; }
.miller-item + .miller-item { margin-top: 2px; }
.miller-item:hover { background: var(--button-tint-hover); }
.miller-item[aria-selected="true"], .miller-item[aria-current="true"] { background: var(--miller-item-fill-selected, var(--button-tint)); }
.miller-col:is(.is-focus, :focus-within) .miller-item:is([aria-selected="true"], [aria-current="true"]) { background: var(--miller-item-fill-selected-focus, var(--button-tint-pressed)); }
.miller-col:focus-visible .miller-item[aria-selected="true"], .miller-item:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }
.miller-icon { display: inline-flex; flex: none; color: var(--ink-2); }
.miller-name { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.miller-meta { flex: none; max-width: 9rem; margin-inline-end: var(--space-1); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-2); font-size: var(--fs-small); font-variant-numeric: tabular-nums; }
.miller-count { flex: none; min-width: 2ch; text-align: end; color: var(--ink-2); font-size: var(--fs-small); font-variant-numeric: tabular-nums; }
/* The selected row is the darkest ground of the pane; its count steps up to the ink to keep 4.5:1 on it. */
.miller-item:is([aria-selected="true"], [aria-current="true"]) :is(.miller-count, .miller-meta) { color: var(--ink); }
.miller-chevron { display: inline-flex; flex: none; justify-content: center; width: 1rem; min-height: 1rem; color: var(--ink-2); }
/* The meta is the first thing to go: an item narrower than 16 rem (the lead track) shows its name and count only. */
@container miller-item (max-width: 15.99rem) { .miller-meta { display: none; } }
/* A fold: one row that opens the rest of a long group, no script. The summary is an item; its chevron turns open. */
.miller-more { display: block; }
.miller-more > summary { list-style: none; }
.miller-more > summary::-webkit-details-marker { display: none; }
.miller-more > summary .miller-chevron .icon { transition: transform var(--dur-fast) var(--ease); }
.miller-more[open] > summary .miller-chevron .icon { transform: rotate(90deg); }
/* The rhythm of .miller-item + .miller-item, across the fold's edges: the summary is the fold's first child, so only a row before the fold and a row after the summary take the gap. */
.miller-item + .miller-more, .miller-more > summary + .miller-item { margin-top: 2px; }
.miller-wait { padding: var(--space-3); }
.miller-empty { margin: 0; padding: var(--space-4) var(--space-3); color: var(--ink-2); }
.miller-col.is-new, .miller-preview.is-new { animation: miller-in var(--dur-fast) var(--ease); }
@keyframes miller-in { from { opacity: 0; transform: translateX(var(--space-2)); } }
.miller-col.is-next { grid-column: 1 / -1; grid-row: 4; box-shadow: inset 0 1px 0 var(--grid); }
.miller[data-lead="none"] { grid-template-rows: auto auto minmax(0, 1fr); }
.miller[data-lead="none"] .miller-col.is-next, .miller[data-lead="none"] .miller-preview { grid-column: 2; grid-row: 3; box-shadow: none; }
@container miller (min-width: 880px) {
  .miller, .miller[data-lead] { grid-template-columns: minmax(0, var(--miller-lead)) minmax(0, var(--miller-here)) minmax(0, 1fr); grid-template-rows: auto auto minmax(0, 1fr); height: clamp(20rem, 62vh, 34rem); }
  .miller[data-lead="none"] { grid-template-columns: minmax(0, var(--miller-lead)) minmax(0, 1fr); }
  .miller-col.is-next, .miller-preview, .miller[data-lead="none"] .miller-col.is-next, .miller[data-lead="none"] .miller-preview { grid-column: auto; grid-row: 3; box-shadow: none; }
}
@container miller (max-width: 559.98px) {
  .miller, .miller[data-lead] { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto auto minmax(0, 1fr); height: clamp(20rem, 62vh, 34rem); }
  .miller-spine:not([hidden]) { display: flex; }
  .miller-col:not(.is-here), .miller-preview:not(.is-here) { display: none; }
  .miller :is(.miller-col, .miller-preview).is-here { grid-column: 1 / -1; grid-row: 4; box-shadow: none; }
}
/* The preview's content keeps a readable measure and starts at the pane's start edge. */
.miller-preview > * { max-width: var(--miller-preview-max); margin-inline-start: 0; margin-inline-end: auto; }
/* A column may hold labelled groups (a browser's kinds, then its tags): the name is a caption over its items. */
.miller-group + .miller-group, .miller-item + .miller-group { margin-top: var(--space-3); }
.miller-group-name { margin: 0; padding: var(--space-1) var(--space-3); color: var(--ink-2); font: 500 var(--fs-caption)/var(--lh-caption) var(--font); }
/* Dense (.is-compact): rows of the small type, about 28 px under a fine pointer and --touch under touch, no gap between
   rows. Filling (.is-fill): the page gives the frame its height and the control takes all of it, edge to edge, with no
   outline or corners; each column still scrolls on its own. Both come last so they hold in every layout. */
.miller.is-compact { font-size: var(--fs-small); line-height: var(--lh-small); }
.miller.is-compact .miller-col { padding: var(--space-1); }
.miller.is-compact .miller-item { min-height: 28px; padding: 0 var(--space-2); }
.miller.is-compact :is(.miller-item + .miller-item, .miller-item + .miller-more, .miller-more > summary + .miller-item) { margin-top: 0; }
.miller.is-compact .miller-group-name { padding: var(--space-2) var(--space-2) var(--space-1); }
.miller.is-compact .miller-preview { padding: var(--space-3) var(--space-4); }
.miller-frame:has(> .miller.is-fill) { height: 100%; }
.miller.is-fill { height: 100%; border-radius: 0; outline: 0; }
/* Independent, bounded panes: overflow never changes the row width or escapes into the page. Native scrolling
   keeps keyboard, wheel and touch behaviour; the thumb follows the current theme, including high contrast. */
.miller-col, .miller-preview { min-height: 0; contain: layout paint; scrollbar-gutter: stable; scrollbar-width: thin; scrollbar-color: var(--ink-2) var(--surface); overscroll-behavior: contain; overflow-anchor: none; }
@supports not (scrollbar-width: thin) {
  .miller-col::-webkit-scrollbar, .miller-preview::-webkit-scrollbar { width: 8px; height: 8px; }
  .miller-col::-webkit-scrollbar-track, .miller-preview::-webkit-scrollbar-track { background: var(--surface); }
  .miller-col::-webkit-scrollbar-thumb, .miller-preview::-webkit-scrollbar-thumb { background: var(--ink-2); border: 2px solid var(--surface); border-radius: var(--radius-m); }
}
@media (pointer: coarse), (max-width: 699.98px) {
  .miller.is-compact .miller-item { min-height: var(--touch); }
  .miller { --miller-spine: var(--touch); }
}

/* ---- piece: place bar (ui.js `placeBar`) ----
   A page's places as a bar at the foot of a phone: an icon over a word, each target at least --touch high, above the safe area. Wider, the places are
   in the top bar (ui/topbar.js `places`) and this bar is not drawn. While it shows the page's root holds its height in --place-bar-room (the shell pads by it). */
.place-bar { display: none; box-sizing: border-box; padding: 0 env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left); background: var(--surface); border-top: 1px solid var(--grid); }
.place { flex: 1 1 0; min-width: 0; min-height: var(--touch); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: var(--space-1) var(--space-2); box-sizing: border-box; color: var(--ink-2); font: 500 var(--fs-small)/var(--lh-small) var(--font); text-decoration: none; }
.place:hover { background: var(--layer-hover); }
.place:focus-visible { outline-offset: -3px; }
.place[aria-current="page"] { color: var(--ink); font-weight: 600; box-shadow: inset 0 2px 0 var(--accent); }
.place-label { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 699.98px) {
  .place-bar { position: fixed; z-index: var(--z-sticky); left: 0; right: 0; bottom: 0; display: flex; }
}
/* Pan and zoom (panzoom.js) and the expandable figure (figure.js): a drawing opened full screen over the scrim. */
.panzoom { position: relative; overflow: hidden; min-height: 12rem; border-radius: var(--radius-m); background: var(--well); box-shadow: var(--well-shade); touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none; }
.panzoom[data-zoomed="true"] { touch-action: none; }
.panzoom[data-dragging="true"] { cursor: grabbing; }
.panzoom:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.panzoom-content { transform-origin: 0 0; will-change: transform; }
.panzoom-content[data-glide] { transition: transform var(--dur-normal) ease-out; }
.panzoom-controls { position: absolute; top: var(--space-2); right: var(--space-2); display: flex; gap: var(--space-1); padding: var(--space-1); border-radius: var(--radius-l); background: var(--surface); box-shadow: var(--shadow-16); cursor: default; }
.sheet.figure-view[data-side] { inset: max(var(--space-2), env(safe-area-inset-top)) max(var(--space-2), env(safe-area-inset-right)) max(var(--space-2), env(safe-area-inset-bottom)) max(var(--space-2), env(safe-area-inset-left)); margin: 0; width: auto; max-width: none; height: auto; max-height: none; border-radius: var(--radius-xl); box-shadow: var(--shadow-64); }
:root[data-theme="dark"] .sheet.figure-view { outline: 1px solid var(--grid); }
.sheet.figure-view:fullscreen { inset: 0; border-radius: 0; box-shadow: none; outline: 0; }
.sheet.figure-view .sheet-body { display: flex; flex-direction: column; overflow: hidden; padding: var(--space-2); }
.figure-stage { flex: 1 1 auto; min-height: 0; display: flex; }
.figure-stage > .panzoom { flex: 1 1 auto; min-height: 0; }
.figure-drawing { display: block; max-width: none; }
.figure-view [data-tip] { cursor: help; }
.figure-view .popover[role="tooltip"] { position: fixed; z-index: 1; pointer-events: none; }
html.figure-open, html.figure-open body { overflow: hidden; }
.figure-bar { display: none; align-items: center; justify-content: space-between; gap: var(--space-3); min-height: 32px; border-bottom: 1px solid var(--grid); font-size: var(--fs-small); line-height: var(--lh-small); color: var(--ink-2); }
.figure-hint, .figure-bar .btn { white-space: nowrap; }
.figure-hint::after { content: " \2192"; }
.figure-bar .figure-open { margin-left: auto; }
@media (max-width: 699.98px) { .figure-bar .figure-open > .btn-label { display: none; } }
@media (prefers-reduced-motion: reduce) { .panzoom-content[data-glide] { transition: none; } }
/* A switch (ui.js `toggle`): an on/off setting that applies at once; the input is a transparent checkbox with role="switch" over the whole row, so the row is its target. */
.switch { position: relative; display: inline-flex; align-items: center; gap: var(--space-3); min-height: var(--control-m); cursor: pointer; font: 400 var(--fs-ui)/var(--lh-ui) var(--font); color: var(--ink); }
.switch-track { position: relative; flex: none; width: 40px; height: 20px; border-radius: var(--radius-pill); background: transparent; box-shadow: inset 0 0 0 1px var(--border-strong); transition: background var(--dur-normal) var(--curve-easy), box-shadow var(--dur-normal) var(--curve-easy); }
.switch-track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: var(--radius-pill); background: var(--border-strong); transition: transform var(--dur-normal) var(--curve-easy), background var(--dur-normal) var(--curve-easy); }
.switch-input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: inherit; }
.switch input:checked + .switch-track { background: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.switch input:checked + .switch-track::after { transform: translateX(20px); background: var(--surface); }
.switch input:focus-visible + .switch-track { outline: 2px solid var(--ink); outline-offset: 2px; }
.switch input:disabled + .switch-track { opacity: .5; } .switch:has(input:disabled) { cursor: default; }
@media (pointer: coarse), (max-width: 699.98px) { .switch { min-height: var(--touch); } }
@media (prefers-reduced-motion: reduce) { .switch-track, .switch-track::after { transition: none; } }

/* ==== Page frame, page head, section head, story rows and group labels (docs/app-ui.md, "Page and story elements") ====
   One look for every place and list of an app: a centred frame with gutters from the scale, a head whose name leads, a
   section head (a label one step up from the small size, in the ink, on a hairline; over it a group label at the small size in the secondary ink; no capitals and no letter spacing, docs/app-ui.md section 6, its one link at the end), and one story row in three densities.
   Hierarchy comes from size and space, not from weight; every value is a token. */
.page-frame { box-sizing: border-box; inline-size: 100%; max-inline-size: 76rem; margin-inline: auto; padding-inline: var(--space-6); }
/* A place whose lists earn more columns on a wide screen (docs/news.md 10.24) keeps the gutters and drops the cap. */
.page-frame.page-frame-wide { max-inline-size: none; }
.page-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "title tools" "note note"; align-items: end; gap: var(--space-1) var(--space-3); padding-block: var(--space-5) var(--space-2); min-inline-size: 0; }
.page-head > * { grid-column: 1 / -1; margin: 0; min-inline-size: 0; }
.page-head > .page-head-title { grid-area: title; margin: 0; font: 400 var(--fs-display)/1.15 var(--display); overflow-wrap: anywhere; }
.page-head > .page-head-tools { grid-area: tools; display: flex; align-items: center; gap: var(--space-1); }
.page-head > .page-head-note { color: var(--ink-2); font-size: var(--fs-ui); line-height: var(--lh-ui); }
/* A head on one row (a place whose first screen is its list): the name at the title size, the note beside it, the tools at the end. */
.page-head.page-head-row { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "title note tools"; align-items: center; padding-block: var(--space-2) var(--space-1); }
/* The row keeps the name at display size (one page head for every place); only the space around it is tighter, so the note and tools share its line. */
.page-head.page-head-row > .page-head-title { line-height: 1.1; }
.page-head.page-head-row > .page-head-note { grid-area: note; }
/* A head whose name is a story's headline: the title size, so a long headline stays a headline. */
.page-head.page-head-headline > .page-head-title { font-size: var(--fs-title); line-height: var(--lh-title); text-wrap: pretty; }
.page-head > .page-head-note:empty, .page-head > .page-head-note[hidden] { display: none; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-2); margin: 0 0 var(--space-1); padding: 0 0 var(--space-2); border-block-end: 1px solid var(--grid); min-inline-size: 0; }
/* Doubled so a heading element keeps it over the shell's `.app h2, .app h3` (kit.css, read after this sheet). */
.section-head-title.section-head-title { margin: 0; color: var(--ink); font: 500 var(--fs-ui)/var(--lh-ui) var(--font); }
.section-head-link { color: var(--ink-2); font-size: var(--fs-small); line-height: var(--lh-small); text-decoration: none; white-space: nowrap; }
.section-head-link:hover, .section-head-link:focus-visible { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.group-label { display: flex; align-items: center; gap: var(--space-1); margin: var(--space-3) 0 0; padding-block-start: var(--space-3); border-block-start: 1px solid var(--grid); color: var(--ink-2); font: 500 var(--fs-small)/var(--lh-small) var(--font); min-inline-size: 0; overflow-wrap: anywhere; }
.group-label.group-label { font-weight: 500; }
/* Under touch a story's two targets grow away from each other: the headline link's extra height goes above its text (padding given
   back by a negative margin), a link in the meta line grows below its text (an inline box's padding takes no room in the line), and
   the row's own padding holds both, so the two lines of text sit together, the space falls between rows and no target overlaps
   the next row's. */
@media (pointer: coarse), (max-width: 699.98px) {
  .btn.btn.quiet.icon-only.flush, .btn.btn.quiet.icon-only.small.flush { margin-inline-start: calc((16px - var(--touch)) / 2); }
  .story .story-title a, .story a.story-title { display: block; min-height: 0; min-width: 0; --story-hit: max(0px, calc(var(--touch) - 1lh)); padding-block: var(--story-hit) 0; margin-block: calc(-1 * var(--story-hit)) 0; }
  .story .story-meta a { display: inline; min-height: 0; min-width: 0; padding-block: 0 calc(var(--touch) - 1em); }
}
.section-head + .group-label, .section-head + * > .group-label:first-child, .section-head + * > :first-child > .group-label:first-child { margin-block-start: 0; padding-block-start: var(--space-1); border-block-start: 0; }
.story, .rows > .story.row, .story.row { display: flex; flex-direction: column; align-items: stretch; gap: 0; min-inline-size: 0; padding: var(--space-2) 0; border: 0; overflow-wrap: anywhere; }
.story > * { margin-block: 0; }
.story > .story-title { order: -1; }
.story .story-title, .story .row-title.story-title { color: var(--ink); font: 400 var(--fs-base)/var(--lh-base) var(--font); text-decoration: none; text-wrap: pretty; }
.story a.story-title:hover, .story a.story-title:focus-visible, .story .story-title a:hover, .story .story-title a:focus-visible { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
/* A tag in the meta line (an outlet's initials, New) does not make the line taller than its text. */
.story .story-meta .tag { margin-block: -0.25rem; vertical-align: middle; }
.story .story-meta { margin-block-start: 0; color: var(--ink-2); font-size: var(--fs-small); line-height: var(--lh-small); }
/* A meta line keeps its one-separator step back (meta line, above) inside an app, whose `.app p` would zero it. */
.story .story-meta.meta-line { margin-inline-start: calc(-1 * var(--meta-sep)); }
.story .story-excerpt { margin-block-start: var(--space-1); max-inline-size: var(--measure); color: var(--ink-2); font-size: var(--fs-ui); line-height: var(--lh-ui); }
.story .story-actions { margin-block-start: var(--space-1); }
.story-lead { padding-block: var(--space-1) var(--space-4); }
.story-lead .story-title, .story-lead .story-title a { font-size: var(--fs-title); line-height: var(--lh-title); }
.story-lead .story-excerpt { margin-block-start: var(--space-2); color: var(--ink); font-size: var(--fs-base); line-height: var(--lh-base); }
.story-compact, .rows > .story-compact.row { padding-block: var(--space-1) var(--space-2); }
.story.seen .story-title, .story.seen .story-title a { color: var(--ink-2); }
/* Under touch the row's padding holds its two grown targets (after the densities, which it overrides there). */
@media (pointer: coarse), (max-width: 699.98px) {
  .story, .rows > .story.row, .story.row, .story-compact, .rows > .story-compact.row { padding-block: calc(var(--touch) - var(--lh-base)) calc(var(--touch) - var(--fs-small)); }
}
/* A quiet button set on a column's edge: its label starts at the edge, its padding hangs outside (the hover tint still shows it whole). */
.btn.quiet.flush { margin-inline-start: calc(-1 * var(--space-4)); }
.btn.quiet.small.flush { margin-inline-start: calc(-1 * var(--space-3)); }
.btn.quiet.icon-only.flush, .btn.quiet.icon-only.small.flush { margin-inline-start: calc((16px - var(--control-s)) / 2); }
/* A row of quiet buttons on the text edge: every line of it, wrapped or not, starts where the text does. */
.actions.flush { margin-inline-start: calc(-1 * var(--space-4)); }
/* A disclosure set on a column's edge: the chevron's drawing (it starts 6 of its 16 units in) starts at the edge. */
.disclosure.flush > .disclosure-summary > .icon:first-child { margin-inline-start: -0.375rem; }
@media (max-width: 699.98px) { .page-frame { padding-inline: var(--space-4); } .page-head { padding-block-start: var(--space-4); } }

/* ---- piece: wordmark (ui/wordmark.js `wordmark`) ----
   A text in pixels, as wide as its container: a vertical gradient from `--wordmark-top` (default the ink) to
   `--wordmark-bottom` (default the accent) over a soft halo, the bottom colour mixed into the page. A brand with a warm
   note sets the two properties on html. The motion is marked by the module only for a person looking, and is off under
   reduced motion: the glyphs drop into place once, one after another, each in --dur-normal; then the cursor goes out
   for --dur-normal four times, a terminal's blink, and rests lit. Nothing loops. A capture draws the final state. */
/* As wide as its container, rounded down to a whole number of CSS pixels a pixel, so no column of the mark is drawn a
   device pixel wider than its neighbour; centred in what the rounding leaves. */
.wordmark { display: block; inline-size: 100%; inline-size: round(down, 100%, var(--wordmark-units, 1) * 1px); block-size: auto; margin-inline: auto; overflow: visible; }
.wordmark .wordmark-top { stop-color: var(--wordmark-top, var(--ink)); }
.wordmark .wordmark-bottom { stop-color: var(--wordmark-bottom, var(--accent)); }
.wordmark .wordmark-halo { fill: color-mix(in srgb, var(--wordmark-bottom, var(--accent)) 26%, var(--page)); }
.wordmark { --wordmark-landed: calc(var(--wordmark-glyphs, 0) * 45ms + 500ms); }
.wordmark[data-settle] :is(.wordmark-glyph, .wordmark-cursor) { animation: wordmark-settle var(--dur-normal) var(--curve-decel-mid) calc(var(--wordmark-at, 0) * 45ms) both; }
.wordmark[data-blink] .wordmark-block {
  animation: wordmark-blink var(--dur-normal) linear var(--wordmark-landed), wordmark-blink var(--dur-normal) linear calc(var(--wordmark-landed) + 760ms),
    wordmark-blink var(--dur-normal) linear calc(var(--wordmark-landed) + 1520ms), wordmark-blink var(--dur-normal) linear calc(var(--wordmark-landed) + 2280ms);
}
@keyframes wordmark-settle { from { opacity: 0; transform: translateY(-2px); } }
@keyframes wordmark-blink { from, to { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .wordmark-glyph, .wordmark-cursor, .wordmark-block { animation: none !important; }
}

:root{color-scheme:light dark}
[hidden]{display:none!important}
body{font-size:var(--fs-base);line-height:24px}
code,kbd,samp,.mono{font-family:var(--mono)}
.home.site-mark svg{width:22px;height:22px}
.shell .who{flex:0 1 auto;min-width:0;max-width:38vw}
main{max-width:1056px;margin:0 auto;padding:32px var(--space-3) 64px}
h1{margin:0 0 16px;font-size:var(--fs-display);line-height:1.2308;font-weight:600;letter-spacing:0;text-wrap:balance;overflow-wrap:anywhere}
h2{margin:0;font-size:var(--fs-title);line-height:28px;font-weight:600;letter-spacing:0;text-wrap:balance;overflow-wrap:anywhere}
h3{margin:0;font-size:var(--fs-base);line-height:22px;font-weight:600;letter-spacing:0;text-wrap:balance;overflow-wrap:anywhere}
a:hover:not(.btn):not(.chip):not(.tag){color:var(--ink-2)}
a.btn,a.chip,a.tag{text-decoration:none}
.meta{display:flex;flex-wrap:wrap;align-items:center;gap:8px 16px;color:var(--ink-2);font-size:var(--fs-small);line-height:18px}
.panel{margin:0 0 16px}
.note{margin:0;color:var(--ink-2)}
footer{margin-top:32px;color:var(--muted);font-size:var(--fs-caption);line-height:16px;letter-spacing:.32px}
@supports (backdrop-filter:blur(1px)){.js #bulk{background:color-mix(in srgb,var(--surface) 85%,transparent)!important;-webkit-backdrop-filter:blur(30px) saturate(125%);backdrop-filter:blur(30px) saturate(125%)}}
@media (prefers-reduced-transparency:reduce){.js #bulk{background:var(--surface)!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important}.site-header.is-frosted{--frost:100%;-webkit-backdrop-filter:none;backdrop-filter:none}}
@media (max-width:672px){main{padding:24px var(--space-3) 48px}}
@media (max-width:671px){p,li{hyphens:auto}.transcript li{hyphens:manual}}

.meta{margin-bottom:32px}
img,video{max-width:100%;height:auto;display:block}
audio{width:100%;display:block}
body.full{display:flex;flex-direction:column;height:100vh;height:100dvh;overflow:hidden}
/* The bar is the kit's `.bar` (ui/ui.css: height, padding, gap, ground, hairline); the share page only pins it. */
.bar{position:sticky;top:0;z-index:var(--z-sheet)}
.frame{flex:1;min-height:0;width:100%;border:0;display:block;background:var(--page)}
.stage{flex:1;min-height:0;display:flex;align-items:center;justify-content:center;padding:16px;padding-left:max(16px,env(safe-area-inset-left));padding-right:max(16px,env(safe-area-inset-right));padding-bottom:max(16px,env(safe-area-inset-bottom));overflow:auto;background:var(--page)}
.stage a{display:block;max-width:100%;line-height:0;cursor:zoom-in;background:var(--surface);border:1px solid var(--baseline);border-radius:var(--radius-l);overflow:hidden;box-shadow:var(--shadow-4)}
.stage img,.stage video{max-width:100%;max-height:calc(100vh - var(--topbar-h) - 34px);max-height:calc(100dvh - var(--topbar-h) - 34px);width:auto;height:auto;object-fit:contain;margin:0 auto}
.stage video{background:var(--surface);border:1px solid var(--baseline);border-radius:var(--radius-l);box-shadow:var(--shadow-4)}
.player{position:sticky;top:var(--topbar-h);z-index:var(--z-sticky);background:var(--surface);border-bottom:1px solid var(--baseline)}
.pin{max-width:calc(34rem + 32px);margin:0 auto;padding:8px 16px;padding-left:max(16px,env(safe-area-inset-left));padding-right:max(16px,env(safe-area-inset-right))}
.player video{max-height:40vh;max-height:40dvh;width:100%;background:var(--page)}
.pc{display:none}
.js .pc{display:block}
.js audio{display:none}
.row1{display:flex;align-items:center;gap:12px}
.play{flex:none;width:48px}
.play .i-pause,.play.playing .i-play{display:none}
.play.playing .i-pause{display:block}
.scrub{flex:1;min-width:0}
.times{display:flex;justify-content:space-between;font-size:var(--fs-small);line-height:16px;font-variant-numeric:tabular-nums lining-nums}
.seek{-webkit-appearance:none;appearance:none;display:block;margin:0;background:transparent;cursor:pointer;touch-action:none;--p:0%;--bc:color-mix(in srgb,var(--accent) 40%,var(--baseline));--buf:linear-gradient(transparent,transparent)}
.seek::-webkit-slider-runnable-track{height:4px;background:linear-gradient(to right,var(--ink) var(--p),transparent var(--p)),var(--buf),var(--baseline)}
.seek::-moz-range-track{height:4px;background:var(--buf),var(--baseline)}
.seek::-moz-range-progress{height:4px;background:var(--ink)}
.seek::-webkit-slider-thumb{-webkit-appearance:none;width:20px;height:20px;margin-top:-8px;border-radius:50%;background:var(--ink);border:0}
.seek::-moz-range-thumb{width:20px;height:20px;border-radius:50%;background:var(--ink);border:0}
.row2{display:flex;align-items:center;gap:8px;margin-top:8px}
.row2 .btn{min-width:48px}
.row2 .select{flex:1;min-width:0;width:auto}
.read{max-width:calc(34rem + 32px);margin:0 auto;padding:24px 16px 64px;padding-bottom:max(64px,env(safe-area-inset-bottom));font-size:var(--fs-base);line-height:24px}
.rhead h1{margin:0 0 12px}
.rhead .meta{margin-bottom:16px}
.chapnav{--ml:0px;--mr:0px;flex-wrap:nowrap;margin:0 -16px 16px;padding:4px 16px;overflow-x:auto;scroll-snap-type:x proximity;scrollbar-width:none;-webkit-mask-image:linear-gradient(to right,transparent 0,var(--ink) var(--ml),var(--ink) calc(100% - var(--mr)),transparent 100%);mask-image:linear-gradient(to right,transparent 0,var(--ink) var(--ml),var(--ink) calc(100% - var(--mr)),transparent 100%)}
.chapnav::-webkit-scrollbar{display:none}
.chapnav .chip{scroll-snap-align:start}
.chapnav .chip span{opacity:.7;font-weight:400;font-variant-numeric:tabular-nums lining-nums}
.transcript{list-style:none;margin:0;padding:0;max-width:34rem;hanging-punctuation:first}
.transcript li{display:flex;gap:16px;padding:8px 16px;scroll-margin-top:176px}
.transcript li{border-radius:var(--radius-m)}
.js .transcript li{cursor:pointer;transition:background var(--dur-faster) var(--curve-easy)}
.js .transcript li:hover{background:var(--layer-hover)}
.transcript li.active{background:color-mix(in srgb,var(--ink) 12%,transparent)}
.transcript li.active .ts{color:var(--ink);font-weight:600}
.transcript .ts{flex:none;width:48px;padding-top:2px;font-weight:400;font-size:var(--fs-small);line-height:20px;font-family:var(--mono);font-variant-numeric:tabular-nums}
.transcript .cue .who{font-weight:600;margin-right:4px}.transcript .cue .who::after{content:":"}
.transcript li.chapter{margin-top:56px;padding-top:0;padding-bottom:6px;font-size:var(--fs-title);line-height:28px;font-weight:600;text-wrap:balance}
.transcript li.chapter .ts{padding-top:4px}
.transcript li.chapter:first-child{margin-top:0}
.transcript li.kpt{background:color-mix(in srgb,var(--ink) 8%,transparent)}
.transcript li.kpt.active{background:color-mix(in srgb,var(--ink) 16%,transparent)}
.transcript .kp{display:block;margin-bottom:2px;color:var(--ink);font-size:var(--fs-small);line-height:16px;font-weight:600}
.keys{margin:0 0 24px;padding:0 12px;border:1px solid var(--baseline);border-radius:var(--radius-m)}
.keys summary span{font-weight:400}
.keys ol{margin:0;padding:0 0 10px 24px}
.keys li{padding:4px 0}
.keys li .ts{margin-left:8px;font-weight:400;font-size:var(--fs-small);line-height:20px;font-family:var(--mono);font-variant-numeric:tabular-nums}
.kcard{margin-top:8px;padding:8px 12px;border-radius:var(--radius-m);background:color-mix(in srgb,var(--ink) 8%,var(--layer-hover));font-size:var(--fs-ui);line-height:20px}
.kcard[hidden]{display:none}
.kcard b{display:block;color:var(--ink);font-size:var(--fs-caption);line-height:16px;font-weight:600}
.scrim{position:fixed;inset:0;z-index:var(--z-menu);animation:sc-in var(--dur-gentle) var(--curve-decel-max)}
.drawer{position:fixed;top:0;right:0;bottom:0;z-index:var(--z-status);width:400px;max-width:calc(100vw - 48px);height:auto;overflow:auto;padding:16px 24px 24px;animation:dr-in var(--dur-gentle) var(--curve-decel-max)}
@keyframes dr-in{from{transform:translateX(24px);opacity:0}}
@keyframes sc-in{from{opacity:0}}
.drawer.leaving{animation:dr-out var(--dur-fast) var(--curve-accel-mid) forwards}
@keyframes dr-out{to{transform:translateX(24px);opacity:0}}
.scrim[hidden],.drawer[hidden]{display:none}
.drawer .close{position:absolute;top:4px;right:4px}
.dtitle{margin:32px 0 16px;font-size:var(--fs-title);line-height:28px;font-weight:600;letter-spacing:0;overflow-wrap:anywhere}
.drawer .meta{margin-bottom:24px}
.outs{list-style:none;margin:0;padding:0}
.outs li{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;padding:12px 0;border-top:1px solid var(--baseline)}
.outs .oname{flex:1 1 100%;font-size:var(--fs-ui);line-height:20px;font-weight:500;overflow-wrap:anywhere}
.outs .oacts{display:flex;gap:8px;margin-left:auto}
.drawer footer{margin-top:24px}
.share-tools{margin:24px 0;padding-top:24px;border-top:1px solid var(--baseline)}
.share-tools h3{margin:0 0 12px;font-size:var(--fs-base);line-height:24px}
/* ui-exempt: a QR code must be dark modules on a light ground in either scheme, or it does not scan. */
.share-tools .qr{width:232px;max-width:100%;height:auto;background:white;image-rendering:pixelated}
.share-tools .field{margin:16px 0 12px}
.facts dl{margin:0 0 16px;font-size:var(--fs-ui);line-height:20px}
.share-tools .actions{display:flex;flex-wrap:wrap;gap:8px}
.copy-link{display:none}.js .copy-link{display:inline-flex}
.share-tools .copy-status{min-height:20px;margin:8px 0 0;font-size:var(--fs-ui)}
@media (max-width:699.98px){.bkbar #bkepub{display:none}}
/* A narrower step than the kit's compact width: at a phone's width the book bar's running head needs the room of one more button. */
@media (max-width:480px){.bkbar #bkopen{display:none}.transcript li{flex-direction:column;gap:0;padding:8px 12px}.transcript .ts{width:auto;padding-top:0}.transcript li.chapter .ts{padding-top:0}}
.tracks{list-style:none;margin:0 0 24px;padding:0;border:1px solid var(--baseline);border-radius:var(--radius-m)}
.tracks li+li{border-top:1px solid var(--baseline)}
.trk{display:flex;align-items:center;gap:12px;min-height:44px;padding:8px 12px;color:var(--ink);text-decoration:none}
a.trk .tt{color:var(--ink-2);transition:color var(--dur-faster) var(--curve-easy),transform var(--dur-fast,150ms) var(--curve-easy)}
a.trk .tn{transition:color var(--dur-faster) var(--curve-easy)}
a.trk:hover .tt{color:var(--ink);transform:translateX(4px)}
a.trk:hover .tn{color:var(--ink)}
a.trk:active .tt{opacity:.6}
a.trk.on .tt,a.trk.on .tn{color:var(--ink)}
.trk .tn{flex:none;width:24px;color:var(--ink-2);font-variant-numeric:tabular-nums}
.trk .tt{flex:1;min-width:0;overflow-wrap:anywhere}
.trk .td{flex:none;color:var(--ink-2);font-size:var(--fs-small);font-variant-numeric:tabular-nums}
.tracks .gone .trk{color:var(--ink-2);font-style:italic}
.th{margin:0 0 12px;font-size:20px;line-height:28px;font-weight:600;overflow-wrap:anywhere}
.trackbody{margin-bottom:40px}
.js .trackbody{display:none}
.js .trackbody.cur{display:block}
.mp{display:none}
.js .mp{display:block}
.row2 .cnt{flex:1;text-align:right;font-size:var(--fs-small);font-variant-numeric:tabular-nums}
.bkbar .topbar-progress{display:none}
.bkrun{display:flex;flex-direction:column;justify-content:center;height:100%}
.rh1{display:flex;align-items:baseline;min-width:0}
.rh1>*{min-width:0;overflow:hidden;text-overflow:ellipsis}
.rhbook{flex:0 1 auto;color:inherit;text-decoration:none}
.rhbook:hover{color:var(--ink);text-decoration:underline}
.rhpos{display:none;flex:none;font-variant-numeric:tabular-nums}
.rhpart{flex:0 1000 auto}
.rhpart:empty{display:none}
.rhpart::before,.rhsec::before{content:"\00b7";content:"\00b7"/"";padding:0 6px;color:var(--muted)}
.rhsec{display:none;flex:0 1000 auto}
.rh2{display:flex;align-items:baseline;gap:6px;min-width:0;max-width:100%;padding:0;border:0;background:none;color:var(--ink);text-align:left;cursor:pointer}
.rh2 .bkn{flex:none;color:var(--muted);font-weight:400;font-variant-numeric:tabular-nums}
.rh2 .bkn:empty{display:none}
.rh2 .bkt{flex:0 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis}
.rh2 .bksec{flex:0 1000 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;font-weight:400}
.rh2 .bksec:empty{display:none}
.rh2 .bksec::before{content:"\00b7";content:"\00b7"/"";padding-right:6px;color:var(--muted)}
.rh2 .bksec .sn{color:var(--muted);font-variant-numeric:tabular-nums}
.rh2:hover .bkt{text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:.2em}
html:not(.js) .rh2{cursor:default}
.bkpager{flex:none;display:flex;align-items:center}
.bkcnt{min-width:3.6em;text-align:center;font-variant-numeric:tabular-nums}
.bkmsg{flex:none;max-width:40%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.bkmsg:empty{display:none}
.bkrail{position:absolute;left:0;right:0;bottom:-6px;z-index:1;height:12px;cursor:pointer}
.bkrail[hidden]{display:none}
.bkrt{position:absolute;left:0;right:0;top:3px;height:3px;display:flex;transition:top var(--dur-fast) var(--curve-easy),height var(--dur-fast) var(--curve-easy)}
.bkrail:hover .bkrt{top:1px;height:5px}
.bkseg{position:relative;flex:none;height:100%;background:var(--baseline);transition:width var(--dur-slow) var(--curve-easy),margin var(--dur-slow) var(--curve-easy)}
.bkseg.done{background:var(--ink-2)}
.bkseg .fill{position:absolute;left:0;top:0;bottom:0;background:var(--ink)}
.bkseg .nt{position:absolute;bottom:0;width:1px;height:7px;background:var(--muted);pointer-events:none}
.bkseg .nt.d2{height:4px}
.bkseg .nt.past{background:var(--ink)}
/* Its look is the kit's `.rail-tip`; here it only sits under the rail and stays on one line. */
.bkrtip{top:calc(100% + 10px);max-width:calc(100% - 16px);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.bkrtip[hidden]{display:none}
@media (hover:none){.bkrail{pointer-events:none}}
@media (prefers-reduced-motion:reduce){.bkseg,.bkrt,.bkdis svg,.bkpt svg{transition:none}.scrim,.drawer,.drawer.leaving{animation:none}}
@media (max-width:480px){.rhbook{display:none}.rhpos:not(:empty){display:inline}.bkrun.fm .rhbook{display:inline}.rh2 .bksec{display:none}.bkrun.sec .rhsec{display:inline}.bkrun.sec .rhpart{display:none}.bkcnt{display:none}.bkbar{gap:0}}
/* The bar's hairline is the kit's; where the contents stand above the chapter (compact), they end in one of their own. */
@media (max-width:699.98px){.bkside{border-bottom:1px solid var(--baseline)}}
.bk{flex:1;min-height:0;display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr);grid-template-areas:"side" "frame"}
.bkside{grid-area:side;padding:4px 0 16px;max-height:70vh;max-height:70dvh;overflow:auto;overscroll-behavior:contain}
.bkhead{display:block;margin:0;padding:12px 16px 8px;font-size:var(--fs-ui);line-height:var(--lh-ui);font-weight:600;text-decoration:none;overflow-wrap:anywhere;text-wrap:wrap}
.bkside .bkhead{color:var(--ink)}
.bkhead:hover{text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:.2em}
.bktree,.bktree ol{list-style:none;margin:0;padding:0}
.bkch{--in:32px}
.bkpart .bkch{--in:52px}
.bkrow{position:relative;display:flex;align-items:flex-start}
.bkpart .bkrow{padding-left:20px}
.bkdis{flex:none;display:inline-flex;align-items:center;justify-content:center;width:28px;height:32px;margin:0 0 0 4px;padding:0;border:0;border-radius:var(--radius-m);background:none;cursor:pointer}
span.bkdis,html:not(.js) .bkdis{visibility:hidden}
.bkdis svg,.bkpt svg{transition:transform var(--dur-fast) var(--curve-easy)}
.js .bkch.open>.bkrow .bkdis svg,.js .bkpart.open>.bkph .bkpt svg{transform:rotate(90deg)}
.bktree .trk{flex:1;min-width:0;display:flex;align-items:baseline;gap:8px;min-height:32px;padding:6px 16px 6px 0;font-size:var(--fs-ui);line-height:var(--lh-ui);text-decoration:none}
.bktree .trk .tn{flex:none;width:auto;min-width:1.2em;font-variant-numeric:tabular-nums}
.bktree .trk .tn:empty{display:none}
.bktree .trk .tt{flex:1;min-width:0;overflow-wrap:anywhere;text-wrap:wrap}
.bktree .gone .trk{font-style:italic}
.bktree a.trk[aria-current]::before,.secs a[aria-current]::before{content:"";position:absolute;left:0;top:4px;bottom:4px;width:2px}
.bkph{margin:8px 0 0}
.bkpt{display:flex;align-items:center;width:100%;min-height:40px;margin:0;padding:8px 16px 8px 4px;border:0;background:none;font:inherit;font-size:var(--fs-caption);line-height:var(--lh-caption);font-weight:600;letter-spacing:.12em;text-transform:uppercase;text-align:left;cursor:pointer;hyphens:none}
.bkpart.open>.bkph .bkpt{color:var(--ink)}
.bkpt .chev{flex:none;display:inline-flex;justify-content:center;width:28px}
html:not(.js) .bkpt{cursor:default}
html:not(.js) .bkpt .chev{visibility:hidden}
.bkpt .pt{flex:1;min-width:0;overflow-wrap:anywhere;text-wrap:wrap}
.bkpt .pc{flex:none;margin-left:12px;font-weight:400;letter-spacing:0;font-variant-numeric:tabular-nums}
.secs a{position:relative;display:flex;align-items:baseline;gap:8px;min-height:28px;padding:4px 16px 4px var(--in);font-size:var(--fs-small);line-height:var(--lh-small);text-decoration:none}
.secs .l2>a{padding-left:calc(var(--in) + 30px);min-height:26px;padding-top:3px;padding-bottom:3px}
.secs .sn{flex:none;min-width:1.6em;font-variant-numeric:tabular-nums}
.secs .sn:empty{display:none}
.secs .l2 .sn{min-width:2.2em}
.secs .st{flex:1;min-width:0;overflow-wrap:anywhere;text-wrap:wrap}
.js .bkpart:not(.open)>.bkchs,.js .bkch:not(.open)>.secs{display:none}
@media (pointer:coarse){.bktree .trk{min-height:44px;padding-top:12px;padding-bottom:12px}.bkdis{height:44px}.bkpt{min-height:44px}.secs a,.secs .l2>a{min-height:44px;padding-top:13px;padding-bottom:13px}}
.js .bk:not(.open) .bkside{display:none}
button.bki{display:none}
.js button.bki{display:inline-flex}
.bki{flex:none}
.bki:disabled{visibility:hidden}
.bkframe{grid-area:frame;position:relative;min-height:0;display:flex;flex-direction:column;background:var(--page)}
body.full>.bkframe{flex:1}
.frame.loading{position:absolute;inset:0;visibility:hidden}
.pane{position:relative;flex:1;min-width:0;min-height:0;display:flex;flex-direction:column}
.pnh{display:none}
.bkframe.many .pnh{flex:none;display:flex;align-items:center;gap:var(--space-2);box-sizing:border-box;height:32px;padding:0 var(--space-2) 0 var(--space-4);border-bottom:1px solid var(--baseline);color:var(--ink-2);font-size:var(--fs-small);line-height:var(--lh-small)}
.pnt{flex:1 1 0;min-width:0;max-width:max-content;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.pnt~.pnc{margin-left:auto}
.pnt~.pnc:not([hidden])~.pnc{margin-left:0}
.pane.on .pnt{color:var(--ink)}
.pnc{flex:none}
.pnb{margin-left:calc(var(--space-2) - var(--space-4))}
.pnc[hidden]{display:none}
.bkframe.many.wide{flex-direction:row;overflow-x:auto;overflow-y:hidden}
.bkframe.many.wide .pane{flex:1 0 30rem}
.bkframe.many.wide .pane+.pane{border-left:1px solid var(--baseline)}
.bkframe.many:not(.wide) .pane:not(.on){display:none}
@media (pointer:coarse){.bkframe.many .pnh{height:44px}}
.pncard{pointer-events:none}
.pncard>p{margin-bottom:0}
.pncard>p:first-child{margin-top:0}
.pnct{color:var(--ink)}
.pncs,.pncl{color:var(--ink-2)}
.pns{display:none}
.bkframe.many.wide{isolation:isolate}
.bkframe.many.wide .pane{position:sticky;background:var(--page)}
.bkframe.many.wide .pane.spine>.pns{position:absolute;inset:0;z-index:1;display:flex;align-items:flex-start;justify-content:flex-start;box-sizing:border-box;margin:0;padding:var(--space-3) 0 var(--space-3) 0;border:0;background:var(--page);color:var(--ink-2);font:inherit;font-size:var(--fs-small);line-height:var(--lh-small);text-align:start;cursor:pointer}
.pns:hover{color:var(--ink)}
.pnst{writing-mode:vertical-rl;width:2.5rem;max-height:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;line-height:2.5rem}
.pane[data-brand]>.pns,.pncard[data-brand]{--page:var(--brand-l-page);--ink:var(--brand-l-ink);--ink-2:var(--brand-l-ink-2);--baseline:var(--brand-l-line)}
:root[data-theme="dark"] .pane[data-brand]>.pns,:root[data-theme="dark"] .pncard[data-brand]{--page:var(--brand-d-page);--ink:var(--brand-d-ink);--ink-2:var(--brand-d-ink-2);--baseline:var(--brand-d-line)}
@media (prefers-color-scheme:dark){:root[data-theme="system"] .pane[data-brand]>.pns,:root[data-theme="system"] .pncard[data-brand]{--page:var(--brand-d-page);--ink:var(--brand-d-ink);--ink-2:var(--brand-d-ink-2);--baseline:var(--brand-d-line)}}
.pncard[data-brand]{--surface:var(--page)}
.pnm{flex:1;min-height:0;overflow:auto;box-sizing:border-box;padding:var(--space-4)}
.pnm img,.pnm video{width:100%}
.pntk .tracks{margin-top:var(--space-4)}
.app{position:relative;background:var(--page)}
.app::before{content:"Loading\2026";content:"Loading\2026"/"";position:absolute;inset:0;display:flex;align-items:center;justify-content:center;color:var(--ink-2);font-size:var(--fs-ui);line-height:20px}
.app .frame{position:relative;background:transparent}
.bkempty{margin:0;padding:24px 16px}
@media (min-width:700px){.bk{grid-template-columns:300px minmax(0,1fr);grid-template-rows:minmax(0,1fr);grid-template-areas:"side frame"}.js .bk:not(.open){grid-template-columns:minmax(0,1fr);grid-template-areas:"frame"}.bkside{max-height:none;scrollbar-width:thin;scrollbar-color:var(--baseline) transparent}}
.astat{margin:8px 0 0;font-size:var(--fs-ui)}

html[data-brand="serene"]{--font:"IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;--serif:"IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;--display:"IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;--mono:"IBM Plex Mono", Menlo, "DejaVu Sans Mono", monospace}
html[data-brand="serene"][data-theme="light"],html[data-brand="serene"][data-theme="system"]{--page:#eff3f3;--surface:#f8fafa;--raised:#e4eaea;--sunk:#dbe3e3;--ink:#1d2c2c;--ink-2:#3f5454;--muted:#506868;--grid:#dce4e4;--baseline:#cbd6d6;--accent:#1d2c2c;--neutral:#e4eaea;--highlight:#fde7c3;--series-1:#21549d;--series-2:#cc6f47;--series-3:#236718;--series-4:#bc66b0;--series-5:#6f1f70;--series-6:#6a8e01;--series-7:#a23707;--series-8:#498dd5}
html[data-brand="serene"][data-theme="dark"]{--page:#1b2020;--surface:#202626;--raised:#283030;--sunk:#131717;--ink:#d9e9e9;--ink-2:#9eb7b7;--muted:#819d9d;--grid:#2d3636;--baseline:#384343;--accent:#d9e9e9;--neutral:#283030;--highlight:#4d3d24;--series-1:#80acff;--series-2:#ef9e56;--series-3:#16ab82;--series-4:#ff94b3;--series-5:#9177de;--series-6:#7d9101;--series-7:#e56e62;--series-8:#0bc6d5}
@media (prefers-color-scheme: dark){html[data-brand="serene"][data-theme="system"]{--page:#1b2020;--surface:#202626;--raised:#283030;--sunk:#131717;--ink:#d9e9e9;--ink-2:#9eb7b7;--muted:#819d9d;--grid:#2d3636;--baseline:#384343;--accent:#d9e9e9;--neutral:#283030;--highlight:#4d3d24;--series-1:#80acff;--series-2:#ef9e56;--series-3:#16ab82;--series-4:#ff94b3;--series-5:#9177de;--series-6:#7d9101;--series-7:#e56e62;--series-8:#0bc6d5}}
html[data-brand="serene"]{--band:#fde7c3;--band-ink:#1d2c2c;--band-accent:#1d2c2c;--band-raised:#e4eaea}
/* Serene: one ink on one paper. Every other colour is a mix of the two; rules and tints belong to the
   paper (a second tint of the same teal-grey hue), never neutral grey. Nothing is boxed: no resting shadow, no card on a ground;
   structure comes from hairlines and space, and only what truly floats (menus, popovers, dialogs) casts
   a soft shadow tinted with the ink. Controls stay quiet and text-like. The derived tokens are declared
   where documents set the ink (.mode-reading / .mode-paper) as well as on html, so the mixes resolve
   against the theme's own ink and paper in light and dark alike. */
/* The root selector carries `[data-theme]` so it outranks the core's per-scheme root rules (`:root[data-theme="dark"]`,
   and `:root[data-theme="system"]` under the dark media query) whatever the order; plain `html[data-brand]` loses to them. */
html[data-brand="serene"], html[data-brand="serene"][data-theme], html[data-brand="serene"] :is(.mode-reading, .mode-paper) {
  --layer-2: var(--surface);
  --layer-hover: color-mix(in srgb, var(--ink) 5%, var(--surface));
  --layer-selected: color-mix(in srgb, var(--ink) 9%, var(--surface));
  --button-primary: var(--ink);
  --button-primary-hover: color-mix(in srgb, var(--ink) 86%, var(--page));
  --button-primary-ink: var(--page);
  --button-secondary: color-mix(in srgb, var(--ink) 78%, var(--page));
  --button-secondary-hover: color-mix(in srgb, var(--ink) 66%, var(--page));
  --inverse: var(--ink); --inverse-ink: var(--page);
  --border-strong: color-mix(in srgb, var(--ink) 55%, var(--page));
  --disabled: color-mix(in srgb, var(--ink) 12%, var(--page));
  --disabled-ink: color-mix(in srgb, var(--ink) 42%, var(--page));
  --control-fill: var(--surface);
  /* A field is the page with a hairline edge: no well tint and an invisible inset shade (dark's black well would be a second ground); the shade stays a shadow, not `none`, because the kit lists it first in the focus box-shadow and `none` there voids the whole declaration. */
  --well: transparent; --well-hover: color-mix(in srgb, var(--ink) 4%, transparent); --well-shade: 0 0 0 0 transparent;
  /* A resting panel is the page under a hairline (each a box-shadow or a colour where ui.css reads it, never `none`);
     a multi-line field has the hairline on all four sides, inset, so an empty one still reads as a place to write. */
  --panel-fill: var(--page); --panel-edge: inset 0 1px 0 var(--baseline);
  --field-frame: inset 0 0 0 1px var(--baseline);
  --control-fill-hover: color-mix(in srgb, var(--ink) 4%, var(--surface));
  --control-fill-pressed: color-mix(in srgb, var(--ink) 9%, var(--surface));
  --control-stroke: var(--baseline);
  --control-stroke-hover: color-mix(in srgb, var(--ink) 30%, var(--baseline));
  --control-stroke-pressed: color-mix(in srgb, var(--ink) 45%, var(--baseline));
  /* Controls in their states stay text-like: at rest only the one primary button is filled with the ink. A segmented
     control is a row of words (no well, no fill on the checked one): the checked one is marked as the current place
     is, the ink and a line under it, in heavier type, the others in the secondary ink. A chip is a hairline round
     words in the secondary ink; held (a pressed chip, a held tool tile) it takes the paper tint, the ink, heavier type
     and a stronger edge. A selected row takes the paper's raised tint with no edge. A tag is a hairline round its
     words (a tone tag keeps its tone's tint). A toolbar stands on the page inside its hairline. */
  --segmented-gap: var(--space-1); --segment-radius: 0; --segment-ink: var(--ink-2);
  --segment-fill-checked: none; --segment-ink-checked: var(--ink); --segment-weight-checked: 600;
  --segment-mark-checked: inset 0 -2px 0 var(--ink); --segment-radius-checked-bottom: 0;
  --miller-item-fill-selected: var(--layer-selected); --miller-item-fill-selected-focus: var(--layer-selected);
  --chip-fill: none; --chip-ink: var(--ink-2); --chip-edge: inset 0 0 0 1px var(--baseline);
  --chip-fill-hover: var(--layer-hover);
  --toggle-fill-pressed: var(--layer-selected); --toggle-ink-pressed: var(--ink); --toggle-weight-pressed: 600;
  --toggle-edge-pressed: inset 0 0 0 1px var(--border-strong);
  --tag-fill: none; --tag-edge: inset 0 0 0 1px var(--baseline);
  --toolbar-fill: var(--page);
  --shadow-2: none; --shadow-4: none;
  --shadow-8: 0 0 0 1px var(--baseline);
  --shadow-16: 0 0 0 1px var(--baseline), 0 12px 32px -8px color-mix(in srgb, var(--ink) 14%, transparent);
  --shadow-28: 0 0 0 1px var(--baseline), 0 20px 48px -12px color-mix(in srgb, var(--ink) 16%, transparent);
  --shadow-64: 0 0 0 1px var(--baseline), 0 32px 80px -16px color-mix(in srgb, var(--ink) 18%, transparent);
  --overlay-shadow: 0 2px 8px color-mix(in srgb, var(--ink) 30%, transparent);
  /* A wordmark (ui.css, "wordmark") runs from the ink warmed a little to the brand's terracotta, its second series
     colour, a little darkened by the ink: a site's name as a warm mark, in light and dark alike. */
  --wordmark-top: color-mix(in srgb, var(--ink) 84%, var(--series-2, var(--accent)));
  --wordmark-bottom: color-mix(in srgb, var(--series-2, var(--accent)) 86%, var(--ink));
}
/* The reading page is one ground: no card shadow and no card edge in either theme. */
html[data-brand="serene"] .mode-reading { --card-shadow: none; --card-edge: transparent; }
/* The abstract reads as text under its kicker, closed by the next section's rule. */
html[data-brand="serene"] .abstract { background: none; padding: 0; border-radius: 0; box-shadow: none; border: 0; }
html[data-brand="serene"] .mode-reading .predictions,
html[data-brand="serene"] .mode-reading :is(.incentives, .game) {
  background: none; box-shadow: none; border: 0; border-top: 1px solid var(--baseline); border-radius: 0; padding-left: 0; padding-right: 0; }
html[data-brand="serene"] .mode-reading .doc :is(.content, .table-figure) table {
  box-shadow: none; border: 0; border-radius: 0; background: none; }
/* Figures stand on the paper without frame or shadow; the light plate stays behind drawings in dark. */
html[data-brand="serene"] .mode-reading .figure :is(img, svg) { box-shadow: none; border: 0; border-radius: 0; }
/* Inline charts draw with the theme tokens, so they stand on the paper itself; raster drawings keep their plate. */
html[data-brand="serene"] .mode-reading .figure svg { background: transparent; }
html[data-brand="serene"] .title-block .title, html[data-brand="serene"] .cover .title { font-weight: 600; letter-spacing: -0.015em; }
/* An app is one ground: its main pane, tab strips and status line stand on the page, not on a lighter fill (every bar
   already does, ui.css `.topbar`).
   A board block is its heading, a hairline and space: no border box and no fill of its own. */
html[data-brand="serene"] :is(.pane.main, .tabs, .status.page-status, .dock, .mm-stage, .dz-tools) { background: var(--page); }
html[data-brand="serene"] .board-card {
  background: none; border: 0; border-top: 1px solid var(--baseline); border-radius: 0; padding-left: 0; padding-right: 0; }
/* A visual's frames, cards and metrics stand on the page under a hairline: no fill, no box, no resting shadow.
   Inside a card its parts stay bare, as the core draws them. */
html[data-brand="serene"] :is(.avl-frame, .avl-card, .avl-metric) {
  background: none; border: 0; border-top: 1px solid var(--baseline); border-radius: 0; box-shadow: none; }
html[data-brand="serene"] .avl-card :is(.avl-frame, .avl-metric) { border-top: 0; }
/* A row of figures stands under one rule that spans the row, not a hairline per figure broken at each gap. */
html[data-brand="serene"] .avl-row:has(> .avl-metric) { border-top: 1px solid var(--baseline); }
html[data-brand="serene"] .avl-row > .avl-metric { border-top: 0; padding-left: 0; padding-right: 0; }
/* With no box, a frame's side padding reads as an indent: a page-level figure or table starts at the column's edge
   (its hairline gives it a little room above, nothing below), and a table's first and last cells meet the edges. */
html[data-brand="serene"] .avl-body > .avl-frame { padding: var(--space-3) 0 0; }
html[data-brand="serene"] .avl-body > .avl-tablewrap .table :is(th, td):first-child { padding-inline-start: 0; }
html[data-brand="serene"] .avl-body > .avl-tablewrap .table :is(th, td):last-child { padding-inline-end: 0; }
/* A gallery tile is its picture and caption on the page; hover and focus still come from the kit's layers. */
html[data-brand="serene"] .ga-card { background: none; border-color: transparent; box-shadow: none; }
/* Under a tab strip the strip's own rule closes the top: the first block of each column draws no second hairline. */
html[data-brand="serene"] .tabs + * .board-col > .board-card:first-child { border-top: 0; }

