:root {
  color-scheme: light dark;
  --paper: #f6f7f9;
  --surface: #ffffff;
  --surface-2: #eef1f5;
  --ink: #171a1f;
  --ink-2: #4b5563;
  --ink-3: #8a94a6;
  --rule: #dfe4ea;
  --add-bg: #e1f5e7;
  --add-ink: #146c2e;
  --del-bg: #fbe5e3;
  --del-ink: #b3261e;
  --flag: #b45309;
  --flag-bg: #fdefc8;
  --hit: #146c2e;
  --hit-bg: #e1f5e7;
  --miss: #b3261e;
  --miss-bg: #fbe5e3;
  --decoy: #6d28d9;
  --decoy-bg: #ede9fe;
  --fp: #b45309;
  --fp-bg: #fdefc8;
  --nit: #64748b;
  --nit-bg: #e8ecf1;
  --action: #1d4ed8;
  --action-ink: #ffffff;
  --focus: #1d4ed8;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 6px;
  --shadow: 0 10px 30px rgb(15 23 42 / 0.12);
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0f1216;
    --surface: #161a20;
    --surface-2: #1d232b;
    --ink: #e7eaef;
    --ink-2: #aeb6c2;
    --ink-3: #7b8492;
    --rule: #2a313b;
    --add-bg: #14301f;
    --add-ink: #86e3a4;
    --del-bg: #3b1b19;
    --del-ink: #f5a59f;
    --flag: #f2b95a;
    --flag-bg: #3a2a0c;
    --hit: #86e3a4;
    --hit-bg: #14301f;
    --miss: #f5a59f;
    --miss-bg: #3b1b19;
    --decoy: #c4b5fd;
    --decoy-bg: #2b2148;
    --fp: #f2b95a;
    --fp-bg: #3a2a0c;
    --nit: #a5b0be;
    --nit-bg: #232a33;
    --action: #5b8def;
    --action-ink: #0b1220;
    --focus: #8ab4ff;
    --shadow: 0 10px 30px rgb(0 0 0 / 0.5);
  }
}

