/* Ghostcount: an audit report printed on ledger paper.
   Type: Newsreader (display), IBM Plex Sans (text), IBM Plex Mono (figures).
   Series colors validated with the dataviz palette checker (light + dark). */

:root {
  --paper: #F2EEE3;
  --paper-2: #EAE4D4;
  --card: #F8F5EC;
  --ink: #16140F;
  --ink-2: #45413A;
  --muted: #6E685B;
  --rule: #CFC6B2;
  --rule-2: #DDD5C3;
  --ruling: rgba(150, 135, 100, 0.13);
  --owed: #3A4BB0;
  --held: #0F8A6E;
  --ghost: #C8381E;
  --ghost-wash: rgba(200, 56, 30, 0.14);
  --ok: #0F7A5F;
  --focus: #3A4BB0;
  --serif: 'Newsreader', 'Iowan Old Style', Georgia, serif;
  --sans: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --w: 1180px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #13120F;
    --paper-2: #1A1915;
    --card: #1C1B17;
    --ink: #EDE8DA;
    --ink-2: #C9C3B4;
    --muted: #9C9586;
    --rule: #3A372F;
    --rule-2: #2C2A24;
    --ruling: rgba(255, 255, 255, 0.035);
    --owed: #6F7BDE;
    --held: #25A585;
    --ghost: #E5552F;
    --ghost-wash: rgba(229, 85, 47, 0.18);
    --ok: #3DBE9C;
    --focus: #8F9BFF;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.55 var(--sans);
  /* faint ledger ruling */
  background-image: repeating-linear-gradient(to bottom, transparent 0 31px, var(--ruling) 31px 32px);
  background-attachment: local;
}

a { color: inherit; text-decoration-color: var(--rule); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--ink); }
code, pre, .num, .mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
code { font-size: 0.88em; background: var(--paper-2); padding: 0.05em 0.3em; border-radius: 2px; overflow-wrap: anywhere; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 2px; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; background: var(--ink); color: var(--paper); padding: 8px 12px; z-index: 10; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: var(--w); margin: 0 auto; padding: 0 28px; }

/* masthead */
.masthead { border-bottom: 1px solid var(--ink); background: var(--paper); position: sticky; top: 0; z-index: 5; }
.masthead-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 56px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 600 15px/1 var(--mono); letter-spacing: 0.24em; }
.tally { width: 34px; height: 22px; }
.tally path { stroke: var(--ink); stroke-width: 2.6; fill: none; stroke-linecap: square; }
.tally .slash { stroke: var(--ghost); stroke-width: 3; }
.filing { margin: 0; font: 400 12.5px/1.3 var(--mono); color: var(--ink-2); text-align: right; }

/* hero */
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 0.8fr); gap: 48px; align-items: end; }
.ghosts { margin: 0 0 44px; border-left: 1px solid var(--ink); padding-left: 28px; }
.ghosts-marks svg { display: block; width: 100%; height: auto; }
.ghosts-marks .stroke { stroke: var(--ink); stroke-width: 5; stroke-linecap: round; fill: none; }
.ghosts-marks .slash { stroke: var(--ghost); stroke-width: 5.5; stroke-linecap: round; fill: none; }
.ghosts-marks .draw { stroke-dasharray: 100; stroke-dashoffset: 100; animation: draw 0.35s ease-out forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.ghosts figcaption { margin-top: 14px; font-size: 14px; color: var(--ink-2); }
.ghosts-n { display: block; font: 600 46px/1 var(--mono); color: var(--ghost); margin-bottom: 6px; letter-spacing: -0.02em; }
.hero { padding-top: 64px; padding-bottom: 56px; }
.kicker { font: 500 12.5px/1.4 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin: 0 0 18px; }
h1 { font: 500 clamp(40px, 6.4vw, 84px)/0.98 var(--serif); letter-spacing: -0.02em; margin: 0 0 24px; max-width: 13ch; }
.lede { font-size: clamp(17px, 1.6vw, 19.5px); max-width: 62ch; color: var(--ink-2); margin: 0 0 40px; }

.verdicts { display: grid; grid-template-columns: 1fr 1fr; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--ink); }
.verdict { padding: 26px 28px 28px 0; }
.verdict + .verdict { border-left: 1px solid var(--ink); padding-left: 28px; }
.v-when { margin: 0 0 10px; font: 500 12.5px/1.3 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); }
.v-stamp { margin: 0 0 14px; }
.stamp {
  display: inline-block; font: 600 clamp(26px, 3.4vw, 40px)/1 var(--mono); letter-spacing: 0.04em; text-transform: uppercase;
  padding: 10px 14px 9px; border: 3px solid currentColor; transform: rotate(-1.2deg);
}
.verdict.ok .stamp { color: var(--ok); }
.verdict.bad .stamp { color: var(--ghost); transform: rotate(1deg); }
.verdict.pending .stamp { color: var(--muted); }
.v-body { margin: 0; max-width: 48ch; color: var(--ink-2); }
.v-body strong { color: var(--ink); font-family: var(--mono); font-weight: 500; }

