/* Homepage stylesheet bundle. The server inlines these same-origin imports (static-assets.ts), so the homepage waits
   on one hashed, immutable stylesheet instead of seven. The order is the cascade order: shared library, site chrome,
   page composition, the scripted example run, then the mascot's seasonal decoration. */
/* Sybqa Storybook (2026-11-15, founder-requested): the only source for visual values shared by product surfaces.
   A light pastel fantasy-RPG look: cream parchment ground, deep plum ink, a rose action on public pages and an indigo
   action in the console, gold trim for decoration only, rounded cel-shaded controls and RPG-window panels.
   Every text/surface pair is checked by tests/unit/storybook-contrast.test.ts. It replaced Signal (dark, 2026-11-12). */
:root {
  color-scheme: light;
  --color-paper: #fff8ec;
  --color-accent: #3f55c9;
  --color-brand: #8a6cff;
  --color-brand-strong: #5b45d6;
  --color-dim: #5d5578;
  --color-faint: #8c84a6;
  --color-tint: #f6efff;
  --color-canvas: #fff8ec;
  --color-surface: #ffffff;
  --color-raised: #f6efff;
  --color-ink: #2a2140;
  --color-muted: #5d5578;
  --color-border: #eadfca;
  --color-border-strong: #857452;
  --color-action: #b83564;
  --color-action-hover: #962a51;
  --color-on-action: #ffffff;
  --color-pencil: #3f55c9;
  --color-highlight: #5b45d6;
  --color-stamp: #b3213f;
  --color-signal: #3f55c9;
  --color-on-signal: #ffffff;
  --color-tag: #f6efff;
  --color-tag-edge: #857452;
  /* Decorative storybook colours: gold trim, sky, rose blush and mint. Never text, focus or field state on their own. */
  --color-trim: #e2b24a;
  --color-trim-deep: #b8862a;
  --color-sky: #bfe0ff;
  --color-sky-deep: #8ec5ff;
  --color-blush: #ffd3e2;
  --color-mint: #c9f2df;
  --color-cloud: #ffffff;
  /* Evidence pairs: each text colour on its surface is at least 4.5:1, and a word always carries the state. */
  --color-success: #1d7a45;
  --color-success-surface: #e5f7ec;
  --color-success-border: #7cc79b;
  --color-warning: #8a5300;
  --color-warning-surface: #fff1d6;
  --color-danger: #b3213f;
  --color-danger-surface: #ffe8ee;
  /* The FAIL label fill: a pale rose surface under danger text. */
  --color-fail: #ffdbe4;
  --color-review: #5a3fc0;
  --color-review-surface: #efe9ff;
  --color-field: #ffffff;
  --color-code: #f6efff;
  --color-placeholder: #6f6789;
  --color-header: #fff8ec;
  --color-media: #2a2140;
  --color-mark-reverse: #ffd36b;
  /* Night: the twilight storybook band (footer, report verdict band, raw logs). Cream text on deep plum. */
  --color-night: #2a2140;
  --color-night-raised: #3a2f58;
  --color-night-line: #54497a;
  --color-on-night: #fff8ec;
  --color-on-night-muted: #d6cfe8;
  --color-action-reverse: #ffd36b;
  /* Evidence states on night surfaces (report verdict band, raw logs): light tints beside a text label. */
  --color-night-fail: #ff9fb2;
  --color-night-blocked: #ffd36b;
  --color-night-review: #cbbcff;
  --color-night-skip: #8f86ad;
  --color-night-pass: #8fe3ae;
  --color-backdrop: #2a214099;
  --color-sheet-edge: #eadfca;
  /* Atmosphere: sky, blush and gold glows behind marketing heroes and closing bands. Decorative only. */
  --color-glow-brand: #bfe0ffcc;
  --color-glow-action: #ffd3e2b3;
  --color-glow-deep: #e9dcff;

  /* Fredoka (rounded storybook titles) for display, Nunito for body and controls, Geist Mono for labels, data and code.
     Portable reports drop the faces and use these system fallbacks. */
  --font-body: Nunito, "Segoe UI", "Helvetica Neue", Arial, system-ui, sans-serif;
  --font-display: Fredoka, Nunito, "Segoe UI", "Helvetica Neue", Arial, system-ui, sans-serif;
  --font-wordmark: var(--font-display);
  --font-wordmark-editorial: var(--font-display);
  --font-note: var(--font-body);
  --font-code: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --font-label: var(--font-code);
  --font-poster: var(--font-display);
  --stretch-display: 100%;
  --stretch-body: 100%;
  --case-display: none;
  --leading-display: 1.1;
  --tracking-label: .04em;
  --text-caption: 0.75rem;
  --text-small: 0.875rem;
  --text-body: 0.9375rem;
  --text-reading: 1.0625rem;
  --text-control: 1rem;
  --text-button: 0.9375rem;
  --text-section: 1.1875rem;
  --text-note: 1.375rem;
  --text-title: clamp(2.25rem, 4.6vw, 4rem);
  --leading-body: 1.6;
  --leading-note: 1.45;
  --weight-medium: 500;
  --weight-label: 600;
  --weight-heading: 700;
  --weight-display: 500;
  --weight-button: 800;
  --tracking-display: -.015em;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  /* Rounded storybook corners: pill buttons, soft fields and RPG-window panels. */
  --radius-control: 14px;
  --radius-button: 999px;
  --radius-panel: 22px;
  --radius-soft: 16px;
  --radius-sheet: 22px;
  --border-width: 1px;
  --border-trim: 2px;
  --rule-width: 1px;
  --control-height: 44px;
  --tour-max-height-narrow: 45dvh;
  --evidence-preview-height: 18rem;
  /* portable:omit-start: public and console technical table geometry */
  --table-column-min: 8rem;
  --summary-column-min: 15em;
  --metric-column-min: 9em;
  --table-reading-column-min: 10rem;
  /* portable:omit-end */
  --tour-width: 380px;
  --control-height-primary: 48px;
  --account-dialog-max-width: 72rem;
  --focus-width: 3px;
  --focus-offset: 3px;
  --motion-fast: 160ms;
  --motion-normal: 200ms;
  --ease-standard: ease;
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --opacity-disabled: .5;
  /* Cel-shaded depth: a solid pressed edge under buttons, a soft plum drop under panels and dialogs,
     and an RPG-window trim (gold edge plus a cream inner highlight). */
  --shadow-tab: none;
  --shadow-note: none;
  --shadow-press: 0 3px 0 #2a214033;
  --shadow-press-action: 0 2px 0 #6e1d3b;
  --shadow-panel: 0 1px 0 #ffffff inset, 0 10px 30px #5b45d614;
  --shadow-window: 0 0 0 1px #e2b24a, 0 14px 40px #5b45d61f;
  --shadow-dialog: 0 24px 80px #2a214040;
  --shadow-sheet: 0 30px 90px #2a214033;
  --shadow-glow: 0 10px 30px #5b45d614;
  --bar-h: 64px;
  --ease-glide: cubic-bezier(.2, .8, .2, 1);
  --ease-stamp: cubic-bezier(.3, 1.4, .5, 1);
  --cursor-glide: 420ms;
  --tape-height: 28px;
  --mat-grid: 24px;
  --radius-tag: 12px;
  --stage-ratio: 1.6;
  --eyelet-size: 14px;
  --z-sticky: 10;
  --z-overlay: 20;
  --z-tour: 30;
  --z-consent: 40;
  --content-width: 1240px;
  --reading-width: 70ch;

  /* Specimen palette: the made-up "Fernly" customer site shown in the homepage example run. It is a stand-in for
     somebody else's site (light page, purple button). Never use it for Sybqa UI; only hero-stage.css may reference
     --specimen-* (scripts/check-design-system.ts). */
  --specimen-sky-a: #6d28d9; --specimen-sky-b: #4338ca; --specimen-sky-c: #0e7490;
  --specimen-glow-a: #a78bfa; --specimen-glow-b: #22d3ee;
  --specimen-text: #ffffff; --specimen-muted: #ffffffd1;
  --specimen-glass: #ffffff1f; --specimen-glass-edge: #ffffff40; --specimen-field: #ffffff26;
  --specimen-pill: #6d28d9; --specimen-cta: #c4b5fd; --specimen-cta-text: #e0e7ff;
  --specimen-error: #fecdd3; --specimen-error-edge: #fb7185; --specimen-toast: #0f172acc;
  --font-specimen: "Segoe UI", system-ui, sans-serif;

  /* Compatibility aliases for existing page layouts. New code uses semantic names. */
  --paper: var(--color-canvas); --sheet: var(--color-surface);
  --ink: var(--color-ink); --muted: var(--color-muted);
  --line: var(--color-border); --line-strong: var(--color-border-strong);
  --accent: var(--color-action); --accent-hover: var(--color-action-hover);
  --lavender: var(--color-highlight); --warning: var(--color-warning);
  --danger: var(--color-danger); --green: var(--color-success);
  --sans: var(--font-body); --hand: var(--font-note); --mono: var(--font-code);
}

/* Console scope: the product workspace uses the indigo action (white text) and softer, less round buttons.
   The indigo signal stays the focus ring and the live/progress signal there. */
/* portable:omit-start: no report uses these */
.console, .theme-console {
  --color-action: #3f55c9;
  --color-action-hover: #3043a8;
  --color-on-action: #ffffff;
  --color-highlight: #5b45d6;
  --shadow-press-action: 0 2px 0 #1f2c75;
  --radius-button: 14px;
  --accent: var(--color-action); --accent-hover: var(--color-action-hover);
  --lavender: var(--color-highlight);
}

/* Release Notes: historical scope name for the homepage root; it resolves to the Signal marketing palette. */
.theme-release-notes {
  --color-frame-signal: var(--color-accent);
  --font-editorial: var(--font-display);
  --weight-editorial: 800;
  --paper: var(--color-canvas); --sheet: var(--color-surface);
  --ink: var(--color-ink); --muted: var(--color-muted);
  --line: var(--color-border); --line-strong: var(--color-border-strong);
  --accent: var(--color-action); --accent-hover: var(--color-action-hover);
  --lavender: var(--color-highlight);
}
/* portable:omit-end */

/* Night scopes (twilight footer, raw logs, handoff band): light tints so state text, links and focus
   stay readable on deep plum. */
/* portable:omit-start: no report uses these */
.ds-console, .ds-handoff, .catalog-night, .guide-footer, .try-footer {
  --color-success: var(--color-night-pass);
  --color-warning: var(--color-night-blocked);
  --color-danger: var(--color-night-fail);
  --color-review: var(--color-night-review);
  --color-signal: var(--color-action-reverse);
  --color-on-signal: var(--color-night);
  --color-highlight: var(--color-action-reverse);
  --color-stamp: var(--color-night-fail);
  --color-link: var(--color-action-reverse);
  --accent: var(--color-action-reverse);
}
/* portable:omit-end */

/* Cosmetic seasons change only the mascot's decoration; ground, text, evidence and action roles stay put.
   Reports never set a season. */