* { box-sizing: border-box; }
html { font-size: 16px; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--ink);
  background: var(--paper);
}
code, pre, kbd, .mono { font-family: var(--mono); font-size: 0.88em; }
a { color: var(--action); text-decoration-thickness: 1px; text-underline-offset: 2px; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.01em; margin: 0 0 0.5rem; }
h1 { font-size: 1.9rem; font-weight: 650; }
h2 { font-size: 1.25rem; font-weight: 650; margin-top: 2.5rem; }
h3 { font-size: 1rem; font-weight: 650; }
p { margin: 0 0 0.9rem; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.hidden { display: none !important; }
.muted { color: var(--ink-3); }
.js .js-hide { display: none !important; }
body:not(.js) .js-only { display: none !important; }
.inline { display: inline; }

/* navigation */
.site-nav { border-bottom: 1px solid var(--rule); background: var(--surface); }
.site-nav nav { max-width: 72rem; margin: 0 auto; padding: 0.6rem 1.25rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { font-family: var(--mono); font-weight: 700; font-size: 1.05rem; color: var(--ink); text-decoration: none; letter-spacing: -0.02em; }
.brand-mark { color: var(--action); margin-right: 0.15rem; }
.nav-links { display: flex; gap: 1.1rem; align-items: center; flex-wrap: wrap; }
.nav-links a { color: var(--ink-2); text-decoration: none; font-size: 0.9rem; }
.nav-links a:hover { color: var(--ink); text-decoration: underline; }
.nav-user { color: var(--ink-3); font-size: 0.85rem; }
.site-foot { max-width: 72rem; margin: 3rem auto 2rem; padding: 1rem 1.25rem; border-top: 1px solid var(--rule); display: flex; justify-content: space-between; color: var(--ink-3); font-size: 0.85rem; }

/* buttons and forms */
.button, button.button {
  display: inline-block; padding: 0.5rem 0.95rem; border: 1px solid var(--rule); border-radius: var(--radius);
  background: var(--surface); color: var(--ink); font: inherit; font-weight: 550; text-decoration: none; cursor: pointer; line-height: 1.25;
}
.button:hover { border-color: var(--ink-3); }
.button.primary { background: var(--action); border-color: var(--action); color: var(--action-ink); }
.button.primary:hover { filter: brightness(1.08); }
.button:disabled { opacity: 0.55; cursor: not-allowed; }
button.link { background: none; border: 0; padding: 0; color: var(--action); font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.cta { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 1.25rem; }
.field { display: block; margin-bottom: 0.9rem; font-weight: 550; font-size: 0.9rem; }
.field input, .field textarea, .field select, .where-fields input, .where-fields select {
  display: block; width: 100%; margin-top: 0.3rem; padding: 0.5rem 0.6rem; font: inherit; font-weight: 400;
  color: var(--ink); background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius);
}
textarea { resize: vertical; }
fieldset { border: 1px solid var(--rule); border-radius: var(--radius); padding: 0.75rem 0.9rem; margin: 0 0 0.9rem; }
legend { font-weight: 600; font-size: 0.85rem; padding: 0 0.3rem; }
.actions { display: flex; gap: 0.6rem; flex-wrap: wrap; align-items: center; }
.form-error { color: var(--miss); background: var(--miss-bg); padding: 0.5rem 0.7rem; border-radius: var(--radius); font-size: 0.9rem; }
.stack > * + * { margin-top: 0.25rem; }
.two-up { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 0 1.25rem; align-items: end; }
.check { display: flex; gap: 0.5rem; align-items: center; margin-bottom: 0.9rem; }
.hint { color: var(--ink-3); font-size: 0.85rem; }
kbd { border: 1px solid var(--rule); border-bottom-width: 2px; border-radius: 4px; padding: 0 0.3rem; background: var(--surface); }

/* landing */
.landing { max-width: 72rem; margin: 0 auto; padding: 0 1.25rem; }
.hero { padding: 4rem 0 2.5rem; max-width: 56rem; }
.hero-diff {
  margin: 0 0 1.5rem; padding: 0; background: none; font-size: clamp(1.15rem, 2.6vw, 1.9rem); line-height: 1.35; letter-spacing: -0.01em;
  white-space: pre-wrap; overflow-wrap: anywhere;
}
.hero-diff code { font-size: 1em; }
.hero-diff span { display: block; padding: 0.35em 0.6em; border-left: 4px solid transparent; }
.hero-diff .del { background: var(--del-bg); color: var(--del-ink); border-left-color: var(--del-ink); text-decoration: line-through; text-decoration-thickness: 1px; }
.hero-diff .add { background: var(--add-bg); color: var(--add-ink); border-left-color: var(--add-ink); font-weight: 700; }
.lede { font-size: 1.1rem; color: var(--ink-2); max-width: 46rem; }
.how, .scoring, .corpus, .for-teams { max-width: 56rem; padding-bottom: 1rem; }
.steps { padding-left: 1.4rem; display: grid; gap: 0.75rem; }
.steps li { padding-left: 0.4rem; }
.components { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1rem; margin: 0 0 1rem; }
.components div { border-top: 2px solid var(--ink); padding-top: 0.6rem; }
.components dt { font-weight: 650; display: flex; justify-content: space-between; align-items: baseline; }
.components dd { margin: 0.3rem 0 0; color: var(--ink-2); font-size: 0.9rem; }
.weight { font-family: var(--mono); font-size: 0.85rem; color: var(--ink-3); }
.weight::after { content: "%"; }
.gate-rule { border-left: 4px solid var(--miss); padding: 0.6rem 0.9rem; background: var(--miss-bg); color: var(--ink); border-radius: 0 var(--radius) var(--radius) 0; }
table { border-collapse: collapse; width: 100%; font-size: 0.9rem; }
th, td { text-align: left; padding: 0.5rem 0.6rem; border-bottom: 1px solid var(--rule); vertical-align: top; }
th { font-weight: 600; color: var(--ink-2); font-size: 0.8rem; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.pr-name { display: block; font-weight: 550; }
.pr-branch { font-family: var(--mono); font-size: 0.8rem; color: var(--ink-3); }

/* narrow pages */
.narrow { max-width: 44rem; margin: 0 auto; padding: 2.5rem 1.25rem 4rem; }
.crumb { color: var(--ink-3); font-size: 0.85rem; margin-bottom: 0.4rem; }
.rules { padding-left: 1.2rem; color: var(--ink-2); }
.rules li { margin-bottom: 0.4rem; }
.demo-card { border: 1px solid var(--rule); border-radius: var(--radius); padding: 1.1rem 1.25rem; margin-top: 1.25rem; background: var(--surface); }
.demo-card h2 { margin-top: 0; }
.demo-card .meta, .page-head .meta { color: var(--ink-3); font-size: 0.85rem; }
.plan { list-style: none; padding: 0; margin: 1.25rem 0; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--surface); }
.plan li { display: flex; gap: 0.8rem; align-items: baseline; padding: 0.7rem 1rem; border-bottom: 1px solid var(--rule); }
.plan li:last-child { border-bottom: 0; }
.plan .step-title { font-weight: 550; flex: 1; }
.plan .meta { color: var(--ink-3); font-size: 0.85rem; }
.plan li.done { color: var(--ink-3); }
.done-mark { color: var(--hit); font-size: 0.8rem; font-weight: 600; }
.start-form { margin-top: 1.5rem; }
.error h1 { font-size: 2.2rem; }
.invite-link { display: flex; gap: 0.6rem; align-items: center; flex-wrap: wrap; }
.invite-link code { padding: 0.5rem 0.7rem; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); overflow-wrap: anywhere; flex: 1; min-width: 12rem; }

/* admin */
.admin { max-width: 72rem; margin: 0 auto; padding: 2rem 1.25rem 4rem; }
.page-head { margin-bottom: 1.5rem; }
.card { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); padding: 1.1rem 1.25rem; margin: 1.5rem 0; }
.card h2 { margin-top: 0; }
.challenge-picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: 0.5rem; }
.check-card { display: flex; gap: 0.6rem; align-items: flex-start; padding: 0.55rem 0.6rem; border: 1px solid var(--rule); border-radius: var(--radius); cursor: pointer; }
.check-card:has(:checked) { border-color: var(--action); background: var(--surface-2); }
.check-card small { display: block; color: var(--ink-3); font-size: 0.8rem; }
.check-card input { margin-top: 0.25rem; }
.results a.breached { color: var(--miss); font-weight: 600; }
.danger-zone { margin-top: 2.5rem; padding-top: 1rem; border-top: 1px solid var(--rule); }
.archived { margin-top: 2rem; color: var(--ink-3); }
.empty { color: var(--ink-3); }

