/* =========================================================================
   Supervisor design system: "Run log"
   One object everywhere, the run card. Petrol canvas, paper cards.
   Cyan marks actions and what the agent did. Red is only the 3-second limit and failures.
   Used by the marketing site and the app alike.

   THE APP'S COPY. The source is the marketing site's supervisor.css (website-redesign/web/public/assets).
   Two things differ here: the base element rules are scoped to ".rl" (see "Base"), and the section
   "App shell" at the end is the app's own. Loaded only by the layouts in app/views_runlog.
   ========================================================================= */

/* ---------- Tokens: canvas context ---------- */
:root {
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px;
  --t-sm: 0.875rem; --t-base: 1rem; --t-md: 1.0625rem; --t-lg: 1.25rem; --t-xl: 1.5rem; --t-2xl: 2rem; --t-3xl: 2.5rem;
  --font: "Atkinson Hyperlegible Next", system-ui, sans-serif;
  --mono: "Atkinson Hyperlegible Mono", ui-monospace, Menlo, Consolas, monospace;
  --canvas: #10242E; --canvas-2: #173341; --canvas-deep: #0B1A22; --paper: #F4F6F3;
  --bg: var(--canvas); --bg-alt: var(--canvas-2); --surface: var(--paper);
  --ink: #EDF3F0; --muted: #A9BFC2; --line: #35525D; --card-line: #35525D;
  --primary: #7DE3D4; --primary-hover: #A8EFE4; --on-primary: #0C1A21;
  --accent: #7DE3D4; --on-accent: #0C1A21;
  --ok: #86E3AE; --warn: #F3CC7A; --bad: #FFA394; --focus: #7DE3D4;
  --field-bg: #F4F6F3; --field-ink: #0C1A21; --field-line: #7DE3D4;
  --mid: #9A6A00;
  --r: 8px; --bw: 1.5px;
  --chart-avg: #10242E; --chart-worst: #5F7C83; --chart-limit: #C13A2A; --chart-ok: #1C744A; --chart-grid: #D3DCD8;
}
/* Paper context: every card resets to dark ink on paper */
:where(.panel, .runcard, .stat, .codebox, .chart, .sheet-light) {
  --bg: #F4F6F3; --bg-alt: #E3E9E5; --ink: #0C1A21; --muted: #44565C; --line: #C3CFCA; --card-line: #B4C2BC;
  --primary: #10242E; --primary-hover: #1F4252; --on-primary: #F4F6F3; --accent: #10242E; --on-accent: #F4F6F3;
  --ok: #1C744A; --warn: #7A5200; --bad: #B5301F; --focus: #10242E;
  --field-bg: #FFFFFF; --field-ink: #0C1A21; --field-line: #44565C;
  color: var(--ink);
}
/* Deep context: docked chrome (transport bar, sheets) */
:where(.transport) {
  --bg: #0B1A22; --bg-alt: #173341; --ink: #EDF3F0; --muted: #A9BFC2; --line: #35525D; --card-line: #4A6B77;
  --primary: #7DE3D4; --primary-hover: #A8EFE4; --on-primary: #0C1A21; --focus: #7DE3D4;
  --field-bg: #F4F6F3; --field-ink: #0C1A21; --field-line: #7DE3D4;
  color: var(--ink);
}

/* ---------- Base ----------
   ":where(.rl) x" matches x inside the new shell only and weighs the same as a bare "x", so utility classes still win. */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 24px; }
body.rl-body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: var(--t-md); line-height: 1.55; text-wrap: pretty; -webkit-font-smoothing: antialiased; }
:where(.rl) :is(h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote) { margin: 0; }
:where(.rl) :is(ul, ol) { padding: 0; list-style: none; }
:where(.rl) :is(h1, h2, h3) { font-weight: 700; letter-spacing: -0.015em; line-height: 1.1; text-wrap: balance; text-align: start; }
:where(.rl) h1 { font-size: clamp(2.25rem, 4.4vw, 3.5rem); }
:where(.rl) h2 { font-size: clamp(1.75rem, 3vw, 2.25rem); }
:where(.rl) h3 { font-size: 1.375rem; line-height: 1.2; }
:where(.rl) h4 { font-weight: 700; }
:where(.rl) a { color: inherit; text-decoration-thickness: 1.5px; text-underline-offset: 0.18em; transition: color .2s ease, text-decoration-thickness .2s ease; }
:where(.rl) a:hover { text-decoration-thickness: 3px; }
:where(.rl) :is(code, kbd, pre) { font-family: var(--mono); font-size: 0.9em; }
:where(.rl) :is(svg, img) { display: inline; vertical-align: baseline; }
:where(.rl) :focus-visible, .skip:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: var(--s4); top: -100px; z-index: 100; padding: var(--s3) var(--s4); background: var(--paper); color: #0C1A21; }
.skip:focus { top: var(--s4); outline: 3px solid #0C1A21; outline-offset: 0; box-shadow: 0 0 0 6px var(--paper); }
.icon { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Layout ---------- */
.wrap { width: min(100% - 2 * var(--s5), 1200px); margin-inline: auto; }
.col { width: min(100% - 2 * var(--s5), 48rem); margin-inline: auto; }
.section { padding: var(--s9) 0; }
.section-alt { background: var(--bg-alt); }
.section-tight { padding: var(--s8) 0; }
.section-body { margin-top: var(--s7); }
.lede { max-width: 38em; font-size: var(--t-lg); color: var(--muted); }
h2 + .lede, h1 + .lede { margin-top: var(--s4); }
.stack { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s5); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s7); align-items: start; }
.split-wide { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: var(--s5); }
.cols-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s5); align-items: start; }
.mt-3 { margin-top: var(--s3); }
.mt-4 { margin-top: var(--s4); }
.mt-6 { margin-top: var(--s6); }
.mt-5 { margin-top: var(--s5); }
.prose > * + * { margin-top: var(--s4); }
.prose h2 { margin-top: var(--s7); }
.prose h3 { margin-top: var(--s6); }
.prose ul { display: grid; gap: var(--s2); padding-left: var(--s5); list-style: disc; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s2); min-height: 48px; min-width: 44px; padding: 0 var(--s5); font: inherit; font-weight: 600; line-height: 1.1; text-decoration: none; white-space: nowrap; border: var(--bw) solid transparent; border-radius: var(--r); cursor: pointer; transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease; }
.btn:active { transform: translateY(1px); }
.btn[disabled] { background: var(--muted); border-color: var(--muted); color: var(--bg); cursor: progress; transform: none; }
.btn-primary { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.btn-primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); }
.btn-secondary { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-secondary:hover { background: var(--ink); color: var(--bg); }
.btn-danger { background: #CC4030; border-color: #CC4030; color: #FFFFFF; }
.btn-danger:hover { background: #EDF3F0; border-color: #EDF3F0; color: #10242E; }
.btn-small { min-height: 44px; padding: 0 var(--s4); font-size: var(--t-base); }
.btn .icon { width: 1.25em; height: 1.25em; }
.actions { display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap; }
.text-link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }

/* ---------- Header: the same bar on the site and in the app ---------- */
.site-header { border-bottom: var(--bw) solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: var(--s3) var(--s5); min-height: 72px; flex-wrap: wrap; }
.logo { display: inline-flex; align-items: center; gap: var(--s2); min-height: 44px; font-size: 1.375rem; font-weight: 800; letter-spacing: -0.03em; text-decoration: none; }
.logo-mark { width: 9px; height: 22px; flex: none; border-radius: 2px; background: var(--accent); }
.header-menu { display: contents; }
.nav-toggle { display: none; margin-left: auto; }
.site-nav { margin-right: auto; }
.site-nav ul { display: flex; flex-wrap: wrap; gap: var(--s1) var(--s5); }
.site-nav a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; font-weight: 500; text-decoration: none; border-bottom: 3px solid transparent; }
.site-nav a:hover { border-bottom-color: currentColor; }
.site-nav a[aria-current="page"] { border-bottom-color: var(--accent); font-weight: 700; }
.header-actions { display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap; }
.lang { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--s2); font-weight: 500; }
.credits { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; font-variant-numeric: tabular-nums; text-decoration: none; }
.credits:hover { text-decoration: underline; }
.org { display: inline-flex; align-items: center; gap: var(--s2); min-height: 44px; padding: 0 var(--s3); font: inherit; font-weight: 600; color: inherit; background: transparent; border: var(--bw) solid currentColor; border-radius: var(--r); cursor: pointer; transition: background-color .2s ease, color .2s ease; }
.org:hover { background: var(--ink); color: var(--bg); }

/* ---------- Status: icon + word, never colour alone ---------- */
.st { display: inline-flex; align-items: center; gap: var(--s2); font-weight: 600; }
.st.ok { color: var(--ok); } .st.warn { color: var(--warn); } .st.bad { color: var(--bad); } .st.idle { color: var(--muted); }

/* ---------- Forms ---------- */
.cta-form > label { display: block; margin-bottom: var(--s2); font-weight: 600; }
.cta-row { display: flex; gap: var(--s3); flex-wrap: wrap; }
.cta-row input { flex: 1 1 260px; min-width: 0; min-height: 52px; padding: 0 var(--s4); font: inherit; color: var(--field-ink); background: var(--field-bg); border: var(--bw) solid var(--field-line); border-radius: var(--r); transition: box-shadow .2s ease; }
.cta-row input::placeholder { color: #5A6B70; opacity: 1; }
.cta-row input:hover { box-shadow: 0 0 0 2px var(--field-line); }
.cta-row .btn { min-height: 52px; }
.cta-help { margin-top: var(--s3); font-size: var(--t-base); color: var(--muted); }
.field-error { display: none; margin-top: var(--s3); font-weight: 600; }
.field-error .icon { vertical-align: -0.2em; margin-right: var(--s1); }
.cta-form:has(input:user-invalid) .field-error { display: block; }
.cta-form:has(input:user-invalid) .cta-row input { border-style: dashed; }
.form-status { margin-top: var(--s3); font-weight: 600; }
.form-status:empty { display: none; }
.chips { display: flex; flex-wrap: wrap; gap: var(--s2); margin: 0 0 var(--s4); padding: 0; border: 0; }
.chips legend { float: left; width: 100%; margin-bottom: var(--s2); padding: 0; font-weight: 600; }
.chips label { display: inline-flex; cursor: pointer; }
.chips input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chips span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--s4); font-weight: 500; border: var(--bw) solid var(--muted); border-radius: 999px; transition: background-color .2s ease, color .2s ease, border-color .2s ease; }
.chips label:hover span { border-color: var(--ink); }
.chips input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--bg); font-weight: 700; }
.chips input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 3px; }
.fld label { display: block; margin-bottom: var(--s1); font-size: var(--t-base); font-weight: 600; }
.fld input, .fld select, .fld textarea { width: 100%; min-height: 44px; padding: 0 var(--s3); font: inherit; color: var(--field-ink); background: var(--field-bg); border: var(--bw) solid var(--field-line); border-radius: var(--r); transition: box-shadow .2s ease; }
.fld textarea { min-height: 120px; padding: var(--s3); }
.fld input:hover, .fld select:hover, .fld textarea:hover { box-shadow: 0 0 0 2px var(--field-line); }
.fld .hint { margin-top: var(--s1); font-size: var(--t-sm); color: var(--muted); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s4) var(--s5); align-items: end; }
.form-grid .full { grid-column: 1 / -1; }
.check { display: inline-flex; align-items: center; gap: var(--s3); min-height: 44px; font-weight: 500; cursor: pointer; }
/* The page is colour-scheme dark; without this an unchecked box on paper is drawn dark and reads as checked */
.check input { width: 22px; height: 22px; margin: 0; accent-color: var(--primary); color-scheme: light; cursor: pointer; }
.seg { display: inline-flex; border: var(--bw) solid var(--field-line); border-radius: var(--r); overflow: hidden; }
.seg button { min-height: 44px; padding: 0 var(--s4); font: inherit; font-weight: 600; color: var(--ink); background: transparent; border: 0; border-left: var(--bw) solid var(--field-line); cursor: pointer; transition: background-color .2s ease, color .2s ease; }
.seg button:first-child { border-left: 0; }
.seg button:hover { background: var(--bg-alt); }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.seg button:focus-visible { outline-offset: -5px; }
.seg button[aria-pressed="true"]:focus-visible { outline-color: var(--bg); }
.slider { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: var(--s4); }
.slider label { display: flex; gap: var(--s2); min-width: 6.5rem; font-weight: 600; }
.slider output { font-variant-numeric: tabular-nums; }
.slider input { display: block; width: 100%; height: 44px; margin: 0; background: transparent; -webkit-appearance: none; appearance: none; cursor: pointer; }
.slider input::-webkit-slider-runnable-track { height: 10px; border: 1.5px solid var(--field-line); border-radius: 999px; background: linear-gradient(to right, var(--primary) var(--p, 40%), transparent var(--p, 40%)); }
.slider input::-moz-range-track { height: 8px; border: 1.5px solid var(--field-line); border-radius: 999px; background: linear-gradient(to right, var(--primary) var(--p, 40%), transparent var(--p, 40%)); }
.slider input::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; margin-top: -10.5px; border-radius: 50%; background: var(--primary); border: 3px solid var(--paper); box-shadow: 0 0 0 1.5px var(--field-line); }
.slider input::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--primary); border: 3px solid var(--paper); box-shadow: 0 0 0 1.5px var(--field-line); }

