/* VANEMERE base.css: design tokens (style A, weather map / synoptic chart), fonts, reset, type, site chrome, components.
   Shared by every page (APP owns it; LANDING imports it read-only).
   Rules: chart paper + navy ink for every line and text; ONE signal red, used only for the leading/winning pool (.is-leader, .signal).
   No dark mode, no gradients as decoration, no bloom/grain/vignette. Headlines = Barlow Condensed (self-hosted), data = IBM Plex Mono (self-hosted). */

@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 600; font-display: swap; src: url('/assets/fonts/barlow-condensed-600-latin.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 800; font-display: swap; src: url('/assets/fonts/barlow-condensed-800-latin.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/fonts/ibm-plex-mono-latin-400.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url('/assets/fonts/ibm-plex-mono-latin-500.woff2') format('woff2'); }

:root {
  --paper: #F5F3EC;        /* chart paper */
  --paper-2: #ECE9DF;      /* recessed paper: inputs, code */
  --ink: #14214A;          /* navy ink: all text and lines */
  --ink-2: #4B5779;        /* secondary text (contrast 6.5:1 on paper) */
  --ink-3: #7A84A0;        /* tertiary: hairline labels, disabled */
  --line: rgba(20, 33, 74, .16);
  --line-2: rgba(20, 33, 74, .34);
  --signal: #C8182B;       /* the one accent: leading / winning pool only */
  --signal-soft: rgba(200, 24, 43, .08);

  --display: 'Barlow Condensed', 'Arial Narrow', 'Helvetica Neue', Arial, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --body: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

  --gutter: 16px;
  --max: 1240px;
  --nav-h: 56px;
  --mbar-h: 0px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}
@media (min-width: 720px) { :root { --gutter: 28px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 16px); background: var(--paper); }
body {
  margin: 0; min-height: 100vh; background: var(--paper); color: var(--ink);
  font: 400 15.5px/1.6 var(--body); font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--ink); }
p a, li a, td a, dd a, .prose a { text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; text-decoration-thickness: 1px; }
p a:hover, li a:hover, td a:hover, dd a:hover, .prose a:hover { text-decoration-color: var(--ink); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; border-radius: 0; }
::selection { background: var(--ink); color: var(--paper); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 28px 0; }
code, kbd { font-family: var(--mono); font-size: .88em; background: var(--paper-2); padding: 1px 5px; border: 1px solid var(--line); word-break: break-word; }
pre { font: 400 12.5px/1.55 var(--mono); background: var(--paper-2); border: 1px solid var(--line); padding: 12px 14px; overflow-x: auto; margin: 0 0 14px; }
pre code { background: none; border: 0; padding: 0; font: inherit; }
.num, .mono { font-family: var(--mono); font-feature-settings: 'tnum' 1; }

h1, h2, h3, h4, .display { font-family: var(--display); font-weight: 800; margin: 0; line-height: 1.02; letter-spacing: 0; color: var(--ink); }
h1 { font-size: clamp(38px, 6vw, 62px); }
h2 { font-size: clamp(26px, 3.4vw, 36px); }
h3 { font-size: 21px; font-weight: 600; }
h4 { font: 500 11.5px/1.3 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); }
p { margin: 0 0 12px; }
ul, ol { margin: 0 0 12px; padding-left: 22px; }
li { margin: 0 0 5px; }
dl { margin: 0; }
strong, b { font-weight: 600; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--ink-2); }
.faint { color: var(--ink-3); }
.small { font-size: 13.5px; }
.tiny { font-size: 12px; }
.label { font: 500 11px/1.3 var(--mono); text-transform: uppercase; letter-spacing: .05em; color: var(--ink-2); }
.signal { color: var(--signal); }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nowrap { white-space: nowrap; }
.break { word-break: break-all; }
[hidden] { display: none !important; }