/* portable:omit-start: no report uses these */
html[data-season="halloween"] { --season-decoration: #e8741c; }
html[data-season="thanksgiving"] { --season-decoration: #c98a12; }
html[data-season="christmas"] { --season-decoration: #1d7a45; }
/* portable:omit-end */

/* Public pages package (2026-11-04): marketing display scale. The hero h1 stays at least 1.3x a section h2 at
   every width from 320px (40px over 30px on phones, 84px over 64px on wide screens), so phones keep a hierarchy. */
:root {
  --text-display-1: clamp(2.5rem, 1.75rem + 3.5vw, 5.25rem);
  --text-display-2: clamp(1.875rem, 1.2rem + 2.8vw, 4rem);
  /* portable:omit-start: poster scale: mega for one hero line, big for section heads, mid for row titles. */
  --text-mega: clamp(3rem, 8vw, 6.5rem);
  --text-big: clamp(2.2rem, 5vw, 4rem);
  --text-mid: clamp(1.5rem, 3vw, 2.4rem);
  /* portable:omit-end */
}

/* Product additions */
/* portable:omit-start: console-only layout and link values */
:root { --sidebar-width: 248px; }
/* Console text links take the review violet, readable on every light console surface. */
.console, .theme-console { --color-link: var(--color-review); }
/* portable:omit-end */
/* Print palette: reports print dark on white (ui/report.css @media print). Text on paper: ink 18.8:1, muted 8.3:1,
   pass 6.5:1, fail 6.8:1, blocked 6.3:1, review 8.0:1; the line is 3.2:1. */
:root { --print-paper: #ffffff; --print-tint: #f2f2f5; --print-ink: #111118; --print-muted: #4d4d5e; --print-line: #8e8e9c; --print-pass: #146c3a; --print-fail: #b3192e; --print-warn: #8a5300; --print-review: #4636c9; }

/* Shared native controls. Existing class names are supported component aliases. */
/* Storybook faces (2026-11-15): Fredoka (rounded titles, 300-700), Nunito (body and controls, 200-1000) and Geist Mono
   for labels, data and code. Self-hosted Latin subsets, swapped in; portable reports strip these and use system fallbacks. */
@font-face{font-family:Fredoka;src:url('/assets/fredoka.woff2?v=fc5b282abbe1') format('woff2');font-weight:300 700;font-stretch:75% 125%;font-style:normal;font-display:swap}
@font-face{font-family:Nunito;src:url('/assets/nunito.woff2?v=2eabd2e2b07c') format('woff2');font-weight:200 1000;font-style:normal;font-display:swap}
@font-face{font-family:"Geist Mono";src:url('/assets/geist-mono.woff2?v=684ad5b531f8') format('woff2');font-weight:100 900;font-style:normal;font-display:swap}
*{box-sizing:border-box}
[hidden]{display:none!important}
body{margin:0;background:var(--color-canvas);color:var(--ink);font:var(--text-body)/var(--leading-body) var(--font-body);-webkit-font-smoothing:antialiased}
button,input,textarea,select{font:inherit}
input,textarea,select{font-size:var(--text-control)}
button,a,input,select,textarea{-webkit-tap-highlight-color:transparent;outline-offset:var(--focus-offset)}
button{cursor:pointer;color:inherit}
button:disabled,button[aria-disabled="true"]{cursor:not-allowed;opacity:var(--opacity-disabled)}
button,a{touch-action:manipulation}
:focus-visible{outline:var(--focus-width) solid var(--color-signal)}
/* Headings receive focus only from script (view changes, tours) so screen readers start there; they are not controls, so no ring. */
:is(h1,h2,h3)[tabindex="-1"]:focus{outline:none}
a{color:var(--accent);text-underline-offset:.18em;text-decoration-thickness:2px}
h1,h2,h3,h4,p{margin-top:0}
h1,h2{font-family:var(--font-display);font-stretch:var(--stretch-display);font-weight:var(--weight-display);letter-spacing:var(--tracking-display);line-height:var(--leading-display);text-transform:var(--case-display)}
input,textarea,select{width:100%;min-width:0;min-height:var(--control-height);padding:10px 13px;border:var(--rule-width) solid var(--line-strong);border-radius:var(--radius-control);color:var(--ink);background:var(--color-field)}
/* portable:omit-start: no report uses these */
/* WebKit draws native dropdowns at its own height, ignoring padding; drop the native look so selects match inputs, and draw the chevron from ink with two hard-edged triangles. Forced colors keep the native control. */
select:not([multiple],[size]){-webkit-appearance:none;appearance:none;padding-right:40px;background-image:linear-gradient(45deg,transparent 50%,var(--color-ink) 50%),linear-gradient(135deg,var(--color-ink) 50%,transparent 50%);background-position:calc(100% - 21px) 50%,calc(100% - 15px) 50%;background-size:6px 6px;background-repeat:no-repeat}
@media (forced-colors:active){select:not([multiple],[size]){-webkit-appearance:auto;appearance:auto;background-image:none}}
/* portable:omit-end */
input::placeholder,textarea::placeholder{color:var(--color-placeholder);opacity:1}
textarea{resize:vertical}
label{display:block;font-weight:var(--weight-label);margin-bottom:7px}
/* Notes share the brand family. .handwritten is retained as a compatibility alias. */
/* portable:omit-start: no report uses these */
.handwritten,.ds-note{font-family:var(--font-note);font-style:normal;font-weight:400;line-height:var(--leading-note);letter-spacing:-.01em}
/* portable:omit-end */
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
/* portable:omit-start: no report uses these */
.skip-link{position:fixed;top:8px;left:-9999px;z-index:20;padding:12px;background:var(--sheet)}
.skip-link:focus{left:8px}
.icon{width:20px;height:20px;flex-shrink:0;vertical-align:middle}
.icon.small{width:14px;height:14px}
/* portable:omit-end */
/* Approved custom wordmark. Native images preserve its exact lettering and accessible alt text.
   Portable reports keep their real-text brand without requesting an external image. */
.brand{display:inline-flex;align-items:center;flex-shrink:0;min-height:var(--control-height);color:var(--color-ink);font:700 1.75rem/1 var(--font-wordmark);letter-spacing:-.04em;text-decoration:none;text-transform:lowercase}
.brand:hover{color:var(--color-ink)}
.brand-wordmark{display:block;width:3.7em;height:auto;aspect-ratio:2079/756;flex-shrink:0}
.brand-qa{color:var(--color-signal)}
/* portable:omit-start: no report uses these */
.nav-tab{position:relative;background:none;border:0;min-width:0;min-height:var(--control-height);padding:8px 14px;font:var(--weight-label) var(--text-body)/1 var(--font-body);color:var(--color-muted)}
.nav-tab:hover{color:var(--color-ink)}
.nav-tab.active{color:var(--color-ink)}
.nav-tab.active::after{content:"";position:absolute;left:14px;right:14px;bottom:2px;height:var(--rule-width);background:var(--color-signal)}
/* portable:omit-end */
/* Signal controls: rounded (pill on public pages, 10px in the console), Geist semibold. Primary fills the action
   colour; secondary is a raised surface with a hairline that brightens on hover. */
.secondary-button,.context-button,.viewport-switch button,.icon-button,.primary-button{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:var(--control-height);padding:8px 18px;border:var(--border-width) solid var(--color-border-strong);border-radius:var(--radius-button);background:var(--color-raised);color:var(--ink);font:var(--weight-label) var(--text-button)/1.1 var(--font-body);letter-spacing:-.01em;text-decoration:none;transition:background-color var(--motion-fast) var(--ease-standard),border-color var(--motion-fast) var(--ease-standard),transform var(--motion-fast) var(--ease-out)}
:is(.secondary-button,.icon-button,.context-button):hover:not(:disabled),.viewport-switch button:hover{background:var(--color-tint);border-color:var(--color-muted);color:var(--color-ink)}
.primary-button:hover:not(:disabled){background:var(--color-action-hover);border-color:var(--color-action-hover);color:var(--color-on-action)}
@media (prefers-reduced-motion:no-preference){:is(.secondary-button,.icon-button,.context-button):active:not(:disabled,:focus-visible),.viewport-switch button:active:not(:disabled,:focus-visible){transform:scale(.97)}}
.primary-button{position:relative;padding-inline:20px;border-color:var(--color-action);color:var(--color-on-action);background:var(--color-action)}
/* portable:omit-start: no report uses these */
.primary-button .icon{filter:none}
/* portable:omit-end */
@media (prefers-reduced-motion:no-preference){.primary-button:active:not(:disabled,:focus-visible){transform:translateY(1px) scale(.98)}}
.text-button{padding:10px 0;background:none;border:0;min-width:var(--control-height);min-height:var(--control-height);color:var(--color-ink);font-family:var(--font-body);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:5px}
.text-button:hover{text-decoration-color:var(--color-signal);text-decoration-thickness:2px}
.summary-label,.eyebrow{font:700 var(--text-caption)/1.4 var(--font-label);letter-spacing:var(--tracking-label);text-transform:uppercase;color:var(--muted)}
/* portable:omit-start: no report uses these */
.summary-value{margin-top:7px;font-size:var(--text-small);overflow-wrap:anywhere}
.summary-value--detail { font-size: var(--text-body); line-height: var(--leading-body); font-weight: var(--weight-medium); }
.card{min-width:0;padding:24px 0}
.card-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px;gap:16px}
.card h3,.activity-panel h3{font-size:var(--text-section);margin-bottom:16px}
.card-heading h3{margin:0}
.card-count,.read-only-tag{font:var(--text-caption)/1.5 var(--mono);color:var(--accent)}
/* portable:omit-end */
.field-help{font-size:var(--text-small);color:var(--muted);margin:7px 0 24px}
/* portable:omit-start: no report uses these */
.optional{font-weight:400;font-size:var(--text-small);color:var(--muted);margin-left:8px}
.run-check-status{color:var(--green)}
.run-check-status.FAIL{color:var(--danger)}
.run-check-status.BLOCKED{color:var(--color-warning)}
.run-check-status.NEEDS_REVIEW{color:var(--color-review)}
.app-error{color:var(--danger);background:var(--color-danger-surface);border-left:3px solid var(--danger);padding:14px 18px;margin:0 0 20px;overflow-wrap:anywhere}
/* portable:omit-end */
/* portable:omit-start: reports have no dialogs */
dialog{--crop-inset:6px;width:min(600px,calc(100vw - 32px));max-height:calc(100dvh - 48px);padding:var(--space-6);border:var(--border-width) solid var(--color-border-strong);border-radius:var(--radius-sheet);color:var(--ink);background:var(--color-surface);box-shadow:var(--shadow-dialog)}
dialog::backdrop{background:var(--color-backdrop)}
dialog::after{content:none}
/* portable:omit-end */
/* portable:omit-start: no report uses these */
.dialog-heading,.dialog-head{display:flex;justify-content:space-between;align-items:start;gap:16px}
.dialog-heading h2,.dialog-head h2{font-size:2rem;margin-bottom:25px}
.dialog-heading .eyebrow,.dialog-head .eyebrow{margin:0 0 8px}
.icon-button{padding:10px;min-width:var(--control-height)}
.dialog-footer{display:flex;flex-wrap:wrap;justify-content:end;padding-top:8px}
/* portable:omit-end */
/* portable:omit-start: reports have no dialogs */
@media(max-width:600px){dialog{padding:var(--space-4);max-height:calc(100dvh - var(--space-6))}}
/* portable:omit-end */
/* A dialog with a .dialog-body scroller keeps its crop marks fixed while the body scrolls. */
/* portable:omit-start: no report uses these */
dialog[open]:has(> .dialog-body){display:flex;flex-direction:column;overflow:visible}
dialog:has(> .dialog-body) > :is(.dialog-head,.dialog-heading,.dialog-footer){flex-shrink:0}
.dialog-body{overflow:auto;min-height:0}
.confidence { margin: var(--space-2) 0; padding: var(--space-2) var(--space-3); border: var(--border-width) solid var(--color-review); border-radius: var(--radius-soft); color: var(--color-review); background: var(--color-review-surface); font-size: var(--text-small); line-height: 1.5; overflow-wrap: anywhere; }
.confidence summary { cursor: pointer; font-weight: var(--weight-label); min-height: var(--control-height); padding-block: var(--space-2); }
.confidence summary:focus-visible { outline: var(--focus-width) solid var(--color-signal); outline-offset: var(--focus-offset); }
.confidence p { margin: var(--space-2) 0 0; }
.confidence--unassessed { padding: 0; border: 0; border-bottom: var(--border-width) solid var(--color-border); border-radius: 0; color: var(--color-ink); background: transparent; }
.confidence--unassessed summary { padding-block: 0; }
.confidence--unassessed[open] { padding-bottom: var(--space-2); }
/* portable:omit-end */


/* Shared states and composed patterns; native elements retain their semantics. */
input[aria-invalid="true"], textarea[aria-invalid="true"], select[aria-invalid="true"] { border-color: var(--color-signal); }
input:disabled, textarea:disabled, select:disabled { opacity: var(--opacity-disabled); cursor: not-allowed; }
input[readonly], textarea[readonly] { background: var(--color-canvas); }
/* portable:omit-start: no report uses these */
.ds-field { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-2); width: 100%; }
/* portable:omit-end */
.primary-button, .secondary-button, .ds-field input { box-shadow: none; }
/* portable:omit-start: no report uses these */
.ds-field label { margin: 0; }
.ds-field-help { color: var(--color-muted); font-size: var(--text-small); margin: 0; }
.ds-field-error { color: var(--color-danger); font-size: var(--text-small); margin: 0; }
/* portable:omit-end */
/* Status: a Geist Mono pill on a tinted surface in its evidence colour; NEEDS_REVIEW is dashed, NOT_RUN and dropped
   a faint outline. The words always carry the state. */
.ds-status, .badge, .tag { display: inline-flex; align-items: center; gap: var(--space-2); padding: 1px var(--space-3); border: var(--border-width) solid var(--color-border); border-radius: 999px; font: 700 var(--text-caption)/var(--leading-body) var(--font-code); letter-spacing: .06em; text-transform: uppercase; color: var(--color-muted); background: var(--color-surface); }
.ds-status[data-tone="success"], .badge.PASS, .badge.pass, .tag.recheck_passed { color: var(--color-success); background: var(--color-success-surface); border-color: var(--color-success-border); }
.ds-status[data-tone="danger"], .badge.FAIL, .badge.fail, .tag.defect { color: var(--color-danger); background: var(--color-fail); border-color: currentColor; }
.ds-status[data-tone="warning"], .badge.BLOCKED, .badge.review, .tag.blocked { color: var(--color-warning); background: var(--color-warning-surface); border-color: currentColor; }
.ds-status[data-tone="review"], .badge.NEEDS_REVIEW, .tag.review { color: var(--color-review); background: var(--color-review-surface); border: var(--border-width) dashed; }
/* portable:omit-start: no report uses these */
.run-check-status.NOT_RUN { color: var(--color-muted); }
/* portable:omit-end */
.ds-disclosure { padding: var(--space-4) 0; border-block: var(--border-width) solid var(--color-border); }
.ds-disclosure + .ds-disclosure { border-top: 0; }
.ds-disclosure summary { cursor: pointer; min-height: var(--control-height); padding-block: var(--space-2); font-weight: var(--weight-label); }
/* Disclosure chevron (2026-11-08): every native details shows one chevron after its label in place of the browser
   triangle, turning up when open; folds carry it at the end of their row. The header menu and the console log keep their
   own markers. :where keeps it overridable, including by print and the numbered question list. */
:where(details:not(.ds-nav-menu, .ds-console details)) > summary { list-style: none; }
:where(details:not(.ds-nav-menu, .ds-console details)) > summary::-webkit-details-marker { display: none; }
:where(details:not(.ds-nav-menu, .ds-console details)) > summary::after { content: ""; display: inline-block; flex: none; width: .45em; height: .45em; margin-inline: .7em .15em; border: solid currentColor; border-width: 0 2px 2px 0; vertical-align: middle; translate: 0 -35%; rotate: 45deg; }
:where(details:not(.ds-nav-menu, .ds-console details))[open] > summary::after { translate: 0 15%; rotate: -135deg; }
@media (prefers-reduced-motion: no-preference) { :where(details:not(.ds-nav-menu, .ds-console details)) > summary::after { transition: rotate var(--motion-fast) var(--ease-out); } }
:where(details:not(.ds-nav-menu, .ds-console details)) > summary:hover { text-decoration: underline var(--color-signal) 3px; }
.ds-disclosure p { margin: var(--space-2) 0 0; color: var(--color-muted); }
/* Marketing heading: the shared brand family with a softer display weight. */
/* portable:omit-start: no report uses these */
.ds-editorial-heading { font-family: var(--font-display); font-weight: var(--weight-display); font-stretch: var(--stretch-display); line-height: var(--leading-display); letter-spacing: var(--tracking-display); text-transform: var(--case-display); }
/* Numbered question list: 01, 02… before each summary and a plus that turns into a close mark when open. */
.ds-disclosure-list--numbered { counter-reset: ds-disclosure; }
.ds-disclosure-list--numbered > .ds-disclosure { counter-increment: ds-disclosure; }
.ds-disclosure-list--numbered > .ds-disclosure > summary { display: grid; grid-template-columns: 2.75rem minmax(0, 1fr) auto; align-items: center; gap: var(--space-2); list-style: none; }
.ds-disclosure-list--numbered > .ds-disclosure > summary::-webkit-details-marker { display: none; }
.ds-disclosure-list--numbered > .ds-disclosure > summary::before { content: counter(ds-disclosure, decimal-leading-zero); color: var(--color-muted); font: var(--text-small)/1 var(--font-code); }
.ds-disclosure-list--numbered > .ds-disclosure > summary::after { content: "+"; width: 1.5rem; height: auto; margin: 0; border: 0; color: var(--color-ink); font-size: 1.375rem; font-weight: 400; line-height: 1; text-align: center; translate: none; rotate: none; }
.ds-disclosure-list--numbered > .ds-disclosure[open] > summary::after { translate: none; rotate: 45deg; }
.ds-disclosure-list--numbered > .ds-disclosure > :not(summary) { padding-left: calc(2.75rem + var(--space-2)); padding-right: var(--space-8); }
@media (prefers-reduced-motion: no-preference) { .ds-disclosure-list--numbered > .ds-disclosure > summary::after { transition: rotate var(--motion-fast) var(--ease-out); } }
/* portable:omit-end */
.ds-table-region { overflow-x: auto; max-width: 100%; }
.ds-table { width: 100%; border-collapse: collapse; font-size: var(--text-body); }
.ds-table--wide { min-width: 768px; }
.ds-table :is(th, td) { text-align: left; padding: var(--space-3); border-bottom: var(--border-width) solid var(--color-border); overflow-wrap: anywhere; }
.ds-table--wide :is(th, td) { overflow-wrap: break-word; }
/* Wide technical data earns horizontal space instead of splitting short words and dates. */
/* portable:omit-start: console wide tables; reports own their table geometry */
.ds-table--wide :is(th, td) { min-width: var(--table-column-min); overflow-wrap: normal; word-break: normal; }
.ds-table--wide tbody th[scope="row"], .ds-table--wide:has(tbody th[scope="row"]) thead th:first-child { position: sticky; left: 0; z-index: 1; width: var(--table-column-min); min-width: var(--table-column-min); max-width: var(--table-column-min); overflow-wrap: anywhere; background: var(--color-surface); border-right: var(--border-width) solid var(--color-border-strong); }
/* portable:omit-end */
/* Only the column-header row carries the ink rule; row headers (tbody th) keep the body-row hairline. */
.ds-table th { font-weight: var(--weight-label); }
/* portable:omit-start: reports do not use stacked comparison tables */
.ds-disclosure--compact { padding-block: 0; border: 0; }
.ds-table--stacked:not(.ds-table--wide, .guide-table--wide) { table-layout: fixed; }
.ds-table-cell-label { display: none; }
@media (max-width: 700px) {
  .ds-table.ds-table--stacked { display: block; min-width: 0; }
  .ds-table--stacked caption, .ds-table--stacked tbody { display: block; }
  .ds-table--stacked thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .ds-table--stacked tbody tr { display: grid; grid-template-columns: minmax(0, 1fr); border-top: var(--rule-width) solid var(--color-border); }
  .ds-table--stacked tbody :is(th, td) { display: block; min-width: 0; border-right: 0; }
  .ds-table--stacked tbody th { background: var(--color-canvas); }
  .ds-table.ds-table--stacked tbody th[scope="row"] { position: static; width: auto; min-width: 0; max-width: none; }
  .ds-table--stacked .ds-table-cell-label { display: inline; margin-inline-end: var(--space-1); font-weight: var(--weight-label); color: var(--color-muted); }
  .ds-table--stacked .ds-table-cell-label::after { content: ":"; }
  .ds-table--stacked .guide-table-hint { display: none; }
}
/* Metric groups cap their columns deliberately while enlarged text can fall back to one. */
.summary-grid.summary-grid--metrics { --metric-columns: 2; grid-template-columns: repeat(auto-fit, minmax(min(100%, max(var(--metric-column-min), calc((100% - (var(--metric-columns) - 1) * var(--space-6)) / var(--metric-columns)))), 1fr)); }
.summary-grid.summary-grid--metrics-three { --metric-columns: 3; }
.summary-grid--metrics:has(> :nth-child(odd):last-child) > :last-child { grid-column: 1 / -1; }
.ds-record-list { margin: 0; padding: 0; list-style: none; font-size: var(--text-body); }
.ds-record { padding-block: var(--space-4); border-bottom: var(--border-width) solid var(--color-border); }
.ds-record > * + * { margin-top: var(--space-2); }
.ds-record-heading { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4); align-items: baseline; }
.ds-record-title { flex: 1 1 15em; min-width: 0; overflow-wrap: anywhere; }
.ds-record-summary { margin-bottom: 0; }
.ds-record-states { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-6); margin-bottom: 0; }
.ds-record-states > div { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-2); }
.ds-record-states dt { color: var(--color-muted); }
.ds-record-states dd { margin: 0; }
.ds-record > details > code { display: block; overflow-wrap: anywhere; }
/* portable:omit-end */
.ds-table thead th { border-bottom: var(--rule-width) solid var(--color-border-strong); }
/* portable:omit-start: no report uses these */
.ds-empty-message { padding: var(--space-6) 0; color: var(--color-muted); }
/* portable:omit-end */
.ds-notice { border-left: var(--focus-width) solid var(--color-action); padding: var(--space-4) var(--space-5); background: var(--color-surface); }
/* portable:omit-start: no report draws the verdict stamp (2026-11-08) */
.ds-paper { background: var(--color-surface); border: var(--rule-width) solid var(--color-border); border-radius: var(--radius-sheet); padding: var(--space-6); }
/* portable:omit-end */
/* portable:omit-start: no report uses these */
.ds-marker { background: none; color: var(--color-action); }
.ds-rule { border: 0; border-top: var(--rule-width) solid var(--color-border); margin: 0; }
/* portable:omit-end */
.ds-stamp { display: inline-block; padding: var(--space-1) var(--space-3); border: 2px solid var(--color-stamp); border-radius: var(--radius-control); color: var(--color-on-signal); background: var(--color-signal); font: 700 var(--text-small)/1.15 var(--font-code); letter-spacing: .1em; text-align: center; text-transform: uppercase; transform: rotate(-10deg); }
.ds-stamp[data-tone] { background: var(--color-surface); }
.ds-stamp[data-tone="success"] { color: var(--color-success); border-color: var(--color-success); }
.ds-stamp[data-tone="review"] { color: var(--color-review); border-color: var(--color-review); }
.ds-stamp[data-tone="muted"] { color: var(--color-muted); border-color: var(--color-border); }
.ds-stamp[data-tone="danger"] { color: var(--color-danger); background: var(--color-fail); border-color: var(--color-danger); }
.ds-stamp small { display: block; font: 600 .5625rem/1.3 var(--font-code); letter-spacing: .04em; }
/* Night surfaces: reverse variants for marketing bands on --color-night. */
/* portable:omit-start: no report uses these */
.brand--reverse { color: var(--color-on-night); }
.brand--reverse:hover { color: var(--color-on-night); }
.brand--reverse .brand-wordmark { background: none; }
/* portable:omit-end */
.secondary-button--reverse { background: transparent; border-color: var(--color-on-night); color: var(--color-on-night); }
.secondary-button--reverse:hover:not(:disabled) { background: var(--color-signal); border-color: var(--color-signal); color: var(--color-on-signal); }
/* portable:omit-start: no report uses these */
.primary-button--signal { background: var(--color-signal); border-color: var(--color-signal); color: var(--color-on-signal); }
/* portable:omit-end */
/* portable:omit-start: no report uses these */
.primary-button--ink { background: var(--color-ink); color: var(--color-on-night); }
/* portable:omit-end */
/* portable:omit-start: no report uses these */
.primary-button--signal:hover:not(:disabled) { background: var(--color-on-night); border-color: var(--color-on-night); color: var(--color-ink); }
/* portable:omit-end */
.text-button--reverse { color: var(--color-on-night); }
.text-button--reverse:hover { color: var(--color-action-reverse); }
.brand--reverse:focus-visible, .text-button--reverse:focus-visible, .secondary-button--reverse:focus-visible { outline-color: var(--color-action-reverse); }
/* portable:omit-start: no report uses these */
.poster-heading, .ds-display { font: var(--weight-display) clamp(1.875rem, 8.6vw, 6rem)/var(--leading-display) var(--font-poster); font-stretch: var(--stretch-display); letter-spacing: var(--tracking-display); text-transform: var(--case-display); }
.ds-display { font-size: inherit; }
/* Label voice: Courier Prime caps for labels, technical values and data. */
.ds-label { font: 700 var(--text-small)/1.4 var(--font-label); letter-spacing: var(--tracking-label); text-transform: uppercase; }
/* portable:omit-end */
/* Crop marks: the evidence frame from the logo, used instead of drop shadows. --crop-inset moves them
   (default 14px outside the box, leave 16px free around it). .ds-crop--inset draws them inside and does not
   set position, so it also suits fixed elements such as dialogs. */
/* portable:omit-start: no report uses crop marks or dialogs (2026-11-08) */
.ds-crop { position: relative; }
.ds-crop--inset { --crop-inset: 8px; }
:is(.ds-crop, .ds-crop--inset, dialog)::after { --crop: var(--color-border-strong); content: ""; position: absolute; inset: var(--crop-inset, -14px); pointer-events: none;
  background:
    linear-gradient(var(--crop), var(--crop)) left top / 10px 2px, linear-gradient(var(--crop), var(--crop)) left top / 2px 10px,
    linear-gradient(var(--crop), var(--crop)) right top / 10px 2px, linear-gradient(var(--crop), var(--crop)) right top / 2px 10px,
    linear-gradient(var(--crop), var(--crop)) left bottom / 10px 2px, linear-gradient(var(--crop), var(--crop)) left bottom / 2px 10px,
    linear-gradient(var(--crop), var(--crop)) right bottom / 10px 2px, linear-gradient(var(--crop), var(--crop)) right bottom / 2px 10px;
  background-repeat: no-repeat; }
:is(.ds-crop, .ds-crop--inset, dialog)[data-tone="signal"]::after { --crop: var(--color-frame-signal, var(--color-signal)); }
@media (max-width: 480px) { .ds-crop:not(.ds-crop--inset) { --crop-inset: -8px; } }
/* portable:omit-end */
/* portable:omit-start: no report uses these */
.ds-stack { display: grid; gap: var(--space-4); }
.ds-row { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; }
/* portable:omit-end */
button[aria-busy="true"] { cursor: progress; }
/* ---------- Proof v3 primitives: homepage motifs hoisted for every surface ---------- */
/* portable:omit-start: no report uses these */
.summary-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--summary-column-min)), 1fr)); gap: var(--space-6); padding: var(--space-5) 0; border-bottom: var(--border-width) solid var(--color-border); }
/* portable:omit-end */
.ds-stamp[data-tone="warning"] { color: var(--color-warning); border-color: var(--color-warning); }
.ds-stamp--sm { padding: 2px var(--space-2); border-width: 2px; font-size: var(--text-caption); letter-spacing: .08em; transform: rotate(-6deg); }
/* portable:omit-start: no report uses these */
.ds-stamp--lg { padding: var(--space-2) var(--space-4); font-size: 1.125rem; transform: rotate(-8deg); }
/* portable:omit-end */
/* portable:omit-start: no report draws the verdict stamp (2026-11-08) */
.ds-stamp--xl { padding: var(--space-2) var(--space-5); border-width: 5px; font-size: clamp(1.25rem, 3vw, 2.25rem); }
/* portable:omit-end */
/* portable:omit-start: no report uses these */
.ds-stamp--flat { transform: none; }

/* Step tape: a tape measure. A <div class="ds-tape"> is a progress strip (--p 0..1 drives .ds-tape-fill, .ds-tape-read rides
   its edge); an <ol class="ds-tape"> is a stepped timeline of <li><button>, each li may hold its own .ds-tape-fill and a
   stamped .ds-tape-mark. Ink on signal is 5.5:1. data-slim is a decorative 14px strip. */
.ds-tape { --p: 0; position: relative; display: block; min-height: var(--tape-height); margin: 0; padding: 0; overflow: hidden; container-type: inline-size; border: var(--rule-width) solid var(--color-border); background: var(--color-surface); list-style: none; }
.ds-tape::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: repeating-linear-gradient(90deg, var(--color-ink) 0 1px, transparent 1px 12px) left bottom / 100% 5px no-repeat, repeating-linear-gradient(90deg, var(--color-ink) 0 2px, transparent 2px 60px) left bottom / 100% 9px no-repeat; }
.ds-tape-fill { position: absolute; inset: 0; background: var(--color-signal); transform: scaleX(var(--p, 0)); transform-origin: 0 50%; }
/* The fill glides between readings only when motion is welcome; reduced motion jumps straight to the new value. */
@media (prefers-reduced-motion: no-preference) { .ds-tape-fill { transition: transform var(--motion-normal) var(--ease-standard); } }
.ds-tape-read { position: relative; z-index: 2; display: block; width: fit-content; padding: var(--space-1) var(--space-2); font: 700 var(--text-small)/1.5 var(--font-code); color: var(--color-ink); white-space: nowrap; font-variant-numeric: tabular-nums; translate: max(0px, calc(var(--p, 0) * 100cqw - 100%)); }
.ds-tape[data-slim] { min-height: 14px; }
.ds-tape[hidden] { display: none; }
.ds-tape:is(ol, ul) { display: flex; min-height: var(--control-height); }
.ds-tape:is(ol, ul) > li { position: relative; flex: 1 1 0; min-width: 0; overflow: hidden; }
.ds-tape:is(ol, ul) > li + li { border-left: var(--rule-width) solid var(--color-border); }
.ds-tape:is(ol, ul) > li > :is(button, a) { position: relative; z-index: 2; display: flex; align-items: center; justify-content: center; width: 100%; min-height: var(--control-height); padding: 0 var(--space-2); border: 0; background: none; color: var(--color-ink); font: 700 var(--text-small)/1.2 var(--font-code); text-decoration: none; white-space: nowrap; }
.ds-tape:is(ol, ul) > li[aria-current="step"], .ds-tape:is(ol, ul) > li:has(> [aria-current="step"]) { background: var(--color-raised); box-shadow: inset 0 -2px 0 var(--color-signal); }
.ds-tape:is(ol, ul) > li > :is(button, a)[aria-current="step"] { background: var(--color-ink); color: var(--color-on-night); }
.ds-tape-mark { position: absolute; z-index: 3; top: 3px; right: 4px; padding: 0 3px; border: 1.5px solid currentColor; border-radius: 2px; background: var(--color-surface); color: var(--color-stamp); font: 800 .5625rem/1.3 var(--font-code); text-transform: uppercase; rotate: -6deg; }
.ds-tape-mark[data-tone="success"] { color: var(--color-success); }
.ds-tape-mark[data-tone="review"] { color: var(--color-review); }
.ds-tape-mark[data-tone="muted"] { color: var(--color-muted); }
/* portable:omit-end */

/* Inspection form: a manila sheet with an eyelet and a mono form head. .ds-tag-card--form is the same sheet. */
.ds-form, .ds-tag-card { position: relative; min-width: 0; background: var(--color-tag); border: var(--rule-width) solid var(--color-border); color: var(--color-ink); }
/* portable:omit-start: no report uses these */
.ds-form, .ds-tag-card--form { padding: var(--space-8) var(--space-8) var(--space-6); border-radius: 0; }
.ds-form-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-2); margin: 0 0 var(--space-4); padding-bottom: var(--space-3); border-bottom: var(--rule-width) solid var(--color-border); font: var(--weight-display) var(--text-body)/1 var(--font-display); font-stretch: var(--stretch-display); text-transform: uppercase; }
.ds-form-head > :last-child { font: var(--text-small) var(--font-code); text-transform: none; }
/* portable:omit-end */

/* Tag card: a manila card on a string. data-string draws the dotted string above; --swing hangs it from its eyelet on hover;
   --split is the report layout (manila reading tag beside a paper body). */
