/* B1 Ledger. Warm stone daylight, serif figures, rules instead of cards. */
@font-face { font-family: "Instrument Sans"; src: url("../fonts/instrument-sans-latin-wdth-normal.woff2") format("woff2"); font-weight: 400 700; font-stretch: 75% 100%; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("../fonts/instrument-serif-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("../fonts/instrument-serif-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Fragment Mono"; src: url("../fonts/fragment-mono-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --sans: "Instrument Sans", ui-sans-serif, system-ui, sans-serif;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --mono: "Fragment Mono", ui-monospace, monospace;
  --side-w: 244px; --drawer-w: 500px;
  --ease: cubic-bezier(0.2, 0.9, 0.25, 1); --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  --r-s: 6px; --r-m: 10px; --r-l: 16px;
}
:root, [data-theme="light"] {
  color-scheme: light;
  --paper: oklch(95.6% 0.007 85); --surface: oklch(98.8% 0.004 85); --sunk: oklch(93% 0.009 85); --sheet: oklch(99.6% 0.003 90);
  --ink: oklch(21% 0.014 70); --ink-2: oklch(36% 0.014 70); --muted: oklch(47% 0.012 70);
  --rule: oklch(88.5% 0.009 85); --rule-2: oklch(76% 0.012 80);
  --accent: oklch(41% 0.08 175); --accent-wash: oklch(93% 0.028 175); --accent-ink: oklch(98.8% 0.004 85);
  --warn: oklch(49% 0.105 70); --warn-wash: oklch(93.5% 0.05 88); --danger: oklch(47% 0.15 28); --danger-wash: oklch(94% 0.028 30);
  --btn: var(--ink); --btn-ink: var(--surface); --focus: oklch(52% 0.16 255);
  --shadow-sheet: 0 1px 0 oklch(21% 0.014 70 / 0.05), 0 18px 40px -24px oklch(21% 0.014 70 / 0.28);
  --shadow-pop: 0 2px 6px oklch(21% 0.014 70 / 0.08), 0 24px 56px -16px oklch(21% 0.014 70 / 0.3);
  --scrim: oklch(21% 0.014 70 / 0.28);
}
[data-theme="dark"] {
  color-scheme: dark;
  --paper: oklch(17.5% 0.007 70); --surface: oklch(20.5% 0.008 70); --sunk: oklch(15% 0.007 70); --sheet: oklch(24% 0.009 72);
  --ink: oklch(94% 0.008 85); --ink-2: oklch(84% 0.009 85); --muted: oklch(68% 0.012 78);
  --rule: oklch(29% 0.009 70); --rule-2: oklch(41% 0.011 72);
  --accent: oklch(79% 0.1 175); --accent-wash: oklch(29% 0.04 175); --accent-ink: oklch(17% 0.03 175);
  --warn: oklch(81% 0.115 82); --warn-wash: oklch(29% 0.045 80); --danger: oklch(74% 0.14 28); --danger-wash: oklch(28% 0.06 28);
  --btn: var(--ink); --btn-ink: var(--paper); --focus: oklch(78% 0.13 255);
  --shadow-sheet: 0 1px 0 oklch(100% 0 0 / 0.04) inset, 0 18px 40px -20px oklch(5% 0.01 70 / 0.7);
  --shadow-pop: 0 2px 6px oklch(5% 0.01 70 / 0.4), 0 24px 56px -16px oklch(5% 0.01 70 / 0.8);
  --scrim: oklch(8% 0.01 70 / 0.6);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--surface); color: var(--ink); font: 400 14.5px/1.5 var(--sans); font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; text-align: inherit; }
