/* from ui/static/fonts.css, paths rewritten to the website's /fonts/ subset (design/sample_report/make_sample.py) */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: block; src: url("/fonts/Inter-Regular.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: block; src: url("/fonts/Inter-Medium.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: block; src: url("/fonts/Inter-SemiBold.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: block; src: url("/fonts/Inter-Bold.woff2") format("woff2"); }
@font-face { font-family: "Inter Display"; font-style: normal; font-weight: 600; font-display: block; src: url("/fonts/InterDisplay-SemiBold.woff2") format("woff2"); }
@font-face { font-family: "Inter Display"; font-style: normal; font-weight: 700; font-display: block; src: url("/fonts/InterDisplay-Bold.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400; font-display: block; src: url("/fonts/JetBrainsMono-Regular.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 600; font-display: block; src: url("/fonts/JetBrainsMono-SemiBold.woff2") format("woff2"); }

/* generated by design/build_tokens.py -- do not edit */
:root {
  --font-family-sans: "Inter", "Segoe UI Variable Text", "Segoe UI", system-ui, "Noto Sans CJK JP", "Noto Sans CJK SC", "Microsoft YaHei", "Yu Gothic", "Malgun Gothic", "Noto Sans", sans-serif;
  --font-family-display: "Inter Display", "Inter", "Segoe UI Variable Display", "Segoe UI", system-ui, "Noto Sans CJK JP", "Noto Sans CJK SC", "Microsoft YaHei", "Yu Gothic", "Malgun Gothic", "Noto Sans", sans-serif;
  --font-family-mono: "JetBrains Mono", "Cascadia Mono", Consolas, "Noto Sans Mono CJK JP", "MS Gothic", "Noto Sans CJK JP", "Noto Sans CJK SC", "Microsoft YaHei", "Yu Gothic", "Malgun Gothic", "Noto Sans", monospace;
  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-family-fallback-cjk: "Noto Sans CJK JP", "Noto Sans CJK SC", "Microsoft YaHei", "Yu Gothic", "Malgun Gothic", "Noto Sans", sans-serif;
  --size-xs: 13px;
  --size-sm: 14px;
  --size-md: 16px;
  --size-lg: 20px;
  --size-xl: 25px;
  --size-2xl: 31px;
  --size-3xl: 39px;
  --size-grade: 64px;
  --size-grade-hero: 88px;
  --leading-tight: 1.2;
  --leading-snug: 1.35;
  --leading-body: 1.5;
  --tracking-tight: -0.02em;
  --tracking-display: -0.03em;
  --tracking-label: 0;
  --color-ink: #0F172A;
  --color-ink-2: #334155;
  --color-muted: #475569;
  --color-subtle: #5E6B80;
  --color-bg: #EEF2F8;
  --color-surface: #FFFFFF;
  --color-surface-2: #F8FAFC;
  --color-surface-3: #F1F5F9;
  --color-border: #E2E8F0;
  --color-border-strong: #CBD5E1;
  --color-accent: #2F5BD3;
  --color-accent-hover: #2549B0;
  --color-accent-soft: #EDF2FD;
  --color-accent-ink: #FFFFFF;
  --color-focus: #2F5BD3;
  --color-grade-a: #15803D;
  --color-grade-a-soft: #ECF7EF;
  --color-grade-b: #4D7C0F;
  --color-grade-b-soft: #F2F7E8;
  --color-grade-c: #B45309;
  --color-grade-c-soft: #FDF5E9;
  --color-grade-d: #A94E28;
  --color-grade-d-soft: #FAF0EA;
  --color-grade-f: #A23B3B;
  --color-grade-f-soft: #F8EEEE;
  --color-sev-high: #A23B3B;
  --color-sev-high-soft: #F8EEEE;
  --color-sev-medium: #B45309;
  --color-sev-medium-soft: #FDF5E9;
  --color-sev-low: #475569;
  --color-sev-low-soft: #F1F5F9;
  --color-ok: #15803D;
  --color-ok-soft: #ECF7EF;
  --color-caveat: #475569;
  --color-caveat-soft: #F8FAFC;
  --color-untrusted-bg: #F1F5F9;
  --color-untrusted-ink: #334155;
  --color-untrusted-border: #CBD5E1;
  --color-error: #B91C1C;
  --color-selection: #DCE5FA;
  --color-banner: #1B2A4E;
  --color-banner-ink: #FFFFFF;
  --color-banner-muted: #B8C2DB;
  --color-banner-line: #34446B;
  --color-dial-f: #D49A94;
  --color-dial-d: #E0B394;
  --color-dial-c: #E6CD95;
  --color-dial-b: #BBD09F;
  --color-dial-a: #93BFA2;
  --color-dial-track: #E2E8F0;
  --color-dial-needle: #1E293B;
  --color-tint-panel: #E2E9F6;
  --color-tint-soft: #F2F5FB;
  --color-tint-line: #D3DCEC;
  --color-brand-accent: #2F5BD3;
  --color-brand-accent-dark: #8EA9F0;
  --color-brand-soft: #B7C3DA;
  --color-brand-soft-dark: #5A6B93;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --radius-sm: 4px;
  --radius-control: 6px;
  --radius-card: 8px;
  --radius-lg: 12px;
  --radius-pill: 999px;
  --shadow-card: 0 1px 2px rgba(15, 23, 42, 0.04), 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow-focus: 0 0 0 3px rgba(36, 87, 214, 0.28);
  --layout-doc-width: 760px;
  --layout-exe-content: 640px;
  --layout-border-width: 1px;
  --print-body: 10.5pt;
  --print-small: 10pt;
  --print-h3: 11.5pt;
  --print-h2: 15pt;
  --print-h1: 22pt;
  --print-grade: 40pt;
  --print-grade-hero: 54pt;
  --print-margin: 16mm;
}

/* Production stylesheet for every consumer surface (hosted report, exe window, PDF).
   Ported from the owner-approved prototype (design/prototype/styles.css + layout.css,
   revision 1 + pricing), unchanged, followed by the M6.1 section that replaces every
   inline style="" of the prototype with a class (CSP: style-src 'self', no inline styles).
   Token values only (var(--...)): load ui/static/fonts.css and ui/static/tokens.css first.
   The PDF also loads ui/static/print-<paper>.css (@page rules generated from tokens). */

/* ======================= design/prototype/styles.css ======================= */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-family-sans);
  font-size: var(--size-md);
  line-height: var(--leading-body);
  color: var(--color-ink);
  background: var(--color-bg);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--color-selection); }
