
@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")}
@font-face{font-family:"Open Runde";font-style:normal;font-weight:400;font-display:swap;src:url(/assets/fonts/open-runde-Regular.woff2) format("woff2")}
@font-face{font-family:"Open Runde";font-style:normal;font-weight:500;font-display:swap;src:url(/assets/fonts/open-runde-Medium.woff2) format("woff2")}
@font-face{font-family:"Open Runde";font-style:normal;font-weight:600;font-display:swap;src:url(/assets/fonts/open-runde-Semibold.woff2) format("woff2")}
@font-face{font-family:"Fraunces";font-style:normal;font-weight:300 800;font-display:swap;src:url(/assets/fonts/fraunces-var.woff2) format("woff2")}
@font-face{font-family:"Geist Mono";font-style:normal;font-weight:100 900;font-display:swap;src:url(/assets/fonts/geist-mono-var.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: #202124; --band-ink: #fafafa; --band-accent: #fafafa; --band-raised: #35363a;
  /* 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;
  --band: #fafafa; --band-ink: #202124; --band-accent: #202124; --band-raised: #f1f3f4;
  --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;
    --band: #fafafa; --band-ink: #202124; --band-accent: #202124; --band-raised: #f1f3f4;
    --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(--focus-ring, 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 field's bottom edge `--field-edge-width`
     (1px), which the select's button and a field's padding sums allow for. 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.primary:not(:disabled) { box-shadow: var(--button-primary-shadow, none); }
.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"], .btn[data-holds-current] { 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: var(--field-edge-width, 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)) + var(--field-edge-width, 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 { appearance: none; padding-inline-end: calc(var(--space-3) * 2 + .875rem); background-repeat: no-repeat; background-size: .4375rem .4375rem, .4375rem .4375rem; background-position: right calc(var(--space-3) + .4375rem) center, right var(--space-3) center;
  /* The kit's chevron-down, in --ink-2, in every browser: two strokes drawn in CSS (a closed select cannot hold a mask). */
  background-image: linear-gradient(to top right, transparent calc(50% - .75px), var(--ink-2) calc(50% - .75px) calc(50% + .75px), transparent calc(50% + .75px)), linear-gradient(to bottom right, transparent calc(50% - .75px), var(--ink-2) calc(50% - .75px) calc(50% + .75px), transparent calc(50% + .75px)); }
/* Where the browser has `appearance: base-select` the open list is the menu's panel: its options are menu items, with an
   icon and a muted hint, a check at the end of the chosen one, and the chevron turns while it is open. Elsewhere the
   closed control is the same and the list is the system's, which shows each option's label. */
@supports (appearance: base-select) {
  .select, .select::picker(select) { appearance: base-select; }
  .select { background-image: none; display: inline-flex; align-items: center; justify-content: space-between; gap: var(--space-2); padding-inline-end: var(--space-3); }
  .select::picker-icon { content: ''; flex: none; box-sizing: border-box; width: .4375rem; height: .4375rem; margin-top: -.1875rem; border-right: 1.5px solid var(--ink-2); border-bottom: 1.5px solid var(--ink-2); rotate: 45deg; transition: rotate var(--dur-fast) var(--ease); }
  .select:open::picker-icon { rotate: 225deg; margin-top: .125rem; }
  .select > button { display: flex; flex: 1 1 auto; align-self: stretch; align-items: center; min-width: 0; min-height: 0; margin: calc(-1 * var(--space-2)) 0 calc(-1 * var(--space-2) - var(--field-edge-width, 1px)); padding: var(--space-2) 0 calc(var(--space-2) + var(--field-edge-width, 1px)); border: 0; background: none; color: inherit; font: inherit; text-align: start; }
  .select selectedcontent { display: flex; align-items: center; gap: var(--space-2); min-width: 0; }
  .select selectedcontent .option-hint { display: none; }
  .select::picker(select) { box-sizing: border-box; min-width: anchor-size(width); padding: var(--space-1); margin-block: var(--space-1); border: 1px solid var(--grid); border-radius: var(--radius-l); background: var(--surface); color: var(--ink); box-shadow: var(--shadow-16); }
  .select option { display: flex; align-items: center; gap: var(--space-2); min-height: var(--control-m); padding: 0 var(--space-3); border-radius: var(--radius-m); background: transparent; color: var(--ink); font: 400 var(--fs-ui)/var(--lh-ui) var(--font); cursor: pointer; }
  .select option:is(:hover, :focus-visible) { background: var(--layer-hover); outline: none; }
  .select option:checked { font-weight: 500; }
  .select option::checkmark { order: 1; margin-inline-start: auto; color: var(--ink-2); }
  .select option .option-text { display: flex; flex-direction: column; padding-block: var(--space-1); }
  .select option .option-hint { color: var(--ink-2); font: 400 var(--fs-small)/var(--lh-small) var(--font); }
  .select optgroup { display: block; }
  .select optgroup + optgroup { margin-top: var(--space-1); padding-top: var(--space-1); border-top: 1px solid var(--grid); }
  .select optgroup > legend { display: block; padding: var(--space-1) var(--space-3); }
  .select optgroup > option { padding-inline-start: var(--space-3); }
}
.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) - var(--field-edge-width, 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(--choice-fill-checked, var(--layer-selected)); box-shadow: var(--choice-edge-checked, 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%; padding: var(--segmented-pad, 0); border-radius: var(--segmented-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)); }
/* A segment's icon sits before its words; an icon-only segment is square. Sizes as a button's (small, large); `fill`
   spreads the segments over the row, equal. An option that waits (disabled, data-waits) is in the disabled ink with no
   ground, and the arrow keys pass over it. */
.segment { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); }
.segment:has(> .icon:only-child) { min-width: var(--control-m); padding: 0 var(--space-2); }
.segmented.small .segment { min-height: var(--control-s); padding: 0 var(--space-3); }
.segmented.small .segment:has(> .icon:only-child) { min-width: var(--control-s); padding: 0 var(--space-1); }
.segmented.large .segment { min-height: var(--control-l); }
.segmented.fill { display: flex; width: 100%; }
.segmented.fill .segment { flex: 1 1 0; min-width: 0; }
.segment:disabled, .segment:disabled:hover { background: transparent; color: var(--disabled-ink); cursor: default; }

/* ---- 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 `ui/ui.js` `metaLine`) ----
   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 var(--meta-clip-end, -0.5em) var(--meta-sep)); }
/* The step back holds inside an app too, whose `.app p` (app/kit.css) zeroes a paragraph's margins and would push every
   meta line one separator in from the words above it. */
.app .meta-line { margin-inline-start: calc(-1 * var(--meta-sep)); }
.meta-line:dir(rtl) { clip-path: inset(-0.5em var(--meta-sep) var(--meta-clip-end, -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); }
.disclosure.disclosure-inline { border-bottom: 0; }

/* A search form with an optional native disclosure. The query stays first and the open fields use the whole row. */
.filter-bar { display: flex; flex-wrap: wrap; align-items: flex-start; gap: var(--space-1) var(--space-3); }
.filter-query { display: flex; flex: 1 1 20rem; min-inline-size: 0; align-items: stretch; gap: var(--space-2); }
.filter-query > .field { flex: 1; min-inline-size: 0; }
.filter-options[open] { flex: 1 0 100%; min-inline-size: 0; }
.filter-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr)); align-items: end; gap: var(--space-2); }
.filter-fields > * + * { margin-top: 0; }
.filter-fields > .field { min-inline-size: 0; }
.filter-fields > .btn { justify-self: start; }

/* ---- tabs (ui.js `tabs`) ----
   One tablist for every page: the app shell's (app/kit.css) and a visual's panes (lib/avl.js `tabs`). `tabs-scroll`
   keeps each tab as wide as its label and scrolls the row sideways when they do not fit (never cut short or wrapped);
   `tabs-sticky` keeps the row at the top of the window while what it controls scrolls under it. */
