/* Suppism Household CFO
   A monthly letter, not a dashboard. One typeface (Anek Latin, by Ek Type, an Indian
   foundry) whose width axis carries the hierarchy. Colour means money —
   committed, essential, lifestyle, invested, left over — and means it everywhere. */

@font-face {
  font-family: "Anek Latin";
  src: url("/static/fonts/anek-latin.woff2") format("woff2");
  font-weight: 100 800; font-stretch: 75% 125%; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Anek Latin";
  src: url("/static/fonts/anek-latin-ext.woff2") format("woff2");
  font-weight: 100 800; font-stretch: 75% 125%; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --ink: #1A1A2E;          /* Suppism navy: text, committed money */
  --coral: #FF6B6B;        /* Suppism coral: lifestyle money, the one accent */
  --coral-ink: #C7362F;
  --m-committed: #1A1A2E;
  --m-essential: #8C84C8;  /* the lavender of the ₹100 note */
  --m-lifestyle: #FF6B6B;
  --m-invested: #1E8A6E;
  --m-left: #D9EFE7;
  --m-over: #C7362F;
  --paper: #FFFFFF;
  --tint: #F3F3F8;
  --rule: #E3E3EC;
  --soft: #5D6075;
  --faint: #8A8CA0;
  --red: #C7362F;  --red-wash: #FCEDEC;
  --amber: #8F5B00; --amber-wash: #FFF4DE;
  --green: #1E7A61; --green-wash: #E6F4EE;
  --focus: #5B4FD6;
  --font: "Anek Latin", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --read: 42rem;
  --wide: 66rem;
  --r: 10px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #ECEBF5; --paper: #12121F; --tint: #1B1B2C; --rule: #2C2C42; --soft: #A9AAC0; --faint: #7D7F98;
    --m-committed: #C9C6E8; --m-essential: #7E76BE; --m-left: #1F3A33; --coral-ink: #FF8A84;
    --red: #FF8A84; --red-wash: #3A1D20; --amber: #F2B33D; --amber-wash: #33270F; --green: #5BC7A2; --green-wash: #14302A;
    --focus: #A79CFF;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 1.0625rem/1.55 var(--font); font-stretch: 100%;
  font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--coral); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { margin: 0; font-weight: 700; line-height: 1.12; letter-spacing: -0.01em; }
p { margin: 0; }
.quiet { color: var(--soft); }
.small { font-size: 0.9rem; }
.amount { font-weight: 650; white-space: nowrap; }
.in { color: var(--green); }