/* severity and outcome chips */
.sev, .mark, .cat { display: inline-block; font-size: 0.72rem; font-weight: 650; letter-spacing: 0.01em; padding: 0.05rem 0.45rem; border-radius: 999px; line-height: 1.4; vertical-align: middle; white-space: nowrap; }
.sev.blocker { background: var(--miss-bg); color: var(--miss); }
.sev.major { background: var(--fp-bg); color: var(--fp); }
.sev.minor { background: var(--surface-2); color: var(--ink-2); }
.sev.nit { background: var(--nit-bg); color: var(--nit); }
.cat { background: transparent; color: var(--ink-3); font-weight: 500; border: 1px solid var(--rule); }
.mark.hit, .mark.found { background: var(--hit-bg); color: var(--hit); }
.mark.missed { background: var(--miss-bg); color: var(--miss); }
.mark.false_positive, .mark.fp { background: var(--fp-bg); color: var(--fp); }
.mark.decoy { background: var(--decoy-bg); color: var(--decoy); }
.mark.nit, .mark.duplicate { background: var(--nit-bg); color: var(--nit); }
.mark.flagged { background: var(--flag-bg); color: var(--flag); }
.mark.continued { display: none; }

/* review page */
.review-page { background: var(--paper); }
.review-bar {
  position: sticky; top: 0; z-index: 5; display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap;
  min-height: 3.75rem; padding: 0.55rem 1rem; background: var(--surface); border-bottom: 1px solid var(--rule);
}
.pr-ident h1 { font-size: 1.05rem; margin: 0; font-weight: 650; }
.review-controls { display: flex; gap: 0.6rem; align-items: center; flex-wrap: wrap; }
.progress { color: var(--ink-3); font-size: 0.85rem; }
.time-left { font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: 0.9rem; padding: 0.3rem 0.6rem; border-radius: var(--radius); background: var(--surface-2); }
.time-left.urgent { background: var(--miss-bg); color: var(--miss); font-weight: 700; }
.count { display: inline-block; min-width: 1.4em; padding: 0 0.35em; margin-left: 0.2em; border-radius: 999px; background: var(--flag-bg); color: var(--flag); font-size: 0.8rem; text-align: center; }
.review-layout { display: grid; grid-template-columns: minmax(16rem, 20rem) minmax(0, 1fr); gap: 1rem; padding: 1rem; align-items: start; }
@media (max-width: 60rem) { .review-layout { grid-template-columns: 1fr; } .pr-side { position: static; } }
.pr-side { position: sticky; top: 3.6rem; max-height: calc(100vh - 4.6rem); overflow: auto; }
.pr-description { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); padding: 0.9rem 1rem; font-size: 0.9rem; }
.pr-description h3, .pr-description h4 { margin-top: 0.8rem; }
.pr-description ul { padding-left: 1.2rem; }
.pr-author { color: var(--ink-2); }
.plus { color: var(--add-ink); font-family: var(--mono); font-size: 0.8rem; }
.minus { color: var(--del-ink); font-family: var(--mono); font-size: 0.8rem; margin-left: 0.3rem; }
.file-nav { margin-top: 1rem; }
.file-nav h2 { font-size: 0.8rem; color: var(--ink-3); margin: 0 0 0.4rem; text-transform: none; }
.file-nav ul { list-style: none; padding: 0; margin: 0; }
.file-nav a { display: flex; justify-content: space-between; gap: 0.5rem; padding: 0.3rem 0.4rem; border-radius: 4px; text-decoration: none; color: var(--ink); font-size: 0.85rem; }
.file-nav a:hover { background: var(--surface-2); }
.file-nav code { overflow-wrap: anywhere; }
.diff-column { min-width: 0; }

