/* TRICKLE · THE OPEN REGISTER (01-konsep/KONSEP.md)
   The site is the register book itself: full-bleed ruled pages, a copper margin rule with a drop
   that follows the reader, folio labels in the margin, thumb-index tabs on the edge, the newest
   receipt pasted onto the open spread, a dark colophon at the back.
   Palette: ledger paper + copper. Type: Public Sans + IBM Plex Mono. */
:root {
  --paper: #F3EFE4;
  --paper-2: #E8E2D2;
  --paper-3: #DDD5C1;
  --slip: #FBF8F0;
  --ink: #17211D;
  --ink-2: #4D5852;
  --ink-3: #6B746E;          /* pencil: labels not yet inked (4.6:1 on paper) */
  --rule: #C9C1AD;
  --rule-2: #B5AC95;
  --line: rgba(181,172,149,.38);  /* the ruled lines of the page */
  --copper: #B0532A;
  --copper-ink: #9A4622;
  --copper-wash: rgba(176,83,42,.09);
  --copper-soft: rgba(176,83,42,.26);
  --verified: #2E6B4F;
  --verified-wash: rgba(46,107,79,.10);
  --pending: #9A6A00;
  --pending-ink: #805800;
  --pending-wash: rgba(154,106,0,.11);
  --failed: #A2271C;
  --failed-wash: rgba(162,39,28,.09);
  --sans: 'Public Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;
  --margin: 148px;           /* the book's left margin column */
  --edge: 76px;              /* the book's right edge, where the thumb tabs live */
  --ruled: 32px;             /* line pitch of the page */
  --bind-h: 60px;
  --pad: 30px;
  --ease: cubic-bezier(.2,.7,.2,1);
  --ease-out: cubic-bezier(.16,1,.3,1);
  --t-fast: 140ms;
  --t-med: 240ms;
  --lift: 0 1px 0 rgba(23,33,29,.06), 0 2px 3px -1px rgba(23,33,29,.10), 0 12px 20px -12px rgba(23,33,29,.24), 0 40px 70px -34px rgba(23,33,29,.42);
  --lift-sm: 0 1px 0 rgba(23,33,29,.05), 0 3px 8px -4px rgba(23,33,29,.18);
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .09 0 0 0 0 .13 0 0 0 0 .11 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --drop: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 14'%3E%3Cpath d='M5 0C5 0 0 6 0 9a5 5 0 0 0 10 0C10 6 5 0 5 0Z'/%3E%3C/svg%3E");
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--bind-h) + 24px); }
body { margin: 0; color: var(--ink); font: 400 16px/1.55 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden;
  background-color: var(--paper);
  background-image: var(--grain), linear-gradient(to bottom, transparent calc(var(--ruled) - 1px), var(--line) calc(var(--ruled) - 1px), var(--line) var(--ruled));
  background-size: 160px 160px, 100% var(--ruled); }
::selection { background: rgba(176,83,42,.24); color: var(--ink); }
a { color: var(--copper-ink); text-underline-offset: 3px; text-decoration-thickness: 1px; text-decoration-color: rgba(154,70,34,.45); transition: color var(--t-fast) var(--ease), text-decoration-color var(--t-fast) var(--ease); }
a:hover { color: var(--ink); text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--copper); outline-offset: 3px; border-radius: 1px; }
.mono, code, .hash { font-family: var(--mono); font-variant-numeric: tabular-nums slashed-zero; }
code { font-size: .9em; background: var(--paper-2); padding: .1em .35em; border-radius: 2px; border: 1px solid var(--rule); }
.skip { position: absolute; left: -999px; } .skip:focus { left: 12px; top: 12px; background: var(--ink); color: var(--paper); padding: 8px 12px; z-index: 90; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }

/* ---------- SIMULATION band (always first) */
.simband { position: relative; z-index: 51; background: var(--ink); color: var(--paper); font: 500 12px/1.4 var(--mono); letter-spacing: .04em; text-align: center; padding: 8px 16px; }
.simband::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: repeating-linear-gradient(-45deg, var(--copper) 0 6px, transparent 6px 12px); opacity: .75; }
.simband strong { letter-spacing: .16em; }
.sim-tag { display: inline-block; font: 600 10.5px/1 var(--mono); letter-spacing: .14em; color: var(--ink); border: 1.5px solid var(--ink); padding: 4px 7px 3px; border-radius: 2px; vertical-align: .15em; white-space: nowrap;
  background: repeating-linear-gradient(-45deg, transparent 0 4px, rgba(23,33,29,.08) 4px 6px); }
.sim-mini { font: 600 8.5px/1 var(--mono); letter-spacing: .06em; color: var(--ink-2); margin-left: 2px; }

/* ---------- the binding strip (header) aligned to the book grid */
.binding { position: sticky; top: 0; z-index: 50; display: grid; grid-template-columns: var(--margin) auto minmax(0, 1fr) auto; align-items: center; gap: 0 24px; min-height: var(--bind-h); padding-right: calc(var(--edge) + 8px);
  background: rgba(243,239,228,.92); -webkit-backdrop-filter: saturate(1.2) blur(10px); backdrop-filter: saturate(1.2) blur(10px); border-bottom: 1px solid var(--ink); box-shadow: 0 1px 0 rgba(255,255,255,.5) inset, 0 10px 18px -18px rgba(23,33,29,.5); }