h1, h2, h3, h4, p, ol, ul, dl, dd, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: var(--color-accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: var(--space-1); }
:focus { outline: none; }
:focus-visible { outline: none; box-shadow: var(--shadow-focus); border-radius: var(--radius-control); }
.num { font-variant-numeric: tabular-nums; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Scrollbars (WebView2/Chromium) */
* { scrollbar-width: thin; scrollbar-color: var(--color-border-strong) transparent; }
::-webkit-scrollbar { width: var(--space-3); height: var(--space-3); }
::-webkit-scrollbar-thumb { background: var(--color-border-strong); border-radius: var(--radius-pill); border: var(--space-1) solid var(--color-bg); }
::-webkit-scrollbar-track { background: transparent; }

/* ---------- Wordmark ---------- */
.wordmark {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-family: var(--font-family-display); font-weight: var(--font-weight-semibold);
  font-size: var(--size-md); letter-spacing: var(--tracking-tight); color: var(--color-ink);
}
.wordmark .mark {
  width: var(--space-5); height: var(--space-5); border-radius: var(--radius-control);
  background: var(--color-ink); display: inline-block; position: relative;
}
.wordmark .mark::after {
  content: ""; position: absolute; inset: var(--space-1) var(--space-1) auto auto;
  width: var(--space-2); height: var(--space-2); border-radius: var(--radius-pill); background: var(--color-surface);
}

/* ---------- Text ---------- */
.eyebrow { font-size: var(--size-sm); font-weight: var(--font-weight-semibold); color: var(--color-subtle); }
.h1 { font-family: var(--font-family-display); font-size: var(--size-2xl); line-height: var(--leading-tight); letter-spacing: var(--tracking-tight); font-weight: var(--font-weight-semibold); }
.h2 { font-family: var(--font-family-display); font-size: var(--size-xl); line-height: var(--leading-tight); letter-spacing: var(--tracking-tight); font-weight: var(--font-weight-semibold); }
.h3 { font-size: var(--size-lg); line-height: var(--leading-snug); letter-spacing: var(--tracking-tight); font-weight: var(--font-weight-semibold); }
.h4 { font-size: var(--size-md); line-height: var(--leading-snug); font-weight: var(--font-weight-semibold); }
.lead { font-size: var(--size-lg); line-height: var(--leading-snug); color: var(--color-ink-2); }
.muted { color: var(--color-muted); }
.small { font-size: var(--size-sm); }
.xs { font-size: var(--size-xs); }
.stack > * + * { margin-top: var(--space-4); }
.stack-sm > * + * { margin-top: var(--space-2); }
.stack-lg > * + * { margin-top: var(--space-8); }

/* ---------- Untrusted ("from your network") text ---------- */
.net {
  font-family: var(--font-family-mono); font-size: 0.875em; color: var(--color-untrusted-ink);
  background: var(--color-untrusted-bg); border: var(--layout-border-width) solid var(--color-untrusted-border);
  border-radius: var(--radius-sm); padding: 0 var(--space-1); white-space: pre-wrap; overflow-wrap: anywhere;
  word-break: break-word;
}
.net-legend { display: inline-flex; align-items: center; gap: var(--space-2); }

/* ---------- Buttons & controls ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  font: inherit; font-size: var(--size-md); font-weight: var(--font-weight-semibold);
  padding: var(--space-3) var(--space-5); border-radius: var(--radius-control);
  border: var(--layout-border-width) solid transparent; cursor: pointer; line-height: var(--leading-tight);
  text-decoration: none !important; white-space: nowrap;
}
.btn-primary { background: var(--color-accent); color: var(--color-accent-ink); }
.btn-primary:hover { background: var(--color-accent-hover); }
.btn-primary[disabled], .btn-primary[aria-disabled="true"] { background: var(--color-border-strong); color: var(--color-surface); cursor: not-allowed; }
.btn-secondary { background: var(--color-surface); color: var(--color-ink); border-color: var(--color-border-strong); }
.btn-secondary:hover { background: var(--color-surface-2); }
.btn-quiet { background: transparent; color: var(--color-muted); padding-left: var(--space-3); padding-right: var(--space-3); }
.btn-quiet:hover { color: var(--color-ink); }
.btn-sm { font-size: var(--size-sm); padding: var(--space-2) var(--space-3); }
textarea.input { resize: none; }
.input, textarea.input {
  font: inherit; font-size: var(--size-md); color: var(--color-ink); background: var(--color-surface);
  border: var(--layout-border-width) solid var(--color-border-strong); border-radius: var(--radius-control);
  padding: var(--space-3) var(--space-4); width: 100%;
}
.input:focus { border-color: var(--color-accent); box-shadow: var(--shadow-focus); }
.input::placeholder { color: var(--color-border-strong); }
.input.code {
  font-family: var(--font-family-mono); font-size: var(--size-xl); letter-spacing: var(--tracking-label);
  text-align: center; text-transform: uppercase; font-variant-numeric: tabular-nums;
}
.input.invalid { border-color: var(--color-error); }
label.lbl { display: block; font-size: var(--size-sm); font-weight: var(--font-weight-semibold); margin-bottom: var(--space-2); }

/* ---------- Icons ---------- */
.ic { width: var(--space-4); height: var(--space-4); flex: none; display: inline-block; vertical-align: -0.15em; }
.ic-lg { width: var(--space-6); height: var(--space-6); }

/* ---------- Cards ---------- */
.card {
  background: var(--color-surface); border: var(--layout-border-width) solid var(--color-border);
  border-radius: var(--radius-card); box-shadow: var(--shadow-card);
}
.card-pad { padding: var(--space-6); }
.divider { border: 0; border-top: var(--layout-border-width) solid var(--color-border); margin: 0; }

/* ---------- Grade ---------- */
.grade {
  font-family: var(--font-family-display); font-weight: var(--font-weight-bold);
  font-size: var(--size-grade); line-height: 1; letter-spacing: var(--tracking-display);
  font-variant-numeric: tabular-nums;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius-lg); flex: none;
  width: calc(var(--size-grade) * 1.5); height: calc(var(--size-grade) * 1.5);
}
.grade-hero { font-size: var(--size-grade-hero); width: calc(var(--size-grade-hero) * 1.4); height: calc(var(--size-grade-hero) * 1.4); }
.grade-sm { font-size: var(--size-lg); width: var(--space-10); height: var(--space-10); border-radius: var(--radius-control); }
.grade-xs { font-size: var(--size-sm); width: var(--space-6); height: var(--space-6); border-radius: var(--radius-sm); font-family: var(--font-family-sans); letter-spacing: 0; }
.g-A { color: var(--color-grade-a); background: var(--color-grade-a-soft); }
.g-B { color: var(--color-grade-b); background: var(--color-grade-b-soft); }
.g-C { color: var(--color-grade-c); background: var(--color-grade-c-soft); }
.g-D { color: var(--color-grade-d); background: var(--color-grade-d-soft); }
.g-F { color: var(--color-grade-f); background: var(--color-grade-f-soft); }
.g-none {
  color: var(--color-subtle); background: transparent;
  border: var(--layout-border-width) dashed var(--color-border-strong);
}

/* ---------- Chips ---------- */
.chip {
  display: inline-flex; align-items: center; gap: var(--space-1);
  font-size: var(--size-xs); font-weight: var(--font-weight-semibold); line-height: var(--leading-tight);
  padding: var(--space-1) var(--space-2); border-radius: var(--radius-pill); white-space: nowrap;
  border: var(--layout-border-width) solid transparent;
}
.chip .ic { width: var(--space-3); height: var(--space-3); }
.sev-high { color: var(--color-sev-high); background: var(--color-sev-high-soft); }
.sev-medium { color: var(--color-sev-medium); background: var(--color-sev-medium-soft); }
.sev-low { color: var(--color-sev-low); background: var(--color-sev-low-soft); }
.chip-likely { color: var(--color-ink-2); background: var(--color-surface); border-color: var(--color-border-strong); }
.chip-ok { color: var(--color-ok); background: var(--color-ok-soft); }
.chip-na { color: var(--color-subtle); background: transparent; border: var(--layout-border-width) dashed var(--color-border-strong); }
.chip-confirm { color: var(--color-caveat); background: var(--color-surface-3); }
.chip-possible { color: var(--color-caveat); background: var(--color-surface); border: var(--layout-border-width) dotted var(--color-subtle); }
.chip-ai { color: var(--color-accent); background: var(--color-accent-soft); }

/* ---------- Finding card ---------- */
.finding { padding: var(--space-6); }
.finding + .finding { border-top: var(--layout-border-width) solid var(--color-border); }
.finding-head { display: flex; align-items: flex-start; gap: var(--space-3); justify-content: space-between; }
.finding-rank { font-size: var(--size-xs); color: var(--color-subtle); font-weight: var(--font-weight-semibold); font-variant-numeric: tabular-nums; }
.finding-title { font-size: var(--size-lg); line-height: var(--leading-snug); font-weight: var(--font-weight-semibold); letter-spacing: var(--tracking-tight); margin-top: var(--space-2); }
.finding-body { display: grid; grid-template-columns: 9.5em 1fr; gap: var(--space-2) var(--space-5); margin-top: var(--space-4); }
.finding-body dt { font-size: var(--size-sm); color: var(--color-subtle); font-weight: var(--font-weight-medium); padding-top: 0.1em; }
.finding-body dd { color: var(--color-ink-2); }
.finding-body dd.todo { color: var(--color-ink); font-weight: var(--font-weight-medium); }
.affected { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-1); }
.dev { display: inline-flex; align-items: baseline; gap: var(--space-2); font-size: var(--size-sm); color: var(--color-ink-2); max-width: 100%; }
.dev-type { font-weight: var(--font-weight-medium); white-space: nowrap; }

details.finding > summary { list-style: none; cursor: pointer; }
details.finding > summary::-webkit-details-marker { display: none; }
details.finding > summary .finding-title { font-size: var(--size-md); margin-top: var(--space-2); }
details.finding > summary .fold-hint { display: inline-flex; align-items: center; gap: var(--space-1); font-size: var(--size-xs); color: var(--color-accent); font-weight: var(--font-weight-semibold); }
details.finding[open] > summary .fold-hint { display: none; }
details.finding .chev { transition: transform 0.15s; }

/* ---------- Disclosure ---------- */
details.tech { margin-top: var(--space-4); border-top: var(--layout-border-width) dashed var(--color-border); padding-top: var(--space-3); }
details.tech > summary {
  list-style: none; cursor: pointer; font-size: var(--size-sm); font-weight: var(--font-weight-semibold);
  color: var(--color-accent); display: inline-flex; align-items: center; gap: var(--space-2);
  border-radius: var(--radius-sm);
}
details.tech > summary::-webkit-details-marker { display: none; }
details.tech > summary .chev { transition: transform 0.15s; }
details.tech[open] > summary .chev { transform: rotate(90deg); }
.tech-body { margin-top: var(--space-3); font-size: var(--size-sm); color: var(--color-ink-2); }
.tech-body li { padding: var(--space-2) 0; border-bottom: var(--layout-border-width) solid var(--color-surface-3); display: grid; grid-template-columns: 9em 1fr; gap: var(--space-3); }
.tech-body li:last-child { border-bottom: 0; }
.tech-k { color: var(--color-subtle); font-size: var(--size-xs); font-weight: var(--font-weight-semibold); padding-top: 0.15em; }
.tech-body code { font-family: var(--font-family-mono); font-size: 0.92em; overflow-wrap: anywhere; }

/* ---------- Caveat card (ungraded) ---------- */
.caveat {
  display: grid; grid-template-columns: auto 1fr; gap: var(--space-3);
  padding: var(--space-4) var(--space-5); border-radius: var(--radius-card);
  background: var(--color-caveat-soft); border: var(--layout-border-width) solid var(--color-border);
  color: var(--color-ink-2); font-size: var(--size-sm);
}
.caveat .ic { color: var(--color-caveat); margin-top: 0.15em; }
.caveat-title { font-weight: var(--font-weight-semibold); color: var(--color-ink); margin-bottom: var(--space-1); display: flex; gap: var(--space-2); align-items: center; flex-wrap: wrap; }
.caveat.possible { background: var(--color-surface); border-style: dotted; border-color: var(--color-subtle); }
.caveat.na { background: transparent; border-style: dashed; border-color: var(--color-border-strong); }

/* ---------- Category list (rows in one card) ---------- */
.cats { background: var(--color-surface); border: var(--layout-border-width) solid var(--color-border); border-radius: var(--radius-card); }
.cat { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: var(--space-3); padding: var(--space-3) var(--space-5); }
.cat + .cat { border-top: var(--layout-border-width) solid var(--color-surface-3); }
.cat-name { font-size: var(--size-sm); font-weight: var(--font-weight-medium); line-height: var(--leading-snug); }
.cat-meta { font-size: var(--size-xs); color: var(--color-subtle); text-align: right; }
.cat.na .cat-name { color: var(--color-muted); }