/* ---------- The log: time runs down a rail, entries hang off it ---------- */
.log-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); flex-wrap: wrap; font-size: var(--t-base); color: var(--muted); }
.log-title { font-size: var(--t-xl); color: var(--ink); }
.log { display: grid; gap: var(--s5); }
.log-head + .log, .log + .log { margin-top: var(--s5); }
.le { display: grid; grid-template-columns: 3.25rem minmax(0, 1fr); gap: var(--s6); align-items: start; transition: opacity .3s ease, transform .3s ease; }
.le.pending { opacity: 0; transform: translateY(8px); }
.le > time, .le > .le-when { padding-top: 2px; font-family: var(--mono); font-size: var(--t-sm); color: var(--muted); font-variant-numeric: tabular-nums; }
.le-body { position: relative; min-width: 0; }
.le-body::before { content: ""; position: absolute; left: -21px; top: 8px; width: 10px; height: 10px; border-radius: 50%; background: var(--canvas); border: 1.5px solid #A9BFC2; }
.le-tool .le-body::before { background: #7DE3D4; border-color: #7DE3D4; }
.le:not(:last-child) .le-body::after { content: ""; position: absolute; left: -16.75px; top: 21px; bottom: calc(-1 * var(--s5) - 8px); width: 1.5px; background: #638793; }
.le-gap .le-body { font-size: var(--t-sm); color: var(--muted); }
.le-gap .le-body::before { left: -19px; top: 10px; width: 6px; height: 6px; border: 0; background: #638793; }
.who { display: block; font-size: var(--t-sm); font-weight: 700; color: var(--muted); }
.le-tool .le-body { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 var(--s3); }
.le-tool code { color: var(--accent); font-weight: 600; }
.le-tool .le-body > span:not(.sr-only) { color: var(--muted); }
.log-wide .le { grid-template-columns: 7.5rem minmax(0, 1fr); }

/* ---------- Run card: what Supervisor produces ---------- */
.runcard { padding: var(--s5); background: var(--surface); border-radius: var(--r); }
.runcard-title { display: flex; align-items: flex-start; gap: var(--s2); font-size: var(--t-xl); font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; }
.runcard-title .icon { width: 1.1em; height: 1.1em; margin-top: 0.05em; }
.runcard-meta { font-size: var(--t-sm); color: var(--muted); }
.runcard > p + p { margin-top: var(--s2); color: var(--muted); }
.runcard svg.plot { --chart-fs: 15px; display: block; width: 100%; max-width: 460px; height: auto; margin-top: var(--s3); }
.runcard .chart-legend { max-width: 460px; }
.runcard ul.rows { display: grid; margin-top: var(--s3); border-top: 1px solid var(--line); }
.runcard ul.rows li { display: flex; justify-content: space-between; gap: var(--s4); padding: var(--s2) 0; border-bottom: 1px solid var(--line); }
.runcard ul.rows li span:last-child { color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.runcard .actions { margin-top: var(--s4); }
.clip { display: grid; place-items: center; max-width: 320px; aspect-ratio: 16 / 9; margin-top: var(--s3); background: repeating-linear-gradient(45deg, var(--bg-alt) 0 10px, var(--surface) 10px 20px); font-family: var(--mono); font-size: 0.8125rem; color: var(--muted); }

/* ---------- Panels, stats, code ---------- */
.panel { padding: var(--s5); background: var(--surface); border-radius: var(--r); }
.panel > h2, .panel > h3, .panel-head h2, .panel-head h3 { font-size: var(--t-lg); letter-spacing: -0.01em; line-height: 1.3; }
.panel > h2 + *, .panel > h3 + *, .panel-head + * { margin-top: var(--s4); }
.panel-flush { padding: 0; overflow: hidden; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); flex-wrap: wrap; }
.panel-note { font-size: var(--t-base); color: var(--muted); }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s5); }
.stat { padding: var(--s4) var(--s5); background: var(--surface); border-radius: var(--r); }
.stat dt { font-size: var(--t-sm); font-weight: 600; color: var(--muted); }
.stat dd { margin-top: var(--s1); font-size: var(--t-sm); color: var(--muted); }
.stat .big { display: block; white-space: nowrap; color: var(--ink); font-size: var(--t-3xl); font-weight: 800; line-height: 1.05; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.balance { display: block; color: var(--ink); font-size: var(--t-3xl); font-weight: 800; line-height: 1.05; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.statline { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s6); }
.statline div { display: flex; align-items: baseline; gap: var(--s2); }
.statline dt { font-size: var(--t-base); color: var(--muted); }
.statline dd { font-size: var(--t-xl); font-weight: 700; font-variant-numeric: tabular-nums; }
.codebox { padding: var(--s5); background: var(--surface); border-radius: var(--r); }
.codebox + .codebox { margin-top: var(--s4); }
.codebox-label { font-size: var(--t-base); font-weight: 600; }
.codebox-row { display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap; margin-top: var(--s2); }
.codebox-row code { flex: 1 1 20rem; min-width: min(20rem, 100%); padding: var(--s3); overflow-wrap: anywhere; font-size: 0.9375rem; background: var(--bg-alt); border-radius: var(--r); }
.codebox-row .btn { min-width: 7.25rem; }
.codebox-row-stack code { flex-basis: 100%; }

/* ---------- Tables ---------- */
.table-scroll { overflow-x: auto; }
.data { width: 100%; border-collapse: collapse; font-size: var(--t-base); }
.data th, .data td { padding: var(--s3) var(--s4) var(--s3) 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.data thead th { font-size: var(--t-sm); font-weight: 600; color: var(--muted); white-space: nowrap; border-bottom: var(--bw) solid var(--card-line); }
.data .n { padding-right: 0; padding-left: var(--s4); text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.data tbody tr:last-child th, .data tbody tr:last-child td { border-bottom: 0; }
.data tbody th { font-weight: 600; overflow-wrap: break-word; }
.data tbody tr { transition: background-color .2s ease; }
.data tbody tr:hover { background: var(--bg-alt); }
.data small { display: block; font-size: var(--t-sm); font-weight: 400; color: var(--muted); }
.data a { display: inline-block; padding-block: 12px; margin-block: -12px; }
.data a:focus-visible { outline-offset: -1px; }
/* Tables whose rows end in a button */
.data-actions tbody th, .data-actions tbody td { vertical-align: middle; }
.panel-flush .data th:first-child, .panel-flush .data td:first-child { padding-left: var(--s5); }
.panel-flush .data th:last-child, .panel-flush .data td:last-child { padding-right: var(--s5); }
/* On the canvas (pricing tables) */
.data-canvas thead th { border-bottom-color: var(--ink); }

/* ---------- Charts and distributions ---------- */
.chart { --chart-fs: 12px; }
.chart-title { font-weight: 700; line-height: 1.3; }
.chart-sub { margin-top: var(--s1); font-size: var(--t-sm); color: var(--muted); }
.chart svg { display: block; width: 100%; height: auto; margin-top: var(--s3); }
.chart-legend, .legend { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); margin-top: var(--s3); font-size: var(--t-sm); color: var(--muted); }
.chart-legend span, .legend span { display: inline-flex; align-items: center; gap: var(--s2); }
.chart-legend i { width: 26px; height: 0; border-top: 3px solid var(--chart-avg); }
.chart-legend .k-worst i { border-top: 2px dashed var(--chart-worst); }
.chart-legend .k-limit i { border-top: 2px dashed var(--chart-limit); }
.chart-legend .k-ok i { border-top: 2px dotted var(--chart-ok); }
.legend i { width: 14px; height: 14px; flex: none; border-radius: 2px; }
.hbars { display: grid; gap: var(--s2); }
.hbars li { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr) 3.25rem; gap: var(--s3); align-items: center; font-size: var(--t-base); }
.hbars .b { height: 16px; overflow: hidden; background: var(--bg-alt); border-radius: 2px; }
.hbars .b i { display: block; width: calc(var(--h) * 1%); height: 100%; }
.hbars .v { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
/* Load-time classes: each has its own texture as well as its own colour */
.c-fast { background: var(--ok); }
.c-mid { background: radial-gradient(circle, var(--surface) 1px, transparent 1.4px) 0 0 / 4px 4px var(--mid); }
.c-slow { background: repeating-linear-gradient(90deg, var(--bad) 0 3px, var(--surface) 3px 4px); }
.c-fail { background: repeating-linear-gradient(135deg, var(--ink) 0 3px, var(--surface) 3px 6px); }
.placeholder { display: grid; place-items: center; min-height: 240px; padding: var(--s5); text-align: center; background: repeating-linear-gradient(45deg, var(--bg-alt) 0 10px, var(--surface) 10px 20px); font-family: var(--mono); font-size: 0.875rem; color: var(--muted); }

/* ---------- App: page title, site tabs ---------- */
.app-main { padding: var(--s7) 0 var(--s9); }
.app-title { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s4); flex-wrap: wrap; }
.app-title h1 { font-size: clamp(1.75rem, 3vw, 2.25rem); }
.page-sub { display: flex; align-items: center; gap: var(--s2) var(--s5); flex-wrap: wrap; margin-top: var(--s2); color: var(--muted); }
.page-sub strong { color: var(--ink); font-variant-numeric: tabular-nums; }
.crumb { display: inline-flex; align-items: center; min-width: 44px; min-height: 44px; font-size: var(--t-base); color: var(--muted); }
.tabs { display: flex; flex-wrap: wrap; gap: 0 var(--s5); margin-top: var(--s4); border-bottom: var(--bw) solid var(--line); }
.tabs a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 48px; margin-bottom: calc(-1 * var(--bw)); font-weight: 500; text-decoration: none; border-bottom: 4px solid transparent; }
.tabs a:hover { border-bottom-color: var(--muted); }
.tabs a[aria-current="page"] { font-weight: 700; border-bottom-color: var(--accent); }
.app-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: var(--s5); align-items: start; }
.app-grid.even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.app-body { margin-top: var(--s6); }
.sitelog { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); grid-template-areas: "cal side" "pages side"; gap: var(--s5); align-items: start; }
.sitelog > .a-cal { grid-area: cal; } .sitelog > .a-side { grid-area: side; } .sitelog > .a-pages { grid-area: pages; }
.score { display: flex; align-items: center; gap: var(--s4); flex-wrap: wrap; }
.score-bar { flex: 0 1 320px; height: 14px; overflow: hidden; background: var(--paper); border: 1.5px solid var(--field-line); border-radius: 999px; }
.score-bar i { display: block; width: var(--v, 50%); height: 100%; background: var(--mid); }

