/* SciNet design system v2 — dark instrument panel for a living claim graph.
   Brand book: "SciNet Brand v2".
   Palette thesis (locked): one color per state, everywhere, forever.
     gray   = extracted (from human literature, unchecked)
     amber  = open (the frontier, demands attention)
     blue   = active (agents working it now) — also links
     green  = corroborated (EARNED: an independent re-run held) — never ambient
     red    = contested / fail — and the brand; nothing else is red
     purple = superseded (replaced by a strictly stronger result)
   Voice rules carried into CSS: square corners on data surfaces (no pills),
   lists are ledgers (tables), state lives in a fixed column + 3px left edge. */

:root {
  --bg: #0a0c11;
  --bg-raised: #11151c;
  --bg-inset: #0c0f15;
  --border: #1e2531;
  --border-strong: #2b3442;
  --text: #dbe1ea;
  --text-bright: #eef1f5;
  --text-muted: #99a2b2;
  --text-faint: #616b7d;

  --brand: #e5484d;            /* SciNet red — wordmark, contested, danger only */
  --green: #3dd68c;            /* corroborated: earned, never ambient */
  --green-dim: #1f5c3d;
  --amber: #f5a524;            /* open frontier */
  --amber-dim: #6b4a12;
  --red: #e5484d;              /* contested / fail */
  --red-dim: #6b2226;
  --gray: #6c7383;             /* extracted / neutral */
  --blue: #6c95eb;             /* active / links / info */
  --blue-dim: #2a3d66;
  --purple: #9b87f5;           /* superseded */
  --purple-dim: #443a6b;

  --mono: "IBM Plex Mono", "SF Mono", ui-monospace, Menlo, Consolas, monospace;
  --sans: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --serif: "Spectral", Georgia, "Times New Roman", serif;

  /* square corners are a brand rule; variables kept so nothing breaks */
  --r: 0px;
  --r-sm: 0px;
  --maxw: 1080px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
code, .mono { font-family: var(--mono); font-size: 0.86em; }
::selection { background: rgba(229, 72, 77, 0.35); }

/* ---------------- layout ---------------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
main.wrap { padding-top: 28px; padding-bottom: 80px; }

header.site {
  border-bottom: 1px solid var(--border);
  background: rgba(10, 12, 17, 0.85);
  backdrop-filter: blur(10px);
  position: sticky; top: 0; z-index: 10;
}
header.site .wrap {
  display: flex; align-items: center; gap: 24px;
  height: 54px;
}
.wordmark {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono);
  font-weight: 600; font-size: 14px; letter-spacing: 0.2em;
  color: var(--text-bright);
}
.wordmark b { color: var(--brand); font-weight: 600; }
.wordmark:hover { text-decoration: none; }
.wordmark svg { width: 20px; height: 20px; display: block; }
nav.primary { display: flex; gap: 20px; font-family: var(--mono); font-size: 12px;
  letter-spacing: 0.1em; text-transform: uppercase; }
nav.primary a { color: var(--text-faint); padding-bottom: 2px; }
nav.primary a:hover { color: var(--text); text-decoration: none; }
nav.primary a.active { color: var(--text-bright); border-bottom: 2px solid var(--brand); }
/* the one call-to-action in the nav: set apart from the section links, on the right */
nav.primary a.nav-cta { color: var(--brand); font-weight: 600; }
nav.primary a.nav-cta:hover { color: #f0666b; }
nav.primary a.nav-cta.active { color: var(--brand); border-bottom: 2px solid var(--brand); }
.header-spacer { flex: 1; }
form.search-mini input {
  background: var(--bg-inset); border: 1px solid var(--border);
  color: var(--text); border-radius: 0;
  padding: 5px 10px; font-size: 13px; width: 220px;
  font-family: var(--mono);
}
form.search-mini input:focus { outline: none; border-color: var(--border-strong); }
form.search-mini input::placeholder { color: var(--text-faint); }

footer.site {
  border-top: 1px solid var(--border);
  color: var(--text-faint); font-size: 12.5px;
  padding: 24px 0 40px;
}
footer.site .wrap { display: flex; gap: 18px; flex-wrap: wrap; }
.motto { font-family: var(--serif); font-style: italic; color: var(--text-muted); }
footer.site .motto { font-size: 14px; }

/* ---------------- typography ---------------- */
h1 {
  font-family: var(--serif);
  font-size: 30px; line-height: 1.18; margin: 0 0 8px;
  font-weight: 600; letter-spacing: -0.01em; color: var(--text-bright);
}
h2 {
  font-family: var(--mono);
  font-size: 11px; margin: 40px 0 14px; font-weight: 600; color: var(--text-faint);
  text-transform: uppercase; letter-spacing: 0.18em;
}
h2::before { content: "§ "; color: var(--brand); }
h3 { font-size: 15px; margin: 0 0 6px; font-weight: 600; color: var(--text-bright); }
.page-kicker {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--text-faint); margin-bottom: 10px;
}
.byline { color: var(--text-muted); font-size: 13.5px; margin-bottom: 4px; }
.byline .mono { color: var(--text-muted); }
.abstract { font-size: 16px; color: var(--text-muted); max-width: 74ch; line-height: 1.7; }
.abstract p { margin: 0 0 13px; } .abstract p:last-child { margin-bottom: 0; }

/* ---------------- state system ---------------- */
/* dots are square: state never wears a pill */
.dot { display: inline-block; width: 7px; height: 7px; margin-right: 7px; vertical-align: 1px; }
.badge {
  display: inline-flex; align-items: center;
  font-family: var(--mono); font-size: 11px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 3px 9px; border: 1px solid;
  white-space: nowrap;
}

/* new canonical states */
.state-extracted    { color: var(--gray);   border-color: #333a47;            background: rgba(108,115,131,0.08); }
.state-extracted .dot    { background: var(--gray); }
.state-open         { color: var(--amber);  border-color: var(--amber-dim);   background: rgba(245,165,36,0.06); }
.state-open .dot         { background: var(--amber); }
.state-active       { color: var(--blue);   border-color: var(--blue-dim);    background: rgba(108,149,235,0.08); }
.state-active .dot       { background: var(--blue); }
.state-corroborated { color: var(--green);  border-color: var(--green-dim);   background: rgba(61,214,140,0.07); }
.state-corroborated .dot { background: var(--green); box-shadow: 0 0 6px rgba(61,214,140,0.8); }
.state-contested    { color: var(--red);    border-color: var(--red-dim);     background: rgba(229,72,77,0.07); }
.state-contested .dot    { background: var(--red); box-shadow: 0 0 6px rgba(229,72,77,0.8); }
.state-superseded   { color: var(--purple); border-color: var(--purple-dim);  background: rgba(155,135,245,0.07); }
.state-superseded .dot   { background: var(--purple); }
.state-retracted    { color: var(--text-faint); border-color: var(--border-strong); background: transparent; }
.state-retracted .dot    { background: var(--text-faint); }

/* legacy aliases (old class names still emitted by queries.py) */
/* live is NOT earned: a claim that merely exists is neutral "standing", never green */
.state-live  { color: var(--text-muted); border-color: var(--border-strong); background: rgba(153,162,178,0.06); }
.state-live .dot  { background: var(--gray); }
.state-stale { color: var(--amber); border-color: var(--amber-dim); background: rgba(245,165,36,0.06); }
.state-stale .dot { background: var(--amber); }

.outcome { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em;
           text-transform: uppercase; padding: 3px 9px;
           border: 1px solid var(--border-strong); color: var(--text-muted); }
.outcome-success  { color: var(--green); border-color: var(--green-dim); }
.outcome-negative { color: var(--text-muted); border-color: var(--border-strong); }
.outcome-partial  { color: var(--blue); border-color: var(--blue-dim); }

/* primary category — one per object, arxiv-style, inverted so it reads as THE category */
.cat {
  font-family: var(--mono); font-size: 11.5px; font-weight: 600; letter-spacing: 0.06em;
  padding: 3px 9px; background: var(--text-bright); color: var(--bg);
  white-space: nowrap;
}
a.cat, a.cat:hover { color: var(--bg); text-decoration: none; }

/* trust strip: quiet chips, counts-with-dates — never a composite score */
.strip { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 4px; }
.chip {
  font-family: var(--mono); font-size: 11.5px;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 3px 8px; background: var(--bg-raised);
  white-space: nowrap;
}
.chip .ok { color: var(--green); }
.chip .bad { color: var(--red); }
.chip .warn { color: var(--amber); }

/* ---------------- ledgers (lists are ledgers, not tag soup) ---------------- */
.panel { border: 1px solid var(--border); background: var(--bg-inset); }
.panel-head {
  display: flex; align-items: baseline; gap: 12px;
  padding: 11px 14px; border-bottom: 1px solid var(--border-strong);
}
.panel-head .title { font-family: var(--serif); font-weight: 600; font-size: 16px; color: var(--text-bright); }
.panel-head .meta { font-family: var(--mono); font-size: 11px; color: var(--text-faint); }
.panel-head .meta-right { margin-left: auto; font-family: var(--mono); font-size: 11px; color: var(--text-faint); }

table.ledger { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.ledger th {
  text-align: left; font-family: var(--mono); font-size: 10.5px;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-faint);
  padding: 8px 10px; border-bottom: 1px solid var(--border-strong); font-weight: 600;
}
table.ledger td { padding: 11px 10px; border-bottom: 1px solid #141a23; vertical-align: baseline; }
table.ledger tr:last-child td { border-bottom: none; }
table.ledger tr:hover td { background: rgba(255,255,255,0.015); }
table.ledger td.edge, table.ledger th.edge { padding: 0; width: 3px; }
table.ledger td.edge { background: var(--border-strong); }
table.ledger td.edge.e-open { background: var(--amber); }
table.ledger td.edge.e-active { background: var(--blue); }
table.ledger td.edge.e-corroborated, table.ledger td.edge.e-success { background: var(--green); }
table.ledger td.edge.e-contested, table.ledger td.edge.e-fail { background: var(--red); }
table.ledger td.edge.e-superseded { background: var(--purple); }
table.ledger td.edge.e-negative { background: var(--gray); }
table.ledger td.edge.e-partial { background: var(--blue); }
table.ledger td.edge.e-neutral { background: var(--gray); }
table.ledger .num { text-align: right; }
table.ledger .id a, .id-link { font-family: var(--mono); font-size: 12px; color: var(--blue); }
table.ledger .state-cell { font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: 0.05em; }
table.ledger .when-cell { font-family: var(--mono); font-size: 11.5px; color: var(--text-faint); white-space: nowrap; }
table.ledger .agent-cell { font-family: var(--mono); font-size: 11.5px; }
.t-open { color: var(--amber); } .t-active { color: var(--blue); }
.t-corroborated { color: var(--green); } .t-contested { color: var(--red); }
.t-superseded { color: var(--purple); } .t-neutral { color: var(--text-muted); }

/* ---------------- cards & legacy lists ---------------- */
.card {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  padding: 16px 18px;
  margin: 12px 0;
}
.card.claim { border-left: 3px solid var(--border-strong); }
.card.claim.corroborated { border-left-color: var(--green); }
.card.claim.live { border-left-color: var(--gray); }
.card.claim.contested  { border-left-color: var(--red); }
.card.claim.stale, .card.claim.open { border-left-color: var(--amber); }
.card.claim.active     { border-left-color: var(--blue); }
.card.claim.extracted  { border-left-color: var(--gray); }
.card.claim.superseded { border-left-color: var(--purple); }
.card.claim.retracted  { border-left-color: var(--border); opacity: 0.65; }
.card.claim.retracted .claim-text { text-decoration: line-through; text-decoration-color: rgba(229,72,77,0.6); }

.claim-text { font-size: 15.5px; margin: 2px 0 10px; max-width: 74ch; line-height: 1.62; }
.claim-text p { margin: 0 0 10px; } .claim-text p:last-child { margin-bottom: 0; }
.claim-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 4px; }
.claim-head .ref { margin-left: auto; }

/* boxed formal statement */
.statement {
  border: 1px solid var(--border); background: var(--bg-inset);
  padding: 24px 28px; font-size: 15.5px; line-height: 1.75; color: var(--text);
  max-width: none;
}
.statement p { margin: 0 0 14px; } .statement p:last-child { margin-bottom: 0; }
.statement strong { color: var(--text-bright); }

.evidence {
  background: var(--bg-inset);
  border: 1px solid var(--border);
  padding: 10px 12px;
  font-size: 13.5px; color: var(--text-muted);
  max-width: 78ch;
}
.evidence .etype {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--text-faint);
  display: block; margin-bottom: 4px;
}

.ref { font-family: var(--mono); font-size: 12px; color: var(--text-faint); }
a.ref:hover { color: var(--blue); }

.rowlist { list-style: none; margin: 0; padding: 0; }
.rowlist li {
  display: flex; gap: 12px; align-items: baseline;
  padding: 10px 2px; border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.rowlist li:last-child { border-bottom: none; }
.rowlist .when { font-family: var(--mono); font-size: 12px; color: var(--text-faint);
                 flex-shrink: 0; width: 88px; }

/* method / artifact block */
.artifact {
  font-family: var(--mono); font-size: 12.5px;
  background: var(--bg-inset); border: 1px solid var(--border);
  padding: 12px 14px;
  color: var(--text-muted); overflow-x: auto;
}
.artifact .k { color: var(--text-faint); }
.artifact .v { color: var(--text); }

/* decision log timeline */
.timeline { list-style: none; margin: 0; padding: 0 0 0 2px; }
.timeline li { position: relative; padding: 0 0 14px 22px; border-left: 1px solid var(--border); margin-left: 6px; }
.timeline li:last-child { padding-bottom: 2px; }
.timeline li::before {
  content: ""; position: absolute; left: -4.5px; top: 7px;
  width: 8px; height: 8px;
  background: var(--bg); border: 2px solid var(--text-faint);
}
.timeline .decision { font-size: 14px; }
.timeline .reason { font-size: 13px; color: var(--text-muted); }
.timeline .when { font-family: var(--mono); font-size: 11.5px; color: var(--text-faint); }

/* verdicts */
.verdict { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em;
           text-transform: uppercase; padding: 2px 8px; border: 1px solid; }
.verdict-supported   { color: var(--green); border-color: var(--green-dim); }
.verdict-unsupported { color: var(--red); border-color: var(--red-dim); }
.verdict-uncertain   { color: var(--amber); border-color: var(--amber-dim); }

/* repro depth (legacy .tier styling; kinds now render as words via _trust.html) */
.tier { font-family: var(--mono); font-size: 11.5px; color: var(--text-muted); }
.tier b { color: var(--text); }

/* graph / lineage edges */
.edges { font-size: 13.5px; }
.edges .etype-label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--text-faint); padding-right: 8px; }

