/*
 * Receipts Live, original look (restored 2026-10-22 from 033ea50, the first web UI, before the 2026-10-12 redesigns):
 * a near-black page with soft blue and red glows, frosted-glass panels, Inter for reading and headlines, JetBrains
 * Mono for anything on-chain, and one off-white paper ticket for the verdict (the receipt) with a stamp on it.
 * The page tokens below are the dark ones; .receipt re-declares the paper ones, so every rule inside it reads as ink
 * on paper. view.js colours the wallet map with --red, --blue, --violet and --amber.
 */
:root {
  --page: #0e0f12;
  --bg: #0e0f12;
  --paper: rgba(255, 255, 255, 0.045);   /* glass panel */
  --paper-2: rgba(255, 255, 255, 0.08);
  --panel-b: rgba(255, 255, 255, 0.09);
  --ink: #eceae4;        /* text, 15:1 on the page */
  --ink-2: #c3c1ba;
  --ink-3: #a3a29c;      /* muted, 7.6:1 */
  --rule: rgba(255, 255, 255, 0.09);
  --rule-strong: rgba(255, 255, 255, 0.16);
  --red: #ff5a52;
  --red-tint: rgb(255 90 82 / 0.08);
  --amber: #ffb547;
  --amber-fill: #ffb547;
  --amber-tint: rgb(255 181 71 / 0.07);
  --green: #4fd18b;
  --blue: #6aa8ff;
  --violet: #b48cff;
  --ticket: #f4efe4;     /* the paper verdict ticket */
  --ticket-ink: #15161a;
  --sans: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --serif: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --cond: Inter, system-ui, sans-serif;
  --radius: 14px;
  color-scheme: dark;
}
/* Ink on paper inside the ticket (original .verdict colours: stamp red #d3261e, amber #b86e00, green #1d7d4c). */
.receipt {
  --paper: #f4efe4; --paper-2: #e9e3d5; --ink: #15161a; --ink-2: #3d3c38; --ink-3: #5b5a55;
  --rule: #ddd5c4; --rule-strong: #b9b09c; --red: #d3261e; --red-tint: rgb(211 38 30 / 0.07);
  --amber: #b86e00; --amber-fill: #d9961c; --amber-tint: rgb(217 150 28 / 0.12); --green: #1d7d4c;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { background: var(--page); scroll-behavior: smooth; overflow-x: clip; }
body { margin: 0; color: var(--ink); font: 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; min-height: 100dvh; background: var(--page); overflow-x: clip; }
h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; line-height: 1.05; }
h3, h4 { font-family: var(--sans); font-weight: 600; }
a { color: var(--ink); text-underline-offset: 3px; }
.mono { font-family: var(--mono); }
.small { font-size: 0.85rem; }
.muted { color: var(--ink-2); }
.center { text-align: center; }
.min0 { min-width: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 12px; background: var(--ink); color: var(--paper); padding: 8px 12px; z-index: 60; }
.skip:focus { left: 12px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
::selection { background: rgb(217 150 28 / 0.35); }
[hidden] { display: none !important; }

/* ---------- Buttons ---------- */
.btn {
  font: 600 0.95rem var(--sans); border-radius: var(--radius); cursor: pointer; min-height: 44px; padding: 0 18px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; white-space: nowrap;
  border: 1.5px solid var(--ink); transition: background-color 120ms ease, color 120ms ease, transform 120ms ease;
}
.btn.primary { background: var(--ink); color: var(--paper); }
.btn.primary:hover { background: #000; }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--paper); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.4; cursor: default; transform: none; }
.text-link { font-weight: 500; color: var(--ink); }

/* ---------- Header ---------- */
.top { position: sticky; top: 0; z-index: 40; background: var(--page); border-bottom: 1px solid var(--rule-strong); }
.top-in { max-width: 1200px; margin: 0 auto; min-height: 64px; padding: 0 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); font: 400 1.6rem/1 var(--serif); }
.brand svg { width: 24px; height: 24px; }
.brand i { font: 600 0.62rem/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--paper); background: var(--red); padding: 3px 5px 2px; margin-left: 6px; border-radius: 2px; font-style: normal; vertical-align: 4px; }
.nav { display: flex; gap: 2px; }
.nav a { color: var(--ink-2); text-decoration: none; font-size: 0.92rem; padding: 8px 12px; border-radius: var(--radius); }
.nav a:hover { color: var(--ink); background: var(--paper-2); }
.nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }

main { max-width: 1200px; margin: 0 auto; padding: 0 20px 24px; }

/* ---------- Home: hero ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: 56px; align-items: center; padding: 72px 0 80px; border-bottom: 1px solid var(--rule-strong); }
.kicker { font: 500 0.78rem var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 18px; }
.hero h1 { font-size: clamp(2.8rem, 6.4vw, 5rem); margin: 0 0 22px; }
.hero h1 em { font-style: italic; color: var(--red); }
.lede { font-size: 1.12rem; line-height: 1.65; color: var(--ink-2); margin: 0 0 32px; max-width: 36em; }
.field-label { display: block; font: 500 0.78rem var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2); margin: 0 0 8px; }
.ca-form { max-width: 640px; }
.ca-row { display: flex; gap: 8px; }
.ca-row input, .official input {
  flex: 1; min-width: 0; min-height: 52px; padding: 0 16px; font: 500 1rem var(--mono); color: var(--ink);
  background: var(--paper); border: 1.5px solid var(--ink); border-radius: var(--radius);
}
.ca-row input::placeholder, .official input::placeholder { color: var(--ink-3); }
.ca-row input:focus-visible, .official input:focus-visible { outline: 3px solid var(--amber-fill); outline-offset: 1px; }
.ca-row .btn { min-height: 52px; padding: 0 22px; }
.official { margin-top: 14px; }
.official summary { cursor: pointer; font-size: 0.93rem; color: var(--ink-2); width: fit-content; }
.official summary span { color: var(--ink-3); }
.official[open] summary { margin-bottom: 12px; }
.official input { display: block; width: 100%; min-height: 46px; font-size: 0.95rem; }
.help { margin: 8px 0 0; font-size: 0.86rem; color: var(--ink-3); }
.form-err { color: var(--red); min-height: 1.5em; margin: 10px 0 0; font-size: 0.92rem; font-weight: 500; }
.stat { color: var(--ink-3); font-size: 0.85rem; margin: 6px 0 0; max-width: 640px; }

.sample { margin: 0; justify-self: center; width: min(100%, 360px); }
.sample .receipt { transform: rotate(1.6deg); }
.sample figcaption { text-align: center; margin-top: 26px; font: 0.8rem var(--mono); color: var(--ink-3); }
body.reviewing .hero { grid-template-columns: minmax(0, 1fr); padding: 28px 0 32px; }
body.reviewing .hero h1, body.reviewing .kicker, body.reviewing .lede, body.reviewing .stat, body.reviewing .sample { display: none; }

/* ---------- The receipt ---------- */
.receipt {
  position: relative; background: var(--paper); padding: 26px 24px 22px; margin: 12px 0;
  font: 0.86rem/1.45 var(--mono); color: var(--ink);
  filter: drop-shadow(0 1px 1px rgb(40 30 10 / 0.12)) drop-shadow(0 14px 22px rgb(40 30 10 / 0.12));
}
/* torn top and bottom edges */
.receipt::before, .receipt::after { content: ""; position: absolute; left: 0; right: 0; height: 10px; background-repeat: repeat-x; background-size: 12px 10px; }
.receipt::before { top: -10px; background-image: linear-gradient(45deg, transparent 50%, var(--paper) 50%), linear-gradient(-45deg, transparent 50%, var(--paper) 50%); }
.receipt::after { bottom: -10px; background-image: linear-gradient(135deg, var(--paper) 50%, transparent 50%), linear-gradient(-135deg, var(--paper) 50%, transparent 50%); }
.r-head { text-align: center; padding-bottom: 12px; border-bottom: 1.5px dashed var(--rule-strong); }
.r-head p { margin: 0; color: var(--ink-3); font-size: 0.78rem; }
.r-brand { font: 700 1.05rem var(--mono) !important; letter-spacing: 0.32em; color: var(--ink) !important; margin-bottom: 2px !important; }
.r-meta { margin: 0; padding: 10px 0; display: grid; gap: 1px; border-bottom: 1.5px dashed var(--rule-strong); }
.r-meta div { display: flex; justify-content: space-between; gap: 12px; }
.r-meta dt { color: var(--ink-3); text-transform: uppercase; font-size: 0.74rem; letter-spacing: 0.08em; padding-top: 2px; }
.r-meta dd { margin: 0; text-align: right; overflow-wrap: anywhere; }
.r-sec { font: 700 0.76rem var(--mono); letter-spacing: 0.18em; text-transform: uppercase; margin: 14px 0 4px; color: var(--ink); }
.r-sec::before { content: "== "; color: var(--ink-3); }
.r-sec::after { content: " =="; color: var(--ink-3); }
.r-items { list-style: none; margin: 0; padding: 0 0 10px; border-bottom: 1.5px dashed var(--rule-strong); }
.r-items:empty::after { content: "…"; color: var(--ink-3); }