.tabs { display: flex; border-bottom: 1px solid var(--grid); background: var(--surface); }
.tab { flex: 1 1 0; min-width: 0; min-height: var(--touch); padding: 0 var(--space-3); border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; background: transparent; color: var(--ink-2); font: 500 var(--fs-ui)/var(--lh-ui) var(--font); cursor: pointer; transition: background var(--dur-faster); }
.tab:hover { background: var(--layer-hover); }
.tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.tab:focus-visible { outline-offset: -3px; }
.tabs.tabs-scroll { overflow-x: auto; overflow-y: hidden; scrollbar-width: thin; overscroll-behavior-x: contain; }
.tabs.tabs-scroll > .tab { flex: 1 0 auto; white-space: nowrap; }
.tabs.tabs-sticky { position: sticky; top: 0; z-index: 3; }

/* ---- 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; width: max-content; max-width: calc(100vw - var(--space-4)); margin-top: var(--space-1); overflow-y: auto; overscroll-behavior: contain; animation: menu-in var(--dur-fast) var(--ease); }
.menu[data-align="end"] .menu-list { left: auto; right: 0; }
/* Placement (ui/menu.js): above its button when the room below is less than the list and the room above is more; the
   height is set from the room on that side. Under 700 px it is a sheet at the bottom edge over a scrim (`data-sheet`). */
.menu[data-side="top"] .menu-list { top: auto; bottom: 100%; margin-top: 0; margin-bottom: var(--space-1); }
.menu[data-sheet] .menu-scrim { position: fixed; inset: 0; z-index: calc(var(--z-status) + 1); background: var(--stage-scrim); animation: menu-in var(--dur-fast) var(--ease); }
.menu[data-sheet] .menu-list { position: fixed; z-index: calc(var(--z-status) + 2); top: auto; right: 0; bottom: 0; left: 0; width: 100%; max-width: none; max-height: 80dvh; margin: 0; padding-bottom: calc(var(--space-1) + env(safe-area-inset-bottom, 0px)); border-width: 1px 0 0; border-radius: var(--radius-l) var(--radius-l) 0 0; animation-name: menu-sheet-in; }
.menu[data-sheet] .menu-item { min-height: var(--touch); }
@keyframes menu-in { from { opacity: 0; } }
@keyframes menu-sheet-in { from { opacity: 0; transform: translateY(1rem); } }
.menu-item > .menu-label { min-width: 0; overflow-wrap: anywhere; }
.menu-item > .menu-text { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; padding-block: var(--space-1); }
.menu-hint { color: var(--ink-2); font: 400 var(--fs-small)/var(--lh-small) var(--font); }
.menu-shortcut { margin-inline-start: auto; padding-inline-start: var(--space-4); color: var(--ink-2); font: 400 var(--fs-small)/var(--lh-small) var(--font); }
.menu-shortcut + .menu-check { margin-inline-start: var(--space-2); }
.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); }
.menu-item:disabled { color: var(--muted); cursor: default; background: transparent; }
/* An entry that destroys (`tone: 'danger'`): its label and icon in the danger button's --error, at rest and under the
   pointer, on the same ground and ring as any entry; after ordinary entries it starts below the grid hairline. */
:is(.menu-item, .topbar-menu-list > .btn)[data-tone="danger"]:not(:disabled) { color: var(--error); }
.menu-item:not([data-tone="danger"]) + .menu-item[data-tone="danger"] { position: relative; margin-top: calc(var(--space-1) * 2); }
.menu-item:not([data-tone="danger"]) + .menu-item[data-tone="danger"]::before { content: ''; position: absolute; inset-inline: 0; top: calc(var(--space-1) * -1); border-top: 1px solid var(--grid); }
/* A link entry (the host's folded save) reads as the other items, not as a link in prose. */
a.menu-item { text-decoration: none; }
/* A checkable item (a toggle, a switch, an option) ends in the kit's check, drawn only while it is on. */
.menu-item > .menu-check { margin-inline-start: auto; }
.menu-item[aria-checked="false"] > .menu-check { visibility: hidden; }
/* A labelled group of items in one panel (a select's options, a lent menu), set off by the grid hairline. */
.menu-heading { padding: var(--space-1) var(--space-3); color: var(--ink-2); font: 600 var(--fs-small)/var(--lh-small) var(--font); }
:is(.menu-group, .menu-item) + .menu-group, .menu-group + .menu-item { margin-top: var(--space-1); padding-top: var(--space-1); border-top: 1px solid var(--grid); }
.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(--row-rule, 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(--row-fill-current, 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 row that starts with its checkbox keeps the box, the text and the actions on one line at every width. */
.row:has(> .row-check) { grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; column-gap: var(--space-2); }
.row:has(> .row-check):not(:has(> .row-actions)) { grid-template-columns: auto 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; }
.fact-list.fact-list-stacked { grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); gap: var(--space-1) var(--space-3); }
.fact-list-stacked > div { min-inline-size: 0; padding-block: var(--space-2); border-top: 1px solid var(--baseline); }
.fact-list-stacked dt { font: var(--fs-caption)/var(--lh-caption) var(--mono); overflow-wrap: anywhere; }
.fact-list-stacked dd { margin-block-start: var(--space-1); }
.fact-list-stacked .chip { white-space: normal; 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); }
/* The variants (ui/marks.js `chip`): a chosen chip of a `choiceChips` and a link chip at the place shown fill as a
   pressed one; a link chip has no underline. An icon or a swatch (the subject's colour, a small square, never a dot of
   the tone) leads, a count ends in the secondary ink. An input chip is the value and its remove button; only the button
   is a target. */
.chip[aria-checked="true"], a.chip[aria-current] { 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); }
a.chip { text-decoration: none; }
.chip-swatch { flex: none; width: 0.625rem; height: 0.625rem; border-radius: var(--radius-s); background: var(--chip-swatch, currentColor); }
.chip-count { color: var(--ink-2); font-weight: 400; font-variant-numeric: tabular-nums; }
.chip:is([aria-pressed="true"], [aria-checked="true"], [aria-current]) .chip-count { color: inherit; }
.chip:disabled .chip-count { color: inherit; }
.chip-input { padding-right: 0; cursor: default; }
.chip-input:hover { background: var(--chip-fill, var(--button-tint)); }
.chip-remove { display: inline-grid; place-items: center; align-self: stretch; min-width: var(--control-s); margin: 0; padding: 0; border: 0; border-radius: var(--radius-m); background: transparent; color: var(--ink-2); cursor: pointer; transition: background var(--dur-faster); }
.chip-remove:hover { background: var(--layer-hover); color: var(--ink); }
.chip-remove:focus-visible { outline-offset: -2px; }
@media (max-width: 699.98px) {
  .chips.scroll { flex-wrap: nowrap; overflow-x: auto; padding-bottom: var(--space-1); }
}

