/* Base (matches the claude.ai preview frame) */
:root { color-scheme: light; padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
body { margin: 0; }
img { max-width: 100%; }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 400; font-display: swap; src: url("vendor/fonts/Figtree_400Regular.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 500; font-display: swap; src: url("vendor/fonts/Figtree_500Medium.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 600; font-display: swap; src: url("vendor/fonts/Figtree_600SemiBold.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 700; font-display: swap; src: url("vendor/fonts/Figtree_700Bold.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 800; font-display: swap; src: url("vendor/fonts/Figtree_800ExtraBold.woff2") format("woff2"); }
@font-face { font-family: "Merriweather"; font-style: normal; font-weight: 400; font-display: swap; src: url("vendor/fonts/Merriweather_400Regular.woff2") format("woff2"); }
@font-face { font-family: "Merriweather"; font-style: normal; font-weight: 700; font-display: swap; src: url("vendor/fonts/Merriweather_700Bold.woff2") format("woff2"); }
@font-face { font-family: "Roboto"; font-style: normal; font-weight: 400; font-display: swap; src: url("vendor/fonts/Roboto_400Regular.woff2") format("woff2"); }
@font-face { font-family: "Roboto"; font-style: normal; font-weight: 700; font-display: swap; src: url("vendor/fonts/Roboto_700Bold.woff2") format("woff2"); }
/* Two looks, one app (Eric's pick, Oct 8 2026):
   Phone (< 960px, her iPhone 17 Pro Max = 440 × 956 CSS px): "Glass". Soft sage/linen/gold background, solid white
   grouped cards, large system-font titles; Liquid-Glass-style blur only on floating controls (tab pill, + button,
   lock button, Back/Next), never behind text, per Apple's guidance.
   Computer (960px+, her Windows PC): today's linen/sage/gold look with Merriweather headings, left sidebar,
   and a Ledger-style dashboard on Home (totals, per-month chart, unpaid list, recent invoices).
   Sage for actions, gold for money. Her B Clean logo in the header, on sign-in and the privacy cover. */
:root {
  --bg: #F1ECE1;
  --surface: #FBF9F4;
  --surface-2: #E9E2D2;
  --input: #FFFFFF;
  --ink: #27322A;
  --muted: #646C5E;
  --line: #DAD1BE;
  --sage: #5B7654;
  --sage-strong: #445B3F;
  --sage-soft: #DEE6D4;
  --on-sage: #FFFFFF;
  --gold: #B48A2F;
  --gold-soft: #F1E4C0;
  --gold-ink: #775912;
  --ok: #3B7045;
  --ok-soft: #DAE9D7;
  --danger: #A23F2C;
  --danger-soft: #F5DDD5;
  --on-danger: #FFFFFF;
  --shadow: 0 1px 2px rgb(39 50 42 / .06), 0 12px 32px rgb(39 50 42 / .12);
  --logo-filter: none;
  --cream: #FBF8F1;
  --warn: #8A5A0B;
  --font-display: "Merriweather", Georgia, "Times New Roman", serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --tb-side: 16px;
  /* Glass (phone): floating controls only; content stays on solid cards */
  --glass-1: rgb(255 255 255 / .5);
  --glass-2: rgb(255 255 255 / .2);
  --glass-edge: rgb(255 255 255 / .6);
  --glass-hi: rgb(255 255 255 / .8);
  --glass-shadow: 0 10px 30px rgb(30 40 30 / .16);
  --lens: rgb(255 255 255 / .72);
  --blob-sage: #B9CDB0;
  --blob-gold: #E9D29A;
  --blob-moss: #C7D8BE;
  --sep: #ECEAE2;
  --seg-track: rgb(118 118 100 / .14);
  --seg-on: #FFFFFF;
  --chip-bg: #F1EFE8;
  --scrim: rgb(55 74 51 / .86);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #151A16; --surface: #1E251F; --surface-2: #2A322B; --input: #111512; --ink: #ECE8DC; --muted: #A4AB9D; --line: #353E36;
    --sage: #8DAA82; --sage-strong: #AAC59F; --sage-soft: #263328; --on-sage: #0F150F;
    --gold: #D4B05C; --gold-soft: #393020; --gold-ink: #E7CB82;
    --ok: #92C69B; --ok-soft: #1E3324; --danger: #E78D78; --danger-soft: #3C2420; --on-danger: #1A0E0B;
    --shadow: 0 1px 2px rgb(0 0 0 / .4), 0 12px 32px rgb(0 0 0 / .4);
    --logo-filter: invert(1); --warn: #E4B35F;
    --glass-1: rgb(52 62 53 / .55); --glass-2: rgb(30 36 31 / .35); --glass-edge: rgb(255 255 255 / .14); --glass-hi: rgb(255 255 255 / .16); --glass-shadow: 0 10px 30px rgb(0 0 0 / .5); --lens: rgb(255 255 255 / .14);
    --blob-sage: #22301F; --blob-gold: #352D1A; --blob-moss: #1C281D; --sep: #2E362F; --seg-track: rgb(255 255 255 / .1); --seg-on: #3A443B; --chip-bg: #2A322B; --scrim: rgb(18 22 18 / .78);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #151A16; --surface: #1E251F; --surface-2: #2A322B; --input: #111512; --ink: #ECE8DC; --muted: #A4AB9D; --line: #353E36;
  --sage: #8DAA82; --sage-strong: #AAC59F; --sage-soft: #263328; --on-sage: #0F150F;
  --gold: #D4B05C; --gold-soft: #393020; --gold-ink: #E7CB82;
  --ok: #92C69B; --ok-soft: #1E3324; --danger: #E78D78; --danger-soft: #3C2420; --on-danger: #1A0E0B;
  --shadow: 0 1px 2px rgb(0 0 0 / .4), 0 12px 32px rgb(0 0 0 / .4);
  --logo-filter: invert(1); --warn: #E4B35F;
  --glass-1: rgb(52 62 53 / .55); --glass-2: rgb(30 36 31 / .35); --glass-edge: rgb(255 255 255 / .14); --glass-hi: rgb(255 255 255 / .16); --glass-shadow: 0 10px 30px rgb(0 0 0 / .5); --lens: rgb(255 255 255 / .14);
  --blob-sage: #22301F; --blob-gold: #352D1A; --blob-moss: #1C281D; --sep: #2E362F; --seg-track: rgb(255 255 255 / .1); --seg-on: #3A443B; --chip-bg: #2A322B; --scrim: rgb(18 22 18 / .78);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; overscroll-behavior: none; }
body { background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 17px; line-height: 1.45; -webkit-tap-highlight-color: transparent; overscroll-behavior: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
/* Feels like an app: no double-tap zoom, no text selection or long-press menus on controls (text and inputs still select) */
button, .key, .day, .chip, .tab, .pill, .tick { touch-action: manipulation; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
img { -webkit-user-drag: none; -webkit-touch-callout: none; }
.btn:active, .chip:active, .tab:active, .tick:active, .icon-btn:active, .pill:active { transform: scale(.97); }
@media (prefers-reduced-motion: reduce) { .btn:active, .chip:active, .tab:active, .tick:active, .icon-btn:active, .pill:active { transform: none; } }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; flex: none; background: var(--muted); }
.dot.gold { background: var(--gold); }
.dot.ok { background: var(--ok); }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-width: 0; }
.card-h h2 { margin: 0; }
/* Status-bar strip for the installed iPhone app (status bar style black-translucent = white clock); see the phone block */
.sb-scrim { display: none; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
svg { display: block; flex: none; }

/* ---------- top bar ---------- */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--bg); border-bottom: 1px solid var(--line); }
.top-in { max-width: 560px; margin: 0 auto; padding: 8px 16px; display: flex; align-items: center; gap: 10px; }
.brand { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.brand { gap: 8px; }
.brand-logo { height: 40px; width: auto; display: block; filter: var(--logo-filter); }
.brand .brand-sub { padding-left: 8px; border-left: 1px solid var(--line); line-height: 1.2; }
.word { font-family: var(--font-display); font-weight: 700; font-size: 20px; line-height: 1.1; }
.brand-sub { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.top-actions { display: flex; align-items: center; gap: 4px; }
.lang { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; background: var(--surface); }
.lang button { border: 0; background: none; padding: 0 12px; min-height: 34px; border-radius: 999px; font-size: 14px; font-weight: 800; color: var(--muted); }
.lang button[aria-pressed="true"] { background: var(--sage); color: var(--on-sage); }
.icon-btn { width: 44px; height: 44px; border-radius: 12px; border: 0; background: none; display: grid; place-items: center; color: var(--ink); }
.icon-btn svg { width: 22px; height: 22px; }

/* ---------- page ---------- */
.main { max-width: 560px; margin: 0 auto; padding-inline: 16px; padding-block: 14px 128px; }
.main.flow { padding-bottom: 140px; }
h1.h { font-family: var(--font-display); font-size: 25px; line-height: 1.25; margin: 4px 0 6px; font-weight: 700; text-wrap: balance; }
.greet { font-family: var(--font-display); font-size: 27px; line-height: 1.2; margin: 10px 0 16px; text-wrap: balance; }
.for { color: var(--muted); margin: 0 0 14px; font-weight: 600; }
.hint { color: var(--muted); font-size: 15px; margin: 0; }
.hint.strong { color: var(--ink); font-weight: 600; }
.strong { font-weight: 700; display: block; }
.lbl { font-size: 12.5px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 16px; display: grid; gap: 12px; margin-bottom: 14px; min-width: 0; }
.empty { color: var(--muted); background: var(--surface); border: 1.5px dashed var(--line); border-radius: 14px; padding: 16px; margin: 0; }
.title-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.back-link { border: 0; background: none; color: var(--sage-strong); font-weight: 700; display: inline-flex; align-items: center; gap: 2px; min-height: 44px; padding: 0; margin-left: -6px; }
.back-link svg { width: 22px; height: 22px; }

/* ---------- form controls ---------- */
.field { display: grid; gap: 6px; min-width: 0; }
.field input, .field select, .jline > input {
  width: 100%; min-width: 0; height: 52px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--input);
  padding: 0 14px; font-size: 18px; font-weight: 600;
}
.field select { appearance: auto; }
.field input:focus, .field select:focus, .jline > input:focus, .money-in:focus-within, .search:focus-within { border-color: var(--sage); outline: none; box-shadow: 0 0 0 3px var(--sage-soft); }
.field.inline { grid-template-columns: 1fr minmax(0, 170px); align-items: center; }
.money-in { display: flex; align-items: center; gap: 4px; height: 52px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--input); padding: 0 14px; font-size: 18px; font-weight: 800; color: var(--muted); min-width: 0; }
.money-in input { border: 0; background: transparent; height: 100%; width: 100%; min-width: 0; padding: 0; font-size: 18px; font-weight: 800; color: var(--ink); outline: none; box-shadow: none; }
.money-in.sm { height: 46px; font-size: 16px; padding: 0 10px; }
.money-in.sm input { font-size: 16px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: end; }
.grid3 { display: grid; grid-template-columns: 1.6fr .8fr 1.1fr; gap: 10px; align-items: end; }
.field input[type="date"] { font-size: 16px; padding: 0 10px; }
@media (max-width: 380px) { .grid3 { grid-template-columns: 1fr 1fr; } .grid3 > :first-child { grid-column: 1 / -1; } }
.search { display: flex; align-items: center; gap: 10px; height: 52px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--input); padding: 0 14px; margin-bottom: 12px; }
.search svg { width: 20px; height: 20px; color: var(--muted); }
.search input { border: 0; background: transparent; height: 100%; flex: 1; min-width: 0; font-size: 17px; outline: none; }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.switch-row input { width: 28px; height: 28px; accent-color: var(--sage); flex: none; }
/* file pickers that look like buttons: the real input covers the label, so a tap opens the picker */
.file-btn { position: relative; overflow: hidden; cursor: pointer; }
.file-btn input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; font-size: 0; }
.file-btn:focus-within { outline: 3px solid var(--gold); outline-offset: 2px; }
.welcome .file-btn { justify-self: start; }

