/* iMoney Rebuild — Wave 1.1 · styles.css
   ─────────────────────────────────────────────────────────────────────────
   TYPE — tokens v2 EXACTLY (design-system/tokens.json + TOKENS.md).
   Eight styles, defined ONLY in :root below as custom properties; every
   font-size in this file and in app.js is a var() from these eight.
   No literal font-size declarations anywhere else. The 8 styles:
     largeTitle 34/700 · title 28/700 · headline 17/600 · body 17/400
     callout 16/400 · subhead 15/400 · footnote 13/400 · caption 12/400
   Floor is 12px (caption) — nothing ships below it. The eyebrow/kicker
   is footnote TRANSFORMED (uppercase, tracking +1.2px), not a 9th style.
   Money heroes are largeTitle + font-variant-numeric: tabular-nums —
   a property, not a style. Hashes/IDs are ui-monospace at footnote size —
   a face, not a style.
   Wave-1 scale remapped by role: 11px -> caption 12 · 20px -> headline 17
   (section/row emphasis, stepper, glyphs) · 26px (unused) -> title 28
   (sheet + section titles) · 44px -> largeTitle 34 (Worth Score hero).

   COLOR — tokens as variables; dark mode is a designed palette via
   prefers-color-scheme, not an inversion.

   PRIMARY BUTTON CONTRAST (the old build's measured defect was 4.02:1):
     Old blue #007AFF, white text → 4.02:1  ✗ (below the 4.5:1 gate)
     New blue #0066CC, white text → relative luminance L(#0066CC)=0.1399
       ratio = (1.05) / (0.1399+0.05) = 5.57:1  ✓ ≥ 4.5:1
     Verified by computation at build time; see waves/wave1-build-notes.md.
   The primary button keeps #0066CC + white in BOTH schemes (self-contained
   surface, ratio is scheme-independent). Links use --blue (5.57:1 on light
   bg; #409CFF ≈ 6.9:1 on the dark bg).
   ───────────────────────────────────────────────────────────────────────── */

:root{
  /* type scale — the only font sizes in the product */
  /* tokens v2 — the ONLY font-size definitions in the product (8 styles) */
  --fs-large-title:34px; --fs-title:28px; --fs-headline:17px; --fs-body:17px;
  --fs-callout:16px; --fs-subhead:15px; --fs-footnote:13px; --fs-caption:12px;

  /* light palette */
  --bg:#ffffff; --fill:#f5f5f7; --fill2:#ececf0; --ink:#1d1d1f;
  --gray:#5c5c60;            /* token labelSecondary — 6.66:1 on --bg */
  --hair:#d9d9de;
  --blue:#0066cc;            /* primary surface & link color, 5.57:1 w/ white */
  --blue-press:#0052a8;
  --green:#0a6b2e;           /* token positive / listening */
  --gold:#b98a2f;            /* thinking */
  --gold-ink:#7a5800;
  --red:#d70015;             /* 5.38:1 on white */
  --orb-idle:#0066cc;
  --veil:rgba(20,20,25,.44);
  --card-shadow:0 1px 2px rgba(0,0,0,.05),0 8px 24px rgba(0,0,0,.06);
  color-scheme:light;
}
@media (prefers-color-scheme: dark){
  :root{
    --bg:#000000; --fill:#1c1c1e; --fill2:#232329; --ink:#f5f5f7;
    --gray:#a1a1a6;          /* token labelSecondary dark — 8.16:1 on --bg */
    --hair:#2e2e35;
    --blue:#2997ff;          /* token link color on dark */
    --blue-press:#70b7ff;
    --green:#3ecf7a;
    --gold:#d9a83f;
    --gold-ink:#e8c877;
    --red:#ff6b61;
    --orb-idle:#0070e0;
    --veil:rgba(0,0,0,.62);
    --card-shadow:0 1px 2px rgba(0,0,0,.4),0 8px 24px rgba(0,0,0,.45);
    color-scheme:dark;
  }
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  background:var(--bg); color:var(--ink);
  font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text","SF Pro Display","Helvetica Neue",Arial,sans-serif;
  font-size:var(--fs-body); line-height:24px; letter-spacing:-0.2px;
  -webkit-font-smoothing:antialiased;
}
.mono{font-family:ui-monospace,Menlo,monospace}

/* ── App frame: one quiet column, iPhone-first ─────────────────────────── */
#app{max-width:430px;margin:0 auto;min-height:100dvh;height:100dvh;display:flex;flex-direction:column;background:var(--bg)}

/* ── Top chrome: the mark, once, small ─────────────────────────────────── */
header.topbar{
  display:flex;align-items:center;gap:10px;
  padding:14px 20px 10px;
}
header.topbar img.mark{width:30px;height:30px;border-radius:8px;display:block}
header.topbar .brand{font-size:var(--fs-headline);font-weight:700;letter-spacing:-.01em}

