/* TEK OR LARP: a dark on-chain analytics terminal. Hairline panels, mono numbers, flat verdict pills. No framework. */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;800&family=JetBrains+Mono:wght@400;600&display=swap');

:root {
  color-scheme: dark;
  --bg: #0A0B0E;
  --panel: #0F1218;
  --panel-2: #141822;
  --line: #1C2130;
  --line-2: #2C3448;
  --text: #F5F7FA;
  --muted: #8A93A6;
  --accent: #4C8DFF;
  --real: #2FBF71;
  --larp: #E5534B;
  --slop: #E0A33A;
  --nottek: #8A93A6;
  --radius: 10px;
  --sans: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  --sheen: linear-gradient(180deg, rgba(255, 255, 255, .022), rgba(255, 255, 255, 0) 140px);
  --logo: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Crect width='64' height='64' rx='14' fill='%230E1117'/%3E%3Crect x='.75' y='.75' width='62.5' height='62.5' rx='13.25' fill='none' stroke='%232A3142' stroke-width='1.5'/%3E%3Cpath d='M15 25V15h10M39 15h10v10M49 39v10H39M25 49H15V39' fill='none' stroke='%23F5F7FA' stroke-width='4.5' stroke-linecap='square'/%3E%3Crect x='26' y='26' width='12' height='12' rx='2.5' fill='%234C8DFF'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; background: var(--bg); }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font: 400 15px/1.55 var(--sans);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  /* clip, not hidden: with html clipping too, a hidden body becomes its own scroll box and the sticky CA bar
     scrolls away with it. (hidden first: browsers without clip ignore the second line) */
  overflow-x: hidden;
  overflow-x: clip;
}
a { color: inherit; }
button { font: inherit; color: inherit; }
img { max-width: 100%; }
::selection { background: rgba(76, 141, 255, .35); }
/* a CA is 32 to 44 characters with no break opportunity: wherever one is shown it breaks at the edge of its box.
   Every overflow-wrap: anywhere comes with word-break: break-word (iOS Safari before 15.4 ignores "anywhere"), and
   every one-column grid is minmax(0, 1fr) so a long word never pushes a column past the edge. */
code { font-family: var(--mono); font-size: .92em; overflow-wrap: anywhere; word-break: break-word; }
[hidden] { display: none !important; }
.t-real { color: var(--real); }
.t-larp { color: var(--larp); }
.t-slop { color: var(--slop); }
.t-nottek, .t-pending { color: var(--nottek); }
.good { color: var(--real); font-weight: 600; }
.bad { color: var(--larp); font-weight: 600; }

/* purely decorative leftovers of the old paper look */
.clip, .clipper, .tape, .tag-hole, .sheet::before, .sheet::after { display: none !important; }

