:root{--ink:#102449;--blue:#1768ed;--green:#087b4d;--muted:#65748b;--bg:#f6f8fc;--line:#e6ebf3}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:15px/1.5 -apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif}button,input,select{font:inherit}button{cursor:pointer}.wrap{max-width:920px;margin:auto;padding:15px 15px 100px}.top{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px;gap:6px}.brand{display:flex;align-items:center;gap:9px;font-size:19px;font-weight:850}.brandmark{display:grid;place-items:center;background:#eaf2ff;color:#1166e9;border-radius:12px;width:38px;height:38px}.actions{display:flex;align-items:center;gap:6px}.sync{font-size:11px;color:var(--green)}.iconbtn{border:1px solid var(--line);border-radius:12px;background:white;min-width:40px;min-height:40px;font-size:22px;color:var(--ink)}.dropdown{position:relative}.menu{position:absolute;z-index:50;top:46px;right:0;width:225px;padding:8px;background:#fff;border:1px solid var(--line);border-radius:14px;box-shadow:0 14px 50px #10244922}.menu button{display:block;text-align:left;width:100%;padding:12px;background:white;border:0;border-radius:8px;color:var(--ink)}.menu button:hover{background:#eef5ff}.page{display:none}.page.active{display:block}.panel{background:#fff;border:1px solid var(--line);box-shadow:0 5px 20px #19325808;border-radius:20px;padding:21px;margin:15px 0}.auth{max-width:480px;margin:55px auto}.auth h1{margin-top:0}.hero{position:relative;border-radius:22px;overflow:hidden;padding:85px 26px 28px;color:white;background-size:cover;background-position:center;min-height:214px}.househero{background-image:linear-gradient(90deg,#102544dd,#10254480),url('/home-hero.jpg')}.financehero{background:linear-gradient(120deg,#152d56,#185a8c 70%,#38a19b)}.heroeyebrow{font-size:11px;letter-spacing:2px;font-weight:850}.hero h1{font-size:36px;line-height:1.2;letter-spacing:-1px;margin:9px 0}.hero p{margin:0;color:#eaf3ff}.over{margin-top:-18px;position:relative}.eyebrow{font-size:11px;letter-spacing:1.3px;text-transform:uppercase;font-weight:800;color:var(--muted)}.big{font-size:clamp(33px,6vw,49px);font-weight:850;letter-spacing:-1.4px;margin:5px 0}.green{color:var(--green)}.sub,.hint{color:var(--muted);font-size:13px;margin:4px 0 16px}.hint{font-size:12px}.bar{height:12px;border-radius:15px;background:#e8edf5;overflow:hidden;margin:14px 0 6px}.barfill{height:100%;width:0%;background:linear-gradient(90deg,#21af69,#52ca7b);transition:width .25s}.minirow{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;color:var(--muted);font-size:12px}.minirow b{color:var(--ink)}.statgrid{display:grid;grid-template-columns:repeat(2,1fr);gap:11px;margin-top:16px}.tile{border-radius:16px;padding:15px}.mint{background:#eaf7ef}.sky{background:#f1f6ff}.tile small{font-size:12px;color:#5a6b80;display:block}.tile strong{font-size:clamp(19px,3vw,27px);letter-spacing:-.7px}.sectionhead{display:flex;justify-content:space-between}h2{font-size:21px;letter-spacing:-.5px;margin:0 0 4px}.chips{display:flex;gap:7px;flex-wrap:wrap;margin:15px 0}.chip{background:white;color:#365274;border:1px solid #dbe3f0;border-radius:11px;padding:9px 11px;font-weight:750;font-size:12px}.chip.chosen{background:var(--blue);color:white;border-color:var(--blue)}.formgrid{display:grid;grid-template-columns:1fr 1fr;gap:11px}label{font-weight:750;font-size:12px;color:#53637c;display:block;margin-bottom:13px}input,select{background:#fff;color:var(--ink);display:block;width:100%;border:1px solid #dbe2ed;border-radius:12px;margin-top:5px;padding:11px 12px;min-height:45px;outline:none}input:focus,select:focus{border-color:var(--blue);box-shadow:0 0 0 3px #1768ed16}.btn{background:var(--blue);color:#fff;border:0;border-radius:12px;min-height:44px;padding:11px 16px;font-weight:800}.btn.secondary{background:#eaf2ff;color:#1653b7}.wide{width:100%}.rows>.item{border-bottom:1px solid var(--line);padding:13px 0;display:flex;align-items:center;justify-content:space-between;gap:10px}.rows>.item:last-child{border-bottom:0}.item .itemname{font-weight:750;overflow-wrap:anywhere}.item small{display:block;font-size:11px;color:var(--muted)}.item .value{text-align:right;font-weight:850;white-space:nowrap}.item .remove{border:0;background:#fff2f3;border-radius:9px;padding:5px 9px;color:#b23a50;margin-left:7px}.accent{background:linear-gradient(110deg,#ebf9f0,#f0f6ff)}.milestonegrid{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin:15px 0}.ms{background:white;border:1px solid #dce5f0;border-radius:12px;padding:12px 5px;text-align:center}.ms.done{background:#d8f5e6;border-color:#67c995}.ms strong{display:block;color:#087b4d}.ms small{font-size:10px;color:var(--muted)}.note,.forecastbox{background:#e9f6f0;border-radius:14px;padding:15px;color:#24594c}.yearhead{display:flex;gap:15px;justify-content:center;align-items:center;margin:16px}.chart{height:190px;display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:5px;align-items:end;margin:17px 0 30px}.chart .column{height:100%;display:flex;flex-direction:column;align-items:center;gap:4px;min-width:0}.chart .track{width:100%;flex:1;background:#edf3fc;border-radius:7px 7px 0 0;position:relative;overflow:hidden}.chart .fill{position:absolute;bottom:0;left:0;right:0;background:linear-gradient(0deg,#1768ed,#5abafd);border-radius:6px 6px 0 0}.chart small{font-size:10px;color:var(--muted)}.forecastbox{margin:16px 0}.bottom{position:fixed;bottom:0;left:0;right:0;z-index:25;background:#fffffff3;backdrop-filter:blur(12px);border-top:1px solid var(--line);padding:8px 5px calc(8px + env(safe-area-inset-bottom));display:flex;justify-content:space-around}.bottom button{border:0;background:transparent;color:#526983;font-size:20px;min-width:60px}.bottom button.current{color:var(--blue)}.bottom small{font-size:10px;display:block;font-weight:750}.toast{position:fixed;z-index:100;bottom:90px;left:50%;transform:translateX(-50%);background:#162e46;color:#fff;padding:12px 16px;border-radius:12px;display:none;max-width:90%;text-align:center}.toast.visible{display:block}@media(max-width:580px){.wrap{padding:12px 12px 105px}.sync{display:none}.panel{padding:17px}.hero{min-height:195px;padding:75px 19px 24px}.hero h1{font-size:31px}.milestonegrid{grid-template-columns:1fr 1fr}.formgrid{grid-template-columns:1fr}.chart{gap:3px;height:155px}} 

/* Finance refresh — quiet premium palette and clear touch targets */
:root{--ink:#162b3c;--blue:#196e70;--green:#136d56;--muted:#657581;--bg:#f4f7f5;--line:#e2e9e7}
body{background:var(--bg);-webkit-text-size-adjust:100%;touch-action:pan-x pan-y}
.financehero{background-image:linear-gradient(90deg,rgba(12,34,38,.87),rgba(12,34,38,.25)),url('/home-hero.jpg');background-position:center 54%;min-height:238px}
.hero{border-radius:23px}.panel{border-radius:22px;box-shadow:0 10px 36px #1e38400b}.btn,.chip,.iconbtn{transition:background .15s ease,transform .15s ease}.btn:active,.paybutton:active{transform:scale(.98)}
.billrow{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 2px;border-bottom:1px solid var(--line)}.billrow strong{display:block;font-weight:750}.billrow small{display:block;color:var(--muted);font-size:12px}.billactions{display:flex;gap:10px;align-items:center}.billactions>strong{white-space:nowrap}.paybutton{border-radius:11px;background:#196e70;color:white;border:0;min-width:66px;min-height:40px;font-size:13px;font-weight:750}.paybutton.ispaid{background:#e5f4ec;color:#146a4d}.payperiod{display:flex;align-items:center;justify-content:space-between;background:#f0f7f5;border-radius:12px;padding:12px 13px;color:#285f59;font-size:13px;font-weight:750}.pill{border-radius:999px;padding:4px 9px;background:white;font-size:11px}.paytotal{display:flex;justify-content:space-between;align-items:center;padding:13px 2px;font-size:13px}.paytotal.balance{border-top:1px solid var(--line);font-weight:750}.paytotal.balance strong{font-size:25px;color:#146e50}.editbtn{background:#eff6f5;color:#17666b;border:0;padding:7px 9px;border-radius:9px;margin-right:6px;font-size:12px}.linkbtn{background:transparent;color:#687681}.filterrow{display:grid;grid-template-columns:1fr 1fr;gap:12px}.insight{background:#edf7f2;color:#146b52;border-radius:14px;font-size:17px;font-weight:750;padding:16px;margin-bottom:20px}.reporttabs{display:flex;gap:9px;margin:15px 0 22px}.reporttabs button{flex:1}.hero p{color:#eef9f7}input:focus,select:focus{border-color:#196e70;box-shadow:0 0 0 3px #196e701a}.chip.chosen,.btn{background:#196e70;border-color:#196e70}.btn.secondary{background:#e6f2f1;color:#176766}.bottom button.current{color:#196e70}.brandmark{background:#e4f1ef;color:#196e70}
@media(max-width:580px){.financehero{min-height:224px}.billactions{gap:7px}.billrow strong{font-size:14px}.billactions>strong{font-size:13px}.filterrow{gap:7px}}

.financehero{background-image:linear-gradient(90deg,rgba(7,29,52,.93),rgba(7,29,52,.25)),url('/expense-hero.jpg');background-position:center;background-size:cover;min-height:230px}.extrasHeading{font-size:14px;color:#526783;margin:16px 0 0}.billrow .remove{border:0;background:#fff2f2;color:#a43c48;border-radius:9px;padding:8px 11px}.billpanel{border:1px solid #ccdfef}.billpanel h2{font-size:23px}.billpanel .paytotal.balance{background:#ebf7f0;border-radius:12px;padding:15px;margin-top:8px}.billpanel .paytotal.balance strong{color:#087a4d}.billpanel .paytotal{gap:10px}.billpanel .paytotal b{text-align:right}.financehero h1{text-shadow:0 2px 15px #071f33aa}@media(max-width:580px){.financehero{min-height:205px}.billrow{gap:6px}.billactions{gap:5px}}

/* V4 polished blue and white design inspired by the approved five-screen reference */
:root{--ink:#102655;--blue:#1665ef;--green:#067846;--muted:#687a96;--bg:#f4f7fe;--line:#e1e9f5}
body{background:linear-gradient(180deg,#f5f8ff,#fafcff);color:var(--ink);font-family:-apple-system,BlinkMacSystemFont,"SF Pro Display","Segoe UI",Arial,sans-serif}
.wrap{max-width:920px;padding-top:12px}.brand{font-size:17px}.brandwords{display:flex;flex-direction:column;line-height:1.15}.brandwords b{font-size:17px;font-weight:850}.brandwords small{margin-top:4px;font-size:11px;font-weight:500;color:#6980a1}.brandlogo{width:38px;height:38px;display:grid;place-items:center;border-radius:11px;background:#e9f2ff;color:#1766f1;font-size:24px}
.top{padding:5px 0 9px}.sync{color:#087c4c}.iconbtn{background:#fff;border-color:#e2eaf4;box-shadow:0 3px 12px #102b5510}.panel{border:1px solid #e4eaf4;background:#fff;border-radius:21px;box-shadow:0 5px 23px #122b540b;padding:19px;margin:14px 0}.hero{border-radius:18px;min-height:210px;padding:68px 24px 26px}.financehero{background-image:linear-gradient(90deg,#09264ddf,#09264d40),url('/expense-hero.jpg');background-position:center 49%}.hero h1{font-size:32px;text-shadow:none}.heroeyebrow{font-size:10px;letter-spacing:1.8px}.househero{background-image:linear-gradient(90deg,#0b315ba9,#173d6130),url('/home-hero.jpg')}.btn,.chip.chosen,.paybutton{background:#1766ef;border-color:#1766ef;color:white}.btn.secondary{background:#eef4ff;color:#1764dd}.chip{border-color:#e0e9f7;color:#38587f}.panel h2{font-size:19px;color:#102655}.eyebrow{color:#7290b6}.billpanel{border-color:#e2eaf5}.payperiod{background:#eff5ff;color:#1a4d96}.billrow{padding:14px 1px;border-bottom-color:#edf1f7}.paybutton{min-height:38px;min-width:60px;border-radius:10px}.paybutton.ispaid{background:#e6f8ee;color:#087446}.billpanel .paytotal.balance{background:#eaf9f1}.billpanel .paytotal.balance strong{color:#08754a}.tile.mint,.mint{background:#edf9f2}.tile.sky,.sky{background:#edf5ff}.big.green,.green{color:#087c50}.barfill{background:linear-gradient(90deg,#1766ef,#54b2ff)}.bottom{box-shadow:0 -4px 25px #1d3f7010;background:#fffffff7}.bottom button.current{color:#1766ef}.bottom button{font-size:21px;min-width:0;flex:1;padding:3px 0}.bottom small{font-size:10px}.brandmark{background:#ebf3ff;color:#1766ef}.chart .fill{background:linear-gradient(0deg,#1766ef,#72c0ff)}.insight{background:#edf5ff;color:#174c9b}.editbtn{background:#edf5ff;color:#1454b8}.chip.chosen{background:#1766ef}.accent{background:linear-gradient(120deg,#ebf8f4,#edf4ff)}.sectionintro{padding:13px 6px 0}.sectionintro h1{font-size:29px;letter-spacing:-.7px;margin:4px 0}.sectionintro .sub{margin-bottom:4px}#realDataPanel{border:1px solid #bdd5ff;background:#f1f6ff}#realDataPanel .btn{background:#1766ef;color:white}.reporttabs button.chosen{background:#1766ef;color:white}.auth{margin-top:50px}.brandmark{display:none}
@media(max-width:580px){.wrap{padding:11px 12px 109px}.brandwords b{font-size:15px}.brandwords small{font-size:10px}.top .sync{display:none}.hero{padding:68px 19px 21px;min-height:200px}.hero h1{font-size:28px}.panel{padding:17px}.bottom{padding-bottom:calc(9px + env(safe-area-inset-bottom))}.bottom button{font-size:19px}.bottom small{font-size:9px}.billrow strong{font-size:13px}.billactions>strong{font-size:12px}}


/* V4.2 friendlier icons and cleaner heroes */
.brandlogo{display:grid;place-items:center;width:38px;height:38px;border-radius:12px;background:#e9f2ff;font-size:20px}
.financehero{background:linear-gradient(135deg,#153c61 0%, #1d6d8d 55%, #4cb6b4 100%);min-height:230px;display:flex;flex-direction:column;justify-content:flex-end}
.househero{background-image:linear-gradient(90deg,#102544dd,#10254475),url('/home-hero.jpg');background-position:center;background-size:cover;min-height:230px;display:flex;flex-direction:column;justify-content:flex-end}
.herobadge{display:inline-flex;align-items:center;gap:8px;background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.25);padding:7px 12px;border-radius:999px;font-weight:700;font-size:12px;backdrop-filter:blur(10px);width:max-content;margin-bottom:10px}
.herochips{display:flex;gap:8px;flex-wrap:wrap;margin-top:16px}
.herochips span{background:rgba(255,255,255,.16);border:1px solid rgba(255,255,255,.22);padding:8px 10px;border-radius:12px;font-size:12px;font-weight:700;color:#f4f8ff}
.bottom button{font-size:18px}
.bottom small{margin-top:4px;font-size:11px}
.menu button{font-weight:700}
.iconbtn{font-size:20px}
@media(max-width:580px){
  .financehero,.househero{min-height:215px}
  .herochips span{font-size:11px;padding:7px 9px}
}