.ds-tag-card { padding: var(--space-5); border-radius: 0; transform-origin: 0 0; }
.ds-tag-card[data-string] { margin-top: var(--space-6); }
.ds-tag-card[data-string]::after { content: ""; position: absolute; left: calc(var(--eyelet-x, var(--space-4)) + var(--eyelet-size) / 2 - 1px); bottom: 100%; height: var(--space-6); border-left: 2px dotted var(--color-ink); }
.ds-tag-card h3 { margin: 0 0 var(--space-2); }
/* portable:omit-start: no report uses these */
.ds-tag-card--split { display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); padding: 0; background: var(--color-surface); }
.ds-tag-card-tag { position: relative; display: grid; align-content: start; gap: var(--space-2); padding: var(--space-5); background: var(--color-tag); border-right: var(--rule-width) solid var(--color-tag-edge); }
/* portable:omit-end */
.ds-tag-card-body { min-width: 0; padding: var(--space-5); }
/* portable:omit-start: no report uses these */
.ds-plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: var(--space-6); }
.ds-plan-grid > .ds-tag-card { display: flex; flex-direction: column; gap: var(--space-4); min-width: 0; }
.ds-plan-grid :is(h2, h3), .ds-plan-grid p { margin: 0; }
.ds-plan-grid .ds-plan-action { margin-top: auto; align-self: start; }
.ds-tag-card-reading { font: 700 clamp(1.5rem, 3vw, 2.125rem)/1.1 var(--font-code); overflow-wrap: anywhere; }
/* portable:omit-end */
.ds-tag-rail { display: grid; gap: var(--space-8); margin: 0; padding: 0 0 0 var(--space-6); list-style: none; border-left: 2px dotted var(--color-ink); }
.ds-tag-rail > li { position: relative; }
.ds-tag-rail > li::before { content: ""; position: absolute; left: calc(-1 * var(--space-6)); top: 2.1rem; width: var(--space-6); border-top: 2px dotted var(--color-ink); }
/* Measurement pill: a reading in mono, the same look as the homepage "CLS 0.31" label. */
.ds-measure { display: inline-flex; align-items: center; padding: 1px var(--space-2); border-radius: var(--radius-sheet); background: var(--color-ink); color: var(--color-canvas); font: 500 var(--text-small)/1.5 var(--font-code); white-space: nowrap; font-variant-numeric: tabular-nums; }
/* Fold: an archive tab. <section class="ds-fold"><details><summary><span class="ds-fold-tab">..</span><span class="ds-fold-meta">..</span></summary><div class="ds-fold-body">. */
:is(.ds-fold > summary, .ds-fold > details > summary) { display: flex; flex-wrap: nowrap; align-items: baseline; gap: var(--space-2) var(--space-4); min-height: var(--control-height); padding-block: calc((var(--control-height) - 1.2 * var(--text-body)) / 2); border-bottom: var(--rule-width) solid var(--color-border); cursor: pointer; list-style: none; }
:is(.ds-fold > summary, .ds-fold > details > summary)::-webkit-details-marker { display: none; }
:where(.ds-fold, .ds-fold > details) > summary::after { align-self: center; margin-inline-start: var(--space-3); }
/* One row of tab, meta and chevron: a long tab wraps inside itself, so the chevron stays at the end of the row. Metas are short counts. */
.ds-fold-tab { flex: 1 1 auto; min-width: 0; overflow-wrap: break-word; font: var(--weight-display) var(--text-body)/1.2 var(--font-display); font-stretch: var(--stretch-display); letter-spacing: -.01em; }
.ds-fold-meta { flex: none; margin-left: auto; white-space: nowrap; color: var(--color-muted); font: var(--text-small)/1.3 var(--font-code); }
.ds-fold-body { padding-block: var(--space-4); }

/* Certificate parts (report cover): verdict sheet, circled number, scoreboard, hand-off band, copy status. */
.ds-cert-sheet { position: relative; padding: var(--space-8); background: var(--color-surface); border: var(--rule-width) solid var(--color-border); border-radius: var(--radius-sheet); }
.ds-cert-eyebrow { margin: 0 0 var(--space-3); font: 600 var(--text-caption)/1.4 var(--font-code); letter-spacing: .06em; text-transform: uppercase; color: var(--color-muted); }
.ds-cert-verdict { max-width: 16ch; margin: 0 0 var(--space-4); font: var(--weight-display) var(--text-title)/.98 var(--font-display); font-stretch: var(--stretch-display); letter-spacing: var(--tracking-display); text-wrap: balance; }
.ds-cert-meta { font: var(--text-small)/1.5 var(--font-code); color: var(--color-muted); }
.ds-cert-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); }
/* The stamp keeps its own column, so a long verdict or a wide label ("Acceptance incomplete") never runs under it. */
/* portable:omit-start: no report draws the verdict stamp (2026-11-08) */
.ds-cert-sheet:has(> .ds-stamp--xl) { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: var(--space-8); align-items: start; }
/* portable:omit-end */
/* portable:omit-start: no report draws the verdict stamp (2026-11-08) */
.ds-cert-sheet:has(> .ds-stamp--xl) > :not(.ds-stamp--xl) { grid-column: 1; }
/* portable:omit-end */
/* portable:omit-start: no report uses these */
.ds-cert-sheet:has(> .ds-stamp--xl) > .ds-tape { grid-column: 1 / -1; }
/* portable:omit-end */
/* Long verdicts ("Acceptance incomplete", "Selected checks passed") wrap inside the stamp instead of squeezing the headline column. */
/* portable:omit-start: no report draws the verdict stamp (2026-11-08) */
.ds-cert-sheet > .ds-stamp--xl { grid-column: 2; grid-row: 1 / span 3; justify-self: end; max-width: calc(8.5em + 2 * var(--space-5) + 10px); margin: var(--space-2) 0 0; white-space: normal; overflow-wrap: normal; transform-origin: 100% 0; }
/* portable:omit-end */
/* Report summaries: the full ink-framed sheet with a decorative verdict stamp (the eyebrow status is the verdict). */
.ds-cert-sheet--summary .ds-cert-eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); }
.ds-cert-sheet--summary .ds-cert-verdict { max-width: 20ch; font-size: clamp(2.25rem, 5vw, 4rem); }
/* Report finding: a manila tag heading with its eyelet over a white sheet. */
.ds-tag-card.ds-tag-card--report { padding: 0; background: var(--color-surface); border-radius: 0; }
.ds-tag-card-heading { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); padding: var(--space-4) var(--space-5); background: var(--color-tag); border-bottom: var(--rule-width) solid var(--color-tag-edge); }
.ds-tag-card--report .ds-tag-card-heading h3 { margin: var(--space-1) 0 0; font: var(--weight-display) clamp(1.125rem, 2vw, 1.5rem)/1.15 var(--font-display); font-stretch: var(--stretch-display); }
.ds-tag-card-heading > .ds-stamp { flex: none; }
/* portable:omit-start: no report uses these */
.ds-circled { position: relative; display: inline-block; padding-inline: .12em; }
.ds-circled > svg { position: absolute; left: -.2em; top: -.12em; width: calc(100% + .4em); height: calc(100% + .24em); overflow: visible; fill: none; stroke: var(--color-signal); stroke-width: 5; stroke-linecap: round; pointer-events: none; }
.ds-circled path { vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 0; }
/* portable:omit-end */
.ds-scoreboard { display: flex; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; border-block: var(--rule-width) solid var(--color-border); }
.ds-scoreboard-cell { flex: 1 1 0; min-width: 0; }
.ds-scoreboard-cell + .ds-scoreboard-cell { border-left: var(--border-width) solid var(--color-border); }
.ds-scoreboard-cell--hero { flex-grow: 2; }
.ds-scoreboard-cell > a { display: grid; align-content: start; gap: var(--space-2); min-height: var(--control-height); height: 100%; padding: var(--space-4); color: var(--color-ink); text-decoration: none; }
.ds-scoreboard-cell > a:hover { background: var(--color-raised); }
.ds-scoreboard-num { font: 700 clamp(1.75rem, 4vw, 3rem)/1 var(--font-code); font-variant-numeric: tabular-nums; }
.ds-scoreboard-cell--hero .ds-scoreboard-num { font-size: clamp(2.5rem, 7vw, 5.5rem); }
/* portable:omit-start: no report uses these */
.ds-scoreboard-caption { color: var(--color-muted); font-size: var(--text-small); }
/* portable:omit-end */
.ds-scoreboard-dropped { margin: var(--space-3) 0 0; color: var(--color-muted); font-size: var(--text-small); }
.ds-scoreboard.ds-scoreboard--compact { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
/* Compact cells: a display numeral over a status bar; empty cells (data-count="0") recede. */
.ds-scoreboard--compact .ds-scoreboard-cell > :is(a, div) { display: grid; justify-items: start; align-content: start; gap: var(--space-2); padding: var(--space-4); min-height: var(--control-height); height: 100%; border-top: 6px solid var(--tone, var(--color-border)); }
.ds-scoreboard--compact .ds-scoreboard-num { font: var(--weight-display) clamp(2rem, 4vw, 3rem)/1 var(--font-display); font-stretch: var(--stretch-display); }
[data-status=FAIL] { --tone: var(--color-signal); }
[data-status=BLOCKED] { --tone: var(--color-warning); }
[data-status=NEEDS_REVIEW] { --tone: var(--color-review); }
[data-status=NOT_RUN] { --tone: var(--color-muted); }
[data-status=PASS] { --tone: var(--color-success); }
[data-count="0"] { --tone: var(--color-border); color: var(--color-muted); }
[data-count="0"] > * { color: inherit; }
.ds-scoreboard--compact .ds-status { white-space: normal; }
@media (max-width: 600px) {
  .ds-scoreboard.ds-scoreboard--compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ds-scoreboard--compact .ds-scoreboard-cell:nth-child(n + 3) { border-top: var(--border-width) solid var(--color-border); }
  .ds-scoreboard--compact .ds-scoreboard-cell:nth-child(odd) { border-left: 0; }
  .ds-scoreboard--compact .ds-scoreboard-cell:last-child { grid-column: 1 / -1; }
}
.ds-handoff { padding: var(--space-8); background: var(--color-night); color: var(--color-on-night); border: var(--rule-width) solid var(--color-border); border-radius: var(--radius-panel); }
.ds-handoff :focus-visible { outline-color: var(--color-action-reverse); }
.ds-handoff a:not([class]) { color: var(--color-action-reverse); }

/* Report workspace variants: quiet sheets, a compact results ledger and native archive rows. */
.ds-cert-sheet.ds-cert-sheet--workspace { display: block; padding: 0; border: 0; background: transparent; border-radius: 0; }
.ds-cert-sheet--workspace .ds-cert-verdict { max-width: 30ch; margin-bottom: var(--space-3); font-size: clamp(1.75rem, 3.5vw, 2.75rem); line-height: 1.12; }
.ds-cert-sheet--workspace .ds-cert-eyebrow { margin-bottom: var(--space-4); }
.ds-tag-card.ds-tag-card--sheet { border: var(--border-width) solid var(--color-border-strong); border-radius: var(--radius-panel); }
.ds-tag-card--sheet::before, .ds-tag-card--sheet::after { display: none; }
.ds-tag-card--sheet .ds-tag-card-heading { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: var(--space-2) var(--space-4); padding: var(--space-4) var(--space-6); background: var(--color-surface); border-bottom: var(--border-width) solid var(--color-border); }
.ds-tag-card--sheet .ds-tag-card-heading > div { display: contents; }
.ds-tag-card--sheet .ds-tag-card-heading > div > p { grid-column: 1; grid-row: 1; margin: 0; }
.ds-tag-card--sheet .ds-tag-card-heading h3 { grid-column: 1 / -1; grid-row: 2; margin: 0; font-size: clamp(1.25rem, 2.2vw, 1.75rem); line-height: 1.2; }
.ds-tag-card--sheet .ds-tag-card-body { padding: var(--space-6); }
.ds-tag-card--sheet .ds-tag-card-heading > .ds-stamp { grid-column: 2; grid-row: 1; margin: 0; transform: none; border-radius: var(--radius-control); }
.ds-scoreboard.ds-scoreboard--ledger { display: grid; grid-template-columns: minmax(0, 1fr); border: var(--border-width) solid var(--color-border-strong); border-radius: var(--radius-panel); overflow: hidden; background: var(--color-surface); }
.ds-scoreboard--ledger .ds-scoreboard-cell { border: 0; }
.ds-scoreboard--ledger .ds-scoreboard-cell + .ds-scoreboard-cell { border-top: var(--border-width) solid var(--color-border); }
.ds-scoreboard--ledger .ds-scoreboard-cell > :is(a, div) { display: flex; flex-direction: row-reverse; align-items: center; justify-content: space-between; gap: var(--space-3); padding: var(--space-2) var(--space-4); border-top: 0; min-height: var(--control-height); }
.ds-scoreboard--ledger .ds-scoreboard-num { flex: none; font: var(--weight-display) var(--text-section)/1.2 var(--font-display); font-variant-numeric: tabular-nums; }
.ds-scoreboard--ledger .ds-status { min-width: 0; white-space: normal; }
.ds-scoreboard--ledger a:focus-visible { outline-offset: calc(-1 * var(--focus-width)); }
.ds-handoff.ds-handoff--paper { background: var(--color-surface); color: var(--color-ink); border: var(--border-width) solid var(--color-border-strong); border-radius: var(--radius-panel); }
.ds-handoff--paper :focus-visible { outline-color: var(--color-signal); }
.ds-handoff--paper a:not([class]) { color: var(--color-action); }
.ds-fold--quiet > details > summary, .ds-fold--quiet > summary { padding: var(--space-4) 0; border-bottom: var(--border-width) solid var(--color-border); }
.ds-fold--quiet .ds-fold-tab { font-size: var(--text-body); font-weight: var(--weight-label); }
.ds-fold--quiet .ds-fold-meta { flex: 0 1 auto; min-width: 0; max-width: 50%; white-space: normal; text-align: end; }
.ds-copy-status { min-height: 1.5em; color: var(--color-muted); font-size: var(--text-small); }
button[data-copied="true"] { background: var(--color-success-surface); border-color: var(--color-success); color: var(--color-success); }
.secondary-button--reverse[data-copied="true"] { color: var(--color-success); }

/* Replay evidence (2026-11-08). Result bar: one tick per check (scaled to 48), failed first; decorative beside
   labelled counts. --night reads on --color-night. */
.ds-result-bar { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); height: 12px; }
.ds-result-bar > i { background: var(--tone); }
.ds-result-bar > .ds-result-bar-start:not(:first-child) { margin-inline-start: 3px; }
.ds-result-bar--night > [data-status=FAIL] { --tone: var(--color-night-fail); }
.ds-result-bar--night > [data-status=BLOCKED] { --tone: var(--color-night-blocked); }
.ds-result-bar--night > [data-status=NEEDS_REVIEW] { --tone: var(--color-night-review); }
.ds-result-bar--night > [data-status=NOT_RUN] { --tone: var(--color-night-skip); }
.ds-result-bar--night > [data-status=PASS] { --tone: var(--color-night-pass); }
/* Film: recorded screens in step order in a named scroll region. The failed frame takes a danger frame (5.6:1 on paper). */
.ds-film-region { overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; }
.ds-film { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(13rem, 1fr); gap: var(--space-4); margin: 0; padding: 0 0 var(--space-2); list-style: none; }
.ds-film--portrait { grid-auto-columns: minmax(9rem, 13rem); justify-content: start; }
.ds-film > li { min-width: 0; scroll-snap-align: start; }
.ds-film-frame { margin: 0; }
.ds-film-frame img { display: block; width: 100%; height: auto; border: var(--border-width) solid var(--color-border-strong); border-radius: var(--radius-sheet); background: var(--color-surface); }
.ds-film-frame[data-state="fail"] img { border: 2px solid var(--color-danger); }
.ds-film-cap { display: grid; grid-template-columns: 1.5rem minmax(0, 1fr); gap: var(--space-2); align-items: start; margin-top: var(--space-2); font-size: var(--text-small); line-height: 1.35; }
.ds-film-cap b { display: block; font-size: var(--text-body); font-weight: var(--weight-label); }
.ds-film-mark { display: grid; place-items: center; width: 1.5rem; height: 1.5rem; border: 2px solid var(--color-success); border-radius: 50%; color: var(--color-success); font: 700 .75rem/1 var(--font-body); }
.ds-film-mark::before { content: "\2713"; }
[data-state="start"] > .ds-film-cap .ds-film-mark { border-color: var(--color-border-strong); }
[data-state="start"] > .ds-film-cap .ds-film-mark::before { content: none; }
[data-state="fail"] > .ds-film-cap .ds-film-mark { border-color: var(--color-danger); background: var(--color-fail); color: var(--color-danger); }
[data-state="fail"] > .ds-film-cap .ds-film-mark::before { content: "\2715"; }
/* Width gauge: a measured page against its screen, to scale (an SVG, so no inline styles). */
.ds-width-gauge { margin: 0; }
.ds-width-gauge svg { display: block; width: 100%; height: 2.25rem; border: var(--border-width) solid var(--color-border); background: var(--color-fail); }
.ds-width-gauge-screen { fill: var(--color-success-surface); stroke: var(--color-success); stroke-width: 2px; vector-effect: non-scaling-stroke; }
.ds-width-gauge figcaption { display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-4); padding-top: var(--space-2); font: var(--text-small)/1.4 var(--font-code); }
.ds-width-gauge figcaption > span { display: inline-flex; align-items: center; gap: var(--space-2); }
.ds-width-gauge figcaption > span::before { content: ""; width: .75rem; height: .75rem; border: var(--border-width) solid var(--color-success); background: var(--color-success-surface); }
.ds-width-gauge figcaption > [data-part="page"]::before { border-color: var(--color-danger); background: var(--color-fail); }
.ds-width-gauge figcaption > [data-part="total"] { margin-inline-start: auto; color: var(--color-muted); }
.ds-width-gauge figcaption > [data-part="total"]::before { content: none; }

/* Feature tour popover: a manila tag hung from its target by a dotted string; the target gets a dashed orange box.
   The tag itself never scrolls, so the string (::after, outside the box) is drawn and adds no scrollbar; when the
   tag reaches its max-height the body row shrinks (never below three lines) and scrolls instead. Both tours render progress, title, body,
   actions in that order. Three lines are 3 x --leading-body (1.6) in em, not 3lh: browsers without lh would drop the whole row template. */
.ds-tour { position: fixed; z-index: var(--z-tour); width: min(var(--tour-width), calc(100vw - var(--space-6))); max-height: calc(100dvh - var(--space-6)); overflow: visible; display: grid; grid-template-rows: auto auto minmax(4.8em, 1fr) auto; gap: var(--space-2); padding: var(--space-5); background: var(--color-tag); color: var(--color-ink); border: var(--rule-width) solid var(--color-border); }
.ds-tour > .ds-tour-body { overflow-y: auto; overscroll-behavior: contain; }
.ds-tour[data-placement="below"]::after { content: ""; position: absolute; left: var(--space-5); bottom: 100%; height: var(--space-3); border-left: var(--rule-width) solid var(--color-signal); }
.ds-tour[data-placement="above"]::after { content: ""; position: absolute; left: var(--space-5); top: 100%; height: var(--space-3); border-left: var(--rule-width) solid var(--color-signal); }
.ds-tour[data-placement="right"]::after { content: ""; position: absolute; right: 100%; top: var(--space-6); width: var(--space-3); border-top: var(--rule-width) solid var(--color-signal); }
.ds-tour:focus-visible { outline: var(--focus-width) solid var(--color-signal); outline-offset: 2px; }
.ds-tour-progress { margin: 0; font: 700 var(--text-caption)/var(--leading-body) var(--font-code); color: var(--color-muted); text-transform: uppercase; letter-spacing: .04em; }
/* Two classes, so a host's heading rule (.ds-report h2 is 0,1,1) cannot add its margins or size to the step title (R5-BR-02). */
.ds-tour .ds-tour-title { margin: 0; font-size: var(--text-section); }
.ds-tour-body { min-height: 4.8em; margin: 0; color: var(--color-muted); }
/* portable:omit-start: feature tour disclosures; portable tours use one paragraph */
.ds-tour-body > p { margin: 0; }
.ds-tour-more { margin-top: var(--space-1); padding: 0; border: 0; }
.ds-tour-more > summary { color: var(--color-ink); }
/* portable:omit-end */
.ds-tour-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: var(--space-2); margin-top: var(--space-2); }
.ds-tour-actions .text-button { margin-right: auto; }
.ds-tour-target, .is-tour-target { outline: var(--focus-width) dashed var(--color-signal); outline-offset: var(--focus-offset); }
/* portable:omit-start: inline report tips override these narrow floating defaults */
@media (max-width: 599px) {
  .ds-tour { left: var(--space-3); right: var(--space-3); bottom: var(--space-3); width: auto; max-height: var(--tour-max-height-narrow); padding: var(--space-4); }
  .ds-tour[data-placement]::after { display: none; }
}
/* portable:omit-end */
.ds-tour[data-layout="inline"] { position: relative; inset: auto; grid-column: 1 / -1; flex: 0 0 100%; width: auto; max-width: 100%; margin-block: var(--space-4); max-height: calc(100svh - var(--space-6) - var(--consent-h, 0px)); scroll-margin-top: var(--space-3); }
.ds-tour[data-layout="inline"]::after { display: none; }
/* Compact the chrome while keeping a full-width title at enlarged text sizes. */
.ds-tour[data-layout="inline"] { gap: var(--space-1); padding: var(--space-3) var(--space-4); }
.ds-tour[data-layout="inline"] > .ds-tour-actions { margin-top: 0; }


/* The companion rail reserves space instead of covering the action that a tip introduces. */
@media (min-width: 1280px) { body:has(.ds-tour[data-layout="rail"]) { padding-right: calc(var(--tour-width) + var(--space-6)); } }

/* Paused: one data-paused attribute freezes every CSS animation inside it (the WCAG 2.2.2 pause control). */
[data-paused], [data-paused] *, [data-paused] *::before, [data-paused] *::after { animation-play-state: paused; }

/* Motion. The base state of every animated element is its FINAL state; entrances run only when motion is allowed,
   from a state class or data attribute, with explicit from and to keyframes. Transform, translate, rotate, scale and opacity only
   (the circle draw is the documented exception). */