/* tables (stats, agents) — legacy class, aligned to ledger look */
table.data { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.data th { text-align: left; font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-faint);
  padding: 8px 10px; border-bottom: 1px solid var(--border-strong); font-weight: 600; }
table.data td { padding: 9px 10px; border-bottom: 1px solid var(--border); }
table.data tr:hover td { background: rgba(255,255,255,0.015); }

/* triage meters — segmented votes with n, never a composite score */
.meter { margin-bottom: 12px; }
.meter .meter-head { display: flex; justify-content: space-between; font-size: 13px;
  color: var(--text-muted); margin-bottom: 5px; }
.meter .meter-head .val { font-family: var(--mono); font-size: 11.5px; color: var(--text); }
.meter .segs { display: flex; gap: 3px; }
.meter .seg { height: 6px; flex: 1; background: var(--border); }
.meter .seg.on { background: var(--blue); }
.meter.amber .seg.on { background: var(--amber); }

/* reputation meters — dimensions side by side, never one number */
.dims { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.dim { background: var(--bg-raised); border: 1px solid var(--border);
       padding: 10px 12px; }
.dim .n { font-family: var(--mono); font-size: 20px; font-weight: 600; color: var(--text); }
.dim .label { font-size: 11.5px; color: var(--text-faint); text-transform: uppercase;
              letter-spacing: 0.08em; font-family: var(--mono); }

/* stats strip (home) */
.stats-strip { display: flex; gap: 12px; flex-wrap: wrap; margin: 18px 0; }
.stat { background: var(--bg-raised); border: 1px solid var(--border);
        padding: 12px 18px; min-width: 130px; }
/* stat numbers are neutral ink by default; color ONLY when the stat is a state count */
.stat .n { font-family: var(--mono); font-size: 22px; font-weight: 600; color: var(--text-bright); }
.stat .n.green { color: var(--green); } .stat .n.amber { color: var(--amber); }
.stat .n.red { color: var(--red); } .stat .n.blue { color: var(--blue); }
.stat .label { font-family: var(--mono); font-size: 11.5px; color: var(--text-faint);
               letter-spacing: 0.06em; text-transform: uppercase; }

/* search page */
.search-hero input {
  width: 100%; font-size: 16px; padding: 12px 16px;
  background: var(--bg-raised); border: 1px solid var(--border-strong);
  color: var(--text); font-family: var(--mono);
}
.search-hero input:focus { outline: none; border-color: var(--blue); }
/* search results are a ledger like every other list (was: .hit card soup) */
.s-type { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--text-faint); margin-bottom: 2px; }
.s-snippet { color: var(--text-muted); font-size: 13px; margin-top: 3px; line-height: 1.5;
  max-width: 94ch; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; }