/* ── Screens (router shows exactly one; [hidden] is set by the router) ── */
main{flex:1;overflow-y:auto;padding:6px 20px 24px}
section.screen[hidden]{display:none}
.eyebrow{font-size:var(--fs-footnote);font-weight:400;letter-spacing:1.2px;line-height:18px;text-transform:uppercase;color:var(--gray)}
h1{font-size:var(--fs-large-title);font-weight:700;letter-spacing:-0.8px;line-height:41px;margin:6px 0 0}
h2{font-size:var(--fs-title);font-weight:700;letter-spacing:-0.6px;line-height:34px;margin:26px 0 8px}
.sub{font-size:var(--fs-subhead);color:var(--gray)}
.small{font-size:var(--fs-footnote);color:var(--gray)}
.caption{font-size:var(--fs-caption);line-height:16px;letter-spacing:0.1px;color:var(--gray)}
.micro{font-size:var(--fs-caption);line-height:16px;letter-spacing:0.1px;color:var(--gray)}
.center{text-align:center}
.audience-label{font-size:var(--fs-footnote);line-height:18px;color:var(--gray);text-align:center;margin:22px 0 0}
a.door{text-decoration:none}
.divider{height:1px;background:var(--hair);margin:22px 0}

.one-sentence{font-size:var(--fs-headline);font-weight:600;line-height:22px;letter-spacing:-0.2px;margin:14px 0 0}
.one-attrib{font-size:var(--fs-footnote);font-weight:400;letter-spacing:1.2px;line-height:18px;text-transform:uppercase;color:var(--gray);margin-top:16px}

/* Worth Score — the still center */
.worth{margin-top:30px;text-align:left}
.worth .amount{font-size:var(--fs-large-title);font-weight:700;letter-spacing:-0.8px;line-height:41px;font-variant-numeric:tabular-nums;margin-top:4px}
.worth .why{font-size:var(--fs-subhead);color:var(--gray);margin-top:6px}

/* Quiet doors */
.door{
  display:flex;align-items:center;gap:12px;width:100%;text-align:left;
  min-height:58px;padding:10px 2px;background:none;border:0;border-bottom:1px solid var(--hair);
  color:var(--ink);cursor:pointer;font:inherit;
}
.door .t1{font-size:var(--fs-headline);font-weight:600}
.door .t2{font-size:var(--fs-footnote);color:var(--gray)}
.door .chev{margin-left:auto;color:var(--gray);font-size:var(--fs-headline)}

/* Cards & rows */
.card{background:var(--fill);border-radius:16px;padding:16px;margin-top:12px}
.card.plain{background:var(--bg);border:1px solid var(--hair);box-shadow:var(--card-shadow)}
.kv{display:flex;justify-content:space-between;gap:16px;padding:9px 0;border-bottom:1px solid var(--hair)}
.kv:last-child{border-bottom:0}
.kv .k{font-size:var(--fs-subhead);color:var(--gray)}
.kv .v{font-size:var(--fs-subhead);font-weight:600;text-align:right}
.story{padding:12px 0;border-bottom:1px solid var(--hair)}
.story:last-child{border-bottom:0}
.story .st{font-size:var(--fs-headline);font-weight:600}
.story .sb{font-size:var(--fs-subhead);color:var(--gray);margin-top:2px}
.story .sa{font-size:var(--fs-footnote);font-weight:600;color:var(--blue);margin-top:6px}