/* portable:omit-start: no report draws the verdict stamp (2026-11-08) */
@keyframes ds-stamp-slam-cert { from { scale: 1.35; opacity: 0; } 60% { scale: .96; opacity: 1; } to { scale: 1; opacity: 1; } }
/* portable:omit-end */
@keyframes ds-stamp-slam { from { scale: 2.4; opacity: 0; } 60% { scale: .94; opacity: 1; } to { scale: 1; opacity: 1; } }
@keyframes ds-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: no-preference) {
  /* portable:omit-start: no report uses these */
  .ds-stamp.is-in { animation: ds-stamp-slam .35s var(--ease-stamp) both; }
  /* portable:omit-end */
  /* portable:omit-start: no report draws the verdict stamp (2026-11-08) */
  .ds-cert-sheet > .ds-stamp--xl { animation: ds-stamp-slam-cert .35s var(--ease-stamp) both; }
  /* portable:omit-end */
  /* portable:omit-start: no report uses these */
  .ds-circled path { animation: ds-draw .6s ease-out .5s both; }
  .ds-tag-card--swing { transition: rotate var(--motion-fast) var(--ease-out); }
  /* portable:omit-end */
}
/* portable:omit-start: no report uses these */
@media (prefers-reduced-motion: no-preference) and (hover: hover) and (pointer: fine) {
  .ds-tag-card--swing:hover { rotate: -1.5deg; }
}
/* portable:omit-end */
@media (max-width: 760px) {
  /* portable:omit-start: no report uses these */
  .ds-tag-card--split { grid-template-columns: minmax(0, 1fr); }
  .ds-tag-card-tag { border-right: 0; border-bottom: var(--rule-width) solid var(--color-tag-edge); }
  /* portable:omit-end */
  /* The flex scoreboard wraps two to a row here. The compact grid keeps five columns and its own dividers until
     600px (above), so these rules must not reach it (2026-11-04). */
  .ds-scoreboard:not(.ds-scoreboard--compact) > .ds-scoreboard-cell { flex-basis: 50%; }
  .ds-scoreboard:not(.ds-scoreboard--compact) > .ds-scoreboard-cell--hero { flex-basis: 100%; }
  .ds-scoreboard:not(.ds-scoreboard--compact) > .ds-scoreboard-cell:nth-child(n + 3) { border-top: var(--border-width) solid var(--color-border); }
  .ds-scoreboard:not(.ds-scoreboard--compact) > .ds-scoreboard-cell:nth-child(odd) { border-left: 0; }
  /* portable:omit-start: no report draws the verdict stamp (2026-11-08) */
  .ds-cert-sheet, .ds-cert-sheet:has(> .ds-stamp--xl) { display: block; padding: var(--space-5); }
  /* portable:omit-end */
  /* In flow the stamp turns about its top-left corner, so its right end rises by width × sin(6deg); the top margin reserves that rise. */
  /* portable:omit-start: no report draws the verdict stamp (2026-11-08) */
  .ds-cert-sheet > .ds-stamp--xl { position: static; display: inline-block; max-width: 100%; margin-top: calc(var(--space-3) + min(10.5%, 2em)); transform: rotate(-6deg); transform-origin: 0 0; }
  /* portable:omit-end */
}
/* In flow on narrow sheets the stamp scales from its left edge, so the slam's overshoot would push past the viewport. Press in instead: it never grows past its final size. */
/* portable:omit-start: no report draws the verdict stamp (2026-11-08) */
@keyframes ds-stamp-press { from { scale: .9; opacity: 0; } to { scale: 1; opacity: 1; } }
/* portable:omit-end */
/* portable:omit-start: no report draws the verdict stamp (2026-11-08) */
@media (max-width: 760px) and (prefers-reduced-motion: no-preference) {
  .ds-cert-sheet > .ds-stamp--xl { animation-name: ds-stamp-press; }
}
/* portable:omit-end */
/* portable:omit-start: no report uses these */
@media (max-width: 700px) {
  .ds-form, .ds-tag-card--form { padding: var(--space-6) var(--space-4) var(--space-4); }
}
/* portable:omit-end */
@media (forced-colors: active) {
  .ds-stamp, .ds-tag-card, .ds-form, .ds-measure, .ds-tape { border-color: CanvasText; }
  /* portable:omit-start: no report uses these */
  .ds-tape-fill { background: Highlight; }
  /* portable:omit-end */
}
/* Bounded preview; the link opens the complete, unchanged evidence image. */
a.ds-evidence-preview { display: block; max-height: var(--evidence-preview-height); overflow: hidden; border-bottom: var(--border-width) solid var(--color-border); }
a.ds-evidence-preview img { display: block; width: 100%; height: auto; max-height: none; }

@media print {
  a.ds-evidence-preview { max-height: none; overflow: visible; border-bottom: 0; }
  .ds-measure { border: 1.5px solid var(--color-border); background: none; color: var(--color-ink); }
  .ds-tour { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  /* No transitions at all: a .01ms transition on `all` still paints one stale frame when styles change. */
  *, *::before, *::after { animation-duration: .01ms !important; transition-property: none !important; transition-duration: 0s !important; scroll-behavior: auto !important; }
}

/* Recorded evidence video shared by the homepage and reports. */
/* portable:omit-start: no report uses these */
.ds-recording { display: block; width: 100%; max-height: 26rem; margin-block: var(--space-3); background: var(--color-media); }

/* Feedback remains a quiet utility action with a decorative message outline. */
.ds-feedback-trigger { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); min-height: var(--control-height); max-width: 100%; padding: 8px 18px; border: var(--rule-width) solid var(--color-border); border-radius: 0; background: transparent; color: var(--color-ink); font: var(--weight-display) var(--text-button)/1.05 var(--font-display); font-stretch: var(--stretch-display); text-transform: var(--case-display); text-align: center; white-space: nowrap; transition: background-color var(--motion-fast) var(--ease-standard), border-color var(--motion-fast) var(--ease-standard); }
.ds-feedback-trigger:not(.ds-compact-action)::before { content: ""; flex: 0 0 auto; width: var(--space-4); height: var(--space-3); border: var(--rule-width) solid currentColor; border-radius: var(--radius-control) var(--radius-control) var(--radius-control) 0; }
.ds-feedback-trigger:active:not(:disabled) { background: var(--color-tint); }
@media (hover: hover) and (pointer: fine) { .ds-feedback-trigger:hover:not(:disabled) { background: var(--color-tint); border-color: var(--color-muted); } }
/* Responsive action: keep the accessible name while showing a compact icon on phones. */
.ds-compact-action .ds-compact-action-icon { display: block; }
@media (max-width: 700px) {
  .ds-compact-action { justify-content: center; width: var(--control-height); min-width: var(--control-height); min-height: var(--control-height); padding: 0; gap: 0; flex-shrink: 0; }
  .ds-compact-action-label { display: none; }
  .ds-compact-action-icon { display: block; }
}
/* portable:omit-end */


/* portable:omit-start: the public-page and console components below never appear in an evidence report, so reportStyles() leaves them out of portable exports to keep the report style budget. */
/* ---- Public pages package (2026-11-04): plan sheet, quiet form head and checkbox ---- */
/* Column surfaces keep positions legible through long native comparisons. */
.ds-table--columns :is(th, td):nth-child(even) { background: var(--color-canvas); }
.ds-table--columns :is(th, td):nth-child(odd) { background: var(--color-surface); }
/* Plan sheet: .ds-plan-grid--sheet joins the plans into one bordered sheet split into .ds-plan cells, used by the
   homepage and /pricing so the same plans look the same. Each cell's 1px outer shadow fills the 1px gap around it (the
   sheet's border and overflow clip the outer edge), so the rule sits between cells however they wrap and a short last
   row leaves blank sheet, not a rule-coloured block. Cells stack below about 41rem. .ds-plan-action keeps every
   cell's action on one line. */
.ds-plan-grid--sheet { grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); gap: var(--rule-width); overflow: hidden; background: var(--color-surface); border: var(--border-width) solid var(--color-border); border-radius: var(--radius-panel); }
.ds-plan { display: flex; flex-direction: column; gap: var(--space-4); min-width: 0; padding: var(--space-8); background: var(--color-surface); box-shadow: 0 0 0 var(--rule-width) var(--color-border); }
.ds-plan--free { background: var(--color-canvas); }
.ds-plan ul { margin: 0; }
.ds-plan-kind { color: var(--color-muted); font: 700 var(--text-caption)/1.2 var(--font-code); letter-spacing: .06em; text-transform: uppercase; }
.ds-plan-grid .ds-plan-name { font: var(--weight-display) clamp(1.75rem, 3vw, 2.75rem)/var(--leading-display) var(--font-display); font-stretch: var(--stretch-display); text-transform: var(--case-display); }
.ds-plan-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-2); }
.ds-plan-amount { font: var(--weight-display) clamp(2.75rem, 1.5rem + 4vw, 5rem)/.84 var(--font-display); font-stretch: var(--stretch-display); font-variant-numeric: lining-nums tabular-nums; }
.ds-plan-per { color: var(--color-muted); font: var(--text-small) var(--font-code); }
.ds-plan-list { display: grid; gap: var(--space-2); padding-left: 1.2rem; }
@media (max-width: 700px) { .ds-plan { padding: var(--space-6); } }
/* Forced colours drop shadows: an outline keeps the cells divided. */
@media (forced-colors: active) { .ds-plan { outline: var(--border-width) solid CanvasText; } }
/* Quiet form head: the two-part form head on a hairline, for evidence on open sheets rather than manila forms. */
.ds-form-head--quiet { gap: var(--space-3); padding-bottom: var(--space-4); border-bottom: var(--border-width) solid var(--color-border); color: var(--color-muted); font: var(--text-small)/1.4 var(--font-body); text-transform: none; }
/* Checkbox and its visible label as one 44px target; the box sits on the label's first line. */
.ds-check { display: flex; align-items: flex-start; gap: var(--space-3); min-height: var(--control-height); margin: 0; font-weight: var(--weight-label); cursor: pointer; }
.ds-check > input[type="checkbox"] { flex: none; width: 1.5rem; height: 1.5rem; min-height: 0; margin: 0; padding: 0; accent-color: var(--color-action); }
/* Clerk adapter (clerkAppearance, login and signup 2026-11-04). The site-wide field rule must not reshape Clerk's own
   controls (verification code, checkbox): inside the root they fall back to Clerk's layered styles. Text fields
   (.ds-auth-input) are left out of that revert, so they keep the shared field rules and their invalid, disabled and
   readonly states. :where() keeps the revert at 0,2,0, so the checkbox sizing below still wins. A legal-consent
   checkbox is sized like .ds-check. Two text fields sit inside Clerk's own layout: a password field keeps room for
   its 44px show-password button, and the number input inside Clerk's bordered phone box falls back to Clerk's
   borderless look, so the phone field reads as one box. */
.ds-auth-root { width: 100%; }
.ds-auth-root :where(input, textarea, select):not(.ds-auth-input) { width: revert-layer; min-width: revert-layer; min-height: revert-layer; padding: revert-layer; border: revert-layer; border-radius: revert-layer; color: revert-layer; background: revert-layer; }
.ds-auth-root .ds-auth-check { flex: none; width: 1.5rem; height: 1.5rem; min-height: 0; margin: 0; padding: 0; accent-color: var(--color-action); }
.ds-auth-root .ds-auth-input:has(+ .cl-formFieldInputShowPasswordButton) { padding-inline-end: calc(var(--control-height) + var(--space-2)); }
.ds-auth-root .cl-phoneInputBox .ds-auth-input { width: revert-layer; min-width: revert-layer; min-height: revert-layer; padding: revert-layer; border: revert-layer; border-radius: revert-layer; background: revert-layer; }
/* Confirm dialog (console package, 2026-11-04): confirmDialog() in components.js. A native modal dialog;
   Cancel comes first and holds focus. The danger tone marks destructive or irreversible actions. */
.ds-confirm { width: min(520px, calc(100vw - 32px)); }
.ds-confirm .dialog-head h2 { margin-bottom: var(--space-4); overflow-wrap: anywhere; }
.ds-confirm-lead { margin: 0 0 var(--space-3); font-weight: var(--weight-label); overflow-wrap: anywhere; }
.ds-confirm-body p { margin: 0; overflow-wrap: anywhere; }
.ds-confirm .dialog-footer { gap: var(--space-2); justify-content: flex-end; padding-top: var(--space-4); }
.ds-confirm[data-tone="danger"]::after { --crop: var(--color-danger); }
.primary-button--danger { background: var(--color-fail); border-color: var(--color-danger); color: var(--color-danger); }
.primary-button--danger:hover:not(:disabled) { background: var(--color-danger); border-color: var(--color-danger); color: var(--color-canvas); }
@media (max-width: 420px) { .ds-confirm .dialog-footer > * { flex: 1 1 100%; } }
/* Copy code (public pages package, 2026-11-04): bindCopyCode() in components.js puts a Copy button and a polite status
   above a <pre>. The status keeps its place while empty so screen readers hear "Copied". Long lines scroll inside the
   block, never the page. */
.ds-code-copy { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); margin: var(--space-3) 0 var(--space-2); }
.ds-code-copy-status { color: var(--color-muted); font-size: var(--text-small); overflow-wrap: anywhere; }
.ds-code-copy + pre { max-width: 100%; margin: 0; padding: var(--space-4); overflow-x: auto; white-space: pre; border: var(--border-width) solid var(--color-border); border-radius: var(--radius-control); background: var(--color-code); color: var(--color-ink); font: var(--text-small)/var(--leading-body) var(--font-code); }
/* Now label (2026-11-10): the small manila label in front of what the tester is doing, or its outcome once finished. */
.ds-now { padding: 0 var(--space-2); border: var(--rule-width) solid var(--color-border); background: var(--color-tag); font: 700 var(--text-caption)/1.6 var(--font-code); letter-spacing: .06em; text-transform: uppercase; }
/* Fine print (2026-11-10): short standing notes as a labelled list, so each line says what it is about. */
.ds-fine-print { display: grid; gap: var(--space-1); margin: 0; font-size: var(--text-small); }
.ds-fine-print > div { display: grid; grid-template-columns: 7rem minmax(0, 1fr); gap: var(--space-3); align-items: baseline; }
.ds-fine-print dt { font-weight: var(--weight-label); color: var(--color-ink); }
.ds-fine-print dd { margin: 0; color: var(--color-muted); overflow-wrap: anywhere; }
/* A row whose value is hidden or empty (billing off) must not leave its label behind. */
.ds-fine-print > div:has(> dd[hidden]), .ds-fine-print > div:has(> dd:empty) { display: none; }
@media (max-width: 480px) { .ds-fine-print > div { grid-template-columns: minmax(0, 1fr); gap: 0; } }
/* Notice tones (console run states, 2026-11-10): a notice that says why a run stopped, failed or was left incomplete.
   The tone edge and surface come with the words; the text always states the reason, never colour alone. */
.ds-notice[data-tone="warning"] { border-left-color: var(--color-warning); background: var(--color-warning-surface); }
.ds-notice[data-tone="danger"] { border-left-color: var(--color-danger); background: var(--color-danger-surface); }
/* Faults in type (Broken type, 2026-11-11). Decorative words that show a fault the way a run reports it. Mark each
   one aria-hidden and keep a real text alternative nearby; never let the fault be the only statement of a result.
   Orange text is 3.56:1 on paper, so .ds-cut and .ds-topple are for display sizes only (24px+, or 18.66px+ bold).
   - .ds-cut: one word in three offset strips. Markup: <span class="ds-cut" aria-hidden="true"><i>Word</i><i>Word</i><i>Word</i></span>.
   - .ds-hollow: outlined letters, a possible problem for a person to judge (needs review).
   - .ds-struck: muted and struck through, a claim that was dropped.
   - .ds-topple: one fallen letter inside a word.
   An ancestor with .is-fixed mends every fault (after a fix); .is-whole shows the cut word whole (an opening beat).
   .ds-when-broken and .ds-when-fixed swap text with .is-fixed. Motion runs only when reduced motion is not requested. */
.ds-cut { position: relative; display: inline-block; line-height: 1; color: var(--color-danger); }
.ds-cut i { display: block; font-style: normal; }
.ds-cut i:nth-child(1) { clip-path: inset(0 -1em 65.5% -1em); transform: translate(-.05em, -.018em); }
.ds-cut i:nth-child(2) { position: absolute; inset: 0; clip-path: inset(34.5% -1em 32.5% -1em); transform: translateX(.075em); }
.ds-cut i:nth-child(3) { position: absolute; inset: 0; clip-path: inset(67.5% -1em 0 -1em); transform: translate(-.03em, .03em) rotate(-1.3deg); transform-origin: 0 100%; }
:is(.is-fixed, .is-whole) .ds-cut { color: var(--color-ink); }
:is(.is-fixed, .is-whole) .ds-cut i { transform: none; }
:is(.is-fixed, .is-whole) .ds-cut i:nth-child(1) { clip-path: inset(0 -1em 0 -1em); }
:is(.is-fixed, .is-whole) .ds-cut i:nth-child(n + 2) { opacity: 0; }
.ds-hollow { color: transparent; -webkit-text-stroke: .022em var(--color-ink); }
@supports not (-webkit-text-stroke: 1px) { .ds-hollow { color: var(--color-muted); text-decoration: underline dashed; } }
.ds-struck { color: var(--color-muted); text-decoration: line-through; text-decoration-color: var(--color-ink); text-decoration-thickness: .07em; }
.ds-topple { display: inline-block; transform: translate(.02em, .13em) rotate(24deg); transform-origin: 50% 100%; color: var(--color-danger); }
.is-fixed .ds-topple { transform: none; color: inherit; }
.ds-when-fixed, .is-fixed .ds-when-broken { display: none; }
.is-fixed .ds-when-fixed { display: inline; }
@media (prefers-reduced-motion: no-preference) {
  .ds-cut i { transition: transform .75s cubic-bezier(.2, .9, .2, 1), clip-path .75s cubic-bezier(.2, .9, .2, 1), opacity .3s; }
  .ds-cut, .ds-topple { transition: transform .75s cubic-bezier(.2, .9, .2, 1), color .45s; }
}
@media (forced-colors: active) { .ds-hollow { -webkit-text-stroke: 0; color: CanvasText; } }
/* portable:omit-end */

/* Storybook layer (2026-11-15, restrained 2026-11-16): the primary button keeps a thin pressed edge; secondary controls
   are flat; panels take a gold trim edge. Sparkles, speech bubbles, ribbons, sky and halftone grounds are opt-in catalog
   decoration, at most one accent per section or component, never on body UI. Decoration is pseudo-content with empty alt text or
   aria-hidden; it never carries state. Motion runs only under prefers-reduced-motion: no-preference. */
/* portable:omit-start: website and console decoration; evidence reports keep the plain controls. */
.primary-button { box-shadow: var(--shadow-press-action); font-family: var(--font-body); font-weight: var(--weight-button); }
/* Monochrome arrow icons follow the white label on rose and indigo; the signal and danger variants keep their own ink. */
.primary-button:not(.primary-button--signal, .primary-button--danger) img.icon { filter: brightness(0) invert(1); }
/* Reverse buttons keep their night border, fill and hover from the variant rules above. */
:is(.secondary-button, .context-button):not(.secondary-button--reverse) { border-color: var(--color-border-strong); background: var(--color-surface); box-shadow: none; }
:is(.secondary-button, .context-button):not(.secondary-button--reverse):hover:not(:disabled) { background: var(--color-raised); }
.secondary-button--reverse { box-shadow: none; }
@media (prefers-reduced-motion: no-preference) {
  .primary-button { transition: transform var(--motion-fast) var(--ease-out), box-shadow var(--motion-fast) var(--ease-out), background-color var(--motion-fast) var(--ease-standard); }
  .primary-button:active:not(:disabled, :focus-visible) { transform: translateY(2px); box-shadow: none; }
}
.ds-paper, .ds-tag-card, .ds-form { border-color: var(--color-trim); box-shadow: var(--shadow-panel); }
dialog { border-color: var(--color-trim); }
.ds-sparkle { position: relative; }
.ds-sparkle::before, .ds-sparkle::after { content: "\2726" / ""; position: absolute; color: var(--color-trim); font: 400 .55em/1 var(--font-body); pointer-events: none; }
.ds-sparkle::before { top: -.35em; left: -.7em; }
.ds-sparkle::after { top: .1em; right: -.55em; font-size: .4em; color: var(--color-action); }
.ds-speech { position: relative; padding: var(--space-3) var(--space-4); border: 2px solid var(--color-ink); border-radius: var(--radius-panel); background: var(--color-surface); color: var(--color-ink); box-shadow: var(--shadow-press); }
.ds-speech::after { content: ""; position: absolute; left: var(--space-6); bottom: -10px; width: 16px; height: 16px; border-right: 2px solid var(--color-ink); border-bottom: 2px solid var(--color-ink); background: var(--color-surface); transform: rotate(45deg); }
.ds-ribbon { display: inline-flex; align-items: center; gap: var(--space-2); padding: var(--space-1) var(--space-4); border: var(--border-width) solid var(--color-trim-deep); border-radius: var(--radius-button); background: var(--color-blush); color: var(--color-ink); font: 600 var(--text-small)/1.4 var(--font-display); }
.ds-ribbon::before { content: "\2726" / ""; color: var(--color-trim-deep); }
.ds-sky { background: radial-gradient(40% 50% at 12% 18%, var(--color-glow-action), transparent 70%), radial-gradient(45% 55% at 88% 8%, var(--color-glow-brand), transparent 70%), linear-gradient(180deg, var(--color-sky) 0%, var(--color-canvas) 72%); }
.ds-halftone { background-image: radial-gradient(var(--color-border) 1.2px, transparent 1.6px); background-size: 16px 16px; }
@media (forced-colors: active) { .ds-sparkle::before, .ds-sparkle::after, .ds-ribbon::before { content: none; } }
/* portable:omit-end */

/* Sybqa inspection bench: primitives for the live session, the console and app chrome. Re-skinned for Storybook
   (2026-11-15): light parchment surfaces, hairline borders, rounded corners and pill toggles. Class names are unchanged.
   Load after components.css (tokens first). Reports do not embed this file. */
/* QC tag: a ruled paper label (the manila tag is retired). Children: -kind (who says it), -claim, -value (a measurement),
   -verdict (Fail / Review / Dropped), -note. The verdict speaks in type: Fail is large orange, Review is hollow,
   Dropped is struck; the word itself always states the verdict. */