/* ---------------- split layout (detail pages) ---------------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; align-items: start; }
.split > aside { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 78px; }
.scard { border: 1px solid var(--border); background: var(--bg-inset); padding: 16px 18px; }
.scard .scard-title { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--text-faint); margin-bottom: 12px; }
.scard .kv { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px;
  padding: 3px 0; }
.scard .kv .k { color: var(--text-muted); }
.scard .kv .v { font-family: var(--mono); font-size: 12px; color: var(--text); text-align: right; }
/* state value in a sidecard is colored by state (specificity beats the .v ink default) */
.scard .kv .v.t-open { color: var(--amber); }
.scard .kv .v.t-active { color: var(--blue); }
.scard .kv .v.t-corroborated { color: var(--green); }
.scard .kv .v.t-contested { color: var(--red); }
.scard .kv .v.t-neutral { color: var(--text-muted); }
.scard .footnote { font-family: var(--mono); font-size: 10.5px; color: #4a5361; margin-top: 12px; }

/* ---------------- misc ---------------- */
.muted { color: var(--text-muted); }
.faint { color: var(--text-faint); }
.small { font-size: 13px; }
hr.rule { border: none; border-top: 1px solid var(--border); margin: 26px 0; }
.pill-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.tag { font-family: var(--mono); font-size: 11.5px; color: var(--text-muted);
       border: 1px solid var(--border-strong); padding: 2px 9px; }
a.tag:hover { color: var(--text); text-decoration: none; border-color: var(--text-faint); }
.empty { color: var(--text-faint); font-size: 13.5px; font-style: italic; padding: 8px 0; }
.callout {
  border: 1px solid var(--amber-dim); background: rgba(245,165,36,0.05);
  padding: 12px 16px; font-size: 13.5px; color: var(--text-muted);
}
.callout.red { border-color: var(--red-dim); background: rgba(229,72,77,0.05); }

/* ---------------- syntheses (curated editorial surface) ---------------- */
.synth-lede { font-family: var(--serif); font-size: 18.5px; line-height: 1.5;
  color: var(--text-muted); max-width: 74ch; margin: 4px 0 22px; }
.synth-lede a { color: var(--blue); }

/* 16:7 hero visualization slot; only rendered when a viz is attached */
.synth-hero { border: 1px solid var(--border-strong); background: #0A0C11;
  aspect-ratio: 16 / 7; margin: 0 0 24px; overflow: hidden; }
.synth-hero img, .synth-hero svg { width: 100%; height: 100%; object-fit: contain; display: block; }
.synth-hero .hero-embed { width: 100%; height: 100%; border: 0; display: block; }

/* the result plate: headline result + the one earned verification word */
.result-plate { display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
  border: 1px solid var(--border-strong); background: var(--bg-inset);
  padding: 15px 20px; margin: 0 0 26px; }
.result-plate .rp-headline { font-family: var(--serif); font-size: 29px; font-weight: 600;
  color: var(--text-bright); letter-spacing: -0.01em; }

.synthesis-body { max-width: 76ch; line-height: 1.75; font-size: 15.5px; color: var(--text); }
.synthesis-body > h2:first-child { margin-top: 6px; }
.synthesis-body p { margin: 0 0 15px; }
.synthesis-body ul { margin: 0 0 15px; padding-left: 20px; }
.synthesis-body li { margin: 5px 0; }
.synthesis-body a { color: var(--blue); }
.synthesis-body strong { color: var(--text-bright); }
.synthesis-body em { color: var(--text-muted); }
.synthesis-body code { font-family: var(--mono); font-size: 0.86em; color: var(--text-bright);
  background: var(--bg-raised); padding: 1px 5px; border: 1px solid var(--border); }

/* certificate ledger: numeric cell carries a green (earned) bar under the value */
.lbar-wrap { min-width: 108px; }
.lnum { font-family: var(--mono); font-size: 12.5px; color: var(--text); }
.lbar { display: block; height: 4px; background: var(--green); opacity: 0.8;
  margin-top: 5px; min-width: 2px; }
.lnull { color: var(--text-faint); }
.ledger-caption { font-family: var(--mono); font-size: 11px; color: var(--text-faint);
  line-height: 1.55; max-width: 74ch; }

/* sidecards: verification note, findings-in-order, machine block */
.scard .note { font-size: 12.5px; color: var(--text-muted); line-height: 1.55; margin-top: 9px; }
.scard .fin { padding: 9px 0; border-top: 1px solid var(--border); }
.scard .fin:first-of-type { border-top: none; padding-top: 2px; }
.scard .role { font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--brand); }
.scard .ft { display: block; font-size: 13px; color: var(--text); margin-top: 2px; line-height: 1.35; }
.scard a.ft:hover { color: var(--text-bright); text-decoration: none; }
.scard .fm { font-family: var(--mono); font-size: 10.5px; color: var(--text-faint); }
.fo-success { color: var(--green); }
.fo-partial { color: var(--blue); }
.fo-negative { color: var(--text-muted); }
.scard .mach a { display: block; font-family: var(--mono); font-size: 11.5px;
  padding: 2px 0; color: var(--blue); }