/* ---------- buttons & chips ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 54px; padding: 0 20px; border-radius: 14px; border: 1.5px solid transparent; font-weight: 800; font-size: 17px; text-align: center; }
.btn svg { width: 20px; height: 20px; }
.btn.primary { background: var(--sage); color: var(--on-sage); }
.btn.primary:disabled { opacity: .42; cursor: not-allowed; }
.btn.soft { background: var(--sage-soft); color: var(--sage-strong); }
.btn.ghost { background: transparent; border-color: var(--line); }
.btn.danger { background: var(--danger); color: var(--on-danger); }
.btn.ghost.danger { background: transparent; color: var(--danger); border-color: var(--danger-soft); }
.btn.small { min-height: 44px; padding: 0 14px; font-size: 15px; border-radius: 12px; }
.chips, .seg { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); font-weight: 700; font-size: 16px; font-variant-numeric: tabular-nums; }
.chip.on { background: var(--sage); border-color: var(--sage); color: var(--on-sage); }
.chip.num { min-width: 52px; }
.chip.static { min-height: 34px; display: inline-flex; align-items: center; font-size: 14px; padding: 0 12px; background: var(--sage-soft); border-color: transparent; color: var(--sage-strong); }
.row-btns, .btn-row { display: flex; flex-wrap: wrap; gap: 10px; }
.btn-row { margin-top: 12px; }
.btn-row .btn { flex: 1 1 140px; }
.btn-stack { display: grid; gap: 10px; margin: 14px 0; }
.link { border: 0; background: none; color: var(--sage-strong); font-weight: 800; min-height: 44px; padding: 0; }
.x { width: 40px; height: 40px; border: 0; background: none; color: var(--muted); display: grid; place-items: center; border-radius: 10px; flex: none; }
.x svg { width: 18px; height: 18px; }

/* ---------- home ---------- */
.block { margin-top: 26px; }
.block-h { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 10px; }
.block h2 { font-family: var(--font-display); font-size: 19px; margin: 0; }
.count { font-weight: 800; color: var(--gold-ink); font-variant-numeric: tabular-nums; }
.welcome { border: 2px solid var(--gold); }
.welcome h2 { font-family: var(--font-display); margin: 0; font-size: 21px; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 14px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px; min-width: 0; }
.stat .lbl { font-size: 11px; display: block; }
.stat b { display: block; font-size: 19px; margin-top: 4px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.stat.ok b { color: var(--ok); }
.stat.gold b { color: var(--gold-ink); }

/* ---------- invoice rows ---------- */
.list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.row { display: flex; align-items: center; gap: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 2px 10px 2px 2px; min-width: 0; }
.row-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; border: 0; background: none; text-align: left; padding: 10px; border-radius: 12px; }
.row-no { font-weight: 800; color: var(--muted); font-variant-numeric: tabular-nums; font-size: 14px; flex: none; }
.row-body { flex: 1; min-width: 0; display: grid; }
.row-title { font-weight: 700; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-side { display: grid; justify-items: end; gap: 4px; flex: none; padding: 8px 0; }
.row.quick { padding-right: 8px; }
.tick { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--sage); background: transparent; color: var(--sage-strong); display: grid; place-items: center; flex: none; }
.tick svg { width: 22px; height: 22px; }
.tick-hint { margin: -4px 0 10px; }
.row-meta { font-size: 14px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-amt { font-weight: 800; font-variant-numeric: tabular-nums; flex: none; }
.pill { font-size: 13px; font-weight: 800; padding: 0 10px; min-height: 32px; border-radius: 99px; border: 0; white-space: nowrap; flex: none; }
.pill.paid { background: var(--ok-soft); color: var(--ok); }
.pill.unpaid { background: var(--gold-soft); color: var(--gold-ink); }
.pill.big { font-size: 15px; min-height: 44px; padding: 0 16px; }
.mini { display: inline-flex; align-items: center; gap: 4px; border: 1.5px solid var(--sage); color: var(--sage-strong); background: transparent; border-radius: 99px; padding: 0 10px; min-height: 36px; font-weight: 800; font-size: 13px; flex: none; white-space: nowrap; }
.mini svg { width: 16px; height: 16px; }
.mgroup h3 { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); margin: 20px 0 8px; font-variant-numeric: tabular-nums; }
.years { margin-bottom: 12px; }
.rec-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.copy-area { width: 100%; height: 150px; margin-top: 12px; font-family: ui-monospace, Menlo, monospace; font-size: 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--input); padding: 10px; }

