/* extract-demo — verifiable extraction proof asset. Static, fast, no frameworks. */
/* Design tokens — adopted from the portfolio-site design system (ethanhaas.dev):
   near-monochrome surface, ONE quiet-blue accent used for links/focus/hover ONLY,
   white headings, flat fills (NO gradients/glow), dark-first + light via
   prefers-color-scheme. See workspace/portfolio-site dist/assets/styles.css. */
:root {
  --bg: #0c0d10;
  --panel: #131418;
  --panel-2: #181a20;
  --ink: #ededee;
  --ink-soft: #c3c6cc;
  --muted: #969aa3;
  --line: #24272e;
  --line-soft: #1c1e24;
  --accent: #6f97ff;        /* quiet blue — links / focus / hover only */
  --ok: #5cb98c;
  --bad: #ff6470;
  --edit: #ffcd4d;
  --edit-shadow: inset 0 0 0 9999px color-mix(in srgb, var(--edit) 12%, transparent);   /* td.edited's own background fill — kept stable across hover/focus/.hl states, see F1 override block */
  --ring: rgba(111, 151, 255, 0.45);
  --shadow: 0 16px 40px -28px rgba(0, 0, 0, 0.75);
  --radius: 14px;
  --radius-sm: 9px;
  --radius-pill: 999px;
  --maxw: 1060px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
  /* derived tints — track --accent/--ok/--bad so light mode stays correct */
  --accent-weak: color-mix(in srgb, var(--accent) 12%, transparent);
  --accent-soft: color-mix(in srgb, var(--accent) 20%, transparent);
  --accent-line: color-mix(in srgb, var(--accent) 38%, transparent);
  --ok-tint-src: var(--ok);   /* separate source for the ok-bg/ok-line TINTS so darkening --ok for text contrast doesn't also darken every tinted panel bg */
  --ok-bg: color-mix(in srgb, var(--ok-tint-src) 14%, transparent);
  --ok-line: color-mix(in srgb, var(--ok-tint-src) 42%, transparent);
  --bad-tint-src: var(--bad);   /* separate source for the bad-bg/bad-line TINTS so darkening --bad for text contrast doesn't also darken every tinted panel bg (mirrors --ok-tint-src) */
  --bad-bg: color-mix(in srgb, var(--bad-tint-src) 12%, transparent);
  --bad-line: color-mix(in srgb, var(--bad-tint-src) 45%, transparent);
  --line-hover: color-mix(in srgb, var(--ink) 24%, var(--line));
  --accent-text: var(--accent);   /* accent used as SMALL text (e.g. .rc-cols) — needs 4.5:1, not the 3:1 UI-component floor */
  --bad-text: #ff6b76;   /* --bad used as SMALL text (.tag, .ck-bad, #inject[aria-pressed]) — needs 4.5:1 against its own tint, not the 3:1 UI-component floor (mirrors --accent-text) */
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #ffffff;
    --panel: #ffffff;
    --panel-2: #f6f7f9;
    --ink: #15171c;
    --ink-soft: #3d424a;
    --muted: #666b73;
    --line: #e6e8ec;
    --line-soft: #eef0f3;
    --accent: #2f5fe0;
    --ok: #0c6e46;     /* darkened from #1f9d6b for WCAG 1.4.3: 6.30:1 on #fff, 5.38:1 on ok-bg #e0f1ea (was 3.45:1 / 2.94:1) */
    --ok-tint-src: #1f9d6b;  /* keep the ok-bg/ok-line PANEL TINT at its original shade (unrelated --muted-on-ok-bg text like .vs-kicker stays >=4.5:1; only the --ok TEXT color darkens) */
    --bad: #d92d3a;
    --bad-tint-src: #ff6470;  /* keep the bad-bg/bad-line PANEL TINT at its original shade (unrelated --muted text like .vs-kicker/.vs-note stays >=4.5:1; only the --bad TEXT color darkens) */
    --edit: #8a6000;   /* darkened from #b9810a for WCAG 1.4.3: 5.59:1 on #fff (was 3.38:1) — this is the one figure the whole demo asks the visitor to look at */
    --ring: rgba(47, 95, 224, 0.32);
    --shadow: 0 16px 38px -26px rgba(16, 24, 40, 0.22);
    --accent-text: #264fc4;  /* darker than --accent for small-text 4.5:1: 5.55:1 on #dee5f6 (was 4.34:1) */
    --bad-text: #ae242e;   /* darker than --bad for small-text 4.5:1: 4.64:1 on the .tag tint #f8cace, 5.98:1 on #ffecee (was 3.26:1 / 4.21:1) */
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 56px clamp(1.1rem, 4vw, 1.8rem) 96px;
}

