/* The Paper Hand, live board (docs/21 §九). Same ink-on-paper manga language as the hero (manga.css): black ink, paper
   #fbfaf6, spot-color washes (sky, pink, amber, sun) for fills only, red #ad1442 the only colored text (liquidations,
   stale data). Data first: panels are plain cells with thick borders and offset shadows; motion only marks a change.
   Long / short is ▲▼ + 多/空 + two screentones (dots for long, hatching for short), never color alone. */
:root {
  --paper: #fbfaf6;
  --ink: #141210;
  --ink-2: #3f3c37;
  --muted: #6f6b63;
  --hair: #d9d5cb;
  --red: #ad1442;
  --sky: #cfe6f7; --sky-d: #2f86c8; --pink: #fadbe2; --pink-d: #e2587a; --amber: #fbe7c4; --amber-d: #d08a1c; --sun: #ffd84d;
  --brush: "Ma Shan Zheng", "Noto Sans SC", serif;
  --sfx-en: "Bangers", "Noto Sans SC", sans-serif;
  --sans: "Noto Sans SC", system-ui, sans-serif;
  --mono: "JetBrains Mono", "Noto Sans SC", ui-monospace, monospace;
  --dots: radial-gradient(circle, var(--sky-d) 1.1px, transparent 1.5px) 0 0 / 5px 5px;
  --hatch: repeating-linear-gradient(-45deg, var(--amber-d) 0 1.4px, transparent 1.4px 4.5px);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { background: var(--paper); }
body { margin: 0; background: var(--paper); color: var(--ink); font: 14px/1.55 var(--sans); }
button { font: inherit; color: inherit; }
a { color: var(--ink); }
.muted { color: var(--muted); }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.brush { font-family: var(--brush); font-weight: 400; }
:root[lang="en"] .brush { font-family: var(--sfx-en); letter-spacing: 0.03em; }
.kicker { font: 700 11px var(--mono); letter-spacing: 0.2em; text-transform: uppercase; }
.kicker::before { content: "■ "; color: var(--red); }
.note { font-size: 12.5px; color: var(--ink-2); margin: 0; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }

/* the bar: name, edition and switches on one line; the page tabs under it, like the index tabs of a binder */
.top {
  position: sticky; top: 0; z-index: 20; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; padding: 8px 24px 0;
  background: var(--paper); border-bottom: 3px solid var(--ink);
}
.brand { font: 400 22px/1 var(--sfx-en); letter-spacing: 0.06em; text-decoration: none; white-space: nowrap; }
.dl { display: flex; gap: 10px; align-items: center; font-size: 12px; color: var(--ink-2); white-space: nowrap; }
.tabs { order: 9; flex-basis: 100%; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; margin-bottom: -3px; padding-top: 4px; }
.tabs:empty { visibility: hidden; }
.tabs a {
  font: 900 15px/1 var(--sans); text-decoration: none; padding: 9px 18px 8px; border: 3px solid var(--ink); border-bottom: 0; white-space: nowrap;
  background: #ece8dc; color: var(--ink-2); position: relative; top: 3px;
}
.tabs a:hover { background: var(--paper); color: var(--ink); }
.tabs a[aria-current="page"] { background: var(--sun); color: var(--ink); top: 0; padding-bottom: 11px; box-shadow: 3px -3px 0 var(--ink); }
.top-right { display: flex; gap: 8px; align-items: center; margin-left: auto; }
.age { font: 12px var(--mono); color: var(--ink-2); white-space: nowrap; }
.age::before { content: "● "; color: var(--sky-d); }
.age.stale { color: var(--red); }
.age.stale::before { color: var(--red); }
.chip {
  border: 2px solid var(--ink); background: var(--paper); padding: 1px 9px; font-size: 12px; font-weight: 700; cursor: pointer;
  box-shadow: 2px 2px 0 var(--sky-d); white-space: nowrap;
}
.chip[aria-selected="true"], .chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.btn { font: 900 13px var(--sans); padding: 5px 14px; border: 2.5px solid var(--ink); background: var(--sun); cursor: pointer; box-shadow: 3px 3px 0 var(--pink-d); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--pink-d); }

.wrap { max-width: 1240px; margin: 0 auto; padding: 22px 24px 40px; }

