/* ==========================================================================
   Repwise Math - components.css: the ONE definition of every shared component
   Tess, 2026-10-18. Input: _css-drift.md (every selector defined in 4 or more
   live mocks, with each distinct body) plus the canonical frame named for each
   component in the G7 component reference.

   HOW TO READ THIS FILE
   - Every value comes from assets/tokens.css. Nothing here declares a token
     and nothing here hardcodes a colour, a size or a duration. Change a token
     once and it changes on every screen.
   - Each component is defined exactly once. Where the mocks had drifted, the
     most complete and accessible version won; the others are gone.
   - A genuine context difference is either a MODIFIER class on the component
     (.sheet--tall, .note--callout) or a COMPONENT VARIABLE with a default
     declared at the top of the component (--sheet-max, --dock-gap,
     --table-row-h). A context sets a knob; it never redeclares the rule.
   - Two knob styles, and the difference matters:
       declared on the component  = a modifier on the component sets it;
       used as var(--name, default) = something OUTSIDE the component sets it
       (a script, an inline style, a host element). Declaring a default for
       one of those on the component itself would block the outside value.
   - Component variables that are NOT design tokens and are shared by more
     than one component are declared once, in section 1.
   - Comments never contain a backtick. Several mocks embed this CSS inside an
     HTML comment or a template string, and a backtick there ends the string.

   SECTIONS
     1.  base and reset
     2.  layout primitives
     3.  buttons (three ranks only)
     4.  form fields, hint, error, error summary
     5.  notes (hint, inline, callout)
     6.  status chip and removable filter
     7.  sheet, scrim and dialog
     8.  student top bar and dock
     9.  adult header and account menu
     10. account status banner (every state)
     11. data table
     12. key-value rows
     13. empty, loading and error states
     14. confirm-with-reason sheet and result panel
     15. step-up prompt
     16. view-as banner
     17. code card and QR
     18. staff console shell
     19. math line fit, squeeze and slide
     20. secret field (a write-only key)
     21. status chip, the pass and fail result modifiers
     22. deadline clock
     23. gate page
     24. step list
     25. focus, reduced motion, 200% text, email
   ========================================================================== */


/* ==========================================================================
   1. BASE AND RESET
   Canonical frame: shared by every mock (46 files).
   Component variables declared here, because more than one component reads
   them and neither is a design token:
     --tap-min   the hard target floor. --tap (48px) is the comfortable size;
                 44px is the floor WCAG 2.5.8 sets and the floor a control may
                 shrink to inside a dense table or a console row.
     --kb        the on-screen keyboard inset. 0 unless a script measures one.
                 Read as var(--kb, 0px) by the sheet, so a script may set it on
                 any ancestor.
   Drift resolved: three bodies for the universal reset (one of them a
   reduced-motion override written at full specificity). The motion override
   belongs in section 20 and is gone from here.
   ========================================================================== */

:root {
  /* Targets */
  --tap-min: 44px;

  /* The monoline glyph, at the four sizes the components actually use. A
     glyph is sized against the text it sits beside, never against the box
     around it, which is what keeps it on the label's baseline at 200%. */
  --ico-em: 1.15em;      /* the default: tracks its own line               */
  --ico-sm: 1rem;        /* beside small print                             */
  --ico-md: 1.125rem;    /* beside body text                              */
  --ico-lg: 1.25rem;     /* the subject of its own row                     */
  --ico-xl: 1.375rem;    /* the banner and step-up glyph                   */
  --ico-xxl: 2rem;       /* the glyph of a result panel                    */

  /* A checkbox or radio. Two sizes: the one beside body text, and the
     larger one in a full-width option row where the row is the target. */
  --control-size: 1.25rem;
  --control-size-lg: 1.375rem;

  /* The focus ring, in one place, so section 20 and every component that has
     to move the ring to a parent agree on its width and its offset. */
  --focus-w: 2px;
  --focus-off: 2px;

  /* A boundary that has to carry the weight a fill used to: the destructive
     border, and the ink underline under a change mark. */
  --edge-strong: 2px;

  /* How far a pressable thing drops when it is pressed. */
  --press-drop: 2px;
}

/* Breakpoints stay literal. A container query cannot read a custom property,
   so a --bp token would silently never match. The four widths this file asks
   about are 480, 600, 900 and 1024, which are the project's own steps. */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  /* tokens.css owns --reading-scale; the student's text-size control sets it
     through html[data-text-size]. */
  font-size: calc(100% * var(--reading-scale));
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-ui);
  font-size: var(--type-body);
  font-weight: var(--weight-read);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Drift resolved: ten mocks reset only cursor on a button, nine also reset
   colour and font, four more added textarea, input and select. One rule, all
   four elements: a control that does not inherit the UI font is the single
   most common defect this file exists to stop. */
button, textarea, input, select {
  color: inherit;
  font: inherit;
}
button { cursor: pointer; }
button:disabled { cursor: default; }

[hidden] { display: none !important; }

/* The monoline icon. Sized in em so it tracks the type around it, which is
   what keeps it on the label's baseline at 200% text. Drift resolved: the two
   rem-sized versions are gone. */
.ico {
  display: block;
  flex: none;
  inline-size: var(--ico-em);
  block-size: var(--ico-em);
  fill: currentColor;
}

/* Drift resolved: clip and clip-path versions. clip-path is the modern one and
   the only one that survives a transformed ancestor. */
.sr-only {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.nowrap { white-space: nowrap; }

/* Tabular figures for any number a reader compares down a column. Drift
   resolved: one version changed the font family as well, which put a second
   typeface on the screen for the sake of a digit. tokens.css already routes
   digits through Repwise Digits. */
.mono {
  font-variant-numeric: tabular-nums;
  letter-spacing: var(--track-ui);
}

table { border-collapse: collapse; }


/* ==========================================================================
   2. LAYOUT PRIMITIVES
   Canonical frame: the Open Design layout primitives, identical in 22 mocks.
   Structure only: display, flex and grid, overflow, wrapping, ratio. No
   palette, no type, no spacing scale, no component look.
   Component variables: --od-gap, --od-cols, --od-ratio, --od-rail-pad.
   All read as var(--name, default), because the context sets them on the
   container, not through a modifier.
   ========================================================================== */

:where(.od-stack, .od-row, .od-row-top, .od-cluster, .od-grid, .od-field, .od-stat, .od-cell, .od-tile) > :where(*) { min-width: 0; }

.od-stack   { display: flex; flex-direction: column; gap: var(--od-gap, var(--space-2)); }
.od-row     { display: flex; align-items: center; gap: var(--od-gap, var(--space-2)); }
.od-row-top { display: flex; align-items: flex-start; gap: var(--od-gap, var(--space-2)); }
.od-cluster { display: flex; flex-wrap: wrap; align-items: center; gap: var(--od-gap, var(--space-2)); }
.od-fill    { flex: 1 1 0; min-width: 0; }
.od-fixed   { flex: none; }
.od-grid    { display: grid; gap: var(--od-gap, var(--space-3)); grid-template-columns: repeat(var(--od-cols, 3), minmax(0, 1fr)); }

/* One piece of information is one block-level line. Sibling spans never carry
   two pieces, inside a button included. */
.od-stat, .od-field, .od-cell { display: grid; gap: var(--od-gap, var(--space-1)); }
:where(.od-stat, .od-field, .od-cell) > :where(*) { display: block; }
.od-tile { display: grid; grid-template-rows: auto 1fr; }
:where(.od-tile) > :where(*) { display: block; }

.od-media { display: block; inline-size: 100%; block-size: auto; aspect-ratio: var(--od-ratio, auto); }
.od-media-cover { object-fit: cover; }

.od-truncate { display: block; max-inline-size: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.od-clamp-2, .od-clamp-3 { display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.od-clamp-2 { -webkit-line-clamp: 2; }
.od-clamp-3 { -webkit-line-clamp: 3; }
.od-lines-2 { min-block-size: calc(2 * var(--lh-snug) * 1em); }
.od-nowrap  { white-space: nowrap; }
.od-keep    { word-break: keep-all; overflow-wrap: anywhere; }

.od-screen { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; block-size: 100%; }
.od-scroll { overflow-y: auto; overscroll-behavior: contain; min-block-size: 0; }

.od-rail {
  display: flex;
  gap: var(--od-gap, var(--space-2));
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  padding-inline: var(--od-rail-pad, var(--space-4));
  scroll-padding-inline: var(--od-rail-pad, var(--space-4));
}
.od-rail::-webkit-scrollbar { display: none; }
:where(.od-rail) > :where(*) { flex: none; scroll-snap-align: start; }
:where(.od-rail) > :where(:last-child) { margin-inline-end: var(--od-rail-pad, var(--space-4)); }

.od-spacer { flex: none; visibility: hidden; pointer-events: none; }
.od-touch  { min-inline-size: var(--tap-min); min-block-size: var(--tap-min); }

/* The project's own primitives, kept because the mocks already name them.
   Component variables: --wrap-max (the reading column cap) and --wrap-pad. */
.wrap {
  --wrap-max: 1200px;
  --wrap-pad: var(--gutter);
  inline-size: 100%;
  margin-inline: auto;
  max-inline-size: var(--wrap-max);
  padding-inline: var(--wrap-pad);
}
.wrap--measure { --wrap-max: var(--measure); }
.wrap--column  { --wrap-max: 720px; }

.sec { margin-block-start: var(--gap-section); }
.sec:first-child { margin-block-start: 0; }

.cols {
  --cols-split: minmax(0, 7fr) minmax(0, 5fr);
  display: grid;
  align-items: start;
  gap: var(--space-6) var(--space-7);
  grid-template-columns: var(--cols-split);
}
.col { display: grid; align-content: start; gap: var(--space-6); grid-template-columns: minmax(0, 1fr); min-width: 0; }
@container screen (max-width: 899px) { .cols { --cols-split: minmax(0, 1fr); gap: var(--space-6); } }

.rows  { list-style: none; margin: 0; padding: 0; }
.chrome { background: var(--bg); min-width: 0; }



/* The meta line (13 §5, Tess 2026-10-27): pieces of one line, each its own
   string, with the dot drawn here and never written in copy. A piece that
   has no value is left out, and its dot goes with it. The dot is hidden
   from screen readers, which read the pieces as a list of phrases. Each dot
   rides at the END of the piece before it, so a line that wraps starts with
   a piece, never with a dot (Tess 2026-11-18, folding UI 3's #1556). */
.meta-line { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 0; }
.meta-line > :not(:last-child)::after { content: "\00b7"; content: "\00b7" / ""; margin-inline: 0.45em; }

/* ==========================================================================
   3. BUTTONS - THREE RANKS ONLY
   Canonical frame: answer-check-r10 entry (the reference primary).
   G7: primary is the accent fill, at most one per view, and carries no icon
   except a trailing arrow on a forward step and the camera on capture;
   secondary is outlined; text is green with no border.

   RANKS AND THEIR CLASS NAMES (kept as the mocks already write them)
     primary    .btn-primary
     secondary  .btn-quiet, and .btn / .btn-spot / .tbtn as the same rank
     text       .link-btn
   Modifiers: .btn-danger (the destructive secondary), .btn--sm (type and
   padding only, never the target), .btn--inline (hugs its content instead of
   filling its container).
   Component variables: --btn-min-h, --btn-pad-x.

   DRIFT RESOLVED, and this one changes two mocks
   admin-r18 and org-admin-r14 wrote .btn-quiet as a borderless brand-coloured
   label, which is the TEXT rank, while fourteen other mocks wrote it as the
   outlined secondary. The outlined version wins, because G7 names secondary
   as the outlined rank and because a console with no outlined rank had no way
   to show two actions of equal weight. The borderless brand label those two
   files wanted is .link-btn, which was already defined.
   The primary height is one measurement for the whole project: --tap plus
   --space-2, which is 56px. The 3px accent edge sits inside it, so the drawn
   button and the target are the same size.
   ========================================================================== */

.btn-primary,
.btn-quiet,
.btn,
.btn-spot {
  --btn-min-h: calc(var(--tap) + var(--space-2));
  --btn-pad-x: var(--space-5);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  inline-size: 100%;
  min-block-size: var(--btn-min-h);
  padding: var(--space-3) var(--btn-pad-x);
  border: 0;
  border-radius: var(--radius-card);
  font-size: var(--type-body);
  font-weight: var(--weight-announce);
  letter-spacing: var(--track-ui);
  line-height: var(--lh-tight);
  text-align: center;
  text-decoration: none;
  transition: transform var(--dur-exit) var(--ease-out), background var(--dur-exit) var(--ease-out);
}
/* A rank that sits in a row beside other controls rather than filling a dock. */
.btn--inline { display: inline-flex; inline-size: auto; }
/* Small is the type size and the padding, never the target. */
.btn--sm { --btn-min-h: var(--tap-min); --btn-pad-x: var(--space-3); font-size: var(--type-meta); }
.btn-primary.btn--sm { --btn-min-h: calc(var(--tap) + var(--space-2)); font-size: var(--type-body); }
/* A primary in a header bar (the landing's top bar, Jeff 11-23): the target floor, 44px, so it can
   lead a small secondary (Sign in) without raising the bar. The 3px edge stays inside it; it's still
   the one primary in its bar (G7). Only in a bar: a dock's or a form's primary keeps 56px. */
.btn-primary.btn--bar { --btn-min-h: var(--tap-min); --btn-pad-x: var(--space-4); padding-block: var(--space-2); font-size: var(--type-meta); }

/* Keep a label and its icon from forcing a wrap, and let the label itself
   shrink instead of overflowing. */
.btn-primary > span,
.btn-quiet > span,
.btn > span,
.btn-spot > span,
.link-btn > span { min-width: 0; }

/* --- primary: the one accent action per view ---------------------------- */
/* White text fails on --accent (2.4:1), so the label is --on-accent (6.4:1).
   The fill is only 2.3:1 against --bg, so the 3px bottom edge is the
   component boundary WCAG 1.4.11 asks for: 3.3:1 against the fill. */
.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: inset 0 calc(-1 * var(--edge)) 0 var(--accent-edge);
}
.btn-primary:hover, .btn-primary.is-hover { background: var(--accent-press); }
/* Pressed, the edge thins to 1px rather than vanishing: the boundary stays (G1, V4). */
.btn-primary:active, .btn-primary.is-active { background: var(--accent-press); box-shadow: inset 0 calc(-1 * var(--hairline)) 0 var(--accent-edge); transform: translateY(var(--press-drop)); }
.btn-primary:disabled { background: var(--surface); color: var(--muted); box-shadow: none; transform: none; }
a.btn-primary, a.btn-primary:visited, a.btn-primary:hover, a.btn-primary:active { color: var(--on-accent); text-decoration: none; }

/* --- secondary: outlined ------------------------------------------------ */
.btn-quiet, .btn {
  background: transparent;
  color: var(--fg);
  border: var(--hairline) solid var(--border-strong);
}
.btn-quiet:hover, .btn:hover, .btn-quiet.is-hover, .btn.is-hover { background: var(--surface); }
.btn-quiet:active, .btn:active, .btn-quiet.is-active, .btn.is-active { background: var(--surface-sunk); }
.btn-quiet:disabled, .btn:disabled { background: var(--surface); color: var(--muted); border-color: var(--border); }

/* The same secondary rank with a brand-coloured label, used where the view
   has already spent its accent elsewhere. */
.btn-spot {
  background: transparent;
  color: var(--brand);
  border: var(--hairline) solid var(--border-strong);
  white-space: nowrap;
}
.btn-spot:not(:disabled):hover, .btn-spot:not(:disabled).is-hover { background: var(--brand-wash); }
.btn-spot:not(:disabled):active, .btn-spot:not(:disabled).is-active { background: var(--surface-sunk); transform: translateY(calc(var(--press-drop) / 2)); }
.btn-spot:disabled { border-color: var(--border); color: var(--muted); }
.btn-spot .spot-ico { flex: none; inline-size: var(--ico-em); block-size: var(--ico-em); }

/* The destructive rank is the secondary shape in the danger colour, never a
   fill: inside a confirm dialog the accent belongs to the safe choice. 2px of
   border carries the weight a fill used to, and --danger on --bg is 6.0:1. */
.btn-danger {
  background: transparent;
  color: var(--danger);
  border: var(--edge-strong) solid var(--danger);
  font-weight: var(--weight-announce);
}
.btn-danger:hover, .btn-danger.is-hover { background: var(--danger-wash); }
.btn-danger:active, .btn-danger.is-active { background: var(--danger-wash); transform: translateY(calc(var(--press-drop) / 2)); }
.btn-danger:disabled { background: var(--surface); color: var(--muted); border: var(--hairline) solid var(--border); transform: none; }

/* --- text: green, no border -------------------------------------------- */
.link-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-block-size: var(--tap);
  margin-inline-start: calc(-1 * var(--space-2));
  padding-inline: var(--space-2);
  background: transparent;
  border: 0;
  border-radius: var(--radius-control);
  color: var(--brand);
  font-size: var(--type-body);
  font-weight: var(--weight-announce);
  line-height: var(--lh-snug);
  text-align: start;
  text-decoration: none;
}
.link-btn:hover, .link-btn.is-hover { background: var(--brand-wash); }
.link-btn:active, .link-btn.is-active { background: var(--surface-sunk); }
.link-btn:disabled { color: var(--muted); background: transparent; }
.link-btn .ico { inline-size: var(--ico-md); block-size: var(--ico-md); }
/* The quiet text rank (V14, for UI 1's Q1 "← Step {n−1}"): a way back or aside, beside a screen's
   one accent, so it never draws a second one. Muted ink, the UI weight, a neutral hover. */
.link-btn--quiet { color: var(--muted); font-weight: var(--weight-ui); }
.link-btn--quiet:hover, .link-btn--quiet.is-hover { background: var(--surface); }
/* A text button that is the quiet footer of a screen rather than an action
   inside it. */
.foot-link { margin-block-start: var(--space-6); padding-block-start: var(--space-4); border-block-start: var(--hairline) solid var(--border); max-inline-size: var(--measure); }
.foot-link .link-btn { color: var(--muted); font-weight: var(--weight-ui); margin-block-start: 0; }
.foot-link .link-btn:hover { color: var(--brand); }

/* --- icon-only control: not a rank, a shape ---------------------------- */
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  inline-size: var(--tap);
  block-size: var(--tap);
  min-inline-size: var(--tap-min);
  min-block-size: var(--tap-min);
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: var(--radius-control);
  color: var(--fg);
  text-align: center;
  text-decoration: none;
}
.icon-btn:not(:disabled):hover, .icon-btn:not(:disabled).is-hover { background: var(--surface); }
.icon-btn:active, .icon-btn.is-active { background: var(--surface-sunk); }
.icon-btn:disabled { color: var(--border-strong); }
/* .icon-btn--on-media: an icon button over a photo or the live camera (P04's close; G7). A solid
   canvas circle with an ink glyph and a control-boundary edge, so it reads on any picture: on the
   ink camera ground (where an ink scrim vanished, Run A 2026-11-03) and on a light page photo. */
.icon-btn--on-media { background: var(--bg); color: var(--fg); border-radius: 50%; box-shadow: 0 0 0 var(--hairline) var(--border-strong); }
.icon-btn--on-media:not(:disabled):hover, .icon-btn--on-media:not(:disabled).is-hover { background: var(--surface); }
.icon-btn--on-media:active, .icon-btn--on-media.is-active { background: var(--surface-sunk); }

/* .card--link: G7's clickable card (Jeff, 2026-11-03). A card whose job is to open one thing is
   one link: the title's link (.card-link) is stretched over the whole card, and the card takes one
   hover, pressed and focus state. Any other control inside (a second link, a menu, a button) is
   raised above the stretched link and stays its own target; never nest one link in another. */
.card--link { position: relative; min-block-size: var(--tap); cursor: pointer; } /* tapped whole: a target in any density (V6) */
.card--link .card-link { color: inherit; text-decoration: none; }
.card--link .card-link::after { content: ""; position: absolute; inset: 0; }
.card--link .card-link:focus-visible { outline: none; }
.card--link:has(.card-link:focus-visible) { outline: var(--focus-w) solid var(--focus); outline-offset: var(--focus-off); }
.card--link :is(a, button, input, select, textarea, summary, [tabindex]):not(.card-link) { position: relative; z-index: 1; }
@media (hover: hover) { .card--link:hover, .card--link.is-hover { border-color: var(--border-strong); } }
.card--link:active, .card--link.is-active { background: var(--surface-sunk); }
/* A borderless link row (.row--two, e.g. the account home's student rows, #673 J3) has no border to
   darken, so its hover is the sunk surface, like its pressed state. Folded from the build (UI 1, #704). */
@media (hover: hover) { .row--two.card--link:has(.card-link:hover) { background: var(--surface-sunk); } }
/* .acct-add: on a desktop, Add a student under the student cards, right-aligned at its natural width
   (02 Homes for adults; desktop-adults-r1 · desktop-account-home's foot; #673 J1). Folded from #704. */
.acct-add { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: var(--space-3); margin-block-start: var(--space-5); }
.acct-add > .note { margin: 0; flex: 1 1 18rem; min-inline-size: 0; }
/* .wordmark-link: signed in, the lockup is the link home (02, 13 T26c; #673 J4), a 44px target
   (gate 5). Folded from #704. */
.wordmark-link { display: flex; align-items: center; min-block-size: var(--tap-min); border-radius: var(--radius-control); }

/* A disclosure button: a label, a value and a chevron that turns. */
.tbtn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-block-size: var(--tap);
  padding-inline: var(--space-3);
  background: transparent;
  border: var(--hairline) solid var(--border-strong);
  border-radius: var(--radius-control);
  color: var(--fg);
  font-weight: var(--weight-ui);
  line-height: var(--lh-snug);
  text-align: start;
}
.tbtn:hover, .tbtn.is-hover { background: var(--surface); }
.tbtn:active { background: var(--surface-sunk); }
.tbtn .ico { inline-size: var(--ico-md); block-size: var(--ico-md); }

.chev { transition: transform var(--dur-enter) var(--ease-out); }
[aria-expanded="true"] > .chev { transform: rotate(180deg); }



/* Folded from the build, 2026-10-27: a row of buttons that wraps, full width each on a phone
   (org-admin-r23 .btn-row in page CSS: the page head's actions, the import
   steps, the tabs). */
.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); }
/* G7 Button groups: buttons stacked in the page or a sheet's body. Never bare siblings. */
.btn-stack { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-3); justify-items: stretch; }
/* G7 Button groups: at 200% text a side-by-side pair stacks rather than shrinking a label. */
html.is-large-text .btn-row > *, html.is-large-text .dlg-foot > * { flex: 1 1 100%; }
html.is-large-text .dock--split { flex-direction: column; }
/* ...except a dock at 200% keeps 8px: it's capped at half the screen, and at 12px Add a student at the
   cap's actions ran past the cap and made the dock a scrolling region (axe, 375 at 200%). */
html.is-large-text .dock { --dock-gap: var(--space-2); }
@container screen (max-width: 599px) { .btn-row > * { flex: 1 1 100%; } }

/* ==========================================================================
   4. FORM FIELDS, HINT, ERROR, ERROR SUMMARY
   Canonical frames: signup-r8 (the field and its error), settings-r6 (the
   switch and the segmented control), account-r12 (the code field).
   G7: every input has a persistently visible label, never a placeholder
   standing in for one; the error sits next to its field and says the cause
   and the remedy.
   Modifiers: .inp--code (tabular, letterspaced), .field--inline.
   Component variables: --field-gap, --inp-min-h.
   Drift resolved: six .field bodies differing only in gap and whether they
   declared a column; one grid with a knob. Seven .field-err bodies; the
   version with the pretty wrap and the flex-none glyph wins, because an error
   that reflows its own glyph is an error nobody reads twice.
   ========================================================================== */

.field {
  /* V13 (Tess's Refero review, 11-23): three steps. --gap-in inside a group (the label, its
     control, its hint), --gap-group between fields, --gap-section between sections. */
  --field-gap: var(--gap-in);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--field-gap);
  margin-block-start: var(--gap-group);
  min-width: 0;
}
.field:first-child { margin-block-start: 0; }
/* Tight is the low end of the between-groups step (16px), never under it. */
.field--tight { margin-block-start: var(--space-4); }

.field > label, .field-label {
  font-weight: var(--weight-announce);
  line-height: var(--lh-snug);
}
/* "Optional" sits inside the label, in the muted weight, so the label still
   reads as one thing. */
.field-opt { color: var(--muted); font-weight: var(--weight-read); }

.inp, .sel, .fb-box {
  --inp-min-h: var(--tap);
  /* A code is read aloud off one screen and typed on another, so its figures
     are tabular and spaced wider than prose. */
  --track-code: 0.04em;
  --track-code-wide: 0.12em;
  inline-size: 100%;
  min-inline-size: 0;
  min-block-size: var(--inp-min-h);
  padding: var(--space-2) var(--space-3);
  background: var(--bg);
  border: var(--hairline) solid var(--border-strong);
  border-radius: var(--radius-control);
  color: var(--fg);
  font: inherit;
  line-height: var(--lh-snug);
}
.inp::placeholder, .sel::placeholder, .fb-box::placeholder { color: var(--muted); }
.inp--code { font-variant-numeric: tabular-nums; letter-spacing: var(--track-code); }
.inp--code-big { font-size: var(--type-code-line); letter-spacing: var(--track-code-wide); }
.inp[aria-invalid="true"], .sel[aria-invalid="true"], .fb-box[aria-invalid="true"] {
  border-color: var(--danger);
  box-shadow: inset 0 0 0 var(--hairline) var(--danger);
}

.field-hint {
  color: var(--muted);
  font-size: var(--type-hint);
  font-weight: var(--weight-read);
  line-height: var(--lh-snug);
  margin: 0;
  text-wrap: pretty;
}

.field-err {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  margin: var(--space-1) 0 0;
  color: var(--danger);
  font-size: var(--type-meta);
  font-weight: var(--weight-ui);
  line-height: var(--lh-snug);
  text-wrap: pretty;
}
.field-err .ico { flex: none; inline-size: var(--ico-sm); block-size: var(--ico-sm); margin-block-start: 0.1em; }

/* The error summary: one list at the top of a form that failed, every item a
   link into the field it names. The heading is the first thing focus lands
   on after a failed submit. */
.err-summary {
  margin: 0 0 var(--space-5);
  padding: var(--space-4);
  border: var(--edge-strong) solid var(--danger);
  border-radius: var(--radius-card);
  background: var(--bg);
}
.err-summary-h {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  margin: 0 0 var(--space-3);
  color: var(--danger);
  font-family: var(--font-display);
  font-size: var(--type-section);
  font-weight: var(--weight-announce);
  line-height: var(--lh-tight);
}
.err-summary-h .ico { flex: none; inline-size: var(--ico-lg); block-size: var(--ico-lg); margin-block-start: 0.1em; }
.err-summary ul { display: grid; gap: var(--space-1); margin: 0; padding-inline-start: 1.2em; }
.err-summary a { color: var(--danger); font-weight: var(--weight-ui); text-underline-offset: 2px; }

/* A fieldset. Its legend is the group's label and carries the same weight a
   field label does. */
.group { margin: var(--gap-group) 0 0; padding: 0; border: 0; min-width: 0; }
.group:first-child, .group--first { margin-block-start: 0; }
.group > legend, .group-t {
  margin: 0 0 var(--gap-in);
  padding: 0;
  color: var(--fg);
  font-size: var(--type-body);
  font-weight: var(--weight-announce);
  letter-spacing: var(--track-ui);
  line-height: var(--lh-snug);
}

/* A list of radios or checkboxes, one per line, each row a full-width target. */
.opts { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-1); margin: var(--space-2) 0 0; padding: 0; list-style: none; }
.opt-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  column-gap: var(--space-3);
  min-block-size: var(--tap);
  margin-inline: calc(-1 * var(--space-2));
  padding: var(--space-2);
  border-radius: var(--radius-control);
  line-height: var(--lh-snug);
  cursor: pointer;
  text-wrap: pretty;
}
.opt-row:hover, .opt-row.is-hover { background: var(--surface); }
.opt-row:active { background: var(--surface-sunk); }
.opt-row input {
  accent-color: var(--brand);
  flex: none;
  inline-size: var(--control-size-lg);
  block-size: var(--control-size-lg);
  /* Centre the control on the first line of its label rather than on the
     label block, so a two-line label does not drag the dot down with it. */
  margin-block: calc((var(--lh-snug) * 1em - var(--control-size-lg)) / 2) 0;
}
.opt-row input:focus-visible { outline: none; }
.opt-row:has(input:focus-visible) { outline: var(--focus-w) solid var(--focus); outline-offset: var(--focus-off); }
/* A choice that can't be made yet (A54, Keep using Repwise's Monthly before Stripe can anchor it):
   the same rest as .pick and .sw-row give a disabled control, so the row stops looking pressable. */
.opt-row:has(input:disabled) { cursor: default; color: var(--muted); }
.opt-row:has(input:disabled):hover, .opt-row:has(input:disabled).is-hover,
.opt-row:has(input:disabled):active { background: none; }
/* A word wider than the line breaks rather than running under the sheet's edge, where the scroller
   clipped it (UI 1, 11-27: "Illustrative Mathematic|s" at 375 / 200% in the curriculum picker). */
.opt-t { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-1); min-width: 0; font-weight: var(--weight-ui); line-height: var(--lh-snug); overflow-wrap: break-word; }
.opt-s { display: block; color: var(--muted); font-size: var(--type-meta); line-height: var(--lh-snug); max-inline-size: var(--measure); text-wrap: pretty; }

/* A boxed choice: the same radio, drawn as a card, for two to four options
   that have to be compared. Selected is a sunk fill with a square ink rule
   (section 11 states the rule once; this is the same mark). */
.row-opts { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-2); }
.row-opt, .choice {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-inline-size: 0;
  min-block-size: var(--tap);
  padding: var(--space-2) var(--space-3);
  background: var(--bg);
  border: var(--hairline) solid var(--border-strong);
  border-radius: var(--radius-control);
  color: var(--fg);
  font-weight: var(--weight-ui);
  line-height: var(--lh-snug);
  cursor: pointer;
}
.row-opt > span, .choice > span { min-width: 0; }
.row-opt input, .choice input { accent-color: var(--brand); flex: none; inline-size: var(--ico-lg); block-size: var(--ico-lg); margin: 0; }
.row-opt input:focus-visible, .choice input:focus-visible { outline: none; }
.row-opt:has(input:focus-visible), .choice:has(input:focus-visible) { outline: var(--focus-w) solid var(--focus); outline-offset: var(--focus-off); }
.row-opt:not(:has(input:checked)):hover, .choice:not(:has(input:checked)):hover { background: var(--surface); }
.row-opt:active, .choice:active { background: var(--surface-sunk); }
.row-opt:has(input:checked), .choice:has(input:checked) {
  background: var(--surface-sunk);
  border-color: var(--brand);
  box-shadow: inset var(--edge) 0 0 var(--brand);
}
.choices { --od-cols: 2; display: grid; grid-template-columns: repeat(var(--od-cols), minmax(0, 1fr)); gap: var(--space-3); margin-block-start: var(--space-4); }
@container screen (max-width: 599px) { .choices { --od-cols: 1; } }

/* A plain radio or checkbox beside a sentence, with no box around it. */
.pick {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  min-inline-size: 0;
  min-block-size: var(--tap);
  padding: var(--space-2) 0;
  line-height: var(--lh-snug);
  cursor: pointer;
}
.pick input { accent-color: var(--brand); flex: none; inline-size: var(--ico-lg); block-size: var(--ico-lg); margin: 0.15em 0 0; }
.pick-txt { min-width: 0; display: grid; gap: var(--space-1); }
/* A choice that can't be picked (P29: an invited or no-two-factor staff member in Email editors; Tess, 2026-11-01). */
.pick:has(input:disabled) { cursor: default; color: var(--muted); }

/* A segmented control: two to four mutually exclusive settings in one well. */
.seg {
  display: flex;
  gap: var(--space-1);
  padding: var(--space-1);
  background: var(--surface);
  border-radius: var(--radius-control);
}
.seg-opt {
  position: relative;
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: center;
  min-inline-size: 0;
  min-block-size: var(--tap);
  padding: var(--space-1) var(--space-2);
  border-radius: calc(var(--radius-control) - 2px);
  color: var(--fg);
  font-weight: var(--weight-ui);
  line-height: var(--lh-tight);
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
}
.seg-opt input { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; margin: 0; opacity: 0; cursor: pointer; }
.seg-opt:not(:has(input:checked)):hover { background: var(--bg); }
.seg-opt:active { background: var(--surface-sunk); }
.seg-opt:has(input:checked) { background: var(--bg); box-shadow: inset 0 0 0 var(--hairline) var(--brand); color: var(--brand); font-weight: var(--weight-announce); }
.seg-opt:has(input:focus-visible) { outline: var(--focus-w) solid var(--focus); outline-offset: var(--focus-off); }
/* data-fit="2" outside the generated screens (the console's alert states, four of them since Q18):
   two columns on a phone, so each option keeps a 44px target at 320 (gate 5). The console app
   measures against .app (screen), the gallery's console frames against .scr (art). */
@container screen (max-width: 599px) { .seg[data-fit="2"] { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@container art (max-width: 599px) { .seg[data-fit="2"] { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* A switch. The track and knob are shape; the state is also written in words
   beside it, because colour is never the only signal. */
.switch {
  --switch-w: 3.25rem;
  --switch-h: 2rem;
  --switch-pad: 3px;
  position: relative;
  display: block;
  flex: none;
  inline-size: var(--switch-w);
  block-size: var(--switch-h);
  background: var(--surface-sunk);
  border-radius: var(--radius-pill);
  box-shadow: inset 0 0 0 var(--hairline) var(--border-strong);
  transition: background var(--dur-exit) var(--ease-out);
}
.switch::after {
  content: "";
  position: absolute;
  inset-block-start: var(--switch-pad);
  inset-inline-start: var(--switch-pad);
  inline-size: calc(var(--switch-h) - 2 * var(--switch-pad));
  block-size: calc(var(--switch-h) - 2 * var(--switch-pad));
  background: var(--bg);
  border-radius: var(--radius-pill);
  box-shadow: inset 0 0 0 var(--hairline) var(--border-strong);
  transition: translate var(--dur-exit) var(--ease-out);
}
.switch input { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; margin: 0; opacity: 0; cursor: pointer; }
.switch:has(input:checked) { background: var(--brand); }
.switch:has(input:checked)::after { translate: calc(var(--switch-w) - var(--switch-h)) 0; }
.switch:has(input:focus-visible) { outline: var(--focus-w) solid var(--focus); outline-offset: var(--focus-off); }



/* Folded from the build, 2026-10-27: the switch's row, where the whole row is the label and the
   target (settings-r7 · reading-comfort drew it as page CSS; G2's 44px
   target is the row, not the 32px track). */
.sw-row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center;
  column-gap: var(--space-3); min-height: calc(var(--tap) + var(--space-2));
  margin: var(--space-5) calc(-1 * var(--space-2)) 0; padding: var(--space-2);
  border-radius: var(--radius-control); cursor: pointer;
}
.sw-row:active { background: var(--surface-sunk); }
@media (hover: hover) { .sw-row:hover { background: var(--surface); } }
.sw-t { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-1); }
.sw-t > span { display: block; }
.sw-name { font-weight: var(--weight-ui); line-height: var(--lh-snug); }
.sw-sub { color: var(--muted); font-size: var(--type-meta); line-height: var(--lh-snug); text-wrap: pretty; }
.sw-state { color: var(--muted); font-size: var(--type-meta); font-weight: var(--weight-announce); }
.sw-row:has(input:checked) .sw-state { color: var(--brand); }
html.is-large-text .sw-row { grid-template-columns: minmax(0, 1fr) auto; row-gap: var(--space-3); }
html.is-large-text .sw-t { grid-column: 1 / -1; }

/* Folded from security-r9, 2026-11-02 (UI 2, #653): the board drew these under its frame's .art,
   which the app never renders. A locked switch (input disabled) reads as locked, not as on. */
.sw-row:has(input:disabled) { cursor: default; }
.sw-row:has(input:disabled):active { background: none; }
@media (hover: hover) { .sw-row:has(input:disabled):hover { background: none; } }
.switch:has(input:disabled) { background: var(--border-strong); }
.switch:has(input:disabled) input { cursor: default; }

/* Folded from security-r9, 2026-11-05 (UI 2, #811): two-factor set-up's QR card, setup key,
   recovery codes and step bar, shared by the app's Security page and the console's sign-in card
   (admin-r33 · staff-2fa-setup, staff-2fa-codes). The step bar's wrapper, .steps, stays per screen:
   the name means a numbered list elsewhere (capture, the console's panels). */
.qr-card { display: grid; justify-items: center; gap: var(--space-4); margin: 0 0 var(--space-5); padding: var(--space-5) var(--space-4); border-radius: var(--radius-card); background: var(--surface); }

.qr-slot {
  display: grid; justify-items: center; gap: var(--space-2);
  width: 216px; max-width: 100%; padding: var(--space-3);
  border: var(--hairline) solid var(--border); border-radius: var(--radius-control); background: var(--bg);
  color: var(--muted); font-size: var(--text-sm); line-height: var(--lh-snug); text-align: center;
}
.qr-art { display: block; width: 184px; height: 184px; max-width: 100%; }
.qr-cap { margin: 0; max-width: 184px; text-wrap: pretty; }
.setkey { display: grid; gap: var(--space-2); justify-items: start; width: 100%; }
.setkey-k { margin: 0; color: var(--muted); font-size: var(--text-sm); font-weight: var(--weight-ui); line-height: var(--lh-snug); }
.setkey-v {
  margin: 0; width: 100%; padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-control); background: var(--bg);
  font-size: var(--text-md); font-variant-numeric: tabular-nums; letter-spacing: 0.08em;
  line-height: var(--lh-snug); overflow-wrap: anywhere;
}
.setkey-acts { display: flex; flex-wrap: wrap; gap: var(--space-1); margin-left: calc(-1 * var(--space-2)); }
.setkey-acts .link-btn { margin-top: 0; }

.rcodes-card { margin: 0 0 var(--space-5); padding: var(--space-4); border-radius: var(--radius-card); background: var(--surface); }
.rcodes { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-2) var(--space-4); margin: 0; padding: 0; }
.rcodes > li { display: grid; grid-template-columns: 1.6em minmax(0, 1fr); align-items: baseline; gap: var(--space-2); font-variant-numeric: tabular-nums; }
.rcodes-i { color: var(--muted); font-size: var(--text-sm); text-align: right; }
.rcodes-v { font-size: var(--text-base); font-weight: var(--weight-ui); letter-spacing: 0.04em; overflow-wrap: anywhere; }
.rcodes-left { display: flex; align-items: baseline; gap: var(--space-2); margin: 0 0 var(--space-3); }
.rcodes-n { font-family: var(--font-ui); font-size: var(--text-lg); font-weight: var(--weight-announce); line-height: var(--lh-tight); font-variant-numeric: tabular-nums; }
.rcodes-nk { color: var(--muted); font-size: var(--text-sm); }
.steps-bar { display: flex; gap: var(--space-1); height: var(--progress-h); }
.steps-bar > span { flex: 1 1 0; border-radius: var(--radius-pill); background: var(--border); }
.steps-bar > span.is-on { background: var(--brand); }
.steps-k { margin: 0; color: var(--muted); font-size: var(--text-sm); font-weight: var(--weight-ui); line-height: var(--lh-snug); }

/* .sw-row--stack: a row whose state words are long ("Email me · On") stacks in a narrow
   container, as security-r9 · staff-security draws it: the name and its line take the first row
   below 900px, and everything takes one column below 560px. Plain rows ("On") don't opt in. */
@container (max-width: 900px) {
  .sw-row--stack { grid-template-columns: minmax(0, 1fr) auto; row-gap: var(--space-3); }
  .sw-row--stack .sw-t { grid-column: 1 / -1; }
}
@container (max-width: 560px) {
  .sw-row--stack { grid-template-columns: minmax(0, 1fr); row-gap: var(--space-2); }
  .sw-row--stack .sw-t, .sw-row--stack .sw-state, .sw-row--stack .switch { grid-column: 1; }
  .sw-row--stack .switch { justify-self: start; }
}

/* A list's quiet empty line ("No alerts are sent to you."). */
.alerts-none { margin: 0; color: var(--muted); line-height: var(--lh-snug); }

/* ==========================================================================
   5. NOTES - THREE KINDS ONLY
   Canonical frames: signup-r8 (.note, the quiet aside), settings-r6
   (.note--inline under a control), account-r12 (.note--callout, the tinted
   box). G7: a view gets at most one note or callout.
     .note             muted small print beside or under what it explains
     .note--inline     the same, tight against the control above it
     .note--callout    a tinted box, when the sentence has to be read before
                       the control under it is pressed
   Tints come from a kind modifier on the callout, never from the note:
   .note--info, .note--warn, .note--success, .note--danger.
   Component variable: --note-gap.
   Drift resolved: nine .note bodies and ten .callout bodies, differing by
   margin and whether the glyph was flex-none. One shape, one glyph rule, and
   the margin moved to a modifier. The two mocks that put a tint on .note
   itself are adopting .note--callout.
   ========================================================================== */

.note, .hint, .sec-note {
  --note-gap: var(--space-2);
  display: flex;
  align-items: flex-start;
  gap: var(--note-gap);
  margin: var(--space-5) 0 0;
  max-inline-size: var(--measure);
  color: var(--muted);
  font-size: var(--type-hint);
  line-height: var(--lh-snug);
  text-wrap: pretty;
}
.note--inline, .hint, .sec-note { margin-block-start: var(--space-1); }
.note .ico, .hint .ico { flex: none; inline-size: var(--ico-sm); block-size: var(--ico-sm); margin-block-start: 0.15em; color: inherit; }
/* Long values inside a note break rather than push the note wider. */
.note span, .hint span, .sec-note span { overflow-wrap: anywhere; }

.note--callout, .callout {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  column-gap: var(--space-3);
  row-gap: var(--space-1);
  margin: var(--space-5) 0 0;
  max-inline-size: var(--measure);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-control);
  background: var(--surface);
  color: var(--fg);
  font-size: var(--type-body);
  line-height: var(--lh-snug);
  text-wrap: pretty;
}
.note--callout > .ico, .callout > .ico { flex: none; inline-size: var(--ico-md); block-size: var(--ico-md); margin-block-start: 0.15em; }
.callout-t { margin: 0; font-weight: var(--weight-announce); line-height: var(--lh-snug); }
.callout-p { margin: 0; line-height: var(--lh-snug); text-wrap: pretty; }
.callout-t + .callout-p { margin-block-start: var(--space-1); }
/* Run A50: the callout's column is placed only on its OWN children. Unscoped, `.callout-t` nested in
   a one-column grid (home's .see-block) made an implicit second column and collapsed the real one
   to 0px, so the rest of that box drew one word per line on top of its list. */
.callout > .callout-t, .note--callout > .callout-t,
.callout > .callout-p, .note--callout > .callout-p { grid-column: 2; }
/* Run A50: at 200% text a callout is one column, glyph above its words. Two columns left 153px for
   the words in a 277px box (64 padding, 36 glyph, 24 gap), and "worksheets" ran 24px out of it on
   every callout. */
html.is-large-text .callout, html.is-large-text .note--callout { grid-template-columns: minmax(0, 1fr); row-gap: var(--space-2); }
html.is-large-text .callout > .callout-t, html.is-large-text .callout > .callout-p,
html.is-large-text .note--callout > .callout-t, html.is-large-text .note--callout > .callout-p { grid-column: 1; }

/* The four semantic kinds. Each is a quiet tint plus a glyph colour; the
   glyph is always present, because the tint is never the only signal. */
.note--info,    .callout--info    { background: var(--info-wash); }
.note--warn,    .callout--warn    { background: var(--warn-wash); }
.note--success, .callout--success { background: var(--success-wash); }
.note--danger,  .callout--danger  { background: var(--danger-wash); }
.note--info > .ico,    .callout--info > .ico    { color: var(--info); }
.note--warn > .ico,    .callout--warn > .ico    { color: var(--warn); }
.note--success > .ico, .callout--success > .ico { color: var(--success); }
.note--danger > .ico,  .callout--danger > .ico  { color: var(--danger); }
/* A hint is the brand wash with the uniform Spot, never amber (G1, V3). */
.note--hint,    .callout--hint    { background: var(--hint-wash); }
.note--hint > .ico,    .callout--hint > .ico    { color: var(--brand); }

/* The prototype stand-in strip: what this screen is not drawing yet. Always
   the info kind, always sticky at the top of the body it belongs to. */
.standin {
  position: sticky;
  inset-block-start: 0;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  margin: 0 0 var(--space-4);
  padding: var(--space-2) var(--space-3);
  background: var(--info-wash);
  border-radius: var(--radius-control);
  color: var(--fg);
  font-size: var(--type-meta);
  line-height: var(--lh-snug);
}
.standin .ico { flex: none; inline-size: var(--ico-sm); block-size: var(--ico-sm); margin-block-start: 0.1em; color: var(--info); }
.standin[hidden] { display: none !important; }

/* The AI tutor's voice. G7: wherever the tutor speaks it is marked, in the
   info colour, in the tutor's own label. */
.sheet-say, .ai-said {
  margin: var(--space-3) 0 0;
  color: var(--info);
  font-size: var(--type-meta);
  line-height: var(--lh-snug);
  text-wrap: pretty;
}
.sheet-say:empty, .ai-said:empty { display: none; }


/* ==========================================================================
   6. STATUS CHIP AND REMOVABLE FILTER
   Canonical frames: worksheet-r8 (the state chip), teacher-r13 (the filter
   chips over a library).
   G7: the status chip is icon plus word on a quiet tint of the same hue; a
   data table carries at most 3 filters, each a removable chip.
     .chip        the state chip, read-only
     .chip-x      a filter that is narrowing the list right now; pressing it
                  removes that filter, and its accessible name says so
   Kind modifiers set only the tint and the ink: .chip--success, --warn,
   --info, --danger, --brand.
   .status-chip (2026-10-19) is the SAME body under a name that says what it
   reports: a check result rather than a hue. It is added to the two selectors
   below rather than given a body of its own, because a second chip body is
   the drift this section exists to have ended. Its four result modifiers are
   section 21, and nothing about .chip or .status changes by its being here.
   Component variables: --chip-wash, --chip-fg.
   Drift resolved: seven .chip bodies. The pill that was also a button (one
   mock) is .chip-x; the chip itself is never pressable.
   ========================================================================== */

.chips { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); margin-block-start: var(--space-3); }
.chips-k { flex: none; color: var(--muted); font-size: var(--type-meta); font-weight: var(--weight-announce); line-height: var(--lh-snug); }

.chip, .status, .status-chip {
  --chip-wash: var(--surface);
  --chip-fg: var(--muted);
  /* A chip is shorter than the 4px rhythm on purpose: it is a label, not a
     control, and it has to sit on one line beside body text. */
  --chip-pad-y: 2px;
  display: inline-flex;
  align-items: center;
  flex: none;
  gap: var(--space-1);
  padding: var(--chip-pad-y) var(--space-2);
  background: var(--chip-wash);
  border-radius: var(--radius-control);
  color: var(--chip-fg);
  font-size: var(--type-meta);
  font-variant-numeric: tabular-nums;
  font-weight: var(--weight-ui);
  line-height: var(--lh-snug);
  white-space: nowrap;
}
.chip .ico, .status .ico, .status-chip .ico { inline-size: 0.875rem; block-size: 0.875rem; }

.chip--success, .status--success { --chip-wash: var(--success-wash); --chip-fg: var(--success); }
.chip--warn,    .status--warn    { --chip-wash: var(--warn-wash);    --chip-fg: var(--warn); }
.chip--info,    .status--info    { --chip-wash: var(--info-wash);    --chip-fg: var(--info); }
.chip--danger,  .status--danger  { --chip-wash: var(--danger-wash);  --chip-fg: var(--danger); }
.chip--brand,   .status--brand   { --chip-wash: var(--brand-wash);   --chip-fg: var(--brand); }

/* A removable filter. The label names the filter AND its value, because
   "School x" is not an instruction. */
.chip-x {
  --chip-pad-y: 2px;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-block-size: var(--tap-min);
  padding: var(--chip-pad-y) var(--space-2) var(--chip-pad-y) var(--space-3);
  background: var(--bg);
  border: var(--hairline) solid var(--border-strong);
  border-radius: var(--radius-control);
  color: var(--fg);
  font: inherit;
  font-size: var(--type-meta);
  line-height: var(--lh-snug);
  cursor: pointer;
}
.chip-x:hover, .chip-x.is-hover { background: var(--surface); }
.chip-x:active { background: var(--surface-sunk); }
.chip-x b { font-weight: var(--weight-announce); }
.chip-x .ico { flex: none; inline-size: 0.9em; block-size: 0.9em; color: var(--muted); }
.chip-x:hover .ico { color: var(--fg); }


/* ==========================================================================
   7. SHEET, SCRIM AND DIALOG
   Canonical frames: home-r13 (the bottom sheet over the dock),
   walkthrough-r19 (the keyboard inset and the contained overscroll),
   admin-r18 (the centred dialog on a console).
   G7: a sheet's scrim covers the whole app, and the dock demotes to outlined
   behind it.
   Modifiers: .sheet--tall (a sheet that may take the whole screen minus the
   top bar), .sheet--dialog (centred, a card rather than a sheet).
   Component variables:
     --sheet-max      the sheet's own height cap, default 85%
     --sheet-pad-b    its bottom padding, which carries the safe-area inset
     --scrim-strength how much ink the scrim mixes in
     --kb             read as var(--kb, 0px): the on-screen keyboard inset,
                      set from outside by the script that measures it
   Drift resolved: fourteen .sheet bodies. The winner is walkthrough-r19's,
   because it is the only one carrying BOTH the keyboard inset and contained
   overscroll, so the sheet never scrolls the screen behind it; the safe-area
   bottom padding comes from capture-r8; logical properties replace left and
   right throughout. The three centred-dialog bodies become .sheet--dialog.
   ========================================================================== */

/* Above the top bar (z-index 5), so a sheet's scrim covers the whole app as 02 says; a wrapped
   console bar on a phone painted over a bottom sheet's head (UI 2, 2026-11-04). */
.layer { position: absolute; inset: 0; z-index: 6; }

.scrim {
  --scrim-strength: 38%;
  position: absolute;
  inset: 0;
  inline-size: 100%;
  padding: 0;
  border: 0;
  background: color-mix(in srgb, var(--fg) var(--scrim-strength), transparent);
  animation: fade-in var(--dur-enter) var(--ease-out);
}
.scrim--light  { --scrim-strength: 28%; }
.scrim--strong { --scrim-strength: 50%; }

.sheet {
  --sheet-max: 85%;
  --sheet-pad-b: calc(var(--space-5) + env(safe-area-inset-bottom, 0px));
  position: absolute;
  inset-inline: 0;
  inset-block-end: var(--kb, 0px);
  display: flex;
  flex-direction: column;
  margin-inline: auto;
  max-inline-size: var(--sheet-col, 100%);
  max-block-size: var(--sheet-max);
  padding: var(--space-2) var(--gutter) var(--sheet-pad-b);
  background: var(--bg);
  border-block-start: var(--hairline) solid var(--border);
  border-radius: var(--radius-sheet) var(--radius-sheet) 0 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  touch-action: pan-y;
  animation: sheet-in var(--dur-enter) var(--ease-out);
}
.sheet:focus { outline: none; }
/* Q6: a swipe moves the sheet by --drag (px, a knob Sheet.tsx sets); let go short of closing, or
   with unsaved typing, and it springs back. The head starts a swipe as well as the grab. */
.sheet { translate: 0 calc(var(--drag, 0) * 1px); }
.sheet:not(.is-dragging) { transition: translate var(--dur-exit) var(--ease-out); }
.sheet-head--drag { touch-action: none; }
.sheet--tall { --sheet-max: calc(100% - var(--space-7)); }

/* The centred card version, used on wide screens and on the staff console. */
.sheet--dialog, .dlg {
  --dlg-max: 44rem;
  position: relative;
  inset: auto;
  inline-size: min(var(--dlg-max), calc(100% - 2 * var(--space-6)));
  max-block-size: calc(100% - 2 * var(--space-6));
  margin-inline: auto;
  padding: 0;
  border: var(--hairline) solid var(--border-strong);
  border-radius: var(--radius-sheet);
  background: var(--bg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: rise-in var(--dur-enter) var(--ease-out);
}
.dlg-layer { position: absolute; inset: 0; z-index: 5; display: grid; place-items: center; padding: var(--space-4); }
@container screen (min-width: 600px) { .dlg-layer { padding: var(--space-6); } }
/* G7 (Tess, 11-24): under 600px a centred dialog takes the phone sheet's shape, full width at the
   bottom with its head and foot fixed, so 200% text never squeezes it to a 180px column. */
@container screen (max-width: 599.98px) {
  .dlg-layer:not(.dlg-layer--side, .dlg-layer--sheet) { place-items: end stretch; padding: 0; }
  .dlg-layer:not(.dlg-layer--side, .dlg-layer--sheet) > .sheet--dialog {
    inline-size: 100%; max-inline-size: none; max-block-size: 85%; margin: 0;
    border-block-end: 0; border-radius: var(--radius-sheet) var(--radius-sheet) 0 0;
    animation: sheet-in var(--dur-enter) var(--ease-out);
  }
  .dlg-layer:not(.dlg-layer--side, .dlg-layer--sheet) .dlg-foot {
    padding-block-end: calc(var(--space-4) + env(safe-area-inset-bottom, 0px));
  }
  /* The foot keeps only the actions, stacked full width in their order (the safe one first); its
     note ends the body instead (Sheet.tsx, `.dlg-foot-note`). Fixes A89b's sideways .perm clip. */
  .dlg-layer .dlg-foot, .dlg-layer .dlg-acts { flex-direction: column; align-items: stretch; }
  .dlg-layer .dlg-acts { inline-size: 100%; }
  .dlg-layer .dlg-foot > .btn, .dlg-layer .dlg-acts > .btn { inline-size: 100%; }
  /* At large text the title steps down to 20px (Tess, A92), so no real title word breaks;
     break-word stays only as the net for an unbroken code or address. Beats the screen
     layouts' .scr-console / .scr-org title size. */
  html.is-large-text .dlg-layer .dlg-title { font-size: var(--text-md); }
}

.dlg-foot-note { margin-block-start: var(--space-5); }
.dlg-foot-note > :first-child { margin-block-start: 0; }

/* The drag handle. Decorative, so it is aria-hidden in the markup, but it is
   also the sheet's touch target for the drag, so it keeps a real height. */
.sheet-grab {
  position: relative;
  flex: none;
  inline-size: var(--space-8);
  block-size: var(--space-4);
  margin: calc(-1 * var(--space-1)) auto 0;
  touch-action: none;
  cursor: grab;
}
.sheet-grab::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  inset-block-start: 50%;
  block-size: var(--space-1);
  translate: 0 -50%;
  background: var(--border-strong);
  border-radius: var(--radius-pill);
}
.sheet--dialog .sheet-grab, .dlg .sheet-grab { display: none; }

.sheet-head, .dlg-head {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  min-block-size: var(--tap);
  margin-inline-end: calc(-1 * var(--space-3));
  touch-action: none;
}
.sheet--dialog .sheet-head, .dlg-head {
  align-items: flex-start;
  margin-inline-end: 0;
  padding: var(--space-4) var(--space-5);
  border-block-end: var(--hairline) solid var(--border);
}
.sheet-term, .dlg-title {
  flex: 1 1 0;
  min-width: 0;
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--type-sheet-title);
  font-weight: var(--weight-announce);
  letter-spacing: var(--track-head);
  line-height: var(--lh-tight);
  /* A title never breaks inside a word; only a string wider than the line (a code) wraps (G7). */
  overflow-wrap: break-word;
  text-wrap: balance;
}
/* The ✕ never leaves the sheet, and a title never breaks inside a word (02, G7). When the title's
   longest word and the ✕ don't fit on one line (375 / 200%: "information" is 253px of 279), the ✕
   takes its own line above, at the end, and the title has the full width; otherwise they share
   the line as before. The title's basis is its longest word (min-content); a string wider than the
   line (a code) shrinks and wraps anywhere. UI 1, 11-27: the ✕ was clipped to a ›, or pushed out. */
.sheet-head, .dlg-head { flex-wrap: wrap-reverse; }
.sheet-head > :first-child:not(.icon-btn), .dlg-head > :first-child:not(.icon-btn) {
  flex: 1 1 auto;
  inline-size: min-content;
  min-width: 0;
}
.sheet-head > .icon-btn, .dlg-head > .icon-btn { margin-inline-start: auto; }
.sheet-sub, .dlg-sub { margin: var(--space-1) 0 0; color: var(--muted); line-height: var(--lh-snug); text-wrap: pretty; overflow-wrap: break-word; }

.sheet-inner, .sheet > .sheet-inner, .dlg-body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-block-size: 0;
}
.sheet-inner > * { flex: none; }
/* Rows at their content's height: in a fixed-height scroller an `auto` row fell to its minimum, and
   a head inside it (G7) sized to its ✕ alone, 48px under a 230px title at 375 / 200% (11-24). */
.dlg-body { display: grid; grid-auto-rows: max-content; align-content: start; gap: var(--space-4); padding: var(--space-5); overflow-y: auto; }
.sheet-scroll { flex: 1 1 auto; min-block-size: 0; overflow-y: auto; overscroll-behavior: contain; }
.dlg-lead { max-inline-size: var(--measure); line-height: var(--lh-snug); }

.sheet-foot {
  flex: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-3);
  margin: 0 calc(-1 * var(--gutter));
  padding: var(--space-4) var(--gutter) 0;
  background: var(--bg);
  border-block-start: var(--hairline) solid var(--border);
}
.dlg-foot {
  flex: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin: 0;
  padding: var(--space-4) var(--space-5);
  background: var(--surface);
  border-block-start: var(--hairline) solid var(--border);
}
/* G7 Button groups (12px) and run A53: a dialog has no scroller, so a button past its edge is unreachable.
   At 320 the second button, always the way out, was clipped off. The row wraps instead. */
.dlg-acts { flex: none; display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); max-inline-size: 100%; }
/* A page's own destructive action in the text rank (run A53; account and org-admin both drew it):
   quieter than a confirm's committing button. Never the accent, never a fill. */
.link-btn--danger, .foot-link .link-btn--danger { color: var(--danger); }
@media (hover: hover) { .link-btn--danger:hover, .link-btn--danger.is-hover { background: var(--danger-wash); } }
/* 02 G7 Landing notices: one plain line at the top of the main content, in a polite region. */
.landing-notice { margin: 0 0 var(--space-4); color: var(--fg); }
/* R10 (Tess 11-24): a landing line's one quiet action (Undo) follows its words on the same line. */
.landing-notice .landing-act { margin-inline-start: 0; vertical-align: middle; }
.landing-notice .landing-act[aria-disabled="true"] { color: var(--muted); cursor: progress; }
.landing-notice:focus { outline: none; }

/* A sheet that is making a claim rather than asking a question. */
.sheet-alert {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  margin: var(--space-4) 0 0;
  padding: var(--space-3) var(--space-4);
  background: var(--warn-wash);
  border-radius: var(--radius-control);
  line-height: var(--lh-snug);
}
.sheet-alert .ico { flex: none; inline-size: var(--ico-md); block-size: var(--ico-md); margin-block-start: 0.15em; color: var(--warn); }

/* The pop-over menu. Component variable --menu-max, because its cap is the
   one thing a wide host changes. */
.menu {
  --menu-max: min(320px, calc(100cqi - 2 * var(--space-5)));
  position: absolute;
  inset-block-start: calc(100% + var(--space-2));
  inset-inline-end: 0;
  z-index: 6;
  inline-size: max-content;
  max-inline-size: var(--menu-max);
  padding: var(--space-2);
  background: var(--bg);
  border: var(--hairline) solid var(--border-strong);
  border-radius: var(--radius-card);
  animation: rise-in var(--dur-enter) var(--ease-out);
}
.menu--start { inset-inline: 0 auto; }
.menu-scrim { position: absolute; inset: 0; z-index: 4; inline-size: 100%; padding: 0; border: 0; background: transparent; }
.menu-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-1); margin: 0; padding: 0; list-style: none; }
.menu-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: var(--space-3);
  inline-size: 100%;
  min-block-size: var(--tap);
  padding: var(--space-2) var(--space-3);
  background: transparent;
  border: 0;
  border-radius: var(--radius-control);
  color: var(--fg);
  font-weight: var(--weight-ui);
  line-height: var(--lh-snug);
  text-align: start;
  text-decoration: none;
}
.menu-row:hover, .menu-row.is-hover { background: var(--surface); }
.menu-row:active { background: var(--surface-sunk); }
.menu-row .ico { color: var(--brand); inline-size: var(--ico-lg); block-size: var(--ico-lg); margin-block-start: 0.1em; }
.menu-t { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-1); min-width: 0; }
.menu-t > * { display: block; }
.menu-n { font-weight: var(--weight-ui); line-height: var(--lh-snug); text-wrap: pretty; }
.menu-s { color: var(--muted); font-size: var(--type-meta); font-weight: var(--weight-read); line-height: var(--lh-snug); text-wrap: pretty; }
.menu-sep { border-block-start: var(--hairline) solid var(--border); margin: var(--space-2) var(--space-3); }

@keyframes sheet-in { from { transform: translateY(100%); } to { transform: none; } }
@keyframes fade-in  { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise-in  { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }



/* Folded from the build, 2026-10-27. The app's dialogs are narrower than the console's: 35rem on
   every customer surface (desktop-r8 and parent-r12 set it in page CSS),
   44rem in the console (P26, Tess 2026-10-27). */
.sheet--dialog-narrow { --dlg-max: 35rem; }
/* A tall sheet's scrolling middle runs to the sheet's edges, its content
   kept on the gutter (home-r19 · feedback). The feedback sheet is tall on
   every phone screen, the can't-make preset included (P26). A descendant, not
   a child: the sheet's animation wrapper sits between them (OD, 2026-10-27). */
.sheet--tall .sheet-scroll { margin-inline: calc(-1 * var(--gutter)); padding: var(--space-4) var(--gutter) var(--space-3); }

/* ==========================================================================
   8. STUDENT TOP BAR AND DOCK
   Canonical frames: worksheet-r8 list (the top bar and its progress rule),
   home-r13 (the dock and the sheet over it).
   The student screen is three rows: chrome, a scrolling body, and a dock that
   holds the one action in the thumb zone.
   Modifiers: .dock--stack (actions one per line), .dock--split (a pair side
   by side), .topbar--titled (a title and a subtitle instead of a wordmark).
   Component variables: --dock-gap, --screen-col.
   Drift resolved: seventeen .topbar bodies and fifteen .app bodies, which is
   the worst drift in the project. One flex bar with a safe-area top inset and
   a knob for its gap; the grid variants that existed to park a context pill on
   a second row become .topbar--wrapped, which is one declaration.
   The screen container is named on .app, so a component may ask about the
   screen's width wherever it is hosted.
   ========================================================================== */

.app-host, .overlay-host { block-size: 100%; }

.app {
  --screen-col: 100%;
  container-type: inline-size;
  container-name: screen;
  position: relative;
  isolation: isolate;
  background: var(--bg);
  block-size: 100%;
}
.app.od-screen { grid-template-columns: minmax(0, 1fr); }
/* On .app's children: a container query never styles its own container (UI 1, 2026-10-29). */
@container screen (min-width: 600px) { .app > * { --screen-col: 640px; } }

.topbar {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: var(--space-1);
  min-width: 0;
  padding: var(--space-2);
  padding-block-start: calc(var(--space-2) + env(safe-area-inset-top, 0px));
}
.topbar--wrapped { flex-wrap: wrap; row-gap: var(--space-1); }
.topbar--ruled { border-block-end: var(--hairline) solid var(--border); }
.topbar .icon-btn { flex: none; }
.topbar .od-spacer { inline-size: var(--tap); }

.tb-text { flex: 1 1 0; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-1); padding-inline: var(--space-1); }
.tb-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--type-section);
  font-weight: var(--weight-announce);
  line-height: var(--lh-tight);
  overflow-wrap: anywhere;
  text-wrap: balance;
}
.tb-sub { margin: 0; color: var(--muted); font-size: var(--type-meta); line-height: var(--lh-snug); overflow-wrap: anywhere; }

/* The thin progress rule under the top bar. --p is read with a fallback
   because the screen sets it per instance, as a fraction from 0 to 1. */
.progress { display: block; block-size: var(--progress-h); background: var(--border); overflow: hidden; } /* block, so a <span> bar has a size too (UI 1, 2026-10-29) */
.progress > span {
  display: block;
  inline-size: 100%;
  block-size: 100%;
  background: var(--brand);
  transform: scaleX(var(--p, 0));
  transform-origin: left center;
  transition: transform var(--dur-enter) var(--ease-out);
}
/* Progress as reps (Refero review V7): the bar, a capsule, and its count under it, "3 of 5", in
   tabular figures so the count doesn't shift as it climbs (Shell.tsx's Progress with a count). */
.reps { display: grid; gap: var(--gap-in); }
.reps > .progress { border-radius: var(--radius-pill); }
.reps-count { margin: 0; color: var(--muted); font-size: var(--type-meta); font-weight: var(--weight-ui); font-variant-numeric: tabular-nums; line-height: var(--lh-snug); }

/* The back control, which is the text rank wearing a chevron. */
.back {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-block-size: var(--tap);
  margin: 0 0 var(--space-3) calc(-1 * var(--space-2));
  padding-inline: var(--space-2);
  background: transparent;
  border: 0;
  border-radius: var(--radius-control);
  color: var(--brand);
  font-weight: var(--weight-announce);
  line-height: var(--lh-snug);
  text-decoration: none;
}
.back:hover, .back.is-hover { background: var(--brand-wash); }
.back:active { background: var(--surface-sunk); }
.back .ico { inline-size: var(--ico-sm); block-size: var(--ico-sm); transform: scaleX(-1); }

.body {
  min-block-size: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: var(--space-5) var(--gutter) var(--space-7);
}
.body:focus-visible { outline-offset: -2px; }
.body-main { padding-block: var(--space-5) var(--space-7); }

.dock {
  --dock-gap: var(--space-3);  /* G7 Button groups: 12px between any two buttons (Jeff, 2026-11-14) */
  background: var(--bg);
  border-block-start: var(--hairline) solid var(--border);
  padding: var(--dock-pad) var(--gutter) calc(var(--dock-pad) + var(--space-2) + env(safe-area-inset-bottom, 0px));
}
.dock--stack { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--dock-gap); justify-items: stretch; }
.dock--split { display: flex; gap: var(--dock-gap); }
.dock--split > * { flex: 1 1 0; }
.dock--stack .link-btn { margin: 0; justify-self: center; }
/* G7 Dock (Tess A91, 11-25): on a phone at 200% text the pinned dock keeps only its buttons; its
   note (DockNote) is the page's last block, after the content, never pinned. */
.dock-note-end { margin-block-start: var(--space-5); }
.dock-note-end > :last-child { margin-block-end: 0; }

/* G7: behind an open sheet the dock demotes to outlined, so the accent on the
   screen is the sheet's action and not the one underneath it. */
.app.is-under .dock .btn-primary {
  background: transparent;
  color: var(--brand);
  border: var(--hairline) solid var(--border-strong);
  box-shadow: none;
}
.app.is-under .dock .btn-primary:active { background: var(--surface-sunk); transform: none; }

/* The Repwise lockup. Always an image from assets/brand, never type. */
.wordmark { flex: 0 1 auto; min-width: 0; margin: 0; line-height: 0; }
.wordmark .lockup, .lockup { display: block; inline-size: auto; block-size: 1.75rem; max-inline-size: 100%; }
.site-head .wordmark .lockup { block-size: 1.6rem; }
.foot-brand .wordmark .lockup { block-size: 1.5rem; }
.topbar .wordmark .lockup { block-size: auto; inline-size: min(12rem, 50cqi); }
.lockup-rule { flex: none; inline-size: var(--hairline); block-size: 1.1rem; background: var(--border-strong); }
.lockup-tag { flex: none; color: var(--brand); font-size: var(--type-meta); font-weight: var(--weight-announce); letter-spacing: var(--track-ui); line-height: var(--lh-snug); }


/* ==========================================================================
   9. ADULT HEADER AND ACCOUNT MENU
   Canonical frame: account-r12 (the header, the context pill and the account
   menu under it).
   The adult header is the lockup, the context the reader is looking at, and
   the account button that opens the menu. THE LOCKUP IS ALONE ON THE LEFT AND
   THE TWO CONTROLS END THE ROW TOGETHER, the switcher immediately left of the
   account menu, which is the standard web-app placement (G7, Jeff
   2026-10-23): the free space belongs between the mark and the pair, so it is
   declared on the row's first child rather than on the account control, and
   every board that draws .site-head / .ctx-wrap / .acct-wrap gets it without
   page CSS. Below 600px of container width the account button becomes the
   48px icon-only button (G7), and the context pill drops to its own row with
   .ctx--own-row rather than truncating the name of the account the reader is
   standing in - the same one rule then puts the account button at the right of
   the lockup's own row, because that row is the lockup and the button.
   Component variables: --head-gap.
   Drift resolved: eleven bodies for the header row and the grid-areas trick
   two mocks used to move the pill. The pill moves with .ctx--own-row, which
   is two declarations instead of a second grid.
   ========================================================================== */

.site-head { display: flex; align-items: center; gap: var(--space-3); min-width: 0; padding-block: var(--space-3); background: var(--bg); border-block-end: var(--hairline) solid var(--border); }
.site-head .wrap { display: flex; align-items: center; flex-wrap: wrap; gap: var(--space-2) var(--space-3); row-gap: var(--space-2); }
/* THE PLACEMENT, in one rule (G7, 2026-10-23). The free space goes to the
   row's FIRST child, which is the lockup on every adult header in the
   product, so the switcher and the account menu are carried to the end of the
   row together and no page needs a margin, a spacer or a grid to put them
   there. It is scoped to a header row that really holds .acct-wrap, so the
   student app's top bar, the marketing header and the staff console - three
   bars with no account menu - keep their own placement untouched. A header
   that still carries a growing spacer keeps its old shape, because flex gives
   a positive flex-grow the free space before an auto margin sees it. */
.site-head > .wrap:has(> .acct-wrap) > :first-child,
.topbar > .wrap:has(> .acct-wrap) > :first-child,
.topbar:has(> .acct-wrap) > :first-child { margin-inline-end: auto; }
/* AND THE SAME PLACEMENT ON A WRAPPED ROW. An auto margin is a property of the
   line its item is on, so on a header too narrow for all three the lockup
   keeps the first line and the pair, carried to a second line, has no auto
   margin to end it: measured at 600px on the family header and at 200% text on
   four boards, the pair sat left under the mark. flex-end ends every line the
   auto margin does not reach, and it does nothing on a line where that margin
   already took the free space - which is every one-line header. */
.site-head > .wrap:has(> .acct-wrap),
.topbar > .wrap:has(> .acct-wrap),
.topbar:has(> .acct-wrap) { justify-content: flex-end; }

.ctx-wrap { position: relative; flex: 0 1 auto; min-width: 0; }
.ctx {
  display: inline-flex;
  align-items: center;
  flex: 0 1 auto;
  gap: var(--space-2);
  min-block-size: var(--tap);
  min-inline-size: 0;
  max-inline-size: 100%;
  margin: 0;
  padding: var(--space-2) var(--space-3);
  background: transparent;
  border: var(--hairline) solid var(--border-strong);
  border-radius: var(--radius-control);
  color: var(--fg);
  font-size: var(--type-body);
  font-weight: var(--weight-announce);
  line-height: var(--lh-snug);
  text-align: start;
}
button.ctx { cursor: pointer; }
button.ctx:hover { background: var(--brand-wash); }
button.ctx:active { background: var(--surface-sunk); }
.ctx-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ctx-code { flex: none; color: var(--muted); font-variant-numeric: tabular-nums; font-weight: var(--weight-read); }
/* The genuine context difference: a narrow header puts the pill on its own
   row and lets it wrap, rather than truncating the name of the account the
   reader is standing in. */
.ctx--own-row { flex: 1 1 100%; order: 3; border-radius: var(--radius-card); flex-wrap: wrap; row-gap: var(--space-1); }
/* THE VIEW SWITCHER (13 T1 "Views"; Jeff, 2026-11-13; UI 3 #1349). With more
   than one view in an account the pill carries two lines, the account (name and
   code) and the current view's role word under it, so it squares its corners
   like the own-row pill. Scoped under .ctx-in, because parent and usage-reports
   draw a one-line .ctx-sub beside the name, and those must not move. */
.ctx:has(> .ctx-in) { border-radius: var(--radius-card); }
.ctx-in { display: grid; gap: 2px; min-width: 0; text-align: start; }
.ctx-l1 { display: inline-flex; flex-wrap: wrap; align-items: baseline; column-gap: var(--space-2); min-width: 0; }
.ctx-in > .ctx-sub { color: var(--muted); font-size: var(--type-meta); font-weight: var(--weight-read); line-height: var(--lh-snug); }
/* The current view's check: a trailing third child of .menu-row. Placed by
   column rather than by count, so a row with or without a leading icon keeps
   its text in the flexible track and the check at the end. */
.menu-row:has(> .menu-check) { grid-template-columns: minmax(0, 1fr) auto; }
.menu-row:has(> .ico:not(.menu-check)):has(> .menu-check) { grid-template-columns: auto minmax(0, 1fr) auto; }
.menu-row > .menu-check { grid-column: -2 / -1; grid-row: 1; align-self: center; margin-block-start: 0; }
/* Under 600px the switcher has its own row (G7), and its menu is that row's
   full width rather than a 320px pop-over, scrolling when the views and other
   accounts are taller than the screen. */
.ctx-wrap.ctx--own-row > .menu,
.ctx-wrap:has(> .ctx--own-row) > .menu { inset-inline: 0; inline-size: auto; max-inline-size: none; max-block-size: min(70dvh, 36rem); overflow-y: auto; overscroll-behavior: contain; }

.acct {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-block-size: var(--tap);
  min-inline-size: var(--tap);
  padding: var(--space-2) var(--space-3);
  background: transparent;
  border: 0;
  border-radius: var(--radius-control);
  color: var(--fg);
  font-weight: var(--weight-ui);
  line-height: var(--lh-snug);
}
.acct:hover, .acct.is-hover { background: var(--brand-wash); }
.acct:active { background: var(--surface-sunk); }
.acct .ico { color: var(--muted); inline-size: var(--ico-md); block-size: var(--ico-md); }
.acct .chev { color: var(--muted); inline-size: var(--ico-sm); block-size: var(--ico-sm); transition: transform var(--dur-enter) var(--ease-out); }
.acct[aria-expanded="true"] .chev { transform: rotate(180deg); }
.acct-wrap { position: relative; flex: none; }
.acct-name { min-width: 0; }
/* G7: the 48px icon-only button below 600px of container width and at 200%
   text, where the name would take the whole row. The 200% half of the same
   rule is in section 25, because that one keys off the root, not the
   container. */
@container screen (max-width: 599px) {
  .acct { inline-size: var(--tap); padding-inline: 0; }
  .acct-name, .acct .chev { display: none; }
}

/* A page head inside the adult body: the title, its one sentence, and the
   actions that belong to the page. */
.head { margin: 0 0 var(--space-5); }
.head--split { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--space-3) var(--space-5); }
.head-h {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--type-title);
  font-weight: var(--weight-announce);
  letter-spacing: var(--track-head);
  line-height: var(--lh-tight);
  text-wrap: balance;
}
@container screen (min-width: 600px) { .head-h { font-size: var(--type-title-wide); } }
.head-s { margin: var(--space-2) 0 0; max-inline-size: var(--measure); color: var(--muted); line-height: var(--lh-snug); text-wrap: pretty; }
.head-h:focus { outline: none; }
.head-h:focus-visible { outline: var(--focus-w) solid var(--focus); outline-offset: var(--focus-off); }
/* The same ring as a class. A focus ring cannot be forced with CSS, so the
   living style guide draws it with .is-focus rather than writing a second
   copy of the ring in its own stylesheet. Hover and press have the matching
   hooks beside their own pseudo-classes, for the same reason. */
.is-focus { outline: var(--focus-w) solid var(--focus); outline-offset: var(--focus-off); }

/* A section head: the eyebrow rank. Caps only ever appear with the caps
   tracking token, and never on a sentence. */
.sec-h {
  margin: 0 0 var(--space-3);
  color: var(--fg);
  font-family: var(--font-display);
  font-size: var(--type-section);
  font-weight: var(--weight-announce);
  line-height: var(--lh-tight);
  text-wrap: balance;
}
.sec-h--eyebrow {
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: var(--type-meta);
  font-weight: var(--weight-announce);
  letter-spacing: normal;
}
.sec-head, .page-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-3) var(--space-4);
  padding-block-end: var(--space-3);
  border-block-end: var(--hairline) solid var(--border);
}

.foot-grid { display: grid; grid-template-columns: minmax(0, 1fr); align-items: start; gap: var(--space-5); }
.foot-links { display: flex; flex-wrap: wrap; gap: 0 var(--space-5); margin: 0; padding: 0; list-style: none; }
@container screen (min-width: 768px) {
  .foot-grid { grid-template-columns: minmax(0, 1fr) auto; }
  .foot-links { justify-content: flex-end; }
}


/* ==========================================================================
   10. ACCOUNT STATUS BANNER - EVERY STATE
   Canonical frame: components.html banner (every state in one place).
   account-r12 draws the holder's banner and admin-r18 the staff preview of
   the same component.
   G7: the status banner has NO TINT and never a coloured wash. The rank is
   carried by the glyph and the state word above the title; under it are two
   or three short lines and the one action that fixes it, which is the only
   accent on the screen.
   THE STATES (03c and 10 banner_state, 2026-10-19). Three ranks carry eight
   states, so the STATE WORD is what separates two states of one rank, never
   the colour and never the glyph:
     information  .banner--notice   Free trial · Pass starting · Season ended
     alert        .banner--hold     Payment due · Paused · Ending
     stop         .banner--stop     Closed · Contract ended
   Closed covers every way an account closes: a payment that never arrived,
   a subscription reaching its end, a staff close, or the holder closing it
   themselves. They share the word and differ in their lines and their action.
   The customer never reads the words Disabled or turned off; the state the
   spec calls disabled is Closed on screen.
   .banner--active is the success rank. A working account shows no banner at
   all, so the rank exists for a screen that reports one and for the board's
   specimen.
   .banner--stop is the default, so a state nobody styled still reads as the
   most serious rank rather than the least.
   Component variable: --banner-ink (what the glyph and the state word are).
   Drift resolved: four .banner bodies, two of them differing only in whether
   the row was a column. The column version is .banner--stacked.
   ========================================================================== */

.banner {
  --banner-ink: var(--danger);
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  margin: 0 0 var(--space-5);
  padding: var(--space-4);
  background: transparent;
  border: var(--hairline) solid var(--border-strong);
  border-radius: var(--radius-card);
  color: var(--fg);
}
.banner--stacked { flex-direction: column; align-items: stretch; gap: var(--space-4); }
.banner-row { display: flex; flex: 1 1 0; align-items: flex-start; gap: var(--space-3); min-width: 0; }
/* A row banner whose action sits beside .banner-row: below about 20rem of text the action
   wraps under it instead of crushing the text to a word a line (D2 §1.12, Tess 2026-11-13).
   .banner-in beside a bare icon always takes the rest of the row, so it never wraps away from
   its icon (UI 1's AccountBanner). Not on --stacked, where a basis would be a height. */
.banner:not(.banner--stacked) { flex-wrap: wrap; }
.banner:not(.banner--stacked) > .banner-row { flex: 1 1 min(20rem, 100%); }
.banner:not(.banner--stacked) > .banner-in { flex: 1 1 0; min-width: 0; }
/* Large text: the icon goes above the text on every banner, so the text never sits in a
   140px column beside it (UI 1's 375-at-200% shots, Tess 2026-11-13). flex: none stops the
   row bases above from acting as heights in the column. */
html.is-large-text .banner,
html.is-large-text .banner-row { flex-direction: column; align-items: stretch; flex-wrap: nowrap; gap: var(--space-2); }
html.is-large-text .banner > .banner-row,
html.is-large-text .banner > .banner-in { flex: none; }
html.is-large-text .banner { padding: var(--space-3); }
html.is-large-text .banner-t,
html.is-large-text .banner-p { max-inline-size: none; }
.banner-row > .ico, .banner > .ico { flex: none; inline-size: var(--ico-xl); block-size: var(--ico-xl); margin-block-start: 0.1em; color: var(--banner-ink); }
.banner-in { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-1); min-width: 0; }
.banner-k {
  margin: 0;
  color: var(--banner-ink);
  font-size: var(--type-meta);
  font-weight: var(--weight-announce);
  line-height: var(--lh-snug);
}
.banner-t { margin: 0; max-inline-size: var(--measure); font-weight: var(--weight-announce); line-height: var(--lh-snug); text-wrap: pretty; }
.banner-p { margin: var(--space-2) 0 0; max-inline-size: var(--measure); line-height: var(--lh-snug); text-wrap: pretty; }
.banner-act, .banner-ask { flex: none; display: flex; flex-wrap: wrap; gap: var(--space-2); }

.banner--stop   { --banner-ink: var(--danger); }
.banner--hold   { --banner-ink: var(--warn); }
.banner--notice { --banner-ink: var(--info); }
.banner--active { --banner-ink: var(--success); }


/* ==========================================================================
   11. DATA TABLE
   Canonical frames: admin-r18 accounts and org-admin-r14 roster.
   G7, in full: a labelled search; at most 3 filters, each a removable chip;
   sortable headers that are real buttons with aria-sort on the th and a
   stated default order; a count line in a live region; and "No ... match"
   with a way to clear the search. On phones the filters fold into one Filter
   sheet and sorting becomes a Sort by select.
   Parts: .tfilters .search .chips .chip-x .tbl .sort .nosort .tcount .tempty
          .tbl-cards (the phone fold) .tbl-mobile-ctl (Filter and Sort by)
   Component variables: --cell-x, --table-row-h, --table-min.
   Drift resolved: seven .tbl bodies and seven .tbl thead th bodies. The
   winner keeps the sticky header, the tabular figures and the strong rule
   under the header row; the minimum width becomes a knob so a narrow pane
   sets it instead of redeclaring the table.
   THE SELECTED ROW, stated once for the whole file: a sunk fill with a square
   ink rule. Section 4 and section 18 reuse this exact mark.
   ========================================================================== */

.tfilters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--space-3); margin-block-start: var(--space-4); }
.tfilters .inp, .tfilters .sel { min-inline-size: 0; }

.search { position: relative; display: flex; align-items: center; min-width: 0; }
.search .ico { position: absolute; inset-inline-start: var(--space-3); color: var(--muted); pointer-events: none; }
.search .inp { padding-inline-start: calc(var(--space-3) * 2 + 1.15em); }

.tbl {
  --cell-x: var(--space-3);
  --table-row-h: var(--tap-min);
  --table-min: 34rem;
  inline-size: 100%;
  min-inline-size: var(--table-min);
  border-collapse: collapse;
  font-size: var(--type-body);
  font-variant-numeric: tabular-nums;
}
.tbl-wrap { overflow-x: auto; overscroll-behavior-x: contain; }
.tbl-fixed { table-layout: fixed; min-inline-size: 0; }
.tbl-tight { --cell-x: var(--space-2); }
.tbl-tight th, .tbl-tight td { overflow-wrap: break-word; }

.tbl-cap { margin-block-end: var(--space-2); max-inline-size: var(--measure); color: var(--muted); font-size: var(--type-meta); line-height: var(--lh-snug); }

.tbl thead th {
  position: sticky;
  inset-block-start: 0;
  z-index: 1;
  padding: var(--space-2) var(--cell-x);
  background: var(--surface);
  border-block-end: var(--hairline) solid var(--border-strong);
  color: var(--muted);
  font-size: var(--type-meta);
  font-weight: var(--weight-announce);
  line-height: var(--lh-snug);
  text-align: start;
  vertical-align: bottom;
  white-space: nowrap;
}
.tbl th, .tbl td { padding: var(--cell-y) var(--cell-x); line-height: var(--lh-snug); text-align: start; vertical-align: top; }
.tbl td { border-block-end: var(--hairline) solid var(--border); font-variant-numeric: tabular-nums; }
.tbl tbody tr:last-child td { border-block-end: 0; }
.tbl tbody tr:hover td, .tbl tbody tr.is-hover td { background: var(--surface); }
.tbl .num { text-align: end; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tbl .t-main { font-weight: var(--weight-ui); }
.tbl .t-sub { display: block; color: var(--muted); font-size: var(--type-meta); }
.tbl tfoot th, .tbl tfoot td { padding: var(--space-2) var(--cell-x); background: var(--surface); border-block-start: var(--hairline) solid var(--border-strong); font-weight: var(--weight-announce); vertical-align: top; }

/* THE SELECTED ROW. A sunk fill with a square ink rule, and the rule is ink
   rather than brand so it reads at 3:1 against the fill it sits on. */
.tbl tbody tr.is-sel td,
.tbl tbody tr:has(input:checked) td { background: var(--surface-sunk); }
.tbl tbody tr.is-sel td:first-child,
.tbl tbody tr:has(input:checked) td:first-child { box-shadow: inset var(--edge) 0 0 var(--fg); }

/* A sortable header is a real button; aria-sort lives on the th; the chevron
   appears only on the sorted column, so the header row stays quiet. */
.sort, .th-sort {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  inline-size: 100%;
  min-block-size: var(--table-row-h);
  margin-inline-start: calc(-1 * var(--space-2));
  padding-inline: var(--space-2);
  background: none;
  border: 0;
  border-radius: var(--radius-control);
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  text-align: start;
}
.sort:hover, .th-sort:hover, .sort.is-hover, .th-sort.is-hover { background: var(--bg); }
.sort .ico, .th-sort .ico { inline-size: 0.7em; block-size: 0.7em; opacity: 0; }
/* A header that does not sort shares the sort button's box, so a table with
   both kinds does not put its labels on two baselines. */
.nosort { display: flex; align-items: center; inline-size: 100%; min-block-size: var(--table-row-h); }
.tbl th.num .sort, .tbl th.num .th-sort, .tbl th.num .nosort { justify-content: flex-end; }
.tbl th[aria-sort] { color: var(--fg); }
.tbl th[aria-sort] .sort .ico, .tbl th[aria-sort] .th-sort .ico { opacity: 1; color: var(--brand); }

/* The count line is a live region, so narrowing a list by typing reads the
   new count without moving focus into the table. */
.tcount { margin: var(--space-3) 0 var(--space-2); color: var(--muted); font-size: var(--type-meta); line-height: var(--lh-snug); }
.tcount strong { color: var(--fg); font-weight: var(--weight-announce); font-variant-numeric: tabular-nums; }

/* Zero rows is a state of the table, drawn where the table was, saying back
   the search that emptied it and offering the way out. */
.tempty {
  display: grid;
  justify-items: start;
  gap: var(--space-2);
  margin-block-start: var(--space-3);
  padding: var(--space-6);
  background: var(--surface);
  border: var(--hairline) solid var(--border);
}
.tempty > .ico { inline-size: var(--ico-lg); block-size: var(--ico-lg); color: var(--muted); }
.tempty-t { margin: 0; font-size: var(--type-section); font-weight: var(--weight-announce); line-height: var(--lh-snug); }
.tempty-p { margin: 0; max-inline-size: var(--measure); color: var(--muted); line-height: var(--lh-body); }
.tempty .btn, .tempty .btn-quiet { margin-block-start: var(--space-2); }

/* THE PHONE FOLD. Below 600px of screen the table becomes one block per row,
   every cell labelled, and the header row goes away. Sorting and filtering
   move to the two controls above it. The rows are divided by rules, not boxed
   (Refero review V12, Tess 11-23): the space between two rows (--gap-group) is
   a step larger than the space inside one (--gap-in), and the row's name is
   its heading in the announce weight. The row reaches past the text by the
   padding on each side, so a selected row's ground and edge don't touch it. */
/* #1941: one column that can shrink, and a heading that breaks a long email, so at 200% text a card stays the screen's width. */
.tbl-cards { display: grid; grid-template-columns: minmax(0, 1fr); margin-block-start: var(--space-3); }
.tbl-card {
  display: grid;
  gap: var(--gap-in);
  margin-inline: calc(-1 * var(--space-3));
  padding: calc(var(--gap-group) / 2) var(--space-3);
  background: var(--bg);
}
.tbl-card + .tbl-card { border-block-start: var(--hairline) solid var(--border); }
.tbl-card.is-sel { background: var(--surface-sunk); box-shadow: inset var(--edge) 0 0 var(--fg); }
.tbl-card-h { margin: 0; font-weight: var(--weight-announce); line-height: var(--lh-snug); text-wrap: pretty; overflow-wrap: anywhere; }
/* Your account history (13 T17 "your own"; Tess 11-26): a row's quiet second line under What happened,
   a sign-in's device or who did it. */
.hist-line { display: block; margin-block-start: var(--space-1); color: var(--muted); font-size: var(--text-sm); }
.tbl-card dl { display: grid; grid-template-columns: minmax(7em, auto) minmax(0, 1fr); gap: var(--space-1) var(--space-3); margin: 0; font-size: var(--type-meta); line-height: var(--lh-snug); }
.tbl-card dt { color: var(--muted); }
.tbl-card dd { margin: 0; overflow-wrap: anywhere; }
/* #1941: at 200% text a chip ("Not set up") outgrew its value column; in a card it may wrap. */
.tbl-card dd .chip, .tbl-card dd .status, .tbl-card dd .status-chip { max-inline-size: 100%; white-space: normal; }
.tbl-mobile-ctl { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-block-start: var(--space-3); }
.tbl-mobile-ctl > * { flex: 1 1 10rem; }


/* ==========================================================================
   12. KEY-VALUE ROWS
   Canonical frames: account-r12 (facts under a heading) and admin-r18
   (a record's detail list).
   Two shapes, one component. .kv is a definition list in two columns; below
   the fold width it becomes one column, label above value, because an 8em
   label column on a 320px screen leaves nothing for the value.
   Component variable: --kv-label.
   ========================================================================== */

.kv {
  --kv-label: minmax(8em, 11em);
  display: grid;
  grid-template-columns: var(--kv-label) minmax(0, 1fr);
  align-items: baseline;
  column-gap: var(--space-4);
  row-gap: var(--space-3);
  margin: 0;
}
.kv dt { color: var(--muted); }
.kv dd { margin: 0; overflow-wrap: anywhere; }

.kv-row {
  display: grid;
  grid-template-columns: var(--kv-label, minmax(8em, 11em)) minmax(0, 1fr);
  gap: var(--space-2) var(--space-4);
  padding-block: var(--row-pad-y);
  border-block-end: var(--hairline) solid var(--border);
}
.kv-row:last-child { border-block-end: 0; }
.kv-row > :first-child { color: var(--muted); }

@container screen (max-width: 479px) {
  .kv, .kv-row { grid-template-columns: minmax(0, 1fr); row-gap: var(--space-1); }
  .kv dd { margin-block-end: var(--space-2); }
}


/* ==========================================================================
   13. EMPTY, LOADING AND ERROR STATES
   Canonical frames: signup-r8 (the sent state), settings-r6 (an empty list),
   worksheet-r8 (the skeleton while a worksheet loads).
   G7: an empty state explains why it is empty and what to do next, never a
   blank screen; a wait over 300ms gets a skeleton shaped like the thing that
   is coming, never a bare spinner.
   Modifiers: .state--error (the glyph and heading go danger).
   Component variables: --h on .skel-line, read with a fallback because every
   skeleton line sets its own height inline to match the line it stands for.
   ========================================================================== */

.state {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: start;
  gap: var(--space-3);
  margin: 0;
  max-inline-size: var(--measure);
  padding: var(--space-5) 0 var(--space-4);
}
.state > .ico { inline-size: var(--ico-xxl); block-size: var(--ico-xxl); color: var(--success); }
.state--error > .ico { color: var(--danger); }
.state-h {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--type-state);
  font-weight: var(--weight-announce);
  letter-spacing: var(--track-head);
  line-height: var(--lh-tight);
  text-wrap: balance;
}
.state-h:focus { outline: none; }
.state-h:focus-visible { outline: var(--focus-w) solid var(--focus); outline-offset: var(--focus-off); }
.state-p { margin: 0; max-inline-size: var(--measure); color: var(--muted); line-height: var(--lh-snug); text-wrap: pretty; }
/* V8 line drawings (Tess, 11-23; G7): a student state's picture above its sentence, start-aligned
   with it. One monoline stroke in --fg; --brand-wash is the only fill; never animated. 96px on a
   phone, 112px from 820. In forced colours the line is CanvasText and the wash drops out. */
.drawing {
  --draw-h: 6rem;
  display: block;
  inline-size: var(--draw-h);
  block-size: var(--draw-h);
  margin-block-end: var(--space-3);
  fill: none;
  stroke: var(--fg);
  /* One weight on every drawing, whatever its box: a wide drawing scales its shapes, not its line. */
  stroke-width: calc(var(--draw-h) / 38.4);
  stroke-linecap: round;
  stroke-linejoin: round;
}
.drawing * { vector-effect: non-scaling-stroke; }
.drawing .dw { fill: var(--brand-wash); stroke: none; }
/* A wide, short drawing (the sneaker, the plates) takes 1.4x the width at the same height. */
.drawing--wide { inline-size: calc(var(--draw-h) * 1.4); }
.state > .drawing { margin: 0; }
@container screen (min-width: 820px) { .drawing { --draw-h: 7rem; } }
@media (forced-colors: active) {
  .drawing { stroke: CanvasText; }
  .drawing .dw { fill: none; }
}
/* The sent and done panels are the same component wearing the success glyph. */
.sent { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: start; gap: var(--space-3); padding: var(--space-5) 0 var(--space-4); }
.sent > .ico { inline-size: var(--ico-xxl); block-size: var(--ico-xxl); color: var(--success); }
.sent-h { margin: 0; font-family: var(--font-display); font-size: var(--type-state); font-weight: var(--weight-announce); letter-spacing: var(--track-head); line-height: var(--lh-tight); overflow-wrap: anywhere; text-wrap: balance; }
.sent-h:focus { outline: none; }
.sent-h:focus-visible { outline: var(--focus-w) solid var(--focus); outline-offset: var(--focus-off); }
.sent-p { margin: 0; max-inline-size: var(--measure); color: var(--muted); line-height: var(--lh-body); overflow-wrap: anywhere; text-wrap: pretty; }

.skel { display: grid; gap: var(--space-3); }
.skel-line {
  display: block;
  block-size: var(--h, 1.5rem);
  background: var(--surface-sunk);
  border-radius: var(--radius-control);
  /* V18 (02 G1, Tess 11-24): no gradient but a scroll fade or a mask, so the wait is a flat line that
     breathes rather than a shimmer sweeping over it. Reduced motion holds it still (below). */
  animation: skel-pulse 1600ms ease-in-out infinite alternate;
}
@keyframes skel-pulse { to { opacity: 0.55; } }



/* Folded from the build, 2026-10-27: the skeleton's short last line, where math is coming
   (components.html · states, inline), and the practice problem's hero
   line while it is written (worksheet-r12 · writing set --h inline). */
.skel-line--short { max-inline-size: 60%; }
.skel-line--hero { --h: calc(var(--tap) - var(--space-1)); }

/* ==========================================================================
   14. CONFIRM-WITH-REASON SHEET AND RESULT PANEL
   Canonical frames: admin-r18 (a status change, which is written for two
   audiences and shown to both before it is made) and account-r12 (closing an
   account).
   The shape: the sheet says what will happen in one sentence, the reasons are
   a radio set, the box takes the words a reader will read back later, the
   counter says how much room is left, and the footer's accent is the SAFE
   choice while the committing control is the danger rank.
   Parts: .conseq (the plain sentence that must be read), .fb-box, .fb-count,
          .fb-help, .fb-tick, .prevs/.prev (what each audience will see),
          .result (the panel after it is done).
   Component variable: --fb-indent, which lines a helper line up under the
   radio label above it rather than under the radio.
   ========================================================================== */

.conseq {
  margin: 0 0 var(--space-5);
  padding: var(--space-4);
  background: var(--danger-wash);
  border-radius: var(--radius-card);
  color: var(--fg);
  line-height: var(--lh-snug);
  text-wrap: pretty;
}
.conseq p { margin: 0; }
.conseq p + p { margin-block-start: var(--space-2); }

.fb-box { min-block-size: calc(var(--tap) * 2.5); padding: var(--space-3); resize: vertical; line-height: var(--lh-body); }
.fb-count {
  margin: var(--space-1) 0 0;
  color: var(--muted);
  font-size: var(--type-meta);
  font-variant-numeric: tabular-nums;
  line-height: var(--lh-snug);
  text-align: end;
}
.fb-count.is-full { color: var(--warn); font-weight: var(--weight-announce); }
.fb-count[hidden] { display: none; }
.fb-help {
  --fb-indent: calc(var(--control-size-lg) + var(--space-3));
  margin: var(--space-1) 0 0;
  margin-inline-start: var(--fb-indent);
  color: var(--muted);
  font-size: var(--type-meta);
  line-height: var(--lh-snug);
  text-wrap: pretty;
}
.fb-tick { margin-block-start: var(--space-5); padding-block-start: var(--space-4); border-block-start: var(--hairline) solid var(--border); }

/* What each audience will read, side by side, before the change is made. */
.prevs { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-4); }
@container screen (min-width: 900px) { .prevs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.prev { display: grid; align-content: start; gap: var(--space-2); min-width: 0; }
.prev-k { color: var(--muted); font-size: var(--type-meta); font-weight: var(--weight-announce); }
.prev-win { min-width: 0; padding: var(--space-3); background: var(--surface); border: var(--hairline) solid var(--border-strong); border-radius: var(--radius-control); }
.prev-bar { display: flex; align-items: center; gap: var(--space-2); margin-block-end: var(--space-3); padding-block-end: var(--space-2); border-block-end: var(--hairline) solid var(--border); color: var(--muted); font-size: var(--type-meta); }
.prev-bar .ico { inline-size: 0.9em; block-size: 0.9em; }

/* The result panel: what was done, to whom, and in whose words. It is the
   .state component with the facts attached, so a reader who comes back to it
   later reads the same sentence the audience read. */
.result {
  display: grid;
  gap: var(--space-3);
  padding: var(--space-4);
  background: var(--success-wash);
  border-radius: var(--radius-card);
}
.result--error { background: var(--danger-wash); }
.result-h { display: flex; align-items: flex-start; gap: var(--space-2); margin: 0; font-weight: var(--weight-announce); line-height: var(--lh-snug); }
.result-h .ico { flex: none; inline-size: var(--ico-lg); block-size: var(--ico-lg); margin-block-start: 0.1em; color: var(--success); }
.result--error .result-h .ico { color: var(--danger); }
.result .kv { font-size: var(--type-meta); }

/* A list where each item is a fact with its glyph, used for "what happens
   next" under a confirm. */
.take { display: grid; gap: var(--space-3); margin: var(--space-4) 0 0; padding: 0; list-style: none; }
.take > li { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: var(--space-3); max-inline-size: var(--measure); line-height: var(--lh-snug); text-wrap: pretty; }
.take > li > .ico { margin-block-start: 0.15em; color: var(--brand); }



/* Folded from the build, 2026-10-27: the body line in a confirm sheet's preview window
   (components.html · confirm-reason drew it inline). */
.prev-body { margin: 0; line-height: var(--lh-snug); }

/* ==========================================================================
   15. STEP-UP PROMPT
   Canonical frame: security-r8 (two-factor) and account-r12 close-stepup.
   A step-up is not an error: it is the screen saying this action needs the
   password again, or a code, before it will run. So it is a quiet surface, a
   brand glyph, one sentence, and a single code field with its own label.
   Parts: .tfa (the state of two-factor on an account), .stepup (the prompt
   itself). Modifiers on .tfa: --on, --off, --sso, which set only the glyph.
   ========================================================================== */

.tfa, .stepup {
  margin: 0 0 var(--space-5);
  padding: var(--space-4);
  background: var(--surface);
  border-radius: var(--radius-card);
}
.tfa-row, .stepup-row { display: flex; align-items: flex-start; gap: var(--space-3); }
.tfa-row > .ico, .stepup-row > .ico { flex: none; inline-size: var(--ico-xl); block-size: var(--ico-xl); margin-block-start: 0.1em; color: var(--brand); }
.tfa-in, .stepup-in { display: grid; justify-items: start; gap: var(--space-2); min-width: 0; }
.tfa-t, .stepup-t { margin: 0; font-weight: var(--weight-announce); line-height: var(--lh-snug); text-wrap: pretty; }
.tfa-t:focus, .stepup-t:focus { outline: none; }
.tfa-t:focus-visible, .stepup-t:focus-visible { outline: var(--focus-w) solid var(--focus); outline-offset: var(--focus-off); }
.tfa-p, .stepup-p { margin: 0; max-inline-size: var(--measure); color: var(--muted); font-size: var(--type-meta); line-height: var(--lh-snug); overflow-wrap: anywhere; text-wrap: pretty; }
.tfa--on  .tfa-row > .ico { color: var(--success); }
.tfa--off .tfa-row > .ico { color: var(--warn); }
.tfa--sso .tfa-row > .ico { color: var(--info); }
/* The code field inside a step-up is narrow on purpose: a six-figure field
   the width of the screen invites a sentence. */
.stepup .field { inline-size: 100%; max-inline-size: 14rem; }



/* Folded from the build, 2026-10-27: step-up's list of ways in, one under another (security-r9 ·
   step-up, .ways in page CSS). */
.ways { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-3); margin: var(--space-1) 0 0; }
.ways .link-btn { margin: 0; justify-self: start; }

/* ==========================================================================
   16. VIEW-AS BANNER
   Canonical frame: admin-r18.
   A staff member looking at an account through its holder's eyes gets a bar
   that never scrolls away, and it names four things: who is being viewed,
   that the session is view only, how long is left, and why it was started.
   The reason wraps rather than truncates, because a reason that is cut off is
   a reason nobody wrote. Stop viewing is the secondary rank and never the
   accent: ending a session you should not have started is not a committing
   action.
   Component variable: --vabar-pad, so a console whose own padding differs can
   keep the bar flush to the edges of its pane.
   ========================================================================== */

.vabar {
  --vabar-pad: var(--space-5);
  position: sticky;
  inset-block-start: calc(-1 * var(--vabar-pad));
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2) var(--space-4);
  margin: calc(-1 * var(--vabar-pad)) calc(-1 * var(--vabar-pad)) var(--space-5);
  padding: var(--space-3) var(--vabar-pad);
  background: var(--info-wash);
  color: var(--info);
  border-block-end: var(--hairline) solid var(--border-strong);
  line-height: var(--lh-snug);
}
.vabar-text { display: flex; flex: 1 1 22rem; flex-wrap: wrap; align-items: center; gap: var(--space-1) var(--space-2); min-width: 0; }
.vabar-text .ico { flex: none; inline-size: var(--ico-em); block-size: var(--ico-em); }
.vabar-who { font-weight: var(--weight-announce); }
/* The separators are decorative and aria-hidden, but a mark nobody can see is
   not separating anything, so they take the muted ink rather than a tint. */
.vabar-sep { color: var(--muted); }
.vabar-why { color: var(--info); }
.vabar .btn, .vabar .btn-quiet { flex: none; inline-size: auto; background: var(--bg); }


/* ==========================================================================
   17. CODE CARD AND QR
   Canonical frame: account-r12 student-code.
   A code a student will read off a parent's screen and type on a school
   laptop, so it is large text AND a real QR carrying the same facts, and
   neither is the only way in: the account code, the username and the code are
   all written underneath as selectable text.
   The QR is ink on paper like everything else, not black on white: a scanner
   thresholds the image, and --fg on --bg is 15.7:1.
   Modifiers: .code-card--dashed (a slot waiting to be filled in rather than a
   code that exists).
   Component variable: --qr-size.
   ========================================================================== */

.code-card {
  display: grid;
  justify-items: center;
  gap: var(--space-4);
  margin: 0 0 var(--space-5);
  padding: var(--space-5) var(--space-4);
  background: var(--surface);
  border-radius: var(--radius-card);
  break-inside: avoid;
}
.code-card--dashed { background: var(--bg); border: var(--hairline) dashed var(--border-strong); }
.code-big {
  margin: 0;
  font-size: var(--type-code);
  font-weight: var(--weight-announce);
  letter-spacing: 0.03em;
  line-height: var(--lh-tight);
  /* A code someone copies by hand breaks only where it has a hyphen, which stays at the line's end as
     the cue that it goes on; never mid-segment, where the break reads as part of the code. break-word,
     not anywhere: the code's min-content stays its longest segment, so a row beside it (Copy) wraps
     below before the code breaks (UI 1, /other-device at 320 and 200%; Tess, 2026-11-15). */
  overflow-wrap: break-word;
  text-align: center;
}
.code-line {
  margin: var(--space-3) 0 0;
  font-size: var(--type-code-line);
  font-weight: var(--weight-ui);
  letter-spacing: 0.03em;
  line-height: var(--lh-snug);
  overflow-wrap: anywhere;
}
.qr {
  --qr-size: 192px;
  display: block;
  inline-size: var(--qr-size);
  block-size: var(--qr-size);
  max-inline-size: 100%;
  background: var(--bg);
  border-radius: var(--radius-control);
}
.qr path { fill: var(--fg); }
.codes { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: var(--space-3); }

/* A file drop target, which is the same family: a dashed slot waiting for
   something, with the control inside it rather than beside it. */
.drop {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: var(--space-4);
  min-width: 0;
  padding: var(--space-5) var(--space-4);
  background: var(--surface);
  border: var(--edge) dashed var(--border-strong);
  border-radius: var(--radius-card);
}
@container screen (max-width: 599px) { .drop { grid-template-columns: minmax(0, 1fr); padding: var(--space-4); } }



/* Folded from the build, 2026-10-27: the drop target's title line (components.html · code-card,
   inline), and its file field as a full 44px target with the focus ring
   (org-admin-r23 .drop-f in page CSS). */
.drop-t { margin: 0; font-weight: var(--weight-announce); line-height: var(--lh-snug); }
.drop-f { inline-size: 100%; max-inline-size: 24rem; min-height: var(--tap); padding: var(--space-2) 0; font: inherit; color: var(--fg); }
.drop-f:focus-visible { outline: var(--focus-w) solid var(--focus); outline-offset: var(--focus-off); border-radius: var(--radius-control); }
.drop:has(.drop-f:focus-visible) { border-color: var(--brand); background: var(--brand-wash); }
@container screen (max-width: 599px) { .drop-f { max-inline-size: 100%; } }

/* ==========================================================================
   18. STAFF CONSOLE SHELL
   Canonical frame: admin-r18.
   A console is a top bar, a side nav and one scrolling pane. Below 1024px the
   nav becomes a scrolling row of tabs above the pane, and the current item
   keeps its mark: the selected mark moves from the inline edge to the bottom
   edge, which is the same square ink rule turned on its side.
   Component variables: --nav-w, --pad.
   ========================================================================== */

.shell {
  --nav-w: 232px;
  --pad: var(--space-5);
  display: grid;
  grid-template-columns: var(--nav-w) minmax(0, 1fr);
  /* The shell fills its pane, so the one scrolling column inside it has a
     height to scroll against. Without this the pane grows instead and the
     console's host clips it. */
  block-size: 100%;
  min-block-size: 0;
}
.main { min-width: 0; overflow-y: auto; padding: var(--pad) var(--pad) var(--space-8); }
/* P29 (Tess, 11-24): a bar taller than about a fifth of the frame (200% text on a phone) doesn't
   stay put: the whole frame scrolls, so the bar goes with the page (ConsoleShell measures it). */
.app.is-bar-tall { overflow-y: auto; overscroll-behavior: contain; }
.app.is-bar-tall .shell { block-size: auto; }
.app.is-bar-tall .main { overflow-y: visible; }
/* G7 (Tess, 11-24): every console bar list stacks below a 600px container, as the mock's .bars-stack:
   the label on its own line, then the track, value and share. The one-line row needs ~414px, so at 375
   the value and share were cut off. The app measures against .app (screen), the gallery against .scr (art). */
@container screen (max-width: 599px) {
  .scr-console .bars .bar-row { grid-template-columns: minmax(0, 1fr) max-content max-content; row-gap: var(--space-1); }
  .scr-console .bars .bar-label { grid-column: 1 / -1; }
}
@container art (max-width: 599px) {
  .scr-console .bars .bar-row { grid-template-columns: minmax(0, 1fr) max-content max-content; row-gap: var(--space-1); }
  .scr-console .bars .bar-label { grid-column: 1 / -1; }
}
/* #1941 (UI 2): at large text the stacked value's 4.5em floor (A92's .bar-value, ~150px at 200%) left the
   track no room and pushed the row past 375; there the value takes its own width. */
html.is-large-text .scr-console .bars .bar-row .bar-value { min-width: 0; }

.nav {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-1);
  align-self: start;
  min-width: 0;
  padding: var(--space-4) 0 var(--space-6);
  background: var(--surface);
  border-inline-end: var(--hairline) solid var(--border);
  overflow-y: auto;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  inline-size: 100%;
  min-block-size: var(--tap-min);
  padding: var(--space-2) var(--space-4);
  background: none;
  border: 0;
  color: var(--fg);
  font-size: var(--type-body);
  line-height: var(--lh-snug);
  text-align: start;
  text-decoration: none;
  transition: background var(--dur-exit) var(--ease-out);
}
.nav-item:hover, .nav-item.is-hover { background: var(--bg); }
.nav-item.is-cur {
  background: var(--surface-sunk);
  box-shadow: inset var(--edge) 0 0 var(--brand);
  color: var(--brand);
  font-weight: var(--weight-announce);
}

@container screen (max-width: 1023px) {
  .shell { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
  .nav {
    display: flex;
    align-items: center;
    gap: var(--space-1);
    padding: var(--space-2) var(--space-3);
    border-inline-end: 0;
    border-block-end: var(--hairline) solid var(--border);
    overflow-x: auto;
    overscroll-behavior-x: contain;
  }
  .nav-item { inline-size: auto; border-radius: var(--radius-control); white-space: nowrap; }
  .nav-item.is-cur { box-shadow: inset 0 calc(-1 * var(--edge)) 0 var(--brand); }
}
@container screen (max-width: 599px) { .shell { --nav-w: 196px; --pad: var(--space-4); } }

/* A console panel: a section, not a box (Refero review V12, Tess 11-23). Its head keeps the surface
   band and the hairline under it, its rows are divided by rules, and two panels side by side are
   kept apart by the gap between them, never a vertical rule. */
.panel { min-width: 0; background: var(--bg); }

/* A figure strip: a row of numbers with their captions, each its own block. */
.figs { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); margin: 0; padding: 0; list-style: none; background: var(--bg); border: var(--hairline) solid var(--border); }
.fig { --figure: var(--type-figure); display: grid; gap: var(--space-1); min-width: 0; padding: var(--space-3) var(--space-4); border-inline-start: var(--hairline) solid var(--border); }
.fig:first-child { border-inline-start: 0; }
.fig-v {
  display: block;
  font-family: var(--font-ui);
  font-size: var(--figure);
  font-variant-numeric: tabular-nums;
  font-weight: var(--weight-announce);
  line-height: var(--lh-tight);
  white-space: nowrap;
}
.fig-k { color: var(--muted); font-size: var(--type-meta); line-height: var(--lh-snug); }
@container screen (max-width: 599px) {
  .figs { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fig { border-inline-start: 0; border-block-start: var(--hairline) solid var(--border); }
  .fig:first-child { border-block-start: 0; }
}

/* A tab rank, for a console pane that holds two or three views of one thing. */
.tab {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-block-size: var(--tap-min);
  padding-inline: var(--space-3);
  background: transparent;
  border: 0;
  border-block-end: var(--edge) solid transparent;
  color: var(--muted);
  font-weight: var(--weight-ui);
  text-decoration: none;
}
.tab:hover { color: var(--fg); }
.tab[aria-selected="true"] { color: var(--brand); border-block-end-color: var(--brand); font-weight: var(--weight-announce); }


/* ==========================================================================
   19. MATH LINE FIT, SQUEEZE AND SLIDE
   Canonical frames: answer-check-r10 and walkthrough-r19.
   A line of math is ink, never accent and never brand. It never shrinks below
   the --math token, and it never makes the page scroll sideways: when it is
   wider than its line it slides inside its own line, the edge it can still
   travel towards is masked, and a cue button appears on that side only.
   is-flush is the squeeze state, where the line exactly fills its box.
   Modifiers: .mfit--hero (the equation that is the hero of the screen),
   .mfit--sub (a quieter restatement).
   Component variables (all read with a fallback, because the script that
   measures the line sets them from outside): --cue-out-l, --cue-out-r,
   --mask-w.
   Change marks: --mark-1 to --mark-3 sit BEHIND the ink, never carrying the
   meaning on their own, so each mark also takes an ink underline.
   ========================================================================== */

.mfit {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  min-width: 0;
  border-radius: var(--radius-control);
}
.mfit-line {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  padding-block: var(--space-2);
  color: var(--fg);
  font-family: var(--font-math);
  font-size: var(--math);
  /* Math sets tighter than prose and tighter than --lh-tight: a fraction bar
     needs the room above and below it, not between the lines. */
  line-height: var(--math-lh, 1.2);
}
.mfit-in { display: block; inline-size: max-content; }
.mfit--hero .mfit-line { font-size: var(--math-hero); }
.mfit--sub .mfit-line { font-size: var(--math-sub); }
.mfit .katex, .imath .katex { color: var(--fg); font-size: 1em; }
.imath { white-space: nowrap; }

.mfit.is-over .mfit-line, .mfit.is-flush .mfit-line { overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; }
.mfit.is-over .mfit-line::-webkit-scrollbar, .mfit.is-flush .mfit-line::-webkit-scrollbar { display: none; }
.mfit.is-over.can-r .mfit-line {
  -webkit-mask-image: linear-gradient(to right, var(--fg) calc(100% - var(--mask-w, var(--space-6))), transparent);
  mask-image: linear-gradient(to right, var(--fg) calc(100% - var(--mask-w, var(--space-6))), transparent);
}
.mfit.is-over.can-l .mfit-line {
  -webkit-mask-image: linear-gradient(to right, transparent, var(--fg) var(--mask-w, var(--space-6)));
  mask-image: linear-gradient(to right, transparent, var(--fg) var(--mask-w, var(--space-6)));
}
.mfit.is-over.can-l.can-r .mfit-line {
  -webkit-mask-image: linear-gradient(to right, transparent, var(--fg) var(--mask-w, var(--space-6)), var(--fg) calc(100% - var(--mask-w, var(--space-6))), transparent);
  mask-image: linear-gradient(to right, transparent, var(--fg) var(--mask-w, var(--space-6)), var(--fg) calc(100% - var(--mask-w, var(--space-6))), transparent);
}
.mfit-line:focus-visible { outline: none; }
.mfit:has(.mfit-line:focus-visible) { outline: var(--focus-w) solid var(--focus); outline-offset: var(--focus-off); }

.cue {
  display: none;
  grid-row: 1;
  align-items: center;
  justify-content: center;
  inline-size: max(var(--tap-min), calc(var(--tap) - var(--space-1)));
  min-block-size: max(var(--tap-min), calc(var(--tap) - var(--space-1)));
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: var(--radius-control);
  color: var(--muted);
}
.cue .ico { inline-size: var(--ico-sm); block-size: var(--ico-sm); }
.cue:hover, .cue.is-hover { background: var(--surface); color: var(--fg); }
.cue:active { background: var(--surface-sunk); }
.cue-l { grid-column: 1; margin-inline-start: calc(-1 * var(--cue-out-l, 0px)); }
.cue-r { grid-column: 3; margin-inline-end: calc(-1 * var(--cue-out-r, 0px)); }
.mfit.is-over .cue { display: inline-flex; }
.mfit.is-over:not(.can-l) .cue-l { display: none; }
.mfit.is-over:not(.can-r) .cue-r { display: none; }

.mfit .mk {
  position: relative;
  display: inline-block;
  isolation: isolate;
  margin-inline: -0.02em;
  padding: 0.04em 0.12em 0.08em;
  border-block-end: var(--edge-strong) solid var(--fg);
  border-radius: 0.18em;
}
.mfit .mk1 { background: var(--mark-1); }
.mfit .mk2 { background: var(--mark-2); }
.mfit .mk3 { background: var(--mark-3); }


/* ==========================================================================
   20. SECRET FIELD - A WRITE-ONLY KEY OR SECRET
   Canonical frame: components.html secret-field (new 2026-10-19, 13 section 6).
   A key, a token or a signing secret: Repwise takes it, stores it, and never
   shows it again. Three states on one component, because they are one field:
     empty      an .inp and Save. Nothing is stored yet, so nothing is masked.
     saved      the mask, the last four characters, and who added it when.
                The value itself is NOT in the DOM: the mask is literal text,
                not a value with a type of password, because a password input
                hands its value to a browser extension and to view-source.
     replacing  the .inp again, with Cancel beside Save, because replacing a
                key that something is using has to be abandonable.
   The last four characters are shown on purpose: they are how somebody tells
   which key this is in the provider's own dashboard, and four characters of a
   32-character token identify nothing on their own.
     .secret-field   the field, a .field with the states below
     .secret-row     the input or the mask, and the action beside it
     .secret-set     the saved state: glyph, mask, then who and when
     .secret-mask    the masked value. One line, tabular, never a password input
     .secret-meta    added when and by whom. Its own line, never a second span
                     on the mask's line
   Component variable: --secret-gap.
   ========================================================================== */

.secret-field { --secret-gap: var(--space-2); }
.secret-field .secret-row { margin-block-start: var(--secret-gap); }
.secret-field .secret-row:first-child { margin-block-start: 0; }

/* The action sits beside the input at any width it fits, and drops under it
   when it does not. The input keeps the room, so Save never squeezes it to a
   box nobody can read a token in. */
.secret-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2) var(--space-3);
  min-width: 0;
}
.secret-row > .inp { flex: 1 1 12rem; }
.secret-row > .secret-set { flex: 1 1 12rem; }
.secret-row > .btn-quiet, .secret-row > .btn-danger, .secret-row > .link-btn { flex: none; }

/* The saved state. The glyph spans both lines, so the mask and the metadata
   each keep a line of their own: one piece of information is one line. */
.secret-set {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  column-gap: var(--space-2);
  row-gap: var(--space-1);
  margin: 0;
  min-width: 0;
}
.secret-set > .ico {
  grid-row: 1 / span 2;
  inline-size: var(--ico-md);
  block-size: var(--ico-md);
  margin-block-start: 0.15em;
  color: var(--muted);
}
.secret-mask {
  display: block;
  font-variant-numeric: tabular-nums;
  font-weight: var(--weight-ui);
  letter-spacing: var(--track-ui);
  line-height: var(--lh-snug);
  overflow-wrap: anywhere;
}
.secret-meta {
  display: block;
  color: var(--muted);
  font-size: var(--type-meta);
  line-height: var(--lh-snug);
  text-wrap: pretty;
}


/* ==========================================================================
   21. STATUS CHIP - THE PASS AND FAIL RESULT MODIFIERS
   Canonical frame: components.html status-chips (new 2026-10-19, 13 section 6).
   A check that has run and has an answer: SPF, DKIM, a webhook, a nightly
   job. The body is section 6's one chip body; what is here is the four
   answers, and each one is a glyph AND a word, never a tint on its own:
     --pass     the check passed. Circle-check in the success ink
     --fail     it failed and somebody has to act. Circle-exclamation in danger
     --pending  it has not answered yet. Clock in the warn ink, which is the
                project's "partway" ink and not an alarm
     --off      the check is not switched on. Ban in the muted ink, on the
                plain surface wash, because nothing has gone wrong
   The label names the check and its answer in that order (SPF then Pass), so
   a screen reader reads the subject before the verdict and a row of six chips
   is still readable one chip at a time.
   A chip is a label, never a control: a failing check is acted on from the
   row or the panel it sits in, not by pressing the chip.
   ========================================================================== */

.status-chip--pass    { --chip-wash: var(--success-wash); --chip-fg: var(--success); }
.status-chip--fail    { --chip-wash: var(--danger-wash);  --chip-fg: var(--danger); }
.status-chip--pending { --chip-wash: var(--wait-wash);    --chip-fg: var(--wait-fg); }
.status-chip--off     { --chip-wash: var(--surface);      --chip-fg: var(--muted); }
/* The subject of the check carries the announcing weight; the verdict is the
   plain one, so the eye lands on which check this is. */
.status-chip b { font-weight: var(--weight-announce); }
.status-chip .sep { color: var(--chip-fg); opacity: 0.6; }


/* ==========================================================================
   22. DEADLINE CLOCK
   Canonical frame: components.html deadline-clock (new 2026-10-19, 13 section 6).
   How long is left to do something the product or the law put a clock on: a
   breach notice, a deletion window, a beta that ends. Two lines, always both:
     the time LEFT, which is what somebody decides on, and
     the time it is DUE BY, which is what they put in a calendar.
   A relative figure on its own is unactionable ("in 61 h" by when?) and an
   absolute one on its own makes the reader do the arithmetic.
     .deadline-clock          the pair, with its glyph
     .clock-left              how long is left. The announcing line
     .clock-by                the due stamp. Its own line, muted
     .deadline-clock--late    past due. The words change to Overdue by, the
                              glyph changes to the warning triangle, and the
                              ink goes to --danger: three signals, so colour
                              is never carrying it alone
   Component variable: --clock-fg.
   The figures are tabular so a column of these lines up, and the unit stays
   with its number: a line that wraps between 61 and h has lost the number.
   ========================================================================== */

.deadline-clock {
  --clock-fg: var(--fg);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  column-gap: var(--space-2);
  row-gap: var(--space-1);
  margin: 0;
  min-width: 0;
  color: var(--clock-fg);
}
.deadline-clock > .ico {
  grid-row: 1 / span 2;
  inline-size: var(--ico-md);
  block-size: var(--ico-md);
  margin-block-start: 0.15em;
}
.clock-left {
  display: block;
  font-variant-numeric: tabular-nums;
  font-weight: var(--weight-announce);
  line-height: var(--lh-snug);
}
.clock-by {
  display: block;
  color: var(--muted);
  font-size: var(--type-meta);
  font-variant-numeric: tabular-nums;
  line-height: var(--lh-snug);
}
.clock-num { white-space: nowrap; }

.deadline-clock--late { --clock-fg: var(--danger); }


/* ==========================================================================
   23. GATE PAGE
   Canonical frame: components.html gate-page and gate-page-wide (new
   2026-10-19, 13 section 6).
   The "before you continue" screen, shared by the two places the product has
   to stop and be read: the organization terms a top-level admin accepts
   before any screen of the account opens, and the notice a parent reads
   before paying for a child under 13. One layout, because they are one
   moment: a reading column, a title, body text somebody is expected to
   actually read, whatever fields the decision needs, an optional confirm
   checkbox, and ONE action.
     .gate-page    the reading column and its rhythm
     .gate-h       the title, in the display face
     .gate-body    the paragraphs, capped at --measure
     .gate-fields  the fields, when the decision needs any
     .gate-act     the action, and the one quiet way out when there is one
   Component variable: --gate-max (the column cap; --measure caps the prose
   inside it, so a wide window widens the page and not the line length).
   There is no dock: a gate is read top to bottom and its action belongs under
   the last thing it asks, not pinned over it. At 600 and up the action stops
   filling the column and sits at its own width, because a 720px-wide button
   reads as a banner rather than a decision.
   A gate has no back control and no navigation by design: the one way past it
   is the decision. That is also why its action is the view's one accent.
   ========================================================================== */

.gate-page {
  --gate-max: 720px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-5);
  inline-size: 100%;
  margin-inline: auto;
  max-inline-size: var(--gate-max);
  padding: var(--space-6) var(--gutter) var(--space-7);
}

.gate-h {
  margin: 0;
  max-inline-size: var(--measure);
  font-family: var(--font-display);
  font-size: var(--type-state);
  font-weight: var(--weight-announce);
  letter-spacing: var(--track-head);
  line-height: var(--lh-tight);
  text-wrap: balance;
}

.gate-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-4);
  max-inline-size: var(--measure);
}
.gate-body > p { margin: 0; line-height: var(--lh-body); text-wrap: pretty; }
/* A note or a callout inside the body gives up its own top margin: the body
   grid owns the rhythm, and section 5's margin would double the gap. */
.gate-body > .note, .gate-body > .note--callout, .gate-body > .callout { margin: 0; }

.gate-fields { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-4); }

.gate-act {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-3);
  justify-items: stretch;
  margin-block-start: var(--space-1);
}
.gate-act .link-btn { justify-self: center; margin: 0; }

@container screen (min-width: 600px) {
  .gate-h { font-size: var(--type-title-wide); }
  .gate-page { gap: var(--space-6); padding-block-start: var(--space-7); }
  .gate-act { justify-items: start; }
  .gate-act .btn-primary { inline-size: auto; min-inline-size: 16rem; }
  .gate-act .link-btn { justify-self: start; }
}

/* At 200% root text the action goes back to filling the column: at that size
   a 16rem button and the text beside it no longer share a line. */
html.is-large-text .gate-act { justify-items: stretch; }
html.is-large-text .gate-act .btn-primary { inline-size: 100%; }


/* ==========================================================================
   24. STEP LIST
   Canonical frames: components.html step-list and step-list-marked (new
   2026-10-19, 13 section 6).
   The student's OWN working, typed one line per step, and those same lines
   read back with a mark against each one. Two states of one component, and
   the second one is also the teacher's read-only view, because a teacher
   reading a student's steps must see exactly what the student saw.

   PARTS. This block uses the block-and-double-underscore names the project
   asked for, so a row modifier reads as the thing it modifies.
     .step-list          the list, an ol
     .step-list__row     one step
     .step-list__num     its number, in the brand ink. In the editable state
                         this element IS the field's label: visible,
                         permanent, carrying the words Step 1 for a screen
                         reader beside the figure. Nothing here uses a
                         placeholder in place of a label
     .step-list__body    the line, and whatever sits under it
     .step-list__entry   the math modifier on .inp, used only inside this
                         component. It sets the math face and the --math size
                         and nothing else, because a step a student types is
                         math, and math is ink at the --math floor
     .step-list__rm      remove this step: .icon-btn, in the muted ink
     .step-list__add     Add a step: the outlined secondary rank
     .step-list__mark    the verdict on one row, a glyph AND the words
     .step-list__sum     the one summary line for the whole list

   MODIFIERS
     .step-list--marked        the marked and read-only state: every row is
                               the line as typed, and the number centres on
                               the math line instead of on a field
     .step-list__row--break    the FIRST row that did not follow. One per
                               list: the row wash marks where it went off,
                               and the marking carries on down the list
     .step-list__mark--follows / --broke / --unchecked
     .step-list__sum--ok / --broke, and .step-list__sum--lead when the
                               summary is read before the list rather than
                               after it
   The editable state is the component's default shape and needs no modifier.

   Component variables: --sl-pad, --sl-gap, --sl-num-fg, --sl-num-h,
   --sl-row-wash, --sl-mark-fg, --sl-sum-fg.

   WHY IT LOOKS LIKE THIS
   A line that did not follow is NEVER --danger: danger is the ink of a
   refusal, and a teenager's wrong line is not a refusal. It is --warn, the
   project's partway ink, the same ink Simplify uses.
   The break row is three signals and colour is never one of them on its own:
   the glyph, the words, and the number turning with the row. The wash is a
   band with no radius, because a tinted rounded box around one row would
   read as a card, and steps in this product are separated by a hairline and
   space rather than by cards.
   Gate 41: every line is checked against the LINE BEFORE IT, so the check
   never stops at a break. A student who slips at step 3 and then works
   correctly from their own wrong line reads Follows on steps 4 and 5, and the
   summary says where it went off rather than voiding the rest. No mark ever
   claims the final answer is right.
   Not checked (--unchecked, muted on the plain surface) is for a line the
   engine cannot judge: a line of words, or a form it does not support. It is
   never a verdict of wrong, so it takes the quiet question glyph and borrows
   nothing from the warn ink, and the check carries on from the last line it
   could read.
   ========================================================================== */

.step-list {
  --sl-pad: var(--space-3);
  --sl-gap: var(--space-3);
  --sl-num-fg: var(--brand);
  --sl-num-h: var(--tap);
  margin: 0;
  padding: 0;
  list-style: none;
  min-width: 0;
}

.step-list__row {
  --sl-row-wash: transparent;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  column-gap: var(--sl-gap);
  row-gap: var(--space-1);
  /* The row reaches --sl-pad past its text column, the way an option row
     does, so a washed row reads as a band the text sits inside and not as a
     box drawn tight around the text. */
  margin-inline: calc(-1 * var(--sl-pad));
  padding: var(--sl-pad);
  background: var(--sl-row-wash);
  min-width: 0;
}
.step-list__row + .step-list__row { border-block-start: var(--hairline) solid var(--border); }

.step-list__num {
  display: grid;
  place-items: center;
  margin: 0;
  min-inline-size: 1.75ch;
  /* The figure centres on the first line of the row rather than on the row,
     so a row that grows a mark under its line does not drag the number down
     with it. --sl-num-h is the height of whatever that first line is. */
  min-block-size: var(--sl-num-h);
  color: var(--sl-num-fg);
  font-variant-numeric: tabular-nums;
  font-weight: var(--weight-announce);
  line-height: var(--lh-snug);
}

.step-list__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-1);
  min-width: 0;
}

/* The entry. .inp owns the well, the boundary and the target; this adds only
   the two things the project's math rule asks for. */
.step-list__entry { font-family: var(--font-math); font-size: var(--math); }

.step-list__rm { color: var(--muted); }
.step-list__rm:not(:disabled):hover, .step-list__rm:not(:disabled).is-hover { color: var(--fg); }

.step-list__add { margin-block-start: var(--space-3); }
.step-list__add .ico { inline-size: var(--ico-md); block-size: var(--ico-md); }

/* --- the marked state -------------------------------------------------- */
/* The first line of a marked row is a math line, so the number centres on
   the .mfit line box: the math size at its own line height, plus that line's
   padding above and below. Both come from tokens, so the two stay aligned
   when the type scale moves. */
.step-list--marked { --sl-num-h: calc(var(--math) * var(--math-lh, 1.2) + 2 * var(--space-2)); }

.step-list__mark {
  --sl-mark-fg: var(--muted);
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  margin: 0;
  color: var(--sl-mark-fg);
  font-size: var(--type-meta);
  font-weight: var(--weight-ui);
  line-height: var(--lh-snug);
  text-wrap: pretty;
}
.step-list__mark .ico { flex: none; inline-size: var(--ico-sm); block-size: var(--ico-sm); margin-block-start: 0.15em; }

.step-list__mark--follows   { --sl-mark-fg: var(--success); }
.step-list__mark--broke     { --sl-mark-fg: var(--warn); font-weight: var(--weight-announce); }
.step-list__mark--unchecked { --sl-mark-fg: var(--muted); }

.step-list__row--break { --sl-row-wash: var(--warn-wash); --sl-num-fg: var(--warn); }

/* --- the summary line -------------------------------------------------- */
.step-list__sum {
  --sl-sum-fg: var(--fg);
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  margin: var(--space-4) 0 0;
  color: var(--sl-sum-fg);
  font-size: var(--type-body);
  line-height: var(--lh-snug);
  text-wrap: pretty;
}
.step-list__sum .ico { flex: none; inline-size: var(--ico-md); block-size: var(--ico-md); margin-block-start: 0.1em; }
/* The count is the figure a reader compares, so it is tabular and it carries
   the announcing weight; the verdict beside it stays the plain one. */
.step-list__sum b { font-weight: var(--weight-announce); font-variant-numeric: tabular-nums; }
.step-list__sum .sep { color: var(--sl-sum-fg); opacity: 0.6; }

.step-list__sum--ok    { --sl-sum-fg: var(--success); }
.step-list__sum--broke { --sl-sum-fg: var(--warn); }
.step-list__sum--lead  { margin: 0 0 var(--space-4); }

/* At 200% root text the remove control drops under the field it belongs to
   rather than squeezing it: nothing is hidden and nothing scrolls sideways. */
html.is-large-text .step-list { --sl-gap: var(--space-2); --sl-pad: var(--space-2); }
html.is-large-text .step-list__row { grid-template-columns: auto minmax(0, 1fr); }
html.is-large-text .step-list__rm { grid-column: 2; justify-self: end; }


/* ==========================================================================
   25. FOCUS, REDUCED MOTION, 200% TEXT, EMAIL
   The three rules every component in this file depends on, stated once.
   ========================================================================== */

/* FOCUS. One ring, 2px of --brand, 2px clear of the control, on every
   focusable thing. Where a control's own box is the ring's box (a math line
   inside its fitter, a radio inside its row) the ring is moved to the parent
   in that component's own section, and the child's ring is removed there. */
:focus-visible { outline: var(--focus-w) solid var(--focus); outline-offset: var(--focus-off); }

/* 200% TEXT. html[data-text-size] in tokens.css scales the root; is-large-text
   is set by the host when the root is at 200%, which is where the layouts have
   to change rather than just grow. Nothing is hidden and nothing scrolls
   sideways; the things that were side by side stack. */
html.is-large-text .body,
html.is-large-text .dock,
html.is-large-text .sheet { --gutter: var(--space-5); }
html.is-large-text .topbar { flex-wrap: wrap; row-gap: var(--space-1); align-items: flex-start; }
html.is-large-text .site-head .wrap { flex-wrap: wrap; row-gap: var(--space-2); }
html.is-large-text .ctx { flex: 1 1 100%; order: 3; border-radius: var(--radius-card); flex-wrap: wrap; row-gap: var(--space-1); }
html.is-large-text .ctx-name { overflow: visible; overflow-wrap: anywhere; text-overflow: clip; white-space: normal; }
html.is-large-text .acct { inline-size: var(--tap); padding-inline: 0; }
html.is-large-text .acct-name, html.is-large-text .acct .chev { display: none; }
html.is-large-text .btn-primary,
html.is-large-text .btn-quiet,
html.is-large-text .btn,
html.is-large-text .btn-spot { --btn-pad-x: var(--space-3); }
html.is-large-text .sheet-foot { padding-block-start: var(--space-3); }
html.is-large-text .dock--split { flex-wrap: wrap; }
html.is-large-text .dock--split > * { flex: 1 1 100%; }
html.is-large-text .fb-help { --fb-indent: 0px; }
html.is-large-text .kv, html.is-large-text .kv-row { grid-template-columns: minmax(0, 1fr); }

/* REDUCED MOTION. Motion in this file only ever explains a state change, so
   under a reduced-motion preference the state still changes and the
   explanation is simply instant. tokens.css already collapses the two
   duration tokens; these are the animations that do not read a token. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
    scroll-behavior: auto !important;
  }
  /* A math line fits by writing a size and reading its width at once (G3), and a 1ms transition on
     font-size makes that read return the OLD size (A61, measured). Nothing in it animates or waits
     on transitionend, so it has none (Tess 2026-11-18, with UI 1). */
  .mfit, .mfit * { transition-duration: 0s !important; }
  .skel-line { animation: none; background-image: none; }
}

/* THE EMAIL TEMPLATE
   Canonical frame: emails-r10 verify.
   An email is not a screen: no wash on a note, no icons, one image (the
   lockup), the accent edge as a real border-bottom because Outlook drops an
   inset box-shadow, and every button followed by its own URL in plain text.
   Every href in a real message is absolute. */
.email {
  --font-email: "Repwise Digits", "Atkinson Hyperlegible Next", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-email-display: "Source Serif 4", "Iowan Old Style", Georgia, "Times New Roman", serif;
  max-inline-size: 600px;
  margin-inline: auto;
  padding: var(--space-6) var(--gutter) var(--space-7);
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-email);
}
.email-logo { display: block; inline-size: auto; block-size: 1.75rem; margin-block-end: var(--space-6); border: 0; }
.email h1 {
  margin: 0 0 var(--space-4);
  font-family: var(--font-email-display);
  font-size: var(--type-email-title);
  font-weight: var(--weight-announce);
  letter-spacing: var(--track-head);
  line-height: var(--lh-tight);
}
.email p { margin: 0 0 var(--space-4); font-size: var(--type-body); line-height: var(--lh-body); }
.email a { color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }
.email strong { font-weight: var(--weight-announce); }
/* A quiet details block. No semantic tint and no glyph: a wash in an email
   reads as decoration, and a glyph would be a second image. */
.email .note {
  display: block;
  margin: 0 0 var(--space-5);
  max-inline-size: none;
  padding: var(--space-4);
  background: var(--surface);
  border-radius: var(--radius-control);
  color: var(--fg);
  font-size: var(--type-body);
}
.email .note dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--space-2) var(--space-4); margin: 0; font-size: var(--type-meta); line-height: var(--lh-snug); }
.email .note dt { margin: 0; color: var(--muted); }
.email .note dd { margin: 0; color: var(--fg); overflow-wrap: anywhere; }
.email .note-k { margin: 0 0 var(--space-3); color: var(--muted); font-size: var(--type-meta); font-weight: var(--weight-announce); }
.email .note s { text-decoration-thickness: 1px; }
.email .note mark { padding: 0 0.2em; background: var(--mark-1); border-block-end: var(--edge-strong) solid var(--fg); color: var(--fg); }
/* The one accent per message. */
.btn-wrap { margin: var(--space-6) 0 var(--space-3); }
.email .btn {
  display: inline-block;
  inline-size: auto;
  min-block-size: 0;
  padding: var(--space-4) var(--space-6);
  background: var(--accent);
  border: 0;
  border-block-end: var(--edge) solid var(--accent-edge);
  border-radius: var(--radius-card);
  box-shadow: none;
  color: var(--on-accent);
  font-size: var(--type-body);
  font-weight: var(--weight-announce);
  letter-spacing: var(--track-ui);
  line-height: var(--lh-tight);
  text-decoration: none;
}
.fallback { margin: 0 0 var(--space-6); color: var(--muted); font-size: var(--type-meta); line-height: var(--lh-snug); }
.fallback a { color: var(--brand); overflow-wrap: anywhere; }
/* A second destination that is NOT a second button: a sentence with a link. */
.alt-link { margin: 0 0 var(--space-6); font-size: var(--type-body); line-height: var(--lh-body); }
.email-foot { margin-block-start: var(--space-6); padding-block-start: var(--space-5); border-block-start: var(--hairline) solid var(--border); color: var(--muted); }
.email-foot p { margin: 0 0 var(--space-2); font-size: var(--type-meta); line-height: var(--lh-snug); }
.email-foot p:last-child { margin-block-end: 0; }
.email-foot a { color: var(--brand); }
.email-foot .stream { margin-block-start: var(--space-3); }
.email-foot .stream a { font-weight: var(--weight-announce); }

/* ==========================================================================
   26. MATH KEYPAD
   Folded from the build, 2026-10-27 (answer-check-r13 · .ac-keypad and .ac-key in page CSS),
   renamed for its two users, P06 and P19. Its own keys, not MathLive,
   which needs inline styles the CSP refuses. A key types what a laptop
   keyboard would (/ for a fraction, ^ for a power), and the field's
   Preview typesets it. The keys a problem doesn't need are left out, not
   disabled (P19); a disabled key is one that can't act at the caret.
   Modifiers: .keypad-key--next, .keypad-key--wide.
   ========================================================================== */

.keypad {
  flex: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-2);
  margin: var(--space-3) calc(-1 * var(--gutter)) 0;
  padding: var(--space-3) var(--gutter) calc(var(--space-4) + env(safe-area-inset-bottom, 0px));
  background: var(--bg);
  border-block-start: var(--hairline) solid var(--border);
}
.keypad-key {
  display: flex;
  align-items: center;
  justify-content: center;
  min-inline-size: var(--tap-min);
  min-block-size: max(var(--tap-min), var(--tap));
  padding: var(--space-1);
  background: var(--surface);
  border: 0;
  border-radius: var(--radius-control);
  color: var(--fg);
  font-size: var(--type-key);
  font-weight: var(--weight-ui);
  line-height: 1;
}
.keypad-key .katex { font-size: 1em; color: var(--fg); }
.keypad-key:hover, .keypad-key:active, .keypad-key.is-hover, .keypad-key.is-active { background: var(--surface-sunk); }
.keypad-key:disabled { background: var(--surface); color: var(--border-strong); cursor: default; }
.keypad-key--next .katex { font-size: 1.1em; }
.keypad-key--wide { grid-column: 1 / -1; }
html.is-large-text .keypad { position: static; margin-block-start: var(--space-3); padding-block-end: calc(var(--space-3) + env(safe-area-inset-bottom, 0px)); }

/* === BUILD MODIFIERS (below this line; notes for Tess §2) === */
/* 17 §15.5 (catalogue-walkthrough-r3 · midpoint-step … partition-step): the plane's geometry strokes,
   the mock's own: the legs' and a perpendicular's dash (in --brand, heavier, when they're the step's),
   a line's arrowhead fill, and the thin partition and parallel ticks. */
.f-ink-dash { fill: none; stroke: var(--fg); stroke-width: 1.5; stroke-dasharray: 6 4; stroke-linecap: round; }
.f-hi-dash3 { fill: none; stroke: var(--brand); stroke-width: 3; stroke-dasharray: 6 4; stroke-linecap: round; }
.f-fill { fill: var(--fg); stroke: none; }
.f-thin { fill: none; stroke: var(--fg); stroke-width: 1.25; stroke-linecap: round; }
/* A104 (Tess, capture-r25, _a104-handoff §12.7): a row's state as one line at the BODY size, its
   glyph beside the words so the state is never colour alone: a page reading, a PDF page in My
   library, a queued capture (StateLine.tsx). `.prob-flag`'s anatomy one rank up; --sm is .prob-flag.
   A row's button (Retake) is the line's sibling, never inside it: the status text is the 05 string. */
.state-line { display: flex; align-items: flex-start; gap: var(--space-2); margin: 0; color: var(--fg); font-size: var(--type-body); line-height: var(--lh-snug); }
.state-line > .ico { flex: none; margin-top: 0.1em; color: var(--muted); }
.state-line--ok > .ico { color: var(--success); }
.state-line--bad > .ico { color: var(--warn); }
.state-line--sm { font-size: var(--type-meta); }
.state-line--sm > .ico { inline-size: var(--ico-sm); block-size: var(--ico-sm); }
/* §12.8: the shared progress dots, a shape beside the word (the word carries the state). STILL by
   default (P07's first rule: a reading screen never only moves); .dots--live breathes, as the
   skeleton does (V18), and only when the student hasn't asked for reduced motion. */
.dots { display: inline-flex; flex: none; align-items: center; gap: 0.2em; margin-inline-start: var(--space-1); }
.dots > i { inline-size: 0.3em; block-size: 0.3em; border-radius: var(--radius-pill); background: var(--border-strong); }
.state-line > .dots { align-self: center; }
@media (prefers-reduced-motion: no-preference) {
  .dots--live > i { animation: skel-pulse 1600ms ease-in-out infinite alternate; }
  .dots--live > i:nth-child(2) { animation-delay: 200ms; }
  .dots--live > i:nth-child(3) { animation-delay: 400ms; }
}
/* P19 (Tess, 11-19, after #1656): at 200% text on a phone the pad's five tabs ran into each other
   ("FuncTrigs Symbol"): the 44px floor let each shrink below its label. At 200% a tab is never
   narrower than its label, and the tabs wrap onto a second row rather than hide one off the edge.
   The key screen's matrix card keeps its own sideways scroll (UI 3, below). */
html.is-large-text .keypad-tabs { flex-wrap: wrap; }
html.is-large-text .keypad-tab { min-inline-size: min-content; }
html.is-large-text .scr-teacher .ak-chg .mxf .keypad-tabs { flex-wrap: nowrap; }
/* desktop-r9 (Tess, 11-19): at 200% on a desk the list pane's head and foot left the list a 0px row,
   so the list's padded box ran over the foot, and its chosen row (position: relative) painted over
   "4 of 6 answered" as the list scrolled. The foot stacks above the list, on its own ground. */
.pane-l > .lfoot { position: relative; z-index: 1; background: var(--bg); }
/* P14 (Tess, 11-19, cbdc6ae5d): so at 200% on a desk the list pane scrolls as one. The head scrolls
   away with the rows; the progress, "{n} of {total} answered" and the Submit-waits note sit in the
   flow after the last row, in their 100% order (the foot gives up its box); only the dock's button
   (.lfoot-act) stays stuck at the pane's bottom, on its ground, above the rows. At 100% .lfoot-act
   has no box, so nothing moves. The same rule as homework's Save answer (P19). */
.lfoot-act { display: contents; }
/* A row reaches a gutter past the pane on each side (.scr-list .prow), which a scroller would clip
   (the chosen row’s edge): the pane pads its start by the gutter, and the stuck button’s box spans
   the rows’ width so no row shows beside it. */
html.is-large-text .pane-l:has(> .lfoot) {
  display: block; overflow-y: auto; overscroll-behavior: contain;
  margin-inline-start: calc(-1 * var(--gutter)); padding-inline-start: var(--gutter);
}
html.is-large-text .pane-l:has(> .lfoot) > .lscroll { overflow: visible; margin-block-end: 0; padding-block-end: var(--space-3); }
html.is-large-text .pane-l > .lfoot { display: contents; }
html.is-large-text .pane-l > .lfoot > :not(.lfoot-act) { margin-block: var(--space-3) 0; }
html.is-large-text .pane-l > .lfoot > .lfoot-act {
  display: block;
  position: sticky;
  inset-block-end: 0;
  z-index: 1;
  margin: var(--space-3) calc(-1 * var(--gutter)) 0;
  padding: var(--space-3) var(--gutter) var(--space-4);
  background: var(--bg);
  border-block-start: var(--hairline) solid var(--border);
}
/* At 200% an under-13 notice's head scrolls with its body (Sheet headScrolls; Tess A80, n25 P21).
   Inside the scroller a finger on the head must scroll it, and the dialog body's padding is its own. */
.sheet-scroll > .sheet-head, .dlg-body > .dlg-head { touch-action: auto; }
/* The fixed head reaches its ✕ into the gutter (margin-inline-end); inside the scroller that reach
   ran past its box and the scroller clipped the ✕ to a › (UI 1, 11-27, the curriculum picker at 200%). */
.sheet-scroll > .sheet-head { margin-inline-end: 0; }
/* #1941 (UI 2): a head's title block (title over its line) can shrink, and a long word in it ("homework_mode",
   an email) breaks, so the close button stays in the sheet. */
.sheet-head > div { min-inline-size: 0; overflow-wrap: anywhere; }
.dlg-body > .dlg-head { padding: 0 0 var(--space-4); }
/* P19 "Several things at once" (sequence_parts; Algebra 2 8.1–8.3): "the first five terms are one row
   of five cells labelled a₁ to a₅". A field's 4.5em floor stacked four or more; a row of four to six
   labelled-above cells shares the row evenly, never under the tap floor (five fit at 320). Large
   text still stacks them, as every row of cells. */
.scr-shapes :is(.ac-rows--4, .ac-rows--5, .ac-rows--6) .ac-cells--lab .ac-cell { flex: 1 1 0; min-inline-size: 0; }
.scr-shapes :is(.ac-rows--4, .ac-rows--5, .ac-rows--6) .ac-cells--lab .ac-field { min-inline-size: var(--tap-min); padding-inline: var(--space-1); }

/* WCAG 2.4.11 (UI 1, #1625; Tess 11-18): at 200% the answer check's foot sticks to the sheet's
   bottom (html.is-large-text .scr-check .ac-foot), so the scroller pads its end by the foot's
   measured height (AnswerCheck's clearFoot) and a focused field scrolls in above it, not under. */
html.is-large-text .sheet-scroll { scroll-padding-block-end: var(--ac-foot-h, 0px); }
/* P19 (Tess, 11-18; #1627's follow-up): at 200% the check's foot sits flush at the bottom of the
   screen. The sheet's own bottom padding and its scroller's went under the stuck foot (72px of the
   sheet showing below it at 200%), so the check's sheet drops both; the foot keeps its own padding
   and the safe-area inset, and the keypad under the form keeps its own when scrolled to. */
html.is-large-text .sheet:has(> .sheet-scroll > .scr-check) { --sheet-pad-b: 0px; }
html.is-large-text .sheet-scroll:has(> .scr-check) { padding-block-end: 0; }
/* …and the stuck foot is the sheet's ground, so a field scrolled under it doesn't show through. */
html.is-large-text .scr-check .ac-foot { background: var(--bg); }
/* P19 (Tess on #1656, bcc32a09d): on homework at 200% with the teacher's Check on, the foot held
   Check, its line and Save answer, 401px of a 448px scroller on a 375 × 700 phone. Only Save answer
   stays stuck: the foot gives up its box (display: contents), so Check and its line sit in the
   form's flow after the fields, in the 100% order, and Save's own box (.ac-save) takes the foot's
   stuck place, padding and safe-area inset. At 100% .ac-save has no box, so nothing moves. */
.scr-check .ac-save { display: contents; }
html.is-large-text .scr-check .ac-foot--hw { display: contents; }
html.is-large-text .scr-check .ac-foot--hw > .ac-save {
  display: block;
  position: sticky;
  inset-block-end: 0;
  z-index: 2;
  margin: var(--space-3) calc(-1 * var(--gutter)) 0;
  padding: var(--space-3) var(--gutter) calc(var(--space-3) + env(safe-area-inset-bottom, 0px));
  background: var(--bg);
}
html.is-large-text .scr-check .ac-foot--hw > .ac-save > .btn-primary { margin-block-start: 0; }
/* A screen with no top bar (the beta and member invite landings, the support-email confirm, the
   beta's keep pages, sign-up's codes and done pages, Household): the body is the first item, so it
   takes the flexible row and the dock the one after. In the three rows above it fell into the
   chrome's auto row, grew to its whole content and pushed the dock out of the screen: a beta parent
   saw no button (production, 11-13). A screen's wrapper is no box of its own (.scr-form and
   .scr-acct already aren't; a sign-up page without .scr-form was a block that grew past the
   screen), so its body and dock are the grid's own items. */
.od-screen > .scr-signup { display: contents; }
.od-screen:has(> .body:first-child, > :is(.scr-form, .scr-signup, .scr-acct):first-child > .body:first-child) { grid-template-rows: minmax(0, 1fr) auto; }
/* 200% text: a dock of several actions can be taller than the screen leaves it (Add a student at
   the cap). It keeps to half the screen and scrolls itself, so every action is reachable. */
html.is-large-text .od-screen .dock:not(.dock--inplace) { max-block-size: 50dvh; overflow-y: auto; overscroll-behavior: contain; }
/* Variants the build needed that the mock drew with an inline style. Each
   names where it came from; Tess folds them into the mock copy. Same rules as
   above: tokens only, one component each. */

/* Step 11: the app document is one screen tall, and so is each screen's scope (.scr-walk and the
   rest wrap the app frame, so the mocks' page CSS keeps its own selectors). */
html, body, #root { block-size: 100%; }
.scr { block-size: 100%; }
/* Tess's B1 (11-23): the on-screen keyboard's inset (--kb, set on <html> by watchKeyboardInset) is
   kept clear under the app frame, so a pinned dock (paste, type one problem, sign-in) stands on the
   keyboard rather than under it. A sheet's layer covers the frame's padding box, so the sheet's own
   var(--kb) isn't counted twice. 0 everywhere a keyboard isn't up. */
.app { padding-block-end: var(--kb, 0px); }
/* The sign-in form's Turnstile widget slot (ADR 0015): room only while Cloudflare asks the person to act. */
.bot-check.is-asking { margin-block: var(--space-3); }

/* The answer check scopes itself (.scr-check), wherever it opens: its "There's no solution" row
   keeps the walkthrough mock's full-height row (answer-check-r13 draws it over the walkthrough). */
.scr-check .ac-none { display: flex; align-items: center; gap: var(--space-3); min-block-size: var(--tap); cursor: pointer; }
.scr-check .ac-none input { flex: none; inline-size: var(--control-size); block-size: var(--control-size); margin: 0; accent-color: var(--brand); }

/* P19 (Tess, 2026-10-27): what's typed in an answer cell is math at --math-field, its fractions
   display-style; the cell grows to fit one and keeps its 48px (--tap) floor. */
.scr-check .ac-prev { font-size: var(--math-field); line-height: var(--lh-tight); }
.scr-check .ac-field { block-size: auto; }
/* P19 "Your graph" (Tess, 2026-11-24; Refero R6): the student's own entry drawn live, under the
   line and above the first fields. Ink only: their marks --fg, the axes --border-strong, a hatch for
   shading, no accent and no green or red. A number line is 64px tall at 375; a plane is square,
   at most 200px (240px on a wide sheet). While a phone's pad is up it's one muted line of words. */
.scr-check .yg { margin-block-start: var(--space-3); container-type: inline-size; }
.scr-check .yg svg { display: block; inline-size: 100%; overflow: visible; }
.scr-check .yg--line svg { block-size: 64px; }
.scr-check .yg--plane svg { inline-size: min(100%, 200px); block-size: auto; aspect-ratio: 1; margin-inline: auto; }
@container (min-width: 600px) { .scr-check .yg--plane svg { inline-size: min(100%, 240px); } }
.scr-check .yg-axis { fill: none; stroke: var(--border-strong); stroke-width: 1.25; }
.scr-check .yg-thin { fill: none; stroke: var(--fg); stroke-width: 1; }
.scr-check .yg-ink, .scr-check .yg-heavy { fill: none; stroke: var(--fg); stroke-width: 2.5; stroke-linecap: round; }
.scr-check .yg-dash { stroke-dasharray: 6 4; stroke-linecap: butt; }
.scr-check .yg-fill { fill: var(--fg); stroke: none; }
.scr-check .yg-open { fill: var(--bg); stroke: var(--fg); stroke-width: 2; }
.scr-check .yg-hatch { stroke: var(--fg); stroke-width: 1; opacity: 0.35; }
.scr-check .yg-lbl { fill: var(--fg); font-family: var(--font-ui); font-size: 13px; }
.scr-check .yg-said { margin: var(--space-3) 0 0; max-inline-size: var(--measure); color: var(--muted); font-size: var(--type-meta); line-height: var(--lh-snug); }
/* P14 (Tess, 2026-10-27): the failed panel's title is an H2 under the page's H1, drawn at the size
   worksheet-r12's H3 had (the practice limit uses the same panel). */
.scr-list .failed .callout-t { font-size: var(--type-section); }
/* P03: a Repwise library sheet's words in its preview: shared ones once, mixed ones on their rows. */
.scr-home .lib-instr { margin: var(--space-4) 0 0; color: var(--muted); font-size: var(--type-meta); line-height: var(--lh-snug); text-wrap: pretty; }
.scr-home .lib-prob-instr { margin: 0 0 var(--space-1); color: var(--muted); font-family: var(--font-ui); font-size: var(--type-meta); font-weight: var(--weight-announce); line-height: var(--lh-snug); }
/* P03: a Repwise library problem's own words, above its math on the worksheet's row. */
.scr-list .prow-instr { margin: 0 0 var(--space-1); color: var(--muted); font-size: var(--type-meta); font-weight: var(--weight-announce); line-height: var(--lh-snug); }

/* P04 (step 12): the live camera is a <video> in .cam-feed, where capture-r12 draws a still. The
   phone's camera well holds it too; only a webcam's preview is mirrored, never a rear camera's. */
.scr-capture .cam-feed video { display: block; inline-size: 100%; block-size: 100%; object-fit: cover; }

/* The catalogue's choice answer (answer-check-shapes-r1 · choice-entry): three options don't fit one
   segmented row at 375 (the frame overlaps them too; a note for Tess), so three or more stack, one
   per line. Fewer stay side by side, each on one line, while they fit; once one doesn't, and always
   at 200% text, they stack too (A74, Tess 11-21: SegRow measures them unwrapped). Stacked or in
   columns, an option wraps its words. */
.scr-shapes .ac-seg-row--stack .seg-opt,
.scr-shapes .ac-seg-row--cols .seg-opt { white-space: normal; }
.scr-shapes .ac-seg-row--stack { flex-direction: column; }
.scr-shapes .ac-seg-row--stack .seg-opt { justify-content: flex-start; gap: var(--space-2); }
/* A fieldset is min-content wide by default: options kept on one line would widen it past the screen
   rather than overflow, and SegRow could never tell they don't fit. */
.scr-shapes .ac-seg { min-inline-size: 0; }
/* Naming a polynomial's two sets (P19, Tess 11-11): two columns from 360px, filled left to right so
   the order holds; stacked below that and at 200% text, where the labels would crowd. */
@container screen (min-width: 360px) {
  .scr-shapes .ac-seg-row--cols { display: grid; grid-template-columns: 1fr 1fr; }
}
html.is-large-text .scr-shapes .ac-seg-row--cols { display: flex; }
.scr-shapes .ac-seg-row--cols .seg-opt { text-align: start; }
/* A choice disabled (by a tick that stands for the whole answer, P19 l.361) dims as a disabled cell
   does: muted words, no hover or press, its pick outlined in the border colour (Tess, 11-20). */
.seg-opt:has(input:disabled) { color: var(--muted); cursor: default; }
.seg-opt:has(input:disabled) input { cursor: default; }
.seg-opt:has(input:disabled):hover, .seg-opt:has(input:disabled):active { background: none; }
.seg-opt:has(input:disabled:checked) { background: var(--surface); box-shadow: inset 0 0 0 var(--hairline) var(--border); color: var(--muted); }
/* The digit picker (17 §18.65; Tess, 11-21): which digit the page underlines, one button a digit,
   each at least the tap size square, in the seg well's look. They wrap rather than slide. */
.dpick-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); padding: var(--space-1); background: var(--surface); border-radius: var(--radius-control); }
.dpick-opt { min-inline-size: var(--tap); min-block-size: var(--tap); padding: var(--space-1); border: 0; border-radius: calc(var(--radius-control) - 2px); background: transparent; color: var(--fg); font: inherit; font-variant-numeric: tabular-nums; font-weight: var(--weight-ui); cursor: pointer; }
.dpick-opt:not([aria-checked="true"]):hover { background: var(--bg); }
.dpick-opt:active { background: var(--surface-sunk); }
.dpick-opt[aria-checked="true"] { background: var(--brand-wash); box-shadow: inset 0 0 0 2px var(--brand); color: var(--brand); font-weight: var(--weight-announce); text-decoration: underline; text-underline-offset: 0.2em; }
.dpick-opt:focus-visible { outline: var(--focus-w) solid var(--focus); outline-offset: var(--focus-off); }
.dpick .lbl { margin-block: var(--space-3) var(--space-2); }
/* §18.65: the digits in groups of three that never break inside, the point drawn between its groups
   (Tess's audit, 11-22; capture-r21's .dig-grp / .dig-sep). */
.dpick-grp { display: inline-flex; flex-wrap: nowrap; align-items: center; gap: var(--space-2); }
.dpick-sep { padding-inline: 1px; color: var(--muted); font-family: var(--font-math); font-size: var(--math); line-height: 1; }
/* G5: a screen outside the core loop is a centred column on a wide screen, about 640px for forms
   and flows (#149: the sign-in chooser ran 1,232px wide at 1280). The body and the dock pad out
   to --form-col; a phone keeps its gutters (below 640px plus the gutters, the padding is the
   gutter). Not --screen-col: .app sets that inside its own `screen` container query, which never
   applies to the container itself, so it stays 100% (UI 2 found it, 2026-10-29; noted for Tess).
   The mocks draw phones only, so this is the build's. A template's scope sits inside the app
   frame, around its chrome, body and dock; display: contents keeps those the frame's three rows
   while the scope's selectors still apply. */
.scr-form { --form-col: 640px; display: contents; }
.scr-form .body,
.scr-form .dock { padding-inline: max(var(--gutter), calc((100% - var(--form-col)) / 2)); }

/* home-r19 · empty (P02): the kit's .callout-t takes grid column 2 of the callout, but inside
   .see-block, a one-column grid, that makes an implicit second column and squeezes the lines
   after it into the first (the mock draws it so; noted for Tess). The heading stays in the block's
   one column. */
.scr-home .see-block > .callout-t { grid-column: auto; }

/* G5 (step 13d-2b), desktop-r8 · desktop-home: from 1024px Home is a dashboard, 1200px wide, in two
   columns (7:5). "Add a worksheet" moves from the dock into the bar, beside the gear after the
   lockup, and the bar is ruled. Below that, one column in the same order, with the dock. */
.home-bar .tb-add { display: none; }
/* Behind an open sheet the bar's Add a worksheet demotes to outlined, as the dock's does (G7;
   desktop-r8 · .app.is-under .tb-action). */
.app.is-under .home-bar .tb-add {
  background: transparent;
  color: var(--brand);
  border: var(--hairline) solid var(--border-strong);
  box-shadow: none;
}
.app.is-under .home-bar .tb-add:active { background: var(--surface-sunk); transform: none; }
/* A section inside a capability gate's wrapper (`GatedRegion`) keeps the space it would have
   unwrapped: it's first in the wrapper, not on the page (Home's Look again). */
* + [data-cap] > .sec:first-child { margin-block-start: var(--space-6); }
@container screen (min-width: 1024px) {
  .app:has(.home-cols) > * { --screen-col: 1200px; }
  .home-cols {
    display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: var(--space-7); align-items: start;
  }
  .home-r > :first-child { margin-top: 0; }
  .app:has(.home-cols) > .dock { display: none; }
  .chrome.home-bar { border-block-end: var(--hairline) solid var(--border); }
  .home-bar .od-fill { display: none; }
  .home-bar .tb-add {
    display: inline-flex; flex: none; inline-size: auto;
    min-block-size: var(--tap); padding-inline: var(--space-4);
  }
}

/* One of two screens in the same frame (P20: a session problem and its walkthrough). The one not
   showing stays mounted, `hidden`, so Back to my answer finds the answer and its result as left;
   display: contents keeps the shown one's chrome, body and dock the frame's three rows. */
.od-pane { display: contents; }

/* P20: an answer check drawn in the page is the screen's own body, foot and keypad
   (study-session-r7 · entry, right): its wrappers step aside so those are the frame's rows (the
   keypad takes an implicit last row), and the scroll is padded as a body, not as a sheet's. */
.ac-inline, .ac-inline > .scr-check, .ac-inline form { display: contents; }
.ac-inline .scr-check .ac-scroll { margin: 0; padding: var(--space-5) var(--gutter) var(--space-7); }
/* P20 (Tess, 11-21; study-session-r8, its syncShort: .app.is-short). In the page the body scrolls
   between the top bar and the pad while every answer cell and its label can show whole there; when
   one can't (320 × 568, measured by AnswerCheck's InlineFrame: .ac-inline.is-short) and always at
   200% text, the whole screen scrolls: the top bar stuck at the top, the body, then the keypad, then
   the foot stuck at the bottom. At 200% the answer check's scroll gives up its overflow so a sheet
   can take it; in the page nothing did, and a session's cells couldn't be reached (UI 3, 11-21). The
   mock's .scr-session .app rules never match here (the screen's .app holds .scr-session). */
:is(html.is-large-text .app, .app:has(.ac-inline.is-short)):has(.ac-inline .ac-foot) {
  display: flex; flex-direction: column; overflow-y: auto; overscroll-behavior: contain;
  /* WCAG 2.4.11, as the sheet's (#1625): a focused field scrolls in clear of the stuck top bar and
     foot, by their measured heights (AnswerCheck's clearFoot; UI 4's pre-beta sweep, 11-27). */
  scroll-padding-block: var(--ac-chrome-h, 0px) var(--ac-foot-h, 0px);
}
:is(html.is-large-text .app, .app:has(.ac-inline.is-short)):has(.ac-inline .ac-foot) > .chrome {
  flex: none; position: sticky; inset-block-start: 0; z-index: 6;
}
:is(html.is-large-text .ac-inline, .ac-inline.is-short) form > * { flex: none; }
:is(html.is-large-text .ac-inline, .ac-inline.is-short) .scr-check .ac-scroll { overflow: visible; min-block-size: 0; padding-block-end: var(--space-5); }
/* 200% text drops the answer check's own gutter (§ answer check, html.is-large-text .scr-check
   .ac-scroll: in a sheet, the sheet's padding is the gutter). In the page nothing else pads it, so a
   session's problem and cells ran to the screen's edge (UI 4's pre-beta sweep, 11-27: x 0 at 375).
   The body's gutter again, and from 600px G5's centred column (--screen-col is 100% below it); the
   foot's own 200% padding (§ answer check) outranked G5 the same way, so its Check ran full width. */
html.is-large-text .ac-inline .scr-check :is(.ac-scroll, .ac-foot) { padding-inline: max(var(--gutter), calc((100% - var(--screen-col)) / 2)); }
:is(html.is-large-text .ac-inline, .ac-inline.is-short) .scr-check .keypad { order: 1; }
:is(html.is-large-text .ac-inline, .ac-inline.is-short) .scr-check .ac-foot {
  order: 2; position: sticky; inset-block-end: 0; z-index: 5; margin-inline: 0;
}

/* G5 (step 13d-2a): from 600px every app screen is a centred column, --screen-col wide (640px; a
   dashboard widens it on desktop). The top bar, the body, the dock and the rows a screen adds to
   them (an answer check's foot and keypad in the page, the update notice) pad out to it, so their
   grounds and rules stay full width while what's in them lines up. Below 600px, the phone's
   gutters as before. The console is a `.app` of its own (no `.od-screen`) and keeps its layout. */
@container screen (min-width: 600px) {
  .app.od-screen :is(.body, .dock, .ac-foot, .notify, .install--bar, .place--bar),
  .app.od-screen .ac-inline .keypad {
    padding-inline: max(var(--gutter), calc((100% - var(--screen-col)) / 2));
  }
  .app.od-screen .topbar {
    padding-inline: max(var(--space-2), calc((100% - var(--screen-col)) / 2));
  }
}
/* In the page, the keypad is a row of the frame: it doesn't reach past its own edges as a sheet's does. */
.ac-inline .keypad { margin-inline: 0; }
/* Matrix homework (UI 3, 11-11): the answer check's matrix field in the key screen's Change card.
   Its pad is a band across the card (the page's ground, so its keys show), never past the card's
   edges as a sheet's foot is; in a card at 375 its tabs scroll rather than run into each other. */
.scr-teacher .ak-chg .mxf .keypad { margin-inline: calc(-1 * var(--space-4)); padding-inline: var(--space-2); }
.scr-teacher .ak-chg .mxf .keypad-tabs { overflow-x: auto; scrollbar-width: none; }
.scr-teacher .ak-chg .mxf .keypad-tab { flex: 0 0 auto; }
/* P24 (Tess, 11-11, from M9): the Change card's pad is never narrower than the student's. Below 375,
   and at 200% text on a phone, the card's inset leaves too little room for five keys at the tap floor,
   so the pad spans the row: out past the problem-number column (2.5rem and its gap) to the screen's
   gutters. It keeps the answer check's five columns. (M9's frame clips 8-10px there; this follows
   the rule, not the frame.) */
@container screen (max-width: 374px) {
  .scr-teacher .ak-chg .mxf .keypad {
    margin-inline: calc(-1 * (var(--space-4) + var(--hairline) + 2.5rem + var(--space-3)))
      calc(-1 * (var(--space-4) + var(--hairline)));
  }
}
@container screen (max-width: 599px) {
  html.is-large-text .scr-teacher .ak-chg .mxf .keypad {
    margin-inline: calc(-1 * (var(--space-4) + var(--hairline) + 2.5rem + var(--space-3)))
      calc(-1 * (var(--space-4) + var(--hairline)));
  }
}

/* G5 (step 13d-2c), desktop-r8: from 1024px the core loop is two panes inside ~1200px, the list on
   the left (about 380px, scrolling on its own) and the choice or the walkthrough on the right
   (its column at most 720px). The screen draws them only when it's that wide (useWide). */
@container screen (min-width: 1024px) {
  .app:has(.panes) > * { --screen-col: 1200px; }
}
.panes-main {
  min-block-size: 0; overflow: hidden;
  padding-inline: max(var(--gutter), calc((100% - var(--screen-col, 100%)) / 2));
}
.panes {
  block-size: 100%; display: grid;
  grid-template-columns: clamp(360px, 30%, 400px) minmax(0, 1fr); gap: var(--space-6);
}
/* Tess's staging audit (2026-11-02), desktop-r9: from 1024px the student dashboards' 1200px column
   keeps the mock's own --space-6 gutter inside it, so at 1280 the content starts 72px in. It
   started at 40: the centring margin replaced the gutter instead of adding to it. Home's body and
   the two panes. */
@container screen (min-width: 1024px) {
  .app.od-screen:has(.home-cols) .body,
  .panes-main {
    padding-inline: calc(max(0px, (100% - var(--screen-col, 100%)) / 2) + var(--space-6));
  }
}
.pane-l {
  display: grid; grid-template-rows: auto minmax(0, 1fr); grid-template-columns: minmax(0, 1fr);
  min-block-size: 0; min-width: 0;
  border-inline-end: var(--hairline) solid var(--border);
  padding-inline-end: var(--space-5); margin-inline-end: calc(-1 * var(--space-3));
}
.lhead { padding-block: var(--space-5) var(--space-3); border-block-end: var(--hairline) solid var(--border); }
.lhead .sec-h { margin: 0; }
.lhead .progress { display: block; margin-block-start: var(--space-3); border-radius: var(--radius-pill); }
.lhint { margin-block-start: var(--space-3); }
.lkeys { font-family: var(--font-ui); font-weight: var(--weight-announce); color: var(--fg); }
.lscroll {
  overflow-y: auto; overscroll-behavior: contain; min-block-size: 0;
  padding-block: var(--space-3) var(--space-6);
  padding-inline: var(--space-2); margin-inline: calc(-1 * var(--space-2));
}
.pane-r {
  position: relative; display: grid; grid-template-rows: auto minmax(0, 1fr) auto;
  grid-template-columns: minmax(0, 1fr); min-block-size: 0; min-width: 0;
}
.rscroll { overflow-y: auto; overscroll-behavior: contain; min-block-size: 0; padding-block: var(--space-5) var(--space-7); }
.wcol { max-inline-size: 720px; min-width: 0; }
.rhead { padding-block: var(--space-5) var(--space-3); }
.rhead-t {
  margin: 0; font-family: var(--font-display); font-size: var(--type-section);
  font-weight: var(--weight-announce); line-height: var(--lh-tight);
}
.rhead-s { margin: var(--space-1) 0 0; color: var(--muted); font-size: var(--type-meta); line-height: var(--lh-snug); }
/* The head takes the focus when a state replaces the pane (Tess, 2026-10-29); it isn't a control. */
.rhead-t:focus { outline: none; }
.rempty { margin: 0; color: var(--muted); text-wrap: pretty; }
.pane-r .ways, .pane-r .way-quiet { max-inline-size: 480px; }

/* P15's Why panel (Jeff, 2026-11-20): the How panel's head and surface; its body is reading text.
   Hand CSS, so above the generated screen layouts (a regenerate drops anything inside them). */
.scr-walk .why-body { display: grid; gap: var(--space-1); padding: 0 var(--space-4) var(--space-4); animation: rise-in var(--dur-enter) var(--ease-out); }
.scr-walk .why-body[hidden] { display: none; }
/* R5 (Tess, 2026-11-24, P15): Spot me's first tap, a nudge: one muted line under the result with the
   spot mark. Under reduced motion there's no pulse; the marks' underlines thicken while it shows. */
.scr-walk .nudge { display: flex; align-items: flex-start; gap: var(--space-2); margin: var(--space-2) 0 0; max-inline-size: var(--measure); color: var(--muted); font-size: var(--type-hint); line-height: var(--lh-snug); }
.scr-walk .nudge:empty { margin: 0; }
.scr-walk .nudge-text { min-inline-size: 0; overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scrollbar-width: none; }
.scr-walk .nudge-ico { flex: none; inline-size: 1.1em; block-size: 1.1em; margin-block-start: 0.15em; }
/* R5 (Tess A88, 200%): the step card head wraps, so Q1's back link never runs past a 375 screen in large text. Outside the generated block: walkthrough-r27 draws it unwrapped. */
.scr-walk .cur-head { flex-wrap: wrap; }
@media (prefers-reduced-motion: reduce) {
  .scr-walk .step-res.is-nudged .mfit .mk { border-block-end-width: calc(var(--edge-strong) * 2); }
}
.scr-walk .why-ai { margin: 0; }
.scr-walk .why-text { margin: 0; }
/* G5 (step 13d-2c-2), desktop-r8 · desktop-walkthrough: the walkthrough as the right pane. Its
   wrapper only carries the screen's classes; the head (with the progress rule), the body and the
   action row (the phone's dock) are the pane's own rows. */
.walk-pane { display: contents; }
/* Yours sits in the column, not out to the phone's edges (desktop-r8's .rscroll > .yband). */
.walk-pane.scr-walk .yband { margin: 0 0 var(--space-5); }
.rtop .progress { display: block; }
.arow { padding-block: var(--space-4) var(--space-5); border-block-start: var(--hairline) solid var(--border); background: var(--bg); }
.arow-in { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); }
.arow-in--stack { flex-direction: column; align-items: flex-start; }
.arow :is(.btn-primary, .btn-spot) { inline-size: auto; flex: 0 1 auto; }
.arow .dock-note { flex-basis: 100%; margin: 0; }
/* Under a sheet the row's primary steps back, as the dock's does (gate 6). */
.app.is-under .arow .btn-primary {
  background: transparent; color: var(--brand); box-shadow: none;
  border: var(--hairline) solid var(--border-strong);
}
.app.is-under .arow .btn-primary:active { background: var(--surface-sunk); transform: none; }

/* G5 (step 13d-2c-3), desktop-r8 · desktop-check, desktop-spotme, desktop-laptop: Check my answer
   and Spot me open as a side panel in the right pane (Sheet's `panel`), 400px from 1240px with the
   walkthrough still usable beside it; below that, and in large text, the panel is the whole pane and
   the rows it covers are hidden, so a keyboard can't reach them. While the check is open it owns the
   next action, so the row's primary steps back. */
.pane-r { --panel-w: 400px; }
.walk-pane > .panel {
  position: absolute; inset-block: 0; inset-inline-end: 0; z-index: 4;
  --gutter: var(--space-5);
  inline-size: var(--panel-w); max-inline-size: 100%;
  display: flex; flex-direction: column; overflow: hidden;
  /* It slides over the page, so unlike a console panel it keeps its edge. */
  border-inline-start: var(--hairline) solid var(--border-strong);
  animation: panel-in var(--dur-enter) var(--ease-out);
}
@keyframes panel-in { from { transform: translateX(100%); } to { transform: none; } }
/* It takes the focus when it opens, as a sheet does (.sheet:focus). */
.walk-pane > .panel:focus { outline: none; }
.walk-pane > .panel > .sheet-inner { padding: 0 var(--gutter) var(--space-5); }
.walk-pane > .panel .sheet-head { padding-block-start: var(--space-3); }
.walk-pane > .panel .sheet-scroll {
  margin-inline: calc(-1 * var(--gutter)); padding: var(--space-4) var(--gutter) var(--space-3);
}
.pane-r:has(> .walk-pane > .panel) :is(.rtop, .rscroll, .arow) {
  padding-inline-end: calc(var(--panel-w) + var(--space-6));
}
.pane-r:has(> .walk-pane > .panel) .wcol { max-inline-size: 100%; }
.pane-r:has(> .walk-pane > .panel) .way--accent {
  border: var(--hairline) solid var(--border-strong); background: var(--bg); color: var(--fg); box-shadow: none;
}
.pane-r:has(> .walk-pane > .panel) .way--accent .way-h { color: var(--muted); }
.pane-r:has(> .walk-pane > .panel) .way--accent:active { transform: none; background: var(--surface-sunk); }
.pane-r:has(> .walk-pane > .panel .scr-check) .arow .btn-primary {
  background: transparent; color: var(--brand); box-shadow: none;
  border: var(--hairline) solid var(--border-strong);
}
.pane-r:has(> .walk-pane > .panel .scr-check) .arow .btn-primary:active { background: var(--surface-sunk); transform: none; }
/* desktop-r9 · desktop-homework-answer: homework's answer panel owns the next action, so the list
   pane's dock (Answer problem {n}, Submit homework) steps back too. */
.panes:has(> .pane-r > .walk-pane > .panel .scr-check) .lfoot .btn-primary {
  background: transparent; color: var(--brand); box-shadow: none;
  border: var(--hairline) solid var(--border-strong);
}
.panes:has(> .pane-r > .walk-pane > .panel .scr-check) .lfoot .btn-primary:active { background: var(--surface-sunk); transform: none; }
@container screen (max-width: 1239px) {
  .pane-r { --panel-w: 100%; }
  .pane-r:has(> .walk-pane > .panel) :is(.rtop, .rscroll, .arow) { padding-inline-end: 0; visibility: hidden; }
}
html.is-large-text .pane-r { --panel-w: 100%; }
html.is-large-text .pane-r:has(> .walk-pane > .panel) :is(.rtop, .rscroll, .arow) { padding-inline-end: 0; visibility: hidden; }

/* Step 15 (ADR 0300): the console is admin-r32's layout (.scr-console, generated below). The
   page itself is the container the mock's artboard was, so its width steps (1150, 1400) apply. */
.scr-console { container-type: inline-size; container-name: art; min-block-size: 100%; }
.scr-console > .app { min-block-size: 100%; }
/* Step 16 (Tess, 11-05): the organisation admin's screens are org-admin-r23's layout (.scr-org,
   generated below); the page is the container its artboard was, so its 599px block applies. */
.scr-org { container-type: inline-size; container-name: art; }
/* The skip link, once focused, is a full target (gate 5); admin-r32 draws it 40px tall. */
.scr-console .app > .skip:focus { min-block-size: var(--tap); }
/* P29 (Tess, 11-06): before the beta's first full week, a headline share says
   console.beta.no_weeks in its figure's place; .fig-v doesn't wrap, so at 375 the sentence ran out
   of its panel. Words in a figure's place wrap (the "Not measured yet" figures too). */
.scr-console .bh-none { display: block; white-space: normal; text-wrap: pretty; }
/* #1941: a figure never wraps, and at 375 with 200% text "$1,284.50" outgrew half the strip; a column
   is at least 9em, so large text drops the strip to one column and normal text keeps two. */
@container art (max-width: 560px) {
  .scr-console .figs { grid-auto-flow: row; grid-template-columns: repeat(auto-fit, minmax(min(100%, 9em), 1fr)); }
}
/* T27 Account detail (Tess's drift list, 11-11): a row's value and its action read as two things,
   never "Repwise codesChange". admin-r35 sets a row's button under its value (.kv-v > .btn), so the
   44px target never pushes the value down off its label's line. */
.scr-console .kv-row .link-btn { display: flex; inline-size: fit-content; margin-block-start: var(--space-2); }
/* A panel's title is its head's one line: no heading margins. admin-r35 resets an h2's; Beta health's
   panels title with an h3. A foot holding only actions sets them at its right. */
.scr-console .panel-title { margin: 0; }
.scr-console .panel-foot > .page-acts:only-child { margin-inline-start: auto; }
/* admin-r35 (A37/A39) lines up paired feet with `.cols > .panel` and the stacked pair's last panel.
   A gated panel sits inside GatedRegion's <section data-gate>, which those child selectors don't
   reach: the wrapper passes the row's stretch on to its panel, whose foot then sits at the bottom. */
.scr-console .cols > [data-gate],
.scr-console .acctpg .cols-wide-left > div > [data-gate]:last-child { display: flex; flex-direction: column; }
.scr-console .acctpg .cols-wide-left > div > [data-gate]:last-child { flex: 1 0 auto; }
.scr-console .cols > [data-gate] > .panel,
.scr-console .acctpg .cols-wide-left > div > [data-gate]:last-child > .panel { flex: 1 0 auto; display: flex; flex-direction: column; }
.scr-console .cols > [data-gate] > .panel > .panel-foot,
.scr-console .acctpg .cols-wide-left > div > [data-gate]:last-child > .panel > .panel-foot { margin-block-start: auto; }
/* The stacked pair (Invoice over Feature flags) sits 16px apart, as admin-r35 spaces it. */
.scr-console .acctpg .cols-wide-left > div:not(.panel):has(> .panel) { gap: var(--space-4); }
/* A panel head's chip keeps its own width: the narrow page-head rule (.page-acts at 100%) would
   squeeze the title onto two lines ("Account / status") beside it. */
.scr-console .acct-panel > .panel-head > .page-acts { flex: none; }
/* T27 at 375 (A35, admin-r33 · account-detail-375): each foot action is full width, one per line.
   This page only; the other console pages follow in Jeff's later pass (Tess, #1214). */
@container art (max-width: 760px) {
  .scr-console .acct-panel .panel-foot > .page-acts { flex: 1 1 100%; }
  .scr-console .acct-panel .panel-foot .btn--inline { inline-size: 100%; flex: 1 1 100%; }
}

/* G5 (desktop-adults-r1, Tess 11-02): from 1024px a settings page sets its section list at the
   left (about 240px, sticky) beside a form column of at most 640px; the screen column widens to
   hold both. ScreenBody draws the list only at that width (SettingsSections), so narrower there's
   nothing to hide. At 200% text it's one column again, the list first. */
@container screen (min-width: 1024px) {
  .app:has(.set-split) > * { --screen-col: calc(240px + var(--space-6) + 640px); }
}
.set-split {
  display: grid; grid-template-columns: 240px minmax(0, 1fr);
  gap: var(--space-6); align-items: start;
}
.set-list { display: grid; gap: var(--space-1); position: sticky; inset-block-start: 0; }
.set-list-h {
  margin: 0 0 var(--space-2); font-size: var(--type-meta); font-weight: var(--weight-announce);
  color: var(--muted);
}
.set-item {
  display: flex; align-items: center; gap: var(--space-3);
  inline-size: 100%; min-block-size: var(--tap); padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-control); color: var(--fg); font-size: var(--type-body);
  font-weight: var(--weight-ui); line-height: var(--lh-snug); text-decoration: none;
}
.set-item .ico { flex: none; inline-size: var(--ico-md); block-size: var(--ico-md); color: var(--muted); }
.set-item:active { background: var(--surface-sunk); }
@media (hover: hover) { a.set-item:hover { background: var(--surface); } }
.set-item:focus-visible { outline: var(--focus-w) solid var(--focus); outline-offset: var(--focus-off); }
.set-item.is-cur {
  background: var(--surface-sunk); box-shadow: inset var(--edge) 0 0 var(--fg);
  font-weight: var(--weight-announce);
}
.set-item.is-cur .ico { color: var(--brand); }
.set-form { max-inline-size: 640px; min-inline-size: 0; }
html.is-large-text .set-split { grid-template-columns: minmax(0, 1fr); }
html.is-large-text .set-list { position: static; }
html.is-large-text .set-form { max-inline-size: none; }
/* 02 G5 ("a dock becomes buttons in place"), desktop-adults-r1 .d-foot: on a settings page at
   desktop width the dock's actions sit in the form column, under the form (Shell's DockSlot) or at
   its end. No rule, no ground, no safe-area pad and no padding to the column (the body pads it
   already); the buttons their own width, at the end of the line, and wrapping when they don't fit.
   The `dock` class stays, so behind a sheet the primary still demotes (G7). */
.app.od-screen .set-form .dock.dock--inplace {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end;
  gap: var(--space-3); margin-block: var(--space-5) var(--space-6);
  padding: 0; border: 0; background: transparent;
}
.set-form .dock--inplace > :is(.btn-primary, .btn-quiet, .btn, .btn-spot) { inline-size: auto; }
.set-form .dock--inplace > .link-btn { margin: 0; }
/* 02 G5 (Tess, 2026-11-03), desktop-adults-r1 · signin and signup-details: from 1024px a screen
   someone sees before they're in the app (signed out, or partway through signing in or up) is a
   centred card, the form at most 480px, on --surface-sunk, the lockup above it. No chrome (the
   bar's lockup is the one above the card), no pinned dock: its actions sit at the form's end,
   their own width, primary first. AppFrame's `card` turns it on; nothing changes below 1024px. */
@container screen (min-width: 1024px) {
  .app:has(.auth-wrap) .chrome { display: none; }
  /* Centred by auto margins in one row that fills the body (1fr: never shorter than the card), not
     align-content: center. A card taller than the window then starts at the top and scrolls;
     centred content clipped its overflow at the top, where the lockup sat out of reach (#1363's
     follow-up, 11-14). */
  .app.od-screen .body.auth {
    display: grid; grid-template-rows: 1fr; justify-items: center;
    padding: var(--space-7) var(--space-6); background: var(--surface-sunk);
  }
  .app.od-screen .body.auth > .auth-wrap { margin-block: auto; }
}
.auth-wrap { display: grid; justify-items: center; gap: var(--space-5); inline-size: 100%; max-inline-size: 560px; }
.auth-lockup { line-height: 0; }
.auth-lockup .lockup { block-size: 2rem; }
.auth-card {
  inline-size: 100%; padding: var(--space-6);
  border: var(--hairline) solid var(--border); border-radius: var(--radius-card); background: var(--bg);
}
.auth-form { max-inline-size: 480px; margin-inline: auto; }
.app.od-screen .auth-form .dock.dock--inplace {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3);
  margin-block-start: var(--space-5); padding: 0; border: 0; background: transparent;
}
.auth-form .dock--inplace > :is(.btn-primary, .btn-quiet, .btn, .btn-spot) { inline-size: auto; }
.auth-form .dock--inplace > .link-btn { margin: 0; }
html.is-large-text .auth-form { max-inline-size: none; }
/* P21 (A49): a code card's address line, under its rows (account-r25 · student-code). */
.code-where:where(:not(.scr-org *)) { margin-block-start: var(--space-3); color: var(--muted); font-size: var(--type-meta); line-height: var(--lh-snug); overflow-wrap: anywhere; }

/* P21 "Sign-in tabs" (UI 1, 11-14; Tess lifts it into the kit at her next components round): the
   tabs are equal columns in one row while every label fits, else ALL stack in one column, never
   2 + 1. Measured on the form column (`.body` on a phone, the auth card's form from 1024px), in em:
   a container query's rem reads the initial 16px and never fires at 200% (S2 §2.4). The threshold
   lives in this one rule. The selected look is the kit's, keyed to [aria-selected="true"]. */
.scr-signin :is(.body, .auth-form) { container-type: inline-size; container-name: form; }
.scr-signin .seg--tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@container form (max-width: 10.45em) {
  .scr-signin .seg--tabs { grid-template-columns: minmax(0, 1fr); }
}

/* P38 (security-r9): each section's card keeps the next section's head at a section's distance. */
.scr-security .card { margin-block-end: var(--space-6); }

/* 02 G5, desktop-adults-r1 · teacher-home: from 1024px the teacher's Your classes is a dashboard
   inside the page's 1200px wrap: the classes at about two-thirds, with Start a class, past
   classes and the note beside them; below 1024px one column in the same order, as before. */
@container screen (min-width: 1024px) {
  .scr-teacher .tcols {
    display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: var(--space-7); align-items: start;
  }
  .scr-teacher .tside > :first-child { margin-block-start: 0; }
  .scr-teacher .tside .classes { grid-template-columns: minmax(0, 1fr); }
}
html.is-large-text .scr-teacher .tcols { grid-template-columns: minmax(0, 1fr); }

/* 02 G5, desktop-adults-r1 · account-home: from 1024px the holder's account home is a dashboard,
   1200px wide with the gutter inside it (as the student home, #600): the students (and the
   classes) at about two-thirds, the account's summary beside them. The students are cards in a
   grid (the mock's .d-grid); below 1024px, one column of rows in the same order, as before. */
@container screen (min-width: 1024px) {
  .app:has(.acct-cols) > * { --screen-col: 1200px; }
  .app.od-screen:has(.acct-cols) .body {
    padding-inline: calc(max(0px, (100% - var(--screen-col, 100%)) / 2) + var(--space-6));
  }
  .acct-cols {
    display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: var(--space-7); align-items: start;
  }
  .scr-acct .acct-students .card { padding: 0; margin-inline: 0; background: transparent; }
  .scr-acct .acct-students .card > .rows { margin-inline: 0; }
  .scr-acct .acct-students .card > .rows {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: var(--space-4);
  }
  .scr-acct .acct-students .card > .rows > li {
    border: var(--hairline) solid var(--border); border-radius: var(--radius-card);
    background: var(--surface); padding: var(--space-2) var(--space-4);
  }
  .scr-acct .acct-students .card > .rows > li + li { border-top: var(--hairline) solid var(--border); }
  /* A card stacks what a row sets side by side: the name, its line, then the action. */
  .scr-acct .acct-students .row-wide {
    grid-template-columns: minmax(0, 1fr); row-gap: var(--space-2); justify-items: start;
    padding-inline: 0;
  }
  .scr-acct .acct-students .row--two .row-act { text-align: start; }
}
html.is-large-text .acct-cols { grid-template-columns: minmax(0, 1fr); }

/* account-r22 · account-home (.row-main; step 14c-1): a student's name and line open their page,
   the dashboard stays the row's action beside it. */
.scr-acct .row-main {
  display: flex; align-items: center; min-width: 0; min-height: var(--tap);
  padding: var(--space-2) 0; border-radius: var(--radius-control);
  color: inherit; text-align: start; text-decoration: none;
}
.scr-acct .row-main:active { background: var(--surface-sunk); }
@media (hover: hover) {
  .scr-acct .row-main:hover { background: var(--surface-sunk); }
}

/* 16c B2a (UI 2, 2026-11-09): the shared Stepper (components/Stepper.tsx), org-admin-r23's
   tutor-raise-sheet `.stepper` lifted out of `.scr-org`, so it draws in a sheet outside that
   scope. `.stepper--field`, not `.stepper`, so study's own (.scr-home) is untouched. Note for Tess:
   docs/notes-for-tess/2026-11-09-ui2-shared-stepper.md. */
.stepper--field { display: flex; align-items: center; gap: var(--space-3); margin-block-start: var(--field-gap); }
.stepper--field .stepper-b { min-inline-size: var(--tap); justify-content: center; font-size: var(--type-key); line-height: 1; }
.stepper--field .stepper-v { font-size: var(--type-figure); font-weight: var(--weight-announce); font-variant-numeric: tabular-nums; min-inline-size: 2.5ch; text-align: center; }
/* 16c B2a (UI 2, 2026-11-09): a callout's actions, in a row under it (org-admin-r23 · tutor-over
   draws the note, then its btn-row). Behind an open sheet its primary demotes to outlined like the
   dock's (G7), so the accent on the screen is the sheet's. */
.callout-act { margin-block: var(--space-3) var(--space-5); }
.app.is-under .callout-act .btn-primary {
  background: transparent;
  color: var(--brand);
  border: var(--hairline) solid var(--border-strong);
  box-shadow: none;
}
.app.is-under .callout-act .btn-primary:active { background: var(--surface-sunk); transform: none; }

/* UI 2, 2026-11-09: the co-op admin's rail (org-admin-r23 `.layout`). The mock sets --nav-w on its
   page root `.app`, which screens-css doesn't carry, so inside .scr-org the rail's column was
   undefined and the layout fell to one column. The mock's values: 232px, 200px at 1150px and below,
   and 260px for large text. Note for Tess: docs/notes-for-tess/2026-11-09-ui2-org-nav.md. */
.scr-org { --nav-w: 232px; }
@container art (max-width: 1150px) { .scr-org .layout { --nav-w: 200px; } }
html.is-large-text .scr-org { --nav-w: 260px; }
/* #1221 (P34, Tess 11-11): a co-op page is a dashboard, never the phone column (G5). G5's 640px
   column left the rail and the page 360px between them at 1280: figures broke a letter a line and
   the tables scrolled. From 1024px the org shell widens --screen-col to the dashboards' 1200px and
   keeps the mock's own gutter inside it, as Home's columns do. */
/* P34 (Tess, 11-16): inside the co-op shell (RailBody) a page's one action, Help's Contact support
   and Contact's Send, ends the content column at every width, as Organization details ends: no org
   page has a dock. Full width at 375; its own width from 600px, back to full at 200% text. */
.scr-org .main-act { display: grid; margin-block-start: var(--space-6); }
@container art (min-width: 600px) {
  .scr-org .main-act { justify-items: start; }
  .scr-org .main-act .btn-primary { inline-size: auto; min-inline-size: 16rem; }
}
html.is-large-text .scr-org .main-act { justify-items: stretch; }
html.is-large-text .scr-org .main-act .btn-primary { inline-size: 100%; }
@container screen (min-width: 1024px) {
  .app:has(.scr-org) > * { --screen-col: 1200px; }
  .app.od-screen:has(.scr-org) .body {
    padding-inline: calc(max(0px, (100% - var(--screen-col, 100%)) / 2) + var(--space-6));
  }
}

/* UI 1, 2026-11-10: a callout's own link (P08, Jeff: "Check this one" to the first flagged
   problem), on its own line. Note for Tess: docs/notes-for-tess/2026-11-10-ui1-confirm-banner-top.md. */
.callout-link { display: flex; inline-size: fit-content; margin-block-start: var(--space-1); }

/* P23's class homework and the student card (parent-r13 · overview-coop-parent, student-cards;
   Tess's u18, 11-11; parent-r14's u19: Show older, the empty line, the holder's second link), from the mock's own rules. The cards sit on the dashboard's pages and on the
   account pages (Your students), so both scopes. */
.scr-parent .hw-list { list-style: none; margin: 0; padding: 0; }
.scr-parent .hw-list > li + li { border-block-start: var(--hairline) solid var(--border); }
.scr-parent .hw-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-1); padding: var(--space-3) 0; justify-items: start; }
.scr-parent .hw-n { font-weight: var(--weight-ui); line-height: var(--lh-snug); text-wrap: pretty; }
.scr-parent :is(.hw-c, .hw-s) { color: var(--muted); font-size: var(--type-meta); line-height: var(--lh-snug); }
.scr-parent .hw-row > .status { margin-block-start: var(--space-1); }
.scr-parent .hw-more { margin: var(--space-2) 0 0; }
.scr-parent .empty { margin: 0; padding: var(--space-3) 0; color: var(--muted); line-height: var(--lh-snug); max-inline-size: var(--measure); text-wrap: pretty; }
html.is-large-text .scr-parent .hw-row > .status { max-inline-size: 100%; white-space: normal; }
.scr-parent .head:has(+ .pd-roll) { margin-block-end: 0; }
.scr-parent .cols { margin-block-start: var(--space-6); }
@container screen (max-width: 1023px) { .scr-parent .cols { --cols-split: minmax(0, 1fr); } }
.scr-parent .col > .sec { margin-block: 0; }
/* P23 (Tess, 11-12): the dashboard is contained, about 1200px and centred (G5's adult homes), from
   1024px, as the account home's and the org shell's: the gutter inside it. The drill-down
   (.scr-list) stays the reading column. */
@container screen (min-width: 1024px) {
  .app:has(.scr-home.scr-parent) > * { --screen-col: 1200px; }
  .app.od-screen:has(.scr-home.scr-parent) .body {
    padding-inline: calc(max(0px, (100% - var(--screen-col, 100%)) / 2) + var(--space-6));
  }
}
/* parent-r13: the current unit is a card, its worksheets under a rule. */
.scr-parent .pd-unit { padding: var(--space-4) var(--space-4) var(--space-2); }
.scr-parent .pd-unit > .unit-h { margin: 0; }
.scr-parent .pd-unit > .unit-d { margin: var(--space-2) 0 0; }
.scr-parent .pd-unit > .unit-left { margin: var(--space-2) 0 var(--space-3); }
.scr-parent .pd-unit .unit-rule { padding-block-start: var(--space-1); border-block-start: var(--hairline) solid color-mix(in srgb, var(--border-strong) 35%, transparent); }
.scr-parent .pd-roll { margin-block-end: var(--space-5); }
:is(.scr-parent, .scr-acct) .roll-f { display: flex; flex-wrap: wrap; align-items: center; column-gap: var(--space-3); row-gap: var(--space-2); margin: var(--space-2) 0 0; max-inline-size: var(--measure); font-weight: var(--weight-ui); line-height: var(--lh-snug); text-wrap: pretty; }
:is(.scr-parent, .scr-acct) .stu-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-4); }
@container screen (min-width: 600px) { :is(.scr-parent, .scr-acct) .stu-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; } }
@media (hover: hover) { :is(.scr-parent, .scr-acct) .card.card--link:has(.card-link:hover) { background: var(--surface-sunk); } }
/* The dashboard's second link, pressed, is its own press: the card doesn't sink with it, as the hover
   is the card link's only (UI 3's review). The card rests on --surface (measured). */
:is(.scr-parent, .scr-acct) .card.card--link:active:has(.stu-go :active) { background: var(--surface); }
:is(.scr-parent, .scr-acct) .stu-h { margin: 0; font-size: var(--type-body); font-weight: var(--weight-announce); line-height: var(--lh-snug); text-wrap: pretty; }
:is(.scr-parent, .scr-acct) .stu-s { margin: var(--space-1) 0 0; color: var(--muted); font-size: var(--type-meta); line-height: var(--lh-snug); text-wrap: pretty; }
:is(.scr-parent, .scr-acct) .stu-w { margin: var(--space-3) 0 0; line-height: var(--lh-snug); text-wrap: pretty; }
:is(.scr-parent, .scr-acct) .roll-due { min-width: 0; }
.scr-acct .stu-go { margin: var(--space-3) 0 0; }
/* UI 2, 2026-11-11 (Tess's #1182 check): a console page's own form, Request a beta, stacks its
   fields and sizes its labels as Set up a beta's sheet does (the console zeroes a field's top
   margin and makes its label small, for the panels' tight facts). */
.scr-console .page-form .field { margin-block-start: var(--space-5); }
.scr-console .page-form .field:first-child { margin-block-start: 0; }
.scr-console .page-form .field-label,
.scr-console .page-form .field > label { font-size: var(--type-body); }
/* UI 2, 2026-11-11 (Tess's #1182 check): an option row's negative inline margin (its hover reaching
   past the text) overflowed a scrolling sheet by 8px sideways. Inside .sheet-scroll the row sits
   flush. Rule for the mock: `.sheet-scroll .opt-row { margin-inline: 0; }`. */
.sheet-scroll .opt-row { margin-inline: 0; }
/* At 200% the flush row's own padding (16px a side) left an option's label 171px at 375, and a word
   wider than that broke at whatever letter ran out ("Illustrative Mathemati / cs", 197px; UI 1, 11-27,
   the curriculum picker). Large text drops the inline padding inside a sheet's scroller: the radio
   sits on the sheet's gutter like the rest of the sheet and the label gets 203px. Normal size keeps
   the padding (Tess's mock). */
html.is-large-text .sheet-scroll .opt-row { padding-inline: 0; }

/* UI 1, 2026-11-11: the Beta pill (P36 §4, Jeff 11-10): a button beside the lockup on a beta account.
   The button is the 44px target, with nothing drawn on it; the pill (about 48 x 24) is its face, so
   the target is the button's own box (gate 5, 11-13), and its width stays the pill's so it can't
   reach the lockup's link. The focus ring is drawn on the face. It never wraps or shrinks; the
   context chip gives. */
.beta-pill {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  min-block-size: var(--tap-min); min-inline-size: var(--tap-min);
  padding: 0; border: 0; background: none; color: var(--brand);
}
.beta-pill-face {
  display: inline-flex; align-items: center; padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-control); background: var(--brand-wash);
  font-size: var(--type-meta); font-weight: var(--weight-announce); line-height: 1; white-space: nowrap;
}
.beta-pill:focus-visible { outline: none; }
.beta-pill:focus-visible > .beta-pill-face { outline: var(--focus-w) solid var(--focus); outline-offset: var(--focus-off); }
.beta-pill:active > .beta-pill-face { box-shadow: inset 0 0 0 var(--hairline) var(--brand); }
@media (hover: hover) { .beta-pill:hover > .beta-pill-face { box-shadow: inset 0 0 0 var(--hairline) var(--brand); } }
.topbar .beta-pill { margin-inline-start: var(--space-1); }
.site-head .beta-pill { margin-inline-start: calc(var(--space-2) - var(--space-3)); }
/* G7's placement gives the row's free space to the lockup. With a pill right after it, the pill
   takes that space instead, so the pill stays beside the lockup and the rest still ends the row. */
.site-head > .wrap:has(> .acct-wrap) > :first-child:has(+ .beta-pill),
.topbar:has(> .acct-wrap) > :first-child:has(+ .beta-pill) { margin-inline-end: 0; }
.site-head > .wrap:has(> .acct-wrap) > .beta-pill,
.topbar:has(> .acct-wrap) > .beta-pill { margin-inline-end: auto; }
/* Below 360px the lockup, the pill and the account button don't fit on one row. The account button
   joins the context chip's row, so the header stays two rows. The basis keeps the chip off row one. */
@media (max-width: 359px) {
  .site-head > .wrap:has(> .beta-pill) > .ctx-wrap.ctx--own-row { flex: 1 1 60%; }
  .site-head > .wrap:has(> .beta-pill) > .acct-wrap { order: 4; }
}
@media print { .beta-pill { display: none; } }

/* UI 3, 2026-11-16: a teacher's code cards at 200% text (P21's "the printed card fits its cut
   lines"; teacher-r33 · coop-add-students-codes, coop-class-reset). The generated .cards column's
   16rem floor is 512px at a 32px root, wider than a 375 sheet, and the card's own grid column took
   its rows' min-content, so both cards ran past the sheet's edge (before A49's QR and address line
   too). The column now never exceeds its box, and a long code breaks inside its card.
   Screen only: print keeps its own two-up sheet (`.print-only .cards`).
   Note for Tess: docs/notes-for-tess/2026-11-16-ui3-code-cards.md. */
@media screen {
  html.is-large-text .scr-teacher .cards { grid-template-columns: repeat(auto-fit, minmax(min(16rem, 100%), 1fr)); }
  html.is-large-text .scr-teacher .code-card--sheet { grid-template-columns: minmax(0, 1fr); }
  html.is-large-text .scr-teacher .code-card--sheet .code { overflow-wrap: anywhere; }
}

/* UI 3, 2026-11-16: an org admin's centred confirm at 200% text below 600px (org-admin-r36 ·
   student-remove-large). r36 lifts the dialog's width cap there, written for its `.dlg`; the app's
   Sheet draws the same dialog as `.sheet--dialog`, whose min(--dlg-max, 100% - two gutters) left
   about 200px at 375 once the gutters doubled. The same rule for the app's element, and its head
   and foot padding (r36's generated rule already reaches .dlg-body and .dlg-foot).
   Note for Tess: docs/notes-for-tess/2026-11-15-ui3-org-student.md. */
@container art (max-width: 599px) {
  html.is-large-text .scr-org .dlg-layer:not(.dlg-layer--sheet) > .sheet--dialog { inline-size: 100%; max-inline-size: none; }
  html.is-large-text .scr-org .sheet--dialog :is(.sheet-head, .sheet-foot) { padding-inline: var(--space-3); }
}

/* UI 2, 2026-11-16 (Tess's staging audit, #1466). Note for Tess:
   docs/notes-for-tess/2026-11-16-ui2-admin-audit.md.
   Item 1: below 600px the org shell's .body drops its inline padding (org-admin-r24: the board's
   .wrap gives the gutter there), but the app's org pages put their layout straight in .body with no
   .wrap, so every co-op page ran edge to edge at 375. The body takes the gutter the board's .wrap
   would (G5's 24px) when it holds no .wrap. */
@container art (max-width: 599px) {
  .scr-org .body:not(:has(> .wrap)) { padding-inline: var(--gutter); }
  /* Item 2: the page head's one action is full width, as r36's .page-acts > * is (the app's
     PageHead draws .head--split, which r36's rule doesn't reach). */
  .scr-org .head--split > :not(:first-child) { inline-size: 100%; }
}
/* Item 7 (G7 "Button groups": 16px above a group). On an org page a section's own blocks sit in
   .sec-body, not straight in r36's .sec, so its 16px gap never reached them: the Overview's roster
   buttons sat on the Classes table's total row. */
.scr-org .sec-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-4); }
/* In the console: New organization's "Ask for the code" under its note, Feedback's note on the list
   head that carries Export CSV, and System health's Show more under the alert list. */
.scr-console form > .note + .btn,
.scr-console .note + .sec-head,
.scr-console .btn-row--after { margin-block-start: var(--space-4); }

/* Item 10 (Tess's measure on staging /betas at 375): the header's name ran 14–22px past the screen's
   edge ("Kai Brenna"). The kit's .acct-wrap is flex: none, so in the wrapping top bar it took the role
   line's whole one-line width, and staging's long host gave that line no break. It now shrinks to the
   bar, and the button's one column can go below its text, so the role line breaks anywhere (its rule
   already allows it) and the name stays inside. The cap counts the button's own -8px margins, which line its text up with the gutter. Measured on T26 with staging's host. */
.scr-console .acct-wrap { flex-shrink: 1; min-width: 0; max-inline-size: 100%; }
.scr-console .acct-wrap > .whoami-btn { max-inline-size: calc(100% + 2 * var(--space-2)); min-width: 0; grid-template-columns: minmax(0, 1fr); }

/* #1466 item 11. Security (the console's /me/security and the app's /security): the first section sat right under
   the page head's rule, while each later one has the card's 32px above it. security-r9 gives every
   .sec 32px above; the app's sections are a head and a card, with no .sec, so the page head carries it. */
.scr-security .page-head { margin-block-end: var(--space-6); }
/* The co-op pages: a section's count ("4 classes") on the heading's baseline, as the console's and
   Security's section heads have it. The kit's .sec-head is flex-end, which left the smaller line off it. */
.scr-org .sec-head { align-items: baseline; }

/* #1547 (1), UI 2: a console sheet's fields stack with the kit's gap, as a page form's do. The
   console's own layout zeroes every field's top margin (for toolbars and grids); this is more
   specific, so it wins inside a sheet. A field in a form grid keeps the grid's own gap. */
.scr-console .dlg-body .field { margin-block-start: var(--space-5); }
.scr-console .dlg-body .field:first-child,
.scr-console .dlg-body .form-grid > .field { margin-block-start: 0; }

/* #1535, UI 2: in the stacked total row, a total cell with nothing in it (the co-op Overview's
   Teacher; Table marks it is-blank) isn't drawn as a lone label. */
@container art (max-width: 599px) {
  .scr-org .tbl--stack-foot tfoot td.is-blank { display: none; }
}

/* P33 parent-weekly (emails-r21 parent-weekly-one/-two; UI 2, 11-18): each student's name, the week's
   days, the count lines and the topics. The email's renderer inlines these (email-styles.ts EXTRA).
   Mail takes no container query (A59), so the topics stack at every width, the narrow case of the
   mock's rule (Tess, 11-18); the days table's width is the renderer's, seven taps. */
.email h2 { margin: var(--space-6) 0 var(--space-3); font-family: var(--font-email-display); font-size: var(--type-section); font-weight: var(--weight-announce); line-height: var(--lh-snug); letter-spacing: var(--track-head); color: var(--fg); }
.email h2.is-first { margin-block-start: var(--space-5); }
.email .wk-table { margin: 0 0 var(--space-3); border-collapse: collapse; table-layout: fixed; }
.email .wk-table td { padding: 0; text-align: center; font-size: var(--type-meta); line-height: var(--lh-snug); }
.email .wk-table .wk-l { color: var(--muted); }
.email .wk-table .wk-m { font-size: var(--type-body); line-height: 1.2; color: var(--border-strong); }
.email .wk-table .wk-m.is-on { color: var(--brand); }
.email .wk-lines { margin: 0 0 var(--space-4); }
.email .note.wk-topics dt { color: var(--fg); font-weight: var(--weight-ui); }
.email .note.wk-topics dd { margin-block-start: var(--space-1); }
.email .note.wk-topics dd + dt { margin-block-start: var(--space-2); }

/* UI 2, 11-24: Costs' filters and day chart, hand CSS above the generated block so the screens sync keeps them. */
/* Costs (P28 R15): the filters in one wrapping row, and the day chart, one column a day, its height the
   day's spend over the month's largest. The table under it carries the numbers (the chart is aria-hidden). */
.scr-console .cost-filters { display: flex; flex-wrap: wrap; align-items: end; gap: var(--space-3) var(--space-4); margin-block-end: var(--space-5); }
.scr-console .cost-filters .field { min-inline-size: min(12rem, 100%); margin: 0; }
.scr-console .cost-chart { list-style: none; margin: 0 0 var(--space-4); padding: 0; display: flex; align-items: flex-end; gap: 2px; block-size: 160px; border-block-end: var(--hairline) solid var(--border); }
.scr-console .cost-col { flex: 1 1 0; min-inline-size: 0; block-size: 100%; display: flex; align-items: flex-end; }
.scr-console .cost-bar { display: block; inline-size: 100%; block-size: calc(var(--v) / var(--max) * 100%); background: var(--brand); }
.scr-console .cost-empty { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-4); }

/* UI 2, 11-24: the Overview's strip and range, hand CSS above the generated block so the screens sync keeps them. */
/* The Overview's status strip (Q20; Tess, P28, 11-24): three lines, each a link, no cards. The spend
   bar is plain ink on --surface, never red or green: the words say how it stands. */
.scr-console .ov-strip { margin-block-end: var(--space-5); }
.scr-console .ov-strip ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }
.scr-console .ov-strip li { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-1) var(--space-3); }
.scr-console .ov-strip li > a:first-child { min-block-size: var(--tap-min); display: inline-flex; align-items: center; }
.scr-console .ov-strip-meter { inline-size: min(100%, 16rem); block-size: 8px; appearance: none; border: 0; border-radius: var(--radius-pill); background: var(--surface); }
.scr-console .ov-strip-meter::-webkit-meter-bar { background: var(--surface); border: 0; border-radius: var(--radius-pill); }
.scr-console .ov-strip-meter::-webkit-meter-optimum-value,
.scr-console .ov-strip-meter::-webkit-meter-suboptimum-value,
.scr-console .ov-strip-meter::-webkit-meter-even-less-good-value { background: var(--fg); border-radius: var(--radius-pill); }
.scr-console .ov-strip-meter::-moz-meter-bar { background: var(--fg); }
.scr-console .ov-strip-set { font-size: var(--type-meta); }
/* The range (R14): its control, then the note that days end at midnight UTC. */
.scr-console .ov-range { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-4); margin-block-end: var(--space-5); }
.scr-console .ov-range .field-hint { margin: 0; }
/* #1941: at 375 with 200% text the three ranges don't fit one line; they wrap rather than push the page sideways. */
.scr-console .ov-range .seg { flex-wrap: wrap; max-inline-size: 100%; }
/* #1941: a stacked table's hidden header row stays its full width (a row group never clips), and at 200%
   text that pushed the page 12px sideways; as a block the header clips to its 1px. */
@container art (max-width: 560px) {
  .scr-console .tbl--stack thead { display: block; }
  /* A figures table (Table's `pairs`: the Overview's) keeps each numeric cell's label and figure on one line. */
  .scr-console .tbl--pairs tbody td.num[data-l] { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 0 var(--space-3); }
  .scr-console .tbl--pairs tbody td.num[data-l] + td.num[data-l] { margin-top: var(--space-1); }
  /* The label takes the room, so a figure and its rate (Campaigns') stay together at the end. */
  .scr-console .tbl--pairs tbody td.num[data-l]::before { flex: 1 1 auto; }
  /* A stacked table's total row (Costs' by day) stacks too, its figures on their labels' lines. */
  .scr-console .tbl--stack-foot tfoot tr { display: block; padding: var(--space-3) var(--cell-x); }
  .scr-console .tbl--stack-foot tfoot :is(th, td) { display: block; padding: 0; text-align: start; }
  .scr-console .tbl--stack-foot tfoot :is(th, td) + td { margin-top: var(--space-1); }
  .scr-console .tbl--stack-foot tfoot td.is-blank { display: none; }
  .scr-console .tbl--stack-foot tfoot td.num[data-l] { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 0 var(--space-3); }
  .scr-console .tbl--stack-foot tfoot td[data-l]::before { content: attr(data-l); flex: 1 1 auto; font-size: var(--type-meta); font-weight: var(--weight-announce); color: var(--muted); line-height: var(--lh-snug); }
  /* A stacked row's long value (Crisis lines' source page address) breaks rather than widening the table. */
  .scr-console .tbl--stack tbody td { overflow-wrap: anywhere; }
  /* A chip ("1 touched, last on Nov 11, 3:14 PM") wraps rather than running out of its row; a field chip
     ("{message_first_line}", Support templates) breaks inside its token rather than widening the page. */
  .scr-console :is(.chip, .status, .status-chip) { max-inline-size: 100%; white-space: normal; overflow-wrap: anywhere; }
  /* A card's label column (Policies' "Version" cards) takes at most 45% and wraps, so a value like a date keeps its line. */
  .scr-console .tbl-card dl { grid-template-columns: fit-content(45%) minmax(0, 1fr); }
  /* Beta health's reference line: its label ("The plan's price for ...") wraps within the chart. */
  .scr-console span.bh-ref-l { max-inline-size: 100%; white-space: normal; }
  /* A panel head's chips (Support email: "A change is pending", "Owner only") wrap under its title. */
  .scr-console .panel-head:has(> .page-acts) { flex-wrap: wrap; }
  .scr-console .acct-panel > .panel-head > .page-acts, .scr-console .panel-head > .page-acts { max-inline-size: 100%; flex-wrap: wrap; }
  /* Staff sign-in's lockup: at 200% text the logo would be 412px wide; it keeps its normal width, capped at the screen's. */
  .scr-console .sout-wrap { grid-template-columns: minmax(0, 1fr); }
  .scr-console .sout-lockup { flex-wrap: wrap; justify-content: center; max-inline-size: 100%; }
  .scr-console .sout-lockup .lockup { flex: 0 1 auto; min-inline-size: 0; block-size: auto; inline-size: min(100%, 13rem); }
  /* A range control (Pool report's Last 7 / 30 / 90 days) wraps rather than pushing the page sideways. */
  .scr-console .seg { flex-wrap: wrap; max-inline-size: 100%; }
  /* Staff sign-in: the card's padding steps down, so at 200% text its form fits the screen. */
  .scr-console main.sout { padding-inline: var(--space-3); }
  .scr-console .sout .sout-card { padding: var(--space-5) var(--space-4); }
}
/* #1941: an email, a setting's name (homework_mode) or a routing address breaks rather than pushing the
   screen sideways at 375. */
.scr-console :is(.kv-v, .sheet-term, .rule-body, .sout-sub, .quote) { overflow-wrap: anywhere; }
/* #1941: Staff security's row actions ("Make new codes") wrap within the row at 200% text, never past it. */
/* #1941: a console sheet or dialog body breaks a long value (an email, a diff of two addresses) rather
   than scrolling sideways; inside the scroller (200% text) a switch row keeps to its box. */
.scr-console :is(.sheet-scroll, .dlg-body) { overflow-wrap: anywhere; }
.scr-console .sheet-scroll .sw-row { margin-inline: 0; }
/* #1941: G7 (Tess, 11-24) for the console. The kit's rule keys on the `screen` container, which the
   console's art isn't, so at 375 a confirm dialog squeezed its body to a 181px column at 200% text. */
@container art (max-width: 599px) {
  .scr-console .dlg-layer:not(.dlg-layer--side, .dlg-layer--sheet) { place-items: end stretch; padding: 0; }
  .scr-console .dlg-layer:not(.dlg-layer--side, .dlg-layer--sheet) > :is(.sheet--dialog, .dlg) {
    inline-size: 100%; max-inline-size: none; max-block-size: 85%; margin: 0;
    border-block-end: 0; border-radius: var(--radius-sheet) var(--radius-sheet) 0 0;
  }
  /* And its gutters stay a phone's (as .scr-org's do at 200%), so the body keeps its width. */
  .scr-console :is(.sheet--dialog, .dlg) :is(.sheet-head, .sheet-foot, .dlg-head, .dlg-body, .dlg-foot) { padding-inline: var(--space-3); }
}
.scr-security .row-acts { max-inline-size: 100%; }
.scr-security .row-acts > .row-act { max-inline-size: 100%; white-space: normal; text-align: center; }
.scr-security .card > .link-btn { max-inline-size: 100%; text-align: start; }

/* === SCREEN LAYOUTS (generated by scripts/screens-css.ts from the page mocks; do not edit) === */
/* worksheet-r14.html → .scr-list */
.scr-list .art {
  position: relative; flex: none; width: var(--aw, 375px); height: var(--ah, 812px);
  overflow: hidden; background: var(--bg); border: var(--hairline) solid var(--border-strong);
  container-type: inline-size; container-name: screen;
}

.scr-list .wsh { margin: 0 0 var(--space-5); }
.scr-list .wsh-when { margin: 0; color: var(--muted); font-size: var(--text-sm); line-height: var(--lh-snug); }
.scr-list .wsh .progress { margin-top: var(--space-3); border-radius: var(--radius-pill); }
.scr-list .wsh-prog { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-1) var(--space-2); margin: var(--space-2) 0 0; font-size: var(--text-sm); font-weight: var(--weight-ui); line-height: var(--lh-snug); }

.scr-list .wsh-instr {
  margin: var(--space-4) 0 0; padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-card); background: var(--surface);
  color: var(--muted); font-size: var(--text-sm); line-height: var(--lh-snug); max-width: var(--measure);
}
.scr-list .wsh-instr-l { display: block; margin-bottom: var(--space-1); font-weight: var(--weight-announce); }

.scr-list .said { margin: 0 0 var(--space-4); animation: rise-in var(--dur-enter) var(--ease-out); }

.scr-list .wsh-kind { margin: 0 0 var(--space-1); color: var(--brand); font-size: var(--text-sm); font-weight: var(--weight-announce); line-height: var(--lh-snug); }

.scr-list .plist { list-style: none; margin: 0; padding: 0; }
.scr-list .plist > li + li { border-top: var(--hairline) solid var(--border); }
.scr-list .prow {
  position: relative; display: grid;
  grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto auto;
  align-items: center; column-gap: var(--space-2); min-height: var(--tap);
  margin-inline: calc(-1 * var(--gutter)); padding: var(--space-2) var(--gutter);
}
.scr-list .prow:has(.prow-go:active) { background: var(--surface-sunk); }
@media (hover: hover) { .scr-list .prow:has(.prow-go:hover) { background: var(--surface); } }
.scr-list .prow:has(.prow-go:focus-visible) { outline: var(--focus-w) solid var(--focus); outline-offset: calc(-1 * var(--focus-off)); }
.scr-list .prow.is-sel { background: var(--surface-sunk); box-shadow: inset var(--edge) 0 0 var(--fg); }

.scr-list .prow-n {
  display: flex; align-items: center; justify-content: center; flex: none;
  grid-column: 1; grid-row: 1;
  width: var(--space-6); min-height: var(--tap); padding: 0;
  border: 0; background: transparent;
  font-family: var(--font-ui); font-size: var(--text-md); font-weight: var(--weight-announce);
  line-height: var(--lh-snug); color: var(--brand); font-variant-numeric: tabular-nums; }
.scr-list .prow-go:focus-visible { outline: none; }
.scr-list .prow-go::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }

.scr-list .prow-n:not(.prow-go) { color: var(--muted); }
.scr-list .prow-math { grid-column: 2; grid-row: 1; min-width: 0; }

.scr-list .prow:has(.prow-instr) { grid-template-rows: auto auto auto auto; }
.scr-list .prow:has(.prow-instr) .prow-n { grid-row: 1 / span 2; }
.scr-list .prow-instr {
  grid-column: 2; grid-row: 1; margin: 0;
  color: var(--muted); font-size: var(--text-sm); font-weight: var(--weight-announce);
  line-height: var(--lh-snug);
}
.scr-list .prow:has(.prow-instr) .prow-math { grid-row: 2; }
.scr-list .prow:has(.prow-instr) .prow-ans { grid-row: 3; }
.scr-list .prow:has(.prow-instr) .chips { grid-row: 4; }

.scr-list .prow-ans { grid-column: 2; grid-row: 2; display: flex; align-items: center; gap: var(--space-2); min-width: 0; }
.scr-list .prow-ans-l { flex: none; color: var(--muted); font-size: var(--text-sm); font-weight: var(--weight-announce); line-height: var(--lh-snug); }
.scr-list .prow-ans > .mfit { flex: 1 1 auto; min-width: 0; }
.scr-list .prow-ans-v { min-width: 0; line-height: var(--lh-snug); }
.scr-list .prow .chips { grid-column: 2; grid-row: 3; margin-block-start: var(--space-2); }

.scr-list .prow .cue-r { position: relative; z-index: 2; }
.scr-list .prow .cue-l { position: absolute; inset-inline-start: 0; z-index: 3; }
.scr-list .prow .mfit.is-over .mfit-line { position: relative; z-index: 2; }

.scr-list .prow-math, .scr-list .prow-ans, .scr-list .yours, .scr-list .sheet-math, .scr-list .preview { --cue-out-l: 0px; --cue-out-r: var(--space-2); }

.scr-list .yours { margin: 0; }
.scr-list .yours-label { margin: 0; color: var(--muted); font-size: var(--text-sm); font-weight: var(--weight-announce); line-height: var(--lh-snug); }
.scr-list .writing { margin-top: var(--space-6); padding-top: var(--space-5); border-top: var(--hairline) solid var(--border); }
.scr-list .writing-h { margin: 0; font-family: var(--font-display); font-size: var(--text-md); font-weight: var(--weight-announce); line-height: var(--lh-tight); letter-spacing: var(--track-head); }
.scr-list .writing-why { margin: var(--space-2) 0 0; color: var(--muted); line-height: var(--lh-snug); max-width: var(--measure); }
.scr-list .skel { margin-top: var(--space-5); }
.scr-list .skel-group { display: grid; gap: var(--space-2); }
.scr-list .skel-label { margin: 0 0 var(--space-1); color: var(--muted); font-size: var(--text-sm); font-weight: var(--weight-announce); line-height: var(--lh-snug); }

.scr-list .skel-line--w70 { inline-size: 70%; }
.scr-list .skel-line--w50 { inline-size: 50%; }
.scr-list .failed { margin-top: var(--space-6); }

.scr-list .ways { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-3); margin-top: var(--space-4); }
.scr-list .way {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-1);
  width: 100%; min-height: calc(var(--tap) + var(--space-2));
  padding: var(--space-4); border: 0; border-radius: var(--radius-card);
  text-align: start; text-decoration: none;
  transition: transform var(--dur-exit) var(--ease-out);
}
.scr-list .way-t { display: block; font-weight: var(--weight-announce); line-height: var(--lh-snug); }
.scr-list .way-h { display: block; color: var(--muted); font-size: var(--text-sm); line-height: var(--lh-snug); text-wrap: pretty; }

.scr-list .way--accent { background: var(--accent); color: var(--on-accent); box-shadow: inset 0 calc(-1 * var(--edge)) 0 var(--accent-edge); }
.scr-list .way--accent .way-h { color: var(--on-accent); }
.scr-list .way--accent:active { background: var(--accent-press); box-shadow: inset 0 calc(-1 * var(--hairline)) 0 var(--accent-edge); transform: translateY(var(--press-drop)); }
.scr-list .way--second { background: transparent; color: var(--fg); border: var(--hairline) solid var(--border-strong); }
.scr-list .way--second:active { background: var(--surface-sunk); }
@media (hover: hover) {
  .scr-list .way--accent:hover { background: var(--accent-press); }
  .scr-list .way--second:hover { background: var(--surface); }
}
.scr-list .way-quiet { margin: var(--space-3) 0 0; }
.scr-list .sheet-math { margin-top: var(--space-2); }

.scr-list .sheet-scroll { padding-block-start: var(--space-4); }

.scr-list .opt-list { list-style: none; margin: 0; padding: 0; }
.scr-list .opt-list > li + li { border-top: var(--hairline) solid var(--border); }
.scr-list .opt {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: var(--space-3);
  width: calc(100% + var(--space-4)); min-height: var(--tap); margin: 0 calc(-1 * var(--space-2)); padding: var(--space-3) var(--space-2);
  border: 0; border-radius: var(--radius-control); background: transparent; color: var(--fg); text-align: start; text-decoration: none;
}
.scr-list .opt:active { background: var(--surface-sunk); }
@media (hover: hover) { .scr-list .opt:hover { background: var(--surface); } }
.scr-list .opt > .ico:first-child { inline-size: var(--ico-lg); block-size: var(--ico-lg); color: var(--brand); }
.scr-list .opt > .ico:last-child { inline-size: var(--ico-lg); block-size: var(--ico-lg); color: var(--muted); }
.scr-list .opt-txt { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-1); }
.scr-list .opt-name { display: block; font-weight: var(--weight-announce); line-height: var(--lh-snug); }
.scr-list .opt-list > li.is-apart { margin-top: var(--space-4); padding-top: var(--space-2); }

.scr-list .opt--danger > .ico:first-child { color: var(--danger); }
.scr-list .opt--danger .opt-name { color: var(--danger); }

.scr-list .field--flush { margin-block-start: 0; }
.scr-list .mathfield {
  position: relative; min-width: 0; min-height: var(--tap);
  padding: var(--space-2) var(--space-3);
  border: var(--hairline) solid var(--border-strong); border-radius: var(--radius-control);
  background: var(--bg); color: var(--fg);
}
.scr-list .mathfield:focus-within { border-color: var(--brand); outline: var(--focus-w) solid var(--focus); outline-offset: var(--focus-off); }
.scr-list .mf-src {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0;
  border: 0; background: transparent; color: transparent; caret-color: transparent;
  font-size: 16px; line-height: 1;   
}
.scr-list .mf-src:focus { outline: none; }
.scr-list .mf-render {
  display: block; min-height: calc(var(--text-md) * 1.5); pointer-events: none;
  overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scrollbar-width: none;
  font-family: var(--font-math); font-size: var(--text-md); line-height: 1.3;
}
.scr-list .mf-render::-webkit-scrollbar { display: none; }
.scr-list .mf-in { display: block; width: max-content; }
.scr-list .mf-render .katex { font-size: 1em; color: var(--fg); }
.scr-list .mf-render.is-over {
  -webkit-mask-image: linear-gradient(to right, var(--fg) calc(100% - var(--space-5)), transparent);
  mask-image: linear-gradient(to right, var(--fg) calc(100% - var(--space-5)), transparent);
}

.scr-list .mf-render .katex .rule { color: var(--brand); }
.scr-list .preview { margin-top: var(--space-2); }
.scr-list .preview .mfit { padding: var(--space-2) var(--space-3); border-radius: var(--radius-control); background: var(--surface); }
.scr-list .preview-empty { margin: 0; padding: var(--space-3); border-radius: var(--radius-control); background: var(--surface); color: var(--muted); }
.scr-list .lbl { margin: var(--space-5) 0 var(--space-1); font-size: var(--text-base); font-weight: var(--weight-announce); line-height: var(--lh-snug); }
.scr-list .kp {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-2);
  margin: var(--space-3) calc(-1 * var(--gutter)) 0; padding: var(--space-3) var(--gutter) 0;
  border-top: var(--hairline) solid var(--border);
}

.scr-list .kp-key {
  display: flex; align-items: center; justify-content: center;
  min-width: var(--tap-min); min-height: max(var(--tap-min), calc(var(--tap) - var(--space-1))); padding: var(--space-1);
  border: 0; border-radius: var(--radius-control); background: var(--surface); color: var(--fg);
  font-size: var(--text-md); font-weight: var(--weight-ui); line-height: 1;
}
.scr-list .kp-key .katex { font-size: 1em; color: var(--fg); }
.scr-list .kp-key:active { background: var(--surface-sunk); }
@media (hover: hover) { .scr-list .kp-key:hover { background: var(--surface-sunk); } }
.scr-list .dock--kp { padding-top: var(--space-3); }
.scr-list .dock--kp .kp { margin-top: var(--space-3); }

.scr-list .ans-ways { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-3); }
.scr-list .ans-ways > * { flex: 1 1 14rem; }

.scr-list .ans-prob { margin: 0 0 var(--space-5); }
.scr-list .ans-prob-l { display: block; margin-bottom: var(--space-1); color: var(--muted); font-size: var(--text-sm); font-weight: var(--weight-announce); line-height: var(--lh-snug); }

.scr-list .ans-col { max-inline-size: var(--measure); margin-inline: auto; }

.scr-list .ans-said { margin: 0; padding: var(--space-3); border-radius: var(--radius-control); background: var(--surface); line-height: var(--lh-snug); }

.scr-list .kp-key--wide { grid-column: span 2; }

.scr-list .step-words { margin: 0; line-height: var(--lh-body); }
.scr-list .ans-checks { margin-top: var(--space-5); padding-top: var(--space-4); border-top: var(--hairline) solid var(--border); }
.scr-list .ans-checks .hint { margin: var(--space-2) 0 0; }

.scr-list .fb-field { grid-template-columns: minmax(0, 1fr); }
.scr-list .fb-tick .pick { padding-block: var(--space-1); }
.scr-list .fb-tick .pick-txt > span:first-child { font-weight: var(--weight-ui); }
.scr-list .fb-tick .pick + .fb-help + .pick { margin-top: var(--space-3); }

html.is-large-text .scr-list .topbar > .icon-btn { order: 1; }
html.is-large-text .scr-list .topbar > .icon-btn:last-child { margin-inline-start: auto; }
html.is-large-text .scr-list .tb-text { order: 2; flex: 1 0 100%; }
html.is-large-text .scr-list .wsh-instr { padding-inline: var(--space-3); }
html.is-large-text .scr-list .way { padding-inline: var(--space-3); }
html.is-large-text .scr-list .prow { column-gap: var(--space-1); }
html.is-large-text .scr-list .prow-n { width: auto; min-width: var(--space-6); padding-inline: var(--space-1); }
html.is-large-text .scr-list .prow .chips { gap: var(--space-1) var(--space-2); }

html.is-large-text .scr-list .kp-flow { margin-top: var(--space-6); }
html.is-large-text .scr-list .kp-flow .kp { margin-top: 0; }
html.is-large-text .scr-list .mf-sticky {
  position: sticky; top: 0; z-index: 2;
  margin-inline: calc(-1 * var(--space-2)); padding: 0 var(--space-2) var(--space-3);
  background: var(--bg);
}

.scr-list .ans-pad { margin-top: var(--space-6); }
.scr-list .ans-pad > .kp { margin-top: 0; padding-top: 0; border-top: 0; }

.scr-list .ans-pad > .kp + .kp { margin-top: var(--space-3); padding-top: var(--space-3); border-top: var(--hairline) solid var(--border); }

.scr-list .kp-nav { grid-template-columns: repeat(4, var(--tap-min)) minmax(0, 1fr); }
.scr-list .kp-key--word { font-size: var(--text-base); }

html.is-large-text .scr-list .kp-nav { grid-template-columns: repeat(4, minmax(0, 1fr)); }
html.is-large-text .scr-list .kp-nav .kp-key--word { grid-column: 1 / -1; }

.scr-list .ans-var .katex { font-size: 1em; color: var(--fg); }

html:not(.is-large-text) .scr-list .app.is-padup > .dock { display: none; }
html:not(.is-large-text) .scr-list .app.is-padup .ans-pad--rise {
  position: absolute; inset-inline: 0; inset-block-end: 0; z-index: 4; margin: 0;
  background: var(--bg); border-block-start: var(--hairline) solid var(--border);
  padding: var(--dock-pad) var(--gutter) calc(var(--dock-pad) + var(--space-2) + env(safe-area-inset-bottom, 0px));
}

html:not(.is-large-text) .scr-list .app.is-padup .od-scroll { padding-block-end: calc(var(--pad-h, 0px) + var(--gutter) + var(--space-2)); }

.scr-list .field-hint--after { display: block; margin-top: var(--space-3); }

.scr-list .is-focus-ring { outline: var(--focus-w) solid var(--focus); outline-offset: var(--focus-off); }

/* walkthrough-r29.html → .scr-walk */
.scr-walk {
  --trace-pair: 500ms;
}
.scr-walk .dock--split { flex-wrap: wrap-reverse; }

.scr-walk .dock--split > .btn-spot { flex: 1 0 auto; inline-size: auto; }
.scr-walk .dock--split > .btn-primary { flex: 999 1 auto; inline-size: auto; }

.scr-walk .dock--offline .dock-note { margin: 0 0 var(--space-3); }
.scr-walk .dock-acts { display: flex; flex-wrap: wrap-reverse; gap: var(--dock-gap, var(--space-2)); }
.scr-walk .dock-acts > .btn-spot { flex: 1 0 auto; inline-size: auto; }
.scr-walk .dock-acts > .btn-primary { flex: 999 1 auto; inline-size: auto; }
.scr-walk .dock--stack > .link-btn { justify-self: center; margin-inline-start: 0; }

.scr-walk .prob, .scr-walk .step-res, .scr-walk .stage, .scr-walk .end-steps, .scr-walk .cur { --cue-out-l: var(--space-4); --cue-out-r: var(--space-4); }
.scr-walk .rows { --cue-out-l: 0px; --cue-out-r: 0px; }
.scr-walk .callout--success { --cue-out-l: var(--space-2); --cue-out-r: var(--space-2); }

.scr-walk .step-res.is-tracing .mfit .mk, .scr-walk .cur[data-pf] .mfit .mk { background: transparent; }
.scr-walk .step-res.is-tracing .mfit .mk::before, .scr-walk .cur[data-pf] .mfit .mk::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; }
.scr-walk .step-res.is-tracing .mfit .mk1::before, .scr-walk .cur[data-pf] .mfit .mk1::before { background: var(--mark-1); }
.scr-walk .step-res.is-tracing .mfit .mk2::before, .scr-walk .cur[data-pf] .mfit .mk2::before { background: var(--mark-2); }
.scr-walk .step-res.is-tracing .mfit .mk3::before, .scr-walk .cur[data-pf] .mfit .mk3::before { background: var(--mark-3); }

@keyframes mk-src-scr-walk { from { opacity: 0.35; } to { opacity: 1; } }
@keyframes mk-res-scr-walk { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: no-preference) {
  .scr-walk .step-res.is-tracing .mfit[data-ctx="prev"] .mk::before { animation: mk-src-scr-walk calc(var(--trace-pair) * 0.4) var(--ease-out) both; }
  .scr-walk .step-res.is-tracing .mfit[data-ctx="res"]  .mk::before { animation: mk-res-scr-walk calc(var(--trace-pair) * 0.6) var(--ease-out) both; }
  .scr-walk .step-res.is-tracing .mfit[data-ctx="prev"] .mk1::before { animation-delay: 0ms; }
  .scr-walk .step-res.is-tracing .mfit[data-ctx="prev"] .mk2::before { animation-delay: calc(var(--trace-pair) * 1); }
  .scr-walk .step-res.is-tracing .mfit[data-ctx="prev"] .mk3::before { animation-delay: calc(var(--trace-pair) * 2); }
  .scr-walk .step-res.is-tracing .mfit[data-ctx="res"]  .mk1::before { animation-delay: calc(var(--trace-pair) * 0.4); }
  .scr-walk .step-res.is-tracing .mfit[data-ctx="res"]  .mk2::before { animation-delay: calc(var(--trace-pair) * 1.4); }
  .scr-walk .step-res.is-tracing .mfit[data-ctx="res"]  .mk3::before { animation-delay: calc(var(--trace-pair) * 2.4); }
}

.scr-walk .cur[data-pf] .mfit .mk::before { opacity: 0; }
.scr-walk .cur[data-pf="1"] .mfit .mk1::before,
.scr-walk .cur[data-pf="2"] .mfit .mk2::before,
.scr-walk .cur[data-pf="3"] .mfit .mk3::before { opacity: 1; }

.scr-walk .yours-label, .scr-walk .prev-label, .scr-walk .chat-head, .scr-walk .cur-count, .scr-walk .walk-count, .scr-walk .sheet-stands, .scr-walk .entry-label {
  margin: 0; font-size: var(--text-sm); font-weight: var(--weight-announce); line-height: var(--lh-snug);
}
.scr-walk .yours-label, .scr-walk .prev-label, .scr-walk .chat-head { color: var(--muted); }
.scr-walk .cur-count, .scr-walk .walk-count { color: var(--brand); }
.scr-walk .chat-head { text-wrap: balance; }

.scr-walk .sect { margin-top: var(--space-6); padding-top: var(--space-5); border-top: var(--hairline) solid var(--border); }
.scr-walk .prob, .scr-walk .step-res, .scr-walk .stage, .scr-walk .end-steps { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-1); }
.scr-walk .prob { padding-bottom: 0; }
.scr-walk .prob .chip { margin-bottom: var(--space-1); }
.scr-walk .plan { margin: 0; color: var(--muted); text-wrap: pretty; }

.scr-walk :is(.prob, .end-steps) > .chip--brand:first-child { margin-block-end: var(--space-1); }
.scr-walk .prob-ask {
  margin: 0 0 var(--space-1);
  color: var(--fg);
  font-size: var(--text-base);
  line-height: var(--lh-body);
  text-wrap: pretty;
  min-inline-size: 0;
}

.scr-walk .row + .row { border-top: var(--hairline) solid var(--border); }

.scr-walk .row-tog .chev { width: var(--ico-sm); height: var(--ico-sm); color: var(--muted); }
.scr-walk .row-detail { padding: 0 0 var(--space-4) calc(var(--space-6) + var(--space-3)); animation: rise-in var(--dur-enter) var(--ease-out); }
.scr-walk .row-do { margin: 0 0 var(--space-2); }

.scr-walk .cur {
  margin-top: var(--space-6);
  padding: var(--space-4);
  background: var(--bg);
  border: var(--hairline) solid var(--border);
  border-inline-start: 4px solid var(--brand);
  border-radius: var(--radius-md);
  --cue-out-l: var(--space-4);
  --cue-out-r: var(--space-4);

  scroll-margin-top: var(--space-3);
}
html.is-large-text .scr-walk .cur { padding: var(--space-3); --cue-out-l: var(--space-3); --cue-out-r: var(--space-3); }

.scr-walk .cur .step-res { --cue-out-l: var(--space-4); --cue-out-r: var(--space-4); }
html.is-large-text .scr-walk .cur .step-res { --cue-out-l: var(--space-3); --cue-out-r: var(--space-3); }

.scr-walk .revisit { margin: 0 0 var(--space-2); color: var(--muted); font-size: var(--text-sm); line-height: var(--lh-snug); text-wrap: pretty; }

.scr-walk .row-main { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; column-gap: var(--space-3); min-height: var(--tap); }
.scr-walk .row-go { display: inline-flex; align-items: center; gap: var(--space-3); min-height: var(--tap); padding: 0; border: 0; background: none; font: inherit; color: inherit; cursor: pointer; }
.scr-walk .row-check, .scr-walk .row-chev { width: var(--ico-sm); height: var(--ico-sm); color: var(--muted); }
.scr-walk .row-num { display: block; text-align: start; font-family: var(--font-display); font-size: var(--text-sm); font-weight: var(--weight-announce); color: var(--muted); line-height: var(--lh-snug); }
.scr-walk .row-main .mfit-line, .scr-walk .row-main .mfit .katex { color: var(--muted); } 

.scr-walk .row-main > :not(.row-go) { pointer-events: none; }

.scr-walk .row--pf { --pf-line: calc(var(--math-sub) * var(--math-lh, 1.2) + 2 * var(--space-2)); }
.scr-walk .row--pf .row-go { margin-block-start: calc((var(--pf-line) - var(--tap)) / 2); }
.scr-walk .row--pf .row-chev { margin-block-start: calc((var(--pf-line) - var(--ico-sm)) / 2); }
.scr-walk .row--pf .row-num { padding-top: 0; }

.scr-walk .mfit.is-clip .mfit-line {
  overflow: clip;
  -webkit-mask-image: linear-gradient(to right, var(--fg) calc(100% - var(--mask-w, var(--space-6))), transparent);
  mask-image: linear-gradient(to right, var(--fg) calc(100% - var(--mask-w, var(--space-6))), transparent);
}

.scr-walk .walk-tail { block-size: calc(var(--tail, 0) * 1px); }

.scr-walk .progress.progress--steps { display: flex; align-items: center; gap: 2px; block-size: 8px; background: transparent; }
.scr-walk .progress.progress--steps > span { flex: 1 1 0; inline-size: auto; block-size: 4px; background: transparent; box-shadow: inset 0 0 0 1px var(--border-strong); transform: none; transition: none; }
.scr-walk .progress.progress--steps > .is-done { background: var(--border-strong); box-shadow: none; }
.scr-walk .progress.progress--steps > .is-now { block-size: 100%; background: var(--brand); box-shadow: none; }

.scr-walk .cur-head { display: flex; align-items: center; gap: var(--space-3); margin-bottom: var(--space-2); }
.scr-walk .cur-num {
  display: flex; align-items: center; justify-content: center; flex: none;
  width: var(--space-6); height: var(--space-6); border-radius: var(--radius-pill);
  background: var(--brand); color: var(--bg);
  font-family: var(--font-display); font-size: var(--text-md); font-weight: var(--weight-announce); line-height: 1;
}
.scr-walk .step-do { margin: 0 0 var(--space-3); font-size: var(--text-md); font-weight: var(--weight-ui); line-height: var(--lh-snug); text-wrap: pretty; }
.scr-walk .step-do:focus, .scr-walk .end-head:focus { outline: none; }
.scr-walk .step-do:focus-visible, .scr-walk .end-head:focus-visible { outline: var(--focus-w) solid var(--focus); outline-offset: var(--focus-off); }

.scr-walk .note--ai { color: var(--info); font-weight: var(--weight-announce); }

.scr-walk .callout > .mfit, .scr-walk .callout > .callout-and { grid-column: 2; }
.scr-walk .callout-and { margin: 0; color: var(--muted); }

.scr-walk .nudge {
  display: flex; align-items: flex-start; gap: var(--space-2);
  margin-block-start: var(--space-3);
  color: var(--muted); font-size: var(--text-sm); line-height: var(--lh-body);
}
.scr-walk .nudge > .spot-ico { flex: none; inline-size: 1.15em; block-size: 1.15em; margin-block-start: 0.25em; }
.scr-walk .nudge-t { min-width: 0; }

.scr-walk .nudge-m { white-space: nowrap; }

.scr-walk .cur.is-nudged { --mk-thick: 0.16em; }

@media (prefers-reduced-motion: reduce) {
  .scr-walk .cur.is-nudged .step-res .mk .underline-line { border-bottom-width: var(--mk-thick) !important; }
}
.scr-walk .is-rm .cur.is-nudged .step-res .mk .underline-line { border-bottom-width: var(--mk-thick) !important; }

.scr-walk .hint-row { display: flex; align-items: center; justify-content: flex-end; gap: 0; }
.scr-walk .hint-row .hint { flex: 1 1 auto; min-width: 0; margin-block-start: 0; }
.scr-walk .replay {
  position: relative; z-index: 1; flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: max(var(--tap-min), calc(var(--tap) - var(--space-1)));
  height: max(var(--tap-min), calc(var(--tap) - var(--space-1)));
  margin-right: calc(-1 * var(--space-4)); padding: 0;
  border: 0; border-radius: var(--radius-sm); background: transparent; color: var(--brand);
}
.scr-walk .replay .ico { width: var(--ico-sm); height: var(--ico-sm); }
.scr-walk .replay:active { background: var(--surface-sunk); }
@media (hover: hover) { .scr-walk .replay:hover { background: var(--brand-wash); } }

.scr-walk .how-panel {
  margin-top: var(--space-4);
  border: var(--hairline) solid var(--border); border-radius: var(--radius-md);
  background: var(--surface);
}
.scr-walk .row-detail .how-panel { margin-top: var(--space-2); }
.scr-walk .how-head {
  display: flex; align-items: center; gap: var(--space-2);
  width: 100%; min-height: var(--tap); margin: 0; padding: var(--space-2) var(--space-4);
  border: 0; border-radius: var(--radius-md); background: transparent;
  color: var(--brand); font-weight: var(--weight-announce); line-height: var(--lh-snug); text-align: start;
}
.scr-walk .how-head .ico { width: var(--ico-md); height: var(--ico-md); }
.scr-walk .how-head-t { flex: 1 1 auto; min-width: 0; }
.scr-walk .how-head .chev { flex: none; width: var(--ico-sm); height: var(--ico-sm); }
.scr-walk .how-panel.is-open .how-head { border-radius: var(--radius-md) var(--radius-md) 0 0; }
.scr-walk .how-head:active { background: var(--surface-sunk); }
@media (hover: hover) { .scr-walk .how-head:hover { background: var(--surface-sunk); } }
.scr-walk .how-head:focus-visible { outline: var(--focus-w) solid var(--focus); outline-offset: calc(-1 * var(--focus-off)); }

.scr-walk .why-panel .why-body {
  padding: 0 var(--space-4) var(--space-4);
  animation: rise-in var(--dur-enter) var(--ease-out);
}
.scr-walk .why-panel .why-p { margin: 0; text-wrap: pretty; }

.scr-walk .why-panel .ai-label { margin-bottom: var(--space-1); }

.scr-walk .how-list { list-style: none; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-4); margin: 0; padding: 0 var(--space-4) var(--space-4); animation: rise-in var(--dur-enter) var(--ease-out); }
.scr-walk .how-item { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-1); }
.scr-walk .how-item .mfit { margin-left: calc(var(--space-5) + var(--space-3)); }
.scr-walk .how-label { margin: 0; }
.scr-walk .how-pick {
  display: grid; grid-template-columns: var(--space-5) minmax(0, 1fr); align-items: start; column-gap: var(--space-3);
  width: calc(100% + var(--space-4)); min-height: var(--tap); margin: 0 calc(-1 * var(--space-2));
  padding-inline: var(--space-2);

  padding-block: max(var(--space-1), calc((var(--tap) - var(--lh-body) * 1em) / 2));
  border: 0; border-radius: var(--radius-sm); background: transparent; color: var(--fg); text-align: start;
}
.scr-walk .how-pick .how-label { display: block; }
.scr-walk .how-pick .pair-dot { margin-top: calc((var(--lh-body) * 1em - var(--space-5)) / 2); }
.scr-walk button.how-pick:active { background: var(--surface-sunk); }
@media (hover: hover) { .scr-walk button.how-pick:hover { background: var(--bg); } }
.scr-walk .how-pick[aria-pressed="true"] { background: var(--bg); box-shadow: inset 0 0 0 var(--hairline) var(--border-strong); }
.scr-walk .how-pick:focus-visible { outline: var(--focus-w) solid var(--focus); outline-offset: calc(-1 * var(--focus-off)); }
.scr-walk .pair-dot {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: var(--space-5); height: var(--space-5); border-radius: var(--radius-pill);
  box-shadow: inset 0 0 0 var(--hairline) var(--border-strong); color: var(--fg);
  font-family: var(--font-ui); font-size: var(--text-sm); font-weight: var(--weight-announce); line-height: 1; letter-spacing: 0;
}
.scr-walk .pair-dot--0 { background: var(--bg); color: var(--muted); }
.scr-walk .pair-dot--1 { background: var(--mark-1); }
.scr-walk .pair-dot--2 { background: var(--mark-2); }
.scr-walk .pair-dot--3 { background: var(--mark-3); }

.scr-walk .link-btn--quiet { color: var(--muted); font-weight: var(--weight-ui); }
.scr-walk .link-btn--quiet:hover, .scr-walk .link-btn--quiet.is-hover { background: var(--surface); }
.scr-walk .kicker { display: flex; align-items: center; gap: var(--space-2); margin: 0; color: var(--success); font-weight: var(--weight-announce); }
.scr-walk .end-head { margin: 0; font-family: var(--font-display); font-size: var(--text-lg); font-weight: var(--weight-announce); line-height: var(--lh-tight); letter-spacing: var(--track-head); }
.scr-walk .stage { padding-bottom: var(--space-2); }
.scr-walk .stage-note { margin: 0; max-width: var(--measure); color: var(--muted); text-wrap: pretty; }
.scr-walk .end-acts { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: start; margin-top: var(--space-4); }

.scr-walk .recipe-list { list-style: none; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-3); margin: var(--space-4) 0 0; padding: 0; }
.scr-walk .recipe-list li { display: grid; grid-template-columns: var(--space-6) minmax(0, 1fr); column-gap: var(--space-3); }
.scr-walk .recipe-list li::before { content: ""; justify-self: center; align-self: start; width: 6px; height: 6px; margin-top: 0.62em; border-radius: 50%; background: var(--border-strong); }
.scr-walk .recipe-list li > span { text-wrap: pretty; }
.scr-walk .end-steps .sec-h { margin-top: var(--space-3); }

.scr-walk .end-more { margin-top: var(--space-4); padding-top: var(--space-3); border-top: var(--hairline) solid var(--border); }

.scr-walk .gloss {
  position: relative; z-index: 1; display: inline; padding: 0; margin: 0;
  border: 0; border-radius: var(--radius-sm); background: transparent; font: inherit; color: inherit;
}
.scr-walk .gloss::after {
  content: ""; position: absolute;
  inset-inline: calc(-1 * var(--space-2)); min-width: var(--tap-min);
  top: 50%; height: max(var(--tap-min), calc(var(--tap) - var(--space-1)));
  transform: translateY(-50%);
}
.scr-walk .gloss-t { text-decoration: underline dotted var(--brand); text-decoration-thickness: var(--edge-strong); text-underline-offset: 0.2em; }
.scr-walk .gloss:active .gloss-t { text-decoration-color: var(--fg); }
@media (hover: hover) { .scr-walk .gloss:hover { background: var(--brand-wash); } }

.scr-walk .sheet--walk, .scr-walk .sheet--chat, .scr-walk .sheet--ac { overflow: hidden; }
.scr-walk .sheet.is-swapping { overflow: hidden; }
.scr-walk .sheet-inner.is-leaving { pointer-events: none; }

.scr-walk .sheet-up { align-self: start; margin-top: var(--space-1); }
.scr-walk .sheet-up .chev { width: var(--ico-sm); height: var(--ico-sm); }
.scr-walk .sheet-mean { margin: var(--space-3) 0 0; text-wrap: pretty; }
.scr-walk .sheet-ex { margin: var(--space-4) 0 0; padding: var(--space-3) var(--space-4); border-radius: var(--radius-sm); background: var(--surface); }
.scr-walk .sheet-stands { margin: var(--space-2) 0 0; color: var(--muted); }
.scr-walk .check-line { margin: var(--space-3) 0 0; max-width: var(--measure); text-wrap: pretty; }

.scr-walk .sheet .sheet-head + .sec-h { margin-top: var(--space-4); }
.scr-walk .sheet .sheet-sub + .sec-h { margin-top: var(--space-5); }

.scr-walk .sheet .opts + .sec-h { margin-block-start: var(--space-5); }
.scr-walk .sheet .reasons + .spot-list { margin-top: var(--space-5); }
.scr-walk .sheet .kicker { margin-top: var(--space-3); }
.scr-walk .sheet .end-acts { margin-top: var(--space-5); }

.scr-walk .spot-list { list-style: none; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-2); margin: var(--space-4) 0 0; padding: 0; }
.scr-walk .spot-opt {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; column-gap: var(--space-3);
  width: 100%; min-height: calc(var(--tap) + var(--space-2)); padding: var(--space-2) var(--space-3);
  border: var(--hairline) solid var(--border-strong); border-radius: var(--radius-sm);
  background: transparent; color: var(--fg); text-align: start; font-weight: var(--weight-ui);
}
.scr-walk .spot-opt > .ico:first-child { color: var(--brand); width: var(--ico-lg); height: var(--ico-lg); }
.scr-walk .spot-opt > .ico:last-child { width: var(--ico-sm); height: var(--ico-sm); color: var(--muted); }
.scr-walk .spot-opt:active { background: var(--surface-sunk); }
@media (hover: hover) { .scr-walk .spot-opt:hover { background: var(--surface); } }

.scr-walk .ai-label { margin: 0 0 var(--space-1); color: var(--info); font-size: var(--text-sm); font-weight: var(--weight-announce); line-height: var(--lh-snug); }

.scr-walk .layer--walk .scrim { --scrim-strength: 12%; }
.scr-walk .app[data-spot="walk"] .body { padding-bottom: calc(var(--space-8) * 7); }
.scr-walk .sheet--walk { --sheet-max: calc(100% - var(--space-8)); }
.scr-walk .sheet--walk .walk-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; margin-top: var(--space-3); padding-bottom: var(--space-1); }
.scr-walk .walk-title {
  display: flex; align-items: flex-start; gap: var(--space-2); margin: var(--space-1) 0 0;
  font-family: var(--font-display); font-size: var(--text-md); font-weight: var(--weight-announce); line-height: var(--lh-tight); letter-spacing: var(--track-head);
}
.scr-walk .walk-title > span { min-width: 0; }
.scr-walk .walk-title .pair-dot { margin-top: 0.05em; }
.scr-walk .walk-title:focus, .scr-walk .walk-close:focus { outline: none; }
.scr-walk .walk-text { margin: var(--space-2) 0 0; max-width: var(--measure); text-wrap: pretty; }
.scr-walk .walk-body .mfit { margin-top: var(--space-3); }
.scr-walk .walk-text .imath .katex, .scr-walk .walk-title .imath .katex { font-size: 1.05em; }
.scr-walk .walk-nav { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-4); }

.scr-walk .walk-nav .btn-spot { flex: 1 1 auto; inline-size: auto; }

.scr-walk .sheet--chat { top: auto; height: calc(100% - var(--space-7) - var(--kb, 0px)); --sheet-max: none; }
.scr-walk .thread > .chat-head { flex: none; margin-bottom: var(--space-2); }
.scr-walk .sheet--chat .thread {
  flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column;
  overflow-y: auto; overscroll-behavior: contain;
  margin: var(--space-3) calc(-1 * var(--gutter)) 0; padding: var(--space-4) var(--gutter) var(--space-2);
  border-top: var(--hairline) solid var(--border);
}
.scr-walk .thread:focus-visible { outline: var(--focus-w) solid var(--focus); outline-offset: calc(-1 * var(--focus-off)); }
.scr-walk .thread > .note { flex: none; margin: 0 0 var(--space-4); }
.scr-walk .thread-list { list-style: none; display: flex; flex-direction: column; gap: var(--space-4); margin: auto 0 0; padding: 0; }
.scr-walk .thread-empty { margin: auto 0 0; color: var(--muted); text-wrap: pretty; }
.scr-walk .msg { max-width: 85%; }
.scr-walk .msg p { margin: 0; }
.scr-walk .msg-t { overflow-wrap: anywhere; text-wrap: pretty; }
.scr-walk .msg--me { align-self: flex-end; padding: var(--space-2) var(--space-3); border-radius: var(--radius-md) var(--radius-md) var(--radius-sm) var(--radius-md); background: var(--surface); }
.scr-walk .msg--ai { align-self: flex-start; }
.scr-walk .msg .imath { white-space: nowrap; }
.scr-walk .msg .imath .katex { font-size: 1.05em; }

.scr-walk .sugg-wrap { display: grid; grid-template-columns: minmax(0, 1fr); margin-top: var(--space-2); }
.scr-walk .thread > .sugg-wrap { flex: none; margin-top: var(--space-4); }
.scr-walk .sugg { list-style: none; display: flex; flex-wrap: wrap; gap: var(--space-2); margin: 0; padding: 0; }
.scr-walk .sugg-wrap .sugg-toggle + .sugg { margin-top: var(--space-1); }
.scr-walk .sugg > li { display: flex; max-width: 100%; }
.scr-walk .sugg-chip {
  display: inline-flex; align-items: center; min-height: var(--tap-min); max-width: 100%;
  padding: var(--space-2) var(--space-3);
  border: var(--hairline) solid var(--border-strong); border-radius: var(--radius-pill);
  background: transparent; color: var(--brand);
  font-size: var(--text-sm); font-weight: var(--weight-announce); line-height: var(--lh-snug);
  text-align: start; overflow-wrap: anywhere;
}
.scr-walk .sugg-chip:active { background: var(--surface-sunk); }
@media (hover: hover) { .scr-walk .sugg-chip:hover { background: var(--brand-wash); } }
.scr-walk .sugg-toggle { justify-self: start; }

.scr-walk .entry { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-1); margin-top: var(--space-3); }
.scr-walk .ask-row { display: flex; align-items: flex-end; gap: var(--space-2); min-width: 0; }
.scr-walk .ask-row textarea {
  flex: 1 1 0; width: 0; min-width: 0; min-height: var(--tap); max-height: calc(var(--tap) * 3);
  padding: var(--space-3); resize: none; overflow-y: auto;
  border: var(--hairline) solid var(--border-strong); border-radius: var(--radius-sm);
  background: var(--bg); color: var(--fg); line-height: var(--lh-snug);
}
.scr-walk .ask-row textarea::placeholder { color: var(--muted); }
.scr-walk .ask-send {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: var(--tap); height: var(--tap); min-width: var(--tap-min); min-height: var(--tap-min); padding: 0;
  border: var(--hairline) solid var(--border-strong); border-radius: var(--radius-sm);
  background: transparent; color: var(--brand);
}
.scr-walk .ask-send:active { background: var(--surface-sunk); }
@media (hover: hover) { .scr-walk .ask-send:hover { background: var(--brand-wash); } }

.scr-walk .entry-count { justify-self: end; margin: 0; color: var(--muted); font-size: var(--text-sm); line-height: var(--lh-snug); font-variant-numeric: tabular-nums; }

.scr-walk .entry-done { margin-top: var(--space-3); padding-top: var(--space-3); border-top: var(--hairline) solid var(--border); }
.scr-walk .entry-done-t { margin: 0 0 var(--space-1); color: var(--muted); text-wrap: pretty; }

.scr-walk .flag-row { margin: var(--space-3) 0 0; }
.scr-walk .cur .flag-row { margin-top: var(--space-2); }
.scr-walk .flag-link { font-weight: var(--weight-read); }
.scr-walk .flag-link > span:not(.sr-only) { text-decoration: underline; text-decoration-color: var(--border-strong); text-decoration-thickness: var(--hairline); text-underline-offset: 0.2em; }
@media (hover: hover) { .scr-walk .flag-link:hover > span:not(.sr-only) { text-decoration-color: var(--fg); } }

.scr-walk .reasons { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-2); margin: var(--space-4) 0 0; padding: 0; list-style: none; }
.scr-walk .reason {
  display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: var(--space-3);
  width: 100%; min-height: calc(var(--tap) + var(--space-1)); padding: var(--space-2) var(--space-3);
  border: var(--hairline) solid var(--border-strong); border-radius: var(--radius-sm);
  background: transparent; color: var(--fg); text-align: start; font-weight: var(--weight-read); line-height: var(--lh-snug);
  text-decoration: none;
}
.scr-walk .reason .reason-mark { width: var(--ico-md); height: var(--ico-md); color: var(--brand); }
.scr-walk .reason[aria-pressed="false"] .reason-mark { visibility: hidden; }
.scr-walk .reason[aria-pressed="true"] { border-color: var(--brand); background: var(--surface); font-weight: var(--weight-announce); }
.scr-walk .reason:active { background: var(--surface-sunk); }
@media (hover: hover) { .scr-walk .reason:hover { background: var(--surface); } }
.scr-walk .reason:focus-visible { outline: var(--focus-w) solid var(--focus); outline-offset: var(--focus-off); }
.scr-walk .sheet-send { margin-top: var(--space-5); }

.scr-walk .flag-pick { margin: var(--space-2) 0 0; color: var(--muted); font-size: var(--text-sm); line-height: var(--lh-snug); }

.scr-walk .rd-on { border-radius: var(--radius-sm); box-shadow: 0 0 0 var(--edge-strong) var(--border-strong); }
.scr-walk p.rd-on, .scr-walk h2.rd-on { background: var(--surface-sunk); padding-inline: var(--space-1); margin-inline: calc(-1 * var(--space-1)); box-decoration-break: clone; }
.scr-walk .mfit-line.rd-on { background: var(--surface-sunk); }
.scr-walk .mfit .mk.rd-on { box-shadow: 0 0 0 var(--edge-strong) var(--border-strong); }

.scr-walk .player { display: grid; gap: var(--space-2); padding: var(--space-3) var(--gutter); border-top: var(--hairline) solid var(--border); background: var(--surface); }
.scr-walk .rd-state { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); margin: 0; font-size: var(--text-sm); font-weight: var(--weight-announce); color: var(--muted); line-height: var(--lh-snug); }
.scr-walk .rd-state .ico { width: var(--ico-sm); height: var(--ico-sm); }
.scr-walk .rd-count { font-weight: var(--weight-read); }
.scr-walk .rd-cap { margin: 0; color: var(--fg); line-height: var(--lh-snug); text-wrap: pretty; }
.scr-walk .player-row { display: flex; align-items: center; gap: var(--space-1); }
.scr-walk .player-row .icon-btn { color: var(--brand); }
.scr-walk .player-row .icon-btn:disabled { color: var(--border-strong); }
.scr-walk .player-row .ico { width: var(--ico-md); height: var(--ico-md); }
.scr-walk .player-stop { margin-inline-start: auto; }

.scr-walk .msg--safe { align-self: stretch; max-width: 100%; }

.scr-walk .msg--held { align-self: stretch; max-width: 100%; padding: 0; background: none; border: 0; }
.scr-walk .msg--held .msg-held-t {
  display: flex; align-items: center; gap: var(--space-2); margin: 0;
  color: var(--muted); font-size: var(--text-sm); line-height: var(--lh-snug);
}
.scr-walk .msg--held .ico { flex: none; width: var(--ico-sm); height: var(--ico-sm); }

.scr-walk .safety { grid-template-columns: minmax(0, 1fr); margin-top: 0; max-inline-size: none; padding: var(--space-4); }
.scr-walk .safety p { margin: 0; text-wrap: pretty; }

.scr-walk .safety .hint { display: block; max-inline-size: none; }
.scr-walk .safety p + p, .scr-walk .safety .hint { margin-top: var(--space-3); }
.scr-walk .safety-h { display: flex; align-items: flex-start; gap: var(--space-2); font-weight: var(--weight-announce); }
.scr-walk .safety-h .ico { flex: none; width: var(--ico-md); height: var(--ico-md); margin-top: 0.15em; color: var(--info); }
.scr-walk .safety .btn-primary { margin-top: var(--space-4); }

.scr-walk .safety-org { margin-top: var(--space-4); padding-top: var(--space-3); border-top: var(--hairline) solid var(--border); }
.scr-walk .safety-org p { color: var(--muted); font-size: var(--text-sm); line-height: var(--lh-snug); }
.scr-walk .safety-org p + p { margin-top: var(--space-1); }
.scr-walk .safety-org-k { font-weight: var(--weight-announce); }

.scr-walk .limit { margin-top: var(--space-6); }

.scr-walk .inline-tap {
  position: relative; z-index: 1; white-space: nowrap;
  color: var(--brand); font-weight: var(--weight-announce);
}
.scr-walk .inline-tap::after {
  content: ""; position: absolute;
  inset-inline: calc(-1 * var(--space-2)); min-width: var(--tap-min);
  top: 50%; height: max(var(--tap-min), calc(var(--tap) - var(--space-1)));
  transform: translateY(-50%);
}

.scr-walk button.inline-tap {
  display: inline; padding: 0; border: 0; background: transparent;
  font: inherit; font-weight: var(--weight-announce); color: var(--brand);
  text-decoration: underline; text-decoration-thickness: var(--hairline); text-underline-offset: 0.2em;
  cursor: pointer;
}
.scr-walk button.inline-tap:active { color: var(--fg); }
@media (hover: hover) { .scr-walk button.inline-tap:hover { background: var(--brand-wash); } }

.scr-walk .soon-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-2); margin: var(--space-3) 0 0; padding: 0; list-style: none; }
.scr-walk .soon-list li { color: var(--muted); line-height: var(--lh-snug); text-wrap: pretty; max-inline-size: var(--measure); }
.scr-walk .method-note { margin: var(--space-4) 0 0; max-width: var(--measure); text-wrap: pretty; }

.scr-walk .sheet--ac { top: auto; height: calc(100% - var(--space-6) - var(--kb, 0px)); --sheet-max: none; padding-bottom: 0; }
.scr-walk .ac-scroll {
  flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain;
  margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter) var(--space-4);
}
.scr-walk .ac-line { margin: var(--space-1) 0 0; max-width: var(--measure); text-wrap: pretty; }
.scr-walk .ac-label { margin: var(--space-4) 0 0; color: var(--muted); font-size: var(--text-sm); font-weight: var(--weight-announce); line-height: var(--lh-snug); }
.scr-walk .ac-problem { margin-top: var(--space-1); }

.scr-walk .ac-rows { list-style: none; margin: var(--space-4) 0 0; padding: 0; display: grid; gap: var(--space-2); }
.scr-walk .ac-row { display: flex; align-items: center; gap: var(--space-3); }
.scr-walk .ac-x {
  flex: none; min-width: 2.1em; font-family: var(--font-math); font-size: var(--math);
  line-height: 1; color: var(--fg); white-space: nowrap;
}
.scr-walk .ac-x .katex { font-size: 1em; color: inherit; }
.scr-walk .ac-field {
  position: relative; flex: 1 1 auto; min-width: 0; min-height: var(--tap);
  display: flex; align-items: center; padding: var(--space-1) var(--space-3);
  border: var(--hairline) solid var(--border-strong); border-radius: var(--radius-sm); background: var(--bg);
  overflow-x: auto; scrollbar-width: none; cursor: text;
}
.scr-walk .ac-field::-webkit-scrollbar { display: none; }
.scr-walk .ac-field.is-active { border-color: var(--brand); }
.scr-walk .ac-field:focus-within { outline: var(--focus-w) solid var(--focus); outline-offset: var(--focus-off); }

.scr-walk .ac-input {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0;
  border: 0; opacity: 0; background: transparent; color: transparent; caret-color: transparent; cursor: text;
}
.scr-walk .ac-show { display: inline-flex; align-items: center; white-space: nowrap; pointer-events: none; }

.scr-walk .ac-prev { font-family: var(--font-math); font-size: var(--math); line-height: 1.2; color: var(--fg); white-space: nowrap; }
.scr-walk .ac-prev .katex { font-size: 1em; color: var(--fg); }
.scr-walk .ac-ph { color: var(--muted); }
.scr-walk .ac-caret { display: none; width: var(--edge-strong); height: 1.2em; margin-left: 2px; background: var(--fg); }
.scr-walk .ac-field:focus-within .ac-caret { display: inline-block; }
@media (prefers-reduced-motion: no-preference) {
  .scr-walk .ac-field:focus-within .ac-caret { animation: ac-blink-scr-walk 1s steps(1) infinite; }
}
@keyframes ac-blink-scr-walk { 50% { opacity: 0; } }
.scr-walk .ac-del { color: var(--muted); }
.scr-walk .ac-add { margin-top: var(--space-2); }
.scr-walk .ac-plus { font-size: var(--text-md); line-height: 1; }
.scr-walk .ac-none {

  display: flex; align-items: center; gap: var(--space-3); min-height: var(--tap);
  margin-top: var(--space-1); cursor: pointer;
}
.scr-walk .ac-none input { flex: none; width: var(--control-size); height: var(--control-size); margin: 0; accent-color: var(--brand); }
.scr-walk .ac-err { display: flex; align-items: flex-start; gap: var(--space-2); margin: var(--space-2) 0 0; color: var(--fg); font-size: var(--text-sm); line-height: var(--lh-snug); }
.scr-walk .ac-err .ico { width: var(--ico-sm); height: var(--ico-sm); margin-top: 0.1em; color: var(--warn); }

.scr-walk .ac-foot {
  flex: none; margin: 0 calc(-1 * var(--gutter)); padding: var(--space-3) var(--gutter) 0;
  border-top: var(--hairline) solid var(--border); background: var(--bg);
}

.scr-walk .sheet--ac.is-result { height: auto; --sheet-max: 85%; padding-bottom: var(--sheet-pad-b); }
.scr-walk .sheet--ac.is-result .ac-scroll { margin-inline: 0; padding-inline: 0; }
.scr-walk .sheet--ac.is-result .ac-foot { padding-bottom: var(--space-5); }
.scr-walk .ac-left { margin: var(--space-2) 0 0; text-align: center; color: var(--muted); font-size: var(--text-sm); line-height: var(--lh-snug); }

.scr-walk .ac-keypad {
  flex: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-2);
  margin: var(--space-3) calc(-1 * var(--gutter)) 0;
  padding: var(--space-3) var(--gutter) calc(var(--space-4) + env(safe-area-inset-bottom, 0px));
  border-top: var(--hairline) solid var(--border); background: var(--bg);
}
.scr-walk .ac-key {
  display: flex; align-items: center; justify-content: center;

  min-width: var(--tap-min); min-height: max(var(--tap-min), var(--tap)); padding: var(--space-1);
  border: 0; border-radius: var(--radius-sm); background: var(--surface); color: var(--fg);
  font-size: var(--text-md); font-weight: var(--weight-ui); line-height: 1;
}
.scr-walk .ac-key .katex { font-size: 1em; color: var(--fg); }
.scr-walk .ac-key:active { background: var(--surface-sunk); }
@media (hover: hover) { .scr-walk .ac-key:hover { background: var(--surface-sunk); } }

.scr-walk .ac-entries { list-style: none; margin: var(--space-2) 0 0; padding: 0; display: grid; gap: var(--space-2); }
.scr-walk .ac-entry { display: flex; align-items: center; gap: var(--space-3); min-height: var(--space-6); }
.scr-walk .ac-entry--none { font-weight: var(--weight-ui); }

.scr-walk .ac-result {
  display: block;
  margin-top: var(--space-5); padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-sm); color: var(--fg);
}
.scr-walk .ac-result:focus { outline: none; }
.scr-walk .ac-result:focus-visible { outline: var(--focus-w) solid var(--focus); outline-offset: var(--focus-off); }
.scr-walk .ac-result p { margin: 0; text-wrap: pretty; }
.scr-walk .ac-result-txt { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-1); }
.scr-walk .ac-result-h { font-size: var(--text-md); font-weight: var(--weight-announce); line-height: var(--lh-snug); }
.scr-walk .ac-result-h .ico { display: inline-block; width: var(--ico-lg); height: var(--ico-lg); margin-right: var(--space-2); vertical-align: -0.18em; }
.scr-walk .ac-result--success { background: var(--success-wash); }
.scr-walk .ac-result--success .ico { color: var(--success); }
.scr-walk .ac-result--warn { background: var(--warn-wash); }
.scr-walk .ac-result--warn .ico { color: var(--warn); }
.scr-walk .ac-result--info { background: var(--info-wash); }
.scr-walk .ac-result--info .ico { color: var(--info); }

.scr-walk .ac-left--here { margin-top: var(--space-3); text-align: left; }
.scr-walk .ac-actions { display: grid; gap: var(--space-3); margin-top: var(--space-4); }
.scr-walk .ac-more {
  display: grid; justify-items: start; gap: var(--space-1);
  padding-top: var(--space-3); border-top: var(--hairline) solid var(--border);
}

.scr-walk .figlayout { container-type: inline-size; }
.scr-walk .figlayout-in { display: grid; grid-template-columns: minmax(0, 1fr); }
@container (min-width: 640px) {
  .scr-walk .figlayout-in { grid-template-columns: minmax(0, 1fr) minmax(0, 22rem); column-gap: var(--space-6); align-items: start; }
  .scr-walk .figlayout-fig { position: sticky; top: var(--space-5); }
  .scr-walk .figlayout-fig .diagram { margin-top: var(--space-6); }
}

.scr-walk .diagram { margin: var(--space-4) 0 0; }

.scr-walk .fig-stage {
  display: block; width: 100%; padding: 0; overflow: hidden;
  border: var(--hairline) solid var(--border); border-radius: var(--radius-sm);
  background: var(--bg); color: inherit; text-align: left;
}
.scr-walk .fig-stage:active { background: var(--surface); }
@media (hover: hover) { .scr-walk .fig-stage:hover { border-color: var(--border-strong); } }
.scr-walk .fig-stage:focus-visible { outline: var(--focus-w) solid var(--focus); outline-offset: var(--focus-off); }
.scr-walk .fig-stage svg, .scr-walk .figfull-in svg { display: block; width: 100%; height: auto; }

.scr-walk .fig-stage--still { cursor: default; }
@media (hover: hover) { .scr-walk .fig-stage--still:hover { border-color: var(--border); } }
.scr-walk .fig-cap { margin: var(--space-2) 0 0; color: var(--muted); font-size: var(--text-sm); line-height: var(--lh-snug); }
.scr-walk .fig-acts { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); margin-top: var(--space-2); }
.scr-walk .fig-desc { margin-top: var(--space-3); }
.scr-walk .fig-list { list-style: disc; display: grid; gap: var(--space-1); margin: 0; padding: 0 var(--space-4) var(--space-4) calc(var(--space-5) + var(--space-2)); animation: rise-in var(--dur-enter) var(--ease-out); }
.scr-walk .fig-list li { line-height: var(--lh-snug); text-wrap: pretty; }

.scr-walk .f-grid { fill: none; stroke: var(--border); stroke-width: 1; }
.scr-walk .f-axis { fill: none; stroke: var(--border-strong); stroke-width: 1.25; }
.scr-walk .f-mark { fill: none; stroke: var(--border-strong); stroke-width: 1.25; }
.scr-walk .f-ink { fill: none; stroke: var(--fg); stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.scr-walk .f-dash { fill: none; stroke: var(--border-strong); stroke-width: 1.25; stroke-dasharray: 5 4; }
.scr-walk .f-hi { fill: none; stroke: var(--brand); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.scr-walk .f-hi-dash { fill: none; stroke: var(--brand); stroke-width: 2; stroke-dasharray: 6 4; }
.scr-walk .f-dot { fill: var(--fg); stroke: none; }
.scr-walk .f-hi-dot { fill: var(--brand); stroke: var(--bg); stroke-width: 2.5; }
.scr-walk .f-plate { fill: var(--mark-1); stroke: none; }

.scr-walk .f-rule { fill: none; stroke: var(--fg); stroke-width: 1.25; stroke-linecap: round; }
.scr-walk .f-rule--m { stroke: var(--muted); stroke-width: 1.1; }
.scr-walk .f-rule--hi { stroke: var(--brand); stroke-width: 1.5; }
.scr-walk .f-t { fill: var(--fg); font-family: var(--font-ui); font-size: 13px; font-weight: 500; }
.scr-walk .f-t--m { fill: var(--muted); font-size: 12px; font-weight: 400; }
.scr-walk .f-t--hi { fill: var(--brand); font-weight: 600; }

.scr-walk .layer--fig { z-index: 5; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; background: var(--bg); animation: fade-in var(--dur-enter) var(--ease-out); }
.scr-walk .figfull-bar { display: flex; align-items: center; gap: var(--space-2); padding: var(--space-2) var(--space-2) var(--space-2) var(--gutter); border-bottom: var(--hairline) solid var(--border); }
.scr-walk .figfull-t { flex: 1 1 0; min-width: 0; margin: 0; font-family: var(--font-display); font-size: var(--text-md); font-weight: var(--weight-announce); line-height: var(--lh-tight); letter-spacing: var(--track-head); overflow-wrap: anywhere; }
.scr-walk .figfull-stage { position: relative; overflow: hidden; display: grid; place-items: center; padding: var(--space-4); touch-action: none; }
.scr-walk .figfull-in { width: 100%; max-width: 32rem; transform-origin: center center; }
.scr-walk .figfull-foot { padding: var(--space-3) var(--gutter) var(--space-4); border-top: var(--hairline) solid var(--border); }
.scr-walk .fig-hint { margin: 0; font-size: var(--text-sm); color: var(--muted); line-height: var(--lh-snug); }
.scr-walk .figzoom-acts { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); margin-top: var(--space-2); }
.scr-walk .figzoom-acts .icon-btn { border: var(--hairline) solid var(--border-strong); border-radius: var(--radius-sm); }
.scr-walk .zoom-g { font-size: var(--text-md); font-weight: var(--weight-announce); line-height: 1; }
.scr-walk .figfull-foot .fig-desc { margin-top: var(--space-3); }

.scr-walk .checks { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-2); margin: var(--space-4) 0 0; padding: 0; list-style: none; }
.scr-walk .check { grid-template-columns: var(--space-6) minmax(0, 1fr) auto; column-gap: var(--space-2); }

.scr-walk .check-dot { justify-self: center; align-self: start; width: 6px; height: 6px; margin-top: 0.62em; border-radius: 50%; background: var(--border-strong); }
.scr-walk .check[aria-pressed="true"] .check-dot { background: var(--brand); }
.scr-walk .check-t { text-wrap: pretty; }
.scr-walk .check[aria-pressed="true"] .check-t { color: var(--muted); }
.scr-walk .paper-stage { padding-bottom: var(--space-2); }

.scr-walk .is-new { animation: rise-in var(--dur-enter) var(--ease-out); }

html.is-large-text .scr-walk .dock { --dock-pad: var(--space-3); }
html.is-large-text .scr-walk .dock--split > *, html.is-large-text .scr-walk .dock-acts > * { inline-size: 100%; }
html.is-large-text .scr-walk .dock--split > .btn-primary, html.is-large-text .scr-walk .dock-acts > .btn-primary { order: -1; }
html.is-large-text .scr-walk .dock-acts { flex-wrap: wrap; }
html.is-large-text .scr-walk .dock-acts > * { flex: 1 1 100%; }

html.is-large-text .scr-walk .btn-primary, html.is-large-text .scr-walk .btn-spot { white-space: normal; text-wrap: balance; }

html.is-large-text .scr-walk .replay { margin-right: calc(-1 * var(--space-2)); }
html.is-large-text .scr-walk .prob, html.is-large-text .scr-walk .yband-body, html.is-large-text .scr-walk .stage, html.is-large-text .scr-walk .end-steps { --cue-out-l: var(--space-2); --cue-out-r: var(--space-2); }

html.is-large-text .scr-walk .sheet-term { font-size: var(--text-md); }

html.is-large-text .scr-walk .sheet-up { margin-top: 0; font-size: var(--text-sm); }
html.is-large-text .scr-walk .sheet--chat { height: calc(100% - var(--space-2) - var(--kb, 0px)); }
html.is-large-text .scr-walk .sheet--chat .thread { min-height: var(--tap); margin-top: var(--space-2); padding-top: var(--space-2); }
html.is-large-text .scr-walk .ask-row textarea {
  min-height: calc(3 * var(--lh-snug) * 1em + 2 * var(--space-3) + 2 * var(--hairline));
  max-height: calc(4 * var(--lh-snug) * 1em + 2 * var(--space-3) + 2 * var(--hairline));
}

.scr-walk .entry--slim .ask-row textarea { min-height: var(--tap); max-height: calc(var(--tap) * 2); padding: var(--space-2) var(--space-3); }
html.is-large-text .scr-walk .entry--slim .ask-row textarea {
  min-height: var(--tap);
  max-height: calc(2 * var(--lh-snug) * 1em + 2 * var(--space-2) + 2 * var(--hairline));
  padding: var(--space-2);
}
html.is-large-text .scr-walk .sheet--chat .thread--safe { margin-top: 0; padding-block: 0; }
html.is-large-text .scr-walk .sheet--chat .thread--safe .msg--safe { margin-inline: calc(-1 * var(--gutter)); max-width: none; }
html.is-large-text .scr-walk .sheet--chat .thread--safe .safety { padding: var(--space-2) var(--space-2) var(--space-3); border-radius: 0; }
html.is-large-text .scr-walk .sheet--chat .thread--safe .safety .btn-primary { margin-top: var(--space-3); padding-inline: var(--space-2); }

html.is-large-text .scr-walk .sheet--ac { height: calc(100% - var(--space-3) - var(--kb, 0px)); }
html.is-large-text .scr-walk .ac-keypad { padding-bottom: calc(var(--space-3) + env(safe-area-inset-bottom, 0px)); }
html.is-large-text .scr-walk .player { gap: var(--space-1); padding-block: var(--space-2); }

.scr-walk .pf-k { margin: 0; color: var(--muted); font-size: var(--text-sm); font-weight: var(--weight-announce); line-height: var(--lh-snug); }
.scr-walk .yband-body .pf-k { margin-top: var(--space-2); }
.scr-walk .prob .mfit + .pf-k, .scr-walk .yband-body .mfit + .pf-k { margin-top: var(--space-3); }

.scr-walk .row--pf .row-main { align-items: start; min-height: 0; padding-top: var(--space-3); }
.scr-walk .row--pf .row-num { padding-top: var(--space-2); }
.scr-walk .row-reason { margin: 0 0 var(--space-3) calc(var(--space-6) + var(--space-3)); color: var(--muted); line-height: var(--lh-snug); text-wrap: pretty; }

.scr-walk .yband-body .note { margin-top: var(--space-3); }

.scr-walk .yours-text { margin: var(--space-2) 0 0; max-width: var(--measure); font-size: var(--text-md); line-height: var(--lh-snug); text-wrap: pretty; }
.scr-walk .dead { margin-top: var(--space-6); }

.scr-walk .yband { margin: 0 calc(-1 * var(--gutter)); padding: var(--space-2) var(--space-3) var(--space-3); background: var(--surface-sunk); }

.scr-walk .yband-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0; }

.scr-walk .yband-row > .link-btn + .link-btn { margin-inline: 0 calc(-1 * var(--space-2)); }

.scr-walk .yband-btn { gap: var(--space-1); color: var(--fg); font-weight: var(--weight-ui); }
.scr-walk .yband-btn .chev { flex: none; width: var(--ico-sm); height: var(--ico-sm); }

.scr-walk .yband-body { margin-top: var(--space-2); --cue-out-l: var(--space-2); --cue-out-r: var(--space-2); }
.scr-walk .yband-text { margin: 0; max-width: var(--measure); font-size: var(--text-md); line-height: var(--lh-snug); text-wrap: pretty; }
html.is-large-text .scr-walk .yband-row > * { flex: 1 1 100%; }

.scr-walk .figlayout-fig { display: none; }
.scr-walk .diagram--instep { margin-top: var(--space-5); }
@container (min-width: 640px) {
  .scr-walk .figlayout-fig { display: block; }
  .scr-walk .diagram--instep { display: none; }
}

/* walkthrough-surroundings-r10.html → .scr-around */
.scr-around {
  --trace-pair: 500ms;
}
.scr-around .dock--split { flex-wrap: wrap-reverse; }

.scr-around .dock--split > .btn-spot { flex: 1 0 auto; inline-size: auto; }
.scr-around .dock--split > .btn-primary { flex: 999 1 auto; inline-size: auto; }

.scr-around .prob, .scr-around .step-res, .scr-around .stage, .scr-around .end-steps, .scr-around .cur { --cue-out-l: var(--space-4); --cue-out-r: var(--space-4); }
.scr-around .rows { --cue-out-l: 0px; --cue-out-r: 0px; }
.scr-around .callout--success { --cue-out-l: var(--space-2); --cue-out-r: var(--space-2); }

.scr-around .step-res.is-tracing .mfit .mk, .scr-around .cur[data-pf] .mfit .mk { background: transparent; }
.scr-around .step-res.is-tracing .mfit .mk::before, .scr-around .cur[data-pf] .mfit .mk::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; }
.scr-around .step-res.is-tracing .mfit .mk1::before, .scr-around .cur[data-pf] .mfit .mk1::before { background: var(--mark-1); }
.scr-around .step-res.is-tracing .mfit .mk2::before, .scr-around .cur[data-pf] .mfit .mk2::before { background: var(--mark-2); }
.scr-around .step-res.is-tracing .mfit .mk3::before, .scr-around .cur[data-pf] .mfit .mk3::before { background: var(--mark-3); }

@keyframes mk-src-scr-around { from { opacity: 0.35; } to { opacity: 1; } }
@keyframes mk-res-scr-around { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: no-preference) {
  .scr-around .step-res.is-tracing .mfit[data-ctx="prev"] .mk::before { animation: mk-src-scr-around calc(var(--trace-pair) * 0.4) var(--ease-out) both; }
  .scr-around .step-res.is-tracing .mfit[data-ctx="res"]  .mk::before { animation: mk-res-scr-around calc(var(--trace-pair) * 0.6) var(--ease-out) both; }
  .scr-around .step-res.is-tracing .mfit[data-ctx="prev"] .mk1::before { animation-delay: 0ms; }
  .scr-around .step-res.is-tracing .mfit[data-ctx="prev"] .mk2::before { animation-delay: calc(var(--trace-pair) * 1); }
  .scr-around .step-res.is-tracing .mfit[data-ctx="prev"] .mk3::before { animation-delay: calc(var(--trace-pair) * 2); }
  .scr-around .step-res.is-tracing .mfit[data-ctx="res"]  .mk1::before { animation-delay: calc(var(--trace-pair) * 0.4); }
  .scr-around .step-res.is-tracing .mfit[data-ctx="res"]  .mk2::before { animation-delay: calc(var(--trace-pair) * 1.4); }
  .scr-around .step-res.is-tracing .mfit[data-ctx="res"]  .mk3::before { animation-delay: calc(var(--trace-pair) * 2.4); }
}

.scr-around .cur[data-pf] .mfit .mk::before { opacity: 0; }
.scr-around .cur[data-pf="1"] .mfit .mk1::before,
.scr-around .cur[data-pf="2"] .mfit .mk2::before,
.scr-around .cur[data-pf="3"] .mfit .mk3::before { opacity: 1; }

.scr-around .yours-label, .scr-around .read-label, .scr-around .prev-label, .scr-around .chat-head, .scr-around .cur-count, .scr-around .walk-count, .scr-around .sheet-stands, .scr-around .entry-label, .scr-around .skel-label {
  margin: 0; font-size: var(--text-sm); font-weight: var(--weight-announce); line-height: var(--lh-snug);
}
.scr-around .yours-label, .scr-around .read-label, .scr-around .prev-label, .scr-around .chat-head, .scr-around .skel-label { color: var(--muted); }
.scr-around .cur-count, .scr-around .walk-count { color: var(--brand); }
.scr-around .chat-head { text-wrap: balance; }

.scr-around .sect { margin-top: var(--space-6); padding-top: var(--space-5); border-top: var(--hairline) solid var(--border); }
.scr-around .prob, .scr-around .step-res, .scr-around .stage, .scr-around .end-steps { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-1); }
.scr-around .prob { padding-bottom: 0; }
.scr-around .prob .chip { margin-bottom: var(--space-1); }
.scr-around .plan { margin: 0; color: var(--muted); text-wrap: pretty; }

.scr-around .row + .row { border-top: var(--hairline) solid var(--border); }
.scr-around .row-main { display: grid; grid-template-columns: var(--space-6) minmax(0, 1fr) auto; align-items: center; column-gap: var(--space-3); min-height: var(--tap); }
.scr-around .row-num { display: block; text-align: center; font-family: var(--font-display); font-size: var(--text-md); font-weight: var(--weight-announce); color: var(--brand); line-height: var(--lh-snug); }
.scr-around .row-tog .chev { width: var(--ico-sm); height: var(--ico-sm); color: var(--muted); }
.scr-around .row-detail { padding: 0 0 var(--space-4) calc(var(--space-6) + var(--space-3)); animation: rise-in var(--dur-enter) var(--ease-out); }
.scr-around .row-do { margin: 0 0 var(--space-2); }

.scr-around .cur-head { display: flex; align-items: center; gap: var(--space-3); margin-bottom: var(--space-2); }
.scr-around .cur-num {
  display: flex; align-items: center; justify-content: center; flex: none;
  width: var(--space-6); height: var(--space-6); border-radius: var(--radius-pill);
  background: var(--brand); color: var(--bg);
  font-family: var(--font-display); font-size: var(--text-md); font-weight: var(--weight-announce); line-height: 1;
}
.scr-around .step-do { margin: 0 0 var(--space-3); font-size: var(--text-md); font-weight: var(--weight-ui); line-height: var(--lh-snug); text-wrap: pretty; }
.scr-around .step-do:focus, .scr-around .end-head:focus { outline: none; }
.scr-around .step-do:focus-visible, .scr-around .end-head:focus-visible { outline: var(--focus-w) solid var(--focus); outline-offset: var(--focus-off); }

.scr-around .note--ai { color: var(--info); font-weight: var(--weight-announce); }

.scr-around .callout > .mfit, .scr-around .callout > .callout-and { grid-column: 2; }
.scr-around .callout-and { margin: 0; color: var(--muted); }

.scr-around h2.callout-t { font-family: var(--font-display); font-size: var(--text-md); letter-spacing: var(--track-head); line-height: var(--lh-tight); }

.scr-around .band { margin: 0 0 var(--space-5); }

.scr-around .hint-row { display: flex; align-items: center; justify-content: flex-end; gap: 0; }
.scr-around .hint-row .hint { flex: 1 1 auto; min-width: 0; margin-block-start: 0; }
.scr-around .replay {
  position: relative; z-index: 1; flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: max(var(--tap-min), calc(var(--tap) - var(--space-1)));
  height: max(var(--tap-min), calc(var(--tap) - var(--space-1)));
  margin-right: calc(-1 * var(--space-4)); padding: 0;
  border: 0; border-radius: var(--radius-sm); background: transparent; color: var(--brand);
}
.scr-around .replay .ico { width: var(--ico-sm); height: var(--ico-sm); }
.scr-around .replay:active { background: var(--surface-sunk); }
@media (hover: hover) { .scr-around .replay:hover { background: var(--brand-wash); } }

.scr-around .tbtn--src { align-items: flex-start; padding-block: var(--space-2); }

.scr-around .tbtn--src .method-src { flex: 1 1 auto; min-width: 0; margin: 0; }
.scr-around .tbtn--src .chev { flex: none; margin-top: 0.15em; }

.scr-around .how-panel {
  margin-top: var(--space-4);
  border: var(--hairline) solid var(--border); border-radius: var(--radius-md);
  background: var(--surface);
}
.scr-around .row-detail .how-panel { margin-top: var(--space-2); }
.scr-around .how-head {
  display: flex; align-items: center; gap: var(--space-2);
  width: 100%; min-height: var(--tap); margin: 0; padding: var(--space-2) var(--space-4);
  border: 0; border-radius: var(--radius-md); background: transparent;
  color: var(--brand); font-weight: var(--weight-announce); line-height: var(--lh-snug); text-align: start;
}
.scr-around .how-head .ico { width: var(--ico-md); height: var(--ico-md); }
.scr-around .how-head-t { flex: 1 1 auto; min-width: 0; }
.scr-around .how-head .chev { flex: none; width: var(--ico-sm); height: var(--ico-sm); }
.scr-around .how-panel.is-open .how-head { border-radius: var(--radius-md) var(--radius-md) 0 0; }
.scr-around .how-head:active { background: var(--surface-sunk); }
@media (hover: hover) { .scr-around .how-head:hover { background: var(--surface-sunk); } }
.scr-around .how-head:focus-visible { outline: var(--focus-w) solid var(--focus); outline-offset: calc(-1 * var(--focus-off)); }

.scr-around .how-list { list-style: none; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-4); margin: 0; padding: 0 var(--space-4) var(--space-4); animation: rise-in var(--dur-enter) var(--ease-out); }
.scr-around .how-item { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-1); }
.scr-around .how-item .mfit { margin-left: calc(var(--space-5) + var(--space-3)); }
.scr-around .how-label { margin: 0; }
.scr-around .how-pick {
  display: grid; grid-template-columns: var(--space-5) minmax(0, 1fr); align-items: start; column-gap: var(--space-3);
  width: calc(100% + var(--space-4)); min-height: var(--tap); margin: 0 calc(-1 * var(--space-2));
  padding-inline: var(--space-2);

  padding-block: max(var(--space-1), calc((var(--tap) - var(--lh-body) * 1em) / 2));
  border: 0; border-radius: var(--radius-sm); background: transparent; color: var(--fg); text-align: start;
}
.scr-around .how-pick .how-label { display: block; }
.scr-around .how-pick .pair-dot { margin-top: calc((var(--lh-body) * 1em - var(--space-5)) / 2); }
.scr-around button.how-pick:active { background: var(--surface-sunk); }
@media (hover: hover) { .scr-around button.how-pick:hover { background: var(--bg); } }
.scr-around .how-pick[aria-pressed="true"] { background: var(--bg); box-shadow: inset 0 0 0 var(--hairline) var(--border-strong); }
.scr-around .how-pick:focus-visible { outline: var(--focus-w) solid var(--focus); outline-offset: calc(-1 * var(--focus-off)); }
.scr-around .pair-dot {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: var(--space-5); height: var(--space-5); border-radius: var(--radius-pill);
  box-shadow: inset 0 0 0 var(--hairline) var(--border-strong); color: var(--fg);
  font-family: var(--font-ui); font-size: var(--text-sm); font-weight: var(--weight-announce); line-height: 1; letter-spacing: 0;
}
.scr-around .pair-dot--0 { background: var(--bg); color: var(--muted); }
.scr-around .pair-dot--1 { background: var(--mark-1); }
.scr-around .pair-dot--2 { background: var(--mark-2); }
.scr-around .pair-dot--3 { background: var(--mark-3); }

.scr-around .link-btn--quiet { color: var(--muted); font-weight: var(--weight-ui); }
.scr-around .link-btn--quiet:hover, .scr-around .link-btn--quiet.is-hover { background: var(--surface); }

.scr-around .yours-text { margin: var(--space-3) 0 0; max-width: var(--measure); font-size: var(--text-md); line-height: var(--lh-snug); text-wrap: pretty; }
.scr-around .kicker { display: flex; align-items: center; gap: var(--space-2); margin: 0; color: var(--success); font-weight: var(--weight-announce); }
.scr-around .end-head { margin: 0; font-family: var(--font-display); font-size: var(--text-lg); font-weight: var(--weight-announce); line-height: var(--lh-tight); letter-spacing: var(--track-head); }
.scr-around .stage { padding-bottom: var(--space-2); }
.scr-around .stage-note { margin: 0; max-width: var(--measure); color: var(--muted); text-wrap: pretty; }
.scr-around .end-acts { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: start; margin-top: var(--space-4); }

.scr-around .recipe-list { list-style: none; counter-reset: r; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-3); margin: var(--space-4) 0 0; padding: 0; }
.scr-around .recipe-list li { counter-increment: r; display: grid; grid-template-columns: var(--space-6) minmax(0, 1fr); column-gap: var(--space-3); }
.scr-around .recipe-list li::before { content: counter(r); font-family: var(--font-display); font-weight: var(--weight-announce); font-size: var(--text-md); line-height: var(--lh-snug); color: var(--brand); text-align: center; }
.scr-around .recipe-list li > span { text-wrap: pretty; }
.scr-around .end-steps .sec-h { margin-top: var(--space-3); }

.scr-around .end-more { margin-top: var(--space-4); padding-top: var(--space-3); border-top: var(--hairline) solid var(--border); }

.scr-around .gloss {
  position: relative; z-index: 1; display: inline; padding: 0; margin: 0;
  border: 0; border-radius: var(--radius-sm); background: transparent; font: inherit; color: inherit;
}
.scr-around .gloss::after {
  content: ""; position: absolute;
  inset-inline: calc(-1 * var(--space-2)); min-width: var(--tap-min);
  top: 50%; height: max(var(--tap-min), calc(var(--tap) - var(--space-1)));
  transform: translateY(-50%);
}
.scr-around .gloss-t { text-decoration: underline dotted var(--brand); text-decoration-thickness: var(--edge-strong); text-underline-offset: 0.2em; }
.scr-around .gloss:active .gloss-t { text-decoration-color: var(--fg); }
@media (hover: hover) { .scr-around .gloss:hover { background: var(--brand-wash); } }

.scr-around .sheet--walk, .scr-around .sheet--chat, .scr-around .sheet--method, .scr-around .sheet--curric, .scr-around .sheet--fb { overflow: hidden; }
.scr-around .sheet.is-swapping { overflow: hidden; }

.scr-around .sheet-up { align-self: start; margin-top: var(--space-1); }
.scr-around .sheet-up .chev { width: var(--ico-sm); height: var(--ico-sm); }
.scr-around .sheet-mean { margin: var(--space-3) 0 0; text-wrap: pretty; }
.scr-around .sheet-ex { margin: var(--space-4) 0 0; padding: var(--space-3) var(--space-4); border-radius: var(--radius-sm); background: var(--surface); }
.scr-around .sheet-stands { margin: var(--space-2) 0 0; color: var(--muted); }

.scr-around .sheet--method .sheet-scroll, .scr-around .sheet--curric .sheet-scroll { margin-inline: calc(-1 * var(--space-2)); padding: 0 var(--space-2) var(--space-4); }

.scr-around .sheet .opts + .sec-h { margin-block-start: var(--space-5); }

.scr-around .spot-list { list-style: none; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-2); margin: var(--space-4) 0 0; padding: 0; }
.scr-around .spot-opt {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; column-gap: var(--space-3);
  width: 100%; min-height: calc(var(--tap) + var(--space-2)); padding: var(--space-2) var(--space-3);
  border: var(--hairline) solid var(--border-strong); border-radius: var(--radius-sm);
  background: transparent; color: var(--fg); text-align: start; font-weight: var(--weight-ui);
}
.scr-around .spot-opt > .ico:first-child { color: var(--brand); width: var(--ico-lg); height: var(--ico-lg); }
.scr-around .spot-opt > .ico:last-child { width: var(--ico-sm); height: var(--ico-sm); color: var(--muted); }
.scr-around .spot-opt:active { background: var(--surface-sunk); }
@media (hover: hover) { .scr-around .spot-opt:hover { background: var(--surface); } }

.scr-around .ai-label { margin: 0 0 var(--space-1); color: var(--info); font-size: var(--text-sm); font-weight: var(--weight-announce); line-height: var(--lh-snug); }

.scr-around .layer--walk .scrim { --scrim-strength: 12%; }
.scr-around .app[data-spot="walk"] .body { padding-bottom: calc(var(--space-8) * 7); }
.scr-around .sheet--walk { --sheet-max: calc(100% - var(--space-8)); }
.scr-around .sheet--walk .walk-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; margin-top: var(--space-3); padding-bottom: var(--space-1); }
.scr-around .walk-title {
  display: flex; align-items: flex-start; gap: var(--space-2); margin: var(--space-1) 0 0;
  font-family: var(--font-display); font-size: var(--text-md); font-weight: var(--weight-announce); line-height: var(--lh-tight); letter-spacing: var(--track-head);
}
.scr-around .walk-title > span { min-width: 0; }
.scr-around .walk-title .pair-dot { margin-top: 0.05em; }
.scr-around .walk-title:focus, .scr-around .walk-close:focus { outline: none; }
.scr-around .walk-text { margin: var(--space-2) 0 0; max-width: var(--measure); text-wrap: pretty; }
.scr-around .walk-body .mfit { margin-top: var(--space-3); }
.scr-around .walk-text .imath .katex, .scr-around .walk-title .imath .katex { font-size: 1.05em; }
.scr-around .walk-nav { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-4); }

.scr-around .walk-nav .btn-spot { flex: 1 1 auto; inline-size: auto; }

.scr-around .sheet--chat { top: auto; height: calc(100% - var(--space-7) - var(--kb, 0px)); --sheet-max: none; }
.scr-around .thread > .chat-head { flex: none; margin-bottom: var(--space-2); }
.scr-around .sheet--chat .thread {
  flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column;
  overflow-y: auto; overscroll-behavior: contain;
  margin: var(--space-3) calc(-1 * var(--gutter)) 0; padding: var(--space-4) var(--gutter) var(--space-2);
  border-top: var(--hairline) solid var(--border);
}
.scr-around .thread:focus-visible { outline: var(--focus-w) solid var(--focus); outline-offset: calc(-1 * var(--focus-off)); }
.scr-around .thread > .note { flex: none; margin: 0 0 var(--space-4); }
.scr-around .thread-list { list-style: none; display: flex; flex-direction: column; gap: var(--space-4); margin: auto 0 0; padding: 0; }
.scr-around .thread-empty { margin: auto 0 0; color: var(--muted); text-wrap: pretty; }
.scr-around .msg { max-width: 85%; }
.scr-around .msg p { margin: 0; }
.scr-around .msg-t { overflow-wrap: anywhere; text-wrap: pretty; }
.scr-around .msg--me { align-self: flex-end; padding: var(--space-2) var(--space-3); border-radius: var(--radius-md) var(--radius-md) var(--radius-sm) var(--radius-md); background: var(--surface); }
.scr-around .msg--ai { align-self: flex-start; }
.scr-around .msg .imath { white-space: nowrap; }
.scr-around .msg .imath .katex { font-size: 1.05em; }

.scr-around .sugg-wrap { display: grid; grid-template-columns: minmax(0, 1fr); margin-top: var(--space-2); }
.scr-around .thread > .sugg-wrap { flex: none; margin-top: var(--space-4); }
.scr-around .sugg { list-style: none; display: flex; flex-wrap: wrap; gap: var(--space-2); margin: 0; padding: 0; }
.scr-around .sugg-wrap .sugg-toggle + .sugg { margin-top: var(--space-1); }
.scr-around .sugg > li { display: flex; max-width: 100%; }
.scr-around .sugg-chip {
  display: inline-flex; align-items: center; min-height: var(--tap-min); max-width: 100%;
  padding: var(--space-2) var(--space-3);
  border: var(--hairline) solid var(--border-strong); border-radius: var(--radius-pill);
  background: transparent; color: var(--brand);
  font-size: var(--text-sm); font-weight: var(--weight-announce); line-height: var(--lh-snug);
  text-align: start; overflow-wrap: anywhere;
}
.scr-around .sugg-chip:active { background: var(--surface-sunk); }
@media (hover: hover) { .scr-around .sugg-chip:hover { background: var(--brand-wash); } }
.scr-around .sugg-toggle { justify-self: start; }

.scr-around .entry { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-1); margin-top: var(--space-3); }
.scr-around .ask-row { display: flex; align-items: flex-end; gap: var(--space-2); min-width: 0; }
.scr-around .ask-row textarea {
  flex: 1 1 0; width: 0; min-width: 0; min-height: var(--tap); max-height: calc(var(--tap) * 3);
  padding: var(--space-3); resize: none; overflow-y: auto;
  border: var(--hairline) solid var(--border-strong); border-radius: var(--radius-sm);
  background: var(--bg); color: var(--fg); line-height: var(--lh-snug);
}
.scr-around .ask-row textarea::placeholder { color: var(--muted); }
.scr-around .ask-send {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: var(--tap); height: var(--tap); min-width: var(--tap-min); min-height: var(--tap-min); padding: 0;
  border: var(--hairline) solid var(--border-strong); border-radius: var(--radius-sm);
  background: transparent; color: var(--brand);
}
.scr-around .ask-send:active { background: var(--surface-sunk); }
@media (hover: hover) { .scr-around .ask-send:hover { background: var(--brand-wash); } }

.scr-around .entry-count { justify-self: end; margin: 0; color: var(--muted); font-size: var(--text-sm); line-height: var(--lh-snug); font-variant-numeric: tabular-nums; }

.scr-around .entry-done { margin-top: var(--space-3); padding-top: var(--space-3); border-top: var(--hairline) solid var(--border); }
.scr-around .entry-done-t { margin: 0 0 var(--space-1); color: var(--muted); text-wrap: pretty; }

.scr-around .flag-row { margin: var(--space-3) 0 0; }
.scr-around .cur .flag-row { margin-top: var(--space-2); }
.scr-around .flag-link { font-weight: var(--weight-read); }
.scr-around .flag-link > span:not(.sr-only) { text-decoration: underline; text-decoration-color: var(--border-strong); text-decoration-thickness: var(--hairline); text-underline-offset: 0.2em; }
@media (hover: hover) { .scr-around .flag-link:hover > span:not(.sr-only) { text-decoration-color: var(--fg); } }

.scr-around .method { margin-top: var(--space-4); padding-top: var(--space-3); border-top: var(--hairline) solid var(--border); }
.scr-around .method-l { margin: 0; line-height: var(--lh-snug); text-wrap: pretty; }
.scr-around .method-l .method-k { color: var(--muted); }
.scr-around .method-src { margin-top: var(--space-1); }
.scr-around .method .tbtn { margin-top: var(--space-2); }

.scr-around .soon-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-2); margin: var(--space-3) 0 0; padding: 0; list-style: none; }
.scr-around .soon-list li { color: var(--muted); line-height: var(--lh-snug); text-wrap: pretty; max-inline-size: var(--measure); }

.scr-around .writing-h {
  margin: 0; font-family: var(--font-display); font-size: var(--text-md); font-weight: var(--weight-announce);
  line-height: var(--lh-tight); letter-spacing: var(--track-head);
}
.scr-around .writing-why { margin: var(--space-2) 0 0; max-width: var(--measure); color: var(--muted); line-height: var(--lh-snug); text-wrap: pretty; }
.scr-around .skel { margin-top: var(--space-5); }
.scr-around .skel-group { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-2); }
.scr-around .skel-label { margin-bottom: var(--space-1); }

.scr-around .skel-line--hero { --h: calc(var(--space-6) + var(--space-2)); }
.scr-around .skel-line--w70 { width: 70%; }
.scr-around .skel-line--w50 { width: 50%; }

.scr-around .dead { margin-top: var(--space-5); }
.scr-around .dead-acts { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: start; margin-top: var(--space-4); }

.scr-around .dead-tell { margin-top: var(--space-4); padding-top: var(--space-3); border-top: var(--hairline) solid var(--border); }

.scr-around .ask-match { margin: var(--space-4) 0 0; max-inline-size: var(--measure); font-weight: var(--weight-ui); line-height: var(--lh-snug); text-wrap: pretty; }

.scr-around .body > .note:first-child { margin: 0 0 var(--space-4); }
.scr-around .body > .sect:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.scr-around .body > .dead:first-child, .scr-around .body > .prob:first-child { margin-top: 0; }

.scr-around .fb-tick .pick { padding-block: var(--space-1); }
.scr-around .fb-tick .pick-txt > span:first-child { font-weight: var(--weight-ui); }
.scr-around .fb-tick .pick + .fb-help + .pick { margin-top: var(--space-3); }

.scr-around .sheet--ac { --sheet-pad-b: 0px; overflow: hidden; }
.scr-around .sheet-inner.is-leaving { pointer-events: none; }
.scr-around .ac-scroll { margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter) var(--space-4); }

.scr-around .sheet--ac.is-result > .sheet-inner > .ac-scroll { padding-block-end: calc(var(--space-5) + env(safe-area-inset-bottom, 0px)); }

.scr-around .ac-line { margin: var(--space-1) 0 0; max-inline-size: var(--measure); text-wrap: pretty; }
.scr-around .ac-label { margin: var(--space-4) 0 0; color: var(--muted); font-size: var(--text-sm); font-weight: var(--weight-announce); line-height: var(--lh-snug); }
.scr-around .ac-problem { margin-block-start: var(--space-1); }

.scr-around .ac-problem-words { margin: var(--space-1) 0 0; max-inline-size: var(--measure); text-wrap: pretty; }

.scr-around .ac-rows { list-style: none; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-2); margin: var(--space-4) 0 0; padding: 0; }
.scr-around .ac-row { display: flex; align-items: center; gap: var(--space-3); min-width: 0; }
.scr-around .ac-x { flex: none; min-inline-size: 2.1em; color: var(--fg); font-family: var(--font-math); font-size: var(--math); line-height: 1; white-space: nowrap; }
.scr-around .ac-x .katex { font-size: 1em; color: inherit; }
.scr-around .ac-field {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  min-block-size: var(--tap);
  display: flex;
  align-items: center;
  padding: var(--space-1) var(--space-3);
  background: var(--bg);
  border: var(--hairline) solid var(--border-strong);
  border-radius: var(--radius-sm);
  overflow-x: auto;
  scrollbar-width: none;
  cursor: text;
}
.scr-around .ac-field::-webkit-scrollbar { display: none; }
.scr-around .ac-field.is-active { border-color: var(--brand); }
.scr-around .ac-field:focus-within { outline: var(--focus-w) solid var(--focus); outline-offset: var(--focus-off); }

.scr-around .ac-input { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; margin: 0; padding: 0; background: transparent; border: 0; caret-color: transparent; color: transparent; cursor: text; opacity: 0; }
.scr-around .ac-show { display: inline-flex; align-items: center; white-space: nowrap; pointer-events: none; }

.scr-around .ac-prev { color: var(--fg); font-family: var(--font-math); font-size: var(--math); line-height: 1.2; white-space: nowrap; }
.scr-around .ac-prev .katex { font-size: 1em; color: var(--fg); }
.scr-around .ac-ph { color: var(--muted); }
.scr-around .ac-caret { display: none; inline-size: var(--hairline); block-size: 1.2em; margin-inline-start: var(--hairline); background: var(--fg); }
.scr-around .ac-field:focus-within .ac-caret { display: inline-block; }

@media (prefers-reduced-motion: no-preference) {
  .scr-around .ac-field:focus-within .ac-caret { animation: ac-blink-scr-around 1s steps(1) infinite; }
}
@keyframes ac-blink-scr-around { 50% { opacity: 0; } }
.scr-around .ac-del { color: var(--muted); }
.scr-around .ac-add { margin-block-start: var(--space-2); }
.scr-around .ac-plus { font-size: var(--text-md); line-height: 1; }
.scr-around .ac-add:disabled { color: var(--muted); }
.scr-around .ac-none { margin-block-start: var(--space-1); }

.scr-around .ac-err { display: flex; align-items: flex-start; gap: var(--space-2); margin: var(--space-2) 0 0; color: var(--fg); font-size: var(--text-sm); line-height: var(--lh-snug); }
.scr-around .ac-err .ico { flex: none; inline-size: var(--ico-sm); block-size: var(--ico-sm); margin-block-start: 0.1em; color: var(--warn); }

.scr-around .ac-foot { padding-block-start: var(--space-3); }
.scr-around .ac-foot .ac-left { margin: 0; }
.scr-around .ac-left { margin: var(--space-2) 0 0; color: var(--muted); font-size: var(--text-sm); line-height: var(--lh-snug); text-align: center; }

.scr-around .ac-left--here { margin-block-start: var(--space-3); text-align: start; }
.scr-around .ac-keypad {
  flex: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-2);
  margin: var(--space-3) calc(-1 * var(--gutter)) 0;
  padding: var(--space-3) var(--gutter) calc(var(--space-4) + env(safe-area-inset-bottom, 0px));
  background: var(--bg);
  border-block-start: var(--hairline) solid var(--border);
}
.scr-around .ac-key {
  display: flex;
  align-items: center;
  justify-content: center;

  min-inline-size: var(--tap-min);
  min-block-size: max(var(--tap-min), var(--tap));
  padding: var(--space-1);
  background: var(--surface);
  border: 0;
  border-radius: var(--radius-sm);
  color: var(--fg);
  font-size: var(--text-md);
  font-weight: var(--weight-ui);
  line-height: 1;
}
.scr-around .ac-key .katex { font-size: 1em; color: var(--fg); }
.scr-around .ac-key:hover, .scr-around .ac-key:active { background: var(--surface-sunk); }
.scr-around .ac-key:disabled { background: var(--surface); color: var(--border-strong); cursor: default; }

.scr-around .ac-entries { list-style: none; display: grid; gap: var(--space-2); margin: var(--space-2) 0 0; padding: 0; }
.scr-around .ac-entry { display: flex; align-items: center; gap: var(--space-3); min-block-size: var(--space-6); }
.scr-around .ac-entry--none { font-weight: var(--weight-ui); }

.scr-around .ac-result { display: block; margin-block-start: var(--space-5); padding: var(--space-3) var(--space-4); border-radius: var(--radius-sm); color: var(--fg); }
.scr-around .ac-result:focus { outline: none; }
.scr-around .ac-result:focus-visible { outline: var(--focus-w) solid var(--focus); outline-offset: var(--focus-off); }
.scr-around .ac-result p { margin: 0; text-wrap: pretty; }
.scr-around .ac-result-txt { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-1); }
.scr-around .ac-result-h { font-size: var(--text-md); font-weight: var(--weight-announce); line-height: var(--lh-snug); }
.scr-around .ac-result-h .ico { display: inline-block; inline-size: var(--ico-lg); block-size: var(--ico-lg); margin-inline-end: var(--space-2); vertical-align: -0.18em; }
.scr-around .ac-result--success { background: var(--success-wash); }
.scr-around .ac-result--success .ico { color: var(--success); }
.scr-around .ac-result--warn { background: var(--warn-wash); }
.scr-around .ac-result--warn .ico { color: var(--warn); }
.scr-around .ac-result--info { background: var(--info-wash); }
.scr-around .ac-result--info .ico { color: var(--info); }

.scr-around .ac-actions { display: grid; gap: var(--space-3); margin-block-start: var(--space-4); }
.scr-around .ac-more { display: grid; justify-items: start; gap: var(--space-1); padding-block-start: var(--space-3); border-block-start: var(--hairline) solid var(--border); }
.scr-around .ac-actions .btn-primary, .scr-around .ac-more .link-btn { min-width: 0; max-inline-size: 100%; }

.scr-around .is-new { animation: rise-in var(--dur-enter) var(--ease-out); }

html.is-large-text .scr-around .dock { --dock-pad: var(--space-3); }
html.is-large-text .scr-around .dock--split > * { inline-size: 100%; }
html.is-large-text .scr-around .dock--split > .btn-primary { order: -1; }

html.is-large-text .scr-around .btn-primary, html.is-large-text .scr-around .btn-spot { white-space: normal; text-wrap: balance; }

html.is-large-text .scr-around .replay { margin-right: calc(-1 * var(--space-2)); }
html.is-large-text .scr-around .prob, html.is-large-text .scr-around .yours, html.is-large-text .scr-around .stage, html.is-large-text .scr-around .end-steps, html.is-large-text .scr-around .cur { --cue-out-l: var(--space-2); --cue-out-r: var(--space-2); }

html.is-large-text .scr-around .yband-row > * { flex: 1 1 100%; }

html.is-large-text .scr-around .sheet-term { font-size: var(--text-md); }
.scr-around .sheet-head--one { gap: var(--space-2); }
.scr-around .sheet-head--one .sheet-term { font-size: var(--text-base); }
.scr-around .sheet-head--one .sheet-back { margin-inline-start: calc(-1 * var(--space-3)); }
html.is-large-text .scr-around .sheet--chat { height: calc(100% - var(--space-2) - var(--kb, 0px)); }
html.is-large-text .scr-around .sheet--chat .thread { min-height: var(--tap); margin-top: var(--space-2); padding-top: var(--space-2); }
html.is-large-text .scr-around .ask-row textarea {
  min-height: calc(3 * var(--lh-snug) * 1em + 2 * var(--space-3) + 2 * var(--hairline));
  max-height: calc(4 * var(--lh-snug) * 1em + 2 * var(--space-3) + 2 * var(--hairline));
}

html.is-large-text .scr-around .sheet--method, html.is-large-text .scr-around .sheet--curric, html.is-large-text .scr-around .sheet--fb { --sheet-max: calc(100% - var(--space-3)); }

html.is-large-text .scr-around .sheet--method .sheet-sub { display: none; }

html.is-large-text .scr-around .sheet--ac { height: calc(100% - var(--space-3) - var(--kb, 0px)); }
html.is-large-text .scr-around .ac-keypad { padding-bottom: calc(var(--space-3) + env(safe-area-inset-bottom, 0px)); }

.scr-around .yband { margin: 0 calc(-1 * var(--gutter)); padding: var(--space-2) var(--space-3) var(--space-3); background: var(--surface-sunk); }

.scr-around .yband-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0; }

.scr-around .yband-row > .link-btn + .link-btn { margin-inline: 0 calc(-1 * var(--space-2)); }

.scr-around .yband-btn { gap: var(--space-1); color: var(--fg); font-weight: var(--weight-ui); }
.scr-around .yband-btn .chev { flex: none; width: var(--ico-sm); height: var(--ico-sm); }

.scr-around .yband-body { margin-top: var(--space-2); --cue-out-l: var(--space-2); --cue-out-r: var(--space-2); }

/* answer-check-r13.html → .scr-check */
@container screen (max-width: 359px) { .scr-check .overlay-host { --gutter: var(--space-4); } }

.scr-check .prob, .scr-check .yours, .scr-check .stage, .scr-check .end-steps { --cue-out-l: var(--space-4); --cue-out-r: var(--space-4); }
.scr-check .cur { --cue-out-l: var(--space-4); --cue-out-r: var(--space-4); }
.scr-check .rows { --cue-out-l: 0px; --cue-out-r: 0px; }
.scr-check .check { --cue-out-l: var(--space-2); --cue-out-r: var(--space-2); }
.scr-check .prow-math { --cue-out-l: 0px; --cue-out-r: var(--space-2); }

.scr-check .prob { display: grid; gap: var(--space-1); padding-block-end: var(--space-4); }

.scr-check .prob > .chip, .scr-check .end-steps > .chip { justify-self: start; }
.scr-check .plan { margin: 0; color: var(--muted); text-wrap: pretty; }

.scr-check .done { padding-block-start: var(--space-3); border-block-start: var(--hairline) solid var(--border); }
.scr-check .done-head { margin: 0 0 var(--space-1); color: var(--muted); font-size: var(--text-sm); font-weight: var(--weight-announce); }
.scr-check .row + .row { border-block-start: var(--hairline) solid var(--border); }
.scr-check .row-main { display: grid; grid-template-columns: var(--space-6) minmax(0, 1fr) auto; align-items: center; column-gap: var(--space-3); min-block-size: var(--tap); }
.scr-check .row-num { display: block; color: var(--brand); font-family: var(--font-ui); font-size: var(--text-md); font-weight: var(--weight-announce); line-height: var(--lh-snug); text-align: center; font-variant-numeric: tabular-nums; }
.scr-check .row-tog .chev { inline-size: var(--ico-sm); block-size: var(--ico-sm); color: var(--muted); }
.scr-check .row-detail { padding: 0 0 var(--space-4) calc(var(--space-6) + var(--space-3)); animation: rise-in var(--dur-enter) var(--ease-out); }
.scr-check .row-do { margin: 0 0 var(--space-1); }

.scr-check .cur { display: block; margin-block-start: var(--space-3); padding-block-start: var(--space-5); border-block-start: var(--hairline) solid var(--border); }
.scr-check .cur-head { display: flex; align-items: center; gap: var(--space-3); margin-block-end: var(--space-2); }
.scr-check .cur-num {
  display: flex;
  align-items: center;
  justify-content: center;
  inline-size: var(--space-6);
  block-size: var(--space-6);
  background: var(--brand);
  border-radius: var(--radius-pill);
  color: var(--bg);
  font-family: var(--font-ui);
  font-size: var(--text-md);
  font-weight: var(--weight-announce);
  line-height: 1; font-variant-numeric: tabular-nums; }
.scr-check .cur-count { margin: 0; color: var(--brand); font-size: var(--text-sm); font-weight: var(--weight-announce); }
.scr-check .step-do { margin: 0; font-size: var(--text-md); font-weight: var(--weight-ui); line-height: var(--lh-snug); }
.scr-check .step-do:focus, .scr-check .end-head:focus { outline: none; }
.scr-check .step-do:focus-visible, .scr-check .end-head:focus-visible { outline: var(--focus-w) solid var(--focus); outline-offset: var(--focus-off); }

.scr-check .step-res { display: grid; margin-block-start: var(--space-3); }
.scr-check .prev-label { margin: 0; color: var(--muted); font-size: var(--text-sm); font-weight: var(--weight-announce); line-height: var(--lh-snug); }
.scr-check .cur-note { margin: var(--space-1) 0 0; color: var(--muted); font-size: var(--type-hint); line-height: var(--lh-snug); text-wrap: balance; }
.scr-check .note-row { display: flex; align-items: center; }
.scr-check .note-row .cur-note { flex: 1 1 auto; min-width: 0; margin: 0; }

.scr-check .replay { color: var(--brand); margin-inline-end: calc(-1 * var(--space-2)); }
.scr-check .replay .ico { inline-size: var(--ico-sm); block-size: var(--ico-sm); }

.scr-check .how-panel { margin-block-start: var(--space-4); background: var(--surface); border: var(--hairline) solid var(--border); border-radius: var(--radius-card); }
.scr-check .row-detail .how-panel { margin-block-start: var(--space-2); }
.scr-check .how-head {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  inline-size: 100%;
  min-block-size: var(--tap);
  margin: 0;
  padding: var(--space-2) var(--space-4);
  background: transparent;
  border: 0;
  border-radius: var(--radius-card);
  color: var(--brand);
  font-weight: var(--weight-announce);
  line-height: var(--lh-snug);
  text-align: start;
}
.scr-check .how-head .ico { inline-size: var(--ico-md); block-size: var(--ico-md); }
.scr-check .how-head-t { flex: 1 1 auto; min-width: 0; }
.scr-check .how-head .chev { flex: none; inline-size: var(--ico-sm); block-size: var(--ico-sm); }
.scr-check .how-panel.is-open .how-head { border-radius: var(--radius-card) var(--radius-card) 0 0; }
.scr-check .how-head:hover { background: var(--surface-sunk); }
.scr-check .how-head:active { background: var(--surface-sunk); }
.scr-check .how-head:focus-visible { outline: var(--focus-w) solid var(--focus); outline-offset: calc(-1 * var(--focus-off)); }

.scr-check .how-list { list-style: none; margin: 0; padding: 0 var(--space-4) var(--space-4); display: grid; gap: var(--space-4); animation: rise-in var(--dur-enter) var(--ease-out); }
.scr-check .how-item { display: grid; gap: var(--space-1); }
.scr-check .how-item .mfit { margin: 0; }
.scr-check .how-panel .how-label { margin: 0; }
.scr-check .how-pick {
  display: grid;
  grid-template-columns: var(--space-5) minmax(0, 1fr);
  align-items: center;
  column-gap: var(--space-3);
  inline-size: calc(100% + var(--space-4));
  min-block-size: var(--tap);
  margin: 0 calc(-1 * var(--space-2));
  padding: var(--space-1) var(--space-2);
  background: transparent;
  border: 0;
  border-radius: var(--radius-control);
  color: var(--fg);
  text-align: start;
}
.scr-check .how-pick .how-label { display: block; margin: 0; }
.scr-check button.how-pick:hover { background: var(--bg); }
.scr-check button.how-pick:active { background: var(--surface-sunk); }
.scr-check .how-pick[aria-pressed="true"] { background: var(--bg); box-shadow: inset 0 0 0 var(--hairline) var(--border-strong); }
.scr-check .how-pick:focus-visible { outline: var(--focus-w) solid var(--focus); outline-offset: calc(-1 * var(--focus-off)); }
.scr-check .how-pick--plain .how-label { color: var(--fg); }

.scr-check .pair-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  inline-size: var(--space-5);
  block-size: var(--space-5);
  border-radius: var(--radius-pill);
  box-shadow: inset 0 0 0 var(--hairline) var(--border-strong);
  color: var(--fg);
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  font-weight: var(--weight-announce);
  letter-spacing: 0;
  line-height: 1;
}
.scr-check .pair-dot--0 { background: transparent; color: var(--muted); }
.scr-check .how-panel .pair-dot--0 { background: var(--bg); }
.scr-check .pair-dot--1 { background: var(--mark-1); }
.scr-check .pair-dot--2 { background: var(--mark-2); }
.scr-check .pair-dot--3 { background: var(--mark-3); }

.scr-check .yours { margin-block-start: var(--space-6); padding-block-start: var(--space-5); border-block-start: var(--hairline) solid var(--border); }
.scr-check .yours-label { margin: 0; color: var(--muted); font-size: var(--text-sm); font-weight: var(--weight-announce); }
.scr-check .stage { display: grid; justify-items: start; gap: var(--space-1); padding: var(--space-2) 0 var(--space-5); text-align: start; }
.scr-check .kicker { display: flex; align-items: center; gap: var(--space-2); margin: 0; color: var(--success); font-weight: var(--weight-announce); }
.scr-check .end-head { margin: 0; font-family: var(--font-display); font-size: var(--text-lg); font-weight: var(--weight-announce); letter-spacing: var(--track-head); line-height: var(--lh-tight); }
.scr-check .stage .mfit { margin-block-start: var(--space-2); }
.scr-check .stage-note { margin: 0; max-inline-size: var(--measure); color: var(--muted); text-wrap: pretty; }
.scr-check .end-steps { display: grid; gap: var(--space-1); margin-block-start: var(--space-7); }
.scr-check .end-steps .done-head { margin-block-start: var(--space-3); }

.scr-check .recipe { padding-block-start: var(--space-5); border-block-start: var(--hairline) solid var(--border); }
.scr-check .eyebrow { margin: 0; color: var(--brand); font-size: var(--text-sm); font-weight: var(--weight-announce); line-height: var(--lh-snug); }
.scr-check .recipe-sub { margin: var(--space-1) 0 0; color: var(--muted); }
.scr-check .recipe-list { list-style: none; counter-reset: r; display: grid; gap: var(--space-3); margin: var(--space-4) 0 0; padding: 0; }
.scr-check .recipe-list li { counter-increment: r; display: grid; grid-template-columns: var(--space-6) minmax(0, 1fr); column-gap: var(--space-3); }
.scr-check .recipe-list li::before { content: counter(r); color: var(--brand); font-family: var(--font-ui); font-size: var(--text-md); font-weight: var(--weight-announce); line-height: var(--lh-snug); text-align: center; font-variant-numeric: tabular-nums; }
.scr-check .recipe + .link-btn { margin-block-start: var(--space-4); }
.scr-check .check { margin-block-start: var(--space-6); padding: var(--space-4) var(--space-4) var(--space-3); background: var(--success-wash); border-radius: var(--radius-card); }
.scr-check .check-h { display: flex; align-items: center; gap: var(--space-2); margin: 0; color: var(--success); font-size: var(--text-base); font-weight: var(--weight-announce); }
.scr-check .check-p { margin: var(--space-3) 0 0; }
.scr-check .check-and { margin: 0; color: var(--muted); }

.scr-check .dead { margin-block-start: var(--space-6); }

.scr-check .dead-screen .yours { margin-block-start: var(--space-2); padding-block-start: 0; border-block-start: 0; }
.scr-check .dead-words { margin: var(--space-2) 0 0; max-inline-size: var(--measure); text-wrap: pretty; }
.scr-check .dead-note { padding: var(--space-4); background: var(--warn-wash); border-radius: var(--radius-card); }
.scr-check .dead-h { display: flex; align-items: flex-start; gap: var(--space-2); margin: 0; color: var(--warn); font-size: var(--text-base); font-weight: var(--weight-announce); }
.scr-check .dead-h .ico { flex: none; margin-block-start: 0.1em; }
.scr-check .dead-p { margin: var(--space-2) 0 0; max-inline-size: var(--measure); text-wrap: pretty; }
.scr-check .dead-acts { display: grid; justify-items: start; gap: var(--space-1); margin-block-start: var(--space-4); }

.scr-check .wsh { margin: 0 0 var(--space-5); }
.scr-check .wsh-name { margin: 0; font-family: var(--font-display); font-size: var(--text-lg); font-weight: var(--weight-announce); letter-spacing: var(--track-head); line-height: var(--lh-tight); overflow-wrap: anywhere; }
.scr-check .wsh-meta { margin: var(--space-1) 0 0; color: var(--muted); font-size: var(--text-sm); line-height: var(--lh-snug); }
.scr-check .wsh-bar { display: block; inline-size: 100%; block-size: var(--progress-h); margin-block-start: var(--space-4); background: var(--border); border-radius: var(--radius-pill); overflow: hidden; }
.scr-check .wsh-bar > span { display: block; inline-size: 100%; block-size: 100%; background: var(--brand); transform: scaleX(var(--p, 0)); transform-origin: left center; }
.scr-check .wsh-prog { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-1) var(--space-2); margin: var(--space-2) 0 0; font-size: var(--text-sm); font-weight: var(--weight-ui); line-height: var(--lh-snug); }
.scr-check .wsh-instr {
  margin: var(--space-4) 0 0;
  max-inline-size: var(--measure);
  padding: var(--space-3) var(--space-4);
  background: var(--surface);
  border-radius: var(--radius-card);
  color: var(--muted);
  font-size: var(--text-sm);
  line-height: var(--lh-snug);
}
.scr-check .wsh-instr-l { display: block; margin-block-end: var(--space-1); font-weight: var(--weight-announce); }
.scr-check .plist { list-style: none; margin: 0; padding: 0; }
.scr-check .plist > li + li { border-block-start: var(--hairline) solid var(--border); }
.scr-check .prow { display: grid; grid-template-columns: var(--space-6) minmax(0, 1fr); align-items: center; column-gap: var(--space-2); min-block-size: var(--tap); padding: var(--space-2) 0; }
.scr-check .prow-n { display: flex; align-items: center; justify-content: center; min-block-size: var(--tap); color: var(--brand); font-family: var(--font-ui); font-size: var(--text-md); font-weight: var(--weight-announce); line-height: var(--lh-snug); font-variant-numeric: tabular-nums; }
.scr-check .prow-main, .scr-check .prow-math { min-width: 0; }
.scr-check .pstates { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-1) var(--space-3); margin: 0 0 var(--space-1); }
.scr-check .pstate { display: inline-flex; align-items: center; gap: var(--space-1); font-size: var(--text-sm); font-weight: var(--weight-ui); line-height: var(--lh-snug); }
.scr-check .pstate .ico { inline-size: var(--ico-sm); block-size: var(--ico-sm); }
.scr-check .pstate--practiced { color: var(--muted); }
.scr-check .pstate--checked { color: var(--success); }

.scr-check .sheet-stands { margin: 0; color: var(--muted); font-weight: var(--weight-announce); }
.scr-check .sheet-mean { margin: var(--space-3) 0 0; text-wrap: pretty; }
.scr-check .sheet-ex { margin: var(--space-4) 0 0; padding: var(--space-3) var(--space-4); background: var(--surface); border-radius: var(--radius-control); }

.scr-check .gloss { position: relative; z-index: 1; display: inline; margin: 0; padding: 0; background: transparent; border: 0; border-radius: var(--radius-control); color: inherit; font: inherit; }
.scr-check .gloss::before {
  content: "";
  position: absolute;
  inset-inline-start: 50%;
  inset-block-start: 50%;
  inline-size: max(calc(100% + var(--space-4)), var(--tap-min));
  block-size: max(var(--tap-min), calc(var(--tap) - var(--space-1)));
  translate: -50% -50%;
}
.scr-check .gloss-t { text-decoration: underline dotted var(--brand); text-decoration-thickness: var(--edge-strong); text-underline-offset: 0.2em; }
.scr-check .gloss:hover { background: var(--brand-wash); }

.scr-check .link-btn .spot-ico { flex: none; inline-size: var(--ico-em); block-size: var(--ico-em); }

.scr-check .is-new { animation: rise-in var(--dur-enter) var(--ease-out); }

.scr-check .sheet--ac { --sheet-pad-b: 0px; overflow: hidden; }
.scr-check .sheet-inner.is-leaving { pointer-events: none; }
.scr-check .ac-scroll { margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter) var(--space-4); }

.scr-check .sheet--ac.is-result > .sheet-inner > .ac-scroll { padding-block-end: calc(var(--space-5) + env(safe-area-inset-bottom, 0px)); }

.scr-check .ac-line { margin: var(--space-1) 0 0; max-inline-size: var(--measure); text-wrap: pretty; }
.scr-check .ac-label { margin: var(--space-4) 0 0; color: var(--muted); font-size: var(--text-sm); font-weight: var(--weight-announce); line-height: var(--lh-snug); }
.scr-check .ac-problem { margin-block-start: var(--space-1); }

.scr-check .ac-problem-words { margin: var(--space-1) 0 0; max-inline-size: var(--measure); text-wrap: pretty; }

.scr-check .ac-rows { list-style: none; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-2); margin: var(--space-4) 0 0; padding: 0; }
.scr-check .ac-row { display: flex; align-items: center; gap: var(--space-3); min-width: 0; }
.scr-check .ac-x { flex: none; min-inline-size: 2.1em; color: var(--fg); font-family: var(--font-math); font-size: var(--math); line-height: 1; white-space: nowrap; }
.scr-check .ac-x .katex { font-size: 1em; color: inherit; }
.scr-check .ac-field {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  min-block-size: var(--tap);
  display: flex;
  align-items: center;
  padding: var(--space-1) var(--space-3);
  background: var(--bg);
  border: var(--hairline) solid var(--border-strong);
  border-radius: var(--radius-control);
  overflow-x: auto;
  scrollbar-width: none;
  cursor: text;
}
.scr-check .ac-field::-webkit-scrollbar { display: none; }
.scr-check .ac-field.is-active { border-color: var(--brand); }
.scr-check .ac-field:focus-within { outline: var(--focus-w) solid var(--focus); outline-offset: var(--focus-off); }

.scr-check .ac-input { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; margin: 0; padding: 0; background: transparent; border: 0; caret-color: transparent; color: transparent; cursor: text; opacity: 0; }
.scr-check .ac-show { display: inline-flex; align-items: center; white-space: nowrap; pointer-events: none; }

.scr-check .ac-prev { color: var(--fg); font-family: var(--font-math); font-size: var(--math); line-height: 1.2; white-space: nowrap; }
.scr-check .ac-prev .katex { font-size: 1em; color: var(--fg); }
.scr-check .ac-ph { color: var(--muted); }
.scr-check .ac-caret { display: none; inline-size: var(--hairline); block-size: 1.2em; margin-inline-start: var(--hairline); background: var(--fg); }
.scr-check .ac-field:focus-within .ac-caret { display: inline-block; }

@media (prefers-reduced-motion: no-preference) {
  .scr-check .ac-field:focus-within .ac-caret { animation: ac-blink-scr-check 1s steps(1) infinite; }
}
@keyframes ac-blink-scr-check { 50% { opacity: 0; } }
.scr-check .ac-del { color: var(--muted); }
.scr-check .ac-add { margin-block-start: var(--space-2); }
.scr-check .ac-plus { font-size: var(--text-md); line-height: 1; }
.scr-check .ac-add:disabled { color: var(--muted); }
.scr-check .ac-none { margin-block-start: var(--space-1); }

.scr-check .ac-err { display: flex; align-items: flex-start; gap: var(--space-2); margin: var(--space-2) 0 0; color: var(--fg); font-size: var(--text-sm); line-height: var(--lh-snug); }
.scr-check .ac-err .ico { flex: none; inline-size: var(--ico-sm); block-size: var(--ico-sm); margin-block-start: 0.1em; color: var(--warn); }

.scr-check .ac-rows--2, .scr-check .ac-rows--3 { gap: var(--space-3); }
.scr-check .ac-row--sys { display: grid; gap: var(--space-1); min-width: 0; }
.scr-check .ac-row--sys + .ac-row--sys { padding-block-start: var(--space-3); border-block-start: var(--hairline) solid var(--border); }
.scr-check .ac-cells { display: flex; align-items: center; gap: var(--space-2); min-width: 0; }
.scr-check .ac-cell { display: flex; align-items: center; flex: 1 1 auto; gap: var(--space-1); }
.scr-check .ac-cell .ac-field { flex: 1 1 auto; min-inline-size: 4.5em; padding-inline: var(--space-2); }

.scr-check .ac-rows--3 .ac-cells:not(.is-stacked) .ac-x { font-size: var(--text-base); }
.scr-check .ac-rows--3 .ac-cells:not(.is-stacked) .ac-x .mspace { margin-right: 0.15em !important; }

.scr-check .ac-cells.is-stacked, html.is-large-text .scr-check .ac-cells { flex-direction: column; align-items: stretch; gap: var(--space-2); }
.scr-check .ac-cells.is-stacked .ac-cell, html.is-large-text .scr-check .ac-cells .ac-cell { flex: none; gap: var(--space-2); }
.scr-check .ac-cells.is-stacked .ac-x, html.is-large-text .scr-check .ac-cells .ac-x { flex: none; min-inline-size: 1.9em; }
.scr-check .ac-row-foot { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); min-block-size: var(--space-6); }
.scr-check .ac-row-foot .ac-del { margin-inline-end: calc(-1 * var(--space-3)); }
.scr-check .ac-tuple-wrap { min-width: 0; overflow-x: auto; scrollbar-width: none; }
.scr-check .ac-tuple-wrap::-webkit-scrollbar { display: none; }
.scr-check .ac-tuple { display: inline-flex; align-items: center; color: var(--muted); font-family: var(--font-math); font-size: var(--text-base); line-height: 1.2; white-space: nowrap; }
.scr-check .ac-tuple .katex { font-size: 1em; color: inherit; }

.scr-check .ac-opts { display: grid; margin-block-start: var(--space-1); }
.scr-check .ac-opts .ac-none { margin-block-start: 0; }
.scr-check .ac-rows.is-off .ac-field { background: var(--surface); border-color: var(--border); cursor: default; }
.scr-check .ac-rows.is-off .ac-input { cursor: default; }
.scr-check .ac-rows.is-off .ac-x, .scr-check .ac-rows.is-off .ac-tuple { color: var(--muted); }

.scr-check .ac-foot { padding-block-start: var(--space-3); }
.scr-check .ac-foot .ac-left { margin: 0; }
.scr-check .ac-left { margin: var(--space-2) 0 0; color: var(--muted); font-size: var(--text-sm); line-height: var(--lh-snug); text-align: center; }

.scr-check .ac-left--here { margin-block-start: var(--space-3); text-align: start; }
.scr-check .ac-keypad {
  flex: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-2);
  margin: var(--space-3) calc(-1 * var(--gutter)) 0;
  padding: var(--space-3) var(--gutter) calc(var(--space-4) + env(safe-area-inset-bottom, 0px));
  background: var(--bg);
  border-block-start: var(--hairline) solid var(--border);
}
.scr-check .ac-key {
  display: flex;
  align-items: center;
  justify-content: center;

  min-inline-size: var(--tap-min);
  min-block-size: max(var(--tap-min), var(--tap));
  padding: var(--space-1);
  background: var(--surface);
  border: 0;
  border-radius: var(--radius-control);
  color: var(--fg);
  font-size: var(--text-md);
  font-weight: var(--weight-ui);
  line-height: 1;
}
.scr-check .ac-key .katex { font-size: 1em; color: var(--fg); }
.scr-check .ac-key:hover, .scr-check .ac-key:active { background: var(--surface-sunk); }
.scr-check .ac-key:disabled { background: var(--surface); color: var(--border-strong); cursor: default; }
.scr-check .ac-key--next .katex { font-size: 1.1em; }

.scr-check .ac-key--wide { grid-column: 1 / -1; }

.scr-check .ac-entries { list-style: none; display: grid; gap: var(--space-2); margin: var(--space-2) 0 0; padding: 0; }
.scr-check .ac-entry { display: flex; align-items: center; gap: var(--space-3); min-block-size: var(--space-6); }
.scr-check .ac-entry--none { font-weight: var(--weight-ui); }
.scr-check .ac-entry--sys { flex-wrap: wrap; gap: var(--space-2) var(--space-5); }
.scr-check .ac-pair { display: inline-flex; align-items: center; gap: var(--space-2); white-space: nowrap; }

.scr-check .ac-result { display: block; margin-block-start: var(--space-5); padding: var(--space-3) var(--space-4); border-radius: var(--radius-control); color: var(--fg); }
.scr-check .ac-result:focus { outline: none; }
.scr-check .ac-result:focus-visible { outline: var(--focus-w) solid var(--focus); outline-offset: var(--focus-off); }
.scr-check .ac-result p { margin: 0; text-wrap: pretty; }
.scr-check .ac-result-txt { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-1); }
.scr-check .ac-result-h { font-size: var(--text-md); font-weight: var(--weight-announce); line-height: var(--lh-snug); }
.scr-check .ac-result-h .ico { display: inline-block; inline-size: var(--ico-lg); block-size: var(--ico-lg); margin-inline-end: var(--space-2); vertical-align: -0.18em; }
.scr-check .ac-result--success { background: var(--success-wash); }
.scr-check .ac-result--success .ico { color: var(--success); }
.scr-check .ac-result--warn { background: var(--warn-wash); }
.scr-check .ac-result--warn .ico { color: var(--warn); }
.scr-check .ac-result--info { background: var(--info-wash); }
.scr-check .ac-result--info .ico { color: var(--info); }

.scr-check .ac-actions { display: grid; gap: var(--space-3); margin-block-start: var(--space-4); }
.scr-check .ac-more { display: grid; justify-items: start; gap: var(--space-1); padding-block-start: var(--space-3); border-block-start: var(--hairline) solid var(--border); }
.scr-check .ac-actions .btn-primary, .scr-check .ac-more .link-btn { min-width: 0; max-inline-size: 100%; }

.scr-check .ac-featline { margin: var(--space-3) 0 0; max-inline-size: var(--measure); color: var(--muted); font-size: var(--text-sm); line-height: var(--lh-snug); }
.scr-check .ac-group { margin-block-start: var(--space-4); }
.scr-check .ac-group + .ac-group { padding-block-start: var(--space-4); border-block-start: var(--hairline) solid var(--border); }
.scr-check .ac-group-h { margin: 0; font-size: var(--text-base); font-weight: var(--weight-announce); line-height: var(--lh-snug); }
.scr-check .ac-group .ac-rows { margin-block-start: var(--space-2); }
.scr-check .ac-hint { margin: var(--space-2) 0 0; max-inline-size: var(--measure); color: var(--muted); font-size: var(--type-hint); line-height: var(--lh-snug); }
.scr-check .ac-group .ac-add { margin-block-start: var(--space-3); max-inline-size: 100%; }
.scr-check .ac-group .ac-add .ac-plus { flex: none; }
.scr-check .ac-group .ac-add > span:last-child { min-width: 0; }
.scr-check .ac-none--group { margin-block-start: var(--space-2); }

.scr-check .ac-rows--feat .ac-row--sys + .ac-row--sys { padding-block-start: var(--space-2); border-block-start: 0; }

.scr-check .ac-seg { margin: var(--space-4) 0 0; padding: 0; border: 0; }
.scr-check .ac-seg-h { padding: 0; font-size: var(--text-base); font-weight: var(--weight-announce); line-height: var(--lh-snug); }
.scr-check .ac-seg-row { margin-block-start: var(--space-2); }
.scr-check .ac-opt .ico { flex: none; inline-size: var(--ico-md); block-size: var(--ico-md); opacity: 0; }
.scr-check .ac-opt:has(input:checked) .ico { opacity: 1; }

html.is-large-text .scr-check .ac-seg-row { flex-direction: column; }

.scr-check .ac-entry--feat { flex-wrap: wrap; align-items: baseline; gap: var(--space-1) var(--space-3); }
.scr-check .ac-feat { font-weight: var(--weight-ui); }
.scr-check .ac-entry--feat .ac-tuple { color: var(--fg); font-size: var(--math); }

.scr-check .ac-fig { margin: var(--space-4) 0 0; }
.scr-check .ac-fig-h { margin: 0 0 var(--space-2); font-size: var(--text-base); font-weight: var(--weight-announce); line-height: var(--lh-snug); }
.scr-check .ac-plot { display: block; inline-size: 100%; block-size: auto; max-inline-size: 420px; margin-inline: auto; background: var(--bg); border: var(--hairline) solid var(--border); border-radius: var(--radius-control); }
.scr-check .ac-plot .grid { stroke: var(--border); stroke-width: 1; }
.scr-check .ac-plot .axis { stroke: var(--border-strong); stroke-width: 1.5; }
.scr-check .ac-plot .curve { fill: none; stroke: var(--fg); stroke-width: 2.5; stroke-linejoin: round; }
.scr-check .ac-plot .pt { fill: var(--brand); }
.scr-check .ac-plot .lbl { fill: var(--fg); font-family: var(--font-math); font-size: var(--text-base); }
.scr-check .ac-plot .axl { fill: var(--muted); font-family: var(--font-math); font-size: var(--text-sm); }
.scr-check .ac-fig-cap { margin: var(--space-2) 0 0; max-inline-size: var(--measure); color: var(--muted); font-size: var(--text-sm); line-height: var(--lh-snug); }

html.is-large-text .scr-check .sheet--ac { --sheet-max: calc(100% - var(--space-2)); display: block; overflow-y: auto; }
html.is-large-text .scr-check .sheet--ac > .sheet-inner { display: block; }
html.is-large-text .scr-check .sheet--ac .sheet-term { font-size: var(--text-md); }
html.is-large-text .scr-check .ac-scroll { min-block-size: 0; overflow: visible; margin-inline: 0; padding-inline: 0; padding-block-end: var(--space-4); }
html.is-large-text .scr-check .ac-foot {
  position: sticky;
  inset-block-end: 0;
  z-index: 2;
  margin-inline: calc(-1 * var(--gutter));
  padding: var(--space-3) var(--gutter) calc(var(--space-3) + env(safe-area-inset-bottom, 0px));
}
html.is-large-text .scr-check .ac-keypad { position: static; margin-block-start: var(--space-3); padding-block-end: calc(var(--space-3) + env(safe-area-inset-bottom, 0px)); }
html.is-large-text .scr-check .ac-line { margin-block-start: var(--space-2); }

html.is-large-text .scr-check .ac-rows--1 .ac-row { flex-wrap: wrap; row-gap: var(--space-2); }
html.is-large-text .scr-check .ac-rows--1 .ac-x { flex: 1 1 auto; }
html.is-large-text .scr-check .ac-rows--1 .ac-field { flex: 1 1 100%; order: 1; }
html.is-large-text .scr-check .ac-rows--1 .ac-del { order: 0; margin-inline-start: auto; }

html.is-large-text .scr-check .btn-spot { white-space: normal; }

.scr-check .ac-measure { display: flex; align-items: center; gap: var(--space-2); flex: 1 1 auto; min-width: 0; }
.scr-check .ac-measure .ac-field { flex: 1 1 auto; }
.scr-check .ac-unit { flex: none; color: var(--fg); font-family: var(--font-math); font-size: var(--math); line-height: 1; white-space: nowrap; }
.scr-check .ac-unit .katex { font-size: 1em; color: inherit; }

.scr-check .ac-rowname { margin: 0; color: var(--fg); font-family: var(--font-math); font-size: var(--text-md); font-weight: var(--weight-read); line-height: 1.2; }
.scr-check .ac-rowname .katex { font-size: 1em; color: inherit; }
.scr-check .ac-feat--math { font-family: var(--font-math); font-weight: var(--weight-read); }
.scr-check .ac-feat--math .katex { font-size: 1em; color: inherit; }

html.is-large-text .scr-check .ac-rows--1 .ac-measure { flex: 1 1 100%; order: 1; }
html.is-large-text .scr-check .ac-rows--1 .ac-measure .ac-field { flex: 1 1 auto; order: 0; }

/* answer-check-shapes-r1.html → .scr-shapes */
@container screen (max-width: 359px) { .scr-shapes .overlay-host { --gutter: var(--space-4); } }

.scr-shapes .stage, .scr-shapes .yours { --cue-out-l: var(--space-4); --cue-out-r: var(--space-4); }

.scr-shapes .stage { display: grid; justify-items: start; gap: var(--space-1); padding: var(--space-2) 0 var(--space-5); text-align: start; }
.scr-shapes .kicker { display: flex; align-items: center; gap: var(--space-2); margin: 0; color: var(--success); font-weight: var(--weight-announce); }
.scr-shapes .end-head { margin: 0; font-family: var(--font-display); font-size: var(--type-title); font-weight: var(--weight-announce); letter-spacing: var(--track-head); line-height: var(--lh-tight); }
.scr-shapes .stage .mfit { margin-block-start: var(--space-2); }
.scr-shapes .stage-note { margin: 0; max-inline-size: var(--measure); color: var(--muted); text-wrap: pretty; }
.scr-shapes .yours { margin-block-start: var(--space-6); padding-block-start: var(--space-5); border-block-start: var(--hairline) solid var(--border); }
.scr-shapes .yours-label { margin: 0; color: var(--muted); font-size: var(--type-meta); font-weight: var(--weight-announce); }

.scr-shapes .sheet--ac { --sheet-pad-b: 0px; overflow: hidden; }
.scr-shapes .sheet-inner.is-leaving { pointer-events: none; }
.scr-shapes .ac-scroll { margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter) var(--space-4); }

.scr-shapes .sheet--ac.is-result > .sheet-inner > .ac-scroll { padding-block-end: calc(var(--space-5) + env(safe-area-inset-bottom, 0px)); }

.scr-shapes .ac-line { margin: var(--space-1) 0 0; max-inline-size: var(--measure); text-wrap: pretty; }
.scr-shapes .ac-label { margin: var(--space-4) 0 0; color: var(--muted); font-size: var(--type-meta); font-weight: var(--weight-announce); line-height: var(--lh-snug); }
.scr-shapes .ac-problem { margin-block-start: var(--space-1); }

.scr-shapes .ac-problem-words { margin: var(--space-1) 0 0; max-inline-size: var(--measure); text-wrap: pretty; }

.scr-shapes .ac-rows { list-style: none; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-2); margin: var(--space-4) 0 0; padding: 0; }
.scr-shapes .ac-row { display: flex; align-items: center; gap: var(--space-3); min-width: 0; }
.scr-shapes .ac-x { flex: none; min-inline-size: 2.1em; color: var(--fg); font-family: var(--font-math); font-size: var(--math-field); line-height: 1; white-space: nowrap; }
.scr-shapes .ac-x .katex { font-size: 1em; color: inherit; }
.scr-shapes .ac-field {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  min-block-size: var(--tap);
  display: flex;
  align-items: center;
  padding: var(--space-1) var(--space-3);
  background: var(--bg);
  border: var(--hairline) solid var(--border-strong);
  border-radius: var(--radius-control);
  overflow-x: auto;
  scrollbar-width: none;
  cursor: text;
}
.scr-shapes .ac-field::-webkit-scrollbar { display: none; }
.scr-shapes .ac-field.is-active { border-color: var(--brand); }
.scr-shapes .ac-field:focus-within { outline: var(--focus-w) solid var(--focus); outline-offset: var(--focus-off); }

.scr-shapes .ac-input { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; margin: 0; padding: 0; background: transparent; border: 0; caret-color: transparent; color: transparent; cursor: text; opacity: 0; }
.scr-shapes .ac-show { display: inline-flex; align-items: center; white-space: nowrap; pointer-events: none; }

.scr-shapes .ac-prev { color: var(--fg); font-family: var(--font-math); font-size: var(--math-field); line-height: 1.2; white-space: nowrap; }
.scr-shapes .ac-prev .katex { font-size: 1em; color: var(--fg); }
.scr-shapes .ac-ph { color: var(--muted); }
.scr-shapes .ac-caret { display: none; inline-size: var(--hairline); block-size: 1.2em; margin-inline-start: var(--hairline); background: var(--fg); }
.scr-shapes .ac-field:focus-within .ac-caret { display: inline-block; }

@media (prefers-reduced-motion: no-preference) {
  .scr-shapes .ac-field:focus-within .ac-caret { animation: ac-blink-scr-shapes 1s steps(1) infinite; }
}
@keyframes ac-blink-scr-shapes { 50% { opacity: 0; } }
.scr-shapes .ac-del { color: var(--muted); }
.scr-shapes .ac-add { margin-block-start: var(--space-2); }
.scr-shapes .ac-plus { font-size: var(--type-section); line-height: 1; }
.scr-shapes .ac-add:disabled { color: var(--muted); }
.scr-shapes .ac-none { margin-block-start: var(--space-1); }

.scr-shapes .ac-err { display: flex; align-items: flex-start; gap: var(--space-2); margin: var(--space-2) 0 0; color: var(--fg); font-size: var(--type-meta); line-height: var(--lh-snug); }
.scr-shapes .ac-err .ico { flex: none; inline-size: var(--ico-sm); block-size: var(--ico-sm); margin-block-start: 0.1em; color: var(--warn); }

.scr-shapes .ac-rows--2, .scr-shapes .ac-rows--3 { gap: var(--space-3); }
.scr-shapes .ac-row--sys { display: grid; gap: var(--space-1); min-width: 0; }
.scr-shapes .ac-row--sys + .ac-row--sys { padding-block-start: var(--space-3); border-block-start: var(--hairline) solid var(--border); }
.scr-shapes .ac-cells { display: flex; align-items: center; gap: var(--space-2); min-width: 0; }
.scr-shapes .ac-cell { display: flex; align-items: center; flex: 1 1 auto; gap: var(--space-1); }
.scr-shapes .ac-cell .ac-field { flex: 1 1 auto; min-inline-size: 4.5em; padding-inline: var(--space-2); }

.scr-shapes .ac-rows--3 .ac-cells:not(.is-stacked) .ac-x { font-size: var(--type-body); }
.scr-shapes .ac-rows--3 .ac-cells:not(.is-stacked) .ac-x .mspace { margin-right: 0.15em !important; }

.scr-shapes .ac-cells.is-stacked, html.is-large-text .scr-shapes .ac-cells { flex-direction: column; align-items: stretch; gap: var(--space-2); }
.scr-shapes .ac-cells.is-stacked .ac-cell, html.is-large-text .scr-shapes .ac-cells .ac-cell { flex: none; gap: var(--space-2); }
.scr-shapes .ac-cells.is-stacked .ac-x, html.is-large-text .scr-shapes .ac-cells .ac-x { flex: none; min-inline-size: 1.9em; }
.scr-shapes .ac-row-foot { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); min-block-size: var(--space-6); }
.scr-shapes .ac-row-foot .ac-del { margin-inline-end: calc(-1 * var(--space-3)); }
.scr-shapes .ac-tuple-wrap { min-width: 0; overflow-x: auto; scrollbar-width: none; }
.scr-shapes .ac-tuple-wrap::-webkit-scrollbar { display: none; }
.scr-shapes .ac-tuple { display: inline-flex; align-items: center; color: var(--muted); font-family: var(--font-math); font-size: var(--type-body); line-height: 1.2; white-space: nowrap; }
.scr-shapes .ac-tuple .katex { font-size: 1em; color: inherit; }

.scr-shapes .ac-opts { display: grid; margin-block-start: var(--space-1); }
.scr-shapes .ac-opts .ac-none { margin-block-start: 0; }
.scr-shapes .ac-rows.is-off .ac-field { background: var(--surface); border-color: var(--border); cursor: default; }
.scr-shapes .ac-rows.is-off .ac-input { cursor: default; }
.scr-shapes .ac-rows.is-off .ac-x, .scr-shapes .ac-rows.is-off .ac-tuple, .scr-shapes .ac-rows.is-off .ac-unit { color: var(--muted); }

.scr-shapes .ac-foot { padding-block-start: var(--space-3); }
.scr-shapes .ac-foot .ac-left { margin: 0; }
.scr-shapes .ac-left { margin: var(--space-2) 0 0; color: var(--muted); font-size: var(--type-meta); line-height: var(--lh-snug); text-align: center; }

.scr-shapes .ac-left--here { margin-block-start: var(--space-3); text-align: start; }

.scr-shapes .ac-entries { list-style: none; display: grid; gap: var(--space-2); margin: var(--space-2) 0 0; padding: 0; }
.scr-shapes .ac-entry { display: flex; align-items: center; gap: var(--space-3); min-block-size: var(--space-6); }
.scr-shapes .ac-entry--none { font-weight: var(--weight-ui); }
.scr-shapes .ac-entry--sys { flex-wrap: wrap; gap: var(--space-2) var(--space-5); }
.scr-shapes .ac-pair { display: inline-flex; align-items: center; gap: var(--space-2); white-space: nowrap; }

.scr-shapes .ac-result { display: block; margin-block-start: var(--space-5); padding: var(--space-3) var(--space-4); border-radius: var(--radius-control); color: var(--fg); }
.scr-shapes .ac-result:focus { outline: none; }
.scr-shapes .ac-result:focus-visible { outline: var(--focus-w) solid var(--focus); outline-offset: var(--focus-off); }
.scr-shapes .ac-result p { margin: 0; text-wrap: pretty; }
.scr-shapes .ac-result-txt { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-1); }
.scr-shapes .ac-result-h { font-size: var(--type-section); font-weight: var(--weight-announce); line-height: var(--lh-snug); }
.scr-shapes .ac-result-h .ico { display: inline-block; inline-size: var(--ico-lg); block-size: var(--ico-lg); margin-inline-end: var(--space-2); vertical-align: -0.18em; }
.scr-shapes .ac-result--success { background: var(--success-wash); }
.scr-shapes .ac-result--success .ico { color: var(--success); }
.scr-shapes .ac-result--warn { background: var(--warn-wash); }
.scr-shapes .ac-result--warn .ico { color: var(--warn); }
.scr-shapes .ac-result--info { background: var(--info-wash); }
.scr-shapes .ac-result--info .ico { color: var(--info); }

.scr-shapes .ac-actions { display: grid; gap: var(--space-3); margin-block-start: var(--space-4); }
.scr-shapes .ac-more { display: grid; justify-items: start; gap: var(--space-1); padding-block-start: var(--space-3); border-block-start: var(--hairline) solid var(--border); }
.scr-shapes .ac-actions .btn-primary, .scr-shapes .ac-more .link-btn { min-width: 0; max-inline-size: 100%; }

.scr-shapes .ac-featline { margin: var(--space-3) 0 0; max-inline-size: var(--measure); color: var(--muted); font-size: var(--type-meta); line-height: var(--lh-snug); }
.scr-shapes .ac-group { margin-block-start: var(--space-4); }
.scr-shapes .ac-group + .ac-group { padding-block-start: var(--space-4); border-block-start: var(--hairline) solid var(--border); }
.scr-shapes .ac-group-h { margin: 0; font-size: var(--type-body); font-weight: var(--weight-announce); line-height: var(--lh-snug); }
.scr-shapes .ac-group .ac-rows { margin-block-start: var(--space-2); }
.scr-shapes .ac-hint { margin: var(--space-2) 0 0; max-inline-size: var(--measure); color: var(--muted); font-size: var(--type-hint); line-height: var(--lh-snug); }
.scr-shapes .ac-group .ac-add { margin-block-start: var(--space-3); max-inline-size: 100%; }
.scr-shapes .ac-group .ac-add .ac-plus { flex: none; }
.scr-shapes .ac-group .ac-add > span:last-child { min-width: 0; }
.scr-shapes .ac-none--group { margin-block-start: var(--space-2); }

.scr-shapes .ac-rows--feat .ac-row--sys + .ac-row--sys { padding-block-start: var(--space-2); border-block-start: 0; }

.scr-shapes .ac-seg { margin: var(--space-4) 0 0; padding: 0; border: 0; }
.scr-shapes .ac-seg-h { padding: 0; font-size: var(--type-body); font-weight: var(--weight-announce); line-height: var(--lh-snug); }
.scr-shapes .ac-seg-row { margin-block-start: var(--space-2); }
.scr-shapes .ac-opt .ico { flex: none; inline-size: var(--ico-md); block-size: var(--ico-md); opacity: 0; }
.scr-shapes .ac-opt:has(input:checked) .ico { opacity: 1; }

html.is-large-text .scr-shapes .ac-seg-row { flex-direction: column; }

.scr-shapes .ac-entry--feat { flex-wrap: wrap; align-items: baseline; gap: var(--space-1) var(--space-3); }
.scr-shapes .ac-feat { font-weight: var(--weight-ui); }
.scr-shapes .ac-entry--feat .ac-tuple { color: var(--fg); font-size: var(--math-field); }
.scr-shapes .ac-feat--math { font-family: var(--font-math); font-weight: var(--weight-read); }
.scr-shapes .ac-feat--math .katex { font-size: 1em; color: inherit; }

.scr-shapes .ac-measure { display: flex; align-items: center; gap: var(--space-2); flex: 1 1 auto; min-width: 0; }
.scr-shapes .ac-measure .ac-field { flex: 1 1 auto; }
.scr-shapes .ac-unit { flex: none; color: var(--fg); font-family: var(--font-math); font-size: var(--math-field); line-height: 1; white-space: nowrap; }
.scr-shapes .ac-unit .katex { font-size: 1em; color: inherit; }

html.is-large-text .scr-shapes .sheet--ac { --sheet-max: calc(100% - var(--space-2)); display: block; overflow-y: auto; }
html.is-large-text .scr-shapes .sheet--ac > .sheet-inner { display: block; }
html.is-large-text .scr-shapes .sheet--ac .sheet-term { font-size: var(--type-section); }
html.is-large-text .scr-shapes .ac-scroll { min-block-size: 0; overflow: visible; margin-inline: 0; padding-inline: 0; padding-block-end: var(--space-4); }
html.is-large-text .scr-shapes .ac-foot {
  position: sticky;
  inset-block-end: 0;
  z-index: 2;
  margin-inline: calc(-1 * var(--gutter));
  padding: var(--space-3) var(--gutter) calc(var(--space-3) + env(safe-area-inset-bottom, 0px));
}
html.is-large-text .scr-shapes .ac-line { margin-block-start: var(--space-2); }

html.is-large-text .scr-shapes .ac-rows--1 .ac-row { flex-wrap: wrap; row-gap: var(--space-2); }
html.is-large-text .scr-shapes .ac-rows--1 .ac-x { flex: 1 1 auto; }
html.is-large-text .scr-shapes .ac-rows--1 .ac-field { flex: 1 1 100%; order: 1; }
html.is-large-text .scr-shapes .ac-rows--1 .ac-del { order: 0; margin-inline-start: auto; }

html.is-large-text .scr-shapes .ac-rows--1 .ac-measure { flex: 1 1 100%; order: 1; }
html.is-large-text .scr-shapes .ac-rows--1 .ac-measure .ac-field { flex: 1 1 auto; order: 0; }

.scr-shapes .ac-rowhead { margin: 0; color: var(--fg); font-size: var(--type-body); font-weight: var(--weight-announce); line-height: var(--lh-snug); }

.scr-shapes .ac-rowseg { margin-block-start: var(--space-2); }
.scr-shapes .ac-rowseg .seg { min-width: 0; }

.scr-shapes .ac-seglegend { margin: 0; color: var(--fg); font-family: var(--font-math); font-size: var(--type-body); line-height: var(--lh-snug); }
.scr-shapes .ac-seglegend .katex { font-size: 1em; color: inherit; }

.scr-shapes .ac-opt-math { font-family: var(--font-math); font-weight: var(--weight-read); }
.scr-shapes .ac-opt-math .katex { font-size: 1em; color: inherit; }

.scr-shapes .ac-note { margin: var(--space-3) 0 0; max-inline-size: var(--measure); color: var(--fg); font-size: var(--type-hint); line-height: var(--lh-snug); }

.scr-shapes .ac-mx { display: flex; align-items: stretch; gap: var(--space-2); margin-block-start: var(--space-2); }
.scr-shapes .ac-mx-br { flex: none; inline-size: var(--space-3); border-block: var(--hairline) solid var(--border-strong); }
.scr-shapes .ac-mx-br--l { border-inline-start: 2px solid var(--border-strong); }
.scr-shapes .ac-mx-br--r { border-inline-end: 2px solid var(--border-strong); }
.scr-shapes .ac-mx-grid { flex: 1 1 auto; min-width: 0; display: grid; gap: var(--space-2); }
.scr-shapes .ac-mx-grid .ac-field { min-inline-size: 0; padding-inline: var(--space-2); }

html.is-large-text .scr-shapes .ac-mx-grid { grid-template-columns: minmax(0, 1fr) !important; }
html.is-large-text .scr-shapes .ac-mx-br { display: none; }

.scr-shapes .ac-iv { display: flex; align-items: center; gap: var(--space-2); margin-block-start: var(--space-2); min-width: 0; }
.scr-shapes .ac-iv .seg { flex: none; }
.scr-shapes .ac-iv .ac-field { flex: 1 1 auto; min-inline-size: 3.5em; padding-inline: var(--space-2); }
.scr-shapes .ac-iv-comma { flex: none; color: var(--fg); font-family: var(--font-math); font-size: var(--math-field); line-height: 1; }
.scr-shapes .ac-iv .seg-opt { padding-inline: var(--space-2); }
html.is-large-text .scr-shapes .ac-iv { flex-wrap: wrap; }
html.is-large-text .scr-shapes .ac-iv .ac-field { flex: 1 1 100%; }

.scr-shapes .ac-bear { display: grid; gap: var(--space-3); margin-block-start: var(--space-2); }

.scr-shapes .ac-keys { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: var(--space-2); }

/* capture-r12.html → .scr-capture */
.scr-capture .art {
  position: relative; flex: none; width: var(--aw, 1366px); height: var(--ah, 768px);
  overflow: hidden; background: var(--bg); border: var(--hairline) solid var(--border-strong);
}

.scr-capture .page-h { margin: 0; font-family: var(--font-display); font-size: var(--text-lg); font-weight: var(--weight-announce); line-height: var(--lh-tight); letter-spacing: var(--track-head); text-wrap: pretty; }
.scr-capture .page-sub { margin: var(--space-2) 0 0; max-width: var(--measure); color: var(--muted); text-wrap: pretty; }

.scr-capture .lbl { margin: var(--space-5) 0 var(--space-1); font-size: var(--text-base); font-weight: var(--weight-announce); line-height: var(--lh-snug); }

.scr-capture .cam {
  position: relative; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; grid-template-columns: minmax(0, 1fr);
  height: 100%; background: var(--fg); color: var(--bg);
}
.scr-capture .cam-top {
  display: grid; grid-template-columns: var(--tap) minmax(0, 1fr) var(--tap); align-items: center; gap: var(--space-2);
  padding: calc(var(--space-2) + env(safe-area-inset-top, 0px)) var(--space-2) var(--space-2);
}

.scr-capture .cam :focus-visible { outline-color: var(--bg); }
.scr-capture .cam-count { margin: 0; text-align: center; font-weight: var(--weight-announce); line-height: var(--lh-snug); }

.scr-capture .cam-wrap { display: flex; min-height: 0; padding-inline: var(--space-4); }
.scr-capture .cam-view {
  position: relative; flex: 1 1 auto; min-height: 0;
  width: 100%; max-width: 640px; margin-inline: auto;
  overflow: hidden; border-radius: var(--radius-card);
  background: color-mix(in srgb, var(--fg) 86%, var(--bg));
}
.scr-capture .cam-guide { position: absolute; inset: var(--space-6) var(--space-5); pointer-events: none; }
.scr-capture .cam-guide > span { position: absolute; width: var(--space-7); height: var(--space-7); border: 0 solid var(--bg); }
.scr-capture .cam-guide > span:nth-child(1) { top: 0; left: 0; border-top-width: var(--edge); border-left-width: var(--edge); border-top-left-radius: var(--radius-card); }
.scr-capture .cam-guide > span:nth-child(2) { top: 0; right: 0; border-top-width: var(--edge); border-right-width: var(--edge); border-top-right-radius: var(--radius-card); }
.scr-capture .cam-guide > span:nth-child(3) { bottom: 0; left: 0; border-bottom-width: var(--edge); border-left-width: var(--edge); border-bottom-left-radius: var(--radius-card); }
.scr-capture .cam-guide > span:nth-child(4) { bottom: 0; right: 0; border-bottom-width: var(--edge); border-right-width: var(--edge); border-bottom-right-radius: var(--radius-card); }

.scr-capture .cam-hint { position: absolute; left: var(--space-5); right: var(--space-5); top: 50%; transform: translateY(-50%); margin: 0; text-align: center; color: color-mix(in srgb, var(--bg) 78%, var(--fg)); font-size: var(--text-base); font-weight: var(--weight-read); line-height: var(--lh-snug); text-wrap: pretty; }

.scr-capture .cam-standin { position: absolute; top: var(--space-3); left: var(--space-3); right: var(--space-3); margin: 0; }
.scr-capture .cam-tip { max-width: 640px; margin: var(--space-4) auto 0; padding-inline: var(--gutter); text-align: center; font-weight: var(--weight-ui); line-height: var(--lh-snug); text-wrap: pretty; }
.scr-capture .cam-ctrl {
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: var(--space-4);
  max-width: 640px; margin-inline: auto;
  padding: var(--space-4) var(--gutter) calc(var(--space-5) + env(safe-area-inset-bottom, 0px));
}
.scr-capture .cam-pick {
  justify-self: start; display: grid; place-items: center;
  width: calc(var(--tap) + var(--space-2)); height: calc(var(--tap) + var(--space-2)); padding: 0;
  border: var(--edge-strong) solid color-mix(in srgb, var(--bg) 60%, transparent); border-radius: var(--radius-control);
  background: color-mix(in srgb, var(--bg) 14%, transparent); color: var(--bg);
}
.scr-capture .cam-pick .ico { inline-size: var(--ico-lg); block-size: var(--ico-lg); }
.scr-capture .cam-pick:active { background: color-mix(in srgb, var(--bg) 24%, transparent); }

.scr-capture .shutter {
  --shutter: calc(var(--tap) + var(--space-5));            
  --ring-in: var(--space-1);                               
  --ring-out: calc(var(--space-1) + var(--edge));          
  width: var(--shutter); height: var(--shutter); padding: 0; border: 0; border-radius: 50%;
  background: var(--accent);
  box-shadow: inset 0 calc(-1 * var(--edge)) 0 var(--accent-edge), 0 0 0 var(--ring-in) var(--fg), 0 0 0 var(--ring-out) var(--bg);
  transition: transform var(--dur-exit) var(--ease-out);
}
.scr-capture .shutter:active { transform: translateY(var(--press-drop)); background: var(--accent-press); box-shadow: 0 0 0 var(--ring-in) var(--fg), 0 0 0 var(--ring-out) var(--bg); }
.scr-capture .shutter:focus-visible { outline: var(--edge) solid var(--bg); outline-offset: calc(var(--space-2) + var(--press-drop)); }

.scr-capture .thumbs { list-style: none; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-5); margin: var(--space-5) 0 0; padding: 0; }
.scr-capture .thumb { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-2); width: min(100%, 15rem); }
.scr-capture .thumb img { display: block; width: 100%; height: auto; border-radius: var(--radius-control); border: var(--hairline) solid var(--border); background: var(--surface); }
.scr-capture .thumb-txt { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-1); }
.scr-capture .thumb-l { font-weight: var(--weight-announce); line-height: var(--lh-snug); }
.scr-capture .thumb-s { color: var(--muted); font-size: var(--text-sm); line-height: var(--lh-snug); }

.scr-capture .thumb-acts { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-inline-start: calc(-1 * var(--space-2)); }
.scr-capture .thumb-acts .link-btn { margin: 0; }

.scr-capture .thumb--bad { margin-inline: calc(-1 * var(--space-3)); padding: var(--space-3); border-radius: var(--radius-control); background: var(--warn-wash); }

.scr-capture .body-act { display: grid; grid-template-columns: minmax(0, 1fr); margin-top: var(--space-5); }

.scr-capture .paste-target {
  display: grid; place-items: center; align-content: center; gap: var(--space-2);
  width: 100%; min-height: calc(var(--tap) + var(--space-8) + var(--space-2)); margin-top: var(--space-5); padding: var(--space-5);
  border: var(--edge-strong) dashed var(--border-strong); border-radius: var(--radius-card); background: var(--surface);
  color: var(--fg); font-weight: var(--weight-ui); line-height: var(--lh-snug); text-align: center;
}
.scr-capture .paste-target .ico { inline-size: var(--ico-xxl); block-size: var(--ico-xxl); color: var(--brand); }
.scr-capture .paste-target:active { background: var(--surface-sunk); }
@media (hover: hover) { .scr-capture .paste-target:hover { background: var(--brand-wash); } }
.scr-capture .readas { margin-top: var(--space-1); padding: var(--space-2) var(--space-3); border-block: var(--hairline) solid var(--border); }

.scr-capture .field--flush { margin-block-start: 0; }
.scr-capture .preview { margin-top: var(--space-2); }
.scr-capture .preview .mfit { padding: var(--space-2) var(--space-3); border-radius: var(--radius-control); background: var(--surface); }
.scr-capture .preview-empty { margin: 0; padding: var(--space-3); border-radius: var(--radius-control); background: var(--surface); color: var(--muted); }

.scr-capture .keypad-key .ico { inline-size: var(--ico-lg); block-size: var(--ico-lg); }

.scr-capture .dock--kp { padding-top: var(--space-3); }
.scr-capture .dock--kp .keypad { margin-block-start: var(--space-3); }

.scr-capture .eq-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; column-gap: var(--space-2); }
.scr-capture .eq-row + .eq-row { margin-top: var(--space-4); }
.scr-capture .eq-row .field { margin-top: 0; }
.scr-capture .eq-rm { align-self: center; inline-size: var(--tap); color: var(--muted); }
.scr-capture .add-eq { margin-top: var(--space-4); }
.scr-capture .add-eq .field-hint { display: block; margin-top: var(--space-1); }
html.is-large-text .scr-capture .eq-row { grid-template-columns: minmax(0, 1fr); row-gap: var(--space-2); }
html.is-large-text .scr-capture .eq-rm { justify-self: start; }

.scr-capture .read-bar { margin-top: 0; height: var(--progress-h); border-radius: var(--radius-pill); background: var(--border); overflow: hidden; }
.scr-capture .read-bar > span { display: block; height: 100%; width: 100%; background: var(--brand); transform-origin: left center; transform: scaleX(var(--p, 0)); transition: transform var(--dur-enter) var(--ease-out); }
.scr-capture .steps { list-style: none; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-3); margin: var(--space-5) 0 0; padding: 0; }
.scr-capture .steps li { display: flex; align-items: center; gap: var(--space-3); min-height: var(--tap); line-height: var(--lh-snug); }
.scr-capture .steps .ico { flex: none; inline-size: var(--ico-lg); block-size: var(--ico-lg); }
.scr-capture .step-done .ico { color: var(--brand); }
.scr-capture .step-now { font-weight: var(--weight-announce); }
.scr-capture .step-now .ico { color: var(--brand); }
.scr-capture .step-next { color: var(--muted); }
.scr-capture .step-ring { flex: none; inline-size: var(--ico-lg); block-size: var(--ico-lg); border-radius: 50%; border: var(--edge-strong) solid var(--border-strong); }

.scr-capture .ico-spin { animation: none; }
@media (prefers-reduced-motion: no-preference) { .scr-capture .ico-spin { animation: spin-scr-capture 900ms linear infinite; } }
@keyframes spin-scr-capture { to { transform: rotate(360deg); } }

.scr-capture .photo-tog {
  display: flex; align-items: center; gap: var(--space-2);
  width: calc(100% + var(--space-4)); min-height: var(--tap);
  margin: 0 calc(-1 * var(--space-2)); padding: 0 var(--space-2);
  border: 0; border-radius: var(--radius-control); background: transparent;
  color: var(--fg); font-weight: var(--weight-announce); text-align: start;
}
.scr-capture .photo-tog > span { flex: 1 1 auto; min-width: 0; }
.scr-capture .photo-tog .chev { flex: none; color: var(--muted); }
.scr-capture .photo-tog:active { background: var(--surface-sunk); }
@media (hover: hover) { .scr-capture .photo-tog:hover { background: var(--surface); } }
.scr-capture .photo-btn { display: block; width: 100%; padding: 0; border: 0; border-radius: var(--radius-card); background: transparent; }
.scr-capture .photo-btn img { display: block; width: 100%; height: auto; border-radius: var(--radius-card); border: var(--hairline) solid var(--border); }
.scr-capture .photo-cap { display: flex; align-items: center; gap: var(--space-2); margin: var(--space-1) 0 0; color: var(--muted); font-size: var(--text-sm); line-height: var(--lh-snug); }
.scr-capture .photo-cap .ico { inline-size: var(--ico-sm); block-size: var(--ico-sm); }

.scr-capture .instr { margin: var(--space-4) 0 0; }
.scr-capture .instr-l { margin: 0; color: var(--muted); font-size: var(--text-sm); font-weight: var(--weight-announce); line-height: var(--lh-snug); }
.scr-capture .instr blockquote { margin: var(--space-1) 0 0; max-width: var(--measure); font-size: var(--text-sm); line-height: var(--lh-snug); text-wrap: pretty; }

.scr-capture .probs { list-style: none; margin: var(--space-4) 0 0; padding: 0; border-top: var(--hairline) solid var(--border); }
.scr-capture .prob {
  display: grid; grid-template-columns: 2.25rem minmax(0, 1fr); column-gap: var(--space-2);
  padding: var(--space-3) 0 var(--space-1); border-bottom: var(--hairline) solid var(--border);
}
.scr-capture .prob-n { padding-top: 0.55em; color: var(--brand); font-weight: var(--weight-announce); line-height: 1; font-variant-numeric: tabular-nums; }
.scr-capture .prob-body { min-width: 0; }
.scr-capture .prob--flag {
  margin-inline: calc(-1 * var(--space-3)); padding-inline: var(--space-3);
  background: var(--warn-wash);
}
.scr-capture .prob-flag { display: flex; align-items: flex-start; gap: var(--space-2); margin: var(--space-1) 0 0; color: var(--fg); font-size: var(--text-sm); line-height: var(--lh-snug); }
.scr-capture .prob-flag .ico { inline-size: var(--ico-sm); block-size: var(--ico-sm); margin-top: 0.1em; color: var(--warn); }
.scr-capture .prob-flag.is-ok .ico { color: var(--success); }
.scr-capture .prob .link-btn { margin-top: var(--space-2); }
.scr-capture .name-field { margin-top: var(--space-6); padding-top: var(--space-5); border-top: var(--hairline) solid var(--border); }

.scr-capture .note--dock { margin: 0 0 var(--space-3); }

.scr-capture .body > .link-btn { margin-block-start: var(--space-4); }

.scr-capture .prob-body > .chip { margin-block-start: var(--space-2); }

.scr-capture .tips { list-style: none; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-3); margin: var(--space-3) 0 0; padding: 0; }
.scr-capture .tips li { display: flex; align-items: flex-start; gap: var(--space-3); line-height: var(--lh-snug); }
.scr-capture .tips .ico { flex: none; inline-size: var(--ico-lg); block-size: var(--ico-lg); margin-top: 0.05em; color: var(--brand); }

.scr-capture .sheet-scroll { padding-block-start: var(--space-4); margin-inline: calc(-1 * var(--space-2)); padding-inline: var(--space-2); }
.scr-capture .sheet[data-view="edit"] { --sheet-max: calc(100% - var(--space-5)); }
.scr-capture .sheet-foot .keypad { margin-inline: 0; padding-inline: 0; }
.scr-capture .orig { margin-top: var(--space-3); }
.scr-capture .orig img { display: block; width: 100%; height: auto; border-radius: var(--radius-control); border: var(--hairline) solid var(--border); background: var(--surface); }
.scr-capture .orig-none { display: grid; place-items: center; min-height: 6rem; padding: var(--space-4); border: var(--edge-strong) dashed var(--border-strong); border-radius: var(--radius-control); color: var(--muted); text-align: center; line-height: var(--lh-snug); }
.scr-capture .photo-box .orig-none { margin-top: 0; }
.scr-capture .sheet-acts { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-4); }
.scr-capture .sheet-acts .btn-spot { flex: 1 1 8rem; }
.scr-capture .big-photo img { display: block; width: 100%; height: auto; border-radius: var(--radius-control); }
.scr-capture .sheet-math { margin-top: var(--space-1); padding-bottom: var(--space-3); border-bottom: var(--hairline) solid var(--border); }

.scr-capture .ways { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-3); margin-top: var(--space-4); }
.scr-capture .way {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-1);
  width: 100%; min-height: calc(var(--tap) + var(--space-2));
  padding: var(--space-4); border: 0; border-radius: var(--radius-card);
  text-align: start; text-decoration: none;
  transition: transform var(--dur-exit) var(--ease-out);
}
.scr-capture .way-t { display: block; font-weight: var(--weight-announce); line-height: var(--lh-snug); }
.scr-capture .way-h { display: block; color: var(--muted); font-size: var(--text-sm); line-height: var(--lh-snug); text-wrap: pretty; }

.scr-capture .way--accent { background: var(--accent); color: var(--on-accent); box-shadow: inset 0 calc(-1 * var(--edge)) 0 var(--accent-edge); }
.scr-capture .way--accent .way-h { color: var(--on-accent); }
.scr-capture .way--accent:active { background: var(--accent-press); box-shadow: inset 0 calc(-1 * var(--hairline)) 0 var(--accent-edge); transform: translateY(var(--press-drop)); }

.scr-capture .way--lead { grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: var(--space-3); }
.scr-capture .way--second { background: transparent; color: var(--fg); border: var(--hairline) solid var(--border-strong); }
.scr-capture .way--second:active { background: var(--surface-sunk); }
@media (hover: hover) {
  .scr-capture .way--accent:hover { background: var(--accent-press); }
  .scr-capture .way--second:hover { background: var(--surface); }
}

.scr-capture .geo { margin-top: var(--space-3); }
.scr-capture .geo-box {
  padding: var(--space-2); border: var(--hairline) solid var(--border);
  border-radius: var(--radius-control); background: var(--bg);
}

.scr-capture .geo-box svg { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; font-family: var(--font-ui); }
.scr-capture .geo-stroke { fill: none; stroke: var(--fg); stroke-width: 1.75; stroke-linejoin: round; stroke-linecap: round; }
.scr-capture .geo-thin { fill: none; stroke: var(--fg); stroke-width: 1.4; stroke-linecap: round; }
.scr-capture .geo-t { fill: var(--fg); font-size: 16px; font-weight: 500; }
.scr-capture .geo-v { fill: var(--muted); font-size: 13px; font-weight: 600; }
.scr-capture .geo-ph { fill: var(--muted); font-style: italic; font-weight: 400; }
.scr-capture .geo-desc { margin: var(--space-2) 0 0; color: var(--muted); font-size: var(--text-sm); line-height: var(--lh-snug); text-wrap: pretty; }

.scr-capture .geo-ask { margin: var(--space-2) 0 0; line-height: var(--lh-snug); text-wrap: pretty; }
.scr-capture .geo--mini { margin-top: var(--space-3); }
.scr-capture .geo--mini .geo-box { max-width: 18rem; }

.scr-capture .geo-vals { display: grid; gap: var(--space-3); grid-template-columns: repeat(auto-fit, minmax(6rem, 1fr)); margin-top: var(--space-2); }
.scr-capture .geo-vals .field { margin-top: 0; }
.scr-capture .geo-vals .inp { text-align: center; }

.scr-capture .probs { --cue-out-l: 0px; --cue-out-r: 0px; }
.scr-capture .preview, .scr-capture .readas, .scr-capture .sheet-math { --cue-out-l: var(--space-2); --cue-out-r: var(--space-2); }

html.is-large-text .scr-capture .cam-tip, html.is-large-text .scr-capture .cam-ctrl { --gutter: var(--space-5); }
html.is-large-text .scr-capture .dock { --dock-pad: var(--space-3); }

html.is-large-text .scr-capture .tb-title { font-size: var(--text-base); }

html.is-large-text .scr-capture .btn-primary, html.is-large-text .scr-capture .btn-spot { white-space: normal; text-wrap: balance; line-height: var(--lh-snug); }
html.is-large-text .scr-capture .way { padding-inline: var(--space-3); }

html.is-large-text .scr-capture .instr, html.is-large-text .scr-capture .note--callout { padding-inline: var(--space-3); }
html.is-large-text .scr-capture .prob--flag { margin-inline: calc(-1 * var(--space-2)); padding-inline: var(--space-2); }

html.is-large-text .scr-capture .geo-t { font-size: 22px; }
html.is-large-text .scr-capture .geo-v { font-size: 18px; }
html.is-large-text .scr-capture .geo--mini .geo-box { max-width: none; }
html.is-large-text .scr-capture .geo-vals { grid-template-columns: minmax(0, 1fr); }

html.is-large-text .scr-capture .seg { flex-wrap: wrap; }
html.is-large-text .scr-capture .seg-opt { flex: 1 1 100%; }

html.is-large-text .scr-capture .kp-flow { margin-top: var(--space-6); }
html.is-large-text .scr-capture .kp-flow .keypad { margin-block-start: 0; }

html.is-large-text .scr-capture .sheet-scroll .kp-flow .keypad { margin-inline: 0; padding-inline: 0; }

html.is-large-text .scr-capture .prob-sticky {
  position: sticky; top: 0; z-index: 2;
  margin-inline: calc(-1 * var(--space-2)); padding: 0 var(--space-2) var(--space-3);
  background: var(--bg);
}

.scr-capture .cam--desk .cam-view { max-width: 960px; }

.scr-capture .cam-feed { position: absolute; inset: var(--space-6) var(--space-5); overflow: hidden; border-radius: var(--radius-control); transform: scaleX(-1); }
.scr-capture .cam-feed img { display: block; width: 100%; height: 100%; object-fit: cover; }

.scr-capture .cam--desk .cam-hint {
  position: static; transform: none;
  max-width: 960px; margin: var(--space-4) auto 0; padding-inline: var(--gutter);
  color: var(--bg);
}

.scr-capture .cam-pickrow { display: grid; gap: var(--space-1); justify-items: center; max-width: 960px; margin: var(--space-5) auto 0; padding-inline: var(--gutter); }
.scr-capture .cam-pickrow .seg { inline-size: min(100%, 28rem); }
.scr-capture .cam-pick-l { margin: 0; font-size: var(--text-base); font-weight: var(--weight-announce); line-height: var(--lh-snug); }

.scr-capture .cam-ctrl--desk {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  max-width: 960px; padding-block: var(--space-5) var(--space-3);
}

.scr-capture .cam-pick--label {
  justify-self: center; grid-auto-flow: column; gap: var(--space-2);
  width: auto; height: auto; min-height: calc(var(--tap) + var(--space-2));
  padding-inline: var(--space-4);
  font-size: var(--text-base); font-weight: var(--weight-announce); line-height: var(--lh-snug);
}

.scr-capture .cam-ways { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--space-2); max-width: 960px; margin-inline: auto; padding: 0 var(--gutter) calc(var(--space-5) + env(safe-area-inset-bottom, 0px)); }
.scr-capture .cam-way {
  display: inline-flex; align-items: center; gap: var(--space-2);
  min-height: var(--tap); padding: var(--space-2) var(--space-3);
  border: 0; border-radius: var(--radius-control); background: transparent; color: var(--bg);
  font-size: var(--text-base); font-weight: var(--weight-ui); line-height: var(--lh-snug);
  text-decoration: underline; text-underline-offset: 3px;
}
.scr-capture .cam-way .ico { flex: none; inline-size: var(--ico-md); block-size: var(--ico-md); }
.scr-capture .cam-way:active { background: color-mix(in srgb, var(--bg) 18%, transparent); }
@media (hover: hover) { .scr-capture .cam-way:hover { background: color-mix(in srgb, var(--bg) 12%, transparent); } }

html.is-large-text .scr-capture .cam-ways,
html.is-large-text .scr-capture .cam-pickrow,
html.is-large-text .scr-capture .cam--desk .cam-hint { --gutter: var(--space-5); }

/* home-r25.html → .scr-home */
.scr-home .wordmark:has(.lockup-tag) { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); line-height: var(--lh-snug); }
.scr-home .lockup-beta { flex: none; display: inline-flex; align-items: center; gap: var(--space-3); }

.scr-home .greet { margin: 0 0 var(--space-5); }
.scr-home .greet-hi {
  margin: 0; font-family: var(--font-display); font-size: var(--text-lg); font-weight: var(--weight-announce);
  line-height: var(--lh-tight); letter-spacing: var(--track-head); text-wrap: balance;
}
.scr-home .greet-day { margin: var(--space-1) 0 0; color: var(--muted); font-size: var(--text-sm); line-height: var(--lh-snug); }
.scr-home .greet-lead { margin: var(--space-2) 0 0; font-size: var(--text-md); line-height: var(--lh-snug); text-wrap: pretty; }

.scr-home .resume {
  display: flex; align-items: center; gap: var(--space-3);
  width: 100%; margin: 0; padding: var(--space-4) var(--space-4) var(--space-4) var(--space-5);
  border: 0; border-radius: var(--radius-card); background: var(--brand); color: var(--bg);
  text-align: start; text-decoration: none; transition: transform var(--dur-exit) var(--ease-out);
}
.scr-home .resume:active { transform: translateY(1px); background: color-mix(in srgb, var(--brand) 88%, var(--fg)); }
@media (hover: hover) { .scr-home .resume:hover { background: color-mix(in srgb, var(--brand) 92%, var(--fg)); } }
.scr-home .resume-txt { flex: 1 1 0; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-1); }
.scr-home .resume-eyebrow {
  display: block; color: var(--brand-wash);
  font-size: var(--text-sm); font-weight: var(--weight-announce); line-height: var(--lh-snug);
}
.scr-home .resume-name {
  display: block; margin-top: var(--space-1);
  font-family: var(--font-display); font-size: var(--text-md); font-weight: var(--weight-announce);
  line-height: var(--lh-tight); letter-spacing: var(--track-head); text-wrap: pretty; overflow-wrap: anywhere;
}
.scr-home .resume-next { display: block; font-weight: var(--weight-ui); line-height: var(--lh-snug); }
.scr-home .resume-sub { margin-top: var(--space-1); color: var(--brand-wash); font-weight: var(--weight-read); }
.scr-home .resume > .ico { flex: none; inline-size: var(--ico-lg); block-size: var(--ico-lg); color: var(--brand-wash); }

.scr-home .resume--off { background: var(--surface); color: var(--fg); }
.scr-home .resume--off:active { transform: none; background: var(--surface); }
@media (hover: hover) { .scr-home .resume--off:hover { background: var(--surface); } }
.scr-home .resume--off .resume-eyebrow, .scr-home .resume--off .resume-sub { color: var(--muted); }

.scr-home .course { margin-top: var(--space-6); }
.scr-home .course-h {
  margin: 0; padding-bottom: var(--space-2); border-bottom: var(--hairline) solid var(--border);
  font-family: var(--font-display); font-size: var(--text-md); font-weight: var(--weight-announce);
  line-height: var(--lh-tight); letter-spacing: var(--track-head);
}
.scr-home .course > .sec:first-of-type { margin-top: var(--space-5); }

.scr-home .sec--cu { margin-top: 0; margin-bottom: var(--space-5); }

.scr-home .card { padding: var(--space-4) var(--space-4) var(--space-2); border-radius: var(--radius-card); background: var(--surface); }
.scr-home .card--flush { padding-top: var(--space-2); }
.scr-home .unit-row {
  display: flex; align-items: center; gap: var(--space-3);
  width: calc(100% + var(--space-4)); min-height: var(--tap); margin: 0 calc(-1 * var(--space-2)); padding: var(--space-2);
  border: 0; border-radius: var(--radius-control); background: transparent; color: var(--fg); text-align: start;
}
.scr-home .unit-row:active { background: var(--surface-sunk); }
@media (hover: hover) { .scr-home .unit-row:hover { background: var(--surface-sunk); } }
.scr-home .card > .unit-row:first-child { margin-top: calc(-1 * var(--space-2)); }
.scr-home .unit-txt { flex: 1 1 0; min-width: 0; }
.scr-home .unit-t {
  display: block; font-family: var(--font-display); font-size: var(--text-md); font-weight: var(--weight-announce);
  line-height: var(--lh-tight); letter-spacing: var(--track-head); text-wrap: pretty; overflow-wrap: anywhere;
}
.scr-home .unit-d { display: block; margin-top: var(--space-1); color: var(--muted); font-size: var(--text-sm); line-height: var(--lh-snug); }
.scr-home .unit-row .ico { flex: none; inline-size: var(--ico-lg); block-size: var(--ico-lg); color: var(--muted); }
.scr-home .unit-left { margin: 0 0 var(--space-2); color: var(--muted); font-size: var(--text-sm); line-height: var(--lh-snug); }

.scr-home .unit-row:disabled { color: var(--muted); }
.scr-home .unit-row:disabled .unit-t { color: var(--muted); }
.scr-home .unit-row:disabled:active { transform: none; background: transparent; }
@media (hover: hover) { .scr-home .unit-row:disabled:hover { background: transparent; } }

.scr-home .ws-list { list-style: none; margin: 0; padding: 0; }
.scr-home .ws-list > li + li { border-top: var(--hairline) solid var(--border); }
.scr-home .ws {
  display: flex; align-items: center; gap: var(--space-3);
  width: calc(100% + var(--space-4)); min-height: var(--tap); margin: 0 calc(-1 * var(--space-2)); padding: var(--space-3) var(--space-2);
  border: 0; border-radius: var(--radius-control); background: transparent; color: var(--fg); text-align: start; text-decoration: none;
}
.scr-home .ws:active { background: var(--surface-sunk); }
@media (hover: hover) { .scr-home .ws:hover { background: var(--surface-sunk); } }
.scr-home .sec > .ws-list .ws:active, .scr-home .sec > .ws-list .ws:hover, .scr-home .unit > .ws-list .ws:active, .scr-home .unit > .ws-list .ws:hover { background: var(--surface); }
.scr-home .ws-txt { flex: 1 1 0; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-2); }
.scr-home .ws-name { display: block; font-weight: var(--weight-ui); line-height: var(--lh-snug); text-wrap: pretty; overflow-wrap: anywhere; }
.scr-home .ws-bar {
  display: block; width: 100%; height: var(--progress-h); border-radius: var(--radius-pill);
  background: var(--surface-sunk); overflow: hidden;
}
.scr-home .sec > .ws-list .ws-bar, .scr-home .unit > .ws-list .ws-bar { background: var(--border); }
.scr-home .ws-bar > span { display: block; height: 100%; width: 100%; background: var(--brand); transform-origin: left center; transform: scaleX(var(--p, 0)); }
.scr-home .ws-state {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-1) var(--space-2);
  font-size: var(--text-sm); line-height: var(--lh-snug);
}
.scr-home .ws-done { font-weight: var(--weight-ui); }
.scr-home .ws-when { color: var(--muted); }
.scr-home .ws-state--all { align-items: center; color: var(--success); font-weight: var(--weight-announce); }
.scr-home .ws-state--all .ico { inline-size: var(--ico-sm); block-size: var(--ico-sm); }
.scr-home .ws-state--all .ws-when { font-weight: var(--weight-read); }

.scr-home .ws-state--chip { align-items: center; }
.scr-home .ws > .ico { flex: none; inline-size: var(--ico-lg); block-size: var(--ico-lg); color: var(--muted); }

.scr-home .unit + .unit { border-top: var(--hairline) solid var(--border); }
.scr-home .unit > .ws-list { padding-bottom: var(--space-2); animation: rise-in var(--dur-enter) var(--ease-out); }

.scr-home .queued {
  display: flex; align-items: flex-start; gap: var(--space-3);
  min-height: var(--tap); padding: var(--space-3) var(--space-2);
  color: var(--muted);
}
.scr-home .queued > .ico { flex: none; inline-size: var(--ico-md); block-size: var(--ico-md); margin-top: 0.15em; color: var(--muted); }
.scr-home .queued-txt { flex: 1 1 0; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-1); }
.scr-home .queued-name { display: block; color: var(--fg); font-weight: var(--weight-ui); line-height: var(--lh-snug); overflow-wrap: anywhere; }
.scr-home .queued-state { display: block; font-size: var(--text-sm); line-height: var(--lh-snug); }

.scr-home .later {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--space-1) var(--space-3);
  margin-top: var(--space-6); padding-top: var(--space-4); border-top: var(--hairline) solid var(--border); color: var(--muted);
}
.scr-home .later-t { font-weight: var(--weight-ui); }
.scr-home .later-s { font-size: var(--text-sm); }

.scr-home .unit-dates { margin: 0; color: var(--muted); font-size: var(--text-sm); line-height: var(--lh-snug); }
.scr-home .unit-dates .meta { white-space: nowrap; }
.scr-home .unit-dates .meta + .meta::before { content: "\00b7"; margin-inline: 0.45em; }
html.is-large-text .scr-home .unit-dates .meta { display: block; white-space: normal; }
html.is-large-text .scr-home .unit-dates .meta + .meta::before { content: none; }

.scr-home .opt-list { list-style: none; margin: 0; padding: 0; }
.scr-home .opt-list > li + li { border-top: var(--hairline) solid var(--border); }
.scr-home .opt {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; gap: var(--space-3);
  width: calc(100% + var(--space-4)); min-height: calc(var(--tap) + var(--space-2)); margin: 0 calc(-1 * var(--space-2)); padding: var(--space-3) var(--space-2);
  border: 0; border-radius: var(--radius-control); background: transparent; color: var(--fg); text-align: start; text-decoration: none;
}
.scr-home .opt:active { background: var(--surface-sunk); }
@media (hover: hover) { .scr-home .opt:hover { background: var(--surface); } }
.scr-home .opt > .ico { margin-top: 0.15em; }
.scr-home .opt > .ico:first-child { inline-size: var(--ico-xl); block-size: var(--ico-xl); color: var(--brand); }
.scr-home .opt > .ico:last-child { inline-size: var(--ico-lg); block-size: var(--ico-lg); color: var(--muted); }

.scr-home .opt--menu { align-items: center; min-height: var(--tap); }
.scr-home .opt--menu > .ico { margin-top: 0; }
.scr-home .opt--menu > .ico:first-child { inline-size: var(--ico-lg); block-size: var(--ico-lg); }
.scr-home .opt-txt { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-1); }
.scr-home .opt-name { display: block; font-weight: var(--weight-announce); line-height: var(--lh-snug); }
.scr-home .opt-h { display: block; color: var(--muted); font-size: var(--text-sm); line-height: var(--lh-snug); text-wrap: pretty; }
.scr-home .opt-list > li.is-apart { margin-top: var(--space-4); padding-top: var(--space-2); }

.scr-home .opt[aria-current="true"] .opt-name { color: var(--brand); }

.scr-home .empty-ways { margin-top: var(--space-6); }

.scr-home .sheet--home { --sheet-max: calc(100% - var(--space-7)); overflow: hidden; }
.scr-home .sheet--home .sheet-scroll { margin-inline: calc(-1 * var(--gutter)); padding: var(--space-4) var(--gutter) var(--space-3); }

.scr-home .sheet--menu .sheet-scroll { padding-top: var(--space-3); }

.scr-home .help-h:focus { outline: none; }
.scr-home .help-h:focus-visible { outline: var(--focus-w) solid var(--focus); outline-offset: var(--focus-off); }
.scr-home .help-h { margin: 0; font-family: var(--font-display); font-size: var(--text-md); font-weight: var(--weight-announce); line-height: var(--lh-tight); letter-spacing: var(--track-head); }
.scr-home .help-p { margin: var(--space-2) 0 0; line-height: var(--lh-body); max-width: var(--measure); text-wrap: pretty; }
.scr-home .help-opts { margin-top: var(--space-5); border-top: var(--hairline) solid var(--border); }
.scr-home .help-rows { list-style: none; margin: var(--space-5) 0 0; padding: 0; border-top: var(--hairline) solid var(--border); }
.scr-home .help-rows > li + li { border-top: var(--hairline) solid var(--border); }
.scr-home .help-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-1); padding: var(--space-3) 0; }
.scr-home .help-row-n { margin: 0; font-size: var(--text-base); font-weight: var(--weight-announce); line-height: var(--lh-snug); }
.scr-home .help-row-n:focus { outline: none; }
.scr-home .help-row-n:focus-visible { outline: var(--focus-w) solid var(--focus); outline-offset: var(--focus-off); }
.scr-home .help-row-s { color: var(--muted); font-size: var(--text-sm); line-height: var(--lh-snug); text-wrap: pretty; }

.scr-home .see-block { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-1); min-width: 0; }

.scr-home .see-block > * { grid-column: 1; }
.scr-home .see-block > p { margin: 0; line-height: var(--lh-snug); text-wrap: pretty; }
.scr-home .see-block .link-btn { margin-top: var(--space-1); }
.scr-home .see-list { list-style: none; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-2); margin: var(--space-2) 0 0; padding: 0; }
.scr-home .see-list > li { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-1); }

.scr-home .see-n { display: block; font-weight: var(--weight-ui); line-height: var(--lh-snug); overflow-wrap: anywhere; }
.scr-home .see-r { display: block; color: var(--muted); font-size: var(--text-sm); line-height: var(--lh-snug); text-wrap: pretty; overflow-wrap: anywhere; }

.scr-home .stepper { display: flex; align-items: center; gap: var(--space-4); }
.scr-home .step-btn {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: var(--tap); height: var(--tap); padding: 0;
  border: var(--hairline) solid var(--border-strong); border-radius: var(--radius-control); background: transparent; color: var(--brand);
  font-size: var(--text-lg); font-weight: var(--weight-announce); line-height: var(--lh-tight);
}
.scr-home .step-btn:active { background: var(--surface-sunk); }
@media (hover: hover) { .scr-home .step-btn:not(:disabled):hover { background: var(--brand-wash); } }
.scr-home .step-btn:disabled { color: var(--border-strong); border-color: var(--border); }
.scr-home .step-val { min-width: 2.5ch; text-align: center; font-family: var(--font-ui); font-size: var(--text-xl); font-weight: var(--weight-announce); line-height: var(--lh-tight); font-variant-numeric: tabular-nums; }
.scr-home .quick { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-3); margin-top: var(--space-4); }
.scr-home .quick-l { flex: none; color: var(--muted); font-size: var(--text-sm); line-height: var(--lh-snug); }
.scr-home .quick-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: var(--tap); min-height: var(--tap); padding: 0 var(--space-3);
  border: var(--hairline) solid var(--border-strong); border-radius: var(--radius-control); background: transparent;
  color: var(--fg); font-weight: var(--weight-ui); line-height: var(--lh-tight); white-space: nowrap;
}
.scr-home .quick-btn[aria-pressed="true"] { border-color: var(--brand); background: var(--brand-wash); color: var(--brand); font-weight: var(--weight-announce); }
.scr-home .quick-btn:active { background: var(--surface-sunk); }
@media (hover: hover) { .scr-home .quick-btn[aria-pressed="false"]:hover { background: var(--surface); } }

.scr-home .pick-list { margin: 0 0 0 calc(var(--control-size-lg) + var(--space-3)); padding: 0; list-style: none; }
.scr-home .row-opts .pick-list { margin: 0 0 0 var(--space-3); }

.scr-home .seg[data-fit="2"], .scr-home .seg[data-fit="2s"] { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.scr-home .seg[data-fit="1"] { display: grid; grid-template-columns: minmax(0, 1fr); }
.scr-home .seg[data-fit="2s"] .seg-opt { font-size: var(--text-sm); }
.scr-home .seg-opt + .seg-opt::before {
  content: ""; position: absolute; inset-block: var(--space-2);
  inset-inline-start: calc(-0.5px - var(--space-1) / 2); width: 1px; background: var(--border-strong);
}
.scr-home .seg:not([data-fit="4"]) .seg-opt::before,
.scr-home .seg-opt:has(input:checked)::before,
.scr-home .seg-opt:has(input:checked) + .seg-opt::before { content: none; }
.scr-home .seg:not([data-fit="4"]) .seg-opt:not(:has(input:checked)) { box-shadow: inset 0 0 0 var(--hairline) var(--border-strong); }
.scr-home .seg-hint { margin: var(--space-2) 0 0; color: var(--muted); font-size: var(--type-hint); line-height: var(--lh-snug); }

.scr-home .fb-field { grid-template-columns: minmax(0, 1fr); }
.scr-home .fb-tick .pick { padding-block: var(--space-1); }
.scr-home .fb-tick .pick-txt > span:first-child { font-weight: var(--weight-ui); }
.scr-home .fb-tick .pick + .fb-help + .pick { margin-top: var(--space-3); }

.scr-home .menu-who { margin: 0 0 var(--space-4); }
.scr-home .menu-who-n {
  display: block; font-family: var(--font-ui); font-size: var(--text-md); font-weight: var(--weight-announce);
  line-height: var(--lh-tight); letter-spacing: var(--track-head); text-wrap: pretty;
}
.scr-home .menu-who-m { display: block; margin-top: var(--space-1); color: var(--muted); font-size: var(--text-sm); line-height: var(--lh-snug); }

.scr-home .cu-list { list-style: none; margin: 0; padding: 0; }
.scr-home .cu-list > li + li > .cu { border-top: var(--hairline) solid var(--border); }
.scr-home .cu {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-2);
  margin: 0 calc(-1 * var(--space-3)); padding: var(--space-3);
  border-radius: var(--radius-control);
}
.scr-home .card > .cu-list > li:first-child > .cu { margin-top: calc(-1 * var(--space-2)); }
.scr-home .cu--soon { background: var(--warn-wash); }
.scr-home .cu-from, .scr-home .ws-from, .scr-home .la-src {
  display: flex; align-items: flex-start; gap: var(--space-2);
  margin: 0; color: var(--muted); font-size: var(--text-sm); line-height: var(--lh-snug);
}
.scr-home .cu-from .ico, .scr-home .ws-from .ico, .scr-home .la-src .ico { flex: none; inline-size: var(--ico-sm); block-size: var(--ico-sm); margin-top: 0.15em; }
.scr-home .cu-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-1) var(--space-3); }
.scr-home .cu-t {
  flex: 1 1 auto; min-width: 0; margin: 0;
  font-family: var(--font-display); font-size: var(--text-md); font-weight: var(--weight-announce);
  line-height: var(--lh-tight); letter-spacing: var(--track-head); text-wrap: pretty; overflow-wrap: anywhere;
}
.scr-home .cu-m { margin: 0; color: var(--muted); font-size: var(--text-sm); line-height: var(--lh-snug); }
.scr-home .cu .link-btn { margin-top: 0; }
.scr-home .ws-txt > .ws-from { margin-bottom: calc(-1 * var(--space-1)); }
.scr-home .from-txt { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-1); min-width: 0; }
.scr-home .from-txt > span { display: block; }

.scr-home .cu--soon .status--warn { --chip-wash: var(--bg); }
.scr-home .unit-row > .status { margin-inline-end: calc(-1 * var(--space-1)); }
.scr-home .unit-dates .status { margin-inline-start: 0.45em; }

html.is-large-text .scr-home .status { max-inline-size: 100%; white-space: normal; }

.scr-home .topics { list-style: none; margin: 0; padding: 0; }
.scr-home .topics > li + li { border-top: var(--hairline) solid var(--border); }
.scr-home .topic {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center;
  column-gap: var(--space-3); min-height: var(--tap); padding: var(--space-2) 0;
}
.scr-home .topic-n { min-width: 0; font-weight: var(--weight-ui); line-height: var(--lh-snug); text-wrap: pretty; }
.scr-home .sec-note--lead { margin: 0 0 var(--space-5); }
html.is-large-text .scr-home .topic { grid-template-columns: minmax(0, 1fr); row-gap: var(--space-1); justify-items: start; }

.scr-home .topic-txt { display: grid; gap: var(--space-1); min-width: 0; }
.scr-home .topic-u { color: var(--muted); font-size: var(--text-sm); line-height: var(--lh-snug); }
.scr-home .topics-more { margin: var(--space-2) 0 0; }

.scr-home .topic-act { margin: 0 0 var(--space-2); }

.scr-home .week { margin-block-start: var(--space-5); }
.scr-home .week-row {
  display: grid; grid-template-columns: repeat(7, 1fr); justify-items: center;
  gap: var(--space-1); margin-block-start: var(--space-3);
  max-inline-size: min(100%, calc(7 * var(--tap)));
}
.scr-home .week-cell { display: grid; justify-items: center; gap: var(--space-2); }
.scr-home .week-mark, .scr-home .week-blank { inline-size: var(--space-3); block-size: var(--space-3); border-radius: var(--radius-pill); }
.scr-home .week-mark { background: var(--brand); }
.scr-home .week-l { color: var(--muted); font-size: var(--text-sm); line-height: 1; }
.scr-home .week-cell.is-today .week-l { color: var(--fg); font-weight: var(--weight-announce); }
html.is-large-text .scr-home .week-row { gap: 0; }
html.is-large-text .scr-home .week-cell { gap: var(--space-1); }

.scr-home .app:not(:has(.dock)) .body { padding-bottom: calc(var(--space-7) + env(safe-area-inset-bottom, 0px)); }
.scr-home .la-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-3); }
.scr-home .la { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-2); padding: var(--space-4); border-radius: var(--radius-card); background: var(--surface); }
.scr-home .la-t {
  margin: 0; font-family: var(--font-display); font-size: var(--text-md); font-weight: var(--weight-announce);
  line-height: var(--lh-tight); letter-spacing: var(--track-head); text-wrap: pretty; overflow-wrap: anywhere;
}
.scr-home .la-topic { margin: 0; color: var(--muted); font-size: var(--text-sm); line-height: var(--lh-snug); }
.scr-home .la-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 0 var(--space-4); }
.scr-home .la-acts .link-btn { margin-top: 0; }
.scr-home .la-clear-row { margin-top: var(--space-1); padding-top: var(--space-1); border-top: var(--hairline) solid var(--border); }
.scr-home .la-clear { color: var(--muted); font-weight: var(--weight-ui); }
@media (hover: hover) { .scr-home .la-clear:hover { background: var(--surface-sunk); color: var(--fg); } }
html.is-large-text .scr-home .la-acts { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: start; }

.scr-home .switch-row { padding: 0 var(--space-2) var(--space-2); }
.scr-home .subj-switch {
  display: flex; align-items: center; gap: var(--space-2);
  width: 100%; min-height: var(--tap); padding: var(--space-2) var(--space-3);
  border: var(--hairline) solid var(--border-strong); border-radius: var(--radius-control);
  background: var(--bg); color: var(--fg); text-align: start;
  font-weight: var(--weight-ui); line-height: var(--lh-snug);
}
.scr-home .subj-switch > span { flex: 1 1 auto; min-width: 0; }
.scr-home .subj-switch .ico { flex: none; inline-size: var(--ico-lg); block-size: var(--ico-lg); color: var(--muted); }
.scr-home .subj-switch:active { background: var(--surface-sunk); }
@media (hover: hover) { .scr-home .subj-switch:hover { background: var(--surface); } }
.scr-home .subjects { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-4); }
.scr-home .subj { padding: var(--space-4); border-radius: var(--radius-card); background: var(--surface); }
.scr-home .subj-h {
  margin: 0; font-family: var(--font-display); font-size: var(--text-md); font-weight: var(--weight-announce);
  line-height: var(--lh-tight); letter-spacing: var(--track-head);
}
.scr-home .subj-u { margin: var(--space-3) 0 0; font-weight: var(--weight-ui); line-height: var(--lh-snug); text-wrap: pretty; }
.scr-home .subj-m { margin: var(--space-1) 0 0; color: var(--muted); font-size: var(--text-sm); line-height: var(--lh-snug); }
.scr-home .subj .link-btn { margin-top: var(--space-2); }

.scr-home .app.is-under .banner .btn-primary {
  background: transparent; color: var(--brand); box-shadow: none;
  border: var(--hairline) solid var(--border-strong);
}
.scr-home .app.is-under .banner .btn-primary:active { transform: none; background: var(--surface-sunk); }
html.is-large-text .scr-home .banner { padding: var(--space-3); }
html.is-large-text .scr-home .banner-k { text-transform: none; letter-spacing: var(--track-ui); }
html.is-large-text .scr-home .banner-p { max-inline-size: none; }

.scr-home .app.has-install.od-screen { grid-template-rows: auto minmax(0, 1fr) auto auto; }
.scr-home .ibar {
  display: grid; gap: var(--space-2);
  padding: var(--space-3) var(--gutter);
  border-top: var(--hairline) solid var(--border); background: var(--surface);
}
.scr-home .ibar-row { display: flex; align-items: flex-start; gap: var(--space-3); }
.scr-home .ibar-ico { flex: none; inline-size: 40px; block-size: 40px; border-radius: 9px; }
.scr-home .ibar-in { min-inline-size: 0; }
.scr-home .ibar-t {
  margin: 0; font-family: var(--font-display); font-size: var(--text-base);
  font-weight: var(--weight-announce); line-height: var(--lh-snug); text-wrap: pretty;
}
.scr-home .ibar-p {
  margin: var(--space-1) 0 0; color: var(--muted); font-size: var(--text-sm);
  line-height: var(--lh-snug); max-inline-size: var(--measure); text-wrap: pretty;
}
.scr-home .ibar-acts { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); }

.scr-home .app.has-install > .dock { border-top: 0; }

html.is-large-text .scr-home .app.has-install.od-screen { display: block; block-size: 100%; overflow-y: auto; overscroll-behavior: contain; }
html.is-large-text .scr-home .app.has-install.od-screen > .od-scroll.body { overflow: visible; }
html.is-large-text .scr-home .app.has-install.od-screen > .dock { position: sticky; inset-block-end: 0; border-top: var(--hairline) solid var(--border); }
html.is-large-text .scr-home .ibar-ico { display: none; }
html.is-large-text .scr-home .ibar-p { max-inline-size: none; }
html.is-large-text .scr-home .ibar-acts > * { flex: 1 1 100%; }

html.is-large-text .scr-home .card { padding-inline: var(--space-3); }
html.is-large-text .scr-home .sec-h--eyebrow { text-transform: none; letter-spacing: var(--track-ui); }
html.is-large-text .scr-home .tb-course { display: none; }
html.is-large-text .scr-home .resume { padding-inline: var(--space-4); align-items: flex-start; }
html.is-large-text .scr-home .resume > .ico { margin-top: var(--space-1); }
html.is-large-text .scr-home .quick { gap: var(--space-2); }
html.is-large-text .scr-home .opt { grid-template-columns: auto minmax(0, 1fr); row-gap: var(--space-1); }
html.is-large-text .scr-home .opt > .ico:last-child { display: none; }
html.is-large-text .scr-home .opt-txt { grid-column: 2; }
html.is-large-text .scr-home .stepper { gap: var(--space-3); }

.scr-home .lib-sub { margin: 0 0 var(--space-4); color: var(--muted); font-size: var(--text-sm); line-height: var(--lh-snug); text-wrap: pretty; }
.scr-home .lib-sec { margin-top: var(--space-5); }
.scr-home .lib-sec > .opt-list { margin-top: var(--space-2); }
.scr-home .lib-eyebrow { margin: 0 0 var(--space-1); }
.scr-home .lib-none { margin: 0; color: var(--muted); line-height: var(--lh-snug); text-wrap: pretty; }

.scr-home .lib-ws { list-style: none; margin: 0 0 var(--space-2) calc(var(--ico-xl) + var(--space-3)); padding: 0; animation: rise-in var(--dur-enter) var(--ease-out); }
.scr-home .lib-ws > li + li { border-top: var(--hairline) solid var(--border); }
.scr-home .lib-ws .opt > .ico:first-child { inline-size: var(--ico-lg); block-size: var(--ico-lg); color: var(--muted); }
html.is-large-text .scr-home .lib-ws { margin-inline-start: 0; }

.scr-home .lib-from { margin: 0; color: var(--muted); font-size: var(--text-sm); line-height: var(--lh-snug); text-wrap: pretty; }

.scr-home .lib-topics { margin: var(--space-2) 0 0; color: var(--muted); font-size: var(--text-sm); line-height: var(--lh-snug); text-wrap: pretty; }

.scr-home .lib-empty-act { margin: var(--space-4) 0 0; }
.scr-home .lib-dest { margin: var(--space-3) 0 0; line-height: var(--lh-snug); text-wrap: pretty; }
.scr-home .lib-dest strong { font-weight: var(--weight-announce); }

.scr-home .lib-probs { list-style: none; margin: var(--space-4) 0 0; padding: 0; border-top: var(--hairline) solid var(--border); }
.scr-home .lib-probs > li { border-bottom: var(--hairline) solid var(--border); }
.scr-home .lib-prob { display: grid; grid-template-columns: 2.25rem minmax(0, 1fr); column-gap: var(--space-3); align-items: start; padding: var(--space-3) 0; }
.scr-home .lib-prob-n { color: var(--muted); font-size: var(--text-sm); font-weight: var(--weight-announce); font-variant-numeric: tabular-nums; line-height: 1.9; }
.scr-home .lib-prob-m { margin: 0; min-width: 0; color: var(--fg); font-family: var(--font-math); font-size: var(--math); line-height: 1.5; overflow-x: auto; overflow-y: hidden; }
.scr-home .lib-prob-m .katex { font-size: 1em; color: var(--fg); }
html.is-large-text .scr-home .lib-prob { grid-template-columns: minmax(0, 1fr); row-gap: var(--space-1); }
html.is-large-text .scr-home .lib-prob-n { line-height: var(--lh-snug); }

.scr-home .opt:disabled { color: var(--muted); }
.scr-home .opt:disabled .opt-name { color: var(--muted); }
.scr-home .opt:disabled > .ico:first-child { color: var(--muted); }
.scr-home .opt:disabled:active { background: transparent; }
@media (hover: hover) { .scr-home .opt:disabled:hover { background: transparent; } }

.scr-home .lib-added { margin: 0 0 var(--space-5); }

/* admin-r48.html → .scr-console */
.scr-console .skip {
  position: absolute; top: var(--space-2); left: var(--space-2); z-index: 20;
  width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
.scr-console .skip:focus {
  display: inline-flex; align-items: center; width: auto; height: auto;
  min-height: 40px; padding: 0 var(--space-4); overflow: visible; clip-path: none;
  border-radius: var(--radius-control); background: var(--brand); color: var(--bg);
  font-size: var(--text-base); font-weight: var(--weight-announce); text-decoration: none;
}

.scr-console .as-switch { margin: var(--space-5) 0 0; padding: var(--space-4); border: var(--hairline) solid var(--border); border-radius: var(--radius-control); background: var(--surface); }
.scr-console .as-switch-k { display: block; margin: 0 0 var(--space-1); font-size: var(--type-meta); font-weight: var(--weight-announce); color: var(--muted); }
.scr-console .as-switch-p { margin: 0 0 var(--space-3); font-size: var(--text-sm); color: var(--muted); line-height: var(--lh-snug); }
.scr-console .as-switch-url { margin: 0 0 var(--space-3); font-size: var(--text-sm); overflow-wrap: anywhere; }
.scr-console .as-switch-list { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.scr-console .as-opt { display: inline-flex; align-items: center; gap: var(--space-2); min-height: var(--tap); padding: var(--space-2) var(--space-3); border: var(--hairline) solid var(--border-strong); border-radius: var(--radius-control); background: var(--bg); color: var(--fg); font-size: var(--text-sm); font-weight: var(--weight-ui); text-decoration: none; line-height: var(--lh-snug); }
.scr-console .as-opt:hover { border-color: var(--brand); }
.scr-console .as-opt:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.scr-console .as-opt .as-role { color: var(--muted); font-weight: var(--weight-read); }
.scr-console .as-opt[aria-current="page"] { border-color: var(--brand); background: var(--brand-wash); color: var(--brand); font-weight: var(--weight-announce); }
.scr-console .as-opt[aria-current="page"] .as-role { color: var(--brand); }

.scr-console .art {
  position: relative; flex: none; width: var(--aw, 1280px); height: var(--ah, 800px);
  overflow: hidden; background: var(--bg); border: var(--hairline) solid var(--border-strong);
  container-type: inline-size; container-name: art;
}

.scr-console .app {
  --nav-w: 232px; --pad: var(--space-5); --figure: 1.625rem;
  display: grid; grid-template-rows: auto minmax(0, 1fr);

  container-type: normal;
}
@container art (max-width: 1150px) {
  .scr-console .app { --nav-w: 196px; --pad: var(--space-4); --figure: 1.25rem; }
}

/* Repo copy (Tess, 11-26): A92's dialog shape (bottom sheet under 600px, the head scrolling in, the note in the body, the large-text title step) is mock-only here; UI 4 builds it once in Sheet.tsx (G7). */
/* Repo copy (Tess, 11-25): A89b's large-text top-bar and dialog-scroll rules are mock-only and left out here; the build does both its own way (UI 2's top bar, P29; UI 4's G7 sheets). */
@container art (min-width: 1400px) {
  .scr-console .app { --nav-w: 248px; --pad: var(--space-6); }
}

.scr-console .topbar {
  flex-wrap: wrap; gap: var(--space-3) var(--space-4);
  padding: var(--space-3) var(--pad);
  border-block-end: var(--hairline) solid var(--border);
}

.scr-console .lockup { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-3); flex: 0 1 auto; min-width: 0; }
.scr-console .lockup img { display: block; height: 1.6rem; width: auto; max-width: 100%; }

.scr-console .tb-spacer { flex: 1 1 auto; min-width: var(--space-4); }

@container art (max-width: 900px) { .scr-console .tb-spacer { display: none; } }
.scr-console .tb-env {
  display: flex; align-items: center; gap: var(--space-2); flex: 0 1 auto; min-width: 0;
  padding: var(--space-1) var(--space-2); border-radius: var(--radius-control);
  background: var(--info-wash); color: var(--info);
  font-size: var(--text-sm); font-weight: var(--weight-ui);
}

.scr-console .tb-env > span { min-width: 0; overflow-wrap: anywhere; }
.scr-console .tb-env .ico { flex: none; }
.scr-console .whoami { display: grid; flex: 0 1 auto; min-width: 0; text-align: right; line-height: var(--lh-snug); }

.scr-console .whoami-btn {
  justify-items: end;

  margin: calc(-1 * var(--space-3)) calc(-1 * var(--space-2));
  padding: var(--space-3) var(--space-2);
  background: transparent;
  border: 0;
  border-radius: var(--radius-control);
  color: inherit;

  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: var(--lh-snug);
  text-align: right;
  cursor: pointer;
}
.scr-console .whoami-btn:hover { background: var(--surface); }
.scr-console .whoami-btn:active { background: var(--surface-sunk); }

.scr-console .whoami-btn:focus-visible { outline: var(--focus-w) solid var(--focus); outline-offset: var(--focus-off); }

.scr-console .whoami-top { display: flex; align-items: center; justify-content: flex-end; gap: var(--space-2); min-width: 0; }
.scr-console .whoami-top .whoami-name { min-width: 0; }
.scr-console .whoami-top .chev { flex: none; inline-size: var(--ico-md); block-size: var(--ico-md); color: var(--muted); }
.scr-console .whoami-btn[aria-expanded="true"] .chev { transform: rotate(180deg); }

.scr-console .topbar:has(> .acct-wrap) { justify-content: flex-start; }

.scr-console .topbar:has(> .acct-wrap) > :first-child { margin-inline-end: 0; }

.scr-console a.lockup { min-block-size: var(--tap-min); text-decoration: none; color: inherit; border-radius: var(--radius-control); }
.scr-console .whoami-name, .scr-console .whoami-role { overflow-wrap: anywhere; }
.scr-console .whoami-name { display: block; font-size: var(--text-base); font-weight: var(--weight-announce); }
.scr-console .whoami-role { display: block; font-size: var(--text-sm); color: var(--muted); }
.scr-console .whoami-role .dot { display: inline-block; width: var(--space-1); }

.scr-console .nav-group { margin-top: var(--space-4); }
.scr-console .nav-group:first-child { margin-top: 0; }
.scr-console .nav-group-label {
  padding: 0 var(--space-4) var(--space-2);
  font-size: var(--type-meta); font-weight: var(--weight-announce); color: var(--muted);
}
.scr-console .nav-item .ico { color: var(--muted); }
.scr-console .nav-item:hover { background: var(--surface-sunk); }
.scr-console .nav-item.is-cur .ico { color: var(--brand); }
.scr-console .nav-count { margin-left: auto; font-size: var(--text-sm); color: var(--muted); font-variant-numeric: tabular-nums; }
.scr-console .nav-item.is-cur .nav-count { color: var(--brand); }

.scr-console .nav-wait {
  margin-left: var(--space-2); padding: 1px var(--space-2);
  border-radius: var(--radius-control); background: var(--brand-wash);
  color: var(--brand); font-size: var(--text-sm); white-space: nowrap;
}
.scr-console .nav-count + .nav-wait { margin-left: var(--space-2); }

.scr-console .page-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: var(--space-4); padding-bottom: var(--space-3);
  border-bottom: var(--hairline) solid var(--border);
}
.scr-console .page-head-text { min-width: 0; }
.scr-console .page-title {
  font-family: var(--font-display); font-size: var(--text-xl);
  font-weight: var(--weight-announce); line-height: var(--lh-tight);
  letter-spacing: var(--track-head);
}
.scr-console .page-sub { margin-top: var(--space-1); color: var(--muted); font-size: var(--text-base); }
.scr-console .page-acts { display: flex; align-items: center; gap: var(--space-2); flex: none; }

@container art (max-width: 560px) {
  .scr-console .page-head { flex-wrap: wrap; }
  .scr-console .page-acts { flex: 1 1 100%; flex-wrap: wrap; }
}

.scr-console .panel-foot .page-acts, .scr-console .dlg-foot .page-acts { flex: 0 1 auto; min-width: 0; flex-wrap: wrap; justify-content: flex-end; }

.scr-console .va-acts { flex: 0 1 auto; min-width: 0; flex-wrap: wrap; justify-content: flex-end; }

.scr-console .va-head .page-head { flex-wrap: wrap; }
.scr-console .va-head .page-head-text { min-width: 0; flex: 1 1 14rem; }

.scr-console .va-people .kv-v .sub { overflow-wrap: anywhere; }

.scr-console .btn.is-off, .scr-console a.btn.is-off {
  color: var(--muted); border-color: var(--border); border-width: var(--hairline);
  background: var(--surface); pointer-events: none;
}

.scr-console .sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-4); padding-bottom: var(--space-2); border-bottom: var(--hairline) solid var(--border); }
.scr-console .sec-title { font-size: var(--text-base); font-weight: var(--weight-announce); }

.scr-console .sec-note { font-size: var(--type-hint); color: var(--muted); text-align: start; }

@container art (max-width: 560px) { .scr-console .sec-head { flex-wrap: wrap; row-gap: var(--space-1); } .scr-console .sec-head > .sec-note { flex-basis: 100%; text-align: start; } }
.scr-console .sec-body { margin-top: var(--space-4); }

.scr-console .cols { --cols-split: minmax(0, 1fr); align-items: stretch; }
@container art (min-width: 1150px) { .scr-console .cols-2 { --cols-split: minmax(0, 1fr) minmax(0, 1fr); } }
@container art (min-width: 1150px) { .scr-console .cols-wide-right { --cols-split: minmax(0, 7fr) minmax(0, 5fr); } }
@container art (min-width: 1150px) { .scr-console .cols-wide-left { --cols-split: minmax(0, 5fr) minmax(0, 7fr); } }

@container art (min-width: 1500px) { .scr-console .cols-stack-wide { --cols-split: minmax(0, 5fr) minmax(0, 7fr); } }

.scr-console .fig-k { display: block; min-block-size: calc(2 * 1.35em); }

.scr-console .fig-v { margin-block-start: var(--space-2); }
.scr-console .fig-n { display: block; margin-top: var(--space-1); font-size: var(--text-sm); color: var(--muted); line-height: var(--lh-snug); }

.scr-console .fig-row { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: start; gap: var(--space-1); margin-top: var(--space-2); min-width: 0; }

.scr-console .figs-stack { grid-auto-flow: row; grid-auto-columns: auto; }
.scr-console .figs-stack .fig { border-inline-start: 0; border-block-start: var(--hairline) solid var(--border); }
.scr-console .figs-stack .fig:first-child { border-block-start: 0; }
.scr-console .bh-series { display: grid; gap: var(--space-2); }

.scr-console .bh-plot { position: relative; block-size: 160px; }
.scr-console .bh-cols { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); align-items: end; gap: var(--space-3); block-size: 100%; }
.scr-console .bh-bar-wrap { display: flex; align-items: flex-end; inline-size: 100%; block-size: 100%; }
.scr-console .bh-bar { display: block; inline-size: 100%; block-size: calc(var(--h) * 100%); min-block-size: 2px; background: var(--brand); }

.scr-console .bh-axis { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: var(--space-3); }
.scr-console .bh-tick { display: grid; justify-items: center; gap: var(--space-1); min-width: 0; }
.scr-console .bh-v { font-size: var(--text-base); font-variant-numeric: tabular-nums; white-space: nowrap; }
.scr-console .bh-w { font-size: var(--text-sm); color: var(--muted); white-space: nowrap; }

.scr-console .bh-bar--part { background: transparent; border: var(--edge-strong) dashed var(--brand); }

.scr-console .bh-ref { position: absolute; inset-inline: 0; inset-block-end: calc(var(--at) * 100%); display: block; border-block-start: var(--hairline) dashed var(--fg); pointer-events: none; }
.scr-console .bh-meter { display: grid; gap: var(--space-2); }
.scr-console .bh-meter-track { position: relative; block-size: 14px; background: var(--surface-sunk); }
.scr-console .bh-meter-fill { position: absolute; inset-block: 0; inset-inline-start: 0; inline-size: calc(var(--w) * 100%); background: var(--brand); }

.scr-console .bh-meter-band { position: absolute; inset-block: 0; inset-inline-start: calc(var(--from) * 100%); inline-size: calc(var(--w) * 100%); background: color-mix(in srgb, var(--danger-wash) 55%, transparent); background-image: repeating-linear-gradient(135deg, transparent 0 4px, color-mix(in srgb, var(--danger) 45%, transparent) 4px 7px); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--danger) 45%, transparent); }
.scr-console .bh-meter-ref { position: absolute; inset-block: -4px; inset-inline-start: calc(var(--at) * 100%); inline-size: 0; border-inline-start: 2px solid var(--fg); }
.scr-console .bh-meter-legend { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-2); font-size: var(--text-sm); }
.scr-console .bh-meter-now { font-variant-numeric: tabular-nums; }
.scr-console .bh-meter-t { color: var(--muted); }
.scr-console .bh-ref-l { position: absolute; inset-block-end: 2px; inset-inline-start: 0; padding-inline-end: var(--space-2); background: var(--bg); font-size: var(--text-sm); color: var(--fg); white-space: nowrap; }

.scr-console .bh-none { display: block; font-size: var(--text-md); color: var(--muted); white-space: normal; text-wrap: pretty; }

.scr-console .bh-gap { margin-block-start: var(--space-3); }
.scr-console .bh-after { margin-block-start: var(--space-4); }
.scr-console .bh-next { margin-block-start: var(--space-5); }

.scr-console .spark { display: block; flex: none; width: 120px; height: 28px; overflow: visible; }
.scr-console .spark polyline { fill: none; stroke: var(--brand); stroke-width: 1.5; vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke-linecap: round; }
.scr-console .spark circle { fill: var(--brand); }
.scr-console .delta { font-size: var(--text-sm); font-weight: var(--weight-ui); font-variant-numeric: tabular-nums; white-space: nowrap; }
.scr-console .fig-row .delta { max-width: 100%; white-space: normal; overflow-wrap: break-word; }
.scr-console .delta-up { color: var(--warn); }
.scr-console .delta-down { color: var(--success); }
.scr-console .delta-flat { color: var(--muted); }

.scr-console .bars { display: grid; gap: var(--space-2); }

.scr-console .bar-row { display: grid; grid-template-columns: minmax(140px, 2fr) minmax(60px, 1.2fr) auto auto; align-items: center; gap: var(--space-3); }
.scr-console .bar-label { min-width: 0; font-size: var(--text-base); line-height: var(--lh-snug); overflow-wrap: break-word; }
.scr-console .bar-track { height: 10px; min-width: 0; background: var(--surface-sunk); }

.scr-console .bar { display: block; height: 100%; background: var(--brand); width: calc(var(--v) / var(--max) * 100%); }
.scr-console .bar-row.is-alt .bar { background: var(--muted); }
.scr-console .bar-value { font-size: var(--text-base); font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; }
.scr-console .bar-share { font-size: var(--text-sm); color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; min-width: 3.5em; }

.scr-console .bars-stack .bar-row { grid-template-columns: minmax(0, 1fr) max-content max-content; row-gap: var(--space-1); }
.scr-console .bars-stack .bar-label { grid-column: 1 / -1; font-size: var(--text-sm); }
.scr-console .bars-stack .bar-value { min-width: 4.5em; }

@container art (max-width: 599px) {
  .scr-console .bars .bar-row { grid-template-columns: minmax(0, 1fr) max-content max-content; row-gap: var(--space-1); }
  .scr-console .bars .bar-label { grid-column: 1 / -1; font-size: var(--text-sm); }
  .scr-console .bars .bar-value { min-width: 4.5em; }
}

.scr-console .tw { overflow-x: auto; border: var(--hairline) solid var(--border); background: var(--bg); }

.scr-console .tbl { --table-min: 0; }
.scr-console .tbl tfoot .t-sub { font-weight: var(--weight-read); }
.scr-console .tbl tbody tr:hover td { background: var(--surface); }
.scr-console .tbl tbody tr.is-sel td { background: var(--surface-sunk); }
.scr-console .tbl .neg { color: var(--danger); }

.scr-console .tbl .t-sub.marks, .scr-console .tbl .marks { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-1) var(--space-2); }
.scr-console .tbl .t-code { font-size: var(--text-sm); color: var(--muted); }

.scr-console .tw-fit { overflow-x: auto; }

.scr-console .tbl-tight thead th { vertical-align: bottom; }
.scr-console .tbl-tight th .sort { flex-wrap: wrap; white-space: normal; }
.scr-console .tbl-tight .pill { padding: 2px var(--space-1); white-space: normal; }
.scr-console .tbl-tight .tag { white-space: normal; }
.scr-console .tbl-tight .num .t-sub { white-space: normal; }

@container art (max-width: 1100px) {

  .scr-console .tbl thead th { white-space: normal; }

  .scr-console .tbl th .sort { flex-wrap: wrap; white-space: normal; }
  .scr-console .tbl { --cell-x: var(--space-2); }
  .scr-console .tbl-tight { --cell-x: var(--space-1); }
  .scr-console .tbl-tight thead th { font-size: var(--text-sm); }
  .scr-console .tbl-tight .nowrap { white-space: normal; }

  .scr-console .tbl-tight .num .nowrap { white-space: nowrap; }
  .scr-console .tbl-tight .num .t-code { white-space: normal; }

  .scr-console .tbl .t-sub { overflow-wrap: anywhere; }

  .scr-console .md-panel .mono { overflow-wrap: anywhere; }

  .scr-console .tbl-perms th.num, .scr-console .tbl-perms td.num { min-width: 5rem; }
  .scr-console .tbl-perms { --cell-x: var(--space-1); }

  .scr-console .tbl-sticky-act thead th:last-child,
  .scr-console .tbl-sticky-act tbody td:last-child { position: sticky; right: 0; z-index: 2; box-shadow: -1px 0 0 var(--border); }
  .scr-console .tbl-sticky-act thead th:last-child { background: var(--surface); z-index: 3; }
  .scr-console .tbl-sticky-act tbody td:last-child { background: var(--bg); }
  .scr-console .tbl-sticky-act tbody tr:hover td:last-child { background: var(--surface); }
  .scr-console .tbl-sticky-act tbody tr.is-sel td:last-child { background: var(--surface-sunk); }
  .scr-console .tbl-sticky-act tbody tr.is-held td:last-child { background: var(--warn-wash); }
}

@container art (max-width: 560px) {
  .scr-console .tw:has(.tbl--stack) { overflow-x: visible; }
  .scr-console .tbl--stack { min-inline-size: 0; }
  .scr-console .tbl--stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .scr-console .tbl--stack tbody tr { display: block; padding: var(--space-3) var(--cell-x); }
  .scr-console .tbl--stack tbody td { display: block; padding: 0; }
  .scr-console .tbl--stack tbody td + td { margin-top: var(--space-2); }

  .scr-console .tbl--stack tbody td { border-block-end: 0; }
  .scr-console .tbl--stack tbody tr + tr { border-block-start: var(--hairline) solid var(--border-strong); }
  .scr-console .tbl--stack tbody td[data-l]::before {
    content: attr(data-l); display: block;
    font-size: var(--text-sm); font-weight: var(--weight-announce); color: var(--muted); line-height: var(--lh-snug);
  }
  .scr-console .tbl--stack tbody td.num { text-align: start; }
  .scr-console .tbl--stack tbody tr:hover > td { background: transparent; }
}

.scr-console .tbl tbody tr.is-rest td { color: var(--muted); }
.scr-console .tbl tbody tr.is-rest td:first-child { color: inherit; }

.scr-console .tbl th.num .sort { justify-content: flex-end; }

.scr-console .tbl th.num .nosort { justify-content: flex-end; }
.scr-console .tbl th[aria-sort] .sort .ico { opacity: 1; color: var(--brand); }

.scr-console .tbl-perms th.num, .scr-console .tbl-perms td.num { text-align: center; min-width: 7rem; }
.scr-console .tbl-perms th.num .sort { justify-content: center; }
.scr-console .tbl-perms td.num .ico { margin-inline: auto; }
.scr-console .tbl-perms td.num .tag { white-space: normal; }

.scr-console .tbl-staff td .page-acts { flex-wrap: wrap; justify-content: flex-end; }

.scr-console .rowbtn { display: flex; align-items: center; width: 100%; min-height: 44px; margin: calc(-1 * var(--space-2)) 0; padding: 0; background: none; border: 0; font: inherit; text-align: left; color: var(--brand); font-weight: var(--weight-ui); text-decoration: none; }
.scr-console .rowbtn:hover { text-decoration: underline; }

.scr-console .tbl td a:not(.btn):not(.rowbtn):not(.tag) {
  display: inline-flex; align-items: center; min-height: 44px;
  margin-block: calc(-1 * var(--space-2));
}

.scr-console .celllinks { display: grid; grid-template-columns: minmax(0, 1fr); }
.scr-console .celllink {
  display: flex; align-items: center; min-height: 44px; min-width: 0;
  color: var(--brand); font-weight: var(--weight-ui); text-decoration: none;
}
.scr-console .celllink:hover { text-decoration: underline; }

.scr-console :where(.kv-v, .sub, .field-hint, .sec-note, .page-sub, .tbl-cap, .note-body, .perm, .prev-note, .audit-line, .step-t)
  a:not(.btn):not(.rowbtn):not(.tag):not(.celllink) {
  display: inline-flex; align-items: center; min-height: 44px;
  margin-block: calc((44px - 1.55em) / -2);
  vertical-align: middle;
}

.scr-console .dlg-lede { margin-bottom: var(--space-4); max-width: var(--measure); color: var(--fg); line-height: var(--lh-body); }

.scr-console .marks { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-1) var(--space-2); }
.scr-console .tag-rule { display: inline-flex; align-items: center; gap: var(--space-1); border-color: var(--border-strong); color: var(--fg); }
.scr-console .tag-rule .ico { width: .85em; height: .85em; color: var(--brand); }

.scr-console .stepup { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); margin-top: var(--space-1); }
.scr-console .stepup-s { font-size: var(--text-sm); color: var(--muted); line-height: var(--lh-snug); }

.scr-console .inp-code { font-variant-numeric: tabular-nums; letter-spacing: 0.04em; font-size: var(--text-md); }

.scr-console .pill {
  display: inline-flex; align-items: center; gap: var(--space-1);
  padding: 2px var(--space-2); border-radius: var(--radius-control);
  background: var(--surface-sunk); color: var(--fg);
  font-size: var(--text-sm); font-weight: var(--weight-ui); white-space: nowrap;
}
.scr-console .pill .ico { width: .85em; height: .85em; }
.scr-console .pill-new { background: var(--info-wash); color: var(--info); }
.scr-console .pill-ok { background: var(--success-wash); color: var(--success); }
.scr-console .pill-warn { background: var(--warn-wash); color: var(--warn); }
.scr-console .pill-stop { background: var(--danger-wash); color: var(--danger); }
.scr-console .pill-brand { background: var(--brand-wash); color: var(--brand); }
.scr-console .pills { display: flex; flex-wrap: wrap; gap: var(--space-1); }

.scr-console .badge { display: inline-flex; align-items: center; gap: var(--space-1); font-size: var(--text-sm); color: var(--muted); line-height: var(--lh-snug); text-align: right; }
.scr-console .badge .ico { flex: none; width: .9em; height: .9em; }
.scr-console .tag { display: inline-block; padding: 1px var(--space-2); border: var(--hairline) solid var(--border-strong); border-radius: var(--radius-control); font-size: var(--text-sm); color: var(--muted); white-space: nowrap; }

.scr-console .tag-named { color: var(--fg); border-color: var(--fg); }

.scr-console .sbanner { display: flex; align-items: flex-start; gap: var(--space-3); padding: var(--space-4) 0; border-block: var(--hairline) solid var(--border); background: var(--bg); }
.scr-console .sbanner > .ico { flex: none; width: 1.5rem; height: 1.5rem; margin-top: 0.1em; color: var(--danger); }
.scr-console .sbanner-in { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-1); }
.scr-console .sbanner-in > :where(*) { display: block; }
.scr-console .sbanner-k { font-size: var(--text-sm); font-weight: var(--weight-announce); letter-spacing: var(--track-ui); line-height: var(--lh-snug); color: var(--danger); }
.scr-console .sbanner-t { font-family: var(--font-display); font-size: var(--text-md); font-weight: var(--weight-announce); line-height: var(--lh-tight); text-wrap: pretty; }
.scr-console .sbanner-p { margin-top: var(--space-1); max-inline-size: var(--measure); font-size: var(--text-base); line-height: var(--lh-snug); text-wrap: pretty; }

.scr-console .sbanner--hold > .ico, .scr-console .sbanner--hold .sbanner-k { color: var(--warn); }

.scr-console .note {
  display: flex; align-items: flex-start; gap: var(--space-3);
  padding: var(--space-3) var(--space-4); border-radius: var(--radius-control);
  font-size: var(--text-base); line-height: var(--lh-snug);
}
.scr-console .note .ico { margin-top: 2px; }
.scr-console .note-info { background: var(--info-wash); color: var(--info); }
.scr-console .note-warn { background: var(--warn-wash); color: var(--warn); }
.scr-console .note-stop { background: var(--danger-wash); color: var(--danger); }

.scr-console .note-ok { background: var(--success-wash); color: var(--success); }

.scr-console .stop-act { margin-top: var(--space-3); }
.scr-console .note-title { display: block; font-weight: var(--weight-announce); }
.scr-console .note-body { display: block; margin-top: 2px; }
.scr-console .note a { color: inherit; }

.scr-console .perm { display: flex; align-items: flex-start; gap: var(--space-2); margin-top: var(--space-2); font-size: var(--text-base); color: var(--muted); line-height: var(--lh-snug); max-width: var(--measure); }

.scr-console .vabar { --vabar-pad: var(--pad); }
.scr-console .vabar .btn { flex: none; background: var(--bg); }

.scr-console .va-lock { display: flex; align-items: flex-start; gap: var(--space-2); margin: 0 0 var(--space-5); font-size: var(--text-sm); color: var(--muted); line-height: var(--lh-snug); max-width: var(--measure); }
.scr-console .va-lock .ico { flex: none; width: 1em; height: 1em; margin-top: 3px; }

.scr-console [aria-disabled="true"] { color: var(--muted); border-color: var(--border); background: var(--surface); cursor: default; }
.scr-console .btn[aria-disabled="true"] { box-shadow: none; transform: none; }
.scr-console .inp[aria-disabled="true"], .scr-console .sel[aria-disabled="true"] { color: var(--muted); }
.scr-console .perm .ico { width: 1em; height: 1em; margin-top: 3px; }
.scr-console .owner-only {
  display: inline-flex; align-items: center; gap: var(--space-1);
  padding: 1px var(--space-2); border-radius: var(--radius-control);
  background: var(--info-wash); color: var(--info);
  font-size: var(--text-sm); font-weight: var(--weight-announce); white-space: nowrap;
}
.scr-console .owner-only .ico { width: .85em; height: .85em; }

.scr-console .app a:not([class]) {
  color: var(--brand); font-weight: var(--weight-ui);
  text-decoration: underline; text-underline-offset: 0.15em;
}
.scr-console .app a:not([class]):active { background: var(--brand-wash); }
@media (hover: hover) { .scr-console .app a:not([class]):hover { background: var(--brand-wash); } }
.scr-console .app a:not([class]):focus-visible { outline: var(--focus-w) solid var(--focus); outline-offset: var(--focus-off); }

.scr-console .panel { border-radius: 0; }
.scr-console .panel-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); padding: var(--space-3) var(--space-4); border-bottom: var(--hairline) solid var(--border); background: var(--surface); }
.scr-console .panel-title { font-size: var(--text-base); font-weight: var(--weight-announce); }
.scr-console .panel-body { padding: var(--space-4); }
.scr-console .panel-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-3); padding: var(--space-3) var(--space-4); border-top: var(--hairline) solid var(--border); }
.scr-console .panel-foot .perm { margin-top: 0; }

.scr-console .subj { display: flex; align-items: center; gap: var(--space-2); flex: none; }
.scr-console .subj-k { font-size: var(--text-sm); font-weight: var(--weight-announce); color: var(--muted); white-space: nowrap; }

.scr-console .sel-sm { min-height: 44px; }

.scr-console input[type="range"] { width: 100%; min-height: 44px; accent-color: var(--brand); }
.scr-console input[type="range"]::-webkit-slider-thumb { width: 24px; height: 24px; }

.scr-console .filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--space-3); margin-top: var(--space-4); }

.scr-console .field-label { font-size: var(--text-sm); font-weight: var(--weight-announce); color: var(--fg); }

.scr-console .field-hint, .scr-console .field-err { max-inline-size: var(--measure); }
.scr-console .inp, .scr-console .sel {
  min-height: 44px; padding: 0 var(--space-3);
  border: var(--hairline) solid var(--border-strong); border-radius: var(--radius-control);
  background: var(--bg); color: var(--fg); font-size: var(--text-base);
}
.scr-console textarea.inp { min-height: 96px; padding: var(--space-2) var(--space-3); line-height: var(--lh-body); resize: vertical; }
.scr-console .sel { padding-right: var(--space-2); }

.scr-console .form-grid .inp, .scr-console .form-grid .sel, .scr-console .dlg-body .inp { min-width: 0; width: 100%; }

.scr-console .field-value { display: block; padding: var(--space-2) 0; font-weight: var(--weight-ui); line-height: var(--lh-snug); }

.scr-console .form-grid { display: grid; gap: var(--space-4); grid-template-columns: minmax(0, 1fr); }
@container art (min-width: 1150px) { .scr-console .form-grid-2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.scr-console .form-span { grid-column: 1 / -1; }

.scr-console .choices .choice:last-child { grid-column: 1 / -1; }

.scr-console .choices-even .choice:last-child { grid-column: auto; }
.scr-console .choice {
  display: flex; align-items: center; gap: var(--space-3);
  min-height: var(--tap); padding: var(--space-2) var(--space-3);
  border: var(--hairline) solid var(--border-strong); border-radius: var(--radius-control);
  background: var(--bg); line-height: var(--lh-snug);
}
.scr-console .choice:hover { background: var(--surface); }
.scr-console .choice input { flex: none; width: 1.15rem; height: 1.15rem; margin: 0; accent-color: var(--brand); }
.scr-console .choice.is-on { border-color: var(--brand); background: var(--brand-wash); font-weight: var(--weight-ui); }

.scr-console .grantgroup + .grantgroup { margin-block-start: var(--space-5); }
.scr-console .grantlist { margin-block-start: var(--space-2); }
.scr-console .grantlist > li { padding-block: var(--space-2); border-block-end: var(--hairline) solid var(--border); }
.scr-console .grantlist > li:last-child { border-block-end: 0; }

.scr-console .addon-lines { margin-inline-start: var(--space-6); }

.scr-console .dlg-scrim { position: absolute; inset: 0; background: color-mix(in srgb, var(--fg) 50%, transparent); }
.scr-console .dlg {
  position: relative; width: 100%; max-inline-size: 44rem; max-height: 100%;
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--bg); border: var(--hairline) solid var(--border-strong); border-radius: var(--radius-sheet);
}
.scr-console .dlg-head { flex: none; display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-4); padding: var(--space-4) var(--space-5); border-bottom: var(--hairline) solid var(--border); }
.scr-console .dlg-headtext { min-width: 0; }
.scr-console .dlg-title { font-family: var(--font-display); font-size: var(--text-lg); font-weight: var(--weight-announce); line-height: var(--lh-tight); letter-spacing: var(--track-head); }
.scr-console .dlg-sub { margin-top: var(--space-1); color: var(--muted); line-height: var(--lh-snug); }
.scr-console .dlg-close { flex: none; display: grid; place-items: center; width: var(--tap); height: var(--tap); margin: calc(-1 * var(--space-2)) calc(-1 * var(--space-3)) 0 0; border: 0; border-radius: var(--radius-control); background: none; color: var(--muted); }
.scr-console .dlg-close { text-decoration: none; }
.scr-console .dlg-close:hover { background: var(--surface); color: var(--fg); }
.scr-console .dlg-close .ico { width: 1.25rem; height: 1.25rem; }

.scr-console .dlg-head:has(> .owner-only, > .badge, > .pill) { position: relative; flex-wrap: wrap; padding-inline-end: calc(var(--tap) + var(--space-4)); }
.scr-console .dlg-head:has(> .owner-only, > .badge, > .pill) > .dlg-headtext { flex: 1 1 12em; min-inline-size: min(12em, 100%); }
.scr-console .dlg-head:has(> .owner-only, > .badge, > .pill) > .dlg-close { position: absolute; inset-block-start: var(--space-3); inset-inline-end: var(--space-3); margin: 0; }

.scr-console .dlg-head .dlg-title { overflow-wrap: normal; }
.scr-console .dlg-head .dlg-sub { overflow-wrap: break-word; }




.scr-console .dlg-body .choices { --od-cols: 3; }
.scr-console .dlg-body .choices .choice:last-child { grid-column: auto; }
.scr-console .dlg-foot .perm { flex: 1 1 17rem; margin-top: 0; }
.scr-console .dlg-cols { display: grid; gap: var(--space-4); grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); align-items: start; }

@container art (min-width: 1150px) { .scr-console .prevs { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }

.scr-console .prev-banner { display: flex; align-items: flex-start; gap: var(--space-3); padding: var(--space-3) 0; border-bottom: var(--hairline) solid var(--border); background: var(--bg); color: var(--fg); line-height: var(--lh-snug); }
.scr-console .prev-banner .ico { flex: none; width: 1.25rem; height: 1.25rem; margin-top: 2px; color: var(--warn); }
.scr-console .prev-banner.is-closed .ico { color: var(--danger); }
.scr-console .prev-banner-in { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; }
.scr-console .prev-banner-in > :where(*) { display: block; }

.scr-console .prev-k2 { font-size: var(--text-sm); font-weight: var(--weight-announce); letter-spacing: var(--track-ui); color: var(--warn); }
.scr-console .prev-banner.is-closed .prev-k2 { color: var(--danger); }
.scr-console .prev-title { display: block; font-family: var(--font-display); font-weight: var(--weight-announce); }
.scr-console .prev-p { font-size: var(--text-sm); color: var(--fg); }

.scr-console .prev-p-empty { color: var(--muted); font-style: italic; }

.scr-console .prev-act { display: flex; width: fit-content; align-items: center; min-height: 36px; margin-top: var(--space-2); padding: 0 var(--space-3); border: 0; border-bottom: var(--edge) solid var(--accent-edge); border-radius: var(--radius-control); background: var(--accent); color: var(--on-accent); font-size: var(--text-sm); font-weight: var(--weight-announce); }
.scr-console .prev-student { padding: var(--space-6) var(--space-3); text-align: center; line-height: var(--lh-snug); color: var(--fg); }
.scr-console .prev-student .prev-title { margin-bottom: var(--space-1); font-family: var(--font-display); font-size: var(--text-md); }
.scr-console .prev-note { font-size: var(--type-hint); color: var(--muted); line-height: var(--lh-snug); }

.scr-console .kv-k { font-size: var(--text-sm); font-weight: var(--weight-announce); color: var(--muted); padding-top: 2px; }
.scr-console .kv-v { min-width: 0; line-height: var(--lh-snug); }
.scr-console .kv-v .sub { display: block; font-size: var(--text-sm); color: var(--muted); margin-top: 2px; }

.scr-console .kv-v .kv-asked { color: var(--muted); }

@container art (max-width: 560px) {
  .scr-console .kv-row { grid-template-columns: minmax(0, 1fr); gap: var(--space-1); }
  .scr-console .kv-v .mono { overflow-wrap: anywhere; }
}

.scr-console .tree { display: grid; gap: var(--space-2); }
.scr-console .tree-node { display: grid; grid-template-columns: 1.15em minmax(0, 1fr) auto auto auto; align-items: baseline; gap: var(--space-3); padding: var(--space-2) 0; border-bottom: var(--hairline) solid var(--border); }
.scr-console .tree-node:last-child { border-bottom: 0; }
.scr-console .tree-node .ico { color: var(--muted); align-self: center; }
.scr-console .tree-child { padding-left: var(--space-5); }
.scr-console .tree-name { grid-column: 2; font-weight: var(--weight-ui); min-width: 0; }

.scr-console .tree-name .sub { display: block; font-size: var(--text-sm); color: var(--muted); font-weight: var(--weight-read); }
.scr-console .tree-num { font-size: var(--text-base); font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; }
.scr-console .tree-num .sub { display: block; font-size: var(--text-sm); color: var(--muted); }

@container art (max-width: 900px) {
  .scr-console .tree-node { grid-template-columns: 1.15em minmax(0, 1fr); row-gap: var(--space-1); }
  .scr-console .tree-node .tree-num { grid-column: 2; text-align: left; white-space: normal; display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-2); }
  .scr-console .tree-node .tree-num .sub { display: inline; }
}

.scr-console .diff { display: inline-flex; align-items: center; gap: var(--space-2); flex-wrap: wrap; }
.scr-console .diff-old { color: var(--muted); text-decoration: line-through; text-decoration-thickness: var(--hairline); }
.scr-console .diff-arrow { color: var(--muted); }
.scr-console .diff-new { font-weight: var(--weight-ui); }

.scr-console .choices-read { display: grid; gap: var(--space-2); margin-block-start: var(--space-3); }
.scr-console .choice-read { display: flex; align-items: flex-start; gap: var(--space-2); min-inline-size: 0; line-height: var(--lh-snug); color: var(--muted); }
.scr-console .choice-read > span { display: grid; gap: var(--space-1); min-width: 0; }
.scr-console .choice-read .ico { flex: none; margin-block-start: 0.15em; }
.scr-console .choice-read.is-on { color: var(--fg); }
.scr-console .choice-read.is-on .ico { color: var(--brand); }
.scr-console .choice-read-t { font-weight: var(--weight-ui); }
.scr-console .choice-read-b { font-size: var(--text-sm); color: var(--muted); }
.scr-console .choice-dot { flex: none; inline-size: var(--ico-lg); block-size: var(--ico-lg); display: grid; place-items: center; }
.scr-console .choice-dot::before { content: ""; inline-size: 0.4em; block-size: 0.4em; border-radius: var(--radius-pill); box-shadow: inset 0 0 0 var(--hairline) var(--border-strong); }
.scr-console .feedback-text { max-width: var(--measure); line-height: var(--lh-body); }
.scr-console .hashid { font-variant-numeric: tabular-nums; letter-spacing: 0.02em; color: var(--muted); }

.scr-console .tabs { display: flex; flex-wrap: wrap; gap: var(--space-1); margin-top: var(--space-4); border-bottom: var(--hairline) solid var(--border); }

.scr-console .glance { margin-top: var(--space-4); }
.scr-console .glance-list { display: grid; gap: 0; }
.scr-console .glance-i {
  display: block; padding: var(--space-3) 0; color: var(--fg); text-decoration: none;
  min-height: var(--tap); line-height: var(--lh-snug);
}
.scr-console .glance-i + .glance-i { border-top: var(--hairline) solid var(--border); }
.scr-console .glance-i:hover { color: var(--brand); }

.scr-console .glance-i:has(+ .glance-sub) { padding-bottom: 0; }
.scr-console .glance-t { display: block; font-variant-numeric: tabular-nums; }

.scr-console .glance-sub { display: flex; align-items: center; min-height: var(--tap); margin-top: var(--space-1); font-size: var(--text-sm); color: var(--muted); }
.scr-console a.glance-sub:hover { color: var(--brand); }
.scr-console .glance-m { display: block; margin-top: var(--space-2); inline-size: 100%; max-inline-size: 22rem; block-size: 8px; }
.scr-console .glance-m::-webkit-meter-bar { background: var(--surface); border: 0; border-radius: var(--radius-pill); block-size: 8px; }
.scr-console .glance-m::-webkit-meter-optimum-value,
.scr-console .glance-m::-webkit-meter-suboptimum-value,
.scr-console .glance-m::-webkit-meter-even-less-good-value { background: var(--fg); border-radius: var(--radius-pill); }
@container art (min-width: 820px) {
  .scr-console .glance-list { grid-auto-flow: column; grid-auto-columns: 1fr; gap: 0 var(--space-5); }
  .scr-console .glance-i + .glance-i, .scr-console .glance-i + .glance-s {
    border-top: 0; border-left: var(--hairline) solid var(--border); padding-left: var(--space-5);
  }
}

.scr-console .cost-chart .bh-cols, .scr-console .cost-chart .bh-axis { gap: 2px; }
.scr-console .cost-chart .bh-plot { block-size: 120px; }
.scr-console .cost-chart .bh-w { font-size: var(--text-sm); }
.scr-console .range-note { margin-top: var(--space-2); font-size: var(--text-sm); color: var(--muted); }
.scr-console .vs { display: block; margin-top: var(--space-1); font-size: var(--text-sm); color: var(--muted); }
.scr-console .tab { margin-block-end: calc(-1 * var(--hairline)); }
.scr-console .tab.is-cur { color: var(--brand); border-bottom-color: var(--brand); font-weight: var(--weight-announce); }

.scr-console .qq-flags { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; margin: 0; padding: 0; list-style: none; }
.scr-console .qq-flag { padding: var(--space-3) 0; border-bottom: var(--hairline) solid var(--border); }
.scr-console .qq-flag:last-child { border-bottom: 0; }
.scr-console .qq-flag-r { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); margin: 0; font-weight: var(--weight-ui); }
.scr-console .qq-flag-k { margin: var(--space-2) 0 0; font-size: var(--text-sm); color: var(--muted); }
.scr-console .qq-flag-m { margin: var(--space-1) 0 0; font-variant-numeric: tabular-nums; }
.scr-console .qq-flag-u { margin: var(--space-2) 0 0; font-size: var(--text-sm); color: var(--muted); max-width: var(--measure); text-wrap: pretty; }

.scr-console .saved { display: inline-flex; align-items: center; gap: var(--space-2); font-size: var(--text-sm); font-weight: var(--weight-ui); color: var(--success); }
.scr-console .saved .ico { width: 1em; height: 1em; }

.scr-console .kv-act { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); margin-top: var(--space-2); }
.scr-console .arrow { color: var(--muted); }

.scr-console .chip-grid { display: grid; gap: var(--space-4); grid-template-columns: minmax(0, 1fr); }
@container art (min-width: 1150px) { .scr-console .chip-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.scr-console .chip-group { display: grid; gap: var(--space-2); min-width: 0; }
.scr-console .chip-group-label { font-size: var(--text-sm); font-weight: var(--weight-announce); color: var(--muted); }

.scr-console .chip-group .chips { align-content: start; }

.scr-console .chipf-row { display: flex; flex-wrap: wrap; align-items: stretch; gap: var(--space-1); border-bottom: var(--hairline) solid var(--border); }
.scr-console .chipf {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--space-3);
  border: 0; border-bottom: 2px solid transparent; border-radius: 0;
  background: none; color: var(--muted); font-size: var(--text-sm); font-weight: var(--weight-ui);
  font-variant-numeric: tabular-nums;
}
.scr-console .chipf:hover { background: var(--surface); color: var(--fg); }
.scr-console .chipf.is-on { border-bottom-color: var(--brand); color: var(--brand); font-weight: var(--weight-announce); }

.scr-console .chipf:disabled { color: var(--border-strong); background: none; border-bottom-color: transparent; }

.scr-console :is(button.chip, .chip:has(> .chip-x)) {
  display: inline-flex; align-items: center; gap: var(--space-1);
  min-height: 44px; padding: 0 var(--space-3);
  border: var(--hairline) solid var(--border-strong); border-radius: var(--radius-control);
  background: var(--bg); color: var(--brand);
  font-size: var(--text-base); font-weight: var(--weight-ui);
}
.scr-console :is(button.chip, .chip:has(> .chip-x)):hover { background: var(--brand-wash); }
.scr-console :is(button.chip, .chip:has(> .chip-x)) .ico { width: .85em; height: .85em; }

.scr-console .rules { display: grid; gap: var(--space-2); }
.scr-console .rule {
  display: grid; grid-template-columns: 1.6rem 1.15em minmax(0, 1fr) auto;
  align-items: start; gap: var(--space-3);
  padding: var(--space-3); border: var(--hairline) solid var(--border); background: var(--bg);
}
.scr-console .rule.is-fixed { background: var(--surface); }
.scr-console .rule.is-hit { border-color: var(--brand); box-shadow: inset var(--edge) 0 0 var(--brand); }
.scr-console .rule-n { font-variant-numeric: tabular-nums; font-weight: var(--weight-announce); color: var(--muted); }
.scr-console .rule-grip { color: var(--muted); align-self: center; }
.scr-console .rule-body { display: grid; gap: var(--space-1); min-width: 0; }
.scr-console .rule-when { font-weight: var(--weight-ui); }
.scr-console .rule-to { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-2); }
.scr-console .rule-meta { font-size: var(--text-sm); color: var(--muted); }
.scr-console .rule-body .sub { font-size: var(--text-sm); color: var(--muted); line-height: var(--lh-snug); }
.scr-console .rule-move { display: flex; flex: none; gap: var(--space-1); }

.scr-console .rule-move .btn { min-width: 44px; padding: 0 var(--space-2); }

.scr-console .tpl-prev { padding: var(--space-3); border: var(--hairline) solid var(--border-strong); border-radius: var(--radius-control); background: var(--surface); line-height: var(--lh-snug); }
.scr-console .tpl-prev-k { display: block; font-size: var(--text-sm); font-weight: var(--weight-announce); color: var(--muted); }
.scr-console .tpl-prev-subject { display: block; margin-top: var(--space-2); font-weight: var(--weight-ui); overflow-wrap: break-word; }
.scr-console .tpl-prev-body { display: block; margin-top: var(--space-2); white-space: pre-wrap; overflow-wrap: break-word; }
.scr-console .steps { display: grid; gap: var(--space-3); }
.scr-console .step { display: grid; grid-template-columns: 1.6rem minmax(0, 1fr); gap: var(--space-3); align-items: start; }
.scr-console .step-n { font-variant-numeric: tabular-nums; font-weight: var(--weight-announce); color: var(--brand); }
.scr-console .step-t { display: block; font-weight: var(--weight-ui); }
.scr-console .step-b { display: block; font-size: var(--text-sm); color: var(--muted); line-height: var(--lh-snug); margin-top: 2px; }

.scr-console .sw {
  display: inline-flex; align-items: center; gap: var(--space-3);
  min-height: var(--tap); padding: 0; flex: none;
  border: 0; background: none; color: inherit; font: inherit; cursor: pointer;
}
.scr-console .sw-track {
  position: relative; flex: none; width: 2.75rem; height: 1.5rem;
  border: var(--hairline) solid var(--border-strong); border-radius: var(--radius-pill);
  background: var(--surface); transition: background var(--dur-exit) var(--ease-out);
}
.scr-console .sw-track::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 1.125rem; height: 1.125rem;
  border: var(--hairline) solid var(--border-strong); border-radius: 50%; background: var(--bg);
  transition: transform var(--dur-exit) var(--ease-out);
}
.scr-console .sw-word { font-size: var(--text-sm); font-weight: var(--weight-ui); color: var(--muted); }
.scr-console .sw[aria-checked="true"] .sw-track { background: var(--brand); border-color: var(--brand); }
.scr-console .sw[aria-checked="true"] .sw-track::after { transform: translateX(1.2rem); border-color: var(--brand); }
.scr-console .sw[aria-checked="true"] .sw-word { color: var(--brand); }
.scr-console .sw:hover .sw-track { border-color: var(--fg); }
.scr-console .lim-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-3); }

.scr-console .md-panel .lim-row .sub { display: block; }
.scr-console .lim-form { margin-top: var(--space-3); padding-top: var(--space-3); border-top: var(--hairline) solid var(--border); }

.scr-console .doc {
  max-width: 54rem; margin: 0 auto; padding: var(--space-7) var(--space-7) var(--space-6);
  border: var(--hairline) solid var(--border-strong); background: var(--bg);
}
.scr-console .doc-head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-5); padding-bottom: var(--space-4); border-bottom: var(--hairline) solid var(--border-strong); }
.scr-console .doc-head .lockup img { height: 1.5rem; }
.scr-console .doc-no { flex: none; font-size: var(--text-sm); color: var(--muted); text-align: right; line-height: var(--lh-snug); }
.scr-console .doc-no .mono { display: block; color: var(--fg); font-weight: var(--weight-announce); }
.scr-console .doc-title { margin-top: var(--space-6); font-family: var(--font-display); font-size: var(--text-xl); font-weight: var(--weight-announce); letter-spacing: var(--track-head); line-height: var(--lh-tight); }
.scr-console .doc-lead { margin-top: var(--space-3); max-width: var(--measure); line-height: var(--lh-body); }
.scr-console .doc-sec { margin-top: var(--space-6); }
.scr-console .doc-sec-t { font-size: var(--text-sm); font-weight: var(--weight-announce); color: var(--muted); padding-bottom: var(--space-2); border-bottom: var(--hairline) solid var(--border); }
.scr-console .doc-sec .kv { margin-top: var(--space-2); }
.scr-console .doc-list { margin: var(--space-3) 0 0; padding-left: var(--space-5); display: grid; gap: var(--space-2); line-height: var(--lh-snug); }

.scr-console .doc-p { margin: var(--space-3) 0 0; font-size: var(--text-sm); color: var(--muted); line-height: var(--lh-snug); }
.scr-console .doc-list .sub { display: block; font-size: var(--text-sm); color: var(--muted); margin-top: 2px; }
.scr-console .doc-sign { margin-top: var(--space-7); display: grid; gap: var(--space-6); grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.scr-console .doc-sign-k { font-size: var(--text-sm); font-weight: var(--weight-announce); color: var(--muted); }
.scr-console .doc-sign-name { display: block; margin-top: var(--space-4); font-family: var(--font-display); font-size: var(--text-md); }
.scr-console .doc-sign-role { display: block; font-size: var(--text-sm); color: var(--muted); }
.scr-console .doc-sign-line { margin-top: var(--space-5); padding-top: var(--space-2); border-top: var(--hairline) solid var(--border-strong); font-size: var(--text-sm); color: var(--muted); }
.scr-console .doc-foot { margin-top: var(--space-6); padding-top: var(--space-3); border-top: var(--hairline) solid var(--border); font-size: var(--text-sm); color: var(--muted); line-height: var(--lh-snug); }

@container art (max-width: 560px) {
  .scr-console .doc-head { flex-wrap: wrap; gap: var(--space-3); }
  .scr-console .doc-no { text-align: left; }
  .scr-console .doc-sign { grid-template-columns: minmax(0, 1fr); gap: var(--space-5); }
}
@container art (max-width: 760px) { .scr-console .doc { padding: var(--space-5) var(--space-4); } .scr-console .doc-sign { grid-template-columns: minmax(0, 1fr); } }

@container art (max-width: 760px) {
  .scr-console .figs { grid-auto-flow: row; grid-auto-columns: auto; }
  .scr-console .fig { border-left: 0; border-top: var(--hairline) solid var(--border); }
  .scr-console .fig:first-child { border-top: 0; }
  .scr-console .page-head { flex-wrap: wrap; }
  .scr-console .dlg-cols { grid-template-columns: minmax(0, 1fr); }
  .scr-console .choices { --od-cols: 1; }
  .scr-console .rule { grid-template-columns: 1.6rem minmax(0, 1fr); }
  .scr-console .rule-grip { display: none; }
  .scr-console .rule-move { grid-column: 2; }
}

.scr-console .tb-menu { display: none; }
.scr-console .navdrawer { display: none; }

@container art (max-width: 600px) {

  .scr-console .shell { grid-template-columns: minmax(0, 1fr); }
  .scr-console .nav { display: none; }

  .scr-console .tb-menu {
    display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
    order: -1; flex: none;
    min-block-size: var(--tap); padding: var(--space-2) var(--space-3);
    background: var(--bg); color: var(--fg);
    border: var(--hairline) solid var(--border-strong); border-radius: var(--radius-control);
    font: inherit; font-weight: var(--weight-ui); line-height: var(--lh-snug); cursor: pointer;
  }
  .scr-console .tb-menu:active { background: var(--surface-sunk); }
  @media (hover: hover) { .scr-console .tb-menu:hover { background: var(--surface); } }
  .scr-console .tb-menu:focus-visible { outline: var(--focus-w) solid var(--focus); outline-offset: var(--focus-off); }

  .scr-console .navdrawer.is-open { display: block; position: absolute; inset: 0; z-index: 30; }
  .scr-console .navdrawer-scrim { position: absolute; inset: 0; background: color-mix(in srgb, var(--fg) 50%, transparent); }
  .scr-console .navdrawer-panel {
    position: absolute; inset-block: 0; inset-inline-start: 0;
    inline-size: min(320px, 85vw); max-inline-size: 100%;
    display: grid; grid-template-rows: auto minmax(0, 1fr);
    background: var(--surface);
    border-inline-end: var(--hairline) solid var(--border-strong);
    animation: drawer-in-scr-console var(--dur-enter) var(--ease-out);
  }

  .scr-console .navdrawer-head {
    display: flex; justify-content: flex-start; padding: var(--space-3);
    border-block-end: var(--hairline) solid var(--border);
  }
  .scr-console .navdrawer-head .btn { flex: 0 0 auto; inline-size: auto; }

  .scr-console .navdrawer-head .btn { max-inline-size: 100%; }
  .scr-console .navdrawer-head .btn > span { white-space: normal; min-inline-size: 0; }

  .scr-console .navdrawer-nav {
    display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-1);
    overflow-y: auto; overscroll-behavior: contain;
    padding: var(--space-4) 0 var(--space-6);
  }

  .scr-console .navdrawer-nav .nav-item { align-items: flex-start; min-block-size: var(--tap); block-size: auto; }
  .scr-console .navdrawer-nav .nav-item > span { min-width: 0; overflow-wrap: break-word; }
  .scr-console .navdrawer-nav .nav-count, .scr-console .navdrawer-nav .nav-wait { flex: none; }
}
@keyframes drawer-in-scr-console { from { translate: -100% 0; } to { translate: 0 0; } }
@media (prefers-reduced-motion: reduce) { .scr-console .navdrawer-panel { animation: none; } }

.scr-console .qstep { border: var(--hairline) solid var(--border); background: var(--bg); }
.scr-console .qstep + .qstep { margin-top: var(--space-4); }
.scr-console .qstep-head {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
  gap: var(--space-3); padding: var(--space-2) var(--space-4);
  border-bottom: var(--hairline) solid var(--border); background: var(--surface);
  font-size: var(--text-sm); font-weight: var(--weight-announce); color: var(--muted);
}
.scr-console .qstep-body { padding: var(--space-4); }
.scr-console .qstep-do { font-size: var(--text-md); font-weight: var(--weight-ui); line-height: var(--lh-snug); max-width: var(--measure); }
.scr-console .qstep-k { display: block; margin-top: var(--space-3); font-size: var(--text-sm); font-weight: var(--weight-announce); color: var(--muted); }
.scr-console .qstep-k:first-child { margin-top: 0; }

.scr-console .qmath {
  margin-top: var(--space-1); padding: var(--space-2) 0;
  font-size: var(--math); line-height: 1.7; color: var(--fg);
  overflow-x: auto; overscroll-behavior-x: contain;
}
.scr-console .qmath .katex { font-size: 1em; }
.scr-console .qmath-sm { font-size: var(--text-md); }
.scr-console .qmath-flush { margin-top: 0; padding-top: 0; }
.scr-console .qstep-note { margin-top: var(--space-3); font-size: var(--text-base); color: var(--muted); line-height: var(--lh-snug); max-width: var(--measure); }

.scr-console .tbl tbody tr.is-held td { background: var(--warn-wash); }
.scr-console .tbl tbody tr.is-held td:first-child { box-shadow: inset var(--edge) 0 0 var(--warn); }

.scr-console .tbl tbody tr.is-held.is-sel td { background: var(--warn-wash); }
.scr-console .tbl tbody tr.is-held.is-sel td:first-child { box-shadow: inset var(--edge) 0 0 var(--fg); }

.scr-console .quote {
  margin-top: var(--space-2); padding: var(--space-2) var(--space-3);
  border-left: var(--edge) solid var(--border-strong); background: var(--surface);
  font-size: var(--text-base); line-height: var(--lh-snug); max-width: var(--measure);
}
.scr-console .quote cite { display: block; margin-top: var(--space-1); font-size: var(--text-sm); font-style: normal; color: var(--muted); }

.scr-console .waits { display: flex; flex-wrap: wrap; border: var(--hairline) solid var(--border); background: var(--bg); }
.scr-console .wait {
  display: flex; align-items: baseline; gap: var(--space-3);
  flex: 1 1 13rem; min-width: 0; min-height: var(--tap);
  padding: var(--space-3) var(--space-4); border-left: var(--hairline) solid var(--border);
  color: var(--fg); text-decoration: none;
}
.scr-console .wait:first-child { border-left: 0; }
.scr-console .wait:hover { background: var(--surface); }
.scr-console .wait:hover .wait-k { text-decoration: underline; }
.scr-console .wait-n { flex: none; font-size: var(--text-md); font-weight: var(--weight-announce); font-variant-numeric: tabular-nums; color: var(--brand); }
.scr-console .wait-k { min-width: 0; line-height: var(--lh-snug); }
.scr-console .wait-k .sub { display: block; font-size: var(--text-sm); color: var(--muted); }

.scr-console .strip {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: var(--space-3) var(--space-5); padding: var(--space-3) var(--space-4);
  border: var(--hairline) solid var(--border); background: var(--bg);
}
.scr-console .strip-in { flex: 1 1 24rem; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-1); }
.scr-console .strip-in > :where(*) { display: block; }
.scr-console .strip-k { font-size: var(--text-sm); color: var(--muted); }
.scr-console .strip-v { min-width: 0; font-weight: var(--weight-announce); line-height: var(--lh-snug); }

.scr-console .strip-m { color: var(--muted); font-weight: var(--weight-read); overflow-wrap: anywhere; }
.scr-console .strip-n { font-size: var(--text-sm); color: var(--muted); line-height: var(--lh-snug); text-wrap: pretty; }
.scr-console .strip-acts { flex: none; display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); }

.scr-console .notallowed {
  display: grid; justify-items: start; gap: var(--space-3);
  max-width: var(--measure); margin-top: var(--space-6);
  padding: var(--space-6); border: var(--hairline) solid var(--border-strong);
  background: var(--bg);
}
.scr-console .notallowed > .ico { width: 1.75rem; height: 1.75rem; color: var(--info); }
.scr-console .notallowed-t {
  margin: 0;
  font-family: var(--font-display); font-size: var(--text-lg); font-weight: var(--weight-announce);
  line-height: var(--lh-tight); letter-spacing: var(--track-head);
}
.scr-console .notallowed-p { color: var(--muted); line-height: var(--lh-body); }
.scr-console .notallowed-acts { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-2); }

.scr-console .who { display: flex; flex-wrap: wrap; gap: var(--space-1); }
.scr-console .who .pill { white-space: normal; }

.scr-console button.tab {
  border-width: 0 0 var(--edge); border-style: solid; border-color: transparent;
  background: none; font-family: inherit; font-size: var(--text-base); cursor: pointer;
}
.scr-console button.tab.is-cur { border-bottom-color: var(--brand); }
.scr-console .tab-n { margin-left: var(--space-2); font-size: var(--text-sm); font-variant-numeric: tabular-nums; color: var(--muted); }
.scr-console .tab.is-cur .tab-n { color: var(--brand); }

.scr-console .imp-tpl { display: grid; gap: var(--space-2); margin-top: var(--space-2); }
.scr-console .imp-tpl-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2);
  min-height: var(--tap); padding: var(--space-2) 0;
  border-bottom: var(--hairline) solid var(--border);
}
.scr-console .imp-tpl-row:last-child { border-bottom: 0; }
.scr-console .imp-tpl-k { flex: 1 1 14rem; min-width: 0; font-weight: var(--weight-ui); line-height: var(--lh-snug); }
.scr-console .imp-tpl-k .sub { display: block; font-size: var(--text-sm); font-weight: var(--weight-read); color: var(--muted); }

.scr-console .audit-line {
  margin: 0; padding: var(--space-3) var(--space-4);
  border-left: var(--edge) solid var(--brand); background: var(--surface);
  font-size: var(--text-md); line-height: var(--lh-snug); max-width: var(--measure);
}

.scr-console .chip-x:hover { background: var(--surface); }

.scr-console .tfilters + .tbl-cap { margin-top: var(--space-4); }

.scr-console .tempty .btn { margin-top: var(--space-2); }

.scr-console .refused { display: grid; gap: 0; border: var(--hairline) solid var(--border); background: var(--bg); }
.scr-console .refused-row {
  display: grid; grid-template-columns: 1.1rem minmax(0, 14rem) minmax(0, 1fr);
  gap: var(--space-2) var(--space-3); align-items: start;
  padding: var(--space-3) var(--space-4);
  border-top: var(--hairline) solid var(--border);
}
.scr-console .refused-row:first-child { border-top: 0; }
.scr-console .refused-row > .ico { width: 1.1em; height: 1.1em; margin-top: 2px; color: var(--muted); }
.scr-console .refused-k { font-weight: var(--weight-ui); line-height: var(--lh-snug); }
.scr-console .refused-v { color: var(--muted); line-height: var(--lh-snug); }
@container art (max-width: 900px) {
  .scr-console .refused-row { grid-template-columns: 1.1rem minmax(0, 1fr); }
  .scr-console .refused-v { grid-column: 2; }
}

.scr-console .kv { grid-template-columns: minmax(0, 1fr); column-gap: 0; row-gap: 0; align-items: stretch; }

.scr-console .shell { --nav-w: inherit; --pad: inherit; }

.scr-console .sec-note { display: block; margin: 0; max-inline-size: none; }

.scr-console .note { margin: 0; }

.scr-console .nav { align-self: stretch; }

.scr-console .fig { display: block; gap: 0; --figure: inherit; }

.scr-console .lockup { block-size: auto; }

.scr-console .field { margin-block-start: 0; }

.scr-console .embed-in {
  min-height: 8.5rem; resize: vertical; white-space: pre;
  font-size: var(--text-sm); line-height: var(--lh-snug);
  letter-spacing: var(--track-ui); overflow-wrap: normal; overflow-x: auto;
}
.scr-console .embed-out {
  margin: 0; padding: var(--space-3) var(--space-4); overflow-x: auto;
  border: var(--hairline) solid var(--border); border-radius: var(--radius-control);
  background: var(--surface); color: var(--fg);
  font-size: var(--text-sm); line-height: var(--lh-snug); letter-spacing: var(--track-ui);
}

.scr-console .pol-prev { display: grid; gap: var(--space-2); }
.scr-console .pol-prev-t { margin: 0; font-family: var(--font-display); font-size: var(--text-md); font-weight: var(--weight-announce); line-height: var(--lh-tight); }
.scr-console .pol-prev-b { display: grid; gap: var(--space-2); padding: var(--space-3); border: var(--hairline) dashed var(--border-strong); border-radius: var(--radius-control); background: var(--bg); }
.scr-console .pol-prev-l { display: block; height: var(--space-2); border-radius: var(--radius-pill); background: var(--border); }
.scr-console .pol-prev-l.is-short { width: 58%; }

.scr-console .qstep-acts { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-3); margin-top: var(--space-4); }
.scr-console .qstep-gone {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border: var(--hairline) dashed var(--border-strong); border-radius: var(--radius-control);
  color: var(--muted); font-size: var(--text-base); line-height: var(--lh-snug);
}
.scr-console .qstep-gone .ico { flex: none; color: var(--muted); }
.scr-console .qstep + .qstep-gone, .scr-console .qstep-gone + .qstep, .scr-console .qstep-gone + .qstep-gone { margin-top: var(--space-4); }

.scr-console .is-contained .main { padding-inline: 0; }
.scr-console .wrapc { max-inline-size: 1200px; margin-inline: auto; padding-inline: var(--space-4); }
@container art (min-width: 1150px) { .scr-console .wrapc { padding-inline: var(--space-6); } }

.scr-console .wrapc .field, .scr-console .wrapc .form-grid { max-inline-size: 480px; }
.scr-console .wrapc .sec-act { display: flex; justify-content: flex-end; gap: var(--space-3); margin-top: var(--space-4); }
.scr-console .wrapc .sec-act .btn { inline-size: auto; flex: 0 0 auto; }

.scr-console .md { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-5); align-items: start; }

@container art (min-width: 1240px) {
  .scr-console .md { grid-template-columns: minmax(420px, 1fr) 480px; gap: var(--space-6); }
}

.scr-console .md-sheet { display: contents; }
.scr-console .md-sheet-scrim, .scr-console .md-sheet > .dlg-close { display: none; }
@container art (max-width: 1239px) {

  .scr-console .md-sheet { display: grid; position: absolute; inset: 0; z-index: 5; }
  .scr-console .md:not(.is-picked) .md-sheet { display: none; }
  .scr-console .md-sheet-scrim { display: block; position: absolute; inset: 0; background: color-mix(in srgb, var(--fg) 50%, transparent); }

  .scr-console .md-sheet > .dlg-close { display: grid; position: absolute; z-index: 2; inset-block-start: var(--space-3); inset-inline-end: var(--space-3); margin: 0; }
  .scr-console .md-sheet .md-panel { position: relative; z-index: 1; margin: 0; max-block-size: none; overflow-y: auto; overscroll-behavior: contain; border: var(--hairline) solid var(--border-strong); }

  .scr-console .md-sheet .md-panel .panel-head { padding-inline-end: calc(var(--tap) + var(--space-5)); }

  .scr-console .app:has(.md.is-picked) { overflow: clip; }

  .scr-console .md-sheet { grid-template-columns: minmax(0, 1fr) min(26rem, 100%); }
  .scr-console .md-sheet .md-panel { grid-column: 2; block-size: 100%; border-radius: 0; border-inline-end: 0; animation: rise-in var(--dur-enter) var(--ease-out); }
}

@container art (max-width: 560px) {

  .scr-console .md-sheet { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) fit-content(85%); }
  .scr-console .md-sheet .md-panel { grid-column: 1; grid-row: 2; block-size: auto; max-block-size: 100%; border-radius: var(--radius-sheet) var(--radius-sheet) 0 0; border-inline-end: var(--hairline) solid var(--border-strong); animation: sheet-in var(--dur-enter) var(--ease-out); }

  .scr-console .md-sheet > .dlg-close { position: relative; inset: auto; grid-column: 1; grid-row: 2; align-self: start; justify-self: end; margin: var(--space-3); }
}
@media (prefers-reduced-motion: reduce) {
  .scr-console .md-sheet .md-panel { animation: none; }
}

.scr-console .md-panel { position: sticky; top: 0; max-block-size: calc(var(--ah, 100vh) - var(--space-8)); overflow-y: auto; overscroll-behavior: contain; }

.scr-console .md-panel, .scr-console .md-panel .kv-v, .scr-console .md-panel .sub, .scr-console .md-panel .t-sub { overflow-wrap: break-word; }
.scr-console .md-panel .mono { overflow-wrap: anywhere; }

@container art (max-width: 1149px) { .scr-console .md .md-drop { display: none; } }

.scr-console .md .tbl tbody tr.is-sel td:first-child { box-shadow: inset var(--edge) 0 0 var(--fg); }

.scr-console .md .rule.is-sel { background: var(--surface-sunk); box-shadow: inset var(--edge) 0 0 var(--fg); }

.scr-console .md-empty { display: grid; gap: var(--space-3); padding: var(--space-5) var(--space-4); }
.scr-console .md-empty .md-empty-t { font-family: var(--font-display); font-size: var(--text-md); font-weight: var(--weight-announce); line-height: var(--lh-tight); }
.scr-console .md-empty p { color: var(--muted); max-inline-size: var(--measure); text-wrap: pretty; }
.scr-console .md-empty .md-empty-do { color: var(--fg); font-weight: var(--weight-ui); }

.scr-console .plat-row { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--space-3); }
.scr-console .plat-row + .plat-row { margin-top: var(--space-3); padding-top: var(--space-3); border-top: var(--hairline) solid var(--border); }
.scr-console .plat-row .plat-v { font-weight: var(--weight-ui); }
.scr-console .plat-row .sub { display: block; font-size: var(--text-sm); color: var(--muted); font-weight: var(--weight-read); max-inline-size: var(--measure); }

.scr-console .sout {
  display: grid; align-content: center; justify-items: center;
  block-size: 100%; min-block-size: 100%; overflow-y: auto;
  padding: var(--space-7) var(--space-6); background: var(--surface-sunk);
}
.scr-console .sout-wrap { display: grid; justify-items: center; gap: var(--space-5); inline-size: 100%; max-inline-size: 560px; }

.scr-console .sout-lockup { display: flex; align-items: center; gap: var(--space-3); }
.scr-console .sout-lockup img { display: block; block-size: 1.75rem; inline-size: auto; max-inline-size: 100%; }
.scr-console .sout-card {
  inline-size: 100%; padding: var(--space-6);
  border: var(--hairline) solid var(--border); border-radius: var(--radius-card); background: var(--bg);
}
.scr-console .sout-form { display: grid; align-content: start; max-inline-size: 480px; margin-inline: auto; }
.scr-console .sout-h { margin: 0; font-family: var(--font-display); font-size: var(--text-lg); font-weight: var(--weight-announce); line-height: var(--lh-tight); letter-spacing: var(--track-head); }
.scr-console .sout-sub { margin: var(--space-2) 0 0; color: var(--muted); line-height: var(--lh-body); }
.scr-console .sout-form > .field { margin-block-start: var(--space-5); }
.scr-console .sout-hint { margin: var(--space-5) 0 0; color: var(--muted); line-height: var(--lh-body); text-wrap: pretty; }

.scr-console .sout-foot { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); margin-block-start: var(--space-5); }
.scr-console .sout-ways { display: grid; justify-items: start; gap: var(--space-3); margin-block-start: var(--space-5); }

.scr-console .sout-form > .note:first-child { margin-block-end: var(--space-5); }
.scr-console .sout-form > .sout-ways + .note { margin-block-start: var(--space-5); }
.scr-console .sout-form > .bot-check { margin-block-start: var(--space-5); }
.scr-console .sout-form > .sout-ways + form, .scr-console .sout-form > .note + .link-btn { margin-block-start: var(--space-5); }

.scr-console .botcheck {
  display: flex; align-items: center; gap: var(--space-3);
  inline-size: 100%; max-inline-size: 300px; min-block-size: 65px;
  padding: var(--space-3); border: var(--hairline) solid var(--border-strong);
  border-radius: var(--radius-control); background: var(--surface);
}
.scr-console .botcheck > .ico { flex: none; inline-size: var(--ico-md); block-size: var(--ico-md); color: var(--muted); }
.scr-console .botcheck-t { display: grid; gap: 2px; min-inline-size: 0; }
.scr-console .botcheck-n { font-size: var(--text-base); font-weight: var(--weight-ui); line-height: var(--lh-snug); }
.scr-console .botcheck-s { font-size: var(--type-meta); color: var(--muted); line-height: var(--lh-snug); text-wrap: pretty; }
.scr-console .sout-card .tempty { margin-block-start: 0; padding: 0; background: none; border: 0; }

.scr-console .sout-card .steps { display: grid; gap: var(--space-2); margin: 0 0 var(--space-5); }

.scr-console .dlg-layer--sheet {
  display: grid; padding: 0; place-items: stretch;
  grid-template-columns: minmax(0, 1fr) min(26rem, 100%);
}
.scr-console .dlg-layer--sheet > .dlg {
  grid-column: 2; inline-size: 100%; max-inline-size: none;
  block-size: 100%; max-block-size: none; margin: 0;
  border-radius: 0; border-inline-end: 0;
  animation: rise-in var(--dur-enter) var(--ease-out);
}
@container art (max-width: 560px) {

  .scr-console .dlg-layer--sheet { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) fit-content(85%); }
  .scr-console .dlg-layer--sheet > .dlg {
    grid-column: 1; grid-row: 2; block-size: auto; max-block-size: 100%;
    border-radius: var(--radius-sheet) var(--radius-sheet) 0 0;
    border-inline-end: var(--hairline) solid var(--border-strong);
    animation: sheet-in var(--dur-enter) var(--ease-out);
  }
}
@media (prefers-reduced-motion: reduce) { .scr-console .dlg-layer--sheet > .dlg { animation: none; } }

.scr-console .dlg-foot:not(:has(.perm)) { justify-content: flex-end; }
@container art (max-width: 460px) {
  .scr-console .sout { padding: var(--space-5) var(--space-4); }
  .scr-console .sout-card { padding: var(--space-5); }
  .scr-console .botcheck { max-inline-size: 100%; }
}

.scr-console .fig-row .fig-n { margin-top: 0; }
.scr-console .ticks > li { display: flex; align-items: flex-start; gap: var(--space-2); }
.scr-console .ticks > li > .ico { margin-block-start: 3px; }

@container art (min-width: 761px) {
  .scr-console .figs--six { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .scr-console .figs--six .fig:nth-child(3n + 1) { border-inline-start: 0; }
  .scr-console .figs--six .fig:nth-child(n + 4) { border-block-start: var(--hairline) solid var(--border); }
}

@container art (max-width: 760px) {
  .scr-console main[id$="main-account-detail"] .figs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .scr-console main[id$="main-account-detail"] .figs .fig { border-block-start: var(--hairline) solid var(--border); border-inline-start: var(--hairline) solid var(--border); }
  .scr-console main[id$="main-account-detail"] .figs .fig:nth-child(-n + 2) { border-block-start: 0; }
  .scr-console main[id$="main-account-detail"] .figs .fig:nth-child(odd) { border-inline-start: 0; }
  .scr-console main[id$="main-account-detail"] .figs .fig:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .scr-console main[id$="main-account-detail"] .panel-foot > .page-acts { flex: 1 1 100%; }
  .scr-console main[id$="main-account-detail"] .panel-foot .btn--inline { inline-size: 100%; flex: 1 1 100%; }
}

.scr-console .dlg-layer--sheet .kv-v, .scr-console .dlg-layer--sheet .kv-v .sub { overflow-wrap: anywhere; }

@container art (min-width: 761px) {
  .scr-console .dlg-layer--sheet .dlg-body .choices { --od-cols: 2; }
}

.scr-console .dlg-layer--sheet .form-grid-2 { grid-template-columns: minmax(0, 1fr); }

.scr-console .dlg-acts { max-inline-size: calc(100% + 2px); flex-wrap: wrap; }

.scr-console .acctpg .panel-body > .field-hint:first-child { margin-block-end: var(--space-4); }

.scr-console .acctpg .panel-foot .perm { font-size: var(--text-sm); }
.scr-console .acctpg .panel-foot > .field-hint { flex: 1 0 100%; margin: 0; }

@container art (min-width: 901px) {
  .scr-console .acctpg .tree-node { grid-template-columns: 1.15em minmax(0, 1fr) auto auto auto auto; }
}

@container art (max-width: 900px) {
  .scr-console .acctpg .tree-node { grid-template-columns: 1.15em minmax(0, 1fr) minmax(0, 1fr); }
  .scr-console .acctpg .tree-node .tree-name { grid-column: 2 / -1; }
  .scr-console .acctpg .tree-node .tree-num:nth-of-type(even) { grid-column: 2; }
  .scr-console .acctpg .tree-node .tree-num:nth-of-type(odd) { grid-column: 3; }
}

@container art (max-width: 560px) {
  .scr-console .acctpg .panel-head { flex-wrap: wrap; row-gap: var(--space-1); }
  .scr-console .acctpg .panel-head > .sec-note { flex-basis: 100%; }
  .scr-console .acctpg .owner-only { white-space: normal; }
}

.scr-console .tw:has(.tbl-perms) { contain: paint; }

.scr-console .panel-head { padding-block: var(--space-4); }
.scr-console .panel-head > h2, .scr-console .panel-head > p { margin: 0; }

.scr-console .sec-head > h2 { margin: 0; }

.scr-console .kv, .scr-console .kv-row { --kv-label: 9rem; }

.scr-console .kv-v > .btn { display: flex; width: fit-content; margin-block-start: var(--space-2); }

.scr-console .cols > .panel { display: flex; flex-direction: column; }
.scr-console .cols > .panel > .panel-foot { margin-block-start: auto; }

.scr-console .acctpg .cols-wide-left > div:not(.panel):has(> .panel) { display: flex; flex-direction: column; }
.scr-console .acctpg .cols-wide-left > div:not(.panel):has(> .panel) > .panel:last-child { flex: 1 0 auto; display: flex; flex-direction: column; }
.scr-console .acctpg .cols-wide-left > div:not(.panel):has(> .panel) > .panel:last-child > .panel-foot { margin-block-start: auto; }

.scr-console .lim-row .sub { display: block; font-size: var(--text-sm);
  color: var(--muted); font-weight: var(--weight-read); margin-top: 2px;
  max-inline-size: var(--measure); }

.scr-console .lim-row:has([data-mcp-sw]):not(:first-child) { margin-block-start: var(--space-5); }

.scr-console .pool-n { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-3); }
.scr-console .why { align-items: baseline; min-block-size: 0; font-weight: var(--weight-ui);
  padding-block: var(--space-3); margin-block: calc(-1 * var(--space-3)); }
.scr-console .why-body { display: grid; gap: var(--space-2); margin-block-start: var(--space-4); }
.scr-console .why-body > .field-label { margin: 0; }
.scr-console .why-body > .field-label + .kv { margin-block-end: var(--space-3); }

.scr-console .pool-causes .kv-row { --kv-label: minmax(0, 3fr); }
.scr-console .why-note { margin: 0; font-size: var(--type-hint); color: var(--muted);
  line-height: var(--lh-snug); max-inline-size: var(--measure); }

.scr-console .panel-head--stack { display: block; }
.scr-console .panel-head--stack > .sec-note { margin-block-start: var(--space-1); }

/* security-r9.html → .scr-security */
.scr-security html[data-text-size="large"]  { --reading-scale: 1.125; }
.scr-security html[data-text-size="larger"] { --reading-scale: 1.25; }
.scr-security html[data-dyslexia="on"] { --font-ui: var(--font-dyslexic); --lh-body: 1.75; }

.scr-security .skip { position: absolute; top: var(--space-2); left: var(--space-2); z-index: 20; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.scr-security .skip:focus {
  display: inline-flex; align-items: center; width: auto; height: auto; min-height: 44px;
  padding: 0 var(--space-4); overflow: visible; clip-path: none;
  border-radius: var(--radius-control); background: var(--brand); color: var(--bg);
  font-size: var(--text-base); font-weight: var(--weight-announce); text-decoration: none;
}
@media (hover: hover) { .scr-security .icon-btn:hover { background: var(--surface); } }
.scr-security .btn-danger:not(:disabled):active { background: var(--surface-sunk); }
@media (hover: hover) { .scr-security .btn-danger:not(:disabled):hover { background: var(--surface); } }

.scr-security .wordmark-app { font-weight: var(--weight-read); }
.scr-security .link-btn--danger { color: var(--danger); }
@media (hover: hover) { .scr-security .link-btn--danger:hover { background: var(--danger-wash); } }
.scr-security .inline-link { color: var(--brand); font-weight: var(--weight-ui); text-decoration: underline; text-underline-offset: 0.15em; }
.scr-security .inp:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; border-color: var(--brand); }
.scr-security .rows > li + li { border-top: var(--hairline) solid var(--border); }
.scr-security .row, .scr-security .row-static {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center;
  column-gap: var(--space-3); width: 100%; min-height: calc(var(--tap) + var(--space-2));
  padding: var(--space-3) var(--space-2); border: 0; border-radius: var(--radius-control);
  background: transparent; color: inherit; text-align: start;
}
.scr-security .row:active { background: var(--surface-sunk); }
@media (hover: hover) { .scr-security .row:hover { background: var(--surface); } }
.scr-security a.row { color: inherit; text-decoration: none; }
.scr-security .row-t { display: grid; gap: var(--space-1); min-width: 0; }
.scr-security .row-t > * { display: block; margin: 0; }
.scr-security .row-n { font-weight: var(--weight-ui); line-height: var(--lh-snug); text-wrap: pretty; }
.scr-security .row-s { color: var(--muted); font-size: var(--text-sm); line-height: var(--lh-snug); max-inline-size: var(--measure); text-wrap: pretty; }
.scr-security .row > .ico { width: 1.125rem; height: 1.125rem; color: var(--muted); }
.scr-security .row-lead { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; column-gap: var(--space-3); min-width: 0; }
.scr-security .row-lead > .ico { width: 1.25rem; height: 1.25rem; margin-top: 0.15em; color: var(--brand); }

.scr-security .row-act {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  min-height: var(--tap); min-width: var(--tap); padding: 0 var(--space-3);
  border: 0; border-radius: var(--radius-control); background: transparent;
  color: var(--brand); font-weight: var(--weight-announce); line-height: var(--lh-snug); white-space: nowrap;
}
.scr-security .row-act:active { background: var(--surface-sunk); }
@media (hover: hover) { .scr-security .row-act:hover { background: var(--brand-wash); } }
.scr-security .row-act--danger { color: var(--danger); }
@media (hover: hover) { .scr-security .row-act--danger:hover { background: var(--danger-wash); } }
.scr-security .row-act:disabled { color: var(--muted); }
@media (hover: hover) { .scr-security .row-act:disabled:hover { background: transparent; } }
.scr-security .row-acts { display: flex; align-items: center; gap: var(--space-1); flex: none; }
.scr-security .row-wide { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: var(--space-3); width: 100%; min-height: calc(var(--tap) + var(--space-2)); padding: var(--space-3) var(--space-2); }

.scr-security .row-why { display: flex; align-items: flex-start; gap: var(--space-2); margin: 0 0 var(--space-3); padding: 0 var(--space-2); color: var(--muted); font-size: var(--text-sm); line-height: var(--lh-snug); }
.scr-security .row-why .ico { flex: none; width: 1rem; height: 1rem; margin-top: 0.15em; }
.scr-security .row-why span { max-inline-size: var(--measure); text-wrap: pretty; }

.scr-security .row-why--warn .ico { color: var(--warn); }
.scr-security .card { margin-top: var(--space-3); padding: var(--space-2) var(--space-4); border-radius: var(--radius-card); background: var(--surface); }

.scr-security .card > .rows { margin: 0 calc(-1 * var(--space-2)); }
.scr-security .card > .rows > li > .row:active { background: var(--surface-sunk); }
@media (hover: hover) { .scr-security .card > .rows > li > .row:hover { background: var(--surface-sunk); } }
.scr-security .card > .rows > li + li { border-top-color: color-mix(in srgb, var(--border-strong) 35%, transparent); }
.scr-security .card > .link-btn { margin-left: calc(-1 * var(--space-2)); }
.scr-security .sheet-term:focus { outline: none; }
.scr-security .opt-row:has(.opt-s) { align-items: start; }
.scr-security .opt-row:has(.opt-s) input { margin-top: 0.15em; }
.scr-security .opt-t > * { display: block; margin: 0; }
.scr-security .opt-n { font-weight: var(--weight-ui); line-height: var(--lh-snug); text-wrap: pretty; }
.scr-security .take > li::before { content: ""; width: 5px; height: 5px; margin-top: 0.62em; border-radius: 50%; background: var(--border-strong); }
.scr-security .take > li > span { max-inline-size: var(--measure); }

.scr-security .flip { transform: scaleX(-1); }
.scr-security .topbar--adult .wordmark { flex: none; padding-inline-start: var(--space-2); }

.scr-security .signbar { display: flex; align-items: center; padding: var(--space-4) var(--gutter) var(--space-2); padding-top: calc(var(--space-4) + env(safe-area-inset-top, 0px)); }
.scr-security .signbar .lockup { display: block; inline-size: min(11rem, 48cqi); block-size: auto; height: auto; }

.scr-security .meth { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; column-gap: var(--space-3); min-width: 0; }
.scr-security .meth > .ico { width: 1.25rem; height: 1.25rem; margin-top: 0.2em; color: var(--muted); }
.scr-security .meth-t { display: grid; gap: var(--space-1); min-width: 0; }
.scr-security .meth-t > * { display: block; margin: 0; }
.scr-security .meth-n { font-weight: var(--weight-ui); line-height: var(--lh-snug); text-wrap: pretty; }
.scr-security .meth-s { color: var(--muted); font-size: var(--text-sm); line-height: var(--lh-snug); text-wrap: pretty; }

.scr-security .osprompt { margin: 0 0 var(--space-4); padding: var(--space-4); border: var(--hairline) solid var(--border-strong); border-radius: var(--radius-card); background: var(--bg); }
.scr-security .osprompt-k { display: flex; align-items: center; gap: var(--space-2); margin: 0 0 var(--space-3); color: var(--muted); font-size: var(--text-sm); font-weight: var(--weight-ui); line-height: var(--lh-snug); }
.scr-security .osprompt-k .ico { width: 1rem; height: 1rem; }
.scr-security .osprompt-t { margin: 0; font-weight: var(--weight-announce); line-height: var(--lh-snug); text-wrap: pretty; }
.scr-security .osprompt-p { margin: var(--space-2) 0 0; color: var(--muted); font-size: var(--text-sm); line-height: var(--lh-snug); text-wrap: pretty; }
.scr-security .osprompt-acts { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-2); margin-top: var(--space-4); }
.scr-security .osprompt-acts button { min-height: var(--tap); padding: 0 var(--space-3); border: var(--hairline) solid var(--border-strong); border-radius: var(--radius-control); background: transparent; color: var(--fg); font-weight: var(--weight-ui); }
.scr-security .osprompt-acts button:active { background: var(--surface-sunk); }
@media (hover: hover) { .scr-security .osprompt-acts button:hover { background: var(--surface); } }

.scr-security .done { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: start; gap: var(--space-3); padding: var(--space-5) 0 var(--space-4); }
.scr-security .done > .ico { width: 2rem; height: 2rem; color: var(--success); }
.scr-security .done-h { margin: 0; font-family: var(--font-display); font-size: var(--text-lg); font-weight: var(--weight-announce); line-height: var(--lh-tight); letter-spacing: var(--track-head); text-wrap: pretty; }
.scr-security .done-h:focus { outline: none; }
.scr-security .done-h:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.scr-security .done-p { margin: 0; max-width: var(--measure); color: var(--muted); line-height: var(--lh-snug); text-wrap: pretty; }

.scr-security .ways { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-3); margin: var(--space-1) 0 0; }
.scr-security .ways .link-btn { margin: 0; justify-self: start; }

.scr-security .acts { list-style: none; display: grid; gap: 0; margin: var(--space-2) 0 0; padding: 0; }
.scr-security .acts > li { display: grid; gap: var(--space-1); padding: var(--space-3) 0; }
.scr-security .acts > li + li { border-top: var(--hairline) solid var(--border); }
.scr-security .acts-w { color: var(--muted); font-size: var(--text-sm); line-height: var(--lh-snug); font-variant-numeric: tabular-nums; }
.scr-security .acts-t { font-weight: var(--weight-ui); line-height: var(--lh-snug); max-inline-size: var(--measure); text-wrap: pretty; }
.scr-security .acts-s { color: var(--muted); font-size: var(--text-sm); line-height: var(--lh-snug); }

.scr-security .steps { display: grid; gap: var(--space-2); margin: 0 0 var(--space-5); }
.scr-security .take li span, .scr-security .row-s { max-inline-size: var(--measure); }
html.is-large-text .scr-security .btn-danger { padding-inline: var(--space-2); }
html.is-large-text .scr-security .row-static, html.is-large-text .scr-security .row-wide { grid-template-columns: minmax(0, 1fr); row-gap: var(--space-2); justify-items: start; }
html.is-large-text .scr-security .row-acts { flex-wrap: wrap; }
html.is-large-text .scr-security .row-act { justify-self: start; padding-inline: var(--space-2); margin-inline-start: calc(-1 * var(--space-2)); }
html.is-large-text .scr-security .rcodes { grid-template-columns: minmax(0, 1fr); }
html.is-large-text .scr-security .osprompt-acts { grid-template-columns: minmax(0, 1fr); }
html.is-large-text .scr-security .tfa, html.is-large-text .scr-security .qr-card, html.is-large-text .scr-security .rcodes-card, html.is-large-text .scr-security .callout { padding: var(--space-3); }
html.is-large-text .scr-security .qr-slot { width: 100%; }
html.is-large-text .scr-security .qr-art { width: 100%; height: auto; aspect-ratio: 1; }
html.is-large-text .scr-security .qr-cap { max-width: none; }

html.is-large-text .scr-security .app.od-screen { display: block; height: 100%; overflow-y: auto; overscroll-behavior: contain; }
html.is-large-text .scr-security .app.od-screen > .od-scroll.body { overflow: visible; }

.scr-security a.back, .scr-security a.back:hover, .scr-security a.back:active, .scr-security a.back:visited { text-decoration: none; }

.scr-security .dock--codes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-2); }
.scr-security .dock--codes .btn-primary { grid-column: 1 / -1; }
.scr-security .dock--codes .btn-quiet { padding-inline: var(--space-2); }
html.is-large-text .scr-security .dock--codes { grid-template-columns: minmax(0, 1fr); }

.scr-security .row-s, .scr-security .meth-s, .scr-security .acts-s, .scr-security .acts-t, .scr-security .done-p, .scr-security .row-why span { overflow-wrap: anywhere; }

.scr-security .art {
  position: relative; flex: none; width: var(--aw, 1280px); height: var(--ah, 800px);
  overflow: hidden; background: var(--bg); border: var(--hairline) solid var(--border-strong);
  container-type: inline-size; container-name: art;
}
.scr-security .art .ico { width: 1.15em; height: 1.15em; fill: currentColor; }
.scr-security .art .app {
  --nav-w: 232px; --pad: var(--space-5); --fig: 1.625rem; --cell-x: var(--space-3);
  isolation: isolate; position: relative; height: 100%; container-type: normal;
  display: grid; grid-template-rows: auto minmax(0, 1fr);
  background: var(--bg);
}
@container art (max-width: 1150px) {
  .scr-security .art .app { --nav-w: 196px; --pad: var(--space-4); --cell-x: var(--space-2); }
}
@container art (min-width: 1400px) {
  .scr-security .art .app { --nav-w: 248px; --pad: var(--space-6); }
}

.scr-security .art .topbar {
  display: flex; align-items: center; gap: var(--space-4);
  padding: var(--space-3) var(--pad); flex-wrap: nowrap;
  background: var(--bg); border-bottom: var(--hairline) solid var(--border);
}

.scr-security .art .lockup { display: flex; align-items: center; gap: var(--space-3); flex: none; }
.scr-security .art .lockup img { display: block; height: 1.6rem; width: auto; }
.scr-security .art .lockup-rule { width: var(--hairline); height: 1.15rem; background: var(--border-strong); }
.scr-security .art .lockup-tag { font-size: var(--text-sm); font-weight: var(--weight-announce); color: var(--brand); }
.scr-security .art .tb-spacer { flex: 1 1 auto; min-width: var(--space-4); }
.scr-security .art .tb-env {
  display: flex; align-items: center; gap: var(--space-2); flex: none;
  padding: var(--space-1) var(--space-2); border-radius: var(--radius-control);
  background: var(--info-wash); color: var(--info);
  font-size: var(--text-sm); font-weight: var(--weight-ui);
}

.scr-security .art .whoami {
  display: grid; align-content: center; flex: none; min-height: 44px;
  padding: var(--space-1) var(--space-2); margin-right: calc(-1 * var(--space-2));
  border-radius: var(--radius-control); text-align: right; line-height: var(--lh-snug);
  color: var(--fg); text-decoration: none;
  transition: background var(--dur-exit) var(--ease-out);
}
.scr-security .art a.whoami:hover { background: var(--surface); }
.scr-security .art a.whoami:active { background: var(--surface-sunk); }
.scr-security .art a.whoami[aria-current="page"] { background: var(--surface-sunk); box-shadow: inset 0 calc(-1 * var(--edge)) 0 var(--brand); }
.scr-security .art a.whoami[aria-current="page"] .whoami-name { color: var(--brand); }
.scr-security .art .whoami-name { display: block; font-size: var(--text-base); font-weight: var(--weight-announce); }
.scr-security .art .whoami-role { display: block; font-size: var(--text-sm); color: var(--muted); }

.scr-security .art .shell { display: grid; grid-template-columns: var(--nav-w) minmax(0, 1fr); min-height: 0; }
.scr-security .art .nav { overflow-y: auto; min-width: 0; padding: var(--space-4) 0 var(--space-6); background: var(--surface); border-right: var(--hairline) solid var(--border); }
.scr-security .art .nav-group { margin-top: var(--space-4); }
.scr-security .art .nav-group:first-child { margin-top: 0; }
.scr-security .art .nav-group-label { padding: 0 var(--space-4) var(--space-2); font-size: var(--type-meta); font-weight: var(--weight-announce); color: var(--muted); }
.scr-security .art .nav-item {
  display: flex; align-items: center; gap: var(--space-3);
  width: 100%; min-height: 44px; padding: var(--space-2) var(--space-4);
  background: none; border: 0; text-align: left; color: var(--fg);
  text-decoration: none; font-size: var(--text-base);
  transition: background var(--dur-exit) var(--ease-out);
}
.scr-security .art .nav-item .ico { color: var(--muted); }
.scr-security .art .nav-item:hover { background: var(--surface-sunk); }
.scr-security .art .nav-item.is-cur { background: var(--surface-sunk); color: var(--brand); font-weight: var(--weight-announce); box-shadow: inset var(--edge) 0 0 var(--brand); }
.scr-security .art .nav-item.is-cur .ico { color: var(--brand); }
.scr-security .art .main { overflow-y: auto; min-width: 0; padding: var(--pad) var(--pad) var(--space-8); }
.scr-security .art .main:focus { outline: none; }

.scr-security .art .page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-4); padding-bottom: var(--space-3); border-bottom: var(--hairline) solid var(--border); }
.scr-security .art .page-head-text { min-width: 0; }
.scr-security .art .page-title { margin: 0; font-family: var(--font-display); font-size: var(--text-xl); font-weight: var(--weight-announce); line-height: var(--lh-tight); letter-spacing: var(--track-head); }
.scr-security .art .page-sub { margin: var(--space-1) 0 0; color: var(--muted); font-size: var(--text-base); max-width: var(--measure); }
.scr-security .art .page-acts { display: flex; align-items: center; gap: var(--space-2); flex: none; }
.scr-security .art .panel-foot .page-acts { flex: 0 1 auto; min-width: 0; flex-wrap: wrap; justify-content: flex-end; }

.scr-security .art .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  width: auto; min-height: 44px; padding: 0 var(--space-4);
  border-radius: var(--radius-control); border: var(--hairline) solid var(--border-strong);
  background: var(--bg); color: var(--fg); box-shadow: none;
  font-size: var(--text-base); font-weight: var(--weight-ui); letter-spacing: var(--track-ui);
  text-decoration: none; transition: background var(--dur-exit) var(--ease-out);
}
.scr-security .art .btn:hover { background: var(--surface); }
.scr-security .art .btn:active { background: var(--surface-sunk); transform: none; }
.scr-security .art .btn:disabled { color: var(--muted); border-color: var(--border); background: var(--surface); }
.scr-security .art .btn-sm { min-height: 44px; padding: 0 var(--space-3); font-size: var(--text-sm); }
.scr-security .art .btn-ghost { border-color: transparent; background: none; color: var(--brand); }
.scr-security .art .btn-ghost:hover { background: var(--surface); }

.scr-security .art .btn-primary {
  display: inline-flex; width: auto; min-height: 44px; padding: 0 var(--space-4);
  background: var(--accent); color: var(--on-accent); border: 0;
  border-radius: var(--radius-card); border-bottom: var(--edge) solid var(--accent-edge);
  box-shadow: none; font-weight: var(--weight-announce);
}
.scr-security .art .btn-primary:hover { background: var(--accent-press); }
.scr-security .art .btn-primary:active { background: var(--accent-press); border-bottom-width: var(--hairline); transform: translateY(2px); }
.scr-security .art .btn-danger { width: auto; min-height: 44px; padding: 0 var(--space-4); border-radius: var(--radius-control); color: var(--danger); border-color: var(--danger); }
.scr-security .art .btn-danger:hover { background: var(--danger-wash); }
.scr-security .art a.btn, .scr-security .art a.btn:hover, .scr-security .art a.btn:active, .scr-security .art a.btn:visited { text-decoration: none; }

.scr-security .art .sec { margin: var(--space-6) 0 0; font-family: var(--font-ui); font-size: inherit; font-weight: var(--weight-read); letter-spacing: normal; line-height: var(--lh-body); color: inherit; }
.scr-security .art .sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-4); padding-bottom: var(--space-2); border-bottom: var(--hairline) solid var(--border); }
.scr-security .art .sec-title { margin: 0; font-family: var(--font-ui); font-size: var(--text-base); font-weight: var(--weight-announce); letter-spacing: normal; line-height: var(--lh-snug); }
.scr-security .art .sec-note { margin: 0; font-size: var(--text-sm); color: var(--muted); text-align: right; max-width: 36ch; line-height: var(--lh-snug); }
.scr-security .art .sec-body { margin-top: var(--space-4); }
.scr-security .art .cols { display: grid; gap: var(--space-6); grid-template-columns: minmax(0, 1fr); }
@container art (min-width: 1150px) {
  .scr-security .art .cols-2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .scr-security .art .cols-wide-left { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
}

.scr-security .art .tw { overflow-x: auto; border: var(--hairline) solid var(--border); background: var(--bg); }
.scr-security .art .tbl { width: 100%; font-size: var(--text-base); }
.scr-security .art .tbl-cap { margin: 0 0 var(--space-2); max-width: var(--measure); font-size: var(--text-sm); color: var(--muted); line-height: var(--lh-snug); }
.scr-security .art .tbl thead th {
  padding: var(--space-2) var(--cell-x); border-bottom: var(--hairline) solid var(--border-strong);
  background: var(--surface); text-align: left; vertical-align: bottom;
  font-size: var(--text-sm); font-weight: var(--weight-announce); color: var(--muted); line-height: var(--lh-snug);
}
.scr-security .art .tbl td { padding: var(--space-2) var(--cell-x); border-bottom: var(--hairline) solid var(--border); vertical-align: top; line-height: var(--lh-snug); }
.scr-security .art .tbl tbody tr:last-child td { border-bottom: 0; }
.scr-security .art .tbl tbody tr:hover td { background: var(--surface); }
.scr-security .art .tbl tbody tr.is-flag td { background: var(--warn-wash); }
.scr-security .art .tbl .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.scr-security .art .tbl .t-main { font-weight: var(--weight-ui); }
.scr-security .art .tbl .t-sub { display: block; font-size: var(--text-sm); color: var(--muted); }
.scr-security .art .tbl .t-code { font-size: var(--text-sm); color: var(--muted); }

.scr-security .art .tfilter { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--space-3); margin: 0 0 var(--space-3); }
.scr-security .art .tfield { display: flex; flex-direction: column; gap: var(--space-1); min-width: 0; }
.scr-security .art .tfield > label { font-size: var(--text-sm); color: var(--muted); line-height: var(--lh-snug); }
.scr-security .art .tfield-in {
  display: flex; align-items: center; gap: var(--space-2); padding: 0 var(--space-3);
  border: var(--hairline) solid var(--border-strong); border-radius: var(--radius-control); background: var(--bg);
}
.scr-security .art .tfield-in .ico { flex: none; width: 1em; height: 1em; color: var(--muted); }

.scr-security .art .tfield-in:focus-within { outline: 2px solid var(--focus); outline-offset: 1px; border-color: var(--brand); }
.scr-security .art .tfield input {
  width: 22ch; max-width: 100%; min-height: 44px; padding: 0; border: 0; background: none;
  font: inherit; font-size: var(--text-base); color: var(--fg);
}
.scr-security .art .tfield input:focus-visible { outline: none; }
.scr-security .art .tfield input::placeholder { color: var(--muted); }
.scr-security .art .tfield select {
  min-height: 44px; max-width: 100%; padding: 0 var(--space-3);
  border: var(--hairline) solid var(--border-strong); border-radius: var(--radius-control);
  background: var(--bg); color: var(--fg); font: inherit; font-size: var(--text-base);
}
.scr-security .art .tclear {
  min-height: 44px; padding: 0 var(--space-2); border: 0; border-radius: var(--radius-control);
  background: none; color: var(--brand); font: inherit; font-size: var(--text-sm);
  font-weight: var(--weight-ui); text-align: left; text-decoration: underline; text-underline-offset: 2px;
}
.scr-security .art .tclear[hidden] { display: none; }
@media (hover: hover) { .scr-security .art .tclear:hover { background: var(--brand-wash); } }
.scr-security .art .tcount {
  flex: 1 1 auto; min-width: 14ch; margin: 0; align-self: center; text-align: right;
  font-size: var(--text-sm); color: var(--muted); line-height: var(--lh-snug);
}

.scr-security .art .tbl thead th > .th-sort {
  display: inline-flex; align-items: center; gap: var(--space-1);
  width: 100%; min-height: 44px; margin: calc(var(--space-2) * -1) 0; padding: 0;
  border: 0; background: none; color: inherit;
  font: inherit; font-size: var(--text-sm); font-weight: var(--weight-announce);
  letter-spacing: normal; text-align: left; line-height: var(--lh-snug);
}
@media (hover: hover) { .scr-security .art .th-sort:hover { color: var(--brand); } }
.scr-security .art .th-sort.is-sorted { color: var(--fg); }
.scr-security .art .th-ar { flex: none; width: .8em; height: .8em; color: var(--brand); }
.scr-security .art .th-ar--up { transform: rotate(180deg); }
.scr-security .art .tbl tr.is-empty td { padding: var(--space-4) var(--cell-x); }

.scr-security .art .tbl tr.is-empty .tclear--empty { display: block; margin-top: var(--space-2); padding-left: 0; }

.scr-security .art .tfield--sort { display: none; }

.scr-security .art .panel { border: var(--hairline) solid var(--border); background: var(--bg); }
.scr-security .art .panel-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); padding: var(--space-3) var(--space-4); border-bottom: var(--hairline) solid var(--border); background: var(--surface); }
.scr-security .art .panel-title { margin: 0; font-family: var(--font-ui); font-size: var(--text-base); font-weight: var(--weight-announce); letter-spacing: normal; }
.scr-security .art .panel-body { padding: var(--space-4); }
.scr-security .art .panel-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-3); padding: var(--space-3) var(--space-4); border-top: var(--hairline) solid var(--border); background: var(--surface); }
.scr-security .art .pill { display: inline-flex; align-items: center; gap: var(--space-1); padding: 2px var(--space-2); border-radius: var(--radius-control); background: var(--surface); color: var(--muted); font-size: var(--text-sm); font-weight: var(--weight-ui); white-space: nowrap; }
.scr-security .art .pill .ico { width: .85em; height: .85em; }
.scr-security .art .pill-ok { background: var(--success-wash); color: var(--success); }
.scr-security .art .pill-warn { background: var(--warn-wash); color: var(--warn); }
.scr-security .art .pill-stop { background: var(--danger-wash); color: var(--danger); }
.scr-security .art .pill-brand { background: var(--brand-wash); color: var(--brand); }
.scr-security .art .pills { display: flex; flex-wrap: wrap; gap: var(--space-1); }
.scr-security .art .tag { display: inline-block; padding: 1px var(--space-2); border: var(--hairline) solid var(--border-strong); border-radius: var(--radius-control); font-size: var(--text-sm); color: var(--muted); white-space: nowrap; }
.scr-security .art .note { display: flex; align-items: flex-start; gap: var(--space-2); margin: 0; padding: var(--space-3) var(--space-4); border-radius: var(--radius-control); font-size: var(--text-base); line-height: var(--lh-snug); color: var(--fg); }
.scr-security .art .note .ico { margin-top: 3px; }
.scr-security .art .note-info { background: var(--info-wash); }
.scr-security .art .note-info > .ico { color: var(--info); }
.scr-security .art .note-warn { background: var(--warn-wash); }
.scr-security .art .note-warn > .ico { color: var(--warn); }
.scr-security .art .note-title { display: block; font-weight: var(--weight-announce); }
.scr-security .art .note-body { display: block; margin-top: 2px; max-width: var(--measure); }
.scr-security .art .perm { display: flex; align-items: flex-start; gap: var(--space-2); margin: var(--space-2) 0 0; font-size: var(--text-base); color: var(--muted); line-height: var(--lh-snug); max-width: var(--measure); }
.scr-security .art .perm .ico { width: 1em; height: 1em; margin-top: 3px; }

.scr-security .art .sw-row:first-child { margin-block-start: 0; }
.scr-security .art .sw-row:has(input:disabled) { cursor: default; }

.scr-security .art .switch:has(input:disabled) { background: var(--border-strong); }
.scr-security .art .sw-row:has(input:disabled):active { background: none; }
@media (hover: hover) { .scr-security .art .sw-row:has(input:disabled):hover { background: none; } }

.scr-security .art .alerts-none { margin: 0; color: var(--muted); line-height: var(--lh-snug); }
.scr-security .art .owner-only { display: inline-flex; align-items: center; gap: var(--space-1); padding: 2px var(--space-2); border-radius: var(--radius-control); background: var(--brand-wash); color: var(--brand); font-size: var(--text-sm); font-weight: var(--weight-ui); white-space: nowrap; }
.scr-security .art .owner-only .ico { width: .85em; height: .85em; }
.scr-security .art .kv { display: grid; gap: 0; }
.scr-security .art .kv-row { display: grid; grid-template-columns: minmax(110px, 11em) minmax(0, 1fr); gap: var(--space-3); padding: var(--space-2) 0; border-bottom: var(--hairline) solid var(--border); }
.scr-security .art .kv-row:last-child { border-bottom: 0; }
.scr-security .art .kv-k { color: var(--muted); font-size: var(--text-sm); line-height: var(--lh-snug); }
.scr-security .art .kv-v { min-width: 0; line-height: var(--lh-snug); overflow-wrap: anywhere; }
.scr-security .art .kv-v .t-sub { display: block; font-size: var(--text-sm); color: var(--muted); }

.scr-security .art .swrow { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); padding: var(--space-3) 0; border-bottom: var(--hairline) solid var(--border); }
.scr-security .art .swrow:last-child { border-bottom: 0; }
.scr-security .art .swrow-t { min-width: 0; }
.scr-security .art .swrow-n { margin: 0; font-weight: var(--weight-ui); line-height: var(--lh-snug); }
.scr-security .art .swrow-s { margin: var(--space-1) 0 0; color: var(--muted); font-size: var(--text-sm); line-height: var(--lh-snug); max-width: var(--measure); }
.scr-security .art .swrow-r { display: flex; align-items: center; gap: var(--space-3); flex: none; }
.scr-security .art .meths { display: flex; flex-direction: column; gap: var(--space-1); }

.scr-security .art .tbl tr.is-route td { padding-top: 0; }
.scr-security .art .route { display: flex; align-items: flex-start; gap: var(--space-2); max-width: var(--measure); color: var(--muted); font-size: var(--text-sm); line-height: var(--lh-snug); }
.scr-security .art .route .ico { flex: none; width: 1em; height: 1em; margin-top: 3px; color: var(--brand); }

.scr-security .art .tbl td, .scr-security .art .tbl .t-sub, .scr-security .art .page-sub { overflow-wrap: anywhere; }

@container art (max-width: 1023px) {
  .scr-security .art .tfield--sort { display: flex; }
  .scr-security .art .tfield--find { flex: 1 1 22ch; }
  .scr-security .art .tfield--find input { width: 100%; }
  .scr-security .art .tcount { flex: 1 1 100%; text-align: left; }
  .scr-security .art .tbl--staff, .scr-security .art .tbl--staff tbody, .scr-security .art .tbl--staff tr, .scr-security .art .tbl--staff td { display: block; width: 100%; }
  .scr-security .art .tbl--staff thead { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .scr-security .art .tbl--staff tr { padding: var(--space-3) var(--cell-x); border-bottom: var(--hairline) solid var(--border); }
  .scr-security .art .tbl--staff tbody tr:last-child { border-bottom: 0; }
  .scr-security .art .tbl--staff td { padding: var(--space-1) 0; border-bottom: 0; }
  .scr-security .art .tbl--staff td[data-k]::before {
    content: attr(data-k) ": "; display: block;
    font-size: var(--text-sm); color: var(--muted); line-height: var(--lh-snug);
  }
  .scr-security .art .tbl--staff td.is-who::before { content: none; }
  .scr-security .art .tbl--staff td.is-who { padding-bottom: var(--space-2); }
  .scr-security .art .tbl--staff td.nowrap { white-space: normal; }
  .scr-security .art .tbl--staff .meths { flex-direction: row; flex-wrap: wrap; }
  .scr-security .art .tbl--staff tr.is-route { padding-top: 0; border-top: 0; }
  .scr-security .art .tbl--staff tr.is-route td { padding-top: 0; }
}

.scr-security .art .standin { position: static; margin: 0 0 var(--space-4); padding: var(--space-2) var(--space-3); font-size: var(--text-sm); }

.scr-security .as-switch { margin: var(--space-5) 0 0; padding: var(--space-4); border: var(--hairline) solid var(--border); border-radius: var(--radius-control); background: var(--surface); }
.scr-security .as-switch-k { display: block; margin: 0 0 var(--space-1); font-size: var(--type-meta); font-weight: var(--weight-announce); color: var(--muted); }
.scr-security .as-switch-p { margin: 0 0 var(--space-3); font-size: var(--text-sm); color: var(--muted); line-height: var(--lh-snug); }
.scr-security .as-switch-url { margin: 0 0 var(--space-3); font-size: var(--text-sm); overflow-wrap: anywhere; }
.scr-security .as-switch-g { display: block; margin: var(--space-4) 0 var(--space-2); font-size: var(--text-sm); font-weight: var(--weight-ui); color: var(--muted); }
.scr-security .as-switch-list { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.scr-security .as-opt { display: inline-flex; align-items: center; gap: var(--space-2); min-height: var(--tap); padding: var(--space-2) var(--space-3); border: var(--hairline) solid var(--border-strong); border-radius: var(--radius-control); background: var(--bg); color: var(--fg); font-size: var(--text-sm); font-weight: var(--weight-ui); text-decoration: none; line-height: var(--lh-snug); }
@media (hover: hover) { .scr-security .as-opt:hover { border-color: var(--brand); } }
.scr-security .as-opt:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.scr-security .as-opt .as-role { color: var(--muted); font-weight: var(--weight-read); }
.scr-security .as-opt[aria-current="page"] { border-color: var(--brand); background: var(--brand-wash); color: var(--brand); font-weight: var(--weight-announce); }
.scr-security .as-opt[aria-current="page"] .as-role { color: var(--brand); }

.scr-security a.btn-quiet { text-decoration: none; }
.scr-security a.btn-quiet, .scr-security a.btn-quiet:visited { color: var(--fg); }

.scr-security .art .notallowed {
  display: grid; justify-items: start; gap: var(--space-3);
  max-width: var(--measure); margin-top: var(--space-6);
  padding: var(--space-6); border: var(--hairline) solid var(--border-strong);
  background: var(--bg);
}
.scr-security .art .notallowed > .ico { width: 1.75rem; height: 1.75rem; color: var(--info); }
.scr-security .art .notallowed-t {
  margin: 0;
  font-family: var(--font-display); font-size: var(--text-lg); font-weight: var(--weight-announce);
  line-height: var(--lh-tight); letter-spacing: var(--track-head);
}
.scr-security .art .notallowed-p { color: var(--muted); line-height: var(--lh-body); }
.scr-security .art .notallowed-acts { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-2); }
.scr-security .art .refused { display: grid; gap: 0; border: var(--hairline) solid var(--border); background: var(--bg); }
.scr-security .art .refused-row {
  display: grid; grid-template-columns: 1.1rem minmax(0, 14rem) minmax(0, 1fr);
  gap: var(--space-2) var(--space-3); align-items: start;
  padding: var(--space-3) var(--space-4);
  border-top: var(--hairline) solid var(--border);
}
.scr-security .art .refused-row:first-child { border-top: 0; }
.scr-security .art .refused-row > .ico { width: 1.1em; height: 1.1em; margin-top: 2px; color: var(--muted); }
.scr-security .art .refused-k { font-weight: var(--weight-ui); line-height: var(--lh-snug); }
.scr-security .art .refused-v { color: var(--muted); line-height: var(--lh-snug); }
@container art (max-width: 900px) {
  .scr-security .art .refused-row { grid-template-columns: 1.1rem minmax(0, 1fr); }
  .scr-security .art .refused-v { grid-column: 2; }

  .scr-security .art .sw-row { grid-template-columns: minmax(0, 1fr) auto; row-gap: var(--space-3); }
  .scr-security .art .sw-t { grid-column: 1 / -1; }
}

@container art (max-width: 560px) {
  .scr-security .art .sw-row { grid-template-columns: minmax(0, 1fr); row-gap: var(--space-2); }
  .scr-security .art .sw-t, .scr-security .art .sw-state, .scr-security .art .switch { grid-column: 1; }
  .scr-security .art .switch { justify-self: start; }
}

.scr-security .topbar--adult { padding: var(--space-2) var(--space-2) var(--space-3); padding-block-start: calc(var(--space-2) + env(safe-area-inset-top, 0px)); }
@container screen (max-width: 599px) {
  .scr-security .topbar--adult .ctx { order: 3; flex: 1 1 100%; }
}
@container screen (min-width: 600px) {
  .scr-security .topbar--adult { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; column-gap: var(--space-2); }
  .scr-security .topbar--adult .ctx { justify-self: end; }
  .scr-security .topbar--adult .acct-wrap { justify-self: end; }
}

html.is-large-text .scr-security .topbar--adult { display: flex; }

.scr-security .body > .sec-h { margin-block-start: var(--space-6); }
.scr-security .body > .sec-h:first-child { margin-block-start: 0; }

.scr-security .row-s, .scr-security .meth-s, .scr-security .acts-s, .scr-security .acts-t, .scr-security .done-p, .scr-security .row-why span { overflow-wrap: anywhere; }

.scr-security .art .tbl { --table-min: 0; }

.scr-security .art .kv { grid-template-columns: minmax(0, 1fr); }

.scr-security .copyof { display: grid; justify-items: start; gap: var(--space-3); max-width: var(--measure); margin: var(--space-6) auto; padding: var(--space-5); background: var(--surface); border-radius: var(--radius-card); }
.scr-security .copyof > .ico { inline-size: var(--ico-xxl); block-size: var(--ico-xxl); color: var(--info); }
.scr-security .copyof-t { margin: 0; font-family: var(--font-display); font-size: var(--text-lg); font-weight: var(--weight-announce); letter-spacing: var(--track-head); line-height: var(--lh-tight); }
.scr-security .copyof-p { margin: 0; color: var(--muted); line-height: var(--lh-snug); text-wrap: pretty; }
.scr-security .copyof-w { margin: 0; font-weight: var(--weight-ui); line-height: var(--lh-snug); overflow-wrap: anywhere; }
.scr-security .copyof .btn-primary { inline-size: auto; }

/* org-admin-r37.html → .scr-org */
.scr-org html[data-text-size="large"]  { --reading-scale: 1.125; }
.scr-org html[data-text-size="larger"] { --reading-scale: 1.25; }
.scr-org html[data-dyslexia="on"] { --font-ui: var(--font-dyslexic); --lh-body: 1.75; }

.scr-org .lockup { display: block; height: auto; max-width: 100%; block-size: auto; inline-size: min(12.85rem, 60cqi); }

.scr-org .art {
  position: relative; flex: none; inline-size: var(--aw, 1280px); block-size: var(--ah, 860px);
  overflow: hidden; background: var(--bg); border: var(--hairline) solid var(--border-strong);
  container-type: inline-size; container-name: art;
}

.scr-org .app {
  --cell-x: var(--space-3);

  --figure: 2.5rem;

  display: grid; grid-template-rows: auto minmax(0, 1fr); grid-template-columns: minmax(0, 1fr);
}

.scr-org .wrap { --wrap-pad: var(--space-6); }

.scr-org .body { padding-block: var(--space-5) var(--space-8); }

.scr-org .topbar { padding: var(--space-3) 0; border-block-end: var(--hairline) solid var(--border); background: var(--bg); }
.scr-org .topbar .wrap { display: flex; align-items: center; gap: var(--space-3); }

.scr-org .wordmark { flex: none; }

.scr-org .ctx--fixed {
  align-items: flex-start; margin: 0; cursor: default;
  border-color: var(--border); background: var(--surface);
  padding-block: var(--space-2);
}
.scr-org .ctx--fixed .ctx-in { display: grid; gap: 2px; min-width: 0; }
.scr-org .ctx--fixed .ctx-name { white-space: normal; overflow: visible; text-overflow: clip; }
.scr-org .ctx--fixed .ctx-sub {
  display: block; min-width: 0; color: var(--muted);
  font-size: var(--text-sm); font-weight: var(--weight-read); line-height: var(--lh-snug);
}
.scr-org .ctx--fixed .ctx-code { display: inline; }
@keyframes rise-in-scr-org { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

.scr-org .menu-h { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; padding: var(--space-2) var(--space-3) var(--space-3); }
.scr-org .menu-h > :where(*) { display: block; }
.scr-org .menu-h-n { font-weight: var(--weight-announce); line-height: var(--lh-snug); text-wrap: pretty; }
.scr-org .menu-h-c { color: var(--muted); font-size: var(--text-sm); font-variant-numeric: tabular-nums; }
.scr-org .menu-mgr { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-1); padding: var(--space-2) var(--space-3) var(--space-3); }
.scr-org .menu-mgr > :where(*) { display: block; }
.scr-org .menu-mgr-k { font-size: var(--text-sm); color: var(--muted); }
.scr-org .menu-mgr-v { font-weight: var(--weight-ui); line-height: var(--lh-snug); }
.scr-org .menu-mgr-m { font-size: var(--text-sm); color: var(--muted); overflow-wrap: anywhere; }

.scr-org .banner { margin: 0; padding: 0; border: 0; border-radius: 0; border-block-end: var(--hairline) solid var(--border); background: var(--bg); }
.scr-org .banner-wrap { display: flex; align-items: flex-start; gap: var(--space-5); padding-block: var(--space-4); }

.scr-org .layout { --nav-w: 232px; display: grid; grid-template-columns: var(--nav-w) minmax(0, 1fr); gap: var(--space-6) var(--space-7); align-items: start; padding-block: var(--space-5); }

.scr-org .nav { position: sticky; top: var(--space-5); padding: 0; background: none; border-inline-end: 0; overflow: visible; }

.scr-org .nav-item { padding: var(--space-2) var(--space-3); }
.scr-org .nav-item .ico { color: var(--muted); }
.scr-org .nav-item > span { min-width: 0; }
.scr-org .nav-item:active { background: var(--surface-sunk); }

@media (hover: hover) { .scr-org .nav-item:hover { background: var(--surface); } }
.scr-org .nav-item.is-cur .ico { color: var(--brand); }
.scr-org .nav-n { margin-left: auto; flex: none; font-size: var(--text-sm); color: var(--muted); font-variant-numeric: tabular-nums; }
.scr-org .nav-item.is-cur .nav-n { color: var(--brand); }

.scr-org .nav-set { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-1); margin-top: var(--space-3); padding: var(--space-3); border-radius: var(--radius-control); background: var(--surface); }
.scr-org .nav-set > :where(*) { display: block; }
.scr-org .nav-set-k { font-size: var(--text-sm); font-weight: var(--weight-announce); color: var(--fg); line-height: var(--lh-snug); }
.scr-org .nav-set-v { font-size: var(--text-sm); color: var(--muted); line-height: var(--lh-snug); text-wrap: pretty; }

.scr-org .main { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-6); align-content: start; }
.scr-org .page-head-t { flex: 1 1 18rem; min-width: 0; }
.scr-org .page-title { font-family: var(--font-display); font-size: var(--text-xl); font-weight: var(--weight-announce); line-height: var(--lh-tight); letter-spacing: var(--track-head); text-wrap: pretty; }
.scr-org .page-sub { margin-top: var(--space-2); color: var(--muted); line-height: var(--lh-snug); text-wrap: pretty; }
.scr-org .page-acts { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); }
.scr-org .btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); }

.scr-org .sec { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-4); margin-block-start: 0; }
.scr-org .sec-title { font-size: var(--text-md); font-weight: var(--weight-announce); line-height: var(--lh-snug); }

.scr-org .cols { --cols-split: minmax(0, 1fr); }

.scr-org .col { container-type: inline-size; container-name: pane; }

.scr-org .fig { --figure: 2.5rem; grid-template-columns: minmax(0, 1fr); padding: var(--space-4); }
.scr-org .fig > :where(*) { display: block; }

.scr-org .fig-k { font-weight: var(--weight-announce); }

.scr-org .fig-v { white-space: normal; overflow-wrap: anywhere; }
.scr-org .fig-n { font-size: var(--text-sm); color: var(--muted); line-height: var(--lh-snug); text-wrap: pretty; }

.scr-org .tw {
  min-width: 0; overflow-x: auto; overscroll-behavior-x: contain;
  border: var(--hairline) solid var(--border); background: var(--bg);
  background-image:
    linear-gradient(to right, var(--bg), rgba(250, 248, 243, 0)),
    linear-gradient(to left,  var(--bg), rgba(250, 248, 243, 0)),
    linear-gradient(to right, rgba(23, 32, 27, 0.16), rgba(23, 32, 27, 0)),
    linear-gradient(to left,  rgba(23, 32, 27, 0.16), rgba(23, 32, 27, 0));
  background-position: 0 0, 100% 0, 0 0, 100% 0;
  background-repeat: no-repeat;
  background-size: 2.5rem 100%, 2.5rem 100%, 1.5rem 100%, 1.5rem 100%;
  background-attachment: local, local, scroll, scroll;
}
.scr-org .tw:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

.scr-org .tbl tbody tr.is-open > td { background: var(--surface-sunk); }

.scr-org .tbl .t-small { font-size: var(--text-sm); color: var(--muted); font-variant-numeric: normal; }

.scr-org .tbl .t-small { display: inline-flex; align-items: center; gap: var(--space-1); }
.scr-org .tbl .t-small .ico { inline-size: 0.875rem; block-size: 0.875rem; flex: none; }

.scr-org a.rowbtn { text-decoration: none; }
.scr-org a.rowbtn:visited { color: var(--brand); }
.scr-org .tbl .t-act { text-align: end; white-space: nowrap; }

.scr-org .t-acts { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: var(--space-2); }
.scr-org .rowbtn {
  display: inline-flex; align-items: center; min-height: 44px; margin-inline-start: calc(-1 * var(--space-2));
  padding-inline: var(--space-2); border: 0; border-radius: var(--radius-control);
  background: transparent; color: var(--brand); font-weight: var(--weight-ui); text-align: start;
}
.scr-org .rowbtn > span { min-width: 0; }
@media (hover: hover) { .scr-org .rowbtn:hover { background: var(--brand-wash); } }

.scr-org .rowx > td { padding-block: var(--space-4); background: var(--surface); border-bottom: var(--hairline) solid var(--border); }
.scr-org .rowx-in { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-3); max-inline-size: 42rem; }

.scr-org .hists { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; margin: 0; padding: 0; list-style: none; }
.scr-org .hist { display: grid; grid-template-columns: 7rem minmax(0, 1fr); gap: var(--space-2) var(--space-5); padding: var(--space-5) var(--cell-x); border-bottom: var(--hairline) solid var(--border); }
.scr-org .hist:last-child { border-bottom: 0; }
.scr-org .hist--none { grid-template-columns: minmax(0, 1fr); }
.scr-org .hist-when { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-1); align-content: start; }
.scr-org .hist-when > :where(*) { display: block; }
.scr-org .hist-d { font-weight: var(--weight-announce); line-height: var(--lh-snug); white-space: nowrap; }
.scr-org .hist-t { font-size: var(--text-sm); color: var(--muted); white-space: nowrap; }
.scr-org .hist-in { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-2); justify-items: start; }
.scr-org .hist-h { font-family: var(--font-display); font-size: var(--text-md); font-weight: var(--weight-announce); line-height: var(--lh-snug); letter-spacing: var(--track-head); text-wrap: pretty; }
.scr-org .hist-by { font-size: var(--text-sm); color: var(--muted); line-height: var(--lh-snug); text-wrap: pretty; }
.scr-org .hist-p { color: var(--muted); line-height: var(--lh-body); max-inline-size: var(--measure); text-wrap: pretty; }

.scr-org .hist-p--ink { color: var(--fg); }

.scr-org .hist-why { margin: var(--space-1) 0 0; padding: var(--space-3) var(--space-4); border-radius: var(--radius-control); background: var(--brand-wash); max-inline-size: var(--measure); }
.scr-org .hist-why-k { font-size: var(--text-sm); font-weight: var(--weight-announce); color: var(--brand); line-height: var(--lh-snug); }
.scr-org .hist-why-v { margin-top: var(--space-1); line-height: var(--lh-snug); text-wrap: pretty; }
@container art (max-width: 599px) {
  .scr-org .hist { grid-template-columns: minmax(0, 1fr); }
  .scr-org .hist-when { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-2); }
}

.scr-org .hist-head {
  display: grid; grid-template-columns: 7rem minmax(0, 1fr);
  gap: var(--space-2) var(--space-5); align-items: center;
  padding: var(--space-2) var(--cell-x); border-block-end: var(--hairline) solid var(--border); background: var(--surface); }
.scr-org .hist-head-row { display: contents; }
.scr-org .hist-head > :where(*), .scr-org .hist-head-row > :where(*) { min-width: 0; }
.scr-org .hist-head-k { font-size: var(--text-sm); font-weight: var(--weight-announce); color: var(--muted); }
.scr-org .hist-head + .hists { border-top: 0; }
@container art (max-width: 599px) {
  .scr-org .hist-head { grid-template-columns: minmax(0, 1fr); }
  .scr-org .hist-head-k { display: none; }
}

.scr-org .rowmenu { min-inline-size: 44px; }

.scr-org .rowmenu-t { display: none; }
@container art (max-width: 599px) {
  .scr-org .rowmenu-t { display: inline; }
  .scr-org .rowmenu { justify-content: center; gap: var(--space-2); }
}
.scr-org .rowx-acts { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); }
.scr-org .rowx-t { font-weight: var(--weight-ui); line-height: var(--lh-snug); }
.scr-org .rowx-t .sub { display: block; margin-top: var(--space-1); font-size: var(--text-sm); color: var(--muted); font-weight: var(--weight-read); }
@container art (max-width: 599px) {
  .scr-org .rowx-acts, .scr-org .rowx-acts > .btn { inline-size: 100%; }
}

.scr-org .ctrl-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--space-3); }

.scr-org .tctl { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-3); }@media (hover: hover) { .scr-org .chip:hover .ico { color: var(--fg); } }
@container art (max-width: 599px) {
  .scr-org .chips > .chip-x, .scr-org .chips > .btn { inline-size: 100%; justify-content: space-between; }
  .scr-org .chips-k { inline-size: 100%; }
  .scr-org .tempty, .scr-org .tempty .btn-row, .scr-org .tempty .btn { inline-size: 100%; }
}
html.is-large-text .scr-org .chips > .chip-x, html.is-large-text .scr-org .chips > .btn { inline-size: 100%; justify-content: space-between; }

.scr-org .chip--stacked { align-items: flex-start; white-space: normal; border-radius: var(--radius-control); padding-block: var(--space-1); }
.scr-org .chip--stacked > span { min-width: 0; text-wrap: pretty; }
.scr-org .chip-sub { display: block; margin-top: var(--space-1); font-size: var(--text-sm); color: var(--muted); font-weight: var(--weight-read); text-wrap: pretty; }

.scr-org .note--brand { background: var(--brand-wash); }
.scr-org .note--brand > .ico { color: var(--brand); }

.scr-org .perm { display: flex; align-items: flex-start; gap: var(--space-2); color: var(--muted); font-size: var(--text-sm); line-height: var(--lh-snug); }
.scr-org .perm .ico { width: 1em; height: 1em; margin-top: 0.2em; }
.scr-org .perm > span { min-width: 0; max-inline-size: var(--measure); text-wrap: pretty; }

.scr-org .panel-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-3); padding: var(--space-3) var(--space-4); border-bottom: var(--hairline) solid var(--border); background: var(--surface); }
.scr-org .panel-title { font-size: var(--text-base); font-weight: var(--weight-announce); }
.scr-org .panel-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-4); padding: var(--space-4); }
.scr-org .panel-foot { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-3); padding: var(--space-3) var(--space-4); border-top: var(--hairline) solid var(--border); }

.scr-org .kv { grid-template-columns: minmax(0, 1fr); }

.scr-org .kv-k { font-size: var(--text-sm); font-weight: var(--weight-announce); color: var(--muted); padding-top: 0.1em; }
.scr-org .kv-v { min-width: 0; line-height: var(--lh-snug); text-wrap: pretty; }
.scr-org .kv-v .sub { display: block; margin-top: var(--space-1); font-size: var(--text-sm); color: var(--muted); }

@container pane (max-width: 27rem) {
  .scr-org .kv-row { grid-template-columns: minmax(0, 1fr); gap: var(--space-1); }
  .scr-org .kv-k { padding-top: 0; }
  .scr-org .tmpl-acts, .scr-org .tmpl-acts > .btn { inline-size: 100%; }
}

.scr-org .fields { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-4); }
.scr-org .fields-2 { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-4); }

.scr-org .field { margin-block-start: 0; --field-gap: var(--space-2); }

.scr-org .stepper { display: flex; align-items: center; gap: var(--space-3); margin-block-start: var(--field-gap); }
.scr-org .stepper-b { min-inline-size: var(--tap); justify-content: center; font-size: var(--text-md); line-height: 1; }
.scr-org .stepper-v { font-size: var(--text-lg); font-weight: var(--weight-announce); font-variant-numeric: tabular-nums; min-inline-size: 2.5ch; text-align: center; }

.scr-org .field-req { color: var(--muted); font-weight: var(--weight-read); font-size: var(--text-sm); }

.scr-org .suffix { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); }
.scr-org .suffix .inp { flex: 1 1 12rem; }

.scr-org .opts { gap: var(--space-3); margin: 0; border: 0; }
.scr-org .opts > legend { padding: 0 0 var(--space-1); font-weight: var(--weight-ui); }

.scr-org .optbox { min-width: 0; border: var(--hairline) solid var(--border-strong); border-radius: 0; background: var(--bg); }
.scr-org .optbox:has(input:checked) { background: var(--surface-sunk); box-shadow: inset var(--edge) 0 0 var(--brand); }
.scr-org .optbox:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }

.scr-org .opt {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--space-3);
  min-height: var(--tap); padding: var(--space-3) var(--space-4);
}
.scr-org .opt input { width: 1.25rem; height: 1.25rem; margin: 0.15em 0 0; accent-color: var(--brand); }
.scr-org .opt-t > :where(*) { display: block; }
.scr-org .opt-n { font-weight: var(--weight-announce); line-height: var(--lh-snug); }

.scr-org .opt-d { color: var(--muted); font-size: var(--text-sm); font-weight: var(--weight-read); line-height: var(--lh-snug); text-wrap: pretty; }
.scr-org .opt-more { margin: 0 var(--space-4) var(--space-4); padding-top: var(--space-3); border-top: var(--hairline) solid var(--border); display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-4); }

.scr-org .tabs { display: flex; flex-wrap: wrap; gap: var(--space-2); border-bottom: var(--hairline) solid var(--border); }

.scr-org .tab { padding-block: 0; }
.scr-org .tab.is-cur { color: var(--brand); border-bottom-color: var(--brand); font-weight: var(--weight-announce); }

.scr-org .code-card { min-width: 0; grid-template-columns: minmax(0, 1fr); gap: var(--space-2); padding: var(--space-4); border: var(--hairline) dashed var(--border-strong); border-radius: var(--radius-control); background: var(--bg); }
.scr-org .code-name { font-weight: var(--weight-announce); line-height: var(--lh-snug); }
.scr-org .code-kv { display: grid; grid-template-columns: minmax(0, auto) minmax(0, 1fr); gap: var(--space-1) var(--space-3); font-size: var(--text-sm); }
.scr-org .code-k { color: var(--muted); }
.scr-org .code-v { min-width: 0; font-variant-numeric: tabular-nums; letter-spacing: 0.02em; overflow-wrap: anywhere; }

.scr-org .code-big { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-1); padding-top: var(--space-1); }
.scr-org .code-big > :where(*) { display: block; }
.scr-org .code-v-big { min-width: 0; font-size: var(--text-md); font-weight: var(--weight-announce); letter-spacing: 0.03em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }

.scr-org .code-card > .qr { --qr-size: 120px; justify-self: center; margin-block-start: var(--space-1); }
.scr-org .code-where { font-size: var(--text-sm); color: var(--muted); line-height: var(--lh-snug); overflow-wrap: anywhere; }
.scr-org .code-foot { font-size: var(--text-sm); color: var(--muted); line-height: var(--lh-snug); }

.scr-org .shared { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--space-4); padding: var(--space-4) 0; border-block: var(--hairline) solid var(--border); }
.scr-org .shared-in { flex: 1 1 18rem; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-1); }
.scr-org .shared-in > :where(*) { display: block; }
.scr-org .shared-k { font-size: var(--text-sm); color: var(--muted); }
.scr-org .shared-v { min-width: 0; font-family: var(--font-ui); font-size: var(--text-lg); font-weight: var(--weight-announce); letter-spacing: 0.03em; line-height: var(--lh-tight); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.scr-org .shared-n { font-size: var(--text-sm); color: var(--muted); line-height: var(--lh-snug); text-wrap: pretty; }
.scr-org .shared-acts { flex: none; display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); }

.scr-org .tree { display: grid; grid-template-columns: minmax(0, 1fr); }
.scr-org .tree-node { display: grid; grid-template-columns: 1.15em minmax(0, 1fr) auto; gap: var(--space-3); align-items: baseline; padding-block: var(--space-3); border-bottom: var(--hairline) solid var(--border); }
.scr-org .tree-node:last-child { border-bottom: 0; }
.scr-org .tree-node .ico { align-self: center; color: var(--muted); }
.scr-org .tree-in { min-width: 0; }
.scr-org .tree-n { font-weight: var(--weight-ui); line-height: var(--lh-snug); }
.scr-org .tree-s { display: block; font-size: var(--text-sm); color: var(--muted); }
.scr-org .tree-v { flex: none; font-variant-numeric: tabular-nums; white-space: nowrap; text-align: end; }
.scr-org .tree-child { padding-inline-start: var(--space-5); }
.scr-org .tree-new { background: var(--brand-wash); }

.scr-org .signin { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-5); max-inline-size: 26rem; margin-inline: auto; }

.scr-org .acct-line { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-2); padding: var(--space-3) var(--space-4); border-radius: var(--radius-control); background: var(--surface); }
.scr-org .acct-line-t { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-1); min-width: 0; }
.scr-org .acct-line-k { font-size: var(--text-sm); color: var(--muted); }
.scr-org .acct-line-v { font-weight: var(--weight-announce); font-variant-numeric: tabular-nums; letter-spacing: 0.03em; }

.scr-org .orline { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: var(--space-3); color: var(--muted); font-size: var(--text-sm); }
.scr-org .orline::before, .scr-org .orline::after { content: ""; display: block; block-size: var(--hairline); background: var(--border); }
.scr-org .links { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-2); color: var(--muted); font-size: var(--text-sm); line-height: var(--lh-snug); }

.scr-org .strip {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: var(--space-3) var(--space-5); padding: var(--space-3) var(--space-4);
  border: var(--hairline) solid var(--border); background: var(--bg);
}
.scr-org .strip-in { flex: 1 1 24rem; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-1); }
.scr-org .strip-in > :where(*) { display: block; }
.scr-org .strip-k { font-size: var(--text-sm); color: var(--muted); }
.scr-org .strip-v { min-width: 0; font-weight: var(--weight-announce); line-height: var(--lh-snug); }

.scr-org .strip-m { color: var(--muted); font-weight: var(--weight-read); overflow-wrap: anywhere; }
.scr-org .strip-n { font-size: var(--text-sm); color: var(--muted); line-height: var(--lh-snug); text-wrap: pretty; }
.scr-org .strip-acts { flex: none; display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); }

.scr-org .gbtn { justify-content: center; gap: var(--space-3); min-height: calc(var(--tap) + var(--space-1)); font-weight: var(--weight-announce); }

.scr-org .filebox { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-3); padding: var(--space-3) var(--space-4); border: var(--hairline) solid var(--border-strong); border-radius: var(--radius-control); background: var(--surface); }
.scr-org .filebox-in { flex: 1 1 18rem; min-width: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--space-3); align-items: center; }
.scr-org .filebox .ico { inline-size: 1.5rem; block-size: 1.5rem; color: var(--brand); }
.scr-org .file-n { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-1); }
.scr-org .file-n > :where(*) { display: block; }
.scr-org .file-t { font-weight: var(--weight-ui); overflow-wrap: anywhere; }
.scr-org .file-s { font-size: var(--text-sm); color: var(--muted); line-height: var(--lh-snug); }

.scr-org .cell-edit { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-1); inline-size: 9rem; max-inline-size: 100%; }

.scr-org .t-fix { inline-size: 100%; margin-top: var(--space-2); }
.scr-org .cell-note { font-size: var(--text-sm); color: var(--muted); line-height: var(--lh-snug); text-wrap: pretty; }

.scr-org .t-pick { inline-size: 3rem; }
.scr-org .rowpick { display: flex; align-items: center; justify-content: center; min-inline-size: 44px; min-height: 44px; margin: calc(-1 * var(--space-2)) 0; }
.scr-org .rowpick input { inline-size: 1.25rem; block-size: 1.25rem; margin: 0; accent-color: var(--brand); }
.scr-org .bulk { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-3); padding: var(--space-3); border: var(--hairline) solid var(--border); background: var(--surface); }
.scr-org .bulk-n { min-width: 0; flex: 1 1 14rem; color: var(--muted); line-height: var(--lh-snug); text-wrap: pretty; }
.scr-org .bulk-acts { flex: none; display: flex; flex-wrap: wrap; gap: var(--space-2); }
@container art (max-width: 599px) {
  .scr-org .bulk-acts, .scr-org .bulk-acts > * { inline-size: 100%; }
  .scr-org .t-pick { inline-size: auto; }
  .scr-org .tbl--stack .rowpick { justify-content: flex-start; margin: 0; }
}

.scr-org .tbl--stack .t-acts { display: flex; flex-wrap: wrap; gap: var(--space-2); }
@container art (max-width: 599px) {
  .scr-org .tw:has(.tbl--stack) { overflow-x: visible; background-image: none; }

  .scr-org .tbl--stack { --table-min: 0; min-inline-size: 0; }
  .scr-org .tbl--stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .scr-org .tbl--stack tbody tr { display: block; padding: var(--space-3) var(--cell-x); }
  .scr-org .tbl--stack tbody tr.rowx { padding-block-start: 0; }
  .scr-org .tbl--stack tbody td { display: block; padding: 0; }
  .scr-org .tbl--stack tbody td + td { margin-top: var(--space-2); }
  .scr-org .tbl--stack tbody td[data-l]::before {
    content: attr(data-l); display: block;
    font-size: var(--text-sm); font-weight: var(--weight-announce); color: var(--muted); line-height: var(--lh-snug);
  }
  .scr-org .tbl--stack tbody td.num { text-align: start; }
  .scr-org .tbl--stack tbody td.t-act { margin-top: var(--space-3); }
  .scr-org .tbl--stack .t-acts { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-2); }
  .scr-org .tbl--stack .t-acts > .btn { inline-size: 100%; }
  .scr-org .tbl--stack tbody tr:hover > td { background: transparent; }
}

@container art (max-width: 599px) {
  .scr-org .tbl--stack-foot tfoot tr { display: block; padding: var(--space-3) var(--cell-x); }
  .scr-org .tbl--stack-foot tfoot th, .scr-org .tbl--stack-foot tfoot td { display: block; padding: 0; text-align: start; }
  .scr-org .tbl--stack-foot tfoot th + td, .scr-org .tbl--stack-foot tfoot td + td { margin-top: var(--space-2); }
  .scr-org .tbl--stack-foot tfoot td[data-l]::before {
    content: attr(data-l); display: block;
    font-size: var(--text-sm); font-weight: var(--weight-announce); color: var(--muted); line-height: var(--lh-snug);
  }

  .scr-org .tbl--stack-foot tfoot td.num { text-align: start; }
}

@container art (max-width: 599px) {
  .scr-org .tbl--stack td[data-l="Address"] .t-main { overflow-wrap: anywhere; }
}

@container art (max-width: 1150px) {
  .scr-org .app { --cell-x: var(--space-2); }

  .scr-org .layout { --nav-w: 200px; }
}

@container art (max-width: 1023px) {
  .scr-org .app { --figure: 2rem; }
  .scr-org .wrap { --wrap-max: 720px; }   
  .scr-org .layout { grid-template-columns: minmax(0, 1fr); gap: var(--space-5); }

  .scr-org .nav {
    position: static; grid-auto-flow: column; grid-auto-columns: max-content; grid-template-columns: none;
    gap: var(--space-2); overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none;
    margin-inline: calc(-1 * var(--wrap-pad)); padding-inline: var(--wrap-pad); padding-block: var(--space-1);
    border-bottom: var(--hairline) solid var(--border);
    background-image:
      linear-gradient(to right, var(--bg), rgba(250, 248, 243, 0)),
      linear-gradient(to left,  var(--bg), rgba(250, 248, 243, 0)),
      linear-gradient(to right, rgba(23, 32, 27, 0.16), rgba(23, 32, 27, 0)),
      linear-gradient(to left,  rgba(23, 32, 27, 0.16), rgba(23, 32, 27, 0));
    background-position: 0 0, 100% 0, 0 0, 100% 0;
    background-repeat: no-repeat;
    background-size: 2rem 100%, 2rem 100%, 1.25rem 100%, 1.25rem 100%;
    background-attachment: local, local, scroll, scroll;
  }
  .scr-org .nav::-webkit-scrollbar { display: none; }

  .scr-org .nav-item { border-radius: 0; }
  .scr-org .nav-set { display: none; }
  .scr-org .figs { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .scr-org .fig { border-inline-start: 0; border-top: var(--hairline) solid var(--border); }
  .scr-org .fig:first-child, .scr-org .fig:nth-child(2) { border-top: 0; }
  .scr-org .fig:nth-child(odd) { border-inline-end: var(--hairline) solid var(--border); }
  .scr-org .page-title { font-size: var(--text-lg); }

  .scr-org .ctx-name { display: none; }
  .scr-org .banner-wrap { flex-wrap: wrap; gap: var(--space-3); }
  .scr-org .banner-act, .scr-org .banner-act .btn-primary { inline-size: 100%; }
  .scr-org .shared-acts, .scr-org .shared-acts > * { inline-size: 100%; }
}

@container art (max-width: 599px) {
  .scr-org .wrap { --wrap-max: none; }
  .scr-org .topbar { padding-block: var(--space-2); }

  .scr-org .topbar .wrap { gap: var(--space-2); flex-wrap: wrap; row-gap: var(--space-2); }

  .scr-org .acct { inline-size: var(--tap); padding-inline: 0; }
  .scr-org .acct-name, .scr-org .acct .chev { display: none; }

  .scr-org .ctx--own-row { justify-content: flex-start; }

  .scr-org .ctx:not(.ctx--fixed):has(> .ctx-in) > .ctx-in { flex: 1 1 0; min-width: 0; }
  .scr-org .ctx:not(.ctx--fixed):has(> .ctx-in) > .ico:last-child { flex: none; align-self: center; }
  .scr-org .ctx-name { display: inline; overflow: visible; white-space: normal; text-overflow: clip; }
  .scr-org .menu { --menu-max: min(300px, calc(100cqi - 2 * var(--gutter))); }

  .scr-org .ctx-wrap.ctx--own-row > .menu { inset-inline: calc(16px - var(--wrap-pad)); }
  .scr-org .page-head { gap: var(--space-3); }
  .scr-org .page-acts, .scr-org .page-acts > * { inline-size: 100%; }
  .scr-org .figs { grid-template-columns: minmax(0, 1fr); }

  .scr-org .fig { border-inline-end: 0 !important; }
  .scr-org .fig:nth-child(2) { border-top: var(--hairline) solid var(--border); }
  .scr-org .btn-row > * { flex: 1 1 100%; }
  .scr-org .btn, .scr-org .btn--sm, .scr-org .rowbtn, .scr-org .nav-item, .scr-org .tab, .scr-org .link-btn, .scr-org .back { min-height: var(--tap); }

  .scr-org .kv-row { grid-template-columns: minmax(0, 1fr); }
  .scr-org .ctrl-row > * { flex: 1 1 100%; }

  .scr-org .codes { grid-template-columns: minmax(0, 1fr); }
  .scr-org .strip-acts, .scr-org .strip-acts > * { inline-size: 100%; }
  .scr-org .filebox > *, .scr-org .filebox .btn { inline-size: 100%; }
  .scr-org .cell-edit { inline-size: 100%; }
}
@container art (max-width: 359px) { .scr-org .lockup { inline-size: min(11.25rem, 60cqi); } }

@container art (min-width: 1024px) {
  .scr-org .cols-2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .scr-org .fields-2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .scr-org .field-span { grid-column: 1 / -1; }
}

@container art (min-width: 1100px) {
  .scr-org .cols-wide-left { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .scr-org .cols-wide-left > .col:last-child { position: sticky; top: var(--space-5); align-self: start; }
}

html.is-large-text .scr-org .layout { --nav-w: 260px; }
html.is-large-text .scr-org .wrap { --wrap-pad: var(--space-5); }

html.is-large-text .scr-org .nav-item { align-items: flex-start; }
html.is-large-text .scr-org .nav-item > span { overflow-wrap: anywhere; }
html.is-large-text .scr-org .nav-n { display: none; }
html.is-large-text .scr-org .topbar .wrap { flex-wrap: wrap; row-gap: var(--space-2); }

html.is-large-text .scr-org .ctx-code, html.is-large-text .scr-org .ctx-dot, html.is-large-text .scr-org .ctx-name { display: none; }

html.is-large-text .scr-org .ctx { flex: none; order: 0; inline-size: var(--tap); padding-inline: 0; justify-content: center; }
html.is-large-text .scr-org .ctx > .ico:last-child { display: none; }

html.is-large-text .scr-org .ctx:has(> .ctx-in):not(.ctx--fixed) {
  flex: 1 1 100%; order: 3; inline-size: auto;
  padding-inline: var(--space-3); justify-content: flex-start;
  border-radius: var(--radius-card); flex-wrap: wrap; row-gap: var(--space-1);
}
html.is-large-text .scr-org .ctx:has(> .ctx-in):not(.ctx--fixed) .ctx-name,
html.is-large-text .scr-org .ctx:has(> .ctx-in):not(.ctx--fixed) .ctx-code { display: inline; }
html.is-large-text .scr-org .ctx:has(> .ctx-in):not(.ctx--fixed) .ctx-name { overflow: visible; white-space: normal; text-overflow: clip; }
html.is-large-text .scr-org .ctx:has(> .ctx-in):not(.ctx--fixed) > .ico:last-child { display: inline-flex; }

html.is-large-text .scr-org .ctx-wrap:has(> .ctx > .ctx-in) { flex: 1 1 100%; order: 3; }
html.is-large-text .scr-org .ctx-wrap:has(> .ctx > .ctx-in) > .menu { inset-inline: 0; inline-size: auto; max-inline-size: none; max-block-size: min(70dvh, 36rem); overflow-y: auto; overscroll-behavior: contain; }

html.is-large-text .scr-org .ctx-wrap .menu-n, html.is-large-text .scr-org .ctx-wrap .menu-s { overflow-wrap: anywhere; }
html.is-large-text .scr-org .figs { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: minmax(0, 1fr); }
html.is-large-text .scr-org .fig { border-inline-start: 0; border-top: var(--hairline) solid var(--border); }
html.is-large-text .scr-org .fig:first-child { border-top: 0; }
html.is-large-text .scr-org .banner-wrap { flex-wrap: wrap; gap: var(--space-3); }
html.is-large-text .scr-org .banner-act, html.is-large-text .scr-org .banner-act .btn-primary { inline-size: 100%; }
html.is-large-text .scr-org .panel-body, html.is-large-text .scr-org .opt { padding: var(--space-3); }
html.is-large-text .scr-org .strip-acts, html.is-large-text .scr-org .strip-acts > * { inline-size: 100%; }
html.is-large-text .scr-org .shared-acts, html.is-large-text .scr-org .shared-acts > * { inline-size: 100%; }
html.is-large-text .scr-org .cell-edit { inline-size: 100%; }
html.is-large-text .scr-org .filebox > *, html.is-large-text .scr-org .filebox .btn { inline-size: 100%; }

@media print {
  .scr-org .topbar, .scr-org .nav, .scr-org .banner, .scr-org .standin, .scr-org .page-acts, .scr-org .panel-foot, .scr-org .filebox, .scr-org .strip-acts, .scr-org .shared-acts, .scr-org .btn-row { display: none !important; }
  .scr-org .layout { grid-template-columns: minmax(0, 1fr); }
  .scr-org .art { inline-size: 100%; block-size: auto; border: 0; overflow: visible; }
  .scr-org .app, .scr-org .body { display: block; height: auto; overflow: visible; }

}

.scr-org .dlg-headtext { min-width: 0; }
.scr-org .dlg-foot .perm { flex: 1 1 17rem; margin-top: 0; }

.scr-org .step { display: grid; gap: var(--space-3); padding: var(--space-4) 0 0; border-block-start: var(--hairline) solid var(--border); }
.scr-org .step-k { margin: 0; font-weight: var(--weight-announce); line-height: var(--lh-snug); }
.scr-org .step-p { margin: 0; color: var(--muted); font-size: var(--text-sm); line-height: var(--lh-snug); max-inline-size: var(--measure); text-wrap: pretty; }
.scr-org .step-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); }

.scr-org .dlg-done { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: var(--space-3); }
.scr-org .dlg-done > .ico { width: 1.75rem; height: 1.75rem; color: var(--success); }

.scr-org .dlg-layer--sheet {
  display: grid; padding: 0; place-items: stretch;
  grid-template-columns: minmax(0, 1fr) min(26rem, 100%);
}
.scr-org .dlg-layer--sheet > .dlg {
  grid-column: 2; inline-size: 100%; max-inline-size: none;
  block-size: 100%; max-block-size: none; margin: 0;
  border-radius: 0; border-inline-end: 0;
  animation: rise-in-scr-org var(--dur-enter) var(--ease-out);
}
@container art (max-width: 560px) {

  .scr-org .dlg-layer--sheet { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) fit-content(85%); }
  .scr-org .dlg-layer--sheet > .dlg {
    grid-column: 1; grid-row: 2; block-size: auto; max-block-size: 100%;
    border-radius: var(--radius-sheet) var(--radius-sheet) 0 0;
    border-inline-end: var(--hairline) solid var(--border-strong);
    animation: sheet-in var(--dur-enter) var(--ease-out);
  }
}
@media (prefers-reduced-motion: reduce) { .scr-org .dlg-layer--sheet > .dlg { animation: none; } }

.scr-org .dlg-layer--sheet .kv-v, .scr-org .dlg-layer--sheet .kv-v .sub { overflow-wrap: anywhere; }
.scr-org .dlg-layer--sheet .dlg-acts { max-inline-size: calc(100% + 2px); flex-wrap: wrap; }

.scr-org .dlg--noperm .dlg-foot { justify-content: flex-end; }

.scr-org .dlg--wrapacts .dlg-acts { max-inline-size: calc(100% + 2px); flex-wrap: wrap; }

.scr-org .seg { display: block; border: 0; padding: 0; margin: 0; min-width: 0; }
.scr-org .seg > legend { padding: 0 0 var(--space-2); font-weight: var(--weight-ui); line-height: var(--lh-snug); }

.scr-org .seg-row { display: flex; flex-wrap: wrap; gap: 0; padding: 0; border: var(--hairline) solid var(--border-strong); border-radius: var(--radius-control); background: var(--surface); overflow: hidden; }

.scr-org .seg-opt { flex: 1 1 10rem; }
.scr-org .seg-t {
  display: flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: var(--tap); padding: 0 var(--space-4); border-radius: 0;
  color: var(--muted); font-weight: var(--weight-ui); line-height: var(--lh-snug); text-align: center;
}

.scr-org .seg-opt:has(input:checked) { background: transparent; box-shadow: none; color: inherit; font-weight: inherit; }
.scr-org .seg-opt:not(:has(input:checked)):hover { background: transparent; }
.scr-org .seg-opt + .seg-opt { border-inline-start: var(--hairline) solid var(--border-strong); }
.scr-org .seg-opt input:checked + .seg-t { background: var(--bg); color: var(--brand); font-weight: var(--weight-announce); box-shadow: inset 0 -3px 0 var(--brand); }
.scr-org .seg-opt input:focus-visible + .seg-t { outline: 2px solid var(--focus); outline-offset: 2px; }
@media (hover: hover) { .scr-org .seg-opt input:not(:checked):hover + .seg-t { color: var(--fg); } }

.scr-org .seg-say { margin-top: var(--space-3); color: var(--muted); line-height: var(--lh-snug); max-inline-size: var(--measure); text-wrap: pretty; }

.scr-org .tmpl { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-4); padding: var(--space-4); border: var(--hairline) solid var(--border-strong); border-radius: var(--radius-control); background: var(--surface); }
.scr-org .tmpl-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-3); }
.scr-org .tmpl-in { flex: 1 1 16rem; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-1); }
.scr-org .tmpl-in > :where(*) { display: block; }
.scr-org .tmpl-k { font-size: var(--text-sm); color: var(--muted); }
.scr-org .tmpl-v { min-width: 0; font-weight: var(--weight-announce); line-height: var(--lh-snug); }
.scr-org .tmpl-acts { flex: none; display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); }

.scr-org .tlink { display: inline-flex; align-items: center; min-height: 44px; padding-inline: var(--space-2); margin-inline: calc(-1 * var(--space-2)); border-radius: var(--radius-control); color: var(--brand); font-weight: var(--weight-announce); }
.scr-org .tlink:active { background: var(--surface-sunk); }
@media (hover: hover) { .scr-org .tlink:hover { background: var(--brand-wash); } }
.scr-org a.btn, .scr-org a.btn:visited { color: var(--fg); text-decoration: none; }

.scr-org .refuse { display: flex; align-items: flex-start; gap: var(--space-4); }
.scr-org .refuse-glyph { flex: none; margin: 0; }
.scr-org .refuse-glyph .ico { inline-size: 2.25rem; block-size: 2.25rem; color: var(--muted); }
.scr-org .refuse-in { min-width: 0; display: grid; gap: var(--space-3); }
.scr-org .refuse-lead { margin: 0; max-inline-size: var(--measure); color: var(--fg); font-size: var(--text-md); line-height: var(--lh-snug); }
@container art (max-width: 599px) {
  .scr-org .refuse { gap: var(--space-3); }
  .scr-org .refuse-glyph .ico { inline-size: 1.75rem; block-size: 1.75rem; }
}

.scr-org .calc { display: grid; gap: 0; max-inline-size: 30rem; border-top: var(--hairline) solid var(--border); }
.scr-org .calc-row {
  display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-4);
  margin: 0; padding-block: var(--space-3);
  border-bottom: var(--hairline) solid var(--border);
}
.scr-org .calc-k { min-width: 0; color: var(--muted); }
.scr-org .calc-v { flex: none; font-variant-numeric: tabular-nums; font-weight: var(--weight-ui); }
.scr-org .calc-row--sum { border-top: var(--hairline) solid var(--border-strong); }
.scr-org .calc-row--sum .calc-k { color: var(--fg); font-weight: var(--weight-announce); }
.scr-org .calc-row--sum .calc-v { font-size: var(--figure); line-height: var(--lh-tight); font-weight: var(--weight-announce); }
.scr-org .calc-row--quiet { border-bottom: 0; }
.scr-org .calc-row--quiet .calc-k, .scr-org .calc-row--quiet .calc-v { color: var(--muted); font-size: var(--text-sm); font-weight: var(--weight-read); }

.scr-org .cols-list { display: flex; flex-wrap: wrap; gap: var(--space-2); padding-top: var(--space-3); border-top: var(--hairline) solid var(--border); }
.scr-org .cols-list > li { min-width: 0; }
.scr-org .colname { display: inline-flex; align-items: baseline; gap: var(--space-2); padding: var(--space-1) var(--space-2); border: var(--hairline) solid var(--border); border-radius: var(--radius-control); background: var(--bg); font-size: var(--text-sm); overflow-wrap: anywhere; }
.scr-org .colname-o { flex: none; color: var(--muted); }

.scr-org .drop > .ico { inline-size: 1.75rem; block-size: 1.75rem; margin-top: 0.1em; color: var(--brand); } 
.scr-org .drop-in { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-3); }
.scr-org .drop-t { font-weight: var(--weight-announce); line-height: var(--lh-snug); text-wrap: pretty; }
.scr-org .drop-f { inline-size: 100%; max-inline-size: 24rem; min-height: var(--tap); padding: var(--space-2) 0; font: inherit; color: var(--fg); }
.scr-org .drop-f:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: var(--radius-control); }
.scr-org .drop:has(.drop-f:focus-visible) { border-color: var(--brand); background: var(--brand-wash); }
.scr-org .drop-s { color: var(--muted); font-size: var(--text-sm); line-height: var(--lh-snug); max-inline-size: var(--measure); text-wrap: pretty; }

.scr-org .map-k { font-weight: var(--weight-ui); overflow-wrap: anywhere; }
.scr-org .map-sel { inline-size: 100%; max-inline-size: 15rem; }

.scr-org .probs { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); border: var(--hairline) solid var(--border); background: var(--bg); }
.scr-org .prob { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--space-3); padding: var(--space-4); border-top: var(--hairline) solid var(--border); }
.scr-org .prob:first-child { border-top: 0; }
.scr-org .prob > .ico { inline-size: 1.15rem; block-size: 1.15rem; margin-top: 0.3em; color: var(--warn); }
.scr-org .prob--stop > .ico { color: var(--danger); }
.scr-org .prob-in { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-1); }
.scr-org .prob-in > :where(*) { display: block; }
.scr-org .prob-row { font-size: var(--text-sm); font-weight: var(--weight-announce); color: var(--muted); font-variant-numeric: tabular-nums; }
.scr-org .prob-t { font-weight: var(--weight-ui); line-height: var(--lh-snug); max-inline-size: var(--measure); text-wrap: pretty; }
.scr-org .prob-fix { color: var(--muted); line-height: var(--lh-snug); max-inline-size: var(--measure); text-wrap: pretty; }

.scr-org .picks { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); border: var(--hairline) solid var(--border-strong); border-radius: 0; background: var(--bg); }

.scr-org .pick { display: grid; grid-template-columns: auto minmax(0, 1fr); padding: var(--space-4); border-block-start: var(--hairline) solid var(--border); }
.scr-org .pick:first-child { border-top: 0; }
.scr-org .pick:has(input:checked) { background: var(--surface-sunk); box-shadow: inset var(--edge) 0 0 var(--brand); }
.scr-org .pick:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: -2px; }
.scr-org .pick-in { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-1); }
.scr-org .pick-in > :where(*) { display: block; }
.scr-org .pick-n { font-weight: var(--weight-announce); line-height: var(--lh-snug); }
.scr-org .pick-s { color: var(--muted); font-size: var(--text-sm); line-height: var(--lh-snug); text-wrap: pretty; }
.scr-org .pick-count { color: var(--muted); font-size: var(--text-sm); line-height: var(--lh-snug); }

@container art (max-width: 1023px) {
  .scr-org .map-sel { max-inline-size: 100%; }
}
@container art (max-width: 599px) {
  .scr-org .seg-opt { flex: 1 1 100%; }
  .scr-org .seg-opt + .seg-opt { border-inline-start: 0; border-block-start: var(--hairline) solid var(--border-strong); }
  .scr-org .tmpl-acts, .scr-org .tmpl-acts > * { inline-size: 100%; }

  .scr-org .drop > .ico { display: none; }
  .scr-org .drop-f { max-inline-size: 100%; }
  .scr-org .prob { padding: var(--space-3); }
  .scr-org .pick { padding: var(--space-3); }
}
html.is-large-text .scr-org .seg-opt { flex: 1 1 100%; }
html.is-large-text .scr-org .seg-opt + .seg-opt { border-inline-start: 0; border-block-start: var(--hairline) solid var(--border-strong); }
html.is-large-text .scr-org .tmpl-acts, html.is-large-text .scr-org .tmpl-acts > * { inline-size: 100%; }
html.is-large-text .scr-org .drop { grid-template-columns: minmax(0, 1fr); }
html.is-large-text .scr-org .drop > .ico { display: none; }
html.is-large-text .scr-org .drop-f { max-inline-size: 100%; }
html.is-large-text .scr-org .map-sel { max-inline-size: 100%; }

@media print {
  .scr-org .drop, .scr-org .tmpl, .scr-org .seg, .scr-org .seg-say, .scr-org .picks { display: none !important; }
}

.scr-org .layout--gate { grid-template-columns: minmax(0, 1fr); }
.scr-org .gate { inline-size: 100%; max-inline-size: 46rem; margin-inline: auto; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-5); }

.scr-org .gate-lead { max-inline-size: var(--measure); font-size: var(--text-md); line-height: var(--lh-snug); text-wrap: pretty; }

.scr-org .page-title { margin-block: 0.83em; }
.scr-org .sec-title, .scr-org .panel-title { margin-block: 1em; }
.scr-org .hist-h { margin-block: 1.33em; }

.scr-org a.wordmark { display: block; position: relative; color: inherit; text-decoration: none; }

.scr-org a.wordmark::after { content: ""; position: absolute; inset-inline: 0; inset-block-start: 50%; translate: 0 -50%; block-size: var(--tap-min); }

.scr-org .sort, .scr-org .th-sort, .scr-org .nosort { min-block-size: var(--table-row-h, var(--tap-min)); }

.scr-org .hist-head [aria-sort] .th-sort .ico { opacity: 1; color: var(--brand); }

.scr-org .fig-d { display: block; white-space: nowrap; font-size: min(var(--figure), var(--text-xl)); }

@container art (max-width: 599px) {
  .scr-org .figs--2up { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .scr-org .figs--2up .fig { --figure: var(--text-md); padding-inline: var(--space-3); container-type: inline-size; }
  .scr-org .figs--2up .fig:nth-child(odd) { border-inline-end: var(--hairline) solid var(--border) !important; }
  .scr-org .figs--2up .fig:nth-child(2) { border-top: 0; }

  .scr-org .figs--2up .fig-d { font-size: min(var(--figure), calc(100cqi / 5.8)); }
}
@container art (max-width: 359px) {
  .scr-org .figs--2up { grid-template-columns: minmax(0, 1fr); }
  .scr-org .figs--2up .fig:nth-child(odd) { border-inline-end: 0 !important; }
  .scr-org .figs--2up .fig:nth-child(2) { border-top: var(--hairline) solid var(--border); }
}

.scr-org .t-acts { position: relative; }
.scr-org .tw:has(.menu--row) { overflow-x: visible; }

.scr-org .menu--row .menu-row:focus { outline: var(--focus-w) solid var(--focus); outline-offset: var(--focus-off); }

@container art (max-width: 599px) {
  .scr-org .body { padding-inline: 0; }
  .scr-org .wrap { --wrap-pad: var(--gutter); }
}

.scr-org .meta-f { display: inline-block; }

@container art (max-width: 599px) {
  html.is-large-text .scr-org .ctx--fixed {
    flex: 1 1 100%; inline-size: auto; order: 3;

    padding-inline: var(--space-3); justify-content: flex-start;
  }
}

@container art (max-width: 599px) {
  html.is-large-text .scr-org .tbl--stack tbody td,
  html.is-large-text .scr-org .tbl--stack tbody td * { overflow-wrap: anywhere; white-space: normal; }
}

@container art (max-width: 599px) {
  html.is-large-text .scr-org .dlg-layer:not(.dlg-layer--sheet) { padding: 0; }
  html.is-large-text .scr-org .dlg-layer:not(.dlg-layer--sheet) > .dlg { inline-size: 100%; max-inline-size: none; }
  html.is-large-text .scr-org .dlg-head,
  html.is-large-text .scr-org .dlg-body,
  html.is-large-text .scr-org .dlg-foot { padding-inline: var(--space-3); }
}

html.is-large-text .scr-org p .tlink { display: inline; padding: var(--space-1) 0; margin-inline: 0; }

.scr-org .dlg > .sheet-foot {
  margin-inline: 0;
  padding: var(--space-4) var(--space-5);
  justify-items: start;
}

.scr-org .dlg-acts { gap: var(--space-3); max-inline-size: calc(100% + 2px); flex-wrap: wrap; }

.scr-org .sec--off { padding-block-start: var(--space-5); border-block-start: var(--hairline) solid var(--border); }
.scr-org .off-act { margin: 0; }
.scr-org .link-btn--danger { color: var(--danger); }
@media (hover: hover) {
  .scr-org .link-btn--danger:hover, .scr-org .link-btn--danger.is-hover { background: var(--danger-wash); }
}

.scr-org .landing-notice { margin: 0; color: var(--fg); line-height: var(--lh-body); }

.scr-org .art > iframe.phone { display: block; inline-size: 100%; block-size: 100%; border: 0; }

/* signin-r16.html → .scr-signin */
.scr-signin .field-under { justify-self: start; }

.scr-signin .remembered {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-1) var(--space-3);
  margin: 0 0 var(--space-5); padding-bottom: var(--space-3);
  border-bottom: var(--hairline) solid var(--border);
}
.scr-signin .remembered-t { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-1); }
.scr-signin .remembered-l { display: block; color: var(--muted); font-size: var(--text-sm); font-weight: var(--weight-announce); letter-spacing: var(--track-ui); line-height: var(--lh-snug); }
.scr-signin .remembered-code { display: block; font-weight: var(--weight-ui); line-height: var(--lh-snug); overflow-wrap: anywhere; }

.scr-signin .remembered .link-btn { flex: none; margin-inline: calc(-1 * var(--space-2)); font-size: var(--text-sm); }

.scr-signin .pw-row { display: flex; align-items: stretch; gap: var(--space-2); }
.scr-signin .pw-row .inp { flex: 1 1 0; min-width: 0; }
.scr-signin .pw-tog {
  flex: none; min-height: var(--tap); min-width: var(--tap); padding: 0 var(--space-3);
  border: var(--hairline) solid var(--border-strong); border-radius: var(--radius-control);
  background: transparent; color: var(--brand); font-weight: var(--weight-announce); line-height: var(--lh-snug);
}
.scr-signin .pw-tog:active { background: var(--surface-sunk); }
@media (hover: hover) { .scr-signin .pw-tog:hover { background: var(--brand-wash); } }

.scr-signin .dock-alert {
  display: flex; align-items: flex-start; gap: var(--space-2);
  margin: 0 0 var(--space-3); color: var(--danger);
  font-size: var(--text-sm); font-weight: var(--weight-announce); line-height: var(--lh-snug); text-wrap: pretty;
}
.scr-signin .dock-alert .ico { flex: none; inline-size: var(--ico-sm); block-size: var(--ico-sm); margin-block-start: 0.1em; }

.scr-signin .dock--stack .dock-alert { margin-bottom: 0; }

.scr-signin .links { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: start; gap: var(--space-1); margin-top: var(--space-5); }
.scr-signin .links p { margin: var(--space-1) 0 0; color: var(--muted); font-size: var(--text-sm); line-height: var(--lh-snug); text-wrap: pretty; }

.scr-signin .seg[data-fit="2"], .scr-signin .seg[data-fit="2s"] { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.scr-signin .seg[data-fit="1"] { display: grid; grid-template-columns: minmax(0, 1fr); }
.scr-signin .seg[data-fit="2s"] .seg-opt { font-size: var(--text-sm); }

.scr-signin .sw-row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center;
  column-gap: var(--space-3); min-height: var(--tap);
  margin: var(--space-5) calc(-1 * var(--space-2)) 0; padding: var(--space-2);
  border-radius: var(--radius-control); cursor: pointer;
}
.scr-signin .sw-row:active { background: var(--surface-sunk); }
@media (hover: hover) { .scr-signin .sw-row:hover { background: var(--surface); } }
.scr-signin .sw-t { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-1); }
.scr-signin .sw-t > span { display: block; }
.scr-signin .sw-name { font-weight: var(--weight-ui); line-height: var(--lh-snug); }
.scr-signin .sw-sub { color: var(--muted); font-size: var(--text-sm); line-height: var(--lh-snug); text-wrap: pretty; }

.scr-signin .sample { margin-top: var(--space-5); padding: var(--space-4); border-radius: var(--radius-card); background: var(--surface); }
.scr-signin .sample-l { margin: 0 0 var(--space-3); color: var(--muted); font-size: var(--text-sm); font-weight: var(--weight-announce); letter-spacing: var(--track-ui); line-height: var(--lh-snug); }

.scr-signin .sample-in { font-size: calc(1em * var(--sample-scale, 1)); }
.scr-signin .sample-in .sample-do { margin: 0; font-size: calc(var(--text-md) * var(--sample-scale, 1)); font-weight: var(--weight-ui); line-height: var(--lh-snug); }

.scr-signin .sample-row { position: relative; margin: var(--space-3) 0 0; }
.scr-signin .sample-in .sample-math {
  margin: 0; font-size: calc(var(--math) * var(--sample-scale, 1)); line-height: 1.1;
  overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none;
}
.scr-signin .sample-in .sample-math::-webkit-scrollbar { display: none; }
.scr-signin .sample-in .sample-math .katex { font-size: 1em; }
.scr-signin .sample-row.is-slide .sample-math {
  -webkit-mask-image: linear-gradient(to right, #000 0, #000 calc(100% - var(--space-6)), transparent 100%);
          mask-image: linear-gradient(to right, #000 0, #000 calc(100% - var(--space-6)), transparent 100%);
}
.scr-signin .sample-row .sample-math:focus-visible { outline: var(--focus-w) solid var(--focus); outline-offset: var(--focus-off); }
.scr-signin .sample-slide { display: none; margin: var(--space-2) 0 0; color: var(--muted); font-size: var(--text-sm); line-height: var(--lh-snug); }
.scr-signin .sample-row.is-slide + .sample-slide { display: flex; align-items: flex-start; gap: var(--space-2); }
.scr-signin .sample-slide .ico { flex: none; inline-size: var(--ico-sm); block-size: var(--ico-sm); margin-block-start: 0.1em; }

.scr-signin .who { list-style: none; margin: 0; padding: 0; }
.scr-signin .who > li { padding: var(--space-4) 0; border-top: var(--hairline) solid var(--border); }
.scr-signin .who > li:first-child { border-top: 0; padding-top: 0; }
.scr-signin .who-line { margin: 0; color: var(--muted); line-height: var(--lh-snug); text-wrap: pretty; }
.scr-signin .who-who { color: var(--fg); font-weight: var(--weight-ui); }

.scr-signin .foot-link--row { display: flex; flex-wrap: wrap; align-items: center; column-gap: var(--space-3); }

.scr-signin .sheet-p { margin: var(--space-4) 0 0; max-inline-size: var(--measure); line-height: var(--lh-body); text-wrap: pretty; }

.scr-signin .ways { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-3); margin-top: var(--space-5); }
.scr-signin .ways .link-btn { justify-self: start; margin: 0; }

.scr-signin .seg--tabs .seg-opt {
  appearance: none; border: 0; margin: 0; background: transparent;
  color: var(--fg); font: inherit; font-weight: var(--weight-ui);
}
.scr-signin .seg--tabs .seg-opt[aria-selected="true"] {
  background: var(--bg); box-shadow: inset 0 0 0 var(--hairline) var(--brand);
  color: var(--brand); font-weight: var(--weight-announce);
}
.scr-signin .seg--tabs .seg-opt:not([aria-selected="true"]):hover { background: var(--bg); }
.scr-signin .seg--tabs .seg-opt:active { background: var(--surface-sunk); }
.scr-signin .seg--tabs .seg-opt:focus-visible { outline: var(--focus-w) solid var(--focus); outline-offset: var(--focus-off); }

.scr-signin .gbtn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  inline-size: 100%; min-block-size: var(--tap);
  padding-inline: 12px;
  background: #FFFFFF; border: 1px solid #747775; border-radius: var(--radius-control);
  color: #1F1F1F; font-family: var(--font-ui); font-weight: var(--weight-ui);
  line-height: var(--lh-snug); cursor: pointer;
}
.scr-signin .gbtn:focus-visible { outline: var(--focus-w) solid var(--focus); outline-offset: var(--focus-off); }

.scr-signin .gmark { flex: none; inline-size: 20px; block-size: 20px; }

.scr-signin .or-div { display: flex; align-items: center; gap: var(--space-3); color: var(--muted); font-size: var(--type-meta); }
.scr-signin .or-div::before, .scr-signin .or-div::after { content: ""; flex: 1 1 auto; border-block-start: var(--hairline) solid var(--border); }
.scr-signin .sso-block { display: grid; gap: var(--space-3); }

.scr-signin .cp-row { display: grid; gap: var(--space-1); padding-block: var(--space-2); border-block-start: var(--hairline) solid var(--border); }
.scr-signin .cp-row:first-of-type { border-block-start: 0; }
.scr-signin .cp-k { color: var(--muted); font-size: var(--type-meta); font-weight: var(--weight-announce); }
.scr-signin .cp-v { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-3); }

.scr-signin .cp-v .code-big { margin: 0; text-align: start; }

.scr-signin .cp-v .btn-quiet { inline-size: auto; }
.scr-signin .cp-said { color: var(--success); font-size: var(--type-meta); font-weight: var(--weight-announce); }
.scr-signin .cp-said .ico { inline-size: var(--ico-sm); block-size: var(--ico-sm); margin-inline-end: var(--space-1); }

.scr-signin .od-steps { margin: 0; padding-inline-start: var(--space-5); display: grid; gap: var(--space-2); line-height: var(--lh-body); }

.scr-signin .host-str { overflow-wrap: anywhere; }

.scr-signin [role="tabpanel"] { margin-inline: calc(-1 * var(--space-2)); padding-inline: var(--space-2); }
.scr-signin .art { position: relative; flex: none; width: var(--aw, 1280px); height: var(--ah, 800px);
  overflow: hidden; background: var(--bg); border: var(--hairline) solid var(--border-strong); }

.scr-signin .d-auth { display: grid; align-content: center; justify-items: center; min-block-size: 100%; padding: var(--space-7) var(--space-6); background: var(--surface-sunk); }
.scr-signin .d-authwrap { display: grid; justify-items: center; gap: var(--space-5); inline-size: 100%; max-inline-size: 560px; }
.scr-signin .d-authcard { inline-size: 100%; padding: var(--space-6);
  border: var(--hairline) solid var(--border); border-radius: var(--radius-card); background: var(--bg); }
.scr-signin .d-authform { max-inline-size: 480px; margin-inline: auto; }
.scr-signin .d-authfoot { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); margin-top: var(--space-5); }
.scr-signin .d-authfoot .btn-primary, .scr-signin .d-authfoot .btn-quiet { inline-size: auto; }
html.is-large-text .scr-signin .d-authform { max-inline-size: none; }

.scr-signin .menu-host { position: relative; min-block-size: var(--tap); }
.scr-signin .menu-host .menu { inset-block-start: var(--space-2); }

.scr-signin .opt-list { list-style: none; margin: 0; padding: 0; }
.scr-signin .opt-list > li + li { border-top: var(--hairline) solid var(--border); }
.scr-signin .opt {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; gap: var(--space-3);
  width: calc(100% + var(--space-4)); min-height: calc(var(--tap) + var(--space-2)); margin: 0 calc(-1 * var(--space-2)); padding: var(--space-3) var(--space-2);
  border: 0; border-radius: var(--radius-control); background: transparent; color: var(--fg); text-align: start; text-decoration: none;
}
.scr-signin .opt:active { background: var(--surface-sunk); }
@media (hover: hover) { .scr-signin .opt:hover { background: var(--surface); } }
.scr-signin .opt > .ico { margin-top: 0.15em; }
.scr-signin .opt > .ico:first-child { inline-size: var(--ico-xl); block-size: var(--ico-xl); color: var(--brand); }
.scr-signin .opt > .ico:last-child { inline-size: var(--ico-lg); block-size: var(--ico-lg); color: var(--muted); }
.scr-signin .opt--menu { align-items: center; min-height: var(--tap); }
.scr-signin .opt--menu > .ico { margin-top: 0; }
.scr-signin .opt--menu > .ico:first-child { inline-size: var(--ico-lg); block-size: var(--ico-lg); }
.scr-signin .opt-txt { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-1); }
.scr-signin .opt-name { display: block; font-weight: var(--weight-announce); line-height: var(--lh-snug); }
.scr-signin .opt-list > li.is-apart { margin-top: var(--space-4); padding-top: var(--space-2); }

.scr-signin .menu-only { display: grid; align-content: end; min-block-size: 100%; background: var(--surface-sunk); }
.scr-signin .menu-only-in { padding: var(--space-5) var(--gutter) var(--space-6); background: var(--bg); border-start-start-radius: var(--radius-card); border-start-end-radius: var(--radius-card); }

.scr-signin .tab-lead { margin: 0 0 var(--space-5); color: var(--muted); line-height: var(--lh-snug); text-wrap: pretty; max-inline-size: var(--measure); }

.scr-signin .seg--tabs { margin-block: var(--space-4) var(--space-3); }

.scr-signin .alt-panel { margin-block-start: var(--space-6); padding-block-start: var(--space-5); border-block-start: var(--hairline) dashed var(--border-strong);

  margin-inline: calc(-1 * var(--space-2)); padding-inline: var(--space-2); }
.scr-signin .alt-panel-k { margin: 0 0 var(--space-4); color: var(--muted); font-size: var(--type-meta); font-weight: var(--weight-announce); }

.scr-signin .state--warn > .ico { color: var(--warn); }
.scr-signin .state--notice > .ico { color: var(--info); }

.scr-signin html[data-text-size="large"]  { --reading-scale: 1.125; }
.scr-signin html[data-text-size="larger"] { --reading-scale: 1.25; }

html.is-large-text .scr-signin .pw-row { flex-wrap: wrap; }
html.is-large-text .scr-signin .pw-row .inp { flex: 1 1 100%; }
html.is-large-text .scr-signin .pw-tog { margin-left: auto; }
html.is-large-text .scr-signin .sample { padding-inline: var(--space-3); }

.scr-signin .picks { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-6); margin-block-start: var(--space-3); }
.scr-signin .pick-card { align-items: flex-start; padding: var(--space-4); }
.scr-signin .pick-card input { margin-block-start: 0.15em; }
.scr-signin .pick-card:has(input:checked) {
  border-width: var(--edge-strong);
  padding: calc(var(--space-4) - var(--hairline));
  box-shadow: none;
}

.scr-signin .pick-open { margin: var(--space-3) 0 0; }

.scr-signin .caught-t { display: grid; justify-items: start; gap: var(--space-3); min-width: 0; }

.scr-signin .landing-notice { margin: 0 0 var(--space-4); color: var(--text); }

/* settings-r9.html → .scr-settings */
.scr-settings .chrome--bare { block-size: calc(var(--space-5) + env(safe-area-inset-top, 0px)); }

.scr-settings .facts { list-style: none; margin: 0; padding: 0; }
.scr-settings .facts > li + li { border-top: var(--hairline) solid var(--border); }
.scr-settings .fact {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center;
  column-gap: var(--space-3); min-height: calc(var(--tap) + var(--space-2)); padding: var(--space-3) 0;
}
.scr-settings .fact-t { min-width: 0; display: grid; gap: var(--space-1); }
.scr-settings .fact-t > * { display: block; margin: 0; }
.scr-settings .fact-k { color: var(--muted); font-size: var(--text-sm); line-height: var(--lh-snug); }
.scr-settings .fact-v { font-weight: var(--weight-ui); line-height: var(--lh-snug); overflow-wrap: anywhere; }

.scr-settings .fact-s { color: var(--muted); font-size: var(--text-sm); line-height: var(--lh-snug); text-wrap: pretty; }

.scr-settings .fact .btn-spot { --btn-min-h: var(--tap); }

.scr-settings .mrows { list-style: none; margin: 0; padding: 0; }
.scr-settings .mrows > li + li { border-top: var(--hairline) solid var(--border); }

.scr-settings .facts + .mrows { border-top: var(--hairline) solid var(--border); }
.scr-settings .mrow {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; gap: var(--space-3);
  width: calc(100% + var(--space-4)); min-height: calc(var(--tap) + var(--space-2));
  margin: 0 calc(-1 * var(--space-2)); padding: var(--space-3) var(--space-2);
  border: 0; border-radius: var(--radius-sm); background: transparent; color: var(--fg);
  text-align: start; text-decoration: none;
}
.scr-settings .mrow > .ico { margin-top: 0.15em; }
.scr-settings .mrow > .ico:first-child { inline-size: var(--ico-lg); block-size: var(--ico-lg); color: var(--brand); }
.scr-settings .mrow > .ico:last-child { color: var(--muted); }
.scr-settings .mrow:active { background: var(--surface-sunk); }
@media (hover: hover) { .scr-settings .mrow:hover { background: var(--surface); } }

.scr-settings .mrow--one { align-items: center; min-height: var(--tap); }
.scr-settings .mrow--one > .ico { margin-top: 0; }

.scr-settings .mrow--act { grid-template-columns: auto minmax(0, 1fr); }
.scr-settings .mrow-t { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-1); }
.scr-settings .mrow-t > * { display: block; }
.scr-settings .mrow-n { font-weight: var(--weight-announce); line-height: var(--lh-snug); text-wrap: pretty; }
.scr-settings .mrow-s { color: var(--muted); font-size: var(--text-sm); font-weight: var(--weight-read); line-height: var(--lh-snug); text-wrap: pretty; }

.scr-settings .mrows > li.is-apart { margin-top: var(--space-4); padding-top: var(--space-2); border-top: var(--hairline) solid var(--border); }
.scr-settings .mrows > li.is-apart + li { border-top: 0; }
.scr-settings .apart { margin-top: var(--space-4); padding-top: var(--space-2); border-top: var(--hairline) solid var(--border); }

.scr-settings .link-btn--danger { color: var(--danger); font-weight: var(--weight-ui); }
.scr-settings .link-btn--quiet { color: var(--muted); font-weight: var(--weight-ui); }
@media (hover: hover) {
  .scr-settings .link-btn--danger:hover { background: var(--danger-wash); }
  .scr-settings .link-btn--quiet:hover { background: var(--surface); color: var(--brand); }
}

.scr-settings .card { padding: var(--space-4) var(--space-4) var(--space-2); border-radius: var(--radius-md); background: var(--surface); }
.scr-settings .card--flush { padding: var(--space-2) var(--space-4); }

.scr-settings .none {
  margin: 0; padding: var(--space-4); border-radius: var(--radius-md);
  background: var(--surface); color: var(--muted); line-height: var(--lh-snug); text-wrap: pretty;
}

.scr-settings .field-ok { display: flex; align-items: flex-start; gap: var(--space-2); margin: var(--space-1) 0 0; color: var(--success); font-size: var(--text-sm); line-height: var(--lh-snug); }
.scr-settings .field-ok .ico { flex: none; inline-size: var(--ico-sm); block-size: var(--ico-sm); margin-block-start: 0.1em; }

.scr-settings .seg[data-fit="2"], .scr-settings .seg[data-fit="2s"] { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.scr-settings .seg[data-fit="1"] { display: grid; grid-template-columns: minmax(0, 1fr); }
.scr-settings .seg[data-fit="2s"] .seg-opt { font-size: var(--text-sm); }

.scr-settings .sw-row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center;
  column-gap: var(--space-3); min-height: calc(var(--tap) + var(--space-2));
  margin: var(--space-5) calc(-1 * var(--space-2)) 0; padding: var(--space-2);
  border-radius: var(--radius-sm); cursor: pointer;
}
.scr-settings .sw-row:active { background: var(--surface-sunk); }
@media (hover: hover) { .scr-settings .sw-row:hover { background: var(--surface); } }
.scr-settings .sw-t { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-1); }
.scr-settings .sw-t > span { display: block; }
.scr-settings .sw-name { font-weight: var(--weight-ui); line-height: var(--lh-snug); }
.scr-settings .sw-sub { color: var(--muted); font-size: var(--text-sm); line-height: var(--lh-snug); text-wrap: pretty; }

.scr-settings .sw-state { color: var(--muted); font-size: var(--text-sm); font-weight: var(--weight-announce); }
.scr-settings .sw-row:has(input:checked) .sw-state { color: var(--brand); }

.scr-settings .sample { margin-top: var(--space-5); padding: var(--space-4); border-radius: var(--radius-md); background: var(--surface); }
.scr-settings .sample-l { margin: 0 0 var(--space-3); color: var(--muted); font-size: var(--text-sm); font-weight: var(--weight-announce); letter-spacing: var(--track-ui); line-height: var(--lh-snug); }

.scr-settings .sample-in { font-size: calc(1em * var(--sample-scale, 1)); }
.scr-settings .sample-in .sample-do { margin: 0; font-size: calc(var(--text-md) * var(--sample-scale, 1)); font-weight: var(--weight-ui); line-height: var(--lh-snug); }
.scr-settings .sample-row { position: relative; margin: var(--space-3) 0 0; }
.scr-settings .sample-in .sample-math {
  margin: 0; font-size: calc(var(--math) * var(--sample-scale, 1)); line-height: 1.1;
  overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none;
}
.scr-settings .sample-in .sample-math::-webkit-scrollbar { display: none; }
.scr-settings .sample-in .sample-math .katex { font-size: 1em; }
.scr-settings .sample-row.is-slide .sample-math {
  -webkit-mask-image: linear-gradient(to right, var(--fg) 0, var(--fg) calc(100% - var(--space-6)), transparent 100%);
          mask-image: linear-gradient(to right, var(--fg) 0, var(--fg) calc(100% - var(--space-6)), transparent 100%);
}
.scr-settings .sample-row .sample-math:focus-visible { outline: var(--focus-w) solid var(--focus); outline-offset: var(--focus-off); }
.scr-settings .sample-slide { display: none; margin: var(--space-2) 0 0; color: var(--muted); font-size: var(--text-sm); line-height: var(--lh-snug); }
.scr-settings .sample-row.is-slide + .sample-slide { display: flex; align-items: flex-start; gap: var(--space-2); }
.scr-settings .sample-slide .ico { flex: none; inline-size: var(--ico-sm); block-size: var(--ico-sm); margin-block-start: 0.1em; }

.scr-settings .sheet--settings .sheet-scroll { margin-inline: calc(-1 * var(--gutter)); padding: var(--space-4) var(--gutter) var(--space-3); }

.scr-settings .sheet--menu .sheet-scroll { padding-top: var(--space-3); }

.scr-settings .install {
  display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start;
  gap: var(--space-2) var(--space-4); margin-top: var(--space-5);
  padding: var(--space-4); border-radius: var(--radius-md); background: var(--surface);
}
.scr-settings .install-ico { grid-row: 1 / span 2; inline-size: var(--space-7); block-size: var(--space-7); border-radius: var(--radius-md); }
.scr-settings .install-t { margin: 0; font-family: var(--font-display); font-size: var(--text-md); font-weight: var(--weight-announce); line-height: var(--lh-tight); letter-spacing: var(--track-head); text-wrap: pretty; }
.scr-settings .install-p { margin: var(--space-1) 0 0; color: var(--muted); font-size: var(--text-sm); line-height: var(--lh-snug); text-wrap: pretty; }
.scr-settings .install-acts { grid-column: 2; display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-3); }
.scr-settings .install-acts .link-btn { margin: 0; }
@container screen (max-width: 300px) {
  .scr-settings .install { grid-template-columns: minmax(0, 1fr); }
  .scr-settings .install-ico { grid-row: auto; }
  .scr-settings .install-acts { grid-column: 1; }
}

.scr-settings .steps { list-style: none; counter-reset: step; margin: var(--space-2) 0 0; padding: 0; }
.scr-settings .steps > li {
  display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start;
  gap: var(--space-3); padding: var(--space-3) 0;
}
.scr-settings .steps > li + li { border-top: var(--hairline) solid var(--border); }
.scr-settings .step-n {
  counter-increment: step; display: grid; place-items: center; inline-size: var(--space-6); block-size: var(--space-6);
  border-radius: var(--radius-pill); background: var(--brand-wash); color: var(--brand);
  font-size: var(--text-sm); font-weight: var(--weight-announce); font-variant-numeric: tabular-nums;
}
.scr-settings .step-n::before { content: counter(step); }
.scr-settings .step-t { min-width: 0; line-height: var(--lh-snug); text-wrap: pretty; }
.scr-settings .step-t .ico { display: inline-block; inline-size: var(--ico-em); block-size: var(--ico-em); vertical-align: -0.17em; color: var(--brand); }
.scr-settings .step-t b { font-weight: var(--weight-announce); }

.scr-settings .step-t .ico.step-gap { margin-inline-start: 0.2em; }

.scr-settings .notify {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-3);
  padding: var(--space-3) var(--gutter); border-top: var(--hairline) solid var(--border); background: var(--surface);
}
.scr-settings .notify > .ico { flex: none; color: var(--brand); }
.scr-settings .notify-t { flex: 1 1 12ch; min-width: 0; margin: 0; line-height: var(--lh-snug); text-wrap: pretty; }

.scr-settings .unit-dates { margin: 0; color: var(--muted); font-size: var(--text-sm); line-height: var(--lh-snug); }
.scr-settings .unit-dates .meta { white-space: nowrap; }
.scr-settings .unit-dates .meta + .meta::before { content: "\00b7"; margin-inline: 0.45em; }
html.is-large-text .scr-settings .unit-dates .meta { display: block; white-space: normal; }
html.is-large-text .scr-settings .unit-dates .meta + .meta::before { content: none; }
.scr-settings .ws-list { list-style: none; margin: 0; padding: 0; }
.scr-settings .ws-list > li + li { border-top: var(--hairline) solid var(--border); }
.scr-settings .ws {
  display: flex; align-items: center; gap: var(--space-3);
  width: calc(100% + var(--space-4)); min-height: calc(var(--tap) + var(--space-2));
  margin: 0 calc(-1 * var(--space-2)); padding: var(--space-3) var(--space-2);
  border: 0; border-radius: var(--radius-sm); background: transparent; color: var(--fg);
  text-align: start; text-decoration: none;
}
.scr-settings .ws:active { background: var(--bg); }
@media (hover: hover) { .scr-settings .ws:hover { background: var(--bg); } }
.scr-settings .ws-txt { flex: 1 1 0; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-2); }
.scr-settings .ws-name { display: block; font-weight: var(--weight-ui); line-height: var(--lh-snug); overflow-wrap: anywhere; }
.scr-settings .ws-state { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-1) var(--space-2); font-size: var(--text-sm); line-height: var(--lh-snug); }
.scr-settings .ws-done { font-weight: var(--weight-ui); }
.scr-settings .ws-when { color: var(--muted); }
.scr-settings .ws-state--all { align-items: center; color: var(--success); font-weight: var(--weight-announce); }
.scr-settings .ws-state--all .ico { inline-size: var(--ico-sm); block-size: var(--ico-sm); }
.scr-settings .ws-state--all .ws-when { font-weight: var(--weight-read); }
.scr-settings .ws > .ico { color: var(--muted); }

.scr-settings .ws-txt > .progress, .scr-settings .wsh > .progress { display: block; inline-size: 100%; border-radius: var(--radius-pill); }
.scr-settings .wsh > .progress { margin-top: var(--space-4); }

.scr-settings .wsh { margin: 0 0 var(--space-5); }
.scr-settings .wsh-meta { margin: 0; color: var(--muted); font-size: var(--text-sm); line-height: var(--lh-snug); }
.scr-settings .wsh-prog { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-1) var(--space-2); margin: var(--space-2) 0 0; font-size: var(--text-sm); font-weight: var(--weight-ui); line-height: var(--lh-snug); }
.scr-settings .plist { list-style: none; margin: 0; padding: 0; }
.scr-settings .plist > li + li { border-top: var(--hairline) solid var(--border); }

.scr-settings .prow {
  position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr);
  align-items: start; column-gap: var(--space-3);
  width: calc(100% + 2 * var(--gutter)); margin-inline: calc(-1 * var(--gutter));
  padding: var(--space-3) var(--gutter);
}
.scr-settings .prow:has(.prow-go:active) { background: var(--surface-sunk); }
@media (hover: hover) { .scr-settings .prow:has(.prow-go:hover) { background: var(--surface); } }
.scr-settings .prow:has(.prow-go:focus-visible) { outline: var(--focus-w) solid var(--focus); outline-offset: calc(-1 * var(--focus-off)); }

.scr-settings .prow-go {
  grid-column: 1; grid-row: 1;
  display: flex; align-items: center; justify-content: center; flex: none;
  inline-size: var(--space-6); min-block-size: var(--tap);
  padding: 0; border: 0; background: transparent; color: var(--brand);
  font-family: var(--font-display); font-size: var(--text-md); font-weight: var(--weight-announce);
  line-height: var(--lh-snug);
}
.scr-settings .prow-go:focus-visible { outline: none; }
.scr-settings .prow-go::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.scr-settings .prow-math { grid-column: 2; grid-row: 1; min-width: 0; }
.scr-settings .pstates { grid-column: 2; grid-row: 2; display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); margin: var(--space-2) 0 0; }
.scr-settings .pstate { display: inline-flex; align-items: center; gap: var(--space-1); padding: calc(var(--space-1) / 2) var(--space-2); border-radius: var(--radius-pill); font-size: var(--text-sm); font-weight: var(--weight-ui); line-height: var(--lh-snug); }
.scr-settings .pstate .ico { inline-size: var(--ico-sm); block-size: var(--ico-sm); }
.scr-settings .pstate--practiced { background: var(--surface); color: var(--muted); }
.scr-settings .pstate--checked { background: var(--success-wash); color: var(--success); }

.scr-settings .prow .cue { position: relative; z-index: 2; }
.scr-settings .prow .cue-l { z-index: 3; }
.scr-settings .prow .mfit.is-over .mfit-line { position: relative; z-index: 2; }

.scr-settings .prow-math { --cue-out-r: var(--space-2); }

.scr-settings .greet { margin: 0 0 var(--space-5); }
.scr-settings .greet-hi { margin: 0; font-family: var(--font-display); font-size: var(--text-lg); font-weight: var(--weight-announce); line-height: var(--lh-tight); letter-spacing: var(--track-head); }
.scr-settings .greet-hi:focus { outline: none; }
.scr-settings .greet-hi:focus-visible { outline: var(--focus-w) solid var(--focus); outline-offset: var(--focus-off); }
.scr-settings .greet-day { margin: var(--space-1) 0 0; color: var(--muted); font-size: var(--text-sm); line-height: var(--lh-snug); }
.scr-settings .resume {
  display: flex; align-items: center; gap: var(--space-3);
  width: 100%; margin: 0; padding: var(--space-4) var(--space-4) var(--space-4) var(--space-5);
  border: 0; border-radius: var(--radius-md); background: var(--brand); color: var(--bg);
  text-align: start; text-decoration: none; transition: transform var(--dur-exit) var(--ease-out);
}
.scr-settings .resume:active { transform: translateY(var(--press-drop)); background: color-mix(in srgb, var(--brand) 88%, var(--fg)); }
@media (hover: hover) { .scr-settings .resume:hover { background: color-mix(in srgb, var(--brand) 92%, var(--fg)); } }
.scr-settings .resume-txt { flex: 1 1 0; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-1); }
.scr-settings .resume-eyebrow { display: block; color: var(--brand-wash); font-size: var(--text-sm); font-weight: var(--weight-announce); line-height: var(--lh-snug); }
.scr-settings .resume-name { display: block; margin-top: var(--space-1); font-family: var(--font-display); font-size: var(--text-md); font-weight: var(--weight-announce); line-height: var(--lh-tight); letter-spacing: var(--track-head); text-wrap: pretty; overflow-wrap: anywhere; }
.scr-settings .resume-next { display: block; font-weight: var(--weight-ui); line-height: var(--lh-snug); }
.scr-settings .resume-sub { color: var(--brand-wash); font-weight: var(--weight-read); font-size: var(--text-sm); }
.scr-settings .resume > .ico { color: var(--brand-wash); }
.scr-settings .course { margin-top: var(--space-6); }
.scr-settings .course-h {
  margin: 0; padding-bottom: var(--space-2); border-bottom: var(--hairline) solid var(--border);
  font-family: var(--font-display); font-size: var(--text-md); font-weight: var(--weight-announce);
  line-height: var(--lh-tight); letter-spacing: var(--track-head);
}
.scr-settings .course > .sec:first-of-type { margin-top: var(--space-5); }
.scr-settings .unit-row {
  display: flex; align-items: center; gap: var(--space-3);
  width: calc(100% + var(--space-4)); min-height: var(--tap); margin: 0 calc(-1 * var(--space-2));
  padding: var(--space-2); border: 0; border-radius: var(--radius-sm);
  background: transparent; color: var(--fg); text-align: start; text-decoration: none;
}
.scr-settings .card > .unit-row:first-child { margin-top: calc(-1 * var(--space-2)); }
.scr-settings .unit-row:active { background: var(--surface-sunk); }
@media (hover: hover) { .scr-settings .unit-row:hover { background: var(--surface-sunk); } }
.scr-settings .unit-txt { flex: 1 1 0; min-width: 0; }
.scr-settings .unit-t { display: block; font-family: var(--font-display); font-size: var(--text-md); font-weight: var(--weight-announce); line-height: var(--lh-tight); letter-spacing: var(--track-head); overflow-wrap: anywhere; }
.scr-settings .unit-d { display: block; margin-top: var(--space-1); color: var(--muted); font-size: var(--text-sm); line-height: var(--lh-snug); }
.scr-settings .unit-row .ico { color: var(--muted); }

html.is-large-text .scr-settings .notify { --gutter: var(--space-5); }
html.is-large-text .scr-settings .card { padding-inline: var(--space-3); }
html.is-large-text .scr-settings .sample { padding-inline: var(--space-4); }
html.is-large-text .scr-settings .fact { grid-template-columns: minmax(0, 1fr); row-gap: var(--space-3); justify-items: start; }
html.is-large-text .scr-settings .fact .btn-spot { inline-size: 100%; }
html.is-large-text .scr-settings .mrow { grid-template-columns: auto minmax(0, 1fr); row-gap: var(--space-1); }
html.is-large-text .scr-settings .mrow > .ico:last-child { display: none; }
html.is-large-text .scr-settings .mrow-t { grid-column: 2; }
html.is-large-text .scr-settings .sw-row { grid-template-columns: minmax(0, 1fr) auto; row-gap: var(--space-3); }
html.is-large-text .scr-settings .sw-t { grid-column: 1 / -1; }
html.is-large-text .scr-settings .notify .btn-spot, html.is-large-text .scr-settings .install-acts .btn-spot { inline-size: 100%; }
html.is-large-text .scr-settings .resume { padding-inline: var(--space-4); align-items: flex-start; }
html.is-large-text .scr-settings .resume > .ico { margin-top: var(--space-1); }

/* study-session-r8.html → .scr-session */
.scr-session .place { margin: 0; color: var(--brand); font-size: var(--text-sm); font-weight: var(--weight-announce); line-height: var(--lh-snug); }
.scr-session .place--bar { padding: var(--space-2) var(--gutter) 0; }

.scr-session .sect { margin-block-start: var(--space-6); padding-block-start: var(--space-5); border-block-start: var(--hairline) solid var(--border); }
.scr-session .prob { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-1); }

.scr-session .answer, .scr-session .cur { display: grid; grid-template-columns: minmax(0, 1fr); }

.scr-session .prob > .ac-label:first-child, .scr-session .answer > .ac-label:first-child, .scr-session .cur > .ac-label:first-child { margin-block-start: 0; }
.scr-session .ask { margin: var(--space-3) 0 0; color: var(--muted); line-height: var(--lh-snug); text-wrap: pretty; }

.scr-session .linkrow { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: start; margin-block-start: var(--space-5); }

.scr-session .prob, .scr-session .answer, .scr-session .cur, .scr-session .res-m { --cue-out-l: var(--space-4); --cue-out-r: var(--space-4); }

.scr-session .prob-ask {
  margin: 0 0 var(--space-1);
  color: var(--fg);
  font-size: var(--text-base);
  line-height: var(--lh-body);
  text-wrap: pretty;
  min-inline-size: 0;
}
.scr-session .prob-ask--quiet { margin: 0; color: var(--muted); font-size: var(--text-sm); line-height: var(--lh-snug); }

.scr-session .cur-head { display: flex; align-items: center; gap: var(--space-3); margin-block-end: var(--space-2); }
.scr-session .cur-n {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  inline-size: var(--space-6); block-size: var(--space-6); border-radius: var(--radius-pill);
  background: var(--brand); color: var(--bg);
  font-family: var(--font-ui); font-size: var(--text-md); font-weight: var(--weight-announce); line-height: 1; font-variant-numeric: tabular-nums; }
.scr-session .cur-do { margin: 0; font-size: var(--text-md); font-weight: var(--weight-ui); line-height: var(--lh-snug); text-wrap: pretty; }
.scr-session .cur-do:focus { outline: none; }
.scr-session .cur-do:focus-visible { outline: var(--focus-w) solid var(--focus); outline-offset: var(--focus-off); }
.scr-session .cur-why {
  margin: var(--space-4) 0 0; padding: var(--space-3) 0 0;
  line-height: var(--lh-snug); text-wrap: pretty; border-block-start: var(--hairline) solid var(--border); }
.scr-session .cur-why p { margin: 0; }

.scr-session .sum { margin: 0; padding: var(--space-5) var(--space-4); border-radius: var(--radius-card); background: var(--surface); }
.scr-session .sum-h {
  margin: 0; font-family: var(--font-display); font-size: var(--text-md); font-weight: var(--weight-announce);
  line-height: var(--lh-snug); letter-spacing: var(--track-head); text-wrap: pretty;
}
.scr-session .sum-h:focus { outline: none; }
.scr-session .sum-h:focus-visible { outline: var(--focus-w) solid var(--focus); outline-offset: var(--focus-off); }
.scr-session .sum-list { list-style: none; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-2); margin: var(--space-4) 0 0; padding: 0; }
.scr-session .sum-list > li { display: flex; align-items: flex-start; gap: var(--space-2); min-width: 0; line-height: var(--lh-snug); }
.scr-session .sum-list .ico { inline-size: var(--ico-md); block-size: var(--ico-md); margin-block-start: 0.15em; }

.scr-session .res-list { list-style: none; display: grid; grid-template-columns: minmax(0, 1fr); margin: var(--space-5) 0 0; padding: 0; }
.scr-session .res-list > li + li { border-block-start: var(--hairline) solid var(--border); }
.scr-session .res-row {
  display: grid; grid-template-columns: var(--space-6) minmax(0, 1fr); align-items: start;
  column-gap: var(--space-2); min-width: 0; padding: var(--space-2) 0;
}

.scr-session .res-n {
  padding-block-start: var(--space-2); color: var(--muted); font-variant-numeric: tabular-nums;
  font-size: var(--text-sm); font-weight: var(--weight-announce); line-height: var(--lh-snug); text-align: end;
}
.scr-session .res-in { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-1); }
.scr-session .res-m { min-width: 0; }
.scr-session .res-m .mfit-line { font-size: var(--text-md); }

.scr-session .out { display: inline-flex; align-items: flex-start; gap: var(--space-2); min-width: 0; font-size: var(--text-sm); font-weight: var(--weight-ui); line-height: var(--lh-snug); }
.scr-session .out .ico { inline-size: var(--ico-sm); block-size: var(--ico-sm); margin-block-start: 0.1em; }
.scr-session .out > span { min-width: 0; }
.scr-session .out--first { color: var(--success); }
.scr-session .out--again { color: var(--muted); }
.scr-session .out--look  { color: var(--warn); }
.scr-session .out--skip  { color: var(--muted); }

html.is-large-text .scr-session .res-row { grid-template-columns: minmax(0, 1fr); row-gap: var(--space-1); }
html.is-large-text .scr-session .res-n { padding-block-start: 0; text-align: start; }
html.is-large-text .scr-session .sum { padding-inline: var(--space-3); }

.scr-session .ac-label { margin: var(--space-4) 0 0; color: var(--muted); font-size: var(--text-sm); font-weight: var(--weight-announce); line-height: var(--lh-snug); }

.scr-session .ac-rows { list-style: none; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-2); margin: var(--space-4) 0 0; padding: 0; }
.scr-session .ac-row { display: flex; align-items: center; gap: var(--space-3); min-width: 0; }
.scr-session .ac-x { flex: none; min-inline-size: 2.1em; color: var(--fg); font-family: var(--font-math); font-size: var(--math); line-height: 1; white-space: nowrap; }
.scr-session .ac-x .katex { font-size: 1em; color: inherit; }
.scr-session .ac-field {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  min-block-size: var(--tap);
  display: flex;
  align-items: center;
  padding: var(--space-1) var(--space-3);
  background: var(--bg);
  border: var(--hairline) solid var(--border-strong);
  border-radius: var(--radius-control);
  overflow-x: auto;
  scrollbar-width: none;
  cursor: text;
}
.scr-session .ac-field::-webkit-scrollbar { display: none; }
.scr-session .ac-field.is-active { border-color: var(--brand); }
.scr-session .ac-field:focus-within { outline: var(--focus-w) solid var(--focus); outline-offset: var(--focus-off); }

.scr-session .ac-input { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; margin: 0; padding: 0; background: transparent; border: 0; caret-color: transparent; color: transparent; cursor: text; opacity: 0; }
.scr-session .ac-show { display: inline-flex; align-items: center; white-space: nowrap; pointer-events: none; }

.scr-session .ac-prev { color: var(--fg); font-family: var(--font-math); font-size: var(--math); line-height: 1.2; white-space: nowrap; }
.scr-session .ac-prev .katex { font-size: 1em; color: var(--fg); }
.scr-session .ac-ph { color: var(--muted); }
.scr-session .ac-caret { display: none; inline-size: var(--hairline); block-size: 1.2em; margin-inline-start: var(--hairline); background: var(--fg); }
.scr-session .ac-field:focus-within .ac-caret { display: inline-block; }

@media (prefers-reduced-motion: no-preference) {
  .scr-session .ac-field:focus-within .ac-caret { animation: ac-blink-scr-session 1s steps(1) infinite; }
}
@keyframes ac-blink-scr-session { 50% { opacity: 0; } }
.scr-session .ac-del { color: var(--muted); }
.scr-session .ac-add { margin-block-start: var(--space-2); }
.scr-session .ac-plus { font-size: var(--text-md); line-height: 1; }
.scr-session .ac-add:disabled { color: var(--muted); }
.scr-session .ac-none { margin-block-start: var(--space-1); }

.scr-session .ac-err { display: flex; align-items: flex-start; gap: var(--space-2); margin: var(--space-2) 0 0; color: var(--fg); font-size: var(--text-sm); line-height: var(--lh-snug); }
.scr-session .ac-err .ico { flex: none; inline-size: var(--ico-sm); block-size: var(--ico-sm); margin-block-start: 0.1em; color: var(--warn); }

.scr-session .ac-rows.is-off .ac-field { background: var(--surface); border-color: var(--border); cursor: default; }
.scr-session .ac-rows.is-off .ac-input { cursor: default; }
.scr-session .ac-rows.is-off .ac-x { color: var(--muted); }

.scr-session .ac-foot {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-2);
  padding: var(--space-3) var(--gutter) var(--space-3);
  background: var(--bg); border-block-start: var(--hairline) solid var(--border);
}
.scr-session .ac-foot .ac-left { margin: 0; }
.scr-session .ac-left { margin: var(--space-2) 0 0; color: var(--muted); font-size: var(--text-sm); line-height: var(--lh-snug); text-align: center; }

.scr-session .ac-left--here { margin-block-start: var(--space-3); text-align: start; }
.scr-session .ac-keypad {
  flex: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-2);

  margin: 0;
  padding: var(--space-3) var(--gutter) calc(var(--space-4) + env(safe-area-inset-bottom, 0px));
  background: var(--bg);
  border-block-start: var(--hairline) solid var(--border);
}
.scr-session .ac-key {
  display: flex;
  align-items: center;
  justify-content: center;

  min-inline-size: var(--tap-min);
  min-block-size: max(var(--tap-min), var(--tap));
  padding: var(--space-1);
  background: var(--surface);
  border: 0;
  border-radius: var(--radius-control);
  color: var(--fg);
  font-size: var(--text-md);
  font-weight: var(--weight-ui);
  line-height: 1;
}
.scr-session .ac-key .katex { font-size: 1em; color: var(--fg); }
.scr-session .ac-key:hover, .scr-session .ac-key:active { background: var(--surface-sunk); }
.scr-session .ac-key:disabled { background: var(--surface); color: var(--border-strong); cursor: default; }

.scr-session .ac-entries { list-style: none; display: grid; gap: var(--space-2); margin: var(--space-2) 0 0; padding: 0; }
.scr-session .ac-entry { display: flex; align-items: center; gap: var(--space-3); min-block-size: var(--space-6); }
.scr-session .ac-entry--none { font-weight: var(--weight-ui); }

.scr-session .ac-result { display: block; margin-block-start: var(--space-5); padding: var(--space-3) var(--space-4); border-radius: var(--radius-control); color: var(--fg); }
.scr-session .ac-result:focus { outline: none; }
.scr-session .ac-result:focus-visible { outline: var(--focus-w) solid var(--focus); outline-offset: var(--focus-off); }
.scr-session .ac-result p { margin: 0; text-wrap: pretty; }
.scr-session .ac-result-txt { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-1); }
.scr-session .ac-result-h { font-size: var(--text-md); font-weight: var(--weight-announce); line-height: var(--lh-snug); }
.scr-session .ac-result-h .ico { display: inline-block; inline-size: var(--ico-lg); block-size: var(--ico-lg); margin-inline-end: var(--space-2); vertical-align: -0.18em; }
.scr-session .ac-result--success { background: var(--success-wash); }
.scr-session .ac-result--success .ico { color: var(--success); }
.scr-session .ac-result--warn { background: var(--warn-wash); }
.scr-session .ac-result--warn .ico { color: var(--warn); }
.scr-session .ac-result--info { background: var(--info-wash); }
.scr-session .ac-result--info .ico { color: var(--info); }

html.is-large-text .scr-session .ac-rows--1 .ac-row { flex-wrap: wrap; row-gap: var(--space-2); }
html.is-large-text .scr-session .ac-rows--1 .ac-x { flex: 1 1 auto; }
html.is-large-text .scr-session .ac-rows--1 .ac-field { flex: 1 1 100%; order: 1; }
html.is-large-text .scr-session .ac-rows--1 .ac-del { order: 0; margin-inline-start: auto; }

html.is-large-text .scr-session .btn-spot { white-space: normal; }

.scr-session .app.is-short:has(.ac-foot) { display: flex; flex-direction: column; overflow-y: auto; overscroll-behavior: contain; }
.scr-session .app.is-short:has(.ac-foot) > * { flex: none; }
.scr-session .app.is-short:has(.ac-foot) > .chrome { position: sticky; inset-block-start: 0; z-index: 6; }
.scr-session .app.is-short:has(.ac-foot) > .body { overflow: visible; min-block-size: 0; padding-block-end: var(--space-5); }
.scr-session .app.is-short:has(.ac-foot) > .ac-keypad { order: 1; padding-block-end: var(--space-3); }
.scr-session .app.is-short:has(.ac-foot) > .ac-foot {
  order: 2; position: sticky; inset-block-end: 0; z-index: 5;
  padding-block-end: calc(var(--space-3) + env(safe-area-inset-bottom, 0px));
}

html.is-large-text .scr-session .ac-keypad { gap: var(--space-1); padding-block-start: var(--space-2); }

/* teacher-r46.html → .scr-teacher */
.scr-teacher html[data-text-size="large"]  { --reading-scale: 1.125; }
.scr-teacher html[data-text-size="larger"] { --reading-scale: 1.25; }
.scr-teacher html[data-dyslexia="on"] { --font-ui: var(--font-dyslexic); --lh-body: 1.75; }
.scr-teacher .desk, .scr-teacher .tablet { position: relative; overflow: hidden; background: var(--bg); border: var(--hairline) solid var(--border-strong); }

.scr-teacher .tablet { width: 820px; height: 1100px; flex: none; }
.scr-teacher .desk  { width: 1280px; height: 860px; flex: none; }

.scr-teacher .desk, .scr-teacher .tablet { container-type: inline-size; container-name: board; }
@media (max-width: 440px) {
  .scr-teacher .desk, .scr-teacher .tablet { width: 100%; border-inline: 0; }
}

.scr-teacher .app.is-under .btn-primary {
  background: transparent; color: var(--brand); box-shadow: none;
  border: var(--hairline) solid var(--border-strong);
}
.scr-teacher .app.is-under .btn-primary:active { transform: none; background: var(--surface-sunk); }

.scr-teacher a.lib-main, .scr-teacher a.route { color: var(--fg); text-decoration: none; }

.scr-teacher .body-main { padding: var(--space-6) 0 var(--space-8); }

@container screen (max-width: 1151px) {
  .scr-teacher .cols { --cols-split: minmax(0, 1fr); gap: var(--space-6); }
}

@container screen (min-width: 1152px) {
  .scr-teacher .cols--sticky > .col:last-child { position: sticky; top: var(--space-5); align-self: start; }
}

.scr-teacher .ctx-org { color: var(--muted); font-weight: var(--weight-read); }
.scr-teacher .ctx-wrap > .ctx { width: 100%; }

.scr-teacher .menu-row--two { align-items: start; padding-block: var(--space-3); }
.scr-teacher .menu-row--two .ico { margin-top: 0.15em; }

.scr-teacher .head-txt { min-width: 0; flex: 1 1 22rem; }

.scr-teacher .head-act { flex: 0 1 auto; min-width: 0; display: flex; flex-wrap: wrap; gap: var(--space-3); }

.scr-teacher .sec-p { margin: 0 0 var(--space-4); line-height: var(--lh-body); max-width: var(--measure); text-wrap: pretty; }
.scr-teacher .sec-p + .sec-p { margin-top: calc(-1 * var(--space-2)); }
.scr-teacher .sec-p b, .scr-teacher .sec-note b { font-weight: var(--weight-announce); }

.scr-teacher .pv-act > .note--inline, .scr-teacher .actbar > .note--inline { flex: 1 1 18rem; margin: 0; }

.scr-teacher .kv-sub { display: block; margin-top: var(--space-1); color: var(--muted); font-size: var(--text-sm); line-height: var(--lh-snug); text-wrap: pretty; }

.scr-teacher .card { padding: var(--space-4) var(--space-4) var(--space-2); border-radius: var(--radius-md); background: var(--surface); }
.scr-teacher .card--pad { padding-bottom: var(--space-4); }

.scr-teacher .note--own { background: var(--brand-wash); }
.scr-teacher .note--own > .ico { color: var(--brand); }
.scr-teacher .note--foot { margin-block-start: var(--space-6); }

.scr-teacher .org { margin: 0 0 var(--space-6); }
.scr-teacher .org-h { display: flex; align-items: center; gap: var(--space-3); margin: 0 0 var(--space-3); }
.scr-teacher .org-h .ico { flex: none; inline-size: var(--ico-lg); block-size: var(--ico-lg); color: var(--brand); }
.scr-teacher .org-n { margin: 0; font-family: var(--font-display); font-size: var(--text-md); font-weight: var(--weight-announce); line-height: var(--lh-tight); letter-spacing: var(--track-head); }
.scr-teacher .org-c { color: var(--muted); font-size: var(--text-sm); white-space: nowrap; }
.scr-teacher .org-d { margin: calc(-1 * var(--space-1)) 0 var(--space-4); padding-inline-start: calc(1.25rem + var(--space-3)); color: var(--muted); font-size: var(--text-sm); line-height: var(--lh-snug); text-wrap: pretty; }
.scr-teacher .classes { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr)); gap: var(--space-4); margin: 0; padding: 0; }
.scr-teacher .class-card {
  display: grid; gap: var(--space-3); width: 100%; min-height: var(--tap);
  padding: var(--space-5); border: var(--hairline) solid var(--border-strong); border-radius: var(--radius-md);
  background: var(--bg); color: inherit; text-align: start; text-decoration: none;
}
.scr-teacher .class-card:active { background: var(--surface-sunk); }
@media (hover: hover) { .scr-teacher .class-card:hover { border-color: var(--brand); background: var(--surface); } }
.scr-teacher .class-n { font-family: var(--font-display); font-size: var(--text-md); font-weight: var(--weight-announce); line-height: var(--lh-tight); letter-spacing: var(--track-head); text-wrap: pretty; }
.scr-teacher .class-m { display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-3); color: var(--muted); font-size: var(--text-sm); line-height: var(--lh-snug); }

.scr-teacher .class-wk { padding-top: var(--space-3); border-top: var(--hairline) solid var(--border); line-height: var(--lh-snug); }
.scr-teacher .class-wk b { font-weight: var(--weight-announce); }

.scr-teacher .scroll-hint { display: none; }
@container screen (max-width: 599px) {
  .scr-teacher .scroll-hint { display: flex; align-items: flex-start; gap: var(--space-2); margin: 0 0 var(--space-3); color: var(--muted); font-size: var(--text-sm); line-height: var(--lh-snug); }
  .scr-teacher .scroll-hint .ico { flex: none; inline-size: var(--ico-sm); block-size: var(--ico-sm); margin-top: 0.15em; }
}
.scr-teacher .tbl-wrap:focus-visible { outline: var(--focus-w) solid var(--focus); outline-offset: var(--focus-off); }

.scr-teacher .th-sort .th-t { display: block; font-weight: var(--weight-announce); }
.scr-teacher .th-sort .th-t span { display: block; font-weight: var(--weight-read); }
.scr-teacher .th-sort--up .ico { transform: rotate(180deg); }
.scr-teacher .tbl thead th span { display: block; font-weight: var(--weight-read); }

.scr-teacher .cell-s { display: block; margin-top: var(--space-1); font-size: var(--text-sm); line-height: var(--lh-snug); }

.scr-teacher .s-link {
  display: inline-flex; align-items: center; min-height: var(--tap-min); margin-inline-start: calc(-1 * var(--space-2));
  padding: 0 var(--space-2); border: 0; border-radius: var(--radius-sm); background: transparent;
  color: var(--brand); font-weight: var(--weight-ui); line-height: var(--lh-snug); text-align: start;
}
.scr-teacher .s-link:active { background: var(--surface-sunk); }
@media (hover: hover) { .scr-teacher .s-link:hover { background: var(--brand-wash); } }
@media (pointer: coarse) { .scr-teacher .s-link { min-height: var(--tap); } }
.scr-teacher .quiet { color: var(--muted); }

.scr-teacher .tbl tfoot th, .scr-teacher .tbl tfoot td { border-top: var(--hairline) solid var(--border-strong); font-weight: var(--weight-announce); }

.scr-teacher .tbl tbody tr.span th, .scr-teacher .tbl tbody tr.span td { color: var(--muted); font-size: var(--text-sm); font-weight: var(--weight-read); line-height: var(--lh-snug); }

.scr-teacher .tbl .pick { width: 3rem; }
.scr-teacher .tbl td.pick, .scr-teacher .tbl th.pick { vertical-align: middle; }
.scr-teacher .pick-hit { display: inline-flex; align-items: center; justify-content: center; min-width: var(--tap-min); min-height: var(--tap-min); margin-block: calc(-1 * var(--space-2)); border-radius: var(--radius-sm); }
.scr-teacher .pick-hit input { width: var(--control-size-lg); height: var(--control-size-lg); margin: 0; accent-color: var(--brand); }
.scr-teacher .pick-hit:has(input:focus-visible) { outline: var(--focus-w) solid var(--focus); outline-offset: var(--focus-off); }
.scr-teacher .pick-hit input:focus-visible { outline: none; }
.scr-teacher .pick-hit:active { background: var(--surface-sunk); }
@media (hover: hover) { .scr-teacher .pick-hit:hover { background: var(--surface); } }

.scr-teacher .tbl--roll { --table-min: 42rem; }
html.is-large-text .scr-teacher .tbl--roll { --table-min: 52rem; }

.scr-teacher .tbl--beta { --table-min: 34rem; }
html.is-large-text .scr-teacher .tbl--beta { --table-min: 46rem; }
.scr-teacher .tbl--spec { --table-min: 30rem; }
html.is-large-text .scr-teacher .tbl { --table-min: 44rem; }
html.is-large-text .scr-teacher .tbl--spec { --table-min: 38rem; }

.scr-teacher .tfilters--over { align-items: start; margin-block: var(--space-3) var(--space-4); column-gap: var(--space-4); }
.scr-teacher .tfilters--over .sel { min-height: var(--tap); }
.scr-teacher .tool { flex: 0 1 11rem; min-width: 0; display: grid; gap: var(--space-1); }
.scr-teacher .tool--find { flex: 1 1 18rem; }
.scr-teacher .tool > label { color: var(--muted); font-size: var(--text-sm); font-weight: var(--weight-announce); line-height: var(--lh-snug); }

.scr-teacher .tempty .actbar { margin-top: var(--space-2); padding-top: 0; border-top: 0; }

.scr-teacher .assign { list-style: none; margin: 0; padding: 0; }
.scr-teacher .assign > li + li { border-top: var(--hairline) solid var(--border); }
.scr-teacher .card .assign > li + li { border-top-color: color-mix(in srgb, var(--border-strong) 35%, transparent); }
.scr-teacher .as {
  display: flex; align-items: center; gap: var(--space-3);
  width: calc(100% + var(--space-4)); min-height: var(--tap); margin: 0 calc(-1 * var(--space-2)); padding: var(--space-3) var(--space-2);
  border: 0; border-radius: var(--radius-sm); background: transparent; color: inherit; text-align: start;
}
.scr-teacher .as:active { background: var(--surface-sunk); }
@media (hover: hover) { .scr-teacher .as:hover { background: var(--surface-sunk); } }
.scr-teacher .as-txt { flex: 1 1 0; min-width: 0; display: grid; gap: var(--space-2); }
.scr-teacher .as-n { display: block; font-weight: var(--weight-ui); line-height: var(--lh-snug); overflow-wrap: anywhere; }
.scr-teacher .as-m { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-1) var(--space-3); color: var(--muted); font-size: var(--text-sm); line-height: var(--lh-snug); }
.scr-teacher .as-m b { color: var(--fg); font-weight: var(--weight-ui); }
.scr-teacher .as > .ico { inline-size: var(--ico-md); block-size: var(--ico-md); color: var(--muted); }
.scr-teacher .pby { color: var(--fg); font-weight: var(--weight-ui); white-space: nowrap; }

.scr-teacher .sec-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--space-2) var(--space-4); }
.scr-teacher .sec-head .sec-h { margin-bottom: 0; }
.scr-teacher .bypsort { margin: 0; flex: 0 1 14rem; min-width: 11rem; }
.scr-teacher .as.is-cur { background: var(--surface-sunk); box-shadow: inset var(--edge) 0 0 var(--brand); }

.scr-teacher .trend { display: flex; align-items: flex-end; gap: var(--space-2); min-height: 9rem; margin-top: var(--space-3); }
.scr-teacher .trend-b { position: relative; flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: var(--space-2); padding: 0; border: 0; background: transparent; color: inherit; }
.scr-teacher .trend-track { position: relative; block-size: 7rem; border-radius: var(--radius-sm); background: var(--surface); overflow: hidden; }
.scr-teacher .trend-fill { position: absolute; inset-inline: 0; inset-block-end: 0; border-start-start-radius: var(--radius-sm); border-start-end-radius: var(--radius-sm); background: var(--brand); }
.scr-teacher .trend-avg { position: absolute; inset-inline: 0; block-size: 2px; background: var(--fg); box-shadow: 0 0 0 2px var(--bg); }
.scr-teacher .trend-v { display: block; font-size: var(--text-sm); font-weight: var(--weight-ui); line-height: var(--lh-snug); text-align: center; }
.scr-teacher .trend-b .tip {
  position: absolute; inset-block-end: calc(100% + var(--space-2)); inset-inline-start: 50%; translate: -50% 0; z-index: 2;
  min-inline-size: 9rem; padding: var(--space-2) var(--space-3);
  background: var(--fg); color: var(--bg); border-radius: var(--radius-sm);
  font-size: var(--text-sm); line-height: var(--lh-snug); text-align: start; opacity: 0; pointer-events: none;
}

.scr-teacher .trend-b:first-child .tip { inset-inline-start: 0; translate: 0; }
.scr-teacher .trend-b:last-child .tip { inset-inline-start: auto; inset-inline-end: 0; translate: 0; }
.scr-teacher .trend-b:focus-visible .tip, .scr-teacher .trend-b.is-hover .tip { opacity: 1; }
@media (hover: hover) { .scr-teacher .trend-b:hover .tip { opacity: 1; } }
.scr-teacher .trend-note { margin-top: var(--space-3); }
@media (max-width: 600px) { .scr-teacher .trend-track { block-size: 5.5rem; } .scr-teacher .trend-b .tip { min-inline-size: 7rem; } }

.scr-teacher .focus-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-3); }
.scr-teacher .focus-row .focus-t { flex: 1 1 14rem; min-width: 0; font-weight: var(--weight-ui); line-height: var(--lh-snug); }
.scr-teacher .focus-row .link-btn { flex: 0 1 auto; max-inline-size: 100%; }

.scr-teacher .focus-row .link-btn > span { min-width: 0; white-space: normal; }
.scr-teacher .focus-none { color: var(--muted); }
@media (max-width: 700px) { .scr-teacher .focus-row .link-btn { flex: 1 1 100%; } }

.scr-teacher .probs { list-style: none; margin: 0; padding: 0; }
.scr-teacher .probs > li + li { border-top: var(--hairline) solid var(--border); }
.scr-teacher .prob { display: grid; grid-template-columns: 2.5rem minmax(0, 1fr); column-gap: var(--space-3); align-items: start; padding: var(--space-4) 0; }
.scr-teacher .prob-n { color: var(--muted); font-variant-numeric: tabular-nums; font-size: var(--text-sm); font-weight: var(--weight-announce); line-height: 1.9; }
.scr-teacher .prob-in { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-3); }
.scr-teacher .prob-m { margin: 0; font-size: var(--math); line-height: 1.5; overflow-x: auto; overflow-y: hidden; }

.scr-teacher .prob-k { margin: 0; font-size: var(--text-base); font-weight: var(--weight-ui); line-height: var(--lh-snug); }
.scr-teacher .prob-k b { font-weight: var(--weight-announce); font-variant-numeric: tabular-nums; }
.scr-teacher .prob-src { display: block; margin-top: var(--space-1); color: var(--muted); font-size: var(--text-sm); font-weight: var(--weight-read); line-height: var(--lh-snug); }

.scr-teacher .cand-k { display: block; margin-top: var(--space-1); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: var(--text-sm); color: var(--muted); overflow-wrap: anywhere; }
.scr-teacher .prob-m .katex { font-size: 1em; }
.scr-teacher .prob-s { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-5); }

.scr-teacher .prob-s--chips { gap: var(--space-2); }

.scr-teacher .agg { display: inline-flex; align-items: baseline; gap: var(--space-2); font-size: var(--text-sm); line-height: var(--lh-snug); white-space: nowrap; }
.scr-teacher .agg b { font-size: var(--text-base); font-weight: var(--weight-announce); font-variant-numeric: tabular-nums; }
.scr-teacher .agg span { color: var(--muted); }

.scr-teacher .agg-n { color: var(--muted); font-size: var(--text-sm); line-height: var(--lh-snug); }

.scr-teacher .ptr {
  margin: 0; padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm); background: var(--warn-wash);
  font-size: var(--text-sm); line-height: var(--lh-snug); text-wrap: pretty;
}
.scr-teacher .ptr b { font-weight: var(--weight-announce); }
.scr-teacher .prob--hot .ptr { background: var(--warn-wash); box-shadow: inset var(--edge) 0 0 var(--warn); }

.scr-teacher .top { list-style: none; margin: 0; padding: 0; }
.scr-teacher .top > li + li { border-top: var(--hairline) solid color-mix(in srgb, var(--border-strong) 35%, transparent); }
.scr-teacher .top-row {
  display: grid; grid-template-columns: 2.75rem minmax(0, 1fr); align-items: center; column-gap: var(--space-3); row-gap: var(--space-2);
  width: calc(100% + var(--space-4)); min-height: var(--tap); margin: 0 calc(-1 * var(--space-2)); padding: var(--space-3) var(--space-2);
  border: 0; border-radius: var(--radius-sm); background: transparent; color: inherit; text-align: start;
}
.scr-teacher .top-row:active { background: var(--surface-sunk); }
@media (hover: hover) { .scr-teacher .top-row:hover { background: var(--surface-sunk); } }
.scr-teacher .top-n { font-family: var(--font-display); font-size: var(--text-md); font-weight: var(--weight-announce); line-height: var(--lh-tight); color: var(--brand); font-variant-numeric: tabular-nums; }
.scr-teacher .top-t { min-width: 0; display: grid; gap: var(--space-1); }
.scr-teacher .top-s { display: block; font-weight: var(--weight-ui); line-height: var(--lh-snug); }
.scr-teacher .top-m { display: block; color: var(--muted); font-size: var(--text-sm); line-height: var(--lh-snug); }
.scr-teacher .top-bar { grid-column: 2; display: block; width: 100%; height: var(--progress-h); border-radius: var(--radius-pill); background: var(--surface-sunk); overflow: hidden; }
.scr-teacher .top-bar > span { display: block; height: 100%; width: 100%; background: var(--warn); transform-origin: left center; transform: scaleX(var(--p, 0)); }

.scr-teacher .tabs { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: 0 0 var(--space-5); padding: 0; border-bottom: var(--hairline) solid var(--border); }
.scr-teacher .tab-btn {
  display: inline-flex; align-items: center; gap: var(--space-2); min-height: var(--tap);
  padding: var(--space-2) var(--space-3); margin-bottom: -1px;
  border: 0; border-bottom: var(--edge) solid transparent; border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  background: transparent; color: var(--muted); font-weight: var(--weight-announce); line-height: var(--lh-snug);
}
.scr-teacher .tab-btn .ico { inline-size: var(--ico-md); block-size: var(--ico-md); }
.scr-teacher .tab-btn[aria-selected="true"] { color: var(--brand); border-bottom-color: var(--brand); }
.scr-teacher .tab-btn:active { background: var(--surface-sunk); }
@media (hover: hover) { .scr-teacher .tab-btn:not([aria-selected="true"]):hover { background: var(--surface); color: var(--fg); } }
.scr-teacher .lib { list-style: none; margin: 0; padding: 0; }
.scr-teacher .lib > li + li { border-top: var(--hairline) solid var(--border); }
.scr-teacher .lib-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-4); padding: var(--space-2) 0; }

.scr-teacher .lib-main {
  flex: 1 1 18rem; min-width: 0; display: flex; align-items: center; gap: var(--space-3);
  min-height: var(--tap); margin-inline-start: calc(-1 * var(--space-2)); padding: var(--space-2);
  border: 0; border-radius: var(--radius-sm); background: transparent; color: inherit; text-align: start;
}
.scr-teacher .lib-main > .ico { inline-size: var(--ico-md); block-size: var(--ico-md); color: var(--muted); }

.scr-teacher .lib-main > .lib-txt { flex: 0 1 auto; }
.scr-teacher .lib-main:active { background: var(--surface-sunk); }
@media (hover: hover) { .scr-teacher .lib-main:hover { background: var(--surface); } }
.scr-teacher .lib-txt { flex: 1 1 0; min-width: 0; display: grid; gap: var(--space-2); }
.scr-teacher .lib-n { font-weight: var(--weight-ui); line-height: var(--lh-snug); text-wrap: pretty; }
.scr-teacher .lib-m { display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-3); color: var(--muted); font-size: var(--text-sm); line-height: var(--lh-snug); }
.scr-teacher .lib-act { flex: none; display: flex; flex-wrap: wrap; gap: var(--space-2); }

.scr-teacher .lib-act .again { flex: 1 1 100%; }
.scr-teacher .lib-act .btn-quiet { min-height: var(--tap-min); padding-inline: var(--space-3); font-size: var(--text-sm); }

.scr-teacher .grp-act { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-4); }
.scr-teacher .grp-act > * { flex: none; }
.scr-teacher .grp-act .btn-quiet { min-height: var(--tap-min); padding-inline: var(--space-3); font-size: var(--text-sm); inline-size: auto; }
@media (pointer: coarse) { .scr-teacher .lib-act .btn-quiet { min-height: var(--tap); } }

.scr-teacher .rollup { display: flex; align-items: flex-start; gap: var(--space-2); color: var(--muted); font-size: var(--text-sm); line-height: var(--lh-snug); text-wrap: pretty; }
.scr-teacher .rollup .ico { flex: none; inline-size: var(--ico-sm); block-size: var(--ico-sm); margin-top: 0.15em; }

.scr-teacher .flagged { display: flex; align-items: flex-start; gap: var(--space-2); color: var(--muted); font-size: var(--text-sm); line-height: var(--lh-snug); text-wrap: pretty; }
.scr-teacher .flagged .ico { flex: none; inline-size: var(--ico-sm); block-size: var(--ico-sm); margin-top: 0.15em; }
.scr-teacher .recipe .flagged { margin-top: var(--space-1); }

.scr-teacher .copybar {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-4);
  margin: 0 0 var(--space-5); padding: var(--space-4);
  border: var(--hairline) dashed var(--border-strong); border-radius: var(--radius-md);
}
.scr-teacher .copybar-t { flex: 1 1 18rem; min-width: 0; line-height: var(--lh-snug); text-wrap: pretty; }
.scr-teacher .copybar-t b { font-weight: var(--weight-announce); }

.scr-teacher .grp { margin: 0 0 var(--space-5); }
.scr-teacher .grp-k {
  margin: 0 0 var(--space-2); color: var(--muted);
  font-size: var(--text-sm); font-weight: var(--weight-announce);
  letter-spacing: var(--track-caps); text-transform: uppercase; line-height: var(--lh-snug);
}
.scr-teacher .grp-k .n { text-transform: none; letter-spacing: 0; font-weight: var(--weight-read); }

.scr-teacher .crumb { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-1) var(--space-2); margin: 0 0 var(--space-4); color: var(--muted); font-size: var(--text-sm); line-height: var(--lh-snug); }
.scr-teacher .crumb b { color: var(--fg); font-weight: var(--weight-announce); }

.scr-teacher .lib-tags { color: var(--muted); font-size: var(--text-sm); line-height: var(--lh-snug); }
.scr-teacher .lib-tags b { color: var(--fg); font-weight: var(--weight-ui); }

.scr-teacher .lib-stds { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); }

.scr-teacher .findrow { display: flex; flex-wrap: wrap; gap: var(--space-3); margin: 0 0 var(--space-4); }
.scr-teacher .findrow > .search { flex: 1 1 18rem; min-width: 0; }
.scr-teacher .roster { list-style: none; margin: 0; padding: 0; }
.scr-teacher .roster > li + li { border-top: var(--hairline) solid var(--border); }
.scr-teacher .ro { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-4); padding: var(--space-3) 0; }
.scr-teacher .ro-txt { flex: 1 1 14rem; min-width: 0; display: grid; gap: var(--space-1); }
.scr-teacher .ro-n { font-weight: var(--weight-ui); line-height: var(--lh-snug); }
.scr-teacher .ro-m { color: var(--muted); font-size: var(--text-sm); line-height: var(--lh-snug); text-wrap: pretty; }
.scr-teacher .ro-act { flex: none; }

.scr-teacher .ro-wait { display: flex; align-items: flex-start; gap: var(--space-1); color: var(--info); font-size: var(--text-sm); font-weight: var(--weight-ui); line-height: var(--lh-snug); text-wrap: pretty; }
.scr-teacher .ro-wait > .ico { flex: none; margin-block-start: 0.15em; }

html.is-large-text .scr-teacher .ro-act > .btn-row { white-space: normal; }

.scr-teacher .ucur {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2) var(--space-4);
  inline-size: 100%;
  min-block-size: var(--tap);
  margin: 0 0 var(--space-5);
  padding: var(--space-3) var(--space-4);
  font: inherit;
  text-align: start;
  color: var(--fg);
  background: var(--surface);
  border: var(--hairline) solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.scr-teacher .ucur--ro { cursor: default; }
.scr-teacher button.ucur:hover, .scr-teacher button.ucur.is-hover { background: var(--surface-sunk); }
.scr-teacher button.ucur:active { background: var(--surface-sunk); }
.scr-teacher button.ucur:focus-visible { outline: var(--focus-w) solid var(--focus); outline-offset: var(--focus-off); }
.scr-teacher .ucur-t { flex: 1 1 14rem; min-width: 0; display: grid; gap: var(--space-1); }
.scr-teacher .ucur-k { color: var(--muted); font-size: var(--text-sm); line-height: var(--lh-snug); }
.scr-teacher .ucur-v { font-weight: var(--weight-ui); line-height: var(--lh-snug); text-wrap: pretty; }
.scr-teacher .ucur-a { flex: none; color: var(--brand); font-weight: var(--weight-ui); }

html.is-large-text .scr-teacher .ucur-a { flex: 1 1 100%; }

html.is-large-text .scr-teacher .sheet:has([data-ucur="picker"]) { --sheet-max: calc(100% - var(--space-4)); }
.scr-teacher .sheet [data-ucur="picker"] > .sheet-head { margin-block-end: var(--space-2); }

.scr-teacher .sheet-scroll[data-ucur="picker"] { margin-inline: calc(-1 * var(--space-3)); padding-inline: var(--space-3); }

.scr-teacher .roster--wait { margin-block-start: var(--space-5); }

.scr-teacher .ro--pick { align-items: center; min-height: var(--tap); border-radius: var(--radius-sm); }
.scr-teacher .ro--pick input { flex: none; width: var(--control-size-lg); height: var(--control-size-lg); margin: 0; accent-color: var(--brand); }
.scr-teacher .ro--pick:active { background: var(--surface-sunk); }

.scr-teacher .ro--pick:has(input:focus-visible) { outline: var(--focus-w) solid var(--focus); outline-offset: var(--focus-off); }
.scr-teacher .ro--pick input:focus-visible { outline: none; }
@media (hover: hover) { .scr-teacher .ro--pick:hover { background: var(--surface); } }

.scr-teacher .pickbar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); margin-top: var(--space-4); }
.scr-teacher .actbar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); margin-top: var(--space-5); padding-top: var(--space-5); border-top: var(--hairline) solid var(--border); }
.scr-teacher .selbar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); margin: var(--space-4) 0 0; }
.scr-teacher .selbar-k { color: var(--muted); font-size: var(--text-sm); line-height: var(--lh-snug); }

.scr-teacher .btn-row { min-height: var(--tap-min); padding-inline: var(--space-3); white-space: nowrap; }

.scr-teacher .csv {
  width: 100%; min-width: 0; min-height: calc(var(--tap) * 2.5); padding: var(--space-3);
  border: var(--hairline) solid var(--border-strong); border-radius: var(--radius-sm);
  background: var(--bg); color: var(--fg); font-family: var(--font-ui); font-size: var(--text-base);
  line-height: var(--lh-body); resize: vertical;
}
.scr-teacher .field--first { margin-top: 0; }
.scr-teacher .field-row { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: flex-end; }
.scr-teacher .field-row > .field { flex: 1 1 14rem; margin-top: 0; }

.scr-teacher .code { font-weight: var(--weight-announce); letter-spacing: var(--track-ui); overflow-wrap: anywhere; }

.scr-teacher .col-k { font-weight: var(--weight-announce); letter-spacing: var(--track-ui); overflow-wrap: anywhere; }

@container board (min-width: 600px) {
  .scr-teacher .sheet {
    inset: 50% auto auto 50%; translate: -50% -50%;
    inline-size: min(620px, calc(100% - 2 * var(--space-6)));
    max-block-size: calc(100% - 2 * var(--space-6));
    padding: var(--space-4) var(--gutter) var(--space-5);
    border: var(--hairline) solid var(--border-strong); border-radius: var(--radius-md);
    animation-name: rise-in;
  }
  .scr-teacher .sheet-grab { display: none; }
}

.scr-teacher .opt-n { display: block; font-weight: var(--weight-ui); line-height: var(--lh-snug); text-wrap: pretty; }

.scr-teacher .preview { margin: var(--space-5) 0 0; padding: var(--space-4); border-radius: var(--radius-md); background: var(--surface); }
.scr-teacher .preview-l { margin: 0 0 var(--space-3); color: var(--fg); font-weight: var(--weight-announce); line-height: var(--lh-snug); }
.scr-teacher .stu-card { display: grid; gap: var(--space-2); padding: var(--space-4); border-radius: var(--radius-sm); background: var(--bg); border: var(--hairline) solid var(--border); }
.scr-teacher .stu-n { font-weight: var(--weight-ui); line-height: var(--lh-snug); text-wrap: pretty; }
.scr-teacher .stu-from { display: inline-flex; align-items: center; gap: var(--space-2); align-self: start; padding: var(--space-1) var(--space-3); border-radius: var(--radius-pill); background: var(--brand-wash); color: var(--brand); font-size: var(--text-sm); font-weight: var(--weight-announce); line-height: var(--lh-snug); }
.scr-teacher .stu-m { color: var(--muted); font-size: var(--text-sm); line-height: var(--lh-snug); }

.scr-teacher .code-card--sheet { justify-items: stretch; gap: var(--space-2); padding: var(--space-4); background: var(--bg); border: var(--hairline) solid var(--border-strong); border-radius: var(--radius-sm); }
.scr-teacher .code-card-k { color: var(--muted); font-size: var(--text-sm); font-weight: var(--weight-announce); letter-spacing: var(--track-caps); text-transform: uppercase; line-height: var(--lh-snug); }
.scr-teacher .code-card-n { font-family: var(--font-display); font-size: var(--text-md); font-weight: var(--weight-announce); line-height: var(--lh-tight); }
.scr-teacher .code-card-r { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-1) var(--space-3); }
.scr-teacher .code-card-l { flex: none; color: var(--muted); font-size: var(--text-sm); }
.scr-teacher .code-card-s { color: var(--muted); font-size: var(--text-sm); line-height: var(--lh-snug); text-wrap: pretty; }
.scr-teacher .cards { display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }

html.is-large-text .scr-teacher .cards { grid-template-columns: 1fr; }

.scr-teacher .code-card-w { color: var(--muted); font-size: var(--text-sm); line-height: var(--lh-snug); overflow-wrap: anywhere; }
.scr-teacher .code-card-qr { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4); }
.scr-teacher .code-card-qr > div { flex: 1 1 10rem; min-width: 0; display: flex; flex-direction: column; gap: var(--space-2); }

.scr-teacher .code-acts { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-block-start: var(--space-1); }

.scr-teacher .code-acts > .btn-quiet { flex: 1 1 auto; inline-size: auto; min-inline-size: max-content; --btn-min-h: var(--tap); --btn-pad-x: var(--space-3); }
@container screen (max-width: 359px) { .scr-teacher .code-acts > .btn-quiet { flex-basis: 100%; } }
html.is-large-text .scr-teacher .code-acts > .btn-quiet { flex-basis: 100%; }
@media print { .scr-teacher .code-acts { display: none; } }

@media print {

  .scr-teacher .sheet-scroll { overflow: visible; max-block-size: none; }

  .scr-teacher .sheet { position: static; max-block-size: none; overflow: visible; animation: none;
           transform: none; translate: none; inset: auto; }

  .scr-teacher .layer { position: static; block-size: auto; }
  .scr-teacher .scrim { display: none; }

  .scr-teacher .desk, .scr-teacher .tablet { block-size: auto; overflow: visible; }
  .scr-teacher .overlay-host { block-size: auto; }
  .scr-teacher .od-scroll { overflow: visible; max-block-size: none; }

  .scr-teacher .code-card { break-inside: avoid; page-break-inside: avoid; }
  .scr-teacher .sheet { inline-size: auto; max-inline-size: none; }
  .scr-teacher .cards { grid-template-columns: minmax(0, 1fr); }
}

.scr-teacher .pick-head { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: var(--space-3); row-gap: var(--space-1); }
.scr-teacher .pick-n { font-weight: var(--weight-read); color: var(--muted); }
.scr-teacher .code-card--sheet .qr { --qr-size: 132px; }
html.is-large-text .scr-teacher .code-card--sheet .qr { --qr-size: 104px; }

.scr-teacher .split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-6) var(--space-7); align-items: start; }
.scr-teacher .split-aside { position: sticky; top: var(--space-5); align-self: start; display: grid; gap: var(--space-4); max-block-size: calc(100dvh - 2 * var(--space-5)); overflow: clip; }
.scr-teacher .photo-btn { display: block; width: 100%; padding: 0; border: 0; border-radius: var(--radius-md); background: transparent; }
.scr-teacher .photo-btn img { display: block; width: 100%; height: auto; border-radius: var(--radius-md); border: var(--hairline) solid var(--border); }
.scr-teacher .photo-cap { display: flex; align-items: center; gap: var(--space-2); margin: var(--space-1) 0 0; color: var(--muted); font-size: var(--text-sm); line-height: var(--lh-snug); }
.scr-teacher .photo-cap .ico { inline-size: var(--ico-sm); block-size: var(--ico-sm); }
.scr-teacher .instr { margin: 0; }
.scr-teacher .instr-l { margin: 0; color: var(--muted); font-size: var(--text-sm); font-weight: var(--weight-announce); line-height: var(--lh-snug); }
.scr-teacher .instr blockquote { margin: var(--space-1) 0 0; max-width: var(--measure); font-size: var(--text-sm); line-height: var(--lh-snug); text-wrap: pretty; }

.scr-teacher .prob--flag { margin-inline: calc(-1 * var(--space-3)); padding-inline: var(--space-3); background: var(--warn-wash); box-shadow: inset var(--edge) 0 0 var(--warn); }
.scr-teacher .prob--flag .prob-n { color: var(--warn); }
.scr-teacher .prob-flag { display: flex; align-items: flex-start; gap: var(--space-2); margin: 0; font-size: var(--text-sm); line-height: var(--lh-snug); }
.scr-teacher .prob-flag .ico { flex: none; inline-size: var(--ico-sm); block-size: var(--ico-sm); margin-top: 0.1em; color: var(--warn); }
.scr-teacher .prob-flag.is-ok .ico { color: var(--success); }
.scr-teacher .prob .link-btn { margin-top: 0; }
.scr-teacher .dock-note { display: flex; align-items: flex-start; gap: var(--space-2); margin: 0 0 var(--space-4); color: var(--muted); font-size: var(--text-sm); line-height: var(--lh-snug); max-width: var(--measure); text-wrap: pretty; }
.scr-teacher .dock-note .ico { flex: none; inline-size: var(--ico-sm); block-size: var(--ico-sm); margin-top: 0.15em; }

.scr-teacher .sum { --figure: 1.75rem; display: flex; flex-wrap: wrap; gap: var(--space-4) var(--space-7); margin: 0 0 var(--space-4); padding: var(--space-4) var(--space-5); border-radius: var(--radius-md); background: var(--surface); }
.scr-teacher .sum-i { min-width: 0; display: grid; gap: var(--space-1); }
.scr-teacher .sum-v { font-family: var(--font-display); font-size: var(--figure); font-weight: var(--weight-announce); line-height: var(--lh-tight); letter-spacing: var(--track-head); font-variant-numeric: tabular-nums; }
.scr-teacher .sum-l { color: var(--muted); font-size: var(--text-sm); line-height: var(--lh-snug); }

.scr-teacher .sum-after { margin: 0 0 var(--space-5); line-height: var(--lh-snug); max-width: var(--measure); text-wrap: pretty; }
.scr-teacher .sum-after b { font-weight: var(--weight-announce); }

.scr-teacher .prep { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-3); }
.scr-teacher .prep-bar { flex: 1 1 8rem; min-width: 6rem; max-width: 14rem; height: var(--progress-h); border-radius: var(--radius-pill); background: var(--surface-sunk); overflow: hidden; }
.scr-teacher .prep-bar > span { display: block; height: 100%; background: var(--brand); transform-origin: left center; transform: scaleX(var(--p, 0)); }

.scr-teacher .routes { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: var(--space-4); margin: 0 0 var(--space-5); padding: 0; }
.scr-teacher .route {
  display: grid; gap: var(--space-2); width: 100%; min-height: var(--tap);
  padding: var(--space-5); border: var(--hairline) solid var(--border-strong); border-radius: var(--radius-md);
  background: var(--bg); color: inherit; text-align: start;
}
.scr-teacher .route:active { background: var(--surface-sunk); }
@media (hover: hover) { .scr-teacher .route:hover { border-color: var(--brand); background: var(--surface); } }
.scr-teacher .route-n { font-family: var(--font-display); font-size: var(--text-md); font-weight: var(--weight-announce); line-height: var(--lh-tight); letter-spacing: var(--track-head); }
.scr-teacher .route-s { color: var(--muted); font-size: var(--text-sm); line-height: var(--lh-snug); text-wrap: pretty; }

.scr-teacher .pv { display: grid; gap: var(--space-5); }
.scr-teacher .pv-real { padding: var(--space-4) var(--space-5); border-radius: var(--radius-md); background: var(--surface); }
.scr-teacher .pv-k { margin: 0 0 var(--space-2); color: var(--muted); font-size: var(--text-sm); font-weight: var(--weight-announce); line-height: var(--lh-snug); }
.scr-teacher .pv-m { margin: 0; font-size: var(--math); line-height: 1.5; overflow-x: auto; overflow-y: hidden; }
.scr-teacher .pv-hero { margin: 0; font-size: var(--math-hero); line-height: 1.45; overflow-x: auto; overflow-y: hidden; }
.scr-teacher .pv-note { margin: var(--space-2) 0 0; color: var(--muted); font-size: var(--text-sm); line-height: var(--lh-snug); text-wrap: pretty; }
.scr-teacher .recipe { margin: 0; padding-inline-start: 1.5rem; display: grid; gap: var(--space-3); }
.scr-teacher .recipe > li { line-height: var(--lh-snug); text-wrap: pretty; }
.scr-teacher .recipe > li::marker { color: var(--brand); font-weight: var(--weight-announce); }
.scr-teacher .pv-act { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); margin-top: var(--space-4); padding-top: var(--space-4); border-top: var(--hairline) solid var(--border); }
.scr-teacher .pool { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-4); margin: 0 0 var(--space-3); color: var(--muted); font-size: var(--text-sm); line-height: var(--lh-snug); }

.scr-teacher .units { list-style: none; margin: 0; padding: 0; }
.scr-teacher .units > li + li { border-top: var(--hairline) solid color-mix(in srgb, var(--border-strong) 35%, transparent); }
.scr-teacher .unit { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-3); width: calc(100% + var(--space-4)); min-height: var(--tap); margin: 0 calc(-1 * var(--space-2)); padding: var(--space-3) var(--space-2); border: 0; border-radius: var(--radius-sm); background: transparent; color: inherit; text-align: start; }
.scr-teacher .unit:active { background: var(--surface-sunk); }
@media (hover: hover) { .scr-teacher .unit:hover { background: var(--surface-sunk); } }
.scr-teacher .unit-txt { flex: 1 1 12rem; min-width: 0; display: grid; gap: var(--space-1); }
.scr-teacher .unit-n { display: block; font-weight: var(--weight-ui); line-height: var(--lh-snug); text-wrap: pretty; }
.scr-teacher .unit-m { display: block; color: var(--muted); font-size: var(--text-sm); line-height: var(--lh-snug); }

.scr-teacher .tplbar { display: flex; flex-wrap: wrap; gap: var(--space-3); margin: 0; }

.scr-teacher .drop--target { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: start; gap: var(--space-3); padding: var(--space-6) var(--space-5); background: var(--bg); }
.scr-teacher .drop--target.is-over { border-style: solid; border-color: var(--brand); background: var(--surface); }
.scr-teacher .drop-t { margin: 0; font-family: var(--font-display); font-size: var(--text-md); font-weight: var(--weight-announce); line-height: var(--lh-tight); letter-spacing: var(--track-head); }
.scr-teacher .drop-s { margin: 0; color: var(--muted); font-size: var(--text-sm); line-height: var(--lh-snug); max-width: var(--measure); text-wrap: pretty; }
.scr-teacher .drop-in { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.scr-teacher .drop-in:focus-visible + .drop-btn { outline: var(--focus-w) solid var(--focus); outline-offset: var(--focus-off); }
@media (hover: hover) { .scr-teacher .drop-btn { cursor: pointer; } }

.scr-teacher .map-k { display: block; font-weight: var(--weight-announce); letter-spacing: var(--track-ui); overflow-wrap: anywhere; }
.scr-teacher .map-sel { min-width: 10rem; }

.scr-teacher .bad-k { margin: 0; color: var(--warn); font-size: var(--text-sm); font-weight: var(--weight-announce); line-height: var(--lh-snug); }
.scr-teacher .bad-v { margin: var(--space-1) 0 0; font-size: var(--text-md); line-height: var(--lh-snug); overflow-wrap: anywhere; }
.scr-teacher .bad-v b { font-weight: var(--weight-announce); }
.scr-teacher .bad-p { margin: var(--space-3) 0 0; line-height: var(--lh-snug); max-width: var(--measure); text-wrap: pretty; }
.scr-teacher .bad-act { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); margin-top: var(--space-4); }

.scr-teacher .fig-l { min-width: 0; line-height: var(--lh-snug); text-wrap: pretty; }

.scr-teacher .col .figs {
  grid-auto-flow: row;
  grid-auto-columns: auto;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
}

.scr-teacher .outs { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); }
.scr-teacher .out { display: inline-flex; align-items: flex-start; gap: var(--space-2); min-width: 0; font-size: var(--text-sm); font-weight: var(--weight-ui); line-height: var(--lh-snug); }
.scr-teacher .out .ico { flex: none; inline-size: var(--ico-sm); block-size: var(--ico-sm); margin-top: 0.1em; }
.scr-teacher .out b { font-size: var(--text-base); font-weight: var(--weight-announce); font-variant-numeric: tabular-nums; }
.scr-teacher .out--first { color: var(--success); }
.scr-teacher .out--again { color: var(--muted); }
.scr-teacher .out--look { color: var(--warn); }
.scr-teacher .out > span { min-width: 0; }

.scr-teacher .disc-l { list-style: none; margin: var(--space-4) 0 0; padding: 0; }
.scr-teacher .disc-l > li { padding: var(--space-2) 0; line-height: var(--lh-snug); text-wrap: pretty; }
.scr-teacher .disc-l > li + li { border-top: var(--hairline) solid var(--border); }

@container screen (max-width: 1151px) {
  .scr-teacher .split { grid-template-columns: minmax(0, 1fr); gap: var(--space-6); }
  .scr-teacher .split-aside { position: static; max-block-size: none; }
}
@container screen (max-width: 1023px) {
  .scr-teacher .body-main { padding: var(--space-5) 0 var(--space-7); }
  .scr-teacher .ctx-org { display: none; }
  .scr-teacher .sum { --figure: 1.5rem; }
  .scr-teacher .figs { --figure: 1.125rem; }
}
@container screen (min-width: 600px) and (max-width: 1023px) {
  .scr-teacher .wrap { --wrap-max: 720px; }
  .scr-teacher .body-main { padding: var(--space-6) 0 var(--space-8); }
}

@container screen (max-width: 599px) {

  .scr-teacher .ctx-wrap { order: 3; flex: 1 1 100%; }
  .scr-teacher .ctx { padding-inline: var(--space-3); }

  .scr-teacher .tab-school { display: none; }
  .scr-teacher .head--split { display: grid; }
  .scr-teacher .head-act { width: 100%; }
  .scr-teacher .head-act > * { flex: 1 1 100%; }
  .scr-teacher .classes { grid-template-columns: minmax(0, 1fr); }
  .scr-teacher .class-card { padding: var(--space-4); }
  .scr-teacher .lib-act, .scr-teacher .ro-act { width: 100%; }
  .scr-teacher .lib-act > *, .scr-teacher .ro-act > * { flex: 1 1 10rem; }
  .scr-teacher .pickbar > * { flex: 1 1 100%; }
  .scr-teacher .sum { gap: var(--space-4); }
  .scr-teacher .sum-i { flex: 1 1 8rem; }
  .scr-teacher .actbar > * { flex: 1 1 100%; }
  .scr-teacher .routes { grid-template-columns: minmax(0, 1fr); }
  .scr-teacher .route { padding: var(--space-4); }
  .scr-teacher .pv-act > *, .scr-teacher .selbar > * { flex: 1 1 100%; }
  .scr-teacher .pv-hero { font-size: var(--math); }
  .scr-teacher .tplbar > * { flex: 1 1 100%; }
  .scr-teacher .drop--target { padding: var(--space-5) var(--space-4); }
  .scr-teacher .bad-act > * { flex: 1 1 100%; }
}
@container screen (max-width: 359px) {
  .scr-teacher .wordmark .lockup { block-size: 1.4rem; }
}

html.is-large-text .scr-teacher .wrap { --wrap-pad: var(--space-5); }
html.is-large-text .scr-teacher .grp-k { text-transform: none; letter-spacing: var(--track-ui); }
html.is-large-text .scr-teacher .site-head .wordmark .lockup { block-size: 1.15rem; }
html.is-large-text .scr-teacher .site-head { padding-block: var(--space-1) var(--space-2); }
html.is-large-text .scr-teacher .ctx-org { display: none; }
html.is-large-text .scr-teacher .prob { grid-template-columns: minmax(0, 1fr); row-gap: var(--space-2); }
html.is-large-text .scr-teacher .prob-n { line-height: var(--lh-snug); }
html.is-large-text .scr-teacher .prob-s { flex-direction: column; align-items: flex-start; gap: var(--space-2); }
html.is-large-text .scr-teacher .as { display: grid; grid-template-columns: minmax(0, 1fr); row-gap: var(--space-2); }
html.is-large-text .scr-teacher .as > .ico { display: none; }
html.is-large-text .scr-teacher .card, html.is-large-text .scr-teacher .sum, html.is-large-text .scr-teacher .preview { padding: var(--space-3); }
html.is-large-text .scr-teacher .tfilters { gap: var(--space-3); }
html.is-large-text .scr-teacher .tool, html.is-large-text .scr-teacher .tool--find { flex: 1 1 100%; }
html.is-large-text .scr-teacher .routes { grid-template-columns: minmax(0, 1fr); }
html.is-large-text .scr-teacher .pv-real { padding: var(--space-3); }
html.is-large-text .scr-teacher .pv-hero { font-size: var(--math); }
html.is-large-text .scr-teacher .chips, html.is-large-text .scr-teacher .selbar { gap: var(--space-2); }
html.is-large-text .scr-teacher .tplbar > * { flex: 1 1 100%; }
html.is-large-text .scr-teacher .drop--target { padding: var(--space-4) var(--space-3); }

.scr-teacher .tab-btn[aria-current="page"] { color: var(--brand); border-bottom-color: var(--brand); font-weight: var(--weight-announce); }

.scr-teacher .work { margin: 0 0 var(--space-5); padding: 0 0 var(--space-4); border-bottom: var(--hairline) solid var(--border); }
.scr-teacher .work:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: 0; }
.scr-teacher .work-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-2) var(--space-3); margin: 0 0 var(--space-2); }
.scr-teacher .work-n { color: var(--muted); font-size: var(--text-sm); font-weight: var(--weight-announce); font-variant-numeric: tabular-nums; letter-spacing: var(--track-caps); text-transform: uppercase; }

.scr-teacher .work-m { margin: 0; font-size: var(--math); line-height: 1.5; overflow-x: auto; overflow-y: hidden; }
.scr-teacher .work-m .katex { font-size: 1em; }

.scr-teacher .sc { display: grid; gap: var(--space-1); justify-items: end; }
.scr-teacher .sc-v { font-variant-numeric: tabular-nums; white-space: nowrap; }
.scr-teacher .sc-v b { font-weight: var(--weight-announce); }
.scr-teacher .sc-p { color: var(--muted); font-size: var(--text-sm); font-variant-numeric: tabular-nums; line-height: var(--lh-snug); }
.scr-teacher .sc-k { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: var(--space-1); }

.scr-teacher .tbl--grid { --table-min: 72rem; }
.scr-teacher .tbl--hwr { --table-min: 60rem; }
.scr-teacher .tbl--res { --table-min: 40rem; }

.scr-teacher .col-s { display: block; color: var(--muted); font-size: var(--text-sm); font-weight: var(--weight-read); line-height: var(--lh-snug); }

.scr-teacher .band { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; column-gap: var(--space-3); row-gap: var(--space-1); padding: var(--space-2) 0; }
.scr-teacher .band + .band { border-top: var(--hairline) solid var(--border); }
.scr-teacher .band-k { min-width: 0; line-height: var(--lh-snug); text-wrap: pretty; }
.scr-teacher .band-v { font-variant-numeric: tabular-nums; font-weight: var(--weight-announce); white-space: nowrap; }
.scr-teacher .band-bar { grid-column: 1 / -1; display: block; width: 100%; height: var(--progress-h); border-radius: var(--radius-pill); background: var(--border); overflow: hidden; }
.scr-teacher .band-bar > span { display: block; height: 100%; background: var(--brand); }

@container screen (max-width: 599px) {

  .scr-teacher .sc { justify-items: start; }
  .scr-teacher .sc-k { justify-content: flex-start; }
}
html.is-large-text .scr-teacher .work-h { display: grid; }
html.is-large-text .scr-teacher .sc { justify-items: start; }

.scr-teacher .ac-field {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  min-block-size: var(--tap);
  display: flex;
  align-items: center;
  padding: var(--space-1) var(--space-3);
  background: var(--bg);
  border: var(--hairline) solid var(--border-strong);
  border-radius: var(--radius-sm);
  overflow-x: auto;
  scrollbar-width: none;
  cursor: text;
}
.scr-teacher .ac-field::-webkit-scrollbar { display: none; }
.scr-teacher .ac-field.is-active { border-color: var(--brand); }
.scr-teacher .ac-field:focus-within { outline: var(--focus-w) solid var(--focus); outline-offset: var(--focus-off); }

.scr-teacher .ac-input { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; margin: 0; padding: 0; background: transparent; border: 0; caret-color: transparent; color: transparent; cursor: text; opacity: 0; }
.scr-teacher .ac-show { display: inline-flex; align-items: center; white-space: nowrap; pointer-events: none; }

.scr-teacher .ac-prev { color: var(--fg); font-family: var(--font-math); font-size: var(--math-field); line-height: 1.2; white-space: nowrap; }
.scr-teacher .ac-prev .katex { font-size: 1em; color: var(--fg); }
.scr-teacher .ac-ph { color: var(--muted); }
.scr-teacher .ac-caret { display: none; inline-size: var(--hairline); block-size: 1.2em; margin-inline-start: var(--hairline); background: var(--fg); }
.scr-teacher .ac-field:focus-within .ac-caret { display: inline-block; }
.scr-teacher .ac-mx { display: flex; align-items: stretch; gap: var(--space-2); margin-block-start: var(--space-2); }
.scr-teacher .ac-mx-br { flex: none; inline-size: var(--space-3); border-block: var(--hairline) solid var(--border-strong); }
.scr-teacher .ac-mx-br--l { border-inline-start: 2px solid var(--border-strong); }
.scr-teacher .ac-mx-br--r { border-inline-end: 2px solid var(--border-strong); }
.scr-teacher .ac-mx-grid { flex: 1 1 auto; min-width: 0; display: grid; gap: var(--space-2); }
.scr-teacher .ac-mx-grid .ac-field { min-inline-size: 0; padding-inline: var(--space-2); }

html.is-large-text .scr-teacher .ac-mx-grid { grid-template-columns: minmax(0, 1fr) !important; }
html.is-large-text .scr-teacher .ac-mx-br { display: none; }
.scr-teacher .k1-pad {
  flex: none;
  margin: var(--space-3) calc(-1 * var(--gutter)) 0;
  padding: var(--space-3) var(--gutter) calc(var(--space-4) + env(safe-area-inset-bottom, 0px));
  background: var(--bg);
  border-block-start: var(--hairline) solid var(--border);
}

.scr-teacher .k1-pad > .keypad, html.is-large-text .scr-teacher .k1-pad > .keypad { margin: 0; padding: 0; background: none; border-block-start: 0; }
.scr-teacher .keypad--k1 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
html.is-large-text .scr-teacher .k1-pad { position: static; margin-block-start: var(--space-3); padding-block-end: calc(var(--space-3) + env(safe-area-inset-bottom, 0px)); }

.scr-teacher .k1-tabs { display: flex; gap: var(--space-1); margin-block-end: var(--space-2); overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; }
.scr-teacher .k1-tabs::-webkit-scrollbar { display: none; }
.scr-teacher .k1-tab {
  flex: 1 1 auto; min-inline-size: 0;
  min-block-size: var(--tap-min);
  padding: var(--space-2) var(--space-2);
  background: none; border: 0; border-radius: var(--radius-sm);
  color: var(--muted);
  font-family: var(--font-ui); font-size: var(--type-meta); font-weight: var(--weight-ui);
  line-height: var(--lh-snug); white-space: nowrap;
}
.scr-teacher .k1-tab:hover { background: var(--surface); }

.scr-teacher .k1-tab { flex: 1 1 auto; min-inline-size: 44px; padding-inline: var(--space-1); }
.scr-teacher .k1-tab[aria-selected="true"] { background: var(--surface); color: var(--brand); font-weight: var(--weight-announce); box-shadow: inset 0 calc(-1 * var(--edge)) 0 0 var(--brand); }

.scr-teacher .ak-chg .k1-pad { min-inline-size: 0; margin-inline: calc(-1 * var(--space-4)); padding-inline: var(--space-2); }

.scr-teacher .ak-chg .k1-tab { flex: 0 0 auto; }

@container screen (max-width: 369.98px) {
  .scr-teacher .ak-chg .k1-pad {
    margin-inline: calc(-1 * (2.5rem + var(--space-3) + var(--space-4) + var(--hairline))) calc(-1 * (var(--space-4) + var(--hairline)));
    padding-inline: 0;
  }
}
html.is-large-text .scr-teacher .ak-chg .k1-pad { margin-inline: calc(-1 * (var(--space-4) + var(--hairline))); padding-inline: 0; }
html.is-large-text .scr-teacher .ak-chg .k1-pad .keypad--k1 { gap: var(--space-1); }

.scr-teacher .ac-show { display: inline-grid; grid-template-columns: auto auto; align-items: center; justify-items: start; row-gap: var(--space-1); }
.scr-teacher .ac-typed { grid-row: 1; grid-column: 1; color: var(--muted); font-size: var(--type-meta); line-height: var(--lh-snug); }
.scr-teacher .ac-ph { grid-row: 1; grid-column: 1; }
.scr-teacher .ac-caret { grid-row: 1; grid-column: 2; }
.scr-teacher .ac-prev { grid-row: 2; grid-column: 1 / -1; }

.scr-teacher .ac-field:has(.ac-typed) { padding-block: var(--space-2); }

.scr-teacher .ak-count { margin: var(--space-4) 0 0; color: var(--brand); font-size: var(--text-sm); font-weight: var(--weight-announce); font-variant-numeric: tabular-nums; line-height: var(--lh-snug); }
.scr-teacher .ak-list { margin-top: var(--space-2); border-top: var(--hairline) solid var(--border); }

.scr-teacher .ak-r { padding-inline: var(--space-2); margin-inline: calc(-1 * var(--space-2)); }
.scr-teacher .ak-r:focus-visible, .scr-teacher .ak-r.is-at { outline: var(--focus-w) solid var(--focus); outline-offset: var(--focus-off); border-radius: var(--radius-sm); }
.scr-teacher .ak-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: var(--space-3) var(--space-5); }
.scr-teacher .ak-f { min-width: 0; }
.scr-teacher .ak-k { margin: 0; color: var(--muted); font-size: var(--text-sm); font-weight: var(--weight-announce); line-height: var(--lh-snug); }
.scr-teacher .ak-v { margin: var(--space-1) 0 0; line-height: var(--lh-snug); text-wrap: pretty; }
.scr-teacher .ak-f .prob-m { margin-top: var(--space-1); }

.scr-teacher .mark-ans { margin-block-start: var(--space-3); }
.scr-teacher .mark-ans > .note { margin: 0 0 var(--space-3); }
.scr-teacher .mark-ans > .group { margin-block-start: 0; }
.scr-teacher .mark-ans .opt-row { margin-inline: 0; }
.scr-teacher .ak-none { margin: 0; max-width: var(--measure); line-height: var(--lh-snug); text-wrap: pretty; }
.scr-teacher .ak-acts { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-3); }
.scr-teacher .ak-all { margin-top: var(--space-5); }
.scr-teacher .ak-ok { margin: 0 0 var(--space-4); }

.scr-teacher .ak-chg { display: grid; gap: var(--space-4); padding: var(--space-4); border: var(--hairline) solid var(--border); border-radius: var(--radius-md); background: var(--surface); max-inline-size: var(--measure); }
.scr-teacher .ak-chg .group { margin: 0; }
@container screen (max-width: 1023px) {
  .scr-teacher .ak-facts { grid-template-columns: minmax(0, 1fr); }
}
html.is-large-text .scr-teacher .ak-facts { grid-template-columns: minmax(0, 1fr); }

@container screen (max-width: 347.98px) {
  html.is-large-text .scr-teacher .ak-chg .k1-pad {
    margin-inline: calc(-1 * (var(--gutter) - var(--space-1) + var(--space-4) + var(--hairline)));
  }
}

@container screen (max-width: 494.48px) {
  html.is-large-text .scr-teacher .keypad--k1 .keypad-key[data-key^="sqrt("] {
    font-size: calc((var(--tap-min) - 2 * var(--space-1)) / 1.433);
  }
}

.scr-teacher .lib-main > .lib-txt + .ico { margin-inline-start: auto; }

.scr-teacher .sheet-inner { margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); }

.scr-teacher .sheet-scroll[data-curric="picker"] { margin-inline: calc(-1 * var(--space-2)); padding-inline: var(--space-2); }

.scr-teacher fieldset.field { margin: 0 0 var(--space-5); padding: 0; border: 0; min-inline-size: 0; }
.scr-teacher fieldset.field > legend { margin-block-end: var(--space-2); padding: 0; }
.scr-teacher .days { display: grid; grid-template-columns: repeat(auto-fill, minmax(4.75rem, 1fr)); gap: var(--space-2); }
.scr-teacher .day {
  display: inline-flex; align-items: center; gap: var(--space-2); min-height: var(--tap);
  padding: 0 var(--space-3); border: var(--hairline) solid var(--border-strong); border-radius: var(--radius-sm);
  background: var(--bg); line-height: var(--lh-snug);
}
.scr-teacher .day input { width: var(--control-size-lg); height: var(--control-size-lg); margin: 0; accent-color: var(--brand); }
.scr-teacher .day:has(input:checked) { border-color: var(--brand); background: var(--brand-wash); }
.scr-teacher .day:has(input:focus-visible) { outline: var(--focus-w) solid var(--focus); outline-offset: var(--focus-off); }
.scr-teacher .day input:focus-visible { outline: none; }
.scr-teacher .day:has(input:disabled) { color: var(--muted); }

.scr-teacher .pickbar--above { margin-block-end: var(--space-5); }

.scr-teacher .tbl-cards--map { grid-template-columns: repeat(auto-fit, minmax(min(12rem, 100%), 1fr)); align-items: start; }
.scr-teacher .tbl-cards--map .tbl-card { align-content: start; }

.scr-teacher .compose-add { margin-block-start: var(--space-4); }

.scr-teacher .sum-extra { margin: calc(-1 * var(--space-2)) 0 var(--space-4); color: var(--muted); font-size: var(--text-sm); line-height: var(--lh-snug); }

.scr-teacher .ed-say { margin-block-start: var(--space-5); }

.scr-teacher .imp-u13 .opt-row { margin-inline: 0; }

.scr-teacher .imp-u13 { margin-block-end: var(--space-5); }
.scr-teacher .imp-u13 + .note--callout { margin-block-end: var(--space-5); }
/* === END SCREEN LAYOUTS === */

/* UI 1, 11-27 (UI 4's 375/200% sweep, Ops): at 200% the Ask box opens three lines tall, not two. Two
   (140px) cut its placeholder ("What don't you follow?" needs 186px). It overrides the mocks' two-line
   rule above until the walkthrough mocks take three; the slim entry's own rule still wins there. */
html.is-large-text :is(.scr-walk, .scr-around) .ask-row textarea {
  min-height: calc(3 * var(--lh-snug) * 1em + 2 * var(--space-3) + 2 * var(--hairline));
}

/* UI 1, 11-29 (A94): the method line's source as a button stays inside the method row. At 320 and
   200%, "How Illustrative Mathematics does it is coming later." pushed it 27px past the screen;
   capped, the words wrap inside the outline. */
.scr-around .method .tbtn--src { max-inline-size: 100%; }

/* UI 1, 11-19, outside the generated block so the screens sync keeps it: a point's letter in a keyed plane (#1672). */
.scr-walk .f-t--pt { font-size: 15px; font-style: italic; }

/* UI 1, 11-19, outside the generated block so the screens sync keeps them: P31's install bar (#1680). */
/* P31 (Jeff, 11-19; Tess #1677): the offer as a bar pinned above the dock (a row of the screen's grid,
   like the update notice), not a card in the page. */
.scr-settings .install--bar {
  margin-top: 0; padding: var(--space-3) var(--gutter); border-radius: 0;
  border-top: var(--hairline) solid var(--border);
}
/* At 200% the bar is one column with no icon, its buttons full width, so nothing spills out of a
   button (frames owed in the next settings round; Tess #1677). */
html.is-large-text .scr-settings .install--bar { grid-template-columns: minmax(0, 1fr); }
html.is-large-text .scr-settings .install--bar .install-ico { display: none; }
html.is-large-text .scr-settings .install--bar .install-acts { grid-column: 1; }
html.is-large-text .scr-settings .install--bar .install-acts > * { inline-size: 100%; }
/* Pinned at 200%, the bar would leave the page a sliver, between a student and their homework. So
   a screen with the offer scrolls as one at 200% (as Security's does): the offer comes after the page,
   and the dock stays stuck at the bottom. */
html.is-large-text .app.od-screen:has(.install--bar) { display: block; overflow-y: auto; overscroll-behavior: contain; }
html.is-large-text .app.od-screen:has(.install--bar) .body { overflow: visible; }
html.is-large-text .app.od-screen:has(.install--bar) .dock { position: sticky; inset-block-end: 0; z-index: 1; }
/* A tablet (Tess, A78, 11-21): the bar spans the page's centred column above the dock, as the dock
   does (the 600px column rule pads it). From 1024px a dashboard's column is 1200px with the gutter
   inside it, so there the bar takes the body's own inset, not the narrow column's. */
@container screen (min-width: 1024px) {
  .app.od-screen:is(:has(.acct-cols), :has(.home-cols), :has(.scr-home.scr-parent), :has(.scr-org)) .install--bar {
    padding-inline: calc(max(0px, (100% - var(--screen-col, 100%)) / 2) + var(--space-6));
  }
}

/* UI 1, 11-19, outside the generated block so the screens sync keeps them: at 200% text the figure's
   22rem column doubles and leaves the problem's column almost nothing (1280 :large; Tess on #1672), so
   the walkthrough stays one column and the figure sits in its step, as on a phone. */
html.is-large-text .scr-walk .figlayout-in { grid-template-columns: minmax(0, 1fr); }
html.is-large-text .scr-walk .figlayout-fig { display: none; }
html.is-large-text .scr-walk .diagram--instep { display: block; }
/* UI 1, 11-21, outside the generated block: P08's Edit problem at 200% (Tess, A79, worksheet-r14 ·
   edit-problem-large). The pad is in the flow under the field (#1782), and the field (its label and
   cell) stays pinned at the top while the keys scroll under it, as the homework sheet's does. */
html.is-large-text .scr-capture .sheet-scroll .mf-sticky {
  position: sticky; top: 0; z-index: 2;
  margin-inline: calc(-1 * var(--space-2)); padding: 0 var(--space-2) var(--space-3);
  background: var(--bg);
}

/* UI 3, 11-18: two teacher spacings outside the generated block, so the screens sync keeps them,
   until Tess's teacher mock draws them. A pickbar above a section (Who can sign in's New codes for
   the whole class) takes the section's own space; Library → Type's "Add another problem" sits G7's
   16px under the last row (Tess's audit #1535, #1532). */
.scr-teacher .pickbar--above { margin-block-end: var(--space-5); }
.scr-teacher .compose-add { margin-block-start: var(--space-4); }

/* UI 3, 11-21, outside the generated block so the syncs keep it (notes for Tess §2): P19 at 200% on a
   touch screen (worksheet-r14 · homework-pad-200). The pad is in the flow under the focused cell's
   block, and that block (its cell and label, or its group's heading) stays pinned at the top of the
   scroller while the keys scroll under it. The touch hint is under the pad, out of the pin. A laptop
   (a fine pointer) pins nothing. */
@media (pointer: coarse) {
  /* Several rows (Add another): only the focused row pins (Tess, 2026-11-21, WCAG 2.4.11). The block
     and its list give up their boxes, so the row sticks within the group, which holds the pad. */
  html.is-large-text .scr-check .ac-pin.is-pinrows,
  html.is-large-text .scr-check .ac-pin.is-pinrows > .ac-rows { display: contents; }
  html.is-large-text .scr-check .ac-pin.is-pinrows > .ac-rows > .ac-row { margin-block-start: var(--space-3); }
  /* The step being typed pins the same way: its list gives up its box, so the row sticks within
     the steps' group, which holds the pad after Add a step (Tess, 2026-11-21). The row keeps its own
     band and padding. */
  html.is-large-text .scr-check .step-list.is-pinrows { display: contents; }
  html.is-large-text .scr-check .step-list.is-pinrows > .step-list__row.is-pinned {
    position: sticky; top: 0; z-index: 2; background: var(--bg);
    /* Its band stops short of the gutters: the ground runs on to them, so nothing under it shows. */
    box-shadow: calc(-1 * var(--gutter)) 0 var(--bg), var(--gutter) 0 var(--bg);
  }
  html.is-large-text .scr-check .ac-pin.is-pinned,
  html.is-large-text .scr-check .ac-pin.is-pinrows > .ac-rows > .ac-row.is-pinned {
    position: sticky; top: 0; z-index: 2;
    margin-inline: calc(-1 * var(--gutter)); padding: 0 var(--gutter) var(--space-3);
    background: var(--bg);
  }
  /* A sticky box pins inside its scroller's padding, so the keys showed in the 32px strip above the
     pinned cell. While a cell pins, the scroller's top space is its first child's margin instead. */
  html.is-large-text .sheet-scroll:has(.scr-check :is(.ac-pin, .ac-row, .step-list__row).is-pinned) { padding-block-start: 0; }
  html.is-large-text .sheet-scroll:has(.scr-check :is(.ac-pin, .ac-row, .step-list__row).is-pinned) > :first-child { margin-block-start: var(--space-4); }
}

/* UI 3, 11-21, outside the generated block so the syncs keep it (notes for Tess §2): position:
   relative makes a table's scroller the containing block of what's absolutely placed inside it (a
   cell's .sr-only text), so that's clipped with the table instead of widening the page. On a wide
   grid every hidden span sat at its column's x and the whole page scrolled sideways (UI 3's 200%
   text walk of Results, 11-20). */
.tbl-wrap { position: relative; }

/* UI 3, 11-22, outside the generated block so the syncs keep it (notes for Tess §2): an open sheet
   prints alone (P24, Tess 2026-11-22, A85 Item 8). Only the sheet's contents print, from the top of
   the page at the paper's full width, across as many pages as they need: the screen behind it and
   the scrim are hidden, the sheet's own boxes (fixed, translated, height-capped, scrolled) give way,
   and its head buttons, grab handle and foot don't print. The app's Sheet sits inside its screen,
   so what's hidden is everything that neither holds the sheet nor is in it. A page carrying a
   print-only copy (the code cards) prints that copy instead, by the rule above, so this stands down. */
@media print {
  body:not(:has(> .print-only)):has([role="dialog"][aria-modal="true"])
    :not(:has([role="dialog"][aria-modal="true"])):not([role="dialog"][aria-modal="true"]):not([role="dialog"][aria-modal="true"] *) {
    display: none !important;
  }
  body:not(:has(> .print-only)) :has(> [role="dialog"][aria-modal="true"]),
  body:not(:has(> .print-only)) :has([role="dialog"][aria-modal="true"]) {
    position: static !important; inset: auto !important; transform: none !important; translate: none !important;
    block-size: auto !important; max-block-size: none !important; overflow: visible !important;
    margin: 0 !important; padding: 0 !important; border: 0 !important; box-shadow: none !important;
  }
  body:not(:has(> .print-only)) [role="dialog"][aria-modal="true"] {
    position: static !important; inset: auto !important; transform: none !important; translate: none !important;
    animation: none !important; inline-size: auto !important; max-inline-size: none !important;
    block-size: auto !important; max-block-size: none !important; overflow: visible !important;
    border-radius: 0 !important; box-shadow: none !important;
  }
  body:not(:has(> .print-only)) [role="dialog"][aria-modal="true"] :is(.sheet-scroll, .dlg-body, .sheet-inner) {
    overflow: visible !important; max-block-size: none !important; block-size: auto !important;
  }
  body:not(:has(> .print-only)) [role="dialog"][aria-modal="true"] :is(.sheet-grab, .sheet-foot, .dlg-foot),
  body:not(:has(> .print-only)) [role="dialog"][aria-modal="true"] :is(.sheet-head, .dlg-head) :is(button, a) {
    display: none !important;
  }
}

/* UI 1, 11-14, outside the generated block so the screens sync keeps them (notes for Tess §2). */
/* The parent pages' wrapper is no box of its own (as .scr-signup): as a block in the screen's body
   row it grew to its whole content, the app frame scrolled instead of the body, and a sheet opened
   over it was carried up off its bottom edge (Stop seeing's confirm). */
.od-screen > .scr-parent { display: contents; }
/* P23's Other units: a unit's name over its worksheet count, as Your account's rows (.scr-acct); it
   ran the two together ("Quadratic equations4 worksheets"). */
.scr-parent .rows { list-style: none; margin: 0; padding: 0; }
.scr-parent .rows > li + li { border-top: var(--hairline) solid var(--border); }
.scr-parent .row-static { padding: var(--space-3) 0; }
.scr-parent .row-t { display: grid; gap: var(--space-1); min-width: 0; }
.scr-parent .row-t > * { display: block; margin: 0; }
.scr-parent .row-n { font-weight: var(--weight-ui); line-height: var(--lh-snug); text-wrap: pretty; }
.scr-parent .row-s { color: var(--muted); font-size: var(--type-meta); line-height: var(--lh-snug); text-wrap: pretty; }

/* Tess's nit (11-11): a teacher row's trailing chevron keeps to the row's end whatever its text's length
   (repwise-unit's "Practice B" at 375 drew it beside the name). Outside the generated block, so the
   screens sync keeps it. */
.scr-teacher .lib-main > .lib-txt + .ico { margin-inline-start: auto; }

/* The generated .scr-console .chip above is the console's pressable chip (a template's merge fields).
   A read-only state chip keeps the base .chip and its kind's tint, or Overdue can't look like a warning
   (P29; Tess agreed 11-11). Drop this once the mock scopes its rule to button.chip. */
.scr-console .chip:not(button) {
  min-height: 0; padding: var(--chip-pad-y) var(--space-2);
  border: 0; border-radius: var(--radius-control);
  background: var(--chip-wash); color: var(--chip-fg);
  font-size: var(--type-meta); font-weight: var(--weight-ui);
}
.scr-console .chip:not(button):hover { background: var(--chip-wash); }
.scr-console .chip:not(button) .ico { width: 0.875rem; height: 0.875rem; }

/* #293 (Tess, P19, ahead of the next shapes round): the answer check's pad is five columns by four
   rows (7 8 9 a/b ⌫ · 4 5 6 + − · 1 2 3 x √ · 0 across three, the point across two). A key the
   problem doesn't need leaves its cell empty, and a shape's extras are rows of five on the same grid.
   The type screen's pad keeps §26's four columns. */
.keypad--answer { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.keypad-key--span2 { grid-column: span 2; }
.keypad-key--span3 { grid-column: span 3; }

/* P19 "The full answer keypad" (Tess, 2026-11-05; #873): tabs over a 4×5 panel, column 5 the same
   on every panel (⌫ ← → □ⁿ). The tabs are one row of 44px buttons; the chosen one is a heavier rule
   under its words, never colour alone. At 320 a key is 48px (24px sides, 8px gaps). */
.keypad-tabs {
  grid-column: 1 / -1;
  display: flex;
  gap: var(--space-1);
}
/* Tabs share the row by their labels and never drop below gate 39's 44px, with tight padding, so
   "Functions" never runs into the next tab at 320 or 375 (Tess, 11-06, after Run K3's frames). */
.keypad-tab {
  flex: 1 1 auto;
  min-inline-size: 44px;
  min-block-size: var(--tap-min);
  padding: var(--space-2) var(--space-1);
  background: none;
  border: 0;
  border-radius: var(--radius-control);
  color: var(--muted);
  font-size: var(--type-meta);
  font-weight: var(--weight-ui);
  line-height: var(--lh-snug);
  white-space: nowrap;
}
.keypad-tab:hover { background: var(--surface); }
.keypad-tab[aria-selected="true"] {
  background: var(--surface);
  color: var(--brand);
  font-weight: var(--weight-announce);
  box-shadow: inset 0 calc(-1 * var(--edge)) 0 0 var(--brand);
}
.keypad-panel {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--space-2);
}
/* A structure key's empty slot (answer-check-shapes-r3 · pad-filled): a small dashed box in the
   reading and on the key's face, smaller for an index or a base. */
.katex .slot {
  position: relative;
  display: inline-block;
  box-sizing: border-box;
  inline-size: 0.78em;
  block-size: 0.78em;
  vertical-align: -0.04em;
  overflow: hidden;
  border: var(--hairline) dashed var(--border-strong);
  border-radius: 2px;
}
.katex .slot--sm { inline-size: 0.6em; block-size: 0.6em; }
.keypad-key .katex .slot { inline-size: 0.68em; block-size: 0.68em; }
.keypad-key .katex .slot--sm { inline-size: 0.52em; block-size: 0.52em; }

/* P19 "The keypad, revised" (Tess, 11-19, #1678; Jeff: the pad at the foot of the answer sheet pushed
   the field and the problem off a phone's screen). The navigation row under every panel: ← ↑ ↓ →
   and Done, or Next field while another cell follows. */
.keypad-nav {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--space-2);
}
.keypad-key[data-key="done"] { font-size: var(--type-meta); font-weight: var(--weight-announce); }
/* 200% text (UI 4's pre-beta sweep, 11-27): "Done" is 66px of text on a 44px key at 375 (staging:
   273–339 on a 284–328 key), so the row's last key (Done, or Next field in its place) takes a row
   of its own under the four arrows, as wide as the pad. */
html.is-large-text .keypad-nav { grid-template-columns: repeat(4, minmax(0, 1fr)); }
html.is-large-text .keypad-nav > :last-child { grid-column: 1 / -1; }
/* On a touch screen (coarse pointer, not at 200% text: Keypad's useOverlay) the pad is a keyboard
   docked to the screen's foot, over the page, risen while a math cell has the focus. */
.keypad--float {
  position: fixed;
  inset-inline: 0;
  inset-block-end: 0;
  z-index: 6;
  margin: 0;
  padding-inline: var(--gutter);
  transform: translateY(100%);
  visibility: hidden;
  transition: transform var(--dur-exit) var(--ease-out), visibility 0s linear var(--dur-exit);
}
.keypad--float.is-up { transform: none; visibility: visible; transition: transform var(--dur-enter) var(--ease-out); }
@media (prefers-reduced-motion: reduce) { .keypad--float, .keypad--float.is-up { transition: none; } }
@container screen (min-width: 600px) {
  .keypad--float { padding-inline: max(var(--gutter), calc((100% - var(--screen-col)) / 2)); }
}
/* While it's up the page reserves its height (--kp-h, set on .app while it's up), so the cell and
   everything above it can scroll clear of it, and the sheet's foot steps aside until Done. */
.sheet:has(.keypad--float.is-up) .sheet-scroll,
.ac-inline:has(.keypad--float.is-up) .ac-scroll { padding-block-end: calc(var(--kp-h, 0px) + var(--space-3)); }
.scr-check:has(.keypad--float.is-up) .ac-foot { display: none; }
/* What's being filled is always visible (P19 revised): a math cell's face (MathFace) is drawn over
   its field, with its caret beside the typed mark it follows. The slot holding the caret is a solid
   --brand box with the --brand-wash tint, empty or filled (drawn without moving the math); every
   other empty slot stays dashed. On a touch screen a tap anywhere on the cell is the face's (the
   field under it takes no pointer), and puts the caret where it lands, a slot's target 44px; a
   laptop's pointer goes to the field as before, so selecting and its menu still work (UI 1). */
.ac-show.ac-face { pointer-events: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.ac-show .ac-caret.ac-caret--at { position: absolute; margin: 0; }
/* A cell holding a stacked fraction is tall enough for it, every cell (P19 revised; A65's rule from
   answer-check-shapes-r4: mixed-entry and conic-standard clipped by 0.7 and 1.7px at 375). Only in a
   cell's face: a read-only answer (a summary, a list row) stays in its line (UI 1's review). */
.ac-show .ac-prev--tall { display: flex; align-items: center; min-block-size: 3em; }
.ac-field:has(> .ac-face), .ac-show.ac-face { position: relative; }
@media (pointer: coarse) {
  :is(.ac-field, .ac-cell):has(> .ac-face) > input { pointer-events: none; }
}
.katex .slot.slot--on { border-style: solid; border-color: var(--brand); background: var(--brand-wash); }
.katex .slot-on { border-radius: 2px; background: var(--brand-wash); box-shadow: 0 0 0 var(--hairline) var(--brand); }
/* P19 "The repeat bar" (Tess, 11-26; A93): the bar is 2px in the math ink, over exactly the block
   (KaTeX sets its line's width inline, so this needs !important). KaTeX places the bar from the TeX
   height, so the caret's slot under it moves down 0.2em, a transform and not layout, and its border
   clears the bar; a filled slot holding the caret too. */
.katex .rep .overline-line { border-block-end-width: 2px !important; }
.katex .rep :is(.slot.slot--on, .slot-on) { transform: translateY(0.2em); }
/* P06 (P19 revised, Tess 11-19): a typed row is a math cell too. Its face is drawn over the field,
   whose own text goes clear, so a structure's brackets never show and a tap places the caret; the
   field keeps its frame, focus ring and error state. The pad sits in the body under the rows (on a
   laptop, under the cell); while it's up on a touch screen the dock steps aside (Done hands its
   button the focus) and the body reserves the pad's height. */
.ac-cell { position: relative; display: block; }
.ac-cell > .inp { color: transparent; caret-color: transparent; }
.ac-cell > .ac-show.ac-face {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  inline-size: auto;
  padding-inline: var(--space-3);
  overflow-x: auto;
  scrollbar-width: none;
  white-space: nowrap;
}
.ac-cell > .ac-show.ac-face::-webkit-scrollbar { display: none; }
.ac-cell .ac-prev { color: var(--fg); font-family: var(--font-math); font-size: var(--math); line-height: 1.2; white-space: nowrap; }
.ac-cell .ac-prev .katex { font-size: 1em; color: var(--fg); }
.ac-cell .ac-caret { display: none; inline-size: var(--hairline); block-size: 1.2em; margin-inline-start: var(--hairline); background: var(--fg); }
.ac-cell:focus-within .ac-caret { display: inline-block; }
@media (prefers-reduced-motion: no-preference) {
  .ac-cell:focus-within .ac-caret { animation: ac-blink-cell 1s steps(1) infinite; }
}
@keyframes ac-blink-cell { 50% { opacity: 0; } }
.scr-capture:has(.keypad--float.is-up) .dock--kp { display: none; }
.scr-capture:has(.keypad--float.is-up) .body { padding-block-end: calc(var(--kp-h, 0px) + var(--space-3)); }
/* P06's extras row (y · = · z) on the answer pad's grid, as .scr-shapes lays a template's out. */
.scr-capture .ac-keys { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: var(--space-2); }

/* G3 (figures, F1), walkthrough-r24 · graph-log-step1, graph-log-step4: the plane's labels are
   LaTeX, so they're typeset math over the drawing on the mock's plates (its f-plate), placed as a
   fraction of the drawing so they stay on their point as it scales. A dashed curve and a shaded
   inequality region (the spec's style and RegionEl) are the f-* strokes' build additions. */
.fig-plane { position: relative; }
.fig-lab {
  position: absolute; left: calc(var(--fx) * 100%); top: calc(var(--fy) * 100%);
  transform: translate(-50%, -50%);
  padding: var(--space-1) var(--space-2); border-radius: var(--radius-control);
  background: var(--mark-1); color: var(--muted);
  font-size: var(--type-meta); line-height: 1; white-space: nowrap; pointer-events: none;
}
.fig-lab .katex { color: inherit; }
.fig-lab.is-hi { color: var(--brand); }
/* 17 §15.5 (Tess on #1672): when a point's plate has no place beside it, the whole figure goes to a key.
   The dots carry their letters and the coordinates sit in a list under the plot, at the reading size.
   It wraps between items, never inside one, the items apart by a gap and no separator.
   At 200% every value joins the key and the letters are drawn as markings (.f-t--pt). The
   coordinates' plates are still measured, unseen. */
.fig-lab--measure { visibility: hidden; }
.fig-key {
  display: flex; flex-wrap: wrap; justify-content: center; column-gap: var(--space-4);
  margin: var(--space-2) 0 0; padding: 0; list-style: none;
  font-size: var(--type-body); color: var(--fg);
}
.fig-key-run { white-space: nowrap; }
/* 17 §15.3 (catalogue-walkthrough-r3 · sign-chart-*): the number line's labels sit on the line with no
   plate, a critical number in ink (the highlight colour when its dot is the answer's) and a section's
   test number muted under it; the solution's rays end in a filled head (the mock's f-hi-fill). */
.fig-line .fig-lab { background: none; padding: 0; color: var(--fg); }
.fig-line .fig-lab--bare { color: var(--muted); }
.fig-line .fig-lab.is-hi { color: var(--brand); font-weight: var(--weight-announce); }
.f-hi-fill { fill: var(--brand); stroke: none; }
.f-dashed { stroke-dasharray: 6 4; }
.f-shade { fill: var(--mark-1); stroke: none; }
.f-shade--hi { fill: var(--mark-2); }
/* G3 F2, walkthrough-r24 · figure-full: the view's pan and zoom are knobs, not an inline transform. */
.figfull-in {
  transform: translate(calc(var(--zx, 0) * 1px), calc(var(--zy, 0) * 1px)) scale(var(--zs, 1));
}

/* G3 (#313, #268), catalogue-walkthrough-r1 · slope-field-step and its f-open: a slope field's
   strokes (the frame's f-mark weight; in --brand when they're the step's highlight), and the open end
   of a piece or a hole, hollow where the closed end is filled. */
.f-field { fill: none; stroke: var(--border-strong); stroke-width: 1.25; stroke-linecap: round; }
.f-field--hi { stroke: var(--brand); stroke-width: 1.75; }
.f-open { fill: var(--bg); stroke: var(--fg); stroke-width: 2; }
.f-hi-open { fill: var(--bg); stroke: var(--brand); stroke-width: 3; }

/* Step 14a-2, account-r22 (account-home, settings-timezone): the account screens' rows, cards and
   country combobox, from the frame's own sheet. Scoped to .scr-acct: .rows, .card and .row-act mean
   other things elsewhere in this file. */
/* A wrapper only for scoping: the frame's body and dock lay out as if it weren't there. */
.scr-acct { display: contents; }
.scr-acct .sec-h { margin-block: var(--space-6) var(--space-1); }
.scr-acct .sec-s { margin: var(--space-2) 0 0; color: var(--muted); font-size: var(--text-sm); line-height: var(--lh-snug); text-wrap: pretty; }
.scr-acct .rows { list-style: none; margin: var(--space-2) calc(-1 * var(--space-2)) 0; padding: 0; }
.scr-acct .rows > li + li { border-top: var(--hairline) solid var(--border); }
.scr-acct .row, .scr-acct .row-static {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center;
  column-gap: var(--space-3); width: 100%; min-height: calc(var(--tap) + var(--space-2));
  padding: var(--space-3) var(--space-2); border: 0; border-radius: var(--radius-control);
  background: transparent; color: inherit; text-align: start; text-decoration: none;
}
.scr-acct .row:active { background: var(--surface-sunk); }
@media (hover: hover) {
  .scr-acct .row:hover { background: var(--surface); }
}
.scr-acct .row-t { display: grid; gap: var(--space-1); min-width: 0; }
.scr-acct .row-t > * { display: block; margin: 0; }
.scr-acct .row-n { font-weight: var(--weight-ui); line-height: var(--lh-snug); text-wrap: pretty; }
.scr-acct .row-s { color: var(--muted); font-size: var(--text-sm); line-height: var(--lh-snug); text-wrap: pretty; }
.scr-acct .row > .ico { width: 1.125rem; height: 1.125rem; color: var(--muted); }
.scr-acct .take > li::before { content: ""; inline-size: var(--space-1); block-size: var(--space-1); margin-block-start: 0.62em; border-radius: var(--radius-pill); background: var(--border-strong); }
html.is-large-text .scr-acct .row-static { grid-template-columns: minmax(0, 1fr); row-gap: var(--space-2); justify-items: start; }
.scr-acct .card { margin-top: var(--space-3); padding: var(--space-2) var(--space-4); border-radius: var(--radius-card); background: var(--surface); }
.scr-acct .card > .rows { margin-top: 0; }
.scr-acct .card > .rows > li > .row:active, .scr-acct .card > .rows > li .row-act:active { background: var(--surface-sunk); }
@media (hover: hover) {
  .scr-acct .card > .rows > li > .row:hover { background: var(--surface-sunk); }
}
.scr-acct .card > .rows > li + li { border-top-color: var(--border-strong); border-top-color: color-mix(in srgb, var(--border-strong) 35%, transparent); }
.scr-acct .row-wide { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: var(--space-3); width: 100%; min-height: calc(var(--tap) + var(--space-2)); padding: var(--space-3) var(--space-2); }
.scr-acct .row-act {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  min-height: var(--tap); min-width: var(--tap); padding: 0 var(--space-3);
  border: 0; border-radius: var(--radius-control); background: transparent;
  color: var(--brand); font-weight: var(--weight-announce); line-height: var(--lh-snug); white-space: nowrap; text-decoration: none;
}
@media (hover: hover) {
  .scr-acct .row-act:hover { background: var(--brand-wash); }
}
.scr-acct .row--two .row-act { white-space: normal; text-align: end; }
@container screen (max-width: 420px) {
  .scr-acct .row--two { grid-template-columns: minmax(0, 1fr); row-gap: var(--space-1); }
  .scr-acct .row--two .row-act {
    justify-self: start; text-align: start;
    margin-inline-start: calc(-1 * var(--space-2)); padding-inline: var(--space-2);
  }
}
.combo-box { position: relative; }
.combo-inp { width: 100%; }
.combo-list {
  position: absolute; z-index: 7; top: calc(100% + var(--space-1)); left: 0; right: 0;
  list-style: none; margin: 0; padding: var(--space-1);
  max-block-size: 15rem; overflow-y: auto; overscroll-behavior: contain;
  border: var(--hairline) solid var(--border-strong); border-radius: var(--radius-control);
  background: var(--bg);
  animation: rise-in var(--dur-enter) var(--ease-out);
}
.combo-opt {
  display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: var(--space-2);
  min-height: var(--tap); padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-control); line-height: var(--lh-snug); cursor: pointer;
}
.combo-opt > span { display: block; min-width: 0; text-wrap: pretty; }
.combo-opt .ico { width: 1rem; height: 1rem; color: var(--brand); visibility: hidden; }
.combo-opt[aria-selected="true"] { font-weight: var(--weight-ui); }
.combo-opt[aria-selected="true"] .ico { visibility: visible; }
.combo-opt.is-on { background: var(--brand-wash); }
@media (hover: hover) {
  .combo-opt:not(.is-on):hover { background: var(--surface); }
}
.combo-none { padding: var(--space-3); color: var(--muted); line-height: var(--lh-snug); text-wrap: pretty; }
.combo-count { margin: 0; color: var(--muted); font-size: var(--text-sm); line-height: var(--lh-snug); text-wrap: pretty; }
.combo .field-hint + .combo-count { margin-top: calc(-1 * var(--space-1)); }

/* ==========================================================================
   UI 3 (steps 16 and 16b; ADR 0500). Build additions to teacher-r23's layout (.scr-teacher), each
   listed in notes for Tess §0 until she folds it into the mock.
   ========================================================================== */
/* H4 Results: a trend bar's height and the class's tick, from knobs (gate 23), not inline lengths. */
.scr-teacher .trend-fill { block-size: calc(var(--p, 0) * 100%); }
.scr-teacher .trend-avg { inset-block-end: calc(var(--c, 0) * 100% - 1px); }
/* 16-3a: Start a class and Class settings pick the days a class meets (the mock has no form for
   it: its Start a class is a note). Seven boxed checkboxes in a row that wraps, a full tap each. */
.scr-teacher .days { display: grid; grid-template-columns: repeat(auto-fill, minmax(4.75rem, 1fr)); gap: var(--space-2); }
.scr-teacher .day {
  display: inline-flex; align-items: center; gap: var(--space-2); min-height: var(--tap);
  padding: 0 var(--space-3); border: var(--hairline) solid var(--border-strong); border-radius: var(--radius-control);
  background: var(--bg); line-height: var(--lh-snug);
}
.scr-teacher .day input { width: var(--control-size-lg); height: var(--control-size-lg); margin: 0; accent-color: var(--brand); }
.scr-teacher .day:has(input:checked) { border-color: var(--brand); background: var(--brand-wash); }
.scr-teacher .day:has(input:focus-visible) { outline: var(--focus-w) solid var(--focus); outline-offset: var(--focus-off); }
.scr-teacher .day input:focus-visible { outline: none; }
.scr-teacher .day:has(input:disabled) { color: var(--muted); }
.scr-teacher fieldset.field { margin: 0 0 var(--space-5); padding: 0; border: 0; min-inline-size: 0; }
.scr-teacher fieldset.field > legend { margin-block-end: var(--space-2); padding: 0; }
/* 16-3a: Class settings' "Saved." line (settings-r7's .field-ok, in this screen's scope). */
.scr-teacher .field-ok { display: flex; align-items: flex-start; gap: var(--space-2); margin: var(--space-4) 0 0; color: var(--success); font-size: var(--text-sm); line-height: var(--lh-snug); }
.scr-teacher .field-ok .ico { flex: none; inline-size: var(--ico-sm); block-size: var(--ico-sm); margin-block-start: 0.1em; }
/* 16-3a: the teacher pages use the mock's own body (.body-main, .wrap) rather than the phone
   column's .body, so a class's roster runs wide on a desk as drawn. The scope box is no box. */
.scr-teacher:has(> .body-main) { display: contents; }
.scr-teacher > .body-main { flex: 1 1 auto; }
/* 16-3a: a phone card's heading (G7 "Phones") holds the first column's CellLines; its second line
   had no rule outside .tbl, so "Ava D." and "ava.d" ran together ("Ava D.ava.d") on every DataTable
   card, T20's roster included. It takes the table cell's look. */
.tbl-card-h .t-sub { display: block; color: var(--muted); font-size: var(--type-meta); font-weight: var(--weight-read); }
/* A stacked card's value and its sub-line (Tess, 11-10; Members at 375: "Organization admin" and "the
   whole account" ran together, which the mock's table cell gets away with by being a table). */
.tbl-card dd .t-sub { display: block; color: var(--muted); }
/* 16-3a: behind Start a class's own sheet, the empty state's Start a class demotes to outlined like
   the dock's (G7), so the accent is the sheet's action. H3: so does a library item's Send to a class
   in its head, behind the send sheet. */
.app.is-under .scr-teacher .actbar .btn-primary,
.app.is-under .scr-teacher .head .btn-primary {
  background: transparent;
  color: var(--brand);
  border: var(--hairline) solid var(--border-strong);
  box-shadow: none;
}
.app.is-under .scr-teacher .actbar .btn-primary:active,
.app.is-under .scr-teacher .head .btn-primary:active { background: var(--surface-sunk); transform: none; }
/* 16-3b-1: Add students' "Is any of them under 13?" answers, one under the other. */
.scr-teacher .opts { display: grid; gap: var(--space-2); }
.scr-teacher .note--callout + .cols { margin-block-start: var(--space-6); }
.scr-teacher .note--callout + .sum, .scr-teacher .note--callout + .note--callout { margin-block-start: var(--space-4); }
.scr-teacher .ro .pick { min-height: var(--tap); }
/* 16-3b-1: the new students' cards print alone. The sheet keeps a copy of them at the end of the page
   that only print shows, so a long sheet isn't clipped by the dialog's scroll; each card is cut
   along its dashed edge and never splits across pages. */
.print-only { display: none; }
@media print {
  body:has(> .print-only) > :not(.print-only) { display: none !important; }
  .print-only { display: block; }
  .print-only .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; }
  .print-only .code-card--sheet { break-inside: avoid; border: var(--hairline) dashed var(--fg); border-radius: 0; }
}
/* Every code card's Print and Share or Copy (Jeff, 2026-11-17; P21, Tess #1517): secondary, 48px,
   Share first, in the card under the address line. Two to a row while both fit; they stack at 320px
   and at 200% text, where 7rem each no longer fits. Print prints the one card: its copy is marked
   `.print-one`, and while it is in the page any other print-only copy (a sheet's) stays hidden. The
   buttons never print. */
.code-actions { display: grid; gap: var(--space-2); margin-block-start: var(--space-2); }
.code-actions-row { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.code-actions-row > .btn-quiet { --btn-min-h: var(--tap); flex: 1 1 7rem; inline-size: auto; }
.code-actions-err { margin: 0; color: var(--danger); font-size: var(--type-meta); line-height: var(--lh-snug); }
@media print {
  .code-actions { display: none !important; }
  body:has(> .print-one) > .print-only:not(.print-one) { display: none !important; }
}
/* T26 (Tess, 2026-11-01; 13 §T26 "Contained"): the console's content is at most 1200px, centred in
   the space beside the rail, with 32px gutters from 1024px and 16px on a phone. The mock's .art
   container isn't in the app, so its column splits are keyed to the app frame (`screen`) here, at
   the mock's widths. A held scrollbar gutter keeps the content's width still as a page grows. */
.scr-console .main { scrollbar-gutter: stable; }
@container screen (min-width: 1024px) {
  .scr-console .main { padding-inline: max(var(--space-6), calc((100% - 1200px) / 2)); }
}
@container screen (max-width: 599px) { .scr-console .main { padding-inline: var(--space-4); } }
@container screen (min-width: 1150px) {
  .scr-console .cols-2 { --cols-split: minmax(0, 1fr) minmax(0, 1fr); }
  .scr-console .cols-wide-right { --cols-split: minmax(0, 7fr) minmax(0, 5fr); }
  .scr-console .cols-wide-left { --cols-split: minmax(0, 5fr) minmax(0, 7fr); }
}
@container screen (min-width: 1500px) { .scr-console .cols-stack-wide { --cols-split: minmax(0, 5fr) minmax(0, 7fr); } }
.scr-console .cols > .sec { margin-block-start: 0; }
/* The mock resets its text's margins; the app's headings and paragraphs keep the browser's. The
   page's blocks sit a step apart (a section two), and a section head inside a panel keeps the
   panel's inset. */
.scr-console :is(.page-title, .page-sub, .sec-title, .sec-note) { margin-block-end: 0; margin-block-start: 0; }
/* A section head's note reads from its own start at every length (Tess, 11-10; P29): the mock's
   right-aligned note wraps raggedly on the left once it runs to two lines. */
.scr-console .sec-head > .sec-note { text-align: start; }
.scr-console .page-sub { margin-block-start: var(--space-1); }
.scr-console .main > * + * { margin-block-start: var(--space-5); }
.scr-console .main > * + .sec { margin-block-start: var(--space-6); }
.scr-console .panel > .sec-head { padding: var(--space-3) var(--space-4); }
/* T26a (Tess, 2026-11-01; 13 §T26a; admin-r33's .md): from 960px of its own width (MasterDetail
   measures it, so the switch and the markup never disagree) the list sits left, at least 420px,
   and the chosen row's panel right, about 480px. The panel, its head, body, foot and empty state
   are admin-r33's generated .md-panel, .panel-* and .md-empty rules; the mock's own split is keyed
   to its .art, which the app doesn't have. Narrower, the panel is the frame's sheet: at a desk a
   panel from the right (Sheet's side; admin-r33 #545's -1024 twins, 26rem, the full height, the
   list dimmed and inert behind it), on a phone the bottom sheet (up to 85%, the -375 frames). */
.scr-console .md.is-split { grid-template-columns: minmax(420px, 1fr) minmax(0, 30rem); }
.md-list { min-width: 0; }
.scr-console .md-panel .panel-head .icon-btn { flex: none; margin-inline-start: auto; }
.dlg-layer--side { place-items: stretch end; padding: 0; }
@container screen (min-width: 600px) { .dlg-layer--side { padding: 0; } }
.sheet--side {
  inline-size: min(26rem, 100%);
  max-block-size: none;
  block-size: 100%;
  margin: 0;
  border-block: 0;
  border-inline-end: 0;
  border-radius: 0;
  animation: panel-in var(--dur-enter) var(--ease-out);
}
@media (prefers-reduced-motion: reduce) { .sheet--side { animation: none; } }
/* Settings → Support's rules (admin-r33 · support-routing): the chosen rule is marked like a chosen
   row, and a rule the door refused is ringed in the warning ink. */
.scr-console ol.rules { list-style: none; margin: 0; padding: 0; }
/* Ticket format: each field group starts at the top of its column, and a preview sits a step
   apart from the field after it. */
.scr-console .chip-group { align-content: start; }
.scr-console .tpl-prev { margin-block: var(--space-2) var(--space-4); }
.scr-console .rule.is-sel { background: var(--surface); box-shadow: inset var(--edge) 0 0 var(--brand); }
.scr-console .rule.is-bad { border-color: var(--warn); }
.scr-console .rule .rule-move .icon-btn { min-inline-size: var(--tap); }
/* The starter library's bank (16-7b): what publishing still needs, a line each under its note, and
   a problem's Hold, Mark fine and Retire side by side, wrapping on the phone. */
.scr-console ul.missing { margin: var(--space-3) 0 0; padding-inline-start: var(--space-5); }
.scr-console ul.missing > li + li { margin-block-start: var(--space-1); }
.scr-console .row-acts { display: flex; flex-wrap: wrap; gap: var(--space-1); }
/* T26 "Forms in the console": a field is at most 480px, and a section's own commit keeps its
   natural width at the section's foot, on the right. */
.scr-console .main .field { max-inline-size: 30rem; }
.scr-console .sec-foot { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: var(--space-2); margin-block-start: var(--space-4); }
.scr-console .sec-foot > :is(.btn-primary, .btn, .btn-quiet) { inline-size: auto; }

/* signup-r16.html → .scr-signup (step 14b-2a): the sign-up forms, in the form column. The password
   row and its Show button are sign-in's (signin-r12), the same control on both. */
.scr-signup form { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-4); }
.scr-signup .links { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: start; gap: var(--space-1); margin-top: var(--space-5); }
.scr-signup .links .field-hint { margin: 0; }
.scr-signup .pw-row { display: flex; align-items: stretch; gap: var(--space-2); }
.scr-signup .pw-row .inp { flex: 1 1 0; min-width: 0; }
.scr-signup .pw-tog {
  flex: none; min-height: var(--tap); min-width: var(--tap); padding: 0 var(--space-3);
  border: var(--hairline) solid var(--border-strong); border-radius: var(--radius-control);
  background: transparent; color: var(--brand); font-weight: var(--weight-announce); line-height: var(--lh-snug);
}
.scr-signup .pw-tog:active { background: var(--surface-sunk); }
@media (hover: hover) { .scr-signup .pw-tog:hover { background: var(--brand-wash); } }
.scr-signup .kv { margin-block-start: var(--space-5); }
/* signup-r16 · plan (step 14b-2b-2): the step line, the plan box and the plain list, as the mock draws them. */
.scr-signup .step-l {
  margin: 0 0 var(--space-3); color: var(--muted);
  font-size: var(--text-sm); font-weight: var(--weight-announce);
  letter-spacing: var(--track-ui); line-height: var(--lh-snug); text-wrap: pretty;
}
.scr-signup .plan { margin: 0 0 var(--space-5); padding: var(--space-4); border-radius: var(--radius-card); background: var(--surface); }
.scr-signup .plan-n { margin: 0; font-family: var(--font-display); font-size: var(--text-md); font-weight: var(--weight-announce); line-height: var(--lh-tight); text-wrap: pretty; }
.scr-signup .plan-p { margin: var(--space-2) 0 var(--space-4); color: var(--muted); line-height: var(--lh-snug); text-wrap: pretty; }
.scr-signup .plan-s { margin: calc(-1 * var(--space-3)) 0 0; color: var(--muted); line-height: var(--lh-snug); text-wrap: pretty; }
.scr-signup .callout--lead { margin-block: 0 var(--space-5); }
.scr-signup .callout--consent { row-gap: var(--space-3); }
.scr-signup .sec { margin-block-start: var(--space-6); }
.scr-signup .take--dot > li::before { content: ""; inline-size: var(--space-1); block-size: var(--space-1); margin-block-start: 0.62em; border-radius: var(--radius-pill); background: var(--border-strong); }
html.is-large-text .scr-signup .pw-row { flex-wrap: wrap; }
html.is-large-text .scr-signup .pw-row .inp { flex: 1 1 100%; }
html.is-large-text .scr-signup .pw-tog { margin-left: auto; }

/* 13 T1 "Several accounts" (Tess, #718): a group's heading in a menu ("Your other accounts"), as an
   eyebrow, not a control. */
.menu-h {
  margin: var(--space-2) var(--space-3) var(--space-1);
  color: var(--muted); font-family: var(--font-ui); font-size: var(--type-meta);
  font-weight: var(--weight-announce); line-height: var(--lh-snug);
}
html.is-large-text .menu-h { text-transform: none; letter-spacing: var(--track-ui); }

/* P14 on homework, from 1024px (Tess, 2026-11-04): the list pane's sticky foot holds the whole
   homework's progress and Submit, whichever problem is chosen; the action row's own look. */
.pane-l:has(> .lfoot) { grid-template-rows: auto minmax(0, 1fr) auto; }
.lfoot { display: grid; gap: var(--space-3); }
.lfoot .progress { display: block; border-radius: var(--radius-pill); }
.lfoot .wsh-prog { margin: 0; }
.lfoot .note { margin: 0; }
.lfoot .btn-primary { justify-self: start; inline-size: auto; }
.lhead .lkind { margin: var(--space-3) 0 var(--space-1); }

/* Phase 2 (UI 3, 11-05; teacher-r23 class, class-units): Units in this class sits under the roster
   here (the mock's second column), so it takes a section's own space; a unit is a link here (the
   mock's is a button), without a link's underline; Start a unit's date row has the mock's inline
   margin-top. */
.scr-teacher .units-sec { margin-top: var(--space-7); }
.scr-teacher a.unit { text-decoration: none; }
.field-row--gap { margin-top: var(--space-5); }

/* P30 (support-r11 · student-help, help; UI 1, 11-05): the student's Need help? and the adult's Help
   and support, from the mock's own rules, scoped to the page. */
.scr-help .help-p { margin: 0; max-width: var(--measure); line-height: var(--lh-body); text-wrap: pretty; overflow-wrap: anywhere; }
.scr-help .help-rows { list-style: none; margin: var(--space-5) 0 0; padding: 0; border-top: var(--hairline) solid var(--border); }
.scr-help .help-rows > li + li { border-top: var(--hairline) solid var(--border); }
.scr-help .help-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-1); padding: var(--space-3) 0; }
.scr-help .help-row-n { margin: 0; font-size: var(--text-base); font-weight: var(--weight-announce); line-height: var(--lh-snug); text-wrap: pretty; }
.scr-help .help-row-s { display: block; color: var(--muted); font-size: var(--text-sm); line-height: var(--lh-snug); text-wrap: pretty; overflow-wrap: anywhere; }
.scr-help .sec-h { margin-top: var(--space-6); }
.scr-help .sec-h + .help-p { margin-top: var(--space-2); }
.scr-help .who { list-style: none; display: grid; gap: var(--space-3); margin: var(--space-3) 0 0; padding: 0; }
.scr-help .who + .help-p { margin-top: var(--space-3); }
.scr-help .who-line { margin: 0; max-width: var(--measure); color: var(--muted); line-height: var(--lh-snug); text-wrap: pretty; overflow-wrap: anywhere; }
.scr-help .who-who { color: var(--fg); font-weight: var(--weight-ui); }
.scr-help .note--callout { margin-top: var(--space-4); }
.scr-help .mrows {
  list-style: none; display: grid; gap: var(--space-1);
  margin: var(--space-5) 0 0; padding: var(--space-2) 0 0;
  border-top: var(--hairline) solid var(--border);
}
.scr-help .mrow {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: var(--space-3);
  width: calc(100% + var(--space-4)); min-height: var(--tap); margin: 0 calc(-1 * var(--space-2));
  padding: var(--space-2); border: 0; border-radius: var(--radius-control);
  background: transparent; color: var(--fg); text-align: start; text-decoration: none; font: inherit;
}
.scr-help .mrow > .ico:first-child { color: var(--brand); }
.scr-help .mrow > .ico:last-child { color: var(--muted); }
.scr-help .mrow-t { min-width: 0; display: block; font-weight: var(--weight-announce); line-height: var(--lh-snug); text-wrap: pretty; overflow-wrap: anywhere; }
.scr-help .mrow:active { background: var(--surface-sunk); }
@media (hover: hover) { .scr-help .mrow:hover { background: var(--surface); } }
.scr-help .mrow-txt { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-1); }
.scr-help .mrow-txt > * { display: block; }
.scr-help .mrow-s { color: var(--muted); font-size: var(--text-sm); font-weight: var(--weight-read); line-height: var(--lh-snug); text-wrap: pretty; overflow-wrap: anywhere; }
.scr-help .mrow--stack { padding-block: var(--space-2); }
.scr-help .mrows + .note { margin-top: var(--space-5); }
.scr-help .mail { margin-top: var(--space-6); padding-top: var(--space-4); border-top: var(--hairline) solid var(--border); }
.scr-help .mail-t { margin: 0; font-weight: var(--weight-ui); line-height: var(--lh-snug); }
.scr-help .mail .link-btn { margin-top: var(--space-1); overflow-wrap: anywhere; }
.scr-help .quiet-s { margin: var(--space-1) 0 0; max-width: var(--measure); color: var(--muted); font-size: var(--text-sm); line-height: var(--lh-snug); text-wrap: pretty; overflow-wrap: anywhere; }

/* H5 (UI 3, teacher-r23 capture-teacher): the teacher's check with her pages beside it, a 5:7 side
   column from 900px and first above the check on a phone (Tess, 11-05, P24). The photo parts are the
   student's .scr-capture ones, unscoped for the teacher's page. */
.cols--aside { --cols-split: minmax(0, 5fr) minmax(0, 7fr); }
@container screen (max-width: 899px) { .cols--aside { --cols-split: minmax(0, 1fr); } }
.photo-box .photo-btn { display: block; width: 100%; padding: 0; border: 0; border-radius: var(--radius-card); background: transparent; }
.photo-box .photo-btn img { display: block; width: 100%; height: auto; border-radius: var(--radius-card); border: var(--hairline) solid var(--border); }
.photo-box .photo-cap { display: flex; align-items: center; gap: var(--space-2); margin: var(--space-1) 0 0; color: var(--muted); font-size: var(--text-sm); line-height: var(--lh-snug); }

/* H5b (UI 3, Tess 11-05): a pick's line under its drop target (why a pick didn't read, or the day's
   100 pages read), then the two ways in that read no pages: room between the three. */
.scr-teacher .drop--target + .note--inline { margin-block-start: var(--space-3); }
.scr-teacher .note--inline + .routes { margin-block-start: var(--space-4); }

/* A student's two equal ways in (signin-r12 · signin-choice-new, P21): boxed choices in a column,
   the picked one's fields opened under it. Picked is a heavier rule, not the inset mark. */
.picks { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-6); margin-block-start: var(--space-3); }
.pick-card { align-items: flex-start; padding: var(--space-4); }
.pick-card input { margin-block-start: 0.15em; }
.pick-card:has(input:checked) {
  border-width: var(--edge-strong);
  /* The heavier rule takes its extra width out of the padding, so nothing moves on a pick. */
  padding: calc(var(--space-4) - (var(--edge-strong) - var(--hairline)));
  box-shadow: none;
}
.pick-open { margin: var(--space-3) 0 0; }
/* signin-choice-caught: the line, then its button under it. */
.caught-t { display: grid; justify-items: start; gap: var(--space-3); min-width: 0; }

/* Phase 3a (UI 3, 11-05; teacher-r23 library-coop): the library tabs are links here (each library is its
   own page; the mock's are buttons), without a link's underline. */
.scr-teacher a.tab-btn { text-decoration: none; }

/* Phase 3b-2 (UI 3, P24 "Phase 3b, a library's own units"): once a library has units, its course
   groups. Each course's heading carries New unit; its units come first, as a class's units do (a
   unit is a link here, without a link's underline), then Not in a unit yet over its other worksheets. */
.scr-teacher .lib-course + .lib-course { margin-top: var(--space-7); }
.scr-teacher .lib-course-h { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--space-2) var(--space-4); }
.scr-teacher .lib-course-h .sec-h { margin: 0; }
.scr-teacher .lib-units { list-style: none; margin: var(--space-3) 0 0; padding: 0; }
.scr-teacher .lib-course-h + .lib, .scr-teacher .lib-units + .grp-k { margin-top: var(--space-4); }
.scr-teacher .grp-k + .lib { margin-top: var(--space-2); }
.scr-teacher a.unit { text-decoration: none; }
.scr-teacher .unit > .ico:first-child { color: var(--brand); }
.scr-teacher .unit-m { display: block; color: var(--muted); font-size: var(--text-sm); line-height: var(--lh-snug); }
/* A unit's page: a row's moves sit on one line under it (three fit at 375), and the unit's own
   Rename and Delete stay their own size in the head. */
.scr-teacher .lib--unit .lib-act { flex: 1 1 100%; }
.scr-teacher .lib--unit .lib-act .btn-quiet { flex: 0 1 auto; width: auto; white-space: nowrap; }
/* The list's Move to unit (a worksheet in no unit) is its label's size too. */
.scr-teacher .lib-course .lib-act .btn-quiet { flex: 0 1 auto; width: auto; white-space: nowrap; }
/* Move to unit (a sheet, so unscoped): the course's units and Not in a unit yet, a row each; its unit
   now is marked and not offered again. */
.unit-picks { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-1); }
.unit-pick {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-3);
  width: 100%; min-height: var(--tap); padding: var(--space-2) var(--space-3);
  border: 0; border-radius: var(--radius-control); background: transparent; color: var(--fg);
  font: inherit; text-align: start;
}
.unit-pick:not(:disabled):active { background: var(--surface-sunk); }
@media (hover: hover) { .unit-pick:not(:disabled):hover { background: var(--surface); } }
.unit-pick:disabled { color: var(--muted); }
.unit-pick > .ico { color: var(--brand); }
.unit-pick-n { min-width: 0; font-weight: var(--weight-ui); line-height: var(--lh-snug); text-wrap: pretty; overflow-wrap: anywhere; }
/* P30 · Contact support (support-r11 · contact, contact-sent; UI 1, 2026-11-05): the mock's .mgr,
   .ro and .grant-ask, scoped to the screen. */
.scr-contact .help-p { margin: 0; max-width: var(--measure); line-height: var(--lh-body); text-wrap: pretty; overflow-wrap: anywhere; }
.scr-contact .help-p + .help-p { margin-top: var(--space-3); }
.scr-contact .contact-topic:focus { outline: none; }
.scr-contact .contact-topic:focus-visible { outline: var(--focus-w) solid var(--focus); outline-offset: 2px; }
.scr-contact .contact-topic + .field { margin-top: var(--space-5); }
.scr-contact .ro { margin-top: var(--space-5); padding: var(--space-3) var(--space-4); border-radius: var(--radius-control); background: var(--surface); }
.scr-contact .ro-l { display: block; margin: 0; color: var(--muted); font-size: var(--text-sm); line-height: var(--lh-snug); }
.scr-contact .ro-v { display: block; margin: var(--space-1) 0 0; font-weight: var(--weight-ui); line-height: var(--lh-snug); overflow-wrap: anywhere; }
.scr-contact .ro-s { margin: var(--space-1) 0 0; max-width: var(--measure); color: var(--muted); font-size: var(--text-sm); line-height: var(--lh-snug); text-wrap: pretty; }
.scr-contact .ro .link-btn { margin-top: var(--space-1); }
.scr-contact .ro + .note { margin-top: var(--space-4); }
.scr-contact .grant-ask { margin-top: var(--space-4); }
.scr-contact .mgr { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: var(--space-3); align-items: start; margin: 0 0 var(--space-5); padding: var(--space-4); border-radius: var(--radius-card); background: var(--surface); }
.scr-contact .mgr > .ico { margin-top: 0.1em; color: var(--brand); }
.scr-contact .mgr-in { min-width: 0; }
.scr-contact :where(.mgr-in) > :where(*) { margin: 0; }
.scr-contact .mgr-t { font-weight: var(--weight-announce); line-height: var(--lh-snug); }
.scr-contact .mgr-m { margin-top: var(--space-1); line-height: var(--lh-snug); overflow-wrap: anywhere; }
.scr-contact .mgr-m .link-btn { margin-top: 0; }
html.is-large-text .scr-contact .mgr { grid-template-columns: minmax(0, 1fr); row-gap: var(--space-2); padding: var(--space-3); }

/* desktop-r9 R10-A (UI 1): the Repwise library's page. The worksheet whose preview is in the right
   pane is marked on the shelf as a list's chosen row is (the mock's .opt.is-sel), not Home's brand
   name. */
.scr-lib .opt.is-sel { background: var(--surface-sunk); box-shadow: inset var(--edge) 0 0 var(--fg); }
.scr-lib .opt.is-sel .opt-name { color: var(--fg); }
@media (hover: hover) { .scr-lib .opt.is-sel:hover { background: var(--surface-sunk); } }

/* R10-B (UI 1): homework's Save answer at the foot, set apart from the teacher's check line above it. */
.scr-check .ac-foot .ac-left + .btn-primary,
.scr-check .ac-foot .ac-left + .ac-save > .btn-primary { margin-block-start: var(--space-3); }

/* #743 (UI 1): answer-check-shapes-r3's matrix (K2). The grid's columns follow its size through
   data-gc (the app sets no inline style); the cells' widths, the size picker's Rows and Columns,
   the line before a size is chosen, and the grid and picker dimmed under a ticked "It has no
   inverse", all as the mock draws them. Large text keeps the r1 rule: one column, no brackets. */
.scr-shapes .ac-mx[data-gc="1"] .ac-mx-grid { grid-template-columns: minmax(0, 1fr); }
.scr-shapes .ac-mx[data-gc="2"] .ac-mx-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.scr-shapes .ac-mx[data-gc="3"] .ac-mx-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.scr-shapes .ac-mx[data-gc="4"] .ac-mx-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.scr-shapes .ac-mx--k2 .ac-field { min-inline-size: 64px; block-size: auto; }
.scr-shapes .ac-mx--k2[data-gc="4"] .ac-field { min-inline-size: 56px; }
.scr-shapes .ac-mx--k2 .ac-prev .mfrac { font-size: 1em; }
.scr-shapes .ac-mx-first { margin: var(--space-3) 0 0; color: var(--muted); font-size: var(--type-body); line-height: var(--lh-snug); }
.scr-shapes .ac-size { margin: var(--space-4) 0 0; padding: 0; border: 0; min-width: 0; }
.scr-shapes .ac-size-h { padding: 0; font-size: var(--type-body); font-weight: var(--weight-announce); line-height: var(--lh-snug); }
.scr-shapes .ac-size .ac-rowseg { margin-block-start: var(--space-3); }
.scr-shapes .ac-size .ac-rowseg .seg { min-width: 0; }
.scr-shapes .ac-size .ac-seglabel { margin: 0 0 var(--space-2); color: var(--muted); font-size: var(--type-meta); font-weight: var(--weight-announce); line-height: var(--lh-snug); }
.scr-shapes .ac-size .seg-opt { flex: 1 1 0; justify-content: center; }
.scr-shapes .ac-size.is-off, .scr-shapes .ac-mx.is-off { opacity: 0.55; }

/* #950: a rear camera's preview is never mirrored. This must come after the screen layouts'
   `.cam-feed { transform: scaleX(-1) }` (the mock's webcam), which beat it from above. */
.scr-capture .cam-feed.cam-feed--rear { transform: none; }

/* P19 (Tess, 11-07): a matrix answer in the result view is drawn in its brackets; at 200% text a row a
   line without them, as the entry's large-text rule has it. One of the two is ever shown. */
.scr-shapes .ac-entry .ac-lines { display: none; }
html.is-large-text .scr-shapes .ac-entry .ac-prev--wide { display: none; }
html.is-large-text .scr-shapes .ac-entry .ac-lines { display: grid; gap: var(--space-1); }

/* P19's sequence rule (UI 1, 11-08; answer-check-shapes-r3 · sequence-recursive): a recursive rule's
   aₙ = row sits under a₁ = in the same block, with no rule between them. */
.scr-shapes .ac-group + .ac-group--joined { margin-block-start: var(--space-3); padding-block-start: 0; border-block-start: 0; }

/* Precalculus 6's triangles (UI 1, 11-08; answer-check-shapes-r3 · tri-two, tri-none): with two
   triangles each row is headed "Triangle n", the second removed by its words; "No triangle fits"
   dims the rows. The mock's opacity: 0.55 took a typed value under AA (axe, gate 5), so the dim is
   the muted colour on the off fields instead, as their labels and units already are. */
.scr-shapes .ac-rowhead-row { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); min-block-size: var(--tap-min); }
.scr-shapes .ac-rowhead-row .ac-rowhead { flex: 1 1 auto; min-width: 0; }
.scr-shapes .ac-rm { flex: none; display: inline-flex; align-items: center; min-block-size: var(--tap-min); padding-inline: var(--space-2); margin-inline-end: calc(-1 * var(--space-2)); color: var(--muted); font-size: var(--type-meta); font-weight: var(--weight-ui); }
.scr-shapes .ac-rm:hover { color: var(--fg); }
.scr-shapes .ac-rows--dim.is-off .ac-prev, .scr-shapes .ac-rows--dim.is-off .ac-prev .katex,
.scr-shapes .ac-rows--dim.is-off .ac-rowhead { color: var(--muted); }

/* A row's cells in a tuple's brackets, each variable named above its field, under a TeX head (UI 1,
   11-08; answer-check-shapes-r3 · polar-point-two). */
.scr-shapes .ac-cells--tup { gap: var(--space-2); }
.scr-shapes .ac-tup-d, .scr-shapes .ac-tup-c { flex: none; display: flex; flex-direction: column; justify-content: center; }
.scr-shapes .ac-tup-g { display: flex; align-items: center; min-block-size: var(--tap); color: var(--fg); font-family: var(--font-math); font-size: var(--math-field); line-height: 1; }
.scr-shapes .ac-tup-g .katex { font-size: 1em; color: inherit; }
.scr-shapes .ac-cells--tup .ac-tup-c { margin-inline-start: calc(-1 * var(--space-1)); }
.scr-shapes .ac-cells--tup.ac-cells--lab { align-items: stretch; }
.scr-shapes .ac-cells--lab .ac-tup-d, .scr-shapes .ac-cells--lab .ac-tup-c { gap: var(--space-1); }
.scr-shapes .ac-cells--lab .ac-tup-g { flex: 1 1 auto; }
.scr-shapes .ac-cells--lab .ac-tup-sp { flex: none; block-size: 1.3em; font-size: var(--type-body); }
.scr-shapes .ac-cells--lab .ac-cell { flex-direction: column; align-items: stretch; gap: var(--space-1); }
.scr-shapes .ac-cells--lab .ac-x { flex: none; display: flex; align-items: center; justify-content: center; min-inline-size: 0; block-size: 1.3em; font-size: var(--type-body); line-height: 1.1; }
.scr-shapes .ac-cells--lab .ac-field { inline-size: 100%; }
html.is-large-text .scr-shapes .ac-cells--tup { flex-direction: row; flex-wrap: wrap; }
html.is-large-text .scr-shapes .ac-cells--tup .ac-cell { flex: 1 1 6em; }
.scr-shapes .ac-rowhead--tx { flex: 1 1 auto; min-width: 0; color: var(--fg); font-family: var(--font-math); font-size: var(--math-field); line-height: 1.2; }
.scr-shapes .ac-rowhead--tx .katex { font-size: 1em; color: inherit; }
/* A unit stays beside its field when the variable is named above it (polar-point-two in degrees). */
.scr-shapes .ac-cells--lab .ac-cell:has(.ac-unit) { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: var(--space-2); }
.scr-shapes .ac-cells--lab .ac-cell:has(.ac-unit) .ac-x { grid-column: 1 / -1; }

/* Algebra 2 4.5's possible-counts rows (P19 "Counting a polynomial's zeros"; answer-check-shapes-r3 ·
   zero-counts-descartes, -complex, -wrap, -large; Run Z1). Number boxes 0 to the degree, any of them
   ticked: the selected tint, a 2px brand border and a corner check, the number in ink (three cues,
   never colour alone). 2.75rem, so at 200% text a box grows with its number. */
.scr-shapes .ac-counts { min-inline-size: 0; margin: 0; padding: 0; border: 0; }
.scr-shapes .ac-counts-h { padding: 0; font-size: var(--type-body); font-weight: var(--weight-announce); line-height: var(--lh-snug); }
.scr-shapes .ac-cboxes { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-block-start: var(--space-2); }
.scr-shapes .ac-cbox {
  position: relative; flex: none; display: flex; align-items: center; justify-content: center;
  inline-size: 2.75rem; block-size: 2.75rem;
  background: var(--bg); border: var(--hairline) solid var(--border-strong); border-radius: var(--radius-control);
  color: var(--fg); line-height: 1; cursor: pointer;
}
.scr-shapes .ac-cbox input { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; margin: 0; opacity: 0; cursor: pointer; }
.scr-shapes .ac-cbox-n { font-family: var(--font-ui); font-size: var(--math-field); line-height: 1; }
.scr-shapes .ac-cbox:not(:has(input:checked)):hover { background: var(--surface); }
.scr-shapes .ac-cbox:active { background: var(--surface-sunk); }
.scr-shapes .ac-cbox:has(input:checked) { background: var(--surface-sunk); border-color: var(--brand); box-shadow: inset 0 0 0 var(--hairline) var(--brand); }
.scr-shapes .ac-cbox:has(input:focus-visible) { outline: var(--focus-w) solid var(--focus); outline-offset: var(--focus-off); }
.scr-shapes .ac-cbox-tick {
  position: absolute; inset-block-start: 0.125rem; inset-inline-end: 0.125rem;
  inline-size: 0.75rem; block-size: 0.75rem; color: var(--brand); opacity: 0;
}
.scr-shapes .ac-cbox:has(input:checked) .ac-cbox-tick { opacity: 1; }
.scr-shapes .ac-cbox:has(input:disabled) { background: var(--surface); border-color: var(--border); color: var(--border-strong); cursor: default; }
.scr-shapes .ac-cbox:has(input:disabled) input { cursor: default; }
.scr-shapes .ac-cbox:has(input:disabled):hover, .scr-shapes .ac-cbox:has(input:disabled):active { background: var(--surface); }
.scr-shapes .ac-hint--over { margin: 0 0 var(--space-2); }

/* A system of inequalities (Precalc 8.8; answer-check-shapes-r3 · graph-system-inequalities-entry):
   a piece per inequality, "Inequality n" and the problem's own row over its group and its two
   questions. The mock's .ac-piece rules; .ac-piece-wrap is the labelled group around each. */
:is(.scr-check, .scr-shapes) .ac-piece-wrap { margin-block-start: var(--space-5); padding-block-start: var(--space-4); border-block-start: var(--hairline) solid var(--border); }
:is(.scr-check, .scr-shapes) .ac-piece-h { margin: 0; font-family: var(--font-display); font-size: var(--type-section); font-weight: var(--weight-announce); line-height: var(--lh-snug); }
:is(.scr-check, .scr-shapes) .ac-piece-rule { margin: var(--space-1) 0 0; color: var(--fg); font-family: var(--font-math); font-size: var(--type-body); line-height: var(--lh-snug); overflow-wrap: anywhere; }
:is(.scr-check, .scr-shapes) .ac-piece-rule .katex { font-size: 1em; color: inherit; }
:is(.scr-check, .scr-shapes) .ac-piece + .ac-group { margin-block-start: var(--space-3); }
/* Inside a piece, the graph families' hairline between its groups (Boundary line | Solid or dashed? |
   the side), none after the last (Tess, 11-11; graph-system-inequalities-vertical, Run M8). On the
   group above each choice: a fieldset's own top border would run through its legend. */
:is(.scr-check, .scr-shapes) .ac-piece-wrap > :is(.ac-group, .ac-seg):has(+ .ac-seg) { padding-block-end: var(--space-4); border-block-end: var(--hairline) solid var(--border); }

/* Sigma notation (UI 1, 11-12; P19 l.375, answer-check-shapes-r3 · sigma-entry, Run K4; #1268): the Σ
   between its last value above and its start below ("k =" and a slot), the term's slot after it,
   dashed while it's empty. The mock's own rules, plus the index beside the start's slot. */
.scr-shapes .ac-sig { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-3); min-width: 0; }
.scr-shapes .ac-sig-stack { flex: none; display: flex; flex-direction: column; align-items: stretch; gap: var(--space-1); }
.scr-shapes .ac-sig-stack .ac-field { inline-size: 100%; min-inline-size: 3.6em; }
.scr-shapes .ac-sig-g { align-self: center; color: var(--fg); font-family: var(--font-math); font-size: var(--math-hero); line-height: 1; }
.scr-shapes .ac-sig-g .katex, .scr-shapes .ac-sig-k .katex { font-size: 1em; color: inherit; }
.scr-shapes .ac-sig-low { display: flex; align-items: center; gap: var(--space-1); }
.scr-shapes .ac-sig-k { flex: none; color: var(--fg); font-family: var(--font-math); font-size: var(--math-field); line-height: 1; white-space: nowrap; }
/* The term takes its own line when about 6em of it no longer fits beside the Σ (200% text). */
.scr-shapes .ac-sig-term { flex: 1 1 6em; min-width: 0; display: flex; }
.scr-shapes .ac-sig-term .ac-field { flex: 1 1 auto; }
.scr-shapes .ac-field--slot { border-style: dashed; }
.scr-shapes .ac-sig.is-off .ac-sig-g, .scr-shapes .ac-sig.is-off .ac-sig-k { color: var(--muted); }

/* UI 3, desk pass (b)–(f), 2026-11-09. Note for Tess: docs/notes-for-tess/2026-11-09-ui3-class-page-desk.md.
   (f): a dialog's actions size to their labels. A button is full width by default, so in this row
   two of them shrank and a two-word label wrapped ("Print 2 / cards", "Copy into / class", "Reset /
   sign-in"). Where the row has a width cap (the console's and org's sheets) a long label still
   wraps. Sheets render outside a screen's scope, so this isn't scoped (UI 2 agreed, 11-09). */
.dlg-acts > :is(.btn-primary, .btn-quiet, .btn) { inline-size: auto; flex: 0 1 auto; }
/* (f): the table's main-and-sub lines in a phone card's fields (Members at 375 ran "Organization
   adminthe whole account" together). Only in its fields: the card's heading keeps its own weight. */
.tbl-card dd .t-main { font-weight: var(--weight-ui); }
.tbl-card dd .t-sub { display: block; color: var(--muted); font-size: var(--type-meta); }
/* (b), desktop-adults-r1 · teacher-home's What to do next: the account screens' rows (.scr-acct),
   in the teacher's side column; a row is a link or, for Start a class, a button. */
.scr-teacher .tside .card > .rows {
  list-style: none; margin: calc(-1 * var(--space-2)) calc(-1 * var(--space-2)) 0; padding: 0;
}
.scr-teacher .tside .rows > li + li { border-top: var(--hairline) solid var(--border); }
.scr-teacher .tside .row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center;
  column-gap: var(--space-3); width: 100%; min-height: calc(var(--tap) + var(--space-2));
  padding: var(--space-3) var(--space-2); border: 0; border-radius: var(--radius-control);
  background: transparent; color: inherit; font: inherit; text-align: start; text-decoration: none;
  cursor: pointer;
}
.scr-teacher .tside .row:active { background: var(--surface-sunk); }
@media (hover: hover) { .scr-teacher .tside .row:hover { background: var(--surface-sunk); } }
.scr-teacher .tside .row:focus-visible { outline: var(--focus-w) solid var(--focus); outline-offset: var(--focus-off); }
.scr-teacher .tside .row-t { display: grid; gap: var(--space-1); min-width: 0; }
.scr-teacher .tside .row-t > * { display: block; margin: 0; }
.scr-teacher .tside .row-n { font-weight: var(--weight-ui); line-height: var(--lh-snug); text-wrap: pretty; }
.scr-teacher .tside .row-s { color: var(--muted); font-size: var(--type-meta); line-height: var(--lh-snug); text-wrap: pretty; }
.scr-teacher .tside .row > .ico { width: 1.125rem; height: 1.125rem; color: var(--muted); }
/* (b): a focus row gets room above and below in the side card. */
.scr-teacher .focus-row { padding-block: var(--space-3); }
/* (c): Results' tabs are links (a nav, not a tablist), so the current one is aria-current. */
.scr-teacher .tab-btn[aria-current="page"] { color: var(--brand); border-bottom-color: var(--brand); }
@media (hover: hover) { .scr-teacher .tab-btn[aria-current="page"]:hover { background: transparent; color: var(--brand); } }
/* (c): a band's bar fills to its share (--p, 0 to 1) instead of an inline width. */
.scr-teacher .band-bar > span { inline-size: calc(var(--p, 0) * 100%); }
/* (c): one student's answers on a homework at the mock's left-column width, so the mark sits by
   the answer (teacher-r23 · student-steps). */
.scr-teacher .ak-list--read { max-inline-size: 40rem; }

/* A conic's features (Precalc 9.1-9.4; P19 "A conic's features from general form"): a choice in the
   template's order (Which way it opens?, Major axis) is a group of its own, so it takes the groups'
   rule (on its wrapper: a fieldset's border runs through its legend), and so does the group after
   it; the extremum's value joins its choice with no rule. */
:is(.scr-check, .scr-shapes) :is(.ac-group, .ac-seg-part) + .ac-seg-part,
:is(.scr-check, .scr-shapes) .ac-seg-part + .ac-group:not(.ac-group--joined) { padding-block-start: var(--space-4); border-block-start: var(--hairline) solid var(--border); }
:is(.scr-check, .scr-shapes) .ac-seg-part { margin-block-start: var(--space-4); }
:is(.scr-check, .scr-shapes) .ac-seg-part > .ac-seg:first-child { margin-block-start: 0; }
:is(.scr-check, .scr-shapes) .ac-seg-part + .ac-group--joined { margin-block-start: var(--space-3); padding-block-start: 0; border-block-start: 0; }

/* P08's figure editor's foot (Tess, 11-19, on #1163). On a phone, Save and Cancel over the numbers pad.
   At a desk (the dialog), two columns: Save and Cancel stacked on the left, fully visible, and the pad
   beside them, so the pad never covers a button and the body keeps its room. At 200% only Save is in
   the foot; Cancel and the pad follow the rows in the flow (FigureEditor's useLargeText). */
.dlg-foot:has(.cf-foot) > span:first-child:empty { display: none; }
.dlg-acts:has(> .cf-foot) { flex: 1 1 auto; }
.dlg-foot .cf-foot { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 16rem); column-gap: var(--space-5); align-items: start; inline-size: 100%; }
.dlg-foot .cf-foot .sheet-acts { flex-direction: column; align-items: stretch; }
.dlg-foot .cf-foot .sheet-acts > :is(.btn-primary, .btn-spot, .btn-brand, .btn) { flex: none; inline-size: 100%; }
.dlg-foot .cf-foot .keypad { margin: 0; padding: 0; border-block-start: 0; }
.dlg-foot:has(.cf-foot) { background: var(--bg); }
.scr-capture .cf-flow-acts { margin-block-start: var(--space-5); }
/* P08's figures (17 §15.6; capture-r13 · figure-sure, figure-unsure, figure-editor-triangle): the
   redraw (a fixed triangle, never to scale), its 130px thumbnail beside the problem, the crop capped
   at 200px (Run C13), and the editor's rows, each a field and its Asked tick. The mock's own rules. */
.scr-capture .cfig { margin-top: var(--space-3); }
/* A chain's drawn caption, under its drawing in the figure's box (17 §15.6c): small and quiet. */
.scr-capture .cf-scale { margin: var(--space-1) 0 0; color: var(--muted); font-size: var(--text-sm); text-align: center; }
.scr-capture .cfig-box { padding: var(--space-2); border: var(--hairline) solid var(--border); border-radius: var(--radius-control); background: var(--bg); }
.scr-capture .cfig-box svg, .scr-capture .cfig-box img { display: block; width: 100%; height: auto; font-family: var(--font-ui); }
.scr-capture .cfig--thumb { flex: none; margin-top: 0; inline-size: 130px; }
.scr-capture .cfig--thumb .cfig-box { padding: var(--space-1); }
.scr-capture .cfig--sheet .cfig-box { max-inline-size: 248px; margin-inline: auto; }
.scr-capture .cfig--crop .cfig-box { max-inline-size: 200px; margin-inline: auto; background: var(--surface); }
.scr-capture .cf-ink { fill: none; stroke: var(--fg); stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.scr-capture .cf-thin { fill: none; stroke: var(--fg); stroke-width: 1.25; stroke-linecap: round; }
/* 17 §15.6c (A64): a circle's marked arc, its sector's tint (--surface-sunk until §15.19's
   --figure-region token), and its center. */
.scr-capture .cf-arc { fill: none; stroke: var(--fg); stroke-width: 3; stroke-linecap: round; }
.scr-capture .cf-sect { fill: var(--surface-sunk); stroke: none; }
.scr-capture .cf-dot { fill: var(--fg); stroke: none; }
.scr-capture .cf-t { fill: var(--fg); font-weight: 500; }
.scr-capture .cf-t--v { fill: var(--muted); font-size: 0.86em; font-weight: 600; }
/* 17 §15.6d (F2–F4): the pair a relationship names, highlighted as §15.14's one highlight (both arcs
   filled), never when the name is the ask. No frame yet; the keypad slot's brand and wash. */
.scr-capture .cf-lit { fill: var(--brand-wash); stroke: var(--brand); stroke-width: 1.75; stroke-linejoin: round; }
/* F8 (§15.16): an altitude, dashed from its vertex to the square at its foot. */
.scr-capture .cf-dash { stroke-dasharray: 4 3; }
/* F10 (§15.18): a circle drawn untrue on purpose (an asked part, a line kept off square) says so under
   the sheet's drawing, as §15.14's caption. */
.scr-capture .cf-cap { margin: var(--space-1) 0 0; color: var(--muted); font-size: var(--text-sm); text-align: center; }
/* F6 and F9 (§15.15): two figures side by side, the first-named on the left, stacked when the figure
   column is under about 300px (a container query); the thumbnail keeps the row's 130px, the two
   halves sharing it. The statement as printed under them, and the editor's statement cell: two letter
   cells between the drawn △ and ≅ or ~. */
.scr-capture .pfig { margin-top: var(--space-3); container-type: inline-size; }
.scr-capture .pfig--thumb { flex: none; margin-top: 0; inline-size: 130px; }
.scr-capture .pfig-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-2); }
.scr-capture .pfig-two > .cfig { margin-top: 0; }
/* Each figure's own words are heard, not shown: the pair's one line above says it (§15.15's description). */
.scr-capture .pfig-two .geo-desc { position: absolute; inline-size: 1px; block-size: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.scr-capture .pfig--thumb .pfig-two { gap: var(--space-1); }
.scr-capture .pfig--thumb .cfig--thumb { inline-size: auto; }
@container (max-width: 300px) { .scr-capture .pfig--sheet .pfig-two { grid-template-columns: minmax(0, 1fr); } }
.scr-capture .pfig-st { margin: var(--space-2) 0 0; text-align: center; font-size: var(--type-body); }
.scr-capture .pfig-stmt { display: flex; align-items: center; gap: var(--space-2); flex-wrap: wrap; font-size: var(--type-body); }
.scr-capture .pfig-stmt .pfig-cell { inline-size: 5.5em; min-inline-size: 0; text-transform: uppercase; }
.scr-capture .prob-side { display: flex; align-items: flex-start; gap: var(--space-3); min-width: 0; }
.scr-capture .prob-side > .mfit { flex: 1 1 auto; min-width: 0; }
/* 17 §15.6f (A64: as a math line it slid, a third of it at once): a solid's read is prose the student
   checks, at the body size, wrapping in the row and on its sheet alike. */
.scr-capture .prob-prose { margin: 0; font-size: var(--type-body); line-height: var(--lh-snug); text-wrap: pretty; overflow-wrap: anywhere; }
.scr-capture .cf-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-3); align-items: end; }
.scr-capture .cf-row .field { margin-block-start: 0; }
/* A focused row's field scrolls clear of the pad in the foot, never flush against it (Tess, A66 ·
   capture-r18: the caret above the pad). Native focus scrolling honours the margin. */
.scr-capture :is(.cf-row, .cf-rows) :is(input, .inp) { scroll-margin-block: var(--space-4); }
.scr-capture .cf-row .pick { white-space: nowrap; }
.scr-capture .cf-row .inp:disabled { background: var(--surface-sunk); border-color: var(--border); color: var(--muted); cursor: not-allowed; }
.scr-capture .cf-rows { display: grid; gap: var(--space-3); margin-top: var(--space-2); }
/* 17 §15.6c F12 (UI 1): a chain layout's dashed altitude, and Right angles at's checkboxes, a row each. */
.scr-capture .cf-dashed { stroke-dasharray: 5 4; }
.scr-capture .cf-rights { display: grid; gap: var(--space-2); margin-top: var(--space-2); }
/* 17 §15.6c F13 (UI 1): a composite piece's group, and a measure row with its Same as choice under
   the cell; a shared cell shows the other piece's number, greyed like an Asked row's. */
.scr-capture .cf-piece + .cf-piece { margin-top: var(--space-5); padding-top: var(--space-4); border-top: var(--hairline) solid var(--border); }
.scr-capture .cf-piece { position: relative; }
.scr-capture .cf-piece > .group { margin-top: 0; }
/* The remove control on its piece heading's line (the legend sits outside the fieldset's box). */
.scr-capture .cf-piece-del { position: absolute; inset-block-start: calc(-1 * var(--space-3)); inset-inline-end: 0; }
.scr-capture .cf-piece + .cf-piece .cf-piece-del { inset-block-start: calc(var(--space-4) - var(--space-3)); }
.scr-capture .cf-dim { display: grid; gap: var(--space-2); }
.scr-capture .cf-dim .field { margin-block-start: 0; }
.scr-capture .cf-dim .inp:disabled { background: var(--surface-sunk); border-color: var(--border); color: var(--muted); cursor: not-allowed; }
.scr-capture .cf-piece ~ .cf-add { margin-top: var(--space-3); }
html.is-large-text .scr-capture .cf-row { grid-template-columns: minmax(0, 1fr); }
/* The editor's notes (capture-r13 on design/figures-u17, Run M10): the ask-differs line under its Asked
   row, and an error under its group (Give each vertex its own letter). The mock's own rules. */
.scr-capture .cf-note { grid-column: 1 / -1; margin: var(--space-1) 0 0; color: var(--muted); font-size: var(--type-hint); line-height: var(--lh-snug); text-wrap: pretty; }
.scr-capture .cf-note--err { color: var(--danger); font-weight: var(--weight-ui); }
/* 17 §15.6c F11 (UI 1): the grid figure redrawn on §15.5's plane on the capture screen, with the walk
   screen's plane strokes, and the editor's point rows (x, y, then the remove control). */
.scr-capture .cfig--grid .cfig-box { max-inline-size: 320px; }
.scr-capture .cfig--grid .f-grid { fill: none; stroke: var(--border); stroke-width: 1; }
.scr-capture .cfig--grid .f-axis, .scr-capture .cfig--grid .f-mark { fill: none; stroke: var(--border-strong); stroke-width: 1.25; }
.scr-capture .cfig--grid .f-ink { fill: none; stroke: var(--fg); stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.scr-capture .cfig--grid .f-dot { fill: var(--fg); stroke: none; }
.scr-capture .cfig--grid .f-t { fill: var(--fg); font-family: var(--font-ui); font-size: 13px; font-weight: 500; }
.scr-capture .cfig--grid .f-t--m { fill: var(--muted); font-size: 12px; font-weight: 400; }
.scr-capture .cfig--grid .f-t--pt { font-size: 15px; font-style: italic; }
.scr-capture .cf-pt-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: var(--space-3); align-items: end; margin-top: var(--space-2); }
.scr-capture .cf-pt-row .field { margin-block-start: 0; }
.scr-capture .cf-pt-row .inp { text-align: center; }
html.is-large-text .scr-capture .cf-pt-row { grid-template-columns: minmax(0, 1fr); }
html.is-large-text .scr-capture .cf-pt-row .icon-btn { justify-self: start; }
.scr-capture .cf-add { margin-top: var(--space-3); }
.scr-capture .sheet-acts .btn-primary { flex: 1 1 8rem; }
/* The flag bar first on the confirm screen gives up its top margin, so the band under the title is
   the 44px every screen opens with (Tess, Run M7 on capture-r13; the board's .standin + .note--callout). */
.scr-capture .body > [role="status"]:first-child > :is(.callout, .note--callout):first-child { margin-block-start: 0; }
 /* P04 "Your worksheet" at full size (R8; Tess 11-24): one block per page, the photo at the content
    width (up to 560px), its label above, the device check's note line and the quiet actions under it.
    The check's status is always there (empty until it has a line), so it takes no room till then. */
 .scr-capture .pg-stack { list-style: none; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-6); margin: var(--space-5) 0 0; padding: 0; }
 .scr-capture .pg { display: grid; grid-template-columns: minmax(0, 1fr); max-inline-size: 35rem; }
 .scr-capture .pg-l { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-1) var(--space-3); margin: 0; font-size: inherit; font-weight: var(--weight-announce); line-height: var(--lh-snug); }
 .scr-capture .pg-s { color: var(--muted); font-size: var(--text-sm); font-weight: normal; }
 .scr-capture .pg-img { display: block; width: 100%; height: auto; margin-top: var(--space-2); border-radius: var(--radius-control); border: var(--hairline) solid var(--border); background: var(--surface); }
 .scr-capture .pg-flag { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 var(--space-3); margin-top: var(--space-2); }
 .scr-capture .pg-flag--none { margin: 0; }
 .scr-capture .pg-flag p, .scr-capture .pg-flag .note { margin: 0; }
 .scr-capture .pg-flag .link-btn { margin: 0; }
 .scr-capture .pg-acts { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-2); margin-inline-start: calc(-1 * var(--space-2)); }
 .scr-capture .pg-acts .link-btn { margin: 0; }
 .scr-capture .pg--bad { margin-inline: calc(-1 * var(--space-3)); padding: var(--space-3); border-radius: var(--radius-control); background: var(--warn-wash); }
/* M13 (Tess, teacher-r25 on design/figures-u21 dcea51064, _m13-handoff §9; UI 1, 11-12): the matrix
   field's pad in the teacher's Change card. The mock's .ak-chg .k1-pad rules, on the app's pad (the
   MatrixEntryField's .keypad, a screen-bottom dock elsewhere, so its bleed, fill and rule go here).
   One 3-state rule, by the screen column (a container query, never a media query): the card's width
   while five 44px keys fit; out to the screen's gutters below a 370px column at default text; out to
   8px from the screen's edge below a 348px column at 200%. Always five columns, keys at least 44px,
   the gap 8px. Drop this block when the screens CSS moves to teacher-r25. */
.scr-teacher .ak-chg .mxf .keypad {
  min-inline-size: 0;
  margin: var(--space-2) calc(-1 * var(--space-4)) 0;
  padding: 0 var(--space-2);
  background: none;
  border-block-start: 0;
}
/* The tabs scroll sideways rather than widen the pad (the mock's .k1-tabs; at 200% the five tabs
   run past a phone's card). */
.scr-teacher .ak-chg .mxf .keypad-tabs {
  min-inline-size: 0; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none;
}
.scr-teacher .ak-chg .mxf .keypad-tabs::-webkit-scrollbar { display: none; }
.scr-teacher .ak-chg .mxf .keypad-tab { flex: 0 0 auto; }
/* The field is a grid item of the card: at its min-content its pad would push past the card. */
.scr-teacher .ak-chg .mxf { min-inline-size: 0; }
@container screen (max-width: 369.98px) {
  .scr-teacher .ak-chg .mxf .keypad {
    margin-inline: calc(-1 * (2.5rem + var(--space-3) + var(--space-4) + var(--hairline)))
      calc(-1 * (var(--space-4) + var(--hairline)));
    padding-inline: 0;
  }
}
html.is-large-text .scr-teacher .ak-chg .mxf .keypad {
  margin-inline: calc(-1 * (var(--space-4) + var(--hairline)));
  padding-inline: 0;
  gap: var(--space-1);
}
html.is-large-text .scr-teacher .ak-chg .mxf .keypad-panel { gap: var(--space-1); }
@container screen (max-width: 347.98px) {
  html.is-large-text .scr-teacher .ak-chg .mxf .keypad {
    margin-inline: calc(-1 * (var(--gutter) - var(--space-1) + var(--space-4) + var(--hairline)));
  }
}
/* √'s key at 200% below a 494.5px column: its glyph (a radical with its slot) is sized so the key
   stays 44px; the other keys are untouched. Tess accepts the smaller radical. */
@container screen (max-width: 494.48px) {
  html.is-large-text .keypad .keypad-key[data-key^="sqrt("] {
    font-size: calc((var(--tap-min) - 2 * var(--space-1)) / 1.433);
  }
}

/* UI 2, 2026-11-12 (Tess, on ui2-shots/prefill-watch): Fill the pool's "Why", a compact disclosure
   in the .tlink family: no border, the console's link ink, its chevron. The 44px target grows into
   the row's padding by an equal negative block margin, never the row; the count and Why share the
   first line's baseline. */
.scr-console .kv-disc { display: inline-flex; align-items: baseline; gap: var(--space-2); }
.scr-console .tlink-disc {
  display: inline-flex; align-items: center; gap: var(--space-1);
  min-block-size: 44px; margin-block: calc((1lh - 44px) / 2);
  padding: 0 var(--space-1); margin-inline: calc(-1 * var(--space-1));
  border: 0; border-radius: var(--radius-control); background: none;
  color: var(--brand); font: inherit; font-weight: var(--weight-ui); cursor: pointer;
}
.scr-console .tlink-disc .ico { inline-size: 1em; block-size: 1em; transition: transform var(--dur-exit); }
.scr-console .tlink-disc[aria-expanded="true"] .ico { transform: rotate(180deg); }
.scr-console .tlink-disc:active { background: var(--surface-sunk); }
@media (hover: hover) { .scr-console .tlink-disc:hover > span { text-decoration: underline; } }
/* The class activity view (11-11): its worksheet rows and "sent back" rows are links, which the
   mock draws as buttons, so they lose the link underline (its own list only: Results' rows keep theirs). */
.scr-teacher .cp-sent a.as, .scr-teacher a.top-row { text-decoration: none; }
/* UI 3, 2026-11-11 (P24, Problems Repwise can't serve yet): the not-yet line is muted, beside the key
   screen's plain notes; and the teacher home's one Practice is ready line keeps off the section below. */
.ak-none.ak-none--quiet { color: var(--muted); }
.scr-teacher .tside > .link-btn { margin-block-end: var(--space-2); }

/* UI 1, 11-17: P23 "Parents seeing progress" (Tess #1534). parent-r18 draws it under its own class
   names (.wk-days, .sess, .topics), and the screens sync doesn't generate the parent screens, so this
   block is the build's. */
/* The week by day: the account's Monday to Sunday, a 12px dot over each day's letter. A day with
   practice is a filled --brand dot; a day gone by with none, an empty 1.5px --border-strong ring;
   a day to come, the letter only. Today's letter is bold. */
:is(.scr-parent, .scr-home) .pd-days-row {
  display: grid; grid-template-columns: repeat(7, 1fr); justify-items: center; gap: var(--space-1);
  max-inline-size: min(100%, calc(7 * var(--tap))); list-style: none; margin: var(--space-3) 0 0; padding: 0;
}
:is(.scr-parent, .scr-home) .pd-day { display: grid; justify-items: center; gap: var(--space-2); }
:is(.scr-parent, .scr-home) .pd-day-dot { inline-size: var(--space-3); block-size: var(--space-3); border-radius: var(--radius-pill); box-sizing: border-box; }
:is(.scr-parent, .scr-home) .pd-day--done .pd-day-dot { background: var(--brand); }
/* An inset shadow, not a border: a 1.5px border paints as 1px at device scale 1 (Tess, A59). */
:is(.scr-parent, .scr-home) .pd-day--missed .pd-day-dot { box-shadow: inset 0 0 0 1.5px var(--border-strong); }
:is(.scr-parent, .scr-home) .pd-day--later .pd-day-dot { visibility: hidden; }
:is(.scr-parent, .scr-home) .pd-day-l { color: var(--muted); font-size: var(--text-sm); line-height: 1; }
:is(.scr-parent, .scr-home) .pd-day.is-today .pd-day-l { color: var(--fg); font-weight: var(--weight-announce); }
/* Last active, under the row: r18's .act-when. */
.scr-parent .pd-days + .field-hint { margin-block-start: var(--space-2); }
html.is-large-text :is(.scr-parent, .scr-home) .pd-days-row { gap: 0; }
html.is-large-text :is(.scr-parent, .scr-home) .pd-day { gap: var(--space-1); }
/* R11 (Tess, 11-24): Home's week row reuses P23's day row, drawing only .pd-day--done and
   .pd-day--later (a past day with no practice looks exactly like a day to come). Its title, the
   section's last block, is a quiet sub-heading; a Needs a look row's one action sits under it. */
.scr-home .home-week { margin-block-start: var(--space-5); }
.scr-home .home-week--alone { margin-block-start: 0; }
.scr-home .home-week-h { margin: 0; font-size: var(--text-sm); font-weight: var(--weight-announce); color: var(--fg); }
/* R11 (Tess 11-24): a Home topic row's unit meta, one line. */
 .scr-home .topic-u { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.scr-home .home-stand .topic-act { margin-block-start: var(--space-1); }
/* Where {name} stands: each topic's unit as meta under its name. */
:is(.scr-parent, .scr-home) .topic-u { display: block; margin-block-start: var(--space-1); color: var(--muted); font-size: var(--text-sm); font-weight: var(--weight-read); line-height: var(--lh-snug); }
/* Study sessions: each row one meta line, the date (in --fg) then what it covered and the counts. Its
   dot goes after a piece, not before the next, so a wrapped line never starts with one (parent-r18). */
.scr-parent .pd-sessions { list-style: none; margin: 0; padding: 0; }
.scr-parent .pd-session { padding: var(--space-3) 0; }
.scr-parent .pd-session + .pd-session { border-top: var(--hairline) solid var(--border); }
.scr-parent .pd-session-h { display: block; }
.scr-parent .pd-session-m { color: var(--muted); font-size: var(--text-sm); line-height: var(--lh-snug); }
.scr-parent .pd-session-m > span:first-child { color: var(--fg); font-weight: var(--weight-ui); }
.scr-parent .pd-session-m > * + *::before { content: none; margin-inline: 0; }
.scr-parent .pd-session-m > :not(:last-child)::after { content: "\00b7"; content: "\00b7" / ""; margin-inline: 0.45em; }
/* UI 1, 11-17: P14 "Marks you can see at a glance" (Jeff and Ops; Tess #1524), until worksheet-r13
   draws them. Kit: a status chip solid or outlined in its own color (P23's drill-down uses them too).
   Both keep a 1.5px edge, so a solid and an outlined mark are the same size. */
.status-chip--info    { --chip-wash: var(--info-wash);    --chip-fg: var(--info); }
.status-chip--success { --chip-wash: var(--success-wash); --chip-fg: var(--success); }
.status-chip--warn    { --chip-wash: var(--warn-wash);    --chip-fg: var(--warn); }
.status-chip--brand   { --chip-wash: var(--brand-wash);   --chip-fg: var(--brand); }
.status-chip--muted   { --chip-wash: var(--surface);      --chip-fg: var(--muted); }
.status-chip--solid, .status-chip--outline {
  border: 1.5px solid var(--chip-fg);
  padding: calc(var(--chip-pad-y) - 1.5px) calc(var(--space-2) - 1.5px);
}
/* Solid: the fill is the color, the word is --bg (Checked). */
.status-chip--solid { background: var(--chip-fg); color: var(--bg); }
/* Outlined: no fill, so it holds on --bg, the hover's --surface and the chosen row's --surface-sunk;
   the edge carries it. Practiced alone keeps its blue wash. */
.status-chip--outline { background: transparent; }
.status-chip--outline.status-chip--info { background: var(--info-wash); }

/* The two fixed slots, then the rest. An empty slot keeps its mark's width (drawn, unseen) with a
   dashed ring the size of the icon where the icon will be: neutral, so the list gains color only as
   work is done. */
.scr-list .marks { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-1) var(--space-2); min-block-size: var(--tap); }
.scr-list .marks-more { display: contents; }
.scr-list .mark-slot { position: relative; display: inline-flex; }
.scr-list .mark-slot.is-empty > .status-chip { visibility: hidden; }
.scr-list .mark-ring {
  position: absolute; inset-inline-start: var(--space-2); inset-block-start: 50%;
  inline-size: 0.875rem; block-size: 0.875rem; transform: translateY(-50%);
  border: 1.5px dashed var(--border-strong); border-radius: 50%; box-sizing: border-box;
}
/* A selected row is --surface-sunk, where --border-strong is under 3:1: the ring takes the text grey
   there (Tess, P14, 11-17). */
.scr-list .prow.is-sel .mark-ring { border-color: var(--muted); }

/* Large text: the number keeps one width for up to 3 characters, so the slots after it line up down
   the list ("9" and "19" alike; UI 3's review). */
html.is-large-text .scr-list .plist .prow-n { min-inline-size: max(var(--space-6), calc(3ch + 2 * var(--space-1))); }

/* Phone: the marks on the number's line, the problem on its own full-width lines below. Never beside
   the equation: the width is tight already. */
.scr-list .plist { container: plist / inline-size; }
.scr-list .plist .prow { grid-template-rows: none; }
.scr-list .plist .prow .prow-n { grid-column: 1; grid-row: 1; }
.scr-list .plist .prow .marks { grid-column: 2; grid-row: 1; }
.scr-list .plist .prow .prow-math { grid-column: 1 / -1; grid-row: 2; }
.scr-list .plist .prow .prow-ans { grid-column: 1 / -1; grid-row: 3; }

/* The list 600px and up: a fixed status column at the row's right edge, the same on every row (the
   two slots' width), the other states on a line under them; the problem takes the rest. */
@container plist (min-width: 600px) {
  .scr-list .plist .prow { grid-template-columns: auto minmax(0, 1fr) auto; }
  .scr-list .plist .prow .prow-n { grid-row: 1 / span 2; }
  .scr-list .plist .prow .prow-math { grid-column: 2; grid-row: 1; }
  .scr-list .plist .prow .prow-ans { grid-column: 2; grid-row: 2; }
  .scr-list .plist .prow .marks {
    grid-column: 3; grid-row: 1 / span 2;
    display: grid; grid-template-columns: auto auto; align-content: center; justify-content: end;
  }
  .scr-list .marks-more {
    grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: end; gap: var(--space-1);
    inline-size: 0; min-inline-size: 100%;
  }
}

/* UI 1, 11-17 (Tess's audit #1535 item 3; security-r9, G7 "Button groups"): Add a passkey and Sign
   out everywhere else sit 16px under their lists, not flush on them. */
.scr-security .card > .rows + .link-btn { margin-block-start: var(--space-4); }

/* UI 2, 11-18 (P36 "The waitlist in the console", Tess #1601; composed from P29's list until an admin
   round draws it): a row's note and staff note keep the lines they were typed with, and a long word or
   address wraps rather than widening the panel. */
.scr-console .wl-note { white-space: pre-wrap; overflow-wrap: anywhere; }
/* The waitlist's state chip under the name, and the repeat-interest warning, each spaced from what follows (Tess, 11-19). */
.scr-console .wl-state { display: inline-block; margin-block-end: var(--space-2); }
.scr-console .wl-warn { margin-block-end: var(--space-3); }
/* UI 3, 11-18: the class page's extra practice line (P24 l.264, Tess 11-17), outside the generated
   block so the screens sync keeps it, until Tess's teacher mock draws it: one quiet line under the band, its
   own count, never one of the band's figures. */
.scr-teacher .sum-extra { margin: calc(-1 * var(--space-2)) 0 var(--space-4); color: var(--muted); font-size: var(--text-sm); line-height: var(--lh-snug); }
/* UI 3, 11-25 (P24 R2, G7's toggle rule; Tess, A90's shots): a pressed What-needs-a-look count looks pressed
   on itself, never only in the roster heading below: the brand border, the surface fill, the announce
   weight, and the leading check the count draws (so it isn't colour alone). Unpressed keeps .btn-quiet's rest. */
.scr-teacher .pickbar .btn-quiet[aria-pressed="true"] { border-color: var(--brand); background: var(--surface); font-weight: var(--weight-announce); }

/* UI 2, 11-18 (A62, Tess #1603; support-r15 · email-stop-done): the gate page's done line, under the
   body, which takes focus when the stop goes through (the mock's own .gate-done). */
.gate-done { margin: 0; color: var(--fg); line-height: var(--lh-body); text-wrap: pretty; }
.gate-done:focus { outline: none; }
.gate-done:focus-visible { outline: var(--focus-w) solid var(--focus); outline-offset: var(--focus-off); }

/* R9 step 1 (P07, Tess 11-24): the pages being read, above the checklist and still. Page 1 at the
   content width (up to 400px); the others a wrapping row of small pages, each with its label. No
   animation, no overlay and no scan line, so reduced motion changes nothing. Beside the reading
   rules, which are in the generated block. */
.scr-capture .read-pages { display: grid; gap: var(--space-3); margin-block: var(--space-4) var(--space-2); }
.scr-capture .read-page { margin: 0; display: grid; gap: var(--space-1); justify-items: start; }
.scr-capture .read-page img { display: block; inline-size: 100%; block-size: auto; border-radius: var(--radius-control); background: var(--surface); box-shadow: 0 0 0 var(--hairline) var(--border); }
.scr-capture .read-page--lead { max-inline-size: 25rem; }
.scr-capture .read-page figcaption { font-size: var(--type-meta); color: var(--muted); }
.scr-capture .read-pages-rest { display: flex; flex-wrap: wrap; gap: var(--space-3); margin: 0; padding: 0; list-style: none; }
.scr-capture .read-pages-rest .read-page { inline-size: 4.5rem; }
/* Tess's (c): on a phone the pages come after Stop reading (the DOM order). From 820 they go back
   between the bar and the checklist. */
@container screen (min-width: 820px) {
  .scr-capture .read-flow { display: flex; flex-direction: column; }
  .scr-capture .read-flow > .read-bar { order: -2; }
  .scr-capture .read-flow > .read-pages { order: -1; }
  .scr-capture .read-flow > .link-btn { align-self: flex-start; }
  /* Tess 11-24 (P07): "Keep this screen open" is never below the fold, at any width. Page 1 is 16rem
     at most, and never taller than the screen leaves once the bar, the other pages and the checklist
     with its slow line are counted (34rem, measured: 1024x768 and 1280x720 were 16px over at 32rem). */
  .scr-capture .read-page--lead { max-inline-size: 16rem; }
  .scr-capture .read-page--lead img { inline-size: auto; max-inline-size: 100%; max-block-size: max(8rem, calc(100dvh - 34rem)); }
}


/* UI 2, 11-24 (Q8, Tess P32; no frame yet): "Getting set up", the holder's card at the top of the dashboard.
   Each row: a tick or an empty ring (and its word for a screen reader), the line and its sub, one action. */
.setup-card {
  background: var(--surface);
  border: var(--hairline) solid var(--border);
  border-radius: var(--radius-card);
  padding: var(--space-4);
  margin-block-end: var(--space-5);
}
.setup-title { margin: 0 0 var(--space-3); font-size: var(--type-body); }
.setup-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); }
.setup-item { display: grid; grid-template-columns: auto 1fr; column-gap: var(--space-3); row-gap: var(--space-1); align-items: start; }
.setup-mark { display: inline-flex; inline-size: 1.25em; block-size: 1.25em; align-items: center; justify-content: center; margin-block-start: 0.1em; }
.setup-mark .ico { color: var(--success); }
.setup-ring { inline-size: 1em; block-size: 1em; border: 2px solid var(--muted); border-radius: 50%; }
.setup-text { display: grid; gap: var(--space-1); min-inline-size: 0; }
.setup-sub { color: var(--muted); font-size: var(--type-hint); text-wrap: pretty; }
.setup-item.is-done .setup-line { color: var(--muted); }
.setup-act { grid-column: 2; justify-self: start; }
.setup-foot { margin-block-start: var(--space-3); }
.setup-done { display: flex; align-items: center; gap: var(--space-2); margin: 0; }
.setup-done .ico { color: var(--success); }
@container (min-width: 640px) {
  .setup-item { grid-template-columns: auto 1fr auto; }
  .setup-act { grid-column: 3; grid-row: 1; align-self: center; }
}


/* UI 4, 11-24 (Q4, P31, Tess #1898): the iPhone steps sheet's "Can't find it?", a native <details> under
   step 3, closed. Its summary is a text button (.link-btn's look); open, two quiet lines, in the sheet. */
.scr-settings .cant-find { margin-block-start: var(--space-2); }
.scr-settings .cant-find > summary {
  display: inline-flex; align-items: center; gap: var(--space-2);
  min-block-size: var(--tap); margin-inline-start: calc(-1 * var(--space-2)); padding-inline: var(--space-2);
  border-radius: var(--radius-control); color: var(--brand);
  font-weight: var(--weight-announce); line-height: var(--lh-snug); cursor: pointer; list-style: none;
}
.scr-settings .cant-find > summary::-webkit-details-marker { display: none; }
.scr-settings .cant-find > summary::after {
  content: ""; inline-size: 0.5em; block-size: 0.5em; margin-block-start: -0.25em;
  border-inline-end: calc(var(--hairline) * 2) solid currentColor; border-block-end: calc(var(--hairline) * 2) solid currentColor;
  transform: rotate(45deg);
}
.scr-settings .cant-find[open] > summary::after { margin-block-start: 0.25em; transform: rotate(-135deg); }
.scr-settings .cant-find > summary:hover { background: var(--brand-wash); }
.scr-settings .cant-find > summary:focus-visible { outline: var(--focus-w) solid var(--focus); outline-offset: var(--focus-off); }
.scr-settings .cant-find > p { margin: var(--space-2) 0 0; color: var(--muted); line-height: var(--lh-body); text-wrap: pretty; }
@media (forced-colors: active) { .scr-settings .cant-find > summary { color: LinkText; } }

/* UI 4, 11-24 (V15, Tess's Refero review: no icon per heading): the Classes org heads lost their
   decorative school and calendar marks, so the district line under a school name no longer indents
   past an icon. Outside the generated block; it goes when teacher-r's mock drops the icon and the
   screens regenerate (Tess). */
.scr-teacher .org-d { padding-inline-start: 0; }