/* ---- 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, .segmented.small .segment, .menu-item, .select option, .disclosure-summary, details:not([class]) > summary { min-height: var(--touch); }
  .segment:has(> .icon:only-child), .segmented.small .segment:has(> .icon:only-child) { min-width: var(--touch); }
  .chip { min-height: var(--touch); min-width: var(--touch); }
  .chip-remove { 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) {
  .menu-list, .menu-scrim { animation: none !important; }
  .select::picker-icon { transition: none !important; }
  .btn, .text-in, .select, .choice, .segment, .menu-item, .disclosure-summary .icon, .disclosure-summary::before, details > summary::before, .chip, .chip-remove, .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; } }
/* Scoped to the bar too, so an app's heading rule (`.app h1 { text-wrap: balance }`, which resets the wrap mode) does not wrap the title. */
.topbar-title, .topbar-context, :is(.topbar, .bar) :is(.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. */
/* The host's bar never scrolls its tools sideways: what does not fit folds into its "More tools" menu (host topbar.js `fit`). */
.topbar-tools > * { flex-shrink: 0; }
/* A select in the bar is as wide as its options, not the kit's `width: 100%` (a percentage of the tools' own width,
   which would let the tools measure narrower than they draw). */
.topbar-tools .select { width: auto; }
.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, .topbar-tools > .text-field { width: 15rem; 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); } }
/* And the bar's own parts sit as close as the tools do, so a page's previous and next keep their place beside the host's buttons at 360 px. */
@media (max-width: 699.98px) { .bar { gap: var(--space-1); } }
/* 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(--miller-item-ink-meta-selected, 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; } }
/* Gestures (gesture.js): the swipe surface leaves the other axis to the browser; the pull cue grows, fills when ready and is struck when there is nothing more. */
.gesture-swipe-x { touch-action: pan-y; }
.gesture-swipe-y { touch-action: pan-x; }
.pull-cue { --pull: 0; position: fixed; z-index: var(--z-sticky); display: none; align-items: center; justify-content: center; gap: var(--space-1); width: 40px; height: 40px; border-radius: var(--radius-pill); color: var(--ink); background: var(--surface); box-shadow: inset 0 0 0 1px var(--rim), var(--shadow-16); pointer-events: none; opacity: min(1, var(--pull)); transform: scale(calc(0.6 + 0.4 * min(1, var(--pull)))); transition: opacity var(--dur-fast) ease-out, transform var(--dur-fast) ease-out; }
.pull-cue[data-dir] { display: inline-flex; }
.pull-cue svg { width: 20px; height: 20px; }
.pull-cue-label { font-size: var(--fs-small); line-height: var(--lh-small); }
.pull-cue[data-origin="side"] { top: 50%; margin-top: -20px; }
.pull-cue[data-origin="side"][data-dir="1"] { right: var(--space-2); }
.pull-cue[data-origin="side"][data-dir="-1"] { left: var(--space-2); }
.pull-cue[data-origin="side"][data-dir="-1"] svg { transform: rotate(180deg); }
.pull-cue[data-origin="top"], .pull-cue[data-origin="bottom"] { left: 50%; margin-left: -20px; }
.pull-cue[data-origin="top"] { top: var(--space-2); }
.pull-cue[data-origin="bottom"] { bottom: var(--space-2); }
.pull-cue[data-origin="top"] svg { transform: rotate(-90deg); }
.pull-cue[data-origin="bottom"] svg { transform: rotate(90deg); }
.pull-cue[data-ready="true"] { color: var(--surface); background: var(--ink); box-shadow: var(--shadow-16); }
.pull-cue[data-none="true"] { opacity: calc(0.5 * min(1, var(--pull))); color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--rim); background: transparent; }
.pull-cue[data-none="true"]::after { content: ""; position: absolute; left: 8px; right: 8px; top: 50%; border-top: 2px solid var(--ink-2); transform: rotate(-45deg); }
@media (prefers-reduced-motion: reduce) { .pull-cue { 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); }
  /* Flex items count the link's padding. Give it back in the margin and keep the enlarged target inside the clip. */
  .story.row .story-meta.meta-line { --meta-clip-end: calc(1em - var(--touch)); }
  .story.row .story-meta.meta-line a { margin-block-end: var(--meta-clip-end); }
}
.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); }
.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.media, .rows > .story.row.media { flex-direction: row; align-items: flex-start; gap: var(--space-3); }
.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)); }
  .story-compact.row:not(:has(.story-meta a)) { padding-block-end: var(--space-2); }
}
/* 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. Each pixel row is one flat colour, stepping from `--wordmark-top`
   (default the ink) at the top of an ascender to `--wordmark-bottom` (default the accent) at the baseline: the module
   gives each row's stops its share of the bottom colour as `--wordmark-mix`. Under the pixels a hard-edged fringe, the
   same shapes moved by whole pixels, the near step a stronger mix of the bottom colour into the page and the far step
   a paler one; no blur. 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, and the fringe comes in under them as the last one lands; then the cursor goes out for --dur-normal
   four times, a terminal's blink, and rests lit. The wordmark can also dim small groups of seeded pixels in sequence.
   The public masthead uses short opacity transitions for ongoing decay and healing. A capture draws the full mark. */