/* ---------- Device rows ---------- */
.devrows { font-size: var(--size-sm); }
.devrow { display: grid; grid-template-columns: auto 1fr auto; gap: var(--space-3); align-items: center; padding: var(--space-2) 0; border-bottom: var(--layout-border-width) solid var(--color-surface-3); }
.devrow:last-child { border-bottom: 0; }
.devrow .ic { color: var(--color-ok); }
.devrow code { font-family: var(--font-family-mono); font-size: var(--size-xs); color: var(--color-muted); }

/* ---------- Steps ---------- */
.steps li { display: grid; grid-template-columns: var(--space-6) 1fr auto; gap: var(--space-3); align-items: center; padding: var(--space-3) 0; border-bottom: var(--layout-border-width) solid var(--color-surface-3); }
.steps li:last-child { border-bottom: 0; }
.step-ic { width: var(--space-6); height: var(--space-6); border-radius: var(--radius-pill); display: inline-flex; align-items: center; justify-content: center; }
.step-done .step-ic { background: var(--color-ok-soft); color: var(--color-ok); }
.step-now .step-ic { border: calc(var(--layout-border-width) * 2) solid var(--color-accent-soft); border-top-color: var(--color-accent); }
.step-todo .step-ic { border: calc(var(--layout-border-width) * 2) solid var(--color-border); }
.step-todo { color: var(--color-subtle); }
.step-now .step-label { font-weight: var(--font-weight-semibold); }

/* ---------- Access code display ---------- */
.code-big {
  font-family: var(--font-family-mono); font-weight: var(--font-weight-semibold); font-size: var(--size-2xl);
  letter-spacing: var(--tracking-label); font-variant-numeric: tabular-nums; color: var(--color-ink);
}
.kv { display: grid; grid-template-columns: auto 1fr auto; gap: var(--space-3) var(--space-4); align-items: center; }
.link-box { font-family: var(--font-family-mono); font-size: var(--size-sm); color: var(--color-ink-2); background: var(--color-surface-2); border: var(--layout-border-width) solid var(--color-border); border-radius: var(--radius-control); padding: var(--space-2) var(--space-3); overflow-wrap: anywhere; }

/* ---------- Choice cards (AI choice) ---------- */
.choice { display: grid; grid-template-columns: auto 1fr; gap: var(--space-3); padding: var(--space-4) var(--space-5); border: var(--layout-border-width) solid var(--color-border-strong); border-radius: var(--radius-card); background: var(--color-surface); cursor: pointer; }
.choice:hover { border-color: var(--color-accent); }
.radio { width: var(--space-5); height: var(--space-5); border-radius: var(--radius-pill); border: calc(var(--layout-border-width) * 2) solid var(--color-border-strong); margin-top: 0.1em; background: var(--color-surface); }
.choice.selected { border-color: var(--color-accent); box-shadow: var(--shadow-focus); }
.choice.selected .radio { border: calc(var(--space-1) + var(--layout-border-width)) solid var(--color-accent); }

/* ---------- Notice (gentle) ---------- */
.notice { display: grid; grid-template-columns: auto 1fr; gap: var(--space-3); padding: var(--space-4) var(--space-5); border-radius: var(--radius-card); background: var(--color-accent-soft); color: var(--color-ink-2); font-size: var(--size-sm); }
.notice .ic { color: var(--color-accent); margin-top: 0.15em; }
.notice.error { background: var(--color-surface); border: var(--layout-border-width) solid var(--color-border-strong); }
.notice.error .ic { color: var(--color-error); }

/* ---------- Round 1 additions ---------- */
.chip-zero { color: var(--color-subtle); background: transparent; border-color: var(--color-border); }
.affected { flex-direction: column; align-items: flex-start; gap: var(--space-1); }
.checkbox { width: var(--space-5); height: var(--space-5); flex: none; border-radius: var(--radius-sm); border: calc(var(--layout-border-width) * 2) solid var(--color-border-strong); background: var(--color-surface); display: inline-flex; align-items: center; justify-content: center; margin-top: 0.1em; cursor: pointer; }
.checkbox.on { background: var(--color-accent); border-color: var(--color-accent); color: var(--color-accent-ink); }
.checkbox .ic { width: var(--space-4); height: var(--space-4); stroke-width: 2.6; }
.check-row { display: grid; grid-template-columns: auto 1fr; gap: var(--space-3); }
.btn-label-short { display: none; }

/* ---------- Revision 1: grade words + dial (R-3) ---------- */
.gblock { display: flex; flex-direction: column; align-items: center; width: calc(var(--space-16) * 2.4); flex: none; }
.gblock-label { font-size: var(--size-xs); font-weight: var(--font-weight-semibold); color: var(--color-subtle); }
.gblock .dial { width: 100%; height: auto; display: block; margin-top: var(--space-1); }
.dial-ends { display: flex; justify-content: space-between; width: 100%; font-size: var(--size-xs); color: var(--color-subtle); margin-top: calc(var(--space-1) * -1); }
.gword-big { font-family: var(--font-family-display); font-weight: var(--font-weight-semibold); font-size: var(--size-lg); line-height: var(--leading-tight); margin-top: var(--space-1); text-align: center; background: none; }
.gword-big.g-none { color: var(--color-subtle); border: 0; }
.gblock.lg { width: calc(var(--space-16) * 3.4); }
.gblock.lg .gword-big { font-size: var(--size-2xl); }
.gword { display: inline-flex; align-items: center; gap: var(--space-2); font-size: var(--size-sm); font-weight: var(--font-weight-semibold); padding: var(--space-1) var(--space-3); border-radius: var(--radius-pill); white-space: nowrap; }
.gword.sm { font-size: var(--size-xs); padding: var(--space-1) var(--space-2); }
.gword .gdot { width: var(--space-2); height: var(--space-2); border-radius: var(--radius-pill); background: currentColor; }
.gword.g-none { color: var(--color-subtle); background: transparent; border: var(--layout-border-width) dashed var(--color-border-strong); }
.cat { grid-template-columns: 1fr auto auto; }
.sec-head { justify-content: space-between; align-items: flex-start; }
.sec-grade { display: flex; flex-direction: column; align-items: flex-end; gap: var(--space-1); flex: none; }

/* ---------- Keeliva wordmark options (outlined SVG, design/wordmark/) ---------- */
.wordmark svg.wm { height: calc(var(--space-5) + var(--space-1)); width: auto; display: block; color: inherit; }
.wm-accent { fill: var(--color-brand-accent); }
.wm-accent-stroke { stroke: var(--color-brand-accent); }
.wm-soft-stroke { stroke: var(--color-brand-soft); }
.wm-tile { fill: var(--color-banner); }
.wm-tile-ink { fill: var(--color-banner-ink); }
.wm-tile-soft-stroke { stroke: var(--color-brand-soft-dark); }
.wm-tile ~ .wm-accent, .wm-tile ~ .wm-accent-stroke { fill: var(--color-brand-accent-dark); stroke: var(--color-brand-accent-dark); }
.wm-tile ~ .wm-accent-stroke { fill: none; }
.on-dark .wm-accent { fill: var(--color-brand-accent-dark); }
.on-dark .wm-accent-stroke { stroke: var(--color-brand-accent-dark); }
.on-dark .wm-soft-stroke { stroke: var(--color-brand-soft-dark); }
/* on dark backgrounds the app-icon tile inverts (white tile, navy ink) so it never disappears */
.on-dark .wm-tile { fill: var(--color-banner-ink); }
.on-dark .wm-tile-ink { fill: var(--color-banner); }
.on-dark .wm-tile ~ .wm-accent { fill: var(--color-brand-accent); }
.on-dark .wm-tile ~ .wm-accent-stroke { stroke: var(--color-brand-accent); }
.on-dark .wm-tile-soft-stroke { stroke: var(--color-brand-soft); }

/* ======================= design/prototype/layout.css ======================= */

/* ================= Hosted pages ================= */
.topbar { background: var(--color-surface); border-bottom: var(--layout-border-width) solid var(--color-border); }
.topbar-in { max-width: calc(var(--layout-doc-width) + var(--space-12)); margin: 0 auto; padding: var(--space-4) var(--space-6); display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); }
.topbar-actions { display: flex; align-items: center; gap: var(--space-2); }
.doc { max-width: calc(var(--layout-doc-width) + var(--space-12)); margin: 0 auto; padding: var(--space-10) var(--space-6) var(--space-16); }
.doc > * + * { margin-top: var(--space-6); }
.doc > .section-gap { margin-top: var(--space-12); }

.hero { padding: var(--space-8); }
.hero-meta { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); color: var(--color-muted); font-size: var(--size-sm); margin-top: var(--space-2); }
.hero-grades { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); margin-top: var(--space-8); }
.hero-grade { display: flex; gap: var(--space-5); align-items: center; padding: var(--space-5); border: var(--layout-border-width) solid var(--color-border); border-radius: var(--radius-card); background: var(--color-surface-2); }
.hero-grade .grade { flex: none; }
.hero-grade .label { font-size: var(--size-sm); font-weight: var(--font-weight-semibold); color: var(--color-muted); }
.hero-grade .meaning { font-size: var(--size-md); line-height: var(--leading-snug); color: var(--color-ink); margin-top: var(--space-1); font-weight: var(--font-weight-medium); }
.hero-grade .counts { font-size: var(--size-xs); color: var(--color-subtle); margin-top: var(--space-2); }