/* sections */
.band { background: var(--paper-2); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); padding: 64px 0; background-image: none; }
.section { padding-top: 64px; padding-bottom: 64px; }
.sec-head { margin-bottom: 28px; max-width: 70ch; }
.sec-no { font: 500 12px/1 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ghost); margin: 0 0 12px; }
h2 { font: 500 clamp(30px, 3.6vw, 46px)/1.05 var(--serif); letter-spacing: -0.015em; margin: 0 0 12px; }
h3 { font: 600 17px/1.3 var(--sans); margin: 0 0 4px; }
.sec-sub { color: var(--ink-2); margin: 0; font-size: 17px; }

.chart-card, .table-card { background: var(--card); border: 1px solid var(--rule); padding: 24px; margin: 0 0 24px; }
.card-head { margin-bottom: 16px; }
.card-head p { margin: 0; color: var(--ink-2); font-size: 14.5px; }
figure { margin: 0; }
figcaption { margin-top: 14px; }
.plain { font-family: var(--serif); font-size: 19px; line-height: 1.4; margin: 0 0 10px; max-width: 70ch; }
.plain strong { font-weight: 600; }

.legend { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 13.5px; color: var(--ink-2); margin-bottom: 10px; }
.legend em { font-style: normal; font-family: var(--mono); font-size: 12px; color: var(--muted); margin-left: 4px; }
.sw { display: inline-block; width: 18px; height: 3px; vertical-align: middle; margin-right: 8px; border-radius: 2px; }
.sw-owed { background: var(--owed); }
.sw-held { background: var(--held); }
.sw-ghost { height: 10px; background: repeating-linear-gradient(135deg, var(--ghost) 0 2px, transparent 2px 5px); border: 1px solid var(--ghost); border-radius: 1px; }