/* ── shell ─────────────────────────────────────────────── */
.top { border-bottom: 1px solid var(--rule); background: var(--paper); position: sticky; top: 0; z-index: 10; }
.top-inner { max-width: var(--wide); margin: 0 auto; padding: 0.7rem 1rem; display: flex; align-items: center; gap: 1.25rem; }
.mark { display: flex; align-items: center; flex-shrink: 0; }
.mark img { height: 1.55rem; width: auto; display: block; }
.nav { display: flex; gap: 0.2rem; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.nav a { padding: 0.4rem 0.7rem; border-radius: 999px; text-decoration: none; color: var(--soft);
  font-stretch: 92%; font-weight: 560; white-space: nowrap; }
.nav a:hover { color: var(--ink); background: var(--tint); }
.nav a[aria-current="page"] { color: var(--ink); background: var(--tint); }
.count { display: inline-block; min-width: 1.35rem; margin-left: 0.3rem; padding: 0 0.35rem; border-radius: 999px;
  background: var(--coral); color: #fff; font-size: 0.78rem; line-height: 1.35rem; text-align: center; font-weight: 650; }
.menu { position: relative; flex-shrink: 0; }
.menu summary { list-style: none; cursor: pointer; padding: 0.4rem 0.7rem; border-radius: 999px; color: var(--soft);
  font-stretch: 92%; font-weight: 560; max-width: 12rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu summary::-webkit-details-marker { display: none; }
.menu[open] summary, .menu summary:hover { background: var(--tint); color: var(--ink); }
.menu-panel { position: absolute; right: 0; top: calc(100% + 0.4rem); min-width: 13rem; padding: 0.4rem;
  background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r); box-shadow: 0 12px 32px rgba(26, 26, 46, .12); }
.menu-panel a, .menu-panel button { display: block; width: 100%; text-align: left; padding: 0.5rem 0.75rem; border-radius: 8px;
  text-decoration: none; background: none; border: 0; font: inherit; color: var(--ink); cursor: pointer; }
.menu-panel a:hover, .menu-panel button:hover { background: var(--tint); }

main { padding: 2.5rem 1rem 4rem; }
.page { max-width: var(--wide); margin: 0 auto; }
.footnote { max-width: var(--wide); margin: 4.5rem auto 0; padding: 1.25rem 1rem 0; border-top: 1px solid var(--rule);
  color: var(--faint); font-size: 0.9rem; }

/* ── type roles: the width axis is the hierarchy ───────── */
.dateline { color: var(--soft); font-stretch: 92%; font-weight: 560; margin-bottom: 0.75rem; display: flex; gap: 1.25rem; align-items: baseline; flex-wrap: wrap; }
.dateline a { color: var(--soft); }
.headline { font-size: clamp(2.2rem, 1.3rem + 3.3vw, 3.7rem); font-stretch: 112%; font-weight: 760; letter-spacing: -0.02em;
  line-height: 1.02; max-width: 17ch; }
.data-note { margin-top: 1.25rem; max-width: 40rem; padding: 0.85rem 1.1rem; border-radius: var(--r); background: var(--amber-wash); }
.lede { margin-top: 1.25rem; font-size: 1.3rem; line-height: 1.5; max-width: 37rem; }
.lede p + p { margin-top: 0.6rem; }
.chapter { margin-top: 4.5rem; }
.chapter-title { font-size: 1.6rem; font-stretch: 108%; font-weight: 720; margin-bottom: 0.4rem; }
.chapter-sub { color: var(--soft); max-width: var(--read); margin-bottom: 1.5rem; }
h1.page-title { font-size: clamp(2rem, 1.4rem + 2vw, 2.9rem); font-stretch: 112%; font-weight: 750; letter-spacing: -0.02em; }
.page-intro { margin-top: 0.75rem; font-size: 1.2rem; color: var(--soft); max-width: 38rem; }

/* ── status ────────────────────────────────────────────── */
.verdict { margin-top: 1.75rem; display: inline-flex; align-items: center; gap: 0.75rem; padding: 0.5rem 1.1rem 0.5rem 0.55rem;
  border-radius: 999px; font-weight: 600; flex-wrap: wrap; }
.verdict .seal { font-stretch: 88%; font-weight: 750; letter-spacing: 0.04em; padding: 0.15rem 0.7rem; border-radius: 999px; color: #fff; }
.verdict-RED { background: var(--red-wash); } .verdict-RED .seal { background: var(--red); }
.verdict-AMBER { background: var(--amber-wash); } .verdict-AMBER .seal { background: #B87600; }
.verdict-GREEN { background: var(--green-wash); } .verdict-GREEN .seal { background: var(--green); }
.verdict-UNKNOWN { background: var(--tint); } .verdict-UNKNOWN .seal { background: var(--faint); }
@media (prefers-color-scheme: dark) { .verdict .seal { color: #12121F; } }

/* ── the flow bar ──────────────────────────────────────── */
.flow-wrap { margin-top: 1.5rem; }
.flow { display: block; width: 100%; height: 4.25rem; overflow: visible; }
.seg { transform-box: fill-box; transform-origin: left center; animation: grow 0.9s cubic-bezier(.2,.7,.2,1) both; }
.seg:nth-child(2) { animation-delay: .08s; } .seg:nth-child(3) { animation-delay: .16s; }
.seg:nth-child(4) { animation-delay: .24s; } .seg:nth-child(5) { animation-delay: .32s; } .seg:nth-child(6) { animation-delay: .40s; }
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) { .seg { animation: none; } }
.seg-committed { fill: var(--m-committed); } .seg-essential { fill: var(--m-essential); }
.seg-lifestyle { fill: var(--m-lifestyle); } .seg-invested { fill: var(--m-invested); } .seg-left { fill: var(--m-left); }
.hatch-line { stroke: var(--paper); stroke-width: 3.5; opacity: .85; }
.over-outline { fill: none; stroke: var(--m-over); stroke-width: 2.5; vector-effect: non-scaling-stroke; }
.flow-mark { fill: var(--ink); font-size: 13px; font-weight: 650; font-family: var(--font); }
.flow-edge { stroke: var(--ink); stroke-width: 2; vector-effect: non-scaling-stroke; }
.flow-scale { display: flex; justify-content: space-between; color: var(--faint); font-size: 0.85rem; font-stretch: 92%; margin-top: 0.3rem; }
.breakdown { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: 1.25rem 1.5rem; }
.breakdown li { border-top: 4px solid var(--rule); padding-top: 0.6rem; }
.breakdown .what, .breakdown .how-much, .breakdown .note { display: block; }
.breakdown .what { font-stretch: 92%; font-weight: 600; }
.breakdown .how-much { font-size: 1.4rem; font-weight: 720; font-stretch: 105%; }
.breakdown .note { color: var(--soft); font-size: 0.92rem; line-height: 1.35; }
.breakdown .k-committed { border-top-color: var(--m-committed); } .breakdown .k-essential { border-top-color: var(--m-essential); }
.breakdown .k-lifestyle { border-top-color: var(--m-lifestyle); } .breakdown .k-invested { border-top-color: var(--m-invested); }
.breakdown .k-left { border-top-color: #9FD3C0; } .breakdown .k-over { border-top-color: var(--m-over); }
.breakdown .k-over .how-much { color: var(--red); }

/* ── what needs you ────────────────────────────────────── */
.needs { list-style: none; margin: 0; padding: 0; max-width: 48rem; }
.need { position: relative; padding: 1.4rem 0 1.4rem 1.5rem; border-bottom: 1px solid var(--rule); }
.need:first-child { padding-top: 0.6rem; }
.need::before { content: ""; position: absolute; left: 0; top: 1.65rem; width: 0.6rem; height: 0.6rem; border-radius: 50%; background: var(--faint); }
.need:first-child::before { top: 0.85rem; }
.need.red::before { background: var(--red); } .need.amber::before { background: #E09A1C; } .need.info::before { background: var(--m-essential); }
.need h3 { font-size: 1.3rem; font-stretch: 104%; font-weight: 680; }
.need > p { margin-top: 0.4rem; color: var(--soft); max-width: 40rem; }
.need .do { margin-top: 0.9rem; display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; }
.why { margin-top: 0.75rem; }
.why summary { cursor: pointer; font-stretch: 92%; font-weight: 560; color: var(--soft); width: fit-content; }
.why summary:hover { color: var(--ink); }
.why dl { display: grid; grid-template-columns: minmax(8rem, max-content) 1fr; gap: 0.3rem 1.25rem; margin: 0.75rem 0 0; font-size: 0.95rem; }
.why dt { color: var(--faint); } .why dd { margin: 0; overflow-wrap: anywhere; }
.calm { padding: 1.25rem 1.5rem; border-radius: var(--r); background: var(--green-wash); max-width: 42rem; }

/* ── what changed ──────────────────────────────────────── */
.changes { list-style: none; margin: 0; padding: 0; max-width: 44rem; }
.changes li { display: grid; grid-template-columns: 1.5rem 1fr; gap: 0.5rem; padding: 0.7rem 0; border-bottom: 1px solid var(--rule); font-size: 1.1rem; }
.changes .sign { font-weight: 800; text-align: center; }
.changes .bad .sign { color: var(--red); } .changes .good .sign { color: var(--green); } .changes .neutral .sign { color: var(--faint); }

/* ── coming up: a sequence of dates ────────────────────── */
.ahead { display: grid; grid-template-columns: minmax(0, 1fr) 18rem; gap: 3rem; align-items: start; }
.timeline { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--rule); }
.timeline li { position: relative; display: grid; grid-template-columns: 4.5rem 1fr auto; gap: 1rem; padding: 0.55rem 0 0.55rem 1.25rem; align-items: baseline; }
.timeline li::before { content: ""; position: absolute; left: -0.45rem; top: 0.95rem; width: 0.75rem; height: 0.75rem; border-radius: 50%;
  background: var(--paper); border: 2px solid var(--m-committed); }
.timeline li.incoming::before { border-color: var(--m-invested); background: var(--m-invested); }
.timeline .when { font-stretch: 90%; font-weight: 650; color: var(--soft); }
.timeline .label small { display: block; color: var(--faint); font-size: 0.86rem; }
.unconfirmed { display: inline-block; font-size: 0.78rem; font-stretch: 90%; padding: 0 0.45rem; border-radius: 999px;
  border: 1px solid var(--coral); color: var(--coral-ink); margin-left: 0.35rem; vertical-align: 1px; }
.cash-note { padding: 1.25rem; border-radius: var(--r); background: var(--tint); }
.cash-note .amount { font-size: 1.5rem; display: block; margin: 0.15rem 0 0.6rem; }

/* ── six months ────────────────────────────────────────── */
.multiples { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 2rem 2.5rem; }
.multiples figure { margin: 0; }
.multiples figcaption { font-weight: 650; margin-bottom: 0.4rem; }
.multiples figcaption span { display: block; font-weight: 400; color: var(--soft); font-size: 0.92rem; }
.mm { display: block; width: 100%; height: auto; overflow: visible; }
.mm text { font-family: var(--font); }
.mm-axis { fill: var(--faint); font-size: 11px; }
.mm-value { fill: var(--ink); font-size: 13px; font-weight: 700; }
.mm-in { fill: var(--m-essential); opacity: .45; } .mm-out { fill: var(--m-committed); } .mm-out.over { fill: var(--m-over); }
.mm-line { fill: none; stroke: var(--coral); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.mm-dot { fill: var(--paper); stroke: var(--coral); stroke-width: 2; }
.mm-target { stroke: var(--soft); stroke-width: 1; stroke-dasharray: 4 4; }
.key { display: inline-block; width: 0.7rem; height: 0.7rem; border-radius: 2px; margin: 0 0.3rem 0 0.5rem; vertical-align: -1px; }
.key-in { background: var(--m-essential); opacity: .45; } .key-out { background: var(--m-committed); } .key-over { background: var(--m-over); }

/* ── where money sits ──────────────────────────────────── */
.places { display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: 2.5rem; }
.place h3 { font-size: 1.15rem; font-stretch: 104%; margin-bottom: 0.5rem; }
.rows { list-style: none; margin: 0; padding: 0; }
.rows li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.6rem 0; border-bottom: 1px solid var(--rule); align-items: baseline; }
.rows li small { display: block; color: var(--faint); font-size: 0.86rem; }
.rows details { width: 100%; }
.progress { display: block; width: 100%; height: 0.85rem; margin: 0.6rem 0 0.4rem; }
.progress-track { fill: var(--tint); } .progress-fill.short { fill: #E09A1C; } .progress-fill.done { fill: var(--m-invested); }

/* ── buttons & forms ───────────────────────────────────── */
.btn { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.55rem 1.05rem; border-radius: 999px; border: 1.5px solid var(--rule);
  background: var(--paper); color: var(--ink); font: 600 0.98rem var(--font); font-stretch: 96%; text-decoration: none; cursor: pointer; line-height: 1.2; }
.btn:hover { border-color: var(--ink); }
.btn.primary { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn.primary:hover { opacity: .9; }
.btn.add { background: var(--coral); border-color: var(--coral); color: #fff; }
.btn.add:hover { background: #F25454; border-color: #F25454; }
.btn.quiet { border-color: transparent; color: var(--soft); padding-left: 0.6rem; padding-right: 0.6rem; }
.btn.quiet:hover { color: var(--ink); background: var(--tint); }
.btn.danger { border-color: var(--red); color: var(--red); }
.btn.small { padding: 0.35rem 0.8rem; font-size: 0.92rem; }
.btn.big { padding: 0.8rem 1.6rem; font-size: 1.1rem; }
@media (prefers-color-scheme: dark) { .btn.add { color: #12121F; } }
form.inline { display: inline; }
label { display: block; font-weight: 600; font-stretch: 94%; margin-bottom: 0.35rem; }
.hint { display: block; font-weight: 400; color: var(--soft); font-size: 0.9rem; margin-top: 0.3rem; font-stretch: 100%; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=search], select {
  font: inherit; font-size: 1rem; color: var(--ink); background: var(--paper); border: 1.5px solid var(--rule);
  border-radius: 8px; padding: 0.55rem 0.75rem; width: 100%; max-width: 100%; }
input:focus, select:focus { border-color: var(--focus); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 25%, transparent); }
.field { margin-bottom: 1.1rem; }
.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: 0 1.25rem; }
.check { display: flex; gap: 0.6rem; align-items: flex-start; font-weight: 500; font-stretch: 100%; cursor: pointer; }
.check input { margin-top: 0.3rem; width: 1.05rem; height: 1.05rem; accent-color: var(--ink); }
.flash { max-width: var(--wide); margin: 0 auto 1.5rem; padding: 0.85rem 1.1rem; border-radius: var(--r); background: var(--green-wash); }
.flash.error { background: var(--red-wash); }
.panel { border: 1px solid var(--rule); border-radius: var(--r); padding: 1.5rem; }
details.more > summary { cursor: pointer; font-weight: 600; font-stretch: 94%; color: var(--soft); width: fit-content; }
details.more[open] > summary { margin-bottom: 1rem; color: var(--ink); }

/* ── review: questions ─────────────────────────────────── */
.questions { list-style: none; margin: 0; padding: 0; max-width: 46rem; }
.question { padding: 1.75rem 0; border-bottom: 1px solid var(--rule); }
.question h3 { font-size: 1.45rem; font-stretch: 106%; font-weight: 700; }
.question .evidence { margin-top: 0.5rem; color: var(--soft); }
.bank-text { margin-top: 0.4rem; color: var(--faint); font-size: 0.9rem; overflow-wrap: anywhere; }
.question .answers { margin-top: 1rem; display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; }
.chips { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 1rem; }
.chip { padding: 0.45rem 0.85rem; border-radius: 999px; border: 1.5px solid var(--rule); background: var(--paper); color: var(--ink);
  font: 560 0.95rem var(--font); font-stretch: 96%; cursor: pointer; }
.chip:hover { border-color: var(--ink); }
.question .other { margin-top: 0.9rem; display: flex; gap: 0.6rem; flex-wrap: wrap; align-items: center; }
.question .other select { width: auto; min-width: 14rem; }

.dot { display: inline-block; width: 0.6rem; height: 0.6rem; border-radius: 50%; margin-right: 0.5rem; vertical-align: 1px; background: var(--faint); flex-shrink: 0; }
.d-emi { background: var(--m-committed); } .d-essential { background: var(--m-essential); } .d-discretionary { background: var(--m-lifestyle); }
.d-investment { background: var(--m-invested); } .d-income, .d-income_bonus { background: var(--green); }
.d-transfer, .d-cc_payment, .d-not_income { background: transparent; border: 1.5px solid var(--faint); }

/* ── ledger ────────────────────────────────────────────── */
.filters { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr auto; gap: 0.75rem; align-items: end; margin: 1.75rem 0 0.5rem; }
.filters .field { margin: 0; }
.day { margin-top: 1.75rem; }
.day h3 { font-size: 0.98rem; font-stretch: 92%; font-weight: 650; color: var(--soft); padding-bottom: 0.4rem; border-bottom: 1px solid var(--rule); }
.entry { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.15rem 1rem; padding: 0.75rem 0; border-bottom: 1px solid var(--rule); }
.entry.excluded { opacity: .5; }
.entry .who { font-weight: 600; display: flex; align-items: baseline; }
.entry .meta { color: var(--faint); font-size: 0.9rem; padding-left: 1.1rem; }
.entry .amount { text-align: right; font-size: 1.05rem; }
.entry details { grid-column: 1 / -1; padding-left: 1.1rem; }
.entry details summary { cursor: pointer; color: var(--soft); font-size: 0.9rem; width: fit-content; }
.entry .edit { display: flex; gap: 0.6rem; flex-wrap: wrap; align-items: center; margin-top: 0.6rem; }
.entry .edit select { width: auto; min-width: 13rem; }
.flag { font-size: 0.78rem; font-stretch: 90%; padding: 0 0.45rem; border-radius: 999px; background: var(--amber-wash); color: var(--amber); margin-left: 0.45rem; font-weight: 600; }
.pager { margin-top: 1.5rem; display: flex; gap: 1rem; align-items: center; color: var(--soft); }

/* ── plan: a household charter ─────────────────────────── */
.charter { max-width: 46rem; margin-top: 1rem; }
.clause { padding: 1.6rem 0; border-bottom: 1px solid var(--rule); }
.clause .head { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; }
.clause h2 { font-size: 1.15rem; font-stretch: 100%; font-weight: 680; color: var(--soft); }
.clause .sentence { margin-top: 0.5rem; font-size: 1.3rem; line-height: 2.1; }
.clause .sentence input { display: inline-block; width: 6.5rem; padding: 0.1rem 0.45rem; font-size: 1.2rem; font-weight: 680; text-align: center;
  border: 0; border-bottom: 2px solid var(--ink); border-radius: 4px 4px 0 0; background: var(--tint); }
.clause .sentence input.wide { width: 9.5rem; }
.clause .now { margin-top: 0.3rem; color: var(--soft); }
.clause .save { margin-top: 0.9rem; display: flex; gap: 1rem; align-items: center; }
.clause.off .sentence { opacity: .45; }
.budget-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 0.25rem 1.25rem; margin-top: 0.75rem; }
.budget-grid label { font-weight: 500; }

/* ── add statements ────────────────────────────────────── */
.drop { display: block; border: 2px dashed color-mix(in srgb, var(--ink) 25%, transparent); border-radius: 18px; padding: 3rem 1.5rem; text-align: center;
  cursor: pointer; max-width: 42rem; margin-top: 2rem; }
.drop:hover, .drop:focus-within, .drop.over { border-color: var(--ink); background: var(--tint); }
.drop.over { border-style: solid; }
.file-list { list-style: none; margin: 1rem 0 0; padding: 0; max-width: 42rem; }
.file-list li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.45rem 0; border-bottom: 1px solid var(--rule); }
.file-list small { color: var(--faint); }
.btn:disabled { opacity: .55; cursor: default; }
.drop strong { display: block; font-size: 1.45rem; font-stretch: 106%; }
.drop .quiet { display: block; margin-top: 0.4rem; }
.drop input[type=file] { margin-top: 1.25rem; font: inherit; color: var(--soft); max-width: 100%; }
.drop input[type=file]::file-selector-button { font: 600 0.98rem var(--font); font-stretch: 96%; margin-right: 0.9rem; padding: 0.55rem 1.05rem;
  border-radius: 999px; border: 1.5px solid var(--ink); background: var(--paper); color: var(--ink); cursor: pointer; }
.drop + .actions { margin-top: 1.25rem; max-width: 42rem; display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.results { list-style: none; margin: 2rem 0 0; padding: 0; max-width: 48rem; }
.result { padding: 1.5rem 0; border-bottom: 1px solid var(--rule); }
.result h3 { font-size: 1.3rem; font-stretch: 104%; }
.result .file { color: var(--faint); font-size: 0.9rem; margin-top: 0.15rem; }
.checks { list-style: none; margin: 0.9rem 0 0; padding: 0; }
.checks li { display: grid; grid-template-columns: 1.6rem 1fr; padding: 0.25rem 0; }
.checks .ok { color: var(--green); font-weight: 800; } .checks .warn { color: var(--amber); font-weight: 800; } .checks .no { color: var(--red); font-weight: 800; }
.unlock { margin-top: 1rem; display: flex; gap: 0.6rem; flex-wrap: wrap; align-items: center; max-width: 30rem; }
.unlock input { flex: 1; min-width: 12rem; }
.tally { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: 1.5rem; margin-top: 1.75rem; max-width: 48rem; }
.tally b { display: block; font-size: 2.2rem; font-stretch: 110%; font-weight: 750; line-height: 1; }
.tally span { color: var(--soft); }
.recent { margin-top: 3.5rem; max-width: 48rem; }
.actions-row { margin-top: 1.75rem; display: flex; gap: 0.6rem; flex-wrap: wrap; align-items: center; }

/* ── the door (auth) ───────────────────────────────────── */
.door { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.door-story { background: #1A1A2E; color: #F4F3FB; padding: 3rem clamp(1.5rem, 5vw, 5rem); display: flex; flex-direction: column; justify-content: space-between; gap: 2rem; }
.door-story img { height: 1.8rem; width: auto; align-self: flex-start; }
.door-story h1 { font-size: clamp(2.3rem, 1.5rem + 2.7vw, 3.8rem); font-stretch: 114%; font-weight: 760; letter-spacing: -0.02em; line-height: 1.02; max-width: 14ch; }
.door-story p { color: #C9C7E2; font-size: 1.2rem; max-width: 30rem; margin-top: 1.25rem; }
.door-story .sample { margin-top: 2.25rem; border-left: 3px solid #FF6B6B; padding-left: 1.25rem; font-size: 1.12rem; max-width: 30rem; color: #F4F3FB; }
.door-story small { color: #8F8DB0; }
.door-form { padding: 3rem clamp(1.5rem, 5vw, 4.5rem); display: flex; flex-direction: column; justify-content: center; width: 100%; max-width: 34rem; }
.door-form h2 { font-size: 1.9rem; font-stretch: 108%; margin-bottom: 1.5rem; }
.door-form .switch { margin-top: 1.5rem; color: var(--soft); }
.door-form .flash { margin: 0 0 1.25rem; }
.onboard-steps { display: flex; gap: 1.5rem; color: var(--faint); margin-bottom: 1.75rem; font-stretch: 92%; font-weight: 600; flex-wrap: wrap; list-style: none; padding: 0; }
.onboard-steps .now { color: var(--ink); }

/* ── responsive ────────────────────────────────────────── */
@media (max-width: 860px) {
  .ahead { grid-template-columns: 1fr; gap: 2rem; }
  .door { grid-template-columns: 1fr; }
  .filters { grid-template-columns: 1fr 1fr; }
  .menu summary { max-width: 7rem; }
}
@media (max-width: 560px) {
  main { padding-top: 1.75rem; }
  .top-inner { gap: 0.5rem; }
  .btn.add .long { display: none; }
  .timeline li { grid-template-columns: 3.75rem 1fr; }
  .timeline li .amount { grid-column: 2; }
  .chapter { margin-top: 3.25rem; }
  .filters { grid-template-columns: 1fr; }
  .clause .sentence { font-size: 1.15rem; }
}

/* expandable rows (accounts, loans, assets) */
.rows-summary { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; cursor: pointer; list-style: none; }
.rows-summary::-webkit-details-marker { display: none; }
.rows-summary small { display: block; color: var(--faint); font-size: 0.86rem; }
.rows details[open] .rows-summary { margin-bottom: 0.5rem; }
.save { margin-top: 0.75rem; }
.worth { margin-top: 2.5rem; }
.worth-title { font-size: 1.2rem; font-stretch: 104%; font-weight: 680; margin-bottom: 0.25rem; }

/* review: bulk questions and category chips */
.bulk { padding: 1.5rem; border-radius: 14px; background: var(--tint); margin: 1rem 0 1.5rem; max-width: 46rem; }
.bulk h3 { font-size: 1.45rem; font-stretch: 106%; font-weight: 700; }
.bulk .evidence { margin-top: 0.4rem; color: var(--soft); }
.bulk .options { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: 0.6rem; margin-top: 1rem; }
.option { text-align: left; padding: 0.8rem 1rem; border-radius: 12px; border: 1.5px solid var(--rule); background: var(--paper);
  color: var(--ink); font: inherit; cursor: pointer; }
.option:hover { border-color: var(--ink); }
.option b { display: block; font-weight: 680; font-stretch: 100%; }
.option span { display: block; color: var(--soft); font-size: 0.9rem; margin-top: 0.15rem; }
.bulk .check { margin-top: 0.9rem; }
.more-cats { margin-top: 0.6rem; }
.more-cats summary { cursor: pointer; font-weight: 600; font-stretch: 94%; color: var(--soft); width: fit-content; }
.more-cats[open] summary { margin-bottom: 0.3rem; }
.cat-group { margin-top: 0.75rem; color: var(--faint); font-size: 0.86rem; font-stretch: 92%; font-weight: 600; }
.more-cats .chips { margin-top: 0.35rem; }
.chip.small { padding: 0.32rem 0.7rem; font-size: 0.88rem; }
.question .skip { margin-top: 0.75rem; display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; }
.show-more { margin-top: 1.5rem; }

/* statements by email */
.email-hint { margin-top: 2.5rem; max-width: 42rem; padding: 1rem 1.2rem; border-radius: var(--r); background: var(--tint); }
.address { font-size: 1.35rem; font-weight: 680; font-stretch: 104%; display: flex; gap: 0.75rem; align-items: center; flex-wrap: wrap;
  overflow-wrap: anywhere; margin-bottom: 0.5rem; }
.code-box { display: inline-flex; gap: 0.6rem; align-items: baseline; padding: 0.35rem 0.8rem; border-radius: 8px; background: var(--green-wash); margin: 0.3rem 0; }
.code-box b { font-size: 1.2rem; letter-spacing: 0.06em; }
.code-box small { color: var(--soft); }
.field-copy { display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; margin: 0.4rem 0; }
.field-copy code { font: 500 0.95rem var(--font); background: var(--tint); padding: 0.3rem 0.5rem; border-radius: 6px; overflow-wrap: anywhere; }

.chapter .steps { max-width: 44rem; }
.steps li { line-height: 1.6; }