/* ---------- flow ---------- */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin: 4px 0 8px; }
.steps span { height: 6px; border-radius: 99px; background: var(--surface-2); }
.steps .done { background: var(--sage); }
.steps .on { background: var(--gold); }
.step-label { font-size: 14px; color: var(--muted); font-weight: 700; margin: 0 0 6px; }
.actionbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--surface); border-top: 1px solid var(--line); padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px)); }
.actionbar-in { max-width: 560px; margin: 0 auto; display: flex; gap: 10px; }
.actionbar .btn.primary { flex: 1; }
.client-grid, .client-list { display: grid; gap: 10px; }
.pick, .ccard { display: grid; gap: 4px; text-align: left; background: var(--surface); border: 1.5px solid var(--line); border-radius: 16px; padding: 14px 16px; min-width: 0; }
.pick:hover { border-color: var(--sage); }
.pick-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-width: 0; }
.pick-name { font-weight: 800; font-size: 18px; min-width: 0; overflow-wrap: anywhere; }
.pick-addr { color: var(--muted); font-size: 15px; overflow-wrap: anywhere; }
.pick-last { font-size: 14px; color: var(--sage-strong); font-weight: 700; }
.ccard-actions { display: flex; gap: 8px; margin-top: 8px; }
.ccard-actions .btn { flex: 1; }
.tag { font-size: 11.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; padding: 4px 8px; border-radius: 99px; background: var(--surface-2); color: var(--muted); flex: none; }
.tag.property { background: var(--gold-soft); color: var(--gold-ink); }
.tag.home { background: var(--sage-soft); color: var(--sage-strong); }
.tag.past { background: transparent; border: 1px dashed var(--line); color: var(--muted); }
.ccard.past { background: transparent; }
.past-toggle { display: block; margin: 10px auto 0; }
.status.warn { color: var(--warn); font-weight: 600; }
.add-card { width: 100%; margin-top: 10px; display: flex; gap: 8px; align-items: center; justify-content: center; min-height: 60px; border: 2px dashed var(--line); border-radius: 16px; background: transparent; font-weight: 800; color: var(--sage-strong); }
.add-card svg { width: 22px; height: 22px; }
.preview-line { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 16px; overflow-wrap: anywhere; }
.wording summary { min-height: 40px; display: flex; align-items: center; font-weight: 700; color: var(--sage-strong); cursor: pointer; }
.wording[open] summary { margin-bottom: 4px; }