section { margin-top: 52px; }

/* ---- site chrome (header / footer) — portfolio-site parity ---------------- */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 10;
  background: var(--ink); color: var(--bg); padding: 0.6rem 1rem; border-radius: var(--radius-sm);
}
.skip-link:focus { left: 1rem; top: 1rem; }

.site-header {
  position: sticky; top: 0; z-index: 8;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
}
.nav {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; align-items: center; gap: 14px;
  padding: 13px clamp(1.1rem, 4vw, 1.8rem);
}
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); text-decoration: none; font-weight: 650; letter-spacing: -0.01em; }
.brand:hover { opacity: 1; }
.monogram {
  display: grid; place-items: center; width: 28px; height: 28px;
  border-radius: 8px; border: 1px solid var(--line); background: var(--panel-2);
  font: 700 0.72rem var(--mono); color: var(--accent); letter-spacing: 0.04em;
}
.nav-tag { color: var(--muted); font: 0.8rem var(--mono); margin-left: 4px; }
.btn-cta {
  margin-left: auto; white-space: nowrap;
  background: var(--ink); color: var(--bg); border: 1px solid var(--ink);
  border-radius: var(--radius-pill); padding: 0.5rem 0.95rem;
  font: 600 0.86rem var(--font); text-decoration: none;
  transition: transform 0.07s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn-cta:hover { background: color-mix(in srgb, var(--ink) 88%, var(--accent)); border-color: color-mix(in srgb, var(--ink) 88%, var(--accent)); }
.btn-cta:active { transform: translateY(1px) scale(0.97); }
.btn-cta:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.site-footer { border-top: 1px solid var(--line); margin-top: 72px; }
.footer-grid {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
  padding: 22px clamp(1.1rem, 4vw, 1.8rem);
  color: var(--muted); font-size: 0.88rem;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 16px; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--ink); opacity: 1; }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { opacity: 0.82; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 5px; }

h1 {
  font-size: clamp(1.9rem, 5vw, 2.9rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 10px 0 16px;
}

/* portfolio rule: headings are near-white, NOT accent-coloured */
h2 {
  font-size: 1.22rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 14px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  margin: 0 0 6px;
}

.subhead { font-size: 1.18rem; color: var(--ink); margin: 0 0 14px; }
.thesis { color: var(--muted); max-width: 60ch; }
.thesis strong { color: var(--ink); }

.lead { color: var(--muted); max-width: 64ch; }

/* hero "at a glance" facts row — portfolio facts pattern */
.facts {
  list-style: none; margin: 26px 0 0; padding: 18px 0 0;
  border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(4, auto); gap: clamp(20px, 5vw, 48px); justify-content: start;
}
.facts li { display: flex; flex-direction: column; gap: 3px; }
.facts strong { font: 700 1.5rem var(--mono); letter-spacing: -0.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.facts span { color: var(--muted); font-size: 0.82rem; }
@media (max-width: 640px) {
  .facts { grid-template-columns: repeat(2, auto); gap: 18px 36px; }
}

code {
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1px 6px;
  font: 0.9em var(--mono);
}

/* source meta */
.provenance {
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 14px 16px;
  color: var(--muted);
  margin: 0 0 16px;
}
.meta { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 0; }
.meta div { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; }
.meta dt { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); }
.meta dd { margin: 4px 0 0; font-weight: 600; }

/* table */
.table-wrap {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: auto;
  background: var(--panel);
  box-shadow: var(--shadow);
}
.table-wrap:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
table { width: 100%; border-collapse: collapse; min-width: 560px; }
th, td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--line); }
thead th { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); background: var(--panel-2); position: sticky; top: 0; }
tbody th { font-weight: 500; color: var(--ink); }
tbody tr:hover td, tbody tr:hover th { background: var(--accent-weak); }
.num { text-align: right; font-variant-numeric: tabular-nums; font-family: var(--mono); }
.page { color: var(--muted); font-size: 0.85rem; white-space: nowrap; }
tr.total-row th, tr.total-row td { font-weight: 700; border-top: 1px solid var(--line); background: var(--accent-weak); }
td.edited { color: var(--edit); font-weight: 700; box-shadow: var(--edit-shadow); }
/* F1 fix — td.edited owns its background in every interactive state instead of being
   re-tinted by row-hover / total-row / cell-focus / .hl (WCAG 1.4.3: those blue tints
   composited under --edit dropped as low as 3.63:1 in light theme). Each selector below
   out-specifies the rule it overrides (verified: adds one extra class/pseudo-class vs.
   the base rule it competes with), so this holds regardless of source order. */
