:root{
  --ink:#14211F; --muted:#52605C; --soft:#3A4845; --bg:#F3F5F2; --card:#FFFFFF; --line:#E6EBE7; --line2:#D9DFDA;
  --green:#0F3D3E; --green2:#2F7472; --green3:#1F5A59; --mint:#CFE3DA; --mint2:#B7CFC9; --pill:#E3EAE5;
  --amber:#E8A33D; --amberbg:#FBEFD9; --amberink:#6B3F00; --rust:#9A3B00; --pos:#1F6B4A; --neg:#B3261E;
  --head:'Bricolage Grotesque', system-ui, sans-serif; --body:Geist, system-ui, sans-serif;
}
*{box-sizing:border-box}
html,body{margin:0;background:var(--bg);color:var(--ink);font-family:var(--body);font-variant-numeric:tabular-nums;font-size:15px;line-height:1.45}
a{color:var(--green)} a:hover{color:var(--green2)}
*:focus-visible{outline:2px solid var(--amber);outline-offset:2px}
input[type=range]{accent-color:var(--amber);width:100%;height:28px;margin:0}
h1,h2,h3{font-family:var(--head);margin:0;letter-spacing:-0.01em}
h1{font-weight:500;font-size:26px} h2{font-weight:500;font-size:22px} h3{font-weight:600;font-size:17px}
.hidden{display:none !important}
.muted{color:var(--muted)} .small{font-size:13px} .pos{color:var(--pos)} .neg{color:var(--neg)} .warnc{color:var(--amberink)}
@media (prefers-reduced-motion: reduce){*{transition:none !important}}

.shell{display:flex;min-height:100vh}
.side{flex:0 0 220px;padding:28px 20px;display:flex;flex-direction:column;gap:28px;border-right:1px solid var(--line2);position:sticky;top:0;height:100vh}
.brand{display:flex;align-items:center;gap:10px;text-decoration:none;color:var(--ink)}
.brand span{font-family:var(--head);font-weight:700;font-size:21px}
.navlinks{display:flex;flex-direction:column;gap:2px}
.navlinks a{display:flex;align-items:center;gap:12px;min-height:44px;padding:0 12px;border-radius:10px;color:var(--soft);text-decoration:none}
.navlinks a[aria-current=page]{background:var(--pill);color:var(--green);font-weight:600}
.navlinks .badge,.bottom .badge{background:var(--amber);color:var(--ink);border-radius:9px;font-size:11px;font-weight:700;padding:1px 6px;margin-left:auto}
.savebox{margin-top:auto;padding:14px;border:1px solid var(--line2);border-radius:12px;display:flex;flex-direction:column;gap:8px;font-size:13px;color:var(--muted)}
.savebox strong{color:var(--ink)}
main{flex:1 1 auto;min-width:0;padding:28px clamp(16px,3vw,44px) 96px}
.wrap{max-width:1120px;margin:0 auto;display:flex;flex-direction:column;gap:28px}
.bottom{display:none}

