@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');
:root{--green:#174f40;--ink:#263e35;--muted:#7b8781;--line:#e5e9e3;--bg:#f7f8f4;--lime:#dceab4}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font-family:'DM Sans',sans-serif;font-size:calc(16px - 1pt)}button,input,select{font:inherit}button,a,input,select{outline-offset:4px}button{cursor:pointer}button:disabled{opacity:.5;cursor:default}a{color:inherit;text-decoration:none}.sidebar{position:fixed;width:236px;height:100vh;background:#fff;border-right:1px solid var(--line);padding:33px 22px;display:flex;flex-direction:column;z-index:10}.brand{display:flex;align-items:center;font:800 calc(34px - 1pt) 'Manrope',sans-serif;letter-spacing:-2px;margin:0 12px 34px}.brand-dot{color:#87aa69}.brand-mark{width:33px;height:35px;background:var(--green);border-radius:10px;color:white;font-size:calc(30px - 1pt);text-align:center;margin-right:10px;line-height:34px;position:relative}.brand-mark span{position:absolute;font-size:calc(17px - 1pt);right:5px;top:-4px;color:#dceab4}.workspace{display:flex;gap:11px;padding:14px 9px;border-top:1px solid var(--line);border-bottom:1px solid var(--line);font-size:calc(14px - 1pt);font-weight:600;align-items:center}.workspace small{display:block;font-size:calc(12px - 1pt);font-weight:400;color:var(--muted);margin-top:4px}.avatar{border:1px solid #dce5d8;background:#eef3e9;border-radius:50%;width:34px;height:34px;display:inline-flex;align-items:center;justify-content:center;font-size:calc(13px - 1pt);font-weight:700}.nav-label{font-size:calc(11px - 1pt);letter-spacing:1.7px;color:#929b92;margin:29px 13px 13px}nav{display:grid;gap:7px}nav a{display:flex;align-items:center;gap:12px;padding:13px 15px;border-radius:7px;font-size:calc(15px - 1pt);color:#6a7770}nav a.active{background:#eaf1e7;color:var(--green);font-weight:700}svg.icon{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}.side-tip{margin-top:auto;background:#f4f6eb;border:1px solid #e9edda;border-radius:10px;padding:19px 16px}.sun{display:block;color:#7e9954;font-size:calc(30px - 1pt);margin-bottom:10px}.side-tip strong{font-size:calc(15px - 1pt)}.side-tip p{font-size:calc(13px - 1pt);line-height:1.7;color:#7b846e}.side-tip>span:last-child{font-size:calc(11px - 1pt);color:#7e896c}.flag{color:#c7a257;margin-left:6px}.help-link{background:none;border:0;color:#7b8781;margin-top:20px;text-align:left;padding-left:12px;font-size:calc(14px - 1pt)}.shell{margin-left:236px}header{height:79px;background:#fff;border-bottom:1px solid var(--line);padding:0 42px;display:flex;align-items:center;justify-content:space-between;font-size:calc(13px - 1pt)}header span span{color:#94a096;margin-left:9px}.header-right{display:flex;align-items:center;gap:24px}.local-indicator{font-size:calc(12px - 1pt);color:#6c8575}.small{width:30px;height:30px}main{max-width:1450px;margin:auto;padding:36px 42px 28px}.page-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:26px;gap:15px}.eyebrow{font-size:calc(11px - 1pt);letter-spacing:1.7px;color:#80916e;font-weight:700;margin-bottom:9px}h1{font-family:'Manrope',sans-serif;font-size:calc(32px - 1pt);letter-spacing:-1px;margin:0 0 9px;font-weight:800}h2{font-family:'Manrope',sans-serif;font-size:calc(18px - 1pt);letter-spacing:-.3px;margin:0}p{color:var(--muted);line-height:1.6;margin:0}.button{border:1px solid var(--line);border-radius:7px;padding:11px 16px;background:white;color:var(--ink);font-size:calc(14px - 1pt);font-weight:600;display:inline-flex;align-items:center;gap:8px}.primary{background:var(--green);color:white;border-color:var(--green)}.primary:hover{background:#24634e}.button svg{width:15px;height:15px}.actions{display:flex;gap:10px;align-items:center}.month{border:1px solid #e0e5db;background:#fff;border-radius:7px;padding:10px 12px;color:#647368;font-size:calc(13px - 1pt)}.notice{display:flex;align-items:center;gap:16px;background:#eef3e3;border:1px solid #e1e8ce;border-radius:9px;padding:17px 20px;margin-bottom:23px}.notice .symbol{font-size:calc(24px - 1pt);color:#83965b}.notice strong{font-size:calc(14px - 1pt)}.notice p{font-size:calc(13px - 1pt);color:#7d886c;margin-top:4px}.badge{border:1px solid #d9e2c3;background:#f9fbf2;border-radius:20px;padding:6px 10px;font-size:calc(11px - 1pt);color:#7a8956;margin-left:auto;white-space:nowrap}.cards{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:25px}.stat{background:white;border:1px solid var(--line);padding:20px;border-radius:10px;min-height:159px}.stat.dark{background:var(--green);color:white;border-color:var(--green);position:relative;overflow:hidden}.stat.dark:after{content:'';position:absolute;width:140px;height:140px;border:1px solid #ffffff12;border-radius:50%;right:-60px;bottom:-80px;box-shadow:0 0 0 22px #ffffff04,0 0 0 44px #ffffff03}.stat-top{display:flex;align-items:center;justify-content:space-between;font-size:calc(13px - 1pt);color:#78897c}.dark .stat-top{color:#d5e4d4}.stat-top .icon{width:17px;color:#849480}.stat-value{font-family:'Manrope',sans-serif;font-weight:800;font-size:calc(28px - 1pt);letter-spacing:-.8px;margin:20px 0 11px}.stat-value small{font-size:calc(14px - 1pt);font-weight:500;margin-left:4px;letter-spacing:0;color:#9aad9d}.stat-bottom{font-size:calc(11px - 1pt);color:#8a948d}.dark .stat-bottom{color:#c2d4bc}.positive{color:#668453}.tiny-dot{display:inline-block;width:5px;height:5px;background:#9dc473;border-radius:50%;margin-right:5px}.grid{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(280px,1fr);gap:22px}.panel{background:white;border:1px solid var(--line);border-radius:10px;overflow:hidden;margin-bottom:22px}.panel-head{display:flex;align-items:center;justify-content:space-between;padding:22px 23px 0;gap:10px}.panel-head p{font-size:calc(12px - 1pt);margin-top:6px}.text-button{border:0;background:none;padding:3px;color:#66805d;font-size:calc(12px - 1pt);white-space:nowrap}.chart-legend{display:flex;gap:13px;font-size:calc(11px - 1pt);color:#808d80;margin:20px 24px 0}.dot{width:7px;height:7px;border-radius:50%;background:var(--green);display:inline-block;margin-right:5px}.dot.expense{background:#d4dfbb}.chart{height:194px;padding:13px 22px 0;display:flex;gap:13px}.axis{display:flex;flex-direction:column;justify-content:space-between;height:143px;font-size:calc(10px - 1pt);color:#a0a89e;min-width:37px}.plot{flex:1;position:relative;height:168px}.gridlines{position:absolute;inset:0 0 25px;display:flex;flex-direction:column;justify-content:space-between}.gridlines i{border-top:1px dashed #e8ece4;width:100%}.bars{position:absolute;inset:0;display:flex;justify-content:space-around;gap:10px;align-items:flex-end}.bar-group{height:100%;display:flex;align-items:flex-end;gap:5px;position:relative;padding-bottom:25px;width:45px;justify-content:center}.bar{width:14px;background:#1f5a45;border-radius:3px 3px 0 0;min-height:1px;z-index:1}.bar.out{background:#d4dfbb}.bar-group label{position:absolute;bottom:4px;font-size:calc(11px - 1pt);color:#8c9789}.chart-note{border-top:1px solid #eef0e9;margin:0 24px;padding:12px 0;font-size:calc(11px - 1pt);color:#8b9485;display:flex;gap:7px}.plan-summary{padding:22px}.plan-total{font:800 calc(27px - 1pt) 'Manrope';margin:13px 0 7px}.plan-total small{font-size:calc(13px - 1pt);color:#829178;font-weight:500}.progress{height:7px;background:#eef0e7;border-radius:10px;overflow:hidden}.progress span{display:block;height:100%;background:#90a96d;border-radius:10px}.progress-labels{display:flex;justify-content:space-between;font-size:calc(11px - 1pt);color:#929b8d;margin-top:8px}.allocation{padding:12px 0 0;display:grid;gap:15px;margin-top:7px}.allocation-row{display:flex;justify-content:space-between;font-size:calc(13px - 1pt)}.allocation-row span{display:flex;align-items:center;gap:8px}.square{display:inline-block;width:7px;height:7px;border-radius:2px;background:#3a6851}.square.light{background:#adbf83}.square.gold{background:#ddc586}.callout{margin-top:18px;border-radius:6px;background:#f6f8ef;padding:11px;font-size:calc(12px - 1pt);color:#83916d;line-height:1.6}.table-wrap{padding:12px 22px 7px;overflow:auto}table{width:100%;border-collapse:collapse;text-align:left;font-size:calc(13px - 1pt)}th{font-size:calc(11px - 1pt);color:#959f92;font-weight:500;padding:13px 0;border-bottom:1px solid #edf0e9}td{padding:13px 0;border-bottom:1px solid #edf0e9;color:#6f7e70}tr:last-child td{border:0}.tx-name{display:flex;align-items:center;gap:10px;color:#364f3d;font-weight:500;min-width:155px}.tx-icon{display:flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:8px;background:#f0f4e7;color:#7d9962}.tx-icon .icon{width:15px}.tx-name small{font-weight:400;color:#939c8e;display:block;font-size:calc(11px - 1pt);margin-top:3px}.amount{text-align:right;font-weight:600;white-space:nowrap;color:#526b50}.income{color:#54854f}.tag{font-size:calc(11px - 1pt);color:#8e988b}.goal{padding:17px 23px;border-bottom:1px solid #eef0e9}.goal-title{display:flex;justify-content:space-between;align-items:center;font-size:calc(14px - 1pt);font-weight:600;margin-bottom:11px}.goal-title span{font-size:calc(17px - 1pt);background:#f6f3e8;padding:7px;border-radius:8px;margin-right:10px}.goal-title div{display:flex;align-items:center}.goal-amount{display:flex;justify-content:space-between;font-size:calc(11px - 1pt);margin-bottom:9px;color:#8c9587}.goal-amount b{color:#607b51;font-weight:600}.goals-bottom{padding:14px 22px;font-size:calc(12px - 1pt);color:#8c987d;background:#fbfcf8}.demo-banner{display:flex;align-items:center;justify-content:space-between;gap:15px;margin:20px 0 0;font-size:calc(12px - 1pt);color:#849279}.demo-banner button{font-size:calc(12px - 1pt)}.empty{padding:42px 22px;text-align:center;color:#87947f;font-size:calc(14px - 1pt)}.full-panel{padding:24px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:17px}label.field{display:grid;gap:7px;font-size:calc(13px - 1pt);font-weight:600;margin-bottom:16px}input,select{padding:11px 12px;border:1px solid #dce3d6;border-radius:6px;background:white;color:#3b5140;width:100%;font-size:calc(15px - 1pt)}input:focus,select:focus{outline:2px solid #afc791}dialog{border:1px solid var(--line);border-radius:14px;padding:27px;width:450px;max-width:94vw;color:var(--ink);box-shadow:0 24px 100px #102f3422}dialog::backdrop{background:#143f3244;backdrop-filter:blur(3px)}.dialog-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:25px}.dialog-head button{border:0;background:none;font-size:calc(28px - 1pt);color:#8b9786}#form-error{color:#af5b47;font-size:calc(14px - 1pt);margin-bottom:12px}#toast{position:fixed;bottom:24px;left:50%;background:#164e40;color:white;border-radius:8px;padding:13px 22px;display:none;z-index:30;font-size:calc(14px - 1pt)}.danger{color:#a96550}.mini{padding:5px 8px;font-size:calc(11px - 1pt)}footer{display:flex;justify-content:space-between;padding:0 42px 25px;font-size:calc(11px - 1pt);color:#a0a898}.info-text{font-size:calc(14px - 1pt);line-height:1.8;color:#7b8b77}.result-box{background:#f0f5e8;border-radius:9px;padding:22px;margin:20px 0}.result-box h3{margin-top:0}.result-row{display:flex;justify-content:space-between;margin:14px 0}.negative{color:#b46c50}.settings-actions{display:flex;gap:10px;flex-wrap:wrap}.mobile-brand{display:none}@media(min-width:1450px){main{padding-top:45px}.chart{height:240px}.axis{height:190px}.plot{height:215px}.stat{min-height:175px}}@media(max-width:1100px){.sidebar{width:200px;padding:28px 16px}.shell{margin-left:200px}main{padding:28px 25px}.grid{grid-template-columns:1.4fr 1fr;gap:16px}.stat{padding:16px}.stat-value{font-size:calc(24px - 1pt)}header{padding:0 25px}.header-right .local-indicator{display:none}.page-heading{align-items:flex-start}.actions{flex-wrap:wrap;justify-content:flex-end}.notice .badge{display:none}}@media(max-width:820px){.sidebar{width:75px;padding:22px 9px}.brand{font-size:0;margin:0 9px 30px}.brand-mark{margin:0;min-width:33px}.brand-dot,.workspace,.nav-label,.side-tip,.help-link,nav a span{display:none}nav a{padding:14px 17px}.shell{margin-left:75px}.cards{grid-template-columns:1fr 1fr}.grid{grid-template-columns:1fr}.stat{min-height:145px}.chart{height:220px}.axis{height:170px}.plot{height:195px}.notice{padding:14px}.page-heading{flex-wrap:wrap}.actions{justify-content:flex-start}footer{padding:0 25px 20px}.form-grid{grid-template-columns:1fr}}@media(max-width:480px){main{padding:24px 15px}header{padding:0 15px;height:58px}h1{font-size:calc(28px - 1pt)}.cards{gap:10px}.stat{padding:13px}.stat-value{font-size:calc(23px - 1pt)}.stat-top{font-size:calc(12px - 1pt)}.stat-bottom{font-size:calc(10px - 1pt)}.page-heading p{font-size:calc(14px - 1pt)}.notice p{font-size:calc(12px - 1pt)}footer span{display:none}.panel-head{padding:19px 17px 0}.goal{padding:17px}.table-wrap{padding:10px 16px}.tag{display:none}.demo-banner{flex-wrap:wrap}.button{padding:10px 12px}.side-tip{display:none}}
/* Keep narrow screens within their viewport. */
.grid>*{min-width:0}.cards{grid-template-columns:repeat(4,minmax(0,1fr))}.header-right{flex-shrink:0}header #breadcrumb{min-width:0}.stat-value{overflow-wrap:anywhere}.page-heading>*{min-width:0}@media(max-width:820px){.grid{grid-template-columns:minmax(0,1fr)}.cards{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:480px){header{gap:8px}header #breadcrumb{font-size:calc(11px - 1pt)}.header-right{gap:0}.notice>div{min-width:0}.chart{gap:6px;padding-left:12px;padding-right:12px}.bars{gap:4px}.bar-group{width:30px}.bar{width:10px}.page-heading .actions{width:100%;flex-wrap:wrap}}

/* Appearance: readable type, distinct chart series and persistent themes. */
:root{--surface:#fff;--income:#238dad;--expense:#e99b50;--purple:#8977cb}
.page-heading{flex-wrap:wrap}.page-heading>div:first-child{flex:1 1 350px}.actions{flex-wrap:wrap}
.theme-toggle{display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:8px 11px;min-height:36px;border:1px solid var(--line);border-radius:8px;background:var(--surface);color:var(--ink);font-size:calc(12px - 1pt);white-space:nowrap}.theme-symbol{font-size:calc(17px - 1pt);line-height:1}
.bar,.dot{background:var(--income)}.bar.out,.dot.expense{background:var(--expense)}
.bar{background:linear-gradient(180deg,#45adc4,#238dad)}.bar.out{background:linear-gradient(180deg,#f3bb72,#e99b50)}
.cards .stat:nth-child(2){background:#eff8fb;border-top:3px solid var(--income)}.cards .stat:nth-child(3){background:#fff6eb;border-top:3px solid var(--expense)}.cards .stat:nth-child(4){background:#f5f1fc;border-top:3px solid var(--purple)}
.cards .stat:nth-child(2) .stat-top .icon{color:var(--income)}.cards .stat:nth-child(3) .stat-top .icon{color:#cd873b}.cards .stat:nth-child(4) .stat-top .icon{color:var(--purple)}
.goal:nth-child(even) .progress span{background:var(--purple)}.goal:nth-child(even) .goal-title span{background:#f0ebfa;color:#806bb6}.square.gold{background:var(--expense)}.square.light{background:var(--purple)}
.chart{margin-top:8px;height:230px}.axis{height:179px}.plot{height:204px}.chart-note{align-items:center}.chart-note .icon{flex-shrink:0}.panel-head{flex-wrap:wrap}.allocation-row{gap:12px}.goal-title{gap:8px}.stat{min-height:174px}.stat-value small{white-space:nowrap}.local-indicator{white-space:nowrap}
html[data-theme="dark"]{color-scheme:dark;--green:#79cbb1;--ink:#e5eee9;--muted:#a7b7b0;--line:#354741;--bg:#121d1a;--surface:#1c2b25;--income:#58bbd4;--expense:#f2b068;--purple:#b3a2ec}
html[data-theme="dark"] :is(.sidebar,header,.panel,.stat,dialog,input,select,.button,.month){background:var(--surface);color:var(--ink);border-color:var(--line)}
html[data-theme="dark"] :is(.primary,.brand-mark){background:#347b64;border-color:#347b64;color:#fff}
html[data-theme="dark"] .primary:hover{background:#409175}
html[data-theme="dark"] .stat.dark{background:#245c4b;border-color:#367661;color:#fff}
html[data-theme="dark"] nav a{color:#b7c7bf}html[data-theme="dark"] nav a.active{background:#2b473b;color:#a8e4c6}
html[data-theme="dark"] :is(.side-tip,.notice,.result-box,.callout,.goals-bottom){background:#25372b;border-color:#3b5138;color:#c0d2b4}
html[data-theme="dark"] :is(.notice strong,.side-tip strong){color:#d7e7cc}
html[data-theme="dark"] :is(.side-tip p,.side-tip>span:last-child,.notice p,.callout,.goals-bottom,.info-text){color:#afc1a8}
html[data-theme="dark"] .badge{background:#31432b;color:#c9d8b4;border-color:#4b603e}
html[data-theme="dark"] .avatar{background:#2b4135;color:#d1e4d6;border-color:#47604f}
html[data-theme="dark"] :is(.workspace small,.nav-label,.help-link,.local-indicator,.eyebrow,.stat-top,.stat-bottom,.stat-value small,.progress-labels,.chart-legend,.axis,.bar-group label,.chart-note,th,td,.tx-name small,.tag,.goal-amount,footer,.demo-banner,.empty){color:#a9bbb0}
html[data-theme="dark"] :is(.text-button,.income,.goal-amount b){color:#9dd4b3}
html[data-theme="dark"] :is(.tx-name,.amount){color:#d1e2d8}
html[data-theme="dark"] :is(.tx-icon,.goal-title span){background:#334538;color:#bfd3a4}
html[data-theme="dark"] .goal:nth-child(even) .goal-title span{background:#3b3350;color:#c4b4f4}
html[data-theme="dark"] :is(th,td,.goal,.chart-note){border-color:var(--line)}
html[data-theme="dark"] .gridlines i{border-color:#3b4b42}html[data-theme="dark"] .progress{background:#374b40}
html[data-theme="dark"] .cards .stat:nth-child(2){background:#1c3540;border-top-color:var(--income)}html[data-theme="dark"] .cards .stat:nth-child(3){background:#3b3024;border-top-color:var(--expense)}html[data-theme="dark"] .cards .stat:nth-child(4){background:#302b40;border-top-color:var(--purple)}
html[data-theme="dark"] .bar{background:linear-gradient(180deg,#78d0df,#329ab6)}html[data-theme="dark"] .bar.out{background:linear-gradient(180deg,#f7cb8e,#df9450)}
html[data-theme="dark"] :is(.negative,.danger,#form-error){color:#f0ad91}
@media(max-width:1100px){.header-right{gap:12px}}
@media(max-width:820px){.theme-label{display:none}.theme-toggle{padding:8px;min-width:36px}.chart{height:240px}.axis{height:189px}.plot{height:214px}}
@media(max-width:480px){.cards{gap:10px}.stat-value{font-size:calc(23px - 1pt);letter-spacing:-.8px}.stat-top{font-size:calc(12px - 1pt);gap:5px}.stat-bottom{font-size:calc(11px - 1pt);line-height:1.5}.stat-value small{font-size:calc(12px - 1pt)}.stat{padding:12px;min-height:160px}.header-right{gap:7px}.small{display:none}.page-heading>div:first-child{flex-basis:100%}.chart-legend{margin-left:14px;gap:11px}.goal-title{font-size:calc(13px - 1pt)}.goal-amount{font-size:calc(11px - 1pt)}.panel-head h2{font-size:calc(17px - 1pt)}.panel-head .text-button{white-space:normal}header #breadcrumb{font-size:calc(10px - 1pt)}.bar-group label{font-size:calc(11px - 1pt)}.axis{font-size:calc(10px - 1pt)}.chart-note{margin:0 14px}.notice p,.page-heading p{font-size:calc(13px - 1pt)}.notice .symbol{display:none}.theme-toggle{font-size:calc(12px - 1pt)}}
.month{width:auto;max-width:100%;min-width:165px}.page-heading .actions{flex:0 1 auto}@media(max-width:480px){.stat-value{font-size:calc(21px - 1pt)}.page-heading .actions{width:100%}}
/* Commitments and plans for irregular receipts. */
.cash-strip{display:grid;grid-template-columns:1.25fr 1fr 1fr;gap:20px;padding:24px}.cash-strip>div{min-width:0}.cash-strip h2{margin-bottom:8px}.cash-strip strong{display:block;font:800 calc(23px - 1pt) 'Manrope';margin:10px 0}.cash-strip strong small{font:500 calc(12px - 1pt) 'DM Sans'}.cash-label{font-size:calc(12px - 1pt);color:var(--muted)}.cash-strip .text-button{margin-top:10px}.cash-footnote{grid-column:1/-1;border-top:1px solid var(--line);padding-top:14px;font-size:calc(12px - 1pt);line-height:1.6}.bill-row{display:flex;align-items:center;gap:20px;padding:22px;border-bottom:1px solid var(--line);flex-wrap:wrap}.bill-row:last-child{border-bottom:0}.bill-description{display:flex;align-items:center;gap:12px;flex:1 1 210px;min-width:0}.bill-description strong{font-size:calc(14px - 1pt);overflow-wrap:anywhere}.bill-description p,.entry-head p{font-size:calc(12px - 1pt);margin-top:5px}.bill-value{min-width:155px}.bill-value strong{font:700 calc(18px - 1pt) 'Manrope'}.bill-value small{display:block;font-size:calc(11px - 1pt);color:var(--muted);margin-top:5px}.bill-status{display:inline-block;padding:4px 8px;border-radius:15px;background:#f1edfa;color:#8671b6;font-size:calc(10px - 1pt);margin-top:7px}.bill-status.late{background:#fff0e7;color:#b5743f}.bill-status.paid{background:#ebf5ea;color:#598258}.entry-row{padding:23px;border-bottom:1px solid var(--line)}.entry-row:last-child{border-bottom:0}.entry-head{display:flex;gap:15px;align-items:center;flex-wrap:wrap}.entry-head>div{flex:1 1 200px;min-width:0}.entry-head strong{overflow-wrap:anywhere}.entry-head>b{font:700 calc(18px - 1pt) 'Manrope'}.entry-row details{margin-top:18px}.entry-row summary{cursor:pointer;font-size:calc(12px - 1pt);color:var(--green);padding:8px 0}.entry-distribution{border-radius:8px;background:var(--bg);padding:12px 17px;margin:16px 0}.entry-distribution .result-row{gap:15px;align-items:center;border-bottom:1px solid var(--line);padding-bottom:12px;font-size:calc(13px - 1pt)}.entry-distribution .result-row:last-child{border:0;padding-bottom:0}.entry-distribution .result-row b{white-space:nowrap}.entry-distribution small{display:block;color:var(--muted);font-size:calc(11px - 1pt);margin-top:5px}.entry-distribution .result-row span{min-width:0;overflow-wrap:anywhere}html[data-theme="dark"] .bill-status{background:#3b3350;color:#cbb7f5}html[data-theme="dark"] .bill-status.late{background:#473426;color:#f1ba80}html[data-theme="dark"] .bill-status.paid{background:#294733;color:#b0dfb0}.sidebar nav{gap:3px}.sidebar nav a{padding-top:10px;padding-bottom:10px}.sidebar .side-tip{margin-top:auto;padding:13px}.sidebar .side-tip .sun{margin-bottom:6px;font-size:calc(21px - 1pt)}.sidebar .side-tip p{margin:7px 0}.sidebar .help-link{margin-top:12px}.sidebar{overflow-y:auto}.sidebar .side-tip{margin-top:18px}@media(max-width:1100px){.cash-strip{grid-template-columns:1fr 1fr}.cash-strip>div:first-child{grid-column:1/-1}}@media(max-width:600px){.cash-strip{grid-template-columns:minmax(0,1fr);gap:18px;padding:20px}.bill-row{padding:18px;gap:14px}.bill-row .actions{width:100%;justify-content:flex-start}.entry-row{padding:18px}.entry-head>b{font-size:calc(17px - 1pt)}.entry-distribution{padding:10px 12px}.entry-distribution .result-row{font-size:calc(12px - 1pt)}.sidebar nav a{padding:13px 17px}}
/* Financial health: explainable indicators, with incomplete data kept visible. */
.health-preview{display:flex;align-items:center;gap:17px;padding:19px 23px;flex-wrap:wrap}.health-preview>div{flex:1 1 240px}.health-preview p{font-size:calc(13px - 1pt);margin-top:5px}.health-symbol{display:flex;align-items:center;justify-content:center;width:50px;height:50px;border-radius:14px;flex-shrink:0;background:#edeaf7;color:#8270b6}.health-symbol .icon{width:26px;height:26px}.health-symbol.urgent{background:#fcebe3;color:#b96442}.health-symbol.protected{background:#e2f1e8;color:#428264}.health-hero{display:flex;align-items:flex-start;gap:22px;padding:28px;border-left:4px solid #9a88cc}.health-hero.urgent{border-left-color:#db936c}.health-hero.protected{border-left-color:#68a78e}.health-hero.attention{border-left-color:#d8ad58}.health-hero h2{font-size:calc(26px - 1pt);margin:8px 0 12px}.health-hero p{font-size:calc(14px - 1pt);max-width:820px}.health-hero>div>span{display:block;color:var(--muted);font-size:calc(12px - 1pt);margin-top:16px}.health-indicators{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.health-indicator{padding:21px;display:flex;flex-direction:column;gap:16px}.health-indicator-top{display:flex;align-items:flex-start;flex-wrap:wrap;gap:12px}.health-indicator h2{font-size:calc(15px - 1pt);line-height:1.5;flex:1 1 120px}.health-chip{display:inline-block;background:#f0edf7;color:#8371ad;padding:5px 8px;border-radius:20px;font-size:calc(10px - 1pt);white-space:nowrap}.health-chip.urgent{background:#ffede4;color:#ae6244}.health-chip.protected{background:#eaf4eb;color:#538261}.health-chip.attention{background:#fbf1dd;color:#a78337}.health-chip.neutral{background:#e8f4f8;color:#41819a}.health-number{font:800 calc(26px - 1pt) 'Manrope';letter-spacing:-.6px;overflow-wrap:anywhere}.health-number small{font:500 calc(13px - 1pt) 'DM Sans'}.health-indicator .text-button{margin-top:auto;text-align:left;white-space:normal}.health-action{display:flex;gap:15px;padding:20px 0;border-bottom:1px solid var(--line)}.health-action:last-child{border:0}.health-action>span{background:#edf2e7;color:#79925a;display:flex;align-items:center;justify-content:center;min-width:29px;height:29px;border-radius:8px;font-weight:700;font-size:calc(12px - 1pt)}.health-action h3{font:700 calc(14px - 1pt) 'Manrope';margin:0 0 8px}.health-action p{font-size:calc(13px - 1pt)}.health-action .text-button{margin-top:12px}.health-income-range{display:grid;gap:20px;margin:24px 0}.health-income-range span{display:block;color:var(--muted);font-size:calc(12px - 1pt);margin-bottom:6px}.health-income-range b{font:700 calc(21px - 1pt) 'Manrope';color:var(--income)}.health-month-check{display:flex;align-items:center;gap:8px;white-space:nowrap;cursor:pointer}.health-month-check input{width:17px;height:17px;accent-color:#5c9980;margin:0}.health-history-note{font-size:calc(12px - 1pt);padding:13px 23px 22px}.health-method-title{cursor:pointer;font-size:calc(14px - 1pt);font-weight:600}.health-source{color:var(--income);text-decoration:underline}.health-hero.attention .health-symbol{background:#fbf0da;color:#bd9341}html[data-theme="dark"] .health-symbol,html[data-theme="dark"] .health-chip{background:#3b3350;color:#c7b7f1}html[data-theme="dark"] .health-symbol.urgent,html[data-theme="dark"] .health-chip.urgent{background:#493328;color:#f0b38d}html[data-theme="dark"] .health-symbol.protected,html[data-theme="dark"] .health-chip.protected{background:#2a4836;color:#ade0be}html[data-theme="dark"] .health-chip.attention,html[data-theme="dark"] .health-hero.attention .health-symbol{background:#433c28;color:#e6ca81}html[data-theme="dark"] .health-action>span{background:#304932;color:#bbd6a7}.sidebar nav a{padding-top:9px;padding-bottom:9px}@media(max-width:1100px){.health-indicators{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){.health-indicators{grid-template-columns:minmax(0,1fr)}.health-hero{padding:20px;gap:13px}.health-hero .health-symbol{width:35px;height:35px;border-radius:10px}.health-hero .health-symbol .icon{width:20px;height:20px}.health-hero h2{font-size:calc(22px - 1pt)}.health-hero p{font-size:calc(13px - 1pt)}.health-preview{padding:18px}.health-indicator{padding:20px}.health-number{font-size:calc(25px - 1pt)}.health-month-check{font-size:calc(12px - 1pt)}}
.health-review-check{display:flex;align-items:flex-start;gap:10px;font-size:calc(13px - 1pt);line-height:1.6;margin-top:20px}.health-review-check input{width:18px;height:18px;flex-shrink:0;accent-color:#5c9980;margin-top:3px}
/* True dark mode: neutral backgrounds, colour only for accents and data. */
html[data-theme="dark"]{--green:#b6c6ff;--ink:#f0f0f3;--muted:#aaaab5;--line:#34343d;--bg:#101114;--surface:#1b1c21;--income:#7ec7ec;--expense:#f0b16f;--purple:#b9a5ef}
html[data-theme="dark"] :is(.sidebar,header){background:#16171b}
html[data-theme="dark"] :is(.panel,.stat,dialog,input,select,.button,.month){background:#1b1c21;border-color:#34343d;color:#f0f0f3}
html[data-theme="dark"] :is(.primary,.brand-mark){background:#4d5d95;border-color:#4d5d95;color:#fff}html[data-theme="dark"] .primary:hover{background:#6071ae}
html[data-theme="dark"] .stat.dark{background:#272932;border-color:#444652}
html[data-theme="dark"] nav a{color:#bdbdc7}html[data-theme="dark"] nav a.active{background:#30323c;color:#dee3ff}
html[data-theme="dark"] :is(.side-tip,.notice,.result-box,.callout,.goals-bottom,.entry-distribution){background:#24252c;border-color:#3a3b45;color:#cacbd5}
html[data-theme="dark"] :is(.notice strong,.side-tip strong){color:#e5e5ed}
html[data-theme="dark"] :is(.side-tip p,.side-tip>span:last-child,.notice p,.callout,.goals-bottom,.info-text){color:#b3b3be}
html[data-theme="dark"] .badge{background:#30313a;color:#c9cad5;border-color:#444550}
html[data-theme="dark"] .avatar{background:#30313a;color:#dedee7;border-color:#464751}
html[data-theme="dark"] :is(.workspace small,.nav-label,.help-link,.local-indicator,.eyebrow,.stat-top,.stat-bottom,.stat-value small,.progress-labels,.chart-legend,.axis,.bar-group label,.chart-note,th,td,.tx-name small,.tag,.goal-amount,footer,.demo-banner,.empty){color:#b0b0bc}
html[data-theme="dark"] :is(.text-button,.income,.goal-amount b){color:#b4c5ff}
html[data-theme="dark"] :is(.tx-name,.amount){color:#ddddE6}
html[data-theme="dark"] :is(.tx-icon,.goal-title span,.health-action>span){background:#34353f;color:#d2d5e8}
html[data-theme="dark"] .gridlines i{border-color:#3b3c46}html[data-theme="dark"] .progress{background:#393a45}html[data-theme="dark"] .progress span{background:#8293c9}
html[data-theme="dark"] .cards .stat:nth-child(2){background:#1f252d;border-top-color:var(--income)}html[data-theme="dark"] .cards .stat:nth-child(3){background:#29251f;border-top-color:var(--expense)}html[data-theme="dark"] .cards .stat:nth-child(4){background:#26232f;border-top-color:var(--purple)}
html[data-theme="dark"] .health-symbol.protected,html[data-theme="dark"] .health-chip.protected,html[data-theme="dark"] .bill-status.paid{background:#303b38;color:#b5d6c8}
html[data-theme="dark"] :is(.health-month-check input,.health-review-check input){accent-color:#8da0dd}
html[data-theme="dark"] .dark .stat-top,html[data-theme="dark"] .dark .stat-bottom{color:#c7c8d3}
.wallet-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.wallet-grid .health-number{display:block;margin:20px 0 12px}.wallet-grid .result-row{font-size:calc(13px - 1pt);gap:12px}#undo-notice{position:fixed;bottom:22px;right:22px;background:var(--surface,#fff);border:1px solid var(--line);box-shadow:0 5px 25px #0003;padding:14px 18px;border-radius:9px;z-index:40;font-size:calc(13px - 1pt)}#undo-notice[hidden]{display:none}#undo-notice button{border:0;background:none;color:var(--green);font-weight:700;margin-left:14px}dialog{max-height:90vh;overflow-y:auto}.sidebar .side-tip{display:none}.sidebar nav a{padding-top:9px;padding-bottom:9px}.sidebar .help-link{margin-top:20px}@media(max-width:820px){.sidebar{overflow-y:auto}.sidebar nav{gap:2px}.sidebar nav a{padding:12px 17px}}@media(max-width:600px){.wallet-grid{grid-template-columns:minmax(0,1fr)}#undo-notice{left:85px;right:12px;bottom:12px}#toast{left:85px;right:12px;transform:none;bottom:80px}.wallet-grid .result-row{flex-wrap:wrap}}

.external-resource{display:flex;align-items:center;gap:8px;margin-top:14px;padding:11px 10px;border-top:1px solid var(--line);font-size:calc(12px - 1pt);color:var(--ink)}.external-resource:hover,.footer-resource:hover{color:var(--green)}.resource-icon{display:inline-flex;align-items:center;justify-content:center;width:25px;height:25px;border-radius:6px;background:#eef0f5;color:#67749c;font-size:calc(10px - 1pt);font-weight:700;flex-shrink:0}.resource-arrow{margin-left:auto}.footer-resource{font-size:calc(11px - 1pt);text-decoration:underline;text-underline-offset:3px}html[data-theme="dark"] .resource-icon{background:#30323d;color:#c4cdeb}@media(max-width:820px){.external-resource{justify-content:center;padding:12px 0}.external-resource .resource-name,.external-resource .resource-arrow{display:none}}
/* Dark theme contrast: bright text and controls on distinct neutral surfaces. */
html[data-theme="dark"]{--bg:#111318;--surface:#23272f;--ink:#f6f8fc;--muted:#d0d6e0;--line:#596577;--green:#c2d2ff;--income:#8bd8ff;--expense:#ffc17a;--purple:#cbb6ff}
html[data-theme="dark"] :is(.sidebar,header){background:#191d24;border-color:#465162}
html[data-theme="dark"] :is(.panel,.stat,dialog){background:#23272f;border-color:#596577;color:#f6f8fc;box-shadow:0 3px 12px #00000018}
html[data-theme="dark"] :is(input,select,.month){background:#151920;color:#f6f8fc;border-color:#8896ad}
html[data-theme="dark"] input::placeholder{color:#b6c0d0;opacity:1}
html[data-theme="dark"] :is(input,select):focus{outline:2px solid #c2d2ff;outline-offset:2px;border-color:#c2d2ff}
html[data-theme="dark"] :is(a,button):focus-visible{outline:2px solid #c2d2ff;outline-offset:3px}
html[data-theme="dark"] :is(.button,.theme-toggle){background:#303743;color:#f6f8fc;border-color:#8b98ae}
html[data-theme="dark"] .button:hover,html[data-theme="dark"] .theme-toggle:hover{background:#3c4655}
html[data-theme="dark"] :is(.primary,.brand-mark){background:#bbccff;color:#101a31;border-color:#bbccff}
html[data-theme="dark"] .primary:hover{background:#d6e1ff;color:#101a31;border-color:#d6e1ff}
html[data-theme="dark"] .stat.dark{background:#303744;border-color:#8b9bb7}
html[data-theme="dark"] .cards .stat:nth-child(2){background:#24313d;border-color:#617c91;border-top-color:#8bd8ff}
html[data-theme="dark"] .cards .stat:nth-child(3){background:#332d25;border-color:#927e62;border-top-color:#ffc17a}
html[data-theme="dark"] .cards .stat:nth-child(4){background:#302c3f;border-color:#847398;border-top-color:#cbb6ff}
html[data-theme="dark"] .cards .stat .stat-value{color:#f6f8fc}
html[data-theme="dark"] nav a{color:#d5dbe6}
html[data-theme="dark"] nav a:hover{background:#2b3340;color:#fff}
html[data-theme="dark"] nav a.active{background:#344568;color:#fff;box-shadow:inset 3px 0 #c2d2ff}
html[data-theme="dark"] :is(.notice,.result-box,.callout,.entry-distribution,.goals-bottom){background:#2d3440;border-color:#66758c;color:#e6ebf3}
html[data-theme="dark"] :is(.notice strong,.side-tip strong){color:#f6f8fc}
html[data-theme="dark"] :is(.side-tip p,.side-tip>span:last-child,.notice p,.callout,.goals-bottom,.info-text){color:#d6dce6}
html[data-theme="dark"] :is(.workspace small,.nav-label,.help-link,.local-indicator,.eyebrow,.stat-top,.stat-bottom,.stat-value small,.progress-labels,.chart-legend,.axis,.bar-group label,.chart-note,th,td,.tx-name small,.tag,.goal-amount,footer,.demo-banner,.empty){color:#d0d6e0}
html[data-theme="dark"] .dark .stat-top,html[data-theme="dark"] .dark .stat-bottom{color:#e0e6f0}
html[data-theme="dark"] :is(.text-button,.income,.goal-amount b,.footer-resource){color:#c2d2ff}
html[data-theme="dark"] :is(.tx-name,.amount){color:#edf1f8}
html[data-theme="dark"] .income{color:#c2d2ff}
html[data-theme="dark"] :is(.tx-icon,.goal-title span,.health-action>span){background:#414c5e;color:#eef3ff}
html[data-theme="dark"] .badge{background:#3d4656;color:#eef2fa;border-color:#8795ac}
html[data-theme="dark"] .avatar{background:#3b4556;color:#f6f8fc;border-color:#8493ad}
html[data-theme="dark"] .resource-icon{background:#414c5e;color:#eef3ff}
html[data-theme="dark"] :is(.stat-top .icon,.dialog-head button){color:#d6e0f1}
html[data-theme="dark"] .gridlines i{border-color:#617086}
html[data-theme="dark"] .bar{background:linear-gradient(180deg,#9ce4ff,#4aaacd)}
html[data-theme="dark"] .bar.out{background:linear-gradient(180deg,#ffe0a6,#f0a557)}
html[data-theme="dark"] .progress{background:#121720;border:1px solid #697791;height:9px}
html[data-theme="dark"] .progress span{background:#bfd0ff}
html[data-theme="dark"] :is(input[type="range"],input[type="checkbox"]){accent-color:#bfd0ff}
html[data-theme="dark"] :is(.negative,.danger,#form-error){color:#ffc0a7}
html[data-theme="dark"] #toast{background:#e0e8ff;color:#111b33;box-shadow:0 4px 20px #0006}
/* Mobile layout with full-width content, touch controls and bottom navigation. */
.mobile-bottom-nav,.mobile-menu-button{display:none}.mobile-menu{padding:0;width:480px;max-width:100vw;max-height:90dvh}.mobile-menu-head{display:flex;align-items:center;justify-content:space-between;padding:22px 22px 14px;border-bottom:1px solid var(--line);position:sticky;top:0;background:var(--surface,#fff);z-index:1}.mobile-menu-head h2{font-size:19px}.mobile-menu-head button{width:44px;height:44px;border:1px solid var(--line);border-radius:10px;background:transparent;color:var(--ink);font-size:26px}.mobile-menu #mobile-menu-links{display:grid;gap:3px;padding:12px 16px}.mobile-menu #mobile-menu-links a{display:flex;align-items:center;gap:13px;font-size:15px;min-height:50px;padding:12px 14px;border-radius:9px;color:var(--ink)}.mobile-menu #mobile-menu-links a[aria-current="page"]{background:#eaf0f8;color:#334d8b;font-weight:700}.menu-chevron{margin-left:auto;color:var(--muted)}.mobile-resource{display:block;padding:18px 30px;border-top:1px solid var(--line);font-size:14px;color:var(--green)}.mobile-storage-note{font-size:12px;padding:0 30px 24px}.mobile-logo{display:flex;align-items:center;justify-content:center;background:var(--green);color:#fff;border-radius:8px;width:30px;height:32px;font:800 28px 'Manrope',sans-serif;margin-right:8px}.mobile-brand-dot{color:#839f75}.mobile-menu::backdrop{background:#0009;backdrop-filter:blur(4px)}body:has(#mobile-menu[open]){overflow:hidden}html[data-theme="dark"] .mobile-menu #mobile-menu-links a[aria-current="page"]{background:#344568;color:#fff}html[data-theme="dark"] .mobile-menu-head{background:#23272f}html[data-theme="dark"] .mobile-logo{background:#bbccff;color:#101a31}
@media(max-width:767px){
.sidebar{display:none}.shell{margin-left:0}.shell>header{position:sticky;top:0;z-index:20;height:64px;padding:0 18px;border-bottom:1px solid var(--line);gap:12px}.shell>header #breadcrumb{display:none}.mobile-brand{display:flex;align-items:center;font:800 24px 'Manrope',sans-serif;letter-spacing:-1px}.header-right{gap:9px}.header-right .small,.header-right .local-indicator{display:none}.theme-toggle,.mobile-menu-button{display:inline-flex;align-items:center;justify-content:center;min-width:44px;height:44px;padding:0;border:1px solid var(--line);border-radius:10px;background:var(--surface,#fff);color:var(--ink)}.theme-label{display:none}.theme-symbol{font-size:21px}.mobile-menu-button .icon{width:21px;height:21px}
main{padding:24px 18px 20px;width:100%;max-width:100%}h1{font-size:26px;line-height:1.25;letter-spacing:-.6px}.page-heading{gap:18px;margin-bottom:22px}.page-heading>div:first-child{flex-basis:100%}.page-heading p{font-size:14px;line-height:1.55}.page-heading .actions{width:100%;justify-content:flex-start;gap:10px}.page-heading .actions .button{flex:1 1 auto;justify-content:center}.page-heading .month{flex:0 1 156px;min-width:0;max-width:100%;height:46px}.button{font-size:14px;min-height:46px;padding:12px 15px;justify-content:center}.mini{font-size:13px;min-height:44px;padding:10px 12px}.text-button{font-size:13px;min-height:44px;display:inline-flex;align-items:center;white-space:normal;padding:6px 3px}.button svg{width:18px;height:18px}input,select{font-size:16px;min-height:46px;padding:12px}label.field{font-size:13px;line-height:1.45}.form-grid{grid-template-columns:minmax(0,1fr)}
.notice{padding:16px;margin-bottom:20px}.notice strong{font-size:14px;line-height:1.5}.notice p{font-size:13px;line-height:1.6}.cards{gap:12px;margin-bottom:22px}.stat{padding:16px;min-height:156px}.stat-top{font-size:12px;gap:8px;line-height:1.5}.stat-value{font-size:23px;letter-spacing:-.7px;line-height:1.2;margin:18px 0 10px;overflow-wrap:normal}.stat-value small{font-size:11px;margin-left:4px}.stat-bottom{font-size:11px;line-height:1.5}.grid{grid-template-columns:minmax(0,1fr);gap:0}.panel{margin-bottom:20px}.panel-head{padding:19px 18px 0;gap:8px}.panel-head h2{font-size:17px;line-height:1.45}.panel-head p{font-size:12px;line-height:1.5}.full-panel{padding:20px}.info-text{font-size:14px;line-height:1.65}.cash-strip{padding:20px;grid-template-columns:minmax(0,1fr);gap:18px}.cash-strip strong{font-size:26px}.cash-strip>div+div{border-top:1px solid var(--line);padding-top:16px}.cash-label,.cash-footnote{font-size:13px}.cash-strip .info-text{font-size:13px}.health-preview{padding:18px;gap:13px}.health-preview>div{flex:1 1 190px}.health-preview h2{font-size:17px}.health-preview p{font-size:13px}.health-preview .button{width:100%}.health-indicators{grid-template-columns:minmax(0,1fr)}.health-hero{padding:20px}.health-hero h2{font-size:23px}.health-hero p{font-size:14px}.health-number{font-size:27px}.health-indicator h2{font-size:16px}.health-action p{font-size:14px}.health-income-range b{font-size:23px}
.chart{height:245px;padding:16px 14px 0;gap:9px}.axis{height:194px;min-width:35px;font-size:11px}.plot{height:219px}.chart-legend{font-size:12px;margin:16px 18px 0;gap:18px}.bar-group{width:auto;flex:1;gap:5px}.bar{width:14px;max-width:35%}.bar-group label{font-size:11px}.chart-note{font-size:12px;line-height:1.5;margin:0 18px}.chart-note .icon{width:16px;height:16px}
.ledger-table{padding:8px 18px}.ledger-table table,.ledger-table tbody{display:block;width:100%}.ledger-table thead,#health-history thead{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.ledger-table tr{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 12px;padding:17px 0;border-bottom:1px solid var(--line)}.ledger-table tr:last-child{border:0}.ledger-table td{border:0;padding:0;font-size:12px;min-width:0}.ledger-table td:nth-child(1){grid-column:1;grid-row:1}.ledger-table td:nth-child(2){grid-column:1;grid-row:2}.ledger-table td:nth-child(3){grid-column:2;grid-row:2;text-align:right}.ledger-table td:nth-child(4){grid-column:2;grid-row:1;font-size:14px;align-self:center}.ledger-table td:nth-child(5){grid-column:1/-1;display:flex;align-items:center;justify-content:flex-end;gap:14px;padding-top:5px}.ledger-table .tx-name{min-width:0;font-size:14px;align-items:flex-start;gap:10px}.ledger-table .tx-name>div{overflow-wrap:anywhere}.ledger-table .tx-name small{font-size:11px;line-height:1.5}.ledger-table .tx-icon{width:30px;height:30px;flex-shrink:0}.ledger-table .tag{display:inline;font-size:12px}.ledger-table .amount{white-space:nowrap}.ledger-table .danger{min-width:44px;justify-content:center;font-size:22px}
#health-history .table-wrap{padding:10px 18px}#health-history table,#health-history tbody{display:block;width:100%}#health-history tr{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding:18px 0;border-bottom:1px solid var(--line)}#health-history td{padding:0;border:0;font-size:14px}#health-history td:first-child{grid-column:1/-1;font-weight:700;font-size:16px}#health-history td[data-label]::before{content:attr(data-label);display:block;font-size:11px;color:var(--muted);margin-bottom:6px}#health-history td:last-child{grid-column:1/-1;padding-top:5px}.health-month-check{font-size:13px;min-height:44px}.health-month-check input{width:22px;height:22px;min-height:22px;padding:0}.health-review-check input{min-height:18px;padding:0}.health-history-note{font-size:13px;padding:12px 18px 20px}
.bill-row{padding:18px;gap:13px}.bill-description{flex-basis:100%}.bill-description strong{font-size:15px}.bill-description p{font-size:13px}.bill-value{min-width:0;flex:1}.bill-value strong{font-size:21px}.bill-value small{font-size:12px}.bill-row .actions{width:100%;justify-content:flex-start;gap:14px}.bill-row .actions .button{flex:1}.entry-head{gap:12px}.entry-head>div{flex-basis:100%}.entry-head strong{font-size:15px}.entry-head p{font-size:13px}.entry-head>b{font-size:21px}.entry-head .button{margin-left:auto}.entry-row{padding:18px}.entry-row summary{font-size:13px;min-height:44px}.entry-distribution .result-row{font-size:14px}.goal{padding:18px}.goal-title{font-size:15px}.goal-amount{font-size:13px}.wallet-grid{grid-template-columns:minmax(0,1fr);gap:0}.wallet-grid h2{font-size:18px}.wallet-grid .result-row{font-size:14px;line-height:1.5}.settings-actions{display:grid;grid-template-columns:minmax(0,1fr);gap:12px}.settings-actions .button{width:100%}
.shell>footer{padding:5px 18px calc(94px + env(safe-area-inset-bottom));font-size:12px}.shell>footer>span{display:none}.footer-resource{font-size:12px}.demo-banner{font-size:12px;line-height:1.6;margin-bottom:14px}.demo-banner .button{width:100%}
.mobile-bottom-nav{position:fixed;bottom:0;left:0;right:0;z-index:25;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));padding:7px 10px calc(7px + env(safe-area-inset-bottom));background:#fff;border-top:1px solid #d9dfeb;box-shadow:0 -4px 20px #00000009}.mobile-bottom-nav>a,.mobile-bottom-nav>button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;min-height:54px;border:0;border-radius:11px;background:transparent;color:#657386;font-size:11px;font-weight:600;text-decoration:none}.mobile-bottom-nav .icon{width:22px;height:22px}.mobile-bottom-nav [aria-current="page"],.mobile-bottom-nav .selected{background:#edf1fa;color:#344e8e}.mobile-menu{position:fixed;inset:auto 0 0;margin:0;width:100%;max-width:100%;max-height:88dvh;border-radius:20px 20px 0 0;border-bottom:0;padding-bottom:env(safe-area-inset-bottom)}.mobile-menu #mobile-menu-links{grid-template-columns:minmax(0,1fr)}#mobile-menu .icon{width:21px;height:21px;flex-shrink:0}#mobile-menu a span{display:inline}#mobile-menu .menu-chevron{display:block}.mobile-resource{min-height:50px}.mobile-menu-head{padding:16px 18px 10px}
#dialog{width:calc(100% - 24px);max-width:480px;max-height:calc(100dvh - 24px);padding:22px 20px;border-radius:16px}.dialog-head h2{font-size:19px;line-height:1.45}.dialog-head button{width:44px;height:44px;flex-shrink:0;border:1px solid var(--line);border-radius:10px}.dialog-head{gap:12px}.dialog-head+#fields{min-width:0}#form>.button{width:100%;margin-top:4px}.dialog-head button:focus-visible{outline:2px solid var(--green)}#toast{left:14px;right:14px;bottom:calc(90px + env(safe-area-inset-bottom));font-size:13px;padding:13px 16px;line-height:1.5}#undo-notice{left:14px;right:14px;bottom:calc(90px + env(safe-area-inset-bottom));font-size:13px}
html[data-theme="dark"] .mobile-bottom-nav{background:#191d24;border-color:#596577;box-shadow:0 -4px 20px #0004}html[data-theme="dark"] .mobile-bottom-nav>a,html[data-theme="dark"] .mobile-bottom-nav>button{color:#d0d6e0}html[data-theme="dark"] .mobile-bottom-nav [aria-current="page"],html[data-theme="dark"] .mobile-bottom-nav .selected{background:#344568;color:#fff}html[data-theme="dark"] .mobile-menu-button{background:#303743;border-color:#8b98ae;color:#f6f8fc}
}
@media(max-width:359px){main{padding-left:14px;padding-right:14px}.stat{padding:13px}.stat-value{font-size:21px}.ledger-table tr{grid-template-columns:minmax(0,1fr)}.ledger-table td:nth-child(4){grid-column:1;grid-row:2;text-align:left}.ledger-table td:nth-child(2){grid-row:3}.ledger-table td:nth-child(3){grid-column:1;grid-row:4;text-align:left}.ledger-table td:nth-child(5){justify-content:flex-start}.stat-value small{display:block;margin-top:5px}}

@media(max-width:767px){.mobile-bottom-nav>a>span{display:block}}
@media(max-width:767px){.full-panel .ledger-table{padding-left:0;padding-right:0}input,select{font-weight:400}#health-history{scroll-margin-top:80px}}

@media(max-width:767px){.text-button{min-width:44px}.goal-title .text-button{justify-content:center;font-size:22px}}

.mobile-resource a{text-decoration:underline;text-underline-offset:3px;font-weight:600}

.df-signature{display:inline-flex;vertical-align:middle;background:transparent;border-radius:5px;overflow:hidden;margin-left:5px;max-width:100%}.df-signature img{display:block;width:180px;height:auto}.df-icon{object-fit:contain;padding:0!important;border-radius:7px}

@media(max-width:767px){.df-signature{background:transparent;border-radius:7px}.df-signature img{width:28px;height:28px;object-fit:contain;border-radius:7px}}

.df-mobile-name{display:none}@media(max-width:767px){.df-signature{align-items:center;gap:6px}.df-mobile-name{display:inline;font-size:12px;font-weight:600;white-space:nowrap}}

.df-signature .df-dark-icon{display:none}[data-theme=dark] .df-signature{align-items:center;gap:6px;color:#e4e7ef}[data-theme=dark] .df-signature picture{display:none}[data-theme=dark] .df-signature .df-dark-icon{display:block;width:28px;height:28px;border-radius:7px}[data-theme=dark] .df-signature .df-mobile-name{display:inline;font-size:12px;font-weight:600}