tbody tr:hover td.edited, tbody tr:hover th.edited { background: transparent; box-shadow: var(--edit-shadow); }
tr.total-row td.edited { background: transparent; box-shadow: var(--edit-shadow); }

/* checks list */
.checks { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 8px; }
.checks li { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 11px 14px; color: var(--muted); }
.checks strong { color: var(--ink); }

/* verification stage */
.stage { margin-top: 18px; transition: filter 0.2s ease; }
.banner {
  display: flex; align-items: center; gap: 12px;
  border-radius: var(--radius); padding: 16px 18px; font-size: 1.05rem;
  border: 1px solid var(--line); background: var(--panel);
}
.banner .dot { width: 11px; height: 11px; border-radius: 50%; flex: none; }
.banner.ok { background: var(--ok-bg); border-color: var(--ok-line); }
.banner.ok .dot { background: var(--ok); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok) 20%, transparent); }
.banner.bad { background: var(--bad-bg); border-color: var(--bad-line); }
.banner.bad .dot { background: var(--bad); box-shadow: 0 0 0 4px color-mix(in srgb, var(--bad) 20%, transparent); }
.counts { color: var(--muted); margin: 10px 2px 0; font-variant-numeric: tabular-nums; }

.exceptions { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 8px; }
.exceptions li {
  background: var(--bad-bg); border: 1px solid var(--bad-line);
  border-radius: var(--radius-sm); padding: 11px 14px; font: 0.86rem var(--mono);
  color: var(--ink);
}
.tag {
  display: inline-block; background: color-mix(in srgb, var(--bad) 18%, transparent); color: var(--bad-text);
  font-weight: 700; font-size: 0.68rem; letter-spacing: 0.05em;
  padding: 2px 8px; border-radius: 6px; margin-right: 8px; border: 1px solid var(--bad-line);
  font-family: var(--font);
}