/* ---------- the project's coin bar (hidden until a CA is set) ---------- */
html { scroll-padding-top: 12px; }
html:has(> body > .cabar:not([hidden])) { scroll-padding-top: calc(var(--cabar-h, 40px) + 12px); }
.cabar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 6px 16px; min-height: 40px;
  background: rgba(17, 20, 27, .92); color: var(--text);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  font: 500 13px/1 var(--sans);
}
.cabar-label { font: 600 13px/1 var(--mono); color: var(--accent); }
.cabar-ca { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: 12.5px; user-select: all; }
.cabar-btn {
  flex: none; padding: 6px 12px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--panel-2); color: var(--text);
  font: 600 12px/1 var(--sans); letter-spacing: .04em; text-decoration: none; cursor: pointer; transition: border-color .12s, background .12s;
}
.cabar-btn:hover { border-color: var(--accent); }
.cabar-btn.buy { background: var(--accent); border-color: var(--accent); color: #fff; }
.cabar-btn.buy:hover { background: #5f9aff; }

/* ---------- top strip ---------- */
.topstrip {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px;
  max-width: 1180px; margin: 0 auto; padding: 16px 20px 14px;
  font: 500 11.5px/1.3 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
}
.topstrip .sep { opacity: .45; }
.topstrip .sep:nth-last-child(2) { display: none; }
.labstatus { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; padding: 5px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); font: 400 11.5px/1 var(--mono); letter-spacing: 0; text-transform: none; color: var(--text); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--real); box-shadow: 0 0 0 3px rgba(34, 197, 94, .18); }
.dot.busy { background: var(--slop); box-shadow: 0 0 0 3px rgba(245, 158, 11, .2); animation: blink 1.1s infinite; }
@keyframes blink { 50% { opacity: .35; } }
.miniform { display: flex; margin-left: auto; min-width: 0; flex: 0 1 400px; text-transform: none; letter-spacing: 0; }
.miniform input {
  flex: 1; min-width: 0; padding: 9px 12px; border: 1px solid var(--line); border-right: 0; border-radius: var(--radius) 0 0 var(--radius);
  background: var(--panel); font: 400 13px var(--mono); color: var(--text); outline: none;
}
.miniform input::placeholder { color: var(--muted); }
.miniform input:focus { border-color: var(--accent); }
.miniform button { padding: 9px 14px; border: 1px solid var(--accent); border-radius: 0 var(--radius) var(--radius) 0; background: var(--accent); color: #fff; font: 600 12.5px var(--sans); letter-spacing: .04em; cursor: pointer; }

/* ---------- the page body ---------- */
.sheet { position: relative; max-width: 1180px; margin: 0 auto 28px; padding: 4px 20px 40px; }

/* shared panel surface */
.intake, .board, .tags, .progress, .card, .case-head, .sop-steps li, .ledger, .bl, .polaroid, .specimen {
  background: var(--sheen), var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

/* ---------- wordmark + logo mark ---------- */
.wordmark { display: inline-flex; align-items: center; gap: .26em; text-decoration: none; color: var(--text); font: 800 1em/1 var(--sans); letter-spacing: -.035em; white-space: nowrap; }
.wordmark::before { content: ''; flex: none; width: 1.05em; height: 1.05em; margin-right: .1em; background: var(--logo) no-repeat center / contain; }
.wm-tek, .wm-larp { color: var(--text); }
.wm-or { color: var(--muted); text-transform: uppercase; }
.wm-hero { font-size: clamp(38px, 5.4vw, 60px); }
.wm-strip { font-size: 20px; letter-spacing: -.03em; text-transform: none; }
.wm-small { font-size: 17px; }
.wm-card { font-size: 30px; }
.wm-og { font-size: 112px; }

/* ---------- verdict pills (were rubber stamps) ---------- */
.stamp {
  --c: var(--nottek);
  display: inline-flex; align-items: center; gap: .6em; max-width: 100%;
  padding: .5em .9em; border: 1px solid color-mix(in srgb, var(--c) 45%, transparent); border-radius: 999px;
  background: color-mix(in srgb, var(--c) 12%, transparent);
  color: var(--c); font: 600 12px/1 var(--sans); text-transform: uppercase; letter-spacing: .08em; white-space: nowrap;
  user-select: none;
}
.stamp::before { content: ''; flex: none; width: .55em; height: .55em; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 .22em color-mix(in srgb, var(--c) 22%, transparent); }
.stamp-word { display: block; }
.stamp-score { display: block; padding-left: .7em; border-left: 1px solid color-mix(in srgb, var(--c) 40%, transparent); font: 600 .78em/1 var(--mono); letter-spacing: 0; color: var(--text); }
.stamp-real { --c: var(--real); }
.stamp-larp { --c: var(--larp); }
.stamp-slop { --c: var(--slop); }
.stamp-nottek { --c: var(--nottek); }
.stamp-pending { --c: var(--accent); }
.stamp-big { font-size: 20px; padding: .55em 1em; letter-spacing: .06em; }
.stamp-big .stamp-score { font-size: .72em; }
.stamp.stamp-long { letter-spacing: .05em; }
.slam { animation: slam .35s ease-out .1s both; }
@keyframes slam { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }
.thud { animation: none; }
.stamp-pending.working::before { animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .3; } }

/* ---------- home: intake ---------- */
.intake { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 28px 44px; align-items: center; padding: 36px 40px; }
.kicker { margin: 20px 0 8px; font: 600 clamp(17px, 1.8vw, 20px)/1.35 var(--sans); letter-spacing: -.01em; color: var(--text); }
.lede { margin: 0 0 24px; max-width: 62ch; color: var(--muted); font-size: 15px; }
.lede b { font-weight: 600; }
.caform { max-width: 640px; }
.formlabel { display: block; margin-bottom: 8px; font: 600 11px var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.field { display: flex; gap: 8px; align-items: stretch; }
.field input {
  flex: 1; min-width: 0; padding: 13px 14px; border: 1px solid var(--line-2); border-radius: var(--radius);
  background: var(--bg); font: 400 15px var(--mono); color: var(--text); outline: none; transition: border-color .12s, box-shadow .12s;
}
.field input::placeholder { color: #5D6577; }
.field input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(76, 141, 255, .2); }
.btn-stamp {
  flex: none; padding: 0 22px; border: 1px solid var(--accent); border-radius: var(--radius); background: var(--accent); color: #fff;
  font: 600 14px/1 var(--sans); letter-spacing: .02em; cursor: pointer; transition: background .12s;
}
.btn-stamp:hover { background: #5f9aff; }
.btn-stamp:active { background: #3d7ae8; }
.btn-stamp[disabled] { opacity: .55; cursor: wait; }
.formhint { margin: 10px 0 0; font-size: 13.5px; color: var(--muted); overflow-wrap: anywhere; word-break: break-word; }
.formhint:empty { display: none; }
.formhint.err { color: var(--larp); font-weight: 600; }
.formex { margin: 10px 0 0; font-size: 13.5px; color: var(--muted); }
.linkish { padding: 0; border: 0; background: none; color: var(--accent); text-decoration: underline; text-decoration-color: rgba(76, 141, 255, .4); text-underline-offset: 3px; cursor: pointer; font-size: inherit; }
.linkish:hover { text-decoration-color: var(--accent); }

/* sample results, as a clean stack of rows */
.intake-art { position: relative; display: grid; gap: 10px; align-content: center; }
.specimen {
  position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px;
  padding: 14px 16px; background: var(--panel-2);
}
.spec-label { font: 600 11px var(--mono); color: var(--muted); white-space: nowrap; }
.spec-lines { display: grid; gap: 6px; }
.spec-lines i { display: block; height: 6px; border-radius: 3px; background: var(--line); width: 88%; }
.spec-lines i:nth-child(2) { width: 64%; }
.spec-lines i:nth-child(3) { width: 76%; }
.specimen .stamp { font-size: 11px; }

/* ---------- section headings ---------- */
.section-h { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; margin: 36px 0 12px; font: 600 13px/1.2 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--text); }
.section-h small { font: 400 12.5px var(--sans); letter-spacing: 0; text-transform: none; color: var(--muted); }

/* ---------- feed: audited just now (compact data grid) ---------- */
.tags { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr)); overflow: hidden; }
.tags .empty { margin: 0; padding: 18px; color: var(--muted); }
.tag {
  --c: var(--nottek);
  position: relative; display: flex; align-items: center; gap: 12px;
  padding: 11px 14px; min-width: 0; max-width: 100%; margin: 0 -1px -1px 0;
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  text-decoration: none; color: var(--text); transition: background .12s;
}
.tag:hover { background: var(--panel-2); }
.tag-real { --c: var(--real); }
.tag-larp { --c: var(--larp); }
.tag-slop { --c: var(--slop); }
.tag-img, .row-img, .coinimg, .subject-img, .og-img {
  position: relative; flex: none; display: inline-grid; place-items: center; overflow: hidden;
  width: 30px; height: 30px; border-radius: 50%; background: var(--panel-2); border: 1px solid var(--line-2);
}
.tag-img img, .row-img img, .coinimg img, .subject-img img, .og-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.noimg::after, .imgfail::after { content: attr(data-mono); font: 600 11px var(--mono); color: var(--muted); }
.imgfail img { display: none; }
.tag-body { display: flex; flex-wrap: wrap; align-items: center; gap: 3px 8px; min-width: 0; flex: 1; }
.tag-body b { min-width: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 600 13.5px var(--mono); }
.tag-meta { width: 100%; font: 400 11.5px var(--mono); color: var(--muted); }
.tag-score { font-weight: 600; color: var(--c); }
.mini {
  --c: var(--nottek);
  display: inline-flex; align-items: center; gap: 5px; padding: 3px 7px; border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--c) 40%, transparent); background: color-mix(in srgb, var(--c) 12%, transparent); color: var(--c);
  font: 600 10px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap;
}
.mini::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--c); }
.mini-real { --c: var(--real); }
.mini-larp { --c: var(--larp); }
.mini-slop { --c: var(--slop); }
.mini-pending { --c: var(--accent); }
.tag.fresh { animation: tagin .5s ease-out; }
@keyframes tagin { from { opacity: 0; background: rgba(76, 141, 255, .12); } }