.chart { position: relative; width: 100%; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; touch-action: pan-y; }
.axis text, .lbl { font: 400 11.5px var(--mono); fill: var(--muted); }
.axis line, .axis path { stroke: var(--rule); }
.grid line { stroke: var(--rule-2); }
.line-owed { stroke: var(--owed); stroke-width: 4; fill: none; stroke-linejoin: round; }
.line-held { stroke: var(--held); stroke-width: 1.6; fill: none; stroke-linejoin: round; }
.gap-fill { fill: url(#hatch); }
.gap-edge { fill: none; }
.mark-event line { stroke: var(--ink); stroke-width: 1; stroke-dasharray: 2 3; }
.mark-event path.lead { fill: none; stroke: var(--ink); stroke-width: 1; }
.mark-event.ours path.lead { stroke: var(--ghost); stroke-width: 1.5; }
.mark-event.ours line { stroke: var(--ghost); stroke-dasharray: none; stroke-width: 1.5; }
.mark-event text { font: 500 11px var(--mono); fill: var(--ink-2); }
.mark-event.ours text { fill: var(--ghost); font-weight: 600; }
.mark-event circle { fill: var(--card); stroke: var(--ink); stroke-width: 1.2; }
.mark-event.ours circle { fill: var(--ghost); stroke: var(--card); stroke-width: 2; }
.mark-event circle.hit, circle.hit { fill: transparent; stroke: none; }
.halo { paint-order: stroke; stroke: var(--card); stroke-width: 5px; stroke-linejoin: round; }
.crosshair line { stroke: var(--ink); stroke-width: 1; }
.crosshair circle { stroke: var(--card); stroke-width: 2; }
.hit { fill: transparent; cursor: crosshair; }
.step-line { stroke: var(--ghost); stroke-width: 2; fill: none; }
.step-dot { fill: var(--ghost); stroke: var(--card); stroke-width: 2; }
.tally-tick { stroke: var(--ink); stroke-width: 2; }

.events { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 6px 22px; font-size: 13.5px; }
.events li { display: grid; grid-template-columns: 22px 1fr; gap: 6px; align-items: baseline; color: var(--ink-2); }
.events b { font: 600 11px/1 var(--mono); display: inline-grid; place-items: center; width: 18px; height: 18px; border: 1.2px solid var(--ink); border-radius: 50%; color: var(--ink); }
.events li.ours b { background: var(--ghost); border-color: var(--ghost); color: #fff; }
.events time { font-family: var(--mono); font-size: 12px; color: var(--ink); }

details.query { border-top: 1px dashed var(--rule); padding-top: 10px; margin-top: 12px; font-size: 14px; color: var(--ink-2); }
details.query summary { cursor: pointer; font: 500 12.5px/1.6 var(--mono); letter-spacing: 0.04em; color: var(--ink); min-height: 32px; display: flex; align-items: center; }
details.query pre { background: var(--paper-2); border: 1px solid var(--rule); padding: 14px; overflow-x: auto; font-size: 12.5px; line-height: 1.6; margin: 10px 0; }
details.query pre code { background: none; padding: 0; overflow-wrap: normal; }

/* tooltip */
.tip { position: fixed; z-index: 20; pointer-events: none; background: var(--ink); color: var(--paper); font: 400 12.5px/1.45 var(--mono); padding: 9px 11px; max-width: 280px; border-radius: 2px; box-shadow: 0 6px 20px rgba(0,0,0,0.18); }
.tip b { font-weight: 600; }
.tip .k { display: inline-block; width: 9px; height: 9px; margin-right: 6px; border-radius: 1px; }

/* control strip */
.control { display: grid; grid-template-columns: repeat(8, 1fr); gap: 2px; background: var(--rule); border: 1px solid var(--rule); }
.cell { background: var(--card); padding: 12px 10px 12px; min-height: 120px; display: flex; flex-direction: column; gap: 6px; }
.cell.fired { background: var(--ghost-wash); }
.cell time { font: 500 11.5px/1.3 var(--mono); color: var(--ink-2); }
.cell .n { font: 600 28px/1 var(--mono); }
.cell.fired .n { color: var(--ghost); }
.cell .what { font-size: 12.5px; color: var(--ink-2); line-height: 1.35; }

/* tiles */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 2px solid var(--ink); border-bottom: 1px solid var(--ink); margin-bottom: 28px; }
.tile { padding: 18px 18px 18px 0; }
.tile + .tile { border-left: 1px solid var(--rule); padding-left: 18px; }
.tile .k { font: 500 11.5px/1.3 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }
.tile .v { font: 500 clamp(24px, 2.6vw, 34px)/1 var(--mono); margin: 0 0 6px; letter-spacing: -0.01em; }
.tile .s { font-size: 13px; color: var(--ink-2); margin: 0; }

/* ledger bars */
.ledger { display: grid; gap: 2px; }
.lrow { display: grid; grid-template-columns: minmax(150px, 230px) 1fr 110px; gap: 14px; align-items: center; min-height: 30px; font-size: 13.5px; }
.lrow .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lrow .name small { color: var(--muted); font-family: var(--mono); font-size: 11px; margin-left: 6px; }
.lbar { position: relative; height: 12px; }
.lbar .o { position: absolute; left: 0; top: 0; bottom: 0; background: var(--owed); border-radius: 0 3px 3px 0; opacity: 0.9; }
.lbar .h { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--held); }
.lbar .g { position: absolute; top: 0; bottom: 0; background: repeating-linear-gradient(135deg, var(--ghost) 0 2px, transparent 2px 5px); }
.lrow .val { text-align: right; font-family: var(--mono); font-size: 12.5px; }
.lrow:hover .name { text-decoration: underline; }

/* tables */
.table-tools { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; flex-wrap: wrap; }
.toggle { display: inline-flex; gap: 10px; align-items: center; font-size: 14px; min-height: 44px; cursor: pointer; }
.toggle input { width: 20px; height: 20px; accent-color: var(--ghost); }
.count { font: 400 12.5px var(--mono); color: var(--muted); }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; max-height: 560px; overflow-y: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.data th { text-align: left; font: 500 11.5px/1.3 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--ink); padding: 8px 10px 8px 0; position: sticky; top: 0; background: var(--card); }
table.data td { border-bottom: 1px solid var(--rule-2); padding: 8px 10px 8px 0; vertical-align: top; }
table.data .num { text-align: right; white-space: nowrap; }
table.data td.tok { max-width: 360px; overflow-wrap: anywhere; }
#flows-table { min-width: 620px; }
table.data td.tok small { display: block; color: var(--muted); font-family: var(--mono); font-size: 11px; }
.pill { display: inline-block; font: 600 11px/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; padding: 4px 6px; border: 1.5px solid currentColor; }
.pill.backed { color: var(--ok); }
.pill.short { color: var(--ghost); }
.pill.error { color: var(--muted); }