/* diff tables */
/* overflow: clip (not hidden) so the card is not a scroll container and the header sticks to the viewport */
.file { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); margin-bottom: 1rem; overflow: clip; }
.file-head { position: sticky; top: 3.75rem; z-index: 2; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 0.5rem 0.8rem; background: var(--surface-2); border-bottom: 1px solid var(--rule); border-radius: var(--radius) var(--radius) 0 0; }
.report-page .file-head { top: 0; }
.file-head h3 { margin: 0; font-size: 0.9rem; font-weight: 600; overflow-wrap: anywhere; }
.file-stats { display: flex; gap: 0.3rem; align-items: center; font-size: 0.8rem; }
.file-stats .status { color: var(--ink-3); margin-right: 0.3rem; }
.diff-scroll { overflow-x: auto; }
table.diff { table-layout: fixed; width: 100%; min-width: 40rem; font-family: var(--mono); font-size: 0.8rem; line-height: 1.45; border-collapse: collapse; }
table.diff td { padding: 0; border: 0; vertical-align: top; }
col.c-num { width: 3.4rem; }
col.c-gutter { width: 3.6rem; }
table.diff td.num { text-align: right; padding: 0 0.5rem; color: var(--ink-3); user-select: none; background: var(--surface-2); border-right: 1px solid var(--rule); font-variant-numeric: tabular-nums; }
table.diff td.gutter { padding: 0 0.15rem; white-space: nowrap; position: relative; user-select: none; }
table.diff td.code { padding: 0 0.6rem 0 0.2rem; white-space: pre; overflow-wrap: normal; }
.sign { display: inline-block; width: 1ch; margin-right: 0.4ch; color: var(--ink-3); }
tr.added td.code, tr.added td.gutter { background: var(--add-bg); }
tr.added td.code { color: var(--add-ink); }
tr.removed td.code, tr.removed td.gutter { background: var(--del-bg); }
tr.removed td.code { color: var(--del-ink); }
tr.line:hover td.code, tr.line:hover td.gutter { filter: brightness(0.97); }
@media (prefers-color-scheme: dark) { tr.line:hover td.code, tr.line:hover td.gutter { filter: brightness(1.15); } }
.flag { position: absolute; left: 0.15rem; top: 0.05rem; width: 1.25rem; height: 1.25rem; border-radius: 4px; border: 1px solid var(--action); background: var(--action); color: var(--action-ink); font: 700 0.85rem/1 var(--sans); cursor: pointer; opacity: 0; transition: opacity 80ms; padding: 0; }
tr.line:hover .flag, .flag:focus-visible, tr.line:focus-within .flag { opacity: 1; }
@media (hover: none) { .flag { opacity: 1; background: transparent; color: var(--action); border-color: color-mix(in srgb, var(--action) 45%, transparent); } }
.marks { display: inline-flex; gap: 0.15rem; margin-left: 1.5rem; }
.review-page .marks { margin-left: 1.5rem; }
.report-page .marks { margin-left: 0.15rem; }
tr.flagged td.code { box-shadow: inset 4px 0 0 var(--flag); }
tr.flagged.sev-blocker td.code { box-shadow: inset 4px 0 0 var(--miss); }
tr.defect td.code { box-shadow: inset 4px 0 0 var(--miss); }
tr.defect.hit td.code { box-shadow: inset 4px 0 0 var(--hit); }
tr.candidate.false_positive td.code { box-shadow: inset 4px 0 0 var(--fp); }
tr.candidate.decoy td.code { box-shadow: inset 4px 0 0 var(--decoy); }
tr.candidate.nit td.code { box-shadow: inset 4px 0 0 var(--nit); }
tr.fold td { padding: 0; background: var(--surface-2); }
tr.fold summary { cursor: pointer; padding: 0.25rem 0.8rem; color: var(--ink-3); font-family: var(--sans); font-size: 0.8rem; list-style: none; }
tr.fold summary::before { content: "▸ "; }
tr.fold details[open] > summary::before { content: "▾ "; }
table.diff.nested { min-width: 0; }
tr.note td { padding: 0.5rem 0.8rem 0.6rem 3.8rem; background: var(--surface); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); font-family: var(--sans); white-space: normal; }
.note-card { max-width: 56rem; border-left: 3px solid var(--rule); padding: 0.35rem 0.8rem; border-radius: 0 var(--radius) var(--radius) 0; background: var(--surface-2); }
.note-card.hit { border-left-color: var(--hit); }
.note-card.missed { border-left-color: var(--miss); }
.note-card.false_positive { border-left-color: var(--fp); }
.note-card.decoy { border-left-color: var(--decoy); }
.note-card.nit, .note-card.duplicate { border-left-color: var(--nit); }
.note-head { margin: 0 0 0.3rem; display: flex; gap: 0.4rem; align-items: center; flex-wrap: wrap; font-size: 0.9rem; }
.note-candidate { margin: 0 0 0.3rem; font-size: 0.88rem; color: var(--ink-2); }
.note-candidate q { font-style: italic; }
.note-body { margin: 0; font-size: 0.88rem; color: var(--ink-2); }
.calib { font-size: 0.78rem; color: var(--ink-3); }