button:disabled { cursor: default; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 99; background: var(--btn); color: var(--btn-ink); padding: 8px 14px; border-radius: var(--r-s); }
.skip:focus { top: 12px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.ic { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: square; stroke-linejoin: miter; }
.mark { width: 22px; height: 22px; flex: none; }
.mono { font-family: var(--mono); font-size: 0.9em; letter-spacing: -0.01em; }
.muted { color: var(--muted); } .small { font-size: 13px; }
small { font-size: 13px; color: var(--muted); font-weight: 400; }
kbd { font: 500 11.5px var(--sans); color: var(--muted); border: 1px solid var(--rule); border-radius: 5px; padding: 1px 6px; background: var(--surface); }

/* ---------- shell ---------- */
.side { position: fixed; inset: 0 auto 0 0; width: var(--side-w); background: var(--paper); border-right: 1px solid var(--rule); display: flex; flex-direction: column; padding: 14px 12px 12px; gap: 6px; overflow-y: auto; z-index: 20; }
.main { margin-left: var(--side-w); min-height: 100vh; transition: margin-right 0.42s var(--ease); }
.page { max-width: 1180px; margin: 0 auto; padding: 44px 48px 96px; }
.top, .tabs { display: none; }
.ws-btn, .who { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px; border-radius: var(--r-m); }
.ws-btn:hover, .who:hover, .nav-a:hover, .jump:hover { background: var(--sunk); }
.ws-name { display: grid; flex: 1; min-width: 0; line-height: 1.25; }
.ws-name b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ws-name small { font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ws-btn .ic, .who .ic { color: var(--muted); width: 12px; height: 12px; }
.jump { display: flex; align-items: center; gap: 9px; margin: 4px 0 8px; padding: 7px 9px; border: 1px solid var(--rule); border-radius: var(--r-m); color: var(--muted); background: var(--surface); }
.jump span { flex: 1; }
.nav-g { margin-top: 12px; }
.nav-g h2 { font: 500 12.5px var(--sans); color: var(--muted); padding: 0 9px 5px; font-stretch: 92%; }
.nav-a { display: flex; align-items: center; gap: 11px; padding: 7px 9px; border-radius: var(--r-s); text-decoration: none; color: var(--ink-2); font-weight: 500; position: relative; }
.nav-a .ic { color: var(--muted); }
.nav-a span { flex: 1; }
.nav-a[aria-current] { background: var(--surface); color: var(--ink); box-shadow: 0 0 0 1px var(--rule); }
.nav-a[aria-current] .ic { color: var(--accent); }
.nav-a[data-pressed], .btn[data-pressed], .row-link[data-pressed] { transform: scale(0.985); }
.count { font: 600 12px var(--sans); min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--ink); color: var(--surface); display: inline-grid; place-items: center; }
.count.halt { background: var(--danger); color: var(--surface); }
.side-foot { margin-top: auto; display: flex; align-items: center; gap: 4px; padding-top: 10px; border-top: 1px solid var(--rule); }
.av { width: 28px; height: 28px; flex: none; border-radius: 50%; background: var(--sunk); border: 1px solid var(--rule-2); display: inline-grid; place-items: center; font: 600 11px var(--sans); color: var(--ink-2); letter-spacing: 0.01em; }
.icon-btn { width: 34px; height: 34px; flex: none; display: inline-grid; place-items: center; border-radius: var(--r-s); color: var(--ink-2); }
.icon-btn:hover { background: var(--sunk); }

/* ---------- page furniture ---------- */
.ph { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
h1 { font: 400 44px/1.05 var(--serif); letter-spacing: -0.01em; }
.ph-sub { color: var(--muted); max-width: 62ch; margin-top: 10px; font-size: 15px; }
.ph-meta { color: var(--muted); }
.lab { font: 500 13px/1.3 var(--sans); color: var(--muted); font-stretch: 94%; }
h2 { font: 600 15px/1.3 var(--sans); }
h3 { font: 500 13px/1.3 var(--sans); color: var(--muted); }
.fig-xl { font: 400 clamp(46px, 6.2vw, 84px)/0.98 var(--serif); letter-spacing: -0.02em; margin: 6px 0 0; font-variant-numeric: lining-nums; }
.fig-l { font: 400 44px/1.05 var(--serif); letter-spacing: -0.015em; }
.fig-m { font: 400 30px/1.1 var(--serif); }
.fig-s { font: 400 21px/1.2 var(--serif); }
.cents { color: var(--muted); }
.unit { font: 500 0.36em var(--sans); color: var(--muted); letter-spacing: 0; margin-left: 2px; }
.fig-s .unit { font-size: 12.5px; }
.pre { display: block; font: 400 13px var(--sans); }
.fig-row { display: flex; align-items: baseline; gap: 16px; padding-bottom: 18px; border-bottom: 1px solid var(--ink); }
.blk { margin-top: 48px; }
.blk-h { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 10px; min-height: 32px; }
.blk-h.wrap { flex-wrap: wrap; }
.more, .link { color: var(--accent); font-weight: 500; text-decoration: underline; text-decoration-color: color-mix(in oklch, var(--accent) 35%, transparent); text-underline-offset: 3px; }
.more:hover, .link:hover { text-decoration-color: currentColor; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.two-wide { grid-template-columns: minmax(0, 1fr) 320px; margin-top: 28px; }
.two .blk { margin-top: 48px; }
.foot-note { margin-top: 16px; display: flex; align-items: center; gap: 8px; color: var(--accent); }
.empty, .quiet { color: var(--muted); padding: 28px 0; border-top: 1px solid var(--rule); }
.side-note { border-left: 1px solid var(--rule); padding-left: 28px; display: grid; gap: 14px; align-content: start; color: var(--ink-2); font-size: 14px; }
.side-note h2 { color: var(--ink); }
.side-sec { margin-top: 30px; display: grid; gap: 10px; }

/* ---------- buttons, chips, inputs ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 38px; padding: 0 16px; border-radius: 19px; background: var(--btn); color: var(--btn-ink); font-weight: 600; text-decoration: none; white-space: nowrap; transition: transform 0.12s var(--ease), background 0.15s, opacity 0.15s; }
.btn:hover { background: color-mix(in oklch, var(--btn) 86%, var(--accent)); }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--rule-2); }
.btn.ghost:hover { background: var(--sunk); }
.btn.sm { height: 30px; padding: 0 12px; font-size: 13.5px; }
.btn.lg { height: 46px; padding: 0 22px; font-size: 15.5px; border-radius: 23px; }
.btn.danger { background: var(--danger); color: var(--surface); }
.btn:disabled { opacity: 0.38; }
.chip { display: inline-flex; align-items: center; gap: 6px; font: 500 13px/1 var(--sans); padding: 5px 9px 5px 8px; border-radius: 5px; background: var(--sunk); color: var(--ink-2); white-space: nowrap; }
.chip i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
.chip.tone-safe { background: var(--accent-wash); color: var(--accent); } .chip.tone-safe i { background: var(--accent); }
.chip.tone-warn { background: var(--warn-wash); color: var(--warn); } .chip.tone-warn i { background: var(--warn); border-radius: 1px; transform: rotate(45deg); }
.chip.tone-danger { background: var(--danger-wash); color: var(--danger); } .chip.tone-danger i { background: none; border: 1.5px solid var(--danger); }
.chip.tone-info i { background: none; border: 1.5px solid var(--ink-2); }
.tag { font: 500 12px var(--sans); color: var(--muted); border: 1px solid var(--rule-2); border-radius: 4px; padding: 0 5px; margin-left: 8px; vertical-align: 1px; }
.tag { white-space: nowrap; }
.tag.you { color: var(--accent); border-color: currentColor; }
.flag { display: inline-flex; align-items: center; gap: 5px; color: var(--warn); font-size: 13px; font-weight: 500; margin-right: 12px; }
.flag .ic { width: 13px; height: 13px; }
.seg { display: inline-flex; background: var(--sunk); border-radius: 10px; padding: 3px; gap: 2px; }
.seg > * { padding: 6px 14px; border-radius: 7px; font-weight: 500; color: var(--ink-2); text-decoration: none; white-space: nowrap; }
.seg > [aria-current], .seg > [aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px oklch(20% 0.01 70 / 0.14); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chips button { padding: 5px 11px; border-radius: 15px; box-shadow: inset 0 0 0 1px var(--rule); color: var(--ink-2); font-weight: 500; font-size: 13.5px; }
.chips button[aria-pressed="true"] { background: var(--ink); color: var(--surface); box-shadow: none; }
.search { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 11px; border: 1px solid var(--rule); border-radius: 17px; color: var(--muted); min-width: 0; }
.search.wide { width: min(360px, 100%); }
.search input { border: 0; background: none; outline: none; width: 100%; min-width: 0; color: var(--ink); }
.search:focus-within { border-color: var(--ink); }
.check { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; color: var(--ink-2); }
.check input { accent-color: var(--accent); width: 15px; height: 15px; margin: 0; }
.tools { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.legend { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; flex-wrap: wrap; }
.k-in, .k-out { width: 10px; height: 10px; border-radius: 2px; background: var(--accent); }
.k-out { background: var(--rule-2); margin-left: 10px; }

/* ---------- tables ---------- */
.t { width: 100%; border-collapse: collapse; }
.t th, .t td { text-align: left; padding: 13px 16px 13px 0; border-bottom: 1px solid var(--rule); vertical-align: top; font-weight: 400; }
.t thead th { font: 500 13px var(--sans); color: var(--muted); padding: 8px 16px 8px 0; border-bottom-color: var(--ink); vertical-align: bottom; font-stretch: 94%; }
.t th b { font-weight: 600; }
.t th small, .t td small { display: block; margin-top: 2px; }
.t .n { text-align: right; padding-right: 0; white-space: nowrap; }
.t tfoot th, .t tfoot td { font-weight: 600; border-bottom: 0; border-top: 1px solid var(--ink); }
.t-plain th, .t-plain td { padding: 9px 12px 9px 0; }
.t-plain tr:last-child > * { border-bottom: 0; }
.t-roomy tbody th, .t-roomy tbody td { padding-top: 18px; padding-bottom: 18px; }
.t-dense th, .t-dense td { padding: 7px 12px 7px 0; font-size: 13.5px; }
.t .rn { width: 56px; color: var(--muted); text-align: right; padding-right: 16px; }
.t .when { width: 96px; white-space: nowrap; }
.t .none { text-align: center; color: var(--muted); padding: 28px 0; }
.row-link { cursor: pointer; transition: background 0.12s; }
.row-link:hover > *, .row-link.on > * { background: color-mix(in oklch, var(--paper) 70%, transparent); }
.row-link.on > :first-child { box-shadow: inset 2px 0 0 var(--accent); }
.row-link > :first-child { padding-left: 12px; } .row-link > :last-child { padding-right: 12px; }
thead:has(+ tbody .row-link) th:first-child { padding-left: 12px; } thead:has(+ tbody .row-link) th:last-child { padding-right: 12px; }
.bar-c { width: 22%; vertical-align: middle !important; }
.bar { display: block; height: 6px; background: var(--sunk); border-radius: 3px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--ink-2); border-radius: 3px; width: calc(var(--v, 1) * 100%); transition: width 0.9s var(--ease); }
.bar i.full { background: var(--warn); }
.bar.big { height: 10px; border-radius: 5px; }
.bar.big i { background: var(--accent); border-radius: 5px; }
.t tr.warn > * { background: color-mix(in oklch, var(--warn-wash) 55%, transparent); }
.warn-t { color: var(--warn) !important; }
.pos { color: var(--accent); }
.pager { display: flex; justify-content: space-between; align-items: center; padding-top: 12px; color: var(--muted); font-size: 13.5px; }
.pager span:last-child { display: flex; gap: 6px; }
.vh-head { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.handle { font-family: var(--mono); font-size: 12.5px; color: var(--muted); }

/* ---------- overview ---------- */
.ov-top { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 56px; padding-bottom: 8px; }
.ov-split { display: flex; gap: 40px; margin: 22px 0 26px; padding-top: 16px; border-top: 1px solid var(--ink); }
.ov-split dt { color: var(--muted); font-size: 13px; }
.ov-split dd { font: 400 26px/1.2 var(--serif); margin-top: 2px; }
.fig figcaption { color: var(--muted); font-size: 13px; margin-bottom: 4px; }
.chart { display: block; width: 100%; height: auto; overflow: visible; }
.c-line { fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linejoin: round; }
.c-area { fill: var(--accent); opacity: 0.07; }
.c-base { stroke: var(--rule-2); stroke-width: 1; fill: none; }
.c-dot { fill: var(--accent); stroke: var(--surface); stroke-width: 2; }
.c-val { font: 600 12.5px var(--sans); fill: var(--ink); }
.c-lab, .c-num { font: 400 11.5px var(--sans); fill: var(--muted); }
.c-in { fill: var(--accent); } .c-out { fill: var(--rule-2); }
.needs { border-left: 1px solid var(--rule); padding-left: 28px; }
.needs h2 { margin-bottom: 6px; }
.needs-l a { display: flex; align-items: flex-start; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--rule); text-decoration: none; }
.needs-l a > span:nth-child(2) { flex: 1; display: grid; }
.needs-l a:hover b { text-decoration: underline; text-underline-offset: 3px; }
.needs-ic { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--sunk); color: var(--ink-2); flex: none; }
.needs-ic.warn { background: var(--warn-wash); color: var(--warn); } .needs-ic.danger { background: var(--danger-wash); color: var(--danger); }
.ic.end { color: var(--muted); margin-top: 6px; width: 12px; height: 12px; }
.needs-more { margin-top: 12px; font-size: 13.5px; color: var(--muted); }
.statements { border-top: 1px solid var(--ink); }
.st { display: flex; gap: 14px; align-items: flex-start; padding: 15px 0; border-bottom: 1px solid var(--rule); text-decoration: none; color: var(--ink-2); }
.st p { flex: 1; max-width: 86ch; } .st b { color: var(--ink); font-weight: 600; }
.st-dot { width: 8px; height: 8px; border-radius: 50%; margin-top: 7px; background: var(--accent); flex: none; }
.st-dot.danger { background: var(--danger); }

/* ---------- drawer ---------- */
.drawer { position: fixed; inset: 0 0 0 auto; width: var(--drawer-w); max-width: 100vw; background: var(--sheet); border-left: 1px solid var(--rule); box-shadow: var(--shadow-pop); z-index: 40; display: flex; flex-direction: column; }
.drawer.enter { animation: drawer-in 0.42s var(--ease); }
@keyframes drawer-in { from { transform: translateX(40px); opacity: 0; } }
.drawer-scrim { display: none; }
.drawer-x { position: absolute; top: 14px; right: 14px; z-index: 2; }
.drawer-in { overflow-y: auto; padding: 34px 34px 28px; flex: 1; display: flex; flex-direction: column; }
.has-drawer .main { margin-right: var(--drawer-w); }
.has-drawer .page { padding-left: 36px; padding-right: 28px; }
.has-drawer .c-hide { display: none; }
.d-title { font: 400 32px/1.1 var(--serif); margin: 4px 36px 0 0; }
.d-sub { color: var(--muted); margin-top: 8px; }
.d-fig { margin-top: 18px; }
.d-acts { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; align-items: center; } .d-acts.c { justify-content: center; }
.d-sec { margin-top: 26px; padding-top: 14px; border-top: 1px solid var(--rule); display: grid; gap: 8px; }
.d-rule { font: 400 21px/1.32 var(--serif); }
.d-note { color: var(--ink-2); font-size: 14px; display: flex; gap: 7px; align-items: flex-start; } .d-note .ic { margin-top: 3px; color: var(--muted); } .d-note b { font-weight: 600; margin-right: 4px; }
.d-note.wide { flex: 1; display: block; }
.d-flags { margin-top: 12px; }
.d-status { margin-top: 18px; padding: 14px 16px; border-radius: var(--r-m); background: var(--sunk); display: grid; gap: 6px; justify-items: start; }
.d-status.tone-safe { background: var(--accent-wash); } .d-status.tone-warn { background: var(--warn-wash); } .d-status.tone-danger { background: var(--danger-wash); }
.d-status p { font-size: 14px; color: var(--ink-2); }
.d-foot { margin: auto -34px -28px; padding: 14px 34px 18px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; position: sticky; bottom: -28px; background: var(--sheet); border-top: 1px solid var(--rule); }
.d-sec:has(+ .d-foot), .form > :has(+ .d-foot) { margin-bottom: 26px; }
.d-foot.decl { display: grid; }
.to { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; } .to > div { display: grid; } .to b { font-weight: 600; font-size: 15.5px; }
.addr { display: flex; flex-wrap: wrap; gap: 4px 9px; padding: 11px 13px; background: var(--sunk); border-radius: var(--r-s); font-size: 13px; }
.addr span:first-child, .addr span:last-child { color: var(--accent); font-weight: 400; }
.ba { display: flex; align-items: center; gap: 16px; } .ba > div { display: grid; } .ba b { font: 400 22px var(--serif); }
.ba-arrow { flex: 1; height: 1px; background: var(--rule-2); position: relative; max-width: 80px; }
.ba-arrow::after { content: ""; position: absolute; right: 0; top: -3.5px; width: 7px; height: 7px; border-top: 1px solid var(--rule-2); border-right: 1px solid var(--rule-2); transform: rotate(45deg); }
.signers li { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--rule); } .signers li:last-child { border: 0; }
.signers span:not(.av) { flex: 1; display: grid; line-height: 1.3; } .signers b { font-weight: 600; }
.signers em { font-style: normal; color: var(--muted); font-size: 13.5px; display: inline-flex; gap: 5px; align-items: center; } .signers em.ok { color: var(--accent); font-weight: 500; }
.tiers { display: grid; grid-template-columns: 1fr 1.4fr; gap: 0; border: 1px solid var(--rule-2); border-radius: var(--r-m); overflow: hidden; }
.tiers > div { padding: 14px; display: grid; gap: 3px; align-content: start; } .tiers b { font: 400 24px var(--serif); }
.tiers .deep { background: var(--ink); color: var(--surface); } .tiers .deep .lab, .tiers .deep small { color: color-mix(in oklch, var(--surface) 70%, var(--ink)); }