.ds-qc-tag { position: relative; display: grid; gap: .2em; width: max-content; max-width: 100%; margin: 0; padding: .7em 1em; background: var(--color-tag); border: var(--border-width) solid var(--color-border); border-radius: var(--radius-soft); color: var(--color-ink); font-size: var(--text-small); line-height: 1.25; transform-origin: 0 50%; }
.ds-qc-tag-kind { font: 700 var(--text-caption)/1.2 var(--font-code); letter-spacing: .06em; text-transform: uppercase; color: var(--color-muted); }
.ds-qc-tag-claim { margin: 0; font-weight: var(--weight-label); overflow-wrap: anywhere; }
.ds-qc-tag-claim--ai { font: 500 1.0625em/1.25 var(--font-body); }
.ds-qc-tag-value, .ds-qc-tag-note { font-family: var(--font-code); overflow-wrap: anywhere; }
.ds-qc-tag-verdict { font: var(--weight-display) 1.8em/.9 var(--font-display); font-stretch: var(--stretch-display); letter-spacing: var(--tracking-display); text-transform: uppercase; }
/* 1.8em of 14px is 25px at weight 900: large text, so orange passes at 3.56:1. */
.ds-qc-tag[data-verdict="fail"] .ds-qc-tag-verdict { color: var(--color-signal); }
.ds-qc-tag[data-verdict="review"] .ds-qc-tag-verdict { color: transparent; -webkit-text-stroke: .03em var(--color-ink); }
.ds-qc-tag[data-verdict="dropped"] .ds-qc-tag-verdict { color: var(--color-muted); text-decoration: line-through; }
.ds-qc-tag[data-verdict="dropped"] .ds-qc-tag-claim { text-decoration: line-through; }
.ds-qc-tag[data-state="measuring"] .ds-qc-tag-value::after { content: ""; display: inline-block; width: .5em; height: .5em; margin-left: .4em; border: var(--border-width) solid var(--color-border-strong); border-radius: 50%; background: var(--color-signal); }
.ds-qc-tag--compact { padding: .4em .8em; }
.ds-qc-tag--compact .ds-qc-tag-kind { display: none; }
.ds-qc-tag--float { position: absolute; left: 0; top: 0; transform: translate(var(--tx, 0px), var(--ty, 0px)) rotate(var(--rot, 0deg)); }
.ds-qc-tag > .ds-stamp { justify-self: start; }
.ds-qc-tag--overhang > .ds-stamp { position: absolute; right: -10px; bottom: -12px; margin: 0; }
/* Dotted string from a target to an eyelet, and the hand-drawn orange ring around a finding. */
.ds-string { position: absolute; left: 0; top: 0; width: 0; height: var(--len, 0px); border-left: var(--border-width) solid var(--color-border); transform-origin: 0 0; rotate: var(--ang, 0deg); pointer-events: none; }
.ds-ring { position: absolute; left: 0; top: 0; width: var(--rw, auto); height: var(--rh, auto); translate: var(--rx, 0px) var(--ry, 0px); overflow: visible; fill: none; stroke: var(--color-signal); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.ds-ring * { vector-effect: non-scaling-stroke; }

/* Inspection box: a dashed safety-orange outline with an optional manila label. Offsets are lengths in --bx --by --bw --bh
   (data-units="frac" reads 0..1 fractions of the nearest size container instead). data-glide animates the size. */
.ds-inspect { position: absolute; left: 0; top: 0; box-sizing: border-box; width: var(--bw, auto); height: var(--bh, auto); translate: var(--bx, 0px) var(--by, 0px); border: var(--rule-width) dashed var(--color-signal); pointer-events: none; transition: translate var(--cursor-glide) var(--ease-glide), opacity var(--motion-normal) var(--ease-standard); }
.ds-inspect[data-units="frac"] { translate: calc(var(--bx, 0) * 100cqw) calc(var(--by, 0) * 100cqh); width: calc(var(--bw, 0) * 100cqw + 12px); height: calc(var(--bh, 0) * 100cqh + 12px); margin: -6px 0 0 -6px; }
.ds-inspect[data-glide] { transition: translate var(--cursor-glide) var(--ease-glide), width var(--cursor-glide) var(--ease-glide), height var(--cursor-glide) var(--ease-glide), opacity var(--motion-normal) var(--ease-standard); }
.ds-inspect[data-dim] { opacity: .45; }
:is(.ds-inspect-tag, .ds-inspect-label) { position: absolute; left: -2px; bottom: calc(100% + var(--space-3)); display: grid; gap: 2px; margin: 0; padding: var(--space-1) var(--space-3); background: var(--color-tag); border: var(--border-width) solid var(--color-border); border-radius: var(--radius-control); color: var(--color-ink); font: var(--text-caption)/1.3 var(--font-code); white-space: nowrap; }
:is(.ds-inspect-tag, .ds-inspect-label) b { font: var(--weight-display) var(--text-small)/1.1 var(--font-display); font-stretch: var(--stretch-display); }
.ds-inspect[data-below] > :is(.ds-inspect-tag, .ds-inspect-label) { bottom: auto; top: calc(100% + var(--space-3)); }
.ds-inspect[data-right] > :is(.ds-inspect-tag, .ds-inspect-label) { left: auto; right: -2px; }

/* Browser window chrome: ink frame, a bar (dots, back/forward, address, note), and a viewport that keeps its aspect ratio.
   Pair with .ds-crop (data-tone="signal" while live). Overlay children (.ds-cursor, .ds-inspect, .ds-qc-tag--float)
   sit in a position:absolute .ds-window-layer inside the viewport or screen. */
.ds-window { position: relative; min-width: 0; border: var(--border-width) solid var(--color-border); border-radius: var(--radius-panel); background: var(--color-surface); }
.ds-window-bar { position: relative; display: flex; align-items: center; gap: var(--space-3); min-height: 40px; padding: var(--space-2) var(--space-3); border-bottom: var(--border-width) solid var(--color-border); font-size: var(--text-small); }
.ds-window-dots { display: inline-flex; flex: none; gap: var(--space-2); }
.ds-window-dots > * { width: 10px; height: 10px; border-radius: 50%; background: var(--color-border-strong); }
.ds-window-dots > :nth-child(1) { background: var(--color-danger); }
.ds-window-dots > :nth-child(2) { background: var(--color-warning); }
.ds-window-dots > :nth-child(3) { background: var(--color-success); }
.ds-window-nav { display: inline-flex; flex: none; gap: var(--space-1); font: 700 var(--text-small)/1 var(--font-code); }
.ds-window-nav > * { display: inline-grid; place-items: center; width: 24px; height: 24px; border: var(--border-width) solid var(--color-border); border-radius: 50%; background: var(--color-raised); }
.ds-window-nav > :disabled, .ds-window-nav > [aria-disabled="true"] { opacity: var(--opacity-disabled); }
.ds-window-url { flex: 1 1 auto; min-width: 0; overflow: hidden; font: 700 var(--text-small)/1.2 var(--font-code); text-overflow: ellipsis; white-space: nowrap; }
.ds-window-note { flex: none; margin-left: auto; color: var(--color-muted); font: 700 var(--text-caption)/1 var(--font-label); letter-spacing: var(--tracking-label); text-transform: uppercase; }
.ds-window-load { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--color-signal); transform-origin: 0 50%; scale: 0 1; }
.ds-window-viewport { position: relative; display: grid; place-items: center; container-type: size; aspect-ratio: 16 / 10; overflow: hidden; background-color: var(--color-code);
  }
.ds-window-screen { position: relative; container-type: size; aspect-ratio: var(--ar-w, 16) / var(--ar-h, 10); width: min(100cqw, calc(100cqh * var(--ar-w, 16) / var(--ar-h, 10))); background: var(--color-surface); }
.ds-window-screen > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.ds-window-layer { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }

/* AI QA cursor: safety-orange pointer, click ring, mono action label. Position with --cx --cy (lengths; data-units="frac"
   uses 0..1 fractions of the size container). Moves with translate only. data-click="a|b" alternates two identical
   animations so a click restarts without forcing layout; data-sync="stale" docks it faded; data-flip puts the label left. */
.ds-cursor { position: absolute; left: 0; top: 0; z-index: 2; width: 0; height: 0; translate: var(--cx, 0px) var(--cy, 0px); pointer-events: none; transition: translate var(--cursor-glide) var(--ease-glide), opacity var(--motion-normal) var(--ease-standard); }
.ds-cursor[data-units="frac"] { translate: calc(var(--cx, 0) * 100cqw) calc(var(--cy, 0) * 100cqh); }
.ds-cursor[data-sync="stale"] { --cx: .94; --cy: .92; opacity: .35; }
.ds-cursor > svg { position: absolute; left: 0; top: 0; width: 20px; height: 23px; overflow: visible; fill: var(--color-signal); stroke: var(--color-ink); stroke-width: 2; stroke-linejoin: round; }
.ds-cursor-ring { position: absolute; left: -14px; top: -14px; width: 28px; height: 28px; border: 2px solid var(--color-signal); border-radius: 50%; opacity: 0; }
.ds-cursor-label, .ds-cursor-tag { position: absolute; left: 16px; top: 20px; padding: 1px var(--space-2); border: 0; border-radius: var(--radius-button); background: var(--color-signal); color: var(--color-on-signal); font: 700 var(--text-caption)/1.5 var(--font-code); letter-spacing: .04em; white-space: nowrap; }
.ds-cursor[data-flip] :is(.ds-cursor-label, .ds-cursor-tag) { left: auto; right: 16px; }
/* Cursor modes: thinking (the AI is choosing the next step) and typing (a caret after the tag). */
.ds-cursor[data-mode="thinking"] :is(.ds-cursor-label, .ds-cursor-tag) { background: var(--color-surface); color: var(--color-ink); }
.ds-cursor[data-mode="thinking"] :is(.ds-cursor-label, .ds-cursor-tag)::after { content: "…"; }
.ds-cursor[data-mode="typing"] :is(.ds-cursor-label, .ds-cursor-tag)::after { content: ""; display: inline-block; width: 1px; height: 1em; margin-left: 3px; vertical-align: -2px; background: currentColor; }
/* Route: the tester's last few actions as numbered stops joined by a dashed line. Positions are 0..1 fractions
   of the viewport (--cx, --cy), like .ds-cursor[data-units="frac"]; data-age 0 is the newest stop. */
.ds-route { position: absolute; inset: 0; pointer-events: none; }
.ds-route-line { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; fill: none; stroke: var(--color-signal); stroke-width: 2; stroke-dasharray: 5 5; stroke-linecap: round; opacity: .75; }
/* vector-effect does not inherit: without it on the polyline the 0..1 viewBox scales the stroke to the whole box. */
.ds-route-line > polyline { vector-effect: non-scaling-stroke; }
.ds-route-stop { position: absolute; left: 0; top: 0; display: grid; place-items: center; box-sizing: border-box; min-width: 20px; height: 20px; margin: -10px 0 0 -10px; padding: 0 4px; border: var(--border-width) solid var(--color-border-strong); background: var(--color-surface); color: var(--color-ink); font: 700 var(--text-caption)/1 var(--font-code); translate: calc(var(--cx, 0) * 100cqw) calc(var(--cy, 0) * 100cqh); transition: opacity var(--motion-normal) var(--ease-standard); }
.ds-route-stop[data-age="0"] { background: var(--color-signal); color: var(--color-on-signal); }
.ds-route-stop[data-age="2"] { opacity: .7; }
.ds-route-stop[data-age="3"] { opacity: .45; }

/* Run log: fixed-height mono rows (time VERB text) so changing text never shifts layout. */
.ds-runlog { margin: 0; padding: 0; list-style: none; font: var(--text-caption)/1.6 var(--font-code); }
.ds-runlog > li { display: grid; grid-template-columns: 3rem 5.5rem minmax(0, 1fr); gap: var(--space-2); height: 1.6em; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ds-runlog > li > b { font-weight: 700; }
.ds-runlog > li > :first-child { color: var(--color-muted); }

/* Checklist: ink rules and orange-tick boxes (the homepage "what it checks" list). data-done="true" draws the tick. */
.ds-checklist { --box: 2.5rem; margin: 0; padding: 0; list-style: none; border-top: var(--border-width) solid var(--color-border); }
.ds-checklist--sm { --box: 1.5rem; }
.ds-checklist > li { position: relative; display: grid; grid-template-columns: var(--box) minmax(0, 1fr); gap: var(--space-4); align-items: center; min-height: calc(var(--box) + var(--space-6)); padding-block: var(--space-3); border-bottom: var(--border-width) solid var(--color-ink); }
/* The box is an absolutely positioned grid child: it keeps column 1 and centres on the whole row however many lines column 2 holds. */
.ds-checklist > li::before { content: ""; position: absolute; grid-column: 1; align-self: center; width: var(--box); height: var(--box); border: var(--border-width) solid var(--color-border); background: var(--color-surface); }
.ds-checklist > li > * { grid-column: 2; }
.ds-checklist > li[data-done="true"]::after { content: ""; position: absolute; left: calc(var(--box) * .22); top: calc(50% - var(--box) * .6); width: calc(var(--box) * .36); height: calc(var(--box) * .76); border: solid var(--color-signal); border-width: 0 calc(var(--box) * .16) calc(var(--box) * .16) 0; rotate: 40deg; }

/* Proof lines: "The AI said" / "The browser measured" / stamp. Stacks below 440px of its own width. */
.ds-proof { display: grid; gap: var(--space-2); container-type: inline-size; }
.ds-proof-row { display: grid; gap: var(--space-1); }
.ds-proof-label { font: 700 var(--text-caption)/1.4 var(--font-code); letter-spacing: .06em; text-transform: uppercase; color: var(--color-muted); }
.ds-proof-said { font: 500 1.0625rem/1.3 var(--font-body); }
.ds-proof-measured { font-family: var(--font-code); overflow-wrap: anywhere; }
.ds-proof[data-outcome="dropped"] .ds-proof-said { color: var(--color-muted); text-decoration: line-through; }
@container (min-width: 440px) { .ds-proof-row { grid-template-columns: 11.5rem minmax(0, 1fr); align-items: baseline; } }

/* Small labels and state markers. */
.ds-chip { display: inline-flex; align-items: center; gap: var(--space-2); padding: 1px var(--space-3); border: var(--border-width) solid var(--color-border-strong); border-radius: var(--radius-button); background: var(--color-raised); color: var(--color-ink); font: 700 var(--text-caption)/1.6 var(--font-code); letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.ds-chip[data-tone="success"] { color: var(--color-success); }
.ds-chip[data-tone="danger"] { color: var(--color-danger); background: var(--color-fail); }
.ds-chip[data-tone="review"] { color: var(--color-review); border-style: dashed; }
.ds-chip[data-tone="warning"] { color: var(--color-warning); background: var(--color-warning-surface); }
.ds-live-dot { display: inline-block; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--color-signal); box-shadow: 0 0 0 3px var(--color-glow-action); }
/* Counters: a visible noun above a mono number. */
/* Four cells, then two, then one: never three plus an orphan. --tally-min is the narrowest cell that keeps "Worth a look" on one line; rem-based, so enlarged text reflows to fewer columns. */
.ds-tally { --tally-min: 7.5rem; --tally-gap: var(--space-3); display: grid; grid-template-columns: repeat(auto-fit, minmax(max((100% - 3 * var(--tally-gap)) / 4, clamp(0px, (4 * var(--tally-min) + 3 * var(--tally-gap) - 100%) * 1000, (100% - var(--tally-gap)) / 2), clamp(0px, (2 * var(--tally-min) + var(--tally-gap) - 100%) * 1000, 100%)), 1fr)); gap: var(--tally-gap); margin: 0; }
.ds-tally > div { min-width: 0; padding: var(--space-2) var(--space-3); border: var(--border-width) solid var(--color-border); border-radius: var(--radius-soft); background: var(--color-surface); }
.ds-tally dt { overflow-wrap: break-word; font: 700 var(--text-caption)/1.4 var(--font-label); letter-spacing: .06em; text-transform: uppercase; color: var(--color-muted); }
.ds-tally dd { margin: 0; font: var(--weight-display) 2rem/1 var(--font-display); font-stretch: var(--stretch-display); font-variant-numeric: tabular-nums; }
.ds-tally [data-tone="danger"] dd { color: var(--color-danger); }
.ds-tally [data-tone="review"] dd { color: var(--color-review); }
.ds-tally [data-tone="success"] dd { color: var(--color-success); }
/* Two-way toggle (aria-pressed) and the stamp legend. */
/* Equal columns on one row: a narrow screen wraps the labels inside their segment, never the segments onto a ragged second row. */
.ds-seg { display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; max-width: 100%; padding: 3px; gap: 3px; border: var(--border-width) solid var(--color-border); border-radius: var(--radius-button); background: var(--color-surface); overflow: hidden; }
.ds-seg > button { min-height: var(--control-height); padding: var(--space-1) var(--space-4); border: 0; border-radius: var(--radius-button); background: transparent; color: var(--color-muted); font: var(--weight-label) var(--text-button)/1.05 var(--font-body); overflow-wrap: anywhere; transition: background-color var(--motion-fast) var(--ease-standard), color var(--motion-fast) var(--ease-standard); }
@media (max-width: 480px) { .ds-seg > button { padding-inline: var(--space-2); } }
.ds-seg > button:hover:not([aria-pressed="true"]) { color: var(--color-ink); background: var(--color-raised); }
.ds-seg > button[aria-pressed="true"] { background: var(--color-action); color: var(--color-on-action); }
/* The group clips its corners (overflow: hidden), so a focused segment draws its ring inside its own edge. */
.ds-seg > button:focus-visible { position: relative; z-index: 1; outline-offset: calc(-1 * var(--focus-width)); }
.ds-legend { padding: var(--space-3) 0; border-block: var(--border-width) solid var(--color-border); }
.ds-legend > summary { cursor: pointer; min-height: var(--control-height); padding-block: var(--space-2); font-weight: var(--weight-label); }
.ds-legend dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--space-2) var(--space-4); align-items: center; margin: 0; }
.ds-legend dd { margin: 0; color: var(--color-muted); }
/* Ledger: manila head over mono rows (time, kind chip, text, stamp). */
.ds-ledger { display: flex; flex-direction: column; min-width: 0; overflow: hidden; background: var(--color-surface); border: var(--border-width) solid var(--color-border); border-radius: var(--radius-panel); }
.ds-ledger-head { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-3); padding: var(--space-3) var(--space-4); background: var(--color-tag); border-bottom: var(--border-width) solid var(--color-border); }
.ds-ledger-head > :is(h2, h3) { position: relative; }
.ds-ledger-head :is(h2, h3) { margin: 0; font-size: var(--text-section); }
.ds-ledger-list { flex: 1; min-height: 0; margin: 0; padding: 0; overflow: auto; list-style: none; }
.ds-ledger-row { display: grid; grid-template-columns: 4.5rem 4.75rem minmax(0, 1fr) auto; gap: var(--space-3); align-items: center; min-height: var(--control-height); padding: var(--space-1) var(--space-4); border-bottom: var(--border-width) solid var(--color-border); content-visibility: auto; contain-intrinsic-size: auto 44px; font-size: var(--text-small); }
.ds-ledger-row[data-kind="empty"] > * { grid-column: 1 / -1; }
.ds-ledger-row[data-kind="empty"] { grid-template-columns: minmax(0, 1fr); content-visibility: visible; color: var(--color-muted); }
.ds-ledger-time { font: var(--text-caption)/1.4 var(--font-code); color: var(--color-muted); }
/* Night console strip for raw logs, with a reverse focus ring. */
.ds-console { background: var(--color-night); color: var(--color-on-night); border: var(--border-width) solid var(--color-night-line); border-radius: var(--radius-panel); }
.ds-console :focus-visible { outline-color: var(--color-action-reverse); }
.ds-console > summary { cursor: pointer; min-height: var(--control-height); padding: var(--space-2) var(--space-4); font: 600 var(--text-small)/1.4 var(--font-code); }
.ds-console ol { margin: 0; padding: 0 var(--space-4) var(--space-4); list-style: none; font: var(--text-caption)/1.6 var(--font-code); color: var(--color-on-night-muted); }

/* Choice group: native radios or checkboxes drawn as inspection tags (rating, topic). */
.ds-choices { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: 0; padding: 0; border: 0; }
.ds-choices > legend { padding: 0; margin-bottom: var(--space-2); font-weight: var(--weight-label); }
.ds-choice { position: relative; display: inline-flex; margin: 0; }
.ds-choice > input { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; margin: 0; padding: 0; opacity: 0; cursor: pointer; }
.ds-choice > span { display: inline-flex; align-items: center; justify-content: center; min-width: var(--control-height); min-height: var(--control-height); padding: var(--space-2) var(--space-4); border: var(--border-width) solid var(--color-border); background: var(--color-surface); font-weight: var(--weight-label); }
.ds-choice > input:checked + span { background: var(--color-ink); color: var(--color-canvas); }
.ds-choice > input:focus-visible + span { outline: var(--focus-width) solid var(--color-signal); outline-offset: var(--focus-offset); }
/* Rating scale: equal columns that never wrap one value alone, with visible end labels under the first and last. */
.ds-choices--scale { display: grid; grid-template-columns: repeat(var(--choices, 5), minmax(0, 1fr)); }
.ds-choices--scale > .ds-choice, .ds-choices--scale > .ds-choice > span { width: 100%; min-width: 0; }
.ds-choices--scale > .ds-choice > span { padding-inline: var(--space-1); }
.ds-choices-ends { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: var(--space-2); color: var(--color-muted); font-size: var(--text-small); }

/* Consent banner: a fixed bottom bar. It overlays the page, so showing or hiding it never moves content. Keep controls
   native buttons with equal visual weight for accept and decline. */
.ds-consent { position: fixed; left: 0; right: 0; bottom: 0; max-height: 50svh; overflow-y: auto; z-index: var(--z-consent); display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-8); padding: var(--space-4) max(var(--space-6), calc((100% - var(--content-width)) / 2)); background: var(--color-surface); color: var(--color-ink); border-top: var(--border-width) solid var(--color-border); }
.ds-consent-body { flex: 1 1 24rem; min-width: 0; }
.ds-consent-title { margin: 0 0 var(--space-1); font: var(--weight-display) var(--text-section)/1 var(--font-display); font-stretch: var(--stretch-display); text-transform: var(--case-display); }
.ds-consent-text { margin: 0; max-width: 70ch; color: var(--color-muted); font-size: var(--text-small); }
.ds-consent-actions { display: flex; flex: 0 0 auto; flex-wrap: wrap; gap: var(--space-3); }
.ds-consent-actions > * { flex: 1 1 auto; }
html:has(.ds-consent:not([hidden])) { scroll-padding-bottom: var(--consent-h, 9rem); }

/* Feedback dialog: head, a short form, and status text. Use with <dialog class="ds-feedback"> and bindDialog. */
.ds-feedback { width: min(520px, calc(100vw - 32px)); padding: 0; }
.ds-feedback-head { display: flex; justify-content: space-between; align-items: start; gap: var(--space-4); padding: var(--space-6) var(--space-6) var(--space-3); border-bottom: var(--border-width) solid var(--color-border); }
.ds-feedback-head h2 { margin: 0; font-size: 2rem; }
.ds-feedback-head .eyebrow { margin: 0 0 var(--space-1); }
.ds-feedback-form { display: grid; gap: var(--space-5); padding: var(--space-6); }
.ds-feedback-footer { display: grid; gap: var(--space-2); padding: var(--space-4) var(--space-6); border-top: var(--border-width) solid var(--color-border); }
.ds-feedback-count { margin: 0; color: var(--color-muted); font: var(--text-caption)/1.4 var(--font-code); text-align: right; }
.ds-feedback-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: var(--space-3); }
.ds-feedback-status { min-height: 1.5em; margin: 0; font-size: var(--text-small); }


/* Motion. The base state of every animated element is its FINAL state; entrances run only when motion is allowed,
   from a state class or data attribute, with explicit from and to keyframes. Transform, translate, rotate, scale and
   opacity only (the load sweep is the documented exception). Reduced motion is also handled by the global override
   in components.css. */