.summary-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); flex-wrap: wrap; }
.actions-list { counter-reset: act; }
.actions-list li { counter-increment: act; display: grid; grid-template-columns: var(--space-8) 1fr; gap: var(--space-3); padding: var(--space-3) 0; border-top: var(--layout-border-width) solid var(--color-surface-3); align-items: start; }
.actions-list li::before { content: counter(act); width: var(--space-6); height: var(--space-6); border-radius: var(--radius-pill); background: var(--color-banner); color: var(--color-banner-ink); font-size: var(--size-xs); font-weight: var(--font-weight-semibold); display: inline-flex; align-items: center; justify-content: center; margin-top: 0.05em; }
.actions-list a { font-size: var(--size-sm); }

.sec-head { display: flex; align-items: center; gap: var(--space-4); }
.sec-head .grade { flex: none; }
.sec-sub { color: var(--color-muted); margin-top: var(--space-1); }
.block-title { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-3); margin-bottom: var(--space-3); }

.more { padding: var(--space-4) var(--space-6); }
.more > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); font-weight: var(--font-weight-semibold); }
.more > summary::-webkit-details-marker { display: none; }
.more > summary .chev { transition: transform 0.15s; color: var(--color-subtle); }
.more[open] > summary .chev { transform: rotate(90deg); }
.more-body { margin-top: var(--space-4); }
.small-item > .chip { align-self: start; }
.small-item { display: grid; grid-template-columns: auto 1fr; gap: var(--space-3); padding: var(--space-3) 0; border-top: var(--layout-border-width) solid var(--color-surface-3); font-size: var(--size-sm); }

.cta { display: flex; align-items: center; justify-content: space-between; gap: var(--space-6); padding: var(--space-6); }
.foot { color: var(--color-muted); font-size: var(--size-sm); border-top: var(--layout-border-width) solid var(--color-border); padding-top: var(--space-6); display: grid; gap: var(--space-3); }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5) var(--space-8); font-size: var(--size-sm); color: var(--color-ink-2); }
.facts h4 { font-size: var(--size-sm); color: var(--color-ink); margin-bottom: var(--space-2); font-weight: var(--font-weight-semibold); }
.ticks li { display: grid; grid-template-columns: var(--space-5) 1fr; gap: var(--space-2); padding: var(--space-1) 0; }
.ticks .ic { color: var(--color-ok); margin-top: 0.2em; }
.ticks.no .ic { color: var(--color-subtle); }

/* access pages */
.center-wrap { min-height: 100vh; display: flex; flex-direction: column; }
.center-main { flex: 1; display: flex; align-items: center; justify-content: center; padding: var(--space-10) var(--space-6); }
.access { width: 100%; max-width: calc(var(--layout-exe-content) * 0.68); padding: var(--space-8); }
.access .h2 { margin-top: var(--space-4); }
.state-ic { width: var(--space-12); height: var(--space-12); border-radius: var(--radius-pill); display: inline-flex; align-items: center; justify-content: center; background: var(--color-surface-3); color: var(--color-muted); }
.state-ic .ic { width: var(--space-6); height: var(--space-6); }
.state-ic.accent { background: var(--color-accent-soft); color: var(--color-accent); }
.minifoot { text-align: center; padding: var(--space-6); font-size: var(--size-xs); color: var(--color-subtle); }

/* chat */
.chat { max-width: calc(var(--layout-doc-width) + var(--space-12)); margin: 0 auto; padding: var(--space-8) var(--space-6) var(--space-12); }
.chat-head { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--space-4); flex-wrap: wrap; }
.msgs { display: flex; flex-direction: column; gap: var(--space-5); margin-top: var(--space-8); }
.msg { max-width: 85%; }
.msg-who { font-size: var(--size-xs); font-weight: var(--font-weight-semibold); color: var(--color-subtle); margin-bottom: var(--space-1); display: flex; align-items: center; gap: var(--space-2); }
.msg-text { padding: var(--space-4) var(--space-5); border-radius: var(--radius-lg); line-height: var(--leading-body); }
.msg.q { align-self: flex-end; }
.msg.q .msg-who { justify-content: flex-end; }
.msg.q .msg-text { background: var(--color-accent-soft); color: var(--color-ink); border-bottom-right-radius: var(--radius-sm); }
.msg.a .msg-text { background: var(--color-surface); border: var(--layout-border-width) solid var(--color-border); border-bottom-left-radius: var(--radius-sm); box-shadow: var(--shadow-card); }
.msg.a ol { list-style: decimal; padding-left: var(--space-5); margin-top: var(--space-2); }
.msg.a ol li + li { margin-top: var(--space-1); }
.msg.note .msg-text { background: var(--color-surface-2); border: var(--layout-border-width) dashed var(--color-border-strong); color: var(--color-ink-2); font-size: var(--size-sm); }
/* Assistant+ (A10): web sources under a fix answer. Domain only, plain links (no favicon/title). */
.msg-sources-label { border-top: var(--layout-border-width) solid var(--color-border); padding-top: var(--space-3); }
/* LT-1/LT-2: numbered list (numbers match the "[n]" markers), one source per line, muted document hint */
.msg-sources { display: flex; flex-direction: column; }
/* DRS-4: number column + content column; the hint sits under its link and can never start under the number */
.msg-sources li { display: grid; grid-template-columns: var(--space-5) 1fr; column-gap: var(--space-2); align-items: baseline; }
.msg-sources li:not(:has(.msg-source-n)) { display: block; }
.msg-sources li > a, .msg-sources li > .msg-source-hint { grid-column: 2; justify-self: start; }
.msg-source-n { grid-column: 1; color: var(--color-muted); font-variant-numeric: tabular-nums; }
.msg-source-hint { font-size: var(--size-xs); overflow-wrap: anywhere; margin-top: calc(var(--space-1) * -1); padding-bottom: var(--space-1); }
/* DRS-1: padding gives a 36px+ tap target; DRS-3: arrow shows the link leaves Keeliva (alt text "" = decorative) */
.msg-sources a { display: inline-block; padding-block: var(--space-1); font-weight: var(--font-weight-medium); overflow-wrap: anywhere; text-decoration: underline; text-underline-offset: calc(var(--layout-border-width) * 2); }
.msg-sources a::after { content: " \2197" / ""; text-decoration: none; display: inline-block; margin-left: var(--space-1); }
@media (max-width: 640px) { .msg-sources a { padding-block: var(--space-2); } }   /* DRS-1/DRS-6: big tap targets on phones only */
.composer { margin-top: var(--space-8); padding: var(--space-5); }
.composer-row { display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); margin-top: var(--space-3); flex-wrap: wrap; }
.remaining { display: inline-flex; align-items: center; gap: var(--space-2); font-size: var(--size-sm); color: var(--color-muted); }
.meter { width: calc(var(--space-16) + var(--space-8)); height: var(--space-1); background: var(--color-surface-3); border-radius: var(--radius-pill); overflow: hidden; display: inline-block; }
.meter > span { display: block; height: 100%; background: var(--color-accent); border-radius: var(--radius-pill); }
.dots { display: inline-flex; gap: var(--space-1); align-items: center; }
.dots i { width: var(--space-2); height: var(--space-2); border-radius: var(--radius-pill); background: var(--color-subtle); opacity: 0.35; animation: pulse 1.2s infinite ease-in-out; }
.dots i:nth-child(2) { animation-delay: 0.2s; }
.dots i:nth-child(3) { animation-delay: 0.4s; }
@keyframes pulse { 0%, 80%, 100% { opacity: 0.25; } 40% { opacity: 0.9; } }
.frozen .dots i:nth-child(1) { opacity: 0.9; animation: none; }
.frozen .dots i:nth-child(2) { opacity: 0.55; animation: none; }
.frozen .dots i:nth-child(3) { opacity: 0.25; animation: none; }

/* ---------- Hosted chat round (owner OS-1 / OS-2, 2026-10-13; design GOOD TO GO). Tokens only. ---------- */
/* OS-2 (D1, variant A): the assistant entry point is a third tile inside the hero, under the two dial tiles:
   same white surface, tint line and radius as .hero-grade, so it reads as part of the results overview. */
.ask-row {
  display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "ic title btn" "ic text btn";
  align-items: center; column-gap: var(--space-5); row-gap: 0;
  margin-top: var(--space-4); padding: var(--space-5);
  background: var(--color-surface); border: var(--layout-border-width) solid var(--color-tint-line);
  border-radius: var(--radius-card);
}
.ask-head { display: contents; }             /* desktop: icon and title are grid items themselves */
.ask-ic {
  grid-area: ic; flex: none; width: var(--space-12); height: var(--space-12); border-radius: var(--radius-pill);
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--color-accent-soft); color: var(--color-accent);
}
.ask-ic .ic { width: var(--space-6); height: var(--space-6); }
.ask-title { grid-area: title; align-self: end; font-size: var(--size-md); line-height: var(--leading-snug); font-weight: var(--font-weight-semibold); color: var(--color-ink); }
.ask-row > p { grid-area: text; align-self: start; color: var(--color-muted); font-size: var(--size-sm); margin-top: var(--space-1); overflow-wrap: anywhere; min-width: 0; }
.ask-allow { color: var(--color-ink-2); }
.ask-row .btn { grid-area: btn; }
@media (max-width: 640px) {
  /* DRH-3: the head row holds the icon and the title; the paragraph spans the card beneath (D8: two-line title kept) */
  .ask-row { display: flex; flex-direction: column; align-items: stretch; gap: var(--space-3); padding: var(--space-4); margin-top: var(--space-3); }
  .ask-head { display: flex; gap: var(--space-3); align-items: center; }
  .ask-ic { width: var(--space-8); height: var(--space-8); }
  .ask-ic .ic { width: var(--space-4); height: var(--space-4); }
  .ask-row > p { margin-top: 0; }
  .ask-row .btn { width: 100%; margin-top: var(--space-1); }
}
/* OS-2 (D2): the bottom card is the quiet second entry point (secondary button; one primary per page) */
.cta.quiet-cta .h3 { font-size: var(--size-md); }
/* QAC-4: on the narrowest phones (320-360 px) the summary's "Written with AI…" chip and a long device-type
   label ("Example Receiver Co. device, type unknown") wrap instead of pushing the page sideways. Scoped below
   the 390 px approved renders, which are unchanged. */