/* findings panel and finding form (popovers) */
[popover] { margin: 0; padding: 0; border: 0; background: transparent; color: inherit; inset: auto; }
[popover]::backdrop { background: transparent; }
.findings-panel { position: fixed; top: 3.6rem; right: 1rem; width: min(26rem, calc(100vw - 2rem)); max-height: calc(100vh - 5rem); overflow: auto; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); box-shadow: var(--shadow); padding: 0.9rem 1rem; }
.findings-panel header { display: flex; justify-content: space-between; align-items: baseline; }
.findings-panel h2 { margin: 0 0 0.6rem; font-size: 1rem; }
.finding-list { list-style: none; padding: 0; margin: 0; }
.finding-item { padding: 0.55rem 0; border-top: 1px solid var(--rule); font-size: 0.88rem; }
.finding-item a { text-decoration: none; }
.finding-item p { margin: 0.25rem 0 0.3rem; color: var(--ink-2); }
.finding-item .delete-finding { float: right; }
.finding-form { position: absolute; width: min(30rem, calc(100vw - 2rem)); background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); box-shadow: var(--shadow); padding: 0.9rem 1rem; }
.finding-form .where { font-weight: 600; margin-bottom: 0.5rem; }
.where-fields { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 0.5rem; font-size: 0.8rem; margin-bottom: 0.6rem; }
.js .where-fields { display: none; }
.severity { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.4rem; }
.sev-option { display: flex; flex-direction: column; align-items: flex-start; gap: 0.1rem; padding: 0.4rem 0.5rem; border: 1px solid var(--rule); border-radius: var(--radius); cursor: pointer; font-size: 0.8rem; }
.sev-option input { position: absolute; opacity: 0; pointer-events: none; }
.sev-option .sev-name { font-weight: 650; }
.sev-option .sev-hint { color: var(--ink-3); font-size: 0.72rem; }
.sev-option:has(:checked) { border-color: var(--action); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--action); }
.sev-option:has(:focus-visible) { outline: 2px solid var(--focus); }
@media (max-width: 40rem) { .severity { grid-template-columns: 1fr 1fr; } .where-fields { grid-template-columns: 1fr 1fr; } }