/* ---------- quorum line ---------- */
.quorum { min-width: 150px; max-width: 320px; }
.q-track { position: relative; height: 8px; background: var(--sunk); border-radius: 2px; box-shadow: inset 0 0 0 1px var(--rule); }
.q-fill { position: absolute; inset: 0 auto 0 0; width: calc(var(--v) * 100%); background: var(--ink); border-radius: 2px; transition: width 0.8s var(--ease), background 0.4s; }
.quorum.met .q-fill { background: var(--accent); }
.q-track i { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--surface); opacity: 0.7; }
.q-need { position: absolute; top: -5px; bottom: -5px; width: 2px; background: var(--ink); margin-left: -1px; }
.q-need em { position: absolute; bottom: calc(100% + 1px); left: 50%; transform: translateX(-50%); font: 500 11px/1 var(--sans); font-style: normal; color: var(--muted); white-space: nowrap; }
.q-blocks { display: flex; gap: 2px; margin-top: 7px; }
.q-b { display: grid; place-items: center; height: 20px; border-radius: 3px; border: 1px dashed var(--rule-2); color: var(--muted); }
.q-b b { font: 600 10.5px var(--sans); }
.q-b.on { border: 1px solid var(--ink); background: var(--ink); color: var(--surface); }
.quorum.met .q-b.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.q-cell { width: 26%; padding-top: 26px !important; }
.q-cell .chip { margin-top: -12px; }
.t-ledger tbody th, .t-ledger tbody td { padding-top: 18px; padding-bottom: 18px; }
.ap-flags { margin-top: 6px !important; } .ap-flags:empty { display: none !important; }
.ap-row.done { color: var(--ink-2); }
.chg { font-size: 0.8em; }