/* ---------- leaderboards ---------- */
.boards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 36px; align-items: start; }
.board { position: relative; overflow: hidden; }
.board-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; margin: 0; padding: 14px 16px; border-bottom: 1px solid var(--line); font: 600 13px/1.2 var(--sans); letter-spacing: .1em; text-transform: uppercase; }
.board-h span { display: inline-flex; align-items: center; gap: 8px; }
.board-h span::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.board-real .board-h span { color: var(--real); }
.board-larp .board-h span { color: var(--larp); }
.board-h small { font: 400 12px var(--sans); color: var(--muted); letter-spacing: 0; text-transform: none; }
.board-list { list-style: none; margin: 0; padding: 0; }
.board-list li + li { border-top: 1px solid var(--line); }
.board-list a { display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 16px; text-decoration: none; transition: background .12s; }
.board-list a:hover { background: var(--panel-2); }
.rank { width: 20px; text-align: right; font: 400 12px var(--mono); color: var(--muted); }
.row-img { width: 28px; height: 28px; }
.row-main { min-width: 0; overflow-wrap: anywhere; word-break: break-word; }
.row-main b { display: inline-block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; font: 600 13.5px var(--mono); }
.row-name { color: var(--muted); font-size: 12.5px; }
.row-line { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12.5px; color: var(--muted); }
.row-side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.row-score { font: 600 13px var(--mono); }
.row-score small { font-weight: 400; color: var(--muted); }
.row-mcap { font: 400 11px var(--mono); color: var(--muted); }
.board-empty { padding: 16px; font-size: 13.5px; color: var(--muted); }