/* submit dialog */
dialog { border: 1px solid var(--rule); border-radius: 10px; padding: 1.25rem 1.4rem; max-width: 34rem; width: calc(100vw - 2rem); background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
dialog::backdrop { background: rgb(0 0 0 / 0.45); }
dialog h2 { margin-top: 0; }
.verdict-option { display: flex; gap: 0.6rem; align-items: flex-start; padding: 0.5rem 0.6rem; border: 1px solid var(--rule); border-radius: var(--radius); margin-bottom: 0.4rem; cursor: pointer; }
.verdict-option:has(:checked) { border-color: var(--action); background: var(--surface-2); }
.verdict-option small { display: block; color: var(--ink-3); }
.submit-note { color: var(--ink-3); font-size: 0.85rem; }
.submit-inline { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); padding: 1rem 1.25rem; }

/* report */
.report { max-width: 72rem; margin: 0 auto; padding: 2rem 1.25rem 4rem; }
.report-head { margin-bottom: 1rem; }
.score-row { display: grid; grid-template-columns: minmax(12rem, 16rem) 1fr; gap: 1.5rem; align-items: stretch; margin: 1rem 0; }
@media (max-width: 48rem) { .score-row { grid-template-columns: 1fr; } }
.score-tile { display: flex; flex-direction: column; justify-content: center; padding: 1.25rem; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); }
.score-tile.breached { border-color: var(--miss); }
.score-number { font-size: 4rem; font-weight: 700; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.score-tile.breached .score-number { color: var(--miss); }
.score-label { color: var(--ink-2); }
.score-pct { color: var(--ink-3); font-size: 0.82rem; margin-top: 0.5rem; }
.breakdown { margin: 0; display: grid; gap: 0.7rem; align-content: center; }
.breakdown div { display: grid; grid-template-columns: 9rem 1fr; gap: 0.4rem 1rem; align-items: center; }
.breakdown dt { font-weight: 600; display: flex; justify-content: space-between; }
.breakdown dd { margin: 0; display: grid; grid-template-columns: 1fr 3.5rem; grid-template-areas: "bar value" "detail detail"; gap: 0.15rem 0.6rem; align-items: center; }
.bar { grid-area: bar; width: 100%; height: 6px; display: block; }
.bar .track { fill: var(--surface-2); }
.bar .fill { fill: var(--action); }
.breakdown .value { grid-area: value; font-variant-numeric: tabular-nums; font-weight: 600; font-size: 0.9rem; }
.breakdown .detail { grid-area: detail; color: var(--ink-3); font-size: 0.8rem; }
.breach { border-left: 4px solid var(--miss); background: var(--miss-bg); padding: 0.6rem 0.9rem; border-radius: 0 var(--radius) var(--radius) 0; }
.time-line { color: var(--ink-2); font-size: 0.9rem; }
.report-section { margin-top: 2rem; }
.report-section h2 { margin-top: 0; }
.defects td, .findings td { font-size: 0.88rem; }
.findings td.comment { max-width: 28rem; }
.pr-level { list-style: none; padding: 0; }
.pr-level li { padding: 0.6rem 0; border-bottom: 1px solid var(--rule); }
.pr-level .note-body { margin-top: 0.3rem; }
.summary { margin: 0.5rem 0 0; padding: 0.6rem 0.9rem; border-left: 3px solid var(--rule); background: var(--surface); white-space: pre-wrap; }
.annotated .pr-description { margin-bottom: 1rem; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
@media print { .site-nav, .review-bar, .flag { display: none; } .file-head { position: static; } }