/* 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-band { stop-color: color-mix(in srgb, var(--wordmark-bottom, var(--accent)) var(--wordmark-mix, 50%), var(--wordmark-top, var(--ink))); }
.wordmark .wordmark-halo-near { fill: color-mix(in srgb, var(--wordmark-bottom, var(--accent)) 26%, var(--page)); }
.wordmark .wordmark-halo-far { fill: color-mix(in srgb, var(--wordmark-bottom, var(--accent)) 14%, var(--page)); }
/* The cursor is a pale cell, so it reads as a terminal's cursor and never as a letter of the name. */
.wordmark .wordmark-block { fill: color-mix(in srgb, var(--wordmark-bottom, var(--accent)) 40%, 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; }
/* The fringe comes in under the last glyph as it lands, so no pale copy of a letter waits for its ink. */
.wordmark[data-settle] .wordmark-fringe { animation: wordmark-fringe var(--dur-normal) linear calc(var(--wordmark-glyphs, 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; } }
@keyframes wordmark-fringe { from { opacity: 0; } }
.wordmark[data-shimmer] .wordmark-shimmer { animation: wordmark-shimmer var(--dur-normal) var(--ease) calc(var(--dur-fast) + var(--wordmark-beat) * var(--dur-slower)); }
@keyframes wordmark-shimmer { 40% { opacity: .42; } }
.wordmark [data-wordmark-patch] { transition: opacity var(--dur-normal) var(--ease); }
.wordmark [data-wordmark-patch][opacity] { transition-duration: var(--dur-fast); }
@media (prefers-reduced-motion: reduce) {
  .wordmark-glyph, .wordmark-cursor, .wordmark-block, .wordmark-fringe, .wordmark-shimmer { animation: none !important; }
  .wordmark [data-wordmark-patch] { opacity: 1; transition: none; }
}

/* ---- piece: ornament (ui/ornament.js `ornament`) ----
   A seeded drawing of pattern.js (contour lines, a lattice, dots) that covers its box: decoration behind a title, a
   band or a card, never a picture. The colours are tokens, so light and dark follow with no script: the base lines in
   `--ornament-ink` (default the muted ink) at the drawing's own opacity, the accent lines and dots in `--ornament-accent`
   (default the warm note a brand gives its wordmark, then the accent) at `--ornament-accent-opacity` (default full).
   A line keeps its width in CSS pixels however the drawing is scaled (a lattice's tile scales with its pattern).
   `data-dissolve` fades the whole ornament out towards an edge through a mask, so it ends on whatever ground is under
   it with no edge of its own; it stays whole for `--ornament-hold` of the way (default 35%). Nothing moves. */
.ornament-drawing { display: block; inline-size: 100%; block-size: 100%; overflow: hidden; pointer-events: none; stroke-linejoin: round; }
.ornament-drawing :is(.ornament-base, .ornament-accent):not(.ornament-tile) { vector-effect: non-scaling-stroke; }
.ornament-drawing .ornament-base { stroke: var(--ornament-ink, var(--muted)); }
.ornament-drawing .ornament-accent { stroke: var(--ornament-accent, var(--wordmark-bottom, var(--accent))); stroke-opacity: var(--ornament-accent-opacity, 1); }
.ornament-drawing[data-dissolve="bottom"] { mask-image: linear-gradient(to bottom, currentColor var(--ornament-hold, 35%), transparent); }
.ornament-drawing[data-dissolve="top"] { mask-image: linear-gradient(to top, currentColor var(--ornament-hold, 35%), transparent); }
.ornament-drawing[data-dissolve="left"] { mask-image: linear-gradient(to left, currentColor var(--ornament-hold, 35%), transparent); }
.ornament-drawing[data-dissolve="right"] { mask-image: linear-gradient(to right, currentColor var(--ornament-hold, 35%), transparent); }

/* ---- piece: host-lists ---- */
/* A listing (docs/ui.md, "Listing"): a dense list of records, one line each where it fits (a site browser's list
   view, an owner's shares). A caption names a group, a head row names the columns on the page ground (so it can stick
   over the rows), a row takes the hover layer under the pointer and the selected layer when it is current (it holds
   aria-current) or ticked (its checkbox is checked); its title is the ink with no underline, its meta the secondary
   ink in the caption size, its glyph a small tile on `--listing-glyph-fill` (default the page ground). `.ruled`
   divides the rows with hairlines and squares them; a ruled listing inside a ruled row leaves its last row open, the
   outer row's hairline closes it. A row is 28 px under a fine pointer and the touch height under touch. Columns,
   widths and padding beyond that are the page's. */
.listing { list-style: none; margin: 0; padding: var(--space-1); }
.listing-caption { display: flex; align-items: baseline; gap: var(--space-2); margin: var(--space-2) 0 0; padding: var(--space-1) var(--space-2); font: 500 var(--fs-caption)/var(--lh-caption) var(--font); color: var(--ink-2); }
.listing-head { display: flex; align-items: center; gap: var(--space-2); background: var(--page); color: var(--ink-2); font-size: var(--fs-caption); line-height: var(--lh-caption); }
.listing-row { position: relative; display: flex; align-items: center; gap: var(--space-2); min-height: 1.75rem; padding: 0 var(--space-2); border-radius: var(--radius-m); font-size: var(--fs-small); line-height: var(--lh-small); }
.listing-row:hover { background: var(--layer-hover); }
.listing-row:is([aria-current="true"], :has([aria-current="true"]), :has(input[type="checkbox"]:checked)) { background: var(--listing-row-fill-current, var(--layer-selected)); }
.listing-title { color: var(--ink); text-decoration: none; }
.listing-meta { flex: none; color: var(--ink-2); font-size: var(--fs-caption); line-height: var(--lh-caption); font-variant-numeric: tabular-nums; white-space: nowrap; }
.listing-glyph { display: inline-grid; place-items: center; flex: none; width: 2rem; height: 2rem; border-radius: var(--radius-m); background: var(--listing-glyph-fill, var(--page)); color: var(--ink-2); }
.listing.ruled { padding: 0; border-top: 1px solid var(--grid); }
.listing.ruled > li { border-bottom: 1px solid var(--grid); }
.listing.ruled .listing.ruled { border-top: 0; }
.listing.ruled .listing.ruled > li:last-child { border-bottom: 0; }
.listing.ruled .listing-row { border-radius: 0; }

/* A list entry with room for its prose and facts. The title and actions wrap independently of its trailing control. */
.listing-entry { min-inline-size: 0; overflow-wrap: anywhere; border-top: 1px solid var(--baseline); padding-block: var(--space-3); }
.listing-entry:has(.listing-entry-select input:checked) { background: var(--layer-selected); }
.listing-entry-head { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--space-2); }
.listing-entry-head > :first-child { min-inline-size: 0; }
.listing-entry-head > :nth-child(2) { flex: none; }
.choice.listing-entry-select { display: grid; place-items: center; min-inline-size: var(--touch); padding: 0; }
.listing-entry-title { margin: 0; font-size: var(--fs-title); line-height: var(--lh-title); }
.listing-entry-meta { margin-block: var(--space-2); color: var(--ink-2); font-size: var(--fs-small); line-height: var(--lh-small); }
.listing-entry-meta .meta-part { max-inline-size: 100%; white-space: normal; }
.listing-entry-copy { max-inline-size: var(--measure); margin-block: var(--space-3); font-size: var(--fs-base); line-height: var(--lh-base); }
.listing-entry-copy > * + * { margin-block-start: var(--space-2); }
.listing-entry-copy :is(ul, ol) { margin-block-end: 0; padding-inline-start: var(--space-5); }
.listing-entry-copy :is(h2, h3, h4, h5, h6) { font-size: var(--fs-ui); font-weight: 600; }
.listing-entry-copy blockquote { margin-inline: 0; padding-inline-start: var(--space-3); border-inline-start: 1px solid var(--baseline); color: var(--ink-2); }
.listing-entry-copy code { background: var(--raised); padding-inline: var(--space-1); border-radius: var(--radius-s); }
.listing-entry-copy pre { background: var(--raised); padding: var(--space-3); overflow: auto; border-radius: var(--radius-m); }
.listing-entry-copy pre code { padding: 0; }
.listing-entry-copy table { display: block; overflow: auto; border-collapse: collapse; }
.listing-entry-copy :is(th, td) { text-align: start; padding: var(--space-1) var(--space-2); border-bottom: 1px solid var(--baseline); }
.listing-entry-copy hr { border: 0; border-top: 1px solid var(--baseline); }
@media (pointer: coarse), (max-width: 699.98px) {
  .listing-row { min-height: var(--touch); }
}
/* A selection bar (docs/ui.md, "Selection bar"): the actions on what is selected in a list, at the foot of the list
   or of the window over the rows that scroll under it: the surface under a hairline at its top edge, frosted where
   the browser can, like the frosted site header (a site that honours reduced transparency sets `--frost: 100%` and no
   filter in its own sheet). `.raised` lifts it off the rows as a sheet at the foot: rounded top corners and a shadow.
   When it shows, and its layout, are the page's. */
.selection-bar { background: var(--surface); box-shadow: inset 0 1px 0 var(--baseline); }
@supports (backdrop-filter: blur(1px)) { .selection-bar { background: color-mix(in srgb, var(--surface) var(--frost, 85%), transparent); -webkit-backdrop-filter: blur(30px) saturate(125%); backdrop-filter: blur(30px) saturate(125%); } }
.selection-bar.raised { border-radius: var(--radius-xl) var(--radius-xl) 0 0; box-shadow: inset 0 1px 0 var(--baseline), var(--shadow-16); }
.selection-bar.selection-bar-sticky { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); padding: var(--space-1) var(--space-2); position: sticky; inset-block-start: var(--selection-bar-offset, 0); z-index: 1; box-shadow: inset 0 -1px 0 var(--baseline); }
.selection-bar-label { flex: 1 1 7rem; font-size: var(--fs-small); }
/* A ticked toggle of the Columns (a tag of a root column, aria-checked) shows its glyph in the ink, as its name
   steps up. */
.miller-item[aria-checked="true"] .miller-icon { color: var(--ink); }
/* The error ink for a word that warns (an expiry that is near or past): colour only, beside `.ink-secondary`. */
.ink-error { color: var(--error); }
/* ---- piece: host-page ---- */
/* A range that shows how far it has played (docs/ui.md, "Transport"; ui.js `transport`, the share page's player): a
   thin track on the hairline, the played part in the ink up to `--range-played` (a percentage the caller keeps), what
   is loaded under it as `--range-buffered` (an image, default none), and a round thumb in the ink. Firefox fills the
   played part itself. */
.range.range-progress { -webkit-appearance: none; appearance: none; display: block; cursor: pointer; touch-action: none; }
.range.range-progress::-webkit-slider-runnable-track { height: 4px; background: linear-gradient(to right, var(--ink) var(--range-played, 0%), transparent var(--range-played, 0%)), var(--range-buffered, linear-gradient(transparent, transparent)), var(--baseline); }
.range.range-progress::-moz-range-track { height: 4px; background: var(--range-buffered, linear-gradient(transparent, transparent)), var(--baseline); }
.range.range-progress::-moz-range-progress { height: 4px; background: var(--ink); }
.range.range-progress::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; margin-top: -8px; border: 0; border-radius: 50%; background: var(--ink); }
.range.range-progress::-moz-range-thumb { width: 20px; height: 20px; border: 0; border-radius: 50%; background: var(--ink); }
@media (pointer: coarse), (max-width: 699.98px) {
  .range.range-progress::-webkit-slider-thumb { width: 24px; height: 24px; margin-top: -10px; }
  .range.range-progress::-moz-range-thumb { width: 24px; height: 24px; }
}
/* A contents tree's disclosure buttons are bare (the tree's ink, no ground or edge), and a branch that is open reads in
   the ink. */
.contents-tree button { border: 0; background: none; }
.contents-tree button[aria-expanded="true"] { color: var(--ink); }