/* ---------- forms ---------- */
.form { display: grid; gap: 20px; align-content: start; max-width: 560px; }
.f { display: grid; gap: 6px; } .f > span:first-child { font-weight: 500; font-size: 13.5px; color: var(--ink-2); }
.f input, .f select, .f textarea, .whatif input, .describe textarea { height: 44px; padding: 0 13px; border: 1px solid var(--rule-2); border-radius: var(--r-m); background: var(--sheet); width: 100%; outline: none; transition: border-color 0.15s, box-shadow 0.15s; }
.f textarea, .describe textarea { height: auto; padding: 11px 13px; resize: vertical; line-height: 1.45; }
.f input:focus, .f select:focus, .f textarea:focus, .whatif input:focus, .describe textarea:focus { border-color: var(--ink); box-shadow: 0 0 0 3px color-mix(in oklch, var(--ink) 12%, transparent); }
.f-amt .amt { position: relative; display: block; }
.f-amt input { height: 72px; font: 400 40px var(--serif); padding-right: 150px; }
.f-amt em { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-style: normal; color: var(--muted); font-size: 13.5px; }
.form-end { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding-top: 6px; } .form-end p { flex: 1; min-width: 200px; font-size: 13.5px; }
.kv { display: grid; gap: 0; }
.kv > div { padding: 11px 0; border-top: 1px solid var(--rule); display: grid; gap: 2px; }
.kv dt { color: var(--muted); font-size: 13px; } .kv dd b { font-weight: 600; } .kv dd small { display: block; margin-top: 2px; } .kv dd .chip { margin: 2px 0 4px; }
.kv .bad { color: var(--danger); font-weight: 600; }
.kv.cols { grid-template-columns: 1fr 1fr; column-gap: 28px; margin-top: 18px; }
.pub { border: 1px solid var(--rule-2); border-radius: var(--r-m); overflow: hidden; }
.pub-row { display: flex; justify-content: space-between; gap: 12px; padding: 11px 13px; border-bottom: 1px solid var(--rule); } .pub-row:last-child { border: 0; }
.pub-row b { font-weight: 600; } .pub-row.hid { background: repeating-linear-gradient(-45deg, transparent 0 6px, var(--sunk) 6px 7px); } .pub-row.hid b { color: var(--muted); font-weight: 500; }