@media (max-width: 360px) {
  .summary-head .chip { white-space: normal; text-align: left; }
  .dev-type { white-space: normal; }
  .finding-body dd { min-width: 0; }
}

/* OS-1: the "working on an answer" bubble (streamed waiting page and the timeout state). The waiting page
   loads scrolled to the top (a browser can't scroll to a fragment while the response is still streaming),
   so the bubble is a full-width sticky footer of the conversation column with a soft top fade (DRH-1):
   in view at once on a long conversation, in its natural place on a short one. */
.msg-text.thinking { display: flex; align-items: center; gap: var(--space-3); }   /* DRH2-5: dots never wrap onto their own line */
.thinking-text { display: flex; flex-direction: column; gap: var(--space-1); min-width: 0; }
.thinking-text .xs { color: var(--color-subtle); }
/* DRH2-1: the C5 way out reads as a link (accent + underline), not a caption */
.thinking-text a { color: var(--color-accent); text-decoration: underline; text-underline-offset: var(--space-1); }
.dots { flex: none; }
.msg.working {
  max-width: none; width: 100%; position: sticky; bottom: 0;
  padding: var(--space-12) 0 var(--space-4);     /* DRH2-2: a 24 px fade, then a 24 px solid band, so no label peeks above the pinned one */
  background: linear-gradient(to bottom, transparent, var(--color-bg) var(--space-6), var(--color-bg));
}
.msg.working .msg-who, .msg.working .msg-text { max-width: 85%; }
.msg.working .msg-text { box-shadow: var(--shadow-card); }
@media (max-width: 640px) { .msg.working .msg-who, .msg.working .msg-text { max-width: 92%; } }
/* DRH-7: an anchor never lands flush against the top edge */
#latest, #working { scroll-margin-top: var(--space-6); }
/* DRH-5: a disabled field looks disabled (the waiting page's composer) */
.input:disabled { background: var(--color-surface-2); color: var(--color-muted); }
/* Reduced motion: no pulsing; the dots stay in the frozen pattern and the text carries the state. */
@media (prefers-reduced-motion: reduce) {
  .dots i { animation: none; }
  .dots i:nth-child(1) { opacity: 0.9; }
  .dots i:nth-child(2) { opacity: 0.55; }
  .dots i:nth-child(3) { opacity: 0.25; }
}

/* Three topbar actions (Ask / Download PDF / Share, strategy round B3): the full labels need about 770 px,
   so the short labels take over below 900 px (the exe's 900-wide report window keeps the full ones). */
@media (max-width: 899px) {
  .topbar-actions .btn-label { display: none; }
  .topbar-actions .btn-label-short { display: inline; }
}
/* Narrow phones (below 390 px): the three short actions no longer fit beside the wordmark (one row needs
   383 px; DRSW-6); they wrap under it as a second row, left-aligned. 390 px and up are unchanged. */
/* "keeliva" is wider than the old name: a slightly shorter wordmark keeps the one row at 390 px (it needed 392). */
@media (max-width: 399px) {
  .topbar-in .wordmark svg.wm { height: var(--space-5); }
}
@media (max-width: 389px) {
  .topbar-in { flex-wrap: wrap; row-gap: var(--space-3); }
  .topbar-actions { flex: 1 0 100%; }
}
@media (max-width: 640px) {
  .topbar-in { padding: var(--space-3) var(--space-4); }
  .doc { padding: var(--space-6) var(--space-4) var(--space-12); }
  .hero { padding: var(--space-5); }
  .hero .h1 { font-size: var(--size-xl); }
  .hero-grades { grid-template-columns: 1fr; margin-top: var(--space-5); }
  .hero-grade { padding: var(--space-4); gap: var(--space-4); }
  .hero-grade .grade { font-size: var(--size-3xl); width: calc(var(--size-3xl) * 1.6); height: calc(var(--size-3xl) * 1.6); }
  .card-pad { padding: var(--space-5); }
  .finding { padding: var(--space-5); }
  .finding-body { grid-template-columns: 1fr; gap: var(--space-1); }
  .finding-body dd + dt { margin-top: var(--space-2); }
  .tech-body li { grid-template-columns: 1fr; gap: var(--space-1); }
  .cta { flex-direction: column; align-items: stretch; }
  .facts { grid-template-columns: 1fr; }
  .more { padding: var(--space-4) var(--space-5); }
  .msg { max-width: 92%; }
  .chat { padding: var(--space-5) var(--space-4) var(--space-10); }
  .composer-row .btn { width: 100%; }
}

/* ================= Exe window ================= */
.exe { height: 100vh; display: grid; grid-template-rows: auto 1fr auto; background: var(--color-bg); overflow: hidden; }
.exe-top { display: flex; align-items: center; justify-content: space-between; padding: var(--space-4) var(--space-8); background: var(--color-surface); border-bottom: var(--layout-border-width) solid var(--color-border); }
.exe-steps { display: flex; gap: var(--space-2); align-items: center; font-size: var(--size-xs); color: var(--color-subtle); font-weight: var(--font-weight-medium); }
.exe-steps .pip { width: var(--space-6); height: var(--space-1); border-radius: var(--radius-pill); background: var(--color-border); }
.exe-steps .pip.on { background: var(--color-accent); }
.exe-main { overflow-y: auto; padding: var(--space-6) var(--space-8) var(--space-4); }
.exe-col { max-width: var(--layout-exe-content); margin: 0 auto; }
.exe-col.wide { max-width: calc(var(--layout-exe-content) + var(--space-16) * 2.5); }
.exe-col > * + * { margin-top: var(--space-4); }
.exe-bar { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); padding: var(--space-4) var(--space-8); background: var(--color-surface); border-top: var(--layout-border-width) solid var(--color-border); }
.exe-bar .right { display: flex; gap: var(--space-3); align-items: center; }
.consent-text { font-size: var(--size-sm); line-height: var(--leading-body); color: var(--color-ink-2); background: var(--color-surface); border: var(--layout-border-width) solid var(--color-border); border-radius: var(--radius-card); padding: var(--space-4) var(--space-5); }
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); }
.preview-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: var(--space-5); align-items: start; }
.tally { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-3); }
.tally > div { padding: var(--space-3) var(--space-4); border-radius: var(--radius-card); border: var(--layout-border-width) solid var(--color-border); background: var(--color-surface); }
.tally .n { font-family: var(--font-family-display); font-size: var(--size-xl); font-weight: var(--font-weight-semibold); font-variant-numeric: tabular-nums; line-height: var(--leading-tight); }
.unlock { padding: var(--space-5) var(--space-6); background: var(--color-surface); border: var(--layout-border-width) solid var(--color-border); border-radius: var(--radius-card); box-shadow: var(--shadow-card); }
.price { font-family: var(--font-family-display); font-size: var(--size-2xl); font-weight: var(--font-weight-semibold); letter-spacing: var(--tracking-tight); }
.netlist li { display: grid; grid-template-columns: auto 1fr auto; gap: var(--space-3); align-items: center; padding: var(--space-3) var(--space-4); border-top: var(--layout-border-width) solid var(--color-surface-3); }
.netlist li:first-child { border-top: 0; }
.netlist .ic { color: var(--color-muted); }
.netlist.skipped li { color: var(--color-muted); }
.inwin { height: 100vh; display: grid; grid-template-rows: auto 1fr; }
.inwin-bar { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); padding: var(--space-3) var(--space-6); background: var(--color-surface); border-bottom: var(--layout-border-width) solid var(--color-border); }
.inwin-code { display: flex; align-items: center; gap: var(--space-4); font-size: var(--size-sm); }
.inwin-code .code-big { font-size: var(--size-lg); }
.inwin iframe { border: 0; width: 100%; height: 100%; background: var(--color-bg); }

/* ================= PDF ================= */
/* @page rules (margins, running footer) are generated by build.py from tokens.json:
   custom properties are not available inside @page margin boxes. */
