/* B5 Inbox. One sans, one accent, hairlines for structure, a 4px grid. State colour only for state. */
@font-face { font-family: "Host Grotesk"; src: url("../fonts/host-grotesk-latin-wght-normal.woff2") format("woff2"); font-weight: 300 800; 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: "Host Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Fragment Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --canvas: #101113; --pane: #131416; --surface: #181a1d; --soft: #191b1e; --hover: #1a1c20; --raised: #212328; --line: #26292e; --line-2: #353940;
  --ink: #eceef1; --ink-2: #a9aeb7; --ink-3: #858b95;
  --accent: #8f9bff; --accent-wash: rgb(143 155 255 / .14);
  --safe: #4cc38a; --safe-wash: rgb(76 195 138 / .13);
  --wait: #e2a23b; --wait-wash: rgb(226 162 59 / .13);
  --stop: #f5796a; --stop-wash: rgb(245 121 106 / .13);
  --btn: #eceef1; --btn-ink: #101113; --btn-hover: #ffffff;
  --scrim: rgb(0 0 0 / .56);
  --float: 0 0 0 1px var(--line-2), 0 20px 56px rgb(0 0 0 / .5);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --top: 52px;
  color-scheme: dark;
}
[data-theme="light"] {
  --canvas: #f6f6f7; --pane: #ffffff; --surface: #ffffff; --soft: #f5f5f6; --hover: #eeeef0; --raised: #e8e8eb; --line: #e3e4e7; --line-2: #cfd1d6;
  --ink: #101113; --ink-2: #4b505a; --ink-3: #62676f;
  --accent: #4350d8; --accent-wash: rgb(67 80 216 / .1);
  --safe: #16794c; --safe-wash: rgb(22 121 76 / .1);
  --wait: #96610a; --wait-wash: rgb(150 97 10 / .1);
  --stop: #b02e19; --stop-wash: rgb(176 46 25 / .09);
  --btn: #101113; --btn-ink: #ffffff; --btn-hover: #2a2c31;
  --scrim: rgb(16 17 19 / .32);
  --float: 0 0 0 1px var(--line), 0 20px 56px rgb(16 17 19 / .16);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: var(--canvas); color: var(--ink); font: 400 14px/20px var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow: hidden; -webkit-tap-highlight-color: transparent; }
