/* Fact Check Review tab — the fact check's human queue. Standalone, namespaced `fcr-*`;
   uses the app's theme tokens (every palette × light/dark), the shared radius scale
   (--r-xs marks, --r-sm chips, --r-md controls, --r-lg cards) and the card / label /
   button vocabulary surface.css defines. Responsive at 760px. Mirrors the
   dashboard-learning.css conventions.

   The architecture is the shared one: a tinted ground with discrete cards floating on
   it. The control surface, the decision line, the critic-health strip and every finding
   are separate objects with a gap between them, never a continuous hairline-divided
   sheet — a hairline appears only INSIDE a card, separating a finding's head from its
   expanded body. Labels are tracked mono capitals, figures are mono and tabular. */

/* The view's top padding now comes from `.view` in surface.css, which is what floats the
   first card clear of the sticky header; the old `padding: 0` here predates that rule and
   only fought it. The stack itself is a flex column, so hiding a block cannot leave its
   margin behind — every gap belongs to the container, not to the children. */
.fcr-wrap {
  display: flex;
  flex-direction: column;
  gap: clamp(9px, 1vw, 13px);
  padding-bottom: 24px;
}

/* Loading / disabled / "nothing waiting" all land in this box, so it is a card too —
   an empty state on the bare ground reads as a page that failed to draw. */
.fcr-empty {
  padding: 40px 24px; color: var(--text-muted); font-size: 14px; text-align: center;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--shadow-1);
}
.fcr-faint { color: var(--text-faint); }

.fcr-controls {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  flex-wrap: wrap;
  padding: clamp(13px, 1.2vw, 18px);
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--shadow-1);
}
/* Headline in the serif, gloss in the UI face — the shared .sec-head / .sec-note
   pairing. The gloss is what keeps the heading from reading as jargon, so it is
   deliberately not shrunk to a footnote. */
.fcr-title { font: 600 18px/1.3 var(--font-display); letter-spacing: -.015em; color: var(--text); }
.fcr-title .fcr-faint { font: 400 12px/1.5 var(--font-sans); color: var(--text-muted); }

.fcr-filters { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
/* The buttons ride the shared `.btn` (mono, tracked, --r-md, hover + press): only the
   deltas live here. A filter's resting state is quieter than an action's, so it steps
   down from the accent text `.btn` gives, and its selected state is the filled accent. */
.fcr-fbtn { color: var(--text-2); }
.fcr-fbtn--on,
.fcr-fbtn--on:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.fcr-btn[disabled] { opacity: .5; cursor: default; }
/* Whose-thesis bar. A row of counted buttons rather than a <select>, because the
   distribution across the lineages IS the first read: one model carrying the whole
   queue and every model carrying a couple each are different problems. A dropdown
   hides exactly that. */
.fcr-models {
  display: flex; gap: 6px; align-items: center; flex-wrap: wrap;
  flex-basis: 100%; padding-top: 10px;
}
.fcr-mbtn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 11px; color: var(--text-2); border-left-width: 3px;
}
.fcr-mbtn:hover { color: var(--text); }
.fcr-mbtn--on { background: var(--surface-row-active); color: var(--text); }
.fcr-mcount {
  font: 500 11px/1 var(--font-mono); font-variant-numeric: tabular-nums;
  color: var(--text-faint);
  border-left: 1px solid var(--line2); padding-left: 6px;
}
.fcr-mbtn--on .fcr-mcount { color: var(--text); }
/* The counts strip stays a caption on the ground rather than becoming a fourth box
   between the decision and the rows: it describes the queue below it. */
.fcr-summary {
  font: 400 11.5px/1.5 var(--font-mono); font-variant-numeric: tabular-nums;
  letter-spacing: .04em; padding: 0 2px;
}
.fcr-notice {
  font-size: 12px; padding: 10px 14px; border-radius: var(--r-lg);
  border: 1px solid var(--warn-edge); color: var(--warn-text); background: var(--warn-tint);
}

/* The headline number the escalation decision is read from. Its own card, and the only
   one that leads in the serif, because it is the page's primary assertion. */