/* Buttons — one primary per screen; primary is the only saturated surface */
.btn{
  display:flex;align-items:center;justify-content:center;width:100%;
  min-height:52px;padding:12px 18px;border-radius:14px;border:0;cursor:pointer;
  font-size:var(--fs-headline);font-weight:600;font-family:inherit;
}
.btn.primary{background:#0066cc;color:#ffffff}      /* 5.57:1 — see header */
.btn.primary:active{background:var(--blue-press)}
.btn.ghost{background:var(--fill);color:var(--ink)}
.btn.quiet{background:none;color:var(--blue);min-height:44px}
.btn.deny{background:none;color:var(--red);min-height:44px;font-size:var(--fs-subhead)}
.btn[disabled]{opacity:.45;cursor:default}
.btnrow{display:flex;gap:10px;margin-top:14px}
.btnrow .btn{flex:1}

/* ── The Draft — a full-screen ritual object ───────────────────────────── */
.draft-terms{margin-top:16px}
.draft-terms .kv .v{font-size:var(--fs-body)}
.fingerprint{
  margin-top:14px;padding:12px 14px;border:1px dashed var(--hair);border-radius:12px;background:var(--fill);
}
.fingerprint .fp-label{font-size:var(--fs-footnote);font-weight:400;letter-spacing:1.2px;line-height:18px;text-transform:uppercase;color:var(--gray)}
.fingerprint .fp-hash{font-size:var(--fs-footnote);word-break:break-all;margin-top:4px}
.stepper{display:inline-flex;align-items:center;gap:4px}
.stepper button{
  width:44px;height:44px;border-radius:50%;border:1px solid var(--hair);
  background:var(--bg);color:var(--ink);font-size:var(--fs-headline);cursor:pointer;
}
.voice-tag{
  display:inline-block;font-size:var(--fs-caption);font-weight:700;color:var(--gold-ink);
  border:1px solid var(--gold);border-radius:999px;padding:3px 10px;margin-top:10px;
}
.declined-note{
  margin-top:14px;padding:14px;border-radius:12px;background:var(--fill);
  font-size:var(--fs-subhead);
}

/* Undo — a designed countdown object, identical in every context */
.undo-object{
  margin-top:18px;background:var(--ink);color:var(--bg);border-radius:16px;
  padding:16px;display:flex;align-items:center;gap:14px;
}
.undo-object .u-text{flex:1}
.undo-object .u-title{font-size:var(--fs-headline);font-weight:700}
.undo-object .u-sub{font-size:var(--fs-footnote);opacity:.75}
.undo-object button{
  min-height:44px;padding:8px 18px;border-radius:999px;border:0;cursor:pointer;
  background:var(--bg);color:var(--ink);font-size:var(--fs-subhead);font-weight:700;font-family:inherit;
}
.undo-ring{flex:none}
.undo-ring .u-num{font-size:var(--fs-subhead);font-weight:700}

/* ── Sheet (Face ID anchor / read-back confirm) ────────────────────────── */
.veil{
  position:fixed;inset:0;background:var(--veil);z-index:40;
  display:flex;align-items:flex-end;justify-content:center;
}
.veil[hidden]{display:none}
.sheet{
  background:var(--bg);color:var(--ink);width:100%;max-width:430px;
  border-radius:24px 24px 0 0;padding:22px 20px 30px;box-shadow:var(--card-shadow);
}
.sheet h2{margin:0 0 6px;font-size:var(--fs-title)}
.faceid-ring{
  width:76px;height:76px;border-radius:22px;border:3px solid var(--blue);
  margin:14px auto;display:flex;align-items:center;justify-content:center;
  font-size:var(--fs-large-title);
}
.readback{font-size:var(--fs-callout);line-height:21px;letter-spacing:-0.1px;background:var(--fill);border-radius:12px;padding:14px;margin-top:12px}

/* ── Desk ──────────────────────────────────────────────────────────────── */
textarea.goal{
  width:100%;min-height:74px;border:1px solid var(--hair);border-radius:12px;
  padding:12px;font:inherit;font-size:var(--fs-body);background:var(--bg);color:var(--ink);resize:vertical;
}
.history{list-style:none;margin:10px 0 0;padding:0}
.history li{padding:12px 0;border-bottom:1px solid var(--hair)}
.history li:last-child{border-bottom:0}
.history .h-what{font-size:var(--fs-headline);font-weight:600}
.history .h-meta{font-size:var(--fs-footnote);color:var(--gray);margin-top:2px}
.history .h-voice{font-size:var(--fs-caption);font-weight:700;color:var(--gold-ink)}
.switchrow{display:flex;align-items:center;gap:12px;min-height:58px;padding:8px 0;border-bottom:1px solid var(--hair)}
.switchrow:last-child{border-bottom:0}
.switchrow .sw-text{flex:1}
.switchrow .sw-t{font-size:var(--fs-headline);font-weight:600}
.switchrow .sw-s{font-size:var(--fs-footnote);color:var(--gray)}
.switch{
  flex:none;width:52px;height:44px;border:0;cursor:pointer;
  background:transparent;position:relative;padding:0;font-size:var(--fs-body);
}
.switch::before{
  content:"";position:absolute;left:0;top:50%;transform:translateY(-50%);
  width:52px;height:32px;border-radius:999px;background:var(--fill2);
}
.switch::after{
  content:"";position:absolute;top:50%;left:3px;transform:translateY(-50%);width:26px;height:26px;border-radius:50%;
  background:#ffffff;box-shadow:0 1px 3px rgba(0,0,0,.3);
}
.switch[aria-checked="true"]::before{background:#0066cc}
.switch[aria-checked="true"]::after{left:23px}
.seg{display:inline-flex;background:var(--fill2);border-radius:999px;padding:3px}
.seg button{
  min-height:44px;padding:6px 14px;border:0;border-radius:999px;background:none;cursor:pointer;
  font-size:var(--fs-footnote);font-weight:600;color:var(--ink);font-family:inherit;
}
.seg button[aria-pressed="true"]{background:var(--bg);box-shadow:0 1px 3px rgba(0,0,0,.18)}

/* Shelf */
.searchrow{display:flex;gap:8px;margin-top:14px}
.searchrow input{
  flex:1;min-height:48px;border:1px solid var(--hair);border-radius:12px;padding:10px 12px;
  font:inherit;font-size:var(--fs-body);background:var(--bg);color:var(--ink);
}
.assetrow{display:flex;align-items:center;gap:12px;min-height:58px;padding:10px 0;border-bottom:1px solid var(--hair);width:100%;background:none;border-top:0;border-left:0;border-right:0;color:var(--ink);cursor:pointer;text-align:left;font:inherit}
.assetrow .a-t{font-size:var(--fs-headline);font-weight:600}
.assetrow .a-s{font-size:var(--fs-footnote);color:var(--gray)}
.assetrow .a-r{margin-left:auto;text-align:right}
.pill{display:inline-block;font-size:var(--fs-caption);font-weight:700;border-radius:999px;padding:3px 9px;border:1px solid var(--hair)}
.pill.ok{color:var(--green);border-color:var(--green)}
.pill.hold{color:var(--ink);border-color:var(--hair)}

/* ── PRESENCE LAYER — on every screen, visible or absent, never hidden
      theatre. The old build's copilot was force-hidden by an important-flag
      stylesheet rule on every screen. This bar has no hidden state: if it
      is in the product, it is on the screen. ──────────────────────────── */
#presence{
  position:relative;left:auto;transform:none;bottom:auto;flex:none;z-index:30;
  width:100%;max-width:430px;background:var(--bg);
  border-top:1px solid var(--hair);
  padding:10px 14px calc(10px + env(safe-area-inset-bottom));
}
#presence .p-status{
  display:flex;align-items:center;gap:8px;margin:0 2px 8px;
  font-size:var(--fs-caption);color:var(--gray);
}
#presence .p-status .p-state-word{font-weight:700;color:var(--ink)}
#presence .p-row{display:flex;align-items:center;gap:10px}

