/* Modelcraft WebGPU lab. Same "ink & signal" tokens as the portfolio site
   (site-source/site.css): ink structure and code, white reading surfaces,
   yellow for primary actions, blue for focus. */
:root {
  --ink: #0b1220;
  --ink-2: #141d2f;
  --ink-3: #1d2840;
  --ink-line: #2a3650;
  --ink-text: #e8edf5;
  --ink-text-2: #b4bfd0;
  --canvas: #f4f6f9;
  --surface: #ffffff;
  --line: #e3e7ed;
  --line-strong: #cbd2dc;
  --text: #0b1220;
  --text-2: #475467;
  --text-3: #5d6b80;
  --signal: #f2c811;
  --signal-hover: #e3b900;
  --signal-ink: #1a1500;
  --accent: #2f5bea;
  --focus: #2f5bea;
  --focus-dark: #8fb0ff;
  --pass: #05603a;
  --pass-bg: #e3f5ec;
  --warn: #9a3a06;
  --warn-bg: #fdeee4;
  --sans: "Segoe UI Variable Text", "Segoe UI Variable", "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --display: "Segoe UI Variable Display", "Segoe UI Variable", "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --mono: "Cascadia Code", "SFMono-Regular", ui-monospace, Menlo, Consolas, monospace;
  --gutter: 40px;
  --radius: 14px;
  color-scheme: light;
  font-family: var(--sans);
  color: var(--text);
  background: var(--surface);
  line-height: 1.6;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--surface); }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