h1, h2, h3, p, dl, dd, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; text-align: left; }
button:disabled { cursor: default; }
svg.ic { flex: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.skip { position: fixed; left: 12px; top: -48px; z-index: 90; background: var(--btn); color: var(--btn-ink); padding: 8px 12px; border-radius: 8px; }
.skip:focus { top: 12px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.num { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--mono); font-size: 13px; letter-spacing: -.01em; }
.unit { color: var(--ink-3); }
.quiet { color: var(--ink-3); }
.grow { flex: 1; }
.only-phone { display: none; }
kbd { font: 500 11px/18px var(--sans); min-width: 20px; height: 20px; padding: 0 5px; border-radius: 5px; border: 1px solid var(--line-2); color: var(--ink-2); display: inline-grid; place-items: center; }

/* ---------- shell ---------- */
#app { height: 100dvh; display: grid; grid-template-rows: var(--top) auto minmax(0, 1fr) auto; }
.top { display: flex; align-items: center; gap: 8px; padding: 0 16px 0 12px; border-bottom: 1px solid var(--line); white-space: nowrap; min-width: 0; }
.org { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 8px; border-radius: 8px; font-weight: 600; }
.org .mark { color: var(--ink); }
.org .ic { width: 16px; height: 16px; color: var(--ink-3); }
.org:hover, .me:hover { background: var(--hover); }
.nav { display: flex; gap: 2px; margin-left: 12px; }
.nav a { display: flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px; border-radius: 8px; color: var(--ink-2); font-weight: 500; transition: color .12s, background-color .12s; }
.nav a:hover { color: var(--ink); }
.nav a.on { color: var(--ink); background: var(--raised); }
.count { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 6px; background: var(--accent-wash); color: var(--accent); font: 600 12px/20px var(--sans); text-align: center; font-variant-numeric: tabular-nums; }
.nav .count { view-transition-name: count; }
.top-r { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.total { color: var(--ink-2); font-variant-numeric: tabular-nums; padding: 0 8px; height: 32px; display: flex; align-items: center; border-radius: 8px; }
.total:hover { color: var(--ink); }
.cmd { display: flex; align-items: center; gap: 8px; height: 32px; padding: 0 8px 0 10px; border-radius: 8px; border: 1px solid var(--line); color: var(--ink-3); min-width: 176px; }
.cmd:hover { border-color: var(--line-2); color: var(--ink-2); }
.cmd .ic { width: 16px; height: 16px; }
.cmd span { flex: 1; }
.me { width: 36px; height: 36px; border-radius: 8px; display: grid; place-items: center; }
.av { width: 28px; height: 28px; border-radius: 50%; display: inline-grid; place-items: center; flex: none; background: var(--raised); color: var(--ink-2); font: 600 11px/1 var(--sans); letter-spacing: .02em; box-shadow: inset 0 0 0 1px var(--line-2); }
.iconbtn { width: 36px; height: 36px; border-radius: 8px; display: grid; place-items: center; color: var(--ink-2); flex: none; }
.iconbtn:hover { background: var(--raised); color: var(--ink); }
.top .iconbtn { display: none; }
.stopbar { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 36px; padding: 6px 16px; background: var(--stop-wash); color: var(--ink); border-bottom: 1px solid var(--line); font-size: 13px; }
.stopbar i { width: 8px; height: 8px; border-radius: 50%; background: var(--stop); flex: none; }
.stopbar a { color: var(--ink); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
#main { min-height: 0; overflow: auto; outline: 0; background: var(--pane); }
.tabs { display: none; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 8px; font-weight: 500; white-space: nowrap; border: 1px solid var(--line-2); color: var(--ink); transition: background-color .12s, border-color .12s, transform .12s var(--ease), opacity .12s; }
.btn:hover { background: var(--raised); }
.btn:active:not(:disabled) { transform: scale(.98); }
.btn .ic { width: 16px; height: 16px; margin-left: -2px; }
.btn.primary { background: var(--btn); color: var(--btn-ink); border-color: transparent; }
.btn.primary:hover { background: var(--btn-hover); }
.btn.ghost { border-color: transparent; color: var(--ink-2); }
.btn.ghost:hover { color: var(--ink); }
.btn.danger { color: var(--stop); }
.btn.sm { height: 32px; padding: 0 12px; font-size: 13px; }
.btn.lg { height: 44px; padding: 0 20px; font-size: 15px; }
.btn:disabled { opacity: .4; }
.btn .mk-load { margin-right: 2px; }
.link { color: var(--ink); font-weight: 500; text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.link:hover { text-decoration-color: var(--ink-2); }
.hash { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 13px; color: var(--ink); padding: 4px 8px; margin: -4px -8px; border-radius: 6px; }
.hash:hover { background: var(--raised); }
.hash .ic { width: 16px; height: 16px; color: var(--ink-3); }

/* press and hold */
.holdbtn { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; width: 100%; height: 48px; border-radius: 8px; background: var(--btn); color: var(--btn-ink); font-weight: 600; font-size: 15px; touch-action: none; user-select: none; -webkit-user-select: none; transition: transform .14s var(--ease), background-color .2s; }
.holdbtn[data-holding] { transform: scale(.985); }
.holdbtn-fill { position: absolute; inset: 0; background: var(--accent); transform-origin: left; transform: scaleX(var(--p, 0)); opacity: .55; }
.holdbtn-l { position: relative; display: flex; align-items: center; gap: 6px; }
.holdbtn.done { background: var(--safe); color: #08130d; }
.holdbtn.done .holdbtn-fill { opacity: 0; }
.holdbtn.quiet { width: auto; height: 36px; padding: 0 14px; background: none; color: var(--ink-2); border: 1px solid var(--line-2); font-weight: 500; font-size: 14px; }
.holdbtn.quiet:hover { color: var(--ink); }
.holdbtn.quiet .holdbtn-fill { background: var(--stop); opacity: .28; }
.holdbtn.quiet .ic { width: 16px; height: 16px; }

/* ---------- badges ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px 0 7px; border-radius: 6px; font-size: 12px; font-weight: 500; white-space: nowrap; background: var(--raised); color: var(--ink-2); vertical-align: middle; }
.badge i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.safe { background: var(--safe-wash); color: var(--safe); }
.badge.wait { background: var(--wait-wash); color: var(--wait); }
.badge.stop { background: var(--stop-wash); color: var(--stop); }
.st { font-size: 13px; }
.st.safe { color: var(--safe); } .st.wait { color: var(--wait); } .st.stop { color: var(--stop); } .st.quiet { color: var(--ink-3); }

/* ---------- list and detail ---------- */
.split { height: 100%; display: grid; grid-template-columns: 400px minmax(0, 1fr); }
.list { display: flex; flex-direction: column; min-height: 0; border-right: 1px solid var(--line); background: var(--canvas); }
.list-h { padding: 20px 20px 8px; }
.list-h h1, .page-h h1 { font-size: 20px; line-height: 28px; font-weight: 600; letter-spacing: -.01em; }
.list-h > p { color: var(--ink-3); font-size: 13px; margin-top: 2px; }
.list-h-row { display: flex; align-items: center; justify-content: space-between; min-height: 32px; }
.list-h .subtabs { margin: 12px -10px 0; }
.list-b { flex: 1; overflow: auto; padding-bottom: 16px; overscroll-behavior: contain; }
.list-b.pad { padding: 8px 20px 24px; }
.grp { display: flex; align-items: center; gap: 8px; padding: 16px 20px 8px; font-size: 13px; line-height: 20px; font-weight: 500; color: var(--ink-3); }
.grp span { font-variant-numeric: tabular-nums; }
.grp-btn { width: 100%; }
.grp-btn:hover { color: var(--ink-2); }
.grp-btn .ic { width: 16px; height: 16px; margin-left: auto; transition: transform .16s var(--ease); }
.grp-btn[aria-expanded="true"] .ic { transform: rotate(180deg); }
.row { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; gap: 0 12px; align-items: start; margin: 0 8px; padding: 10px 12px; border-radius: 8px; view-transition-class: row; }
.row:not(:has(.row-ic)) { grid-template-columns: minmax(0, 1fr) auto; }
.row:hover { background: var(--hover); }
.row.on { background: var(--raised); }
.row-ic { color: var(--ink-3); height: 20px; }
.row-ic.stop { color: var(--stop); }
.row.on .row-ic { color: var(--ink); }
.row-m, .row-r { display: grid; gap: 2px; min-width: 0; }
.row-t { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-s { color: var(--ink-3); font-size: 13px; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; text-wrap: pretty; }
.row-r { justify-items: end; text-align: right; }
.row-a { min-height: 20px; }
.row-a.in { color: var(--safe); }
.struck { text-decoration: line-through; text-decoration-color: var(--ink-3); color: var(--ink-3); }
.row-w { color: var(--ink-3); font-size: 12px; line-height: 20px; }
.row.is-done .row-t, .row.is-done .row-a { color: var(--ink-2); font-weight: 400; }
.row.is-done .row-ic { color: var(--safe); }
.list-f { display: flex; gap: 16px; padding: 10px 20px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 12px; white-space: nowrap; overflow: hidden; }
.list-f span { display: inline-flex; align-items: center; gap: 4px; }
.list-f kbd + kbd { margin-left: -2px; } .list-f kbd { margin-right: 2px; }
.list-tools { padding: 4px 20px 4px; display: grid; gap: 8px; }
.search { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 10px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); color: var(--ink-3); }
.search:focus-within { border-color: var(--accent); }
.search .ic { width: 16px; height: 16px; }
.search input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: var(--ink); }
.search input::placeholder, .field input::placeholder, .amount input::placeholder, .cmd-in input::placeholder { color: var(--ink-3); }
.seg { display: flex; gap: 2px; margin: 0 -8px; overflow-x: auto; scrollbar-width: none; }
.seg button { height: 28px; padding: 0 8px; border-radius: 6px; font-size: 13px; color: var(--ink-3); font-weight: 500; white-space: nowrap; }
.seg button:hover { color: var(--ink); }
.seg button[aria-pressed="true"] { color: var(--ink); background: var(--raised); }
.list-act { padding: 12px 20px 16px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.list-act .btn { height: 40px; }

.detail { display: flex; flex-direction: column; min-width: 0; min-height: 0; view-transition-name: detail; }
.detail.is-clear { align-items: center; justify-content: center; }
.d-scroll { flex: 1; overflow: auto; overscroll-behavior: contain; }
.d-body { max-width: 680px; padding: 40px 48px 40px; animation: d-in .2s var(--ease) both; }
.d-body.two { max-width: none; display: grid; grid-template-columns: minmax(0, 584px) minmax(0, 280px); gap: 0 64px; align-items: start; }
.d-body.two .back { grid-column: 1 / -1; }
.d-side { padding-top: 4px; }
.d-side .facts > div { grid-template-columns: 1fr; gap: 2px; }
.d-side .facts { gap: 18px; }
.d-side .facts dt { font-size: 13px; }
.back, .crumb { display: none; align-items: center; gap: 4px; color: var(--ink-2); font-weight: 500; height: 32px; margin: 0 0 8px -6px; }
.back .ic, .crumb .ic { width: 16px; height: 16px; }
.d-h h1 { font-size: 20px; line-height: 28px; font-weight: 600; letter-spacing: -.01em; }
.d-amt { font-size: 40px; line-height: 48px; font-weight: 500; letter-spacing: -.025em; margin-top: 4px; font-variant-numeric: tabular-nums; }
.d-amt .unit { font-size: 18px; font-weight: 400; letter-spacing: 0; margin-left: 2px; }
.d-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; color: var(--ink-2); margin-top: 6px; }
.lead { font-size: 16px; line-height: 26px; color: var(--ink); margin-top: 20px; max-width: 60ch; text-wrap: pretty; }
.lead.wide { margin-top: 24px; max-width: 72ch; color: var(--ink-2); }
.d-sec { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.d-sec-h, .block-h { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.d-sec-h h2, .block-h h2, .chart-h h2 { font-size: 14px; line-height: 20px; font-weight: 600; }
.d-sec-h p, .block-h p { color: var(--ink-3); font-size: 13px; font-variant-numeric: tabular-nums; }
.meter { display: flex; gap: 4px; }
.meter i { flex: 1; height: 4px; border-radius: 2px; background: var(--line-2); transition: opacity .16s, background-color .16s; }
.meter i.on { background: var(--ink); }
.meter i.add { background: var(--accent); opacity: .4; }
.detail:has(.d-actions .primary:hover) .meter i.add, .detail:has(.d-actions .primary:focus-visible) .meter i.add { opacity: 1; }
.people { margin-top: 8px; }
.people li { display: grid; grid-template-columns: 28px minmax(0, auto) minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 44px; }
.people li + li { border-top: 1px solid var(--line); }
.p-n { font-weight: 500; white-space: nowrap; }
.p-n em, .t-who em { font-style: normal; font-weight: 500; font-size: 12px; color: var(--accent); margin-left: 8px; }
.p-r { color: var(--ink-3); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.p-s { color: var(--ink-3); font-size: 13px; display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.p-s .ic { width: 16px; height: 16px; }
.p-s.ok { color: var(--safe); } .p-s.you { color: var(--ink); font-weight: 500; }
.facts { display: grid; gap: 14px; }
.facts > div { display: grid; grid-template-columns: 136px minmax(0, 1fr); gap: 16px; }
.facts dt { color: var(--ink-3); }
.facts dd small, .field small { display: block; color: var(--ink-3); font-size: 13px; margin-top: 2px; }
.facts.tight { gap: 10px; margin-top: 16px; }
.with-badge { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.addr { display: flex; flex-wrap: wrap; gap: 2px 8px; font-family: var(--mono); font-size: 13px; line-height: 20px; color: var(--ink); }
.sentence { font-size: 20px; line-height: 32px; letter-spacing: -.01em; text-wrap: pretty; max-width: 34em; }
.sentence.sm { font-size: 16px; line-height: 26px; letter-spacing: 0; }
.sentence b { font-weight: 500; }
.sentence del { color: var(--ink-3); text-decoration-color: var(--stop); }
.sentence ins { text-decoration: none; color: var(--ink); font-weight: 500; background: var(--accent-wash); border-radius: 4px; padding: 2px 4px; margin: 0 -1px; }
.d-more { margin-top: 16px; }
.d-actions { display: flex; align-items: center; gap: 12px; padding: 16px max(48px, calc(100% - 632px)) 16px 48px; border-top: 1px solid var(--line); }
.d-note { color: var(--ink-3); font-size: 13px; }
.rows-in { margin: 0 -20px; }
.rows-in .row { margin: 0 8px; }

/* flagged rows of the payout file */
.fix { display: grid; }
.fix li { padding: 14px 0; border-top: 1px solid var(--line); }
.fix li:first-child { border-top: 0; padding-top: 4px; }
.fix-h { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 12px; align-items: baseline; }
.fix-n { color: var(--ink-3); font-size: 13px; font-variant-numeric: tabular-nums; }
.fix-s { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fix-i, .fix-d, .fix-a { margin: 2px 0 0 84px; }
.fix-i { color: var(--ink-2); }
.fix-a { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.fix-d { display: flex; align-items: center; gap: 6px; color: var(--safe); font-size: 13px; margin-top: 6px; }
.fix-d .ic { width: 16px; height: 16px; }
.fix-d .link { color: var(--ink-2); font-weight: 400; margin-left: 6px; }
.decided .fix-i { color: var(--ink-3); }

/* the empty inbox */
.clear { text-align: center; padding: 32px; max-width: 520px; animation: d-in .3s var(--ease) both; }
.clear-mark { display: inline-block; color: var(--ink); }
.clear h2 { font-size: 20px; line-height: 28px; font-weight: 600; margin-top: 20px; letter-spacing: -.01em; }
.clear p { color: var(--ink-2); margin-top: 4px; }
.clear-stats { display: flex; justify-content: center; gap: 40px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.clear-stats dt { color: var(--ink-3); font-size: 13px; }
.clear-stats dd { font-size: 18px; line-height: 28px; font-weight: 500; }
.empty { padding: 48px 24px; text-align: center; display: grid; justify-items: center; gap: 6px; }
.empty h2 { font-size: 15px; font-weight: 600; }
.empty p { color: var(--ink-3); max-width: 36ch; }
.empty .btn { margin-top: 10px; }

/* ---------- pages ---------- */
.page { max-width: 1104px; margin: 0 auto; padding: 28px 32px 72px; }
.page.narrow { max-width: 824px; }
.page-h { display: flex; align-items: center; gap: 24px; min-height: 36px; }
.page-a { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.subtabs { display: flex; gap: 2px; }
.subtabs a { height: 32px; padding: 0 10px; border-radius: 8px; display: flex; align-items: center; color: var(--ink-3); font-weight: 500; white-space: nowrap; }
.subtabs a:hover { color: var(--ink); }
.subtabs a.on { color: var(--ink); background: var(--raised); }
.crumb { display: flex; margin-bottom: 0; }
.hero { margin-top: 40px; }
.hero-l { color: var(--ink-2); }
.hero-n { font-size: 56px; line-height: 64px; font-weight: 500; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.hero-n .cur { color: var(--ink-3); font-weight: 400; margin-right: 2px; }
.hero-s { color: var(--ink-3); margin-top: 4px; }
.hero.small { margin-top: 24px; }
.hero.small .hero-n { font-size: 40px; line-height: 48px; letter-spacing: -.025em; }
.charts { display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr); gap: 56px; margin-top: 44px; }
.chart-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.chart-h p { display: flex; align-items: baseline; gap: 6px; color: var(--ink-2); font-size: 13px; }
.chart-h p .num { color: var(--ink); font-weight: 500; }
.key { width: 8px; height: 8px; border-radius: 2px; align-self: center; margin-left: 10px; }
.key.in { background: var(--ink); margin-left: 0; } .key.out { background: var(--ink-3); opacity: .55; }
.chart-w { position: relative; padding-left: 40px; }
.chart { position: relative; height: 168px; touch-action: pan-y; cursor: crosshair; border-radius: 4px; }
.chart svg { display: block; width: 100%; height: 100%; overflow: visible; }
.c-grid { stroke: var(--line); stroke-width: 1; }
.c-line { fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }
.c-area { fill: var(--ink); opacity: .035; }
.c-y { position: absolute; left: 0; transform: translateY(-50%); font-size: 11px; line-height: 16px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.c-guide { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--line-2); opacity: 0; }
.chart.scrub .c-guide { opacity: 1; }
.c-dot { position: absolute; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 3px var(--pane); }
.c-x { display: flex; justify-content: space-between; margin: 8px 0 0 40px; font-size: 12px; color: var(--ink-3); }
.bars { display: flex; gap: 8px; height: 192px; }
.bar-d { flex: 1; display: flex; flex-direction: column; align-items: center; }
.bar-p { flex: 1; display: flex; align-items: flex-end; gap: 3px; width: 100%; justify-content: center; border-bottom: 1px solid var(--line); }
.bar-p i { width: 9px; border-radius: 2px 2px 0 0; background: var(--ink); min-height: 2px; }
.bar-p i.out { background: var(--ink-3); opacity: .55; }
.bar-d span { font-size: 12px; line-height: 16px; color: var(--ink-3); margin-top: 8px; }
.block { margin-top: 48px; }
.cols .block { margin-top: 40px; }
.block-a { display: flex; align-items: center; gap: 16px; margin-top: 16px; }
.foot-note { color: var(--ink-3); font-size: 13px; margin-top: 20px; }
.cols { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 72px; }
.figures { display: flex; flex-wrap: wrap; gap: 16px 56px; margin-top: 32px; }
.figures dt { color: var(--ink-3); font-size: 13px; }
.figures dd { font-size: 24px; line-height: 32px; font-weight: 500; letter-spacing: -.015em; margin-top: 2px; }

.table { border-top: 1px solid var(--line); }
.tr { display: grid; align-items: center; gap: 16px; min-height: 56px; padding: 8px 12px; margin: 0 -12px; border-bottom: 1px solid var(--line); width: calc(100% + 24px); position: relative; }
a.tr:hover, button.tr:hover { background: var(--hover); }
.tr b { font-weight: 500; }
.tr small { display: block; color: var(--ink-3); font-size: 13px; }
.tr > .ic { width: 16px; height: 16px; color: var(--ink-3); }
.table .tr.th { min-height: 36px; color: var(--ink-3); font-size: 13px; }
.v-a { text-align: right; justify-self: end; white-space: nowrap; }
.t-end { justify-self: end; }
.vaults .tr { grid-template-columns: minmax(200px, 1.5fr) minmax(0, 1.1fr) 152px 88px 152px 16px; min-height: 64px; }
.v-h { color: var(--ink-2); }
.v-sh { height: 4px; border-radius: 2px; background: var(--line); overflow: hidden; }
.v-sh i { display: block; height: 100%; background: var(--ink-3); border-radius: 2px; }
.vaults .v-a { font-weight: 500; }
.plain .tr { grid-template-columns: 72px 1fr auto; min-height: 44px; }
.invoices .tr { grid-template-columns: 104px minmax(0, 1.3fr) 96px 88px minmax(0, 1.2fr) 160px; }
.sweeps .tr { grid-template-columns: 104px 72px minmax(0, 1fr) 176px; }
.agents .tr { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.1fr) minmax(0, 1.1fr) 136px 88px; min-height: 64px; }
.team .tr { grid-template-columns: minmax(0, 1.5fr) 96px minmax(0, 1fr) 112px 16px; min-height: 60px; }
.audit .tr { grid-template-columns: 88px 152px 200px minmax(0, 1fr); min-height: 48px; }
.t-who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.t-w { display: flex; align-items: center; gap: 8px; }
.wt { display: inline-flex; gap: 3px; }
.wt i { width: 4px; height: 12px; border-radius: 2px; background: var(--ink); }
.t-dev { display: flex; align-items: center; gap: 6px; color: var(--ink-2); }
.t-dev .ic { width: 16px; height: 16px; color: var(--ink-3); }
.selwrap select, .try select, .field select { height: 36px; padding: 0 32px 0 12px; border-radius: 8px; border: 1px solid var(--line-2); background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23858b95' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 8 4 4 4-4'/%3E%3C/svg%3E") no-repeat right 8px center / 16px; appearance: none; -webkit-appearance: none; font-weight: 500; max-width: 100%; }
.banner { display: flex; align-items: center; gap: 24px; justify-content: space-between; padding: 16px 20px; border-radius: 8px; margin-top: 24px; background: var(--stop-wash); }
.banner b { font-weight: 600; }
.banner p { color: var(--ink-2); margin-top: 2px; }
.waiting { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); white-space: nowrap; }
.usage { margin-top: 20px; max-width: 480px; }
.usage-h { display: flex; justify-content: space-between; color: var(--ink-2); font-size: 13px; margin-bottom: 8px; }
.usage-h .num { color: var(--ink); }
.bar { display: block; height: 4px; border-radius: 2px; background: var(--line-2); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 2px; background: var(--ink); }
.bar.full i { background: var(--wait); }
.usage.in-row { margin: 0; display: grid; gap: 6px; max-width: 200px; font-size: 13px; color: var(--ink-2); }

/* rules */
.rules { margin-top: 32px; border-top: 1px solid var(--line); }
.rule-b { padding: 28px 0 28px; border-bottom: 1px solid var(--line); }
.rule-h { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 10px; }
.rule-h h2 { font-size: 14px; font-weight: 600; }
.rule-h span { color: var(--ink-3); font-size: 13px; }
.tok { display: inline; font: inherit; font-weight: 500; color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 1.5px; text-underline-offset: 5px; border-radius: 4px; padding: 0 1px; transition: background-color .12s; }
.tok:hover { background: var(--accent-wash); }
.tok.draft { background: var(--accent-wash); color: var(--accent); text-decoration-style: dashed; }
.pending { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-top: 16px; padding: 10px 14px; border-radius: 8px; background: var(--wait-wash); color: var(--ink-2); font-size: 13px; position: relative; }
.pending > .ic { width: 16px; height: 16px; color: var(--wait); }
.pending span { flex: 1; min-width: 200px; }
.pending b { color: var(--ink); font-weight: 500; }
.pending.ok { background: var(--soft); padding-bottom: 16px; overflow: hidden; }
.pending.ok > .ic { color: var(--safe); }
.wait-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--line-2); }
.wait-bar i { display: block; height: 100%; background: var(--ink-3); }
.draftbar { position: sticky; bottom: 16px; z-index: 5; display: flex; align-items: center; gap: 8px; margin-top: 20px; padding: 10px 10px 10px 16px; border-radius: 10px; background: var(--raised); box-shadow: var(--float); animation: rise .2s var(--ease) both; }
.draftbar p { flex: 1; color: var(--ink-2); font-size: 13px; }
.draftbar b { color: var(--ink); font-weight: 500; }
.try { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.checks li { display: grid; grid-template-columns: 16px minmax(0, 1fr) minmax(0, 1.1fr); gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); align-items: start; }
.checks .ic { width: 16px; height: 16px; color: var(--safe); margin-top: 2px; }
.checks .res { color: var(--ink-2); }
.notes { margin-top: 4px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 13px; display: grid; gap: 4px; }
.stopper { display: grid; justify-items: center; text-align: center; padding: 56px 0 24px; }
.stopper h2 { font-size: 20px; line-height: 28px; font-weight: 600; margin-top: 32px; letter-spacing: -.01em; }
.stopper p { max-width: 52ch; color: var(--ink-2); margin-top: 8px; text-wrap: pretty; }
.stopper p.quiet { color: var(--ink-3); font-size: 13px; }
.stopper .btn { margin-top: 24px; }
.stopper .waiting { margin-top: 24px; color: var(--ink); }
.orb { position: relative; width: 216px; height: 216px; border-radius: 50%; background: var(--soft); display: grid; place-items: center; touch-action: none; user-select: none; -webkit-user-select: none; transition: transform .2s var(--ease); }
.orb[data-holding] { transform: scale(.97); }
.orb canvas { position: absolute; inset: 32px; width: calc(100% - 64px); height: calc(100% - 64px); color: var(--ink); }
.orb-ring { position: absolute; inset: -8px; width: calc(100% + 16px); height: calc(100% + 16px); transform: rotate(-90deg); }
.orb-ring circle { fill: none; stroke: var(--line); stroke-width: 1; }
.orb-ring .p { stroke: var(--stop); stroke-width: 2; stroke-dasharray: 100; stroke-dashoffset: calc(100 - var(--p, 0) * 100); }
.is-stopped .orb { background: var(--stop-wash); }
.is-stopped .orb-ring circle { stroke: var(--stop); opacity: .5; }

/* ---------- forms and the payment flow ---------- */
.flow { min-height: 100%; display: grid; justify-items: center; align-content: start; padding: 32px 24px 64px; }
.flow-in { width: 100%; max-width: 528px; }
.flow-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.flow-h h1 { font-size: 20px; line-height: 28px; font-weight: 600; letter-spacing: -.01em; }
.field { display: block; margin-top: 16px; }
.field > span, .field > label { display: block; color: var(--ink-2); font-size: 13px; font-weight: 500; margin-bottom: 6px; }
.field input[type="text"], .field input[type="email"], .field select, .pop input { width: 100%; height: 44px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--surface); outline: 0; font-size: 15px; transition: border-color .12s, box-shadow .12s; }
.field input:focus, .pop input:focus, .select:focus-visible { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-wash); outline: 0; }
.select { display: flex; align-items: center; gap: 12px; width: 100%; height: 44px; padding: 0 10px 0 12px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--surface); font-size: 15px; }
.select span { flex: 1; font-weight: 500; }
.select small { color: var(--ink-3); font-size: 14px; margin: 0; }
.select .ic { width: 16px; height: 16px; color: var(--ink-3); }
.picks { margin: 8px -8px 4px; display: grid; }
.pick { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, auto) auto; align-items: center; gap: 12px; min-height: 36px; padding: 0 8px; border-radius: 8px; }
.pick:hover, .pick:focus-visible { background: var(--hover); }
.pick-n { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pick-h { color: var(--ink-3); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pick-none { padding: 8px; }
.field > .link { font-size: 13px; font-weight: 400; color: var(--ink-2); }
.chosen { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 6px 12px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--surface); flex-wrap: wrap; }
.chosen-n { font-weight: 500; font-size: 15px; }
.chosen-a { color: var(--ink-3); margin-right: auto; }
.chosen .link { font-size: 13px; font-weight: 400; color: var(--ink-2); }
.amount { display: flex; align-items: baseline; gap: 8px; border-bottom: 1px solid var(--line-2); transition: border-color .12s; }
.amount:focus-within { border-color: var(--accent); }
.amount input, .field .amount input[type="text"] { flex: 1; border-radius: 0; box-shadow: none; min-width: 0; height: 60px; background: none; border: 0; outline: 0; padding: 0; font-size: 40px; font-weight: 500; letter-spacing: -.025em; font-variant-numeric: tabular-nums; }
.amount span { color: var(--ink-3); font-size: 18px; }
.amount.sm { border: 1px solid var(--line-2); border-radius: 8px; padding: 0 12px; width: 168px; }
.amount.sm input, .field .amount.sm input { height: 34px; font-size: 14px; letter-spacing: 0; }
.amount.sm span { font-size: 13px; }
.rule { display: flex; gap: 10px; margin-top: 24px; padding: 12px 14px; border-radius: 8px; background: var(--soft); color: var(--ink-2); text-wrap: pretty; }
.rule i { width: 8px; height: 8px; border-radius: 50%; margin-top: 6px; flex: none; background: var(--ink-3); }
.rule b { color: var(--ink); font-weight: 500; }
.rule.safe i { background: var(--safe); } .rule.wait i { background: var(--wait); } .rule.stop i { background: var(--stop); }
.rule.stop { background: var(--stop-wash); }
.rule.idle { color: var(--ink-3); }
.try + #try-out .rule { margin-top: 16px; }
.flow-a { display: flex; align-items: center; gap: 12px; margin-top: 28px; }
.flow .d-amt { margin: 8px 0 24px; }
.done-state { text-align: left; padding-top: 24px; }
.done-state h1 { font-size: 20px; line-height: 28px; font-weight: 600; margin-top: 20px; }
.done-state .d-amt { margin: 4px 0 0; }
.done-state .lead { margin: 12px 0 28px; color: var(--ink-2); }
.done-state .facts { padding-top: 24px; border-top: 1px solid var(--line); }
.tick { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; }
.tick.safe { background: var(--safe-wash); color: var(--safe); } .tick.wait { background: var(--wait-wash); color: var(--wait); }
.hint { color: var(--ink-3); font-size: 13px; margin-top: 16px; text-wrap: pretty; }
.hint .badge { margin-right: 4px; }

/* the payout file */
.file-sum { padding: 4px 0 24px; }
.file-name { color: var(--ink-3); font-size: 13px; }
.file-total { font-size: 32px; line-height: 40px; font-weight: 500; letter-spacing: -.02em; margin: 4px 0; }
.file-total .unit { font-size: 16px; letter-spacing: 0; }
.drop { border: 1px dashed var(--line-2); border-radius: 8px; padding: 24px; display: grid; gap: 12px; justify-items: start; color: var(--ink-2); }
.split.wide-detail { grid-template-columns: 400px minmax(0, 1fr); }
.table-pane { view-transition-name: none; }
.vhead, .vrow { display: grid; grid-template-columns: 64px minmax(140px, 1.2fr) 96px 168px 120px minmax(150px, 1fr); gap: 16px; align-items: center; padding: 0 32px 0 24px; }
.vhead { height: 48px; border-bottom: 1px solid var(--line); color: var(--ink-3); font-size: 13px; flex: none; }
.vscroll { flex: 1; overflow: auto; position: relative; outline-offset: -2px; overscroll-behavior: contain; }
.vspace { position: relative; }
.vrow { position: absolute; left: 0; right: 0; height: 40px; border-bottom: 1px solid var(--line); }
.vrow.flag { background: var(--stop-wash); }
.c-n { color: var(--ink-3); } .c-net, .c-ad { color: var(--ink-2); } .c-a { text-align: right; }
.c-s { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.c-st { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- layers ---------- */
#layers { position: relative; z-index: 50; }
.scrim { position: fixed; inset: 0; display: grid; place-items: center; background: var(--scrim); animation: fade .14s ease both; padding: 16px; }
.scrim.clear { background: none; display: block; padding: 0; animation: none; }
.scrim.out { opacity: 0; transition: opacity .14s; pointer-events: none; }
.menu { position: fixed; min-width: 232px; max-width: 320px; padding: 6px; border-radius: 10px; background: var(--raised); box-shadow: var(--float); animation: pop .14s var(--ease) both; transform-origin: top; }
.menu-i { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 36px; padding: 0 10px; border-radius: 6px; }
.menu-i:hover, .menu-i:focus-visible { background: var(--line); outline: 0; }
.menu-i .ic { width: 16px; height: 16px; color: var(--ink-3); }
.menu-i span { flex: 1; }
.menu-i small { color: var(--ink-3); font-size: 13px; font-variant-numeric: tabular-nums; }
.menu hr { border: 0; border-top: 1px solid var(--line-2); margin: 6px 4px; opacity: .6; }
.menu-note { padding: 8px 10px; color: var(--ink-3); font-size: 13px; }
.menu-note b { display: block; color: var(--ink); font-weight: 500; font-size: 14px; }
.scrim.for-sheet { place-items: stretch end; padding: 0; }
.sheet { width: 432px; max-width: 100%; height: 100%; background: var(--surface); box-shadow: var(--float); display: flex; flex-direction: column; }
.sheet-grab { display: none; }
.sheet-h { display: flex; align-items: center; justify-content: space-between; padding: 16px 16px 4px 24px; }
.sheet-h h2 { font-size: 18px; line-height: 28px; font-weight: 600; letter-spacing: -.01em; }
.sheet-b { flex: 1; overflow: auto; padding: 0 24px 24px; }
.sheet-b .lead { margin-top: 8px; color: var(--ink-2); font-size: 15px; line-height: 24px; }
.sheet-b > .link { display: inline-block; margin-top: 8px; font-size: 13px; font-weight: 400; color: var(--ink-2); }
.sheet-f { display: flex; align-items: center; gap: 8px; padding: 16px 24px; border-top: 1px solid var(--line); }
.pop { position: fixed; width: 320px; padding: 16px; border-radius: 10px; background: var(--raised); box-shadow: var(--float); animation: pop .14s var(--ease) both; transform-origin: top left; }
.pop .field { margin: 0; }
.pop input { background: var(--canvas); }
.pop-a { display: flex; gap: 8px; margin-top: 12px; }

/* signing: what to do on the left, a stand-in for the phone on the right */
.sign { display: grid; grid-template-columns: 296px 304px; border-radius: 12px; background: var(--surface); box-shadow: var(--float); overflow: hidden; animation: pop .18s var(--ease) both; }
.sign-info { padding: 28px 28px 24px; display: flex; flex-direction: column; }
.sign-info h2 { font-size: 18px; line-height: 28px; font-weight: 600; letter-spacing: -.01em; }
.sign-info > p { color: var(--ink-2); margin-top: 8px; text-wrap: pretty; }
.sign-info .sign-wait { display: flex; align-items: center; gap: 10px; color: var(--ink); margin-top: 24px; }
.sign-wait .ic { width: 16px; height: 16px; color: var(--safe); }
.sign-info .btn { margin-top: auto; align-self: flex-start; margin-left: -14px; }
.sign-phone { background: var(--canvas); padding: 20px 24px 14px; border-left: 1px solid var(--line); }
.ph { border-radius: 28px; padding: 20px 18px 18px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-2); }
.ph-face { display: none; }
.ph-brand { display: flex; align-items: center; gap: 6px; color: var(--ink-3); font-size: 12px; font-weight: 500; }
.ph-what { color: var(--ink-2); font-size: 13px; margin-top: 16px; }
.ph-amt { font-size: 24px; line-height: 32px; font-weight: 500; letter-spacing: -.02em; }
.ph-amt .unit { font-size: 14px; letter-spacing: 0; }
.ph-rows { margin-top: 12px; }
.ph-rows > div { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 8px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 13px; }
.ph-rows dt { color: var(--ink-3); }
.ph-rows .addr { font-size: 11.5px; line-height: 18px; gap: 0 6px; color: var(--ink-2); margin-top: 2px; }
.ph .holdbtn { margin-top: 12px; }
.ph-cancel { display: none; }
.ph-cap { text-align: center; color: var(--ink-3); font-size: 12px; margin-top: 10px; }
.sendbox { width: 320px; padding: 24px 24px 28px; border-radius: 12px; background: var(--surface); box-shadow: var(--float); text-align: center; animation: pop .18s var(--ease) both; }
.sendbox canvas { width: 184px; height: 184px; margin: 0 auto 12px; color: var(--ink); }
.sendbox-l { font-size: 16px; line-height: 24px; font-weight: 600; }
.sendbox-s { color: var(--ink-3); font-size: 13px; margin-top: 2px; font-variant-numeric: tabular-nums; }

/* command menu */
.scrim.for-cmd { place-items: start center; padding-top: 14vh; }
.cmd-box { width: 560px; max-width: 100%; border-radius: 12px; background: var(--surface); box-shadow: var(--float); overflow: hidden; animation: pop .14s var(--ease) both; }
.cmd-in { display: flex; align-items: center; gap: 12px; height: 52px; padding: 0 16px; border-bottom: 1px solid var(--line); color: var(--ink-3); }
.cmd-in input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; font-size: 15px; color: var(--ink); }
.cmd-list { max-height: min(384px, 56vh); overflow: auto; padding: 8px; }
.cmd-g { padding: 8px 8px 4px; color: var(--ink-3); font-size: 12px; font-weight: 500; }
.cmd-i { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 36px; padding: 0 8px; border-radius: 6px; }
.cmd-i .ic { width: 16px; height: 16px; color: var(--ink-3); }
.cmd-i span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmd-i small { color: var(--ink-3); font-size: 13px; }
.cmd-i[aria-selected="true"] { background: var(--raised); }
.cmd-none { padding: 24px 8px; text-align: center; color: var(--ink-3); }

.toast { position: fixed; left: 50%; bottom: 28px; z-index: 80; display: flex; align-items: center; gap: 16px; max-width: min(520px, calc(100vw - 32px)); padding: 10px 14px; border-radius: 8px; background: var(--btn); color: var(--btn-ink); font-weight: 500; box-shadow: 0 12px 32px rgb(0 0 0 / .28); transform: translate(-50%, 16px); opacity: 0; pointer-events: none; transition: transform .2s var(--ease), opacity .16s; }
.toast.on { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
.toast-a { color: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }

/* opening: the points gather into the mark once, then the app is there */
.opening { position: fixed; inset: 0; z-index: 95; background: var(--canvas); display: grid; place-items: center; transition: opacity .32s ease; }
.opening canvas { position: absolute; inset: 0; color: var(--ink); -webkit-mask-image: radial-gradient(closest-side, #000 52%, transparent 100%); mask-image: radial-gradient(closest-side, #000 52%, transparent 100%); }
.opening-l { position: absolute; left: 0; right: 0; top: calc(50% + min(38vmin, 330px)); display: grid; justify-items: center; opacity: 0; transform: translateY(6px); transition: opacity .4s ease, transform .5s var(--ease); }
.opening-l .lockup { height: 28px; width: auto; }
.opening.named .opening-l { opacity: 1; transform: none; }
.opening.out { opacity: 0; pointer-events: none; }

/* ---------- motion ---------- */
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(6px) scale(.985); } }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
@keyframes d-in { from { opacity: 0; transform: translateY(6px); } }
@keyframes d-out { to { opacity: 0; } }
@keyframes row-out { to { opacity: 0; transform: translateX(24px); } }
@keyframes row-in { from { opacity: 0; transform: translateY(-6px); } }
@keyframes roll-out { to { opacity: 0; transform: translateY(-70%); } }
@keyframes roll-in { from { opacity: 0; transform: translateY(70%); } }
::view-transition-group(*) { animation-duration: .22s; animation-timing-function: cubic-bezier(.2, .8, .2, 1); }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .14s; }
::view-transition-old(.row):only-child { animation: row-out .2s cubic-bezier(.2, .8, .2, 1) both; }
::view-transition-new(.row):only-child { animation: row-in .22s cubic-bezier(.2, .8, .2, 1) both; }
::view-transition-old(detail) { animation: d-out .1s ease both; }
::view-transition-new(detail) { animation: d-in .24s cubic-bezier(.2, .8, .2, 1) both; }
::view-transition-old(count) { animation: roll-out .2s ease both; }
::view-transition-new(count) { animation: roll-in .2s ease both; }
::view-transition-group(count) { overflow: hidden; }

/* ---------- phone ---------- */
@media (max-width: 760px) {
  body { font-size: 15px; line-height: 22px; }
  .only-phone { display: block; }
  .only-desk { display: none; }
  .top { padding: 0 8px 0 8px; gap: 4px; }
  .nav, .total, .cmd, .top .btn { display: none; }
  .top .iconbtn { display: grid; width: 40px; height: 40px; }
  .me { width: 40px; height: 40px; }
  .tabs { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--line); background: var(--canvas); padding-bottom: env(safe-area-inset-bottom); }
  .tabs a { position: relative; display: grid; justify-items: center; gap: 2px; padding: 8px 0 6px; min-height: 56px; color: var(--ink-3); font-size: 11px; line-height: 14px; font-weight: 500; }
  .tabs a.on { color: var(--ink); }
  .tabs .ic { width: 22px; height: 22px; }
  .tabs .count { position: absolute; top: 4px; left: calc(50% + 6px); min-width: 18px; height: 18px; line-height: 18px; padding: 0 5px; font-size: 11px; border-radius: 9px; background: var(--accent); color: var(--canvas); view-transition-name: count; }
  body[data-push] .tabs { display: none; }
  .split, .split.wide-detail { display: block; }
  .split .detail { display: none; }
  .split.has-detail .list { display: none; }
  .split.has-detail .detail { display: flex; height: 100%; }
  .list { height: 100%; border-right: 0; }
  .list-h { padding: 16px 20px 8px; }
  .list-h h1, .page-h h1 { font-size: 24px; line-height: 32px; }
  .list-f { display: none; }
  .row { padding: 12px 12px; min-height: 60px; margin: 0 8px; }
  .row-s { font-size: 14px; }
  .back { display: inline-flex; min-height: 44px; margin-bottom: 4px; }
  .d-body { padding: 8px 20px 32px; }
  .d-h h1 { font-size: 20px; }
  .d-amt { font-size: 36px; line-height: 44px; }
  .lead { font-size: 17px; line-height: 26px; }
  .d-actions { padding: 12px 20px calc(12px + env(safe-area-inset-bottom)); flex-wrap: wrap; }
  .d-actions .btn { height: 48px; font-size: 16px; }
  .d-actions .btn.primary { flex: 1 1 auto; }
  .d-actions .grow { display: none; }
  .d-actions .d-note { flex: 1 1 100%; }
  .d-actions .btn:not(.primary):not(.ghost) { flex: 1 1 auto; }
  .people li { grid-template-columns: 28px minmax(0, 1fr) auto; min-height: 52px; }
  .people .p-r { grid-column: 2; grid-row: 2; margin-top: -14px; padding-bottom: 6px; }
  .people .p-n { align-self: end; }
  .people li:has(.p-r) { grid-template-rows: auto auto; row-gap: 0; padding: 6px 0; }
  .people .av, .people .p-s { grid-row: 1 / span 2; }
  .people .p-r { margin-top: 0; padding: 0; }
  .facts > div { grid-template-columns: 104px minmax(0, 1fr); gap: 12px; }
  .fix-i, .fix-d, .fix-a { margin-left: 0; }
  .fix-h { grid-template-columns: auto minmax(0, 1fr) auto; }
  .fix-a .btn { height: 40px; flex: 1 1 auto; }
  .clear { padding: 24px 12px 8px; margin: 0 auto; }
  .clear-stats { gap: 20px; }
  .clear-stats dd { font-size: 16px; }
  .detail.is-clear { display: none; }

  .page { padding: 16px 20px 40px; }
  .page-h { flex-wrap: wrap; gap: 8px 12px; }
  .page-h h1 { flex: 1 1 100%; }
  .page-h > div:first-child { flex: 1 1 100%; }
  .subtabs { margin: 0 -10px; overflow-x: auto; scrollbar-width: none; max-width: calc(100% + 20px); }
  .subtabs a { height: 36px; }
  .page-a { margin-left: 0; flex: 1 1 100%; flex-wrap: wrap; }
  .page-a .btn, .page-a .holdbtn { height: 44px; flex: 1 1 auto; }
  .hero { margin-top: 24px; }
  .hero-n { font-size: 38px; line-height: 44px; letter-spacing: -.03em; }
  .hero.small .hero-n { font-size: 34px; line-height: 40px; }
  .charts { grid-template-columns: 1fr; gap: 40px; margin-top: 32px; }
  .bars { height: 160px; }
  .block { margin-top: 40px; }
  .cols { grid-template-columns: 1fr; gap: 0; }
  .figures { gap: 20px 32px; display: grid; grid-template-columns: 1fr 1fr; }
  .figures dd { font-size: 20px; line-height: 28px; }
  .tr { min-height: 60px; gap: 2px 12px; padding: 10px 12px; }
  .tr.th { display: none; }
  .tr > .ic { display: none; }
  .vaults .tr { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "a b" "c d"; }
  .vaults .v-n { grid-area: a; } .vaults .v-n small { display: none; } .vaults .v-a { grid-area: b; } .vaults .v-h { grid-area: c; font-size: 14px; color: var(--ink-3); } .vaults .v-st { grid-area: d; justify-self: end; } .v-sh { display: none; }
  .invoices .tr { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "a b" "c d"; }
  .invoices .tr > :nth-child(1) { grid-area: c; color: var(--ink-3); } .invoices .tr > :nth-child(2) { grid-area: a; } .invoices .tr > :nth-child(3), .invoices .tr > :nth-child(4) { display: none; } .invoices .tr > :nth-child(5) { grid-area: d; justify-self: end; } .invoices .tr > :nth-child(6) { grid-area: b; }
  .sweeps .tr { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "a b" "c c"; }
  .sweeps .tr > :nth-child(1) { grid-area: a; } .sweeps .tr > :nth-child(2) { display: none; } .sweeps .tr > :nth-child(3) { grid-area: c; color: var(--ink-3); font-size: 14px; } .sweeps .tr > :nth-child(4) { grid-area: b; }
  .agents .tr { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "a b" "c c" "d e"; row-gap: 8px; padding: 14px 12px; }
  .agents .tr > :nth-child(1) { grid-area: a; } .agents .tr > :nth-child(2) { grid-area: c; } .agents .tr > :nth-child(3) { grid-area: d; max-width: none; } .agents .tr > :nth-child(4) { grid-area: b; justify-self: end; } .agents .tr > :nth-child(5) { grid-area: e; align-self: end; }
  .team .tr { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "a b" "c d"; }
  .team .t-who { grid-area: a; } .team .t-w { grid-area: b; justify-self: end; } .team .t-dev { grid-area: c; padding-left: 40px; font-size: 14px; color: var(--ink-3); } .team .t-last { grid-area: d; justify-self: end; font-size: 14px; }
  .audit .tr { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "a b" "c c" "d d"; }
  .audit .tr > :nth-child(1) { grid-area: b; } .audit .tr > :nth-child(2) { grid-area: a; } .audit .tr > :nth-child(3) { grid-area: c; } .audit .tr > :nth-child(4) { grid-area: d; font-size: 14px; }
  .banner { flex-direction: column; align-items: stretch; gap: 12px; }
  .banner .btn { height: 44px; }
  .sentence { font-size: 19px; line-height: 30px; }
  .sentence.sm { font-size: 16px; line-height: 25px; }
  .draftbar { flex-wrap: wrap; bottom: 12px; }
  .draftbar p { flex: 1 1 100%; }
  .draftbar .btn { flex: 1; height: 40px; }
  .try { gap: 8px; }
  .try .amount.sm { width: 100%; } .try .amount.sm input { height: 42px; font-size: 16px; }
  .try select { height: 44px; flex: 1 1 100%; }
  .checks li { grid-template-columns: 16px minmax(0, 1fr); }
  .checks .res { grid-column: 2; }
  .stopper { padding-top: 32px; }
  .flow { padding: 12px 20px 40px; }
  .field input[type="text"], .field input[type="email"], .field select, .pop input, .search input { font-size: 16px; }
  .field input[type="text"], .field input[type="email"], .select, .field select { height: 48px; }
  .pick { min-height: 48px; grid-template-columns: minmax(0, 1fr) auto; }
  .pick-h { display: none; }
  .flow-a .btn { height: 48px; flex: 1 1 auto; font-size: 16px; }
  .flow-a .grow { display: none; }
  .vhead { display: none; }
  .table-pane .back { margin: 8px 20px 4px 14px; }
  .vrow { grid-template-columns: 44px minmax(0, 1fr) auto; padding: 0 20px; gap: 8px; }
  .vrow .c-net, .vrow .c-ad, .vrow .c-st { display: none; }
  .list-act { padding-bottom: calc(16px + env(safe-area-inset-bottom)); }
  .list-act .btn { height: 48px; font-size: 16px; }

  .scrim { padding: 0; place-items: end stretch; }
  .scrim.for-cmd { place-items: start stretch; padding: 8px; }
  .scrim.for-send { place-items: center; }
  .menu.as-sheet, .pop.as-sheet { position: static; width: 100%; max-width: none; border-radius: 16px 16px 0 0; padding: 12px 12px calc(16px + env(safe-area-inset-bottom)); animation: up .24s var(--ease) both; }
  .menu.as-sheet .menu-i { min-height: 48px; font-size: 16px; }
  .pop.as-sheet { padding: 20px 20px calc(20px + env(safe-area-inset-bottom)); }
  .scrim.for-sheet { place-items: end stretch; }
  .sheet { width: 100%; height: auto; max-height: 88dvh; border-radius: 16px 16px 0 0; transform: translateY(var(--drag, 0px)); }
  .sheet-grab { display: block; height: 20px; flex: none; touch-action: none; }
  .sheet-grab::after { content: ""; display: block; width: 36px; height: 4px; border-radius: 2px; background: var(--line-2); margin: 8px auto 0; }
  .sheet-h { padding: 0 12px 4px 20px; }
  .sheet-b { padding: 0 20px 20px; }
  .sheet-f { padding: 12px 20px calc(12px + env(safe-area-inset-bottom)); }
  .sheet-f .btn { height: 48px; flex: 1 1 auto; }
  .sheet-f .grow { display: none; }
  .sign { display: block; width: 100%; border-radius: 16px 16px 0 0; animation: up .28s var(--ease) both; }
  .sign-info, .ph-cap { display: none; }
  .sign-phone { background: none; border: 0; padding: 0; }
  .ph { border-radius: 0; box-shadow: none; background: none; padding: 24px 20px calc(8px + env(safe-area-inset-bottom)); min-height: 380px; }
  .ph-amt { font-size: 32px; line-height: 40px; }
  .ph-what { font-size: 15px; } .ph-rows > div { font-size: 15px; padding: 10px 0; grid-template-columns: 96px minmax(0, 1fr); }
  .ph-rows .addr { font-size: 13px; line-height: 20px; }
  .ph .holdbtn { height: 56px; margin-top: 16px; font-size: 16px; }
  .ph-cancel { display: block; width: 100%; height: 44px; margin-top: 4px; text-align: center; color: var(--ink-2); font-weight: 500; }
  .sign.face .ph-body { display: none; }
  .sign.face .ph-face { display: grid; justify-items: center; align-content: center; gap: 12px; min-height: 336px; color: var(--ink-2); }
  .ph-face .ic { width: 56px; height: 56px; color: var(--ink); animation: face .7s ease both; }
  .toast { bottom: calc(72px + env(safe-area-inset-bottom)); }
  body[data-push] .toast { bottom: calc(92px + env(safe-area-inset-bottom)); }
}
@keyframes up { from { transform: translateY(100%); } }
@keyframes face { 0% { opacity: 0; transform: scale(.9); } 40% { opacity: 1; transform: scale(1); } 70% { transform: scale(1.04); } 100% { transform: scale(1); } }
@media (hover: none) { .list-f { display: none; } }
@media (max-width: 1240px) {
  .d-body.two { display: block; max-width: 680px; }
  .d-side { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
  .d-side .facts > div { grid-template-columns: 136px minmax(0, 1fr); gap: 16px; }
  .d-side .facts { gap: 14px; }
  .d-side .facts dt { font-size: inherit; }
}
@media (max-width: 1100px) and (min-width: 761px) {
  .split { grid-template-columns: 340px minmax(0, 1fr); }
  .d-body { padding: 32px 32px; } .d-actions { padding: 16px 32px; }
  .cmd { min-width: 0; } .cmd span { display: none; }
  .vhead, .vrow { grid-template-columns: 56px minmax(120px, 1fr) 120px minmax(120px, 1fr); } .c-net, .c-ad { display: none; }
}
@media (max-width: 1000px) and (min-width: 761px) {
  .total, .cmd kbd { display: none; }
  .nav { margin-left: 4px; } .nav a { padding: 0 10px; }
  .page { padding-left: 32px; padding-right: 32px; }
  .charts { grid-template-columns: 1fr; gap: 40px; }
  .vaults .tr { grid-template-columns: minmax(180px, 1.4fr) minmax(0, 1fr) 152px 128px 16px; }
  .vaults .v-sh { display: none; }
  .split.wide-detail { grid-template-columns: 340px minmax(0, 1fr); }
  .vhead, .vrow { grid-template-columns: 44px minmax(0, 1fr) 112px 112px; gap: 12px; padding: 0 20px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}
@media (max-width: 760px) {
  .d-side .facts > div { grid-template-columns: 104px minmax(0, 1fr); gap: 12px; }
}