/* ---------- batch ---------- */
.drop { margin-top: 28px; border: 1.5px dashed var(--rule-2); border-radius: var(--r-l); padding: 64px 24px; text-align: center; display: grid; gap: 10px; justify-items: center; }
.drop h2 { font: 400 30px var(--serif); } .drop p { color: var(--muted); max-width: 54ch; }
.drop-ic { width: 44px; height: 44px; border-radius: 50%; background: var(--sunk); display: grid; place-items: center; } .drop-ic.ok { background: var(--accent-wash); color: var(--accent); }
.drop.checking, .drop.done { border-style: solid; border-color: var(--rule); } .drop.checking .bar { width: min(420px, 100%); margin-top: 10px; } .drop.checking .bar i { transition: none; }
.batch { margin-top: 28px; }
.batch-h { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; padding-bottom: 22px; border-bottom: 1px solid var(--ink); }
.batch-go { display: grid; gap: 10px; justify-items: end; }
.hold-note { display: flex; align-items: center; gap: 7px; color: var(--warn); font-weight: 500; font-size: 13.5px; } .hold-note.ok { color: var(--accent); }
.issues { margin-top: 22px; background: var(--warn-wash); border-radius: var(--r-m); padding: 16px 18px 6px; }
.issues li { display: flex; align-items: center; gap: 18px; padding: 12px 0; border-top: 1px solid color-mix(in oklch, var(--warn) 22%, transparent); }
.issues li:first-child { border-top: 0; }
.rown { width: 74px; flex: none; color: var(--warn); font-weight: 600; font-size: 13.5px; }
.iss { flex: 1; display: grid; } .iss b { font-weight: 600; } .iss small { color: var(--ink-2); }
.iss-a { display: flex; gap: 6px; flex: none; }
.batch-b { margin-top: 30px; }

/* ---------- collections ---------- */
.stats { display: grid; grid-template-columns: 1.5fr 1fr 1fr; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule); }
.stat { padding: 18px 24px 18px 0; display: grid; gap: 4px; align-content: start; } .stat + .stat { border-left: 1px solid var(--rule); padding-left: 24px; }
.sweepbar { margin-top: 22px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 14px 16px 14px 20px; background: var(--ink); color: var(--surface); border-radius: var(--r-l); }
.sweepbar b { font-weight: 600; } .sweepbar .btn { background: var(--surface); color: var(--ink); }
.sweepbar.idle { background: var(--sunk); color: var(--ink-2); } .sweepbar.idle .btn { background: var(--ink); color: var(--surface); }
#inv-table tr { position: relative; }
#inv-table tr.sweeping > * { background: linear-gradient(90deg, var(--accent-wash), var(--accent-wash)) no-repeat; background-size: 0% 100%; animation: sweep 0.52s var(--ease-io) forwards; }
@keyframes sweep { to { background-size: 100% 100%; } }
#inv-table tr.just > * { animation: settle 1.4s ease-out; }
@keyframes settle { from { background: var(--accent-wash); } }
.fresh > * { animation: settle 2s ease-out; }

/* ---------- policy ---------- */
.policy { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 44px; align-items: start; }
.sheet-doc { background: var(--sheet); box-shadow: var(--shadow-sheet), 0 0 0 1px var(--rule); border-radius: 3px; padding: 52px 60px 44px; position: relative; }
.sheet-doc.draft { box-shadow: var(--shadow-sheet), 0 0 0 1px var(--warn); }
.sheet-doc.draft::before { content: "Draft"; position: absolute; top: 18px; right: 22px; font: 400 italic 22px var(--serif); color: var(--warn); }
.doc-meta { color: var(--muted); font-size: 13px; }
.sheet-doc header h2 { font: 400 34px/1.1 var(--serif); margin-top: 6px; padding-bottom: 26px; border-bottom: 1px solid var(--ink); }
.rules { counter-reset: rule; }
.rules li { padding: 26px 0 28px; border-bottom: 1px solid var(--rule); display: grid; grid-template-columns: 132px 1fr; gap: 16px; }
.rules h3 { padding-top: 9px; }
.rules p { font: 400 27px/1.5 var(--serif); letter-spacing: -0.005em; text-wrap: pretty; }
.pv { font: inherit; display: inline; padding: 0 3px; margin: 0 -1px; border-radius: 4px; color: var(--accent); background: linear-gradient(var(--accent), var(--accent)) no-repeat 0 92% / 100% 1px; cursor: pointer; transition: background-color 0.15s; }
.pv:hover, .pv:focus-visible { background-color: var(--accent-wash); }
.pv.changed { color: var(--warn); background-image: linear-gradient(var(--warn), var(--warn)); background-color: var(--warn-wash); }
.doc-fixed { padding: 20px 0 0; color: var(--muted); font-size: 14px; max-width: 60ch; }
.doc-sign { display: flex; gap: 40px; margin-top: 44px; align-items: flex-end; flex-wrap: wrap; }
.doc-sign > div { display: grid; gap: 4px; min-width: 150px; border-top: 1px solid var(--ink); padding-top: 6px; }
.sig { font: 400 italic 25px/1 var(--serif); margin-top: -34px; padding-bottom: 6px; }
.sig-date span { font: 400 19px/1 var(--serif); margin-top: -29px; padding-bottom: 7px; }
.sig-line { height: 0; }
.draft-box { border: 1px solid var(--warn); background: var(--warn-wash); border-radius: var(--r-m); padding: 16px 18px; display: grid; gap: 10px; }
.draft-box.idle, .draft-box.sent { border-color: var(--rule); background: var(--paper); } .draft-box p { font-size: 14px; color: var(--ink-2); }
.diff li { display: grid; gap: 1px; padding: 7px 0; border-top: 1px solid color-mix(in oklch, var(--warn) 22%, transparent); font-size: 13.5px; }
.diff span { color: var(--ink-2); } .diff b { font-weight: 600; } .diff s { color: var(--muted); font-weight: 400; margin-right: 8px; }
.whatif input { height: 40px; }
.wi { border-left: 2px solid var(--ink); padding: 2px 0 2px 14px; display: grid; gap: 4px; font-size: 14px; color: var(--ink-2); justify-items: start; }
.wi-auto { border-color: var(--accent); } .wi-reserve { border-color: var(--warn); }
.wi-rule { font: 400 24px/1.15 var(--serif); color: var(--ink); }
.cases li { display: flex; gap: 10px; padding: 9px 0; border-top: 1px solid var(--rule); font-size: 13.5px; }
.cases span:last-child { display: grid; } .cases b { font-weight: 500; }
.case-ic { color: var(--accent); margin-top: 2px; } .cases .bad .case-ic, .cases .bad small { color: var(--danger); } .cases .note .case-ic, .cases .note small { color: var(--warn); }
.lint li { position: relative; padding: 5px 0 5px 16px; font-size: 13.5px; color: var(--ink-2); }
.lint li::before { content: ""; position: absolute; left: 0; top: 13px; width: 7px; height: 1px; background: var(--muted); }