.ri { display: grid; grid-template-columns: 1.6em auto minmax(1.5ch, 1fr) auto; column-gap: 0.6ch; align-items: baseline; padding: 6px 0 5px; position: relative; animation: print 420ms cubic-bezier(.2, .7, .2, 1) backwards; }
.ri-mark { grid-column: 1; font-weight: 700; text-align: center; }
.ri-label { grid-column: 2; font-weight: 600; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ri-dots { grid-column: 3; align-self: end; border-bottom: 2px dotted var(--rule-strong); margin-bottom: 5px; min-width: 1.5ch; }
.ri-val { grid-column: 4; text-align: right; font-weight: 600; max-width: 18ch; overflow-wrap: anywhere; }
.ri-more, .ri-subs { grid-column: 2 / -1; }
.ri-more { position: relative; font: 0.84rem/1.45 var(--sans); color: var(--ink-2); margin-top: 2px; }
.ri-note:empty { display: none; }
.ri-note { margin-right: 6px; white-space: pre-line; }
.ri-why { font: 500 0.76rem var(--sans); color: var(--ink-3); background: none; border: 0; padding: 2px 0; cursor: help; text-decoration: underline dotted; text-underline-offset: 3px; white-space: nowrap; }
.ri-why:hover, .ri-why[aria-expanded="true"] { color: var(--ink); }
.tip {
  position: absolute; left: 0; top: calc(100% + 6px); z-index: 20; width: min(300px, 100%);
  background: var(--ink); color: var(--paper); font: 0.84rem/1.5 var(--sans); padding: 10px 12px; border-radius: var(--radius);
  box-shadow: 0 10px 24px -8px rgb(0 0 0 / 0.4); opacity: 0; visibility: hidden; transform: translateY(-3px); transition: opacity 120ms, transform 120ms, visibility 120ms;
}
.tip::before { content: "Why it matters: "; font-weight: 600; }
.ri-why:hover + .tip, .ri-why:focus-visible + .tip, .tip.open { opacity: 1; visibility: visible; transform: none; }
.ri-subs { margin: 3px 0 0; display: grid; gap: 0; font-size: 0.8rem; color: var(--ink-2); }
.ri-subs:empty { display: none; }
.ri-subs div { display: flex; gap: 0.6ch; align-items: baseline; }
.ri-subs dt::before { content: "· "; color: var(--ink-3); }
.ri-subs dt { flex: none; max-width: 65%; }
.ri-subs div::after { content: ""; order: 1; flex: 1; border-bottom: 1px dotted var(--rule-strong); margin-bottom: 4px; min-width: 1ch; }
.ri-subs dd { order: 2; margin: 0; text-align: right; overflow-wrap: anywhere; }
.ri.pending .ri-mark, .ri.pending .ri-val { color: var(--ink-3); }
.ri.pending .ri-val { animation: blink 1.1s steps(2, start) infinite; }
.ri.ok .ri-mark { color: var(--ink); }
.ri.warn .ri-mark, .ri.warn .ri-val { color: var(--amber); }
.ri.bad .ri-mark, .ri.bad .ri-val { color: var(--red); }
.ri.unknown .ri-mark, .ri.unknown .ri-val { color: var(--ink-3); }
.ri.bad { background: linear-gradient(90deg, var(--red-tint), transparent 70%); margin: 0 -8px; padding-left: 8px; padding-right: 8px; }
.ri.warn { background: linear-gradient(90deg, var(--amber-tint), transparent 70%); margin: 0 -8px; padding-left: 8px; padding-right: 8px; }
@keyframes print { from { clip-path: inset(0 0 100% 0); transform: translateY(-6px); opacity: 0.2; } to { clip-path: inset(0); transform: none; opacity: 1; } }
@keyframes blink { 50% { opacity: 0.25; } }

.r-total { margin: 0; padding: 10px 0; display: grid; gap: 1px; border-bottom: 1.5px dashed var(--rule-strong); animation: print 420ms ease both; }
.r-total div { display: flex; justify-content: space-between; text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.8rem; }
.r-total dd { margin: 0; font-weight: 700; }
.r-total .bad dd { color: var(--red); } .r-total .warn dd { color: var(--amber); }
.r-stamps { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 18px; padding: 22px 0 14px; min-height: 120px; }

.stamp {
  --rot: -7deg; --c: var(--ink);
  display: inline-flex; flex-direction: column; align-items: center; gap: 2px; color: var(--c);
  padding: 8px 16px 6px; border: 3.5px solid var(--c); border-radius: 6px;
  box-shadow: inset 0 0 0 2px var(--paper), inset 0 0 0 3.5px var(--c);
  transform: rotate(var(--rot)); mix-blend-mode: multiply; opacity: 0.92;
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' seed='7'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -1.7 0 0 0 1.55'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' seed='7'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -1.7 0 0 0 1.55'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: stamp 460ms cubic-bezier(.3, 1.5, .5, 1) both;
}
.st-k { font: 700 0.62rem var(--mono); letter-spacing: 0.16em; text-transform: uppercase; }
.st-v { font: 700 2.4rem/1 var(--cond); letter-spacing: 0.04em; text-transform: uppercase; }
.stamp.small { --rot: 4deg; padding: 6px 12px 4px; border-width: 3px; }
.stamp.small .st-v { font-size: 1.5rem; }
.stamp.red, .stamp.larp, .stamp.RED { --c: var(--red); }
.stamp.caution, .stamp.partial { --c: var(--amber); }
.stamp.clean, .stamp.works { --c: var(--ink); }
.stamp.unchecked, .stamp.unverified { --c: var(--ink-3); }
.stamp.wait { --c: var(--ink-3); animation: blink 1.4s ease-in-out infinite; border-style: dashed; box-shadow: none; }
@keyframes stamp { 0% { opacity: 0; transform: rotate(var(--rot)) scale(1.9); } 55% { opacity: 0.92; transform: rotate(var(--rot)) scale(0.95); } 100% { opacity: 0.92; transform: rotate(var(--rot)) scale(1); } }

.r-printing { margin: 12px 0 0; text-align: center; color: var(--ink-3); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.12em; }
.cursor { display: inline-block; width: 0.6em; height: 1em; margin-left: 4px; vertical-align: -2px; background: currentColor; animation: blink 1s steps(1) infinite; }
.receipt.error .r-printing { color: var(--red); text-transform: none; letter-spacing: 0; }
.receipt.error .cursor { display: none; }
.r-foot { text-align: center; padding-top: 14px; color: var(--ink-3); font-size: 0.74rem; }
.r-foot p { margin: 4px 0 0; }
.barcode { display: block; width: 100%; height: 40px; color: var(--ink); }
.r-ca { overflow-wrap: anywhere; font-size: 0.7rem; letter-spacing: 0.04em; }
.receipt-sample .ri { animation: none; }
.receipt-sample .r-stamps { min-height: 0; padding: 18px 0 6px; }

/* ---------- Review page ---------- */
.run { padding-top: 40px; scroll-margin-top: 72px; }
.runhead { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 14px; }
.coinhead { display: flex; align-items: center; gap: 16px; min-width: 0; }
.coin-pic { width: 72px; height: 72px; flex: none; border-radius: 50%; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; font: 600 22px var(--mono); color: var(--ink-2); background: var(--paper); box-shadow: 0 0 0 1.5px var(--ink); }
.coin-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.run-state { margin: 0 0 4px; font: 500 0.76rem var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
.runhead h2 { margin: 0; font-size: clamp(2rem, 4.4vw, 3rem); overflow-wrap: anywhere; }
.coin-mint { margin: 4px 0 0; color: var(--ink-3); overflow-wrap: anywhere; }
.runtools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.meter { font: 500 0.85rem var(--mono); color: var(--ink-2); white-space: nowrap; }
.verdict-line { font: 400 clamp(1.4rem, 2.8vw, 1.95rem)/1.25 var(--serif); margin: 8px 0 24px; max-width: 34em; padding-left: 16px; border-left: 4px solid var(--rule-strong); }
.verdict-line.red, .verdict-line.error { border-color: var(--red); }
.verdict-line.caution { border-color: var(--amber-fill); }
.verdict-line.clean { border-color: var(--ink); }
.stale-note { margin: -12px 0 22px; font-size: 0.9rem; color: var(--amber); }

.notyet { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 32px; align-items: center; padding: 12px 0 32px; }
.notyet h3 { font: 400 1.9rem/1.1 var(--serif); margin: 0 0 8px; }
.notyet p { margin: 0 0 18px; color: var(--ink-2); max-width: 34em; }
.receipt-blank { text-align: center; transform: rotate(-1.5deg); }
.blank-lines { display: grid; gap: 10px; margin: 16px 0 6px; }
.blank-lines span { height: 8px; background: repeating-linear-gradient(90deg, var(--rule) 0 6px, transparent 6px 10px); }
.blank-lines span:nth-child(2) { width: 70%; } .blank-lines span:nth-child(4) { width: 45%; justify-self: center; }
.run.unreviewed .result, .run.unreviewed .meter, .run.unreviewed .verdict-line { display: none; }

.result { display: grid; grid-template-columns: minmax(300px, 420px) minmax(0, 1fr); gap: 40px; align-items: start; }
.receipt-col { min-width: 0; }
.share-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 26px 0 8px; }
.detail-col { min-width: 0; display: grid; gap: 28px; }
.details-h { font-size: 1.8rem; margin: 8px 0 -8px; }

/* Research browser */
.cam { background: var(--paper); border: 1px solid var(--rule-strong); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.cam-bar { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--rule); }
.cam-title { margin: 0; font-size: 0.98rem; }
.onair { display: inline-flex; align-items: center; gap: 6px; font: 600 0.68rem var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--paper); background: var(--red); border-radius: 2px; padding: 3px 8px; }
.onair.off { background: var(--ink-3); }
.rec-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; display: inline-block; animation: blink 1.4s ease-in-out infinite; }
.onair.off .rec-dot { animation: none; }
.theater-btn { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 10px; border-radius: var(--radius); border: 1px solid var(--rule-strong); background: transparent; color: var(--ink); font: 500 0.82rem var(--sans); cursor: pointer; }
.theater-btn:hover { background: var(--paper-2); }
.theater-btn svg { width: 16px; height: 16px; }
.theater-btn .i-close, .cam.theater .theater-btn .i-open { display: none; }
.cam.theater .theater-btn .i-close { display: block; }
.browser { margin: 12px 12px 0; border: 1px solid var(--ink); border-radius: var(--radius); overflow: hidden; background: var(--ink); }
.chrome { display: flex; align-items: center; gap: 10px; padding: 7px 10px; background: var(--paper-2); border-bottom: 1px solid var(--ink); }
.lights { display: inline-flex; gap: 5px; }
.lights i { width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--ink-3); display: block; }
.addr { flex: 1; min-width: 0; background: var(--paper); border: 1px solid var(--rule-strong); border-radius: 2px; padding: 3px 10px; font: 0.78rem var(--mono); color: var(--ink-2); }
.addr span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.screen { position: relative; aspect-ratio: 1024 / 640; background: #24221d; cursor: zoom-in; }
.screen:focus-visible { outline: 3px solid var(--amber-fill); outline-offset: -3px; }
.screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.idle { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; padding: 16px; color: var(--paper); }
.bot { width: 64px; height: 64px; color: #e9e4d8; }
.bot svg { width: 100%; height: 100%; display: block; }
.bot.busy .bot-paper { animation: feed 1.6s ease-in-out infinite; }
.bot.busy .bot-ant { animation: blink 0.9s steps(1) infinite; fill: var(--amber-fill); }
@keyframes feed { 0% { transform: translateY(-14px); } 70%, 100% { transform: translateY(0); } }
.cam-status { margin: 6px 0 0; font: 500 0.74rem var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: #cfc8b8; }
.cam-coin { margin: 0; font: 400 clamp(1.3rem, 3vw, 1.8rem)/1.2 var(--serif); overflow-wrap: anywhere; }
.caption { position: absolute; left: 12px; bottom: 12px; max-width: calc(100% - 24px); display: inline-flex; align-items: center; gap: 8px; background: rgb(28 27 24 / 0.9); color: var(--paper); border-radius: 2px; padding: 6px 12px; font: 500 0.86rem var(--sans); }
.caption .rec-dot { color: #ef6b5e; }
.notes-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 14px 14px 0; }
.notes-head h3 { margin: 0; font-size: 0.98rem; }
.coin-now { font: 0.8rem var(--mono); color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.narration { list-style: none; margin: 8px 12px 12px; padding: 0; max-height: 260px; overflow: auto; font-size: 0.88rem; line-height: 1.5; border-top: 1px solid var(--rule); }
.narration li { display: flex; gap: 10px; align-items: baseline; padding: 6px 2px; border-bottom: 1px solid var(--rule); animation: print 300ms ease both; }
.narration .ts { color: var(--ink-3); flex: none; font: 0.72rem var(--mono); }
.narration .msg { overflow-wrap: anywhere; }
.narration li.visit { color: var(--ink-3); }
.narration li.find .msg::before { content: "✓ "; font-weight: 700; }
.narration li.warn .msg::before { content: "! "; font-weight: 700; color: var(--amber); }
.narration li.bad .msg::before { content: "✗ "; font-weight: 700; color: var(--red); }
.narration li.final { font-weight: 600; }
.narration li.bad.final { color: var(--red); }
.narration li.warn.final { color: var(--amber); }

/* Theater mode: the browser fills the screen with the notes beside it (stacked on phones). */
body.no-scroll { overflow: hidden; }
.cam.theater { position: fixed; inset: 0; z-index: 100; border: 0; border-radius: 0; display: grid; grid-template-columns: minmax(0, 1fr) 380px; grid-template-rows: auto minmax(0, 1fr); grid-template-areas: "bar bar" "screen notes"; background: #161511; color: var(--paper); }
.cam:fullscreen { width: 100vw; height: 100vh; }
.cam.theater .cam-bar { grid-area: bar; border-color: #34322b; }
.cam.theater .theater-btn { color: var(--paper); border-color: #4a473f; }
.cam.theater .theater-btn:hover { background: #24221d; }
.cam.theater .browser { grid-area: screen; margin: 14px; display: flex; flex-direction: column; min-height: 0; border-color: #34322b; }
.cam.theater .screen { flex: 1; aspect-ratio: auto; min-height: 0; cursor: zoom-out; }
.cam.theater .screen img { object-fit: contain; background: #0d0c0a; }
.cam.theater .notes-head { grid-area: notes; align-self: start; padding: 16px 16px 0 0; }
.cam.theater .coin-now { color: #b5ae9e; }
.cam.theater .narration { grid-area: notes; margin: 48px 14px 14px 0; max-height: none; border-color: #34322b; }
.cam.theater .narration li { border-color: #34322b; }
.cam.theater .narration .ts, .cam.theater .narration li.visit { color: #a8a191; }
.cam.theater .narration li.bad.final { color: #f19a90; }
.cam.theater .narration li.warn.final, .cam.theater .narration li.warn .msg::before { color: #f0bd5c; }
.cam.theater .narration li.bad .msg::before { color: #f19a90; }

/* Detail panels */
.grid { display: grid; gap: 28px; }
.panel { min-width: 0; padding-top: 16px; border-top: 2px solid var(--ink); }
.panel h3 { margin: 0 0 4px; font-size: 1.08rem; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.panel .sub { margin: 0 0 14px; color: var(--ink-2); font-size: 0.9rem; }
.dot { width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--ink-3); flex: none; }
.panel.active .dot { background: var(--amber-fill); border-color: var(--amber-fill); animation: blink 1.2s ease-in-out infinite; }
.panel.done .dot { background: var(--ink); border-color: var(--ink); }

.bverdict { padding: 12px 14px; margin-bottom: 14px; background: var(--paper); border: 1px solid var(--rule); border-left: 4px solid var(--rule-strong); }
.bverdict .bv { display: block; font: 600 1.1rem var(--sans); }
.bverdict ul { margin: 6px 0 0; padding-left: 18px; font-size: 0.86rem; color: var(--ink-2); display: grid; gap: 3px; }
.bverdict.bad { border-left-color: var(--red); } .bverdict.bad .bv { color: var(--red); }
.bverdict.warn { border-left-color: var(--amber-fill); } .bverdict.warn .bv { color: var(--amber); }
.bverdict.ok { border-left-color: var(--ink); }
.bverdict.wait .bv { color: var(--ink-3); font-size: 1rem; animation: blink 1.4s ease-in-out infinite; }
.supply { margin-bottom: 14px; }
.sbar { display: flex; height: 14px; overflow: hidden; background: var(--paper); box-shadow: inset 0 0 0 1px var(--rule-strong); }
.sbar i { display: block; height: 100%; width: 0; transition: width 500ms ease; }
.sbar .s-dev { background: var(--ink); } .sbar .s-buy { background: repeating-linear-gradient(135deg, var(--ink-3) 0 3px, #8f8a7f 3px 6px); }
.skey { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 0.84rem; color: var(--ink-2); }
.skey li { display: inline-flex; align-items: center; gap: 6px; } .skey b { color: var(--ink); font-family: var(--mono); }
.k { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex: none; }
.k.dev { background: var(--ink); } .k.buy { background: var(--ink-3); } .k.relay { background: var(--red); } .k.fund { background: var(--amber-fill); }
.k.rest { background: var(--paper); box-shadow: inset 0 0 0 1px var(--rule-strong); }
.wtable-head { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1.2fr); gap: 10px; padding: 0 8px 6px; font: 500 0.7rem var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); border-bottom: 1px solid var(--rule-strong); }
.wallets { list-style: none; margin: 0; padding: 0; max-height: 320px; overflow: auto; }
.wallets li { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1.2fr); gap: 10px; align-items: center; padding: 7px 8px; font-size: 0.86rem; border-bottom: 1px solid var(--rule); animation: print 260ms ease both; }
.wallets li.dev { background: var(--paper); }
.wallets .who { display: flex; align-items: center; gap: 8px; min-width: 0; }
.wallets .who .mono { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wallets .role { font: 600 0.64rem var(--mono); text-transform: uppercase; letter-spacing: 0.08em; padding: 1px 6px; border: 1px solid var(--ink-3); color: var(--ink-2); border-radius: 2px; }
.wallets .role.dev { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.wallets .when { color: var(--ink-2); font-size: 0.82rem; display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.wallets .when span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wallets .wsol { font: 0.74rem var(--mono); color: var(--ink-3); }
.wshare { display: flex; align-items: center; gap: 8px; justify-content: flex-end; }
.wshare b { font-family: var(--mono); font-weight: 600; min-width: 48px; text-align: right; }
.minibar { flex: 1; max-width: 90px; height: 6px; background: var(--paper-2); box-shadow: inset 0 0 0 1px var(--rule); overflow: hidden; }
.minibar i { display: block; height: 100%; background: var(--ink-3); }
.wallets li.dev .minibar i { background: var(--ink); }

.graphp svg { width: 100%; height: auto; display: block; background: var(--paper); border: 1px solid var(--rule); }
.legend { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 16px; padding: 0; margin: 10px 0 0; font-size: 0.82rem; color: var(--ink-2); }
.legend li { display: flex; align-items: center; gap: 6px; }
#graph .lab { fill: var(--ink-2); font: 500 10px var(--mono); text-anchor: middle; }
#graph .node.dev .lab { fill: var(--ink); font-weight: 700; font-size: 11px; }
#graph .pin { fill: var(--paper); font: 700 11px var(--mono); text-anchor: middle; pointer-events: none; }
#graph .edge { stroke: rgb(28 27 24 / 0.18); stroke-width: 1.2; }
#graph .fundedge { stroke: var(--amber-fill); stroke-dasharray: 3 4; stroke-width: 1.4; }
#graph .relay { stroke: var(--red); stroke-width: 2.2; fill: none; stroke-dasharray: 400; stroke-dashoffset: 400; animation: draw 900ms ease forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
#graph .node { animation: pop 300ms ease both; transform-box: fill-box; transform-origin: center; }
@keyframes pop { from { opacity: 0; transform: scale(0.4); } to { opacity: 1; transform: none; } }

.cards { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 8px; }
.cards li { padding: 10px 12px; font-size: 0.88rem; background: var(--paper); border: 1px solid var(--rule); border-left: 4px solid var(--ink-3); overflow-wrap: anywhere; animation: print 260ms ease both; }
.cards li.red { border-left-color: var(--red); }
.cards li.caution { border-left-color: var(--amber-fill); }
.cards li b { display: block; margin-bottom: 2px; }
.cards li.empty { color: var(--ink-2); border-left-color: var(--ink); }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0; font-size: 0.9rem; }
.kv dt { color: var(--ink-2); } .kv dd { margin: 0; font-family: var(--mono); text-align: right; }

.fverdict { margin: 0 0 12px; padding: 10px 14px; font-weight: 600; font-size: 0.92rem; background: var(--paper); border: 1px solid var(--rule); border-left: 4px solid var(--rule-strong); overflow-wrap: anywhere; }
.fverdict.bad { color: var(--red); border-left-color: var(--red); }
.fverdict.warn { color: var(--amber); border-left-color: var(--amber-fill); }
.fverdict.ok { border-left-color: var(--ink); }
.fverdict.wait { color: var(--ink-3); font-weight: 500; }
.fees { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.fcol { background: var(--paper); border: 1px solid var(--rule); padding: 12px; min-width: 0; }
.fcol h4 { margin: 0 0 8px; font: 500 0.7rem var(--mono); text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink-3); }
.fcol p { margin: 0; font-size: 0.9rem; overflow-wrap: anywhere; }
.fcol .big { display: block; font: 600 1.25rem var(--mono); color: var(--ink); }
.fcol q { display: block; color: var(--ink-3); font-style: italic; margin-top: 6px; font-size: 0.82rem; }
.fto { display: block; font-weight: 600; margin-bottom: 2px; }
.fout { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 4px; font-size: 0.86rem; }
.fout li { display: flex; justify-content: space-between; gap: 10px; } .fout li span { color: var(--ink-2); } .fout b { font-family: var(--mono); }

.tbadge { margin-left: auto; font: 600 0.7rem var(--mono); letter-spacing: 0.1em; text-transform: uppercase; padding: 2px 8px; border: 1.5px solid currentColor; border-radius: 2px; color: var(--ink-3); white-space: nowrap; }
.tbadge.works { color: var(--ink); } .tbadge.partial { color: var(--amber); } .tbadge.larp { color: var(--red); } .tbadge.unverified { color: var(--ink-3); }
.tries, .tfeatures { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 0.88rem; }
.tfeatures { margin-top: 12px; }
.tries li, .tfeatures li { padding: 10px 12px; background: var(--paper); border: 1px solid var(--rule); border-left: 4px solid var(--ink-3); overflow-wrap: anywhere; animation: print 260ms ease both; }
.tries li.ok { border-left-color: var(--ink); } .tries li.none { border-left-color: var(--amber-fill); }
.tries .res { color: var(--ink-2); }
.tfeatures li.works { border-left-color: var(--ink); } .tfeatures li.broken, .tfeatures li.fake { border-left-color: var(--red); }
.fres, .fcore { display: inline-block; margin-right: 8px; font: 600 0.66rem var(--mono); letter-spacing: 0.08em; text-transform: uppercase; padding: 1px 6px; border: 1px solid currentColor; border-radius: 2px; color: var(--ink-3); }
.works .fres { color: var(--ink); } .broken .fres, .fake .fres { color: var(--red); }
.fcore { color: var(--ink); background: var(--amber-tint); }
/* Evidence links under a tech check (request URL, tx, commit, post): mono, underlined, wrap anywhere. */
.ev-link { font-family: var(--mono); font-size: 0.78rem; text-decoration: underline; text-decoration-style: dotted; overflow-wrap: anywhere; display: inline-block; padding: 2px 0; min-height: 24px; }
.ev-link:hover { text-decoration-style: solid; }
.ev-list { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 2px; }
.ev-list li { padding: 0; border: 0; background: none; animation: none; }
.tfeatures b { margin-right: 6px; }
.tcore { margin: 0 0 12px; padding: 10px 14px; background: var(--paper); border: 1px solid var(--rule); font-size: 0.9rem; }
.xdd { margin-top: 14px; }
.xdd h4 { margin: 0 0 8px; font: 500 0.72rem var(--mono); text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink-3); }
.xdd ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 0.88rem; }
.xdd li { padding: 8px 12px; background: var(--paper); border: 1px solid var(--rule); overflow-wrap: anywhere; }
.xdd li.warn { border-left: 4px solid var(--amber-fill); }

.raw { border-top: 2px solid var(--ink); padding-top: 14px; }
.raw summary { cursor: pointer; font-weight: 600; }
.raw h4 { margin: 16px 0 6px; font: 500 0.72rem var(--mono); text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink-3); }
.raw ul { margin: 0; padding-left: 18px; color: var(--ink-2); font-size: 0.9rem; }
.raw li { margin-bottom: 4px; overflow-wrap: anywhere; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.chip { font: 500 0.72rem var(--mono); color: var(--ink-2); border: 1px dashed var(--rule-strong); padding: 2px 8px; }

/* ---------- Home sections ---------- */
.section { padding: 80px 0 0; }
.section > h2, .shead h2 { font-size: clamp(2.1rem, 4vw, 2.8rem); margin: 0 0 8px; }
.shead { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.blurb { color: var(--ink-2); margin: 0; max-width: 40em; }

.steps { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; counter-reset: s; }
.steps li { border-top: 2px solid var(--ink); padding-top: 14px; }
.step-n { display: block; font: 400 3.4rem/1 var(--serif); color: var(--red); margin-bottom: 8px; }
.steps h3 { margin: 0 0 6px; font-size: 1.1rem; }
.steps p { margin: 0; color: var(--ink-2); font-size: 0.95rem; }

.recent, .lib { list-style: none; margin: 26px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 22px; }
.stub {
  position: relative; display: flex; flex-direction: column; gap: 10px; height: 100%; padding: 16px 16px 18px; margin-bottom: 8px;
  background: var(--paper); color: var(--ink); text-decoration: none; font: 0.84rem/1.45 var(--mono);
  filter: drop-shadow(0 1px 1px rgb(40 30 10 / 0.12)) drop-shadow(0 8px 12px rgb(40 30 10 / 0.08));
  transition: transform 160ms ease;
}
.stub::after { content: ""; position: absolute; left: 0; right: 0; bottom: -8px; height: 8px; background-image: linear-gradient(135deg, var(--paper) 50%, transparent 50%), linear-gradient(-135deg, var(--paper) 50%, transparent 50%); background-size: 10px 8px; background-repeat: repeat-x; }
.stub:hover { transform: translateY(-3px) rotate(-0.4deg); }
.stub:focus-visible { outline-offset: 4px; }
.stub-top { display: flex; align-items: center; gap: 10px; min-width: 0; padding-bottom: 10px; border-bottom: 1.5px dashed var(--rule-strong); }
.avatar { width: 40px; height: 40px; flex: none; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font: 600 13px var(--mono); color: var(--ink-2); background: var(--paper-2); box-shadow: 0 0 0 1px var(--rule-strong); overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar { position: relative; }
.avatar img.lazy-pending { position: absolute; inset: 0; opacity: 0; }
.stub .meta { min-width: 0; flex: 1; }
.stub .sym { display: block; font: 600 0.98rem var(--sans); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stub .sub2 { font-size: 0.74rem; color: var(--ink-3); }
.stub-rows { display: grid; gap: 4px; }
.stub-row { display: grid; grid-template-columns: auto minmax(1ch, 1fr) auto; gap: 0.6ch; align-items: baseline; }
.stub-row .ri-dots { grid-column: auto; margin-bottom: 4px; }
.sv { font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.sv.red { color: var(--red); } .sv.caution { color: var(--amber); } .sv.clean { color: var(--ink); } .sv.unchecked, .sv.none { color: var(--ink-3); font-weight: 500; }
.stub-claim { font: 0.86rem/1.45 var(--sans); color: var(--ink); overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.stub-why { font: 0.82rem/1.45 var(--sans); color: var(--ink-2); overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.skel { height: 120px; background: var(--paper-2); animation: blink 1.6s ease-in-out infinite; }
.lib .skel { height: 180px; }
.empty { grid-column: 1 / -1; color: var(--ink-2); padding: 28px; text-align: center; border: 1.5px dashed var(--rule-strong); font-family: var(--mono); font-size: 0.9rem; }

.gloss { margin: 28px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; }
.gloss div { padding: 14px 0; border-top: 1px solid var(--rule-strong); }
.gloss dt { font: 600 0.82rem var(--mono); letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 4px; }
.gloss dd { margin: 0; color: var(--ink-2); }

.scope { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.scope div { border-top: 1px solid var(--rule-strong); padding-top: 14px; }
.scope h3 { margin: 0 0 6px; font-size: 1rem; }
.scope p { margin: 0; color: var(--ink-2); font-size: 0.92rem; }

.foot { margin-top: 96px; border-top: 1px solid var(--rule-strong); padding: 28px 20px 36px; text-align: center; color: var(--ink-3); font: 0.8rem/1.7 var(--mono); }
.foot p { margin: 0; }

/* ---------- Library ---------- */
.libhead { padding-top: 56px; }
.libhead h1 { font-size: clamp(2.6rem, 5vw, 3.8rem); margin: 0 0 8px; }
.libbar { margin-top: 24px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 16px 0; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--rule-strong); }
.libsearch { display: flex; align-items: center; gap: 10px; background: var(--paper); border: 1.5px solid var(--ink); border-radius: var(--radius); padding: 0 14px; min-height: 46px; }
.libsearch svg { width: 18px; height: 18px; color: var(--ink-3); flex: none; }
.libsearch input { flex: 1; min-width: 0; border: 0; background: transparent; font: 500 0.95rem var(--mono); color: var(--ink); outline: none; min-height: 44px; }
.libsearch:focus-within { outline: 3px solid var(--amber-fill); outline-offset: 1px; }
#libSort { min-height: 46px; border-radius: var(--radius); border: 1.5px solid var(--ink); background: var(--paper); color: var(--ink); font: 500 0.9rem var(--sans); padding: 0 12px; cursor: pointer; }
.chips-row { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.chips-label { font: 500 0.72rem var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); min-width: 140px; }
.fchips { display: flex; flex-wrap: wrap; gap: 6px; }
.fchip { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border-radius: var(--radius); border: 1px solid var(--rule-strong); background: var(--paper); color: var(--ink-2); font: 500 0.86rem var(--sans); cursor: pointer; }
.fchip .n { font: 500 0.72rem var(--mono); color: var(--ink-3); }
.fchip:hover:not(:disabled) { border-color: var(--ink); color: var(--ink); }
.fchip.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.fchip.on .n { color: #cfc8b8; }
.fchip:disabled { opacity: 0.45; cursor: default; }
.pager { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 28px; color: var(--ink-2); font: 0.86rem var(--mono); }
.note { margin: 28px 0 0; color: var(--ink-3); }

/* ---------- Watchlist ---------- */
.solo { padding: 64px 0 24px; max-width: 680px; }
.solo h1 { font-size: clamp(2.6rem, 5vw, 3.8rem); margin: 0 0 16px; }
.solo-steps { margin: 0 0 28px; padding-left: 22px; color: var(--ink-2); display: grid; gap: 4px; }
.solo pre { white-space: pre-wrap; overflow-wrap: anywhere; padding: 16px; background: var(--paper); border: 1px solid var(--rule-strong); color: var(--ink-2); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 40px; padding-top: 48px; }
  .sample { width: min(100%, 340px); }
  .result { grid-template-columns: minmax(0, 1fr); }
  .receipt-col { max-width: 460px; width: 100%; justify-self: center; }
  .recent, .lib { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .scope { grid-template-columns: minmax(0, 1fr); gap: 20px; }
}
@media (max-width: 760px) {
  .top-in { flex-wrap: wrap; padding: 10px 16px 0; gap: 4px; }
  .nav { width: 100%; overflow-x: auto; margin: 0 -8px; padding-bottom: 4px; scrollbar-width: none; }
  .nav a { white-space: nowrap; }
  main { padding: 0 16px 24px; }
  .steps, .gloss { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .gloss { gap: 0; }
  .fees { grid-template-columns: minmax(0, 1fr); }
  .runhead { flex-direction: column; align-items: start; }
  .notyet { grid-template-columns: minmax(0, 1fr); }
  .receipt-blank { max-width: 220px; }
  .cam.theater { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto auto minmax(0, 1fr); grid-template-areas: "bar" "screen" "head" "notes"; }
  .cam.theater .browser { margin: 10px; }
  .cam.theater .screen { flex: none; aspect-ratio: 1024 / 640; }
  .cam.theater .notes-head { grid-area: head; padding: 6px 14px 0; }
  .cam.theater .narration { margin: 8px 10px 10px; }
  .tb-label { display: none; }
}
@media (max-width: 600px) {
  .ca-row { flex-direction: column; }
  .recent, .lib { grid-template-columns: minmax(0, 1fr); }
  .libbar { grid-template-columns: minmax(0, 1fr); }
  .chips-label { min-width: 0; flex-basis: 100%; }
  .receipt { padding: 22px 16px 18px; }
  .st-v { font-size: 2rem; }
  .coin-pic { width: 56px; height: 56px; font-size: 18px; }
  .wtable-head { display: none; }
  .wallets li { grid-template-columns: minmax(0, 1fr) auto; }
  .wallets .when { grid-column: 1; grid-row: 2; }
  .wshare { grid-column: 2; grid-row: 1 / 3; }
  #graph .lab { font-size: 17px; } #graph .node.dev .lab { font-size: 18px; } #graph .pin { font-size: 15px; }
  .caption { font-size: 0.78rem; left: 8px; bottom: 8px; padding: 5px 9px; max-width: calc(100% - 16px); }
  .section { padding-top: 64px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 1ms !important; animation-delay: 0ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; }
  #graph .relay { stroke-dashoffset: 0; }
  .stub:hover { transform: none; }
}
@media (forced-colors: active) {
  .stamp { -webkit-mask-image: none; mask-image: none; border-color: CanvasText; }
  .ri-dots, .ri-subs div::after { border-color: CanvasText; }
}
.ri-evidence { grid-column: 2 / -1; margin: 4px 0 0; padding-left: 1.1em; font-size: 0.8rem; color: var(--ink-2); }
.ri-evidence li { margin: 1px 0; overflow-wrap: anywhere; }

/* ================= Original theme (033ea50): page, glass panels, buttons, type ================= */
html { background: var(--bg); }
body { font: 16px/1.55 var(--sans); background:
  radial-gradient(900px 500px at 85% -10%, rgba(106, 168, 255, 0.10), transparent 60%),
  radial-gradient(700px 400px at -10% 20%, rgba(255, 90, 82, 0.07), transparent 60%), var(--bg); }
h1, h2 { font-family: var(--sans); font-weight: 800; letter-spacing: -0.03em; }
a { color: var(--blue); }
:focus-visible { outline-color: var(--blue); }
.skip { background: var(--ticket); color: var(--ticket-ink); border-radius: 8px; }
.btn { border-radius: 12px; border: 1px solid var(--panel-b); transition: background-color 150ms, color 150ms, border-color 150ms; }
.btn.primary { background: var(--ticket); color: var(--ticket-ink); border-color: transparent; }
.btn.primary:hover { background: #fff; }
.btn.ghost { background: var(--paper); color: var(--ink); }
.btn.ghost:hover { background: var(--paper-2); }
.receipt .btn.primary, .receipt .share-links .btn { background: var(--ticket-ink); color: var(--ticket); }
.text-link { color: var(--blue); }

.top { background: rgb(14 15 18 / 0.72); backdrop-filter: blur(12px); border-bottom: 1px solid var(--panel-b); }
.brand { font: 700 1.1rem/1 var(--sans); color: var(--ticket); gap: 10px; }
.brand svg { width: 28px; height: 28px; }
.brand i { font: 800 1.1rem/1 var(--sans); letter-spacing: 0; text-transform: none; color: var(--red); background: none; padding: 0; margin-left: 5px; vertical-align: 0; }
.nav a { border-radius: 10px; }
.nav a:hover { background: var(--paper); }
.kicker, .run-state, .field-label { color: var(--amber); font-family: var(--sans); font-weight: 700; letter-spacing: 0.12em; }
.hero { border-bottom: 0; padding: 48px 0 56px; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.3rem); line-height: 1.05; }
.lede { color: var(--ink-3); font-size: 1.08rem; }
.ca-row { background: var(--paper); border: 1px solid var(--panel-b); border-radius: 16px; padding: 8px; backdrop-filter: blur(12px); }
.ca-row:focus-within { border-color: var(--blue); }
.ca-row input { background: transparent; border: 0; min-height: 44px; }
.ca-row input:focus-visible { outline: none; }
.ca-row .btn { min-height: 44px; }
.official input { background: var(--paper); border: 1px solid var(--panel-b); border-radius: 12px; }
.official input:focus-visible { outline: 2px solid var(--blue); }
.form-err { color: var(--red); }

/* the receipt is the original paper verdict ticket: rounded, scalloped bottom, stamp slams in */
.receipt { background: var(--paper); border-radius: 18px; filter: drop-shadow(0 18px 30px rgb(0 0 0 / 0.45)); }
.receipt::before { display: none; }
.receipt::after { bottom: -1px; height: 10px; background: radial-gradient(circle at 8px 12px, var(--bg) 6px, transparent 7px) 0 0 / 16px 10px repeat-x; }
.receipt { --bg: #0e0f12; }
.stamp { border-width: 6px; border-radius: 12px; box-shadow: none; -webkit-mask-image: none; mask-image: none; mix-blend-mode: normal; opacity: 1; animation: slam 420ms cubic-bezier(.2, 1.6, .4, 1) both; --rot: -8deg; }
.st-v { font: 900 2.2rem/1 var(--sans); letter-spacing: 0.02em; }
.st-k { font-family: var(--sans); }
.stamp.small { border-width: 4px; }
.stamp.clean, .stamp.works { --c: var(--green); }
@keyframes slam { from { opacity: 0; transform: rotate(var(--rot)) scale(2.2); } to { opacity: 1; transform: rotate(var(--rot)) scale(1); } }

.verdict-line { font: 600 clamp(1.2rem, 2.4vw, 1.6rem)/1.3 var(--sans); letter-spacing: -0.01em; border-left-color: var(--panel-b); }
.verdict-line.clean { border-color: var(--green); }
.notyet h3, .cam-coin { font-family: var(--sans); font-weight: 800; letter-spacing: -0.02em; }
.coin-pic { background: var(--paper-2); box-shadow: 0 0 0 1px var(--panel-b); }
.meter { background: var(--paper); border: 1px solid var(--panel-b); border-radius: 10px; padding: 8px 12px; font-weight: 600; }

/* glass panels */
.panel, .cam { background: var(--paper); border: 1px solid var(--panel-b); border-radius: var(--radius); padding: 16px; backdrop-filter: blur(14px); }
.cam { padding: 0; }
.panel h3 { font-size: 1rem; }
.panel .sub { color: var(--ink-3); font-size: 0.85rem; }
.dot { border: 0; background: var(--ink-3); }
.panel.active .dot { background: var(--amber); box-shadow: 0 0 0 4px rgba(255, 181, 71, 0.18); animation: none; }
.panel.done .dot { background: var(--green); }
.bverdict, .fverdict, .cards li, .fcol, .tries li, .tfeatures li, .tcore, .xdd li { background: rgba(255, 255, 255, 0.04); border: 0; border-left: 3px solid var(--ink-3); border-radius: 10px; }
.bverdict.ok, .fverdict.ok, .cards li.empty, .tries li.ok, .tfeatures li.works { border-left-color: var(--green); }
.bverdict.bad, .fverdict.bad, .cards li.red, .tfeatures li.broken, .tfeatures li.fake { border-left-color: var(--red); background: rgba(255, 90, 82, 0.08); }
.bverdict.warn, .fverdict.warn, .cards li.caution, .tries li.none, .xdd li.warn { border-left-color: var(--amber); background: rgba(255, 181, 71, 0.07); }
.fcol { border-left: 0; }
.raw { border-top: 1px solid var(--panel-b); }
.chip { background: var(--paper-2); border: 0; border-radius: 6px; font-weight: 700; color: var(--ink-2); }
.tbadge { border-radius: 6px; }
.tbadge.works, .works .fres { color: var(--green); }
.tip { background: #1b1d22; color: var(--ink); border: 1px solid var(--panel-b); }

/* research browser */
.browser { background: #000; border-color: var(--panel-b); border-radius: 10px; }
.chrome { border-bottom-color: var(--panel-b); }
.addr { background: rgba(0, 0, 0, 0.3); border-color: var(--panel-b); border-radius: 6px; }
.screen { background: #0a0b0d; }
.idle { color: var(--ink); }
.caption { background: rgb(14 15 18 / 0.88); color: var(--ink); border-radius: 8px; }
.onair { border-radius: 6px; }
.theater-btn { border-color: var(--panel-b); border-radius: 10px; }

/* wallet map and table (original legend: dev red, launch buyer blue, hand-off violet, shared funder amber) */
.graphp svg { background: rgba(0, 0, 0, 0.18); border: 0; border-radius: 10px; }
.k.dev { background: var(--red); } .k.buy { background: var(--blue); } .k.relay { background: var(--violet); } .k.fund { background: var(--amber); }
#graph .edge { stroke: rgba(255, 255, 255, 0.18); }
#graph .relay { stroke: var(--violet); stroke-width: 2.4; }
#graph .fundedge { stroke: var(--amber); opacity: 0.7; }
#graph .pin { fill: var(--bg); }
#graph .lab { fill: var(--ink-2); } #graph .node.dev .lab { fill: var(--ink); }
.sbar { background: rgba(255, 255, 255, 0.08); box-shadow: none; border-radius: 99px; }
.sbar .s-dev { background: var(--red); } .sbar .s-buy { background: var(--blue); }
.wallets li { border-bottom: 0; border-radius: 9px; }
.wallets li:nth-child(odd) { background: rgba(255, 255, 255, 0.025); }
.wallets li.dev { background: rgba(255, 90, 82, 0.06); }
.wallets .role { border: 0; border-radius: 6px; background: rgba(106, 168, 255, 0.16); color: var(--blue); font-weight: 700; }
.wallets .role.dev { background: rgba(255, 90, 82, 0.16); color: var(--red); }
.minibar { background: rgba(255, 255, 255, 0.08); box-shadow: none; border-radius: 99px; }
.minibar i { background: var(--blue); } .wallets li.dev .minibar i { background: var(--red); }

/* home sections, recent and library: glass cards instead of paper stubs */
.steps li, .scope div, .gloss div { border-top: 0; background: var(--paper); border: 1px solid var(--panel-b); border-radius: var(--radius); padding: 16px; }
.gloss { gap: 14px; } .gloss div { padding: 14px 16px; }
.step-n { font: 800 2.4rem/1 var(--sans); color: var(--red); }
.scope p, .steps p, .blurb, .gloss dd { color: var(--ink-3); }
.stub { background: var(--paper); border: 1px solid var(--panel-b); border-radius: var(--radius); filter: none; font-family: var(--sans); backdrop-filter: blur(14px); transition: transform 160ms ease, border-color 160ms ease; }
.stub::after { display: none; }
.stub:hover { transform: translateY(-2px); border-color: rgba(255, 255, 255, 0.2); }
.stub-top { border-bottom: 1px solid var(--panel-b); }
.stub-row { font-family: var(--mono); font-size: 0.8rem; }
.sv.clean { color: var(--green); }
.skel { border-radius: var(--radius); background: var(--paper); border: 1px solid var(--panel-b); }
.empty { border: 1px solid var(--panel-b); border-radius: var(--radius); background: var(--paper); }
.libbar { border-top: 0; border-bottom: 0; background: var(--paper); border: 1px solid var(--panel-b); border-radius: var(--radius); padding: 14px; }
.libsearch, #libSort { background: rgba(0, 0, 0, 0.25); border: 1px solid var(--panel-b); border-radius: 12px; }
.libsearch:focus-within { outline: 0; border-color: var(--blue); }
.chips-label { color: var(--amber); font-family: var(--sans); font-weight: 700; }
.fchip { border-radius: 999px; border-color: var(--panel-b); background: rgba(255, 255, 255, 0.04); }
.fchip:hover:not(:disabled) { border-color: rgba(255, 255, 255, 0.3); }
.fchip.on { background: var(--ticket); color: var(--ticket-ink); border-color: var(--ticket); }
.fchip.on .n { color: #5b5a55; }
.foot { border-top: 0; font: 0.8rem/1.7 var(--sans); color: var(--ink-3); margin-top: 64px; }
.solo pre { background: var(--paper); border-color: var(--panel-b); border-radius: var(--radius); }

/* ===== Palette theme (2026-10-22, draft 13): same tokens as web/v2/site.css. Delete to roll back. ===== */
:root {
  --page: #141413; --bg: #141413;
  --paper: #1d1d1b; --paper-2: #262523; --panel-b: #33322f;
  --ink: #ecebe8; --ink-2: #a9a69f; --ink-3: #8a877f;
  --rule: #33322f; --rule-strong: #454440;
  --red: #ff6b6b; --red-tint: rgb(255 77 77 / .13);
  --amber: #f5b25c; --amber-fill: #f5b25c; --amber-tint: rgb(245 178 92 / .11);
  --green: #7ee2a8; --blue: #8ab4ff; --violet: #ff7a59;
  --sans: Onest, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: Onest, ui-sans-serif, system-ui, sans-serif; --cond: Onest, ui-sans-serif, sans-serif;
  --mono: "Fira Code", ui-monospace, SFMono-Regular, Menlo, monospace;
  --radius: 14px;
}
body { background: radial-gradient(44rem 24rem at 50% -4rem, rgb(255 122 89 / .1), transparent 70%) no-repeat, var(--page); }
h1, h2 { font-family: var(--sans); font-weight: 600; letter-spacing: -.02em; }
::selection { background: rgb(255 122 89 / .3); }
:focus-visible { outline-color: #ff7a59; }
.top { background: none; border-bottom: 1px solid var(--rule); backdrop-filter: none; }
.brand { font-family: var(--sans); font-weight: 600; color: var(--ink); letter-spacing: -.01em; }
.brand svg { color: #ff7a59; }
.brand i { color: var(--ink-2); font-style: normal; }
.nav a { color: var(--ink-2); border-radius: 8px; }
.nav a:hover, .nav a[aria-current] { color: var(--ink); background: #2a2926; }
.kicker { color: #ff7a59; font: 500 12px var(--mono); letter-spacing: 0; text-transform: none; }
h1 em { font-style: normal; color: #ff7a59; }
.btn.primary { color: #1a0d08; background: #ff7a59; border: 0; box-shadow: none; }
.btn.primary:hover { filter: brightness(1.08); }
input, select { background: #141413; color: var(--ink); border-color: var(--rule-strong); }
.receipt { --paper: #1d1d1b; --paper-2: #262523; --ink: #ecebe8; --ink-2: #a9a69f; --ink-3: #8a877f; --rule: #33322f; --rule-strong: #454440;
  --red: #ff6b6b; --red-tint: rgb(255 77 77 / .13); --amber: #f5b25c; --amber-fill: #f5b25c; --amber-tint: rgb(245 178 92 / .11); --green: #7ee2a8; color-scheme: dark;
  border: 1px solid #33322f; background: #1d1d1b; box-shadow: 0 40px 80px -30px rgb(0 0 0 / .8); }
.stamp { font-family: var(--sans); font-weight: 700; }
@media (max-width: 640px) { .nav { flex-wrap: wrap; min-width: 0; max-width: 100%; } }

/* ===================================================================================================================
   Papertrail brand (2026-10-23, brand/receipt/brand.md), same tokens as web/v2/brand.css: an ink page with paper
   receipts on it and one red stamp. Ink #141414 · Paper #F4F1E8 · Stamp red #D2261F · Caution amber #B7791F ·
   Graphite #6E6A62 · Rule #E4DED0. Newsreader + JetBrains Mono, square corners, no gradients or glass.
   On the page, --paper is the panel colour and --ink the text colour (the tokens flip inside the paper scope below).
   Small red/amber text only sits on paper. Overrides everything above; delete this block to roll back.
   =================================================================================================================== */
:root {
  --page: #141414; --bg: #141414;
  --paper: #1c1c1b; --paper-2: #262624; --panel-b: #34332f;
  --ink: #f4f1e8; --ink-2: #c9c4b8; --ink-3: #a29d92;
  --rule: #34332f; --rule-strong: #4a4843;
  --red: #ff7b72; --red-tint: rgb(210 38 31 / .18);
  --amber: #e2a54a; --amber-fill: #b7791f; --amber-tint: rgb(183 121 31 / .18);
  --green: #f4f1e8; --blue: #a29d92; --violet: #f4f1e8;
  --ticket: #f4f1e8; --ticket-ink: #141414;
  --sans: Newsreader, "Iowan Old Style", Georgia, serif;
  --serif: Newsreader, "Iowan Old Style", Georgia, serif; --cond: "JetBrains Mono", ui-monospace, monospace;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --radius: 2px;
  color-scheme: dark;
}
.receipt, .panel, .cam:not(.theater), .stub, .libbar, .steps li, .scope div, .gloss div, .empty, .skel, .solo pre, .ca-row, .meter {
  --paper: #f4f1e8; --paper-2: #ebe6d9; --panel-b: #dcd5c5;
  --ink: #141414; --ink-2: #45423c; --ink-3: #625e57;
  --rule: #dcd5c5; --rule-strong: #bfb7a5;
  --red: #c4231c; --red-tint: rgb(210 38 31 / .08);
  --amber: #8a5a12; --amber-fill: #b7791f; --amber-tint: rgb(183 121 31 / .13);
  --green: #141414; --blue: #6e6a62; --violet: #141414;
  color-scheme: light; color: var(--ink);
}
html, body { background: var(--page); }
body { font: 17px/1.55 var(--sans); }
h1, h2, .notyet h3, .cam-coin, .verdict-line { font-family: var(--serif); font-weight: 500; letter-spacing: -.02em; }
h3, h4 { font-family: var(--serif); font-weight: 600; }
a, .text-link { color: var(--ink); text-decoration-color: #d2261f; }
::selection { background: rgb(210 38 31 / .35); }
:focus-visible { outline: 2px solid #d2261f; }
.skip { background: #f4f1e8; color: #141414; border-radius: 2px; }

/* header: favicon art + Newsreader wordmark on the ink band, mono nav */
.top { background: #141414; border-bottom: 1px solid var(--rule); backdrop-filter: none; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #f4f1e8; text-decoration: none; }
.brand-logo { width: 28px; height: 28px; flex: none; display: block; }
.brand-word { font: 500 26px/1 var(--serif); letter-spacing: -.02em; color: #f4f1e8; }
.brand i { font: 800 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: #f4f1e8; background: #d2261f; padding: 3px 6px; border-radius: 2px; }
.brand i:empty { display: none; }
.nav a { font: 500 13px var(--mono); color: var(--ink-2); border-radius: 2px; }
.nav a:hover { color: var(--ink); background: var(--paper-2); }
.nav a[aria-current] { color: var(--ink); background: none; text-decoration: underline; text-decoration-color: #d2261f; text-decoration-thickness: 2px; text-underline-offset: 6px; }

/* footer */
.foot { border-top: 1px dashed var(--rule-strong); font: 13px/1.7 var(--mono); color: var(--ink-3); }
.foot a { color: var(--ink-2); }
.foot-brand { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0 0 10px !important; }
.foot-brand img { width: 20px; height: 20px; }
.foot-brand span { font: 500 20px/1 var(--serif); letter-spacing: -.02em; color: #f4f1e8; }

/* page type */
.kicker, .run-state, .field-label, .chips-label { font: 700 12px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.hero h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); line-height: 1.02; }
.hero h1 em, h1 em { font-style: italic; color: #d2261f; }
.lede, .blurb, .scope p, .steps p, .gloss dd { color: var(--ink-2); }
.step-n { font: 800 2.4rem/1 var(--mono); color: #d2261f; }
.gloss dt { font-family: var(--mono); }

/* buttons: ink on paper, paper on ink */
.btn { border-radius: 2px; font: 700 0.86rem var(--mono); letter-spacing: .03em; }
.btn.primary { background: var(--ink); color: var(--paper); border: 1px solid var(--ink); filter: none; }
.btn.primary:hover { background: var(--ink); filter: none; box-shadow: 3px 3px 0 #d2261f; }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--rule-strong); }
.btn.ghost:hover { background: var(--paper-2); border-color: var(--ink); }
.receipt .btn.primary, .receipt .share-links .btn { background: var(--ink); color: var(--paper); }

/* fields */
input, select { color: #141414; }
.ca-row { background: var(--paper); border: 1px solid var(--rule); border-radius: 2px; backdrop-filter: none; }
.ca-row:focus-within { border-color: var(--ink); box-shadow: inset 0 -2px 0 #d2261f; }
.ca-row input { background: transparent; color: var(--ink); }
.official input, .libsearch, #libSort { background: #fffdf7; color: #141414; border: 1px solid #bfb7a5; border-radius: 2px; }
.official input:focus-visible { outline: 2px solid #d2261f; }
.libsearch:focus-within { border-color: #141414; }
.libsearch input { color: #141414; }
.form-err { color: #ff7b72; }

/* the receipt: paper, torn top and bottom (the base look above), mono, square */
.receipt { background: var(--paper); border: 0; border-radius: 0; box-shadow: none; filter: drop-shadow(0 18px 28px rgb(0 0 0 / .45)); font-family: var(--mono); }
.receipt::before { display: block; }
.receipt::after { bottom: -10px; height: 10px; background: linear-gradient(135deg, var(--paper) 50%, transparent 50%), linear-gradient(-135deg, var(--paper) 50%, transparent 50%); background-size: 12px 10px; background-repeat: repeat-x; }
.r-brand { font: 500 1.6rem/1.1 var(--serif) !important; letter-spacing: -.02em !important; text-transform: none; }
.stamp { border-width: 4px; border-radius: 4px; --rot: -10deg; font-family: var(--mono); }
.st-v { font: 800 2rem/1 var(--mono); letter-spacing: .08em; }
.st-k { font-family: var(--mono); }
.stamp.red, .stamp.larp, .stamp.RED { --c: #d2261f; }
.stamp.caution, .stamp.partial { --c: var(--amber-fill); }
.stamp.clean, .stamp.works { --c: var(--ink); }
.stamp.unchecked, .stamp.unverified { --c: var(--ink-3); }
.tip { background: #141414; color: #f4f1e8; border: 0; border-radius: 2px; }

/* review page */
.verdict-line { font-size: clamp(1.4rem, 2.8vw, 1.95rem); border-left-color: var(--rule-strong); }
.verdict-line.red, .verdict-line.error { border-color: #d2261f; }
.verdict-line.caution { border-color: #b7791f; }
.verdict-line.clean { border-color: var(--ink); }
.stale-note { color: var(--amber); }
.coin-pic { border-radius: 2px; background: var(--paper-2); box-shadow: 0 0 0 1px var(--rule-strong); }
.meter { background: var(--paper); color: var(--ink-2); border: 1px solid var(--rule); border-radius: 2px; }

/* panels and the research browser: paper */
.panel, .cam { background: var(--paper); border: 1px solid var(--rule); border-radius: 2px; backdrop-filter: none; }
.panel h3 { font-size: 1.15rem; }
.panel .sub { color: var(--ink-2); }
.dot { background: var(--ink-3); }
.panel.active .dot { background: #d2261f; box-shadow: 0 0 0 4px rgb(210 38 31 / .18); }
.panel.done .dot { background: var(--ink); }
.bverdict, .fverdict, .cards li, .fcol, .tries li, .tfeatures li, .tcore, .xdd li { background: var(--paper-2); border: 0; border-left: 3px solid var(--ink-3); border-radius: 0; }
.bverdict.ok, .fverdict.ok, .cards li.empty, .tries li.ok, .tfeatures li.works { border-left-color: var(--ink); }
.bverdict.bad, .fverdict.bad, .cards li.red, .tfeatures li.broken, .tfeatures li.fake { border-left-color: #d2261f; background: var(--red-tint); }
.bverdict.warn, .fverdict.warn, .cards li.caution, .tries li.none, .xdd li.warn { border-left-color: #b7791f; background: var(--amber-tint); }
.fcol { border-left: 0; }
.chip { background: var(--paper-2); color: var(--ink-2); border-radius: 2px; }
.tbadge, .fres, .fcore { border-radius: 2px; }
.tbadge.works, .works .fres { color: var(--ink); }
.browser { background: #141414; border-color: var(--rule-strong); border-radius: 2px; }
.chrome { background: var(--paper-2); }
.addr { background: #fffdf7; color: var(--ink-2); border-color: var(--rule); border-radius: 2px; }
.screen { background: #141414; }
.idle { color: #f4f1e8; }
.caption { background: rgb(20 20 20 / .88); color: #f4f1e8; border-radius: 2px; }
.onair { background: #d2261f; color: #f4f1e8; border-radius: 2px; }
.theater-btn { border-color: var(--rule-strong); border-radius: 2px; }
.cam.theater { background: #141414; color: #f4f1e8; }
.cam.theater .cam-title { color: #f4f1e8; }

/* wallet map and table: dev red, launch buyer graphite, hand-off ink, shared funder amber (view.js reads these vars) */
.graphp svg { background: var(--paper-2); border-radius: 0; }
.k.dev { background: var(--red); } .k.buy { background: var(--blue); } .k.relay { background: var(--violet); } .k.fund { background: var(--amber-fill); }
#graph .edge { stroke: rgb(20 20 20 / .2); }
#graph .relay { stroke: var(--violet); }
#graph .fundedge { stroke: var(--amber-fill); opacity: 1; }
#graph .pin { fill: #f4f1e8; }
.sbar { background: var(--paper-2); border-radius: 0; }
.sbar .s-dev { background: var(--red); } .sbar .s-buy { background: var(--blue); }
.wallets li:nth-child(odd) { background: rgb(20 20 20 / .03); }
.wallets li.dev { background: var(--red-tint); }
.wallets .role { background: var(--paper-2); color: var(--ink-2); border-radius: 2px; }
.wallets .role.dev { background: var(--ink); color: var(--paper); }
.minibar { background: var(--paper-2); border-radius: 0; }
.minibar i { background: var(--blue); } .wallets li.dev .minibar i { background: var(--red); }

/* home sections, recent and library: paper stubs with a torn edge */
.steps li, .scope div, .gloss div { background: var(--paper); border: 1px solid var(--rule); border-radius: 2px; }
.stub { background: var(--paper); border: 0; border-radius: 0; filter: drop-shadow(0 10px 16px rgb(0 0 0 / .35)); font-family: var(--mono); backdrop-filter: none; }
.stub::after { display: block; }
.stub:hover { transform: translateY(-3px) rotate(-0.4deg); border-color: transparent; }
.stub-top { border-bottom: 1.5px dashed var(--rule-strong); }
.stub .sym { font: 600 1.1rem var(--serif); }
.sv.clean { color: var(--ink); }
.skel { background: var(--paper-2); border: 0; border-radius: 0; }
.empty { background: var(--paper); border: 1.5px dashed var(--rule-strong); border-radius: 0; color: var(--ink-2); }
.libbar { background: var(--paper); border: 1px solid var(--rule); border-radius: 2px; }
.fchip { border-radius: 2px; border-color: var(--rule-strong); background: #fffdf7; color: var(--ink-2); font-family: var(--mono); }
.fchip:hover:not(:disabled) { border-color: var(--ink); color: var(--ink); }
.fchip.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.fchip.on .n { color: #c9c4b8; }
.pager { color: var(--ink-2); }
.note { color: var(--ink-3); }
.solo pre { background: var(--paper); color: var(--ink-2); border: 1px solid var(--rule); border-radius: 2px; }
@media (max-width: 760px) { .brand-word { font-size: 22px; } }
@media (max-width: 600px) { body { font-size: 16px; } }
