/* =========================================================
   Make Your Coffee — global styles
   Look & feel: Buy Me a Coffee (big friendly type, yellow pill CTAs,
   rounded cards, lots of whitespace) in the brand's espresso/cream/gold.
   ========================================================= */

:root {
  /* Brand (from logo README) */
  --espresso: #3C2415;
  --espresso-2: #5A3A26;
  --roast: #7A5236;
  --cream: #FAF6EF;
  --latte: #F1E7D6;
  --foam: #FFFDF9;
  --gold: #C79A49;
  --gold-dark-bg: #D9AE63;

  /* Buy Me a Coffee signature yellow for primary CTAs */
  --bmc-yellow: #FFDD00;
  --bmc-yellow-hover: #F5D100;

  --ink: #222222;
  --ink-soft: #5B524B;
  --line: #E9DFD0;
  --white: #FFFFFF;

  --good: #2F8F5B;
  --warn: #C98A1B;
  --bad: #C0442C;

  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 32px;
  --shadow: 0 1px 2px rgba(60, 36, 21, .06), 0 8px 24px rgba(60, 36, 21, .08);
  --shadow-lg: 0 24px 60px rgba(60, 36, 21, .14);

  /* Hindi and Malayalam fall back to the system's Indian-script fonts (Nirmala UI on Windows, Noto on phones) */
  --font-sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, "Nirmala UI", "Noto Sans Devanagari", "Noto Sans Malayalam", sans-serif;
  --font-serif: "Fraunces", Georgia, "Nirmala UI", "Noto Serif Devanagari", "Noto Serif Malayalam", serif;

  --maxw: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 76px; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select { font: inherit; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }
.bg-cream { background: var(--cream); }
.bg-latte { background: var(--latte); }
.bg-espresso { background: var(--espresso); color: var(--cream); }
.bg-beans {
  background-color: var(--cream);
  background-image: linear-gradient(rgba(250,246,239,.74), rgba(250,246,239,.74)), url("../assets/img/pattern-beans.svg"); /* the doodles only as a faint texture */
  background-size: auto, 360px;
}
.center { text-align: center; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { color: var(--espresso); line-height: 1.12; margin: 0 0 .5em; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.5rem, 6vw, 4.6rem); font-weight: 800; }
h2 { font-size: clamp(2rem, 4vw, 3.1rem); font-weight: 800; }
h3 { font-size: 1.35rem; font-weight: 800; }
.bg-espresso h1, .bg-espresso h2, .bg-espresso h3 { color: var(--cream); }
.serif { font-family: var(--font-serif); font-weight: 600; font-style: italic; letter-spacing: -0.01em; }
.accent { color: #A27A33; } /* darker than the brand gold so headings stay readable (contrast) */
.lead { font-size: 1.2rem; color: var(--ink-soft); max-width: 680px; }
.center .lead { margin-left: auto; margin-right: auto; }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 800; letter-spacing: .12em;
  text-transform: uppercase; color: var(--roast); margin-bottom: 14px;
}
.bg-espresso .eyebrow { color: var(--gold-dark-bg); }.muted { color: var(--ink-soft); }
.small { font-size: .88rem; }

/* ---------- Buttons (BMC pill style) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 30px; border-radius: 999px; border: 2px solid transparent;
  font-weight: 800; font-size: 1.05rem; text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--bmc-yellow); color: var(--espresso); }
.btn-primary:hover { background: var(--bmc-yellow-hover); box-shadow: 0 8px 20px rgba(255, 221, 0, .35); }
.btn-dark { background: var(--espresso); color: var(--cream); }
.btn-dark:hover { background: var(--espresso-2); }
.btn-ghost { background: transparent; color: var(--espresso); border-color: var(--espresso); }
.btn-ghost:hover { background: var(--espresso); color: var(--cream); }
.btn-sm { padding: 10px 20px; font-size: .95rem; }
.btn-block { width: 100%; }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }
.center .btn-row { justify-content: center; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s;
}
.site-header.scrolled { border-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 20px; }
/* Header/footer logo: the cup icon (assets/logo/logo-icon*.png) + the name set in DM Serif Display.
   The name is centred on the cup body (lid to base), not on the steam: the cup body's centre is 64.2% down the icon. */
.brand { --icon-h: 38px; --word-size: 25px; display: inline-flex; align-items: center; gap: 11px; text-decoration: none; flex: 0 0 auto; }
.brand img.brand-icon { height: var(--icon-h); width: auto; display: block; }
.brand .brand-word { font-family: "DM Serif Display", Georgia, serif; font-weight: 400; font-size: var(--word-size); line-height: 1;
  color: var(--espresso); white-space: nowrap; letter-spacing: .005em; transform: translateY(calc(var(--icon-h) * 0.12)); }
.site-footer .brand { margin-bottom: 16px; }
.site-footer .brand .brand-word { color: #FAF6EF; }
@media (max-width: 400px) { .brand { --icon-h: 32px; --word-size: 21px; gap: 9px; } }
.nav-links { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav-links > li { position: relative; }
.nav-links > li > a, .nav-links > li > button {
  display: inline-flex; align-items: center; gap: 6px; padding: 10px 10px; border-radius: 999px; white-space: nowrap;
  text-decoration: none; font-weight: 700; color: var(--espresso); background: none; border: 0; cursor: pointer;
}
.nav-links > li > a:hover, .nav-links > li > button:hover, .nav-links > li > a.active { background: var(--cream); }
.caret { width: 10px; height: 10px; transition: transform .2s; }
.dropdown {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 280px; background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: 10px; list-style: none; margin: 0; opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: all .18s ease;
}
.dropdown.two-col { display: grid; grid-template-columns: 1fr 1fr; min-width: 520px; }
.has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown { opacity: 1; visibility: visible; transform: none; }
.has-dropdown:hover .caret { transform: rotate(180deg); }
.dropdown a { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; text-decoration: none; }
.dropdown a:hover { background: var(--cream); }
.dropdown .dd-ico { font-size: 1.2rem; line-height: 1.4; }
.dropdown strong { display: block; color: var(--espresso); font-size: .95rem; }
.dropdown span.dd-sub { display: block; color: var(--ink-soft); font-size: .8rem; line-height: 1.35; }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-signed { padding: 10px 14px; font-size: .88rem; color: var(--ink-soft); overflow-wrap: anywhere; }
/* 👤 account menu (signed in): name on the button, email + Log out inside */
.acct { position: relative; flex-shrink: 0; }
.nav-links { flex-shrink: 0; } /* don't squeeze the menu: js/main.js switches to a shorter header instead */
.acct-btn { display: inline-flex; align-items: center; gap: 4px; border: 0; background: none; padding: 8px 6px; font: inherit; font-weight: 700; font-size: .88rem; color: var(--espresso); cursor: pointer; white-space: nowrap; }
.acct-btn:hover, .acct-btn[aria-expanded="true"] { color: var(--ink-soft); }
.acct-name { max-width: 90px; overflow: hidden; text-overflow: ellipsis; flex-shrink: 0; }
.acct-short .acct-name { display: none; } /* tight screens: just 👤 (set by js/main.js) */
.acct-pop { display: none; position: absolute; right: 0; top: calc(100% + 8px); flex-direction: column; gap: 4px; min-width: 260px; max-width: 340px; width: max-content; background: var(--white); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 14px; z-index: 60; overflow-wrap: anywhere; }
.acct-pop.open { display: flex; }
.acct-pop a { margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--line); font-weight: 700; color: var(--espresso); text-decoration: none; }
.acct-pop a:hover { color: var(--bad); }
.nav-login { white-space: nowrap; font-weight: 700; text-decoration: none; color: var(--espresso); padding: 10px 14px; }
.menu-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.menu-toggle span { display: block; width: 24px; height: 2.5px; background: var(--espresso); margin: 5px 0; border-radius: 2px; }

@media (max-width: 1180px) { /* the full menu needs ~1180px; below that, use the ☰ menu */
  .menu-toggle { display: block; }
  .nav-links, .nav-cta .nav-login, .nav-cta .acct { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column; align-items: stretch; position: absolute; top: 76px; left: 0; right: 0;
    background: var(--white); padding: 12px 20px 24px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    max-height: calc(100vh - 76px); overflow-y: auto;
  }
  .nav-links.open .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 0 10px; display: none; }
  .nav-links.open .has-dropdown.expanded .dropdown { display: block; min-width: 0; }
  .nav-links.open .mobile-only { display: block; }
}
/* Same ☰ menu on wider screens when the words don't fit (longer Hindi / Malayalam labels); set by js/main.js */
.nav-compact .menu-toggle { display: block; }
.nav-compact .nav-links, .nav-compact .nav-cta .nav-login, .nav-compact .nav-cta .acct { display: none; }
.nav-compact .nav-links.open {
  display: flex; flex-direction: column; align-items: stretch; position: absolute; top: 76px; left: 0; right: 0;
  background: var(--white); padding: 12px 20px 24px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  max-height: calc(100vh - 76px); overflow-y: auto;
}
.nav-compact .nav-links.open .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 0 10px; display: none; }
.nav-compact .nav-links.open .has-dropdown.expanded .dropdown { display: block; min-width: 0; }
.nav-compact .nav-links.open .mobile-only { display: block; }
.nav-compact .nav-links.open .cur-li { padding: 10px 14px; margin-left: 0; }
.nav-compact .nav-links.open .cur-pick .pick-label { position: static; width: auto; height: auto; clip: auto; font-weight: 700; color: var(--espresso); margin-right: 10px; }
.mobile-only { display: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.cur-pick select { font: inherit; font-weight: 700; font-size: .88rem; color: var(--espresso); background: var(--cream); border: 1.5px solid var(--line); border-radius: 999px; padding: 7px 10px; cursor: pointer; }
.cur-pick .pick-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } /* named in the ☰ menu only */
@media (max-width: 1180px) {
  .nav-links.open .cur-li { padding: 10px 14px; margin-left: 0; }
  .nav-links.open .cur-pick .pick-label { position: static; width: auto; height: auto; clip: auto; font-weight: 700; color: var(--espresso); margin-right: 10px; }
}

/* 🌐 Language & currency: one small button on computers, opening a panel; listed in full in the phone menu */
.prefs { position: relative; }
.prefs-btn { border: 1.5px solid var(--line); background: var(--cream); border-radius: 999px; padding: 7px 12px; font: inherit; font-weight: 700; font-size: .85rem; color: var(--espresso); cursor: pointer; white-space: nowrap; }
.prefs-btn:hover, .prefs-btn[aria-expanded="true"] { border-color: var(--espresso); }
.prefs-pop { display: none; position: absolute; right: 0; top: calc(100% + 8px); flex-direction: column; gap: 10px; min-width: 230px; background: var(--white); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 14px; z-index: 60; }
.prefs-pop.open { display: flex; }
.prefs-pop .cur-pick { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.prefs-pop .cur-pick .pick-label { position: static; width: auto; height: auto; clip: auto; font-weight: 700; font-size: .88rem; color: var(--espresso); }
.nav-links.open .prefs-btn { display: none; }
.nav-links.open .prefs-pop { display: flex; position: static; min-width: 0; padding: 0; border: 0; box-shadow: none; gap: 14px; }
.nav-links.open .prefs-pop .cur-pick { justify-content: flex-start; }

/* Hindi and Malayalam letters join together: spacing them out (as the small capitals headings do) breaks the words */
html[lang="hi"] body *, html[lang="ml"] body * { letter-spacing: normal !important; }

/* ---------- Plain-language help: the ⓘ next to finance words, and its pop-up ---------- */
.term-help { display: inline-flex; align-items: center; justify-content: center; width: 1.35em; height: 1.35em; padding: 0; margin-left: 2px; border: 0; border-radius: 50%; background: transparent; color: var(--gold-dark, #8A6420); font: inherit; font-size: .85em; line-height: 1; cursor: pointer; vertical-align: baseline; text-transform: none; letter-spacing: 0; }
.term-help:hover, .term-help:focus-visible { background: var(--cream); color: var(--espresso); outline: 2px solid var(--gold); outline-offset: 1px; }
.help-pop { position: absolute; z-index: 300; background: var(--white); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 14px 16px 14px; font-size: .92rem; line-height: 1.5; color: var(--ink); }
.help-pop[hidden] { display: none; }
.help-pop b { display: block; color: var(--espresso); margin: 0 26px 4px 0; font-size: 1rem; }
.help-pop p { margin: 0; }
.help-x { position: absolute; top: 6px; right: 8px; border: 0; background: none; font-size: 1.4rem; line-height: 1; color: var(--ink-soft); cursor: pointer; padding: 4px 6px; }

/* "What your income can afford" */
.afford-lead { margin: 0 0 10px; font-size: 1rem; line-height: 1.55; }
.afford-gap { background: #FBE6E1; color: #8A2A1B; border-radius: var(--radius-sm); padding: 10px 14px; margin-bottom: 12px; font-size: .9rem; }
.afford-head, .afford-row { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.1fr) 130px minmax(0, 1fr) 130px; gap: 6px 14px; align-items: center; }
.afford-head { font-size: .74rem; font-weight: 800; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .04em; padding: 0 0 6px; border-bottom: 1px solid var(--line); }
.afford-row { padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: .9rem; }
.afford-row.auto { background: var(--cream); margin: 0 -10px; padding: 9px 10px; border-radius: 8px; border-bottom: 0; margin-top: 6px; }
.af-name small, .af-range small { display: block; font-size: .72rem; color: var(--ink-soft); line-height: 1.3; }
.af-you input { width: 100%; border: 1.5px solid var(--line); border-radius: 8px; padding: 6px 8px; font: inherit; font-weight: 700; text-align: right; background: var(--foam); color: var(--espresso); }
.af-you input.bad { border-color: var(--bad); }
.af-you b { display: block; text-align: right; padding-right: 8px; }
.afford-bar { position: relative; height: 10px; background: var(--latte); border-radius: 6px; }
.afford-bar .zone { position: absolute; top: 0; height: 100%; background: rgba(30,122,71,.35); border-radius: 6px; }
.afford-bar b { position: absolute; top: -4px; width: 4px; height: 18px; margin-left: -2px; background: var(--espresso); border-radius: 2px; }
.afford-row .chip { justify-self: start; white-space: nowrap; }
.afford-foot { display: flex; gap: 10px 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-top: 12px; }
.afford-503020 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.afford-503020 div { background: var(--cream); border-radius: var(--radius-sm); padding: 10px 12px; }
.afford-503020 span { display: block; font-size: .78rem; color: var(--ink-soft); }
.afford-503020 b { font-size: 1.3rem; color: var(--espresso); margin-right: 6px; }
.afford-503020 em { font-style: normal; font-size: .78rem; color: var(--ink-soft); }
/* Tabs, live controls and the three views (lifestyle, big buys, experiences) */
.af-tabs { display: flex; gap: 6px; background: var(--cream); padding: 5px; border-radius: 999px; margin: 4px 0 16px; width: max-content; max-width: 100%; overflow-x: auto; }
.af-tabs button { border: 0; background: none; font: inherit; font-weight: 700; font-size: .9rem; color: var(--ink-soft); padding: 8px 16px; border-radius: 999px; cursor: pointer; white-space: nowrap; transition: background .2s, color .2s; }
.af-tabs button[aria-selected="true"] { background: var(--espresso); color: #fff; box-shadow: 0 2px 8px rgba(60,36,21,.25); }
.af-controls { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: flex-end; background: var(--foam); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; margin-bottom: 16px; }
.af-ctl { flex: 1 1 260px; display: flex; flex-direction: column; gap: 6px; font-weight: 700; font-size: .92rem; color: var(--espresso); }
.af-ctl b { font-size: 1.35rem; color: #9C7430; margin-left: 4px; }
.af-ctl small { font-weight: 500; color: var(--ink-soft); font-size: .78rem; }
.af-ctl input[type=range] { width: 100%; accent-color: var(--espresso); height: 28px; cursor: pointer; }
.af-family { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; font-size: .88rem; font-weight: 700; color: var(--espresso); }
.af-family input[type=number] { width: 58px; margin-left: 6px; border: 1.5px solid var(--line); border-radius: 8px; padding: 5px 6px; font: inherit; text-align: center; background: var(--white); }
.af-check { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; cursor: pointer; }
.af-check input { width: 18px; height: 18px; accent-color: var(--espresso); }
.af-savebar { position: sticky; bottom: 10px; z-index: 5; display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; justify-content: space-between; background: var(--espresso); color: #fff; border-radius: 999px; padding: 8px 8px 8px 18px; margin-top: 14px; box-shadow: var(--shadow); font-weight: 700; font-size: .9rem; }
.af-savebar[hidden] { display: none; }
.af-savebar .btn { background: var(--bmc-yellow); color: var(--espresso); }
.af-savebar #afford-err:empty { display: none; }
.af-savebar #afford-err { background: #fff; border-radius: 999px; padding: 4px 10px; }
.af-life { display: grid; grid-template-columns: minmax(220px, .8fr) minmax(0, 1.4fr); gap: 16px 24px; align-items: center; background: linear-gradient(135deg, #FFF8E6, var(--cream)); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 18px; margin-bottom: 14px; }
.af-tier { display: flex; gap: 14px; align-items: center; }
.af-tier-ico { font-size: 2.6rem; line-height: 1; filter: drop-shadow(0 3px 6px rgba(60,36,21,.15)); }
.af-tier small { display: block; color: var(--ink-soft); font-size: .8rem; }
.af-tier b { font-family: var(--font-serif); font-size: 1.55rem; color: var(--espresso); line-height: 1.15; }
.af-life ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: .92rem; }
.af-life li b { color: var(--espresso); }
.af-range b { display: block; font-size: 1rem; color: var(--espresso); }
.af-range .af-pct { font-size: .8rem; font-weight: 700; color: var(--ink-soft); }
.afford-bar .zone, .afford-bar b { transition: left .25s ease, width .25s ease; }
.af-buys { display: grid; gap: 14px; }
.af-buy { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; background: var(--white); }
.af-buy-head { display: flex; gap: 14px; align-items: center; margin-bottom: 6px; }
.af-buy-ico { font-size: 2.1rem; width: 54px; height: 54px; display: grid; place-items: center; background: var(--cream); border-radius: 16px; flex-shrink: 0; }
.af-buy-head small { display: block; color: var(--ink-soft); font-size: .8rem; font-weight: 700; }
.af-buy-head b { display: block; font-family: var(--font-serif); font-size: 1.6rem; color: var(--espresso); line-height: 1.1; }
.af-buy p { margin: 4px 0 10px; color: var(--ink); }
.af-ladder { display: grid; gap: 6px; }
.af-step { display: grid; grid-template-columns: minmax(0, 1fr) auto 110px; gap: 4px 12px; align-items: center; padding: 8px 12px; border-radius: 10px; font-size: .88rem; background: var(--foam); border: 1px solid var(--line); transition: background .25s, opacity .25s; }
.af-step small { color: var(--ink-soft); white-space: nowrap; }
.af-step em { font-style: normal; font-weight: 800; font-size: .8rem; text-align: right; white-space: nowrap; }
.af-step.ok { background: #E6F3EA; border-color: #BFDDC9; } .af-step.ok em { color: var(--good); }
.af-step.part { background: #FFF6DC; border-color: #F0DFA8; } .af-step.part em { color: #8A6A10; }
.af-step.later em { color: var(--ink-soft); }
.af-step.no { opacity: .55; }
.af-exp { display: grid; grid-template-columns: minmax(200px, .8fr) minmax(0, 1.2fr); gap: 12px; margin-bottom: 12px; }
.af-exp-big { background: linear-gradient(135deg, #2E6B8F, #3C9D8F); color: #fff; border-radius: var(--radius-sm); padding: 14px 18px; }
.af-exp-big small, .af-exp-big > span { display: block; opacity: .9; font-size: .82rem; font-weight: 700; }
.af-exp-big b { display: block; font-family: var(--font-serif); font-size: 2rem; line-height: 1.15; }
.af-exp-big b span { font-size: 1rem; opacity: .85; }
.af-exp-split { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.af-exp-split div { background: var(--cream); border-radius: var(--radius-sm); padding: 12px 14px; font-weight: 700; font-size: .88rem; color: var(--ink-soft); }
.af-exp-split b { display: block; font-size: 1.35rem; color: var(--espresso); margin-top: 2px; }
.af-exp-split small { font-weight: 600; }
.af-why { background: var(--foam); border-left: 4px solid var(--gold); border-radius: 8px; padding: 10px 14px; font-size: .9rem; margin: 6px 0 14px; }
.af-h { margin: 16px 0 8px; font-size: 1rem; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.af-trips { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.af-trip { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 12px; border-radius: 14px; border: 1px solid var(--line); background: var(--white); transition: transform .2s, box-shadow .2s, opacity .25s; }
.af-trip:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.af-trip .af-flag { font-size: 1.8rem; line-height: 1.1; }
.af-trip b { font-size: .9rem; color: var(--espresso); line-height: 1.25; }
.af-trip span { font-size: .8rem; color: var(--ink-soft); }
.af-trip em { font-style: normal; font-weight: 800; font-size: .78rem; margin-top: 4px; align-self: flex-start; padding: 3px 9px; border-radius: 999px; background: var(--latte); color: var(--ink-soft); }
.af-trip.ok { border-color: #BFDDC9; background: linear-gradient(180deg, #F1FAF4, var(--white)); } .af-trip.ok em { background: #DCEFE3; color: var(--good); }
.af-trip.part em { background: #FFF1C7; color: #8A6A10; }
.af-trip.no { opacity: .5; }
/* Details on demand: fold-away sections */
.af-det > summary { list-style: none; cursor: pointer; }
.af-det > summary::-webkit-details-marker { display: none; }
.af-det-body { padding-top: 6px; }
.af-more > summary, .af-how > summary { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: .85rem; color: #2E6B8F; padding: 6px 0; }
.af-more > summary::after { content: "▾"; transition: transform .2s; }
.af-more[open] > summary::after { transform: rotate(180deg); }
.af-how { margin-top: 10px; }
.af-how > summary { color: var(--ink-soft); font-weight: 600; font-size: .8rem; }
.af-gdet { margin-top: 10px; }
.af-gdet > summary .af-group { margin: 0 -10px; position: relative; padding-right: 40px; }
.af-gdet > summary .af-group::after { content: "▾"; position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-size: 1rem; color: var(--ink-soft); transition: transform .2s; }
.af-gdet[open] > summary .af-group::after { transform: translateY(-50%) rotate(180deg); }
.af-gdet:not([open]) .af-g-title small { display: none; }
.af-gdet > summary:hover .af-group { filter: brightness(.98); }
.af-folds { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 10px; margin-top: 14px; }
.af-fold { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--foam); padding: 0 14px; margin-top: 10px; }
.af-folds .af-fold { margin-top: 0; }
.af-fold > summary { display: flex; align-items: center; gap: 8px; padding: 12px 0; font-weight: 700; font-size: .92rem; color: var(--espresso); }
.af-fold > summary::after { content: "▾"; margin-left: auto; color: var(--ink-soft); transition: transform .2s; }
.af-fold[open] > summary::after { transform: rotate(180deg); }
.af-fold .af-det-body { padding-bottom: 12px; font-size: .88rem; }
.af-fold ul { margin: 0; padding-left: 18px; display: grid; gap: 4px; }
/* The month at a glance */
.af-glance { margin: 4px 0 4px; }
.af-glance small { display: block; font-size: .78rem; font-weight: 800; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 6px; }
.af-stack { display: flex; height: 38px; border-radius: 12px; overflow: hidden; font-size: .8rem; }
.af-stack span { display: flex; align-items: center; justify-content: center; gap: 4px; white-space: nowrap; overflow: hidden; color: #fff; padding: 0 8px; min-width: 0; transition: flex .3s ease; }
.af-stack .need { background: #8B5A3C; } .af-stack .want { background: #956C26; } .af-stack .save { background: #1E6B42; } /* deep enough for white text */
/* Big buys: three compact cards */
.af-buys { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); align-items: start; }
.af-buy-line { margin: 2px 0 0 !important; font-size: .85rem; }
.af-buy .af-det-body .af-ladder { margin-top: 6px; }
.af-buy .af-step { grid-template-columns: minmax(0, 1fr) auto; }
.af-buy .af-step small { grid-column: 1; grid-row: 2; }
/* Needs / Wants / Savings groups */
.af-group { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; margin: 18px -10px 4px; padding: 10px 12px; border-radius: 12px; border-left: 5px solid var(--line); background: var(--cream); }
.af-group.need { border-left-color: #8B5A3C; background: #F6EEE4; }
.af-group.want { border-left-color: var(--gold); background: #FFF6E0; }
.af-group.save { border-left-color: var(--good); background: #EAF5EE; }
.af-g-title { display: flex; gap: 10px; align-items: center; min-width: 0; flex: 1 1 320px; }
.af-g-title > span { font-size: 1.5rem; }
.af-g-title b { display: block; font-size: 1.02rem; color: var(--espresso); }
.af-g-title small { display: block; font-size: .78rem; color: var(--ink-soft); line-height: 1.35; }
.af-g-sum { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; font-size: .85rem; }
.af-g-sum b { color: var(--espresso); }
.af-g-sum em { font-style: normal; font-weight: 800; font-size: .75rem; color: var(--ink-soft); }
.af-sub { margin: 4px 0 0; font-size: .85rem; color: var(--ink-soft); padding-left: 4px; }
/* Experiences account: balance, month by month, and where to keep it */
.af-bal { flex: 1 1 100%; display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; font-weight: 700; font-size: .9rem; color: var(--espresso); border-top: 1px dashed var(--line); padding-top: 12px; }
.af-bal input { width: 160px; border: 1.5px solid var(--line); border-radius: 8px; padding: 6px 8px; font: inherit; text-align: right; background: var(--white); }
.af-bal input.bad { border-color: var(--bad); }
.af-bal small { flex-basis: 100%; font-weight: 500; color: var(--ink-soft); font-size: .78rem; }
.af-acct { border: 1px solid #CFE3EA; background: linear-gradient(180deg, #F2F9FB, var(--white)); border-radius: var(--radius-sm); padding: 14px 16px; margin-bottom: 12px; }
.af-acct-head { display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; align-items: flex-end; }
.af-acct-head small { display: block; font-size: .8rem; font-weight: 700; color: var(--ink-soft); }
.af-acct-head b { display: block; font-family: var(--font-serif); font-size: 1.7rem; color: #2E6B8F; line-height: 1.15; }
.af-mchart { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 6px; align-items: end; height: 130px; margin: 14px 0 6px; }
.af-mbar { height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 3px; min-width: 0; }
.af-mbar i { font-style: normal; font-size: 1rem; line-height: 1; min-height: 1rem; }
.af-mbar b { width: 100%; max-width: 34px; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, #3C9D8F, #2E6B8F); transition: height .3s ease; }
.af-mbar span { font-size: .68rem; color: var(--ink-soft); white-space: nowrap; overflow: hidden; max-width: 100%; }
.af-reach { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.af-reach span { background: var(--white); border: 1px solid #CFE3EA; border-radius: 999px; padding: 4px 10px; font-size: .8rem; }
.af-reach b { color: #2E6B8F; }
.af-keep { background: var(--foam); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 16px; margin-bottom: 8px; font-size: .88rem; }
.af-keep p { margin: 6px 0; }
.af-keep ul { margin: 0; padding-left: 18px; display: grid; gap: 4px; }
@media (max-width: 760px) {
  .af-mchart { gap: 3px; height: 110px; }
  .af-mbar span { font-size: .6rem; }
  .af-life, .af-exp { grid-template-columns: 1fr; }
  .af-step { grid-template-columns: minmax(0, 1fr) auto; }
  .af-step small { grid-column: 1; grid-row: 2; }
  .af-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: auto; border-radius: 16px; }
  .af-tabs button { padding: 8px 4px; font-size: .78rem; white-space: normal; line-height: 1.2; border-radius: 12px; }
  .af-tier b { font-size: 1.3rem; }
  .af-savebar { border-radius: 16px; }
}
@media (max-width: 760px) {
  .afford-head { display: none; }
  .afford-row { grid-template-columns: minmax(0, 1fr) 120px; }
  .afford-row .af-name { grid-column: 1 / -1; }
  .afford-row .afford-bar { grid-column: 1 / -1; }
  .afford-503020 { grid-template-columns: 1fr; }
}

/* Loan pay-off order (inside "What you owe") and one-tap goal suggestions */
.payoff-list { list-style: none; counter-reset: po; margin: 0; padding: 0; display: grid; gap: 8px; }
.payoff-list li { counter-increment: po; display: flex; gap: 10px; align-items: center; justify-content: space-between; font-size: .9rem; }
.payoff-list li > span:first-child::before { content: counter(po) ". "; font-weight: 800; color: var(--espresso); }
.payoff-list .chip { flex: 0 0 auto; }
.goal-sug { display: flex; gap: 10px 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; background: #FFF6D9; border: 1px solid #F1DE7A; border-radius: var(--radius-sm); padding: 10px 14px; margin-bottom: 12px; font-size: .9rem; }

/* "Your money in 3 lines" at the top of the dashboard */
.summary-panel { background: var(--white); border: 1px solid var(--line); border-left: 5px solid var(--gold); border-radius: var(--radius-sm); padding: 16px 20px; margin-bottom: 16px; }
.summary-panel[hidden] { display: none; }
.summary-panel h3 { font-size: 1.05rem; margin: 0 0 8px; }
.summary-panel ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.summary-panel li { display: flex; gap: 10px; align-items: flex-start; line-height: 1.5; }
.summary-panel li > i { font-style: normal; flex: 0 0 auto; width: 9px; height: 9px; border-radius: 50%; margin-top: 8px; background: var(--good); }
.summary-panel li:nth-child(2) > i { background: var(--warn); }
.summary-panel li:nth-child(3) > i { background: var(--espresso); }
.summary-panel .sum-act { font-weight: 700; color: var(--espresso); }
.lang-note { font-size: .82rem; color: var(--ink-soft); margin: 6px 0 0; }
.cur-bar { display: flex; gap: 10px 16px; align-items: center; flex-wrap: wrap; background: #FFF6D9; border: 1px solid #F1DE7A; color: #5A4700; border-radius: var(--radius-sm); padding: 12px 16px; margin-bottom: 16px; font-size: .92rem; }
.cur-bar[hidden] { display: none; }
.cur-bar > p { flex: 1 1 100%; margin: 0; }
.cur-bar input { width: 110px; padding: 7px 10px; border-radius: 10px; border: 1.5px solid #E0C85A; font: inherit; }
.cur-bar .link-btn { color: #5A4700; }
.country-bar { display: flex; gap: 10px 16px; align-items: center; flex-wrap: wrap; background: #EAF3F7; border: 1px solid #BFD9E4; color: #1F4E66; border-radius: var(--radius-sm); padding: 12px 16px; margin-bottom: 16px; font-size: .92rem; }
.country-bar[hidden] { display: none; }
.country-bar > p { flex: 1 1 100%; margin: 0; }
.country-bar label { display: inline-flex; gap: 8px; align-items: center; font-weight: 700; }
.country-bar select { font: inherit; padding: 7px 10px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--white); }
/* Line icons (js/icons.js) instead of emoji: one style everywhere, in the brand colours */
.ic { display: inline-block; width: 1em; height: 1em; vertical-align: -0.15em; flex-shrink: 0; }
.card .ico { color: #9C7430; } .card .ico .ic { width: 32px; height: 32px; }
.menu-card .size { color: var(--espresso); line-height: 1; } .menu-card .size .ic { stroke-width: 1.5; }
.menu-card .size-s .ic { width: 38px; height: 38px; } .menu-card .size-m .ic { width: 48px; height: 48px; } .menu-card .size-l .ic { width: 60px; height: 60px; }
.plan-visual .emoji { color: var(--gold); } .plan-visual .emoji .ic { width: 76px; height: 76px; stroke-width: 1.4; }
.expert-icon { color: var(--cream); } .expert-icon .ic { width: 28px; height: 28px; }
.dropdown .dd-ico { color: #9C7430; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--cream); flex-shrink: 0; }
.dropdown .dd-ico .ic { width: 18px; height: 18px; }
/* The signature coffee cup at brand moments (greeting, "Fill your cup", the networth headline) */
.brand-cup::after { content: ""; display: inline-block; width: .8em; height: .96em; margin-left: .3em; vertical-align: -.1em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 48'%3E%3Cg fill='none' stroke='%23B08A57' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M15.5 12c-3-3 3-5.5 0-9'%3E%3Canimate attributeName='opacity' values='0;.9;0' dur='2.6s'  repeatCount='indefinite'/%3E%3CanimateTransform attributeName='transform' type='translate' values='0 3;0 -3' dur='2.6s'  repeatCount='indefinite'/%3E%3C/path%3E%3Cpath d='M23.5 12c-3-3 3-5.5 0-9'%3E%3Canimate attributeName='opacity' values='0;.9;0' dur='2.6s' begin='1.3s' repeatCount='indefinite'/%3E%3CanimateTransform attributeName='transform' type='translate' values='0 3;0 -3' dur='2.6s' begin='1.3s' repeatCount='indefinite'/%3E%3C/path%3E%3C/g%3E%3Crect x='8' y='14' width='24' height='6.5' rx='2.6' fill='%233C2415'/%3E%3Cpath d='M9.6 20.5H30.4L28.3 43.2Q28 46 25.2 46H14.8Q12 46 11.7 43.2Z' fill='%234E2F1C'/%3E%3Crect x='10.4' y='27.5' width='19.2' height='5' fill='%23C79A49'/%3E%3Cpath d='M13.5 23l1.2 18' stroke='%23fff' stroke-opacity='.14' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center bottom / contain no-repeat; }
.hero-kpi .label::before { content: ""; display: inline-block; width: 15px; height: 15px; flex-shrink: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FAF6EF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 9h12v5a5 5 0 0 1-5 5H9a5 5 0 0 1-5-5z'/%3E%3Cpath d='M16 10.5h1.5a2.5 2.5 0 0 1 0 5H16'/%3E%3Cpath d='M8 3.5c0 1.2 1 1.3 1 2.5M12 3.5c0 1.2 1 1.3 1 2.5'/%3E%3C/svg%3E") center / contain no-repeat; }
.tab-index { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; margin: 0 0 16px; font-size: .84rem; }
.tab-index span { font-weight: 800; color: var(--ink-soft); margin-right: 2px; }
.tab-index a { text-decoration: none; font-weight: 700; color: var(--espresso); background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; transition: border-color .15s, background .15s; }
.tab-index a:hover { border-color: var(--espresso); background: var(--cream); }
.trust-pill { display: inline-flex; align-items: center; gap: 6px; }
.trust-pill .ic { width: 18px; height: 18px; color: #9C7430; }
/* Dashboard icon spots */
.dtabs .ic, .af-tabs .ic { width: 16px; height: 16px; margin-right: 2px; vertical-align: -3px; }
.ov-ico { color: #9C7430; } .ov-ico .ic { width: 24px; height: 24px; }
.ov-card.good .ov-ico { color: var(--good); } .ov-card.warn .ov-ico { color: #9C6A10; } .ov-card.bad .ov-ico { color: var(--bad); }
.ins-ico { color: #9C7430; } .ins-ico .ic { width: 22px; height: 22px; }
.ins-area.good .ins-ico { color: var(--good); } .ins-area.bad .ins-ico { color: var(--bad); } .ins-area.warn .ins-ico { color: #9C6A10; } .ins-area.tip .ins-ico { color: #2E6B8F; }
.af-buy-ico { color: #9C7430; } .af-buy-ico .ic { width: 28px; height: 28px; }
.af-tier-ico { color: #9C7430; } .af-tier-ico .ic { width: 46px; height: 46px; stroke-width: 1.5; }
.af-flag { color: #2E6B8F; } .af-flag .ic { width: 26px; height: 26px; }
.af-trip.ok .af-flag { color: var(--good); }
.af-g-ico { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: rgba(255,255,255,.7); }
.af-g-ico .ic { width: 20px; height: 20px; }
.af-group.need .af-g-ico { color: #8B5A3C; } .af-group.want .af-g-ico { color: #9C7430; } .af-group.save .af-g-ico { color: var(--good); }
.af-name .ic, .goal-top .ic, .pillar b .ic, .leaks .ic, .nwp-gtitle .ic, .af-reach .ic { width: 16px; height: 16px; color: #9C7430; margin-right: 2px; vertical-align: -3px; }
.notes li > span .ic { width: 18px; height: 18px; color: #9C7430; }
.af-mbar i .ic { width: 14px; height: 14px; color: #2E6B8F; }
/* Colour families for icons (js/icons.js ICON_TONE) and the soft tiles they sit on */
.ic.c-green { color: #1E7A48; } .ic.c-blue { color: #2563A6; } .ic.c-purple { color: #6B4FBB; } .ic.c-gold { color: #A8741A; }
/* Duotone: the light tint layer of each icon (js/icons.js) */
.ic .duo { fill: currentColor; fill-opacity: .2; }
/* Networth levels: drawn coloured dots (same on every device) */
.lvl-dot { display: inline-block; width: 14px; height: 14px; border-radius: 50%; margin-right: 10px; vertical-align: -1px; box-shadow: inset 0 -2px 3px rgba(0,0,0,.18), 0 1px 2px rgba(0,0,0,.12); }
.lvl-dot.min { background: radial-gradient(circle at 35% 30%, #F08A7E, #C0392B); }
.lvl-dot.ok { background: radial-gradient(circle at 35% 30%, #FFE08A, #D89A1E); }
.lvl-dot.strong { background: radial-gradient(circle at 35% 30%, #8FE0AE, #23955A); }
.lvl-dot.top { background: radial-gradient(circle at 35% 30%, #A9C8F5, #2D63B5); }
.lvl-dot.gap { background: none; box-shadow: inset 0 0 0 2px #C0392B; }
.ic.c-teal { color: #0F7C80; } .ic.c-coral { color: #C2452D; } .ic.c-brand { color: #3C2415; }
:is(.ov-ico, .h-ico, .row-ico, .ins-ico, .af-buy-ico, .af-tier-ico, .dd-ico, .card .ico, .af-g-ico, .af-flag, .plan-visual .emoji, .expert-icon) { display: grid; place-items: center; flex-shrink: 0; border-radius: 14px; background: #F1E7D6; transition: transform .2s; }
:is(.ov-ico, .h-ico, .row-ico, .ins-ico, .af-buy-ico, .af-tier-ico, .dd-ico, .card .ico, .af-g-ico, .af-flag, .plan-visual .emoji):has(> .c-green) { background: #E3F3E9; }
:is(.ov-ico, .h-ico, .row-ico, .ins-ico, .af-buy-ico, .af-tier-ico, .dd-ico, .card .ico, .af-g-ico, .af-flag, .plan-visual .emoji):has(> .c-blue) { background: #E4EEF9; }
:is(.ov-ico, .h-ico, .row-ico, .ins-ico, .af-buy-ico, .af-tier-ico, .dd-ico, .card .ico, .af-g-ico, .af-flag, .plan-visual .emoji):has(> .c-purple) { background: #EEE9FA; }
:is(.ov-ico, .h-ico, .row-ico, .ins-ico, .af-buy-ico, .af-tier-ico, .dd-ico, .card .ico, .af-g-ico, .af-flag, .plan-visual .emoji):has(> .c-gold) { background: #FBF0D9; }
:is(.ov-ico, .h-ico, .row-ico, .ins-ico, .af-buy-ico, .af-tier-ico, .dd-ico, .card .ico, .af-g-ico, .af-flag, .plan-visual .emoji):has(> .c-teal) { background: #DFF3F2; }
:is(.ov-ico, .h-ico, .row-ico, .ins-ico, .af-buy-ico, .af-tier-ico, .dd-ico, .card .ico, .af-g-ico, .af-flag, .plan-visual .emoji):has(> .c-coral) { background: #FCE8E3; }
.ov-ico { width: 44px; height: 44px; } .ov-ico .ic { width: 22px; height: 22px; }
/* Key entry points (home/service cards and the dashboard Overview cards) get a gradient tile with a white icon */
:is(.ov-ico, .card .ico):has(> .ic) { background: linear-gradient(135deg, #7A5236, #3C2415); box-shadow: 0 8px 16px -8px rgba(60,36,21,.55); }
:is(.ov-ico, .card .ico):has(> .c-green) { background: linear-gradient(135deg, #34A26A, #1E7A48); box-shadow: 0 8px 16px -8px rgba(30,122,72,.6); }
:is(.ov-ico, .card .ico):has(> .c-blue) { background: linear-gradient(135deg, #4C8BD6, #1F4F8C); box-shadow: 0 8px 16px -8px rgba(31,79,140,.6); }
:is(.ov-ico, .card .ico):has(> .c-purple) { background: linear-gradient(135deg, #8C72DA, #5A3FA8); box-shadow: 0 8px 16px -8px rgba(90,63,168,.6); }
:is(.ov-ico, .card .ico):has(> .c-gold) { background: linear-gradient(135deg, #D8A23F, #9A6514); box-shadow: 0 8px 16px -8px rgba(154,101,20,.6); }
:is(.ov-ico, .card .ico):has(> .c-teal) { background: linear-gradient(135deg, #2FA5A8, #0D6A6E); box-shadow: 0 8px 16px -8px rgba(13,106,110,.6); }
:is(.ov-ico, .card .ico):has(> .c-coral) { background: linear-gradient(135deg, #E2725B, #B23A24); box-shadow: 0 8px 16px -8px rgba(178,58,36,.6); }
:is(.ov-ico, .card .ico) > .ic { color: #fff; } :is(.ov-ico, .card .ico) .duo { fill-opacity: .28; }
/* Panel titles and list rows get the same coloured tiles */
.panel h3:has(> .h-ico) { justify-content: flex-start; gap: 10px; }
.panel h3:has(> .h-ico) > .small { margin-left: auto; text-align: right; }
@media (max-width: 640px) { /* phones: the subtitle goes on its own line under the title, lined up with the text */
  .panel h3:has(> .h-ico) { flex-wrap: wrap; row-gap: 2px; }
  .panel h3:has(> .h-ico) > .small { flex-basis: 100%; margin-left: 46px; text-align: left; }
  .panel h3:has(> .h-ico) > span:not(.small) { flex: 1 1 0; min-width: 0; } /* the title stays beside its icon */
}
.h-ico { width: 36px; height: 36px; border-radius: 11px; } .h-ico .ic { width: 21px; height: 21px; }
.row-ico { width: 36px; height: 36px; border-radius: 11px; } .leaks .row-ico .ic, .row-ico .ic { width: 21px; height: 21px; margin: 0; vertical-align: 0; }
.leaks li > div { flex: 1; min-width: 0; }
.ico-rows > div { align-items: center; } .ico-rows > div > span { flex: 1; }
.ins-ico { width: 36px; height: 36px; border-radius: 11px; } .ins-ico .ic { width: 19px; height: 19px; }
.af-flag { width: 40px; height: 40px; border-radius: 12px; margin-bottom: 4px; } .af-flag .ic { width: 21px; height: 21px; }
.af-tier-ico { width: 64px; height: 64px; border-radius: 18px; } .af-tier-ico .ic { width: 34px; height: 34px; }
.af-buy-ico { width: 54px; height: 54px; border-radius: 16px; }
.plan-visual .emoji { width: 132px; height: 132px; border-radius: 50%; margin: 0 auto 18px; } .plan-visual .emoji .ic { width: 64px; height: 64px; }
.card-link:hover .ico { transform: scale(1.06); }
.ov-card:hover .ov-ico, .af-trip:hover .af-flag { transform: scale(1.06); }
.dtabs button[aria-selected="true"] .ic, .af-tabs button[aria-selected="true"] .ic { color: #fff; }
/* No emoji anywhere: icon slots that are now empty simply disappear; the "Paid" tag and chart markers */
.ico:empty, .size:empty, .emoji:empty, .expert-icon:empty, .dd-ico:empty, .af-flag:empty, .af-tier-ico:empty, .af-buy-ico:empty,
.ins-ico:empty, .notes li > span:empty, .gaps li > span:empty:first-child { display: none; }
.dt-lock { display: inline-block; font-size: .66rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; padding: 2px 7px; border-radius: 999px; background: var(--latte); color: #8A6A10; margin-left: 4px; vertical-align: middle; }
.dtabs button[aria-selected="true"] .dt-lock { background: rgba(255,255,255,.2); color: #fff; }
.ov-card .dt-lock { flex-shrink: 0; margin-left: auto; }
.jr-num { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid #C79A49; font-style: normal; font-weight: 800; font-size: .68rem; color: #3C2415; margin-right: 6px; vertical-align: -3px; }
.bad .jr-num { border-color: #C0392B; color: #C0392B; }
.advisor-avatar img { width: auto; height: 26px; }
/* Insurance: the protection map, policy cards, and the best time to buy */
.ins-map { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 8px; }
.ins-area { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--white); border-left: 4px solid var(--line); }
.ins-area.good { border-left-color: var(--good); } .ins-area.warn { border-left-color: var(--warn); background: #FFFBF0; }
.ins-area.bad { border-left-color: var(--bad); background: #FDF2EF; } .ins-area.tip { border-left-color: #2E6B8F; } .ins-area.na { opacity: .6; }
.ins-ico { font-size: 1.4rem; line-height: 1.2; }
.ins-area b { display: block; font-size: .9rem; color: var(--espresso); }
.ins-area small { display: block; font-size: .78rem; color: var(--ink-soft); line-height: 1.35; }
.ins-area em { margin-left: auto; font-style: normal; font-weight: 800; font-size: .72rem; white-space: nowrap; color: var(--ink-soft); }
.ins-area.good em { color: var(--good); } .ins-area.bad em { color: var(--bad); } .ins-area.warn em { color: #8A6A10; } .ins-area.tip em { color: #2E6B8F; }
.ins-when { margin: 6px 0 0; padding-left: 18px; display: grid; gap: 6px; font-size: .86rem; }
.pol-card { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; margin-bottom: 8px; background: var(--white); }
.pol-head { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: .92rem; }
.pol-head .nwp-x { margin-left: auto; }
.pol-nums { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 6px; }
.pol-nums span small { display: block; font-size: .7rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .04em; }
.pol-nums span b { font-size: .95rem; color: var(--espresso); }
.pol-checks { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 4px; font-size: .84rem; }
.pol-checks li { padding: 5px 10px; border-radius: 8px; background: var(--foam); border-left: 3px solid var(--line); }
.pol-checks li.bad { border-left-color: var(--bad); background: #FDF2EF; } .pol-checks li.warn { border-left-color: var(--warn); background: #FFFBF0; }
.pol-more { grid-column: 1 / -1; }
.pol-more summary { cursor: pointer; font-weight: 700; font-size: .85rem; color: #2E6B8F; }
.pol-more-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; margin-top: 8px; }
.pol-more-grid input { font: inherit; padding: 8px 10px; border: 1.5px solid var(--line); border-radius: 10px; }
.tax-block { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; margin-bottom: 10px; background: var(--foam); }
.tax-block h4 { margin: 0 0 6px; font-size: .95rem; color: var(--espresso); }
.tax-big { margin: 2px 0 4px; font-family: var(--font-serif); font-size: 1.6rem; font-weight: 700; color: var(--espresso); }
.tax-big span { font-family: var(--font-sans); font-size: .85rem; font-weight: 600; color: var(--ink-soft); }
.tax-rates { width: 100%; border-collapse: collapse; font-size: .85rem; margin-top: 6px; }
.tax-rates th, .tax-rates td { text-align: left; padding: 5px 8px; border-bottom: 1px solid var(--line); }
.tax-rates td:last-child, .tax-rates th:last-child { text-align: right; font-weight: 700; }
.where-chip { display: inline-flex; gap: 6px; align-items: center; font-weight: 700; color: var(--espresso); }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 40px; background: linear-gradient(180deg, var(--white) 0%, var(--cream) 100%); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 40px; }
.hero h1 .serif { color: var(--gold); }
.hero .lead { margin: 18px 0 18px; }
/* "What you get": three short lines under the paragraph, so the page explains itself at a glance */
.hero-points { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 10px; max-width: 520px; }
.hero-points li { display: flex; gap: 12px; align-items: center; font-weight: 700; font-size: 1rem; color: var(--espresso); line-height: 1.35; text-align: left; }
.hero-points [data-icon] { flex: 0 0 34px; width: 34px; height: 34px; border-radius: 10px; background: #FBF1DC; display: grid; place-items: center; }
.hero-points [data-icon] svg { width: 20px; height: 20px; }
.hero-points p { margin: 0; }
.hero-note { margin-top: 16px; font-size: .92rem; color: var(--ink-soft); display: flex; align-items: center; gap: 8px; }
.trust-row { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 36px; }
.trust-pill {
  display: inline-flex; align-items: center; gap: 8px; background: var(--white); border: 1px solid var(--line);
  border-radius: 999px; padding: 8px 16px; font-weight: 700; font-size: .9rem; color: var(--espresso);
}
.hero-art { position: relative; }
.hero-art img { width: 100%; max-width: 520px; margin-left: auto; animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-10px); } }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero .lead { margin-left: auto; margin-right: auto; }
  .hero-points { margin-left: auto; margin-right: auto; max-width: 440px; }
  .hero .btn-row, .trust-row, .hero-note { justify-content: center; }
  .hero-art img { margin: 0 auto; max-width: 380px; }
}

/* page hero (inner pages) */
.page-hero { padding: 72px 0 56px; background: var(--cream); text-align: center; position: relative; overflow: hidden; }
.page-hero::after {
  content: ""; position: absolute; inset: 0; background: url("../assets/img/pattern-beans.svg") center/360px;
  opacity: .22; pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; }

/* ---------- Cards & grids ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } .section { padding: 64px 0; } }

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card p { margin: 0; color: var(--ink-soft); }
.card .ico {
  width: 56px; height: 56px; border-radius: 16px; background: var(--cream); display: grid; place-items: center;
  font-size: 1.7rem; margin-bottom: 18px;
}
.card-link { text-decoration: none; display: block; }
.card-link .more { display: inline-block; margin-top: 14px; font-weight: 800; color: var(--espresso); }

.section-head { max-width: 760px; margin: 0 auto 56px; text-align: center; }
.section-head .lead { margin: 0 auto; }

/* ---------- Recipe (coffee metaphor) ---------- */
.recipe { display: grid; grid-template-columns: 1fr 380px 1fr; gap: 32px; align-items: center; }
.recipe-col { display: grid; gap: 20px; }
.ingredient { background: var(--white); border-radius: var(--radius); padding: 20px 22px; border: 1px solid var(--line); }
.ingredient .tag { font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: #8A6524; } /* deep gold: readable on white */
.ingredient h3 { margin: 4px 0 6px; font-size: 1.15rem; }
.ingredient p { margin: 0; font-size: .95rem; color: var(--ink-soft); }
.recipe-art img { width: 100%; }
@media (max-width: 1000px) { .recipe { grid-template-columns: 1fr; } .recipe-art { order: -1; max-width: 320px; margin: 0 auto; } }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.step { position: relative; padding: 28px; background: var(--white); border-radius: var(--radius); border: 1px solid var(--line); }
.step .num {
  width: 44px; height: 44px; border-radius: 50%; background: var(--bmc-yellow); color: var(--espresso);
  display: grid; place-items: center; font-weight: 800; margin-bottom: 16px;
}
.step p { margin: 0; color: var(--ink-soft); font-size: .96rem; }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Split feature ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split.reverse > :first-child { order: 2; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 32px; } .split.reverse > :first-child { order: 0; } }
.checklist { list-style: none; padding: 0; margin: 24px 0; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist li::before {
  content: "✓"; flex: 0 0 26px; height: 26px; border-radius: 50%; background: var(--bmc-yellow); color: var(--espresso);
  display: grid; place-items: center; font-weight: 800; font-size: .85rem; margin-top: 1px;
}

/* ---------- Menu / plans ---------- */
.menu-card { position: relative; background: var(--white); border-radius: var(--radius-lg); padding: 36px 30px; border: 2px solid var(--line); display: flex; flex-direction: column; }
.menu-card.featured { border-color: var(--espresso); box-shadow: var(--shadow-lg); }
.menu-card .badge { position: absolute; top: -14px; left: 30px; background: var(--bmc-yellow); color: var(--espresso); padding: 4px 14px; border-radius: 999px; font-weight: 800; font-size: .8rem; }
.menu-card .size { font-size: 2.6rem; }
.menu-card .price { font-size: 1.9rem; font-weight: 800; color: var(--espresso); margin: 10px 0 4px; }
.menu-card ul { list-style: none; padding: 0; margin: 20px 0 28px; display: grid; gap: 10px; flex: 1; }
.menu-card li { padding-left: 26px; position: relative; color: var(--ink-soft); }
.menu-card li::before { content: ""; position: absolute; left: 0; top: 3px; width: 16px; height: 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A8741A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 9h12v5a5 5 0 0 1-5 5H9a5 5 0 0 1-5-5z' fill='%23A8741A' fill-opacity='.2'/%3E%3Cpath d='M16 10.5h1.5a2.5 2.5 0 0 1 0 5H16'/%3E%3Cpath d='M8 3.5c0 1.2 1 1.3 1 2.5M12 3.5c0 1.2 1 1.3 1 2.5'/%3E%3C/svg%3E") center / contain no-repeat; }

/* ---------- Stat band ---------- */
.stat-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat-band .big { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; color: var(--gold-dark-bg); line-height: 1; }
.stat-band p { margin: 8px 0 0; opacity: .85; }
@media (max-width: 760px) { .stat-band { grid-template-columns: repeat(2, 1fr); } }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 14px; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; }
.faq summary { cursor: pointer; font-weight: 800; color: var(--espresso); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 14px 0 0; color: var(--ink-soft); }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: var(--espresso) url("../assets/img/steam-lines.svg") right center / auto 100% no-repeat;
  color: var(--cream); border-radius: var(--radius-lg); padding: 64px 56px; display: flex; align-items: center;
  justify-content: space-between; gap: 32px; flex-wrap: wrap;
}
.cta-banner h2 { color: var(--cream); margin: 0 0 8px; }
.cta-banner p { margin: 0; opacity: .85; max-width: 560px; }
@media (max-width: 640px) { .cta-banner { padding: 40px 28px; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--espresso); color: rgba(250, 246, 239, .8); padding: 72px 0 32px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; }
.site-footer h4 { color: var(--cream); font-size: 1rem; margin-bottom: 14px; letter-spacing: 0; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--gold-dark-bg); }
.footer-legal { border-top: 1px solid rgba(250, 246, 239, .15); margin-top: 48px; padding-top: 24px; font-size: .8rem; line-height: 1.6; opacity: .75; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- WhatsApp floating button ---------- */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 60; display: flex; align-items: center; gap: 10px;
  background: #25D366; color: #fff; text-decoration: none; font-weight: 800; padding: 14px 20px 14px 16px;
  border-radius: 999px; box-shadow: 0 10px 30px rgba(37, 211, 102, .4); transition: transform .15s;
}
.wa-float:hover { transform: translateY(-3px) scale(1.02); }
.wa-float svg { width: 26px; height: 26px; }
@media (max-width: 560px) { .wa-float span { display: none; } .wa-float { padding: 14px; } }

/* ---------- Forms / auth ---------- */
.auth-wrap { min-height: calc(100vh - 76px); display: grid; grid-template-columns: 1fr 1fr; }
.auth-side {
  background: var(--espresso) url("../assets/img/pattern-beans-dark.svg") center/360px; color: var(--cream);
  padding: 72px 56px; display: flex; flex-direction: column; justify-content: center;
}
.auth-side h2 { color: var(--cream); }
.auth-side img.art { max-width: 320px; margin-top: 32px; }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 56px 20px; background: var(--cream); }
.auth-card { width: 100%; max-width: 440px; background: var(--white); border-radius: var(--radius-lg); padding: 40px 36px; box-shadow: var(--shadow); }
.auth-card h1 { font-size: 2rem; }
@media (max-width: 900px) { .auth-wrap { grid-template-columns: 1fr; } .auth-side { display: none; } }

.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 700; color: var(--espresso); margin-bottom: 6px; font-size: .95rem; }
.field input, .field select {
  width: 100%; padding: 14px 16px; border: 2px solid var(--line); border-radius: 14px; background: var(--foam);
  color: var(--ink); transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--espresso); box-shadow: 0 0 0 4px rgba(255, 221, 0, .35); }
.field .hint { font-size: .82rem; color: var(--ink-soft); margin-top: 6px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 480px) { .field-row { grid-template-columns: 1fr; } }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; color: var(--ink-soft); margin: 6px 0 20px; }
.check input { margin-top: 4px; accent-color: var(--espresso); width: 18px; height: 18px; flex: 0 0 18px; }
.form-error { background: #FDECE8; color: var(--bad); border-radius: 12px; padding: 12px 14px; font-size: .9rem; margin-bottom: 16px; display: none; }
.form-error.show { display: block; }
.form-ok { background: #E4F4EA; color: var(--good); border-radius: 12px; padding: 12px 14px; font-size: .9rem; margin-bottom: 16px; display: none; }
.form-ok.show { display: block; }
.form-foot { text-align: center; margin-top: 20px; font-size: .95rem; color: var(--ink-soft); }
.form-foot a { color: var(--espresso); font-weight: 800; }
.pw-meter { height: 6px; border-radius: 6px; background: var(--line); margin-top: 8px; overflow: hidden; }
.pw-meter span { display: block; height: 100%; width: 0; background: var(--bad); transition: width .2s, background .2s; }

.seg { display: grid; grid-template-columns: 1fr 1fr; background: var(--cream); border-radius: 999px; padding: 5px; margin-bottom: 22px; }
.seg button { border: 0; background: none; padding: 11px; border-radius: 999px; font-weight: 800; color: var(--ink-soft); cursor: pointer; }
.seg button.on { background: var(--white); color: var(--espresso); box-shadow: var(--shadow); }

.progress-dots { display: flex; gap: 8px; margin-bottom: 20px; }
.progress-dots span { height: 6px; flex: 1; border-radius: 6px; background: var(--line); }
.progress-dots span.done { background: var(--espresso); }

/* ---------- Calculators ---------- */
/* Layout: slim grouped list on the left (desktop), "Choose a calculator" dropdown (phones/tablets) */
.page-hero-compact { padding: 44px 0 30px; }
.page-hero-compact h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
.page-hero-compact .lead { margin: 0 auto; }
.calc-layout { display: grid; grid-template-columns: 232px minmax(0, 1fr); gap: 28px; align-items: start; scroll-margin-top: 92px; }
.calc-main { min-width: 0; }
.calc-nav { position: sticky; top: 96px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; max-height: calc(100vh - 120px); overflow-y: auto; }
.calc-group { margin-bottom: 8px; }
.calc-group:last-child { margin-bottom: 0; }
.calc-group-name { display: block; font-weight: 800; font-size: .72rem; color: var(--roast); text-transform: uppercase; letter-spacing: .07em; padding: 8px 10px 4px; }
.calc-group-btns { display: flex; flex-direction: column; gap: 2px; }
.calc-nav button { text-align: left; width: 100%; border: 0; background: transparent; border-radius: 10px; padding: 6px 10px; font-weight: 700; font-size: .9rem; color: var(--espresso); cursor: pointer; }
.calc-nav button:hover { background: var(--cream); }
.calc-nav button.on { background: var(--espresso); color: var(--cream); }
.calc-select-wrap { display: none; }
.calc-select-wrap span { display: block; font-weight: 800; font-size: .8rem; color: var(--roast); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 6px; }
.calc-select-wrap select { width: 100%; padding: 13px 14px; border: 2px solid var(--espresso); border-radius: 14px; background: var(--white); font-weight: 800; font-size: 1rem; color: var(--espresso); }
@media (max-width: 960px) {
  .calc-layout { grid-template-columns: 1fr; gap: 0; }
  .calc-nav { display: none; }
  .calc-select-wrap { display: block; margin-bottom: 14px; }
}
.range-field[hidden] { display: none; }
/* "Not sure what a term means?" free-call card under the calculators */
.expert-card { display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; margin-top: 18px; padding: 22px 24px;
  background: var(--espresso); color: var(--cream); border-radius: var(--radius-lg); }
.expert-icon { width: 54px; height: 54px; border-radius: 50%; background: rgba(250, 246, 239, .12); display: grid; place-items: center; font-size: 1.6rem; }
.expert-text h3 { color: var(--cream); margin: 0 0 4px; font-size: 1.15rem; }
.expert-text p { margin: 0; font-size: .93rem; color: rgba(250, 246, 239, .85); }
.expert-text b { color: var(--bmc-yellow); }
.expert-actions { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.expert-alt { font-size: .82rem; color: rgba(250, 246, 239, .8); }
.expert-alt:hover { color: var(--bmc-yellow); }
@media (max-width: 760px) { .expert-card { grid-template-columns: auto 1fr; } .expert-actions { grid-column: 1 / -1; align-items: stretch; } .expert-actions .btn { width: 100%; } .expert-alt { text-align: center; } }
.calc { display: none; background: var(--white); border-radius: var(--radius-lg); border: 1px solid var(--line); padding: 36px; }
.calc.on { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
@media (max-width: 1180px) { .calc-layout .calc.on { grid-template-columns: 1fr; gap: 28px; } }
@media (max-width: 860px) { .calc.on { grid-template-columns: 1fr; padding: 28px 22px; } }
.range-field { margin-bottom: 24px; }
.range-field .top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; }
.range-field label { font-weight: 700; color: var(--espresso); }
.range-field .val {
  display: flex; align-items: center; background: var(--cream); border-radius: 10px; padding: 4px 10px;
  font-weight: 800; color: var(--espresso);
}
.range-field .val input { width: 110px; border: 0; background: transparent; text-align: right; font-weight: 800; color: var(--espresso); }
.range-field .val input:focus { outline: none; }
.range-field .val input.money { width: 130px; }
.range-field .val.bad { box-shadow: 0 0 0 2px var(--bad); }
.val-hint { margin: 6px 0 0; font-size: .8rem; color: var(--bad); }
.val-hint:empty { display: none; }
.choice-label { font-weight: 700; color: var(--espresso); }
.choice-row { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { cursor: pointer; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span { display: inline-block; padding: 8px 16px; border-radius: 999px; border: 2px solid var(--line); background: var(--white); font-weight: 700; font-size: .92rem; color: var(--espresso); transition: all .15s; }
.choice input:checked + span { background: var(--espresso); border-color: var(--espresso); color: var(--cream); }
.choice input:focus-visible + span { box-shadow: 0 0 0 4px rgba(255, 221, 0, .45); }
input[type=range] { width: 100%; accent-color: var(--espresso); height: 6px; }
.calc-result { background: var(--cream); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 18px; }
.result-big { font-size: clamp(1.8rem, 3.5vw, 2.5rem); font-weight: 800; color: var(--espresso); line-height: 1.1; }
.result-rows { display: grid; gap: 10px; }
.result-rows div { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px dashed var(--line); padding-bottom: 8px; }
.result-rows strong { color: var(--espresso); }
.barista-tip { background: var(--white); border-left: 4px solid var(--gold); border-radius: 10px; padding: 14px 16px; font-size: .92rem; color: var(--ink-soft); }
/* Very small phones (320–400 px): tighter header and calculator boxes, no sideways scrolling */
@media (max-width: 400px) {
  .container { padding: 0 16px; }
  .nav { gap: 8px; }
  .nav-cta { gap: 4px; }
  .nav-cta .btn-sm { padding: 8px 12px; font-size: .82rem; }
  .calc.on { padding: 20px 12px; }
  .range-field .top { flex-wrap: wrap; }
  .range-field .val input { width: 92px; }
  .choice span { padding: 7px 12px; font-size: .85rem; }
  .calc-result { padding: 18px 14px; }
  .cta-banner { padding: 28px 18px; }
  .btn { white-space: normal; text-align: center; }
}
/* Phones: the header button moves into the ☰ menu so the logo never gets covered */
@media (max-width: 520px) { .nav-cta .btn-sm { display: none; } }
.tax-wrap { overflow-x: auto; max-width: 100%; -webkit-overflow-scrolling: touch; }
.calc-result { min-width: 0; }
.calc.on > * { min-width: 0; }
.tax-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
@media (max-width: 520px) { .tax-table { font-size: .78rem; } .tax-table td, .tax-table th { padding: 6px 2px; } }
.tax-table th { text-align: right; color: var(--espresso); font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; padding: 6px 4px; border-bottom: 2px solid var(--line); }
.tax-table td { text-align: right; padding: 7px 4px; border-bottom: 1px dashed var(--line); color: var(--ink); white-space: nowrap; }
.tax-table td:first-child, .tax-table th:first-child { text-align: left; white-space: normal; color: var(--ink-soft); }
.calc-cta { border-top: 1px dashed var(--line); padding-top: 16px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.calc-cta p { margin: 0; font-size: .92rem; color: var(--ink-soft); }
.calc-cta p b { color: var(--espresso); }
.stack-bar { display: flex; height: 18px; border-radius: 10px; overflow: hidden; background: var(--line); }
.stack-bar span { display: block; height: 100%; transition: width .3s; }
.legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: .85rem; color: var(--ink-soft); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: middle; }

/* ---------- Dashboard ---------- */
.dash { background: var(--cream); min-height: calc(100vh - 76px); padding: 40px 0 96px; }
.dash-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 28px; }
.dash-head h1 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin: 0; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 20px; }
@media (max-width: 1000px) { .kpis { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { /* phones: networth across the top, the other three numbers in a compact row below */
  .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .kpis .hero-kpi { grid-column: 1 / -1; }
  .kpis .kpi:not(.hero-kpi) { padding: 10px; border-radius: 14px; }
  .kpis .kpi:not(.hero-kpi) .label { font-size: .75rem; line-height: 1.25; display: block; } /* at least 12px on a phone */
  .kpis .kpi:not(.hero-kpi) .label .term-help { display: none; }
  .kpis .kpi:not(.hero-kpi) .value { font-size: 1.05rem; }
  .kpis .kpi:not(.hero-kpi) .sub { font-size: .72rem; line-height: 1.3; }
}
.kpi { background: var(--white); border-radius: var(--radius); padding: 22px 24px; border: 1px solid var(--line); }
.kpi .label { font-size: .85rem; font-weight: 700; color: var(--ink-soft); display: flex; align-items: center; gap: 8px; }
.kpi .value { font-size: 1.9rem; font-weight: 800; color: var(--espresso); margin: 6px 0 2px; line-height: 1.15; }
.kpi .sub { font-size: .85rem; color: var(--ink-soft); }
.kpi.hero-kpi { background: var(--espresso); color: var(--cream); border-color: var(--espresso); }
.kpi.hero-kpi .label, .kpi.hero-kpi .sub { color: rgba(250, 246, 239, .75); }
.kpi.hero-kpi .value { color: var(--cream); }
.dash-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px; }
.dash-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 20px; }
@media (max-width: 1000px) { .dash-grid, .dash-grid-3 { grid-template-columns: 1fr; } }
.panel { background: var(--white); border-radius: var(--radius); border: 1px solid var(--line); padding: 26px; }
.panel h3 { font-size: 1.1rem; display: flex; justify-content: space-between; align-items: center; }
.donut-wrap { display: grid; grid-template-columns: 200px 1fr; gap: 24px; align-items: center; }
@media (max-width: 520px) { .donut-wrap { grid-template-columns: 1fr; justify-items: center; } }
.list-rows { display: grid; gap: 10px; }
.list-rows .row { display: flex; justify-content: space-between; gap: 12px; align-items: center; font-size: .95rem; }
.list-rows .row .name { display: flex; align-items: center; gap: 10px; color: var(--ink-soft); }
.list-rows .row .name i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.list-rows .row strong { color: var(--espresso); }
.gauge-wrap { display: flex; flex-direction: column; align-items: center; text-align: center; }
.score-breakdown { display: grid; gap: 14px; margin-top: 8px; }
.sb-item .sb-top { display: flex; justify-content: space-between; font-size: .9rem; margin-bottom: 6px; }
.sb-item .sb-top span { color: var(--ink-soft); }
.sb-item .sb-top strong { color: var(--espresso); }
.bar { height: 8px; background: var(--latte); border-radius: 8px; overflow: hidden; }
.bar span { display: block; height: 100%; border-radius: 8px; background: var(--espresso); }
.compare { display: grid; gap: 16px; }
@media (min-width: 900px) { .compare-wide .compare { grid-template-columns: 1fr 1fr; gap: 16px 32px; } } /* full-width panel: two columns */
.compare-wide .compare > p { grid-column: 1 / -1; }
.compare-row .ct { display: flex; justify-content: space-between; font-size: .9rem; margin-bottom: 6px; color: var(--ink-soft); }
.compare-row .ct strong { color: var(--espresso); }
.chip { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: .78rem; font-weight: 800; }
/* chip text a shade darker than the status colours, so it stays readable (WCAG AA contrast) */
.chip.good { background: #E4F4EA; color: #1E6B42; }
.chip.warn { background: #FBF1DC; color: #8A5A00; }
.chip.bad { background: #FBE6E1; color: #9E3220; }
.empty-state { text-align: center; background: var(--white); border-radius: var(--radius-lg); padding: 64px 28px; border: 2px dashed var(--line); }
.empty-state img { width: 160px; margin: 0 auto 20px; }
.gaps { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.gaps li { display: flex; gap: 12px; align-items: flex-start; font-size: .95rem; color: var(--ink-soft); }
.gaps li b { color: var(--espresso); }
.gaps .dot { flex: 0 0 10px; height: 10px; border-radius: 50%; margin-top: 8px; }

/* modal */
.modal-bg { position: fixed; inset: 0; background: rgba(34, 20, 12, .55); z-index: 100; display: none; align-items: flex-start; justify-content: center; padding: 40px 16px; overflow-y: auto; }
.modal-bg.open { display: flex; }
.modal { background: var(--white); border-radius: var(--radius-lg); width: 100%; max-width: 760px; padding: 36px; box-shadow: var(--shadow-lg); }
.modal h2 { font-size: 1.8rem; }
.modal fieldset { border: 0; padding: 0; margin: 0 0 24px; }
.modal legend { font-weight: 800; color: var(--espresso); font-size: 1.05rem; margin-bottom: 12px; display: flex; gap: 8px; align-items: center; }
.modal .grid-fields { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 14px; }
@media (max-width: 640px) { .modal .grid-fields { grid-template-columns: 1fr 1fr; } .modal { padding: 24px 20px; } }
/* Fields side by side line up: labels of one or two lines, then the boxes on one line, then the hints */
@supports (grid-template-rows: subgrid) {
  .modal .grid-fields > .field { display: grid; grid-row: span 4; grid-template-rows: subgrid; row-gap: 0; }
  .modal .grid-fields > .field > .inc-x { grid-row: 4; align-self: start; } /* (the income field's extra rows sit under its hint, never on it) */
  .modal .grid-fields > .field > label { align-self: end; }
  .modal .grid-fields > .field > .hint { margin-top: 6px; }
}
.modal .field { margin-bottom: 14px; }
.modal .field label { font-size: .85rem; }
.modal .field input { padding: 11px 12px; }
.modal-actions { display: flex; gap: 12px; justify-content: flex-end; flex-wrap: wrap; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } .hero-art img { animation: none; } }

/* ---------- Dashboard: paid-plan locks ---------- */
.lock-card {
  margin-top: 16px; border: 2px dashed var(--line); border-radius: var(--radius); padding: 18px; text-align: center;
  background: repeating-linear-gradient(135deg, var(--foam), var(--foam) 10px, var(--cream) 10px, var(--cream) 20px);
}
.lock-card .lock-title { font-weight: 800; color: var(--espresso); margin: 0 0 4px; }
.lock-card p { margin: 0 0 12px; font-size: .88rem; color: var(--ink-soft); }
.lock-inline { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 800; color: var(--espresso); background: var(--bmc-yellow); border-radius: 999px; padding: 3px 10px; text-decoration: none; white-space: nowrap; }
.blurred { filter: blur(6px); user-select: none; pointer-events: none; }
.plan-badge { display: inline-block; font-size: .78rem; font-weight: 800; padding: 3px 10px; border-radius: 999px; background: var(--latte); color: var(--espresso); margin-left: 6px; }
.plan-badge.paid { background: var(--espresso); color: var(--bmc-yellow); }
.assume-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: flex-end; background: var(--cream); border-radius: var(--radius-sm); padding: 14px 16px; }
.assume-row .field { margin: 0; flex: 1 1 140px; }
.assume-row .field label { font-size: .8rem; }
.assume-row .field input { padding: 9px 12px; }

/* ---------- Networth picker ("tap what you have") ---------- */
.nwp-total { position: sticky; top: -36px; z-index: 2; display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 6px 14px;
  background: var(--espresso); color: var(--cream); border-radius: var(--radius-sm); padding: 12px 16px; margin: 0 0 20px; }
.nwp-total b { color: var(--bmc-yellow); font-size: 1.2rem; margin-left: 6px; }
.nwp-total span { font-size: .85rem; opacity: .85; }
.nwp-total:empty { display: none; }
.nwp-intro { font-size: .92rem; color: var(--ink-soft); margin: 0 0 14px; }
.nwp-h { font-size: 1.05rem; margin: 18px 0 10px; }
.nwp-group { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--white); margin-bottom: 10px; }
.nwp-group > summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 16px; font-weight: 800; color: var(--espresso); }
.nwp-group > summary::-webkit-details-marker { display: none; }
.nwp-group > summary::after { content: "▾"; color: var(--roast); transition: transform .2s; }
.nwp-group:not([open]) > summary::after { transform: rotate(-90deg); }
.nwp-sub { margin-left: auto; font-weight: 800; color: var(--good); font-size: .92rem; }
.nwp-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 16px 12px; }
.nwp-chip { border: 2px solid var(--line); background: var(--foam); color: var(--espresso); border-radius: 999px; padding: 6px 14px; font-weight: 700; font-size: .86rem; cursor: pointer; transition: all .15s; }
.nwp-chip:hover { border-color: var(--espresso); }
.nwp-chip.on { background: var(--espresso); border-color: var(--espresso); color: var(--cream); }
.nwp-chip.on::before { content: "✓ "; }
.nwp-add { border-style: dashed; background: transparent; }
.nwp-add:disabled { opacity: .4; cursor: not-allowed; }
.nwp-rows { padding: 0 16px; }
.nwp-rows:not(:empty) { padding-bottom: 12px; border-top: 1px dashed var(--line); padding-top: 12px; }
.nwp-row { display: grid; grid-template-columns: 1fr 170px 32px; gap: 4px 10px; align-items: center; margin-bottom: 8px; }
.nwp-row label { font-weight: 700; color: var(--espresso); font-size: .92rem; }
.nwp-hint { display: block; font-weight: 500; font-size: .76rem; color: var(--ink-soft); }
.nwp-amt { display: flex; align-items: center; border: 2px solid var(--line); border-radius: 10px; background: var(--foam); padding: 0 10px; }
.nwp-amt:focus-within { border-color: var(--espresso); box-shadow: 0 0 0 3px rgba(255, 221, 0, .35); }
.nwp-amt.bad { border-color: var(--bad); }
.nwp-amt span { color: var(--ink-soft); font-weight: 700; white-space: nowrap; font-size: .9rem; }
.nwp-amt input { border: 0; background: transparent; width: 100%; padding: 9px 6px; text-align: right; font-weight: 700; color: var(--espresso); }
.nwp-amt input:focus { outline: none; }
.nwp-name { border: 2px solid var(--line); border-radius: 10px; background: var(--foam); padding: 9px 10px; font-weight: 700; color: var(--espresso); width: 100%; }
.nwp-x { border: 0; background: var(--latte); color: var(--espresso); width: 30px; height: 30px; border-radius: 50%; cursor: pointer; font-size: 1.1rem; line-height: 1; }
.nwp-x:hover { background: #FBE6E1; color: var(--bad); }
.nwp-preview { grid-column: 2 / 4; font-size: .76rem; color: var(--ink-soft); text-align: right; min-height: 0; }
.nwp-preview:empty { display: none; }
@media (max-width: 520px) { .nwp-row { grid-template-columns: 1fr 32px; } .nwp-row .nwp-amt { grid-column: 1; } .nwp-preview { grid-column: 1; } .nwp-row .nwp-x { grid-row: 1 / 3; grid-column: 2; } }
/* Several accounts / properties / cars under one item, each with its own details */
.nwp-dlink { grid-column: 1; font-size: .8rem; margin-top: -2px; }
.nwp-dlink .link-btn, .nwp-more { font-size: .8rem; font-weight: 700; }
.nwp-sum { text-align: right; color: var(--espresso); font-size: 1rem; padding-right: 10px; }
.nwp-entries { grid-column: 1 / -1; display: grid; gap: 8px; margin-top: 4px; }
.nwp-more { justify-self: start; }
.nwp-entry { border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: 12px; background: var(--white); padding: 10px 12px; }
.nwp-ehead { display: grid; grid-template-columns: 1fr 170px 32px; gap: 4px 10px; align-items: center; }
.nwp-ehead .nwp-preview { grid-column: 2 / 4; }
.nwp-ename { border: 1.5px solid var(--line); border-radius: 10px; background: var(--foam); padding: 8px 10px; font: inherit; font-weight: 700; font-size: .9rem; color: var(--espresso); width: 100%; min-width: 0; }
.nwp-amt.calc { background: var(--latte); }
.nwp-amt.calc input { color: var(--roast); }
.nwp-det > summary { cursor: pointer; font-weight: 700; font-size: .82rem; color: var(--roast); margin-top: 8px; width: max-content; }
.nwp-fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(185px, 1fr)); gap: 8px 12px; margin-top: 8px; }
.nwp-f label { display: block; font-size: .76rem; font-weight: 700; color: var(--ink-soft); margin-bottom: 3px; line-height: 1.3; }
.nwp-f input, .nwp-f select { width: 100%; border: 1.5px solid var(--line); border-radius: 8px; padding: 7px 9px; font: inherit; font-size: .88rem; background: var(--foam); color: var(--ink); }
.nwp-f input:focus, .nwp-f select:focus { outline: none; border-color: var(--espresso); }
.nwp-f .bad { border-color: var(--bad); }
.nwp-doc { font-size: .78rem; color: var(--ink-soft); margin: 8px 0 0; }
.nwp-insight:empty { display: none; }
.nwp-insight p { font-size: .8rem; color: var(--ink-soft); margin: 6px 0 0; line-height: 1.45; }
.nwp-insight .nwp-sug { color: var(--espresso); }
@media (max-width: 520px) { .nwp-ehead { grid-template-columns: 1fr 32px; } .nwp-ehead .nwp-amt, .nwp-ehead .nwp-preview { grid-column: 1; } .nwp-ehead .nwp-x { grid-row: 1 / 3; grid-column: 2; } }
.nw-liq { display: flex; height: 14px; border-radius: 8px; overflow: hidden; background: var(--line); }
.nw-liq span { display: block; height: 100%; }
.calc-sticky { position: sticky; top: 96px; align-self: start; }

/* ---------- Dashboard: plan sections ---------- */
.locked-wrap { position: relative; min-height: 220px; border-radius: var(--radius-sm); overflow: hidden; }
.locked-sample { filter: blur(5px); opacity: .7; pointer-events: none; user-select: none; }
.locked-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  padding: 20px; background: linear-gradient(180deg, rgba(255,253,249,.55), rgba(255,253,249,.92)); }
.locked-overlay .lock-title { font-weight: 800; color: var(--espresso); margin: 0 0 6px; font-size: 1.02rem; }
.locked-overlay p { margin: 0 0 14px; font-size: .88rem; color: var(--ink-soft); max-width: 360px; }
.goal { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; margin-bottom: 10px; }
.goal-top { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-bottom: 8px; }
.goal-top b { color: var(--espresso); }
.goal-top .nwp-x { margin-left: auto; width: 26px; height: 26px; font-size: 1rem; }
.goal-meta { display: flex; justify-content: space-between; gap: 10px; font-size: .86rem; color: var(--ink-soft); margin-top: 8px; }
.goal-meta b { color: var(--espresso); }
.goal-summary { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .9rem; color: var(--ink-soft); background: var(--cream); border-radius: var(--radius-sm); padding: 10px 14px; margin: 4px 0 12px; }
.goal-summary b { color: var(--espresso); }
.goal-form { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 8px; margin-top: 6px; }
.goal-form select, .goal-form input { border: 2px solid var(--line); border-radius: 10px; background: var(--foam); padding: 9px 10px; font-weight: 600; color: var(--espresso); min-width: 0; }
.goal-form select:focus, .goal-form input:focus { outline: none; border-color: var(--espresso); }
@media (max-width: 640px) { .goal-form { grid-template-columns: 1fr 1fr; } }
.goal-pick { grid-column: 2 / -1; display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 8px; }
.goal-pick:empty { display: none; }
.goal-pick .af-f { font-size: .78rem; gap: 3px; }
.goal-pick p { grid-column: 1 / -1; margin: 0; }
@media (max-width: 640px) { .goal-pick { grid-column: 1 / -1; } }
.loan-table { width: 100%; border-collapse: collapse; margin-top: 14px; font-size: .9rem; }
.loan-table th { text-align: left; color: var(--espresso); font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; padding: 6px 4px; border-bottom: 2px solid var(--line); }
.loan-table td { padding: 8px 4px; border-bottom: 1px dashed var(--line); vertical-align: top; color: var(--ink); }
.gaps li.plan-when { display: block; font-weight: 800; color: var(--roast); font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; margin-top: 6px; }
.gaps li.plan-when:first-child { margin-top: 0; }
.print-only { display: none; }

/* Cappuccino: Financial X-Ray */
.pillars { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.pillar { position: relative; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 14px 12px 58px; min-height: 92px; }
.pillar b { color: var(--espresso); display: block; margin-bottom: 4px; }
.pillar p { margin: 0; line-height: 1.45; }
.pillar .grade { position: absolute; left: 12px; top: 14px; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-weight: 800; font-size: 1.15rem; background: var(--latte); color: var(--espresso); }
.pillar .grade.good { background: #E4F4EA; color: #1E6B42; } .pillar .grade.warn { background: #FBF1DC; color: #8A5A00; } .pillar .grade.bad { background: #FBE6E1; color: #9E3220; }
.leak-total { font-size: 1.8rem; font-weight: 800; color: var(--bad); margin-bottom: 10px; line-height: 1.1; }
.leak-total span { font-size: .9rem; font-weight: 600; color: var(--ink-soft); }
.leaks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.leaks li { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; border-bottom: 1px dashed var(--line); padding-bottom: 10px; }
.leaks li span { font-weight: 700; color: var(--espresso); }
.leaks li p { margin: 2px 0 0; }
.leaks li b { color: var(--bad); white-space: nowrap; }
.leaks em.chip { font-style: normal; font-size: .7rem; margin-left: 4px; }
.whatif-bar { display: flex; height: 18px; border-radius: 9px; overflow: hidden; background: var(--latte); }
.whatif-bar i { display: block; height: 100%; }
.whatif-bar i.liq { background: var(--good); } .whatif-bar i.part { background: var(--gold); }
.whatif-scale { display: flex; justify-content: space-between; font-size: .72rem; color: var(--ink-soft); margin-top: 4px; }
.whatif-scale span:nth-child(2) { margin-left: 15%; } .whatif-scale span:nth-child(3) { margin-left: 10%; }
.xray-call { display: flex; gap: 20px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.xray-band { margin-top: 28px; }
.upload-form { display: grid; grid-template-columns: 1.2fr 1fr 1.4fr auto; gap: 10px; align-items: end; margin-bottom: 14px; }
.upload-form input[type=file] { border: 2px dashed var(--line); border-radius: 10px; padding: 7px; background: var(--foam); font-size: .85rem; min-width: 0; }
@media (max-width: 760px) { .upload-form { grid-template-columns: 1fr 1fr; } .upload-form .up-file { grid-column: 1 / -1; } }
.pw-guide { grid-column: 1 / -1; background: #FFF8D6; border: 1px solid #F1DE7A; border-radius: var(--radius-sm); padding: 12px 14px; font-size: .88rem; color: #5A4700; }
.pw-guide p { margin: 0 0 6px; } .pw-guide ol { margin: 0; padding-left: 20px; }
.uploads { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.uploads li { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; border-bottom: 1px dashed var(--line); padding-bottom: 10px; }
.uploads li span { font-weight: 700; color: var(--espresso); }
.uploads li p { margin: 2px 0 0; }
.uploads em.chip { font-style: normal; font-size: .7rem; }
.up-actions { display: flex; gap: 14px; margin-top: 4px; flex-wrap: wrap; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; font-size: .84rem; font-weight: 700; color: var(--espresso); cursor: pointer; text-decoration: underline; }
.link-btn.danger { color: var(--bad); }
.uploads li > div { min-width: 0; flex: 1; }
.pilot-banner { display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; background: #E8F3E4; border: 1px solid #BFDDB3; color: #2F5626; border-radius: var(--radius-sm); padding: 12px 16px; margin-bottom: 16px; font-size: .92rem; }
.pilot-banner[hidden] { display: none; }
.pilot-banner > div { flex: 1 1 320px; }
.pilot-banner.warn { background: #FFF6D9; border-color: #F1DE7A; color: #5A4700; }
.pilot-banner.ended { background: var(--foam); border-color: var(--line); color: var(--ink); }
.pilot-tag { display: inline-block; background: #E8F3E4; color: #2F5626; border-radius: 999px; padding: 4px 12px; font-size: .78rem; font-weight: 800; margin-bottom: 8px; align-self: flex-start; }
.up-tips { background: var(--foam); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 14px; margin-bottom: 14px; font-size: .88rem; }
.up-tips p { margin: 4px 0; }
.access-log { margin: 4px 0 0; font-size: .78rem; color: #1E6B42; }
.client-code { font-family: ui-monospace, Consolas, monospace; letter-spacing: .04em; color: var(--espresso); }
.adv-search { padding: 6px 10px; border-radius: 10px; border: 1.5px solid var(--line); font: inherit; font-size: .85rem; width: 210px; max-width: 100%; margin-right: 6px; }
.mfa-box { max-width: 460px; margin: 0 auto; text-align: center; }
.mfa-box img { width: 190px; height: 190px; background: #fff; border-radius: 12px; padding: 8px; border: 1px solid var(--line); }
.mfa-box code { display: inline-block; word-break: break-all; background: var(--foam); padding: 4px 8px; border-radius: 6px; font-size: .8rem; }
.mfa-box input { font-size: 1.4rem; letter-spacing: .3em; text-align: center; width: 190px; padding: 10px; border-radius: 12px; border: 1.5px solid var(--line); margin: 12px 0; }

/* Advisor console */
.adv-filter { float: right; } .adv-filter select { padding: 6px 10px; border-radius: 10px; border: 1.5px solid var(--line); font: inherit; font-size: .85rem; }
.adv-review { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.adv-review select, .adv-review input { padding: 7px 10px; border-radius: 10px; border: 1.5px solid var(--line); font: inherit; font-size: .85rem; }
.adv-review input { flex: 1 1 220px; min-width: 0; }
.adv-grid { grid-template-columns: 1.3fr 1fr; align-items: start; }
.adv-h { margin: 0 0 10px; font-size: 1rem; color: var(--espresso); }
.adv-monthly { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0 12px; }
.adv-monthly .field { margin-bottom: 12px; } .adv-monthly .field label { font-size: .8rem; } .adv-monthly .field input { padding: 9px 11px; }
#c-picker { margin: 12px 0 16px; }
.adv-months tbody tr { cursor: pointer; } .adv-months tbody tr:hover td { background: var(--foam); }
.tax-scroll { overflow-x: auto; }

/* Signature Brew sections */
.dash-grid > *, .dash-grid-3 > *, .kpis > * { min-width: 0; }   /* let panels shrink on small phones */
@media (max-width: 400px) {
  .panel { padding: 18px 14px; }
  .tax-duo { grid-template-columns: 1fr; gap: 6px; } .tax-duo > div { padding: 10px; min-width: 0; } .tax-duo b { font-size: 1.15rem; }
  .kpi { padding: 18px 16px; } .kpi .value { font-size: 1.6rem; }
}
.sig-band { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin: 32px 0 14px; padding-top: 18px; border-top: 2px dashed var(--line); }
.sig-band span { font-family: var(--font-serif); font-weight: 700; font-size: 1.35rem; color: var(--espresso); }
.sig-band small { color: var(--ink-soft); font-size: .88rem; }

/* ---------- Money toolkit (js/dashboard-plus.js) ---------- */
/* Dashboard tabs: Overview first, one tab per topic (all of them print in the X-Ray report) */
@media screen { .dtab:not(.on) { display: none; } }
.dtab > .tool-band:first-child, .dtab > .sig-band:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.dtabs { position: sticky; top: 76px; z-index: 30; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; margin: 0 -4px 22px; padding: 6px; background: rgba(250, 246, 239, .94); backdrop-filter: blur(8px); border: 1px solid var(--line); border-radius: 999px; box-shadow: 0 2px 10px rgba(60,36,21,.05); }
.dtabs::-webkit-scrollbar { display: none; }
.dtabs button { flex: 1 0 auto; border: 0; background: none; font: inherit; font-weight: 700; font-size: .9rem; color: var(--ink-soft); padding: 9px 14px; border-radius: 999px; cursor: pointer; white-space: nowrap; transition: background .2s, color .2s; }
.dtabs button:hover { color: var(--espresso); background: var(--latte); }
.dtabs button[aria-selected="true"] { background: var(--espresso); color: #fff; box-shadow: 0 2px 8px rgba(60,36,21,.25); }
.dt-lock { font-size: .75rem; opacity: .8; }
.ov-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.ov-card { display: flex; gap: 12px; align-items: center; text-align: left; font: inherit; color: inherit; background: var(--white); border: 1px solid var(--line); border-left: 5px solid var(--line); border-radius: var(--radius-sm); padding: 14px 14px 14px 12px; cursor: pointer; transition: transform .15s, box-shadow .15s; min-width: 0; }
.ov-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.ov-card.good { border-left-color: var(--good); } .ov-card.warn { border-left-color: var(--warn); } .ov-card.bad { border-left-color: var(--bad); }
.ov-card.locked { background: var(--foam); border-left-color: var(--gold); }
.ov-ico { font-size: 1.7rem; width: 46px; height: 46px; display: grid; place-items: center; background: var(--cream); border-radius: 14px; flex-shrink: 0; }
.ov-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.ov-txt small { font-size: .74rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-soft); }
.ov-txt b { font-size: 1rem; color: var(--espresso); line-height: 1.3; }
.ov-txt span { font-size: .8rem; color: var(--ink-soft); line-height: 1.35; }
.ov-go { font-size: 1.4rem; color: var(--ink-soft); flex-shrink: 0; }
.ov-card.locked .ov-go { font-size: 1rem; }
.score-more { margin-top: 6px; }
@media screen { .gaps-folded > .gap-more { display: none; } }
.gaps-more { margin-top: 8px; font-weight: 700; color: #2E6B8F; }
@media (max-width: 980px) { .ov-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .ov-cards { grid-template-columns: 1fr; gap: 8px; }
  .ov-card { padding: 10px 12px; }
  .dtabs { border-radius: 14px; margin: 0 -8px 16px; }
  .dtabs button { padding: 8px 11px; font-size: .84rem; }
}
@media print { .ov-cards, .dtabs { display: none !important; } }
.tool-band { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin: 32px 0 14px; padding-top: 18px; border-top: 2px dashed var(--line); }
.tool-band span { font-family: var(--font-serif); font-weight: 700; font-size: 1.35rem; color: var(--espresso); }
.tool-band small { color: var(--ink-soft); font-size: .88rem; }
.risk-form fieldset { border: 0; padding: 0; margin: 0 0 14px; }
.risk-form legend { font-weight: 700; color: var(--espresso); margin-bottom: 6px; font-size: .95rem; }
.risk-form .choice { display: inline-block; margin: 0 6px 6px 0; }
.risk-form .choice span { padding: 6px 12px; font-size: .84rem; }
.mini-form { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin-top: 12px; align-items: end; }
.mini-form select, .mini-form input:not([type=checkbox]) { border: 2px solid var(--line); border-radius: 10px; background: var(--foam); padding: 9px 10px; font-weight: 600; color: var(--espresso); min-width: 0; width: 100%; font: inherit; font-size: .88rem; }
.mini-form select:focus, .mini-form input:focus { outline: none; border-color: var(--espresso); }
.cal-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.cal-list li { display: grid; grid-template-columns: 96px 1fr auto auto; gap: 10px; align-items: center; font-size: .9rem; border-bottom: 1px dashed var(--line); padding-bottom: 8px; }
.cal-list li.near { color: var(--espresso); font-weight: 700; }
.cal-list .cal-date { font-weight: 800; color: var(--espresso); font-size: .82rem; }
@media (max-width: 520px) { .cal-list li { grid-template-columns: 1fr auto; } .cal-list .cal-date { grid-column: 1 / -1; } }
.checklist { display: grid; gap: 2px 28px; }
@media (min-width: 900px) { .checklist { grid-template-columns: 1fr 1fr; } } /* full-width panel: two columns */
/* Invite friends: a slim strip at the end of the dashboard */
.invite-strip { background: linear-gradient(90deg, #FFF8D6, var(--white)); }
@media (min-width: 900px) {
  .invite-strip #invite { display: grid; grid-template-columns: 1.3fr 1fr; gap: 6px 24px; align-items: center; }
  .invite-strip #invite > p:first-child { margin: 0; grid-row: span 2; }
  .invite-strip #invite .btn-row { margin-top: 0 !important; }
}
.checklist .check { margin: 4px 0; }
.findings { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 8px; }
.findings li { padding: 10px 12px; border-radius: var(--radius-sm); font-size: .9rem; background: var(--foam); border-left: 4px solid var(--line); }
.findings li.bad { border-left-color: var(--bad); } .findings li.warn { border-left-color: var(--warn); } .findings li.good { border-left-color: var(--good); }
.fund-table td, .fund-table th { font-size: .84rem; }
/* Six tips as even cards: 3 + 3 on computers, 2 per row on tablets, 1 on phones */
.nri-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.nri-grid > div { background: var(--foam); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; }
.nri-grid h4 { margin: 0 0 6px; font-size: .98rem; color: var(--espresso); }
.nri-grid p { margin: 0; font-size: .86rem; line-height: 1.55; color: var(--ink-soft); }
@media (max-width: 1000px) { .nri-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .nri-grid { grid-template-columns: 1fr; } }
.invite-link { display: flex; gap: 8px; }
.invite-link input { flex: 1; min-width: 0; border: 2px solid var(--line); border-radius: 10px; background: var(--foam); padding: 8px 10px; font: inherit; font-size: .84rem; color: var(--espresso); }
.kyc-link { font-weight: 800; color: var(--espresso); }
.signed-in { font-size: .9rem; overflow-wrap: anywhere; }
.signed-in b { color: var(--espresso); }
.tax-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tax-duo > div { border: 2px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; }
.tax-duo b { display: block; font-size: 1.35rem; color: var(--espresso); }
.tax-duo .win { border-color: var(--good); background: #F1FAF4; }
.tax-edit { margin-top: 12px; border-top: 1px dashed var(--line); padding-top: 10px; }
.tax-edit summary { cursor: pointer; font-weight: 800; color: var(--espresso); font-size: .92rem; }
.tax-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 10px; margin-top: 10px; align-items: end; }
.tax-f { display: grid; gap: 3px; font-size: .78rem; font-weight: 700; color: var(--ink-soft); }
.tax-f input, .tax-f select { border: 2px solid var(--line); border-radius: 10px; background: var(--foam); padding: 8px 10px; font-weight: 700; color: var(--espresso); min-width: 0; }
.tax-f input:focus, .tax-f select:focus { outline: none; border-color: var(--espresso); }
@media (max-width: 480px) { .tax-grid { grid-template-columns: 1fr; } }
.mix-row { display: grid; grid-template-columns: 130px 1fr 96px; gap: 10px; align-items: center; margin-bottom: 12px; font-size: .9rem; }
.mix-row span { font-weight: 700; color: var(--espresso); }
.mix-row small { display: block; font-weight: 500; color: var(--ink-soft); font-size: .76rem; }
.mix-bars { position: relative; height: 14px; background: var(--latte); border-radius: 8px; }
.mix-bars i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--gold); border-radius: 8px; }
.mix-bars b { position: absolute; top: -4px; width: 3px; height: 22px; background: var(--espresso); border-radius: 2px; transform: translateX(-50%); }
.mix-row em { font-style: normal; font-weight: 800; font-size: .82rem; text-align: right; }
.mix-row em.add { color: #1E6B42; } .mix-row em.cut { color: var(--bad); } .mix-row em.ok { color: var(--ink-soft); }
@media (max-width: 520px) { .mix-row { grid-template-columns: 1fr auto; } .mix-row .mix-bars { grid-column: 1 / -1; grid-row: 2; } }
.advisor { display: flex; gap: 12px; align-items: center; }
.advisor-avatar { width: 52px; height: 52px; border-radius: 50%; background: var(--espresso); color: var(--cream); display: grid; place-items: center; font-size: 1.5rem; flex: 0 0 52px; }
.notes { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.notes li { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; }
.notes li.done b { text-decoration: line-through; opacity: .6; }

/* "Your life in one picture" (js/journey.js) */
.journey { position: relative; }
.jr-hl { font-family: var(--font-serif); font-size: clamp(1.4rem, 3vw, 1.9rem); color: var(--espresso); line-height: 1.25; margin: 4px 0 2px; }
.jr-sub { color: var(--ink-soft); margin: 0 0 14px; }
.jr-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin-bottom: 10px; }
.jr-tile { background: var(--cream); border-radius: var(--radius-sm); padding: 10px 14px; }
.jr-tile small { display: block; font-size: .78rem; color: var(--ink-soft); }
.jr-tile b { font-size: 1.25rem; color: var(--espresso); }
.jr-last { background: #E3F2E8; } .jr-last b { color: #1E7A47; }
.jr-last.bad { background: #FBE6E1; } .jr-last.bad b { color: var(--bad); }
.jr-chart { position: relative; }
.jr-svg { width: 100%; height: auto; display: block; touch-action: pan-y; }
.jr-tip { position: absolute; top: 120px; width: 150px; background: var(--espresso); color: var(--cream); border-radius: 10px; padding: 8px 10px; font-size: .8rem; line-height: 1.4; pointer-events: none; z-index: 2; }
.jr-tip[hidden] { display: none; }
.jr-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.jr-chips span { display: inline-flex; align-items: center; gap: 6px; background: var(--cream); border-radius: 999px; padding: 5px 12px; font-size: .84rem; color: var(--ink-soft); }
.jr-chips b { color: var(--espresso); }
.jr-chips .bad { background: #FBE6E1; color: #9E3220; }
.jr-legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: .8rem; color: var(--ink-soft); margin-bottom: 6px; }
.jr-legend span { display: inline-flex; align-items: center; gap: 6px; }
.jr-legend span[hidden] { display: none; }
.jr-sw { width: 16px; height: 3px; background: var(--gold); display: inline-block; }
.jr-sw-dash { background: none; border-top: 2px dashed #9A9188; height: 0; }
.jr-ctl { display: flex; align-items: center; gap: 12px; margin: 4px 0; font-size: .9rem; color: var(--ink-soft); }
.jr-ctl label { flex: 1; display: flex; align-items: center; gap: 12px; }
.jr-ctl input[type=range] { flex: 1; accent-color: var(--espresso); }
.jr-ctl output { min-width: 96px; text-align: right; font-weight: 800; color: var(--espresso); }
.jr-note { margin: 6px 0 0; }
.jr-tile em { display: block; font-style: normal; font-size: .74rem; color: var(--ink-soft); margin-top: 2px; }
.jr-sw-dot { background: none; border-top: 2.5px dotted #C0392B; height: 0; }
.jr-real { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-weight: 700; color: var(--espresso); }
.jr-real input { accent-color: var(--espresso); }
.jr-vs { background: var(--cream); border-radius: var(--radius-sm); padding: 10px 14px; margin: 8px 0 4px; font-size: .9rem; }
.jr-vs:empty { display: none; }
/* The plain-words verdict under the chart (surplus: what it lets you do; shortfall: how to close it) */
.jr-insight { background: #EAF5EE; border-left: 4px solid var(--good); border-radius: var(--radius-sm); padding: 12px 14px; margin: 10px 0 4px; font-size: .95rem; line-height: 1.55; }
.jr-insight:empty { display: none; }
.jr-insight.short { background: #FDF1E4; border-left-color: #D98A1E; }
.jr-insight .muted { display: block; margin-top: 6px; font-size: .85rem; }
/* Your money, age by age: milestone cards, then the full table */
.age-ms { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
.age-ms > div { background: var(--cream); border-radius: var(--radius-sm); padding: 10px 14px; }
.age-ms small { display: block; font-size: .78rem; color: var(--ink-soft); }
.age-ms b { display: block; font-size: 1.2rem; color: var(--espresso); margin-top: 2px; }
.age-ms em { display: block; font-style: normal; font-size: .74rem; color: var(--ink-soft); }
.age-ms .ret { background: #FBF0D9; box-shadow: inset 0 0 0 1.5px #D8A23F; }
.age-ms .bad { background: #FBE6E1; } .age-ms .bad b { color: var(--bad); font-size: 1.05rem; }
.age-det { margin-top: 14px; }
.age-table { width: 100%; border-collapse: collapse; font-size: .86rem; min-width: 640px; }
.age-table.pg-table { min-width: 0; }
.age-table.age-cash { min-width: 860px; }
/* Big buys: "Plan something else" */
.af-more-plans { margin-top: 22px; padding-top: 18px; border-top: 1px dashed var(--line); }
.af-more-h { display: flex; gap: 8px; align-items: center; margin: 0 0 4px; font-size: 1.05rem; }
.af-more-h .ic { width: 20px; height: 20px; }
.af-more-plans .af-buys { margin-bottom: 14px; }
.af-more-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px 14px; align-items: start; background: var(--foam); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; }
.af-more-form .af-f > span { font-size: .86rem; }
/* Budget: take-home = needs + wants + not yet split + savings */
.af-recon { margin: 14px 0 6px; padding: 12px 16px; border-radius: var(--radius-sm); background: var(--foam); border: 1px dashed var(--line); }
.af-recon-sum { margin: 0; display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; font-size: .92rem; color: var(--ink-soft); }
.af-recon-sum b { color: var(--espresso); } .af-recon-sum .gap b { color: #9E3220; }
.af-recon .small { margin: 10px 0 8px; } .af-recon .btn-row { gap: 8px; }
/* The budget statement: each figure on its own line, adding down to the take-home (ruled off like a ledger) */
.afr-title { margin: 0 0 6px; font-weight: 800; color: var(--espresso); font-size: .95rem; }
.afr-table { max-width: 620px; font-variant-numeric: tabular-nums; }
.afr-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 7px 0; border-bottom: 1px dotted #D9CCB8; font-size: .93rem; color: var(--ink-soft); }
.afr-row > span { min-width: 0; }
.afr-row small { display: block; margin-top: 1px; font-size: .78rem; line-height: 1.35; color: var(--ink-soft); opacity: .9; }
.afr-row b { color: var(--espresso); white-space: nowrap; }
.afr-row.gap { margin: 2px -10px; padding: 8px 10px; border-radius: 10px; border-bottom-color: transparent; background: #FBEAE5; }
.afr-row.gap > span, .afr-row.gap b { color: #9E3220; font-weight: 700; } .afr-row.gap small { color: #9E3220; font-weight: 500; }
.afr-row.total { padding-top: 9px; border-top: 1.5px solid var(--espresso); border-bottom: 3px double var(--espresso); font-weight: 800; color: var(--espresso); font-size: .98rem; }
.age-table td.inc { color: #1E6B42; } .age-table td.exp { color: #9E3220; }
.kpis + .pilot-banner { margin-top: 16px; }
.advisor-creds { list-style: none; margin: 12px 0 6px; padding: 0; display: grid; gap: 6px; }
.advisor-creds li { display: flex; gap: 8px; align-items: flex-start; font-size: .84rem; color: var(--ink-soft); line-height: 1.4; }
.advisor-creds .ic { width: 16px; height: 16px; flex: 0 0 16px; margin-top: 1px; }
/* Family checklist: your trusted person */
.trusted { margin-top: 16px; padding: 14px 16px; border: 1px solid var(--line); border-left: 4px solid #6B4FA0; border-radius: var(--radius-sm); background: #F7F4FB; }
.trusted h4 { display: flex; gap: 8px; align-items: center; margin: 0 0 6px; }
.trusted h4 .ic { width: 18px; height: 18px; }
.trusted-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px 14px; align-items: start; }
.trusted-form label:not(.check) { display: grid; gap: 4px; font-weight: 700; font-size: .84rem; color: var(--espresso); }
.trusted-form input:not([type=checkbox]), .trusted-form select { font: inherit; font-weight: 600; padding: 9px 12px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--white); min-width: 0; }
.trusted-form .trusted-ok, .trusted-form .btn-row, .trusted-form p { grid-column: 1 / -1; }
.trusted-card { display: flex; gap: 12px; justify-content: space-between; align-items: center; flex-wrap: wrap; background: var(--white); border-radius: 12px; padding: 10px 14px; }
.af-emi { display: block; margin-top: 8px; font-size: .84rem; color: var(--ink-soft); line-height: 1.45; }
/* "What are these EMIs for?" under the EMI box */
.emi-split { background: var(--foam); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 14px; margin: 4px 0 12px; }
.emi-split-h { margin: 0 0 8px; font-weight: 700; font-size: .88rem; color: var(--espresso); }
.emi-split-h span { display: block; font-weight: 500; font-size: .8rem; color: var(--ink-soft); }
.emi-split-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px 12px; align-items: start; }
.emi-split-row label { display: grid; gap: 4px; font-weight: 700; font-size: .82rem; color: var(--espresso); }
.emi-split-row input { font: inherit; font-weight: 600; padding: 9px 12px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--white); min-width: 0; }
.emi-split-row small { font-weight: 500; color: var(--ink-soft); font-size: .74rem; }
.emi-split .hint:empty { display: none; }
.kpi .sub .kpi-note { display: block; margin-top: 6px; } /* the status chip on its own line, the explanation below it */
/* Phones: the dashboard's three buttons share one or two rows, so the numbers come into view sooner */
@media (max-width: 520px) {
  .dash-head .btn-row { gap: 8px; }
  .dash-head .btn-row .btn { flex: 1 1 auto; padding: 9px 12px; font-size: .84rem; text-align: center; justify-content: center; }
} /* the jar's 3-column list fits a phone */
.age-table th { text-align: right; font-size: .74rem; color: var(--ink-soft); font-weight: 700; padding: 8px 10px; border-bottom: 1.5px solid var(--line); position: sticky; top: 0; background: var(--white); }
.age-table td { text-align: right; padding: 7px 10px; border-bottom: 1px dashed var(--line); white-space: nowrap; }
.age-table th:nth-child(-n+3), .age-table td:nth-child(-n+3) { text-align: left; }
.age-table td.neg { color: var(--bad); }
.age-table tr.ret td { background: #FBF0D9; font-weight: 700; }
.age-table tr.bad td { color: var(--bad); }
.age-det .table-wrap { max-height: 460px; overflow: auto; }
.age-lock { margin-top: 14px; text-align: left; display: grid; gap: 8px; justify-items: start; }
#dev-preview:not([hidden]) { display: flex; }
/* Loading: the cup fills, steam rises, beans bounce (js/main.js brewLoader) */
.brew-loader { display: grid; justify-items: center; gap: 6px; padding: 8px 0; color: var(--ink-soft); }
.brew-loader p { margin: 4px 0 0; font-weight: 700; color: var(--espresso); }
.brew-svg { width: 64px; height: 80px; overflow: visible; }
.bl-fill { animation: bl-fill 2.2s ease-in-out infinite; }
@keyframes bl-fill { 0% { transform: translateY(46px); } 70%, 100% { transform: translateY(0); } }
.bl-steam path { animation: bl-steam 2.2s ease-out infinite; opacity: 0; }
.bl-steam path + path { animation-delay: 1.1s; }
@keyframes bl-steam { 0% { opacity: 0; transform: translateY(5px); } 40% { opacity: .9; } 100% { opacity: 0; transform: translateY(-6px); } }
.bl-beans { display: flex; gap: 8px; height: 14px; align-items: flex-end; }
.bl-beans i { width: 12px; height: 8px; border-radius: 50%; background: #5A3A26; position: relative; animation: bl-bean 1.2s ease-in-out infinite; }
.bl-beans i::after { content: ""; position: absolute; left: 2px; right: 2px; top: 3.5px; height: 1.5px; border-radius: 2px; background: #2E1B10; }
.bl-beans i:nth-child(2) { animation-delay: .15s; } .bl-beans i:nth-child(3) { animation-delay: .3s; }
@keyframes bl-bean { 0%, 60%, 100% { transform: translateY(0) rotate(-20deg); } 30% { transform: translateY(-7px) rotate(15deg); } }
@media (prefers-reduced-motion: reduce) { .bl-fill, .bl-steam path, .bl-beans i { animation: none; opacity: 1; transform: none; } }
/* The small "Brewing…" note while a save or upload is on its way */
.busy-note { position: fixed; top: 86px; left: 50%; transform: translate(-50%, -12px); z-index: 80; background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 6px 18px 6px 10px; box-shadow: 0 12px 28px -14px rgba(60,36,21,.5); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.net-busy .busy-note { opacity: 1; transform: translate(-50%, 0); }
.brew-loader.small { grid-auto-flow: column; align-items: center; gap: 8px; padding: 0; }
.brew-loader.small .brew-svg { width: 24px; height: 30px; } .brew-loader.small .bl-beans { display: none; } .brew-loader.small p { margin: 0; font-size: .88rem; }
/* "Add it here" buttons that open the form at the right box, and the box they point to */
.edit-link { display: inline; font: inherit; font-weight: 800; color: #1F4F8C; background: #EEF4FB; border: 0; border-radius: 999px; padding: 2px 10px; cursor: pointer; white-space: nowrap; }
.edit-link:hover { background: #DCE8F7; }
.flash { animation: flash 1.8s ease-out; }
@keyframes flash { 0%, 40% { box-shadow: 0 0 0 4px rgba(255, 221, 0, .75); } 100% { box-shadow: 0 0 0 0 rgba(255, 221, 0, 0); } }
/* College planner (Big buys): our estimate, their call */
.af-edu { background: #EEF4FB; border-radius: var(--radius-sm); padding: 12px 14px; }
.af-edu-h { display: flex; gap: 8px; align-items: center; margin: 0 0 10px; font-weight: 800; color: #1F4F8C; font-size: .92rem; }
.af-edu-h .ic { width: 18px; height: 18px; }
.af-edu { margin-bottom: 16px; }
.af-edu .af-edu-ctl { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px 14px; align-items: start; background: none; border: 0; padding: 0; margin: 0; }
.af-f { display: grid; gap: 5px; font-weight: 700; font-size: .86rem; color: var(--espresso); }
.af-f input, .af-f select { font: inherit; font-weight: 600; padding: 9px 12px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--white); min-width: 0; }
.af-f input.bad { border-color: var(--bad); } .af-f small { font-weight: 500; color: var(--ink-soft); font-size: .76rem; }
.af-per { font-size: .55em; font-weight: 700; color: var(--ink-soft); margin-left: 2px; }
/* "How we worked out the money you need" (Future tab) */
.need-det { margin-top: 12px; }
.need-steps { margin: 10px 0 0; padding-left: 20px; display: grid; gap: 10px; font-size: .92rem; }
.need-sub { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 4px; }
.need-sub li { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px dashed var(--line); padding-bottom: 4px; font-size: .88rem; }
.need-sub li b { white-space: nowrap; } .need-sub li.tot { border-bottom: 0; font-weight: 700; color: var(--espresso); }
/* "Pilot offer" ribbon (home hero and plans) */
.pilot-offer { display: inline-flex; gap: 10px; align-items: flex-start; margin: 18px 0 0; padding: 10px 16px; border-radius: 16px; background: #FFF6CC; border: 1px solid #F1D45A; color: var(--espresso); font-size: .95rem; max-width: 560px; }
.pilot-offer .ic { width: 20px; height: 20px; flex-shrink: 0; margin-top: 1px; }
.pilot-offer.center-offer { display: flex; margin: 16px auto 0; text-align: left; }
/* "How's your brew?" feedback (js/main.js renderFeedback): bottom-left, clear of the WhatsApp button */
.fb { position: fixed; left: 18px; bottom: 18px; z-index: 60; }
.fb-open { display: inline-flex; align-items: center; gap: 8px; font: inherit; font-weight: 800; font-size: .88rem; color: var(--cream); background: linear-gradient(135deg, #7A5236, #3C2415); border: 0; border-radius: 999px; padding: 10px 16px 10px 12px; cursor: pointer; box-shadow: 0 10px 22px -10px rgba(60,36,21,.7); }
.fb-open .ic { width: 20px; height: 20px; color: #F3D9A4; } .fb-open .duo { fill-opacity: .35; }
.fb-open:hover { transform: translateY(-1px); }
.fb-card { position: absolute; left: 0; bottom: 56px; width: min(320px, calc(100vw - 36px)); background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: 18px; box-shadow: 0 18px 40px -16px rgba(60,36,21,.45); display: grid; gap: 8px; }
.fb-card[hidden] { display: none; }
.fb-title { font-size: 1.05rem; color: var(--espresso); } .fb-sub { margin: 0; font-size: .86rem; color: var(--ink-soft); }
.fb-x { position: absolute; top: 8px; right: 10px; border: 0; background: none; font-size: 1.4rem; line-height: 1; color: var(--ink-soft); cursor: pointer; }
.fb-cups { display: flex; gap: 6px; margin-top: 4px; }
.fb-cup { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; border: 1.5px solid var(--line); background: var(--cream); cursor: pointer; padding: 0; }
.fb-cup .ic { width: 26px; height: 26px; color: #BFAE98; } .fb-cup .duo { fill-opacity: .15; }
.fb-cup.on { background: #FBF0D9; border-color: #D8A23F; } .fb-cup.on .ic { color: #9A6514; } .fb-cup.on .duo { fill-opacity: .45; }
.fb-rlabel { min-height: 1.1em; color: #9A6514; font-weight: 700; }
.fb-card textarea { font: inherit; font-size: .92rem; padding: 10px 12px; border-radius: 12px; border: 1.5px solid var(--line); resize: vertical; min-height: 70px; }
.fb-msg { margin: 0; font-size: .84rem; } .fb-msg:empty { display: none; } .fb-msg.bad { color: var(--bad); }
@media (max-width: 560px) { .fb { left: 12px; bottom: 14px; } .fb-open span { display: none; } .fb-open { padding: 12px; } }
@media print { .fb { display: none; } }
/* Budget: their own amounts, and the latte factor */
.af-mybar { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin: 12px 0; }
#af-mysum { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.af-mine input { width: 100%; max-width: 160px; font: inherit; font-weight: 700; padding: 7px 10px; border-radius: 10px; border: 1.5px solid #D8A23F; background: #FFFBF2; }
.af-mine input.bad { border-color: var(--bad); }
.af-latte { display: flex; gap: 6px; align-items: flex-start; margin: 8px 0 0; font-size: .85rem; color: #7A5236; font-weight: 600; }
.af-latte .ic { width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; }
.latte-ctl { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px 14px; align-items: end; }
.latte-ctl label { display: grid; gap: 6px; font-weight: 700; font-size: .88rem; color: var(--espresso); }
.latte-ctl select, .latte-ctl input:not([type=range]) { font: inherit; font-weight: 500; padding: 9px 12px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--white); min-width: 0; }
.latte-sum { margin: 14px 0 8px; }
.lt-step { margin: 14px 0 8px; font-weight: 800; font-size: .88rem; color: var(--espresso); }
.latte-habits { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.lt-habit { display: flex; gap: 10px; align-items: center; text-align: left; font: inherit; font-size: .88rem; font-weight: 700; color: var(--espresso); background: var(--white); border: 1.5px solid var(--line); border-radius: 14px; padding: 10px 12px; cursor: pointer; transition: border-color .15s, background .15s; }
.lt-habit:hover { border-color: #D8A23F; }
.lt-habit.on { border-color: #9A6514; background: #FBF0D9; box-shadow: inset 0 0 0 1px #9A6514; }
.lt-ico { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--cream); flex-shrink: 0; }
.lt-ico .ic { width: 18px; height: 18px; } .lt-habit.on .lt-ico { background: linear-gradient(135deg, #D8A23F, #9A6514); } .lt-habit.on .lt-ico .ic { color: #fff; }
.latte-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
.latte-grid > div { background: #FBF0D9; border-radius: var(--radius-sm); padding: 10px 14px; }
.latte-grid small { display: block; color: var(--ink-soft); font-size: .78rem; } .latte-grid b { font-size: 1.25rem; color: var(--espresso); }
.latte-grid > div:last-child { background: linear-gradient(135deg, #D8A23F, #9A6514); } .latte-grid > div:last-child small, .latte-grid > div:last-child b { color: #fff; }
/* Read a bank statement on this device (Fill your cup) */
.stmt-read { margin: 4px 0 6px; padding: 12px 14px; border-radius: var(--radius-sm); background: #EEF4FB; }
.stmt-read .stmt-btn { cursor: pointer; }
.stmt-read .hint { margin: 8px 0 0; color: #24476E; }
.stmt-res { margin-top: 10px; background: var(--white); border-radius: 12px; padding: 10px 14px; }
.stmt-res p { margin: 0 0 6px; } .stmt-res ul { list-style: none; padding: 0; margin: 0 0 10px; display: grid; gap: 4px; }
.stmt-res li { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px dashed var(--line); padding-bottom: 4px; }
/* "Is it safe to share my statement?" */
.up-safe { margin-bottom: 14px; background: #EAF5EE; border-radius: var(--radius-sm); padding: 4px 14px; }
.up-safe > summary { font-weight: 800; color: #1E5A3A; display: flex; gap: 8px; align-items: center; }
.up-safe > summary .ic { width: 20px; height: 20px; }
.up-safe-list { margin: 6px 0 10px; padding-left: 18px; display: grid; gap: 6px; font-size: .9rem; }
/* Finance words: point (or tap) to see what they mean (js/i18n.js autoTerms) */
.gterm { text-decoration: underline dotted #C79A49; text-decoration-thickness: 1.5px; text-underline-offset: 3px; cursor: help; border-radius: 3px; }
.gterm:hover, .gterm:focus-visible { background: #FBF0D9; outline: none; }
@media print { .gterm { text-decoration: none; } }
/* "Upload for the most accurate numbers" */
.acc-note { display: flex; gap: 8px; align-items: flex-start; margin: 14px 0 0; padding: 9px 12px; border-radius: var(--radius-sm); background: #EEF4FB; color: #24476E; font-size: .85rem; }
.acc-note .ic { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; }
.acc-note a { font-weight: 800; color: #1F4F8C; }
.acc-slot:empty { display: none; }
/* "Your plans" in the Fill-your-cup form */
.plans-det > summary { cursor: pointer; font-weight: 800; color: var(--espresso); padding: 10px 14px; background: var(--cream); border-radius: var(--radius-sm); }
.plans-det[open] > summary { margin-bottom: 12px; }
.plans-h { font-size: .9rem; margin: 14px 0 6px; color: var(--espresso); }
.plans-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 14px; }
.plans-tabs button { font: inherit; font-size: .84rem; font-weight: 700; padding: 7px 14px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--white); color: var(--espresso); cursor: pointer; }
.plans-tabs button[aria-selected="true"] { background: var(--espresso); border-color: var(--espresso); color: #fff; }
.kid-row { display: grid; grid-template-columns: 64px 110px minmax(0, 1fr) 150px; gap: 8px; align-items: center; margin-bottom: 8px; }
.kid-row.kid-head { margin-bottom: 2px; font-size: .74rem; font-weight: 700; color: var(--ink-soft); align-items: end; }
.kid-row input:disabled { background: var(--foam); }
.kid-row .kid-n { font-weight: 700; font-size: .88rem; color: var(--espresso); }
.kid-row input, .kid-row select { font: inherit; padding: 10px 12px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--white); min-width: 0; }
@media (max-width: 560px) { .kid-row { grid-template-columns: 1fr 1fr; } .kid-row .kid-n { grid-column: 1 / -1; } .kid-row select { grid-column: 1 / -1; grid-row: 2; } .kid-row.kid-head { display: none; } }
/* What you owe: the interest you pay and loans worth a review */
.loan-review { margin-top: 18px; border-top: 1px dashed var(--line); padding-top: 14px; }
.lr-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.lr-head span { font-weight: 700; color: var(--ink-soft); } .lr-head b { font-size: 1.35rem; color: var(--bad); } .lr-head b small { font-size: .8rem; color: var(--ink-soft); font-weight: 600; }
.lr-head em { font-style: normal; font-size: .85rem; color: var(--ink-soft); }
.lr-list { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 8px; }
.lr-list li { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.lr-list b { white-space: nowrap; } .lr-list b.neg { color: var(--bad); } .lr-list b small { font-weight: 600; color: var(--ink-soft); }
.lr-tips { margin: 12px 0 0; padding-left: 18px; display: grid; gap: 6px; font-size: .9rem; }
/* Your income check-up */
.ic-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ic-row { display: grid; gap: 3px; padding: 10px 14px; border-radius: var(--radius-sm); background: var(--cream); border-left: 4px solid var(--line); }
.ic-row.good { border-left-color: var(--good); } .ic-row.warn { border-left-color: #D98A1E; } .ic-row.bad { border-left-color: var(--bad); }
.ic-row b { color: var(--espresso); } .ic-row span { font-size: .9rem; color: var(--ink-soft); }
/* Your surprise jar */
.jar { display: flex; gap: 14px; align-items: center; padding: 14px; border-radius: var(--radius-sm); background: #FBF0D9; }
.jar-ico { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 18px; background: linear-gradient(135deg, #D8A23F, #9A6514); flex-shrink: 0; box-shadow: 0 8px 16px -8px rgba(154,101,20,.6); }
.jar-ico .ic { width: 36px; height: 36px; color: #fff; } .jar-ico .duo { fill-opacity: .28; }
.jar b { display: block; color: var(--espresso); font-size: 1.05rem; } .jar span { font-size: .86rem; color: var(--ink-soft); } .jar small { display: block; color: var(--ink-soft); }
.jar-total { font-size: 1.8rem !important; color: var(--good) !important; }
.pg-form { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.pg-form input { font: inherit; padding: 9px 12px; border-radius: 12px; border: 1.5px solid var(--line); flex: 1 1 140px; min-width: 0; }
.pg-open { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-top: 6px; }
.pg-open input { font: inherit; padding: 7px 10px; border-radius: 10px; border: 1.5px solid var(--line); margin-left: 6px; }
#pg-msg:empty { display: none; } #pg-msg { color: var(--good); font-weight: 700; margin: 8px 0 0; }
.jr-tip { width: 190px !important; }
.jr-tip-r { opacity: .8; }
.qc-journey { margin-top: 28px; padding-top: 24px; border-top: 1px dashed var(--line); }
.qc-journey:empty { display: none; }
.jr-gap { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; justify-content: space-between; background: #FFF6D9; border: 1px solid #F1DE7A; border-radius: var(--radius-sm); padding: 10px 14px; margin-top: 12px; font-size: .9rem; }
@media (max-width: 560px) { .jr-ctl { flex-wrap: wrap; } .jr-ctl label { flex-basis: 100%; } }
@media print { .jr-ctl, .jr-legend .jr-base-lg { display: none !important; } }

/* X-Ray report: financial statements (printed) */
.report-stmts { margin-top: 20px; break-before: page; }
.report-stmts .stmt-h { font-size: 1.4rem; border-bottom: 2px solid var(--espresso); padding-bottom: 6px; margin: 0 0 12px; }
.report-stmts h3 { font-size: 1rem; margin: 14px 0 6px; }
.stmt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.stmt { width: 100%; border-collapse: collapse; font-size: .85rem; }
.stmt td { padding: 4px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
.stmt td:not(:first-child) { text-align: right; white-space: nowrap; }
.stmt tr.hd td { font-weight: 800; background: var(--cream); color: var(--espresso); }
.stmt tr.grp td { font-weight: 700; color: var(--roast); padding-top: 8px; }
.stmt tr.sub td { font-size: .78rem; color: var(--ink-soft); padding-left: 16px; }
.stmt tr.tot td { border-top: 1.5px solid var(--espresso); }
.stmt tr.net td { background: #F3EBDD; font-weight: 800; }
.stmt-wide td:first-child, .stmt-wide td:nth-child(2) { text-align: left; }
.signoff { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 22px; padding-top: 12px; border-top: 2px solid var(--espresso); font-size: .82rem; }
.signoff span { display: block; color: var(--ink-soft); }
.signoff .sign-line { display: block; border-bottom: 1px solid var(--ink); height: 28px; }
.report-stmts tr { break-inside: avoid; }

/* Printable X-Ray report: browser "Save as PDF" */
@media print {
  @page { margin: 14mm; }
  body { background: #fff; font-size: 12px; }
  .site-header, .site-footer, .wa-float, .modal-bg, .notice, .dash-head .btn-row, .no-print, #assumptions, .lock-card, .locked-wrap, .calc-cta, #empty, #dash-loading { display: none !important; }
  .dash { background: #fff; padding: 0; }
  .print-only { display: block !important; }
  .print-head { border-bottom: 3px solid var(--espresso); padding-bottom: 10px; margin-bottom: 16px; }
  .print-brand { font-family: var(--font-serif); font-size: 1.5rem; font-weight: 700; color: var(--espresso); }
  .panel, .kpi { break-inside: avoid; box-shadow: none; }
  .kpi.hero-kpi { background: #fff !important; color: var(--espresso) !important; border: 2px solid var(--espresso); }
  .kpi.hero-kpi .value, .kpi.hero-kpi .label, .kpi.hero-kpi .sub { color: var(--espresso) !important; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ---------- Dashboard: Future you ---------- */
.future-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 28px; align-items: center; }
.future-side { background: var(--cream); border-radius: var(--radius); padding: 22px; display: grid; gap: 12px; }
.future-side .result-big { font-size: 1.8rem; }
@media (max-width: 860px) { .future-grid { grid-template-columns: 1fr; } }

/* ---------- Networth benchmark scale ---------- */
.nw-scale { position: relative; height: 14px; border-radius: 8px; overflow: visible; background: var(--latte); margin: 26px 0 4px; }
.nw-scale .nw-seg { position: absolute; top: 0; height: 100%; }
.nw-scale .nw-seg:first-child { border-radius: 8px 0 0 8px; }
.nw-scale .nw-seg:nth-child(5) { border-radius: 0 8px 8px 0; }
.nw-scale .marker { position: absolute; top: -6px; width: 4px; height: 26px; background: var(--espresso); border-radius: 2px; transform: translateX(-50%); transition: left .4s ease; }
.nw-scale .marker span { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); background: var(--espresso); color: var(--cream); font-size: .72rem; font-weight: 800; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }

/* ---------- Legal pages ---------- */
.legal { display: grid; grid-template-columns: 260px 1fr; gap: 56px; align-items: start; }
.legal-toc { position: sticky; top: 100px; background: var(--cream); border-radius: var(--radius); padding: 22px; font-size: .88rem; max-height: calc(100vh - 130px); overflow-y: auto; }
.legal-toc strong { display: block; color: var(--espresso); margin-bottom: 10px; }
.legal-toc ol { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.legal-toc a { text-decoration: none; color: var(--ink-soft); }
.legal-toc a:hover { color: var(--espresso); text-decoration: underline; }
.legal-body { max-width: 780px; font-size: 1rem; }
.legal-body h2 { font-size: 1.35rem; margin: 2.2em 0 .6em; scroll-margin-top: 96px; }
.legal-body h2:first-of-type { margin-top: 0; }
.legal-body h3 { font-size: 1.05rem; margin: 1.4em 0 .4em; }
.legal-body p, .legal-body li { color: var(--ink-soft); }
.legal-body ul, .legal-body ol { padding-left: 22px; }
.legal-body li { margin-bottom: 6px; }
.legal-body table { width: 100%; border-collapse: collapse; margin: 12px 0 20px; font-size: .92rem; }
.legal-body th, .legal-body td { text-align: left; border-bottom: 1px solid var(--line); padding: 10px 8px; vertical-align: top; color: var(--ink-soft); }
.legal-body th { color: var(--espresso); background: var(--cream); }
.legal-meta { font-size: .9rem; color: var(--ink-soft); }
.ph { background: #FFF1A8; color: #5A4700; border-radius: 4px; padding: 0 4px; font-weight: 700; }
.legal-box { background: var(--cream); border-left: 4px solid var(--gold); border-radius: 10px; padding: 16px 18px; margin: 16px 0; }
.legal-box p { margin: 0; }
.legal-body { overflow-wrap: anywhere; }
@media (max-width: 900px) { .legal { grid-template-columns: minmax(0, 1fr); gap: 28px; } .legal-toc { position: static; max-height: none; } }

.notice { background: #FFF8D6; border: 1px solid #F1DE7A; color: #6B5600; border-radius: 12px; padding: 12px 16px; font-size: .85rem; }
.prose { max-width: 820px; margin: 0 auto; }
.prose p { color: var(--ink-soft); }
.prose h2 { margin-top: 1.6em; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.pull-quote { font-family: var(--font-serif); font-style: italic; font-size: clamp(1.5rem, 3vw, 2.1rem); color: var(--espresso); line-height: 1.3; border-left: 5px solid var(--bmc-yellow); padding: 8px 0 8px 28px; margin: 40px 0; }

/* =====================================================================
   MOTION: a live, tactile site (js/pages/home-motion.js builds the scenes; the logo is live on every page).
   Only transform and opacity are animated, scenes pause off screen, and reduced-motion users get still pictures.
   ===================================================================== */

/* ---- The logo cup, live everywhere: a light sweeps round it and steam puffs from the sip hole ---- */
.brand-live { position: relative; display: inline-block; line-height: 0; flex: 0 0 auto; }
.brand-live .bl-shine { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, rgba(255,255,255,0) 38%, rgba(255,255,255,.8) 50%, rgba(255,255,255,0) 62%) no-repeat; background-size: 300% 100%;
  -webkit-mask: url("../assets/logo/logo-icon.png") center / contain no-repeat; mask: url("../assets/logo/logo-icon.png") center / contain no-repeat;
  animation: bl-shine 5.5s ease-in-out infinite; }
.site-footer .brand-live .bl-shine { -webkit-mask-image: url("../assets/logo/logo-icon-dark.png"); mask-image: url("../assets/logo/logo-icon-dark.png"); }
@keyframes bl-shine { 0%, 55% { background-position: 120% 0; } 100% { background-position: -20% 0; } }
.brand-live .bl-puff { position: absolute; left: 32%; top: 10%; width: 18%; height: 32%; border-radius: 50%; pointer-events: none; opacity: 0; filter: blur(1.4px);
  background: radial-gradient(ellipse at 50% 70%, rgba(165,145,120,.6), rgba(165,145,120,0) 70%); animation: bl-puff 4.4s ease-in-out infinite; }
.brand-live .bl-puff + .bl-puff { animation-delay: 2.2s; left: 42%; }
@keyframes bl-puff { 0% { opacity: 0; transform: translate(0, 40%) scale(.6, .5); } 35% { opacity: .75; } 70% { transform: translate(18%, -40%) scale(1, 1.1) skewX(-10deg); } 100% { opacity: 0; transform: translate(-10%, -95%) scale(1.3, 1.3) skewX(8deg); } }
.brand:hover .bl-shine { animation-duration: 1.6s; }

/* ---- Hero: the 7 pillars as chips that settle in one by one ---- */
.pillar-chips { list-style: none; margin: 0 0 26px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; max-width: 560px; }
.pillar-chips li { display: inline-flex; align-items: center; gap: 7px; padding: 6px 13px 6px 6px; border-radius: 999px; background: var(--white); border: 1px solid var(--line);
  box-shadow: 0 8px 18px -14px rgba(60,36,21,.55); font-weight: 800; font-size: .86rem; color: var(--espresso);
  animation: chip-in .6s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(.3s + var(--i) * .08s); transition: border-color .2s, translate .2s; }
.pillar-chips li:hover { border-color: var(--gold); translate: 0 -2px; }
.pillar-chips li p { margin: 0; }
.pillar-chips [data-icon] { width: 26px; height: 26px; border-radius: 50%; background: #FBF1DC; display: grid; place-items: center; flex: 0 0 26px; }
.pillar-chips [data-icon] svg { width: 15px; height: 15px; }
@keyframes chip-in { from { opacity: 0; transform: translateY(10px) scale(.9); } }
@media (max-width: 900px) { .pillar-chips { justify-content: center; margin-left: auto; margin-right: auto; } }
@media (max-width: 560px) {
  .pillar-chips { gap: 6px; margin-bottom: 22px; }
  .pillar-chips li { font-size: .74rem; padding: 4px 10px 4px 4px; gap: 5px; }
  .pillar-chips [data-icon] { width: 20px; height: 20px; flex-basis: 20px; } .pillar-chips [data-icon] svg { width: 12px; height: 12px; }
  .hero .lead { font-size: 1.02rem; }
}

/* ---- Hero scene: the brand cup turning slowly, coins tossed into it, glass cards with live numbers ---- */
.hs { position: relative; width: 100%; max-width: 540px; margin-left: auto; perspective: 1100px; transform: translateY(calc(var(--py, 0px) * -1)); }
.hs-3d { position: relative; aspect-ratio: 1 / 1; transform-style: preserve-3d; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.hs-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.hs-glow { position: absolute; inset: 4% 10% 22%; border-radius: 50%; background: radial-gradient(circle at 52% 36%, rgba(255,246,226,.75), rgba(255,246,226,0) 64%); transform: translateZ(-60px); }
/* steam: soft wisps that rise, widen and break up (the turbulence is fixed, so each wisp changes shape as it moves through it) */
.sw { opacity: 0; transform-box: fill-box; transform-origin: 50% 100%; animation: sw-rise 6.5s ease-in-out infinite; }
.sw:nth-child(2) { animation-delay: -2.2s; animation-duration: 7.2s; } .sw:nth-child(3) { animation-delay: -4.4s; animation-duration: 6s; }
@keyframes sw-rise { 0% { opacity: 0; transform: translateY(16px) scaleX(.7); } 28% { opacity: .6; } 70% { opacity: .32; } 100% { opacity: 0; transform: translateY(-34px) scaleX(1.3); } }
/* the logo's growth arrow: laid in gold leaf once, then a glint of light runs along it now and then */
.hs-arrow { stroke-dasharray: 100; stroke-dashoffset: 0; transition: stroke-dashoffset 1.6s cubic-bezier(.4,0,.2,1) .7s; }
.hs-host:not(.go) .hs-arrow { stroke-dashoffset: 100; }
.hs-arrowhead { transition: opacity .5s ease 2.1s; } .hs-host:not(.go) .hs-arrowhead { opacity: 0; }
.hs-glint, .rg-glint { stroke-dasharray: 7 93; stroke-dashoffset: 107; }
.hs-glint { opacity: .85; animation: hs-glint 7s ease-in-out 3s infinite; }
@keyframes hs-glint { 0% { stroke-dashoffset: 107; } 26%, 100% { stroke-dashoffset: -8; } }
/* the foil on the sleeve catches the light */
.hs-foil { animation: hs-foil 9s ease-in-out 2s infinite; }
@keyframes hs-foil { 0% { transform: translateX(0); } 30%, 100% { transform: translateX(270px); } }
/* motes of light drifting in the warm air */
.hs-dust circle { animation: hs-mote 16s ease-in-out infinite; }
.hs-dust circle:nth-child(odd) { animation-duration: 21s; }
@keyframes hs-mote { 0%, 100% { opacity: .15; transform: translate(0, 0); } 50% { opacity: .7; transform: translate(10px, -26px); } }
/* glass cards floating in front of the cup */
.hs-card { position: absolute; z-index: 2; transform: translateZ(70px); opacity: 0; translate: 0 16px; transition: opacity .7s ease, translate .7s cubic-bezier(.2,.8,.2,1); }
.hs-host.go .hs-card { opacity: 1; translate: 0 0; }
.hs-nw { left: -3%; top: 10%; transition-delay: .25s; } .hs-score { right: -5%; top: 36%; transition-delay: .55s; } .hs-free { left: 1%; bottom: 7%; transition-delay: .85s; }
.hs-in { background: linear-gradient(160deg, rgba(255,255,255,.95), rgba(255,253,249,.84)); border: 1px solid rgba(255,255,255,.95); /* no backdrop blur: it glitches inside the 3D scene in Chrome */
  border-radius: 18px; padding: 11px 16px; box-shadow: 0 22px 44px -22px rgba(60,36,21,.55), inset 0 1px 0 rgba(255,255,255,.9); animation: hs-cardf 8s ease-in-out infinite; }
.hs-score .hs-in { animation-delay: -2s; display: flex; gap: 10px; align-items: center; } .hs-free .hs-in { animation-delay: -4s; }
@keyframes hs-cardf { 50% { transform: translateY(-4px); } }
.hs-in small { display: block; font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.hs-in b { display: block; font-size: 1.3rem; font-weight: 800; color: var(--espresso); line-height: 1.2; font-variant-numeric: tabular-nums; }
.hs-of { font-size: .75rem; color: var(--ink-soft); font-weight: 700; }
.hs-nw-v.bump { animation: hs-bump .8s ease-out; }
@keyframes hs-bump { 35% { color: #1E6B42; } }
.hs-spark-line { display: block; width: 120px; height: 30px; margin-top: 2px; }
.hs-spark-line path { stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset 2s ease .6s; }
.hs-host.go .hs-spark-line path { stroke-dashoffset: 0; }
.hs-ring { width: 42px; height: 42px; flex: 0 0 42px; }
.hs-ring-v { stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset 1.8s cubic-bezier(.2,.8,.2,1) .6s; }
.hs-host.go .hs-ring-v { stroke-dashoffset: 18; }
.hs-bar { width: 150px; height: 8px; border-radius: 9px; background: #EFE4D2; overflow: hidden; margin: 6px 0 4px; }
.hs-bar i { display: block; height: 100%; width: 64%; border-radius: 9px; background: linear-gradient(90deg, #2F8F5B, #79C79B); transform: scaleX(0); transform-origin: left; transition: transform 2.2s cubic-bezier(.2,.8,.2,1) .9s; }
.hs-host.go .hs-bar i { transform: scaleX(1); }
.hs-free-t { font-size: .8rem; color: var(--ink-soft); } .hs-free-t b { display: inline; font-size: .95rem; }
.hs-note { text-align: center; font-size: .74rem; color: var(--ink-soft); margin: 4px 0 0; opacity: .8; }
@media (max-width: 900px) { .hs { margin: 0 auto; max-width: 440px; } }
@media (min-width: 901px) { .hero .hs-host { align-self: start; margin-top: 8px; } }
@media (max-width: 520px) {
  .hs-in { padding: 8px 11px; border-radius: 14px; } .hs-in b { font-size: 1.02rem; } .hs-in small { font-size: .6rem; }
  .hs-bar { width: 104px; } .hs-spark-line { width: 90px; height: 24px; } .hs-ring { width: 34px; height: 34px; flex-basis: 34px; }
  .hs-nw { left: 0; } .hs-score { right: 0; }
}

/* ---- Scroll story: the page pins while every scattered account is pulled into one cup ---- */
.story { position: relative; background: linear-gradient(180deg, var(--cream) 0%, #F3E7D3 50%, var(--cream) 100%); }
.story-static { padding: 88px 0; }
.story-live { height: 320vh; }
.story-live .story-pin { position: sticky; top: 0; height: 100vh; display: flex; align-items: center; overflow: hidden; }
.story-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: center; width: 100%; }
.story-text { position: relative; }
.story-live .story-text { min-height: 300px; }
.story-line h2 { font-size: clamp(1.9rem, 3.6vw, 3.1rem); margin: 8px 0 14px; line-height: 1.12; }
.story-line p { font-size: 1.15rem; color: var(--ink-soft); max-width: 470px; margin: 0; }
.story-num { font-weight: 800; color: var(--gold); letter-spacing: .14em; font-size: .85rem; }
.story-static .story-line + .story-line { margin-top: 28px; }
.story-live .story-line { position: absolute; left: 0; right: 0; top: 0; opacity: 0; transform: translateY(28px); filter: blur(6px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.8,.2,1), filter .6s; pointer-events: none; }
.story-live .story-line.on { opacity: 1; transform: none; filter: none; pointer-events: auto; }
.story-stage { position: relative; height: min(70vh, 560px); }
.story-static .story-stage { height: 460px; }
.ss-chip { position: absolute; z-index: 2; will-change: transform, opacity; }
.ss-chip-in { display: inline-flex; gap: 7px; align-items: center; padding: 9px 14px; border-radius: 14px; white-space: nowrap; font-weight: 800; font-size: .92rem; color: var(--espresso);
  background: rgba(255,255,255,.82); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.95);
  box-shadow: 0 16px 32px -18px rgba(60,36,21,.55); animation: ss-bob 7s ease-in-out infinite; animation-delay: calc(var(--k) * -.7s); transition: filter .8s ease, opacity .8s ease; }
.ss-chip-in .ic { width: 18px; height: 18px; }
@keyframes ss-bob { 50% { transform: translateY(-4px); } }
.story[data-step="1"] .ss-chip-in { filter: blur(1.6px) saturate(.6); opacity: .7; }
.ss-cup { position: absolute; left: 50%; top: 50%; width: 36%; transform: translate(-50%, -50%); z-index: 1; }
.ss-cup svg { width: 100%; display: block; overflow: visible; position: relative; }
.ss-halo { position: absolute; inset: -35%; border-radius: 50%; background: radial-gradient(circle, rgba(255,240,205,.85), rgba(255,240,205,0) 62%); opacity: var(--fill, 0); transform: scale(calc(.6 + var(--fill, 0) * .5)); }
.ss-total { position: absolute; left: 50%; top: 96%; transform: translate(-50%, 12px) scale(.9); opacity: 0; transition: opacity .5s, transform .6s cubic-bezier(.2,.8,.2,1);
  text-align: center; white-space: nowrap; background: rgba(255,255,255,.88); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border: 1px solid #fff;
  border-radius: 16px; padding: 10px 18px; box-shadow: 0 20px 40px -20px rgba(60,36,21,.55); }
.ss-total small { display: block; font-size: .66rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.ss-total b { display: block; font-size: 1.4rem; color: var(--espresso); } .ss-total span { font-size: .8rem; color: #1E6B42; font-weight: 800; }
.story-stage.done .ss-total, .story-static .ss-total { opacity: 1; transform: translate(-50%, 0) scale(1); }
@media (max-width: 900px) {
  .story-live { height: 260vh; }
  .story-grid { grid-template-columns: 1fr; gap: 6px; text-align: center; }
  .story-live .story-text { min-height: 230px; }
  .story-line p { margin: 0 auto; font-size: 1rem; }
  .story-line h2 { font-size: clamp(1.6rem, 7vw, 2.2rem); }
  .story-stage { height: 50vh; } .story-static .story-stage { height: 380px; }
  .ss-chip-in { font-size: .76rem; padding: 6px 10px; gap: 5px; } .ss-chip-in .ic { width: 14px; height: 14px; }
  .ss-cup { width: 40%; }
}

/* ---- The recipe glass pours itself, layer by layer; hover an ingredient to see its layer ---- */
.rg { width: 100%; display: block; overflow: visible; }
.rg-l { transform-box: fill-box; transform-origin: 50% 100%; transform: scaleY(0); opacity: 0;
  transition: transform .65s cubic-bezier(.2,.8,.2,1) var(--d, 0s), opacity .5s ease var(--d, 0s), filter .3s; }
.rg-l5 { transform: translateY(-300px); transition-timing-function: cubic-bezier(.55,0,1,.45), ease; transition-duration: .55s, .3s; }
.rg-l6 { transform-origin: 50% 50%; transform: scaleX(.15); }
.rg-l7 { transform: translateY(-8px); }
.recipe-art.in .rg-l { transform: none; opacity: 1; }
.rg-pour { transform-box: fill-box; transform-origin: 50% 0; transform: scaleY(0); opacity: .9; }
.recipe-art.in .rg-pour { animation: rg-pour 2.4s ease-in-out .05s forwards; }
@keyframes rg-pour { 0% { transform: scaleY(0); } 14% { transform: scaleY(1); } 84% { transform: scaleY(1); opacity: .9; } 100% { transform: scaleY(1); opacity: 0; } }
.recipe-art:not(.in) .rg-steam .sw { animation: none; opacity: 0; }
.rg-glint { opacity: 0; }
.recipe-art.in .rg-glint { opacity: .85; animation: hs-glint 7s ease-in-out 5s infinite; }
.rg-arrow { stroke-dasharray: 100; stroke-dashoffset: 100; }
.recipe-art.in .rg-arrow { transition: stroke-dashoffset 1.2s ease 3.3s; stroke-dashoffset: 0; }
.rg.has-hl .rg-l { transition-delay: 0s !important; }
.rg.has-hl .rg-l:not(.hl) { opacity: .35; }
.rg .rg-l.hl { filter: drop-shadow(0 0 7px rgba(255,236,196,.95)) brightness(1.05); }
.recipe .ingredient, #recipe .grid-2 .ingredient { transition: border-color .2s, box-shadow .2s, translate .2s; }
.recipe .ingredient:hover, #recipe .grid-2 .ingredient:hover { translate: 0 -3px; box-shadow: 0 18px 36px -22px rgba(60,36,21,.5); }

/* ---- The seven pillars: a dark band of gold medallions, each with the one question we check ---- */
.pillar-band { position: relative; overflow: hidden; padding: 76px 0 80px; color: var(--cream);
  background: radial-gradient(120% 85% at 50% -10%, #573621 0%, #33200F 48%, #20120A 100%); }
.pillar-band::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E"); }
.pb-head { position: relative; text-align: center; max-width: 640px; margin: 0 auto 36px; }
.pb-head .eyebrow { color: var(--gold-dark-bg); }
.pb-head h2 { color: var(--cream); margin: 6px 0 0; font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.pb-head h2 .serif { color: var(--gold-dark-bg); }
.pb-grid { position: relative; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.pb-card { flex: 0 1 calc((100% - 72px) / 7); min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 18px 16px; border-radius: 18px; text-decoration: none; color: inherit;
  background: linear-gradient(165deg, rgba(255,255,255,.09), rgba(255,255,255,.02) 60%); border: 1px solid rgba(255,255,255,.1);
  box-shadow: 0 24px 40px -28px rgba(0,0,0,.8), inset 0 1px 0 rgba(255,255,255,.08); transition: transform .35s cubic-bezier(.2,.8,.2,1), border-color .3s, background .3s; }
.pillar-band:not(.in) .pb-card { opacity: 0; }
.pillar-band.in .pb-card { animation: pb-in .8s cubic-bezier(.2,.8,.2,1) backwards; animation-delay: calc(var(--i, 0) * 90ms); }
@keyframes pb-in { from { opacity: 0; transform: translateY(22px); } }
.pb-card:hover, .pb-card:focus-visible { transform: translateY(-4px); border-color: rgba(217,174,99,.55); background: linear-gradient(165deg, rgba(217,174,99,.16), rgba(255,255,255,.03) 60%); }
.pb-coin { position: relative; width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 10px; overflow: hidden;
  background: radial-gradient(circle at 34% 28%, #FFF5D2 0%, #F2D486 22%, #D1A24C 58%, #8E6420 100%);
  box-shadow: inset 0 0 0 2px rgba(255,241,196,.55), inset 0 0 0 4px rgba(142,100,32,.4), inset 0 -4px 8px rgba(94,63,20,.45), 0 10px 18px -8px rgba(0,0,0,.7); }
.pb-coin svg { width: 24px; height: 24px; color: #5E3F12 !important; filter: drop-shadow(0 1px 0 rgba(255,244,206,.75)); }
.pb-coin::after { content: ""; position: absolute; inset: -20%; background: linear-gradient(110deg, rgba(255,255,255,0) 40%, rgba(255,255,255,.75) 50%, rgba(255,255,255,0) 60%); transform: translateX(-120%); }
.pillar-band.in .pb-coin::after { animation: pb-glint 1.1s ease-in-out calc(.5s + var(--i, 0) * 160ms) both; }
.pb-card:hover .pb-coin::after { animation: pb-glint2 .9s ease-in-out both; }
@keyframes pb-glint { to { transform: translateX(120%); } } @keyframes pb-glint2 { from { transform: translateX(-120%); } to { transform: translateX(120%); } }
.pb-n { font-size: .72rem; font-weight: 800; letter-spacing: .14em; color: var(--gold-dark-bg); opacity: .85; }
.pb-card h3 { margin: 0; font-size: 1.05rem; color: var(--cream); }
.pb-card p { margin: 2px 0 0; font-size: .86rem; line-height: 1.45; color: rgba(250,246,239,.74); }
@media (max-width: 1100px) { .pb-card { flex-basis: calc((100% - 36px) / 4); } }
@media (max-width: 680px) { /* all seven at a glance: two compact columns, the medallion beside the name */
  .pillar-band { padding: 52px 0 56px; }
  .pb-head { margin-bottom: 22px; }
  .pb-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .pb-card { display: grid; grid-template-columns: 34px minmax(0, 1fr); column-gap: 10px; row-gap: 6px; align-items: center; padding: 12px; border-radius: 14px; }
  .pb-card:last-child { grid-column: 1 / -1; }
  .pb-coin { width: 34px; height: 34px; margin: 0; } .pb-coin svg { width: 17px; height: 17px; }
  .pb-n { display: none; }
  .pb-card h3 { font-size: .95rem; }
  .pb-card p { grid-column: 1 / -1; margin: 0; font-size: .78rem; line-height: 1.4; }
}

/* ---- How we brew: a gold line runs through the steps as they light up ---- */
.steps { position: relative; }
@media (min-width: 961px) {
  .steps::before { content: ""; position: absolute; left: 4%; right: 4%; top: 52px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--gold), #FFDD00);
    transform: scaleX(0); transform-origin: left; transition: transform 1.8s cubic-bezier(.2,.8,.2,1); }
  .steps.in::before { transform: scaleX(1); }
}
.step { z-index: 1; }
.steps.in .step .num { animation: num-pop .7s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--i, 0) * .35s); }
@keyframes num-pop { from { transform: scale(.85); opacity: 0; } }

/* ---- Cards lean towards the pointer, with a soft glare ---- */
.reveal.in.tilt { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .25s ease, box-shadow .25s, opacity .6s; }
.reveal.in.tilt:hover { box-shadow: 0 28px 54px -26px rgba(60,36,21,.5); }
.card-link.tilt { position: relative; overflow: hidden; }
.glare { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .25s;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(255,255,255,.6), rgba(255,255,255,0) 46%); }
.tilt:hover .glare { opacity: 1; }

/* ---- The sample dashboard rises into place; its numbers count up (js) ---- */
.reveal .panel.tilt-in { transform: perspective(1200px) rotateX(16deg) translateY(34px) scale(.96); transform-origin: 50% 100%; transition: transform 1.1s cubic-bezier(.2,.8,.2,1) .15s; }
.reveal.in .panel.tilt-in { transform: none; }

/* ---- Steam on the plan cups ---- */
.menu-card .size { position: relative; display: inline-block; }
.cup-steam { position: absolute; left: 50%; top: -15px; width: 26px; height: 18px; transform: translateX(-50%); pointer-events: none; }
.cup-steam b { position: absolute; bottom: 0; width: 5px; height: 16px; border-radius: 50%; background: linear-gradient(rgba(165,145,120,0), rgba(165,145,120,.6)); filter: blur(1.2px); opacity: 0; animation: cup-steam 3.6s ease-in-out infinite; }
.cup-steam b:nth-child(1) { left: 3px; } .cup-steam b:nth-child(2) { left: 11px; animation-delay: 1.2s; } .cup-steam b:nth-child(3) { left: 19px; animation-delay: 2.4s; }
@keyframes cup-steam { 0% { opacity: 0; transform: translate(0, 6px) scale(.8, .6); } 35% { opacity: .75; } 65% { transform: translate(2px, -4px) scale(1.2, 1) skewX(-10deg); } 100% { opacity: 0; transform: translate(-2px, -12px) scale(1.6, 1.2) skewX(8deg); } }
.size-m .cup-steam { top: -16px; } .size-l .cup-steam { top: -18px; }

/* ---- A thin gold line shows how far down the page you are ---- */
.scroll-bar { position: fixed; left: 0; right: 0; top: 0; height: 3px; z-index: 300; pointer-events: none; transform: scaleX(0); transform-origin: 0 50%; background: linear-gradient(90deg, var(--gold), #FFDD00); }

@media (prefers-reduced-motion: reduce) {
  .brand-live .bl-shine, .brand-live .bl-puff, .pillar-chips li, .sw, .hs-glint, .rg-glint, .hs-foil, .hs-dust circle,
  .hs-in, .ss-chip-in, .cup-steam b, .steps.in .step .num, .pillar-band .pb-card, .pb-coin::after { animation: none !important; }
  .sw { opacity: .4; } .bl-puff, .cup-steam b, .hs-glint, .rg-glint { opacity: 0; }
  .hs-arrow, .rg-arrow { stroke-dashoffset: 0 !important; } .hs-arrowhead { opacity: 1 !important; }
  .hs-card, .rg-l, .rg-pour, .hs-ring-v, .hs-bar i, .hs-spark-line path, .reveal .panel.tilt-in, .pb-card { transition: none !important; }
  .rg-pour { display: none; } .reveal .panel.tilt-in { transform: none; } .pb-card { opacity: 1 !important; }
}

/* =========================================================
   DASHBOARD MOTION (js/dashboard-motion.js; .dm on <body> only when the device allows motion)
   Each tab opens with one line saying what it answers, its panels rise into place, a pill slides between tabs,
   the Brew Score cup fills as coins from around the world drop in, bars grow, cards lean towards the pointer.
   ========================================================= */
/* What this tab answers, in one line */
.dt-intro { display: flex; align-items: center; gap: 12px; margin: -4px 0 16px; padding: 11px 16px; border-radius: 14px; background: linear-gradient(100deg, #FBF1DF, #FFFDF9 75%); border: 1px solid #EEDFC4; color: var(--espresso); font-weight: 600; font-size: .95rem; line-height: 1.4; }
.dt-intro > i { display: grid; place-items: center; flex-shrink: 0; width: 34px; height: 34px; border-radius: 10px; background: var(--espresso); box-shadow: 0 6px 12px -6px rgba(60,36,21,.6); }
.dt-intro > i .ic { width: 19px; height: 19px; color: #FFDD00; }
@media (max-width: 560px) { .dt-intro { font-size: .86rem; padding: 9px 12px; gap: 10px; } .dt-intro > i { width: 30px; height: 30px; } }
@media print { .dt-intro { display: none !important; } }

/* The open tab: a pill that slides from tab to tab */
.dt-ink { position: absolute; left: 0; top: 6px; bottom: 6px; z-index: 0; border-radius: 999px; pointer-events: none; background: linear-gradient(135deg, #5A3822, var(--espresso) 60%); box-shadow: 0 6px 16px -4px rgba(60,36,21,.45), inset 0 1px 0 rgba(255,255,255,.14); }
.dtabs.has-ink .dt-ink { transition: transform .5s cubic-bezier(.25,.8,.25,1), width .5s cubic-bezier(.25,.8,.25,1); }
.dtabs.has-ink button { position: relative; z-index: 1; }
.dtabs.has-ink button[aria-selected="true"] { background: transparent; box-shadow: none; }
.dtabs:not(.has-ink) .dt-ink { display: none; }

/* Panels rise into place, one after another, with a slight 3D tip */
@keyframes dm-rise { from { opacity: 0; transform: perspective(1100px) translateY(30px) rotateX(10deg) scale(.985); } }
.dm .dtab.on > :not(.dash-grid, .dash-grid-3, .kpis, .ov-cards),
.dm .dtab.on > :is(.dash-grid, .dash-grid-3, .kpis, .ov-cards) > * { animation: dm-rise .8s cubic-bezier(.2,.8,.2,1) backwards; animation-delay: calc(var(--dmi, 0) * 70ms); transform-origin: 50% 0; }
/* The networth card: a slow gold sheen passes over it */
@keyframes dm-sheen { 0% { background-position: 135% 0; } 45%, 100% { background-position: -35% 0; } }
.dm .kpi.hero-kpi { background-image: linear-gradient(105deg, rgba(255,221,0,0) 40%, rgba(255,221,0,.14) 50%, rgba(255,221,0,0) 60%); background-size: 260% 100%; background-repeat: no-repeat; background-position: 135% 0; }
.dm .dtab.on > .kpis > .hero-kpi { animation: dm-rise .8s cubic-bezier(.2,.8,.2,1) backwards, dm-sheen 6.5s ease-in-out 1.6s infinite; }

/* Cards lean towards the pointer, with a soft light where it points (mouse and trackpad only) */
.dm-tilt :is(.kpi, .ov-card, .goal, .af-buy, .pillar, .age-ms > div, .ins-area, .af-trip) { transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s; }
.dm-tilt .dm-lean { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-3px); box-shadow: 0 20px 36px -20px rgba(60,36,21,.5); background-image: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(199,154,73,.16), rgba(199,154,73,0) 62%); }
.dm-tilt .kpi.hero-kpi.dm-lean { background-image: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(255,255,255,.16), rgba(255,255,255,0) 62%); background-size: auto; }

/* Brew Score: a cup beside the gauge, filled to the score */
.gauge-wrap.with-cup { display: grid; grid-template-columns: auto minmax(0, auto); grid-template-areas: "cup gauge" "cup chip"; justify-content: center; align-items: center; column-gap: 12px; }
.gauge-wrap.with-cup > .sc-cup { grid-area: cup; }
.gauge-wrap.with-cup > svg { grid-area: gauge; max-width: 100%; height: auto; }
.gauge-wrap.with-cup > .chip { grid-area: chip; justify-self: center; align-self: start; }
.sc-cup { margin: 0; width: 112px; text-align: center; }
.sc-cup svg { display: block; width: 100%; height: auto; overflow: visible; }
.sc-cup figcaption { margin-top: 2px; font-size: .74rem; font-weight: 700; color: var(--ink-soft); line-height: 1.25; }
@media (max-width: 420px) { .sc-cup { width: 92px; } .gauge-wrap.with-cup { column-gap: 6px; } .gauge-wrap.with-cup > svg { width: 200px; } }
/* the coffee's surface sits inside the porcelain cup at the score's depth (deeper = narrower, and the rim hides more of it) */
.sc-coffee { transform: translate(62px, var(--cy)) scale(var(--k)); }
.dm .sc-coffee { animation: sc-pour 1.9s cubic-bezier(.25,.8,.25,1) .25s backwards; }
@keyframes sc-pour { from { transform: translate(62px, 80px) scale(.74); } }
/* a ripple spreads across the coffee each time a coin goes in (same timing as the coin) */
.sc-ripple { opacity: 0; transform-box: fill-box; transform-origin: center; }
.dm .sc-ripple { animation: sc-ripple 3.9s ease-out infinite; }
@keyframes sc-ripple { 0%, 33% { opacity: 0; transform: scale(.2); } 36% { opacity: .9; transform: scale(.35); } 62%, 100% { opacity: 0; transform: scale(1.7); } }
.sc-cup .sw { stroke: #B7A58E; animation-name: sw-rise-s; } /* steam on a small cup rises a shorter way */
@keyframes sw-rise-s { 0% { opacity: 0; transform: translateY(6px) scaleX(.7); } 30% { opacity: .55; } 70% { opacity: .3; } 100% { opacity: 0; transform: translateY(-12px) scaleX(1.3); } }
/* Coins of the world drop in, spinning, and sink below the coffee */
.sc-coin { opacity: 0; transform: translate(var(--cx), -18px); }
.dm .sc-coin { animation: sc-drop 3.9s cubic-bezier(.45,0,.8,.45) infinite; }
@keyframes sc-drop {
  0% { opacity: 0; transform: translate(var(--cx), -18px) scaleX(1); }
  8% { opacity: 1; }
  18% { transform: translate(var(--cx), calc(var(--lv) * .3)) scaleX(.25); }
  28% { transform: translate(var(--cx), calc(var(--lv) * .7)) scaleX(1); }
  36% { opacity: 1; transform: translate(var(--cx), calc(var(--lv) + 2px)) scaleX(.6); }
  42%, 100% { opacity: 0; transform: translate(var(--cx), calc(var(--lv) + 12px)) scaleX(1); }
}

/* The asset ring: hover a slice (or a row) and both light up; the ring tips back like a saucer */
.dm-tilt #donut svg { transition: transform .5s cubic-bezier(.2,.8,.2,1), filter .5s; }
.dm-tilt #donut:hover svg { transform: perspective(700px) rotateX(20deg) scale(1.03); filter: drop-shadow(0 16px 12px rgba(60,36,21,.2)); }
#donut circle[stroke-dasharray] { transition: stroke-width .25s; }
#donut circle.dm-hl, .dm-tilt #donut circle[stroke-dasharray]:hover { stroke-width: 36; }
#asset-list .row { border-radius: 10px; margin: 0 -8px; padding: 4px 8px; transition: background .2s, transform .2s; }
#asset-list .row.dm-hl { background: #FBF1DF; transform: translateX(4px); }

/* Bars grow from the left */
.dm :is(.bar > span, .whatif-bar > i) { transform-origin: 0 50%; }
.dm .mix-bars > i { transform-origin: 0 50%; }

/* The surprise jar: a coin from somewhere in the world drops in now and then */
.jar-ico { position: relative; }
.jar-coin { position: absolute; left: 50%; top: -6px; width: 22px; height: 22px; margin-left: -11px; display: grid; place-items: center; border-radius: 50%; font: 800 .72rem/1 Manrope, Arial, sans-serif; font-style: normal; color: #6A4612; text-shadow: .5px .7px 0 rgba(255,243,204,.75); background: radial-gradient(circle at 34% 28%, #FFF6D6 0%, #F4D78E 22%, #D2A44E 60%, #946822 100%); box-shadow: inset 0 0 0 1.2px rgba(255,241,196,.6), inset 0 0 0 2.4px rgba(142,100,32,.45), 0 3px 5px -2px rgba(0,0,0,.45); opacity: 0; pointer-events: none; }
.dm .jar-coin { animation: jar-drop 3.4s cubic-bezier(.5,0,.75,.4) 1s infinite; }
@keyframes jar-drop { 0% { opacity: 0; transform: translateY(-26px) scaleX(1); } 10% { opacity: 1; } 22% { transform: translateY(-10px) scaleX(.3); } 34% { opacity: 1; transform: translateY(8px) scaleX(1); } 42%, 100% { opacity: 0; transform: translateY(18px) scale(.6); } }
@media print { .dm .dtab > *, .dm .dtab > * > *, .dm .kpi.hero-kpi { animation: none !important; } .sc-cup { display: none; } .gauge-wrap.with-cup { display: flex; } }

/* ---- "Book my free 1:1 call" (dashboard): a short form in a dialog, with WhatsApp as the alternative ---- */
.call-dlg { width: min(560px, calc(100vw - 24px)); max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); padding: 0; border: 0; border-radius: 22px; background: var(--white); color: var(--ink); box-shadow: 0 40px 80px -30px rgba(30,17,8,.55); overflow: auto; }
.call-dlg::backdrop { background: rgba(30,17,8,.5); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.call-dlg[open] { animation: call-in .35s cubic-bezier(.2,.8,.2,1); }
@keyframes call-in { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.call-form { padding: 22px 22px 18px; }
.call-head { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; }
.call-head h3 { margin: 0 0 2px; font-size: 1.2rem; color: var(--espresso); }
.call-head p { margin: 0; font-size: .88rem; color: var(--ink-soft); line-height: 1.45; }
.call-ico { display: grid; place-items: center; flex: 0 0 42px; height: 42px; border-radius: 12px; background: #FBF0D9; }
.call-ico .ic { width: 22px; height: 22px; }
.call-x { margin-left: auto; flex: 0 0 34px; height: 34px; border: 0; border-radius: 50%; background: var(--cream); color: var(--espresso); font-size: 1.3rem; line-height: 1; cursor: pointer; }
.call-x:hover { background: var(--latte); }
.call-prev { display: flex; gap: 8px; align-items: flex-start; margin: 0 0 14px; padding: 10px 12px; border-radius: 12px; background: #E8F4EC; color: #1E6B42; font-size: .86rem; line-height: 1.45; }
.call-prev .ic { flex: 0 0 18px; width: 18px; height: 18px; margin-top: 1px; }
.call-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.call-set { border: 0; margin: 0 0 14px; padding: 0; min-width: 0; }
.call-set legend { padding: 0; margin-bottom: 7px; font-weight: 700; font-size: .9rem; color: var(--espresso); }
.call-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.call-opt { position: relative; cursor: pointer; }
.call-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.call-opt span { display: inline-flex; align-items: center; gap: 6px; padding: 8px 13px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--white); font-size: .86rem; color: var(--ink-soft); transition: border-color .15s, background .15s, color .15s; }
.call-opt span .ic { width: 16px; height: 16px; }
.call-opt b { font-weight: 700; color: inherit; }
.call-opt small { font-size: .74rem; opacity: .8; }
.call-opt:hover span { border-color: var(--gold); }
.call-opt input:checked + span { border-color: var(--espresso); background: var(--espresso); color: #fff; }
.call-opt input:checked + span .ic { color: #FFDD00; }
.call-opt input:focus-visible + span { outline: 3px solid rgba(199,154,73,.55); outline-offset: 2px; }
.call-tz { display: flex; align-items: center; gap: 6px; margin: 8px 0 0; font-size: .8rem; color: var(--ink-soft); }
.call-tz .ic { width: 14px; height: 14px; }
.call-form textarea { width: 100%; resize: vertical; font: inherit; padding: 12px 14px; border: 2px solid var(--line); border-radius: 14px; background: var(--foam); color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.call-form textarea:focus { outline: none; border-color: var(--espresso); box-shadow: 0 0 0 4px rgba(255, 221, 0, .35); }
.call-form .btn-block { padding: 13px 18px; font-size: 1rem; }
.call-wa span { white-space: nowrap; }
.call-or { display: flex; align-items: center; gap: 10px; margin: 12px 0; color: var(--ink-soft); font-size: .8rem; }
.call-or::before, .call-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.call-wa { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: #25D366; border-color: #25D366; color: #fff; }
.call-wa:hover { background: #1EBE5A; border-color: #1EBE5A; color: #fff; }
.call-wa svg { flex: 0 0 20px; width: 20px; height: 20px; }
.call-priv { margin: 10px 0 0; text-align: center; font-size: .76rem; color: var(--ink-soft); }
.call-done { position: relative; text-align: center; padding-top: 30px; }
.call-done .call-x { position: absolute; right: 16px; top: 16px; }
.call-ok { display: inline-grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: #E3F3E9; color: #1E6B42; margin-bottom: 8px; }
.call-ok .ic { width: 30px; height: 30px; }
.call-done h3 { margin: 0 0 4px; color: var(--espresso); }
.call-done > p { margin: 0 0 14px; color: var(--ink-soft); }
.call-sum { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; text-align: left; max-width: 400px; margin: 0 auto 18px; padding: 12px 16px; border-radius: 14px; background: var(--cream); font-size: .9rem; }
.call-sum dt { font-weight: 800; color: var(--ink-soft); } .call-sum dd { margin: 0; color: var(--espresso); font-weight: 600; }
.call-done .btn-row { display: grid; gap: 10px; max-width: 360px; margin: 0 auto; } /* stacked: both fit on a phone */
.call-done .btn-row .btn { width: 100%; padding: 13px 18px; font-size: 1rem; }
.call-dlg { overflow-x: hidden; }
@media (max-width: 520px) { .call-form { padding: 18px 16px 14px; } .call-row { grid-template-columns: 1fr; } .call-opt span { padding: 7px 11px; font-size: .82rem; } }

/* ---- Payday plan (Overview): how to split the next salary before it lands ---- */
.payday { margin: 0 0 16px; padding: 16px 18px; border-radius: var(--radius-sm); background: var(--white); border: 1px solid var(--line); border-left: 5px solid var(--gold); }
.pd-head { display: flex; gap: 12px; align-items: flex-start; }
.pd-head h3 { margin: 0; font-size: 1.05rem; color: var(--espresso); }
.pd-head p { margin: 2px 0 0; font-size: .9rem; color: var(--ink-soft); }
.pd-ico { display: grid; place-items: center; flex: 0 0 36px; height: 36px; border-radius: 10px; background: #FBF0D9; }
.pd-ico .ic { width: 20px; height: 20px; }
.pd-edit { margin-left: auto; white-space: nowrap; font-size: .82rem; }
.pd-steps { margin: 10px 0 0 48px; padding: 0; display: grid; gap: 6px; font-size: .93rem; }
.pd-steps li::marker { font-weight: 800; color: var(--gold); }
.pd-mid, .pd-due, .pd-tip { margin: 8px 0 0 48px; font-size: .9rem; color: var(--ink-soft); }
.pd-tip { color: #8A5A00; }
.pd-ask { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; font-size: .93rem; }
.pd-ask > span:nth-child(2) { flex: 1 1 260px; }
@media (max-width: 560px) { .pd-steps, .pd-mid, .pd-due, .pd-tip { margin-left: 0; } .pd-head { flex-wrap: wrap; } .pd-edit { margin-left: 48px; } }

/* ---- Mobile number prompt (dashboard, asked once) ---- */
.mobile-bar > label:not(.check) { display: block; }
.mobile-bar input[type="tel"] { display: block; margin-top: 6px; padding: 8px 12px; border: 2px solid var(--line); border-radius: 12px; background: var(--foam); font: inherit; width: 100%; max-width: 280px; box-sizing: border-box; }
.mobile-bar label.check { display: flex; gap: 8px; align-items: flex-start; font-size: .86rem; }
.mb-err { color: var(--bad); font-size: .85rem; font-weight: 600; }

/* ---- Today (Overview): safe to spend, two-tap spending, "Can I afford this?" ---- */
.today { margin: 0 0 16px; padding: 18px 20px; border-radius: var(--radius); background: linear-gradient(160deg, #FFFDF8, #FBF3E4); border: 1px solid #EEDFC4; }
.td-top { display: flex; gap: 14px; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; }
.td-safe small { display: block; font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.td-amt { display: block; font-size: 2.2rem; font-weight: 800; color: #1E6B42; line-height: 1.15; font-variant-numeric: tabular-nums; }
.td-amt.over { color: var(--bad); }
.td-safe > span { font-size: .9rem; color: var(--ink-soft); }
.td-bar { position: relative; height: 8px; margin: 14px 0 6px; border-radius: 8px; background: #EADCC4; }
.td-bar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 8px; background: var(--gold); }
.td-bar b { position: absolute; top: -4px; width: 2px; height: 16px; margin-left: -1px; background: var(--espresso); border-radius: 1px; }
.td-pace { margin: 0 0 12px; font-size: .84rem; color: var(--ink-soft); }
.td-add label { display: block; margin-bottom: 6px; font-weight: 700; font-size: .9rem; color: var(--espresso); }
.td-row { display: flex; gap: 10px; align-items: flex-start; flex-wrap: wrap; }
.td-row input { flex: 0 0 140px; padding: 10px 14px; border: 2px solid var(--line); border-radius: 12px; background: var(--white); font: inherit; font-weight: 700; }
.td-row input:focus { outline: none; border-color: var(--espresso); box-shadow: 0 0 0 4px rgba(255, 221, 0, .35); }
.td-kinds { display: flex; flex-wrap: wrap; gap: 6px; flex: 1 1 300px; }
.td-kind { display: inline-flex; align-items: center; gap: 5px; padding: 7px 11px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--white); font: inherit; font-size: .84rem; font-weight: 700; color: var(--espresso); cursor: pointer; transition: border-color .15s, background .15s; }
.td-kind .ic { width: 15px; height: 15px; }
.td-kind:hover { border-color: var(--gold); background: #FFF8EA; }
.td-kind:active { transform: scale(.97); }
.td-err { margin: 6px 0 0; min-height: 0; font-size: .84rem; color: var(--bad); font-weight: 600; }
.td-err:empty { display: none; }
.td-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 4px; }
.td-list li, .td-wish li { display: flex; gap: 10px; align-items: center; font-size: .9rem; padding: 6px 10px; border-radius: 10px; background: var(--white); border: 1px solid var(--line); }
.td-list li span, .td-wish li span { flex: 1; min-width: 0; color: var(--ink-soft); }
.td-del { border: 0; background: none; font-size: 1.2rem; line-height: 1; color: var(--ink-soft); cursor: pointer; padding: 0 4px; }
.td-wish { margin-top: 12px; } .td-wish p { margin: 0 0 6px; font-size: .9rem; } .td-wish ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.td-wish em { font-style: normal; font-size: .8rem; color: #8A5A00; white-space: nowrap; }
.td-foot { margin: 12px 0 0; font-size: .82rem; color: var(--ink-soft); line-height: 1.5; }
.buy-res { margin-top: 14px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); border-left: 5px solid var(--good); background: #F2FAF5; }
.buy-res.warn { border-left-color: var(--warn); background: #FFF8EA; } .buy-res.bad { border-left-color: var(--bad); background: #FDF0EC; }
.buy-head { margin: 0 0 6px; font-weight: 800; font-size: 1.05rem; color: var(--espresso); }
.buy-res ul { margin: 0 0 10px; padding-left: 18px; display: grid; gap: 4px; font-size: .9rem; }
.buy-res .btn-row { gap: 8px; }
@media (max-width: 560px) { .td-amt { font-size: 1.9rem; } .td-row input { flex-basis: 100%; } .td-top .btn { width: 100%; } }
/* ---- "Fill my numbers from my bank statement" (dashboard): read on this device, never uploaded ---- */
.stmt-dlg { width: min(640px, calc(100vw - 24px)); }
.stmt-promise { display: flex; gap: 12px; align-items: flex-start; margin: 0 0 14px; padding: 12px 14px; border-radius: 14px; background: #E8F4EC; color: #1E4D33; border: 1px solid #CBE6D4; }
.stmt-promise > .ic { flex: 0 0 26px; width: 26px; height: 26px; color: #1E6B42; margin-top: 2px; }
.stmt-promise b { display: block; margin-bottom: 4px; font-size: .98rem; color: #134A2C; }
.stmt-promise ul { margin: 0 0 6px; padding-left: 18px; display: grid; gap: 3px; font-size: .86rem; line-height: 1.45; }
.stmt-promise small { font-size: .8rem; font-weight: 700; color: #1E6B42; }
.stmt-drop { display: grid; justify-items: center; gap: 4px; padding: 22px 16px; border: 2px dashed #D8C3A0; border-radius: 16px; background: var(--foam); text-align: center; cursor: pointer; transition: border-color .15s, background .15s; }
.stmt-drop:hover, .stmt-drop:focus-within { border-color: var(--espresso); background: #FFF8EA; }
.stmt-drop > .ic { width: 34px; height: 34px; color: var(--espresso); }
.stmt-drop b { font-size: 1.05rem; color: var(--espresso); }
.stmt-drop span { font-size: .84rem; color: var(--ink-soft); }
.stmt-drop.small { grid-template-columns: auto minmax(0, 1fr); justify-items: start; text-align: left; padding: 10px 14px; gap: 0 10px; }
.stmt-drop.small > .ic { grid-row: span 2; width: 24px; height: 24px; align-self: center; }
.stmt-drop.small b { font-size: .92rem; }
.stmt-tips { margin: 10px 0 0; font-size: .86rem; }
.stmt-tips summary { cursor: pointer; font-weight: 700; color: var(--espresso); }
.stmt-tips ul { margin: 6px 0 0; padding-left: 18px; display: grid; gap: 4px; color: var(--ink-soft); line-height: 1.45; }
.stmt-busy { margin: 14px 0 0; }
.stmt-err { margin: 12px 0 0; padding: 10px 12px; border-radius: 12px; background: #FDF0EC; color: var(--bad); font-size: .88rem; font-weight: 600; line-height: 1.45; }
.stmt-files { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 6px; }
.stmt-files span { display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: 999px; background: var(--cream); font-size: .8rem; font-weight: 700; color: var(--espresso); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stmt-files .ic { width: 14px; height: 14px; color: #1E6B42; flex: 0 0 14px; }
.stmt-gone { display: flex; align-items: center; gap: 6px; margin: 0 0 12px; font-size: .82rem; font-weight: 700; color: #1E6B42; }
.stmt-gone .ic { width: 15px; height: 15px; flex: 0 0 15px; }
.stmt-h { margin: 16px 0 8px; font-size: 1rem; color: var(--espresso); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.stmt-h small { font-weight: 600; color: var(--ink-soft); font-size: .82rem; }
.stmt-h .ic { width: 18px; height: 18px; color: #B26B00; }
.stmt-kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.stmt-kpis > div { padding: 10px 12px; border-radius: 12px; background: var(--white); border: 1px solid var(--line); min-width: 0; }
.stmt-kpis small { display: block; font-size: .72rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-soft); }
.stmt-kpis b { display: block; font-size: 1.25rem; color: var(--espresso); font-variant-numeric: tabular-nums; }
.stmt-kpis span { display: block; font-size: .74rem; color: var(--ink-soft); line-height: 1.35; }
.stmt-months { display: flex; align-items: flex-end; gap: 8px; margin: 14px 0 4px; padding: 0 2px; }
.stmt-months > div { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 3px; }
.stmt-months i { width: 100%; max-width: 40px; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, #C79A49, #8B5A3C); }
.stmt-months span { font-size: .72rem; color: var(--ink-soft); }
.stmt-months b { font-size: .7rem; color: var(--espresso); white-space: nowrap; }
.stmt-cats { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.stmt-cats li { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) auto; gap: 10px; align-items: center; font-size: .86rem; }
.stmt-cats li span { color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stmt-cats li i { height: 8px; border-radius: 8px; background: #F0E6D4; overflow: hidden; }
.stmt-cats li em { display: block; height: 100%; border-radius: 8px; background: var(--gold); }
.stmt-cats li.misc em { background: #B9A88E; }
.stmt-cats li b { font-variant-numeric: tabular-nums; color: var(--espresso); }
.stmt-ask { margin-top: 14px; padding: 12px 14px; border-radius: 14px; background: #FFF8EA; border: 1px solid #F0D9A8; }
.stmt-ask .stmt-h { margin-top: 0; }
.stmt-ask > p { margin: 0 0 10px; font-size: .84rem; color: var(--ink-soft); line-height: 1.45; }
.stmt-ask ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.stmt-ask li { display: flex; gap: 8px 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 8px 10px; border-radius: 10px; background: var(--white); border: 1px solid var(--line); }
.stmt-ask li > div { min-width: 0; flex: 1 1 180px; }
.stmt-ask li b { display: block; font-size: .9rem; overflow-wrap: anywhere; }
.stmt-ask li span { font-size: .78rem; color: var(--ink-soft); }
.stmt-ask select { flex: 1 1 200px; max-width: 100%; padding: 8px 10px; border: 2px solid var(--line); border-radius: 10px; background: var(--foam); font: inherit; font-size: .86rem; color: var(--ink); }
.stmt-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.stmt-actions .btn-primary { flex: 1 1 200px; }
.stmt-keep { margin: 10px 0 0; font-size: .78rem; color: var(--ink-soft); line-height: 1.45; }
.stmt-filled { display: flex; gap: 6px; align-items: flex-start; color: #1E6B42 !important; line-height: 1.45; }
.stmt-filled .ic { width: 16px; height: 16px; flex: 0 0 16px; margin-top: 2px; }
/* The spending trend on the Today card */
.td-trend { margin-top: 14px; padding: 12px 14px; border-radius: 14px; background: var(--white); border: 1px solid var(--line); }
.tt-head { display: flex; justify-content: space-between; align-items: baseline; gap: 4px 10px; flex-wrap: wrap; margin-bottom: 4px; }
.tt-head b { color: var(--espresso); font-size: .95rem; }
.td-trend svg { display: block; overflow: visible; }
.tt-bar { fill: #C79A49; }
.tt-inc { fill: #1E6B42; }
.tt-incl { fill: none; stroke: #1E6B42; stroke-width: 1.5; stroke-dasharray: 3 3; opacity: .7; }
.tt-avg { stroke: #8B5A3C; stroke-width: 1; stroke-dasharray: 4 4; opacity: .55; }
.tt-lbl { font-size: 10px; fill: #7A6A58; }
.tt-note { margin: 6px 0 0; font-size: .82rem; color: var(--ink-soft); line-height: 1.45; }
.tt-key { display: inline-flex; align-items: center; gap: 5px; margin-right: 10px; white-space: nowrap; }
.tt-key i { display: inline-block; width: 12px; height: 8px; border-radius: 2px; }
.tt-key .k-bar { background: #C79A49; }
.tt-key .k-inc { width: 8px; height: 8px; border-radius: 50%; background: #1E6B42; }
.tt-key .k-avg { height: 0; border-top: 2px dashed #8B5A3C; border-radius: 0; }
.td-trend-ask { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: .88rem; color: var(--ink-soft); }
.td-trend-ask > .ic { width: 22px; height: 22px; color: var(--espresso); flex: 0 0 22px; }
.td-trend-ask span { flex: 1 1 220px; }
@media (max-width: 520px) { .stmt-kpis b { font-size: 1.1rem; } .stmt-cats li { grid-template-columns: minmax(0, 1fr) 64px auto; } .stmt-promise { padding: 10px 12px; } }

/* ---- Who can see my numbers (dashboard): team access, activity, the lock with their own code ---- */
.privacy-card { margin: 0 0 16px; padding: 14px 16px; border-radius: var(--radius-sm); background: var(--white); border: 1px solid var(--line); border-left: 5px solid #1E6B42; }
.privacy-card[hidden], .lock-gate[hidden] { display: none; }
.privacy-card.pv-shared { border-left-color: var(--gold); }
.privacy-card.pv-locked { border-left-color: var(--espresso); background: linear-gradient(160deg, #FFFDF8, #F6EEE2); }
.pv-top { display: flex; gap: 12px; align-items: flex-start; }
.pv-ico { display: grid; place-items: center; flex: 0 0 38px; height: 38px; border-radius: 12px; background: #E8F4EC; color: #1E6B42; }
.pv-shared .pv-ico { background: #FBF0D9; color: #8A5A00; }
.pv-locked .pv-ico { background: var(--espresso); color: #FFDD00; }
.pv-ico .ic { width: 20px; height: 20px; }
.pv-txt { min-width: 0; }
.pv-txt > b { display: block; color: var(--espresso); font-size: 1rem; }
.pv-txt > span { display: block; font-size: .86rem; color: var(--ink-soft); line-height: 1.45; }
.pv-last { display: flex; align-items: center; gap: 6px; margin: 6px 0 0; font-size: .82rem; font-weight: 700; color: var(--espresso); }
.pv-last .ic { width: 14px; height: 14px; flex: 0 0 14px; }
.pv-more { margin-top: 10px; }
.pv-more summary { cursor: pointer; font-weight: 700; font-size: .88rem; color: var(--espresso); }
.pv-body { padding-top: 10px; }
.pv-body h4 { margin: 14px 0 6px; font-size: .92rem; color: var(--espresso); }
.pv-switch { position: relative; display: flex; gap: 12px; align-items: flex-start; cursor: pointer; padding: 10px 12px; border-radius: 12px; background: var(--foam); border: 1px solid var(--line); }
.pv-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pv-switch i { position: relative; flex: 0 0 44px; height: 26px; border-radius: 26px; background: #CFC3B0; transition: background .2s; margin-top: 2px; }
.pv-switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .2s; }
.pv-switch input:checked + i { background: #1E6B42; }
.pv-switch input:checked + i::after { transform: translateX(18px); }
.pv-switch input:focus-visible + i { outline: 3px solid rgba(199,154,73,.6); outline-offset: 2px; }
.pv-switch input:disabled + i { opacity: .5; }
.pv-switch.off { cursor: default; }
.pv-switch span { min-width: 0; }
.pv-switch span b { display: block; font-size: .92rem; color: var(--espresso); }
.pv-switch small { display: block; font-size: .8rem; color: var(--ink-soft); line-height: 1.45; margin-top: 2px; }
.pv-msg { margin: 6px 0 0; font-size: .84rem; font-weight: 700; color: #1E6B42; }
.pv-msg:empty { display: none; }
.pv-msg.bad { color: var(--bad); }
.pv-list { margin: 0; padding-left: 18px; display: grid; gap: 4px; font-size: .86rem; color: var(--ink-soft); line-height: 1.45; }
.pv-lock { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 12px; }
.pv-lock .btn .ic { width: 16px; height: 16px; }
.pv-acts { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 4px; }
.pv-acts li { display: flex; justify-content: space-between; gap: 4px 10px; flex-wrap: wrap; padding: 6px 10px; border-radius: 10px; background: var(--foam); font-size: .84rem; }
.pv-acts li.team { background: #FFF8EA; border: 1px solid #F0D9A8; }
.pv-acts time { color: var(--ink-soft); white-space: nowrap; font-size: .8rem; }
/* Locked numbers: type your code to open them */
.lock-gate { display: grid; place-items: center; padding: 30px 0 60px; }
.lg-card { width: min(460px, 100%); padding: 26px 24px; border-radius: 22px; background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-lg); text-align: center; }
.lg-ico { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 18px; background: var(--espresso); color: #FFDD00; margin-bottom: 8px; }
.lg-ico .ic { width: 28px; height: 28px; }
.lg-card h2 { margin: 0 0 6px; font-size: 1.4rem; color: var(--espresso); }
.lg-card > p { margin: 0 0 14px; color: var(--ink-soft); line-height: 1.5; }
.lg-f { display: grid; gap: 6px; text-align: left; margin: 0 0 10px; font-weight: 700; font-size: .9rem; color: var(--espresso); }
.lg-f input { padding: 12px 14px; border: 2px solid var(--line); border-radius: 12px; background: var(--foam); font: inherit; font-size: 1rem; color: var(--ink); min-width: 0; }
.lg-f input:focus { outline: none; border-color: var(--espresso); box-shadow: 0 0 0 4px rgba(255, 221, 0, .35); }
.lg-f small { font-weight: 500; font-size: .78rem; color: var(--ink-soft); line-height: 1.4; }
.lg-check { text-align: left; margin: 0 0 10px; font-size: .86rem; }
.lg-err { margin: 0 0 10px; font-size: .86rem; font-weight: 600; color: var(--bad); }
.lg-err:empty { display: none; }
.lg-forgot { margin-top: 12px; }
.lock-form .btn-row { gap: 10px; margin-top: 6px; }
.lock-warn { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 14px; padding: 10px 12px; border-radius: 12px; background: #FFF4E5; border: 1px solid #F3D19C; font-size: .86rem; line-height: 1.45; color: #6B4A00; }
.lock-warn .ic { width: 20px; height: 20px; flex: 0 0 20px; color: #B26B00; margin-top: 1px; }
/* Statements panel when team access is off, or the numbers are locked */
.up-closed { display: flex; gap: 12px; align-items: flex-start; margin: 12px 0; padding: 14px 16px; border-radius: 14px; background: #F2F7F3; border: 1px solid #CBE6D4; }
.up-closed > .ic { width: 24px; height: 24px; flex: 0 0 24px; color: #1E6B42; }
.up-closed p { margin: 0 0 10px; font-size: .9rem; line-height: 1.5; }
.up-closed .btn-row { gap: 8px; }
.adv-closed { margin: 0 0 12px; }
.adv-logged { margin: -4px 0 12px; }
@media (max-width: 520px) { .privacy-card { padding: 12px 14px; } .pv-ico { flex-basis: 32px; height: 32px; } .lg-card { padding: 22px 16px; } }

/* ---- Language & currency button (header): a globe and the language's own name, so it's easy to spot ---- */
.prefs-btn { display: inline-flex; align-items: center; gap: 6px; }
.prefs-btn .ic { width: 16px; height: 16px; flex: 0 0 16px; }
/* Easier reading: on/off switches (header menu and the welcome screen) */
.pref-sec { display: grid; gap: 2px; margin-top: 2px; padding-top: 12px; border-top: 1px solid var(--line); }
.pref-h { font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 2px; }
.tog { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 7px 0; cursor: pointer; }
.tog input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tog-txt { display: grid; min-width: 0; }
.tog-txt b { font-size: .88rem; font-weight: 700; color: var(--espresso); line-height: 1.3; }
.tog-txt small { font-size: .75rem; color: var(--ink-soft); line-height: 1.3; }
.tog-sw { position: relative; flex: 0 0 38px; height: 22px; border-radius: 22px; background: #D6CBB9; transition: background .2s, box-shadow .2s; }
.tog-sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .2s; }
.tog input:checked ~ .tog-sw { background: var(--espresso); }
.tog input:checked ~ .tog-sw::after { transform: translateX(16px); }
.tog input:focus-visible ~ .tog-sw { outline: 3px solid rgba(199,154,73,.55); outline-offset: 2px; }
.tog:hover .tog-sw { box-shadow: 0 0 0 3px rgba(199,154,73,.2); }
.wl-checks .tog { padding: 10px 14px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--foam); }
/* "Read this website in English, हिन्दी, മലയാളം": above the header until they choose */
.lang-strip { background: var(--espresso); color: #FBF3E4; font-size: .86rem; line-height: 1.4; }
.lang-strip .ls-in { position: relative; display: flex; align-items: center; gap: 8px 12px; flex-wrap: wrap; padding-top: 9px; padding-bottom: 9px; padding-right: 48px; }
.ls-t { display: inline-flex; align-items: center; gap: 6px; }
.ls-t .ic { width: 18px; height: 18px; color: #FFDD00; }
.ls-langs { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.ls-langs button { border: 1.5px solid rgba(255,255,255,.5); background: transparent; color: #fff; border-radius: 999px; padding: 4px 13px; font: inherit; font-weight: 700; cursor: pointer; }
.ls-langs button[aria-pressed="true"], .ls-langs button:hover { background: #FFDD00; border-color: #FFDD00; color: var(--espresso); }
.ls-cur { opacity: .85; font-size: .8rem; }
.ls-x { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border: 0; border-radius: 50%; background: rgba(255,255,255,.15); color: #fff; font-size: 1.15rem; line-height: 1; cursor: pointer; }
.ls-x:hover { background: rgba(255,255,255,.28); }
/* Welcome (home page, first visit): language, age, where they live */
.welcome-dlg { width: min(560px, calc(100vw - 24px)); }
.wl-head { display: flex; gap: 14px; align-items: center; margin-bottom: 16px; }
.wl-head img { width: 30px; height: auto; flex: 0 0 30px; }
.wl-head h2 { margin: 0 0 2px; font-size: 1.35rem; color: var(--espresso); }
.wl-head p { margin: 0; font-size: .9rem; color: var(--ink-soft); line-height: 1.45; }
.wl-country { display: grid; gap: 7px; }
.wl-leg { font-weight: 700; font-size: .9rem; color: var(--espresso); }
.wl-country select { font: inherit; padding: 10px 12px; border: 2px solid var(--line); border-radius: 12px; background: var(--foam); color: var(--ink); max-width: 100%; }
.wl-checks { display: grid; gap: 8px; margin: 0 0 16px; }
.wl-skip { display: block; margin: 10px auto 0; }
/* Simple words and bigger text (header menu, or ticked on the welcome screen) */
html.plain #recipe .tag { display: none; }
html.big-text { font-size: 112.5%; }
html.big-text body { font-size: 19px; }
@media (max-width: 520px) { .ls-cur { flex-basis: 100%; } .wl-head h2 { font-size: 1.2rem; } }

/* ---- Home page: "Private and encrypted" under the buttons, the language pill, and "Your numbers stay yours" ---- */
.hero-safe { display: inline-flex; gap: 8px; align-items: flex-start; margin: 12px 0 0; padding: 8px 14px; border-radius: 14px; background: #E8F4EC; border: 1px solid #CBE6D4; color: #1E4D33; font-size: .9rem; line-height: 1.45; max-width: 560px; text-align: left; }
.hero-safe [data-icon] svg { width: 18px; height: 18px; margin-top: 1px; }
.hero-safe a { color: #1E6B42; font-weight: 700; }
.trust-lang { font-family: inherit; cursor: pointer; transition: border-color .15s, background .15s; }
.trust-lang:hover { border-color: var(--espresso); background: #FFF8EA; }
.privacy-band { background: linear-gradient(180deg, #F2F8F4, var(--white)); }
.pv-grid .pv-c h3 { font-size: 1.08rem; }
.pv-grid .pv-c p { font-size: .94rem; }
.pv-lockline { display: flex; gap: 10px; align-items: flex-start; max-width: 780px; margin: 24px auto 0; padding: 14px 18px; border-radius: 16px; background: var(--espresso); color: #FBF3E4; font-size: .95rem; line-height: 1.5; }
.pv-lockline [data-icon] svg { width: 20px; height: 20px; margin-top: 2px; color: #FFDD00; }
.pv-lockline a { color: #FFDD00; font-weight: 700; }
/* Sign-up: the privacy promise above the form */
.signup-safe { display: flex; margin: 0 0 16px; }
/* Long "add it here" links inside a sentence wrap on phones (else the page scrolls sideways) */
.td-foot .edit-link, .stmt-keep .edit-link, .up-safe-list .edit-link { white-space: normal; text-align: left; }
/* Plan cards: list items sit together at the top (they used to stretch apart), and a calm lift on hover */
.menu-card ul { align-content: start; }
.menu-card { transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.menu-card:hover { transform: translateY(-6px); box-shadow: 0 24px 48px -24px rgba(60,36,21,.35); border-color: var(--gold); }
.menu-card.featured:hover { border-color: var(--espresso); }
.nowrap { white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { .menu-card:hover { transform: none; } }
/* Footer language links: visible on every page */
.footer-lang { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; margin: 28px 0 0; padding: 16px 0 0; border-top: 1px solid rgba(255,255,255,.12); font-size: .9rem; color: rgba(251,243,228,.8); }
.footer-lang .ic { width: 18px; height: 18px; color: #E3B85C; }
.footer-lang button { border: 1px solid rgba(255,255,255,.25); background: transparent; color: #FBF3E4; border-radius: 999px; padding: 5px 14px; font: inherit; font-weight: 700; cursor: pointer; }
.footer-lang button:hover, .footer-lang button[aria-pressed="true"] { background: #FBF3E4; color: var(--espresso); border-color: #FBF3E4; }
/* Many months in the statement reader: hide the amounts above the bars (they would collide) */
.stmt-months.many b { display: none; }
.stmt-months.many { gap: 4px; }

/* ---- Header: tightened step by step before the ☰ menu (js/main.js fit) ---- */
.prefs-btn .pb-short { display: none; }
.prefs-short .prefs-btn .pb-long { display: none; }
.prefs-short .prefs-btn .pb-short { display: inline; }
.nav-tight .nav { gap: 12px; }
.nav-tight .nav-links { gap: 0; }
.nav-tight .nav-links > li > a, .nav-tight .nav-links > li > button { padding: 10px 8px; }
.nav-tight .nav-cta { gap: 8px; }
html.big-text .site-header { font-size: 17px; } /* large text everywhere except the menu bar, which must stay on one line */

/* Ghost buttons: on hover the words stay readable */
.btn-ghost:hover { background: #F3E7D3; color: var(--espresso); border-color: var(--espresso); }

/* ---- Home: hero with one main action ---- */
.hero-cta { align-items: center; }
.hero-link { font-weight: 800; color: var(--espresso); text-decoration: none; padding: 10px 4px; border-bottom: 2px solid transparent; }
.hero-link:hover { border-bottom-color: var(--gold); }
.hero-checks { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 8px; max-width: 560px; }
.hero-checks li { position: relative; padding-left: 28px; font-size: .95rem; line-height: 1.45; color: var(--ink-soft); }
.hero-checks li::before { content: ""; position: absolute; left: 0; top: 2px; width: 18px; height: 18px; border-radius: 50%; background: #E8F4EC; box-shadow: inset 0 0 0 1px #CBE6D4; }
.hero-checks li::after { content: ""; position: absolute; left: 6px; top: 6px; width: 5px; height: 8px; border: solid #1E6B42; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.hero-checks b { color: var(--espresso); }
.hero-checks a { color: #1E6B42; font-weight: 700; }
.trust-row.trust-compact { gap: 10px 18px; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); }
.trust-compact .trust-pill { font-size: .84rem; }
a.trust-pill { color: inherit; text-decoration: none; border-bottom: 1px dotted currentColor; }
a.trust-pill:hover { color: var(--espresso); }
@media (max-width: 900px) { .hero-checks { margin-left: auto; margin-right: auto; text-align: left; } }

/* Plan names with a plain tier underneath the coffee name */
.plan-tier { display: inline-block; vertical-align: middle; margin-left: 6px; padding: 2px 9px; border-radius: 999px; background: var(--cream); border: 1px solid var(--line); font-family: inherit; font-size: .72rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-soft); }
.menu-card.featured .plan-tier { background: #FFF6CC; border-color: #F1D45A; color: var(--espresso); }

/* Feedback: a small, quiet tab rather than a second big floating button */
.fb-open { padding: 7px 12px 7px 10px; font-size: .8rem; font-weight: 700; background: var(--white); color: var(--espresso); border: 1px solid var(--line); box-shadow: 0 6px 16px -10px rgba(60,36,21,.5); }
.fb-open .ic { width: 16px; height: 16px; color: #9C7430; }
.fb-open:hover { transform: none; border-color: var(--espresso); }
@media (max-width: 560px) { .fb-open { padding: 9px; } }

/* ---- Update my numbers: everything optional, spending split by category ---- */
.modal-optional { margin: 0 0 14px; padding: 10px 14px; border-radius: 12px; background: #EAF3F7; border: 1px solid #BFD9E4; color: #1F4E66; font-size: .9rem; line-height: 1.45; }
.spend-split { margin: 10px 0 4px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); }
.spend-split > summary { cursor: pointer; padding: 10px 14px; font-weight: 700; font-size: .9rem; color: var(--espresso); }
.spend-split > summary span { font-weight: 600; color: var(--ink-soft); }
.spend-split[open] > summary { border-bottom: 1px solid var(--line); }
.split-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px 14px; padding: 12px 14px 4px; }
.sp-f { display: grid; gap: 4px; font-size: .84rem; font-weight: 700; color: var(--espresso); }
.sp-f > span { display: inline-flex; align-items: center; gap: 6px; }
.sp-f .ic { width: 16px; height: 16px; color: #9C7430; flex: 0 0 16px; }
.sp-f input { width: 100%; box-sizing: border-box; font: inherit; font-weight: 600; padding: 8px 10px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--foam); }
.spend-split #split-sum { margin: 6px 14px 12px; }

/* ---- Statement import: help for password-protected and scanned files ---- */
.stmt-help { margin: 12px 0 0; padding: 12px 14px; border-radius: 12px; background: #FFF8EA; border: 1px solid #F0DDB4; font-size: .88rem; line-height: 1.5; color: var(--ink); }
.stmt-help b { display: block; color: var(--espresso); margin-bottom: 4px; }
.stmt-help ol { margin: 6px 0 0; padding-left: 20px; display: grid; gap: 4px; }
.stmt-help p { margin: 6px 0 0; }

/* ---- Monthly spending chart (HTML bars: crisp at any width, never stretched) ---- */
.tc-chart { margin-top: 8px; }
.tc-area { position: relative; height: 170px; margin-top: 18px; border-bottom: 1px solid var(--line); background: repeating-linear-gradient(to top, transparent 0, transparent 42px, #F3ECE1 42px, #F3ECE1 43px); }
.tc-cols { position: absolute; inset: 0; display: flex; align-items: flex-end; gap: 10px; padding: 0 4px; }
.tc-col { position: relative; flex: 1 1 0; max-width: 72px; height: 100%; margin: 0 auto; }
.tc-bar { position: absolute; left: 14%; right: 14%; bottom: 0; min-height: 2px; border-radius: 6px 6px 0 0; background: linear-gradient(180deg, #D6AE62, #B98838); }
.tc-col:last-child .tc-bar { background: linear-gradient(180deg, #8B5A3C, #5C3A24); }
.tc-val { position: absolute; left: 50%; transform: translate(-50%, -4px); font-size: .72rem; font-weight: 800; color: var(--espresso); white-space: nowrap; }
.tc-inc { position: absolute; left: 4%; right: 4%; height: 0; border-top: 3px solid #1E6B42; border-radius: 2px; }
.tc-avg { position: absolute; left: 0; right: 0; height: 0; border-top: 2px dashed rgba(139,90,60,.55); z-index: 1; pointer-events: none; }
.tc-avg span { position: absolute; right: 0; top: -20px; padding: 1px 6px; border-radius: 6px; background: rgba(255,255,255,.92); font-size: .7rem; font-weight: 700; color: #8B5A3C; }
.tc-labels { display: flex; gap: 10px; padding: 6px 4px 0; }
.tc-labels span { flex: 1 1 0; max-width: 72px; margin: 0 auto; text-align: center; font-size: .74rem; font-weight: 700; color: var(--ink-soft); }
.tc-many .tc-cols, .tc-many .tc-labels { gap: 4px; }
.tc-many .tc-val { display: none; }
.tc-many .tc-col:last-child .tc-val { display: block; }
.tt-key .k-inc { width: 14px; height: 0; border-radius: 0; border-top: 3px solid #1E6B42; background: none; }
.td-trend-ask { padding: 10px 14px; }
.td-trend-ask .tta-txt { flex: 1 1 260px; display: grid; gap: 2px; }
.td-trend-ask .tta-txt b { color: var(--espresso); }

/* ---- Dashboard: set-up questions as one-line rows ---- */
.country-bar:has(> .setup-row) { display: block; padding: 0; background: var(--white); border-color: var(--line); color: var(--ink); }
.country-bar[hidden] { display: none; }
.setup-row > summary { display: flex; align-items: center; gap: 10px; padding: 10px 14px; cursor: pointer; list-style: none; font-size: .9rem; }
.setup-row > summary::-webkit-details-marker { display: none; }
.setup-row > summary > .ic { width: 18px; height: 18px; flex: 0 0 18px; color: #1F4E66; }
.setup-row > summary > span { flex: 1 1 auto; min-width: 0; }
.setup-row > summary b { color: var(--espresso); }
.setup-row > summary .muted { font-size: .84rem; }
.setup-row > summary > em { font-style: normal; font-weight: 800; font-size: .84rem; color: var(--espresso); padding: 5px 12px; border-radius: 999px; border: 1.5px solid var(--espresso); white-space: nowrap; }
.setup-row[open] > summary > em { visibility: hidden; }
.setup-body { display: flex; gap: 10px 16px; align-items: center; flex-wrap: wrap; padding: 4px 14px 14px; border-top: 1px solid var(--line); padding-top: 12px; }
.setup-body label { display: inline-flex; gap: 8px; align-items: center; font-weight: 700; font-size: .88rem; }
.setup-body select { font: inherit; padding: 7px 10px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--white); }
.mobile-bar .setup-body > label:not(.check) { display: block; }
.mobile-bar .setup-body label.check { flex: 1 1 100%; }
@media (max-width: 600px) { .setup-row > summary .muted { display: none; } }

/* Today card: the method note folds away */
.td-how { margin-top: 12px; }
.td-how > summary { cursor: pointer; font-size: .82rem; font-weight: 700; color: var(--ink-soft); }
.td-how .td-foot { margin-top: 6px; }

/* ---- Privacy card: one compact strip, the passcode button in plain sight ---- */
.pv-top { align-items: center; }
.pv-txt { flex: 1 1 auto; }
.pv-cta { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; }
.pv-cta .ic { width: 16px; height: 16px; color: currentColor; }
.pv-body > .pv-last:first-child { margin-top: 10px; }
@media (max-width: 700px) { .pv-top { flex-wrap: wrap; align-items: flex-start; } .pv-cta { margin-left: 50px; } }
.pref-again { display: block; margin: 10px 0 0; font-size: .84rem; font-weight: 700; text-align: left; }

/* ---- Passcode recovery: the reassurance note, the code shown once, the reset screens ---- */
.lock-note { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 14px; padding: 10px 12px; border-radius: 12px; background: #EEF6F1; border: 1px solid #CBE6D4; font-size: .86rem; line-height: 1.45; color: #1E4D33; }
.lock-note .ic { width: 20px; height: 20px; flex: 0 0 20px; color: #1E6B42; margin-top: 1px; }
.rc-code { margin: 4px 0 10px; padding: 16px 12px; border-radius: 14px; border: 2px dashed #C9A15A; background: #FFFBF2; text-align: center; font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 1.15rem; font-weight: 700; letter-spacing: .06em; color: var(--espresso); word-break: break-all; user-select: all; }
.rc-acts { margin: 0 0 10px; }
.lg-tip { margin: 12px 0 0; text-align: left; line-height: 1.45; }
.lg-links { display: flex; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; margin-top: 12px; }
#lg-rc { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; letter-spacing: .04em; text-transform: uppercase; }

/* Header: a language's shorter menu words (js/main.js navLabel), only once the full ones don't fit; the phone menu keeps the full ones */
.nl-s { display: none; }
.nav-short:not(.nav-compact) .nl-l { display: none; }
.nav-short:not(.nav-compact) .nl-s { display: inline; }
.nav-short:not(.nav-compact) .nav-links > li > a, .nav-short:not(.nav-compact) .nav-links > li > button { padding: 10px 6px; font-size: .92em; }
.nav-short:not(.nav-compact) .nav, .nav-short:not(.nav-compact) .nav-cta { gap: 6px; }
/* Home: the mutual fund risk disclosure under the plans */
.risk-note { max-width: 860px; margin: 32px auto 0; padding: 12px 18px; border-radius: 12px; border: 1px solid var(--line); background: var(--white); text-align: center; font-size: .9rem; line-height: 1.5; color: var(--ink-soft); }
.risk-note b { color: var(--espresso); }

/* Today card: "Log a spend" opens the quick logger; the import dialog's privacy details fold away */
.td-log { margin-top: 12px; }
.td-log > summary { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; list-style: none; padding: 7px 14px; border-radius: 999px; border: 1.5px solid var(--espresso); font-weight: 800; font-size: .86rem; color: var(--espresso); }
.td-log > summary::-webkit-details-marker { display: none; }
.td-log > summary::before { content: "+"; font-size: 1.15em; line-height: 1; }
.td-log[open] > summary::before { content: "\2212"; }
.td-log[open] > summary { background: #F3E7D3; }
.td-log .td-add { margin-top: 10px; }
.stmt-why { margin-top: 4px; }
.stmt-why > summary { cursor: pointer; font-size: .82rem; font-weight: 700; opacity: .85; }

/* ---- WhatsApp assistant: the connect row and its code ---- */
.wa-bar .setup-row > summary > svg { width: 18px; height: 18px; flex: 0 0 18px; }
.wa-bar .setup-row > summary > svg path { fill: #1FA855; }
.wa-body { display: block; }
.wa-body > p { margin: 0 0 8px; font-size: .9rem; }
.wa-how { margin: 0 0 8px; padding-left: 18px; display: grid; gap: 4px; font-size: .9rem; }
.wa-code { max-width: 360px; }
/* Footer: Install the app (js/main.js initInstall) */
.foot-install { color: inherit; font: inherit; padding: 0; text-align: left; opacity: .85; }
.foot-install:hover { opacity: 1; text-decoration: underline; }
.foot-install[hidden] { display: none; }

/* ---- Overview extras (js/dashboard-extras.js) ---- */
/* Your financial picture: one line with a progress bar until opened */
.picture { margin: 0 0 16px; }
.picture[hidden], .recap[hidden] { display: none; }
.pic { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--white); }
.pic > summary { display: flex; align-items: center; gap: 12px; padding: 12px 16px; cursor: pointer; list-style: none; }
.pic > summary::-webkit-details-marker { display: none; }
.pic-txt { flex: 1 1 auto; min-width: 0; display: grid; gap: 2px; }
.pic-txt b { color: var(--espresso); font-size: .95rem; }
.pic-txt span { font-size: .84rem; color: var(--ink-soft); }
.pic-bar { flex: 0 0 120px; height: 8px; border-radius: 999px; background: #EFE6D8; overflow: hidden; }
.pic-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #C79A49, #1E6B42); }
.pic > summary > em { font-style: normal; font-weight: 800; font-size: .9rem; color: var(--espresso); min-width: 40px; text-align: right; }
.pic-list { list-style: none; margin: 0; padding: 4px 16px 14px; border-top: 1px solid var(--line); display: grid; gap: 2px; }
.pic-list li { display: flex; align-items: center; gap: 10px; padding: 7px 0; font-size: .9rem; border-bottom: 1px dashed #EFE6D8; }
.pic-list li:last-child { border-bottom: 0; }
.pic-list li > span { flex: 1 1 auto; }
.pic-list .ic { width: 18px; height: 18px; flex: 0 0 18px; color: #B9A88F; }
.pic-list li.done .ic { color: #1E6B42; }
.pic-list li.done > span { color: var(--ink-soft); }
@media (max-width: 560px) { .pic-bar { flex-basis: 64px; } }
/* This month at a glance */
.recap { margin: 0 0 16px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--white); }
.recap-head b { color: var(--espresso); font-size: .98rem; }
.recap-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-top: 10px; }
.rt { display: grid; gap: 2px; padding: 10px 12px; border-radius: 12px; background: var(--cream); }
.rt small { font-size: .78rem; font-weight: 700; color: var(--ink-soft); }
.rt b { font-size: 1.15rem; color: var(--espresso); }
.rt b.up { color: #1E6B42; } .rt b.down { color: #B3412E; }
.rt span { font-size: .78rem; color: var(--ink-soft); line-height: 1.35; }
.recap-subs { margin-top: 10px; }
.recap-subs > summary { cursor: pointer; font-size: .84rem; font-weight: 700; color: var(--espresso); }
.recap-subs ul, .stmt-regular { list-style: none; margin: 8px 0 6px; padding: 0; display: grid; gap: 4px; }
.recap-subs li, .stmt-regular li { display: flex; align-items: center; gap: 10px; justify-content: space-between; font-size: .88rem; padding: 6px 0; border-bottom: 1px dashed #EFE6D8; }
.stmt-regular li small { color: var(--ink-soft); margin-left: auto; }
.recap-subs .chip, .stmt-regular .chip { font-style: normal; font-size: .7rem; margin-left: 6px; }
/* Share my score */
.score-share { margin-top: 12px; text-align: center; }

/* ---- Round 18: two-step login, family, tax filing (js/dashboard-account.js, js/pages/login.js) ---- */
.twostep[hidden], .family-panel[hidden], #taxfile-panel[hidden], .tfa-qr[hidden] { display: none; }
.twostep > p { margin: 0 0 12px; color: var(--ink-soft); }
.tfa-steps { margin: 0 0 10px; padding-left: 20px; display: grid; gap: 4px; font-size: .9rem; }
.tfa-qr { display: block; width: 180px; height: 180px; margin: 6px auto 10px; padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.fam-total { display: grid; gap: 2px; margin: 0 0 14px; padding: 14px 16px; border-radius: 14px; background: linear-gradient(135deg, #3C2415, #5C3A24); color: #FBF3E4; }
.fam-total small { font-weight: 700; opacity: .85; } .fam-total b { font-size: 1.6rem; } .fam-total span { font-size: .84rem; opacity: .85; }
.fam-wrap, .family-panel .table-wrap { overflow-x: auto; }
.fam-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.fam-table th { text-align: left; font-size: .76rem; font-weight: 800; color: var(--ink-soft); padding: 6px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.fam-table td { padding: 9px 8px; border-bottom: 1px dashed #EFE6D8; white-space: nowrap; }
.fam-table td small { display: block; font-size: .74rem; color: var(--ink-soft); }
.fam-table td.muted { white-space: normal; }
.fam-ask { margin: 12px 0; padding: 12px 14px; border-radius: 12px; background: #FFF8EA; border: 1px solid #F0DDB4; }
.fam-ask p { margin: 0 0 8px; font-size: .9rem; }
.fam-ask select, .fam-invite select { font: inherit; padding: 6px 8px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--white); margin-left: 4px; }
.fam-invite { display: flex; gap: 10px 14px; align-items: flex-end; flex-wrap: wrap; margin: 14px 0 8px; }
.fam-invite input { font: inherit; padding: 7px 10px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--foam); width: 150px; text-transform: uppercase; }
.fam-invite #fam-msg { flex: 1 1 100%; margin: 0; }
.tf-status { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin: 10px 0; padding: 10px 12px; border-radius: 12px; background: var(--cream); font-size: .9rem; }
.tf-status .small { display: block; }
.tf-src { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 6px 14px; }
#tf-form .tax-f { display: grid; gap: 4px; margin: 0 0 12px; font-weight: 700; font-size: .88rem; }
#tf-form select, #tf-form input, #tf-form textarea { font: inherit; padding: 8px 10px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--foam); width: 100%; box-sizing: border-box; }
/* Anything marked hidden stays hidden, whatever display its class gives it (buttons, flex rows, images) */
[hidden] { display: none !important; }

/* Privacy card: "Who can see your figures?" as one three-way choice (js/dashboard-privacy.js) */
.pv-seg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 520px; gap: 4px; margin: 12px 0 6px; padding: 4px; border-radius: 14px; background: var(--cream); border: 1px solid var(--line); }
.pv-seg label { position: relative; display: flex; align-items: center; justify-content: center; text-align: center; min-height: 40px; padding: 6px 8px; border-radius: 10px; cursor: pointer; font-weight: 800; font-size: .84rem; color: var(--ink-soft); line-height: 1.25; }
.pv-seg input { position: absolute; opacity: 0; pointer-events: none; }
.pv-seg label.on { background: var(--white); color: var(--espresso); box-shadow: 0 2px 8px -4px rgba(60,36,21,.35); }
.pv-seg label.off { opacity: .45; cursor: not-allowed; }
.pv-seg label:has(input:focus-visible) { outline: 2px solid var(--espresso); outline-offset: 2px; }
.pv-seg-note { margin: 4px 0 0; font-size: .86rem; color: var(--ink-soft); line-height: 1.45; }
@media (max-width: 480px) { .pv-seg label { font-size: .78rem; padding: 6px 4px; } }
.pv-diff { margin: 6px 0 0; font-size: .86rem; }
.pv-diff > summary { cursor: pointer; font-weight: 700; color: var(--espresso); }
.pv-diff ul { margin: 6px 0 0; padding-left: 18px; display: grid; gap: 4px; color: var(--ink-soft); line-height: 1.45; }

/* Settings: one line each, label left, action right */
.set-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); cursor: default; }
label.set-row { cursor: pointer; }
.set-row > span { display: grid; gap: 1px; min-width: 0; }
.set-row b { font-size: .92rem; color: var(--espresso); }
.set-row small { font-size: .8rem; color: var(--ink-soft); }
.set-row .link-btn { white-space: nowrap; font-weight: 800; }
.set-tog { appearance: none; -webkit-appearance: none; flex: 0 0 40px; width: 40px; height: 22px; border-radius: 999px; background: #D9CFC1; position: relative; cursor: pointer; transition: background .2s; margin: 0; }
.set-tog::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: left .2s; box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.set-tog:checked { background: #1E6B42; } .set-tog:checked::after { left: 21px; }
.set-tog:disabled { opacity: .45; cursor: not-allowed; }
.set-tog:focus-visible { outline: 2px solid var(--espresso); outline-offset: 2px; }
/* ===================== Round 20: currencies, statements, budget months, milestones, portfolio, tax centre ===================== */
/* Dashboard currency: from → to, with the rate written the familiar way round */
.cur-bar { display: block; }
.cur-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.cur-head .call-x { position: static; }
.cur-grid { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: flex-end; }
.cur-grid label { display: grid; gap: 4px; font-weight: 700; font-size: .85rem; flex: 1 1 220px; }
.cur-grid select { padding: 8px 10px; border-radius: 10px; border: 1.5px solid #E0C85A; font: inherit; background: #fff; min-width: 0; }
.cur-arrow { font-weight: 800; padding-bottom: 8px; }
.cur-rate { margin: 12px 0 4px; }
.cur-rate label { font-weight: 600; }
.cur-rate input { width: 120px; margin: 0 6px; }
.cur-rate .small { margin: 6px 0 0; }
.cur-bar .btn-row { margin-top: 10px; gap: 10px 16px; align-items: center; }
/* Money held in another currency (the networth picker) and income in other currencies */
.nwp-cur { padding: 6px 4px; border: 1.5px solid var(--line); border-radius: 10px; font: inherit; font-size: .82rem; background: #fff; max-width: 78px; }
.nwp-entry.fx .nwp-amt { border-color: var(--gold); }
.nwp-fxv { flex-basis: 100%; font-size: .78rem; color: var(--ink-soft); }
.nwp-fxv:empty { display: none; }
.nwp-fxhint { font-size: .85rem; color: var(--ink-soft); margin-top: -4px !important; }
.inc-x { margin-top: 8px; display: grid; gap: 6px; }
.ix-row { display: grid; grid-template-columns: minmax(0, 1.4fr) 78px minmax(0, 1fr) auto; gap: 6px; align-items: center; }
.ix-row input, .ix-row select { padding: 8px 10px; border: 1.5px solid var(--line); border-radius: 10px; font: inherit; font-size: .88rem; min-width: 0; background: #fff; }
.ix-row input.bad { border-color: var(--bad); }
.inc-x #ix-add { justify-self: start; font-size: .88rem; }
.inc-x .hint:empty { display: none; }
/* Statement import: the password box, scanned copies, splitting a category */
.stmt-pw { margin: 12px 0; padding: 12px 14px; border-radius: 14px; background: #F6F1E8; border: 1px solid var(--line); display: grid; gap: 8px; }
.stmt-pw p { margin: 0; }
.stmt-pw b .ic { width: 16px; height: 16px; vertical-align: -3px; }
.stmt-pw-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.stmt-pw-row input { flex: 1 1 200px; padding: 9px 12px; border-radius: 10px; border: 1.5px solid var(--line); font: inherit; }
.stmt-pw small { color: var(--ink-soft); line-height: 1.45; }
.stmt-files em { font-style: normal; color: #8A5A00; }
.stmt-cats li { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) auto auto; }
.stmt-cats li.on { background: #FFF8EA; border-radius: 8px; }
.stmt-cats li .chip { font-size: .68rem; padding: 1px 6px; margin-left: 4px; }
.stmt-split-btn { font-size: .78rem; }
.stmt-lump { display: flex; gap: 6px 10px; align-items: flex-start; flex-wrap: wrap; font-size: .86rem; background: #FFF8EA; border: 1px solid #F0D9A8; border-radius: 12px; padding: 8px 12px; margin: 0 0 10px; }
.stmt-lump .ic { width: 16px; height: 16px; color: #8A5A00; flex: 0 0 16px; margin-top: 2px; }
.stmt-split { margin-top: 12px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--gold); background: var(--white); }
.stmt-split .stmt-h { margin-top: 0; }
.stmt-split-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px 12px; margin: 8px 0; }
.stmt-split-grid label { display: grid; gap: 3px; font-size: .8rem; font-weight: 600; color: var(--ink-soft); }
.stmt-split-grid input { padding: 7px 10px; border: 1.5px solid var(--line); border-radius: 10px; font: inherit; }
#stmt-split-left.bad { color: var(--bad); }
/* Spending trend: bars split by category, and one category on its own */
.tc-bar.stack { display: flex; flex-direction: column-reverse; overflow: hidden; background: none; }
.tc-bar.stack span { display: block; width: 100%; flex: 0 0 auto; }
.tt-head { display: flex; gap: 8px 14px; align-items: center; flex-wrap: wrap; }
.tt-head > b { margin-right: auto; }
.tt-pick { font-size: .82rem; font-weight: 600; color: var(--ink-soft); display: inline-flex; gap: 6px; align-items: center; }
.tt-pick select { padding: 4px 8px; border-radius: 8px; border: 1.5px solid var(--line); font: inherit; font-size: .82rem; background: #fff; max-width: 200px; }
.tt-legend { line-height: 1.9; }
/* Budget: compare with a month or a year */
.af-period select { padding: 8px 10px; border: 1.5px solid var(--line); border-radius: 10px; font: inherit; background: #fff; }
.af-period-none { margin: 0; align-self: center; }
.af-period-none .ic, .af-period-note .ic { width: 16px; height: 16px; vertical-align: -3px; }
.af-period-note { background: #EAF3F7; border: 1px solid #BFD9E4; color: #1F4E66; border-radius: 12px; padding: 8px 12px; font-size: .88rem; margin: 10px 0; }
/* Future: milestone markers you can tap */
.jr-chart, .journey { position: relative; }
.jr-pin { cursor: pointer; outline: none; }
.jr-pin:hover circle, .jr-pin:focus-visible circle { stroke-width: 3; fill: #FFF6E3; }
.jr-pop { position: absolute; z-index: 3; width: min(300px, 100%); background: var(--white); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 12px 14px 10px; font-size: .86rem; line-height: 1.45; }
.jr-pop[hidden] { display: none; }
.jr-pop p { margin: 6px 0 8px; color: var(--ink-soft); }
.jr-pop .jr-pop-x { position: absolute; top: 6px; right: 8px; }
.jr-pop > b:first-of-type { padding-right: 26px; display: inline-block; }
.jr-pop .edit-link { margin-right: 10px; }
.jr-tip { width: auto !important; max-width: 220px; }
/* How you compare: a verdict per line, in plain words */
.cmp-intro { margin: 0 0 12px; color: var(--ink-soft); font-size: .9rem; }
.compare-row .ct .chip { font-size: .72rem; }
.cmp-vals { margin: 4px 0 0; font-size: .82rem; color: var(--ink-soft); }
.cmp-how { margin-top: 10px; }
/* Statement review: the safety notes fold away under the upload */
.up-tips-body p { margin: 6px 0; font-size: .88rem; }
.uploads + .up-safe, .upload-form ~ .up-safe { margin-top: 12px; }
/* Portfolio */
.pt-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin-bottom: 12px; }
.pt-tiles > div { background: var(--cream); border-radius: 12px; padding: 10px 12px; display: grid; gap: 2px; }
.pt-tiles small { color: var(--ink-soft); font-weight: 600; font-size: .78rem; }
.pt-tiles b { font-size: 1.15rem; color: var(--espresso); font-variant-numeric: tabular-nums; }
.good { color: var(--good); } .bad { color: var(--bad); }
.pt-tiles b.good { color: var(--good); } .pt-tiles b.bad { color: var(--bad); }
.pt-mix { display: flex; height: 10px; border-radius: 10px; overflow: hidden; gap: 2px; }
.pt-notes { margin: 10px 0; padding-left: 18px; font-size: .88rem; color: var(--ink-soft); display: grid; gap: 4px; }
.pt-table { display: grid; margin-top: 8px; }
.pt-row { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, .9fr) minmax(0, .7fr) auto; gap: 8px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: .86rem; font-variant-numeric: tabular-nums; }
.pt-row > span { display: grid; gap: 1px; min-width: 0; }
.pt-row small { font-size: .74rem; color: var(--ink-soft); }
.pt-row small.good { color: var(--good); } .pt-row small.bad { color: var(--bad); }
.pt-head { font-size: .74rem; font-weight: 800; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .04em; padding-top: 0; }
.pt-name b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pt-act { display: flex !important; gap: 8px; justify-content: flex-end; }
.pt-foot { margin-top: 12px; gap: 10px 16px; align-items: center; }
.pt-src { margin: 8px 0 0; }
.pt-add { margin-top: 14px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--cream); }
.pt-add h4 { margin: 0 0 8px; }
.pt-add-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.pt-add input, .pt-add select { width: 100%; padding: 8px 10px; border: 1.5px solid var(--line); border-radius: 10px; font: inherit; background: #fff; }
.pt-results { list-style: none; margin: 8px 0; padding: 0; display: grid; gap: 4px; max-height: 260px; overflow: auto; }
.pt-results button { width: 100%; text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 7px 10px; cursor: pointer; display: grid; gap: 1px; font: inherit; font-size: .86rem; }
.pt-results button:hover, .pt-results button.on { border-color: var(--gold); background: #FFF8EA; }
.pt-results small { color: var(--ink-soft); }
.pt-picked { margin: 8px 0; font-size: .9rem; }
.pt-picked .ic { width: 16px; height: 16px; color: var(--good); vertical-align: -3px; }
/* Tax centre */
.tc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.tc-grid > div { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; display: grid; gap: 3px; background: var(--white); }
.tc-grid small { color: var(--ink-soft); font-weight: 700; font-size: .78rem; }
.tc-grid b { font-size: 1.15rem; color: var(--espresso); font-variant-numeric: tabular-nums; }
.tc-grid span { font-size: .78rem; color: var(--ink-soft); }
.tc-est { margin: 12px 0 6px; }
.tc-itr { margin-top: 12px; padding: 10px 14px; background: var(--cream); border-radius: 12px; }
.tc-itr p { margin: 0 0 6px; }
.tc-itr ul { margin: 6px 0 0; padding-left: 18px; display: grid; gap: 4px; }
@media (max-width: 640px) {
  .pt-row { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, .9fr) auto; }
  .pt-row > span:nth-child(2), .pt-row > span:nth-child(5) { display: none; }
  .ix-row { grid-template-columns: minmax(0, 1fr) 72px minmax(0, 1fr) auto; }
  .cur-arrow { display: none; }
}
.stmt-split-tag { color: #8A5A00; font-weight: 700; font-size: .74rem; }
@media (max-width: 640px) { .stmt-split-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .stmt-cats li { grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr) auto auto; } }
/* Brew Score: red flags that hold the score down */
.sb-cap { display: flex; gap: 10px; align-items: flex-start; background: #FBEDEA; border: 1px solid #F0C9BF; color: #7A2A1B; border-radius: 12px; padding: 10px 12px; margin-bottom: 12px; font-size: .86rem; }
.sb-cap .ic { width: 18px; height: 18px; flex: 0 0 18px; margin-top: 2px; }
.sb-cap ul { margin: 4px 0; padding-left: 18px; }
.sb-cap small { color: #7A2A1B; opacity: .85; }
.pt-act .danger { margin-left: 10px; font-size: 1.05rem; text-decoration: none; }
/* Team figures on the home page: never wider than the screen (long Malayalam words) */
.team-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 36px; }
.stat-band p { overflow-wrap: anywhere; }
.split > * { min-width: 0; }
@media (max-width: 400px) { .team-stats { grid-template-columns: 1fr; } }
/* Your months (Budget tab) and the month editor */
.mo-table { display: grid; }
.mo-row { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(4, minmax(0, 1fr)) auto; gap: 8px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: .88rem; font-variant-numeric: tabular-nums; }
.mo-head { font-size: .74rem; font-weight: 800; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .04em; }
.mo-name { font-weight: 700; text-align: left; }
.mo-act { display: flex; gap: 12px; justify-content: flex-end; }
.mo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px 14px; margin: 10px 0; }
.mo-grid input, #month-form input[type=month] { width: 100%; padding: 8px 10px; border: 1.5px solid var(--line); border-radius: 10px; font: inherit; }
.mo-grid input.bad { border-color: var(--bad); }
#month-dlg .call-form { max-height: 85vh; overflow: auto; }
@media (max-width: 640px) { .mo-row { grid-template-columns: minmax(0, 1.3fr) repeat(2, minmax(0, 1fr)) auto; } .mo-row > span:nth-child(2), .mo-row > span:nth-child(4) { display: none; } }
/* Statement currency and replacing months */
.stmt-cur { font-weight: 600; white-space: nowrap; }
.stmt-cur select { padding: 2px 4px; border: 1px solid var(--line); border-radius: 6px; font: inherit; font-size: .8rem; }
.stmt-conv { font-size: .84rem; background: #EAF3F7; border: 1px solid #BFD9E4; color: #1F4E66; border-radius: 10px; padding: 6px 10px; }
.stmt-conflict { margin-top: 14px; padding: 12px 14px; border-radius: 14px; background: #FFF8EA; border: 1px solid #F0D9A8; }
.stmt-conflict ul { list-style: none; padding: 0; margin: 8px 0; display: grid; gap: 4px; }
.stmt-conflict .ic { width: 16px; height: 16px; vertical-align: -3px; }
/* Spending chart: figures at a glance, clickable months */
.tt-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; margin: 8px 0 12px; }
.tt-kpis > div { background: var(--cream); border-radius: 10px; padding: 8px 10px; display: grid; gap: 2px; }
.tt-kpis small { color: var(--ink-soft); font-weight: 600; font-size: .74rem; }
.tt-kpis b { font-size: 1.02rem; color: var(--espresso); }
.tt-kpis b.good { color: var(--good); } .tt-kpis b.bad { color: var(--bad); }
.tc-click { cursor: pointer; }
.tc-click:hover .tc-bar { filter: brightness(1.08); outline: 2px solid rgba(199, 154, 73, .5); outline-offset: 1px; }

/* Your months: folded to one line at the bottom of the Budget tab */
.months-panel > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; }
.months-panel > summary::-webkit-details-marker { display: none; }
.months-panel > summary h3 { margin: 0; flex: 1; flex-wrap: wrap; row-gap: 2px; }
.months-panel > summary::after { content: "▾"; display: grid; place-items: center; width: 30px; height: 30px; flex: none; font-size: 1rem; color: #2E6B8F; border: 1px solid #BFD9E4; border-radius: 50%; transition: transform .2s; }
.months-panel[open] > summary::after { transform: rotate(180deg); }
.months-panel[open] > summary { margin-bottom: 12px; }
.months-panel > summary:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; border-radius: 8px; }
/* Statement import: remembered choices and "Review every payee" */
.stmt-ruled { display: flex; gap: 6px; align-items: center; }
.stmt-ruled .ic { width: 16px; height: 16px; color: var(--good); flex: none; }
.stmt-review { margin-top: 14px; border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; background: var(--white); }
.stmt-review > summary { cursor: pointer; font-weight: 800; color: var(--espresso); display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.stmt-review > summary small { font-weight: 600; color: #8A5A00; }
.stmt-review > .hint { margin: 8px 0; }
.stmt-review-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 10px; }
.stmt-review-tabs .chip { cursor: pointer; border: 1px solid var(--line); background: var(--cream); font: inherit; font-size: .8rem; font-weight: 700; padding: 4px 12px; border-radius: 999px; color: var(--ink-soft); }
.stmt-review-tabs .chip.on { background: var(--espresso); border-color: var(--espresso); color: #fff; }
.stmt-review-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; max-height: 420px; overflow-y: auto; }
.stmt-review-list li { display: flex; gap: 6px 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 8px 10px; border-radius: 10px; background: var(--foam, #FBF7F1); border: 1px solid var(--line); }
.stmt-review-list li > div { min-width: 0; flex: 1 1 180px; }
.stmt-review-list li b { display: block; font-size: .88rem; overflow-wrap: anywhere; }
.stmt-review-list li span { font-size: .76rem; color: var(--ink-soft); }
.stmt-review-list li em { font-style: normal; font-weight: 700; color: #2E6B8F; }
.stmt-review-list select { flex: 1 1 190px; max-width: 100%; padding: 7px 10px; border: 2px solid var(--line); border-radius: 10px; background: var(--white); font: inherit; font-size: .84rem; color: var(--ink); }
.stmt-remember { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0 0; font-size: .88rem; font-weight: 700; cursor: pointer; }
.stmt-remember input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--espresso); flex: none; }
.stmt-remember small { display: block; font-weight: 500; color: var(--ink-soft); font-size: .78rem; }
/* My money: net worth now, with the portfolio at today's prices */
.live-strip { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 12px; margin: 0 0 20px; }
.live-strip[hidden] { display: none; }
.ls-main, .ls-port { border-radius: 18px; padding: 16px 18px; display: grid; gap: 4px; align-content: start; min-width: 0; }
.ls-main { background: linear-gradient(135deg, #3C2415, #5A3A26); color: #FAF6EF; box-shadow: 0 10px 28px rgba(60, 36, 21, .18); }
.ls-main small { font-weight: 700; font-size: .78rem; letter-spacing: .04em; text-transform: uppercase; opacity: .8; }
.ls-nw { font-family: "Fraunces", Georgia, serif; font-size: clamp(1.7rem, 4.6vw, 2.3rem); line-height: 1.1; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.ls-nw.bad { color: #FFB4A0; }
.ls-sub { font-size: .86rem; opacity: .9; }
.ls-sub b.good { color: #A8E0A0; } .ls-sub b.bad { color: #FFB4A0; }
.ls-note { font-size: .8rem; opacity: .85; margin-top: 4px; }
.ls-note .link-btn { color: #F3D9A4; text-decoration: underline; font-size: inherit; padding: 0; }
.ls-port { text-align: left; font: inherit; color: var(--ink); background: var(--white); border: 1px solid var(--line); cursor: pointer; transition: border-color .2s, box-shadow .2s; }
.ls-port:hover, .ls-port:focus-visible { border-color: var(--gold); box-shadow: 0 6px 18px rgba(199, 154, 73, .18); outline: none; }
.ls-port small { display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: .78rem; color: var(--ink-soft); letter-spacing: .02em; }
.ls-port b { font-family: "Fraunces", Georgia, serif; font-size: 1.6rem; color: var(--espresso); font-variant-numeric: tabular-nums; }
.ls-port span { font-size: .84rem; color: var(--ink-soft); }
.ls-port em { font-style: normal; font-weight: 700; }
.ls-port em.good { color: var(--good); } .ls-port em.bad { color: var(--bad); }
.ls-empty span { color: #2E6B8F; font-weight: 700; }
.ls-dot { width: 8px; height: 8px; border-radius: 50%; background: #B8B0A4; flex: none; }
.ls-dot.on { background: var(--good); box-shadow: 0 0 0 0 rgba(63, 138, 86, .5); animation: lsPulse 2s infinite; }
@keyframes lsPulse { 0% { box-shadow: 0 0 0 0 rgba(63, 138, 86, .45); } 70% { box-shadow: 0 0 0 7px rgba(63, 138, 86, 0); } 100% { box-shadow: 0 0 0 0 rgba(63, 138, 86, 0); } }
@media (prefers-reduced-motion: reduce) { .ls-dot.on { animation: none; } }
@media (max-width: 640px) { .live-strip { grid-template-columns: 1fr; } }
@media print { .live-strip { display: none; } }
.pt-foot .chip .ic { width: 14px; height: 14px; vertical-align: -2px; }

/* ===== parts: wealth ===== */
/* ---------- Wealth over time, debt-free plan, financial-freedom number, plan comparisons (js/dashboard-wealth.js) ---------- */
.wl-note { margin: 8px 0 0; }
.wl-h4 { margin: 18px 0 8px; font-size: .92rem; font-weight: 800; color: var(--espresso); }
.wl-say { margin: 12px 0 0; font-size: .92rem; line-height: 1.5; }
.wl-big { margin: 10px 0 0; font-size: .9rem; color: var(--ink-soft); }
.wl-big b { color: var(--espresso); }

/* Headline and change chips */
.wl-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px 16px; }
.wl-head small { display: block; color: var(--ink-soft); font-weight: 600; font-size: .8rem; }
.wl-head b { font-size: 1.6rem; line-height: 1.2; color: var(--espresso); font-variant-numeric: tabular-nums; }
.wl-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.wl-chips .chip { white-space: nowrap; font-variant-numeric: tabular-nums; }
.wl-chip-p { font-weight: 600; opacity: .8; }

/* Line charts: shapes stretched to the box, labels and dots in HTML (same size on every screen) */
.wl-plot { position: relative; margin: 22px 0 0; }
.wl-plot svg { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; overflow: visible; }
.wl-grid { stroke: var(--line); stroke-width: 1; }
.wl-grid.zero { stroke: #D9CDB8; }
.wl-line { fill: none; stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.wl-line.dash { stroke-dasharray: 6 5; }
.wl-yl { position: absolute; left: 0; transform: translateY(-100%); padding: 0 6px 1px 0; font-size: .7rem; line-height: 1.3; color: var(--ink-soft);
  background: rgba(255, 255, 255, .85); border-radius: 0 0 4px 0; pointer-events: none; white-space: nowrap; font-variant-numeric: tabular-nums; }
.wl-dot { position: absolute; width: 11px; height: 11px; border-radius: 50%; background: var(--c, var(--gold)); border: 2px solid var(--white);
  box-shadow: 0 0 0 1px var(--c, var(--gold)); transform: translate(-50%, -50%); }
.wl-xl { position: relative; height: 20px; margin-top: 6px; font-size: .72rem; color: var(--ink-soft); overflow: hidden; }
.wl-xl span { position: absolute; top: 0; transform: translateX(-50%); white-space: nowrap; }
.wl-xl span.first { transform: none; }
.wl-xl span.last { transform: translateX(-100%); }

/* Legends */
.wl-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 8px; font-size: .8rem; color: var(--ink-soft); }
.wl-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.wl-legend i.wl-sw-base { background: var(--latte); box-shadow: inset 0 0 0 1px #D9CDB8; }

/* Asset mix: stacked bars, one per month */
.wl-bars { display: flex; align-items: flex-end; gap: 3px; height: 150px; border-bottom: 1px solid var(--line); }
.wl-col { flex: 1 1 0; min-width: 0; height: 100%; display: flex; align-items: flex-end; }
.wl-stack { width: 100%; max-width: 44px; margin: 0 auto; display: flex; flex-direction: column-reverse; border-radius: 4px 4px 0 0; overflow: hidden; min-height: 2px; }
.wl-stack i { display: block; width: 100%; flex: 0 0 auto; }
.wl-bx { display: flex; justify-content: space-between; gap: 8px; margin-top: 6px; font-size: .72rem; color: var(--ink-soft); }

/* Debt-free plan */
.wl-det { margin: 12px 0 0; }
.wl-det > summary { font-weight: 700; font-size: .9rem; color: var(--espresso); text-decoration: underline; text-underline-offset: 3px; }
.wl-loans { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.wl-loans li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-bottom: 8px; border-bottom: 1px dashed var(--line); font-size: .9rem; }
.wl-loans li > b { white-space: nowrap; font-variant-numeric: tabular-nums; }
.wl-loans small { font-size: .78rem; }
.wl-order { margin: 0; padding-left: 22px; display: grid; gap: 8px; font-size: .9rem; }
.wl-order li { padding-left: 2px; }
.wl-order li::marker { font-weight: 800; color: var(--espresso); }
.wl-order li > span:first-child { margin-right: 8px; }
.wl-order .chip { white-space: nowrap; }
.wl-cmp { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 8px; margin: 14px 0 0; }
.wl-cmp > div { display: grid; gap: 2px; align-content: start; padding: 10px 12px; border-radius: 12px; background: var(--cream); border: 2px solid transparent; }
.wl-cmp > div.on { background: var(--foam); border-color: var(--gold); }
.wl-cmp small { color: var(--ink-soft); font-weight: 700; font-size: .78rem; }
.wl-cmp b { font-size: 1.08rem; color: var(--espresso); }
.wl-cmp em { font-style: normal; font-size: .8rem; color: var(--ink-soft); }
.wl-cmp .chip { justify-self: start; margin-top: 4px; }
.wl-years { display: flex; align-items: flex-end; gap: 3px; height: 130px; border-bottom: 1px solid var(--line); }
.wl-yr { flex: 1 1 0; min-width: 0; height: 100%; display: flex; align-items: flex-end; justify-content: center; gap: 1px; }
.wl-yr i { flex: 1 1 0; max-width: 16px; display: block; min-height: 0; border-radius: 2px 2px 0 0; }
.wl-yr i.base { background: var(--latte); box-shadow: inset 0 0 0 1px #D9CDB8; }
.wl-yr i.plan { background: var(--espresso); }

/* Sliders and choices */
.wl-ctls { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px 20px; margin: 16px 0 0; padding: 14px; border-radius: 14px; background: var(--cream); }
.wl-ctl { display: grid; gap: 4px; min-width: 0; font-weight: 700; font-size: .9rem; color: var(--espresso); }
.wl-ctl label { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.wl-ctl output { font-weight: 800; color: #9C7430; white-space: nowrap; font-variant-numeric: tabular-nums; }
.wl-ctl input[type=range] { width: 100%; height: 28px; accent-color: var(--espresso); cursor: pointer; }
.wl-ctl small { font-weight: 500; font-size: .78rem; color: var(--ink-soft); }
.wl-ctls > .wl-note { grid-column: 1 / -1; margin: 0; }
.wl-seg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; padding: 4px; border-radius: 12px; background: var(--white); border: 1px solid var(--line); }
.wl-seg3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.wl-seg button { border: 0; background: none; font: inherit; font-weight: 800; font-size: .82rem; line-height: 1.25; color: var(--ink-soft); padding: 7px 6px; border-radius: 9px; cursor: pointer; min-height: 38px; }
.wl-seg button small { display: block; font-weight: 600; font-size: .72rem; }
.wl-seg button[aria-pressed="true"] { background: var(--espresso); color: var(--white); }
.wl-seg button[aria-pressed="true"] small { color: rgba(255, 255, 255, .85); }
.wl-seg button:focus-visible { outline: 2px solid var(--espresso); outline-offset: 2px; }

/* Financial-freedom number */
.wl-fi-tiles b small { font-size: .78rem; font-weight: 600; color: var(--ink-soft); }
.wl-prog .bar { height: 12px; }
.wl-prog p { margin: 6px 0 0; }
.wl-coast { margin: 10px 0 0; padding: 10px 12px; border-radius: 12px; background: var(--cream); font-size: .9rem; line-height: 1.5; }
.wl-coast.good { background: #E4F4EA; }

/* Compare your plans */
.wl-tw { margin-top: 14px; }
.wl-table { width: 100%; border-collapse: collapse; font-size: .86rem; }
.wl-table th { text-align: left; padding: 6px 8px; font-size: .74rem; font-weight: 700; color: var(--ink-soft); border-bottom: 1px solid var(--line); }
.wl-table td { padding: 9px 8px; vertical-align: top; border-bottom: 1px dashed var(--line); font-variant-numeric: tabular-nums; }
.wl-table .chip { white-space: nowrap; }
.wl-sw { display: inline-block; width: 14px; height: 4px; border-radius: 2px; margin-right: 6px; vertical-align: middle; }
.wl-acts { display: inline-flex; gap: 14px; margin-top: 4px; }
.wl-tpls { display: flex; flex-wrap: wrap; gap: 8px; }
.wl-tpls .btn { padding: 8px 14px; font-size: .86rem; }
p.wl-h4 { margin-bottom: 8px; }
.wl-form { margin-top: 16px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--foam); }
.wl-form .wl-h4 { margin-top: 0; }
.wl-form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px 12px; }
.wl-check { display: flex; gap: 8px; align-items: flex-start; margin-top: 12px; font-size: .88rem; font-weight: 600; color: var(--espresso); }
.wl-check input { margin-top: 4px; accent-color: var(--espresso); }
.wl-err { margin: 8px 0; color: var(--bad); min-height: 0; }
.wl-err:empty { margin: 4px 0; }

/* Phones: the comparison table becomes one card per plan */
@media (max-width: 560px) {
  .wl-head b { font-size: 1.4rem; }
  .wl-scen thead { display: none; }
  .wl-scen tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px 8px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
  .wl-scen td { padding: 0; border: 0; }
  .wl-scen td.wl-tn { grid-column: 1 / -1; }
  .wl-scen td:last-child { grid-column: 1 / -1; }
  .wl-scen td[data-l]::before { content: attr(data-l); display: block; font-size: .7rem; font-weight: 700; color: var(--ink-soft); }
  .wl-ctls { padding: 12px; }
  .wl-seg button { font-size: .78rem; padding: 6px 4px; }
}

/* ===== parts: insights ===== */
/* =========================================================
   Insights (js/dashboard-insights.js): "Your year in review" (#review, Toolkit tab), "Your spending calendar"
   (#heatmap, Budget tab), "Money sent home" (#remit, My money tab), and the printable year page (.rv-doc)
   ========================================================= */

/* ---------- Your year in review ---------- */
.rv-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px 16px; margin-bottom: 14px; }
.rv-pick { min-width: 0; max-width: 100%; }
.rv-pick select { max-width: 100%; min-width: 220px; }
.rv-ask { margin: 0; }
.rv-hero { background: linear-gradient(135deg, #3C2415 0%, #5A3A26 100%); color: #FAF6EF; border-radius: 16px; padding: 18px 20px; margin-bottom: 12px; }
.rv-hero small { display: block; color: #E3C27F; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; font-size: .72rem; }
.rv-big { font-family: var(--font-serif); font-weight: 700; font-size: 1.55rem; line-height: 1.22; margin: 6px 0 4px; color: #fff; }
.rv-hero .rv-sub { margin: 0; color: rgba(250, 246, 239, .82); font-size: .88rem; }
.rv-kpis b.good { color: var(--good); } .rv-kpis b.bad { color: var(--bad); }
.rv-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 12px; }
.rv-card { border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; background: var(--foam); min-width: 0; break-inside: avoid; }
.rv-card.wide { grid-column: 1 / -1; }
.rv-card p { margin: 6px 0 0; }
.rv-eye { display: block; font-size: .72rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 8px; }
.rv-num { display: block; font-family: var(--font-serif); font-weight: 700; font-size: 1.6rem; line-height: 1.2; color: var(--espresso); font-variant-numeric: tabular-nums; }
.rv-num small { font-size: .55em; color: var(--ink-soft); margin-left: 2px; }
.rv-num.good { color: var(--good); } .rv-num.bad { color: var(--bad); }
.rv-card .bar { margin: 6px 0 2px; }
.rv-top { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.rv-top li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 8px; align-items: baseline; font-size: .88rem; }
.rv-top li > .bar, .rv-top li > small { grid-column: 1 / -1; }
.rv-top li > small { color: var(--ink-soft); font-size: .76rem; }
.rv-top-l { display: flex; align-items: center; gap: 6px; min-width: 0; overflow-wrap: anywhere; }
.rv-top-l i { flex: none; width: 10px; height: 10px; border-radius: 3px; }
.rv-mlist { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 6px; font-size: .88rem; }
.rv-mlist li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 8px; }
.rv-mlist li > span { color: var(--ink-soft); }
.rv-mlist li > b { text-align: right; }
.rv-mlist li > small { grid-column: 2; text-align: right; font-size: .78rem; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.rv-mlist li > small.good { color: var(--good); } .rv-mlist li > small.bad { color: var(--bad); }
.rv-strip { display: flex; align-items: flex-end; gap: 3px; height: 54px; border-bottom: 1px solid var(--line); }
.rv-strip i { flex: 1 1 0; min-width: 0; background: #E3D5BF; border-radius: 3px 3px 0 0; }
.rv-strip i.lo { background: var(--good); } .rv-strip i.hi { background: var(--bad); }
.rv-strip-k { display: flex; justify-content: space-between; margin: 4px 0 0 !important; font-size: .72rem; color: var(--ink-soft); }
.rv-goals { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.rv-goals li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 8px; font-size: .88rem; }
.rv-goals li > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rv-goals li > .bar { grid-column: 1 / -1; }
.rv-notes { margin: 0; padding-left: 18px; display: grid; gap: 6px; font-size: .92rem; }
.rv-actions { margin-top: 16px; gap: 10px; }
.rv-msg:empty { display: none; }
.rv-msg { margin-top: 10px; }
.rv-msg p { margin: 0 0 6px; }
.rv-msg .ic { width: 16px; height: 16px; vertical-align: -3px; }
.rv-copy { width: 100%; font: inherit; font-size: .88rem; padding: 8px 10px; border: 1.5px solid var(--line); border-radius: 10px; resize: vertical; }
@media (max-width: 520px) {
  .rv-pick, .rv-pick select { width: 100%; min-width: 0; }
  .rv-big { font-size: 1.3rem; }
  .rv-actions .btn { width: 100%; text-align: center; }
}

/* The printable page (opened in its own window by "Download as PDF") */
.rv-doc-body { background: #fff; }
.rv-doc { max-width: 920px; margin: 0 auto; padding: 28px 20px 40px; }
.rv-doc-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; border-bottom: 3px solid var(--espresso); padding-bottom: 12px; margin-bottom: 16px; }
.rv-doc-head h1 { font-size: 1.7rem; margin: 2px 0 4px; }
.rv-doc-head p { margin: 0; }
.rv-doc-brand { font-family: "DM Serif Display", var(--font-serif); font-size: 1.15rem; color: var(--espresso); margin: 0; }
.rv-doc-h2 { font-size: 1.15rem; margin: 22px 0 8px; }
.rv-table { width: 100%; border-collapse: collapse; font-size: .9rem; font-variant-numeric: tabular-nums; }
.rv-table th, .rv-table td { padding: 7px 8px; border-bottom: 1px solid var(--line); text-align: right; }
.rv-table th:first-child, .rv-table td:first-child { text-align: left; }
.rv-table thead th { font-size: .74rem; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-soft); }
.rv-table tfoot th { border-top: 2px solid var(--espresso); border-bottom: 0; }
.rv-table tr { break-inside: avoid; }
.rv-doc-foot { margin-top: 18px; }
@media print {
  .rv-doc { max-width: none; padding: 0; }
  .rv-doc .rv-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rv-doc .rv-card.wide { grid-column: 1 / -1; }
  .rv-hero, .rv-card { break-inside: avoid; }
}

/* ---------- Your spending calendar ---------- */
.hm-seg { display: inline-flex; gap: 4px; background: var(--cream); padding: 4px; border-radius: 999px; }
.hm-seg button { border: 0; background: none; font: inherit; font-weight: 700; font-size: .84rem; color: var(--ink-soft); padding: 6px 14px; border-radius: 999px; cursor: pointer; white-space: nowrap; }
.hm-seg button[aria-pressed="true"] { background: var(--espresso); color: #fff; box-shadow: 0 2px 8px rgba(60, 36, 21, .25); }
.hm-seg button:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.hm-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin-bottom: 12px; }
.hm-scroll { overflow-x: auto; max-width: 100%; padding-bottom: 2px; -webkit-overflow-scrolling: touch; }
.hm-grid { display: grid; grid-template-columns: 30px repeat(var(--hm-cols, 13), minmax(9px, 24px)); gap: 3px; width: max-content; max-width: 100%; }
.hm-mon { font-size: .68rem; font-weight: 700; color: var(--ink-soft); white-space: nowrap; overflow: visible; line-height: 1.2; height: 14px; }
.hm-wl { font-size: .66rem; font-weight: 600; color: var(--ink-soft); line-height: 1; align-self: center; white-space: nowrap; }
.hm-c { display: block; aspect-ratio: 1; border-radius: 3px; background: var(--cream); box-shadow: inset 0 0 0 1px rgba(60, 36, 21, .06); cursor: pointer; }
.hm-c.hm-fut { visibility: hidden; cursor: default; }
.hm-c.hm-na { background: repeating-linear-gradient(135deg, #F3EDE3 0 2px, #fff 2px 4px); box-shadow: inset 0 0 0 1px #EDE3D3; }
.hm-c.hm-l0 { background: #F1F6EF; box-shadow: inset 0 0 0 1px #DCE9D7; }
.hm-c.hm-l1 { background: #F1E2BF; }
.hm-c.hm-l2 { background: #E3C27F; }
.hm-c.hm-l3 { background: #C79A49; }
.hm-c.hm-l4 { background: #8B5A3C; }
.hm-c.hm-l5 { background: #3C2415; }
.hm-c.hm-today { box-shadow: inset 0 0 0 1.5px var(--espresso); }
.hm-c.hm-l5.hm-today, .hm-c.hm-l4.hm-today { box-shadow: inset 0 0 0 1.5px #E3C27F; }
.hm-c.on { outline: 2px solid var(--gold); outline-offset: 1px; }
.hm-c:not(.hm-fut):hover { outline: 2px solid rgba(199, 154, 73, .6); outline-offset: 1px; }
.hm-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin-top: 10px; font-size: .74rem; color: var(--ink-soft); }
.hm-lg { display: inline-flex; align-items: center; gap: 3px; white-space: nowrap; }
.hm-legend .hm-c { width: 11px; height: 11px; flex: none; cursor: default; }
.hm-legend .hm-c:hover { outline: 0; }
.hm-lg .hm-c:first-of-type { margin-left: 2px; } .hm-lg .hm-c:last-of-type { margin-right: 2px; }
.hm-info { margin: 8px 0 0; min-height: 1.4em; color: var(--espresso); font-weight: 600; }
.hm-kpis > div, .rm-tiles > div, .rv-kpis > div { min-width: 0; align-content: start; }
.hm-wd { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; max-width: 420px; }
.hm-wd-c { display: grid; gap: 4px; justify-items: center; min-width: 0; }
.hm-wd-bar { position: relative; display: block; width: 100%; max-width: 34px; height: 64px; background: var(--cream); border-radius: 6px; overflow: hidden; }
.hm-wd-bar i { position: absolute; left: 0; right: 0; bottom: 0; background: #D9B978; border-radius: 6px 6px 0 0; }
.hm-wd-c.top .hm-wd-bar i { background: var(--espresso); }
.hm-wd-c small { font-size: .72rem; color: var(--ink-soft); font-weight: 600; }
.hm-wd-c.top small { color: var(--espresso); font-weight: 800; }
.hm-notes { margin: 10px 0 0; padding-left: 18px; display: grid; gap: 4px; font-size: .9rem; }
@media (max-width: 520px) {
  .hm-grid { grid-template-columns: 26px repeat(var(--hm-cols, 13), minmax(8px, 22px)); gap: 2px; }
}

/* ---------- Money sent home ---------- */
.rm-hint { margin: 10px 0; }
.rm-tip { margin: 12px 0 0; }
.rm-rate-wrap { display: grid; gap: 10px; margin: 12px 0; }
.rm-rate-card { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: var(--foam); }
.rm-rate-card p { margin: 8px 0 0; font-size: .92rem; }
.rm-rate-card p .small { display: block; margin-top: 2px; }
.rm-rates { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.rm-rates span { display: grid; gap: 1px; }
.rm-rates small { font-size: .74rem; color: var(--ink-soft); font-weight: 600; }
.rm-rates b { color: var(--espresso); font-variant-numeric: tabular-nums; }
.rm-note { margin: 0; }
.rm-chart { display: flex; align-items: stretch; gap: 4px; height: 120px; margin: 4px 0 2px; }
.rm-col { flex: 1 1 0; min-width: 0; display: grid; grid-template-rows: 1fr auto; gap: 4px; }
.rm-bars { display: flex; flex-direction: column; justify-content: flex-end; height: 100%; border-bottom: 1px solid var(--line); }
.rm-b { display: block; width: 70%; max-width: 30px; margin: 0 auto; background: var(--good); }
.rm-bars .rm-b:first-child { border-radius: 4px 4px 0 0; }
.rm-b.est { background: repeating-linear-gradient(135deg, #BFDDB3 0 3px, #E4F4EA 3px 6px); }
.rm-col small { text-align: center; font-size: .64rem; color: var(--ink-soft); white-space: nowrap; overflow: hidden; }
.tt-key .k-got { background: var(--good); }
.tt-key .k-est { background: repeating-linear-gradient(135deg, #BFDDB3 0 2px, #E4F4EA 2px 4px); }
.rm-table { display: grid; }
.rm-row { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.3fr) minmax(0, .9fr) 62px auto; gap: 8px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: .86rem; font-variant-numeric: tabular-nums; }
.rm-row > span { display: grid; gap: 1px; min-width: 0; }
.rm-row small { font-size: .74rem; color: var(--ink-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rm-r { color: var(--ink-soft); font-size: .8rem; }
.rm-row > span:nth-child(4) { justify-items: center; }
.rm-chip { font-style: normal; background: var(--cream); color: var(--espresso); padding: 4px 10px; }
.rm-chip.rm-nre { background: #E4F4EA; color: #1E6B42; }
.rm-chip.rm-nro { background: #FBF1DC; color: #8A5A00; }
.rm-form { margin-top: 14px; }
.rm-form #rm-err:empty, .rm-form #rm-rate:empty { display: none; }
.rm-form #rm-rate, .rm-form #rm-err { margin: 8px 0 0; }
.rm-form .btn-row { margin-top: 10px; }
.rm-form .af-f[hidden] { display: none; }
@media (max-width: 640px) {
  .rm-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) 58px auto; }
  .rm-row > .rm-r { display: none; }
  .rm-chart { gap: 2px; }
}

/* ===== parts: budget-plus ===== */
/* ---------- Budget plus (js/dashboard-budget-plus.js): alerts, bills, cash flow until payday, savings pots ---------- */

/* Alerts strip (Overview): one line each, an action and a dismiss */
.alerts-card { margin: 0 0 16px; }
.alerts-card[hidden] { display: none; }
.bpa-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.bpa { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 10px; border-radius: var(--radius-sm); background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--gold); font-size: .9rem; line-height: 1.4; }
.bpa.bad { border-left-color: var(--bad); background: #FFF8F6; }
.bpa.warn { border-left-color: var(--warn); background: #FFFCF4; }
.bpa-ico { flex: 0 0 28px; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: #F3E7D3; color: var(--espresso); font-style: normal; }
.bpa.bad .bpa-ico { background: #FBE6E1; color: #9E3220; }
.bpa.warn .bpa-ico { background: #FBF1DC; color: #8A5A00; }
.bpa-ico .ic { width: 16px; height: 16px; }
.bpa-txt { flex: 1 1 auto; min-width: 0; color: var(--ink); overflow-wrap: anywhere; }
.bpa-txt b { color: var(--espresso); }
.bpa-go { flex: 0 0 auto; white-space: nowrap; font-size: .82rem; }
.bpa-x { flex: 0 0 auto; border: 0; background: none; color: var(--ink-soft); font-size: 1.25rem; line-height: 1; padding: 4px 8px; cursor: pointer; border-radius: 8px; }
.bpa-x:hover, .bpa-x:focus-visible { background: #F3E7D3; color: var(--espresso); }
.bpa-foot { margin: 6px 2px 0; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .78rem; color: var(--ink-soft); }
.bpa-foot a { font-weight: 700; color: var(--espresso); }
.bpa-foot .bpa-toggle { font-size: .8rem; }
@media (max-width: 560px) { /* phones: the action goes under the text */
  .bpa { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; column-gap: 10px; row-gap: 2px; align-items: start; font-size: .86rem; }
  .bpa-ico { grid-column: 1; grid-row: 1 / span 2; }
  .bpa-txt { grid-column: 2; grid-row: 1; }
  .bpa-go { grid-column: 2; grid-row: 2; justify-self: start; white-space: normal; text-align: left; }
  .bpa-x { grid-column: 3; grid-row: 1; }
}

/* Shared: inline forms, notes, limits */
.bp-form { margin: 0 0 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--foam); }
.bp-form .stmt-h { margin-top: 0; }
.bp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(170px, 100%), 1fr)); gap: 10px 14px; }
.bp-grid [hidden] { display: none; }
.bp-grid .af-f > input, .bp-grid .af-f > select { width: 100%; min-width: 0; box-sizing: border-box; }
.bp-check { margin: 12px 0 0; }
.bp-err { margin: 8px 0 0; font-size: .84rem; font-weight: 600; color: var(--bad); }
.bp-err:empty { display: none; }
.bp-form .btn-row { margin-top: 12px; }
.bp-row { margin-top: 12px; }
.bp-cap { margin: 10px 0 0; font-size: .84rem; color: #8A5A00; background: #FBF1DC; border-radius: 10px; padding: 8px 12px; }
.bp-cap a { font-weight: 700; color: var(--espresso); }
.bp-note { margin: 10px 0 0; }
.bp-empty, .bp-intro { margin-top: 0; }
.bp-intro { font-size: .92rem; color: var(--ink-soft); }

/* Bills and subscriptions */
.bp-kpis { margin-top: 0; }
.bp-saving { display: flex; gap: 8px; align-items: center; margin: 0 0 12px; padding: 10px 14px; border-radius: 12px; background: #E4F4EA; color: #1E6B42; font-size: .9rem; }
.bp-saving .ic { width: 18px; height: 18px; flex: 0 0 18px; }
.bp-bills { list-style: none; margin: 0; padding: 0; display: grid; }
.bp-bill { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, .9fr) minmax(0, 1.1fr) auto; gap: 4px 14px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.bp-bill > div { display: grid; gap: 1px; min-width: 0; }
.bp-bill small { color: var(--ink-soft); font-size: .78rem; font-weight: 600; }
.bp-bill b { color: var(--espresso); overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.bp-bill .chip { font-size: .68rem; padding: 1px 8px; margin-left: 2px; }
.bp-bill.off .bp-bill-name b { color: var(--ink-soft); text-decoration: line-through; text-decoration-color: rgba(60, 36, 21, .35); }
.bp-bill-due.soon b, .bp-bill-due.soon small { color: #8A5A00; }
.bp-bill > .bp-bill-act { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; justify-content: flex-end; }
.bp-keep { display: inline-flex; gap: 5px; align-items: center; font-size: .8rem; font-weight: 700; color: var(--ink-soft); cursor: pointer; white-space: nowrap; }
.bp-keep input { accent-color: var(--espresso); width: 16px; height: 16px; margin: 0; }
@media (max-width: 760px) { /* name and amount on top, due date under the name, actions underneath */
  .bp-bill { grid-template-columns: minmax(0, 1fr) auto; }
  .bp-bill-name { grid-column: 1; grid-row: 1; }
  .bp-bill-amt { grid-column: 2; grid-row: 1 / span 2; text-align: right; align-self: start; }
  .bp-bill > .bp-bill-due { grid-column: 1; grid-row: 2; display: flex; flex-wrap: wrap; gap: 0 6px; align-items: baseline; }
  .bp-bill > .bp-bill-act { grid-column: 1 / -1; grid-row: 3; justify-content: flex-start; margin-top: 2px; }
}
.bp-sugg { margin-top: 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--foam); padding: 0 14px; }
.bp-sugg > summary { display: flex; gap: 8px; align-items: center; padding: 11px 0; cursor: pointer; font-weight: 700; font-size: .9rem; color: var(--espresso); list-style: none; }
.bp-sugg > summary::-webkit-details-marker { display: none; }
.bp-sugg > summary::after { content: "\25BE"; margin-left: auto; color: var(--ink-soft); transition: transform .2s; }
.bp-sugg[open] > summary::after { transform: rotate(180deg); }
.bp-sugg > summary .ic { width: 18px; height: 18px; color: #B26B00; flex: 0 0 18px; }
.bp-sugg-list { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 6px; }
.bp-sugg-list li { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; padding: 8px 10px; border-radius: 10px; background: var(--white); border: 1px solid var(--line); font-size: .88rem; }
.bp-sugg-list li > span { flex: 1 1 150px; min-width: 0; display: grid; }
.bp-sugg-list li > span b { color: var(--espresso); overflow-wrap: anywhere; }
.bp-sugg-list small { color: var(--ink-soft); font-size: .76rem; }
.bp-sugg-list em { font-style: normal; font-weight: 700; color: var(--espresso); white-space: nowrap; }
.bp-sugg-list .btn { padding: 6px 14px; font-size: .84rem; }

/* Cash flow until payday */
.bp-ask { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-size: .92rem; color: var(--ink-soft); }
.bp-ask > .ic { width: 22px; height: 22px; color: var(--espresso); flex: 0 0 22px; }
.bp-ask span { flex: 1 1 220px; }
.bp-bal { display: grid; gap: 6px; margin-bottom: 14px; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--cream); }
.bp-bal-row { display: flex; gap: 8px; flex-wrap: wrap; }
.bp-bal-row input { flex: 1 1 150px; min-width: 0; max-width: 260px; font: inherit; font-weight: 700; padding: 9px 12px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--white); }
.bp-bal-row input:focus { outline: none; border-color: var(--espresso); box-shadow: 0 0 0 4px rgba(255, 221, 0, .35); }
.bp-bal small { font-size: .78rem; color: var(--ink-soft); }
.bp-bal small.bp-stale { color: #8A5A00; font-weight: 700; }
.bp-cf-head { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; font-size: 1.02rem; color: var(--espresso); }
.bp-advice { margin: 6px 0 12px; font-size: .88rem; color: var(--ink-soft); }
.bp-advice.bad { color: #9E3220; }
.bp-seg { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 4px; }
.bp-seg button { font: inherit; font-size: .8rem; font-weight: 700; padding: 5px 12px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--white); color: var(--espresso); cursor: pointer; }
.bp-seg button:hover { border-color: var(--gold); }
.bp-seg button[aria-pressed="true"] { background: var(--espresso); border-color: var(--espresso); color: var(--cream); }
@media (max-width: 480px) { .bp-seg { gap: 4px; } .bp-seg button { padding: 5px 9px; font-size: .76rem; } }
.bp-chart { position: relative; height: 180px; margin: 30px 0 0; touch-action: pan-y; cursor: crosshair; }
.bp-chart svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.bp-chart path, .bp-chart line { vector-effect: non-scaling-stroke; }
.bp-line { fill: none; stroke: var(--espresso); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.bp-line.bad { stroke: var(--bad); }
.bp-area { fill: var(--gold); opacity: .14; }
.bp-zone { fill: var(--bad); opacity: .08; }
.bp-zero { stroke: var(--ink-soft); stroke-width: 1; stroke-dasharray: 4 4; opacity: .55; }
.bp-payline { stroke: var(--gold); stroke-width: 1.5; stroke-dasharray: 3 4; }
.bp-paytag { position: absolute; top: -20px; font-size: .7rem; font-weight: 800; color: #8A6420; white-space: nowrap; transform: translateX(-50%); pointer-events: none; }
.bp-paytag.start { transform: none; }
.bp-paytag.end { transform: translateX(-100%); }
.bp-zerotag { position: absolute; left: 0; transform: translateY(-115%); font-size: .7rem; font-weight: 700; color: var(--ink-soft); pointer-events: none; }
.bp-dot { position: absolute; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--espresso); border: 2px solid var(--white); box-shadow: 0 0 0 1px var(--espresso); pointer-events: none; }
.bp-dot.bad { background: var(--bad); box-shadow: 0 0 0 1px var(--bad); }
.bp-lowtag { --tx: -50%; position: absolute; font-size: .74rem; font-weight: 800; color: var(--espresso); background: var(--white); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; white-space: nowrap; pointer-events: none; transform: translate(var(--tx), 9px); }
.bp-lowtag.above { transform: translate(var(--tx), calc(-100% - 9px)); }
.bp-lowtag.start { --tx: -6px; }
.bp-lowtag.end { --tx: calc(-100% + 6px); }
.bp-lowtag.bad { color: #9E3220; border-color: #F2C9BF; }
.bp-hover { position: absolute; top: 0; bottom: 0; width: 0; border-left: 1px solid var(--espresso); opacity: .35; pointer-events: none; }
.bp-tip { position: absolute; top: 4px; z-index: 2; display: grid; gap: 2px; min-width: 140px; max-width: 220px; padding: 7px 10px; border-radius: 10px; background: var(--espresso); color: var(--cream); font-size: .76rem; line-height: 1.35; pointer-events: none; box-shadow: 0 6px 18px rgba(60, 36, 21, .2); transform: translateX(10px); }
.bp-tip.end { transform: translateX(calc(-100% - 10px)); }
.bp-tip b { color: #fff; }
.bp-tip[hidden], .bp-hover[hidden] { display: none; }
.bp-xlab { display: flex; justify-content: space-between; gap: 8px; margin-top: 6px; font-size: .74rem; font-weight: 600; color: var(--ink-soft); }
.bp-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin: 8px 0 0; }
.bp-key { display: inline-block; width: 14px; height: 10px; border-radius: 3px; margin-left: 8px; }
.bp-key:first-child { margin-left: 0; }
.bp-key.line { height: 3px; background: var(--espresso); }
.bp-key.pay { width: 0; height: 12px; border-left: 2px dashed var(--gold); border-radius: 0; }
.bp-key.zone { background: #FBE6E1; }
.bp-out { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.bp-out li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: .88rem; }
.bp-out span { overflow-wrap: anywhere; color: var(--ink); }
.bp-out small { color: var(--ink-soft); font-size: .78rem; white-space: nowrap; }
.bp-out b { color: var(--espresso); font-variant-numeric: tabular-nums; white-space: nowrap; }
.bp-more { margin-top: 12px; }
.bp-more > summary { cursor: pointer; font-size: .84rem; font-weight: 700; color: var(--ink-soft); }
.bp-more .bp-grid { margin-top: 10px; }
.bp-more p { margin: 6px 0 0; }
.bp-how { margin: 8px 0 0; padding-left: 18px; display: grid; gap: 4px; font-size: .86rem; color: var(--ink-soft); }

/* Savings pots */
.bp-ideas { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 14px; }
.bp-ideas > span { font-size: .84rem; font-weight: 700; color: var(--ink-soft); margin-right: 4px; }
.bp-idea { display: inline-flex; align-items: center; gap: 5px; padding: 6px 11px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--white); font: inherit; font-size: .82rem; font-weight: 700; color: var(--espresso); cursor: pointer; transition: border-color .15s, background .15s; }
.bp-idea .ic { width: 15px; height: 15px; }
.bp-idea:hover { border-color: var(--gold); background: #FFF8EA; }
.bp-pots { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(270px, 100%), 1fr)); gap: 10px; }
.bp-pot { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--white); min-width: 0; }
.bp-ring { position: relative; flex: 0 0 56px; width: 56px; height: 56px; }
.bp-ring svg { width: 56px; height: 56px; display: block; }
.bp-ring-bg { fill: none; stroke: #F0E6D6; stroke-width: 6; }
.bp-ring-fg { fill: none; stroke: var(--good); stroke-width: 6; stroke-linecap: round; }
.bp-ring-fg.warn { stroke: var(--warn); }
.bp-ring-fg.bad { stroke: var(--bad); }
.bp-ring b { position: absolute; inset: 0; display: grid; place-items: center; font-size: .74rem; color: var(--espresso); }
.bp-pot-body { flex: 1; min-width: 0; display: grid; gap: 3px; }
.bp-pot-top { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; justify-content: space-between; }
.bp-pot-top b { color: var(--espresso); overflow-wrap: anywhere; }
.bp-pot-top .chip { font-size: .7rem; padding: 2px 9px; }
.bp-pot-body p { margin: 0; font-size: .86rem; color: var(--ink-soft); }
.bp-pot-body p b { color: var(--espresso); }
.bp-pot-body p.bp-pot-src { font-size: .76rem; }
.bp-pot-act { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 4px; }
.bp-move { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 8px; }
.bp-move input { flex: 1 1 100px; min-width: 0; font: inherit; font-weight: 700; padding: 7px 10px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--white); }
.bp-move input:focus { outline: none; border-color: var(--espresso); }
.bp-move .btn { padding: 6px 12px; font-size: .82rem; }
.bp-move .bp-err { flex-basis: 100%; margin: 0; }
.bp-pot-sum { margin: 12px 0 0; color: var(--ink-soft); }
.bp-pot-sum b { color: var(--espresso); }

/* ===== parts: marketing ===== */
/* =========================================================
   Marketing pages review (2026-10-26): to be merged into css/style.css
   ========================================================= */
/* Sections reached from links (#plans, #privacy…) stop below the sticky header instead of under it */
#privacy, #story, #recipe, #pillars, #team, #plans { scroll-margin-top: 84px; }

/* FAQ: a whole-row tap target of at least 44px on phones */
.faq summary { min-height: 44px; align-items: center; }

/* Plans: the note under Signature Brew's price */
.menu-card .plan-note { margin: 0 0 10px; }

/* Sign-up: the launch offer is in the side panel on computers; phones hide that panel, so the card shows it */
.signup-offer { display: none; margin: 0 0 12px; }
@media (max-width: 900px) { .signup-offer { display: flex; } }

/* Log-in: "Forgotten your password?" is a button now (it used to be a "#" link); give it a comfortable tap area */
.forgot-btn { padding: 10px 0; min-height: 40px; }

/* Tap targets (review): feedback button, footer language buttons, journey slider thumbs */
.fb-open { min-width: 44px; min-height: 44px; }
.footer-lang button { min-height: 40px; }
.jr-save::-webkit-slider-thumb, .jr-ret::-webkit-slider-thumb { width: 24px; height: 24px; }
.jr-save::-moz-range-thumb, .jr-ret::-moz-range-thumb { width: 24px; height: 24px; }
/* Household bills: one-tap chips, this month's payments, history of bills that change, the Overview line */
.bp-chips { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; margin: 12px 0 4px; }
.bp-chips > span { font-size: .82rem; font-weight: 700; color: var(--ink-soft); margin-right: 2px; }
.bp-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--cream); font: inherit; font-size: .84rem; font-weight: 700; color: var(--espresso); cursor: pointer; }
.bp-chip:hover, .bp-chip:focus-visible { border-color: var(--gold); background: #FFF8EA; outline: none; }
.bp-chip .ic { width: 16px; height: 16px; }
.bp-month { margin: 4px 0 12px; padding: 12px 14px; border-radius: 14px; background: var(--cream); display: grid; gap: 6px; }
.bp-month-top { display: flex; flex-wrap: wrap; gap: 4px 12px; justify-content: space-between; align-items: baseline; }
.bp-month-top b { color: var(--espresso); }
.bp-month-top span { font-size: .84rem; color: var(--ink-soft); font-weight: 600; }
.bp-month-bar { display: block; height: 8px; border-radius: 999px; background: rgba(60, 36, 21, .1); overflow: hidden; }
.bp-month-bar em { display: block; height: 100%; border-radius: inherit; background: var(--good); transition: width .4s; }
.bp-late { color: #8A5A00 !important; font-weight: 700; }
.bp-bill > .bp-bill-more { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; }
.bp-pay { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.bp-pay .btn .ic, .bp-pay .chip .ic { width: 14px; height: 14px; vertical-align: -2px; }
.bp-pay.open { align-items: flex-end; }
.bp-pay.open .af-f { margin: 0; min-width: 150px; }
.bp-pay .bp-err { flex-basis: 100%; margin: 0; }
.bp-pay .chip.good { font-size: .76rem !important; padding: 3px 10px !important; }
.bp-hist-wrap { display: flex; align-items: center; gap: 8px; }
.bp-hist { display: flex; align-items: flex-end; gap: 3px; height: 26px; }
.bp-hist i { display: block; width: 8px; border-radius: 3px 3px 0 0; background: var(--gold); opacity: .55; }
.bp-hist i:last-child { opacity: 1; }
.bp-hist-wrap small.bad { color: var(--bad) !important; } .bp-hist-wrap small.good { color: var(--good) !important; }
.bills-mini { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; padding: 12px 16px; border-radius: 16px; background: var(--white); border: 1px solid var(--line); }
.bills-mini[hidden] { display: none; }
.bm-ico { width: 38px; height: 38px; flex: none; border-radius: 12px; display: grid; place-items: center; background: #FFF4DA; color: #8A5A00; }
.bm-ico .ic { width: 20px; height: 20px; }
.bm-txt { flex: 1; min-width: 0; display: grid; gap: 2px; }
.bm-txt b { color: var(--espresso); font-size: .92rem; }
.bm-txt small { color: var(--ink-soft); font-size: .8rem; font-weight: 600; }
@media (max-width: 560px) { .bills-mini { flex-wrap: wrap; } .bills-mini > .btn, .bills-mini > .link-btn { margin-left: 50px; } }
/* Phones: inputs at 16px (iOS zooms into smaller ones), and bigger hit areas for small links and buttons */
@media (max-width: 640px) {
  #board input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), #board select, #board textarea,
  dialog input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), dialog select, dialog textarea { font-size: 16px; }
  #board input[type="checkbox"], dialog input[type="checkbox"] { width: 20px; height: 20px; }
  .link-btn, .bpa-x, .call-x, [data-term], .stmt-split-btn { position: relative; }
  .link-btn::after, .bpa-x::after, .stmt-split-btn::after { content: ""; position: absolute; inset: -10px -4px; }
  .bp-bill-act, .mo-act, .pt-act { gap: 8px 14px !important; }
}

/* ===== parts: dev ===== */
/* =========================================================
   Dashboard usability fixes (phone walkthrough, 2026-10-26). Merge into css/style.css.
   ========================================================= */

/* Account details: one small line under the greeting (Client ID, KYC, PAN) */
.greet-id { margin: 4px 0 0; font-size: .78rem; line-height: 1.45; color: var(--ink-soft); }
.greet-id .signed-in { display: inline; }
.greet-id .client-code { font-size: .78rem; }
#greet-sub { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
#greet-sub .where-chip { font-size: .82rem; }

/* Set-up questions, privacy and settings folded into one row */
.setup-fold { margin: 0 0 16px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.setup-fold > summary { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding: 10px 14px; cursor: pointer; font-size: .88rem; min-height: 44px; }
.setup-fold > summary::-webkit-details-marker { display: none; }
.setup-fold > summary::after { content: "›"; margin-left: auto; font-size: 1.2rem; line-height: 1; transition: transform .2s; color: var(--ink-soft); }
.setup-fold[open] > summary::after { transform: rotate(90deg); }
.setup-fold .sf-todo { color: var(--espresso); background: var(--latte); border-radius: 999px; padding: 2px 10px; }
.setup-fold .sf-priv { display: inline-flex; align-items: center; gap: 4px; color: var(--ink-soft); }
.setup-fold .sf-priv .ic { width: 15px; height: 15px; }
.setup-fold .sf-set { color: var(--ink-soft); text-decoration: underline; text-underline-offset: 3px; }
.setup-fold-body { padding: 0 10px 10px; }
.setup-fold-body > *:last-child { margin-bottom: 0; }

/* The tab bar scrolls sideways on phones: a fade and a chevron at the right edge while there is more */
.dtabs.more-right { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 46px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 46px), transparent); }
.dtabs::after { content: ""; flex: 0 0 0; }
.dtabs.more-right::after { content: "›"; position: sticky; right: 0; flex: 0 0 auto; align-self: center; margin-left: -18px; padding: 0 4px; font-size: 1.4rem; font-weight: 800; line-height: 1; color: var(--espresso); pointer-events: none; z-index: 2; }

/* Motion: once the rise has had time to finish (or the page was hidden), panels sit in place without it */
.dm .dtab.dm-done > *, .dm .dtab.dm-done > :is(.dash-grid, .dash-grid-3, .kpis, .ov-cards) > * { animation: none; opacity: 1; transform: none; }
.dm .dtab.dm-done > .kpis > .hero-kpi { animation: dm-sheen 6.5s ease-in-out 1.6s infinite; }

/* Your months (free plan): a month's breakdown opens under its row */
.mo-break { display: block; padding: 4px 0 12px; border-bottom: 1px solid var(--line); }
.mo-break ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.mo-break li { display: grid; grid-template-columns: 1fr auto 3.2em; gap: 10px; font-size: .88rem; }
.mo-break li small { color: var(--ink-soft); text-align: right; }

/* Freedom number: the line that reconciles it with the retirement plan */
.wl-recon { margin: 10px 0 0; padding: 8px 12px; border-left: 3px solid var(--gold); background: var(--latte); border-radius: 0 8px 8px 0; }

/* Phones: nothing wider than the screen */
@media (max-width: 480px) {
  .greet-id { word-break: break-word; }
  .pv-seg label span { white-space: normal; text-align: center; line-height: 1.25; }
}

/* ===== parts: statements ===== */
/* ===== Import your bank statement: one card per statement (currency, self-check), errors, what will be saved =====
   (js/dashboard-statement.js; to be merged into css/style.css) */
.stmt-filelist { display: grid; gap: 10px; margin: 14px 0 8px; }
.stmt-file { padding: 12px 14px; border-radius: 14px; background: var(--white, #fff); border: 1px solid var(--line, #E8DFD0); display: grid; gap: 8px; min-width: 0; }
.stmt-file.ask { border-color: #E0A43A; box-shadow: 0 0 0 3px rgba(224, 164, 58, .18); }
.stmt-file.warn { border-color: #E3B4A6; }
.sf-top { display: flex; gap: 10px; align-items: flex-start; min-width: 0; }
.sf-top > .ic { flex: 0 0 22px; width: 22px; height: 22px; color: var(--espresso, #3C2415); margin-top: 2px; }
.sf-name { flex: 1 1 auto; min-width: 0; }
.sf-name b { display: block; font-size: .92rem; color: var(--espresso, #3C2415); overflow-wrap: anywhere; }
.sf-name span { display: block; font-size: .8rem; color: var(--ink-soft, #6B5B4E); line-height: 1.4; }
.sf-x { flex: none; font-size: .8rem; }
.sf-cur { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; font-size: .84rem; }
.sf-cur label { font-weight: 700; color: var(--ink, #2A1E16); display: inline-flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.sf-cur select { padding: 5px 8px; border: 1.5px solid var(--line, #E8DFD0); border-radius: 8px; font: inherit; font-size: .86rem; background: var(--white, #fff); }
.sf-cur select.ask { border: 2px solid #D08A1E; background: #FFF6E2; }
.sf-cur small { color: var(--ink-soft, #6B5B4E); font-size: .78rem; }
.sf-ask { flex: 1 1 100%; display: flex; gap: 8px 10px; align-items: center; flex-wrap: wrap; padding: 8px 10px; border-radius: 10px; background: #FFF6E2; border: 1px solid #F0D9A8; color: #6B4200; font-weight: 600; }
.sf-ask > .ic { width: 16px; height: 16px; flex: 0 0 16px; color: #B26B00; }
.sf-ask span { flex: 1 1 200px; min-width: 0; line-height: 1.4; }
.sf-conv { margin: 0; font-size: .82rem; background: #EAF3F7; border: 1px solid #BFD9E4; color: #1F4E66; border-radius: 10px; padding: 6px 10px; line-height: 1.4; }
.sf-check { margin: 0; font-size: .84rem; line-height: 1.45; display: flex; gap: 8px; align-items: flex-start; }
.sf-check .ic { width: 16px; height: 16px; flex: 0 0 16px; margin-top: 2px; }
.sf-check.ok { color: #1E6B42; font-weight: 700; }
.sf-check.none { color: var(--ink-soft, #6B5B4E); font-size: .8rem; }
.sf-check.bad { padding: 8px 10px; border-radius: 10px; background: #FDF0EC; border: 1px solid #F2C9BC; color: #8C2F17; }
.sf-check.bad b { display: block; margin-bottom: 2px; }
.sf-check.bad span { display: block; font-size: .8rem; color: #6E3423; }
.sf-note { margin: 0; font-size: .8rem; color: #8A5A00; display: flex; gap: 6px; align-items: flex-start; }
.sf-note .ic { width: 14px; height: 14px; flex: 0 0 14px; margin-top: 2px; }
.stmt-errs { list-style: none; display: grid; gap: 6px; }
.stmt-errs li { overflow-wrap: anywhere; }
.stmt-errs li b { margin-right: 4px; }
.stmt-save { margin-top: 14px; padding: 10px 14px; border-radius: 12px; background: #F6F1E8; border: 1px solid var(--line, #E8DFD0); }
.stmt-save > b { display: flex; gap: 6px; align-items: center; color: var(--espresso, #3C2415); font-size: .86rem; }
.stmt-save > b .ic { width: 15px; height: 15px; flex: 0 0 15px; }
.stmt-save ul { margin: 6px 0; padding-left: 18px; display: grid; gap: 2px; }
.stmt-save p { margin: 4px 0; }
.stmt-save small { display: block; color: var(--ink-soft, #6B5B4E); }
@media (max-width: 520px) {
  .stmt-file { padding: 10px 12px; }
  .sf-top { gap: 8px; }
  .sf-cur label { width: 100%; justify-content: space-between; }
  .sf-ask .btn { width: 100%; }
}

/* Dashboard currency choice when a statement is in another currency */
.stmt-plan { margin: 0 0 12px; padding: 12px 14px; border-radius: 14px; background: #EAF3F7; border: 1px solid #BFD9E4; color: #1F4E66; display: grid; gap: 6px; font-size: .86rem; line-height: 1.45; }
.stmt-plan.ask { border: 2px solid #D08A1E; background: #FFF6E2; color: #5A3A00; }
.stmt-plan b { font-size: .92rem; }
.stmt-plan .btn-row { display: flex; gap: 8px; flex-wrap: wrap; }
.stmt-plan.done { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; background: #E8F4EC; border-color: #CBE6D4; color: #1E4D33; }
.stmt-plan.done .ic { width: 16px; height: 16px; flex: 0 0 16px; }
/* "Statement added" with Undo, after saving straight from the import window */
.stmt-toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 1000; display: flex; align-items: center; gap: 8px 12px; flex-wrap: wrap;
  max-width: min(560px, calc(100vw - 32px)); padding: 12px 14px; border-radius: 14px; background: var(--espresso, #3C2415); color: #fff; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); font-size: .9rem; }
.stmt-toast > .ic { width: 18px; height: 18px; flex: 0 0 18px; color: #9FE0B5; }
.stmt-toast span { flex: 1 1 180px; min-width: 0; }
.stmt-toast .link-btn { color: #FFDD00; font-weight: 700; }
.stmt-toast .call-x { color: #fff; position: static; }
@media (max-width: 520px) { .stmt-toast { bottom: 12px; left: 16px; right: 16px; transform: none; max-width: none; } }

/* Compact tabs: sections fold to a one-line card with their key figures (js/dashboard-layout.js) */
.dash-grid, .dash-grid-3 { align-items: start; } /* no stretched cards with empty space under a short one */
.panel.pf { position: relative; transition: padding .2s; }
.pf-chev { position: absolute; top: 18px; right: 18px; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: var(--cream); cursor: pointer; display: grid; place-items: center; color: var(--espresso); z-index: 1; }
.pf-chev::before { content: ""; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .2s; }
.pf.pf-closed > .pf-chev::before { transform: translateY(2px) rotate(-135deg); }
.pf-chev:hover, .pf-chev:focus-visible { border-color: var(--gold); outline: none; }
.pf > h3.pf-h { cursor: pointer; padding-right: 44px; }
.pf.pf-closed { padding-top: 18px; padding-bottom: 18px; }
.pf.pf-closed > h3.pf-h { margin-bottom: 0; }
.pf.pf-closed > .pf-body { display: none; }
.pf.pf-closed.pf-print > .pf-body { display: block; }
.pf-peek { display: flex; flex-wrap: wrap; gap: 8px; cursor: pointer; }
.pf-peek:empty { display: none; }
.pf.pf-closed > .pf-peek { margin-top: 10px; }
.pf-chip { display: inline-grid; gap: 1px; padding: 6px 12px; border-radius: 10px; background: var(--cream); min-width: 0; }
.pf-chip small { font-size: .7rem; font-weight: 700; color: var(--ink-soft); letter-spacing: .02em; }
.pf-chip b { font-size: .95rem; color: var(--espresso); font-variant-numeric: tabular-nums; }
.dtab > .panel.pf + .panel.pf, .dtab > .panel.pf-closed { margin-top: 12px !important; }
@media print { .pf > .pf-body { display: block !important; } .pf-chev, .pf-peek { display: none !important; } }
@media (max-width: 640px) { .pf-chev { top: 14px; right: 12px; } .pf.pf-closed { padding: 14px 16px; } .pf-chip { padding: 5px 10px; } }
/* Compact tabs, round 2: arrow down when closed and up when open; the same 14px between every card */
.pf-chev::before { transform: translateY(2px) rotate(-135deg); }
.pf.pf-closed > .pf-chev::before { transform: translateY(-2px) rotate(45deg); }
.dtab > .panel, .dtab > .dash-grid, .dtab > .dash-grid-3, .dtab > .live-strip { margin-top: 14px !important; margin-bottom: 0 !important; }
.dtab > .dash-grid, .dtab > .dash-grid-3 { gap: 14px; }
.months-panel > h3 { margin-bottom: 0; }
.months-panel:not(.pf-closed) > h3 { margin-bottom: 12px; }.pf > h3:has(> .h-ico) { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 12px; row-gap: 2px; align-items: center; }
.pf > h3:has(> .h-ico) > .h-ico { grid-row: span 2; }
.pf > h3:has(> .h-ico) > .small { grid-column: 2; margin-left: 0; text-align: left; font-size: .84rem; line-height: 1.35; }
.pf > .pf-peek { margin-left: 48px; }
@media (max-width: 640px) { .pf > .pf-peek { margin-left: 0; } }/* The tab's name already heads the page (the one-line intro): the repeated band is left out on screen */
.dtab > .tool-band { display: none; }
.dtab > .sig-band { margin: 14px 0 0 !important; }
@media print { .dtab > .tool-band { display: flex; } }
.liab-more { margin-top: 12px; }
/* Import: card bills paid from the bank, without the card's statement */
.stmt-cardhint { display: flex; gap: 12px; margin-top: 14px; padding: 12px 14px; border-radius: 14px; background: #EAF3F7; border: 1px solid #BFD9E4; }
.stmt-cardhint > .ic { width: 22px; height: 22px; flex: none; color: #1F4E66; margin-top: 2px; }
.stmt-cardhint > div { display: grid; gap: 4px; font-size: .86rem; color: #1F4E66; }
.stmt-cardhint .btn { justify-self: start; margin-top: 4px; }
/* Monthly spending in its own section on the Overview: the section title replaces the chart's own */
#trend-panel .tt-head > b:first-child { display: none; }
#trend-panel .td-trend { margin-top: 0; border-top: 0; padding-top: 0; }

/* Import: check your key payments */
.stmt-key { margin-top: 14px; padding: 12px 14px; border-radius: 14px; background: #EEF6EF; border: 1px solid #C5DEC9; }
.stmt-key .stmt-h { margin-top: 0; }
.stmt-key > p { margin: 0 0 10px; font-size: .84rem; color: var(--ink-soft); line-height: 1.45; }
.stmt-key ul { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 8px; }
.stmt-key li { display: flex; gap: 8px 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 8px 10px; border-radius: 10px; background: var(--white); border: 1px solid var(--line); }
.stmt-key li > div { min-width: 0; flex: 1 1 180px; } .stmt-key li b { display: block; font-size: .9rem; overflow-wrap: anywhere; } .stmt-key li span { font-size: .78rem; color: var(--ink-soft); }
.stmt-key select { flex: 1 1 200px; max-width: 100%; padding: 8px 10px; border: 2px solid var(--line); border-radius: 10px; background: var(--foam, #FBF7F1); font: inherit; font-size: .86rem; }

/* ===== parts: trend ===== */
/* Your monthly spending, redrawn: one clear bar a month, red when more went out than came in; tap a month for details */
.tw .tc-area { height: 190px; }
.tw-col { border: 0; background: none; padding: 0; font: inherit; cursor: pointer; border-radius: 8px 8px 0 0; }
.tw-col:hover { background: rgba(199, 154, 73, .08); }
.tw-col:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.tw .tc-bar, .tw .tc-col:last-child .tc-bar { background: linear-gradient(180deg, #C9A06A, #A67C45); }
.tw .tc-bar.over { background: linear-gradient(180deg, #D9826A, #B5562D); }
.tw .tw-col.sel .tc-bar { box-shadow: 0 0 0 2px var(--espresso); }
.tw .tw-col.sel .tc-bar:not(.over) { background: linear-gradient(180deg, #8B5A3C, #5C3A24); }
.tw .tc-labels span.sel { color: var(--espresso); font-weight: 800; }
.tw.tc-many .tc-val, .tw .tc-many .tc-val { display: none; }
.tw .tc-many .tw-col.sel .tc-val { display: block; }
.tt-key .k-spend { background: linear-gradient(180deg, #C9A06A, #A67C45); }
.tt-key .k-over { background: linear-gradient(180deg, #D9826A, #B5562D); }
.tw-detail { margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: var(--cream); }
.tw-dhead { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 12px; margin-bottom: 8px; }
.tw-dhead > b { color: var(--espresso); }
.tw-dhead > span { font-size: .84rem; color: var(--ink-soft); }
.tw-dhead .bad { color: var(--bad); }
.tw-list { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 6px; }
.tw-list li { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.4fr) auto minmax(90px, auto); gap: 4px 10px; align-items: center; font-size: .86rem; }
.tw-name { display: flex; align-items: center; gap: 6px; min-width: 0; overflow-wrap: anywhere; }
.tw-name i { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.tw-bar { height: 10px; border-radius: 999px; background: rgba(60, 36, 21, .08); overflow: hidden; }
.tw-bar em { display: block; height: 100%; border-radius: inherit; }
.tw-list b { font-variant-numeric: tabular-nums; color: var(--espresso); text-align: right; }
.tw-list small { font-size: .74rem; font-weight: 700; color: var(--ink-soft); }
.tw-list small.up { color: var(--bad); } .tw-list small.down { color: var(--good); }
.tw-rest { color: var(--ink-soft); }
@media (max-width: 560px) {
  .tw-list li { grid-template-columns: minmax(0, 1fr) auto; }
  .tw-list .tw-bar { grid-column: 1 / -1; grid-row: 2; }
  .tw-list small { grid-column: 1 / -1; }
}

/* ===== parts: finage ===== */
/* =========================================================
   "Check a specific home or car" (Big buys, js/dashboard-plans.js afCalcHtml: .afc-*)
   and "Your financial age" (Overview tab, js/dashboard-finage.js: .fa-*)
   ========================================================= */

/* ---------- Check a specific home or car ---------- */
.afc { margin-top: 14px; background: var(--white); }
.afc > summary { gap: 8px; }
.afc-switch { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--foam); border: 1px solid var(--line); margin-bottom: 12px; }
.afc-switch button { font: inherit; font-weight: 700; font-size: .85rem; display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border: 0; border-radius: 999px; background: transparent; color: var(--ink-soft); cursor: pointer; }
.afc-switch button[aria-pressed="true"] { background: var(--espresso); color: #fff; }
.afc-switch button:focus-visible { outline: 2px solid #2E6B8F; outline-offset: 2px; }
.afc-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); gap: 12px 14px; margin-bottom: 14px; }
.afc-form .af-f input { width: 100%; box-sizing: border-box; }
.afc-empty { margin: 0; }
.afc-verdict { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 6px 12px; padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--foam); margin-bottom: 12px; }
.afc-verdict p { margin: 0 !important; flex: 1 1 260px; min-width: 0; font-size: .9rem; overflow-wrap: anywhere; }
.afc-verdict.good { background: #F1FAF4; border-color: #BFDDC9; }
.afc-verdict.warn { background: #FFF8E6; border-color: #F0DFA8; }
.afc-verdict.bad { background: #FDF1EE; border-color: #EFC6BC; }
.afc-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 10px; }
.afc-tile { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: var(--white); min-width: 0; }
.afc-tile small { display: block; font-size: .74rem; font-weight: 800; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .04em; }
.afc-tile b { display: block; font-family: var(--font-serif); font-size: 1.3rem; color: var(--espresso); line-height: 1.25; font-variant-numeric: tabular-nums; }
.afc-tile span { display: block; font-size: .78rem; color: var(--ink-soft); margin-top: 2px; }
.afc-meter { position: relative; display: block; height: 6px; border-radius: 999px; background: #EFE6D8; margin: 6px 0 4px; }
.afc-meter b { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 999px; transition: width .2s ease; }
.afc-meter b.good { background: var(--good); } .afc-meter b.warn { background: var(--warn); } .afc-meter b.bad { background: var(--bad); }
.afc-meter u { position: absolute; top: -3px; bottom: -3px; width: 2px; margin-left: -1px; background: var(--espresso); opacity: .55; }
.afc-note { margin: 10px 0 0 !important; }

/* ---------- Your financial age ---------- */
.fa-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-bottom: 14px; }
.fa-num { display: flex; flex-direction: column; padding: 10px 18px; border-radius: 16px; background: var(--foam); border: 1px solid var(--line); }
.fa-num small { font-size: .72rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-soft); }
.fa-num b { font-family: var(--font-serif); font-size: 2.4rem; line-height: 1.05; color: var(--espresso); font-variant-numeric: tabular-nums; }
.fa-num.ahead { background: #F1FAF4; border-color: #BFDDC9; } .fa-num.ahead b { color: var(--good); }
.fa-num.behind { background: #FFF8E6; border-color: #F0DFA8; } .fa-num.behind b { color: #8A5A00; }
.fa-line { margin: 0; flex: 1 1 220px; font-size: 1rem; color: var(--ink); }
.fa-track { margin: 28px 6px 6px; }
.fa-rail { position: relative; height: 8px; border-radius: 999px; background: #EFE6D8; }
.fa-span { position: absolute; top: 0; bottom: 0; border-radius: 999px; }
.fa-span.ahead { background: var(--good); } .fa-span.behind { background: var(--warn); }
.fa-mark { position: absolute; top: 50%; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; border: 3px solid var(--white); box-shadow: 0 0 0 1px var(--line); }
.fa-mark.you { background: var(--ink-soft); }
.fa-mark.money { background: var(--espresso); } .fa-mark.money.ahead { background: var(--good); } .fa-mark.money.behind { background: var(--warn); }
.fa-mark em { position: absolute; left: 50%; transform: translateX(-50%); font-style: normal; font-size: .74rem; font-weight: 800; white-space: nowrap; color: var(--ink-soft); }
.fa-mark.money em { bottom: 18px; color: var(--espresso); }
.fa-mark.you em { top: 18px; }
.fa-ends { display: flex; justify-content: space-between; margin-top: 22px; font-size: .72rem; color: var(--ink-soft); }
.fa-note { margin: 8px 0 0; }
.fa-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 12px; margin-top: 14px; }
.fa-cols h4 { margin: 0 0 8px; font-size: .92rem; display: flex; align-items: center; gap: 6px; color: var(--espresso); }
.fa-moves ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.fa-moves li { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 8px 10px; border-radius: 10px; background: var(--foam); border: 1px solid var(--line); }
.fa-moves li > div { min-width: 0; overflow-wrap: anywhere; }
.fa-moves li b { display: block; font-size: .88rem; }
.fa-moves li small { display: block; font-size: .76rem; color: var(--ink-soft); }
.fa-moves .chip { flex: none; white-space: nowrap; }
.chip.fa-zero { background: #EFE6D8; color: var(--ink-soft); }
.fa-act { border-left: 4px solid var(--gold); background: var(--foam); border-radius: 10px; padding: 10px 14px; }
.fa-act p { margin: 0 0 6px; font-size: .9rem; }
.fa-how { margin-top: 12px; }
.fa-how ol { margin: 0; padding-left: 20px; display: grid; gap: 6px; }

.tw-list .tw-sub { grid-column: 1 / -1; grid-row: 2; font-size: .76rem; color: var(--ink-soft); padding-left: 16px; }
.tw-list li:has(.tw-sub) small { grid-row: 1; }

/* The four headline boxes: every title takes the same two-line space, so the figures sit on one row */
@media (min-width: 701px) {
  .kpis .kpi { display: flex; flex-direction: column; }
  .kpis .kpi .label { min-height: 2.9em; align-items: flex-start; line-height: 1.4; }
  .kpis .kpi .label .term-help, .kpis .kpi .label > i { margin-top: 2px; }
  .kpis .kpi .value { margin-top: 6px; }
}

.stmt-conflict-all { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 4px; }
.stmt-conflict-all .chip { cursor: pointer; border: 1px solid #F0D9A8; background: var(--white); font: inherit; font-size: .82rem; font-weight: 700; padding: 6px 14px; border-radius: 999px; }
.stmt-conflict-all .chip:hover { border-color: var(--gold); }

.stmt-cardlist { margin: 4px 0; padding-left: 18px; display: grid; gap: 2px; }

/* ===== parts: stmt-audit ===== */
/* ===== Statement import audit: per-file reconciliation, lines moved to another month, money sent abroad,
   "Every line accounted for", statements behind a month (js/dashboard-statement.js, js/dashboard-months.js;
   to be merged into css/style.css) ===== */
.sf-recon { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 6px 12px; margin: 0; padding: 8px 10px; border-radius: 10px; background: #F7F2EA; border: 1px solid var(--line, #E8DFD0); }
.sf-recon div { min-width: 0; }
.sf-recon dt { font-size: .74rem; color: var(--ink-soft, #6B5B4E); }
.sf-recon dd { margin: 0; font-weight: 700; font-size: .88rem; color: var(--ink, #2A1E16); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.stmt-moved { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 12px; padding: 10px 12px; border-radius: 12px; background: #EAF3F7; border: 1px solid #BFD9E4; color: #1F4E66; font-size: .86rem; line-height: 1.45; }
.stmt-moved > .ic { flex: 0 0 18px; width: 18px; height: 18px; margin-top: 2px; }
.stmt-moved ul { margin: 4px 0 0; padding-left: 18px; }
.stmt-remit { margin: 0 0 12px; padding: 12px 14px; border-radius: 14px; background: #FFF6E2; border: 2px solid #E0A43A; color: #5A3A00; display: grid; gap: 8px; font-size: .88rem; line-height: 1.45; }
.stmt-remit b { display: flex; gap: 8px; align-items: center; font-size: .95rem; }
.stmt-remit b .ic { width: 18px; height: 18px; flex: 0 0 18px; }
.stmt-remit .btn-row { display: flex; flex-wrap: wrap; gap: 8px; }
.stmt-remit .btn-row .btn { white-space: normal; text-align: left; }
.stmt-remit.done { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; border: 1px solid #CBE6D4; background: #E8F4EC; color: #1E4D33; }
.stmt-remit.done .ic { width: 16px; height: 16px; flex: 0 0 16px; }
.stmt-chq { color: #6B4200; background: #FFF6E2; border-radius: 8px; padding: 6px 8px; }
.stmt-ledger { margin: 14px 0; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line, #E8DFD0); background: var(--white, #fff); }
.stmt-ledger summary { cursor: pointer; font-weight: 700; display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; }
.stmt-ledger summary .ic { width: 16px; height: 16px; }
.stmt-ledger summary small { font-weight: 400; color: var(--ink-soft, #6B5B4E); flex: 1 1 100%; }
.stmt-ledger-list { list-style: none; margin: 10px 0 6px; padding: 0; display: grid; gap: 6px; }
.stmt-ledger-list li { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; font-size: .84rem; padding-bottom: 6px; border-bottom: 1px dashed var(--line, #E8DFD0); }
.stmt-ledger-list li span { min-width: 0; }
.stmt-ledger-list li small { color: var(--ink-soft, #6B5B4E); text-align: right; }
.stmt-ledger-list li b { grid-column: 1 / -1; font-variant-numeric: tabular-nums; font-weight: 600; }
/* (phone width: a category list with long option names made the key payments and review rows wider than the window) */
.stmt-key li, .stmt-ask li, .stmt-review-list li { min-width: 0; }
.stmt-key li > div, .stmt-ask li > div, .stmt-review-list li > div { min-width: 0; max-width: 100%; }
.stmt-key select, .stmt-ask select, .stmt-review-list select { max-width: 100%; min-width: 0; }
.mo-parts {margin: 0 0 12px; padding: 10px 12px; border-radius: 12px; background: #F7F2EA; font-size: .86rem; }
.mo-parts ul { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 6px; }
.mo-parts li { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; }
.mo-parts li > span { flex: 1 1 140px; min-width: 0; }

/* ===== parts: round25 ===== */
/* Monthly spending chart: every bar shows its amount, on a light chip above the bar and the income line */
.tw .tc-val, .tw.tc-many .tc-val, .tw .tc-many .tc-val { display: block; z-index: 2; transform: translate(-50%, -8px); padding: 1px 5px; border-radius: 6px; background: rgba(255, 255, 255, .92); box-shadow: 0 0 0 1px rgba(60, 36, 21, .06); line-height: 1.3; }
.tw .tc-many .tc-val { font-size: .66rem; padding: 0 3px; }
.tw .tw-col.sel .tc-val { font-size: .74rem; color: var(--espresso); }
.tw .tc-area { margin-top: 28px; }
.tw .tc-avg { z-index: 1; }
.tw .tc-avg span { top: auto; bottom: 4px; }
@media (max-width: 560px) { .tw .tc-many .tc-val { font-size: .58rem; padding: 0 2px; } }
/* "Where it went": every row keeps its four places (name, bar, amount, "above usual"), also the row whose breakdown
   ("Other payments … · Bank charges …") sits on a second line; the note never wraps under its amount */
.tw-list li > .tw-name { grid-column: 1; grid-row: 1; }
.tw-list li > .tw-bar, .tw-list li > span:nth-child(2) { grid-column: 2; grid-row: 1; }
.tw-list li > b { grid-column: 3; grid-row: 1; }
.tw-list li > small { grid-column: 4; grid-row: 1; white-space: nowrap; text-align: right; }
.tw-list li > .tw-sub { grid-column: 1 / -1; grid-row: 2; }
@media (max-width: 560px) { .tw-list li > small { white-space: normal; } }
/* After an import: the bank balance it set in net worth */
.stmt-toast .stmt-toast-bal { display: block; margin-top: 4px; font-size: .78rem; line-height: 1.4; opacity: .9; }
/* Rent paid for several months at once: in the import window, and in Your months */
.stmt-rent select { flex: 0 1 180px; }
.rent-adv { margin-top: 14px; padding: 10px 12px; border-radius: 10px; background: var(--cream); font-size: .86rem; }
.rent-adv ul { list-style: none; margin: 6px 0; padding: 0; display: grid; gap: 4px; }
.rent-adv li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 12px; }
.rent-adv small { color: var(--ink-soft); }

/* ===== parts: round26 ===== */
/* Spending calendar, 12 months: the year fits the card's width (small squares), no sideways scrolling on a computer */
.hm-grid[style*="--hm-cols:52"] { width: 100%; grid-template-columns: 30px repeat(52, minmax(6px, 1fr)); gap: 2px; }
.hm-grid[style*="--hm-cols:52"] .hm-c { border-radius: 2px; }
@media (max-width: 700px) { .hm-grid[style*="--hm-cols:52"] { width: max-content; grid-template-columns: 26px repeat(52, 10px); } }
/* Overview: Brew Score, financial age and gaps to fix side by side; financial age shows its headline, the rest folds */
.ov-health { grid-template-columns: 1fr 1fr 1.2fr; }
@media (max-width: 1000px) { .ov-health { grid-template-columns: 1fr; } }
.ov-health .fa-head { flex-direction: column; align-items: flex-start; gap: 6px; }
.fa-more { margin-top: 10px; }
.fa-more .fa-cols { grid-template-columns: 1fr; margin-top: 8px; }

/* ===== parts: round27 ===== */
/* "Where it went": fixed columns, so every bar starts and ends at the same place and amounts line up on the right */
.tw-list li { grid-template-columns: minmax(0, 30%) minmax(60px, 1fr) 110px 200px; }
.tw-list li > b { text-align: right; white-space: nowrap; }
.tw-list li > small { text-align: left; }
.tw-list li > .tw-sub { padding-left: 16px; }
@media (max-width: 760px) {
  .tw-list li { grid-template-columns: minmax(0, 1fr) auto; }
  .tw-list li > .tw-name { grid-column: 1; grid-row: 1; }
  .tw-list li > b { grid-column: 2; grid-row: 1; }
  .tw-list li > .tw-bar, .tw-list li > span:nth-child(2) { grid-column: 1 / -1; grid-row: 2; }
  .tw-list li > small, .tw-list li:has(.tw-sub) > small { grid-column: 1 / -1; grid-row: 3; white-space: normal; } /* (never on the name's line) */
  .tw-list li > .tw-sub { grid-row: 4; }
}
/* Wide screens too: a row with a breakdown keeps its note in its own column, never over the name */
@media (min-width: 761px) { .tw-list li:has(.tw-sub) > small { grid-column: 4; grid-row: 1; } }
/* "Update my numbers": three steps; the third folded */
.form-steps { display: flex; flex-wrap: wrap; gap: 6px 18px; list-style: none; margin: 4px 0 14px; padding: 0; counter-reset: fs; font-size: .82rem; font-weight: 700; color: var(--ink-soft); }
.form-steps li { counter-increment: fs; display: flex; align-items: center; gap: 6px; }
.form-steps li::before { content: counter(fs); display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--espresso); color: #fff; font-size: .72rem; }
.form-steps small { font-weight: 600; }
.fstep-n { display: inline-grid; place-items: center; width: 24px; height: 24px; margin-right: 6px; border-radius: 50%; background: var(--espresso); color: #fff; font-size: .78rem; vertical-align: 2px; }
.stmt-read-slim { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 10px 12px; margin-bottom: 12px; border-radius: 12px; background: var(--cream); }
.stmt-read-slim .hint { margin: 0; flex: 1 1 220px; }
.stmt-read-slim #stmt-out { flex-basis: 100%; }
.stmt-read-slim #stmt-out:empty { display: none; }
.form-more { margin: 16px 0 0; border: 1px solid var(--line); border-radius: 14px; padding: 4px 14px; background: #fff; }
.form-more > summary { cursor: pointer; padding: 10px 0; font-weight: 800; color: var(--espresso); list-style: none; }
.form-more > summary::-webkit-details-marker { display: none; }
.form-more > summary::after { content: "▾"; float: right; color: var(--ink-soft); }
.form-more[open] > summary::after { content: "▴"; }
.form-more > summary small { font-weight: 600; color: var(--ink-soft); }
.form-more fieldset { border: 0; padding: 0; margin: 10px 0 14px; }
/* One currency menu inside each amount box */
.nwp-amt.has-cur { padding-left: 4px; }
.nwp-cur-in { border: 0; background: transparent; padding: 6px 2px; margin-right: 4px; font-weight: 700; color: var(--ink-soft); max-width: 70px; cursor: pointer; }
.nwp-cur-in:focus-visible { outline: 2px solid var(--gold); border-radius: 6px; }
/* Your months: the bank balance at the start and end of each month */
.mo-bal { display: block; font-size: .74rem; color: var(--ink-soft); font-weight: 600; }
.tw-dhead .tw-bal { flex-basis: 100%; text-align: right; font-size: .8rem; }

/* ===== parts: round28 ===== */
/* ===== Minimal dashboard (round 28): the same content, less height. Nothing is removed: things fold or sit side by side. ===== */
/* 1. Header: greeting and buttons in one slim strip; set-up line and banners compact */
.dash-head { margin-bottom: 12px; align-items: center; gap: 10px 16px; }
.dash-head h1 { font-size: clamp(1.35rem, 2.2vw, 1.75rem); }
#greet-sub { display: none; }
.greet-id { font-size: .78rem; margin: 2px 0 0; }
.dash-head .btn-row { gap: 8px; }
.setup-fold { margin-bottom: 10px; }
.setup-fold > summary { min-height: 38px; padding: 6px 12px; font-size: .82rem; }
.cur-bar { margin-bottom: 10px; }
/* 5. The launch offer: a slim ribbon */
.pilot-banner { padding: 7px 12px; margin-bottom: 10px; font-size: .84rem; gap: 8px; }
.pilot-banner .btn { padding: 6px 14px; font-size: .82rem; }
.kpis + .pilot-banner { margin-top: 0; }
/* 2. One line per tab before its sections: the tagline goes (the tab name says it), the section chips stay */
.dtab > .dt-intro, .dtab > .tool-band { display: none; }
.tab-index { margin-bottom: 10px; font-size: .8rem; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.tab-index::-webkit-scrollbar { display: none; }
.tab-index a { padding: 4px 10px; white-space: nowrap; }
@media print { .dtab > .tool-band { display: block; } }
/* 4. Tighter cards and gaps everywhere */
.panel { padding: 18px 20px; }
.dtab > .panel, .dtab > .dash-grid, .dtab > .dash-grid-3, .dtab > .live-strip { margin-top: 12px !important; }
.dash-grid, .dash-grid-3, .dtab > .dash-grid, .dtab > .dash-grid-3 { gap: 12px; }
.panel h3 { font-size: 1.02rem; margin-bottom: 10px; }
/* 3. A folded section: one slim line, title left and its key figures right */
.pf.pf-closed { padding-top: 10px; padding-bottom: 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.pf.pf-closed > h3.pf-h { margin: 0; flex: 1 1 260px; }
.pf.pf-closed > h3.pf-h > .small { display: none; }
.pf.pf-closed > .pf-peek { margin-left: 0; flex: 0 1 auto; }
.pf.pf-closed .pf-chip { padding: 2px 8px; }
.pf.pf-closed > .pf-chev { position: static; width: 30px; height: 30px; order: 3; }
/* 6. The four figures: one compact row */
.kpis { gap: 12px; margin-bottom: 12px; }
.kpi { padding: 14px 16px; }
.kpi .value { font-size: 1.55rem; margin: 4px 0 2px; }
.kpi .sub { font-size: .8rem; }
/* 7. In plain words and alerts, side by side */
.ov-pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 12px; margin-top: 12px; }
.ov-pair > [hidden] { display: none; }
.ov-pair > * { margin: 0 !important; min-width: 0; }
/* 8. The spending chart: its figures in one line above the bars; "Where it went" shows the top 3 */
.tw .tt-kpis { gap: 8px; margin: 6px 0 0; }
.tw .tt-kpis > div { padding: 8px 10px; }
.tw .tc-area { height: 160px; }
.tw-list.tw-folded .tw-more { display: none; }
.tw-all { margin: 0 0 6px; font-size: .84rem; }
.tw-part { margin: 0 0 8px; padding: 6px 10px; border-radius: 8px; background: #FFF6D9; font-size: .82rem; display: flex; gap: 6px; align-items: center; }
.tw-col.part .tc-bar { background: repeating-linear-gradient(135deg, #E3C27F 0 4px, #F1E2BF 4px 8px) !important; }
/* 9. Brew Score, financial age and gaps: about the same height; the rest behind "See more" */
.ov-health > .panel { max-height: none; }
.ov-health .gauge-wrap { transform: scale(.85); transform-origin: top center; margin-bottom: -24px; }
.ov-health #gaps > li:nth-child(n+4) { display: none; }
.ov-health #gaps:not(.gaps-folded) > li { display: list-item; }
.ov-health #gaps:not(.gaps-folded) > li.plan-when { display: block; }
/* 10. One card per tab: one row of small tiles */
.ov-cards { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.ov-card { flex-direction: column; align-items: flex-start; gap: 6px; padding: 10px 10px 10px 12px; }
.ov-card .ov-txt > span { font-size: .74rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ov-card .ov-txt b { font-size: .86rem; line-height: 1.3; }
.ov-card .ov-go { display: none; }
@media (max-width: 1100px) { .ov-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* 11. Safe to spend: a slim bar */
.today { padding: 10px 14px; margin-bottom: 10px; }
.td-top { align-items: center; }
.td-safe { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; }
.td-safe small { font-size: .74rem; }
.td-safe .td-amt { font-size: 1.5rem; }
.td-safe > span { font-size: .84rem; }
.today .td-log, .today .td-how { display: inline-block; margin: 6px 16px 0 0; vertical-align: top; }
.today .td-log[open], .today .td-how[open] { display: block; }
/* 12. Set-up prompts (household bills, salary day): compact single lines */
.bills-mini, #payday-card { padding: 8px 14px !important; margin-bottom: 10px !important; font-size: .86rem; }
/* 13. Budget controls: the slider half width, the family and "compare with" beside it */
.af-controls { display: grid; grid-template-columns: minmax(260px, 1.2fr) auto minmax(200px, 1fr); gap: 10px 20px; align-items: end; }
.af-controls .af-ctl small { font-size: .76rem; }
.af-controls .af-family { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
.af-controls .af-family input[type="number"] { width: 58px; }
@media (max-width: 900px) { .af-controls { grid-template-columns: 1fr; } }
.af-life { padding: 14px 16px !important; }
/* 15. Future: the forecast notes fold */
.fut-more { margin-top: 12px; }
/* 16. My money: the asset mix compact */
.donut-wrap { gap: 14px; }
.list-rows > *:nth-child(n+9) { font-size: .86rem; }
/* 17. Year in review: headline and figures; the story one tap away */
.rv-more { margin-top: 10px; }
/* 18. X-Ray: the seven pillars in one row on a computer */
/* X-Ray pillars: the grade and the name on one line, the diagnosis below; 4 a row on a computer, never overlapping */
.pillars { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.pillar { display: grid; grid-template-columns: 34px minmax(0, 1fr); column-gap: 10px; row-gap: 6px; align-items: center; padding: 12px 14px; min-height: 0; }
.pillar .grade { position: static; grid-column: 1; grid-row: 1; }
.pillar b { grid-column: 2; grid-row: 1; margin: 0; font-size: .95rem; }
.pillar p { grid-column: 1 / -1; grid-row: 2; }
/* 19. Barista: tighter */
#advisor > * + * { margin-top: 8px; }
/* Your months: part months and missing months */
.mo-part { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: #FFF6D9; color: #5A4700; font-size: .7rem; font-weight: 800; }
.mo-gap { margin: 10px 0 0; padding: 8px 12px; border-radius: 10px; background: #FFF6D9; font-size: .84rem; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; }
/* 20. Phone: one column, cards full width, tab cards swipe, bigger tap targets */
@media (max-width: 640px) {
  .panel { padding: 14px; }
  .kpis { grid-template-columns: 1fr 1fr; gap: 8px; }
  .kpi { padding: 10px 12px; }
  .kpi .value { font-size: 1.25rem; }
  .ov-cards { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 4px; }
  .ov-card { flex: 0 0 44%; scroll-snap-align: start; }
  .btn, .link-btn, .chip, .pf-chev, select, input { min-height: 40px; }
  .link-btn { display: inline-flex; align-items: center; }
  .dash-head .btn-row { width: 100%; }
}
/* (header, tighter still: the greeting line set by the page script stays hidden; buttons stay beside the greeting) */
#greet-sub { display: none !important; }
@media (min-width: 900px) { .dash-head { flex-wrap: nowrap; } .dash-head .btn-row { flex-wrap: nowrap; } }
.dash-head .btn-sm { padding: 8px 14px; font-size: .84rem; }

/* ===== parts: round29 ===== */
/* Budget: safe to spend, household bills and the next salary side by side */
.bud-top { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); gap: 12px; align-items: stretch; margin-bottom: 12px; }
.bud-top > [hidden] { display: none !important; }
.bud-top > * { margin: 0 !important; min-width: 0; height: 100%; box-sizing: border-box; }
.bud-top .td-top { flex-direction: column; align-items: flex-start; gap: 8px; }
.bud-top .td-safe { flex-direction: column; align-items: flex-start; gap: 2px; }
.bud-top .bills-mini { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.bud-top .bills-mini .btn { margin-left: 0; }
.bud-top #payday-card { display: block; }
.td-why { font-size: .8rem; color: var(--ink-soft); margin: 6px 0 0; }
@media (max-width: 1000px) { .bud-top { grid-template-columns: 1fr 1fr; } .bud-top > .today { grid-column: 1 / -1; } }
@media (max-width: 640px) { .bud-top { grid-template-columns: 1fr; } }

/* One type scale across the dashboard: body 14.4px, secondary 13px, captions 12px (headings, figures and the
   "3 lines" summary keep their larger sizes) */
#board .panel p, #board .panel li, #board .tw-name, #board .af-name, #board .today span, #board .payday p, #board .bills-mini span { font-size: .9rem; }
#board small, #board .small, #board .hint, #board .kpi .sub, #board .kpi-note, #board .td-pace, #board .td-foot, #board .tw-sub, #board .tw-bal,
#board .tw-dhead > span, #board .af-sub, #board .af-period-note, #board .tt-note, #board .pf-peek small, #board .muted.small { font-size: .8125rem; font-weight: 400; line-height: 1.45; }
#board .af-name small, #board .af-range small, #board .tt-kpis small, #board .pt-tiles small, #board .jr-t3l, #board .hm-mon, #board .pf-chip small { font-size: .75rem; }
#board .tt-kpis small, #board .pt-tiles small, #board .kpi .label, #board .pf-chip small { font-weight: 700; }
#board .summary-panel li, #board .summary-panel span { font-size: 1rem; }
#board .rv-big { font-size: 1.5rem; }
#board .jr-sub, #board .jr-insight { font-size: .95rem; }
#board .td-safe small { font-size: .75rem; font-weight: 800; letter-spacing: .06em; }

/* Pricing: the three cards line up (cup, name, line, tag, price, note), whatever the cup size */
.menu-card .size { height: 64px; display: flex; align-items: flex-end; }
.menu-card h3 { min-height: 2.4em; display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; margin-bottom: 4px; }
.menu-card > p.muted:first-of-type { min-height: 1.6em; }
.menu-card .pilot-tag-blank { background: var(--cream); color: var(--ink-soft); }
.menu-card .price { margin-top: 10px; }
.menu-card .price .per { font-size: 1rem; font-weight: 600; color: var(--ink-soft); }
.menu-card .plan-note { min-height: 1.5em; margin: 4px 0 14px; }

/* Your goals: goal type beside its options (each box its own height), then name · cost · years, then saved · add */
.goal-form { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; }


.goal-form select, .goal-form input { height: 44px; font-size: .9rem; }
.goal-form > .btn { height: 44px; }
@media (max-width: 640px) { .goal-form { grid-template-columns: 1fr; } .goal-form > .goal-pick { grid-column: auto; } }

/* Your goals (rebuilt): one grid of labelled boxes, 3 a row, every box the same height; the degree/place boxes join the
   grid directly, their estimate on its own line below */
.goal-form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 14px; align-items: end; margin-top: 10px; }
.goal-form > .goal-pick { display: contents; }
.goal-form .af-f { display: flex; flex-direction: column; gap: 6px; margin: 0; font-size: .82rem; font-weight: 700; color: var(--ink-soft); min-width: 0; }
.goal-form .af-f > select, .goal-form .af-f > input { width: 100%; height: 44px; box-sizing: border-box; margin: 0; font-size: .9rem; }
.goal-form #g-est { grid-column: 1 / -1; margin: -4px 0 0; }
.goal-form #g-est:empty { display: none; }
.goal-form > .goal-add { height: 44px; width: 100%; }
.goal-form > #g-type, .goal-form > .goal-pick { grid-column: auto; }
@media (max-width: 760px) { .goal-form { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .goal-form { grid-template-columns: 1fr; } }
.goal-form > .goal-add { align-self: end; margin: 0 !important; }

/* Card titles: level with the middle of their icon. The icon spans two lines only when a subtitle shows under the title
   (no subtitle, or a folded card where it is hidden: one line, centred) */
.pf > h3:has(> .h-ico) > .h-ico { grid-row: auto; }
.pf:not(.pf-closed) > h3:has(> .h-ico):has(> .small) > .h-ico { grid-row: span 2; }
.pf > h3:has(> .h-ico) { min-height: 36px; }
.pf.pf-closed > h3.pf-h { display: grid; align-items: center; }
.pf.pf-closed > .pf-chev, .pf > .pf-chev { top: 50%; }
.pf:not(.pf-closed) > .pf-chev { top: 18px; }
/* Barista tab: the two rows of cards line up at the top, equal widths */
.adv-grid { grid-template-columns: 1fr 1fr; align-items: start; }
@media (max-width: 1000px) { .adv-grid { grid-template-columns: 1fr; } }

/* ===== parts: round30 ===== */
/* Today's value of what you own: three totals, then one line per item (name and how it's valued, badge, value) */
.lv-tiles > div > span { display: block; font-size: .75rem; color: var(--ink-soft); }
.lv-list { list-style: none; margin: 12px 0 8px; padding: 0; display: grid; gap: 0; }
.lv-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto 120px; gap: 4px 14px; align-items: center; padding: 9px 0; border-top: 1px solid var(--line); }
.lv-list li:first-child { border-top: 0; }
.lv-name { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.lv-name b { font-size: .9rem; color: var(--espresso); overflow-wrap: anywhere; }
.lv-name small { color: var(--ink-soft); }
.lv-name em { font-style: normal; color: #8A5A00; }
.lv-v { text-align: right; white-space: nowrap; }
.lv-foot { margin: 6px 0 8px; }
@media (max-width: 560px) { .lv-list li { grid-template-columns: minmax(0, 1fr) auto; } .lv-list li > .chip { grid-row: 2; grid-column: 1; justify-self: start; } .lv-list li > .lv-v { grid-row: 1; grid-column: 2; } }
/* CAS import (portfolio panel) */
.cas-box { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-top: 14px; padding: 12px 14px; border: 1px dashed var(--line); border-radius: 12px; background: var(--cream); }
.cas-box > small { flex: 1 1 260px; color: var(--ink-soft); }
.cas-box.cas-pw, .cas-box.cas-review { flex-direction: column; align-items: stretch; }
.cas-pw .pt-add-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.cas-pw input[type="password"] { flex: 1 1 200px; height: 40px; border: 2px solid var(--line); border-radius: 10px; padding: 0 10px; font: inherit; }
.cas-list { list-style: none; margin: 6px 0; padding: 0; display: grid; gap: 6px; max-height: 380px; overflow: auto; }
.cas-list label { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.cas-list label > span { display: flex; flex-direction: column; min-width: 0; }
.cas-list small { color: var(--ink-soft); }
.cas-list input { margin-top: 3px; }

/* ===== parts: round31 ===== */
/* "Update my numbers": the questions that value an item, shown first; funds and shares offer live tracking */
.nwp-ask { margin: 10px 0 4px; padding: 10px 12px; border-radius: 10px; background: #FFFDF8; border: 1px solid #EEDFC4; }
.nwp-live { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 4px; margin: 6px 0 2px; padding: 10px 12px; border-radius: 10px; background: #F1F6EF; border: 1px solid #DCE9D7; font-size: .84rem; }
.nwp-live b { color: #1E6B42; }
.nwp-live span { color: var(--ink-soft); }
.nwp-live .btn-row { margin-top: 4px; gap: 8px; }
.nwp-live label.btn { cursor: pointer; }
p.nwp-live.ok { flex-direction: row; align-items: center; color: #1E6B42; font-weight: 600; }

/* ===== parts: round32 ===== */
/* An entry's top line: name · currency · amount · remove (the currency menu made it four parts: the amount keeps its width) */
.nwp-ehead { grid-template-columns: minmax(0, 1fr) 84px minmax(150px, 190px) 32px; }
.nwp-ehead > .nwp-ename { grid-column: 1; grid-row: 1; }
.nwp-ehead > .nwp-cur { grid-column: 2; grid-row: 1; }
.nwp-ehead > .nwp-amt { grid-column: 3; grid-row: 1; min-width: 0; }
.nwp-ehead > .nwp-amt input { min-width: 0; width: 100%; }
.nwp-ehead > .nwp-x { grid-column: 4; grid-row: 1; }
.nwp-ehead > .nwp-preview, .nwp-ehead > .nwp-fxv { grid-column: 2 / 5; }
@media (max-width: 560px) {
  .nwp-ehead { grid-template-columns: 84px minmax(0, 1fr) 32px; }
  .nwp-ehead > .nwp-ename { grid-column: 1 / 3; grid-row: 1; }
  .nwp-ehead > .nwp-x { grid-column: 3; grid-row: 1; }
  .nwp-ehead > .nwp-cur { grid-column: 1; grid-row: 2; }
  .nwp-ehead > .nwp-amt { grid-column: 2 / 4; grid-row: 2; }
  .nwp-ehead > .nwp-preview, .nwp-ehead > .nwp-fxv { grid-column: 1 / -1; }
}

/* Financial age beside the Brew Score: the sentence sits under the number at its own height (no 220px gap), the bar follows */
.ov-health .fa-line { flex: none; }
.ov-health .fa-track { margin-top: 18px; }

/* Overview health row: each title on one line, its subtitle under it (no three-line titles) */
.ov-health .panel > h3 { flex-wrap: wrap; row-gap: 2px; }
.ov-health .panel > h3 > .small { flex-basis: 100%; margin-left: 46px; text-align: left; font-size: .8rem; }

/* ---------- Round 33: markets today, dreams, community ---------- */
.mkt-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.mkt-head h3 { margin: 0; }
.mkt-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-top: 12px; }
.mkt-chip { border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; min-width: 0; background: #fff; }
.mkt-chip .mkt-n { font-size: .78rem; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mkt-chip b { font-size: 1.05rem; color: var(--espresso); }
.mkt-chip .mkt-d { font-size: .82rem; font-weight: 700; }
.mkt-chip.up .mkt-d { color: var(--good); }
.mkt-chip.down .mkt-d { color: var(--bad); }
.mkt-chip small { color: var(--ink-soft); font-size: .72rem; }
.mkt-more { margin-top: 10px; }
.mkt-note { margin: 10px 0 0; }

.dream-empty .lead { margin: 0 0 6px; }
.dream-sum { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.dream-sum > div { background: var(--cream); border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.dream-sum small { color: var(--ink-soft); font-weight: 600; }
.dream-sum b { font-size: 1.25rem; color: var(--espresso); }
.dream-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; margin-bottom: 16px; }
.dream-card { border: 1px solid var(--line); border-radius: 18px; padding: 16px; display: flex; flex-direction: column; gap: 8px; background: #fff; }
.dream-card.fits, .dream-card.ready { border-color: rgba(47, 143, 91, .35); }
.dream-card.tight { border-color: rgba(201, 138, 27, .4); }
.dream-card.short { border-color: rgba(192, 68, 44, .35); }
.dream-top { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; }
.dream-top b { display: block; color: var(--espresso); }
.dream-top small { color: var(--ink-soft); font-size: .78rem; }
.dream-ico { width: 38px; height: 38px; border-radius: 12px; background: var(--cream); display: grid; place-items: center; }
.dream-card .bar span { background: var(--gold); }
.dream-saved { color: var(--ink-soft); }
.dream-tip { margin: 0; font-size: .88rem; line-height: 1.45; }
.dream-acts { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-top: auto; padding-top: 4px; }
.dream-form { border: 1px solid var(--line); border-radius: 18px; padding: 16px; margin-bottom: 16px; background: var(--cream); }
.dream-kinds { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; margin-bottom: 14px; }
.dream-kind { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 6px; border: 1px solid var(--line); border-radius: 14px; background: #fff; font: inherit; font-size: .8rem; font-weight: 600; color: var(--espresso); cursor: pointer; text-align: center; }
.dream-kind.on { border-color: var(--gold); box-shadow: 0 0 0 2px rgba(199, 154, 73, .35); }
.dream-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.dream-fields label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: .85rem; }
.dream-done { margin-top: 14px; }
.dream-done ul { margin: 6px 0 0; padding-left: 20px; }
.dream-note { margin: 14px 0 0; }

.cm-nick, .cm-form { border: 1px solid var(--line); border-radius: 16px; padding: 14px; background: var(--cream); display: flex; flex-direction: column; gap: 10px; }
.cm-nick p { margin: 0; }
.cm-nick-row, .cm-form-row { display: flex; gap: 10px; align-items: center; }
.cm-nick-row input { flex: 1; min-width: 0; }
.cm-form-row { justify-content: space-between; }
.cm-form-row select { max-width: 60%; }
.cm-form textarea { width: 100%; resize: vertical; }
.cm-rules { margin: 12px 0; }
.cm-rules ul { margin: 6px 0 0; padding-left: 20px; font-size: .88rem; }
.cm-topics { display: flex; gap: 8px; flex-wrap: wrap; margin: 4px 0 14px; }
.cm-tp { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 12px; font: inherit; font-size: .82rem; font-weight: 600; color: var(--espresso); cursor: pointer; }
.cm-tp.on { background: var(--espresso); border-color: var(--espresso); color: #fff; }
.cm-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 12px; }
.cm-post { border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; background: #fff; }
.cm-post.cm-hidden { opacity: .6; }
.cm-reply { margin: 10px 0 0 18px; border-radius: 12px; background: var(--cream); border-color: transparent; }
.cm-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.cm-meta b { color: var(--espresso); }
.cm-topic { font-size: .72rem; font-weight: 700; color: var(--gold); text-transform: uppercase; letter-spacing: .04em; }
.cm-body { margin: 6px 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.cm-acts { display: flex; gap: 14px; align-items: center; }
.cm-form-reply { margin: 10px 0 0 18px; flex-direction: row; align-items: flex-end; padding: 10px; }
@media (max-width: 640px) {
  .dream-sum, .dream-fields { grid-template-columns: 1fr; }
  .cm-form-reply { flex-direction: column; align-items: stretch; margin-left: 0; }
  .cm-reply { margin-left: 8px; }
}
.cm-form textarea, .cm-form select, .cm-nick input { font: inherit; font-size: .95rem; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); }
.cm-form textarea:focus, .cm-nick input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(199, 154, 73, .2); }

/* ---------- Round 34: overview health titles, bill button, community look ---------- */
.ov-health .fa-track { margin-top: 38px; }
.ov-health .panel > h3 > span:not(.small) { flex: 1 1 0; min-width: 0; }
.bud-top .bills-mini { justify-content: space-between; }
.bud-top .bills-mini .btn { max-width: 100%; white-space: normal; text-align: center; line-height: 1.3; height: auto; padding-top: 10px; padding-bottom: 10px; }

.cm-hero { position: relative; overflow: hidden; border-radius: 20px; padding: 26px 26px 22px; margin-bottom: 18px; color: #fff;
  background: radial-gradient(circle at 85% 20%, rgba(217, 174, 99, .55), transparent 45%), linear-gradient(135deg, var(--espresso) 0%, var(--espresso-2) 100%); }
.cm-hero h3 { margin: 0 0 6px; font-family: "Fraunces", serif; font-size: 1.6rem; color: #fff; }
.cm-hero p { margin: 0; max-width: 560px; color: rgba(255, 255, 255, .85); font-size: .95rem; }
.cm-hero .cm-hero-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.cm-hero .cm-hero-tags span { background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .2); border-radius: 999px; padding: 4px 12px; font-size: .78rem; font-weight: 700; }
.cm-av { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: .95rem; color: #fff; }
.cm-reply .cm-av { width: 30px; height: 30px; font-size: .78rem; }
.cm-form, .cm-nick { background: #fff; box-shadow: 0 6px 24px rgba(60, 36, 21, .06); }
.cm-compose { display: flex; gap: 12px; align-items: flex-start; }
.cm-compose > div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.cm-post { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0 12px; padding: 16px; border-radius: 18px; transition: box-shadow .2s, transform .2s; }
.cm-post:not(.cm-reply):hover { box-shadow: 0 10px 28px rgba(60, 36, 21, .08); transform: translateY(-1px); }
.cm-post > .cm-main { min-width: 0; }
.cm-thread { grid-column: 2; border-left: 2px solid var(--line); padding-left: 12px; margin-top: 10px; display: flex; flex-direction: column; gap: 8px; }
.cm-reply { margin: 0; padding: 10px 12px; background: var(--cream); }
.cm-thread .cm-form-reply { margin: 0; }
.cm-topic { background: rgba(199, 154, 73, .14); padding: 2px 8px; border-radius: 999px; }
.cm-body { font-size: .95rem; line-height: 1.55; color: var(--ink); }
.cm-acts { gap: 6px; flex-wrap: wrap; }
.cm-act { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 4px 12px; font: inherit; font-size: .8rem; font-weight: 700; color: var(--ink-soft); cursor: pointer; }
.cm-act:hover { border-color: var(--gold); color: var(--espresso); }
.cm-act.on { background: rgba(47, 143, 91, .1); border-color: rgba(47, 143, 91, .4); color: var(--good); }
.cm-act.quiet { border-color: transparent; background: none; }
.cm-act svg { width: 15px; height: 15px; }
.cm-rules { background: var(--cream); border-radius: 14px; padding: 10px 14px; }
.cm-rules summary { font-weight: 700; color: var(--espresso); cursor: pointer; }
.cm-tp { transition: background .15s, border-color .15s; }
.cm-tp:hover { border-color: var(--gold); }
.cm-empty { text-align: center; padding: 30px 16px; border: 1px dashed var(--line); border-radius: 18px; color: var(--ink-soft); }
@media (max-width: 640px) { .cm-hero { padding: 20px; } .cm-hero h3 { font-size: 1.3rem; } .cm-thread { grid-column: 1 / -1; } }
html { overflow-x: clip; } /* the panels' rise-in animation tips them in 3D for a moment: never a sideways scroll */
.jr-num { font-size: .72rem !important; }
.fa-num b { line-height: 1.05; display: block; margin-top: 4px; }
.dream-acts .link-btn { white-space: nowrap; padding: 2px 0; }
.cm-form.cm-compose { flex-direction: row; }
.cm-form-reply { flex-direction: row; }

/* ---------- Round 35: salary card in the Budget top row, markets row ---------- */
.bud-top .pd-head { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 2px 12px; align-items: center; }
.bud-top .pd-head h3 { font-size: 1rem; line-height: 1.3; }
.bud-top .pd-edit { grid-column: 2; margin: 0; justify-self: start; }
.bud-top .pd-steps { margin-left: 18px; }
.bud-top .pd-mid, .bud-top .pd-due, .bud-top .pd-tip { margin-left: 0; margin-top: 12px; line-height: 1.5; }
.mkt-row { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.mkt-panel { margin-bottom: 20px; }
.bud-top .bills-mini { justify-content: flex-start; }
.bud-top .bills-mini > .btn, .bud-top .bills-mini > .link-btn { margin-top: auto; }
.bud-top .bills-mini .bm-txt { flex: 0 0 auto; display: flex; flex-direction: column; gap: 4px; }
.fa-num b { font-family: var(--font-sans, "Manrope", sans-serif); font-weight: 800; letter-spacing: -.02em; } /* same face as the Brew Score number */

/* ---------- Round 36: one plan for each month's savings (Dreams & goals) ---------- */
.money-way { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin: 0 0 16px; }
.mw-step { background: var(--cream); border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mw-step span { font-size: .78rem; font-weight: 700; color: var(--ink-soft); }
.mw-step b { font-size: 1.15rem; color: var(--espresso); }
.mw-step.out b { color: var(--ink-soft); }
.mw-step.total { background: var(--espresso); }
.mw-step.total span, .mw-step.total small { color: rgba(255, 255, 255, .8); }
.mw-step.total b { color: #fff; }
.mw-step small { font-size: .74rem; color: var(--ink-soft); line-height: 1.35; }
.dream-gapnote { margin: -6px 0 14px; font-size: .9rem; }
.dream-far { display: block; margin-top: 6px; color: #8A5A00; }
@media (max-width: 900px) { .money-way { grid-template-columns: repeat(2, minmax(0, 1fr)); } .mw-step.total { grid-column: 1 / -1; } }

/* ---------- Round 37: today's move (green up, red down) ---------- */
.lv-list li { grid-template-columns: minmax(0, 1fr) auto 150px; }
.lv-vals { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.lv-chg { display: inline-block; font-size: .74rem; font-weight: 800; white-space: nowrap; font-variant-numeric: tabular-nums; }
.lv-chg.up { color: var(--good); } .lv-chg.down { color: var(--bad); }
.lv-chg-sm { display: block; text-align: right; font-size: .72rem; margin-top: 1px; }
.lv-chg-kpi { padding: 2px 8px; border-radius: 999px; margin-top: 6px; }
.lv-chg-kpi.up { background: rgba(47, 143, 91, .12); } .lv-chg-kpi.down { background: rgba(192, 68, 44, .1); }
.hero-kpi .lv-chg-kpi.up { background: rgba(255, 255, 255, .16); color: #9BE0B5; } .hero-kpi .lv-chg-kpi.down { background: rgba(255, 255, 255, .16); color: #FFB4A3; }
.lv-chg-note { font-size: .74rem; opacity: .8; }
.lv-today.up b { color: var(--good) !important; } .lv-today.down b { color: var(--bad) !important; }
#asset-list .row strong { text-align: right; }
@media (max-width: 560px) { .lv-list li > .lv-vals { grid-row: 1; grid-column: 2; } }
.mkt-cmp-wrap { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.mkt-cmp-wrap h4 { margin: 0 0 10px; font-size: .95rem; color: var(--espresso); }
.mkt-cmp { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 14px; border-radius: 14px; background: var(--cream); margin-bottom: 8px; }
.mkt-cmp small { display: block; font-size: .76rem; font-weight: 700; color: var(--ink-soft); }
.mkt-cmp b { font-size: 1.1rem; color: var(--espresso); font-variant-numeric: tabular-nums; }
.mkt-cmp-v span { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: .8rem; font-weight: 800; white-space: nowrap; }
.mkt-cmp.up .mkt-cmp-v span { background: rgba(47, 143, 91, .12); color: var(--good); }
.mkt-cmp.down .mkt-cmp-v span { background: rgba(192, 68, 44, .1); color: var(--bad); }
@media (max-width: 560px) { .mkt-cmp { grid-template-columns: 1fr 1fr; } .mkt-cmp-v { grid-column: 1 / -1; } }

/* ---------- Round 38: markets as a slim ticker ---------- */
.mkt-bar { margin-top: 20px; border: 1px solid var(--line); border-radius: 16px; background: #fff; padding: 8px 12px; }
.mkt-tick { display: flex; align-items: center; gap: 12px; min-width: 0; }
.mkt-lbl { flex: none; display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 800; color: var(--espresso); text-transform: uppercase; letter-spacing: .04em; }
.mkt-lbl .ic, .mkt-lbl svg { width: 16px; height: 16px; }
.mkt-scroll { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; min-width: 0; flex: 1; }
.mkt-scroll::-webkit-scrollbar { display: none; }
.mkt-bar .mkt-chip { flex: none; display: inline-flex; align-items: baseline; gap: 6px; padding: 4px 10px; border: 0; border-radius: 999px; background: var(--cream); font-size: .8rem; white-space: nowrap; }
.mkt-bar .mkt-chip .mkt-n { font-size: .76rem; color: var(--ink-soft); overflow: visible; }
.mkt-bar .mkt-chip b { font-size: .82rem; }
.mkt-bar .mkt-chip .mkt-d { font-size: .76rem; }
.mkt-bar .mkt-more { margin-top: 6px; }
.mkt-bar .mkt-more > summary { font-size: .78rem; font-weight: 700; color: var(--ink-soft); cursor: pointer; }
.mkt-bar .mkt-cmp-wrap { margin-top: 10px; padding-top: 10px; }

/* ---------- Round 39: Bean, the coffee helper (js/chatbot.js) ---------- */
.bean-btn { position: fixed; right: 22px; bottom: 92px; z-index: 61; display: flex; align-items: center; gap: 8px; padding: 8px 16px 8px 8px; border: 0; border-radius: 999px; cursor: pointer;
  background: linear-gradient(135deg, var(--espresso), var(--espresso-2)); color: #fff; font: inherit; font-weight: 800; font-size: .92rem; box-shadow: 0 10px 28px rgba(60, 36, 21, .35); transition: transform .15s; }
.bean-btn:hover { transform: translateY(-2px); }
.bean-btn img { width: 34px; height: 34px; border-radius: 50%; background: #FFF6E3; padding: 4px; object-fit: contain; }
.bean-btn.on { opacity: 0; pointer-events: none; }
.bean { position: fixed; right: 22px; bottom: 22px; z-index: 70; width: min(380px, calc(100vw - 32px)); height: min(600px, calc(100vh - 110px)); display: flex; flex-direction: column;
  background: #FFFCF7; border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 24px 60px rgba(60, 36, 21, .28); overflow: hidden; }
.bean[hidden] { display: none; }
.bean-head { display: flex; align-items: center; gap: 10px; padding: 14px 14px 14px 16px; color: #fff;
  background: radial-gradient(circle at 90% 0%, rgba(217, 174, 99, .5), transparent 50%), linear-gradient(135deg, var(--espresso), var(--espresso-2)); }
.bean-head img { width: 38px; height: 38px; border-radius: 50%; background: #FFF6E3; padding: 5px; object-fit: contain; }
.bean-head div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.bean-head b { font-family: var(--font-serif); font-size: 1.15rem; }
.bean-head small { font-size: .74rem; opacity: .8; }
.bean-x { border: 0; background: rgba(255, 255, 255, .15); color: #fff; width: 32px; height: 32px; border-radius: 50%; font-size: 1.3rem; line-height: 1; cursor: pointer; }
.bean-log { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.bean-msg { display: flex; gap: 8px; align-items: flex-end; max-width: 92%; }
.bean-msg img { width: 26px; height: 26px; border-radius: 50%; background: #FFF6E3; padding: 3px; flex: none; object-fit: contain; }
.bean-msg > div { padding: 10px 12px; border-radius: 16px; font-size: .9rem; line-height: 1.5; overflow-wrap: anywhere; }
.bean-msg.bot > div { background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 4px; color: var(--ink); }
.bean-msg.me { align-self: flex-end; }
.bean-msg.me > div { background: var(--espresso); color: #fff; border-bottom-right-radius: 4px; }
.bean-acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.bean-act { display: inline-block; border: 1px solid var(--gold); background: #FFF6E3; color: var(--espresso); border-radius: 999px; padding: 4px 12px; font: inherit; font-size: .78rem; font-weight: 800; text-decoration: none; cursor: pointer; }
.bean-act:hover { background: var(--gold); color: #fff; }
.bean-chips { display: flex; gap: 6px; overflow-x: auto; padding: 0 14px 8px; scrollbar-width: none; }
.bean-chips::-webkit-scrollbar { display: none; }
.bean-chip { flex: none; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 12px; font: inherit; font-size: .78rem; font-weight: 700; color: var(--espresso); cursor: pointer; white-space: nowrap; }
.bean-chip:hover { border-color: var(--gold); }
.bean-form { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line); background: #fff; }
.bean-form input { flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 999px; padding: 10px 14px; font: inherit; font-size: .9rem; }
.bean-form input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(199, 154, 73, .2); }
.bean-form button { border: 0; width: 42px; height: 42px; border-radius: 50%; background: var(--latte, #FFDD00); color: var(--espresso); font-size: 1rem; cursor: pointer; }
.bean-foot { margin: 0; padding: 0 14px 10px; background: #fff; font-size: .7rem; color: var(--ink-soft); text-align: center; }
@media (max-width: 560px) { .bean-btn span { display: none; } .bean-btn { padding: 8px; bottom: 86px; } .bean { right: 8px; left: 8px; width: auto; bottom: 8px; height: calc(100vh - 80px); } }
@media print { .bean, .bean-btn { display: none !important; } }
.bean-form button { background: #FFDD00; } .bean { z-index: 1000; } .bean-btn { z-index: 999; }

/* ---------- Round 40: photos and videos in Community ---------- */
.cm-attach { display: inline-flex; align-items: center; gap: 6px; border: 1px dashed var(--gold); border-radius: 999px; padding: 6px 12px; font-size: .82rem; font-weight: 700; color: var(--espresso); cursor: pointer; background: #FFF9EC; }
.cm-attach:hover { background: #FFF1D2; }
.cm-attach svg, .cm-attach .ic { width: 14px; height: 14px; }
.cm-form-row { flex-wrap: wrap; gap: 8px; }
.cm-form-row select { margin-left: auto; }
.cm-pending { display: flex; gap: 8px; flex-wrap: wrap; }
.cm-thumb { position: relative; width: 84px; height: 84px; border-radius: 12px; overflow: hidden; background: var(--cream); border: 1px solid var(--line); }
.cm-thumb img, .cm-thumb video { width: 100%; height: 100%; object-fit: cover; display: block; }
.cm-thumb i { position: absolute; left: 6px; bottom: 6px; font-style: normal; font-size: .68rem; font-weight: 800; color: #fff; background: rgba(0, 0, 0, .55); border-radius: 6px; padding: 1px 6px; }
.cm-thumb button { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .6); color: #fff; font-size: .9rem; line-height: 1; cursor: pointer; }
.cm-media { display: grid; gap: 6px; margin: 8px 0 4px; max-width: 560px; border-radius: 14px; overflow: hidden; }
.cm-media.n1 { grid-template-columns: 1fr; } .cm-media.n2, .cm-media.n4 { grid-template-columns: 1fr 1fr; } .cm-media.n3 { grid-template-columns: 1fr 1fr 1fr; }
.cm-media img, .cm-media video { width: 100%; display: block; background: #000; object-fit: cover; }
.cm-media.n1 img, .cm-media.n1 video { max-height: 420px; object-fit: contain; background: var(--cream); }
.cm-media:not(.n1) img, .cm-media:not(.n1) video { aspect-ratio: 1 / 1; }
.mkt-bar .mkt-chip { flex-direction: row; align-items: center; min-width: 0; }

/* ---------- Round 41: markets ticker under "Your portfolio" ---------- */
.ls-side { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.ls-side > .ls-port { flex: 1; }
.mkt-bar.in-strip { margin: 0; padding: 8px 10px; }
.mkt-bar.in-strip .mkt-tick { gap: 8px; }
.mkt-bar.in-strip .mkt-lbl { font-size: .7rem; }
.mkt-bar.in-strip .mkt-chip { padding: 3px 9px; }

/* ---------- Round 41: where your income went ---------- */
.if-wrap { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.if-wrap h4 { margin: 0 0 8px; font-size: 1rem; color: var(--espresso); }
.if-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-bottom: 4px; font-size: .8rem; color: var(--ink-soft); }
.if-legend span { display: inline-flex; align-items: center; gap: 6px; }
.if-legend b { color: var(--espresso); }
.if-legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.if-l-inc i { width: 3px; height: 14px; border-radius: 2px; background: var(--espresso); }
.if-row { display: grid; grid-template-columns: 58px minmax(0, 1fr) 150px; gap: 10px; align-items: center; padding: 5px 0; }
.if-m { font-size: .8rem; font-weight: 700; color: var(--ink-soft); }
.if-bar { position: relative; display: flex; height: 18px; border-radius: 6px; background: var(--cream); overflow: visible; }
.if-bar i { display: block; height: 100%; }
.if-bar i:first-child { border-radius: 6px 0 0 6px; }
.if-bar i:last-of-type { border-radius: 0 6px 6px 0; }
.if-inc { position: absolute; top: -4px; bottom: -4px; width: 3px; margin-left: -1px; border-radius: 2px; background: var(--espresso); }
.if-v { font-size: .78rem; color: var(--ink-soft); text-align: right; }
.if-v em { display: block; font-style: normal; font-weight: 700; color: var(--bad); }
.if-note { margin: 10px 0 0; padding: 10px 12px; border-radius: 12px; background: #EEF5F8; font-size: .84rem; line-height: 1.5; }
@media (max-width: 560px) { .if-row { grid-template-columns: 48px minmax(0, 1fr); } .if-v { grid-column: 2; text-align: left; } }
.fa-num b, .fa-num.ahead b, .fa-num.behind b { font-family: "Manrope", var(--font-sans, sans-serif); font-weight: 800; color: #3C2415; letter-spacing: 0; font-size: 2.5rem; line-height: 1.05; } /* exactly like the Brew Score number (dashboard.js gauge) */

/* ---------- Round 42: ticker arrows; market details as a full-width row under the strip ---------- */
.live-strip { align-items: start; }
.live-strip > .ls-main { align-self: stretch; }
.ls-side > .ls-port { flex: none; }
.mkt-go { flex: none; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--espresso); font-size: 1.1rem; font-weight: 800; line-height: 1; cursor: pointer; display: grid; place-items: center; padding: 0 0 2px; }
.mkt-go:hover:not(:disabled) { border-color: var(--gold); background: #FFF6E3; }
.mkt-go:disabled { opacity: .3; cursor: default; }
.mkt-tick.fits .mkt-go { display: none; }
.mkt-full { grid-column: 1 / -1; }
.mkt-full .mkt-more { border: 1px solid var(--line); border-radius: 16px; background: #fff; padding: 10px 16px; }
.mkt-full .mkt-more > summary { font-size: .84rem; font-weight: 700; color: var(--ink-soft); cursor: pointer; }
.mkt-full .mkt-cmp-wrap { margin-top: 12px; padding-top: 12px; }
.mkt-full .mkt-cmp { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; }
.mkt-full .mkt-cmp small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Round 43: Rewind (js/rewind.js) ---------- */
.rw-split { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.rw-r { position: sticky; top: 96px; }
.rw-form { display: flex; flex-direction: column; gap: 14px; }
.rw-form fieldset { border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px 14px; margin: 0; background: #fff; }
.rw-form legend { padding: 0 6px; font-weight: 800; color: var(--espresso); font-size: .92rem; }
.rw-form legend small { font-weight: 600; }
.rw-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 12px; }
.rw-form label { display: flex; flex-direction: column; gap: 5px; font-size: .82rem; font-weight: 700; color: var(--ink-soft); min-width: 0; }
.rw-form label small { font-weight: 500; font-size: .74rem; }
.rw-form input, .rw-form select { font: inherit; font-size: .92rem; font-weight: 600; color: var(--ink); padding: 9px 11px; border: 1px solid var(--line); border-radius: 10px; background: #FFFCF7; width: 100%; min-width: 0; box-sizing: border-box; }
.rw-form input:focus, .rw-form select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(199, 154, 73, .2); }
.rw-hint { margin: 0 0 8px; }
.rw-steps { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.rw-step { display: grid; grid-template-columns: 82px minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) 30px; gap: 8px; align-items: end; padding: 8px; border-radius: 12px; background: var(--cream); }
.rw-x { width: 30px; height: 36px; border: 0; border-radius: 8px; background: transparent; color: var(--ink-soft); font-size: 1.2rem; cursor: pointer; }
.rw-x:hover { background: #fff; color: var(--bad); }
.rw-res { display: flex; flex-direction: column; gap: 10px; }
.rw-chart { width: 100%; height: auto; display: block; margin-top: 4px; }
.rw-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .76rem; color: var(--ink-soft); }
.rw-legend span { display: inline-flex; align-items: center; gap: 6px; }
.rw-legend i { width: 14px; height: 3px; border-radius: 2px; display: inline-block; }
.rw-legend i.rw-dash { height: 0; border-top: 2px dashed; background: none; } /* (not "dash": that is the dashboard page itself) */
.rw-empty { padding: 20px; border: 1px dashed var(--line); border-radius: 16px; text-align: center; }
.rw-note { margin: 0; }
@media (max-width: 900px) { .rw-split { grid-template-columns: 1fr; } .rw-r { position: static; } }
@media (max-width: 560px) { .rw-grid { grid-template-columns: 1fr; } .rw-step { grid-template-columns: 1fr 1fr; } .rw-step .rw-x { grid-column: 2; justify-self: end; } }
.rw-step { grid-template-columns: repeat(2, minmax(0, 1fr)); position: relative; padding: 10px 40px 10px 10px; }
.rw-step .rw-x { position: absolute; top: 6px; right: 6px; height: 30px; }
@media (max-width: 560px) { .rw-step { grid-template-columns: 1fr 1fr; } .rw-step .rw-x { grid-column: auto; } }
.tab-index span { flex: none; white-space: nowrap; } /* "In this tab:" stays on one line beside the scrolling chips */

/* ---------- Round 44: Simple view (the default) — secondary sections hidden on screen (js/dashboard.js SIMPLE_HIDE) ---------- */
@media screen {
  .dash-simple :is(#finage-panel, #picture, #recap, #scenarios-panel, #remit-panel, .panel:has(#incomecheck)) { display: none !important; }
  .dash-simple #greet-id, .dash-simple .if-wrap { display: none !important; } /* (the notes under the headline figures stay: they explain a "—") */
  .dash-simple .ov-health { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media screen and (max-width: 760px) { .dash-simple .ov-health { grid-template-columns: 1fr; } }
.view-btn[aria-pressed="false"] { border-style: dashed; }

/* ---------- Round 45: progress since you joined ---------- */
.pg-sub { margin: 0 0 10px; color: var(--ink-soft); font-size: .9rem; }
.pg-tiles { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.pg-tiles span { font-size: .78rem; color: var(--ink-soft); }
.pg-tiles span.good { color: var(--good); font-weight: 800; } .pg-tiles span.bad { color: var(--bad); font-weight: 800; }
.pg-verdict { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin: 4px 0 10px; }
.pg-chart { width: 100%; height: auto; display: block; }
.pg-note { margin: 8px 0 0; }
.pg-chart { max-width: 640px; }

/* ---------- Round 45: landing page — a tour of the dashboard (js/pages/home.js) ---------- */
.shw { background: #fff; border-radius: 28px; padding: 22px 22px 16px; box-shadow: var(--shadow-lg); }
.shw-stage { display: grid; }
.shw-slide { grid-area: 1 / 1; opacity: 0; transform: translateY(10px) scale(.98); transition: opacity .55s ease, transform .55s ease; pointer-events: none; display: flex; flex-direction: column; gap: 10px; }
.shw-slide.on { opacity: 1; transform: none; pointer-events: auto; }
.shw-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 4px; }
.shw-h b { font-size: 1.05rem; color: var(--espresso); }
.shw-row { display: grid; grid-template-columns: 92px minmax(0, 1fr) auto 72px; gap: 10px; align-items: center; font-size: .86rem; }
.shw-row > span:first-child { color: var(--ink-soft); font-weight: 700; }
.shw-row small { font-weight: 800; font-size: .72rem; text-align: right; } .shw-row small.good { color: var(--good); } .shw-row small.bad { color: var(--bad); }
.shw-bar { height: 10px; border-radius: 6px; background: var(--cream); overflow: hidden; }
.shw-bar i { display: block; height: 100%; width: var(--w); border-radius: 6px; background: var(--gold); }
.shw-bar i.over { background: var(--bad); }
.shw-slide.on .shw-bar i { animation: shwGrow .9s cubic-bezier(.2,.8,.2,1) both; }
@keyframes shwGrow { from { width: 0; } }
.shw-cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.shw-cal i, .shw-leg i { display: block; aspect-ratio: 1; border-radius: 6px; background: #F3ECE1; }
.shw-cal .l1, .shw-leg .l1 { background: #F1D596; } .shw-cal .l2, .shw-leg .l2 { background: #E3B85C; } .shw-cal .l3, .shw-leg .l3 { background: #C79A49; } .shw-cal .l4, .shw-leg .l4 { background: #8B5A3C; }
.shw-slide.on .shw-cal i { animation: shwPop .35s ease both; animation-delay: calc(var(--k) * 25ms); }
@keyframes shwPop { from { opacity: 0; transform: scale(.4); } }
.shw-leg { display: flex; align-items: center; gap: 5px; font-size: .74rem; color: var(--ink-soft); }
.shw-leg i { width: 14px; }
.shw-mkt { display: grid; grid-template-columns: minmax(0, 1fr) auto 76px; gap: 10px; padding: 8px 12px; border-radius: 12px; background: var(--cream); font-size: .88rem; }
.shw-mkt span { color: var(--ink-soft); font-weight: 700; } .shw-mkt b { color: var(--espresso); } .shw-mkt em { font-style: normal; font-weight: 800; text-align: right; }
.shw-mkt em.good { color: var(--good); } .shw-mkt em.bad { color: var(--bad); }
.shw-fut { width: 100%; height: auto; }
.shw-slide.on .shw-line { stroke-dasharray: 600; animation: shwDraw 1.4s ease both; }
@keyframes shwDraw { from { stroke-dashoffset: 600; } to { stroke-dashoffset: 0; } }
.shw-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.shw-two > div { background: var(--cream); border-radius: 14px; padding: 10px 12px; display: flex; flex-direction: column; }
.shw-two small { color: var(--ink-soft); font-weight: 700; font-size: .76rem; } .shw-two b { font-size: 1.2rem; color: var(--espresso); }
.shw-dots { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 14px; }
.shw-dots button { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 4px 11px; font: inherit; font-size: .74rem; font-weight: 700; color: var(--ink-soft); cursor: pointer; }
.shw-dots button[aria-selected="true"] { background: var(--espresso); border-color: var(--espresso); color: #fff; }
.shw-note { margin: 8px 0 0; text-align: center; }
@media (prefers-reduced-motion: reduce) { .shw-slide { transition: none; } .shw-slide.on * { animation: none !important; } }
@media (max-width: 560px) { .shw { padding: 16px; } .shw-row { grid-template-columns: 76px minmax(0, 1fr) auto; } .shw-row small { display: none; } }
.shw-cal { max-width: 290px; width: 100%; margin: 4px auto 0; gap: 5px; } .shw-leg { justify-content: center; }
.found-strip { display: flex; align-items: center; gap: 14px; margin-top: 16px; padding: 12px 16px; border-radius: 18px; background: linear-gradient(135deg, #FFF6E3, #FDEFD2); border: 1px solid #F0DFA8; }
.found-strip[hidden] { display: none; }
.found-strip > div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.found-strip b { color: var(--espresso); font-size: 1rem; }
.found-strip small { color: var(--ink-soft); font-size: .8rem; }
.fs-ico { width: 40px; height: 40px; border-radius: 12px; background: #fff; display: grid; place-items: center; flex: none; }
@media (max-width: 560px) { .found-strip { flex-wrap: wrap; } .found-strip .btn { width: 100%; } }
.fa-num b, .fa-num.ahead b, .fa-num.behind b { font-size: var(--score-px, 2.5rem); font-variant-numeric: normal; } /* the Brew Score number's own size on screen (js/dashboard-finage.js), and its digits */
/* Spending calendar, 13 or 26 weeks: the day of the month in each square */
.hm-grid.hm-dates { grid-template-columns: 30px repeat(var(--hm-cols, 13), minmax(14px, 28px)); }
.hm-grid.hm-dates .hm-c { display: grid; place-items: center; font-size: .58rem; font-weight: 700; line-height: 1; color: rgba(60, 36, 21, .55); font-variant-numeric: tabular-nums; }
.hm-grid.hm-dates .hm-c.hm-l4, .hm-grid.hm-dates .hm-c.hm-l5 { color: rgba(255, 255, 255, .85); }
@media (max-width: 560px) { .hm-grid.hm-dates .hm-c { font-size: .5rem; } }

/* ---------- Round 46: the landing-page tour, drawn like the app ---------- */
.shw { background: none; box-shadow: none; padding: 0; }
.shw-app { background: #fff; border-radius: 22px; box-shadow: 0 30px 60px -20px rgba(60, 36, 21, .35), 0 0 0 1px rgba(60, 36, 21, .06); overflow: hidden; }
.shw-top { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: #F6EFE4; border-bottom: 1px solid var(--line); }
.shw-lights { display: inline-flex; gap: 5px; } .shw-lights i { width: 9px; height: 9px; border-radius: 50%; background: #E7B8AC; } .shw-lights i:nth-child(2) { background: #F1D596; } .shw-lights i:nth-child(3) { background: #BFDCC8; }
.shw-url { flex: 1; display: inline-flex; align-items: center; gap: 6px; justify-content: center; font-size: .72rem; font-weight: 700; color: var(--ink-soft); background: #fff; border-radius: 999px; padding: 4px 10px; }
.shw-url svg, .shw-url .ic { width: 11px; height: 11px; }
.shw-tabs { display: flex; gap: 4px; padding: 8px 10px 6px; overflow: hidden; }
.shw-tabs span { flex: none; display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: 999px; font-size: .72rem; font-weight: 700; color: var(--ink-soft); transition: background .3s, color .3s; }
.shw-tabs span svg, .shw-tabs span .ic { width: 12px; height: 12px; }
.shw-tabs span.on { background: var(--espresso); color: #fff; }
.shw-time { height: 2px; background: #F3ECE1; }
.shw-time i { display: block; height: 100%; width: 100%; background: var(--gold); transform-origin: 0 50%; animation: shwTime 5s linear both; }
.shw-held .shw-time i { animation-play-state: paused; }
@keyframes shwTime { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.shw-stage { padding: 16px; min-height: 300px; }
.shw-slide { gap: 10px; }
.shw-nw { margin: 0; }
.shw-nw .sub b.shw-today { color: #9BE0B5; }
.shw-gauge { position: relative; align-items: center; text-align: center; }
.shw-gauge svg { width: 110px; height: auto; display: block; margin: 0 auto; }
.shw-gauge > b { margin-top: -26px; font-size: 1.5rem; color: var(--espresso); } .shw-gauge > b small { font-size: .7rem; color: var(--ink-soft); }
.shw-gauge > span { font-size: .74rem; color: var(--ink-soft); font-weight: 700; }
.shw-slide.on .shw-arc { animation: shwArc 1.2s cubic-bezier(.2,.8,.2,1) both; }
@keyframes shwArc { from { stroke-dasharray: 0 100; } }
.shw-two span.chip { align-self: flex-start; margin-top: 4px; }
.shw-two b.good { color: var(--good); }
.shw-mix { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 14px; align-items: center; }
.shw-ring { width: 140px; height: 140px; }
.shw-slide.on .shw-ring circle { animation: shwRing 1.1s cubic-bezier(.2,.8,.2,1) both; }
@keyframes shwRing { from { stroke-dasharray: 0 240; } }
.shw-legend { display: flex; flex-direction: column; gap: 6px; }
.shw-legend > div { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto 64px; gap: 8px; align-items: center; font-size: .8rem; }
.shw-legend i { width: 10px; height: 10px; border-radius: 3px; }
.shw-legend span { color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shw-legend b { color: var(--espresso); }
.shw-slide em { font-style: normal; font-weight: 800; font-size: .74rem; text-align: right; white-space: nowrap; }
.shw-slide em.good { color: var(--good); } .shw-slide em.bad { color: var(--bad); }
.shw-tick { display: flex; flex-wrap: wrap; gap: 6px; }
.shw-tick span { background: var(--cream); border-radius: 999px; padding: 4px 10px; font-size: .76rem; font-weight: 700; color: var(--ink-soft); }
.shw-found { background: linear-gradient(135deg, var(--espresso), var(--espresso-2)); color: #fff; border-radius: 16px; padding: 14px 16px; }
.shw-found small { opacity: .8; font-weight: 700; } .shw-found b { display: block; font-size: 1.6rem; color: #FFDD00; } .shw-found b span { font-size: .85rem; color: #fff; font-weight: 600; }
.shw-leak { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 7px 10px; border-radius: 12px; background: var(--cream); font-size: .84rem; }
.shw-leak i { width: 30px; height: 30px; border-radius: 9px; background: #fff; display: grid; place-items: center; } .shw-leak i svg, .shw-leak i .ic { width: 16px; height: 16px; }
.shw-leak small { font-size: .66rem; font-weight: 800; color: var(--warn); text-transform: uppercase; letter-spacing: .04em; }
.shw-leak b { color: var(--espresso); }
.shw-slide.on .shw-leak { animation: shwIn .5s ease both; } .shw-slide.on .shw-leak:nth-of-type(2) { animation-delay: .08s; } .shw-slide.on .shw-leak:nth-of-type(3) { animation-delay: .16s; } .shw-slide.on .shw-leak:nth-of-type(4) { animation-delay: .24s; } .shw-slide.on .shw-leak:nth-of-type(5) { animation-delay: .32s; }
@keyframes shwIn { from { opacity: 0; transform: translateX(14px); } }
.shw-ca { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: var(--cream); }
.shw-ca > div { flex: 1; min-width: 0; display: flex; flex-direction: column; } .shw-ca b { color: var(--espresso); font-size: .9rem; } .shw-ca small { color: var(--ink-soft); font-size: .74rem; }
.shw-av { width: 40px; height: 40px; border-radius: 50%; background: var(--espresso); color: #FFDD00; display: grid; place-items: center; font-weight: 800; font-size: .8rem; flex: none; }
.shw-pillars { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
.shw-pillars > div { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 2px; border-radius: 10px; background: var(--cream); }
.shw-pillars b { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; color: #fff; font-size: .82rem; }
.shw-pillars span { font-size: .6rem; color: var(--ink-soft); font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.shw-pillars .g-A b { background: #2F8F5B; } .shw-pillars .g-B b { background: #6BAA7F; } .shw-pillars .g-C b { background: #C98A1B; } .shw-pillars .g-D b { background: #C0442C; }
.shw-slide.on .shw-pillars > div { animation: shwPop .4s ease both; } .shw-slide.on .shw-pillars > div:nth-child(n) { animation-delay: calc(var(--i, 0) * 50ms); }
.shw-todo { display: flex; align-items: center; gap: 8px; font-size: .84rem; }
.shw-todo i { width: 18px; height: 18px; border-radius: 6px; border: 2px solid var(--line); display: grid; place-items: center; flex: none; }
.shw-todo.done i { background: var(--good); border-color: var(--good); color: #fff; } .shw-todo.done i svg, .shw-todo.done i .ic { width: 12px; height: 12px; }
.shw-todo.done span { text-decoration: line-through; color: var(--ink-soft); }
.shw-row { grid-template-columns: 82px minmax(0, 1fr) auto; }
.shw-meter { height: 10px; border-radius: 6px; background: var(--cream); overflow: hidden; }
.shw-meter i { display: block; height: 100%; width: var(--w); border-radius: 6px; background: var(--gold); } .shw-meter i.over { background: var(--bad); }
.shw-slide.on .shw-meter i { animation: shwGrow .9s cubic-bezier(.2,.8,.2,1) both; }
.shw-cal { max-width: none; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; margin-top: 4px; }
.shw-cal i { aspect-ratio: auto; height: 26px; display: grid; place-items: center; font-style: normal; font-size: .64rem; font-weight: 700; color: rgba(60, 36, 21, .55); }
.shw-cal i.l4 { color: rgba(255, 255, 255, .85); }
.shw-cap { margin: 14px 4px 0; font-size: .9rem; color: var(--ink-soft); min-height: 2.8em; }
.shw-cap b { color: var(--espresso); }
.shw-dots button[aria-pressed="true"] { background: var(--espresso); border-color: var(--espresso); color: #fff; }
@media (prefers-reduced-motion: reduce) { .shw-time { display: none; } }
@media (max-width: 560px) { .shw-mix { grid-template-columns: 1fr; justify-items: center; } .shw-legend { width: 100%; } .shw-tabs span:nth-child(n+4) { display: none; } .shw-pillars span { display: none; } }

/* ---------- Round 47: site-wide visual fixes ---------- */
/* The age table's first row ("today"): its own highlight. It was class "today", the Safe-to-spend card's name,
   and picked up that card's gradient and border. */
tr.age-now td { background: #FFF6E3; font-weight: 700; }
/* Every big figure on the dashboard in one face: Manrope 800, like the headline figures and the Brew Score */
.ls-nw, .ls-port b { font-family: "Manrope", var(--font-sans, sans-serif); font-weight: 800; font-variant-numeric: normal; letter-spacing: -.01em; }
.fam-total, #family b { font-weight: 800; }
/* Latte factor: a long habit name wraps inside its button */
.lt-habit { min-width: 0; } .lt-habit > :not(.lt-ico) { min-width: 0; overflow-wrap: anywhere; }
.shw-pillars span { font-size: .68rem; }
/* "Your month at a glance": a part too narrow for its name shows only its percentage (the name is in its tooltip) */
.af-stack span { container-type: inline-size; }
@container (max-width: 74px) { .af-stack span b { display: none; } }

/* ---------- Round 48: the what-if simulator (js/dashboard-simulator.js) ---------- */
/* Round 49: the builder — 1 how much, 2 when, 3 where — beside the answer (stacked on narrower screens) */
.sx-how { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 0 0 14px; font-size: .82rem; font-weight: 700; color: var(--espresso); }
.sx-how span { display: inline-flex; align-items: center; gap: 6px; background: var(--cream); border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px 5px 6px; }
.sx-how .ic { width: 22px; height: 22px; padding: 3px; border-radius: 50%; background: #fff; box-sizing: border-box; }
.sx-how i { font-style: normal; color: var(--gold); font-weight: 800; }
.sx { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 18px; align-items: start; margin-bottom: 18px; }
.sx-edit-note { grid-column: 1 / -1; margin: 0; padding: 8px 12px; border-radius: 10px; background: #FFF6D6; font-weight: 700; font-size: .86rem; color: var(--espresso); }
.sx-build { display: flex; flex-direction: column; gap: 16px; }
.sx-step { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; }
.sx-n { width: 30px; height: 30px; border-radius: 50%; background: var(--espresso); color: #fff; font-weight: 800; font-size: .86rem; display: grid; place-items: center; }
.sx-body { min-width: 0; }
.sx-lbl { display: block; font-weight: 800; color: var(--espresso); margin: 4px 0 8px; font-size: .98rem; }
.sx-lbl small { font-weight: 600; color: var(--ink-soft); font-size: .78rem; margin-left: 4px; }
.sx-amt { display: flex; align-items: center; border: 2px solid var(--line); border-radius: 14px; background: #fff; padding: 0 14px; max-width: 320px; transition: border-color .15s; }
.sx-amt:focus-within { border-color: var(--gold); }
.sx-cur { font-weight: 800; color: var(--ink-soft); margin-right: 6px; }
.sx-amt input { border: 0; outline: 0; background: none; font: inherit; font-family: "Manrope", var(--font-sans); font-size: 1.5rem; font-weight: 800; color: var(--espresso); padding: 8px 0; width: 100%; min-width: 0; font-variant-numeric: tabular-nums; }
.sx-cash { margin: 8px 0 6px; font-size: .84rem; color: var(--ink-soft); }
.sx-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.sx-chip { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 12px; font: inherit; font-size: .84rem; font-weight: 700; color: var(--espresso); cursor: pointer; transition: background .15s, border-color .15s; }
.sx-chip:hover { border-color: var(--gold); }
.sx-chip[aria-pressed="true"] { background: var(--espresso); border-color: var(--espresso); color: #fff; }
.sx-date { margin-top: 8px; font: inherit; font-weight: 700; padding: 7px 10px; border: 1px solid var(--line); border-radius: 10px; }
.sx-assets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.sx-asset { position: relative; display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 10px; text-align: left; padding: 9px 10px; border: 1.5px solid var(--line); border-radius: 14px; background: #fff; font: inherit; cursor: pointer; transition: border-color .15s, box-shadow .15s, transform .15s; }
.sx-asset:hover { border-color: var(--c); transform: translateY(-1px); }
.sx-asset[aria-pressed="true"] { border-color: var(--c); box-shadow: 0 0 0 1px var(--c) inset, 0 6px 16px rgba(60, 36, 21, .08); background: color-mix(in srgb, var(--c) 6%, #fff); }
.sx-ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 16%, #fff); color: var(--c); }
.sx-ico .ic { width: 20px; height: 20px; }
.sx-an { font-size: .84rem; font-weight: 700; color: var(--ink); line-height: 1.25; }
.sx-asset em { font-style: normal; font-size: .78rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.sx-asset em.good { color: var(--good); } .sx-asset em.bad { color: var(--bad); }
.sx-tick { position: absolute; top: -7px; right: -7px; width: 20px; height: 20px; border-radius: 50%; background: var(--c); color: #fff; display: none; place-items: center; box-shadow: 0 2px 6px rgba(0, 0, 0, .18); }
.sx-tick .ic { width: 12px; height: 12px; } .sx-tick .ic * { stroke: #fff; }
.sx-asset[aria-pressed="true"] .sx-tick { display: grid; }
.sx-split { margin-top: 12px; border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; background: var(--cream); }
.sx-split-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; font-size: .88rem; color: var(--espresso); }
.sx-row { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) 78px 26px; gap: 8px; align-items: center; padding: 5px 0; }
.sx-rn { font-size: .82rem; font-weight: 700; display: flex; align-items: center; gap: 7px; min-width: 0; }
.sx-rn i { flex: none; width: 10px; height: 10px; border-radius: 3px; }
.sx-row input[type=range] { width: 100%; accent-color: var(--c); }
.sx-rv { text-align: right; line-height: 1.15; } .sx-rv b { display: block; font-size: .86rem; } .sx-rv small { font-size: .74rem; color: var(--ink-soft); }
.sx-res { position: sticky; top: 84px; border-radius: 20px; padding: 18px; background: linear-gradient(160deg, #FFFDF9, #F7EFE2); border: 1px solid var(--line); min-height: 260px; }
.sx-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 8px; min-height: 220px; color: var(--ink-soft); }
.sx-empty .ic { width: 40px; height: 40px; }
.sx-spin { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--gold); animation: sxSpin .9s linear infinite; }
@keyframes sxSpin { to { transform: rotate(360deg); } }
.sx-kick { margin: 0 0 6px; font-size: .82rem; font-weight: 700; color: var(--roast); background: #FFF6D6; border-radius: 10px; padding: 6px 10px; }
.sx-say { margin: 0; color: var(--ink-soft); font-size: .92rem; }
.sx-big { font-family: "Manrope", var(--font-sans); font-weight: 800; font-size: clamp(2rem, 4vw, 2.7rem); line-height: 1.1; margin: 4px 0 8px; color: var(--espresso); font-variant-numeric: tabular-nums; }
.sx-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.sx-best { margin: 0 0 6px; font-size: .84rem; color: var(--ink-soft); }
.sx-hint { margin: 2px 0 8px; }
.sx-track { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); }
.sx-track input { flex: 1 1 160px; min-width: 0; font: inherit; font-size: .88rem; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.sim-chart-wrap { position: relative; margin: 6px 0 4px; touch-action: pan-y; }
.sim-chart-wrap svg { cursor: crosshair; }
.sim-tip { position: absolute; top: 0; z-index: 3; pointer-events: none; background: rgba(34, 22, 14, .94); color: #fff; border-radius: 10px; padding: 7px 10px; font-size: .76rem; line-height: 1.45; min-width: 150px; box-shadow: 0 6px 18px rgba(0, 0, 0, .25); }
.sim-tip b { display: block; font-size: .78rem; margin-bottom: 2px; }
.sim-tip span { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.sim-tip span i { width: 8px; height: 8px; border-radius: 2px; flex: none; }
.sim-tip em { font-style: normal; font-weight: 800; margin-left: auto; padding-left: 10px; font-variant-numeric: tabular-nums; }
.sim-rank { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.sim-rank li { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 1.05fr); gap: 10px; align-items: center; font-size: .84rem; }
.sim-rank li.bank { color: var(--ink-soft); border-top: 1px dashed var(--line); padding-top: 6px; }
.sr-n { display: flex; align-items: center; gap: 7px; font-weight: 700; min-width: 0; }
.sr-n i { flex: none; width: 10px; height: 10px; border-radius: 3px; }
.sr-bar { position: relative; height: 10px; border-radius: 6px; background: #F1E9DC; }
.sr-mid { position: absolute; left: 50%; top: -3px; bottom: -3px; width: 1.5px; background: #CBBBA4; }
.sr-fill { position: absolute; top: 0; bottom: 0; width: var(--w); border-radius: 6px; background: var(--c); }
.sr-fill.up { left: 50%; } .sr-fill.down { right: 50%; opacity: .75; }
.sr-v { text-align: right; line-height: 1.2; font-variant-numeric: tabular-nums; } .sr-v b { display: block; } .sr-v small { color: var(--ink-soft); font-size: .74rem; }
.sim-saved-h { margin: 6px 0 10px; font-size: 1rem; color: var(--espresso); }
.sim-new { animation: simNew 2.2s ease; }
@keyframes simNew { 0% { box-shadow: 0 0 0 0 rgba(199, 154, 73, .7); } 30% { box-shadow: 0 0 0 8px rgba(199, 154, 73, .25); } 100% { box-shadow: 0 0 0 0 rgba(199, 154, 73, 0); } }
@media (max-width: 980px) { .sx { grid-template-columns: 1fr; } .sx-res { position: static; } }
.sx-mini { display: none; }
@media (max-width: 980px) { .sx-mini { position: sticky; bottom: 10px; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; border: 0; border-radius: 14px; padding: 10px 14px; background: var(--espresso); color: #fff; font: inherit; text-align: left; box-shadow: 0 10px 24px rgba(0, 0, 0, .25); cursor: pointer; }
  .sx-mini .good { color: #8FE0AA; } .sx-mini .bad { color: #FFA48F; } .sx-mini small { display: block; font-size: .72rem; opacity: .8; } .sx-mini b { font-family: "Manrope", var(--font-sans); font-size: 1.1rem; } .sx-mini em { font-style: normal; font-weight: 800; font-size: .82rem; color: var(--bmc-yellow); white-space: nowrap; } }
@media (max-width: 560px) { .sx-assets { grid-template-columns: 1fr 1fr; gap: 6px; } .sx-asset { grid-template-columns: minmax(0, 1fr); gap: 2px; padding: 8px 10px; border-radius: 12px; } .sx-ico { display: none; }
  .sx-an { font-size: .78rem; } .sx-asset em { font-size: .74rem; } .sx-row { grid-template-columns: minmax(0, 1fr) 70px 26px; row-gap: 2px; } .sx-row input[type=range] { grid-column: 1 / -1; grid-row: 2; } .sx-rn { font-size: .78rem; }
  .sx-step { grid-template-columns: 26px minmax(0, 1fr); gap: 8px; } .sx-n { width: 26px; height: 26px; font-size: .78rem; } .sx-amt input { font-size: 1.3rem; }
  .sx-mini { width: calc(100% - 58px); padding: 9px 12px; } .sx-mini em { font-size: .74rem; } /* (room for the WhatsApp button at the bottom right) */
  .sim-rank li { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .sr-bar { grid-column: 1 / -1; grid-row: 2; } .sx-res { padding: 14px; } .sx-how { font-size: .76rem; } }
/* Overview: the way into the simulator */
.sim-teaser { display: flex; align-items: center; gap: 14px; margin: 14px 0 0; padding: 12px 16px; border-radius: 18px; border: 1px solid #E6D3AE; background: linear-gradient(100deg, #FFF8E7, #FFFDF9 60%); }
.sim-teaser > div { flex: 1; min-width: 0; } .sim-teaser b { display: block; color: var(--espresso); font-size: .98rem; } .sim-teaser small { display: block; color: var(--ink-soft); font-size: .84rem; margin-top: 2px; }
.st-ico { flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, #D9AE63, #C79A49); color: #fff; }
.st-ico .ic { width: 22px; height: 22px; } .st-ico .ic * { stroke: #fff; }
@media (max-width: 560px) { .sim-teaser { flex-wrap: wrap; } .sim-teaser .btn { width: 100%; } }
@media print { .sim-teaser { display: none !important; } }
.sim-card { border: 1px solid var(--line); border-radius: 18px; padding: 16px; margin-bottom: 14px; background: #fff; display: flex; flex-direction: column; gap: 12px; }
.sim-head { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.sim-head b { display: block; color: var(--espresso); font-size: 1.05rem; } .sim-head small { color: var(--ink-soft); font-size: .8rem; }
.sim-acts { display: flex; gap: 14px; }
.sim-tiles { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin: 0; }
.sim-tiles span { font-size: .78rem; font-weight: 800; } .sim-tiles span.good, .sim-tiles b.good { color: var(--good); } .sim-tiles span.bad, .sim-tiles b.bad { color: var(--bad); }
.sim-chart { width: 100%; height: auto; display: block; max-width: 720px; }
.sim-legs { width: 100%; border-collapse: collapse; font-size: .86rem; }
.sim-legs th { text-align: right; font-size: .74rem; font-weight: 800; color: var(--ink-soft); padding: 6px 8px; border-bottom: 1px solid var(--line); }
.sim-legs td { text-align: right; padding: 7px 8px; border-bottom: 1px solid #F3ECE1; font-variant-numeric: tabular-nums; }
.sim-legs th:first-child, .sim-legs td:first-child { text-align: left; }
.sim-legs td.good { color: var(--good); font-weight: 700; } .sim-legs td.bad { color: var(--bad); font-weight: 700; }
.sim-dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 8px; vertical-align: middle; }
.sim-days summary { font-weight: 700; color: var(--espresso); cursor: pointer; }
.sim-note { margin: 10px 0 0; }
@media (max-width: 560px) { .sim-card { padding: 12px; } .sim-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } .sim-legs { font-size: .8rem; } .sim-legs th, .sim-legs td { padding: 6px 4px; } }

/* ---------- Round 49: "How to use" — the dashboard tour (js/dashboard-guide.js) ---------- */
.help-wrap { position: relative; display: inline-flex; }
.help-wrap #btn-help .ic { width: 16px; height: 16px; margin-right: 2px; vertical-align: -3px; }
.help-pop { position: absolute; top: calc(100% + 8px); right: 0; z-index: 60; width: min(330px, calc(100vw - 32px)); background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg); padding: 6px; display: none; }
.help-pop.open { display: block; }
.help-pop > a, .help-pop > button { display: flex; gap: 12px; align-items: flex-start; width: 100%; text-align: left; padding: 10px 12px; border-radius: 12px; background: none; border: 0; font: inherit; color: var(--ink); text-decoration: none; cursor: pointer; }
.help-pop > a:hover, .help-pop > button:hover, .help-pop > a:focus-visible, .help-pop > button:focus-visible { background: var(--cream); }
.help-pop .ic { flex: none; width: 34px; height: 34px; padding: 7px; border-radius: 10px; background: var(--latte); color: var(--espresso); box-sizing: border-box; }
.help-pop b { display: block; font-size: .9rem; color: var(--espresso); } .help-pop small { display: block; font-size: .78rem; color: var(--ink-soft); margin-top: 2px; }
@media (max-width: 640px) { .help-pop { right: auto; left: 0; } }

.gd { position: fixed; inset: 0; z-index: 2000; }
.gd-dim { position: fixed; inset: 0; width: 100%; height: 100%; display: block; }
.gd-dim path { fill: rgba(28, 17, 9, .62); }
.gd-hole { position: fixed; border-radius: 14px; pointer-events: none; }
.gd-hole::after { content: ""; position: absolute; inset: -5px; border-radius: 18px; border: 3px solid var(--bmc-yellow); animation: gdPulse 1.6s ease-in-out infinite; }
@keyframes gdPulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .45; transform: scale(1.015); } }
.gd-arrow { position: fixed; width: 56px; height: 44px; color: var(--bmc-yellow); filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .35)); pointer-events: none; animation: gdNudge 1.1s ease-in-out infinite; transform-origin: center; }
@keyframes gdNudge { 0%, 100% { translate: 0 0; } 50% { translate: 0 -5px; } }
.gd-card { position: fixed; width: min(380px, calc(100vw - 24px)); background: #fff; border-radius: 18px; padding: 16px 18px 14px; box-shadow: 0 24px 60px rgba(0, 0, 0, .35); transition: left .35s ease, top .35s ease; outline: none; }
.gd-caret { position: absolute; width: 16px; height: 16px; background: #fff; transform: translateX(-50%) rotate(45deg); }
.gd-card[data-place="below"] .gd-caret { top: -8px; } .gd-card[data-place="above"] .gd-caret { bottom: -8px; }
.gd-top { display: flex; justify-content: space-between; align-items: center; }
.gd-n { font-size: .74rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--gold); }
.gd-x { border: 0; background: none; font-size: 1.4rem; line-height: 1; color: var(--ink-soft); cursor: pointer; padding: 2px 6px; border-radius: 8px; }
.gd-x:hover { background: var(--cream); }
.gd-card h3 { margin: 6px 0 6px; font-family: var(--font-serif); font-size: 1.22rem; color: var(--espresso); line-height: 1.25; }
.gd-card p { margin: 0; font-size: .92rem; line-height: 1.55; color: var(--ink); }
.gd-bar { height: 5px; margin: 14px 0 12px; border-radius: 3px; background: var(--line); overflow: hidden; }
.gd-bar i { display: block; height: 100%; width: 0; border-radius: 3px; background: var(--gold); transition: width .3s ease; }
.gd-stmt { margin: 0 0 10px; }
.gd-card { max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); overflow-y: auto; }
.gd-acts { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.gd-acts > span { display: flex; gap: 8px; }
.gd-skip { font-size: .84rem; color: var(--ink-soft); }
.gd-center .gd-card { width: min(440px, calc(100vw - 24px)); text-align: left; }
.gd-center .gd-card::before { content: ""; display: block; width: 52px; height: 52px; margin-bottom: 8px; border-radius: 14px; background: var(--latte) url("../assets/logo/logo-icon.png") center / 22px auto no-repeat; }
@media (prefers-reduced-motion: reduce) { .gd-hole, .gd-card { transition: none; } .gd-hole::after, .gd-arrow { animation: none; } }
@media print { .gd, .help-wrap { display: none !important; } }

/* ---------- Round 49: the guide page (guide.html) ---------- */
.guide .legal-body h3 { font-family: var(--font-serif); color: var(--espresso); font-size: 1.15rem; margin: 22px 0 8px; }
.guide-steps { list-style: none; counter-reset: gs; padding: 0; margin: 12px 0 14px; display: flex; flex-direction: column; gap: 10px; }
.guide-steps > li { counter-increment: gs; position: relative; padding: 2px 0 2px 44px; line-height: 1.6; }
.guide-steps > li::before { content: counter(gs); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--espresso); color: #fff; font-weight: 800; font-size: .85rem; display: grid; place-items: center; }
.guide-show { margin: 4px 0 8px; }
.guide-app { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 14px 0; }
.guide-os { border: 1px solid var(--line); border-radius: 18px; padding: 16px; background: #fff; }
.guide-os h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 6px !important; font-size: 1.02rem !important; }
.guide-os h3 .ic { width: 28px; height: 28px; padding: 5px; border-radius: 9px; background: var(--latte); box-sizing: border-box; }
.guide-os .guide-steps > li { padding-left: 36px; font-size: .92rem; } .guide-os .guide-steps > li::before { width: 24px; height: 24px; font-size: .76rem; background: var(--gold); }
@media (max-width: 900px) { .guide-app { grid-template-columns: 1fr; } }

/* ---------- Round 49: the home page's dashboard tour, on a dark stage (index.html #inside, js/pages/home.js) ---------- */
.shw-sec { position: relative; overflow: hidden; color: var(--cream); background: radial-gradient(900px 420px at 50% 34%, rgba(199, 154, 73, .28), transparent 70%), radial-gradient(700px 500px at 100% 100%, rgba(181, 86, 45, .22), transparent 70%), linear-gradient(180deg, #2B180D, #3C2415 55%, #2B180D); }
.shw-sec h2 { color: var(--cream); } .shw-sec .accent { color: #E3B85C; } .shw-sec .eyebrow { color: var(--gold-dark-bg); }
.shw-intro { text-align: center; max-width: 720px; margin: 0 auto 34px; } .shw-intro .lead { color: rgba(250, 246, 239, .82); margin: 12px auto 0; }
.shw-wrap { position: relative; max-width: 880px; margin: 0 auto; }
.shw-wrap::before { content: ""; position: absolute; inset: 8% 6% -6%; border-radius: 40px; background: radial-gradient(closest-side, rgba(227, 184, 92, .45), transparent); filter: blur(30px); z-index: 0; }
.shw-sec .shw-app { position: relative; z-index: 1; border-radius: 24px; box-shadow: 0 40px 80px -24px rgba(0, 0, 0, .65), 0 0 0 1px rgba(255, 255, 255, .08); }
.shw-sec .shw-stage { min-height: 360px; padding: 20px 22px; }
.shw-sec .shw-tabs { padding: 9px 12px 7px; } .shw-sec .shw-tabs span { font-size: .78rem; padding: 6px 12px; }
.shw-sec .shw-top { padding: 11px 16px; }
.shw-sec .shw-time i { animation-duration: 5.5s; }
.shw-sec .shw-nw .value { font-size: 2.2rem; }
.shw-sec .shw-gauge svg { width: 130px; }
.shw-ptr { position: absolute; left: 0; top: 0; z-index: 4; width: 22px; height: 22px; pointer-events: none; opacity: 0; transition: transform .6s cubic-bezier(.3, .7, .2, 1), opacity .3s; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .35)); }
.shw-ptr svg { width: 22px; height: 22px; display: block; }
.shw-ptr i { position: absolute; left: -9px; top: -9px; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--gold); opacity: 0; }
.shw-ptr.click i { animation: shwClick .6s ease-out; }
@keyframes shwClick { 0% { opacity: .9; transform: scale(.3); } 100% { opacity: 0; transform: scale(1.6); } }
.shw-toasts { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.shw-toast { position: absolute; display: flex; align-items: center; gap: 10px; min-width: 210px; max-width: 250px; padding: 10px 14px 10px 10px; border-radius: 16px; background: #fff; color: var(--ink); box-shadow: 0 18px 40px -10px rgba(0, 0, 0, .55); opacity: 0; transform: translateY(14px) scale(.96); transition: opacity .45s ease, transform .55s cubic-bezier(.2, .8, .2, 1); }
.shw-toast.t0 { left: -178px; top: 30%; } .shw-toast.t1 { right: -170px; bottom: 22%; }
.shw-toast.on { opacity: 1; transform: none; } .shw-toast.t1.on { transition-delay: .35s; }
.shw-toast > span { flex: none; width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: linear-gradient(135deg, #D9AE63, #C79A49); }
.shw-toast > span .ic { width: 19px; height: 19px; } .shw-toast > span .ic * { stroke: #fff; }
.shw-toast b { display: block; font-size: .84rem; color: var(--espresso); } .shw-toast small { display: block; font-size: .78rem; color: var(--ink-soft); font-weight: 700; }
.shw-toast.on { animation: shwBob 4s ease-in-out .6s infinite; }
@keyframes shwBob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -5px; } }
.shw-sec .shw-cap { text-align: center; color: rgba(250, 246, 239, .85); max-width: 640px; margin: 22px auto 0; }
.shw-sec .shw-cap b { color: #fff; }
.shw-sec .shw-dots button { background: transparent; border-color: rgba(250, 246, 239, .3); color: rgba(250, 246, 239, .85); padding: 6px 13px; font-size: .8rem; }
.shw-sec .shw-dots button:hover { border-color: var(--gold); }
.shw-sec .shw-dots button[aria-pressed="true"] { background: var(--bmc-yellow); border-color: var(--bmc-yellow); color: var(--espresso); }
.shw-sec .shw-note { text-align: center; color: rgba(250, 246, 239, .55); }
/* the market ticker on My money runs along */
.shw-tick { overflow: hidden; flex-wrap: nowrap; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.shw-tick-run { display: flex; gap: 6px; width: max-content; }
.shw-slide.on .shw-tick-run { animation: shwRun 18s linear infinite; }
@keyframes shwRun { to { transform: translateX(-50%); } }
.shw-tick-run span { flex: none; }
/* What if */
.shw-wi { display: flex; flex-direction: column; gap: 2px; }
.shw-wi small { color: var(--ink-soft); font-weight: 700; font-size: .8rem; }
.shw-wi > b { font-family: "Manrope", var(--font-sans); font-size: 2rem; font-weight: 800; color: var(--espresso); line-height: 1.15; }
.shw-wi .chip { align-self: flex-start; }
.shw-wi-ch { margin: 4px 0; }
.shw-wi-rank { display: flex; flex-direction: column; gap: 6px; }
.shw-wi-rank > div { display: grid; grid-template-columns: 10px minmax(0, 1.3fr) minmax(0, 1fr) 56px; gap: 8px; align-items: center; font-size: .8rem; }
.shw-wi-rank > div > i { width: 10px; height: 10px; border-radius: 3px; }
.shw-wi-rank span { color: var(--ink-soft); font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shw-wi-bar { height: 8px; border-radius: 5px; background: var(--cream); overflow: hidden; } .shw-wi-bar i { display: block; height: 100%; width: var(--w); border-radius: 5px; }
.shw-slide.on .shw-wi-bar i { animation: shwGrow .9s cubic-bezier(.2, .8, .2, 1) both; }
.shw-slide.on .shw-wi-ch .shw-line { stroke-dasharray: 600; animation: shwDraw 1.6s ease both; }
/* What's inside, in ten lines, and the way in */
.shw-feats { list-style: none; padding: 0; margin: 46px auto 0; max-width: 1060px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.shw-feats li { display: flex; flex-direction: column; gap: 4px; padding: 14px; border-radius: 16px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); transition: background .2s, transform .2s; }
.shw-feats li:hover { background: rgba(255, 255, 255, .1); transform: translateY(-2px); }
.shw-feats .ic { width: 30px; height: 30px; padding: 6px; border-radius: 9px; background: rgba(227, 184, 92, .18); box-sizing: border-box; }
.shw-feats .ic * { stroke: #E3B85C; }
.shw-feats b { color: #fff; font-size: .92rem; margin-top: 4px; } .shw-feats small { color: rgba(250, 246, 239, .7); font-size: .8rem; line-height: 1.4; }
.shw-cta { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 34px; }
.shw-cta .btn { font-size: 1.05rem; padding: 15px 30px; }
.shw-cta span { color: rgba(250, 246, 239, .7); font-size: .86rem; }
@media (max-width: 1260px) { .shw-toast.t0 { left: 18px; top: -30px; } .shw-toast.t1 { right: 18px; top: auto; bottom: -30px; } } /* (on the window's top and bottom edges, clear of the figures) */
@media (max-width: 980px) { .shw-feats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) { .shw-toast { min-width: 0; max-width: 72%; padding: 7px 10px 7px 7px; border-radius: 12px; } .shw-toast > span { width: 28px; height: 28px; border-radius: 8px; }
  .shw-toast.t0 { left: auto; right: 8px; top: -22px; } .shw-toast.t1 { display: none; } .shw-sec .shw-stage { min-height: 320px; padding: 16px; } .shw-sec .shw-nw .value { font-size: 1.8rem; } }
@media (max-width: 560px) { .shw-sec .shw-tabs span:nth-child(n+4) { display: none; } .shw-wi-rank > div { grid-template-columns: 10px minmax(0, 1fr) 50px; } .shw-wi-bar { display: none; } .shw-feats { gap: 8px; } .shw-feats li { padding: 12px; } }
@media (prefers-reduced-motion: reduce) { .shw-ptr { display: none; } .shw-toast, .shw-toast.on { transition: none; animation: none; } .shw-slide.on .shw-tick-run { animation: none; } }
.shw-sec .shw-fut { display: block; height: 170px; width: auto; max-width: 100%; margin: 0 auto; }
.shw-sec .shw-wi-ch { width: 100%; height: 150px; }
.shw-wi-ch path { vector-effect: non-scaling-stroke; }
.shw-sec .shw-slide { justify-content: center; }
@media (min-width: 701px) { .shw-sec .shw-mix { grid-template-columns: 180px minmax(0, 1fr); gap: 22px; } .shw-sec .shw-ring { width: 180px; height: 180px; } .shw-sec .shw-legend > div { font-size: .88rem; } }
.shw-stage { grid-template-columns: minmax(0, 1fr); } .shw-slide { min-width: 0; } /* (the running ticker must not widen the screens) */

/* Round 49: the spending calendar before it has any days (js/dashboard-insights.js renderHeatmap) */
.hm-empty { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 18px; align-items: center; }
.hm-ghost { display: grid; grid-template-rows: repeat(7, 1fr); grid-auto-flow: column; gap: 4px; opacity: .45; filter: saturate(.8); }
.hm-ghost i { display: block; aspect-ratio: 1; border-radius: 4px; background: #F3ECE1; }
.hm-ghost .l1 { background: #F1D596; } .hm-ghost .l2 { background: #E3B85C; } .hm-ghost .l3 { background: #C79A49; } .hm-ghost .l4 { background: #8B5A3C; }
.hm-empty-t b { display: block; font-size: 1.05rem; color: var(--espresso); } .hm-empty-t p { margin: 6px 0 12px; color: var(--ink-soft); font-size: .9rem; }
@media (max-width: 700px) { .hm-empty { grid-template-columns: 1fr; } .hm-ghost { max-width: 100%; overflow: hidden; } }

/* Round 50: richer showcase screens. The dark section's cream text must not reach inside the white window. */
.shw-sec .shw-app { color: var(--ink); }
.shw-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.shw-colL, .shw-colR { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.shw-trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.shw-trio > div { background: var(--cream); border-radius: 12px; padding: 9px 10px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.shw-trio small { font-size: .7rem; color: var(--ink-soft); font-weight: 700; } .shw-trio b { font-size: 1.05rem; color: var(--espresso); }
.shw-trio em { font-size: .68rem !important; text-align: left !important; white-space: normal !important; }
.shw-flow { background: var(--cream); border-radius: 14px; padding: 10px 12px; }
.shw-flow-h { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; font-size: .8rem; color: var(--espresso); }
.shw-flow-h span { display: inline-flex; align-items: center; gap: 4px; font-size: .7rem; color: var(--ink-soft); font-weight: 700; }
.shw-flow-h i { width: 9px; height: 9px; border-radius: 3px; display: inline-block; margin-left: 6px; } .shw-flow-h i.in, .shw-bars .in { background: #6B8F5E; } .shw-flow-h i.out, .shw-bars .out { background: #C79A49; }
.shw-bars { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; height: 96px; margin-top: 8px; align-items: end; }
.shw-bars > div { position: relative; height: 100%; display: flex; align-items: flex-end; justify-content: center; gap: 3px; padding-bottom: 16px; }
.shw-bars span { width: 38%; max-width: 14px; height: var(--h); border-radius: 4px 4px 0 0; }
.shw-slide.on .shw-bars span { animation: shwRise .8s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--k) * 60ms); transform-origin: bottom; }
@keyframes shwRise { from { transform: scaleY(0); } }
.shw-bars small { position: absolute; bottom: 0; left: 0; right: 0; text-align: center; font-size: .66rem; color: var(--ink-soft); font-weight: 700; }
.shw-flow-f { margin: 6px 0 0; font-size: .76rem; color: var(--ink-soft); } .shw-flow-f b.good { color: var(--good); }
.shw-score { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 10px; align-items: center; background: var(--cream); border-radius: 14px; padding: 8px 12px; }
.shw-score svg { width: 96px; } .shw-score b { font-size: 1.4rem; color: var(--espresso); } .shw-score b small { font-size: .7rem; color: var(--ink-soft); }
.shw-score div { display: flex; flex-direction: column; } .shw-score span { font-size: .74rem; font-weight: 700; color: var(--ink-soft); } .shw-score em { font-size: .72rem !important; color: var(--roast) !important; text-align: left !important; white-space: normal !important; }
.shw-hold { display: flex; flex-direction: column; gap: 4px; }
.shw-hold-h { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; font-size: .82rem; color: var(--espresso); margin-bottom: 2px; } .shw-hold-h span { font-weight: 700; font-size: .78rem; }
.shw-hold > div:not(.shw-hold-h) { display: grid; grid-template-columns: minmax(0, 1fr) auto 64px; gap: 8px; align-items: center; padding: 5px 8px; border-radius: 10px; background: var(--cream); font-size: .78rem; }
.shw-hold > div > span { display: flex; flex-direction: column; min-width: 0; } .shw-hold > div > span b { color: var(--espresso); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shw-hold > div > span small { color: var(--ink-soft); font-size: .68rem; } .shw-hold > div > b { text-align: right; color: var(--espresso); }
.shw-slide.on .shw-hold > div:not(.shw-hold-h) { animation: shwIn .45s ease both; } .shw-slide.on .shw-hold > div:nth-child(3) { animation-delay: .06s; } .shw-slide.on .shw-hold > div:nth-child(4) { animation-delay: .12s; } .shw-slide.on .shw-hold > div:nth-child(5) { animation-delay: .18s; } .shw-slide.on .shw-hold > div:nth-child(6) { animation-delay: .24s; } .shw-slide.on .shw-hold > div:nth-child(7) { animation-delay: .3s; }
.shw-leak { grid-template-columns: 30px minmax(0, 1fr) auto; padding: 8px 10px; }
.shw-leak > span:first-of-type { display: flex; flex-direction: column; min-width: 0; color: var(--ink); } .shw-leak > span:first-of-type b { color: var(--espresso); font-size: .84rem; }
.shw-leak small { display: inline; } .shw-why { font-size: .72rem !important; font-weight: 600 !important; color: var(--ink-soft); text-align: left !important; white-space: normal !important; }
.shw-lv { display: flex; flex-direction: column; align-items: flex-end; } .shw-lv small { color: var(--ink-soft) !important; text-transform: none !important; letter-spacing: 0 !important; font-weight: 700; }
.shw-fix { font-size: .68rem !important; color: var(--good); }
.shw-msg { background: #FFF6D6; border-radius: 12px 12px 12px 4px; padding: 9px 12px; font-size: .8rem; color: var(--espresso); font-style: italic; }
.shw-plan { display: flex; flex-direction: column; gap: 7px; background: var(--cream); border-radius: 14px; padding: 10px 12px; } .shw-plan > b { color: var(--espresso); font-size: .86rem; }
.shw-plan .shw-todo { align-items: flex-start; font-size: .8rem; } .shw-plan .shw-todo small { display: block; color: var(--ink-soft); font-size: .7rem; text-decoration: none; }
.shw-slide.on .shw-plan .shw-todo { animation: shwIn .45s ease both; }
.shw-hm { background: var(--cream); border-radius: 14px; padding: 10px 12px; }
.shw-hm-m { display: grid; grid-template-columns: repeat(6, 1fr); font-size: .66rem; font-weight: 700; color: var(--ink-soft); margin-bottom: 4px; }
.shw-hm-g { display: grid; grid-template-rows: repeat(7, 1fr); grid-auto-flow: column; gap: 3px; }
.shw-hm-g i { display: block; aspect-ratio: 1; border-radius: 3px; background: #E9E2D6; }
.shw-hm-g .l1 { background: #F1D596; } .shw-hm-g .l2 { background: #E3B85C; } .shw-hm-g .l3 { background: #C79A49; } .shw-hm-g .l4 { background: #8B5A3C; }
.shw-slide.on .shw-hm-g i { animation: shwPop .3s ease both; animation-delay: calc(var(--k) * 4ms); }
.shw-hm-f { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-top: 8px; font-size: .7rem; font-weight: 700; color: var(--ink-soft); }
.shw-hm-f .shw-leg i { width: 10px; height: 10px; border-radius: 3px; }
@media (max-width: 700px) { .shw-cols { grid-template-columns: 1fr; } .shw-sec .shw-stage { min-height: 0; } .shw-trio b { font-size: .92rem; } .shw-hold > div:nth-child(n+6) { display: none; } }
.shw-sec .shw-slide { justify-content: flex-start; }

/* Round 51: showcase — colourful budget lines, the auditor's target mix and report, a fuller future */
.shw-row .shw-dot { display: inline-block; width: 8px; height: 8px; border-radius: 3px; margin-right: 6px; vertical-align: 1px; }
.shw-row b em { font-size: .64rem !important; text-transform: uppercase; letter-spacing: .04em; margin-left: 4px; }
.shw-av .ic { width: 20px; height: 20px; } .shw-av .ic * { stroke: #FFDD00; }
.shw-mixt { background: var(--cream); border-radius: 12px; padding: 9px 12px; font-size: .8rem; color: var(--espresso); } .shw-mixt small { color: var(--ink-soft); font-size: .7rem; }
.shw-mixbar { display: flex; height: 12px; border-radius: 6px; overflow: hidden; margin: 7px 0 6px; } .shw-mixbar i { display: block; width: var(--w); height: 100%; }
.shw-slide.on .shw-mixbar i { animation: shwGrow .9s cubic-bezier(.2, .8, .2, 1) both; }
.shw-mixl { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: .7rem; font-weight: 700; color: var(--ink-soft); } .shw-mixl i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 4px; }
.shw-pdf { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 10px; align-items: center; border: 1.5px dashed #D9C6A3; border-radius: 12px; padding: 8px 10px; background: #fff; }
.shw-pdf > span { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: #F7E1DC; } .shw-pdf > span .ic { width: 18px; height: 18px; } .shw-pdf > span .ic * { stroke: #C0442C; }
.shw-pdf b { display: block; font-size: .8rem; color: var(--espresso); } .shw-pdf small { font-size: .68rem; color: var(--ink-soft); }
.shw-pdf em { font-style: normal !important; font-size: .72rem !important; font-weight: 800; color: #fff; background: var(--espresso); border-radius: 999px; padding: 5px 10px; }
.shw-fh { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.shw-fh > div { background: var(--cream); border-radius: 12px; padding: 8px 10px; display: flex; flex-direction: column; min-width: 0; }
.shw-fh small { font-size: .68rem; font-weight: 700; color: var(--ink-soft); } .shw-fh b { font-size: 1.05rem; color: var(--espresso); } .shw-fh b.good { color: var(--good); } .shw-fh em { font-size: .66rem !important; text-align: left !important; }
.shw-sec .shw-fut2 { height: 190px; width: 100%; }
.shw-futl { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; font-size: .72rem; font-weight: 700; color: var(--ink-soft); }
.shw-futl i { display: inline-block; width: 12px; height: 4px; border-radius: 2px; margin-right: 5px; vertical-align: 2px; } .shw-futl i.fl-dash { border-top: 2px dashed #9A9188; height: 0; }
.shw-futs { margin-left: auto; background: #FFF6D6; color: var(--espresso); border-radius: 999px; padding: 4px 10px; }
@media (max-width: 700px) { .shw-fh { grid-template-columns: repeat(2, minmax(0, 1fr)); } .shw-futs { margin-left: 0; } .shw-sec .shw-fut2 { height: 150px; } }

/* Round 52: fuller Overview and My money screens in the home tour */
.shw-sec .shw-bars { grid-template-columns: repeat(var(--n, 6), 1fr); gap: 4px; height: 150px; }
.shw-sec .shw-bars span { width: 42%; max-width: 12px; }
.shw-sec .shw-bars small { font-size: .58rem; }
.shw-flow-s { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 6px; font-size: .72rem; color: var(--ink-soft); font-weight: 700; } .shw-flow-s b { color: var(--espresso); } .shw-flow-s b.good { color: var(--good); }
.shw-nw .sub b.shw-today.down { color: #FFB4A3; }
.shw-alerts, .shw-up, .shw-loans { background: var(--cream); border-radius: 14px; padding: 9px 12px; display: flex; flex-direction: column; gap: 6px; }
.shw-alerts > b, .shw-up > b, .shw-loans > b { font-size: .8rem; color: var(--espresso); }
.shw-al { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 8px; align-items: center; }
.shw-al i { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: #fff; } .shw-al i .ic { width: 14px; height: 14px; }
.shw-al.warn i { background: #FFF1D6; } .shw-al.bad i { background: #FBE3DD; } .shw-al.good i { background: #E2F2E7; }
.shw-al b { display: block; font-size: .76rem; color: var(--espresso); } .shw-al small { font-size: .68rem; color: var(--ink-soft); }
.shw-slide.on .shw-al { animation: shwIn .45s ease both; } .shw-slide.on .shw-al:nth-of-type(2) { animation-delay: .1s; } .shw-slide.on .shw-al:nth-of-type(3) { animation-delay: .2s; }
.shw-up > div { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.shw-up span { background: #fff; border-radius: 10px; padding: 6px 8px; font-size: .7rem; font-weight: 700; color: var(--ink); display: flex; flex-direction: column; min-width: 0; }
.shw-up small { color: var(--gold); font-size: .62rem; font-weight: 800; } .shw-up span b { color: var(--espresso); }
.shw-today-c { background: linear-gradient(135deg, #3C2415, #5A3722); color: #fff; border-radius: 14px; padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; }
.shw-today-c small { font-size: .7rem; opacity: .8; font-weight: 700; } .shw-today-c b { display: block; font-size: 1.3rem; } .shw-today-c b.bad { color: #FFB4A3; }
.shw-today-c em { font-size: .7rem !important; text-align: left !important; } .shw-today-c em.bad { color: #FFB4A3 !important; } .shw-today-c em.good { color: #9BE0B5 !important; }
.shw-movers { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: .7rem; font-weight: 700; color: rgba(255, 255, 255, .85); }
.shw-loans > div { display: grid; grid-template-columns: minmax(0, 1fr) 60px auto; gap: 8px; align-items: center; font-size: .74rem; }
.shw-loans > div > span:first-child { display: flex; flex-direction: column; min-width: 0; } .shw-loans small { font-size: .64rem; color: var(--ink-soft); } .shw-loans > div > b { color: var(--espresso); text-align: right; }
.shw-lbar { height: 6px; border-radius: 4px; background: #E9DFD0; overflow: hidden; } .shw-lbar i { display: block; height: 100%; width: var(--w); background: #B5562D; border-radius: 4px; }
.shw-slide.on .shw-lbar i { animation: shwGrow .9s cubic-bezier(.2, .8, .2, 1) both; }
@media (max-width: 700px) { .shw-up > div { grid-template-columns: repeat(2, minmax(0, 1fr)); } .shw-sec .shw-bars { height: 120px; } }
.shw-up small { font-size: .68rem; } .shw-sec .shw-bars small { font-size: .64rem; }

/* Round 52: the simulator's swap ("what if what I own had been something else") */
.sx-srcs { margin-bottom: 6px; } .sx-srcs .sx-chip { display: inline-flex; align-items: center; gap: 6px; } .sx-srcs .ic { width: 15px; height: 15px; }
.sx-srcs .sx-chip[aria-pressed="true"] .ic * { stroke: #fff; }
.sx-keep { margin: -4px 0 8px; font-size: .86rem; color: var(--ink-soft); } .sx-keep b { color: var(--espresso); }
/* Community screen in the home tour */
.shw-feed { gap: 8px; }
.shw-post { background: var(--cream); border-radius: 14px; padding: 9px 12px; } .shw-post.team { background: #FFF6D6; }
.shw-post-h { display: flex; align-items: center; gap: 7px; font-size: .78rem; } .shw-post-h b { color: var(--espresso); } .shw-post-h small { margin-left: auto; color: var(--gold); font-weight: 800; font-size: .66rem; text-transform: uppercase; letter-spacing: .04em; }
.shw-post-h .chip { font-size: .62rem; padding: 2px 7px; }
.shw-pav { width: 24px; height: 24px; border-radius: 50%; background: var(--espresso); display: grid; place-items: center; } .shw-pav .ic { width: 13px; height: 13px; } .shw-pav .ic * { stroke: #FFDD00; }
.shw-post p { margin: 5px 0 6px; font-size: .78rem; line-height: 1.45; color: var(--ink); }
.shw-post-f { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font-size: .68rem; font-weight: 700; color: var(--ink-soft); }
.shw-post-f .ic { width: 12px; height: 12px; vertical-align: -2px; } .shw-tag { background: #fff; border-radius: 999px; padding: 2px 8px; }
.shw-slide.on .shw-post { animation: shwIn .45s ease both; } .shw-slide.on .shw-post:nth-child(2) { animation-delay: .12s; } .shw-slide.on .shw-post:nth-child(3) { animation-delay: .24s; }
.shw-trend { background: var(--cream); border-radius: 14px; padding: 9px 12px; display: flex; flex-direction: column; gap: 6px; } .shw-trend > b { font-size: .8rem; color: var(--espresso); }
.shw-trend > div { display: flex; justify-content: space-between; align-items: center; gap: 8px; background: #fff; border-radius: 10px; padding: 6px 9px; }
.shw-trend > div > span { display: flex; flex-direction: column; } .shw-trend b { font-size: .76rem; color: var(--espresso); } .shw-trend small { font-size: .66rem; color: var(--ink-soft); }
.shw-ask { display: flex; align-items: center; gap: 8px; border: 1.5px dashed #D9C6A3; border-radius: 12px; padding: 8px 10px; font-size: .76rem; color: var(--ink-soft); background: #fff; } .shw-ask .ic { width: 16px; height: 16px; flex: none; }
.shw-note2 { margin: 0; font-size: .66rem; color: var(--ink-soft); }

/* Round 53: the phone menu. While the menu is open, the floating Feedback / Ask Bean / WhatsApp buttons step aside
   (they sat on top of "Log out"), and the menu fits the visible screen (100dvh leaves out the browser's own bars). */
body:has(.nav-links.open) .fb, body:has(.nav-links.open) .bean-btn, body:has(.nav-links.open) .wa-float { display: none; }
.nav-links.open { max-height: calc(100dvh - 76px); padding-bottom: calc(32px + env(safe-area-inset-bottom, 0px)); }

/* Round 54: "Download our app" (js/main.js nudgeOpen). A standard one-line app banner: icon, name, a short line, one
   button and ×. Slides up at the bottom on phones, sits in the bottom-right corner on computers. The floating
   Feedback / Bean / WhatsApp buttons step aside while it is open. */
.inst { position: fixed; z-index: 90; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom, 0px)); max-width: 460px; margin: 0 auto;
  display: flex; align-items: center; gap: 10px; padding: 10px 4px 10px 10px;
  background: var(--white); color: var(--ink); border: 1px solid var(--line); border-radius: 18px;
  box-shadow: 0 18px 44px -16px rgba(60,36,21,.5), 0 2px 6px rgba(60,36,21,.08); animation: inst-up .4s cubic-bezier(.2,.8,.2,1) both; }
@media (min-width: 900px) { .inst { left: auto; right: 24px; bottom: 24px; width: 400px; margin: 0; } }
.inst.out { animation: inst-down .25s ease-in both; }
@keyframes inst-up { from { transform: translateY(24px); opacity: 0; } }
@keyframes inst-down { to { transform: translateY(24px); opacity: 0; } }
.inst-ic { flex: 0 0 44px; width: 44px; height: 44px; border-radius: 11px; box-shadow: 0 4px 10px -5px rgba(60,36,21,.5); }
.inst-txt { flex: 1 1 auto; min-width: 0; line-height: 1.3; }
.inst-txt b { display: block; font-size: .95rem; color: var(--espresso); }
.inst-txt span { display: block; font-size: .8rem; color: #6B5A4A; margin-top: 2px; }
.inst-txt .ic { width: 16px; height: 16px; vertical-align: -3px; color: #0A7AFF; }
.inst-go { flex: 0 0 auto; min-height: 40px; padding: 0 14px; font-size: .86rem; white-space: nowrap; }
.inst-x { flex: 0 0 32px; width: 32px; height: 40px; border: 0; background: none; font-size: 1.4rem; line-height: 1; color: #8A7A6A; border-radius: 50%; cursor: pointer; }
.inst-x:hover, .inst-x:focus-visible { background: var(--latte); color: var(--espresso); }
body:has(.inst) .fb, body:has(.inst) .bean-btn, body:has(.inst) .wa-float { display: none; }
.inst-done { position: fixed; z-index: 90; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); max-width: calc(100% - 32px);
  background: var(--espresso); color: var(--cream); font-weight: 700; font-size: .9rem; padding: 12px 18px; border-radius: 14px; box-shadow: 0 16px 40px -14px rgba(60,36,21,.7); animation: inst-up .4s ease both; }
.nav-install[hidden] { display: none !important; }
@media (prefers-reduced-motion: reduce) { .inst, .inst.out, .inst-done { animation: none; } }
@media print { .inst, .inst-done { display: none !important; } }

/* Round 55: the hero cup in real 3D (js/pages/home-cup3d.js): the WebGL picture sits between the drawn backdrop/steam and the number cards */
.hs-gl { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
/* The number cards as solid 3D tiles (js/pages/home-motion.js turns them, draws their edge and moves the sheen) */
.hs-c3d .hs-in { position: relative; animation: none; will-change: transform; backface-visibility: hidden;
  background: linear-gradient(165deg, #FFFFFF 0%, #FBF6EC 50%, #F0E4CF 100%); border: 1px solid rgba(255,255,255,.95); }
.hs-c3d .hs-in::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; /* (behind the text: the turning card is its own layer) */
  background: linear-gradient(115deg, rgba(255,255,255,0) calc(var(--sheen, 50%) - 22%), rgba(255,255,255,.8) var(--sheen, 50%), rgba(255,255,255,0) calc(var(--sheen, 50%) + 22%)); }
.hs-c3d .hs-in b { text-shadow: 0 1px 0 rgba(255,255,255,.9), 0 2px 5px rgba(60,36,21,.18); }
.hs-c3d .hs-ring, .hs-c3d .hs-bar, .hs-c3d .hs-spark-line { filter: drop-shadow(0 2px 2px rgba(60,36,21,.18)); }

/* Round 56: real 3D cups everywhere (js/cup3d.js). A 3D picture fills its box; the drawn SVG stays where 3D isn't available. */
.c3d { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; }
/* the story: the same brand cup as the hero; the account chips become solid tiles that rock gently */
.ss-gl { position: relative; width: 100%; aspect-ratio: 260 / 410; }
.ss-3d .ss-chip-in { background: linear-gradient(165deg, #FFFFFF 0%, #FBF6EC 55%, #F1E6D2 100%); border: 1px solid rgba(255,255,255,.95);
  box-shadow: 0 1px 0 #EFE3CE, 0 2px 0 #E6D6BC, 0 3px 0 #DCC7A6, 0 4px 0 #D1B88F, 0 5px 0 #C6A97D, 0 16px 24px -12px rgba(60,36,21,.5), inset 0 1px 0 #fff;
  animation: ss-rock 6s ease-in-out infinite; animation-delay: calc(var(--k, 0) * -.7s); }
@keyframes ss-rock { 0%, 100% { transform: perspective(500px) rotateX(8deg) rotateY(-10deg); } 50% { transform: perspective(500px) rotateX(4deg) rotateY(10deg) translateY(-3px); } }
/* the Brew Score: a porcelain cup on its saucer */
.sc-cup3d { position: relative; width: 150px; }
.sc-cup3d .sc-gl { position: relative; width: 100%; aspect-ratio: 1 / .86; }
.sc-cup3d .sc-steam { position: absolute; left: 47%; top: -6%; width: 24%; transform: translateX(-50%); overflow: visible; pointer-events: none; }
@media (max-width: 420px) { .sc-cup3d { width: 112px; } }
@media (prefers-reduced-motion: reduce) { .ss-3d .ss-chip-in { animation: none; transform: perspective(500px) rotateX(6deg); } }
/* Round 57: more real objects (js/cup3d.js) */
/* "Is your cup half full?": the glass beside the result */
.qc-head { display: flex; gap: 14px; align-items: flex-start; justify-content: space-between; }
.qc-head-txt { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.qc-glass-slot:empty { display: none; }
.qc-glass { margin: -6px 0 0; width: 118px; flex: 0 0 auto; text-align: center; }
.qc-gl { position: relative; width: 100%; aspect-ratio: 4 / 5; }
.qc-glass figcaption b { display: block; font-size: .78rem; color: var(--espresso); line-height: 1.25; }
.qc-glass figcaption span { display: block; font-size: .68rem; color: var(--ink-soft); line-height: 1.3; margin-top: 2px; }
@media (max-width: 520px) { .qc-glass { width: 92px; } }
/* the recipe: the latte mug */
.recipe-art.is3d .rg3d { position: relative; width: 100%; max-width: 380px; margin: 0 auto; aspect-ratio: 380 / 500; }
.rg3d .rg-gl { position: absolute; inset: 0; }
.rg3d .rg-steam3 { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
/* the seven pillars: gold coins */
.pb-coin.is3d { background: none; box-shadow: 0 12px 18px -10px rgba(0,0,0,.75); width: 56px; height: 56px; }
.pb-coin.is3d img { display: block; width: 100%; height: 100%; }
@media (max-width: 760px) { .pb-coin.is3d { width: 40px; height: 40px; } }
/* the team: gold seals */
.stat-band .big.is3d { line-height: 0; }
.seal3d { display: inline-block; width: 112px; height: 112px; filter: drop-shadow(0 14px 16px rgba(0,0,0,.45)); }
@media (max-width: 760px) { .seal3d { width: 80px; height: 80px; } }
/* Round 58: the story's accounts glide into the cup on their own when step 3 appears; the total follows */
.story-live .ss-chip { transition: transform 1s cubic-bezier(.55,0,.35,1), opacity .6s ease .45s; }
.story-live .ss-halo { transition: opacity .8s ease .9s, transform .8s ease .9s; }
.story-live .story-stage.done .ss-total { transition-delay: 1.3s; }
/* Round 58: richer Spending and Future screens in the home-page tour */
.shw-mb, .shw-buys, .shw-goals, .shw-mon { background: var(--cream); border-radius: 14px; padding: 10px 12px; display: flex; flex-direction: column; gap: 7px; }
.shw-mbars { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; height: 118px; align-items: end; }
.shw-mbars > div { position: relative; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 3px; padding-bottom: 15px; }
.shw-mbars span { width: 60%; max-width: 26px; height: var(--h); border-radius: 5px 5px 0 0; background: #D9C3A0; }
.shw-mbars span.now { background: #C79A49; }
.shw-mbars em { font-style: normal; font-size: .56rem; font-weight: 800; color: var(--ink-soft); white-space: nowrap; }
.shw-mbars small { position: absolute; bottom: 0; left: 0; right: 0; text-align: center; font-size: .62rem; color: var(--ink-soft); font-weight: 700; }
.shw-slide.on .shw-mbars span { animation: shwRise .8s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--k) * 70ms); transform-origin: bottom; }
.shw-buy, .shw-goals > div { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.shw-buy > i, .shw-goals > div > i { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: #fff; } .shw-buy > i .ic, .shw-goals > div > i .ic { width: 15px; height: 15px; }
.shw-buy b, .shw-goals b { font-size: .76rem; color: var(--espresso); } .shw-buy small { display: block; font-size: .64rem; color: var(--ink-soft); line-height: 1.3; }
.shw-buy-a { white-space: nowrap; font-size: .8rem !important; }
.shw-goals > b, .shw-mon > b { font-size: .8rem; color: var(--espresso); }
.shw-goals > div > span:nth-child(2) b { display: block; }
.shw-gbar { display: block; height: 6px; border-radius: 6px; background: #EADFCD; margin-top: 4px; overflow: hidden; } .shw-gbar i { display: block; height: 100%; width: var(--w); background: linear-gradient(90deg, #C79A49, #E3B85C); border-radius: 6px; }
.shw-gv { text-align: right; } .shw-gv b { display: block; } .shw-gv small { font-size: .62rem; font-weight: 800; }
.shw-mon { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } .shw-mon > b { grid-column: 1 / -1; }
.shw-mon > div { background: #fff; border-radius: 10px; padding: 7px 9px; } .shw-mon small { display: block; font-size: .64rem; color: var(--ink-soft); font-weight: 700; }
.shw-mon > div > b { display: block; font-size: .92rem; color: var(--espresso); } .shw-mon em { display: block; font-style: normal; font-size: .6rem; color: var(--ink-soft); line-height: 1.3; }
.shw-fut-more { margin-top: 10px; }
/* Round 58: the debt payoff engine (calculator and dashboard) */
.db-cmp { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.db-t { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; display: flex; flex-direction: column; gap: 3px; }
.db-t.on { border-color: var(--espresso); box-shadow: 0 0 0 1px var(--espresso) inset; }
.db-t small { font-size: .72rem; color: var(--ink-soft); font-weight: 700; } .db-t b { font-size: 1.02rem; color: var(--espresso); } .db-t em { font-style: normal; font-size: .76rem; color: var(--ink-soft); } .db-t .chip { align-self: flex-start; margin-top: 2px; }
.db-say { margin: 0; font-size: .92rem; }
.db-tl { background: var(--white); border-radius: 14px; padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.db-tl-h { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; font-size: .86rem; } .db-tl-h span { display: inline-flex; gap: 6px; align-items: center; font-size: .74rem; color: var(--ink-soft); font-weight: 700; }
.db-tl-h i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; } .db-tl-h i.av, .db-bar.av { background: var(--espresso); } .db-tl-h i.sb, .db-bar.sb { background: var(--gold); }
.db-lane { display: grid; grid-template-columns: minmax(90px, 30%) minmax(0, 1fr); gap: 10px; align-items: center; }
.db-ln b { display: block; font-size: .82rem; } .db-ln small { font-size: .7rem; color: var(--ink-soft); }
.db-lb { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3px 8px; align-items: center; }
.db-bar { display: block; height: 9px; width: var(--w); min-width: 4px; border-radius: 6px; } .db-lb small { font-size: .68rem; color: var(--ink-soft); white-space: nowrap; }
.db-steps { background: var(--white); border-radius: 14px; padding: 12px; } .db-steps > b { font-size: .9rem; }
.db-steps ol, .db-steps-l { margin: 8px 0 0; padding: 0; list-style: none; counter-reset: dbs; display: flex; flex-direction: column; gap: 10px; }
.db-steps li, .db-steps-l li { counter-increment: dbs; display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 2px 10px; font-size: .86rem; line-height: 1.45; }
.db-steps li::before, .db-steps-l li::before { content: counter(dbs); grid-row: span 2; width: 26px; height: 26px; border-radius: 50%; background: var(--espresso); color: var(--cream); font-weight: 800; font-size: .76rem; display: grid; place-items: center; }
.db-when { font-weight: 800; color: var(--espresso); } .db-when small { font-weight: 600; color: var(--ink-soft); margin-left: 4px; }
.db-steps em, .db-steps-l em { display: block; font-style: normal; font-weight: 700; margin-top: 2px; }
@media (max-width: 560px) { .db-cmp { grid-template-columns: 1fr; } .db-lane { grid-template-columns: 1fr; } }
.shw-sec .shw-mon em, .shw-sec .shw-buy small { white-space: normal; text-align: left; overflow: visible; text-overflow: clip; }
/* Round 59 (stage 1): the money leak check, the score over time, your data, the job-offer comparison */
.lk-kpis > div.warn b { color: #9C5A10; } .lk-kpis > div.good b { color: var(--good); }
.lk-sec { margin-top: 16px; } .lk-sec-h { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.lk-sec-h b { font-size: .95rem; color: var(--espresso); } .lk-sec-h small { font-size: .78rem; color: var(--ink-soft); }
.lk-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.lk-item { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); }
.lk-item.bad { border-left: 4px solid var(--bad); } .lk-item.warn { border-left: 4px solid #D9A441; } .lk-item.ask { border-left: 4px solid var(--gold); } .lk-item.cancel { background: #FFF8EC; } .lk-item.keep { opacity: .85; }
.lk-i { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--cream); } .lk-i .ic { width: 17px; height: 17px; }
.lk-t b { display: block; font-size: .9rem; color: var(--espresso); line-height: 1.35; } .lk-t small { font-size: .78rem; color: var(--ink-soft); }
.lk-act { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; justify-content: flex-end; }
.lk-how { margin-top: 8px; padding: 10px 12px; background: var(--cream); border-radius: 10px; font-size: .84rem; line-height: 1.5; }
.lk-how p { margin: 0 0 6px; } .lk-how ol { margin: 0 0 6px; padding-left: 18px; } .lk-how li { margin: 2px 0; }
.lk-clear { display: flex; gap: 8px; align-items: center; margin: 14px 0 0; padding: 10px 12px; border-radius: 12px; background: #EEF7F1; color: #1E6B42; font-weight: 700; font-size: .88rem; }
.lk-note { margin: 14px 0 0; }
.lk-empty { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.lk-ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--cream); } .lk-empty b { color: var(--espresso); } .lk-empty p { margin: 2px 0 0; font-size: .86rem; color: var(--ink-soft); }
@media (max-width: 640px) { .lk-item { grid-template-columns: 30px minmax(0, 1fr); } .lk-act { grid-column: 1 / -1; justify-content: flex-start; } .lk-empty { grid-template-columns: 40px minmax(0, 1fr); } .lk-empty .btn { grid-column: 1 / -1; justify-self: start; } }
.stmt-leaks { list-style: none; margin: 0 0 6px; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.stmt-leaks li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 10px; border-radius: 10px; background: var(--cream); font-size: .88rem; }
.stmt-leaks li.bad { border-left: 3px solid var(--bad); } .stmt-leaks li.warn { border-left: 3px solid #D9A441; } .stmt-leaks small { color: var(--ink-soft); white-space: nowrap; }
.score-trend { margin-top: 10px; } .st-row { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; }
.st-spark { width: 200px; height: 44px; } .st-say { margin: 0; font-size: .84rem; color: var(--ink-soft); } .st-say b { color: var(--espresso); } .st-say b.good { color: var(--good); } .st-say b.bad { color: var(--bad); }
.st-note { margin: 0; text-align: center; font-size: .8rem; color: var(--ink-soft); display: flex; gap: 6px; align-items: center; justify-content: center; } .st-note .ic { width: 15px; height: 15px; }
.yd-btns { display: inline-flex; gap: 12px; flex-wrap: wrap; }
.db-cmp2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .db-t em + em { margin-top: -2px; }
@media (max-width: 560px) { .db-cmp2 { grid-template-columns: 1fr; } }

/* ===== Round 60: cash flow 30 days ahead ===== */
.bp-fwd { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0 0 14px; }
.bp-fwd > div { padding: 12px 14px; border-radius: 14px; background: var(--white); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.bp-fwd > div.main { background: linear-gradient(160deg, #3C2415, #5A3825); border-color: transparent; color: #FBF4E8; box-shadow: 0 8px 22px rgba(60, 36, 21, .18); }
.bp-fwd small { font-size: .74rem; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; color: var(--ink-soft); }
.bp-fwd b { font-size: 1.22rem; color: var(--espresso); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.bp-fwd em { font-style: normal; font-size: .76rem; color: var(--ink-soft); }
.bp-fwd > div.bad b { color: var(--bad); } .bp-fwd > div.warn b { color: #9C5A10; }
.bp-fwd > div.main small, .bp-fwd > div.main em { color: rgba(251, 244, 232, .78); } .bp-fwd > div.main b { color: #FFE9A8; }
.bp-fwd > div.main.bad b { color: #FFB4A3; }
.bp-fromstmt { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 10px; align-items: center; margin: 0 0 14px; padding: 10px 12px; border-radius: 12px; border: 1px dashed var(--gold); background: #FFFBF2; font-size: .88rem; }
.bp-fromstmt .ic { width: 18px; height: 18px; } .bp-fromstmt small { display: block; font-size: .78rem; color: var(--ink-soft); }
@media (max-width: 560px) { .bp-fwd { grid-template-columns: 1fr 1fr; } .bp-fwd > div.main { grid-column: 1 / -1; order: -1; } .bp-fromstmt { grid-template-columns: 22px minmax(0, 1fr); } .bp-fromstmt .btn { grid-column: 1 / -1; justify-self: start; } }
.rb-chart { margin: 14px 0 6px; padding: 12px 12px 8px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); }
.rb-chart svg { display: block; width: 100%; height: auto; }
.rb-leg { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 6px; font-size: .78rem; color: var(--ink-soft); }
.rb-leg i { display: inline-block; width: 12px; height: 4px; border-radius: 2px; margin-right: 6px; vertical-align: middle; }
.rb-leg i.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--espresso); }
/* ===== Round 60: income that changes month to month ===== */
.irr-tiles { margin-bottom: 12px; } .irr-range { font-size: 1.05rem !important; }
.irr-say { margin: 0 0 12px; font-size: .9rem; color: var(--ink); line-height: 1.5; } .irr-say.warn { color: #8A4A0A; }
.irr-acts { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; }
.irr-line { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 12px; margin-bottom: 10px; border-radius: 12px; background: var(--cream); font-size: .88rem; }
.irr-line .ic { width: 18px; height: 18px; } .irr-line.good { background: #EEF7F1; color: #1E6B42; } .irr-line.warn { background: #FFF6E5; }
.irr-buf { display: grid; gap: 6px; padding: 12px 14px; margin-bottom: 10px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); justify-items: start; }
.irr-buf-h { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; width: 100%; font-size: .9rem; } .irr-buf-h b { color: var(--espresso); } .irr-buf-h span { color: var(--ink-soft); font-size: .84rem; }
.irr-buf small { font-size: .8rem; color: var(--ink-soft); }
.irr-bar { display: block; width: 100%; height: 8px; border-radius: 99px; background: #F1E9DC; overflow: hidden; } .irr-bar i { display: block; width: var(--w); height: 100%; border-radius: 99px; background: linear-gradient(90deg, #6B8F5E, #8DB27E); }
.irr-rules { padding: 12px 14px; border-radius: 14px; background: #FFFBF2; border: 1px dashed var(--gold); font-size: .88rem; }
.irr-rules b { color: var(--espresso); } .irr-rules ol { margin: 6px 0 0; padding-left: 20px; line-height: 1.55; } .irr-rules li { margin: 3px 0; }
.irr-off { margin: 10px 0 0; font-size: .82rem; }
@media (max-width: 560px) { .irr-line { grid-template-columns: 20px minmax(0, 1fr); } .irr-line .btn, .irr-line .link-btn { grid-column: 1 / -1; justify-self: start; } }
/* ===== Round 60: snap a receipt ===== */
.td-snap { display: flex; align-items: center; gap: 10px; margin-top: 10px; padding: 10px 12px; border: 1.5px dashed var(--gold); border-radius: 14px; background: #FFFBF2; cursor: pointer; transition: background .15s, border-color .15s; }
.td-snap:hover, .td-snap:focus-within { background: #FFF4DC; border-color: var(--espresso); }
.td-snap > .ic { width: 22px; height: 22px; flex: none; color: var(--espresso); }
.td-snap span { display: flex; flex-direction: column; line-height: 1.3; } .td-snap b { font-size: .9rem; color: var(--espresso); } .td-snap small { font-size: .76rem; color: var(--ink-soft); }
.rc-reading { display: grid; gap: 8px; margin: 6px 0 14px; }
.rc-bar { display: block; height: 8px; border-radius: 99px; background: #F1E9DC; overflow: hidden; } .rc-bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #C79A49, #E3B85C); transition: width .3s ease; }
.rc-pct { margin: 0; font-size: .86rem; color: var(--ink-soft); }
.rc-kinds { flex-wrap: wrap; } .rc-kinds .td-kind[aria-pressed="true"] { background: var(--espresso); color: #FBF4E8; border-color: var(--espresso); }
.rc-note { display: flex; gap: 6px; align-items: center; justify-content: center; margin: 10px 0 0; } .rc-note .ic { width: 14px; height: 14px; }
.rc-acts { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
/* ===== Round 60: family emergency list ===== */
.em-intro { margin: 0 0 12px; font-size: .9rem; line-height: 1.55; }
.em-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
.em-t { display: grid; grid-template-columns: 34px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); }
.em-t > span { grid-row: 1 / 3; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--cream); } .em-t > span .ic { width: 17px; height: 17px; }
.em-t b { font-size: 1.15rem; color: var(--espresso); line-height: 1.1; } .em-t small { font-size: .76rem; color: var(--ink-soft); }
.em-t.ok > span { background: #EEF7F1; color: #1E6B42; }
.em-prog { display: grid; gap: 6px; margin-bottom: 12px; } .em-prog small { font-size: .8rem; color: var(--ink-soft); }
.em-sum { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 6px; }
.em-sum li { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 10px; padding: 8px 12px; border-radius: 10px; background: var(--cream); font-size: .86rem; } .em-sum b { color: var(--espresso); }
.em-acts { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; } .em-acts .btn .ic { width: 16px; height: 16px; vertical-align: -3px; }
.em-safe { display: flex; gap: 6px; align-items: flex-start; margin: 12px 0 0; } .em-safe .ic { width: 15px; height: 15px; flex: none; margin-top: 2px; }
.em-form { display: grid; gap: 12px; } .em-form input, .em-form textarea { font: inherit; padding: 9px 12px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--white); width: 100%; box-sizing: border-box; }
.em-form input:focus, .em-form textarea:focus { outline: none; border-color: var(--espresso); box-shadow: 0 0 0 4px rgba(255, 221, 0, .35); }
.em-form .af-f { display: grid; gap: 6px; }
.em-cset { border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px 12px; margin: 0; display: grid; gap: 8px; } .em-cset legend { font-weight: 700; color: var(--espresso); padding: 0 6px; font-size: .9rem; }
.em-crow { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 8px; }
@media (max-width: 640px) { .em-tiles { grid-template-columns: 1fr 1fr; } .em-crow { grid-template-columns: 1fr 1fr; } .em-crow input:first-child { grid-column: 1 / -1; } .em-sum li { grid-template-columns: 1fr; gap: 2px; } }
#em-sheet { display: none; }
@media print {
  body.em-printing > *:not(#em-sheet) { display: none !important; }
  body.em-printing { background: #fff !important; }
  body.em-printing #em-sheet { display: block; font-family: "Manrope", Arial, sans-serif; color: #111; font-size: 11pt; line-height: 1.45; }
  #em-sheet header { border-bottom: 2px solid #3C2415; padding-bottom: 8px; margin-bottom: 14px; }
  #em-sheet h1 { font-size: 20pt; margin: 0 0 4px; color: #3C2415; } #em-sheet header p { margin: 0; color: #555; font-size: 9.5pt; }
  #em-sheet h2 { font-size: 12.5pt; margin: 0 0 6px; color: #3C2415; } #em-sheet section { margin: 0 0 14px; break-inside: avoid; }
  #em-sheet table { width: 100%; border-collapse: collapse; font-size: 10pt; } #em-sheet th, #em-sheet td { text-align: left; border-bottom: 1px solid #ddd; padding: 5px 6px; vertical-align: top; }
  #em-sheet th { background: #F6EFE4; font-weight: 700; } #em-sheet td:last-child, #em-sheet th:last-child { text-align: right; }
  #em-sheet .em-two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; } #em-sheet .em-none { color: #777; margin: 0; }
  #em-sheet .em-note { white-space: pre-wrap; padding: 8px 10px; border-left: 3px solid #C79A49; background: #FBF6EE; }
  #em-sheet footer { margin-top: 18px; padding-top: 8px; border-top: 1px solid #ccc; font-size: 8.5pt; color: #555; }
}
/* ===== Round 61: your EMIs ===== */
.emi-tiles { margin-bottom: 12px; }
.emi-freed { display: flex; gap: 8px; align-items: flex-start; margin: 0 0 12px; padding: 10px 12px; border-radius: 12px; background: #EEF7F1; color: #1E6B42; font-size: .88rem; line-height: 1.5; } .emi-freed .ic { width: 18px; height: 18px; flex: none; margin-top: 2px; }
.emi-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.emi-item { padding: 12px 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--white); transition: box-shadow .15s, border-color .15s; }
.emi-item:hover { border-color: #E2D3BC; box-shadow: 0 6px 18px rgba(60, 36, 21, .06); } .emi-item.open { border-color: var(--gold); }
.emi-item.ended { opacity: .8; background: #FBF8F3; }
.emi-top { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.emi-ico { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--cream); } .emi-ico .ic { width: 19px; height: 19px; }
.emi-t b { display: block; font-size: .96rem; color: var(--espresso); } .emi-t small { display: block; font-size: .8rem; color: var(--ink-soft); }
.emi-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; } .emi-chips em { font-style: normal; font-size: .7rem; font-weight: 700; padding: 2px 8px; border-radius: 99px; background: #F4ECE0; color: #6B4A2E; }
.emi-amt { text-align: right; } .emi-amt b { display: block; font-size: 1.05rem; color: var(--espresso); font-variant-numeric: tabular-nums; } .emi-amt small { font-size: .74rem; color: var(--ink-soft); }
.emi-bar { display: block; height: 7px; margin: 10px 0 0; border-radius: 99px; background: #F1E9DC; overflow: hidden; } .emi-bar i { display: block; width: var(--w); height: 100%; border-radius: 99px; background: linear-gradient(90deg, #C79A49, #E3B85C); }
.emi-nums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.emi-nums span { display: flex; flex-direction: column; padding: 6px 10px; border-radius: 10px; background: #FBF8F3; } .emi-nums small { font-size: .72rem; color: var(--ink-soft); } .emi-nums b { font-size: .92rem; color: var(--espresso); font-variant-numeric: tabular-nums; } .emi-nums b.bad { color: var(--bad); }
.emi-ask { margin: 8px 0 0; font-size: .8rem; color: #8A5A00; }
.emi-hidden { display: flex; gap: 6px; align-items: flex-start; margin: 8px 0 0; padding: 8px 10px; border-radius: 10px; background: #FFF6E5; font-size: .82rem; line-height: 1.5; } .emi-hidden .ic { width: 15px; height: 15px; flex: none; margin-top: 3px; }
.emi-acts { display: flex; gap: 14px; margin-top: 8px; font-size: .84rem; }
.emi-form { display: grid; gap: 10px; margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); }
.emi-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.emi-form .af-f { display: grid; gap: 5px; font-size: .84rem; } .emi-form input:not([type=checkbox]) { font: inherit; padding: 8px 11px; border-radius: 11px; border: 1.5px solid var(--line); background: var(--white); width: 100%; box-sizing: border-box; }
.emi-form input:focus { outline: none; border-color: var(--espresso); box-shadow: 0 0 0 4px rgba(255, 221, 0, .35); }
.emi-new { margin-top: 10px; } .emi-addbtn { margin-top: 10px; font-weight: 700; }
.emi-done { margin-top: 12px; } .emi-done .emi-list { margin-top: 10px; }
.emi-empty-acts { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.emi-close { margin-top: 18px; }
.emi-plan { list-style: none; margin: 8px 0 10px; padding: 0; display: grid; gap: 10px; }
.emi-plan li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 10px; padding: 10px 12px; border-radius: 14px; background: #FFFBF2; border: 1px solid #F0E3CC; }
.emi-pi { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--white); } .emi-pi .ic { width: 17px; height: 17px; color: var(--espresso); }
.emi-plan b { display: block; font-size: .9rem; color: var(--espresso); line-height: 1.4; } .emi-plan p { margin: 3px 0 0; font-size: .84rem; color: var(--ink); line-height: 1.5; } .emi-plan p b { display: inline; }
.emi-say { font-size: .86rem; color: var(--ink-soft); }
.emi-liab .name { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; } .emi-liab .link-btn { font-size: .8rem; }
@media (max-width: 560px) { .emi-top { grid-template-columns: 34px minmax(0, 1fr); } .emi-amt { grid-column: 2; text-align: left; } .emi-amt b { display: inline; } .emi-amt small { margin-left: 4px; } .emi-nums { grid-template-columns: 1fr 1fr; } .emi-nums span:last-child { grid-column: 1 / -1; } }
.emi-plan b b { display: inline; }
/* ===== Round 61: "Your EMIs" in the landing preview ===== */
.shw-emi-k { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 8px; margin-bottom: 8px; }
.shw-emi-k > div { background: var(--cream); border-radius: 12px; padding: 8px 10px; min-width: 0; } .shw-emi-k small { display: block; font-size: .62rem; font-weight: 800; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .03em; }
.shw-emi-k b { display: block; font-size: 1.02rem; color: var(--espresso); white-space: nowrap; } .shw-emi-k b.bad { color: var(--bad); } .shw-emi-k em { display: block; font-style: normal; font-size: .64rem; color: var(--ink-soft); }
.shw-emi-k > div.main { background: linear-gradient(160deg, #3C2415, #5A3825); } .shw-emi-k > div.main small, .shw-emi-k > div.main em { color: rgba(251, 244, 232, .78); } .shw-emi-k > div.main b { color: #FFE9A8; }
.shw-emi { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 4px 9px; align-items: center; padding: 7px 10px; margin-top: 6px; border-radius: 12px; background: #fff; border: 1px solid #EFE5D6; font-size: .8rem; }
.shw-emi > i { width: 28px; height: 28px; border-radius: 8px; background: var(--cream); display: grid; place-items: center; } .shw-emi > i .ic, .shw-emi > i svg { width: 15px; height: 15px; }
.shw-emi > span:nth-child(2) { display: flex; flex-direction: column; min-width: 0; } .shw-emi b { color: var(--espresso); } .shw-emi small { font-size: .66rem; color: var(--ink-soft); }
.shw-emi-w { font-style: normal; font-size: .64rem; font-weight: 800; color: #9C5A10; }
.shw-emi-a { display: flex; flex-direction: column; align-items: flex-end; } .shw-emi-a em { font-style: normal; font-size: .6rem; font-weight: 800; padding: 1px 7px; border-radius: 99px; background: #F4ECE0; color: #6B4A2E; }
.shw-emi-bar { grid-column: 2 / -1; display: block; height: 5px; border-radius: 6px; background: #F1E9DC; overflow: hidden; } .shw-emi-bar i { display: block; height: 100%; width: var(--w); border-radius: 6px; background: linear-gradient(90deg, #C79A49, #E3B85C); }
.shw-slide.on .shw-emi-bar i { animation: shwGrow .9s ease both; }
.shw-emi-plan { display: flex; flex-direction: column; gap: 7px; background: #FFFBF2; border: 1px solid #F0E3CC; border-radius: 14px; padding: 10px 12px; } .shw-emi-plan > b { color: var(--espresso); font-size: .86rem; }
.shw-emi-plan .shw-todo { align-items: flex-start; font-size: .8rem; } .shw-emi-plan .shw-todo small { display: block; color: var(--ink-soft); font-size: .7rem; }
.shw-slide.on .shw-emi-plan .shw-todo { animation: shwIn .45s ease both; }
.shw-emi-tl { margin-top: 10px; background: var(--cream); border-radius: 14px; padding: 10px 12px; display: grid; gap: 6px; } .shw-emi-tl > b { font-size: .8rem; color: var(--espresso); }
.shw-emi-tl > div { display: grid; grid-template-columns: 84px minmax(0, 1fr) 62px; gap: 8px; align-items: center; font-size: .72rem; } .shw-emi-tl small { color: var(--ink-soft); font-weight: 700; text-align: right; }
.shw-emi-tb { display: block; height: 8px; border-radius: 6px; background: #EADFCD; overflow: hidden; } .shw-emi-tb i { display: block; height: 100%; width: var(--w); border-radius: 6px; background: #3C2415; opacity: .85; }
.shw-slide.on .shw-emi-tb i { animation: shwGrow 1s ease both; animation-delay: calc(var(--k, 0) * .12s); }
@keyframes shwGrow { from { width: 0; } }
@media (max-width: 640px) { .shw-emi-k { grid-template-columns: 1fr 1fr; } .shw-emi-k > div.main { grid-column: 1 / -1; } }
.shw-emi-k em, .shw-emi-k small, .shw-emi-w { text-align: left !important; align-self: flex-start; white-space: normal; }
/* ===== Round 62: landing feature cards, five shown, the rest folded ===== */
.shw-allfeats { max-width: 1060px; margin: 14px auto 0; }
.shw-allfeats > summary { list-style: none; display: flex; justify-content: center; cursor: pointer; }
.shw-allfeats > summary::-webkit-details-marker { display: none; }
.shw-allfeats > summary span { display: inline-flex; align-items: center; gap: 8px; padding: 9px 20px; border-radius: 999px; border: 1px solid rgba(227, 184, 92, .45); color: #F3D88E; font-weight: 700; font-size: .9rem; transition: background .2s, border-color .2s; }
.shw-allfeats > summary span::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .2s; }
.shw-allfeats > summary:hover span, .shw-allfeats > summary:focus-visible span { background: rgba(227, 184, 92, .12); border-color: #E3B85C; }
.shw-allfeats[open] > summary span::after { transform: rotate(-135deg) translateY(-2px); }
.shw-allfeats summary em { font-style: normal; } .shw-allfeats .sf-less, .shw-allfeats[open] .sf-more { display: none; } .shw-allfeats[open] .sf-less { display: inline; }
.shw-allfeats .shw-feats { margin-top: 14px; }
.shw-allfeats[open] .shw-feats li { animation: shwIn .35s ease both; }
/* ===== Round 62: richer "What if?" preview ===== */
.shw-wi-ctl { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 12px; padding: 8px 10px; border-radius: 12px; background: var(--cream); }
.shw-wi-ctl > span { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; } .shw-wi-ctl small { font-size: .66rem; font-weight: 800; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .04em; margin-right: 2px; }
.shw-wi-ctl em { font-style: normal; font-size: .72rem; font-weight: 700; padding: 3px 9px; border-radius: 99px; background: #fff; border: 1px solid #EADFCD; color: var(--espresso); }
.shw-wi-ctl em.on { background: var(--espresso); border-color: var(--espresso); color: #FBF4E8; }
.shw-wi-chips { display: flex; flex-wrap: wrap; gap: 6px; } .shw-wi-chips .chip b { font-weight: 800; }
.shw-wi-mon { display: flex; justify-content: space-between; padding: 0 2px; font-size: .64rem; font-weight: 700; color: var(--ink-soft); }
.shw-wi-key { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 8px; font-size: .7rem; color: var(--ink-soft); font-weight: 700; }
.shw-wi-key i { display: inline-block; width: 10px; height: 4px; border-radius: 2px; margin-right: 5px; vertical-align: middle; } .shw-wi-key i.wi-dash { background: repeating-linear-gradient(90deg, #9A9188 0 4px, transparent 4px 7px); }
.shw-wi-mix, .shw-wi-tab { background: var(--cream); border-radius: 14px; padding: 10px 12px; }
.shw-wi-tab { margin-top: 10px; display: grid; gap: 6px; }
.shw-wi-split { display: flex; height: 12px; border-radius: 7px; overflow: hidden; margin: 6px 0 8px; gap: 2px; } .shw-wi-split i { width: var(--w); display: block; position: relative; }
.shw-wi-split i + i::before { content: ""; position: absolute; left: -6px; top: -3px; width: 10px; height: 18px; border-radius: 5px; background: #fff; box-shadow: 0 1px 4px rgba(60, 36, 21, .3); }
.shw-wi-sl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; } .shw-wi-sl span { display: flex; flex-direction: column; font-size: .7rem; color: var(--ink-soft); font-weight: 700; }
.shw-wi-sl span i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 4px; } .shw-wi-sl b { color: var(--espresso); } .shw-wi-sl em { font-style: normal; color: var(--espresso); font-weight: 800; font-size: .8rem; }
.shw-wi-tab > div:not(.shw-flow-h) { display: grid; grid-template-columns: 9px minmax(0, 1.4fr) minmax(0, .8fr) auto 44px 34px; gap: 7px; align-items: center; font-size: .72rem; }
.shw-wi-tab > div > i { width: 9px; height: 9px; border-radius: 3px; } .shw-wi-tab span { color: var(--ink); font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shw-wi-tab b { color: var(--espresso); font-size: .74rem; text-align: right; } .shw-wi-tab em { font-style: normal; font-weight: 800; text-align: right; } .shw-wi-tab small { text-align: right; color: var(--ink-soft); font-weight: 700; } .shw-wi-tab small.bad { color: var(--bad); }
.shw-wi-tab .shw-wi-bar { background: #fff; }
.shw-slide.on .shw-wi-tab > div:not(.shw-flow-h) { animation: shwIn .4s ease both; animation-delay: calc(var(--k, 0) * .06s); }
.shw-wi-track { display: flex; gap: 10px; align-items: center; margin-top: 10px; padding: 9px 12px; border-radius: 12px; background: #EEF7F1; } .shw-wi-track .ic { width: 20px; height: 20px; flex: none; color: #1E6B42; }
.shw-wi-track span { display: flex; flex-direction: column; } .shw-wi-track b { font-size: .78rem; color: #1E6B42; } .shw-wi-track small { font-size: .68rem; color: var(--ink-soft); }
@media (max-width: 640px) { .shw-wi-tab > div:not(.shw-flow-h) { grid-template-columns: 9px minmax(0, 1fr) auto 40px; } .shw-wi-tab .shw-wi-bar, .shw-wi-tab small { display: none; } .shw-wi-ctl > span:last-child { display: none; } }
/* ===== Round 62: new on your dashboard ===== */
.whatsnew { margin-top: 16px; padding: 14px 16px; border-radius: 18px; background: linear-gradient(135deg, #FFF8E6, #FBF1DD); border: 1px solid #F0DDB2; }
.wn-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; } .wn-h b { display: flex; gap: 8px; align-items: center; color: var(--espresso); font-size: .98rem; } .wn-h .ic { width: 18px; height: 18px; }
.wn-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px; }
.wn-i { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 10px; align-items: center; text-align: left; font: inherit; padding: 9px 11px; border-radius: 14px; border: 1px solid #EEDFC2; background: rgba(255, 255, 255, .85); cursor: pointer; transition: transform .15s, box-shadow .15s, border-color .15s; }
.wn-i:hover, .wn-i:focus-visible { transform: translateY(-2px); border-color: var(--gold); box-shadow: 0 8px 18px rgba(60, 36, 21, .1); outline: none; }
.wn-ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: #3C2415; } .wn-ico .ic { width: 17px; height: 17px; color: #FFE9A8; } .wn-ico .ic * { stroke: #FFE9A8; }
.wn-i b { display: block; font-size: .86rem; color: var(--espresso); } .wn-i small { display: block; font-size: .74rem; color: var(--ink-soft); line-height: 1.35; }
.wn-flash { animation: wnFlash 2.2s ease; border-radius: 16px; }
@keyframes wnFlash { 0%, 100% { box-shadow: 0 0 0 0 rgba(227, 184, 92, 0); } 15%, 60% { box-shadow: 0 0 0 4px rgba(227, 184, 92, .65); } }
.st-note span b { color: var(--espresso); }

.shw-wi-sl .l { display: block; white-space: nowrap; } .shw-wi-sl .l i { vertical-align: 0; }
.shw-wi-key i, .shw-wi-key i.wi-dash { width: 12px !important; height: 4px !important; min-height: 0 !important; flex: none; display: inline-block !important; }
@media (max-width: 640px) { .shw-feats > li:last-child:nth-child(odd) { grid-column: 1 / -1; } }
/* Round 63: Today's value of what you own, on a phone: name and value side by side, the badge under the name (a later rule had brought back three columns) */
@media (max-width: 560px) { .lv-list li { grid-template-columns: minmax(0, 1fr) auto; } .lv-list li > .chip { grid-row: 2; grid-column: 1; justify-self: start; } .lv-list li > .lv-vals { grid-row: 1; grid-column: 2; } }

/* "Update my numbers": the fastest ways first (statement, CAS, type it in) */
.quick-add { margin: 4px 0 22px; padding: 16px; border-radius: 18px; background: var(--cream); border: 1px solid var(--line); }
.qa-lead { margin: 0 0 12px; font-size: .92rem; color: var(--ink); line-height: 1.5; }
.qa-opts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.qa-opt { position: relative; display: flex; gap: 12px; align-items: flex-start; text-align: left; padding: 14px; border-radius: 14px; border: 1.5px solid var(--line); background: #fff; font: inherit; color: var(--ink); text-decoration: none; cursor: pointer; transition: border-color .2s ease, box-shadow .2s ease; }
.qa-opt:hover, .qa-opt:focus-visible, .qa-opt:focus-within { border-color: var(--gold); box-shadow: 0 6px 18px rgba(60, 36, 21, .1); }
.qa-opt[hidden] { display: none; }
.qa-opt b { display: block; color: var(--espresso); font-size: .95rem; margin-bottom: 3px; }
.qa-opt small { display: block; color: var(--ink-soft); font-size: .8rem; line-height: 1.45; }
.qa-ic { flex: none; width: 38px; height: 38px; padding: 8px; border-radius: 11px; background: var(--latte); color: var(--espresso); box-sizing: border-box; }
.qa-ic svg { width: 100%; height: 100%; }
.qa-best { border-color: var(--gold); }
.qa-tag { position: absolute; top: -9px; right: 12px; padding: 2px 9px; border-radius: 99px; background: var(--bmc-yellow); color: var(--espresso); font-size: .68rem; font-weight: 800; font-style: normal; letter-spacing: .03em; }
.qa-soon { margin: 12px 0 0; font-size: .8rem; color: var(--ink-soft); }
@media (max-width: 760px) { .qa-opts { grid-template-columns: 1fr; } .qa-opt { padding: 12px; } }

/* The daily money tip on the Overview (js/dashboard-tips.js) */
.tip-card { margin: 16px 0 0; padding: 16px 18px; border-radius: 18px; background: linear-gradient(135deg, #FFF8E6, #FAF3E6); border: 1px solid rgba(199, 154, 73, .45); }
.tip-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.tip-k { display: inline-flex; align-items: center; gap: 6px; font-size: .74rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: #9A6E26; }
.tip-k .ic, .tip-k svg { width: 16px; height: 16px; }
.tip-nav { display: flex; gap: 6px; }
.tip-arr { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); background: #fff; font-size: 1.1rem; line-height: 1; color: var(--espresso); cursor: pointer; }
.tip-arr:disabled { opacity: .35; cursor: default; }
.tip-t { display: block; margin: 8px 0 4px; font-family: var(--font-serif); font-size: 1.15rem; color: var(--espresso); line-height: 1.3; }
.tip-b { margin: 0 0 12px; color: var(--ink); line-height: 1.55; font-size: .95rem; }
.tip-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.tip-msg:empty { display: none; } .tip-msg { margin: 8px 0 0; color: var(--good, #2F8F5B); }

/* Download my data: the two buttons go under the text on narrow phones instead of running off the screen */
.set-row > .yd-btns { display: flex; flex-wrap: wrap; gap: 6px 14px; justify-content: flex-end; }
@media (max-width: 480px) { .set-row:has(.yd-btns) { flex-wrap: wrap; } .set-row > .yd-btns { justify-content: flex-start; } }

/* (the quick-add choices above replace step 1's own Import button; its results area stays) */
.quick-add ~ .fstep .stmt-read-slim > .stmt-btn, .quick-add ~ .fstep .stmt-read-slim > .hint { display: none; }
.quick-add ~ .fstep .stmt-read-slim:not(:has(#stmt-out:not(:empty))) { display: none; }

/* The panels' 3D tilt (dashboard-motion.js) can poke a few pixels past the screen edge: never a sideways scroll. (clip, not hidden: sticky bars keep working) */
main.dash { overflow-x: clip; }

/* Long Hindi and Malayalam words: a heading or button breaks a word only when it can't fit the phone (never a sideways scroll) */
h1, h2, h3, h4, .btn, .chip, .tag, .kpi .label, .shw-tabs span { overflow-wrap: break-word; }
html:not([lang="en"]) .btn { white-space: normal; text-align: center; }
main { overflow-x: clip; }

/* Dashboard header: the "More" menu (Show all details, Download my report) */
.dh-more { position: relative; }
.dh-more > summary { list-style: none; cursor: pointer; }
.dh-more > summary::-webkit-details-marker { display: none; }
.dh-more > summary::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.dh-pop { position: absolute; right: 0; top: calc(100% + 6px); z-index: 60; min-width: 220px; padding: 6px; border-radius: 14px; background: #fff; border: 1px solid var(--line); box-shadow: 0 14px 34px rgba(60, 36, 21, .16); }
.dh-pop button { display: block; width: 100%; text-align: left; padding: 10px 12px; border: 0; border-radius: 10px; background: none; font: inherit; font-size: .9rem; font-weight: 700; color: var(--espresso); cursor: pointer; }
.dh-pop button:hover, .dh-pop button:focus-visible { background: var(--cream); }
.dh-pop.dh-left { right: auto; left: 0; }
@media (max-width: 640px) { .dash-head .btn-row .dh-more { flex: 0 0 auto; } .dh-pop { max-width: calc(100vw - 24px); } }

/* Receipt: take a photo with the camera, or choose one (js/dashboard-today.js) */
.td-snaps { margin-top: 10px; }
.td-snap-h { margin: 0; display: flex; flex-direction: column; line-height: 1.3; } .td-snap-h b { font-size: .9rem; color: var(--espresso); } .td-snap-h small { font-size: .76rem; color: var(--ink-soft); }
.td-snap-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; } .td-snap-row .td-snap { margin-top: 8px; justify-content: center; }

/* The founder's note at the top of the first-visit welcome (js/main.js renderWelcome) */
.wl-note { margin: 0 0 16px; padding: 16px 18px; border-radius: 16px; background: #FFF8E6; border: 1px solid rgba(199, 154, 73, .45); }
.wl-note p { margin: 0 0 8px; font-size: .93rem; line-height: 1.55; color: var(--ink); }
.wl-note .wl-note-hi { font-family: var(--font-serif); font-size: 1.25rem; color: var(--espresso); margin-bottom: 6px; }
.wl-note .wl-sign { margin: 10px 0 0; font-family: var(--font-serif); font-style: italic; color: #9A6E26; }

/* How markets have behaved (js/dashboard-trackrecord.js) */
.tr-table { width: 100%; border-collapse: collapse; margin: 10px 0; font-size: .92rem; }
.tr-table th, .tr-table td { padding: 8px 10px; text-align: right; border-bottom: 1px solid var(--line, #e6e0d6); font-variant-numeric: tabular-nums; }
.tr-table thead th { font-size: .78rem; font-weight: 700; }
.tr-table th:first-child, .tr-table td:first-child { text-align: left; }
.tr-table tbody th { font-weight: 700; }
.tr-note { font-weight: 600; margin: 10px 0 6px; }
@media (max-width: 640px) {
  .tr-table, .tr-table tbody, .tr-table tr, .tr-table th, .tr-table td { display: block; width: 100%; }
  .tr-table thead { display: none; }
  .tr-table tr { border: 1px solid var(--line, #e6e0d6); border-radius: 12px; padding: 8px 12px; margin-bottom: 10px; }
  .tr-table th, .tr-table td { border: 0; padding: 4px 0; text-align: right; display: flex; justify-content: space-between; gap: 12px; }
  .tr-table tbody th { text-align: left; font-size: 1rem; }
  .tr-table td::before { content: attr(data-label); color: var(--muted, #6b6459); font-size: .8rem; text-align: left; }
  .tr-table tbody th::before { content: none; }
}

/* ---------- Big buys: Rent or buy? ---------- */
.rb .rb-h { margin: 18px 0 6px; font-family: var(--font-serif); font-size: 1.05rem; color: var(--espresso); }
.rb .afc-tile, .rb .afc-tile span { overflow-wrap: anywhere; }
.rb .afc-tiles { margin-bottom: 4px; }
.rb .db-say { overflow-wrap: anywhere; }