/* ---------- automation ---------- */
.stop { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; padding: 26px 28px; border: 1px solid var(--ink); border-radius: var(--r-l); transition: background 0.4s, border-color 0.4s; }
.stop h2 { font: 400 32px/1.1 var(--serif); margin: 4px 0 8px; } .stop p { color: var(--ink-2); max-width: 60ch; }
.stop.stopped { background: var(--danger-wash); border-color: var(--danger); }
.stop-facts { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 14px; font-size: 13.5px; font-weight: 500; }
.stop-facts li { display: flex; align-items: center; gap: 7px; } .stop-facts i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.stop-facts .off { color: var(--danger); } .stop-facts .off i { background: none; border: 1.5px solid var(--danger); border-radius: 1px; }
.stop-a { display: grid; gap: 8px; justify-items: center; } .stop-a small { text-align: center; }
.hold { position: relative; overflow: hidden; height: 52px; padding: 0 24px; border-radius: 26px; background: var(--btn); color: var(--btn-ink); font-weight: 600; font-size: 15.5px; user-select: none; -webkit-user-select: none; touch-action: none; transition: transform 0.2s var(--ease); width: 100%; }
.hold[data-holding] { transform: scale(0.975); }
.hold-fill { position: absolute; inset: 0; background: var(--accent); transform-origin: left; transform: scaleX(var(--v, 0)); }
.hold-label { white-space: nowrap; position: relative; display: inline-flex; align-items: center; gap: 8px; justify-content: center; width: 100%; }
.hold.done { background: var(--accent); color: var(--accent-ink); }
.hold.danger { background: transparent; color: var(--danger); box-shadow: inset 0 0 0 1.5px var(--danger); width: auto; }
.hold.danger .hold-fill { background: var(--danger); } .hold.danger[data-holding] { color: var(--surface); }
.meter-row { margin-top: 18px; display: grid; gap: 8px; }
.meter-h { display: flex; justify-content: space-between; gap: 8px; font-size: 13.5px; color: var(--muted); } .meter-h b { color: var(--ink); font-weight: 600; }
.meter-c { width: 30%; } .meter-c .bar { margin-top: 6px; }