/* ---- layout (ui/layout.js) ---- */
/* The layouts are classes, so a page may put them on a container it already builds (its direct children are the items); the builders of ui/layout.js only add the markup. They live here, in the stylesheet every page loads, so a page that does not link app/kit.css has them too: one copy. */
/* Lists (`masonry`, `autoGrid`, `tiles`, switched by `arrange`): equal columns of at least --layout-min (15rem); --layout-gap, or --layout-row-gap and --layout-col-gap, apart; `fit` items are as tall as their parts. */
.layout { --layout-min: 15rem; --layout-gap: var(--space-3); --layout-row-gap: var(--layout-gap); --layout-col-gap: var(--layout-gap); --layout-unit: 2px; margin: 0; padding: 0; list-style: none; }
.layout-item { display: flex; min-width: 0; }
.layout-item > * { flex: 1 1 auto; min-width: 0; }
.layout.is-grid, .layout.is-masonry { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, var(--layout-min)), 1fr)); gap: var(--layout-row-gap) var(--layout-col-gap); }
.layout.fit:is(.is-grid, .is-masonry) { align-items: start; }
/* `stretch` (a grid): the columns no item fills fold away, so the items of a short row share its whole width (a lone item takes it all). */
.layout.is-grid.stretch { grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--layout-min)), 1fr)); }
.layout.is-list { display: flex; flex-direction: column; gap: var(--layout-row-gap); }
/* Masonry: rows of --layout-unit; the script sets each item's `grid-row-end: span N` (the row gap is part of N, read back from scroll-margin-bottom, a property that draws nothing and gives the gap as a length). Auto-placement (not dense) puts each next item in the column that ends first, so the order is the source's. Without the script (`packed` is set only when it runs) it is a plain grid; with grid-lanes the browser packs by itself. */
.layout.is-masonry { scroll-margin-bottom: var(--layout-row-gap); }
.layout.is-masonry.packed { grid-auto-rows: var(--layout-unit); grid-auto-flow: row; row-gap: 0; }
.layout.is-masonry.packed > * { align-self: start; }
.layout.is-masonry.native { display: grid-lanes; row-gap: var(--layout-row-gap); }
/* Sidebar: an aside beside the main part, stacked when main would be under --sidebar-main-min of the width (flex-wrap, no media query). */
.sidebar { --sidebar-width: 18rem; --sidebar-main-min: 60%; display: flex; flex-wrap: wrap; gap: var(--space-4); }
.sidebar-side { flex: 1 1 var(--sidebar-width); min-inline-size: 0; }
.sidebar-main { flex: 999 1 0; min-inline-size: min(100%, var(--sidebar-main-min)); }
/* Switcher: one row above --switcher-threshold of the container's width, stacked below it. */
.switcher { --switcher-threshold: 40rem; display: flex; flex-wrap: wrap; gap: var(--space-3); }
.switcher > * { flex: 1 1 calc((var(--switcher-threshold) - 100%) * 999); min-inline-size: 0; }
.switcher[data-limit="2"] > :nth-last-child(n + 3), .switcher[data-limit="2"] > :nth-last-child(n + 3) ~ *,
.switcher[data-limit="3"] > :nth-last-child(n + 4), .switcher[data-limit="3"] > :nth-last-child(n + 4) ~ *,
.switcher[data-limit="4"] > :nth-last-child(n + 5), .switcher[data-limit="4"] > :nth-last-child(n + 5) ~ *,
.switcher[data-limit="5"] > :nth-last-child(n + 6), .switcher[data-limit="5"] > :nth-last-child(n + 6) ~ *,
.switcher[data-limit="6"] > :nth-last-child(n + 7), .switcher[data-limit="6"] > :nth-last-child(n + 7) ~ * { flex-basis: 100%; }
/* Flow: a wrapping row whose items grow from a basis to fill it (`--flow-basis`, set on the row or on one item, 12.5rem when unset; `--flow-gap`). An item wraps onto its own line when the row is under two bases wide, so a basis over half the row stacks them with no media query. */
.flow { display: flex; flex-wrap: wrap; gap: var(--flow-gap, var(--space-4)); }
.flow > * { flex: 1 1 var(--flow-basis, 12.5rem); min-width: 0; }
/* Defs: a definition list (`dl`) of term and value, the term column as wide as its longest term up to --defs-term-max, stacked in a container under 24rem. */
.defs { --defs-term-max: 14rem; container-type: inline-size; container-name: defs; display: grid; grid-template-columns: fit-content(var(--defs-term-max)) minmax(0, 1fr); gap: var(--space-1) var(--space-4); margin: 0; }
.defs > dt { color: var(--ink-2); overflow-wrap: anywhere; }
.defs > dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
@container defs (max-width: 23.99rem) { .defs > dt, .defs > dd { grid-column: 1 / -1; } .defs > dd + dt { margin-top: var(--space-2); } }
/* Media: a companion of fixed size (`.media-side`: a picture, a count, a button) beside a body that takes the rest; it never stacks. The side is the one first in the source (start) or last (end); `.centered` centres them on each other. */
.media { display: flex; align-items: flex-start; gap: var(--space-3); min-width: 0; }
.media.centered { align-items: center; }
.media-side { flex: none; }
.media-body { flex: 1 1 0; min-width: 0; }
/* Split: two panes and a separator; the first is --split of the width. Stacked, with no separator, under 700 px. */
.split { --split: 50%; display: grid; grid-template-columns: minmax(0, var(--split)) auto minmax(0, 1fr); align-items: stretch; }
.split-pane { min-inline-size: 0; overflow: auto; }
.split-handle { display: flex; justify-content: center; align-items: stretch; inline-size: var(--space-4); cursor: col-resize; touch-action: none; border-radius: var(--radius-m); }
.split-grip { inline-size: 2px; background: var(--grid); border-radius: var(--radius-pill); }
.split-handle:hover .split-grip, .split.dragging .split-grip { background: var(--ink-2); }
.split-handle:focus-visible { outline: 2px solid var(--ink); outline-offset: 0; }
@media (max-width: 699.98px) { .split { display: block; } .split-handle { display: none; } .split-pane + .split-handle + .split-pane { margin-top: var(--space-4); } }
/* ---- dock (ui/dock.js) ---- */
/* A stage and a detail panel docked at its inline end: two flex children, so the stage keeps the panel's room while it is open. Under the page's `sheetBelow` (the script sets data-mode="sheet") the panel is a bottom sheet over the stage with a handle, and the stage takes the whole width. */
.docked { --dock-width: min(26rem, 40vw); --dock-sheet-max: calc(100% - var(--space-4)); position: relative; display: flex; flex: 1 1 0; min-width: 0; min-height: 0; }
.docked[data-side="start"] { flex-direction: row-reverse; }
.dock-stage { flex: 1 1 0; min-width: 0; min-height: 0; }
.dock-panel { position: relative; z-index: 5; display: flex; flex-direction: column; flex: none; inline-size: var(--dock-width); min-height: 0; background: var(--panel-fill, var(--surface)); color: var(--ink); border-inline-start: 1px solid var(--grid); box-shadow: var(--panel-edge, var(--shadow-8)); outline: none; }
.docked[data-side="start"] > .dock-panel { border-inline-start: 0; border-inline-end: 1px solid var(--grid); }
.dock-panel[hidden] { display: none; }
.dock-body { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; }
.dock-body > * { flex: 1 1 auto; min-height: 0; }
.dock-close { position: absolute; z-index: 1; inset-block-start: var(--space-4); inset-inline-end: var(--space-2); }
.dock-handle, .dock-scrim { display: none; }
.docked[data-mode="sheet"] > .dock-panel { position: absolute; inset-inline: 0; inset-block-end: 0; inline-size: auto; max-block-size: var(--dock-sheet-max); border-inline: 0; border-block-start: 1px solid var(--grid); border-radius: var(--radius-xl) var(--radius-xl) 0 0; box-shadow: var(--shadow-16); }
.docked[data-mode="sheet"] .dock-handle { display: block; flex: none; padding: var(--space-3) 0 0; touch-action: none; }
.docked[data-mode="sheet"] .dock-close { inset-block-start: var(--space-5); inset-inline-end: var(--space-1); }
.docked[data-mode="sheet"] .dock-handle::before { content: ""; display: block; inline-size: 2rem; block-size: 0.25rem; margin: 0 auto; border-radius: var(--radius-s); background: var(--border-strong); }
.docked[data-mode="sheet"] [data-dock-grab] { touch-action: none; }
.docked[data-mode="sheet"] > .dock-scrim { display: block; position: absolute; inset: 0; z-index: 4; background: color-mix(in srgb, var(--ink) 40%, transparent); }
.docked[data-mode="sheet"] > .dock-scrim[hidden] { display: none; }
/* inline: the page's own column. The panel draws nothing of its own; under the width it is a row under the stage, not over it. */
.docked[data-inline] > .dock-panel { background: none; border: 0; box-shadow: none; }
.docked[data-inline][data-mode="sheet"] { flex-direction: column; }
.docked[data-inline][data-mode="sheet"] > .dock-panel { position: relative; inset: auto; inline-size: auto; max-block-size: var(--dock-sheet-max); border-radius: 0; }
/* It slides in over a short time; under reduced motion, and in a capture (the script sets data-entering only on a page a person is looking at), it is simply there. */
.dock-panel[data-entering] { animation: dock-in var(--dur-normal) var(--curve-decel-max); }
@media (prefers-reduced-motion: reduce) { .dock-panel[data-entering] { animation: none; } }
@keyframes dock-in { from { transform: translateX(2rem); opacity: 0; } }
.docked[data-side="start"] > .dock-panel[data-entering] { animation-name: dock-in-start; }
.docked[data-mode="sheet"] > .dock-panel[data-entering] { animation-name: dock-up; }
@keyframes dock-in-start { from { transform: translateX(-2rem); opacity: 0; } }
@keyframes dock-up { from { transform: translateY(100%); } }
@media (prefers-reduced-motion: reduce) { .dock-panel { animation: none !important; transition: 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}
@media (prefers-reduced-transparency:reduce){.site-header.is-frosted,.selection-bar{--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}
.stage a{display:block;max-width:100%;line-height:0;cursor:zoom-in;overflow:hidden}
.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}
/* The seek is the kit's `.range.range-progress`; player.js keeps its place in `--p` and what is loaded in `--buf`. */
.seek{margin:0;--p:0%;--bc:color-mix(in srgb,var(--accent) 40%,var(--baseline));--buf:linear-gradient(transparent,transparent);--range-played:var(--p);--range-buffered:var(--buf)}
.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-count{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;font-size:var(--fs-small);line-height:16px;font-weight:600}
.keys{margin:0 0 24px}
.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}
.kcard[hidden]{display:none}
.kcard b{display:block;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],.drawer section[data-sheet][hidden]{display:none}
/* The host menu's panel (#menu-list) is the kit's menu panel; its box adds nothing to the page, and its scrim is the kit's. */
#host-menu{display:contents}
#menu-list[hidden]{display:none}
/* Under the menu button, at the bar's end: the kit's `.menu-list` sets `left: 0`, which beats `.topbar-menu-list`'s `right`
   when both hold, so outside the sheet the left edge lets go. */