/* calendar */
.cal-head { display: flex; align-items: center; justify-content: space-between; }
.cal-title { font-family: var(--font-display); font-weight: 700; font-size: 19px; text-transform: capitalize; }
.cal-week, .cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cal-week span { text-align: center; font-size: 13px; font-weight: 800; color: var(--muted); }
.day { height: 48px; border-radius: 12px; border: 1.5px solid transparent; background: var(--bg); font-weight: 700; font-size: 17px; position: relative; font-variant-numeric: tabular-nums; padding: 0; }
.day.usual::after { content: ""; position: absolute; left: 50%; bottom: 5px; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: var(--gold); }
.day.today { border-color: var(--gold); }
.day.sel { background: var(--sage); color: var(--on-sage); }
.day.sel.usual::after { background: var(--on-sage); }
.cal-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.visits { font-weight: 800; color: var(--sage-strong); }
.cal-actions { display: flex; gap: 8px; }
.chosen { display: flex; flex-wrap: wrap; gap: 6px; }

/* price */
.big { font-family: var(--font-display); font-size: 44px; font-weight: 700; color: var(--gold-ink); line-height: 1; font-variant-numeric: tabular-nums; }
.lines { display: grid; }
.line { border-top: 1px solid var(--line); padding: 10px 0 6px; display: grid; gap: 4px; min-width: 0; }
.line-top { display: flex; align-items: center; gap: 8px; min-width: 0; }
.line-label { flex: 1; min-width: 0; height: 44px; border: 1.5px solid transparent; background: transparent; border-radius: 10px; padding: 0 8px; margin-left: -8px; font-size: 16px; font-weight: 600; text-overflow: ellipsis; }
.line-label:focus { border-color: var(--sage); background: var(--input); outline: none; }
.stepper { display: flex; align-items: center; border: 1.5px solid var(--line); border-radius: 12px; overflow: hidden; flex: none; background: var(--input); }
.stepper button { width: 42px; height: 42px; border: 0; background: var(--surface-2); font-size: 22px; font-weight: 700; line-height: 1; }
.stepper .amt { min-width: 74px; padding: 0 4px; display: inline-flex; align-items: center; justify-content: center; gap: 3px; font-weight: 800; font-variant-numeric: tabular-nums; }
.stepper .amt svg { width: 13px; height: 13px; }
.line.locked .amt { color: var(--gold-ink); }
.line.locked .stepper { border-color: var(--gold); }
.line-bot { display: flex; align-items: center; gap: 10px; min-width: 0; }
.line-bot .stepper { margin-left: auto; }
.note-btn { flex: 1; border: 0; background: none; color: var(--muted); font-size: 14px; display: inline-flex; gap: 6px; align-items: center; min-height: 40px; padding: 0; text-align: left; min-width: 0; }
.note-btn svg { width: 15px; height: 15px; }
.note-btn span { overflow-wrap: anywhere; }
.lock { font-size: 13px; color: var(--gold-ink); display: inline-flex; gap: 4px; align-items: center; font-weight: 700; white-space: nowrap; }
.lock svg { width: 14px; height: 14px; }
.line-bot .x { margin-left: auto; }
.note-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px 0 8px; }
.note-chips .chip { min-height: 38px; font-size: 14px; padding: 0 12px; }
.note-custom { flex: 1 1 160px; min-width: 0; height: 40px; border-radius: 999px; border: 1.5px dashed var(--line); padding: 0 14px; background: transparent; font-size: 14px; }
.status { display: flex; gap: 8px; align-items: flex-start; font-weight: 700; font-size: 15px; margin: 0; }
.status svg { width: 19px; height: 19px; margin-top: 1px; }
.status.good { color: var(--ok); }
.status.bad { color: var(--danger); }
.warn-text { color: var(--danger); font-weight: 600; }