.pdf { background: var(--color-surface); font-size: var(--print-body); line-height: var(--leading-body); }
.pdf .page-break { break-before: page; }
.pdf .keep { break-inside: avoid; }
.pdf h2, .pdf h3, .pdf .block-title { break-after: avoid; }
.pdf .p-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 4mm; border-bottom: var(--layout-border-width) solid var(--color-border); }
.pdf .p-title { font-family: var(--font-family-display); font-size: var(--print-h1); font-weight: var(--font-weight-semibold); letter-spacing: var(--tracking-tight); line-height: var(--leading-tight); margin-top: 8mm; }
.pdf .p-meta { color: var(--color-muted); font-size: var(--print-small); margin-top: 2mm; }
.pdf .p-grades { display: grid; grid-template-columns: 1fr 1fr; gap: 4mm; margin-top: 6mm; }
.pdf .card-pad { padding: 5mm 6mm; }
.pdf .hero-grade { padding: 4mm 5mm; gap: 5mm; background: var(--color-surface); }
.pdf .hero-grade .grade { font-size: var(--print-grade); width: calc(var(--print-grade) * 1.6); height: calc(var(--print-grade) * 1.6); }
.pdf .hero-grade .label, .pdf .hero-grade .counts { font-size: var(--print-small); }
.pdf .hero-grade .meaning { font-size: var(--print-h3); }
.pdf .p-sec { margin-top: 7mm; }
.pdf .p-h2 { font-family: var(--font-family-display); font-size: var(--print-h2); font-weight: var(--font-weight-semibold); letter-spacing: var(--tracking-tight); }
.pdf .p-h3 { font-size: var(--print-h3); font-weight: var(--font-weight-semibold); }
.pdf .eyebrow, .pdf .small, .pdf .xs, .pdf .chip, .pdf .cat-name, .pdf .cat-meta, .pdf .caveat, .pdf .tech-body, .pdf .finding-body dt, .pdf .dev, .pdf .actions-list a { font-size: var(--print-small); }
.pdf .card { box-shadow: none; }
.pdf .finding { padding: 4.5mm 5mm; border: var(--layout-border-width) solid var(--color-border); border-radius: var(--radius-card); margin-top: 3mm; break-inside: avoid; }
.pdf .finding + .finding { border-top: var(--layout-border-width) solid var(--color-border); }
.pdf .finding-title { font-size: var(--print-h3); margin-top: 1.5mm; }
.pdf .finding-body { margin-top: 2.5mm; gap: 1.2mm 4mm; grid-template-columns: 8.5em 1fr; }
.pdf .tech-print { margin-top: 3mm; padding-top: 2.5mm; border-top: var(--layout-border-width) dashed var(--color-border); }
.pdf .tech-print .tech-body { margin-top: 1mm; }
.pdf .tech-body li { padding: 1mm 0; grid-template-columns: 7.5em 1fr; }
.pdf .cats { break-inside: avoid; }
.pdf .cat { padding: 1.8mm 4mm; }
.pdf .caveat { padding: 3mm 4mm; margin-top: 2.5mm; break-inside: avoid; }
.pdf .actions-list li { padding: 2.2mm 0; }
.pdf .qr-panel { display: grid; grid-template-columns: auto 1fr; gap: 5mm; align-items: center; padding: 4mm 5mm; border: var(--layout-border-width) solid var(--color-border); border-radius: var(--radius-card); background: var(--color-surface-2); margin-top: 6mm; break-inside: avoid; }
.pdf .qr-panel svg { width: 27mm; height: 27mm; display: block; }
/* P4 review: room for a full report link (22-character id) on one line on A4 and Letter */
.pdf .qr-big { grid-template-columns: auto 1fr; padding: 7mm; gap: 6mm; }
.pdf .qr-big svg { width: 36mm; height: 36mm; }
/* the printed report link (closing link box, cover QR line) never wraps: a 22-character id stays whole */
.pdf .link-box a, .pdf .report-link { white-space: nowrap; }
.pdf .qr-panel .code-big { font-size: var(--print-h2); }
.pdf .link-box { font-size: var(--print-small); }
.pdf .facts { font-size: var(--print-small); gap: 4mm 8mm; }
.pdf .facts h4 { font-size: var(--print-body); }
.pdf .summary-text { font-size: var(--print-body); line-height: var(--leading-body); color: var(--color-ink-2); }
.pdf .small-item { font-size: var(--print-small); padding: 2mm 0; break-inside: avoid; }
.pdf .net { font-size: 0.9em; }
.pdf .appx { margin-top: 4mm; padding-top: 3mm; border-top: var(--layout-border-width) solid var(--color-border); }
.pdf .appx-head { display: flex; gap: 3mm; align-items: baseline; }
.pdf .appx-ref { font-family: var(--font-family-mono); font-size: var(--print-small); color: var(--color-subtle); font-weight: var(--font-weight-semibold); }

.exe-state { min-height: 100%; display: flex; flex-direction: column; justify-content: center; padding: var(--space-8) 0; }
.exe-main:has(.exe-state) .exe-col { height: 100%; }
.pdf .finding.compact { padding: 3.5mm 5mm; }
.pdf .finding.compact .finding-body { margin-top: 1.5mm; }
.pdf .p-sec + .p-sec { margin-top: 10mm; }

/* cover compaction (DR-5): page 1 must hold grades, summary, actions and the QR panel on A4 and Letter */
.pdf .cover .p-grades { margin-top: 4mm; gap: 3mm; }
.pdf .cover .hero-grade { padding: 3mm 4mm; gap: 4mm; }
.pdf .cover .hero-grade .grade { font-size: var(--print-h1); width: calc(var(--print-h1) * 2); height: calc(var(--print-h1) * 2); }
.pdf .cover .hero-grade .meaning { font-size: var(--print-body); }
.pdf .cover .card-pad { padding: 4mm 5mm; }
.pdf .cover .summary-text { line-height: var(--leading-snug); }
.pdf .cover .actions-list li { padding: 1mm 0; }
.pdf .cover .p-head { padding-bottom: 3mm; }
.pdf .cover .block-title { margin-bottom: 1mm; }
.pdf .cover .qr-panel { margin-top: 4mm; padding: 3mm 4mm; gap: 4mm; }
.pdf .cover .qr-panel svg { width: 22mm; height: 22mm; }
/* scroll cue (DR-4/16/34): fade only when the content really overflows. A scroll-driven
   animation is inactive when there is nothing to scroll, so short screens get no fade. */
@keyframes scrollcue {
  0%, 98% { -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - var(--space-8)), transparent);
            mask-image: linear-gradient(to bottom, #000 calc(100% - var(--space-8)), transparent); }
  100% { -webkit-mask-image: none; mask-image: none; }
}
.exe-main { animation: scrollcue linear both; animation-timeline: scroll(self); }

/* ================= Revision 1: coloured top banner (R-6) ================= */
.topbar, .exe-top, .inwin-bar { background: var(--color-banner); border-bottom: 0; }
.topbar .wordmark, .exe-top .wordmark, .inwin-bar .wordmark { color: var(--color-banner-ink); }
.topbar .wordmark .mark, .exe-top .wordmark .mark, .inwin-bar .wordmark .mark { background: var(--color-banner-ink); }
.topbar .wordmark .mark::after, .exe-top .wordmark .mark::after, .inwin-bar .wordmark .mark::after { background: var(--color-banner); }
.topbar .btn-secondary, .inwin-bar .btn-secondary { background: transparent; color: var(--color-banner-ink); border-color: var(--color-banner-line); }
.topbar .btn-secondary:hover, .inwin-bar .btn-secondary:hover { background: var(--color-banner-line); }
.topbar .btn-quiet, .topbar .xs.muted, .inwin-bar .muted { color: var(--color-banner-muted); }
.inwin-bar .code-big { color: var(--color-banner-ink); }
.exe-steps { color: var(--color-banner-muted); }
.exe-steps .pip { background: var(--color-banner-line); }
.exe-steps .pip.on { background: var(--color-banner-ink); }
.pdf .p-head { background: var(--color-banner); border-bottom: 0; padding: 3.5mm 5mm; border-radius: var(--radius-card); }
.pdf .p-head .wordmark { color: var(--color-banner-ink); }
.pdf .p-head .wordmark .mark { background: var(--color-banner-ink); }
.pdf .p-head .wordmark .mark::after { background: var(--color-banner); }
.pdf .p-head .xs.muted { color: var(--color-banner-muted); }
.minifoot { color: var(--color-subtle); }
/* Revision 1 hero: dial on top, text under it */
.hero-grade { flex-direction: column; text-align: center; gap: var(--space-3); padding: var(--space-6) var(--space-5); }
.hero-grade .counts { margin-top: var(--space-2); }
.pdf .hero-grade { flex-direction: row; text-align: left; gap: 4mm; padding: 3mm 4mm; }
.pdf .gblock { width: 34mm; }
.pdf .gword-big { font-size: var(--print-h3); }
.pdf .gblock-label, .pdf .dial-ends { font-size: 8pt; }
.pdf .gword { font-size: var(--print-small); }
@media (max-width: 640px) { .sec-head { flex-direction: column; } .sec-grade { align-items: flex-start; } }
/* plans comparison (mock-up) */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.plan { padding: var(--space-5); border: var(--layout-border-width) solid var(--color-border); border-radius: var(--radius-card); background: var(--color-surface); }
.plan.featured { border-color: var(--color-accent); box-shadow: var(--shadow-focus); }
.plan .price { font-size: var(--size-xl); }
.mock-tag { display: inline-flex; font-size: var(--size-xs); font-weight: var(--font-weight-semibold); color: var(--color-subtle); border: var(--layout-border-width) dashed var(--color-border-strong); border-radius: var(--radius-pill); padding: 0 var(--space-2); }
details.shared { border: var(--layout-border-width) solid var(--color-border); border-radius: var(--radius-card); background: var(--color-surface); padding: var(--space-3) var(--space-4); }
details.shared > summary { cursor: pointer; list-style: none; font-size: var(--size-sm); font-weight: var(--font-weight-semibold); color: var(--color-accent); display: inline-flex; align-items: center; gap: var(--space-2); }
details.shared > summary::-webkit-details-marker { display: none; }
details.shared[open] > summary .chev { transform: rotate(90deg); }
details.shared .consent-full { margin-top: var(--space-3); font-size: var(--size-sm); color: var(--color-ink-2); line-height: var(--leading-body); }
.lead-consent { font-size: var(--size-md); line-height: var(--leading-body); color: var(--color-ink); background: var(--color-surface); border: var(--layout-border-width) solid var(--color-border); border-radius: var(--radius-card); padding: var(--space-5); }
.suggest { display: flex; gap: var(--space-2); align-items: center; font-size: var(--size-sm); color: var(--color-ink-2); background: var(--color-accent-soft); border-radius: var(--radius-control); padding: var(--space-2) var(--space-3); margin-top: var(--space-2); }
.pdf .cover .gblock { width: 27mm; }
.pdf .cover .dial-ends { display: none; }
.pdf .cover .hero-grade .counts { margin-top: 1mm; }
.pdf .cover .hero-grade { align-items: center; }
.pdf .cover .p-title { margin-top: 3mm !important; }
.pdf .cover .qr-panel svg { width: 20mm; height: 20mm; }
.pdf .cover .summary-text { font-size: var(--print-small); }