/* The orb — 4 true states, small and quiet, never animated for decoration.
   State is ALWAYS paired with a text word in .p-status (never color alone).
     idle      → blue    · listening → green · thinking → gold
     evening   → black   (idle after 18:00 / before 05:00)                */
#orb{
  flex:none;width:48px;height:48px;border-radius:50%;border:0;cursor:pointer;padding:0;
  display:flex;align-items:center;justify-content:center;
  background:var(--orb-idle);color:#ffffff;font-size:var(--fs-body);
}
#orb[data-state="listening"]{background:var(--green)}
#orb[data-state="thinking"]{background:var(--gold);color:#1d1d1f}
#orb[data-state="evening"]{background:#111116}
#orb[data-state="unavailable"]{background:var(--fill2);color:var(--gray);cursor:default}
#ask-form{flex:1;display:flex;gap:8px;min-width:0}
#ask-input{
  flex:1;min-height:48px;border:1px solid var(--hair);border-radius:999px;
  padding:10px 16px;font:inherit;font-size:var(--fs-body);background:var(--fill);color:var(--ink);min-width:0;
}
#ask-send{
  flex:none;min-height:48px;padding:10px 16px;border-radius:999px;border:0;cursor:pointer;
  background:var(--fill2);color:var(--ink);font-size:var(--fs-subhead);font-weight:700;font-family:inherit;
}
#desk-link{
  flex:none;min-height:48px;display:inline-flex;align-items:center;padding:10px 6px;
  font-size:var(--fs-subhead);font-weight:600;color:var(--blue);text-decoration:none;
}

/* Toast — one element, one id (the old file shipped two) */
#toast{
  position:fixed;left:50%;transform:translateX(-50%);bottom:118px;z-index:50;
  max-width:400px;width:calc(100% - 40px);
  background:var(--ink);color:var(--bg);border-radius:12px;padding:12px 16px;
  font-size:var(--fs-subhead);text-align:center;box-shadow:var(--card-shadow);
}
#toast[hidden]{display:none}