.fcr-decision {
  padding: clamp(13px, 1.2vw, 18px);
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--shadow-1);
}
.fcr-decision-line {
  font: 600 17px/1.35 var(--font-display); letter-spacing: -.015em;
  color: var(--text); margin-bottom: 6px;
}

/* Sunday critic health strip. */
.fcr-health {
  display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
  padding: clamp(11px, 1vw, 14px) clamp(13px, 1.2vw, 18px);
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--shadow-1);
}
/* The page's eyebrow: tracked mono capitals in the quietest tier, so a strip can be
   introduced without a heading big enough to compete with what it labels. */
.fcr-sub {
  font: 500 10.5px/1.4 var(--font-mono); letter-spacing: .16em;
  text-transform: uppercase; color: var(--colhead);
}
/* Deliberately NOT the shared `.chip`: app.css already owns that class with a fixed
   21px UI-face pill, and borrowing it here would import that geometry rather than the
   surface vocabulary. Same treatment, stated locally. */
.fcr-chip {
  display: inline-flex; align-items: center; gap: 6px;
  font: 500 10.5px/1 var(--font-sans); letter-spacing: .06em; padding: 5px 9px;
  border: 1px solid var(--line2); border-radius: var(--r-sm);
  color: var(--text-2); white-space: nowrap;
}
.fcr-ok { color: var(--bull-text); }
.fcr-bad { color: var(--warn-text); border-color: var(--warn-edge); }
.fcr-neutral { color: var(--text-muted); }

/* Cards. One finding, one card; the card clips so a head's hover fill follows its
   corners instead of squaring them off. */
.fcr-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--shadow-1);
  overflow: hidden;
}
.fcr-card--done { opacity: .62; }
/* The 2026-07-19 signature gets a visible edge — it must never read as routine drift. */
.fcr-card--lead { border-left: 3px solid var(--bear-text); }
.fcr-head {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 14px; cursor: pointer; flex-wrap: wrap;
  transition: background-color var(--dur-micro) var(--ease-out);
}
.fcr-head:hover { background: var(--surface-sunken); }
.fcr-tw { color: var(--text-muted); width: 12px; }
.fcr-sev {
  font: 500 9px/1 var(--font-mono); text-transform: uppercase; letter-spacing: .12em;
  border: 1px solid var(--line2); border-radius: var(--r-sm);
  padding: 4px 7px; white-space: nowrap;
}
.fcr-sev--material { color: var(--bear-text); border-color: var(--bear-text); }
.fcr-sev--structural { color: var(--warn-text); border-color: var(--warn-edge); }
.fcr-sev--framing, .fcr-sev--minor { color: var(--text-muted); }
/* WHOSE thesis. Was a faint uppercase slug and easy to skim past; a finding is
   unreadable without knowing which of the four documents it is against, so this
   now reads as a labelled, colour-keyed chip. One tone per lineage, shared with
   the whose-thesis bar so the filter and the rows key the same way. */
.fcr-lineage {
  display: inline-flex; align-items: baseline; gap: 5px;
  font: 500 11px/1 var(--font-sans); letter-spacing: .04em; white-space: nowrap;
  color: var(--text);
  border: 1px solid var(--line2); border-left-width: 3px;
  border-radius: var(--r-sm); padding: 4px 7px;
}
.fcr-lineage-role {
  font: 500 9px/1 var(--font-mono); text-transform: uppercase; letter-spacing: .12em;
  color: var(--text-faint);
}
/* Lineage identity, from the app-wide categorical ramp. These are IDENTITY
   colours, not verdicts — mapping them onto a semantic family would make a
   filter read as a judgement, which is the one confusion this page exists to
   prevent. Each keeps the hue it has always had. */
.fcr-m--claude { border-left-color: var(--cat-3); }
.fcr-m--gemini { border-left-color: var(--cat-1); }
.fcr-m--grok { border-left-color: var(--cat-4); }
/* ChatGPT retired 2026-08-19. The rule stays because the queue is a history: findings raised
   against that lineage are still listed, and fact-check-review.js still emits fcr-m--chatgpt
   for them (its MODEL_LABEL entry survives for the same reason). Never drop this without
   dropping that entry too, or those rows lose their colour with nothing to explain why. */