/* syntheses index = a carousel of the artist's pieces, each a synthesis */
.v-corroborated { color: var(--green); }
.v-active { color: var(--blue); }
.v-neutral { color: var(--text-muted); }

.syn-carousel-wrap { position: relative; margin-top: 28px; }
.syn-carousel { display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding-bottom: 10px; scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent; }
.syn-carousel::-webkit-scrollbar { height: 6px; }
.syn-carousel::-webkit-scrollbar-thumb { background: var(--border-strong); }
.syn-card { flex: 0 0 clamp(290px, 44%, 460px); scroll-snap-align: start;
  border: 1px solid var(--border); background: var(--bg-inset);
  text-decoration: none; display: flex; flex-direction: column; transition: border-color .15s; }
.syn-card:hover { border-color: var(--border-strong); text-decoration: none; }
.syn-card-viz { aspect-ratio: 16 / 9; background: #0A0C11; overflow: hidden;
  border-bottom: 1px solid var(--border); }
.syn-card-viz img { width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .4s ease; }
.syn-card:hover .syn-card-viz img { transform: scale(1.035); }
/* the live animation tile: decorative, so the whole card stays one click target */
.syn-card-viz .tile-embed { width: 100%; height: 100%; border: 0; display: block; pointer-events: none; }
.syn-card-noviz { width: 100%; height: 100%; display: flex; align-items: center;
  justify-content: center; font-family: var(--serif); font-size: 42px; color: var(--text-faint); }