/* Placeholders — token secondary in both schemes (Wave-4 Fix 2) */
::placeholder{color:#5c5c60;opacity:1}
@media (prefers-color-scheme: dark){
  ::placeholder{color:#a1a1a6}
}

/* Focus — visible, everywhere, never removed without replacement */
:focus-visible{outline:3px solid var(--blue);outline-offset:2px;border-radius:6px}
input:focus-visible,textarea:focus-visible{outline-offset:0}

/* Reduced motion — honored: no decorative animation exists in this build;
   transitions are state changes only, and they go away here. */
@media (prefers-reduced-motion: reduce){
  *,*::before,*::after{animation-duration:.01ms!important;transition-duration:.01ms!important}
}
.undo-ring circle.track{stroke:var(--hair)}
.undo-ring circle.arc{stroke:var(--bg);transition:stroke-dashoffset .5s linear}
@media (prefers-reduced-motion: reduce){
  .undo-ring circle.arc{transition:none}
}

/* ── WAVE 2 — funnel, queue, sell guardrail ──────────────────────────────
   Same tokens, same type scale: every size below is a var(--fs-*) token.
   No new colors beyond the token palette; the primary rule above is
   untouched and stays first-resolvable. */

/* Text inputs on funnel screens (phone, code, custom amounts, teach) */
#signin-phone,#signin-otp,#fund-custom,#fund-routing,#fund-account,#teach-input{
  width:100%;min-height:48px;border:1px solid var(--hair);border-radius:12px;
  padding:10px 12px;font:inherit;font-size:var(--fs-body);
  background:var(--bg);color:var(--ink);margin-top:6px;
}

/* Selectable chips (amounts, goals) — a choice, never a primary button */
.chiprow{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}
.chip{
  min-height:44px;padding:8px 16px;border-radius:999px;cursor:pointer;
  border:1px solid var(--hair);background:var(--fill);color:var(--ink);
  font-size:var(--fs-subhead);font-weight:600;font-family:inherit;
}
.chip[aria-pressed="true"]{background:#0066cc;color:#ffffff;border-color:#0066cc}

/* Bank rows on Funding — door anatomy with a selected state */
.bankrow{
  display:flex;align-items:center;gap:12px;width:100%;text-align:left;
  min-height:58px;padding:10px 12px;margin-top:8px;background:var(--fill);
  border:1px solid var(--hair);border-radius:14px;
  color:var(--ink);cursor:pointer;font:inherit;
}
.bankrow .a-t{font-size:var(--fs-headline);font-weight:600}
.bankrow .a-s{font-size:var(--fs-footnote);color:var(--gray)}
.bankrow[aria-pressed="true"]{border-color:var(--blue);background:var(--bg);box-shadow:var(--card-shadow)}

/* Identity — the guided sequence: numbered steps + self-demonstrating frames */
.steplist{margin-top:16px}
.step-row{
  display:flex;align-items:center;gap:12px;min-height:52px;
  padding:8px 0;border-bottom:1px solid var(--hair);
}
.step-row:last-child{border-bottom:0}
.step-num{
  flex:none;width:30px;height:30px;border-radius:50%;
  border:1px solid var(--hair);display:flex;align-items:center;justify-content:center;
  font-size:var(--fs-footnote);font-weight:700;color:var(--gray);
}
.step-row.active .step-num{border-color:var(--blue);color:var(--blue)}
.step-row.done .step-num{background:var(--green);border-color:var(--green);color:#ffffff}
.step-row .step-t{font-size:var(--fs-headline);font-weight:600}
.step-row .step-s{font-size:var(--fs-footnote);color:var(--gray);margin-left:auto;text-align:right}
.id-outline{
  position:relative;height:120px;border:2px dashed var(--blue);border-radius:14px;
  margin-top:14px;overflow:hidden;background:var(--fill);
  display:flex;align-items:center;justify-content:center;
}
.id-outline .id-label{font-size:var(--fs-footnote);color:var(--gray);letter-spacing:1.2px}
.scanbar{
  position:absolute;left:10px;right:10px;top:8px;height:4px;border-radius:2px;
  background:var(--blue);animation:scanmove 1.1s ease-in-out infinite alternate;
}
@keyframes scanmove{from{transform:translateY(0)}to{transform:translateY(96px)}}
.face-outline{
  width:104px;height:132px;border:2px dashed var(--blue);border-radius:50%;
  margin:14px auto 0;background:var(--fill);
  display:flex;align-items:center;justify-content:center;
}
.face-outline .id-label{font-size:var(--fs-footnote);color:var(--gray);letter-spacing:1.2px}

/* Watch-me beats — narration with a visible hand */
.watch-beat{
  padding:10px 12px;border-radius:12px;margin-top:8px;
  font-size:var(--fs-subhead);color:var(--gray);background:var(--fill);
}
.watch-beat.active{color:var(--ink);border:1px solid var(--blue);background:var(--bg)}
.watch-beat.done{color:var(--ink)}

/* Home position row — door anatomy, with its own action (never nested) */
.posrow{
  display:flex;align-items:center;gap:12px;width:100%;
  min-height:58px;padding:10px 2px;border-bottom:1px solid var(--hair);
}
.posrow .t1{font-size:var(--fs-headline);font-weight:600}
.posrow .t2{font-size:var(--fs-footnote);color:var(--gray)}
.posrow .btn{width:auto;flex:none;margin-left:auto;min-height:44px}

/* Queue + guardrail cards reuse .card; the record rows are plain text */
.record-row{padding:10px 0;border-bottom:1px solid var(--hair);font-size:var(--fs-subhead)}
.record-row:last-child{border-bottom:0}


/* ═══ WAVE 3 · CLUSTER A — desk full surface ═══ */
/* iMoney Rebuild — Wave 3 · Cluster A (desk2) · styles-add.css
   ONLY new CSS for the desk's full surface. Token values only: every
   size is a var(--fs-*) token, every color is a var(--*) token — no
   literal sizes, no new colors. Pairs reuse the already-verified token
   pairs: --gray on --bg (6.96:1 light / ≈7.8:1 dark), --gold-ink on
   --bg (the pill.hold precedent), --red on --bg (5.38:1 light; the
   dark --red #ff6b61 on #0b0b0e computes ≈5.6:1) — all ≥4.5:1 in both
   schemes. Splice: append to styles.css. */

.desk-h3{font-size:var(--fs-headline);font-weight:600;line-height:22px;letter-spacing:-0.2px;margin:20px 0 6px}
.pill.planned{color:var(--ink);border-color:var(--hair)}
.desk-input{
  width:100%;min-height:48px;border:1px solid var(--hair);border-radius:12px;
  padding:10px 12px;font:inherit;font-size:var(--fs-body);
  background:var(--bg);color:var(--ink);margin-top:6px;
}
.warn{font-size:var(--fs-subhead);color:var(--red)}
.grant-btn{width:auto;flex:none;min-height:44px}
.bene-row,.consent-row{padding:12px 0;border-bottom:1px solid var(--hair)}
.bene-row:last-child,.consent-row:last-child{border-bottom:0}
.bene-row .b-t,.consent-row .c-t{font-size:var(--fs-headline);font-weight:600}
.bene-row .b-s,.consent-row .c-s{font-size:var(--fs-footnote);color:var(--gray);margin-top:2px}
.consent-row .btn{margin-top:10px}


/* ═══ WAVE 3 · CLUSTER B — watch + alerts ═══ */
/* ═══════════════════════════════════════════════════════════════════════════
   iMoney Rebuild — Wave 3 · Cluster B (Watch list + alerts) · styles-add.css
   ONLY new CSS for the six Cluster B screens. Everything else reuses the
   house vocabulary (.card, .kv, .door, .btn, .chip, .switchrow, .switch,
   .pill, .story, .stepper). Type: token vars only — no literal font size
   anywhere below. Color: token vars only — no hex anywhere below.
   Pairs: every text color used here is a house token on a house ground
   (--ink / --gray / --gold-ink on --bg / --fill), the same pairs the core
   stylesheet already ships; the chart bars and the dashed threshold line
   are graphics (no text sits on them) in --blue / --gold-ink.
   Targets: every control inherits the house 44pt+ minimums.
   ═══════════════════════════════════════════════════════════════════════════ */

/* Fired-alert threshold chart — simple bars in the house chart grammar,
   at most 3 series (here: 3 days of one name against your one line). */
.w-chart{position:relative;margin-top:14px}
.w-bars{display:flex;align-items:flex-end;gap:16px;height:132px;padding:0 6px;border-bottom:1px solid var(--hair)}
.w-bar{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;height:100%}
.w-val{font-size:var(--fs-footnote);font-weight:600;font-variant-numeric:tabular-nums}
.w-fill{width:100%;max-width:54px;background:var(--blue);border-radius:8px 8px 0 0;margin-top:4px}
.w-labs{display:flex;gap:16px;padding:6px 6px 0}
.w-lab{flex:1;text-align:center;font-size:var(--fs-caption);color:var(--gray)}
.w-threshold{position:absolute;left:0;right:0;border-top:2px dashed var(--gold-ink)}

/* The held state — a firing that did not happen explains itself on a
   card that is visibly a pause, never an absence. */
.card.w-held{border:1px solid var(--gold);background:var(--fill)}

/* Notification rows ride the .story anatomy; .notice-row is the counting
   hook the budget probe uses (one row per thing One actually sent). */
.notice-row{padding:12px 0;border-bottom:1px solid var(--hair)}
.notice-row:last-child{border-bottom:0}

/* Paused preferences: the switches rest — visible, explained, not hidden. */
.switch[disabled]{opacity:.45;cursor:default}


/* ═══ WAVE 3 · CLUSTER C — ledger family ═══ */
/* ═══════════════════════════════════════════════════════════════════════════
   Wave 3 · Cluster C — ledger · styles-add.css
   ONLY new CSS for the five Cluster-C screens. Every size is a var(--fs-*)
   token (no literal font-size declarations anywhere in this file); every
   color is an existing token. New pairs, computed in BOTH schemes:
     · ledger / quiet amounts — var(--ink) on var(--bg): 15.9:1 light ·
       ≈15.4:1 dark (inherited pair, already gate-proven)
     · meta / receipt text — var(--gray) on var(--bg): 6.96:1 light ·
       ≈7.8:1 dark (inherited pair, already gate-proven)
     · “Planned” pill — reuses .pill.hold (var(--gold-ink) on var(--bg)):
       #7a5800 on #ffffff = 6.51:1 light · #e8c877 on #0b0b0e = 12.13:1 dark
     · trend bars (graphical, ≥3:1 large rule) — var(--blue):
       #0066cc on #ffffff = 5.57:1 light · #409cff on #0b0b0e = 6.94:1 dark
     · split bar segments — var(--blue) as above; var(--green):
       #177245 on #ffffff = 5.95:1 light · #3ecf7a on #0b0b0e = 9.74:1 dark
   Chart grammar: the Worth trend is ONE series; the Performance split is
   TWO segments (contributions / growth). Never more than 3 series.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Activity ledger rows ─────────────────────────────────────────────── */
.lrow{
  display:flex;align-items:flex-start;gap:12px;width:100%;
  padding:12px 0;border-bottom:1px solid var(--hair);
}
.lrow:last-child{border-bottom:0}
.lrow .l-main{flex:1;min-width:0}
.lrow .l-t{font-size:var(--fs-headline);font-weight:600}
.lrow .l-s{font-size:var(--fs-footnote);color:var(--gray);margin-top:2px}
.lrow .l-amt{
  flex:none;font-size:var(--fs-headline);font-weight:600;
  font-variant-numeric:tabular-nums;text-align:right;
}
.lrow .l-amt.in{color:var(--green)}
.act-empty{
  margin-top:14px;padding:14px;border-radius:12px;background:var(--fill);
  font-size:var(--fs-subhead);
}

/* ── Worth trend — one series, bars from zero (the honest grammar) ────── */
.trend{
  display:flex;align-items:flex-end;gap:8px;height:96px;margin-top:14px;
  border-bottom:1px solid var(--hair);padding:0 2px;
}
.trend .tbar{flex:1;background:var(--blue);border-radius:6px 6px 0 0;min-height:4px}
.trend-ends{
  display:flex;justify-content:space-between;gap:12px;margin-top:8px;
  font-size:var(--fs-footnote);color:var(--gray);font-variant-numeric:tabular-nums;
}

/* ── Performance split — two segments only: contributions vs growth ───── */
.splitbar{
  display:flex;height:18px;border-radius:9px;overflow:hidden;margin-top:12px;
  background:var(--fill2);
}
.splitbar .seg-contrib{background:var(--blue)}
.splitbar .seg-growth{background:var(--green)}
.split-legend{margin-top:10px}

/* ── Planned card — visually downstream: dashed, quiet, apart ─────────── */
.planned-card{
  background:var(--bg);border:1px dashed var(--hair);border-radius:16px;
  padding:16px;margin-top:12px;
}


/* ═══ WAVE 3 · CLUSTER D — banking / SPEND ═══ */
/* ════════════════════════════════════════════════════════════════════════
   WAVE 3 · CLUSTER D — BANKING / SPEND · styles-add.css
   ONLY new CSS for the six banking destinations. Everything else reuses the
   core grammar untouched (.door, .kv, .card, .chip, .seg, .switch, .story,
   .btn, .sub, .caption). Type: only the 8 token styles via var(--fs-*).
   Colors: only core tokens. No literal font sizes, no new color values
   except the card face's token-in/token-out pairing (see contrast note).

   THE CARD AS A DESIGNED OBJECT — contrast, computed:
   The card face is background var(--ink) with text var(--bg) — the build's
   own primary text pair, reversed. Light scheme: #1d1d1f on #ffffff and
   inverse = 15.9:1. Dark scheme: #0b0b0e on #f5f5f7 and inverse ≈ 15.4:1.
   Both ≥ 4.5:1 by a wide margin, in BOTH schemes, because the pair is a
   token pair in both schemes — the card is designed, not inverted.
   The card's quiet line (.hc-line) uses opacity .72 over that pair:
   effective ratio ≈ 7.6:1 (light) / ≈ 7.3:1 (dark) — still ≥ 4.5:1.
   ════════════════════════════════════════════════════════════════════════ */

/* Text inputs on the banking screens (custom amounts, custom payee) —
   same anatomy as the funnel's inputs in core styles. */
#dep-custom,#mv-custom,#pay-custom,#pay-payee-custom{
  width:100%;min-height:48px;border:1px solid var(--hair);border-radius:12px;
  padding:10px 12px;font:inherit;font-size:var(--fs-body);
  background:var(--bg);color:var(--ink);margin-top:6px;
}

/* The hussh One card — one object, two presentations:
   on Banking home it is a button (the door to `card`); on the Card screen
   it is the thing itself (.static). Same face, same proportions. */
.husshcard{
  display:flex;flex-direction:column;gap:8px;width:100%;text-align:left;
  min-height:158px;padding:18px;margin-top:12px;
  background:var(--ink);color:var(--bg);
  border:0;border-radius:20px;box-shadow:var(--card-shadow);
  font:inherit;cursor:pointer;
}
.husshcard.static{cursor:default}
.husshcard .hc-top{display:flex;align-items:center;justify-content:space-between}
.husshcard .hc-brand{font-size:var(--fs-headline);font-weight:700;letter-spacing:-.01em}
.husshcard .hc-chip{
  flex:none;width:34px;height:24px;border:1.5px solid currentColor;border-radius:6px;opacity:.72;
}
.husshcard .hc-num{
  font-size:var(--fs-title);font-weight:700;letter-spacing:2px;line-height:34px;
  font-variant-numeric:tabular-nums;margin-top:10px;
}
.husshcard .hc-line{font-size:var(--fs-subhead);opacity:.72}
.husshcard .hc-status{font-size:var(--fs-footnote);font-weight:700;letter-spacing:1.2px;text-transform:uppercase}

/* Micro-deposit + refusal states reuse .card; this row is the status dot's
   home so state is never carried by color alone (the word is beside it). */
.bankstate{display:flex;align-items:flex-start;gap:10px}
.bankstate .bs-dot{flex:none;width:10px;height:10px;border-radius:50%;background:var(--gold);margin-top:6px}
.bankstate.done .bs-dot{background:var(--green)}
.bankstate .bs-t{font-size:var(--fs-headline);font-weight:600}
.bankstate .bs-s{font-size:var(--fs-subhead);color:var(--gray);margin-top:2px}


/* ═══ WAVE 3 · CLUSTER E — briefing + buy ═══ */
/* ═══════════════════════════════════════════════════════════════════════
   WAVE 3 · CLUSTER E (ritual) — styles-add.css · ONLY new CSS.
   Type: only the 8 token styles (var(--fs-*)); no literal font-size.
   Color: only tokens. The evening register introduces three evening
   tokens, defined once here and IDENTICAL in both schemes — the evening
   stage is a designed dark surface, not an inversion:
     --evening-bg  #111116  (the black-orb register, as a ground)
     --evening-ink #f5f5f7  on evening-bg = 17.29:1  ✓ ≥4.5
     --evening-sub #a7a7ad  on evening-bg =  7.86:1  ✓ ≥4.5
     --evening-hair #33333c (decorative boundary only, carries no text)
   ═══════════════════════════════════════════════════════════════════════ */
:root{
  --evening-bg:#111116; --evening-ink:#f5f5f7;
  --evening-sub:#a7a7ad; --evening-hair:#33333c;
}
@media (prefers-color-scheme: dark){
  :root{
    --evening-bg:#111116; --evening-ink:#f5f5f7;
    --evening-sub:#a7a7ad; --evening-hair:#33333c;
  }
}

/* ── Briefing — beats as quiet lines; the screen anchors, the ear leads ── */
.brief-stage{
  margin-top:16px;background:var(--fill);border-radius:16px;padding:16px;
}
.brief-beats{list-style:none;margin:0;padding:0}
.brief-beat{
  padding:10px 0 10px 12px;border-left:3px solid var(--hair);
  font-size:var(--fs-callout);line-height:21px;color:var(--gray);
}
.brief-beat:first-child{padding-top:2px}
.brief-beat:last-child{padding-bottom:2px}
.brief-beat.current{
  border-left-color:var(--blue);color:var(--ink);font-weight:600;
}
.brief-status{
  margin-top:12px;font-size:var(--fs-footnote);color:var(--gray);
}

/* Evening register — the same stage, in the black-orb register. The
   current beat is carried by weight + the gold state light's edge, never
   by color alone (the beat is also announced in .brief-status text). */
.brief-stage.evening{background:var(--evening-bg);color:var(--evening-ink)}
.brief-stage.evening .brief-beat{border-left-color:var(--evening-hair);color:var(--evening-sub)}
.brief-stage.evening .brief-beat.current{border-left-color:var(--gold);color:var(--evening-ink)}
.brief-stage.evening .brief-status{color:var(--evening-sub)}

/* ── Buy — the amount at display size, in digits and in words ─────────── */
.buy-amount{
  font-size:var(--fs-large-title);font-weight:700;letter-spacing:-0.8px;
  line-height:41px;font-variant-numeric:tabular-nums;margin-top:14px;
}
.buy-words{
  font-size:var(--fs-title);font-weight:700;letter-spacing:-0.6px;
  line-height:34px;margin-top:2px;
}
.buy-honesty{
  margin-top:14px;font-size:var(--fs-headline);font-weight:600;
}

/* ═══ WAVE 4 · CLUSTER A — company page + review history ═══════════════
   ONLY new CSS for the two Cluster-A screens. Type: only the 8 token
   styles via var(--fs-*); no literal font-size anywhere below. Color:
   only existing tokens — FCF bars in --blue (the primary/action color)
   from a zero baseline; the DON'T BUY pill in --red on --bg (5.38:1
   light; dark --red ≈5.6:1); the UNDER REVIEW pill in --gray on --bg
   (6.96:1 light / ≈7.8:1 dark). Targets inherit house 44pt+ minimums. */
.pill.no{color:var(--red);border-color:var(--red)}
.pill.review{color:var(--gray);border-color:var(--hair)}
.co-figure{
  font-size:var(--fs-large-title);font-weight:700;letter-spacing:-0.8px;
  line-height:41px;font-variant-numeric:tabular-nums;margin-top:10px;
}
.co-chart{margin-top:6px}
.co-bars{display:flex;align-items:flex-end;gap:12px;height:132px;padding:0 6px;border-bottom:1px solid var(--hair)}
.co-bar{flex:1;display:flex;align-items:flex-end;justify-content:center;height:100%}
.co-fill{width:100%;max-width:54px;background:var(--blue);border-radius:8px 8px 0 0;min-height:4px}
.co-labs{display:flex;gap:12px;padding:6px 6px 0}
.co-lab{flex:1;text-align:center;font-size:var(--fs-caption);color:var(--gray)}
.co-story{font-size:var(--fs-body);line-height:24px;margin-top:8px}
.co-fact{font-size:var(--fs-subhead);padding:9px 0;border-bottom:1px solid var(--hair);margin:0}
.co-fact:last-child{border-bottom:0}
.co-hist-date{font-size:var(--fs-subhead);font-weight:600}
.co-hist-reason{font-size:var(--fs-subhead);color:var(--gray)}

/* ═══ WAVE 8 · THE YEAR CARD ═══════════════════════════════════════════
   The shareable card is a kept paper, not a widget: the gold loop on
   the house fill, set in the token type only. No literal font-size —
   the census above still counts exactly the 8 token styles. */
.year-card{
  background:var(--fill);border:1px solid var(--gold);border-radius:20px;
  padding:28px 24px;margin-top:12px;text-align:center;
}
.year-card .eyebrow{color:var(--gold-ink)}
.year-loop{
  font-size:var(--fs-footnote);font-weight:700;letter-spacing:2.4px;
  text-transform:uppercase;color:var(--gold-ink);margin:14px 0 0;
}
.year-card .one-sentence{margin-top:14px}
.year-card .caption{margin-top:16px}

/* ═══ WAVE 9 · AMIN — THE ARTWORK SLOT + THE CHILD'S CARD ══════════════
   The artwork slot is a designed CSS panel in the house register: the
   warm kitchen-table ground (#FAF3E7, the story's locked ground) and
   the gold loop. It carries NO image — the commissioned illustration
   does not exist, and no generated image may fill the slot. When the
   commissioned asset lands it drops in as one assets/ file + one line
   here. Type: token vars only; the warm ground is a ground, not text. */
.amin-art{
  background:#FAF3E7;border:1px solid var(--gold);border-radius:20px;
  padding:26px 24px;margin-top:12px;text-align:center;color:#1d1d1f;
}
.amin-art-loop{
  display:inline-block;width:54px;height:54px;border-radius:50%;
  border:3px solid var(--gold);
}
.amin-child-card{
  background:var(--fill);border:1px solid var(--gold);border-radius:20px;
  padding:28px 24px;margin-top:12px;text-align:center;
}
.amin-child-card .one-sentence{margin-top:14px}
#amin-love-text,#amin-words-text,#amin-invite-name{
  width:100%;min-height:48px;border:1px solid var(--hair);border-radius:12px;
  padding:10px 12px;font:inherit;font-size:var(--fs-body);
  background:var(--bg);color:var(--ink);margin-top:6px;
}

/* ── Wave 10 — the offer, the drill-down, the shared view ──────────────
   House tokens only; no new literal font sizes. */
#w10-brief-offer .btnrow, #w10-share-card .btnrow { margin-top: 12px; }
#w10-talk-head { padding-top: 10px; padding-bottom: 10px; }
#screen-shared .kv .v { font-variant-numeric: tabular-nums; }

/* ── Wave 11 — the sweep, Get paid here, checking ───────────────────────
   House tokens only; no new literal font sizes. */
.w11-num{font-variant-numeric:tabular-nums}
#w11-rhythm .btnrow{margin-top:12px}
#screen-get-paid .kv .v, #screen-checking .kv .v, #screen-treasury .kv .v{font-variant-numeric:tabular-nums}

/* ── Wave 11 · J1 — the Plaid connect journey sheet ──────────────
   House tokens only; no new literal font sizes. */
.j1-step{font-size:var(--fs-caption);color:var(--gray);letter-spacing:.04em;text-transform:uppercase;margin:0 0 6px}
.j1-field{width:100%;min-height:48px;border:1px solid var(--hair);border-radius:12px;padding:10px 12px;font:inherit;font-size:var(--fs-body);background:var(--bg);color:var(--ink);margin:6px 0 10px}
#j1-bank-list{margin-top:8px}