/* ── page scaffold ───────────────────────────────────── */
.page { padding-top: 36px; padding-bottom: 8px; }
.page-h { display: grid; gap: 10px; margin-bottom: 26px; max-width: 78ch; }
.page-h .lede { font-size: 17px; color: var(--ink-2); margin: 0; }
.grid-2 { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 899px) { .grid-2 { grid-template-columns: minmax(0, 1fr); } }
.stack { display: grid; gap: 16px; }
.section { margin-top: 44px; }
.section > h2 { margin-bottom: 14px; }
.prose { max-width: 74ch; }
.prose h3 { margin: 26px 0 8px; }

/* ── buttons ─────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 16px;
  border: 1.5px solid var(--ink); background: transparent; color: var(--ink); border-radius: 3px;
  font: 600 15px/1 var(--display); letter-spacing: .02em; white-space: nowrap; transition: background .15s, color .15s, opacity .15s;
}
.btn svg { width: 14px; height: 14px; flex: none; }
.btn:hover { background: rgba(20, 33, 74, .07); color: var(--ink); }
.btn[disabled], .btn.is-disabled { opacity: .4; cursor: not-allowed; }
.btn[disabled]:hover { background: transparent; }
.btn-sm { min-height: 32px; padding: 0 11px; font-size: 14px; }
.btn-lg { min-height: 48px; padding: 0 24px; font-size: 18px; }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: #0C1536; color: var(--paper); }
.btn-primary[disabled]:hover { background: var(--ink); }
.btn-block { width: 100%; }
.icon-btn { display: inline-grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--line-2); color: var(--ink); border-radius: 3px; transition: background .15s; }
.icon-btn svg { width: 15px; height: 15px; }
.icon-btn:hover { background: rgba(20, 33, 74, .07); }
.link-btn { text-decoration: underline; text-underline-offset: 3px; color: var(--ink); font-size: inherit; }

.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 30px; padding: 0 10px; border: 1px solid var(--line-2); border-radius: 3px; font: 400 12.5px/1 var(--mono); color: var(--ink); background: transparent; white-space: nowrap; }
.chip svg { width: 12px; height: 12px; flex: none; color: var(--ink-2); }
.tag { display: inline-flex; align-items: center; gap: 6px; min-height: 20px; padding: 2px 6px; font: 500 10.5px/1 var(--mono); text-transform: uppercase; letter-spacing: .04em; border: 1px solid var(--line-2); border-radius: 2px; white-space: nowrap; color: var(--ink-2); background: transparent; }
.tag-ink { color: var(--paper); background: var(--ink); border-color: var(--ink); }
.tag-signal { color: var(--signal); border-color: var(--signal); background: var(--signal-soft); }
.tag-warn { border-style: dashed; color: var(--ink); }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); flex: none; }
.dot.on { background: var(--ink); }
.dot.signal { background: var(--signal); }
.dot.blink { animation: vm-blink 1.2s steps(2, jump-none) infinite; }
@keyframes vm-blink { 50% { opacity: .25; } }

/* ── cards & readouts ────────────────────────────────── */
.card { border: 1px solid var(--line-2); background: transparent; border-radius: 3px; }
.card.is-leader { border-color: var(--signal); box-shadow: 0 0 0 1px var(--signal); }
.card-h { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 8px 14px; border-bottom: 1px solid var(--line); }
.card-h h2, .card-h h3 { font-size: 20px; }
.card-h .push { margin-left: auto; }
.card-b { padding: 14px; }
.panel { border: 1px solid var(--line-2); border-radius: 3px; padding: 14px; background: var(--paper); }
.stat { display: grid; gap: 6px; padding: 14px; border: 1px solid var(--line-2); border-radius: 3px; min-width: 0; }
.stat .v { font: 500 clamp(17px, 2.2vw, 22px)/1.15 var(--mono); word-break: break-word; }
.stat .sub { font-size: 12.5px; color: var(--ink-2); }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.kv { display: grid; grid-template-columns: auto 1fr; }
.kv > * { padding: 9px 0; border-bottom: 1px dashed var(--line-2); }
.kv dt { color: var(--ink-2); font-size: 13px; padding-right: 16px; }
.kv dd { margin: 0; text-align: right; font-family: var(--mono); font-size: 13.5px; word-break: break-word; }
.kv dd.t { font-family: var(--body); }