.syn-card-body { padding: 15px 18px 18px; display: flex; flex-direction: column; gap: 7px; }
.syn-card-meta { font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em;
  text-transform: uppercase; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.syn-card-result { color: var(--text-bright); font-weight: 600; }
.syn-card-title { font-family: var(--serif); font-size: 19px; color: var(--text-bright); line-height: 1.25; }
.syn-card:hover .syn-card-title { text-decoration: underline; text-underline-offset: 3px; }
.syn-card-dek { color: var(--text-muted); font-size: 13.5px; line-height: 1.5; }
/* honesty caveats on the card face (standing, novelty) — never a tooltip */
.syn-card-note { font-size: 12px; color: var(--text-muted); line-height: 1.5; margin-top: 8px; }
.syn-card-note .nlabel { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--text-faint); margin-right: 7px; }
.syn-nav { position: absolute; top: 31%; transform: translateY(-50%); z-index: 3;
  width: 40px; height: 40px; border: 1px solid var(--border-strong); background: rgba(10,12,17,0.86);
  color: var(--text); font-family: var(--sans); font-size: 22px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center; }
.syn-nav:hover { color: var(--text-bright); border-color: var(--text-faint); }
.syn-nav:disabled { opacity: 0.28; cursor: default; }
.syn-prev { left: -8px; }
.syn-next { right: -8px; }

/* homepage: featured syntheses, three across with square animated tiles.
   Leads the page; live-activity is demoted below. Empty slots render as placeholders so the
   row keeps its shape until the curator's next syntheses land. */
.home-sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.home-sec-head h2 { margin: 34px 0 0; }
.sec-more { font-family: var(--mono); font-size: 11.5px; color: var(--blue);
  text-transform: uppercase; letter-spacing: 0.08em; white-space: nowrap; }

.home-syn-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 14px 0 8px; }
.hsyn-card { border: 1px solid var(--border); background: var(--bg-inset);
  display: flex; flex-direction: column; text-decoration: none; transition: border-color 0.15s; }
a.hsyn-card:hover { border-color: var(--border-strong); text-decoration: none; }
.hsyn-viz { aspect-ratio: 4 / 3; background: #0A0C11; overflow: hidden;
  border-bottom: 1px solid var(--border); }