#host-menu:not([data-sheet]) #menu-list{left:auto}
.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}
.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:480px){.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}
/* A track is the kit's `.row` (its hairline and its 12px above and below make the 44px a track had); the link fills the row's width. */
.trk{display:flex;align-items:center;gap:12px;min-height:20px;padding:0 12px;text-decoration:none}
.tracks a.trk{color:var(--ink)}
a.trk .tt{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;font-variant-numeric:tabular-nums}
.trk .tt{flex:1;min-width:0;overflow-wrap:anywhere}
.trk .td{flex:none;font-variant-numeric:tabular-nums}
.tracks .gone .trk{font-style:italic}
.th{margin:0 0 12px;font-size:var(--fs-title);line-height:var(--lh-title);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}
.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;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}
.rh2 .bksec .sn{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}}
.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-radius:var(--radius-m);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;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}
.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}
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)}
.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}
.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="felt"]{--font:"Open Runde", "Inter", system-ui, sans-serif;--serif:"Open Runde", "Inter", system-ui, sans-serif;--display:"Fraunces", "Open Runde", Georgia, serif;--mono:"Geist Mono", ui-monospace, "DejaVu Sans Mono", monospace}
html[data-brand="felt"][data-theme="light"],html[data-brand="felt"][data-theme="system"]{--page:#f4f0e8;--surface:#fcf9f5;--raised:#ece6db;--sunk:#e4dbcf;--ink:#241b15;--ink-2:#5b5048;--muted:#6b6159;--grid:#dbd1c3;--baseline:#83786e;--accent:#241b15;--neutral:#ece6db;--highlight:#f7e2b8;--check:#518253;--rim:#5d402d;--series-1:#b03518;--series-2:#284497;--series-3:#9e7000;--series-4:#067449;--series-5:#753b74;--series-6:#28739b;--series-7:#9675cc;--series-8:#b93b81;--band:#17130f;--band-raised:#2a241f;--band-ink:#f4f0e8;--band-accent:#f4f0e8}
html[data-brand="felt"][data-theme="dark"]{--page:#17130f;--surface:#201b17;--raised:#2a241f;--sunk:#100c09;--ink:#ede9e1;--ink-2:#b6b0a7;--muted:#9d978f;--grid:#38312b;--baseline:#787068;--accent:#ede9e1;--neutral:#2a241f;--highlight:#533f19;--check:#81b482;--rim:#aa8b74;--series-1:#ea7b4e;--series-2:#8793e0;--series-3:#d9af21;--series-4:#5db27a;--series-5:#bc6ba3;--series-6:#47c2de;--series-7:#a17827;--series-8:#f78cb9;--band:#f4f0e8;--band-raised:#ece6db;--band-ink:#17130f;--band-accent:#17130f}
@media (prefers-color-scheme: dark){html[data-brand="felt"][data-theme="system"]{--page:#17130f;--surface:#201b17;--raised:#2a241f;--sunk:#100c09;--ink:#ede9e1;--ink-2:#b6b0a7;--muted:#9d978f;--grid:#38312b;--baseline:#787068;--accent:#ede9e1;--neutral:#2a241f;--highlight:#533f19;--check:#81b482;--rim:#aa8b74;--series-1:#ea7b4e;--series-2:#8793e0;--series-3:#d9af21;--series-4:#5db27a;--series-5:#bc6ba3;--series-6:#47c2de;--series-7:#a17827;--series-8:#f78cb9;--band:#f4f0e8;--band-raised:#ece6db;--band-ink:#17130f;--band-accent:#17130f}}
/* Felt. Undyed wool, a warm ink and one madder dye (brand.json); Open Runde for words, Fraunces at its softest for
   display, Geist Mono for figures. Nothing below is inherited from another brand: Felt sets its own scale, its own
   shapes and its own states, and each rule is stated once here and kept everywhere.

   MATERIAL  Dense, soft and coloured through. Felt is cut into pieces, not drawn: no hairline marks a control, a list
             or a table. Pieces are told apart by tone and by the gutter between them. The one edge is a field's,
             because a field is written on and its place must be found (3:1).
   SCALE     A thick hand. Words at 17px, nothing under 13px; a medium control 44px tall; space on its own rhythm,
             6 10 14 20 28 40 56, so gaps read as gutters between pieces rather than as padding.
   STATES    Three fills, one meaning each, and only these are strong. The DYE is the act that commits, once per view.
             The INK is a choice made: a held chip, a checked segment, a switch that is on. A DEEP TONE is the place you
             are: the open tab, the current place in a rail, the current row. Everything else rests one tone over its
             ground, deepens a step under the pointer and a step more under the finger.
   LIGHT     One diffuse light straight overhead. Matte: no rim, no bevel, no sheen. A shadow falls straight down and
             takes the ink's warm hue, never grey.
   DEPTH     Two heights. What rests is flat. What is in the hand (a menu, a popover, a floating panel, a sheet, a
             dialog) is lifted: a tight contact shadow under a wide soft one. Nothing else casts a shadow.
   PRESS     A control gives: it compresses on a spring and its tone deepens. No inset shadow, no travel.
   GLOW      Light is emitted, never painted on: by focus (a ring of dye; a field adds a soft halo) and, on a dark screen, by the
             act that commits. Hover never glows.
   SHAPE     Round corners at generous radii. No `corner-shape: squircle`: Chromium draws a superellipse differently
             the first time in a process, so a capture of it is not the same file twice (simulation rehearsal, 2026-12-03).
   MIXING    Every tint is mixed in OKLab, so a tint of the warm ink stays warm (OKLCH mixes swing the hue of a near-grey).
   FALLBACK  More contrast puts a real edge on every tonal piece; forced colours hand everything to the system. */

html[data-brand="felt"], html[data-brand="felt"][data-theme] {
  /* the dye (madder, the first series colour of brand.json), and what is written on it; held, it takes a little ink */
  --felt-dye: var(--series-1); --felt-dye-ink: var(--surface); --felt-dye-held: color-mix(in oklab, var(--series-1) 86%, var(--ink));
  /* the hue a shadow takes: the ink's, deep and warm */
  --felt-shade: color-mix(in oklab, var(--ink) 88%, var(--series-1));
  /* what is lifted (a menu, a popover, a floating panel) is the surface; in the dark a step lighter */
  --felt-lifted: var(--surface);
  /* tones: a piece at rest, under the pointer, under the finger; the deep tone is the place you are */
  --felt-rest: color-mix(in oklab, var(--ink) 6%, var(--surface));
  --felt-over: color-mix(in oklab, var(--ink) 10%, var(--surface));
  --felt-under: color-mix(in oklab, var(--ink) 15%, var(--surface));
  --felt-place: color-mix(in oklab, var(--ink) 13%, var(--surface));
  --felt-spring: linear(0, .32 8%, .72 18%, .96 28%, 1.045 38%, 1.03 50%, 1.004 64%, .998 80%, 1);
  --felt-press: cubic-bezier(.3, 0, .6, 1);
  /* the one edge, a field's: 3:1 against any ground a field stands on */
  --felt-edge: var(--baseline);

  /* SCALE */
  --space-1: 6px; --space-2: 10px; --space-3: 14px; --space-4: 20px; --space-5: 28px; --space-6: 40px; --space-7: 56px;
  --fs-caption: .8125rem; --lh-caption: 1.125rem;
  --fs-small: .875rem; --lh-small: 1.25rem;
  --fs-ui: 1rem; --lh-ui: 1.375rem;
  --fs-base: 1.0625rem; --lh-base: 1.625rem;
  --fs-reading: 1.1875rem; --lh-reading: 1.875rem;
  --fs-title: 1.5rem; --lh-title: 1.875rem;
  --fs-display: clamp(2.25rem, 4vw, 3.5rem);
  /* a step over the kit's (32/40/48), and a medium control still sits inside the 48 px topbar with room round it */
  --touch: 44px; --control-s: 36px; --control-m: 44px; --control-l: 52px;

  /* SHAPE: soft, so the steps are large */
  --radius-s: 12px; --radius-m: 18px; --radius-l: 26px; --radius-xl: 36px;

  /* DEPTH: resting steps cast nothing; the lifted steps are a contact shadow under an ambient one, both from above */
  --shadow-2: none; --shadow-4: none;
  --shadow-8: 0 1px 2px color-mix(in oklab, var(--felt-shade) 14%, transparent), 0 10px 24px -10px color-mix(in oklab, var(--felt-shade) 22%, transparent);
  --shadow-16: 0 1px 2px color-mix(in oklab, var(--felt-shade) 14%, transparent), 0 18px 40px -14px color-mix(in oklab, var(--felt-shade) 30%, transparent);
  --shadow-28: 0 2px 4px color-mix(in oklab, var(--felt-shade) 12%, transparent), 0 28px 60px -18px color-mix(in oklab, var(--felt-shade) 34%, transparent);
  --shadow-64: 0 2px 6px color-mix(in oklab, var(--felt-shade) 12%, transparent), 0 48px 96px -24px color-mix(in oklab, var(--felt-shade) 40%, transparent);
  --overlay-shadow: var(--shadow-16);
  --panel-edge: none; --panel-fill: var(--raised);

  /* tonal pieces */
  --button-tint: var(--felt-rest); --button-tint-hover: var(--felt-over); --button-tint-pressed: var(--felt-under);
  --button-primary: var(--felt-dye); --button-primary-hover: var(--felt-dye-held); --button-primary-ink: var(--felt-dye-ink);
  --well: var(--felt-rest); --well-hover: var(--felt-over);
  /* the kit lists the shade first in a field's focus box-shadow, so it is a shadow of nothing, never `none` */
  --well-shade: 0 0 0 0 transparent; --field-frame: none; --field-edge-width: 2px; --well-halo: color-mix(in oklab, var(--felt-dye) 22%, transparent);
  --focus-ring: var(--felt-dye);
  --chip-fill: var(--felt-rest); --chip-fill-hover: var(--felt-over); --chip-ink: var(--ink); --chip-edge: none;
  --toggle-fill-pressed: var(--ink); --toggle-ink-pressed: var(--page); --toggle-weight-pressed: 600; --toggle-edge-pressed: none;
  --tag-fill: var(--felt-rest); --tag-edge: none;
  --segmented-gap: 4px; --segment-radius: var(--radius-s); --segment-ink: var(--ink-2);
  --segment-fill-checked: var(--ink); --segment-ink-checked: var(--page); --segment-weight-checked: 600;
  --segment-mark-checked: none; --segment-radius-checked-bottom: var(--radius-s);
  --segmented-pad: 4px; --segmented-radius: calc(var(--radius-s) + 4px);
  --choice-fill-checked: var(--felt-place); --choice-edge-checked: none;
  /* no lines: rows are told apart by the gutter, the current one by the deep tone */
  --row-rule: transparent; --row-fill-current: var(--felt-place);

  /* tones from the same dye pots as the data (indigo, lichen, weld, cochineal; the madder dye is never a tone): the word
     is the dye taken toward the ink, its ground the dye in the surface, so one rule holds in light and dark */
  --info: color-mix(in oklab, var(--series-2) 85%, var(--ink)); --info-bg: color-mix(in oklab, var(--series-2) 12%, var(--surface));
  --success: color-mix(in oklab, var(--check) 80%, var(--ink)); --success-bg: color-mix(in oklab, var(--check) 14%, var(--surface));
  --warning: color-mix(in oklab, var(--series-3) 72%, var(--ink)); --warning-bg: color-mix(in oklab, var(--series-3) 18%, var(--surface));
  --error: color-mix(in oklab, var(--series-8) 72%, var(--ink)); --error-bg: color-mix(in oklab, var(--series-8) 13%, var(--surface));
  --layer-hover: color-mix(in oklab, var(--ink) 6%, transparent); --layer-selected: color-mix(in oklab, var(--ink) 11%, transparent);
  --border-strong: var(--baseline); --control-stroke: var(--baseline); --control-stroke-hover: var(--ink-2); --control-stroke-pressed: var(--ink);
  --disabled: var(--felt-rest); --disabled-ink: color-mix(in oklab, var(--ink) 42%, var(--surface));
  --scrim: color-mix(in oklab, var(--felt-shade) 38%, transparent);
}
html[data-brand="felt"][data-theme="dark"] {
  --felt-dye-ink: var(--page);
  /* a shadow on a dark ground is nearly black and must be denser to be seen at all: the sunk ground, the darkest */
  --felt-shade: var(--sunk);
  --felt-edge: var(--ink-2);
  --felt-rest: color-mix(in oklab, var(--ink) 9%, var(--surface));
  --felt-over: color-mix(in oklab, var(--ink) 14%, var(--surface));
  --felt-under: color-mix(in oklab, var(--ink) 20%, var(--surface));
  --felt-place: color-mix(in oklab, var(--ink) 17%, var(--surface));
  /* in the dark, what is lifted is also a step lighter: tone carries the height a shadow cannot */
  --felt-lifted: var(--raised);
  --scrim: color-mix(in oklab, var(--sunk) 72%, transparent);
  /* the act that commits, on a dark screen, emits a little of its dye; nothing else does */
  --button-primary-shadow: 0 0 0 1px color-mix(in oklab, var(--felt-dye) 50%, transparent), 0 6px 28px -6px color-mix(in oklab, var(--felt-dye) 55%, transparent);
}
@media (prefers-color-scheme: dark) {
  html[data-brand="felt"][data-theme="system"] {
    --felt-dye-ink: var(--page);
    --felt-shade: var(--sunk);
    --felt-edge: var(--ink-2);
    --felt-rest: color-mix(in oklab, var(--ink) 9%, var(--surface));
    --felt-over: color-mix(in oklab, var(--ink) 14%, var(--surface));
    --felt-under: color-mix(in oklab, var(--ink) 20%, var(--surface));
    --felt-place: color-mix(in oklab, var(--ink) 17%, var(--surface));
    --felt-lifted: var(--raised);
    --scrim: color-mix(in oklab, var(--sunk) 72%, transparent);
    --button-primary-shadow: 0 0 0 1px color-mix(in oklab, var(--felt-dye) 50%, transparent), 0 6px 28px -6px color-mix(in oklab, var(--felt-dye) 55%, transparent);
  }
}

/* On a phone the gutters close a step, so seven days or three choices still fit across at touch size. */
@media (max-width: 699.98px) {
  html[data-brand="felt"], html[data-brand="felt"][data-theme] { --space-3: 12px; --space-4: 16px; --space-5: 20px; --space-6: 28px; --space-7: 40px; }
}

/* Type: Fraunces ships pinned at its softest and never wonky (fonts/, weight and optical size kept), so it needs no settings. */
html[data-brand="felt"] { font-optical-sizing: auto; }
html[data-brand="felt"] :is(h1, h2, h3) { font-family: var(--display); font-weight: 560; }
html[data-brand="felt"] :is(code, kbd, samp, .num, td.num, th.num) { font-variant-numeric: tabular-nums slashed-zero; }


/* PIECES: a control is a piece of tone with its words set heavier than prose; pressed, it gives. */
html[data-brand="felt"] :is(.btn, .chip, .segment, .tab) {
  transition: transform var(--dur-normal) var(--felt-spring), background-color 140ms ease-out, color 140ms ease-out;
}
html[data-brand="felt"] :is(.btn, .chip, .segment, .tab):active:not(:disabled) { transform: scale(.965); transition-duration: 90ms; transition-timing-function: var(--felt-press); }

/* THE PLACE YOU ARE: a deep tone, the same everywhere (a tab, a place in a rail, the current row), never a line under it. */
html[data-brand="felt"] :is(.btn[aria-current="page"], .btn[data-holds-current]) {
  background-color: var(--felt-place); color: var(--ink); font-weight: 600; box-shadow: none; border-radius: var(--radius-m);
}
html[data-brand="felt"] .tabs { gap: var(--space-1); border-bottom: 0; background: transparent; }
html[data-brand="felt"] .tab { border: 0; margin: 0; border-radius: var(--radius-m); }
html[data-brand="felt"] .tab:hover { background: var(--felt-rest); }
html[data-brand="felt"] .tab[aria-selected="true"] { background: var(--felt-place); color: var(--ink); font-weight: 600; }

/* NO LINES: rows and tables are told apart by the gutter and by tone. */
html[data-brand="felt"] .rows { gap: var(--space-1); }
html[data-brand="felt"] .table :is(th, td) { border-bottom: 0; background: transparent; }
html[data-brand="felt"] .table th { padding-block: var(--space-1); }
html[data-brand="felt"] .table tbody tr:nth-child(odd) td { background: var(--felt-rest); }
html[data-brand="felt"] .table tbody tr.current td { background: var(--felt-place); font-weight: 600; }

/* GLOW is in the tokens: the dark primary's --button-primary-shadow, focus's --focus-ring and a field's --well-halo. */

/* THE ONE EDGE: a field is a tonal piece with a 3:1 edge to write on; focused, the edge becomes the ink (the kit's :focus,
   which this rule must not outweigh: hence :where). */
html[data-brand="felt"] :where(.text-in, .select) { border: 0 solid transparent; border-bottom: var(--field-edge-width) solid var(--felt-edge); box-shadow: none; border-radius: var(--radius-s) var(--radius-s) 4px 4px; }

/* A segmented row is a strip of the resting tone; a choice row deepens when chosen (its box is the ink). */
html[data-brand="felt"] :is(.range, input[type="checkbox"], input[type="radio"]) { accent-color: var(--ink); }
/* the switch: a thick tonal track; on, the track is the ink and the knob the page */
html[data-brand="felt"] .switch-track { width: 48px; height: 28px; background-color: var(--felt-under); box-shadow: none; }
html[data-brand="felt"] .switch-track::after { top: 4px; left: 4px; width: 20px; height: 20px; background: var(--ink-2); box-shadow: none; }
html[data-brand="felt"] .switch input:checked + .switch-track { background-color: var(--ink); box-shadow: none; }
html[data-brand="felt"] .switch input:checked + .switch-track::after { transform: translateX(20px); background: var(--page); }

/* What is in the hand is lifted and opaque: felt is matte, it does not let light through. */
/* An element that wears another brand (the host's preview card over a branded pane) resolves what is lifted in its own
   surface: on the root it would stay felt's. */
html[data-brand="felt"] [data-brand] { --felt-lifted: var(--surface); }
html[data-brand="felt"] :is(.menu-list, .topbar-menu-list, .popover, .panel.floating) { border-color: transparent; background: var(--felt-lifted); box-shadow: var(--shadow-16); }
/* a ground (a banner, a callout) is a tonal piece: Felt draws no texture and no frame on anything */
html[data-brand="felt"] .ground::before { display: none; }

/* READING: a document is set as the rest is: its title and headings in Fraunces, no rule under the title, above a
   section, the status line or a caption (space and type part them), and a table told by tone, not lines. */
html[data-brand="felt"] .mode-reading :is(h1.title, .content h1, .content h2, .content h3) { font-family: var(--display); font-weight: 560; }
html[data-brand="felt"] .mode-reading .title-block::after { display: none; }
html[data-brand="felt"] .mode-reading { --card-edge: transparent; }
html[data-brand="felt"] .mode-reading :is(.content h1, .status, figcaption) { border-top: 0; }
html[data-brand="felt"] .mode-reading .doc :is(.content, .table-figure) table :is(th, td) { border-bottom: 0; }
html[data-brand="felt"] .mode-reading .doc :is(.content, .table-figure) table tbody tr:nth-child(odd) td { background: color-mix(in oklab, var(--ink) 5%, transparent); }

/* FALLBACK */
@media (prefers-contrast: more) {
  html[data-brand="felt"], html[data-brand="felt"][data-theme] {
    --chip-edge: inset 0 0 0 1.5px var(--ink); --tag-edge: inset 0 0 0 1.5px var(--ink); --toggle-edge-pressed: inset 0 0 0 1.5px var(--ink);
    --field-frame: inset 0 0 0 1.5px var(--ink); --panel-edge: inset 0 0 0 1.5px var(--ink); --choice-edge-checked: inset 0 0 0 1.5px var(--ink);
    --row-rule: var(--baseline);
  }
}
@media (forced-colors: active) {
  html[data-brand="felt"] :is(.btn, .chip, .tag, .tab, .text-in, .select, .segmented, .choice, .switch-track, .menu-list, .popover, .panel) { box-shadow: none !important; border: 1px solid CanvasText; }
}
@media (prefers-reduced-motion: reduce) {
  html[data-brand="felt"] :is(.btn, .chip, .segment, .tab) { transition: none; }
  html[data-brand="felt"] :is(.btn, .chip, .segment, .tab):active { transform: none; }
}