/* ── tables → cards on phones ────────────────────────── */
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font: 500 11px/1.2 var(--mono); text-transform: uppercase; letter-spacing: .05em; color: var(--ink-2); padding: 10px 12px; border-bottom: 1.5px solid var(--ink); white-space: nowrap; }
.tbl td { padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .r { text-align: right; white-space: nowrap; }
.tbl td.m, .tbl td .m { font-family: var(--mono); font-size: 13px; }
.tbl tbody tr:hover td { background: rgba(20, 33, 74, .035); }
.tbl tr.is-leader td { background: var(--signal-soft); }
.tbl tr.is-leader td:first-child { box-shadow: inset 3px 0 0 var(--signal); }
.tbl tr.is-warn td { background: repeating-linear-gradient(135deg, transparent 0 7px, rgba(20, 33, 74, .05) 7px 8px); }
.tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line-2); border-radius: 3px; }
@media (max-width: 600px) {
  .tbl-cards thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .tbl-cards, .tbl-cards tbody, .tbl-cards tr, .tbl-cards td { display: block; width: 100%; }
  .tbl-cards tr { padding: 12px 14px; border-bottom: 1px solid var(--line-2); }
  .tbl-cards tr:last-child { border-bottom: 0; }
  .tbl-cards td { display: flex; justify-content: space-between; gap: 14px; padding: 4px 0; border: 0; text-align: right; }
  .tbl-cards td::before { content: attr(data-l); font: 500 11px/1.6 var(--mono); text-transform: uppercase; letter-spacing: .05em; color: var(--ink-2); text-align: left; flex: none; }
  .tbl-cards td.r { white-space: normal; }
  .tbl-cards td[data-l=""]::before, .tbl-cards td:not([data-l])::before { content: none; }
  .tbl-cards tr.is-leader td:first-child { box-shadow: none; }
  .tbl-cards tr.is-leader { box-shadow: inset 3px 0 0 var(--signal); }
}

/* ── forms ───────────────────────────────────────────── */
.input { display: block; width: 100%; height: 44px; padding: 0 12px; background: var(--paper-2); border: 1px solid var(--line-2); border-radius: 3px; color: var(--ink); font: 400 15px var(--mono); }
.input:focus { outline: 2px solid var(--ink); outline-offset: 0; }
.input.bad { border-color: var(--signal); }
textarea.input { height: auto; min-height: 84px; padding: 10px 12px; resize: vertical; }
.field { display: grid; gap: 6px; margin-bottom: 12px; }
.field > label { font: 500 11px/1.3 var(--mono); text-transform: uppercase; letter-spacing: .05em; color: var(--ink-2); }
.row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.input-row { display: flex; gap: 8px; }
.input-row .input { flex: 1; min-width: 0; }