/* ================= Revision 1 step D: navy body tints (owner: "a bit more colour") =================
   Page = --color-bg (light navy tint). Key areas sit on tinted panels; white cards inside them keep
   grade/severity colours on white (their AA pairs). Tints never carry meaning. */
.hero { background: var(--color-tint-panel); border-color: var(--color-tint-line); box-shadow: none; }
.hero .hero-grade { background: var(--color-surface); border-color: var(--color-tint-line); }
section[aria-label="Summary"] { background: var(--color-tint-soft); border-color: var(--color-tint-line); box-shadow: none; }
section[aria-label="Summary"] .actions-list li { border-top-color: var(--color-tint-line); }
.plans { background: var(--color-tint-panel); padding: var(--space-4); border-radius: var(--radius-lg); }
details.shared { background: var(--color-tint-soft); border-color: var(--color-tint-line); }
.lead-consent { background: var(--color-tint-soft); border-color: var(--color-tint-line); }
.cats { border-color: var(--color-tint-line); }
.card { border-color: var(--color-tint-line); }
.unlock { border-color: var(--color-tint-line); }
.cta { background: var(--color-tint-panel); border-color: var(--color-tint-line); box-shadow: none; }
/* PDF: tints only in the header band, hero tiles and summary panel; page stays white */
.pdf .hero-grade { background: var(--color-tint-soft); border-color: var(--color-tint-line); }
.pdf section[aria-label="Summary"] { background: var(--color-tint-soft); }
.pdf .qr-panel { background: var(--color-surface); border-color: var(--color-tint-line); }
.hero .eyebrow, .hero .hero-meta, .cta .muted { color: var(--color-muted); }
.sec-head h2 { border-left: var(--space-1) solid var(--color-banner); padding-left: var(--space-3); }
.sec-head .sec-sub { padding-left: calc(var(--space-3) + var(--space-1)); }
/* DR-40d: the part being graded is named above the dial (web/exe); the PDF keeps it in the text column */
.tile-label { font-size: var(--size-sm); font-weight: var(--font-weight-semibold); color: var(--color-ink-2); }
.hero-grade .label.pdf-only { display: none; }
.pdf .hero-grade .tile-label { display: none; }
.pdf .hero-grade .label.pdf-only { display: block; }
/* DR-41: grade words never on a tint, in the PDF too */
.pdf .hero-grade { background: var(--color-surface); }
/* "Serious Issues" (longest grade word) stays on one line on the PDF cover */
.pdf .cover .gblock { width: 34mm; }
.pdf .gword-big { white-space: nowrap; }

/* Keeliva brand (design_status 'Keeliva brand applied' item 3): PDF header wordmark */
.pdf .p-head .wordmark svg.wm { height: 7mm; }
.pdf .cover .p-head { padding: 2mm 5mm; }

/* ============ M6.1: classes replacing the prototype's inline styles ============
   The prototype set these as style="" attributes, which beat every selector. They are
   !important here so they keep that precedence (same rendering, no inline styles). */
.mt-1 { margin-top: var(--space-1) !important; }
.mt-2 { margin-top: var(--space-2) !important; }
.mt-3 { margin-top: var(--space-3) !important; }
.mt-4 { margin-top: var(--space-4) !important; }
.mt-5 { margin-top: var(--space-5) !important; }
.mt-6 { margin-top: var(--space-6) !important; }
.mb-5 { margin-bottom: var(--space-5) !important; }
.pmt-1 { margin-top: 1mm !important; }
.pmt-2 { margin-top: 2mm !important; }
.pmt-3 { margin-top: 3mm !important; }
.pmt-4 { margin-top: 4mm !important; }
.pmt-5 { margin-top: 5mm !important; }
.pmt-6 { margin-top: 6mm !important; }
.pmt-9 { margin-top: 9mm !important; }
.pmb-4 { margin-bottom: 4mm !important; }
.fw-regular { font-weight: var(--font-weight-regular) !important; }
.fw-medium { font-weight: var(--font-weight-medium) !important; }
.fs-inherit { font-size: inherit !important; }
.fs-print-body { font-size: var(--print-body) !important; }
.ai-expl { margin-top: var(--space-3) !important; color: var(--color-ink-2) !important; }
.nothing-found { margin-top: var(--space-6) !important; display: flex !important; gap: var(--space-3) !important; align-items: center !important; }
.cat-note { text-align: left !important; }
.qr-code-row { display: flex !important; gap: 4mm !important; align-items: baseline !important; margin-top: 1.5mm !important; flex-wrap: wrap !important; }

/* Dial (ui/grades.py): colours by class instead of style="stroke/fill: ..." */
.dial-seg.dial-f { stroke: var(--color-dial-f); }
.dial-seg.dial-d { stroke: var(--color-dial-d); }
.dial-seg.dial-c { stroke: var(--color-dial-c); }
.dial-seg.dial-b { stroke: var(--color-dial-b); }
.dial-seg.dial-a { stroke: var(--color-dial-a); }
.dial-seg.dial-track { stroke: var(--color-dial-track); }
.dial-needle { stroke: var(--color-dial-needle); }
.dial-hub { fill: var(--color-dial-needle); }

/* QR code (ui/render.py): modules drawn in currentColor, ink from the tokens */
.qr-panel svg { color: var(--color-ink); }

/* Fix round 1 (REV61-5): network-supplied text never reorders the text around it */
.net, .tech-body code, bdi { unicode-bidi: isolate; }
/* Fix round 1 (QA61-3): long unbroken tokens in report text wrap instead of widening the page */
.finding-body dd, .caveat, .summary-text, .sec-sub, .hero-grade .counts, .small-item, .tech-body li > span,
.foot p, .facts p, .finding-title, .actions-list li { overflow-wrap: anywhere; }

/* ============ M6.2: hosted pages (access, chat, PDF states) — classes replacing the
   prototype's inline styles ============ */
.btn-block { width: 100%; }
.field-error { color: var(--color-error); }
.msg-text.thinking { display: flex; align-items: center; gap: var(--space-3); }
.doc > .status-notice { margin-bottom: var(--space-6); }
/* Chat questions-left bar: width in 5 % steps (the prototype used an inline width). */
.meter > .mw-0 { width: 0%; }
.meter > .mw-5 { width: 5%; }
.meter > .mw-10 { width: 10%; }
.meter > .mw-15 { width: 15%; }
.meter > .mw-20 { width: 20%; }
.meter > .mw-25 { width: 25%; }
.meter > .mw-30 { width: 30%; }
.meter > .mw-35 { width: 35%; }
.meter > .mw-40 { width: 40%; }
.meter > .mw-45 { width: 45%; }
.meter > .mw-50 { width: 50%; }
.meter > .mw-55 { width: 55%; }
.meter > .mw-60 { width: 60%; }
.meter > .mw-65 { width: 65%; }
.meter > .mw-70 { width: 70%; }
.meter > .mw-75 { width: 75%; }
.meter > .mw-80 { width: 80%; }
.meter > .mw-85 { width: 85%; }
.meter > .mw-90 { width: 90%; }
.meter > .mw-95 { width: 95%; }
.meter > .mw-100 { width: 100%; }

/* --- payment P4: "Manage subscription" (hosted subscriber card, PDF closing page) ----------- */
.manage-line { display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-2); align-items: baseline; margin-top: var(--space-2); }
.manage-line a { display: inline-flex; align-items: center; gap: var(--space-1); font-weight: var(--font-weight-medium); white-space: nowrap; }
.manage-line a .ic { width: var(--space-4); height: var(--space-4); }
.manage-line .who { color: var(--color-muted); }
.pdf .manage-line { display: block; margin-top: 2mm; }
.pdf .manage-line strong { color: var(--color-ink); }
.pdf .manage-line .url { font-family: var(--font-family-mono); overflow-wrap: anywhere; }

/* ---------- Alerts: "Since your scan" panel + unsubscribe/preference pages (design/alerts/panel.css,
   owner-approved 2026-10-13; tokens only; wired 2026-10-13). ---------- */

/* ---------- hero jump line (only when the panel has open items) ---------- */
.since-jump { display: inline-flex; align-items: center; gap: var(--space-1); font-weight: var(--font-weight-semibold); }
.since-jump .ic { width: var(--space-4); height: var(--space-4); }

/* ---------- panel ---------- */
.since { padding: var(--space-6); background: var(--color-surface); }
.since-head { display: flex; justify-content: space-between; gap: var(--space-4); align-items: flex-start; flex-wrap: wrap; }
.since-head .h2 { margin-top: var(--space-1); }
.since-head .sec-sub { max-width: 60ch; }
.since-checked { display: inline-flex; align-items: center; gap: var(--space-2); font-size: var(--size-sm); color: var(--color-muted); white-space: nowrap; margin-top: var(--space-1); }
.since-checked .ic { color: var(--color-ok); }
.since-list { margin-top: var(--space-5); border-top: var(--layout-border-width) solid var(--color-border); }
.since-item { padding: var(--space-5) 0; border-bottom: var(--layout-border-width) solid var(--color-border); }
.since-item:last-child { border-bottom: 0; padding-bottom: var(--space-2); }
.since-top { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--space-3); flex-wrap: wrap; }
.since-chips { display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-2); }
.since-when { font-size: var(--size-xs); color: var(--color-subtle); font-variant-numeric: tabular-nums; white-space: nowrap; }
.since-item .h4 { margin-top: var(--space-2); font-size: var(--size-lg); line-height: var(--leading-snug); letter-spacing: var(--tracking-tight); }
.since-item .finding-body { margin-top: var(--space-3); }
.since-item details.tech { margin-top: var(--space-3); }
/* chip variant the panel adds: "actively exploited" (DRA-10: at most three chips per item) */
.chip-exploited { color: var(--color-sev-high); background: var(--color-sev-high-soft); }

