/* ============================================================
   Taurifer — editorial
   Light: cream surfaces, near-black ink, burnt-orange accent.
   Dark: the same layout on warm charcoal, reached only by
   swapping the :root tokens (see [data-theme="dark"] below).
   Ordinary content separates through hairlines and whitespace. Bounded
   depth marks selected, floating, modal and persistent-action roles.
   ============================================================ */

@font-face{font-family:"Plex Sans";src:url(fonts/plexsans.woff2) format("woff2");font-weight:100 700;font-display:swap}
@font-face{font-family:"Plex Mono";src:url(fonts/plexmono-400.woff2) format("woff2");font-weight:400;font-display:swap}
@font-face{font-family:"Plex Mono";src:url(fonts/plexmono-500.woff2) format("woff2");font-weight:500;font-display:swap}
@font-face{font-family:"Plex Mono";src:url(fonts/plexmono-600.woff2) format("woff2");font-weight:600;font-display:swap}

:root,.theme-light{
  /* `.theme-light` scopes the same tokens to one element, so a surface that must stay light in either theme (the landing
     proof's phone screen) reads the app's own light palette rather than a copy of it. */
  container-type:inline-size;
  color-scheme:light;
  /* `color-scheme` is a keyword property, so the few rules that pin a native
     control to one appearance read it from here instead of hard-coding it and
     stranding that control in the light palette. */
  --scheme:light;
  --bg:#F4F2EF;
  --surface:#FFFFFF;
  --ink:#1B1A17;
  --ink-soft:#6A665F;
  --ink-faint:#716D66;
  --rule:#E4E1DA;
  --rule-strong:#D9D5CD;
  --accent:#E04E14;
  --accent-deep:#B8410E;
  --partial-on-cta:var(--share-card-accent);
  --font-size-partial-reps:.78em;
  --font-size-partial-shelf:.62em;
  --positive:#2F7D33;
  --cta:#161513;
  --well:#FAF8F5;
  --cta-ink:#FFFFFF;
  /* Ink for copy sitting on a filled --accent-deep ground. It is not --cta-ink:
     in dark the CTA inverts to a light pill while the orange stays orange, so
     the two inks move in opposite directions. */
  /* The share cards are pictures that leave the app, so they keep one palette in both themes (owner, 2026-11-05). */
  --share-card-orange:#B8410E;
  --share-card-orange-ink:#FFFFFF;
  --share-card-dark:#141310;
  --share-card-dark-ink:#F2EFE9;
  --share-card-dark-soft:#ADA79D;
  --share-card-accent:#F2703B;
  --share-card-positive:#6FBF73;
  --accent-ink:#FFFFFF;
  --danger:#C93A2B;
  /* Channel triplets for the tints, focus rings and washes that need the theme
     colour at partial alpha. Keeping them beside the hex means a theme swap
     carries the translucent surfaces with it. */
  --accent-rgb:224,78,20;
  --positive-rgb:47,125,51;
  --danger-rgb:201,58,43;
  --ink-rgb:27,26,23;
  --bg-rgb:244,242,239;
  /* The wash behind a selected program-entry choice: warm copper at a low
     alpha so a bounded white card gains a tint without a second surface
     colour. Defined per theme so dark lifts it enough to register. */
  --entry-tint:rgba(224,78,20,.06);
  --knob:#FFFFFF;
  /* A QR code plate (Plan 086): cameras read dark modules on a light ground, so dark does not override it. */
  --qr-plate:#FFFFFF;
  /* Scrims stay dark in both themes: they exist to push the page back. */
  --scrim:rgba(27,26,23,.42);
  /* How much of --scrim dims the page under a push: about a tenth in either theme (ADR 0023). */
  --push-dim:.24;
  /* The soft edge a pushed page casts on the page under it while it moves, one value in both themes as in the prototype (ADR 0023). */
  --push-edge-shadow:-10px 0 30px rgba(0,0,0,.12);
  /* Plan 058 semantic scales. Consumers migrate by role in P4–P6. */
  --font-language:"Plex Sans",system-ui,-apple-system,Segoe UI,sans-serif;
  --font-training-data:"Plex Mono",ui-monospace,SFMono-Regular,Menlo,monospace;
  --font-size-label:.6875rem;
  --font-size-caption:.75rem;
  --font-size-body-small:.875rem;
  --font-size-body:1rem;
  --font-size-control:1rem;
  --font-size-subtitle:1.125rem;
  --font-size-metric:1.375rem;
  --font-size-section-title:1.5rem;
  --font-size-feature-title:1.75rem;
  --font-size-focal-data:var(--font-size-feature-title);
  --font-size-title:1.875rem;
  --font-size-display:2.5rem;
  /* The selected landing's headline has a deliberate scale break above the ordinary
     display tier; the saved-session hero is a plain title (30px). These are bounded role variants,
     not permission for one-off sizes in other surfaces. */
  --font-size-landing-headline:2.375rem;
  --font-size-landing-headline-wide:3.25rem;
  /* the landing mocks' caption: one step under body-small so the scaled phone's labels stay legible */
  --font-size-rest-clock:clamp(2rem,10cqi,2.625rem);
  /* The Focus hero (#523, owner 2026-10-28, direction A of focus-hero.html): the instruction is the screen's headline,
     its second line, the evidence line under them and the demoted prescription line. A contextual variant, Focus only. */
  --font-size-focus-cue:2.125rem;
  --font-size-focus-cue-second:1.3125rem;
  --font-size-focus-evidence:.9375rem;
  --font-size-focus-meta:.8125rem;
  --line-focus-cue:1.08;
  --weight-focus-cue:650;
  --line-tight:1.1;
  --line-standard:1.4;
  --line-reading:1.55;
  --weight-regular:400;
  --weight-medium:500;
  --weight-semibold:600;
  --radius-none:0;
  --radius-compact:4px;
  --radius-control:8px;
  --radius-surface:12px;
  /* The curve just inside a 1px-bordered surface, for a child that has to follow its clip (#299). */
  --radius-surface-inner:calc(var(--radius-surface) - 1px);
  --radius-prominent:16px;
  /* Exact Plan 054 device-stage composition; these are not reusable scale steps. */
  --radius-landing-stage:24px;
  --radius-landing-stage-compact:20px;
  /* The proof's phone drawn at its screen's own size (390 px wide), so its corner is a phone's, not a card's. */
  --radius-landing-phone:44px;
  /* the desktop demo phone's bezel: a hairline, a night-raised ring and a faint outer edge over the floating shadow */
  --elevation-landing-device-shadow:0 0 0 1px color-mix(in srgb,var(--band-night-ink) 16%,transparent),0 0 0 var(--space-8) var(--band-night-raised),
    0 0 0 calc(var(--space-8) + 1px) rgba(255,255,255,.12),var(--elevation-floating-shadow);
  --radius-pill:999px;
  /* Every button is a pill (the native UI kit, owner decision 2026-10-24): one token so a variant cannot drift. It is
     half the single-line CTA (54px), not 999px: a one-line button is a pill, and one whose label wraps at large text
     becomes a rounded rectangle, as iOS draws it, never a circle or an oval. */
  --radius-button:27px;
  /* Tracking by role (the native UI kit): uppercase group labels and eyebrows share one value. */
  --track-label:.06em;
  /* Toasts are an ink pill with paper text in both themes (the native UI kit), not the primary button's fill. */
  --toast-bg:var(--ink);--toast-ink:var(--bg);
  --radius-round:50%;
  --elevation-flat-shadow:none;
  --elevation-selected-shadow:inset 0 0 0 2px var(--boundary-selected);
  --elevation-floating-shadow:0 8px 24px rgba(var(--shadow-rgb),.18);
  --elevation-focus-shadow:0 1px 2px rgba(var(--shadow-rgb),.04),0 10px 30px rgba(var(--shadow-rgb),.10);
  --elevation-modal-shadow:0 10px 22px rgba(var(--shadow-rgb),.18),0 2px 5px rgba(var(--shadow-rgb),.08);
  --elevation-dialog-shadow:0 16px 40px rgba(var(--shadow-rgb),.12);
  --elevation-persistent-shadow:0 -4px 16px rgba(var(--shadow-rgb),.09);
  --elevation-nav-shadow:inset 0 1px 0 var(--dock-sheen),inset 0 -1px 0 rgba(var(--shadow-rgb),.05),0 4px 14px rgba(var(--shadow-rgb),.10),0 1px 3px rgba(var(--shadow-rgb),.06);
  --elevation-program-dock-shadow:inset 0 1px 0 var(--dock-sheen),0 -4px 14px var(--dock-edge);
  --elevation-popover-shadow:0 8px 24px rgba(var(--shadow-rgb),.1);
  --elevation-tooltip-shadow:0 10px 22px rgba(var(--shadow-rgb),.18),0 2px 5px rgba(var(--shadow-rgb),.08);
  --elevation-sheet-shadow:0 -8px 40px rgba(var(--shadow-rgb),.18);
  --elevation-drag-shadow:0 12px 28px rgba(var(--shadow-rgb),.16);
  --elevation-nav-selected-shadow:inset 0 1px 0 var(--dock-pill-sheen),0 1px 3px rgba(var(--shadow-rgb),.08);
  --elevation-nav-indicator-shadow:inset 0 1px 0 var(--dock-pill-sheen),0 1px 3px rgba(var(--shadow-rgb),.09);
  --control-focus-halo-shadow:0 0 0 3px rgba(var(--accent-rgb),.12);
  --switch-off-track:rgba(var(--ink-rgb),.10);
  /* The share sheet (share templates): the clear ground's check, the card's lift off the sheet, a swatch's edge and the
     chosen one's ring, the camera badge cut out of that ring. */
  /* A clear sticker is white, so its preview check is dark in both themes. */
  --share-checker-a:#3A3733;--share-checker-b:#2A2825;
  --elevation-share-slide-shadow:0 1px 2px rgba(var(--shadow-rgb),.1),0 10px 30px rgba(var(--shadow-rgb),.18);
  --boundary-share-swatch-shadow:inset 0 0 0 1px var(--boundary-decorative);
  --boundary-share-ground-selected-shadow:0 0 0 2px var(--accent-deep);
  --boundary-share-cam-cut-shadow:0 0 0 2px var(--surface);
  /* The share editor is dark in both themes, like a photo editor, so a card is judged against a neutral surround. */
  --share-editor-bg:#0E0D0B;--share-editor-ink:#F4F1EC;--share-editor-ink-secondary:#B9B3A9;
  --share-editor-switch-off:rgba(150,144,134,.34);--share-editor-checker-a:#3A3733;--share-editor-checker-b:#2A2825;
  --elevation-share-editor-frame-shadow:0 0 0 .5px rgba(255,255,255,.12);
  --share-editor-box-edge:rgba(255,255,255,.85);--elevation-share-editor-box-shadow:0 0 0 1px rgba(0,0,0,.3);
  --switch-on-track:var(--accent-deep);
  /* The wheel picker's selection band: ink at 7%, as the prototype draws it, in either theme. */
  --wheel-band:rgba(var(--ink-rgb),.07);
  --switch-off-ring:inset 0 0 0 1.5px var(--boundary-required);
  /* Segmented and stepper tracks: a soft ink tint, as iOS draws them. The thumb is a raised paper surface; it and the
     heavier label carry the selection (contract: state cues). */
  --control-track:rgba(var(--ink-rgb),.07);
  --segment-thumb-bg:var(--surface);
  --segment-thumb-shadow:0 3px 8px rgba(var(--shadow-rgb),.12),0 1px 1px rgba(var(--shadow-rgb),.04),0 0 0 .5px rgba(var(--shadow-rgb),.06);
  --menu-bg:rgba(var(--bg-rgb),.86);
  --menu-destructive-ink:#9E2E22;
  --menu-blur:blur(20px) saturate(180%);
  /* Behind a context menu the page stays itself, washed and blurred, rather than dimmed. */
  --menu-backdrop:rgba(var(--bg-rgb),.25);
  --menu-shadow:var(--elevation-popover-shadow),0 0 0 .5px var(--bar-edge);
  --menu-separator:rgba(var(--ink-rgb),.06);
  /* Today's live card: the prototype's raised paper (a hairline drop and a soft lift), on the theme's shadow channel. */
  --live-card-shadow:0 1px 0 rgba(var(--shadow-rgb),.04),0 6px 18px rgba(var(--shadow-rgb),.06);
  --live-dot-halo:0 0 0 4px rgba(var(--accent-rgb),.18);
  /* The light behind the panel (owner, 2026-10-28): quieter in light, which can't be brighter than the paper. */
  --rest-light-core:var(--accent);--rest-light-bloom:var(--accent);--rest-light-gain:.62;
  /* The mini bar's lift, the prototype's soft float on the theme's shadow channel. */
  /* The mini bar is the dock's family (owner, iPhone, 2026-10-31): the dock's lift. */
  --minibar-shadow:var(--elevation-nav-shadow);
  --live-dot-pulse-from:0 0 0 0 rgba(var(--accent-rgb),.45);
  --live-dot-pulse-to:0 0 0 9px rgba(var(--accent-rgb),0);
  --row-pressed-bg:rgba(var(--ink-rgb),.06);
  --sheet-grabber:rgba(var(--ink-rgb),.22);
  --control-toggle-thumb-shadow:0 3px 8px rgba(var(--shadow-rgb),.15),0 3px 1px rgba(var(--shadow-rgb),.06),0 0 0 .5px rgba(var(--shadow-rgb),.04);
  --control-accent-keyline-shadow:inset 0 0 0 1px var(--accent);
  --boundary-flat:var(--rule);
  --boundary-selected:var(--accent-deep);
  --boundary-floating:var(--rule-strong);
  --boundary-modal:var(--rule-strong);
  --boundary-persistent:var(--rule-strong);
  --shadow-rgb:27,26,23;
  /* Semantic color jobs. These aliases have no consumer change in P3. */
  --color-action:var(--accent);
  --color-action-text:var(--accent-deep);
  --color-action-on-fill:var(--accent-ink);
  --color-improved:var(--positive);
  --color-declined:var(--danger);
  --color-maintained:var(--ink-soft);
  --color-warning:var(--accent-deep);
  --color-destructive:var(--danger);
  --color-focus:var(--accent);
  --color-disabled-reason:var(--ink-soft);
  --boundary-required:var(--ink-soft);
  --profile-mark-plate:transparent;
  --boundary-decorative:var(--rule);
  --color-surface:var(--surface);
  --color-ink:var(--ink);
  --color-ink-secondary:var(--ink-soft);
  --control-target:44px;
  --control-icon-size:24px;
  --control-primary-bg:var(--cta);
  --control-primary-ink:var(--cta-ink);
  --control-primary-boundary:transparent;
  --control-primary-disabled-bg:var(--rule);
  --control-primary-disabled-ink:var(--ink-soft);
  --control-secondary-bg:var(--surface);
  --control-secondary-ink:var(--ink);
  --control-secondary-boundary:var(--boundary-required);
  --control-quiet-bg:transparent;
  --control-quiet-ink:var(--ink);
  --control-quiet-boundary:transparent;
  --control-destructive-bg:transparent;
  --control-destructive-ink:var(--color-destructive);
  --control-destructive-boundary:var(--boundary-required);
  --control-disclosure-bg:transparent;
  --control-disclosure-ink:var(--ink);
  --control-disclosure-boundary:transparent;
  --control-selection-bg:var(--surface);
  --control-selection-ink:var(--ink);
  --control-selection-boundary:var(--boundary-required);
  --control-selection-active-bg:var(--entry-tint);
  --control-adjustment-bg:var(--control-secondary-bg);
  --control-adjustment-ink:var(--control-secondary-ink);
  --control-adjustment-boundary:var(--control-secondary-boundary);
  --control-field-bg:var(--surface);
  --control-field-ink:var(--ink);
  --control-field-boundary:var(--boundary-required);
  --control-focus-outline:2px solid var(--color-focus);
  --control-pressed-transform:translateY(1px) scale(.995);
  /* ADR 0023 (audit F-3): a primary action shows a pressed tone one step off its
     fill and a 3% scale; every other control keeps its wash and the transform
     above. The release is the pressRelease spring, written by motion-layer.js as
     a linear() curve; these are its fallbacks. */
  --control-pressed-scale:.97;
  /* A bar title stops growing here, as iOS bar titles do at large text sizes (ADR 0023): pixels, so 200% text does not move it. */
  --bar-title-max:21px;
  /* Focus at large text (Plan 075 phase 5): where each type role stops growing, at the prototype's 200% sizes. */
  --large-cap-caption:16px;
  --large-cap-supporting:18px;
  --large-cap-small:20px;
  --large-cap-body:24px;
  --large-cap-data:25.6px;
  --large-cap-subtitle:26px;
  --large-cap-value:28px;
  --large-cap-title:35.2px;
  --large-cap-clock:52px;
  --control-primary-pressed-transform:scale(var(--control-pressed-scale));
  --control-primary-pressed-bg:#3A3833;
  --ease-press-release:cubic-bezier(.2,.7,.2,1);
  --press-release-duration:.24s;
  --control-disabled-opacity:.4;
  --control-selected-boundary:var(--boundary-selected);
  --control-error-boundary:var(--color-destructive);
  /* Plan 064 R1b: owner-approved shared tokens (OG-3, OG-4; recorded in the
     contract's Plan 064 amendment). Nothing in the app reads them yet; each
     is first used by the slice its inventory row names. */
  /* Quiet selection: the selected boundary where orange is rationed (shelf
     fields, the open ledger row, the tab indicator). It aliases ink and reuses
     the contract's 2px inset recipe; it adds no width. */
  --boundary-selected-quiet:var(--ink);
  --elevation-selected-quiet-shadow:inset 0 0 0 2px var(--boundary-selected-quiet);
  /* Owner hill-climb recipes (2026-11-10): the selected shelf field a 1.5px quiet ring; the backup card a hairline; Start a tucked shadow
     whose negative spread keeps it inside the column, which clips sideways. They resolve per theme through the tokens
     they name. */
  --boundary-field-selected-shadow:inset 0 0 0 1.5px var(--boundary-selected-quiet);
  --boundary-card-hairline-shadow:inset 0 0 0 1px var(--boundary-decorative);
  --elevation-cta-tucked-shadow:0 6px 10px -8px rgba(var(--shadow-rgb),.4);
  /* A choice row's mark is its required boundary (native UI kit §5, contract: choice rows): a 1.5px ring, accent
     when chosen. The row is the target, at least the kit's single-line row height. */
  --choice-row-min:52px;
  --choice-mark-ring:inset 0 0 0 1.5px var(--boundary-required);
  --choice-mark-ring-on:inset 0 0 0 1.5px var(--accent-deep);
  /* Decorative separator drawn on --surface (sheets, the shelf). Never the sole
     cue for a required mark. */
  --rule-on-surface:var(--rule);
  /* Spacing scale and page gutter (DESIGN.md: 4 / 8 / 12 / 14 / 16 / 18 / 26 /
     32). Lengths, not themed, so they are declared once. */
  --space-4:4px;
  --space-8:8px;
  --space-12:12px;
  --space-14:14px;
  --space-16:16px;
  --space-18:18px;
  --space-26:26px;
  --space-32:32px;
  --gut:16px;
  /* The least the Focus context region keeps: the exercise's name row (the 56px thumbnail and the card's padding).
     Banners and guides give way before it does; at large text on a short screen the shelf comes first and it is 0. */
  --focus-context-floor:80px;
  /* The exercise chart's axis labels live inside the drawing's own 328x190 units, so they are set in that unit and do
     not follow the reader's text size (a five-character tick at double size is wider than the margin it labels and
     leaves the drawing). The table under the chart carries the same numbers at the reader's size. */
  --font-size-chart-axis:11px;
  /* Workout shelf grounds, on the shelf only: fields sit on the well, pads on
     the page ground. */
  --shelf-field-bg:var(--well);
  --shelf-pad-bg:var(--bg);
  /* The Focus shelf's concentric corners (Plan 075 phase 5 addendum): every field, pad and the action sits
     --shelf-inset inside a sheet of --shelf-radius, so its corner is the difference. */
  --shelf-radius:28px;
  --shelf-inset:16px;
  --shelf-inner-radius:calc(var(--shelf-radius) - var(--shelf-inset));
  /* A selected field inside the per-side tile keeps small inner corners; the grabber is a short pill. */
  --shelf-group-inner-radius:6px;
  /* Landing bands (OG-3). Night is the dark palette in both themes; the mark
     that was #4A453D (1.79:1 and 1.95:1) is the required boundary below. */
  --band-night-bg:#141310;
  --band-night-raised:#1E1C18;
  --band-night-ink:#F2EFE9;
  --band-night-ink-soft:#ADA79D;
  --band-night-ink-faint:#99938A;
  --band-night-rule:#2E2B26;
  --band-night-accent:#F2703B;
  --band-night-accent-text:#FF8A3D;
  --band-night-boundary-required:var(--band-night-ink-soft);
  --band-night-cta-bg:#DED7CC;
  --band-night-cta-ink:#161513;
  /* Orange band: the live accent as the field, always carrying near-black ink. */
  --band-orange-bg:var(--accent);
  --band-orange-ink:#141310;
  --band-orange-cta-ink:#F4F2EF;
  --band-orange-cta-mark:#F2703B;
  /* Ink band: the live ink as the field, the page ground as its ink. */
  --band-ink-bg:var(--ink);
  --band-ink-ink:var(--bg);
  --band-ink-ink-soft:rgba(var(--bg-rgb),.78);
  --band-ink-rule:rgba(var(--bg-rgb),.22);
  /* Settings is one text column: the caption of a group, the label of every row
     in it, and the rule between those rows all begin at this inset. */
  --settings-inset:0px;
  /* The dock floats: it is a capsule of --dock-h parked --dock-gap above the
     safe area, inset --dock-inset from each edge. --nav stays the single
     "space the dock claims at the bottom" token every other floating element
     (rest bar, toast, tour, FAB) already measures itself against. */
  /* The dock keeps one row and one height at every text size, as an iOS tab bar does: its labels stop growing at
     1.3× (--dock-label-max), or sooner where a quarter of a narrow phone can't hold "Progresso" at that size (3.7cqi),
     and a touch and hold shows the large-content viewer (Plan 075 phase 5, audit F-5). */
  --dock-label-max:14.3px;
  --dock-label-fit:3.7cqi;
  /* The large-content viewer: its corner and its name's size. */
  --dock-viewer-radius:22px;
  --dock-viewer-label:32px;
  --dock-h:62px;
  --dock-gap:10px;
  --dock-inset:14px;
  --nav:calc(var(--dock-h) + var(--dock-gap));
  /* The dock's corner, which the mini bar above it shares at any height. */
  --dock-radius:calc(var(--dock-h) / 2);
  /* Liquid Glass (#301): translucent enough that what scrolls under the dock reads through the frost, with a rim
     that catches light (--dock-rim) and a faint caustic under it (--dock-caustic) so the capsule reads as a lens
     suspended over the page rather than a plate laid on it. */
  --dock-glass:rgba(250,248,245,.5);
  /* The mini bar's ground: the dock's glass, denser, so its words keep AA over whatever scrolls beneath. */
  --minibar-glass:rgba(250,248,245,.86);
  --dock-glass-opaque:rgba(250,248,245,.97);
  --dock-edge:rgba(27,26,23,.10);
  --dock-sheen:rgba(255,255,255,.7);
  --dock-rim:rgba(255,255,255,.55);
  --dock-caustic:rgba(255,255,255,.22);
  --dock-blur:blur(14px) saturate(190%) brightness(1.05);
  --dock-rim-shadow:inset 0 0 0 .5px var(--dock-rim),inset 0 6px 12px -8px var(--dock-rim);
  /* The light lens stays white: the active tab's accent icon and label measured under 3:1 and 4.5:1 on the climb's ink tint.
     It is solid (issue #824, the mirror of #818): at 82% a black page under the dock greyed it to #E7E7E7 and the
     --accent-deep label fell to 4.47:1; on solid white it holds 5.5:1 and the --accent icon 4:1 whatever is behind it. */
  --dock-pill:#FFFFFF;
  --dock-pill-sheen:rgba(255,255,255,.82);
  /* Plan 075 phase 3: the scroll-edge bar's material, the same glass grammar
     as the dock, paper at 72%. It appears only once the large title below
     has scrolled under the bar. */
  --bar-glass:rgba(var(--bg-rgb),.72);
  --bar-blur:blur(20px) saturate(180%);
  /* Almost-solid glass (owner, 2026-10-28): the bar material at 90%, for the surfaces that carry text over scrolling
     content (the Library bar, the onboarding footer, the Library glossary, sheet footers). The contract measures its
     text against the worst case beneath it, the material over pure black and over pure white. */
  --surface-rgb:255,255,255;
  --glass-solid-bg:rgba(var(--bg-rgb),.9);
  --glass-solid-surface:rgba(var(--surface-rgb),.9);
  /* Secondary text on that glass, a step darker in light so it holds 4.5:1 over the black worst case (5.49:1 on
     the surface glass, 4.91:1 on the page glass); dark keeps --ink-soft, which already holds over white. */
  --glass-ink-soft:#5E5A53;
  --bar-edge:rgba(var(--shadow-rgb),.08);
  --maxw:560px;

  --bolt:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M13.6 2 4 13.4h6.1L9.4 22 20 10.2h-6.6z'/%3E%3C/svg%3E");
  /* The forward arrow is drawn, not typed. U+2192 is not in the Plex Sans
   * subset we ship, so a "→" in `content` falls through to whatever the
   * platform hands us: SF Pro on iOS draws a proper arrow, while Android
   * lands on a symbol fallback that ignores our weight and sits off-centre
   * against the label. A mask renders identically everywhere. --arrow and
   * --check are G's drawings, declared in the generated "G icon set" block
   * (tools/build-icon-masks.mjs) with the rest of the icon masks. */
  /* A <select> cannot carry a pseudo-element, so its chevron is a background
     image rather than a mask, and the ink has to be baked into the SVG. That
     is why this one glyph exists twice instead of following currentColor. */
  --select-caret:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231B1A17' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  /* The verdict mark's hold ("=") and recover (a clockwise return) glyphs, drawn for the same reason as --arrow. */
  --verdict-hold:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 9h14M5 15h14'/%3E%3C/svg%3E");
  --verdict-recover:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8'/%3E%3Cpath d='M21 3v5h-5'/%3E%3C/svg%3E");
}

/* ---- Dark ----
   The whole theme is this block: no rule below it names a colour that is not a
   token, so dark is a palette, not a second stylesheet. app.js resolves the
   Appearance setting (system/light/dark) to a concrete value and writes it to
   <html data-theme>, which is why there is no prefers-color-scheme query here —
   the attribute is always the answer, and an inline snippet in index.html sets
   it before the first paint.

   The paper stays warm rather than neutral grey so the burnt orange, the
   exercise illustrations and the app icon still belong to the same object. Ink
   is off-white for the same reason, and because pure white on near-black
   haloes. The CTA is the one element that inverts outright: a near-black pill
   disappears on this ground, so it becomes a light pill with dark ink, and the
   orange moves up rather than down (--accent-deep is the *lighter* orange here
   because its job is emphasis, and emphasis on dark means more light). */
:root[data-theme="dark"]{
  --rest-light-core:#FFB48A;--rest-light-bloom:var(--accent);--rest-light-gain:1;
  --switch-off-track:rgba(255,255,255,.10);
  --share-checker-a:#3A3733;--share-checker-b:#2A2825;
  --elevation-share-slide-shadow:0 0 0 1px rgba(255,250,240,.12),0 12px 32px rgba(0,0,0,.5);
  --boundary-share-swatch-shadow:inset 0 0 0 1.5px rgba(255,250,240,.26);
  /* The light theme's deep accent: the light knob on the dark theme's brighter orange measured 2.56:1. */
  --switch-on-track:#B8410E;
  --segment-thumb-bg:#45423D;
  --segment-thumb-shadow:0 1px 3px rgba(0,0,0,.35);
  --menu-destructive-ink:var(--color-destructive);
  --menu-bg:rgba(36,33,29,.86);
  --row-pressed-bg:rgba(255,255,255,.07);
  color-scheme:dark;
  --scheme:dark;
  --profile-mark-plate:#F4F2EF;
  --bg:#141310;
  --surface:#1E1C18;
  --ink:#F2EFE9;
  --ink-soft:#ADA79D;
  --ink-faint:#99938A;
  --rule:#2E2B26;
  --rule-strong:#4A453D;
  --accent:#F2703B;
  /* Text emphasis stays in the same burnt-orange family as the mark. The
     first dark pass was lighter but too peach beside the red danger action. */
  --accent-deep:#FF8A3D;
  --partial-on-cta:var(--share-card-orange);
  --positive:#63C267;
  /* A quiet parchment rather than a lit white card. Scale and placement make
     the CTA primary; maximum luminance does not need to. */
  --cta:#F2EFE9;
  --control-primary-pressed-bg:#C9C1B4;
  --well:#191713;
  --cta-ink:#161513;
  --accent-ink:#231A14;
  --danger:#FF6670;
  --accent-rgb:242,112,59;
  --positive-rgb:99,194,103;
  --danger-rgb:255,102,112;
  --ink-rgb:242,239,233;
  --bg-rgb:20,19,16;
  --shadow-rgb:0,0,0;
  --entry-tint:rgba(242,112,59,.12);
  --knob:var(--surface);
  --scrim:rgba(0,0,0,.62);
  --push-dim:.16;
  /* Dark content showing through glass becomes visual noise around the nav
     labels. Keep the material, but make it read as smoked glass, not a lens. */
  --dock-glass:rgba(30,28,24,.66);
  --minibar-glass:rgba(30,28,24,.88);
  --dock-glass-opaque:rgba(24,22,19,.97);
  --dock-edge:rgba(255,255,255,.10);
  --dock-sheen:rgba(255,255,255,.04);
  /* Smoked glass keeps a heavier frost and dims what it lets through, so dark content stays quiet behind the labels. */
  --dock-rim:rgba(255,255,255,.12);
  --dock-caustic:rgba(255,255,255,.05);
  --dock-blur:blur(18px) saturate(160%) brightness(.85);
  /* The selected lens is solid smoked glass, the tone the translucent pill showed over dark pages (issue #818). A
     see-through lens took its ground from the page, and a light page under the dock dropped the orange label below
     4.5:1; on this solid ground --accent-deep holds 5:1 and the --accent icon 4:1 whatever is behind it. */
  --dock-pill:#3A3733;
  --dock-pill-sheen:rgba(255,255,255,.05);
  /* Plan 075 phase 3: the scroll-edge bar's material, charcoal at 72%. The
     hairline is a literal white value, not --shadow-rgb, so it still reads
     against smoked glass. */
  --bar-glass:rgba(var(--bg-rgb),.72);
  --bar-blur:blur(20px) saturate(180%);
  --surface-rgb:30,28,24;
  --glass-solid-bg:rgba(var(--bg-rgb),.9);
  --glass-solid-surface:rgba(var(--surface-rgb),.9);
  --glass-ink-soft:var(--ink-soft);
  --bar-edge:rgba(255,255,255,.08);
  /* Plan 064 R1b: the same tokens as the light block. A separator on --surface
     needs the stronger rule here; the bands hold identical values in both
     themes. */
  --boundary-selected-quiet:var(--ink);
  --elevation-selected-quiet-shadow:inset 0 0 0 2px var(--boundary-selected-quiet);
  --choice-mark-ring:inset 0 0 0 1.5px var(--boundary-required);
  --choice-mark-ring-on:inset 0 0 0 1.5px var(--accent-deep);
  --rule-on-surface:var(--rule-strong);
  /* On the dark sheet a recessed tile reads as a hole; the tiles sit one step above the sheet instead. */
  --shelf-field-bg:#2A2722;
  --shelf-pad-bg:#2A2722;
  --band-night-bg:#141310;
  --band-night-raised:#1E1C18;
  --band-night-ink:#F2EFE9;
  --band-night-ink-soft:#ADA79D;
  --band-night-ink-faint:#99938A;
  --band-night-rule:#2E2B26;
  --band-night-accent:#F2703B;
  --band-night-accent-text:#FF8A3D;
  --band-night-boundary-required:var(--band-night-ink-soft);
  --band-night-cta-bg:#DED7CC;
  --band-night-cta-ink:#161513;
  --band-orange-bg:var(--accent);
  --band-orange-ink:#141310;
  --band-orange-cta-ink:#F4F2EF;
  --band-orange-cta-mark:#F2703B;
  --band-ink-bg:var(--ink);
  --band-ink-ink:var(--bg);
  --band-ink-ink-soft:rgba(var(--bg-rgb),.78);
  --band-ink-rule:rgba(var(--bg-rgb),.22);
  --select-caret:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F2EFE9' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
}

/* ---- Dark-theme hierarchy refinements ----
   A palette swap gets the colours right, but near-black compresses depth:
   controls that were obvious as white fields on cream become adjacent dark
   rectangles. These few rules restore the light theme's hierarchy without
   adding cards or glow. */
:root[data-theme="dark"] .kg,
:root[data-theme="dark"] .saveset:where(:not(.theme-light *)){
  border-color:var(--rule-strong);
}
:root[data-theme="dark"] .stepbtn:where(:not(.theme-light *)){
  background:var(--control-adjustment-bg);
  border-color:var(--control-adjustment-boundary);
  color:var(--control-adjustment-ink);
}
:root[data-theme="dark"] .saveset:where(:not(.theme-light *)){
  color:var(--ink);
}
/* Small artwork retains its stronger dark-theme edge on charcoal. */
:root[data-theme="dark"] .exthumb--sm{
  border-color:var(--rule-strong);
}
/* Licensed artwork is painted on its own warm paper, so on charcoal it is a
   plate whatever we do; the only question is whether that plate looks meant.
   Light dissolves the field into the page because the page is the same paper —
   dark cannot, so the field becomes a deliberate archival plate instead of a
   parchment rectangle with a gradient smeared across its top and bottom edge.
   This is the same answer .exthumb--lg already gives on the preview page. */
:root[data-theme="dark"] .exdet-art{
  margin-inline:0;
  border-radius:var(--radius-surface);
  background:var(--exercise-art-bg);
}
:root[data-theme="dark"] .exdet-art__figure{
  padding-block:var(--exercise-art-lead);
}
/* A full-width white plate on charcoal is a lamp, not a picture. In dark the
   animation keeps its own white ground, unaltered, and nothing more: the plate
   shrinks to the picture and takes the surface radius. */
:root[data-theme="dark"] .exdet-art--animation{background:none}
:root[data-theme="dark"] .exdet-art--animation .exdet-art__img{border-radius:var(--radius-surface)}
:root[data-theme="dark"] nav{
  backdrop-filter:blur(28px) saturate(125%);
  -webkit-backdrop-filter:blur(28px) saturate(125%);
}

*{box-sizing:border-box}
/* Controls skip double-tap delay while ordinary content keeps browser zoom.
   Root containment belongs to this app; inner scrollers retain native physics. */
/* The root is a size container, and containment stops the body's background from
   reaching the canvas, so the root carries the paper itself: past a short page the
   viewport is paper, not the canvas's default white. */
html{
  -webkit-text-size-adjust:100%;text-size-adjust:100%;touch-action:auto;
  -webkit-tap-highlight-color:transparent;
  background:var(--bg);
  --sheet-max-height:calc(var(--vvh,100dvh) - max(56px,calc(env(safe-area-inset-top,0px) + var(--space-8))));
  --dialog-max-height:calc(var(--vvh,100dvh) - 2 * max(var(--space-16),env(safe-area-inset-top,0px),env(safe-area-inset-bottom,0px)));
}
html,body{overscroll-behavior:none}
/* The launch splash (index.html, #bootSplash). It is drawn from the first frame and covers everything until app.js has
   drawn the surface this load lands on. The mark sits where the iOS launch images put it, 39vw wide (the yoke itself
   about 32%) and centred at 47.5% of the height, on the same ground, so the native launch image hands over without a
   jump. Leaving onto the app, the mark goes first (120ms, easing down to 94%) and only then does the cover dissolve
   (160ms) onto the Today already drawn under it, so the mark is never seen over content; under reduced motion it is
   removed at once. A landing boot (data-boot="landing") needs no launch look: the cover is the landing hero's own night
   ground with no mark, and it is removed at once, so the first frame with content is the whole landing. The stacking
   is above the page's own layers and below the top layer, so a boot dialog still shows over it. */
.bootsplash{position:fixed;inset:0;z-index:2147483000;background:var(--bg);pointer-events:auto}
.bootsplash__mark{position:absolute;left:50%;top:47.5%;width:39vw;max-width:420px;height:auto;transform:translate(-50%,-50%);user-select:none;-webkit-user-select:none}
.bootsplash__fail{display:none}
html.is-boot-failed .bootsplash__mark{top:calc(47.5% - 96px)}
html.is-boot-failed .bootsplash__fail{
  display:grid;gap:var(--space-12);justify-items:center;position:absolute;left:var(--gut);right:var(--gut);top:calc(47.5% - 16px);
  text-align:center;font-family:var(--font-language);color:var(--color-ink)}
.bootsplash__title{margin:0;font-size:var(--font-size-section-title);font-weight:var(--weight-semibold);line-height:var(--line-standard)}
.bootsplash__body{margin:0;max-width:30ch;font-size:var(--font-size-body);line-height:var(--line-reading);color:var(--color-ink-secondary)}
.bootsplash__reload{margin-top:var(--space-8);min-width:160px}
html[data-boot="landing"] .bootsplash{background:var(--band-night-bg)}
html[data-boot="landing"] .bootsplash__mark{display:none}
html.is-boot-failed .bootsplash{background:var(--bg)}
html.is-boot-failed .bootsplash__mark{display:block}
.bootsplash.is-leaving{opacity:0;pointer-events:none}
.bootsplash.is-leaving .bootsplash__mark{opacity:0;transform:translate(-50%,-50%) scale(.94)}
@media (prefers-reduced-motion:no-preference){
  .bootsplash.is-leaving{transition:opacity .16s ease .12s}
  .bootsplash.is-leaving .bootsplash__mark{transition:opacity .12s ease,transform .12s ease}
}

button,input,select,textarea,label,summary,a,[role=button]{touch-action:manipulation}
/* Only controls suppress long-press selection/callouts; links in prose remain copyable. */
button,[role=button],summary,label.file,label[for],label:has(input[type=checkbox]),label:has(input[type=radio]),
a.btn,a.text-link,.entry__freeform-app,.sheet__grab,.sheet__head,.sheetband,.program-editor__drag-handle{
  -webkit-user-select:none;user-select:none;-webkit-touch-callout:none;
}
.focus-ex__meta,.fx-cue__l1,.fx-cue__l2,.sheet__pre,.share-setup__link,.privacy-sheet__body,.entry-dialog__body,.storage-recovery__copy{
  -webkit-user-select:text;user-select:text;
}
input:not([type=checkbox]):not([type=radio]),textarea{
  -webkit-user-select:text;user-select:text;-webkit-touch-callout:default;
}
body{
  margin:0;
  font-family:var(--font-language);
  color:var(--ink);
  background:var(--bg);
  padding-bottom:calc(var(--nav) + env(safe-area-inset-bottom) + var(--restbar-reserve,0px));
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
  font-variant-numeric:tabular-nums;
}
/* Installed, the page runs under the iOS status bar (viewport-fit=cover), which
   draws no ground of its own: scrolled content would show through the clock.
   The top inset is painted with the page's own paper, above everything that
   scrolls and below the dock, the sheets and the full-screen layers, which
   handle the inset themselves. Zero tall in a browser tab. */
body::before{
  content:"";position:fixed;top:0;left:0;right:0;z-index:24;
  height:env(safe-area-inset-top,0px);background:var(--bg);pointer-events:none;
}
h1,h2,h3,p{margin:0}
button,input,select,textarea{font:inherit;color:inherit}
a{color:inherit;text-decoration:none}
button,a[href],summary,input:not([type=hidden]),select,textarea,
[role=button],[role=tab],[role=switch],[role=checkbox],
[tabindex]:not([tabindex="-1"]),.term[data-term]{
  min-width:var(--control-target);min-height:var(--control-target);
}
main{
  width:min(100%,var(--maxw));margin:0 auto;
  padding:calc(12px + env(safe-area-inset-top)) max(16px,env(safe-area-inset-right)) 36px max(16px,env(safe-area-inset-left));
}
/* No value, however wide, gives a page a sideways scroll (owner, iPhone, 2026-10-23): what overflows a row is
   clipped at the page's edge rather than shifting every page left. clip makes no scroll container, so sticky and
   fixed children are unaffected. The Program editor's page sheet is left out: its reorder list (@dnd-kit) measures
   against its clipping ancestors. */
:is(#log,#stats,#history,#exercise,#program:not(.sheet)).view{overflow-x:clip}
/* Backwards fill only: the rise ends on the view's own opacity, and an animation held by its fill makes the view a
   backdrop root, so the scroll-edge bar's blur would stop reaching the rows under it (Plan 075 phase 3). */
.view{display:none;animation:rise .35s cubic-bezier(.2,.7,.2,1) backwards}
.view.active{display:block}
.hidden{display:none!important}
.visually-hidden{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}

/* ---- Typography ---- */
.page-title{
  font-size:var(--font-size-title);font-weight:var(--weight-semibold);letter-spacing:-0.02em;line-height:1.05;color:var(--ink);
}
.page-date{margin-top:4px;font-size:var(--font-size-body-small);color:var(--ink-soft);font-weight:400}
.section-label{
  font-size:var(--font-size-label);font-weight:600;letter-spacing:var(--track-label);text-transform:uppercase;
  color:var(--ink-faint);margin:32px 0 12px;
}
.eyebrow{font-size:var(--font-size-label);font-weight:600;letter-spacing:var(--track-label);text-transform:uppercase;color:var(--ink-faint);margin-bottom:4px}
.eyebrow--link{background:none;border:0;padding:0;cursor:pointer;text-align:left;color:var(--accent-deep)}
.eyebrow--link::after{content:" ›"}
h2{font-size:var(--font-size-title);font-weight:var(--weight-semibold);letter-spacing:-0.02em;line-height:1.05}
.subhead{
  font-size:var(--font-size-label);font-weight:600;letter-spacing:var(--track-label);text-transform:uppercase;
  color:var(--ink-faint);margin:26px 0 12px;display:flex;align-items:center;gap:12px;
}
.subhead::after{content:"";flex:1;height:1px;background:var(--rule)}
.lede{color:var(--ink-soft);font-size:var(--font-size-body-small);line-height:1.5;margin-top:4px}

/* ---- Page headers ---- */
.pagehead{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin:4px 0 18px}
.pagehead__actions{display:flex;align-items:center;gap:4px;flex:none;margin-top:4px}
/* A root page's trailing actions are its navigation bar's buttons (owner-approved bar-actions mock, 2026-10-23,
   reversing phase 3's deviation 1). They sit in the bar's trailing slot, above its material, at the same place in
   the large-title state and the collapsed one; the large title starts below the bar's row, as on iOS. On a moving
   page they move with it (its transform holds them). The Program page sheet's own head keeps Cancel and Done.
   Under large text the title's glyphs rise above its line box, so the gap below the bar grows with the root size. */
:is(#todayDash,#stats,#history:not(.is-session-page),:is(#program,[data-copy-id="program"]):not(.sheet))>.pagehead{margin-top:calc(36px + (1rem - 16px) / 2)}
#todayDash > .pagehead{margin-bottom:var(--space-8)}
:is(#todayDash,#stats,#history:not(.is-session-page),:is(#program,[data-copy-id="program"]):not(.sheet))>.pagehead>.pagehead__actions{
  position:fixed;z-index:22;top:env(safe-area-inset-top);right:max(0px,calc(50% - var(--maxw) / 2));
  height:44px;margin:0;padding:0 max(8px,env(safe-area-inset-right)) 0 8px;gap:0;
}
/* Bar buttons: a 44pt target with no border or fill at rest. */
:is(#todayDash,#stats,#history:not(.is-session-page),:is(#program,[data-copy-id="program"]):not(.sheet))>.pagehead>.pagehead__actions>button{
  min-width:var(--control-target);height:var(--control-target);border:0;border-radius:var(--radius-control);background:transparent;
}
/* Pressed, an icon button dims to 40% with no fill (UI kit §7 and §10). */
:is(#todayDash,#stats,#history:not(.is-session-page),:is(#program,[data-copy-id="program"]):not(.sheet))>.pagehead>.pagehead__actions>button.is-pressed:not(:disabled){
  background:transparent;opacity:.4;transform:none;
}
#todayDash>.pagehead>.pagehead__actions>.settings-btn{color:var(--ink)}
body.is-workout #todayDash>.pagehead>.pagehead__actions{display:none}

/* Plan 075 phase 3 (ADR 0023): the scroll-edge bar over the large title. It
   overlays the pagehead's own top space rather than reserving any of its
   own, so a root page's rest frame is unchanged. Transparent and silent
   until app.js finds the large title has scrolled under it, at which point
   the material and the mirrored inline title (aria-hidden; the page's own
   h2 stays the heading) fade in together. The page's trailing actions stay
   in the pagehead and simply scroll away with it. */
.topbar{
  position:fixed;top:env(safe-area-inset-top);left:max(0px,calc(50% - var(--maxw) / 2));
  right:max(0px,calc(50% - var(--maxw) / 2));z-index:21;height:44px;
  display:flex;align-items:center;justify-content:center;pointer-events:none;
  /* Nothing is drawn at rest, so nothing is there: hidden until scrolled, and hidden again only after its fade out. */
  visibility:hidden;transition:visibility 0s linear .16s;
}
.topbar.is-scrolled{visibility:visible;transition-delay:0s}
/* No material at rest: background and backdrop-filter are only set once
   scrolled, so a proof of "no material at the top" reads backdrop-filter
   as none rather than a hidden, already-applied blur. Only the opacity
   that reveals them is on the 160ms transition. */
.topbar__bg{position:absolute;inset:0;opacity:0;transition:opacity .16s linear}
/* The hairline is a border: a persistent-surface edge, not a second raised card. */
.topbar.is-scrolled .topbar__bg{
  opacity:1;background:var(--bar-glass);
  -webkit-backdrop-filter:var(--bar-blur);backdrop-filter:var(--bar-blur);
  border-bottom:.5px solid var(--bar-edge);
}
/* Caps at 21px under large text, as iOS bars do (Plan 075 phase 3). */
.topbar__title{
  position:relative;font-size:min(var(--font-size-body),var(--bar-title-max));font-weight:var(--weight-semibold);
  color:var(--ink);opacity:0;text-align:center;max-width:60vw;transition:opacity .16s linear;
}
.topbar.is-scrolled .topbar__title{opacity:1}
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){
  .topbar.is-scrolled .topbar__bg{background:var(--bg)}
}
/* An alternate state, not a slower fade: both appear on the next frame. */
@media (prefers-reduced-motion:reduce){.topbar__bg,.topbar__title{transition:none}}
/* No bar on a pushed-over or pushed-under page (the page it belongs to has
   already scrolled out of the stack it owns), under a sheet, or once the
   Program editor replaces the ledger. History's session page hides its own
   pagehead the same way. */
body.is-workout .topbar,
body.is-sheet-open .topbar,
.view.is-push-over .topbar,.view.is-push-under .topbar,
#history.is-session-page .topbar,
:is(#program,[data-copy-id="program"]):not(.program-ledger) .topbar{display:none}
.back-link{
  background:none;border:0;padding:8px 4px;cursor:pointer;color:var(--accent-deep);
  font-size:var(--font-size-control);font-weight:500;min-height:44px;display:inline-flex;align-items:center;gap:2px;
}
.back-link:focus-visible{border-radius:var(--radius-control)}
.icon-btn{
  width:44px;height:44px;display:inline-flex;align-items:center;justify-content:center;
  border:0;background:transparent;color:var(--ink-soft);cursor:pointer;border-radius:50%;
}
@media (hover: hover) and (pointer: fine){
.icon-btn:hover{color:var(--ink)}
}
.icon-btn svg,.nav__icon{display:block}
/* ---- Segmented progress ---- */
.segbar{display:flex;gap:6px;margin:8px 0}

/* ---- Primary CTA ---- */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  border:1px solid var(--rule);border-radius:var(--radius-button);background:var(--surface);color:var(--ink);
  padding:13px 16px;font-weight:600;cursor:pointer;font-size:var(--font-size-control);
  transition:transform .12s ease,filter .2s ease,border-color .2s ease,background .2s ease;
}
.btn.is-pressed{transform:var(--control-pressed-transform)}
/* ADR 0023: a primary action's pressed tone and scale. Both are custom properties
   set on the pressed control, so every rule that paints a primary fill or applies
   the pressed transform picks them up, whatever its specificity. */
.is-pressed:not(:disabled){--control-primary-bg:var(--control-primary-pressed-bg);--cta:var(--control-primary-pressed-bg)}
:is(.btn--cta,.firstrun__cta,.program-editor__activate,#onbNext,#entryActivate,#entryRebuildRules,#entryResumeContinue,
  #entryFreeformContinue:where(:not(.btn--ghost)),#entryFreeformClipboard,#entryFreeformReview,#entryFreeformSubmitGaps,#importCommit,#libPrimary,
  #previewAdd,#sessionEarlyConfirm,#exNoteSave,#historyDiscardKeep,#draftDiscardKeep,#sumShare,#shareSetupShare).is-pressed:not(:disabled){--control-pressed-transform:var(--control-primary-pressed-transform)}
.btn:disabled{opacity:var(--control-disabled-opacity);cursor:default}
/* A blanket 40% on the near-black CTA produced a mid-grey fill with washed
   white text (~2.5:1) that read as an enabled secondary button rather than a
   blocked one. Give it a flat, legible "not yet" treatment instead. */
.btn--cta:disabled{opacity:1;background:var(--rule);color:var(--ink-soft)}
.btn--cta:disabled::after{color:var(--ink-faint)}
.btn--ghost{background:transparent;padding:8px 13px;font-size:var(--font-size-body-small);border-radius:var(--radius-pill)}
.btn--steel{background:var(--surface);border-color:var(--rule-strong)}
.btn--cta{
  position:relative;width:100%;height:auto;min-height:54px;border:0;border-radius:var(--radius-button);
  background:var(--cta);color:var(--cta-ink);font-size:var(--font-size-control);font-weight:600;
  justify-content:center;padding:13px 20px;
}
/* The arrow follows the label in the flex row, so however the label wraps it never runs over the text. */
.btn--cta::after{
  content:"";flex:none;
  width:22px;height:22px;
  /* The arrow is drawn in the CTA's own ink, as the landing draws it. The accent held it on the near-black light CTA
   * (~4.6:1) but measured 2.05:1 on the parchment dark CTA, under the 3:1 mark floor (R7 V-01). */
  color:var(--cta-ink);background:currentColor;
  -webkit-mask:var(--arrow) no-repeat center/contain;mask:var(--arrow) no-repeat center/contain;
}
.btn--noarrow{padding:0 20px}
.btn--noarrow::after{content:none;display:none}
/* A compact secondary action inside a dense row (the review sheet's swap list). */
.review-sheet__swap-btn{min-height:var(--control-target);padding:var(--space-8) var(--space-14);font-size:var(--font-size-body-small)}
.btn--danger{background:transparent;color:var(--danger);border-color:transparent}
.btn--save{margin-top:6px;flex-direction:column;gap:2px;height:auto;min-height:54px;padding:12px 48px}
/* The legacy save button stacks its label over a meta line, so its arrow keeps the side padding. */
.btn--save::after{position:absolute;right:18px;top:50%;transform:translateY(-50%)}
.btn--save.is-stamped{animation:stamp .5s ease}
.btn__meta{font-size:var(--font-size-label);font-weight:500;letter-spacing:.04em;opacity:.75}
.btnrow{display:flex;gap:10px;flex-wrap:wrap}
/* A pair shares the row while both labels fit on one line; when they don't (long copy, large text), each button takes
   the full width on its own line, as iOS stacks actions at accessibility sizes. */
.btnrow .btn{flex:1 1 max-content;min-width:0}
/* ---- Fields ---- */
.field{display:block;margin:14px 0 0;color:var(--ink-soft);font-size:var(--font-size-caption);font-weight:600;
  text-transform:uppercase;letter-spacing:var(--track-label)}
input:not(:where([type=checkbox],[type=radio])),select,textarea{
  width:100%;margin-top:7px;background:var(--surface);border:1px solid var(--control-field-boundary);
  color:var(--ink);border-radius:var(--radius-control);padding:13px 12px;font-family:var(--font-language);
  font-size:var(--font-size-control);letter-spacing:normal;text-transform:none;transition:border-color .15s ease,box-shadow .15s ease;
}
/* Boxes and radios keep a full 44px hit area but paint a 22px control inside it:
   the native rendering blown up to 44px is a slab, and shrinking the element to
   the size of the artwork would put the tap target below the thumb-sized floor
   every other control here holds. `.visually-hidden` proxies (the inputs behind
   the switches) are left on the native rendering — they are clipped anyway, and
   the positioning this needs would knock them out of their clip. */
input[type=checkbox],input[type=radio]{
  width:44px;height:44px;min-width:44px;min-height:44px;margin:0;padding:0;accent-color:var(--accent);
  background:none;border:0;border-radius:0;box-shadow:none;
}
input[type=checkbox]:not(.visually-hidden),input[type=radio]:not(.visually-hidden){
  appearance:none;-webkit-appearance:none;position:relative;flex:none;cursor:pointer;
  -webkit-tap-highlight-color:transparent;
}
input[type=checkbox]:not(.visually-hidden)::before,input[type=radio]:not(.visually-hidden)::before{
  content:"";position:absolute;top:50%;left:50%;width:22px;height:22px;
  transform:translate(-50%,-50%);border-radius:var(--radius-control);
  border:1.5px solid var(--rule-strong);background:var(--surface);
  transition:background-color .18s ease,border-color .18s ease,transform .12s ease;
}
input[type=radio]:not(.visually-hidden)::before{border-radius:50%}
input[type=checkbox]:not(.visually-hidden)::after{
  content:"";position:absolute;top:50%;left:50%;width:14px;height:14px;
  transform:translate(-50%,-50%) scale(.2);background:var(--cta-ink);
  -webkit-mask:var(--check) no-repeat center/contain;mask:var(--check) no-repeat center/contain;
  opacity:0;transition:opacity .12s ease,transform var(--press-release-duration) var(--ease-press-release);
}
input[type=radio]:not(.visually-hidden)::after{
  content:"";position:absolute;top:50%;left:50%;width:10px;height:10px;border-radius:50%;
  transform:translate(-50%,-50%) scale(.2);background:var(--cta-ink);
  opacity:0;transition:opacity .12s ease,transform var(--press-release-duration) var(--ease-press-release);
}
input[type=checkbox]:not(.visually-hidden):checked::before,
input[type=radio]:not(.visually-hidden):checked::before{
  background:var(--accent-deep);border-color:var(--accent-deep);
}
input[type=checkbox]:not(.visually-hidden):checked::after,
input[type=radio]:not(.visually-hidden):checked::after{
  opacity:1;transform:translate(-50%,-50%) scale(1);
}
input[type=checkbox]:not(.visually-hidden):active::before,
input[type=radio]:not(.visually-hidden):active::before{transform:translate(-50%,-50%) scale(.9)}
/* The reminder types are disabled until notifications are actually granted, so
   the boxes have to look locked rather than simply on. */
input[type=checkbox]:not(.visually-hidden):disabled,
input[type=radio]:not(.visually-hidden):disabled{cursor:default}
input[type=checkbox]:not(.visually-hidden):disabled::before,
input[type=radio]:not(.visually-hidden):disabled::before,
input[type=checkbox]:not(.visually-hidden):disabled:checked::after,
input[type=radio]:not(.visually-hidden):disabled:checked::after{opacity:.32}
input[type=checkbox]:not(.visually-hidden):disabled:active::before,
input[type=radio]:not(.visually-hidden):disabled:active::before{transform:translate(-50%,-50%)}
input[type=checkbox]:not(.visually-hidden):focus-visible,
input[type=radio]:not(.visually-hidden):focus-visible{outline:var(--control-focus-outline);outline-offset:2px;border-radius:var(--radius-control)}
@media (prefers-reduced-motion:reduce){
  input[type=checkbox]:not(.visually-hidden)::before,input[type=radio]:not(.visually-hidden)::before,
  input[type=checkbox]:not(.visually-hidden)::after,input[type=radio]:not(.visually-hidden)::after{transition:none}
}
input[type=number]::-webkit-outer-spin-button,input[type=number]::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
input[type=number]{-moz-appearance:textfield;appearance:textfield}
textarea{resize:vertical;min-height:80px}
select{appearance:none;-webkit-appearance:none;
  background-image:linear-gradient(45deg,transparent 50%,var(--ink-soft) 50%),linear-gradient(135deg,var(--ink-soft) 50%,transparent 50%);
  background-position:calc(100% - 18px) 19px,calc(100% - 13px) 19px;background-size:5px 5px,5px 5px;background-repeat:no-repeat;padding-right:34px}
input:not(:where([type=checkbox],[type=radio])):focus,select:focus,textarea:focus{
  outline:none;border-color:var(--accent);box-shadow:var(--control-focus-halo-shadow)}
:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
select:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
input:not(:where([type=checkbox],[type=radio])):focus-visible,select:focus-visible,textarea:focus-visible{
  outline:var(--control-focus-outline);outline-offset:2px
}
/* `tabindex=-1` lets scripts or pointer actions move focus without adding a Tab
   stop. Keep those focus changes visual-free; regular keyboard stops retain rings. */
[tabindex="-1"]:focus,[tabindex="-1"]:focus-visible{outline:none}
/* ID-scoped control focus rules require this override for pointer handoffs. */
[data-quiet-focus][data-quiet-focus]:focus-visible{outline:none!important}
/* Workout logging moves focus to its next field programmatically; that handoff stays visual-free. */
[data-quiet-focus]:is(input,select,textarea):focus{box-shadow:none}
/* iOS gives a date or time field an intrinsic width wider than a phone's column, and collapses its value
   element once the field is restyled; both hold here. */
input:is([type=date],[type=time]){min-width:0;max-width:100%;box-sizing:border-box}
.sheetfield__input:is([type=date],[type=time]){-webkit-appearance:none;appearance:none}
input:is([type=date],[type=time])::-webkit-date-and-time-value{min-height:1.5em;margin:0;text-align:left}

/* ---- Toggle (iOS-style) ----
   The switch is a 51x31 track with a 27px knob, but the button that carries it
   stays 44px tall so the tap target matches every other control. Track and knob
   are painted as centred pseudo-elements: styling the button box itself is what
   turned the switch into a 51x44 slab with the knob stranded at its top edge.
   `is-on` is the visual truth (the notifications switch shows it optimistically
   while the permission prompt is up, before `aria-pressed` commits). */
.toggle{
  position:relative;width:51px;height:44px;min-width:51px;flex:none;
  background:none;border:0;border-radius:var(--radius-pill);padding:0;cursor:pointer;
  -webkit-tap-highlight-color:transparent;
}
.toggle::before{
  content:"";position:absolute;top:50%;left:0;width:51px;height:31px;margin-top:-15.5px;
  border-radius:var(--radius-pill);background:var(--switch-off-track);
  box-shadow:var(--switch-off-ring);
  transition:background-color .28s cubic-bezier(.32,.72,0,1);
}
.toggle::after{
  content:"";position:absolute;top:50%;left:2px;width:27px;height:27px;margin-top:-13.5px;
  border-radius:var(--radius-pill);background:var(--knob);
  box-shadow:var(--control-toggle-thumb-shadow);
  transition:transform .28s cubic-bezier(.32,.72,0,1),width .28s cubic-bezier(.32,.72,0,1);
}
.toggle[aria-checked="true"]::before,.toggle[aria-pressed="true"]::before,.toggle.is-on::before{
  background:var(--switch-on-track);box-shadow:none;
}
.toggle[aria-checked="true"]::after,.toggle[aria-pressed="true"]::after,.toggle.is-on::after{transform:translateX(20px)}
/* On the accent track the knob is the light one in both themes. */
:root[data-theme="dark"] :is(.toggle[aria-checked="true"],.toggle[aria-pressed="true"],.toggle.is-on)::after{background:var(--ink)}
:root[data-theme="dark"] :is(.toggle[aria-checked="true"],.toggle[aria-pressed="true"],.toggle.is-on)::before{background:var(--switch-on-track)}
/* Held down, the knob stretches towards the side it is about to travel to. */
.toggle.is-pressed::after{width:31px}
.toggle[aria-checked="true"].is-pressed::after,.toggle[aria-pressed="true"].is-pressed::after,.toggle.is-on.is-pressed::after{
  transform:translateX(16px);
}
.toggle[aria-busy="true"]{cursor:progress}
.toggle[aria-busy="true"]::before,.toggle[aria-busy="true"]::after{opacity:.55}
.toggle:focus-visible{outline:var(--control-focus-outline);outline-offset:2px}
@media (prefers-reduced-motion:reduce){
  .toggle::before,.toggle::after{transition:none}
  .toggle.is-pressed::after{width:27px}
  .toggle[aria-checked="true"].is-pressed::after,.toggle[aria-pressed="true"].is-pressed::after,.toggle.is-on.is-pressed::after{
    transform:translateX(20px);
  }
}

/* ---- In-page tabs ---- */
.tabs{
  display:flex;gap:0;overflow-x:auto;-webkit-overflow-scrolling:touch;
  border-bottom:1px solid var(--rule);margin:0 0 18px;scrollbar-width:none;overscroll-behavior:contain;}
.tabs::-webkit-scrollbar{display:none}
.tabs button,.seg.seg--window button,#prFilterSeg button{
  flex:none;border:0;background:transparent;color:var(--ink-soft);cursor:pointer;
  padding:12px 14px;font-size:var(--font-size-body-small);font-weight:500;letter-spacing:0;text-transform:none;
  font-family:var(--font-language);border-bottom:2px solid transparent;margin-bottom:-1px;border-radius:0;
  white-space:nowrap;
}
.tabs button.active,.seg.seg--window button.active,#prFilterSeg button.active{
  color:var(--ink);border-bottom-color:var(--accent);background:transparent;box-shadow:none;
}

/* Day tabs / legacy seg */
.seg{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:16px}
.seg:not(.seg--window){gap:0;padding:2px;border-radius:var(--radius-control);background:var(--control-track)}
.seg:not(.seg--window) button{
  flex:1;min-width:0;border:0;background:transparent;color:var(--ink);
  cursor:pointer;border-radius:var(--radius-control);padding:11px 8px;font-weight:var(--weight-medium);font-size:var(--font-size-body-small);
}
.seg:not(.seg--window) button.active{
  color:var(--ink);background:var(--segment-thumb-bg);box-shadow:var(--segment-thumb-shadow);font-weight:var(--weight-semibold);
}

/* ---- Stat band (unified: value above caption, partial hairlines) ---- */
.statrow,.metrics{
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));
  border-top:1px solid var(--rule);border-bottom:1px solid var(--rule);margin:12px 0 0;
  background:transparent;
}
.statrow--4,.metrics{grid-template-columns:repeat(4,minmax(0,1fr))}
.statrow__cell,.metric{
  position:relative;padding:14px 8px;text-align:center;min-width:0;
  border:0;border-radius:0;background:transparent;overflow:visible;
}
.statrow__cell:not(:last-child)::after,
.metric:not(:last-child)::after{
  content:"";position:absolute;right:0;top:20%;bottom:20%;width:1px;background:var(--rule);
}
/* Stat figures are counts and totals, not a set's training data: Plex Sans with tabular numerals, as the finish screen
   draws them (#621). Mono's comma opens a gap in "3,125"; the unit is said once, small, after the figure. */
.statrow__val{
  font-family:var(--font-language);font-size:var(--font-size-metric);font-weight:var(--weight-semibold);line-height:1.1;letter-spacing:-.02em;color:var(--ink);
  font-feature-settings:"tnum";font-variant-numeric:tabular-nums;
}
:is(.statrow__val,.ovtotal__val,.exchart__figs b,.histpage__totals b) small{margin-left:.18em;font-size:var(--font-size-body-small);font-weight:var(--weight-medium);letter-spacing:0;color:var(--color-ink-secondary)}
.statrow--4 .statrow__val{font-size:var(--font-size-subtitle)}
.statrow__cap{
  display:block;margin-top:4px;font-size:var(--font-size-caption);color:var(--ink-soft);font-weight:400;
  text-transform:none;letter-spacing:0;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
.statrow--4 .statrow__cap{font-size:var(--font-size-label)}

/* ---- Recommendation block ---- */
.recblock{
  border-left:3px solid var(--accent);padding:10px 12px 10px 14px;margin:14px 0;
  background:transparent;
}
.recblock__lab{
  display:block;font-size:var(--font-size-label);font-weight:600;letter-spacing:var(--track-label);text-transform:uppercase;
  color:var(--accent-deep);margin-bottom:4px;background:none;border:0;padding:0;
}
.recblock__lab::before,.chip::before{display:none!important;content:none!important}
.recblock__head{font-size:var(--font-size-subtitle);font-weight:var(--weight-semibold);color:var(--ink);margin:0 0 2px}
.recblock__body,.rec,.recblock__standing{font-size:var(--font-size-body-small);line-height:1.45;color:var(--ink-soft);margin:0}
.recblock__standing{margin:var(--space-4) 0 0}

/* ---- Choice rows (native UI kit §5, owner 2026-10-24) ----
   A choice is a plain row: no box, a 1px hairline between rows and above and below the run, and a trailing mark.
   The mark is the choice's required boundary (contract: choice rows): a 22px ring in --boundary-required; chosen,
   a radio rings and fills its centre in --accent-deep, and a checkbox is an --accent-deep disc with a check.
   The tile families (numbers, muscle tiles, compact pickers, reason pills) keep a tile and override below. */
.radio-card{
  display:flex;align-items:center;gap:var(--space-14);width:100%;min-height:var(--choice-row-min);text-align:left;
  background:transparent;border:0;border-radius:var(--radius-none);box-shadow:none;
  padding:var(--space-8) 0;cursor:pointer;color:var(--ink);font:inherit;
  transition:background-color .15s ease
}
.radio-card:not(.radio-card + .radio-card){border-top:1px solid var(--boundary-decorative)}
.radio-card:not(:has(+ .radio-card)){border-bottom:1px solid var(--boundary-decorative)}
.radio-card + .radio-card{border-top:1px solid var(--boundary-decorative)}
.radio-card.is-pressed:not(:disabled):not(.is-disabled){background:var(--row-pressed-bg)}
.radio-card:focus-visible{outline:var(--control-focus-outline);outline-offset:2px}
.radio-card__body{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.radio-card__title{font-size:var(--font-size-body);font-weight:var(--weight-regular);line-height:var(--line-standard);color:var(--ink)}
.radio-card__cap{font-size:var(--font-size-body-small);line-height:var(--line-standard);color:var(--ink-soft)}
.radio-card__mark{
  position:relative;flex:none;display:grid;place-items:center;width:22px;height:22px;
  border:0;border-radius:var(--radius-round);background:transparent;background-image:none;box-shadow:var(--choice-mark-ring)
}
.radio-card:not([role="checkbox"]).is-selected .radio-card__mark{box-shadow:var(--choice-mark-ring-on)}
.radio-card:not([role="checkbox"]).is-selected .radio-card__mark::after{
  content:"";width:12px;height:12px;border-radius:var(--radius-round);background:var(--accent-deep)
}
.radio-card[role="checkbox"].is-selected .radio-card__mark{background:var(--accent-deep);box-shadow:none}
.radio-card[role="checkbox"].is-selected .radio-card__mark::after{
  content:"";width:14px;height:14px;background:var(--accent-ink);
  -webkit-mask:var(--check) no-repeat center/contain;mask:var(--check) no-repeat center/contain
}

/* @ci-domain settings */
/* ---- Cards (rare — settings groups) ---- */
.card{
  background:var(--surface);border:1px solid var(--rule);border-radius:var(--radius-surface);
  padding:0;margin-bottom:18px;overflow:hidden;box-shadow:none;
}
.card > .field,.card > .lede,.card > .btn,.card > .btnrow,.card > details,.card > fieldset,
.card > .notifytypes,.card > label.btn{margin-left:14px;margin-right:14px}
.card > .lede:first-child{margin-top:14px}
.card > .btn,.card > .btnrow,.card > details,.card > label.btn{margin-bottom:14px}
/* Settings is a list of rows, not a stack of cards. A box drawn around every
   group spends a border, a radius and a fill to say what the caption above it
   and the space below it already say — and it said it in one theme only, since
   dark dropped the boxes years ago and read the better for it. Unboxed, the
   space before a caption *is* the boundary, so it has to be wide enough to be
   read as one: 34px above a caption against 8px below it. */
.settings-group{margin-bottom:34px}
.settings-group__summary{
  text-wrap:pretty;
  margin:0 var(--settings-inset) 8px;color:var(--color-ink-secondary);font-family:var(--font-language);
  font-size:var(--font-size-body-small);line-height:var(--line-reading)
}
.settings-group > .lede{
  font-family:var(--font-language);font-size:var(--font-size-caption);font-weight:var(--weight-regular);
  line-height:var(--line-reading);text-transform:none;letter-spacing:0;padding:0 0 12px;margin:0;color:var(--color-ink-secondary)
}
.settings-group__label{
  font-family:var(--font-language);font-size:var(--font-size-label);font-weight:var(--weight-semibold);
  letter-spacing:var(--track-label);text-transform:uppercase;color:var(--color-ink-secondary);
  display:block;line-height:var(--line-standard);margin:0 0 8px var(--settings-inset)
}
.settings-row{
  position:relative;
  display:flex;align-items:center;gap:12px;min-height:56px;padding:12px var(--settings-inset);
  border:0;background:transparent;color:var(--color-ink);font-family:var(--font-language);
  font-size:var(--font-size-body);font-weight:var(--weight-regular);line-height:var(--line-standard);
  width:100%;text-align:left;appearance:none;cursor:pointer;
}
/* The rule goes above each row rather than below it, and starts where the row's
   label does. A line run edge to edge reads as a page separator; one held to
   the text column reads as the rows belonging to each other. Drawing it above
   also keeps a row joined to whatever it opens or explains: the caption under a
   toggle, and the panel under a disclosure, are the tail of that row, so the
   next rule falls after them where the next row begins. */
.settings-row::before{
  content:"";position:absolute;left:var(--settings-inset);right:var(--settings-inset);top:0;height:1px;background:var(--boundary-decorative)
}
div.settings-row{cursor:default}
.settings-row:first-child::before{display:none}
/* Rows read as the prototype's (owner, 2026-10-28): a regular label, the value in secondary ink. */
.settings-row__label{flex:1;min-width:0;font-size:var(--font-size-body);font-weight:var(--weight-regular);line-height:var(--line-standard);color:var(--color-ink)}
.settings-row__cap{display:block;font-size:var(--font-size-body-small);line-height:var(--line-reading);color:var(--color-ink-secondary);font-weight:var(--weight-regular);margin-top:2px}
.settings-row__value{flex:none;margin-left:auto;display:inline-flex;align-items:center;gap:8px;color:var(--color-ink-secondary);font-size:var(--font-size-body-small);line-height:var(--line-standard)}
.settings-row .chevron{color:var(--color-ink-secondary);flex:none}
.settings-row.is-danger .settings-row__label{color:var(--control-destructive-ink)}
/* A choice row's pull-down mark: the kit's 16px chev-down after the value, in the value's ink. */
.settings-row__pull{flex:none;width:16px;height:16px}
.settings-row--pull .settings-row__label{min-width:min-content}
.settings-row--pull .settings-row__value{flex-shrink:1;min-width:0}
/* The one row that is still a box: a destructive action is not part of the
   list above it, and the outline is what says so. */
.settings-row.is-danger,#reset.settings-row{
  margin-top:24px;border:0;border-radius:0;
  background:transparent;color:var(--control-destructive-ink);
  min-height:56px;
}
.settings-row.is-danger::before,#reset.settings-row::before{display:none}
#settings :is(#rirModeRow,#langRow,#progressionRow,#restSecRow,#notifyConfigRow,#dataBackupRow,#dataImportRow,#guideReplayToggle){
  background:var(--control-disclosure-bg);color:var(--control-disclosure-ink)
}
#settings :is(#createProgram,#privacyDetails){
  background:var(--control-quiet-bg);color:var(--control-quiet-ink)
}
@media (hover: hover) and (pointer: fine){
#settings :is(#rirModeRow,#langRow,#progressionRow,#restSecRow,#notifyConfigRow,#dataBackupRow,#dataImportRow,#guideReplayToggle):hover:not(:disabled){
  background:var(--well);color:var(--control-disclosure-ink)
}
}
@media (hover: hover) and (pointer: fine){
#settings :is(#createProgram,#privacyDetails):hover:not(:disabled){
  background:var(--well);color:var(--control-quiet-ink)
}
}
#settings :is(#rirModeRow,#langRow,#progressionRow,#restSecRow,#notifyConfigRow,#dataBackupRow,#dataImportRow,#guideReplayToggle,#createProgram,#privacyDetails,#reset).is-pressed:not(:disabled){
  transform:var(--control-pressed-transform)
}
#settings :is(#rirModeRow,#langRow,#progressionRow,#restSecRow,#notifyConfigRow,#dataBackupRow,#dataImportRow,#guideReplayToggle,#createProgram,#privacyDetails,#reset):focus-visible{
  outline:var(--control-focus-outline);outline-offset:2px;border-radius:var(--radius-none)
}
@media (hover: hover) and (pointer: fine){
#settings #reset:hover:not(:disabled){background:var(--well);color:var(--control-destructive-ink)}
}
#settings #reset.is-pressed:not(:disabled){background:var(--row-pressed-bg);color:var(--control-destructive-ink)}
#settings :is(#rirModeRow,#langRow,#progressionRow,#restSecRow,#notifyConfigRow,#dataBackupRow,#dataImportRow,#guideReplayToggle,#createProgram,#privacyDetails,#reset):disabled{
  background:transparent;color:var(--color-disabled-reason);border-color:var(--boundary-decorative);
  opacity:1;cursor:not-allowed;transform:none
}
#settings :is(#rirModeRow,#langRow,#progressionRow,#restSecRow,#notifyConfigRow,#dataBackupRow,#dataImportRow,#guideReplayToggle,#createProgram,#privacyDetails,#reset):disabled :is(.settings-row__label,.settings-row__value,.chevron){
  color:var(--color-disabled-reason)
}
#settings .settings-row.is-danger:disabled .settings-row__label{color:var(--color-disabled-reason)}
#settings :is(.settings-row select,.select-flat){
  appearance:none;-webkit-appearance:none;border:0;background-color:transparent;
  margin:0;padding:0 18px 0 0;width:auto;min-width:0;text-align:right;color:var(--control-selection-ink);
  font-family:var(--font-language);font-size:var(--font-size-body);font-weight:var(--weight-medium);
  line-height:var(--line-standard);border-radius:var(--radius-none);box-shadow:none;
  background-image:var(--select-caret);
  background-position:right center;background-size:14px 14px;background-repeat:no-repeat;
}
#settings :is(.settings-row select,.select-flat):focus{box-shadow:none;border:0}
#settings :is(.settings-row select,.select-flat):focus-visible{outline:var(--control-focus-outline);outline-offset:2px}
#settings :is(.settings-row select,.select-flat):disabled{color:var(--color-disabled-reason);opacity:1;cursor:not-allowed}
/* @ci-domain today */
/* ---- Today dashboard ---- */
.today-session{padding:4px 0 8px}
.today-session__name{font-family:var(--font-language);font-size:var(--font-size-feature-title);font-weight:var(--weight-semibold);line-height:var(--line-tight);letter-spacing:-0.02em;margin:4px 0 6px;color:var(--color-ink)}
.today-session + .btn--cta,#startWorkout{margin-top:32px}
#startWorkout{min-height:48px}
/* Start / Continue stays in reach while the lifter reads the prescription (#303). It is sticky, not fixed: it keeps its
   place in the flow, so it rides a deliberate gap above the dock (positioned from --nav, the Dock Reservation Rule,
   plus the safe area) only while its own place is still below the fold, and settles back above Choose another day
   once the lifter scrolls there. Nothing under it is ever covered for good, and hidden it leaves no surface behind.
   It floats on the existing floating elevation, a primary pill over the page, never a fifth dock item. */
#startWorkout{
  position:sticky;bottom:calc(var(--nav) + env(safe-area-inset-bottom) + var(--restbar-reserve,0px) + var(--space-12));z-index:5;
  /* A tucked shadow (negative spread): the page clips sideways at the column, so a wide shadow would end in hard edges. */
  box-shadow:var(--elevation-cta-tucked-shadow);
}
/* The alternative to the day Today leads with, so it sits under the CTA and
   reads as the quieter of the two. */

/* @ci-domain workout,session,today,history */
/* ---- Active workout ---- */
.wo-head{display:flex;align-items:flex-start;justify-content:space-between;gap:var(--space-8);margin-bottom:0;min-height:var(--control-target)}
/* Equal leading and trailing slots, so the title sits on the screen's centre line. */
/* The climb's centred title (owner hill-climb, 2026-11-10): equal content-sized side slots around a centre that shrinks
   first. Where the title takes its own row (the narrowest phones, large text) the head stays the wrapping flex row
   below, or a long title widens the centre past the screen and the slots overlap, Back under the menu. */
.wo-head{display:grid;grid-template-columns:minmax(max-content,1fr) minmax(0,max-content) minmax(max-content,1fr)}
.wo-head > :first-child{justify-self:start}
.wo-head > .wo-head__end{justify-self:end}
/* The title wraps rather than truncates, so it hangs from the top of the bar: when the timer chip widens and
   takes room from it, the controls and the first line of the title stay where they were. */
.wo-head__center{text-align:center;min-width:0;flex:1;padding-top:var(--space-12)}
.wo-head__title{font-family:var(--font-language);font-size:var(--font-size-body-small);font-weight:var(--weight-medium);line-height:var(--line-standard);color:var(--color-ink-secondary);overflow-wrap:break-word;-webkit-hyphens:auto;hyphens:auto;hyphenate-limit-chars:10 4 4;-webkit-hyphenate-limit-before:4;-webkit-hyphenate-limit-after:4}
/* In a workout the title is the exercise's name, and the name opens its stats and history. A long name beside a
   running or overrun rest pill takes two lines at most (owner, 2026-10-17); the heading's name keeps all of it. */
.wo-head__title:has(.wo-head__name){font-weight:var(--weight-semibold);color:var(--color-ink)}
.wo-head__name{
  display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow:hidden;width:100%;min-height:var(--control-target);margin:calc(-1 * var(--space-12)) 0 0;padding:var(--space-12) 0 0;border:0;
  background:none;color:inherit;font:inherit;text-align:center;overflow-wrap:break-word;-webkit-hyphens:auto;hyphens:auto;hyphenate-limit-chars:10 4 4;-webkit-hyphenate-limit-before:4;-webkit-hyphenate-limit-after:4;cursor:pointer;
}
@media (hover: hover) and (pointer: fine){
.wo-head__name:hover{background:var(--well)}
}
.wo-head__name.is-pressed{background:var(--row-pressed-bg);transform:var(--control-pressed-transform)}
.wo-head__name:focus-visible{outline:var(--control-focus-outline);outline-offset:2px;border-radius:var(--radius-control)}
/* The title is a heading and is never cut short: it wraps. Where the controls leave it a column too narrow to read
   (the narrowest phones, and any phone at large text) it takes the row under the controls, so a running timer's
   wider pill neither squeezes it nor moves it. */
@media (max-width:340px){
  .wo-head{display:flex;flex-wrap:wrap;row-gap:0}
  .wo-head__center{order:3;flex:1 0 100%;padding-top:0}
}
body:has(.exercise--focus.is-text-scaled){--focus-context-floor:0px}
body:has(.exercise--focus.is-text-scaled) .wo-head{display:flex;flex-wrap:wrap;row-gap:0}
body:has(.exercise--focus.is-text-scaled) .fcard__context{padding-block:0}
body:has(.exercise--focus.is-text-scaled) #log > :not(#workoutShell){margin-bottom:0}
/* The shelf's labels are one or two short words that wrap in a third of the screen; tight leading keeps their two lines
   from costing the shelf the room its action needs. The running timer's pill drops its dot and takes the label size so
   the controls and the timer share one row with the title under them. */
body:has(.exercise--focus.is-text-scaled) .shelf__lab{line-height:var(--line-tight)}
body:has(.exercise--focus.is-text-scaled) .wo-head__center{order:3;flex:1 0 100%;padding-top:0}
/* Focus at large text (Plan 075 phase 5, audit F-1). The layout scales with the text, but the parts that would push
   the set off the screen stop growing where iOS stops them: the bar title at --bar-title-max, the timer pill, the rest
   clock at 52px, and the shelf's labels, values and pads. The rest block stacks, the clock over its label and total.
   The ledger keeps its value heads (RIR's is the glossary's way in) but drops the SET head, and its columns share the
   rows' grid instead of rem widths that outgrow the row. `sizeFocusCard` keeps the open set whole above the shelf. */
body:has(.exercise--focus.is-text-scaled) .wo-head__title{font-size:min(var(--font-size-body-small),var(--bar-title-max))}
.exercise--focus.is-text-scaled .focus-ex__meta{font-size:min(var(--font-size-focus-meta),var(--large-cap-supporting))}
.exercise--focus.is-text-scaled .fx-cue__l1{font-size:min(var(--font-size-focus-cue),var(--large-cap-title))}
.exercise--focus.is-text-scaled .fx-cue__l2{font-size:min(var(--font-size-focus-cue-second),var(--large-cap-body))}
.exercise--focus.is-text-scaled .fx-cue__evidence{font-size:min(var(--font-size-focus-evidence),var(--large-cap-body))}
.exercise--focus.is-text-scaled .fx-cue__standing{font-size:min(var(--font-size-body-small),var(--large-cap-body))}
/* A window too short for the hero, its evidence line and the open set together (owner review of #550): once the
   logged rows have all folded, the hero steps down to the feature-title size and its reps line to subtitle, the cue's
   spacing tightens, and the table's column heads give way. The shelf's own labels still name each value. */
.exercise--focus.is-hero-compact .fx-cue{margin:var(--space-8) 0 var(--space-4)}
.exercise--focus.is-hero-compact .fx-cue__l1{font-size:min(var(--font-size-feature-title),var(--large-cap-value))}
.exercise--focus.is-hero-compact .fx-cue__l2{margin-top:0;font-size:min(var(--font-size-subtitle),var(--large-cap-subtitle))}
.exercise--focus.is-hero-compact .fx-cue__evidence{margin-top:var(--space-4);font-size:min(var(--font-size-body-small),var(--large-cap-body))}
.exercise--focus.is-hero-compact .fcard__ledger{margin-top:0}
/* The standing line uses the compact hero's whitespace before it takes room from the open row. Numeric column
   labels have no control; a glossary term keeps its full target. Enlarged text retains its own fitting path. */
.exercise--focus.is-hero-compact:not(.is-text-scaled):has(.fx-cue__standing) .fcard__context{padding-top:0}
.exercise--focus.is-hero-compact:not(.is-text-scaled):has(.fx-cue__standing) .fx-head{margin-bottom:var(--space-12)}
.exercise--focus.is-hero-compact:not(.is-text-scaled):has(.fx-cue__standing) .fx-cue{margin:0}
.exercise--focus.is-hero-compact:not(.is-text-scaled):has(.fx-cue__standing) .fx-cue__standing,
.exercise--focus.is-hero-compact:not(.is-text-scaled):has(.fx-cue__standing) .fx-cue__evidence{margin-top:0}
.exercise--focus.is-hero-compact:not(.is-text-scaled):has(.fx-cue__standing) .ledgerline__head:not(:has(.term)){min-height:1lh}
/* The first set opens unscrolled and keeps its compact budget. Later sets need the head's gap so the scroller can
   start between its text and the hero's taller figures, whose font boxes otherwise overlap. */
.exercise--focus.is-hero-compact.is-standing-compact:not(.is-text-scaled):has(.fx-cue__standing):has(.ledgerline--open[data-lrow="1"]) .fx-head{margin-bottom:0}
article.exercise--focus.is-hero-compact.is-standing-compact .fcard__context > .fx-slot > .fx-cue{margin:0}
.exercise--focus.is-standing-compact .fx-cue__evidence{font-size:var(--font-size-caption)}
/* The column heads give way only to the disclosure: while it folds rows it takes their place, and at the first set,
   with nothing to fold, the heads (RIR's is the glossary's way in from Focus) stay. */
.exercise--focus.is-hero-compact .fcard__ledger:has(.ledger__more:not([hidden])) .ledgerline__head{display:none}
.exercise--focus.is-text-scaled .text-link.focus-ex__why,.exercise--focus.is-text-scaled .fx-cue__cancel{font-size:min(var(--font-size-control),var(--large-cap-body))}
/* Enlarged text keeps one set column for the heads and every row, so the figures stay aligned under their heads. The
   column holds the capped set number, check or warm-up mark; the Set head may run past it into the load column's
   unused leading space rather than widen the column. */
.exercise--focus.is-text-scaled .ledgerline__head,.exercise--focus.is-text-scaled .ledgerline{grid-template-columns:calc(var(--large-cap-small) * 1.6) minmax(0,1fr)}
.exercise--focus.is-text-scaled .ledgerline__head > :first-child{white-space:nowrap}
.exercise--focus.is-text-scaled .ledgerline__head{font-size:min(var(--font-size-label),var(--large-cap-caption))}
.exercise--focus.is-text-scaled .ledgerline__vals{display:grid;grid-template-columns:minmax(max-content,1.6fr) minmax(max-content,1fr) minmax(max-content,1fr);font-size:min(var(--font-size-body),var(--large-cap-data))}
.exercise--focus.is-text-scaled .ledgerline__vals > .fx-col{min-width:0}
.exercise--focus.is-text-scaled .ledgerline__idx{font-size:min(var(--font-size-body-small),var(--large-cap-small))}
.exercise--focus.is-text-scaled .ledgerline__prev{font-size:min(var(--font-size-body-small),var(--large-cap-body))}
.exercise--focus.is-text-scaled .ledger__more{font-size:min(var(--font-size-body-small),var(--large-cap-small))}
.exercise--focus.is-text-scaled .shelf__lab{font-size:min(var(--font-size-body-small),var(--large-cap-caption))}
.exercise--focus.is-text-scaled .shelf__unit,.exercise--focus.is-text-scaled .shelf__cap{font-size:min(var(--font-size-caption),var(--large-cap-caption))}
.exercise--focus.is-text-scaled .shelf__val,.exercise--focus.is-text-scaled .shelf__input{font-size:min(var(--font-size-metric),var(--shelf-numeral-fit),var(--large-cap-value))}
.exercise--focus.is-text-scaled .shelf__pads{overflow-x:auto;scrollbar-width:none}
.exercise--focus.is-text-scaled .shelf__pads::-webkit-scrollbar{display:none}
.exercise--focus.is-text-scaled .shelf__pads > button{flex:1 0 auto;font-size:min(var(--font-size-control),var(--large-cap-body))}
.exercise--focus.is-text-scaled .focus-shelf .saveset{font-size:min(var(--font-size-control),var(--large-cap-data))}
.wo-head__sub{display:none}
.wo-head__sub.is-deload{display:block;font-family:var(--font-language);font-size:var(--font-size-body-small);line-height:var(--line-reading);color:var(--color-ink-secondary)}
.wo-head__end{display:flex;align-items:center;gap:6px;flex:none;position:relative;justify-self:end}

#leaveWorkout,#sessionSheetBtn{
  width:var(--control-target);height:var(--control-target);min-width:var(--control-target);min-height:var(--control-target);padding:0;
  background:var(--control-quiet-bg);border:1px solid var(--control-quiet-boundary);border-radius:var(--radius-round);color:var(--control-quiet-ink);
}
@media (hover: hover) and (pointer: fine){
#leaveWorkout:hover:not(:disabled),#sessionSheetBtn:hover:not(:disabled){background:var(--well);border-color:var(--control-quiet-boundary);color:var(--control-quiet-ink)}
}
#leaveWorkout.is-pressed:not(:disabled),#sessionSheetBtn.is-pressed:not(:disabled){background:var(--row-pressed-bg);border-color:var(--control-quiet-boundary);color:var(--control-quiet-ink);transform:var(--control-pressed-transform)}
#leaveWorkout:focus-visible,#sessionSheetBtn:focus-visible{outline:var(--control-focus-outline);outline-offset:2px}
#leaveWorkout:disabled,#sessionSheetBtn:disabled{background:var(--control-quiet-bg);border-color:var(--boundary-decorative);color:var(--color-disabled-reason);opacity:1;cursor:not-allowed;transform:none}
#leaveWorkout .icon-mask{transform:rotate(90deg)}
/* Exercise progress: one segment per exercise, each a button into that exercise.
   The bar is drawn inside a 44px target. */
#woProgress{margin:0}
/* Targets touch; the gap between segments is drawn by insetting each bar, so a
   six-exercise day still gives every segment a full 44px target at 320px. A
   longer day scrolls rather than shrinking its targets. */
.segbar--ex{gap:0;margin:0;overflow-x:auto;scrollbar-width:none}
.segbar--ex::-webkit-scrollbar{display:none}
#woProgress .segbar__seg{
  position:relative;flex:1 0 var(--control-target);min-width:var(--control-target);height:var(--control-target);margin:0;padding:0;border:0;border-radius:var(--radius-none);
  background:var(--control-quiet-bg);cursor:pointer;
}
#woProgress .segbar__bar{
  position:absolute;left:var(--space-4);right:var(--space-4);top:50%;height:5px;margin-top:-2px;border-radius:var(--radius-compact);background:var(--boundary-required);
}
#woProgress .segbar__seg.is-done .segbar__bar{background:var(--color-ink)}
#woProgress .segbar__seg.is-current .segbar__bar{background:var(--color-action)}
#woProgress span.segbar__seg{cursor:default}
@media (hover: hover) and (pointer: fine){
#woProgress button.segbar__seg:hover:not(:disabled){background:var(--well)}
}
#woProgress button.segbar__seg.is-pressed:not(:disabled){transform:var(--control-pressed-transform)}
#woProgress .segbar__seg:focus-visible{outline:var(--control-focus-outline);outline-offset:2px}
body.is-workout.is-focus-wo #logWorkspace,
body.is-workout.is-focus-wo #logForm{padding-bottom:0}
/* Focus fills the screen by layout, not by arithmetic: every box between the
   viewport and the deck hands its height down, so the card cannot be left short
   by a measurement taken while the viewport was something else. */
/* The card is the session: Focus gives it the whole screen and puts the way
   back in the header, where the mockups put it. */
body.is-focus-wo nav{display:none}
body.is-focus-wo{padding-bottom:0}
/* The screen runs to the bottom edge: the shelf's surface goes under the home indicator and pays that inset
   from its own padding, so no strip of page shows under it. */
body.is-workout.is-focus-wo main{
  display:flex;flex-direction:column;
  height:100dvh;
  padding-bottom:0;
  /* The deck reaches both edges so the shelf can; the rest of the screen keeps the gutter. */
  padding-left:0;padding-right:0;
}
body.is-workout.is-focus-wo #log > :not(#workoutShell),
body.is-workout.is-focus-wo #workoutShell > :not(#logForm),
body.is-workout.is-focus-wo #logForm > :not(#workout),
body.is-workout.is-focus-wo #workout > :not(.deck){
  margin-left:max(var(--gut),env(safe-area-inset-left));margin-right:max(var(--gut),env(safe-area-inset-right));
}
body.is-workout.is-focus-wo #log.view.active,
body.is-workout.is-focus-wo #workoutShell,
body.is-workout.is-focus-wo #logForm,
body.is-workout.is-focus-wo #workout{display:flex;flex-direction:column;flex:1;min-height:0}
body.is-workout.is-focus-wo .deck{flex:1;min-height:0}
/* The shelf is not paid for by what sits above it. Everything above the deck that can vary (a banner, a guide, the
   header's second line) is measured by the screen, never by the shelf: the shell keeps the height of the rigid
   chrome plus the shelf (`syncFocusFloor` in app.js publishes it), and the banners and guides above give way and
   scroll inside themselves. The context region is the one that gives up height inside the card. */
body.is-workout.is-focus-wo .wo-head{flex:none}
body.is-workout.is-focus-wo #workoutShell{min-height:var(--focus-floor,0px)}
body.is-workout.is-focus-wo #logForm{min-height:var(--focus-form-floor,0px)}
body.is-workout.is-focus-wo #log > :not(#workoutShell),
body.is-workout.is-focus-wo #workoutShell > :not(.wo-head):not(#logForm){
  flex:0 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;
}
/* With the software keyboard up (`data-keyboard`, set by trackSheetViewport while a field is edited) the screen is the
   band the keyboard leaves visible, not 100dvh, so the shelf and the field being edited sit just above the keyboard
   (#300). The floors that keep the shelf from being squeezed by the chrome above it stand down: in that band the shelf
   is what matters, and the context region gives up its height instead. */
/* The band is where the visual viewport is, not the top of the layout one: iOS pans the visual viewport to show the
   field (and a browser may try its own focus scroll), so Focus is pinned to the band itself. The header keeps its
   place under the safe area, the shelf sits on the keyboard's accessory bar, and the document has nothing to scroll. */
:root[data-keyboard="up"] body.is-workout.is-focus-wo main{position:fixed;top:var(--vv-top,0px);left:0;right:0;height:var(--vvh,100dvh)}
/* The status bar's paper band follows the band too, so it stays under the clock after the pan. */
:root[data-keyboard="up"] body.is-workout.is-focus-wo::before{top:var(--vv-top,0px)}
/* The deck keeps the shelf whole (`--focus-deck-floor`, from syncFocusFloor) and the skip bar gives way like the
   banners above the deck, so a short band still holds the whole shelf. It clips rather than scrolls: Show all's target
   reaches past the thin line, and that overhang is not something to scroll to. */
:root[data-keyboard="up"] body.is-workout.is-focus-wo #workout > .deck{min-height:var(--focus-deck-floor,0px)}
:root[data-keyboard="up"] body.is-workout.is-focus-wo #workoutShell,
:root[data-keyboard="up"] body.is-workout.is-focus-wo #logForm{min-height:0}
:root[data-keyboard="up"] body.is-workout.is-focus-wo article.exercise--focus .fcard__context{min-height:var(--focus-shelf-under,0px)}
/* With the keyboard up the floors stand down, and so does the band the region leaves for the rest tab's rise (#550). */
:root[data-keyboard="up"] body.is-workout.is-focus-wo article.exercise--focus:has(.resttab){--focus-tab-band:0px}
/* The keyboard covers the home indicator, so the shelf does not pay its inset again above the keyboard. */
:root[data-keyboard="up"] body.is-workout.is-focus-wo .focus-shelf{padding-bottom:var(--space-16)}
/* Docked to the keyboard the addendum's top inset comes back to 8 px.
   A browser that resizes the page for the keyboard sets no flag, so a window this short (a phone's height with the
   keyboard up) docks it the same way. */
:root[data-keyboard="up"] body.is-workout.is-focus-wo .focus-shelf{padding-top:var(--space-8)}
@media (max-height:480px){
  body.is-workout.is-focus-wo .focus-shelf{padding-top:var(--space-8)}
}
body.is-workout.is-focus-wo #dayTabs,
body.is-workout.is-focus-wo #logForm > .field,
body.is-workout.is-focus-wo #logForm > .btn--save{display:none!important}

/* ---- Focus deck ----
   A paged track: the live card at rest position, an inert copy of each
   neighbour parked just off either side. Dragging moves all three as one. */
body.is-focus-wo{overflow-x:hidden}
.deck{position:relative;margin:0;overflow-x:clip;overflow-clip-margin:24px}
/* Each card sits in its own slot; the track carries all three as one. */
.deck__track{position:absolute;inset:0;will-change:transform}
.deck__track.is-settling{transition:transform .21s cubic-bezier(.2,.7,.2,1)}
.deck__slot{position:absolute;top:0;bottom:0;width:100%}
/* The neighbours are parked off screen and take no part in layout until a swipe or a slide shows them. */
.deck__slot--prev,.deck__slot--next{display:none;visibility:hidden;pointer-events:none}
.deck__slot--prev{right:calc(100% + 14px)}
.deck__slot--next{left:calc(100% + 14px)}
.deck.is-swiping .deck__slot,
.deck__track.is-settling .deck__slot{display:block;visibility:visible}
@media (prefers-reduced-motion:reduce){
  .deck__track.is-settling{transition:none}
}

/* ---- Focus card (Direction D) ----
   Flat paper: no card, no border, no depth. The exercise and its cue sit on
   top, the ledger of every set under them, and the shelf is the only floating
   layer. The card is as wide as the screen so the shelf can reach both edges;
   the context region carries the page gutter. */
article.exercise--focus{
  position:absolute;inset:0;margin:0;
  display:flex;flex-direction:column;overflow:hidden;
  background:var(--bg);border:0;border-radius:var(--radius-none);
  padding:0;box-shadow:none;
  touch-action:pan-y pinch-zoom;
}
article.exercise--focus input,article.exercise--focus textarea{-webkit-user-select:text;user-select:text}

.fcard__context{
  flex:1;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;touch-action:pan-y pinch-zoom;
  padding:var(--space-8) var(--gut) var(--space-16);
}
/* The context region is focusable so a keyboard can scroll it, which hands it the shared 44px target floor; here the
   floor is the one the screen's budget allows (--focus-context-floor), and the selector outranks the shared rule. */
article.exercise--focus .fcard__context{min-height:calc(var(--focus-context-floor) + var(--focus-shelf-under,0px) + var(--focus-tab-band,0px))}
/* The card scrolls behind the shelf, as content does under an iOS toolbar (owner, iPhone, 2026-11-19): the context
   region runs on under the shelf (`--focus-shelf-under`, the shelf's measured height, published by fitFocusLedger) and
   ends in a spacer as tall as the shelf plus the band the rest tab rises into (#550), so its last line still scrolls
   clear of both and nothing is cut at a hard edge above the shelf. Its window is what lies above the shelf and the tab;
   `sizeFocusCard` keeps the open set whole there, and scroll-padding keeps focus and scrollIntoView out from under it. */
article.exercise--focus .fcard__context{
  isolation:isolate;margin-bottom:calc(-1 * var(--focus-shelf-under,0px));
  scroll-padding-bottom:calc(var(--focus-shelf-under,0px) + var(--focus-tab-band,0px));
}
article.exercise--focus .fcard__context::after{content:"";flex:none;height:calc(var(--focus-shelf-under,0px) + var(--focus-tab-band,0px))}
/* Whatever the region stacks inside itself, the shelf paints over it. */
article.exercise--focus > .focus-shelf{z-index:1}
/* The task reads top-down from the prescription; the set rows take a roomier height so the list, not empty paper,
   fills the screen above the shelf. */
/* The open set is the tall row (owner hill-climb); logged and upcoming rows keep their natural height so the window
   still holds the earlier sets above the open one on the last set (focus-space-summary, focus-hero). */
.fcard__ledger .ledgerline--open{min-height:68px}
.fcard__ledger .ledgerline:not(.ledgerline__head){align-content:center}
.fcard__ledger + .fx-next{margin-top:var(--space-26)}
/* Next is a quiet navigation row resting on the shelf: the context is a column, the free space sits between the set
   list and Next, and Next reads as the shelf's lead-in rather than a card of its own. */
article.exercise--focus .fcard__context{display:flex;flex-direction:column}
article.exercise--focus .fcard__context > *{flex-shrink:0}
/* A flex column does not collapse margins: the cue's own margins would stack on the head's and the ledger's (30px
   above, 26px below, where block flow gave 18 and 12) and cost the window the earlier set on the last set. The cue
   adds only what collapsing would have added. */
article.exercise--focus .fcard__context > .fx-slot > .fx-cue{margin:0 0 var(--space-12)}
/* A short window (is-hero-compact) keeps the hero above the open set: the cue adds no margin of its own and the open
   row takes its natural height rather than the climb's roomier 68px. */
article.exercise--focus.is-hero-compact .fcard__context > .fx-slot > .fx-cue{margin:0 0 var(--space-4)}
.exercise--focus.is-hero-compact .fcard__ledger .ledgerline--open{min-height:0}
article.exercise--focus .fcard__context > .fx-next{margin-top:auto;min-height:52px;padding:0 var(--space-12);border-radius:var(--radius-none);border-top:1px solid var(--boundary-decorative);background:transparent;color:var(--color-ink)}
/* The previous set reads as the row's caption, from the row's leading edge, not as a figure spread over two columns. */
.fcard__ledger .ledgerline__prev{grid-column:1 / -1;text-align:left;font-size:var(--font-size-caption)}
.fcard__context:focus-visible{outline:var(--control-focus-outline);outline-offset:-2px}
.fx-head{margin:0 0 var(--space-16)}
.focus-ex__meta{
  margin:0;font-family:var(--font-language);font-size:var(--font-size-focus-meta);line-height:var(--line-reading);
  color:var(--color-ink-secondary);overflow-wrap:anywhere;
}

/* The hero (#523): the verb and the load as the screen's headline, the reps under it, then one line of evidence
   ending in the Why link (#518). The verdict mark rides inline before the words; a cue without one has no gap. */
.fx-cue{margin:var(--space-14) 0 var(--space-18)}
.fx-cue__mark{
  display:inline-block;width:.62em;height:.62em;margin-right:.14em;transform:translateY(-.04em);
}
.fx-cue__mark .verdictmark,.fx-cue__mark .verdictmark__glyph{display:block;width:100%;height:100%}
/* In the hero every verdict glyph takes the deep accent (owner, direction A), above the shared ink and orange. */
.fx-cue__l1 .fx-cue__mark .verdictmark__glyph{background:var(--accent-deep)}
.fx-cue__l1{
  margin:0;overflow-wrap:anywhere;font-family:var(--font-language);font-size:var(--font-size-focus-cue);
  font-weight:var(--weight-focus-cue);line-height:var(--line-focus-cue);letter-spacing:-.02em;color:var(--color-ink);
}
.fx-cue__load{font-family:var(--font-training-data);font-weight:var(--weight-semibold);letter-spacing:-.03em}
/* A Mono decimal mark sits in a full-width cell; the figure closes it up to the mark's own width. */
.fx-cue__dec{margin-inline:-.17em}
.fx-cue__l2{
  margin:var(--space-4) 0 0;font-family:var(--font-language);font-size:var(--font-size-focus-cue-second);
  line-height:var(--line-standard);letter-spacing:-.01em;color:var(--color-ink-secondary);
}
.fx-cue__standing{
  margin:var(--space-4) 0 0;font-family:var(--font-language);font-size:var(--font-size-body-small);
  line-height:var(--line-standard);color:var(--color-ink-secondary);overflow-wrap:anywhere;
}
.fx-cue__evidence{
  max-width:22rem;margin:var(--space-8) 0 0;font-family:var(--font-language);font-size:var(--font-size-focus-evidence);
  line-height:var(--line-standard);color:var(--color-ink-secondary);overflow-wrap:anywhere;
}
.fx-cue__fig{font-family:var(--font-language);font-weight:var(--weight-semibold);font-variant-numeric:tabular-nums;color:var(--color-ink)}
/* Inline in the evidence line the Why link keeps the 44px target: its padding reaches the floor and its negative
   margin gives the height back, so the line keeps its own leading. */
.exercise--focus .fx-cue__evidence .text-link.focus-ex__why{
  display:inline-block;min-height:var(--control-target);margin:calc((var(--control-target) - 1lh) / -2) 0;
  padding:calc((var(--control-target) - 1lh) / 2) 0;font-size:inherit;font-weight:var(--weight-semibold);line-height:inherit;
  color:var(--accent-deep);text-decoration:none;white-space:nowrap;vertical-align:baseline;
}
.exercise--focus .text-link.focus-ex__why,.exercise--focus .fx-cue__cancel{
  justify-self:start;display:inline-flex;align-items:center;min-height:var(--control-target);margin:var(--space-4) 0 0;padding:0;
  border:0;border-radius:var(--radius-control);background:var(--control-quiet-bg);color:var(--control-quiet-ink);cursor:pointer;
  font-family:var(--font-language);font-size:var(--font-size-control);font-weight:var(--weight-medium);line-height:var(--line-standard);text-align:left;
  text-decoration:underline;text-underline-offset:.2em;
}
@media (hover: hover) and (pointer: fine){
.exercise--focus .text-link.focus-ex__why:hover:not(:disabled),.exercise--focus .fx-cue__cancel:hover:not(:disabled){background:var(--well);color:var(--control-quiet-ink)}
}
.exercise--focus .text-link.focus-ex__why.is-pressed:not(:disabled),.exercise--focus .fx-cue__cancel.is-pressed:not(:disabled){background:var(--row-pressed-bg);color:var(--control-quiet-ink);transform:var(--control-pressed-transform)}
.exercise--focus .text-link.focus-ex__why:focus-visible,.exercise--focus .fx-cue__cancel:focus-visible{outline:var(--control-focus-outline);outline-offset:2px}
.exercise--focus .text-link.focus-ex__why:disabled,.exercise--focus .fx-cue__cancel:disabled{background:var(--control-quiet-bg);color:var(--color-disabled-reason);opacity:1;cursor:not-allowed;transform:none}
/* The exercise note (owner, 2026-11-05). With none, a quiet note icon ends the prescription line: a full target whose
   glyph sits in the line's own height, so the row does not grow. With one, the note is one quiet line under it,
   cut with an ellipsis; the whole line opens it to read and edit. Both sit above the hero and scroll away first. */
.fx-head__row{display:flex;align-items:center;gap:var(--space-8)}
.fx-head__row .focus-ex__meta{flex:1;min-width:0}
.fx-note-add{
  flex:none;display:grid;place-items:center;width:var(--control-target);height:var(--control-target);
  margin-block:calc((var(--control-target) - 1lh) / -2);
  padding:0;border:0;border-radius:var(--radius-round);background:none;color:var(--color-ink-secondary);
  font-size:var(--font-size-focus-meta);line-height:var(--line-reading);cursor:pointer;
}
.fx-note-add .icon-mask{width:18px;height:18px}
.fx-note-add__label{font-family:var(--font-language);font-size:var(--font-size-body-small);font-weight:var(--weight-medium)}
.fx-note{
  display:flex;align-items:center;gap:var(--space-8);width:100%;min-width:0;margin:var(--space-4) 0 0;padding:0;
  border:0;background:none;text-align:start;cursor:pointer;
  font-family:var(--font-language);font-size:var(--font-size-body-small);line-height:var(--line-reading);color:var(--color-ink-secondary);
}
.fx-note__text{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

.exercise--focus .term{background:var(--control-quiet-bg);color:var(--control-quiet-ink);border-color:var(--control-quiet-boundary);font-family:var(--font-language)}
@media (hover: hover) and (pointer: fine){
.exercise--focus .term:hover:not(:disabled){background:var(--well);color:var(--control-quiet-ink);text-decoration-color:var(--control-quiet-ink)}
}
.exercise--focus .term.is-pressed:not(:disabled){background:var(--row-pressed-bg);color:var(--control-quiet-ink);transform:var(--control-pressed-transform)}
.exercise--focus .term:focus-visible{outline:var(--control-focus-outline);outline-offset:2px}
.exercise--focus .term:disabled{background:var(--control-quiet-bg);color:var(--color-disabled-reason);opacity:1;cursor:not-allowed;transform:none}

/* The ledger is the record, one row per set. Values sit in right-aligned Mono
   columns that the head's labels share; the set being worked on wears the open
   ring, and sets still to do read in soft ink until the lifter confirms them. */
.fcard__ledger{margin:var(--space-8) 0 0}
/* The rows the measurement folds, and the disclosure while it folds none (#517). */
.fcard__ledger [data-ldone][hidden],.fcard__ledger .ledger__more[hidden]{display:none}
.fcard__ledger .ledgerline__head{align-items:center;min-height:calc(var(--control-target) + 1px);padding-block:0}
.fcard__ledger .ledgerline__head .ledgerline__vals{
  align-items:center;font-family:inherit;font-size:inherit;font-weight:inherit;line-height:inherit;letter-spacing:inherit;text-transform:inherit;color:inherit;
}
.fcard__ledger .ledgerline__head .term{margin:0;padding-block:0;padding-inline:0;justify-content:flex-end;text-align:right;gap:var(--space-4);text-decoration:none}
.fcard__ledger .ledgerline__head .term::after{--term-glyph:8px;content:"?";display:inline-grid;place-items:center;width:12px;height:12px;border:1px solid var(--ink-faint);border-radius:var(--radius-round);color:var(--ink-faint);font-size:var(--term-glyph);font-weight:var(--weight-regular);letter-spacing:0;line-height:1}
.ledgerline__vals > .fx-col{flex:0 0 auto;min-width:0;text-align:right}
.ledgerline__vals > .fx-col:nth-child(1){min-width:4.5rem}
/* Wide enough for the REPS heading, so the heading and the figures under it end on one edge. */
.ledgerline__vals > .fx-col:nth-child(2){min-width:3.25rem}
.ledgerline__vals > .fx-col:nth-child(3){min-width:4.5rem}
.ledgerline__vals > .fx-col.is-soft{color:var(--color-ink)}
/* Focus and Today set their figures in Plex Sans with tabular digits, the face of the sentences around them (owner,
   2026-11-10); Mono stays in History and the other ledgers. */
.fcard__ledger .ledgerline__vals,.fcard__ledger .ledgerline__idx{font-family:var(--font-language);font-variant-numeric:tabular-nums}
button.ledgerline{cursor:pointer;text-align:left;border-top:0;border-inline:0}
@media (hover: hover) and (pointer: fine){
button.ledgerline:hover:not(:disabled){background:var(--well)}
}
button.ledgerline.is-pressed:not(:disabled){background:var(--row-pressed-bg);transform:var(--control-pressed-transform)}
button.ledgerline:focus-visible{outline:var(--control-focus-outline);outline-offset:-2px}
.ledgerline .fx-check{
  display:block;width:20px;height:20px;background:var(--color-ink);
  -webkit-mask:var(--check) no-repeat center/contain;mask:var(--check) no-repeat center/contain;
}
/* The open row's ring is a real 2px edge, so the rendered-role audit can measure it; the
   padding gives the 2px back, which leaves the row the size of its neighbours. */
/* The open row is a tint with a 3px ink bar on its leading edge (owner, 2026-11-10), so the focused shelf field keeps
   the only ring on screen. */
.fcard__ledger .ledgerline--open{
  align-content:center;padding-block:6px;padding-inline:9px 12px;border:0;border-left:3px solid var(--accent);border-bottom:1px solid var(--boundary-decorative);border-radius:var(--radius-none);
  background:rgba(var(--accent-rgb),.05);box-shadow:none;
}
.fx-next{
  display:flex;align-items:center;justify-content:space-between;gap:var(--space-12);width:100%;min-height:48px;margin:var(--space-8) 0 0;
  padding:0 var(--space-12);border:0;border-radius:var(--radius-control);background:var(--control-quiet-bg);color:var(--control-quiet-ink);cursor:pointer;
  font-family:var(--font-language);font-size:var(--font-size-control);font-weight:var(--weight-regular);line-height:var(--line-standard);text-align:left;
}
.fx-next b{font-weight:var(--weight-semibold)}
@media (hover: hover) and (pointer: fine){
.fx-next:hover:not(:disabled){background:var(--well);color:var(--control-quiet-ink)}
}
.fx-next.is-pressed:not(:disabled){background:var(--row-pressed-bg);color:var(--control-quiet-ink);transform:var(--control-pressed-transform)}
.fx-next:focus-visible{outline:var(--control-focus-outline);outline-offset:2px}
.fx-next:disabled{background:var(--control-quiet-bg);color:var(--color-disabled-reason);cursor:not-allowed;transform:none}
.fx-next__chev{flex:none;transform:rotate(-90deg)}
/* Layout D: the logged sets' disclosure, a quiet row above the open set. */
.ledger__more{
  display:flex;align-items:center;justify-content:space-between;gap:var(--space-12);width:100%;min-height:var(--control-target);margin:0;
  padding:0 var(--space-12);border:0;border-radius:var(--radius-control);background:var(--control-quiet-bg);color:var(--color-ink-secondary);cursor:pointer;
  font-family:var(--font-language);font-size:var(--font-size-body-small);font-weight:var(--weight-regular);line-height:var(--line-standard);text-align:left;
}
@media (hover: hover) and (pointer: fine){
.ledger__more:hover{background:var(--well)}
}
.ledger__more.is-pressed{background:var(--row-pressed-bg);transform:var(--control-pressed-transform)}
.ledger__more:focus-visible{outline:var(--control-focus-outline);outline-offset:2px}
.ledger__chev{flex:none}
.ledger__more[aria-expanded="true"] .ledger__chev{transform:rotate(180deg)}


/* ---- The shelf ----
   Three fields, the pads for the selected one, and the one action. The shell is
   `.workshelf`; the field, pad and action recipes below sit on their own control
   roles. A field is a button until a second tap turns it into the real input. */
.focus-shelf{flex:none;position:relative}
/* Layout D (owner decision of 2026-10-17, from the approved mock): the shelf at 56 px fields, 48 px pads and a 52 px
   action, under the 56/56/54 of Direction D §4. Every target stays at least 48 px. The addendum to Plan 075 phase 5
   (owner, 2026-10-23) makes it concentric: a --shelf-radius sheet, everything --shelf-inset from its edges (the bottom
   is the safe area plus the inset), 8 px between siblings and 12 px between rows, and a grabber at the top. */
.workshelf.focus-shelf{
  row-gap:var(--space-12);padding:var(--shelf-inset) var(--shelf-inset) calc(var(--shelf-inset) + env(safe-area-inset-bottom,0px));
  border-radius:var(--shelf-radius) var(--shelf-radius) var(--radius-none) var(--radius-none);
}
/* The tiles are quiet fills with no outline (the addendum's option A, owner decision 2026-10-24): fields and pads sit
   on --bg, a step off the sheet in both themes, and are named by their label and value; the selected field keeps its
   ring. The real input a second tap opens keeps the field boundary. */
.focus-shelf{
  --control-selection-bg:var(--shelf-pad-bg);--control-secondary-bg:var(--shelf-pad-bg);
  --control-selection-boundary:transparent;--control-adjustment-boundary:transparent;--control-secondary-boundary:transparent;
}
/* A third of the shelf has to hold a load such as 102,5 on one line at any text size. The numeral is as large as the
   token allows and no larger than five Mono digits take in the room a field has left after its gutters, gaps and
   padding (a Mono digit is 0.6em, so 9.6 is three fields at 3.2em each); at the usual size the token is the smaller
   of the two and nothing changes, at double size the step-down replaces the wrap. */
.focus-shelf{
  --shelf-field-inset:calc(2 * var(--space-12) + 2px);
  /* Five Mono digits (3em) and the unit beside them (about 20px) in a third of the row. */
  --shelf-numeral-fit:calc(((100vw - 2 * var(--shelf-inset) - 2 * var(--space-8)) / 3 - var(--shelf-field-inset) - 20px) / 3);
}
.shelf__fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--space-8)}
/* The three fields share a row's height whichever label wrapped (a flex field stretches its button). */
.shelf__field{position:relative;display:flex;min-width:0}
.shelf__fieldbtn{
  display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:2px;width:100%;min-height:56px;margin:0;
  padding:var(--space-4) var(--space-12);border:1px solid var(--control-selection-boundary);border-radius:var(--shelf-inner-radius);
  background:var(--control-selection-bg);color:var(--control-selection-ink);text-align:left;cursor:pointer;
}
.shelf__valrow{display:flex;align-items:baseline;gap:3px;min-width:0;white-space:nowrap}
.shelf__unit{font-family:var(--font-language);font-size:var(--font-size-caption);color:var(--color-ink-secondary)}
/* Per side, said once (addendum option A): the per-side fields share one tile under a caption, a hairline between
   them; the selected one's ring follows the tile's outer corners and keeps small inner ones. */
.shelf__cap{
  grid-column:1/-1;display:flex;align-items:center;gap:6px;margin:0 0 calc(-1 * var(--space-4)) var(--space-4);
  font-family:var(--font-language);font-size:var(--font-size-caption);font-weight:var(--weight-semibold);line-height:var(--line-tight);
  letter-spacing:.06em;text-transform:uppercase;color:var(--color-ink-secondary);
}
.shelf__cap .icon-mask{width:16px;height:16px}
.shelf__group{
  grid-column:span var(--shelf-group-n,2);display:grid;grid-template-columns:repeat(var(--shelf-group-n,2),minmax(0,1fr));min-width:0;
  border-radius:var(--shelf-inner-radius);background:var(--control-selection-bg);
}
.shelf__group .shelf__fieldbtn{border-color:transparent;background:transparent}
.shelf__group .shelf__field:first-child .shelf__fieldbtn{border-radius:var(--shelf-inner-radius) var(--shelf-group-inner-radius) var(--shelf-group-inner-radius) var(--shelf-inner-radius)}
.shelf__group .shelf__field:last-child .shelf__fieldbtn{border-radius:var(--shelf-group-inner-radius) var(--shelf-inner-radius) var(--shelf-inner-radius) var(--shelf-group-inner-radius)}
.shelf__group .shelf__field:only-child .shelf__fieldbtn{border-radius:var(--shelf-inner-radius)}
.shelf__group .shelf__field + .shelf__field::before{content:"";position:absolute;z-index:1;left:0;top:var(--space-12);bottom:var(--space-12);width:1px;background:var(--rule);pointer-events:none}
@media (hover: hover) and (pointer: fine){
.shelf__fieldbtn:hover:not(:disabled){background:var(--well)}
}
.shelf__fieldbtn.is-pressed:not(:disabled){background:var(--row-pressed-bg);transform:var(--control-pressed-transform)}
.shelf__fieldbtn:focus-visible{outline:var(--control-focus-outline);outline-offset:2px}
/* The ring is the keyboard's cue: after a touch or typed entry (the motion layer's input modality) a field focused by
   script shows only its selected ring, whichever path moved focus there. Without the layer the ring stays. */
:root[data-input-modality="pointer"] .shelf__fieldbtn:focus-visible{outline:none}
.shelf__fieldbtn[aria-pressed="true"]{box-shadow:var(--boundary-field-selected-shadow)}
.shelf__lab{
  font-family:var(--font-language);font-size:var(--font-size-body-small);font-weight:var(--weight-regular);line-height:var(--line-standard);
  color:var(--color-ink-secondary);overflow-wrap:anywhere;
}
.shelf__val{
  font-family:var(--font-language);font-size:min(var(--font-size-metric),var(--shelf-numeral-fit));font-weight:var(--weight-medium);line-height:var(--line-tight);
  color:var(--control-selection-ink);font-variant-numeric:tabular-nums;overflow-wrap:anywhere;
}
/* A prefilled value the lifter has not touched is ink at the regular weight; touching it sets it in medium (owner,
   2026-11-10: grey read as a placeholder). */
.shelf__field.is-untouched .shelf__val{color:var(--color-ink);font-weight:var(--weight-regular)}
/* The input is always present so the draft handlers have one element to read and
   flag. Until the second tap it is invisible and inert; then it takes the field's place. */
.shelf__input{
  position:absolute;inset:0;width:100%;height:100%;min-height:56px;margin:0;padding:var(--space-4) var(--space-12) 0;
  opacity:0;pointer-events:none;border:1px solid var(--control-field-boundary);border-radius:var(--shelf-inner-radius);
  background:var(--control-field-bg);color:var(--control-field-ink);box-shadow:var(--elevation-selected-quiet-shadow);
  font-family:var(--font-language);font-size:min(var(--font-size-metric),var(--shelf-numeral-fit));font-weight:var(--weight-medium);line-height:var(--line-tight);
  font-variant-numeric:tabular-nums;text-align:left;
}
.shelf__field.is-editing .shelf__input{opacity:1;pointer-events:auto;padding-top:calc(var(--space-4) + var(--font-size-body-small) * var(--line-standard) + 2px);padding-bottom:0}
.shelf__lab--edit{position:absolute;top:var(--space-4);left:var(--space-12);right:var(--space-12);pointer-events:none}
.shelf__field.is-editing .shelf__fieldbtn{visibility:hidden}
.shelf__input:focus-visible{outline:var(--control-focus-outline);outline-offset:2px}
.shelf__input[aria-invalid="true"]{border-color:var(--control-error-boundary);box-shadow:none}
.shelf__input[aria-invalid="true"]:focus-visible{outline-color:var(--control-error-boundary)}
.shelf__fieldbtn[aria-invalid="true"]{border-color:var(--control-error-boundary)}
.shelf__pads{display:flex;gap:var(--space-8)}
.shelf__pads .shelf__pad{
  flex:1 1 0;width:auto;min-width:0;height:48px;min-height:48px;padding:0 var(--space-12);border-radius:var(--shelf-inner-radius);
  font-family:var(--font-language);font-size:var(--font-size-control);font-weight:var(--weight-medium);line-height:var(--line-standard);white-space:nowrap;
}
.fx-slot{position:relative}
.shelf__pads{position:relative}
/* The test set (Plan 077 PR 3). Its prompt is the shared between-sets tip (.resttip, below). */
.shelf__pads .shelf__pad--wide{flex:1 1 100%}
.shelf__field--failure .shelf__fieldbtn{cursor:default}
.ledgerline__tag{
  grid-column:2;text-align:right;font-family:var(--font-language);font-size:var(--font-size-label);font-weight:var(--weight-semibold);
  letter-spacing:var(--track-label);text-transform:uppercase;color:var(--color-ink-secondary);
}
.ledgerline__result{grid-column:1 / -1;display:grid;gap:var(--space-4);margin:var(--space-4) 0 0;padding:var(--space-8) var(--space-12);border-radius:var(--radius-surface);background:var(--well);text-align:left}
.ledgerline__pair{display:flex;align-items:baseline;gap:var(--space-12);flex-wrap:wrap}
.ledgerline__pair > span{font-family:var(--font-language);font-size:var(--font-size-label);font-weight:var(--weight-semibold);letter-spacing:var(--track-label);text-transform:uppercase;color:var(--color-ink-secondary)}
.ledgerline__pair b{margin-left:var(--space-4);font-family:var(--font-training-data);font-size:var(--font-size-metric);font-weight:var(--weight-semibold);letter-spacing:0;color:var(--color-ink)}
.ledgerline__pair > .ledgerline__arrow{font-size:var(--font-size-body);letter-spacing:0;text-transform:none}
.ledgerline__resline{font-family:var(--font-language);font-size:var(--font-size-body-small);line-height:var(--line-reading);color:var(--color-ink-secondary)}
/* Sized to its content: it is read in the rest, so it stays low enough to keep the lift in view. */
.sheet.sheet--maxset{height:auto}
.maxset__scroll{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
.sheetbody--maxset{display:grid;gap:var(--space-8);padding-top:var(--space-4)}
.maxset__scroll .sheetbody--maxset{flex:none;overflow:visible}
.sheet--maxset .sheetfoot{flex:none}
.sheet--maxset .sheetfoot>button{height:auto;padding-block:var(--space-8)}
.maxset__count{display:grid;grid-template-columns:72px minmax(0,1fr) 72px;align-items:center;margin-bottom:var(--space-4)}
.maxset__pad{height:56px;min-height:56px;font-size:var(--font-size-metric)}
.maxset__n{text-align:center;font-family:var(--font-training-data);font-size:var(--font-size-display);font-weight:var(--weight-semibold);line-height:1;font-variant-numeric:tabular-nums;color:var(--color-ink)}
.maxset__rule,.maxset__safety{margin:0;font-family:var(--font-language);font-size:var(--font-size-body-small);line-height:var(--line-reading);color:var(--color-ink)}
.maxset__safety{color:var(--color-ink-secondary)}
.maxset__safety[hidden]{display:none}
.focus-shelf .btn--cta{margin:0}
.focus-shelf .btn--cta.saveset{
  border:1px solid var(--control-primary-boundary);background:var(--control-primary-bg);color:var(--control-primary-ink);
  font-family:var(--font-language);text-transform:none;letter-spacing:normal;font-size:var(--font-size-control);font-weight:var(--weight-semibold);line-height:var(--line-standard);
  min-height:52px;min-width:0;padding:0 var(--space-18);border-radius:var(--shelf-inner-radius);
}
@media (hover: hover) and (pointer: fine){
.focus-shelf .btn--cta.saveset:hover:not(:disabled){background:var(--control-primary-bg);color:var(--control-primary-ink);border-color:var(--control-primary-boundary)}
}
.focus-shelf .btn--cta.saveset.is-pressed:not(:disabled){background:var(--control-primary-bg);color:var(--control-primary-ink);border-color:var(--control-primary-boundary);transform:var(--control-pressed-transform)}
.focus-shelf .btn--cta.saveset:focus-visible{outline:var(--control-focus-outline);outline-offset:2px}
.focus-shelf .btn--cta.saveset:disabled{background:var(--control-primary-disabled-bg);color:var(--control-primary-disabled-ink);border-color:var(--boundary-decorative);opacity:1;cursor:not-allowed;transform:none}
/* Exercise and workout completion are the same shape, one step apart. */
.focus-shelf.is-done .focus-done{padding-bottom:var(--space-4)}
.focus-done__title{font-family:var(--font-language);font-size:var(--font-size-subtitle);font-weight:var(--weight-semibold);line-height:var(--line-tight);color:var(--color-ink);margin:0}
.focus-done__sub{font-family:var(--font-language);font-size:var(--font-size-body-small);line-height:var(--line-reading);color:var(--color-ink-secondary);margin:var(--space-4) 0 0}
/* The effort word's explainer opens over its field, as it did over the old cell. */
.shelf__field .effortpop{bottom:calc(100% + 4px)}
/* Effort stages (Plan 077, OD-4): the effort field carries its menu's arrow in its top corner, a 44px button of its own
   so the rest of the field still selects it. Stages A and B set the value with one tap on a chip. */
.shelf__menu{
  position:absolute;z-index:1;top:0;right:0;display:flex;align-items:flex-start;justify-content:flex-end;width:var(--control-target);height:var(--control-target);
  margin:0;padding:calc(var(--space-4) + 3px) var(--space-8) 0 0;border:0;border-radius:0 var(--shelf-inner-radius) 0 var(--shelf-inner-radius);background:transparent;
  color:var(--color-ink-secondary);cursor:pointer;
}
.shelf__menu:focus-visible{outline:var(--control-focus-outline);outline-offset:-2px}
.shelf__chev{display:block;width:16px;height:16px;background:currentColor}
.shelf__field[data-field="rir"] .shelf__lab{padding-right:var(--space-14)}
/* Only the numeric caption needs later lines to use the whole tile. Words keep their existing geometry. */
.shelf__field:has(>[data-stage="c"]) .shelf__menu{padding-top:var(--space-4)}
.shelf__field:has(>[data-stage="c"]) .shelf__lab{align-self:stretch;padding-right:0;line-height:var(--line-tight)}
.shelf__field:has(>[data-stage="c"]) .shelf__lab::before{content:"";float:right;width:var(--space-14);height:1lh}
/* A word in the effort field keeps the numerals' line box, so the three fields share one baseline. */
.shelf__field.is-word .shelf__val{font-family:var(--font-language);font-weight:var(--weight-semibold);font-size:min(var(--font-size-subtitle),var(--shelf-numeral-fit));
  line-height:calc(min(var(--font-size-metric),var(--shelf-numeral-fit)) * var(--line-tight))}
.shelf__pads--chips{gap:6px}
.shelf__pads--numbers{flex-wrap:wrap;gap:var(--space-4)}
.shelf__pads--numbers .shelf__chip{flex:1 1 var(--control-target);min-width:max(var(--control-target),2.5em)}
.exercise--focus.is-text-scaled .shelf__pads--numbers .shelf__chip{flex-basis:calc((100% - 2 * var(--space-4))/3)}
.shelf__pads .shelf__chip{padding:0 var(--space-4);border:1px solid var(--control-selection-boundary);background:var(--control-selection-bg);color:var(--control-selection-ink);cursor:pointer;
  -webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
.shelf__pads .shelf__chip.is-pressed{background:var(--row-pressed-bg);transform:var(--control-pressed-transform)}
.shelf__pads .shelf__chip:focus-visible{outline:var(--control-focus-outline);outline-offset:2px}
.shelf__pads .shelf__chip--num{font-family:var(--font-training-data);font-variant-numeric:tabular-nums}
.shelf__pads .shelf__chip.is-offered{border-color:var(--color-ink-secondary)}
.shelf__pads .shelf__chip[aria-pressed="true"]{background:var(--ink);color:var(--bg);border-color:var(--boundary-selected-quiet)}
/* The between-sets tip (OD-6): over the shelf and its rest tab, never on them, so Log set stays live under it. */
.resttip{
  position:absolute;z-index:3;left:var(--shelf-inset);right:var(--shelf-inset);bottom:calc(100% + var(--control-target) + var(--space-8));
  padding:var(--space-12) var(--space-14);border-radius:var(--radius-surface);background:var(--toast-bg);color:var(--toast-ink);
  box-shadow:var(--elevation-floating-shadow);font-family:var(--font-language);font-size:var(--font-size-body-small);line-height:var(--line-standard);
}
.resttip__text{margin:0;padding-right:var(--space-26)}
.resttip__text b{font-weight:var(--weight-semibold)}
.resttip__acts{display:flex;justify-content:flex-end;gap:var(--space-4);margin:var(--space-4) calc(-1 * var(--space-8)) calc(-1 * var(--space-8)) 0}
.resttip__no,.resttip__yes{min-height:var(--control-target);padding:0 var(--space-8);border:0;background:transparent;color:inherit;font:inherit;font-weight:var(--weight-semibold);cursor:pointer}
.resttip__no{font-weight:var(--weight-regular);opacity:.75}
.resttip__x{position:absolute;top:0;right:0;display:grid;place-items:center;width:var(--control-target);height:var(--control-target);padding:0;border:0;background:transparent;color:inherit;opacity:.75;cursor:pointer}
.resttip__x .icon-mask{width:18px;height:18px;background:currentColor}
.resttip :focus-visible{outline:2px solid currentColor;outline-offset:-2px;border-radius:var(--radius-button)}
/* The invitation and rest clock share one docked line above the input fields. */
.focus-shelf > .resttip[data-tip="max-set"]{
  position:relative;inset:auto;display:flex;align-items:center;gap:0;min-width:0;min-height:var(--control-target);
  padding:0;margin:0;border:0;border-radius:var(--radius-none);box-shadow:none;
  background:var(--control-quiet-bg);color:var(--color-ink);font-size:min(var(--font-size-body-small),var(--large-cap-small));
}
.resttip[data-tip="max-set"] .resttip__acts{flex:1;min-width:0;justify-content:space-between;margin:0;gap:var(--space-4)}
.resttip[data-tip="max-set"] :is(.resttip__no,.resttip__yes){
  min-width:var(--control-target);padding:0 var(--space-4);white-space:nowrap;
  background:var(--control-quiet-bg);color:var(--control-quiet-ink);opacity:1;
}
.resttip[data-tip="max-set"] .resttip__yes{flex:1 1 0;text-align:center;border:1px solid var(--control-secondary-boundary);border-radius:var(--radius-button);background:var(--control-secondary-bg);color:var(--control-secondary-ink)}
.resttip[data-tip="max-set"] .resttip__no{flex:none}
.resttip[data-tip="max-set"] .resttip__full{position:fixed;left:0;top:0;width:max-content;visibility:hidden;pointer-events:none}
.resttip[data-tip="max-set"] .resttip__acts > button:hover{background:var(--well)}
.resttip[data-tip="max-set"] .resttip__acts > button.is-pressed{background:var(--row-pressed-bg);transform:var(--control-pressed-transform)}
.resttip[data-tip="max-set"] :focus-visible{outline:var(--control-focus-outline);outline-offset:-2px}
.resttip[data-tip="max-set"] .resttab{position:static;flex:none;inset:auto;margin:0;width:auto;min-width:var(--control-target);max-width:none;padding:0 var(--space-2);border-radius:var(--radius-control)}
.resttip[data-tip="max-set"] .resttab__label,.resttip[data-tip="max-set"] .resttab__chev{display:none}
.resttip[data-tip="max-set"] .resttab__time{font-size:min(var(--font-size-body-small),var(--large-cap-supporting))}
.workshelf.focus-shelf:has(.resttip[data-tip="max-set"]){row-gap:var(--space-8)}
.exercise--focus.is-text-scaled .workshelf.focus-shelf:has(.resttip[data-tip="max-set"]){row-gap:var(--space-4)}
article.exercise--focus:has(.resttip[data-tip="max-set"]) .fcard__context{padding-bottom:0}
article.exercise--focus > .fx-cue__l1{flex:none;padding:0 var(--gut);font-size:min(var(--font-size-feature-title),var(--large-cap-value))}
.maxset__explanation{margin:0;font-family:var(--font-language);font-size:var(--font-size-body-small);line-height:var(--line-reading);color:var(--color-ink)}

/* ---- The wheel picker (Plan 075 phase 2W, ADR 0023 choice 8) ----
   A second tap on the selected Load or Reps field opens this in a fit sheet.
   Five rows (44px each) show through a column that does not scroll: app.js
   drives it with Pointer Events and places, tilts, shrinks and fades each row
   from one position every frame (transform and opacity only; no tilt under
   reduced motion). It marks the centre row and, on the reps wheel, the
   prescription's target band. */
.wheel__body{padding:0 0 var(--space-16);overflow:hidden}
/* As the prototype draws it: the title on the left at the section-title size,
   the keyboard button and Done together on the right, no rule under the head. */
/* Scoped by the sheet's class, so the landing proof's phone draws the same head. */
.sheet--wheel .wheel__head{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;min-height:52px;
  padding:0 8px 0 var(--space-16);border-bottom:0}
.sheet--wheel .wheel__head .sheet__title{margin:0;text-align:left;font-size:var(--font-size-section-title);letter-spacing:-.01em}
.wheel__trail{display:inline-flex;align-items:center;gap:var(--space-4)}
.wheel__trail .sheet__act{flex:none;width:auto;min-width:var(--control-target);padding:10px 8px}
/* The selection band stays put while the rows move under it: a filled,
   rounded row, outside the column. */
/* The owner's pick from the sizing tester (2026-10-24): 28px numbers in 45px rows, five rows shown, semibold. The row
   is app.js's WHEEL_ITEM_H, the engine's pitch; at double text the number stops at 36px so it stays inside its row. */
.wheel__frame{--wheel-row:45px;--wheel-number-cap:36px;position:relative;flex:1 1 auto;width:100%;min-width:0}
.wheel__band{position:absolute;left:var(--space-12);right:var(--space-12);top:calc(2 * var(--wheel-row));height:var(--wheel-row);
  border-radius:var(--radius-control);background:var(--wheel-band);pointer-events:none}
/* One axis only (owner, iPhone, 2026-10-23): the browser pans nothing here, and the engine reads only the
   finger's y, so a diagonal drag can't carry the column off the band. */
.wheel{
  position:relative;width:100%;height:calc(5 * var(--wheel-row));overflow:hidden;touch-action:none;
  -webkit-user-select:none;user-select:none;-webkit-touch-callout:none;
}
/* The rows' drum: they fade out towards its edges, as the prototype's mask draws them. The mask sits here, not on
   the column, so it never clips the column's focus ring. */
.wheel__drum{position:absolute;inset:0;perspective:600px;
  -webkit-mask-image:linear-gradient(transparent,var(--ink) 30%,var(--ink) 70%,transparent);mask-image:linear-gradient(transparent,var(--ink) 30%,var(--ink) 70%,transparent)}
.wheel:focus-visible{outline:var(--control-focus-outline);outline-offset:-2px}
/* Bare numbers in the data face, tabular; the unit is in the title. The centre
   row is the one at full opacity, the others fade with their distance (app.js). */
.wheel__item{
  position:absolute;left:0;right:0;top:calc(2 * var(--wheel-row));height:var(--wheel-row);visibility:hidden;backface-visibility:hidden;
  display:flex;align-items:center;justify-content:center;
  font-family:var(--font-training-data);font-feature-settings:"tnum";font-variant-numeric:tabular-nums;
  font-size:min(var(--font-size-feature-title),var(--wheel-number-cap));font-weight:var(--weight-semibold);color:var(--color-ink);
}
/* The reps wheel's target range: a quiet tick before the number, not a second band (the orange budget stays on actions). */
.wheel__item.is-target::before{content:"";width:4px;height:4px;border-radius:var(--radius-round);background:var(--color-ink-secondary);margin-right:var(--space-8)}

/* ---- The travelling outline ----
   Drawn by app.js only while an outline is in flight: T1 between the shelf's
   fields, L2 between the ledger's rows. It is a separate element that tolerates
   the scaling `animateIndicator` applies, a 2px inset ring and nothing else, so
   no field's own 2px border is ever animated. The destination keeps its own
   outline for the rest state and sets it aside while the ring is in the air. */
.shelf__ring,.ledgerline__ring{
  position:absolute;z-index:1;pointer-events:none;box-sizing:border-box;box-shadow:var(--elevation-selected-quiet-shadow);
}
.shelf__ring{inset:0;border-radius:var(--radius-control)}
.ledgerline__ring{inset:-2px;border-radius:var(--radius-surface)}
.shelf__field.is-ring-travel .shelf__fieldbtn[aria-pressed="true"],.shelf__field.is-ring-travel .shelf__input{box-shadow:none}
.fcard__ledger .ledgerline{position:relative}
.fcard__ledger .ledgerline--open.is-ring-travel{border-color:transparent}

/* ---- A set lands ----
   Logging a set re-renders the whole card, so the motion is written into the
   markup of that one render (`is-fresh`) rather than driven from a handler:
   the card the lifter sees next is the card that plays it, once. It moves
   transform and opacity only, finishes inside 160ms, and nothing about it
   celebrates. */
.ledgerline.is-fresh{animation:setland-row .16s cubic-bezier(.2,.8,.2,1) both}
@keyframes setland-row{from{opacity:.68;transform:translateY(4px)}to{opacity:1;transform:none}}
.ledger__more.is-fresh{animation:setland-row .16s cubic-bezier(.2,.8,.2,1) both}
@media (prefers-reduced-motion:reduce){.ledgerline.is-fresh,.ledger__more.is-fresh{animation:none}}

/* The mini bar: one bar above the dock while a session is open, on the root tabs other than Today. It is the dock's own
   family (owner, iPhone, 2026-10-31): the dock's glass, edge, rim, blur and lift, the dock's corner, inset like it and
   8 px above it. No ring: the state is in its words, as on the rest tab ("Rest 1:27", "Paused 1:27", "Rest done +0:05"),
   and the progress is one thin light along its top edge. It wraps rather than squeezes: at large text the actions go
   under the words. */
.minibar{
  position:fixed;z-index:28;left:50%;transform:translateX(-50%);
  bottom:calc(var(--nav) + env(safe-area-inset-bottom) + var(--space-8));
  width:min(calc(100% - env(safe-area-inset-left) - env(safe-area-inset-right) - 2*var(--dock-inset)),var(--maxw));
  min-height:58px;box-sizing:border-box;padding:var(--space-8) var(--space-8) var(--space-8) var(--space-16);
  display:flex;flex-wrap:wrap;align-items:center;gap:var(--space-8) var(--space-12);isolation:isolate;
  border:1px solid var(--dock-edge);border-radius:var(--dock-radius);background:var(--minibar-glass);
  backdrop-filter:var(--dock-blur);-webkit-backdrop-filter:var(--dock-blur);box-shadow:var(--minibar-shadow);
  color:var(--color-ink);cursor:pointer;
  /* Secondary words on glass take the glass ink (the almost-solid glass contract). */
  --ink-soft:var(--glass-ink-soft);--color-ink-secondary:var(--glass-ink-soft);
}
/* The dock's lens rim along the top (nav::before); the bar keeps no caustic at its foot, where its second line sits. */
.minibar::before{
  content:"";position:absolute;inset:0;z-index:-1;border-radius:inherit;pointer-events:none;
  background:linear-gradient(180deg,var(--dock-rim) 0,transparent 32%);box-shadow:var(--dock-rim-shadow);opacity:.9;
}
.minibar.hidden{display:none!important}
/* The progress: a hairline of the rest light along the straight part of the top edge, draining towards its middle. */
.minibar__line{position:absolute;top:-1px;left:var(--dock-radius);right:var(--dock-radius);height:2px;border-radius:var(--radius-pill);
  background:var(--rule);pointer-events:none}
/* The rest light's colour, its ends soft, as the shelf's light fades into the edge. */
.minibar__fill{position:absolute;inset:0;border-radius:inherit;transform:scaleX(0);transform-origin:50% 50%;
  background:linear-gradient(90deg,transparent,var(--accent) 14%,var(--accent) 86%,transparent)}
.minibar.is-paused .minibar__fill{background:linear-gradient(90deg,transparent,var(--color-ink-secondary) 14%,var(--color-ink-secondary) 86%,transparent)}
.minibar__text{display:grid;flex:1 1 9em;min-width:0}
.minibar__title{font-family:var(--font-language);font-size:var(--font-size-body-small);font-weight:var(--weight-semibold);line-height:var(--line-standard);overflow-wrap:anywhere}
.minibar__sub{font-family:var(--font-language);font-size:var(--font-size-caption);line-height:var(--line-standard);color:var(--color-ink-secondary);overflow-wrap:anywhere}
.minibar.is-paused .minibar__rest{color:var(--color-ink-secondary)}
.minibar.is-done .minibar__rest{color:var(--accent-deep)}
/* The rest's line stays one line (coordinator review, 2026-10-24): the exercise name, last in both languages, gives way
   with an ellipsis. The text itself is whole, so assistive technology reads all of it. */
.minibar.is-rest .minibar__sub{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.minibar__clock{font-family:var(--font-training-data);font-variant-numeric:tabular-nums}
.minibar__actions{display:flex;flex:none;align-items:center;gap:var(--space-8);margin-left:auto}
/* +30s the quiet pill, Resume the primary one: each a 44 px target with its word centred by flex and a line box the
   height of the word (line-height 1), so no font's metrics can leave it sitting high (Safari did). */
.minibar__chip,.minibar__go{display:inline-flex;align-items:center;justify-content:center;min-width:var(--control-target);min-height:var(--control-target);
  border:0;border-radius:var(--radius-pill);font-family:var(--font-language);font-weight:var(--weight-semibold);line-height:1;white-space:nowrap;cursor:pointer}
.minibar__chip{padding:0 var(--space-12);background:var(--control-track);color:var(--color-ink);font-size:var(--font-size-body-small)}
.minibar__go{padding:0 var(--space-14);background:var(--control-primary-bg);color:var(--control-primary-ink);font-size:var(--font-size-control)}
.minibar__chip[hidden]{display:none}
.minibar__chip:focus-visible,.minibar__go:focus-visible{outline:var(--control-focus-outline);outline-offset:2px}
.today-live__tag.is-rest [data-live="elapsed"]{font-variant-numeric:tabular-nums}
/* Held in the timer sheet: the clock is frozen, so the live dot goes quiet. */


/* @ci-domain global */
/* Hidden legacy gauge (tests may still poke it; UI uses Today readiness) */
.gauge{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}

/* ---- Exercise cards (log) ---- */
.exercise{
  position:relative;background:transparent;border:0;border-bottom:1px solid var(--rule);
  border-radius:0;padding:18px 0;margin-bottom:0;overflow:visible;box-shadow:none;
  --heat:var(--ink-faint);
}
.exercise::before{display:none}
.exercise.is-add,.exercise.is-add2{--heat:var(--accent)}
.exercise.is-hold{--heat:var(--accent)}
.exercise.is-reduce{--heat:var(--ink-soft)}
.exercise.is-new{--heat:var(--ink-faint)}
/* Which slot a swap stands in gets the whole line rather than trailing the
   picker, so a long seed name wraps as a sentence instead of a column. */

/* Effort picker — the Easy / Hard / Max face of RIR. One control in two shapes:
   a compact line under a set row, a stacked band under the current set. Three
   words never fit a column beside the numbers, so it is never asked to. */
/* Until the lifter picks, the highlighted word is Taurifer's guess from the
   last session: it reads as a tint, so a confirmed set never looks the same. */
.rirmode{border:0;padding:0;margin:0 0 14px}
.rirmode legend{font-size:var(--font-size-label);color:var(--ink-soft);margin-bottom:6px;text-transform:uppercase;letter-spacing:.07em;font-weight:600}
.rirmode__opts{display:flex;flex-wrap:wrap;align-items:center;gap:10px 16px}
.rirmode__opt{display:inline-flex;align-items:center;gap:12px;margin:0;font-size:var(--font-size-control);font-weight:500;letter-spacing:normal;text-transform:none;color:var(--ink);cursor:pointer;white-space:nowrap;-webkit-tap-highlight-color:transparent}
.rirmode__opt input{width:auto;flex:none;margin:0 -11px}

.heat{display:none} /* heat strip removed; recommendation block carries the signal */
.chip{
  display:inline-flex;align-items:center;gap:6px;font-weight:600;
  text-transform:uppercase;letter-spacing:var(--track-label);font-size:var(--font-size-label);color:var(--accent-deep);white-space:nowrap;
}
.rec{font-size:var(--font-size-body-small);line-height:1.45;color:var(--ink-soft);margin:0 0 12px}
.rec b{color:var(--ink);font-weight:600}





/* Effort mode drops the RIR column; the picker spans a second line, and the
   header's caption for it spans the same one so the two stay in step. */
/* One exercise, one worded action. Three stacked SAVEs shouted the same verb
   down the column and made a log read like a form, so only the set actually
   being worked keeps the word: the sets waiting behind it hold the same button
   at the same size, drawn as the check they are about to become. */
/* The save column is content-sized, so the committed ✓ overlays the label
   rather than replacing it — a narrower button would drag the row's inputs
   out of line with the rows above it and with the header. */
.saveset{border:1px solid transparent;
  text-transform:uppercase;letter-spacing:.05em;font-size:var(--font-size-label);font-weight:var(--weight-semibold);
  padding:0 8px;min-width:46px}
.saveset{position:relative;flex:none;border-color:var(--rule);background:var(--surface);color:var(--ink-soft);
  border-radius:var(--radius-control);cursor:pointer;min-height:46px;line-height:1}
@media (hover: hover) and (pointer: fine){
.saveset:hover{color:var(--ink);border-color:var(--ink-soft)}
}
/* Drawn, not typed, for the same reason as --arrow: U+2713 is outside the
 * Plex Sans subset, so a "✓" here fell back to a platform symbol font and
 * came out at a different weight on Android than on iOS. */
/* Header mirror of the save button: hidden, but it holds the column open so
   the KG / REPS / RIR labels stay centred over their inputs. */

.kg{display:flex;align-items:stretch;min-width:0;background:var(--surface);border:1px solid var(--rule);
  border-radius:var(--radius-control);overflow:hidden}
.kg:focus-within{border-color:var(--accent);box-shadow:var(--control-focus-halo-shadow)}
.kg input{width:auto;flex:1;min-width:0;margin-top:0;padding-left:0;padding-right:0;
  border:0;background:transparent;border-radius:0;min-height:44px}
.kg input:focus{box-shadow:none;border-color:transparent}
/* The −/+ glyph is not text to be selected: the second tap of a burst would
   otherwise raise a selection and iOS's magnifier over the control. */
.stepbtn{flex:none;width:var(--control-target);min-width:var(--control-target);min-height:var(--control-target);border:1px solid var(--control-adjustment-boundary);border-radius:var(--radius-control);
  background:var(--control-adjustment-bg);color:var(--control-adjustment-ink);cursor:pointer;font-family:var(--font-language);font-size:var(--control-icon-size);line-height:1;padding:0;
  -webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
@media (hover: hover) and (pointer: fine){
.stepbtn:hover:not(:disabled){background:var(--well);color:var(--control-adjustment-ink);border-color:var(--control-adjustment-boundary)}
}
.stepbtn.is-pressed:not(:disabled){background:var(--row-pressed-bg);color:var(--control-adjustment-ink);border-color:var(--control-adjustment-boundary);transform:var(--control-pressed-transform)}
.stepbtn:focus-visible{outline:var(--control-focus-outline);outline-offset:2px}
.stepbtn:disabled{background:var(--control-adjustment-bg);color:var(--color-disabled-reason);border-color:var(--boundary-decorative);opacity:1;cursor:not-allowed;transform:none}


/* ---- Effort explainer ----
   The reps-left shorthand is an answer to a question, not a permanent caption,
   so it floats: the anchor is a zero-height strip the width of the effort
   column, parked over it — clear of the column label, which the lifter still
   needs to read. The pill and its arrow are centred on the word and scale out
   of it, so it grows from the value it explains rather than fading in over it.
   Dark, like the toast: the pill crosses the well's edge onto the ledger. */
.effortpop{
  position:absolute;left:0;right:0;bottom:calc(100% + 4px);height:0;z-index:9;
  opacity:0;pointer-events:none;
  transform:translateY(10px) scale(.7);transform-origin:50% 100%;
}
.effortpop__hint{
  position:absolute;bottom:8px;left:50%;z-index:2;transform:translateX(-50%);
  width:max-content;max-width:min(190px,54vw);box-sizing:border-box;
  padding:7px 12px;border-radius:var(--radius-surface);
  background:var(--cta);color:var(--cta-ink);
  font-size:var(--font-size-body-small);font-weight:600;line-height:1.15;text-align:center;
  box-shadow:var(--elevation-tooltip-shadow);
}
/* A rotated square: the half above the pill's edge hides behind it. */
.effortpop__arrow{
  position:absolute;bottom:3px;left:50%;z-index:1;width:10px;height:10px;margin-left:-5px;
  background:var(--cta);border-bottom-right-radius:var(--radius-compact);transform:rotate(45deg);
}
/* It reveals on revealIn and leaves on revealOut's ease, as the other things a tap opens do: no overshoot, no blur
   (motion consistency, 2026-11-01; a tap carries no momentum for a spring to spend). */
.effortpop.is-open{opacity:1;pointer-events:auto;transform:none;
  animation:effortpop-in .2s cubic-bezier(.2,.7,.2,1) both}
.effortpop.is-closing{opacity:0;pointer-events:none;
  animation:effortpop-out .17s cubic-bezier(.45,0,.75,.35) both}
@keyframes effortpop-in{
  0%{opacity:0;transform:translateY(6px) scale(.94)}
  100%{opacity:1;transform:translateY(0) scale(1)}
}
@keyframes effortpop-out{
  0%{opacity:1;transform:translateY(0) scale(1)}
  100%{opacity:0;transform:translateY(7px) scale(.88)}
}
/* The arrow follows the pill a beat behind it. */
.effortpop.is-open .effortpop__arrow{animation:effortpop-arrow .2s .04s cubic-bezier(.2,.7,.2,1) both}
@keyframes effortpop-arrow{
  from{opacity:0;transform:rotate(45deg) scale(.5)}
  to{opacity:1;transform:rotate(45deg) scale(1)}
}
/* Stepping the effort under an open pill swaps its reading in place, settling into place as the rest clock's second
   does (restRoll): a short travel and a fade, no growth. */
.effortpop.is-bump .effortpop__hint{animation:effortpop-swap .15s cubic-bezier(.2,.7,.2,1) both}
@keyframes effortpop-swap{
  0%{opacity:0;transform:translateX(-50%) translateY(-4px)}
  100%{opacity:1;transform:translateX(-50%) translateY(0)}
}
@media (prefers-reduced-motion:reduce){
  .effortpop.is-open,.effortpop.is-closing,
  .effortpop.is-open .effortpop__arrow,.effortpop.is-bump .effortpop__hint{animation:none}
}

/* ---- Exercise note sheet ---- */
body.is-sheet-open{overflow:hidden}
.sheet-scrim{
  position:fixed;inset:0;z-index:40;background:var(--scrim);
  opacity:0;transition:opacity .22s ease;
}
.sheet-scrim.is-open{opacity:1}
.sheet{
  position:fixed;left:0;right:0;bottom:var(--kb,0px);z-index:41;
  display:flex;flex-direction:column;
  /* The shared cap tracks the keyboard's band, normalized for browser zoom. */
  height:min(74dvh,660px);max-height:var(--sheet-max-height);
  background:var(--surface);border-radius:var(--radius-prominent) var(--radius-prominent) 0 0;
  box-shadow:var(--elevation-sheet-shadow);
  padding-bottom:env(safe-area-inset-bottom);
  transform:translateY(101%);transition:transform .26s cubic-bezier(.2,.7,.2,1);
}
.sheet.is-open{transform:none}
/* Under the thumb the sheet is placed frame by frame, so it cannot also be
   easing towards a target; the transition comes back on release and carries the
   sheet the rest of the way, down or back to rest. */
.sheet.is-dragging{transition:none;will-change:transform}
.sheet-scrim.is-dragging{transition:none}
/* Detents (ADR 0023, Plan 075 phase 2). A sheet that lists `medium` in
   `data-detents` is at most the large height and rests at medium: moved down
   so 52% of the visible band shows. When its content is shorter than that the
   move is zero and it rests at its content height. The gesture owner in
   motion-layer.js sets `data-detent="large"` when a drag takes it there, and
   opening clears it. Below large its scroller is held, so a drag in the body
   moves the sheet instead of scrolling content that is partly off screen. */
.sheet[data-detents~="medium"]{height:auto;max-height:var(--sheet-max-height)}
.sheet[data-detents~="medium"].is-open:not([data-detent="large"]){transform:translateY(max(0px,calc(100% - var(--vvh,100dvh) * .52)))}
.sheet[data-detents~="medium"]:not([data-detent="large"]) [data-sheet-scroll]{overflow-y:hidden;touch-action:none}
/* Reduced motion: a sheet doesn't travel. It cross-fades in place, opening and
   closing (ADR 0023, audit F-18); a drag still places it under the thumb. The
   fade is the one exception to the global reduced-motion kill below, so it is
   `!important` against it. */
@media (prefers-reduced-motion:reduce){
  .sheet{transform:none;opacity:0;transition:opacity .17s linear!important}
  .sheet.is-open{opacity:1}
  .sheet[data-detents~="medium"]:not([data-detent="large"]){transform:translateY(max(0px,calc(100% - var(--vvh,100dvh) * .52)))}
  .sheet-scrim{transition:opacity .17s linear!important}
  .sheet.is-dragging,.sheet-scrim.is-dragging{transition:none!important}
}
/* The Program editor's grabber shows only while #program is a page sheet. */
:is(#program,[data-copy-id="program"]):not(.sheet) :is(#programEditGrab,[data-copy-id="programEditGrab"]){display:none}
.sheet__grab{display:block;flex:none;width:36px;height:5px;border-radius:var(--radius-compact);background:var(--sheet-grabber);margin:6px auto 0}
/* The handle and the head are the drag rail: the browser must not read a push
   there as a scroll, or it takes the gesture and the sheet never moves. Below
   them the sheet's own scrollers keep their native panning. */
.sheet__grab,.sheet__head,.sheetband{touch-action:none}
.sheet__head{
  flex:none;display:grid;grid-template-columns:minmax(44px,1fr) minmax(0,2fr) minmax(44px,1fr);align-items:center;gap:8px;
  padding:4px 10px 12px;border-bottom:1px solid var(--rule);
}
.sheet__act{
  justify-self:start;min-width:0;width:100%;min-height:44px;padding:10px 8px;border:0;background:none;cursor:pointer;
  color:var(--ink-soft);font-size:var(--font-size-control);white-space:normal;overflow-wrap:anywhere;word-break:break-word;
}
.sheet__titles{text-align:center;min-width:0}
.sheet__title{font-size:var(--font-size-subtitle);font-weight:var(--weight-semibold);overflow-wrap:anywhere;word-break:break-word}
.sheet__body{flex:1;min-height:0;display:flex;padding:16px 16px 0}
/* The plain-text program preview: the export exactly as it will be copied, so
   line breaks are preserved and long exercise names wrap instead of clipping. */
.sheet__pre{
  flex:1;min-width:0;margin:0;padding-bottom:8px;overflow:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;
  white-space:pre-wrap;overflow-wrap:anywhere;font-family:inherit;
  font-size:var(--font-size-control);line-height:1.55;letter-spacing:normal;text-transform:none;color:var(--ink);
  -webkit-user-select:text;user-select:text;
}
.sheet__foot{flex:none;padding:12px 16px 16px;font-size:var(--font-size-body-small);color:var(--ink-faint)}
.sheet__foot--actions{
  display:flex;justify-content:flex-end;gap:8px;border-top:.5px solid var(--bar-edge);
  --material:almost-solid-glass;background:var(--glass-solid-surface);-webkit-backdrop-filter:var(--bar-blur);backdrop-filter:var(--bar-blur)
}
/* Secondary text on the almost-solid glass takes the glass ink (contract: almost-solid glass). */
.libbar,.onb__nav,.entry__pinned,.glossary,.sheet__foot--actions{
  --ink-soft:var(--glass-ink-soft);--color-ink-secondary:var(--glass-ink-soft);--color-disabled-reason:var(--glass-ink-soft)
}
/* Reduced transparency: the almost-solid glass goes solid. */
@media (prefers-reduced-transparency:reduce){
  .libbar,.sheet__foot--actions,.glossary{background:var(--color-surface);-webkit-backdrop-filter:none;backdrop-filter:none}
  .onb__nav,.entry__pinned{background:var(--bg);-webkit-backdrop-filter:none;backdrop-filter:none}
}
/* A head with nothing on the left still needs its first grid cell, or the title
   slides out of the middle. */
.sheet__spacer{display:block;min-width:44px}
.sheet__act--icon{justify-self:end;display:inline-flex;align-items:center;justify-content:center;color:var(--ink-soft)}
.sheet__act--done{justify-self:end;color:var(--ink);font-weight:var(--weight-semibold);white-space:nowrap;width:auto}

/* The in-workout swap control. It was a <select> of the template's alternates;
   it is a button onto the full library now, and it reads back what is actually
   being performed. */

/* ---- Program editor: library affordances ---- */
.pex__swap{flex:none;color:var(--ink-soft)}
/* A slot with no library link is the one worth pointing at: it came from an
   import or predates the picker, and one tap adopts a real movement. */
.pex__swap.is-unlinked{color:var(--accent-deep)}

/* A linked slot states what it follows and offers the way out, rather than
   letting a muscle edit quietly disagree with the id the row carries. */
.pex__linked{margin:10px 0 0;font-size:var(--font-size-caption);color:var(--ink-faint);line-height:1.5}
.pex__detach{
  background:none;border:0;padding:0;font:inherit;font-size:var(--font-size-caption);font-weight:600;
  color:var(--accent-deep);text-decoration:underline;text-underline-offset:2px;cursor:pointer;
}
.pex__mus input[readonly]{color:var(--ink-soft);background:var(--well)}

/* @ci-domain library,program,workout,entry */
/* ---- Library flow ---- */
/* Tabs are a hairline-underlined row, not a segmented pill: the quick sheet and
   the full page use the same control so moving between them reads continuous. */
.picktabs{display:flex;gap:0;border-bottom:1px solid var(--boundary-decorative)}
.picktab{
  flex:1;min-height:var(--control-target);padding:10px 6px;border:0;border-bottom:2px solid transparent;
  background:var(--control-quiet-bg);font-family:var(--font-language);font-size:var(--font-size-body-small);
  font-weight:var(--weight-semibold);line-height:var(--line-standard);color:var(--control-selection-ink);cursor:pointer;
}
@media (hover: hover) and (pointer: fine){
.picktab:hover:not(:disabled){background:var(--well)}
}
.picktab.is-pressed:not(:disabled){background:var(--row-pressed-bg);transform:var(--control-pressed-transform)}
.picktab.is-active{color:var(--control-selection-ink);border-bottom-color:var(--control-selected-boundary)}
@media (hover: hover) and (pointer: fine){
.picktab.is-active:hover:not(:disabled){background:var(--well);border-bottom-color:var(--control-selected-boundary)}
}
.picktab.is-active.is-pressed:not(:disabled){background:var(--row-pressed-bg);border-bottom-color:var(--control-selected-boundary)}
.picktab:focus-visible{outline:var(--control-focus-outline);outline-offset:2px}
.picktab:disabled{color:var(--color-disabled-reason);cursor:not-allowed}
/* Let the tabs reflow when enlarged text narrows their effective container. */
@container (max-width:15em){
  #library #libTabs{flex-wrap:wrap}
  #library #libTabs .picktab{
    flex:1 1 140px;min-width:0;white-space:normal;overflow-wrap:anywhere
  }
}

.libwrap{padding:0 16px var(--libbar-clearance,calc(96px + env(safe-area-inset-bottom)))}
#library #libBack,#exercise #exBack{
  font-family:var(--font-language);font-size:var(--font-size-control);font-weight:var(--weight-medium);line-height:var(--line-standard);color:var(--color-action-text);
}
#library #libBack:focus-visible,#exercise #exBack:focus-visible,#library #libClose:focus-visible{outline:var(--control-focus-outline);outline-offset:2px}
#library #libClose{min-height:var(--control-target);font-family:var(--font-language);font-size:var(--font-size-control);font-weight:var(--weight-medium);line-height:var(--line-standard);color:var(--color-action-text)}
#library #libCustom{min-height:var(--control-target);font-family:var(--font-language);font-size:var(--font-size-control);font-weight:var(--weight-medium);line-height:var(--line-standard);color:var(--color-action-text)}
#library #libCustom:focus-visible{outline:var(--control-focus-outline);outline-offset:2px}
.libstep{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin:12px 0 18px}
.libstep__lab{grid-column:1/-1;margin:0;font-family:var(--font-language);font-size:var(--font-size-label);font-weight:var(--weight-semibold);letter-spacing:.06em;line-height:var(--line-standard);text-transform:uppercase;color:var(--color-ink-secondary)}
.libstep__bar{height:3px;border-radius:var(--radius-compact);background:var(--boundary-required)}
.libstep__bar.is-done{background:var(--color-action)}
#libSearch{margin:0 0 12px}
/* The rails sit a step below the tabs' hairline; their chips draw 4px inside their own 44px targets, so the rows stack
   with no gap and still show 8px between pills. */
#libFilters{display:block;overflow:visible;margin:var(--space-8) 0 0;padding:0}
.pick__filters--row{margin:0 -16px;padding:0 12px}
.picktabs+.pick__filters--row{margin-top:var(--space-8)}
/* The landing's library scene is cropped to a fixed frame: its first rail takes 4px, so the pills still clear the
   hairline by 8px and the list below sits exactly where the scene's crop expects it. */
.firstrun-fx--library .picktabs+.pick__filters--row{margin-top:var(--space-4)}
.pick__list--page{max-height:none;overflow:visible;margin:12px -16px 0;padding:0 16px}

.librow{display:flex;align-items:center;gap:12px;padding:12px 0;border-bottom:1px solid var(--boundary-decorative)}
.librow__preview{flex:none;padding:0;border:0;background:var(--control-quiet-bg);cursor:pointer;border-radius:var(--radius-control)}
.librow__preview:focus-visible{outline:var(--control-focus-outline);outline-offset:2px}
.librow__text{flex:1;min-width:0}
.librow__name{margin:0;font-family:var(--font-language);font-size:var(--font-size-body);font-weight:var(--weight-semibold);line-height:var(--line-standard);color:var(--color-ink)}
.librow__meta{margin:2px 0 0;font-family:var(--font-language);font-size:var(--font-size-caption);line-height:var(--line-standard);color:var(--color-ink-secondary);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.librow__edit{
  margin-top:4px;padding:0;border:0;background:var(--control-quiet-bg);font-family:var(--font-language);font-size:var(--font-size-body-small);font-weight:var(--weight-medium);line-height:var(--line-standard);
  color:var(--color-action-text);text-decoration:underline;text-underline-offset:2px;cursor:pointer;min-height:var(--control-target);
}
.librow__edit:focus-visible{outline:var(--control-focus-outline);outline-offset:2px}
.librow__check{
  flex:none;width:var(--control-target);height:var(--control-target);min-width:var(--control-target);min-height:var(--control-target);padding:0;border:0;background:var(--control-quiet-bg);cursor:pointer;
  display:flex;align-items:center;justify-content:center;
}
.librow__check::before{
  content:"";width:24px;height:24px;border:2px solid var(--control-selection-boundary);border-radius:var(--radius-round);
}
.librow__check.is-on::before{
  border-color:var(--control-selected-boundary);background:var(--control-selected-boundary) no-repeat center/13px 13px;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.6 4.6L19 7.2'/%3E%3C/svg%3E");
}
@media (hover: hover) and (pointer: fine){
.librow__check:hover:not(:disabled):not(.is-on)::before{background:var(--well)}
}
@media (hover: hover) and (pointer: fine){
.librow__check.is-on:hover:not(:disabled)::before{border-color:var(--control-selected-boundary);background-color:var(--control-selected-boundary)}
}
.librow__check.is-pressed:not(:disabled){transform:var(--control-pressed-transform)}
.librow__check:focus-visible{outline:var(--control-focus-outline);outline-offset:2px;border-radius:var(--radius-round)}
.librow__check:disabled{background:var(--control-selection-bg);cursor:not-allowed;transform:none}
.librow__check:disabled::before{border-color:var(--boundary-decorative);background:var(--control-selection-bg)}

/* The action bar is the one place the count and the commit live, pinned so a
   long list never hides how many are selected. */
.libbar{
  position:fixed;left:0;right:0;bottom:0;z-index:30;
  display:flex;flex-direction:column;gap:6px;
  padding:10px 16px calc(12px + env(safe-area-inset-bottom));
  --material:almost-solid-glass;background:var(--glass-solid-surface);-webkit-backdrop-filter:var(--bar-blur);backdrop-filter:var(--bar-blur);
  border-top:.5px solid var(--bar-edge);box-shadow:var(--elevation-persistent-shadow);
}
.libbar.is-hidden{display:none}
.libbar__count{margin:0;font-family:var(--font-language);font-size:var(--font-size-body-small);line-height:var(--line-standard);color:var(--color-ink-secondary)}
.libbar .btn{margin:0}
#libBar #libPrimary,.preview #previewAdd{
  background:var(--control-primary-bg);color:var(--control-primary-ink);border-color:var(--control-primary-boundary);
  border-radius:var(--radius-button);font-family:var(--font-language);font-size:var(--font-size-control);
  font-weight:var(--weight-semibold);line-height:var(--line-standard)
}
#libBar #libPrimary::after,.preview #previewAdd::after{width:var(--control-icon-size);height:var(--control-icon-size);color:var(--control-primary-ink)}
#libBar #libPrimary:focus-visible,.preview #previewAdd:focus-visible{outline:var(--control-focus-outline);outline-offset:2px}
#libBar #libPrimary:disabled,.preview #previewAdd:disabled{
  background:var(--control-primary-disabled-bg);color:var(--control-primary-disabled-ink);
  border-color:var(--boundary-decorative);opacity:1;cursor:not-allowed;transform:none
}
#libBar #libPrimary:disabled::after,.preview #previewAdd:disabled::after{color:var(--color-disabled-reason)}

.libcount{margin:0 0 14px;font-family:var(--font-language);font-size:var(--font-size-body-small);line-height:var(--line-reading);color:var(--color-ink-secondary)}
.libcfg{display:flex;align-items:flex-start;gap:12px;padding:14px 0;border-bottom:1px solid var(--boundary-decorative)}
.libcfg__body{flex:1;min-width:0}
.libcfg__name{margin:0 0 8px;font-family:var(--font-language);font-size:var(--font-size-body);font-weight:var(--weight-semibold);line-height:var(--line-standard);color:var(--color-ink)}
.libcfg__fields{display:flex;gap:8px}
.libcfg__field{flex:1;display:flex;flex-direction:column;gap:4px;font-family:var(--font-language);font-size:var(--font-size-label);font-weight:var(--weight-semibold);line-height:var(--line-standard);color:var(--color-ink-secondary)}
.libcfg__field input{
  width:100%;min-height:var(--control-target);padding:8px;border:1px solid var(--control-field-boundary);border-radius:var(--radius-control);
  background:var(--control-field-bg);font-family:var(--font-training-data);font-size:var(--font-size-control);line-height:var(--line-standard);text-align:center;color:var(--control-field-ink);
}
.libcfg__field input:focus-visible{outline:var(--control-focus-outline);outline-offset:2px}
.libcfg__drop{
  flex:none;width:var(--control-target);height:var(--control-target);display:flex;align-items:center;justify-content:center;
  border:0;background:var(--control-quiet-bg);color:var(--control-quiet-ink);cursor:pointer;
}
.libcfg__drop:focus-visible{outline:var(--control-focus-outline);outline-offset:2px}

/* ---- Exercise preview ---- */
.preview{padding:0 16px calc(28px + var(--nav) + env(safe-area-inset-bottom))}
.preview__eyebrow{margin:16px 0 2px;font-family:var(--font-language);font-size:var(--font-size-label);font-weight:var(--weight-semibold);letter-spacing:var(--track-label);line-height:var(--line-standard);text-transform:uppercase;color:var(--color-ink-secondary)}
.preview__title{margin:0 0 4px;font-family:var(--font-language);font-size:var(--font-size-feature-title);font-weight:var(--weight-semibold);line-height:var(--line-tight);letter-spacing:-.02em;color:var(--color-ink)}
.preview__sub{margin:0 0 16px;font-family:var(--font-language);font-size:var(--font-size-body-small);line-height:var(--line-reading);color:var(--color-ink-secondary)}
.preview__head{margin:22px 0 8px;font-family:var(--font-language);font-size:var(--font-size-label);font-weight:var(--weight-semibold);letter-spacing:var(--track-label);line-height:var(--line-standard);text-transform:uppercase;color:var(--color-ink-secondary)}
.preview__rows{margin:0}
.preview__row{display:flex;justify-content:space-between;gap:16px;padding:12px 0;border-bottom:1px solid var(--boundary-decorative)}
.preview__row dt{font-family:var(--font-language);font-size:var(--font-size-body-small);line-height:var(--line-reading);color:var(--color-ink-secondary)}
.preview__row dd{margin:0;font-family:var(--font-language);font-size:var(--font-size-body-small);font-weight:var(--weight-semibold);line-height:var(--line-reading);text-align:right;color:var(--color-ink)}
.preview__notes{margin:0;font-family:var(--font-language);font-size:var(--font-size-body-small);line-height:var(--line-reading);color:var(--color-ink-secondary)}
.preview .btn--cta{margin-top:26px}

/* @ci-domain entry,program,settings */
/* ---- Import review ---- */
/* A full view rather than a sheet: reviewing a twelve-exercise split is not a
   glance, and nothing is written until Import is pressed. */
.impreview{padding:0 16px calc(28px + var(--nav) + env(safe-area-inset-bottom))}
.impreview__file{margin:14px 0 0;color:var(--color-ink-secondary);font-family:var(--font-language);font-size:var(--font-size-body-small);line-height:var(--line-standard)}
.impreview__head{margin:6px 0 4px;color:var(--color-ink);font-family:var(--font-language);font-size:var(--font-size-title);font-weight:var(--weight-semibold);line-height:var(--line-tight);letter-spacing:-.01em}
.impcounts{display:flex;gap:0;margin:16px 0 6px;border-top:1px solid var(--boundary-decorative);border-bottom:1px solid var(--boundary-decorative)}
/* One tap accepts every Likely top match; each row then keeps its own Change. */
.impreview__useall{width:100%;margin:var(--space-12) 0 var(--space-4)}
.impreview__useall[hidden]{display:none}
.impcount{
  flex:1;display:flex;flex-direction:column;align-items:center;gap:2px;
  padding:12px 4px;color:var(--color-ink-secondary);font-family:var(--font-language);
  font-size:var(--font-size-caption);line-height:var(--line-standard);text-align:center;
}
.impcount+.impcount{border-left:1px solid var(--boundary-decorative)}
.impcount b{color:var(--color-ink);font-family:var(--font-training-data);font-size:var(--font-size-metric);font-weight:var(--weight-semibold);font-variant-numeric:tabular-nums}
.improw{
  display:grid;grid-template-columns:1fr auto auto 1.1fr;align-items:center;gap:8px;
  padding:12px 0;border-bottom:1px solid var(--boundary-decorative);
}
.improw__from{margin:0;color:var(--color-ink);font-family:var(--font-language);font-size:var(--font-size-body-small);line-height:var(--line-reading)}
.improw__arrow{color:var(--color-ink-secondary);font-size:var(--font-size-caption)}
.improw__to{min-width:0}
.improw__name{margin:0;color:var(--color-ink);font-family:var(--font-language);font-size:var(--font-size-body-small);font-weight:var(--weight-semibold);line-height:var(--line-reading);overflow-wrap:anywhere}
.impbadge{display:inline-block;margin-top:4px;color:var(--color-ink-secondary);font-family:var(--font-language);font-size:var(--font-size-label);font-weight:var(--weight-semibold);line-height:var(--line-standard)}
.impbadge.is-done{color:var(--color-ink-secondary)}
.impbadge.is-open{color:var(--color-action-text)}
/* The actions belong to the row above them and wrap under it on a narrow
   screen rather than squeezing the two names into nothing. */
.improw__acts{grid-column:1/-1;display:flex;flex-wrap:wrap;gap:8px;margin-top:6px}
.improw__btn{
  min-height:var(--control-target);min-width:0;padding:8px 12px;
  border:1px solid var(--control-selection-boundary);border-radius:var(--radius-control);
  background:var(--control-selection-bg);color:var(--control-selection-ink);
  font-family:var(--font-language);font-size:var(--font-size-control);
  font-weight:var(--weight-medium);line-height:var(--line-standard);cursor:pointer;
}
/* A settled row carries one quiet chip instead of three alternatives, so the
   screen you read before replacing a program is the list, not the controls. */
.improw.is-folded{padding:10px 0}
.improw.is-open{background:transparent}
.impreview__safe{margin:20px 0 12px;text-align:center;color:var(--color-ink-secondary);font-family:var(--font-language);font-size:var(--font-size-body-small);line-height:var(--line-reading)}
#importCommit[disabled]{background:var(--control-primary-disabled-bg);color:var(--control-primary-disabled-ink);border-color:var(--boundary-decorative);opacity:1;cursor:not-allowed;transform:none}

/* @ci-domain global */
/* ---- Exercise picker sheet ---- */
/* Search and filters sit outside .sheet__body so the list is the only thing
   that scrolls: a lifter refining a search should never have to scroll back up
   to reach the box they are typing in. */
.pick__tools{flex:none;padding:10px 16px 0;display:flex;flex-direction:column;gap:10px}
.pick__search{
  width:100%;min-height:var(--control-target);padding:11px 14px;border:1px solid var(--control-field-boundary);border-radius:var(--radius-control);
  background:var(--control-field-bg);color:var(--control-field-ink);font-family:var(--font-language);font-size:var(--font-size-control);line-height:var(--line-standard);
}
.pick__search:focus-visible{outline:var(--control-focus-outline);outline-offset:2px}
.pick__search::-webkit-search-cancel-button{-webkit-appearance:none;appearance:none}
/* The filter row scrolls sideways rather than wrapping to three lines and
   eating the list it is meant to narrow. */
/* Chips abut: each one draws its pill 4px inside a full 44px target (.pchip below), so the pills stand 8px apart with no
   dead strip between targets. The rail's padding is the gutter less that 4px, so the first pill lines up with the
   content edge; a chip scrolled under either edge fades out over 16px instead of being cut. */
.pick__filters{
  display:flex;gap:0;overflow-x:auto;scrollbar-width:none;
  margin:0 -16px;padding:0 12px;overscroll-behavior:contain;
  -webkit-mask-image:linear-gradient(90deg,transparent,var(--color-ink) var(--space-16),var(--color-ink) calc(100% - var(--space-16)),transparent);
  mask-image:linear-gradient(90deg,transparent,var(--color-ink) var(--space-16),var(--color-ink) calc(100% - var(--space-16)),transparent)}
.pick__filters::-webkit-scrollbar{display:none}
/* The swap sheet's optional reason: chips at the head of the scrolling list, none chosen by default. */
.pick__reasons{display:flex;flex-direction:column;gap:var(--space-8);padding:var(--space-4) 0 var(--space-12)}
.pick__reasons-label{margin:0;font-family:var(--font-language);font-size:var(--font-size-caption);line-height:var(--line-standard);color:var(--color-ink-secondary)}
.pick__reasons-chips{display:flex;flex-wrap:wrap}
/* The reason, asked after the pick (refinement audit A4): the sheet sheds its search, filters and actions and holds one
   short question under what it just did. */
.sheet--pick.is-reason-step .pick__tools,.sheet--pick.is-reason-step .sheet__foot{display:none}
.sheet--pick.is-reason-step{height:auto;padding-top:0}
.pick__followup{display:flex;flex-direction:column;gap:var(--space-8);padding:var(--space-8) 0 var(--space-16)}
.pick__followup-done{margin:0;font-family:var(--font-language);font-size:var(--font-size-body);font-weight:var(--weight-semibold);line-height:var(--line-standard);color:var(--color-ink)}
.pick__skip{align-self:flex-start;min-height:var(--control-target);padding:0;color:var(--control-quiet-ink);font-size:var(--font-size-body-small)}
/* A filter chip is a full 44px target with its pill drawn 4px inside it, so neighbouring pills keep 8px between them
   while their targets touch. The label is centred by the flex box at line-height 1, not by padding around a line box:
   Plex's ascent and descent differ between platforms, and padding around a 1.4 line box put the label off centre on
   iOS. State paints the pill through the --pchip-* properties. */
.pchip{
  --pchip-bg:var(--control-selection-bg);--pchip-boundary:var(--control-selection-boundary);--pchip-shadow:none;
  position:relative;isolation:isolate;flex:none;display:inline-flex;align-items:center;justify-content:center;
  min-height:var(--control-target);padding:var(--space-12) calc(var(--space-4) + var(--space-12));border:0;border-radius:var(--radius-pill);
  background:none;color:var(--control-selection-ink);font-family:var(--font-language);font-size:var(--font-size-control);font-weight:var(--weight-semibold);line-height:1;
  cursor:pointer;white-space:nowrap;
}
.pchip::before{
  content:"";position:absolute;inset:var(--space-4);z-index:-1;border:1px solid var(--pchip-boundary);border-radius:var(--radius-pill);
  background:var(--pchip-bg);box-shadow:var(--pchip-shadow);
}
@media (hover: hover) and (pointer: fine){
.pchip:hover:not(:disabled){--pchip-bg:var(--well);--pchip-boundary:var(--control-selection-boundary);color:var(--control-selection-ink)}
}
.pchip.is-pressed:not(:disabled){--pchip-bg:var(--row-pressed-bg);--pchip-boundary:var(--control-selection-boundary);color:var(--control-selection-ink);transform:var(--control-pressed-transform)}
.pchip:focus-visible{outline:var(--control-focus-outline);outline-offset:-2px}
.pchip.is-active{--pchip-bg:var(--control-selection-active-bg);--pchip-boundary:var(--control-selected-boundary);--pchip-shadow:var(--elevation-selected-shadow);color:var(--control-selection-ink)}
@media (hover: hover) and (pointer: fine){
.pchip.is-active:hover:not(:disabled){--pchip-bg:var(--control-selection-active-bg);--pchip-boundary:var(--control-selected-boundary);color:var(--control-selection-ink)}
}
.pchip.is-active.is-pressed:not(:disabled){--pchip-bg:var(--control-selection-active-bg);--pchip-boundary:var(--control-selected-boundary);color:var(--control-selection-ink)}
/* Wrapping chip groups line their pills up on the content edge: the pill is inset 4px only above and below, so rows
   that touch still show 8px between pills, and the 8px column gap does the same across a row. */
:is(.custom__form .pick__filters,.pick__reasons-chips,.session-abandon__reasons){gap:0 var(--space-8)}
:is(.custom__form .pick__filters,.pick__reasons-chips,.session-abandon__reasons) .pchip{padding-inline:var(--space-12)}
:is(.custom__form .pick__filters,.pick__reasons-chips,.session-abandon__reasons) .pchip::before{inset:var(--space-4) 0}
.pchip:disabled{--pchip-bg:var(--control-selection-bg);--pchip-boundary:var(--boundary-decorative);--pchip-shadow:none;color:var(--color-disabled-reason);opacity:1;cursor:not-allowed;transform:none}
/* Artwork tiles. The empty variant is the same box with nothing in it — no
   glyph, no initials, no shimmer — so illustrated and plain rows line up and a
   missing illustration never looks like a failure. */
.exthumb{
  flex:none;display:block;border-radius:var(--radius-control);background:var(--well);
  border:0;object-fit:cover;
}
.exthumb--sm{width:52px;height:52px}
.exthumb--md{width:72px;height:72px}
.exthumb--lg{width:100%;height:auto;aspect-ratio:1;border-radius:var(--radius-surface)}
.exthumb--lg.is-animation{width:min(100%,270px);margin-inline:auto}
.exthumb--empty{display:grid;place-items:center;background:var(--well);color:var(--ink-faint)}

/* Browsing a library is not a confirmation prompt: the picker takes the whole
   visible viewport instead of the default 74dvh band, so search, filters and
   footer can all stay put and the list still has rows to show. --vvh is the
   band the software keyboard leaves visible, so a full-height picker with the
   keyboard up is still a picker rather than a header with two rows under it.
   Safe-area padding at the top because a sheet this tall reaches the status
   bar once the app is installed and running standalone. */
.sheet--pick{
  height:var(--vvh,100dvh);max-height:var(--vvh,100dvh);
  padding-top:env(safe-area-inset-top);
}
.pick__body{padding-top:10px;flex-direction:column;overflow:hidden}
.pick__list{flex:1;min-height:0;overflow-y:auto;-webkit-overflow-scrolling:touch;margin:0 -16px;padding:0 16px;overscroll-behavior:contain;}
.pick__section{
  position:sticky;top:0;z-index:1;background:var(--color-surface);
  padding:10px 0 6px;font-family:var(--font-language);font-size:var(--font-size-label);font-weight:var(--weight-semibold);letter-spacing:.04em;
  line-height:var(--line-standard);text-transform:uppercase;color:var(--color-ink-secondary);
}
.pick__empty{padding:28px 4px;text-align:center;color:var(--color-ink-secondary);font-family:var(--font-language);font-size:var(--font-size-body-small);line-height:var(--line-reading)}
/* Opaque, or the row the list is scrolled to shows through behind the button. */

.pickrow{
  display:flex;align-items:center;gap:10px;width:100%;
  padding:11px 2px;border:0;border-bottom:1px solid var(--control-selection-boundary);
  background:var(--control-selection-bg);font-family:var(--font-language);font-size:var(--font-size-body-small);line-height:var(--line-reading);color:var(--control-selection-ink);text-align:left;cursor:pointer;
}
@media (hover: hover) and (pointer: fine){
.pickrow:hover:not(:disabled){background:var(--well);border-bottom-color:var(--control-selection-boundary)}
}
.pickrow.is-pressed:not(:disabled){background:var(--row-pressed-bg);transform:var(--control-pressed-transform)}
.pickrow:focus-visible{outline:var(--control-focus-outline);outline-offset:2px}
.pickrow.is-selected{background:var(--control-selection-active-bg)}
@media (hover: hover) and (pointer: fine){
.pickrow.is-selected:hover:not(:disabled){background:var(--control-selection-active-bg)}
}
.pickrow.is-selected.is-pressed:not(:disabled){background:var(--control-selection-active-bg)}
.pickrow:disabled{background:var(--control-selection-bg);color:var(--color-disabled-reason);opacity:1;cursor:not-allowed;transform:none}
.pickrow__main{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.pickrow__name{font-family:var(--font-language);font-size:var(--font-size-body);font-weight:var(--weight-semibold);line-height:var(--line-standard);color:var(--color-ink)}
.pickrow__meta{font-family:var(--font-language);font-size:var(--font-size-caption);line-height:var(--line-standard);color:var(--color-ink-secondary);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pickrow__eq{
  flex:none;padding:3px 8px;border-radius:var(--radius-pill);background:var(--well);
  border:1px solid var(--boundary-decorative);font-family:var(--font-language);font-size:var(--font-size-label);font-weight:var(--weight-semibold);line-height:var(--line-standard);color:var(--color-ink-secondary);
}
/* The tick only takes space once a row can be selected, so single-pick lists
   are not padded for a control they never show. */
.pickrow__tick{flex:none;width:0;transition:width .12s ease}
.pickrow[role="checkbox"] .pickrow__tick{
  width:20px;height:20px;border:2px solid var(--control-selection-boundary);border-radius:var(--radius-compact);
}
/* Crossed gradients read as an X, not a tick — draw the checkmark. */
.pickrow[role="checkbox"].is-selected .pickrow__tick{
  background-color:var(--control-selected-boundary);border-color:var(--control-selected-boundary);
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.6 4.6L19 7.2'/%3E%3C/svg%3E");
  background-size:13px 13px;background-position:center;background-repeat:no-repeat;
}

/* ---- Custom exercise sheet ---- */
.custom__form{width:100%;overflow-y:auto;-webkit-overflow-scrolling:touch;padding-bottom:16px;overscroll-behavior:contain;}
.custom__error{margin:var(--space-4) 0 0;font-size:var(--font-size-body-small);line-height:1.4;color:var(--color-destructive)}
.custom__lab{margin:16px 0 8px;font-size:var(--font-size-caption);font-weight:600;color:var(--ink-soft)}
/* Tagging muscles means reading all nineteen, not swiping a rail to find
   Calves. The form scrolls vertically, so these wrap instead. */
.custom__form .pick__filters{flex-wrap:wrap;overflow:visible;margin:0;padding:0;-webkit-mask-image:none;mask-image:none}
.custom__delete{margin-top:22px;width:100%;color:var(--danger)}
.custom__note{margin-top:16px;font-size:var(--font-size-body-small);color:var(--ink-faint)}
.custom__recovery{border-top:1px solid var(--rule);padding:16px 18px 8px}
.custom__recovery p{margin:0 0 12px;color:var(--ink-soft);font-size:var(--font-size-body-small);line-height:1.45}
.custom__recovery-actions{display:flex;gap:8px;flex-wrap:wrap}

/* ---- Choose-another-day sheet ---- */
/* One row per day of the split, so the sheet is as tall as the program is long
   and only scrolls when a long split outgrows the screen. Arming a day is not
   starting it — switching days can discard a session in progress — so the rows
   read as a set of choices and the CTA below them is what commits one. */
.sheet--daypick{height:auto}
/* Plan 070: the review editor's one sheet (exercise, day actions, rename). */
/* height:auto, like .sheet--pick/.sheet--session: the day-actions menu and the
   rename field are a few rows, not the exercise sheet's full height. */
.sheet--review{height:auto;max-height:min(88dvh,760px)}
/* The onboarding view is itself a fixed, z-index:50 layer (it sits above the
   app chrome), above the shared sheet/scrim z-index of 41/40. Without this the
   review sheet opens underneath the screen it belongs to. .review-toast
   already clears 50 (52) for the same reason; match that here. */
#reviewSheetScrim{z-index:53}
#reviewSheet{z-index:54}
.review-sheet__body{flex-direction:column;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding:0 16px 16px}
.review-sheet__foot{border-top:1px solid var(--rule)}
.review-sheet__foot:empty{display:none}
.review-sheet__foot .btn{width:100%}
/* The sheet's own content: the exercise head, the set ledger, the sets/range/
   rest controls, the swap list, alternates and move-to-day. .sheetgroup__head
   is the shared section heading the exercise-actions sheet already uses. */
.review-sheet__head{display:flex;gap:var(--space-14);align-items:flex-start;padding-bottom:var(--space-4)}
.review-sheet__head>div{flex:1;min-width:0;display:flex;flex-direction:column;gap:var(--space-8)}
.review-sheet__head .exthumb--lg{width:88px;flex:none}
.review-sheet__role{margin:0;font-family:var(--font-training-data);font-size:var(--font-size-label);font-weight:var(--weight-medium);letter-spacing:.06em;text-transform:uppercase;color:var(--color-ink-secondary)}
.review-sheet__sec{padding:var(--space-14) 0;border-top:1px solid var(--boundary-decorative)}
.review-sheet__sec .btn--destructive{width:100%}
.review-sheet__ledger{margin:var(--space-8) 0 var(--space-12)}
.review-sheet__lh,.review-sheet__lr{display:grid;grid-template-columns:minmax(44px,max-content) 1fr auto;align-items:center;gap:var(--space-8);padding:var(--space-8) 0;border-bottom:1px solid var(--boundary-decorative);min-width:0}
.review-sheet__lh{font-family:var(--font-training-data);font-size:var(--font-size-label);font-weight:var(--weight-medium);letter-spacing:.06em;text-transform:uppercase;color:var(--color-ink-secondary)}
.review-sheet__lh span:last-child{text-align:right}
.review-sheet__lr>span:nth-child(2){overflow-wrap:anywhere;font-family:var(--font-training-data);font-size:var(--font-size-body-small);color:var(--color-ink)}
.review-sheet__ctl{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:var(--space-12);padding:var(--space-12) 0}
.review-sheet__ctl--col{flex-direction:column;align-items:stretch}
.review-sheet__ctl>.review-step,.review-sheet__ctl>.review-sheet__range{flex:none}
.review-sheet__lab{flex:1 1 auto;font-family:var(--font-language);font-size:var(--font-size-body);font-weight:var(--weight-medium);color:var(--color-ink)}
.review-sheet__range{display:inline-flex;align-items:center;gap:var(--space-8)}
.review-sheet__range>span[aria-hidden]{color:var(--color-ink-secondary)}
/* The rep range (#520): the two endpoints are one segmented choice (the chosen one wears the thumb, and says so to
   assistive technology), and one shared − + beside it adjusts that endpoint. */
.review-range__ends{display:inline-flex;flex-wrap:nowrap;align-items:center}
.review-range__ends .review-seg__opt{flex:0 0 auto;min-width:var(--control-target);padding:var(--space-8) var(--space-12);font-family:var(--font-training-data);font-variant-numeric:tabular-nums}
.review-range__dash{padding:0 var(--space-4);color:var(--color-ink-secondary)}
/* The native stepper (UI kit S6, #485's `.native-stepper`): the value, then a 36px − + capsule on the soft track with a
   .5px divider, each button a 44px touch box. The value is drawn first (order) so the markup keeps its − value + order. */
.review-step{display:inline-flex;align-items:center;gap:0;border:0;border-radius:var(--radius-none);background:transparent;overflow:visible}
.review-step b{order:-1;min-width:40px;padding:0 var(--space-12) 0 0;text-align:right;font-family:var(--font-training-data);font-weight:var(--weight-regular);font-size:var(--font-size-control);color:var(--color-ink)}
/* A value said in words ("Varies by set") rather than a number. */
.review-step b.review-step__words{font-family:var(--font-language);font-size:var(--font-size-body-small);color:var(--color-ink-secondary);white-space:nowrap}
/* The value a refused commit points at (not its minus button). */
.review-step b[aria-invalid="true"]{padding:var(--space-4) var(--space-8);text-align:center;margin-right:var(--space-4);border:2px solid var(--control-error-boundary);outline:none;border-radius:var(--radius-compact)}
.review-step button{
  position:relative;flex:none;display:grid;place-items:center;width:47px;min-width:47px;height:36px;min-height:36px;padding:0;border:0;
  background:var(--control-track);color:var(--ink);font-family:var(--font-language);font-size:var(--control-icon-size);line-height:1;cursor:pointer
}
.review-step button::after{content:"";position:absolute;inset:-4px 0}
.review-step button:first-of-type{border-radius:var(--radius-control) var(--radius-none) var(--radius-none) var(--radius-control)}
.review-step button:last-of-type{border-radius:var(--radius-none) var(--radius-control) var(--radius-control) var(--radius-none);border-left:.5px solid var(--rule-strong)}
@media (hover:hover) and (pointer:fine){.review-step button:hover:not(:disabled){background-image:linear-gradient(var(--row-pressed-bg),var(--row-pressed-bg))}}
.review-step button.is-pressed:not(:disabled){background-image:linear-gradient(var(--row-pressed-bg),var(--row-pressed-bg))}
.review-step button:focus-visible{outline:var(--control-focus-outline);outline-offset:-2px}
.review-step button:disabled{color:var(--color-disabled-reason);cursor:not-allowed}
.review-step--sm button{width:var(--control-target);min-width:var(--control-target)}
.review-step--sm b{min-width:22px;padding-right:var(--space-8);font-size:var(--font-size-body-small)}
/* The rest-preset segmented control: the native segmented recipe (UI kit S5), a raised thumb and a semibold label. */
.review-seg{display:flex;flex-wrap:wrap;gap:0;padding:2px;background:var(--control-track);border-radius:var(--radius-control)}
.review-seg__opt{flex:1 0 auto;white-space:nowrap;min-height:var(--control-target);padding:var(--space-8) var(--space-4);border:0;border-radius:var(--radius-control);background:none;font-family:var(--font-training-data);font-size:var(--font-size-body-small);font-weight:var(--weight-medium);color:var(--color-ink);cursor:pointer;text-align:center}
.review-seg__opt.is-on{background:var(--segment-thumb-bg);color:var(--color-ink);font-weight:var(--weight-semibold);box-shadow:var(--segment-thumb-shadow)}
.review-seg__opt.is-pressed:not(.is-on){background:var(--row-pressed-bg)}
.review-seg__opt:focus-visible{outline:var(--control-focus-outline);outline-offset:2px}
.review-sheet__time{margin:var(--space-12) 0 0;font-family:var(--font-training-data);font-size:var(--font-size-body-small);font-weight:var(--weight-medium);color:var(--color-ink)}
.review-sheet__note{margin:var(--space-8) 0 0;font-family:var(--font-language);font-size:var(--font-size-body-small);line-height:var(--line-reading);color:var(--color-ink-secondary)}
.review-sheet__lede{margin:0 0 var(--space-8);font-family:var(--font-language);font-size:var(--font-size-body-small);line-height:var(--line-reading);color:var(--color-ink-secondary)}
.review-sheet__list{list-style:none;margin:0;padding:0;border-top:1px solid var(--boundary-decorative)}
.review-sheet__list li{display:flex;align-items:center;gap:var(--space-12);padding:var(--space-8) 0;border-bottom:1px solid var(--boundary-decorative)}
.review-sheet__list li span{flex:1;min-width:0;font-family:var(--font-language);font-size:var(--font-size-body-small);line-height:var(--line-standard);color:var(--color-ink);overflow-wrap:anywhere}
.review-sheet__links{display:flex;flex-wrap:wrap;align-items:center;gap:var(--space-18);margin-top:var(--space-4)}
.review-sheet__links .text-link{display:inline-flex;align-items:center;gap:var(--space-8);min-height:var(--control-target);padding:0}
.review-sheet__alts{list-style:none;margin:var(--space-8) 0 0;padding:0;border-top:1px solid var(--boundary-decorative)}
.review-sheet__alts li{display:flex;align-items:center;gap:var(--space-8);padding:var(--space-8) 0;border-bottom:1px solid var(--boundary-decorative)}
.review-sheet__alt-name{flex:1;min-width:0;font-family:var(--font-language);font-size:var(--font-size-body-small);line-height:var(--line-standard);color:var(--color-ink);overflow-wrap:anywhere}
.review-sheet__chips{display:flex;flex-wrap:wrap;gap:var(--space-8);margin-top:var(--space-8)}
.review-chipbtn{display:inline-flex;align-items:center;gap:var(--space-8);min-height:var(--control-target);padding:var(--space-8) var(--space-14);border:1px solid var(--control-adjustment-boundary);border-radius:var(--radius-pill);background:var(--control-adjustment-bg);color:var(--control-adjustment-ink);font-family:var(--font-language);font-size:var(--font-size-body-small);cursor:pointer}
.review-chipbtn .icon-mask{flex:none;color:var(--color-ink-secondary)}
@media (hover:hover) and (pointer:fine){.review-chipbtn:hover{background:var(--well);border-color:var(--control-selection-boundary)}}
.review-chipbtn.is-pressed{background:var(--row-pressed-bg);transform:var(--control-pressed-transform)}
.review-chipbtn:focus-visible{outline:var(--control-focus-outline);outline-offset:2px}
.review-sheet__sub{margin:var(--space-12) 0 0;font-family:var(--font-language);font-size:var(--font-size-body-small);color:var(--color-ink-secondary)}
.review-sheet__empty{margin:var(--space-8) 0 0;font-family:var(--font-language);font-size:var(--font-size-body-small);line-height:var(--line-reading);color:var(--color-ink-secondary)}
.review-sheet__menu{display:flex;flex-direction:column;border-top:1px solid var(--rule-on-surface)}
.review-sheet__field{margin-top:0}
/* An undoable change's notice sits above the pinned Activate. */
.review-toast{
  position:fixed;left:50%;transform:translateX(-50%);z-index:52;
  bottom:calc(var(--entry-pinned-clearance,104px) + env(safe-area-inset-bottom));
  width:min(92%,420px);display:flex;align-items:center;gap:var(--space-12,12px);
  background:var(--toast-bg);color:var(--toast-ink);border-radius:var(--radius-button);
  padding:6px 6px 6px 20px;font-size:var(--font-size-body-small);box-shadow:var(--elevation-floating-shadow);
  animation:toastin .3s cubic-bezier(.2,.7,.2,1)
}
.review-toast__text{flex:1;min-width:0;overflow-wrap:anywhere}
.review-toast__undo{flex:none;min-height:var(--control-target);padding:0 16px;border:0;border-radius:var(--radius-button);background:rgba(var(--bg-rgb),.14);color:inherit;font:inherit;font-weight:var(--weight-semibold);cursor:pointer}
@media (prefers-reduced-motion:reduce){.review-toast{animation:none}}
/* The day-changed toast (Plan 075 phase 2) reuses .review-toast's shape on
   Today, so it clears the dock and the floating Start/Continue exactly where
   the plain #toast already does, instead of the onboarding review's pinned
   Activate clearance. */
.daychange-toast,.trim-toast{bottom:calc(var(--nav) + 22px + env(safe-area-inset-bottom));z-index:50}
/* Focus sheets keep their modal hierarchy while using the shared type and depth roles.
   The Session, exercise-actions and note sheets wear the shared .sheetband (Plan 064 R3d),
   and so does the Why sheet (R3g); the rest sheet keeps its own head until its slice lands. */
#sessionSheet,#exActionsSheet,#exNoteSheet,#restSheet,#whySheet,#historyDiscardSheet,#draftDiscardSheet,#reviewSheet{
  background:var(--color-surface);border-radius:var(--radius-prominent) var(--radius-prominent) 0 0;
  box-shadow:var(--elevation-modal-shadow);
}
#restSheet .sheet__title{
  font-family:var(--font-language);font-size:var(--font-size-section-title);font-weight:var(--weight-semibold);line-height:var(--line-tight);color:var(--color-ink);
}
#restSheet .sheet__grab,#whySheet .sheet__grab{
  background:var(--boundary-floating);border-radius:var(--radius-compact);
}
#restSheet .sheet__head{
  border-bottom-color:var(--boundary-decorative);
}
.daypick__body{flex-direction:column;overflow:hidden;padding:0 16px}
.daypick__list{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;margin:0 -16px;padding:0 16px}
.daypick__row{
  display:flex;align-items:center;gap:var(--space-12);width:100%;min-height:56px;padding:var(--space-8) 0;
  background:var(--control-selection-bg);border:0;border-bottom:1px solid var(--boundary-decorative);border-radius:var(--radius-none);
  cursor:pointer;text-align:left;font-family:var(--font-language);font-size:var(--font-size-body);line-height:var(--line-standard);color:var(--control-selection-ink);
}
.daypick__row:last-child{border-bottom:0}
@media (hover: hover) and (pointer: fine){
.daypick__row:hover:not(:disabled){background:var(--row-pressed-bg);color:var(--control-selection-ink)}
}
.daypick__row.is-pressed:not(:disabled){background:var(--row-pressed-bg);color:var(--control-selection-ink);transform:var(--control-pressed-transform)}
.daypick__row:focus-visible{outline:var(--control-focus-outline);outline-offset:2px}
/* As in the prototype the armed day takes a trailing check, and its number the full ink (contract: state cues). */
.daypick__check{flex:none;width:22px;height:22px;color:var(--color-ink);opacity:0;scale:.6;transition:opacity .12s linear,scale .3s var(--ease-press-release)}
.daypick__row.is-selected .daypick__check{opacity:1;scale:1}
.daypick__row.is-selected .daypick__n{color:var(--color-ink)}
@media (prefers-reduced-motion:reduce){.daypick__check{transition:none}}
.daypick__row:disabled{background:var(--control-selection-bg);color:var(--color-disabled-reason);opacity:1;cursor:not-allowed;transform:none}
.daypick__n{flex:none;min-width:18px;text-align:center;font-family:var(--font-training-data);font-size:var(--font-size-body-small);font-weight:var(--weight-semibold);line-height:var(--line-standard);color:var(--color-ink-secondary);font-variant-numeric:tabular-nums}
.daypick__main{min-width:0;flex:1}
.daypick__line{display:flex;align-items:baseline;gap:var(--space-8)}
.daypick__title{flex:1;min-width:0;font-family:var(--font-language);font-size:var(--font-size-body);font-weight:var(--weight-semibold);line-height:var(--line-standard);color:var(--color-ink);overflow-wrap:anywhere}
.daypick__sub{display:block;margin-top:2px;font-family:var(--font-language);font-size:var(--font-size-body-small);line-height:var(--line-standard);color:var(--color-ink-secondary);overflow-wrap:anywhere}
/* The day Today is already on, marked wherever it sits in the split. */
.daypick__chip{flex:none;font-family:var(--font-language);font-size:var(--font-size-body-small);font-weight:var(--weight-regular);line-height:var(--line-standard);color:var(--color-ink-secondary)}
.sheet__foot--stack{display:flex;flex-direction:column;gap:2px;border-top:1px solid var(--rule)}
.sheet__foot--stack .text-link{min-height:44px}
/* The exercise library has static muscle data with the same legacy class name,
   but it is not an interactive Today preview row. Keep its stacked details. */
#exercisePreview .preview__row{display:flex;flex-direction:column;gap:4px;width:100%;padding:12px 12px;text-align:left;background:none;border:0;border-bottom:1px solid var(--boundary-decorative)}
#exercisePreview .preview__row:last-child{border-bottom:0}

/* ---- Workout sheets (Plan 064 R3d) ----
   One band (.sheetband) heads each sheet; the body scrolls under a pinned foot; groups are hairline
   bands, never cards; fields are the shared field control with the quiet selected (ink) ring. */
.sheet--session,.sheet--exactions{height:auto;max-height:min(85dvh,var(--sheet-max-height));display:flex;flex-direction:column}
.sheet--note,.sheet--discard{height:auto;display:flex;flex-direction:column}
.session-sheet__body,.exactions-sheet__body,.sheetbody{
  flex:1 8 auto;min-height:0;display:flex;flex-direction:column;
  overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding:0 16px var(--space-16);
}
.sheetgroup__head{
  margin:0;font-family:var(--font-language);font-size:var(--font-size-body-small);font-weight:var(--weight-medium);
  line-height:var(--line-standard);color:var(--color-ink-secondary);
}
.sheetbody__hint{
  margin:var(--space-8) 0 0;font-family:var(--font-language);font-size:var(--font-size-body-small);
  line-height:var(--line-standard);color:var(--color-ink-secondary);
}
/* The foot keeps its actions reachable: when enlarged text outgrows the sheet it is the body that gives way first,
   and only then does the foot scroll inside its own box. */
.sheetfoot{
  flex:0 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;display:flex;flex-direction:column;gap:var(--space-8);
  padding:var(--space-12) 16px var(--space-16);border-top:1px solid var(--rule-on-surface);background:var(--color-surface);
}
.sheetfoot--pair{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,8rem),1fr))}
.sheetfoot > button,.session-early-actions > button{width:100%;min-height:54px;padding:0 var(--space-16);text-align:center}
/* A field: the caption sits inside the box above the value, so the input itself carries the
   required boundary (the field control) and the label stays one tap target. */
.sheetfield{position:relative;display:block}
.sheetfield__cap{
  position:absolute;top:var(--space-8);left:var(--space-12);right:var(--space-12);z-index:1;pointer-events:none;
  font-family:var(--font-language);font-size:var(--font-size-caption);font-weight:var(--weight-regular);line-height:var(--line-standard);
  color:var(--color-ink-secondary);overflow-wrap:anywhere;
}
.sheetfield__input{
  display:block;width:100%;min-width:0;min-height:calc(var(--control-target) + var(--space-12));margin:0;
  padding:calc(var(--space-8) + var(--font-size-caption) * var(--line-standard) + var(--space-4)) var(--space-12) var(--space-8);
  border:1px solid var(--control-field-boundary);border-radius:var(--radius-control);
  background:var(--control-field-bg);color:var(--control-field-ink);
  font-family:var(--font-training-data);font-size:var(--font-size-control);font-weight:var(--weight-medium);line-height:var(--line-standard);
  letter-spacing:normal;text-transform:none;
}
.sheetfield__input::placeholder{color:var(--color-ink-secondary);opacity:1}
textarea.sheetfield__input{
  min-height:88px;resize:none;font-family:var(--font-language);font-weight:var(--weight-regular);line-height:var(--line-reading);
}
@media (hover: hover) and (pointer: fine){
.sheetfield__input:hover{background:var(--control-field-bg);border-color:var(--control-field-boundary)}
}
.sheetfield__input:active{background:var(--control-field-bg);border-color:var(--control-field-boundary)}
/* The selected field wears the 2px quiet (ink) ring, not the accent outline: orange is not a field state. */
.sheetfield__input:focus{border-color:var(--boundary-selected-quiet);box-shadow:none}
.sheetfield__input:focus-visible{outline:2px solid var(--boundary-selected-quiet);outline-offset:-1px}
.sheetfield__input:disabled{background:var(--control-field-bg);border-color:var(--boundary-decorative);color:var(--color-disabled-reason);opacity:1;cursor:not-allowed}
.sheetfield__input[aria-invalid="true"]{border-color:var(--control-error-boundary)}
.sheetfield__input[aria-invalid="true"]:focus-visible,.sheetbody--note .sheetfield__input[aria-invalid="true"]{outline-color:var(--control-error-boundary)}
/* The note sheet: the field is the sheet's one job, so it sits selected from the start. */
.sheetbody--note{padding-top:var(--space-4)}
.sheetbody--note .sheetfield__input{
  min-height:168px;padding-top:var(--space-12);outline:2px solid var(--boundary-selected-quiet);outline-offset:-1px;
}

/* ---- Session sheet (#522, owner direction A, 2026-10-28) ----
   A session hub: the head says where the session stands, the exercise map is kit rows with a state mark, date,
   bodyweight and notes are quiet value rows, and the two endings close the scroll, proportionate to their stakes:
   Finish early is the one bordered control, End without saving quiet red text. Nothing is pinned, so nothing is cut;
   each confirmation opens in place of the endings, at the end of the scroll. */
#sessionSheet .session-sheet__body{padding:0 16px var(--space-26)}
#sessionSheet .sheetband{border-bottom:1px solid transparent}
#sessionSheet .sheetband.is-scrolled{border-bottom-color:var(--rule-on-surface)}
.session-sheet__summary{font-variant-numeric:tabular-nums;-webkit-hyphens:auto;hyphens:auto;hyphenate-limit-chars:10 4 4;-webkit-hyphenate-limit-before:4;-webkit-hyphenate-limit-after:4}
.session-sheet__sets{font-family:var(--font-training-data);font-weight:var(--weight-medium);color:var(--color-ink)}
/* The kit's group caption (§6): 11px semibold uppercase in secondary ink, 26px above a group after the first. */
.sheetgroup__cap{
  margin:var(--space-4) 0 var(--space-4);font-family:var(--font-language);font-size:var(--font-size-label);font-weight:var(--weight-semibold);
  letter-spacing:var(--track-label);text-transform:uppercase;line-height:var(--line-standard);color:var(--color-ink-secondary);
}
.session-sheet__meta .sheetgroup__cap{margin-top:var(--space-26)}
.session-map{display:flex;flex-direction:column;container-type:inline-size;container-name:session-map}
.session-map__row{
  position:relative;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:var(--space-4);min-height:56px;
}
/* Separators inset to the text column (kit §4), none above the first row. */
.session-map__row+.session-map__row::before{content:"";position:absolute;top:0;left:calc(22px + var(--space-14));right:0;height:1px;background:var(--rule-on-surface)}
.session-map__jump{
  display:grid;grid-template-columns:22px minmax(0,1fr) auto;align-items:center;column-gap:var(--space-14);min-width:0;min-height:56px;margin:0;
  padding:var(--space-8) 0;background:var(--control-quiet-bg);color:var(--control-quiet-ink);border:0;border-radius:var(--radius-none);cursor:pointer;text-align:left;
}
@media (hover: hover) and (pointer: fine){
.session-map__jump:hover:not(:disabled){background:var(--well);color:var(--control-quiet-ink)}
}
.session-map__jump.is-pressed:not(:disabled){background:var(--row-pressed-bg);color:var(--control-quiet-ink);transform:var(--control-pressed-transform)}
.session-map__jump:focus-visible{outline:var(--control-focus-outline);outline-offset:2px}
.session-map__jump:disabled{background:var(--control-quiet-bg);color:var(--color-disabled-reason);opacity:1;cursor:not-allowed;transform:none}
/* The state mark: a filled check when done, the accent ring round a dot for the lift Focus is on, an empty ring to come,
   a dashed ring when skipped. The current and skipped rows also say it in words. */
.session-map__mark{display:grid;place-items:center;width:22px;height:22px;box-sizing:border-box;border-radius:var(--radius-round)}
.session-map__mark.is-complete{background:var(--color-ink)}
.session-map__mark.is-complete::after{content:"";width:14px;height:14px;background:var(--color-surface);-webkit-mask:var(--check) no-repeat center/contain;mask:var(--check) no-repeat center/contain}
.session-map__mark.is-current{border:2px solid var(--accent)}
.session-map__mark.is-current::after{content:"";width:8px;height:8px;border-radius:var(--radius-round);background:var(--accent)}
.session-map__mark.is-pending{border:1.5px solid var(--rule-strong)}
.session-map__mark.is-skipped{border:1.5px dashed var(--ink-faint)}
.session-map__name{
  min-width:0;font-family:var(--font-language);font-size:var(--font-size-body);font-weight:var(--weight-regular);
  line-height:var(--line-standard);color:var(--color-ink);overflow-wrap:break-word;-webkit-hyphens:auto;hyphens:auto;hyphenate-limit-chars:10 4 4;-webkit-hyphenate-limit-before:4;-webkit-hyphenate-limit-after:4;
}
.session-map__note{display:block;margin-top:2px;font-size:var(--font-size-caption);font-weight:var(--weight-regular);color:var(--color-ink-secondary)}
.session-map__row.is-current .session-map__name{font-weight:var(--weight-semibold)}
.session-map__row.is-current .session-map__note{font-weight:var(--weight-regular)}
.session-map__row:has(.session-map__mark.is-skipped) .session-map__name{color:var(--color-ink-secondary)}
.session-map__status{
  font-family:var(--font-training-data);font-size:var(--font-size-body-small);font-weight:var(--weight-medium);line-height:var(--line-standard);
  font-variant-numeric:tabular-nums;white-space:nowrap;color:var(--color-ink-secondary);
}
.session-map__row.is-current .session-map__status{color:var(--color-ink)}
/* Enlarged text (the map narrower than 16rem of its own text): the count moves under the name, beside its note, so a long
   name has the whole row and breaks between words, or with a hyphen where the language allows, not inside one. */
@container session-map (max-width:16rem){
  .session-map__row{grid-template-columns:minmax(0,1fr)}
  .session-map__jump{grid-template-columns:22px minmax(0,1fr);row-gap:2px;padding-right:0}
  .session-map__mark{grid-row:1 / span 2;align-self:start;margin-top:calc((var(--font-size-body) * var(--line-standard) - 22px) / 2)}
  .session-map__status{grid-column:2;justify-self:start;min-height:var(--control-target);display:flex;align-items:center}
  /* The grip keeps its 44px target on the count's line, at the row's end. */
  .session-map__grip{position:absolute;right:0;bottom:var(--space-8)}
}
/* The grip (UI kit §5, owner 2026-10-24): a 44px target with no box, the 18px grip in --ink-faint; it dims on a press.
   Dragging it reorders the session as the editor does; a long-press on the row opens Move up and Move down. */
.session-map__grip{
  flex:none;display:inline-flex;align-items:center;justify-content:center;width:var(--control-target);height:var(--control-target);
  min-width:var(--control-target);min-height:var(--control-target);padding:0;border:0;border-radius:var(--radius-control);
  background:transparent;color:var(--ink-faint);cursor:grab;touch-action:none
}
.session-map__grip .icon-mask{width:18px;height:18px}
.session-map__grip:active{cursor:grabbing}
.session-map__grip.is-pressed:not(:disabled){opacity:.4}
.session-map__grip:focus-visible{outline:var(--control-focus-outline);outline-offset:-2px}
.session-map__grip:disabled{visibility:hidden}
.session-map__row[data-dnd-dragging]{z-index:4;background:var(--surface);box-shadow:var(--elevation-drag-shadow);transition:none}
.session-map__row[data-dnd-dragging]::before{display:none}
.session-map__row[data-dnd-placeholder]{opacity:.35}
@media (prefers-reduced-motion:reduce){.session-map__row[data-dnd-dragging]{box-shadow:none}}
/* Details: quiet value rows, as iOS Settings and the approved mock A draw them (owner review, 2026-10-28). The label is on
   the left and the real input on the right, with no fill and no border at rest: the value right-aligned in secondary
   ink ("Optional", "Add"), a set value in ink. The whole row is the tap target (each row is the input's label); while the
   input is focused the row shows a quiet wash and the caret, and the keyboard's first key draws the ring. Notes keeps
   "Add" on the right while empty and moves its text under the label once there is text or focus. */
.session-sheet__meta{display:flex;flex-direction:column}
.sessrow{position:relative;display:flex;align-items:center;gap:var(--space-14);min-height:56px;padding:var(--space-8) 0;margin:0;cursor:text}
.sessrow+.sessrow::before{content:"";position:absolute;top:0;left:0;right:0;height:1px;background:var(--rule-on-surface)}
.sessrow__label{flex:1 1 auto;min-width:0;font-family:var(--font-language);font-size:var(--font-size-body);line-height:var(--line-standard);color:var(--color-ink);
  overflow-wrap:break-word;-webkit-hyphens:auto;hyphens:auto;hyphenate-limit-chars:10 4 4;-webkit-hyphenate-limit-before:4;-webkit-hyphenate-limit-after:4}
.sessrow__value{display:flex;align-items:center;justify-content:flex-end;gap:var(--space-4);flex:none;max-width:60%}
.sessrow__input{
  box-sizing:border-box;min-width:0;max-width:100%;min-height:var(--control-target);margin:0;padding:0 var(--space-8);
  border:0;border-radius:var(--radius-control);background:transparent;color:var(--color-ink);text-align:right;
  font-family:var(--font-language);font-size:var(--font-size-control);line-height:var(--line-standard);caret-color:var(--color-ink);
}
.sessrow__input[type=date]{-webkit-appearance:none;appearance:none;flex:none;width:auto;max-width:60%;color:var(--color-ink-secondary)}
.sessrow__input[type=date]::-webkit-date-and-time-value{text-align:right}
.sessrow__input[type=date]::-webkit-calendar-picker-indicator{opacity:.55}
.sessrow__input--mono{width:calc(9ch + 2 * var(--space-8));font-family:var(--font-training-data);font-variant-numeric:tabular-nums}
.sessrow__input::placeholder{color:var(--color-ink-secondary);opacity:1;font-family:var(--font-language)}
/* A tap leaves no ring (native feel); the edit state is the quiet wash, and the keyboard's first key draws the ring. */
.sessrow__input:focus{outline:0;background:var(--well)}
.sessrow__input:focus-visible{outline:2px solid var(--boundary-selected-quiet);outline-offset:-2px}
.sessrow__input[aria-invalid="true"],.sessrow__input[aria-invalid="true"]:focus-visible{outline:2px solid var(--control-error-boundary);outline-offset:-2px}
.sessrow__unit{font-family:var(--font-language);font-size:var(--font-size-body-small);color:var(--color-ink-secondary)}
.sessrow__unit:empty{display:none}
.sessrow--notes{flex-wrap:wrap;row-gap:var(--space-4)}
.sessrow--notes .sessrow__input{flex:0 1 auto;width:8em;min-height:var(--control-target);padding:var(--space-8);resize:none;overflow:hidden;line-height:var(--line-reading)}
.sessrow--notes .sessrow__input:placeholder-shown:not(:focus){text-align:right}
.sessrow--notes:has(.sessrow__input:not(:placeholder-shown), .sessrow__input:focus) .sessrow__input{flex:1 1 100%;width:auto;text-align:left;margin:0 calc(-1 * var(--space-8))}
.sessrow__note{margin:var(--space-8) 0 0;font-family:var(--font-language);font-size:var(--font-size-caption);line-height:var(--line-standard);color:var(--color-ink-secondary)}
/* The endings close the scroll. */
.session-sheet__endings{display:flex;flex-direction:column;gap:var(--space-4);margin-top:var(--space-26)}
.session-sheet__endings > #sessionEarlyFinish{min-height:52px;border-radius:var(--radius-pill)}
.session-early-prompt{display:flex;flex-direction:column;gap:var(--space-8);padding-top:var(--space-16);border-top:1px solid var(--rule-on-surface)}
.session-early-title{margin:0;font-family:var(--font-language);font-size:var(--font-size-body);font-weight:var(--weight-semibold);line-height:var(--line-standard);color:var(--color-ink)}
.session-early-msg{margin:0;font-family:var(--font-language);font-size:var(--font-size-body-small);line-height:var(--line-reading);color:var(--color-ink-secondary)}
.session-early-msg.is-error{color:var(--color-destructive);font-weight:var(--weight-semibold)}
#sessionEarlyOmissions{
  list-style:none;margin:0;padding:0;
  font-family:var(--font-language);font-size:var(--font-size-body-small);line-height:var(--line-standard);color:var(--color-ink-secondary);
}
#sessionEarlyOmissions li{padding:var(--space-4) 0;overflow-wrap:break-word;-webkit-hyphens:auto;hyphens:auto;hyphenate-limit-chars:10 4 4;-webkit-hyphenate-limit-before:4;-webkit-hyphenate-limit-after:4}
.session-early-sets{font-family:var(--font-training-data);color:var(--color-ink)}
.session-early-actions{display:flex;flex-direction:column;gap:var(--space-4);margin-top:var(--space-8)}
.session-early-actions > :is(#sessionEarlyConfirm,#sessionAbandonConfirm){min-height:52px;border-radius:var(--radius-pill)}
/* Ending without saving asks once, in the same place. Its reason chips are optional: none is selected until the lifter
   taps one, and the confirmation never waits for them. */
.session-abandon__label{margin:var(--space-4) 0 0;font-family:var(--font-language);font-size:var(--font-size-caption);line-height:var(--line-standard);color:var(--color-ink-secondary)}
.session-abandon__reasons{display:flex;flex-wrap:wrap;gap:var(--space-8)}

/* Workout sheet controls keep their current routes and state owners. */
/* The session sheet's quiet choices (#522): End without saving is red text with no box, so it never weighs what
   Finish early does; Cancel and Keep training are ink text. Each keeps a 44px target and answers touch-down. */
:is(#sessionAbandon,#sessionEarlyCancel,#sessionAbandonCancel){
  min-height:var(--control-target);margin:0;padding:0 var(--space-16);border:0;border-radius:var(--radius-pill);background:transparent;
  font-family:var(--font-language);font-size:var(--font-size-control);font-weight:var(--weight-semibold);line-height:var(--line-standard);cursor:pointer
}
#sessionAbandon{color:var(--color-destructive);font-weight:var(--weight-medium)}
:is(#sessionEarlyCancel,#sessionAbandonCancel){color:var(--color-ink)}
:is(#sessionAbandon,#sessionEarlyCancel,#sessionAbandonCancel).is-pressed:not(:disabled){background:var(--row-pressed-bg);transform:var(--control-pressed-transform)}
:is(#sessionAbandon,#sessionEarlyCancel,#sessionAbandonCancel):focus-visible{outline:var(--control-focus-outline);outline-offset:2px}
:is(#sessionEarlyFinish,#draftRecoveryCopy,#draftRecoveryReload,#draftRecoveryRetry){
  min-height:var(--control-target);border:1px solid var(--control-secondary-boundary);border-radius:var(--radius-button);
  background:var(--control-secondary-bg);color:var(--control-secondary-ink);font-family:var(--font-language);font-size:var(--font-size-control);font-weight:var(--weight-semibold);line-height:var(--line-standard);
}
@media (hover: hover) and (pointer: fine){
:is(#sessionEarlyFinish,#draftRecoveryCopy,#draftRecoveryReload,#draftRecoveryRetry):hover:not(:disabled){background:var(--well);border-color:var(--control-secondary-boundary);color:var(--control-secondary-ink)}
}
:is(#sessionEarlyFinish,#draftRecoveryCopy,#draftRecoveryReload,#draftRecoveryRetry).is-pressed:not(:disabled){background:var(--row-pressed-bg);border-color:var(--control-secondary-boundary);color:var(--control-secondary-ink);transform:var(--control-pressed-transform)}
:is(#sessionEarlyFinish,#draftRecoveryCopy,#draftRecoveryReload,#draftRecoveryRetry):focus-visible{outline:var(--control-focus-outline);outline-offset:2px}
:is(#sessionEarlyFinish,#draftRecoveryCopy,#draftRecoveryReload,#draftRecoveryRetry):disabled{background:var(--control-secondary-bg);border-color:var(--boundary-decorative);color:var(--color-disabled-reason);opacity:1;cursor:not-allowed;transform:none}
:is(#sessionEarlyConfirm,#exNoteSave,#historyDiscardKeep,#draftDiscardKeep){
  min-height:var(--control-target);border:1px solid var(--control-primary-boundary);border-radius:var(--radius-button);
  background:var(--control-primary-bg);color:var(--control-primary-ink);font-family:var(--font-language);font-size:var(--font-size-control);font-weight:var(--weight-semibold);line-height:var(--line-standard);
}
@media (hover: hover) and (pointer: fine){
:is(#sessionEarlyConfirm,#exNoteSave,#historyDiscardKeep,#draftDiscardKeep):hover:not(:disabled){background:var(--control-primary-bg);border-color:var(--control-primary-boundary);color:var(--control-primary-ink)}
}
:is(#sessionEarlyConfirm,#exNoteSave,#historyDiscardKeep,#draftDiscardKeep).is-pressed:not(:disabled){background:var(--control-primary-bg);border-color:var(--control-primary-boundary);color:var(--control-primary-ink);transform:var(--control-pressed-transform)}
:is(#sessionEarlyConfirm,#exNoteSave,#historyDiscardKeep,#draftDiscardKeep):focus-visible{outline:var(--control-focus-outline);outline-offset:2px}
:is(#sessionEarlyConfirm,#exNoteSave,#historyDiscardKeep,#draftDiscardKeep):disabled{background:var(--control-primary-disabled-bg);border-color:var(--boundary-decorative);color:var(--control-primary-disabled-ink);opacity:1;cursor:not-allowed;transform:none}
:is(#exNoteCancel){
  min-height:var(--control-target);border:1px solid var(--control-secondary-boundary);border-radius:var(--radius-button);
  background:var(--control-secondary-bg);color:var(--control-secondary-ink);font-family:var(--font-language);font-size:var(--font-size-control);font-weight:var(--weight-semibold);line-height:var(--line-standard);
}
@media (hover: hover) and (pointer: fine){
:is(#exNoteCancel):hover:not(:disabled){background:var(--well);border-color:var(--control-secondary-boundary);color:var(--control-secondary-ink)}
}
:is(#exNoteCancel).is-pressed:not(:disabled){background:var(--row-pressed-bg);border-color:var(--control-secondary-boundary);color:var(--control-secondary-ink);transform:var(--control-pressed-transform)}
:is(#exNoteCancel):focus-visible{outline:var(--control-focus-outline);outline-offset:2px}
:is(#exNoteCancel):disabled{background:var(--control-secondary-bg);border-color:var(--boundary-decorative);color:var(--color-disabled-reason);opacity:1;cursor:not-allowed;transform:none}
/* The History discard question (Plan 064 R3j2): Keep editing is the primary choice above, Discard
   changes the destructive one below it. The day-change question (OG-6 `today/draft-resume`) wears the same recipe:
   Cancel keeps the unfinished session, Discard unfinished session is the destructive choice, and its sentence is the body. */
.draftdiscard__body{margin:var(--space-8) 0 0;font-family:var(--font-language);font-size:var(--font-size-body);line-height:var(--line-reading);color:var(--color-ink)}
:is(#historyDiscardDrop,#draftDiscardDrop,#sessionAbandonConfirm){
  min-height:var(--control-target);border:1px solid var(--control-destructive-boundary);border-radius:var(--radius-button);
  background:var(--control-destructive-bg);color:var(--control-destructive-ink);font-family:var(--font-language);font-size:var(--font-size-control);font-weight:var(--weight-semibold);line-height:var(--line-standard);
}
@media (hover: hover) and (pointer: fine){
:is(#historyDiscardDrop,#draftDiscardDrop,#sessionAbandonConfirm):hover:not(:disabled){background:var(--well);border-color:var(--control-destructive-boundary);color:var(--control-destructive-ink)}
}
:is(#historyDiscardDrop,#draftDiscardDrop,#sessionAbandonConfirm).is-pressed:not(:disabled){background:var(--row-pressed-bg);border-color:var(--control-destructive-boundary);color:var(--control-destructive-ink);transform:var(--control-pressed-transform)}
:is(#historyDiscardDrop,#draftDiscardDrop,#sessionAbandonConfirm):focus-visible{outline:var(--control-focus-outline);outline-offset:2px}
:is(#historyDiscardDrop,#draftDiscardDrop,#sessionAbandonConfirm):disabled{background:var(--control-destructive-bg);border-color:var(--boundary-decorative);color:var(--color-disabled-reason);opacity:1;cursor:not-allowed;transform:none}
#restSheetClose,#whyClose{
  width:var(--control-target);height:var(--control-target);min-width:var(--control-target);min-height:var(--control-target);padding:0;
  border:1px solid var(--control-quiet-boundary);border-radius:var(--radius-round);background:var(--control-quiet-bg);color:var(--control-quiet-ink);
}
@media (hover: hover) and (pointer: fine){
#restSheetClose:hover:not(:disabled),#whyClose:hover:not(:disabled){background:var(--well);border-color:var(--control-quiet-boundary);color:var(--control-quiet-ink)}
}
#restSheetClose.is-pressed:not(:disabled),#whyClose.is-pressed:not(:disabled){background:var(--row-pressed-bg);border-color:var(--control-quiet-boundary);color:var(--control-quiet-ink);transform:var(--control-pressed-transform)}
#restSheetClose:focus-visible,#whyClose:focus-visible{outline:var(--control-focus-outline);outline-offset:2px}
#restSheetClose:disabled,#whyClose:disabled{background:var(--control-quiet-bg);border-color:var(--boundary-decorative);color:var(--color-disabled-reason);opacity:1;cursor:not-allowed;transform:none}

/* ---- Exercise actions sheet ---- */
/* The eyebrow and the name are one title: the close button sits on the eyebrow's line. */
.exactions__eyebrow{
  display:block;font-family:var(--font-language);font-size:var(--font-size-body-small);font-weight:var(--weight-regular);
  line-height:var(--line-standard);color:var(--color-ink-secondary);
}
.exactions__name{display:block;overflow-wrap:anywhere}
.exactions__sub-line{display:block}
.exactions__section{display:flex;flex-direction:column;gap:var(--space-4);margin-top:var(--space-14)}
.exactions__section:first-child{margin-top:0}
.exactions__setup-text{margin:0;font-family:var(--font-language);font-size:var(--font-size-body);line-height:var(--line-standard);color:var(--color-ink);overflow-wrap:anywhere}
.exactions__status{margin:0;font-family:var(--font-language);font-size:var(--font-size-body);font-weight:var(--weight-semibold);line-height:var(--line-standard);color:var(--color-ink)}
.exactions__rows,.exactions__warmup-list{border-top:1px solid var(--rule-on-surface)}
.exactions__act{
  display:flex;align-items:center;gap:var(--space-12);width:100%;min-height:52px;margin:0;padding:var(--space-4) 0;
  background:var(--control-quiet-bg);color:var(--control-quiet-ink);border:0;border-bottom:1px solid var(--rule-on-surface);border-radius:var(--radius-none);
  font-family:var(--font-language);font-size:var(--font-size-body);font-weight:var(--weight-regular);line-height:var(--line-standard);text-align:left;cursor:pointer;
}
/* The action's glyph trails its label, as a menu row draws it (the native UI kit). */
.exactions__act .icon-mask{flex:none;order:2;margin-left:auto;width:20px;height:20px;color:var(--color-ink-secondary)}
.exactions__act-text{display:grid;min-width:0;overflow-wrap:anywhere}
.exactions__act-text small{font-size:var(--font-size-body-small);color:var(--color-ink-secondary)}
.exactions__act-text small:empty{display:none}
@media (hover: hover) and (pointer: fine){
.exactions__act:hover:not(:disabled){background:var(--well);color:var(--control-quiet-ink)}
}
.exactions__act.is-pressed:not(:disabled){background:var(--row-pressed-bg);color:var(--control-quiet-ink);transform:var(--control-pressed-transform)}
.exactions__act[aria-pressed="true"]{border-bottom-color:var(--boundary-selected-quiet)}
.exactions__act:focus-visible{outline:var(--control-focus-outline);outline-offset:-2px}
.exactions__act:disabled{background:var(--control-quiet-bg);color:var(--color-disabled-reason);opacity:1;cursor:not-allowed;transform:none}
.exactions__act:disabled .icon-mask,.exactions__act:disabled .exactions__act-text small{color:var(--color-disabled-reason)}
.exactions__warmup-row{
  display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:var(--space-8) var(--space-12);
  min-height:56px;padding:var(--space-4) 0;border-bottom:1px solid var(--rule-on-surface);
}
.exactions__warmup-info{display:flex;flex-direction:column;flex:1 1 7rem;min-width:0;line-height:var(--line-standard)}
.exactions__warmup-num{font-family:var(--font-language);font-size:var(--font-size-body);font-weight:var(--weight-medium);line-height:var(--line-standard);color:var(--color-ink)}
.exactions__warmup-role{font-family:var(--font-language);font-size:var(--font-size-body-small);line-height:var(--line-standard);color:var(--color-ink-secondary)}
.exactions__warmup-role.is-warmup{color:var(--color-ink);font-weight:var(--weight-medium)}
.exactions__warmup-ctl{display:inline-flex;align-items:center;gap:var(--space-12);flex:none;margin-left:auto}
.exactions__warmup-cap{font-family:var(--font-language);font-size:var(--font-size-body);line-height:var(--line-standard);color:var(--color-ink-secondary)}
.exactions__warmup-switch{flex:none}
/* Direction D's orange budget holds in Focus: an on warm-up switch is ink, as Settings' switches are (plan 064 R6a). */
.exactions__warmup-switch[aria-checked="true"]::before{background:var(--boundary-selected-quiet)}

/* Recovery owns workout-draft actions; the state and its repair path stay in app.js. */
.draft-recovery{border-left-color:var(--color-destructive);background:var(--well);color:var(--color-ink)}
.draft-recovery__title{font-family:var(--font-language);font-size:var(--font-size-control);font-weight:var(--weight-semibold);line-height:var(--line-standard);color:var(--color-ink)}
.draft-recovery__body,.draft-recovery__pending{font-family:var(--font-language);font-size:var(--font-size-body-small);line-height:var(--line-reading);color:var(--color-ink-secondary)}
.draft-recovery__pending{border-color:var(--boundary-decorative);border-radius:var(--radius-control);color:var(--color-ink);overflow-wrap:anywhere}
/* The retry's in-flight state as words: the hairline sweep (motion-polish.css) is gone under reduced motion, and this label, hidden otherwise, takes its place. */
.draft-recovery__saving{margin:var(--space-8) 0 0;font-family:var(--font-language);font-size:var(--font-size-body-small);line-height:var(--line-reading);color:var(--color-ink-secondary)}

.sheet--rest{height:auto}
.sheet--wheel{height:auto}

/* ---- The rest timer (rest timer redesign, owner-approved mock 2026-10-23) ----
   No pill in the header and no clock in the card: while a rest runs a tab rises out of the Focus shelf's top edge
   (a ring, "Rest", the time, a chevron) and the edge fills with the rest; the sheet behind the tab holds the dial and
   every control. The tab is the only way in during a rest, so it is a full 44 px target. */
/* The tab rises out of the shelf over the card's window: the window keeps room under its last line so the open set
   scrolls clear of it (sizeFocusCard keeps the row above the tab). */
/* The context region's window ends above the rest tab's rise (owner review of #550): its end spacer adds the band, so
   the last line scrolls clear of the tab and the tab never covers the set being worked on; scrolling, the card passes
   behind the tab and the shelf. `fitFocusLedger` publishes the measured rise, which grows with the tab at large text. */
article.exercise--focus:has(.resttab){--focus-tab-band:var(--rest-tab-rise,calc(var(--control-target) - var(--space-14)))}
/* The tab is the contour's raised part (.restlight draws its surface), so it paints no box of its own. */
.resttab{
  position:absolute;z-index:2;left:0;right:0;bottom:calc(100% - var(--space-14));width:max-content;margin:0 auto;
  /* Never wider than the shelf less its corners (owner, iPhone, 2026-10-31: "Descanso concluído +0:15" at double text
     ran past the screen): past that the word wraps and the tab grows upwards, and the contour follows it. */
  max-width:calc(100% - 2 * var(--shelf-inset));
  display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:0 var(--space-8);min-height:var(--control-target);padding:0 var(--space-16) var(--space-14) var(--space-12);
  border:0;border-radius:var(--radius-prominent) var(--radius-prominent) var(--radius-none) var(--radius-none);
  background:transparent;color:var(--color-ink);cursor:pointer;
  font-family:var(--font-language);-webkit-tap-highlight-color:transparent;
}
.resttab:focus-visible{outline:var(--control-focus-outline);outline-offset:-2px}
/* A touch never leaves a ring (the #507 input-modality rule); the keyboard keeps one, inset within the tab's body. */
:root[data-input-modality="pointer"] .resttab:focus-visible{outline:none}
/* Pressed, the tab paints no fill (its shape is the contour, which a box would ignore): its words dim at once and come
   back on the press-release ease, as iOS bar buttons do (owner, iPhone and Android, 2026-10-29). */
.resttab > *{transition:opacity var(--press-release-duration) var(--ease-press-release)}
.resttab.is-pressed{background:transparent;transform:none}
.resttab.is-pressed > *{opacity:.45;transition:none}
/* The tab is words only (owner, 2026-10-29): "Rest" and the countdown in ink, "Paused" and the held time in
   secondary ink, "Rest done" and the count-up in the deep accent. The word and countdown-or-count-up carry the state. */
.resttab__label{min-width:0;font-size:var(--font-size-body-small);line-height:var(--line-standard);color:var(--color-ink);text-wrap:balance}
.resttab__time{font-family:var(--font-training-data);font-size:var(--font-size-subtitle);font-weight:var(--weight-semibold);line-height:var(--line-tight);font-variant-numeric:tabular-nums;display:inline-block;flex:none;min-width:2.6em;text-align:left;white-space:nowrap}
/* The clock and its chevron wrap as one, under the word, when the word takes the tab's width. */
.resttab__end{display:inline-flex;flex:none;align-items:center;gap:var(--space-8)}
.resttab__chev{flex:none;width:14px;height:14px;background:var(--color-ink-secondary)}
.resttab.is-paused .resttab__time,.resttab.is-paused .resttab__label{color:var(--color-ink-secondary)}
.resttab.is-done .resttab__time,.resttab.is-done .resttab__label{color:var(--accent-deep)}
/* One contour (owner, 2026-10-28, the rest-glow prototype): during a rest the shelf and its tab are one SVG shape under
   the shelf's content, with one upward shadow and one hairline, so the shelf paints no box of its own. The rest is
   light along the contour, painted behind the shape: a hairline core and two blurred blooms, masked to the length the
   clock has left, so only what spills past the edge shows and nothing falls on the panel. Held, it greys; under
   reduced transparency only the core is drawn. */
.workshelf.focus-shelf.has-rest{isolation:isolate;background:transparent;border-top-color:transparent;box-shadow:none}
.restlight{position:absolute;z-index:-1;left:0;top:0;overflow:visible;pointer-events:none}
.restlight__shape{fill:var(--color-surface)}
.restlight__hair{fill:none;stroke:var(--boundary-persistent);stroke-width:1}
.restlight__shadow{flood-color:rgb(var(--shadow-rgb));flood-opacity:.09}
.restlight__half{fill:none;stroke-width:56;stroke-linecap:butt;stroke-linejoin:round}
.restlight__light{opacity:var(--rest-light-gain)}
.restlight.is-paused .restlight__light{opacity:calc(var(--rest-light-gain) * .55)}
.restlight__core,.restlight__bloom{fill:none;stroke-linecap:round;stroke-linejoin:round}
.restlight__core{stroke:var(--rest-light-core);stroke-width:1.25;opacity:.95}
.restlight__bloom{stroke:var(--rest-light-bloom)}
.restlight__bloom--wide{stroke-width:16;opacity:.24}
.restlight__bloom--near{stroke-width:5;opacity:.5}
.restlight.is-paused :is(.restlight__core,.restlight__bloom){stroke:var(--ink-faint)}
@media (prefers-reduced-transparency:reduce){.restlight__bloom{display:none}}
/* The sheet: the dial with the time, one primary control between ±30 s, the presets as the native segmented
   control, and Restart and End rest as quiet text actions. Concentric with the shelf (28 / 16 / 12). */
.restsheet{flex-direction:column;align-items:stretch;gap:var(--space-16);padding:var(--space-8) var(--shelf-inset) calc(var(--shelf-inset) + env(safe-area-inset-bottom))}
/* The dial turns under the finger (owner, 2026-11-04): it keeps its own touches, so a drag on it never scrolls or
   pulls the sheet down; everywhere else the sheet's swipe still works. It is focusable, so the target-size rule gives
   it a 44 px minimum; it never shrinks under that rule on a short phone (flex:none). */
.restdial{position:relative;align-self:center;flex:none;width:min(250px,64vw);aspect-ratio:1;border-radius:var(--radius-round);
  touch-action:none;cursor:grab;-webkit-user-select:none;user-select:none}
.restdial.is-turning{cursor:grabbing}
.restdial__svg{position:absolute;inset:0;width:100%;height:100%;transform:rotate(-90deg);overflow:visible}
.restdial__track{fill:none;stroke:var(--rule);stroke-width:10}
.restdial__arc{fill:none;stroke:var(--accent);stroke-width:10;stroke-linecap:round;stroke-dasharray:1000 1000}
.restdial.is-done .restdial__track{stroke:var(--accent)}
.restdial__c{position:absolute;inset:14%;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center}
.restdial__time{font-family:var(--font-training-data);font-size:var(--font-size-rest-clock);font-weight:var(--weight-medium);line-height:var(--line-tight);letter-spacing:-.02em;font-variant-numeric:tabular-nums;display:inline-block}
.restdial.is-done .restdial__time{color:var(--accent-deep)}
.restdial__of{margin-top:var(--space-4);font-size:var(--font-size-body-small);color:var(--color-ink-secondary)}
.restdial__next{margin-top:var(--space-8);font-size:var(--font-size-caption);line-height:var(--line-standard);color:var(--color-ink-secondary)}
.restsheet__controls{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;margin:0 var(--space-18)}
.restround{justify-self:center;min-width:64px;min-height:64px;aspect-ratio:1;padding:0 var(--space-8);border:0;border-radius:var(--radius-round);background:var(--control-track);color:var(--color-ink);
  font-family:var(--font-training-data);font-size:var(--font-size-body);font-weight:var(--weight-semibold);font-variant-numeric:tabular-nums;cursor:pointer}
.restplay{display:grid;place-items:center;width:84px;height:84px;border:0;border-radius:var(--radius-round);background:var(--control-primary-bg);color:var(--control-primary-ink);cursor:pointer}
.restplay__icon{width:30px;height:30px;background:var(--control-primary-ink)}
.restplay[data-mode="pause"] .restplay__icon--play,.restplay:not([data-mode="pause"]) .restplay__icon--pause{display:none}
.restround:focus-visible,.restplay:focus-visible,.restlink:focus-visible{outline:var(--control-focus-outline);outline-offset:2px}
.restround.is-pressed,.restplay.is-pressed{transform:var(--control-pressed-transform)}
.restsheet__cap{margin:var(--space-4) var(--space-4) 0;font-size:var(--font-size-caption);font-weight:var(--weight-semibold);letter-spacing:.06em;text-transform:uppercase;color:var(--color-ink-secondary)}
.restsheet__presets{display:grid;width:100%}
#restPresets button{min-width:0;padding-inline:0;font-size:min(var(--font-size-body-small),var(--large-cap-supporting));font-family:var(--font-training-data);font-variant-numeric:tabular-nums}
.restsheet__links{display:flex;flex-wrap:wrap;justify-content:space-between;gap:0 var(--space-8);margin:0 var(--space-4)}
.restlink{flex:none;min-height:var(--control-target);padding:0 var(--space-8);border:0;background:transparent;color:var(--color-ink);font-family:var(--font-language);font-size:var(--font-size-control);font-weight:var(--weight-medium);cursor:pointer}
.restlink--end{color:var(--accent-deep);font-weight:var(--weight-semibold)}
.restlink:disabled{color:var(--color-disabled-reason);cursor:not-allowed}
/* At large text the dial's words stop growing where Focus's do, so they stay inside the ring, and the sheet's one-word
   title keeps its word whole. */
.restdial__time{font-size:min(var(--font-size-rest-clock),var(--large-cap-clock))}
.restdial__of,.restdial__next{font-size:min(var(--font-size-body-small),var(--large-cap-supporting))}
#restSheet .sheet__title{font-size:min(var(--font-size-section-title),var(--large-cap-title));overflow-wrap:normal}
/* Concentric with the approved shelf: the sheet's 28, the controls' 16 inside its 16 inset, the segments' 12. */
#restSheet{border-radius:var(--shelf-radius) var(--shelf-radius) var(--radius-none) var(--radius-none)}

/* Short screens trade spacing, never a control: the ledger scrolls above the
   shelf, and the shelf keeps its three fields, its pads and its action. */
@media (max-height:740px){
  .fx-head{margin-bottom:var(--space-12)}
  .focus-shelf{padding-top:var(--space-8);padding-bottom:calc(var(--space-12) + env(safe-area-inset-bottom,0px))}
}
@media (max-height:600px){
  .workshelf.focus-shelf:has([data-stage="c"]){row-gap:var(--space-8);padding-top:var(--space-8);padding-bottom:calc(var(--space-12) + env(safe-area-inset-bottom,0px))}
  .shelf__fieldbtn,.shelf__input{min-height:56px}
  .shelf__pads .shelf__pad{height:48px;min-height:48px}
  .focus-shelf .btn--cta.saveset{min-height:48px}
}
/* On the narrowest phones a three-digit load needs the room its padding took, or it wraps onto a second line. */
@media (max-width:340px){
  .focus-shelf{--shelf-field-inset:calc(2 * var(--space-8) + 2px)}
  .shelf__fieldbtn{padding-left:var(--space-8);padding-right:var(--space-8)}
  .shelf__input{padding-left:var(--space-8);padding-right:var(--space-8)}
  .shelf__lab--edit{left:var(--space-8);right:var(--space-8)}
}

.pr-kind{display:inline-block;font-weight:600;text-transform:uppercase;letter-spacing:.04em;padding:2px 7px}
.pr-kind--load{color:var(--accent-deep);background:rgba(var(--accent-rgb),.06)}
.pr-kind--reps{color:var(--ink);background:rgba(var(--ink-rgb),.05)}
.pr-kind--e1rm{color:var(--accent-deep);background:rgba(var(--accent-rgb),.06)}
.prtimeline{display:flex;flex-direction:column;gap:0;margin-top:4px}
.prtl__row{display:grid;grid-template-columns:auto minmax(0,1fr) auto auto auto;gap:6px 10px;align-items:center;
  width:100%;padding:14px 0;border-radius:0;background:transparent;border:0;border-bottom:1px solid var(--rule);font-size:var(--font-size-body-small);line-height:1.35;text-align:left;cursor:pointer}
.prtl__date{font-size:var(--font-size-caption);color:var(--ink-soft);white-space:nowrap}
/* One row per set (refinement audit A7): each record it raised with its own gain beside it, the records wrapping as
   whole pairs when the text is large. */
.prtl__records{display:inline-flex;flex-wrap:wrap;align-items:center;gap:var(--space-4) var(--space-12);min-width:0}
.prtl__rec{display:inline-flex;align-items:center;gap:var(--space-4);white-space:nowrap}
.prtl__ex{font-weight:500;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.prtl__set{font-size:var(--font-size-body-small);color:var(--ink);white-space:nowrap;font-variant-numeric:tabular-nums}
.prtl__delta{font-size:var(--font-size-body-small);font-weight:600;color:var(--accent-deep);white-space:nowrap}
/* On a phone a record is one list row (the native UI kit): the lift and its set on the first line, the date, kind
   and gain under them, and the drill-in chevron trailing both lines instead of falling onto a line of its own. */
@media(max-width:520px){
  .prtl__row{grid-template-columns:auto minmax(0,1fr) auto var(--control-icon-size);grid-template-areas:"ex ex set chev" "date rec rec chev";gap:4px 8px}
  .prtl__ex{grid-area:ex}.prtl__set{grid-area:set;text-align:right}
  .prtl__date{grid-area:date}.prtl__records{grid-area:rec;justify-self:end;justify-content:flex-end}
  .prtl__row>.chevron{grid-area:chev;justify-self:end}}
canvas{width:100%;display:block;margin-top:6px}

/* ---- Tables ---- */
.table{background:transparent;border:0;border-radius:0;overflow:auto;-webkit-overflow-scrolling:touch;margin-bottom:8px;overscroll-behavior:contain;}
table{width:100%;border-collapse:separate;border-spacing:0;min-width:520px}
th,td{padding:11px 8px;text-align:left;font-size:var(--font-size-body-small);white-space:nowrap;border-bottom:1px solid var(--rule)}
th{font-size:var(--font-size-label);color:var(--ink-faint);background:transparent;text-transform:uppercase;letter-spacing:.06em;font-weight:600}
td{font-size:var(--font-size-body-small);color:var(--ink);font-variant-numeric:tabular-nums}
.empty{padding:22px 16px;color:var(--ink-soft);font-size:var(--font-size-body-small);line-height:1.5;text-align:center;
  background:transparent;border:1px dashed var(--rule);border-radius:var(--radius-surface)}
.table .empty{background:none;border:0;border-radius:0}

.emptystate{background:transparent;border:0;border-radius:0;padding:20px 0;margin-bottom:14px;text-align:center}
.emptystate__title{font-weight:var(--weight-semibold);font-size:var(--font-size-subtitle);margin-bottom:6px}
.emptystate__body{color:var(--ink-soft);font-size:var(--font-size-body-small);line-height:1.5;margin-bottom:14px}
.emptystate .btn{width:100%}
/* Today's version stands alone on the tab rather than heading a populated
   surface, so it sits away from the page head instead of hugging it. */
.emptystate--today{padding:36px 0 8px}

/* ---- History / sessions ---- */
#history .sessions{display:flex;flex-direction:column;gap:0;margin-bottom:8px}
#history .session{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;
  background:transparent;border:0;border-bottom:1px solid var(--boundary-decorative);border-radius:var(--radius-none);padding:16px 0}
#history .session__del{flex:none;min-height:var(--control-target);border:0;border-radius:var(--radius-none);padding:9px 8px;background:var(--control-destructive-bg);color:var(--control-destructive-ink);font-family:var(--font-language);font-size:var(--font-size-body-small);font-weight:var(--weight-medium);line-height:var(--line-standard);cursor:pointer}
.cal{margin-bottom:18px}
.hist-search{margin-bottom:12px;display:flex;align-items:center;gap:8px}
.hist-search input{flex:1;min-width:0}

/* ---- Volume ---- */
.volume{display:flex;flex-direction:column;gap:12px}
.vrow{display:grid;grid-template-columns:1fr auto auto;gap:6px 12px;align-items:center}
.vrow__name{grid-row:1;grid-column:1;color:var(--ink);font-weight:500}
.vrow__num{grid-row:1;grid-column:2;color:var(--ink-soft);text-align:right;font-variant-numeric:tabular-nums}
.vrow__num b{color:var(--ink);font-weight:600}
.vrow__status{grid-row:1;grid-column:3;color:var(--accent-deep);text-align:right;min-width:4rem}
.vrow__status.is-on{color:var(--positive)}
.vrow__bar{grid-row:2;grid-column:1/-1;display:block;height:4px;background:var(--rule);overflow:hidden}
.vrow__fill{display:block;height:100%;background:var(--accent)}
.vrow__fill.is-high,.vrow__fill.is-on{background:var(--positive)}

/* @ci-domain program,entry,library */
/* ---- Program ---- */
.pmeta{background:transparent;border:0;border-radius:0;padding:0;margin-bottom:14px;box-shadow:none;display:flex;flex-direction:column;gap:10px}
.pmeta__row{display:flex;flex-wrap:wrap;align-items:flex-end;gap:12px}
.pmeta__name{flex:1;min-width:min(12rem,100%);margin-top:0;font-size:var(--font-size-label);letter-spacing:var(--track-label);text-transform:uppercase;color:var(--ink-faint);font-weight:600}
.pmeta__name input{margin-top:5px;font-weight:600;font-size:var(--font-size-control);text-transform:none;letter-spacing:normal;padding:10px 11px;background:var(--surface)}
.pmeta__started{flex:1 1 min(100%,10rem);min-width:0;max-width:100%;margin-top:0;font-size:var(--font-size-label);letter-spacing:var(--track-label);text-transform:uppercase;color:var(--ink-faint);font-weight:600}
/* 16px, like every other field: below that iOS zooms the page in on focus and
   leaves it there. */
/* iOS gives a native date field an intrinsic width wider than a phone's column and lets it run past the right gutter
   (#526), so this one drops the native appearance, as the Session details date field does; the value element stays
   left-aligned at its minimum height (the input:is([type=date]) rules) and a tap still opens the picker. */
.pmeta__started input{display:block;-webkit-appearance:none;appearance:none;box-sizing:border-box;width:100%;min-width:0;max-width:100%;margin-top:5px;font-size:var(--font-size-control);padding:9px 11px;background:var(--surface);color-scheme:var(--scheme)}
.pmeta__chips{display:flex;flex-wrap:wrap;gap:7px;align-items:center;margin-left:auto}
.pmeta__chip{font-size:var(--font-size-caption);color:var(--ink-soft);background:var(--surface);border:1px solid var(--rule);border-radius:var(--radius-pill);padding:6px 10px;white-space:nowrap}
.pmeta__chip--status{color:var(--ink);border-color:var(--rule-strong);font-weight:600}
:is(#programEditor,[data-copy-id="programEditor"]).hidden,#programEditChrome.hidden{display:none!important}
.peditor{display:flex;flex-direction:column;gap:14px}
.pday{background:var(--surface);border:1px solid var(--rule);border-radius:var(--radius-surface);padding:14px;box-shadow:none}
.pday__head{display:flex;align-items:center;gap:10px;margin-bottom:12px}
/* Separate the destructive control from the benign one beside it, and tint it
   so the two identical squares are no longer interchangeable at a glance. */
.pday__head .iconbtn--del{margin-right:6px;color:var(--danger)}
@media (hover: hover) and (pointer: fine){
.pday__head .iconbtn--del:hover{border-color:var(--danger)}
}
.pday__name{flex:1;margin-top:0;font-weight:var(--weight-semibold);font-size:var(--font-size-control);letter-spacing:0;
  text-transform:none;padding:9px 11px;background:var(--bg);border-color:var(--rule)}
.pday__count{flex:none;font-size:var(--font-size-label);letter-spacing:.04em;color:var(--ink-faint);text-transform:uppercase;white-space:nowrap}
.pday__empty{color:var(--ink-faint);font-size:var(--font-size-body-small);font-style:italic;margin:2px 0 10px}
.pexlist{display:flex;flex-direction:column;gap:11px;margin-bottom:12px}
.pday__add{width:100%;font-size:var(--font-size-body-small);padding:10px}
.peditor__addday{width:100%;margin-top:14px;font-size:var(--font-size-body-small)}
.pex{background:var(--bg);border:1px solid var(--rule);border-radius:var(--radius-surface);padding:12px}
/* Four 44px controls plus a name will not fit 390px, and library names are
   longer than the hand-typed ones were ("Incline chest press machine"), so the
   name takes its own row and the controls sit under it. */
.pex__head{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.pex__name{flex:1 1 100%;margin-top:0;font-weight:600;font-size:var(--font-size-control);padding:10px 11px}
.pex__move{flex:none;display:flex;gap:5px}
.pex__nums{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:11px}
.pex__num,.pex__mus{display:block;text-transform:uppercase;letter-spacing:.07em;font-size:var(--font-size-label);font-weight:600;color:var(--ink-soft)}
.pex__num input{margin-top:5px;text-align:center;font-weight:500;padding:9px 4px;background:var(--surface)}
.pex__mus{margin-top:11px}
.pex__mus input{margin-top:5px;padding:10px 11px;font-size:var(--font-size-control);background:var(--surface)}
.pstrategy{margin-top:12px;border-top:1px solid var(--rule)}
.pstrategy summary{min-height:48px;display:flex;align-items:center;justify-content:space-between;gap:10px;cursor:pointer;font-size:var(--font-size-body-small);font-weight:600;color:var(--ink)}
.pstrategy summary span{font-size:var(--font-size-caption);font-weight:500;color:var(--ink-soft);text-align:right}
.pstrategy__body{padding:2px 0 4px}
.pstrategy__select,.pstrategy__field{display:block;font-size:var(--font-size-label);font-weight:600;letter-spacing:.04em;color:var(--ink-soft)}
.pstrategy__select select,.pstrategy__field input{margin-top:5px;background:var(--surface);font-size:var(--font-size-control)}
.pstrategy__help,.pstrategy__manual{margin:8px 0 12px;color:var(--ink-soft);font-size:var(--font-size-body-small);line-height:1.45}
.pstrategy__grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.pstrategy__field input{padding:10px 8px}
.pstrategy__error{min-height:20px;margin:8px 0 0;color:var(--danger);font-size:var(--font-size-body-small);line-height:1.4}
.pstrategy__save{width:100%;min-height:44px}
@media(max-width:350px){.pstrategy__grid{grid-template-columns:1fr}}
.iconbtn{flex:none;width:34px;height:34px;display:inline-flex;align-items:center;justify-content:center;
  border:1px solid var(--rule);background:var(--surface);color:var(--ink-soft);border-radius:var(--radius-control);cursor:pointer;font-size:var(--control-icon-size);line-height:1}
@media (hover: hover) and (pointer: fine){
.iconbtn:hover:not(:disabled){color:var(--ink);border-color:var(--ink-soft)}
}
.iconbtn:disabled{opacity:.3;cursor:default}
@media (hover: hover) and (pointer: fine){
.iconbtn--del:hover:not(:disabled){color:var(--danger);border-color:rgba(var(--danger-rgb),.4);background:rgba(var(--danger-rgb),.06)}
}
.advanced{margin-top:24px;border-top:1px solid var(--rule);border-bottom:1px solid var(--rule)}
.advanced[open]{padding-bottom:16px}
.advanced summary{cursor:pointer;list-style:none;min-height:52px;padding:14px 0;font-weight:500;font-size:var(--font-size-control);color:var(--ink);
  display:flex;align-items:center;justify-content:space-between;gap:8px;text-transform:none;letter-spacing:0}
.advanced summary::-webkit-details-marker{display:none}
.advanced summary::after{
  content:"";flex:none;width:16px;height:16px;background:var(--ink-faint);
  -webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  -webkit-mask-size:contain;mask-size:contain;transition:transform .2s ease;
}
.advanced[open] summary::after{transform:rotate(180deg)}
.advanced textarea{font-family:var(--font-training-data);font-size:var(--font-size-control)}
.file{display:flex;cursor:pointer;margin-top:10px;text-transform:none}
.file input{display:none}
.program__endblock{margin:14px 0}

/* ---- Shared program editor ----
   The setup and installed hosts deliberately share this visual grammar.  The
   host supplies only the surrounding title/actions; this surface owns the
   editable document and remains a single-column phone layout at larger text
   sizes. */
.program-editor-host{display:block;width:100%}
.program-editor{display:flex;flex-direction:column;gap:16px}
.program-editor__meta{display:flex;flex-direction:column;gap:10px}
.program-editor__program-name{display:block;color:var(--ink-soft);font-size:var(--font-size-label);font-weight:600;letter-spacing:var(--track-label);text-transform:uppercase}
.program-editor__program-name input{display:block;width:100%;margin-top:6px;padding:12px 16px;background:var(--surface);border:1px solid var(--rule-strong);border-radius:var(--radius-control);color:var(--ink);font-size:var(--font-size-control);font-weight:400;letter-spacing:0;text-transform:none}
.program-editor__program-name input:focus{border-color:var(--accent);outline:2px solid rgba(var(--accent-rgb),.2);outline-offset:1px}
.program-editor__context{margin:6px 0 0;color:var(--ink-soft);font-size:var(--font-size-control)}
.program-editor__status{margin:0;color:var(--ink-soft);font-size:var(--font-size-body-small);line-height:1.4}
.program-editor__status.is-error{color:var(--danger)}
.program-editor__status[hidden]{display:none}
.program-editor__field-error{margin:var(--space-4) 14px;font-size:var(--font-size-body-small);line-height:1.4;color:var(--color-destructive)}
.program-editor-onboarding .program-editor__field-error{margin-inline:16px}
.program-editor-installed .program-editor__field-error{margin:0 0 10px}
.program-editor__undo{margin-left:8px;padding:0;border:0;background:none;color:var(--accent-deep);cursor:pointer;font:inherit;font-weight:600;text-decoration:underline;text-underline-offset:3px}
.program-editor__days{display:flex;flex-direction:column;gap:12px}
.program-editor__day{overflow:hidden;padding:0;background:var(--surface);border:1px solid var(--rule-strong);border-radius:var(--radius-surface)}
.program-editor__day-head{display:flex;align-items:center;gap:10px;min-height:66px;margin:0;padding:10px 14px;background:var(--well);border-bottom:1px solid var(--rule);position:relative}
.program-editor__day-name{flex:1;min-width:0;margin:0;padding:4px 0;border:0;background:transparent;color:var(--ink);font-size:var(--font-size-control);font-weight:var(--weight-semibold);letter-spacing:-.01em}
.program-editor__day-name:focus{outline:2px solid var(--accent);outline-offset:3px;border-radius:var(--radius-compact)}
.program-editor__day-count{flex:none;color:var(--ink-soft);font-size:var(--font-size-body-small);letter-spacing:0;text-transform:none;font-weight:400}
.program-editor__day-menu{flex:none;width:44px;height:44px;padding:0;border:0;background:transparent;color:var(--ink);cursor:pointer;font-size:var(--control-icon-size);line-height:1}
.program-editor__day-menu-panel{display:flex;flex-direction:column;gap:0;margin:0 12px 12px;border:1px solid var(--rule-strong);border-radius:var(--radius-control);background:var(--surface);overflow:hidden}
.program-editor__day-menu-panel[hidden]{display:none}
.program-editor__day-menu-panel button{min-height:44px;padding:10px 12px;border:0;background:transparent;color:var(--danger);cursor:pointer;text-align:left;font:inherit;font-size:var(--font-size-body-small)}
@media (hover: hover) and (pointer: fine){
.program-editor__day-menu-panel button:hover{background:var(--well)}
}
.program-editor__day-toggle,.program-editor__exercise-toggle{flex:none;width:44px;height:44px;padding:0;border:0;background:transparent;color:var(--ink);cursor:pointer;display:inline-flex;align-items:center;justify-content:center}
.program-editor__day-toggle .icon-mask,.program-editor__exercise-toggle .icon-mask{width:20px;height:20px}
/* The legacy .pday rule rotates its always-down glyph for the old editor.
   The shared editor selects up/down glyphs in markup, so a collapsed day must
   retain the reference's downward disclosure in both hosts. */
.program-editor .program-editor__day.is-collapsed .program-editor__day-toggle{transform:none}
.program-editor__day-body{display:block;margin:0;padding:0}
.program-editor__day-body[hidden]{display:none}
.program-editor__exercise{position:relative;margin:0;padding:0;background:var(--surface);border-bottom:1px solid var(--rule)}
.program-editor__exercise:last-of-type{border-bottom:0}
.program-editor__exercise-head{display:flex;align-items:center;gap:8px;min-height:66px;margin:0;padding:8px 12px 8px 16px;background:var(--surface)}
.program-editor__exercise-name{flex:1;min-width:0;margin:0;padding:6px 0;border:0;background:transparent;color:var(--ink);font-size:var(--font-size-control);font-weight:500;letter-spacing:-.01em;font-family:inherit;line-height:1.3;resize:none;field-sizing:content;overflow:hidden;overflow-wrap:anywhere}
.program-editor__exercise-name:focus{outline:2px solid var(--accent);outline-offset:3px;border-radius:var(--radius-compact)}
.program-editor__summary{flex:none;color:var(--ink);font-size:var(--font-size-subtitle);white-space:nowrap;font-variant-numeric:tabular-nums}
.program-editor__drag-handle{flex:none;width:44px;height:44px;margin:0;padding:0;border:0;background:transparent;color:var(--ink-soft);cursor:grab;font-size:var(--control-icon-size);line-height:1;letter-spacing:-.16em;text-indent:-3px;touch-action:none}
.program-editor__drag-handle:active{cursor:grabbing}
.program-editor__drag-handle:focus-visible{outline:2px solid var(--accent);outline-offset:-2px;border-radius:var(--radius-compact)}
.program-editor__exercise-menu{font-size:var(--control-icon-size);color:var(--ink-soft)}
.program-editor__drag-handle,.program-editor__exercise-menu{display:none}
.program-editor.is-reorder-mode .program-editor__drag-handle,
.program-editor.is-reorder-mode .program-editor__exercise-menu{display:inline-flex;align-items:center;justify-content:center}
/* A held touch belongs to reordering while this mode is active. Safari must
   not turn a small drift away from the handle into a text selection. */
.program-editor.is-reorder-mode .program-editor__exercise{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
/* Reorder mode turns the row, including its fields, into a drag surface. */
.program-editor.is-reorder-mode .program-editor__exercise :is(input,textarea){-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
.program-editor__exercise-body{margin:0;padding:14px 16px 0;border-top:1px solid var(--rule)}
.program-editor__sets{display:flex;align-items:center;justify-content:space-between;gap:14px;min-height:62px}
.program-editor__field-label,.program-editor__range legend{color:var(--ink-soft);font-size:var(--font-size-label);font-weight:500;letter-spacing:var(--track-label);text-transform:uppercase}
/* The sets stepper is the native stepper (UI kit S6): the value, then the 36px − + capsule on the soft track. */
.program-editor__stepper{display:inline-flex;align-items:center;justify-content:flex-end;gap:0;min-height:var(--control-target);border:0;border-radius:var(--radius-none);overflow:visible;background:transparent}
.program-editor__stepper output{order:-1;display:flex;align-items:center;justify-content:flex-end;min-width:2.5em;min-height:var(--control-target);padding:0 var(--space-12) 0 0;border:0;background:transparent;color:var(--ink);font-size:var(--font-size-metric);font-variant-numeric:tabular-nums}
.program-editor__stepper button{
  position:relative;display:grid;place-items:center;flex:none;width:47px;min-width:47px;height:36px;min-height:36px;padding:0;border:0;
  background:var(--control-track);color:var(--ink);font-size:var(--control-icon-size);line-height:1;cursor:pointer
}
.program-editor__stepper button::after{content:"";position:absolute;inset:-4px 0}
.program-editor__stepper button:first-child{border-radius:var(--radius-control) var(--radius-none) var(--radius-none) var(--radius-control)}
.program-editor__stepper button:last-child{border-radius:var(--radius-none) var(--radius-control) var(--radius-control) var(--radius-none);border-left:.5px solid var(--rule-strong)}
@media (hover: hover) and (pointer: fine){
.program-editor__stepper button:hover:not(:disabled){background-image:linear-gradient(var(--row-pressed-bg),var(--row-pressed-bg))}
}
.program-editor__rep-rule{height:1px;background:var(--rule);margin:0 0 18px}
.program-editor__range{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:0;padding:0;border:0}
.program-editor__range legend{grid-column:1/-1;padding:0;margin:0 0 4px}
.program-editor__range label,.program-editor__more label{display:block;min-width:0;color:var(--ink-soft);font-size:var(--font-size-caption);font-weight:600;letter-spacing:var(--track-label);text-transform:uppercase}
.program-editor__range input,.program-editor__more input,.program-editor__more textarea{display:block;box-sizing:border-box;width:100%;min-width:0;margin-top:6px;padding:11px 14px;background:var(--surface);border:1px solid var(--rule-strong);border-radius:var(--radius-control);color:var(--ink);font-size:var(--font-size-control);font-weight:400;letter-spacing:0;text-transform:none}
.program-editor__range input:focus,.program-editor__more input:focus{border-color:var(--accent);outline:2px solid rgba(var(--accent-rgb),.2);outline-offset:1px}
.program-editor__metric-targets{display:grid;gap:12px;margin:16px 0 0;padding:14px 0 0;border-top:1px solid var(--boundary-decorative)}
.program-editor__metric-targets h4{margin:0;color:var(--color-ink-secondary);font-size:var(--font-size-label);font-weight:var(--weight-semibold);letter-spacing:var(--track-label);text-transform:uppercase}
.program-editor__metric-composition{display:block;min-width:0;color:var(--color-ink-secondary);font-size:var(--font-size-caption);font-weight:var(--weight-semibold);letter-spacing:.06em;text-transform:uppercase}
.program-editor__metric-composition select{display:block;box-sizing:border-box;width:100%;min-height:var(--control-target);margin-top:6px;padding:10px 38px 10px 12px;border:1px solid var(--control-secondary-boundary);border-radius:var(--radius-control);background:var(--control-secondary-bg);color:var(--color-ink);font-family:var(--font-language);font-size:var(--font-size-body-small);font-weight:var(--weight-medium);letter-spacing:0;text-transform:none}
.program-editor__metric-composition select:focus-visible{outline:var(--control-focus-outline);outline-offset:2px}
.program-editor__metric-cycle{min-width:0;border-top:1px solid var(--boundary-decorative)}
.program-editor__metric-cycle:last-child{border-bottom:1px solid var(--boundary-decorative)}
.program-editor__metric-cycle>summary{min-height:var(--control-target);display:flex;align-items:center;cursor:pointer;color:var(--color-ink);font-size:var(--font-size-body);font-weight:var(--weight-semibold);list-style:none}
.program-editor__metric-cycle>summary::-webkit-details-marker{display:none}
.program-editor__metric-set{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 12px;min-width:0;margin:0;padding:12px 0;border:0;border-top:1px solid var(--boundary-decorative)}
.program-editor__metric-set legend{grid-column:1/-1;padding:0;color:var(--color-ink-secondary);font-size:var(--font-size-label);font-weight:var(--weight-semibold);letter-spacing:.06em;text-transform:uppercase}
.program-editor__metric-field{display:block;min-width:0;color:var(--color-ink-secondary);font-size:var(--font-size-caption);font-weight:var(--weight-semibold);letter-spacing:.05em;text-transform:uppercase}
.program-editor__metric-field small{color:var(--color-ink-secondary);font-size:var(--font-size-caption);font-weight:var(--weight-regular);letter-spacing:0;text-transform:none}
.program-editor__metric-field input{display:block;box-sizing:border-box;width:100%;min-width:0;min-height:var(--control-target);margin-top:6px;padding:10px 12px;border:1px solid var(--control-secondary-boundary);border-radius:var(--radius-control);background:var(--surface);color:var(--color-ink);font-family:var(--font-training-data);font-size:var(--font-size-control);font-variant-numeric:tabular-nums;letter-spacing:0;text-transform:none}
.program-editor__metric-field input:focus-visible{border-color:var(--accent);outline:var(--control-focus-outline);outline-offset:2px}
.program-editor__metric-range{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;min-width:0;margin:0;padding:0;border:0}
.program-editor__metric-range legend{grid-column:1/-1;padding:0;color:var(--color-ink-secondary);font-size:var(--font-size-caption);font-weight:var(--weight-medium);letter-spacing:0;text-transform:none}
.program-editor__metric-range .program-editor__metric-field input{margin-top:4px}
.program-editor__metric-prescription-fields{grid-column:1/-1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 12px}
.program-editor__metric-unconfigured{grid-column:1/-1;margin:0;color:var(--color-ink-secondary);font-size:var(--font-size-body-small);line-height:var(--line-reading)}
/* A slot's alternates: an ordered list the swap picker offers first. Each row
   names the movement and carries its own reorder and remove controls. */
.program-editor__alternates{display:grid;gap:8px;margin:16px 0 0;padding:14px 0 0;border-top:1px solid var(--boundary-decorative)}
/* Plan 069 S4: the per-slot Suggest loads switch and what it reveals. */
.program-editor__suggest-loads{display:grid;gap:8px;margin:16px 0 0;padding:14px 0 0;border-top:1px solid var(--boundary-decorative)}
.program-editor__metric-targets+.program-editor__suggest-loads{border-top:0}
.program-editor__suggest-loads-row{display:flex;align-items:center;justify-content:space-between;gap:12px}
.program-editor__suggest-loads-range,.program-editor__suggest-loads-note{margin:0;color:var(--color-ink-secondary);font-size:var(--font-size-body-small);line-height:var(--line-reading)}
.program-editor__suggest-loads-note{margin-top:16px}
.program-editor__suggest-loads .program-editor__hint{margin:0;color:var(--color-ink-secondary);font-size:var(--font-size-body-small);line-height:var(--line-reading)}
.program-editor__execution-mode{display:grid;gap:8px;margin-top:8px}
.program-editor__suggest-loads .toggle:disabled{cursor:not-allowed;opacity:.55}
.program-editor__alternate-list{display:grid;margin:0;padding:0;list-style:none}
/* Directly under the cycle list, whose last row already draws the rule. */
.program-editor__metric-targets+.program-editor__alternates{border-top:0}
.program-editor__alternate{display:flex;align-items:center;gap:8px;min-height:calc(var(--control-target) + 12px);border-top:1px solid var(--boundary-decorative)}
.program-editor__alternate:last-child{border-bottom:1px solid var(--boundary-decorative)}
.program-editor__alternate-name{flex:1 1 auto;min-width:0;color:var(--color-ink);font-size:var(--font-size-body);overflow-wrap:anywhere}
.program-editor__alternate-move,.program-editor__alternate-remove{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;width:var(--control-target);height:var(--control-target);padding:0;border:0;border-radius:var(--radius-control);background:transparent;color:var(--control-secondary-ink);cursor:pointer;font-size:var(--control-icon-size);line-height:1}
.program-editor__alternate-remove{color:var(--color-destructive)}
.program-editor__alternate-move:disabled{color:var(--color-disabled-reason);cursor:not-allowed}
.program-editor__add-alternate{display:flex;align-items:center;gap:8px;min-height:var(--control-target);padding:0;border:0;background:transparent;color:var(--accent-deep);cursor:pointer;text-align:left;font-size:var(--font-size-control)}
.program-editor__add-alternate:disabled{color:var(--color-disabled-reason);cursor:not-allowed}
.program-editor__alternates .program-editor__hint{margin:0;color:var(--color-ink-secondary);font-size:var(--font-size-body-small);line-height:var(--line-reading)}
:is(.program-editor__alternate-move,.program-editor__alternate-remove,.program-editor__add-alternate):focus-visible{outline:var(--control-focus-outline);outline-offset:2px}
@media (hover: hover) and (pointer: fine){
.program-editor__alternate-move:not(:disabled):hover,.program-editor__alternate-remove:hover{background:transparent;opacity:.6}
}
:is(.program-editor__alternate-move:not(:disabled),.program-editor__alternate-remove).is-pressed{background:transparent;opacity:.4;transform:none}
.program-editor__exercise-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:18px -16px 0;padding:0 16px;border-top:1px solid var(--rule)}
.program-editor__exercise-actions button{min-height:62px;padding:8px 0;border:0;background:transparent;cursor:pointer;font-size:var(--font-size-control);font-weight:500}
.program-editor__replace{color:var(--accent-deep)}
.program-editor__remove{color:var(--danger)}
.program-editor__more{display:none;margin:0 -16px;padding:0 16px;border-top:1px solid var(--rule)}
.program-editor__more[open]{display:block;border-top:0}
.program-editor__more summary{display:none}
.program-editor__more label{margin:0 0 12px}
/* Catalog muscles wrap rather than scroll inside one line. */
.program-editor__more textarea.program-editor__muscles{resize:none;field-sizing:content;min-height:46px;font-family:inherit;line-height:1.4;overflow-wrap:anywhere;color:var(--ink-soft)}
/* The exercise's more list is plain action rows (UI kit §5): no box, a hairline between rows, the text action's ink. */
.program-editor__more button{width:100%;min-height:var(--choice-row-min);padding:var(--space-8) 0;text-align:left;border:0;border-top:1px solid var(--boundary-decorative);border-radius:var(--radius-none);background:transparent;color:var(--accent-deep);cursor:pointer;font:inherit}
.program-editor__more button.is-pressed:not(:disabled){background:var(--row-pressed-bg)}
.program-editor__add{display:flex;align-items:center;gap:8px;width:100%;min-height:62px;margin:0;padding:12px 16px;border:0;background:var(--surface);color:var(--ink);cursor:pointer;text-align:left;font-size:var(--font-size-control)}
@media (hover: hover) and (pointer: fine){
.program-editor__add:hover{background:var(--well)}
}
.program-editor__add span{font-size:var(--control-icon-size);font-weight:var(--weight-regular);line-height:1;color:var(--ink-soft)}
.program-editor__add-day{display:flex;align-items:center;gap:8px;width:100%;min-height:62px;padding:10px 16px;border:1px solid var(--rule-strong);border-radius:var(--radius-control);background:var(--surface);color:var(--ink);cursor:pointer;text-align:left;font-size:var(--font-size-control)}
@media (hover: hover) and (pointer: fine){
.program-editor__add-day:hover{background:var(--well)}
}
.program-editor__add-day:first-letter{font-size:var(--control-icon-size);color:var(--ink-soft)}
.program-editor__empty{padding:18px 16px;color:var(--ink-soft);font-size:var(--font-size-body-small);line-height:1.4}
.program-editor__menu{position:relative;z-index:2;display:flex;flex-direction:column;gap:0;margin:0 12px 12px;border:1px solid var(--rule-strong);border-radius:var(--radius-control);background:var(--surface);overflow:hidden}
.program-editor__menu[hidden]{display:none}
.program-editor__menu button{min-height:44px;padding:10px 12px;border:0;border-bottom:1px solid var(--rule);background:transparent;color:var(--ink);cursor:pointer;text-align:left;font:inherit;font-size:var(--font-size-body-small)}
.program-editor__menu button:last-child{border-bottom:0}
@media (hover: hover) and (pointer: fine){
.program-editor__menu button:hover{background:var(--well)}
}
.program-editor__menu [data-role="move-days"]{display:flex;flex-direction:column;background:var(--well)}
.program-editor__menu [data-role="move-days"] button{padding-left:24px}
/* The row under the thumb. The drag library lifts a copy of the row and leaves
   a placeholder in the gap it came from, marking each with its own attribute;
   both keep the language the hand-rolled drag used — an accent edge on the row
   being carried, a quiet gap where it was. Neither attribute exists in a
   resting state, so neither appears in the screen catalog. */
.program-editor__exercise.is-dragging,
.program-editor__exercise[data-dnd-dragging]{position:relative;z-index:4;transform-origin:center;border-left:2px solid var(--accent);transition:none;opacity:.98}
.program-editor__exercise[data-dnd-dragging]{box-shadow:var(--elevation-drag-shadow)}
.program-editor__exercise[data-dnd-placeholder]{opacity:.35}
.program-editor__day.is-drag-target-expanded .program-editor__day-body{display:block}
.program-editor__day.is-drag-target-expanded .program-editor__day-toggle .icon-mask{transform:rotate(180deg)}
.program-editor__exercise.is-reordered{animation:program-editor-flip .18s cubic-bezier(.2,.7,.2,1) both}
.program-editor__exercise.is-settling{animation:program-editor-drop .21s cubic-bezier(.2,.7,.2,1) both}
@keyframes program-editor-flip{from{transform:translateY(var(--program-editor-flip-y,0))}to{transform:translateY(0)}}
@keyframes program-editor-drop{from{transform:translateY(-2px)}to{transform:translateY(0)}}
@media (prefers-reduced-motion:reduce){
  .program-editor__exercise.is-dragging,
  .program-editor__exercise[data-dnd-dragging]{transform:none;box-shadow:none}
  .program-editor__exercise.is-reordered{animation:none}
  .program-editor__exercise.is-settling{animation:none}
}

/* Build is a setup workspace, so its title and actions are part of the same
   scroll flow and the installed dock remains absent. */
.program-editor-onboarding .onb__head{display:flex;flex-direction:row;flex-wrap:wrap;align-items:flex-start;gap:10px;margin-bottom:20px}
.program-editor-onboarding .onb{padding-top:28px}
.program-editor-onboarding .onb__head .onb__bar{order:2;flex:0 0 auto;margin:0 0 0 auto}
.program-editor-onboarding .onb__editor-title{display:block;order:1;flex:1 1 0;min-width:min-content;margin:0;font-size:var(--font-size-display);font-weight:var(--weight-semibold);line-height:1.05;letter-spacing:-.035em}
.program-editor-onboarding .onb__head .onb__where,.program-editor-onboarding .onb__head #onbSegbar{display:none}
.program-editor-onboarding #onbTitle{display:none}
.program-editor-onboarding .onb__body{margin-bottom:20px}
.program-editor-onboarding .program-editor__program-name input{font-size:var(--font-size-control);padding:10px 16px}
.program-editor-onboarding .program-editor__day{border-radius:var(--radius-compact)}
.program-editor-onboarding .program-editor__day-head{min-height:48px;padding:6px 16px}
.program-editor-onboarding .program-editor__day-menu{display:inline-flex;align-items:center;justify-content:center;font-size:0}
.program-editor-onboarding .program-editor__day-menu::before{content:"≡";font-size:var(--control-icon-size);line-height:1}
.program-editor__day.is-expanded .program-editor__day-toggle{display:none}
.program-editor__day.is-collapsed .program-editor__day-menu{display:none}
.program-editor-onboarding .program-editor__day.is-expanded .program-editor__day-toggle{display:none}
.program-editor-onboarding .program-editor__day.is-collapsed .program-editor__day-menu{display:none}
.program-editor-onboarding .program-editor__day-count{font-size:var(--font-size-control)}
.program-editor-onboarding .program-editor__status:not(.is-error)::before{
  content:"";display:inline-block;width:19px;height:19px;margin:0 8px 0 0;vertical-align:-5px;
  border:1.5px solid var(--ink-soft);border-radius:50%;background:var(--surface) var(--check) center/13px 13px no-repeat
}
.program-editor-onboarding .program-editor__add-day{display:none}
.program-editor-onboarding .program-editor__exercise-head{min-height:50px;padding:4px 16px;gap:6px;flex-wrap:wrap}
.program-editor-onboarding .program-editor__exercise-name{flex:1 1 min(11em,100%);min-width:min(11em,100%)}
.program-editor-onboarding .program-editor__exercise-body{padding:12px 16px 0}
.program-editor-onboarding .program-editor__sets{min-height:58px}

.program-editor-onboarding .program-editor__exercise-actions{margin-top:14px}
.program-editor-onboarding .program-editor__exercise-actions button{min-height:50px}
@media (max-width:340px){
  /* A compact Build header keeps its editable exercise name on a complete row.
     The summary/toggle remain below it, so an actual input value never becomes
     a horizontally clipped control at the supported 320px phone width. */
  .program-editor-onboarding .program-editor__exercise-head{flex-wrap:wrap}
  .program-editor-onboarding .program-editor__exercise-name{flex:1 1 100%;min-width:0}
}
.program-editor-onboarding-actions{display:flex;flex-direction:column;gap:16px;margin:16px 0 12px}
.program-editor-onboarding-actions .btn{width:100%;min-height:52px;height:52px;font-size:var(--font-size-control)}
.program-editor-onboarding-actions .program-editor__activate{display:flex;align-items:center;justify-content:space-between;padding-inline:18px;background:var(--cta);color:var(--cta-ink);border-color:var(--cta)}
.program-editor-onboarding-actions .program-editor__activate::after{content:"→";font-size:var(--control-icon-size);color:var(--control-primary-ink)}
.program-editor-onboarding-actions .program-editor__save{background:var(--surface);color:var(--ink);border:1px solid var(--rule-strong)}
/* The onboarding selector is more specific than .btn--cta. Keep the blocked
   Build action in the same calm, legible hierarchy as every other disabled
   primary action instead of letting the active CTA fill leak back through. */
.program-editor-onboarding-actions .program-editor__activate:disabled{opacity:1;background:var(--rule);color:var(--ink-soft);border-color:var(--rule)}
.program-editor-onboarding-actions .program-editor__activate:disabled::after{color:var(--ink-faint)}

/* Installed Program keeps the same editor grammar while matching the compact
   phone reference: the page title carries the weight, the week context sits
   close to the name field, and the sets control spans the exercise card. */
.program-editor-installed .pagehead{margin-top:24px;margin-bottom:24px}
.program-editor-installed .program-editor{gap:14px}
.program-editor-installed .program-editor__meta{gap:8px}
.program-editor-installed .program-editor__program-name input{font-size:var(--font-size-control);padding:10px 16px}
.program-editor-installed .program-editor__context{margin-top:8px;font-size:var(--font-size-body)}
.program-editor-installed .program-editor__days{gap:10px}
.program-editor-installed .program-editor__day{
  overflow:visible;padding:0 0 14px;background:transparent;border:0;
  border-bottom:1px solid var(--boundary-decorative);border-radius:var(--radius-none)
}
.program-editor-installed .program-editor__day-head{
  min-height:var(--control-target);margin:0 0 10px;padding:0;background:transparent;border:0
}
.program-editor-installed .program-editor__day-name{
  font-size:var(--font-size-control);font-weight:var(--weight-semibold);line-height:var(--line-standard)
}
.program-editor-installed .program-editor__day-count{
  font-family:var(--font-training-data);font-size:var(--font-size-body-small);line-height:var(--line-standard)
}
.program-editor-installed .program-editor__exercise{
  background:transparent;border:0;border-bottom:1px solid var(--boundary-decorative);
  border-radius:var(--radius-none)
}
.program-editor-installed .program-editor__exercise:last-of-type{border-bottom:0}
.program-editor-installed .program-editor__exercise-head{min-height:var(--control-target);padding:5px 16px;background:transparent;flex-wrap:wrap;align-items:flex-start}
.program-editor-installed .program-editor__exercise-name{
  flex:1 1 100%;min-width:0;
  font-size:var(--font-size-control);line-height:var(--line-standard);
}
.program-editor-installed .program-editor__summary{margin-left:auto;align-self:center;font-size:var(--font-size-control)}
.program-editor-installed .program-editor__exercise-body{padding:12px 16px 0}
.program-editor-installed .program-editor__sets{display:block;min-height:0}
.program-editor-installed .program-editor__sets .program-editor__field-label{display:block;margin-bottom:8px}

.program-editor-installed .program-editor__rep-rule{margin:14px 0 16px}
.program-editor-installed .program-editor__range{row-gap:12px}
.program-editor-installed .program-editor__range input{margin-top:2px;padding:10px 14px;font-size:var(--font-size-control)}
.program-editor-installed .program-editor__exercise-actions{flex-wrap:wrap;margin-top:10px}
.program-editor-installed .program-editor__exercise-actions button{flex:1 1 8rem;min-width:0;min-height:var(--control-target);white-space:normal}
/* Keep long editable names visible as their type scales up; at normal size the
   existing 16px inline inset remains unchanged. */
.program-editor-onboarding .program-editor__program-name input,
.program-editor-installed .program-editor__program-name input,
.program-editor-onboarding .program-editor__exercise-head,
.program-editor-installed .program-editor__exercise-head{
  padding-inline:clamp(4px,calc(28px - .75em),16px)
}



/* Plan 074 (ADR 0021): the installed editor in onboarding B's editing language. The rows, tabs, sheet and
   steppers are onboarding's review classes; these rules only place them in the Program tab and add what
   onboarding never needed (the week table, the pinned Apply that stands in for the dock). */
/* The pinned Apply bar's band; a blocked reason above the button makes it taller. The editor's Undo toast
   rides above it. Plan 075 phase 2B (ADR 0023) moved #program itself off the normal flow and into its own page
   sheet, so what used to be body's reserve for that flow is now the sheet's own scroller's (#programEditorWrap).
   The legacy rest pill has no place over the full-screen editor (#519): the mini bar already gives way to the
   editor, and the pill does too, so it neither shows nor reserves a band there. The rest runs on unchanged, and
   on the way out the route's own rest surface (the Focus tab, Today's card, the mini bar) picks it up. */
body:has(:is(#program,[data-copy-id="program"]).program-editor-installed){
  --editor-apply-reserve:calc(96px + env(safe-area-inset-bottom));
}
body:has(:is(#program,[data-copy-id="program"]).program-editor-installed):has(.program-editor-a__reason){--editor-apply-reserve:calc(128px + env(safe-area-inset-bottom))}
body:has(:is(#program,[data-copy-id="program"]).program-editor-installed) .review-toast{bottom:var(--editor-apply-reserve)}
body:has(:is(#program,[data-copy-id="program"]).program-editor-installed) nav{display:none}
/* The page sheet itself: #program becomes a .sheet with one detent ("large"),
   from 10px below the safe-area top to the bottom, over a still, inert, scaled-down
   copy of the Program view underneath. Everything .sheet already gives for free
   (the surface, radius, shadow, safe-area padding, open/close transition, the
   detents drag gesture, the reduced-motion cross-fade) applies unchanged; only the
   height and internal layout are this sheet's own. */
:is(#program,[data-copy-id="program"]).sheet{
  display:flex;flex-direction:column;
  height:calc(var(--vvh,100dvh) - env(safe-area-inset-top,0px) - 10px);max-height:none;padding-bottom:0;
}
:is(#program,[data-copy-id="program"]).sheet>.pagehead{flex:none;margin:0;padding:4px 10px 12px;border-bottom:1px solid var(--rule)}
:is(#program,[data-copy-id="program"]).sheet>:is(#programNoProgram,[data-copy-id="programNoProgram"]),:is(#program,[data-copy-id="program"]).sheet>:is(#programOverview,[data-copy-id="programOverview"]),:is(#program,[data-copy-id="program"]).sheet>:is(#programBlockBanner,[data-copy-id="programBlockBanner"]){flex:none}
:is(#program,[data-copy-id="program"]).sheet>:is(#programEditorWrap,[data-copy-id="programEditorWrap"]){
  flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;
  /* The page's own gutters, as <main> gives them outside the sheet (owner, iPhone, 2026-10-23): the day tabs
     strip bleeds into them and keeps its first tab inset. */
  padding-left:max(16px,env(safe-area-inset-left));padding-right:max(16px,env(safe-area-inset-right));
  padding-bottom:calc(var(--editor-apply-reserve,96px) + var(--space-16));
}
/* A page pushed from the editor (the full library, a preview) takes the screen:
   while #program isn't the active view, the sheet, its scrim and the copy under it
   step aside, and they are back as they were on its Back. */
:is(#program,[data-copy-id="program"]).sheet:not(.active),body:has(:is(#program,[data-copy-id="program"]).sheet:not(.active)) :is(#programEditScrim,.is-editor-pushed-back){display:none}
.pagehead[data-sheet-rail]{touch-action:none}
/* The reason line is what Done being disabled explains; the editor's own bottom
   Apply button is the sheet's Done instead. */
:is(#program,[data-copy-id="program"]).program-editor-installed .program-editor-a__bar{display:none}
:is(#program,[data-copy-id="program"]).program-editor-installed .program-editor-a__bar:has(.program-editor-a__reason){display:flex}
:is(#program,[data-copy-id="program"]).program-editor-installed .program-editor-a__bar [data-role="apply"]{display:none}
/* The still copy pushed back under the sheet (Plan 075 phase 2B). `--editor-push`
   (0 at rest, 1 fully receded) is motion-layer.js's `animateSheetPushBack`; without
   it, or under reduced motion, it jumps straight to its target. */
.is-editor-pushed-back{
  position:fixed;inset:0;z-index:40;pointer-events:none;overflow:hidden;
  /* <main>'s own box, which the page had: the same centred column and gutters, so the copy lays out as the page. */
  left:max(0px,calc(50% - var(--maxw) / 2));right:max(0px,calc(50% - var(--maxw) / 2));box-sizing:border-box;
  padding:calc(12px + env(safe-area-inset-top)) max(16px,env(safe-area-inset-right)) 36px max(16px,env(safe-area-inset-left));
  transform-origin:top center;
  transform:scale(calc(1 - .06 * var(--editor-push,0))) translateY(calc(8px * var(--editor-push,0)));
  border-radius:calc(var(--radius-prominent) * var(--editor-push,0));
}
.pagehead__cancel{flex:none;margin-top:4px}
.program-editor-installed .pagehead{align-items:center}
.program-editor-installed .pagehead__titles{flex:1;min-width:0}
.program-editor-installed .pagehead .page-title{font-size:var(--font-size-body);font-weight:var(--weight-semibold)}
.program-editor-a{display:flex;flex-direction:column;gap:0}
.program-editor-a__title{margin:0}
.program-editor-a__facts{margin:var(--space-4) 0 var(--space-14)}
.program-editor-a__hint{padding-top:var(--space-14);border-top:1px solid var(--boundary-decorative)}
/* Figures in Plex Mono, words in the language font (decision 2). */
.program-editor-a .review__reps,.program-editor-a .review__rir,.review-sheet [data-role="set-reps"],
.review-sheet .program-editor-a__weeksum{font-family:var(--font-language)}
.program-editor-a .num,.review-sheet [data-role="set-reps"] .num,.review-sheet .program-editor-a__weeksum .num{font-family:var(--font-training-data)}
.program-editor-a__bar{
  position:fixed;left:0;right:0;bottom:0;z-index:20;display:flex;flex-direction:column;gap:var(--space-8);
  padding:var(--space-12) var(--gut) calc(var(--space-12) + env(safe-area-inset-bottom));
  background:var(--bg);border-top:1px solid var(--boundary-persistent);box-shadow:var(--elevation-persistent-shadow)
}
.program-editor-a__bar .btn{width:100%}
.program-editor-a__reason{margin:0;font-family:var(--font-language);font-size:var(--font-size-body-small);line-height:var(--line-reading);color:var(--color-ink)}
.program-editor-a__line{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:var(--space-12);min-height:var(--control-target);padding:var(--space-8) 0}
.program-editor-a__loadstep .program-editor__metric-field{display:flex;align-items:center;justify-content:space-between;gap:var(--space-12);width:100%}
.program-editor-a__loadstep input{width:6.5rem;min-height:var(--control-target);padding:var(--space-8) var(--space-12);border:1px solid var(--control-adjustment-boundary);border-radius:var(--radius-control);background:var(--surface);font-family:var(--font-training-data);font-size:var(--font-size-control);text-align:right;color:var(--color-ink)}
.program-editor-a__loadstep .program-editor__hint{margin:0;width:100%}
.program-editor-a__loadstep .program-editor__metric-field>span{font-family:var(--font-language);font-size:var(--font-size-body);font-weight:var(--weight-medium);letter-spacing:normal;text-transform:none;color:var(--color-ink)}
.program-editor-a__mode{display:flex;flex-direction:column;gap:var(--space-8);padding-top:var(--space-8)}
.program-editor-a__navrow{display:flex;align-items:center;gap:var(--space-12);width:100%;min-height:var(--control-target);padding:var(--space-8) 0;border:0;background:none;text-align:left;color:var(--color-ink);cursor:pointer}
.program-editor-a__navrow:focus-visible{outline:var(--control-focus-outline);outline-offset:2px;border-radius:var(--radius-control)}
.program-editor-a__navrow>.icon-mask{flex:none;color:var(--ink-faint)}
.program-editor-a__navtext{flex:1;min-width:0;display:flex;flex-direction:column;gap:var(--space-4)}
.program-editor-a__navtext .review-sheet__note{margin:0}
.program-editor-a__navaction{flex:none;font-family:var(--font-language);font-size:var(--font-size-body-small);color:var(--color-ink)}
.program-editor-a__back{display:inline-flex;align-items:center;gap:var(--space-4);min-height:var(--control-target);padding:0;margin-bottom:var(--space-4)}
.program-editor-a__week{border-bottom:1px solid var(--boundary-decorative)}
.program-editor-a__week.is-open{background:var(--well);margin:0 -16px;padding:0 16px}
.program-editor-a__weekrow{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:var(--space-12);width:100%;min-height:56px;padding:var(--space-8) 0;border:0;background:none;text-align:left;color:var(--color-ink);font-family:var(--font-language);font-size:var(--font-size-body);cursor:pointer}
.program-editor-a__weekrow:focus-visible{outline:var(--control-focus-outline);outline-offset:-2px;border-radius:var(--radius-control)}
.program-editor-a__weekrow>.icon-mask{color:var(--ink-faint)}
.program-editor-a__weekname{display:inline-flex;align-items:center;flex-wrap:wrap;gap:var(--space-8)}
.program-editor-a__week.is-open .program-editor-a__weekname{font-weight:var(--weight-semibold)}
.program-editor-a__weeksum{justify-self:end;text-align:right;font-size:var(--font-size-body-small);color:var(--color-ink-secondary)}
.program-editor-a__weekbody{padding:0 0 var(--space-14)}
.program-editor-a__grid{display:grid;grid-template-columns:28px repeat(var(--program-editor-a-columns,3),minmax(0,1fr));gap:var(--space-8);align-items:center}
.program-editor-a__th{display:flex;align-items:flex-end;min-height:28px;font-family:var(--font-language);font-size:var(--font-size-label);font-weight:var(--weight-medium);letter-spacing:.06em;text-transform:uppercase;color:var(--color-ink-secondary)}
.program-editor-a__setn{color:var(--color-ink-secondary)}
.program-editor-a__cell{width:100%;min-width:0;min-height:var(--control-target);padding:var(--space-8) var(--space-4);border:1px solid var(--control-adjustment-boundary);border-radius:var(--radius-control);background:var(--surface);font-family:var(--font-training-data);font-size:var(--font-size-control);text-align:center;color:var(--color-ink)}
.program-editor-a__cell::placeholder{font-family:var(--font-language);color:var(--color-ink-secondary)}
.program-editor-a__cell.is-diff{border-color:var(--boundary-selected);box-shadow:var(--elevation-selected-shadow)}
.program-editor-a__cell:focus-visible{outline:var(--control-focus-outline);outline-offset:1px}
.program-editor-a__cell[aria-invalid="true"]{border-color:var(--color-danger,var(--color-warning))}
.program-editor-a__weektools{display:flex;flex-wrap:wrap;gap:var(--space-18);margin-top:var(--space-8)}
.program-editor-a__weektools .text-link,.program-editor-a__weekbody>.text-link{display:inline-flex;align-items:center;gap:var(--space-8);min-height:var(--control-target);padding:0}
.program-editor-a__details>summary{min-height:var(--control-target);display:flex;align-items:center;cursor:pointer;font-family:var(--font-language);font-size:var(--font-size-body);font-weight:var(--weight-medium);color:var(--color-ink)}
.program-editor-a__details .field{margin-top:var(--space-12)}
.program-editor-a__details .program-editor__metric-composition{display:flex;flex-direction:column;gap:var(--space-8);margin-top:var(--space-12)}
.program-editor-a__num{width:4.5rem;text-align:center}
.program-editor-a .review__handle{border:0;background:none;padding:0;border-radius:var(--radius-control)}
/* A drag by the handle must not select the names it passes over. */
.program-editor-a [data-role="reorder-list"]{-webkit-user-select:none;user-select:none}
.program-editor-a__days .review__handle{border:0;background:none;padding:0}
.program-editor-a__dayrename{flex:1;min-width:0;display:flex;flex-direction:column;align-items:flex-start;gap:var(--space-4);min-height:var(--control-target);padding:0;border:0;background:none;text-align:left;color:var(--color-ink);cursor:pointer}
.program-editor-a__dayrename .review-sheet__note{margin:0}
.program-editor-a__dayrename:focus-visible{outline:var(--control-focus-outline);outline-offset:2px;border-radius:var(--radius-control)}
.program-editor-a__days{-webkit-user-select:none;user-select:none}
.program-editor-a .review__handle:focus-visible{outline:var(--control-focus-outline);outline-offset:-2px}

.program-editor-leave{
  width:min(calc(100% - 32px),420px);padding:24px;border:1px solid var(--boundary-modal);
  border-radius:var(--radius-prominent);background:var(--color-surface);color:var(--color-ink);
  box-shadow:var(--elevation-dialog-shadow)
}
.program-editor-leave::backdrop{background:var(--scrim)}
.program-editor-leave h2{font-family:var(--font-language);font-size:var(--font-size-section-title);font-weight:var(--weight-semibold);line-height:var(--line-tight);margin:0 0 8px}
.program-editor-leave p{margin:0 0 18px;color:var(--color-ink-secondary);font-family:var(--font-language);font-size:var(--font-size-body-small);line-height:var(--line-reading)}
.program-editor-leave__actions{display:flex;flex-direction:column;gap:8px}
.program-editor-leave__actions .btn,.program-editor-leave__actions .text-link{width:100%}
.program-editor-issues__list{list-style:none;margin:0 0 18px;padding:0;display:flex;flex-direction:column;gap:12px}
.program-editor-issues__item{display:flex;align-items:center;gap:12px}
.program-editor-issues__text{flex:1;min-width:0;font-family:var(--font-language);font-size:var(--font-size-body-small);line-height:var(--line-reading);color:var(--color-ink)}
.program-editor-issues__go{flex:none}

/* @ci-domain global */
/* ---- Bottom nav — floating glass dock ----
   A capsule that hovers over the page rather than capping it, so the content
   stays visible (blurred) underneath: the edge highlight and the drop shadow
   are what read as glass, and the blur is what keeps the labels legible over
   whatever scrolls behind. Content still stops at the dock's top edge —
   body's padding-bottom reserves --nav — so nothing important sits under it. */
nav{
  position:fixed;z-index:25;
  left:50%;transform:translateX(-50%) translateY(var(--dock-offset,0px));
  bottom:calc(var(--dock-gap) + env(safe-area-inset-bottom));
  width:min(
    calc(100% - env(safe-area-inset-left) - env(safe-area-inset-right) - 2*var(--dock-inset)),
    var(--maxw)
  );
  height:var(--dock-h);
  display:grid;grid-template-columns:repeat(4,minmax(0,1fr));
  padding:6px;gap:2px;
  border:1px solid var(--dock-edge);border-radius:calc(var(--dock-h)/2);
  background:var(--dock-glass);
  backdrop-filter:var(--dock-blur);-webkit-backdrop-filter:var(--dock-blur);
  box-shadow:var(--elevation-nav-shadow);
}
/* The lens rim: light bending at the capsule's edge. A bright rim along the top, a softer caustic band just inside the
   bottom edge where the curve would focus it, and a hairline of light all the way round. Painted, not a second
   backdrop sample, so it costs nothing while the page scrolls and needs nothing a browser might lack; it sits under the
   buttons and the travelling lens (z-index:-1 inside the dock's own stacking context). */
nav::before{
  content:"";position:absolute;inset:0;z-index:-1;border-radius:inherit;pointer-events:none;
  background:
    linear-gradient(180deg,var(--dock-rim) 0,transparent 32%),
    linear-gradient(0deg,var(--dock-caustic) 0,transparent 24%);
  box-shadow:var(--dock-rim-shadow);
  opacity:.25;
}
/* Without backdrop-filter the panel is a plain translucent sheet and the page
   shows through sharp, so pay for legibility with opacity instead. */
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){
  nav{--dock-glass:var(--dock-glass-opaque)}
  nav::before{display:none}
}
nav button{
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;
  background:transparent;border:1px solid transparent;color:var(--ink-soft);cursor:pointer;
  border-radius:var(--radius-pill);
  font-weight:500;letter-spacing:0;font-size:min(var(--font-size-label),var(--dock-label-max),var(--dock-label-fit));text-transform:none;
  transition:color .2s ease,transform .18s ease;min-height:44px;min-width:0;
  padding-inline:2px;-webkit-touch-callout:none;-webkit-user-select:none;user-select:none;
}
nav button > [data-i18n]{min-width:0;max-width:100%;text-align:center;line-height:1;overflow-wrap:normal;white-space:nowrap}
nav button.is-pressed{transform:scale(.93)}
nav button:focus-visible{outline:var(--control-focus-outline);outline-offset:-3px}
/* The selected tab sits in a lighter lens. This one is painted on the button
   itself and is the fallback: wherever the lens element below is not mounted
   (before boot, without the script, a dock that has never been on screen) the
   active button wears it. Once JS mounts the lens (`nav[data-lens]`) the
   button stops painting its own, and the one lens travels between the tabs. */
nav button.active{
  color:var(--accent-deep);
  background:var(--dock-pill);
  border-color:transparent;
  box-shadow:var(--elevation-nav-selected-shadow);
}
/* The lens is placed by the script on the active button's border box (read from
   layout, so it follows the grid at four columns, at two rows and in the editor
   bar alike) through --lens-x/-y/-w/-h. It sits under the buttons (z-index:-1 in
   the dock's own stacking context).
   The floating dock offsets it with `translate`, as the pill that slid under the
   buttons was offset with a transform, so the pill is painted where it always
   was. The button keeps the 1px selected ring at rest; only while the lens is in
   the air (`nav[data-lens=travel]`) does the ring ride with it, and the button
   sets its own aside so there is one ring on screen (the Progress tab indicator
   works the same way). */
.dock-lens{
  position:absolute;z-index:-1;left:var(--lens-x,0);top:var(--lens-y,0);
  width:var(--lens-w,0);height:var(--lens-h,0);
  pointer-events:none;
  border-radius:var(--radius-pill);
  background:var(--dock-pill);
  box-shadow:var(--elevation-nav-indicator-shadow);
}
@supports (translate:1px 1px){
  .dock-lens{left:0;top:0;translate:var(--lens-x,0) var(--lens-y,0)}
}
.dock-lens::after{
  content:"";display:none;position:absolute;inset:0;
  border:1px solid var(--boundary-selected);border-radius:inherit;
}
nav[data-lens] button.active{background:transparent;box-shadow:none}
nav[data-lens=travel] button.active{border-color:transparent}
/* As in the prototype the lens is a filled pill with no ring: the fill and the orange icon and label carry the
   selection (contract: state cues), so no ring rides with it while it travels either. */
/* At enlarged text the capped labels sit on the opaque material, so a page read through the glass never competes
   with them. The root container's em threshold follows the rendered root font size, whether the browser scales it
   with inline style, a user stylesheet or another accessibility preference. */
@container (max-width:15em){
  nav{--dock-glass:var(--dock-glass-opaque)}
}
/* The large-content viewer (iOS's, for a tab bar whose labels don't grow): while a finger holds the dock at large text,
   the tab under it is shown large in the middle of the screen. It is drawn for the eye only; each tab already carries
   its whole name for assistive technology. */
.dock-viewer{
  position:fixed;z-index:60;left:50%;top:40%;transform:translate(-50%,-50%);
  display:grid;justify-items:center;gap:10px;box-sizing:border-box;width:max-content;min-width:180px;max-width:calc(100vw - 2 * var(--gut));padding:22px 26px;
  border-radius:var(--dock-viewer-radius);background:var(--menu-bg);-webkit-backdrop-filter:var(--menu-blur);backdrop-filter:var(--menu-blur);
  box-shadow:var(--elevation-dialog-shadow);color:var(--ink);pointer-events:none;
}
@media(prefers-reduced-transparency:reduce){.dock-viewer{background:var(--surface);backdrop-filter:none;-webkit-backdrop-filter:none}}
.dock-viewer .nav__icon{width:56px;height:56px}
.dock-viewer__label{font-family:var(--font-language);font-size:var(--dock-viewer-label);font-weight:var(--weight-semibold);line-height:var(--line-tight);text-align:center;overflow-wrap:break-word}
.nav__icon{width:22px;height:22px;flex:none;background:currentColor;
  -webkit-mask:no-repeat center/contain;mask:no-repeat center/contain}
nav button.active .nav__icon{background:var(--accent)}
.nav__icon[data-i=log]{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 10.5L12 4l8 6.5V20a1 1 0 0 1-1 1h-4.5v-6h-5v6H5a1 1 0 0 1-1-1V10.5z'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 10.5L12 4l8 6.5V20a1 1 0 0 1-1 1h-4.5v-6h-5v6H5a1 1 0 0 1-1-1V10.5z'/%3E%3C/svg%3E")}
.nav__icon[data-i=stats]{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M5 20V10M12 20V4M19 20v-7'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M5 20V10M12 20V4M19 20v-7'/%3E%3C/svg%3E")}
.nav__icon[data-i=history]{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 12a9 9 0 1 0 3-6.7'/%3E%3Cpath d='M3 4v5h5'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 12a9 9 0 1 0 3-6.7'/%3E%3Cpath d='M3 4v5h5'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E")}
.nav__icon[data-i=program]{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M8 4h10a2 2 0 0 1 2 2v14H8a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2z'/%3E%3Cpath d='M9 9h8M9 13h8M9 17h5'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M8 4h10a2 2 0 0 1 2 2v14H8a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2z'/%3E%3Cpath d='M9 9h8M9 13h8M9 17h5'/%3E%3C/svg%3E")}
body.is-settings nav,body.is-exercise nav,body.is-onboarding nav,
body.is-library nav,body.is-preview nav,body.is-import nav{display:none}
/* No paper band behind Start workout (owner, 2026-11-24): the sticky pill floats on its own shadow over the page, like
   every other floating control, and the dock stays glass (#301). The band it replaced was a body::after gated by
   :has(), which WebKit could leave painted after the lifter left Today. */
body.is-settings,body.is-exercise,body.is-onboarding,
body.is-library,body.is-preview,body.is-import{padding-bottom:env(safe-area-inset-bottom)}
/* No paper fade under the dock (#301): the dock is glass, and glass only reads as glass when the page passes beneath
   it. What scrolls under the capsule is softened by the dock's own frost, not painted out. */

/* ---- Toast ---- */
.toast{
  position:fixed;left:50%;transform:translateX(-50%) translateY(0);
  bottom:calc(var(--nav) + 22px + env(safe-area-inset-bottom));z-index:50;
  width:min(92%,420px);background:var(--toast-bg);border:0;color:var(--toast-ink);border-radius:var(--radius-button);
  padding:13px 20px;font-size:var(--font-size-body-small);box-shadow:var(--elevation-floating-shadow);
  animation:toastin .3s cubic-bezier(.2,.7,.2,1)
}

.ex__skip{flex:none;border:1px solid var(--rule);background:var(--surface);color:var(--ink-soft);
  border-radius:var(--radius-control);cursor:pointer;line-height:1}
.ex__skip{padding:0 10px;height:34px;font-weight:600;text-transform:uppercase;letter-spacing:.05em;font-size:var(--font-size-label)}





/* One thin line (owner, 2026-10-22). Show all keeps its 44px target but gives 4px of it back to the line above and
   below, and paints its chip inside that target, as the checkboxes do. */
.skipbar{display:flex;align-items:center;justify-content:space-between;gap:10px;
  background:var(--surface);border:1px solid var(--rule);border-radius:var(--radius-surface);
  padding:0 var(--space-4) 0 var(--space-12);margin-bottom:var(--space-8);font-size:var(--font-size-body-small);color:var(--ink-soft)}
.skipbar__show{position:relative;isolation:isolate;flex:none;margin:calc(-1 * var(--space-4)) 0;border:0;background:transparent;color:var(--ink);
  padding:0 10px;cursor:pointer;font-weight:600;font-size:var(--font-size-label)}
.skipbar__show::before{content:"";position:absolute;inset:var(--space-8) 0;z-index:-1;
  border:1px solid var(--rule);background:var(--bg);border-radius:var(--radius-control)}





.blockprompt{position:relative;background:transparent;border:0;border-left:3px solid var(--accent);
  border-radius:0;padding:12px 40px 12px 14px;margin-bottom:14px;font-size:var(--font-size-body-small);color:var(--ink);line-height:1.45}
.blockprompt b{font-weight:600;color:var(--accent-deep);margin-right:2px;text-transform:none;letter-spacing:0;font-family:inherit}
.blockprompt__act{margin-left:6px;border:0;background:none;color:var(--accent-deep);
  border-radius:0;padding:5px 0;cursor:pointer;font-weight:600;font-size:var(--font-size-body-small);text-decoration:underline}
.blockprompt__dismiss{
  position:absolute;top:2px;right:0;width:40px;height:40px;margin:0;padding:0;
  border:0;background:transparent;color:var(--ink-soft);cursor:pointer;
  display:inline-flex;align-items:center;justify-content:center;
}
@media (hover: hover) and (pointer: fine){
.blockprompt__dismiss:hover{color:var(--ink)}
}
.fatigue{position:relative;background:transparent;border:0;border-left:3px solid var(--ink-soft);
  border-radius:0;padding:12px 40px 12px 14px;margin-bottom:14px;font-size:var(--font-size-body-small);color:var(--ink);line-height:1.45}
.fatigue b{font-weight:600;color:var(--ink);margin-right:2px;text-transform:none;letter-spacing:0;font-family:inherit}
.fatigue__trim{margin-left:6px;border:0;background:none;color:var(--accent-deep);
  padding:5px 0;cursor:pointer;font-weight:600;font-size:var(--font-size-body-small);text-decoration:underline}
.fatigue__dismiss{
  position:absolute;top:2px;right:0;width:40px;height:40px;margin:0;padding:0;
  border:0;background:transparent;color:var(--ink-soft);cursor:pointer;
  display:inline-flex;align-items:center;justify-content:center;
}
@media (hover: hover) and (pointer: fine){
.fatigue__dismiss:hover{color:var(--ink)}
}

.term{display:inline-flex;align-items:center;justify-content:center;border:0;background:transparent;color:inherit;padding:10px 8px;margin:-10px -8px;
  min-width:44px;min-height:44px;box-sizing:border-box;vertical-align:middle;
  text-decoration:underline dotted;text-decoration-color:var(--ink-faint);cursor:pointer;font:inherit;line-height:1.4}
@media (hover: hover) and (pointer: fine){
.term:hover{text-decoration-color:var(--accent);color:var(--accent-deep)}
}
.glossary{
  position:absolute;z-index:60;max-width:280px;max-height:calc(100vh - 16px);max-height:calc(100dvh - 16px);
  display:flex;flex-direction:column;
  --material:almost-solid-glass;background:var(--glass-solid-surface);-webkit-backdrop-filter:var(--bar-blur);backdrop-filter:var(--bar-blur);
  border:0;border-radius:var(--radius-surface);padding:14px 16px 12px;box-shadow:var(--menu-shadow);
}
.glossary__close{position:absolute;top:0;right:0;border:0;background:transparent;color:var(--ink-soft);cursor:pointer;font-size:var(--control-icon-size);line-height:1;width:44px;height:44px;min-width:44px;min-height:44px;padding:0}
.glossary__term{flex:none;font-weight:var(--weight-semibold);font-size:var(--font-size-caption);margin:0 24px 6px 0;text-transform:uppercase;letter-spacing:.04em}
.glossary__body{flex:0 1 auto;min-height:0;overflow-y:auto;margin:0;font-size:var(--font-size-body-small);line-height:1.45;color:var(--ink-soft);overscroll-behavior:contain;}
body.is-focus-wo #glossary{background:var(--color-surface);border:0;border-radius:var(--radius-surface);box-shadow:var(--menu-shadow)}
body.is-focus-wo #glossary .glossary__close{background:var(--control-quiet-bg);color:var(--control-quiet-ink);border-radius:var(--radius-round)}
@media (hover: hover) and (pointer: fine){
body.is-focus-wo #glossary .glossary__close:hover:not(:disabled){background:var(--well);color:var(--control-quiet-ink)}
}
body.is-focus-wo #glossary .glossary__close:focus-visible{outline:var(--control-focus-outline);outline-offset:2px}
body.is-focus-wo #glossary .glossary__term{font-family:var(--font-language);font-size:var(--font-size-label);font-weight:var(--weight-semibold);line-height:var(--line-standard);color:var(--color-ink)}
body.is-focus-wo #glossary .glossary__body{font-family:var(--font-language);font-size:var(--font-size-body-small);line-height:var(--line-reading);color:var(--color-ink-secondary)}

.blockprogress{margin:0 0 16px;padding:12px 0;border:0;border-radius:0;background:transparent}
.blockprogress__title{font-weight:600;font-size:var(--font-size-caption);margin:0 0 8px;text-transform:uppercase;letter-spacing:.06em;color:var(--ink-faint)}
.review__summary{margin:0;font-size:var(--font-size-body-small);line-height:1.55;color:var(--ink)}
.review__hash{display:block;max-width:100%;overflow-wrap:anywhere;word-break:break-all;white-space:normal;font-family:var(--font-training-data)}
.review__preview-actions .btn{min-width:0;overflow-wrap:anywhere;word-break:break-word}

/* ============================================================
   Session summary — the screen a finished session earns
   Full-bleed over the app: the work is done, so nothing else competes for the
   page. One column, the evidence in the order it matters — records, how the
   lifts moved, what the muscles took, where the week now stands.
   It opens at rest (Direction D spec section 8): nothing animates to celebrate
   the save, so the panel is a fully legible page the moment it is up.
   ============================================================ */
.sumsheet{
  /* The bottom band is named because the pinned action has to reach through it:
     it sticks to the true bottom edge and pays this padding out of its own box,
     so the report scrolls under a button rather than past a gap beside one. */
  --sum-pad-b:calc(30px + env(safe-area-inset-bottom));
  --sum-pad-l:max(16px,env(safe-area-inset-left));
  --sum-pad-r:max(16px,env(safe-area-inset-right));
  position:fixed;inset:0;z-index:75;overflow-y:auto;overscroll-behavior:contain;
  display:flex;flex-direction:column;
  background:var(--bg);
  padding:calc(30px + env(safe-area-inset-top)) 0 var(--sum-pad-b);
}
.sumsheet.hidden{display:none!important}
/* The side padding belongs to the body, not the sheet, so the pinned bar can reach
   through it to the edges while staying inside the body's own box. The body fills
   the sheet down through its bottom band, so a short report still puts the bar on
   the bottom edge and a long one ends with the bar on it. */
.sumsheet__body{
  flex:1 0 auto;display:flex;flex-direction:column;
  width:min(100%,calc(var(--maxw) + var(--sum-pad-l) + var(--sum-pad-r)));margin:0 auto calc(-1 * var(--sum-pad-b));
  padding:0 var(--sum-pad-r) 0 var(--sum-pad-l);
}
/* The bar keeps its gap above the report and takes up whatever height the report leaves. */
.sumsheet__body::after{content:"";flex:1 0 var(--space-14)}

/* The report is a ledger (Direction D, spec 4.4): flat groups on hairlines, outcome
   words in ink, green only for a record, and no mark celebrating the save. */
.sum-eyebrow{
  margin-top:var(--space-16);text-align:left;font-family:var(--font-language);font-size:var(--font-size-body-small);
  font-weight:var(--weight-regular);line-height:var(--line-standard);color:var(--color-ink-secondary);
}
/* The heading takes focus so a screen reader is read the session before the
   controls, not because it is one. A ring here would draw a box around a title
   nobody can act on, so it stays off — every actual control keeps its own. */
.sum-hero{margin-top:var(--space-4);text-align:left;font-family:var(--font-language);font-size:var(--font-size-title);font-weight:var(--weight-semibold);letter-spacing:-.02em;line-height:var(--line-tight);color:var(--color-ink);text-wrap:balance}
.sum-hero:focus,.sum-hero:focus-visible{outline:none}
.sum-sub{margin-top:var(--space-8);text-align:left;font-family:var(--font-language);font-size:var(--font-size-body);line-height:var(--line-standard);color:var(--color-ink-secondary)}
.sum-stats{margin-top:var(--space-18);padding:var(--space-12) 0;border-top:1px solid var(--boundary-decorative);border-bottom:1px solid var(--boundary-decorative)}
:is(#sessionSummary,#todayDash) .sum-stats{grid-template-columns:repeat(auto-fit,minmax(5rem,1fr))}
:is(#sessionSummary,#todayDash) .sum-stats .statrow__cell{padding-inline:var(--space-4) var(--space-8)}
:is(#sessionSummary,#todayDash) .sum-stats .statrow__cell:first-child{padding-left:0}
:is(#sessionSummary,#todayDash) .sum-stats .statrow__cell:not(:first-child){padding-left:var(--space-12)}
:is(#sessionSummary,#todayDash) .sum-stats .statrow__val{font-family:var(--font-language);font-size:var(--font-size-metric);font-weight:var(--weight-semibold);letter-spacing:-.02em;font-variant-numeric:tabular-nums;line-height:var(--line-tight);color:var(--color-ink);text-align:left}
:is(#sessionSummary,#todayDash) .sum-stats.statrow--4 .statrow__val{font-size:var(--font-size-subtitle)}
:is(#sessionSummary,#todayDash) .sum-stats .statrow__cap{font-family:var(--font-language);font-size:var(--font-size-caption);font-weight:var(--weight-regular);line-height:var(--line-standard);color:var(--color-ink-secondary);text-align:left;white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:break-word}
.sum-sec{margin:var(--space-26) 0 0;padding-bottom:var(--space-8);border-bottom:1px solid var(--boundary-decorative);font-family:var(--font-language);font-size:var(--font-size-subtitle);font-weight:var(--weight-semibold);line-height:var(--line-tight);color:var(--color-ink)}

/* One group per lift: its name and outcome, the sets, a record line, the next target. */
.sum-grp{padding:var(--space-12) 0;border-bottom:1px solid var(--boundary-decorative)}
.sum-grp__h{display:flex;align-items:baseline;justify-content:space-between;gap:var(--space-12)}
.sum-grp__n{min-width:0;font-family:var(--font-language);font-size:var(--font-size-body);font-weight:var(--weight-regular);line-height:var(--line-standard);color:var(--color-ink);overflow-wrap:anywhere}
.sum-grp .sum-outcome,.sum-word{flex:none;font-family:var(--font-language);font-size:var(--font-size-body);font-weight:var(--weight-regular);line-height:var(--line-standard);color:var(--color-ink);text-align:right}
.sum-grp__sets{margin:var(--space-4) 0 0;font-family:var(--font-training-data);font-size:var(--font-size-body-small);line-height:var(--line-standard);color:var(--color-ink-secondary);overflow-wrap:anywhere}
.sum-pr{display:flex;align-items:baseline;flex-wrap:wrap;gap:var(--space-8);margin:var(--space-4) 0 0}
.sum-pr__over{font-family:var(--font-language);font-size:var(--font-size-body-small);line-height:var(--line-standard);color:var(--color-improved)}
.sum-grp__next{display:flex;align-items:center;gap:var(--space-8);margin:0;font-family:var(--font-language);font-size:var(--font-size-body);font-weight:var(--weight-semibold);line-height:var(--line-standard);color:var(--color-ink);font-variant-numeric:tabular-nums}
/* The lift's ledger (refinement A3): a caption column that names each line's question (how it went against the last
   comparable session, the record, what next time asks) beside its value. The column is sized in em so it grows with
   the text; every value starts at the column's edge, so an outcome word lines up with the PR check and the Next glyph beneath it. */
.sum-ledger{display:grid;grid-template-columns:minmax(5em,max-content) minmax(0,1fr);align-items:center;gap:var(--space-8) var(--space-12);margin:var(--space-8) 0 0}
.sum-ledger__row{display:contents}
.sum-ledger__k{font-family:var(--font-language);font-size:var(--font-size-caption);line-height:var(--line-standard);color:var(--color-ink-secondary);overflow-wrap:anywhere}
.sum-ledger__v{min-width:0;margin:0;display:flex;align-items:center}
.sum-ledger .verdictmark{gap:var(--space-8)}
.sum-ledger .sum-outcome,.sum-ledger .sum-word{text-align:left}
.sum-ledger .sum-pr{flex-wrap:nowrap;align-items:flex-start;margin:0}
.sum-ledger .sum-pr__over{min-width:0}
.sum-ledger .sum-pr .verdictmark{flex:none;padding-top:2px}
@media (hover: hover) and (pointer: fine){
}

.sum-baseline{
  margin-top:var(--space-18);padding-left:14px;border-left:2px solid var(--boundary-selected-quiet);
  font-family:var(--font-language);font-size:var(--font-size-body);line-height:var(--line-reading);color:var(--color-ink-secondary);
}
/* The finish screen (owner decisions, 2026-11-05: B + C). The card row previews the images Share will send: they are
   pictures, so their type scales with the card (container units), and their grounds are the accent and the inverted
   ink rather than the page. */
.sum-cards{display:flex;gap:var(--space-12);margin:var(--space-18) calc(-1 * var(--sum-pad-r)) 0 calc(-1 * var(--sum-pad-l));padding:0 var(--sum-pad-r) 0 var(--sum-pad-l);scroll-padding-inline:var(--sum-pad-l) var(--sum-pad-r);
  overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;overscroll-behavior-x:contain}
.sum-cards::-webkit-scrollbar{display:none}
/* The finish screen's row (share templates, owner 2026-11-11): the Highlight and Numbers cards as the share renderer
   draws them, square on the dark ground, so the row previews exactly what Share sends. */
.sharecard{margin:0;flex:none;width:calc(100% - var(--sum-pad-l) - var(--sum-pad-r) - var(--space-32));scroll-snap-align:start;aspect-ratio:1;border-radius:var(--radius-prominent);overflow:hidden;background:var(--share-card-dark);outline:1px solid var(--boundary-decorative);outline-offset:-1px}
.sum-cards .sharecard:only-child{width:calc(100% - var(--sum-pad-l) - var(--sum-pad-r))}
.sharecard__img{display:block;width:100%;height:100%}
/* The four numbers: Sans with tabular numerals (Mono's comma opens a gap in "6,453"), the unit once, small. */
/* Saved evidence changes only in the final finish/finding slot. */
.sum-profile{margin-top:var(--space-18);padding:var(--space-14) 0;border-block:1px solid var(--boundary-decorative)}
.sum-profile__open{display:block;width:100%;padding:var(--space-12) 0;min-height:var(--control-target);border:0;background:none;color:var(--control-quiet-ink);text-align:left;font-family:var(--font-language)}
.sum-profile__open .profile-reading{margin:0;padding:0;border:0}
.sum-profile__open>.profile-caption{display:block;margin-top:var(--space-8)}
.sum-profile__lift{margin:var(--space-12) 0 var(--space-4);font-size:var(--font-size-body-small);line-height:var(--line-standard);font-weight:var(--weight-semibold);overflow-wrap:anywhere}
.sum-profile__reader{display:block;min-height:var(--control-target);padding:var(--space-8) 0;background:none;border:0;color:var(--control-quiet-ink);text-align:left;font:inherit;font-size:var(--font-size-body-small);text-decoration:underline;text-underline-offset:3px}
.sum-profile__open:focus-visible,.sum-profile__reader:focus-visible{outline:var(--control-focus-outline);outline-offset:2px}
.sum-finding{display:block;width:100%;min-height:var(--control-target);margin-top:var(--space-18);padding:var(--space-14) 0;border:0;border-block:1px solid var(--boundary-decorative);background:var(--control-quiet-bg);color:var(--control-quiet-ink);text-align:left;font-family:var(--font-language);font-size:var(--font-size-body);line-height:var(--line-reading);overflow-wrap:anywhere}
.sum-finding__label{font-weight:var(--weight-semibold);margin-right:var(--space-8)}
.sum-finding:hover{background:var(--well)}
.sum-finding.is-pressed{background:var(--row-pressed-bg);transform:var(--control-pressed-transform)}
.sum-finding:focus-visible{outline:var(--control-focus-outline);outline-offset:2px}
#sessionSummary .sum-tiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,8.5rem),1fr));gap:var(--space-18) var(--space-14);margin-top:var(--space-26);padding:0;border:0}
.sum-tile{min-width:0}
.sum-tile p{margin:0}
.sum-tile__lab{font-family:var(--font-language);font-size:var(--font-size-label);font-weight:var(--weight-semibold);letter-spacing:.1em;text-transform:uppercase;line-height:var(--line-standard);color:var(--color-ink-secondary);text-wrap:balance}
.sum-tile__val{margin-top:var(--space-4)!important;font-family:var(--font-language);font-size:var(--font-size-display);font-weight:var(--weight-semibold);line-height:1.05;letter-spacing:-.02em;font-variant-numeric:tabular-nums;color:var(--color-ink);white-space:nowrap}
.sum-tile__val.is-accent{color:var(--accent-deep)}
.sum-tile__val small{margin-left:.18em;font-size:var(--font-size-body);font-weight:var(--weight-medium);letter-spacing:0;color:var(--color-ink-secondary)}
.sum-tile__sub{margin-top:var(--space-4)!important;font-family:var(--font-language);font-size:var(--font-size-body-small);line-height:var(--line-standard);color:var(--color-ink-secondary);text-wrap:balance;overflow-wrap:anywhere}
/* The records, as tiles that scroll sideways under the heading. */
.sum-rtiles{display:flex;gap:var(--space-8);overflow-x:auto;margin:var(--space-12) calc(-1 * var(--sum-pad-r)) 0 calc(-1 * var(--sum-pad-l));padding:0 var(--sum-pad-r) var(--space-4) var(--sum-pad-l);scrollbar-width:none}
.sum-rtiles::-webkit-scrollbar{display:none}
.sum-rtile{flex:none;width:11.5em;max-width:70%;padding:var(--space-12) var(--space-14);border:1px solid var(--boundary-decorative);border-radius:var(--radius-surface);background:var(--surface)}
.sum-rtile p{margin:0}
.sum-rtile__n{font-family:var(--font-language);font-size:var(--font-size-body-small);line-height:var(--line-standard);color:var(--color-ink-secondary);overflow-wrap:anywhere}
.sum-rtile__v{margin-top:var(--space-4)!important;font-family:var(--font-language);font-size:var(--font-size-subtitle);font-weight:var(--weight-semibold);font-variant-numeric:tabular-nums;color:var(--color-ink)}
.sum-rtile__d,.sum-lift__pr{display:flex;align-items:center;gap:var(--space-4);margin-top:var(--space-4)!important;font-family:var(--font-training-data);font-size:var(--font-size-body-small);color:var(--color-improved)}
/* Every lift: the name and its outcome word, then its sets with its record, then the next target. */
.sum-lift .sum-grp__h{flex-wrap:wrap;gap:var(--space-4) var(--space-12)}
.sum-lift__r{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:0 var(--space-12)}
.sum-lift__r .sum-lift__pr{margin:var(--space-4) 0 0!important}
.sum-lift__pr .verdictmark,.sum-rtile__d .verdictmark{flex:none}
.sum-lift__next{display:flex;align-items:center;gap:var(--space-8);margin:var(--space-8) 0 0}
.sum-lift__k{font-family:var(--font-language);font-size:var(--font-size-body-small);color:var(--color-ink-secondary)}
/* While the share sheet is up the finish screen stays in view beneath its scrim. */
.sumsheet.is-under-sheet{z-index:39}
/* The share sheet (finish-share PR 2): the card as it will be sent, then its card, format and style. */
/* The share sheet (share templates, owner 2026-11-11): Edit in the bar's leading slot, the cards in a swiping row,
   then the format, the background and Save/Share. The editor slides up inside the sheet, always dark like a photo
   editor, so a card is judged against a neutral surround in either theme. */
/* The action bar carries the home-indicator inset itself, so the sheet does not add it a second time. */
.sheet--sharecard{height:var(--sheet-max-height);max-height:var(--sheet-max-height);display:flex;flex-direction:column;overflow:hidden;padding-bottom:0}
/* Equal side slots that keep their content (Edit, close) and a centre that shrinks first and wraps: at 200% text a
   centred title of auto width ran over Edit ("EditarCompartilhar"). */
.sheetband.sharesheet__band{grid-template-columns:minmax(max-content,1fr) minmax(0,max-content) minmax(max-content,1fr);column-gap:var(--space-12);grid-template-areas:"handle handle handle" "lead title close";padding-bottom:var(--space-4)}
.sheetband.sharesheet__band .sheetband__title{min-width:0;text-align:center;align-self:center;padding-block:0;font-size:var(--font-size-body);overflow-wrap:anywhere}
.sheetband.sharesheet__band .sheetband__close{justify-self:end}
.sharesheet__edit{grid-area:lead;justify-self:start;align-self:center;min-height:var(--control-target);padding:0 8px 0 0;
  color:var(--accent-deep);font-size:var(--font-size-body);font-weight:var(--weight-medium);text-decoration:none}
.sharesheet__edit:not([hidden]){display:inline-flex;align-items:center;gap:6px}
.sharesheet__edit > .icon-mask{width:18px;height:18px;flex:none}
.sharesheet__edit[hidden]{display:none}
.sharesheet{flex:1 1 auto;min-height:0;overflow-y:auto;padding:0 var(--space-16) var(--space-8);display:flex;flex-direction:column;gap:var(--space-12)}
/* The card area does not grow with the text size (the slide is sized from the stage): a 16rem floor doubled at 200%
   and pushed the format, backgrounds and note below the fold. */
.sharesheet__stage{flex:1 1 0;min-height:clamp(200px,62vw,256px);display:flex;flex-direction:column;justify-content:center;margin:0 calc(-1 * var(--space-16))}
#shareRecordRow{flex:none}
.sharesheet__records{display:flex;flex-wrap:nowrap;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x mandatory;scrollbar-width:none;margin-inline:calc(-1 * var(--space-16));padding-inline:var(--space-16);scroll-padding-inline:var(--space-16);mask-image:linear-gradient(to right,transparent,var(--color-ink) var(--space-12),var(--color-ink) calc(100% - var(--space-16)),transparent)}
.sharesheet__records::-webkit-scrollbar{display:none}
.sharesheet__records .pchip{scroll-snap-align:start;gap:var(--space-4);font-size:var(--font-size-body-small);font-weight:var(--weight-medium)}
.sharesheet__records .pchip.is-active{font-weight:var(--weight-semibold)}
.sheet--sharecard .sharesheet{padding-bottom:0}
.sheet--sharecard > .sharesheet__note{padding:var(--space-12) var(--space-16) var(--space-8)}
.sheet--sharecard:has(#shareRecordRow:not([hidden])) > .sharesheet__note{padding-top:0}
.sheet--sharecard:has(#shareRecordRow:not([hidden])){height:calc(var(--sheet-max-height) + var(--control-target) + var(--space-12));max-height:var(--vvh,100dvh)}
.sharesheet__rail{flex:none;display:flex;align-items:center;gap:16px;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x mandatory;scrollbar-width:none;
  padding:6px calc((100% - var(--slide-w,15rem)) / 2) 10px}
.sharesheet__rail::-webkit-scrollbar{display:none}
.sharesheet__slide{flex:none;margin:0;width:var(--slide-w,15rem);height:var(--slide-h,26.5rem);scroll-snap-align:center;border-radius:var(--radius-surface);overflow:hidden;
  box-shadow:none;transform:scale(.9);opacity:.85;transition:transform .28s cubic-bezier(.2,.8,.2,1),opacity .28s}
.sharesheet__slide.is-current{transform:none;opacity:1}
.sharesheet__slide.is-clear{background:repeating-conic-gradient(var(--share-checker-a) 0 25%,var(--share-checker-b) 0 50%) 0 0/14px 14px}
.sharesheet__slide canvas{display:block;width:100%;height:100%}
.sharesheet__name{margin:0;text-align:center;font-family:var(--font-language);font-size:var(--font-size-body);font-weight:var(--weight-semibold);line-height:var(--line-tight);color:var(--color-ink)}
.sharesheet__dots{display:flex;justify-content:center;gap:8px;padding:8px 0 0}
.sharesheet__dots i{width:8px;height:8px;border-radius:var(--radius-compact);background:var(--color-ink-secondary);opacity:.5;transition:width .2s,opacity .2s}
.sharesheet__dots i.is-on{width:22px;background:var(--accent-deep);opacity:1}
.sharesheet__segments{width:min(100%,18rem);align-self:center;flex:none}
.sharesheet__shape{--corner:2px;display:inline-block;flex:none;margin-inline-end:6px;border-radius:var(--corner);background:currentColor;opacity:.6}
.sharesheet__shape.is-story{width:8px;height:14px}
.sharesheet__shape.is-square{width:11px;height:11px}
/* At large text the swatches take a second row, and a long label breaks inside its own button rather than past it. */
.sharesheet__grounds{flex:none;display:flex;flex-wrap:wrap;justify-content:center;gap:var(--space-12) var(--space-16)}
.sharesheet__ground{border:0;background:none;padding:0;min-width:3.5rem;display:grid;justify-items:center;gap:6px;cursor:pointer;
  font-family:var(--font-language);font-size:var(--font-size-caption);font-weight:var(--weight-medium);color:var(--color-ink-secondary);
  max-width:100%;text-align:center;overflow-wrap:anywhere}
/* Wide enough for the swatch and its 4px selection ring, whatever the generic button floor says. */
#shareGrounds .sharesheet__ground{min-width:3.5rem}
.sharesheet__ground[aria-checked="true"]{color:var(--color-ink);font-weight:var(--weight-semibold)}
.sharesheet__ground:focus-visible{outline:var(--control-focus-outline);outline-offset:4px;border-radius:var(--radius-control)}
.sharesheet__swatch{position:relative;width:44px;height:44px;border-radius:50%;display:grid;place-items:center;background-size:cover;background-position:center;
  box-shadow:var(--boundary-share-swatch-shadow)}
.sharesheet__ground[aria-checked="true"] .sharesheet__swatch::after{content:"";position:absolute;inset:-4px;border-radius:50%;box-shadow:var(--boundary-share-ground-selected-shadow)}
.sharesheet__swatch.is-dark{background-color:var(--share-card-dark)}
.sharesheet__swatch.is-orange{background-color:var(--share-card-orange)}
.sharesheet__swatch.is-clear{background:repeating-conic-gradient(var(--share-checker-a) 0 25%,var(--share-checker-b) 0 50%) 0 0/10px 10px}
.sharesheet__swatch.is-add{background-color:var(--control-track);color:var(--color-ink)}
.sharesheet__swatch > .icon-mask{width:20px;height:20px}
/* The camera badge on the chosen photo sits above the selection ring, cut out of it by the sheet's colour. */
.sharesheet__cam{position:absolute;z-index:1;right:-4px;bottom:-4px;width:20px;height:20px;border-radius:50%;display:grid;place-items:center;
  background:var(--color-ink);color:var(--surface);box-shadow:var(--boundary-share-cam-cut-shadow)}
.sharesheet__cam > .icon-mask{width:11px;height:11px}
.sharesheet__note{flex:none;margin:0;text-align:center;font-family:var(--font-language);font-size:var(--font-size-body-small);line-height:var(--line-standard);color:var(--color-ink-secondary)}
.sharesheet__actions{flex:none;display:flex;gap:var(--space-8);padding:var(--space-12) var(--space-16) calc(var(--space-16) + env(safe-area-inset-bottom));border-top:1px solid var(--boundary-persistent)}
.sharesheet__actions .btn{flex:1 1 0;width:auto;gap:8px}
.sharesheet__actions #shareCardShare{flex-grow:1.35}
.sharesheet__actions .icon-mask{width:18px;height:18px}
.sharedit{position:absolute;inset:0;z-index:2;display:flex;flex-direction:column;border-radius:inherit;background:var(--share-editor-bg);color:var(--share-editor-ink);
  --color-ink:var(--share-editor-ink);--color-ink-secondary:var(--share-editor-ink-secondary);--switch-off-track:var(--share-editor-switch-off);
  --share-checker-a:var(--share-editor-checker-a);--share-checker-b:var(--share-editor-checker-b);
  transform:translateY(100%);transition:transform .34s cubic-bezier(.2,.8,.2,1)}
.sharedit.is-open{transform:none}
@media (prefers-reduced-motion: reduce){.sharedit,.sharesheet__slide{transition:none}}
/* As the sheet's header: content-sized sides (Cancel, Done) and a centre that shrinks and wraps at 200% text. */
.sharedit__bar{flex:none;display:grid;grid-template-columns:minmax(max-content,1fr) minmax(0,max-content) minmax(max-content,1fr);column-gap:var(--space-12);align-items:center;min-height:3.5rem;padding:8px 16px 0}
.sharedit__title{min-width:0;margin:0;text-align:center;overflow-wrap:anywhere;font-family:var(--font-language);font-size:var(--font-size-body);font-weight:var(--weight-semibold)}
.sharedit__cancel,.sharedit__done{min-height:var(--control-target);padding:0 4px;border:0;background:none;cursor:pointer;font-family:var(--font-language);font-size:var(--font-size-body);color:var(--share-editor-ink)}
.sharedit__cancel{justify-self:start}
.sharedit__done{justify-self:end;color:var(--share-card-accent);font-weight:var(--weight-semibold)}
.sharedit__cancel:focus-visible,.sharedit__done:focus-visible{outline:2px solid var(--share-editor-ink);outline-offset:2px;border-radius:var(--radius-control)}
.sharedit__stage{flex:1 1 0;min-height:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;padding:8px 20px}
.sharedit__frame{position:relative;flex:none;touch-action:none;border-radius:var(--radius-surface);overflow:hidden;cursor:grab;box-shadow:var(--elevation-share-editor-frame-shadow)}
.sharedit__frame.is-fixed{cursor:default}
.sharedit__frame.is-clear{background:repeating-conic-gradient(var(--share-checker-a) 0 25%,var(--share-checker-b) 0 50%) 0 0/14px 14px}
.sharedit__frame canvas{display:block;width:100%;height:100%}
.sharedit__box{--corner:10px;position:absolute;border:1.5px solid var(--share-editor-box-edge);border-radius:var(--corner);pointer-events:none;box-shadow:var(--elevation-share-editor-box-shadow);opacity:0;transition:opacity .15s}
.sharedit__frame.is-active .sharedit__box{opacity:1}
.sharedit__hint{flex:none;margin:0;text-align:center;font-family:var(--font-language);font-size:var(--font-size-caption);line-height:var(--line-standard);color:var(--share-editor-ink-secondary)}
.sharedit__tools{flex:none;display:grid;gap:6px;padding:8px 20px calc(16px + env(safe-area-inset-bottom))}
.sharedit__size{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:14px;align-items:center;min-height:var(--control-target)}
.sharedit__a{--glyph:20px;font-family:var(--font-language);font-size:var(--glyph);font-weight:var(--weight-semibold);color:var(--share-editor-ink-secondary)}
.sharedit__a.is-small{--glyph:13px}
.sharedit__size input{width:100%;accent-color:var(--share-card-accent)}
.sharedit__shade{display:flex;align-items:center;justify-content:space-between;gap:var(--space-12);min-height:var(--control-target);font-family:var(--font-language);font-size:var(--font-size-body);font-weight:var(--weight-medium)}
.sharedit__reset{justify-self:center;width:auto;min-height:40px;padding:0 20px}
.sharedit [hidden],.sharedit .hidden{display:none}
.sum-cards__hint{margin:var(--space-8) 0 0;text-align:center;text-wrap:balance;font-family:var(--font-language);font-size:var(--font-size-body-small);line-height:var(--line-standard);color:var(--color-ink-secondary)}
.sum-see{display:flex;margin:var(--space-18) 0 0}
.sum-see #sumSee{width:100%}
/* The backup cue (Packet E): a quiet note in the report, set like the baseline line, with two text actions that are
   full targets. It is never a banner or a button pair competing with Share and Done. */
.sum-backup{margin-top:var(--space-18);padding-left:14px;border-left:2px solid var(--boundary-selected-quiet)}
.sum-backup__text,.sum-backup__done{margin:0;font-family:var(--font-language);font-size:var(--font-size-body);line-height:var(--line-reading);color:var(--color-ink-secondary)}
.sum-backup__done{margin-top:var(--space-18);padding-left:14px;border-left:2px solid var(--boundary-selected-quiet)}
.sum-backup__done:focus{outline:none}
.sum-backup__done:focus-visible{outline:var(--control-focus-outline);outline-offset:2px}
.sum-backup__actions{display:flex;flex-wrap:wrap;column-gap:var(--space-18)}
.sum-backup__actions .text-link{display:inline-flex;align-items:center;min-height:var(--control-target);padding:0;font-family:var(--font-language);font-weight:var(--weight-semibold);text-align:left}
.sum-backup__save.text-link{color:var(--color-ink)}
.sum-backup__dismiss.text-link{color:var(--color-ink-secondary);font-weight:var(--weight-regular)}
.sum-backup__actions .text-link:focus-visible{outline:var(--control-focus-outline);outline-offset:2px}
.sum-backup__actions .text-link:disabled{color:var(--color-disabled-reason);cursor:default}
.sum-split{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--space-12);margin-top:var(--space-26)}
.sum-split__k{margin:0;font-family:var(--font-language);font-size:var(--font-size-body-small);line-height:var(--line-standard);color:var(--color-ink-secondary)}
.sum-week{margin:0;font-family:var(--font-language);font-size:var(--font-size-body);font-weight:var(--weight-medium);line-height:var(--line-standard);color:var(--color-ink)}
.sum-segbar{margin-top:var(--space-8)}
#sessionSummary .sum-segbar .segbar__seg{background:var(--boundary-required);border-radius:var(--radius-compact)}
#sessionSummary .sum-segbar .segbar__seg.is-done{background:var(--color-ink)}
.sum-next{display:block;margin:0;padding:0;border:0}
.sum-next__lab{letter-spacing:0;text-transform:none;font-weight:var(--weight-regular)}
.sum-next__day{margin:0;font-family:var(--font-language);font-size:var(--font-size-body);font-weight:var(--weight-medium);line-height:var(--line-standard);color:var(--color-ink)}
.sum-next__meta{margin:0;font-family:var(--font-language);font-size:var(--font-size-body-small);line-height:var(--line-standard);color:var(--color-ink-secondary)}
#sumSee,#sharePhotoPick{
  display:flex;align-items:center;justify-content:center;min-height:54px;flex:1 1 0;
  border:1px solid var(--control-quiet-boundary);border-radius:var(--radius-control);
  background:var(--control-quiet-bg);color:var(--control-quiet-ink);
  font-family:var(--font-language);font-size:var(--font-size-control);font-weight:var(--weight-semibold);line-height:var(--line-standard);
}
@media (hover: hover) and (pointer: fine){
#sumSee:hover:not(:disabled),#sharePhotoPick:hover:not(:disabled){background:var(--well);border-color:var(--control-quiet-boundary);color:var(--control-quiet-ink)}
}
#sumSee.is-pressed:not(:disabled),#sharePhotoPick.is-pressed:not(:disabled){background:var(--row-pressed-bg);border-color:var(--control-quiet-boundary);color:var(--control-quiet-ink);transform:var(--control-pressed-transform)}
#sumSee:focus-visible,#sharePhotoPick:focus-visible{outline:var(--control-focus-outline);outline-offset:2px}
#sumSee:disabled,#sharePhotoPick:disabled{background:var(--control-quiet-bg);border-color:var(--boundary-decorative);color:var(--color-disabled-reason);opacity:1;cursor:not-allowed;transform:none}
/* The way out is never below the fold. A session ends with a lifter holding a
   phone and breathing hard, so both actions stay put and the report moves under them.
   Like the onboarding pinned region it reaches through the body's side padding, so the
   persistent-action surface runs edge to edge under its hairline instead of sitting in
   the text column as a box. */
.sum-actions{
  position:sticky;bottom:calc(-1 * var(--sum-pad-b));z-index:1;display:flex;flex-wrap:wrap;gap:var(--space-12);order:1;
  margin:0 calc(-1 * var(--sum-pad-r)) 0 calc(-1 * var(--sum-pad-l));
  padding:var(--space-12) var(--sum-pad-r) var(--sum-pad-b) var(--sum-pad-l);
  background:var(--bg);border-top:1px solid var(--boundary-persistent);
  box-shadow:var(--elevation-persistent-shadow);
}
/* Share is the finish screen's strong action (owner decisions, 2026-11-05); Done sits beside it at the same width. */
/* Each takes at least 8rem, so at large text sizes they stack rather than clip their words. */
#sumDone{flex:1 1 8rem;min-height:54px;padding-inline:var(--space-8)}
#sumShare{
  flex:1 1 8rem;padding-inline:var(--space-8);min-height:54px;border:1px solid var(--control-primary-boundary);border-radius:var(--radius-button);
  background:var(--control-primary-bg);color:var(--control-primary-ink);
  font-family:var(--font-language);font-size:var(--font-size-control);font-weight:var(--weight-semibold);line-height:var(--line-standard);
}
@media (hover: hover) and (pointer: fine){
#sumShare:hover:not(:disabled){background:var(--control-primary-bg);border-color:var(--control-primary-boundary);color:var(--control-primary-ink)}
}
#sumShare.is-pressed:not(:disabled){background:var(--control-primary-bg);border-color:var(--control-primary-boundary);color:var(--control-primary-ink);transform:var(--control-pressed-transform)}
#sumShare:focus-visible{outline:var(--control-focus-outline);outline-offset:2px}
#sumShare:disabled{background:var(--control-primary-disabled-bg);border-color:var(--boundary-decorative);color:var(--control-primary-disabled-ink);opacity:1;cursor:not-allowed;transform:none}

/* The restore-backup and end-block panels: native <dialog> elements sharing the
   shape of the storage-recovery dialog above them, scrim included. Neither
   dimmed the page before, which left them the only modals in the app that did
   not; the element they now use is what makes a backdrop available, and every
   other dialog already draws one. */
.importchoice{
  position:fixed;left:50%;top:calc(var(--vv-top,0px) + var(--vvh,100dvh) / 2);transform:translate(-50%,-50%);z-index:70;width:min(92%,360px);margin:0;
  max-height:min(90dvh,var(--dialog-max-height));overflow:auto;overscroll-behavior:contain;
  background:var(--surface);border:1px solid var(--rule);border-radius:var(--radius-prominent);color:var(--ink);
  padding:20px 18px 16px;box-shadow:var(--elevation-dialog-shadow);
}
.importchoice::backdrop{background:var(--scrim)}
.importchoice__title{font-weight:var(--weight-semibold);font-size:var(--font-size-subtitle);margin:0 0 8px;text-transform:none;letter-spacing:0}
.importchoice__body{margin:0 0 14px;font-size:var(--font-size-body-small);line-height:1.45;color:var(--ink-soft);white-space:pre-line}

.storage-recovery{
  position:fixed;left:50%;top:calc(var(--vv-top,0px) + var(--vvh,100dvh) / 2);transform:translate(-50%,-50%);z-index:80;width:min(92%,380px);margin:0;
  background:var(--surface);border:1px solid var(--rule);border-radius:var(--radius-prominent);
  padding:20px 18px 16px;box-shadow:var(--elevation-dialog-shadow);
  max-height:min(90dvh,var(--dialog-max-height));overflow:auto;overscroll-behavior:contain;color:var(--ink);
}
.storage-recovery::backdrop{background:var(--scrim)}
.storage-recovery__copy{margin:0 0 12px;padding:10px 12px;background:var(--well);border-radius:var(--radius-surface);font-size:var(--font-size-body-small);line-height:1.4}
.storage-recovery__copy-label{font-weight:var(--weight-semibold);margin:0 0 4px}
.exercise-catalog-recovery{
  position:fixed;left:50%;top:calc(var(--vv-top,0px) + var(--vvh,100dvh) / 2);transform:translate(-50%,-50%);z-index:80;width:min(92%,380px);margin:0;
  background:var(--surface);border:0;border-radius:var(--radius-prominent);
  padding:20px 18px 16px;box-shadow:var(--elevation-dialog-shadow);
  max-height:min(90dvh,var(--dialog-max-height));overflow:auto;overscroll-behavior:contain;color:var(--ink);
}
.exercise-catalog-recovery::backdrop{background:var(--scrim)}
.exercise-catalog-recovery__status{margin:0 0 12px;font-size:var(--font-size-body-small);line-height:1.45;color:var(--ink-soft)}
.exercise-catalog-recovery__status:empty{display:none}
.exercise-catalog-recovery .btnrow .btn{width:100%;min-height:var(--control-target)}
.settings-warn{margin:8px 0 0;font-size:var(--font-size-body-small);line-height:1.4;color:var(--accent-deep)}
.settings-warn.hidden,[hidden].settings-warn{display:none}

.attention{display:flex;flex-direction:column;gap:0;margin-bottom:14px}

/* A grouped-list row: 44px tall, full-bleed to the card edge so the press tint
   and the hairline read as part of the list above it. The box's own 44px hit
   area is pulled in by 11px on each side so the 22px artwork lines up with the
   panel's 14px gutter and sits 14px from its label. */
.field--check{
  position:relative;display:flex;align-items:center;gap:14px;min-height:44px;
  font-size:var(--font-size-control);font-weight:500;letter-spacing:normal;text-transform:none;color:var(--ink);
  cursor:pointer;-webkit-tap-highlight-color:transparent;
}
.field--check input{width:auto;flex:none;margin:0 -11px}
.field--check + .field--check::before{
  content:"";position:absolute;top:0;left:50px;right:0;border-top:1px solid var(--rule);
}
.field--check.is-pressed{background:var(--row-pressed-bg)}
.field--check:has(input:disabled){color:var(--ink-faint);cursor:default}
.field--check:has(input:disabled).is-pressed{background:none}
/* Onboarding */
/* Keep layout and hit-target dimensions in device pixels, but express every
   onboarding text size in rem so the browser's root text setting can enlarge
   copy without turning the whole page into a zoomed viewport. */
.onboarding{position:fixed;inset:0;z-index:50;overflow:auto;background:var(--bg);
  padding:calc(12px + env(safe-area-inset-top)) max(16px,env(safe-area-inset-right)) calc(88px + env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left));overscroll-behavior:contain;}
.onboarding.active{display:block}
/* #449: this layer scrolls above the shell's status-bar band (body::before,
   #440), so it paints the same paper band over its own top inset. */
.onboarding::before{content:"";position:fixed;top:0;left:0;right:0;z-index:20;
  height:env(safe-area-inset-top,0px);background:var(--bg);pointer-events:none}
.onb{max-width:var(--maxw);margin:0 auto}
.onb__head{margin-bottom:18px}
.onb__step{margin:6px 0 0;font-size:var(--font-size-label);color:var(--ink-faint);letter-spacing:var(--track-label);text-transform:uppercase;font-weight:600}
.onb__body{margin-bottom:18px}
.onb__opts{display:flex;flex-direction:column;gap:10px}
.onb__opts.onb__grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(88px,1fr));gap:8px}
.onb__review{display:flex;flex-direction:column;gap:12px}
.onb__day{background:var(--surface);border:1px solid var(--rule);border-radius:var(--radius-surface);padding:12px 14px}
.onb__dayname{font-weight:var(--weight-semibold);font-size:var(--font-size-control);letter-spacing:0;cursor:pointer}
.onb__dayname span{display:block;margin-top:4px;font-weight:500;font-size:var(--font-size-label);line-height:1.35;letter-spacing:0;text-transform:none;color:var(--ink-soft)}
.onb__day[open] .onb__dayname{margin-bottom:8px}
.onb__ex{font-size:var(--font-size-body-small);color:var(--ink-soft);padding:4px 0;border-top:1px solid var(--rule)}
.onb__ex:first-of-type{border-top:0;padding-top:0}
.onb__ex b{color:var(--ink);font-weight:600}
.onb__nav{display:flex;gap:10px;padding:12px 0}
.onb__nav .btn{flex:1}
.onb__nav .btn--steel{flex:.4}
/* A lone Back (steps whose primary action lives in the body, like Import)
   should not render at the 40% width meant for a Back/Continue pair. */
.onb__nav .btn--steel:only-child{flex:1}

/* Settings' training-data fields take the data face with tabular figures, as the editor's metric fields do. */
#settings :is(#jumpPct,#minJump,#rirHigh,#hardRir,#restSec){font-family:var(--font-training-data);font-feature-settings:"tnum";font-variant-numeric:tabular-nums}
.guide-replay{padding:12px 14px;display:grid;gap:8px}
.guide-replay[hidden]{display:none}
.settings-panel.guide-replay.is-open{display:grid}
.guide-replay .lede{margin:0 0 2px}
/* The guides are a list of rows (the native UI kit's row anatomy), not a stack of bordered buttons. */
.guide-replay .btn{width:100%;justify-content:flex-start;text-align:left;padding:12px 0;border:0;border-top:1px solid var(--boundary-decorative);border-radius:0;background:transparent}
.guide-replay__item{display:grid;gap:3px}
.guide-replay__title{font-family:var(--font-language);font-weight:var(--weight-semibold);color:var(--color-ink)}
.guide-replay__body{font-family:var(--font-language);font-size:var(--font-size-caption);font-weight:var(--weight-regular);
  line-height:var(--line-standard);color:var(--color-ink-secondary);white-space:normal}

/* Icon and copy share the first row; the action takes a row of its own, the way
   the first-run install card sets it. A CTA is a 100%-width control that does
   not shrink, so beside the copy it would take the whole banner and squeeze the
   text to one word per line. */
.installbanner{position:fixed;left:50%;transform:translateX(-50%);
  bottom:calc(var(--nav) + 16px + env(safe-area-inset-bottom));z-index:64;
  width:min(92%,420px);display:grid;grid-template-columns:auto 1fr;gap:10px 12px;align-items:center;
  background:var(--color-surface);border:1px solid var(--boundary-floating);border-radius:var(--radius-surface);
  padding:13px 14px;box-shadow:var(--elevation-floating-shadow);
  animation:toastin .3s cubic-bezier(.2,.7,.2,1)}
.installbanner.hidden{display:none}
/* An open sheet makes the page behind it inert, so the banner is already
   unreachable there; drawn over the sheet it only hides the sheet's own rows.
   It comes back with the page, still dismissed or not as the lifter left it. */
body.is-sheet-open .installbanner{display:none}
.installbanner__close{position:absolute;top:4px;right:4px;display:grid;place-items:center;
  min-width:var(--control-target);min-height:var(--control-target);padding:0;border:0;border-radius:var(--radius-round);
  background:var(--control-quiet-bg);color:var(--control-quiet-ink);
  font-family:var(--font-language);font-size:var(--font-size-control);line-height:var(--line-tight);cursor:pointer}
@media (hover: hover) and (pointer: fine){
.installbanner__close:hover:not(:disabled){background:var(--well)}
}
.installbanner__close.is-pressed:not(:disabled){background:var(--row-pressed-bg);transform:var(--control-pressed-transform)}
.installbanner__close:focus-visible{outline:var(--control-focus-outline);outline-offset:2px}
.installbanner__close:disabled{color:var(--color-disabled-reason);cursor:not-allowed;transform:none}
.installbanner__icon{width:34px;height:34px;border-radius:var(--radius-control);background:url("icons/icon-192.png") center/cover no-repeat}
/* The corner the ✕ is drawn in belongs to the copy row alone, so the action
   below it still sits square in the card. */
.installbanner__text{min-width:0;padding-right:50px}
.installbanner__title{margin:0 0 2px;font-family:var(--font-language);font-size:var(--font-size-body-small);
  font-weight:var(--weight-semibold);line-height:var(--line-standard);color:var(--color-ink)}
.installbanner__body{margin:0;font-family:var(--font-language);font-size:var(--font-size-body-small);
  line-height:var(--line-reading);color:var(--color-ink-secondary)}
.installbanner__body b{color:var(--color-ink);font-weight:var(--weight-semibold)}
.installbanner__action{grid-column:1/-1}
.ios-share{display:inline-block;width:15px;height:15px;vertical-align:-3px;margin:0 1px;
  fill:none;stroke:var(--accent);stroke-width:2;stroke-linecap:round;stroke-linejoin:round}

.stats-seg{display:none}
.stats-seg.active{display:block}
/* Evidence summary rows (Plan 056 UI-08): full names, one value, drill-in. */
.evrow{display:flex;align-items:center;gap:8px;width:100%;text-align:left;padding:11px 2px;background:none;border:0;border-bottom:1px solid var(--rule)}
.evrow .listrow__main{flex:1;min-width:0}
.evrow__val{font-family:var(--font-training-data);font-size:var(--font-size-body-small);white-space:nowrap}
.evrow__detail{padding:8px 2px 14px;border-bottom:1px solid var(--rule);width:100%;min-width:0;max-width:100%;overflow-x:auto;overscroll-behavior:contain;}
.evrows{display:block}
button.vrow{width:100%;padding:8px 0;background:none;border:0;text-align:left;color:inherit;font:inherit}
.vrow.evrow{display:grid;grid-template-columns:1fr auto auto auto;gap:6px 12px;align-items:center}
.vrow.evrow .vrow__bar{grid-column:1/-1}
.seg--window{margin:8px 0 12px}

#history .session--edit{display:block}
#history .session--read,#history .session--delete,#history .history-operation{display:block;width:100%}
#history .history-selection__head{display:flex;align-items:flex-start;gap:16px;margin:4px 0 12px}
#history .history-selection__date{margin-left:auto;text-align:right}
#history .history-selection__date .section-label{margin:0}
#history .history-selection__date h3{margin:2px 0 0;font-family:var(--font-language);font-size:var(--font-size-subtitle);font-weight:var(--weight-semibold);line-height:var(--line-tight);color:var(--color-ink)}
#history .history-delete__icon{display:grid;place-items:center;width:40px;height:40px;margin-bottom:12px;border:1px solid var(--boundary-required);border-radius:var(--radius-round);color:var(--color-destructive);font-family:var(--font-language);font-size:var(--font-size-subtitle);font-weight:var(--weight-semibold);line-height:var(--line-tight)}
#history .history-operation{padding:16px 0}
#history .session--delete h3,#history .history-operation h3{margin:0 0 8px;font-family:var(--font-language);font-size:var(--font-size-section-title);font-weight:var(--weight-semibold);line-height:var(--line-tight);color:var(--color-ink)}
#history .session--delete>p,#history .history-operation>p{margin:0 0 14px;font-family:var(--font-language);font-size:var(--font-size-body);line-height:var(--line-reading);color:var(--color-ink-secondary)}
input[aria-invalid="true"],[aria-invalid="true"]{outline:2px solid var(--accent-deep);outline-offset:1px}
/* History's actions stack as full-width pills, the primary first (the native UI kit's action group): three labels in
   a row wrapped to three lines each, and the CTA's arrow, which sits in its side padding, ran into them. */
#history .edbtns{display:flex;flex-direction:column;gap:var(--space-8);margin-top:14px}
#history .edbtns .btn{min-width:0;padding:12px 20px;white-space:normal;overflow-wrap:anywhere}
#history .edbtns .btn--cta{order:-1}
/* Throwing the session away sits after the edits and under a rule, so the eye
   reaches Save first and never lands on it while aiming for something else. */
#history .edrisk{display:flex;justify-content:center;margin-top:var(--space-18)}
#history .edrisk .session__del{padding:10px 12px}

/* ---- History edit (Plan 064 R3j2) ----
   The session page turned into a form: the lift's name once per group, a ledger row per set
   with three inputs and a quiet ink remove, the date as the shared field, and Cancel and Save
   pinned on the persistent shelf with the dock hidden. The selected field wears the quiet ink
   ring, an invalid one the error boundary with its reason under the row. */
#history .session--edit.histedit{padding:0;border-bottom:0}
#history .histedit__eyebrow{margin:var(--space-4) 0 0;font-family:var(--font-language);font-size:var(--font-size-body);line-height:var(--line-reading);color:var(--color-ink-secondary)}
#history .histedit__eyebrow:focus-visible{outline:var(--control-focus-outline);outline-offset:2px;border-radius:var(--radius-control)}
#history .histedit .histpage__title{margin-top:var(--space-4)}
#history .histedit__date{max-width:14rem;margin-top:var(--space-14)}
#history .histedit__cols{margin-top:var(--space-18);min-height:var(--control-target);align-items:center}
#history .histedit__cols,#history .histedit .edrow{grid-template-columns:2.5rem minmax(0,1fr) var(--control-target);column-gap:var(--space-8);padding-inline:0}
#history .histedit__cols .ledgerline__vals{letter-spacing:0;font-family:inherit;font-size:inherit;font-weight:inherit;line-height:inherit;text-transform:inherit;color:inherit}
#history .histedit .edrow__vals{display:grid;grid-template-columns:repeat(auto-fit,minmax(3.75rem,1fr));gap:var(--space-8);justify-content:stretch}
#history .histedit .edrow__vals>.fx-col{min-width:0;text-align:right;padding-right:var(--space-8)}
#history .histedit .edrow{min-height:0;padding-block:var(--space-4);border-bottom:0}
#history .histedit__lift{padding-bottom:var(--space-4)}
#history .histedit__lift .histlift__head{margin-bottom:var(--space-4)}
#history .edrow__in{width:100%;min-width:0;min-height:var(--control-target);margin:0;padding:0 var(--space-8);text-align:right;border:1px solid var(--control-field-boundary);border-radius:var(--radius-control);background:var(--control-field-bg);color:var(--control-field-ink);font-family:var(--font-training-data);font-size:var(--font-size-control);font-weight:var(--weight-medium);line-height:var(--line-standard);font-variant-numeric:tabular-nums;caret-color:var(--color-ink)}
#history .edrow__rm{justify-self:end;display:inline-flex;align-items:center;justify-content:center;width:var(--control-target);height:var(--control-target);min-width:var(--control-target);min-height:var(--control-target);flex:none;margin:0;padding:0;cursor:pointer;border:1px solid var(--control-quiet-boundary);border-radius:var(--radius-round);background:var(--control-quiet-bg);color:var(--control-quiet-ink);font-family:var(--font-language);font-size:var(--control-icon-size);line-height:var(--line-tight)}
#history .edrow__rm-glyph{display:block;pointer-events:none}
#history .edrow.is-removed .ledgerline__idx{text-decoration:line-through;color:var(--color-disabled-reason)}
#history .edrow.is-removed .edrow__in{text-decoration:line-through}
#history .histedit__error{margin:0 0 var(--space-8);padding-left:calc(2.5rem + var(--space-8));font-family:var(--font-language);font-size:var(--font-size-body-small);line-height:var(--line-standard);color:var(--color-destructive)}
#history .histedit__date+.histedit__error{padding-left:0;margin-top:var(--space-8)}
/* The pinned shelf: Cancel the smaller, Save the larger, the dock gone beneath it. */
#history .histedit__bar{position:fixed;z-index:26;left:50%;transform:translateX(-50%);bottom:var(--kb,0px);width:min(100%,var(--maxw));grid-template-columns:repeat(auto-fit,minmax(min(100%,8rem),1fr));align-items:stretch;box-sizing:border-box}
#history .histedit__bar .btn{width:100%;min-height:var(--control-target);margin:0;padding:var(--space-12) var(--space-16);white-space:normal;overflow-wrap:break-word}
#history.is-session-edit{padding-bottom:calc(9rem + env(safe-area-inset-bottom,0px))}
body:has(#history.view.active.is-session-edit) nav{display:none}
body:has(#history.view.active.is-session-edit){padding-bottom:env(safe-area-inset-bottom,0px)}


@keyframes rise{from{opacity:0}to{opacity:1}}
@keyframes woEnter{from{opacity:0;transform:translateY(16px) scale(.98)}to{opacity:1;transform:none}}
@keyframes woLeave{from{opacity:0;transform:translateY(-12px)}to{opacity:1;transform:none}}
.wo-anim-enter{animation:woEnter .32s cubic-bezier(.2,.7,.2,1) both}
.wo-anim-leave{animation:woLeave .28s cubic-bezier(.2,.7,.2,1) both}
@media (prefers-reduced-motion:reduce){
  .wo-anim-enter,.wo-anim-leave{animation:none}
}
@keyframes toastin{from{opacity:0;transform:translateX(-50%) translateY(10px)}to{opacity:1;transform:translateX(-50%) translateY(0)}}
@keyframes stamp{0%{transform:scale(1)}30%{transform:scale(.97)}60%{transform:scale(1.01)}100%{transform:scale(1)}}

.pday__caret{transition:transform .2s ease}
.pday.is-collapsed .pday__caret{transform:rotate(-90deg)}
.pday.is-collapsed .pexlist,.pday.is-collapsed .pday__add{display:none}
.pday.is-collapsed .pday__head{margin-bottom:0}

#exercise .exview-head__title{font-family:var(--font-language);font-size:var(--font-size-control);font-weight:var(--weight-semibold);line-height:var(--line-standard);color:var(--color-ink)}
.exdet__muscle{font-family:var(--font-language);font-size:var(--font-size-label);font-weight:var(--weight-semibold);line-height:var(--line-standard);letter-spacing:var(--track-label);text-transform:uppercase;color:var(--color-ink-secondary)}
.exdet__name{font-family:var(--font-language);font-weight:var(--weight-semibold);font-size:var(--font-size-feature-title);line-height:var(--line-tight);letter-spacing:-.02em;color:var(--color-ink);margin-bottom:4px}
.exdet__meta{margin-bottom:14px;font-family:var(--font-language);font-size:var(--font-size-body-small);line-height:var(--line-reading);color:var(--color-ink-secondary)}
/* The illustration is an opaque square on its own warm ground. Dropping it
   straight onto the page would read as a pasted tile, so the field carries that
   warmth full-bleed and dissolves into the page above and below it. The fade is
   a colour bridge between two near-neutral backgrounds and is the one gradient
   the design allows; it authorises none elsewhere. See
   docs/design/exercise-detail-illustration.md. */
.exdet-art{
  /* Overridden per movement from the sampled paper colour of its own artwork;
     the shipped set spans #E3D4BE to #F4EDE1, so one constant would draw a
     visible square around most of the library. This fallback only shows if a
     movement ever carries art without a sampled colour. */
  --exercise-art-bg:#ECE0CF;
  --exercise-art-lead:18px;
  --exercise-art-trail:30px;
  margin:2px calc(-1 * max(16px,env(safe-area-inset-right))) 12px calc(-1 * max(16px,env(safe-area-inset-left)));
  /* The stops are lengths, not percentages, because they have to land on the
     empty bands above and below the picture. A percentage stop moves with the
     field's height, so on a wide shell the fade climbs back over the artwork
     and re-draws the very edge it exists to dissolve. */
  background:linear-gradient(to bottom,
    var(--bg) 0,var(--exercise-art-bg) var(--exercise-art-lead),
    var(--exercise-art-bg) calc(100% - var(--exercise-art-trail)),var(--bg) 100%);
}
.exdet-art__figure{
  display:flex;justify-content:center;
  padding:var(--exercise-art-lead) 0 var(--exercise-art-trail);
}
.exdet-art__img{display:block;width:min(80%,450px);height:auto}
/* A Gym visual animation is 180 pixels square and may not be redrawn larger,
   so it is shown at no more than one and a half times that: enough to read the
   movement, short of the blur a 450px box would put on it. Its ground is pure
   white, which the field already takes from the movement's own colour. */
.exdet-art--animation .exdet-art__img{width:min(64%,270px)}
/* What a similar animation shows differently. It sits in the field's bottom
   band, under the picture, in the quiet caption voice. */
.exart-shown{margin:0;padding:0 16px var(--space-12);text-align:center;font-family:var(--font-language);font-size:var(--font-size-body-small);line-height:var(--line-reading);color:var(--color-ink-secondary)}
.exdet-art--animation:has(.exart-shown) .exdet-art__figure{padding-bottom:var(--space-12)}
.exthumb--lg + .exart-shown{padding:var(--space-8) 0 0}
/* Four columns of rules around a single stat cluster fight the orange
   recommendation rail for the eye. On this page whitespace does the grouping,
   so the shared band drops its frame here and only here. */
.exdet__stats{border-top:0;border-bottom:0;margin-top:4px}
.exdet__stats .statrow__cell::after{content:none}
.exsessions{display:flex;flex-direction:column;gap:0}
.exsess{background:transparent;border:0;border-bottom:1px solid var(--boundary-decorative);border-radius:var(--radius-none);padding:14px 0}
.exsess__head{display:flex;align-items:center;flex-wrap:wrap;gap:6px 10px;font-family:var(--font-language);font-size:var(--font-size-body-small);line-height:var(--line-standard);color:var(--color-ink-secondary)}
.exsess__date{font-family:var(--font-language);color:var(--color-ink);font-weight:var(--weight-semibold)}
.exsess__delta{margin-left:auto;font-family:var(--font-language);font-weight:var(--weight-semibold);font-size:var(--font-size-caption);line-height:var(--line-standard);color:var(--color-ink-secondary)}
.exsess__set small{color:var(--color-ink-secondary);font-size:var(--font-size-caption);margin-left:1px}
.exsess__set.is-warmup{color:var(--color-ink-secondary)}
.exsess__note{font-family:var(--font-language);font-size:var(--font-size-body-small);color:var(--color-ink-secondary);margin:10px 0 0;line-height:var(--line-reading);border-left:2px solid var(--boundary-decorative);padding-left:9px;white-space:pre-wrap}
.exsess__note span{display:block;color:var(--color-ink-secondary);text-transform:uppercase;letter-spacing:.1em;font-size:var(--font-size-label);line-height:var(--line-standard);margin-bottom:3px}

.announce-host{position:static;pointer-events:none}
/* A notice that must not cover a sheet's pinned foot (the Session sheet's reorder announcement) rides at the top. */
.toast.toast--top{bottom:auto;top:calc(env(safe-area-inset-top,0px) + var(--space-12))}
/* In Focus a notice rides just above the pinned shelf and its rest tab, measured when it is shown (#521). */
body.is-focus-wo .toast:not(.toast--top){bottom:calc(var(--toast-clear,0px) + var(--space-12))}
/* A quiet notice is for assistive technology only: the live region speaks it, nothing is drawn. */
.toast.toast--quiet{position:fixed;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0;box-shadow:none;animation:none}
.announce-host .toast{pointer-events:none}
.sessionbanner{position:relative;margin:0 0 .75rem;padding:0;border:0;border-bottom:1px solid var(--rule);border-radius:0;background:transparent;cursor:default}
.sessionbanner.hidden{display:none}
.sessionbanner.is-missed{border-color:var(--accent)}
.sessionbanner__act{display:block;width:100%;margin:0;padding:.75rem 2.75rem .75rem 0;border:0;background:transparent;color:inherit;font:inherit;text-align:left;cursor:pointer;min-height:44px}
.sessionbanner__close{position:absolute;top:0;right:0;width:44px;height:44px;margin:0;padding:0;border:0;background:transparent;color:inherit;font:inherit;line-height:1;cursor:pointer;opacity:.7}
.sessionbanner__title{font-weight:var(--weight-semibold);margin:0 0 .25rem}
.sessionbanner__body{margin:0;font-size:var(--font-size-body-small);color:var(--ink-soft)}
.draft-recovery{margin:0 0 14px;padding:12px 14px;border-left:3px solid var(--danger);background:var(--well);color:var(--ink)}
.draft-recovery.hidden{display:none}
.draft-recovery__title{margin:0 0 4px;font-weight:var(--weight-semibold)}
.draft-recovery__body,.draft-recovery__pending{margin:0;font-size:var(--font-size-body-small);line-height:1.45;color:var(--ink-soft)}
.draft-recovery__pending{margin-top:8px;padding:8px;border:1px solid var(--rule);border-radius:var(--radius-control);overflow-wrap:anywhere;color:var(--ink)}
.draft-recovery__actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
.draft-recovery__actions .btn{width:auto;min-height:44px;padding:8px 12px;flex:1 1 auto}
.notifytypes{display:grid;gap:0;margin:2px 0 4px}
#unfinishedBanner{margin:0 0 .75rem;padding:.75rem 0;border:0;border-bottom:1px solid var(--rule);border-radius:0}
#unfinishedBanner.hidden{display:none}



@media (prefers-reduced-motion:reduce){
  /* `*` does not match generated boxes, so the marks drawn in ::before and ::after are named too (R7 V-15). */
  *,*::before,*::after{animation:none!important;transition:none!important}
}
@media (min-width:680px){
  .metrics,.statrow--4{grid-template-columns:repeat(4,minmax(0,1fr))}
}
@media (max-width:360px){
  /* A 288px row cannot hold the set action, a three-part load control, reps,
     RIR and Save in one line at 44px each. Keep the outer fields explicit and
     stack the load input over its two steppers inside the flexible column. */
  .vrow{grid-template-columns:1fr auto}
  .stepbtn{width:var(--control-target);min-width:var(--control-target);font-size:var(--control-icon-size)}
  .saveset{min-width:44px;padding:0 4px}
}

/* ---- Shell class aliases (HTML / renderToday) ---- */
.pagehead__titles{min-width:0;flex:1}
.settings-btn{
  width:var(--control-target);height:var(--control-target);border-radius:var(--radius-round);border:1px solid var(--control-quiet-boundary);
  background:var(--control-quiet-bg);display:inline-flex;align-items:center;justify-content:center;cursor:pointer;color:var(--control-quiet-ink);padding:0;
}
@media (hover: hover) and (pointer: fine){
.settings-btn:hover:not(:disabled){background:var(--well);color:var(--control-quiet-ink);border-color:var(--control-quiet-boundary)}
}
.settings-btn.is-pressed:not(:disabled){background:var(--row-pressed-bg);color:var(--control-quiet-ink);border-color:var(--control-quiet-boundary);transform:var(--control-pressed-transform)}
.settings-btn:focus-visible{outline:var(--control-focus-outline);outline-offset:2px}
.settings-btn:disabled{background:var(--control-quiet-bg);color:var(--color-disabled-reason);border-color:var(--boundary-decorative);opacity:1;cursor:not-allowed;transform:none}
.settings-btn .icon-mask{width:var(--control-icon-size);height:var(--control-icon-size)}
.icon-mask{
  display:inline-block;width:22px;height:22px;background:currentColor;flex:none;
  -webkit-mask:no-repeat center/contain;mask:no-repeat center/contain;
}
.icon-mask--sm{width:16px;height:16px}
.icon-mask--stop{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Crect x='6.5' y='6.5' width='11' height='11' rx='2'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Crect x='6.5' y='6.5' width='11' height='11' rx='2'/%3E%3C/svg%3E")}
.icon-mask--pause{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Crect x='6' y='5' width='4' height='14' rx='1.2'/%3E%3Crect x='14' y='5' width='4' height='14' rx='1.2'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Crect x='6' y='5' width='4' height='14' rx='1.2'/%3E%3Crect x='14' y='5' width='4' height='14' rx='1.2'/%3E%3C/svg%3E")}
.icon-mask--play{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M8 5.6v12.8a1 1 0 0 0 1.52.85l10.24-6.4a1 1 0 0 0 0-1.7L9.52 4.75A1 1 0 0 0 8 5.6z'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M8 5.6v12.8a1 1 0 0 0 1.52.85l10.24-6.4a1 1 0 0 0 0-1.7L9.52 4.75A1 1 0 0 0 8 5.6z'/%3E%3C/svg%3E")}
.icon-mask--history{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 12a8.5 8.5 0 1 0 2.5-6'/%3E%3Cpolyline points='3 3.5 3 8.5 8 8.5'/%3E%3Cpolyline points='12 7.5 12 12 15.5 14'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 12a8.5 8.5 0 1 0 2.5-6'/%3E%3Cpolyline points='3 3.5 3 8.5 8 8.5'/%3E%3Cpolyline points='12 7.5 12 12 15.5 14'/%3E%3C/svg%3E")}
.icon-mask--overflow{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Ccircle cx='5' cy='12' r='1.6'/%3E%3Ccircle cx='12' cy='12' r='1.6'/%3E%3Ccircle cx='19' cy='12' r='1.6'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Ccircle cx='5' cy='12' r='1.6'/%3E%3Ccircle cx='12' cy='12' r='1.6'/%3E%3Ccircle cx='19' cy='12' r='1.6'/%3E%3C/svg%3E")}
.icon-mask--grip{-webkit-mask-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27black%27%3E%3Ccircle%20cx%3D%279%27%20cy%3D%276%27%20r%3D%271.6%27%2F%3E%3Ccircle%20cx%3D%2715%27%20cy%3D%276%27%20r%3D%271.6%27%2F%3E%3Ccircle%20cx%3D%279%27%20cy%3D%2712%27%20r%3D%271.6%27%2F%3E%3Ccircle%20cx%3D%2715%27%20cy%3D%2712%27%20r%3D%271.6%27%2F%3E%3Ccircle%20cx%3D%279%27%20cy%3D%2718%27%20r%3D%271.6%27%2F%3E%3Ccircle%20cx%3D%2715%27%20cy%3D%2718%27%20r%3D%271.6%27%2F%3E%3C%2Fsvg%3E");mask-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27black%27%3E%3Ccircle%20cx%3D%279%27%20cy%3D%276%27%20r%3D%271.6%27%2F%3E%3Ccircle%20cx%3D%2715%27%20cy%3D%276%27%20r%3D%271.6%27%2F%3E%3Ccircle%20cx%3D%279%27%20cy%3D%2712%27%20r%3D%271.6%27%2F%3E%3Ccircle%20cx%3D%2715%27%20cy%3D%2712%27%20r%3D%271.6%27%2F%3E%3Ccircle%20cx%3D%279%27%20cy%3D%2718%27%20r%3D%271.6%27%2F%3E%3Ccircle%20cx%3D%2715%27%20cy%3D%2718%27%20r%3D%271.6%27%2F%3E%3C%2Fsvg%3E")}
.icon-mask--note{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5.5 3.5h8.5l4.5 4.5v12.5h-13z'/%3E%3Cpath d='M14 3.5V8h4.5'/%3E%3Cpath d='M8.5 12.5h7M8.5 16h4.5'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5.5 3.5h8.5l4.5 4.5v12.5h-13z'/%3E%3Cpath d='M14 3.5V8h4.5'/%3E%3Cpath d='M8.5 12.5h7M8.5 16h4.5'/%3E%3C/svg%3E")}
.icon-mask--timer{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='13.5' r='7.5'/%3E%3Cpath d='M9.5 2.5h5'/%3E%3Cpath d='M12 2.5V6'/%3E%3Cpath d='M18.6 7.4l1.6-1.6'/%3E%3Cpath d='M12 13.5V9.8'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='13.5' r='7.5'/%3E%3Cpath d='M9.5 2.5h5'/%3E%3Cpath d='M12 2.5V6'/%3E%3Cpath d='M18.6 7.4l1.6-1.6'/%3E%3Cpath d='M12 13.5V9.8'/%3E%3C/svg%3E")}
.icon-mask--skip{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 5 14 12 6 19'/%3E%3Cpath d='M18 5v14'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 5 14 12 6 19'/%3E%3Cpath d='M18 5v14'/%3E%3C/svg%3E")}
/* Semantic glyphs for the program-entry flow. The shared names (search, sheet, pencil, download, wand, sliders,
   flex, scale, dumbbell, building, house, kettlebell, rack, target, trend, cal, clock, shield, pin, clipboard) are
   G's drawings in the generated "G icon set" block; rosette is the one entry glyph G did not draw. Tinted by
   `currentColor` so a selected card or a copper section label recolours them. */
.icon-mask--rosette{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8.9' r='5.5'/%3E%3Cpath d='m9.4 8.8 1.9 1.9 3.3-3.5'/%3E%3Cpath d='m8.4 13.6-1.5 7.2 5.1-2.6 5.1 2.6-1.5-7.2'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8.9' r='5.5'/%3E%3Cpath d='m9.4 8.8 1.9 1.9 3.3-3.5'/%3E%3Cpath d='m8.4 13.6-1.5 7.2 5.1-2.6 5.1 2.6-1.5-7.2'/%3E%3C/svg%3E")}
.icon-btn{color:var(--ink)}
.icon-btn--ghost{border:0;background:transparent;color:var(--ink)}
.today-prog{display:flex;flex-wrap:wrap;align-items:baseline;column-gap:var(--space-8);padding:0 0 12px;border-bottom:1px solid var(--boundary-decorative)}
.today-prog > .segbar{flex-basis:100%}
.today-prog > .today-prog__week::before{content:"·";margin-right:var(--space-8)}
.today-prog__name{font-family:var(--font-language);font-size:var(--font-size-body);font-weight:var(--weight-semibold);line-height:var(--line-standard);color:var(--color-ink)}
.today-prog__week,.today-prog__deload{font-family:var(--font-language);font-size:var(--font-size-body-small);line-height:var(--line-reading);color:var(--color-ink-secondary);margin-top:4px}
.today-prog .segbar{margin-top:10px}
#todayProgram .segbar__seg{background:var(--boundary-required);border-radius:var(--radius-compact)}
/* Where the lifter is now is the strongest mark: the current week in the accent (as the current exercise is in Focus),
   the weeks behind in soft ink, the weeks ahead a hairline. */
#todayProgram .segbar__seg.is-done{background:var(--color-ink-secondary)}
#todayProgram .segbar__seg.is-current{background:var(--accent)}

/* Today, once a session is saved: a recap stands where the start CTA would be. */
.today-done{padding:4px 0 8px}
.today-done__name{display:flex;align-items:center;gap:10px}
.today-done__check{
  width:22px;height:22px;flex:none;background:var(--color-ink);
  -webkit-mask:var(--check) no-repeat center/contain;mask:var(--check) no-repeat center/contain;
}
.today-done__pr{margin:10px 0 0;font-family:var(--font-language);font-size:var(--font-size-body-small);line-height:var(--line-reading);color:var(--color-improved)}
.today-done__note{margin:10px 0 0;font-family:var(--font-language);font-size:var(--font-size-body-small);line-height:var(--line-reading);color:var(--color-ink-secondary)}
/* View today's session is the finished day's primary control (OG-6 `today/done`): the shared Today CTA, with its arrow. The
   shell still carries the quiet row's chevron, which the arrow replaces. */
#reviewTodaySession{margin-top:32px}
#reviewTodaySession .chevron{display:none}
#logAnotherSession{display:flex;align-items:center;justify-content:center;width:100%;min-height:48px;margin:10px 0 0;padding:8px 16px;border:1px solid var(--control-secondary-boundary);border-radius:var(--radius-button);background:var(--control-secondary-bg);color:var(--control-secondary-ink);font-family:var(--font-language);font-size:var(--font-size-control);font-weight:var(--weight-medium);line-height:var(--line-standard);text-align:center}
@media (hover: hover) and (pointer: fine){
#logAnotherSession:hover:not(:disabled){background:var(--well);color:var(--control-secondary-ink);border-color:var(--control-secondary-boundary)}
}
#logAnotherSession.is-pressed:not(:disabled){background:var(--row-pressed-bg);color:var(--control-secondary-ink);border-color:var(--control-secondary-boundary);transform:var(--control-pressed-transform)}
#logAnotherSession:focus-visible{outline:var(--control-focus-outline);outline-offset:2px}
#logAnotherSession:disabled{background:var(--control-secondary-bg);color:var(--color-disabled-reason);border-color:var(--boundary-decorative);opacity:1;cursor:not-allowed;transform:none}

/* Today with an open session (owner, 2026-10-23, option A): one live card under the program block says it once, with
   a live dot, the session's name, where the lifter is, a sets bar and Resume. It is the kit's raised paper surface with
   no keyline. Its host is always in the flow and empty, so the card measures open from zero height (S2); the card's
   own margin is held inside the host by `flow-root`, so the measured height is the whole of its room. */
.today-live-host{display:flow-root}
.today-live{margin:var(--space-18) 0 var(--space-4);padding:var(--space-16);border-radius:var(--radius-prominent);background:var(--surface);box-shadow:var(--live-card-shadow);cursor:pointer}
.today-live__tag{display:flex;align-items:center;gap:var(--space-8);margin:0;font-family:var(--font-language);font-size:var(--font-size-caption);font-weight:var(--weight-semibold);line-height:var(--line-standard);letter-spacing:.02em;color:var(--accent-deep)}
.today-live__dot{position:relative;flex:none;width:7px;height:7px;border-radius:var(--radius-round);background:var(--accent);box-shadow:var(--live-dot-halo)}
.today-live__name{margin:var(--space-8) 0 0;font-family:var(--font-language);font-size:var(--font-size-section-title);font-weight:var(--weight-semibold);line-height:var(--line-tight);color:var(--color-ink);overflow-wrap:break-word}
.today-live__where{margin:var(--space-4) 0 0;font-family:var(--font-language);font-size:var(--font-size-body-small);line-height:var(--line-reading);color:var(--color-ink-secondary);font-variant-numeric:tabular-nums}
.today-live__bar{height:6px;margin:var(--space-12) 0 var(--space-14);border-radius:var(--radius-pill);background:var(--rule);overflow:hidden}
.today-live__fill{display:block;height:100%;border-radius:var(--radius-pill);background:var(--accent)}
/* Resume is a pill, as the mock draws it (owner, pills everywhere, 2026-10-24), with its arrow in the flow beside the
   label rather than pinned to the edge, so the two can never overlap. */
#todayDash .today-live .today-live__resume{width:100%;display:flex;align-items:center;justify-content:center;gap:var(--space-8);min-height:48px;padding:0 var(--space-26);border-radius:var(--radius-pill)}
#todayDash .today-live .today-live__resume::after{position:static;transform:none;flex:none;width:18px;height:18px}
/* Status marks in the open session's rows: done is a filled check, partial a pie of its sets, skipped an empty ring and
   the current lift an accent ring. A lift not started keeps its verdict mark. The mark column widens for them. */
.today-rx--live{--rx-mark:1.25rem}
/* With no column heads above them, the rows open on their own hairline, as the mock's list does. */
.today-rx--live .today-rx__grid{border-top:1px solid var(--boundary-decorative)}
.today-rx--live .today-rx__row.is-current .rxrow__name{font-weight:var(--weight-semibold)}
.today-rx--live .today-rx__row.is-current .rxrow__sub{font-weight:var(--weight-regular)}
.rxstat{display:inline-grid;place-items:center;flex:none;width:1.25rem;height:1.25rem;border-radius:var(--radius-round);box-sizing:border-box}
.rxstat--done{background:var(--ink);color:var(--bg)}
.rxstat--done .icon-mask{width:.8125rem;height:.8125rem;background:var(--bg)}
.rxstat--partial{background:conic-gradient(var(--ink) var(--rxstat-p),var(--rule-strong) 0)}
.rxstat--todo{border:1.5px solid var(--rule-strong)}
.rxstat--skipped{border:1.5px dashed var(--rule-strong)}
.rxstat--current{border:2px solid var(--accent)}

/* Today prescription (Direction D, spec 4.1): the day's exercises as a table of
   aligned columns on hairlines. The rows are the shared .rxrow; this block only
   places them. The columns come from one grid the head and the rows share, so
   the load and the target line up whatever the widest figure is. */
.today-session__name--day{font-size:var(--font-size-section-title);line-height:var(--line-tight);margin:var(--space-4) 0 0;text-wrap:balance}
.today-tally{display:flex;flex-wrap:wrap;align-items:center;gap:var(--space-4) var(--space-16);margin:var(--space-8) 0 0;padding:0;list-style:none;font-family:var(--font-language);font-size:var(--font-size-body-small);line-height:var(--line-standard);color:var(--color-ink)}
.today-tally__i{display:inline-flex;align-items:center;gap:var(--space-4)}
/* With the prescription heading gone (the prototype, owner 2026-10-28), the verdict line leads into the column heads
   across the prototype's gap. */
.today-tally{margin-bottom:var(--space-12)}
.today-tally .verdictmark__glyph{width:15px;height:15px}
.today-rx{container-type:inline-size}
/* The name keeps a fair share of the row (9rem, about three words, or all the
   other columns leave on a narrow phone) and breaks only between words; the
   figures give way first, the target wrapping under itself when it has to. */
.today-rx__grid{--today-rx-columns:var(--rx-mark,1rem) minmax(min(9rem,100% - var(--rx-mark,1rem) - 9rem - 3 * var(--space-12)),1fr) minmax(4.125rem,auto) minmax(4.875rem,auto);display:grid;grid-template-columns:var(--today-rx-columns);column-gap:var(--space-12)}
.today-rx__grid .rxrow .rxrow__name{overflow-wrap:break-word;-webkit-hyphens:auto;hyphens:auto;hyphenate-limit-chars:10 4 4;-webkit-hyphenate-limit-before:4;-webkit-hyphenate-limit-after:4}
.today-rx__grid .rxrow .rxrow__target{white-space:normal}
.today-rx__cols,.today-rx__grid .rxrow{grid-column:1 / -1;display:grid;grid-template-columns:subgrid}
.today-rx__cols{align-items:baseline;padding:var(--space-8) 0;border-bottom:1px solid var(--boundary-decorative);font-family:var(--font-language);font-size:var(--font-size-label);font-weight:var(--weight-semibold);line-height:var(--line-standard);letter-spacing:var(--track-label);text-transform:uppercase;color:var(--color-ink-secondary)}
.today-rx__cols > :nth-child(n+3){text-align:right}
.rxrow.is-manual .rxrow__load,.rxrow.is-manual .rxrow__target{color:var(--color-ink-secondary)}
/* Enlarged text: the load and the target drop to a second line under the name,
   as the drawing does, instead of squeezing the name into a sliver. */
@container (max-width:18rem){
  .today-rx__cols{display:none}
  .today-rx__grid{--today-rx-columns:var(--rx-mark,1rem) minmax(0,1fr) auto}
  .today-rx__grid .rxrow .rxrow__name{grid-column:2 / -1}
  .today-rx__grid .rxrow .rxrow__load{grid-column:2;text-align:left}
  .today-rx__grid .rxrow .rxrow__target{grid-column:3;white-space:normal}
}
#todayDash #upNextBtn .listrow__sub{white-space:normal;overflow:visible;text-overflow:clip}
.segbar__seg{flex:1;height:4px;border-radius:var(--radius-pill);background:var(--boundary-required)}
.segbar__seg.is-done,.segbar__seg.is-current{background:var(--accent)}
/* Exercise progress: done is near-black, the current one orange, the rest gray. */
.segbar--ex .segbar__seg{height:5px;border-radius:var(--radius-pill)}
.segbar--ex .segbar__seg.is-done{background:var(--ink)}
.segbar--ex .segbar__seg.is-current{background:var(--accent)}
.text-link{background:none;border:0;color:var(--accent-deep);cursor:pointer;font:inherit;padding:8px 0;font-size:var(--font-size-control)}
.text-link--center{display:block;width:100%;text-align:center;color:var(--ink);margin-top:10px}
.link-accent{background:none;border:0;color:var(--accent-deep);cursor:pointer;font:inherit;padding:8px 4px;font-size:var(--font-size-control)}
.week-letters{display:grid;grid-template-columns:repeat(7,1fr);gap:4px;margin-top:12px;text-align:center}
.week-letters__d{font-family:var(--font-language);font-size:var(--font-size-caption);line-height:var(--line-standard);color:var(--color-ink-secondary);font-weight:var(--weight-medium)}
.week-letters__m{margin-top:8px;min-height:18px;display:flex;align-items:center;justify-content:center}
.week-letters__check{font-family:var(--font-language);font-size:var(--font-size-caption);line-height:var(--line-standard);color:var(--color-ink)}
.week-letters__dot{width:6px;height:6px;border-radius:var(--radius-round);background:var(--boundary-required);display:inline-block}
.week-letters__dot.is-today{width:8px;height:8px;background:var(--color-ink)}
.ov-week-line{font-family:var(--font-language);font-size:var(--font-size-body-small);line-height:var(--line-reading);color:var(--color-ink-secondary);margin-top:6px}
/* One segment per planned session; filled ones are the sessions already logged. The
   line above says the same thing in words, so the bar is decoration to assistive tech. */
.listrow{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:56px;padding:12px 0;background:none;border:0;border-bottom:1px solid var(--rule);cursor:pointer;text-align:left;font:inherit;color:inherit}
.listrow--static{cursor:default}
.range-static{font-size:var(--font-size-body-small);color:var(--ink)}
.tour-rest-hint{margin:0;font-size:var(--font-size-caption);color:var(--ink-soft);max-width:11rem;text-align:right}
.listrow__main{min-width:0;flex:1}
.listrow__title{font-size:var(--font-size-control);font-weight:600}
.listrow__sub{font-size:var(--font-size-caption);color:var(--ink-soft);margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.listrow__meta{flex:none;display:inline-flex;align-items:center;gap:8px;color:var(--ink-soft);font-size:var(--font-size-caption);white-space:nowrap}
.chevron{
  width:16px;height:16px;flex:none;color:var(--ink-faint);background:currentColor;
  -webkit-mask:no-repeat center/contain;mask:no-repeat center/contain;
}
/* The chevron's drawings (right, .is-down, .is-up) and every other G mask are in the generated "G icon set" block below. */
/* G icon set: generated by tools/build-icon-masks.mjs — do not edit by hand */
/* One icon set, drawn for onboarding G (source SHA and path in the tool header): 24 grid,
   1.75 stroke (2 for check, arrow, plus, minus and close), round caps and joins, 2.5 px
   safe area. A name draws the same icon on the dock, Today and onboarding. Each rule
   supplies only the mask image; size, ink and mask geometry come from .icon-mask and
   .chevron. --arrow and --check are G's arrow and check. Names G did not draw (history,
   note, overflow, rosette, skip, sm, stop, timer, the dock's data-i glyphs) keep their
   own rules elsewhere. */
.icon-mask--wand{-webkit-mask-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%271.75%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M3.5%2020.5%2012.6%2011.4%27%2F%3E%3Cpath%20d%3D%27M17.5%203.3c.4%202.4%201.6%203.6%204%204-2.4.4-3.6%201.6-4%204-.4-2.4-1.6-3.6-4-4%202.4-.4%203.6-1.6%204-4z%27%2F%3E%3Cpath%20d%3D%27M7%203.5v3M5.5%205h3%27%2F%3E%3C%2Fsvg%3E");mask-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%271.75%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M3.5%2020.5%2012.6%2011.4%27%2F%3E%3Cpath%20d%3D%27M17.5%203.3c.4%202.4%201.6%203.6%204%204-2.4.4-3.6%201.6-4%204-.4-2.4-1.6-3.6-4-4%202.4-.4%203.6-1.6%204-4z%27%2F%3E%3Cpath%20d%3D%27M7%203.5v3M5.5%205h3%27%2F%3E%3C%2Fsvg%3E")}
.icon-mask--sliders{-webkit-mask-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%271.75%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M3.5%206h9.2M17.3%206h3.2M3.5%2012h3.2M11.3%2012h9.2M3.5%2018h7.2M15.3%2018h5.2%27%2F%3E%3Ccircle%20cx%3D%2715%27%20cy%3D%276%27%20r%3D%272.1%27%2F%3E%3Ccircle%20cx%3D%279%27%20cy%3D%2712%27%20r%3D%272.1%27%2F%3E%3Ccircle%20cx%3D%2713%27%20cy%3D%2718%27%20r%3D%272.1%27%2F%3E%3C%2Fsvg%3E");mask-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%271.75%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M3.5%206h9.2M17.3%206h3.2M3.5%2012h3.2M11.3%2012h9.2M3.5%2018h7.2M15.3%2018h5.2%27%2F%3E%3Ccircle%20cx%3D%2715%27%20cy%3D%276%27%20r%3D%272.1%27%2F%3E%3Ccircle%20cx%3D%279%27%20cy%3D%2712%27%20r%3D%272.1%27%2F%3E%3Ccircle%20cx%3D%2713%27%20cy%3D%2718%27%20r%3D%272.1%27%2F%3E%3C%2Fsvg%3E")}
.icon-mask--search{-webkit-mask-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%271.75%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M15.4%2015.4%2020.5%2020.5%27%2F%3E%3Ccircle%20cx%3D%2710.6%27%20cy%3D%2710.6%27%20r%3D%276.6%27%2F%3E%3C%2Fsvg%3E");mask-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%271.75%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M15.4%2015.4%2020.5%2020.5%27%2F%3E%3Ccircle%20cx%3D%2710.6%27%20cy%3D%2710.6%27%20r%3D%276.6%27%2F%3E%3C%2Fsvg%3E")}
.icon-mask--pencil{-webkit-mask-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%271.75%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M4%2020l.9-4.2L15.9%204.8a2.1%202.1%200%200%201%203%200l.3.3a2.1%202.1%200%200%201%200%203L8.2%2019.1%204%2020zM14.6%206.1l3.3%203.3%27%2F%3E%3C%2Fsvg%3E");mask-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%271.75%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M4%2020l.9-4.2L15.9%204.8a2.1%202.1%200%200%201%203%200l.3.3a2.1%202.1%200%200%201%200%203L8.2%2019.1%204%2020zM14.6%206.1l3.3%203.3%27%2F%3E%3C%2Fsvg%3E")}
.icon-mask--clipboard{-webkit-mask-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%271.75%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M9%205H7.4A1.9%201.9%200%200%200%205.5%206.9v11.6a1.9%201.9%200%200%200%201.9%201.9h9.2a1.9%201.9%200%200%200%201.9-1.9V6.9A1.9%201.9%200%200%200%2016.6%205H15M9.2%2014l2%202%203.8-4.2%27%2F%3E%3Crect%20x%3D%279%27%20y%3D%273.2%27%20width%3D%276%27%20height%3D%273.6%27%20rx%3D%271.2%27%2F%3E%3C%2Fsvg%3E");mask-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%271.75%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M9%205H7.4A1.9%201.9%200%200%200%205.5%206.9v11.6a1.9%201.9%200%200%200%201.9%201.9h9.2a1.9%201.9%200%200%200%201.9-1.9V6.9A1.9%201.9%200%200%200%2016.6%205H15M9.2%2014l2%202%203.8-4.2%27%2F%3E%3Crect%20x%3D%279%27%20y%3D%273.2%27%20width%3D%276%27%20height%3D%273.6%27%20rx%3D%271.2%27%2F%3E%3C%2Fsvg%3E")}
.icon-mask--download{-webkit-mask-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%271.75%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M12%203.8v11.2M7.8%2011l4.2%204.2%204.2-4.2M4.5%2017v1.6A2.4%202.4%200%200%200%206.9%2021h10.2a2.4%202.4%200%200%200%202.4-2.4V17%27%2F%3E%3C%2Fsvg%3E");mask-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%271.75%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M12%203.8v11.2M7.8%2011l4.2%204.2%204.2-4.2M4.5%2017v1.6A2.4%202.4%200%200%200%206.9%2021h10.2a2.4%202.4%200%200%200%202.4-2.4V17%27%2F%3E%3C%2Fsvg%3E")}
.icon-mask--share{-webkit-mask-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%271.75%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M12%203.5v11M8%207.2l4-3.7%204%203.7M8.5%2010.5H6.8a1.8%201.8%200%200%200-1.8%201.8v6.4a1.8%201.8%200%200%200%201.8%201.8h10.4a1.8%201.8%200%200%200%201.8-1.8v-6.4a1.8%201.8%200%200%200-1.8-1.8h-1.7%27%2F%3E%3C%2Fsvg%3E");mask-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%271.75%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M12%203.5v11M8%207.2l4-3.7%204%203.7M8.5%2010.5H6.8a1.8%201.8%200%200%200-1.8%201.8v6.4a1.8%201.8%200%200%200%201.8%201.8h10.4a1.8%201.8%200%200%200%201.8-1.8v-6.4a1.8%201.8%200%200%200-1.8-1.8h-1.7%27%2F%3E%3C%2Fsvg%3E")}
.icon-mask--camera{-webkit-mask-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%271.75%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M3.5%208.6c0-1.1.9-2%202-2h1.9l1.4-2.1h6.4l1.4%202.1h1.9c1.1%200%202%20.9%202%202v8.6c0%201.1-.9%202-2%202h-13c-1.1%200-2-.9-2-2z%27%2F%3E%3Ccircle%20cx%3D%2712%27%20cy%3D%2712.6%27%20r%3D%273.4%27%2F%3E%3C%2Fsvg%3E");mask-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%271.75%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M3.5%208.6c0-1.1.9-2%202-2h1.9l1.4-2.1h6.4l1.4%202.1h1.9c1.1%200%202%20.9%202%202v8.6c0%201.1-.9%202-2%202h-13c-1.1%200-2-.9-2-2z%27%2F%3E%3Ccircle%20cx%3D%2712%27%20cy%3D%2712.6%27%20r%3D%273.4%27%2F%3E%3C%2Fsvg%3E")}
.icon-mask--sheet{-webkit-mask-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%271.75%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M3.5%209.8h17M10%209.8v9.7M3.5%2014.6h17%27%2F%3E%3Crect%20x%3D%273.5%27%20y%3D%274.5%27%20width%3D%2717%27%20height%3D%2715%27%20rx%3D%272.4%27%2F%3E%3C%2Fsvg%3E");mask-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%271.75%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M3.5%209.8h17M10%209.8v9.7M3.5%2014.6h17%27%2F%3E%3Crect%20x%3D%273.5%27%20y%3D%274.5%27%20width%3D%2717%27%20height%3D%2715%27%20rx%3D%272.4%27%2F%3E%3C%2Fsvg%3E")}
.icon-mask--flex{-webkit-mask-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%271.75%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M5.5%207.4V5.5a2%202%200%200%201%202-2h1.2a2%202%200%200%201%202%202v4.1C12.5%208%2015%207.6%2017%208.4c2.3.9%203.5%203.1%203.5%205.6v3.5a3%203%200%200%201-3%203H7A3.5%203.5%200%200%201%203.5%2017v-3.5c0-2.5.7-4.5%202-6.1zM10.7%209.6c-.7%201.5-1%203-1%204.6%27%2F%3E%3C%2Fsvg%3E");mask-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%271.75%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M5.5%207.4V5.5a2%202%200%200%201%202-2h1.2a2%202%200%200%201%202%202v4.1C12.5%208%2015%207.6%2017%208.4c2.3.9%203.5%203.1%203.5%205.6v3.5a3%203%200%200%201-3%203H7A3.5%203.5%200%200%201%203.5%2017v-3.5c0-2.5.7-4.5%202-6.1zM10.7%209.6c-.7%201.5-1%203-1%204.6%27%2F%3E%3C%2Fsvg%3E")}
.icon-mask--scale{-webkit-mask-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%271.75%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M12%204v16.5M8%2020.5h8M4.5%208h15M7%208l-3%206M7%208l3%206M17%208l-3%206M17%208l3%206M4%2014a3%203%200%200%200%206%200M14%2014a3%203%200%200%200%206%200%27%2F%3E%3C%2Fsvg%3E");mask-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%271.75%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M12%204v16.5M8%2020.5h8M4.5%208h15M7%208l-3%206M7%208l3%206M17%208l-3%206M17%208l3%206M4%2014a3%203%200%200%200%206%200M14%2014a3%203%200%200%200%206%200%27%2F%3E%3C%2Fsvg%3E")}
.icon-mask--dumbbell{-webkit-mask-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%271.75%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M8.6%2012h6.8%27%2F%3E%3Crect%20x%3D%273%27%20y%3D%278.6%27%20width%3D%272.6%27%20height%3D%276.8%27%20rx%3D%271%27%2F%3E%3Crect%20x%3D%275.6%27%20y%3D%276.5%27%20width%3D%273%27%20height%3D%2711%27%20rx%3D%271.1%27%2F%3E%3Crect%20x%3D%2715.4%27%20y%3D%276.5%27%20width%3D%273%27%20height%3D%2711%27%20rx%3D%271.1%27%2F%3E%3Crect%20x%3D%2718.4%27%20y%3D%278.6%27%20width%3D%272.6%27%20height%3D%276.8%27%20rx%3D%271%27%2F%3E%3C%2Fsvg%3E");mask-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%271.75%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M8.6%2012h6.8%27%2F%3E%3Crect%20x%3D%273%27%20y%3D%278.6%27%20width%3D%272.6%27%20height%3D%276.8%27%20rx%3D%271%27%2F%3E%3Crect%20x%3D%275.6%27%20y%3D%276.5%27%20width%3D%273%27%20height%3D%2711%27%20rx%3D%271.1%27%2F%3E%3Crect%20x%3D%2715.4%27%20y%3D%276.5%27%20width%3D%273%27%20height%3D%2711%27%20rx%3D%271.1%27%2F%3E%3Crect%20x%3D%2718.4%27%20y%3D%278.6%27%20width%3D%272.6%27%20height%3D%276.8%27%20rx%3D%271%27%2F%3E%3C%2Fsvg%3E")}
.icon-mask--building{-webkit-mask-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%271.75%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M3%2020.5h18M5.5%2020.5V5a1.5%201.5%200%200%201%201.5-1.5h10A1.5%201.5%200%200%201%2018.5%205v15.5M8.7%207.5h2M13.3%207.5h2M8.7%2011.5h2M13.3%2011.5h2M10%2020.5v-4.5h4v4.5%27%2F%3E%3C%2Fsvg%3E");mask-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%271.75%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M3%2020.5h18M5.5%2020.5V5a1.5%201.5%200%200%201%201.5-1.5h10A1.5%201.5%200%200%201%2018.5%205v15.5M8.7%207.5h2M13.3%207.5h2M8.7%2011.5h2M13.3%2011.5h2M10%2020.5v-4.5h4v4.5%27%2F%3E%3C%2Fsvg%3E")}
.icon-mask--house{-webkit-mask-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%271.75%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M3.5%2011%2012%204l8.5%207M5.7%209.4v11.1h12.6V9.4M10%2020.5v-5.2h4v5.2%27%2F%3E%3C%2Fsvg%3E");mask-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%271.75%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M3.5%2011%2012%204l8.5%207M5.7%209.4v11.1h12.6V9.4M10%2020.5v-5.2h4v5.2%27%2F%3E%3C%2Fsvg%3E")}
.icon-mask--kettlebell{-webkit-mask-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%271.75%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M9%2010V8a3%203%200%200%201%206%200v2%27%2F%3E%3Ccircle%20cx%3D%2712%27%20cy%3D%2715%27%20r%3D%275.6%27%2F%3E%3C%2Fsvg%3E");mask-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%271.75%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M9%2010V8a3%203%200%200%201%206%200v2%27%2F%3E%3Ccircle%20cx%3D%2712%27%20cy%3D%2715%27%20r%3D%275.6%27%2F%3E%3C%2Fsvg%3E")}
.icon-mask--rack{-webkit-mask-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%271.75%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M7.5%203.5v17M16.5%203.5v17M7.5%206.5h9M5%2020.5h5M14%2020.5h5M3%2013.5h18M5.3%2011.2v4.6M18.7%2011.2v4.6%27%2F%3E%3C%2Fsvg%3E");mask-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%271.75%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M7.5%203.5v17M16.5%203.5v17M7.5%206.5h9M5%2020.5h5M14%2020.5h5M3%2013.5h18M5.3%2011.2v4.6M18.7%2011.2v4.6%27%2F%3E%3C%2Fsvg%3E")}
.icon-mask--target{-webkit-mask-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%271.75%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Ccircle%20cx%3D%2712%27%20cy%3D%2712%27%20r%3D%278.3%27%2F%3E%3Ccircle%20cx%3D%2712%27%20cy%3D%2712%27%20r%3D%273.6%27%2F%3E%3C%2Fsvg%3E");mask-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%271.75%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Ccircle%20cx%3D%2712%27%20cy%3D%2712%27%20r%3D%278.3%27%2F%3E%3Ccircle%20cx%3D%2712%27%20cy%3D%2712%27%20r%3D%273.6%27%2F%3E%3C%2Fsvg%3E")}
.icon-mask--trend{-webkit-mask-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%271.75%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M3.5%2016.6l5.6-5.6%203.6%203.6%207.8-7.8M15.6%206.8h4.9v4.9%27%2F%3E%3C%2Fsvg%3E");mask-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%271.75%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M3.5%2016.6l5.6-5.6%203.6%203.6%207.8-7.8M15.6%206.8h4.9v4.9%27%2F%3E%3C%2Fsvg%3E")}
.icon-mask--cal{-webkit-mask-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%271.75%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M3.5%209.8h17M8%203.4v3.2M16%203.4v3.2%27%2F%3E%3Crect%20x%3D%273.5%27%20y%3D%275%27%20width%3D%2717%27%20height%3D%2715.5%27%20rx%3D%272.4%27%2F%3E%3C%2Fsvg%3E");mask-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%271.75%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M3.5%209.8h17M8%203.4v3.2M16%203.4v3.2%27%2F%3E%3Crect%20x%3D%273.5%27%20y%3D%275%27%20width%3D%2717%27%20height%3D%2715.5%27%20rx%3D%272.4%27%2F%3E%3C%2Fsvg%3E")}
.icon-mask--clock{-webkit-mask-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%271.75%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M12%207.4v4.9l3.1%201.9%27%2F%3E%3Ccircle%20cx%3D%2712%27%20cy%3D%2712%27%20r%3D%278.3%27%2F%3E%3C%2Fsvg%3E");mask-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%271.75%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M12%207.4v4.9l3.1%201.9%27%2F%3E%3Ccircle%20cx%3D%2712%27%20cy%3D%2712%27%20r%3D%278.3%27%2F%3E%3C%2Fsvg%3E")}
.icon-mask--shield{-webkit-mask-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%271.75%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M12%203.4l7.1%202.7v5.3c0%204.7-3%208.3-7.1%209.6-4.1-1.3-7.1-4.9-7.1-9.6V6.1zM8.9%2012.2l2.2%202.2%204-4.4%27%2F%3E%3C%2Fsvg%3E");mask-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%271.75%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M12%203.4l7.1%202.7v5.3c0%204.7-3%208.3-7.1%209.6-4.1-1.3-7.1-4.9-7.1-9.6V6.1zM8.9%2012.2l2.2%202.2%204-4.4%27%2F%3E%3C%2Fsvg%3E")}
.icon-mask--pin{-webkit-mask-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%271.75%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M12%2020.9c-4-4.6-6.6-7.7-6.6-10.8a6.6%206.6%200%200%201%2013.2%200c0%203.1-2.6%206.2-6.6%2010.8z%27%2F%3E%3Ccircle%20cx%3D%2712%27%20cy%3D%2710.1%27%20r%3D%272.4%27%2F%3E%3C%2Fsvg%3E");mask-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%271.75%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M12%2020.9c-4-4.6-6.6-7.7-6.6-10.8a6.6%206.6%200%200%201%2013.2%200c0%203.1-2.6%206.2-6.6%2010.8z%27%2F%3E%3Ccircle%20cx%3D%2712%27%20cy%3D%2710.1%27%20r%3D%272.4%27%2F%3E%3C%2Fsvg%3E")}
.icon-mask--alert{-webkit-mask-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%271.75%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M12%207.6v5.1M12%2016.3h.01%27%2F%3E%3Ccircle%20cx%3D%2712%27%20cy%3D%2712%27%20r%3D%278.3%27%2F%3E%3C%2Fsvg%3E");mask-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%271.75%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M12%207.6v5.1M12%2016.3h.01%27%2F%3E%3Ccircle%20cx%3D%2712%27%20cy%3D%2712%27%20r%3D%278.3%27%2F%3E%3C%2Fsvg%3E")}
.icon-mask--gear{-webkit-mask-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%271.75%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M10.5%205.1L10.4%203.1L13.6%203.1L13.5%205.1L15.8%206.0L17.2%204.6L19.4%206.8L18.0%208.2L18.9%2010.5L20.9%2010.4L20.9%2013.6L18.9%2013.5L18.0%2015.8L19.4%2017.2L17.2%2019.4L15.8%2018.0L13.5%2018.9L13.6%2020.9L10.4%2020.9L10.5%2018.9L8.2%2018.0L6.8%2019.4L4.6%2017.2L6.0%2015.8L5.1%2013.5L3.1%2013.6L3.1%2010.4L5.1%2010.5L6.0%208.2L4.6%206.8L6.8%204.6L8.2%206.0Z%27%2F%3E%3Ccircle%20cx%3D%2712%27%20cy%3D%2712%27%20r%3D%273%27%2F%3E%3C%2Fsvg%3E");mask-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%271.75%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M10.5%205.1L10.4%203.1L13.6%203.1L13.5%205.1L15.8%206.0L17.2%204.6L19.4%206.8L18.0%208.2L18.9%2010.5L20.9%2010.4L20.9%2013.6L18.9%2013.5L18.0%2015.8L19.4%2017.2L17.2%2019.4L15.8%2018.0L13.5%2018.9L13.6%2020.9L10.4%2020.9L10.5%2018.9L8.2%2018.0L6.8%2019.4L4.6%2017.2L6.0%2015.8L5.1%2013.5L3.1%2013.6L3.1%2010.4L5.1%2010.5L6.0%208.2L4.6%206.8L6.8%204.6L8.2%206.0Z%27%2F%3E%3Ccircle%20cx%3D%2712%27%20cy%3D%2712%27%20r%3D%273%27%2F%3E%3C%2Fsvg%3E")}
.icon-mask--check{-webkit-mask-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%272%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M4.8%2012.6l4.6%204.6L19.4%207%27%2F%3E%3C%2Fsvg%3E");mask-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%272%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M4.8%2012.6l4.6%204.6L19.4%207%27%2F%3E%3C%2Fsvg%3E")}
.icon-mask--plus{-webkit-mask-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%272%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M12%205.5v13M5.5%2012h13%27%2F%3E%3C%2Fsvg%3E");mask-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%272%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M12%205.5v13M5.5%2012h13%27%2F%3E%3C%2Fsvg%3E")}
.icon-mask--minus{-webkit-mask-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%272%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M5.5%2012h13%27%2F%3E%3C%2Fsvg%3E");mask-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%272%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M5.5%2012h13%27%2F%3E%3C%2Fsvg%3E")}
.icon-mask--close{-webkit-mask-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%272%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M6.5%206.5l11%2011M17.5%206.5l-11%2011%27%2F%3E%3C%2Fsvg%3E");mask-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%272%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M6.5%206.5l11%2011M17.5%206.5l-11%2011%27%2F%3E%3C%2Fsvg%3E")}
.icon-mask--reset{-webkit-mask-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%271.75%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M19.6%2012a7.6%207.6%200%201%201-2.3-5.4M20.1%203.6v4.9h-4.9%27%2F%3E%3C%2Fsvg%3E");mask-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%271.75%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M19.6%2012a7.6%207.6%200%201%201-2.3-5.4M20.1%203.6v4.9h-4.9%27%2F%3E%3C%2Fsvg%3E")}
.icon-mask--keyboard{-webkit-mask-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%271.75%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M7%2011h1M11%2011h1M15%2011h1M7%2014.5h8%27%2F%3E%3Crect%20x%3D%273.5%27%20y%3D%277%27%20width%3D%2717%27%20height%3D%2711%27%20rx%3D%272%27%2F%3E%3C%2Fsvg%3E");mask-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%271.75%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M7%2011h1M11%2011h1M15%2011h1M7%2014.5h8%27%2F%3E%3Crect%20x%3D%273.5%27%20y%3D%277%27%20width%3D%2717%27%20height%3D%2711%27%20rx%3D%272%27%2F%3E%3C%2Fsvg%3E")}
.icon-mask--chev-down{-webkit-mask-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%271.75%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M6.4%209.4l5.6%205.6%205.6-5.6%27%2F%3E%3C%2Fsvg%3E");mask-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%271.75%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M6.4%209.4l5.6%205.6%205.6-5.6%27%2F%3E%3C%2Fsvg%3E")}
.icon-mask--chev-up{-webkit-mask-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%271.75%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M6.4%2014.6l5.6-5.6%205.6%205.6%27%2F%3E%3C%2Fsvg%3E");mask-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%271.75%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M6.4%2014.6l5.6-5.6%205.6%205.6%27%2F%3E%3C%2Fsvg%3E")}
.icon-mask--chev-right{-webkit-mask-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%271.75%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M9.4%206.4l5.6%205.6-5.6%205.6%27%2F%3E%3C%2Fsvg%3E");mask-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%271.75%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M9.4%206.4l5.6%205.6-5.6%205.6%27%2F%3E%3C%2Fsvg%3E")}
.chevron{-webkit-mask-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%271.75%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M9.4%206.4l5.6%205.6-5.6%205.6%27%2F%3E%3C%2Fsvg%3E");mask-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%271.75%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M9.4%206.4l5.6%205.6-5.6%205.6%27%2F%3E%3C%2Fsvg%3E")}
.chevron.is-down{-webkit-mask-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%271.75%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M6.4%209.4l5.6%205.6%205.6-5.6%27%2F%3E%3C%2Fsvg%3E");mask-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%271.75%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M6.4%209.4l5.6%205.6%205.6-5.6%27%2F%3E%3C%2Fsvg%3E")}
.chevron.is-up{-webkit-mask-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%271.75%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M6.4%2014.6l5.6-5.6%205.6%205.6%27%2F%3E%3C%2Fsvg%3E");mask-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%271.75%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M6.4%2014.6l5.6-5.6%205.6%205.6%27%2F%3E%3C%2Fsvg%3E")}
:root{--arrow:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%272%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M4.5%2012h14.6M13.6%206.4l5.6%205.6-5.6%205.6%27%2F%3E%3C%2Fsvg%3E");--check:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%272%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M4.8%2012.6l4.6%204.6L19.4%207%27%2F%3E%3C%2Fsvg%3E")}
/* end G icon set */
.link-row-cta{
  display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:44px;
  padding:10px 0;background:none;border:0;border-bottom:1px solid var(--rule);cursor:pointer;
  text-align:left;font:inherit;color:var(--ink);font-size:var(--font-size-control);font-weight:500;
}
.link-row-cta .chevron{color:var(--ink-faint)}
.select-flat{
  appearance:none;-webkit-appearance:none;border:0;background-color:transparent;margin:0;padding:8px 22px 8px 0;
  width:auto;max-width:100%;text-align:left;color:var(--ink);font-size:var(--font-size-control);font-weight:600;border-radius:0;box-shadow:none;
  background-image:var(--select-caret);
  background-position:right center;background-size:14px 14px;background-repeat:no-repeat;
}
.select-flat:focus{box-shadow:none}
.select-flat:focus-visible{
  outline:2px solid var(--accent);outline-offset:2px}
.today-footer{display:flex;align-items:center;gap:8px;margin:22px 0 8px;font-family:var(--font-language);font-size:var(--font-size-body-small);line-height:var(--line-reading);color:var(--color-ink-secondary)}
.today-footer__icon{color:var(--color-ink-secondary)}
.today-upnext,.today-week{margin:0}
.icon-btn--ghost{border:0;background:transparent}
.is-hidden{display:none!important}
.card--plain{background:transparent;border:0;padding:0;margin:0;overflow:visible}
.section-label--row{display:flex;align-items:center;justify-content:space-between}
.settings-head{display:flex;align-items:center;justify-content:center;position:relative;min-height:var(--control-target);margin-bottom:18px}
.settings-head .back-link{position:absolute;left:0}
.settings-head__title{font-family:var(--font-language);font-size:var(--font-size-subtitle);font-weight:var(--weight-semibold);line-height:var(--line-tight);color:var(--color-ink)}
.settings-identity{display:flex;align-items:flex-start;gap:14px;padding:8px var(--settings-inset) var(--space-32)}
/* While no backup has been made the identity block is the backup's status card: a warm tint, the note, and the
   action filled in the accent (owner hill-climb, 2026-11-10). */
.settings-identity:has(#storageBackupNow:not([hidden])){margin-bottom:var(--space-14);padding:var(--space-12);border-radius:var(--radius-surface);background:rgba(var(--ink-rgb),.04)}
.settings-identity:has(#storageBackupNow:not([hidden])) #storageNote{margin-top:var(--space-8)!important;font-size:var(--font-size-body-small)}
.settings-identity:has(#storageBackupNow:not([hidden])){display:grid;grid-template-columns:auto minmax(0,1fr);column-gap:var(--space-12);row-gap:2px;align-items:start;background:var(--surface);box-shadow:var(--boundary-card-hairline-shadow)}
.settings-identity:has(#storageBackupNow:not([hidden])) > div:last-child{display:contents}
.settings-identity:has(#storageBackupNow:not([hidden])) .settings-identity__mark{grid-row:1 / span 2;align-self:center}
.settings-identity:has(#storageBackupNow:not([hidden])) .settings-identity__cap{margin-top:0}
.settings-identity:has(#storageBackupNow:not([hidden])) :is(#storageNote,#storageBackupNow,#storageDegraded){grid-column:1 / -1;justify-self:start}
.settings-identity .settings-identity__backup{background:rgba(var(--accent-rgb),.14);color:var(--accent-deep)}
.settings-identity__mark{width:36px;height:36px;border-radius:var(--radius-prominent);overflow:hidden;background:#efe5df;box-shadow:0 1px 2px rgba(23,23,25,.12),0 6px 18px rgba(23,23,25,.08);flex:none}
.settings-identity__mark img{display:block;width:100%;height:100%;object-fit:cover}
/* The cream tile would be the brightest thing on a dark page; it steps down to sit with the type. */
:root[data-theme="dark"] .settings-identity__mark{filter:brightness(.78);box-shadow:none}
.settings-identity__name{font-family:var(--font-language);font-size:var(--font-size-subtitle);font-weight:var(--weight-semibold);line-height:var(--line-tight);color:var(--color-ink)}
/* The backup warning's remedy: a quiet action in the ink, a full target, under the note it answers. */
/* The one action the storage note asks for reads as a button: a quiet secondary pill, not a link. */
.settings-identity__backup{display:inline-flex;align-items:center;min-height:var(--control-target);margin-top:var(--space-8);padding:0 var(--space-16);
  border:0;border-radius:var(--radius-control);background:var(--control-track);color:var(--control-quiet-ink);
  font-size:var(--font-size-body-small);font-weight:var(--weight-semibold);text-decoration:none}
.settings-identity__backup[hidden]{display:none}
.settings-identity__cap{font-family:var(--font-language);font-size:var(--font-size-body-small);line-height:var(--line-reading);color:var(--color-ink-secondary);margin-top:2px}
/* A panel is the tail of the row that opened it: it shares that row's text
   column, and the rule that closes it is the next row's. */
.settings-panel{display:none;padding:4px var(--settings-inset) 14px;background:transparent}
.settings-panel.is-open{display:block}
/* A panel that has just been closed stays on screen while its height travels
   to zero, and only then goes. The marker exists for the length of that
   animation and never appears in a resting state. */
.settings-panel.is-collapsing{display:block}
.settings-group > .field,.settings-group > .lede,.settings-group > .rirmode{margin-left:var(--settings-inset);margin-right:var(--settings-inset)}
.settings-group .notifytypes .field--check{margin-left:calc(var(--settings-inset) * -1);margin-right:calc(var(--settings-inset) * -1);padding:2px var(--settings-inset)}
.settings-group > .lede{padding-bottom:10px}
.onb__cancel{color:var(--accent-deep)}
.onb__title{font-size:var(--font-size-subtitle);font-weight:600;text-align:center}
/* @ci-domain entry,program */
.entry__hub{display:flex;flex-direction:column;gap:10px;margin-top:8px}
.entry-card{display:flex;flex-direction:column;gap:4px;text-align:left;width:100%;min-height:44px;padding:14px 16px;border-radius:var(--radius-surface);border:1px solid var(--rule);background:var(--surface);color:var(--ink);cursor:pointer;font:inherit;overflow-wrap:anywhere}
/* Hover and focus are distinct signals: a pointer resting on a card tints its
   keyline, while the copper ring is reserved for keyboard focus. Sharing one
   declaration made a hovered card read as the focused one. */
@media (hover: hover) and (pointer: fine){
.entry-card:hover{border-color:var(--accent)}
}
.entry-card:focus-visible{border-color:var(--accent);outline:2px solid var(--accent);outline-offset:2px}
.entry-card--primary{border-color:var(--accent);box-shadow:var(--control-accent-keyline-shadow)}
.entry-card--secondary{background:transparent}
.entry-card__title{font-weight:var(--weight-semibold);font-size:var(--font-size-control)}
.entry-card__cap{font-size:var(--font-size-body-small);color:var(--ink-soft);line-height:1.35}
.entry__own{display:flex;flex-direction:column;gap:8px;padding:4px 0 0 8px;border-left:2px solid var(--rule)}
.entry__active,.entry__legacy,.entry__explain{margin:0 0 12px;padding:10px 12px;border-radius:var(--radius-surface);background:var(--well);border:0;color:var(--ink-soft);font-size:var(--font-size-body-small);line-height:1.4}
/* Severity carried by three channels — a rail, a glyph and the title colour —
   because `--danger` and `--accent` are close enough in hue that a border swap
   alone reads as branding rather than alarm. The role each notice already
   carries drives the treatment, so the visual matches what is announced. */
.entry__notice{
  margin:0 0 16px;padding:4px 0 4px 14px;border-radius:0;
  border:0;border-left:3px solid var(--rule-strong);
  background:transparent;overflow-wrap:anywhere
}
.entry__notice--error,.entry__notice[role="alert"]{border-left-color:var(--danger)}
.entry__notice--warn{border-left-color:var(--accent)}
.entry__notice--error>strong,.entry__notice[role="alert"]>strong{color:var(--danger)}
.entry__notice--error>strong::before,
.entry__notice[role="alert"]>strong::before,
.entry__notice--warn>strong::before{
  content:"";flex:none;width:16px;height:16px;background:currentColor;
  -webkit-mask:no-repeat center/contain;mask:no-repeat center/contain;
  -webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7.5v5.5'/%3E%3Cpath d='M12 16.5h.01'/%3E%3C/svg%3E");
  mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7.5v5.5'/%3E%3Cpath d='M12 16.5h.01'/%3E%3C/svg%3E");
}
.entry__notice--warn>strong::before{color:var(--accent)}
.entry__notice>strong{display:flex;align-items:center;gap:8px;margin-bottom:6px}
.entry__notice p{margin:0 0 12px;color:var(--ink-soft);font-size:var(--font-size-body-small);line-height:1.4}
.btnrow--primary-first{flex-direction:column}
/* A discard is not a Back button. */
.btn--destructive{color:var(--danger);border-color:var(--rule)}
/* `.btnrow .btn{flex:1 1 max-content}` sizes the main axis, so in a column that
   became a height rule and stretched each button to fill the row. */
.btnrow--primary-first .btn{width:100%;flex:0 0 auto}

/* Review actions sit above the weekly detail, not after it. */
.entry__confirm-alt{display:flex;gap:10px}
.entry__confirm-alt .btn{flex:1}

/* ---- Result and review payoff surfaces ----
   The generated recommendation and the editable review share one grammar:
   a program identity, a compact metric strip, and ruled icon-and-copy rows.
   Informational rows stay open (hairline + icon); only genuine choices get a
   bounded white surface elsewhere in the flow. */

/* The named program is the payoff of the whole flow, not a subheading. */
/* The review keeps the candidate's real name in its own case — a screen
   reader and the browser tests both read this string verbatim — and leans on
   weight and the bounded surface for prominence rather than a transform. */
.entry__decision h3{
  margin:0 0 4px;font-size:var(--font-size-subtitle);font-weight:var(--weight-semibold);line-height:1.25;
  letter-spacing:-.005em;color:var(--ink)
}
.entry__ident--boxed{
  margin:14px 0 4px;padding:16px 16px 6px;
  border:1px solid var(--rule);border-radius:var(--radius-surface);background:var(--surface)
}
.entry__source{margin:0 0 12px;color:var(--ink-soft);font-size:var(--font-size-body-small)}
.entry__ident--boxed .entry__source{margin-bottom:0}
.entry__source span{font-weight:600;color:var(--ink-faint);text-transform:uppercase;
  font-size:var(--font-size-label);letter-spacing:.06em;margin-right:6px}

/* The Browse catalogue's answered-context row: the schedule and environment
   facts the list below is filtered by. An open ruled band rather than a card,
   with middot separators — a border-left would dangle at the start of a
   wrapped line, and this row wraps on narrow phones. */
.entry__facts{
  display:flex;flex-wrap:wrap;gap:4px 12px;margin:14px 0 4px;padding:11px 0;
  border-top:1px solid var(--boundary-decorative);border-bottom:1px solid var(--boundary-decorative);
  font-family:var(--font-language);font-size:var(--font-size-caption);font-weight:var(--weight-medium);
  line-height:var(--line-standard);color:var(--color-ink);font-variant-numeric:tabular-nums
}
/* Mono is for values: the words of a fact line are the language font and each figure is a `.num` (R7 V-18). */
.entry__facts .entry__fact--data{font-family:var(--font-language)}
.entry__facts .num,.entry-prog__facts .num,.onb__dayname .num,.entry__change-grid .num,.review__daymeta .num,.review-sheet__time .num{font-family:var(--font-training-data)}
/* A figure stays inline inside its line; `.onb__dayname span` would otherwise stack it as a block. */
.onb__dayname span.num{display:inline;margin:0;font-size:inherit;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit}
.entry__facts>span:not(:last-child)::after{
  content:"·";margin-left:12px;font-weight:var(--weight-regular);color:var(--color-ink-secondary)
}

/* Ruled icon-and-copy rows: the "why it fits" list and the review facets.
   Not interactive — no chevron — so they read as explanation, not navigation. */
.entry__rows{list-style:none;margin:10px 0 4px;padding:0;border-top:1px solid var(--rule)}
.entry__row{
  display:flex;align-items:flex-start;gap:14px;padding:14px 2px;
  border-bottom:1px solid var(--rule)
}
.entry__row-ico{flex:none;width:24px;height:24px;margin-top:1px;color:var(--ink-soft)}
.entry__rows--reasons .entry__row-ico{color:var(--accent)}
.entry__row-body{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px}
/* An `h4` here so the review keeps its heading outline; the global reset gives
   headings no margin, so only the label treatment is needed. */
.entry__row-lab{
  margin:0;font-size:var(--font-size-label);font-weight:var(--weight-semibold);letter-spacing:.06em;text-transform:uppercase;color:var(--ink-faint)
}
.entry__row-body p{margin:0}
.entry__row-body,.entry__row-body p{font-size:var(--font-size-body-small);line-height:1.45;color:var(--ink)}

/* Edit / Start over sit under the dominant activation action as a quiet pair. */
.entry__confirm-alt .btn{display:inline-flex;align-items:center;justify-content:center;gap:8px}
.entry__confirm-alt .btn .icon-mask{width:15px;height:15px;flex:none}

/* Resume: recovery gets its own legible composition — a single bounded
   surface, the route/step context, and the real saved location. */
.entry__resume{
  margin:0 0 16px;border:1px solid var(--boundary-decorative);
  border-radius:var(--radius-surface);background:var(--color-surface);color:var(--color-ink);overflow:hidden
}
.entry__resume-head{display:flex;gap:14px;align-items:flex-start;padding:18px 16px}
.entry__resume-head .entry__resume-ico{color:var(--color-ink-secondary)}
.entry__resume-copy strong{
  display:block;margin-bottom:6px;color:var(--color-ink);font-family:var(--font-language);
  font-size:var(--font-size-subtitle);font-weight:var(--weight-semibold);line-height:var(--line-tight)
}
.entry__resume-copy p{
  margin:0;color:var(--color-ink-secondary);font-family:var(--font-language);
  font-size:var(--font-size-body);line-height:var(--line-reading)
}
.entry__resume-loc{
  display:flex;gap:14px;align-items:flex-start;padding:14px 16px;border-top:1px solid var(--boundary-decorative)
}
.entry__resume-loc .entry__resume-ico{color:var(--color-action)}
.entry__resume-loc p{
  margin:0;color:var(--color-ink-secondary);font-family:var(--font-language);
  font-size:var(--font-size-body-small);line-height:var(--line-reading);overflow-wrap:anywhere
}
.entry__resume-ico{flex:none;width:24px;height:24px;margin-top:1px}

/* Numbered day badge in the weekly-structure list. The facts line already
   breaks to its own row via `.onb__dayname span`; keep that and inline only
   the badge with the day name. */
.entry-body .onb__dayname{display:flex;flex-wrap:wrap;align-items:center}
.entry-body .onb__dayname>span:not(.onb__daynum){flex-basis:100%}
.entry-body .onb__dayname span.onb__daynum{
  flex:none;display:grid;place-items:center;width:26px;height:26px;border-radius:50%;
  background:var(--well);border:1px solid var(--rule);margin:0 10px 0 0;
  font-size:var(--font-size-caption);font-weight:var(--weight-semibold);color:var(--accent-deep)
}
.entry__group-lab{margin:16px 0 8px;font-size:var(--font-size-caption);font-weight:var(--weight-semibold);letter-spacing:.04em;text-transform:uppercase;color:var(--ink-faint)}
.entry__optional{
  margin:0 0 6px;font-size:var(--font-size-label);font-weight:var(--weight-semibold);letter-spacing:.06em;
  text-transform:uppercase;color:var(--ink-faint)
}
.entry__field{
  display:flex;flex-direction:column;gap:6px;margin:12px 0 16px;
  font-size:var(--font-size-label);font-weight:600;letter-spacing:var(--track-label);text-transform:uppercase;color:var(--ink-faint)
}
.entry__field input{text-transform:none;letter-spacing:normal;color:var(--ink);font-size:var(--font-size-control)}
.entry__field input{font:inherit;font-weight:500;padding:12px 14px;border-radius:var(--radius-control);border:1px solid var(--rule);background:var(--surface);color:var(--ink)}

/* Free-form import. Two long fields with a hand-off between them, so the
   screen is read as a sequence rather than a form: paste, convert, paste back.
   The app links are anchors — a real navigation survives a standalone install
   — and carry their unavailable state on `is-disabled`, since an anchor has no
   `:disabled` of its own. */
.entry__field--area{gap:8px}
.entry__field--area textarea{
  font:inherit;font-weight:500;text-transform:none;letter-spacing:normal;
  padding:12px 14px;border-radius:var(--radius-control);border:1px solid var(--control-field-boundary);
  background:var(--control-field-bg);color:var(--control-field-ink);font-family:var(--font-language);
  font-size:var(--font-size-control);line-height:var(--line-reading);
  resize:vertical;min-height:96px;width:100%;box-sizing:border-box
}
.entry__freeform-apps{display:flex;flex-wrap:wrap;gap:10px;margin:4px 0 0}
.entry__freeform-app{flex:1 1 150px;text-decoration:none;text-align:center}
.entry__freeform-app.is-disabled{background:var(--control-secondary-bg);color:var(--color-disabled-reason);border-color:var(--boundary-decorative);opacity:1;cursor:not-allowed}
/* Managed free-text import stays inside the existing Import visual system. */
.entry__managed{display:grid;gap:10px;margin:12px 0 0}
.entry__managed[hidden]{display:none}
#onbBody.entry-route--import #entryManagedPanel .entry__managed-disclosure{margin:0}
/* The widget sizes itself; an empty host (invisible mode, or not yet drawn) takes no space. */
.entry__managed-widget{width:100%;max-width:100%;overflow:hidden}
.entry__managed-widget:empty{display:none}
.entry__managed .btn--cta{width:100%;min-height:var(--control-target)}
.entry__managed #entryManagedStatus{margin:0}
/* Only with the managed panel showing does the hand-off step back to a quiet
   secondary action; without it, Continue keeps the route's primary recipe as is. */
.entry__managed:not([hidden])+.entry__managed-fallback{display:block;width:auto;margin:4px auto 0}
/* The escape hatches sit behind one line so three candidates and a way out fit
   a 390px row without wrapping into a wall of buttons. */
.improw__more{grid-column:1/-1;flex:1 0 100%;width:100%;min-width:0;margin:6px 0 0}
.improw__more summary{min-height:var(--control-target);padding:10px 0;cursor:pointer;background:var(--control-disclosure-bg);color:var(--control-disclosure-ink);border-color:var(--control-disclosure-boundary);font-family:var(--font-language);font-size:var(--font-size-control);font-weight:var(--weight-medium);line-height:var(--line-standard)}
.improw__more .improw__acts{margin-top:6px}
/* A quiet "or" between the clipboard route and the manual one. Both are real
   paths, so the divider separates them rather than demoting either. */
.entry__divider{display:flex;align-items:center;gap:12px;margin:18px 0 12px;
  color:var(--ink-soft);font-size:var(--font-size-body-small);text-align:center}
.entry__divider::before,.entry__divider::after{content:"";flex:1 1 auto;height:1px;background:var(--rule)}
.entry__gaps-list{display:flex;flex-direction:column;gap:12px;margin:16px 0}
/* Missing values are grouped under their training day, so each label names only the exercise. */
.entry__gap-day{border:0;margin:0;padding:0;min-width:0;display:flex;flex-direction:column;gap:var(--space-8)}
.entry__gap-day+.entry__gap-day{margin-top:var(--space-18)}
/* The day reads as the group label every entry screen uses: caption size, tracked capitals. */
.entry__gap-day-title{padding:0;margin:0 0 var(--space-4);font-family:var(--font-language);font-size:var(--font-size-caption);font-weight:var(--weight-semibold);letter-spacing:.04em;text-transform:uppercase;line-height:var(--line-standard);color:var(--color-ink-secondary);overflow-wrap:anywhere}
/* The gap step tells the lifter which fields are highlighted, so they have to
   actually be highlighted; aria-invalid carries the same state to a reader. */
.entry__field-input.is-invalid{border-color:var(--control-error-boundary);box-shadow:none}
/* Coming back from the assistant marks the reply field rather than stealing
   focus or the keyboard. */
.entry__field--area textarea.is-returned{border-color:var(--color-action);transition:border-color .25s ease}
@media (prefers-reduced-motion:reduce){.entry__field--area textarea.is-returned{transition:none}}
.entry__original-text{margin:16px 0;padding:8px 12px;border:1px solid var(--boundary-decorative);border-radius:var(--radius-surface);background:var(--color-surface)}
.entry__original-text summary{min-height:var(--control-target);padding:10px 0;cursor:pointer;background:var(--control-disclosure-bg);color:var(--control-disclosure-ink);font-family:var(--font-language);font-size:var(--font-size-control);font-weight:var(--weight-medium);line-height:var(--line-standard)}
.entry__original-text pre{margin:10px 0 0;font:inherit;font-family:var(--font-language);font-size:var(--font-size-body-small);line-height:var(--line-reading);white-space:pre-wrap;word-break:break-word;color:var(--color-ink)}
.entry__freeform-summary{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px 14px;border:1px solid var(--boundary-decorative);border-radius:var(--radius-surface);background:var(--color-surface);margin-bottom:16px;font-family:var(--font-language);font-size:var(--font-size-body-small);line-height:var(--line-reading);color:var(--color-ink-secondary)}
.entry__freeform-preview{margin:12px 0;font-family:var(--font-language);font-size:var(--font-size-body-small);line-height:var(--line-reading)}
.entry__freeform-preview summary{min-height:var(--control-target);padding:10px 0;cursor:pointer;background:var(--control-disclosure-bg);color:var(--control-disclosure-ink);font-family:var(--font-language);font-size:var(--font-size-control);font-weight:var(--weight-medium);line-height:var(--line-standard)}
.entry__freeform-prompt-preview{margin:8px 0 0;padding:10px;background:var(--color-surface);border:1px solid var(--boundary-decorative);border-radius:var(--radius-surface);color:var(--color-ink-secondary);font-family:var(--font-language);font-size:var(--font-size-body-small);line-height:var(--line-reading);white-space:pre-wrap;max-height:160px;overflow-y:auto;overscroll-behavior:contain;}
.entry__switch{margin:16px 0 0;display:flex;justify-content:center}
.entry-body .entry__switch .btn--ghost{color:var(--ink-soft)}
/* @ci-domain global */
.radio-card.is-disabled,.radio-card:disabled{
  opacity:.45;cursor:not-allowed}
/* @ci-domain entry,program */
.entry__correct{margin-top:14px;padding-top:4px}
.entry__hint,.entry__pain{margin:14px 0 0;font-size:var(--font-size-body-small);line-height:1.4;color:var(--ink-soft)}
.entry__pain{padding:10px 12px;border-radius:var(--radius-surface);border:1px solid var(--rule);background:var(--surface)}
.entry__avoid-results{display:flex;flex-direction:column;gap:6px;margin:8px 0 12px;max-height:180px;overflow:auto;overscroll-behavior:contain;}
.entry-card--compact{padding:10px 12px}
.entry__avoid-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:12px}
.entry__avoid-item{padding:12px;border:1px solid var(--rule);border-radius:var(--radius-surface);background:var(--surface)}
.entry__avoid-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:8px}
.entry__ability-list{display:flex;flex-direction:column}
.entry__ability-row+.entry__ability-row{margin-top:14px;padding-top:14px;border-top:1px solid var(--rule)}
@media (min-width:720px){
  .entry__hub{display:grid;grid-template-columns:1fr 1fr;gap:12px}
  .entry-card--primary{grid-column:1/-1}
}
@media (min-width:900px){
  .onboarding .onb{max-width:960px}
  .onboarding .onb__body,.onboarding .onb__nav{max-width:820px;margin-left:auto;margin-right:auto}
  .onboarding .entry__hub{grid-template-columns:repeat(3,minmax(0,1fr))}
  .onboarding .entry-card--primary{grid-column:1/-1}
}
@media (prefers-reduced-motion:reduce){
  .entry-card{transition:none}
}

/* Program entry composition. The hub offers four comprehensible routes on the
   warm paper: Recommend is the focal route and takes a bounded copper keyline;
   the rest stay quiet hairline rows in the grammar used elsewhere in Taurifer.
   Route emphasis is not selection — no radio, check, or persistent pressed
   state lives on these cards. */
.entry-body--entry .entry-hub__lede{margin-top:4px;margin-bottom:22px}
.entry-hub-active .onb__title{visibility:hidden}
.entry-body .entry__hub{gap:0;margin-top:4px}
.entry-body .entry-card{
  flex-direction:row;align-items:center;gap:14px;min-height:64px;
  padding:16px 4px;border:0;border-bottom:1px solid var(--boundary-decorative);
  border-radius:var(--radius-none);background:var(--control-quiet-bg);color:var(--color-ink);
  box-shadow:none;transition:background-color .15s ease
}
/* The shared card base paints no inset ring here. Recommend receives the one
   focal keyline below; every other job stays subordinate to that first path. */
:root .entry-body .entry-card,
:root[data-theme="dark"] .entry-body .entry-card{box-shadow:none}
/* In the flow a route row is borderless, so hover reads as a wash rather than
   a keyline; the copper ring stays reserved for `:focus-visible`. */
@media (hover: hover) and (pointer: fine){
.entry-body .entry-card:hover{background:var(--well)}
}
.entry-body .entry-card:focus-visible{outline:var(--control-focus-outline);outline-offset:2px}
.entry-body .entry-card.is-pressed:not(:disabled){background:var(--row-pressed-bg);transform:var(--control-pressed-transform)}
.entry-body .entry-card--nested{min-height:52px;padding:12px 4px 12px 14px;border-bottom:0}
.entry-body .entry-card--subordinate{min-height:54px;padding:12px 4px;color:var(--ink-soft)}
.entry-body .entry-card--subordinate .entry-card__title{font-size:var(--font-size-body-small);color:var(--color-ink)}
.entry-body .entry-card__icon{width:28px;height:28px;flex:none;background:currentColor;color:var(--ink-soft)}
.entry-body .entry-card__body{display:flex;flex:1;min-width:0;flex-direction:column;gap:3px;text-align:left}
.entry-body .entry-card__title{font-family:var(--font-language);font-size:var(--font-size-body);line-height:var(--line-standard);font-weight:var(--weight-semibold)}
.entry-body .entry-card--secondary .entry-card__title{font-weight:var(--weight-semibold)}
.entry-body .entry-card__cap{font-family:var(--font-language);font-size:var(--font-size-body-small);line-height:var(--line-standard);color:var(--color-ink-secondary)}
.entry-body .entry-card__go{flex:none;color:var(--ink-faint)}

/* Secondary hub routes share the quiet-navigation recipe. The Freeform card
   keeps its exact ID owner; the file door and its peer routes use the generic
   secondary-card owner. Remembering an import source never selects a card. */
.entry-body #entryFreeformStart,
.entry-body .entry-card--secondary:not([id]){
  background:var(--control-quiet-bg);color:var(--control-quiet-ink);
  border-color:var(--control-quiet-boundary);border-bottom-color:var(--boundary-decorative)
}
@media (hover: hover) and (pointer: fine){
.entry-body #entryFreeformStart:hover:not(:disabled),
.entry-body .entry-card--secondary:not([id]):hover:not(:disabled){
  background:var(--well);color:var(--control-quiet-ink);
  border-color:var(--control-quiet-boundary);border-bottom-color:var(--boundary-decorative)
}
}
.entry-body #entryFreeformStart.is-pressed:not(:disabled),
.entry-body .entry-card--secondary:not([id]).is-pressed:not(:disabled){
  background:var(--row-pressed-bg);color:var(--control-quiet-ink);
  border-color:var(--control-quiet-boundary);border-bottom-color:var(--boundary-decorative)
}
.entry-body #entryFreeformStart:focus-visible,
.entry-body .entry-card--secondary:not([id]):focus-visible{
  border-color:var(--control-quiet-boundary);border-bottom-color:var(--boundary-decorative)
}
@media (hover: hover) and (pointer: fine){
.entry-body #entryFreeformStart:disabled:hover,
.entry-body .entry-card--secondary:not([id]):disabled:hover{
  background:var(--control-quiet-bg);color:var(--color-disabled-reason);
  border-color:var(--control-quiet-boundary);border-bottom-color:var(--boundary-decorative);
  opacity:1;cursor:not-allowed;transform:none
}
}
.entry-body #entryFreeformStart:disabled,
.entry-body #entryFreeformStart:disabled.is-pressed,
.entry-body .entry-card--secondary:not([id]):disabled,
.entry-body .entry-card--secondary:not([id]):disabled.is-pressed{
  background:var(--control-quiet-bg);color:var(--color-disabled-reason);
  border-color:var(--control-quiet-boundary);border-bottom-color:var(--boundary-decorative);
  opacity:1;cursor:not-allowed;transform:none
}
/* The focal route: a full rounded keyline and a whisper of copper wash, so it
   reads as the recommended path without a fake selected state. */
.entry-body .entry-card[data-entry-route="recommend"]{
  margin-bottom:14px;padding:18px 16px;border:1.5px solid var(--accent);
  border-radius:var(--radius-surface);background:var(--entry-tint)
}
@media (hover: hover) and (pointer: fine){
.entry-body .entry-card[data-entry-route="recommend"]:hover{background:var(--entry-tint)}
}
.entry-body .entry-card[data-entry-route="recommend"].is-pressed:not(:disabled){background:var(--entry-tint)}
.entry-body .entry-card[data-entry-route="recommend"] .entry-card__icon,
.entry-body .entry-card[data-entry-route="recommend"] .entry-card__go{color:var(--accent)}
.entry-body .entry__own{gap:0;padding:2px 0 2px 20px;border-left:1px solid var(--rule);margin-top:2px}
.entry-body .entry__group-lab{
  margin:22px 0 8px;display:flex;align-items:center;gap:10px;color:var(--ink-faint)
}
.entry-body .entry__group-lab:first-child{margin-top:8px}
/* Copper section metadata: the hub route groups, the questionnaire section
   headers that carry a glyph, and the result's "why it fits". */
.entry-body--entry .entry__group-lab{color:var(--accent-deep)}
.entry-body--entry .entry__group-lab::after{content:"";flex:1;height:1px;background:var(--rule)}

/* ---- Choice rows in the entry flows ----
   A questionnaire answer is a choice row (native UI kit §5, owner 2026-10-24): the base `.radio-card` row with an
   optional leading identity glyph and the trailing mark. Selected is the mark alone; the orange budget holds. */
.entry-body .onb__opts{display:flex;flex-direction:column;gap:0}
.entry-body .radio-card{position:relative;isolation:isolate}
@media (hover: hover) and (pointer: fine){
.entry-body .radio-card:hover:not(:disabled):not(.is-disabled){background:var(--row-pressed-bg)}
}
.entry-body .radio-card__cap{font-size:var(--font-size-body-small);line-height:var(--line-standard);color:var(--ink-soft)}
.entry-body .radio-card__icon{flex:none;width:28px;height:28px;background:currentColor;color:var(--ink-soft)}
.entry-body .radio-card.is-disabled,.entry-body .radio-card:disabled{opacity:.45}

/* Grouped list: the plain enumerations (experience, consistency, rest, environment) are the same rows. */
.entry-body .onb__opts.onb__list{gap:0;border:0;border-radius:var(--radius-none);background:transparent;overflow:visible}

/* The tile families keep a tile: a bounded surface, the quiet ink ring when chosen. */
.entry-body .onb__opts.onb__grid .radio-card,
:is(.entry-body,.review__days) .entry-b__compact .radio-card,
.entry-body .onb__opts--reasons .radio-card{
  border:1px solid var(--control-selection-boundary);border-radius:var(--radius-surface);background:var(--surface)
}
.entry-body .onb__opts.onb__grid .radio-card.is-selected,
:is(.entry-body,.review__days) .entry-b__compact .radio-card.is-selected,
.entry-body .onb__opts--reasons .radio-card.is-selected{
  border-color:var(--boundary-selected-quiet);box-shadow:var(--elevation-selected-quiet-shadow);background:var(--well)
}

/* Tiles: the short-label muscle and movement checkboxes. Bounded cards in a
   responsive grid, checkbox mark trailing. */
.entry-body .onb__opts.onb__grid{
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px
}
.entry-body .onb__opts.onb__grid .radio-card{
  min-height:48px;padding:9px 10px;gap:6px;border-radius:var(--radius-surface)}
.entry-body .onb__opts.onb__grid .radio-card__body{flex:1 1 auto}
.entry-body .onb__opts.onb__grid .radio-card__title{font-size:var(--font-size-body-small);overflow-wrap:anywhere}
.entry-body .onb__opts.onb__grid .radio-card__mark{width:16px;height:16px;margin-left:auto}
.entry-body .onb__opts.onb__grid>.radio-card:last-child:nth-child(3n+1){grid-column:1/-1}
.entry-body .onb__opts.onb__grid>.radio-card:last-child:nth-child(3n+2){grid-column:2/-1}
.entry-body .onb__opts.onb__grid--balanced{
  grid-template-columns:repeat(2,minmax(0,1fr))
}
.entry-body .onb__opts.onb__grid--balanced>.radio-card:last-child:nth-child(3n+1),
.entry-body .onb__opts.onb__grid--balanced>.radio-card:last-child:nth-child(3n+2){grid-column:auto}
@media (max-width:360px){
  .entry-body .onb__opts.onb__grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .entry-body .onb__opts.onb__grid>.radio-card:last-child:nth-child(3n+1),
  .entry-body .onb__opts.onb__grid>.radio-card:last-child:nth-child(3n+2){grid-column:auto}
  .entry-body .onb__opts.onb__grid>.radio-card:last-child:nth-child(odd){grid-column:1/-1}
}

/* Custom muscle priorities: one bounded row per muscle and one mutually
   exclusive setting per row. The status label stays beside the muscle name so
   the selected state is understandable without relying on colour alone. */
.entry__muscle-list{display:flex;flex-direction:column;border:1px solid var(--boundary-decorative);border-radius:var(--radius-surface);background:var(--color-surface);overflow:hidden}
.entry__muscle-row{display:flex;flex-direction:column;gap:10px;padding:13px 12px;border-top:1px solid var(--boundary-decorative)}
.entry__muscle-row:first-child{border-top:0}
.entry__muscle-name{display:flex;align-items:center;justify-content:space-between;gap:10px;font-family:var(--font-language);font-size:var(--font-size-body);font-weight:var(--weight-semibold);line-height:var(--line-standard);color:var(--color-ink)}
.entry__muscle-current{flex:none;padding:3px 7px;border:1px solid var(--boundary-decorative);border-radius:var(--radius-pill);font-family:var(--font-language);font-size:var(--font-size-label);font-weight:var(--weight-semibold);line-height:var(--line-standard);letter-spacing:.04em;text-transform:uppercase;color:var(--color-ink-secondary)}
.entry__muscle-states{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,9rem),1fr));gap:6px}
.entry__muscle-state{min-height:var(--control-target);padding:7px 8px;border:1px solid var(--control-selection-boundary);border-radius:var(--radius-control);background:var(--control-selection-bg);color:var(--control-selection-ink);font-family:var(--font-language);font-size:var(--font-size-control);font-weight:var(--weight-medium);line-height:var(--line-standard);text-align:center;overflow-wrap:anywhere}
@media (hover: hover) and (pointer: fine){
.entry__muscle-state:hover:not(:disabled):not(.is-selected){border-color:var(--control-selection-boundary);background:var(--well);color:var(--control-selection-ink)}
}
.entry__muscle-state.is-pressed:not(:disabled):not(.is-selected){border-color:var(--control-selection-boundary);background:var(--row-pressed-bg);color:var(--control-selection-ink)}
.entry__muscle-state.is-pressed:not(:disabled){transform:var(--control-pressed-transform)}
.entry__muscle-state:focus-visible{outline:var(--control-focus-outline);outline-offset:2px}
.entry__muscle-state.is-selected{border-color:var(--boundary-selected-quiet);box-shadow:var(--elevation-selected-quiet-shadow);background:var(--well);color:var(--control-selection-ink)}
@media (hover: hover) and (pointer: fine){
.entry__muscle-state.is-disabled:hover,
.entry__muscle-state:disabled:hover{
  border-color:var(--boundary-decorative);background:var(--control-selection-bg);
  color:var(--color-disabled-reason);opacity:1;cursor:not-allowed;transform:none
}
}
.entry__muscle-state.is-disabled,
.entry__muscle-state:disabled,
.entry__muscle-state.is-disabled.is-pressed,
.entry__muscle-state:disabled.is-pressed{
  border-color:var(--boundary-decorative);background:var(--control-selection-bg);
  color:var(--color-disabled-reason);opacity:1;cursor:not-allowed;transform:none
}
.entry__muscle-state-hint{margin-bottom:10px;font-family:var(--font-language);font-size:var(--font-size-body-small);line-height:var(--line-reading);color:var(--color-ink-secondary)}

/* Custom exercise preferences: one search result, two explicit outcomes.
   The selected lists below keep Include and Avoid visibly separate after the
   result has left the search area. */
.entry__exercise-results{display:flex;flex-direction:column;border:1px solid var(--boundary-decorative);border-radius:var(--radius-surface);background:var(--color-surface);overflow:hidden}
.entry__exercise-result{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:11px 12px;border-top:1px solid var(--boundary-decorative)}
.entry__exercise-result:first-child{border-top:0}
.entry__exercise-name{min-width:0;font-family:var(--font-language);font-size:var(--font-size-body-small);font-weight:var(--weight-semibold);line-height:var(--line-standard);color:var(--color-ink);overflow-wrap:anywhere}
.entry__exercise-actions{display:flex;flex:none;gap:6px}
.entry__exercise-action{
  min-height:var(--control-target);padding:7px 10px;border:1px solid var(--control-selection-boundary);
  border-radius:var(--radius-control);background:var(--control-selection-bg);color:var(--control-selection-ink);
  font-family:var(--font-language);font-size:var(--font-size-control);font-weight:var(--weight-medium);
  line-height:var(--line-standard);white-space:nowrap;
}
@media (hover: hover) and (pointer: fine){
.entry__exercise-action:hover:not(:disabled){
  background:var(--well);color:var(--control-selection-ink);border-color:var(--control-selection-boundary);
}
}
.entry__exercise-action.is-pressed:not(:disabled){
  background:var(--row-pressed-bg);color:var(--control-selection-ink);border-color:var(--control-selection-boundary);
}
.entry__exercise-action.is-pressed:not(:disabled){transform:var(--control-pressed-transform)}
.entry__exercise-action:focus-visible{outline:var(--control-focus-outline);outline-offset:2px}
.entry__exercise-action:disabled{
  background:var(--control-selection-bg);color:var(--color-disabled-reason);border-color:var(--boundary-decorative);
  opacity:1;cursor:not-allowed;transform:none;
}
.entry__exercise-selected-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}
.entry__exercise-selected-group{margin-top:16px}
.entry__exercise-selected{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:11px 12px;border:1px solid var(--boundary-decorative);border-radius:var(--radius-surface);background:var(--color-surface);font-family:var(--font-language);font-size:var(--font-size-body-small);line-height:var(--line-standard);color:var(--color-ink)}
.entry__exercise-empty{padding:0 2px}
@media (max-width:360px){
  .entry__exercise-result{align-items:flex-start;flex-direction:column}
  .entry__exercise-actions{width:100%}
  .entry__exercise-action{flex:1 1 0}
}

/* Reason chooser: one closed reason per avoided exercise, laid out as a short
   horizontal row of radio pills. */
.entry-body .onb__opts.onb__opts--reasons{flex-direction:row;flex-wrap:wrap;gap:8px}
.entry-body .onb__opts--reasons .radio-card{
  width:auto;flex:0 1 auto;min-height:44px;padding:9px 12px;gap:8px;border-radius:var(--radius-pill)}
.entry-body .onb__opts--reasons .radio-card__body{flex:0 0 auto}
.entry-body .onb__opts--reasons .radio-card__title{font-size:var(--font-size-body-small)}

.entry-body .onb__q{margin:0 0 6px;text-wrap:balance;overflow-wrap:anywhere}
.entry-body .onb__explain{margin:0 0 20px;font-size:var(--font-size-control);line-height:1.45;color:var(--ink-soft)}
.entry-body .onb__explain:last-child{margin-bottom:0}
.entry-body .entry__hint{margin:0 0 18px}
@media (prefers-reduced-motion:reduce){
  .entry-body .entry-card,.entry-body .radio-card{transition:none}
}

/* Browse catalogue. A program is compared, not skimmed: identity first, then
   the facts that differ between programs, then the assumptions behind them.
   Deliberately not `.entry-card`, whose row layout is built for the hub. */
.entry__progs{display:flex;flex-direction:column;margin-top:4px}
.entry-prog{
  display:flex;flex-direction:column;gap:6px;width:100%;min-height:var(--control-target);padding:16px 0;
  border:0;border-bottom:1px solid var(--boundary-decorative);border-radius:var(--radius-none);
  background:var(--control-quiet-bg);color:var(--control-quiet-ink);font:inherit;text-align:left;cursor:pointer;
}
@media (hover: hover) and (pointer: fine){
.entry-prog:not([id]):hover:not(:disabled){background:var(--well);color:var(--control-quiet-ink)}
}
.entry-prog:not([id]).is-pressed:not(:disabled){background:var(--row-pressed-bg);color:var(--control-quiet-ink)}
.entry-prog:not([id]).is-pressed:not(:disabled){transform:var(--control-pressed-transform)}
.entry-prog:not([id]):focus-visible{outline:var(--control-focus-outline);outline-offset:2px}
@media (hover: hover) and (pointer: fine){
.entry-prog:not([id]):disabled:hover{
  background:var(--control-quiet-bg);color:var(--color-disabled-reason);
  border-bottom-color:var(--boundary-decorative);opacity:1;cursor:not-allowed;transform:none
}
}
.entry-prog:not([id]):disabled,
.entry-prog:not([id]):disabled.is-pressed{
  background:var(--control-quiet-bg);color:var(--color-disabled-reason);
  border-bottom-color:var(--boundary-decorative);opacity:1;cursor:not-allowed;transform:none
}
.entry-prog__head{display:flex;align-items:center;gap:10px;width:100%}
.entry-prog__name{
  flex:1;min-width:0;color:var(--color-ink);font-family:var(--font-language);
  font-size:var(--font-size-subtitle);font-weight:var(--weight-semibold);line-height:var(--line-tight)
}
.entry-prog__days{
  flex:none;padding:3px 9px;border:1px solid var(--boundary-decorative);border-radius:var(--radius-pill);
  font-family:var(--font-training-data);font-size:var(--font-size-label);font-weight:var(--weight-medium);
  line-height:var(--line-standard);letter-spacing:.05em;color:var(--color-ink-secondary);white-space:nowrap;
}
.entry-prog__go{flex:none;color:var(--color-ink-secondary)}
.entry-prog__purpose{
  font-family:var(--font-language);font-size:var(--font-size-body-small);
  line-height:var(--line-reading);color:var(--color-ink-secondary)
}
.entry-prog__facts{
  display:flex;flex-wrap:wrap;gap:2px 9px;color:var(--color-ink);font-family:var(--font-language);
  font-size:var(--font-size-caption);font-weight:var(--weight-medium);line-height:var(--line-standard)
}
.entry-prog__facts>span:not(:last-child)::after{content:"·";margin-left:9px;font-weight:var(--weight-regular);color:var(--color-ink-secondary)}
.entry-prog__meta{
  font-family:var(--font-language);font-size:var(--font-size-caption);
  line-height:var(--line-reading);color:var(--color-ink-secondary)
}
.entry-prog__warn{
  font-family:var(--font-language);font-size:var(--font-size-caption);
  font-weight:var(--weight-semibold);line-height:var(--line-reading);color:var(--color-warning)
}
@media (min-width:720px){
  .entry__progs{display:grid;grid-template-columns:1fr 1fr;column-gap:28px}
}
@media (min-width:720px){
  .entry-body .entry__hub--routes{display:grid;grid-template-columns:1fr 1fr;column-gap:28px}
  .entry-body .entry__hub--routes .entry-card[data-entry-route="recommend"]{grid-column:1/-1}
  .entry-body .entry__hub--routes .entry__own{grid-column:1/-1}
}

.entry-body .entry__decision h3{margin-top:0}

/* Equipment is a correction, so its long inventory sits under one native
   disclosure while remaining keyboard and screen-reader discoverable. */
.entry__disclosure{margin-top:16px;border:1px solid var(--rule);border-radius:var(--radius-surface);background:var(--surface);padding:0 14px}
.entry__disclosure>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:48px;padding:12px 0;cursor:pointer;font-size:var(--font-size-control);font-weight:600;list-style:none}
.entry__disclosure>summary::-webkit-details-marker{display:none}
.entry__disclosure>summary .chevron{transform:rotate(90deg);transition:transform .15s ease}
.entry__disclosure[open]>summary{border-bottom:1px solid var(--rule)}
.entry__disclosure[open]>summary .chevron{transform:rotate(270deg)}
.entry__disclosure-body{padding:12px 0 14px}
.entry__disclosure-body .entry__group-lab{margin-top:12px}
.entry__disclosure-body .onb__opts.onb__grid{grid-template-columns:repeat(2,minmax(0,1fr))}
@media (prefers-reduced-motion:reduce){.entry__disclosure>summary .chevron{transition:none}}

/* Priorities and avoidance: a dense optional section kept structured. */
.entry-body--priorities .entry__group-lab{margin-top:22px}
.entry-body--priorities .entry__none{margin-bottom:6px}
.entry-body--priorities .entry__avoid-list{gap:10px}
.entry-body--priorities .entry__avoid-item{
  padding:14px;border:1px solid var(--rule);border-radius:var(--radius-surface);background:var(--surface)
}
.entry-body--priorities .entry__avoid-pending{border-color:var(--accent)}
.entry-body--priorities .entry-card--compact{min-height:44px;padding:10px 12px;border:1px solid var(--rule);border-radius:var(--radius-surface);background:var(--surface)}
.entry-body--priorities .entry__optional{font-size:var(--font-size-body-small);font-weight:400;letter-spacing:0;text-transform:none;color:var(--ink-soft);margin:0 0 4px}
.entry__avoid-head{align-items:center}
.entry__avoid-item .entry__avoid-head strong{font-size:var(--font-size-body-small);font-weight:600;color:var(--ink)}
/* A remove is a quiet text affordance, not a filled button. */
.entry__remove{
  flex:none;min-height:44px;padding:0 4px;border:0;background:none;cursor:pointer;
  font:inherit;font-size:var(--font-size-body-small);font-weight:600;color:var(--accent-deep)
}
@media (hover: hover) and (pointer: fine){
.entry__remove:hover{text-decoration:underline;text-underline-offset:3px}
}
.entry__remove:focus-visible{outline:2px solid var(--accent);outline-offset:2px;border-radius:var(--radius-compact)}

/* Search field with a leading glyph inside the input. */
.entry__field--search{position:relative}
.entry__field--search .entry__field-ico{
  position:absolute;left:14px;bottom:14px;width:18px;height:18px;color:var(--ink-faint);pointer-events:none
}
.entry__field--search input{padding-left:40px}

/* Pain / safety notice: a calm card on the --well ground with a --rule edge and an --ink-soft shield. No accent: the
   notice is information, not an action (R7 V-12, owner decision #295 comment 5965828337). */
.entry-body .entry__pain{
  display:flex;gap:12px;align-items:flex-start;margin:16px 0 0;padding:14px;
  border:1px solid var(--rule);border-radius:var(--radius-surface);
  background:var(--well);color:var(--ink);font-size:var(--font-size-body-small);line-height:1.45
}
.entry-body .entry__pain-ico{flex:none;width:22px;height:22px;color:var(--ink-soft);margin-top:1px}

/* Manual Build is an editable draft, not an activated Program view. Empty days
   stay explicit, with the next action attached to each day. */
.is-entry-editor .pmeta{margin-top:4px;margin-bottom:18px;padding-bottom:16px;border-bottom:1px solid var(--rule)}
.is-entry-editor .pmeta__draft{display:flex;align-items:center;gap:8px;margin:0 0 14px;font-size:var(--font-size-body-small);line-height:1.35;color:var(--ink-soft)}
.is-entry-editor .pmeta__draft-mark{width:8px;height:8px;border-radius:50%;background:var(--accent);flex:none}
.is-entry-editor .entry__active{margin:12px 0;padding:10px 0;border:0;border-bottom:1px solid var(--rule);border-radius:0;background:transparent}
.is-entry-editor .peditor{gap:0}
.is-entry-editor .pday{padding:16px 0 14px;background:transparent;border:0;border-bottom:1px solid var(--rule);border-radius:0}
.is-entry-editor .pday__head{margin-bottom:10px}
.is-entry-editor .pday__empty{margin:4px 0 10px;padding:10px 0;border-top:1px dashed var(--rule-strong);color:var(--ink-soft);font-style:normal}
.is-entry-editor .pday__add{width:auto;padding:8px 0;border:0;background:transparent;color:var(--accent-deep);text-align:left}
.is-entry-editor .peditor__addday{margin-top:18px}
@media (prefers-reduced-motion:reduce){
  .entry-body .radio-card,.entry__disclosure>summary{transition:none}
}
/* @ci-domain global */
.exview-head{display:flex;align-items:center;justify-content:center;position:relative;min-height:44px;margin-bottom:14px}
/* Exercise headers keep their Back action pinned at the left edge. */
.exview-head .back-link{position:absolute;left:0;display:inline-flex;align-items:center;min-height:44px}
.exview-head__title{margin:0;font-size:var(--font-size-subtitle);font-weight:600}
.exview-head__right{position:absolute;right:0}
/* Let the localized exercise title take its own row when enlarged text
   narrows the container, keeping Back and Close separate. */
@container (max-width:15em){
  #library .exview-head{
    display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:8px;row-gap:8px;min-height:0
  }
  #library .exview-head .back-link{
    position:static;left:auto;grid-column:1;grid-row:1;justify-self:start;min-width:0;white-space:normal;overflow-wrap:anywhere
  }
  #library .exview-head__title{
    grid-column:1/-1;grid-row:2;justify-self:stretch;min-width:0;max-width:100%;text-align:center;overflow-wrap:anywhere
  }
  #library .exview-head__right{
    position:static;right:auto;grid-column:2;grid-row:1;justify-self:end;min-width:0
  }
}
.chart-wrap{margin:4px 0 0}
.is-danger{color:var(--danger)!important}

/* @ci-domain progress */
/* ---- Progress: the Summary's rows and the Strength page (Plan 064 R3i, Summary since the Progress hill-climb) ----
   Rows are flat hairline-separated bands inside their group, figures are tabular, and the accent appears only on an
   up verdict glyph and the block card's current week. Every length is a --space-* step or a multiple of --control-target. */
/* Progress clips sideways overflow at its own box (no page ever scrolls sideways), so it spans the screen and carries
   the gutter as padding: content sits where it did, and what reaches the gutter can reach the screen edge. */
#stats{--stats-gut-l:max(var(--gut),env(safe-area-inset-left));--stats-gut-r:max(var(--gut),env(safe-area-inset-right));
  margin-inline:calc(-1 * var(--stats-gut-l)) calc(-1 * var(--stats-gut-r));padding-inline:var(--stats-gut-l) var(--stats-gut-r)}

.ovtotals{
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--space-12);
  margin-top:var(--space-18);padding:var(--space-12) 0;border-bottom:1px solid var(--boundary-decorative);
}
.ovtotals--3{grid-template-columns:repeat(3,minmax(0,1fr))}
.ovtotal{min-width:0}
.ovtotal__val{
  display:block;font-family:var(--font-language);font-weight:var(--weight-semibold);letter-spacing:-.02em;font-variant-numeric:tabular-nums;font-size:var(--font-size-metric);
  line-height:var(--line-tight);color:var(--color-ink);white-space:nowrap;
}
.ovtotal__of{font-style:normal;font-size:var(--font-size-body);color:var(--color-ink-secondary)}
.ovtotal__cap{
  display:block;margin-top:var(--space-4);font-family:var(--font-language);font-size:var(--font-size-body-small);
  line-height:var(--line-standard);color:var(--color-ink-secondary);
}
.ovweekline{
  margin:var(--space-8) 0 0;font-family:var(--font-language);font-size:var(--font-size-body-small);
  line-height:var(--line-standard);color:var(--color-ink-secondary);
}
.ovsec{
  display:flex;align-items:baseline;justify-content:space-between;gap:var(--space-12);
  margin-top:var(--space-26);padding-bottom:var(--space-8);border-bottom:1px solid var(--boundary-decorative);
}
.ovsec__title{
  margin:0;font-family:var(--font-language);font-size:var(--font-size-subtitle);font-weight:var(--weight-semibold);
  line-height:var(--line-tight);color:var(--color-ink);
}
.ovsec__meta{flex:none;font-family:var(--font-language);font-size:var(--font-size-body-small);line-height:var(--line-standard);color:var(--color-ink-secondary)}
.ovnone{
  margin:var(--space-12) 0 0;font-family:var(--font-language);font-size:var(--font-size-body);
  line-height:var(--line-standard);color:var(--color-ink-secondary);
}
.attention{margin-bottom:0}

/* The profile reads the record in words and counts, with no progress scale. */
.ovprofile{margin-bottom:var(--space-8)}
.ovprofile .ovsec:first-child{margin-top:var(--space-12)}
.profile-stage,.profile-effort,.profile-history-label{margin:var(--space-8) 0;font-size:var(--font-size-body-small);line-height:var(--line-reading);color:var(--color-ink-secondary)}
.profile-findings{list-style:none;margin:0;padding:0}
.profile-finding{padding:var(--space-12) 0;border-bottom:1px solid var(--boundary-decorative);overflow-wrap:anywhere}
.profile-finding time{font-size:var(--font-size-caption);line-height:var(--line-standard);color:var(--color-ink-secondary)}
.profile-finding p,.profile-finding-empty,.profile-finding-need{margin:var(--space-8) 0;font-size:var(--font-size-body-small);line-height:var(--line-reading);overflow-wrap:anywhere}
.profile-finding-empty,.profile-finding-need{color:var(--color-ink-secondary)}
.profile-lifts,.profile-signals{list-style:none;margin:0;padding:0}
.profile-lift{padding:var(--space-12) 0;border-bottom:1px solid var(--boundary-decorative);overflow-wrap:anywhere}
.profile-lift__name{margin:0 0 var(--space-4);font-size:var(--font-size-body);font-weight:var(--weight-semibold)}
.profile-lift p{margin:var(--space-4) 0 0;font-size:var(--font-size-body-small);line-height:var(--line-reading);color:var(--color-ink-secondary)}
.profile-lift .profile-lift__standing{color:var(--color-ink)}
.profile-signal{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:var(--space-4) var(--space-8);padding:var(--space-8) 0;font-size:var(--font-size-body-small);line-height:var(--line-standard)}
.profile-signal>span{min-width:0;overflow-wrap:anywhere}
.profile-signal>span:last-child{margin-left:auto;text-align:right;color:var(--color-ink-secondary);font-variant-numeric:tabular-nums}
.exercise-profile{margin-top:var(--space-16)}
.calcheck__result{display:block;max-width:20em;font-size:var(--font-size-caption);line-height:var(--line-reading);color:var(--color-ink-secondary)}
.calchecks{list-style:none;margin:0;padding:0}
.calcheck{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:baseline;gap:var(--space-12);padding:10px 0;border-bottom:1px solid var(--boundary-decorative);
  font-family:var(--font-language);font-size:var(--font-size-body);line-height:var(--line-standard);color:var(--color-ink)}
.calcheck__name{min-width:0;overflow-wrap:anywhere}
.calcheck__name small{display:block;font-size:var(--font-size-caption);color:var(--color-ink-secondary)}
.calcheck>span{min-width:0;overflow-wrap:anywhere}
.calcheck__gd{flex:none;font-family:var(--font-training-data);font-size:var(--font-size-body-small);color:var(--color-ink-secondary)}
.calcheck__gd b{font-weight:var(--weight-semibold);color:var(--color-ink)}
.calcheck--empty{color:var(--color-ink-secondary);font-size:var(--font-size-body-small)}
/* @ci-domain today,progress,session */
/* Saved evidence is drawn in ink. Scope changes are static comparisons. */
#todayDash>.pagehead{flex-wrap:wrap}
#todayDash>.pagehead>.pagehead__titles{min-width:min(100%,8rem)}
.profile-ring-link{display:flex;align-items:center;gap:var(--space-8);min-height:44px;margin-left:auto;padding:0;background:none;border:0;color:var(--ink);text-align:left;cursor:pointer}
.profile-ring-link>span{max-width:5em;font-size:var(--font-size-caption);line-height:var(--line-standard);overflow-wrap:anywhere}
.profile-ring{display:block;width:60px;height:60px;overflow:visible;flex:none}
.profile-ring--large{width:86px;height:86px}
/* The yoke stands in the ring's centre. The track is the pale rule so the ink arc reads at a low fill (owner's
   choice, 2026-11-27, over the 3:1 boundary contrast). On charcoal the mark gets its paper back as a plate
   (docs/brand-guide.md, The mark). */
.profile-ring circle{fill:none;stroke:var(--rule-strong);stroke-width:3}
.profile-ring .profile-ring__plate{fill:var(--profile-mark-plate);stroke:none}
.profile-ring .profile-ring__fill{stroke:var(--ink);stroke-width:5;stroke-linecap:round;transform:rotate(-90deg);transform-origin:center}
.profile-ring__fill.is-empty{visibility:hidden}
.profile-next-evidence{border-bottom:1px solid var(--rule);margin:0 0 var(--space-18);padding:var(--space-12) 0;font-size:var(--font-size-body-small);line-height:var(--line-standard);color:var(--ink-soft)}
.profile-scope-link{display:block;min-height:44px;width:100%;padding:0;border:0;background:none;color:inherit;font:inherit;text-align:left;cursor:pointer}
.profile-heading{margin:var(--space-12) 0 var(--space-4);font-size:var(--font-size-section-title);font-weight:var(--weight-semibold);line-height:var(--line-standard)}
.profile-intro{margin:var(--space-4) 0;font-size:var(--font-size-body-small);line-height:var(--line-standard);color:var(--ink-soft)}
.profile-caption{margin:var(--space-4) 0;font-size:var(--font-size-caption);line-height:var(--line-standard);color:var(--ink-soft);overflow-wrap:anywhere}
.profile-reading{display:flex;align-items:center;gap:var(--space-12);border-block:1px solid var(--rule);padding:var(--space-12) 0;margin:var(--space-14) 0}
.profile-reading>div{min-width:0}
.profile-reading__title{margin:var(--space-4) 0;font-size:var(--font-size-body-small);font-weight:var(--weight-medium);line-height:var(--line-standard)}
.profile-detail-counts{display:flex;flex-wrap:wrap;justify-content:space-between;gap:var(--space-8);padding-bottom:var(--space-8);font-size:var(--font-size-caption);line-height:var(--line-standard);color:var(--ink-soft)}
.profile-lift--link{padding:0}
.profile-lift--link button{display:flex;align-items:center;justify-content:space-between;gap:var(--space-12);min-height:52px;width:100%;padding:var(--space-8) 0;background:none;border:0;color:var(--ink);text-align:left;font-family:var(--font-language);cursor:pointer}
.profile-lift--link button>span{min-width:0}
.profile-lift--link .profile-lift__name{font-size:var(--font-size-body-small);line-height:var(--line-standard)}
.profile-lift--link .profile-lift__standing{font-size:var(--font-size-caption);line-height:var(--line-standard);color:var(--ink-soft)}
.profile-lift__depth{display:flex;align-items:center;gap:var(--space-4);font-size:var(--font-size-caption);line-height:var(--line-standard);color:var(--ink-soft);text-align:right}
.profile-lift__depth .chevron{width:10px;height:10px;flex:none}
#profilePageBack{color:var(--control-quiet-ink)}
#profilePage{overflow-x:clip;padding-top:var(--space-12)}
#profilePage h1{margin:var(--space-12) 0 var(--space-4);font-size:var(--font-size-title);font-weight:var(--weight-semibold);line-height:var(--line-tight);letter-spacing:-.02em;overflow-wrap:anywhere}
#profilePage h2,.profile-scope-inline h4{margin:var(--space-18) 0 var(--space-8);font-size:var(--font-size-subtitle);font-weight:var(--weight-semibold);line-height:var(--line-standard)}
#profilePage h3{margin:0;font-size:var(--font-size-body-small);font-weight:var(--weight-semibold);line-height:var(--line-standard)}
:is(#profilePage,.profile-scope-inline) p{line-height:var(--line-standard)}
.profile-lift-status{margin:var(--space-14) 0;padding:var(--space-12) 0;border-block:1px solid var(--rule)}
#profilePage .profile-lift-status h2{margin:0 0 var(--space-4)}
.profile-lift-status p{font-size:var(--font-size-body-small);color:var(--ink-soft);margin:var(--space-4) 0}
.profile-stage-list{list-style:none;padding:0;margin:0}
.profile-stage-list li{display:flex;gap:var(--space-12);padding:var(--space-8) 0;min-height:56px}
.profile-stage-list li>div{min-width:0}
.profile-stage-mark{display:grid;place-items:center;width:24px;height:24px;flex:none;border:1px solid var(--boundary-required);border-radius:var(--radius-round);font:var(--font-size-caption) var(--font-training-data)}
.profile-stage-list [data-attained="true"] .profile-stage-mark{background:var(--ink);color:var(--bg)}
.profile-stage-list p{margin:var(--space-4) 0 0;font-size:var(--font-size-caption);color:var(--ink-soft);overflow-wrap:anywhere}
.profile-stage-list [data-attained="false"]{border-top:1px solid var(--rule);margin-top:var(--space-4)}
.profile-depth{border-top:1px solid var(--rule);margin-top:var(--space-12)}
.profile-depth p{font-size:var(--font-size-body-small);margin:var(--space-8) 0}
.profile-depth .profile-caption{font-size:var(--font-size-caption)}
.profile-scope-inline{margin:var(--space-18) 0;padding-bottom:var(--space-18);border-bottom:1px solid var(--rule)}
#profileScopeTitle{margin:var(--space-12) 0 var(--space-4);font-size:var(--font-size-title);font-weight:var(--weight-semibold);line-height:var(--line-tight);letter-spacing:-.02em;overflow-wrap:anywhere}
.profile-scope-rings{display:flex;gap:var(--space-32);align-items:center;margin:var(--space-26) 0;border-bottom:1px solid var(--rule);padding-bottom:var(--space-18)}
.profile-scope-rings>div{flex:1;min-width:0;display:flex;align-items:center;flex-direction:column;gap:var(--space-8);text-align:center;font-size:var(--font-size-body-small)}
#profilePageContent>p,.profile-scope-inline>p:not(.profile-caption),.profile-scope-list p{font-size:var(--font-size-body-small);margin:var(--space-8) 0}
.profile-scope-list{list-style:none;padding:0;margin:var(--space-18) 0}
.profile-scope-list li{padding:var(--space-12) 0;border-bottom:1px solid var(--rule);font-size:var(--font-size-body)}
.profile-scope-list p{color:var(--ink-soft)}
#profileScopeContinue{width:100%;margin-top:var(--space-18)}
.profile-ring-link:focus-visible,.profile-lift--link button:focus-visible{outline:var(--control-focus-outline);outline-offset:3px}

/* @ci-domain progress */
/* Needs attention: the mark, the lift and its figure share the first line; the
   verdict and its reason run the full width under them, the evidence kind in
   soft text below. The whole row is one button. */
.attn__chip{
  display:grid;grid-template-columns:24px minmax(0,1fr) auto;column-gap:var(--space-8);row-gap:0;align-items:baseline;
  width:100%;min-height:64px;padding:var(--space-12) 0;border:0;border-bottom:1px solid var(--boundary-decorative);
  border-radius:var(--radius-none);background:var(--control-quiet-bg);color:var(--control-quiet-ink);cursor:pointer;
  font-family:var(--font-language);font-size:var(--font-size-control);font-weight:var(--weight-medium);line-height:var(--line-standard);text-align:left;
}
@media (hover: hover) and (pointer: fine){
.attn__chip:hover{background:var(--well)}
}
.attn__chip.is-pressed{background:var(--row-pressed-bg);transform:var(--control-pressed-transform)}
.attn__chip:focus-visible{outline:var(--control-focus-outline);outline-offset:-2px}
.attnrow__mark{grid-column:1;display:flex;align-self:start;padding-top:var(--space-4)}
.attnrow__name{grid-column:2;min-width:0;font-size:var(--font-size-body);font-weight:var(--weight-semibold);line-height:var(--line-tight);color:var(--color-ink)}
.attnrow__fig{
  grid-column:3;display:inline-flex;align-items:center;gap:var(--space-4);white-space:nowrap;
  font-family:var(--font-training-data);font-size:var(--font-size-body-small);font-weight:var(--weight-medium);line-height:var(--line-tight);color:var(--color-ink);
}
.attnrow__verdict{
  grid-column:2 / -1;margin-top:var(--space-4);font-size:var(--font-size-body-small);font-weight:var(--weight-regular);
  line-height:var(--line-standard);color:var(--color-ink);overflow-wrap:anywhere;
}
.attnrow__label::after{content:".\00a0"}
.attnrow__evidence{
  grid-column:2 / -1;margin-top:var(--space-4);font-size:var(--font-size-caption);
  line-height:var(--line-standard);color:var(--color-ink-secondary);
}

/* Strength this block: name, outcome and date at the left, the sparkline, then
   the top-load change. Two sessions or more open the lift's chart; a single
   session is a dot and stays inert. */
.spark{flex:none;display:block}
.spark__line{fill:none;stroke:var(--color-ink-secondary);stroke-width:1.5;stroke-linejoin:round;stroke-linecap:round}
.spark__dot{fill:var(--color-ink)}
.strrow{
  display:grid;grid-template-columns:minmax(0,1fr) 60px auto;gap:var(--space-12);align-items:baseline;
  width:100%;min-height:56px;padding:var(--space-8) 0;border:0;border-bottom:1px solid var(--boundary-decorative);
  border-radius:var(--radius-none);background:var(--control-quiet-bg);color:var(--control-quiet-ink);text-align:left;
  font-family:var(--font-language);font-size:var(--font-size-control);line-height:var(--line-standard);
}
button.strrow{cursor:pointer}
@media (hover: hover) and (pointer: fine){
button.strrow:hover{background:var(--well)}
}
button.strrow.is-pressed{background:var(--row-pressed-bg);transform:var(--control-pressed-transform)}
button.strrow:focus-visible{outline:var(--control-focus-outline);outline-offset:-2px}
.strrow--snap{grid-template-columns:minmax(0,1fr) 60px 5rem}
.strrow .spark{align-self:center}
.strrow__main{display:block;min-width:0}
.strrow__name{display:block;font-size:var(--font-size-body);font-weight:var(--weight-medium);line-height:var(--line-tight);color:var(--color-ink)}
.strrow__sub{display:block;font-size:var(--font-size-body-small);line-height:var(--line-standard);color:var(--color-ink-secondary)}
/* A per-side load or set figure's qualifier: quiet words on their own line beneath the Mono value, as the shelf
   groups "Per side". */
.per-side{
  display:block;font-family:var(--font-language);font-size:var(--font-size-caption);font-weight:var(--weight-regular);
  line-height:var(--line-standard);color:var(--color-ink-secondary);white-space:nowrap;
}
.strrow__fig{
  font-family:var(--font-training-data);font-size:var(--font-size-body-small);font-weight:var(--weight-medium);line-height:var(--line-tight);
  color:var(--color-ink);white-space:nowrap;text-align:right;
}

/* The Strength tab: the scope control, then a row per lift that opens in place. */
/* The scope control is the native segmented control (UI kit S5, #485's `.native-segments` recipe): a soft track, and the
   chosen segment a raised thumb with a semibold label (contract: state cues). No group border, no ring. */
#stats #strengthScopeSeg,
.segpill{
  display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:0;margin:var(--space-14) 0 0;padding:2px;
  border:0;border-radius:var(--radius-control);background:var(--control-track);
}
#stats #strengthScopeSeg > button,
.segpill > button{
  min-height:var(--control-target);margin:0;padding:var(--space-4) var(--space-8);border:0;border-radius:var(--radius-control);
  background:transparent;color:var(--ink);text-align:center;white-space:normal;overflow-wrap:anywhere;box-shadow:none;
  font-size:var(--font-size-body-small);font-weight:var(--weight-medium);line-height:var(--line-standard);
}
#stats #strengthScopeSeg > button.is-pressed:not(.active),
.segpill > button.is-pressed:not([aria-pressed="true"]){background:var(--row-pressed-bg)}
#stats #strengthScopeSeg > button.active,
.segpill > button[aria-pressed="true"]{
  background:var(--segment-thumb-bg);box-shadow:var(--segment-thumb-shadow);color:var(--ink);font-weight:var(--weight-semibold);
}
.evrow--d{
  display:grid;grid-template-columns:minmax(0,1fr) minmax(0,auto);grid-template-areas:"n f" "o s" "k s";column-gap:var(--space-12);row-gap:0;
  align-items:center;min-height:64px;padding:var(--space-12) 0;border-bottom-color:var(--boundary-decorative);
}
.evrow--d.is-open{border-bottom-color:transparent}
.evrow--d .evrow__name{grid-area:n;align-self:start;min-width:0;font-size:var(--font-size-body);font-weight:var(--weight-medium);line-height:var(--line-tight);color:var(--color-ink)}
.evrow--d .evrow__fig{grid-area:f;display:inline-flex;align-items:center;gap:var(--space-4);min-width:0;flex-wrap:wrap;justify-content:flex-end;white-space:normal}
.evrow--d .evrow__val{min-width:0;white-space:normal;overflow-wrap:anywhere;font-weight:var(--weight-medium);line-height:var(--line-tight);color:var(--color-ink)}
.evrow--d .evrow__out{
  grid-area:o;margin-top:var(--space-4);min-width:0;font-size:var(--font-size-body-small);font-weight:var(--weight-medium);
  line-height:var(--line-standard);color:var(--color-ink);overflow-wrap:anywhere;
}
.evrow--d .evrow__out.is-soft{font-weight:var(--weight-regular);color:var(--color-ink-secondary)}
.evrow--d .evrow__kind{grid-area:k;font-size:var(--font-size-caption);line-height:var(--line-standard);color:var(--color-ink-secondary)}
.evrow--d .evrow__spark{grid-area:s;align-self:center;justify-self:end}
#stats .evrow--d .evrow__detail,#stats .evrow__detail{padding:0 0 var(--space-8);border-bottom:1px solid var(--boundary-decorative);overflow-x:visible}
.evrow__detail .lede{margin:0 0 var(--space-4)}
.evtable{width:100%;min-width:0;table-layout:auto;border-collapse:collapse;margin-top:var(--space-8)}
.evtable th:last-child{white-space:nowrap;font-size:min(var(--font-size-label),var(--large-cap-caption));letter-spacing:normal;text-transform:none}
.evtable th,.evtable td{
  padding:var(--space-8) 0;border-bottom:1px solid var(--boundary-decorative);text-align:right;white-space:normal;overflow-wrap:normal;
  font-family:var(--font-training-data);font-size:var(--font-size-body-small);font-weight:var(--weight-regular);line-height:var(--line-standard);color:var(--color-ink);
}
.evtable th{
  padding-top:0;font-family:var(--font-language);font-size:var(--font-size-label);font-weight:var(--weight-semibold);
  letter-spacing:normal;text-transform:none;color:var(--color-ink-secondary);
}
.evtable td:not(:first-child){white-space:nowrap}
.evtable th:first-child,.evtable td:first-child{width:auto;text-align:left;font-family:var(--font-language)}
.evtable th + th,.evtable td + td{padding-left:var(--space-8)}
.evtable tbody tr:last-child td{border-bottom:0}

/* A narrow screen or enlarged text: the rows stack instead of squeezing the words. */
@container (max-width:21em){
  .ovtotals,.ovtotals--3{grid-template-columns:minmax(0,1fr)}
  .attn__chip{grid-template-columns:24px minmax(0,1fr)}
  .attnrow__fig{grid-column:2;grid-row:2;margin-top:var(--space-4)}
  .attnrow__verdict{grid-row:3}
  .attnrow__evidence{grid-row:4}
  .strrow,.strrow--snap{grid-template-columns:minmax(0,1fr) auto}
  .strrow .spark{display:none}
  .evrow--d{grid-template-areas:"n n" "f f" "o o" "k s"}
  .evrow--d .evrow__fig{justify-self:start;margin-top:var(--space-4)}
}

/* ---- Progress: the exercise chart (Plan 064 R3i) ----
   The lift's chart page: toggles, three figures, one series drawn as the step
   itself, a readout and the table that selects the same sessions. The plot is
   one pointer target; the table rows are the keyboard and screen-reader way in. */
#exercise.exview--chart .exview-head__title{display:none}
#exercise.exview--chart .exchart__title{font-size:var(--font-size-section-title)}
#exercise.exview--chart #exBack{gap:var(--space-4);color:var(--control-quiet-ink)}
#exercise.exview--chart #exBack .chevron{transform:rotate(180deg);color:inherit}
.exchart__title{margin:var(--space-8) 0 0;overflow-wrap:anywhere}
.exchart__toggles{display:grid;gap:var(--space-4);margin-top:var(--space-12)}
.exchart__toggles .segpill{margin:0}
/* The metric is the lesser choice: underline tabs under the range control, not a second segmented control. */
.exchart__toggles .segpill + .segpill{padding:0;border-radius:var(--radius-none);background:transparent;border-bottom:1px solid var(--boundary-decorative)}
.exchart__toggles .segpill + .segpill > button{border-radius:var(--radius-none);color:var(--color-ink-secondary);box-shadow:none;background:transparent;border-bottom:2px solid transparent;margin-bottom:-1px}
.exchart__toggles .segpill + .segpill > button[aria-pressed="true"]{background:transparent;box-shadow:none;color:var(--ink);border-bottom-color:var(--boundary-selected-quiet)}
/* The chart's one statement of a per-side convention (refinement audit A6), under the toggles it qualifies. */
.exchart__per-side{margin:var(--space-4) 0 0;font-family:var(--font-language);font-size:var(--font-size-caption);line-height:var(--line-standard);color:var(--color-ink-secondary)}
.exchart__figs{
  /* Wrapping items rather than equal columns: the display-size best figure (owner hill-climb) needs more than a third
     at 320 and at 200% text, and an equal column let it run into its neighbour. */
  display:flex;flex-wrap:wrap;gap:var(--space-12);align-items:last baseline;
  margin-top:var(--space-12);padding:var(--space-8) 0;border-top:1px solid var(--boundary-decorative);border-bottom:1px solid var(--boundary-decorative);
}
.exchart__figs > *{flex:1 1 5.25rem;min-width:min-content}
.exchart__figs > :first-child b{font-size:var(--font-size-display)}
.exchart__figs b{
  display:block;font-family:var(--font-language);font-weight:var(--weight-semibold);letter-spacing:-.02em;font-variant-numeric:tabular-nums;font-size:var(--font-size-metric);
  line-height:var(--line-tight);color:var(--color-ink);white-space:nowrap;
}
.exchart__figs span{
  display:block;margin-top:var(--space-4);font-family:var(--font-language);font-size:var(--font-size-body-small);
  line-height:var(--line-standard);color:var(--color-ink-secondary);
}
.exchart__plot{position:relative;margin-top:var(--space-8);touch-action:pan-y pinch-zoom;cursor:pointer;-webkit-user-select:none;user-select:none}
.exchart__svg,.exchart__ghost{display:block;width:100%;height:auto}
.exchart__svg .ch-grid,.exchart__ghost .ch-grid{stroke:var(--boundary-decorative);stroke-width:1;stroke-opacity:.6}
:root[data-theme="dark"] :is(.exchart__svg,.exchart__ghost) .ch-grid{stroke:var(--rule-strong);stroke-opacity:1}
.exchart__svg .ch-ax,.exchart__ghost .ch-ax{fill:var(--color-ink-secondary);font-family:var(--font-language);font-variant-numeric:tabular-nums;font-size:var(--font-size-chart-axis);font-weight:var(--weight-regular)}
.exchart__svg .ch-ax--l,.exchart__ghost .ch-ax--l{font-family:var(--font-language)}
.exchart__svg .ch-block,.exchart__ghost .ch-block{stroke:var(--boundary-required);stroke-width:1;stroke-dasharray:3 3}
.exchart__svg .ch-line,.exchart__ghost .ch-line{fill:none;stroke:var(--accent);stroke-width:2;stroke-linejoin:round;stroke-linecap:round}
.exchart__svg .ex-cursor,.exchart__ghost .ex-cursor{stroke:var(--boundary-required);stroke-width:1;stroke-dasharray:2 3}
.exchart__svg .ex-pt,.exchart__ghost .ex-pt{fill:var(--bg);stroke:var(--accent);stroke-width:1.5}
.exchart__svg .ex-pt--old,.exchart__ghost .ex-pt--old{stroke:var(--color-ink-secondary)}
.exchart__svg .ex-pt--sel,.exchart__ghost .ex-pt--sel{fill:var(--accent);stroke:var(--accent)}
.exchart__svg .ex-tick,.exchart__ghost .ex-tick{fill:var(--color-ink)}
/* D4: the selected-session marker in flight. Drawn by app.js only while `animateIndicator` carries
   it: a dot the size of the selected point and a dashed line the height of the cursor, over the plot.
   Both are inert; the destination's own point and cursor are set aside until the marker arrives, so
   there is one marker on screen. */
.exchart__marker,.exchart__scrub{position:absolute;z-index:1;pointer-events:none;box-sizing:border-box}
.exchart__marker{border-radius:var(--radius-round);background:var(--accent)}
.exchart__scrub{background:repeating-linear-gradient(to bottom,var(--boundary-required) 0 2px,transparent 2px 5px)}
.exchart__plot.is-marker-travel .ex-pt--sel,.exchart__plot.is-marker-travel .ex-cursor{visibility:hidden}
.exchart__readout{
  min-height:22px;margin:var(--space-12) 0 0;font-family:var(--font-language);font-size:var(--font-size-caption);
  line-height:var(--line-standard);color:var(--color-ink-secondary);
}
.exchart__mono{font-family:var(--font-language);font-weight:var(--weight-semibold);font-variant-numeric:tabular-nums}
.exchart__soft{color:var(--color-ink-secondary)}
.exchart__cols,.exrow{
  display:grid;grid-template-columns:4.5rem minmax(0,1fr) 4rem 3.25rem;gap:var(--space-8);align-items:center;
}
.exchart__cols{
  margin-top:var(--space-12);padding:var(--space-8) var(--space-12);border-bottom:1px solid var(--boundary-decorative);
  font-family:var(--font-language);font-size:var(--font-size-label);font-weight:var(--weight-semibold);
  letter-spacing:var(--track-label);text-transform:uppercase;color:var(--color-ink-secondary);
}
.exchart__cols span:nth-child(n+2),.exrow span:nth-child(n+2){text-align:right}
/* The columns are widths in rem, which grow with the text until the four of them are wider than the screen. Once the
   screen is narrow in rem (a root of about 125% or more on a phone) the columns share the width in proportion, the
   rows take the label size and a long cell wraps instead of leaving the page. */
@container (max-width:19rem){
  .exchart__cols,.exrow{grid-template-columns:minmax(0,1.2fr) minmax(0,2fr) minmax(0,1.4fr) minmax(0,1fr);gap:var(--space-4)}
  .exrow{font-size:var(--font-size-label)}
  .exchart__cols span,.exrow span{overflow-wrap:anywhere}
}
.exrow{
  width:100%;min-height:48px;padding:0 var(--space-12);border:0;border-left:0 solid transparent;
  border-bottom:1px solid var(--boundary-decorative);border-radius:var(--radius-none);
  background:var(--control-quiet-bg);color:var(--color-ink);text-align:left;cursor:pointer;
  font-family:var(--font-language);font-size:var(--font-size-body-small);line-height:var(--line-standard);
}
@media (hover: hover) and (pointer: fine){
.exrow:hover{background:var(--well)}
}
.exrow.is-pressed{background:var(--row-pressed-bg);transform:var(--control-pressed-transform)}
.exrow:focus-visible{outline:var(--control-focus-outline);outline-offset:-2px}
.exrow.is-sel{padding-left:calc(var(--space-12) - 3px);border-left:3px solid var(--accent);background:rgba(var(--accent-rgb),.05)}
.exrow.is-old span:first-child{color:var(--color-ink-secondary)}

/* @ci-domain history */
/* ---- History list, frequency counts and calendar sheet (Plan 064 R3j; grouped, 2026-11 climb) ----
   Weeks, not a calendar strip: sessions group under their block week, the
   calendar is one button away as a sheet, and two small counts sit above the
   list. Each week's sessions are one inset group on the page, as iOS lists are:
   a raised surface with hairlines between rows, never a card per row. */
#history>.pagehead{flex-wrap:wrap}
/* The title asks for its own width: beside the two actions when they fit, and on the row above them when enlarged text
   makes it wider than the room they leave, so it never draws under the search button. */
#history>.pagehead .pagehead__titles{flex:1 1 max-content}
#history>.pagehead .pagehead__actions{margin-left:auto}
#history>.pagehead .page-title{overflow-wrap:anywhere}
#history .hist-block{margin:var(--space-32) 0 0;font-family:var(--font-language);font-size:var(--font-size-subtitle);font-weight:var(--weight-semibold);line-height:var(--line-tight);color:var(--color-ink);overflow-wrap:anywhere}
#history .hist-month{display:flex;flex-wrap:wrap;align-items:baseline;gap:var(--space-4) var(--space-12);margin:var(--space-26) 0 0;font-family:var(--font-language);font-size:var(--font-size-subtitle);font-weight:var(--weight-regular);line-height:var(--line-standard);color:var(--color-ink)}
#history .hist-month b{font-weight:var(--weight-semibold)}
#history .hist-month span{font-size:var(--font-size-body-small);color:var(--color-ink-secondary)}
#history .hist-week{margin:var(--space-18) 0 var(--space-8);padding:0 var(--space-16);font-family:var(--font-language);font-size:var(--font-size-body-small);font-weight:var(--weight-medium);line-height:var(--line-standard);color:var(--color-ink-secondary)}
#history .hist-month+.hist-weekgroup .hist-week{margin-top:var(--space-12)}
#history .hist-group,#history .histfreq,#history .hist-empty,#history .hist-tools,#history .histpage__totals,#history .histlift:not(.histedit__lift),#history .histpage__actions .session__del{border-radius:var(--radius-surface);background:var(--surface)}
/* Dark surfaces sit one step above the page; a hairline keeps each group's edge. */
:root[data-theme="dark"] #history :is(.hist-group,.histfreq,.hist-empty,.hist-tools,.histpage__totals,.histlift:not(.histedit__lift),.histpage__actions .session__del){box-shadow:var(--boundary-card-hairline-shadow)}
#history .hist-group{padding-left:var(--space-16)}
#history .hist-row{display:block;min-height:0;padding:0;border:0;cursor:default}
#history .hist-row+.hist-row{border-top:1px solid var(--boundary-decorative)}
#history .session__open{display:flex;flex-wrap:nowrap;align-items:center;gap:var(--space-4) var(--space-12);flex:none;width:100%;min-height:56px;margin:0;padding:var(--space-12) var(--space-16) var(--space-12) 0;background:var(--control-quiet-bg);border:0;border-radius:var(--radius-none);cursor:pointer;text-align:left;font-family:var(--font-language);font-size:var(--font-size-body);line-height:var(--line-standard);color:var(--control-quiet-ink)}
@media (hover: hover) and (pointer: fine){
#history .session__open:hover:not(:disabled){background:var(--well)}
}
#history .session__open.is-pressed:not(:disabled){background:var(--row-pressed-bg);transform:var(--control-pressed-transform)}
#history .session__open:focus-visible{outline:var(--control-focus-outline);outline-offset:-2px}
#history .hist-sess__d{flex:0 0 2.5rem;display:flex;flex-direction:column;align-items:flex-start;font-family:var(--font-training-data);font-size:var(--font-size-subtitle);font-weight:var(--weight-medium);line-height:var(--line-tight)}
#history .hist-sess__d small{font-family:var(--font-language);font-size:var(--font-size-body-small);font-weight:var(--weight-regular);line-height:var(--line-standard);color:var(--color-ink-secondary)}
#history .hist-sess__m{flex:1 1 9rem;min-width:0}
#history .hist-sess__m b{display:block;font-weight:var(--weight-medium);overflow-wrap:anywhere}
#history .hist-sess__m small{display:block;font-size:var(--font-size-body-small);line-height:var(--line-standard);color:var(--color-ink-secondary);overflow-wrap:anywhere}
#history .hist-sess__meta{display:flex;flex-wrap:wrap;align-items:center;gap:var(--space-4) var(--space-12);margin-top:var(--space-4);font-size:var(--font-size-body-small);line-height:var(--line-standard);color:var(--color-ink-secondary)}
#history .hist-sess__pr{font-weight:var(--weight-medium)}
#history .hist-sess__pr .verdictmark__glyph{width:14px;height:14px}
#history .hist-sess__chev{margin-left:var(--space-4);color:var(--color-ink-secondary)}

#history .histfreq{margin:var(--space-16) 0 0;padding:var(--space-14) var(--space-16) var(--space-16)}
#history .histfreq__title{margin:0;font-family:var(--font-language);font-size:var(--font-size-body);font-weight:var(--weight-semibold);line-height:var(--line-tight);color:var(--color-ink)}
/* Side by side down to a 320px phone; stacked once enlarged text needs the width. */
#history .histfreq__plots{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,7rem),1fr));gap:var(--space-16);margin-top:var(--space-12)}
#history .histfreq__plots--stack{grid-template-columns:minmax(0,1fr)}
#history .histfreq__col{min-width:0}
#history .histfreq__cap{margin:0 0 var(--space-4);font-family:var(--font-language);font-size:var(--font-size-body-small);line-height:var(--line-standard);color:var(--color-ink-secondary)}
#history .histfreq .freqcount__n{font-family:var(--font-language);color:var(--color-ink)}
#history .histfreq .freqcount__label{font-family:var(--font-language)}
/* The dashed line in the weekly plot, named once under both. */
#history .histfreq__plan{display:flex;align-items:center;gap:var(--space-8);margin:var(--space-12) 0 0;font-family:var(--font-language);font-size:var(--font-size-caption);line-height:var(--line-standard);color:var(--color-ink-secondary)}
#history .histfreq__plan-mark{flex:none;width:14px;border-top:1px dashed var(--boundary-required)}

/* The planned marker bridges the padding between bars in the shared recipe; here the bars touch, so
   it spans exactly its own track and the track has nothing to scroll. */
#history .freqcount__bar{padding-inline:0}
#history .freqcount--planned .freqcount__track::after{left:0;right:0}

/* Nothing saved yet: one quiet group that says where sessions come from. */
#history .hist-empty{display:flex;flex-direction:column;align-items:center;gap:var(--space-8);margin-top:var(--space-26);padding:var(--space-32) var(--space-16);text-align:center}
#history .hist-empty__icon{width:32px;height:32px;margin-bottom:var(--space-4);color:var(--color-ink-secondary)}
#history .hist-empty__title{margin:0;font-family:var(--font-language);font-size:var(--font-size-subtitle);font-weight:var(--weight-semibold);line-height:var(--line-tight);color:var(--color-ink)}
#history .hist-empty__body{max-width:18rem;margin:0;font-family:var(--font-language);font-size:var(--font-size-body-small);line-height:var(--line-reading);color:var(--color-ink-secondary)}

/* Every set and Export close the list as one group: the disclosure, then the action under a hairline. The group
   is drawn only while one of them is. */
#history .hist-tools{margin:var(--space-26) 0 var(--space-8);overflow:hidden}
#history .hist-tools:not(:has(>:not(.hidden))){display:none}
#history .hist-tools>.advanced{margin:0;padding:0 var(--space-16);border:0;border-radius:var(--radius-none);background:transparent}
#history .hist-tools>.advanced[open]{padding-bottom:var(--space-16)}
#history .hist-export{display:flex;align-items:center;gap:var(--space-12);width:100%;min-height:var(--control-target);margin:0;padding:var(--space-12) var(--space-16);border:0;border-top:1px solid var(--boundary-decorative);border-radius:var(--radius-none);background:transparent;font-family:var(--font-language);font-size:var(--font-size-control);font-weight:var(--weight-medium);line-height:var(--line-standard);color:var(--control-quiet-ink);text-align:left;cursor:pointer}
#history .hist-tools>.hidden+.hist-export{border-top:0}
#history .hist-export .icon-mask{width:20px;height:20px;color:var(--color-ink-secondary)}
@media (hover: hover) and (pointer: fine){
#history .hist-export:hover:not(:disabled){background:var(--well)}
}
#history .hist-export.is-pressed:not(:disabled){background:var(--row-pressed-bg);transform:var(--control-pressed-transform)}
#history .hist-export:focus-visible{outline:var(--control-focus-outline);outline-offset:-2px}
#history .hist-export:disabled{color:var(--color-disabled-reason);cursor:not-allowed}

/* ---- History session page (Plan 064 R3j; grouped, 2026-11 climb) ----
   Back, the day's name, the date, then its block week and duration. What the
   session was in one strip (exercises, sets, records), then one group per lift:
   the record and outcome under its name, the numbered sets, and the previous
   exposure as the group's footer. */
#history.is-session-page>.pagehead{display:none}
#history .histpage__toolbar{width:100%;display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:var(--space-8)}
#history .histpage__tools{margin-left:auto;display:flex;align-items:center;gap:var(--space-8)}
#history .histpage__tools button{min-width:var(--control-target);min-height:var(--control-target);color:var(--control-quiet-ink)}
#history .histpage__tools button:focus-visible{outline:var(--control-focus-outline);outline-offset:2px}
#history .histpage__head{display:flex;flex-direction:column;align-items:flex-start}
#history .histpage__head .back-link{margin-left:calc(-1 * var(--space-4))}
/* The editor, delete and conflict heads share a row with the date: the way back keeps its width and the date wraps under it at large text. */
#history .history-selection__head{flex-wrap:wrap}
#history .history-selection__head .back-link{flex:none}
#history .histpage__title{margin:var(--space-4) 0 0;font-family:var(--font-language);overflow-wrap:anywhere}
#history .histpage__title:focus-visible{outline:var(--control-focus-outline);outline-offset:2px;border-radius:var(--radius-control)}
#history .histpage__lede{margin:var(--space-8) 0 0;font-family:var(--font-language);font-size:var(--font-size-body);line-height:var(--line-reading);color:var(--color-ink-secondary)}
#history .histpage__lede.histpage__meta{margin-top:0}
#history .histpage__totals{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,5.5rem),1fr));margin-top:var(--space-16)}
#history .histpage__totals>div{padding:var(--space-12) var(--space-16)}
#history .histpage__totals>div+div{border-left:1px solid var(--boundary-decorative)}
#history .histpage__totals b{display:block;font-family:var(--font-language);font-weight:var(--weight-semibold);letter-spacing:-.02em;font-variant-numeric:tabular-nums;font-size:var(--font-size-metric);line-height:var(--line-standard);color:var(--color-ink)}
#history .histpage__totals>div>span{display:block;font-family:var(--font-language);font-size:var(--font-size-body-small);line-height:var(--line-standard);color:var(--color-ink-secondary)}
#history .histpage__totals>.histpage__total--record b{color:var(--color-improved)}
#history .histpage__cols{margin-top:var(--space-8);align-items:end}
/* Share tracks across headings and rows; heading wrapping yields before a value ever has to scroll. */
#history .histlift__ledger-frame{--history-ledger-gap:var(--space-16)}
#history .histlift__overflow{display:none;text-align:right;font-size:var(--font-size-subtitle);line-height:var(--line-standard);color:var(--color-ink-secondary)}
#history .is-overflowing .histlift__overflow{display:block}
#history .is-compact-ledger{--history-ledger-gap:var(--space-8)}
#history .is-compact-ledger .histpage__cols>span:first-child{grid-column:1/-1}
#history .is-compact-ledger .histpage__cols .history-metric-grid{grid-row:2}
#history .is-value-fit .histpage__cols .fx-col{contain:inline-size;overflow-wrap:anywhere}
#history .histlift__ledger{display:grid;grid-template-columns:max-content repeat(var(--history-metric-count,3),minmax(min-content,1fr));column-gap:var(--history-ledger-gap);overflow-x:auto}
#history .histlift__ledger .history-metric{display:flex;justify-content:flex-end;align-items:baseline;gap:var(--space-4)}
#history .histlift__ledger:focus-visible{outline:var(--control-focus-outline);outline-offset:2px}
#history .histpage__cols,#history .histlift__sets,#history .histlift__sets .ledgerline{display:grid;grid-column:1/-1;grid-template-columns:subgrid;column-gap:var(--history-ledger-gap)}
#history .histpage__cols,#history .histlift__sets .ledgerline{padding-inline:0}
/* Headings in sentence case at the caption's size, bottom-aligned when one wraps. */
#history .histpage__cols{padding-block:var(--space-4);border-bottom:0;font-size:var(--font-size-body-small);font-weight:var(--weight-medium);line-height:var(--line-standard);letter-spacing:0;text-transform:none}
#history .histpage__cols .ledgerline__vals{letter-spacing:0;align-items:end}
#history .histpage__cols .ledgerline__vals,#history .histlift__sets .ledgerline__vals{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(0,1fr) minmax(0,1fr);gap:var(--space-8)}
#history .histpage__cols .history-metric-grid,#history .histlift__sets .history-metric-grid{display:grid;grid-column:2/-1;grid-template-columns:subgrid;column-gap:var(--history-ledger-gap);min-width:0}
#history .histpage__cols .ledgerline__vals>.fx-col,#history .histlift__sets .ledgerline__vals>.fx-col{min-width:0}
#history .histpage__cols .ledgerline__vals{font-family:inherit;font-size:inherit;font-weight:inherit;line-height:inherit;letter-spacing:inherit;text-transform:inherit;color:inherit}
#history .histlift__sets .ledgerline{min-height:0;padding-block:var(--space-8);border-top:1px solid var(--boundary-decorative);border-bottom:0}
#history .histlift__sets .ledgerline__vals,#history .histlift__sets .ledgerline__idx{font-family:var(--font-language);font-variant-numeric:tabular-nums}
#history .histlift:not(.histedit__lift){margin-top:var(--space-12);padding:var(--space-14) var(--space-16) var(--space-12)}
#history .histlift:not(.histedit__lift) .histlift__head{display:flex;flex-direction:column;align-items:flex-start;gap:var(--space-4)}
/* The session editor keeps its hairline bands. */
#history .histedit__lift{padding:var(--space-12) 0;border-bottom:1px solid var(--boundary-decorative)}
#history .histedit__lift:last-of-type{border-bottom:0}
#history .histedit__lift .histlift__head{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:var(--space-12)}
#history .histedit__lift .histlift__name{flex:1 1 8rem;font-weight:var(--weight-medium)}
#history .histlift__name{min-width:0;margin:0;font-family:var(--font-language);font-size:var(--font-size-body);font-weight:var(--weight-semibold);line-height:var(--line-standard);color:var(--color-ink);overflow-wrap:anywhere}
#history .histlift__tags{display:flex;flex-wrap:wrap;align-items:center;gap:var(--space-4) var(--space-8)}
/* The outcome is a word, in ink: improved and declined in the same weight, held quieter (owner, 2026-11-01). */
#history .histlift__tags .verdictmark:not(.verdictmark--record){font-weight:var(--weight-regular)}
#history .verdictmark.is-insufficient{font-weight:var(--weight-regular);color:var(--color-ink-secondary)}
#history .histlift__before{margin:var(--space-8) 0 0;padding-top:var(--space-8);border-top:1px solid var(--boundary-decorative);font-family:var(--font-language);font-size:var(--font-size-body-small);line-height:var(--line-reading);color:var(--color-ink-secondary)}
#history .histlift__sets .ledgerline__idx{color:var(--color-ink-secondary)}
/* Delete closes the page as its own group row, after every lift. */
#history .histpage__actions{display:block;margin-top:var(--space-18)}
#history .histpage__actions .session__del{display:block;width:100%;min-height:var(--control-target);padding:var(--space-12) var(--space-16);text-align:center}

#historyCalSheet{height:auto}
#historyCalSheet .sheetband{flex:none;touch-action:none}
#historyCalSheet .histcal__body{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:0 16px 16px}
#historyCalSheet .cal{margin:0}
#historyCalSheet .cal-head{display:flex;align-items:center;justify-content:space-between;margin:0 0 var(--space-4)}
#historyCalSheet .cal-head .chevron{color:var(--color-ink)}
@media (hover: hover) and (pointer: fine){
#historyCalSheet :is(#calPrev,#calNext):hover:not(:disabled){background:var(--well);color:var(--control-quiet-ink)}
}
#historyCalSheet :is(#calPrev,#calNext).is-pressed:not(:disabled){background:var(--row-pressed-bg);transform:var(--control-pressed-transform)}
#historyCalSheet :is(#calPrev,#calNext):focus-visible{outline:var(--control-focus-outline);outline-offset:2px}
#historyCalSheet .cal-head__prev{transform:rotate(180deg)}
#historyCalSheet .cal-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:var(--space-4);text-align:center}
#historyCalSheet .cal-grid__dow{padding:var(--space-4) 0;font-family:var(--font-language);font-size:var(--font-size-label);font-weight:var(--weight-medium);line-height:var(--line-standard);color:var(--color-ink-secondary)}
#historyCalSheet .cal-grid__day{display:grid;place-items:center;min-height:var(--control-target);margin:0;padding:0;border:0;border-radius:var(--radius-control);background:none;font-family:var(--font-training-data);font-size:var(--font-size-body-small);font-weight:var(--weight-regular);line-height:var(--line-standard);color:var(--color-ink)}
#historyCalSheet .cal-grid__day.is-out{color:var(--color-ink-secondary)}
#historyCalSheet .cal-grid__day.is-today{box-shadow:var(--elevation-selected-quiet-shadow)}
#historyCalSheet button.cal-grid__day.is-on{background:var(--color-ink);color:var(--bg);font-weight:var(--weight-medium);cursor:pointer}
#historyCalSheet button.cal-grid__day.is-pressed{transform:var(--control-pressed-transform)}
#historyCalSheet button.cal-grid__day:focus-visible{outline:var(--control-focus-outline);outline-offset:2px}
#historyCalSheet .histcal__hint{margin:var(--space-12) 0 0;font-family:var(--font-language);font-size:var(--font-size-body-small);line-height:var(--line-reading);color:var(--color-ink-secondary)}

#history .back-link{gap:var(--space-4);padding-left:0}
#history .back-link .chevron{transform:rotate(180deg);color:inherit}

/* "Every set" (#524): each set under its session's head, on hairlines, ink only. The exercise takes the column and
   wraps at word boundaries; under it the set, the figures in tabular numerals and the RIR, wrapping between them. */
#historyTable.table{overflow:visible}
.everyset__group+.everyset__group{margin-top:var(--space-16)}
.everyset__head{margin:0;padding:var(--space-12) 0 var(--space-8);border-bottom:1px solid var(--boundary-decorative);font-family:var(--font-language);
  font-size:var(--font-size-body-small);font-weight:var(--weight-semibold);line-height:var(--line-standard);color:var(--color-ink)}
.everyset__list{margin:0;padding:0;list-style:none}
.everyset__row{display:flex;flex-direction:column;gap:2px;padding:var(--space-8) 0;border-bottom:1px solid var(--boundary-decorative)}
.everyset__ex{min-width:0;overflow-wrap:break-word;font-family:var(--font-language);font-size:var(--font-size-body-small);line-height:var(--line-standard);color:var(--color-ink)}
.everyset__vals{font-family:var(--font-training-data);font-size:var(--font-size-caption);line-height:var(--line-standard);
  font-variant-numeric:tabular-nums;color:var(--color-ink-secondary);overflow-wrap:break-word}
.everyset__set{font-family:var(--font-language);white-space:nowrap}
.everyset__rir{white-space:nowrap}
/* Planned weekly volume (#525): the overview's total explained, read-only. The total and how it is counted, then each
   muscle on a hairline with its count and its direct and secondary parts; a muscle opens to the exercises it comes from. */
#volumeAuditBody{flex-direction:column;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding:var(--space-16) var(--space-16) var(--space-26)}
.volaudit{flex:none;min-width:0;display:block}
.volaudit__total{margin:0 0 var(--space-4);font-family:var(--font-language);font-size:var(--font-size-subtitle);font-weight:var(--weight-semibold);line-height:var(--line-tight);font-variant-numeric:tabular-nums;color:var(--color-ink)}
.volaudit__method{margin:0 0 var(--space-18);font-family:var(--font-language);font-size:var(--font-size-body-small);line-height:var(--line-reading);color:var(--color-ink-secondary)}
.volaudit__label{margin:0;padding-bottom:var(--space-8);border-bottom:1px solid var(--boundary-decorative)}
.volaudit__muscle{border-bottom:1px solid var(--boundary-decorative)}
.volaudit__row{display:flex;align-items:center;gap:var(--space-12);min-height:var(--control-target);padding:var(--space-8) 0;list-style:none;cursor:pointer}
.volaudit__row::-webkit-details-marker{display:none}
.volaudit__row:focus-visible{outline:var(--control-focus-outline);outline-offset:2px}
.volaudit__row .chevron{flex:none;transition:transform .2s}
.volaudit__muscle[open] .volaudit__row .chevron{transform:rotate(90deg)}
.volaudit__name{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px;font-family:var(--font-language);font-size:var(--font-size-body);line-height:var(--line-standard);color:var(--color-ink);overflow-wrap:break-word}
.volaudit__split{font-size:var(--font-size-caption);color:var(--color-ink-secondary)}
.volaudit__n{flex:none;font-family:var(--font-training-data);font-size:var(--font-size-body);font-weight:var(--weight-semibold);font-variant-numeric:tabular-nums;color:var(--color-ink)}
.volaudit__from{margin:0 0 var(--space-8);padding:0;list-style:none}
.volaudit__from li{display:flex;align-items:baseline;justify-content:space-between;gap:var(--space-12);padding:var(--space-4) 0}
.volaudit__ex{min-width:0;display:flex;flex-direction:column;font-family:var(--font-language);font-size:var(--font-size-body-small);line-height:var(--line-standard);color:var(--color-ink);overflow-wrap:break-word}
.volaudit__day{font-size:var(--font-size-caption);color:var(--color-ink-secondary)}
.volaudit__calc{flex:none;white-space:nowrap;font-family:var(--font-training-data);font-size:var(--font-size-caption);font-variant-numeric:tabular-nums;color:var(--color-ink-secondary)}
.volaudit__empty{margin:var(--space-8) 0;font-family:var(--font-language);font-size:var(--font-size-body-small);line-height:var(--line-reading);color:var(--color-ink-secondary)}
@media (prefers-reduced-motion:reduce){.volaudit__row .chevron{transition:none}}
/* @ci-domain program,entry */
/* ---- Program overview as a ledger (Plan 064 R3k) ----
   The program on one page: the name, one line that says what it is, the week
   rule, the status, then every training day open as a hairline band. Each
   exercise is a prescription row (.rxrow): name with its strategy underneath,
   sets x range, and the load `recommendation()` says comes next with its verdict
   mark. Flat reading content on hairlines, ink only: orange stays off this page
   (the dock's active item is the one use). Below the days, the volume audit,
   export, share and review rows are the shipped rows, wrapped instead of cut. */
:is(#program,[data-copy-id="program"]).program-ledger>.pagehead{margin-bottom:var(--space-4)}
:is(#program,[data-copy-id="program"]).program-ledger>.pagehead .page-title{
  margin:0;font-family:var(--font-language);font-size:var(--font-size-body-small);font-weight:var(--weight-regular);
  letter-spacing:0;line-height:var(--line-standard);color:var(--color-ink-secondary)
}
/* A bar button (owner-approved bar-actions mock): the label alone in the accent, medium weight at body size, no
   underline. It is on the orange budget as the bar's text button (tools/check-direction-d.mjs). */
:is(#program,[data-copy-id="program"]).program-ledger :is(#programEditToggle,[data-copy-id="programEditToggle"]){
  color:var(--accent-deep);font-size:var(--font-size-body);font-weight:var(--weight-medium);
  text-decoration:none;padding:0 8px
}
:is(#programOverview,[data-copy-id="programOverview"]){container-type:inline-size;--prog-cols:minmax(0,1fr) 4.875rem 5.5rem}
.prog-overview__name{
  margin:var(--space-8) 0 0;font-family:var(--font-language);font-size:var(--font-size-title);font-weight:var(--weight-semibold);
  letter-spacing:-0.02em;line-height:var(--line-tight);color:var(--color-ink);overflow-wrap:anywhere;text-wrap:balance
}
.prog-overview__meta{margin:var(--space-8) 0 0;font-size:var(--font-size-body);line-height:var(--line-reading);color:var(--color-ink-secondary);text-wrap:pretty}
.prog-overview__week{margin:var(--space-4) 0 0;font-size:var(--font-size-body-small);line-height:var(--line-standard);color:var(--color-ink-secondary)}
:is(#programOverview,[data-copy-id="programOverview"]) .segbar{gap:var(--space-4);margin:var(--space-12) 0 0}
:is(#programOverview,[data-copy-id="programOverview"]) .segbar__seg{height:3px;border-radius:var(--radius-compact);background:var(--boundary-required)}
:is(#programOverview,[data-copy-id="programOverview"]) .segbar__seg.is-done{background:var(--color-ink)}
:is(#programOverview,[data-copy-id="programOverview"]) .segbar__seg.is-current{background:var(--color-ink-secondary)}
.prog-overview__status{margin:var(--space-12) 0 0;font-size:var(--font-size-body);line-height:var(--line-standard);color:var(--color-ink)}
.prog-day{margin-top:var(--space-26)}
.prog-day__head{display:grid;gap:var(--space-4);padding-bottom:var(--space-8);border-bottom:1px solid var(--boundary-decorative)}
.prog-day__title{margin:0;font-family:var(--font-language);font-size:var(--font-size-subtitle);font-weight:var(--weight-semibold);line-height:var(--line-tight);color:var(--color-ink);overflow-wrap:anywhere}
.prog-day__meta{margin:0;font-size:var(--font-size-body-small);line-height:var(--line-standard);color:var(--color-ink-secondary);overflow-wrap:anywhere}
.prog-cols{
  display:grid;grid-template-columns:var(--prog-cols);column-gap:var(--space-8);align-items:end;padding:var(--space-12) 0 var(--space-8);
  border-bottom:1px solid var(--boundary-decorative);font-family:var(--font-language);font-size:var(--font-size-label);font-weight:var(--weight-semibold);
  line-height:var(--line-standard);letter-spacing:var(--track-label);text-transform:uppercase;color:var(--color-ink-secondary)
}
.prog-cols>:nth-child(n+2){text-align:right}
.prog-legend{margin:0;padding:var(--space-8) 0;border-bottom:1px solid var(--boundary-decorative);font-size:var(--font-size-body-small);line-height:var(--line-reading);color:var(--color-ink-secondary)}
:is(#programOverview,[data-copy-id="programOverview"]) .rxrow{grid-template-columns:var(--prog-cols);column-gap:var(--space-8)}
:is(#programOverview,[data-copy-id="programOverview"]) .rxrow__target{align-self:baseline}
:is(#programOverview,[data-copy-id="programOverview"]) .rxrow__load{
  display:inline-flex;align-items:baseline;justify-content:flex-end;gap:var(--space-4);
  font-size:var(--font-size-body);font-weight:var(--weight-medium);line-height:var(--line-standard);color:var(--color-ink-secondary)
}
:is(#programOverview,[data-copy-id="programOverview"]) .rxrow__mark{top:0;align-self:center}
:is(#programOverview,[data-copy-id="programOverview"]) .listrow__sub{white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere}
:is(#programOverview,[data-copy-id="programOverview"]) .listrow__meta{white-space:normal;text-align:right}
@container (max-width:17em){
  .prog-cols{display:none}
  :is(#programOverview,[data-copy-id="programOverview"]) .rxrow{grid-template-columns:minmax(0,1fr) auto}
  :is(#programOverview,[data-copy-id="programOverview"]) .rxrow__name{grid-column:1 / -1}
  :is(#programOverview,[data-copy-id="programOverview"]) .rxrow__target{text-align:left}
}

/* @ci-domain entry */
/* ---- First-run landing (Plan 064 R2) ----
   One page, built from bands. The hero, the proof and the footer are the night
   band (--band-night-*, the dark palette in both themes); the first stripe of
   the three ways and the closing band are the orange band (--band-orange-*,
   always near-black ink); the data band and the third stripe are the ink band
   (--band-ink-*). Everything else sits on the live page ground. Each band sets
   the same handful of --firstrun-* roles (ground, ink, supporting ink, rule,
   focus, action ground, action ink, action arrow), so one rule serves every
   ground. Sizes are the existing tiers (the landing headline is the first-run
   headline variant, section 8.1) and every colour is a token (OG-3): the two
   marks the prototype drew in #4A453D use --band-night-boundary-required, and
   the night action's arrow takes its label ink because the prototype's orange
   arrow measured 2.05:1 on the parchment pill.
   The shell is unchanged: .firstrun is the fixed, scrolling dialog, so the
   page scrolls inside it and every sticky or observed element is rooted on it. */
.firstrun{
  /* Above the app shell and its docked chrome, below the sheet layer (40/41):
     the iOS instructions are a sheet over this screen, not under it. */
  position:fixed;inset:0;z-index:35;background:var(--bg);
  overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;
  padding:0 0 env(safe-area-inset-bottom);
  --firstrun-gap-1:var(--space-8);
  --firstrun-gap-2:var(--space-16);
  --firstrun-gap-3:calc(var(--space-8) * 3);
  --firstrun-gap-4:var(--space-32);
  --firstrun-gap-5:calc(var(--space-8) * 5);
  --firstrun-gap-8:calc(var(--space-32) * 2);
  --firstrun-dock-h:56px;
  --firstrun-band-bg:var(--bg);
  --firstrun-ink:var(--color-ink);
  --firstrun-ink-soft:var(--color-ink-secondary);
  --firstrun-ink-faint:var(--color-ink-secondary);
  --firstrun-rule:var(--boundary-decorative);
  --firstrun-focus:var(--color-focus);
  --firstrun-accent-text:var(--color-action-text);
  --firstrun-cta-bg:var(--band-night-cta-bg);
  --firstrun-cta-ink:var(--band-night-cta-ink);
  --firstrun-cta-mark:var(--band-night-cta-ink);
}
.firstrun:focus{outline:none}
.firstrun.hidden{display:none}
.firstrun :focus-visible{outline:2px solid var(--firstrun-focus);outline-offset:2px}
/* The gate covers the app rather than replacing it: `main` still holds the
   import review the gate can open, so the shell is left in place and only the
   chrome that would show through is taken away. */
body.is-firstrun{overflow:hidden}
/* The shell keeps its layout — the import review the gate opens is inside it,
   and the gate steps aside rather than tearing it down — but nothing behind an
   aria-modal screen may be reachable by tab or by a screen reader, and
   `visibility:hidden` takes both away without removing the box. */
body.is-firstrun main{visibility:hidden}
body.is-firstrun>nav,body.is-firstrun #installBtn,body.is-firstrun #restBar{display:none}
.firstrun__inner{--firstrun-pad:clamp(18px,5vw,34px)}

/* ---- Bands ---- */
.firstrun-band{padding-block:var(--firstrun-gap-8);background:var(--firstrun-band-bg);color:var(--firstrun-ink)}
/* #449: the landing scrolls above the shell's status-bar band, so it paints its
   own over the top inset, in the ground of the section under it. The landing
   controller names that section's ground; before it does (or without an
   IntersectionObserver) the band is the hero's night. */
.firstrun::before{content:"";position:fixed;top:0;left:0;right:0;z-index:20;
  height:env(safe-area-inset-top,0px);background:var(--band-night-bg);pointer-events:none}
.firstrun[data-inset-ground="raised"]::before{background:var(--band-night-raised)}
.firstrun[data-inset-ground="ink"]::before{background:var(--band-ink-bg)}
.firstrun[data-inset-ground="orange"]::before{background:var(--band-orange-bg)}
.firstrun[data-inset-ground="faq"]::before{background:var(--well)}
.firstrun[data-inset-ground="paper"]::before{background:var(--bg)}
.firstrun-wrap{
  width:100%;max-width:var(--maxw);margin-inline:auto;
  padding-left:max(var(--gut),env(safe-area-inset-left));padding-right:max(var(--gut),env(safe-area-inset-right));
}
.firstrun-band>.firstrun-wrap>*+*{margin-top:var(--firstrun-gap-3)}
@media(max-width:899px){.firstrun .firstrun-band:not(.firstrun-hero,.firstrun-footer){padding-top:var(--firstrun-gap-8);padding-bottom:var(--firstrun-gap-5)}
  .firstrun .firstrun-ways{padding-bottom:var(--firstrun-gap-2)}}
/* Bands on the same ground: more room above the next title. */
.firstrun .firstrun-check+.firstrun-ways,.firstrun .firstrun-ways+.firstrun-features{padding-top:calc(var(--firstrun-gap-8) + var(--space-8))}
.firstrun-check__examples li>span:last-child{text-wrap:pretty}
.firstrun-band--night,.firstrun-band--raised{
  --firstrun-band-bg:var(--band-night-bg);
  --firstrun-ink:var(--band-night-ink);
  --firstrun-ink-soft:var(--band-night-ink-soft);
  --firstrun-ink-faint:var(--band-night-ink-faint);
  --firstrun-rule:var(--band-night-rule);
  --firstrun-focus:var(--band-night-ink);
  --firstrun-accent-text:var(--band-night-accent-text);
  --firstrun-cta-bg:var(--band-night-cta-bg);
  --firstrun-cta-ink:var(--band-night-cta-ink);
  --firstrun-cta-mark:var(--band-night-cta-ink);
}
.firstrun-band--raised{--firstrun-band-bg:var(--band-night-raised)}
.firstrun-band--orange{
  --firstrun-band-bg:var(--band-orange-bg);
  --firstrun-ink:var(--band-orange-ink);
  --firstrun-ink-soft:var(--band-orange-ink);
  --firstrun-ink-faint:var(--band-orange-ink);
  --firstrun-rule:var(--band-orange-ink);
  --firstrun-focus:var(--band-orange-ink);
  --firstrun-accent-text:var(--band-orange-ink);
  --firstrun-cta-bg:var(--band-orange-ink);
  --firstrun-cta-ink:var(--band-orange-cta-ink);
  --firstrun-cta-mark:var(--band-orange-cta-mark);
}
.firstrun-band--orange .firstrun__cta--peer{border:2px solid var(--band-orange-ink);padding:calc(var(--space-12) - 2px) calc(var(--space-18) - 2px);
  background:transparent}
.firstrun-band--orange .firstrun-sub{font-weight:var(--weight-medium);color:var(--band-orange-ink)}
.firstrun-band--ink{
  --firstrun-band-bg:var(--band-ink-bg);
  --firstrun-ink:var(--band-ink-ink);
  --firstrun-ink-soft:var(--band-ink-ink-soft);
  --firstrun-ink-faint:var(--band-ink-ink-soft);
  --firstrun-rule:var(--band-ink-rule);
  --firstrun-focus:var(--band-ink-ink);
  --firstrun-accent-text:var(--band-ink-ink);
}
.firstrun-faq{--firstrun-band-bg:var(--well)}
.firstrun-chapter.is-current .firstrun-chapter__text,.firstrun-feat__tab.is-current .firstrun-feat__text{color:color-mix(in srgb,var(--firstrun-ink) 84%,transparent)}

/* ---- Test-set comparisons ---- */
.firstrun-check__examples{list-style:none;padding:0;margin:0;font-size:var(--font-size-body);line-height:var(--line-reading)}
.firstrun-check__examples li{display:flex;align-items:baseline;gap:var(--space-14);padding-block:var(--firstrun-gap-2);border-bottom:1px solid var(--firstrun-rule)}
.firstrun-check__delta{flex:0 0 2.5ch;text-align:left;line-height:var(--line-tight);font-family:var(--font-language);font-size:var(--font-size-metric);font-weight:var(--weight-semibold);
  font-variant-numeric:tabular-nums;color:var(--firstrun-ink)}
.firstrun-check__line{display:block}
.firstrun-check__line{text-wrap:pretty}
.firstrun-check__line+.firstrun-check__line{margin-top:var(--space-8)}
.firstrun-check__line b{font-weight:inherit;color:inherit}
.firstrun-check__examples .firstrun-check__delta{color:var(--firstrun-ink)}
.firstrun-check .firstrun-wrap>.firstrun-sub:last-child{color:var(--firstrun-ink);font-weight:var(--weight-medium)}
.firstrun-check .firstrun-sub{max-width:65ch;font-size:var(--font-size-body);color:var(--firstrun-ink-soft)}
.firstrun-check .firstrun-wrap>.firstrun-sub+.firstrun-sub{margin-top:var(--space-16)}
.firstrun-check .firstrun-sub{color:var(--firstrun-ink-soft)}

/* ---- Type ---- */
.firstrun-h1{
  margin:0;text-align:left;font-family:var(--font-language);font-size:var(--font-size-landing-headline);font-weight:var(--weight-medium);
  line-height:var(--line-tight);letter-spacing:-.035em;overflow-wrap:break-word;text-wrap:balance;
}
.firstrun.is-shared .firstrun-hero__title{font-size:var(--font-size-display)}
.firstrun-h2{
  margin:0;font-family:var(--font-language);font-size:var(--font-size-title);font-weight:var(--weight-medium);
  line-height:var(--line-tight);letter-spacing:-.03em;overflow-wrap:break-word;text-wrap:balance;
}
.firstrun-sub{font-size:var(--font-size-body);line-height:var(--line-reading);color:var(--firstrun-ink-soft);text-wrap:pretty}
.firstrun-label{font-size:var(--font-size-label);font-weight:var(--weight-semibold);letter-spacing:var(--track-label);text-transform:uppercase;color:var(--firstrun-ink-soft)}
.firstrun-seeing{font-size:var(--font-size-body-small);line-height:var(--line-standard);color:var(--firstrun-ink-soft)}
.firstrun-data .firstrun-seeing{font-size:var(--font-size-body)}
.firstrun-ui{font-weight:var(--weight-semibold);color:var(--firstrun-ink)}
@media(min-width:700px){
  .firstrun-h1{font-size:var(--font-size-landing-headline-wide)}
}
@media(max-width:340px){
  .firstrun-h1{font-size:var(--font-size-title)}
}

/* ---- Hero ---- */
.firstrun-hero{padding-top:env(safe-area-inset-top)}
.firstrun__header{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:var(--space-8) var(--space-18);min-height:64px}
.firstrun__brand{display:flex;align-items:center;gap:10px;min-height:var(--control-target)}
/* The ground-free mark keeps a pale rim where its paper was removed, and the hero
   is the night band in both appearances, so it stands on its paper plate in both. */
.firstrun__logo{
  --brand-paper:#F4F2EF;
  display:block;flex:none;width:32px;height:32px;padding:2px;object-fit:contain;
  background-color:var(--brand-paper);border-radius:var(--radius-control);
}
.firstrun__wordmark{font-size:var(--font-size-subtitle);font-weight:var(--weight-semibold);letter-spacing:-.01em;color:var(--firstrun-ink)}
.firstrun__utility{margin-left:auto;display:flex;align-items:center;justify-content:flex-end;gap:var(--space-14);flex-wrap:wrap}
.firstrun__utility-action{
  display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:var(--control-target);min-width:var(--control-target);padding:8px var(--space-8);margin-right:calc(var(--space-8) * -1);
  border:0;background:none;color:var(--firstrun-ink);font:inherit;font-size:var(--font-size-body-small);
  text-decoration:underline;text-underline-offset:4px;cursor:pointer;
}
.firstrun__utility-action:first-child{color:var(--firstrun-accent-text)}
.firstrun__install-icon{
  width:18px;height:18px;background:currentColor;
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v12M7.5 10.5 12 15l4.5-4.5M4 16v4h16v-4'/%3E%3C/svg%3E") center/contain no-repeat;
  mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v12M7.5 10.5 12 15l4.5-4.5M4 16v4h16v-4'/%3E%3C/svg%3E") center/contain no-repeat;
}
.firstrun-hero__copy{min-width:0}
.firstrun-hero .firstrun-hero__title{margin-top:var(--firstrun-gap-2)}
.firstrun__lede{margin:var(--firstrun-gap-3) 0 0;font-size:var(--font-size-subtitle);line-height:var(--line-reading);color:var(--firstrun-ink-soft);text-wrap:pretty}
.firstrun__eyebrow{
  display:flex;align-items:center;gap:14px;margin:0;
  font-size:var(--font-size-label);font-weight:var(--weight-semibold);letter-spacing:.14em;text-transform:uppercase;color:var(--firstrun-accent-text);
}
.firstrun__eyebrow::after{content:"";flex:1;height:1px;background:var(--firstrun-accent-text)}
.firstrun__shared-only{display:none}
.firstrun.is-shared .firstrun__shared-only{display:none}
.firstrun.is-shared .firstrun-hero .firstrun-hero__title{margin-top:var(--firstrun-gap-2)}
.firstrun.is-shared [data-landing-section]:not([data-landing-section="hero"]),
.firstrun.is-shared .firstrun-chips,
.firstrun.is-shared .firstrun-hero__data,
.firstrun.is-shared #firstRunLede{display:none}
.firstrun__shared-card{
  margin-top:var(--firstrun-gap-4);padding:18px;border:1px solid var(--band-night-cta-bg);border-radius:var(--radius-surface);
  background:var(--band-night-cta-bg);color:var(--band-night-cta-ink);overflow-wrap:anywhere;
}
.firstrun__shared-card-name{margin:0;font-size:var(--font-size-subtitle);font-weight:var(--weight-semibold);line-height:var(--line-standard)}
/* A relay handoff's attribution and message on the band's light card (Plan 086 slice 2). Text only. */
.firstrun__shared-from{margin:var(--firstrun-gap-2) 0 0;font-size:var(--font-size-body);line-height:var(--line-standard);color:var(--band-night-cta-ink);overflow-wrap:anywhere}
.firstrun__shared-from b{font-weight:var(--weight-semibold)}
.firstrun__shared-from span{display:block;font-size:var(--font-size-body-small);opacity:.8}
.firstrun__shared-quote-label{margin:var(--firstrun-gap-2) 0 var(--space-4);font-size:var(--font-size-caption);line-height:var(--line-standard);color:var(--band-night-cta-ink);opacity:.8}
.firstrun__shared-quote{margin:0;padding:0 0 0 var(--space-12);border-left:2px solid currentColor;font-size:var(--font-size-body);line-height:var(--line-reading);
  color:var(--band-night-cta-ink);overflow-wrap:anywhere;white-space:pre-line}
.firstrun__shared-message .firstrun__shared-quote-label.hidden+.firstrun__shared-quote{margin-top:var(--firstrun-gap-2)}
.firstrun__shared-card-body{margin:var(--firstrun-gap-2) 0 0;font-size:var(--font-size-body-small);line-height:var(--line-reading);color:var(--band-night-cta-ink)}
.firstrun__error{
  width:100%;margin:12px 0 0;font-size:var(--font-size-body-small);line-height:var(--line-standard);color:var(--firstrun-ink);
  overflow-wrap:anywhere;
}
.firstrun__error:empty{display:none}
.firstrun__actions{display:grid;gap:var(--firstrun-gap-1);margin-top:var(--firstrun-gap-4)}
.firstrun-chips{
  display:grid;gap:var(--space-4);margin:var(--firstrun-gap-2) 0 0;padding:0;list-style:none;
  font-size:var(--font-size-body);line-height:var(--line-standard);color:var(--firstrun-ink-soft);
}
.firstrun-chips li{display:flex;align-items:center;gap:var(--space-8)}
.firstrun-chips li::before{content:"";flex:none;width:16px;height:16px;background:var(--firstrun-ink-soft);
  -webkit-mask:var(--check) no-repeat center/contain;mask:var(--check) no-repeat center/contain}
.firstrun-hero__data b{font-weight:var(--weight-semibold);color:inherit}
.firstrun-hero .firstrun-hero__data{text-wrap:balance}
.firstrun-hero .firstrun-hero__data{margin-top:var(--firstrun-gap-2);text-wrap:pretty}

/* ---- Actions: the ink pill with its arrow, and the underlined text link ---- */
.firstrun__cta{
  position:relative;display:flex;align-items:center;justify-content:space-between;gap:16px;width:100%;min-height:var(--firstrun-dock-h);
  padding:var(--space-12) var(--space-18);border:0;border-radius:var(--radius-button);
  background:var(--firstrun-cta-bg);color:var(--firstrun-cta-ink);
  font:inherit;font-size:var(--font-size-control);line-height:var(--line-standard);font-weight:var(--weight-semibold);text-align:left;cursor:pointer;
  -webkit-tap-highlight-color:transparent;
}
.firstrun__cta.is-pressed:not(:disabled){transform:var(--control-pressed-transform)}
.firstrun__cta:disabled{background:var(--control-primary-disabled-bg);color:var(--color-ink);opacity:1}
.firstrun__cta .firstrun-row__go{color:var(--firstrun-cta-mark);width:18px;height:18px;flex:0 0 18px}
.firstrun__cta .firstrun-row__title{color:inherit;font-size:var(--font-size-control)}
.firstrun__cta .firstrun-row__cap{color:inherit;font-size:var(--font-size-body-small)}
/* Track, the peer of Build (Packet F): the same pill, type and arrow, drawn as an outline in the band's own ink so the
   two routes read as equals without two identical fills. */
.firstrun__cta--peer{
  border:1.5px solid var(--firstrun-ink);padding:calc(var(--space-12) - 1.5px) calc(var(--space-18) - 1.5px);
  background:transparent;color:var(--firstrun-ink);
}
.firstrun__cta--peer .firstrun-row__go{color:var(--firstrun-ink)}
.firstrun__cta .firstrun-row__text{gap:2px}
.firstrun__cta .firstrun-row__cap{font-weight:var(--weight-regular)}
.firstrun-hero__data{
  margin:var(--firstrun-gap-1) 0 0;max-width:46ch;text-align:left;text-wrap:pretty;
  font-size:var(--font-size-body);line-height:var(--line-standard);color:var(--firstrun-ink-soft);
}
.firstrun-hero__data:empty{display:none}
#firstRunSharedStart{position:relative}
#firstRunSharedStart:disabled,#firstRunSharedStart[aria-busy="true"]{cursor:progress}
#firstRunSharedStart[aria-busy="true"] .firstrun-row__go,
#firstRunSharedStart:has(.firstrun-row__busy:not(.hidden)) .firstrun-row__go{visibility:hidden}
.firstrun__link{
  display:inline-flex;align-items:center;justify-content:center;justify-self:center;min-height:var(--control-target);padding:0 var(--space-8);
  border:0;background:none;color:var(--firstrun-ink);font:inherit;font-size:var(--font-size-control);line-height:var(--line-standard);font-weight:var(--weight-semibold);
  text-decoration:underline;text-decoration-color:var(--firstrun-ink-soft);text-underline-offset:4px;cursor:pointer;
  -webkit-tap-highlight-color:transparent;
}
.firstrun__link.is-pressed:not(:disabled){text-decoration-color:currentColor}
/* The saved-setup action: quieter than Track, with where the lifter left off under it. */
.firstrun-resume{display:grid;justify-items:center;gap:var(--space-4);margin-top:var(--space-4)}
.firstrun-resume.hidden{display:none}
.firstrun-resume__go{font-weight:var(--weight-medium);color:var(--firstrun-ink-soft)}
.firstrun-resume__where{margin:0;max-width:32ch;text-align:center;font-size:var(--font-size-caption);line-height:var(--line-standard);color:var(--firstrun-ink-soft)}
.firstrun__link:disabled{color:var(--firstrun-ink-soft);cursor:default}
@media(hover:hover){
  @media (hover: hover) and (pointer: fine){
.firstrun__link:hover:not(:disabled){text-decoration-color:currentColor}
}
}
.firstrun-row__text{flex:1;min-width:0;display:flex;flex-direction:column;gap:4px}
.firstrun-row__title,.firstrun-row__cap{overflow-wrap:anywhere}
.firstrun-row__title{font-size:var(--font-size-subtitle);font-weight:var(--weight-semibold);letter-spacing:-0.01em;color:var(--firstrun-ink)}
.firstrun-row__cap{font-size:var(--font-size-body-small);line-height:var(--line-standard);color:var(--firstrun-ink-soft)}
.firstrun-row__cap:empty{display:none}
.firstrun-row__go{flex:none;width:20px;height:20px;color:var(--color-ink)}
.firstrun-row__go::before{
  content:"";display:block;width:100%;height:100%;background:currentColor;
  -webkit-mask:var(--arrow) no-repeat center/contain;mask:var(--arrow) no-repeat center/contain;
}
.firstrun-row__busy{
  position:absolute;right:var(--space-18);top:50%;margin-top:-9px;
  width:18px;height:18px;border:2px solid var(--firstrun-ink-soft);
  border-top-color:var(--firstrun-cta-ink);border-radius:50%;
}

/* ---- The persistent Build control ----
   The one floating surface outside the dock, the workout shelf and the sheets.
   It appears once the hero action has scrolled away, steps aside at the closing
   action, and takes the recipe that reads against the band beneath it. */
.firstrun-dock{
  position:fixed;z-index:1;left:0;right:0;bottom:0;
  padding:var(--space-8) max(var(--gut),env(safe-area-inset-right)) calc(var(--space-8) + env(safe-area-inset-bottom)) max(var(--gut),env(safe-area-inset-left));
  /* One bar from the end of the hero to the closing band: the page's paper with a hairline and the black pill in the light
     theme, the night with the cream pill in the dark one. */
  /* The bar takes the ground of the band beneath it (sampled by the landing controller) and the baseline's control for
     that ground: the cream pill on a dark band, the ink pill with its orange mark on a light one. */
  --firstrun-dock-fill:var(--firstrun-dock-ground,var(--band-night-bg));
  background:var(--firstrun-dock-fill);border-top:1px solid var(--band-night-rule);
  transform:translateY(100%);visibility:hidden;
  transition:transform .2s cubic-bezier(.2,.7,.2,1),visibility 0s .2s;
  /* The ring sits on the band, not on the control, so it takes the ink the band's own ring takes: the accent
     measured 2.56:1 against the ink band in the dark theme. `data-ground` is the same reading that picks the fill. */
  --firstrun-focus:var(--band-night-ink);
}
.firstrun-dock.is-on{transform:none;visibility:visible;transition:transform .2s cubic-bezier(.2,.7,.2,1),visibility 0s}
/* The stage kit's touch (landingTouchHtml): a screen recording's soft disc, pressed in, and the ring a release leaves.
   The frame places its centre with a transform, so its box sits centred on the stage's origin. */
.landing-touch{position:absolute;z-index:5;left:-22px;top:-22px;width:44px;height:44px;opacity:0;pointer-events:none;will-change:transform,opacity}
.landing-touch__disc,.landing-touch__ring{position:absolute;inset:0;border-radius:var(--radius-pill);will-change:transform,opacity}
.landing-touch__disc{background:radial-gradient(circle,rgba(var(--ink-rgb),.14),rgba(var(--ink-rgb),.24));border:1px solid rgba(var(--bg-rgb),.55)}
.landing-touch__ring{opacity:0;border:1.5px solid rgba(var(--ink-rgb),.28)}
.firstrun-dock .firstrun__cta{max-width:calc(var(--maxw) - var(--space-32));min-height:var(--control-target);margin-inline:auto;padding-block:var(--space-8)}
/* Over a light band the bar's edge is the paper's rule and its text the ground's ink. */
.firstrun-dock[data-ground="light"]{border-color:var(--rule-strong);--firstrun-ink:var(--band-orange-ink)}
.firstrun-dock[data-ground="dark"]{--firstrun-ink:var(--band-night-ink)}
.firstrun{scroll-padding-bottom:calc(var(--control-target) + var(--space-26))}
@media(max-width:1099px){
  .firstrun-dock{box-shadow:var(--elevation-persistent-shadow)}
}
.firstrun-h2{scroll-margin-top:calc(var(--control-target) + var(--space-32));scroll-margin-bottom:calc(var(--control-target) + var(--space-32))}

.firstrun-dock[data-ground="light"]{
  --firstrun-cta-bg:var(--band-orange-ink);
  --firstrun-cta-ink:var(--band-orange-cta-ink);
  --firstrun-cta-mark:var(--band-orange-cta-mark);
  --firstrun-focus:var(--band-orange-ink);
}
.firstrun.is-shared .firstrun-dock{display:none}
.firstrun-dock__brand{display:none}

/* ---- The proof: the workout screen, playing itself (owner, 2026-10-29: the landing-anim prototype's direction A) ----
   A phone plays one set of the bench press session in four chapters. Its screen is Focus's own markup at 390 x 844
   under `.theme-light`, inside a phone drawn at that size (the rig). The stage is a camera's frame (polish brief,
   2026-10-30): the whole phone opens the loop, then the landing controller moves and scales the rig so each beat's
   part of the screen fills the frame with its text at reading size. The frame keeps the old device's height, so it
   and the chapter chips fit one 390 x 844 or 375 x 667 viewport above the Build control; the chips are the chapters'
   titles with a progress line, and the current one's caption sits under them in a row as tall as the longest, so
   nothing below moves. From 900px the chapters are a list beside the frame. */
.firstrun-proof__stage{display:grid;justify-items:center;gap:var(--firstrun-gap-2)}
/* The caption row keeps the longest caption's height so nothing below moves; the band's foot gives that reserve back,
   so a short caption is not left above an empty strip of band (polish review, 2026-10-31). */
.firstrun-proof{padding-bottom:var(--firstrun-gap-3)}
.firstrun-hero{padding-bottom:var(--firstrun-gap-2)}
.firstrun-hero+.firstrun-proof{padding-top:var(--firstrun-gap-4)}
.firstrun-proof__device{
  --proof-device-w:clamp(176px,calc((100svh - 236px) * 390 / 844),234px);
  position:relative;width:100%;height:calc(var(--proof-device-w) * 844 / 390 + var(--space-16));overflow:hidden;isolation:isolate;
  border-radius:var(--radius-landing-stage);background:var(--band-night-bg);
}
.firstrun-proof__rig{
  position:absolute;left:0;top:0;padding:var(--space-14);transform-origin:0 0;will-change:transform;
  border:1px solid var(--band-night-rule);border-radius:calc(var(--radius-landing-phone) + var(--space-14));background:var(--band-night-bg);
}
.firstrun-proof__glass{
  position:relative;width:390px;height:844px;overflow:hidden;isolation:isolate;
  border-radius:var(--radius-landing-phone);background:var(--bg);
}
.firstrun-proof__screen{position:absolute;left:0;top:0;width:390px;height:844px;pointer-events:none}
/* The landing's stepper (the chapters here, the feature tabs below): full-width rows divided by hairlines, each with its
   step number and its whole label. The current row carries the current-item recipe (a 3px accent rule on a 5% accent
   tint) and opens to show its caption. The rows are the controls. */
.firstrun-chapters,.firstrun-feat__tabs{list-style:none;margin:0;padding:0;width:100%;display:flex;flex-direction:column;counter-reset:step;
  border-bottom:1px solid var(--firstrun-rule)}
.firstrun-chapter{display:block;position:relative;counter-increment:step;border-top:1px solid var(--firstrun-rule)}
.firstrun-chapter__go,.firstrun-feat__tab{
  position:relative;display:flex;align-items:center;gap:var(--space-12);width:100%;min-height:var(--control-target);margin:0;padding:var(--space-8) var(--space-12);
  border:0;border-radius:var(--radius-none);background:none;cursor:pointer;text-align:left;white-space:normal;
  font-family:var(--font-language);font-size:var(--font-size-body);font-weight:var(--weight-semibold);line-height:var(--line-standard);
  color:var(--firstrun-ink);-webkit-tap-highlight-color:transparent;
}
.firstrun-chapter__go::before,.firstrun-feat__title::before{content:counter(step);flex:none;width:1.25em;
  font-weight:var(--weight-medium);font-variant-numeric:tabular-nums;color:var(--firstrun-ink-soft)}
.firstrun-chapter.is-current,.firstrun-feat__tab.is-current{position:relative;overflow:hidden;border-radius:var(--radius-surface);border-top-color:transparent;
  background:var(--firstrun-row-open,var(--surface));outline:1px solid var(--firstrun-row-open-edge,var(--rule-strong));outline-offset:-1px}
.firstrun-chapter.is-current+.firstrun-chapter,.firstrun-feat__tab.is-current+.firstrun-feat__tab{border-top-color:transparent}
.firstrun-chapter.is-current::before,.firstrun-feat__tab.is-current::before{content:"";position:absolute;left:0;top:var(--space-12);bottom:var(--space-12);width:3px;
  border-radius:var(--radius-pill);background:var(--accent)}
.firstrun-chapter.is-current .firstrun-chapter__go::before,.firstrun-feat__tab.is-current .firstrun-feat__title::before{color:var(--firstrun-ink)}
.firstrun-band--night,.firstrun-band--raised,.firstrun-proof{--firstrun-row-open:color-mix(in srgb,var(--band-night-ink) 14%,var(--band-night-bg));
  --firstrun-row-open-edge:color-mix(in srgb,var(--band-night-ink) 22%,transparent)}
.firstrun-chapter__bar{display:none}
.firstrun-step-head,.firstrun-step-cap,.firstrun-kicker{display:none}
.firstrun-chapter__fill{position:absolute;inset:0;background:var(--band-night-accent);transform-origin:0 50%;transform:scaleX(var(--chapter-progress,0))}
.firstrun-chapter__text{
  display:none;margin:0;padding:0 var(--space-12) var(--space-12) calc(var(--space-12) * 2 + 1.25em);font-size:var(--font-size-body);line-height:var(--line-reading);
  color:var(--firstrun-ink-soft);text-wrap:pretty;
}
.firstrun-chapter.is-current .firstrun-chapter__text{display:block}
.firstrun-chapter__result{display:block;margin-top:var(--space-12)}
/* A phone: the stage is one screen, the phone framed short (the camera zooms to the part each chapter is about), the
   stepper under it. */
@media(max-width:899px){
  .firstrun-proof__stage{justify-items:stretch;gap:var(--firstrun-gap-2)}
  .firstrun-proof__stage>.firstrun-chapters{order:-1}
  .firstrun-proof .firstrun-wrap>*+*{margin-top:var(--firstrun-gap-2)}
  /* The stories rail: the row lists give way to a title line (name, count, previous and next), a rail of five straight
     bars (each a 44px button) and the open caption; the phone then fills the column, its side gutters cropped. */
  .firstrun .firstrun-chapters,.firstrun .firstrun-feat__tabs{display:none}
  .firstrun-proof__stage>:is(.firstrun-step-head,.firstrun-step-cap){order:-1}
  .firstrun-proof__stage{gap:var(--space-12)}
  .firstrun-step-head{display:flex;align-items:center;gap:var(--space-8);margin:0}
  .firstrun-step-head__title{flex:1;min-width:0;font-size:var(--font-size-subtitle);font-weight:var(--weight-semibold);line-height:var(--line-standard);color:var(--firstrun-ink)}
  .firstrun-step-head__count{flex:none;margin-right:var(--space-4);font-size:var(--font-size-body-small);font-variant-numeric:tabular-nums;color:var(--firstrun-ink-soft)}
  .firstrun-step-head__nav{flex:none;display:inline-flex;align-items:center;justify-content:center;width:var(--control-target);height:var(--control-target);padding:0;
    border:1px solid var(--firstrun-seg-rule,var(--rule-strong));border-radius:var(--radius-pill);background:none;color:var(--firstrun-ink);
    font:inherit;font-size:var(--font-size-section-title);line-height:1;cursor:pointer;-webkit-tap-highlight-color:transparent}
  .firstrun-step-head__nav>span{margin-top:-3px}
  .firstrun-step-head__nav{border:1.5px solid var(--firstrun-ink);background:none;color:var(--firstrun-ink)}
  .firstrun-step-head__nav[aria-disabled="true"]{opacity:.4;cursor:default}
  .firstrun-band--night,.firstrun-proof{--firstrun-seg-rule:color-mix(in srgb,var(--band-night-ink) 26%,transparent)}
  .firstrun-step-cap__t{grid-area:1/1;visibility:hidden}
  .firstrun-step-cap__t.is-current{visibility:visible}
  .firstrun-step-cap{display:grid;margin:0;font-size:var(--font-size-body);line-height:var(--line-reading);color:var(--firstrun-ink-soft);text-wrap:pretty}
  .firstrun-proof .firstrun-wrap>*+*{margin-top:var(--space-16)}
  .firstrun .firstrun-feat__caps{display:grid;margin-top:var(--space-8)}
  .firstrun-fx--progress .phero__stats{gap:var(--space-8)}
}
@media(max-width:340px){.firstrun-proof__device{border-radius:var(--radius-landing-stage-compact)}}
@media(min-width:900px){
  .firstrun-proof{padding-bottom:var(--firstrun-gap-8)}
  .firstrun-proof .firstrun-wrap{max-width:calc(var(--maxw) * 1.75)}
  .firstrun-proof .firstrun-sub{max-width:var(--maxw)}
  .firstrun-proof__stage{grid-template-columns:auto minmax(0,1fr);align-items:center;justify-items:start;column-gap:var(--firstrun-gap-8)}
  .firstrun-proof__device{--proof-device-w:clamp(240px,calc((100svh - 200px) * 390 / 844),300px);width:clamp(360px,36vw,440px)}
}
/* The phone's screen: Focus's own components under the app's light tokens (in either appearance), laid out as the live card is, plus the
   landing's frame-only parts (the finger, the rest light's windows, the next-session sheet and the loop's veil). */
.firstrun-demo{
  position:absolute;inset:0;overflow:hidden;background:var(--bg);color:var(--color-ink);font-family:var(--font-language);
  padding-top:47px;--shelf-numeral-fit:var(--font-size-metric);
}
.firstrun-demo__defs{position:absolute}
.firstrun-demo__head{padding:0 var(--space-8)}
.firstrun-demo__progress{margin:var(--space-8) var(--space-16) 0;gap:var(--space-8)}
.firstrun-demo__card{padding:0 var(--space-16)}
.firstrun-demo__card .fx-head{margin:var(--space-16) 0 0}
.firstrun-demo__ev,.firstrun-demo__ring,.firstrun-demo__log,
.firstrun-demo__log1,.firstrun-demo__log2,.firstrun-demo__fields,.firstrun-demo__rise,.firstrun-demo__end,.firstrun-demo__run,.firstrun-demo__tab,.firstrun-demo__light,
.firstrun-demo__lit,.firstrun-demo__scrim,.firstrun-demo__sheet,.firstrun-demo__did,.firstrun-demo__last,
.firstrun-demo__wheel,.firstrun-demo__wheel .wheel__item,.firstrun-demo__sel,.firstrun-demo__v0,.firstrun-demo__v1{will-change:transform,opacity}
.firstrun-demo__why{font-weight:var(--weight-semibold);color:var(--accent-deep)}
.firstrun-demo__row{position:relative}
/* Ledger text paints at the camera's current scale. A permanent will-change layer can retain a differently scaled
   text bitmap from an earlier shot, making held catalog frames alternate between sharp and blurred glyphs. */
.firstrun-demo__over{position:absolute;inset:0;opacity:0;background:var(--bg)}
/* The open set as Focus draws it at rest: a tint with a 3px accent bar on its leading edge, travelling with the set. */
.firstrun-demo__ring{inset:0;border-radius:var(--radius-none);border-left:3px solid var(--accent);background:rgba(var(--accent-rgb),.05);box-shadow:none}
.firstrun-demo__head > .icon-btn:first-child .icon-mask{transform:rotate(90deg)}
/* Next is Focus's quiet navigation row: a hairline above, the name, and a chevron at its end. */
.firstrun-demo__next{pointer-events:none;min-height:52px;margin-top:var(--space-26);border-top:1px solid var(--boundary-decorative);border-radius:var(--radius-none);background:transparent;color:var(--color-ink)}
.firstrun-demo .fcard__ledger+.firstrun-demo__next{margin-top:0}
.firstrun-demo__next>span:first-child{min-width:0;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
.firstrun-demo__shelf .shelf__fieldbtn{justify-content:flex-end}
.firstrun-demo__shelf{position:absolute;left:0;right:0;bottom:0;padding:var(--shelf-inset) var(--shelf-inset) calc(var(--shelf-inset) + 34px)}
.firstrun-demo__log{position:relative}
.firstrun-demo__log1,.firstrun-demo__log2{position:absolute;inset:0;display:flex;align-items:center;justify-content:center}
.firstrun-demo__log2{opacity:0}
.firstrun-demo__face{display:contents}
/* The selected field's outline (Focus's `aria-pressed` shadow), one element the frame slides from Load to Reps and back. */
.firstrun-demo__fields{position:relative}
.firstrun-demo__sel{position:absolute;pointer-events:none;box-shadow:var(--elevation-selected-quiet-shadow)}
/* The Reps field's count before and after the wheel turns it, in one cell: the target untouched, the turned count typed. */
.firstrun-demo__vals{display:inline-grid}
.firstrun-demo__v0,.firstrun-demo__v1{grid-area:1/1}
.firstrun-demo__v1{opacity:0;color:var(--color-ink)}
/* Focus's wheel sheet (its `.sheet` surface without the class, so no sheet query meets it), placed in the phone and
   moved by the frame. */
.firstrun-demo__wheel{
  position:absolute;z-index:3;left:0;right:0;bottom:0;display:flex;flex-direction:column;padding-bottom:34px;transform:translateY(101%);
  background:var(--surface);border-radius:var(--radius-prominent) var(--radius-prominent) var(--radius-none) var(--radius-none);box-shadow:var(--elevation-sheet-shadow);
}
.firstrun-demo__wheel .wheel__item{visibility:visible}
/* The shelf and its tab are the contour's one shape (Focus's .has-rest): the shelf's own box paints no fill, edge or
   shadow, so nothing lies across the tab where it meets the shelf. */
.firstrun-demo__contour{position:absolute;overflow:visible}
.workshelf.firstrun-demo__shelf{background:transparent;border-top-color:transparent;box-shadow:none}
.firstrun-demo__light{position:absolute;overflow:hidden;opacity:0}
.firstrun-demo__light--l{-webkit-mask-image:linear-gradient(to right,transparent,var(--ink) 34px);mask-image:linear-gradient(to right,transparent,var(--ink) 34px)}
.firstrun-demo__light--r{-webkit-mask-image:linear-gradient(to left,transparent,var(--ink) 34px);mask-image:linear-gradient(to left,transparent,var(--ink) 34px)}
.firstrun-demo__lit{position:absolute;top:0;overflow:visible;opacity:var(--rest-light-gain)}
.firstrun-demo__scrim{position:absolute;z-index:3;inset:0;background:rgb(var(--shadow-rgb));opacity:0}
.firstrun-demo__sheet{
  position:absolute;z-index:3;left:0;right:0;bottom:0;padding:var(--space-32) var(--space-16) calc(var(--space-16) + 34px);transform:translateY(100%);
  border-radius:var(--shelf-radius) var(--shelf-radius) var(--radius-none) var(--radius-none);background:var(--color-surface);box-shadow:var(--elevation-sheet-shadow);
}
.firstrun-demo__grab{position:absolute;left:50%;top:var(--space-8);width:36px;height:5px;margin-left:-18px;border-radius:var(--radius-pill);background:var(--boundary-required)}
.firstrun-demo__eyebrow{margin:0;font-size:var(--font-size-label);font-weight:var(--weight-semibold);letter-spacing:var(--track-label);text-transform:uppercase;color:var(--color-ink-secondary)}
.firstrun-demo__target{
  margin:var(--space-4) 0 0;font-family:var(--font-training-data);font-size:var(--font-size-focus-cue);font-weight:var(--weight-semibold);
  line-height:var(--line-focus-cue);letter-spacing:-.03em;color:var(--accent-deep);
}
.firstrun-demo__target .fx-cue__mark{display:inline-block;width:.62em;height:.62em;margin-right:.14em}
.firstrun-demo__did{margin:var(--space-8) 0 0;font-size:var(--font-size-focus-evidence);line-height:var(--line-standard);color:var(--color-ink-secondary)}
.firstrun-demo__history{margin-top:var(--space-16)}

/* The proof reuses Focus's test-set content inside its inert phone. */
.firstrun-demo__test-scene{position:absolute;z-index:4;left:0;right:0;bottom:34px;background:var(--surface);border-radius:var(--radius-prominent);padding:var(--space-16);opacity:0;will-change:transform,opacity}
.firstrun-demo__test-tip,.firstrun-demo__test-cue,.firstrun-demo__test-result{background:var(--bg);border-radius:var(--radius-none)}
.firstrun-demo__test-backdrop{position:absolute;z-index:3;inset:80px 0 0;background:var(--bg);opacity:0}
.firstrun-demo__test-tip{padding:0}
.firstrun-demo__test-tip > .fcard__ledger{margin:0 var(--space-16) var(--space-16)}
.workshelf.firstrun-demo__invite-shelf{border-radius:var(--radius-none)}
.firstrun-demo__test-guess{bottom:0;padding:0 0 34px;overflow:hidden;border-radius:var(--radius-prominent) var(--radius-prominent) var(--radius-none) var(--radius-none)}
.firstrun-demo__test-cue .fx-cue{margin:0}
.firstrun-demo__test-cue .fcard__ledger{margin-top:var(--space-16)}

/* ---- The three ways ----
   Three informational siblings: a numeral, a title and a line each, divided by hairlines. Only the paste hand-off in
   the third is a control. */
.firstrun-ways__list{list-style:none;display:grid;width:100%;max-width:var(--maxw);margin:var(--firstrun-gap-3) auto 0;counter-reset:way;
  padding:0 max(var(--gut),env(safe-area-inset-right)) 0 max(var(--gut),env(safe-area-inset-left))}
.firstrun-way{counter-increment:way;display:flex;flex-direction:column;padding:var(--firstrun-gap-3) max(var(--gut),env(safe-area-inset-left));
  margin-inline:calc(max(var(--gut),env(safe-area-inset-left)) * -1)}
.firstrun-way--field{
  background:var(--band-orange-bg);color:var(--band-orange-ink);
  --firstrun-ink:var(--band-orange-ink);--firstrun-ink-soft:var(--band-orange-ink);--firstrun-focus:var(--band-orange-ink);--firstrun-rule:var(--band-orange-ink);
}
.firstrun-way--surface{
  background:var(--surface);color:var(--color-ink);
  --firstrun-ink:var(--color-ink);--firstrun-ink-soft:var(--color-ink-secondary);--firstrun-focus:var(--color-ink);
}
.firstrun-way--ink{
  background:var(--band-ink-bg);color:var(--band-ink-ink);
  --firstrun-band-bg:var(--band-ink-bg);--firstrun-ink:var(--band-ink-ink);--firstrun-ink-soft:var(--band-ink-ink-soft);
  --firstrun-rule:var(--band-ink-rule);--firstrun-focus:var(--band-ink-ink);
}
.firstrun-way:last-child{padding-bottom:var(--firstrun-gap-3)}
.firstrun-way>.firstrun-wrap{flex:1;display:flex;flex-direction:column;max-width:none;padding:0}
.firstrun-way .firstrun-disclosure{justify-content:space-between;width:100%;min-height:56px;margin-top:var(--firstrun-gap-2);padding:var(--firstrun-gap-1) 0;
  border-top:1px solid var(--firstrun-rule);border-bottom:1px solid var(--firstrun-rule);font-size:var(--font-size-subtitle)}
.firstrun-way__title{margin:0;font-size:var(--font-size-metric);font-weight:var(--weight-semibold);line-height:var(--line-standard);letter-spacing:-.01em}
.firstrun-way__title::before{content:counter(way,decimal-leading-zero);display:block;margin-bottom:var(--space-4);
  font-family:var(--font-language);font-size:var(--font-size-body-small);font-weight:var(--weight-semibold);font-variant-numeric:tabular-nums;color:var(--firstrun-ink)}
.firstrun-way p{margin:var(--firstrun-gap-1) 0 0;font-size:var(--font-size-body);line-height:var(--line-reading);color:var(--firstrun-ink-soft)}
.firstrun-disclosure{
  appearance:none;display:flex;align-items:center;justify-content:space-between;gap:var(--firstrun-gap-2);width:100%;min-height:48px;
  margin-top:var(--firstrun-gap-2);padding:var(--firstrun-gap-1) 0 0;border:0;border-top:1px solid var(--firstrun-rule);background:none;color:inherit;
  font:inherit;font-size:var(--font-size-control);font-weight:var(--weight-semibold);text-align:left;cursor:pointer;-webkit-tap-highlight-color:transparent;
}
.firstrun-disclosure.is-pressed,.firstrun-qa summary.is-pressed{opacity:.72}
.firstrun-disclosure i,.firstrun-qa summary i{flex:none;width:20px;height:20px;position:relative}
.firstrun-disclosure i::before,.firstrun-disclosure i::after,.firstrun-qa summary i::before,.firstrun-qa summary i::after{
  content:"";position:absolute;left:3px;right:3px;top:9px;height:2px;background:currentColor;border-radius:var(--radius-compact);
  transition:transform .2s cubic-bezier(.2,.7,.2,1);
}
.firstrun-disclosure i::after,.firstrun-qa summary i::after{transform:rotate(90deg)}
.firstrun-disclosure[aria-expanded="true"] i::after,.firstrun-qa[open] summary i::after{transform:rotate(0)}
/* the paste hand-off, opened inside the ink stripe */
.firstrun-hand{display:grid;gap:var(--firstrun-gap-2);padding:var(--firstrun-gap-2) 0 0}
.firstrun-hand[hidden]{display:none}
.firstrun-hand p{margin:0;font-size:var(--font-size-body);color:var(--firstrun-ink-soft)}
.firstrun-hand .firstrun-seeing{font-size:var(--font-size-body-small);color:var(--firstrun-ink-soft)}
.firstrun-hand .firstrun-ui{color:var(--firstrun-ink)}
.firstrun-msg{
  max-width:92%;padding:12px 14px;background:var(--well);box-shadow:var(--boundary-card-hairline-shadow);color:var(--color-ink);font-size:var(--font-size-body-small);
  border-radius:var(--radius-prominent) var(--radius-prominent) var(--radius-prominent) var(--radius-compact);
}
.firstrun-msg__who{display:flex;justify-content:space-between;gap:12px;margin-bottom:6px;font-size:var(--font-size-caption);color:var(--color-ink-secondary)}
.firstrun-msg__who b{color:var(--color-ink);font-weight:var(--weight-semibold)}
.firstrun-msg pre{margin:0;font:inherit;font-size:var(--font-size-body-small);line-height:var(--line-reading);white-space:pre-wrap;color:var(--color-ink)}
.firstrun-shot-figure{margin:0}
.firstrun-shot-figure img{display:block;width:100%;max-width:420px;height:auto;margin-inline:auto;border-radius:var(--radius-surface)}
.firstrun-hand .firstrun-note{display:flex;gap:10px;font-size:var(--font-size-body-small)}
.firstrun-note svg{width:18px;height:18px;flex:none;margin-top:2px}

/* ---- Track: what the next target does with each session ---- */
/* ---- The feature tabs (owner, 2026-10-30) ----
   Five tabs over one soft panel. On a phone the tabs are a sideways row with the playing tab's text under it; from
   900px they are a list beside the panel, each with its own text. The playing tab's line fills with its scene
   (--feature-progress, written by the landing controller). The panel's size is fixed here, so the scaled screens
   inside it never move the page. Each screen is the app's light theme (.theme-light), built 390 wide. */
.firstrun-feat{display:grid;gap:var(--space-16);margin-top:var(--firstrun-gap-4)}
.firstrun-feat__side{min-width:0}
.firstrun-feat__tab{counter-increment:step;display:block;border-top:1px solid var(--firstrun-rule);padding:var(--space-8) var(--space-12)}
.firstrun-feat__tab:focus-visible{outline:var(--control-focus-outline);outline-offset:-2px}
.firstrun-feat__title{display:flex;align-items:center;gap:var(--space-12);min-height:calc(var(--control-target) - var(--space-16))}
.firstrun-feat__text{display:none}
.firstrun-feat__tab.is-current .firstrun-feat__text{display:block;padding:var(--space-4) 0 var(--space-4) calc(var(--space-12) + 1.25em);
  font-size:var(--font-size-body);font-weight:var(--weight-regular);line-height:var(--line-reading);color:var(--firstrun-ink-soft)}
.firstrun-feat__bar{display:none}
.firstrun-feat__fill{position:absolute;inset:0;background:var(--accent);transform-origin:0 50%;transform:scaleX(var(--feature-progress,0))}
.firstrun-feat__caps{display:none}
.firstrun-feat__cap{grid-area:1/1;margin:0;font-size:var(--font-size-body);line-height:var(--line-reading);color:var(--firstrun-ink-soft);
  opacity:0;visibility:hidden}
.firstrun-feat__cap.is-current{opacity:1;visibility:visible;transition:opacity .2s cubic-bezier(.2,.7,.2,1)}
.firstrun-feat__panel{position:relative;height:540px;margin-inline:calc(var(--gut) * -1 + var(--space-8));overflow:hidden;isolation:isolate;border-radius:var(--radius-landing-stage);
  background:var(--well);border:1px solid var(--boundary-decorative)}
.firstrun .firstrun-feat__win{border:1px solid rgba(var(--ink-rgb),.07)}
.firstrun-feat__tint{position:absolute;inset:0;opacity:0;transition:opacity .6s cubic-bezier(.2,.7,.2,1)}
.firstrun-feat__tint.is-current{opacity:1}
.firstrun-feat__tint--1{background:radial-gradient(90% 70% at 80% 0%,rgba(var(--accent-rgb),.16),rgba(var(--accent-rgb),0) 62%),linear-gradient(160deg,rgba(var(--accent-rgb),.10),rgba(var(--accent-rgb),.05))}
.firstrun-feat__tint--2{background:radial-gradient(80% 70% at 15% 0%,rgba(var(--accent-rgb),.12),rgba(var(--accent-rgb),0) 60%),linear-gradient(160deg,rgba(var(--accent-rgb),.07),rgba(var(--accent-rgb),.04))}
.firstrun-feat__tint--3{background:radial-gradient(90% 70% at 85% 10%,rgba(var(--accent-rgb),.10),rgba(var(--accent-rgb),0) 60%),linear-gradient(160deg,rgba(var(--accent-rgb),.05),rgba(var(--accent-rgb),.03))}
.firstrun-feat__tint--4{background:radial-gradient(85% 70% at 20% 0%,rgba(var(--accent-rgb),.13),rgba(var(--accent-rgb),0) 60%),linear-gradient(160deg,rgba(var(--accent-rgb),.09),rgba(var(--accent-rgb),.05))}
.firstrun-feat__tint--5{background:radial-gradient(85% 70% at 75% 0%,rgba(var(--accent-rgb),.12),rgba(var(--accent-rgb),0) 60%),linear-gradient(160deg,rgba(var(--accent-rgb),.06),rgba(var(--accent-rgb),.04))}
.firstrun-feat__stage{position:absolute;inset:0;pointer-events:none}
.firstrun-fx--progress .phero__stats{grid-template-columns:repeat(3,auto);justify-content:space-between}
.firstrun-fx--progress .phero__cap{white-space:nowrap}
.firstrun-fx--progress .phero__stat{padding-right:var(--space-8)}
.firstrun-fx .sumhead__link{word-spacing:.12em}
/* the Progress summary shows its strength card with the bench row alone, and the screen itself is clipped 16px under
   that card's rounded foot, so nothing past it can show */
.firstrun-fx--progress .liftrow+.liftrow{display:none}
.firstrun-feat__screen[data-feature-screen="0"]{clip-path:polygon(0 0,100% 0,100% 555px,0 555px)}
@media(min-width:1100px){.firstrun-feat__screen[data-feature-screen="0"]{clip-path:polygon(0 0,100% 0,100% 551px,0 551px)}}
.firstrun-fx--progress .phero__headline{padding-right:var(--space-4);font-size:var(--font-size-body)}
.firstrun-fx--progress .liftrow{gap:var(--space-16)}
.firstrun-feat__win{position:absolute;left:50%;top:50%;overflow:hidden;border-radius:var(--radius-landing-stage-compact);background:var(--bg);
  box-shadow:var(--elevation-floating-shadow);
  opacity:0;visibility:hidden;transform:translate(-50%,-50%) translateY(10px) scale(.985);
  transition:opacity .36s cubic-bezier(.2,.7,.2,1),transform .45s cubic-bezier(.2,.7,.2,1),visibility 0s linear .36s;will-change:transform,opacity}
/* A tab change is one cross-fade: the next screen fades in while the last fades out, so the panel is never empty. */
.firstrun-feat__win.is-current{z-index:1;opacity:1;visibility:visible;transform:translate(-50%,-50%);
  transition:opacity .36s cubic-bezier(.2,.7,.2,1),transform .45s cubic-bezier(.2,.7,.2,1),visibility 0s}
/* The window behind a whole-screen frame is the screen's own ground: the paper (the window is light-themed) or the
   Home Screen's wallpaper, faded with it, so no strip of another colour shows. (The chat carries its own ground past
   the screen's edges instead.) */
.firstrun-feat__backdrop{position:absolute;inset:0;opacity:0}
.firstrun-feat__backdrop--home{background:radial-gradient(120% 70% at 15% 0%,rgba(var(--accent-rgb),.7),rgba(var(--accent-rgb),0) 62%),
  linear-gradient(172deg,rgba(var(--accent-rgb),.5),rgba(var(--ink-rgb),.94) 82%)}
.firstrun-feat__screen[data-feature-screen="3"],.firstrun-fx.firstrun-fx--share{overflow:visible;contain:none}
.firstrun-feat__screen{position:absolute;left:0;top:0;width:390px;transform-origin:0 0;overflow:hidden;color:var(--color-ink);
  font-family:var(--font-language);contain:layout paint}
.firstrun-feat__notes{position:absolute;inset:auto 0 var(--space-14);height:40px;pointer-events:none}
.firstrun-feat__note{position:absolute;left:50%;bottom:0;padding:var(--space-8) var(--space-14);border-radius:var(--radius-pill);white-space:nowrap;
  background:var(--surface);box-shadow:var(--elevation-floating-shadow);border:1px solid var(--boundary-decorative);
  font-size:var(--font-size-body-small);font-weight:var(--weight-semibold);color:var(--color-ink);opacity:0;transform:translateX(-50%);will-change:transform,opacity}
@media(min-width:900px){
  .firstrun-features .firstrun-wrap{max-width:calc(var(--maxw) * 2)}
  .firstrun-features .firstrun-sub{max-width:var(--maxw)}
  .firstrun-feat{grid-template-columns:minmax(0,1fr) calc(400px + var(--space-32) * 2 + var(--space-26));align-items:center;column-gap:var(--firstrun-gap-8)}
  .firstrun-feat__tab{font-size:var(--font-size-subtitle)}
  .firstrun-feat__caps{display:none}
  .firstrun-feat__panel{height:640px;margin-inline:0}
  .firstrun-feat__win{border-radius:var(--radius-landing-stage)}
}
@media(prefers-reduced-motion:reduce){.firstrun-feat__win,.firstrun-feat__win.is-current,.firstrun-feat__tint,.firstrun-feat__cap.is-current{transition:none}}

/* The screens. Positions are the scene's own 390-wide geometry; colours, type and radii are the app's tokens. */
.firstrun-fx{position:absolute;inset:0;overflow:hidden;font-size:var(--font-size-body);line-height:var(--line-standard)}
.firstrun-fx :where(p){margin:0}
.firstrun-fx__lay>span,.firstrun-fx--progress .liftline,.firstrun-fx--progress .liftline__pt,.firstrun-fx__sheet,.firstrun-fx__swap>*,.firstrun-fx__acts,.firstrun-fx__below,.firstrun-fx__scrim,.firstrun-fx__ring,
.firstrun-fx__ph,.firstrun-fx__caret,.firstrun-fx__res,.firstrun-fx__hl,.firstrun-fx__ul,.firstrun-fx__chipx,.firstrun-fx__chips,.firstrun-fx--library .librow,
.firstrun-fx__pa,.firstrun-fx__pb,.firstrun-fx__toast,.firstrun-fx__chat,.firstrun-fx__bubble,.firstrun-fx__wadim,.firstrun-fx__wamenu,.firstrun-fx__waitem,.firstrun-fx__wahl,.firstrun-fx__pline,.firstrun-fx__match,.firstrun-fx__hd,.firstrun-fx__fg,
.firstrun-fx__home,.firstrun-fx__app,.firstrun-fx__hist,.firstrun-fx__hlist,.firstrun-fx__sig,.firstrun-fx__air{will-change:transform,opacity}
.firstrun-fx__lay{position:relative;display:inline-grid}
.firstrun-fx__lay>span{grid-area:1/1;white-space:nowrap}
.firstrun-fx__b{opacity:0}
.firstrun-fx__title{position:absolute;left:var(--space-16);right:var(--space-16);top:54px;font-size:var(--font-size-feature-title);font-weight:var(--weight-semibold);
  line-height:var(--line-tight);letter-spacing:-.02em}
.firstrun-fx__meta{position:absolute;left:var(--space-16);top:94px;font-size:var(--font-size-body-small);color:var(--color-ink-secondary)}
.firstrun-fx__grab{position:absolute;left:50%;top:var(--space-8);width:36px;height:5px;margin-left:-18px;border-radius:var(--radius-compact);background:var(--rule-strong)}
.firstrun-fx__sheet{position:absolute;left:0;right:0;bottom:0;border-radius:var(--radius-prominent) var(--radius-prominent) 0 0;background:var(--surface);
  box-shadow:var(--elevation-sheet-shadow)}
.firstrun-fx__sheettitle{position:absolute;left:var(--space-16);right:var(--space-16);top:28px;font-size:var(--font-size-section-title);font-weight:var(--weight-semibold);line-height:var(--line-tight)}
.firstrun-fx__scrim{position:absolute;inset:0;background:var(--scrim);opacity:0}
.firstrun-fx__pill{display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:0 var(--space-16);border-radius:var(--radius-pill);
  background:var(--surface);border:1.5px solid var(--color-ink);font-size:var(--font-size-body-small);font-weight:var(--weight-medium)}
.firstrun-fx__pill--danger{border-color:var(--danger);color:var(--danger)}
.firstrun-fx__pill--fill{background:var(--cta);color:var(--cta-ink);border-color:var(--cta)}
.firstrun-fx__cardtext{display:grid;min-width:0}
.firstrun-fx__cardtext b{font-weight:var(--weight-semibold);line-height:1.25}
.firstrun-fx__cardtext span{margin-top:2px;font-family:var(--font-training-data);font-size:var(--font-size-body-small);color:var(--color-ink-secondary)}
/* 1 · Progress: the Summary's own block card and strength rows (.phero, .sumhead, .liftrow), set on the page's ground */
.firstrun-fx--progress{padding:52px var(--space-16) 0;background:var(--bg)}
.firstrun-fx__ptitle{font-size:var(--font-size-title);font-weight:var(--weight-semibold);line-height:var(--line-tight);letter-spacing:-.02em}
.firstrun-fx--progress .phero{margin-top:var(--space-18)}
.firstrun-fx--progress .liftline{clip-path:inset(-8px 100% -8px -8px)}
.firstrun-fx--progress .liftline__pt{opacity:0}
.firstrun-fx--progress .liftrow > .chevron{color:var(--color-ink-secondary)}
.firstrun-fx--progress :is(.liftrow__val,.liftrow__delta) > .firstrun-fx__lay{justify-items:end}
.firstrun-fx--progress .liftrow__delta{text-align:right}
/* 2 · Replace an exercise */
.firstrun-fx__card{display:flex;align-items:center;gap:var(--space-12);height:80px;padding:0 var(--space-12);border-radius:var(--radius-prominent);background:var(--surface);
  box-shadow:var(--elevation-flat-shadow)}
.firstrun-fx__card .exthumb,.firstrun-fx__card .exthumb-empty{flex:none}
.firstrun-fx__cardchev{margin-left:auto;flex:none;width:18px;height:18px;color:var(--ink-faint)}
.firstrun-fx__swap{position:absolute;left:var(--space-16);right:var(--space-16);top:128px;height:80px}
.firstrun-fx__swap>.firstrun-fx__card{position:absolute;inset:0}
.firstrun-fx__swapb{opacity:0}
.firstrun-fx__flash{position:absolute;inset:0;border-radius:var(--radius-prominent);border:2px solid var(--accent);outline:4px solid rgba(var(--accent-rgb),.14);opacity:0}
.firstrun-fx__ebar{position:absolute;left:0;right:0;top:0;display:flex;align-items:center;justify-content:space-between;gap:var(--space-12);height:52px;
  padding:0 var(--space-16);border-bottom:1px solid var(--boundary-decorative);font-size:var(--font-size-control);color:var(--accent-deep)}
.firstrun-fx__ebar b{flex:1;font-weight:var(--weight-semibold);color:var(--color-ink)}
/* The exercise's own sheet: its name, the close control and the Swap exercise row */
.firstrun-fx__acts{top:auto;height:220px;transform:translateY(104%)}
.firstrun-fx__acts .firstrun-fx__sheettitle{right:64px}
.firstrun-fx__x{position:absolute;right:var(--space-16);top:24px;width:36px;height:36px;border-radius:var(--radius-round);background:var(--well)}
.firstrun-fx__x::before,.firstrun-fx__x::after{content:"";position:absolute;left:11px;top:17px;width:14px;height:1.75px;border-radius:var(--radius-compact);background:var(--color-ink-secondary);transform:rotate(45deg)}
.firstrun-fx__x::after{transform:rotate(-45deg)}
.firstrun-fx__navrow{position:absolute;left:var(--space-16);right:var(--space-16);top:96px;display:flex;align-items:center;justify-content:space-between;
  min-height:60px;border-block:1px solid var(--boundary-decorative);font-size:var(--font-size-body);font-weight:var(--weight-medium)}
.firstrun-fx__navrow .icon-mask{width:18px;height:18px;color:var(--color-ink-secondary)}
.firstrun-fx__below{position:absolute;left:var(--space-16);right:var(--space-16);top:216px;display:grid;gap:var(--space-8)}
.firstrun-fx__picker{top:96px;padding-top:0}
.firstrun-fx__picker,.firstrun-fx__share{transform:translateY(104%)}
.firstrun-fx__search{position:absolute;left:var(--space-16);right:var(--space-16);width:auto;display:flex;align-items:center;margin:0}
.firstrun-fx__picker .firstrun-fx__search{top:74px}
.firstrun-fx__ring{position:absolute;inset:-2px;border-radius:var(--radius-control);border:2px solid var(--accent);outline:3px solid rgba(var(--accent-rgb),.18);opacity:0}
.firstrun-fx__ph{position:absolute;left:var(--space-14);color:var(--ink-faint)}
.firstrun-fx__typed{position:absolute;left:var(--space-14);display:flex;align-items:center;white-space:pre}
.firstrun-fx__caret{display:inline-block;width:2px;height:20px;margin-left:1px;background:var(--accent);opacity:0}
.firstrun-fx__res{position:relative;display:flex;align-items:center;gap:var(--space-12);height:70px;padding:0 var(--space-16);opacity:0}
.firstrun-fx__results{position:absolute;left:0;right:0;top:138px}
.firstrun-fx__res+.firstrun-fx__res{border-top:1px solid var(--boundary-decorative)}
.firstrun-fx__res .firstrun-fx__cardtext span{font-family:var(--font-language)}
.firstrun-fx__hl{position:absolute;inset:0;background:rgba(var(--ink-rgb),.05);opacity:0}
/* 3 · Library */
.firstrun-fx--library{padding:6px var(--space-16) 0}
.firstrun-fx--library .firstrun-fx__search{position:relative;left:auto;right:auto;height:48px}
.firstrun-fx__tabs{position:relative}
.firstrun-fx__tabs .picktab{flex:1;text-align:center;border-bottom-color:transparent}
.firstrun-fx__ul{position:absolute;left:0;bottom:-1px;width:33.333%;height:2px;background:var(--control-selected-boundary);transform:translateX(100%)}
.firstrun-fx__chips{flex-wrap:nowrap;overflow:visible}
.firstrun-fx__chipw{position:relative;display:inline-flex;flex:none}
.firstrun-fx__chipx{position:absolute;inset:0;opacity:0}
.firstrun-fx__lists{position:relative}
.firstrun-fx__list{position:absolute;left:0;right:0;top:0}
.firstrun-fx__g1 .librow,.firstrun-fx__g2 .librow{opacity:0}
/* 4 · Share, then paste */
.firstrun-fx__pa,.firstrun-fx__pb{position:absolute;inset:0;background:var(--bg)}
.firstrun-fx__pb{opacity:0;z-index:1}
.firstrun-fx__prow{display:flex;align-items:center;justify-content:space-between;gap:var(--space-12);min-height:70px;margin:0 var(--space-16);
  border-bottom:1px solid var(--boundary-decorative)}
.firstrun-fx__prow b{display:grid;font-weight:var(--weight-medium)}
.firstrun-fx__prow small{margin-top:2px;font-size:var(--font-size-body-small);font-weight:var(--weight-regular);color:var(--color-ink-secondary)}
.firstrun-fx__prow>span{flex:none;font-family:var(--font-training-data);font-size:var(--font-size-body-small);color:var(--color-ink-secondary)}
.firstrun-fx__prow--head{min-height:44px;border-bottom:0}
.firstrun-fx__prow--head b{font-size:var(--font-size-label);font-weight:var(--weight-semibold);letter-spacing:var(--track-label);text-transform:uppercase;color:var(--color-ink-secondary)}
.firstrun-fx__share{height:410px}
.firstrun-fx__body{position:absolute;left:var(--space-16);right:var(--space-16);top:92px;line-height:var(--line-reading)}
.firstrun-fx__link{position:absolute;left:var(--space-16);right:var(--space-16);top:196px;height:118px;padding:var(--space-12) var(--space-14);overflow:hidden;
  border-radius:var(--radius-control);border:1px solid var(--rule-strong);font-family:var(--font-training-data);font-size:var(--font-size-caption);
  line-height:var(--line-reading);word-break:break-all}
.firstrun-fx__link .firstrun-fx__lay{display:grid}
.firstrun-fx__link .firstrun-fx__lay>span{white-space:normal}
.firstrun-fx__link .firstrun-fx__a{font-family:var(--font-language);color:var(--color-ink-secondary)}
.firstrun-fx__btns{position:absolute;left:var(--space-16);right:var(--space-16);bottom:var(--space-26);display:grid;grid-template-columns:1fr 1fr;gap:var(--space-12)}
.firstrun-fx__btns .firstrun-fx__pill{min-height:50px;font-size:var(--font-size-control);font-weight:var(--weight-semibold)}
.firstrun-fx__toast{position:absolute;left:50%;top:14px;padding:var(--space-12) var(--space-18);border-radius:var(--radius-pill);background:var(--cta);color:var(--cta-ink);
  font-size:var(--font-size-body-small);font-weight:var(--weight-medium);white-space:nowrap;opacity:0}
.firstrun-fx__pb .firstrun-fx__title{top:24px}
.firstrun-fx__counts{position:absolute;left:var(--space-16);right:var(--space-16);top:84px;margin:0;opacity:0}
.firstrun-fx__pline{position:absolute;left:var(--space-16);top:0;font-family:var(--font-training-data);font-size:var(--font-size-body-small);white-space:nowrap}
.firstrun-fx__match{position:absolute;left:var(--space-16);right:var(--space-16);display:flex;align-items:flex-start;gap:var(--space-8);opacity:0}
.firstrun-fx__match b{display:block;font-size:var(--font-size-body-small);font-weight:var(--weight-semibold)}
.firstrun-fx__match small{display:block;margin-top:2px;font-size:var(--font-size-caption);font-weight:var(--weight-semibold);color:var(--positive)}
.firstrun-fx__arrow{color:var(--color-ink-secondary)}
.firstrun-fx__mark{flex:none;width:18px;height:18px;margin-top:1px;border-radius:var(--radius-round);background:var(--positive)}
.firstrun-fx__mark.is-likely{box-sizing:border-box;background:none;border:1.6px solid var(--color-ink-secondary)}
.firstrun-fx__mark.is-likely+span small{color:var(--color-ink-secondary)}
/* 5 · The gym floor */
.firstrun-fx__home{position:absolute;inset:0;background:radial-gradient(120% 70% at 15% 0%,rgba(var(--accent-rgb),.7),rgba(var(--accent-rgb),0) 62%),
  linear-gradient(172deg,rgba(var(--accent-rgb),.5),rgba(var(--ink-rgb),.94) 82%)}
.firstrun-fx__icon{position:absolute;width:60px;height:60px;overflow:hidden;border-radius:var(--radius-surface);color:var(--surface);box-shadow:var(--elevation-flat-shadow)}
.firstrun-fx__glyph{position:absolute;left:14px;top:14px;width:32px;height:32px}
.firstrun-fx__icon--paper-red{background:var(--surface);color:var(--danger)}
.firstrun-fx__icon--paper-accent{background:var(--surface);color:var(--accent)}
.firstrun-fx__icon--paper-ink{background:var(--surface);color:var(--ink)}
.firstrun-fx__icon--ink{background:linear-gradient(160deg,rgba(var(--ink-rgb),.78),var(--ink))}
.firstrun-fx__icon--ink-green{background:var(--ink);color:var(--positive)}
.firstrun-fx__icon--accent{background:linear-gradient(160deg,rgba(var(--accent-rgb),.8),var(--accent))}
.firstrun-fx__icon--positive{background:linear-gradient(160deg,rgba(var(--positive-rgb),.78),var(--positive))}
.firstrun-fx__icon--red{background:linear-gradient(160deg,rgba(var(--danger-rgb),.78),var(--danger))}
.firstrun-fx__icon--slate{background:linear-gradient(160deg,rgba(var(--ink-rgb),.42),rgba(var(--ink-rgb),.6))}
.firstrun-fx__icon--grey{background:linear-gradient(160deg,rgba(var(--ink-rgb),.28),rgba(var(--ink-rgb),.44))}
.firstrun-fx__icon--app{background:none}
.firstrun-fx__icon--app img{display:block;width:100%;height:100%}
.firstrun-fx__ilbl{position:absolute;width:92px;text-align:center;white-space:nowrap;font-family:-apple-system,system-ui,var(--font-language);
  font-size:var(--font-size-caption);font-weight:var(--weight-medium);color:var(--surface)}
.firstrun-fx__dots{position:absolute;left:0;right:0;top:572px;display:flex;justify-content:center;gap:var(--space-8)}
.firstrun-fx__dots i{width:7px;height:7px;border-radius:var(--radius-round);background:rgba(var(--bg-rgb),.45)}
.firstrun-fx__dots i.is-on{background:var(--surface)}
.firstrun-fx__hdock{position:absolute;left:12px;right:12px;bottom:12px;height:92px;border-radius:var(--radius-landing-stage);background:rgba(var(--bg-rgb),.26)}
/* 4 · a messaging app's conversation, in its familiar light look */
.firstrun-fx__chat{position:absolute;inset:0;opacity:0}
/* the chat's ground runs 80 px past the screen's edges, so a whole-screen frame in a wider window shows the wallpaper
   there too; the window clips it */
.firstrun-fx__chat::after{content:"";position:absolute;z-index:-1;top:0;bottom:0;left:-80px;right:-80px;background-color:var(--well);background-color:color-mix(in srgb,var(--accent-deep) 6%,color-mix(in srgb,var(--ink) 4%,var(--bg)))}
/* the wallpaper's doodles: a mask the ink shows through faintly, so no colour is baked into the drawing */
.firstrun-fx__chat::before{content:"";position:absolute;top:0;bottom:0;left:-80px;right:-80px;background:rgba(var(--ink-rgb),.07);
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='132' height='132' viewBox='0 0 132 132' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 22h10M12 18v8M26 18v8M10 20v4M28 20v4'/%3E%3Ccircle cx='62' cy='18' r='6'/%3E%3Cpath d='M104 12l3 6 6 1-4 4 1 6-6-3-6 3 1-6-4-4 6-1z'/%3E%3Cpath d='M20 66c-3-4-9-1-7 4l7 7 7-7c2-5-4-8-7-4z'/%3E%3Crect x='54' y='58' width='18' height='13' rx='4'/%3E%3Cpath d='M58 71l-3 5 6-5'/%3E%3Cpath d='M98 60q8-10 16 0t16 0'/%3E%3Cpath d='M16 108l8-8 8 8'/%3E%3Ccircle cx='66' cy='106' r='3'/%3E%3Cpath d='M98 100h14v12H98z'/%3E%3C/svg%3E") repeat 0 0/132px 132px;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='132' height='132' viewBox='0 0 132 132' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 22h10M12 18v8M26 18v8M10 20v4M28 20v4'/%3E%3Ccircle cx='62' cy='18' r='6'/%3E%3Cpath d='M104 12l3 6 6 1-4 4 1 6-6-3-6 3 1-6-4-4 6-1z'/%3E%3Cpath d='M20 66c-3-4-9-1-7 4l7 7 7-7c2-5-4-8-7-4z'/%3E%3Crect x='54' y='58' width='18' height='13' rx='4'/%3E%3Cpath d='M58 71l-3 5 6-5'/%3E%3Cpath d='M98 60q8-10 16 0t16 0'/%3E%3Cpath d='M16 108l8-8 8 8'/%3E%3Ccircle cx='66' cy='106' r='3'/%3E%3Cpath d='M98 100h14v12H98z'/%3E%3C/svg%3E") repeat 0 0/132px 132px}
.firstrun-fx__wahead{position:absolute;z-index:1;left:-80px;right:-80px;top:0;height:64px;display:flex;align-items:center;gap:var(--space-8);
  padding:0 calc(80px + var(--space-16)) 0 calc(80px + var(--space-8));background:var(--surface);border-bottom:1px solid var(--boundary-decorative);font-family:-apple-system,system-ui,var(--font-language)}
.firstrun-fx__waback{font-size:var(--font-size-display);font-weight:var(--weight-regular);line-height:1;color:var(--ink)}
.firstrun-fx__waavatar{display:flex;align-items:center;justify-content:center;flex:none;width:38px;height:38px;border-radius:var(--radius-round);
  background:rgba(var(--accent-rgb),.18);color:var(--accent-deep);font-weight:var(--weight-semibold)}
.firstrun-fx__waname{display:grid;flex:1;min-width:0;line-height:1.2}
.firstrun-fx__waname b{font-size:var(--font-size-body);font-weight:var(--weight-semibold)}
.firstrun-fx__waname small{font-size:var(--font-size-caption);color:var(--color-ink-secondary)}
.firstrun-fx__waicon{flex:none;width:24px;height:24px;margin-left:var(--space-14);background:var(--ink);-webkit-mask:no-repeat center/contain;mask:no-repeat center/contain}
.firstrun-fx__waicon--video{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linejoin='round'%3E%3Crect x='2.5' y='6' width='13' height='12' rx='3'/%3E%3Cpath d='M15.5 10.5l6-3.5v10l-6-3.5z'/%3E%3C/svg%3E");
  mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linejoin='round'%3E%3Crect x='2.5' y='6' width='13' height='12' rx='3'/%3E%3Cpath d='M15.5 10.5l6-3.5v10l-6-3.5z'/%3E%3C/svg%3E")}
.firstrun-fx__waicon--call{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linejoin='round'%3E%3Cpath d='M6.5 3.5h3l1.5 4.5-2.2 1.4a11 11 0 0 0 5.8 5.8l1.4-2.2 4.5 1.5v3a2 2 0 0 1-2.2 2A17 17 0 0 1 4.5 5.7a2 2 0 0 1 2-2.2z'/%3E%3C/svg%3E");
  mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linejoin='round'%3E%3Cpath d='M6.5 3.5h3l1.5 4.5-2.2 1.4a11 11 0 0 0 5.8 5.8l1.4-2.2 4.5 1.5v3a2 2 0 0 1-2.2 2A17 17 0 0 1 4.5 5.7a2 2 0 0 1 2-2.2z'/%3E%3C/svg%3E")}
.firstrun-fx__glyph--phone{background:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6.5 3.5h3l1.5 4.5-2.2 1.4a11 11 0 0 0 5.8 5.8l1.4-2.2 4.5 1.5v3a2 2 0 0 1-2.2 2A17 17 0 0 1 4.5 5.7a2 2 0 0 1 2-2.2z'/%3E%3C/svg%3E") no-repeat center/contain;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6.5 3.5h3l1.5 4.5-2.2 1.4a11 11 0 0 0 5.8 5.8l1.4-2.2 4.5 1.5v3a2 2 0 0 1-2.2 2A17 17 0 0 1 4.5 5.7a2 2 0 0 1 2-2.2z'/%3E%3C/svg%3E") no-repeat center/contain}
.firstrun-fx__glyph--compass{background:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M15.5 8.5l-2 5-5 2 2-5z'/%3E%3C/svg%3E") no-repeat center/contain;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M15.5 8.5l-2 5-5 2 2-5z'/%3E%3C/svg%3E") no-repeat center/contain}
.firstrun-fx__glyph--message{background:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4c4.7 0 8.5 3 8.5 6.8s-3.8 6.7-8.5 6.7c-.9 0-1.8-.1-2.6-.3L5 19l1.1-3.4C4.5 14.4 3.5 12.7 3.5 10.8 3.5 7 7.3 4 12 4z'/%3E%3C/svg%3E") no-repeat center/contain;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4c4.7 0 8.5 3 8.5 6.8s-3.8 6.7-8.5 6.7c-.9 0-1.8-.1-2.6-.3L5 19l1.1-3.4C4.5 14.4 3.5 12.7 3.5 10.8 3.5 7 7.3 4 12 4z'/%3E%3C/svg%3E") no-repeat center/contain}
.firstrun-fx__glyph--music{background:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 18V6l10-2v12'/%3E%3Ccircle cx='6.5' cy='18' r='2.5'/%3E%3Ccircle cx='16.5' cy='16' r='2.5'/%3E%3C/svg%3E") no-repeat center/contain;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 18V6l10-2v12'/%3E%3Ccircle cx='6.5' cy='18' r='2.5'/%3E%3Ccircle cx='16.5' cy='16' r='2.5'/%3E%3C/svg%3E") no-repeat center/contain}
.firstrun-fx__waicon--camera{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 8h3l2-2.5h6L17 8h3v11H4z'/%3E%3Ccircle cx='12' cy='13' r='3.5'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 8h3l2-2.5h6L17 8h3v11H4z'/%3E%3Ccircle cx='12' cy='13' r='3.5'/%3E%3C/svg%3E")}
.firstrun-fx__waicon--mic{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='9' y='3.5' width='6' height='11' rx='3'/%3E%3Cpath d='M5.5 11.5a6.5 6.5 0 0 0 13 0M12 18v3'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='9' y='3.5' width='6' height='11' rx='3'/%3E%3Cpath d='M5.5 11.5a6.5 6.5 0 0 0 13 0M12 18v3'/%3E%3C/svg%3E")}
.firstrun-fx__waday{position:absolute;z-index:1;left:50%;top:300px;transform:translateX(-50%);padding:var(--space-4) var(--space-12);border-radius:var(--radius-control);
  background:var(--surface);box-shadow:var(--elevation-flat-shadow);font-family:-apple-system,system-ui,var(--font-language);font-size:var(--font-size-caption);color:var(--color-ink-secondary)}
.firstrun-fx__wacompose{position:absolute;z-index:1;left:-80px;right:-80px;bottom:0;height:58px;display:flex;align-items:center;gap:var(--space-12);padding:0 calc(80px + var(--space-14));
  background:var(--surface);border-top:1px solid var(--boundary-decorative)}
.firstrun-fx__waplus{font-family:-apple-system,system-ui,var(--font-language);font-size:var(--font-size-section-title);font-weight:var(--weight-regular);line-height:1;color:var(--ink)}
.firstrun-fx__wafield{flex:1;height:36px;border-radius:var(--radius-pill);border:1px solid var(--rule-strong);background:var(--surface)}
.firstrun-fx__wacompose .firstrun-fx__waicon{margin-left:0}
.firstrun-fx__wadim{position:absolute;z-index:1;top:0;bottom:0;left:-80px;right:-80px;background:var(--scrim);opacity:0}
.firstrun-fx__bubble{position:absolute;z-index:2;left:24px;top:86px;max-width:300px;padding:var(--space-8) var(--space-12);background:var(--surface);
  border-radius:var(--radius-control);border-top-left-radius:0;box-shadow:var(--elevation-flat-shadow);transform-origin:0 0;
  font-family:-apple-system,system-ui,var(--font-language);font-size:var(--font-size-body);line-height:1.38;color:var(--ink)}
.firstrun-fx__bubble::before{content:"";position:absolute;left:-8px;top:0;border-top:10px solid var(--surface);border-left:8px solid transparent}
.firstrun-fx__btext{display:block}
.firstrun-fx__btime{display:block;margin-top:2px;text-align:right;font-size:var(--font-size-label);color:var(--color-ink-secondary)}
.firstrun-fx__wamenu{position:absolute;z-index:3;left:24px;top:300px;width:230px;overflow:hidden;opacity:0;transform-origin:0 100%;
  border-radius:var(--radius-surface);background:var(--surface);box-shadow:var(--elevation-popover-shadow);font-family:-apple-system,system-ui,var(--font-language)}
.firstrun-fx__waitem{position:relative;display:flex;align-items:center;justify-content:space-between;height:46px;padding:0 var(--space-16);font-size:var(--font-size-body)}
.firstrun-fx__waitem+.firstrun-fx__waitem{border-top:1px solid var(--boundary-decorative)}
.firstrun-fx__wahl{position:absolute;inset:0;background:rgba(var(--ink-rgb),.08);opacity:0}
.firstrun-fx__waglyph{position:relative;width:20px;height:20px;background:var(--ink);-webkit-mask:no-repeat center/contain;mask:no-repeat center/contain}
.firstrun-fx__waglyph--reply{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l-5 5 5 5'/%3E%3Cpath d='M4 11h10a6 6 0 0 1 6 6v1'/%3E%3C/svg%3E");
  mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l-5 5 5 5'/%3E%3Cpath d='M4 11h10a6 6 0 0 1 6 6v1'/%3E%3C/svg%3E")}
.firstrun-fx__waglyph--forward{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 6l5 5-5 5'/%3E%3Cpath d='M20 11H10a6 6 0 0 0-6 6v1'/%3E%3C/svg%3E");
  mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 6l5 5-5 5'/%3E%3Cpath d='M20 11H10a6 6 0 0 0-6 6v1'/%3E%3C/svg%3E")}
.firstrun-fx__waglyph--copy{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linejoin='round'%3E%3Crect x='8' y='8' width='12' height='12' rx='2.5'/%3E%3Cpath d='M16 8V6a2 2 0 0 0-2-2H6a2 2 0 0 0-2 2v8a2 2 0 0 0 2 2h2'/%3E%3C/svg%3E");
  mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linejoin='round'%3E%3Crect x='8' y='8' width='12' height='12' rx='2.5'/%3E%3Cpath d='M16 8V6a2 2 0 0 0-2-2H6a2 2 0 0 0-2 2v8a2 2 0 0 0 2 2h2'/%3E%3C/svg%3E")}
.firstrun-fx__app{position:absolute;inset:0;overflow:hidden;border-radius:var(--radius-landing-stage);background:var(--bg);opacity:0;transform-origin:50% 50%}
.firstrun-fx__hist{position:absolute;inset:0}
.firstrun-fx__hist--big{opacity:0}
.firstrun-fx__hlist{position:absolute;left:0;right:0;top:0;padding:44px var(--space-16) 0}
/* History's head: search and the calendar at the top end, the title under them */
.firstrun-fx__htools{display:flex;justify-content:flex-end;gap:var(--space-26);height:44px;align-items:center;padding-right:var(--space-8);color:var(--color-ink)}
.firstrun-fx__htools .icon-mask{width:22px;height:22px}
.firstrun-fx__htitle{font-size:var(--font-size-title);font-weight:var(--weight-semibold);letter-spacing:-.02em}
.firstrun-fx__hmonth{display:flex;flex-wrap:wrap;align-items:baseline;gap:var(--space-4) var(--space-12);margin-top:var(--space-12)}
.firstrun-fx__hmonth b{font-size:var(--font-size-subtitle);font-weight:var(--weight-semibold)}
.firstrun-fx__hmonth span{font-size:var(--font-size-body-small);color:var(--color-ink-secondary)}
.firstrun-fx__hweek{margin:var(--space-18) 0 var(--space-8);padding:0 var(--space-16);font-size:var(--font-size-body-small);font-weight:var(--weight-medium);color:var(--color-ink-secondary)}
/* a week is one inset group on the surface; its rows divide with a hairline that starts at the content */
.firstrun-fx__hgroup{padding-left:var(--space-16);border-radius:var(--radius-surface);background:var(--surface)}
:root[data-theme="dark"] .firstrun-fx__hgroup{box-shadow:var(--boundary-card-hairline-shadow)}
.firstrun-fx__hrow{display:flex;align-items:center;gap:var(--space-12);padding:var(--space-12) var(--space-16) var(--space-12) 0}
.firstrun-fx__hrow+.firstrun-fx__hrow{border-top:1px solid var(--boundary-decorative)}
.firstrun-fx__hd1{display:flex;flex-direction:column;flex:0 0 40px;font-family:var(--font-training-data);font-size:var(--font-size-subtitle);font-weight:var(--weight-medium);line-height:var(--line-tight)}
.firstrun-fx__hd1 small{font-family:var(--font-language);font-size:var(--font-size-body-small);font-weight:var(--weight-regular);line-height:var(--line-standard);color:var(--color-ink-secondary)}
.firstrun-fx__hd2{display:block;flex:1;min-width:0}
.firstrun-fx__hd2 b{display:block;font-weight:var(--weight-medium)}
.firstrun-fx__hd2 small{display:block;font-size:var(--font-size-body-small);color:var(--color-ink-secondary)}
.firstrun-fx__hd3{display:flex;flex-wrap:wrap;align-items:center;gap:var(--space-4) var(--space-12);margin-top:var(--space-4);font-size:var(--font-size-body-small);color:var(--color-ink-secondary)}
.firstrun-fx__hd3 .verdictmark{font-size:inherit;font-weight:var(--weight-medium)}
.firstrun-fx__hd3 .verdictmark__glyph{width:14px;height:14px}
.firstrun-fx__hchev{flex:none;color:var(--color-ink-secondary)}
.firstrun-fx__hist--big .firstrun-fx__htitle{font-size:var(--font-size-display)}
.firstrun-fx__hist--big .firstrun-fx__hmonth b{font-size:var(--font-size-section-title)}
.firstrun-fx__hist--big .firstrun-fx__hrow,.firstrun-fx__hist--big .firstrun-fx__hweek{font-size:var(--font-size-subtitle)}
.firstrun-fx__hist--big .firstrun-fx__hd2 small,.firstrun-fx__hist--big .firstrun-fx__hd3,.firstrun-fx__hist--big .firstrun-fx__hmonth span{font-size:var(--font-size-body)}
.firstrun-fx__hist--big .firstrun-fx__hd1{font-size:var(--font-size-feature-title)}
.firstrun-fx__hist--big .firstrun-fx__hd1 small{font-size:var(--font-size-body)}
.firstrun-fx__band{position:absolute;left:0;right:0;top:0;height:46px;background:var(--bg)}
/* The app's bar on the app's dock material, 8 px above the dock. */
.firstrun-fx__mini.minibar{position:absolute;left:12px;right:12px;bottom:86px;width:auto;transform:none;z-index:1;cursor:default}
.firstrun-fx__minifill{transform:scaleX(.62)}
/* The list ends above the bar (its top is 148 px up) and fades out over its last 48 px, so no row or rule runs behind the
   bar or shows past its corners while the list scrolls under the clip. */
.firstrun-fx__hclip{position:absolute;left:0;right:0;top:0;bottom:156px;overflow:hidden;
  -webkit-mask-image:linear-gradient(180deg,var(--ink) calc(100% - 48px),transparent);mask-image:linear-gradient(180deg,var(--ink) calc(100% - 48px),transparent)}
.firstrun-fx--editor .firstrun-fx__title{top:68px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.firstrun-fx--editor .firstrun-fx__meta{top:108px}
.firstrun-fx--editor .firstrun-fx__swap{top:142px}
.firstrun-fx--editor .firstrun-fx__below{top:230px}
.firstrun-fx__hist--big .firstrun-fx__mini .minibar__title{font-size:var(--font-size-body)}
.firstrun-fx__hist--big .firstrun-fx__mini .minibar__sub{font-size:var(--font-size-body-small)}
.firstrun-fx__dock{position:absolute;z-index:1;left:12px;right:12px;bottom:14px;display:flex;height:64px;padding:4px;border-radius:var(--radius-pill);background:var(--dock-glass);
  backdrop-filter:var(--dock-blur);-webkit-backdrop-filter:var(--dock-blur);box-shadow:var(--elevation-nav-shadow);border:1px solid var(--dock-edge)}
.firstrun-fx__dock>span{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;border-radius:var(--radius-pill);
  font-size:var(--font-size-label);color:var(--color-ink-secondary)}
.firstrun-fx__dock>span.is-on{color:var(--accent);background:rgba(var(--ink-rgb),.05)}
.firstrun-fx__sbar{position:absolute;left:0;right:0;top:0;z-index:2;height:44px}
.firstrun-fx__sbar--light{color:var(--surface)}
.firstrun-fx__sbar--light .firstrun-fx__sig{background:linear-gradient(to right,var(--surface) 0 3.4px,transparent 3.4px 5.3px,var(--surface) 5.3px 8.7px,transparent 8.7px 10.6px,var(--surface) 10.6px 14px,transparent 14px 15.9px,var(--surface) 15.9px)}
.firstrun-fx__sbar--light .firstrun-fx__bat{border-color:rgba(var(--bg-rgb),.6)}
.firstrun-fx__sbar--light .firstrun-fx__bat::after{background:var(--surface)}
.firstrun-fx__time{position:absolute;left:34px;top:13px;font-size:var(--font-size-body-small);font-weight:var(--weight-semibold)}
.firstrun-fx__sig,.firstrun-fx__air{position:absolute;right:60px;top:15px;width:20px;height:13px}
.firstrun-fx__sig{background:linear-gradient(to right,var(--color-ink) 0 3.4px,transparent 3.4px 5.3px,var(--color-ink) 5.3px 8.7px,transparent 8.7px 10.6px,var(--color-ink) 10.6px 14px,transparent 14px 15.9px,var(--color-ink) 15.9px);
  clip-path:polygon(0 70%,100% 0,100% 100%,0 100%)}
.firstrun-fx__air{opacity:0;background:var(--color-ink);-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M21 16v-2l-8-5V3.5a1.5 1.5 0 0 0-3 0V9l-8 5v2l8-2.5V19l-2 1.5V22l3.5-1 3.5 1v-1.5L13 19v-5.5z'/%3E%3C/svg%3E") center/contain no-repeat;
  mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M21 16v-2l-8-5V3.5a1.5 1.5 0 0 0-3 0V9l-8 5v2l8-2.5V19l-2 1.5V22l3.5-1 3.5 1v-1.5L13 19v-5.5z'/%3E%3C/svg%3E") center/contain no-repeat}
.firstrun-fx__bat{position:absolute;right:26px;top:16px;width:25px;height:12px;box-sizing:border-box;border-radius:var(--radius-compact);border:1.2px solid rgba(var(--ink-rgb),.45)}
.firstrun-fx__bat::after{content:"";position:absolute;left:1px;top:1px;bottom:1px;width:15px;border-radius:var(--radius-compact);background:var(--color-ink)}

/* ---- Data: an ink band ---- */
.firstrun-data:focus{outline:none}
.firstrun-rows{list-style:none;margin-bottom:0;padding:0}
.firstrun-rows>li{padding-block:var(--firstrun-gap-3);border-top:1px solid var(--firstrun-rule)}
.firstrun-rows>li:last-child{border-bottom:1px solid var(--firstrun-rule)}
.firstrun-rows h3{margin:0;font-size:var(--font-size-subtitle);font-weight:var(--weight-semibold);line-height:var(--line-standard)}
.firstrun-rows p{margin:var(--firstrun-gap-1) 0 0;font-size:var(--font-size-body);line-height:var(--line-reading);color:var(--firstrun-ink-soft)}

/* ---- Questions ---- */
.firstrun-qa{border-top:1px solid var(--firstrun-rule)}
.firstrun-qa:last-of-type{border-bottom:1px solid var(--firstrun-rule)}
.firstrun-qa summary{
  list-style:none;display:flex;align-items:center;justify-content:space-between;gap:var(--firstrun-gap-2);min-height:56px;padding:var(--firstrun-gap-1) 0;
  font-size:var(--font-size-subtitle);font-weight:var(--weight-semibold);line-height:var(--line-standard);cursor:pointer;-webkit-tap-highlight-color:transparent;
}
.firstrun-qa summary::-webkit-details-marker{display:none}
.firstrun-qa__a{padding:0 0 var(--firstrun-gap-3);font-size:var(--font-size-body);line-height:var(--line-reading);color:var(--firstrun-ink-soft)}
.firstrun-qa__a>*+*{margin-top:var(--firstrun-gap-1)}
.firstrun-qa__a p{margin:0}
.firstrun-qa__a ol{margin:0;padding-left:20px}
.firstrun-qa__a b{color:var(--firstrun-ink);font-weight:var(--weight-semibold)}
.firstrun-share{margin:var(--firstrun-gap-2) 0;background:var(--surface);border:1px solid var(--firstrun-rule);border-radius:var(--radius-surface);overflow:hidden;color:var(--color-ink)}
.firstrun-share__row{display:flex;gap:12px;align-items:center;padding:14px;font-weight:var(--weight-semibold)}
.firstrun-share__row svg{width:22px;height:22px;flex:none}
.firstrun-share__cols{display:grid;grid-template-columns:1fr 1fr;border-top:1px solid var(--firstrun-rule)}
.firstrun-share__cols>div{padding:12px 14px}
.firstrun-share__cols>div+div{border-left:1px solid var(--firstrun-rule)}
.firstrun-share__cols .firstrun-label{color:var(--color-ink-secondary)}
.firstrun-share__cols ul{margin:6px 0 0;padding:0;list-style:none;font-size:var(--font-size-body-small)}

/* ---- Close: the orange field ---- */
.firstrun-close__body{color:var(--firstrun-ink)}
.firstrun-close__actions{margin-top:var(--firstrun-gap-4)}
.firstrun-close__actions .firstrun__actions{margin-top:0}
.firstrun.is-shared .firstrun-close__actions{display:none}

/* ---- The wide page (from 1100px) ----
   One container (--firstrun-container, its edges at the same x for the top bar, the hero and every band). The hero and
   the proof share the first screen on a subgrid of that container: the promise on the left, the whole workout screen
   playing on the right with its chapters beside it. The Build control is a bar across the top. Text-only bands keep
   their title in a third-wide column that holds while the content scrolls past it. */
@media(min-width:1100px){
  .firstrun__inner{--firstrun-container:calc(var(--maxw) * 2 + var(--space-32) * 5);--firstrun-top:calc(var(--space-32) * 2 + var(--firstrun-gap-4));
    position:relative;display:grid;
    grid-template-columns:[full-start] minmax(var(--gut),1fr) [content-start] minmax(0,calc(var(--firstrun-container) * .4)) [mid] minmax(0,calc(var(--firstrun-container) * .6)) [content-end] minmax(var(--gut),1fr) [full-end]}
  .firstrun__inner>*{grid-column:full}
  .firstrun .firstrun-wrap,.firstrun-proof .firstrun-wrap,.firstrun-features .firstrun-wrap{max-width:calc(var(--firstrun-container) + var(--gut) * 2)}
  .firstrun-ways__list{max-width:calc(var(--firstrun-container) + var(--gut) * 2)}
  /* the first screen */
  .firstrun-hero,.firstrun-hero+.firstrun-proof{grid-row:1;display:grid;grid-template-columns:subgrid;align-content:start;
    padding-top:var(--firstrun-top);padding-bottom:var(--firstrun-gap-3)}
  .firstrun-hero{grid-column:full-start/mid}
  .firstrun-proof{grid-column:mid/full-end}
  .firstrun-hero>.firstrun-wrap{grid-column:2;max-width:none;margin:0;padding:0 var(--firstrun-gap-3) 0 0}
  .firstrun-proof>.firstrun-wrap{grid-column:1;max-width:none;margin:0;padding:0 0 0 var(--firstrun-gap-4)}
  .firstrun-hero .firstrun__header{position:absolute;top:0;left:max(var(--gut),calc(50% - var(--firstrun-container) / 2));right:max(var(--gut),calc(50% - var(--firstrun-container) / 2))}
  .firstrun-hero .firstrun-hero__title{margin-top:0}
  /* the proof: one header block (its title and its sentence, at body size) over the phone and the stepper beside it.
     The phone is 360px wide, cropped from the screen's top to its shelf's fields (app.js sizes the frame). */
  .firstrun-proof>.firstrun-wrap{display:grid;grid-template-columns:auto minmax(0,1fr);grid-template-rows:auto auto 1fr;column-gap:var(--firstrun-gap-5);align-items:start;margin-top:var(--space-4)}
  .firstrun-hero .firstrun-hero__title{text-wrap:balance}
  .firstrun-proof .firstrun-chapter__go{white-space:nowrap}
  /* one header over the module: the kicker (the section's title stays for the outline, set aside visually) and the sentence */
  .firstrun-proof>.firstrun-wrap>.firstrun-h2{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
  .firstrun-proof .firstrun-kicker{display:block;grid-column:1/-1;grid-row:1;margin:0;font-size:var(--font-size-body-small);font-weight:var(--weight-semibold);
    line-height:var(--line-standard);letter-spacing:var(--track-label);text-transform:uppercase;color:var(--firstrun-ink)}
  .firstrun-proof .firstrun-wrap>.firstrun-sub{display:none}
  .firstrun-hero .firstrun__cta,.firstrun-close .firstrun__actions{max-width:calc(var(--maxw) * .72)}
  .firstrun-proof .firstrun-proof__stage{display:contents}
  .firstrun-proof .firstrun-proof__device{grid-column:1;grid-row:3;margin-top:var(--firstrun-gap-2);--proof-crop:next;--proof-crop-inset:0;--proof-crop-pad:var(--space-26);width:380px;background:var(--bg);
    box-shadow:var(--elevation-landing-device-shadow)}
  .firstrun-proof .firstrun-chapters{grid-column:2;grid-row:3;align-self:start;margin-top:var(--firstrun-gap-2)}
  /* the open row: a muted track the row's height (inset from its corners) with the played share filled in orange */
  .firstrun-chapter.is-current::before,.firstrun-feat__tab.is-current::before{left:var(--space-4);top:var(--space-12);bottom:var(--space-12);width:3px;border-radius:var(--radius-pill);background:var(--accent)}
  .firstrun-proof .firstrun-chapter__text,.firstrun-feat__tab.is-current .firstrun-feat__text{font-size:var(--font-size-body)}
  /* a closed row switches the picture: a hover surface and a trailing chevron, not a disclosure's + */
  .firstrun-chapter:not(.is-current) .firstrun-chapter__go:hover,.firstrun-feat__tab:not(.is-current):hover{background:color-mix(in srgb,var(--firstrun-ink) 6%,transparent)}
  .firstrun-chapter__go{font-size:var(--font-size-body)}
  .firstrun-chapter__go,.firstrun-feat__tab .firstrun-feat__title{font-weight:var(--weight-regular)}
  .firstrun-chapter.is-current .firstrun-chapter__go,.firstrun-feat__tab.is-current .firstrun-feat__title{font-weight:var(--weight-semibold)}
  .firstrun-chapter__go,.firstrun-feat__tab{padding-left:var(--space-16)}
  /* the Build control: a bar across the top, the lockup on the left, a compact action on the right */
  .firstrun-dock{--firstrun-dock-at:top;top:0;bottom:auto;display:flex;align-items:center;justify-content:space-between;gap:var(--space-16);
    padding:var(--space-8) max(var(--gut),calc(50% - var(--firstrun-container) / 2));border-top:0;border-bottom:1px solid var(--band-night-rule);transform:translateY(-100%)}
  .firstrun-dock[data-ground="light"]{border-bottom-color:var(--rule-strong)}
  /* the first screen is one night: the proof shares the hero's ground beside it */
  .firstrun-hero+.firstrun-proof{--firstrun-band-bg:var(--band-night-bg)}
  .firstrun-dock__brand{display:flex}
  /* the hero's tile, inverted on the light bar: a dark tile with the light mark */
  .firstrun-dock__brand .firstrun__logo{filter:invert(1)}
  .firstrun-dock[data-ground="dark"] .firstrun-dock__brand .firstrun__logo{filter:none}
  .firstrun-dock{box-shadow:none}
  .firstrun-dock .firstrun__cta{width:auto;max-width:none;min-height:var(--control-target);margin:0;padding:var(--space-8) var(--space-18)}
  /* title beside content */
  :is(.firstrun-check,.firstrun-data,.firstrun-faq)>.firstrun-wrap{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,2fr);column-gap:var(--firstrun-gap-8);align-items:start}
  .firstrun-close>.firstrun-wrap{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);column-gap:var(--firstrun-gap-8);align-items:start}
  :is(.firstrun-check,.firstrun-data,.firstrun-faq,.firstrun-close)>.firstrun-wrap>*{grid-column:2}
  :is(.firstrun-check,.firstrun-data,.firstrun-faq,.firstrun-close)>.firstrun-wrap>:first-child{grid-column:1;grid-row:1/span 6;margin-top:0;
    position:sticky;top:calc(var(--space-32) * 2 + var(--firstrun-gap-3))}
  :is(.firstrun-check,.firstrun-data,.firstrun-faq,.firstrun-close)>.firstrun-wrap>:nth-child(2){margin-top:0}
  .firstrun-close__title{margin-top:calc(var(--space-8) * -1)}
  /* the closing band: the line under the headline in its column, the actions beside them */
  .firstrun-close>.firstrun-wrap{display:grid;grid-template-columns:minmax(0,1fr) calc(var(--maxw) * .72);column-gap:var(--firstrun-gap-8);align-items:center}
  .firstrun-close>.firstrun-wrap>.firstrun-close__title{grid-column:1;grid-row:1;position:static;align-self:end}
  .firstrun-close>.firstrun-wrap>.firstrun-close__body{grid-column:1;grid-row:2;margin-top:var(--firstrun-gap-2);align-self:start}
  .firstrun-close>.firstrun-wrap>.firstrun-close__actions{grid-column:2;grid-row:1/span 2;margin-top:0;align-self:center}
  /* a reading measure */
  .firstrun-rows p,.firstrun-qa__a,.firstrun-way p{max-width:65ch}
  .firstrun-check .firstrun-sub{max-width:65ch;font-size:var(--font-size-body)}
  /* the closing band: the secondary is a content-width ghost under the full-width primary */
  .firstrun-dock::before{content:none}
  .firstrun-rows{margin-top:0}
  /* the three ways side by side, each under its own hairline, their links on one line */
  .firstrun-ways__list{grid-template-columns:repeat(3,minmax(0,1fr));column-gap:var(--firstrun-gap-4);align-items:stretch}
  .firstrun-way:last-child{border-bottom:0}
  /* the three grounds as tiles inside the container */
  .firstrun .firstrun-way{margin-inline:0;padding:var(--firstrun-gap-3)}
  .firstrun-way p{flex:0 0 auto}
  /* the paste hand-off: one disclosure row under all three */

  /* the feature list: the stepper rows, held beside a preview capped to the screen */
  .firstrun-feat{align-items:start}
  .firstrun-feat__side{position:sticky;top:calc(var(--space-32) * 2 + var(--firstrun-gap-3))}
  .firstrun-feat__panel{height:640px;width:488px;justify-self:end}
  .firstrun .firstrun-feat{grid-template-columns:minmax(0,520px) minmax(0,1fr);align-items:start}
  .firstrun-feat__side{align-self:start;margin-top:0}
  /* the paste hand-off, a full-width row under the three columns */


  /* the left-column titles meet the first row's text */
  .firstrun .firstrun-h2{font-size:var(--font-size-display);letter-spacing:-.02em}
  .firstrun-hero .firstrun-h1{letter-spacing:-.025em}
  .firstrun-data .firstrun-rows>li:first-child{border-top:0;padding-top:0}
  .firstrun-hero .firstrun-hero__data{max-width:56ch}
  .firstrun-proof .firstrun-demo__next>span:first-child{display:block;white-space:nowrap;text-overflow:ellipsis}
  /* each left title's cap line meets the first text row of its column */
  .firstrun-check .firstrun-wrap>.firstrun-h2{margin-top:calc(var(--firstrun-gap-2) - var(--space-12))}
  .firstrun-data .firstrun-wrap>.firstrun-h2{margin-top:calc(var(--space-8) * -1)}
  .firstrun-faq .firstrun-wrap>.firstrun-h2{margin-top:var(--space-4)}
  /* reading sizes for a desk distance */
  .firstrun-sub,.firstrun-check__examples,.firstrun-way p,.firstrun-rows p,.firstrun-qa__a,
  .firstrun-feat__tab.is-current .firstrun-feat__text{font-size:var(--font-size-subtitle)}
  .firstrun-hero__data,.firstrun-chips,.firstrun-footer .firstrun-wrap,.firstrun-seeing{font-size:var(--font-size-body)}
}

/* @ci-domain global */
/* ---- Install, continue and footer ---- */
.firstrun__section{width:min(100%,var(--maxw));margin:var(--firstrun-gap-5) auto 0}
.firstrun__continue{
  display:flex;align-items:center;justify-content:center;gap:12px;
  width:min(100%,var(--maxw));margin:var(--firstrun-gap-3) auto var(--firstrun-gap-5);padding:12px;min-height:var(--control-target);
  background:none;border:0;cursor:pointer;font:inherit;font-size:var(--font-size-control);font-weight:var(--weight-medium);color:var(--color-ink);
}
.firstrun__continue.hidden{display:none}
/* The footer keeps the Build bar's height clear at the foot of the scroll. */
.firstrun-footer{padding-block:0;padding-bottom:env(safe-area-inset-bottom)}
.firstrun-footer .firstrun-wrap{
  display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;padding-block:var(--firstrun-gap-3);
  color:var(--firstrun-ink-soft);font-size:var(--font-size-body-small);
}
.firstrun-footer__brand .firstrun__logo{width:24px;height:24px}
.firstrun-footer__brand .firstrun__wordmark{font-size:var(--font-size-body)}
.firstrun-footer .firstrun-footer__links a{color:var(--firstrun-ink)}
.firstrun-footer__links{display:flex;gap:var(--firstrun-gap-2)}
.firstrun-footer>.firstrun-wrap>*+*{margin-top:0}
.firstrun-footer a{
  display:inline-flex;align-items:center;justify-content:center;min-width:var(--control-target);min-height:var(--control-target);
  color:inherit;text-decoration:underline;text-underline-offset:4px;
}
@media(prefers-reduced-motion:reduce){
  .firstrun *,.firstrun *::before,.firstrun *::after{animation-duration:.01ms !important;transition-duration:.01ms !important}
}
@media(forced-colors.is-pressed){
  .firstrun__cta{border:1px solid ButtonText}
  .firstrun-dock .firstrun__cta{border:1px solid ButtonText}
  .firstrun-proof__glass{outline-color:CanvasText}
}

/* The install card. It bleeds to the edge of the setup column, which is the
   screen on a phone. It is an orange field like the page's orange bands. */
.installcard{
  display:grid;grid-template-columns:auto 1fr;gap:20px 22px;align-items:start;
  margin:20px 0 0;
  padding:28px var(--firstrun-pad) 24px;background:var(--accent-deep);color:var(--accent-ink);
}
.installcard__icon{flex:none;display:block;width:56px;height:56px;color:var(--accent-ink)}
.installcard__text{min-width:0}
.installcard__title{margin:0;font-size:var(--font-size-section-title);font-weight:var(--weight-semibold);letter-spacing:-0.01em;color:var(--accent-ink)}
.installcard__body{margin:8px 0 0;font-size:var(--font-size-control);line-height:1.4;color:var(--accent-ink)}
.installcard__action{grid-column:1/-1;border-radius:0}

/* The iOS instruction sheet. Safari exposes no install event, so the only thing
   Taurifer can do is point at Safari's own control: the bar below is a drawing
   of it, never a live control. */
.sheet--install{height:auto;background:var(--bg)}
.sheet--setup{height:auto;max-height:min(74dvh,660px)}
.sheet--setup .sheet__title{overflow-wrap:anywhere}
.sheet--setup .sheet__foot--actions{flex-wrap:wrap}
/* The side-by-side actions grow into separate rows with the user's text scale. */
.sheet--setup .sheet__foot--actions .btn{flex:1 1 8.75em}
/* Enlarged text (Plan 086 slice 1b, owner 2026-11-26): pinned, the band and the action bar take the whole height
   on a short phone and the body gets none, as the Portuguese title already does at 320 × 568 and 200%. The band,
   body and actions then scroll as one column, and the title steps down one size. app.js sets .is-text-scaled on
   open from the root text size; normal text keeps the pinned layout. */
.sheet--setup.is-text-scaled{overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
.sheet--setup.is-text-scaled > .sheetband,.sheet--setup.is-text-scaled > .sheet__body,.sheet--setup.is-text-scaled > .sheet__foot{flex:none}
.sheet--setup.is-text-scaled > .sheet__body{overflow:visible}
.sheet--setup.is-text-scaled .sheetband__title{font-size:var(--font-size-subtitle);overflow-wrap:break-word}
.share-setup{
  flex-direction:column;gap:14px;overflow:auto;overscroll-behavior:contain;
  -webkit-overflow-scrolling:touch;padding-bottom:8px;
}
/* The sheet leads with what the link carries; the encoded link is a detail. It shows on one quiet line, cut with an
   ellipsis, still whole in the document: selectable, and read in full by assistive technology. Share and Copy link
   are how it leaves the sheet. */
.share-setup__scope{margin:0;font-size:var(--font-size-body);line-height:var(--line-reading);color:var(--color-ink);overflow-wrap:anywhere}
.share-setup__link{
  margin:0;min-width:0;padding:0;border:0;background:none;
  overflow:hidden;white-space:nowrap;text-overflow:ellipsis;
  font-family:var(--font-training-data);font-size:var(--font-size-caption);line-height:var(--line-standard);color:var(--color-ink-secondary);
  -webkit-user-select:text;user-select:text;}
.share-setup__link:focus-visible{outline:var(--control-focus-outline);outline-offset:2px;border-radius:var(--radius-compact)}
.share-setup__link:empty{display:none}
.share-setup__blocker-summary{margin:0;font-size:var(--font-size-body-small);line-height:var(--line-reading);font-weight:var(--weight-semibold);color:var(--color-warning);overflow-wrap:anywhere}
.share-setup__blockers{display:flex;flex-direction:column;gap:0;border-block:1px solid var(--boundary-decorative)}
.share-setup__blocker{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 0}
.share-setup__blocker+.share-setup__blocker{border-top:1px solid var(--boundary-decorative)}
.share-setup__blocker-copy{display:flex;min-width:0;flex:1;flex-direction:column;gap:3px;line-height:var(--line-reading)}
.share-setup__blocker-copy strong{font-size:var(--font-size-body);line-height:var(--line-standard);font-weight:var(--weight-semibold);color:var(--color-ink);overflow-wrap:anywhere}
.share-setup__blocker-copy span{font-size:var(--font-size-body-small);line-height:var(--line-reading);color:var(--color-ink-secondary);overflow-wrap:anywhere}
.share-setup__repair{flex:none;min-height:var(--control-target);padding-inline:14px}
.share-setup__status{margin:0;font-size:var(--font-size-body-small);line-height:var(--line-reading);color:var(--color-ink-secondary);overflow-wrap:anywhere}
.share-setup__status:empty{display:none}
/* The relay (Plan 086 slice 2, approved mocks in docs/design/trainer-loop-app). The QR code stays dark on white in
   both themes, because cameras read dark modules on a light ground. */
.share-setup__qr{align-self:center;display:block;width:min(212px,64vw);aspect-ratio:1;padding:10px;border-radius:var(--radius-control);
  background:var(--qr-plate);border:1px solid var(--boundary-decorative)}
.share-setup__qr svg{display:block;width:100%;height:100%}
.share-setup__caption{margin:0;font-size:var(--font-size-body-small);line-height:var(--line-reading);color:var(--color-ink-secondary);overflow-wrap:anywhere}
.share-setup__caption--center{text-align:center}
.share-setup__warn{margin:0;font-size:var(--font-size-body-small);line-height:var(--line-reading);font-weight:var(--weight-semibold);color:var(--color-warning);overflow-wrap:anywhere}
.share-setup__status--busy{display:flex;align-items:center;gap:var(--space-12);min-height:var(--control-target)}
.share-setup__status--busy::before{content:"";flex:none;width:18px;height:18px;border:2px solid var(--rule-strong);border-top-color:var(--ink);border-radius:50%;
  animation:share-setup-spin .9s linear infinite}
@keyframes share-setup-spin{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:reduce){.share-setup__status--busy::before{animation:none}}
.share-setup__who{margin:0;border-block:1px solid var(--boundary-decorative)}
.share-setup__who .listrow__main{display:flex;flex-direction:column;min-width:0}
.share-setup__who .listrow__title,.share-setup__who .listrow__sub{white-space:normal;overflow:visible;text-overflow:clip}
.share-setup__who .chevron{transform:rotate(90deg)}
.share-setup__who[aria-expanded="true"] .chevron{transform:rotate(-90deg)}
.share-setup__fields{display:flex;flex-direction:column;gap:14px}
.share-setup__field{margin:0}
.share-setup__field input,.share-setup__field textarea{display:block;font-weight:400;text-transform:none;letter-spacing:normal}
.share-setup__field textarea{min-height:84px}
.share-setup__retry{align-self:flex-start}
/* A program update from a trainer (Plan 086 slice 3, approved mocks update and update-draft): one row per changed
   exercise, the old value struck, the new one in training figures; the history sentence sits on the action bar,
   above the stacked Use the update and Keep my current program. */
.relay-update__lead{margin:0;font-size:var(--font-size-body);line-height:var(--line-reading);color:var(--color-ink);overflow-wrap:anywhere}
.relay-update__diff{display:flex;flex-direction:column;border-block:1px solid var(--boundary-decorative)}
.relay-update__row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:var(--space-4) var(--space-12);padding:var(--space-12) 0}
.relay-update__row+.relay-update__row{border-top:1px solid var(--boundary-decorative)}
.relay-update__day{grid-column:1/-1;margin:0;font-size:var(--font-size-caption);color:var(--color-ink-secondary)}
.relay-update__name{margin:0;font-size:var(--font-size-body);font-weight:var(--weight-semibold);line-height:var(--line-standard);color:var(--color-ink);overflow-wrap:anywhere}
.relay-update__tag{align-self:start;font-size:var(--font-size-caption);line-height:var(--line-standard);color:var(--color-ink-secondary)}
.relay-update__was{grid-column:1/-1;margin:0;font-size:var(--font-size-body-small);line-height:var(--line-reading);color:var(--color-ink-secondary);overflow-wrap:anywhere}
.relay-update__was s{text-decoration-thickness:1px}
.relay-update__now{grid-column:1/-1;margin:0;font-family:var(--font-training-data);font-size:var(--font-size-body-small);line-height:var(--line-reading);color:var(--color-ink)}
.relay-update__quote-label{margin:0 0 var(--space-4);font-size:var(--font-size-caption);line-height:var(--line-standard);color:var(--color-ink-secondary)}
.relay-update__quote{margin:0;padding:0 0 0 var(--space-12);border-left:2px solid var(--rule-strong);white-space:pre-line;
  font-size:var(--font-size-body);line-height:var(--line-reading);color:var(--color-ink);overflow-wrap:anywhere}
.relay-update__see-all{align-self:flex-start}
.sheet--setup .relay-update__foot{flex-direction:column;align-items:stretch}
.sheet--setup .relay-update__foot .btn{flex:none;width:100%}
.relay-update__note{margin:0 0 var(--space-4)}
/* Sending sessions to a trainer (Plan 086 slice 4, approved mocks send-*). What goes and what stays are two short
   lists, an ink check and a quiet dash. The link-ready state puts Copy and Share side by side, as the Share sheet does. */
.relay-send__list{list-style:none;margin:0;padding:0;display:grid;gap:var(--space-8)}
.relay-send__list li{display:grid;grid-template-columns:20px minmax(0,1fr);gap:var(--space-8);align-items:start;
  font-size:var(--font-size-body);line-height:var(--line-reading);color:var(--color-ink);overflow-wrap:anywhere}
.relay-send__list li .icon-mask{width:20px;height:20px;margin-top:.15em}
.relay-send__list--stays li{color:var(--color-ink-secondary)}
.relay-send__label{margin:var(--space-8) 0 0}
.installsheet{
  display:flex;flex-direction:column;min-height:0;overflow-y:auto;overscroll-behavior:contain;
  -webkit-overflow-scrolling:touch;padding:0 22px 20px;
}
.installsheet__foot{margin:14px 0 0;text-align:center;font-family:var(--font-language);
  font-size:var(--font-size-caption);line-height:var(--line-standard);color:var(--color-ink-secondary)}
.install-transfer__intro{margin-top:20px}
.install-transfer__body,.install-transfer__status,.install-transfer__expiry{
  margin:0;font-family:var(--font-language);font-size:var(--font-size-body-small);
  line-height:var(--line-reading);color:var(--color-ink-secondary);overflow-wrap:anywhere;
}
.install-transfer__status:not(:empty){margin-top:16px;padding-left:14px;border-left:3px solid var(--color-action);color:var(--color-ink)}
.install-transfer__expiry{margin-top:8px;font-size:var(--font-size-caption);color:var(--color-ink-secondary)}
.install-transfer__disclosure{margin-top:16px;padding:14px 16px;background:var(--well);
  border:0;border-radius:var(--radius-surface)}
.install-transfer__disclosure p{margin:0;font-family:var(--font-language);font-size:var(--font-size-body-small);
  line-height:var(--line-reading);color:var(--color-ink-secondary)}
/* A text action: the kit's link-style button, no box. It had no base rule, so it fell back to the platform's grey
   button chrome. */
.textlink{display:inline-flex;align-items:center;min-height:var(--control-target);padding:0;border:0;background:none;
  color:var(--color-action-text);font:inherit;font-weight:var(--weight-semibold);text-align:left;cursor:pointer}
.textlink:focus-visible{outline:var(--control-focus-outline);outline-offset:2px;border-radius:var(--radius-compact)}
.install-transfer__disclosure .textlink{margin-top:10px}
.install-transfer__actions{display:grid;gap:10px;margin-top:18px}
.install-transfer__actions .btn{width:100%;justify-content:center}
.sheet--privacy{background:var(--bg)}
/* The band's subtitle carries the transfer exception to local-first, so it wraps instead of eliding (ADR 0013). */
.privacy-sheet{display:flex;flex:1 1 auto;flex-direction:column;min-height:0;padding:0 22px 20px}
.privacy-sheet__body{min-height:0;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding:8px 2px 24px}
.privacy-sheet__body h3{margin:14px 0 8px;font-family:var(--font-language);font-size:var(--font-size-subtitle);font-weight:var(--weight-semibold);line-height:var(--line-tight);color:var(--color-ink)}
.privacy-sheet__body p{margin:0 0 14px;font-family:var(--font-language);font-size:var(--font-size-body-small);line-height:var(--line-reading);color:var(--color-ink-secondary)}

/* "Why this weight?" — the arithmetic behind one recommendation, opened on tap.
   Rows are a hairline-separated stack so each fact reads as its own line: last
   session, what it showed, the rule that fired, the load, the reps. Tokens only,
   so the dark appearance is a variable swap and not a second palette (ADR 0009). */
.sheet--why{height:auto;max-height:calc(var(--vvh,100dvh) - 56px)}
.whysheet{
  display:flex;flex-direction:column;min-height:0;overflow-y:auto;overscroll-behavior:contain;
  -webkit-overflow-scrolling:touch;padding:0 var(--space-16) var(--space-16);
}
/* The headline: the verdict mark and the load the engine asks for, in the subtitle role. */
.whysheet__target{
  display:flex;align-items:flex-start;gap:var(--space-8);margin:0;
  font-family:var(--font-language);font-size:var(--font-size-subtitle);font-weight:var(--weight-semibold);line-height:var(--line-standard);color:var(--color-ink);
}
.whysheet__target .verdictmark__glyph{width:20px;height:20px;margin-top:3px}
#whySheet #whyDecision{margin:var(--space-4) 0 0;font-family:var(--font-language);font-size:var(--font-size-body-small);line-height:var(--line-reading);color:var(--color-ink-secondary)}
.whysheet__body{margin-top:var(--space-8);border-top:1px solid var(--boundary-decorative)}
/* One sentence per block, under a bold lead, on one hairline. */
.whysheet__block{padding:var(--space-12) 0;border-bottom:1px solid var(--boundary-decorative)}
.whysheet__lead{display:block;font-family:var(--font-language);font-size:var(--font-size-body);font-weight:var(--weight-semibold);line-height:var(--line-standard);color:var(--color-ink)}
.whysheet__text{margin:var(--space-4) 0 0;font-family:var(--font-language);font-size:var(--font-size-body);line-height:var(--line-reading);color:var(--color-ink)}
.whysheet__lab{margin:0 0 var(--space-4);font-family:var(--font-language);font-size:var(--font-size-body-small);line-height:var(--line-standard);color:var(--color-ink-secondary)}
/* The working is one tap away, never in the way. */
.whysheet__disc{
  display:flex;align-items:center;justify-content:space-between;gap:var(--space-12);width:100%;min-height:var(--control-target);margin:0;padding:var(--space-12) 0;
  background:var(--control-disclosure-bg);border:0;border-bottom:1px solid var(--boundary-decorative);border-radius:var(--radius-none);cursor:pointer;text-align:left;
  font-family:var(--font-language);font-size:var(--font-size-control);font-weight:var(--weight-semibold);line-height:var(--line-standard);color:var(--control-disclosure-ink);
}
@media (hover: hover) and (pointer: fine){
.whysheet__disc:hover:not(:disabled){background:var(--well);color:var(--control-disclosure-ink)}
}
.whysheet__disc.is-pressed:not(:disabled){background:var(--row-pressed-bg);color:var(--control-disclosure-ink);transform:var(--control-pressed-transform)}
.whysheet__disc:focus-visible{outline:var(--control-focus-outline);outline-offset:2px}
.whysheet__disc:disabled{background:var(--control-disclosure-bg);color:var(--color-disabled-reason);opacity:1;cursor:not-allowed;transform:none}
.whycalc{display:none;padding:var(--space-4) 0 var(--space-8);border-bottom:1px solid var(--boundary-decorative)}
.whycalc.is-open{display:block}
.whycalc__group{margin:var(--space-12) 0 var(--space-4);font-family:var(--font-language);font-size:var(--font-size-label);font-weight:var(--weight-semibold);line-height:var(--line-standard);letter-spacing:var(--track-label);text-transform:uppercase;color:var(--color-ink-secondary)}
.whycalc__row{display:grid;grid-template-columns:minmax(0,auto) minmax(0,1fr);column-gap:var(--space-12);align-items:baseline;padding:var(--space-8) 0;border-bottom:1px solid var(--boundary-decorative)}
.whycalc__row:last-child{border-bottom:0}
.whycalc__k{font-family:var(--font-language);font-size:var(--font-size-body-small);line-height:var(--line-standard);color:var(--color-ink-secondary)}
.whycalc__v{text-align:right;font-family:var(--font-training-data);font-size:var(--font-size-body-small);line-height:var(--line-standard);color:var(--color-ink);overflow-wrap:anywhere}
.whycalc__v em{margin-left:var(--space-8);font-style:normal;color:var(--color-ink-secondary)}
.whycalc__sub{grid-column:1 / -1;margin-top:var(--space-4);font-family:var(--font-language);font-size:var(--font-size-body-small);line-height:var(--line-reading);color:var(--color-ink-secondary)}
.whycalc__row--sum .whycalc__k,.whycalc__row--sum .whycalc__v{font-weight:var(--weight-semibold);color:var(--color-ink)}
.whycalc__text{margin:var(--space-8) 0 0;font-family:var(--font-language);font-size:var(--font-size-body-small);line-height:var(--line-reading);color:var(--color-ink-secondary)}
.whysheet__evidence{margin:var(--space-12) 0 0;font-family:var(--font-language);font-size:var(--font-size-body-small);line-height:var(--line-reading);color:var(--color-ink-secondary)}
/* The affordance itself: a quiet text link under the recommendation, never a
   button that competes with logging a set. */
.recblock__why,.focus-ex__why,#exDetail .recblock .link-accent{font-size:var(--font-size-body-small);padding:6px 0 0}
.focus-ex__why{display:block}

/* One row, the way iOS draws it now: back on the left, the address pill in the
   middle, and the ••• menu on the right of the pill — the control step 01 asks
   for. Anything Safari keeps behind that menu (share, tabs, bookmarks) is not
   drawn, because it is not what the lifter has to find. */
.safaribar{
  display:flex;align-items:center;gap:8px;
  /* The top padding is the room the TAP label sits in, above the ••• circle. */
  margin-top:22px;padding:28px 12px 12px;border:1px solid var(--boundary-decorative);
  border-radius:var(--radius-surface);background:var(--color-surface);
}
.safaribar__url{
  display:flex;flex:1;min-width:0;align-items:center;gap:8px;padding:10px 14px;border-radius:var(--radius-pill);background:var(--rule);
}
.safaribar__page,.safaribar__reload,.safaribar__tool{
  flex:none;background:var(--color-ink-secondary);
  -webkit-mask:no-repeat center/contain;mask:no-repeat center/contain;
}
.safaribar__page{width:15px;height:15px;background:var(--color-ink);
  -webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='13' rx='2'/%3E%3Cpath d='M6.5 8h11'/%3E%3Cpath d='M6.5 12h7'/%3E%3Cpath d='M8 20h8'/%3E%3C/svg%3E");
  mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='13' rx='2'/%3E%3Cpath d='M6.5 8h11'/%3E%3Cpath d='M6.5 12h7'/%3E%3Cpath d='M8 20h8'/%3E%3C/svg%3E");
}
.safaribar__host{
  flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
  font-family:var(--font-language);font-size:var(--font-size-body-small);line-height:var(--line-standard);color:var(--color-ink);
}
.safaribar__reload{width:15px;height:15px;
  -webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 12a8 8 0 1 1-2.3-5.6'/%3E%3Cpath d='M20 4v5h-5'/%3E%3C/svg%3E");
  mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 12a8 8 0 1 1-2.3-5.6'/%3E%3Cpath d='M20 4v5h-5'/%3E%3C/svg%3E");
}
.safaribar__side{flex:none;display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;border-radius:var(--radius-round);background:var(--boundary-decorative)}
.safaribar__tool{width:20px;height:20px}
.safaribar__tool--back{background:var(--color-ink-secondary);-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 5l-7 7 7 7'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 5l-7 7 7 7'/%3E%3C/svg%3E")}
.safaribar__target{position:relative}
.safaribar__target::before{
  content:"";position:absolute;inset:0;border:2px solid var(--color-focus);border-radius:var(--radius-round);
}
.safaribar__tool--more{
  width:auto;height:auto;background:none;-webkit-mask:none;mask:none;
  font-family:var(--font-language);font-size:var(--font-size-caption);letter-spacing:.06em;color:var(--color-ink);line-height:var(--line-tight);
}
.safaribar__tap{
  position:absolute;bottom:calc(100% + 4px);left:50%;transform:translateX(-50%);
  font-family:var(--font-language);font-size:var(--font-size-label);font-weight:var(--weight-semibold);
  line-height:var(--line-standard);letter-spacing:.12em;text-transform:uppercase;color:var(--color-ink);
}

.installsteps{list-style:none;margin:24px 0 0;padding:0;border-top:1px solid var(--boundary-decorative)}
.installsteps__step{display:flex;align-items:baseline;gap:20px;padding:16px 2px;border-bottom:1px solid var(--boundary-decorative)}
.installsteps__n{flex:none;font-family:var(--font-training-data);font-size:var(--font-size-caption);
  font-weight:var(--weight-semibold);line-height:var(--line-standard);color:var(--color-action-text)}
.installsteps__body{flex:1;min-width:0;font-family:var(--font-language);font-size:var(--font-size-body);
  line-height:var(--line-standard);color:var(--color-ink-secondary)}
.installsteps__body b{color:var(--color-ink);font-weight:var(--weight-semibold)}
/* A short screen still has to fit the instructions without a scroll inside
   the sheet. */
@media (max-height:700px){
  .installsheet{padding:0 18px 16px}
  .safaribar{margin-top:16px;padding:24px 10px 10px}
  .installsteps{margin-top:16px}
  .installsteps__step{padding:10px 2px}
}
@media (max-width:340px){
  .installsheet,.privacy-sheet{padding-left:16px;padding-right:16px}
  .safaribar{padding-left:8px;padding-right:8px;gap:5px}
  .safaribar__side{width:34px;height:34px}
  .installsteps__step{gap:12px}
}

/* Recommend, Custom, Browse, Build, and shared-link proposals use the same
   frozen entry-control and review composition. */
#onboarding:has(:is(#onbBody.entry-route--recommend, #onbBody.entry-route--custom, #onbBody.entry-route--browse, #onbBody.entry-route--build, #onbBody.entry-route--shared, #onbBody.entry-route--hub)) #onbCancel,
#onboarding:has(:is(#onbBody.entry-route--recommend, #onbBody.entry-route--custom, #onbBody.entry-route--browse, #onbBody.entry-route--build, #onbBody.entry-route--shared, #onbBody.entry-route--hub)) #onbBack{
  background:var(--control-quiet-bg);color:var(--control-quiet-ink);
  border-color:var(--control-quiet-boundary)
}
@media (hover: hover) and (pointer: fine){
#onboarding:has(:is(#onbBody.entry-route--recommend, #onbBody.entry-route--custom, #onbBody.entry-route--browse, #onbBody.entry-route--build, #onbBody.entry-route--shared, #onbBody.entry-route--hub)) #onbCancel:hover,
#onboarding:has(:is(#onbBody.entry-route--recommend, #onbBody.entry-route--custom, #onbBody.entry-route--browse, #onbBody.entry-route--build, #onbBody.entry-route--shared, #onbBody.entry-route--hub)) #onbBack:hover:not(:disabled){
  background:var(--well);color:var(--control-quiet-ink);
  border-color:var(--control-quiet-boundary)
}
}
#onboarding:has(:is(#onbBody.entry-route--recommend, #onbBody.entry-route--custom, #onbBody.entry-route--browse, #onbBody.entry-route--build, #onbBody.entry-route--shared, #onbBody.entry-route--hub)) #onbCancel.is-pressed:not(:disabled),
#onboarding:has(:is(#onbBody.entry-route--recommend, #onbBody.entry-route--custom, #onbBody.entry-route--browse, #onbBody.entry-route--build, #onbBody.entry-route--shared, #onbBody.entry-route--hub)) #onbBack.is-pressed:not(:disabled){
  background:var(--row-pressed-bg);color:var(--control-quiet-ink);
  border-color:var(--control-quiet-boundary)
}
#onboarding:has(:is(#onbBody.entry-route--recommend, #onbBody.entry-route--custom, #onbBody.entry-route--browse, #onbBody.entry-route--build, #onbBody.entry-route--shared, #onbBody.entry-route--hub)) #onbBack.is-pressed:not(:disabled),
#onboarding:has(:is(#onbBody.entry-route--recommend, #onbBody.entry-route--custom, #onbBody.entry-route--browse, #onbBody.entry-route--build, #onbBody.entry-route--shared, #onbBody.entry-route--hub)) #onbCancel.is-pressed:not(:disabled),
#onboarding:has(:is(#onbBody.entry-route--recommend, #onbBody.entry-route--custom, #onbBody.entry-route--browse, #onbBody.entry-route--build, #onbBody.entry-route--shared, #onbBody.entry-route--hub)) #onbNext.is-pressed:not(:disabled){
  transform:var(--control-pressed-transform)
}
#onboarding:has(:is(#onbBody.entry-route--recommend, #onbBody.entry-route--custom, #onbBody.entry-route--browse, #onbBody.entry-route--build, #onbBody.entry-route--shared, #onbBody.entry-route--hub)) #onbCancel:focus-visible,
#onboarding:has(:is(#onbBody.entry-route--recommend, #onbBody.entry-route--custom, #onbBody.entry-route--browse, #onbBody.entry-route--build, #onbBody.entry-route--shared, #onbBody.entry-route--hub)) #onbBack:focus-visible,
#onboarding:has(:is(#onbBody.entry-route--recommend, #onbBody.entry-route--custom, #onbBody.entry-route--browse, #onbBody.entry-route--build, #onbBody.entry-route--shared, #onbBody.entry-route--hub)) #onbNext:focus-visible,
:is(#onbBody.entry-route--recommend, #onbBody.entry-route--custom, #onbBody.entry-route--browse, #onbBody.entry-route--build, #onbBody.entry-route--shared, #onbBody.entry-route--hub) #entryActivate:focus-visible{
  outline:var(--control-focus-outline);outline-offset:2px
}
#onboarding:has(:is(#onbBody.entry-route--recommend, #onbBody.entry-route--custom, #onbBody.entry-route--browse, #onbBody.entry-route--build, #onbBody.entry-route--shared, #onbBody.entry-route--hub)) #onbCancel:disabled,
#onboarding:has(:is(#onbBody.entry-route--recommend, #onbBody.entry-route--custom, #onbBody.entry-route--browse, #onbBody.entry-route--build, #onbBody.entry-route--shared, #onbBody.entry-route--hub)) #onbBack:disabled{
  background:var(--control-quiet-bg);color:var(--color-disabled-reason);
  border-color:var(--boundary-decorative);opacity:1;cursor:not-allowed;transform:none
}
#onboarding:has(:is(#onbBody.entry-route--recommend, #onbBody.entry-route--custom, #onbBody.entry-route--browse, #onbBody.entry-route--build, #onbBody.entry-route--shared, #onbBody.entry-route--hub)) #onbNext,
:is(#onbBody.entry-route--recommend, #onbBody.entry-route--custom, #onbBody.entry-route--browse, #onbBody.entry-route--build, #onbBody.entry-route--shared, #onbBody.entry-route--hub) #entryActivate,
:is(#onbBody.entry-route--recommend, #onbBody.entry-route--custom, #onbBody.entry-route--browse, #onbBody.entry-route--build, #onbBody.entry-route--shared, #onbBody.entry-route--hub) .btn.btn--cta:not([id]){
  background:var(--control-primary-bg);color:var(--control-primary-ink);
  border-color:var(--control-primary-boundary)
}
@media (hover: hover) and (pointer: fine){
#onboarding:has(:is(#onbBody.entry-route--recommend, #onbBody.entry-route--custom, #onbBody.entry-route--browse, #onbBody.entry-route--build, #onbBody.entry-route--shared, #onbBody.entry-route--hub)) #onbNext:hover:not(:disabled),
:is(#onbBody.entry-route--recommend, #onbBody.entry-route--custom, #onbBody.entry-route--browse, #onbBody.entry-route--build, #onbBody.entry-route--shared, #onbBody.entry-route--hub) #entryActivate:hover:not(:disabled),
:is(#onbBody.entry-route--recommend, #onbBody.entry-route--custom, #onbBody.entry-route--browse, #onbBody.entry-route--build, #onbBody.entry-route--shared, #onbBody.entry-route--hub) .btn.btn--cta:not([id]):hover:not(:disabled){
  background:var(--control-primary-bg);color:var(--control-primary-ink);
  border-color:var(--control-primary-boundary)
}
}
#onboarding:has(:is(#onbBody.entry-route--recommend, #onbBody.entry-route--custom, #onbBody.entry-route--browse, #onbBody.entry-route--build, #onbBody.entry-route--shared, #onbBody.entry-route--hub)) #onbNext:disabled,
:is(#onbBody.entry-route--recommend, #onbBody.entry-route--custom, #onbBody.entry-route--browse, #onbBody.entry-route--build, #onbBody.entry-route--shared, #onbBody.entry-route--hub) #entryActivate:disabled,
:is(#onbBody.entry-route--recommend, #onbBody.entry-route--custom, #onbBody.entry-route--browse, #onbBody.entry-route--build, #onbBody.entry-route--shared, #onbBody.entry-route--hub) .btn.btn--cta:not([id]):disabled{
  background:var(--control-primary-disabled-bg);color:var(--control-primary-disabled-ink);
  border-color:var(--boundary-decorative);opacity:1;cursor:not-allowed;transform:none
}
:is(#onbBody.entry-route--recommend, #onbBody.entry-route--custom, #onbBody.entry-route--browse, #onbBody.entry-route--build, #onbBody.entry-route--shared, #onbBody.entry-route--hub) .btn.btn--steel:not(.btn--destructive),
:is(#onbBody.entry-route--recommend, #onbBody.entry-route--custom, #onbBody.entry-route--browse, #onbBody.entry-route--build, #onbBody.entry-route--shared, #onbBody.entry-route--hub) #entryConflictReview,
:is(#onbBody.entry-route--recommend, #onbBody.entry-route--custom, #onbBody.entry-route--browse, #onbBody.entry-route--build, #onbBody.entry-route--shared, #onbBody.entry-route--hub) #entryEdit{
  background:var(--control-secondary-bg);color:var(--control-secondary-ink);
  border-color:var(--control-secondary-boundary)
}
@media (hover: hover) and (pointer: fine){
:is(#onbBody.entry-route--recommend, #onbBody.entry-route--custom, #onbBody.entry-route--browse, #onbBody.entry-route--build, #onbBody.entry-route--shared, #onbBody.entry-route--hub) .btn.btn--steel:not(.btn--destructive):hover:not(:disabled),
:is(#onbBody.entry-route--recommend, #onbBody.entry-route--custom, #onbBody.entry-route--browse, #onbBody.entry-route--build, #onbBody.entry-route--shared, #onbBody.entry-route--hub) #entryConflictReview:hover:not(:disabled),
:is(#onbBody.entry-route--recommend, #onbBody.entry-route--custom, #onbBody.entry-route--browse, #onbBody.entry-route--build, #onbBody.entry-route--shared, #onbBody.entry-route--hub) #entryEdit:hover:not(:disabled){
  background:var(--well);color:var(--control-secondary-ink);
  border-color:var(--control-secondary-boundary)
}
}
:is(#onbBody.entry-route--recommend, #onbBody.entry-route--custom, #onbBody.entry-route--browse, #onbBody.entry-route--build, #onbBody.entry-route--shared, #onbBody.entry-route--hub) .btn.btn--steel:not(.btn--destructive).is-pressed:not(:disabled),
:is(#onbBody.entry-route--recommend, #onbBody.entry-route--custom, #onbBody.entry-route--browse, #onbBody.entry-route--build, #onbBody.entry-route--shared, #onbBody.entry-route--hub) #entryConflictReview.is-pressed:not(:disabled),
:is(#onbBody.entry-route--recommend, #onbBody.entry-route--custom, #onbBody.entry-route--browse, #onbBody.entry-route--build, #onbBody.entry-route--shared, #onbBody.entry-route--hub) #entryEdit.is-pressed:not(:disabled){
  background:var(--row-pressed-bg);color:var(--control-secondary-ink);
  border-color:var(--control-secondary-boundary)
}
:is(#onbBody.entry-route--recommend, #onbBody.entry-route--custom, #onbBody.entry-route--browse, #onbBody.entry-route--build, #onbBody.entry-route--shared, #onbBody.entry-route--hub) #entryRestart{
  background:var(--control-destructive-bg);color:var(--control-destructive-ink);
  border-color:var(--control-destructive-boundary)
}
@media (hover: hover) and (pointer: fine){
:is(#onbBody.entry-route--recommend, #onbBody.entry-route--custom, #onbBody.entry-route--browse, #onbBody.entry-route--build, #onbBody.entry-route--shared, #onbBody.entry-route--hub) #entryRestart:hover:not(:disabled){
  background:var(--well);color:var(--control-destructive-ink);
  border-color:var(--control-destructive-boundary)
}
}
:is(#onbBody.entry-route--recommend, #onbBody.entry-route--custom, #onbBody.entry-route--browse, #onbBody.entry-route--build, #onbBody.entry-route--shared, #onbBody.entry-route--hub) #entryRestart.is-pressed:not(:disabled){
  background:var(--row-pressed-bg);color:var(--control-destructive-ink);
  border-color:var(--control-destructive-boundary)
}
:is(#onbBody.entry-route--recommend, #onbBody.entry-route--custom, #onbBody.entry-route--browse, #onbBody.entry-route--build, #onbBody.entry-route--shared, #onbBody.entry-route--hub) .btn.btn--steel.is-pressed:not(:disabled),
:is(#onbBody.entry-route--recommend, #onbBody.entry-route--custom, #onbBody.entry-route--browse, #onbBody.entry-route--build, #onbBody.entry-route--shared, #onbBody.entry-route--hub) #entryConflictReview.is-pressed:not(:disabled),
:is(#onbBody.entry-route--recommend, #onbBody.entry-route--custom, #onbBody.entry-route--browse, #onbBody.entry-route--build, #onbBody.entry-route--shared, #onbBody.entry-route--hub) #entryEdit.is-pressed:not(:disabled),
:is(#onbBody.entry-route--recommend, #onbBody.entry-route--custom, #onbBody.entry-route--browse, #onbBody.entry-route--build, #onbBody.entry-route--shared, #onbBody.entry-route--hub) #entryRestart.is-pressed:not(:disabled){
  transform:var(--control-pressed-transform)
}
:is(#onbBody.entry-route--recommend, #onbBody.entry-route--custom, #onbBody.entry-route--browse, #onbBody.entry-route--build, #onbBody.entry-route--shared, #onbBody.entry-route--hub) .btn:focus-visible,
:is(#onbBody.entry-route--recommend, #onbBody.entry-route--custom, #onbBody.entry-route--browse, #onbBody.entry-route--build, #onbBody.entry-route--shared, #onbBody.entry-route--hub) #entryActivate:focus-visible,
:is(#onbBody.entry-route--recommend, #onbBody.entry-route--custom, #onbBody.entry-route--browse, #onbBody.entry-route--build, #onbBody.entry-route--shared, #onbBody.entry-route--hub) #entryConflictReview:focus-visible,
:is(#onbBody.entry-route--recommend, #onbBody.entry-route--custom, #onbBody.entry-route--browse, #onbBody.entry-route--build, #onbBody.entry-route--shared, #onbBody.entry-route--hub) #entryEdit:focus-visible,
:is(#onbBody.entry-route--recommend, #onbBody.entry-route--custom, #onbBody.entry-route--browse, #onbBody.entry-route--build, #onbBody.entry-route--shared, #onbBody.entry-route--hub) #entryRestart:focus-visible{
  outline:var(--control-focus-outline);outline-offset:2px
}
:is(#onbBody.entry-route--recommend, #onbBody.entry-route--custom, #onbBody.entry-route--browse, #onbBody.entry-route--build, #onbBody.entry-route--shared, #onbBody.entry-route--hub) .btn:not(.btn--cta):disabled,
:is(#onbBody.entry-route--recommend, #onbBody.entry-route--custom, #onbBody.entry-route--browse, #onbBody.entry-route--build, #onbBody.entry-route--shared, #onbBody.entry-route--hub) #entryConflictReview:disabled,
:is(#onbBody.entry-route--recommend, #onbBody.entry-route--custom, #onbBody.entry-route--browse, #onbBody.entry-route--build, #onbBody.entry-route--shared, #onbBody.entry-route--hub) #entryEdit:disabled,
:is(#onbBody.entry-route--recommend, #onbBody.entry-route--custom, #onbBody.entry-route--browse, #onbBody.entry-route--build, #onbBody.entry-route--shared, #onbBody.entry-route--hub) #entryRestart:disabled{
  background:var(--control-secondary-bg);color:var(--color-disabled-reason);
  border-color:var(--boundary-decorative);opacity:1;cursor:not-allowed;transform:none
}
:is(#onbBody.entry-route--recommend, #onbBody.entry-route--custom, #onbBody.entry-route--browse, #onbBody.entry-route--build, #onbBody.entry-route--shared, #onbBody.entry-route--hub) #entryRestart:disabled{
  background:var(--control-destructive-bg);color:var(--color-disabled-reason)
}

:is(#onbBody.entry-route--recommend, #onbBody.entry-route--custom, #onbBody.entry-route--browse, #onbBody.entry-route--build, #onbBody.entry-route--shared, #onbBody.entry-route--hub) .radio-card{
  color:var(--control-selection-ink);font-family:var(--font-language)
}
@media (hover: hover) and (pointer: fine){
:is(#onbBody.entry-route--recommend, #onbBody.entry-route--custom, #onbBody.entry-route--browse, #onbBody.entry-route--build, #onbBody.entry-route--shared, #onbBody.entry-route--hub) .radio-card:hover:not(:disabled):not(.is-disabled){
  background:var(--row-pressed-bg);color:var(--control-selection-ink)
}
}
:is(#onbBody.entry-route--recommend, #onbBody.entry-route--custom, #onbBody.entry-route--browse, #onbBody.entry-route--build, #onbBody.entry-route--shared, #onbBody.entry-route--hub) .radio-card.is-pressed:not(:disabled){
  background:var(--row-pressed-bg);color:var(--control-selection-ink)
}
:is(#onbBody.entry-route--recommend, #onbBody.entry-route--custom, #onbBody.entry-route--browse, #onbBody.entry-route--build, #onbBody.entry-route--shared, #onbBody.entry-route--hub) .radio-card:focus-visible{
  outline:var(--control-focus-outline);outline-offset:2px
}
@media (hover: hover) and (pointer: fine){
:is(#onbBody.entry-route--recommend, #onbBody.entry-route--custom, #onbBody.entry-route--browse, #onbBody.entry-route--build, #onbBody.entry-route--shared, #onbBody.entry-route--hub) .radio-card.is-disabled:hover,
:is(#onbBody.entry-route--recommend, #onbBody.entry-route--custom, #onbBody.entry-route--browse, #onbBody.entry-route--build, #onbBody.entry-route--shared, #onbBody.entry-route--hub) .radio-card:disabled:hover{
  background:transparent;color:var(--color-disabled-reason);opacity:1;cursor:not-allowed;transform:none
}
}
:is(#onbBody.entry-route--recommend, #onbBody.entry-route--custom, #onbBody.entry-route--browse, #onbBody.entry-route--build, #onbBody.entry-route--shared, #onbBody.entry-route--hub) .radio-card.is-disabled,
:is(#onbBody.entry-route--recommend, #onbBody.entry-route--custom, #onbBody.entry-route--browse, #onbBody.entry-route--build, #onbBody.entry-route--shared, #onbBody.entry-route--hub) .radio-card:disabled,
:is(#onbBody.entry-route--recommend, #onbBody.entry-route--custom, #onbBody.entry-route--browse, #onbBody.entry-route--build, #onbBody.entry-route--shared, #onbBody.entry-route--hub) .radio-card.is-disabled.is-pressed,
:is(#onbBody.entry-route--recommend, #onbBody.entry-route--custom, #onbBody.entry-route--browse, #onbBody.entry-route--build, #onbBody.entry-route--shared, #onbBody.entry-route--hub) .radio-card:disabled.is-pressed{
  background:transparent;color:var(--color-disabled-reason);opacity:1;cursor:not-allowed;transform:none
}
:is(#onbBody.entry-route--recommend, #onbBody.entry-route--custom, #onbBody.entry-route--browse, #onbBody.entry-route--build, #onbBody.entry-route--shared, #onbBody.entry-route--hub) .radio-card__title{
  color:var(--control-selection-ink);font-family:var(--font-language);
  font-size:var(--font-size-body);font-weight:var(--weight-regular);line-height:var(--line-standard)
}
:is(#onbBody.entry-route--recommend, #onbBody.entry-route--custom, #onbBody.entry-route--browse, #onbBody.entry-route--build, #onbBody.entry-route--shared, #onbBody.entry-route--hub) .radio-card__cap{
  color:var(--color-ink-secondary);font-family:var(--font-language);
  font-size:var(--font-size-body-small);line-height:var(--line-standard)
}
:is(#onbBody.entry-route--recommend, #onbBody.entry-route--custom, #onbBody.entry-route--browse, #onbBody.entry-route--build, #onbBody.entry-route--shared, #onbBody.entry-route--hub) .onb__opts--reasons .radio-card__body{
  flex:1 1 auto;min-width:0
}
:is(#onbBody.entry-route--recommend, #onbBody.entry-route--custom, #onbBody.entry-route--browse, #onbBody.entry-route--build, #onbBody.entry-route--shared, #onbBody.entry-route--hub) .onb__opts--reasons .radio-card__title{
  overflow-wrap:anywhere
}
:is(#onbBody.entry-route--recommend, #onbBody.entry-route--custom, #onbBody.entry-route--browse, #onbBody.entry-route--build, #onbBody.entry-route--shared, #onbBody.entry-route--hub) .radio-card.is-selected .radio-card__title,
:is(#onbBody.entry-route--recommend, #onbBody.entry-route--custom, #onbBody.entry-route--browse, #onbBody.entry-route--build, #onbBody.entry-route--shared, #onbBody.entry-route--hub) .radio-card.is-selected .radio-card__cap{
  color:var(--control-selection-ink)
}
:is(#onbBody.entry-route--recommend, #onbBody.entry-route--custom, #onbBody.entry-route--browse, #onbBody.entry-route--build, #onbBody.entry-route--shared, #onbBody.entry-route--hub) .radio-card.is-selected .radio-card__icon{
  color:var(--ink)
}

:is(#onbBody.entry-route--recommend, #onbBody.entry-route--custom, #onbBody.entry-route--browse, #onbBody.entry-route--build, #onbBody.entry-route--shared, #onbBody.entry-route--hub) .onb__q{
  color:var(--color-ink);font-family:var(--font-language);font-size:var(--font-size-title);
  font-weight:var(--weight-semibold);line-height:var(--line-tight)
}
:is(#onbBody.entry-route--recommend, #onbBody.entry-route--custom, #onbBody.entry-route--browse, #onbBody.entry-route--build, #onbBody.entry-route--shared, #onbBody.entry-route--hub) .onb__explain{
  color:var(--color-ink-secondary);font-family:var(--font-language);
  font-size:var(--font-size-body);line-height:var(--line-reading)
}
:is(#onbBody.entry-route--recommend, #onbBody.entry-route--custom, #onbBody.entry-route--browse, #onbBody.entry-route--build, #onbBody.entry-route--shared, #onbBody.entry-route--hub) .entry__optional{
  color:var(--color-ink-secondary);font-family:var(--font-language);font-size:var(--font-size-label)
}
:is(#onbBody.entry-route--recommend, #onbBody.entry-route--custom, #onbBody.entry-route--browse, #onbBody.entry-route--build, #onbBody.entry-route--shared, #onbBody.entry-route--hub) .entry__group-lab,
:is(#onbBody.entry-route--recommend, #onbBody.entry-route--custom, #onbBody.entry-route--browse, #onbBody.entry-route--build, #onbBody.entry-route--shared, #onbBody.entry-route--hub) .entry__row-lab{
  color:var(--color-action-text);font-family:var(--font-language);
  font-size:var(--font-size-caption);font-weight:var(--weight-semibold);line-height:var(--line-standard)
}
:is(#onbBody.entry-route--recommend, #onbBody.entry-route--custom, #onbBody.entry-route--browse, #onbBody.entry-route--build, #onbBody.entry-route--shared, #onbBody.entry-route--hub) .entry__hint,
:is(#onbBody.entry-route--recommend, #onbBody.entry-route--custom, #onbBody.entry-route--browse, #onbBody.entry-route--build, #onbBody.entry-route--shared, #onbBody.entry-route--hub) .entry__pain,
:is(#onbBody.entry-route--recommend, #onbBody.entry-route--custom, #onbBody.entry-route--browse, #onbBody.entry-route--build, #onbBody.entry-route--shared, #onbBody.entry-route--hub) .entry__notice p,
:is(#onbBody.entry-route--recommend, #onbBody.entry-route--custom, #onbBody.entry-route--browse, #onbBody.entry-route--build, #onbBody.entry-route--shared, #onbBody.entry-route--hub) .entry__row-body,
:is(#onbBody.entry-route--recommend, #onbBody.entry-route--custom, #onbBody.entry-route--browse, #onbBody.entry-route--build, #onbBody.entry-route--shared, #onbBody.entry-route--hub) .entry__row-body p{
  color:var(--color-ink-secondary);font-family:var(--font-language);
  font-size:var(--font-size-body-small);line-height:var(--line-reading)
}
:is(#onbBody.entry-route--recommend, #onbBody.entry-route--custom, #onbBody.entry-route--browse, #onbBody.entry-route--build, #onbBody.entry-route--shared, #onbBody.entry-route--hub) .entry__decision h3{
  color:var(--color-ink);font-family:var(--font-language);
  font-size:var(--font-size-subtitle);font-weight:var(--weight-semibold);line-height:var(--line-tight)
}
:is(#onbBody.entry-route--recommend, #onbBody.entry-route--custom, #onbBody.entry-route--browse, #onbBody.entry-route--build, #onbBody.entry-route--shared, #onbBody.entry-route--hub) .entry__ident--boxed,
:is(#onbBody.entry-route--recommend, #onbBody.entry-route--custom, #onbBody.entry-route--browse, #onbBody.entry-route--build, #onbBody.entry-route--shared, #onbBody.entry-route--hub) .entry__notice,
:is(#onbBody.entry-route--recommend, #onbBody.entry-route--custom, #onbBody.entry-route--browse, #onbBody.entry-route--build, #onbBody.entry-route--shared, #onbBody.entry-route--hub) .entry__disclosure,
:is(#onbBody.entry-route--recommend, #onbBody.entry-route--custom, #onbBody.entry-route--browse, #onbBody.entry-route--build, #onbBody.entry-route--shared, #onbBody.entry-route--hub) .onb__day{
  background:var(--color-surface);border-color:var(--boundary-decorative);
  border-radius:var(--radius-surface)
}
:is(#onbBody.entry-route--recommend, #onbBody.entry-route--custom, #onbBody.entry-route--browse, #onbBody.entry-route--build, #onbBody.entry-route--shared, #onbBody.entry-route--hub) .entry__source{
  color:var(--color-ink-secondary);font-family:var(--font-language);font-size:var(--font-size-body-small)
}
:is(#onbBody.entry-route--recommend, #onbBody.entry-route--custom, #onbBody.entry-route--browse, #onbBody.entry-route--build, #onbBody.entry-route--shared, #onbBody.entry-route--hub) .entry__source span,
:is(#onbBody.entry-route--recommend, #onbBody.entry-route--custom, #onbBody.entry-route--browse, #onbBody.entry-route--build, #onbBody.entry-route--shared, #onbBody.entry-route--hub) .entry__row-lab{
  color:var(--color-ink-secondary);font-family:var(--font-language);font-size:var(--font-size-label)
}
:is(#onbBody.entry-route--recommend, #onbBody.entry-route--custom, #onbBody.entry-route--browse, #onbBody.entry-route--build, #onbBody.entry-route--shared, #onbBody.entry-route--hub) .entry__row-ico{
  color:var(--color-action)
}
:is(#onbBody.entry-route--recommend, #onbBody.entry-route--custom, #onbBody.entry-route--browse, #onbBody.entry-route--build, #onbBody.entry-route--shared, #onbBody.entry-route--hub) .entry__rows{
  border-color:var(--boundary-decorative)
}
:is(#onbBody.entry-route--recommend, #onbBody.entry-route--custom, #onbBody.entry-route--browse, #onbBody.entry-route--build, #onbBody.entry-route--shared, #onbBody.entry-route--hub) .entry__row{border-color:var(--boundary-decorative)}
:is(#onbBody.entry-route--recommend, #onbBody.entry-route--custom, #onbBody.entry-route--browse, #onbBody.entry-route--build, #onbBody.entry-route--shared, #onbBody.entry-route--hub) .entry__notice[role="alert"]{border-left-color:var(--color-destructive)}
:is(#onbBody.entry-route--recommend, #onbBody.entry-route--custom, #onbBody.entry-route--browse, #onbBody.entry-route--build, #onbBody.entry-route--shared, #onbBody.entry-route--hub) .entry__notice--warn{border-left-color:var(--color-warning)}
:is(#onbBody.entry-route--recommend, #onbBody.entry-route--custom, #onbBody.entry-route--browse, #onbBody.entry-route--build, #onbBody.entry-route--shared, #onbBody.entry-route--hub) .entry__notice[role="alert"]>strong{color:var(--color-destructive)}
:is(#onbBody.entry-route--recommend, #onbBody.entry-route--custom, #onbBody.entry-route--browse, #onbBody.entry-route--build, #onbBody.entry-route--shared, #onbBody.entry-route--hub) .entry__notice--warn>strong::before{color:var(--color-warning)}

:is(#onbBody.entry-route--recommend, #onbBody.entry-route--custom, #onbBody.entry-route--browse, #onbBody.entry-route--build, #onbBody.entry-route--shared, #onbBody.entry-route--hub) .entry__field{
  color:var(--color-ink-secondary);font-family:var(--font-language);font-size:var(--font-size-label)
}
:is(#onbBody.entry-route--recommend, #onbBody.entry-route--custom, #onbBody.entry-route--browse, #onbBody.entry-route--build, #onbBody.entry-route--shared, #onbBody.entry-route--hub) :is(#entryAvoidSearch, #entryMustSearch, #entryExerciseSearch){
  min-height:var(--control-target);border-color:var(--control-field-boundary);
  border-radius:var(--radius-control);background:var(--control-field-bg);
  color:var(--control-field-ink);font-family:var(--font-language);
  font-size:var(--font-size-control);font-weight:var(--weight-medium)
}
@media (hover: hover) and (pointer: fine){
:is(#onbBody.entry-route--recommend, #onbBody.entry-route--custom, #onbBody.entry-route--browse, #onbBody.entry-route--build, #onbBody.entry-route--shared, #onbBody.entry-route--hub) :is(#entryAvoidSearch, #entryMustSearch, #entryExerciseSearch):hover:not(:disabled){
  border-color:var(--control-field-boundary)
}
}
:is(#onbBody.entry-route--recommend, #onbBody.entry-route--custom, #onbBody.entry-route--browse, #onbBody.entry-route--build, #onbBody.entry-route--shared, #onbBody.entry-route--hub) :is(#entryAvoidSearch, #entryMustSearch, #entryExerciseSearch):focus-visible{
  outline:var(--control-focus-outline);outline-offset:2px
}
:is(#onbBody.entry-route--recommend, #onbBody.entry-route--custom, #onbBody.entry-route--browse, #onbBody.entry-route--build, #onbBody.entry-route--shared, #onbBody.entry-route--hub) :is(#entryAvoidSearch, #entryMustSearch, #entryExerciseSearch)[aria-invalid="true"],
:is(#onbBody.entry-route--recommend, #onbBody.entry-route--custom, #onbBody.entry-route--browse, #onbBody.entry-route--build, #onbBody.entry-route--shared, #onbBody.entry-route--hub) :is(#entryAvoidSearch, #entryMustSearch, #entryExerciseSearch).is-invalid{
  border-color:var(--control-error-boundary);box-shadow:none
}
:is(#onbBody.entry-route--recommend, #onbBody.entry-route--custom, #onbBody.entry-route--browse, #onbBody.entry-route--build, #onbBody.entry-route--shared, #onbBody.entry-route--hub) :is(#entryAvoidSearch, #entryMustSearch, #entryExerciseSearch):disabled{
  background:var(--control-field-bg);color:var(--color-disabled-reason);
  border-color:var(--boundary-decorative);opacity:1;cursor:not-allowed
}
:is(#onbBody.entry-route--recommend, #onbBody.entry-route--custom, #onbBody.entry-route--browse, #onbBody.entry-route--build, #onbBody.entry-route--shared, #onbBody.entry-route--hub) .entry__remove{
  color:var(--control-destructive-ink);font-family:var(--font-language);
  font-size:var(--font-size-body-small);font-weight:var(--weight-semibold)
}
:is(#onbBody.entry-route--recommend, #onbBody.entry-route--custom, #onbBody.entry-route--browse, #onbBody.entry-route--build, #onbBody.entry-route--shared, #onbBody.entry-route--hub) .entry__remove:focus-visible{
  outline:var(--control-focus-outline);outline-offset:2px
}
:is(#onbBody.entry-route--recommend, #onbBody.entry-route--custom, #onbBody.entry-route--browse, #onbBody.entry-route--build, #onbBody.entry-route--shared, #onbBody.entry-route--hub) .entry__disclosure>summary,
:is(#onbBody.entry-route--recommend, #onbBody.entry-route--custom, #onbBody.entry-route--browse, #onbBody.entry-route--build, #onbBody.entry-route--shared, #onbBody.entry-route--hub) .onb__day>summary{
  min-height:var(--control-target);background:var(--control-disclosure-bg);
  color:var(--control-disclosure-ink);border-color:var(--control-disclosure-boundary);
  font-family:var(--font-language);font-size:var(--font-size-body);line-height:var(--line-standard)
}
@media (hover: hover) and (pointer: fine){
:is(#onbBody.entry-route--recommend, #onbBody.entry-route--custom, #onbBody.entry-route--browse, #onbBody.entry-route--build, #onbBody.entry-route--shared, #onbBody.entry-route--hub) .entry__disclosure>summary:hover,
:is(#onbBody.entry-route--recommend, #onbBody.entry-route--custom, #onbBody.entry-route--browse, #onbBody.entry-route--build, #onbBody.entry-route--shared, #onbBody.entry-route--hub) .onb__day>summary:hover{
  background:var(--well);color:var(--control-disclosure-ink)
}
}
:is(#onbBody.entry-route--recommend, #onbBody.entry-route--custom, #onbBody.entry-route--browse, #onbBody.entry-route--build, #onbBody.entry-route--shared, #onbBody.entry-route--hub) .entry__disclosure>summary.is-pressed,
:is(#onbBody.entry-route--recommend, #onbBody.entry-route--custom, #onbBody.entry-route--browse, #onbBody.entry-route--build, #onbBody.entry-route--shared, #onbBody.entry-route--hub) .onb__day>summary.is-pressed{
  background:var(--row-pressed-bg);color:var(--control-disclosure-ink);
  transform:var(--control-pressed-transform)
}
:is(#onbBody.entry-route--recommend, #onbBody.entry-route--custom, #onbBody.entry-route--browse, #onbBody.entry-route--build, #onbBody.entry-route--shared, #onbBody.entry-route--hub) .entry__disclosure>summary:focus-visible,
:is(#onbBody.entry-route--recommend, #onbBody.entry-route--custom, #onbBody.entry-route--browse, #onbBody.entry-route--build, #onbBody.entry-route--shared, #onbBody.entry-route--hub) .onb__day>summary:focus-visible{
  outline:var(--control-focus-outline);outline-offset:2px
}
:is(#onbBody.entry-route--recommend, #onbBody.entry-route--custom, #onbBody.entry-route--browse, #onbBody.entry-route--build, #onbBody.entry-route--shared, #onbBody.entry-route--hub) .onb__dayname>span:not(.onb__daynum){
  color:var(--color-ink-secondary);font-family:var(--font-language);
  font-size:var(--font-size-body-small);line-height:var(--line-standard)
}
:is(#onbBody.entry-route--recommend, #onbBody.entry-route--custom, #onbBody.entry-route--browse, #onbBody.entry-route--build, #onbBody.entry-route--shared, #onbBody.entry-route--hub) .onb__dayname span.onb__daynum{
  background:var(--well);border-color:var(--boundary-decorative);
  color:var(--color-action-text);font-family:var(--font-training-data)
}
:is(#onbBody.entry-route--recommend, #onbBody.entry-route--custom, #onbBody.entry-route--browse, #onbBody.entry-route--build, #onbBody.entry-route--shared, #onbBody.entry-route--hub) .entry__disclosure[open]>summary,
:is(#onbBody.entry-route--recommend, #onbBody.entry-route--custom, #onbBody.entry-route--browse, #onbBody.entry-route--build, #onbBody.entry-route--shared, #onbBody.entry-route--hub) .onb__day[open]>summary{
  border-bottom-color:var(--boundary-decorative)
}
:is(#onbBody.entry-route--recommend, #onbBody.entry-route--custom, #onbBody.entry-route--browse, #onbBody.entry-route--build, #onbBody.entry-route--shared, #onbBody.entry-route--hub) .entry__active{
  background:var(--color-surface);border-color:var(--boundary-decorative);
  border-radius:var(--radius-surface);color:var(--color-ink-secondary);
  font-family:var(--font-language);font-size:var(--font-size-body-small);line-height:var(--line-reading)
}
#onboarding:has(:is(#onbBody.entry-route--recommend, #onbBody.entry-route--custom, #onbBody.entry-route--browse, #onbBody.entry-route--build, #onbBody.entry-route--shared, #onbBody.entry-route--hub)) #onbStepLabel{
  color:var(--color-ink-secondary);font-family:var(--font-language);
  font-size:var(--font-size-label);line-height:var(--line-standard)
}
#onboarding:has(:is(#onbBody.entry-route--recommend, #onbBody.entry-route--custom, #onbBody.entry-route--browse, #onbBody.entry-route--build, #onbBody.entry-route--shared, #onbBody.entry-route--hub)) #onbSegbar .segbar__seg{
  background:var(--boundary-required)
}
#onboarding:has(:is(#onbBody.entry-route--recommend, #onbBody.entry-route--custom, #onbBody.entry-route--browse, #onbBody.entry-route--build, #onbBody.entry-route--shared, #onbBody.entry-route--hub)) #onbSegbar .segbar__seg.is-done,
#onboarding:has(:is(#onbBody.entry-route--recommend, #onbBody.entry-route--custom, #onbBody.entry-route--browse, #onbBody.entry-route--build, #onbBody.entry-route--shared, #onbBody.entry-route--hub)) #onbSegbar .segbar__seg.is-current{
  background:var(--color-action-text)
}

/* The review metrics wrap with the user's text scale. A rem-relative minimum
   keeps the three-column summary at normal size and stacks it when enlarged. */

/* The onboarding draft and installed Program share editor controls. Keep their
   semantic treatments scoped to each host because their page layouts differ. */
body.is-entry-editor .pmeta{
  border-bottom-color:var(--boundary-decorative)
}
body.is-entry-editor .pmeta__draft{
  color:var(--color-ink-secondary);font-family:var(--font-language);
  font-size:var(--font-size-body-small);line-height:var(--line-reading)
}
body.is-entry-editor .pmeta__draft-mark{background:var(--color-action)}
body.is-entry-editor .pday{
  overflow:visible;border-bottom-color:var(--boundary-decorative)
}
body.is-entry-editor .pday__empty{border-top-color:var(--boundary-decorative)}
body.is-entry-editor .program-editor__exercise,
body.is-entry-editor .program-editor__exercise-body,
body.is-entry-editor .program-editor__exercise-actions,
:is(#program,[data-copy-id="program"]).program-editor-installed .program-editor__exercise,
:is(#program,[data-copy-id="program"]).program-editor-installed .program-editor__exercise-body,
:is(#program,[data-copy-id="program"]).program-editor-installed .program-editor__exercise-actions{
  border-color:var(--boundary-decorative)
}
body.is-entry-editor .program-editor__rep-rule,
:is(#program,[data-copy-id="program"]).program-editor-installed .program-editor__rep-rule{background:var(--boundary-decorative)}
body.is-entry-editor .program-editor__program-name,
body.is-entry-editor .program-editor__field-label,
body.is-entry-editor .program-editor__range legend,
body.is-entry-editor .program-editor__range label,
body.is-entry-editor .program-editor__more label,
:is(#program,[data-copy-id="program"]).program-editor-installed .program-editor__program-name,
:is(#program,[data-copy-id="program"]).program-editor-installed .program-editor__field-label,
:is(#program,[data-copy-id="program"]).program-editor-installed .program-editor__range legend,
:is(#program,[data-copy-id="program"]).program-editor-installed .program-editor__range label,
:is(#program,[data-copy-id="program"]).program-editor-installed .program-editor__more label{
  color:var(--color-ink-secondary);font-family:var(--font-language);
  font-size:var(--font-size-label);font-weight:var(--weight-medium);
  line-height:var(--line-standard)
}
body.is-entry-editor .program-editor__context,
:is(#program,[data-copy-id="program"]).program-editor-installed .program-editor__context{
  color:var(--color-ink-secondary);font-family:var(--font-language);
  font-size:var(--font-size-body);line-height:var(--line-reading)
}
body.is-entry-editor .program-editor__status,
body.is-entry-editor .program-editor__empty,
:is(#program,[data-copy-id="program"]).program-editor-installed .program-editor__status,
:is(#program,[data-copy-id="program"]).program-editor-installed .program-editor__empty{
  color:var(--color-ink-secondary);font-family:var(--font-language);
  font-size:var(--font-size-body-small);line-height:var(--line-reading)
}
body.is-entry-editor .program-editor__status.is-error,
:is(#program,[data-copy-id="program"]).program-editor-installed .program-editor__status.is-error{color:var(--color-destructive)}
body.is-entry-editor .program-editor__day-count,
body.is-entry-editor .program-editor__summary,
body.is-entry-editor .program-editor__stepper output,
body.is-entry-editor .program-editor__range input[data-field="min"],
body.is-entry-editor .program-editor__range input[data-field="max"],
:is(#program,[data-copy-id="program"]).program-editor-installed .program-editor__day-count,
:is(#program,[data-copy-id="program"]).program-editor-installed .program-editor__summary,
:is(#program,[data-copy-id="program"]).program-editor-installed .program-editor__stepper output,
:is(#program,[data-copy-id="program"]).program-editor-installed .program-editor__range input[data-field="min"],
:is(#program,[data-copy-id="program"]).program-editor-installed .program-editor__range input[data-field="max"]{
  font-family:var(--font-training-data);font-variant-numeric:tabular-nums
}
body.is-entry-editor .program-editor__day-count,
:is(#program,[data-copy-id="program"]).program-editor-installed .program-editor__day-count{
  color:var(--color-ink-secondary);font-size:var(--font-size-label);
  font-weight:var(--weight-medium);line-height:var(--line-standard)
}
body.is-entry-editor .program-editor__summary,
:is(#program,[data-copy-id="program"]).program-editor-installed .program-editor__summary{
  color:var(--color-ink);font-family:var(--font-training-data);
  font-variant-numeric:tabular-nums
}
body.is-entry-editor .program-editor__stepper button[data-role="adjust"],
:is(#program,[data-copy-id="program"]).program-editor-installed .program-editor__stepper button[data-role="adjust"]{
  background:var(--control-track);color:var(--ink);font-size:var(--control-icon-size)
}
body.is-entry-editor .program-editor__stepper button[data-role="adjust"].is-pressed:not(:disabled),
:is(#program,[data-copy-id="program"]).program-editor-installed .program-editor__stepper button[data-role="adjust"].is-pressed:not(:disabled){
  background-image:linear-gradient(var(--row-pressed-bg),var(--row-pressed-bg))
}
body.is-entry-editor .program-editor__stepper button[data-role="adjust"]:focus-visible,
:is(#program,[data-copy-id="program"]).program-editor-installed .program-editor__stepper button[data-role="adjust"]:focus-visible,
body.is-entry-editor :is(
  .program-editor__day-name.pday__name:not([id]),
  .program-editor__exercise-name.pex__name:not([id]),
  .program-editor__add.pday__add:not([id]),
  .program-editor__add-day:not([id]),
  .program-editor__day-menu:not([id]),
  .program-editor__day-toggle.pday__caret:not([id]),
  .program-editor__exercise-toggle:not([id]),
  .program-editor__replace:not([id]),
  .program-editor__remove:not([id]),
  input:not([id]):not([class])
):focus-visible,
:is(#program,[data-copy-id="program"]).program-editor-installed :is(
  .program-editor__day-name.pday__name:not([id]),
  .program-editor__exercise-name.pex__name:not([id]),
  .program-editor__add.pday__add:not([id]),
  .program-editor__add-day:not([id]),
  .program-editor__day-menu:not([id]),
  .program-editor__day-toggle.pday__caret:not([id]),
  .program-editor__exercise-toggle:not([id]),
  .program-editor__replace:not([id]),
  .program-editor__remove:not([id]),
  input:not([id]):not([class])
):focus-visible{
  outline:var(--control-focus-outline);outline-offset:2px
}
body.is-entry-editor .program-editor__stepper button[data-role="adjust"]:disabled,
:is(#program,[data-copy-id="program"]).program-editor-installed .program-editor__stepper button[data-role="adjust"]:disabled{
  background:var(--control-track);color:var(--color-disabled-reason);opacity:1;cursor:not-allowed;transform:none
}
body.is-entry-editor :is(
  .program-editor__day-name.pday__name:not([id]),
  .program-editor__exercise-name.pex__name:not([id]),
  input:not([id]):not([class])
),
:is(#program,[data-copy-id="program"]).program-editor-installed :is(
  .program-editor__day-name.pday__name:not([id]),
  .program-editor__exercise-name.pex__name:not([id]),
  input:not([id]):not([class])
){
  min-height:var(--control-target);border:1px solid var(--control-field-boundary);
  border-radius:var(--radius-control);background:var(--control-field-bg);
  color:var(--control-field-ink)
}
body.is-entry-editor :is(
  .program-editor__day-name.pday__name:not([id]),
  .program-editor__exercise-name.pex__name:not([id]),
  input:not([id]):not([class]):not([data-field="min"]):not([data-field="max"])
),
:is(#program,[data-copy-id="program"]).program-editor-installed :is(
  .program-editor__day-name.pday__name:not([id]),
  .program-editor__exercise-name.pex__name:not([id]),
  input:not([id]):not([class]):not([data-field="min"]):not([data-field="max"])
){font-family:var(--font-language)}
body.is-entry-editor input[data-field="min"],
body.is-entry-editor input[data-field="max"],
:is(#program,[data-copy-id="program"]).program-editor-installed input[data-field="min"],
:is(#program,[data-copy-id="program"]).program-editor-installed input[data-field="max"]{
  font-family:var(--font-training-data);font-variant-numeric:tabular-nums
}
@media (hover: hover) and (pointer: fine){
body.is-entry-editor :is(
  .program-editor__day-name.pday__name:not([id]),
  .program-editor__exercise-name.pex__name:not([id]),
  input:not([id]):not([class])
):hover:not(:disabled),
:is(#program,[data-copy-id="program"]).program-editor-installed :is(
  .program-editor__day-name.pday__name:not([id]),
  .program-editor__exercise-name.pex__name:not([id]),
  input:not([id]):not([class])
):hover:not(:disabled){
  border-color:var(--control-field-boundary);background:var(--control-field-bg);
  color:var(--control-field-ink)
}
}
body.is-entry-editor :is(
  .program-editor__day-name.pday__name:not([id]),
  .program-editor__exercise-name.pex__name:not([id]),
  input:not([id]):not([class])
).is-pressed:not(:disabled),
:is(#program,[data-copy-id="program"]).program-editor-installed :is(
  .program-editor__day-name.pday__name:not([id]),
  .program-editor__exercise-name.pex__name:not([id]),
  input:not([id]):not([class])
).is-pressed:not(:disabled){
  border-color:var(--control-field-boundary);background:var(--control-field-bg);
  color:var(--control-field-ink)
}
body.is-entry-editor :is(
  .program-editor__day-name.pday__name:not([id]),
  .program-editor__exercise-name.pex__name:not([id]),
  input:not([id]):not([class])
):is([aria-invalid="true"],.is-invalid),
:is(#program,[data-copy-id="program"]).program-editor-installed :is(
  .program-editor__day-name.pday__name:not([id]),
  .program-editor__exercise-name.pex__name:not([id]),
  input:not([id]):not([class])
):is([aria-invalid="true"],.is-invalid){
  border-color:var(--control-error-boundary);box-shadow:none
}
body.is-entry-editor :is(
  .program-editor__day-name.pday__name:not([id]),
  .program-editor__exercise-name.pex__name:not([id]),
  input:not([id]):not([class])
):disabled,
:is(#program,[data-copy-id="program"]).program-editor-installed :is(
  .program-editor__day-name.pday__name:not([id]),
  .program-editor__exercise-name.pex__name:not([id]),
  input:not([id]):not([class])
):disabled{
  background:var(--control-field-bg);color:var(--color-disabled-reason);
  border-color:var(--boundary-decorative);opacity:1;cursor:not-allowed
}
body.is-entry-editor :is(
  .program-editor__day-menu:not([id]),
  .program-editor__day-toggle.pday__caret:not([id]),
  .program-editor__exercise-toggle:not([id])
),
:is(#program,[data-copy-id="program"]).program-editor-installed :is(
  .program-editor__day-menu:not([id]),
  .program-editor__day-toggle.pday__caret:not([id]),
  .program-editor__exercise-toggle:not([id])
){
  min-height:var(--control-target);background:var(--control-disclosure-bg);
  color:var(--control-disclosure-ink);border-color:var(--control-disclosure-boundary)
}
@media (hover: hover) and (pointer: fine){
body.is-entry-editor :is(
  .program-editor__day-menu:not([id]),
  .program-editor__day-toggle.pday__caret:not([id]),
  .program-editor__exercise-toggle:not([id])
):hover:not(:disabled),
:is(#program,[data-copy-id="program"]).program-editor-installed :is(
  .program-editor__day-menu:not([id]),
  .program-editor__day-toggle.pday__caret:not([id]),
  .program-editor__exercise-toggle:not([id])
):hover:not(:disabled){
  background:var(--well);color:var(--control-disclosure-ink);
  border-color:var(--control-disclosure-boundary)
}
}
body.is-entry-editor :is(
  .program-editor__day-menu:not([id]),
  .program-editor__day-toggle.pday__caret:not([id]),
  .program-editor__exercise-toggle:not([id])
).is-pressed:not(:disabled),
:is(#program,[data-copy-id="program"]).program-editor-installed :is(
  .program-editor__day-menu:not([id]),
  .program-editor__day-toggle.pday__caret:not([id]),
  .program-editor__exercise-toggle:not([id])
).is-pressed:not(:disabled){
  background:var(--row-pressed-bg);color:var(--control-disclosure-ink);
  border-color:var(--control-disclosure-boundary)
}
body.is-entry-editor :is(
  .program-editor__day-menu:not([id]),
  .program-editor__day-toggle.pday__caret:not([id]),
  .program-editor__exercise-toggle:not([id])
).is-pressed:not(:disabled),
:is(#program,[data-copy-id="program"]).program-editor-installed :is(
  .program-editor__day-menu:not([id]),
  .program-editor__day-toggle.pday__caret:not([id]),
  .program-editor__exercise-toggle:not([id])
).is-pressed:not(:disabled){transform:var(--control-pressed-transform)}
body.is-entry-editor :is(
  .program-editor__day-menu:not([id]),
  .program-editor__day-toggle.pday__caret:not([id]),
  .program-editor__exercise-toggle:not([id])
):disabled,
:is(#program,[data-copy-id="program"]).program-editor-installed :is(
  .program-editor__day-menu:not([id]),
  .program-editor__day-toggle.pday__caret:not([id]),
  .program-editor__exercise-toggle:not([id])
):disabled{
  background:var(--control-disclosure-bg);color:var(--color-disabled-reason);
  border-color:var(--boundary-decorative);opacity:1;cursor:not-allowed;transform:none
}
body.is-entry-editor :is(
  .program-editor__add.pday__add:not([id]),
  .program-editor__replace:not([id])
),
:is(#program,[data-copy-id="program"]).program-editor-installed :is(
  .program-editor__add.pday__add:not([id]),
  .program-editor__add-day:not([id]),
  .program-editor__replace:not([id])
){
  min-height:var(--control-target);padding:8px 12px;
  border:1px solid var(--control-secondary-boundary);border-radius:var(--radius-button);
  background:var(--control-secondary-bg);color:var(--control-secondary-ink);
  font-family:var(--font-language);font-size:var(--font-size-control);
  font-weight:var(--weight-medium);line-height:var(--line-standard)
}
@media (hover: hover) and (pointer: fine){
body.is-entry-editor :is(
  .program-editor__add.pday__add:not([id]),
  .program-editor__replace:not([id])
):hover:not(:disabled),
:is(#program,[data-copy-id="program"]).program-editor-installed :is(
  .program-editor__add.pday__add:not([id]),
  .program-editor__add-day:not([id]),
  .program-editor__replace:not([id])
):hover:not(:disabled){
  background:var(--well);color:var(--control-secondary-ink);
  border-color:var(--control-secondary-boundary)
}
}
body.is-entry-editor :is(
  .program-editor__add.pday__add:not([id]),
  .program-editor__replace:not([id])
).is-pressed:not(:disabled),
:is(#program,[data-copy-id="program"]).program-editor-installed :is(
  .program-editor__add.pday__add:not([id]),
  .program-editor__add-day:not([id]),
  .program-editor__replace:not([id])
).is-pressed:not(:disabled){
  background:var(--row-pressed-bg);color:var(--control-secondary-ink);
  border-color:var(--control-secondary-boundary)
}
body.is-entry-editor :is(
  .program-editor__add.pday__add:not([id]),
  .program-editor__replace:not([id])
).is-pressed:not(:disabled),
:is(#program,[data-copy-id="program"]).program-editor-installed :is(
  .program-editor__add.pday__add:not([id]),
  .program-editor__add-day:not([id]),
  .program-editor__replace:not([id])
).is-pressed:not(:disabled){transform:var(--control-pressed-transform)}
body.is-entry-editor :is(
  .program-editor__add.pday__add:not([id]),
  .program-editor__replace:not([id])
):disabled,
:is(#program,[data-copy-id="program"]).program-editor-installed :is(
  .program-editor__add.pday__add:not([id]),
  .program-editor__add-day:not([id]),
  .program-editor__replace:not([id])
):disabled{
  background:var(--control-secondary-bg);color:var(--color-disabled-reason);
  border-color:var(--boundary-decorative);opacity:1;cursor:not-allowed;transform:none
}
body.is-entry-editor .program-editor__remove:not([id]),
:is(#program,[data-copy-id="program"]).program-editor-installed .program-editor__remove:not([id]){
  min-height:var(--control-target);padding:8px 12px;
  border:1px solid var(--control-destructive-boundary);border-radius:var(--radius-button);
  background:var(--control-destructive-bg);color:var(--control-destructive-ink);
  font-family:var(--font-language);font-size:var(--font-size-control);
  font-weight:var(--weight-medium);line-height:var(--line-standard)
}
@media (hover: hover) and (pointer: fine){
body.is-entry-editor .program-editor__remove:not([id]):hover:not(:disabled),
:is(#program,[data-copy-id="program"]).program-editor-installed .program-editor__remove:not([id]):hover:not(:disabled){
  background:var(--well);color:var(--control-destructive-ink);
  border-color:var(--control-destructive-boundary)
}
}
body.is-entry-editor .program-editor__remove:not([id]).is-pressed:not(:disabled),
:is(#program,[data-copy-id="program"]).program-editor-installed .program-editor__remove:not([id]).is-pressed:not(:disabled){
  background:var(--row-pressed-bg);color:var(--control-destructive-ink);
  border-color:var(--control-destructive-boundary)
}
body.is-entry-editor .program-editor__remove:not([id]).is-pressed:not(:disabled),
:is(#program,[data-copy-id="program"]).program-editor-installed .program-editor__remove:not([id]).is-pressed:not(:disabled){
  transform:var(--control-pressed-transform)
}
body.is-entry-editor .program-editor__remove:not([id]):disabled,
:is(#program,[data-copy-id="program"]).program-editor-installed .program-editor__remove:not([id]):disabled{
  background:var(--control-destructive-bg);color:var(--color-disabled-reason);
  border-color:var(--boundary-decorative);opacity:1;cursor:not-allowed;transform:none
}
body.is-entry-editor #entryProgramName,
:is(#onbBody.entry-route--recommend, #onbBody.entry-route--custom, #onbBody.entry-route--browse, #onbBody.entry-route--build) #entryProgramName{
  min-height:var(--control-target);border:1px solid var(--control-field-boundary);
  border-radius:var(--radius-control);background:var(--control-field-bg);
  color:var(--control-field-ink);font-family:var(--font-language);
  font-size:var(--font-size-control);font-weight:var(--weight-medium)
}
@media (hover: hover) and (pointer: fine){
:is(#onbBody.entry-route--recommend, #onbBody.entry-route--custom, #onbBody.entry-route--browse, #onbBody.entry-route--build) #entryProgramName:hover:not(:disabled){
  background:var(--control-field-bg);color:var(--control-field-ink);
  border-color:var(--control-field-boundary)
}
}
:is(#onbBody.entry-route--recommend, #onbBody.entry-route--custom, #onbBody.entry-route--browse, #onbBody.entry-route--build) #entryProgramName.is-pressed:not(:disabled){
  background:var(--control-field-bg);color:var(--control-field-ink);
  border-color:var(--control-field-boundary)
}
:is(#onbBody.entry-route--recommend, #onbBody.entry-route--custom, #onbBody.entry-route--browse, #onbBody.entry-route--build) #entryProgramName:focus-visible{
  outline:var(--control-focus-outline);outline-offset:2px
}
:is(#onbBody.entry-route--recommend, #onbBody.entry-route--custom, #onbBody.entry-route--browse, #onbBody.entry-route--build) #entryProgramName:is([aria-invalid="true"],.is-invalid){
  border-color:var(--control-error-boundary);box-shadow:none
}
:is(#onbBody.entry-route--recommend, #onbBody.entry-route--custom, #onbBody.entry-route--browse, #onbBody.entry-route--build) #entryProgramName:disabled{
  background:var(--control-field-bg);color:var(--color-disabled-reason);
  border-color:var(--boundary-decorative);opacity:1;cursor:not-allowed
}
#onbBody.entry-route--build .entry__group-lab{
  color:var(--color-ink-secondary);font-family:var(--font-language);
  font-size:var(--font-size-label);font-weight:var(--weight-semibold);
  line-height:var(--line-standard)
}

/* Resume is a standalone recovery notice, not a rendered entry step. Keep its
   existing surface and hierarchy while mapping its content and actions to the
   frozen entry surface, type, and control roles. */
#onboarding:has(.entry__resume) #onbCancel{
  min-height:var(--control-target);border-color:var(--control-quiet-boundary);
  border-radius:var(--radius-control);background:var(--control-quiet-bg);
  color:var(--control-quiet-ink);font-family:var(--font-language);
  font-size:var(--font-size-control);font-weight:var(--weight-medium);
  line-height:var(--line-standard)
}
@media (hover: hover) and (pointer: fine){
#onboarding:has(.entry__resume) #onbCancel:hover:not(:disabled){
  background:var(--well);color:var(--control-quiet-ink);
  border-color:var(--control-quiet-boundary)
}
}
#onboarding:has(.entry__resume) #onbCancel.is-pressed:not(:disabled){
  background:var(--row-pressed-bg);color:var(--control-quiet-ink);
  border-color:var(--control-quiet-boundary)
}
#onboarding:has(.entry__resume) #onbCancel.is-pressed:not(:disabled){transform:var(--control-pressed-transform)}
#onboarding:has(.entry__resume) #onbCancel:focus-visible{
  outline:var(--control-focus-outline);outline-offset:2px
}
#onboarding:has(.entry__resume) #onbCancel:disabled{
  background:var(--control-quiet-bg);color:var(--color-disabled-reason);
  border-color:var(--boundary-decorative);opacity:1;cursor:not-allowed;transform:none
}
#onbBody:has(.entry__resume) #entryResumeContinue{
  background:var(--control-primary-bg);color:var(--control-primary-ink);
  border-color:var(--control-primary-boundary)
}
@media (hover: hover) and (pointer: fine){
#onbBody:has(.entry__resume) #entryResumeContinue:hover:not(:disabled){
  background:var(--control-primary-bg);color:var(--control-primary-ink);
  border-color:var(--control-primary-boundary)
}
}
#onbBody:has(.entry__resume) #entryResumeContinue.is-pressed:not(:disabled){
  background:var(--control-primary-bg);color:var(--control-primary-ink);
  border-color:var(--control-primary-boundary)
}
#onbBody:has(.entry__resume) #entryResumeContinue.is-pressed:not(:disabled){transform:var(--control-pressed-transform)}
#onbBody:has(.entry__resume) #entryResumeContinue:focus-visible,
#onbBody:has(.entry__resume) #entryResumeRestart:focus-visible{
  outline:var(--control-focus-outline);outline-offset:2px
}
#onbBody:has(.entry__resume) #entryResumeContinue:disabled{
  background:var(--control-primary-disabled-bg);color:var(--control-primary-disabled-ink);
  border-color:var(--boundary-decorative);opacity:1;cursor:not-allowed;transform:none
}
#onbBody:has(.entry__resume) #entryResumeRestart{
  background:var(--control-destructive-bg);color:var(--control-destructive-ink);
  border-color:var(--control-destructive-boundary)
}
@media (hover: hover) and (pointer: fine){
#onbBody:has(.entry__resume) #entryResumeRestart:hover:not(:disabled){
  background:var(--well);color:var(--control-destructive-ink);
  border-color:var(--control-destructive-boundary)
}
}
#onbBody:has(.entry__resume) #entryResumeRestart.is-pressed:not(:disabled){
  background:var(--row-pressed-bg);color:var(--control-destructive-ink);
  border-color:var(--control-destructive-boundary)
}
#onbBody:has(.entry__resume) #entryResumeRestart.is-pressed:not(:disabled){transform:var(--control-pressed-transform)}
#onbBody:has(.entry__resume) #entryResumeRestart:disabled{
  background:var(--control-destructive-bg);color:var(--color-disabled-reason);
  border-color:var(--boundary-decorative);opacity:1;cursor:not-allowed;transform:none
}
#onbBody #entryRebuildRules{
  background:var(--control-primary-bg);color:var(--control-primary-ink);
  border-color:var(--control-primary-boundary)
}
@media (hover: hover) and (pointer: fine){
#onbBody #entryRebuildRules:hover:not(:disabled){
  background:var(--control-primary-bg);color:var(--control-primary-ink);
  border-color:var(--control-primary-boundary)
}
}
#onbBody #entryRebuildRules.is-pressed:not(:disabled){
  background:var(--control-primary-bg);color:var(--control-primary-ink);
  border-color:var(--control-primary-boundary)
}
#onbBody #entryRebuildRules.is-pressed:not(:disabled){transform:var(--control-pressed-transform)}
#onbBody #entryRebuildRules:focus-visible{
  outline:var(--control-focus-outline);outline-offset:2px
}
#onbBody #entryRebuildRules:disabled{
  background:var(--control-primary-disabled-bg);color:var(--control-primary-disabled-ink);
  border-color:var(--boundary-decorative);opacity:1;cursor:not-allowed;transform:none
}

/* Import follows the same frozen control roles as the other Plan 054 routes.
   Its file review is outside #onbBody, so those owners are styled separately. */
#onboarding:has(#onbBody.entry-route--import) :is(#onbCancel, #onbBack){
  min-height:var(--control-target);border-color:var(--control-quiet-boundary);
  border-radius:var(--radius-control);background:var(--control-quiet-bg);
  color:var(--control-quiet-ink);font-family:var(--font-language);
  font-size:var(--font-size-control);font-weight:var(--weight-medium);line-height:var(--line-standard)
}
@media (hover: hover) and (pointer: fine){
#onboarding:has(#onbBody.entry-route--import) :is(#onbCancel, #onbBack):hover:not(:disabled){
  background:var(--well);color:var(--control-quiet-ink);border-color:var(--control-quiet-boundary)
}
}
#onboarding:has(#onbBody.entry-route--import) :is(#onbCancel, #onbBack).is-pressed:not(:disabled){
  background:var(--row-pressed-bg);color:var(--control-quiet-ink);border-color:var(--control-quiet-boundary)
}
#onboarding:has(#onbBody.entry-route--import) :is(#onbCancel, #onbBack).is-pressed:not(:disabled){transform:var(--control-pressed-transform)}
#onboarding:has(#onbBody.entry-route--import) :is(#onbCancel, #onbBack):focus-visible,
#onbBody.entry-route--import :is(
  #entryImportPick, #entryFreeformContinue, #entryFreeformClipboard, #entryFreeformReview,
  #entryFreeformSubmitGaps, #entryActivate, #entryEdit, #entryRestart,
  #entryFreeformCopy, #entryFreeformCopyRepair, #entryFreeformEditSource,
  #entryFreeformTryAnother, #entryFreeformBackToReply, #entryFreeformStartOver,
  #entryFreeformSwitch, #entryFreeformFile, .btn.btn--steel:not(.btn--destructive):not([id]),
  .entry__freeform-app:not([id]), .improw__btn, summary
):focus-visible,
#importReview :is(#importBack, #importReviewCancel, #importCommit, .improw__btn, summary):focus-visible{
  outline:var(--control-focus-outline);outline-offset:2px
}
#onboarding:has(#onbBody.entry-route--import) :is(#onbCancel, #onbBack):disabled{
  background:var(--control-quiet-bg);color:var(--color-disabled-reason);
  border-color:var(--boundary-decorative);opacity:1;cursor:not-allowed;transform:none
}

#onbBody.entry-route--import :is(.onb__q, .entry__decision h3){
  color:var(--color-ink);font-family:var(--font-language);font-size:var(--font-size-title);
  font-weight:var(--weight-semibold);line-height:var(--line-tight)
}
#onbBody.entry-route--import .onb__explain{
  color:var(--color-ink-secondary);font-family:var(--font-language);
  font-size:var(--font-size-body);line-height:var(--line-reading)
}
#onbBody.entry-route--import :is(.entry__hint, .entry__pain, .entry__notice p){
  color:var(--color-ink-secondary);font-family:var(--font-language);
  font-size:var(--font-size-body-small);line-height:var(--line-reading)
}
#onbBody.entry-route--import .entry__group-lab,
#onbBody.entry-route--import .entry__row-lab{
  color:var(--color-action-text);font-family:var(--font-language);
  font-size:var(--font-size-caption);font-weight:var(--weight-semibold);line-height:var(--line-standard)
}
#onbBody.entry-route--import :is(.entry__ident--boxed, .entry__notice, .entry__disclosure, .onb__day){
  background:var(--color-surface);border-color:var(--boundary-decorative);border-radius:var(--radius-surface)
}
#onbBody.entry-route--import .entry__source{
  color:var(--color-ink-secondary);font-family:var(--font-language);font-size:var(--font-size-body-small);line-height:var(--line-standard)
}
#onbBody.entry-route--import .entry__source span{
  color:var(--color-ink-secondary);font-family:var(--font-language);font-size:var(--font-size-label)
}
#onbBody.entry-route--import :is(.entry__rows, .entry__row){
  border-color:var(--boundary-decorative)
}
#onbBody.entry-route--import :is(.entry__row-ico){color:var(--ink-soft)}
#onbBody.entry-route--import .entry__active{
  background:var(--color-surface);border-color:var(--boundary-decorative);border-radius:var(--radius-surface);
  color:var(--color-ink-secondary);font-family:var(--font-language);
  font-size:var(--font-size-body-small);line-height:var(--line-reading)
}
#onbBody.entry-route--import #onbStepLabel{
  color:var(--color-ink-secondary);font-family:var(--font-language);
  font-size:var(--font-size-label);line-height:var(--line-standard)
}
#onbBody.entry-route--import #onbSegbar .segbar__seg{background:var(--boundary-required)}
#onbBody.entry-route--import #onbSegbar .segbar__seg.is-done,
#onbBody.entry-route--import #onbSegbar .segbar__seg.is-current{background:var(--color-action-text)}
#onbBody.entry-route--import .entry__notice[role="alert"]{border-left-color:var(--color-destructive)}
#onbBody.entry-route--import .entry__notice--warn{border-left-color:var(--color-warning)}
#onbBody.entry-route--import .entry__notice[role="alert"]>strong{color:var(--color-destructive)}
#onbBody.entry-route--import .entry__notice--warn>strong::before{color:var(--color-warning)}

#onbBody.entry-route--import :is(
  #entryFreeformContinue:where(:not(.btn--ghost)), #entryFreeformClipboard, #entryFreeformReview,
  #entryFreeformSubmitGaps, #entryActivate
){
  border-radius:var(--radius-button);background:var(--control-primary-bg);
  color:var(--control-primary-ink);border-color:var(--control-primary-boundary);
  font-family:var(--font-language);font-size:var(--font-size-control);
  font-weight:var(--weight-medium);line-height:var(--line-standard)
}
@media (hover: hover) and (pointer: fine){
#onbBody.entry-route--import :is(
  #entryFreeformContinue:where(:not(.btn--ghost)), #entryFreeformClipboard, #entryFreeformReview,
  #entryFreeformSubmitGaps, #entryActivate
):hover:not(:disabled){
  background:var(--control-primary-bg);color:var(--control-primary-ink);border-color:var(--control-primary-boundary)
}
}
#onbBody.entry-route--import :is(
  #entryFreeformContinue:where(:not(.btn--ghost)), #entryFreeformClipboard, #entryFreeformReview,
  #entryFreeformSubmitGaps, #entryActivate
).is-pressed:not(:disabled){
  background:var(--control-primary-bg);color:var(--control-primary-ink);
  border-color:var(--control-primary-boundary);transform:var(--control-pressed-transform)
}
#onbBody.entry-route--import :is(
  #entryFreeformContinue:where(:not(.btn--ghost)), #entryFreeformClipboard, #entryFreeformReview,
  #entryFreeformSubmitGaps, #entryActivate
):disabled{
  background:var(--control-primary-disabled-bg);color:var(--control-primary-disabled-ink);
  border-color:var(--boundary-decorative);opacity:1;cursor:not-allowed;transform:none
}
#importCommit{
  border-radius:var(--radius-button);background:var(--control-primary-bg);
  color:var(--control-primary-ink);border-color:var(--control-primary-boundary);
  font-family:var(--font-language);font-size:var(--font-size-control);
  font-weight:var(--weight-medium);line-height:var(--line-standard)
}
@media (hover: hover) and (pointer: fine){
#importCommit:hover:not(:disabled){background:var(--control-primary-bg);color:var(--control-primary-ink);border-color:var(--control-primary-boundary)}
}
#importCommit.is-pressed:not(:disabled){background:var(--control-primary-bg);color:var(--control-primary-ink);border-color:var(--control-primary-boundary);transform:var(--control-pressed-transform)}
#importCommit:focus-visible,#importBack:focus-visible,#importReviewCancel:focus-visible{outline:var(--control-focus-outline);outline-offset:2px}
#importCommit:disabled{background:var(--control-primary-disabled-bg);color:var(--control-primary-disabled-ink);border-color:var(--boundary-decorative);opacity:1;cursor:not-allowed;transform:none}

#onbBody.entry-route--import :is(
  #entryEdit, #entryFreeformCopy, #entryFreeformCopyRepair, #entryFreeformEditSource,
  #entryFreeformTryAnother, .btn.btn--steel:not(.btn--destructive):not([id]), .entry__freeform-app:not([id])
){
  min-height:var(--control-target);border:1px solid var(--control-secondary-boundary);
  border-radius:var(--radius-button);background:var(--control-secondary-bg);color:var(--control-secondary-ink);
  font-family:var(--font-language);font-size:var(--font-size-control);
  font-weight:var(--weight-medium);line-height:var(--line-standard)
}
@media (hover: hover) and (pointer: fine){
#onbBody.entry-route--import :is(
  #entryEdit, #entryFreeformCopy, #entryFreeformCopyRepair, #entryFreeformEditSource,
  #entryFreeformTryAnother, .btn.btn--steel:not(.btn--destructive):not([id]), .entry__freeform-app:not([id])
):hover:not(:disabled){
  background:var(--well);color:var(--control-secondary-ink);border-color:var(--control-secondary-boundary)
}
}
#onbBody.entry-route--import :is(
  #entryEdit, #entryFreeformCopy, #entryFreeformCopyRepair, #entryFreeformEditSource,
  #entryFreeformTryAnother, .btn.btn--steel:not(.btn--destructive):not([id]), .entry__freeform-app:not([id])
).is-pressed:not(:disabled){
  background:var(--row-pressed-bg);color:var(--control-secondary-ink);border-color:var(--control-secondary-boundary)
}
#onbBody.entry-route--import :is(
  #entryEdit, #entryFreeformCopy, #entryFreeformCopyRepair, #entryFreeformEditSource,
  #entryFreeformTryAnother, .btn.btn--steel:not(.btn--destructive):not([id]), .entry__freeform-app:not([id])
).is-pressed:not(:disabled){transform:var(--control-pressed-transform)}
#onbBody.entry-route--import :is(
  #entryEdit, #entryFreeformCopy, #entryFreeformCopyRepair, #entryFreeformEditSource,
  #entryFreeformTryAnother, .btn.btn--steel:not(.btn--destructive):not([id]), .entry__freeform-app:not([id])
):disabled{
  background:var(--control-secondary-bg);color:var(--color-disabled-reason);
  border-color:var(--boundary-decorative);opacity:1;cursor:not-allowed;transform:none
}
@media (hover: hover) and (pointer: fine){
#onbBody.entry-route--import .entry__freeform-app:is(.is-disabled, [aria-disabled="true"]):hover{
  background:var(--control-secondary-bg);color:var(--color-disabled-reason);
  border-color:var(--boundary-decorative);opacity:1;cursor:not-allowed;transform:none
}
}
#onbBody.entry-route--import .entry__freeform-app:is(.is-disabled, [aria-disabled="true"]),
#onbBody.entry-route--import .entry__freeform-app:is(.is-disabled, [aria-disabled="true"]).is-pressed{
  background:var(--control-secondary-bg);color:var(--color-disabled-reason);
  border-color:var(--boundary-decorative);opacity:1;cursor:not-allowed;transform:none
}

#onbBody.entry-route--import :is(#entryFreeformFile, #entryFreeformBackToReply),
#onbBody.entry-route--import #entryFreeformContinue.btn--ghost,
#importBack,#importReviewCancel{
  min-height:var(--control-target);border-color:var(--control-quiet-boundary);
  border-radius:var(--radius-control);background:var(--control-quiet-bg);color:var(--control-quiet-ink);
  font-family:var(--font-language);font-size:var(--font-size-control);
  font-weight:var(--weight-medium);line-height:var(--line-standard)
}
@media (hover: hover) and (pointer: fine){
#onbBody.entry-route--import :is(#entryFreeformFile, #entryFreeformBackToReply):hover:not(:disabled),
#onbBody.entry-route--import #entryFreeformContinue.btn--ghost:hover:not(:disabled),
#importBack:hover:not(:disabled),
#importReviewCancel:hover:not(:disabled){
  background:var(--well);color:var(--control-quiet-ink);border-color:var(--control-quiet-boundary)
}
}
#onbBody.entry-route--import :is(#entryFreeformFile, #entryFreeformBackToReply).is-pressed:not(:disabled),
#onbBody.entry-route--import #entryFreeformContinue.btn--ghost.is-pressed:not(:disabled),
#importBack.is-pressed:not(:disabled),
#importReviewCancel.is-pressed:not(:disabled){
  background:var(--row-pressed-bg);color:var(--control-quiet-ink);border-color:var(--control-quiet-boundary)
}
#onbBody.entry-route--import :is(#entryFreeformFile, #entryFreeformBackToReply).is-pressed:not(:disabled),
#onbBody.entry-route--import #entryFreeformContinue.btn--ghost.is-pressed:not(:disabled),
#importBack.is-pressed:not(:disabled),#importReviewCancel.is-pressed:not(:disabled){transform:var(--control-pressed-transform)}
#onbBody.entry-route--import :is(#entryFreeformFile, #entryFreeformBackToReply):disabled,
#onbBody.entry-route--import #entryFreeformContinue.btn--ghost:disabled,
#importBack:disabled,#importReviewCancel:disabled{
  background:var(--control-quiet-bg);color:var(--color-disabled-reason);
  border-color:var(--boundary-decorative);opacity:1;cursor:not-allowed;transform:none
}
#onbBody.entry-route--import #entryFreeformStartOver,
#onbBody.entry-route--import #entryRestart{
  min-height:var(--control-target);border:1px solid var(--control-destructive-boundary);
  border-radius:var(--radius-button);background:var(--control-destructive-bg);color:var(--control-destructive-ink);
  font-family:var(--font-language);font-size:var(--font-size-control);
  font-weight:var(--weight-medium);line-height:var(--line-standard)
}
@media (hover: hover) and (pointer: fine){
#onbBody.entry-route--import :is(#entryFreeformStartOver, #entryRestart):hover:not(:disabled){
  background:var(--well);color:var(--control-destructive-ink);border-color:var(--control-destructive-boundary)
}
}
#onbBody.entry-route--import :is(#entryFreeformStartOver, #entryRestart).is-pressed:not(:disabled){
  background:var(--row-pressed-bg);color:var(--control-destructive-ink);border-color:var(--control-destructive-boundary)
}
#onbBody.entry-route--import :is(#entryFreeformStartOver, #entryRestart).is-pressed:not(:disabled){transform:var(--control-pressed-transform)}
#onbBody.entry-route--import :is(#entryFreeformStartOver, #entryRestart):disabled{
  background:var(--control-destructive-bg);color:var(--color-disabled-reason);
  border-color:var(--boundary-decorative);opacity:1;cursor:not-allowed;transform:none
}

@media (hover: hover) and (pointer: fine){
#importRows .improw__btn:not(.improw__btn--change):not([id]):hover:not(:disabled){
  background:var(--well);color:var(--control-selection-ink);border-color:var(--control-selection-boundary)
}
}
#importRows .improw__btn:not(.improw__btn--change):not([id]).is-pressed:not(:disabled){
  background:var(--row-pressed-bg);color:var(--control-selection-ink);border-color:var(--control-selection-boundary)
}
#importRows .improw__btn:not(.improw__btn--change):not([id]).is-pressed:not(:disabled){transform:var(--control-pressed-transform)}
#importRows .improw__btn:not(.improw__btn--change):not([id]):disabled{
  background:var(--control-selection-bg);color:var(--color-disabled-reason);
  border-color:var(--boundary-decorative);opacity:1;cursor:not-allowed;transform:none
}
#importRows .improw__btn.improw__btn--change:not([id]){
  min-height:var(--control-target);border-color:var(--control-quiet-boundary);border-radius:var(--radius-control);
  background:var(--control-quiet-bg);color:var(--control-quiet-ink);
  font-family:var(--font-language);font-size:var(--font-size-control);font-weight:var(--weight-medium);line-height:var(--line-standard)
}
@media (hover: hover) and (pointer: fine){
#importRows .improw__btn.improw__btn--change:not([id]):hover:not(:disabled){
  background:var(--well);color:var(--control-quiet-ink);border-color:var(--control-quiet-boundary)
}
}
#importRows .improw__btn.improw__btn--change:not([id]).is-pressed:not(:disabled){
  background:var(--row-pressed-bg);color:var(--control-quiet-ink);border-color:var(--control-quiet-boundary)
}
#importRows .improw__btn.improw__btn--change:not([id]).is-pressed:not(:disabled){transform:var(--control-pressed-transform)}
#importRows .improw__btn.improw__btn--change:not([id]):disabled{
  background:var(--control-quiet-bg);color:var(--color-disabled-reason);
  border-color:var(--boundary-decorative);opacity:1;cursor:not-allowed;transform:none
}
#onbBody.entry-route--import :is(#entryFreeformIn, #entryFreeformOut){
  border:1px solid var(--control-field-boundary);border-radius:var(--radius-control);
  background:var(--control-field-bg);color:var(--control-field-ink);
  font-family:var(--font-language);font-size:var(--font-size-control);font-weight:var(--weight-medium);
  line-height:var(--line-reading)
}
#onbBody.entry-route--import .entry__field-input:not([id]){
  min-height:var(--control-target);width:100%;padding:8px 14px;
  border:1px solid var(--control-field-boundary);border-radius:var(--radius-control);
  background:var(--control-field-bg);color:var(--control-field-ink);
  font-family:var(--font-language);font-size:var(--font-size-control);font-weight:var(--weight-medium);line-height:var(--line-standard)
}
@media (hover: hover) and (pointer: fine){
#onbBody.entry-route--import :is(#entryFreeformIn, #entryFreeformOut, .entry__field-input:not([id])):hover:not(:disabled){
  background:var(--control-field-bg);color:var(--control-field-ink);border-color:var(--control-field-boundary)
}
}
#onbBody.entry-route--import :is(#entryFreeformIn, #entryFreeformOut, .entry__field-input:not([id])):active:not(:disabled){
  background:var(--control-field-bg);color:var(--control-field-ink);border-color:var(--control-field-boundary)
}
#onbBody.entry-route--import :is(#entryFreeformIn, #entryFreeformOut, .entry__field-input:not([id])):is([aria-invalid="true"], .is-invalid){
  border-color:var(--control-error-boundary);box-shadow:none
}
#onbBody.entry-route--import :is(#entryFreeformIn, #entryFreeformOut, .entry__field-input:not([id])):disabled{
  background:var(--control-field-bg);color:var(--color-disabled-reason);
  border-color:var(--boundary-decorative);opacity:1;cursor:not-allowed
}
#onbBody.entry-route--import :is(.entry__freeform-preview, .entry__original-text)>summary,
#importReview :is(.entry__freeform-preview, .entry__original-text, .improw__more)>summary{
  min-height:var(--control-target);padding:10px 0;cursor:pointer;
  border-color:var(--control-disclosure-boundary);border-radius:var(--radius-control);
  background:var(--control-disclosure-bg);color:var(--control-disclosure-ink);
  font-family:var(--font-language);font-size:var(--font-size-control);
  font-weight:var(--weight-medium);line-height:var(--line-standard)
}
@media (hover: hover) and (pointer: fine){
#onbBody.entry-route--import :is(.entry__freeform-preview, .entry__original-text)>summary:hover,
#importReview :is(.entry__freeform-preview, .entry__original-text, .improw__more)>summary:hover{background:var(--well);color:var(--control-disclosure-ink)}
}
#onbBody.entry-route--import :is(.entry__freeform-preview, .entry__original-text)>summary.is-pressed,
#importReview :is(.entry__freeform-preview, .entry__original-text, .improw__more)>summary.is-pressed{
  background:var(--row-pressed-bg);color:var(--control-disclosure-ink);transform:var(--control-pressed-transform)
}
#onbBody.entry-route--import :is(.entry__freeform-preview, .entry__original-text)[open]>summary,
#importReview :is(.entry__freeform-preview, .entry__original-text, .improw__more)[open]>summary{border-bottom-color:var(--boundary-decorative)}

/* ---- Plan 064 R4c: the import route ----
   Entry-scoped rules for the import door, the paste door and the file review,
   after the Plan 058 import blocks above and before R4a's shell block, so the
   shell's own selectors keep their place in the cascade. Ink is the voice
   here: nothing on this route is an accent except the primary's arrow. */

/* The way out to Build is a quiet row under the door switch. */
.entry__switch--doors{flex-direction:column;align-items:center;gap:var(--space-4)}
#onbBody.entry-route--import #entryWriteOwn{
  min-height:var(--control-target);border-color:var(--control-quiet-boundary);
  border-radius:var(--radius-control);background:var(--control-quiet-bg);color:var(--control-quiet-ink);
  font-family:var(--font-language);font-size:var(--font-size-control);
  font-weight:var(--weight-medium);line-height:var(--line-standard)
}
@media (hover: hover) and (pointer: fine){
#onbBody.entry-route--import #entryWriteOwn:hover:not(:disabled){
  background:var(--well);color:var(--control-quiet-ink);border-color:var(--control-quiet-boundary)
}
}
#onbBody.entry-route--import #entryWriteOwn.is-pressed:not(:disabled){
  background:var(--row-pressed-bg);color:var(--control-quiet-ink);border-color:var(--control-quiet-boundary)
}
#onbBody.entry-route--import #entryWriteOwn.is-pressed:not(:disabled){transform:var(--control-pressed-transform)}
#onbBody.entry-route--import #entryWriteOwn:focus-visible{outline:var(--control-focus-outline);outline-offset:2px}
#onbBody.entry-route--import #entryWriteOwn:disabled{
  background:var(--control-quiet-bg);color:var(--color-disabled-reason);
  border-color:var(--boundary-decorative);opacity:1;cursor:not-allowed;transform:none
}

/* Fields are asked as sentences, not as column heads. */
#onbBody.entry-route--import .entry__field>span{
  font-size:var(--font-size-body);font-weight:var(--weight-semibold);letter-spacing:0;
  line-height:var(--line-standard);text-transform:none;color:var(--ink)
}
#onbBody.entry-route--import .entry__gaps-list{gap:var(--space-8);margin:var(--space-18) 0 var(--space-12)}

/* What was pasted, what stays on the device and what was left out read as
   quiet bands between hairlines, never as boxes inside the page. */
#onbBody.entry-route--import .entry__freeform-summary{
  margin:0 0 var(--space-18);padding:var(--space-8) 0;border:0;border-radius:var(--radius-none);background:transparent;
  border-top:1px solid var(--boundary-decorative);border-bottom:1px solid var(--boundary-decorative)
}
#onbBody.entry-route--import .entry__explain{
  margin:var(--space-14) 0;padding:0;border:0;border-radius:var(--radius-none);background:transparent;
  color:var(--color-ink-secondary);font-size:var(--font-size-body-small);line-height:var(--line-reading)
}
#onbBody.entry-route--import .entry__notice--info,
#importReview .entry__notice--info{
  margin:var(--space-14) 0;padding:var(--space-12) 0 var(--space-12) var(--space-14);
  border:0;border-top:1px solid var(--boundary-decorative);border-bottom:1px solid var(--boundary-decorative);
  border-left:3px solid var(--boundary-required);border-radius:var(--radius-none);background:transparent;
  color:var(--color-ink-secondary);font-size:var(--font-size-body-small);line-height:var(--line-reading)
}
#onbBody.entry-route--import .entry__freeform-prompt-preview,
#onbBody.entry-route--import .entry__original-text,
#importReview .entry__original-text{
  border-radius:var(--radius-none);border-width:1px 0;background:transparent
}

/* A file import's week reads the way every other review's does. */
#onbBody.entry-route--import .onb__dayname>span:not(.onb__daynum){
  color:var(--color-ink-secondary);font-family:var(--font-language);
  font-size:var(--font-size-body-small);line-height:var(--line-standard)
}

/* The review of the matched exercises lives in the route's chrome: Back and
   Cancel on one row, where the lifter is, the one title, then the rows and a
   pinned primary. It is its own scroll container, as #onboarding is. */
#importReview.active{
  --onb-pad-l:max(var(--gut),env(safe-area-inset-left));
  --onb-pad-r:max(var(--gut),env(safe-area-inset-right));
  position:fixed;inset:0;z-index:50;overflow:auto;background:var(--bg);
  padding:calc(var(--space-12) + env(safe-area-inset-top)) var(--onb-pad-r) 0 var(--onb-pad-l);overscroll-behavior:contain;}
/* #453: like #onboarding, this layer scrolls above the shell's status-bar band,
   so it paints the same paper band over its own top inset. */
#importReview.active::before{content:"";position:fixed;top:0;left:0;right:0;z-index:20;
  height:env(safe-area-inset-top,0px);background:var(--bg);pointer-events:none}
#importBack::before{
  content:"";flex:none;width:var(--control-icon-size);height:var(--control-icon-size);background:currentColor;
  -webkit-mask:no-repeat center/contain;mask:no-repeat center/contain;
  -webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='15 6 9 12 15 18'/%3E%3C/svg%3E");
  mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='15 6 9 12 15 18'/%3E%3C/svg%3E")
}
#importReview .impreview{padding:0;margin-bottom:calc(var(--space-26) + env(safe-area-inset-bottom))}
#importReview .impreview__head{
  margin:var(--space-18) 0 var(--space-8);font-size:var(--font-size-title);font-weight:var(--weight-semibold);
  line-height:var(--line-tight);letter-spacing:0;text-wrap:balance;overflow-wrap:anywhere;color:var(--ink)
}
#importReview .impreview__head:focus-visible{outline:none}
#importReview .onb__explain{
  margin:0 0 var(--space-12);font-size:var(--font-size-body);line-height:var(--line-reading);color:var(--color-ink-secondary)
}
#importReview .impreview__file{margin:0 0 var(--space-4);overflow-wrap:anywhere}
#importReview .impcounts{margin:var(--space-14) 0 var(--space-4)}
#importReview .impcount{align-items:flex-start;gap:var(--space-4);padding:var(--space-12) var(--space-8) var(--space-12) 0;text-align:left}
#importReview .impcount+.impcount{border-left:0;padding-left:0}
#importReview .impcount b{font-weight:var(--weight-medium)}
#importReview .improw{padding:var(--space-14) 0}
#importReview .improw.is-folded{padding:var(--space-12) 0}
#importReview .impbadge.is-open{color:var(--color-ink)}
#importReview .impreview__safe{margin:var(--space-26) 0 0;text-align:left}
#importReview .impreview__nav{margin-top:0}

/* Today and day choice use the frozen control roles. */
#todayDash .btn--cta{
  min-height:54px;border:1px solid var(--control-primary-boundary);border-radius:var(--radius-button);
  background:var(--control-primary-bg);color:var(--control-primary-ink);
  font-family:var(--font-language);font-size:var(--font-size-control);font-weight:var(--weight-semibold);line-height:var(--line-standard)
}
#todayDash .btn--cta::after{color:var(--control-primary-ink)}
#todayDash .btn--cta.is-pressed:not(:disabled){transform:var(--control-pressed-transform)}
#todayDash .btn--cta:focus-visible{outline:var(--control-focus-outline);outline-offset:2px}
#todayDash .btn--cta:disabled{
  background:var(--control-primary-disabled-bg);color:var(--control-primary-disabled-ink);
  border-color:var(--boundary-decorative);opacity:1;cursor:not-allowed;transform:none
}
/* "Change day ›" trails the day's title as a quiet action (the prototype, owner 2026-10-28): ink, semibold, small, a 44px
   target with no box; pressed, the row wash. It wraps under the title, left-aligned, when both do not fit one line. */
.today-dayhead{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;column-gap:var(--space-12);row-gap:0}
.today-dayhead .today-session__name--day{flex:1 1 auto;min-width:0}
#chooseAnotherDay{
  display:inline-flex;align-items:center;gap:6px;flex:none;min-height:var(--control-target);margin:0 0 0 calc(-1 * var(--space-8));padding:0 0 0 var(--space-8);
  border:0;border-radius:var(--radius-pill);background:transparent;color:var(--color-ink);white-space:nowrap;
  font-family:var(--font-language);font-size:var(--font-size-body-small);font-weight:var(--weight-semibold);line-height:var(--line-standard)
}
#chooseAnotherDay .chevron{width:14px;height:14px}
.today-dayhead #chooseAnotherDay{align-self:center}
@media (hover: hover) and (pointer: fine){
#chooseAnotherDay:hover:not(:disabled){background:var(--row-pressed-bg)}
#todayDash #upNextBtn:hover:not(:disabled){
  background:var(--well);color:var(--control-quiet-ink);border-color:var(--control-quiet-boundary)
}
}
#chooseAnotherDay.is-pressed:not(:disabled){background:var(--row-pressed-bg);transform:none}
#todayDash #upNextBtn.is-pressed:not(:disabled){
  background:var(--row-pressed-bg);color:var(--control-quiet-ink);transform:var(--control-pressed-transform)
}
#chooseAnotherDay:focus-visible,#todayDash #upNextBtn:focus-visible{
  outline:var(--control-focus-outline);outline-offset:2px
}
#todayDash #upNextBtn:disabled{
  background:var(--control-quiet-bg);color:var(--color-disabled-reason);border-color:var(--boundary-decorative);
  opacity:1;cursor:not-allowed;transform:none
}
#todayDash #upNextBtn{
  background:var(--control-quiet-bg);color:var(--control-quiet-ink);border:0;border-bottom:1px solid var(--boundary-decorative);
  font-family:var(--font-language);font-size:var(--font-size-body);line-height:var(--line-standard)
}
#todayDash #upNextBtn .listrow__title{font-family:var(--font-language);font-size:var(--font-size-body);font-weight:var(--weight-semibold);line-height:var(--line-standard);color:var(--color-ink)}
#todayDash #upNextBtn .listrow__sub{font-family:var(--font-language);font-size:var(--font-size-body-small);line-height:var(--line-reading);color:var(--color-ink-secondary)}
@media (hover: hover) and (pointer: fine){
#todayDash #upNextBtn:hover:not(:disabled){border-bottom-color:var(--boundary-decorative)}
}
#todayDash #upNextBtn.is-pressed:not(:disabled){border-bottom-color:var(--boundary-decorative)}

/* Progress control states use the frozen selection, disclosure, navigation, and action roles. */
#stats .page-title{font-family:var(--font-language);font-size:var(--font-size-title);font-weight:var(--weight-semibold);letter-spacing:-0.02em;line-height:var(--line-tight);color:var(--color-ink)}
#stats .section-label{font-family:var(--font-language);font-size:var(--font-size-label);font-weight:var(--weight-semibold);letter-spacing:var(--track-label);text-transform:uppercase;color:var(--color-ink-secondary)}
#stats .subhead{font-family:var(--font-language);font-size:var(--font-size-label);font-weight:var(--weight-semibold);letter-spacing:var(--track-label);text-transform:uppercase;color:var(--color-ink-secondary)}
#stats .subhead::after{background:var(--boundary-decorative)}
#stats .lede{font-family:var(--font-language);font-size:var(--font-size-body-small);line-height:var(--line-reading);color:var(--color-ink-secondary)}
#stats .pr-kind{font-family:var(--font-language);font-size:var(--font-size-label);font-weight:var(--weight-semibold);line-height:var(--line-standard);border-radius:var(--radius-pill)}
#stats .pr-kind--load,#stats .pr-kind--e1rm{color:var(--color-action-text)}
#stats .pr-kind--reps{color:var(--color-ink-secondary)}
#stats .prtl__row{min-height:var(--control-target);border-radius:var(--radius-none);background:var(--control-disclosure-bg);color:var(--control-disclosure-ink);border-bottom-color:var(--control-disclosure-boundary);font-family:var(--font-language);font-size:var(--font-size-body-small);line-height:var(--line-standard)}
#stats .prtl__date{font-family:var(--font-language);font-size:var(--font-size-caption);line-height:var(--line-standard);color:var(--color-ink-secondary)}
#stats .prtl__ex{font-weight:var(--weight-medium)}
#stats .prtl__set,#stats .prtl__delta{font-family:var(--font-training-data);font-size:var(--font-size-body-small);line-height:var(--line-standard)}
#stats .prtl__set{color:var(--color-ink)}
#stats .prtl__delta{font-weight:var(--weight-semibold);color:var(--color-improved)}
#stats .vrow__name{font-family:var(--font-language);font-size:var(--font-size-body-small);line-height:var(--line-standard);color:var(--color-ink);font-weight:var(--weight-medium)}
#stats .vrow__num{font-family:var(--font-training-data);font-size:var(--font-size-body-small);line-height:var(--line-standard);color:var(--color-ink-secondary)}
#stats .vrow__num b{color:var(--color-ink);font-weight:var(--weight-semibold)}
#stats .vrow__status{min-width:0;overflow-wrap:anywhere;font-family:var(--font-language);font-size:var(--font-size-body-small);line-height:var(--line-standard);color:var(--color-action-text)}
#stats .vrow__status.is-on{color:var(--color-improved)}
#stats .vrow__bar{border-radius:var(--radius-compact)}
#stats .vrow__fill{border-radius:var(--radius-compact);background:var(--color-action)}
#stats .vrow__fill.is-high,#stats .vrow__fill.is-on{background:var(--color-improved)}
#stats .evrow{min-height:var(--control-target);background:var(--control-disclosure-bg);color:var(--control-disclosure-ink);border-bottom-color:var(--control-disclosure-boundary);border-radius:var(--radius-none);font-family:var(--font-language);font-size:var(--font-size-body-small);line-height:var(--line-standard)}
#stats .evrow__val{font-family:var(--font-training-data);font-size:var(--font-size-body-small);line-height:var(--line-standard)}
#stats .evrow__detail{border-bottom-color:var(--boundary-decorative)}
#stats button.vrow{min-width:0;min-height:var(--control-target);background:var(--control-quiet-bg);color:var(--control-quiet-ink)}
#stats .blockprogress{border-radius:var(--radius-none);font-family:var(--font-language);font-size:var(--font-size-body-small);line-height:var(--line-reading);color:var(--color-ink-secondary)}
#stats .blockprogress__title{font-family:var(--font-language);font-weight:var(--weight-semibold);font-size:var(--font-size-caption);line-height:var(--line-standard);color:var(--color-ink-secondary)}
#stats .review__summary{font-family:var(--font-language);font-size:var(--font-size-body-small);line-height:var(--line-reading);color:var(--color-ink)}
#stats .listrow__title{font-family:var(--font-language);font-size:var(--font-size-body);font-weight:var(--weight-semibold);line-height:var(--line-standard)}
#stats .listrow__sub{font-family:var(--font-language);font-size:var(--font-size-body-small);line-height:var(--line-reading);color:var(--color-ink-secondary)}
#stats .listrow__meta{font-family:var(--font-language);font-size:var(--font-size-body-small);line-height:var(--line-standard);color:var(--color-ink-secondary)}
#stats .empty{font-family:var(--font-language);font-size:var(--font-size-body-small);line-height:var(--line-reading);color:var(--color-ink-secondary);border-color:var(--boundary-decorative)}
#stats .listrow__sub{white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere}
#stats #prFilterSeg > button,#stats .seg--window > button{color:var(--color-ink-secondary)}
@media (hover: hover) and (pointer: fine){
#stats #prFilterSeg > button:hover:not(:disabled),#stats .seg--window > button:hover:not(:disabled){color:var(--control-selection-ink)}
}
#stats #prFilterSeg > button.active,#stats .seg--window > button.active{color:var(--control-selection-ink);border-bottom-color:var(--control-selected-boundary)}
#stats #prFilterSeg > button:focus-visible,#stats .seg--window > button:focus-visible{outline:var(--control-focus-outline);outline-offset:2px;border-radius:var(--radius-control)}
#stats button[role="tab"]:focus-visible{outline:var(--control-focus-outline);outline-offset:2px;border-radius:var(--radius-control)}
#stats #prFilterSeg > button:disabled,#stats .seg--window > button:disabled{color:var(--color-disabled-reason);border-bottom-color:var(--boundary-decorative);cursor:not-allowed}
@media (hover: hover) and (pointer: fine){
#stats .evrow:hover,#stats .prtl__row:hover{background:var(--well);color:var(--control-disclosure-ink)}
}
#stats .evrow.is-pressed,#stats .prtl__row.is-pressed{background:var(--row-pressed-bg);color:var(--control-disclosure-ink);transform:var(--control-pressed-transform)}
#stats .evrow:focus-visible,#stats .prtl__row:focus-visible{outline:var(--control-focus-outline);outline-offset:2px}
#stats .evrow__detail{border-bottom-color:var(--boundary-decorative)}
@media (hover: hover) and (pointer: fine){
#stats button.vrow:not(.evrow):hover{background:var(--well);color:var(--control-quiet-ink)}
}
#stats button.vrow:not(.evrow).is-pressed{background:var(--row-pressed-bg);color:var(--control-quiet-ink)}
#stats button.vrow:not(.evrow).is-pressed{transform:var(--control-pressed-transform)}
#stats button.vrow:focus-visible{outline:var(--control-focus-outline);outline-offset:2px}
/* Keep the label and value on the first row, with the full status beneath them. */
#stats button.vrow,#stats button.vrow.evrow{grid-template-columns:minmax(0,1fr) auto 16px}
#stats button.vrow .vrow__name{grid-row:1;grid-column:1;min-width:0}
#stats button.vrow .vrow__num{grid-row:1;grid-column:2;white-space:nowrap}
#stats button.vrow .vrow__status{grid-row:2;grid-column:1/3;text-align:left}
#stats button.vrow .vrow__bar{grid-row:3;grid-column:1/-1}
#stats button.vrow>.chevron{grid-row:1/3;grid-column:3;align-self:center;justify-self:end}
#volumeDash .vrow__bar{box-sizing:border-box;height:6px;border:1px solid var(--boundary-required)}
#stats #reviewPanel .blockprogress > p b{font-weight:var(--weight-semibold);color:var(--color-ink)}
#stats #reviewPanel .review__outcomes{color:var(--color-ink)}
/* Observed outcomes, one flat group per verdict: a hairline per group, the outcome's word as the group's heading with
   its count in Mono, and the lifts beneath. An outcome is a word: glyphs belong to the next target alone (owner
   decision, 2026-11-01). */
#stats #reviewPanel .review__verdicts{margin:0;padding:0;list-style:none;border-bottom:1px solid var(--boundary-decorative)}
#stats #reviewPanel .review__verdict{padding:var(--space-12) 0 var(--space-14);border-top:1px solid var(--boundary-decorative)}
#stats #reviewPanel .review__verdicthead{display:flex;align-items:center;gap:var(--space-8);margin:0 0 var(--space-4)}
#stats #reviewPanel .review__verdictword{font-family:var(--font-language);font-size:var(--font-size-body);font-weight:var(--weight-semibold);line-height:var(--line-standard);color:var(--color-ink)}
#stats #reviewPanel .review__verdictn{margin-left:auto;font-family:var(--font-training-data);font-size:var(--font-size-body);font-weight:var(--weight-medium);color:var(--color-ink-secondary)}
#stats #reviewPanel .review__lifts{margin:0;padding:0;list-style:none}
#stats #reviewPanel .review__lifts li{font-family:var(--font-language);font-size:var(--font-size-body-small);line-height:var(--line-reading);color:var(--color-ink);overflow-wrap:anywhere}
#stats #reviewPanel .review__uncompared,#stats #reviewPanel .review__none{margin:var(--space-12) 0 0;font-family:var(--font-language);font-size:var(--font-size-body-small);line-height:var(--line-reading);color:var(--color-ink-secondary)}
#stats #reviewPanel .review__none{margin:0}
#stats #reviewPanel .review__readonly{color:var(--color-warning)}
#stats #reviewPanel .review__hash{font-family:var(--font-training-data);font-size:var(--font-size-caption);line-height:var(--line-reading)}
#stats #reviewPanel .btn--cta,#stats #reviewPanel .btn--steel{min-height:var(--control-target);border-radius:var(--radius-button);font-family:var(--font-language);font-size:var(--font-size-control);font-weight:var(--weight-medium);line-height:var(--line-standard)}
#stats #reviewPanel .btn--cta{border:1px solid var(--control-primary-boundary);background:var(--control-primary-bg);color:var(--control-primary-ink);font-weight:var(--weight-semibold)}
#stats #reviewPanel .btn--steel{border:1px solid var(--control-secondary-boundary);background:var(--control-secondary-bg);color:var(--control-secondary-ink)}
@media (hover: hover) and (pointer: fine){
#stats #reviewPanel .btn--cta:hover:not(:disabled){background:var(--control-primary-bg);color:var(--control-primary-ink)}
}
@media (hover: hover) and (pointer: fine){
#stats #reviewPanel .btn--steel:hover:not(:disabled){background:var(--well);color:var(--control-secondary-ink)}
}
#stats #reviewPanel .btn--cta.is-pressed:not(:disabled),#stats #reviewPanel .btn--steel.is-pressed:not(:disabled){transform:var(--control-pressed-transform)}
#stats #reviewPanel .btn--cta:focus-visible,#stats #reviewPanel .btn--steel:focus-visible{outline:var(--control-focus-outline);outline-offset:2px}
#stats #reviewPanel .btn--cta:disabled{background:var(--control-primary-disabled-bg);color:var(--control-primary-disabled-ink);border-color:var(--boundary-decorative);opacity:1;cursor:not-allowed;transform:none}
#stats #reviewPanel .btn--steel:disabled{background:var(--control-secondary-bg);color:var(--color-disabled-reason);border-color:var(--boundary-decorative);opacity:1;cursor:not-allowed;transform:none}

/* P4d History consumers keep their read, edit, and delete hierarchy flat.
   These rules apply the frozen control roles without changing History state. */
#history :is(#calPrev,#calNext,#historySearchBtn){width:var(--control-target);height:var(--control-target);min-width:var(--control-target);min-height:var(--control-target);border:1px solid var(--control-quiet-boundary);border-radius:var(--radius-round);background:var(--control-quiet-bg);color:var(--control-quiet-ink)}
@media (hover: hover) and (pointer: fine){
}
@media (hover: hover) and (pointer: fine){
#history :is(#calPrev,#calNext,#historySearchBtn):hover:not(:disabled){background:var(--well);border-color:var(--control-quiet-boundary);color:var(--control-quiet-ink)}
}
#history :is(#calPrev,#calNext,#historySearchBtn).is-pressed:not(:disabled){transform:var(--control-pressed-transform)}
#history :is(#calPrev,#calNext,#historySearchBtn):focus-visible{outline:var(--control-focus-outline);outline-offset:2px}
#history :is(#calPrev,#calNext,#historySearchBtn):disabled{background:var(--control-quiet-bg);border-color:var(--boundary-decorative);color:var(--color-disabled-reason);opacity:1;cursor:not-allowed}
#history .back-link{min-height:var(--control-target);background:var(--control-quiet-bg);color:var(--control-quiet-ink);font-family:var(--font-language);font-size:var(--font-size-control);font-weight:var(--weight-medium);line-height:var(--line-standard)}
@media (hover: hover) and (pointer: fine){
#history .session__open:hover:not(:disabled){background:var(--well);color:var(--control-quiet-ink)}
}
#history .session__open.is-pressed:not(:disabled){background:var(--row-pressed-bg);color:var(--control-quiet-ink);transform:var(--control-pressed-transform)}
#history .session__open:focus-visible{outline:var(--control-focus-outline);outline-offset:-2px;border-radius:var(--radius-none)}
#history .session__open:disabled{background:var(--control-quiet-bg);color:var(--color-disabled-reason);opacity:1;cursor:not-allowed;transform:none}
#history .btn--cta,#history .btn--steel,#history .btn--danger{border-radius:var(--radius-button);font-family:var(--font-language);font-size:var(--font-size-control);font-weight:var(--weight-semibold);line-height:var(--line-standard)}
#history .btn--cta{border:1px solid var(--control-primary-boundary);background:var(--control-primary-bg);color:var(--control-primary-ink)}
#history .btn--steel,#history .btn--danger{min-height:var(--control-target)}
#history .btn--steel{border:1px solid var(--control-secondary-boundary);background:var(--control-secondary-bg);color:var(--control-secondary-ink)}
#history .btn--danger{border-color:transparent;background:var(--control-destructive-bg);color:var(--control-destructive-ink)}
@media (hover: hover) and (pointer: fine){
#history .btn--cta:hover:not(:disabled){background:var(--control-primary-bg);border-color:var(--control-primary-boundary);color:var(--control-primary-ink)}
}
@media (hover: hover) and (pointer: fine){
#history .btn--steel:hover:not(:disabled){background:var(--well);border-color:var(--control-secondary-boundary);color:var(--control-secondary-ink)}
}
@media (hover: hover) and (pointer: fine){
#history .btn--danger:hover:not(:disabled){background:var(--control-destructive-bg);border-color:transparent;color:var(--control-destructive-ink)}
}
#history .btn--cta.is-pressed:not(:disabled),#history .btn--steel.is-pressed:not(:disabled),#history .btn--danger.is-pressed:not(:disabled){transform:var(--control-pressed-transform)}
#history .btn--cta:focus-visible,#history .btn--steel:focus-visible,#history .btn--danger:focus-visible{outline:var(--control-focus-outline);outline-offset:2px}
#history .btn--cta:disabled{background:var(--control-primary-disabled-bg);border-color:var(--boundary-decorative);color:var(--control-primary-disabled-ink);opacity:1;cursor:not-allowed;transform:none}
#history .btn--cta:disabled::after{color:var(--color-disabled-reason)}
#history .btn--steel:disabled{background:var(--control-secondary-bg);border-color:var(--boundary-decorative);color:var(--color-disabled-reason);opacity:1;cursor:not-allowed;transform:none}
#history .btn--danger:disabled{background:var(--control-destructive-bg);border-color:transparent;color:var(--color-disabled-reason);opacity:1;cursor:not-allowed;transform:none}
@media (hover: hover) and (pointer: fine){
#history .edrow__in:hover{border-color:var(--control-field-boundary)}
}
#history .edrow__in.is-pressed{border-color:var(--control-field-boundary)}
/* A field is selected with the quiet ink ring; orange is not a field state. */
#history .edrow__in:focus{border-color:var(--boundary-selected-quiet);box-shadow:none}
#history .edrow__in:focus-visible{outline:2px solid var(--boundary-selected-quiet);outline-offset:-1px}
#history .edrow__in[aria-invalid="true"]{outline:1px solid var(--control-error-boundary);outline-offset:-2px;border-color:var(--control-error-boundary);box-shadow:none}
#history .edrow__in[aria-invalid="true"]:focus-visible{outline:2px solid var(--control-error-boundary);outline-offset:-1px}
#history .edrow__in:disabled{background:var(--control-field-bg);border-color:var(--boundary-decorative);color:var(--color-disabled-reason);opacity:1;cursor:not-allowed}
#history .histedit .sheetfield__input:focus-visible{outline:2px solid var(--boundary-selected-quiet);outline-offset:-1px}
#history .histedit .sheetfield__input[aria-invalid="true"]{border-color:var(--control-error-boundary);outline:1px solid var(--control-error-boundary);outline-offset:-2px}
#history .histedit .sheetfield__input[aria-invalid="true"]:focus-visible{outline:2px solid var(--control-error-boundary);outline-offset:-1px}
@media (hover: hover) and (pointer: fine){
#history .edrow__rm:hover:not(:disabled){background:var(--well);border-color:var(--control-quiet-boundary);color:var(--control-quiet-ink)}
}
#history .edrow__rm.is-pressed:not(:disabled){background:var(--row-pressed-bg);border-color:var(--control-quiet-boundary);color:var(--control-quiet-ink);transform:var(--control-pressed-transform)}
#history .edrow__rm:focus-visible{outline:var(--control-focus-outline);outline-offset:2px}
#history .edrow__rm:disabled{background:var(--control-quiet-bg);border-color:var(--boundary-decorative);color:var(--color-disabled-reason);opacity:1;cursor:not-allowed;transform:none}
#history .advanced{border-top-color:var(--boundary-decorative);border-bottom-color:var(--boundary-decorative)}
#history .advanced>summary{min-height:var(--control-target);font-family:var(--font-language);font-size:var(--font-size-control);font-weight:var(--weight-medium);line-height:var(--line-standard);color:var(--control-disclosure-ink)}
#history .advanced>summary::after{background:var(--control-disclosure-ink)}
@media (hover: hover) and (pointer: fine){
#history .advanced>summary:hover{background:var(--well);color:var(--control-disclosure-ink)}
}
#history .advanced>summary.is-pressed{background:var(--row-pressed-bg);transform:var(--control-pressed-transform)}
#history .advanced>summary:focus-visible{outline:var(--control-focus-outline);outline-offset:2px;border-radius:var(--radius-control)}

/* P4d Share keeps the modal's task heading readable at enlarged text while
   retaining the close action first in both DOM and visual order. */
#shareSetupSheet{
  background:var(--color-surface);border-radius:var(--radius-prominent) var(--radius-prominent) 0 0;
  box-shadow:var(--elevation-modal-shadow);
}
#shareSetupSheet .sheet__head{
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-areas:"close spacer" "title title";
  align-items:center;border-bottom-color:var(--boundary-decorative);
}
#shareSetupClose{
  grid-area:close;justify-self:start;width:auto;min-width:var(--control-target);min-height:var(--control-target);
  border-radius:var(--radius-control);background:var(--control-quiet-bg);color:var(--control-quiet-ink);
  font-family:var(--font-language);font-size:var(--font-size-control);font-weight:var(--weight-medium);line-height:var(--line-standard);
  white-space:nowrap;overflow-wrap:normal;word-break:normal;
}
#shareSetupSheet .sheet__spacer{grid-area:spacer}
#shareSetupSheet .sheet__titles{grid-area:title;text-align:center}
#shareSetupSheet .sheet__title{
  font-family:var(--font-language);font-size:var(--font-size-section-title);font-weight:var(--weight-semibold);
  line-height:var(--line-tight);color:var(--color-ink);
}
#shareSetupBody{
  margin:0;font-family:var(--font-language);font-size:var(--font-size-body);line-height:var(--line-reading);color:var(--color-ink);
}
#shareSetupSheet .sheet__foot--actions{border-top-color:var(--boundary-decorative)}
@media (hover: hover) and (pointer: fine){
#shareSetupClose:hover:not(:disabled){background:var(--well);color:var(--control-quiet-ink)}
}
#shareSetupClose.is-pressed:not(:disabled){background:var(--row-pressed-bg);transform:var(--control-pressed-transform)}
#shareSetupClose:focus-visible{outline:var(--control-focus-outline);outline-offset:2px}
#shareSetupClose:disabled{background:var(--control-quiet-bg);border-color:var(--boundary-decorative);color:var(--color-disabled-reason);opacity:1;cursor:not-allowed;transform:none}
#shareSetupCopy,.share-setup__repair{
  min-height:var(--control-target);border:1px solid var(--control-secondary-boundary);border-radius:var(--radius-button);
  background:var(--control-secondary-bg);color:var(--control-secondary-ink);
  font-family:var(--font-language);font-size:var(--font-size-control);font-weight:var(--weight-medium);line-height:var(--line-standard);
}
@media (hover: hover) and (pointer: fine){
#shareSetupCopy:hover:not(:disabled),.share-setup__repair:hover:not(:disabled){background:var(--well);border-color:var(--control-secondary-boundary);color:var(--control-secondary-ink)}
}
#shareSetupCopy.is-pressed:not(:disabled),.share-setup__repair.is-pressed:not(:disabled){background:var(--row-pressed-bg);transform:var(--control-pressed-transform)}
#shareSetupCopy:focus-visible,.share-setup__repair:focus-visible{outline:var(--control-focus-outline);outline-offset:2px}
#shareSetupCopy:disabled,.share-setup__repair:disabled{
  background:var(--control-secondary-bg);border-color:var(--boundary-decorative);color:var(--color-disabled-reason);
  opacity:1;cursor:not-allowed;transform:none;
}
#shareSetupShare{
  min-height:var(--control-target);border:1px solid var(--control-primary-boundary);border-radius:var(--radius-button);
  background:var(--control-primary-bg);color:var(--control-primary-ink);
  font-family:var(--font-language);font-size:var(--font-size-control);font-weight:var(--weight-semibold);line-height:var(--line-standard);
}
@media (hover: hover) and (pointer: fine){
#shareSetupShare:hover:not(:disabled){background:var(--control-primary-bg);border-color:var(--control-primary-boundary);color:var(--control-primary-ink)}
}
#shareSetupShare.is-pressed:not(:disabled){background:var(--control-primary-bg);border-color:var(--control-primary-boundary);color:var(--control-primary-ink);transform:var(--control-pressed-transform)}
#shareSetupShare:focus-visible{outline:var(--control-focus-outline);outline-offset:2px}
#shareSetupShare:disabled{
  background:var(--control-primary-disabled-bg);border-color:var(--boundary-decorative);color:var(--control-primary-disabled-ink);
  opacity:1;cursor:not-allowed;transform:none;
}
#shareSetupLink:focus-visible{outline:var(--control-focus-outline);outline-offset:2px}

/* @ci-domain entry,program */
/* ---- Plan 064 R4a: entry shell, hub, recovery, dialogs and the common review ----
   Entry-scoped rules only. They sit after the Plan 058 entry sections they
   refine and name existing tokens: ink is the quiet selection (the selected
   option, the featured outline), the accent stays on the current progress
   segment and the primary arrow, and every length snaps to the --space-* scale
   or to a multiple of --control-target. */

/* Shell: Back and Cancel on one row, then where the lifter is, then progress. */
.onboarding{
  --onb-pad-l:max(var(--gut),env(safe-area-inset-left));
  --onb-pad-r:max(var(--gut),env(safe-area-inset-right));
  padding-bottom:0
}
.onb__head{display:flex;flex-direction:column;gap:var(--space-8);margin-bottom:var(--space-18)}
.onb__bar{display:flex;align-items:center;justify-content:space-between;gap:var(--space-12)}
.onb__bar .back-link{
  min-width:var(--control-target);min-height:var(--control-target);padding:var(--space-8) var(--space-4);
  gap:var(--space-4);color:var(--control-quiet-ink);font-weight:var(--weight-medium)
}
.onb__bar .back-link.hidden{display:none}
#onbBack::before,.entry-hub-active #onbCancel::before{
  content:"";flex:none;width:var(--control-icon-size);height:var(--control-icon-size);background:currentColor;
  -webkit-mask:no-repeat center/contain;mask:no-repeat center/contain;
  -webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='15 6 9 12 15 18'/%3E%3C/svg%3E");
  mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='15 6 9 12 15 18'/%3E%3C/svg%3E")
}
.onb__where{display:flex;flex-wrap:wrap;align-items:baseline;gap:var(--space-4) var(--space-8)}
.onb__where:not(:has(> :not(.hidden))){display:none}
.onb__where .onb__title{
  margin:0;font-size:var(--font-size-subtitle);font-weight:var(--weight-semibold);line-height:var(--line-tight);
  text-align:left;color:var(--ink)
}
.onb__where .onb__step{
  margin:0;font-size:var(--font-size-label);font-weight:var(--weight-semibold);letter-spacing:var(--track-label);
  text-align:left;text-transform:uppercase;color:var(--ink-faint)
}
.onb__where .onb__title:not(.hidden)+.onb__step::before{content:"·";margin-right:var(--space-8)}
.onb__head .segbar{margin:0}
#onbSegbar .segbar__seg.is-done{background:var(--ink)}
#onbSegbar .segbar__seg.is-current:not(.is-done){background:var(--accent)}
.onb__body{margin-bottom:calc(var(--space-26) + env(safe-area-inset-bottom))}
#onbBody.entry-body--preview,#onbBody.entry-body--result,#onbBody.entry-body--activation_conflict{margin-bottom:0}

/* The pinned region: one primary action on the almost-solid glass under the bar's 0.5px hairline, kept
   in reach while a long screen scrolls. A blocked primary drops its arrow and
   says why directly above it. */
.onb__nav,.entry__pinned{
  position:sticky;bottom:0;z-index:2;display:flex;flex-direction:column;gap:var(--space-8);
  margin:0 calc(-1 * var(--onb-pad-r)) 0 calc(-1 * var(--onb-pad-l));
  padding:var(--space-12) var(--onb-pad-r) calc(var(--space-12) + env(safe-area-inset-bottom)) var(--onb-pad-l);
  --material:almost-solid-glass;background:var(--glass-solid-bg);-webkit-backdrop-filter:var(--bar-blur);backdrop-filter:var(--bar-blur);
  border-top:.5px solid var(--bar-edge)
}
.entry__pinned{margin-top:var(--space-26)}
.onb__nav .btn,.entry__pinned .btn{flex:0 0 auto;width:100%}
.onb__nav.hidden{display:none}
.onb__reason,.entry__reason{
  margin:0;font-size:var(--font-size-body-small);line-height:var(--line-standard);color:var(--color-disabled-reason)
}
.onb__reason[hidden]{display:none}
/* @ci-domain global */
.btn--cta.btn--noarrow:disabled{padding-inline:var(--space-18)}
/* @ci-domain entry,program */

/* Questions are sentences in ink, not column heads. */
#onbBody.entry-body .entry__group-lab.entry__question{
  display:block;margin:var(--space-26) 0 var(--space-8);font-size:var(--font-size-body);font-weight:var(--weight-semibold);
  letter-spacing:0;line-height:var(--line-standard);text-transform:none;color:var(--ink)
}
#onbBody.entry-body .entry__group-lab.entry__question:first-of-type{margin-top:var(--space-18)}

/* The answer rail: earlier answers, each one tap from being changed. */
.entry-rail{display:flex;flex-wrap:wrap;gap:var(--space-8);margin:0 0 var(--space-18)}
.entry-rail__chip{
  display:inline-flex;align-items:center;gap:var(--space-8);min-height:var(--control-target);max-width:100%;
  padding:var(--space-8) var(--space-14);border:1px solid var(--boundary-decorative);border-radius:var(--radius-pill);
  background:var(--control-quiet-bg);color:var(--control-quiet-ink);font:inherit;font-size:var(--font-size-body-small);
  font-weight:var(--weight-medium);line-height:var(--line-standard);text-align:left;cursor:pointer
}
@media (hover: hover) and (pointer: fine){
.entry-rail__chip:hover{background:var(--well)}
}
.entry-rail__chip.is-pressed{background:var(--row-pressed-bg);transform:var(--control-pressed-transform)}
.entry-rail__chip:focus-visible{outline:var(--control-focus-outline);outline-offset:2px}
.entry-rail__text{min-width:0;overflow-wrap:anywhere}
.entry-rail__edit{flex:none;width:var(--space-14);height:var(--space-14);color:var(--ink-soft)}

/* A chosen row's identity glyph takes full ink beside its mark. */
#onbBody.entry-body .radio-card.is-selected .radio-card__icon{color:var(--ink)}

/* Hub */
.entry-body--entry .entry-hub__lede{margin-bottom:var(--space-18)}
.entry-body--entry .entry__group-lab{margin:var(--space-26) 0 var(--space-8);color:var(--ink-faint)}
.entry-body--entry .entry__group-lab:first-child{margin-top:var(--space-18)}
.entry-hubgroup{display:block}
.entry-card__line{
  display:block;font-family:var(--font-language);font-size:var(--font-size-body-small);line-height:var(--line-standard);
  color:var(--color-ink-secondary)
}
.entry-card__k{
  margin-right:var(--space-4);font-size:var(--font-size-label);font-weight:var(--weight-semibold);letter-spacing:var(--track-label);
  text-transform:uppercase;color:var(--ink-faint)
}
.entry-body .entry-card--nested .entry-card__title{font-size:var(--font-size-body)}

/* "Not sure which one?" asks two short questions and ends in a route. */
.entry-helpblock{margin:0 0 var(--space-12)}
.entry-help__toggle{
  min-height:var(--control-target);padding:var(--space-8) 0;border:0;background:var(--control-disclosure-bg);
  color:var(--control-disclosure-ink);font:inherit;font-size:var(--font-size-body-small);font-weight:var(--weight-medium);
  text-decoration:underline;text-underline-offset:3px;cursor:pointer
}
.entry-help__toggle:focus-visible{outline:var(--control-focus-outline);outline-offset:2px;border-radius:var(--radius-control)}
.entry-help{
  margin:var(--space-4) 0 0;padding:var(--space-12) var(--space-14) var(--space-14);background:var(--well);
  border-top:1px solid var(--boundary-decorative);border-bottom:1px solid var(--boundary-decorative)
}
.entry-help__q{margin:var(--space-12) 0 var(--space-8);font-size:var(--font-size-body);font-weight:var(--weight-semibold);line-height:var(--line-standard)}
.entry-help__q:first-child{margin-top:0}
.entry-help__opts{display:flex;flex-wrap:wrap;gap:var(--space-8)}
.entry-help__opt{
  min-height:var(--control-target);padding:var(--space-8) var(--space-14);border:1px solid var(--control-selection-boundary);
  border-radius:var(--radius-pill);background:var(--control-selection-bg);color:var(--control-selection-ink);font:inherit;
  font-size:var(--font-size-body-small);font-weight:var(--weight-medium);line-height:var(--line-standard);text-align:left;cursor:pointer
}
@media (hover: hover) and (pointer: fine){
.entry-help__opt:hover{background:var(--well)}
}
.entry-help__opt.is-pressed{transform:var(--control-pressed-transform)}
.entry-help__opt:focus-visible{outline:var(--control-focus-outline);outline-offset:2px}
.entry-help__opt.is-selected{
  border-color:var(--boundary-selected-quiet);box-shadow:var(--elevation-selected-quiet-shadow);
  background:var(--well);font-weight:var(--weight-semibold)
}
.entry-help__go{margin-top:var(--space-14)}

/* The featured block is Recommend's first question: the goal, asked on the hub. */
.entry-feature{margin:0 0 var(--space-8)}
.entry-feature__eyebrow{
  margin:0;font-size:var(--font-size-label);font-weight:var(--weight-semibold);letter-spacing:var(--track-label);
  text-transform:uppercase;color:var(--ink-faint)
}
.entry-feature__q{margin:var(--space-4) 0 var(--space-4);font-size:var(--font-size-subtitle);font-weight:var(--weight-semibold);line-height:var(--line-tight)}
.entry-feature__facts{margin:0 0 var(--space-12);font-size:var(--font-size-caption);line-height:var(--line-standard);color:var(--color-ink-secondary)}
.entry-feature__goals{display:flex;flex-direction:column;gap:var(--space-8)}
.entry-body .entry-card.entry-goal,
.entry-body .entry-card.entry-goal[data-entry-route="recommend"]{
  min-height:calc(var(--control-target) + var(--space-12));margin:0;padding:var(--space-12) var(--space-14);
  border:1px solid var(--boundary-selected-quiet);border-radius:var(--radius-surface);background:var(--surface);color:var(--color-ink)
}
@media (hover: hover) and (pointer: fine){
.entry-body .entry-card.entry-goal[data-entry-route="recommend"]:hover{background:var(--well)}
}
.entry-body .entry-card.entry-goal[data-entry-route="recommend"].is-pressed:not(:disabled){background:var(--row-pressed-bg)}
.entry-body .entry-card.entry-goal[data-entry-route="recommend"] .entry-card__icon,
.entry-body .entry-card.entry-goal[data-entry-route="recommend"] .entry-card__go{color:var(--ink-soft)}
.entry-body .entry-goal .entry-card__title{font-size:var(--font-size-body)}

/* Doors wait while a saved draft asks first: inert, and read as unavailable. */
.entry__hub[inert] .entry-card,
.entry__hub[inert] .entry-card__title,
.entry__hub[inert] .entry-card__line,
.entry__hub[inert] .entry-card__cap,
.entry__hub[inert] .entry-feature__q,
.entry__hub[inert] .entry-help__toggle{color:var(--color-disabled-reason)}
.entry__hub[inert] .entry-card.entry-goal{border-color:var(--boundary-decorative)}

/* Resume: a hairline band with a rail, on the hub above the doors. */
.entry__resume{
  margin:0 0 var(--space-18);padding:var(--space-14) 0 var(--space-14) var(--space-14);
  border:0;border-top:1px solid var(--boundary-decorative);border-bottom:1px solid var(--boundary-decorative);
  border-left:3px solid var(--boundary-selected-quiet);border-radius:var(--radius-none);background:transparent;overflow:visible
}
.entry__resume-head{padding:0}
.entry__resume .entry__resume-ico,.entry__resume-loc .entry__resume-ico{color:var(--ink-soft)}
.entry__resume-copy h3{
  margin:0 0 var(--space-4);font-size:var(--font-size-subtitle);font-weight:var(--weight-semibold);line-height:var(--line-tight);color:var(--color-ink)
}
.entry__resume-loc{padding:var(--space-12) 0 0;border-top:0}
.entry__resume-note{margin:var(--space-12) 0 var(--space-14);font-size:var(--font-size-body-small);line-height:var(--line-standard);color:var(--color-ink-secondary)}
.entry__resume .btnrow{padding-right:var(--space-14)}

/* The common review. Program first: name, four facts, the week as hairline
   bands (first day open), then the facets, then the pinned action. */
#onbBody.entry-body .entry__group-lab.entry__section-head{
  display:block;margin:var(--space-26) 0 var(--space-12);font-size:var(--font-size-subtitle);font-weight:var(--weight-semibold);
  letter-spacing:0;line-height:var(--line-tight);text-transform:none;color:var(--ink)
}
#onbBody.entry-body .entry__ident--boxed{margin:var(--space-12) 0 0;padding:0;border:0;border-radius:var(--radius-none);background:transparent}
#onbBody.entry-body .entry__decision h3{
  margin:0 0 var(--space-4);font-size:var(--font-size-title);font-weight:var(--weight-semibold);line-height:var(--line-tight);
  letter-spacing:0;color:var(--ink)
}
#onbBody.entry-body .entry__source{margin:0;font-size:var(--font-size-body-small);color:var(--color-ink-secondary)}
.entry__strip{
  display:grid;grid-template-columns:repeat(4,minmax(0,1fr));margin:var(--space-14) 0 0;
  border-top:1px solid var(--boundary-decorative);border-bottom:1px solid var(--boundary-decorative)
}
.entry__strip-cell{display:flex;flex-direction:column;gap:var(--space-4);min-width:0;padding:var(--space-12) var(--space-8) var(--space-12) 0}
.entry__strip-value{
  font-family:var(--font-training-data);font-size:var(--font-size-metric);font-weight:var(--weight-medium);
  font-variant-numeric:tabular-nums;line-height:var(--line-tight);color:var(--ink)
}
.entry__strip-unit{font-size:var(--font-size-caption);line-height:var(--line-standard);color:var(--color-ink-secondary);overflow-wrap:anywhere}
@media (max-width:360px){.entry__strip{grid-template-columns:repeat(2,minmax(0,1fr))}}
@container (max-width:13em){.entry__strip{grid-template-columns:repeat(2,minmax(0,1fr))}}
#onbBody.entry-body .onb__review{gap:0;border-top:1px solid var(--boundary-decorative)}
#onbBody.entry-body .onb__day{
  padding:0;border:0;border-bottom:1px solid var(--boundary-decorative);border-radius:var(--radius-none);background:transparent
}
#onbBody.entry-body .onb__dayname{
  position:relative;min-height:calc(var(--control-target) + var(--space-12));padding:var(--space-12) var(--space-32) var(--space-12) 0;
  list-style:none
}
#onbBody.entry-body .onb__dayname::-webkit-details-marker{display:none}
#onbBody.entry-body .onb__dayname::after{
  content:"";position:absolute;right:var(--space-4);top:50%;width:var(--space-16);height:var(--space-16);
  background:currentColor;color:var(--ink-faint);transform:translateY(-50%) rotate(90deg);
  -webkit-mask:no-repeat center/contain;mask:no-repeat center/contain;
  -webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='9 6 15 12 9 18'/%3E%3C/svg%3E");
  mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='9 6 15 12 9 18'/%3E%3C/svg%3E")
}
#onbBody.entry-body .onb__day[open] .onb__dayname::after{transform:translateY(-50%) rotate(270deg)}
#onbBody.entry-body .onb__dayname span.onb__daynum{
  width:var(--space-26);height:auto;border:0;border-radius:var(--radius-none);background:transparent;margin:0 var(--space-8) 0 0;
  justify-content:flex-start;font-family:var(--font-training-data);font-size:var(--font-size-body-small);font-weight:var(--weight-medium);color:var(--ink-soft)
}
#onbBody.entry-body .onb__day[open] .onb__dayname{margin-bottom:0}
#onbBody.entry-body .onb__ex{padding:var(--space-8) 0 var(--space-8) var(--space-32);border-top:1px solid var(--boundary-decorative)}
#onbBody.entry-body .onb__ex:first-of-type{border-top:0;padding-top:0}
#onbBody.entry-body .onb__day .onb__ex:last-child{padding-bottom:var(--space-14)}
#onbBody.entry-body .entry__rows{margin:var(--space-18) 0 0;border-top:0}
#onbBody.entry-body .entry__row{padding:var(--space-14) 0;border-bottom:1px solid var(--boundary-decorative)}
#onbBody.entry-body .entry__row-ico,#onbBody.entry-body .entry__rows--reasons .entry__row-ico{color:var(--ink-soft)}
#onbBody.entry-body .entry__row-lab{
  font-size:var(--font-size-body);font-weight:var(--weight-semibold);letter-spacing:0;text-transform:none;color:var(--ink)
}
.entry__more .entry__confirm-alt{flex-direction:column}
.entry__more .entry__confirm-alt .btn{flex:0 0 auto}

/* Plan 070: onboarding B's review-and-adjust editor (program-review.js). The
   kicker and title reuse .entry__eyebrow and .onb__q, already sized for this
   route; the facts strip reuses .entry__strip. What follows is this screen's
   own grammar: the block summary, the changes bar or tap hint, the day tabs
   and the day panel (rows, the add row, the empty-day warning, reorder mode). */
.review__titlebtn{display:inline-flex;align-items:center;gap:var(--space-8);padding:0;border:0;background:none;font:inherit;color:inherit;text-align:left;cursor:pointer;border-radius:var(--radius-control)}
.review__titlebtn .icon-mask{color:var(--ink-faint)}
.review__titlebtn:focus-visible{outline:var(--control-focus-outline);outline-offset:2px}
.review__titlebtn.is-pressed{transform:var(--control-pressed-transform)}
.review__blockrow{display:flex;align-items:center;gap:var(--space-12);padding-top:var(--space-14);border-top:1px solid var(--boundary-decorative)}
.review__block{flex:1;min-width:0;margin:0;font-family:var(--font-language);font-size:var(--font-size-body-small);line-height:var(--line-reading);color:var(--color-ink-secondary)}
.review__blockrow .text-link{flex:none;min-height:var(--control-target);white-space:nowrap}
.review-block__stepper{width:max-content;margin:0 auto}
.review-block__sec .sheetgroup__head{margin:0 0 var(--space-8)}
.review-block__patterns{display:flex;flex-direction:column;gap:var(--space-8)}
.review-block__patterns .radio-card{align-items:flex-start}
.review-block__patterns .radio-card__mark{margin-top:2px}
.review-block__deload{display:flex;align-items:center;justify-content:space-between;gap:var(--space-12);padding:var(--space-14) 0;border-top:1px solid var(--boundary-decorative)}
.review-block__copy{min-width:0;display:flex;flex-direction:column;gap:var(--space-4)}
.review-block__copy strong{font-family:var(--font-language);font-size:var(--font-size-control);font-weight:var(--weight-semibold);line-height:var(--line-standard);color:var(--color-ink)}
.review-block__copy span{font-family:var(--font-language);font-size:var(--font-size-body-small);line-height:var(--line-reading);color:var(--color-ink-secondary)}
.review__hint{margin:0;font-family:var(--font-language);font-size:var(--font-size-body-small);line-height:var(--line-reading);color:var(--color-ink-secondary)}
.review>.review__hint{margin-top:0;padding-top:var(--space-14);border-top:1px solid var(--boundary-decorative)}
.review__panel>.review__hint{margin:0 0 var(--space-8)}
.review__changes{display:flex;align-items:center;flex-wrap:wrap;gap:var(--space-14);margin:0;padding-top:var(--space-14);border-top:1px solid var(--boundary-decorative)}
.review__count{flex:1;min-width:0;display:inline-flex;align-items:center;gap:var(--space-8);font-family:var(--font-language);font-size:var(--font-size-body-small);font-weight:var(--weight-semibold);color:var(--color-ink)}
.review__dot{display:inline-block;flex:none;width:7px;height:7px;border-radius:var(--radius-round);background:currentColor}
.review__changes .text-link{min-height:var(--control-target);display:inline-flex;align-items:center;padding:0;font-size:var(--font-size-body-small)}
/* The day tabs scroll horizontally with no visible scrollbar; the selected
   tab carries its own quiet selected boundary. */
.review__tabs{position:relative;display:flex;gap:var(--space-18);margin:var(--space-18) calc(-1 * var(--gut)) 0;padding:0 var(--gut);overflow-x:auto;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;scrollbar-width:none;border-bottom:1px solid var(--boundary-decorative)}
.review__tabs::-webkit-scrollbar{display:none}
.review__tab{flex:none;min-height:var(--control-target);display:inline-flex;align-items:center;padding:0;border:0;border-bottom:2px solid transparent;border-radius:var(--radius-none);background:var(--control-quiet-bg);font-family:var(--font-language);font-size:var(--font-size-body);font-weight:var(--weight-medium);line-height:var(--line-standard);color:var(--color-ink-secondary);white-space:nowrap;cursor:pointer}
.review__tab.is-on{border-bottom-color:var(--boundary-selected-quiet);color:var(--control-selection-ink);font-weight:var(--weight-semibold)}
.review__tab:focus-visible{outline:var(--control-focus-outline);outline-offset:-2px;border-radius:var(--radius-compact)}
.review__pip{display:inline-block;flex:none;width:6px;height:6px;margin-left:var(--space-8);border-radius:var(--radius-round);background:var(--color-warning);vertical-align:middle}
.review__dayhead{display:flex;align-items:flex-start;gap:var(--space-12);padding:var(--space-18) 0 var(--space-8)}
.review__dayid{flex:1;min-width:0;display:flex;flex-direction:column;gap:var(--space-4)}
.review__dayname{align-self:flex-start;display:inline-flex;align-items:center;gap:var(--space-8);padding:0;border:0;background:none;font-family:var(--font-language);font-size:var(--font-size-section-title);font-weight:var(--weight-semibold);line-height:var(--line-tight);color:var(--color-ink);overflow-wrap:anywhere;text-align:left;cursor:pointer}
.review__dayname .icon-mask{flex:none;color:var(--ink-faint)}
.review__dayname:focus-visible{outline:var(--control-focus-outline);outline-offset:2px;border-radius:var(--radius-control)}
.review__dayname.is-pressed{transform:var(--control-pressed-transform)}
.review__daymeta{margin:0;font-family:var(--font-language);font-size:var(--font-size-body-small);line-height:var(--line-standard);color:var(--color-ink-secondary)}
.review__over{margin:0;font-family:var(--font-language);font-size:var(--font-size-body-small);line-height:var(--line-standard);color:var(--color-warning)}
.review__more{flex:none;width:var(--control-target);height:var(--control-target);min-width:var(--control-target);min-height:var(--control-target);display:inline-flex;align-items:center;justify-content:center;margin:0 calc(-1 * var(--space-8)) 0 0;border:0;border-radius:var(--radius-control);background:var(--control-quiet-bg);color:var(--control-quiet-ink);cursor:pointer}
@media (hover:hover) and (pointer:fine){.review__more:hover{background:var(--well)}}
.review__more.is-pressed{background:var(--row-pressed-bg);transform:var(--control-pressed-transform)}
.review__more:focus-visible{outline:var(--control-focus-outline);outline-offset:2px}
/* Each row is the whole tap target: thumbnail, name, optional change mark,
   the set list and the muscle chips, with a trailing chevron. */
.review__row{display:flex;align-items:flex-start;gap:var(--space-14);width:100%;padding:var(--space-16) 0;border:0;border-bottom:1px solid var(--boundary-decorative);background:none;text-align:left;cursor:pointer}
.review__row:last-of-type{border-bottom:0}
@media (hover:hover) and (pointer:fine){.review__row:hover{background:var(--well)}}
.review__row.is-pressed{background:var(--row-pressed-bg)}
.review__row:focus-visible{outline:var(--control-focus-outline);outline-offset:-2px;border-radius:var(--radius-control)}
.review__row>.icon-mask--chev-right{align-self:center;flex:none;color:var(--ink-faint)}
.review__rowbody{flex:1;min-width:0;display:flex;flex-direction:column;gap:var(--space-4)}
.review__name{margin:0;font-family:var(--font-language);font-size:var(--font-size-body);font-weight:var(--weight-semibold);line-height:var(--line-standard);color:var(--color-ink);overflow-wrap:anywhere}
.review__mark{display:inline-flex;align-items:center;gap:var(--space-8);font-family:var(--font-training-data);font-size:var(--font-size-label);font-weight:var(--weight-medium);letter-spacing:.06em;text-transform:uppercase;color:var(--color-ink-secondary)}
.review__sets{display:flex;flex-direction:column;gap:var(--space-4);margin:0;padding:0;list-style:none}
.review__sets li{display:flex;align-items:center;gap:var(--space-8)}
.review__setn{flex:none;width:24px;height:24px;display:inline-flex;align-items:center;justify-content:center;border-radius:var(--radius-round);background:var(--well);font-family:var(--font-training-data);font-size:var(--font-size-caption);font-weight:var(--weight-medium);color:var(--color-ink-secondary)}
.review__reps{font-family:var(--font-training-data);font-size:var(--font-size-body-small);color:var(--color-ink)}
.review__rir{margin-left:auto;flex:none;padding:var(--space-4) 0;border:0;font-family:var(--font-training-data);font-size:var(--font-size-caption);color:var(--color-ink-secondary)}
.review__chips{display:flex;flex-wrap:wrap;gap:var(--space-8);margin-top:var(--space-4)}
.review__chip{padding:var(--space-4) var(--space-8);border:1px solid var(--boundary-decorative);border-radius:var(--radius-pill);font-family:var(--font-language);font-size:var(--font-size-caption);line-height:var(--line-standard);color:var(--color-ink-secondary)}
.review__offer{display:flex;align-items:center;justify-content:space-between;gap:var(--space-12);padding:var(--space-8) 0 var(--space-14);border-bottom:1px solid var(--boundary-decorative)}
.review__offer p{flex:1;min-width:0;margin:0;font-family:var(--font-language);font-size:var(--font-size-body-small);line-height:var(--line-reading);color:var(--color-ink-secondary)}
.review__offer strong{font-weight:var(--weight-semibold);color:var(--color-ink)}
.review__offer>[data-review-confirm-offer-action]{flex:none;white-space:normal}
.review__offer--confirmed{justify-content:flex-end;padding-top:0}
.review__add{display:flex;align-items:center;gap:var(--space-12);width:100%;padding:var(--space-16) 0;border:0;background:none;cursor:pointer;font-family:var(--font-language);font-size:var(--font-size-body);font-weight:var(--weight-medium);color:var(--color-ink);text-align:left}
.review__add .icon-mask{color:var(--color-ink-secondary)}
@media (hover:hover) and (pointer:fine){.review__add:hover{background:var(--well)}}
.review__add.is-pressed{background:var(--row-pressed-bg);transform:var(--control-pressed-transform)}
.review__add:focus-visible{outline:var(--control-focus-outline);outline-offset:-2px;border-radius:var(--radius-control)}
.review__empty{display:flex;align-items:flex-start;gap:var(--space-8);margin:var(--space-12) 0;padding:var(--space-14);border:1px dashed var(--color-warning);border-radius:var(--radius-surface);font-family:var(--font-language);font-size:var(--font-size-body-small);line-height:var(--line-reading);color:var(--color-ink)}
.review__empty .icon-mask{flex:none;margin-top:2px;color:var(--color-warning)}
.review__rest{display:flex;flex-direction:column;align-items:center;gap:var(--space-8);padding:var(--space-32) 0;text-align:center;color:var(--color-ink-secondary)}
.review__rest .icon-mask{width:28px;height:28px;color:var(--ink-faint)}
.review__rest-title{margin:0;font-family:var(--font-language);font-size:var(--font-size-subtitle);font-weight:var(--weight-semibold);color:var(--color-ink)}
.review__rest p:last-child{margin:0;font-family:var(--font-language);font-size:var(--font-size-body-small);line-height:var(--line-reading)}
/* Reorder mode: a drag handle plus two 44px arrow buttons as the accessible
   path to the same move. .is-lifted is the raised row while dragging. */
.review__reorder{list-style:none;margin:var(--space-8) 0 0;padding:0;border-top:1px solid var(--boundary-decorative)}
.review__ro{display:flex;align-items:center;gap:var(--space-8);padding:var(--space-8) 0;border-bottom:1px solid var(--boundary-decorative);background:var(--bg);position:relative}
.review__ro.is-lifted{z-index:2;border-radius:var(--radius-control);background:var(--surface);box-shadow:var(--elevation-drag-shadow)}
.review__handle{flex:none;width:var(--control-target);height:var(--control-target);display:inline-flex;align-items:center;justify-content:center;color:var(--color-ink-secondary);touch-action:none;cursor:grab}
.review__ro-name{flex:1;min-width:0;font-family:var(--font-language);font-size:var(--font-size-body);font-weight:var(--weight-medium);color:var(--color-ink);overflow-wrap:anywhere}
.review__ro-btn{flex:none;width:var(--control-target);height:var(--control-target);min-width:var(--control-target);min-height:var(--control-target);display:inline-flex;align-items:center;justify-content:center;border:0;border-radius:var(--radius-control);background:transparent;color:var(--control-adjustment-ink);cursor:pointer}
@media (hover:hover) and (pointer:fine){.review__ro-btn:hover:not(:disabled){background:transparent;opacity:.6}}
.review__ro-btn.is-pressed:not(:disabled){background:transparent;opacity:.4;transform:none}
.review__ro-btn:focus-visible{outline:var(--control-focus-outline);outline-offset:2px}
.review__ro-btn:disabled{color:var(--color-disabled-reason);opacity:1;cursor:not-allowed}
.review__reorder-done{margin-top:var(--space-18)}

/* What a change did, and the row it added. The review fills both when an
   answer changes; they have no other source. */
.entry__change{
  margin:var(--space-18) 0 0;padding:var(--space-12) var(--space-14);border-left:3px solid var(--accent);
  border-top:1px solid var(--boundary-decorative);border-bottom:1px solid var(--boundary-decorative);
  border-radius:var(--radius-none);background:var(--well)
}
.entry__change:focus-visible{outline:var(--control-focus-outline);outline-offset:2px}
.entry__change-line{margin:0;font-size:var(--font-size-body);font-weight:var(--weight-semibold);line-height:var(--line-standard)}
.entry__change-grid{display:grid;grid-template-columns:auto 1fr;gap:var(--space-4) var(--space-14);margin:var(--space-8) 0 0}
.entry__change-grid dt{
  font-size:var(--font-size-label);font-weight:var(--weight-semibold);letter-spacing:var(--track-label);text-transform:uppercase;color:var(--ink-faint)
}
.entry__change-grid dd{margin:0;font-family:var(--font-language);font-size:var(--font-size-body-small);font-variant-numeric:tabular-nums}
.onb__ex.is-new{border-left:3px solid var(--accent);padding-left:calc(var(--space-32) - 3px)}
.entry__new{
  margin-left:var(--space-8);font-size:var(--font-size-label);font-weight:var(--weight-semibold);letter-spacing:var(--track-label);
  text-transform:uppercase;color:var(--accent-deep)
}

/* Dialogs: cancel, replace and start over, and the contextual guides, share one modal panel. */
.entry-dialog{
  position:fixed;left:50%;top:calc(var(--vv-top,0px) + var(--vvh,100dvh) / 2);transform:translate(-50%,-50%);z-index:80;width:min(calc(100% - var(--space-32)),420px);
  max-height:min(90dvh,var(--dialog-max-height));margin:0;padding:var(--space-18);overflow:auto;overscroll-behavior:contain;border:0;
  border-radius:var(--radius-prominent);background:var(--surface);color:var(--ink);box-shadow:var(--elevation-dialog-shadow)
}
.entry-dialog::backdrop{background:var(--scrim)}
.entry-dialog__title{
  margin:0 0 var(--space-8);font-family:var(--font-language);font-size:var(--font-size-section-title);
  font-weight:var(--weight-semibold);line-height:var(--line-tight)
}
.entry-dialog__title:focus-visible{outline:none}
.entry-dialog__body{margin:0 0 var(--space-18);font-size:var(--font-size-body-small);line-height:var(--line-reading);color:var(--color-ink-secondary)}
.entry-dialog__error{margin:calc(-1 * var(--space-8)) 0 var(--space-16);font-size:var(--font-size-body-small);line-height:var(--line-reading);color:var(--color-destructive)}
.entry-dialog__actions{display:flex;flex-direction:column;gap:var(--space-8)}
.entry-dialog__actions .btn{width:100%;flex:0 0 auto}
.entry-dialog .btn--cta{background:var(--control-primary-bg);color:var(--control-primary-ink);border-color:var(--control-primary-boundary)}
.entry-dialog .btn--steel{background:var(--control-secondary-bg);color:var(--control-secondary-ink);border-color:var(--control-secondary-boundary)}
.entry-dialog .btn--steel.btn--destructive{background:var(--control-destructive-bg);color:var(--control-destructive-ink);border-color:var(--control-destructive-boundary)}
@media (hover: hover) and (pointer: fine){
.entry-dialog .btn:hover:not(:disabled):not(.btn--cta){background:var(--well)}
}
.entry-dialog .btn:focus-visible{outline:var(--control-focus-outline);outline-offset:2px}


/* @ci-domain global */
/* ---- Plan 064 shared components ----
   Every component block declared in this section must be named by a
   component row in tools/ui-role-inventory.json (checked by
   tools/check-ui-system.mjs). R1a added the first four; R1b adds four more
   on the owner-approved tokens (OG-3, OG-4), recorded in the contract's Plan
   064 amendment. Nothing renders these classes yet, so no frame can change;
   each first renders in the slice its inventory row names. Layout lengths are
   the ones Plan 064 section 8.3 and 8.6 state (48 and 56 rows, 44 close
   reserve), the shipped sheet geometry (38 by 5 handle) or the --space-*
   scale. The rest clock's new clamp is not here: it changes rest frames and
   lands with R3f. */

/* Verdict mark: the glyph beside a rec.*.label word. The word carries the
   meaning and the glyph is redundant, so consumers mark the glyph
   aria-hidden. Orange is limited to an up verdict glyph (section 8.8);
   records use the improved color; declines, holds and recoveries stay ink. The word is never the
   accent: --accent is 3.57:1 on --bg in light, below the 4.5:1 text floor. */
.verdictmark{
  display:inline-flex;align-items:center;gap:6px;min-width:0;
  font-family:var(--font-language);font-size:var(--font-size-body-small);font-weight:var(--weight-semibold);line-height:var(--line-standard);color:var(--color-ink);
}
.verdictmark__glyph{
  display:block;flex:none;width:16px;height:16px;background:var(--color-ink);
  -webkit-mask:var(--arrow) no-repeat center/contain;mask:var(--arrow) no-repeat center/contain;
}
.verdictmark--up .verdictmark__glyph{background:var(--color-action);transform:rotate(-90deg)}
.verdictmark--down .verdictmark__glyph{background:var(--color-ink);transform:rotate(90deg)}
/* Hold draws "=", recover a clockwise return, in ink: orange is only the up glyph (section 8.8). Stalled and new stay
   word-only. */
.verdictmark--hold .verdictmark__glyph{
  background:var(--color-ink);
  -webkit-mask:var(--verdict-hold) no-repeat center/contain;mask:var(--verdict-hold) no-repeat center/contain;
}
.verdictmark--recover .verdictmark__glyph{
  background:var(--color-ink);
  -webkit-mask:var(--verdict-recover) no-repeat center/contain;mask:var(--verdict-recover) no-repeat center/contain;
}
.verdictmark--record{color:var(--color-improved)}
.verdictmark--record .verdictmark__glyph{
  background:var(--color-improved);
  -webkit-mask:var(--check) no-repeat center/contain;mask:var(--check) no-repeat center/contain;
}
/* Glyphs only for Next (owner decision, 2026-11-01, superseding #295's maintained "="): an outcome (how a session
   went against the last comparable one) is a word with no glyph, so an arrow or "=" always means the next target.
   The maintained word keeps its colour. */
.verdictmark--maintained{color:var(--color-maintained)}

/* Sheet header band: one band for every sheet. Handle, section-title title,
   an optional body-small line, and a 44px close reserve whose button is
   centred on the first title line. The band draws no separator; a consumer
   that needs one inside a sheet uses --rule-on-surface (decorative only). */
.sheetband{
  display:grid;grid-template-columns:minmax(0,1fr) var(--control-target);
  grid-template-areas:"handle handle" "title close" "sub sub";
  align-items:start;column-gap:8px;padding:0 16px 16px;
}
.sheetband__handle{
  grid-area:handle;justify-self:center;display:block;width:38px;height:5px;margin:8px 0 0;
  border-radius:var(--radius-compact);background:var(--boundary-floating);
}
.sheetband__title{
  grid-area:title;min-width:0;margin:0;
  padding-block:calc((var(--control-target) - var(--font-size-section-title) * var(--line-tight)) / 2);
  font-family:var(--font-language);font-size:var(--font-size-section-title);font-weight:var(--weight-semibold);line-height:var(--line-tight);color:var(--color-ink);
  overflow-wrap:anywhere;
}
.sheetband__sub{
  grid-area:sub;margin:0;
  font-family:var(--font-language);font-size:var(--font-size-body-small);line-height:var(--line-reading);color:var(--color-ink-secondary);
}
.sheetband__close{
  grid-area:close;align-self:start;display:inline-flex;align-items:center;justify-content:center;
  width:var(--control-target);height:var(--control-target);min-width:var(--control-target);min-height:var(--control-target);margin:0;padding:0;
  border:1px solid var(--control-quiet-boundary);border-radius:var(--radius-round);background:var(--control-quiet-bg);color:var(--control-quiet-ink);cursor:pointer;
}
/* The prototype's close: a 16px × in a filled 30px disc, inside the 44px target. */
.sheetband__close{position:relative;isolation:isolate;color:var(--color-ink-secondary)}
.sheetband__close::before{content:"";position:absolute;z-index:-1;width:30px;height:30px;border-radius:50%;background:var(--control-track)}
.sheetband__close > [aria-hidden]{width:16px;height:16px}
@media (hover: hover) and (pointer: fine){
.sheetband__close:hover:not(:disabled){background:var(--well);border-color:var(--control-quiet-boundary);color:var(--control-quiet-ink)}
}
.sheetband__close.is-pressed:not(:disabled){background:var(--row-pressed-bg);border-color:var(--control-quiet-boundary);color:var(--control-quiet-ink);transform:var(--control-pressed-transform)}
.sheetband__close:focus-visible{outline:var(--control-focus-outline);outline-offset:2px}
.sheetband__close:disabled{background:var(--control-quiet-bg);border-color:var(--boundary-decorative);color:var(--color-disabled-reason);opacity:1;cursor:not-allowed;transform:none}

/* Ledger row base: flat, read-only data on one decorative hairline per break.
   At least 48px; the two-line row (value line plus previous-set line) is 56px.
   Values are right-aligned Mono on a shared 12px inset. The open row's selected
   boundary is the .ledgerline--open modifier at the end of this section. */
.ledgerline__head,.ledgerline{
  display:grid;grid-template-columns:2.4rem minmax(0,1fr);column-gap:12px;align-items:center;
  width:100%;padding-inline:12px;font-variant-numeric:tabular-nums;
}
.ledgerline__head{
  padding-block:0 10px;border-bottom:1px solid var(--boundary-decorative);
  font-family:var(--font-language);font-size:var(--font-size-label);font-weight:var(--weight-semibold);line-height:var(--line-standard);letter-spacing:var(--track-label);text-transform:uppercase;color:var(--color-ink-secondary);
}
.ledgerline__head > :last-child{text-align:right}
.ledgerline{
  min-height:48px;margin:0;padding-block:6px;
  border:0;border-bottom:1px solid var(--boundary-decorative);border-radius:var(--radius-none);background:none;color:var(--color-ink);
}
.ledgerline--two{min-height:56px}
.ledgerline__idx{
  font-family:var(--font-training-data);font-size:var(--font-size-body-small);font-weight:var(--weight-regular);line-height:var(--line-standard);color:var(--color-ink-secondary);
}
.ledgerline__vals{
  min-width:0;display:flex;justify-content:flex-end;gap:12px;text-align:right;
  font-family:var(--font-training-data);font-size:var(--font-size-body);font-weight:var(--weight-regular);line-height:var(--line-standard);
}
/* "Was the last rep slow?" (Plan 077, OD-25): a quiet line under the exercise's last logged set, during its rest. */
.ledgerslow{display:flex;align-items:center;justify-content:flex-end;gap:var(--space-8);padding:0 0 var(--space-8);
  font-family:var(--font-language);font-size:var(--font-size-body-small);line-height:var(--line-standard);color:var(--color-ink-secondary)}
.ledgerslow__q{flex:1}
.ledgerslow__pill{min-width:var(--control-target);min-height:var(--control-target);padding:0 var(--space-12);border:0;border-radius:var(--radius-button);
  background:var(--well);color:var(--color-ink);font:inherit;font-weight:var(--weight-semibold);cursor:pointer}
/* The answer stays as a plain word; a tap on it takes it back. */
.ledgerslow__pill[aria-pressed="true"]{background:transparent}
.ledgerslow__pill:focus-visible{outline:var(--control-focus-outline);outline-offset:2px}
.ledgerline__prev{
  grid-column:2;min-width:0;text-align:right;
  font-family:var(--font-language);font-size:var(--font-size-body-small);line-height:var(--line-reading);color:var(--color-ink-secondary);
}

/* Prescription row: name and strategy line, mark, load and target on one first
   baseline. The whole row opens the exercise (quiet-navigation). Columns follow
   the widest load and target forms (66px and 78px at the default root size) and
   scale with the root so they reflow at 200% text. Manual rows leave the mark
   slot empty so names still align. */
.rxrow{
  display:grid;grid-template-columns:1rem minmax(0,1fr) auto auto;
  column-gap:var(--space-8);align-items:baseline;width:100%;min-height:48px;margin:0;padding:12px 0;
  border:0;border-bottom:1px solid var(--boundary-decorative);border-radius:var(--radius-none);
  background:var(--control-quiet-bg);color:var(--control-quiet-ink);cursor:pointer;text-align:left;
  font-family:var(--font-language);font-size:var(--font-size-body);font-weight:var(--weight-regular);line-height:var(--line-standard);
}
@media (hover: hover) and (pointer: fine){
.rxrow:hover:not(:disabled){background:var(--well);color:var(--control-quiet-ink);border-bottom-color:var(--boundary-decorative)}
}
.rxrow.is-pressed:not(:disabled){background:var(--row-pressed-bg);color:var(--control-quiet-ink);transform:var(--control-pressed-transform)}
.rxrow:focus-visible{outline:var(--control-focus-outline);outline-offset:2px}
.rxrow:disabled{background:var(--control-quiet-bg);color:var(--color-disabled-reason);border-bottom-color:var(--boundary-decorative);opacity:1;cursor:not-allowed;transform:none}
.rxrow__mark{position:relative;top:.15em;display:flex;align-items:center;min-width:0}
.rxrow__name{min-width:0;overflow-wrap:anywhere}
.rxrow__sub{display:block;font-size:var(--font-size-body-small);line-height:var(--line-reading);color:var(--color-ink-secondary)}
.rxrow__load{
  text-align:right;white-space:nowrap;
  font-family:var(--font-language);font-size:var(--font-size-metric);font-weight:var(--weight-regular);line-height:var(--line-tight);color:var(--color-ink);
  font-variant-numeric:tabular-nums;
}
/* The load leads in ink at the regular weight; the target is the quieter second column (the prototype's ledger;
   owner decision 2026-10-24, superseding #485 deviation 1's heavier figures). */
.rxrow__target{
  text-align:right;white-space:nowrap;
  font-family:var(--font-language);font-size:var(--font-size-body-small);font-weight:var(--weight-regular);line-height:var(--line-standard);color:var(--color-ink-secondary);
  font-variant-numeric:tabular-nums;
}
.rxrow__op,.rxrow__unit{color:var(--color-ink-secondary)}

/* Ledger open row: the row being edited or corrected. Layer selected: a well
   ground and the quiet 2px inset boundary (ink, aliased from --ink), no
   outward shadow, no orange. The inset ring is the selected cue and it reaches
   3:1 on the well and on the page ground in both themes; the hairline gives
   way to it. Values keep their ink and the previous-set line stays ink-soft. */
.ledgerline--open{
  border-bottom-color:transparent;border-radius:var(--radius-surface);
  background:var(--well);box-shadow:var(--elevation-selected-quiet-shadow);
}


/* Frequency counts: small bars of sessions per week and per weekday, ink on
   the page ground. Not interactive: the host gives the block one image role
   and one label with the block total, so the counts stay out of the reading
   order (aria-hidden). The baseline is a decorative hairline; the planned
   marker, when drawn, is a required boundary (--boundary-required), never
   --rule-strong, which measures 1.31:1 on the page ground in light. Bar
   height is --freq-share (0 to 1) set by the host; the marker sits at
   --freq-plan. The bar's progress classification is decided in R3j. */
.freqcount{display:flex;align-items:stretch;margin:0;color:var(--color-ink)}
.freqcount__bar{
  flex:1 1 0;min-width:0;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;
  padding-inline:var(--space-4);
}
.freqcount__n{
  margin-bottom:var(--space-4);
  font-family:var(--font-training-data);font-size:var(--font-size-caption);font-weight:var(--weight-regular);line-height:var(--line-standard);color:var(--color-ink-secondary);
}
.freqcount__track{position:relative;display:flex;align-items:flex-end;justify-content:center;width:100%;height:4rem}
.freqcount--planned .freqcount__track::after{
  content:"";position:absolute;left:calc(-1 * var(--space-4));right:calc(-1 * var(--space-4));bottom:calc(var(--freq-plan,0) * 100%);
  border-top:1px dashed var(--boundary-required);
}
.freqcount__fill{
  display:block;width:var(--space-12);height:calc(var(--freq-share,0) * 100%);
  border-radius:var(--radius-compact) var(--radius-compact) var(--radius-none) var(--radius-none);background:var(--color-ink);
}
.freqcount__label{
  align-self:stretch;padding-top:var(--space-4);border-top:1px solid var(--boundary-decorative);text-align:center;
  font-family:var(--font-training-data);font-size:var(--font-size-caption);font-weight:var(--weight-medium);line-height:var(--line-standard);color:var(--color-ink-secondary);
}
.freqcount__bar--now .freqcount__label{color:var(--color-ink);font-weight:var(--weight-semibold)}

/* Workout shelf shell: the persistent-action layer under Focus, a full-width
   sheet-like surface with the existing top radius step (--radius-prominent),
   a shallow top edge and the persistent depth. Inside it the field and
   adjustment roles take the drawn grounds (fields on the well, pads on the
   page ground); that override is scoped here, so no other surface changes.
   The host positions the shell and reserves scroll room under it. Fields,
   pads and the primary action are R3c's, each on its existing control role. */
.workshelf{
  --control-field-bg:var(--shelf-field-bg);--control-adjustment-bg:var(--shelf-pad-bg);
  display:grid;gap:var(--space-8);width:100%;margin:0;
  padding:var(--space-12) var(--gut) calc(var(--space-16) + env(safe-area-inset-bottom,0px));
  border:0;border-top:1px solid var(--boundary-persistent);
  border-radius:var(--radius-prominent) var(--radius-prominent) var(--radius-none) var(--radius-none);
  background:var(--color-surface);box-shadow:var(--elevation-persistent-shadow);color:var(--color-ink);
}

/* @ci-domain entry,program */
/* ---- Plan 064 R4b: Recommend, Custom and Browse steps, and the generator review ----
   Entry-scoped rules after the R4a block. Selection is the quiet ink selection
   (Q-E), the accent stays on the change statement's rail (Q637), and every length
   snaps to the --space-* scale or to a multiple of --control-target. */

/* The "about" screen: the goal the hub asked is carried, with Change. */
.entry__carried{
  display:flex;align-items:center;justify-content:space-between;gap:var(--space-12);margin:var(--space-18) 0 0;
  padding:var(--space-8) 0;border-top:1px solid var(--boundary-decorative);border-bottom:1px solid var(--boundary-decorative)
}
.entry__carried-text{display:flex;flex-direction:column;gap:var(--space-4);min-width:0}
.entry__carried-k{
  font-size:var(--font-size-label);font-weight:var(--weight-semibold);letter-spacing:var(--track-label);text-transform:uppercase;color:var(--ink-faint)
}
.entry__carried-v{font-size:var(--font-size-body);font-weight:var(--weight-semibold);line-height:var(--line-standard);color:var(--color-ink);overflow-wrap:anywhere}
.entry__carried-change,.entry__restore{flex:none;min-height:var(--control-target);padding:var(--space-8) var(--space-14);width:auto}

/* Numbers set as numbers: a Mono value over its unit, three to a row. */
/* The schedule diagnosis's days are the same tiles (owner, 2026-10-25), under the field label they replace. */
#reviewPanel .review__days{margin:var(--space-14) 0 var(--space-18)}
#reviewPanel .review__days-label{margin:0 0 var(--space-8);color:var(--ink-soft);font-size:var(--font-size-caption);font-weight:600;text-transform:uppercase;letter-spacing:var(--track-label)}
:is(#onbBody.entry-body,#reviewPanel .review__days) .onb__opts.onb__num{
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--space-8);border:0;border-radius:var(--radius-none);background:transparent;overflow:visible
}
:is(#onbBody.entry-body,#reviewPanel .review__days) .onb__opts.onb__num .radio-card{
  flex-direction:column;align-items:center;justify-content:center;gap:var(--space-4);min-height:calc(var(--control-target) + var(--space-26));
  padding:var(--space-8);border:1px solid var(--control-selection-boundary);border-radius:var(--radius-control);
  background:var(--control-selection-bg);text-align:center
}
:is(#onbBody.entry-body,#reviewPanel .review__days) .onb__opts.onb__num .radio-card.is-selected{
  border-color:var(--boundary-selected-quiet);box-shadow:var(--elevation-selected-quiet-shadow);background:var(--well)
}
:is(#onbBody.entry-body,#reviewPanel .review__days) .onb__opts.onb__num .radio-card__body{align-items:center;flex:0 0 auto;gap:var(--space-4)}
:is(#onbBody.entry-body,#reviewPanel .review__days) .onb__opts.onb__num .radio-card__title{
  font-family:var(--font-training-data);font-size:var(--font-size-metric);font-weight:var(--weight-medium);font-variant-numeric:tabular-nums;
  line-height:var(--line-tight);color:var(--ink)
}
:is(#onbBody.entry-body,#reviewPanel .review__days) .onb__opts.onb__num .radio-card__cap{font-size:var(--font-size-caption);line-height:var(--line-standard);color:var(--color-ink-secondary)}
:is(#onbBody.entry-body,#reviewPanel .review__days) .onb__opts.onb__num .radio-card__mark{display:none}
:is(#onbBody.entry-body,#reviewPanel .review__days) .onb__opts.onb__num .radio-card.is-selected .radio-card__title,
:is(#onbBody.entry-body,#reviewPanel .review__days) .onb__opts.onb__num .radio-card.is-selected .radio-card__cap{color:var(--ink)}

/* Optional section: Skip while empty, and the two-muscle limit said in text. */
#onbBody.entry-body .entry__skip{margin:var(--space-14) 0 var(--space-4);width:auto}
#onbBody.entry-body .entry__limit{margin:var(--space-8) 0 0}

/* Bands, not boxes: the environment correction, the muscle list and the exercise lists. */
#onbBody.entry-body .entry__disclosure{
  border:0;border-top:1px solid var(--boundary-decorative);border-bottom:1px solid var(--boundary-decorative);
  border-radius:var(--radius-none);background:transparent
}
#onbBody.entry-body .entry__muscle-list{border:0;border-top:1px solid var(--boundary-decorative);border-radius:var(--radius-none);background:transparent;overflow:visible}
#onbBody.entry-body .entry__muscle-row{padding:var(--space-12) 0}
#onbBody.entry-body .entry__muscle-state.is-selected{
  border-color:var(--boundary-selected-quiet);box-shadow:var(--elevation-selected-quiet-shadow);background:var(--well);color:var(--control-selection-ink)
}
#onbBody.entry-body .entry__exercise-selected-group .entry__group-lab,
#onbBody.entry-body .entry__muscle-list+.entry__group-lab{color:var(--ink)}

/* The generator review. Program first; the answers it was built from follow it. */
#onbBody.entry-body .entry__eyebrow{
  margin:var(--space-8) 0 var(--space-4);font-size:var(--font-size-label);font-weight:var(--weight-semibold);letter-spacing:var(--track-label);
  text-transform:uppercase;color:var(--ink-faint)
}
#onbBody.entry-body .entry__progname{margin:0 0 var(--space-4);overflow-wrap:anywhere}
#onbBody.entry-body h2.entry__section-head{
  display:block;margin:var(--space-26) 0 var(--space-12);font-size:var(--font-size-subtitle);font-weight:var(--weight-semibold);
  letter-spacing:0;line-height:var(--line-tight);text-transform:none;color:var(--ink)
}
#onbBody.entry-body .entry__review .entry__hint{margin:0 0 var(--space-12)}
#onbBody.entry-body .entry__review .entry__active{margin:var(--space-18) 0 0}
#onbBody.entry-body .entry__review .entry__rows{margin:0}
#onbBody.entry-body .entry__review .entry__more{margin:0}

/* Answer chips: disclosure pills; the open one is ringed in ink and tied to its editor. */
.entry-chips{display:flex;flex-wrap:wrap;gap:var(--space-8);margin:0 0 var(--space-12)}
.entry-chip{
  display:inline-flex;align-items:center;gap:var(--space-8);min-height:var(--control-target);max-width:100%;
  padding:var(--space-8) var(--space-14);border:1px solid var(--boundary-decorative);border-radius:var(--radius-pill);
  background:var(--control-disclosure-bg);color:var(--control-disclosure-ink);font:inherit;font-size:var(--font-size-body-small);
  font-weight:var(--weight-medium);line-height:var(--line-standard);text-align:left;cursor:pointer
}
@media (hover: hover) and (pointer: fine){
.entry-chip:hover{background:var(--well)}
}
.entry-chip.is-pressed{background:var(--row-pressed-bg);transform:var(--control-pressed-transform)}
.entry-chip:focus-visible{outline:var(--control-focus-outline);outline-offset:2px}
.entry-chip.is-open{border-color:var(--boundary-selected-quiet);box-shadow:var(--elevation-selected-quiet-shadow);background:var(--well);font-weight:var(--weight-semibold)}
.entry-chip__text{min-width:0;overflow-wrap:anywhere}
.entry-chip__edit{flex:none;width:var(--space-14);height:var(--space-14);color:var(--ink-soft)}

/* The editor: a well with a rail, inline under its chip, so it never shrinks to a small body. */
.entry-editor{
  margin:0 0 var(--space-12);padding:var(--space-14) var(--space-14) var(--space-16);border-left:3px solid var(--boundary-selected-quiet);
  border-top:1px solid var(--boundary-decorative);border-bottom:1px solid var(--boundary-decorative);border-radius:var(--radius-none);
  background:var(--well)
}
.entry-editor__title{
  margin:0 0 var(--space-4);font-size:var(--font-size-subtitle);font-weight:var(--weight-semibold);line-height:var(--line-tight);color:var(--ink)
}
.entry-editor__title:focus-visible{outline:none}
.entry-editor__acts{display:flex;flex-direction:column;gap:var(--space-8);margin-top:var(--space-18)}
.entry-editor__acts .btn{width:100%;flex:0 0 auto}
/* Constraints: a row with its own Restore. */
.entry__constraint{align-items:center}
.entry__constraint .entry__row-body{flex:1 1 auto}

/* Browse: the context the list answers, with a way back to change it. */
#onbBody.entry-body .entry__context{
  display:flex;align-items:center;justify-content:space-between;gap:var(--space-12);margin:var(--space-18) 0 0;
  padding:var(--space-8) 0;border-top:1px solid var(--boundary-decorative);border-bottom:1px solid var(--boundary-decorative)
}
#onbBody.entry-body .entry__context .entry__facts{margin:0;padding:0;border:0;background:transparent;min-width:0}
#onbBody.entry-body .entry__muscle-name{flex-wrap:wrap;min-width:0}
#onbBody.entry-body .entry__muscle-current{flex:0 1 auto;max-width:100%;min-width:0;overflow-wrap:anywhere}

/* @ci-domain global */
/* ---- Plan 064 R6a: the rules-only sweep ----
   Settings, Library, install, Progress lifecycle, Program management and import review keep their layouts and
   follow the shared rules (plan 064 section 8). Orange is spent only on the five budget uses, so selection and
   links on these pages take ink: the quiet selected boundary, the well, and the quiet ink with an underline. */

/* Settings: Back, the guide cue, the warning line and the switches' on state. */
#settings #settingsBack{color:var(--control-quiet-ink)}
#settings .settings-warn{color:var(--color-ink)}
/* Settings' switches take the shared accent on-track (owner, 2026-11-10: a sixth orange use, see DESIGN.md): an ink
   track read as off in dark. */

/* Sheets headed by the shared band: the commit action that sat in the old three-slot head (Done, Save, Copy) is now
   the first action in the foot, and the foot wraps when enlarged text asks for another row. The band's 16px gutter
   is the sheet's gutter, so the privacy and install bodies share it. */
#exPickSheet .sheet__foot--actions,#exCustomSheet .sheet__foot--actions,#programTextSheet .sheet__foot--actions{flex-wrap:wrap}
#exPickSheet #exPickDone{flex:1 1 100%}
#exCustomSheet .sheet__foot--actions .btn,#programTextSheet .sheet__foot--actions .btn{flex:1 1 8.75em}
/* The band is the drag rail: a mouse push that starts on selected band text would begin a text drag and cancel the sheet gesture. */
:is(#privacySheet,#iosInstallSheet,#programTextSheet,#shareSetupSheet,#exPickSheet,#exCustomSheet) .sheetband{-webkit-user-select:none;user-select:none}
.privacy-sheet,.installsheet{padding-inline:var(--space-16)}
.privacy-sheet__body{padding-inline:0}
@media (max-height:700px){.installsheet{padding-inline:var(--space-16)}}

/* Library: Back, Close and the custom-exercise link are quiet ink; the active tab and filter chip take the quiet
   selected boundary on the well; a ticked row is an ink disc with the tick cut out of it. */
#library :is(#libBack,#libClose,#libCustom),#exercise #exBack,#exercisePreview #previewBack{color:var(--control-quiet-ink)}
#library #libCustom{text-decoration:underline;text-underline-offset:.2em}
@media (hover: hover) and (pointer: fine){
#library .picktab.is-active:hover:not(:disabled){border-bottom-color:var(--boundary-selected-quiet)}
}
#library .picktab.is-active,
#library .picktab.is-active.is-pressed:not(:disabled){border-bottom-color:var(--boundary-selected-quiet)}
@media (hover: hover) and (pointer: fine){
:is(#library,#exPickSheet,#exCustomSheet) .pchip.is-active:hover:not(:disabled){
  --pchip-bg:var(--well);--pchip-boundary:var(--boundary-selected-quiet);--pchip-shadow:var(--elevation-selected-quiet-shadow)
}
}
:is(#library,#exPickSheet,#exCustomSheet) .pchip.is-active,
:is(#library,#exPickSheet,#exCustomSheet) .pchip.is-active.is-pressed:not(:disabled){
  --pchip-bg:var(--row-pressed-bg);--pchip-boundary:var(--boundary-selected-quiet);--pchip-shadow:var(--elevation-selected-quiet-shadow)
}
#library .librow__check{position:relative}
@media (hover: hover) and (pointer: fine){
#library .librow__check.is-on:hover:not(:disabled)::before{
  border-color:var(--boundary-selected-quiet);background-color:var(--boundary-selected-quiet);background-image:none
}
}
#library .librow__check.is-on::before{
  border-color:var(--boundary-selected-quiet);background-color:var(--boundary-selected-quiet);background-image:none
}
#library .librow__check.is-on::after{
  content:"";position:absolute;inset:0;margin:auto;width:24px;height:24px;background:var(--surface);
  -webkit-mask:var(--check) no-repeat center/60%;mask:var(--check) no-repeat center/60%
}
#library .librow__edit{color:var(--control-quiet-ink)}
#library .libstep__bar.is-done{background:var(--color-ink)}
#library .librow__meta,.pickrow__meta{white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere}
/* The filter rails bleed to the screen edge too, so their two wrappers carry the gutter the same way. */
#libBrowse,#libFilters{margin-inline:calc(-1 * var(--gut));padding-inline:var(--gut)}
/* The library page sits two gutters in (the main column's and its own), so its rails reach back by both to meet the
   screen edge, where they fade, and pad by both less the chip's 4px so the first pill lines up with the search field. */
#libFilters .pick__filters--row{margin-inline:calc(-2 * var(--gut));padding-inline:calc(2 * var(--gut) - var(--space-4))}
/* The illustration field bleeds to the screen edge. Its box carries the gutter, so the bleed stays inside it. */
#exercise,#exDetail{
  margin-left:calc(-1 * max(16px,env(safe-area-inset-left)));margin-right:calc(-1 * max(16px,env(safe-area-inset-right)));
  padding-left:max(16px,env(safe-area-inset-left));padding-right:max(16px,env(safe-area-inset-right))
}
/* A page being pushed is pinned to the screen with its own gutter, so it takes no negative margin. */
#exercise:is(.is-push-over,.is-push-under){margin-left:0;margin-right:0}
#exDetail .recblock{border-left-color:var(--boundary-selected-quiet)}
#exDetail .recblock__lab{color:var(--color-ink-secondary)}
#exDetail :is(.link-accent,.recblock__why){color:var(--control-quiet-ink);text-decoration:underline;text-underline-offset:.2em}
/* The block's two links are one kind of link, set like "Why this weight?" (refinement A1). */
#exDetail .recblock .link-accent{margin-inline-end:var(--space-16)}
#exDetail .listrow__sub{white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere}
/* The stat captions wrap at whole words (#548's rule): hyphenated where the language allows, never broken mid-word,
   and at enlarged text the four tiles take two rows so a word like "sessões" has the width it needs. */
#exDetail .statrow__cap{white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:normal;-webkit-hyphens:auto;hyphens:auto;hyphenate-limit-chars:10 4 4;-webkit-hyphenate-limit-before:4;-webkit-hyphenate-limit-after:4}
.exdet__stats-wrap{container-type:inline-size}
@container (max-width:17rem){
  .exdet__stats{grid-template-columns:repeat(2,minmax(0,1fr))}
}

/* Install: the drawn Safari bar points with ink, step numbers are secondary ink and the status rail is the quiet boundary. */
.safaribar__target::before{border-color:var(--boundary-selected-quiet)}
.safaribar__tool--more{letter-spacing:0;white-space:nowrap}
.safaribar__tap{left:auto;right:0;transform:none;white-space:nowrap}
.safaribar__host{text-overflow:clip}
.installsteps__n{color:var(--color-ink-secondary)}
.install-transfer__status:not(:empty){border-left-color:var(--boundary-selected-quiet)}

/* Program management: links and warnings are ink. */
#exCustomSheet .text-link,#exPickSheet .text-link,:is(#programEditToggle,[data-copy-id="programEditToggle"]){color:var(--control-quiet-ink)}
#exCustomSheet .text-link,#exPickSheet .text-link{text-decoration:underline;text-underline-offset:.2em}
.share-setup__blocker-summary{color:var(--color-ink)}
.program-editor__undo,.program-editor__replace,.pex__detach,.pex__swap.is-unlinked{color:var(--control-quiet-ink)}

/* Progress lifecycle: the selected window is the quiet ink underline, a record is --positive, volume bars are ink,
   a read-only notice is ink, the chosen diagnosis is a quiet ink ring, and long exercise names wrap. */
#stats :is(#prFilterSeg,.seg--window) > button.active{border-bottom-color:var(--boundary-selected-quiet)}
#stats :is(.pr-kind--load,.pr-kind--e1rm){color:var(--color-improved);background:var(--well)}
#stats .prtl__delta{color:var(--color-improved)}
#stats .prtl__ex{white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere}
#stats #volumeDash .vrow__status{color:var(--color-ink)}
#stats #volumeDash .vrow__status.is-on{color:var(--color-improved)}
#stats #volumeDash .vrow__fill{background:var(--color-ink)}
#stats #volumeDash .vrow__fill.is-high,#stats #volumeDash .vrow__fill.is-on{background:var(--color-improved)}
#stats #reviewPanel .review__readonly{color:var(--color-ink)}

/* Onboarding B (ADR 0020, Plan 072): hub link note, section map, Basics
   pickers, equipment checklist, priority rows and the deload card. Tokens
   only; dark appearance is the token swap. */
.entry-hub__link,.entry-b__note{display:flex;gap:8px;align-items:flex-start;margin:18px 0 0;font-size:var(--font-size-body-small);line-height:1.4;color:var(--ink-soft)}
.entry-hub__link .icon-mask,.entry-b__note .icon-mask{flex:none;margin-top:2px}
.entry-b__sections{list-style:none;margin:24px 0 0;padding:0;display:flex;flex-direction:column;gap:20px}
.entry-b__section{display:flex;gap:14px;align-items:flex-start;color:var(--ink-soft)}
.entry-b__section strong{display:block;font-size:var(--font-size-subtitle);font-weight:600;color:var(--ink)}
.entry-b__section span span{display:block;margin-top:3px;font-size:var(--font-size-body-small)}
.entry-b__section-n{flex:none;display:grid;place-items:center;width:28px;height:28px;border-radius:50%;border:1px solid var(--rule-strong);font-family:var(--font-training-data);font-size:var(--font-size-caption);color:var(--ink)}
.entry-b__section.is-current .entry-b__section-n{background:var(--ink);border-color:var(--ink);color:var(--bg)}
.entry-b__compact{display:grid;grid-template-columns:repeat(auto-fill,minmax(96px,1fr));gap:8px}
.entry-b__compact .radio-card{justify-content:center;text-align:center;padding:var(--space-8) var(--space-12)}
.entry-b__compact .radio-card__mark{display:none}
.entry-b__equipment{gap:8px}
.entry-b__reset{margin:14px 0 0;align-self:flex-start}
.entry-b__priorities{margin:12px 0 0;border-top:1px solid var(--rule)}
.entry-b__priority{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px;min-height:48px;padding:6px 0;border-bottom:1px solid var(--rule);font-size:var(--font-size-body)}
/* Four choices may not fit beside a long name or at large text: the control then takes its own line, still at the end. */
.entry-b__priority>.entry-seg{margin-left:auto}
/* Native segmented control (UI kit S5): soft track, raised thumb, semibold chosen label; no ring. */
.entry-seg{display:flex;gap:0;padding:2px;border-radius:var(--radius-control);background:var(--control-track)}
.entry-seg__option{flex:1;min-height:40px;padding:8px 10px;border:0;border-radius:var(--radius-control);background:transparent;color:var(--ink);font:inherit;font-size:var(--font-size-body-small);font-weight:var(--weight-medium);cursor:pointer}
.entry-seg__option.is-pressed:not(.is-selected){background:var(--row-pressed-bg)}
.entry-seg__option.is-selected{background:var(--segment-thumb-bg);color:var(--ink);font-weight:var(--weight-semibold);box-shadow:var(--segment-thumb-shadow)}
.entry-seg__option:focus-visible{outline:var(--control-focus-outline);outline-offset:2px}
.entry-seg--mini{flex:none;padding:2px;gap:0}
.entry-seg--mini .entry-seg__option{flex:none;min-height:36px;padding:6px 8px;font-size:var(--font-size-caption)}
.entry-seg--unit{margin:12px auto 0;max-width:320px}
.entry-b__deload{margin:16px 0 0;padding:20px;border:1.5px solid var(--rule);border-radius:var(--radius-surface);background:var(--surface)}
.entry-b__deload-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
.entry-b__deload-head strong{font-size:var(--font-size-subtitle);font-weight:600}
.entry-b__deload p{margin:6px 0 8px;color:var(--ink-soft);line-height:1.4}
.entry-b__tag{font-size:var(--font-size-body-small);font-weight:600;color:var(--ink)}
/* B's exercise preferences: two short questions, each its chosen exercises as removable chips over a search. */
.entry-b__prefs{margin:var(--space-26) 0 0}
.entry-b__prefs-title{margin:0 0 var(--space-8);font-size:var(--font-size-subtitle);font-weight:var(--weight-semibold);color:var(--ink)}
.entry-b__chips{display:flex;flex-wrap:wrap;gap:var(--space-8);margin:0 0 var(--space-12);padding:0;list-style:none}
.entry-b__chip{
  display:inline-flex;align-items:center;gap:var(--space-8);max-width:100%;min-height:var(--control-target);padding:0 var(--space-12) 0 var(--space-14);
  border:1px solid var(--boundary-required);border-radius:var(--radius-pill);background:var(--surface);color:var(--ink);
  font:inherit;font-size:var(--font-size-body-small);text-align:left;cursor:pointer;
}
.entry-b__chip>span:first-child{min-width:0;overflow-wrap:anywhere}
.entry-b__chip.is-pressed:not(:disabled){background:var(--well)}
.entry-wheels{position:relative;isolation:isolate;display:flex;justify-content:center;gap:10px;width:100%;height:220px;margin:16px 0 0}
.entry-wheel{flex:0 0 auto;min-width:72px;height:220px;overflow-y:scroll;scroll-snap-type:y mandatory;scrollbar-width:none;overscroll-behavior:contain;border-radius:var(--radius-compact)}
.entry-wheel::-webkit-scrollbar{display:none}
.entry-wheel:focus-visible{outline:var(--control-focus-outline);outline-offset:2px}
#entryWheelMonth{min-width:150px}
.entry-wheel__pad{height:88px}
.entry-wheel__item{height:44px;display:grid;place-items:center;scroll-snap-align:center;font-family:var(--font-training-data);font-size:var(--font-size-subtitle);color:var(--ink-faint);cursor:pointer;white-space:nowrap}
#entryWheelMonth .entry-wheel__item{font-family:var(--font-language)}
.entry-wheel__item.is-current{color:var(--ink);font-weight:600}
.entry-wheels__band{position:absolute;left:0;right:0;top:88px;height:44px;border-top:1px solid var(--rule-strong);border-bottom:1px solid var(--rule-strong);z-index:-1;pointer-events:none}
.entry-ruler{position:relative;width:100%;margin:20px 0 0;text-align:center}
.entry-ruler__value{margin:0 0 14px;font-size:var(--font-size-subtitle);color:var(--ink-soft)}
.entry-ruler__value b{font-family:var(--font-training-data);font-size:var(--font-size-focal-data);font-variant-numeric:tabular-nums;color:var(--ink)}
.entry-ruler__type{padding:0;border:0;background:transparent;color:inherit;font:inherit;cursor:text}
.entry-ruler__type:focus-visible{outline:var(--control-focus-outline);outline-offset:3px;border-radius:var(--radius-control)}
.entry-ruler__scroll{overflow-x:scroll;scrollbar-width:none;overscroll-behavior:contain;-webkit-mask-image:linear-gradient(90deg,transparent,var(--ink) 20%,var(--ink) 80%,transparent);mask-image:linear-gradient(90deg,transparent,var(--ink) 20%,var(--ink) 80%,transparent)}
.entry-ruler__scroll::-webkit-scrollbar{display:none}
.entry-ruler__scroll:focus-visible{outline:var(--control-focus-outline);outline-offset:2px}
.entry-ruler__track{position:relative;height:84px;background:
  repeating-linear-gradient(90deg,var(--rule-strong) 0 1px,transparent 1px 80px) bottom left/100% 44px no-repeat,
  repeating-linear-gradient(90deg,var(--rule) 0 1px,transparent 1px 8px) bottom left/100% 24px no-repeat}
.entry-ruler__track em{position:absolute;bottom:52px;transform:translateX(-50%);font-style:normal;font-family:var(--font-training-data);font-size:var(--font-size-caption);color:var(--ink-soft)}
.entry-ruler__needle{position:absolute;left:50%;bottom:0;width:3px;height:70px;border-radius:var(--radius-compact);background:var(--accent);transform:translateX(-50%);pointer-events:none}
.onb__skip{display:block;margin:8px auto 0;min-height:44px}
.onb__skip[hidden]{display:none}
.settings-profile{margin:8px 0 0;display:flex;flex-direction:column}
.settings-profile__row{display:flex;justify-content:space-between;gap:12px;padding:10px 0;border-bottom:1px solid var(--rule)}
.settings-profile__row dt{color:var(--ink-soft)}
.settings-profile__row dd{margin:0;text-align:right;color:var(--ink)}
#profileRow[hidden]{display:none}

/* Onboarding B's building moment (Plan 072): the checklist ticks line by
   line and a thin bar fills; reduced motion draws it done. */
.entry-building{display:flex;flex-direction:column;align-items:center;text-align:center;padding:24px 0 8px}
.entry-building__mark{width:56px;height:56px;margin-bottom:16px}
.entry-building__steps{list-style:none;margin:20px 0 0;padding:0;display:flex;flex-direction:column;gap:12px;text-align:left;align-self:stretch}
.entry-building__steps li{display:flex;align-items:center;gap:10px;color:var(--ink-faint);font-size:var(--font-size-body)}
.entry-building__tick{flex:none;opacity:0;color:var(--ink)}
.entry-building__steps li.is-now{color:var(--ink-soft)}
.entry-building__steps li.is-done{color:var(--ink)}
.entry-building__steps li.is-done .entry-building__tick{opacity:1}
.entry-building__bar{align-self:stretch;height:2px;margin:24px 0 0;background:var(--rule);overflow:hidden}
.entry-building__bar i{display:block;height:100%;background:var(--ink);transform:scaleX(0);transform-origin:left}
.entry-building.is-running .entry-building__bar i{transform:scaleX(1);transition:transform 1040ms linear}
.entry-building.is-done .entry-building__bar i{transform:scaleX(1)}
.entry-building__wait{margin:16px 0 0;color:var(--ink-soft)}
.entry-building__skip{margin-top:20px}
@media (prefers-reduced-motion: reduce){.entry-building.is-running .entry-building__bar i{transition:none}}

/* ADR 0023 controls share the existing selection, adjustment and floating roles. */
.native-segments{position:relative;display:inline-grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);max-width:100%;isolation:isolate;min-height:var(--control-target);padding:2px;border-radius:var(--radius-control);background:var(--control-track);border:1px solid transparent;touch-action:pan-y}
.native-segments__thumb{position:absolute;top:2px;bottom:2px;left:2px;z-index:-1;background:var(--segment-thumb-bg);border-radius:var(--radius-control);box-shadow:var(--segment-thumb-shadow);pointer-events:none}
.native-segments button{border:0;background:transparent;color:var(--ink);min-width:var(--control-target);padding:var(--space-8) var(--space-4);font-size:var(--font-size-body-small);border-radius:var(--radius-control)}
.native-segments button[aria-checked="true"]{font-weight:var(--weight-semibold)}
.native-segments button.is-pressed{background:var(--row-pressed-bg)}
.native-segments button:focus-visible,.native-stepper button:focus-visible,.native-row-menu:focus-visible,.native-context button:focus-visible,.sheet--actions button:focus-visible{outline:var(--control-focus-outline);outline-offset:-2px}
.settings-row--segments{flex-wrap:wrap;gap:var(--space-8)}
.native-stepper{display:flex;align-items:center;gap:var(--space-12);flex-wrap:wrap}
.native-stepper .field,.native-stepper .program-editor__metric-field{flex:1;min-width:0;margin:0}
/* A Settings stepper row: label, the formatted value (it opens the typed field below), then − +. */
.native-stepper--row{display:block}
.settings-row--stepper{flex-wrap:wrap}
.native-stepper__value{flex:none;margin-left:auto;min-height:var(--control-target);padding:0 var(--space-4);border:0;border-radius:var(--radius-control);background:transparent;color:var(--color-ink-secondary);font-family:var(--font-training-data);font-feature-settings:"tnum";font-size:var(--font-size-body);cursor:pointer}
.native-stepper__value.is-pressed{background:var(--row-pressed-bg)}
.native-stepper__unit{font-family:var(--font-language)}
/* The editor's Smallest load change row, as in the prototype: label and hint, the value, then − +. */
.program-editor__stepper-row{display:flex;align-items:center;gap:var(--space-12);min-height:var(--control-target)}
.program-editor__stepper-label{flex:1;min-width:0;font-size:var(--font-size-body);color:var(--color-ink)}
.program-editor__stepper-label small{display:block;margin-top:2px;font-size:var(--font-size-caption);line-height:var(--line-reading);color:var(--color-ink-secondary)}
.program-editor__load-step-field{margin-top:var(--space-8)}
/* Inside a disclosure panel the panel already holds the settings inset. */
.settings-panel .settings-row--stepper{padding-inline:0}
.settings-panel .settings-row--stepper::before{left:0}
.native-stepper__value:focus-visible{outline:var(--control-focus-outline);outline-offset:2px}
.native-stepper__buttons{display:inline-flex;flex:none;border-radius:var(--radius-control);background:var(--control-track);border:0}
.native-stepper__buttons button{position:relative;display:grid;place-items:center;width:47px;height:36px;min-width:0;min-height:0;padding:0;border-radius:0;background:transparent;border:0;color:var(--ink);font-size:var(--control-icon-size);touch-action:none;user-select:none}
.native-stepper__buttons button+button{border-left:.5px solid var(--rule-strong)}
.native-stepper__buttons button:first-child{border-radius:var(--radius-control) 0 0 var(--radius-control)}
.native-stepper__buttons button:last-child{border-radius:0 var(--radius-control) var(--radius-control) 0}
.native-stepper__buttons button.is-pressed{background:var(--row-pressed-bg)}
.native-stepper__buttons button .icon-mask{width:18px;height:18px}
/* The capsule draws 36px, as in the prototype; each button still answers a 44px-tall touch. */
.native-stepper__buttons button::after{content:"";position:absolute;inset:-4px 0}
.native-stepper__buttons button:disabled{color:var(--color-disabled-reason);cursor:default;opacity:1}
.today-rx__row{position:relative;grid-column:1/-1;display:grid;grid-template-columns:subgrid;-webkit-touch-callout:none;user-select:none}
.today-rx__row .rxrow{grid-column:1/-1;display:grid;grid-template-columns:subgrid}
/* As in the prototype, a Today row shows no ⋯: touch and hold, right click or Shift+F10 open its menu. The button
   stays in the tab order for keyboard and screen-reader users and shows itself only while it has keyboard focus. */
.native-editor-row{position:relative}
.native-row-menu.visually-hidden{min-width:0;min-height:0}
.native-row-menu.visually-hidden:focus-visible:not([data-quiet-focus]){width:auto;height:auto;min-width:var(--control-target);min-height:var(--control-target);margin:0;overflow:visible;clip:auto;right:0;top:50%;translate:0 -50%;background:var(--surface)}
.today-rx__row:focus-visible{outline:var(--control-focus-outline);outline-offset:2px}
.native-row-menu{display:inline-grid;place-items:center;border:0;background:transparent;color:var(--ink);min-height:var(--control-target);min-width:var(--control-target);border-radius:var(--radius-control);align-self:center}
.native-row-menu .icon-mask{width:22px;height:22px}
.native-row-menu.is-pressed{background:var(--row-pressed-bg)}
.native-editor-row{display:flex;align-items:stretch;-webkit-touch-callout:none;user-select:none}
.native-editor-row .program-editor-a__row{flex:1;min-width:0}
.native-editor-row .native-row-menu{flex:none}
.sheet--actions{height:auto;left:var(--space-8);right:var(--space-8);bottom:calc(var(--kb,0px) + env(safe-area-inset-bottom) + var(--space-8));padding:0;gap:var(--space-8);background:transparent;box-shadow:none}
.native-actions__group{overflow:hidden;border-radius:var(--radius-prominent);background:var(--surface);box-shadow:var(--elevation-modal-shadow)}
.sheet--actions button{display:block;width:100%;min-height:56px;border:0;padding:var(--space-12) var(--space-16);background:var(--surface);color:var(--ink);font-size:var(--font-size-subtitle);line-height:var(--line-standard)}
.sheet--actions button[hidden]{display:none}
.native-actions__group button+button{border-top:1px solid var(--boundary-decorative)}
.sheet--actions button.is-pressed{background:var(--row-pressed-bg)}
.native-context{position:fixed;inset:0;width:100%;height:100%;max-width:none;max-height:none;padding:env(safe-area-inset-top,0px) env(safe-area-inset-right,0px) env(safe-area-inset-bottom,0px) env(safe-area-inset-left,0px);margin:0;border:0;background:transparent;color:var(--ink);overflow:hidden}
.native-context::backdrop{background:var(--menu-backdrop);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}
.native-context__preview{position:fixed!important;display:flex;align-items:center;padding-inline:var(--space-12);pointer-events:none;background:var(--surface);border-radius:var(--radius-surface);box-shadow:var(--elevation-drag-shadow);transform:scale(1.03)}
.native-context__preview.today-rx__row{display:grid;grid-template-columns:var(--today-rx-columns);background:var(--bg);container-type:inline-size}
@container (max-width:18rem){
  .native-context__preview.today-rx__row .rxrow{grid-template-columns:var(--rx-mark,1rem) minmax(0,1fr) auto}
}
.native-context__preview .native-row-menu{display:none}
.native-context__preview.shelf__field{padding:0;background:transparent;box-shadow:none}
.native-context__preview.shelf__field .shelf__fieldbtn{box-shadow:var(--elevation-drag-shadow)}
.native-context__preview .rxrow,.native-context__preview .program-editor-a__row{border-bottom:0}
.native-context__menu{position:fixed;min-width:min(230px,calc(100vw - env(safe-area-inset-left,0px) - env(safe-area-inset-right,0px) - 24px));max-width:min(300px,calc(100vw - env(safe-area-inset-left,0px) - env(safe-area-inset-right,0px) - 24px));max-height:calc(var(--vvh,100dvh) - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px) - 24px);overflow-y:auto;background:var(--menu-bg);-webkit-backdrop-filter:var(--menu-blur);backdrop-filter:var(--menu-blur);border:0;border-radius:var(--radius-surface);box-shadow:var(--menu-shadow)}
.native-context__menu button{display:flex;align-items:center;justify-content:space-between;gap:var(--space-16);width:100%;min-height:var(--control-target);padding:10px var(--space-16);text-align:left;border:0;background:transparent;color:var(--ink);font-size:var(--font-size-body);line-height:var(--line-standard)}
.native-context__menu button+button{border-top:.5px solid var(--rule)}
/* The destructive choice sits apart, as iOS separates it in a context menu. */
.native-context__menu button:not(.is-destructive)+button.is-destructive{border-top:var(--space-8) solid var(--menu-separator)}
.native-context__menu button.is-pressed{background:var(--row-pressed-bg)}
/* A titled menu, an item's subtitle, and a group start (the effort menu, Plan 077). */
.native-context__title{margin:0;padding:var(--space-8) var(--space-16) 6px;font-size:var(--font-size-caption);line-height:var(--line-standard);color:var(--color-ink-secondary)}
.native-context__title+button{border-top:.5px solid var(--rule)}
.native-context__label{display:flex;flex-direction:column;min-width:0}
.native-context__sub{font-size:var(--font-size-caption);color:var(--color-ink-secondary)}
.native-context__menu button.is-group{border-top:var(--space-8) solid var(--menu-separator)}
.native-context__icon{flex:none;width:20px;height:20px}
/* A pull-down's checked item: the check in the icon slot and a medium label (contract: state cues). */
.native-context__menu [role="menuitemradio"][aria-checked="true"]{font-weight:var(--weight-medium)}
.native-context__menu button:disabled{color:var(--color-disabled-reason);opacity:1}
.native-context button.is-destructive{color:var(--menu-destructive-ink)}
.sheet--actions button.is-destructive{color:var(--color-destructive)}
@media(prefers-reduced-motion:reduce){.native-context__preview{transform:none}}
@media(prefers-reduced-transparency:reduce){.native-context__menu{background:var(--surface);backdrop-filter:none;-webkit-backdrop-filter:none}.native-context::backdrop{backdrop-filter:none;-webkit-backdrop-filter:none}}


/* @ci-domain today,progress,workout */
.week-card{padding:var(--space-16) 0;border-bottom:.5px solid var(--boundary-decorative);color:var(--color-ink)}
.week-card p{margin:0 0 var(--space-8);line-height:var(--line-reading);overflow-wrap:anywhere}
.week-card__actions{display:flex;flex-wrap:wrap;gap:var(--space-12);justify-content:space-between}
.week-card__actions .text-link{color:var(--control-quiet-ink)}
#stats #reviewPanel .review__week{padding:var(--space-16) 0;border-bottom:.5px solid var(--boundary-decorative)}
#stats #reviewPanel .review__week p{line-height:var(--line-reading);overflow-wrap:anywhere}

/* Session zero uses the same cue and shelf, with explicit start and skip actions. */
.fx-ramp-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-block: 12px; }
.fx-ramp-actions .text-link { min-height: 44px; }
/* @ci-domain entry */
.sheet--effort-choice{height:auto}
.sheet--effort-choice .sheet__body{flex-direction:column;overflow:auto}
#effortChoiceScrim{z-index:53}
#effortChoiceSheet{z-index:54}
.week-proposal__causes,.week-proposal__actions{display:flex;flex-wrap:wrap;gap:var(--space-8);align-items:center}
.week-proposal__cause{min-height:44px;padding:var(--space-8) var(--space-12);border:1px solid var(--control-selection-boundary);border-radius:var(--radius-control);background:var(--control-selection-bg);color:var(--control-selection-ink);font:inherit;white-space:normal}
.week-proposal__causes [aria-pressed="true"]{font-weight:var(--weight-semibold);box-shadow:var(--elevation-selected-shadow);border-color:var(--control-selection-boundary);background:var(--control-selection-active-bg);color:var(--control-selection-ink)}
.week-proposal__actions{margin-top:var(--space-16);gap:var(--space-16)}
.week-proposal__actions .text-link{min-height:44px}

#todayProgram{align-items:center}
#todayProgram #todayEstimateInfo{margin-left:auto;flex:none}
#todayDash > #todayWeekCard{margin-top:var(--space-18)}
#todayDash > #todaySessionLabel{margin-top:var(--space-18)}
#todaySession:has(.today-dayhead){margin-top:var(--space-18)}

/* ---- Progress: one Summary with pushed pages (Progress hill-climb, 2026-11) ----
   The Summary groups the block on grouped surfaces: the block card, Strength, recent records, sets per muscle and
   the profile. Strength, Records, Volume, Review and the profile are pages pushed from it, each titled with its
   name under Back to Progress. Rows inside a group are separated by a hairline; the group itself is the surface. */
#stats > .stats-back{display:inline-flex;align-items:center;gap:var(--space-4);margin:var(--space-4) 0 0;padding:var(--space-8) 0;color:var(--control-quiet-ink)}
#stats > .stats-back .chevron{transform:rotate(180deg);color:inherit}
#stats > .stats-back[hidden]{display:none}
#stats:not([data-page="summary"])>.pagehead{margin-top:var(--space-4);margin-bottom:var(--space-16)}
#stats .stats-subtitle{margin-top:var(--space-4)}
.sumcard{
  display:block;background:var(--surface);border:1px solid var(--rule-on-surface);border-radius:var(--radius-surface);padding:0 var(--space-16);
}
.sumhead{display:flex;align-items:center;justify-content:space-between;gap:var(--space-12);margin:var(--space-26) 2px var(--space-4)}
.sumhead__title{margin:0;font-size:var(--font-size-subtitle);font-weight:var(--weight-semibold);line-height:var(--line-standard);color:var(--ink)}
.sumhead__link{
  display:inline-flex;align-items:center;gap:2px;flex:none;min-height:var(--control-target);padding:0;border:0;background:none;
  color:var(--control-quiet-ink);font-family:var(--font-language);font-size:var(--font-size-body-small);font-weight:var(--weight-medium);cursor:pointer;
}
.sumhead__link .chevron{color:inherit;width:14px;height:14px}
.sumhead__link:focus-visible{outline:var(--control-focus-outline);outline-offset:2px;border-radius:var(--radius-compact)}

.phero{margin-top:var(--space-4);padding:var(--space-14) var(--space-16) 0;container-type:inline-size}
.phero__eyebrow{margin:0;font-size:var(--font-size-label);font-weight:var(--weight-semibold);letter-spacing:var(--track-label);text-transform:uppercase;color:var(--color-ink-secondary)}
.phero__headline{margin:var(--space-4) 0 0;font-size:var(--font-size-subtitle);font-weight:var(--weight-medium);line-height:1.3;color:var(--ink);text-wrap:balance}
.phero__n{margin-right:2px;font-size:var(--font-size-feature-title);font-weight:var(--weight-semibold);letter-spacing:-.02em;color:var(--ink)}
.phero__n.is-up{color:var(--positive)}
.phero__stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--space-12);margin-top:var(--space-12)}
.phero__stat{display:flex;flex-direction:column;gap:var(--space-4);min-width:0}
.phero__val{font-size:var(--font-size-metric);font-weight:var(--weight-semibold);line-height:1.1;color:var(--ink)}
.phero__of{font-style:normal;font-size:var(--font-size-body-small);font-weight:var(--weight-medium);color:var(--color-ink-secondary)}
.phero__cap{font-size:var(--font-size-caption);line-height:var(--line-standard);color:var(--color-ink-secondary)}
/* At large text the three stats stack, each value with its caption beside it, so a caption never breaks a word per line. */
@container (max-width:15em){
  .phero__stats{grid-template-columns:minmax(0,1fr);gap:var(--space-8)}
  .phero__stat{flex-direction:row;align-items:baseline;gap:var(--space-8)}
  .phero__val{flex:none}
}
.phero__week{display:flex;align-items:center;gap:var(--space-12);margin-top:var(--space-14)}
.phero__weeklabel{flex:none;font-size:var(--font-size-body-small);font-weight:var(--weight-medium);color:var(--ink)}
.phero__track{flex:1;display:flex;gap:var(--space-4)}
.phero__seg{flex:1;height:4px;border-radius:var(--radius-pill);background:var(--control-track)}
.phero__seg.is-done{background:var(--ink)}
.phero__seg.is-current{background:var(--accent)}
.phero__review{
  display:flex;align-items:center;gap:var(--space-12);width:100%;min-height:56px;margin-top:var(--space-14);padding:var(--space-12) 0;
  border:0;border-top:1px solid var(--rule-on-surface);background:none;color:var(--ink);text-align:left;font:inherit;cursor:pointer;
}
.phero__reviewtext{flex:1;display:flex;flex-direction:column;gap:2px;min-width:0}
.phero__reviewtext b{font-weight:var(--weight-medium)}
.phero__reviewtext span{font-size:var(--font-size-body-small);color:var(--color-ink-secondary)}

/* A lift: name and current top load, its line, then where it started and the change this block. */
.liftrow{
  display:flex;align-items:center;gap:var(--space-8);width:100%;min-height:56px;margin:0;padding:var(--space-12) 0;
  border:0;border-radius:0;background:none;color:var(--ink);text-align:left;font:inherit;cursor:pointer;
}
.sumcard > * + .liftrow,.sumcard > * + .recrow,.sumcard > * + .musrow{border-top:1px solid var(--rule-on-surface)}
.liftrow--snap{cursor:default}
.liftrow__body{flex:1;display:flex;flex-direction:column;min-width:0}
.liftrow__l1,.liftrow__l2{display:flex;align-items:baseline;justify-content:space-between;gap:var(--space-12)}
.liftrow__name{min-width:0;font-weight:var(--weight-medium);overflow-wrap:anywhere}
.liftrow__fig{flex:none;text-align:right;white-space:nowrap}
.liftrow__val{font-weight:var(--weight-semibold)}
.liftrow__unit{font-size:var(--font-size-body-small);color:var(--color-ink-secondary)}
.liftrow__fig .per-side{display:block;font-size:var(--font-size-caption);color:var(--color-ink-secondary)}
.liftrow__l2{margin-top:2px;font-size:var(--font-size-body-small);line-height:var(--line-standard);color:var(--color-ink-secondary)}
.liftrow__since{min-width:0}
.liftrow__l3{margin-top:2px;font-size:var(--font-size-body-small);line-height:var(--line-standard);color:var(--color-ink-secondary)}
.liftrow__delta{flex:none;font-weight:var(--weight-semibold);color:var(--color-ink-secondary);white-space:nowrap}
.liftrow__delta.is-up{color:var(--positive)}
.liftrow > .chevron{color:var(--color-ink-secondary)}
.liftrow.evrow{border-bottom:0}
.liftrow.is-open + .evrow__detail{padding-bottom:var(--space-12)}
.liftline{position:relative;display:block;height:30px;margin:var(--space-8) 0 var(--space-4)}
.liftline__svg{position:absolute;top:0;bottom:0;left:var(--space-4);width:calc(100% - 2 * var(--space-4));height:100%;overflow:visible}
.liftline__path{fill:none;stroke:var(--color-ink-secondary);stroke-width:2;stroke-linecap:round;stroke-linejoin:round;vector-effect:non-scaling-stroke}
.liftline__pt{
  position:absolute;left:calc(var(--space-4) + (100% - 2 * var(--space-4)) * var(--pt-x));top:var(--pt-y);width:5px;height:5px;margin:-2.5px 0 0 -2.5px;border-radius:var(--radius-round);
  background:var(--surface);border:1.5px solid var(--color-ink-secondary);
}
.liftline__pt--end{width:8px;height:8px;margin:-4px 0 0 -4px;border:0;background:var(--ink)}
.liftline.is-up .liftline__pt--end{background:var(--positive)}

/* A record set: the lift and the set, then the gain it set (the first in green) and the date. */
.recrow{
  display:flex;align-items:center;gap:var(--space-8);width:100%;min-height:56px;margin:0;padding:var(--space-12) 0;
  border:0;border-radius:0;background:none;color:var(--ink);text-align:left;font:inherit;cursor:pointer;
}
.recrow__body{flex:1;display:flex;flex-direction:column;gap:2px;min-width:0}
.recrow__l1,.recrow__l2{display:flex;align-items:baseline;justify-content:space-between;gap:var(--space-12)}
.recrow__name{min-width:0;font-weight:var(--weight-medium);overflow-wrap:anywhere}
.recrow__set{flex:none;font-weight:var(--weight-semibold);white-space:nowrap}
.recrow__l2{font-size:var(--font-size-body-small);color:var(--color-ink-secondary)}
.recrow__recs{min-width:0}
.recrow__gain{font-weight:var(--weight-medium);color:var(--color-ink-secondary)}
.recrow__rec[data-first] .recrow__gain{font-weight:var(--weight-semibold);color:var(--positive)}
.recrow__date{flex:none;white-space:nowrap}
.recrow > .chevron{color:var(--color-ink-secondary)}
.recrow__detail{padding:0 0 var(--space-12)}
.recday{margin:var(--space-18) 2px var(--space-8);font-size:var(--font-size-subtitle);font-weight:var(--weight-semibold);line-height:var(--line-standard)}
#prTimeline .recday:first-child{margin-top:var(--space-8)}

/* Sets per muscle: a bar toward this week's plan. */
.musrow{display:flex;flex-direction:column;gap:var(--space-8);padding:var(--space-12) 0}
.musrow__l{display:flex;align-items:baseline;justify-content:space-between;gap:var(--space-12)}
.musrow__name{min-width:0;font-weight:var(--weight-medium)}
.musrow__n{flex:none;font-size:var(--font-size-body-small);color:var(--color-ink-secondary)}
.musrow__bar{display:block;height:6px;border-radius:var(--radius-pill);background:var(--control-track);overflow:hidden}
.musrow__fill{display:block;width:var(--fill);height:100%;border-radius:inherit;background:var(--ink)}

.profilelink{
  display:flex;align-items:center;gap:var(--space-12);width:100%;min-height:64px;margin-top:var(--space-26);padding:var(--space-12) var(--space-16);
  border:0;color:var(--ink);text-align:left;font:inherit;cursor:pointer;
}
.profilelink .profile-ring{flex:none;width:40px;height:40px}
.profilelink__text{flex:1;display:flex;flex-direction:column;gap:2px;min-width:0}
.profilelink__text b{font-weight:var(--weight-medium)}
.profilelink__text span{font-size:var(--font-size-body-small);color:var(--color-ink-secondary)}
.profilelink > .chevron{color:var(--color-ink-secondary)}

:is(.liftrow,.recrow,.phero__review,.profilelink):focus-visible{outline:var(--control-focus-outline);outline-offset:-2px;border-radius:var(--radius-control)}
:is(.liftrow,.recrow,.phero__review,.profilelink).is-pressed{background:var(--row-pressed-bg)}

/* The three page filters share the kit's segmented control. */
#stats #volumeScopeSeg,#stats #prFilterSeg{
  display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:0;margin:0 0 var(--space-16);padding:2px;
  border:0;border-radius:var(--radius-control);background:var(--control-track);
}
#stats #strengthScopeSeg{margin:0 0 var(--space-16)}
#stats #volumeScopeSeg > button,#stats #prFilterSeg > button{
  min-height:var(--control-target);margin:0;padding:var(--space-4) var(--space-4);border:0;border-radius:var(--radius-control);
  background:transparent;color:var(--ink);text-align:center;white-space:normal;overflow-wrap:anywhere;box-shadow:none;
  font-size:var(--font-size-body-small);font-weight:var(--weight-medium);line-height:var(--line-standard);
}
#stats #volumeScopeSeg > button.active,#stats #prFilterSeg > button.active{
  background:var(--segment-thumb-bg);box-shadow:var(--segment-thumb-shadow);color:var(--ink);font-weight:var(--weight-semibold);border-bottom-color:transparent;
}

/* Needs attention on the Summary: its rows on the group surface. */
#attention .attnrow{border-bottom:0}
#attention .sumcard > * + .attnrow{border-top:1px solid var(--rule-on-surface)}
/* The exercise chart and its sessions on the same grouped surfaces as the Summary. */
#exercise .exchart__card{margin-top:var(--space-12);padding-top:var(--space-12);padding-bottom:var(--space-4)}
#exercise .exchart__ledger{margin-top:var(--space-16);padding:0;overflow:hidden}
#exercise .exchart__ledger .exchart__cols,#exercise .exchart__ledger .exrow{padding-left:var(--space-16);padding-right:var(--space-16)}
#exercise .exchart__soft.is-up{color:var(--positive);font-weight:var(--weight-semibold)}
#exercise .exchart__card .exchart__readout{font-size:var(--font-size-body-small)}
#exercise .exchart__card .exchart__per-side{margin:var(--space-8) 0 var(--space-8);padding-top:var(--space-8);border-top:1px solid var(--rule-on-surface)}
@media (max-width:360px){
  .phero{padding-top:var(--space-12)}
  .phero__stats{gap:var(--space-8);margin-top:var(--space-8)}
  .phero__week,.phero__review{margin-top:var(--space-8)}
  .sumhead{margin-top:var(--space-18)}
}
#exercise .exchart__card > .exchart__figs:first-child{border-top:0;padding-top:0;margin-top:0}
/* The profile page is titled by the page; its own heading (.visually-hidden) stays for focus and assistive technology. */
#segProfile .profile-intro{margin-top:0}
/* Review opens under its page title, not a section gap below it. */
#reviewPanel > :first-child,#reviewPanel > :first-child > .section-label:first-child{margin-top:0}
/* A lift's sessions table, opened in place, spans the group's full width: at 320 and large text it needs every column. */
#strengthDash .sumcard > .evrow__detail{margin:0 calc(-1 * var(--space-16) - 1px);padding-left:0;padding-right:0;width:auto;max-width:none}
/* The rules run edge to edge; where the columns have room, the text keeps a gutter so the date and the last column
   clear the card's edge. The width is read in em, so enlarged text, which needs every column, keeps the full bleed. */
#strengthDash .sumcard > .evrow__detail{container-type:inline-size}
@container (min-width: 17em){
  #strengthDash .sumcard > .evrow__detail > :not(.evtable){padding-inline:var(--space-16)}
  #strengthDash .sumcard > .evrow__detail .evtable :is(th,td):first-child{padding-left:var(--space-16)}
  #strengthDash .sumcard > .evrow__detail .evtable :is(th,td):last-child{padding-right:var(--space-16)}
}
/* The Strength page keeps the canonical outcome word on each lift, on its own line scoped to the last session. */
.liftrow .evrow__out{display:inline;margin:0;font-size:inherit;line-height:inherit}
/* The Volume page's muscles on the same grouped surface as Strength and Records. */
#volumeDash .sumcard > .vrow.evrow{padding:var(--space-12) 0;border-bottom:0}
#volumeDash .sumcard > * + .vrow.evrow{border-top:1px solid var(--rule-on-surface)}
#volumeDash .sumcard > .evrow__detail{border-bottom:0}

.partial-reps{
  margin-inline-start:1px;
  font-size:var(--font-size-partial-reps);
  color:var(--accent-deep);
  font-weight:var(--weight-semibold);
  letter-spacing:0
}
.shelf__val .partial-reps{font-size:var(--font-size-partial-shelf);vertical-align:.32em;margin-inline-start:2px}
.saveset .partial-reps{color:var(--partial-on-cta)}
.shelf__pads .shelf__chip--partial:not([aria-pressed="true"]){color:var(--accent-deep)}
.shelf__pads--past-zero{animation:past-zero-in 240ms cubic-bezier(.2,.7,.2,1)}
@keyframes past-zero-in{
  from{opacity:.2;transform:translateX(24px)}
  to{opacity:1;transform:none}
}
@media (prefers-reduced-motion:reduce){.shelf__pads--past-zero{animation:none}}
.history-partials-edit{
  grid-column:2;
  display:flex;
  align-items:center;
  gap:var(--space-8);
  color:var(--color-ink-secondary);
  font-size:var(--font-size-label)
}
#history .history-partials-edit{margin-block-start:var(--space-4);flex-wrap:wrap;min-width:0}
#history .history-partials-edit__lab{flex:1 1 8em;min-width:0;overflow-wrap:anywhere}
#history .history-partials-edit .edrow__in{width:4.5em;flex:none;margin-inline-start:auto}
.history-partials-edit[hidden]{display:none}

/* ---- Suggested warm-ups (Plan 085, Prelude) ----
   The cue becomes the warm-up until the sequence is done: the load, its reps and plate hint, a rail to the working load,
   where the lifter stands with the way to skip, and why. The shelf keeps Load and Reps. Nothing here animates. */
.fx-rail{list-style:none;display:flex;align-items:flex-start;gap:0;margin:var(--space-12) 0 var(--space-4);padding:0}
.fx-rail__step{position:relative;flex:1 1 0;min-width:0;display:flex;flex-direction:column;align-items:flex-start;gap:6px}
.fx-rail__step::before{content:"";position:absolute;top:4px;left:10px;right:0;height:2px;border-radius:var(--radius-pill);background:var(--boundary-decorative)}
.fx-rail__step:last-child{flex:0 0 auto}
.fx-rail__step:last-child::before{display:none}
.fx-rail__step.is-done::before{background:var(--color-ink)}
.fx-rail__dot{position:relative;width:10px;height:10px;box-sizing:border-box;border:2px solid var(--boundary-decorative);border-radius:var(--radius-round);background:var(--bg)}
.fx-rail__step.is-done .fx-rail__dot{background:var(--color-ink);border-color:var(--color-ink)}
.fx-rail__step.is-now .fx-rail__dot{background:var(--accent);border-color:var(--accent);box-shadow:var(--control-focus-halo-shadow)}
.fx-rail__step--work .fx-rail__dot{border-radius:var(--radius-compact)}
.fx-rail__v{font-family:var(--font-training-data);font-size:var(--font-size-label);color:var(--color-ink-secondary);overflow-wrap:anywhere;min-width:0}
.fx-rail__step.is-now .fx-rail__v{color:var(--color-ink);font-weight:var(--weight-semibold)}
.fx-cue__standrow{display:flex;align-items:baseline;justify-content:space-between;gap:var(--space-12);flex-wrap:wrap}
.fx-cue__standrow .fx-cue__standing{margin:var(--space-4) 0 0;min-width:0}
.fx-cue__skip{font-size:var(--font-size-body-small);padding:6px 0;white-space:nowrap}
.shelf__fields--two{grid-template-columns:repeat(2,minmax(0,1fr))}
.fx-prelude-none{display:flex;align-items:center;justify-content:space-between;gap:var(--space-8);flex-wrap:wrap;margin:0 0 var(--space-4);padding-bottom:var(--space-4)}
.fx-prelude-none__label{font-family:var(--font-language);font-size:var(--font-size-label);font-weight:var(--weight-semibold);letter-spacing:var(--track-label);text-transform:uppercase;color:var(--color-ink-secondary)}
.fx-prelude-none__acts{display:flex;gap:var(--space-16)}
.fx-prelude-none .text-link{font-size:var(--font-size-body-small);padding:6px 0}
.ledgerline--warmup{min-height:40px}
.ledger__w{font-family:var(--font-training-data);font-size:var(--font-size-label);font-weight:var(--weight-semibold);letter-spacing:var(--track-label);color:var(--color-ink-secondary)}
.fcard__ledger .ledgerline--warmup .ledgerline__vals{justify-content:flex-start;text-align:left;font-family:var(--font-language);font-size:var(--font-size-body-small);color:var(--color-ink-secondary)}
.exercise--focus.is-text-scaled .ledgerline--warmup .ledgerline__vals{display:block}
.exactions__warmup-input{width:4.5em;min-height:var(--control-target);text-align:right}
.shelf__fields--one{grid-template-columns:minmax(0,1fr)}
.fx-cue__skip,.fx-prelude-none .text-link,.exactions__warmup-ctl .text-link{min-height:var(--control-target);display:inline-flex;align-items:center}

/* Focus exercise actions and session controls. */
#exActionsSheet .exactions__section { margin:0; padding:0; gap:0; }
#exActionsSheet .sheetgroup__head { margin:4px 0; }
#exActionsSheet .exactions__section > .sheetgroup__head { display:none; }
#exActionsSheet #exActionsWarmupSection > .sheetgroup__head { display:block; margin:12px 0 4px; }
#exActionsSheet #exActionsWarmupSection > .sheetgroup__head ~ .sheetgroup__head { font-size:var(--font-size-label); color:var(--ink-soft); }
#exActionsSheet .exactions__act { min-height:48px; padding-block:8px; gap:12px; padding:8px 0; }
#exActionsSheet .exactions__warmup-row { min-height:40px; padding-block:4px; }
#exActionsSheet .exactions__warmup-role { font-size:var(--font-size-caption); }
#sessionSheet { display:flex; flex-direction:column; max-height:min(85dvh,var(--sheet-max-height)); }
#sessionSheet[hidden] { display:none; }
#sessionSheet #sessionSheetBody { flex:1; min-height:0; padding-bottom:max(40px,env(safe-area-inset-bottom)); }
#sessionEarlySection { flex:none; padding:8px 16px max(8px, env(safe-area-inset-bottom)); border-top:1px solid var(--boundary-required); max-height:48vh; overflow:visible; margin:0; position:relative; gap:12px; }
/* An open confirmation takes the room it needs from the list above it, and scrolls only when it is taller than the sheet. */
#sessionEarlySection:has(.session-early-prompt:not(.hidden)) { flex:0 1 auto; min-height:0; max-height:none; overflow:hidden; }
/* The question scrolls inside the footer while its two answers stay in view. */
#sessionEarlySection .session-early-prompt { flex:0 1 auto; min-height:0; overflow-y:auto; overscroll-behavior:contain; }
#sessionEarlySection .session-early-actions { position:sticky; bottom:0; flex:none; background:var(--color-surface); }
/* While a question is open the list above gives it all the room it needs, down to nothing. */
#sessionSheet:has(#sessionEarlySection .session-early-prompt:not(.hidden)) #sessionSheetBody { flex-shrink:1000; padding-bottom:0; }
/* On a short screen the question takes the sheet: a clipped sliver of the list above it reads as a fault. */
@media (max-height:650px) {
  #sessionSheet:has(#sessionEarlySection .session-early-prompt:not(.hidden)) #sessionSheetBody { display:none; }
}
#sessionEarlySection button { display:flex; align-items:center; gap:12px; min-height:44px; }
#sessionEarlySection button.hidden { display:none; }
#sessionEarlySection button[hidden],#exActionsSheet [hidden] { display:none; }
.is-destructive { color:var(--danger); }
#sessionSheetBtn { width:auto; flex:none; padding:0 8px; font-size:var(--font-size-body-small); font-weight:var(--weight-medium); min-height:44px; border:1px solid var(--rule-on-surface); border-radius:var(--radius-pill); background:var(--control-quiet-bg); color:var(--color-ink); }
.fx-actions { display:flex; align-items:center; justify-content:center; flex:none; width:44px; height:44px; padding:0; border:0; border-radius:var(--radius-round); background:var(--control-quiet-bg); color:var(--control-quiet-ink); }
.fx-head__row { gap:8px; flex-wrap:nowrap; justify-content:flex-end; align-items:center; }
#exActionsSheet .exactions__rows { border-top:0; }
#exActionsSheet #exActionsSetupSection { padding-top:8px; }
#exActionsSheet #exActionsSetupSection > .sheetgroup__head { display:block; margin:0 0 4px; font-size:var(--font-size-caption); color:var(--color-ink-secondary); }
#exActionsWarmupList .exactions__warmup-row { flex-wrap:nowrap; min-height:44px; padding:0; }
#exActionsWarmupList .exactions__warmup-info { flex:1; }
.session-sheet__endings > #sessionEarlyFinish { justify-content:center; background:var(--control-primary-bg); color:var(--control-primary-ink); min-height:44px; }
#sessionAbandon { justify-content:center; min-height:44px; padding:4px; border:0; background:var(--control-quiet-bg); color:var(--control-destructive-ink); }
#sessionSheetBody > .exactions__act { min-height:44px; padding:4px 0; }
.wo-head { display:grid; grid-template-columns:44px minmax(0,1fr) auto; gap:4px; }
.wo-head__center { order:0; padding-top:8px; }
.wo-head__title { font-size:var(--font-size-focus-meta); }
#exActionRepeatHint { display:block; }
.fx-actions:focus-visible { outline:var(--control-focus-outline); outline-offset:2px; }
@media (max-height:650px) {
  #sessionSheet { max-height:calc(100dvh - 8px); }
}
@media (max-height:650px) {
  #sessionSheet .sheetband { padding-bottom:8px; }
}
@media (max-height:650px) {
  #sessionSheet .session-map__row,
  #sessionSheet .session-map__jump { min-height:44px; }
}
@media (max-height:650px) {
  #sessionSheet .session-map__jump { padding-block:4px; column-gap:8px; }
}
@media (max-height:650px) {
  #sessionSheet .session-map__name { font-size:var(--font-size-body-small); line-height:1.25; }
}
#workoutRestBtn { width:44px; height:44px; color:var(--color-ink); }
/* Each chip is a full target, but only its outline is drawn, and shorter: the target's extra height is taken back
   from the line, so the prescription line keeps its own height and the set table keeps its room (#517). */
.fx-actions,
.fx-note-add { display:inline-flex; gap:4px; width:auto; min-height:var(--control-target); height:var(--control-target); margin-block:calc((var(--control-target) - 1lh) / -2); padding:0 12px; border:0; border-radius:var(--radius-pill); color:var(--color-ink); background:transparent; font-size:var(--font-size-caption); line-height:var(--line-reading); flex-shrink:0; white-space:nowrap; position:relative; }
.fx-actions::before,
.fx-note-add::before { content:""; position:absolute; inset:6px 0; border:1px solid var(--rule-on-surface); border-radius:var(--radius-pill); pointer-events:none; }
.fx-actions .icon-mask { width:18px; height:18px; display:inline-block; margin-right:-2px; color:var(--color-ink); margin:0; }
.fx-actions > span:last-child { font-family:var(--font-language); font-size:var(--font-size-body-small); font-weight:var(--weight-medium); }
#exActionsSheet .sheetgroup__cap { margin:16px 0 4px; }
.exactions__warmup-label { margin:8px 0 4px; color:var(--color-ink-secondary); font-size:var(--font-size-body-small); }
#exActionsWarmupList .exactions__warmup-num { font-size:var(--font-size-focus-meta); }
#exActionsSheet .exactions-sheet__body { padding-bottom:max(32px,env(safe-area-inset-bottom)); overflow-y:auto; }
#sessionMapLabel { margin-top:var(--space-26); }
#sessionEarlySection.has-more::before { content:""; position:absolute; pointer-events:none; height:36px; top:-37px; left:0; right:0; background:linear-gradient(to bottom,transparent,var(--color-surface)); }
@media (max-width:359px) {
  .fx-head__row .focus-ex__meta { flex-basis:100%; }
}
@media (max-width:359px) {
  #exActionsSheet { max-height:calc(100dvh - 8px); }
}
.fx-head__row .focus-ex__meta { flex-basis:auto; }
#exActionsSheet .exactions__health { margin-top:0; }
#exActionsSheet .exactions-sheet__body > * { flex-shrink:0; }
#exActionsSheet .exactions-sheet__body.has-more { mask-image:linear-gradient(to bottom, var(--ink) calc(100% - 32px), transparent); }
#exActionAddWarmup:disabled { color:var(--color-ink-secondary); cursor:default; display:grid; grid-template-columns:minmax(0,1fr) 20px; column-gap:12px; row-gap:2px; }
#exActionAddWarmup .exactions__hint { font-size:var(--font-size-label); font-weight:var(--weight-regular); color:var(--color-ink-secondary); grid-column:1 / -1; }
@media (max-width:374px) {
  .fx-note-add__label { display:inline; }
}
@media (max-width:374px) {
  .fx-note-add { width:auto; padding:0 8px; }
}
@media (max-width:374px) {
  .fx-head__row .focus-ex__meta { font-size:var(--font-size-label); white-space:nowrap; }
}
#exActionAddWarmup:disabled .exactions__act-text { display:contents; }
#exActionAddWarmup:disabled .icon-mask { grid-column:2; grid-row:1; opacity:.35; }
@media (max-width:374px) {
  .fx-actions { padding:0 8px; }
}
@media (max-width:374px) {
  .fx-head__row { gap:4px; }
}
@media (max-height:650px) {
  #exActionsSheet .exactions__act { min-height:44px; padding:4px 0; }
}
@media (max-height:650px) {
  #exActionsSheet .exactions__health { margin-top:0; }
}
@media (max-height:650px) {
  #exActionsSheet .sheetgroup__cap { margin:10px 0 2px; }
}
@media (max-height:650px) {
  #exActionsWarmupList .exactions__warmup-row { min-height:40px; }
}
@media (max-height:650px) {
  #sessionMapLabel { margin-top:12px; }
}
#sessionSheetBtn { padding:0 16px; border:1px solid var(--control-secondary-boundary); background:var(--control-secondary-bg); color:var(--control-secondary-ink); font-weight:var(--weight-semibold); }
@media (max-width:374px) {
  .fx-actions,
  .fx-note-add { padding:0 8px; gap:2px; }
}
@media (max-width:374px) {
  #sessionSheetBtn { padding:0 12px; }
}
#exActionsSheet #exActionsRepeatSection { margin-top:12px; }
#exActionsSheet #exActionsSkipSection { margin-top:24px; }
@media (max-height:650px) {
  #exActionsSheet #exActionsRepeatSection { margin-top:8px; }
}
@media (max-height:650px) {
  #exActionsSheet #exActionsSkipSection { margin-top:16px; }
}
.fx-actions > span:first-child { font-family:var(--font-language); font-size:var(--font-size-body-small); font-weight:var(--weight-medium); color:var(--color-ink); }
.fx-actions__label { font-family:var(--font-language); font-size:var(--font-size-body-small); font-weight:var(--weight-medium); color:var(--color-ink); }
#exActionsWarmupList { display:flex; flex-wrap:wrap; gap:6px; padding:4px 0 12px; border-top:0; border-bottom:1px solid var(--rule-on-surface); }
.exactions__warm-chip { position:relative; display:flex; align-items:center; justify-content:center; gap:4px; flex:0 0 auto; min-width:var(--control-target); min-height:var(--control-target); padding:var(--space-4) var(--space-12); border:1px solid var(--boundary-required); border-radius:var(--radius-pill); background:transparent; color:var(--color-ink); font-size:var(--font-size-body); font-weight:var(--weight-medium); font-variant-numeric:tabular-nums; }
.exactions__warm-chip .icon-mask { width:14px; height:14px; }
.exactions__warm-chip[aria-pressed="true"] { background:var(--ink); color:var(--bg); border-color:var(--boundary-selected-quiet); font-weight:var(--weight-semibold); }