/* ── nav ─────────────────────────────────────────────── */
.vm-skiplink { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--ink); color: var(--paper); padding: 8px 12px; }
.vm-skiplink:focus { top: 8px; }
.vm-nav { position: sticky; top: 0; z-index: 40; height: var(--nav-h); background: var(--paper); border-bottom: 1px solid var(--line-2); }
.vm-nav.overlay { position: fixed; left: 0; right: 0; background: rgba(245, 243, 236, .9); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.vm-nav > .wrap { height: 100%; display: flex; align-items: center; gap: 18px; max-width: none; }
.vm-logo { display: inline-flex; align-items: center; gap: 9px; flex: none; color: var(--ink); }
.vm-logo svg { width: 28px; height: 28px; }
.vm-logo span { font: 800 23px/1 var(--display); letter-spacing: .01em; padding-top: 2px; }
.vm-links { display: flex; align-items: stretch; height: 100%; }
.vm-links a { display: inline-flex; align-items: center; padding: 0 13px; font: 600 16px/1 var(--display); letter-spacing: .03em; text-transform: uppercase; color: var(--ink-2); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.vm-links a:hover { color: var(--ink); }
.vm-links a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ink); }
.vm-nav-right { margin-left: auto; display: flex; align-items: center; gap: 8px; min-width: 0; }
.vm-ca-chip { cursor: pointer; }
.vm-ca-chip:hover { background: rgba(20, 33, 74, .06); }
.vm-ca-k { font: 500 10px/1 var(--mono); color: var(--ink-2); }
.vm-burger { display: none; }
.vm-drawer { display: none; }
.vm-mbar { display: none; }
@media (max-width: 1139px) { .vm-hide-md { display: none !important; } }
@media (max-width: 859px) {
  :root { --mbar-h: 64px; }
  .vm-links, .vm-hide-sm { display: none !important; }
  .vm-burger { display: inline-grid; width: 44px; height: 44px; }
  .vm-drawer-row .icon-btn { width: 44px; height: 44px; }
  .vm-drawer { position: fixed; z-index: 39; inset: var(--nav-h) 0 auto 0; background: var(--paper); border-bottom: 1px solid var(--line-2); padding: 4px var(--gutter) 18px; transform: translateY(-110%); transition: transform .22s var(--ease); display: block; visibility: hidden; }
  .vm-drawer.open { transform: none; visibility: visible; }
  .vm-dl { display: flex; justify-content: space-between; align-items: baseline; min-height: 52px; padding: 14px 0; border-bottom: 1px solid var(--line); font: 800 24px/1 var(--display); text-transform: uppercase; }
  .vm-dl .label { font-size: 11px; font-weight: 500; }
  .vm-dl[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; }
  .vm-drawer-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding-top: 14px; }
  .vm-mbar { display: flex; align-items: center; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 41; height: var(--mbar-h);
    padding: 0 var(--gutter) env(safe-area-inset-bottom); background: var(--paper); border-top: 1px solid var(--line-2); }
  .vm-mbar .vm-ca-chip { flex: 1; min-width: 0; justify-content: space-between; height: 44px; }
  .vm-mbar .vm-ca-chip .num { overflow: hidden; text-overflow: ellipsis; }
  .vm-mbar .btn { flex: none; min-height: 44px; }
  body.has-mbar { padding-bottom: calc(var(--mbar-h) + env(safe-area-inset-bottom)); }
}
@media (max-width: 420px) { .vm-logo span { font-size: 20px; } .vm-nav > .wrap { gap: 10px; } .vm-mbar .btn { padding: 0 10px; font-size: 14px; } }

.vm-connect .dot { background: var(--ink); }
.vm-connect.wrong { border-style: dashed; }

/* countdown */
.vm-countdown { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 7px; font: 500 12px/1.2 var(--mono); white-space: nowrap; text-transform: uppercase; }
.vm-countdown .soon { color: var(--ink-2); }
.vm-countdown .c { display: inline-flex; align-items: baseline; gap: 1px; }
.vm-countdown .c b { font-weight: 500; }
.vm-countdown .c small { font-size: 9px; color: var(--ink-2); }
.vm-countdown .when { color: var(--ink-2); font: 400 11.5px/1 var(--mono); margin-left: 4px; cursor: help; text-transform: none; }
.vm-nav .vm-countdown .when { display: none; }
.vm-countdown.big { font-size: 22px; gap: 12px; }
.vm-countdown.big .c small { font-size: 11px; }