/* ---------- App: live browser tiles ---------- */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: var(--s4); }
.tile { overflow: hidden; background: var(--surface); border: var(--bw) solid var(--card-line); border-radius: var(--r); }
.tile-bar { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); padding: var(--s2) var(--s3); font-size: var(--t-sm); font-weight: 600; border-bottom: var(--bw) solid var(--card-line); }
.tile-view { display: grid; place-items: center; aspect-ratio: 16 / 10; background: repeating-linear-gradient(45deg, var(--bg-alt) 0 10px, var(--surface) 10px 20px); font-family: var(--mono); font-size: 0.8125rem; color: var(--muted); }
.tile-foot { display: flex; justify-content: space-between; gap: var(--s2); padding: var(--s2) var(--s3); font-size: var(--t-sm); border-top: 1px solid var(--line); }
.tile-foot span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--mono); }
.tile-foot span:last-child { white-space: nowrap; font-variant-numeric: tabular-nums; }
.tile.errored { border-style: dashed; }
.tile.errored .tile-foot { color: var(--bad); font-weight: 600; }
.tile.errored .tile-foot span:first-child { overflow: visible; white-space: normal; overflow-wrap: anywhere; }
.app-grid .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s3); }
.app-grid .tile-bar .st { font-size: 0; gap: 0; }
.app-grid .tile-bar .st .icon { font-size: 1rem; }
.app-grid .tile-foot { flex-direction: column; gap: 0; }
.app-grid .tile-foot span:first-child { white-space: normal; overflow-wrap: anywhere; }

/* ---------- App: calendar, the log zoomed out ---------- */
.cal-nav { display: flex; align-items: center; gap: var(--s2); flex-wrap: wrap; }
.cal-grid { container-type: inline-size; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
@container (max-width: 715px) { .cal-err .w, .cal-avg .u { display: none; } }
.cal-dow { padding: var(--s2); font-size: var(--t-sm); font-weight: 600; color: var(--muted); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cal-day { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-height: 96px; padding: var(--s2); font: inherit; color: inherit; text-align: left; background: var(--surface); border: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); border-radius: 0; }
button.cal-day { cursor: pointer; transition: background-color .2s ease, box-shadow .2s ease; }
button.cal-day:hover { background: var(--bg-alt); }
button.cal-day[aria-pressed="true"] { background: var(--bg-alt); box-shadow: inset 0 0 0 3px var(--ink); }
button.cal-day:focus-visible { outline-offset: -5px; }
.cal-day.out { background: var(--bg-alt); }
.cal-day.future .cal-num { font-weight: 500; color: var(--muted); }
.cal-num { font-weight: 700; line-height: 1.4; font-variant-numeric: tabular-nums; }
.cal-day.today .cal-num { padding: 0 8px; background: var(--ink); color: var(--surface); border-radius: 999px; }
.cal-avg { font-size: var(--t-sm); font-variant-numeric: tabular-nums; }
.cal-err { display: inline-flex; align-items: center; gap: 4px; font-size: var(--t-sm); font-weight: 600; color: var(--bad); }
.cal-bar { display: flex; gap: 1px; width: 100%; height: 10px; margin-top: auto; overflow: hidden; border-radius: 2px; }
.cal-bar i { display: block; height: 100%; }

/* ---------- App: transport bar for a live test, with a settings sheet ---------- */
.transport { position: fixed; z-index: 60; left: 50%; bottom: 16px; transform: translateX(-50%); width: min(100% - 2 * var(--s5), 1200px); display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: var(--s2) var(--s5); padding: var(--s3) var(--s5); background: var(--canvas-deep); border: var(--bw) solid #638793; border-radius: var(--r); box-shadow: 0 12px 40px rgba(4, 12, 16, .6); }
.transport summary { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; cursor: pointer; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 0.18em; }
.transport summary:hover { text-decoration-thickness: 3px; }
.sheet { position: absolute; left: 0; right: 0; bottom: calc(100% + 8px); max-height: calc(100dvh - 140px); overflow-y: auto; overscroll-behavior: contain; padding: var(--s5); background: var(--canvas-deep); border: var(--bw) solid #4A6B77; border-radius: var(--r); box-shadow: 0 12px 40px rgba(4, 12, 16, .6); }
.sheet .form-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; }
.has-transport { padding-bottom: 160px; }
:root:has(.transport) { scroll-padding-bottom: 140px; }

/* ---------- Marketing: hero, steps, questions, quote, pricing, footer ---------- */
.hero { padding: var(--s7) 0 var(--s9); }
.hero .col > * + *, .page-hero .col > * + * { margin-top: var(--s5); }
.hero .lede { color: var(--ink); }
.hero-log { margin-top: var(--s7); }
.page-hero { padding: var(--s7) 0 var(--s8); }
.page-hero .lede { color: var(--ink); }
.steps { display: grid; max-width: 44rem; counter-reset: step; }
.steps li { position: relative; display: grid; grid-template-columns: 36px minmax(0, 1fr); column-gap: var(--s5); padding-bottom: var(--s5); counter-increment: step; }
.steps li::before { content: counter(step); grid-row: span 2; display: grid; place-items: center; width: 36px; height: 36px; background: var(--accent); color: var(--on-accent); font-weight: 800; border-radius: 50%; }
.steps li:not(:last-child)::after { content: ""; position: absolute; left: 17.25px; top: 42px; bottom: 6px; width: 1.5px; background: #638793; }
.panel .steps li:not(:last-child)::after { background: var(--card-line); }
.steps h3, .steps h4 { margin: 0; font-size: var(--t-lg); font-weight: 700; line-height: 1.25; letter-spacing: -0.01em; }
.steps p { margin-top: var(--s1); color: var(--muted); }
.panel .steps h3, .panel .steps h4 { font-size: var(--t-md); }
/* A question and the answer that comes back */
.qa { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--s7); align-items: start; padding: var(--s7) 0; border-top: var(--bw) solid var(--line); }
.qa:last-child { padding-bottom: 0; }
.qa h3 { font-size: clamp(1.5rem, 2.4vw, 1.875rem); }
.qa-text > * + * { margin-top: var(--s4); }
.points { display: grid; gap: var(--s3); }
.points li { position: relative; padding-left: var(--s5); }
.points li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--accent); }
.note { font-size: var(--t-base); color: var(--muted); }
.quote { max-width: 52rem; }
.quote p { font-size: clamp(1.375rem, 2.4vw, 1.875rem); font-weight: 500; line-height: 1.35; letter-spacing: -0.01em; }
.quote footer { margin-top: var(--s5); color: var(--muted); }
.quote footer strong { color: var(--ink); }
.final { padding: var(--s9) 0; border-top: var(--bw) solid var(--line); }
.final .col > * + * { margin-top: var(--s5); }
.toolgroups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s5); }
.toolgroups ul { display: grid; gap: var(--s2); margin-top: var(--s3); }
.toolgroups li { display: grid; grid-template-columns: minmax(0, 17rem) minmax(0, 1fr); gap: var(--s3); align-items: baseline; font-size: var(--t-base); }
.toolgroups code { font-weight: 600; overflow-wrap: anywhere; }
.toolgroups li span { color: var(--muted); }
.site-footer { padding: var(--s8) 0 var(--s7); background: var(--canvas-deep); font-size: var(--t-base); }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: var(--s6); }
.site-footer h2 { margin-bottom: var(--s2); font-size: var(--t-base); font-weight: 700; letter-spacing: 0; line-height: 1.4; }
.site-footer li a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); text-decoration: none; }
.site-footer li a:hover { color: var(--ink); text-decoration: underline; }
.footer-about { margin-top: var(--s3); max-width: 22em; color: var(--muted); }
.site-footer .fine { margin-top: var(--s7); font-size: var(--t-sm); color: var(--muted); }