/* live check */
.live { display: grid; grid-template-columns: 300px 1fr; gap: 28px; align-items: start; }
.run { appearance: none; border: 2px solid var(--ink); background: var(--ink); color: var(--paper); font: 600 15px/1.25 var(--mono); padding: 18px 20px; min-height: 64px; width: 100%; text-align: left; cursor: pointer; display: flex; gap: 12px; align-items: center; transition: transform 0.08s ease; }
.run:hover { background: var(--paper); color: var(--ink); }
.run:active { transform: translateY(1px); }
.run[disabled] { cursor: progress; background: var(--paper); color: var(--ink); }
.run-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--ghost); flex: none; }
.run[disabled] .run-dot { animation: pulse 0.9s ease-in-out infinite alternate; }
@keyframes pulse { from { opacity: 1; } to { opacity: 0.25; } }
.live-out { background: var(--card); border: 1px solid var(--rule); padding: 18px 20px; min-height: 64px; font-size: 14.5px; }
.live-out .hint { margin: 0; color: var(--ink-2); }
.progress { height: 4px; background: var(--rule-2); margin: 10px 0 14px; position: relative; overflow: hidden; }
.progress i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--ink); transition: width 0.2s; }
.live-result { font-family: var(--serif); font-size: 21px; line-height: 1.35; margin: 0 0 8px; }
.live-meta { font: 400 12.5px/1.6 var(--mono); color: var(--ink-2); margin: 0; overflow-wrap: anywhere; }
.err { color: var(--ghost); }

/* layer 2 */
.l2-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.l2-grid .chart-card { margin: 0; }
.signer-card { grid-column: 1 / -1; }
.powers { list-style: none; margin: 0; padding: 0; }
.powers li { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 10px 0; border-bottom: 1px solid var(--rule-2); }
.powers .p-what { font-weight: 500; }
.powers .p-who { font-family: var(--mono); font-size: 12.5px; color: var(--ink-2); grid-column: 1 / -1; overflow-wrap: anywhere; }
.powers .p-n { font: 600 13px var(--mono); text-align: right; }
.signer { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 14px; }
.node { width: 34px; height: 34px; border: 1.5px solid var(--ink); display: grid; place-items: center; font: 500 11px var(--mono); }
.node.q { background: var(--held); border-color: var(--held); color: #fff; }

/* method */
.method-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; }
pre.cmd { background: var(--ink); color: var(--paper); padding: 18px 20px; overflow-x: auto; font-size: 13px; line-height: 1.7; margin: 0 0 14px; }
pre.cmd code { background: none; color: inherit; padding: 0; }
.limits ul { margin: 8px 0 0; padding-left: 18px; color: var(--ink-2); font-size: 14.5px; }
.limits li { margin-bottom: 8px; }