/* the tile is decorative: let clicks fall through to the card link */
.hsyn-viz .tile-embed { width: 100%; height: 100%; border: 0; display: block; pointer-events: none; }
.hsyn-ph { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 40px; color: #2b3442; }
.hsyn-body { padding: 12px 14px 14px; }
.hsyn-meta { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.07em;
  text-transform: uppercase; display: flex; gap: 9px; align-items: center; flex-wrap: wrap;
  margin-bottom: 6px; }
.hsyn-result { color: var(--text-bright); font-weight: 600; }
.hsyn-title { font-family: var(--serif); font-size: 16px; line-height: 1.25; color: var(--text-bright); }
a.hsyn-card:hover .hsyn-title { text-decoration: underline; text-underline-offset: 3px; }
/* verbatim dek on the compact tile: carries the discover/verify register, clamped to stay short */
.hsyn-dek { font-size: 11.5px; color: var(--text-muted); line-height: 1.45; margin-top: 6px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hsyn-empty { opacity: 0.5; }
.hsyn-empty .hsyn-title { color: var(--text-faint); }

@media (max-width: 820px) { .home-syn-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .home-syn-grid { grid-template-columns: 1fr; } }

@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .split > aside { position: static; }
}
@media (max-width: 720px) {
  nav.primary { display: none; }
  form.search-mini input { width: 130px; }
  .rowlist .when { width: 64px; }
  h1 { font-size: 25px; }
}

/* ============================================================================
   Account dashboard (dashboard.html) — all scoped under .acct so nothing leaks
   to other pages. Sidebar + control sections; square corners + palette thesis.
   ============================================================================ */
.acct { display: grid; grid-template-columns: 208px 1fr; gap: 32px; align-items: start;
  margin-top: 8px; }
.acct h2 { font-family: var(--serif); font-weight: 600; font-size: 20px; margin: 0;
  color: var(--text-bright); }
.acct .mono { font-family: var(--mono); }

/* sidebar */
.acct-side { position: sticky; top: 20px; display: flex; flex-direction: column; gap: 16px; }
.acct-id { display: flex; align-items: center; gap: 11px; padding-bottom: 15px;
  border-bottom: 1px solid var(--border); }
.acct-av { width: 40px; height: 40px; background: var(--bg-inset); border: 1px solid var(--border-strong);
  color: var(--text-muted); font-family: var(--mono); font-size: 14px; display: flex;
  align-items: center; justify-content: center; flex: none; }
.acct-av.lg { width: 60px; height: 60px; font-size: 20px; }
.acct-nm { font-family: var(--serif); font-size: 15.5px; color: var(--text-bright); line-height: 1.2; }
.acct-hd { font-size: 12.5px; color: var(--text-muted); }
.acct-nav { display: flex; flex-direction: column; gap: 1px; }
.acct-nav a { display: flex; align-items: center; gap: 10px; padding: 7px 10px;
  color: var(--text-muted); font-size: 13.5px; border-left: 2px solid transparent; }
.acct-nav a:hover { color: var(--text-bright); text-decoration: none; background: var(--bg-raised); }
.acct-nav a .bul { width: 5px; height: 5px; background: var(--border-strong); flex: none; }
.acct-nav a.active { color: var(--text-bright); border-left-color: var(--brand); background: var(--bg-raised); }
.acct-nav a.active .bul { background: var(--brand); }
.acct-side-mode { font-family: var(--mono); font-size: 11px; color: var(--text-faint);
  padding: 10px; border: 1px solid var(--border); display: flex; flex-direction: column; gap: 5px; }
.acct-side-mode .lbl { text-transform: uppercase; letter-spacing: 0.12em; }
.acct-side-mode .val { font-size: 12.5px; color: var(--text); }
.acct-side-mode .val.auto { color: var(--blue); }
.acct-side-mode .val.ask { color: var(--amber); }
.acct-side-foot { line-height: 1.6; }

/* sections */
.acct-main { min-width: 0; display: flex; flex-direction: column; gap: 30px; }
.acct-main section { scroll-margin-top: 16px; }
.acct-sec { display: flex; align-items: baseline; gap: 12px; margin: 0 0 13px; }
.acct-num { font-size: 12px; color: var(--text-faint); padding-top: 2px; }
.acct-sub { font-size: 13px; color: var(--text-muted); margin-left: auto; text-align: right; }
.acct-pad { padding: 18px 20px; }
.acct-h3 { font-family: var(--serif); font-weight: 600; font-size: 15.5px; color: var(--text-muted);
  margin: 22px 0 10px; }
.acct-hint { margin-top: 12px; line-height: 1.5; }
.acct-ttl { color: var(--text-bright); font-weight: 500; }
a.acct-ttl:hover { text-decoration: underline; text-underline-offset: 3px; }

/* self-contained ledger edge cells (scoped; product globals not relied on) */
.acct .edge-cell { width: 3px; padding: 0 !important; }
.acct .e-hold { background: var(--amber); } .acct .e-live { background: var(--blue); }
.acct .e-neutral { background: var(--border-strong); } .acct .e-contested { background: var(--red); }
.acct .e-success { background: var(--green); } .acct .e-partial { background: var(--blue); }
.acct .e-negative { background: var(--gray); } .acct .e-corroborated { background: var(--green); }
.acct .act-h, .acct .act-cell { text-align: right; white-space: nowrap; width: 1%; }
.acct .panel.edge-amber { border-left: 3px solid var(--amber); }
.acct .panel.edge-blue { border-left: 3px solid var(--blue); }
.acct .panel.edge-red { border-left: 3px solid var(--red-dim); }

/* profile display */
.acct-prof { display: flex; gap: 16px; align-items: flex-start; }
.acct-prof-body { min-width: 0; }
.acct-prof-name { font-family: var(--serif); font-size: 20px; color: var(--text-bright); }
.acct-prof-sub { font-size: 13px; margin-top: 2px; }
.acct-prof-aff { font-size: 14px; color: var(--text); margin-top: 8px; }
.acct-prof-bio { font-size: 14px; color: var(--text-muted); margin: 8px 0 0; max-width: 62ch; }
.acct-links { display: flex; gap: 14px; margin-top: 12px; font-family: var(--mono); font-size: 12.5px; }

/* profile edit form */
.acct-prof-head { display: flex; gap: 16px; align-items: center; margin-bottom: 6px; }
.acct-form { margin-top: 16px; }
.acct .fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
.acct .ff { margin-bottom: 14px; }
.acct label.fl { display: block; font-family: var(--mono); font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--text-muted); margin: 0 0 6px; }
.acct .fi { width: 100%; background: var(--bg-inset); border: 1px solid var(--border-strong);
  color: var(--text-bright); font-family: var(--sans); font-size: 14.5px; padding: 9px 11px; outline: none; }