/* ---------- how we test ---------- */
.sop-steps { counter-reset: s; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.sop-steps li { counter-increment: s; position: relative; padding: 16px 18px; font-size: 13.5px; color: var(--muted); overflow-wrap: anywhere; word-break: break-word; }
.sop-steps li::before { content: counter(s, decimal-leading-zero); display: block; margin-bottom: 8px; font: 600 12px var(--mono); color: var(--accent); }
.sop-steps b { color: var(--text); font-weight: 600; }
.fineprint { margin: 22px 0 0; font-size: 12.5px; color: var(--muted); }

/* ---------- footer ---------- */
.foot { max-width: 1180px; margin: 0 auto; padding: 20px 20px 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12.5px; }
.foot-in { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 24px; align-items: center; }
.foot p { margin: 0; }
.foot-links { grid-column: 2; }
.foot-links a { color: var(--text); text-decoration: none; }
.foot-links a:hover { color: var(--accent); }

/* ---------- the verdict page ---------- */
.case-top { display: flex; flex-wrap: wrap; gap: 4px 22px; padding: 0 0 12px; margin-bottom: 14px; border-bottom: 1px solid var(--line); font: 400 12px var(--mono); color: var(--muted); }
.caseno { color: var(--accent); font-weight: 600; }
.case-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px 30px; align-items: center; padding: 22px 24px; }
.subject { display: flex; gap: 18px; align-items: flex-start; min-width: 0; }
.subject-img { width: 72px; height: 72px; border-radius: 12px; }
.subject-img.noimg::after { font-size: 22px; }
.subject-id { min-width: 0; }
.subject-id h1 { margin: 0 0 8px; font: 800 clamp(28px, 3.8vw, 42px)/1.05 var(--sans); letter-spacing: -.03em; overflow-wrap: anywhere; word-break: break-word; }
.cname { font: 500 .42em var(--sans); color: var(--muted); letter-spacing: 0; }
.ca-line {
  display: inline-flex; align-items: center; gap: 10px; max-width: 100%; margin: 2px 0 12px; padding: 5px 5px 5px 11px;
  border: 1px solid var(--line-2); border-radius: 8px; background: var(--bg); cursor: pointer; text-align: left; transition: border-color .12s;
}
.ca-line code { min-width: 0; font-size: 12.5px; color: var(--text); overflow-wrap: anywhere; word-break: break-all; }
.ca-line span { flex: none; padding: 5px 9px; border: 1px solid var(--line-2); border-radius: 6px; background: var(--panel-2); color: var(--text); font: 600 10.5px/1 var(--sans); letter-spacing: .08em; }
.ca-line:hover { border-color: var(--accent); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.chip { padding: 4px 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel-2); font: 400 11px var(--mono); color: var(--muted); }
.extlinks { display: flex; flex-wrap: wrap; gap: 4px 16px; min-width: 0; font-size: 13px; }
.extlinks a { min-width: 0; overflow-wrap: anywhere; word-break: break-word; color: var(--accent); text-decoration: none; }
.extlinks a:hover { text-decoration: underline; text-underline-offset: 3px; }
.extlinks a::after { content: ' ↗'; font-size: .85em; opacity: .7; }
.verdict-box { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; min-width: 0; }
.verdict-box::before { content: 'Verdict'; font: 600 11px var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.headline {
  margin: 18px 0 14px; padding: 2px 0 2px 14px; border-left: 3px solid var(--accent);
  font: 500 clamp(17px, 2vw, 22px)/1.4 var(--sans); letter-spacing: -.01em; color: var(--text); overflow-wrap: anywhere; word-break: break-word;
}
.rescored { margin: -4px 0 14px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel-2); font-size: 13px; color: var(--muted); overflow-wrap: anywhere; word-break: break-word; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 15px; border: 1px solid var(--line-2); border-radius: var(--radius);
  background: var(--panel-2); color: var(--text); font: 600 13.5px/1.2 var(--sans); text-decoration: none; cursor: pointer;
  transition: border-color .12s, background .12s;
}
.btn:hover { border-color: #3A4560; background: #1B2030; }
.btn[disabled], .btn.is-wait { opacity: .5; cursor: not-allowed; }
.btn svg { width: 14px; height: 14px; fill: currentColor; }
.btn-x { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-x:hover { background: #5f9aff; border-color: #5f9aff; }
.btn-ghost { background: transparent; color: var(--muted); }
.btn-ghost:hover { background: var(--panel); color: var(--text); }

.livebanner { margin: -2px 0 14px; padding: 10px 14px; border: 1px solid rgba(76, 141, 255, .35); border-radius: var(--radius); background: rgba(76, 141, 255, .1); font: 500 13.5px var(--sans); overflow-wrap: anywhere; word-break: break-word; }

/* ---------- live progress: a tidy step list ---------- */
.progress { margin: 18px 0 6px; padding: 18px 20px; }
.pg-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; margin-bottom: 8px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.pg-title { font: 600 13px var(--sans); letter-spacing: .1em; text-transform: uppercase; }
.pg-queue { font: 400 12.5px var(--mono); color: var(--muted); }
.pg-queue b { font: 600 20px var(--mono); color: var(--text); margin-right: 6px; }
.pg-queue.pg-closed { color: var(--larp); }
.pg-steps { list-style: none; margin: 0; padding: 0; font-size: 13.5px; }
.pg-steps > li { display: grid; grid-template-columns: 22px minmax(120px, auto) minmax(0, 1fr); gap: 0 12px; align-items: baseline; padding: 8px 0; }
.pg-steps > li + li { border-top: 1px solid var(--line); }
.pg-mark { font: 600 13px var(--mono); text-align: center; }
.pg-label { font-weight: 600; white-space: nowrap; }
.pg-detail { min-width: 0; color: var(--muted); font-size: 13px; overflow-wrap: anywhere; word-break: break-word; }
.st-wait { color: var(--muted); }
.st-wait .pg-label { font-weight: 500; }
.st-run .pg-mark { color: var(--accent); animation: blink .8s infinite; }
.st-run .pg-label { color: var(--accent); }
.st-done .pg-mark { color: var(--real); }
.st-fail .pg-mark { color: var(--larp); }
.st-skip .pg-mark { color: var(--muted); }
.pg-clicks { grid-column: 3; list-style: none; margin: 6px 0 0; padding: 0; font: 400 12px var(--mono); }
.pg-clicks li { padding: 2px 0; overflow-wrap: anywhere; word-break: break-word; }
.pg-clicks .ok { color: var(--real); }
.pg-clicks .no { color: var(--larp); }
.pg-err { margin: 10px 0 0; color: var(--larp); font-weight: 600; overflow-wrap: anywhere; word-break: break-word; }
.caret::after { content: '▌'; animation: blink .9s steps(1) infinite; color: var(--accent); margin-left: 2px; }
.pend-note { margin: 4px 0 0; color: var(--muted); max-width: 56ch; overflow-wrap: anywhere; word-break: break-word; }

/* ---------- evidence + score sheet ---------- */
.case-body { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 10px 24px; margin-top: 6px; }
.exhibits { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-start; }
.polaroid { position: relative; margin: 0; padding: 0; overflow: hidden; transform: none; }
.polaroid img { display: block; width: 100%; height: auto; background: var(--panel-2); border-bottom: 1px solid var(--line); }
.polaroid > a { display: block; }
.polaroid figcaption { padding: 10px 12px; font-size: 12.5px; line-height: 1.45; color: var(--muted); overflow-wrap: anywhere; word-break: break-word; }
.polaroid figcaption b { margin-right: 6px; font: 600 10.5px var(--mono); letter-spacing: .04em; color: var(--accent); }
.polaroid.main { width: 100%; }
.polaroid.small { width: calc(50% - 7px); }
.tilt-l, .tilt-l2, .tilt-r { transform: none; }
.missing-photo {
  display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; align-content: center; gap: 10px; min-height: 240px; padding: 20px; text-align: center;
  background: var(--panel-2); border-bottom: 1px solid var(--line);
}
.missing-photo span { max-width: 100%; overflow-wrap: anywhere; word-break: break-word; padding: 7px 14px; border: 1px solid rgba(239, 68, 68, .45); border-radius: 999px; background: rgba(239, 68, 68, .1); color: var(--larp); font: 600 13px/1.3 var(--sans); letter-spacing: .08em; text-transform: uppercase; }
.missing-photo small { max-width: 90%; font: 400 12px var(--mono); color: var(--muted); overflow-wrap: anywhere; word-break: break-word; }

.buttonlog { margin-top: 22px; }
.card-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; margin: 0 0 10px; font: 600 12px var(--sans); letter-spacing: .1em; text-transform: uppercase; }
.card-h small { min-width: 0; overflow-wrap: anywhere; word-break: break-word; font: 400 12px var(--sans); letter-spacing: 0; text-transform: none; color: var(--muted); }
.bl { list-style: none; margin: 0; padding: 0; overflow: hidden; }
.bl li { display: grid; grid-template-columns: 22px minmax(0, .9fr) minmax(0, 1.1fr); gap: 12px; padding: 8px 14px; font-size: 13px; }
.bl li + li { border-top: 1px solid var(--line); }
.bl-mark { font: 600 13px var(--mono); text-align: center; }
.bl-ok .bl-mark { color: var(--real); }
.bl-dead .bl-mark, .bl-soon .bl-mark { color: var(--larp); }
.bl-skip { color: var(--muted); }
.bl-text { font-weight: 600; overflow-wrap: anywhere; word-break: break-word; }
.bl-fx { color: var(--muted); overflow-wrap: anywhere; word-break: break-word; }
.bl-dead .bl-fx, .bl-soon .bl-fx { color: var(--larp); }

.scoresheet { position: relative; min-width: 0; }
.ledger { width: 100%; border-collapse: separate; border-spacing: 0; overflow: hidden; font-size: 13px; }
.ledger td, .ledger th { padding: 8px 14px; vertical-align: top; }
.ledger .lg-sec th { padding: 8px 14px; text-align: left; font: 600 10.5px var(--sans); letter-spacing: .1em; color: var(--muted); background: var(--panel-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.lg-row + .lg-row td { border-top: 1px solid var(--line); }
.lg-text { color: var(--text); overflow-wrap: anywhere; word-break: break-word; }
.lg-pts { width: 64px; text-align: right; font: 600 13px var(--mono); white-space: nowrap; }
.k-good .lg-pts { color: var(--real); }
.k-larp .lg-pts { color: var(--larp); }
.k-slop .lg-pts { color: var(--slop); }
.k-info .lg-pts { color: var(--muted); }
.k-info .lg-text { color: var(--muted); }
.lg-base td { padding-top: 12px; padding-bottom: 12px; font-weight: 600; color: var(--muted); }
.lg-base .lg-pts { color: var(--text); }
.lg-total td { padding: 14px; font: 800 13px var(--sans); letter-spacing: .08em; background: var(--panel-2); border-top: 1px solid var(--line-2); }
.lg-total .lg-pts { font: 600 22px var(--mono); letter-spacing: 0; color: var(--text); }
.lg-total .lg-pts::after { content: '/100'; font-size: .55em; font-weight: 400; color: var(--muted); }
.lg-total small { font: 400 11px var(--mono); color: var(--muted); letter-spacing: 0; }
.lg-rule { margin: 10px 2px 0; font-size: 13px; color: var(--muted); }
.lg-rule b { font-weight: 600; }

/* ---------- dossier ---------- */
.dossier { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: 14px; margin-top: 36px; }
.card { position: relative; padding: 16px 18px; min-width: 0; }
.card .card-h { margin: 0 0 6px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.facts { margin: 0; font-size: 13px; }
.facts div { display: grid; grid-template-columns: 118px minmax(0, 1fr); gap: 10px; padding: 6px 0; line-height: 1.45; }
.facts div + div { border-top: 1px solid rgba(34, 40, 56, .6); }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; min-width: 0; overflow-wrap: anywhere; word-break: break-word; }
.facts a { color: var(--accent); text-decoration: none; }
.facts a:hover { text-decoration: underline; }
.errs { display: block; margin-top: 6px; padding: 6px 8px; border-radius: 6px; font-size: 11px; line-height: 1.45; background: rgba(239, 68, 68, .08); color: #F58A8A; overflow-wrap: anywhere; word-break: break-word; }
.na { margin: 0; padding: 6px 0; color: var(--muted); font-size: 13px; overflow-wrap: anywhere; word-break: break-word; }
.mini-h { margin: 10px 0 2px; font: 600 10.5px/1.6 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.launches { margin: 2px 0 0; padding: 0; list-style: none; font-size: 12.5px; line-height: 1.8; overflow-wrap: anywhere; word-break: break-word; }
.launches a { font: 600 12.5px var(--mono); color: var(--text); text-decoration: none; }
.launches a:hover { color: var(--accent); }
.launches span { color: var(--muted); }
.notes { margin: 24px 0 0; font-size: 12.5px; color: var(--muted); overflow-wrap: anywhere; word-break: break-word; }
.case.msg .case-head { min-height: 260px; }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 22px; z-index: 100; width: max-content; max-width: min(92vw, 520px); padding: 10px 16px;
  background: var(--panel-2); color: var(--text); border: 1px solid var(--line-2); border-radius: var(--radius);
  font: 500 13.5px var(--sans); box-shadow: 0 12px 32px rgba(0, 0, 0, .5); overflow-wrap: anywhere; word-break: break-word;
  transform: translate(-50%, 140%); opacity: 0; transition: transform .25s, opacity .25s; pointer-events: none;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }
.toast.top { top: calc(var(--cabar-h, 0px) + 10px); bottom: auto; transform: translate(-50%, -160%); }
.toast.top.show { transform: translate(-50%, 0); }

/* ---------- share card (1200x630, rendered by the server's Chrome) ---------- */
.cardbody { width: 1200px; height: 630px; margin: 0; overflow: hidden; background: var(--bg); }
.ogcard { position: relative; width: 1200px; height: 630px; padding: 40px 54px 34px; display: flex; flex-direction: column; background: var(--sheen), var(--bg); color: var(--text); font-family: var(--sans); }
.og-top { display: flex; justify-content: space-between; padding-bottom: 14px; border-bottom: 1px solid var(--line); font: 400 20px var(--mono); color: var(--muted); }
.og-top span:first-child { color: var(--accent); }
.og-main { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 30px; margin-top: 26px; }
.og-left { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto auto; column-gap: 26px; align-items: center; }
.og-img { grid-row: 1 / 4; width: 140px; height: 140px; border-radius: 20px; }
.og-img.noimg::after { font-size: 48px; }
.og-sym { font: 800 84px/1 var(--sans); letter-spacing: -.03em; max-width: 520px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.og-name { font: 500 26px var(--sans); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 520px; }
.og-ca { font: 400 22px var(--mono); color: var(--muted); }
.og-right { display: flex; flex-direction: column; align-items: center; gap: 18px; padding-right: 10px; }
.og-right .stamp { font-size: 34px; }
.og-score { font: 400 24px var(--mono); color: var(--muted); }
.og-score b { font: 600 60px var(--mono); margin-right: 4px; color: var(--text); }
.v-real .og-score b { color: var(--real); }
.v-larp .og-score b { color: var(--larp); }
.v-slop .og-score b { color: var(--slop); }
.og-headline {
  margin: 24px 0 12px; padding-left: 18px; border-left: 4px solid var(--accent); font: 500 32px/1.25 var(--sans); max-height: 82px; overflow: hidden; overflow-wrap: anywhere; word-break: break-word;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
}
.og-findings { list-style: none; margin: 0; padding: 0; font: 400 20px/1.5 var(--sans); color: var(--muted); }
.og-findings li { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.og-findings b { display: inline-block; min-width: 56px; font: 600 20px var(--mono); }
.og-findings .k-good b { color: var(--real); }
.og-findings .k-larp b { color: var(--larp); }
.og-findings .k-slop b { color: var(--slop); }
.og-foot { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); font: 400 22px var(--mono); color: var(--muted); }
.og-home { justify-content: space-between; }
.og-homemain { display: flex; flex-direction: column; align-items: flex-start; padding: 56px 0 0 10px; }
.og-tag { margin: 30px 0 0; font: 500 38px/1.3 var(--sans); color: var(--muted); }
.og-stamps { position: absolute; right: 54px; top: 170px; display: flex; flex-direction: column; align-items: flex-end; gap: 22px; }
.og-stamps .stamp { font-size: 34px; }

/* ---------- small screens ---------- */
@media (max-width: 960px) {
  .intake { grid-template-columns: minmax(0, 1fr); padding: 28px; }
  .intake-art { max-width: 520px; }
  .boards { grid-template-columns: minmax(0, 1fr); }
  .sop-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .case-body { grid-template-columns: minmax(0, 1fr); }
  .case-head { grid-template-columns: minmax(0, 1fr); }
  .verdict-box { align-items: flex-start; }
}
@media (max-width: 640px) {
  body { font-size: 14.5px; }
  .topstrip { padding: 12px 16px 10px; font-size: 10.5px; }
  .labstatus { margin-left: 0; }
  .miniform { flex-basis: 100%; }
  .sheet { margin: 0 0 20px; padding: 2px 16px 26px; }
  .intake { padding: 22px 18px; }
  .kicker { margin-top: 14px; }
  .field { flex-direction: column; }
  .btn-stamp { padding: 13px 18px; }
  .specimen { gap: 10px; padding: 11px 12px; }
  .spec-lines i:nth-child(3) { display: none; }
  .sop-steps { grid-template-columns: minmax(0, 1fr); }
  .section-h { margin-top: 30px; }
  .board-list a { gap: 10px; padding: 10px 12px; }
  .board-h { padding: 12px; }
  .row-name { display: none; }
  .case-head { padding: 18px 16px; }
  .subject { gap: 14px; }
  .subject-img { width: 56px; height: 56px; }
  .stamp-big { font-size: 16px; }
  .miniform input { font-size: 16px; } /* under 16px, iOS Safari zooms in on focus */
  .field input { font-size: 16px; }
  .actions .btn { flex: 1 1 calc(50% - 8px); justify-content: center; padding: 10px 8px; }
  .polaroid.small { width: 100%; }
  .pg-steps > li { grid-template-columns: 20px minmax(0, 1fr); }
  .pg-detail, .pg-clicks { grid-column: 2; }
  .progress { padding: 14px; }
  .bl li { grid-template-columns: 20px minmax(0, 1fr); gap: 2px 12px; padding: 8px 12px; }
  .pg-steps > li { gap: 2px 12px; }
  .tag { padding: 9px 12px; }
  .tags .tag:nth-child(n+11) { display: none; } /* newest ten on a phone */
  .bl-fx { grid-column: 2; font-size: 12.5px; }
  .ledger td, .ledger th, .ledger .lg-sec th { padding-left: 12px; padding-right: 12px; }
  .facts div { grid-template-columns: 100px minmax(0, 1fr); }
  .foot { padding: 18px 16px 32px; }
  .foot-in { grid-template-columns: minmax(0, 1fr); }
  .foot-links { grid-column: 1; }
  .cabar { gap: 6px; padding: 5px 10px; font-size: 11px; }
  .cabar-btn { padding: 5px 9px; font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .slam, .thud, .tag.fresh, .stamp-pending.working::before, .dot.busy, .st-run .pg-mark { animation: none !important; }
}

/* home: how an audit works (replaces the old exhibit art) */
.howlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; align-self: center; }
.howlist li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 14px; align-items: start; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel-2); }
.howlist span { font: 600 13px/1.6 var(--mono); color: var(--accent); }
.howlist b { display: block; font: 600 15px/1.35 var(--sans); color: var(--text); }
.howlist small { display: block; margin-top: 3px; font: 400 13px/1.45 var(--sans); color: var(--muted); overflow-wrap: anywhere; word-break: break-word; }