/* five figures: a row of panels, each with its own wash and tone */
.figs5 { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.fig { position: relative; border: 3px solid var(--ink); padding: 10px 12px 10px; box-shadow: 5px 5px 0 var(--ink); overflow: hidden; min-width: 0; }
.fig::after { content: ""; position: absolute; inset: auto 0 0 0; height: 50%; opacity: 0.5; pointer-events: none; background: radial-gradient(circle, var(--dot) 1.1px, transparent 1.5px) 0 0 / 6px 6px;
  -webkit-mask-image: linear-gradient(transparent, #000); mask-image: linear-gradient(transparent, #000); }
.fig:nth-child(5n+1) { background: linear-gradient(var(--paper), var(--sky)); --dot: var(--sky-d); }
.fig:nth-child(5n+2) { background: linear-gradient(var(--paper), var(--pink)); --dot: var(--pink-d); }
.fig:nth-child(5n+3) { background: linear-gradient(var(--paper), var(--amber)); --dot: var(--amber-d); }
.fig:nth-child(5n+4) { background: linear-gradient(var(--paper), var(--pink)); --dot: var(--pink-d); }
.fig:nth-child(5n+5) { background: linear-gradient(var(--paper), var(--sky)); --dot: var(--sky-d); }
.fig > * { position: relative; z-index: 1; }
.fig-label { font-size: 12px; font-weight: 700; display: flex; gap: 6px; align-items: center; }
.fig-value { font: 700 26px/1.2 var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fig-unit { font: 500 11px var(--sans); color: var(--ink-2); }
.fig-sub { font-size: 11.5px; color: var(--ink-2); }
.digit.changed { background: var(--sun); animation: ink 1.2s ease-out forwards; }
@keyframes ink { to { background: transparent; } }
:root[data-motion="off"] .digit.changed { animation: none; background: transparent; }
.q {
  border: 1.5px solid var(--ink); color: var(--ink); border-radius: 50%; width: 16px; height: 16px; font-size: 10px; font-weight: 700;
  line-height: 13px; text-align: center; cursor: help; background: var(--paper); padding: 0; flex: none; vertical-align: 1px;
}

/* page layout */
.panel { border: 3px solid var(--ink); background: var(--paper); box-shadow: 6px 6px 0 var(--ink); padding: 16px 20px; min-width: 0; }

/* the whale watch */
.watch-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.filters { display: flex; gap: 6px; flex-wrap: wrap; }
.watch .note { margin: 6px 0 10px; }
.stream { list-style: none; margin: 0; padding: 0; }
.stream li { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 10px; padding: 8px 4px; border-top: 1.5px dashed #b3ad9f; cursor: pointer; }
.stream li:first-child { border-top: 2px solid var(--ink); }
.stream li:hover, .stream li:focus-visible { background: #f3efe4; }
.stream li.empty { display: block; cursor: default; text-align: center; color: var(--ink-2); }
.stream li.empty:hover { background: none; }
.stream li.fresh { animation: drop 0.45s cubic-bezier(0.2, 1.6, 0.4, 1), flash 2.4s ease-out; }
:root[data-motion="off"] .stream li.fresh { animation: none; }
@keyframes drop { from { transform: translateY(-10px); opacity: 0; } }
@keyframes flash { from { background: #fff1a8; } to { background: transparent; } }
.stream li.liq { background: linear-gradient(90deg, rgba(173, 20, 66, 0.07), transparent 60%); }
.t { font: 12px/1.35 var(--mono); }
.t div:last-child { color: var(--muted); font-size: 11px; }
.line1 { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.line2 { font-size: 12px; color: var(--ink-2); margin-top: 2px; }
.who { font: 700 13px var(--mono); }
.tier { font: 700 12px/1 var(--mono); border: 2px solid var(--ink); padding: 2px 5px; background: var(--sun); }
.tier-B { background: var(--pink); }
.tier-C { background: var(--sky); }
.tier-D { background: var(--paper); }
.act { font-weight: 700; display: inline-flex; align-items: center; gap: 5px; }
.act .sw { width: 12px; height: 12px; border: 1.5px solid var(--ink); display: inline-block; flex: none; }
.side-long .sw { background: var(--dots), var(--paper); }
.side-short .sw { background: var(--hatch), var(--paper); }
.amt { font: 700 13.5px var(--mono); }
.pos { font-family: var(--mono); }
.neg { font-family: var(--mono); }
.stamp { display: inline-block; font: 900 12px/1 var(--sans); color: var(--red); border: 2.5px solid var(--red); border-radius: 4px; padding: 3px 6px; transform: rotate(-6deg); background: var(--paper); letter-spacing: 0.1em; }
.more-b { margin-top: 6px; }

/* the house column: the protocol's own money and switches */
.house { display: grid; gap: 14px; }
.box { border: 3px solid var(--ink); background: var(--paper); box-shadow: 5px 5px 0 var(--ink); padding: 12px 14px; }
.box h4 { margin: 0 0 6px; font-size: 14px; display: flex; gap: 6px; align-items: center; }
.box .big { font: 700 28px/1.15 var(--mono); }
.scale { position: relative; margin: 10px 0 26px; }
.scale-bar { height: 16px; border: 2px solid var(--ink); background: var(--paper); }
.scale-fill { height: 100%; background: var(--dots), var(--sky); border-right: 2px solid var(--ink); }
.scale-mark { position: absolute; top: -4px; height: 24px; border-left: 2px dashed var(--red); }
.scale-mark span { position: absolute; top: 24px; transform: translateX(-50%); font: 11px var(--mono); color: var(--red); white-space: nowrap; }
.scale-mark.end { border-left-style: solid; border-color: var(--ink); }
.scale-mark.end span { color: var(--ink); transform: translateX(-100%); }
.gov { list-style: none; margin: 0; padding: 0; }
.gov li { border: 2px solid var(--ink); padding: 6px 8px; margin-top: 8px; background: linear-gradient(var(--paper), #fff7d6); }
.gov code { font: 600 11.5px var(--mono); word-break: break-all; }
.gov .count { font-weight: 900; }
.kv { display: grid; grid-template-columns: 1fr auto; gap: 3px 12px; font-size: 13px; }
.kv span:nth-child(odd) { border-bottom: 1px dotted #b3ad9f; }
.kv .num { text-align: right; font-weight: 700; border-bottom: 1px dotted #b3ad9f; }

.foot { margin-top: 36px; padding-top: 14px; border-top: 3px solid var(--ink); font-size: 12.5px; }
.foot p { margin: 0 0 4px; }

/* the "?" popover */
.pop { position: fixed; z-index: 40; max-width: 340px; background: var(--paper); border: 2.5px solid var(--ink); box-shadow: 4px 4px 0 var(--pink-d); padding: 8px 10px; font-size: 12.5px; line-height: 1.5; }

/* a person's file: a dossier in a drawer */
.drawer { position: fixed; inset: 0; z-index: 30; background: rgba(20, 18, 16, 0.35); display: flex; justify-content: flex-end; }
.drawer[hidden] { display: none; }
.drawer-card { width: min(560px, 100%); height: 100%; overflow-y: auto; background: var(--paper); border-left: 4px solid var(--ink); padding: 0 0 30px; position: relative; animation: slide 0.25s cubic-bezier(0.2, 1.2, 0.4, 1); }
:root[data-motion="off"] .drawer-card { animation: none; }
@keyframes slide { from { transform: translateX(40px); opacity: 0; } }
.drawer-close { position: absolute; right: 12px; top: 8px; z-index: 2; width: 34px; height: 34px; border: 2.5px solid var(--ink); background: var(--sun); font: 900 20px/1 var(--sans); cursor: pointer; box-shadow: 3px 3px 0 var(--ink); }
.fh { background: var(--ink); color: var(--paper); padding: 12px 56px 12px 18px; }
.fh .kicker::before { color: var(--sun); }
.file-head { font: 700 17px var(--mono); word-break: break-all; display: flex; gap: 8px; align-items: center; margin-top: 4px; }
.fbody { padding: 12px 18px 0; }
.file-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 10px 0; }
.file-grid .fig { box-shadow: 3px 3px 0 var(--ink); border-width: 2px; padding: 8px 10px; }
.file-grid .fig-value { font-size: 18px; }
.fbody h4 { font-size: 15px; margin: 18px 0 6px; padding-bottom: 3px; border-bottom: 3px solid var(--ink); }
.wallets { font: 12px/1.6 var(--mono); word-break: break-all; color: var(--ink-2); }
table.mini { border-collapse: collapse; width: 100%; font-size: 12.5px; }
table.mini th, table.mini td { text-align: left; padding: 3px 8px 3px 0; border-bottom: 1px dotted #b3ad9f; white-space: nowrap; }
table.mini th { font-weight: 700; border-bottom: 2px solid var(--ink); }
table.mini .num { text-align: right; }
details summary { cursor: pointer; }

@media (max-width: 1000px) {
  .figs5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 719px) {
  .top { padding: 8px 12px 0; gap: 6px 10px; }
  .brand { font-size: 18px; }
  .top .age { display: none; }
  .wrap { padding: 16px 12px 30px; }
  .dl { display: none; }
  .tabs a { font-size: 13px; padding: 8px 8px 7px; }
  .tabs a[aria-current="page"] { padding-bottom: 10px; }
  .figs5 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .figs5 .fig:last-child { grid-column: 1 / -1; }
  .fig { box-shadow: 3px 3px 0 var(--ink); padding: 8px 10px; }
  .fig-value { font-size: 21px; }
  .panel { padding: 12px 12px; box-shadow: 4px 4px 0 var(--ink); }
  .stream li { grid-template-columns: 58px minmax(0, 1fr); gap: 8px; }
}
@media (max-width: 719px) { .fig-value { white-space: normal; } }

/* page 2: the whale roster */
.page[hidden] { display: none; }
.page-t { font-size: 44px; line-height: 1.05; margin: 6px 0 8px; }
:root[lang="en"] .page-t { font-size: 38px; }
.roster-top { margin-bottom: 22px; background: linear-gradient(170deg, var(--paper) 60%, var(--sky)); }
.tierbar { margin: 14px 0 12px; }
.tb-lab { font-size: 12px; font-weight: 700; margin-bottom: 4px; }
.tb { display: flex; height: 34px; border: 2.5px solid var(--ink); background: var(--paper); }
.seg { min-width: 0; overflow: hidden; white-space: nowrap; font: 11px/30px var(--mono); padding: 0 5px; border-right: 2px solid var(--ink); }
.seg:last-child { border-right: 0; }
.seg i { font-style: normal; background: var(--paper); color: var(--ink); padding: 1px 3px; border: 1px solid var(--ink); }
.seg b { font-weight: 700; }
.seg-A { background: var(--ink); color: var(--paper); }
.seg-B { background: var(--dots), var(--pink); }
.seg-C { background: var(--hatch), var(--sky); }
.seg-D { background: var(--amber); }
.seg-x { background: #e7e3d9; }
.seg-rest { background: var(--paper); color: var(--ink-2); }
.tiercards { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.tcard { border: 2px solid var(--ink); background: var(--paper); padding: 8px 10px; box-shadow: 3px 3px 0 var(--ink); min-width: 0; }
.tc-h { font-weight: 700; font-size: 13px; display: flex; gap: 6px; align-items: center; margin-bottom: 4px; }
.tcard dl { margin: 0; }
.tcard dl > div { display: flex; justify-content: space-between; gap: 6px; border-bottom: 1px dotted #b3ad9f; font-size: 11.5px; line-height: 1.6; }
.tcard dt { color: var(--ink-2); white-space: nowrap; }
.tcard dd { margin: 0; font: 700 11.5px var(--mono); white-space: nowrap; }
.tier-x { background: #e7e3d9; }
.rctl { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; margin-bottom: 10px; }
.rgrp { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.rlab { font-size: 12px; font-weight: 700; }
.sel { font: 600 12px var(--sans); border: 2px solid var(--ink); background: var(--paper); padding: 2px 6px; box-shadow: 2px 2px 0 var(--sky-d); }
.search { font: 13px var(--mono); border: 2.5px solid var(--ink); background: var(--paper); padding: 5px 9px; min-width: 220px; flex: 1; box-shadow: 3px 3px 0 var(--sky-d); }
.tscroll { overflow-x: auto; margin-top: 8px; border-top: 3px solid var(--ink); }
table.rt { border-collapse: collapse; width: 100%; font-size: 13px; }
.rt th { text-align: left; font-size: 12px; font-weight: 700; padding: 8px 10px 6px 0; border-bottom: 2px solid var(--ink); white-space: nowrap; vertical-align: bottom; }
.rt th.num { text-align: right; }
.rt th .sort { border: 0; background: none; padding: 0; font: inherit; cursor: pointer; text-decoration: underline dotted; text-underline-offset: 3px; }
.rt th[aria-sort="ascending"] .sort, .rt th[aria-sort="descending"] .sort { background: var(--sun); text-decoration: none; padding: 0 3px; }
.rt th .q { margin-left: 4px; }
.rt td { padding: 7px 10px 7px 0; border-bottom: 1.5px dashed #b3ad9f; white-space: nowrap; vertical-align: top; }
.rt td.num { text-align: right; font-family: var(--mono); }
.rt td small { display: block; color: var(--muted); font-size: 11px; font-family: var(--mono); }
.rt tbody tr { cursor: pointer; }
.rt tbody tr:hover, .rt tbody tr:focus-visible { background: #f3efe4; }
.rt .pc { position: sticky; left: 0; background: var(--paper); z-index: 1; }
.pcw { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.rt tbody tr:hover .pc { background: #f3efe4; }
.rt .pc small { flex-basis: 100%; padding-left: 30px; }
.rk { font: 11px var(--mono); color: var(--muted); width: 24px; text-align: right; }
.rt td.empty { text-align: center; color: var(--ink-2); padding: 20px; }
.pager { display: flex; gap: 12px; justify-content: center; align-items: center; margin-top: 14px; font: 12px var(--mono); }
.pager .chip[disabled] { opacity: 0.35; cursor: default; }
@media (max-width: 1000px) { .tiercards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 719px) {
  .page-t, :root[lang="en"] .page-t { font-size: 34px; }
  .tiercards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .seg { font-size: 10px; padding: 0 3px; }
  .search { min-width: 0; width: 100%; }
  .rt .pc { box-shadow: 4px 0 4px -3px rgba(20, 18, 16, 0.25); }
}

/* the front: six panels on a grid; each opens with its question as a brush title */
.ed { font: 700 12px var(--mono); background: var(--ink); color: var(--paper); padding: 2px 7px; }
.fgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; align-items: start; }
.fgrid .wide { grid-column: 1 / -1; }
.fp-h { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.fp-h h2 { font-size: 30px; line-height: 1.15; margin: 0; }
:root[lang="en"] .fp-h h2 { font-size: 25px; }
.fp > .note { margin-bottom: 10px; }
#s-cost { background: linear-gradient(170deg, var(--paper) 65%, var(--amber)); }
#s-size { background: linear-gradient(170deg, var(--paper) 65%, var(--pink)); }
#s-flow { background: linear-gradient(170deg, var(--paper) 70%, var(--sky)); }

/* one small bar chart */
.mcs { display: grid; gap: 14px; }
.mc { margin: 0; min-width: 0; }
.mc figcaption, .mc-cap { font-size: 13px; display: flex; gap: 6px; align-items: center; }
.mc-read { font: 12px var(--mono); color: var(--ink-2); min-height: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mc-plot { position: relative; display: flex; gap: 3px; height: 78px; border-bottom: 2px solid var(--ink); }
.mc-plot::before { content: ""; position: absolute; left: 0; right: 0; bottom: var(--z); border-top: 1.5px solid var(--ink); }
.col { position: relative; flex: 1; min-width: 0; height: 100%; border: 0; padding: 0; background: none; cursor: pointer; }
.col:hover, .col.on { background: rgba(20, 18, 16, 0.07); }
.seg-b { position: absolute; left: 1px; right: 1px; border: 1.5px solid var(--ink); }
.seg-b[style*="top"] { border-top: 0; }
.seg-b[style*="bottom"] { border-bottom: 0; }
.ink { background: var(--ink); }
.sky { background: var(--dots), var(--sky); }
.pink { background: repeating-linear-gradient(-45deg, var(--pink-d) 0 1.4px, transparent 1.4px 4.5px), var(--pink); }
.amber { background: var(--amber); }
.col.part .seg-b { background: repeating-linear-gradient(-45deg, var(--ink) 0 1.2px, var(--paper) 1.2px 4px); opacity: 0.85; }
.tick { position: absolute; left: -1px; right: -1px; height: 0; border-top: 3px solid var(--red); }
.mc-x { display: flex; justify-content: space-between; font: 11px var(--mono); color: var(--muted); margin-top: 2px; }
.lg { display: flex; gap: 12px; font-size: 11.5px; margin: 2px 0 4px; }
.lg span { display: inline-flex; gap: 4px; align-items: center; }
.lg .sw { width: 12px; height: 12px; border: 1.5px solid var(--ink); display: inline-block; }
.lg .sw.tickk { border: 0; border-top: 3px solid var(--red); height: 3px; }
.flow2 { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 26px; align-items: start; }
.flow2 .mc-plot { height: 150px; }

/* net flow by group: a bar either side of zero, in each of two windows */
.hbt { width: 100%; border-collapse: collapse; font-size: 12.5px; margin-top: 6px; }
.hbt th { text-align: left; font-weight: 700; padding: 5px 8px 5px 0; white-space: nowrap; }
.hbt thead th { font-size: 11.5px; border-bottom: 2px solid var(--ink); }
.hbt tbody th .tier { margin-right: 4px; }
.hbt td { padding: 5px 0 5px 8px; border-bottom: 1px dotted #b3ad9f; width: 42%; }
.hb { white-space: nowrap; }
.hb-w { display: block; position: relative; height: 10px; border-left: 0; }
.hb-w::before { content: ""; position: absolute; left: 50%; top: -3px; bottom: -3px; border-left: 1.5px solid var(--ink); }
.hb-b { position: absolute; top: 0; height: 10px; border: 1.5px solid var(--ink); }
.hb-b.pos { left: 50%; background: var(--dots), var(--sky); }
.hb-b.neg { right: 50%; background: repeating-linear-gradient(-45deg, var(--pink-d) 0 1.4px, transparent 1.4px 4.5px), var(--pink); }
.hb .num { display: block; font-size: 12px; text-align: center; }

/* the tier table */
.rt.tt tbody th { text-align: left; padding: 7px 10px 7px 0; border-bottom: 1.5px dashed #b3ad9f; white-space: nowrap; font-weight: 700; }
.rt.tt tbody tr { cursor: default; }
.rt.tt tbody tr:hover { background: none; }
.rt.tt tr.sum th, .rt.tt tr.sum td { border-top: 2.5px solid var(--ink); background: #f3efe4; }
.rt.tt tr.whole th, .rt.tt tr.whole td { background: var(--amber); }
.rt.tt small { font-weight: 400; color: var(--muted); }

/* money events */
.log { list-style: none; margin: 8px 0 0; padding: 0; }
.log li { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 8px; padding: 7px 4px; border-top: 1.5px dashed #b3ad9f; font-size: 13px; align-items: center; }
.log li:first-child { border-top: 2px solid var(--ink); }
.log li[data-wallet] { cursor: pointer; }
.log li[data-wallet]:hover { background: #f3efe4; }
.log .t span { display: block; }
.log .t span:last-child { color: var(--muted); font-size: 11px; }
.log .lg-l { display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: center; }
.log li.out .amt { text-decoration: underline wavy var(--pink-d); text-underline-offset: 4px; }
.log code { font: 11px var(--mono); word-break: break-all; }
@media (max-width: 1000px) {
  .fgrid, .flow2 { grid-template-columns: 1fr; }
  .fgrid .wide { grid-column: auto; }
}
@media (max-width: 719px) {
  .fp-h h2, :root[lang="en"] .fp-h h2 { font-size: 24px; }
  .mc-plot { gap: 2px; }
  .figs5 .fig:last-child { grid-column: 1 / -1; }
}

/* the file's money box */
.box.money { margin: 12px 0; background: linear-gradient(170deg, var(--paper) 55%, var(--amber)); }
.box.money .kv .sub { font-weight: 900; border-bottom: 2px solid var(--ink); }
.fbody .box.money h4 { margin: 0 0 4px; padding: 0; border: 0; }

/* page 3: the stress test */
#p-stress .fgrid { margin-top: 22px; }
.sim { background: linear-gradient(170deg, var(--paper) 70%, var(--pink)); }
.sc { margin: 10px 0 12px; flex-wrap: wrap; }
.sim-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 22px; align-items: start; }
.sim-plot { position: relative; height: 300px; border-left: 2px solid var(--ink); border-bottom: 2px solid var(--ink); background: var(--paper); }
.sim-plot svg, .lc svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.sim-plot .below { fill: rgba(173, 20, 66, 0.06); }
.ln { fill: none; stroke: #a9a395; stroke-width: 1.5; }
.ln.on { stroke: var(--ink); stroke-width: 3; }
.ref { position: absolute; left: 0; right: 0; height: 0; border-top: 2px dashed var(--red); pointer-events: none; }
.ref.zero { border-top: 1.5px solid var(--ink); }
.ref span { position: absolute; right: 4px; top: -18px; font: 700 11px var(--mono); color: var(--red); background: var(--paper); padding: 0 3px; }
.ref.zero span { color: var(--ink); }
.cursor { position: absolute; top: 0; bottom: 0; width: 0; border-left: 2.5px solid var(--sky-d); pointer-events: none; transition: left 0.08s; }
:root[data-motion="off"] .cursor { transition: none; }
.sim-x { display: flex; justify-content: space-between; font: 11px var(--mono); color: var(--muted); margin-top: 2px; }
.slider { position: relative; margin: 10px 0 0; }
.slider input { width: 100%; accent-color: var(--ink); height: 28px; cursor: pointer; }
.marks { position: absolute; left: 8px; right: 8px; top: -2px; height: 8px; pointer-events: none; }
.marks i { position: absolute; top: 0; width: 0; height: 10px; border-left: 3px solid var(--red); }
.marks i.z { border-left-color: var(--ink); height: 12px; }
.x-stamp { margin-top: 8px; }
.x-stamp:empty { display: none; }
.stamp.big { font-size: 17px; padding: 6px 12px; border-width: 3px; }
.x-read { display: grid; gap: 12px; }
.x-read .fig { background: var(--paper); }
.x-read .fig::after { display: none; }
.x-read .fig-sub { line-height: 1.5; }
.rt.bp { margin-top: 16px; }
.rt.bp tbody th { text-align: left; padding: 7px 10px 7px 0; border-bottom: 1.5px dashed #b3ad9f; font-weight: 700; white-space: nowrap; }
.rt.bp tbody tr { cursor: default; }
.rt.bp tbody tr.on { background: var(--sun); }
.mcs.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.lc { position: relative; height: 120px; border-bottom: 2px solid var(--ink); margin-top: 6px; }
.lc .z0 { stroke: var(--ink); stroke-width: 1; stroke-dasharray: 4 3; }
.lc .mid { stroke: var(--sky-d); stroke-width: 1.5; }
.mcs.two .kv { margin-top: 8px; font-size: 12px; }
.oi { margin: 8px 0 14px; }
.oi-h { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; flex-wrap: wrap; }
.oi-bar { display: flex; height: 26px; border: 2.5px solid var(--ink); margin-top: 4px; }
.oi-bar span { min-width: 0; overflow: hidden; display: flex; align-items: center; padding: 0 6px; }
.oi-bar span + span { border-left: 2px solid var(--ink); justify-content: flex-end; }
.oi-bar i { font: 700 11px var(--mono); font-style: normal; background: var(--paper); border: 1px solid var(--ink); padding: 0 3px; white-space: nowrap; }
#x-back .big { font: 700 34px/1.15 var(--mono); margin-top: 6px; }
.kv.back { margin-top: 12px; font-size: 13.5px; }
@media (max-width: 1000px) { .sim-grid { grid-template-columns: 1fr; } .x-read { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 719px) {
  .sim-plot { height: 220px; }
  .mcs.two { grid-template-columns: 1fr; }
  .stamp.big { font-size: 14px; }
}
.mc-plot.dense { gap: 1px; }
.mc-plot.dense .seg-b { left: 0; right: 0; border-width: 1px; }
.rt.bp { min-width: 520px; }

/* page 4: the market */
.dv { margin: 14px 0 6px; }
.dv-h { font-size: 15px; margin-bottom: 4px; }
.dv-row { display: grid; grid-template-columns: 1fr 1fr; border-left: 0; position: relative; }
.dv-row::after { content: ""; position: absolute; left: 50%; top: -4px; bottom: -4px; border-left: 2.5px solid var(--ink); }
.dv-s { position: relative; min-height: 54px; }
.dv-b { position: absolute; top: 0; height: 26px; border: 2px solid var(--ink); }
.dv-s.long .dv-b { right: 0; border-right: 0; }
.dv-s.short .dv-b { left: 0; border-left: 0; }
.dv-t { position: relative; padding-top: 30px; font-size: 12px; display: flex; flex-direction: column; }
.dv-s.long .dv-t { align-items: flex-end; padding-right: 10px; text-align: right; }
.dv-s.short .dv-t { padding-left: 10px; }
.dv-t b { font: 700 13px var(--mono); }
.dv-t span { color: var(--ink-2); font-family: var(--mono); }
#m-pos { background: linear-gradient(170deg, var(--paper) 70%, var(--sky)); margin-bottom: 22px; }
#m-styles .filters { margin: 8px 0 12px; }
.stb { margin: 4px 0 10px; }
.st-hedge { background: var(--dots), var(--sky); }
.st-high_lev { background: repeating-linear-gradient(-45deg, var(--pink-d) 0 1.4px, transparent 1.4px 4.5px), var(--pink); }
.st-liq { background: var(--ink); }
.st-other { background: var(--amber); }
i.sw[class*="st-"] { display: inline-block; width: 12px; height: 12px; border: 1.5px solid var(--ink); margin-right: 6px; vertical-align: -1px; }
.stb .seg i { white-space: nowrap; }

/* page 5: PAPER */
#pp-gov { margin-bottom: 22px; background: linear-gradient(170deg, var(--paper) 65%, var(--amber)); }
.gov-st { margin: 6px 0 10px; font-size: 13px; }
.gov-st code { font: 600 12.5px var(--mono); word-break: break-all; }
.rt.pg tr.ch { background: var(--sun); }
.rt.pg td .stamp { font-size: 11px; padding: 2px 5px; }
.sim-box { margin-top: 16px; background: var(--paper); }
.sim-box p { margin: 0; font-size: 13.5px; }
#pp-rate .big, #pp-stake .big { font: 700 32px/1.15 var(--mono); }
.lc.rate { height: 200px; margin: 8px 0 0; border-left: 2px solid var(--ink); }
.ln.proj { stroke: var(--ink); stroke-width: 2; stroke-dasharray: 6 5; }
.lc-y { position: absolute; left: 4px; font: 11px var(--mono); color: var(--muted); }
.lc-now { position: absolute; bottom: 4px; transform: translateX(-50%); font: 700 11px var(--mono); color: var(--sky-d); background: var(--paper); padding: 0 3px; }
#pp-rate .rt.tt { margin-top: 12px; }
.tb.stk { height: 22px; margin: 6px 0 10px; }
.rt.pg th { white-space: normal; }
.rt.pg th small { display: block; font-weight: 400; color: var(--ink-2); font-size: 11.5px; }
@media (max-width: 719px) {
  .tabs { gap: 2px; }
  .tabs a { font-size: 12px; padding: 8px 4px 7px; border-width: 2px; letter-spacing: -0.02em; }
  .rt.pg td, .rt.pg th { padding-right: 6px; }
}

/* page 6: look up a wallet */
.wl-top { margin-bottom: 22px; background: linear-gradient(170deg, var(--paper) 65%, var(--sky)); }
.wl-form { display: flex; gap: 10px; margin: 12px 0 6px; flex-wrap: wrap; }
.wl-form .search { max-width: 560px; }
.wl-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.wl-grid[hidden] { display: none; }
.wl-share img { display: block; width: 100%; height: auto; border: 0; }
.wl-tools { display: flex; gap: 10px; align-items: center; margin: 12px 0 6px; }
.wl-file { padding: 0; overflow: hidden; }
.wl-file .fbody { padding-bottom: 16px; }
@media (max-width: 1000px) { .wl-grid { grid-template-columns: 1fr; } }

/* page 7: rankings */
#rk-conc { background: linear-gradient(170deg, var(--paper) 65%, var(--sky)); }
.cc { margin: 14px 0; }
.cc-h { display: flex; justify-content: space-between; font-size: 13.5px; }
.cc-h b { font-size: 20px; }
.cc-bar { height: 22px; border: 2.5px solid var(--ink); background: var(--paper); margin-top: 4px; }
.cc-bar span { display: block; height: 100%; border-right: 2px solid var(--ink); }
.mcs.dist .mc-x { display: none; }
.dist-x { display: flex; gap: 3px; margin-top: 4px; }
.dist-x span { flex: 1; min-width: 0; font: 10px/1.2 var(--mono); color: var(--ink-2); text-align: center; white-space: nowrap; overflow: hidden; }
.dist-x + .note { margin-top: 6px; }
.rk-tabs { margin: 10px 0 6px; }
.rkt td.hot { background: var(--sun); font-weight: 700; }
.rkt td.rk { color: var(--muted); }
.rkt th:nth-child(2) { position: sticky; left: 0; background: var(--paper); }
@media (max-width: 719px) {
  .dist-x span { font-size: 8px; letter-spacing: -0.04em; }
  .tabs { -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); padding-right: 24px; }
}