@keyframes ds-tag-drop { from { translate: 0 -12px; opacity: 0; } to { translate: 0 0; opacity: 1; } }
@keyframes ds-ring-pop { from { scale: .6; opacity: 0; } 70% { scale: 1.05; opacity: 1; } to { scale: 1; opacity: 1; } }
@keyframes ds-string-out { from { scale: 1 0; } to { scale: 1 1; } }
@keyframes ds-tick-in { from { scale: 0; } 70% { scale: 1.15; } to { scale: 1; } }
@keyframes ds-ripple-a { from { scale: .5; opacity: .9; } to { scale: 1.8; opacity: 0; } }
@keyframes ds-ripple-b { from { scale: .5; opacity: .9; } to { scale: 1.8; opacity: 0; } }
@keyframes ds-travel-a { from { translate: var(--px, 0px) var(--py, 0px); } to { translate: var(--cx, 0px) var(--cy, 0px); } }
@keyframes ds-travel-b { from { translate: var(--px, 0px) var(--py, 0px); } to { translate: var(--cx, 0px) var(--cy, 0px); } }
@keyframes ds-load { from { scale: 0 1; } to { scale: 1 1; } }
@keyframes ds-pulse { 50% { opacity: .25; } }
@keyframes ds-ledger-in { from { translate: 0 -6px; opacity: 0; } to { translate: 0 0; opacity: 1; } }
@media (prefers-reduced-motion: no-preference) {
  .ds-qc-tag.is-in { animation: ds-tag-drop .4s var(--ease-stamp) both; }
  .ds-ring.is-in { animation: ds-ring-pop .3s var(--ease-stamp) both; }
  .ds-string.is-in { animation: ds-string-out .25s ease-out both; }
  .ds-checklist > li[data-done="true"]::after { animation: ds-tick-in .28s ease-out both; }
  .ds-cursor[data-click="a"] .ds-cursor-ring { animation: ds-ripple-a .4s ease-out both; }
  .ds-cursor[data-click="b"] .ds-cursor-ring { animation: ds-ripple-b .4s ease-out both; }
  .ds-cursor[data-travel="a"] { animation: ds-travel-a var(--cursor-glide) var(--ease-glide) both; }
  .ds-cursor[data-travel="b"] { animation: ds-travel-b var(--cursor-glide) var(--ease-glide) both; }
  .ds-cursor[data-mode="thinking"] :is(.ds-cursor-label, .ds-cursor-tag) { animation: ds-pulse 1.1s ease-in-out infinite; }
  .ds-cursor[data-mode="typing"] :is(.ds-cursor-label, .ds-cursor-tag)::after { animation: ds-pulse .9s steps(2, jump-none) infinite; }
  .ds-route-stop[data-age="0"] { animation: ds-ring-pop .3s var(--ease-stamp) both; }
  .ds-window-bar[data-loading="a"] .ds-window-load, .ds-window-bar[data-loading="b"] .ds-window-load { animation: ds-load .8s ease-out both; }
  .ds-live-dot { animation: ds-pulse 1.1s ease-in-out infinite; }
  .ds-ledger-row.is-new { animation: ds-ledger-in .16s ease-out both; }
}
@media (max-width: 700px) {
  .ds-ledger-row { grid-template-columns: 3.5rem minmax(0, 1fr) auto; }
  .ds-ledger-row > .ds-chip { display: none; }
  .ds-consent { padding: var(--space-4); }
  .ds-consent-actions { width: 100%; }
  .ds-consent-actions > * { flex: 1 1 7rem; }
  .ds-feedback-actions > * { flex: 1 1 8rem; }
}
@media (forced-colors: active) {
  .ds-cursor > svg { fill: Highlight; stroke: CanvasText; }
  .ds-inspect { border-color: Highlight; }
  .ds-route-line { stroke: Highlight; }
  .ds-route-stop { border-color: CanvasText; }
  .ds-ring { stroke: Highlight; }
  .ds-qc-tag, .ds-chip, .ds-consent { border-color: CanvasText; }
  /* Forced colours drop author backgrounds and box shadows: the pressed segment and the checked choice take the
     system highlight, and wrapped segments draw real borders in place of their shadow dividers. */
  .ds-seg > button[aria-pressed="true"], .ds-choice > input:checked + span { forced-color-adjust: none; background: Highlight; color: HighlightText; }
  .ds-seg--wrap > button, .ds-seg--wrap > button + button { border: 1px solid CanvasText; }
}
@media print {
  .ds-consent { display: none; }
}

@media (max-width: 700px) {
  .ds-feedback-trigger.ds-compact-action { padding: 0; }
  .ds-feedback-trigger.ds-compact-action::before { display: none; }
}

/* Public header navigation: plain links, text actions and the phone menu. Reports never load these. */
.ds-nav-menu { position: relative; }
/* The menu toggle matches the Sign in secondary button beside it. */
.ds-nav-menu > summary { display: flex; align-items: center; justify-content: center; min-height: var(--control-height); padding: 8px var(--space-4); border: var(--border-width) solid var(--color-border-strong); border-radius: var(--radius-button); background: var(--color-raised); color: var(--color-ink); font: var(--weight-label) var(--text-button)/1.05 var(--font-body); white-space: nowrap; cursor: pointer; list-style: none; transition: background-color var(--motion-fast) var(--ease-standard); }
.ds-nav-menu > summary:hover { background: var(--color-tint); border-color: var(--color-muted); }
.ds-nav-menu[open] > summary { background: var(--color-tint); border-color: var(--color-muted); }
@media (max-width: 359px) { .ds-nav-menu > summary { padding-inline: var(--space-3); } }
.ds-nav-menu > summary::-webkit-details-marker { display: none; }
.ds-nav-menu > summary::after { content: '+'; margin-left: var(--space-2); }
.ds-nav-menu[open] > summary::after { content: '−'; }
.ds-nav-menu-links { position: absolute; z-index: var(--z-overlay); top: calc(100% + var(--space-2)); right: 0; display: grid; min-width: 14rem; padding: var(--space-2); border: var(--border-width) solid var(--color-border); border-radius: var(--radius-panel); background: var(--color-surface); box-shadow: var(--shadow-sheet); }
.ds-nav-menu-links :is(a, button):not(.primary-button, .secondary-button) { display: flex; align-items: center; min-height: var(--control-height); padding-inline: var(--space-3); border-radius: var(--radius-control); color: var(--color-ink); font: var(--weight-medium) var(--text-body)/1.2 var(--font-body); text-decoration: none; }
.ds-nav-menu-links :is(a, button):not(.primary-button, .secondary-button) + :is(a, button) { border-top: var(--border-width) solid var(--color-border); }
.ds-nav-menu-links :is(a, button):not(.primary-button, .secondary-button):hover { background: var(--color-raised); }
.ds-nav-menu-links .primary-button { margin-top: var(--space-2); }
.ds-nav-menu-links .text-button { min-width: 0; text-decoration: none; }
/* Public header links and text actions (Send feedback, Back to home) share one style; Sign in keeps its button variant. */
.ds-nav-link { display: inline-flex; align-items: center; gap: var(--space-1); min-height: var(--control-height); padding: 0; border: 0; background: none; color: var(--color-muted); font: var(--weight-medium) var(--text-body)/1 var(--font-body); text-decoration: none; white-space: nowrap; cursor: pointer; }
.ds-nav-link:hover, .ds-nav-link[aria-current="page"] { color: var(--color-ink); }
.ds-nav-link[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--color-signal); text-decoration-thickness: 2px; text-underline-offset: 8px; }

/* The one dialog close control (dialogClose()): a visible Close button that keeps its width beside long headings. */
.dialog-close { flex-shrink: 0; white-space: nowrap; }

/* A list of example stamps: wraps, with room for each stamp's rotation. */
.ds-stamp-list { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4) var(--space-5); margin: var(--space-3) 0 0; padding: var(--space-1) var(--space-2); list-style: none; }

/* Segmented control variants (console package, 2026-11-04). --reverse sits on night surfaces such as .ds-console;
   --wrap lets a long group (the run console's event filters) fill its row and wrap into equal cells. */
.ds-seg--reverse { border-color: var(--color-on-night); background: transparent; }
.ds-seg--reverse > button { background: transparent; color: var(--color-on-night); }
.ds-seg--reverse > button + button { border-left-color: var(--color-on-night); }
.ds-seg--reverse > button[aria-pressed="true"] { background: var(--color-on-night); color: var(--color-night); }
@media (hover: hover) and (pointer: fine) { .ds-seg--reverse > button:hover:not([aria-pressed="true"]) { background: var(--color-night-raised); } }
.ds-seg--wrap { --seg-line: var(--color-ink); display: grid; grid-auto-flow: row; grid-template-columns: repeat(auto-fit, minmax(min(100%, 7.5rem), 1fr)); width: 100%; }
.ds-seg--wrap.ds-seg--reverse { --seg-line: var(--color-on-night); }
/* Wrapped cells draw their dividers on the left and top; the group's own border and clipping finish the edges. */
.ds-seg--wrap > button, .ds-seg--wrap > button + button { border-left: 0; box-shadow: calc(-1 * var(--rule-width)) 0 0 var(--seg-line), 0 calc(-1 * var(--rule-width)) 0 var(--seg-line); }

/* portable:omit-start: workspace count and browser-title variants */
.ds-tally--rows { grid-template-columns: repeat(auto-fit, minmax(min(100%, 10em), 1fr)); align-items: start; gap: var(--space-2) var(--space-4); }
.ds-tally--rows > div { position: relative; display: flex; flex-direction: row; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: var(--space-1) var(--space-3); min-height: var(--control-height); padding: var(--space-2) 0; border: 0; border-bottom: var(--border-width) solid var(--color-border); background: transparent; }
.ds-tally--rows dt { flex: 1 1 6em; font: var(--weight-label) var(--text-body)/1.3 var(--font-body); letter-spacing: 0; text-transform: none; color: var(--color-ink); }
.ds-window-url--wrap { overflow: visible; white-space: normal; text-overflow: clip; overflow-wrap: anywhere; }
/* portable:omit-end */

/* Public site chrome: one header, navigation and night footer for the homepage, guides, comparisons, pricing,
   legal pages and the 404 page. Load after tokens.css, components.css and bench.css. Page CSS owns only the content
   between header and footer. Markup lives in src/web/public-pages.ts (HEADER, FOOTER); static pages copy it verbatim. */
html { scroll-padding-top: 96px; }

.guide-header, .guide-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-4) var(--space-6); width: 100%; }

/* Shared header (Storybook, 2026-11-15): the cream ground, a gold trim under it, Nunito links and the rose pill action. */
.guide-header { position: sticky; top: 0; z-index: var(--z-sticky, 10); min-height: 72px; padding: 0 max(var(--space-8), calc((100% - var(--content-width)) / 2)); background: var(--color-header); border-bottom: 2px solid var(--color-trim); }
.guide-brand { font-size: 2.25rem; }
.guide-mobile-nav { display: none; }
.guide-nav { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-6); }
:where(.guide-nav a, .guide-nav button) { min-height: var(--control-height); display: inline-flex; align-items: center; color: var(--color-muted); font: var(--weight-medium) var(--text-body)/1 var(--font-body); text-decoration: none; }
:where(.guide-nav a:not(.primary-button, .secondary-button, .text-button)):hover { color: var(--color-ink); }
.guide-nav a[aria-current="page"] { color: var(--color-ink); text-decoration: underline; text-decoration-color: var(--color-signal); text-decoration-thickness: 2px; text-underline-offset: 8px; }
/* Sign in reads as a quiet text action beside the rose pill. */
.guide-nav--responsive > .secondary-button { order: 1; border-color: transparent; background: transparent; box-shadow: none; color: var(--color-ink); padding-inline: var(--space-3); }
.guide-nav--responsive > .secondary-button:hover { background: var(--color-raised); border-color: var(--color-border); }
.guide-nav--responsive > .primary-button { order: 2; }
.guide-nav--responsive > .guide-mobile-nav { order: 3; }
/* Reading progress: a thin indigo line under the header that grows as the page scrolls. */
.guide-header::after { content: ""; position: absolute; left: 0; bottom: calc(-1 * var(--border-width)); width: 100%; height: 2px; background: var(--color-signal); transform-origin: 0 50%; scale: 0 1; }
@keyframes guide-read-progress { to { scale: 1 1; } }
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: scroll()) {
    .guide-header::after { animation: guide-read-progress linear both; animation-timeline: scroll(root); }
  }
}

/* Footer: the twilight plum band under a gold trim, the reverse brand and link columns. */
.guide-footer { --footer-gutter: max(var(--space-8), calc((100vw - var(--content-width)) / 2)); position: relative; align-items: start; margin-top: var(--space-16); padding: var(--space-12) var(--footer-gutter) var(--space-8); background: var(--color-night); color: var(--color-on-night-muted); font-size: var(--text-small); border-top: var(--border-width) solid var(--color-night-line); }
.guide-footer :where(a, button):not(.brand, .primary-button, .secondary-button, .text-button) { min-height: var(--control-height); display: inline-flex; align-items: center; padding: 0; border: 0; background: none; color: var(--color-on-night-muted); font: inherit; text-decoration: none; cursor: pointer; }
.guide-footer :where(a, button):not(.brand, .primary-button, .secondary-button, .text-button):hover { color: var(--color-on-night); }
.guide-footer a:focus-visible, .guide-footer button:focus-visible { outline-color: var(--color-action-reverse); }
.guide-footer .brand { font-size: 2rem; }
.footer-brand { display: grid; gap: var(--space-3); }
.guide-footer .guide-nav { display: grid; grid-template-columns: repeat(3, minmax(9rem, auto)); align-items: start; gap: var(--space-2) var(--space-12); margin-left: auto; }
.footer-col { display: flex; flex-direction: column; align-items: flex-start; }
.footer-col-title { margin: 0 0 var(--space-1); color: var(--color-on-night); font: var(--weight-label) var(--text-body)/1.4 var(--font-body); }
.guide-footer .ds-nav-link { color: var(--color-on-night-muted); font-size: inherit; font-weight: 400; }
.guide-footer .ds-nav-link:hover { color: var(--color-on-night); text-decoration: none; }
.guide-footer-note { width: 100%; margin: 0; padding-top: var(--space-6); border-top: var(--border-width) solid var(--color-night-line); }

/* Narrowest full header (1025px to 1199px): tighter link spacing, so logo, links, action and Sign in keep one row
   with room to spare. The 1024px block below sets its own gap. */
@media (max-width: 1199px) {
  .guide-nav--responsive { column-gap: var(--space-3); }
  .guide-header .guide-brand { font-size: 1.875rem; }
}

/* Compact native navigation: collapse before the links run out of room, so the header never wraps under the logo.
   Phones and tablets keep the one primary action beside the menu; Sign in moves into the menu (2026-11-04). */
@media (max-width: 1024px) {
  .guide-header:has(.guide-nav--responsive) { flex-wrap: nowrap; }
  .guide-nav--responsive { flex: none; flex-wrap: nowrap; gap: var(--space-2); }
  .guide-nav--responsive > :not(.guide-mobile-nav, .primary-button) { display: none; }
  .guide-mobile-nav { display: block; }
  .guide-mobile-nav .ds-nav-menu-links > .primary-button { display: none; }
  /* The account action sits apart from the page links. */
  .guide-menu-sign-in { margin-top: var(--space-1); border-top: var(--border-width) solid var(--color-border); }
}
@media (max-width: 800px) {
  .guide-header:has(.guide-nav--responsive) { min-height: 72px; padding: var(--space-2) var(--space-4); gap: var(--space-2); }
  .guide-header .guide-brand { font-size: 1.5rem; }
  .guide-footer .guide-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-left: 0; width: 100%; column-gap: var(--space-6); }
}
@media (max-width: 640px) {
  .guide-header { position: relative; min-height: 64px; padding: var(--space-2) var(--space-5); }
  /* Compact header action: same control and 44px height, tighter padding. */
  .guide-nav--responsive > .primary-button { padding: var(--space-2) var(--space-3); font-size: var(--text-body); white-space: nowrap; }
  .guide-footer { --footer-gutter: var(--space-5); }
  .guide-footer .guide-nav { row-gap: var(--space-5); }
  /* Footer text links: 36px rows (above the 24px WCAG minimum) instead of 44px boxes that read as wide blank bands. */
  .guide-footer .guide-nav :where(a, button):not(.brand, .primary-button, .secondary-button, .text-button) { min-height: 2.25rem; }
  .guide-nav { gap: var(--space-1) var(--space-4); }
}
/* Narrow phones: logo, action and menu share the row, so the gutters, logo and toggle tighten a little. */
@media (max-width: 420px) {
  .guide-header:has(.guide-nav--responsive) { padding-inline: var(--space-4); }
  .guide-header .guide-brand { font-size: 1.25rem; }
  .guide-header .ds-nav-menu > summary { padding-inline: var(--space-3); }
}
@media (max-width: 359px) {
  .guide-header .guide-brand { font-size: var(--text-section); }
  /* Too narrow for logo, action and menu on one row: the action moves to the end of the menu, after Sign in. */
  .guide-nav--responsive > .primary-button { display: none; }
  .guide-mobile-nav .ds-nav-menu-links > .primary-button { display: inline-flex; }
}

/* Homepage composition, Storybook (2026-11-15, restrained 2026-11-16): a cream parchment ground with one soft sky
   wash and a straight gold rule closing the hero; a split hero with a decorative example-run window framed in gold
   trim; a bento grid of what a run covers; the "Fixed? Prove it." band (Rev A / Rev B, .is-fixed on main); rounded
   cards with gold trim and a twilight proof band. No glyph sparkles, blob glows or gradient bars.
   Header and footer chrome come from ui/site.css; controls, fields, statuses and fault words from ui/. */
html { scroll-behavior: smooth; }
.landing { --gutter: max(var(--space-8), calc((100% - var(--content-width)) / 2)); background: var(--color-canvas); }
main { position: relative; background: var(--color-canvas); overflow-x: clip; }
main > section { position: relative; padding: var(--space-16) var(--gutter); }
main :is(p, li, dd) :is(b, strong) { font-weight: var(--weight-label); }
.nowrap { white-space: nowrap; }

/* Section heads: sentence-case Fredoka display with one indigo phrase; a quiet Mono label above when a section has one. */
.block-head { display: grid; gap: var(--space-4); max-width: 62rem; margin: 0 0 var(--space-10); }
.block-head--center { justify-items: center; max-width: none; text-align: center; }
.block-head--center .block-intro { margin-inline: auto; }
.section-kicker { margin: 0; color: var(--color-signal); font-size: var(--text-caption); }
.block-title { margin: 0; font-size: clamp(1.875rem, 1.1rem + 2.2vw, 3.25rem); max-width: 22ch; text-wrap: balance; }
.block-intro { max-width: 60ch; margin: 0; color: var(--color-muted); font-size: var(--text-reading); text-wrap: pretty; }
.plans-more { margin: var(--space-8) 0 0; color: var(--color-muted); font-size: var(--text-small); }
.guide-links { max-width: 90ch; line-height: 2; text-wrap: pretty; }
.guide-links a { display: inline-block; margin-inline: var(--space-1); }
.intro-more { margin: var(--space-8) 0 0; color: var(--color-muted); font-size: var(--text-small); }
.intro-more a { color: var(--color-ink); }

/* ---- Hero: copy and the free check on the left, a decorative example-run window on the right ---- */
/* Atmosphere: one soft sky wash fading into the parchment, closed by a straight gold rule. Decorative only. */
main > .hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: var(--space-10) var(--space-12); align-items: center; padding-block: var(--space-12) var(--space-16); border-bottom: var(--border-trim) solid var(--color-trim); background: linear-gradient(180deg, var(--color-sky) 0%, var(--color-canvas) 75%); }
.hero-copy { display: grid; gap: var(--space-5); justify-items: start; min-width: 0; }
.hero-eyebrow { margin: 0; color: var(--color-signal); font: var(--weight-heading) var(--text-small)/1.4 var(--font-body); }
/* The vh cap keeps the free-check button inside the first screen on short laptops (1366 × 657 and up). */
.hero-title { margin: 0; font-size: clamp(2.5rem, min(1.75rem + 3.5vw, 10.5vh), 5rem); text-wrap: balance; }
.hero-lede { max-width: 40ch; margin: 0; color: var(--color-muted); font-size: 1.1875rem; line-height: 1.5; text-wrap: pretty; }
.hero-act { display: grid; gap: var(--space-3); width: 100%; min-width: 0; margin-top: var(--space-2); }

/* Free first-run form: the link field and its button share one pill row; consent and the optional goal follow. */
.free-run { display: grid; gap: var(--space-3); max-width: 36rem; }
.free-run-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-2); margin: 0; color: var(--color-ink); font-size: var(--text-caption); }
.free-run-head > :last-child { color: var(--color-signal); }
.link-go { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-2); }
.link-go input { min-height: var(--control-height-primary); padding-inline: var(--space-5); border-color: var(--color-border-strong); border-radius: var(--radius-button); background: var(--color-surface); }
.link-go > .primary-button { min-height: var(--control-height-primary); }
.free-goal .ds-field { padding-block: var(--space-2); }
.free-run .app-error { margin: 0; }
.free-run .app-error a { color: inherit; }
.free-run[data-state="sending"] .primary-button { opacity: var(--opacity-disabled); cursor: progress; }
.free-run-note { margin: 0; color: var(--color-muted); font-size: var(--text-small); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-4); }
.hero-actions > :is(.primary-button, .secondary-button) { min-height: var(--control-height-primary); padding-inline: var(--space-6); }
.hero-fine { flex-basis: 100%; }
.hero-actions[data-free] :is([data-account-required], [data-signup-cta]) { display: none; }

/* The example-run window: a step checklist beside a phone, with the failing step called out. Aria-hidden. */
.hero-visual { min-width: 0; }
.hero-window { position: relative; border: var(--border-width) solid var(--color-trim-deep); border-radius: var(--radius-panel); background: var(--color-surface); box-shadow: var(--shadow-window); }
.hero-window-bar { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-3) var(--space-4); border-bottom: var(--border-width) solid var(--color-border); font-size: var(--text-caption); }
.hero-window-dots { display: inline-flex; gap: 6px; }
.hero-window-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--color-danger); }
.hero-window-dots i:nth-child(2) { background: var(--color-warning); }
.hero-window-dots i:nth-child(3) { background: var(--color-success); }
.hero-window-url { flex: 1; min-width: 0; padding: var(--space-1) var(--space-3); border-radius: var(--radius-button); background: var(--color-raised); color: var(--color-muted); font-family: var(--font-code); }
.hero-window-tag { color: var(--color-muted); font-family: var(--font-code); white-space: nowrap; }
.hero-window-body { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-6); align-items: center; padding: var(--space-6); }
.hero-steps { position: relative; display: grid; gap: var(--space-5); margin: 0; padding: 0; list-style: none; }
.hero-steps::before { content: ""; position: absolute; left: 13px; top: 14px; bottom: 14px; width: 2px; background: var(--color-success-border); }
.hero-steps li { position: relative; display: grid; grid-template-columns: 28px minmax(0, 1fr); column-gap: var(--space-3); align-items: center; }
.hero-steps li::before { content: "✓"; grid-row: span 2; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--color-success); color: var(--color-on-action); font: 800 var(--text-small)/1 var(--font-body); }
.hero-steps li[data-tone="danger"]::before { content: "×"; background: var(--color-danger); font-size: 1.1rem; }
.hero-steps b { color: var(--color-ink); font-size: var(--text-body); }
.hero-steps span { color: var(--color-muted); font: var(--text-caption)/1.3 var(--font-code); }
.hero-phone { justify-self: center; width: min(100%, 13rem); padding: 8px; border: 2px solid var(--color-border-strong); border-radius: 28px; background: var(--color-night); }
.hero-phone-screen { display: grid; gap: var(--space-2); padding: var(--space-4) var(--space-3); border-radius: 20px; background: var(--color-ink); color: var(--color-canvas); }
.hero-phone-screen p { margin: 0; }
.hero-phone-url { justify-self: center; padding: 2px var(--space-3); border-radius: var(--radius-button); background: var(--color-dim); font: var(--text-caption)/1.3 var(--font-code); }
.hero-phone-title { margin-block: var(--space-2) var(--space-1); font-weight: var(--weight-heading); }
.hero-phone-field { padding: var(--space-2) var(--space-3); border: var(--border-width) solid var(--color-dim); border-radius: var(--radius-control); color: var(--color-on-night-muted); font-size: var(--text-caption); }
.hero-phone-button { padding: var(--space-2); border-radius: var(--radius-control); background: var(--color-brand-strong); color: var(--color-on-night); font-size: var(--text-small); font-weight: var(--weight-label); text-align: center; }
.hero-finding { position: absolute; right: calc(-1 * var(--space-4)); bottom: var(--space-12); display: grid; gap: 2px; max-width: 13rem; margin: 0; padding: var(--space-3) var(--space-4); border: var(--border-width) solid var(--color-danger); border-radius: var(--radius-soft); background: var(--color-fail); color: var(--color-ink); font-weight: var(--weight-label); line-height: 1.3; box-shadow: var(--shadow-sheet); }
.hero-finding b { color: var(--color-danger); font: 700 var(--text-caption)/1.3 var(--font-code); letter-spacing: var(--tracking-label); text-transform: uppercase; }