/* ---------- team, activity ---------- */
.grp + .grp { margin-top: 36px; }
.person, .ev { display: flex; align-items: center; gap: 12px; } .person > span:last-child, .ev > span { display: grid; }
.ev { align-items: flex-start; } .ev .ic { margin-top: 3px; color: var(--muted); }
.wt { display: inline-flex; align-items: center; gap: 3px; } .wt i { width: 10px; height: 14px; border: 1px solid var(--rule-2); border-radius: 2px; } .wt i.on { background: var(--ink); border-color: var(--ink); } .wt b { margin-left: 6px; font-weight: 600; font-size: 13.5px; }
.weights > div { display: grid; grid-template-columns: 62px 1fr; gap: 10px; padding: 12px 0; border-top: 1px solid var(--rule); } .weights dd b { display: block; color: var(--ink); font-weight: 600; }
.exports li + li { border-top: 1px solid var(--rule); }
.exports button { display: flex; gap: 12px; padding: 12px 0; width: 100%; align-items: flex-start; } .exports .ic { margin-top: 3px; color: var(--accent); } .exports span { display: grid; } .exports b { font-weight: 600; color: var(--ink); }
.exports button:hover b { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- layers ---------- */
.layer { position: fixed; inset: 0; z-index: 60; }
.layer-scrim { position: absolute; inset: 0; background: var(--scrim); animation: fade 0.2s; }
.layer-menu .layer-scrim { background: transparent; }
@keyframes fade { from { opacity: 0; } }
.menu { position: absolute; width: 288px; background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--r-l); box-shadow: var(--shadow-pop); padding: 8px; animation: pop 0.22s var(--ease); transform-origin: top left; }
@keyframes pop { from { opacity: 0; transform: scale(0.96) translateY(-4px); } }
.menu h2 { font: 500 12.5px var(--sans); color: var(--muted); padding: 6px 8px; }
.menu-i { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px; border-radius: var(--r-s); text-decoration: none; }
.menu-i:hover { background: var(--sunk); } .menu-i span { flex: 1; display: grid; line-height: 1.3; } .menu-i b { font-weight: 600; } .menu-i > .ic { color: var(--accent); }
.menu-note { font-size: 12.5px; color: var(--muted); padding: 8px; border-top: 1px solid var(--rule); margin-top: 6px; }
.pv-menu { padding: 12px; display: grid; gap: 8px; } .pv-menu h2 { padding: 0 0 2px; }
.pv-num { position: relative; } .pv-num input { width: 100%; height: 52px; font: 400 28px var(--serif); padding: 0 64px 0 12px; border: 1px solid var(--ink); border-radius: var(--r-m); background: var(--sheet); outline: none; } .pv-num em { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-style: normal; color: var(--muted); }
.pv-quick { display: flex; gap: 6px; } .pv-quick button { flex: 1; text-align: center; padding: 6px 0; border-radius: var(--r-s); box-shadow: inset 0 0 0 1px var(--rule); font-size: 13.5px; } .pv-quick button:hover { background: var(--sunk); }
.cmd { position: absolute; left: 50%; top: 14vh; transform: translateX(-50%); width: min(600px, calc(100vw - 24px)); background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--r-l); box-shadow: var(--shadow-pop); overflow: hidden; animation: cmd-in 0.24s var(--ease); }
@keyframes cmd-in { from { opacity: 0; transform: translateX(-50%) translateY(-8px) scale(0.98); } }
.cmd-in { display: flex; align-items: center; gap: 12px; padding: 0 16px; height: 56px; border-bottom: 1px solid var(--rule); color: var(--muted); }
.cmd-in input { flex: 1; border: 0; outline: 0; background: none; font-size: 16.5px; color: var(--ink); min-width: 0; }
#cmd-list { max-height: 52vh; overflow-y: auto; padding: 6px; }
#cmd-list li { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: var(--r-s); cursor: pointer; }
#cmd-list li span { font-weight: 500; } #cmd-list li small { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } #cmd-list li em { font-style: normal; font-size: 12.5px; color: var(--muted); }
#cmd-list li[aria-selected="true"] { background: var(--sunk); } #cmd-list li .ic { color: var(--muted); } #cmd-list .none { color: var(--muted); cursor: default; }
.describe { padding: 26px; display: grid; gap: 12px; } .describe h2 { font: 400 28px/1.15 var(--serif); }
.phone-wrap { position: absolute; right: max(24px, calc(var(--drawer-w) / 2 - 150px)); top: 50%; transform: translateY(-50%); display: grid; gap: 12px; justify-items: center; animation: phone-in 0.5s var(--ease); }
@keyframes phone-in { from { opacity: 0; transform: translateY(calc(-50% + 40px)); } }
.phone-cap { display: flex; align-items: center; gap: 7px; color: oklch(97% 0.004 85); background: oklch(18% 0.008 70); font-size: 13px; font-weight: 500; padding: 7px 13px 7px 10px; border-radius: 16px; }
.phone { width: 300px; border-radius: 44px; padding: 9px; background: oklch(16% 0.006 70); box-shadow: 0 0 0 1.5px oklch(38% 0.01 70), 0 40px 90px -20px oklch(0% 0 0 / 0.6); }
.phone-screen { border-radius: 36px; background: var(--sheet); padding: 12px 16px 16px; display: grid; gap: 10px; min-height: 520px; align-content: start; grid-template-rows: auto auto auto auto 1fr auto auto; }
.phone-bar { display: flex; justify-content: space-between; align-items: center; font: 600 12.5px var(--sans); padding: 2px 4px 10px; }
.phone-app { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-weight: 500; } .phone-app .mark { width: 13px; height: 13px; }
.phone h2 { font: 500 14px var(--sans); color: var(--muted); }
.phone-big { font: 400 40px/1 var(--serif); letter-spacing: -0.015em; } .phone-big span { font: 500 13px var(--sans); color: var(--muted); }
.phone-dl { display: grid; } .phone-dl > div { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-top: 1px solid var(--rule); font-size: 13.5px; align-items: center; }
.phone-dl dt { color: var(--muted); flex: none; } .phone-dl dd { text-align: right; font-weight: 500; display: grid; justify-items: end; gap: 4px; } .phone-dl .chip { font-size: 12px; padding: 4px 7px; }
.phone-rule { font: 400 16.5px/1.32 var(--serif); color: var(--ink-2); padding-top: 10px; border-top: 1px solid var(--rule); align-self: start; }
.phone-no { text-align: center; color: var(--muted); font-weight: 500; padding: 4px; font-size: 13.5px; }
.layer-sheet .sheet { position: absolute; left: 0; right: 0; bottom: 0; background: var(--sheet); border-radius: 22px 22px 0 0; padding: 10px 14px calc(18px + env(safe-area-inset-bottom)); animation: sheet-in 0.36s var(--ease); max-height: 86vh; overflow-y: auto; }
@keyframes sheet-in { from { transform: translateY(100%); } }
.grab { display: block; width: 40px; height: 4px; border-radius: 2px; background: var(--rule-2); margin: 0 auto 6px; }
.sheet .nav-a { padding: 12px 9px; font-size: 16px; }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; z-index: 80; transition: transform 0.35s var(--ease), opacity 0.25s; max-width: calc(100vw - 24px); }
.toast.show { transform: translate(-50%, 0); opacity: 1; }
.toast-in { display: flex; align-items: center; gap: 9px; background: var(--ink); color: var(--surface); padding: 11px 16px 11px 13px; border-radius: 22px; font-weight: 500; box-shadow: var(--shadow-pop); }
.toast-in .ic { color: var(--accent-wash); } .toast-in.warn .ic { color: var(--warn-wash); }

/* ---------- narrower desktop ---------- */
@media (max-width: 1240px) {
  .page { padding: 36px 32px 96px; }
  .ov-top { grid-template-columns: minmax(0, 1fr) 300px; gap: 36px; }
  .two { gap: 36px; } .two-wide { grid-template-columns: minmax(0, 1fr) 280px; }
  .policy { grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; } .sheet-doc { padding: 40px 40px 36px; } .rules li { grid-template-columns: 1fr; gap: 4px; } .rules h3 { padding: 0; }
}
@media (max-width: 1100px) { .has-drawer .main { margin-right: 0; } .drawer-scrim { display: block; position: fixed; inset: 0; background: var(--scrim); z-index: 39; animation: fade 0.2s; } .has-drawer .c-hide { display: table-cell; } }