/* report-only items fold (same pattern as details.finding) */
details.since-fold > summary { list-style: none; cursor: pointer; }
details.since-fold > summary::-webkit-details-marker { display: none; }
details.since-fold > summary .fold-hint { display: inline-flex; align-items: center; gap: var(--space-1); font-size: var(--size-xs); color: var(--color-accent); font-weight: var(--font-weight-semibold); margin-top: var(--space-2); }
details.since-fold[open] > summary .fold-hint { display: none; }
details.since-fold > summary .h4 { font-size: var(--size-md); }

/* ---------- D9 feedback: two plain POST buttons, no script ---------- */
.useful { display: flex; align-items: center; gap: var(--space-2); flex-wrap: wrap; margin-top: var(--space-4); font-size: var(--size-sm); color: var(--color-muted); }
.useful span { margin-right: var(--space-1); }
.useful .btn-sm { padding: var(--space-1) var(--space-3); font-size: var(--size-sm); }
.useful-done { display: inline-flex; align-items: center; gap: var(--space-2); margin-top: var(--space-4); font-size: var(--size-sm); color: var(--color-muted); }
.useful-done .ic { color: var(--color-ok); }
.useful-done .btn-quiet { font-size: var(--size-xs); padding: var(--space-1) var(--space-2); color: var(--color-accent); }

/* ---------- earlier / resolved items ---------- */
.since .more { padding: var(--space-4) 0 0; border-top: var(--layout-border-width) solid var(--color-border); margin-top: var(--space-2); }
.since .more > summary { font-size: var(--size-sm); }
.since-resolved { display: grid; grid-template-columns: auto 1fr auto; gap: var(--space-3); align-items: baseline; padding: var(--space-3) 0; font-size: var(--size-sm); color: var(--color-ink-2); border-top: var(--layout-border-width) solid var(--color-surface-3); }
.since-resolved .ic { color: var(--color-ok); align-self: center; }
.since-resolved .since-when { text-align: right; }

/* ---------- empty / stopped states ---------- */
.since-empty { display: grid; grid-template-columns: auto 1fr; gap: var(--space-3); margin-top: var(--space-5); padding: var(--space-4) var(--space-5); border-radius: var(--radius-card); background: var(--color-ok-soft); color: var(--color-ink-2); font-size: var(--size-sm); }
.since-empty .ic { color: var(--color-ok); margin-top: 0.15em; }
.since-empty strong { color: var(--color-ink); }
.since-note { margin-top: var(--space-4); }

/* ---------- unsubscribe pages: preference radios (one choice, one button) ---------- */
.prefs { display: grid; gap: var(--space-3); margin-top: var(--space-5); text-align: left; }
.prefs .choice { position: relative; }
.prefs .choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.prefs .choice:has(input:checked) { border-color: var(--color-accent); box-shadow: var(--shadow-focus); }
.prefs .choice:has(input:checked) .radio { border: calc(var(--space-1) + var(--layout-border-width)) solid var(--color-accent); }
.prefs .choice:has(input:focus-visible) { outline: none; box-shadow: var(--shadow-focus); }
.prefs .choice-title { display: block; font-weight: var(--font-weight-semibold); }
.prefs .choice-sub { display: block; font-size: var(--size-sm); color: var(--color-muted); margin-top: var(--space-1); }
.prefs .choice-title .chip { margin-left: var(--space-2); vertical-align: 0.1em; }
.now-line { display: flex; align-items: center; gap: var(--space-2); font-size: var(--size-sm); font-weight: var(--font-weight-semibold); color: var(--color-ink); text-align: left; }
.now-line .ic { color: var(--color-muted); }
.manage-stack { display: grid; gap: var(--space-1); justify-items: start; }
.manage-stack a { display: inline-flex; align-items: center; gap: var(--space-1); font-weight: var(--font-weight-medium); }
.manage-stack a .ic { width: var(--space-4); height: var(--space-4); }
.access.wide { max-width: calc(var(--layout-exe-content) * 0.86); }

@media (max-width: 640px) {
  .since { padding: var(--space-5); }
  .since-when { white-space: normal; }
  .since-resolved { grid-template-columns: auto 1fr; }
  .since-resolved .since-when { grid-column: 2; text-align: left; }
}

/* owner change 2026-10-13: what the "Used in attacks elsewhere" chip means (once, under the head) */
.since-legend { margin-top: var(--space-3); max-width: 70ch; }

/* ===== Strategy round (owner-approved 2026-10-14; design .team/ux/strategy_design_status.md) ===== */
/* B3: hosted report, "Share with your IT person". The topbar action (third small button, "Share"
   on phones) jumps to the share card: a white card in the .cta layout (text left, button right)
   after the quiet "Still have questions?" card and before "About this scan". White, not tinted,
   so two tinted panels never sit together. */
#share { scroll-margin-top: var(--space-6); }
.share-card { background: var(--color-surface); border-color: var(--color-border); }
.share-card .share-ic { flex: none; width: var(--space-10); height: var(--space-10); border-radius: var(--radius-pill); display: inline-flex; align-items: center; justify-content: center; background: var(--color-accent-soft); color: var(--color-accent); }
.share-card .share-ic .ic { width: var(--space-5); height: var(--space-5); }
.share-card .share-text { display: flex; gap: var(--space-4); align-items: flex-start; min-width: 0; }
.share-card .btn { white-space: nowrap; }
@media (max-width: 640px) {
  .share-card { flex-direction: column; align-items: stretch; gap: var(--space-4); }
  .share-card .btn { width: 100%; }
}
/* B4: "Fixed this? Scan again to confirm" (variant A, SD-6): one more row at the end of every hosted
   finding card's label/value grid, in the same small label style as "Where"; the link goes to the one
   explanation in the footer (#scan-again). */
.finding-body dd.recheck { color: var(--color-muted); font-size: var(--size-sm); }
.finding-body dd.recheck a { color: var(--color-accent); font-weight: var(--font-weight-medium); }
#scan-again { scroll-margin-top: var(--space-6); }
/* PDF: the closing page's "Fixed something?" paragraph keeps the small muted style; the lead-in is
   bold like "Manage subscription". */
.pdf .recheck-line strong { color: var(--color-ink); }
/* DRSW-1 / QAST-2 (design decision A+, 2026-10-14): the PDF closing page only. The atomic "About this scan"
   block keeps the approved wording and still fits under the link card: "When" and "How to read the grades"
   run full width, grid gap 4 -> 3 mm, QR panel padding 7 -> 5 mm, tick rows tighter. QR size unchanged. */
.pdf .closing .facts > div:nth-child(3), .pdf .closing .facts > div:nth-child(4) { grid-column: 1 / -1; }
.pdf .closing .facts { gap: 3mm 8mm; }
.pdf .closing .qr-big { padding: 5mm 6mm; margin-top: 4mm; }
.pdf .closing .ticks li { padding: 1px 0; }

/* Sample-report additions (design/sample_report, strategy S3 / OD-11). Loaded AFTER report.css on
   the website's /sample-report page and in the sample PDF source. Tokens only (design/tokens.json via
   tokens.css), except the three presentation constants of the watermark (angle, opacity, blur radius),
   which have no token; the running "Sample report" line of the PDF lives in the generated
   sample-mark-<paper>.css (@page margin boxes can't read custom properties). */

/* --- web page: the full-width band above the report banner ------------------------------------ */
.sample-band {
  background: var(--color-tint-panel);
  border-bottom: var(--layout-border-width) solid var(--color-tint-line);
  color: var(--color-ink-2);
  font-size: var(--size-sm);
  line-height: var(--leading-snug);
  text-align: center;
  padding: var(--space-2) var(--space-4);
}
.sample-band strong { font-weight: var(--font-weight-semibold); color: var(--color-ink); }
.sample-band a { color: var(--color-accent); font-weight: var(--font-weight-medium); }
.sample-band .nobr { white-space: nowrap; }

/* the in-column explanation under the banner (variant "band + note") */
.sample-note { margin-bottom: var(--space-6); }
.sample-note a { color: var(--color-accent); font-weight: var(--font-weight-medium); }
.wordmark { text-decoration: none; }

/* --- watermark: one word, diagonal, very light; repeats on every printed page (position: fixed) --- */
.sample-watermark {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) rotate(-30deg);
  font-family: var(--font-family-display);
  font-weight: var(--font-weight-bold);
  font-size: calc(var(--size-grade-hero) * 3);
  letter-spacing: var(--tracking-display);
  color: var(--color-ink);
  opacity: 0.0605;   /* owner 2026-10-15: 10 % darker than the reviewed 5.5 % */
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  z-index: 10;
}
.pdf .sample-watermark { font-size: calc(var(--print-grade-hero) * 3.6); }

/* --- PDF: cover note, the blurred placeholder code and its caption ------------------------------ */
.sample-cover-note { max-width: 70ch; }
/* The text under the blur is the placeholder XXX-XXX (never a real-format code); Chromium rasterizes a
   filtered element when printing, so the PDF's text layer holds no code at all (checked). */
.code-big.sample-blur { filter: blur(0.16em); }
.sample-code-note { display: block; margin-top: var(--space-1); }
.qr-code-row .sample-code-note { flex-basis: 100%; margin-top: 0; }

/* --- website page only: the legal contact line every keeliva.com page carries (CLAUDE.md) ----- */
.sample-legal { font-size: var(--size-xs); color: var(--color-subtle); }