h1, h2, h3 { font-family: var(--display); margin: 0; text-wrap: balance; }
p { text-wrap: pretty; }
code { font-family: var(--mono); font-size: .9em; padding: 1px 5px; border-radius: 4px; background: #eef1f5; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.icon { width: 15px; height: 15px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Navigation (shared pattern with the landing page) */
.site-nav { position: sticky; top: 0; z-index: 20; background: rgb(11 18 32 / .94); backdrop-filter: saturate(140%) blur(10px); border-bottom: 1px solid var(--ink-line); color: var(--ink-text); }
.site-nav :focus-visible, .hero :focus-visible, footer :focus-visible { outline-color: var(--focus-dark); }
.nav-inner { display: flex; align-items: center; gap: 24px; max-width: 1360px; height: 64px; margin: 0 auto; padding: 0 var(--gutter); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-family: var(--display); font-size: 19px; font-weight: 650; letter-spacing: -.02em; text-decoration: none; }
.mark { width: 28px; height: 28px; display: block; }
.tag { padding: 2px 8px; border: 1px solid var(--ink-line); border-radius: 999px; color: var(--signal); font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .08em; }
.nav-links { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-links a { display: inline-flex; align-items: center; gap: 5px; padding: 8px 11px; border-radius: 8px; color: var(--ink-text-2); font-size: 14px; text-decoration: none; }
.nav-links a:hover { color: #fff; background: rgb(255 255 255 / .06); }
.nav-links a[aria-current="page"] { color: #fff; background: rgb(255 255 255 / .08); }
.nav-links .icon { width: 13px; height: 13px; }
.button.nav-cta { min-height: 36px; padding: 7px 14px; font-size: 13.5px; border-radius: 8px; }

/* Buttons */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 44px; padding: 10px 18px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface); color: var(--text); font-size: 14.5px; font-weight: 600; line-height: 1.3; text-decoration: none; transition: background-color .15s, border-color .15s; }
.button:hover:not(:disabled) { background: var(--canvas); border-color: #aab4c3; }
.button.primary { background: var(--signal); border-color: var(--signal); color: var(--signal-ink); }
.button.primary:hover:not(:disabled) { background: var(--signal-hover); border-color: var(--signal-hover); }
.button:disabled { opacity: 1; background: #eef1f5; border-color: var(--line); color: #8592a6; }
.button.ghost { background: transparent; border-color: rgb(255 255 255 / .24); color: #fff; }
.button.ghost:hover { background: rgb(255 255 255 / .08); border-color: rgb(255 255 255 / .42); }
.text-link { display: inline-flex; align-items: center; gap: 7px; color: var(--accent); font-size: 14.5px; font-weight: 600; text-decoration: none; }
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Layout */
main { display: block; }
.wrap { width: 100%; max-width: 1360px; margin: 0 auto; padding: 0 var(--gutter); }
.hero { position: relative; isolation: isolate; overflow: hidden; background: var(--ink); color: var(--ink-text); }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(rgb(255 255 255 / .12) 1px, transparent 1.3px); background-size: 24px 24px; -webkit-mask-image: radial-gradient(ellipse 80% 80% at 80% 0%, #000 15%, transparent 72%); mask-image: radial-gradient(ellipse 80% 80% at 80% 0%, #000 15%, transparent 72%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(320px, 1fr); gap: 64px; align-items: end; padding-top: 80px; padding-bottom: 80px; }
.eyebrow { margin: 0 0 16px; color: var(--text-3); font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.hero .eyebrow { color: var(--signal); }
.hero h1 { color: #fff; font-size: clamp(38px, 5vw, 64px); font-weight: 680; line-height: 1.05; letter-spacing: -.036em; }
.lede { max-width: 680px; margin: 22px 0 0; color: var(--text-2); font-size: 18px; line-height: 1.6; }
.hero .lede { color: var(--ink-text-2); }
.lede.small { font-size: 16px; max-width: 820px; margin-top: 0; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.spec { margin: 0; padding: 22px 24px; border: 1px solid var(--ink-line); border-radius: var(--radius); background: rgb(20 29 47 / .8); }
.spec-title { margin: 0 0 12px; color: #fff; font-size: 13px; font-weight: 600; }
.spec div { display: grid; grid-template-columns: 112px 1fr; gap: 12px; padding: 9px 0; border-top: 1px solid var(--ink-line); font-size: 13.5px; }
.spec dt { color: var(--ink-text-2); font-family: var(--mono); font-size: 11.5px; letter-spacing: .04em; text-transform: uppercase; padding-top: 2px; }
.spec dd { margin: 0; color: #fff; }
.section { padding: 88px 0; border-top: 1px solid var(--line); }
.section.tint { background: var(--canvas); }
.hero + .section { border-top: 0; }
.section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 24px; }
.section-heading .eyebrow { margin-bottom: 12px; }
h2 { font-size: clamp(28px, 3.2vw, 40px); font-weight: 660; line-height: 1.12; letter-spacing: -.03em; }
h3 { font-size: 18px; font-weight: 650; letter-spacing: -.01em; margin: 0 0 10px; }
.quiet { color: var(--text-3); font-size: 13.5px; line-height: 1.6; }
.recorded-label { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 6px; padding: 5px 11px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface); color: var(--text-2); font-family: var(--mono); font-size: 11.5px; letter-spacing: .03em; }
.recorded-label::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #8592a6; }
.local-label { display: inline-flex; align-items: center; gap: 8px; padding: 5px 11px; border: 1px solid #b7e2c9; border-radius: 999px; background: var(--pass-bg); color: var(--pass); font-family: var(--mono); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.local-label::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #12a05c; }
.scope { margin: 24px 0; padding: 18px 20px 18px 22px; border: 1px solid var(--line); border-left: 3px solid var(--text); border-radius: 0 10px 10px 0; background: var(--canvas); color: var(--text-2); font-size: 14.5px; line-height: 1.7; }
.scope strong { color: var(--text); font-weight: 650; }
.hero .scope { background: rgb(255 255 255 / .04); border-color: var(--ink-line); border-left-color: var(--signal); color: var(--ink-text-2); }
.hero .scope strong { color: #fff; }

/* Results at a glance */
.scores { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.score { display: flex; flex-direction: column; padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.score-key { border-color: var(--text); box-shadow: inset 0 3px 0 var(--signal); }
.score-label { margin: 0; color: var(--text-2); font-size: 14px; font-weight: 600; }
.score-value { margin: 12px 0 14px; color: var(--text); font-family: var(--display); font-size: 52px; font-weight: 650; line-height: 1; letter-spacing: -.04em; }
.score-value span { color: var(--text-3); font-size: 26px; font-weight: 550; letter-spacing: -.02em; }
.meter { height: 8px; border-radius: 4px; background: #e6e9ef; overflow: hidden; }
.meter span { display: block; width: calc(var(--value) * 100%); height: 100%; border-radius: 4px; background: var(--text); }
.meter-tuned span { background: repeating-linear-gradient(135deg, var(--text) 0 6px, #56637a 6px 9px); }
.score-note { margin: 14px 0 0; color: var(--text-2); font-size: 14px; line-height: 1.55; }
.score-note strong { color: var(--text); }
.score .text-link { margin-top: auto; padding-top: 16px; }
.result-callout { padding: 24px; border: 1px solid var(--ink-line); border-radius: var(--radius); background: rgb(20 29 47 / .8); }
.result-callout .score-label { color: var(--ink-text-2); }
.result-callout .score-value { color: #fff; }
.result-callout .score-value span { color: var(--ink-text-2); }
.result-callout .meter { background: #2a3650; }
.result-callout .meter span { background: var(--signal); }
.result-callout .score-note { color: var(--ink-text-2); }

/* Metrics computed by the lab scripts */
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 24px 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.metric { padding: 22px 24px; }
.metric + .metric { border-left: 1px solid var(--line); }
.metric strong { display: block; color: var(--text); font-family: var(--display); font-size: 36px; font-weight: 650; line-height: 1.05; letter-spacing: -.035em; }
.metric span { display: block; margin-top: 8px; color: var(--text-2); font-size: 13.5px; }
#live-summary:empty { display: none; }

/* Filters */
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 28px 0 18px; }
.filters { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 10px; background: #eef1f5; flex-wrap: wrap; }
.filters button { min-height: 34px; padding: 6px 14px; border: 1px solid transparent; border-radius: 7px; background: transparent; color: var(--text-2); font-size: 13.5px; font-weight: 600; }
.filters button:hover { color: var(--text); background: rgb(255 255 255 / .55); }
.filters button.active { border-color: #d5dbe4; background: var(--surface); color: var(--text); box-shadow: 0 1px 2px rgb(11 18 32 / .08); }
.filters button:focus-visible { outline-offset: -2px; }

/* Task evidence cards (rendered by app.mjs and holdout-app.mjs) */
.task-list { display: grid; gap: 18px; }
.task-card { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); grid-template-rows: repeat(10, auto) 1fr; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: 0 1px 2px rgb(11 18 32 / .04); }
.task-top { grid-column: 1 / -1; grid-row: 1; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 22px 6px; }
.task-top > h3 { margin: 0; font-size: 17px; }
.task-title { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; min-width: 0; }
.task-number { color: var(--text-3); font-family: var(--mono); font-size: 12px; }
.task-title h3 { margin: 0; font-size: 17px; letter-spacing: -.01em; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: .05em; white-space: nowrap; }
.badge.pass { background: var(--pass-bg); color: var(--pass); }
.badge.pass::before { content: "✓"; }
.badge.fail { background: var(--warn-bg); color: var(--warn); }
.badge.fail::before { content: "!"; font-weight: 800; }
.badge.pending { background: #e8eefc; color: #2448b8; }
.badge.pending::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: pulse 1s ease-in-out infinite alternate; }
@keyframes pulse { from { opacity: .35; } to { opacity: 1; } }
.task-metrics { grid-column: 1 / -1; grid-row: 2; display: flex; flex-wrap: wrap; gap: 6px 22px; padding: 0 22px 14px; color: var(--text-3); font-size: 13px; border-bottom: 1px solid var(--line); }
.task-metrics strong { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.processing-note { grid-column: 1 / -1; grid-row: 3; margin: 0; padding: 10px 22px; border-bottom: 1px solid var(--line); background: #fff8db; color: #5c4700; font-size: 13px; line-height: 1.6; }
pre { margin: 0; padding: 18px 22px; overflow: auto; background: var(--ink); color: #dfe6f1; font-family: var(--mono); font-size: 12.5px; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; tab-size: 2; }
/* The response panel fills column one and scrolls; the checks column sets the card height. */
.task-card > pre { grid-column: 1; grid-row: 3 / -1; min-height: 300px; contain: size; }
.task-card:has(> .processing-note) > pre { grid-row: 4 / -1; }
.task-card > details { grid-column: 2; min-width: 0; border-bottom: 1px solid var(--line); }
.task-card > details:last-child { border-bottom: 0; }
.task-card > h3 { padding: 18px 22px 12px; margin: 0; font-size: 16px; }
#task-list .task-card { display: block; }
#task-list .task-card > pre { min-height: 0; max-height: 360px; contain: none; }
details > summary { display: flex; align-items: center; gap: 10px; padding: 13px 20px; color: var(--text); font-size: 13.5px; font-weight: 600; line-height: 1.5; cursor: pointer; list-style: none; }
details > summary::-webkit-details-marker { display: none; }
details > summary::before { content: ""; flex-shrink: 0; width: 7px; height: 7px; margin: 0 2px; border-right: 1.8px solid var(--text-3); border-bottom: 1.8px solid var(--text-3); transform: rotate(-45deg); transition: transform .15s; }
details[open] > summary::before { transform: rotate(45deg); }
details > summary:hover { background: var(--canvas); }
details > summary:focus-visible { outline-offset: -2px; border-radius: 0; }
details pre { max-height: 320px; font-size: 12px; }
.checks { margin: 0; padding: 2px 20px 16px; list-style: none; }
.checks li { display: flex; align-items: baseline; gap: 10px; padding: 6px 0; font-size: 13.5px; line-height: 1.55; border-top: 1px dashed var(--line); }
.checks li:first-child { border-top: 0; }
.check-pass, .check-fail { flex-shrink: 0; display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; font-size: 11px; font-weight: 800; transform: translateY(2px); }
.check-pass { background: var(--pass-bg); color: var(--pass); }
.check-fail { background: var(--warn-bg); color: var(--warn); }
.check-detail { display: block; margin-top: 2px; color: var(--text-3); font-size: 12.5px; overflow-wrap: anywhere; }
.repair-audit .checks li, .raw-output .checks li { display: list-item; margin-left: 16px; list-style: disc; border-top: 0; color: var(--text-2); }
.raw-output .checks li { color: var(--warn); }
.prompt pre { font-size: 11.5px; }
.fatal { color: var(--warn); font-weight: 600; }
.section > .wrap > details { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.section > .wrap > details > summary { padding: 16px 22px; font-size: 15px; }
.section > .wrap > details > .task-list { padding: 4px 18px 18px; }

/* Live mode */
.live-box { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 40px; margin: 28px 0 20px; padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.live-box p { color: var(--text-2); font-size: 14.5px; line-height: 1.7; }
.live-box p.quiet { font-size: 13.5px; color: var(--text-3); }
.steps { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps > li { position: relative; display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 14px; padding: 0 0 22px; }
.steps > li:not(:last-child)::after { content: ""; position: absolute; left: 15px; top: 34px; bottom: 4px; width: 2px; background: var(--line); }
.step-num { display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid var(--line-strong); border-radius: 50%; background: var(--surface); color: var(--text); font-family: var(--mono); font-size: 13px; font-weight: 600; }
.steps strong { display: block; margin: 4px 0 2px; font-size: 15px; }
.steps p { margin: 0 0 10px; font-size: 13.5px !important; color: var(--text-3) !important; }
.steps .button { min-width: 220px; }
.file-label { display: block; padding: 14px 16px; border: 1.5px dashed var(--line-strong); border-radius: 10px; background: var(--canvas); color: var(--text); font-size: 14px; font-weight: 600; line-height: 1.5; cursor: pointer; }
.file-label:hover { border-color: #8f9bb0; }
.file-label:focus-within { border-color: var(--accent); }
.file-label input { display: block; width: 100%; margin-top: 10px; color: var(--text-2); font-size: 13px; font-weight: 400; }
.file-label input::file-selector-button { margin-right: 10px; padding: 7px 12px; border: 1px solid var(--line-strong); border-radius: 7px; background: var(--surface); color: var(--text); font: inherit; font-weight: 600; cursor: pointer; }
.file-label input:disabled { opacity: .55; }
.status { margin: 16px 0 0; padding: 12px 16px; border: 1px solid var(--line); border-left: 3px solid var(--text-3); border-radius: 0 10px 10px 0; background: var(--canvas); color: var(--text); font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; }
.status.error { border-left-color: var(--warn); background: var(--warn-bg); color: var(--warn); }
#gpu-state { margin: 8px 0 0; }
progress { width: 100%; height: 8px; margin-top: 12px; accent-color: var(--text); }
.run-controls { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; margin-top: 22px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--canvas); }
.run-controls label { display: flex; flex-direction: column; gap: 6px; margin-right: 6px; color: var(--text-2); font-size: 13px; font-weight: 600; }
select { min-width: 260px; max-width: 340px; min-height: 44px; padding: 9px 12px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface); color: var(--text); font-size: 14px; }
select:disabled { background: #eef1f5; color: #8592a6; }
.diagnostics { margin-top: 24px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.diagnostics pre { max-height: 260px; font-size: 11.5px; }

/* Closing + footer */
.next { padding: 88px 0; background: var(--ink); color: var(--ink-text); }
.next .eyebrow { color: var(--signal); }
.next h2 { color: #fff; }
.next p:not(.eyebrow) { max-width: 660px; margin: 18px 0 0; color: var(--ink-text-2); font-size: 16px; line-height: 1.7; }
.next .text-link { color: var(--signal); }
.next .next-links { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 22px; }
footer a { color: #fff; text-underline-offset: 3px; }
footer { border-top: 1px solid var(--ink-line); background: var(--ink); color: var(--ink-text-2); font-size: 13px; }
footer .wrap { display: flex; justify-content: space-between; gap: 20px; padding-top: 22px; padding-bottom: 22px; }
footer strong { color: #fff; font-weight: 600; }

/* Setup page */
.setup { max-width: 860px; padding-top: 64px; padding-bottom: 88px; }
.setup h1 { font-size: clamp(34px, 4vw, 46px); font-weight: 680; letter-spacing: -.035em; line-height: 1.1; }
.setup h2 { margin: 44px 0 14px; font-size: 24px; }
.setup p, .setup li { color: var(--text-2); font-size: 15.5px; line-height: 1.75; }
.setup pre { margin: 16px 0; border-radius: 10px; }
.setup a { color: var(--accent); font-weight: 600; }
.hash { padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--canvas); color: var(--text) !important; font-family: var(--mono); font-size: 13px !important; overflow-wrap: anywhere; }

/* Responsive */
@media (max-width: 1100px) {
  :root { --gutter: 28px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; align-items: start; }
  .scores { grid-template-columns: 1fr; }
  .live-box { grid-template-columns: 1fr; gap: 26px; }
}
@media (max-width: 900px) {
  .task-card { display: block; }
  .task-card > pre { min-height: 0; max-height: 360px; contain: none; }
  .task-top { padding: 16px 18px 6px; }
  .task-metrics { padding: 0 18px 12px; }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric:nth-child(3) { border-left: 0; }
  .metric:nth-child(n+3) { border-top: 1px solid var(--line); }
  .nav-links a:not(:last-child):not([aria-current="page"]) { display: none; }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  html { scroll-padding-top: 64px; }
  .nav-inner { height: 56px; gap: 10px; }
  .brand { font-size: 17px; gap: 8px; }
  .mark { width: 24px; height: 24px; }
  .tag { font-size: 10px; padding: 1px 6px; }
  .nav-links a { padding: 7px 8px; font-size: 13px; }
  .nav-links a[aria-current="page"] { display: none; }
  .nav-cta { display: none; }
  .hero-grid { padding-top: 48px; padding-bottom: 52px; }
  .hero h1 { font-size: 36px; }
  .lede { font-size: 16.5px; }
  .actions { flex-direction: column; align-items: stretch; }
  .spec { padding: 18px; }
  .spec div { grid-template-columns: 96px 1fr; }
  .section { padding: 60px 0; }
  .section-heading { flex-direction: column; align-items: flex-start; gap: 14px; }
  .score { padding: 22px; }
  .score-value { font-size: 46px; }
  .metric { padding: 16px; }
  .metric strong { font-size: 30px; }
  .scope { font-size: 14px; }
  .filters { display: grid; grid-template-columns: repeat(2, 1fr); width: 100%; }
  .task-top { align-items: flex-start; flex-direction: column; gap: 8px; }
  pre { padding: 16px; font-size: 12px; }
  details > summary { padding: 13px 16px; }
  .checks { padding: 2px 16px 14px; }
  .live-box { padding: 20px; }
  .steps .button { width: 100%; min-width: 0; }
  .run-controls { flex-direction: column; align-items: stretch; padding: 14px; }
  .run-controls label { margin-right: 0; }
  select { min-width: 0; max-width: none; width: 100%; }
  footer .wrap { flex-direction: column; gap: 6px; }
  .setup { padding-top: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media (forced-colors: active) {
  .filters button.active { outline: 2px solid Highlight; }
  .meter span { background: CanvasText; }
}