.fcr-m--chatgpt { border-left-color: var(--cat-9); }
.fcr-m--other, .fcr-m--all { border-left-color: var(--line2); }
.fcr-kind { font: 400 11.5px/1.35 var(--font-sans); letter-spacing: .02em; color: var(--text-2); white-space: nowrap; }
.fcr-subject { font: 500 12.5px/1.3 var(--font-sans); color: var(--text); white-space: nowrap; }
.fcr-override {
  font: 500 9px/1 var(--font-mono); text-transform: uppercase; letter-spacing: .12em;
  color: var(--on-accent); background: var(--bear-text); padding: 4px 7px;
  border-radius: var(--r-sm); white-space: nowrap;
}
.fcr-line { font-size: 12px; color: var(--text-2); flex: 1; min-width: 160px; }
.fcr-line code { font-family: var(--font-mono); font-variant-numeric: tabular-nums; color: var(--text); }
.fcr-dev { font-family: var(--font-mono); font-variant-numeric: tabular-nums; color: var(--bear-text); }
.fcr-age {
  font: 400 11px/1 var(--font-mono); font-variant-numeric: tabular-nums;
  color: var(--text-faint); white-space: nowrap;
}

/* The expanded detail steps DOWN a rung onto the sunken tier, as a nested surface
   should, and the hairline is the head/body join inside one card — not a sheet rule. */
.fcr-body {
  padding: 12px 14px 14px 34px;
  border-top: 1px solid var(--line);
  background: var(--surface-sunken);
}
.fcr-kv { font-size: 12px; margin-bottom: 10px; }
.fcr-kv th, .fcr-kv td { text-align: left; padding: 4px 14px 4px 0; vertical-align: top; }
/* The key column is a label, so it takes the same tracked mono capitals as every
   other label on the page. */
.fcr-kv th {
  font: 500 9.5px/1.6 var(--font-mono); letter-spacing: .14em; text-transform: uppercase;
  color: var(--colhead); white-space: nowrap;
}
.fcr-kv td { color: var(--text-2); }
/* This is a key/value list, not a data grid: opt out of the shared table's row
   hairlines and row hover, which would otherwise rule off and highlight every line. */
.fcr-kv tbody th, .fcr-kv tbody td { border-bottom: 0; }
.fcr-kv tbody tr:hover { background: transparent; }
.fcr-prov { font-family: var(--font-sans); color: var(--text-faint); }
.fcr-stale { color: var(--warn-text); font-weight: 600; }
.fcr-transp { color: var(--warn-text); }
.fcr-quote {
  font-size: 12px; font-style: italic; color: var(--text-2);
  border-left: 2px solid var(--line2); padding: 4px 0 4px 10px; margin: 6px 0;
}
/* The hindsight guard. Deliberately always visible, never behind a toggle. */
.fcr-base { font-size: 11px; color: var(--text-faint); margin: 6px 0 10px; }

.fcr-actions { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.fcr-v--real { border-color: var(--bear-text); color: var(--bear-text); }
.fcr-v--false { border-color: var(--bull-text); color: var(--bull-text); }
.fcr-v--wont { border-color: var(--line2); }
.fcr-note {
  font: 400 12px/1.4 var(--font-sans); padding: 7px 10px; min-width: 200px; flex: 1;
  border: 1px solid var(--line2); border-radius: var(--r-md);
  background: var(--surface); color: var(--text-2);
}
.fcr-resolved { font-size: 12px; color: var(--text-faint); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.fcr-vchip { font-weight: 600; }
.fcr-btn--undo { font-size: 10.5px; padding: 4px 9px; }
.fcr-foot { font: 400 11px/1.55 var(--font-sans); padding: 2px 2px 0; }

@media (max-width: 760px) {
  .fcr-head { gap: 6px; padding: 10px 10px; }
  .fcr-body { padding-left: 12px; }
  .fcr-line { min-width: 100%; }
  .fcr-note { min-width: 100%; }
}