/* ---- What a run covers: a plain two-column list, no cards or icons (founder feedback 2026-11-16) ---- */
.feature-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--space-10); margin: 0; padding: 0; list-style: none; }
.feature-list > li { display: grid; align-content: start; gap: var(--space-2); min-width: 0; padding: var(--space-5) 0; border-top: var(--border-width) solid var(--color-border); }
.feature-list h3 { margin: 0; font: var(--weight-heading) var(--text-section)/1.3 var(--font-body); }
.feature-list p { margin: 0; max-width: 60ch; color: var(--color-muted); }
.feature-list a { color: var(--color-signal); }

/* ---- Fixed? Prove it.: Rev A / Rev B on the example run, in a trimmed band ---- */
.run-band { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.3fr); gap: var(--space-8) var(--space-12); align-items: center; padding: var(--space-10); border: var(--border-width) solid var(--color-trim); border-radius: var(--radius-panel); background: var(--color-surface); box-shadow: var(--shadow-panel); }
.run-lead { display: grid; gap: var(--space-5); justify-items: start; }
.hero-rev { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-4); }
.hero-rev-state { margin: 0; color: var(--color-muted); font-size: var(--text-caption); }
.run-sheet { min-width: 0; padding: var(--space-5) var(--space-6); border: var(--border-width) solid var(--color-border); border-radius: var(--radius-panel); background: var(--color-canvas); }
.run-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--space-2) var(--space-6); padding-bottom: var(--space-3); }
.run-total { margin: 0; font: var(--weight-display) var(--text-section)/1.2 var(--font-display); }
.run-count { color: var(--color-danger); }
.is-fixed .run-count { color: var(--color-success); }
.run-meta { display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-4); margin: 0; color: var(--color-muted); font-size: var(--text-caption); font-weight: 400; }
.run-meta b { color: var(--color-ink); }
.run-rows { margin: 0; padding: 0; list-style: none; }
.run-rows > li { display: grid; grid-template-columns: 2.5rem minmax(0, 1fr) auto; gap: var(--space-1) var(--space-4); align-items: center; padding: var(--space-3) 0; border-top: var(--border-width) solid var(--color-border); }
.run-n, .run-word { font: var(--weight-display) clamp(1.125rem, 1rem + .6vw, 1.5rem)/1.15 var(--font-display); letter-spacing: -.02em; }
.run-n { color: var(--color-muted); font-family: var(--font-code); font-size: var(--text-small); }
.run-word .ds-struck { color: var(--color-muted); }
.run-word { min-width: 0; overflow-wrap: anywhere; }
.run-minor .run-word { color: var(--color-muted); font-size: var(--text-reading); }
.run-rows .ds-status { justify-self: start; white-space: nowrap; }
.run-cap { grid-column: 2 / -1; display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-4); margin: 0; color: var(--color-muted); font-size: var(--text-small); }
.run-cap b { color: var(--color-ink); }
/* .run-pale (the made-up site's button colours) lives in hero-stage.css with the rest of the specimen palette. */
.run-drift { letter-spacing: .06em; }
.is-fixed .run-drift { letter-spacing: 0; }

/* ---- How a test works: three numbered cards ---- */
.process-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); margin: 0; padding: 0; list-style: none; }
.process-steps li { display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-6); border: var(--border-width) solid var(--color-border); border-radius: var(--radius-panel); background: var(--color-surface); }
.process-steps p { margin: 0; }
.process-steps li > .ds-label { color: var(--color-muted); font-size: var(--text-caption); }
.process-out { align-self: start; padding: var(--space-1) var(--space-3); border-radius: var(--radius-button); background: var(--color-raised); font: 600 var(--text-small)/1.4 var(--font-code); }
.process-out em { font-style: normal; color: var(--color-danger); }
.process-steps h3 { margin: 0; font: var(--weight-display) var(--text-note)/1.15 var(--font-display); letter-spacing: -.02em; }
.process-steps li > p:last-child { color: var(--color-muted); }

/* ---- AI claims. The browser checks. ---- */
.claims { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.6fr); gap: var(--space-8) var(--space-16); align-items: start; }
.claims-lead { display: grid; gap: var(--space-4); }
.claims-lead .block-title { max-width: 12ch; }
.claims-body { display: grid; gap: var(--space-8); min-width: 0; }
.claims-body > * { min-width: 0; }
.proof-table, .compare-table { font-size: var(--text-body); }
.proof-table th, .compare-table thead th { font: 700 var(--text-caption)/1.4 var(--font-code); letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--color-muted); }
.proof-table td { vertical-align: middle; font-size: var(--text-reading); }
.proof-table .proof-measure { font: 700 var(--text-body) var(--font-code); white-space: nowrap; }
.proof-table .proof-word { font: var(--weight-display) var(--text-note)/1 var(--font-display); }
.compare-table :is(th, td) { vertical-align: top; }
.compare-table td { color: var(--color-muted); }
.compare-table thead th:first-child { white-space: nowrap; }
.compare-table tbody th { min-width: 7.5rem; overflow-wrap: normal; }
.table-hint { display: none; }
/* Marker on Sybqa's own inspection column only; never on the Lovable comparison's competitor column (R5-BR-08). */
.evidence-limits .compare-table thead th:nth-child(2) { color: var(--color-highlight); }
.hero-legend { display: grid; gap: var(--space-4); }
.hero-legend h3 { margin: 0; color: var(--color-muted); }
.legend-stamps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-4); margin: 0; padding: 0; list-style: none; }
.legend-stamps > li { display: flex; flex-direction: column; gap: var(--space-2); min-width: 0; padding: var(--space-4); border: var(--border-width) solid var(--color-border); border-radius: var(--radius-soft); background: var(--color-surface); color: var(--color-muted); }
.legend-word { align-self: start; color: var(--color-ink); font: var(--weight-display) clamp(1.375rem, 2vw, 1.875rem)/1 var(--font-display); }
.legend-word.ds-cut { color: var(--color-danger); }
[data-legend="success"] .legend-word { color: var(--color-success); }
[data-legend="review"] .legend-word.ds-hollow { -webkit-text-stroke-color: var(--color-review); }
.claims-note { margin: 0; color: var(--color-muted); font-weight: 400; font-size: var(--text-caption); }
.evidence-limits { margin: 0; }
.claims-body > .plans-more { margin: 0; }

/* ---- Recorded evidence: a raised card on a deeper band ---- */
main > .proof-band { background: var(--color-night); color: var(--color-on-night); }
.proof-band :is(.section-kicker, .block-intro) { color: var(--color-on-night-muted); }
.proof-band .section-kicker { color: var(--color-action-reverse); }
.proof-band .block-title { color: var(--color-on-night); }
.evidence-card { display: grid; grid-template-columns: minmax(0, 1fr); overflow: hidden; background: var(--color-surface); color: var(--color-ink); border: var(--border-width) solid var(--color-border); border-radius: var(--radius-panel); }
.evidence-head { padding: var(--space-6) var(--space-8); border-bottom: var(--border-width) solid var(--color-border); }
.evidence-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-2); margin: 0 0 var(--space-4); color: var(--color-muted); font-weight: 400; font-size: var(--text-caption); }
.evidence-title { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-5); }
.evidence-title h3 { margin: 0; font: var(--weight-display) clamp(1.5rem, 1.1rem + 1.4vw, 2.25rem)/1.1 var(--font-display); letter-spacing: -.025em; }
.evidence-summary { max-width: 62ch; margin: var(--space-3) 0 0; color: var(--color-muted); font-size: var(--text-reading); }
.evidence-shots { display: grid; align-content: start; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); width: 100%; max-width: 52rem; margin-inline: auto; padding: var(--space-6); }
.evidence-shots figure { min-width: 0; margin: 0; }
.evidence-shots figcaption { display: flex; flex-wrap: wrap; gap: 0 var(--space-2); margin-bottom: var(--space-2); color: var(--color-muted); font: var(--text-small)/1.3 var(--font-code); }
.evidence-shots figcaption b { color: var(--color-ink); font-weight: 700; }
.evidence-shots a { display: block; overflow: hidden; border: var(--border-width) solid var(--color-border-strong); border-radius: var(--radius-soft); background: var(--color-canvas); }
.evidence-shots figure:first-child a { border-color: var(--color-danger); }
.evidence-shots img { display: block; width: 100%; height: auto; aspect-ratio: 390 / 470; object-fit: cover; object-position: top; }
.evidence-shots a:hover { outline: var(--border-width) solid var(--color-signal); outline-offset: 2px; }
.evidence-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: start; align-items: start; gap: var(--space-5); padding: var(--space-8); border-top: var(--border-width) solid var(--color-border); }
.evidence-details > .ds-disclosure { margin: 0; }
.report-steps ol { display: grid; gap: var(--space-3); margin: var(--space-3) 0 0; padding: 0; list-style: none; counter-reset: report-step; }
.report-steps li { display: grid; grid-template-columns: 1.75rem minmax(0, 1fr); gap: var(--space-1) var(--space-3); align-items: start; counter-increment: report-step; }
.report-steps li::before { content: counter(report-step); grid-row: span 2; display: grid; place-items: center; width: 1.75rem; height: 1.75rem; border-radius: 50%; background: var(--color-raised); color: var(--color-signal); font: 700 var(--text-small)/1 var(--font-code); }
.report-steps span { color: var(--color-muted); font-size: var(--text-small); }
.report-recording .ds-recording { width: 100%; margin-top: var(--space-3); border-radius: var(--radius-soft); }
.evidence-facts { display: grid; grid-column: 1 / -1; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-3); margin: 0; }
.evidence-facts > div { padding: var(--space-3) var(--space-4); border: var(--border-width) solid var(--color-border); border-radius: var(--radius-soft); background: var(--color-canvas); }
.evidence-facts dt { font: 700 var(--text-caption)/1.5 var(--font-code); letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--color-muted); }
.evidence-facts dd { margin: var(--space-2) 0 0; color: var(--color-ink); font-size: var(--text-small); }
.evidence-details > .text-button { justify-self: start; }

/* ---- The scripted example (illustrative, below the recorded evidence) ---- */
.hero-showcase { width: min(960px, 100%); margin-inline: auto; }

/* ---- Integrations: names only, in rounded tiles ---- */
.integrations-title { margin-inline: auto; max-width: none; text-align: center; font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2.25rem); }
.integration-row { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-2) var(--space-6); margin: var(--space-6) 0 0; padding: 0; list-style: none; color: var(--color-ink); font-weight: var(--weight-heading); }
.integration-row > li { display: flex; align-items: center; min-width: 0; min-height: var(--control-height); }
.integration-row a { color: var(--color-signal); }
.integrations-note { text-align: center; }

/* ---- Pricing: the shared plan sheet (as on /pricing). Numbers come from /api/public/plans. ---- */
#pricing .ds-plan-amount { font-size: clamp(3rem, 6vw, 5rem); }

/* ---- Questions ---- */
.faq-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: var(--space-6) var(--space-12); align-items: start; }
#faq .faq-layout > h2 { max-width: 8ch; }
.faq-cta { grid-column: 2; margin: var(--space-4) 0 0; }
.faq-list summary { font-size: var(--text-reading); }

/* ---- Closing: the slogan and a second link field (the shared site-link form) on the plain parchment ---- */
main > .closing { padding-block: var(--space-20); border-top: var(--border-trim) solid var(--color-trim); text-align: center; }
.closing-inner { display: grid; justify-items: center; gap: var(--space-6); }
.closing-title { max-width: 24ch; margin: 0; font-size: clamp(1.75rem, 1.1rem + 2vw, 3rem); text-wrap: balance; }
.closing-form { width: min(40rem, 100%); text-align: start; }
.closing-form label { color: var(--color-ink); }
.closing-form .ds-field-help { color: var(--color-muted); }
.closing-form .ds-field-error { color: var(--color-danger); }

/* ---- Footer on night: brand and tagline, link columns, then the product updates form ---- */
.landing-footer { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-10) var(--space-12); align-items: start; margin-top: 0; }
.footer-tagline { margin: 0; color: var(--color-on-night); font: var(--weight-display) var(--text-section)/1.3 var(--font-display); letter-spacing: -.01em; }
.landing-footer .subscribe, .landing-footer .guide-footer-note { grid-column: 1 / -1; }
.subscribe { display: grid; gap: var(--space-3); max-width: 40rem; padding-top: var(--space-6); border-top: var(--border-width) solid var(--color-night-line); }
.subscribe-help, .subscribe-status { margin: 0; font-size: var(--text-small); }
/* An inline link in running text, not a 44px footer row: the footer link sizing would open a gap between lines. */
.landing-footer .subscribe-help a { display: inline; min-height: 0; color: var(--color-on-night); text-decoration: underline; }
.subscribe-row { display: flex; flex-wrap: wrap; align-items: end; gap: var(--space-3); }
.subscribe .ds-field { flex: 1 1 16rem; width: auto; }
.subscribe .ds-field label { color: var(--color-on-night); font-weight: var(--weight-label); }
.subscribe-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.subscribe-status { min-height: 1.5em; color: var(--color-on-night); }
.subscribe-status[data-state="error"] { color: var(--color-danger); }
.subscribe h2 { margin: 0; color: var(--color-on-night); font-size: var(--text-note); }

/* ---- Live self-check: landing.js measures this page and stamps the results ---- */
.self-check { position: fixed; right: var(--space-4); bottom: var(--space-4); z-index: var(--z-overlay); display: flex; flex-direction: column; width: min(440px, calc(100vw - 2 * var(--space-4))); height: min(610px, calc(100dvh - 110px)); padding: var(--space-5); background: var(--color-surface); border: var(--border-width) solid var(--color-border-strong); border-radius: var(--radius-panel); box-shadow: var(--shadow-sheet); }
.self-check-head { display: flex; justify-content: space-between; align-items: center; gap: var(--space-3); }
.self-check-kicker { display: inline-flex; align-items: center; gap: var(--space-2); margin: 0; font: var(--weight-label) var(--text-caption)/1 var(--font-code); letter-spacing: .06em; text-transform: uppercase; }
.self-check-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--color-signal); }
.self-check[data-state="running"] .self-check-dot { animation: pulse 1s ease-in-out infinite; }
.self-check[data-state="done"] .self-check-dot { background: var(--color-success); }
@keyframes pulse { 50% { opacity: .25; } }
.self-check[hidden] { display: none; }
.self-check h2 { margin: var(--space-3) 0 var(--space-1); font-size: 1.5rem; }
.self-check-intro { margin: 0 0 var(--space-3); color: var(--color-muted); font-size: var(--text-small); }
.self-check-list { flex: 1; min-height: 0; overflow: auto; margin: 0; padding: 0; list-style: none; scroll-behavior: smooth; border-top: var(--border-width) solid var(--color-border); }
.self-check-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: var(--space-3); min-height: 35px; padding-block: 2px; border-bottom: var(--border-width) solid var(--color-border); }
.self-check-name { grid-column: 1 / -1; overflow-wrap: anywhere; font-size: var(--text-small); font-weight: var(--weight-label); }
.self-check-name small { color: var(--color-review); font: 500 var(--text-caption) var(--font-code); }
.self-check-value { grid-column: 1; max-width: none; overflow-wrap: anywhere; color: var(--color-muted); font: var(--text-caption)/1.3 var(--font-code); white-space: normal; }
.self-check-row[data-state="running"] .self-check-value::after { content: ""; display: inline-block; width: .5em; height: .5em; margin-left: .4em; border-radius: 50%; background: var(--color-signal); animation: pulse .6s ease-in-out infinite; }
.self-check-row .ds-stamp { grid-column: 2; justify-self: center; padding: 2px var(--space-2); font-size: var(--text-caption); animation: stamp-in .35s cubic-bezier(.3, 1.4, .5, 1) both; }
.self-check-summary { min-height: 2.8em; margin: var(--space-3) 0 0; font-weight: var(--weight-label); line-height: 1.4; }
.self-check-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-2); }
.self-check-actions.is-pending { visibility: hidden; }
.self-check-row[data-state="queued"] { color: var(--color-muted); }
.self-check-head, .self-check-intro, .self-check-summary, .self-check-actions { flex-shrink: 0; }
.inspect-layer { position: absolute; inset: 0; z-index: 15; overflow: hidden; pointer-events: none; }
.inspect-box { position: absolute; top: 0; left: 0; opacity: 0; border: var(--border-width) dashed var(--color-signal); border-radius: var(--radius-control); transition: transform var(--motion-normal) var(--ease-out), opacity var(--motion-normal) var(--ease-out); }
.inspect-layer.is-visible .inspect-box { opacity: 1; }
.inspect-tag { position: absolute; left: -3px; bottom: calc(100% + var(--space-3)); display: grid; gap: 2px; margin: 0; padding: var(--space-1) var(--space-3); background: var(--color-raised); border: var(--border-width) solid var(--color-border-strong); border-radius: var(--radius-control); font: var(--text-caption)/1.3 var(--font-code); white-space: nowrap; }
.inspect-tag b { font: var(--weight-display) var(--text-small)/1.1 var(--font-display); }