.acct .fi.mono { font-family: var(--mono); }
.acct .fi:focus { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue-dim); }
.acct .fi.ta { min-height: 74px; resize: vertical; line-height: 1.5; }
.acct .fi.locked { color: var(--text-faint); background: #090c11; border-color: var(--border); cursor: not-allowed; }
.acct .fi.locked:focus { box-shadow: none; border-color: var(--border); }
.acct .hrow { display: flex; align-items: stretch; }
.acct .hrow .at { display: flex; align-items: center; padding: 0 11px; background: var(--bg-inset);
  border: 1px solid var(--border-strong); border-right: 0; color: var(--text-faint); font-family: var(--mono); font-size: 14.5px; }
.acct .hrow.locked .at { background: #090c11; border-color: var(--border); }
.acct .hrow .fi { border-left: 0; }
.acct .acct-formbar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 4px; }
.acct .acct-formbar .hint { flex: 1; min-width: 220px; font-size: 12.5px; color: var(--text-faint); }

/* publish-mode toggle: square, draw-border + bloom (no slide) */
.acct-toggle { position: relative; display: grid; grid-template-columns: 1fr 1fr;
  border: 1px solid var(--border-strong); background: var(--bg-inset); height: 88px;
  cursor: pointer; user-select: none; outline: none; width: 100%; max-width: 560px; }
.acct-toggle:focus-visible { box-shadow: 0 0 0 2px var(--blue-dim); }
.acct-toggle[data-mode="ask"]:focus-visible { box-shadow: 0 0 0 2px var(--amber-dim); }
.acct-opt { position: relative; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 5px; text-align: center; color: var(--text-faint);
  transition: color 0.2s, background 0.25s; padding: 0 12px; overflow: hidden; }
.acct-opt.auto { --accent: var(--blue); } .acct-opt.ask { --accent: var(--amber); }
.acct-opt .frame { position: absolute; inset: 0; border: 2px solid var(--accent); opacity: 0;
  clip-path: inset(46% 46% 46% 46%); pointer-events: none; }
.acct-opt.active { color: var(--accent); }
.acct-opt.auto.active { background: rgba(108,149,235,0.10); }
.acct-opt.ask.active { background: rgba(245,165,36,0.10); }
.acct-opt.active .frame { animation: acct-drawframe 0.26s cubic-bezier(0.2,0.75,0.2,1) forwards; }
.acct-opt.active.bloom { animation: acct-bloom 0.55s ease; }
@keyframes acct-drawframe { 0% { opacity: 0; clip-path: inset(46% 46% 46% 46%); }
  55% { opacity: 1; } 100% { opacity: 1; clip-path: inset(0 0 0 0); } }
@keyframes acct-bloom { 0% { box-shadow: inset 0 0 0 0 transparent; }
  28% { box-shadow: inset 0 0 34px -6px var(--accent); }
  100% { box-shadow: inset 0 0 14px -8px transparent; } }
.acct-opt .t { font-size: 15px; font-weight: 600; letter-spacing: 0.2px; line-height: 1.15; }
.acct-opt .d { font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.12em; }
.acct-opt .glyph { opacity: 0.85; }
.acct-readout { display: flex; gap: 12px; align-items: flex-start; margin-top: 16px; max-width: 640px; }
.acct-chip { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em;
  padding: 4px 9px; border: 1px solid var(--border-strong); white-space: nowrap; margin-top: 1px; }
.acct-chip.auto { color: var(--blue); border-color: var(--blue-dim); }
.acct-chip.ask { color: var(--amber); border-color: var(--amber-dim); }
.acct-readout p { margin: 0; color: var(--text-muted); font-size: 14px; }
.acct-readout p .m { color: var(--text); }
.acct-savestate { margin-top: 10px; min-height: 16px; }
.acct-savestate.ok { color: var(--green); } .acct-savestate.bad { color: var(--red); }
.acct-savestate.faint { color: var(--text-faint); }

/* queue empty + action buttons */
.acct-empty { padding: 24px 20px; text-align: center; color: var(--text-faint); font-size: 13.5px; }
.acct-empty .big { color: var(--text-muted); font-size: 14px; margin-bottom: 4px; }
.acct-actions { display: inline-flex; gap: 6px; justify-content: flex-end; flex-wrap: nowrap; }
.acct-btn { font-family: var(--sans); font-size: 14px; font-weight: 500; padding: 8px 14px;
  border: 1px solid var(--border-strong); background: var(--bg-inset); color: var(--text-bright);
  cursor: pointer; transition: border-color 0.15s, background 0.15s; }
.acct-btn:hover { border-color: var(--text-faint); }
.acct-btn.sm { padding: 5px 11px; font-size: 12.5px; }
.acct-btn.ok { background: transparent; color: var(--green); border-color: var(--green-dim); }
.acct-btn.ok:hover { background: rgba(61,214,140,0.1); border-color: var(--green); }
.acct-btn.warn { background: transparent; color: var(--amber); border-color: var(--amber-dim); }
.acct-btn.warn:hover { background: rgba(245,165,36,0.1); border-color: var(--amber); }
.acct-invite-bar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 2px; }
.acct-invite-bar .fi { max-width: 340px; }
.acct .ipill { font-family: var(--mono); font-size: 10.5px; padding: 3px 8px; border: 1px solid;
  text-transform: uppercase; letter-spacing: 0.08em; white-space: nowrap; }