.head{display:flex;flex-wrap:wrap;gap:12px 24px;align-items:center;justify-content:space-between}
.head p{margin:4px 0 0;color:var(--muted)}
.btn{min-height:44px;padding:0 16px;border-radius:10px;border:1px solid #C6CFC9;background:#fff;color:var(--ink);font:inherit;font-weight:500;cursor:pointer;display:inline-flex;align-items:center;gap:8px;text-decoration:none}
.btn.primary{background:var(--green);border-color:var(--green);color:#fff;font-weight:600}
.btn.amber{background:var(--amber);border-color:var(--amber);color:var(--ink);font-weight:600}
.btn.sm{min-height:34px;padding:0 12px;font-size:14px}
.btn.ghost{border-color:transparent;background:transparent;color:var(--green)}
.row{display:flex;gap:8px;flex-wrap:wrap;align-items:center}

.hero{background:var(--green);color:#fff;border-radius:24px;padding:clamp(22px,3.5vw,44px);display:flex;flex-direction:column;gap:28px}
.hero h2.big{font-family:var(--head);font-weight:700;font-size:clamp(38px,6vw,72px);line-height:1;letter-spacing:-0.03em}
.hero p{margin:0;color:var(--mint);font-size:17px}
.hero .top{display:flex;flex-wrap:wrap;gap:24px 48px;justify-content:space-between;align-items:flex-end}
.hero .ctrl{display:flex;flex-direction:column;gap:14px;min-width:260px;flex:0 1 340px}
.seg{display:flex;padding:4px;border-radius:12px;background:#0A2E2F;gap:4px}
.seg button{flex:1 1 0;min-height:44px;border:0;border-radius:9px;font:inherit;font-weight:600;cursor:pointer;background:transparent;color:var(--mint)}
.seg button[aria-pressed=true]{background:var(--amber);color:var(--ink)}
.track{display:flex;gap:3px;height:56px}
.track div{min-width:22px;border-radius:8px;display:flex;align-items:flex-end;justify-content:flex-end;padding:8px;overflow:hidden;color:#fff;font-weight:600;font-size:13px;white-space:nowrap}
.events{position:relative;height:56px}
.events div{position:absolute;bottom:0;background:var(--green);padding-right:6px;border-left:1px dashed #7FA9A2;padding-left:6px;font-size:12px;line-height:1.2;color:var(--mint);white-space:nowrap}
.ends{display:flex;justify-content:space-between;font-size:13px;color:var(--mint2)}

.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,420px),1fr));gap:28px}
.card{background:var(--card);border-radius:18px;padding:24px;display:flex;flex-direction:column;gap:16px}
.card.flat{background:transparent;padding:4px}
.card .ch{display:flex;justify-content:space-between;align-items:baseline;gap:12px;flex-wrap:wrap}
.bar{display:flex;height:18px;border-radius:6px;overflow:hidden;gap:2px}
.list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column}
.list li{display:flex;align-items:center;gap:12px;padding:11px 0;border-top:1px solid var(--line)}
.dot{width:12px;height:12px;border-radius:3px;flex:none;box-shadow:inset 0 0 0 1px rgba(20,33,31,.12)}
.note{margin:0;padding:12px 14px;border-radius:10px;background:var(--amberbg);color:var(--amberink);font-size:14px}
.note.ok{background:#E3F1EA;color:var(--pos)}
.prog{height:10px;border-radius:5px;background:#DDE4DF;overflow:hidden}
.prog div{height:100%;background:var(--green2)}
.stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px}
.stat{background:var(--card);border-radius:14px;padding:14px 16px}
.stat .k{font-size:13px;color:var(--muted)} .stat .v{font-family:var(--head);font-size:26px;font-weight:700}

table{width:100%;border-collapse:collapse;font-size:15px}
th{font-weight:500;color:var(--muted);font-size:13px;text-align:left;padding:0 8px 10px}
td{padding:10px 8px;border-top:1px solid var(--line);vertical-align:middle}
td.num,th.num{text-align:right}
.scroll{overflow-x:auto}
.seq{width:24px;height:24px;border-radius:12px;background:var(--pill);color:var(--green);font-size:12px;font-weight:600;display:inline-flex;align-items:center;justify-content:center;margin-right:8px}

/* editable tables */
.edit input,.edit select,.form input,.form select,.form textarea{font:inherit;padding:8px 10px;border-radius:8px;border:1px solid var(--line2);background:#fff;color:var(--ink);min-width:0;width:100%}
.edit input{border-color:transparent;background:transparent;padding:6px 6px}
.edit input:hover,.edit input:focus{border-color:var(--line2);background:#fff}
.edit td{padding:4px}
.x{background:none;border:0;color:var(--muted);cursor:pointer;font-size:16px;padding:6px 8px;border-radius:6px}
.x:hover{background:var(--pill);color:var(--neg)}
.form{display:grid;gap:10px}
.form label{display:flex;flex-direction:column;gap:4px;font-size:13px;color:var(--muted)}
.form textarea{min-height:260px;font-family:var(--body);line-height:1.5}
.form .two{display:grid;grid-template-columns:1fr 1fr;gap:10px}

/* credit */
.score{font-family:var(--head);font-weight:700;font-size:64px;line-height:1}
.chip{display:inline-block;align-self:flex-start;border-radius:999px;padding:2px 10px;font-size:12px;font-weight:600;background:var(--pill);color:var(--green)}
.chip.bad{background:#F9E0DC;color:var(--neg)} .chip.warn{background:var(--amberbg);color:var(--amberink)} .chip.good{background:#E3F1EA;color:var(--pos)}
.fix{border-top:1px solid var(--line);padding:14px 0;display:flex;flex-direction:column;gap:8px}
.fix:first-of-type{border-top:0}
.fix .t{font-weight:600}
details{background:var(--card);border-radius:14px;padding:14px 18px}
details summary{cursor:pointer;font-weight:600}

.modal{position:fixed;inset:0;background:rgba(10,30,30,.45);display:flex;align-items:flex-end;justify-content:center;z-index:50;padding:16px}
.modal .sheet{background:#fff;border-radius:20px;padding:22px;width:min(720px,100%);max-height:92vh;overflow:auto;display:flex;flex-direction:column;gap:14px}
@media (min-width:760px){.modal{align-items:center}}
.toast{position:fixed;left:50%;bottom:90px;transform:translateX(-50%);background:var(--ink);color:#fff;padding:10px 16px;border-radius:10px;z-index:60;font-size:14px}

@media (max-width:860px){
  .side{display:none}
  main{padding:18px 14px 110px}
  .bottom{display:flex;position:fixed;left:0;right:0;bottom:0;background:#fff;border-top:1px solid var(--line2);padding:6px 4px calc(6px + env(safe-area-inset-bottom));z-index:40;justify-content:space-around}
  .bottom a{flex:1;display:flex;flex-direction:column;align-items:center;gap:2px;font-size:11px;color:var(--soft);text-decoration:none;padding:6px 0;border-radius:10px;position:relative}
  .bottom a[aria-current=page]{color:var(--green);font-weight:600;background:var(--pill)}
  .bottom .badge{position:absolute;top:0;right:18%;margin:0}
  .hero{border-radius:20px}
  .events{display:none}
  .form .two{grid-template-columns:1fr}
}

/* ---------- welcome / auth (phone-first) ---------- */
body.gated .side, body.gated .bottom{display:none !important}
body.gated main{padding:0}
.splash{min-height:100vh;display:flex;align-items:center;justify-content:center}
.brandmark{display:flex;align-items:center;gap:10px}
.brandmark span{font-family:var(--head);font-weight:700;font-size:22px}
.welcome{min-height:100vh;display:flex;flex-direction:column;align-items:center;padding:0 0 calc(32px + env(safe-area-inset-bottom))}
.w-hero{width:100%;background:var(--green);color:#fff;padding:calc(28px + env(safe-area-inset-top)) 22px 88px;display:flex;flex-direction:column;align-items:center;text-align:center;gap:16px}
.w-hero .brandmark span{color:#fff}
.w-hero h1{font-family:var(--head);font-weight:700;font-size:clamp(32px,8.5vw,56px);line-height:1.04;letter-spacing:-0.03em;max-width:720px}
.w-hero p{margin:0;color:var(--mint);font-size:17px;max-width:560px}
.w-card{width:min(440px,calc(100% - 28px));margin-top:-64px;background:#fff;border-radius:20px;padding:22px;box-shadow:0 10px 30px rgba(15,61,62,.14)}
.w-card .form{gap:14px}
.w-card h2{font-size:20px}
.seg.light{background:var(--pill)}
.seg.light button{color:var(--soft)}
.seg.light button[aria-pressed=true]{background:#fff;color:var(--green);box-shadow:0 1px 3px rgba(0,0,0,.08)}
.btn.block{width:100%;justify-content:center;min-height:50px;font-size:16px}
.btn:disabled{opacity:.6}
.w-svc{width:min(960px,calc(100% - 28px));display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:14px;margin-top:26px}
.svc{background:#fff;border-radius:16px;padding:18px;display:flex;gap:14px;align-items:flex-start}
.svc h3{margin:0 0 4px}
.svc p{margin:0;color:var(--muted);font-size:14px}
.svc-ic{flex:none;width:40px;height:40px;border-radius:12px;background:var(--pill);color:var(--green);display:flex;align-items:center;justify-content:center}
.w-guest{margin:18px 0 0}
.w-fine{max-width:560px;text-align:center;color:var(--muted);font-size:12px;margin:8px 16px 0}

/* phone polish: no iOS zoom on focus, bigger tap targets */
@media (max-width:860px){
  input,select,textarea,.edit input{font-size:16px !important}
  .head{align-items:flex-start}
  .head .row .btn{min-height:44px}
  .card{padding:18px;border-radius:16px}
  .grid{gap:16px}
  .wrap{gap:18px}
  h1{font-size:24px}
}
@media (max-width:640px){ .track .lbl{display:none} .track div{justify-content:center} }
@media (max-width:380px){ .bottom a{font-size:10px} }
.w-price{display:inline-block;background:var(--amber);color:var(--ink);font-weight:700;border-radius:999px;padding:6px 14px;font-size:15px}
.topics{border:0;padding:0;margin:0;display:flex;flex-wrap:wrap;gap:8px}
.topics legend{margin-bottom:6px}
.tick{display:inline-flex !important;flex-direction:row !important;align-items:center;gap:8px;font-size:14px !important;color:var(--ink) !important;background:var(--pill);border-radius:999px;padding:8px 12px;cursor:pointer}
.tick input{width:18px !important;height:18px;margin:0;accent-color:var(--green)}
.sheet .btn{flex:0 1 auto}
.sheet-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;flex-wrap:nowrap}
.sheet-head h2{font-size:20px}
.review li{flex-direction:column;align-items:stretch;gap:6px}
.review .rv-top{display:flex;justify-content:space-between;align-items:center;gap:8px}
.review label{display:flex;flex-direction:column;gap:4px;color:var(--muted)}
.review select{font:inherit;padding:10px;border-radius:10px;border:1px solid var(--line2);background:#fff;color:var(--ink)}

/* ---------- v4: home tiles, top bar, refined look ---------- */
:root{--bg:#F4F6F2;--shadow:0 1px 2px rgba(15,40,38,.05),0 8px 24px rgba(15,40,38,.06)}
.bottom{display:none !important}
main{padding-bottom:48px}
.topbar{position:sticky;top:0;z-index:30;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;margin:-28px calc(-1 * clamp(16px,3vw,44px)) 18px;padding:calc(10px + env(safe-area-inset-top)) clamp(12px,3vw,40px) 10px;background:rgba(244,246,242,.88);-webkit-backdrop-filter:saturate(1.4) blur(14px);backdrop-filter:saturate(1.4) blur(14px);border-bottom:1px solid var(--line)}
.topbar .tt{font-family:var(--head);font-weight:700;font-size:17px}
.homebtn{justify-self:start;display:inline-flex;align-items:center;gap:2px;min-height:44px;padding:0 14px 0 8px;border-radius:999px;background:#fff;color:var(--green);font-weight:600;text-decoration:none;box-shadow:var(--shadow)}
.homebtn:active{transform:scale(.97)}
.card,.stat,details,.svc{box-shadow:var(--shadow)}
.card{border-radius:22px}

.home{max-width:760px;gap:20px}
.homehead{display:flex;justify-content:space-between;align-items:center}
.homehead h1{font-family:var(--head);font-weight:700;font-size:32px;letter-spacing:-.03em;line-height:1.1}
.avatar{width:44px;height:44px;border-radius:50%;background:var(--green);color:#fff;font-family:var(--head);font-weight:700;font-size:18px;display:flex;align-items:center;justify-content:center;text-decoration:none}
.hero-connect{position:relative;overflow:hidden;background:radial-gradient(120% 140% at 100% 0%,#1F5A59 0%,#0F3D3E 55%,#0A2E2F 100%);color:#fff;border-radius:26px;padding:24px;display:flex;flex-direction:column;gap:12px;box-shadow:0 12px 32px rgba(15,61,62,.28)}
.hero-connect h2{font-family:var(--head);font-weight:700;font-size:26px;letter-spacing:-.02em;max-width:78%}
.hero-connect p{margin:0;color:var(--mint);max-width:88%}
.hero-connect small{color:var(--mint2);font-size:12.5px}
.hero-connect .btn.block{min-height:52px;border-radius:14px;margin-top:4px}
.hero-connect .testnote{background:rgba(255,255,255,.1);border-radius:12px;padding:10px 12px;font-size:13px;color:#fff;max-width:none}
.hc-art{position:absolute;right:-10px;top:14px;display:flex;flex-direction:column;gap:8px;align-items:flex-end;opacity:.9}
.hc-art span{display:block;height:10px;border-radius:6px;background:var(--mint)}
.hc-art span:nth-child(1){width:42px;opacity:.4}.hc-art span:nth-child(2){width:70px;opacity:.6}.hc-art span:nth-child(3){width:98px;background:var(--amber)}
.hero-connect .eyebrow{font-size:13px;color:var(--mint2);letter-spacing:.02em}
.hero-connect .bignum{font-family:var(--head);font-weight:700;font-size:clamp(44px,13vw,64px);line-height:1;letter-spacing:-.04em}
.hero-connect .bignum.neg{color:#FFB4A8}
.hc-foot{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-top:4px}
.hc-foot .chip{background:rgba(255,255,255,.14);color:#fff;max-width:70%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.btn.light{color:#fff}

.tiles{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}
.tile{position:relative;display:flex;flex-direction:column;gap:2px;padding:16px;min-height:150px;background:var(--card);border-radius:22px;box-shadow:var(--shadow);text-decoration:none;color:var(--ink);transition:transform .12s ease,box-shadow .12s ease}
.tile:active{transform:scale(.975)}
.tile:hover{box-shadow:0 2px 4px rgba(15,40,38,.06),0 12px 28px rgba(15,40,38,.1);color:var(--ink)}
.ti{position:relative;width:44px;height:44px;border-radius:14px;display:flex;align-items:center;justify-content:center;margin-bottom:6px}
.ti svg{width:22px;height:22px}
.t-cash{background:#DCEFE5;color:#1F6B4A}.t-debts{background:#FBEBCB;color:#9A5B00}.t-plan{background:#DDE9F4;color:#245B86}
.t-credit{background:#E9E1F5;color:#5B3A8C}.t-protect{background:#FADFD9;color:#A8361F}.t-goals{background:#D9F0F0;color:#1B6B6B}
.t-dates{background:#F2E6D8;color:#7A4B14}.t-settings{background:#E4E8E5;color:#3A4845}
.tb{position:absolute;top:-6px;right:-8px;min-width:20px;height:20px;border-radius:10px;background:var(--amber);color:var(--ink);font-style:normal;font-size:11px;font-weight:700;display:flex;align-items:center;justify-content:center;padding:0 5px;border:2px solid #fff}
.tt1{font-weight:600;font-size:15px;margin-top:14px}
.tv{font-family:var(--head);font-weight:700;font-size:21px;letter-spacing:-.02em;line-height:1.15;overflow-wrap:anywhere}
.tv.neg{color:var(--neg)}
.ts{font-size:12.5px;color:var(--muted)}
@media (min-width:760px){.tiles{grid-template-columns:repeat(4,1fr)}.home{max-width:980px}.hero-connect{padding:32px}}
@media (max-width:860px){
  main{padding:0 16px 40px}
  .topbar{margin:0 -16px 14px}
  .home{padding-top:calc(18px + env(safe-area-inset-top))}
  .wrap{padding-top:2px}
}

.ts{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* budget, activity, bills */
.budget li,.tx li{align-items:stretch}
.budget li{flex-direction:column;gap:8px}
.budget .rv-top,.tx .rv-top{display:flex;justify-content:space-between;align-items:center;gap:8px}
.prog.over div{background:var(--rust)}
.lim{display:flex;align-items:center;gap:6px;color:var(--muted)}
.lim input{width:92px;font:inherit;padding:8px 10px;border-radius:10px;border:1px solid var(--line2);text-align:right}
.tx li{align-items:center}
.txn{font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tx select{margin-top:6px;font:inherit;font-size:13px;padding:5px 8px;border-radius:999px;border:1px solid var(--line2);background:var(--pill);color:var(--green);max-width:100%}
@media (min-width:760px){.tiles{grid-template-columns:repeat(4,1fr)}}
.t-budget{background:#e3efe9;color:#1f6b4f}.t-activity{background:#e4e9f5;color:#3556a6}.t-bills{background:#f6e6e0;color:#a2492f}.t-networth{background:#e8f2dc;color:#4d7a1c}
.t-income{background:#efe6f6;color:#6a3d99}
.jobs{display:grid;gap:12px}
.job{position:relative;display:grid;grid-template-columns:1fr 1fr;gap:10px;padding:14px;border:1px solid var(--line2);border-radius:16px;background:var(--bg,#fff)}
.job .x{position:absolute;top:8px;right:8px}
.jf{display:flex;flex-direction:column;gap:4px;font-size:12px;color:var(--muted);min-width:0}
.jf.full{grid-column:1/-1;padding-right:28px}
.jf input,.jf select{width:100%;font:inherit;font-size:15px;color:var(--ink,#111);padding:10px;border-radius:10px;border:1px solid var(--line2);background:#fff;box-sizing:border-box}
.sheet-bg{position:fixed;inset:0;background:rgba(10,25,20,.45);display:flex;align-items:flex-end;justify-content:center;z-index:50}
.sheet{width:100%;max-width:520px;background:#fff;border-radius:24px 24px 0 0;padding:22px 20px calc(22px + env(safe-area-inset-bottom));box-shadow:0 -10px 40px rgba(0,0,0,.18)}
.cand-t{font-size:13px;color:var(--muted);font-weight:600}.cand-n{font-size:22px;font-weight:700;margin-top:2px}
.btn.ghost{border-color:transparent;background:transparent;color:var(--muted)}
@media (min-width:760px){.sheet-bg{align-items:center}.sheet{border-radius:24px}}

/* ===== Home tiles v2: muted illustrated cards ===== */
.tiles{gap:14px}
.tile{--t1:#EEF1EC;--t2:#DCE3DA;--ta:#2F4A44;position:relative;overflow:hidden;min-height:184px;padding:14px 16px 16px;justify-content:flex-end;gap:2px;border-radius:26px;
  background:linear-gradient(150deg,var(--t1),var(--t2));box-shadow:inset 0 1px 0 rgba(255,255,255,.7),0 10px 22px -14px var(--ta);border:1px solid rgba(255,255,255,.55)}
.tile:hover{box-shadow:inset 0 1px 0 rgba(255,255,255,.7),0 16px 28px -14px var(--ta);transform:translateY(-2px)}
.tile .art{position:absolute;left:8px;right:8px;top:10px;height:92px;pointer-events:none;display:block}
.tile .art svg{width:100%;height:100%;display:block;filter:drop-shadow(0 6px 8px rgba(30,40,40,.14))}
.tile .tt1{margin-top:0;font-size:13px;font-weight:600;letter-spacing:.02em;text-transform:uppercase;color:var(--ta);opacity:.85}
.tile .tv{font-size:22px;color:#1B2625;margin-top:2px}
.tile .ts{color:var(--ta);opacity:.8;font-size:12.5px}
.tile .tb{top:12px;right:12px;left:auto;border:0;background:#B5584A;color:#fff;box-shadow:0 2px 6px rgba(0,0,0,.2)}
.k-income{--t1:#E6ECF4;--t2:#C9D5E6;--ta:#2E4A72}
.k-budget{--t1:#E4EDE0;--t2:#C6D9C0;--ta:#3A6544}
.k-activity{--t1:#F3EBDB;--t2:#E2D2B4;--ta:#7F6129}
.k-bills{--t1:#F4E4DC;--t2:#E4C3B6;--ta:#8E4733}
.k-networth{--t1:#DFEDEA;--t2:#BDD7D2;--ta:#27605B}
.k-cash{--t1:#E2ECF5;--t2:#C3D7E8;--ta:#2A5C88}
.k-debts{--t1:#EEE2EB;--t2:#D9C3D3;--ta:#6F3D5E}
.k-plan{--t1:#EBEED6;--t2:#D2D8AE;--ta:#566220}
.k-credit{--t1:#E7E4F2;--t2:#CFC9E4;--ta:#4A3F80}
.k-protect{--t1:#F3E2E0;--t2:#E3C0BC;--ta:#843530}
.k-goals{--t1:#F7EBCF;--t2:#EAD299;--ta:#7A5A10}
.k-dates{--t1:#E3E9ED;--t2:#C5D0D8;--ta:#38505F}
.k-settings{--t1:#EAE9E4;--t2:#D3D1C8;--ta:#4D4A42}
@media (min-width:760px){.tile{min-height:196px}}
body{background:#EFF1EC}
.hero-connect{background:radial-gradient(120% 140% at 100% 0%,#2D6A66 0%,#1B4A49 55%,#12383A 100%)}
.tile .tv{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:21px}
.tiles .k-settings{grid-column:1/-1;min-height:150px}
.tiles .k-settings .art svg{object-position:right}

/* Household switcher */
.whobar{display:flex;gap:8px;overflow-x:auto;padding:4px 2px 12px;margin:0 auto;max-width:1100px}
.whobar .who{display:inline-flex;align-items:center;gap:8px;border:1px solid var(--line,#d9dfdc);background:var(--card,#fff);border-radius:999px;padding:5px 14px 5px 5px;font:inherit;font-weight:600;cursor:pointer;white-space:nowrap}
.whobar .who.on{background:#1F5A59;color:#fff;border-color:#1F5A59}
.av{display:inline-grid;place-items:center;width:30px;height:30px;border-radius:50%;background:#E6EFEC;color:#1F5A59;font-weight:700;font-size:13px;flex:none}
.whobar .who.on .av{background:#fff;color:#1F5A59}
.tag{display:inline-block;font-size:12px;font-weight:600;padding:1px 8px;border-radius:999px;background:#E6EFEC;color:#1F5A59;vertical-align:middle}
table.edit select{min-width:110px}
.chips{display:grid;grid-template-columns:repeat(auto-fill,minmax(104px,1fr));gap:8px}
.chip-b{font:inherit;font-size:13px;font-weight:600;padding:10px 6px;border-radius:12px;border:1px solid var(--line2,#d5dcd9);background:#fff;color:inherit;cursor:pointer;min-height:44px;line-height:1.15}
.chip-b.hint{border-color:#2F7472;border-style:dashed}
.chip-b.on{background:#1F5A59;color:#fff;border-color:#1F5A59}

/* ---------- money tree home ---------- */
.msum{background:var(--card,#fff);border-radius:22px;padding:14px 16px;box-shadow:var(--shadow);display:flex;flex-direction:column;gap:8px}
.mtabs{display:flex;gap:6px;flex-wrap:wrap}
.mtab{font:inherit;font-size:13px;font-weight:600;border:1px solid var(--line2,#d5dcd9);background:transparent;border-radius:999px;padding:5px 12px;cursor:pointer;color:inherit}
.mtab.on{background:#1F5A59;border-color:#1F5A59;color:#fff}
.msub{font-size:12px;color:var(--muted,#6b7572)}
.mnums{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.mnums div{background:#F2F5F3;border-radius:14px;padding:8px 10px;display:flex;flex-direction:column}
.mnums span{font-size:12px;color:var(--muted,#6b7572)} .mnums strong{font-size:20px;white-space:nowrap}
.inrow{display:grid;grid-template-columns:1fr auto 1fr;gap:8px;align-items:center;margin-top:14px}
.inrow.two{grid-template-columns:1fr 1fr}
.plus{font-size:26px;font-weight:700;color:#7a8783}
.intile{position:relative;display:flex;flex-direction:column;align-items:flex-start;gap:1px;padding:12px;border-radius:22px;text-decoration:none;color:var(--ink,#1b2422);min-height:150px;background:#EEF3F7}
.intile.k-job{background:#E6EEF7}.intile.k-oth{background:#EAF3DE}.intile.k-credit{background:#F1EEF8}.intile.k-ins{background:#E3F2F6}
.intile .ii{width:64px;height:64px;display:block;margin-bottom:4px}.intile.k-credit .ii,.intile.k-ins .ii{width:100%;height:70px}
.intile .ii svg{width:100%;height:100%}
.intile .it{font-size:12px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;opacity:.75}
.intile .iv{font-size:22px;font-weight:800;white-space:nowrap}.intile .is{font-size:12px;opacity:.75}
.intile .tb{position:absolute;top:10px;right:10px;background:#B5483B;color:#fff;font-style:normal;font-size:12px;font-weight:700;border-radius:999px;padding:1px 8px}
.trunk{width:3px;height:16px;background:#C9D3CF;margin:0 auto}
.branch{background:var(--card,#fff);border-radius:22px;box-shadow:var(--shadow);padding:12px;margin-bottom:12px}
.bhead{display:flex;align-items:center;gap:10px;text-decoration:none;color:inherit}
.bart{width:112px;height:72px;display:flex;gap:4px;flex:none}.bart svg{height:100%;width:auto;flex:1}
.bhead.sm .bart{width:88px;height:56px}
.btt{display:flex;flex-direction:column}.bt{font-weight:700;font-size:15px}.bv{font-size:22px;font-weight:800}
.bkids{position:relative;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:12px;padding-top:12px;border-top:2px solid #DCE4E1}
.bkids::before{content:"";position:absolute;top:-14px;left:56px;width:2px;height:12px;background:#DCE4E1}
.subbranch{grid-column:1/-1;background:#F6F8F7;border-radius:16px;padding:10px}
.subbranch .bkids{margin-top:8px;padding-top:8px}
.leaf{display:flex;flex-direction:column;align-items:center;text-align:center;gap:2px;text-decoration:none;color:inherit;padding:4px 2px;border-radius:12px}
.leaf .li{width:46px;height:46px;display:block}.leaf .li svg{width:100%;height:100%}
.leaf .ll{font-size:12px;line-height:1.2}.leaf .la{font-size:14px;font-weight:800}.leaf .ls{font-size:11px;color:var(--muted,#6b7572);line-height:1.2}
.leaf.zero{opacity:.55}.leaf:active{background:#F2F5F3}
.bfoot{display:block;margin-top:10px;font-size:13px;font-weight:600}
.bnote{font-size:12px;color:var(--muted,#6b7572);margin:10px 0 0}
.needs{display:flex;align-items:center;gap:10px;border:2px dashed #C9D3CF;border-radius:18px;padding:12px;text-decoration:none;color:inherit;margin-bottom:6px}
.needs>span:first-child{width:28px;height:28px;border-radius:50%;background:#EFEDE8;display:grid;place-items:center;font-weight:800}
.needs .go{font-weight:700;color:#1F5A59}
.morelinks{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px}
.morelinks a{font-size:13px;font-weight:600;padding:7px 12px;border-radius:999px;background:#F2F5F3;text-decoration:none;color:inherit}
.insbubble{display:flex;gap:14px;align-items:center;background:#E3F2F6;border-radius:22px;padding:14px;margin-bottom:12px}
.insbubble .ib-art{width:130px;flex:none}.insbubble h1{font-size:22px;margin:0 0 4px}.insbubble p{margin:0;font-size:14px}
.insflow{display:flex;flex-direction:column;align-items:stretch;margin-bottom:16px}
.insbox{display:flex;flex-direction:column;gap:6px;background:var(--card,#fff);border-radius:18px;box-shadow:var(--shadow);padding:12px 14px 12px 48px;position:relative}
.insbox .btn{align-self:flex-start}
.insn{position:absolute;left:12px;top:12px;width:26px;height:26px;border-radius:50%;background:#2F8F7A;color:#fff;display:grid;place-items:center;font-weight:800;font-size:13px}
.insarrow{text-align:center;font-size:20px;color:#2F8F7A;line-height:1.4}
@media (min-width:760px){.bkids{grid-template-columns:repeat(6,minmax(0,1fr))}.inrow{max-width:760px}}
.b-home .bart{width:160px}

/* ---------- home: big tiles that fit one phone screen ---------- */
body.on-home main{padding:max(10px,env(safe-area-inset-top)) 12px max(10px,env(safe-area-inset-bottom))}
.home.fit{height:calc(100svh - 20px - env(safe-area-inset-top) - env(safe-area-inset-bottom));gap:8px;max-width:640px}
.home.fit .homehead h1{font-size:24px}
.iconbtn{width:40px;height:40px;border-radius:50%;display:grid;place-items:center;background:#F2F5F3;text-decoration:none;color:inherit;font-size:18px}
.home.fit .avatar{width:40px;height:40px}
.home.fit .whobar{padding:0}
.bankline{display:flex;align-items:center;gap:8px;background:#FFF4DC;border-radius:14px;padding:6px 6px 6px 12px;font-size:13px;font-weight:600}.bankline span:first-child{flex:1}
.msum.compact{padding:8px 10px;gap:6px;border-radius:18px}
.msum.compact .mtab{padding:3px 10px;font-size:12px}
.msum.compact .mnums div{padding:5px 8px}.msum.compact .mnums strong{font-size:17px}
.bigs{flex:1;min-height:0;display:grid;grid-template-columns:1fr 1fr;grid-template-rows:repeat(4,minmax(0,1fr));gap:8px}
.big{position:relative;display:flex;flex-direction:column;justify-content:flex-end;padding:8px 12px 10px;border-radius:20px;text-decoration:none;color:#fff;overflow:hidden;min-height:0;background:var(--bg)}
.big:active{transform:scale(.97)}
.big .bga{position:absolute;right:6px;top:6px;height:52%;max-width:70%;display:flex;align-items:center;gap:2px}
.big .bga svg{height:100%;width:auto;max-width:100%}
.big .pl{color:#fff;font-size:16px}
.big .bgt{font-size:12px;font-weight:700;letter-spacing:.05em;text-transform:uppercase;opacity:.92}
.big .bgv{font-size:clamp(18px,5.4vw,26px);font-weight:800;line-height:1.1;white-space:nowrap}
.big .bgs{font-size:12px;opacity:.9;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.big .tb{position:absolute;top:8px;left:10px;background:#fff;color:#B5483B;font-style:normal;font-size:12px;font-weight:800;border-radius:999px;padding:1px 8px}
.big.k-job{--bg:#2B5C9E}.big.k-oth{--bg:#3F8A3A}.big.k-home{--bg:#C2652E}.big.k-car{--bg:#D9472B}.big.k-exp{--bg:#E08A12}.big.k-borrow{--bg:#5A49C2}.big.k-credit{--bg:#1E7F6B}.big.k-ins{--bg:#1F8FD1}
.big.k-home .bga,.big.k-car .bga,.big.k-exp .bga,.big.k-borrow .bga,.big.k-ins .bga,.big.k-credit .bga{background:rgba(255,255,255,.92);border-radius:14px;padding:3px 6px}
@media (max-height:640px){.big .bga{height:44%}.big .bgs{display:none}}
/* ---------- tree pages ---------- */
.tree{gap:0;max-width:640px}
.tree .msum{margin-bottom:12px}
.thead{display:flex;flex-direction:column;align-items:center;gap:2px;border-radius:24px;padding:14px;color:#fff;background:var(--bg,#2C3E50);text-align:center}
.thead.k-home{--bg:#C2652E}.thead.k-car{--bg:#D9472B}.thead.k-exp{--bg:#E08A12}.thead.k-borrow{--bg:#5A49C2}.thead.k-job{--bg:#2B5C9E}.thead.k-otherin{--bg:#3F8A3A}
.thead .tha{display:flex;align-items:center;gap:6px;height:110px;background:rgba(255,255,255,.95);border-radius:18px;padding:6px 12px;color:#2C2C2A}
.thead .tha svg{height:100%;width:auto}.thead .homes{display:flex;align-items:center;gap:6px;height:100%}
.thead .tht{font-size:14px;font-weight:700;text-transform:uppercase;letter-spacing:.05em;margin-top:6px}.thead .thv{font-size:34px;font-weight:800}.thead .ths{font-size:13px}.thead .ths a{color:#fff}
.pl{font-weight:800;font-size:22px;color:#7a8783}
.flow{width:4px;height:20px;background:#C9D3CF;margin:0 auto;border-radius:2px}
.homecards{display:flex;align-items:center;gap:6px}.homecard{flex:1;display:flex;align-items:center;gap:8px;background:#fff;border-radius:18px;box-shadow:var(--shadow);padding:8px}
.homecard .hca{width:64px;height:48px;flex:none}.homecard .hca svg{width:100%;height:100%}
.leaves{position:relative;display:grid;grid-template-columns:1fr 1fr;gap:10px;padding-top:14px;border-top:4px solid #C9D3CF;border-radius:2px}
.leaf{display:flex;flex-direction:column;align-items:flex-start;gap:2px;padding:12px;border-radius:20px;background:var(--c);color:#fff;text-decoration:none;min-height:128px;text-align:left;opacity:1}
.leaf .li{width:52px;height:52px;display:block;margin-bottom:6px}.leaf .li svg{width:100%;height:100%}
.leaf .ll{font-size:14px;font-weight:700;line-height:1.2}.leaf .la{font-size:22px;font-weight:800}.leaf .ls{font-size:12px;opacity:.92;color:#fff}
.leaf:active{transform:scale(.97)}
.morelinks.big a{font-size:16px;padding:12px 16px}
.big i.tb{position:absolute;inset:auto;top:8px;left:10px;right:auto;width:auto;height:auto;min-width:0;display:inline-block;line-height:1.4}
.homecards{flex-direction:column;align-items:stretch}.homecards .pl.big{text-align:center;line-height:1}

/* ---------- moving month pictures ---------- */
.anim .a-drop{animation:aDrop 2.8s cubic-bezier(.5,0,.6,1) infinite}.anim .a-drop.d2{animation-delay:1.4s}
@keyframes aDrop{0%{transform:translateY(-14px);opacity:0}20%{opacity:1}55%{transform:translateY(22px);opacity:1}70%,100%{transform:translateY(22px);opacity:0}}
.anim .a-arrow{animation:aBob 1.4s ease-in-out infinite}.anim .a-arrow2{animation:aBob2 1.4s ease-in-out infinite}
@keyframes aBob{50%{transform:translateY(4px)}}@keyframes aBob2{50%{transform:translate(3px,-3px)}}
.anim .a-fly{animation:aFly 3s ease-in infinite}.anim .a-fly.d2{animation-delay:1s}.anim .a-fly.d3{animation-delay:2s}
@keyframes aFly{0%{transform:translate(0,0) rotate(0);opacity:1}100%{transform:translate(70px,-36px) rotate(-18deg);opacity:0}}
.anim .a-coin{animation:aCoin 2.6s ease-in-out infinite}
@keyframes aCoin{0%{transform:translateY(-6px);opacity:0}30%{opacity:1}60%{transform:translateY(14px)}75%,100%{transform:translateY(14px);opacity:0}}
.anim .a-spark{transform-origin:96px 19px;animation:aSpark 1.8s ease-in-out infinite}@keyframes aSpark{50%{transform:scale(.4);opacity:.3}}
.anim .a-hand{animation:aHand 2.6s ease-in-out infinite}@keyframes aHand{0%,15%{transform:translateX(18px)}55%,85%{transform:translateX(-14px)}100%{transform:translateX(18px)}}
.anim .a-reach{animation:aReach 2.6s ease-in-out infinite}@keyframes aReach{0%,15%{transform:translateX(0)}55%,85%{transform:translateX(4px)}}
@media (prefers-reduced-motion:reduce){.anim *{animation:none!important}}

/* the three moving month tiles */
.mtabs.slim{gap:6px}.mtabs.slim .mtab{padding:3px 10px;font-size:12px}
.mtiles{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.mt{display:flex;flex-direction:column;align-items:flex-start;border-radius:18px;padding:6px 10px 8px;text-decoration:none;background:var(--bg);min-height:0}
.mt .mta{width:100%;height:52px;display:block}.mt .mta svg{width:100%;height:100%}
.mt .mtl{font-size:11px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;opacity:.9}.mt .mtv{font-size:clamp(15px,4.4vw,20px);font-weight:800;white-space:nowrap}
.mt.k-in{--bg:#2F5E3A}.mt.k-out{--bg:#6E3A1F}.mt.k-left{--bg:#24476E}.mt.k-short{--bg:#7A2626}
.home.fit .bigs{grid-template-rows:repeat(4,minmax(0,1fr))}
/* homes: house + condo = total */
.homeeq{display:flex;align-items:stretch;gap:6px;width:100%;margin-top:8px}
.heq{flex:1;display:flex;flex-direction:column;align-items:center;gap:1px;background:rgba(255,255,255,.1);border-radius:16px;padding:8px 4px}
.heq .hca{width:100%;height:64px;background:rgba(255,255,255,.92);border-radius:12px;padding:2px}.heq .hca svg{width:100%;height:100%}
.heq strong{font-size:13px;margin-top:4px}.heq .hv{font-size:22px;font-weight:800}.heq .hs{font-size:11px;opacity:.85;text-align:center}
.op{align-self:center;font-size:26px;font-weight:800;color:#fff}
.eqline{display:flex;align-items:center;justify-content:center;gap:10px;margin-top:6px;font-size:30px;font-weight:800}

/* ---------- calm cards, the picture is the star ---------- */
:root{--tile:#FFFFFF;--tile-ink:#1C2422;--tile-soft:#66716D}
.big,.mt,.leaf,.thead{background:var(--tile)!important;color:var(--tile-ink)!important;box-shadow:0 1px 2px rgba(20,30,28,.06),0 6px 18px -8px rgba(20,30,28,.18);border:1px solid #ECEFEC}
.big *,.mt *,.leaf *,.thead *:not(svg):not(svg *){color:inherit}
.big .bgs,.mt .mtl,.leaf .ls,.leaf .ll,.thead .ths,.big .bgt{color:var(--tile-soft)!important}
.big{border-bottom:4px solid var(--bg)}.mt{border-bottom:4px solid var(--bg)}.leaf{border-bottom:4px solid var(--c)}.thead{border-bottom:5px solid var(--bg)}
.big .bga{background:none!important;padding:0!important;height:58%;max-width:78%;top:4px;right:4px}
.big .pl,.op{color:#9AA39F!important}
.big .bgv,.leaf .la,.mt .mtv,.thead .thv{color:var(--tile-ink)!important}
.big .tb{background:#B5483B!important;color:#fff!important}
.mt.k-short .mtv{color:#9C2A2A!important}.mt.k-in .mtv{color:#2F6B3E!important}
.mt .mta{height:58px}
.leaf .li{background:none;padding:0;width:60px;height:60px}
.leaf .lb{display:block;width:100%;height:6px;border-radius:3px;background:#EEF1EF;margin-top:4px;overflow:hidden}.leaf .lb i{display:block;height:100%;background:var(--c)}.leaf .lb.over i{background:#B5483B}
.thead .tha{background:none;height:120px}
.heq{background:#F7F8F6!important}.heq .hca{background:none}.heq .hv{color:var(--tile-ink)!important}.heq .hs,.heq strong{color:var(--tile-soft)!important}
.eqline{color:var(--tile-ink)}
.thead .ths a,.thead a{color:#1F5A59!important}
/* ---------- Ask Runway ---------- */
.askfab{position:fixed;right:16px;bottom:calc(16px + env(safe-area-inset-bottom));z-index:40;border:0;border-radius:999px;padding:12px 18px;background:#1C2422;color:#fff;font:inherit;font-weight:700;box-shadow:0 8px 24px rgba(0,0,0,.25);cursor:pointer;display:flex;gap:8px;align-items:center}
.askfab::before{content:"";width:10px;height:10px;border-radius:50%;background:#7CC49A;box-shadow:0 0 0 4px rgba(124,196,154,.3);animation:aSpark 1.8s ease-in-out infinite}
.chat-bg{position:fixed;inset:0;background:rgba(0,0,0,.35);z-index:49}
.chatbox{position:fixed;left:0;right:0;bottom:0;z-index:50;background:#fff;border-radius:22px 22px 0 0;max-height:82svh;display:flex;flex-direction:column;padding:12px 14px calc(12px + env(safe-area-inset-bottom));max-width:640px;margin:0 auto}
.chathead{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding-bottom:8px;border-bottom:1px solid #ECEFEC}.chathead .x{margin-left:auto}
.chatlog{flex:1;overflow:auto;display:flex;flex-direction:column;gap:8px;padding:10px 0;min-height:160px}
.msg{max-width:86%;padding:9px 12px;border-radius:16px;font-size:15px;line-height:1.45}
.msg.user{align-self:flex-end;background:#1F5A59;color:#fff;border-bottom-right-radius:4px}.msg.bot{align-self:flex-start;background:#F2F5F3;border-bottom-left-radius:4px}
.chatform{display:flex;gap:8px}.chatform input{flex:1;font:inherit;padding:11px 12px;border-radius:12px;border:1px solid #D5DCD9}
body.gated .askfab{display:none}
body.on-home .askfab{display:none}.askpill{border:0;border-radius:999px;padding:9px 14px;background:#1C2422;color:#fff;font:inherit;font-weight:700;display:flex;align-items:center;gap:6px;cursor:pointer}.askpill::before{content:"";width:8px;height:8px;border-radius:50%;background:#7CC49A}
.big .bga{height:50%}
/* ---------- tile layout: name and count on top, total in the middle, pictures with their amounts ---------- */
.big{display:flex!important;flex-direction:column;justify-content:flex-start!important;padding:8px 10px 7px!important;gap:1px}
.big .bh{display:flex;justify-content:space-between;align-items:center;gap:6px;min-height:20px}
.big .bgt{font-size:11.5px;font-weight:700;letter-spacing:.05em;text-transform:uppercase;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.big .cnt{font-size:11px;font-weight:700;padding:2px 8px;border-radius:999px;background:#F0F3F1;color:#4A5551!important;white-space:nowrap}
.big .cnt.alert{background:#B5483B;color:#fff!important}
.big .bgv{align-self:center;text-align:center;font-size:clamp(19px,5.6vw,26px)!important;font-weight:800;line-height:1.15}
.big .bp{flex:1;min-height:0;display:flex;align-items:stretch;justify-content:center;gap:2px;margin-top:2px}
.big .part{flex:1;display:flex;flex-direction:column;align-items:center;min-width:0}
.big .pa{flex:1;min-height:0;width:100%;display:flex;justify-content:center;align-items:flex-end}
.big .pa svg{height:100%;width:auto;max-width:100%}
.big .pc{font-size:11.5px;font-weight:700;color:var(--tile-ink)!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%;margin-top:2px}
.big .pl{align-self:center;font-size:18px;margin-bottom:14px}
/* ---------- Ask: support agent ---------- */
.askagent{border:0;background:none;display:flex;flex-direction:column;align-items:center;gap:0;padding:0;font:inherit;font-size:11px;font-weight:800;color:#1F5A59;cursor:pointer;line-height:1.1}
.askagent .ag{width:34px;height:34px;display:block;border-radius:50%;box-shadow:0 0 0 2px #fff,0 0 0 4px #7CC49A}.askagent .ag svg{width:100%;height:100%}
.askfab{flex-direction:column;gap:2px;padding:8px 12px;border-radius:20px}.askfab::before{display:none}.askfab .ag{width:36px;height:36px;display:block}.askfab .ag svg{width:100%;height:100%}
.chathead .agv{width:40px;height:40px;flex:none}.chathead .agv svg{width:100%;height:100%}
.chathead .who{display:flex;flex-direction:column;line-height:1.2}.chathead .on{font-size:12px;color:#2F7A44;font-weight:600}.chathead .on::before{content:"● "}
.msg.bot{display:block}.botrow{display:flex;gap:8px;align-items:flex-end;align-self:flex-start;max-width:92%}.botrow .mini{width:26px;height:26px;flex:none}.botrow .mini svg{width:100%;height:100%}.botrow .msg{max-width:100%}
.chips2{display:flex;gap:6px;flex-wrap:wrap;padding:4px 0 8px}.chips2 button{font:inherit;font-size:13px;font-weight:600;border:1px solid #CFE0DA;background:#F2F8F5;color:#1F5A59;border-radius:999px;padding:6px 10px;cursor:pointer}
.msg b{font-weight:800}
.mt .mta{height:44px!important}.mt{padding:4px 10px 6px!important}.mt .mtv{font-size:clamp(15px,4.2vw,19px)}
/* ---------- tiles always show everything: name, total, picture, caption ---------- */
.big{display:grid!important;grid-template-rows:auto auto minmax(0,1fr);overflow:hidden}
.big .bgv{font-size:min(6vw,3.6svh,26px)!important}
.big .bp{min-height:0;overflow:hidden;align-items:stretch}
.big .part{display:grid!important;grid-template-rows:minmax(0,1fr) auto;justify-items:center;min-height:0;height:100%}
.big .pa{min-height:0!important;height:100%;width:100%;overflow:hidden;align-items:flex-end}
.big .pa svg{height:100%;max-height:100%;width:auto;max-width:100%}
.big .pc{line-height:1.25;padding-bottom:1px;font-size:min(3vw,1.7svh,12px)}
.big .pl{margin-bottom:12px}
.mt .mta{height:min(44px,5.5svh)!important}
.big>*{min-width:0}.big .bh{width:100%}.big .bgv{justify-self:center;font-size:min(5.6vw,3.1svh,26px)!important;line-height:1.1}
.big .bp{justify-self:stretch;width:100%}
.mt .mta{height:min(44px,4.6svh)!important}.mt .mtv{font-size:min(4.6vw,2.6svh,19px)!important}.mt .mtl{font-size:10.5px}
.home.fit{gap:6px}.home.fit .homehead h1{font-size:min(24px,3.4svh)}
.big{grid-template-columns:minmax(0,1fr)}
/* bottom row: three smaller tiles */
.bigs{grid-template-columns:repeat(6,minmax(0,1fr))!important}
.bigs>.big{grid-column:span 3}.bigs>.big.sm3{grid-column:span 2}
.big.sm3{padding:6px 7px 6px!important}.big.sm3 .bgt{font-size:10.5px}.big.sm3 .bgv{font-size:min(4.4vw,2.6svh,20px)!important}.big.sm3 .pc{font-size:min(2.8vw,1.6svh,11px)}
.big.k-india{--bg:#C46F12}.big.k-credit{--bg:#21604F}
/* bottom row: soft colour so they stand apart */
.big.sm3{border:0!important}
.big.k-credit.sm3{background:#E7F1EC!important}.big.k-india.sm3{background:#FBEBD7!important}.big.k-ins.sm3{background:#E3EEF6!important}
.big.sm3 .bgt{font-weight:800;letter-spacing:.06em}.big.k-credit.sm3 .bgt{color:#1E5A4A!important}.big.k-india.sm3 .bgt{color:#8A4B0E!important}.big.k-ins.sm3 .bgt{color:#1C4F73!important}
.big.k-credit.sm3 .bgv{color:#17463A!important}.big.k-india.sm3 .bgv{color:#6E3B0B!important}.big.k-ins.sm3 .bgv{color:#163F5C!important}
.big.k-goals{--bg:#B5483B}
.bigs>.big.full{grid-column:1/-1}
.anim .a-rain{animation:aRain 1.6s linear infinite}@keyframes aRain{0%{transform:translateY(-6px);opacity:0}30%{opacity:1}100%{transform:translateY(14px);opacity:0}}
.anim .a-spark2{transform-origin:100px 66px;animation:aPulse 2.4s ease-in-out infinite}@keyframes aPulse{50%{transform:scale(1.08)}}
.pol{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:10px 0;border-top:1px solid var(--line,#e6e2da)}.pol>div:first-child{min-width:0}
.cmp{width:100%;border-collapse:collapse;font-size:.92rem}.cmp th,.cmp td{text-align:right;padding:6px 4px;border-top:1px solid var(--line,#e6e2da)}.cmp th:first-child,.cmp td:first-child{text-align:left}.cmp tr.on td{font-weight:700}
#toast .undo{margin-left:10px;background:none;border:1px solid currentColor;color:inherit;border-radius:8px;padding:2px 10px;font:inherit;font-weight:700;cursor:pointer}
.soonbar{background:linear-gradient(90deg,#0F3D3E,#2F7472);color:#fff;font-size:12.5px;line-height:1.3;padding:6px 12px;text-align:center;border-radius:10px;margin:0 0 8px}.soonbar span{background:#F2B42C;color:#2C2C2A;border-radius:999px;padding:1px 8px;font-weight:700;margin-left:2px;white-space:nowrap}
/* payoff plan: two columns on wide screens, timeline full width under; phone stacks order > income needed > money split */
.plan2{display:grid;gap:16px;grid-template-columns:minmax(0,1fr);grid-template-areas:"order" "need" "flow";margin-bottom:16px}
.plan2 .p-order{grid-area:order}.plan2 .p-need{grid-area:need}.plan2 .p-flow{grid-area:flow}
.plan2>div>section{height:100%}
@media(min-width:1024px){.plan2{grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-areas:"need order" "need flow";align-items:start}}
.plan2 table{width:100%}.plan2 td.nm,.cmp td,.edit td{overflow-wrap:anywhere}
.exnum{display:inline-flex;align-items:center;gap:4px;color:var(--mint)}
.exnum input{width:110px;font:inherit;font-weight:700;padding:6px 8px;border-radius:8px;border:1px solid rgba(255,255,255,.3);background:rgba(255,255,255,.12);color:#fff;text-align:right}
.seg3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}
.seg3 button{white-space:normal;line-height:1.2}
table.edit select{min-width:130px}
.track .lbl{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.txn{white-space:normal;overflow-wrap:anywhere}
.ts{white-space:normal}
.soonbar{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:12px;padding:5px 10px;margin:0 0 6px}
body.on-home .soonbar{max-width:640px;margin:0 auto 6px}
body.on-home .home.fit{height:calc(100svh - 20px - 32px - env(safe-area-inset-top) - env(safe-area-inset-bottom))}