/* CA strip */
.vm-ca { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.vm-ca-tag { font: 500 11px/1 var(--mono); text-transform: uppercase; color: var(--ink-2); letter-spacing: .05em; }
.vm-ca-addr { font: 400 13px/1.3 var(--mono); word-break: break-all; padding: 6px 10px; border: 1px solid var(--line-2); border-radius: 3px; }
.vm-ca-addr.pending { color: var(--ink-2); }
.vm-ca-note { flex-basis: 100%; font-size: 12.5px; color: var(--ink-2); }

/* ── footer ──────────────────────────────────────────── */
.vm-foot { border-top: 1px solid var(--line-2); margin-top: 72px; padding: 36px 0 30px; }
.vm-foot-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr; gap: 28px; }
.vm-foot h2 { font: 500 11px/1 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); margin: 4px 0 14px; }
.vm-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: 14px; }
.vm-foot ul a:hover { text-decoration: underline; text-underline-offset: 3px; }
.vm-foot-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; border-top: 1px solid var(--line); margin-top: 28px; padding-top: 18px; }
.vm-legal { font-size: 13px; line-height: 1.6; color: var(--ink-2); margin: 18px 0 0; max-width: 120ch; }
.vm-legal b { color: var(--ink); font-weight: 600; }
@media (max-width: 760px) { .vm-foot-grid { grid-template-columns: 1fr 1fr; } .vm-foot-grid > :first-child { grid-column: 1 / -1; } }

/* ── dialog + toast ──────────────────────────────────── */
.vm-dialog { background: var(--paper); color: var(--ink); border: 1.5px solid var(--ink); border-radius: 3px; padding: 0; width: min(420px, calc(100vw - 32px)); }
.vm-dialog::backdrop { background: rgba(20, 33, 74, .45); }
.vm-dialog header { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-bottom: 1px solid var(--line-2); }
.vm-dialog header h3 { font-size: 20px; }
.vm-dialog .body { padding: 14px; }
.vm-dialog .actions { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 14px; border-top: 1px solid var(--line); }
.vm-wallets { display: grid; gap: 6px; }
.vm-wallets button { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 3px; text-align: left; font-size: 15px; }
.vm-wallets button:hover { background: rgba(20, 33, 74, .07); }
.vm-wallets img { width: 24px; height: 24px; }

.vm-toast { position: fixed; z-index: 90; left: 50%; bottom: calc(20px + var(--mbar-h)); transform: translate(-50%, 16px); opacity: 0; pointer-events: none; max-width: calc(100vw - 32px); width: max-content;
  background: var(--ink); color: var(--paper); border-radius: 3px; padding: 11px 16px; font-size: 14px; transition: opacity .2s, transform .2s var(--ease); }
.vm-toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.vm-toast a { text-decoration: underline; color: var(--paper); }
.vm-toast.err { outline: 2px dashed var(--paper); outline-offset: -5px; }

/* ── states ──────────────────────────────────────────── */
.empty { display: grid; justify-items: start; gap: 8px; padding: 24px 18px; border: 1px dashed var(--line-2); border-radius: 3px; color: var(--ink-2); }
.empty h3 { color: var(--ink); }
.empty p { margin: 0; max-width: 64ch; }
.skel { display: inline-block; height: 1em; min-width: 40px; background: var(--line); animation: vm-skel 1.1s steps(2, jump-none) infinite; vertical-align: middle; }
@keyframes vm-skel { 50% { background: rgba(20, 33, 74, .08); } }
.err-box { border: 1px solid var(--line-2); border-left: 3px solid var(--ink); border-radius: 3px; padding: 10px 12px; font-size: 14px; }
.note { border-left: 3px solid var(--ink); padding: 9px 13px; font-size: 14px; color: var(--ink); background: var(--paper-2); margin: 0 0 14px; }
.note.warn { border-left-style: dashed; }
.banner { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 11px 14px; border: 1px solid var(--line-2); border-radius: 3px; background: var(--paper-2); font-size: 14.5px; }
.banner.warn { border-style: dashed; border-color: var(--ink); }
.banner .tag { flex: none; }
.stale-badge { display: inline-flex; font: 500 11px/1 var(--mono); padding: 3px 6px; border: 1px dashed var(--ink); border-radius: 2px; color: var(--ink); background: var(--paper); text-transform: none; }
.example-badge { font: 500 10.5px/1 var(--mono); text-transform: uppercase; letter-spacing: .05em; color: var(--ink-2); border: 1px dashed var(--ink-3); padding: 2px 5px; border-radius: 2px; }