.foot { padding: 32px 28px 48px; font-size: 13px; color: var(--muted); }
.foot p { margin: 0 0 6px; }

/* skeleton */
.skeleton { background: linear-gradient(90deg, var(--rule-2), var(--paper-2), var(--rule-2)); background-size: 200% 100%; animation: sk 1.2s linear infinite; min-height: 240px; }
@keyframes sk { to { background-position: -200% 0; } }

@media (max-width: 900px) {
  /* narrow screens: the answer (both verdicts) comes straight after the
     question; the tally follows as the supporting exhibit */
  .hero { display: flex; flex-direction: column; }
  .hero-grid { display: contents; }
  .hero-grid > div:first-child { order: 1; }
  .verdicts { order: 2; }
  .ghosts { order: 3; border-left: 0; padding-left: 0; border-top: 0; padding-top: 18px; margin: 0; display: grid; grid-template-columns: minmax(0, 150px) 1fr; gap: 16px; align-items: center; }
  .ghosts-marks { max-width: 150px; }
  .ghosts figcaption { margin-top: 0; }
  .control { grid-template-columns: repeat(4, 1fr); }
  .tiles { grid-template-columns: 1fr 1fr; }
  .tile:nth-child(3) { border-left: 0; padding-left: 0; }
  .tile:nth-child(n+3) { border-top: 1px solid var(--rule); }
  .l2-grid, .method-grid, .live { grid-template-columns: 1fr; }
  /* the ledger table stacks one token per row block: name and status pill,
     the full token id on whole lines, then chain, owed and held/owed with
     their labels; no sideways scroll, no clipped status */
  #now-table, #now-table tbody { display: block; }
  #now-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  #now-table tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(88px, auto); gap: 6px 12px; padding: 10px 0; border-bottom: 1px solid var(--rule-2); }
  #now-table td { padding: 0; border: 0; min-width: 0; text-align: left; }
  #now-table td.tok { grid-column: 1 / 3; grid-row: 1; max-width: none; }
  #now-table td.st { display: contents; }
  #now-table td.st .pill { grid-column: 3; grid-row: 1; justify-self: end; align-self: start; }
  #now-table td.st small { grid-column: 1 / -1; grid-row: 3; overflow-wrap: anywhere; }
  #now-table td:nth-child(2) { grid-column: 1; grid-row: 2; overflow-wrap: anywhere; }
  #now-table td:nth-child(3) { grid-column: 2; grid-row: 2; }
  #now-table td:nth-child(4) { grid-column: 3; grid-row: 2; text-align: right; }
  #now-table td[data-label]::before { content: attr(data-label); display: block; font: 500 10px/1.5 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
}

@media (max-width: 560px) {
  body { font-size: 15.5px; }
  .wrap { padding: 0 16px; }
  .masthead-row { height: 50px; }
  /* the filing line keeps block and time only, on two short lines */
  .filing { font-size: 10.5px; max-width: 52%; }
  .filing .f-what, .filing .f-sep { display: none; }
  .filing .f-at { display: block; white-space: nowrap; }
  .wordmark { letter-spacing: 0.16em; font-size: 13px; }
  .hero { padding-top: 28px; padding-bottom: 36px; }
  /* phones: question, then both verdicts on the first screen, then the lede */
  .hero-grid > div:first-child { display: contents; }
  .kicker { order: 1; margin-bottom: 12px; }
  h1 { order: 1; font-size: 36px; margin-bottom: 18px; }
  .verdicts { order: 2; }
  .lede { order: 3; margin: 24px 0 0; }
  .ghosts { order: 4; }
  .verdict { padding: 16px 0; }
  .v-stamp { margin-bottom: 10px; }
  .verdicts { grid-template-columns: 1fr; }
  .verdict + .verdict { border-left: 0; border-top: 1px solid var(--ink); padding-left: 0; }
  .band, .section { padding-top: 44px; padding-bottom: 44px; }
  .chart-card, .table-card { padding: 16px 14px; }
  .control { grid-template-columns: 1fr 1fr; }
  .cell { min-height: 96px; }
  .tile { padding: 14px 10px 14px 0; }
  .tile + .tile { padding-left: 10px; }
  .lrow { grid-template-columns: 1fr 86px; gap: 4px 10px; }
  .lrow .lbar { grid-column: 1 / -1; grid-row: 2; }
  .plain { font-size: 17.5px; }
  .events { grid-template-columns: 1fr; }
  table.data { font-size: 12.5px; }
}