/* ---- Motion: Rev A/B colour changes ease; never under reduced motion. ---- */
@media (prefers-reduced-motion: no-preference) {
  .run-count, .run-n, .run-pale { transition: color .45s var(--ease-standard); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .inspect-box { transition: none; }
  .self-check-dot, .self-check-row .ds-stamp, .self-check-row .self-check-value::after { animation: none; }
}

/* ---- Widths ---- */
@media (max-width: 1100px) {
  .evidence-details { grid-template-columns: minmax(0, 1fr); }
  .evidence-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .run-band { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 1024px) {
  .landing { --gutter: var(--space-5); }
}
@media (max-width: 960px) {
  main > .hero { grid-template-columns: minmax(0, 1fr); padding-block: var(--space-10) var(--space-20); }
  .hero-visual { max-width: 40rem; }
  .claims { grid-template-columns: minmax(0, 1fr); }
  .claims-lead .block-title { max-width: 16ch; }
}
@media (max-width: 820px) {
  main > section { padding-block: var(--space-12); }
  .process-steps { grid-template-columns: minmax(0, 1fr); }
  .legend-stamps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .run-band { padding: var(--space-5); }
  .run-sheet { padding: var(--space-4); }
  .run-rows > li { grid-template-columns: 2rem minmax(0, 1fr); }
  .run-rows .ds-status { grid-column: 2; }
  .run-cap { grid-column: 1 / -1; }
  .faq-layout, .landing-footer { grid-template-columns: minmax(0, 1fr); }
  .faq-cta { grid-column: 1; }
  .proof-table, .compare-table { min-width: 560px; }
  .table-hint { display: block; margin: 0 0 var(--space-2); color: var(--color-muted); font-size: var(--text-caption); }
  .evidence-head { padding: var(--space-5) var(--space-4); }
  .evidence-shots, .evidence-details { padding: var(--space-4); gap: var(--space-3); }
}
@media (max-width: 640px) {
  .landing { --gutter: var(--space-4); }
  .feature-list { grid-template-columns: minmax(0, 1fr); }
  .hero-window-tag { display: none; }
  .hero-window-body { grid-template-columns: minmax(0, 1fr); padding: var(--space-5); }
  .hero-phone { display: none; }
  .hero-finding { position: static; max-width: none; box-shadow: none; }
}
@media (max-width: 480px) {
  .link-go { grid-template-columns: minmax(0, 1fr); }
  .link-go > .primary-button { justify-self: start; }
  .evidence-facts { grid-template-columns: minmax(0, 1fr); }
  .evidence-shots { grid-template-columns: minmax(0, 1fr); gap: var(--space-6); }
  #lovable-comparison .ds-table-region { border: var(--border-width) solid var(--color-border); border-radius: var(--radius-soft); }
}
@media (max-width: 700px) {
  .compare-table.ds-table--stacked { min-width: 0; }
  .compare-table.ds-table--stacked tbody th { min-width: 0; }
  .evidence-limits .table-hint, #lovable-comparison .table-hint { display: none; }
}

/* Homepage example run ("Theatre"): a scripted inspection of the made-up site Fernly, shown in a browser window.
   Page-specific. Shared pieces (window, QC tag, string, ring, inspect box, cursor, tape, run log, stamp) come from
   ui/bench.css and ui/components.css. Only this file may reference --specimen-* (the made-up customer palette).
   Pattern: every state has a static end state on a state class (.is-in entered live, .is-set entered by instant replay);
   entrance motion exists only for live mode with motion allowed. Transform, translate, rotate, scale and opacity only. */

/* The result legend now sits in the homepage claims section; landing.css owns its composition. */

/* Example run row 02 on the homepage: Fernly's button colours at their measured 1.5 : 1 contrast. Decorative, aria-hidden
   and inert; the row caption states the finding. Rev B (.is-fixed) mends it. */
.run-pale { display: inline-block; padding: .07em .2em .02em; background: var(--specimen-cta); color: var(--specimen-cta-text); }
.is-fixed .run-pale { color: var(--color-ink); }

/* ---- Stage frame ---- */
.stage { margin: 0; min-width: 0; }
.stage-window { background: var(--color-surface); }
.ds-window-url { flex: 1 1 0; height: 26px; padding-inline: 10px; display: flex; align-items: center; background: var(--color-canvas); border: 1.5px solid var(--color-border-strong); border-radius: var(--radius-control); font-weight: 500; }
.ds-window-nav > b { border-color: transparent; background: none; font: 700 18px/1 var(--font-body); }
.ds-window-nav > b[data-hover] { border-color: var(--color-ink); background: var(--color-canvas); }
.ds-window-nav > b[data-dim] { opacity: 1; color: var(--color-border-strong); }
.ds-window-note { flex: none; white-space: nowrap; }
.ds-window-note .note-short { display: none; }
.ds-window-load { opacity: 0; }
.ds-window-bar { height: 40px; }
.stage-view { position: relative; height: clamp(21rem, 52svh, 34rem); overflow: hidden; container-type: size; contain: layout paint style; background: var(--color-surface); border-radius: 0 0 6px 6px; }
.stage-cursor-layer { position: absolute; left: 0; right: 0; top: 0; bottom: 0; z-index: 6; overflow: hidden; border-radius: inherit; pointer-events: none; }
.stage-layer, .stage-scrim { position: absolute; inset: 0; pointer-events: none; }
.stage-scrim { background: var(--color-canvas); opacity: 0; }
.stage[data-state="done"] .stage-scrim { opacity: .5; }

/* ---- Fernly: a made-up customer site, authored at 1:1 and adapted by container query ---- */
.fl { position: absolute; inset: 0; display: flex; flex-direction: column; overflow: hidden; visibility: hidden; opacity: 0; color: var(--specimen-text); font: 15px/1.5 var(--font-specimen);
  background: radial-gradient(circle at 20% 10%, var(--specimen-glow-a), transparent 50%), radial-gradient(circle at 90% 80%, var(--specimen-glow-b), transparent 45%), linear-gradient(135deg, var(--specimen-sky-a), var(--specimen-sky-b) 60%, var(--specimen-sky-c)); }
.stage-view[data-page="home"] .fl-home, .stage-view[data-page="login"] .fl-404 { visibility: visible; opacity: 1; }
.fl-404 { background: var(--color-surface); color: var(--color-ink); }
.fl-emoji { display: inline-block; width: 1.4em; font-style: normal; text-align: center; }
.fl-nav { display: flex; flex: none; justify-content: space-between; align-items: center; height: 52px; padding-inline: 28px; }
.fl-logo { font-size: 19px; }
.fl-logo b { font-weight: 800; }
.fl-links { display: flex; gap: 20px; font-size: 13px; }
.fl-links > span { padding: 2px 0; opacity: .88; }
.fl-links > span[data-hover] { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.fl-404 .fl-links > span { opacity: 1; }
.fl-hero { flex: 1; min-height: 0; display: grid; grid-template-columns: 1.1fr 1fr; gap: 26px; align-items: center; padding: 6px 28px 18px; }
.fl-pill { display: inline-block; margin-bottom: 10px; padding: 4px 10px; border: 1px solid var(--specimen-glass-edge); border-radius: 999px; background: var(--specimen-pill); font-size: 11px; }
.fl-h1 { margin: 0 0 10px; font-size: clamp(26px, 4.7cqi, 40px); font-weight: 800; line-height: 1.06; letter-spacing: -.02em; }
.fl-p { margin: 0; max-width: 34ch; color: var(--specimen-muted); font-size: 14px; }
.fl-stats { display: flex; gap: 18px; margin-top: 14px; font-size: 12px; }
.fl-stats b { display: block; font-size: 19px; }
.fl-card { padding: 20px; border: 1px solid var(--specimen-glass-edge); border-radius: 20px; background: var(--specimen-glass); }
.fl-card-title { margin-bottom: 8px; font-size: 18px; font-weight: 700; }
.fl-label { width: fit-content; margin: 8px 0 4px; font-size: 12px; opacity: .85; }
.fl-field { position: relative; display: flex; align-items: center; height: 38px; padding-inline: 12px; overflow: hidden; border: 1px solid var(--specimen-glass-edge); border-radius: 12px; background: var(--specimen-field); font-size: 13px; white-space: nowrap; }
.fl-ph { color: var(--specimen-muted); opacity: .7; }
.fl-field.has-value .fl-ph { display: none; }
.fl-value { border-right: 1.5px solid transparent; }
.fl-field[data-focus] { border-color: var(--specimen-text); }
.fl-field[data-focus] .fl-value { border-right-color: var(--specimen-text); }
.fl-field[data-invalid] { border-color: var(--specimen-error-edge); }
.fl-error { min-height: 20px; margin-top: 3px; color: var(--specimen-error); font-size: 12px; font-weight: 600; opacity: 0; }
.fl-error[data-on] { opacity: 1; }
.fl-btn { position: relative; display: grid; place-items: center; height: 42px; margin-top: 8px; border-radius: 12px; background: var(--specimen-cta); color: var(--specimen-cta-text); font-size: 14px; font-weight: 700; }
.fl-spin { position: absolute; left: 14px; top: 50%; width: 16px; height: 16px; margin-top: -8px; border: 2.5px solid var(--specimen-cta-text); border-top-color: transparent; border-radius: 50%; opacity: 0; }
.fl-btn[data-busy] .fl-spin { opacity: 1; }
.fl-toast { position: absolute; left: 28px; bottom: 16px; padding: 10px 14px; border-radius: 14px; background: var(--specimen-toast); font-size: 12px; opacity: 0; }
.stage-view[data-toast] .fl-toast { opacity: 1; }
.fl-404-body { flex: 1; display: grid; place-content: center; justify-items: center; gap: 6px; text-align: center; }
.fl-404-body b { font-size: clamp(44px, 12cqi, 84px); font-weight: 800; line-height: 1; }
.fl-404-body span { font-size: 14px; }
@container (max-width: 560px) {
  .fl-nav { height: 44px; padding-inline: 16px; }
  .fl-links > span:not(:last-child) { display: none; }
  .fl-hero { grid-template-columns: 1fr; align-content: start; gap: 8px; padding: 0 16px 12px; }
  .fl-p, .fl-stats { display: none; }
  .fl-pill { margin-bottom: 6px; }
  .fl-h1 { margin: 0; font-size: 22px; }
  .fl-card { padding: 12px 14px; border-radius: 16px; }
  .fl-card-title { margin-bottom: 0; font-size: 15px; }
  .fl-label { margin: 4px 0 3px; font-size: 11px; }
  .fl-field { height: 34px; }
  .fl-error { min-height: 16px; margin-top: 1px; font-size: 11px; }
  .fl-btn { height: 38px; margin-top: 4px; }
  .fl-toast { display: none; }
}
@container (max-height: 430px) and (min-width: 561px) { .fl-p, .fl-stats { display: none; } }

/* ---- Overlays: tags, strings, rings, inspect box, cursor (end states; entrance motion is gated below) ---- */
.stage .ds-qc-tag { z-index: 3; width: clamp(9.5rem, 27cqi, 14rem); padding: 8px 12px 14px 30px; gap: 2px; font: 12px/1.3 var(--font-body); transform-origin: 14px 50%; visibility: hidden; opacity: 0; transition: opacity var(--motion-normal); }
.stage .ds-qc-tag.is-in, .stage .ds-qc-tag.is-set { visibility: visible; opacity: 1; }
.stage .ds-qc-tag::before { left: 9px; width: 10px; height: 10px; margin-top: -5px; }
.stage .ds-qc-tag-kind { font-size: 11px; }
.stage .ds-qc-tag-claim { font-size: 13px; line-height: 1.25; }
.stage .ds-qc-tag-claim--ai { font-size: 15px; line-height: 1.2; }
.stage .ds-qc-tag-value { display: grid; font-size: var(--text-small); line-height: 1.3; }
.stage .ds-qc-tag-value > * { grid-area: 1 / 1; }
.stage .ds-qc-tag[data-state="measuring"] .ds-qc-tag-value::after, .stage .ds-qc-tag[data-state="done"] .ds-qc-tag-value::after { content: none; }
.stage .ds-qc-tag[data-state="measuring"] .v-done, .stage .ds-qc-tag[data-state="done"] .v-wait { visibility: hidden; }
.stage .ds-qc-tag[data-state="measuring"] .v-wait::after { content: ""; display: inline-block; width: .5em; height: .5em; margin-left: .4em; border: var(--border-width) solid var(--color-border-strong); border-radius: 50%; background: var(--color-signal); }
.stage .ds-qc-tag > .ds-stamp { position: absolute; right: -8px; bottom: -10px; margin: 0; padding: 2px 8px; border-width: 2.5px; font-size: 12px; rotate: -3deg; }
.stage-layer .ds-stamp:not(.is-in):not(.is-set) { opacity: 0; }
.stage .ds-qc-tag[data-verdict="dropped"] .ds-qc-tag-claim { text-decoration-thickness: 2px; }
.stage .ds-pass { position: absolute; left: 0; top: 0; z-index: 3; translate: var(--tx, 0px) var(--ty, 0px); background: var(--color-surface); border-width: 2.5px; font-size: 12px; }
.stage .ds-string { z-index: 2; translate: var(--sx, 0px) var(--sy, 0px); opacity: 0; }
.stage .ds-string.is-in, .stage .ds-string.is-set { opacity: 1; }
.stage .ds-ring { z-index: 2; stroke-width: 3.5; opacity: 0; }
.stage .ds-ring.is-in, .stage .ds-ring.is-set { opacity: 1; }
.stage .ds-inspect { z-index: 1; opacity: 0; transition: none; }
.stage .ds-inspect.is-in, .stage .ds-inspect.is-set { opacity: 1; }
.stage .ds-inspect-label { background: var(--color-ink); border-color: var(--color-ink); border-radius: 0; padding: 3px 7px; color: var(--color-on-night); font: 500 11px/1.2 var(--font-code); }
.stage .ds-inspect-label::before { content: none; }
.stage .ds-cursor { z-index: 5; opacity: 0; transition: opacity var(--motion-normal); }
.stage .ds-cursor.is-on { opacity: 1; }
.stage .ds-cursor > svg { display: block; width: 22px; height: 26px; }
.stage .ds-cursor-ring { left: -11px; top: -11px; width: 22px; height: 22px; }
.stage .ds-cursor-label { left: 16px; top: 22px; border-radius: 3px; }
.stage-say { display: flex; align-items: center; min-height: 3.2em; margin: var(--space-5) 0 0; font: 600 1.0625rem/1.35 var(--font-body); }
.stage-say::before { content: ""; flex: none; width: .65em; height: .65em; margin-right: .6em; border: var(--border-width) solid var(--color-border-strong); border-radius: 50%; background: var(--color-signal); }
@media (min-width: 701px) { .stage-say { min-height: 1.6em; } }

/* ---- Panel: transport, scoreboard, run log ---- */
.stage-panel { margin-top: var(--space-3); background: var(--color-surface); border: var(--border-width) solid var(--color-border); border-radius: var(--radius-panel); }
.stage-controls { display: flex; align-items: stretch; gap: var(--space-3); padding: var(--space-2) var(--space-3); visibility: hidden; }
.stage[data-ready] .stage-controls { visibility: visible; }
.stage[data-mode="static"] .stage-toggle { display: none; }
@media (prefers-reduced-motion: reduce) { .stage-toggle { display: none; } }
.stage-toggle { min-width: 7.5rem; padding: 0 var(--space-4); gap: var(--space-2); }
.stage-toggle-icon { width: 12px; height: 14px; background: linear-gradient(90deg, currentColor 0 36%, transparent 36% 64%, currentColor 64% 100%); }
.stage-toggle[data-state="paused"] .stage-toggle-icon, .stage-toggle[data-state="done"] .stage-toggle-icon { background: currentColor; clip-path: polygon(0 0, 100% 50%, 0 100%); }
.stage .ds-tape { flex: 1 1 0; min-width: 0; }
.stage .ds-tape > li > button { gap: .4em; justify-content: flex-start; padding-inline: var(--space-2); font-size: var(--text-caption); text-transform: uppercase; overflow: hidden; }
.stage .ds-tape > li > button:focus-visible { outline-offset: -3px; }
.stage .ds-tape-fill { --p: 0; transition: none; }
.stage .ds-tape > li.is-set .ds-tape-fill, .stage .ds-tape > li.is-in .ds-tape-fill { --p: 1; }
.stage-score { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-1) var(--space-5); padding: var(--space-2) var(--space-4); border-block: var(--border-width) solid var(--color-border); font: 500 var(--text-small)/1.4 var(--font-code); }
.stage-score b { font-weight: 800; }
.stage-score [data-score="danger"] b { color: var(--color-stamp); }
.stage-score [data-score="review"] b { color: var(--color-review); }
.stage-score [data-score="success"] b { color: var(--color-success); }
.stage-score [data-score="muted"] b { color: var(--color-muted); }
.stage-meta { display: inline-flex; gap: var(--space-3); margin-left: auto; white-space: nowrap; }
.stage-clock { color: var(--color-muted); font-variant-numeric: tabular-nums; }
.stage-clock b { color: var(--color-ink); }
.stage-step { display: none; min-width: 9ch; text-align: right; }
.stage .ds-runlog { display: grid; grid-template-rows: repeat(3, 1fr); height: 84px; padding: var(--space-1) var(--space-4); font-size: var(--text-small); line-height: 1; }
.stage .ds-runlog > li { height: auto; align-items: center; }
.stage .ds-runlog > li:not(:last-child) { color: var(--color-muted); }
.stage .ds-runlog time { color: var(--color-action); }
.stage .ds-runlog b { font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.stage .ds-runlog b[data-tone="danger"] { color: var(--color-stamp); }
.stage .ds-runlog b[data-tone="review"] { color: var(--color-review); }
.stage .ds-runlog b[data-tone="success"] { color: var(--color-success); }
.stage .ds-runlog b[data-tone="muted"] { color: var(--color-muted); }
.stage .ds-runlog span { overflow: hidden; text-overflow: ellipsis; }
/* Phones: let the summary line wrap instead of truncating mid-word. */
@media (max-width: 559px) {
  .stage .ds-runlog { grid-template-rows: repeat(3, auto); height: auto; min-height: 84px; }
  .stage .ds-runlog > li { white-space: normal; }
  .stage .ds-runlog span { line-height: 1.25; }
}
.stage-transcript { margin-top: var(--space-4); }
.stage-transcript ol { display: grid; gap: var(--space-2); max-width: 68ch; margin: var(--space-2) 0 0; padding-left: 0; list-style: none; color: var(--color-ink); }
.stage-transcript li { padding-left: var(--space-20); position: relative; }
.stage-transcript li > b:first-child { position: absolute; left: 0; top: 0; }
.stage figcaption { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 var(--space-4); margin-top: var(--space-3); color: var(--color-muted); font: italic var(--text-body)/1.4 var(--font-note); }
.stage-caption-actions { display: inline-flex; flex-wrap: wrap; gap: var(--space-4); font-style: normal; }
[data-done-cta] { visibility: hidden; }
.stage[data-state="done"] [data-done-cta] { visibility: visible; }

/* ---- Phones: compact tags, one chapter at a time, filed as a grid at the end ---- */
@container (max-width: 559px) {
  .stage .ds-qc-tag-kind { display: none; }
}
.stage[data-narrow] .ds-qc-tag { width: var(--cellw, 8rem); padding: 6px 8px 12px 24px; }
.stage[data-narrow] .ds-qc-tag::before { left: 6px; }
.stage[data-narrow] .ds-qc-tag-claim { font-size: 12px; }
.stage[data-narrow] .ds-qc-tag-claim--ai { font-size: 13px; }
.stage[data-narrow] .ds-qc-tag-value { font-size: var(--text-small); }
.stage[data-narrow][data-mode] :is(.ds-qc-tag, .ds-string, .ds-pass).is-shelved { opacity: 0; animation: none; }
.stage[data-narrow] { --stage-preview-height: clamp(24rem, 48svh, 26rem); }
.stage[data-narrow][data-state="done"] .stage-view { height: calc(var(--stage-preview-height) + var(--stage-filed-height)); }
.stage[data-narrow][data-state="done"] .fl { bottom: auto; height: var(--stage-preview-height); }
.stage[data-narrow][data-state="done"] .stage-scrim { opacity: 0; }
/* File the completed annotations below the specimen, keeping its form readable. */
.stage[data-narrow][data-state="done"] .ds-qc-tag { opacity: 1; visibility: visible; transform: translate(var(--gx, 0px), calc(var(--gy, 0px) + var(--stage-preview-height))); transition: transform var(--motion-normal), opacity var(--motion-normal); }
.stage[data-narrow][data-state="done"] .ds-string { opacity: 0; }
/* PASS belongs to the email field, rather than the filed signup failure. */
.stage[data-narrow][data-state="done"] .ds-pass { translate: var(--tx, 0px) var(--ty, 0px); transition: translate var(--motion-normal); }
@media (max-width: 700px) {
  .stage-view { height: clamp(24rem, 58svh, 30rem); }
  /* Room for the address: the dots and the forward arrow are decoration; Back stays because the run clicks it. */
  .stage-window .ds-window-bar { gap: var(--space-2); padding-inline: var(--space-2); }
  .stage-window .ds-window-dots, .stage-window .ds-window-nav > b:not([data-t]) { display: none; }
  .ds-window-url { padding-inline: 6px; }
  .ds-window-note .note-long { display: none; }
  .ds-window-note .note-short { display: inline; }
  .stage-controls { flex-wrap: wrap; }
  .stage-toggle { flex: 1 1 100%; }
  .stage .ds-tape { flex: 1 1 100%; }
  .stage .ds-tape { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stage .ds-tape > li > button span { display: inline; }
  .stage .ds-tape > li > button { justify-content: flex-start; flex-wrap: wrap; }
  .stage .ds-tape > li:last-child:nth-child(3n + 1) { grid-column: 1 / -1; }
  .stage .ds-tape > li:nth-child(n + 4) { border-top: var(--border-width) solid var(--color-border); }
  .stage .ds-tape > li:nth-child(3n + 1) { border-left: 0; }
  .stage-score { gap: var(--space-1) var(--space-3); font-size: var(--text-caption); }
  .stage-step { display: inline; color: var(--color-muted); }
  .stage-total { display: none; }
  .stage .ds-runlog { grid-template-rows: repeat(3, auto); height: auto; padding-block: var(--space-2); font-size: var(--text-small); line-height: 1.4; }
  .stage .ds-runlog > li { grid-template-columns: 2.4rem 4.2rem minmax(0, 1fr); align-items: start; white-space: normal; }
  .stage .ds-runlog span { display: block; overflow: visible; overflow-wrap: anywhere; }
  .stage figcaption { display: grid; }
}
@supports not (container-type: size) { .stage-view, .stage-panel { display: none; } }

/* ---- Motion: live mode only, motion allowed. Pause freezes it all through [data-paused] (components.css). ---- */
.ticker-track { animation-play-state: paused; }
html[data-hero-motion="on"] .ticker-track { animation-play-state: running; }
@media (prefers-reduced-motion: no-preference) {
  .stage[data-mode="live"] .ds-qc-tag.is-in { animation: ds-tag-drop .5s var(--ease-stamp) both; }
  .stage[data-mode="live"] .ds-cursor[data-travel="a"] { animation: ds-travel-a var(--dur, 900ms) var(--ease-glide) both; }
  .stage[data-mode="live"] .ds-cursor[data-travel="b"] { animation: ds-travel-b var(--dur, 900ms) var(--ease-glide) both; }
  .stage[data-mode="live"] .ds-inspect.is-in { animation: stage-pop .18s ease-out both; }
  .stage[data-mode="live"] .ds-window-load[data-go="a"] { animation: stage-load-a .8s ease-out both; }
  .stage[data-mode="live"] .ds-window-load[data-go="b"] { animation: stage-load-b .8s ease-out both; }
  .stage[data-mode="live"] .say-text[data-fresh] { animation: stage-say .25s ease-out both; }
  .stage[data-mode="live"] .ds-runlog > li.is-new > * { animation: ds-ledger-in .16s ease-out both; }
  .stage[data-mode="live"] .ds-tape > li[data-run="a"] .ds-tape-fill { animation: stage-fill-a var(--dur, 1s) linear var(--skip, 0s) both; }
  .stage[data-mode="live"] .ds-tape > li[data-run="b"] .ds-tape-fill { animation: stage-fill-b var(--dur, 1s) linear var(--skip, 0s) both; }
  .stage[data-mode="live"] .fl-btn[data-busy] .fl-spin { animation: stage-spin .8s linear infinite; }
  .stage[data-mode="live"] .ds-qc-tag[data-state="measuring"] .v-wait::after { animation: ds-pulse .6s ease-in-out infinite; }
  .stage[data-mode="live"] .stage-view .fl, .stage[data-mode="live"] .stage-view .fl-toast, .stage[data-mode="live"] .fl-error, .stage[data-mode="live"] .stage-scrim { transition: opacity .15s; }
  .stage[data-state="done"] .fl-btn[data-busy] .fl-spin, .stage[data-state="done"] .ds-qc-tag .v-wait::after, .stage[data-state="done"] .fl-field .fl-value { animation: none; }
}
/* Reduced motion: the shared rule shortens every transition to .01ms but keeps transition-property: all, so a
   stylesheet arriving late or a resize re-file starts one-frame transitions. Captured or measured in that frame,
   the example showed black specimen text (failing the contrast check) and tags without their text. No transitions
   at all inside the example run. */
@media (prefers-reduced-motion: reduce) { .stage, .stage *, .stage *::before, .stage *::after { transition: none !important; } }
@keyframes stage-pop { from { opacity: 0; scale: .94; } to { opacity: 1; scale: 1; } }
@keyframes stage-load-a { from { scale: 0 1; opacity: 1; } 70% { scale: .85 1; opacity: 1; } to { scale: 1 1; opacity: 0; } }
@keyframes stage-load-b { from { scale: 0 1; opacity: 1; } 70% { scale: .85 1; opacity: 1; } to { scale: 1 1; opacity: 0; } }
@keyframes stage-say { from { opacity: 0; translate: 0 4px; } to { opacity: 1; translate: 0 0; } }
@keyframes stage-fill-a { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes stage-fill-b { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes stage-spin { from { rotate: 0deg; } to { rotate: 360deg; } }

/* ---- Forced colors ---- */
@media (forced-colors: active) {
  .stage .ds-qc-tag, .stage .ds-stamp, .stage .ds-tape, .stage .ds-ring { border-color: CanvasText; }
  .stage .ds-qc-tag > .ds-stamp, .stage .ds-pass { border-width: 2px; }
  .stage .ds-tape-fill { background: Highlight; }
}

.sybqa-mascot { display: inline-block; position: relative; width: 88px; height: 88px; vertical-align: middle; }
.sybqa-mascot img { width: 100%; height: 100%; object-fit: contain; }
.sybqa-mascot-season { display: none; position: absolute; width: 18px; height: 18px; right: 0; bottom: 8px; background: var(--season-decoration); border: 2px solid var(--color-surface); }
[data-season="halloween"] .sybqa-mascot-season { display: block; border-radius: 50%; }
[data-season="thanksgiving"] .sybqa-mascot-season { display: block; border-radius: 0 70% 0 70%; }
[data-season="christmas"] .sybqa-mascot-season { display: block; clip-path: polygon(50% 0,100% 100%,0 100%); }
@media (forced-colors: active) { .sybqa-mascot-season { display: none; } }

.page-head .sybqa-mascot { width: 36px; height: 36px; }
.page-head .sybqa-mascot-season { width: 10px; height: 10px; bottom: 0; }


:root{--bundled-css:"/ui/tokens.css /ui/components.css /ui/bench.css /ui/site.css /landing.css /hero-stage.css /ui/seasonal-theme.css"}