/* ---------- Responsive ---------- */
@media (max-width: 1260px) {
  .site-header:not(.is-app) .site-nav { margin-right: 0; width: 100%; }
  .site-header:not(.is-app) .nav-toggle { display: inline-flex; }
  .site-header:not(.is-app) .header-menu { display: none; width: 100%; padding-bottom: var(--s4); }
  .site-header:not(.is-app).open .header-menu { display: grid; gap: var(--s3); }
  .site-header:not(.is-app) .site-nav ul { flex-direction: column; gap: 0; }
  .site-header:not(.is-app) .site-nav a { width: 100%; justify-content: flex-start; border-bottom: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .site-header.is-app .site-nav { margin-right: 0; width: 100%; }
  .site-header.is-app .nav-toggle { display: inline-flex; }
  .site-header.is-app .header-menu { display: none; width: 100%; padding-bottom: var(--s4); }
  .site-header.is-app.open .header-menu { display: grid; gap: var(--s3); }
  .site-header.is-app .site-nav ul { flex-direction: column; gap: 0; }
  .site-header.is-app .site-nav a { width: 100%; justify-content: flex-start; border-bottom: 1px solid var(--line); }
}
@media (max-width: 1100px) {
  .chart { --chart-fs: 16px; }
  .app-grid, .app-grid.even, .split-wide { grid-template-columns: minmax(0, 1fr); }
  /* Transport bar: slider drops to its own row before it gets too short to use */
  .transport { grid-template-columns: minmax(0, 1fr) auto; }
  .transport .slider { grid-column: 1 / -1; grid-row: 2; }
  .has-transport { padding-bottom: 220px; }
  :root:has(.transport) { scroll-padding-bottom: 164px; }
  .app-grid .tiles { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .sitelog { grid-template-columns: minmax(0, 1fr); grid-template-areas: "cal" "side" "pages"; }
  .toolgroups li { grid-template-columns: minmax(0, 1fr); gap: 0; }
}
@media (max-width: 800px) {
  .transport { grid-template-columns: minmax(0, 1fr); }
  .transport .slider { grid-row: auto; }
  .has-transport { padding-bottom: 280px; }
  :root:has(.transport) { scroll-padding-bottom: 208px; }
}
@media (max-width: 960px) {
  .split, .qa, .cols-3 { grid-template-columns: minmax(0, 1fr); gap: var(--s5); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s4); }
  .toolgroups { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section, .final { padding: var(--s8) 0; }
  .sheet .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  :root { --t-sm: 1rem; }
  .wrap, .col { width: calc(100% - 2 * var(--s4)); }
  .chart { --chart-fs: 22px; }
  .runcard svg.plot { --chart-fs: 22px; }
  .cta-row .btn { flex: 1 1 100%; }
  .le, .log-wide .le { grid-template-columns: minmax(0, 1fr); gap: var(--s1); }
  .le-body::before, .le-body::after { display: none; }
  .panel, .runcard { padding: var(--s4); }
  .panel-flush { padding: 0; }
  .panel-flush .data th:first-child, .panel-flush .data td:first-child { padding-left: var(--s4); }
  .stat { padding: var(--s3) var(--s4); }
  .stat .big { font-size: 2rem; }
  .form-grid, .sheet .form-grid { grid-template-columns: minmax(0, 1fr); }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3); }
  .tile-bar .st { font-size: 0; gap: 0; }
  .tile-bar .st .icon { font-size: 1rem; }
  .tile-foot { flex-direction: column; gap: 0; }
  .tile-foot span:first-child { white-space: normal; overflow-wrap: anywhere; }
  .cal-day { min-height: 76px; padding: 4px; overflow: hidden; }
  .cal-dow { padding: 4px; }
  .cal-avg, .cal-err, .cal-dow { font-size: 0.8125rem; }
  .hbars li { grid-template-columns: 5.5rem minmax(0, 1fr) 3rem; gap: var(--s2); }
  .toolgroups li { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  /* Tables marked .rows stack into blocks; keep row/cell roles in the markup for screen readers */
  .data.rows thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .data.rows, .data.rows tbody, .data.rows tr, .data.rows th, .data.rows td { display: block; }
  .data.rows tr { padding: var(--s3) 0; border-bottom: 1px solid var(--line); }
  .data.rows tbody tr:last-child { border-bottom: 0; }
  .data.rows th, .data.rows td { padding: 2px 0; border: 0; }
  .data.rows .n { padding-left: 0; text-align: left; }
  .data-actions.rows td:last-child { padding-top: var(--s2); }
  .data.rows td[data-label]::before { content: attr(data-label) ": "; font-weight: 600; color: var(--muted); }
  .panel-flush .data.rows tr { padding: var(--s3) var(--s4); }
  .panel-flush .data.rows th:first-child, .panel-flush .data.rows td:first-child, .panel-flush .data.rows th:last-child, .panel-flush .data.rows td:last-child { padding-left: 0; padding-right: 0; }
  .transport { bottom: 8px; width: calc(100% - 16px); padding: var(--s3); }
  .transport .actions > span { flex: 1 1 0; min-width: 0; line-height: 1.2; }
  .sheet { max-height: calc(100dvh - 240px); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* =========================================================================
   Start funnel: three steps to a first result, with an agent or in the web app
   ========================================================================= */
.ml-auto { margin-left: auto; }
.start-cta > * + * { margin-top: var(--s3); }
.wizard h1 { font-size: clamp(1.875rem, 3.4vw, 2.5rem); }
.wizard .col > * + * { margin-top: var(--s5); }
.wizard-top { display: grid; justify-items: start; gap: var(--s2); }
.path-switch { color: var(--muted); }
.path-switch a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; color: var(--ink); }
.wsteps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s3); counter-reset: w; }
.wsteps li { display: flex; align-items: center; gap: var(--s3); padding-top: var(--s3); font-weight: 600; color: var(--muted); border-top: 3px solid var(--line); counter-increment: w; }
.wsteps li::before { content: counter(w); display: grid; place-items: center; flex: none; width: 32px; height: 32px; border: var(--bw) solid var(--muted); border-radius: 50%; font-variant-numeric: tabular-nums; }
.wsteps li[aria-current="step"] { color: var(--ink); border-top-color: var(--accent); }
.wsteps li[aria-current="step"]::before { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.wsteps li.done { color: var(--ink); border-top-color: var(--muted); }
.wsteps li.done::before { content: "\2713"; border-color: var(--ink); }
.wpanel > h2 { font-size: var(--t-xl); letter-spacing: -0.01em; line-height: 1.2; }
.wpanel > * + * { margin-top: var(--s4); }
.wpanel form > * + * { margin-top: var(--s4); }
.wpanel .actions { margin-top: var(--s5); }
.wpanel .fld { max-width: 28rem; }
.fld input[aria-invalid="true"] { border-style: dashed; border-color: var(--bad); }
.fld-error { display: flex; align-items: flex-start; gap: var(--s2); margin-top: var(--s1); font-size: var(--t-base); font-weight: 600; color: var(--bad); }
.fld-error .icon { margin-top: 0.15em; }
.prompt { padding: var(--s4); font-family: var(--mono); font-size: var(--t-base); line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; background: var(--bg-alt); border-radius: var(--r); }
.prompt-row { display: flex; align-items: flex-start; gap: var(--s3); flex-wrap: wrap; }
.prompt-row .prompt { flex: 1 1 20rem; }
.prompt-row .btn { min-width: 7.25rem; }

/* Statement landing: demo report and the statement preview */
.demo > * + * { margin-top: var(--s5); }
.statement-doc { position: relative; overflow: hidden; padding: var(--s6); background: #FFFFFF; color: #0C1A21; border: 1px solid var(--card-line); border-radius: var(--r); }
.statement-doc::after { content: "Preview"; position: absolute; inset: 0; display: grid; place-items: center; font-size: clamp(4rem, 14vw, 9rem); font-weight: 800; letter-spacing: -0.03em; color: rgba(12, 26, 33, .1); transform: rotate(-18deg); pointer-events: none; }
.statement-doc:lang(fi)::after { content: "Esikatselu"; }
.statement-doc > * + * { margin-top: var(--s3); }
.statement-doc h3 { font-size: var(--t-xl); }
.statement-doc h4 { margin-top: var(--s5); font-size: var(--t-md); }
.statement-doc ul { display: grid; gap: var(--s1); padding-left: var(--s5); list-style: disc; }
.preview-flag { display: inline-flex; align-items: center; gap: var(--s2); padding: var(--s1) var(--s3); font-size: var(--t-sm); font-weight: 700; background: var(--bg-alt); border-radius: 999px; }

@media (max-width: 560px) {
  .wsteps li:not([aria-current="step"]) .lbl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .wsteps { grid-template-columns: auto minmax(0, 1fr) auto; }
  .wsteps li[aria-current="step"] { grid-column: auto; }
  .statement-doc { padding: var(--s4); }
  /* Four client tabs do not fit one row on a phone */
  .wpanel .seg { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .wpanel .seg button:nth-child(odd) { border-left: 0; }
  .wpanel .seg button:nth-child(n+3) { border-top: var(--bw) solid var(--field-line); }
}

/* =========================================================================
   Accessibility plans: two plans, options that change the price, a running total
   ========================================================================= */
.plan-form > * + * { margin-top: var(--s5); }
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s5); margin: 0; padding: 0; border: 0; }
.plan { position: relative; display: flex; flex-direction: column; gap: var(--s4); cursor: pointer; transition: box-shadow .2s ease; }
.plan input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.plan:hover { box-shadow: 0 0 0 2px #A9BFC2; }
.plan:has(input:checked) { box-shadow: 0 0 0 4px #7DE3D4; }
.plan:has(input:focus-visible) { outline: 3px solid #EDF3F0; outline-offset: 7px; }
.plan-name { font-size: var(--t-lg); font-weight: 700; line-height: 1.25; }
.plan-price { font-size: var(--t-3xl); font-weight: 800; line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.plan-price small { font-size: var(--t-base); font-weight: 500; letter-spacing: 0; color: var(--muted); }
.plan .points { flex: 1; }
.plan-pick { display: inline-flex; align-items: center; gap: var(--s2); min-height: 44px; font-weight: 700; }
.plan-pick .on { display: none; align-items: center; gap: var(--s2); color: var(--ok); }
.plan:has(input:checked) .plan-pick .on { display: inline-flex; }
.plan:has(input:checked) .plan-pick .off { display: none; }
.opt { margin: 0; padding: 0; border: 0; }
.opt + .opt { margin-top: var(--s4); padding-top: var(--s4); border-top: 1px solid var(--line); }
.opt > legend, .opt-label { display: block; padding: 0; margin-bottom: var(--s2); font-weight: 600; }
.opt .hint { margin-top: var(--s1); font-size: var(--t-sm); color: var(--muted); }
.opt .chips { margin: 0; }
.opt input[type="number"] { width: 6rem; min-height: 44px; padding: 0 var(--s3); font: inherit; color: var(--field-ink); background: var(--field-bg); border: var(--bw) solid var(--field-line); border-radius: var(--r); }
.plan-total { font-size: var(--t-3xl); font-weight: 800; line-height: 1.05; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.plan-summary > * + * { margin-top: var(--s3); }
.plan-summary ul { display: grid; gap: var(--s1); padding-left: var(--s5); list-style: disc; }
@media (max-width: 960px) { .plans { grid-template-columns: minmax(0, 1fr); } }

/* Demo report details */
.issue-full { margin-top: var(--s2); font-weight: 400; }
.issue-full summary { display: inline-flex; align-items: center; min-height: 44px; font-size: var(--t-sm); font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 0.18em; }
.issue-full > * + * { margin-top: var(--s2); }
.issue-full code { overflow-wrap: anywhere; }
.rows-plain { display: grid; margin-top: var(--s2); border-top: 1px solid var(--line); }
.rows-plain li { display: flex; justify-content: space-between; gap: var(--s4); padding: var(--s2) 0; border-bottom: 1px solid var(--line); }
.rows-plain li span:last-child { font-weight: 600; font-variant-numeric: tabular-nums; }
.panel h4 { font-size: var(--t-md); }

.statement-img { min-height: 420px; line-height: 1.6; }
.wizard .fld + .actions, form.panel .fld { max-width: 28rem; }

/* =========================================================================
   Articles (Markdown from src/content/insights)
   ========================================================================= */
.article-body { padding-bottom: var(--s9); }
.article { padding: var(--s6); font-size: var(--t-md); line-height: 1.65; }
.article > h2 { margin-top: var(--s7); font-size: var(--t-xl); line-height: 1.2; }
.article > h3 { margin-top: var(--s6); font-size: var(--t-lg); line-height: 1.25; }
.article > h4 { margin-top: var(--s5); font-size: var(--t-md); }
.article > :first-child { margin-top: 0; }
.article ol { display: grid; gap: var(--s2); padding-left: var(--s5); list-style: decimal; }
.article li > ul, .article li > ol { margin-top: var(--s2); }
.article a { font-weight: 600; overflow-wrap: anywhere; }
.article img { max-width: 100%; height: auto; }
.article blockquote { padding-left: var(--s4); border-left: 4px solid var(--line); color: var(--muted); }
.article table { width: 100%; border-collapse: collapse; }
.article th, .article td { padding: var(--s2) var(--s3); text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
@media (max-width: 560px) {
  /* Article tables stack on phones: each row becomes a block, the first cell its heading */
  .article table, .article tbody, .article tr, .article td { display: block; }
  .article thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .article td { padding: var(--s1) 0; border-bottom: 0; }
  .article tr { padding: var(--s3) 0; border-bottom: 1px solid var(--line); }
}
.article-list li { padding: var(--s5) 0; border-top: var(--bw) solid var(--line); }
.article-list h2 { font-size: var(--t-xl); line-height: 1.25; }
.article-list p { margin-top: var(--s2); max-width: 38em; color: var(--muted); }
@media (max-width: 560px) { .article { padding: var(--s4); } }

/* =========================================================================
   Finnish pages: words are longer, so the header sits tighter, long words may break,
   and the wizard's three choices stack on phones. Headings carry soft hyphens in the text.
   ========================================================================= */
html:lang(fi) { overflow-wrap: break-word; }
:lang(fi) .site-header:not(.is-app) .wrap { gap: var(--s3) var(--s4); }
:lang(fi) .site-nav ul { gap: var(--s1) var(--s4); }
@media (max-width: 560px) {
  :lang(fi) .wizard-top .seg { display: grid; grid-template-columns: minmax(0, 1fr); width: 100%; }
  :lang(fi) .wizard-top .seg button { border-left: 0; }
  :lang(fi) .wizard-top .seg button + button { border-top: var(--bw) solid var(--field-line); }
}

/* Very narrow screens (320 px, the WCAG reflow width): a long button label wraps instead of pushing the page wide */
@media (max-width: 400px) {
  .btn { white-space: normal; text-align: center; padding-block: var(--s2); }
}

/* =========================================================================
   Who has to comply: two lists of tick boxes and a result that follows them.
   Also the plain facts list on the about and contact pages.
   ========================================================================= */
.comply fieldset { margin: 0; padding: 0; border: 0; }
.comply fieldset + fieldset { margin-top: var(--s6); padding-top: var(--s5); border-top: 1px solid var(--line); }
.comply legend { padding: 0; font-size: var(--t-lg); font-weight: 700; line-height: 1.25; }
.comply .hint { margin-top: var(--s1); color: var(--muted); }
.checklist { display: grid; gap: var(--s1); margin-top: var(--s3); padding: 0; list-style: none; }
.checklist .check { display: flex; align-items: flex-start; padding: var(--s2) 0; }
.checklist .check input { flex: none; margin-top: 1px; }
.checklist .issue-full { margin: 0 0 var(--s2) calc(22px + var(--s3)); }
.comply-result > * + * { margin-top: var(--s4); }
.facts { display: grid; gap: var(--s3); }
.facts div { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: var(--s3); }
.facts dt { color: var(--muted); }
.facts dd { font-weight: 600; overflow-wrap: anywhere; }
@media (max-width: 560px) { .facts div { grid-template-columns: minmax(0, 1fr); gap: 0; } }

/* A figure that is words and a number ("about 400") may wrap; plain numbers stay on one line */
.stat .big.words { white-space: normal; font-size: var(--t-2xl); line-height: 1.1; }


/* =========================================================================
   App shell: what the app needs on top of the shared system.
   ========================================================================= */

/* Undo the old global rules (styles.css, custom_tw_base.css) inside the new shell. Some of them are !important. */
body.rl-body { padding: 0; min-height: 100vh; overflow-x: visible; }
body.rl-body main { width: 100%; min-height: 0; padding: 0; overflow: visible; }
.rl a:not(.btn, .logo, .credits, .site-nav a, .tabs a, .chips a, .icon-btn, .user-menu-list a) { text-decoration: underline !important; }
.rl :is(.btn, .logo, .credits, .site-nav a, .tabs a, .chips a, .icon-btn, .user-menu-list a) { text-decoration: none !important; }
.rl form { width: auto; }

/* The header is a div with role="banner": the old stylesheet pins every <header> to the top with !important. */
.site-header.is-app { background: var(--canvas-deep); }
.site-header .btn-small { min-height: 44px; }

/* The signed-in menu: organisation, profile, log out */
.user-menu { position: relative; }
.user-menu > summary { display: inline-flex; align-items: center; gap: var(--s2); min-height: 44px; max-width: 16rem; padding: 0 var(--s3); font-weight: 600; list-style: none; cursor: pointer; border: var(--bw) solid var(--line); border-radius: var(--r); }
.user-menu > summary::-webkit-details-marker { display: none; }
.user-menu > summary span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-menu[open] > summary { border-color: var(--ink); }
.user-menu-sheet { position: absolute; right: 0; top: calc(100% + var(--s2)); z-index: 50; width: min(22rem, calc(100vw - 2 * var(--s4))); padding: var(--s4); background: var(--paper); border: var(--bw) solid var(--card-line); border-radius: var(--r); box-shadow: 0 12px 32px rgba(0, 0, 0, .35); }
.user-menu-sheet > * + * { margin-top: var(--s3); }
.user-menu-who { font-weight: 700; overflow-wrap: anywhere; }
.user-menu-who small { display: block; font-weight: 400; color: var(--muted); }
.user-menu-label { font-size: var(--t-sm); font-weight: 600; color: var(--muted); }
.user-menu-list { display: grid; gap: 2px; }
.user-menu-list a, .user-menu-list span { display: flex; align-items: center; gap: var(--s2); min-height: 44px; padding: 0 var(--s2); border-radius: var(--r); overflow-wrap: anywhere; }
.user-menu-list a:hover { background: var(--bg-alt); }
.user-menu-list [aria-current] { font-weight: 700; }
@media (max-width: 560px) { .user-menu-sheet { position: static; width: 100%; margin-top: var(--s2); box-shadow: none; } .user-menu { width: 100%; } }

/* Messages after an action (flash) */
.flash-list { display: grid; gap: var(--s3); width: min(100% - 2 * var(--s5), 1200px); margin: var(--s5) auto 0; }
.flash-msg { display: flex; align-items: flex-start; gap: var(--s3); padding: var(--s3) var(--s4); background: var(--paper); color: #0C1A21; border-left: 6px solid #1C744A; border-radius: var(--r); font-weight: 600; }
.flash-msg.is-alert { border-left-color: #B5301F; border-left-style: double; }
.flash-msg .icon { margin-top: 0.2em; }
.flash-msg > span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.flash-close { display: grid; place-items: center; flex: none; width: 44px; height: 44px; margin: -10px -10px -10px 0; padding: 0; background: none; border: 0; border-radius: var(--r); color: inherit; cursor: pointer; }
.flash-close:hover { background: #E3E9E5; }
.flash-close:focus-visible { outline: 3px solid #0C1A21; outline-offset: 0; }

/* Small account screens: log in, sign up, reset password, agent consent */
.auth { width: min(100% - 2 * var(--s5), 30rem); margin: 0 auto; padding: var(--s7) 0 var(--s9); }
.auth.is-wide { width: min(100% - 2 * var(--s5), 38rem); }
.auth > * + * { margin-top: var(--s5); }
.auth h1 { font-size: clamp(1.875rem, 3.4vw, 2.5rem); }
.auth .panel > * + * { margin-top: var(--s4); }
.auth form > * + * { margin-top: var(--s4); }
.auth .fld input { display: block; }
.auth-or { display: flex; align-items: center; gap: var(--s3); color: var(--muted); font-size: var(--t-sm); }
.auth-or::before, .auth-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth-links { display: grid; gap: var(--s1); }
.auth-links a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
.btn-block { width: 100%; }
.form-errors { padding: var(--s3) var(--s4); border: var(--bw) dashed var(--bad); border-radius: var(--r); color: var(--bad); font-weight: 600; }
.form-errors ul { margin-top: var(--s2); padding-left: var(--s5); list-style: disc; font-weight: 400; }
.fld input.is-error { border-style: dashed; border-color: var(--bad); }
.link-button { padding: 0; min-height: 44px; background: none; border: 0; font: inherit; font-weight: 600; color: inherit; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 0.18em; cursor: pointer; }
.link-button:hover { text-decoration-thickness: 3px; }
.btn-danger { background: transparent; border-color: var(--bad); color: var(--bad); }
.btn-danger:hover { background: var(--bad); color: var(--bg); }

/* The app's header has more links than the site's app prototype, so it folds into the menu button earlier. */
@media (max-width: 1100px) {
  .site-header.is-app .site-nav { margin-right: 0; width: 100%; }
  .site-header.is-app .nav-toggle { display: inline-flex; margin-left: auto; }
  .site-header.is-app .header-menu { display: none; width: 100%; padding-bottom: var(--s4); }
  .site-header.is-app.open .header-menu { display: grid; gap: var(--s3); }
  .site-header.is-app .site-nav ul { flex-direction: column; gap: 0; }
  .site-header.is-app .site-nav a { width: 100%; justify-content: flex-start; border-bottom: 1px solid var(--line); }
}

/* Agents: tokens and connected apps */
.token { font-family: var(--mono); font-size: 0.9em; overflow-wrap: anywhere; }
.row-actions { display: flex; align-items: center; gap: var(--s2); flex-wrap: wrap; }
.row-actions form { width: auto; }
.empty { color: var(--muted); }
.app-section { margin-top: var(--s8); }
.app-section > .lede { margin-top: var(--s3); }
.app-section > .panel, .app-section > .codebox { margin-top: var(--s5); }
.scopes { margin: 0; padding: 0; border: 0; display: grid; gap: var(--s1); }
.scopes legend { padding: 0; margin-bottom: var(--s1); font-weight: 600; }


/* =========================================================================
   Skin for the screens that are not rebuilt yet.

   Those screens keep their old markup (Tailwind utility classes, or the old 8-bit "nes-" classes) and sit in
   ".legacy" inside the new shell. This section gives that markup the new look: petrol canvas, no white boxes, the same
   buttons, fields, tables and status colours as the rebuilt screens. A screen leaves this skin behind when it is
   rebuilt in app/views_runlog. NES.css itself is no longer loaded in the new look.
   ========================================================================= */
.legacy { width: min(100% - 2 * var(--s5), 1200px); margin: 0 auto; padding: var(--s6) 0 var(--s9); font-size: 1rem; line-height: 1.5; }
.legacy.is-strip { padding-bottom: 0; }
.legacy > * + * { margin-top: var(--s4); }

/* base elements, weighing as little as a bare element so the old utility classes still apply */
:where(.legacy) :is(h1, h2, h3) { font-weight: 700; letter-spacing: -0.01em; line-height: 1.2; text-align: start; text-wrap: balance; }
:where(.legacy) h1 { font-size: clamp(1.75rem, 3vw, 2.25rem); }
:where(.legacy) h2 { font-size: 1.5rem; }
:where(.legacy) h3 { font-size: 1.25rem; }
:where(.legacy) h4 { font-weight: 700; }
:where(.legacy) a { color: inherit; text-decoration-thickness: 1.5px; text-underline-offset: 0.18em; }
:where(.legacy) :is(code, kbd, pre, .font-mono) { font-family: var(--mono); font-size: 0.9em; }
:where(.legacy) :focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
:where(.legacy) small { font-size: var(--t-sm); }
:where(.legacy) hr { border: 0; border-top: 1px solid var(--line); }
.legacy a:not([class*="btn"], .nes-btn, .tabs a) { text-decoration: underline !important; }
.legacy :is([class*="btn-"], .nes-btn) { text-decoration: none !important; }
.legacy .page-title:empty, .legacy > h2:empty { display: none; }
.legacy > .tabs { margin: 0 0 var(--s5); }
.legacy > .page-title + .tabs { margin-top: calc(-1 * var(--s2)); }
.legacy .page-title { font-size: clamp(1.75rem, 3vw, 2.25rem); font-weight: 700; text-align: start; margin: 0 0 var(--s4); padding: 0; color: var(--ink); }
.legacy .text-center:is(h1, h2) { text-align: start; }
.legacy .uppercase { text-transform: none; letter-spacing: 0; }
.legacy .text-xs { font-size: var(--t-sm); line-height: 1.4; }
.legacy :is(.shadow, .shadow-sm, .shadow-md, .shadow-lg, .shadow-xl) { box-shadow: none; }
.legacy :is(.rounded, .rounded-md, .rounded-lg, .rounded-xl, .rounded-2xl) { border-radius: var(--r); }

/* No white boxes: whatever was white or light grey becomes a raised block of the canvas, and tables sit on the canvas
   itself. Only charts and the calendar keep paper, because their own colours are drawn for a light background. */
.legacy :where(.fc, .legacy-paper) {
  --bg: #F4F6F3; --bg-alt: #E3E9E5; --ink: #0C1A21; --muted: #44565C; --line: #C3CFCA; --card-line: #B4C2BC;
  --primary: #10242E; --primary-hover: #1F4252; --on-primary: #F4F6F3; --accent: #10242E; --on-accent: #F4F6F3;
  --ok: #1C744A; --warn: #7A5200; --bad: #B5301F; --focus: #10242E;
  --field-bg: #FFFFFF; --field-ink: #0C1A21; --field-line: #44565C;
  color: var(--ink);
}
.legacy .legacy-paper { background-color: #F4F6F3; }
.legacy :is(.bg-white, .bg-gray-50, .nes-container, .nes-balloon) { --bg-alt: #1F4252; --line: #4A6B77; --card-line: #4A6B77; background-color: #173341; color: var(--ink); }
.legacy :is(.bg-gray-100, .bg-gray-200, .bg-gray-300, .bg-blue-100) { background-color: var(--bg-alt); color: var(--ink); }
.legacy :is(.bg-white, .bg-gray-50) :is(.bg-white, .bg-gray-50) { background-color: transparent; }
.legacy :is(table, thead, tbody, tfoot, tr, th, td):is(.bg-white, .bg-gray-50, .bg-gray-100, .bg-gray-200, .bg-gray-300) { background-color: transparent; }
/* a cell or swatch coloured inline (chart legends, score bars) keeps its own light colour, so its text goes dark */
.legacy :is(td, th, span, div, li, p)[style*="background-color"] { --ink: #0C1A21; --muted: #44565C; color: #0C1A21; }
/* notices: a raised block with a coloured, patterned edge and the status colour for emphasis */
.legacy :is(.bg-red-50, .bg-red-100, .bg-green-100, .bg-yellow-100, .bg-yellow-300) { background-color: #173341; color: var(--ink); border-left: 6px solid var(--warn); }
.legacy :is(.bg-red-50, .bg-red-100) { border-left-color: var(--bad); border-left-style: double; }
.legacy .bg-green-100 { border-left-color: var(--ok); }
/* dark blocks: the deepest canvas */
.legacy :where(.bg-black, .bg-gray-900, .bg-gray-800, .bg-gray-700, .bg-gray-600, .nes-container.is-dark) {
  --bg: #0B1A22; --bg-alt: #173341; --ink: #EDF3F0; --muted: #A9BFC2; --line: #35525D; --card-line: #4A6B77;
  --primary: #7DE3D4; --primary-hover: #A8EFE4; --on-primary: #0C1A21; --accent: #7DE3D4; --on-accent: #0C1A21;
  --ok: #86E3AE; --warn: #F3CC7A; --bad: #FFA394; --focus: #7DE3D4;
  --field-bg: #F4F6F3; --field-ink: #0C1A21; --field-line: #7DE3D4;
  color: var(--ink);
}
.legacy :is(.bg-black, .bg-gray-900, .bg-gray-800, .bg-gray-700, .bg-gray-600) { background-color: #0B1A22; }
.legacy .bg-gray-400 { background-color: var(--muted); color: var(--bg); }

/* text colours follow the surface they are on */
.legacy :is(.text-black, .text-gray-900, .text-gray-800, .text-gray-700) { color: var(--ink); }
.legacy :is(.text-gray-600, .text-gray-500, .text-gray-400, .text-gray-300) { color: var(--muted); }
.legacy .text-white { color: var(--ink); }
.legacy :is(.text-blue-600, .text-blue-500, .text-blue-700, .hover\:text-blue-600:hover) { color: var(--ink); }
.legacy :is(.text-red-500, .text-red-600, .text-red-700, .color-error) { color: var(--bad); }
.legacy :is(.text-green-600, .text-green-700, .hover\:text-green-400:hover, .color-success) { color: var(--ok); }
.legacy :is(.text-yellow-400, .text-yellow-500, .text-yellow-600, .text-yellow-800, .color-warning) { color: var(--warn); }
.legacy :is(.border-gray-200, .border-gray-300, .border-gray-500) { border-color: var(--line); }
.legacy :is(.border-gray-600, .border-black) { border-color: var(--muted); }
.legacy .border-white { border-color: var(--bg); }
.legacy .border-blue-600 { border-color: var(--accent); }
.legacy :is(.divide-gray-200, .divide-y) > :not([hidden]) ~ :not([hidden]) { border-color: var(--line); }
.legacy :is(.ring-blue-300, .ring-blue-800) { --tw-ring-color: var(--focus); }

/* buttons: the old named classes and the 8-bit ones become the new buttons */
.legacy :is(.btn-default, .btn-blue, .btn-red, .btn-green, .btn-yellow, .btn-gray, .nes-btn, .bg-blue-500, .bg-blue-600, .bg-blue-700, .bg-red-600, .bg-green-500):is(a, button, input, label, summary) {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2); min-height: 44px; padding: 0 var(--s4);
  font: inherit; font-size: 1rem; font-weight: 600; line-height: 1.1; white-space: nowrap; cursor: pointer;
  background: transparent; color: var(--ink); border: var(--bw) solid var(--ink); border-radius: var(--r); box-shadow: none;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.legacy :is(.btn-default, .btn-gray, .btn-yellow, .nes-btn):is(a, button, input, label, summary):hover { background: var(--ink); color: var(--bg); }
.legacy :is(.btn-blue, .btn-green, .nes-btn.is-primary, .nes-btn.is-success, .bg-blue-500, .bg-blue-600, .bg-blue-700, .bg-green-500):is(a, button, input, label, summary) { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.legacy :is(.btn-blue, .btn-green, .nes-btn.is-primary, .nes-btn.is-success, .bg-blue-500, .bg-blue-600, .bg-blue-700, .bg-green-500):is(a, button, input, label, summary):hover { background: var(--primary-hover); border-color: var(--primary-hover); color: var(--on-primary); }
.legacy :is(.btn-red, .nes-btn.is-error, .bg-red-600):is(a, button, input, label, summary) { background: transparent; border-color: var(--bad); color: var(--bad); }
.legacy :is(.btn-red, .nes-btn.is-error, .bg-red-600):is(a, button, input, label, summary):hover { background: var(--bad); border-color: var(--bad); color: var(--bg); }
.legacy :is(.btn-yellow, .nes-btn.is-warning) { border-color: var(--warn); }
.legacy :is([class*="btn-"], .nes-btn):is([disabled], .is-disabled, .opacity-50) { opacity: .55; cursor: not-allowed; }
.legacy :is(.bg-blue-500, .bg-blue-600, .bg-blue-700, .bg-green-500):not(a, button, input, label, summary) { background-color: var(--primary); color: var(--on-primary); }
.legacy :is(.bg-blue-500, .bg-blue-600, .bg-blue-700, .bg-green-500) .text-white { color: var(--on-primary); }
.legacy .bg-red-600:not(a, button, input, label, summary) { background-color: var(--bad); color: var(--bg); }

/* fields */
.legacy :where(input:not([type="checkbox"], [type="radio"], [type="range"], [type="hidden"], [type="submit"], [type="button"], [type="file"], [type="color"]), select, textarea),
.legacy :is(.input-default, .select-default, .nes-input, .nes-textarea, .nes-select select) {
  min-height: 44px; padding: 0 var(--s3); font: inherit; color: var(--field-ink); background: var(--field-bg);
  border: var(--bw) solid var(--field-line); border-radius: var(--r); box-shadow: none;
}
.legacy :is(textarea, .nes-textarea) { min-height: 120px; padding: var(--s3); }
.legacy :is(.input-default, .nes-input, .nes-textarea).is-error, .legacy .field_with_errors :is(input, select, textarea) { border-style: dashed; border-color: var(--bad); }
.legacy :is(label, .label-default) { font-weight: 600; color: inherit; }
.legacy :is(input[type="checkbox"], input[type="radio"]) { width: 22px; height: 22px; margin: 0 var(--s2) 0 0; vertical-align: middle; accent-color: var(--primary); color-scheme: light; }
.legacy .nes-field { display: block; margin-top: var(--s3); }
.legacy .nes-field.is-inline { display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap; }
.legacy .nes-field > label { display: block; margin-bottom: var(--s1); }
.legacy .nes-select { display: block; }
.legacy .nes-select select { width: 100%; }

/* tables */
.legacy table { border-collapse: collapse; font-size: 1rem; }
.legacy :is(th, td) { text-align: left; }
.legacy :is(th, td).text-center, .legacy .text-center > :is(th, td), .legacy tr.text-center > :is(th, td) { text-align: left; }
.legacy :is(th, td).text-right { text-align: right; }
.legacy th { font-weight: 600; }
.legacy :is(th, td) { font-size: 1rem; line-height: 1.4; }
.legacy .nes-table { width: 100%; background: none; }
.legacy .nes-table :is(th, td) { padding: var(--s3) var(--s4) var(--s3) 0; border-bottom: 1px solid var(--line); vertical-align: top; overflow-wrap: anywhere; }
.legacy .nes-table tr:last-child td { border-bottom: 0; }
/* on the canvas: muted column headings over a strong rule, rows parted by thin rules, text starting at the page edge */
.legacy table thead :is(th, td) { color: var(--muted); font-size: var(--t-sm); border-bottom: var(--bw) solid var(--ink); }
.legacy table:is(.w-full, .min-w-full, .nes-table) :is(th, td):first-child { padding-left: 0; }
.legacy table:is(.w-full, .min-w-full) tbody :is(th, td) { border-bottom: 1px solid var(--line); }
.legacy table:is(.w-full, .min-w-full) tbody tr:last-child :is(th, td) { border-bottom: 0; }
.legacy :is(.border-b, .border).border-gray-200:has(> table) { border: 0; }

/* 8-bit pieces */
.legacy .nes-container { position: relative; padding: var(--s5); border: 0; border-radius: var(--r); }
.legacy .nes-container.is-dark { background: #0B1A22; border: var(--bw) solid var(--line); }
.legacy .nes-container.is-centered { text-align: left; }
.legacy .nes-container.with-title > .title { display: block; margin: 0 0 var(--s4); padding: 0; background: none; font-size: 1.25rem; font-weight: 700; line-height: 1.2; }
.legacy .nes-container > * + * { margin-top: var(--s3); }
.legacy .nes-balloon { display: block; padding: var(--s4); border: var(--bw) solid var(--card-line); border-radius: var(--r); }
.legacy .nes-badge { display: inline-flex; align-items: center; min-height: 28px; padding: 0 var(--s2); border: var(--bw) solid var(--muted); border-radius: 999px; font-size: var(--t-sm); font-weight: 600; }
.legacy .nes-badge span { position: static; width: auto; color: inherit; background: none; box-shadow: none; }
.legacy .nes-pointer { cursor: pointer; }
.legacy .nes-icon { display: inline-grid; place-items: center; width: 1.5em; height: 1.5em; font-style: normal; font-weight: 700; line-height: 1; transform: none; }
.legacy .nes-icon::before { content: "\2022"; }
.legacy .nes-icon.close::before { content: "\00D7"; font-size: 1.4em; }
.legacy .nes-icon.coin::before { content: "\25CF"; color: var(--warn); }
.legacy :is(.snes-logo, .snes-jp-logo, .nes-logo, .nes-jp-logo)::before { content: "\270E"; }
.legacy a:has(> .nes-icon:only-child) { display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; border: var(--bw) solid var(--muted); border-radius: var(--r); text-decoration: none !important; }

/* messages */
.legacy :is(.flash-message, .flash-alert, .flash-notice) { background: #F4F6F3; color: #0C1A21; border: 0; border-left: 6px solid #1C744A; border-radius: var(--r); }
.legacy .flash-alert { border-left-color: #B5301F; border-left-style: double; }

/* charts, the calendar and live browser views sit on paper so their own colours stay readable */
.legacy canvas { background: #F4F6F3; border-radius: var(--r); }
/* the live view's chart sits beside the browser box, which is short between runs: the chart keeps its own height */
.legacy .h-80.sm\:h-auto { min-height: 20rem; }
.legacy .fc { padding: var(--s4); background: #F4F6F3; border-radius: var(--r); }
.legacy .fc a { text-decoration: none !important; }

/* coupon form on the old test screens */
.coupon { margin-bottom: var(--s4); }
.coupon > summary { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 0.18em; }
.coupon form { margin-top: var(--s2); max-width: 28rem; }
.coupon form > * + * { margin-top: var(--s3); }

@media (max-width: 560px) {
  .legacy { width: calc(100% - 2 * var(--s4)); padding-top: var(--s5); }
  .legacy :is(table.w-full, .nes-table) { display: block; overflow-x: auto; }
  /* the old test screens were laid out for wide windows: let their rows wrap and their columns take the full width */
  .legacy .d-flex { flex-wrap: wrap; gap: var(--s3); }
  .legacy :is(.w-25, .w-33, .w-50, .w-66, .w-75) { width: 100% !important; max-width: 100% !important; flex-basis: 100%; margin-left: 0 !important; margin-right: 0 !important; }
  .legacy :is(input, select, textarea) { max-width: 100%; }
}

/* =========================================================================
   Controlled test (app/views_runlog/bot_sessions/show): the Svelte components keep their old markup,
   so their pieces are restyled here by the class names they render.
   ========================================================================= */
/* a part of a rebuilt screen whose old class names the skin should restyle, without the page layout of ".legacy" */
.legacy.is-part { width: auto; margin: 0; padding: 0; font-size: inherit; line-height: inherit; }
.legacy.is-part > * + * { margin-top: 0; }

.livetest-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 1.2fr); gap: var(--s5); align-items: start; }
.livetest .panel > h2 { font-size: var(--t-xl); }
.livetest .panel > * + * { margin-top: var(--s4); }
.livetest-log h2, .livetest-browsers h2 { font-size: var(--t-xl); }
.livetest-log .log { margin-top: var(--s4); max-height: 26rem; overflow-y: auto; gap: var(--s4); padding-right: var(--s2); }
.livetest-log .le { grid-template-columns: 4.75rem minmax(0, 1fr); gap: var(--s5); }
.livetest .livetest-browsers { margin-top: var(--s7); }
.livetest-browsers h2 { margin-bottom: var(--s3); }
@media (max-width: 1100px) { .livetest-grid { grid-template-columns: minmax(0, 1fr); } }

/* graph controls */
.livetest .chart-wrapper { display: block; }
.livetest .chart-container { min-height: 0; overflow: visible; }
.livetest .chart-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s3); margin-bottom: var(--s3); }
.livetest .chart-controls label { display: inline-flex; align-items: center; min-height: 44px; font-weight: 500; text-align: left; }
.livetest .chart-controls > span { display: flex; flex-wrap: wrap; gap: var(--s2); }
.livetest .chart-controls button { min-width: 44px; margin: 0 !important; padding: 0 var(--s3) !important; }

/* numbers under the graph and the filter */
.livetest .grid-info { width: min(100% - 2 * var(--s5), 1200px); margin: 0 auto var(--s4); color: var(--muted); text-align: left; }
.livetest .grid-info p { justify-content: flex-start; gap: var(--s5); margin-bottom: var(--s1); color: var(--ink); font-weight: 600; text-align: left; }
.livetest .grid-info .nes-select { display: inline-block; }
.livetest .grid-info select { min-height: 44px; }
.livetest #bot-grid { margin-inline: auto; justify-content: center; }
.livetest .bot-window-container-wrapper { border-radius: var(--r); overflow: hidden; }

/* the docked bar: text buttons made from the components' icon buttons */
.transport .actions { display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap; }
.transport .tooltip-button-wrapper { display: inline-block; }
.transport .player-btn { display: inline-flex !important; align-items: center; gap: var(--s2); min-height: 48px; padding: 0 var(--s4) !important; font-size: 1rem; font-weight: 600; }
.transport .player-btn::after { content: attr(title); }
.transport .player-btn.is-warning::after { content: "Pause or resume"; }
.transport .player-btn .btn-icon { display: grid; place-items: center; margin: 0 !important; padding: 0 !important; font-size: 1rem; position: static; }
.transport .player-btn svg { width: 18px; height: 18px; fill: currentColor; }
.transport .player-btn svg * { fill: currentColor; }
.transport .player-btn.is-warning { border-color: var(--ink); }
.transport .player-btn[disabled] { opacity: .5; cursor: not-allowed; }
.transport-timer { white-space: nowrap; font-variant-numeric: tabular-nums; }
.transport-label { font-weight: 600; }
.transport-slider { display: flex; align-items: center; gap: var(--s4); min-width: 0; }
.transport-slider > [data-svelte-component] { flex: 1; min-width: 0; }

/* the users slider */
.transport #bots-slider.slider { display: grid !important; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: var(--s3); width: 100%; padding: 0; text-align: left; }
.transport #bots-slider > .nes-badge { display: block; float: none; width: auto; min-width: 0; height: auto; margin: 0; min-height: 0; padding: 0; border: 0; border-radius: 0; font-family: var(--mono); font-size: var(--t-base); font-weight: 600; color: var(--muted); }
.transport #bots-slider > .nes-badge.pull-left { grid-column: 1; grid-row: 1; }
.transport #bots-slider > .nes-badge.pull-right { grid-column: 3; grid-row: 1; }
.transport #bots-slider > div { grid-column: 2; grid-row: 1; padding-top: 22px; }
.transport #bots-slider .nes-badge span { transform: none !important; }
.transport #bots-slider input[type="range"] { -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 28px; min-height: 0; margin: 0; padding: 0; background: transparent; background-image: none; border: 0; opacity: 1; cursor: pointer; }
.transport #bots-slider input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: var(--line); }
.transport #bots-slider input[type="range"]::-moz-range-track { height: 6px; border-radius: 3px; background: var(--line); }
.transport #bots-slider input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 24px; height: 24px; margin-top: -9px; border-radius: 50%; background: var(--primary); border: 2px solid var(--bg); transform: none; cursor: grab; }
.transport #bots-slider input[type="range"]::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: var(--primary); border: 2px solid var(--bg); transform: none; cursor: grab; }
.transport #bots-slider input[type="range"]:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
/* the current number of users, above the thumb */
.transport #bots-slider > div > .nes-badge { top: 0; bottom: auto !important; min-height: 0; margin: 0 !important; padding: 0 !important; border: 0; }
.transport #bots-slider .slider-value { display: block; padding: 0 var(--s2) !important; background: var(--paper); color: #0C1A21; border-radius: 4px; font-family: var(--mono); font-size: var(--t-sm); font-weight: 700; line-height: 1.5; }

/* the Play button's settings form opens upwards from the bar, on paper */
.transport .tooltip-form {
  --bg: #F4F6F3; --bg-alt: #E3E9E5; --ink: #0C1A21; --muted: #44565C; --line: #C3CFCA; --primary: #10242E; --primary-hover: #1F4252; --on-primary: #F4F6F3;
  --bad: #B5301F; --focus: #10242E; --field-bg: #FFFFFF; --field-ink: #0C1A21; --field-line: #44565C;
  top: auto !important; bottom: calc(100% + 20px) !important; left: 0 !important; right: auto !important; transform: none !important;
  width: min(44rem, calc(100vw - 2 * var(--s5))); max-height: calc(100vh - 180px); overflow: auto; padding: var(--s5) !important;
  background: #F4F6F3; color: #0C1A21; border: var(--bw) solid #B4C2BC; border-radius: var(--r); box-shadow: 0 12px 32px rgba(0, 0, 0, .35); text-align: left;
}
.transport .tooltip-form .content { transform: none !important; display: block; width: auto; max-width: none; padding: 0; line-height: 2.2 !important; }
.transport .tooltip-form .close-button { position: absolute; top: var(--s2) !important; right: var(--s2); bottom: auto !important; left: auto; width: 44px; height: 44px; cursor: pointer; }
.transport .tooltip-form input:not([type="checkbox"], [type="radio"]) { min-height: 40px; max-width: 100%; }
@media (max-width: 1100px) {
  .transport-slider { grid-column: 1 / -1; grid-row: 2; }
}
@media (max-width: 800px) {
  .transport .player-btn::after, .transport .player-btn.is-warning::after { content: none; }
  .transport .player-btn { padding: 0 var(--s3) !important; min-width: 48px; justify-content: center; }
  .transport-slider { grid-row: auto; }
  .transport > .actions:last-child { justify-content: space-between; }
  .livetest.has-transport { padding-bottom: 230px; }
  .livetest .chart-controls, .livetest .chart-controls > span { flex-wrap: wrap !important; }
  .livetest .panel { padding: var(--s4); }
}

/* =========================================================================
   Accessibility screens (app/views_runlog/accessibility): sections on the canvas, no cards.
   ========================================================================= */
.pg .app-section { margin-top: var(--s7); }
.pg .app-section > * + * { margin-top: var(--s4); }
.pg h2 { font-size: var(--t-xl); }
.pg h3 { font-size: var(--t-lg); }
.pg .panel-head .btn, .pg .row-actions .btn { min-height: 40px; padding: 0 var(--s3); font-size: var(--t-base); }
.pg .data tbody tr:hover { background: none; }
/* buttons in a table are not text links: no enlarged hit area with negative margins */
.pg .data a:is(.btn, .icon-btn) { margin-block: 0; padding-block: 0; }
.pg .data a.btn { display: inline-flex; }
.pg .data a.icon-btn { display: inline-grid; }
.pg .app-section > h3, .pg .app-section > .panel-head:not(:first-child) { margin-top: var(--s6); }
.pg .data td, .pg .data th { overflow-wrap: anywhere; }
.pg .data .empty { padding: var(--s4) 0; }
.pg .data select { min-height: 40px; min-width: 5rem; padding: 0 var(--s3); font: inherit; color: var(--field-ink); background: var(--field-bg); border: var(--bw) solid var(--field-line); border-radius: var(--r); }
.pg .data td.is-actions { width: 1%; white-space: nowrap; }
.pg .data td.is-actions .row-actions:not(.is-stack) { flex-wrap: nowrap; justify-content: flex-end; }
.pg .row-actions.is-stack { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s2); min-width: 15rem; }
.pg .row-actions.is-stack .btn { width: 100%; }
/* position: relative keeps the visually hidden labels inside from widening the page */
.table-scroll { position: relative; overflow-x: auto; padding: 3px; margin: -3px; }
.table-scroll:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.table-scroll > .data { min-width: 44rem; }
.pg .meta { display: block; margin-top: var(--s1); font-size: var(--t-sm); color: var(--muted); }
.pg .device-line { display: flex; align-items: center; gap: var(--s2) var(--s4); flex-wrap: wrap; padding: var(--s3) 0; border-bottom: var(--bw) solid var(--ink); font-family: var(--mono); font-size: var(--t-sm); color: var(--muted); }
.pg .device-line strong { font-family: var(--font); font-size: var(--t-base); color: var(--ink); }
.pg .device-line a { margin-left: auto; font-family: var(--font); font-size: var(--t-base); color: var(--ink); }
.icon-btn { display: inline-grid; place-items: center; flex: none; width: 36px; height: 36px; padding: 0; background: none; color: var(--ink); border: var(--bw) solid var(--line); border-radius: var(--r); cursor: pointer; transition: background-color .2s ease, border-color .2s ease; }
.icon-btn:hover { border-color: var(--ink); background: var(--bg-alt); }
.icon-btn.is-bad { color: var(--bad); }
.icon-btn .icon { width: 18px; height: 18px; }
.pg .state-line, .pg .finding { display: flex; align-items: flex-start; gap: var(--s2); }
.pg .state-line > span { padding-top: 6px; font-weight: 600; }
.pg .findings { display: grid; gap: var(--s2); }
.pg .finding details { flex: 1; min-width: 0; padding-top: 6px; }
.pg .finding summary { cursor: pointer; }
.pg .finding summary strong { font-family: var(--mono); }
.pg .finding details p { margin-top: var(--s1); font-size: var(--t-sm); color: var(--muted); max-width: 34em; }
.pg .inline-form { display: flex; align-items: flex-end; gap: var(--s3); flex-wrap: wrap; }
.pg .inline-form .fld { flex: 1 1 18rem; }
.pg .fld-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s4); align-items: end; }
.pg .fld-grid .is-wide { grid-column: 1 / -1; }
.pg .fld-grid .is-two { grid-column: span 2; }
.pg .fld-grid.is-four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 800px) { .pg .fld-grid, .pg .fld-grid.is-four { grid-template-columns: minmax(0, 1fr); } .pg .fld-grid .is-two { grid-column: auto; } }
.pg .start-forms { display: grid; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); gap: var(--s5); margin-top: var(--s5); }
.pg textarea.snippet { display: block; width: 100%; min-height: 0; padding: var(--s3); font-family: var(--mono); font-size: 0.9375rem; color: var(--ink); background: var(--canvas-deep); border: var(--bw) solid var(--line); border-radius: var(--r); resize: vertical; }
@media (max-width: 560px) {
  .pg .row-actions.is-stack { grid-template-columns: 1fr; min-width: 9rem; }
  .pg .panel-head { align-items: flex-start; flex-direction: column; }
}

/* --- one site's accessibility pages: issues, checks, statement, feedback (see accessibility/_site_nav) --- */
.pg .tabs { margin-top: var(--s5); }
.pg .tabs + .app-section, .pg .app-title + .app-section { margin-top: var(--s6); }
.chips { display: flex; flex-wrap: wrap; gap: var(--s2); }
.chips a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 var(--s4); font-weight: 600; border: var(--bw) solid var(--line); border-radius: 999px; transition: background-color .2s ease, border-color .2s ease; }
.chips a:hover { border-color: var(--ink); }
.chips a[aria-current] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.pg .notice { display: flex; align-items: flex-start; gap: var(--s2); padding: var(--s3) var(--s4); border-left: 6px solid var(--warn); background: var(--bg-alt); border-radius: var(--r); }
.pg .notice .icon { margin-top: 0.25em; color: var(--warn); }
.pg .explain summary { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 0.18em; }
.pg .explain dl { display: grid; gap: var(--s2); margin-top: var(--s2); max-width: 46em; }
.pg .explain dl > div { display: grid; grid-template-columns: 10rem minmax(0, 1fr); gap: var(--s4); }
.pg .explain dt { font-weight: 700; }
.pg .explain dd { color: var(--muted); }
/* the list of issues: criterion, what and where, status, and the actions in one row */
.issues { border-top: var(--bw) solid var(--ink); }
.issue { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr) auto; gap: var(--s3) var(--s5); padding: var(--s5) 0; border-bottom: 1px solid var(--line); }
.issue-crit { font-family: var(--mono); font-size: var(--t-lg); font-weight: 700; }
.issue-body > * + * { margin-top: var(--s2); }
.issue-title { font-size: var(--t-md); font-weight: 700; }
.issue-where { color: var(--muted); overflow-wrap: anywhere; }
.issue-where strong { font-weight: 500; color: var(--ink); }
.issue-code { display: block; padding: var(--s2) var(--s3); background: var(--canvas-deep); border-radius: var(--r); font-size: 0.875rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.issue-shot img { max-height: 96px; border: 1px solid var(--line); border-radius: var(--r); }
.issue-status { text-align: right; }
.issue-status small { display: block; margin-top: var(--s1); font-size: var(--t-sm); color: var(--muted); overflow-wrap: anywhere; max-width: 16rem; }
.issue-actions { grid-column: 2 / -1; display: flex; flex-wrap: wrap; gap: var(--s2); }
.issue-actions .btn { min-height: 40px; padding: 0 var(--s3); font-size: var(--t-base); }
/* facts about the published statement */
.pg .facts { display: grid; gap: var(--s2); max-width: 52em; padding: 0; background: none; }
.pg .facts > div { display: grid; grid-template-columns: 13rem minmax(0, 1fr); gap: var(--s4); padding: var(--s2) 0; border-bottom: 1px solid var(--line); }
.pg .facts dt { font-weight: 600; color: var(--muted); }
.pg .st { font-size: var(--t-md); }
/* feedback people sent */
.feedback { border-top: var(--bw) solid var(--ink); }
.feedback li { padding: var(--s4) 0; border-bottom: 1px solid var(--line); }
.feedback-text { max-width: 46em; font-size: var(--t-md); white-space: pre-line; overflow-wrap: anywhere; }
.feedback-from { margin-top: var(--s2); font-size: var(--t-base); color: var(--muted); overflow-wrap: anywhere; }
.pg h3 .meta { display: inline; margin-left: var(--s3); font-weight: 400; }
@media (max-width: 700px) {
  .issue { grid-template-columns: minmax(0, 1fr); gap: var(--s2); }
  .issue-status { text-align: left; }
  .issue-actions { grid-column: auto; }
  .pg .explain dl > div, .pg .facts > div { grid-template-columns: minmax(0, 1fr); gap: 0; }
}

/* --- load tests: the two ways to start a test, side by side --- */
.pg .start-option > * + * { margin-top: var(--s3); }
.pg .start-option { padding-top: var(--s4); border-top: var(--bw) solid var(--ink); }
.pg .start-option .note { max-width: 34em; }
.pg .chart-panel { max-width: 56rem; padding: var(--s4); }
.pg .chart-panel img { display: block; width: 100%; height: auto; }
.pg .notice ul { margin-top: var(--s1); padding-left: var(--s5); list-style: disc; }
.pg .schedules { border-top: var(--bw) solid var(--ink); }
.pg .schedules > li { padding: var(--s3) 0; border-bottom: 1px solid var(--line); }
.pg .schedules .panel-head { align-items: flex-start; }
.pg .schedules .panel-head .btn { min-height: 40px; padding: 0 var(--s3); font-size: var(--t-base); }
.pg .schedules details form { margin: var(--s3) 0 var(--s4); }
.pg .data .st.meta { display: flex; }
.pg .start-option { display: flex; flex-direction: column; }
.pg .start-option .inline-form { margin-top: auto; padding-top: var(--s3); }
.pg .data td.is-actions > .btn, .pg .data td.is-actions > form .btn { min-height: 40px; padding: 0 var(--s3); font-size: var(--t-base); }
.pg .schedules details > summary { display: flex; width: fit-content; }
.pg .schedules details > form { display: block; width: 100%; }

/* --- Sites: the dashboard. One block per site, one column per service --- */
.pg .add-site { max-width: 60rem; }
.pg .add-site .actions { flex-wrap: wrap; }
.sites { border-top: var(--bw) solid var(--ink); }
.site { padding: var(--s5) 0; border-bottom: 1px solid var(--line); }
.site h3 { font-size: var(--t-xl); overflow-wrap: anywhere; }
.link-button.is-bad { color: var(--bad); font-weight: 500; }
.services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s5); margin-top: var(--s3); }
.services > div { display: grid; align-content: start; gap: 2px; padding-left: var(--s4); border-left: var(--bw) solid var(--line); }
.services dt { font-size: var(--t-sm); font-weight: 600; color: var(--muted); }
.services .main { font-size: var(--t-lg); font-weight: 700; font-variant-numeric: tabular-nums; }
.services .main.is-none { font-weight: 500; color: var(--muted); }
.services .sub { font-size: var(--t-base); color: var(--muted); }
.services .sub .st { font-size: var(--t-base); }
.services dd a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
@media (max-width: 800px) { .services { grid-template-columns: minmax(0, 1fr); gap: var(--s3); } }
/* --- Monitoring --- */
.pg .plain-list { display: grid; margin-top: var(--s2); }
.pg .plain-list li { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); flex-wrap: wrap; padding: var(--s2) 0; border-bottom: 1px solid var(--line); }
.pg .plain-list .btn { min-height: 40px; padding: 0 var(--s3); font-size: var(--t-base); }
.pg td.score { min-width: 12rem; }
/* the score bar is a bright gradient: dark text on it, and a light rest of the bar */
.pg td.score #supervisor_score { color: #0C1A21; font-weight: 600; }
.pg td.score .bg-gray-300 { background-color: #E3E9E5; }
.site-header .credits { white-space: nowrap; }
.pg details.explain > summary { display: flex; width: fit-content; }
.pg .explain > summary { font-size: var(--t-base); }
.pg td.score .text-center, .pg td.score #supervisor_score { min-height: 24px; }
.pg .start-option .explain .inline-form { margin: var(--s2) 0 0; padding-top: 0; }
.pg .start-option > .inline-form { margin-top: 0; }
.pg .start-option > .explain { margin-top: auto; padding-top: var(--s2); }
.pg .plan-form { max-width: 44rem; }
.pg .plan-form > * + * { margin-top: var(--s3); }
.pg .inline-form .fld.is-narrow { flex: 0 1 18rem; }
.pg .data form.row-actions { flex-wrap: nowrap; }
/* --- The monthly accessibility report (accessibility_reports) --- */
.report { max-width: 60rem; margin-top: var(--s6); }
.report-head h2 { font-size: var(--t-2xl); }
.report-period { margin-top: var(--s1); font-size: var(--t-lg); color: var(--muted); }
.report-tools, .report-links { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s5); margin-top: var(--s3); }
.report-tools a, .report-links a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
.report .stats { margin-top: var(--s5); }
.report-items { display: grid; gap: var(--s5); padding-left: var(--s5); list-style: decimal; }
.report-items li > * + * { margin-top: var(--s2); }
.report-item { font-weight: 600; }
.report-items ul { display: grid; gap: var(--s1); padding-left: var(--s5); list-style: disc; overflow-wrap: anywhere; }
.report-foot { margin-top: var(--s7); padding-top: var(--s4); border-top: 1px solid var(--line); }
/* on paper and as a PDF: dark ink on white, without the app around it */
@media print {
  :root:has(.report) { --bg: #FFFFFF; --bg-alt: #F1F3F1; --ink: #0C1A21; --muted: #44565C; --line: #C3CFCA; --card-line: #B4C2BC; --accent: #10242E; }
  :root:has(.report) body { background: #FFFFFF; color: #0C1A21; }
  :root:has(.report) :is(.site-header, .skip, .crumb, .tabs, .app-title .actions, .report-tools, .flash) { display: none !important; }
  .report { max-width: none; margin-top: 0; }
  .report .stat { border: 1px solid #C3CFCA; }
  .report .app-section, .report-items li { break-inside: avoid; }
  .report a { color: #0C1A21; }
}