/* ---- buttons: clearly-clickable, strong hover/press feedback -------------- */
.inject, .reset {
  appearance: none; cursor: pointer; font: 600 0.96rem/1 var(--font);
  display: inline-flex; align-items: center; gap: 0.5em;
  border-radius: var(--radius-sm); padding: 0.8rem 1.25rem;
  border: 1px solid var(--line);
  transition: transform 0.07s ease, box-shadow 0.15s ease, border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.inject:focus-visible, .reset:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
/* pressed state — unmistakable when clicked (the previous build had ~no :active feedback) */
.inject:active, .reset:active { transform: translateY(1px) scale(0.985); }

/* primary — solid pill (portfolio .btn.primary), with real hover + press states */
.inject {
  background: var(--ink); color: var(--bg); border-color: var(--ink);
  box-shadow: 0 1px 0 color-mix(in srgb, var(--bg) 40%, transparent);
}
.inject:hover {
  background: color-mix(in srgb, var(--ink) 88%, var(--accent));
  border-color: color-mix(in srgb, var(--ink) 88%, var(--accent));
}
.inject:active { background: color-mix(in srgb, var(--ink) 78%, #000); box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.3); }
/* armed state (error injected; button now "Restore") — clearly visible danger */
.inject[aria-pressed="true"] {
  background: var(--bad-bg); color: var(--bad-text); border-color: var(--bad); box-shadow: none;
}
.inject[aria-pressed="true"]:hover { background: color-mix(in srgb, var(--bad) 22%, transparent); }
.inject[aria-pressed="true"]:active { background: color-mix(in srgb, var(--bad) 32%, transparent); box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.2); }

/* secondary — VISIBLE filled surface (not a ghost), so it always reads as a button */
.reset {
  background: var(--panel-2); color: var(--ink); border-color: var(--line);
  box-shadow: 0 1px 0 color-mix(in srgb, var(--bg) 40%, transparent);
}
.reset:hover { background: color-mix(in srgb, var(--panel-2) 78%, var(--ink)); border-color: var(--line-hover); }
.reset:active { background: color-mix(in srgb, var(--panel-2) 66%, #000); box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.28); }

.stage.broken { filter: none; }

.expected { color: var(--muted); margin-bottom: 8px; }
.expected-list { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 8px; }
.expected-list li {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 10px 13px; font: 0.84rem var(--mono); color: var(--muted);
}
.takeaway { font-size: 1.1rem; font-weight: 600; color: var(--ink); border-left: 3px solid var(--ok); padding-left: 14px; }

/* cta */
.cta { border-top: 1px solid var(--line); padding-top: 36px; margin-top: 64px; }
.cta h2 { color: var(--ink); font-size: 1.4rem; }
.links { font-size: 1.05rem; }
.links a { color: var(--accent); text-decoration: none; font-weight: 600; }
.links a:hover { text-decoration: underline; opacity: 1; }

/* playground: privacy + canvas + overlay */
.privacy {
  display: flex; align-items: center; gap: 10px;
  background: var(--ok-bg); border: 1px solid var(--ok-line);
  border-radius: var(--radius); padding: 12px 15px; color: var(--ink); margin: 0 0 16px;
}
.privacy .lock { font-size: 1.1rem; }
.privacy strong { color: var(--ok); }
.pdf-status { color: var(--muted); font-size: 0.9rem; margin: 12px 2px; min-height: 1.2em; }
.pdf-status.ok { color: var(--ok); }
.pdf-status.warn { color: var(--edit); }

.canvas-wrap { margin: 8px 0 0; }
.canvas-wrap figcaption { color: var(--muted); font-size: 0.85rem; margin-top: 10px; max-width: 64ch; }
.canvas-stage {
  position: relative; display: block; width: fit-content; max-width: 100%; margin: 0 auto;
  border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; background: #fff;
  box-shadow: var(--shadow);
}
#pdf-canvas { display: block; max-width: 100%; height: auto; }
.overlay { position: absolute; inset: 0; pointer-events: none; }
.obox {
  position: absolute; border: 2px solid transparent; border-radius: 4px;
  background: transparent; pointer-events: auto; cursor: pointer;
  transition: background 0.12s ease, border-color 0.12s ease, box-shadow 0.12s ease;
}
.obox.hl, .obox:hover {
  border-color: var(--accent); background: var(--accent-soft);
  box-shadow: 0 0 0 2px var(--accent-line);
}

/* editable cells */
td.cell { cursor: text; outline: none; transition: background 0.1s ease; }
td.cell:hover { background: var(--accent-weak); }
td.cell:focus { background: var(--accent-soft); box-shadow: inset 0 0 0 2px var(--accent); }
tr.hl th, tr.hl td { background: var(--accent-soft); }
/* F1 fix (cont'd, see td.edited above): same override for the .cell hover/focus and
   .hl states — keeps the focus ring visible while restoring the edited cell's own tint. */
td.cell.edited:hover { background: transparent; box-shadow: var(--edit-shadow); }
td.cell.edited:focus { background: transparent; box-shadow: var(--edit-shadow), inset 0 0 0 2px var(--accent); }
tr.hl th.edited, tr.hl td.edited { background: transparent; box-shadow: var(--edit-shadow); }

/* controls row */
.controls { display: flex; flex-wrap: wrap; gap: 12px; margin: 4px 0 18px; }

/* model-vs-verified panel */
.vs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.vs-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; background: var(--panel); }
.vs-card.bad-card { border-color: var(--bad-line); background: var(--bad-bg); }
.vs-card.ok-card { border-color: var(--ok-line); background: var(--ok-bg); }
.vs-kicker { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.7rem; color: var(--muted); margin: 0; }
.vs-num { font-size: 1.7rem; font-weight: 700; font-variant-numeric: tabular-nums; margin: 6px 0 8px; letter-spacing: -0.01em; font-family: var(--mono); }
.bad-card .vs-num { color: var(--bad); }
.ok-card .vs-num { color: var(--ok); }
.vs-note { color: var(--muted); font-size: 0.92rem; margin: 0; }
.vs-caption { font-size: 1.15rem; text-align: center; margin: 16px 0 0; }

@media (max-width: 640px) {
  main { padding: 36px 16px 72px; }
  .meta { grid-template-columns: 1fr; }
  h1 { font-size: 2rem; }
  .banner { font-size: 0.98rem; }
  .vs-grid { grid-template-columns: 1fr; }
  .controls { flex-direction: column; align-items: stretch; }
  .inject, .reset { justify-content: center; }
  .nav-tag { display: none; }
  .footer-grid { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .inject, .reset, .obox, td.cell { transition: none; }
}

/* --- v3: staged verification cascade (real timing, not an instant paint) ------------------ */
.cascade { display: flex; gap: 10px; margin: 0 0 12px; flex-wrap: wrap; min-height: 34px; }
.cascade .ck {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 14px; border-radius: var(--radius-pill); font-size: 0.82rem; font-weight: 700;
  letter-spacing: 0.04em; color: var(--muted);
  background: var(--panel-2); border: 1px solid var(--line);
  opacity: 0.45; transform: translateY(4px);
}
.cascade .ck::before { content: "○"; font-size: 0.7rem; }
.cascade .ck.ck-ok {
  color: var(--ok); background: var(--ok-bg); border-color: var(--ok-line);
  opacity: 1; transform: none;
  animation: ckPop 0.34s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
.cascade .ck.ck-ok::before { content: "✓"; }
.cascade .ck.ck-bad {
  color: var(--bad-text); background: var(--bad-bg); border-color: var(--bad-line);
  opacity: 1; transform: none;
  animation: ckPop 0.34s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
.cascade .ck.ck-bad::before { content: "!"; }
@keyframes ckPop {
  0% { opacity: 0.2; transform: translateY(8px) scale(0.92); }
  60% { transform: translateY(-2px) scale(1.04); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
.banner.staging { opacity: 0.5; }
.banner.landed { animation: bannerLand 0.4s ease both; }
@keyframes bannerLand {
  0% { opacity: 0.3; transform: translateY(6px); }
  100% { opacity: 1; transform: translateY(0); }
}
.banner.ok.landed .dot { animation: dotPulse 0.7s ease 0.05s 2; }
@keyframes dotPulse {
  0%, 100% { box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok) 18%, transparent); }
  50% { box-shadow: 0 0 0 9px color-mix(in srgb, var(--ok) 30%, transparent); }
}
/* exceptions slide in one after another */
.exceptions.landed li { animation: excIn 0.32s ease both; animation-delay: calc(var(--i, 0) * 90ms); }
@keyframes excIn {
  0% { opacity: 0; transform: translateX(-10px); }
  100% { opacity: 1; transform: translateX(0); }
}
/* live-upload provenance chip on the banner */
.live-chip {
  display: inline-block; margin-left: 8px; padding: 2px 9px; border-radius: var(--radius-pill);
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.03em;
  color: var(--accent); background: var(--accent-weak);
  border: 1px solid var(--accent-line); vertical-align: middle;
}
@media (prefers-reduced-motion: reduce) {
  .cascade .ck.ck-ok, .cascade .ck.ck-bad, .banner.landed,
  .banner.ok.landed .dot, .exceptions.landed li { animation: none; }
  .cascade .ck { opacity: 1; transform: none; }
}

/* --- report picker cards (section 1) -------------------------------------- */
.report-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 12px;
  margin: 0 0 20px;
}
.report-card {
  display: flex;
  flex-direction: column;
  gap: 5px;
  text-align: left;
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 3px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  transition: transform 0.07s ease, border-color 0.16s ease, background 0.16s ease;
}
.report-card:hover { border-color: var(--line-hover); border-left-color: var(--accent); background: var(--panel-2); }
.report-card:active { transform: scale(0.99); }
.report-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.report-card.active {
  border-color: var(--accent-line);
  border-left-color: var(--accent);
  background: var(--panel-2);
}
.rc-entity { font-weight: 650; font-size: 0.98rem; }
.rc-blurb { color: var(--muted); font-size: 0.82rem; line-height: 1.35; }
.rc-cols {
  margin-top: auto;
  align-self: flex-start;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  color: var(--muted);
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 2px 9px;
}
.report-card.active .rc-cols { color: var(--accent-text); border-color: var(--accent-line); background: var(--accent-weak); }