.acct .ipill.unclaimed { color: var(--amber); border-color: var(--amber-dim); }
.acct .ipill.joined { color: var(--blue); border-color: var(--blue-dim); }
.acct .ipill.revoked { color: var(--text-faint); border-color: var(--border-strong); }
.acct .ipill.active { color: var(--blue); border-color: var(--blue-dim); }
.acct .ipill.pending { color: var(--amber); border-color: var(--amber-dim); }
/* reveal-once secret box (a freshly minted account token; shown once) */
.acct-reveal { display: none; margin-top: 14px; background: var(--bg-inset); border: 1px solid var(--green-dim);
  border-left: 3px solid var(--green); padding: 12px 14px; align-items: center; gap: 12px; flex-wrap: wrap; }
.acct-reveal.show { display: flex; }
.acct-reveal .rk { color: var(--green); letter-spacing: 0.4px; word-break: break-all; font-size: 13px; }
.acct-reveal .rwarn { color: var(--text-faint); font-size: 12px; }
.acct-btn.danger { background: transparent; color: var(--red); border-color: var(--red-dim); }
.acct-btn.danger:hover { background: rgba(229,72,77,0.1); border-color: var(--red); }
.acct-return { display: inline-flex; gap: 6px; align-items: center; }
.acct-note { background: var(--bg-inset); border: 1px solid var(--border-strong); color: var(--text-bright);
  font-family: var(--sans); font-size: 12.5px; padding: 5px 9px; width: 210px; outline: none; }
.acct-note:focus { border-color: var(--amber); }

/* ---- signup / join (join.html) — scoped under .signup ---- */
.signup { max-width: 640px; }
.signup h1 { margin-bottom: 10px; }
.signup-pad { padding: 20px 22px; }
.signup-form { margin-top: 18px; }
.signup .sgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
.signup .sfield { margin-bottom: 14px; }
.signup .sfield label { display: block; font-family: var(--mono); font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--text-muted); margin: 0 0 6px; }
.signup .fi { width: 100%; background: var(--bg-inset); border: 1px solid var(--border-strong);
  color: var(--text-bright); font-family: var(--sans); font-size: 14.5px; padding: 9px 11px; outline: none; }
.signup .fi.mono { font-family: var(--mono); }
.signup .fi:focus { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue-dim); }
.signup .hrow { display: flex; align-items: stretch; }
.signup .hrow .at { display: flex; align-items: center; padding: 0 11px; background: var(--bg-inset);
  border: 1px solid var(--border-strong); border-right: 0; color: var(--text-faint); font-family: var(--mono); font-size: 14.5px; }
.signup .hrow .fi { border-left: 0; }
.signup .savail { font-family: var(--mono); font-size: 12.5px; margin-top: 7px; min-height: 18px; }
.signup .savail.ok { color: var(--green); }
.signup .savail.no { color: var(--red); }
.signup .savail.checking { color: var(--text-faint); }
.signup .sbar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 4px; }
.signup .sbar .hint { flex: 1; min-width: 220px; font-size: 12.5px; color: var(--text-faint); }
.signup .sbtn { font-family: var(--sans); font-size: 14px; font-weight: 500; padding: 9px 18px;
  background: var(--brand); border: 1px solid var(--brand); color: #fff; cursor: pointer;
  transition: background 0.15s, transform 0.05s; }
.signup .sbtn:hover { background: #f05a5f; }
.signup .sbtn:active { transform: translateY(1px); }
.signup .signup-err { border: 1px solid var(--red-dim); border-left: 3px solid var(--red);
  background: rgba(229,72,77,0.06); color: #e79aa0; padding: 10px 14px; margin: 6px 0 14px; font-size: 13.5px; }
.signup .signup-sent p { font-size: 14.5px; }
@media (max-width: 520px) { .signup .sgrid { grid-template-columns: 1fr; } }

@media (max-width: 860px) {
  .acct { grid-template-columns: 1fr; gap: 18px; }
  .acct-side { position: static; flex-direction: row; flex-wrap: wrap; align-items: center;
    gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
  .acct-id { border: 0; padding: 0; }
  .acct-nav { flex-direction: row; flex-wrap: wrap; }
  .acct-nav a { border-left: 0; border-bottom: 2px solid transparent; padding: 6px 8px; }
  .acct-nav a.active { border-left: 0; border-bottom-color: var(--brand); }
  .acct-side-mode, .acct-side-foot { display: none; }
}
@media (max-width: 560px) {
  .acct .hide-sm { display: none; }
  .acct-prof-name { font-size: 18px; }
}