/* paper preview */
.paper { background: #FFFFFF; border-radius: 6px; box-shadow: var(--shadow); overflow: hidden; margin: 14px 0 8px; min-height: 140px; display: grid; place-items: center; }
.paper canvas { display: block; }
.paper .hint { padding: 24px; color: #646C5E; }
.done { text-align: center; padding-top: 6px; }
.burst { width: 64px; height: 64px; margin: 6px auto 4px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); display: grid; place-items: center; }
.burst svg { width: 34px; height: 34px; stroke-width: 2.5; }
.inv-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.inv-head-text { min-width: 0; }

/* email preview */
.email dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 12px; margin: 0; }
.email dt { color: var(--muted); font-weight: 700; }
.email dd { margin: 0; overflow-wrap: anywhere; }
.email-body { white-space: pre-wrap; font-family: inherit; font-size: 15px; background: var(--bg); border-radius: 12px; padding: 12px; margin: 0; overflow-wrap: anywhere; }
.attach { display: flex; gap: 6px; align-items: center; font-size: 14px; color: var(--muted); margin: 0; min-width: 0; }
.attach svg { width: 16px; height: 16px; }
.attach span { overflow-wrap: anywhere; }

/* client editor */
.job { border-top: 1px solid var(--line); padding-top: 12px; display: grid; gap: 10px; }
.job:first-of-type { border-top: 0; padding-top: 0; }
.job-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.jlines { display: grid; gap: 8px; }
.jline { display: grid; grid-template-columns: minmax(0, 1fr) 104px 40px; gap: 8px; align-items: center; }
.jline > input { height: 46px; font-size: 16px; padding: 0 10px; }
.confirm { background: var(--danger-soft); border-radius: 16px; padding: 16px; margin-top: 12px; }
.confirm p { margin: 0 0 10px; font-weight: 700; }

/* tab bar: on the phone a floating glass pill + a separate round + button (the computer turns it into the sidebar) */
.tabbar { position: fixed; left: var(--tb-side); right: var(--tb-side); bottom: calc(14px + env(safe-area-inset-bottom, 0px)); z-index: 30; display: flex; align-items: center; gap: 12px; pointer-events: none; }
.tabs { pointer-events: auto; flex: 1; min-width: 0; height: 64px; border-radius: 32px; padding: 5px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tab { border: 0; background: none; display: grid; justify-items: center; align-content: center; gap: 1px; min-height: 0; border-radius: 27px; font-size: 11px; font-weight: 600; color: var(--ink); }
.tab svg { width: 24px; height: 24px; }
.tab.on { background: var(--lens); color: var(--sage-strong); box-shadow: inset 0 1px 0 var(--glass-hi), 0 1px 3px rgb(30 40 30 / .08); }
.tab-new { pointer-events: auto; flex: none; width: 64px; height: 64px; border-radius: 50%; background: var(--sage); color: var(--on-sage); border: 1px solid rgb(255 255 255 / .4); box-shadow: inset 0 1px 0 rgb(255 255 255 / .4), inset 0 -8px 16px rgb(0 0 0 / .12), 0 10px 26px rgb(30 40 30 / .24); }
.tab-new.on { background: var(--sage-strong); color: var(--on-sage); }
.tab-new svg { width: 28px; height: 28px; }
.tab-new span { display: none; }

/* toast */
#toast { position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 16px); background: var(--ink); color: var(--bg); padding: 12px 18px; border-radius: 14px; font-weight: 700; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 50; max-width: calc(100% - 32px); text-align: center; }
#toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (prefers-reduced-motion: reduce) { #toast { transition: none; } }

/* ---------- privacy cover (app switcher) ---------- */
#cover { position: fixed; inset: 0; z-index: 100; background: var(--sage); color: var(--gold); display: grid; place-items: center; }
#cover .lock-logo img { display: block; width: 200px; height: auto; }

/* ---------- sign-in ---------- */
.locked { min-height: 100vh; background: var(--sage); }
body:has(.locked) { background: var(--sage); }
.lock-screen { min-height: 100vh; display: grid; grid-template-rows: auto 1fr; padding-inline: 16px; padding-block: 12px 32px; background: var(--sage); color: var(--on-sage); }
.lock-bar { display: flex; justify-content: flex-end; max-width: 420px; width: 100%; margin: 0 auto; }
.lock-bar .lang { background: transparent; border-color: rgb(255 255 255 / .35); }
.lock-bar .lang button { color: var(--on-sage); opacity: .8; }
.lock-bar .lang button[aria-pressed="true"] { background: var(--on-sage); color: var(--sage-strong); opacity: 1; }
.lock-card { width: 100%; max-width: 380px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding-top: 4vh; }
.lock-logo { background: var(--cream); border-radius: 22px; padding: 14px 22px; box-shadow: 0 10px 30px rgb(0 0 0 / .18); }
.lock-logo img { display: block; width: 220px; max-width: 60vw; height: auto; }
.lock-hello { margin: 0; opacity: .85; font-weight: 600; }
.lock-title { font-family: var(--font-display); font-size: 22px; margin: 14px 0 0; text-wrap: balance; }
.lock-sub { margin: 0; opacity: .9; font-size: 16px; max-width: 34ch; }
.dots { display: flex; gap: 16px; margin: 18px 0 4px; }
.dots span { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--on-sage); opacity: .9; }
.dots span.on { background: var(--on-sage); }
.dots.shake { animation: shake .35s; }
@keyframes shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
@media (prefers-reduced-motion: reduce) { .dots.shake { animation: none; } }
.lock-err { min-height: 22px; margin: 0; font-weight: 700; color: var(--gold-soft); }
.keypad { display: grid; grid-template-columns: repeat(3, 76px); gap: 14px 22px; margin-top: 6px; }
.key { width: 76px; height: 76px; border-radius: 50%; border: 0; background: rgb(255 255 255 / .16); color: var(--on-sage); font-size: 30px; font-weight: 600; font-variant-numeric: tabular-nums; }
.key:active { background: rgb(255 255 255 / .32); }
.key:disabled { opacity: .35; }
.key.fn { background: transparent; display: grid; place-items: center; }
.key.fn svg { width: 30px; height: 30px; }
.lock-card .link { color: var(--on-sage); text-decoration: underline; text-underline-offset: 3px; margin-top: 6px; display: inline-flex; align-items: center; gap: 4px; }
.lock-card .link svg { width: 18px; height: 18px; }
.lock-card .danger-link { opacity: .85; font-weight: 600; font-size: 15px; }
.lock-card .btn.wide { width: 100%; margin-top: 8px; }
.lock-card .btn.primary { background: var(--on-sage); color: var(--sage-strong); }
.lock-card .btn.soft { background: rgb(255 255 255 / .16); color: var(--on-sage); }
.lock-card .btn.primary:disabled { opacity: .45; }
.lock-card .confirm { color: var(--ink); text-align: left; width: 100%; }
.rec-code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 19px; font-weight: 700; letter-spacing: .04em; background: var(--surface); color: var(--ink); border-radius: 14px; padding: 14px 12px; margin: 8px 0 0; width: 100%; overflow-wrap: anywhere; user-select: all; -webkit-user-select: all; }
.check-row { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; font-weight: 700; min-height: 48px; margin-top: 6px; }
.check-row input { width: 26px; height: 26px; accent-color: var(--gold); flex: none; }
.rec-form { width: 100%; display: grid; gap: 8px; margin-top: 10px; }
.rec-input { width: 100%; height: 56px; border-radius: 14px; border: 0; padding: 0 14px; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 17px; font-weight: 700; letter-spacing: .03em; background: var(--surface); color: var(--ink); text-transform: uppercase; }
.spinner { width: 44px; height: 44px; margin-top: 28px; border-radius: 50%; border: 4px solid rgb(255 255 255 / .3); border-top-color: var(--on-sage); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 2.4s; } }
@media (max-height: 700px) { .lock-card { padding-top: 0; gap: 6px; } .key { width: 66px; height: 66px; } .keypad { grid-template-columns: repeat(3, 66px); gap: 10px 20px; } }