/* grid children must be allowed to shrink below their longest code line */
.method-grid > *, .l2-grid > *, .live > *, .hero-grid > *, figure, details.query { min-width: 0; }
.legend .unit { color: var(--muted); font: 400 12px var(--mono); }

/* attestation */
.att { background: var(--card); border: 1px solid var(--rule); padding: 20px 22px; display: grid; grid-template-columns: auto 1fr; gap: 18px 28px; align-items: center; }
.att .hint { grid-column: 1 / -1; margin: 0; color: var(--ink-2); }
.att .stamp { font-size: 22px; }
.att.ok .stamp { color: var(--ok); }
.att.bad .stamp { color: var(--ghost); }
.att dl { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 4px 16px; font-size: 14px; }
.att dt { font: 500 11.5px/1.6 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.att dd { margin: 0; font-family: var(--mono); font-size: 13px; overflow-wrap: anywhere; }
@media (max-width: 560px) { .att { grid-template-columns: 1fr; } .att dl { grid-template-columns: 1fr; } }
.run-col { display: grid; gap: 12px; align-content: start; }
.run-all { font-size: 13.5px; }

/* Exhibit 5: trust spectrum and reserves */
.spectrum-card { margin-bottom: 24px; }
.spectrum-bar { display: flex; height: 44px; border: 1px solid var(--ink); margin: 6px 0 18px; overflow: hidden; }
.spectrum-bar span { display: block; height: 100%; min-width: 2px; }
.t-verified { background: var(--ok); }
.t-native { background: color-mix(in srgb, var(--held) 38%, var(--card)); }
.t-issuer { background: color-mix(in srgb, var(--muted) 42%, var(--card)); }
.t-principle { background: repeating-linear-gradient(90deg, var(--rule) 0 3px, var(--card) 3px 6px); }
.t-opaque { background: repeating-linear-gradient(45deg, var(--ghost) 0 2px, var(--ghost-wash) 2px 7px); }
.spectrum { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.spectrum li { display: grid; grid-template-columns: 18px minmax(0, 1fr) 150px; gap: 12px; align-items: baseline; font-size: 14px; }
.spectrum .sw { width: 16px; height: 16px; border: 1px solid var(--ink); align-self: center; }
.spectrum .lbl-t { color: var(--ink); }
.spectrum .lbl-t small { display: block; color: var(--muted); font: 12px/1.4 var(--mono); }
.spectrum .amt { font: 500 14px var(--mono); text-align: right; }
.spectrum .amt b { display: block; font-size: 20px; font-weight: 600; }
.res-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 24px; margin-bottom: 24px; }
.res-facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0 0 16px; font-size: 14px; }
.res-facts dt { color: var(--muted); font: 500 12px/1.6 var(--mono); text-transform: uppercase; letter-spacing: 0.06em; }
.res-facts dd { margin: 0; font-family: var(--mono); font-size: 13.5px; }
.res-facts dd.big { font-size: 18px; font-weight: 600; }
.res-facts .ok { color: var(--ok); }
.res-facts .bad { color: var(--ghost); }
.utxos { display: grid; grid-template-columns: repeat(auto-fill, 11px); gap: 3px; margin: 4px 0 14px; }
.utxos i { width: 11px; height: 11px; display: block; background: var(--ok); }
.utxos i.fl { background: repeating-linear-gradient(45deg, var(--owed) 0 2px, var(--card) 2px 4px); }
.utxos i.miss { background: var(--ghost); }
@media (max-width: 900px) { .res-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .spectrum li { grid-template-columns: 16px minmax(0, 1fr); }
  .spectrum .amt { grid-column: 2; text-align: left; }
  .spectrum .amt b { display: inline; margin-right: 8px; }
  .res-facts { grid-template-columns: 1fr; gap: 2px 0; }
  .res-facts dd { margin-bottom: 8px; }
}