.brand { justify-self: center; display: inline-flex; align-items: center; gap: 9px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 22px; letter-spacing: -.035em; }
.brand svg { width: 15px; height: 21px; transition: transform var(--t-med) var(--ease); }
.brand:hover { color: var(--ink); } .brand:hover svg { transform: translateY(2px); }
.b-vol { font: 500 11px/1.2 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); padding-left: 24px; border-left: 1px solid var(--rule-2); white-space: nowrap; }
.runhead { margin: 0; min-width: 0; display: flex; align-items: baseline; gap: 10px; font: 500 12.5px/1.2 var(--mono); white-space: nowrap; overflow: hidden; }
.rh-k { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.rh-n { color: var(--copper-ink); font-weight: 600; }
.rh-t { color: var(--ink); overflow: hidden; text-overflow: ellipsis; display: inline-block; }
.runhead.flip .rh-n, .runhead.flip .rh-t { animation: rh-in .38s var(--ease-out); }
@keyframes rh-in { from { opacity: 0; transform: translateY(7px); } }
.b-right { display: flex; align-items: center; gap: 16px; font-size: 13px; }
.b-right a { font-weight: 500; white-space: nowrap; }
.ca-chip { font: 500 12px/1 var(--mono); border: 1px dashed var(--ink-2); padding: 7px 9px; border-radius: 2px; color: var(--ink-2); background: rgba(255,255,255,.35); white-space: nowrap; }
.motto { font-size: 12px; color: var(--ink-2); padding-left: 16px; border-left: 1px solid var(--rule); white-space: nowrap; }

/* ---------- thumb index on the edge of the book (landing: folios; receipt: entries) */
.thumbs, .page-receipt .ep-nav { position: fixed; z-index: 45; right: 0; top: calc(50% + var(--bind-h) / 2); transform: translateY(-50%); display: flex; flex-direction: column; gap: 3px; margin: 0; padding: 0; border: 0; background: none; box-shadow: none; width: auto; }
.thumbs a, .page-receipt .ep-nav > * { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; width: 58px; padding: 12px 0 14px; text-decoration: none; color: var(--ink-2);
  background: var(--paper-2) var(--grain); border: 1px solid var(--rule-2); border-right: 0; border-radius: 6px 0 0 6px; box-shadow: -2px 2px 6px -4px rgba(23,33,29,.35);
  transform: translateX(8px); transition: transform var(--t-med) var(--ease-out), background-color var(--t-fast), color var(--t-fast); }
.thumbs b { font: 700 12px/1 var(--mono); letter-spacing: .04em; color: var(--ink); }
.thumbs span { writing-mode: vertical-rl; transform: rotate(180deg); font: 500 10.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
.thumbs a:hover, .page-receipt .ep-nav a:hover { transform: translateX(2px); color: var(--ink); background-color: #EFE3D2; }
.thumbs a.on, .page-receipt .ep-nav .cur { transform: translateX(-10px); background-color: var(--ink); color: var(--paper); border-color: var(--ink); box-shadow: -6px 6px 14px -8px rgba(23,33,29,.55); }
.thumbs a.on b { color: var(--copper); }
.thumbs a.on::before, .page-receipt .ep-nav .cur::before { content: ""; position: absolute; left: 7px; top: 7px; width: 5px; height: 7px; background: var(--copper); -webkit-mask: var(--drop) center / contain no-repeat; mask: var(--drop) center / contain no-repeat; }
.thumbs a.read:not(.on) b { color: var(--copper-ink); }
.page-receipt .ep-nav > * { font: 700 13px/1 var(--mono); padding: 18px 0; color: var(--ink); }
.page-receipt .ep-nav::before { content: "ENTRIES"; writing-mode: vertical-rl; transform: rotate(180deg); align-self: center; font: 600 9.5px/1 var(--mono); letter-spacing: .2em; color: var(--ink-3); margin-bottom: 8px; }

/* ---------- the book: folios on a grid of margin | page | edge */
.book { position: relative; display: block; }
.rail { position: absolute; z-index: 3; top: 0; bottom: 0; left: calc(var(--margin) - 1px); width: 2px; background: var(--copper-soft); pointer-events: none; }
.rail::after { content: ""; position: absolute; top: 0; bottom: 0; left: 5px; width: 1px; background: var(--copper-soft); } /* the double margin rule */
.rail-fill { position: absolute; left: 0; top: 0; width: 2px; height: 100%; background: var(--copper); transform-origin: 0 0; transform: scaleY(0); will-change: transform; }
.rail-drop { position: absolute; z-index: 4; top: -16px; left: -6px; width: 14px; height: 20px; background: var(--copper); -webkit-mask: var(--drop) center / contain no-repeat; mask: var(--drop) center / contain no-repeat;
  transform-origin: 50% 0; filter: drop-shadow(0 2px 2px rgba(23,33,29,.25)); opacity: 0; transition: opacity .4s; }
.js .rail-drop.live { opacity: 1; }
.no-js .rail-fill, html:not(.js) .rail-fill { transform: scaleY(1); }
.folio { position: relative; display: grid; grid-template-columns: var(--margin) minmax(0, 1fr) var(--edge); border-bottom: 1px solid var(--rule-2); }
.f-margin { grid-column: 1; position: relative; }
.f-tag { position: sticky; top: calc(var(--bind-h) + 30px); display: grid; justify-items: end; gap: 6px; padding: 92px 22px 0 12px; text-align: right; }
.f-tag b { font: 700 26px/1 var(--mono); letter-spacing: -.03em; color: var(--rule-2); transition: color .5s var(--ease); }
.f-tag span { font: 500 10.5px/1.25 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); max-width: 100px; transition: color .5s var(--ease); }
.f-tag::after { content: ""; position: absolute; right: -6px; top: 98px; width: 10px; height: 10px; border-radius: 50%; background: var(--paper); border: 2px solid var(--copper-soft); transition: background-color .4s var(--ease), border-color .4s; }
.folio.read .f-tag b { color: var(--copper); }
.folio.read .f-tag span { color: var(--ink); }
.folio.read .f-tag::after { background: var(--copper); border-color: var(--copper); }
.f-page { grid-column: 2; min-width: 0; padding: 88px 56px 104px 48px; }
.f-head { display: grid; grid-template-columns: auto auto 1fr; align-items: baseline; gap: 10px 16px; margin-bottom: 34px; max-width: 1080px; }
.f-head .sec-sub { grid-column: 1 / -1; }
h2 { font-size: clamp(30px, 3.4vw, 44px); letter-spacing: -.032em; line-height: 1.04; margin: 0; font-weight: 800; }
h3 { font-size: 18px; margin: 0 0 8px; letter-spacing: -.012em; line-height: 1.3; font-weight: 700; }
.sec-sub { color: var(--ink-2); margin: 6px 0 0; max-width: 46em; font-size: 16.5px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 500 12px/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--copper-ink); margin: 0 0 18px; }
.eyebrow::before { content: ""; width: 22px; height: 1.5px; background: var(--copper); flex: none; }
.mini-h { font: 600 11.5px/1.2 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink); margin: 0; }
.mini-note { font-size: 13px; color: var(--ink-2); margin: 8px 0 0; }

/* scroll reveal (JS only; final state without JS or with reduced motion) */
.js .rv { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); transition-delay: var(--rv-d, 0s); }
.js .rv.in { opacity: 1; transform: none; }

/* ---------- FOLIO 01 · the open spread */
.f-hero { border-bottom: 1px solid var(--ink); overflow: clip; }
.f-hero .f-page { padding-top: 56px; padding-bottom: 84px; }
.spread { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 0; align-items: start; }
.spread::before { content: ""; position: absolute; top: -56px; bottom: -84px; left: calc(5 / 12 * 100%); width: 90px; transform: translateX(-50%); pointer-events: none;
  background: linear-gradient(to right, transparent, rgba(23,33,29,.07) 42%, rgba(23,33,29,.16) 50%, rgba(255,255,255,.35) 52%, rgba(23,33,29,.05) 60%, transparent); }  /* the gutter fold */
.verso { padding-right: 64px; position: relative; z-index: 1; }
.recto { padding-left: 64px; position: relative; z-index: 1; }
.entry-no { margin: 0 0 6px; display: flex; align-items: flex-end; gap: 14px; line-height: .8; }
.en-k { font: 600 12px/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--copper-ink); padding-bottom: 14px; writing-mode: vertical-rl; transform: rotate(180deg); }
.en-n { font: 600 clamp(96px, 11vw, 176px)/.8 var(--mono); letter-spacing: -.07em; color: var(--copper); margin-left: -.04em; position: relative;
  background: linear-gradient(to top, var(--copper) 50%, transparent 50%) 0 0 / 100% 200% no-repeat; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; -webkit-text-stroke: 1.5px var(--copper);
  background-position: 0 100%; }
.js .en-n.inking { animation: ink-fill 1.6s .35s var(--ease-out) both; }
@keyframes ink-fill { from { background-position: 0 0; } to { background-position: 0 100%; } }
h1 { font-size: clamp(36px, 4.4vw, 60px); line-height: 1.0; letter-spacing: -.042em; font-weight: 800; margin: 18px 0 22px; }
.ink-line { display: block; color: var(--ink); background: linear-gradient(transparent 82%, var(--copper-soft) 82%, var(--copper-soft) 94%, transparent 94%) no-repeat 0 0 / 100% 100%; }
.js .ink-line { background-size: 0 100%; animation: underline 1.1s 1.2s var(--ease-out) forwards; }
@keyframes underline { to { background-size: 100% 100%; } }
.lede { font-size: 17.5px; line-height: 1.6; color: var(--ink-2); max-width: 31em; margin: 0 0 26px; }
.inks { list-style: none; padding: 0; margin: 0 0 18px; display: grid; font-size: 14px; border-top: 2px solid var(--ink); }
.inks li { display: flex; gap: 12px; align-items: center; min-height: var(--ruled); padding: 6px 0; border-bottom: 1px solid var(--rule-2); }
.inks strong { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; margin-right: 6px; }
.ink-v strong { color: var(--verified); } .ink-p strong { color: var(--pending-ink); } .ink-f strong { color: var(--failed); }
.inks .dot { width: 20px; height: 20px; font-size: 11px; }
.howto { font-size: 13.5px; line-height: 1.6; color: var(--ink-2); margin-top: 14px; }
.howto em { font-style: normal; font-family: var(--mono); font-size: 12.5px; color: var(--ink); background: rgba(255,255,255,.45); border: 1px solid var(--rule); padding: 0 5px; border-radius: 2px; }
.recto-cap { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 6px 0 18px; font: 500 11px/1.2 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.recto-cap > span:first-child::before { content: "↓ "; color: var(--copper); }

/* live chain box: a footnote at the foot of the verso */
.live { position: relative; margin-top: 26px; padding: 12px 0 0; border-top: 1px solid var(--ink); font-size: 13px; color: var(--ink-2); display: flex; flex-wrap: wrap; gap: 5px 10px; align-items: baseline; }
.live::before { content: "*"; position: absolute; left: -18px; top: 10px; font: 700 15px/1 var(--mono); color: var(--copper); }
.live-title { width: 100%; display: flex; align-items: center; gap: 8px; font: 600 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink); margin-bottom: 6px; }
.live-title::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--rule-2); flex: none; }
.live[data-state="ok"] .live-title::before { background: var(--verified); box-shadow: 0 0 0 3px var(--verified-wash); animation: beat 2.4s var(--ease) infinite; }
.live[data-state="off"] .live-title::before, .live[data-state="bad"] .live-title::before { background: var(--pending); }
.live[data-state="ok"] .live-title::after { content: "✓"; color: var(--verified); }
.live-k { font: 500 10.5px/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2); }
.live .mono { color: var(--ink); font-size: 13.5px; font-weight: 500; }
.live-at { width: 100%; font-size: 12px; margin-top: 2px; }
@keyframes beat { 0%, 100% { box-shadow: 0 0 0 3px var(--verified-wash); } 50% { box-shadow: 0 0 0 6px rgba(46,107,79,0); } }