/* ---------- settings › security ---------- */
.sec-head { display: flex; gap: 12px; align-items: flex-start; }
.sec-head > svg { width: 28px; height: 28px; color: var(--sage-strong); margin-top: 2px; }
.sub-panel { display: grid; gap: 10px; border-top: 1px solid var(--line); padding-top: 12px; }
.sub-panel .rec-code { background: var(--bg); margin: 0; }
.pin-in { letter-spacing: .3em; }
.icon-btn.on { color: var(--sage-strong); background: var(--sage-soft); }
.wording summary { display: grid; gap: 2px; align-content: center; min-height: 48px; }
.summary-val { color: var(--muted); font-weight: 600; font-size: 15px; overflow-wrap: anywhere; }

/* ---------- layout helpers ---------- */
.narrow { max-width: 720px; }
.in-flow .tabbar { display: none; }

/* ---------- phone: Glass ---------- */
.ro-lines { list-style: none; margin: 0; padding: 0; }
.ro-lines li { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid var(--sep); }
.ro-lines li:first-child { border-top: 0; }
.ro-label { flex: 1; min-width: 0; display: grid; font-size: 16px; line-height: 1.3; overflow-wrap: anywhere; }
.ro-label small { font-size: 13px; color: var(--muted); margin-top: 1px; }
.ro-amt { font-weight: 700; font-variant-numeric: tabular-nums; flex: none; }
@media (max-width: 959px) {
  :root {
    --surface: #FFFFFF; --bg: #F3EEE3;
    --font-display: -apple-system, "SF Pro Display", system-ui, "Segoe UI", sans-serif;
    --font-body: -apple-system, "SF Pro Text", system-ui, "Segoe UI", sans-serif;
    --tb-side: max(16px, calc(50% - 270px));
  }
  /* the soft background lives on a fixed layer so it doesn't scroll (background-attachment: fixed is ignored on iPhone) */
  body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
    background: radial-gradient(70% 34% at 6% 0%, var(--blob-sage), transparent 70%), radial-gradient(60% 30% at 100% 28%, var(--blob-gold), transparent 70%),
      radial-gradient(75% 34% at 0% 72%, var(--blob-moss), transparent 70%), radial-gradient(70% 30% at 100% 100%, var(--blob-gold), transparent 72%); }
  /* glass: blur + saturation, a bright top edge and a soft shadow */
  .icon-btn.glass, .tabs, .actionbar .btn.ghost {
    background: linear-gradient(180deg, var(--glass-1), var(--glass-2));
    -webkit-backdrop-filter: blur(24px) saturate(180%); backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid var(--glass-edge); box-shadow: inset 0 1px 0 var(--glass-hi), var(--glass-shadow);
  }
  .icon-btn.glass { width: 46px; height: 46px; border-radius: 50%; box-shadow: inset 0 1px 0 var(--glass-hi), 0 6px 18px rgb(30 40 30 / .12); }
  .icon-btn.glass svg { width: 20px; height: 20px; }

  .top { position: relative; top: auto; background: transparent; border-bottom: 0; }
  .top-in { padding: 10px 16px 0; }
  .brand-logo { height: 34px; }
  .brand .brand-sub { display: none; }
  .main { padding-block: 8px 124px; }
  .main.flow { padding-bottom: 120px; }

  .eyebrow { margin: 8px 0 0; font-size: 13px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
  .greet { font-size: 32px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; margin: 2px 0 16px; }
  h1.h { font-size: 30px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; margin: 8px 0 10px; }
  .block h2 { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }
  .big { font-size: 52px; letter-spacing: -0.03em; }

  .card, .pick, .ccard { border: 0; border-radius: 24px; box-shadow: 0 1px 2px rgb(40 50 40 / .05), 0 8px 24px rgb(40 50 40 / .05); }
  .card { padding: 18px; }
  .search { border-color: transparent; border-radius: 22px; height: 48px; background: var(--surface); box-shadow: 0 1px 2px rgb(40 50 40 / .05); }

  /* grouped lists: one white card, hairlines between rows */
  .list { gap: 0; background: var(--surface); border-radius: 22px; overflow: hidden; box-shadow: 0 1px 2px rgb(40 50 40 / .05), 0 8px 24px rgb(40 50 40 / .05); }
  .row { border: 0; border-radius: 0; background: transparent; padding: 0 12px 0 4px; }
  .row + .row { background-image: linear-gradient(var(--sep), var(--sep)); background-size: calc(100% - 16px) 1px; background-position: right top; background-repeat: no-repeat; }
  .row-main { padding: 12px 10px; }
  .row-title { font-size: 17px; font-weight: 600; }
  .list.inset { background: transparent; box-shadow: none; border-radius: 0; margin: 10px -18px -18px; border-top: 1px solid var(--sep); }

  .due { gap: 0; }
  .due-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; margin-top: -8px; }
  .due-label { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; color: var(--muted); }
  .due-total { font-size: 46px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
  .tick-hint { margin: 8px 4px 0; }

  .stats { gap: 0; background: var(--surface); border-radius: 22px; overflow: hidden; box-shadow: 0 1px 2px rgb(40 50 40 / .05); }
  .stat { border: 0; border-radius: 0; background: transparent; padding: 14px 16px; }
  .stat + .stat { border-left: 1px solid var(--sep); }

  /* chips and iOS-style segmented controls */
  .chip { border-color: transparent; background: var(--chip-bg); }
  .chip.on { background: var(--sage); border-color: var(--sage); }
  .seg, .chips.years { flex-wrap: nowrap; gap: 0; padding: 3px; border-radius: 22px; background: var(--seg-track); max-width: 100%; width: fit-content; overflow-x: auto; }
  .seg .chip, .years .chip { flex: 1 1 auto; background: transparent; border: 0; min-height: 38px; border-radius: 19px; font-weight: 600; color: var(--ink); white-space: nowrap; }
  .seg .chip.on, .years .chip.on { background: var(--seg-on); color: var(--ink); box-shadow: 0 1px 3px rgb(30 40 30 / .14); }

  /* steps: Back is a glass capsule, Next a tinted one, both floating over the page */
  .actionbar { background: none; border-top: 0; padding: 0 var(--tb-side) calc(14px + env(safe-area-inset-bottom, 0px)); pointer-events: none; }
  .actionbar-in { pointer-events: auto; }
  .actionbar .btn { min-height: 60px; border-radius: 30px; }
  .actionbar .btn.ghost { color: var(--ink); padding: 0 22px; }
  .actionbar .btn.primary { border: 1px solid rgb(255 255 255 / .35); box-shadow: inset 0 1px 0 rgb(255 255 255 / .35), inset 0 -10px 18px rgb(0 0 0 / .12), 0 10px 26px rgb(30 40 30 / .24); }

  /* installed app: the page runs under the status bar; this tinted glass strip keeps the white clock readable */
  html.standalone .sb-scrim { display: block; position: fixed; top: 0; left: 0; right: 0; height: env(safe-area-inset-top, 0px); z-index: 60; pointer-events: none;
    background: var(--scrim); -webkit-backdrop-filter: blur(20px) saturate(160%); backdrop-filter: blur(20px) saturate(160%); }
  html.standalone body:has(.locked) .sb-scrim { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* ---------- computer ---------- */
@media (min-width: 700px) {
  .client-grid, .client-list { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
  .ccard { display: flex; flex-direction: column; }
  .ccard-actions { margin-top: auto; padding-top: 8px; }
}
@media (min-width: 960px) {
  .top-in { max-width: none; padding: 8px 24px; min-height: 61px; }
  .tabbar, .in-flow .tabbar { display: flex; flex-direction: column; align-items: stretch; gap: 4px; pointer-events: auto; top: 62px; bottom: 0; left: 0; right: auto; width: 220px; padding: 18px 12px; border-right: 1px solid var(--line); background: var(--bg); }
  .tabs { display: contents; }
  .tab { display: flex; flex-direction: row; align-items: center; justify-content: flex-start; gap: 12px; min-height: 50px; padding: 0 14px; border-radius: 12px; font-size: 16px; font-weight: 800; color: var(--muted); box-shadow: none; }
  .tab svg { width: 26px; height: 26px; }
  .tab:hover { background: var(--surface-2); }
  .tab.on { background: var(--sage-soft); color: var(--sage-strong); box-shadow: none; }
  .tab-new { order: -1; width: auto; height: auto; border: 0; box-shadow: none; background: var(--sage); color: var(--on-sage); margin-bottom: 10px; }
  .tab-new span { display: inline; }
  .tab-new:hover, .tab-new.on { background: var(--sage-strong); color: var(--on-sage); }
  .main, .main.flow { margin-left: 220px; max-width: 1180px; padding-inline: 40px; padding-block: 24px 120px; }
  .greet { font-size: 30px; margin-top: 4px; }
  .actionbar { left: 220px; }
  .actionbar-in { max-width: 1080px; padding: 0 24px; justify-content: space-between; }
  .actionbar .btn.primary { flex: 0 0 auto; min-width: 240px; }
  .flow-grid { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 32px; align-items: start; }
  .flow-main { min-width: 0; }
  .flow-side { position: sticky; top: 85px; }
  .flow-side .paper { margin-top: 0; }
  #toast { bottom: 28px; }
  .lock-card { padding-top: 8vh; }

  /* ---------- dashboard (Home on the computer) ---------- */
  .dash-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; margin-bottom: 18px; }
  .dash-head .greet { margin: 0; }
  .dash-head .hint { font-size: 16px; }
  .kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin-bottom: 14px; }
  .kpi { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; display: grid; gap: 4px; min-width: 0; }
  .kpi-label { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--muted); }
  .kpi-value { font-family: var(--font-display); font-size: 30px; font-weight: 700; line-height: 1.15; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
  .kpi-sub { font-size: 14px; color: var(--muted); }
  .dash-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: stretch; margin-bottom: 14px; }
  .dash-row > .card { margin: 0; }
  .chart-card { flex: 2 1 480px; min-width: 0; }
  .due-card { flex: 1 1 300px; min-width: 0; align-content: start; }
  .chart-card h2, .due-card h2, .table-card h2 { font-family: var(--font-display); font-size: 18px; }
  .chart-card .card-h { align-items: flex-start; flex-wrap: wrap; }
  .chart-card .card-h .hint { font-size: 14px; margin-top: 2px; }
  .year-seg .chip { min-height: 36px; font-size: 14px; padding: 0 12px; }

  .chart { margin: 6px 0 0; }
  .chart-grid { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 8px; row-gap: 8px; }
  .y-axis, .gridlines { display: flex; flex-direction: column; justify-content: space-between; }
  .y-axis { height: 220px; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
  .y-axis span, .gridlines span { height: 0; display: flex; align-items: center; justify-content: flex-end; }
  .plot { position: relative; height: 220px; }
  .gridlines { position: absolute; inset: 0; }
  .gridlines span { border-top: 1px solid var(--sep); }
  .gridlines span:last-child { border-top-color: var(--line); }
  .bars { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .bar-col { height: 100%; display: flex; align-items: flex-end; justify-content: center; border-radius: 6px; outline-offset: 2px; }
  .bar { position: relative; width: 58%; max-width: 44px; min-height: 2px; background: var(--sage); border-radius: 4px 4px 0 0; }
  .bar-col:hover .bar, .bar-col:focus-visible .bar { background: var(--sage-strong); }
  .bar-val { position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); margin-bottom: 4px; font-size: 12px; font-weight: 800; color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
  .bar::after { content: attr(data-tip); position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%); z-index: 2; background: var(--ink); color: var(--bg); font-size: 13px; font-weight: 700; padding: 6px 10px; border-radius: 8px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .12s; }
  .bar-col:hover .bar::after, .bar-col:focus-visible .bar::after { opacity: 1; }
  .bar-col:nth-child(-n+2) .bar::after { left: 0; transform: none; }
  .bar-col:nth-last-child(-n+2) .bar::after { left: auto; right: 0; transform: none; }
  @media (prefers-reduced-motion: reduce) { .bar::after { transition: none; } }
  .x-axis { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); font-size: 12px; color: var(--muted); text-align: center; }
  .chart figcaption { margin-top: 10px; font-size: 14px; }

  .due-list { list-style: none; margin: 0; padding: 0; }
  .due-list li { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-top: 1px solid var(--sep); }
  .due-list li:first-child { border-top: 0; }
  .due-main { flex: 1; min-width: 0; display: grid; text-align: left; border: 0; background: none; padding: 4px 0; }
  .due-name { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .due-main:hover .due-name { color: var(--sage-strong); text-decoration: underline; }
  .due-meta { font-size: 14px; color: var(--muted); }
  .due-amt { font-weight: 800; font-variant-numeric: tabular-nums; }

  .table-card { margin: 0; }
  .table-wrap { overflow-x: auto; margin: 0 -16px -16px; }
  .inv-table { width: 100%; min-width: 680px; border-collapse: collapse; font-size: 15px; }
  .inv-table th { text-align: left; font-size: 12px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); background: var(--surface-2); padding: 9px 12px; }
  .inv-table td { padding: 8px 12px; border-top: 1px solid var(--sep); vertical-align: middle; }
  .inv-table th:first-child, .inv-table td:first-child { padding-left: 16px; }
  .inv-table th:last-child, .inv-table td:last-child { padding-right: 16px; }
  .inv-table .num { text-align: right; font-variant-numeric: tabular-nums; }
  .inv-table .muted { color: var(--muted); font-weight: 700; font-variant-numeric: tabular-nums; }
  .strong-cell { font-weight: 800; }
  .cell-link { border: 0; background: none; padding: 0; min-height: 36px; font-weight: 700; color: var(--ink); text-align: left; }
  .cell-link:hover { color: var(--sage-strong); text-decoration: underline; }
}