.bar { position: relative; height: 6px; background: var(--paper-2); border: 1px solid var(--line-2); border-radius: 1px; overflow: hidden; }
.bar > i { position: absolute; inset: 0 auto 0 0; background: var(--ink); }
.bar.signal > i { background: var(--signal); }

/* ── pool cards (vote / pools / try panel) ───────────── */
.pool-list { display: grid; gap: 10px; }
.pool { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 4px 14px; align-items: center; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 3px; cursor: pointer; text-align: left; width: 100%; background: transparent; }
.pool:hover { background: rgba(20, 33, 74, .04); }
.pool[aria-pressed="true"], .pool.selected { outline: 2px solid var(--ink); outline-offset: -1px; }
.pool.is-leader { border-color: var(--signal); }
.pool.is-leader[aria-pressed="true"] { outline-color: var(--signal); }
.pool .idx { font: 500 12px/1 var(--mono); color: var(--ink-2); min-width: 22px; }
.pool .nm { font: 600 18px/1.15 var(--display); letter-spacing: .01em; display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; }
.pool .nm .fee { font: 400 12px/1 var(--mono); color: var(--ink-2); }
.pool .meta { grid-column: 2 / 4; font: 400 12.5px/1.45 var(--mono); color: var(--ink-2); display: flex; flex-wrap: wrap; gap: 2px 14px; }
.pool .votes { text-align: right; font: 500 13px/1.2 var(--mono); }
.pool .warn { grid-column: 2 / 4; font-size: 12.5px; border: 1px dashed var(--ink); border-radius: 2px; padding: 3px 7px; }
.sheet-backdrop { display: none; }
@media (max-width: 719px) {
  .sheet { position: fixed; z-index: 60; left: 0; right: 0; bottom: 0; max-height: 82vh; overflow: auto; background: var(--paper); border-top: 1.5px solid var(--ink); padding: 16px var(--gutter) calc(20px + env(safe-area-inset-bottom)); box-shadow: 0 -8px 24px rgba(20, 33, 74, .18); }
  .sheet-backdrop.on { display: block; position: fixed; z-index: 59; inset: 0; background: rgba(20, 33, 74, .35); }
}

/* steps */
.steps { display: grid; gap: 10px; counter-reset: s; padding: 0; list-style: none; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: start; margin: 0; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 26px; height: 26px; border: 1.5px solid var(--ink); border-radius: 50%; font: 500 12px/1 var(--mono); }
.steps li.done::before { background: var(--ink); color: var(--paper); content: '✓'; }

/* timeline figure (docs) */
.timeline { display: grid; gap: 0; border: 1px solid var(--line-2); border-radius: 3px; }
.timeline > div { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 14px; padding: 12px 14px; border-bottom: 1px solid var(--line); align-items: baseline; }
.timeline > div:last-child { border-bottom: 0; }
.timeline .e { font: 800 22px/1 var(--display); }
.timeline .d { font: 400 13px/1.5 var(--mono); }
.timeline .d b { font-weight: 500; }
.timeline .is-live { box-shadow: inset 3px 0 0 var(--ink); }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* touch targets: 44 px on phones */
@media (max-width: 719px) {
  .btn, .btn-sm, .btn-lg, .filter, .icon-btn, .chip, .vm-logo, .link-btn { min-height: 44px; }
  .icon-btn { min-width: 44px; }
  .toc a { min-height: 44px; display: inline-flex; align-items: center; }
  .tbl-cards td a { display: inline-flex; align-items: center; min-height: 32px; }
}