/* pasted receipt: printed, then pressed onto the page with paper tape */
.pasted { position: relative; transform: rotate(-.6deg); transform-origin: 50% 0; }
.tape { position: absolute; z-index: 3; top: -12px; width: 108px; height: 30px; background: rgba(226,214,184,.78) var(--grain); box-shadow: 0 1px 2px rgba(23,33,29,.14); pointer-events: none;
  -webkit-mask: linear-gradient(90deg, transparent 0 2px, #000 2px calc(100% - 2px), transparent calc(100% - 2px)); }
.tape-l { left: 7%; transform: rotate(-5deg); } .tape-r { right: 7%; transform: rotate(4deg); }
.js .printing .receipt { animation: print 1.05s var(--ease-out) both; }
.js .pasted:has(.printing) .tape { animation: tape-on .45s 1s var(--ease-out) both; }
@keyframes print { 0% { opacity: 0; transform: translateY(-36px); clip-path: inset(0 0 100% 0); } 70% { opacity: 1; clip-path: inset(0 0 0 0); transform: translateY(3px); } 100% { opacity: 1; transform: none; clip-path: inset(-20px -20px -20px -20px); } }
@keyframes tape-on { from { opacity: 0; transform: translateY(-10px) rotate(0deg) scale(1.08); } }
/* every 30s re-check: the stamp is pressed again, the check time flashes copper */
.rechecked .r-head .st { animation: restamp .7s var(--ease-out); }
.rechecked [data-lastchecked] { animation: flash 1.4s var(--ease); }
.rechecked .pulse { animation: drip-fast .9s var(--ease) 1; }
@keyframes restamp { 0% { transform: scale(1); } 30% { transform: scale(1.12) rotate(-2deg); box-shadow: 0 0 0 6px var(--copper-wash); } 60% { transform: scale(.97); } 100% { transform: none; } }
@keyframes flash { 0%, 100% { background: transparent; } 20% { background: rgba(176,83,42,.28); color: var(--ink); } }
@keyframes drip-fast { 0% { transform: translateY(-6px) scale(.6); opacity: 0; } 60% { transform: translateY(1px) scale(1.15); opacity: 1; } 100% { transform: none; } }

/* ---------- status: chips and dots */
.st { display: inline-flex; align-items: center; gap: 6px; font: 700 11px/1 var(--mono); letter-spacing: .13em; padding: 6px 9px 5px; border: 1.5px solid currentColor; border-radius: 2px; white-space: nowrap; }
.st > span[aria-hidden] { font-size: 12px; }
.st-verified { color: var(--verified); background: var(--verified-wash); }
.st-pending { color: var(--pending-ink); background: var(--pending-wash); }
.st-failed { color: var(--failed); background: var(--failed-wash); }
.st-accrued { color: var(--ink-2); background: rgba(77,88,82,.07); border-style: dashed; }
.r-head .st, #rp-status .st { color: var(--paper); border-color: transparent; padding: 8px 11px 7px; font-size: 12px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.18), 0 2px 6px -3px rgba(23,33,29,.5); }
.r-head .st-verified, #rp-status .st-verified { background: var(--verified); }
.r-head .st-pending, #rp-status .st-pending { background: var(--pending-ink); }
.r-head .st-failed, #rp-status .st-failed { background: var(--failed); }
.dot { display: inline-grid; place-items: center; width: 22px; height: 22px; font: 700 12px/1 var(--mono); border: 1.5px solid currentColor; border-radius: 50%; flex: none; }
.dot-verified { color: var(--paper); background: var(--verified); border-color: var(--verified); }
.dot-pending { color: var(--pending-ink); background: var(--pending-wash); }
.dot-failed { color: var(--paper); background: var(--failed); border-color: var(--failed); }

/* ---------- the receipt slip (markup from trickle.js T.card) */
.receipt { --edge: var(--paper); position: relative; background: var(--slip) var(--grain); padding: var(--pad) var(--pad) 24px; box-shadow: var(--lift); margin: 10px 0; font-family: var(--mono); font-variant-numeric: tabular-nums slashed-zero; }
.receipt::before, .receipt::after { content: ""; position: absolute; left: 0; right: 0; height: 12px; pointer-events: none;
  background: radial-gradient(circle at 7px 6px, var(--edge) 5px, transparent 5.6px) 0 0 / 14px 12px repeat-x; }
.receipt::before { top: -6px; } .receipt::after { bottom: -6px; }
.r-stamp { position: absolute; right: 22px; top: 92px; transform: rotate(-9deg); font: 700 22px/1 var(--mono); letter-spacing: .2em; color: rgba(77,88,82,.40); border: 3px double rgba(77,88,82,.36); border-radius: 3px; padding: 9px 11px 7px; pointer-events: none; user-select: none; mix-blend-mode: multiply;
  -webkit-mask-image: radial-gradient(circle at 30% 40%, #000 55%, rgba(0,0,0,.7) 75%, #000 100%); mask-image: radial-gradient(circle at 30% 40%, #000 55%, rgba(0,0,0,.7) 75%, #000 100%); }
.js .printing .r-stamp { animation: stamp-in .5s 1.15s var(--ease-out) both; }
@keyframes stamp-in { from { opacity: 0; transform: rotate(-9deg) scale(1.6); } 70% { opacity: 1; transform: rotate(-9deg) scale(.96); } to { transform: rotate(-9deg); } }
.r-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; border-bottom: 2px solid var(--ink); padding-bottom: 14px; }
.r-title { font-weight: 600; font-size: 13.5px; letter-spacing: .14em; display: inline-flex; align-items: center; gap: 10px; }
.r-title::before { content: ""; width: 9px; height: 13px; flex: none; background: var(--copper); -webkit-mask: var(--drop) center / contain no-repeat; mask: var(--drop) center / contain no-repeat; }
.r-simline { margin: 12px 0 0; font-size: 12px; color: var(--ink-2); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.r-big { padding: 22px 0 18px; display: grid; gap: 8px; }
.r-big-num { font: 600 clamp(46px, 5.6vw, 76px)/.95 var(--mono); letter-spacing: -.045em; color: var(--ink); display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 .28em; }
.r-big-frac { color: var(--ink-2); font-weight: 500; }
.r-big-unit { color: var(--copper); font-size: .46em; font-weight: 600; letter-spacing: .02em; align-self: flex-start; margin-top: .22em; }
.r-big-cap { font-family: var(--sans); font-size: 15.5px; color: var(--ink-2); }
.r-big-cap strong { color: var(--ink); font-family: var(--mono); font-weight: 600; }
.r-tally { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ink); border-bottom: 2px dashed var(--rule); }
.r-tally > div { display: grid; gap: 3px; padding: 10px 12px 11px; }
.r-tally > div + div { border-left: 1px dotted var(--rule-2); }
.r-tally b { font: 600 24px/1 var(--mono); letter-spacing: -.02em; }
.r-tally span { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.r-tally .t-verified b { color: var(--verified); } .r-tally .t-pending b { color: var(--pending-ink); } .r-tally .t-failed b { color: var(--failed); }
.r-tally .is-zero b { color: var(--rule-2); }
.r-tally .t-failed:not(.is-zero) { background: var(--failed-wash); } .r-tally .t-pending:not(.is-zero) { background: var(--pending-wash); }
.r-colhead { display: grid; grid-template-columns: 124px 1fr 22px; gap: 12px; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); padding: 14px 8px 6px; }
.r-colhead span:last-child { text-align: right; }
.rline { border-bottom: 1px dotted var(--rule-2); }
.js .printing .rline { animation: line-in .5s var(--ease-out) both; }
.js .printing .rline:nth-child(1) { animation-delay: .55s; } .js .printing .rline:nth-child(2) { animation-delay: .6s; } .js .printing .rline:nth-child(3) { animation-delay: .65s; }
.js .printing .rline:nth-child(4) { animation-delay: .7s; } .js .printing .rline:nth-child(5) { animation-delay: .75s; } .js .printing .rline:nth-child(6) { animation-delay: .8s; }
.js .printing .rline:nth-child(7) { animation-delay: .85s; } .js .printing .rline:nth-child(8) { animation-delay: .9s; } .js .printing .rline:nth-child(9) { animation-delay: .95s; }
.js .printing .rline:nth-child(10) { animation-delay: 1s; } .js .printing .rline:nth-child(11) { animation-delay: 1.05s; }
@keyframes line-in { from { opacity: 0; clip-path: inset(0 100% 0 0); } to { opacity: 1; clip-path: inset(0 0 0 0); } }
.rline > summary { list-style: none; display: grid; grid-template-columns: 124px 1fr 22px; gap: 12px; align-items: center; padding: 11px 8px; cursor: pointer; border-radius: 2px; transition: background-color var(--t-fast) var(--ease); }
.rline > summary::-webkit-details-marker { display: none; }
.rline > summary:hover { background: var(--copper-wash); }
.rline > summary:hover .rl-label { color: var(--copper-ink); }
.rline > summary:active { background: rgba(176,83,42,.15); }
.rl-label { font-size: 12.5px; color: var(--ink-2); display: flex; align-items: center; gap: 8px; transition: color var(--t-fast) var(--ease); }
.rl-label::before { content: ""; width: 6px; height: 6px; flex: none; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(-45deg); transition: transform var(--t-med) var(--ease); opacity: .7; }
.rline[open] > summary .rl-label::before { transform: rotate(45deg) translate(-2px, -1px); }
.rline[open] > summary { background: rgba(23,33,29,.035); }
.rl-val { display: grid; gap: 2px; min-width: 0; }
.rl-main { font-size: 15px; font-weight: 500; color: var(--ink); overflow-wrap: anywhere; }
.rl-sub { font-size: 11.5px; color: var(--ink-2); overflow-wrap: anywhere; }
.rline-failed > summary { background: linear-gradient(90deg, var(--failed-wash), transparent 75%); box-shadow: inset 3px 0 0 var(--failed); }
.rline-pending > summary { box-shadow: inset 3px 0 0 var(--pending); }
.rline-failed .rl-main { color: var(--failed); }
.rl-checks { padding: 4px 8px 14px 144px; }
.rline.anim[open] .rl-checks { animation: unfold var(--t-med) var(--ease); }
@keyframes unfold { from { opacity: 0; transform: translateY(-4px); } }
.rl-checks ul { list-style: none; margin: 0 0 10px; padding: 0 0 0 14px; display: grid; gap: 9px; border-left: 1px solid var(--rule); }
.rline.anim[open] .ck { animation: tick .32s var(--ease-out) both; }
.rline.anim[open] .ck:nth-child(2) { animation-delay: .05s; } .rline.anim[open] .ck:nth-child(3) { animation-delay: .1s; } .rline.anim[open] .ck:nth-child(4) { animation-delay: .15s; }
.rline.anim[open] .ck:nth-child(5) { animation-delay: .2s; } .rline.anim[open] .ck:nth-child(6) { animation-delay: .25s; } .rline.anim[open] .ck:nth-child(n+7) { animation-delay: .3s; }
@keyframes tick { from { opacity: 0; transform: translateX(-6px); } }
.ck { display: grid; grid-template-columns: 20px 1fr; gap: 3px 10px; font-size: 12px; align-items: start; }
.ck .dot { width: 18px; height: 18px; font-size: 10px; grid-row: 1 / span 2; }
.ck-kind { grid-column: 2; font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.ck-text { grid-column: 2; color: var(--ink); font-family: var(--sans); font-size: 13px; line-height: 1.45; }
.ck-note { display: block; font-style: normal; color: var(--failed); margin-top: 3px; }
.ck-pending .ck-note { color: var(--pending-ink); }
.tx-note { white-space: normal; max-width: 28em; margin-top: 6px; font-size: 12px; font-family: var(--sans); }
.tx-note-pending { color: var(--pending-ink); }
.rl-src { font-size: 12px; font-weight: 500; }
.r-foot { padding-top: 2px; font-size: 12px; color: var(--ink-2); }
.r-perf { position: relative; border-top: 2px dashed var(--rule-2); margin: 18px calc(var(--pad) * -1) 14px; }
.r-perf::before, .r-perf::after { content: ""; position: absolute; top: -9px; width: 16px; height: 16px; border-radius: 50%; background: var(--edge); box-shadow: inset 0 2px 3px rgba(23,33,29,.14); }
.r-perf::before { left: -8px; } .r-perf::after { right: -8px; }
.r-foot p { margin: 0 0 7px; }
.r-foot a { font-weight: 500; }
.r-refresh { display: flex; align-items: center; gap: 8px; padding-top: 4px; }
[data-lastchecked] { padding: 0 3px; border-radius: 2px; }
.pulse { width: 7px; height: 9px; background: var(--copper); -webkit-mask: var(--drop) center / contain no-repeat; mask: var(--drop) center / contain no-repeat; animation: drip 2.4s ease-in-out infinite; }
@keyframes drip { 0%, 100% { opacity: .35; transform: translateY(-1px) scale(.85); } 50% { opacity: 1; transform: translateY(1px) scale(1); } }

/* ---------- FOLIO 02 · the register */
.forward { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 2px solid var(--ink); border-bottom: 1px solid var(--ink); margin: 0 0 30px; background: rgba(251,248,240,.55); }
.fw-cell { position: relative; display: grid; gap: 6px; padding: 16px 20px 18px; min-width: 0; }
.fw-cell + .fw-cell { border-left: 1px solid var(--rule-2); }
.fw-cell::before { content: "c/f"; position: absolute; right: 12px; top: 12px; font: 500 9.5px/1 var(--mono); letter-spacing: .1em; color: var(--ink-3); }
.fw-k { font: 600 10.5px/1.2 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.fw-v { font: 600 clamp(26px, 2.6vw, 38px)/1 var(--mono); letter-spacing: -.04em; color: var(--ink); font-variant-numeric: tabular-nums slashed-zero; overflow-wrap: anywhere; }
.fw-v small { font-size: .45em; color: var(--copper); letter-spacing: .02em; margin-left: .25em; font-weight: 600; }
.fw-s { font-size: 12.5px; color: var(--ink-2); }
.table-wrap { overflow-x: auto; background: var(--slip); border: 1px solid var(--rule); border-top: 3px solid var(--ink); box-shadow: var(--lift-sm); }
.ledger-sheet { position: relative; background: var(--slip) var(--grain); }
table.reg { width: 100%; border-collapse: collapse; font: 400 14px/1.35 var(--mono); font-variant-numeric: tabular-nums slashed-zero; }
.reg th { text-align: left; font-weight: 600; font-size: 10px; letter-spacing: .13em; text-transform: uppercase; color: var(--ink-2); padding: 12px 14px 11px; background: var(--paper-2); border-bottom: 1px solid var(--ink); white-space: nowrap; }
.reg td { padding: 14px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; transition: background-color var(--t-fast) var(--ease); }
.reg th + th, .reg td + td { border-left: 1px solid rgba(176,83,42,.14); } /* ledger column rules */
.reg tbody tr:last-child td { border-bottom: 0; }
#reg td { font-size: 15px; padding-top: 17px; padding-bottom: 17px; }
#reg td.c-closed { font-size: 13px; color: var(--ink-2); }
#reg tbody tr { cursor: pointer; }
#reg tbody tr td:first-child { box-shadow: inset 0 0 0 var(--copper); transition: box-shadow var(--t-med) var(--ease), background-color var(--t-fast) var(--ease); }
#reg tbody tr:hover td, #reg tbody tr:focus-visible td { background: #F1E4D6; }
#reg tbody tr:hover td:first-child, #reg tbody tr:focus-visible td:first-child { box-shadow: inset 4px 0 0 var(--copper); }
#reg tbody tr:focus-visible { outline: 2px solid var(--copper); outline-offset: -2px; }
#reg tbody tr:active td { background: #EBD8C6; }
#reg .c-link a { text-decoration: none; font-weight: 500; display: inline-block; transition: transform var(--t-med) var(--ease), color var(--t-fast); }
#reg tbody tr:hover .c-link a { transform: translateX(3px); color: var(--ink); }
.reg .num { text-align: right; }
.reg td.ep { font-weight: 700; font-size: 17px !important; }
.reg tr.is-latest td.ep::after { content: "LATEST"; margin-left: 10px; font: 600 9.5px/1 var(--mono); letter-spacing: .14em; color: var(--paper); background: var(--copper-ink); padding: 3px 5px 2px; border-radius: 2px; vertical-align: .2em; }
.reg tr.is-latest td { background: rgba(176,83,42,.06); }
.reg .st { padding: 5px 7px 4px; font-size: 10.5px; }
/* rows are written in, left to right, one after another, the first time the register is seen */
.js #reg.writing tbody tr { animation: write .7s var(--ease-out) both; }
.js #reg.writing tbody tr:nth-child(2) { animation-delay: .14s; } .js #reg.writing tbody tr:nth-child(3) { animation-delay: .28s; }
.js #reg.writing tbody tr:nth-child(4) { animation-delay: .42s; } .js #reg.writing tbody tr:nth-child(5) { animation-delay: .56s; }
.js #reg.writing tbody tr:nth-child(n+6) { animation-delay: .7s; }
.js #reg.pre tbody tr { opacity: 0; }
@keyframes write { from { opacity: .0; clip-path: inset(0 100% 0 0); } 30% { opacity: 1; } to { opacity: 1; clip-path: inset(0 0 0 0); } }
.reg-foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px; color: var(--ink-2); margin-top: 14px; }
.reg-lower { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; margin-top: 56px; align-items: start; }
.running { margin: 0; }
.running figcaption { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.run-chart { position: relative; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--ink); background: rgba(251,248,240,.5); }
.run-chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.rc-grid line { stroke: var(--line); stroke-width: 1; }
.rc-line { fill: none; stroke: var(--copper); stroke-width: 2.25; stroke-linecap: round; stroke-linejoin: round; }
.rc-area { fill: url(#rc-wash); }
.js .run-chart:not(.drawn) .rc-line { stroke-dashoffset: var(--len); }
.rc-line { stroke-dasharray: var(--len) var(--len); transition: stroke-dashoffset 1.8s var(--ease-out); }
.js .run-chart:not(.drawn) .rc-area, .js .run-chart:not(.drawn) .rc-pt { opacity: 0; }
.rc-area, .rc-pt { transition: opacity .6s 1.2s var(--ease); }
.rc-pt circle { fill: var(--slip); stroke: var(--copper); stroke-width: 2; transition: r var(--t-med) var(--ease); }
.rc-pt:hover circle, .rc-pt:focus-visible circle { fill: var(--copper); r: 7; }
.rc-pt text, .rc-ax text { font: 500 11px var(--mono); fill: var(--ink-2); }
.rc-pt .rc-v { fill: var(--ink); font-weight: 600; font-size: 12px; }
.rc-pt.failed circle { stroke: var(--failed); } .rc-pt.pending circle { stroke: var(--pending); stroke-dasharray: 3 2; }
.findline { border-top: 2px solid var(--ink); padding-top: 14px; }
.find-form { display: flex; gap: 8px; margin-top: 14px; }
.find-form input { flex: 1; min-width: 0; height: 44px; font: 500 14px var(--mono); color: var(--ink); background: var(--slip); border: 1.5px solid var(--ink); border-radius: 2px; padding: 0 12px;
  background-image: linear-gradient(to right, var(--copper-soft) 1px, transparent 1px); background-size: 0 100%; transition: border-color var(--t-fast), box-shadow var(--t-fast); }
.find-form input:focus { outline: none; border-color: var(--copper); box-shadow: 0 0 0 3px var(--copper-wash); }
.find-form input::placeholder { color: var(--ink-3); }
.linkbtn { margin-top: 10px; background: none; border: 0; padding: 6px 0; min-height: 32px; font: 500 13px var(--sans); color: var(--copper-ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(154,70,34,.45); cursor: pointer; }
.linkbtn:hover { color: var(--ink); }
.find-out { margin-top: 14px; }
.find-out .msg { font-size: 13.5px; color: var(--ink-2); margin: 0; }
.find-out ol { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.find-out li { display: grid; grid-template-columns: 52px 1fr auto; gap: 4px 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); font: 400 13px/1.35 var(--mono); animation: line-in .45s var(--ease-out) both; }
.find-out li:nth-child(2) { animation-delay: .07s; } .find-out li:nth-child(3) { animation-delay: .14s; } .find-out li:nth-child(n+4) { animation-delay: .21s; }
.find-out li b { font-size: 15px; }
.find-out .fo-sum { font: 500 12px var(--mono); color: var(--ink-2); margin: 10px 0 0; }

/* ---------- FOLIO 03 · chapters with a pinned specimen */
.chapters { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 72px; max-width: 1240px; }
.chapter { min-height: min(62vh, 600px); padding: 8px 0 64px; transition: opacity .5s var(--ease); }
.js .chapters .chapter:not(.on) { opacity: .38; }
.chapter:last-child { min-height: min(46vh, 440px); }
.ch-n { display: flex; align-items: center; gap: 12px; font: 600 12px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--copper-ink); margin: 0 0 16px; }
.ch-n i { width: 44px; height: 1.5px; background: var(--copper); transform-origin: left; transform: scaleX(.4); transition: transform .6s var(--ease-out); }
.chapter.on .ch-n i { transform: scaleX(1); }
.chapter h3 { font-size: clamp(22px, 2.2vw, 30px); letter-spacing: -.025em; line-height: 1.12; font-weight: 800; margin-bottom: 14px; }
.chapter p { color: var(--ink-2); font-size: 16px; max-width: 34em; }
.ch-proof { font: 400 12.5px/1.6 var(--mono); color: var(--ink-2) !important; border-top: 1px dashed var(--rule-2); padding-top: 12px; margin-top: 18px; }
.ch-proof strong { color: var(--ink); font-weight: 600; }
.ch-pin { position: sticky; top: calc(var(--bind-h) + 36px); align-self: start; }
.specimen { position: relative; background: var(--slip) var(--grain); box-shadow: var(--lift); padding: 22px 24px 18px; font-family: var(--mono); }
.specimen::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 12px; background: radial-gradient(circle at 7px 6px, var(--paper) 5px, transparent 5.6px) 0 0 / 14px 12px repeat-x; }
.sp-head { display: flex; justify-content: space-between; align-items: center; margin: 0 0 12px; padding-bottom: 12px; border-bottom: 2px solid var(--ink); font: 600 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.sp-lines { list-style: none; margin: 0; padding: 0; counter-reset: sp; }
.sp-lines li { position: relative; display: grid; grid-template-columns: 26px 112px 1fr 22px; gap: 10px; align-items: center; padding: 8px 6px; border-bottom: 1px dotted var(--rule-2); counter-increment: sp; transition: opacity .45s var(--ease), background-color .45s var(--ease); }
.sp-lines li::before { content: counter(sp, decimal-leading-zero); font-size: 10.5px; color: var(--ink-3); }
.sp-lines li.sp-wait { display: block; color: var(--ink-2); font-size: 13px; }
.sp-lines li.sp-wait::before { content: none; }
.sp-k { font-size: 12px; color: var(--ink-2); }
.sp-v { font-size: 13.5px; font-weight: 500; overflow-wrap: anywhere; }
.sp-lines .dot { width: 18px; height: 18px; font-size: 10px; }
.specimen[data-ch] .sp-lines li:not(.hot) { opacity: .32; }
.sp-lines li.hot { background: var(--copper-wash); box-shadow: inset 3px 0 0 var(--copper); }
.sp-lines li.hot.sp-failed { background: var(--failed-wash); box-shadow: inset 3px 0 0 var(--failed); }
.sp-lines li.hot .sp-k { color: var(--ink); }
.sp-open { display: inline-block; margin-top: 14px; font: 500 12.5px var(--mono); }
.ch-tabs { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 24px; border-top: 1px solid var(--rule-2); }
.ch-tabs a { position: relative; padding: 12px 4px 4px; font: 500 11.5px/1.3 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); text-decoration: none; transition: color var(--t-med); }
.ch-tabs a::before { content: ""; position: absolute; left: 0; right: 0; top: -2px; height: 3px; background: var(--copper); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease-out); }
.ch-tabs a.on { color: var(--ink); } .ch-tabs a.on::before { transform: scaleX(1); }
.ch-tabs a:hover { color: var(--copper-ink); }

/* ---------- FOLIO 04 + receipt page: flow bars */
.went { max-width: 1080px; }
.flow { display: grid; gap: 30px; margin-top: 6px; padding: 28px 28px 24px; background: var(--slip) var(--grain); border: 1px solid var(--rule); border-top: 3px solid var(--ink); box-shadow: var(--lift-sm); }
.bar { display: flex; height: 26px; background: var(--paper-2); border: 1px solid var(--ink); overflow: hidden; }
.bar span { display: block; height: 100%; min-width: 2px; transform-origin: left; }
.js .flow:not(.filled) .bar span { transform: scaleX(0); }
.bar span { transition: transform 1.1s var(--ease-out); }
.bar span:nth-child(2) { transition-delay: .18s; } .bar span:nth-child(3) { transition-delay: .36s; }
.bar span + span { border-left: 2px solid var(--slip); }
.seg-gas { background: var(--ink-2); } .seg-buy { background: var(--copper); }
.seg-paid { background: var(--copper); } .seg-acc { background: repeating-linear-gradient(-45deg, var(--ink-2) 0 3px, var(--paper-2) 3px 6px); } .seg-carry { background: var(--rule-2); }
.bar-legend { display: flex; flex-wrap: wrap; gap: 6px 26px; font: 400 12.5px/1.4 var(--mono); color: var(--ink-2); margin-top: 12px; }
.bar-legend i { display: inline-block; width: 11px; height: 11px; margin-right: 7px; vertical-align: -1px; border: 1px solid var(--ink); }
.bar-title { font: 600 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; margin-bottom: 12px; }
.went-foot { margin-top: 16px; font: 500 13px var(--mono); }

/* ---------- FOLIO 05 · audit notes */
.audit { display: grid; grid-template-columns: 1fr 1fr; gap: 0; max-width: 1240px; border-top: 2px solid var(--ink); }
.audit-col { padding: 22px 36px 8px 0; }
.audit-col + .audit-col { padding: 22px 0 8px 36px; border-left: 1px solid var(--rule-2); }
.audit-col h3 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 18px; margin-bottom: 10px; }
.audit-col h3 small { font: 500 11px var(--mono); color: var(--ink-2); letter-spacing: .06em; }
.notes { list-style: none; margin: 0; padding: 0; counter-reset: n; }
.notes li { position: relative; display: grid; grid-template-columns: 36px 1fr; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; counter-increment: n; }
.notes li::before { content: counter(n, decimal-leading-zero); font: 600 11px/1.9 var(--mono); color: var(--ink-3); }
.audit-proven .notes li::before { content: "✓ " counter(n, decimal-leading-zero); color: var(--verified); }
.audit-sim .notes li::before { content: "~ " counter(n, decimal-leading-zero); }
.notes li small { display: block; color: var(--ink-2); font-size: 13px; margin-top: 3px; }
.audit-sim { background: repeating-linear-gradient(-45deg, transparent 0 12px, rgba(23,33,29,.018) 12px 14px); }
.blanks { margin-top: 28px; padding-top: 16px; border-top: 2px solid var(--ink); }
.blanks h3 small { font: 400 12px var(--sans); color: var(--ink-2); letter-spacing: 0; }
.blanks dl { margin: 8px 0 0; }
.blanks dl > div { display: grid; grid-template-columns: 1fr minmax(110px, auto); gap: 14px; align-items: end; min-height: var(--ruled); padding: 8px 0 4px; border-bottom: 1px solid var(--ink-2); }
.blanks dt { font-size: 14px; }
.blanks dd { margin: 0; text-align: right; font: 500 13px var(--mono); color: var(--ink-3); border-bottom: 1px dotted var(--rule-2); }

/* ---------- FOLIO 06 · colophon: the only page in ink */
.f-colophon { background: var(--ink) var(--grain); color: #E9E4D6; border-bottom: 0; --line: rgba(233,228,214,.08); }
.f-colophon .f-page { padding-bottom: 72px; }
.f-colophon .f-tag b { color: rgba(233,228,214,.3); } .f-colophon.read .f-tag b { color: var(--copper); }
.f-colophon .f-tag span { color: rgba(233,228,214,.55); } .f-colophon.read .f-tag span { color: #E9E4D6; }
.f-colophon .f-tag::after { background: var(--ink); }
.f-colophon a { color: #E7A584; text-decoration-color: rgba(231,165,132,.45); }
.f-colophon a:hover { color: #fff; }
.f-colophon .sim-tag { color: #E9E4D6; border-color: rgba(233,228,214,.7); background: repeating-linear-gradient(-45deg, transparent 0 4px, rgba(233,228,214,.1) 4px 6px); }
.f-colophon .sec-sub { color: rgba(233,228,214,.75); }
.f-colophon .eyebrow { color: #E7A584; }
.colo-top { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 72px; align-items: start; max-width: 1240px; }
.no-ca { font: 600 clamp(36px, 4.6vw, 64px)/1 var(--mono); letter-spacing: -.045em; margin: 0 0 18px; color: #F3EFE4; }
.warn-line { border-left: 3px solid var(--copper); background: rgba(176,83,42,.16); padding: 10px 14px; color: #F3EFE4; margin: 22px 0 0; font-weight: 500; }
.facts-mono { margin: 0; border-top: 2px solid #E9E4D6; font-family: var(--mono); }
.facts-mono > div { display: grid; grid-template-columns: 150px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid rgba(233,228,214,.16); text-align: left; }
.facts-mono dt { font: 600 10.5px/1.9 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: rgba(233,228,214,.6); }
.facts-mono dd { margin: 0; font-size: 15px; color: #F3EFE4; }
.facts-mono dd small { display: block; font: 400 12.5px var(--sans); color: rgba(233,228,214,.65); margin-top: 3px; }
.colo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; margin-top: 64px; padding-top: 28px; border-top: 1px solid rgba(233,228,214,.2); max-width: 1240px; font-size: 13.5px; color: rgba(233,228,214,.78); }
.colo-grid h4 { display: flex; align-items: center; gap: 8px; font: 600 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: #F3EFE4; margin: 0 0 14px; }
.colo-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.colo-grid .hash:not(.real) { color: #F3EFE4; }
.colo-grid .sim-mini { color: rgba(233,228,214,.6); }
.fine { margin: 40px 0 0; border-top: 1px solid rgba(233,228,214,.16); padding-top: 16px; font-size: 12.5px; color: rgba(233,228,214,.7); max-width: 1240px; }
.f-colophon-sm .f-page { padding-top: 44px; padding-bottom: 52px; }
.f-colophon-sm .f-tag { padding-top: 44px; }
.f-colophon-sm .f-tag::after { top: 50px; }
.f-colophon-sm .fine { margin: 0; border: 0; padding: 0; }
.hash.real { color: var(--copper-ink); }
.f-colophon .hash.real { color: #E7A584; }

/* ---------- receipt page */
.rp-hero .verso { padding-right: 56px; }
.rp-titlerow { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 10px; }
.rp-title { margin: 0; font-size: clamp(40px, 4.6vw, 64px); }
.crumbs { font: 500 12px/1.4 var(--mono); color: var(--ink-2); margin: 0 0 22px; letter-spacing: .04em; }
.crumbs a { text-decoration: none; } .crumbs a:hover { text-decoration: underline; }
#rp-status { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 18px 0 30px; padding: 12px 0; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--rule-2); }
#rp-status .howto { margin: 0; font-family: var(--mono); font-size: 12.5px; }
.toc-h { font: 600 10.5px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); margin: 0 0 10px; }
.toc { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--ink); font-size: 14px; counter-reset: toc; }
.toc li { border-bottom: 1px solid var(--line); counter-increment: toc; }
.toc a { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: var(--ruled); padding: 6px 4px; text-decoration: none; color: var(--ink); transition: color var(--t-fast), padding var(--t-med) var(--ease), background-color var(--t-fast); }
.toc a > span:first-child::before { content: "§" counter(toc, decimal-leading-zero); font: 500 11px/1 var(--mono); color: var(--ink-3); margin-right: 12px; display: inline-block; width: 30px; }
.toc a > span:last-child { color: var(--rule-2); transition: transform var(--t-med) var(--ease), color var(--t-fast); }
.toc a:hover, .toc a.on { color: var(--copper-ink); background: var(--copper-wash); padding-left: 8px; }
.toc a:hover > span:last-child, .toc a.on > span:last-child { color: var(--copper); transform: translateX(3px); }
.rp-tools { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; }
.rp-tools .hint { font: 500 11.5px/1.3 var(--mono); color: var(--ink-2); letter-spacing: .04em; }
/* §01–§11 (markup from receipt-page.js): each section is a numbered line of the book */
.entry-body { counter-reset: sec; }
.rsec { position: relative; display: grid; grid-template-columns: var(--margin) minmax(0, 1fr) var(--edge); border-bottom: 1px solid var(--rule-2); counter-increment: sec; }
.rsec::before { content: "§" counter(sec, decimal-leading-zero); grid-column: 1; grid-row: 1; align-self: start; position: sticky; top: calc(var(--bind-h) + 30px); padding: 64px 22px 0 0; text-align: right;
  font: 700 22px/1 var(--mono); letter-spacing: -.03em; color: var(--rule-2); transition: color .5s var(--ease); }
.rsec.read::before { color: var(--copper); }
.rsec > .wrap { grid-column: 2; grid-row: 1; min-width: 0; padding: 60px 56px 68px 48px; max-width: 1240px; }
.rsec:nth-of-type(even) { background: rgba(232,226,210,.34); }
.rsec .sec-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 8px; }
.rsec h2 { font-size: clamp(24px, 2.6vw, 32px); }
.rsec .sec-sub { margin: 0 0 24px; }
.kv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 0 30px; margin: 0; padding: 4px 22px; background: var(--slip); border: 1px solid var(--rule); border-top: 3px solid var(--ink); box-shadow: var(--lift-sm); }
.kv-grid div { padding: 13px 0; border-bottom: 1px dotted var(--rule-2); }
.kv-grid dt { font: 600 10px/1.2 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 6px; }
.kv-grid dd { margin: 0; font: 500 15px/1.4 var(--mono); overflow-wrap: anywhere; font-variant-numeric: tabular-nums slashed-zero; }
.kv-grid dd small { display: block; font-family: var(--sans); font-weight: 400; color: var(--ink-2); font-size: 12.5px; margin-top: 3px; }
.rsec .reg td { border-bottom: 1px dotted var(--rule-2); }
.rsec .reg tbody tr:nth-child(even) td { background: rgba(232,226,210,.5); }
tr:target td, .txrec:target, tr.hit td, .txrec.hit { background: #F0DCCB !important; transition: background 2s; }
tr.hit td:first-child { box-shadow: inset 4px 0 0 var(--copper); }
.txrec.hit, tr.hit td { animation: found 1.6s var(--ease); }
@keyframes found { 0% { background: rgba(176,83,42,.45); } 100% { background: #F0DCCB; } }
.checklist { list-style: none; padding: 4px 22px; margin: 0; background: var(--slip); border: 1px solid var(--rule); border-top: 3px solid var(--ink); box-shadow: var(--lift-sm); }
.checklist > li { padding: 16px 0; border-bottom: 1px dotted var(--rule-2); }
.checklist > li:last-child { border-bottom: 0; }
.checklist h3 { display: flex; align-items: center; gap: 10px; font-size: 16px; margin: 0; }
.checklist h3 .rl-src { margin-left: auto; font-size: 12px; font-family: var(--mono); }
.checklist .rl-checks { padding: 10px 0 0 32px; }
.sumline { font: 500 13px/1.6 var(--mono); margin: 0 0 18px; padding: 10px 14px; background: rgba(255,255,255,.4); border: 1px solid var(--rule); border-left: 3px solid var(--copper); display: inline-block; }
pre.raw { background: var(--ink); color: #E9E4D6; font: 400 12px/1.6 var(--mono); padding: 22px; overflow: auto; max-height: 540px; border-radius: 2px; box-shadow: var(--lift-sm); border-top: 3px solid var(--copper); }
.btn { font: 600 12.5px/1 var(--mono); letter-spacing: .04em; padding: 11px 16px; min-height: 44px; border: 1.5px solid var(--ink); background: var(--slip); color: var(--ink); cursor: pointer; border-radius: 2px; box-shadow: 0 2px 0 var(--ink); transition: background-color var(--t-fast) var(--ease), color var(--t-fast), transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease); }
.btn:hover { background: var(--ink); color: var(--paper); }
.btn:active { transform: translateY(2px); box-shadow: 0 0 0 var(--ink); }
.xlink-off { color: var(--ink-2); text-decoration: line-through; text-decoration-color: var(--rule-2); font-family: var(--mono); font-size: 12px; cursor: help; }
.nodata { border: 2px dashed var(--ink-2); padding: 22px; background: var(--slip); font-size: 15px; }
.rp-foot-back { margin-left: 6px; }

/* ---------- responsive */
@media (max-width: 1280px) {
  :root { --margin: 116px; --edge: 70px; }
  .b-vol { display: none; }
  .spread { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); }
  .spread::before { left: calc(1 / 2.25 * 100%); }
  .verso { padding-right: 44px; } .recto { padding-left: 44px; }
  .f-page, .rsec > .wrap { padding-left: 36px; padding-right: 36px; }
}
@media (max-width: 1080px) {
  .motto { display: none; }
  .spread { grid-template-columns: 1fr; }
  .spread::before { display: none; }
  .verso, .rp-hero .verso { padding-right: 0; } .recto { padding-left: 0; margin-top: 44px; }
  .reg-lower, .colo-top { grid-template-columns: 1fr; gap: 40px; }
  .chapters { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; }
  .sp-lines li { grid-template-columns: 22px 92px 1fr 20px; }
}
@media (max-width: 860px) {
  :root { --margin: 30px; --edge: 0px; --bind-h: 54px; }
  .binding { grid-template-columns: auto minmax(0, 1fr) auto; padding: 0 16px 0 22px; gap: 0 14px; }
  .brand { justify-self: start; font-size: 20px; }
  .b-right > a { display: none; }
  .thumbs { display: none; }
  .page-receipt .ep-nav { position: static; transform: none; flex-direction: row; gap: 0; margin: 0 0 26px; border: 1px solid var(--ink); background: var(--slip); width: 100%; }
  .page-receipt .ep-nav::before { display: none; }
  .page-receipt .ep-nav > * { flex: 1; width: auto; transform: none !important; border-radius: 0; border: 0; box-shadow: none; padding: 13px 0; background: none; }
  .page-receipt .ep-nav > * + * { border-left: 1px solid var(--rule-2); }
  .page-receipt .ep-nav .cur { background: var(--ink); }
  .page-receipt .ep-nav .cur::before { display: none; }
  .folio, .rsec { grid-template-columns: var(--margin) minmax(0, 1fr); }
  .f-tag { top: calc(var(--bind-h) + 16px); justify-items: center; padding: 40px 0 0; }
  .f-tag b { font-size: 11px; letter-spacing: 0; writing-mode: vertical-rl; transform: rotate(180deg); }
  .f-tag span, .f-tag::after { display: none; }
  .f-page { padding: 40px 18px 64px 18px; }
  .rsec::before { position: absolute; left: 0; top: 0; width: var(--margin); padding: 44px 0 0; text-align: center; font-size: 10px; writing-mode: vertical-rl; transform: rotate(180deg); }
  .rsec > .wrap { padding: 40px 18px 48px; }
  .f-head { grid-template-columns: auto auto; }
  .f-hero .f-page { padding-top: 32px; }
  .forward { grid-template-columns: 1fr 1fr; }
  .fw-cell:nth-child(3) { border-left: 0; }
  .fw-cell:nth-child(n+3) { border-top: 1px solid var(--rule-2); }
  .chapters { grid-template-columns: 1fr; gap: 0; }
  .js .chapters .chapter:not(.on) { opacity: 1; }
  .chapter { min-height: 0; padding-bottom: 36px; }
  .ch-pin { position: relative; top: 0; order: 2; }
  .ch-tabs { display: none; }
  .specimen[data-ch] .sp-lines li:not(.hot) { opacity: 1; }
  .audit { grid-template-columns: 1fr; }
  .audit-col, .audit-col + .audit-col { padding: 22px 0 8px; border-left: 0; }
  .audit-col + .audit-col { border-top: 2px solid var(--ink); margin-top: 18px; }
  .colo-grid { grid-template-columns: 1fr; }
  .facts-mono > div { grid-template-columns: 1fr; gap: 4px; }
}
@media (max-width: 600px) {
  :root { --pad: 18px; }
  .ca-chip { display: none; }
  .runhead .rh-k { display: none; }
  .en-n { font-size: 88px; }
  .receipt { padding: 24px var(--pad) 20px; }
  .r-stamp { font-size: 15px; top: 76px; right: 10px; }
  .r-colhead, .rline > summary { grid-template-columns: 88px 1fr 22px; gap: 8px; }
  .rl-checks { padding-left: 8px; }
  .r-tally b { font-size: 20px; }
  .r-tally > div { padding: 9px 8px; }
  .tape { width: 72px; height: 24px; }
  .kv-grid, .checklist { padding: 4px 14px; }
  .flow { padding: 18px 14px; }
  .sp-lines li { grid-template-columns: 82px 1fr 20px; padding: 8px 2px; }
  .sp-lines li::before { display: none; }
  .fw-cell { padding: 14px 12px; }
  .fw-cell::before { display: none; }
  /* register: two lines per epoch */
  #reg thead { display: none; }
  #reg tbody tr { display: grid; grid-template-columns: auto 1fr auto; gap: 4px 12px; padding: 12px 12px; border-bottom: 1px solid var(--line); align-items: center; }
  #reg tbody tr:hover { background: #F1E4D6; }
  #reg td { padding: 0 !important; border: 0 !important; background: none !important; box-shadow: none !important; font-size: 13.5px; }
  #reg td[data-l]::before { content: attr(data-l) " "; color: var(--ink-2); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
  #reg td.c-closed, #reg td.c-acc, #reg td.c-link { display: none; }
  #reg td.ep { grid-column: 1; grid-row: 1; }
  #reg td.c-status { grid-column: 3; grid-row: 1; }
  #reg td.num { text-align: left; grid-row: 2; }
  .find-out li { grid-template-columns: 44px 1fr; }
  .find-out li > :last-child { grid-column: 2; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .rv { opacity: 1; transform: none; }
  .js .en-n { background-position: 0 100%; }
  .js .ink-line { background-size: 100% 100%; }
  .js #reg.pre tbody tr { opacity: 1; }
  .js .run-chart:not(.drawn) .rc-line { stroke-dashoffset: 0; }
  .js .run-chart:not(.drawn) .rc-area, .js .run-chart:not(.drawn) .rc-pt { opacity: 1; }
  .js .flow:not(.filled) .bar span { transform: none; }
  .rail-drop { display: none; }
}

/* ---------- launch-ready pass (20 Nov 2026): local labels, config slots, Contracts page, admin */
.promise { grid-column: 1 / -1; margin: 14px 0 0; max-width: 46em; padding: 12px 16px; font-size: 15px; line-height: 1.55; color: var(--ink); background: rgba(251,248,240,.7); border-left: 3px solid var(--copper); }
.promise strong { font-weight: 700; }
.rp-side .promise { margin: 0 0 6px; font-size: 14px; }
.status-line { margin: 18px 0 0; font-size: 15px; line-height: 1.6; color: rgba(233,228,214,.85); max-width: 34em; }
.b-contracts { font: 600 12px/1 var(--mono) !important; letter-spacing: .08em; text-transform: uppercase; color: var(--ink) !important; text-decoration: none; padding: 8px 2px; border-bottom: 1.5px solid var(--copper); }
.b-contracts:hover { color: var(--copper-ink) !important; }
.ca-chip { display: inline-flex; align-items: center; gap: 8px; }
.ca-chip.is-live { border-style: solid; border-color: var(--ink); color: var(--ink); background: var(--slip); }
.copy { font: 600 11px/1 var(--mono); letter-spacing: .06em; min-height: 32px; padding: 6px 10px; border: 1.5px solid var(--ink); background: var(--slip); color: var(--ink); border-radius: 2px; cursor: pointer; transition: background-color var(--t-fast), color var(--t-fast), transform var(--t-fast); }
.copy:hover { background: var(--ink); color: var(--paper); }
.copy:active { transform: translateY(1px); }
.copy.done { background: var(--verified); border-color: var(--verified); color: var(--paper); }
.ca-chip .copy { min-height: 26px; padding: 4px 8px; font-size: 10px; }
.addr-full { display: block; font-size: 14.5px; overflow-wrap: anywhere; color: inherit; }
.addr-acts { display: inline-flex; align-items: center; gap: 14px; margin-top: 8px; font: 500 12.5px var(--mono); }
.ca-full { font-size: .42em; letter-spacing: -.01em; overflow-wrap: anywhere; color: var(--copper); }
.f-colophon .copy { background: transparent; color: #F3EFE4; border-color: rgba(233,228,214,.7); }
.f-colophon .copy:hover { background: #F3EFE4; color: var(--ink); }
.blanks dl.fixed > div { border-bottom-color: var(--rule-2); }
.blanks dl.fixed dd { color: var(--ink); font-weight: 600; border-bottom: 0; }
/* Contracts page */
.ct-head { max-width: 900px; margin-bottom: 52px; }
.ct-h2 { font-size: clamp(22px, 2.2vw, 28px); margin: 0 0 14px; }
.ct-list { margin: 0 0 8px; max-width: 1180px; border-top: 2px solid var(--ink); }
.ct-row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 10px 40px; padding: 20px 0; border-bottom: 1px solid var(--rule-2); }
.ct-row dt b { display: block; font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.ct-row dt small { display: block; margin-top: 4px; font-size: 14px; color: var(--ink-2); max-width: 34em; }
.ct-row dd { margin: 0; font: 500 14.5px/1.5 var(--mono); min-width: 0; }
.ct-row dd small { display: block; margin-top: 6px; font: 400 13px var(--sans); color: var(--ink-2); }
.ct-token dd { font-size: 16px; }
.ct-live { display: flex; align-items: center; gap: 8px; margin-top: 10px; font: 500 12px var(--mono); color: var(--ink-2); }
.ct-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--rule-2); flex: none; }
.ct-live[data-state="wait"] .ct-dot { animation: drip 1.2s ease-in-out infinite; background: var(--copper); }
.ct-live[data-state="ok"] { color: var(--verified); } .ct-live[data-state="ok"] .ct-dot { background: var(--verified); box-shadow: 0 0 0 3px var(--verified-wash); }
.ct-live[data-state="bad"] { color: var(--failed); } .ct-live[data-state="bad"] .ct-dot { background: var(--failed); }
.ct-live[data-state="off"] .ct-dot { background: var(--pending); }
.ct-note { margin: 16px 0 0; font: 500 12.5px var(--mono); color: var(--ink-2); }
.page-contracts .f-hero .f-page { padding-top: 64px; }
@media (max-width: 860px) {
  .ct-row { grid-template-columns: 1fr; gap: 8px; }
  .b-contracts { display: none; }
}
.ink-line { width: fit-content; }

/* ---------- admin (lean: password + three fields) */
.page-admin { background-image: var(--grain); }
.page-admin .binding { grid-template-columns: var(--margin) auto minmax(0, 1fr) auto; padding-right: 24px; }
.admin { padding: 56px 20px 80px; display: grid; justify-items: center; }
.adm-card { width: 100%; max-width: 440px; background: var(--slip) var(--grain); box-shadow: var(--lift); border-top: 3px solid var(--ink); padding: 32px 32px 28px; }
.adm-wide { max-width: 720px; }
.adm-card h1 { font-size: 32px; margin: 0 0 6px; }
.adm-sub { margin: 0 0 24px; color: var(--ink-2); font-size: 15px; }
.adm-field { margin-bottom: 22px; }
.adm-label { display: block; font: 600 11px/1.2 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink); margin: 0 0 8px; }
.adm-input { width: 100%; height: 46px; padding: 0 12px; font: 500 15px var(--sans); color: var(--ink); background: #fff; border: 1.5px solid var(--ink-2); border-radius: 2px; transition: border-color var(--t-fast), box-shadow var(--t-fast); }
.adm-input.mono { font-family: var(--mono); font-size: 14px; }
.adm-input:focus { outline: none; border-color: var(--copper); box-shadow: 0 0 0 3px var(--copper-wash); }
.adm-input[aria-invalid="true"] { border-color: var(--failed); box-shadow: 0 0 0 3px var(--failed-wash); }
.adm-prefix { display: flex; align-items: stretch; }
.adm-prefix span { display: grid; place-items: center; width: 40px; font: 600 15px var(--mono); background: var(--paper-2); border: 1.5px solid var(--ink-2); border-right: 0; border-radius: 2px 0 0 2px; color: var(--ink-2); }
.adm-prefix .adm-input { border-radius: 0 2px 2px 0; }
.adm-help { margin: 6px 0 0; font-size: 13px; color: var(--ink-2); }
.adm-err { margin: 6px 0 0; font-size: 13.5px; font-weight: 600; color: var(--failed); min-height: 0; }
.adm-err:empty { display: none; }
.adm-go { min-width: 120px; background: var(--ink); color: var(--paper); margin-top: 8px; }
.adm-go:hover { background: var(--copper-ink); border-color: var(--copper-ink); }
.adm-go:disabled { opacity: .6; cursor: progress; }
.adm-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.adm-note { font: 500 13px var(--mono); color: var(--ink-2); }
.adm-live { margin-top: 30px; padding-top: 20px; border-top: 2px dashed var(--rule-2); }
.adm-live dl { margin: 0; }
.adm-live dl > div { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.adm-live dt { font: 600 11px/1.8 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.adm-live dd { margin: 0; overflow-wrap: anywhere; font-size: 14px; }
.btn-quiet { min-height: 36px; padding: 8px 12px; box-shadow: none; }
@media (max-width: 600px) { .adm-card { padding: 24px 18px; } .adm-live dl > div { grid-template-columns: 1fr; gap: 2px; } }
@media (max-width: 600px) { .ca-chip:not(.is-live) { display: none; } }

/* ---------- labels follow the active register (html[data-register] set by register-source.js) */
.live-only { display: none; }
html[data-register="live"] .live-only { display: revert; }
html[data-register="live"] .sim-only, html[data-register="live"] .sim-tag, html[data-register="live"] .sim-mini { display: none; }
html[data-register="live"] .src-only, html[data-register="dryrun"] .src-sim, html[data-register="dryrun-token"] .src-sim, html[data-register="sim"] .src-dryrun, html:not([data-register]) .src-dryrun, .src-open { display: none; }
/* "open" = no live receipt yet: no SIMULATION stamps anywhere, figures left blank until epoch 1 closes */
.open-only { display: none; }
html[data-register="open"] .open-only { display: revert; }
html[data-register="open"] .src-open { display: revert; }
html[data-register="open"] .sim-only, html[data-register="open"] .sim-tag, html[data-register="open"] .sim-mini,
html[data-register="open"] .src-sim, html[data-register="open"] .src-dryrun, html[data-register="open"] .not-open,
html[data-register="open"] .page-receipt .toc, html[data-register="open"] .page-receipt .toc-h { display: none; }
.receipt-blank .r-big-int { color: var(--ink-3); }
.receipt-blank .rl-main { color: var(--ink-3); }
.reg tr.is-open td { color: var(--ink-2); }
.reg tr.is-open .c-link { font-family: var(--mono); font-size: 12px; color: var(--ink-3); }
.empty-note { margin: 0; padding: 22px 20px; border: 1px dashed var(--rule-2); color: var(--ink-2); font-size: 14px; line-height: 1.55; background: rgba(251,248,240,.6); }
.sp-v small { color: var(--ink-3); font-size: .86em; }
.r-liveline { color: var(--verified); font-weight: 600; }