/* ---------- phone ---------- */
@media (max-width: 860px) {
  body { font-size: 15px; }
  .side { display: none; }
  .main { margin-left: 0; padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  .page, .has-drawer .page { padding: 18px 18px 40px; }
  .top { display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 20; height: calc(52px + env(safe-area-inset-top)); padding: env(safe-area-inset-top) 10px 0 8px; background: color-mix(in oklch, var(--surface) 88%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--rule); }
  .top .ws-btn { width: auto; } .top-r { display: flex; align-items: center; gap: 2px; } .av-btn { padding: 3px; margin-left: 4px; }
  .tabs { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: color-mix(in oklch, var(--paper) 92%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-top: 1px solid var(--rule); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .tabs > * { display: grid; justify-items: center; gap: 3px; padding: 6px 0 4px; font: 500 11.5px var(--sans); color: var(--muted); text-decoration: none; position: relative; border-radius: var(--r-s); }
  .tabs .ic { width: 20px; height: 20px; }
  .tabs [aria-current] { color: var(--ink); } .tabs [aria-current] .ic { color: var(--accent); }
  .tabs .count { position: absolute; top: 0; left: calc(50% + 4px); min-width: 17px; height: 17px; font-size: 11px; padding: 0 4px; }
  h1 { font-size: 36px; } .ph { margin-bottom: 20px; flex-wrap: wrap; gap: 14px; } .ph-meta { display: none; }
  .fig-l { font-size: 36px; }
  .ov-top, .two, .two-wide, .policy, .stats, .stop { grid-template-columns: 1fr; gap: 28px; }
  .two .blk, .blk { margin-top: 36px; } .two { gap: 0; } .two-wide { gap: 32px; }
  .needs, .side-note { border-left: 0; padding-left: 0; border-top: 1px solid var(--ink); padding-top: 18px; }
  .ov-split { flex-direction: column; gap: 12px; }
  .c-hide, .has-drawer .c-hide { display: none; }
  .t th, .t td { padding-right: 10px; }
  .row-link > :first-child { padding-left: 0; } .row-link > :last-child { padding-right: 0; } thead:has(+ tbody .row-link) th:first-child { padding-left: 0; } thead:has(+ tbody .row-link) th:last-child { padding-right: 0; }
  .row-link.on > :first-child { box-shadow: none; }
  .fig-s { font-size: 19px; }
  .stats { gap: 0; } .stat + .stat { border-left: 0; padding-left: 0; border-top: 1px solid var(--rule); }
  .sweepbar { flex-direction: column; align-items: stretch; text-align: left; }
  .drawer { width: 100vw; border-left: 0; } .drawer.enter { animation: sheet-in 0.4s var(--ease); } .drawer-in { padding: 26px 20px calc(24px + env(safe-area-inset-bottom)); }
  .d-foot { margin: auto -20px calc(-24px - env(safe-area-inset-bottom)); padding: 12px 20px calc(14px + env(safe-area-inset-bottom)); bottom: calc(-24px - env(safe-area-inset-bottom)); } .d-foot .btn { flex: 1; }
  /* approvals become stacked ledger entries */
  .t-ledger thead { display: none; } .t-ledger tr { display: grid; grid-template-columns: 1fr auto; padding: 16px 0; border-bottom: 1px solid var(--rule); gap: 12px 12px; }
  .t-ledger th, .t-ledger td { border: 0; padding: 0 !important; } .t-ledger .q-cell { grid-column: 1 / -1; width: auto; padding-top: 12px !important; } .t-ledger .q-cell .chip { margin-top: -8px; } .quorum { max-width: none; }
  .t-ledger tr > :nth-child(4) { grid-row: 1; grid-column: 2; }
  .sheet-doc { padding: 26px 20px 28px; margin: 0 -6px; } .sheet-doc header h2 { font-size: 28px; padding-bottom: 18px; } .rules p { font-size: 22px; line-height: 1.5; } .rules li { padding: 18px 0 20px; }
  .doc-sign { gap: 34px 24px; margin-top: 48px; }
  .batch-h { flex-direction: column; align-items: stretch; } .batch-go { justify-items: stretch; }
  .issues li { flex-wrap: wrap; gap: 8px 12px; } .iss { flex-basis: 60%; } .iss-a { width: 100%; } .iss-a .btn { flex: 1; }
  .stop { padding: 20px; } .stop h2 { font-size: 28px; } .hold.danger { width: 100%; }
  .meter-c { width: 38%; } .kv.cols { grid-template-columns: 1fr; }
  .menu { left: 10px !important; right: 10px; width: auto; top: auto !important; bottom: calc(74px + env(safe-area-inset-bottom)) !important; transform-origin: bottom; }
  .layer-menu .layer-scrim { background: var(--scrim); }
  .phone-wrap { right: auto; left: 50%; top: auto; bottom: 0; transform: translateX(-50%); width: 100%; animation: sheet-in 0.4s var(--ease); }
  .phone-cap { padding: 0 16px; text-align: center; } .phone { width: 100%; border-radius: 26px 26px 0 0; padding: 0; box-shadow: none; } .phone-screen { border-radius: 26px 26px 0 0; min-height: 0; padding: 14px 20px calc(18px + env(safe-area-inset-bottom)); } .phone-bar span:first-child { visibility: hidden; }
  .cmd { top: 10px; } .drop { padding: 40px 18px; }
  .toast { bottom: calc(78px + env(safe-area-inset-bottom)); }
  .blk-h { flex-wrap: wrap; }
  .f-amt em { font-size: 12.5px; } .f-amt input { font-size: 32px; padding-right: 120px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; } }

.phone .hold { font-size: 14.5px; padding: 0 12px; }
.layer-phone .layer-scrim { background: oklch(14% 0.01 70 / 0.5); }

.grp .t { table-layout: fixed; } .grp .t th:first-child { width: 46%; } .grp .t td:nth-child(2) { width: 16%; } .grp .t td:nth-child(3) { width: 20%; }
@media (max-width: 860px) { .grp .t th:first-child { width: 72%; } .grp .t td:nth-child(2) { width: 28%; text-align: right; } }

.has-drawer .blk-h .legend { display: none; }
