:root{--paper:#f5f6f1;--ink:#26392f;--muted:#798477;--green:#214d3b;--lime:#ddf49c;--line:#e4e8df;--white:#fff;--radius:22px;--ribbon:29px;--font:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;color-scheme:light}
*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font:14px/1.5 var(--font);-webkit-font-smoothing:antialiased}button,input,select,textarea{font:inherit;color:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}button{cursor:pointer}a{color:inherit;text-decoration:none}button{border:0}h1,h2,h3,p{margin:0}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #659b73;outline-offset:3px}button:disabled{cursor:wait;opacity:.5}[hidden]{display:none!important}svg{display:block;width:21px;height:21px;flex:none}input,select,textarea{min-width:0}input:not([type=checkbox]),select,textarea{width:100%;border:1px solid var(--line);background:#fafbf8;border-radius:12px;padding:12px 13px;min-height:46px;font-size:16px}textarea{resize:vertical}select{appearance:none;background-image:url('chevron.svg');background-repeat:no-repeat;background-position:right 13px center;background-size:12px;padding-right:33px}label{font-size:13px;font-weight:600;display:grid;gap:7px}input[type=checkbox]{width:18px;height:18px;accent-color:var(--green)}.skip-link{position:fixed;top:-100px;left:12px;z-index:50;background:var(--white);padding:12px}.skip-link:focus{top:4px}.demo-ribbon{height:var(--ribbon);position:fixed;inset:0 0 auto;z-index:20;background:#e5eadf;color:#626e5a;font-size:10px;letter-spacing:.2px;display:flex;align-items:center;justify-content:space-between;padding:0 24px}.demo-ribbon a{text-decoration:underline;text-underline-offset:2px}.ribbon-note{font-size:10px}.app-shell{max-width:1600px;margin:auto;padding-top:var(--ribbon);display:grid;grid-template-columns:230px 1fr;min-height:100dvh}.sidebar{position:sticky;top:var(--ribbon);height:calc(100dvh - var(--ribbon));border-right:1px solid var(--line);padding:34px 24px;background:#f9faf6;display:flex;flex-direction:column}.brand{display:flex;align-items:center;gap:10px;font-size:20px;letter-spacing:-.7px}.brand b,.mobile-brand b{font-weight:750}.brand small{display:block;font-size:10px;letter-spacing:.15px;color:var(--muted);margin-top:1px}.desktop-nav{display:grid;gap:8px;margin-top:54px}.desktop-nav a{display:flex;align-items:center;gap:13px;min-height:49px;border-radius:13px;padding:0 15px;color:#7a8479;font-weight:550}.desktop-nav a:hover{background:#edf0e8;color:var(--green)}.desktop-nav a.active{background:#e6ecd9;color:var(--green)}.desktop-nav .active svg{stroke-width:2}.primary,.secondary,.danger{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:46px;padding:12px 21px;border-radius:12px;font-size:13px;font-weight:650;white-space:nowrap;transition:background .2s,transform .2s}.primary{background:var(--green);color:#fff}.primary:hover{background:#173d2d}.primary:active,.secondary:active{transform:scale(.98)}.secondary{background:#fff;border:1px solid var(--line)}.secondary:hover{background:#f0f3eb}.danger{background:#a14d40;color:white}.scan-side{margin-top:34px;font-size:12px;padding-left:12px;padding-right:12px}.sidebar-bottom{margin-top:auto;padding:40px 6px 6px;font-size:10px;color:#7e8779;line-height:1.8}.sidebar-bottom small{display:block;margin-left:14px;font-size:10px}.status-dot{width:5px;height:5px;background:#88a763;border-radius:50%;display:inline-block;margin-right:8px}.workspace{min-width:0}.app-header{height:82px;padding:0 46px;display:flex;align-items:center;justify-content:space-between;gap:16px;border-bottom:1px solid var(--line)}.desktop-location{font-size:10px;letter-spacing:1.4px;color:#7b8577;display:flex;align-items:center;gap:16px}.desktop-location>span:last-child{letter-spacing:0;font-size:12px;color:var(--ink)}.profile-button{display:flex;align-items:center;gap:12px;background:transparent;padding:0;min-height:44px;font-size:12px}.avatar{background:#e9e7d9;width:35px;height:35px;border-radius:50%;display:grid;place-items:center;font-size:11px;font-weight:700;letter-spacing:.3px}.mobile-brand,.mobile-nav{display:none}main{padding:34px 46px 24px;max-width:1320px;margin:auto;outline:none!important}.app-footer{text-align:center;font-size:10px;color:#8d9589;padding:12px 20px 28px}.page-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:15px;margin-bottom:24px}.eyebrow{font-size:9px;letter-spacing:1.7px;color:var(--muted);font-weight:650;margin-bottom:8px}.page-heading h1{font-size:32px;line-height:1.15;letter-spacing:-1.3px;font-weight:650}.page-heading p:not(.eyebrow){color:var(--muted);font-size:12px;margin-top:7px}.month-control{display:flex;align-items:center;gap:8px}.month-control label{font-size:0}.month-control input{background:#fff;width:175px;min-height:40px;font-size:12px;border-radius:11px;padding:9px 10px}.overview-grid{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:22px}.balance-card{background:var(--green);color:#fff;padding:26px 29px;border-radius:var(--radius);position:relative;overflow:hidden;min-height:233px;display:flex;flex-direction:column;justify-content:space-between}.balance-card:before,.balance-card:after{content:'';position:absolute;width:260px;height:260px;border:1px solid #ddf49c16;border-radius:50%;right:-120px;top:-100px;pointer-events:none}.balance-card:after{right:-80px;top:-140px}.balance-top{display:flex;align-items:center;justify-content:space-between;position:relative;gap:10px}.balance-top>span:first-child{font-size:12px;color:#d0dfcd}.currency-pill{font-size:9px;background:#ffffff12;color:#d6e8cd;padding:4px 10px;border:1px solid #ffffff0c;border-radius:20px;letter-spacing:1px}.balance-amount{font-size:45px;line-height:1.3;letter-spacing:-1.9px;font-weight:550;position:relative;margin:9px 0 20px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.balance-amount small{font-size:21px;letter-spacing:-.4px;color:#e0eacb;margin-right:5px}.balance-bottom{display:grid;grid-template-columns:1fr 1fr;gap:20px;padding-top:18px;border-top:1px solid #ffffff1b}.balance-stat{display:grid;gap:5px}.balance-stat span{font-size:10px;color:#bfd0bd;display:flex;align-items:center;gap:6px}.balance-stat i{width:6px;height:6px;background:var(--lime);border-radius:50%}.balance-stat:last-child i{background:#bdc7b0}.balance-stat strong{font-size:19px;font-weight:550;letter-spacing:-.4px}.panel{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:24px}.panel-title{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:17px}.panel-title h2{font-size:16px;letter-spacing:-.3px;font-weight:650}.panel-title a,.text-button{color:#697c60;font-size:11px;font-weight:600;background:transparent;padding:8px 1px;min-height:36px;text-decoration:underline;text-underline-offset:3px}.budget-card{display:flex;flex-direction:column;justify-content:space-between}.budget-head{display:flex;justify-content:space-between;align-items:center;gap:15px}.budget-mark{width:38px;height:38px;border-radius:50%;background:#f0f3df;color:#788950;display:grid;place-items:center}.budget-caption{font-size:11px;color:var(--muted)}.budget-numbers{margin-top:19px;display:flex;align-items:baseline;flex-wrap:wrap;gap:5px}.budget-numbers strong{font-size:27px;letter-spacing:-1px;font-weight:600}.budget-numbers>span{font-size:12px;color:var(--muted)}.budget-track,.progress-track{height:7px;border-radius:20px;background:#eef1e7;overflow:hidden;margin:14px 0 10px}.budget-track>span,.progress-track>span{display:block;height:100%;background:#c2da7e;border-radius:inherit;transition:width .5s}.budget-track.over>span{background:#e4a38a}.budget-left{display:flex;justify-content:space-between;font-size:10px;color:var(--muted);gap:10px}.quick-actions{display:flex;gap:10px;margin:17px 0 24px}.quick-actions button{flex:1}.quick-actions .primary{background:#e3edc8;color:var(--green)}.quick-actions .primary:hover{background:#d5e5af}.recent-panel{grid-column:1;padding-bottom:8px}.overview-spending{grid-column:2;grid-row:2;display:flex;flex-direction:column}.records-list{display:grid}.record-row{display:grid;grid-template-columns:39px minmax(0,1fr) auto;align-items:center;gap:12px;background:transparent;text-align:left;padding:15px 0;border-top:1px solid #eef0e9;width:100%;border-radius:0}.record-row:first-child{border-top:0}.record-row:hover .record-name{color:#628149}.category-icon{width:39px;height:39px;border-radius:12px;background:var(--category-bg,#eef0e7);color:#5b6359;display:grid;place-items:center;flex:none}.category-icon svg{width:18px;height:18px}.record-info{min-width:0}.record-name{font-weight:600;font-size:12px;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.record-meta{display:flex;align-items:center;gap:7px;color:#8a9285;font-size:10px;margin-top:3px}.record-meta svg{width:10px;height:10px}.record-value{text-align:right;display:grid;gap:3px;font-variant-numeric:tabular-nums}.record-value strong{font-size:12px;font-weight:650;white-space:nowrap}.record-value small{font-size:9px;color:#8a9285}.record-value.income strong{color:#5d8a51}.spending-graphic{display:flex;justify-content:center;position:relative;margin:9px auto 20px}.donut{width:151px;height:151px;border-radius:50%;position:relative;display:grid;place-items:center;background:#e9eee0}.donut:before{content:'';position:absolute;inset:17px;border-radius:50%;background:#fff}.donut-label{position:relative;text-align:center;max-width:105px}.donut-label small{display:block;font-size:9px;color:#8c9386}.donut-label strong{font-size:19px;font-weight:600;letter-spacing:-.6px}.category-legend{display:grid;gap:12px}.legend-row{display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:11px}.legend-label{display:flex;align-items:center;gap:8px}.legend-dot{width:7px;height:7px;border-radius:50%;flex:none}.legend-row strong{font-size:11px;font-weight:600;font-variant-numeric:tabular-nums}.legend-row small{color:var(--muted);margin-left:8px}.overview-spending .text-button{align-self:flex-start;margin-top:13px}.empty-state{text-align:center;padding:35px 12px;color:var(--muted);font-size:13px}.empty-state strong{display:block;color:var(--ink);font-weight:600;margin-bottom:6px}.filter-panel{padding:18px 20px;margin-bottom:18px}.record-filters{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.segmented{display:flex;border:1px solid var(--line);padding:4px;background:#f6f8f1;border-radius:12px;gap:3px}.segmented button{padding:8px 16px;min-height:36px;border-radius:8px;background:transparent;font-size:12px;color:#7c8873}.segmented button[aria-pressed=true]{background:#fff;color:var(--green);box-shadow:0 2px 6px #354d3510;font-weight:650}.search-box{flex:1;min-width:150px;position:relative}.search-box input{min-height:43px;border-radius:11px;padding:10px 12px;font-size:13px;background:#fff}.filter-select{min-width:110px;flex:0 0 130px}.filter-select select{min-height:43px;font-size:12px}.record-count{font-size:11px;color:var(--muted);display:flex;justify-content:space-between;gap:12px;align-items:center;margin:18px 3px 12px}.record-count strong{color:var(--ink);font-weight:600}.records-panel{padding-top:3px;padding-bottom:3px}.records-panel .record-row{padding:17px 0}.date-heading{font-size:10px;letter-spacing:.8px;font-weight:650;color:#8a9382;padding:17px 0 7px;border-bottom:1px solid #edf0e7}.date-heading+.record-row{border-top:0}.pagination{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:18px;font-size:11px;color:var(--muted)}.pagination button{min-height:40px;background:#fff;border:1px solid var(--line);padding:8px 17px;border-radius:10px;font-size:12px}.pagination button:disabled{cursor:default;opacity:.4}.desktop-add{display:inline-flex}.heading-actions{display:flex;gap:10px;align-items:center}.report-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:15px;margin-bottom:22px}.report-stat{background:#fff;border:1px solid var(--line);border-radius:18px;padding:20px}.report-stat>span{color:var(--muted);font-size:11px}.report-stat strong{display:block;font-size:25px;font-weight:600;letter-spacing:-.9px;margin-top:8px;overflow-wrap:anywhere}.report-stat.income{background:#edf3e2}.report-grid{display:grid;grid-template-columns:1.15fr 1fr;gap:22px}.trend-chart{display:flex;gap:15px;align-items:flex-end;height:175px;margin:28px 0 4px}.trend-column{display:flex;flex:1;align-items:center;flex-direction:column;justify-content:flex-end;gap:9px;height:100%;min-width:0}.trend-bar{width:100%;max-width:55px;min-height:3px;border-radius:8px 8px 4px 4px;background:#d7e5bd;transition:height .45s;position:relative}.trend-bar:hover{background:#b7cd8f}.trend-value{font-size:9px;color:#6e7c65;white-space:nowrap;letter-spacing:-.3px}.trend-label{font-size:10px;color:var(--muted)}.chart-subtitle{font-size:11px;color:var(--muted);margin-top:-8px}.report-categories{margin-top:23px}.category-detail{padding:13px 0;border-top:1px solid #eef0e7}.category-detail .legend-row{margin-bottom:9px}.tiny-track{height:4px;background:#f1f3ec;border-radius:20px;overflow:hidden}.tiny-track span{display:block;height:100%;border-radius:20px}.report-note{font-size:11px;color:var(--muted);margin-top:18px}.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px}.settings-grid h2{font-size:16px;font-weight:650;margin-bottom:19px}.settings-form{display:grid;gap:18px}.settings-form .primary{justify-self:start}.setting-line{display:flex;align-items:center;justify-content:space-between;margin-top:22px;padding:0;gap:15px;font-size:12px}.setting-line strong{font-weight:600}.setting-line span{color:var(--muted);font-size:11px}.settings-note{font-size:12px;line-height:1.8;color:#7c8774;margin:0 0 18px}.privacy-lines{display:grid;gap:14px;margin-bottom:21px}.privacy-lines>div{display:flex;gap:10px;align-items:flex-start;font-size:12px;color:#75806e}.privacy-lines svg{width:17px;height:17px;margin-top:1px;color:#64805b}.privacy-lines strong{color:var(--ink);display:block;font-size:12px;font-weight:600;margin-bottom:2px}.reset-button{background:#f4f5ef;min-height:43px;padding:11px 16px;border-radius:10px;font-size:12px;color:#7a664f}.settings-scan{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:20px}.settings-scan h2{margin:0 0 5px}.settings-scan p{font-size:12px;color:var(--muted)}
.sheet{border:0;padding:0;background:#fff;color:var(--ink);width:min(540px,calc(100% - 36px));max-height:calc(100dvh - 56px);border-radius:25px;box-shadow:0 30px 100px #172c302b;overflow:hidden}.sheet::backdrop{background:#20352c61;backdrop-filter:blur(5px)}.sheet-inner{padding:28px;max-height:calc(100dvh - 56px);overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#c9d1c1 transparent}.sheet-header{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:22px}.sheet-header h2{font-size:24px;letter-spacing:-.8px;font-weight:600;outline:none}.sheet-header .text-button{text-decoration:none;font-size:12px;padding:9px 0 9px 9px;flex:none}.sheet-header .eyebrow{font-size:8px;margin-bottom:4px}.type-switch{display:flex;background:#f2f5ec;padding:5px;border-radius:12px;margin-bottom:25px;gap:5px}.type-switch button{width:50%;background:transparent;border-radius:8px;min-height:40px;font-size:13px;color:#859079}.type-switch [aria-pressed=true]{background:#fff;box-shadow:0 2px 6px #173c2410;color:var(--green);font-weight:650}.amount-label{font-size:11px;color:var(--muted);margin-bottom:3px}.amount-input{display:flex;align-items:center;gap:12px;border-bottom:1px solid var(--line);padding-bottom:12px;margin-bottom:22px}.amount-input>span{font-size:20px;font-weight:500;color:#a1ad94}.amount-input input{border:0;background:transparent;padding:0;font-size:46px;letter-spacing:-1.6px;font-weight:500;border-radius:0;min-height:60px;box-shadow:none}.amount-input input::placeholder{color:#d5ddcb}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:17px 14px}.wide{grid-column:1/-1}.optional{font-weight:400;color:#8c9584;display:inline;font-size:11px}label:has(.optional){display:block}label textarea{display:block;margin-top:7px}.form-actions{display:flex;align-items:center;justify-content:flex-end;gap:12px;margin-top:25px}.form-actions .primary{flex:1}.danger-text{background:transparent;color:#a45c47;text-decoration:underline;text-underline-offset:3px;font-size:12px;min-height:44px;padding:5px 10px 5px 0}.form-note{font-size:12px;line-height:1.7;color:#6d815e;padding:12px 14px;background:#f1f6e5;border-radius:11px;margin-bottom:18px}.form-error{background:#fbf0e9;border:1px solid #f0d6c5;border-radius:10px;color:#975b3c;font-size:12px;padding:12px 14px;margin-top:14px;line-height:1.7}.notice{background:#f0f4e8;border:1px solid var(--line);border-radius:12px;font-size:12px;padding:13px 15px;line-height:1.7;margin:16px 0}.notice.warning{background:#fbf6e6;border-color:#eee3bd;color:#8c7740}.checkbox-label{display:flex;align-items:center;gap:9px;margin-top:10px;font-size:12px;font-weight:500}.attached-receipt{display:flex;justify-content:space-between;align-items:center;gap:15px;background:#f5f7ef;padding:7px 13px;border-radius:11px;margin-top:18px}.attached-receipt>button:first-child{display:flex;gap:9px;align-items:center;background:transparent;min-height:38px;font-size:12px}.attached-receipt svg{width:17px;height:17px}.scan-sheet{width:min(460px,calc(100% - 36px))}.scan-illustration{height:182px;position:relative;display:grid;place-items:center;background:radial-gradient(ellipse,#e9f2d4 10%,#f8faf4 65%);border-radius:20px;margin:4px 0 21px}.paper-receipt{background:#fff;width:112px;height:147px;padding:22px 14px;transform:rotate(-7deg);box-shadow:3px 8px 15px #3a4d2914;border-radius:4px;position:relative}.paper-receipt:after{content:'';position:absolute;bottom:-3px;left:0;right:0;height:7px;background:linear-gradient(135deg,#fff 50%,transparent 50%) 0 0/8px 8px repeat-x}.paper-receipt>i{display:block;width:43px;height:7px;border-radius:3px;background:#bdcba9;margin:0 auto 18px}.paper-receipt>b{display:block;height:3px;background:#e9eddf;margin-bottom:9px;border-radius:2px}.paper-receipt>b:nth-child(3){width:80%}.paper-receipt hr{border:0;border-top:1px dashed #cbd6bf;margin:12px 0 8px}.paper-receipt strong{font-size:11px;display:block;text-align:right;font-weight:650}.scan-corners{position:absolute;width:164px;height:145px;background:linear-gradient(#66885a,#66885a) left top/18px 2px,linear-gradient(#66885a,#66885a) left top/2px 18px,linear-gradient(#66885a,#66885a) right top/18px 2px,linear-gradient(#66885a,#66885a) right top/2px 18px,linear-gradient(#66885a,#66885a) left bottom/18px 2px,linear-gradient(#66885a,#66885a) left bottom/2px 18px,linear-gradient(#66885a,#66885a) right bottom/18px 2px,linear-gradient(#66885a,#66885a) right bottom/2px 18px;background-repeat:no-repeat;opacity:.5}.scan-line{position:absolute;top:40px;left:calc(50% - 70px);width:140px;height:1px;background:#8dad57;box-shadow:0 0 10px #c6e39b;animation:scan 3.5s ease-in-out infinite}.scan-intro{text-align:center;font-size:18px;font-weight:600;letter-spacing:-.5px}.scan-description{text-align:center;font-size:12px;color:var(--muted);line-height:1.8;margin:9px 0 22px}.scan-buttons{display:grid;grid-template-columns:1fr 1fr;gap:10px}.scan-buttons button{padding-left:10px;padding-right:10px;font-size:12px}.scan-buttons svg{width:18px;height:18px}.example-button{display:block;background:transparent;margin:12px auto 0;padding:10px;min-height:42px;text-decoration:underline;text-underline-offset:4px;font-size:11px;color:#81916c}.scan-footnote{font-size:10px;color:#949c8c;text-align:center;margin-top:17px}.scan-progress{text-align:center;margin:14px 0 0}.scan-progress .progress-track{margin:16px 0 10px;height:5px}.scan-progress p{font-size:12px;color:var(--green)}.scan-progress small{display:block;font-size:10px;color:var(--muted);margin:4px 0}.scan-sheet.scanning .scan-buttons,.scan-sheet.scanning .example-button,.scan-sheet.scanning .scan-intro,.scan-sheet.scanning .scan-description{display:none}.receipt-sheet{width:min(560px,calc(100% - 36px))}.receipt-sheet img{display:block;width:100%;height:auto;border:1px solid var(--line);border-radius:10px}.confirm-sheet{width:min(420px,calc(100% - 36px))}.confirm-sheet p{font-size:13px;color:var(--muted)}.confirm-sheet .sheet-header h2{font-size:22px}.toast{position:fixed;left:50%;bottom:35px;transform:translateX(-50%);background:#243f31;color:#fff;font-size:12px;padding:13px 21px;border-radius:12px;box-shadow:0 5px 30px #1d352621;z-index:40;max-width:calc(100% - 32px);text-align:center;min-width:190px}.toast.error{background:#8b5142}.sheet[open]{animation:dialog-in .2s ease-out}body.dialog-open{overflow:hidden}.view-enter{animation:view-in .3s ease both}@keyframes view-in{from{opacity:.5;transform:translateY(5px)}to{opacity:1;transform:none}}@keyframes dialog-in{from{opacity:.5;translate:0 10px}to{opacity:1;translate:0 0}}@keyframes scan{0%,100%{transform:translateY(0);opacity:.2}50%{transform:translateY(100px);opacity:1}}
@media(min-width:1400px){main{padding-top:43px}.overview-grid{gap:25px}.balance-card{min-height:243px}.record-row{padding:17px 0}}
@media(max-width:1100px){.app-shell{grid-template-columns:190px 1fr}.sidebar{padding:27px 17px}.brand{font-size:18px;gap:8px}.brand img{width:33px;height:33px}.desktop-nav{margin-top:43px}.app-header{padding:0 30px}main{padding:28px 30px}.overview-grid{gap:17px}.panel{padding:20px}.balance-card{padding:23px;min-height:226px}.balance-amount{font-size:38px}.budget-numbers strong{font-size:24px}.report-summary{gap:10px}.report-stat{padding:17px}.report-stat strong{font-size:21px}.report-grid{gap:17px}.settings-grid{gap:17px}}
@media(max-width:800px){.app-shell{grid-template-columns:170px 1fr}.sidebar{padding:28px 12px}.brand{font-size:16px}.brand img{width:30px;height:30px}.brand small{font-size:8px}.desktop-nav a{padding:0 11px;font-size:12px;gap:9px}.scan-side{font-size:10px;padding:10px 8px;gap:6px}.scan-side svg{width:17px;height:17px}.app-header{padding:0 23px;height:72px}main{padding:25px 23px}.page-heading h1{font-size:29px}.overview-grid{grid-template-columns:1fr}.recent-panel,.overview-spending{grid-column:auto;grid-row:auto}.overview-spending{display:none}.budget-card{min-height:0;display:block;padding:19px 22px}.budget-mark{display:none}.budget-numbers{margin-top:9px}.budget-numbers strong{font-size:22px}.budget-track{margin-top:10px}.balance-card{min-height:212px}.desktop-add{display:none}.report-grid,.settings-grid{grid-template-columns:1fr}.settings-scan{grid-column:auto}.report-stat{padding:16px 13px}.report-stat strong{font-size:20px}.record-filters{gap:10px}.segmented{width:100%}.segmented button{flex:1}.filter-select{flex-basis:120px}.heading-actions{gap:6px}.heading-actions .secondary{font-size:11px;padding:9px 12px;min-height:40px}.month-control input{width:153px}.desktop-location{font-size:8px;gap:8px;letter-spacing:1px}.profile-name{display:none}}
@media(max-width:600px){:root{--ribbon:26px;--radius:19px}.demo-ribbon{font-size:9px;justify-content:center;padding:0 10px}.ribbon-note{display:none}.app-shell{display:block;padding-bottom:calc(76px + env(safe-area-inset-bottom,0px))}.sidebar{display:none}.app-header{position:sticky;top:var(--ribbon);z-index:15;height:62px;padding:0 21px;background:#f5f6f1f5;backdrop-filter:blur(12px)}.desktop-location{display:none}.mobile-brand{display:flex;align-items:center;gap:9px;font-size:18px;letter-spacing:-.6px}.avatar{width:31px;height:31px;font-size:10px}.profile-button{padding:0 1px 0 8px}.mobile-nav{display:grid;grid-template-columns:repeat(4,1fr);align-items:center;position:fixed;inset:auto 0 0;z-index:20;height:calc(69px + env(safe-area-inset-bottom,0px));padding:6px max(8px,env(safe-area-inset-right,0px)) calc(5px + env(safe-area-inset-bottom,0px)) max(8px,env(safe-area-inset-left,0px));background:#fffffff5;backdrop-filter:blur(15px);border-top:1px solid #e2e7da}.mobile-nav a,.mobile-nav button{display:flex;flex-direction:column;gap:4px;justify-content:center;align-items:center;font-size:9px;color:#92998b;background:transparent;min-height:51px;border-radius:12px;line-height:1.2}.mobile-nav svg{width:21px;height:21px}.mobile-nav a.active{color:var(--green);font-weight:650}.nav-add>span:first-child{width:35px;height:31px;background:var(--green);color:#e6f4ce;border-radius:10px;display:grid;place-items:center}.nav-add svg{width:19px;height:19px}main{padding:23px 20px 12px}.page-heading{margin-bottom:18px;gap:9px;align-items:center}.eyebrow{font-size:8px;letter-spacing:1.5px;margin-bottom:6px}.page-heading h1{font-size:27px;letter-spacing:-1px}.page-heading p:not(.eyebrow){font-size:11px;margin-top:5px}.month-control input{width:138px;font-size:11px;min-height:38px;background:#fdfef9;padding:8px 7px}.overview-grid{gap:14px}.balance-card{min-height:209px;padding:22px 23px}.balance-amount{font-size:40px;margin:8px 0 16px}.balance-amount small{font-size:18px}.balance-bottom{padding-top:16px;gap:14px}.balance-stat strong{font-size:17px}.balance-stat span{font-size:10px}.balance-top>span:first-child{font-size:11px}.quick-actions{margin:13px 0 16px;gap:10px}.quick-actions button{min-height:44px;font-size:12px}.quick-actions svg{width:18px;height:18px}.budget-card{padding:17px 20px}.budget-caption{font-size:11px}.budget-numbers{margin:8px 0 0}.budget-numbers strong{font-size:22px}.budget-numbers>span{font-size:11px}.budget-left{font-size:10px}.budget-track{height:5px;margin:10px 0 8px}.budget-head>.text-button{min-height:25px;padding:2px 0;font-size:10px}.recent-panel{margin-top:2px;padding:19px 19px 5px}.panel-title{margin-bottom:5px}.panel-title h2{font-size:15px}.record-row{grid-template-columns:35px minmax(0,1fr) auto;gap:10px;padding:13px 0}.category-icon{width:35px;height:35px;border-radius:11px}.category-icon svg{width:17px;height:17px}.record-name{font-size:12px}.record-meta{font-size:9px;gap:5px}.record-value strong{font-size:12px}.record-value small{font-size:9px}.app-footer{font-size:9px;padding-top:15px;padding-bottom:9px}.filter-panel{padding:12px;border-radius:16px;margin-bottom:14px}.segmented{padding:3px}.segmented button{font-size:11px;padding:7px 8px;min-height:35px}.search-box{min-width:120px}.search-box input{font-size:12px;min-height:42px}.filter-select{flex-basis:112px}.filter-select select{font-size:11px;padding-left:10px;min-height:42px}.record-count{font-size:10px;margin:14px 1px 10px}.records-panel{padding:3px 17px}.records-panel .record-row{padding:14px 0}.date-heading{font-size:9px;padding:14px 0 5px}.heading-actions{flex-wrap:wrap;justify-content:flex-end}.heading-actions .month-control{order:0}.heading-actions>.secondary{min-height:30px;padding:2px 0;background:transparent;border:0;text-decoration:underline;text-underline-offset:3px;font-size:10px;order:1}.report-summary{gap:7px;margin-bottom:15px}.report-stat{padding:15px 10px;border-radius:14px}.report-stat>span{font-size:9px}.report-stat strong{font-size:17px;letter-spacing:-.6px;margin-top:7px}.report-grid{gap:15px}.report-grid>.panel{padding:20px}.trend-chart{height:145px;gap:12px;margin-top:23px}.trend-value{font-size:8px}.trend-label{font-size:9px}.chart-subtitle{font-size:10px;margin-top:8px}.report-categories{margin-top:17px}.category-detail{padding:12px 0}.report-note{font-size:10px;margin-top:13px}.settings-grid{gap:15px}.settings-grid>.panel{padding:21px}.settings-grid h2{font-size:15px;margin-bottom:17px}.settings-scan{align-items:flex-start;flex-direction:column;gap:15px}.settings-scan .primary{width:100%}.settings-scan h2{margin-bottom:6px}.settings-scan p{font-size:11px}.settings-note{font-size:11px}.privacy-lines>div,.privacy-lines strong{font-size:11px}.settings-form{gap:16px}.settings-form label{font-size:12px}.sheet{width:100%;max-width:600px;max-height:calc(100dvh - 18px);margin:auto 0 0;border-radius:24px 24px 0 0}.sheet-inner{padding:25px 22px calc(24px + env(safe-area-inset-bottom,0px));max-height:calc(100dvh - 18px)}.sheet-header h2{font-size:23px}.sheet-header{margin-bottom:19px}.type-switch{margin-bottom:21px}.amount-input{margin-bottom:19px}.amount-input input{font-size:43px}.form-grid{gap:15px 12px}.form-grid label{font-size:12px}.form-actions{margin-top:22px}.scan-illustration{height:163px;margin-bottom:18px}.paper-receipt{scale:.9}.scan-corners{height:133px}.scan-line{top:32px}.scan-intro{font-size:17px}.scan-description{font-size:12px;margin-bottom:19px}.scan-footnote{font-size:9px}.scan-sheet.scanning .scan-illustration{height:135px}.scan-sheet.scanning .paper-receipt{scale:.75}.scan-sheet.scanning .scan-corners{height:115px;width:140px}.toast{bottom:calc(83px + env(safe-area-inset-bottom,0px));font-size:11px}.receipt-sheet .sheet-inner{padding-bottom:25px}.confirm-sheet{width:calc(100% - 32px);margin:auto;border-radius:22px;max-width:400px}.confirm-sheet .sheet-inner{max-height:calc(100dvh - 56px);padding:24px}.confirm-sheet .form-actions{gap:9px}.confirm-sheet .form-actions button{flex:1;font-size:12px;padding:11px}.form-note{font-size:11px}.scan-buttons button{min-height:46px}.notice{font-size:11px}}
@media(max-width:360px){main{padding:20px 15px 10px}.app-header{padding:0 17px}.page-heading h1{font-size:25px}.month-control input{width:126px;font-size:10px}.balance-card{padding:21px;min-height:199px}.balance-amount{font-size:37px}.balance-stat strong{font-size:16px}.balance-stat span{font-size:9px}.budget-card{padding:16px 18px}.record-row{gap:8px}.record-name{font-size:11px}.record-meta{font-size:8px}.record-value strong{font-size:11px}.report-stat{padding:14px 8px}.report-stat strong{font-size:15px}.sheet-inner{padding-left:19px;padding-right:19px}.form-grid{gap:15px 10px}.form-grid input,.form-grid select{padding-left:10px;padding-right:10px;font-size:15px}.form-grid select{padding-right:28px}.scan-buttons{gap:8px}.scan-buttons button{font-size:11px}.trend-value{font-size:7px}.search-box{min-width:110px}.filter-select{flex-basis:104px}.recent-panel{padding-left:15px;padding-right:15px}}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.overview-grid>*{min-width:0}.quick-actions button{min-width:0;padding-left:12px;padding-right:12px}
.form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.form-grid>label{min-width:0}
.note-details summary{font-size:12px;color:#788a67;text-decoration:underline;text-underline-offset:3px;cursor:pointer;list-style:none;padding:5px 0}.note-details summary::-webkit-details-marker{display:none}.note-details textarea{margin-top:10px}
.sheet-header .text-button{min-height:44px}
.record-editor{max-width:700px;margin:0 auto;padding:30px 34px}.record-editor .type-switch{max-width:420px}.record-editor .amount-input{max-width:450px}.record-editor .form-actions{border-top:1px solid var(--line);padding-top:20px}.record-editor .form-actions .primary{flex:0 1 230px}.category-manage-link{margin-top:-6px}.category-manage-link .text-button{padding:3px 0;min-height:32px;font-size:11px}.record-meta{white-space:nowrap;overflow:hidden}.record-editor .attached-receipt svg{width:18px;height:18px}.manage-categories-button{font-size:12px}.settings-grid h2.privacy-heading{margin-top:27px}.category-manager{max-width:760px;margin:auto}.category-tabs{margin-bottom:18px}.category-tabs button{min-width:110px}.new-category-panel{padding:20px 23px;margin-bottom:17px}.new-category-panel h2{font-size:15px;font-weight:650;margin-bottom:13px}.inline-category-form{display:flex;align-items:center;gap:10px}.inline-category-form label{flex:1;min-width:0}.inline-category-form button{flex:none}.category-cards{display:grid;gap:12px}.category-card{padding:0 23px}.category-card>summary{display:flex;align-items:center;gap:13px;list-style:none;cursor:pointer;min-height:81px;padding:17px 0}.category-card>summary::-webkit-details-marker{display:none}.category-summary{display:grid;gap:3px;flex:1;min-width:0}.category-summary strong{font-size:14px;font-weight:600;overflow-wrap:anywhere}.category-summary small{font-size:10px;color:var(--muted)}.category-chevron{width:9px;height:9px;border-right:1.5px solid #859279;border-bottom:1.5px solid #859279;transform:rotate(45deg);margin:0 4px 4px 9px;flex:none}.category-card[open] .category-chevron{transform:rotate(225deg);margin-top:5px}.category-card-body{padding:0 0 22px;border-top:1px solid var(--line)}.rename-category-form{padding-top:18px}.rename-category-form>label{font-size:11px;color:var(--muted)}.category-edit-actions{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:10px}.category-edit-actions .secondary{min-height:38px;font-size:11px;padding:8px 14px}.category-edit-actions .danger-text{padding-right:0;font-size:11px}.subcategory-heading{margin-top:18px;margin-bottom:4px;color:var(--muted);font-size:10px;letter-spacing:.6px}.subcategory-row{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:48px;border-bottom:1px solid #eef0e7;font-size:12px}.subcategory-row>span{min-width:0;overflow-wrap:anywhere;flex:1}.subcategory-row>div{display:flex;gap:13px;flex:none}.subcategory-row .text-button,.subcategory-row .danger-text{font-size:10px;padding:6px 0;min-height:38px}.new-subcategory-form{margin-top:16px}.new-subcategory-form input,.rename-subcategory-form input{font-size:14px;min-height:42px}.new-subcategory-form button,.rename-subcategory-form .secondary{min-height:42px;padding:9px 17px;font-size:12px}.rename-subcategory-form{padding:8px 0}.rename-subcategory-form .text-button{font-size:10px}.default-category-note,.no-subcategories{font-size:11px;color:var(--muted);padding-top:14px}.category-manager #category-error{margin-bottom:16px}
.record-editor input[type=date]{padding-left:6px;padding-right:6px}.record-editor input[type=date]::-webkit-calendar-picker-indicator{padding:0;margin:0;width:14px}
@media(max-width:600px){.record-editor .form-grid select{font-size:14px;padding-left:10px;padding-right:28px}.record-editor .form-actions{scroll-margin-bottom:90px}}
@media(max-width:360px){.record-editor label:has(select[name=category]),.record-editor label:has(select[name=subcategory]){grid-column:1 / -1}}
@media(max-width:600px){.record-editor{padding:22px 19px;border-radius:18px}.record-editor .amount-input input{font-size:40px}.record-editor .type-switch{margin-bottom:18px}.record-editor .form-actions{margin-top:20px;padding-top:17px}.record-editor .form-actions .primary{flex:1}.record-editor .amount-input{margin-bottom:18px}.record-editor .category-manage-link .text-button{min-height:35px;font-size:11px}.category-tabs{margin-bottom:14px}.category-tabs button{min-width:0;flex:1}.new-category-panel{padding:18px}.new-category-panel h2{font-size:14px}.inline-category-form{gap:8px}.inline-category-form .primary{font-size:11px;padding:10px 12px}.inline-category-form input{font-size:16px;padding:10px;min-height:44px}.category-card{padding:0 18px;border-radius:17px}.category-card>summary{min-height:73px;padding:15px 0;gap:11px}.category-summary strong{font-size:13px}.category-summary small{font-size:10px}.category-card-body{padding-bottom:19px}.rename-category-form>label{font-size:11px}.new-subcategory-form .secondary,.rename-subcategory-form .secondary{padding:10px 12px;font-size:11px}.category-manager .page-heading{gap:10px}.category-edit-actions .danger-text{font-size:10px}.subcategory-row{font-size:12px;min-height:46px}.subcategory-row>div{gap:12px}.rename-subcategory-form{flex-wrap:wrap}.rename-subcategory-form label{flex-basis:calc(100% - 66px)}.rename-subcategory-form .text-button{margin-left:auto;min-height:25px}.record-editor .form-grid select{font-size:14px}.category-manager .notice{margin-top:12px}}
@media(max-width:360px){.record-editor{padding:20px 15px}.record-editor .form-grid{gap:15px 10px}.record-editor .form-grid select{padding-right:26px;font-size:14px}.new-category-panel{padding:16px}.category-card{padding:0 15px}.new-category-panel .inline-category-form{flex-wrap:wrap}.new-category-panel .inline-category-form label{flex-basis:100%}.new-category-panel .inline-category-form .primary{width:100%}.page-heading:has(+.category-manager) .secondary{padding:10px 12px;font-size:10px;white-space:normal;max-width:95px}}
@media(max-width:800px){.overview-grid{grid-template-columns:minmax(0,1fr)}}
.quick-actions{grid-column:1;grid-row:2;margin:0;align-self:start}
.overview-spending{grid-row:2 / span 2}
@media(max-width:800px){.budget-card{grid-row:3}.recent-panel{grid-row:4}.overview-grid{gap:14px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
/* Grouped category selection and account menus. */
.category-field{display:grid;gap:8px;min-width:0}.category-field>span{font-size:13px;font-weight:600}.category-trigger,.select-trigger{width:100%;display:flex;align-items:center;gap:12px;min-height:50px;border:1px solid #dce3d6;border-radius:13px;background:#fafbf8;color:var(--ink);text-align:left;padding:10px 14px;font-size:15px;box-shadow:0 2px 3px #24443603}.category-trigger{min-height:74px;padding:13px 15px}.category-trigger:hover,.select-trigger:hover{background:#f1f5e9;border-color:#aebf9c}.category-trigger .category-icon{flex:none;width:40px;height:40px}.category-selection-copy{display:grid;gap:4px;min-width:0}.category-selection-copy strong{font-size:14px;font-weight:600;overflow-wrap:anywhere}.category-selection-copy small{font-size:12px;color:var(--muted);font-weight:400;overflow-wrap:anywhere}#category-selection{display:flex;align-items:center;gap:12px;min-width:0;flex:1}.field-chevron{width:9px;height:9px;flex:none;transform:rotate(45deg);border-right:1.5px solid #6a7c60;border-bottom:1.5px solid #6a7c60;margin:0 3px 5px auto}.select-trigger>span:first-child{flex:1;min-width:0}.filter-select .select-trigger{min-height:43px;font-size:12px}.sheet.category-picker{inset:0;width:100%;max-width:none;height:100%;height:100dvh;max-height:none;margin:0;border-radius:0;background:#f5f6f0;box-shadow:none}.category-picker .picker-layout{height:100%;max-height:none;padding:0;display:flex;flex-direction:column;overflow:hidden}.picker-header,.picker-search,.picker-footer{flex:none;width:100%;padding-left:max(24px,calc((100% - 860px)/2));padding-right:max(24px,calc((100% - 860px)/2))}.picker-header{display:flex;justify-content:space-between;align-items:center;gap:20px;padding-top:calc(24px + env(safe-area-inset-top,0px));padding-bottom:19px;background:#fff;border-bottom:1px solid var(--line)}.picker-header h2{font-size:27px;letter-spacing:-.8px;font-weight:600;outline:none}.picker-header .eyebrow{font-size:9px;margin-bottom:5px}.picker-header .text-button{min-height:44px;padding:10px 0 10px 15px;text-decoration:none}.picker-search{padding-top:16px;padding-bottom:14px}.picker-search input{background:#fff;border-radius:14px;padding:13px 16px;font-size:16px;min-height:49px}.category-options{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:0 max(24px,calc((100% - 860px)/2)) 22px;scrollbar-width:thin;scrollbar-color:#b9c9ab transparent}.picker-group{background:#fff;border:1px solid var(--line);border-radius:18px;padding:17px 18px;margin-bottom:12px}.picker-group h3{display:flex;gap:10px;align-items:center;font-size:14px;font-weight:650;margin-bottom:13px;overflow-wrap:anywhere}.picker-group .category-icon{width:32px;height:32px;border-radius:10px}.picker-group .category-icon svg{width:17px;height:17px}.category-choices{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.category-choice{position:relative;display:flex;align-items:center;justify-content:space-between;gap:6px;min-height:45px;padding:10px 12px;border-radius:11px;background:#f6f7f1;border:1px solid transparent;color:#65715d;font-size:13px;text-align:left;overflow-wrap:anywhere}.category-choice:hover{background:#eaf0df}.category-choice[aria-pressed=true]{background:#e6efcf;border-color:#99b478;color:#214d3b;font-weight:650}.choice-check{flex:none;width:13px;height:13px;border:1px solid #c6cebd;border-radius:50%;position:relative}.category-choice:not([aria-pressed=true]) .choice-check{display:none}.category-choice[aria-pressed=true] .choice-check,#select-options [aria-selected=true] .choice-check{background:#214d3b;border-color:#214d3b}.category-choice[aria-pressed=true] .choice-check:after,#select-options [aria-selected=true] .choice-check:after{content:'';position:absolute;left:3px;top:2px;width:4px;height:6px;transform:rotate(45deg);border:solid #fff;border-width:0 1.5px 1.5px 0}.picker-footer{padding-top:13px;padding-bottom:calc(14px + env(safe-area-inset-bottom,0px));background:#fff;border-top:1px solid var(--line)}.picker-footer .secondary{min-height:46px;font-size:13px}.sheet.select-dialog{width:min(360px,calc(100% - 32px));margin:auto;border-radius:22px;max-height:calc(100dvh - 32px)}.select-dialog .sheet-inner{padding:22px;max-height:calc(100dvh - 32px)}.select-dialog .sheet-header{margin-bottom:16px}.select-dialog .sheet-header h2{font-size:21px}.select-dialog .sheet-header .text-button{font-size:12px}#select-options{display:grid;gap:7px}#select-options [role=option]{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:14px 15px;min-height:49px;border-radius:12px;background:#f6f7f1;color:#65715d;border:1px solid transparent;text-align:left;font-size:14px}#select-options [role=option]:hover{background:#edf2e3}#select-options [aria-selected=true]{background:#e6efcf;border-color:#adc48f;font-weight:650;color:#214d3b}
@media(max-width:600px){.category-field>span{font-size:12px}.category-trigger{min-height:70px;padding:12px}.category-selection-copy strong{font-size:14px}.category-selection-copy small{font-size:12px}.select-trigger{font-size:15px;padding:12px;min-height:47px}.filter-select .select-trigger{font-size:11px;min-height:42px;padding:10px}.picker-header,.picker-search,.picker-footer{padding-left:20px;padding-right:20px}.picker-header{padding-top:calc(18px + env(safe-area-inset-top,0px));padding-bottom:16px}.picker-header h2{font-size:24px}.picker-search{padding-top:13px;padding-bottom:12px}.category-options{padding-left:16px;padding-right:16px;padding-bottom:14px}.picker-group{padding:14px;margin-bottom:10px;border-radius:16px}.picker-group h3{font-size:13px;margin-bottom:11px}.category-choices{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.category-choice{padding:10px 9px;min-height:45px;font-size:12px}.picker-footer .secondary{width:100%}.sheet.select-dialog{width:100%;max-width:none;margin:auto 0 0;border-radius:24px 24px 0 0;max-height:calc(100dvh - 18px)}.select-dialog .sheet-inner{padding:24px 22px calc(24px + env(safe-area-inset-bottom,0px));max-height:calc(100dvh - 18px)}#select-options [role=option]{font-size:15px;min-height:52px}}
@media(max-width:360px){.category-choices{grid-template-columns:repeat(2,minmax(0,1fr))}.picker-header,.picker-search,.picker-footer{padding-left:16px;padding-right:16px}.category-options{padding-left:12px;padding-right:12px}}
/* Keep phone scrolling natural without visible scrollbar tracks. */
@media(max-width:600px){html,body,.sheet-inner,.category-options{scrollbar-width:none}html::-webkit-scrollbar,body::-webkit-scrollbar,.sheet-inner::-webkit-scrollbar,.category-options::-webkit-scrollbar{display:none;width:0;height:0}}

/* Consistent report amounts: currency and figures each have their own row. */
.report-summary{grid-template-columns:repeat(3,minmax(0,1fr))}.report-stat{min-width:0;container-type:inline-size}.report-stat .report-amount{line-height:1.3;overflow-wrap:normal;font-variant-numeric:tabular-nums}.report-amount small{display:block;font-size:10px;font-weight:500;letter-spacing:0;color:var(--muted);margin-bottom:4px}.report-amount>span{display:block;white-space:nowrap;font-size:min(1em,calc(150cqi / var(--amount-length)))}

.category-builder{display:grid;gap:17px}.category-builder>label{font-size:12px}.category-builder>.primary{justify-self:start}.category-builder #new-parent-field{padding:15px;background:#f4f7ed;border:1px solid var(--line);border-radius:13px}.category-builder #new-parent-field input{background:#fff}.category-builder .form-error{margin:0}.category-builder .select-trigger{font-size:15px;min-height:47px}
@media(max-width:600px){.category-builder{gap:15px}.category-builder>.primary{width:100%}.category-builder #new-parent-field{padding:13px}}
/* Category artwork stays selectable without adding a long form grid. */
.icon-field{display:grid;gap:7px;min-width:0}.icon-field-label{font-size:12px;font-weight:600}.icon-field-button{display:flex;align-items:center;gap:12px;min-height:47px;width:100%;padding:11px 14px;background:#fafbf8;border:1px solid var(--line);border-radius:12px;text-align:left;font-size:13px;color:var(--ink)}.icon-field-button:hover,.stored-icon-button:hover{background:#eaf0df;border-color:#aebf9c}.icon-field-button svg{width:22px;height:22px;color:var(--green)}.compact-icon-field{flex:none}.compact-icon-field .icon-field-button{width:44px;height:44px;padding:10px}.category-builder #new-parent-field{display:grid;gap:15px}.category-builder #new-parent-field .icon-field-button{background:#fff}.existing-icon-row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:15px;font-size:11px;color:var(--muted)}.stored-icon-button{display:grid;place-items:center;width:40px;height:40px;flex:none;background:#f3f6eb;border:1px solid var(--line);border-radius:11px;color:var(--green)}.stored-icon-button svg{width:20px;height:20px}.subcategory-row{gap:9px;padding:6px 0}.subcategory-row .stored-icon-button{width:36px;height:36px;min-height:36px}.subcategory-row .stored-icon-button svg{width:18px;height:18px}.choice-symbol{flex:none}.choice-symbol svg{width:15px;height:15px}.choice-name{flex:1;min-width:0}.icon-options{padding-top:2px}.icon-group{margin:0 0 24px}.icon-group h3{font-size:12px;font-weight:650;color:var(--muted);margin:0 0 12px}.icon-grid{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:9px}.icon-grid button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px;min-height:83px;padding:12px 5px;border:1px solid var(--line);border-radius:14px;background:#fff;color:var(--green)}.icon-grid svg{width:25px;height:25px}.icon-grid button>span{font-size:10px;line-height:1.3;text-align:center;overflow-wrap:anywhere}.icon-grid button:hover{background:#edf2e3}.icon-grid button[aria-pressed=true],.inherit-icon-choice[aria-pressed=true]{background:#e6efcf;border-color:#8eaa6d;box-shadow:inset 0 0 0 1px #8eaa6d}.inherit-icon-choice{display:flex;align-items:center;gap:12px;min-height:50px;padding:13px 16px;width:100%;background:#fff;border:1px solid var(--line);border-radius:13px;margin-bottom:22px;color:var(--green);font-size:13px;text-align:left}.icon-picker .picker-header h2{outline:none}
@media(max-width:600px){.icon-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:7px}.icon-grid button{min-height:77px;padding:10px 4px;border-radius:12px;gap:8px}.icon-grid svg{width:23px;height:23px}.icon-grid button>span{font-size:9px}.icon-group{margin-bottom:21px}.category-choice{gap:5px}.choice-symbol svg{width:14px;height:14px}.category-choice .choice-check{width:11px;height:11px}.category-choice .choice-check:after{left:2px;top:1px}.category-card .new-subcategory-form{gap:7px}.category-card .new-subcategory-form input{padding-left:9px;padding-right:9px}.category-card .new-subcategory-form .secondary{padding-left:10px;padding-right:10px}}
@media(max-width:360px){.icon-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.subcategory-row>div{gap:8px}.subcategory-row>span{font-size:11px}}

/* The desktop profile lives with navigation; the top brand bar is for phones. */
.app-header{display:none}.sidebar{overflow-y:auto}.sidebar-profile{margin-top:auto;flex:none;width:100%;padding:12px;background:#eef2e7;border-radius:14px;text-align:left;gap:11px}.sidebar-profile .profile-name{display:block;font-size:13px;font-weight:600;overflow-wrap:anywhere;min-width:0}.sidebar-profile:hover{background:#e4ebd8}.sidebar-profile .avatar{flex:none}
@media(max-width:600px){.app-header{display:flex;align-items:center;justify-content:space-between;gap:16px;border-bottom:1px solid var(--line)}}
/* Wallet context is part of the page title, keeping the desktop header minimal. */
.heading-title{min-width:0}.wallet-switch{display:flex;align-items:center;gap:7px;max-width:190px;min-height:32px;margin-top:7px;padding:5px 9px;border:1px solid var(--line);border-radius:9px;background:#fff;color:var(--green);font-size:11px;text-align:left}.wallet-switch>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}.wallet-switch svg{width:15px;height:15px}.wallet-switch .field-chevron{width:6px;height:6px;margin-left:auto}.wallets-panel{grid-column:1 / -1}.wallets-panel h2{margin-bottom:16px}.wallet-list{margin-top:16px;display:grid}.wallet-row{display:flex;align-items:center;gap:12px;border-top:1px solid var(--line);padding:10px 0}.wallet-name{flex:1;min-width:0;display:flex;align-items:center;flex-wrap:wrap;gap:8px;min-height:44px;background:transparent;padding:4px 0;text-align:left;font-size:13px;color:var(--ink)}.wallet-name>span{overflow-wrap:anywhere}.wallet-name small{font-size:9px;padding:3px 7px;background:#e6efcf;border-radius:6px;color:var(--green)}.wallet-actions{display:flex;align-items:center;flex:none;gap:12px}.wallet-actions .text-button,.wallet-actions .danger-text{font-size:11px;min-height:40px;padding:5px 0}.rename-wallet-form{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:13px 0;border-top:1px solid var(--line)}.rename-wallet-form>label{flex:1;min-width:110px}.rename-wallet-form .secondary{font-size:11px;padding:10px 14px;min-height:44px}.rename-wallet-form .text-button{font-size:11px}.wallets-panel #wallet-error{margin-top:12px}.budget-wallet-name{font-size:11px;color:var(--muted);font-weight:400}.wallet-options{display:grid;gap:7px}#wallet-options [role=option]{display:flex;align-items:center;justify-content:space-between;gap:14px;width:100%;min-height:49px;border:1px solid transparent;border-radius:12px;padding:14px 15px;background:#f6f7f1;color:var(--ink);font-size:14px;text-align:left}#wallet-options [role=option]>span:first-child{min-width:0;overflow-wrap:anywhere}#wallet-options [aria-selected=true]{background:#e6efcf;border-color:#adc48f;font-weight:650;color:var(--green)}#wallet-options [aria-selected=true] .choice-check{background:#214d3b;border-color:#214d3b}#wallet-options [aria-selected=true] .choice-check:after{content:'';position:absolute;left:3px;top:2px;width:4px;height:6px;transform:rotate(45deg);border:solid #fff;border-width:0 1.5px 1.5px 0}.manage-wallets{width:100%;margin-top:15px;font-size:12px}.wallet-options [role=option]:hover{background:#edf2e3}
@media(max-width:600px){.wallet-switch{max-width:150px;font-size:10px;margin-top:6px;min-height:32px}.wallet-actions{gap:10px}.wallet-actions .text-button,.wallet-actions .danger-text{font-size:10px}.wallet-name{font-size:12px}.wallets-panel #new-wallet-form{gap:8px}.wallets-panel #new-wallet-form .primary{font-size:11px;padding:10px 13px}.wallets-panel #new-wallet-form input{padding:11px;font-size:16px}.wallet-row{gap:10px}.wallet-name small{font-size:8px}}
@media(max-width:360px){.wallet-switch{max-width:130px}.wallet-actions{gap:8px}.wallet-name{font-size:11px}.wallets-panel #new-wallet-form{flex-wrap:wrap}.wallets-panel #new-wallet-form>label{flex-basis:100%}.wallets-panel #new-wallet-form .primary{width:100%}}
.settings-grid>section{min-width:0}.budget-wallet-name,.wallet-name>span{overflow-wrap:anywhere;max-width:100%}.select-trigger>span:first-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.select-dialog [role=option]>span:first-child{min-width:0;overflow-wrap:anywhere}
/* Explicit clock controls keep 12/24-hour input consistent across devices. */
.record-time{margin:0;padding:0;border:0;min-width:0}.record-time legend{padding:0;margin-bottom:7px;font-size:13px;font-weight:600}.time-controls{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr) minmax(45px,1.4fr);align-items:center;gap:3px;min-height:46px;padding:0 5px;border:1px solid var(--line);border-radius:12px;background:#fafbf8}.time-controls>label{min-width:0;gap:0}.record-editor .record-time input:not([type=hidden]){min-height:44px;padding:0 1px;border:0;background:transparent;text-align:center;border-radius:7px;font-size:16px;letter-spacing:0}.time-colon{font-size:16px;color:var(--muted)}.time-period .select-trigger{gap:3px;min-height:44px;padding:0 2px;border:0;box-shadow:none;border-radius:7px;background:transparent;font-size:11px}.time-period .select-trigger .field-chevron{width:5px;height:5px;margin:0 1px 3px 0}.time-period .select-trigger>span:first-child{overflow:visible;text-overflow:clip}.record-editor[data-time-format="24"] .time-controls{grid-template-columns:minmax(0,1fr) auto minmax(0,1fr)}.record-value small{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:4px 6px}.record-value time{white-space:nowrap}.time-format-setting{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-top:22px;font-size:12px;font-weight:600}.time-format-setting .segmented{width:auto;flex:none}.time-format-setting .segmented button{font-size:11px;padding:7px 12px;min-height:36px}
@media(max-width:600px){.record-time legend{font-size:12px}.time-controls{gap:2px;padding:0 3px}.time-format-setting{gap:9px}.time-format-setting .segmented button{padding:7px 9px;font-size:10px}}

/* Bound native date widgets and keep clock fields aligned in mobile browsers. */
.date-time-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:14px;min-width:0}.date-time-fields>*{min-width:0}.date-time-fields .record-date-field{align-content:start}.record-editor .record-date-field input[type=date]{display:block;appearance:none;-webkit-appearance:none;width:100%;max-width:100%;min-width:0;height:48px;min-height:48px;padding:0 8px;font-size:16px;line-height:normal;text-align:left}.record-date-field input::-webkit-date-and-time-value{min-width:0;text-align:left}.record-date-field input::-webkit-datetime-edit{min-width:0;padding:0}.date-time-fields .time-controls{height:48px;min-height:48px}.date-time-fields .record-time legend{line-height:1.5}.date-time-fields .record-time input:not([type=hidden]){font-size:16px}
@media(max-width:600px){.date-time-fields{gap:12px}.record-editor .record-date-field input[type=date]{font-size:16px}}
@media(max-width:374px){.date-time-fields{grid-template-columns:minmax(0,1fr);gap:15px}}
@media(max-width:600px){.record-editor .form-grid input:not([type=hidden]),.record-editor .form-grid textarea{font-size:16px}}

/* Shared date-field artwork for every viewport. */
.date-surface{position:relative;display:flex;align-items:center;justify-content:space-between;gap:8px;min-width:0;height:48px;padding:0 10px;border:1px solid var(--line);border-radius:12px;background:#fafbf8;font-size:14px;line-height:1.3;text-align:left;isolation:isolate}
.date-surface>[data-date-display]{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;pointer-events:none}
.date-surface>svg{width:16px;height:16px;pointer-events:none;color:var(--muted)}
.export-form .date-surface>input[type=date],.budget-period-form .date-surface>input[type=date],.record-editor .date-surface>input[type=date],.recurring-settings-card .date-surface>input[type=date],.month-control .date-surface>input[type=month]{position:absolute;inset:0;z-index:1;display:block;width:100%;max-width:100%;height:100%;min-height:0;margin:0;padding:0;border:0;opacity:0;cursor:pointer;font-size:16px}
.export-form .date-surface>input[type=date]::-webkit-calendar-picker-indicator,.budget-period-form .date-surface>input[type=date]::-webkit-calendar-picker-indicator,.record-editor .date-surface>input[type=date]::-webkit-calendar-picker-indicator,.recurring-settings-card .date-surface>input[type=date]::-webkit-calendar-picker-indicator,.month-control .date-surface>input[type=month]::-webkit-calendar-picker-indicator{position:absolute;inset:0;width:auto;height:auto;margin:0;padding:0;opacity:0;cursor:pointer}
.date-surface:has(input:focus-visible){outline:3px solid #659b73;outline-offset:3px}
.month-control .date-surface{width:175px;height:40px;border-radius:11px;background:#fff;font-size:12px;font-weight:600}
@media(max-width:900px){.month-control .date-surface{width:153px}}
@media(max-width:600px){.month-control .date-surface{width:138px;height:38px;padding:0 8px;background:#fdfef9;font-size:11px}.month-control .date-surface>svg{width:14px;height:14px}}
@media(max-width:360px){.month-control .date-surface{width:126px;font-size:10px}}
.export-form .date-surface>input[type=date]:focus-visible,.budget-period-form .date-surface>input[type=date]:focus-visible,.record-editor .date-surface>input[type=date]:focus-visible,.recurring-settings-card .date-surface>input[type=date]:focus-visible,.month-control .date-surface>input[type=month]:focus-visible{opacity:1;background:#fafbf8;padding:0 8px;outline:0}

/* Account hub: shared profile above grouped, touch-friendly navigation. */
.account-layout{display:grid;grid-template-columns:minmax(250px,.9fr) minmax(0,1.2fr);align-items:start;gap:24px;max-width:940px}
.account-profile-card{background:#fff;border:1px solid var(--line);border-radius:24px;overflow:hidden;min-width:0}
.account-portrait{padding:30px 22px 26px;text-align:center;display:flex;flex-direction:column;align-items:center}
.account-photo{position:relative;width:94px;height:94px;flex:none;display:grid;place-items:center;background:#e7eddb;border:1px solid #d9e3cb;border-radius:50%;font-size:35px;font-weight:600;color:var(--green)}
.account-photo>img{width:100%;height:100%;border-radius:50%;object-fit:cover}
.account-photo-edit{position:absolute;right:-3px;bottom:0;width:29px;height:29px;display:grid;place-items:center;border:3px solid #fff;border-radius:50%;background:var(--green);color:white}
.account-photo-edit svg{width:14px;height:14px}.account-portrait>.text-button{font-size:11px;min-height:32px;margin-top:6px}
.account-user-name{max-width:100%;overflow-wrap:anywhere;font-size:24px;letter-spacing:-.6px;font-weight:650;margin-top:9px}

.account-menu-stack{display:grid;gap:18px;min-width:0}.account-menu{border:1px solid var(--line);border-radius:19px;background:#fff;overflow:hidden;min-width:0}
.account-menu-row{display:flex;align-items:center;gap:13px;width:100%;min-height:57px;padding:15px 20px;background:transparent;color:var(--ink);font-size:14px;text-align:left;line-height:1.4;overflow-wrap:anywhere}
.account-menu-row+.account-menu-row{border-top:1px solid #edf0e7}.account-menu-row:hover{background:#f0f5e8}.account-menu-row:focus-visible{outline-offset:-4px;border-radius:12px}
.account-menu-icon{display:grid;place-items:center;width:25px;height:25px;flex:none;color:#657a57}.account-menu-icon svg{width:21px;height:21px}
.account-row-indicator{width:7px;height:7px;border-top:1px solid #83927b;border-right:1px solid #83927b;transform:rotate(45deg);margin-left:auto;flex:none}
.account-my-link{border-top:1px solid var(--line);background:#f7f9f1}.my-account-layout{max-width:570px;margin:auto;display:grid;gap:20px}
.my-account-layout .account-portrait{padding-top:26px;padding-bottom:22px}.account-centered{justify-content:center;text-align:center;color:var(--green);font-weight:550}
.account-danger{color:#a24c40}.account-danger:hover{background:#faf0ec}.account-edit-form{display:grid;gap:17px}.account-edit-form input{width:100%}
.account-password-note{font-size:12px;line-height:1.6;color:var(--muted)}.account-coming-soon{text-align:center;font-size:21px;color:var(--green);padding:23px 0 30px}
.avatar{overflow:hidden}.avatar img{width:100%;height:100%;object-fit:cover;border-radius:50%}
.account-ended .desktop-nav,.account-ended .scan-side,.account-ended .sidebar-profile,.account-ended .mobile-profile,.account-ended .mobile-nav{display:none}
.account-ended-panel{max-width:500px;margin:65px auto;text-align:center;padding:38px 25px}.account-ended-icon{display:grid;place-items:center;width:62px;height:62px;background:#e9efdd;color:var(--green);border-radius:50%;margin:0 auto 20px}.account-ended-icon svg{width:30px;height:30px}
.account-ended-panel h1{font-size:28px;letter-spacing:-1px}.account-ended-panel p{color:var(--muted);font-size:13px;margin:15px 0 24px}
@media(max-width:900px){.account-layout{grid-template-columns:minmax(0,1fr);max-width:570px;margin:auto;gap:19px}.account-menu-stack{gap:16px}.account-portrait{padding-top:24px;padding-bottom:21px}}
@media(max-width:600px){.account-layout{gap:18px}.account-profile-card{border-radius:22px}.account-portrait{padding:22px 20px 18px}.account-photo{width:80px;height:80px;font-size:30px}.account-user-name{font-size:22px;margin-top:6px}.account-menu-stack{gap:16px}.account-menu{border-radius:18px}.account-menu-row{min-height:54px;padding:14px 18px;font-size:14px;gap:12px}.account-menu-icon svg{width:20px;height:20px}.my-account-layout{gap:19px}.my-account-layout .account-portrait{padding:24px 20px 20px}.account-edit-form input{font-size:16px}.account-ended-panel{margin:28px auto}.account-edit-form .primary{min-height:46px}}

/* Wallet balances include the opening amount; monthly reports remain cash flow. */
.wallets-page,.wallet-editor{max-width:680px;margin:0 auto}.wallet-total-card{display:grid;gap:8px;padding:24px 26px;background:#e9efdc;border:1px solid #dbe5ce;border-radius:22px;margin-bottom:25px}.wallet-total-card>span{font-size:12px;color:#637456}.wallet-total-card>strong{font-size:32px;line-height:1.25;letter-spacing:-1px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.wallet-total-card>small{font-size:11px;color:#75836a}.wallet-group{margin-top:23px}.wallet-group>h2{font-size:11px;font-weight:600;letter-spacing:.7px;text-transform:uppercase;color:#7a8772;margin:0 0 10px 13px}.wallet-cards{border:1px solid var(--line);border-radius:20px;background:white;overflow:hidden}.wallet-card{display:flex;gap:12px;align-items:center;min-width:0;padding:0 19px}.wallet-card+.wallet-card{border-top:1px solid #edf0e7}.wallet-detail-link{flex:1;min-width:0;display:flex;align-items:center;gap:14px;min-height:82px;padding:15px 0}.wallet-detail-link:focus-visible{outline-offset:-3px;border-radius:12px}.wallet-detail-link>span:nth-child(2){min-width:0;display:grid;gap:6px}.wallet-detail-link strong{font-size:15px;font-weight:550;overflow-wrap:anywhere}.wallet-detail-link small{font-size:13px;font-variant-numeric:tabular-nums;color:#718365;overflow-wrap:anywhere}.wallet-card-icon,.wallet-editor-mark{display:grid;place-items:center;flex:none;background:#eaf0de;color:#526e3f;border-radius:15px;width:43px;height:43px}.wallet-card-icon svg{width:24px;height:24px}.wallet-active{font-size:10px;color:var(--green);padding:5px 8px;background:#eaf0dc;border-radius:8px;flex:none}.wallet-use{color:var(--green);background:transparent;font-size:12px;min-height:44px;min-width:44px;padding:8px 0;text-decoration:underline;text-underline-offset:3px}.wallets-empty{padding:21px;color:var(--muted);font-size:13px}.wallet-edit-form{display:grid;gap:21px;padding:28px}.wallet-editor-mark{width:53px;height:53px;border-radius:17px}.wallet-editor-mark svg{width:28px;height:28px}.wallet-edit-form input:not([type=checkbox]){width:100%;min-width:0}.wallet-balance-input{display:flex;align-items:center;border:1px solid var(--line);border-radius:12px;background:#fafbf8;overflow:hidden;margin-top:8px}.wallet-balance-input>span{font-size:14px;color:#80916d;padding-left:15px;flex:none}.wallet-balance-input input{border:0;background:transparent;padding-left:9px;font-size:20px;font-variant-numeric:tabular-nums}.wallet-field-note{font-size:11px;line-height:1.6;color:var(--muted);margin-top:-12px}.wallet-exclude-toggle{display:flex;align-items:center;gap:15px;cursor:pointer;position:relative;min-height:53px;border-top:1px solid #e9eee0;padding-top:18px}.wallet-exclude-toggle>span{flex:1;font-weight:550;font-size:14px}.wallet-exclude-toggle input{position:absolute;right:0;opacity:0;width:45px;height:34px;margin:0;z-index:1;cursor:pointer}.wallet-exclude-toggle i{display:block;position:relative;flex:none;width:43px;height:25px;background:#cbd2c4;border-radius:20px;transition:background .2s}.wallet-exclude-toggle i:after{content:'';position:absolute;top:3px;left:3px;width:19px;height:19px;background:white;border-radius:50%;box-shadow:0 1px 3px #0002;transition:transform .2s}.wallet-exclude-toggle input:checked+i{background:var(--green)}.wallet-exclude-toggle input:checked+i:after{transform:translateX(18px)}.wallet-exclude-toggle input:focus-visible+i{outline:2px solid var(--green);outline-offset:4px}.wallet-delete{display:block;margin:15px auto 0;min-height:44px}.current-wallet-balance{display:flex;justify-content:space-between;gap:12px;padding-bottom:14px;font-size:11px;color:#d5e3ca;flex-wrap:wrap}.current-wallet-balance strong{font-size:12px;font-weight:550;font-variant-numeric:tabular-nums}
@media(max-width:600px){.wallet-total-card{padding:22px;margin-bottom:22px}.wallet-total-card>strong{font-size:29px}.wallet-group{margin-top:20px}.wallet-detail-link{gap:12px;min-height:77px}.wallet-card{padding:0 17px;gap:9px}.wallet-detail-link strong{font-size:14px}.wallet-detail-link small{font-size:12px}.wallet-active{font-size:9px}.wallet-edit-form{padding:23px 20px;gap:21px}.wallet-edit-form input:not([type=checkbox]){font-size:16px}.wallet-balance-input input{font-size:20px!important}.wallet-edit-form .wallet-field-note{font-size:11px}.page-heading:has(+.wallets-page),.page-heading:has(+.wallet-editor){align-items:center}.page-heading:has(+.wallets-page) .heading-actions,.page-heading:has(+.wallet-editor) .heading-actions{gap:12px}.page-heading:has(+.wallets-page) .primary,.page-heading:has(+.wallet-editor) .primary{padding:11px 15px;font-size:12px;min-height:44px}.page-heading:has(+.wallets-page) h1{font-size:27px}.current-wallet-balance{font-size:10px;padding-bottom:12px}}
@media(max-width:360px){.page-heading:has(+.wallets-page){gap:8px}.page-heading:has(+.wallets-page) h1{font-size:23px}.page-heading:has(+.wallets-page) .heading-actions{gap:9px}.page-heading:has(+.wallets-page) .primary{padding:10px 12px;font-size:11px}.wallet-card{padding:0 14px}}

/* Category directory and full-page creation, shared by phones and desktop. */
.category-directory{max-width:680px}.category-directory .category-tabs{display:flex;width:100%;padding:4px;background:#e9ede2;border-radius:14px}.category-directory .category-tabs button{flex:1;min-height:40px;border-radius:10px;font-size:13px}.new-category-link{display:flex;align-items:center;justify-content:center;gap:9px;min-height:53px;margin:20px 0 14px;border:1px solid #dce5ce;border-radius:18px;background:#eaf0de;color:var(--green);font-size:14px;font-weight:600}.new-category-link svg{width:20px;height:20px}.category-directory .category-cards{gap:12px}.category-group{overflow:hidden;border:1px solid var(--line);border-radius:21px;background:#fff}.category-group .category-card{border:0;border-radius:0;background:transparent;box-shadow:none;padding:0 20px}.category-group .category-card>summary{min-height:74px;padding:15px 0;gap:13px}.category-group .category-summary strong{font-size:15px;font-weight:550}.category-group .category-icon{width:42px;height:42px;border-radius:14px;flex:none}.category-group .category-icon svg{width:23px;height:23px}.category-group .category-chevron{width:7px;height:7px;transform:rotate(-45deg);margin-top:0;margin-bottom:0}.category-group .category-card[open] .category-chevron{transform:rotate(45deg)}.category-child-preview{padding:0 17px 5px 26px}.category-child-link{display:flex;align-items:center;gap:12px;position:relative;width:100%;min-height:54px;background:transparent;border-top:1px solid #edf0e8;text-align:left;color:var(--ink);padding:9px 5px 9px 20px;font-size:14px}.category-child-link>span:nth-last-child(2){flex:1;min-width:0;overflow-wrap:anywhere}.child-branch{position:absolute;left:0;top:0;width:12px;height:28px;border-left:1px solid #d4ddcc;border-bottom:1px solid #d4ddcc;border-bottom-left-radius:9px}.category-child-icon{width:31px;height:31px;display:grid;place-items:center;background:#f0f3e9;color:#58744b;border-radius:11px;flex:none}.category-child-icon svg{width:19px;height:19px}.category-child-link .account-row-indicator{margin-right:2px}.category-group:has(.category-card[open]) .category-child-preview{display:none}.category-group .category-card-body{padding-top:4px}.category-create-page{max-width:680px;margin:auto;min-height:calc(100dvh - 230px);display:flex;flex-direction:column;gap:22px}.category-create-form{display:grid;gap:16px}.category-create-card{border:1px solid var(--line);border-radius:23px;background:#fff;padding:0 24px;overflow:hidden}.category-name-row{display:flex;align-items:center;gap:15px;min-height:100px}.category-name-row label{flex:1;min-width:0}.category-name-row input{margin:0;border:0;background:transparent;width:100%;padding:17px 0;font-size:21px;min-width:0}.category-name-row input::placeholder{font-weight:400;color:#9aa58e}.category-name-row .compact-icon-field{margin:0;flex:none}.category-name-row .icon-field-button{width:53px;height:53px;border-radius:17px;background:#eaf0df;border-color:#dfe7d4;color:var(--green)}.category-name-row .icon-field-button svg{width:28px;height:28px}.category-type-row,.category-parent-row{display:flex;align-items:center;gap:16px;min-height:82px;border-top:1px solid #e8ede0;padding:16px 0}.category-form-symbol{display:grid;place-items:center;flex:none;width:36px;color:#607b52;font-size:22px}.category-form-symbol svg{width:23px;height:23px}.category-type-row .segmented{background:#eef1e7;padding:4px;border-radius:12px}.category-type-row .segmented button{font-size:13px;min-height:37px;padding:7px 18px;border-radius:9px}.category-parent-row label{flex:1;min-width:0;font-size:12px;color:#7b886f;gap:5px}.category-parent-row .select-trigger{margin-top:4px;min-height:43px;padding:9px 0;background:transparent;border:0;border-radius:6px;color:var(--ink);font-size:16px}.category-parent-row .select-trigger .field-chevron{margin-right:7px}.category-save-bar{margin-top:auto;padding:20px 0 10px}.category-save-bar .primary{width:100%;min-height:50px;border-radius:16px;font-size:15px}.category-create-form .form-error{padding:0 8px}.category-name-row input:focus-visible{outline-offset:3px}
@media(max-width:600px){.category-directory .category-tabs{margin-bottom:17px}.category-directory .category-tabs button{font-size:13px;min-height:38px}.new-category-link{margin-top:0;min-height:51px}.category-group .category-card{padding:0 17px}.category-group .category-card>summary{min-height:72px}.category-group .category-summary strong{font-size:14px}.category-child-preview{padding-left:24px;padding-right:15px}.category-child-link{font-size:13px;min-height:52px;gap:10px}.category-create-card{padding:0 19px;border-radius:21px}.category-name-row{min-height:94px;gap:13px}.category-name-row input{font-size:19px}.category-name-row .icon-field-button{width:49px;height:49px;border-radius:16px}.category-type-row,.category-parent-row{gap:14px;min-height:80px}.category-create-page{min-height:calc(100dvh - 290px)}.category-type-row .segmented button{padding-left:15px;padding-right:15px}.category-save-bar{padding-bottom:5px}.category-directory .category-card .new-subcategory-form{flex-wrap:wrap}.category-directory .new-subcategory-form label{min-width:120px}.category-directory .category-edit-actions{flex-wrap:wrap}.category-group .subcategory-row{flex-wrap:wrap}.category-group .subcategory-row>span{min-width:80px}}
.category-form-symbol{white-space:nowrap}.category-type-row .segmented{min-width:0}.category-type-row .segmented button{min-width:0}

/* Recurring entries have an independent draft and a separate compact repeat page. */
.recurring-list{max-width:750px;margin:auto;display:grid;gap:13px}.recurring-card{display:flex;align-items:flex-start;gap:13px;min-height:111px;background:#fff;border:1px solid var(--line);border-radius:21px;padding:23px}.recurring-card .category-icon{flex:none;background:#ecf2e0;width:42px;height:42px;border-radius:14px;color:#547446}.recurring-card .category-icon svg{width:24px;height:24px}.recurring-card-copy{flex:1;min-width:0;display:grid;gap:7px}.recurring-card-copy strong{font-size:15px;font-weight:600;overflow-wrap:anywhere}.recurring-card-copy>span{font-size:11px;color:#7b896e;overflow-wrap:anywhere}.recurring-card-copy small{font-size:12px;color:#697e5a;margin-top:4px}.recurring-card-amount{font-size:14px;font-weight:600;white-space:nowrap;line-height:1.4}.recurring-card-amount.income{color:#4d7c35}.recurring-card-amount.expense{color:#645348}.recurring-card:hover{border-color:#bbcba9}.recurring-visit-note{font-size:11px;color:#8b967f;text-align:center;padding:6px 0}.recurring-empty{display:grid;gap:15px;padding:27px;font-size:14px}.recurring-repeat-button{display:flex;align-items:center;gap:13px;text-align:left;width:100%;border:1px solid #dce5d0;background:#f3f6eb;padding:17px;border-radius:16px;min-height:85px;color:var(--green)}.recurring-repeat-button>span:nth-child(2){flex:1;min-width:0;display:grid;gap:5px}.recurring-repeat-button strong{font-size:16px;font-weight:600}.recurring-repeat-button small,.recurring-repeat-button>span>span{font-size:11px;color:#7c8c6d}.recurring-repeat-icon{display:grid;place-items:center;flex:none;width:32px}.recurring-repeat-icon svg{width:24px;height:24px}.recurring-editor-note{margin:17px 0 0;font-size:11px;line-height:1.6;color:#859478}.recurring-schedule-page{max-width:680px;margin:auto}.recurring-schedule-page form{display:grid;gap:18px}.recurring-settings-card{background:white;border:1px solid var(--line);border-radius:21px;padding:0 23px;overflow:hidden}.recurring-settings-card>label{display:flex;align-items:center;justify-content:space-between;gap:15px;min-height:79px;padding:15px 0;font-size:14px;font-weight:500}.recurring-settings-card>label+label{border-top:1px solid #e9eee0}.recurring-settings-card .select-trigger{margin:0;flex:0 1 64%;min-width:0;width:auto;background:transparent;border:0;padding:10px 0 10px 9px;min-height:44px;color:var(--green);font-size:14px;text-align:right}.recurring-settings-card .select-trigger>span:first-child{overflow-wrap:anywhere;text-align:right}.recurring-settings-card .field-chevron{flex:none}.recurring-settings-card .date-surface{margin:0;min-width:0;max-width:205px;flex:0 1 64%}.recurring-settings-card .date-surface input{min-height:44px}.recurring-interval-control{display:flex;align-items:center;justify-content:flex-end;gap:10px;color:#7c8b6c;font-size:13px}.recurring-interval-control input,.recurring-settings-card input[name=count]{max-width:90px;margin:0;text-align:center;font-size:17px;min-height:44px}.recurring-weekdays{padding:21px 23px}.recurring-weekdays h2{font-size:13px;font-weight:550;margin-bottom:15px;color:#697d59}.recurring-weekdays>div{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:7px}.recurring-weekdays button{background:#f1f4e9;border:1px solid transparent;border-radius:12px;min-height:46px;font-size:12px;color:#7b896f;padding:4px}.recurring-weekdays button[aria-pressed=true]{background:#dfeac5;border-color:#a4be83;color:var(--green);font-weight:650}.recurring-field-note{font-size:11px;color:#829171;margin:-4px 0 18px;line-height:1.5}.recurring-schedule-done{margin-top:25px;width:100%;min-height:50px;border-radius:15px}.recurring-editor .record-time .time-controls{max-width:250px}.page-heading:has(+.recurring-list){align-items:center}.page-heading:has(+.recurring-list) h1{font-size:clamp(25px,3vw,36px)}
@media(max-width:600px){.page-heading:has(+.recurring-list){flex-wrap:wrap;gap:15px}.page-heading:has(+.recurring-list) .heading-title{flex:1 1 205px}.page-heading:has(+.recurring-list) .heading-actions{gap:15px;margin-left:auto}.page-heading:has(+.recurring-list) .primary{min-height:43px;padding:11px 17px;font-size:12px}.page-heading:has(+.recurring-list) h1{font-size:25px;line-height:1.2}.recurring-card{padding:20px 17px;gap:11px;border-radius:20px}.recurring-card-copy strong{font-size:14px}.recurring-card-copy>span{font-size:10px}.recurring-card-amount{font-size:12px}.recurring-card-copy small{font-size:11px;margin-top:5px}.recurring-settings-card{padding:0 18px;border-radius:19px}.recurring-settings-card>label{font-size:13px;gap:10px;min-height:77px}.recurring-settings-card .select-trigger{font-size:13px;gap:10px}.recurring-settings-card .date-surface{flex-basis:65%}.recurring-settings-card .date-surface [data-date-display]{font-size:13px}.recurring-weekdays{padding:19px 14px}.recurring-weekdays>div{gap:4px}.recurring-weekdays button{min-height:44px;font-size:11px;border-radius:10px}.recurring-schedule-page form{gap:15px}.recurring-editor .time-controls{width:100%}.recurring-repeat-button{padding:16px}.recurring-editor-note{font-size:10px}.recurring-card .category-icon{width:37px;height:37px;border-radius:12px}.recurring-card .category-icon svg{width:21px;height:21px}}
@media(max-width:360px){.recurring-card{flex-wrap:wrap;position:relative;padding:17px}.recurring-card-copy{padding-right:0}.recurring-card-amount{margin-left:48px;margin-top:-2px}.recurring-settings-card .select-trigger{font-size:12px}.recurring-settings-card>label{font-size:12px}.recurring-settings-card .date-surface{flex-basis:68%}.recurring-weekdays button{font-size:10px}}

/* Bills share the recurring layout; payment is a separate confirmed action. */
.bill-card{display:block;padding:0;overflow:hidden}.bill-card-link{display:flex;align-items:flex-start;gap:13px;padding:23px}.bill-card .recurring-card-copy small{display:flex;align-items:center;flex-wrap:wrap;gap:9px}.bill-status{font-size:10px;padding:4px 7px;border-radius:7px;background:#edf1e5;color:#6f805d;line-height:1.3}.bill-status-overdue{background:#f7eae2;color:#9c613e}.bill-status-due-today{background:#f3eed8;color:#8b793f}.bill-status-paid{background:#e7efdc;color:#577b40}.bill-pay-button{display:block;margin:0 23px 17px auto;padding:8px 14px;min-height:40px;border:1px solid #dce7cf;border-radius:11px;color:var(--green);background:#edf3e3;font-size:12px;font-weight:600}.bill-pay-button:hover{background:#e0ebcf}.bill-no-repeat{width:100%;margin-bottom:17px;border-radius:14px;min-height:46px;font-size:13px}
@media(max-width:600px){.bill-card{padding:0}.bill-card-link{padding:20px 17px;gap:11px}.bill-pay-button{margin-right:17px;min-height:44px;font-size:12px}.bill-status{font-size:9px}.bill-card .recurring-card-copy small{gap:7px}}
@media(max-width:360px){.bill-card-link{flex-wrap:wrap;padding:17px}.bill-card .recurring-card-amount{margin-left:48px;margin-top:-2px}}

/* Events group existing expenses without creating a second financial entry. */
.events-page,.event-editor,.event-wallets-page,.event-detail,.event-assign-page{max-width:680px;margin:auto}.events-page>.wallet-switch{margin:0 0 19px;max-width:240px}.events-list{display:grid;gap:13px}.event-card{display:flex;align-items:flex-start;gap:14px;padding:22px;background:#fff;border:1px solid var(--line);border-radius:21px}.event-symbol{width:44px;height:44px;display:grid;place-items:center;flex:none;border-radius:15px;background:#eaf0df;color:#58764a}.event-symbol svg{width:25px;height:25px}.event-card-copy{display:grid;gap:7px;flex:1;min-width:0}.event-card-copy>strong{font-size:15px;overflow-wrap:anywhere}.event-card-copy>small{color:#80916e;font-size:11px}.event-card-copy>span{display:flex;align-items:center;flex-wrap:wrap;gap:7px;font-size:12px;color:#78896a;margin-top:4px}.event-card-value{font-size:14px;white-space:nowrap;font-variant-numeric:tabular-nums;line-height:1.4}.event-ended{background:#eef0e8;color:#86907b;border-radius:6px;padding:3px 6px;font-size:9px}.events-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;min-height:48dvh}.events-empty>span{display:grid;place-items:center;width:82px;height:82px;border-radius:25px;background:#eaf0dc;color:#809c65}.events-empty svg{width:37px;height:37px}.events-empty h2{font-size:18px;font-weight:550;margin:0}.events-empty .primary{margin-top:5px;min-height:44px;font-size:12px}.event-editor{min-height:calc(100dvh - 230px);display:flex;flex-direction:column;gap:18px}.event-editor .category-save-bar .primary{width:100%}.event-ending-field{display:flex;align-items:center;gap:16px;min-height:95px;border-top:1px solid #e8ede0;padding:18px 0}.event-ending-field>span:last-child{display:grid;gap:9px;min-width:0;flex:1;font-size:12px;color:#7a8a6b}.event-field-symbol{display:grid;place-items:center;flex:none;width:38px;color:#668354}.event-field-symbol svg{width:24px;height:24px}.event-wallet-field{width:100%;display:flex;align-items:center;gap:16px;min-height:94px;padding:18px 0;border-top:1px solid #e8ede0;background:transparent;color:var(--ink);text-align:left}.event-wallet-field>span:nth-child(2){display:grid;gap:8px;flex:1;min-width:0}.event-wallet-field small{font-size:12px;font-weight:400;color:#7a8a6b}.event-wallet-field strong{font-size:16px;font-weight:550;overflow-wrap:anywhere}.event-editor #event-error{padding:14px 7px 0}.event-wallet-options{border:1px solid var(--line);border-radius:20px;overflow:hidden;background:#fff}.event-wallet-option{display:flex;align-items:center;gap:13px;width:100%;min-height:85px;padding:18px 20px;background:transparent;color:var(--ink);text-align:left}.event-wallet-option+.event-wallet-option{border-top:1px solid #eaf0e2}.event-wallet-option>span:nth-child(2){display:grid;gap:7px;flex:1;min-width:0}.event-wallet-option strong{font-size:15px;font-weight:550;overflow-wrap:anywhere}.event-wallet-option small{font-size:12px;color:#788b68;font-variant-numeric:tabular-nums}.event-wallet-option[aria-pressed=true]{background:#edf3e4}.event-wallet-option[aria-pressed=true] .choice-check{background:#214d3b;border-color:#214d3b;position:relative}.event-wallet-option[aria-pressed=true] .choice-check:after{content:'';position:absolute;left:3px;top:2px;width:4px;height:6px;transform:rotate(45deg);border:solid #fff;border-width:0 1.5px 1.5px 0}.event-wallet-group{margin-top:25px}.event-wallet-group h2{font-size:11px;text-transform:uppercase;letter-spacing:.6px;font-weight:550;color:#89967c;margin:0 0 10px 12px}.event-total-panel{display:flex;gap:17px;align-items:center;padding:26px;background:#eaf0df;border:1px solid #dbe5cd;border-radius:22px}.event-total-panel .event-symbol{background:#dce8c5;width:58px;height:58px;border-radius:18px}.event-total-panel>div{display:grid;gap:9px;min-width:0}.event-total-panel small{font-size:12px;color:#7c8e6a}.event-total-panel strong{font-size:30px;letter-spacing:-.8px;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}.event-total-panel>div>span{font-size:11px;color:#788a69}.event-detail-actions{display:flex;gap:12px;margin:21px 0}.event-detail-actions>*{flex:1;text-align:center;font-size:13px}.event-record-panel{padding:6px 20px}.event-no-records{text-align:center;padding:40px 16px;color:#819372;font-size:13px}.event-delete{display:block;margin:20px auto 0;min-height:44px;font-size:12px}.event-pagination{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:16px 0 8px}.event-pagination button{font-size:12px;min-height:44px}.event-pagination>span{font-size:11px;color:#88967b}.event-pagination button:disabled{opacity:.35;cursor:default}.event-assignment-list{border:1px solid var(--line);border-radius:20px;background:#fff;overflow:hidden}.event-assign-name{font-size:13px;color:#7d906b;margin-bottom:14px}.event-assignment-row{display:flex;align-items:center;gap:12px;padding:17px 20px;min-height:83px;cursor:pointer}.event-assignment-row+.event-assignment-row{border-top:1px solid #eaf0e2}.event-assignment-row>input{width:20px;height:20px;min-height:20px;margin:0;flex:none;accent-color:var(--green)}.event-assignment-row>span{display:grid;gap:7px;flex:1;min-width:0}.event-assignment-row strong{font-size:13px;overflow-wrap:anywhere}.event-assignment-row small{font-size:10px;line-height:1.4;color:#859576;overflow-wrap:anywhere}.event-assignment-row>strong{white-space:nowrap;font-variant-numeric:tabular-nums}.event-assignment-save{width:100%;margin-top:23px;min-height:49px;border-radius:15px}.page-heading:has(+.event-detail) h1{overflow-wrap:anywhere}.event-editor .date-surface>input[type=date]{position:absolute;inset:0;z-index:1;display:block;width:100%;max-width:100%;height:100%;min-height:0;margin:0;padding:0;border:0;opacity:0;cursor:pointer;font-size:16px}.event-editor .date-surface>input[type=date]::-webkit-calendar-picker-indicator{position:absolute;inset:0;width:auto;height:auto;margin:0;padding:0;opacity:0;cursor:pointer}.event-editor .date-surface>input[type=date]:focus-visible{opacity:1;background:#fafbf8;padding:0 8px;outline:0}
@media(max-width:600px){.event-card{padding:20px 17px;gap:11px}.event-card-copy>strong{font-size:14px}.event-card-value{font-size:12px}.event-card-copy>span{font-size:11px}.event-symbol{width:38px;height:38px;border-radius:13px}.event-symbol svg{width:22px;height:22px}.event-editor{min-height:calc(100dvh - 290px)}.event-editor .category-create-card{padding:0 19px}.event-ending-field,.event-wallet-field{gap:13px;min-height:91px}.event-wallet-field strong{font-size:15px}.event-wallet-option{padding:17px;min-height:81px}.event-wallet-option strong{font-size:14px}.event-wallet-group{margin-top:22px}.event-total-panel{padding:23px 19px;gap:13px}.event-total-panel strong{font-size:27px}.event-total-panel .event-symbol{width:48px;height:48px;border-radius:16px}.event-detail-actions{gap:10px;margin:18px 0}.event-detail-actions>*{font-size:12px;padding:12px}.event-record-panel{padding:3px 15px}.event-assignment-row{padding:15px;gap:10px}.event-assignment-row strong{font-size:12px}.event-assignment-row>input{width:19px;height:19px;min-height:19px}.event-card-copy>small{font-size:10px}}
@media(max-width:360px){.event-card{flex-wrap:wrap}.event-card-value{margin-left:49px}.event-assignment-row{flex-wrap:wrap}.event-assignment-row>strong{margin-left:29px}.event-assignment-row>span{flex-basis:70%}.event-total-panel strong{font-size:25px}}

/* Travel Mode uses a staged setting and the shared event artwork. */
.travel-mode-page,.travel-events-page{max-width:680px;margin:auto}.travel-toggle-card{padding:7px 22px;background:#fff;border:1px solid var(--line);border-radius:20px}.travel-toggle{border:0;padding:0;min-height:57px}.travel-toggle>span{font-size:15px}.travel-mode-note{color:var(--muted);font-size:12px;line-height:1.6;margin:12px 15px 30px;max-width:480px}.travel-mode-page h2,.travel-events-page h2{margin:0 0 11px 14px;color:#7a8b6c;font-size:11px;font-weight:550;letter-spacing:.6px;text-transform:uppercase}.travel-event-choice,.travel-event-option{display:flex;align-items:center;gap:14px;width:100%;min-height:85px;padding:18px 22px;text-align:left;color:var(--ink);background:#fff}.travel-event-choice{border:1px solid var(--line);border-radius:20px}.travel-event-choice>span:nth-child(2),.travel-event-option>span:nth-child(2){display:grid;gap:7px;flex:1;min-width:0}.travel-event-choice strong,.travel-event-option strong{font-size:15px;font-weight:550;overflow-wrap:anywhere}.travel-event-choice small,.travel-event-option small{font-size:11px;color:#7c8d6f;overflow-wrap:anywhere}.travel-event-options{border:1px solid var(--line);border-radius:20px;overflow:hidden}.travel-event-option+.travel-event-option{border-top:1px solid #eaf0e2}.travel-event-option[aria-pressed=true]{background:#edf3e4}.travel-event-option[aria-pressed=true] .choice-check{background:var(--green);border-color:var(--green);position:relative}.travel-event-option[aria-pressed=true] .choice-check:after{content:'';position:absolute;left:3px;top:2px;width:4px;height:6px;transform:rotate(45deg);border:solid #fff;border-width:0 1.5px 1.5px 0}.travel-event-choice:hover,.travel-event-option:hover{background:#f0f5e8}.travel-event-choice:focus-visible,.travel-event-option:focus-visible{outline-offset:-4px;border-radius:16px}.travel-add-event{display:block;margin-top:24px;min-height:52px;border-radius:18px;text-align:center;padding:17px}.travel-empty-events{padding:30px 20px;text-align:center;color:var(--muted);font-size:14px}.travel-on-badge{margin-left:auto;background:#eaf0dc;color:var(--green);padding:4px 8px;border-radius:7px;font-size:10px;white-space:nowrap}.travel-on-badge+.account-row-indicator{margin-left:0}.travel-mode-page .form-error{margin:18px 14px}.page-heading:has(+.travel-mode-page) .heading-actions{gap:15px}.page-heading:has(+.travel-mode-page) .primary{min-height:44px;padding:12px 18px}
@media(max-width:600px){.travel-toggle-card{padding:5px 17px;border-radius:18px}.travel-toggle>span{font-size:14px}.travel-mode-note{font-size:11px;margin:11px 13px 28px}.travel-event-choice,.travel-event-option{padding:17px;gap:12px;min-height:80px}.travel-event-choice strong,.travel-event-option strong{font-size:14px}.page-heading:has(+.travel-mode-page) h1,.page-heading:has(+.travel-events-page) h1{font-size:25px}.page-heading:has(+.travel-mode-page){flex-wrap:wrap;gap:15px}.page-heading:has(+.travel-mode-page) .heading-actions{margin-left:auto}}

/* Mobile Account pages share one title bar; existing actions retain their handlers. */
.mobile-back-label{display:none}
@media(max-width:600px){
 body.account-mobile-view{--account-gutter:20px}
 body.account-mobile-view .app-header{display:none}
 body.account-mobile-view main{padding-top:0}
 body.account-mobile-view #page-content.view-enter{animation:none}
 body.account-mobile-view .page-heading.account-page-heading{display:grid;grid-template-columns:80px minmax(0,1fr) 80px;align-items:center;gap:0 6px;position:sticky;top:var(--ribbon);z-index:15;min-height:72px;margin:0 calc(-1 * var(--account-gutter)) 20px;padding:12px var(--account-gutter);background:#f5f6f1f5;backdrop-filter:blur(12px);border-bottom:1px solid var(--line)}
 body.account-mobile-view .account-page-heading .heading-title,body.account-mobile-view .account-page-heading .heading-actions{display:contents}
 body.account-mobile-view .account-page-heading h1{grid-column:2;grid-row:1;margin:0;font-size:16px;line-height:1.3;letter-spacing:0;text-align:center;overflow-wrap:anywhere;font-weight:650}
 body.account-mobile-view .account-page-heading .heading-actions>*{grid-column:3;grid-row:1;justify-self:end;min-height:44px;max-width:80px;padding:10px 12px;font-size:12px;line-height:1.3;text-align:center;text-decoration:none;border-radius:15px}
 body.account-mobile-view .account-page-heading .heading-actions>.mobile-page-back{grid-column:1;justify-self:start;padding:10px 7px 10px 1px;max-width:80px;background:transparent;border:0;color:var(--green)}
 body.account-mobile-view .desktop-back-label{display:none}
 body.account-mobile-view .mobile-back-label{display:flex;align-items:center;gap:3px;white-space:nowrap;font-size:13px}
 body.account-mobile-view .mobile-back-label svg{width:19px;height:19px;flex:none}
 body.account-mobile-view .account-page-heading .wallet-switch{grid-column:1 / -1;grid-row:2;justify-self:start;margin-top:9px;max-width:100%;min-height:36px}
 body.account-mobile-view #account-dialog{inset:0;width:100%;max-width:none;height:100dvh;max-height:100dvh;margin:0;border:0;border-radius:0;background:var(--paper)}
 body.account-mobile-view #account-dialog>.sheet-inner{height:100%;max-height:100dvh;overflow:auto;padding:0 var(--account-gutter) max(24px,env(safe-area-inset-bottom,0px));border-radius:0}
 body.account-mobile-view #account-dialog .sheet-header{display:grid;grid-template-columns:80px minmax(0,1fr) 80px;align-items:center;gap:6px;position:sticky;top:0;min-height:72px;margin:0 calc(-1 * var(--account-gutter)) 22px;padding:calc(12px + env(safe-area-inset-top,0px)) var(--account-gutter) 12px;background:var(--paper);border-bottom:1px solid var(--line);z-index:1}
 body.account-mobile-view #account-dialog .sheet-header h2{grid-column:2;grid-row:1;font-size:16px;line-height:1.3;text-align:center;letter-spacing:0;margin:0}
 body.account-mobile-view #account-dialog .sheet-header [data-close]{grid-column:1;grid-row:1;justify-self:start;min-height:44px;padding:10px 1px;text-decoration:none}
 body.account-mobile-view #account-dialog .account-coming-soon{text-align:center;padding-top:35px}
 body.account-mobile-view #account-dialog .account-edit-form{padding:0}
}
@media(max-width:360px){body.account-mobile-view{--account-gutter:15px}}

/* Keep the centered portrait; the photo control gets a clearer camera badge. */
.account-photo-edit{right:-5px;bottom:-1px;width:30px;height:30px;border:1px solid #dce6d2;border-radius:10px;background:#fff;color:var(--green);box-shadow:0 2px 6px #26392f18}
.account-photo-edit svg{width:16px;height:16px}
.account-photo:hover .account-photo-edit{background:#eef4e5}
.account-photo:focus-visible .account-photo-edit{border-color:var(--green)}
@media(max-width:600px){
 body.account-mobile-view .page-heading.account-page-heading:has(+.account-layout){min-height:60px;margin-bottom:8px;padding-top:8px;padding-bottom:8px;border-bottom:0}
 .account-layout{gap:14px}.account-layout .account-menu-stack{gap:14px}
}

/* Transactions: wallet context, horizontal periods and an always reachable add action. */
.transactions-page{max-width:940px;margin:auto;padding-bottom:80px}.transactions-header{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,220px) minmax(0,1fr);align-items:center;gap:16px;padding:0 0 22px}.transactions-header h1{font-size:28px;letter-spacing:-.8px;line-height:1.2;margin:0}.transaction-wallet-switch{display:flex;align-items:center;justify-content:center;gap:10px;min-height:47px;max-width:100%;padding:11px 16px;border:1px solid #dce6d0;border-radius:30px;background:#eaf0de;color:var(--green);font-weight:600}.transaction-wallet-switch svg{width:22px;height:22px;flex:none}.transaction-wallet-switch>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.transaction-header-actions{display:flex;justify-self:end;gap:8px}.transaction-header-actions button{display:grid;place-items:center;position:relative;min-width:44px;min-height:44px;border:1px solid var(--line);border-radius:50%;background:#fff}.transaction-header-actions svg{width:22px;height:22px}.transaction-search-button.has-filters:after{content:'';position:absolute;right:5px;top:4px;width:6px;height:6px;border-radius:50%;background:var(--green);border:1px solid white}.transaction-balance{display:grid;justify-items:center;gap:5px;margin-bottom:24px}.transaction-balance>span{font-size:12px;color:var(--muted)}.transaction-balance>strong{font-size:26px;line-height:1.3;font-weight:650;font-variant-numeric:tabular-nums;overflow-wrap:anywhere;max-width:100%;text-align:center}.transaction-periods{display:flex;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:none;border-bottom:1px solid var(--line);margin-bottom:22px;scroll-padding:15px}.transaction-periods::-webkit-scrollbar{display:none}.transaction-periods button{flex:none;min-width:132px;min-height:51px;border-radius:0;padding:14px 22px;white-space:nowrap;font-size:12px;text-transform:uppercase;letter-spacing:.4px;background:transparent;color:#84907c;border-bottom:2px solid transparent}.transaction-periods button[aria-selected=true]{color:var(--green);border-bottom-color:var(--green);font-weight:650}.transaction-periods button:focus-visible{outline-offset:-4px}.transaction-tools{margin:0 0 18px}.transaction-future-note{font-size:12px;color:var(--muted);margin:0 0 15px;line-height:1.6}.transactions-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:37dvh;text-align:center;padding:28px 15px}.transactions-empty>span{display:grid;place-items:center;width:80px;height:80px;border-radius:26px;background:#e9efdb;color:#7b9866;margin-bottom:19px;transform:rotate(-7deg)}.transactions-empty svg{width:37px;height:37px;transform:rotate(7deg)}.transactions-empty h2{font-size:16px;font-weight:550;margin:0 0 7px}.transactions-empty p{font-size:12px;line-height:1.5;color:var(--muted);margin:0;max-width:240px}.transaction-add{position:fixed;right:max(30px,env(safe-area-inset-right,0px));bottom:27px;z-index:16;display:flex;align-items:center;justify-content:center;gap:8px;padding:14px 20px;min-height:52px;border-radius:30px;box-shadow:0 6px 18px #214d3b26}.transaction-add svg{width:21px;height:21px}.transaction-new-wallet{display:flex;align-items:center;gap:14px;text-align:left;width:100%;min-height:57px;border-radius:18px;margin-top:28px;padding:16px 20px}.transaction-new-wallet>span{font-size:23px;line-height:1}
.sheet.transaction-wallet-picker{inset:0;margin:0 auto;width:100%;max-width:680px;height:100dvh;max-height:100dvh;border-radius:0;background:var(--paper)}.transaction-wallet-picker>.sheet-inner{max-height:100dvh;height:100%;border-radius:0;overflow:auto;padding:0 24px max(30px,env(safe-area-inset-bottom,0px))}.transaction-wallet-picker .sheet-header{position:sticky;top:0;z-index:1;display:grid;grid-template-columns:70px minmax(0,1fr) 70px;align-items:center;gap:5px;min-height:84px;padding:16px 0;margin:0 0 20px;background:var(--paper)}.transaction-wallet-picker .sheet-header h2{grid-column:2;grid-row:1;font-size:17px;letter-spacing:0;text-align:center;margin:0}.transaction-wallet-picker .sheet-header [data-close]{grid-column:1;grid-row:1;justify-self:start;min-height:44px}.transaction-wallet-picker .sheet-header [data-transaction-wallet-edit]{grid-column:3;grid-row:1;justify-self:end;min-height:44px}.transaction-wallet-picker #wallet-options{border:0;background:transparent;overflow:visible}.transaction-wallet-picker #wallet-options [role=option]{display:flex;align-items:center;gap:13px;width:100%;min-height:84px;padding:17px 20px;text-align:left;border:1px solid var(--line);border-radius:20px;background:#fff;color:var(--ink)}.transaction-wallet-picker #wallet-options [role=option][aria-selected=true]{background:#edf3e5;border-color:#d9e4c9}.transaction-wallet-copy{flex:1;min-width:0;display:grid;gap:6px}.transaction-wallet-copy strong{font-size:15px;font-weight:550;overflow-wrap:anywhere}.transaction-wallet-copy small{font-size:12px;color:#7c8d6d;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.transaction-wallet-group{margin-top:25px;display:grid;gap:8px}.transaction-wallet-group>h3{margin:0 0 3px 13px;font-size:11px;letter-spacing:.5px;text-transform:uppercase;font-weight:550;color:#87947a}.transaction-wallet-picker #wallet-options [role=option]:focus-visible{outline-offset:-4px}.transaction-wallet-picker #wallet-options .choice-check{flex:none}
@media(max-width:600px){
 body.transactions-view .app-header{display:none}body.transactions-view main{padding-top:15px}body.transactions-view #page-content.view-enter{animation:none}
 .transactions-header{grid-template-columns:38px minmax(0,1fr) 88px;gap:10px;padding:0 0 17px;position:relative}.transactions-header h1{font-size:0;letter-spacing:0}.transactions-header h1:before{content:'↔';display:grid;place-items:center;font-size:24px;width:37px;height:37px;color:var(--green);background:#eaf0df;border-radius:13px}.transaction-wallet-switch{justify-self:center;max-width:185px;min-height:44px;padding:10px 12px;font-size:13px;gap:8px}.transaction-wallet-switch svg{width:20px;height:20px}.transaction-header-actions{gap:4px}.transaction-header-actions button{min-width:42px;min-height:42px}.transaction-header-actions svg{width:20px;height:20px}.transaction-balance{gap:4px;margin-bottom:14px}.transaction-balance>strong{font-size:22px}.transaction-balance>span{font-size:11px}.transaction-periods{margin:0 -20px 17px}.transaction-periods button{min-width:120px;min-height:50px;padding:14px 18px;font-size:11px}.transaction-tools{padding:14px}.transaction-tools .record-filters{gap:11px}.transaction-tools .segmented{width:100%}.transaction-tools .segmented button{flex:1;min-height:40px}.transactions-page>.record-count{font-size:11px}.transactions-page .record-count{margin-bottom:12px}.transactions-page .records-panel{padding:5px 16px}.transaction-future-note{font-size:11px;margin-bottom:14px}.transactions-empty{min-height:41dvh}.transaction-add{right:max(20px,env(safe-area-inset-right,0px));bottom:calc(85px + env(safe-area-inset-bottom,0px));font-size:13px;min-height:49px;padding:13px 18px}.transactions-page{padding-bottom:75px}.transaction-wallet-picker>.sheet-inner{padding-left:20px;padding-right:20px}.transaction-wallet-picker .sheet-header{min-height:77px;padding-top:calc(12px + env(safe-area-inset-top,0px));margin-bottom:16px}.transaction-wallet-picker #wallet-options [role=option]{min-height:79px;padding:16px}.transaction-wallet-copy strong{font-size:14px}
}
@media(max-width:360px){.transaction-periods{margin-left:-15px;margin-right:-15px}.transaction-wallet-switch{font-size:12px;gap:6px;padding:9px 10px}.transactions-header{grid-template-columns:34px minmax(0,1fr) 84px;gap:6px}.transaction-header-actions{gap:2px}.transaction-add{right:15px}.transaction-wallet-picker>.sheet-inner{padding-left:15px;padding-right:15px}}
.transaction-mark{display:none}
@media(max-width:600px){
 .transactions-header{grid-template-columns:88px minmax(0,1fr) 88px}
 .transactions-header h1{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
 .transactions-header h1:before{content:none}
 .transaction-mark{display:grid;place-items:center;width:37px;height:37px;border-radius:13px;color:var(--green);background:#eaf0df}.transaction-mark svg{width:22px;height:22px}
}
@media(max-width:360px){.transactions-header{grid-template-columns:84px minmax(0,1fr) 84px}}
.planned-label{display:inline-block;font-size:9px;line-height:1.4;color:#7c896d;background:#eef2e6;padding:2px 5px;border-radius:5px;margin-left:5px}

/* Navigation stays at four destinations; Overview shares the floating entry action. */
body.overview-view #page-content{padding-bottom:60px}

/* Reserve the mobile action/navigation space once, instead of stacking page padding. */
@media(max-width:600px){
 body.overview-view,body.transactions-view{--mobile-action-height:44px;--mobile-action-gap:6px;--mobile-nav-height:69px}
 :is(body.overview-view,body.transactions-view) .app-shell{padding-bottom:calc(var(--mobile-nav-height) + env(safe-area-inset-bottom,0px) + var(--mobile-action-height) + 2 * var(--mobile-action-gap))}
 :is(body.overview-view,body.transactions-view) main,:is(body.overview-view,body.transactions-view) #page-content,.transactions-page{padding-bottom:0}
 :is(body.overview-view,body.transactions-view) #floating-add{height:var(--mobile-action-height);min-height:var(--mobile-action-height);padding-top:10px;padding-bottom:10px;bottom:calc(var(--mobile-nav-height) + env(safe-area-inset-bottom,0px) + var(--mobile-action-gap))}
}

/* Overview opens directly on the balance card, with its wallet control inside. */
.balance-wallet-row{display:flex;align-items:center;justify-content:space-between;gap:12px;position:relative;margin-bottom:15px}
.balance-wallet-row .wallet-switch{margin:0;max-width:min(75%,280px);min-height:36px;padding:7px 10px;background:#ffffff12;border-color:#ffffff28;color:#fff;font-size:12px}
.balance-wallet-row .wallet-switch svg{width:17px;height:17px;flex:none}
.balance-wallet-row .wallet-switch .field-chevron{border-color:currentColor;flex:none}
@media(max-width:600px){body.overview-view main{padding-top:16px}.balance-wallet-row{margin-bottom:13px}.balance-wallet-row .wallet-switch{max-width:78%;min-height:36px;font-size:12px}}

/* Transactions keeps its wallet control without decorative or action buttons. */
.transaction-spending-summary{font-size:11px;color:var(--muted);display:flex;align-items:center;gap:12px;margin:18px 3px 12px}
.transaction-spending-summary strong{color:var(--ink);font-weight:600}
@media(max-width:600px){.transactions-header{grid-template-columns:minmax(0,1fr)}.transactions-header .transaction-title{position:absolute}.transactions-header .transaction-wallet-switch{grid-column:1;justify-self:center;max-width:min(100%,240px)}.transaction-spending-summary{font-size:10px;margin:14px 1px 12px}}

/* Wallet budgets use the same saved period in Account and Overview. */
.budget-period-label{display:block;font-size:10px;line-height:1.5;color:var(--muted);margin-top:5px}
.budget-page{max-width:720px;margin:auto;display:grid;gap:20px}
.budget-saved .panel-title{align-items:center;gap:12px;margin-bottom:0}
.budget-saved .panel-title>span{font-size:12px;color:var(--muted);overflow-wrap:anywhere}
.budget-saved .budget-numbers{margin-top:20px}
.budget-period-form{display:grid;gap:20px}
.budget-period-form>label,.budget-date-fields label{display:grid;gap:8px;font-size:12px;font-weight:550;min-width:0}
.budget-period-form input,.budget-period-form .select-trigger{margin-top:0}
.budget-amount-field{display:flex;align-items:center;border:1px solid var(--line);border-radius:12px;background:#f9faf5;min-width:0}
.budget-amount-field>span{padding-left:14px;color:var(--muted);font-size:15px}
.budget-amount-field input{width:100%;min-width:0;background:transparent;border:0;margin:0;font-size:20px;padding:12px}
.budget-date-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}
.budget-range-preview{font-size:12px;color:var(--green)}
.budget-period-help{font-size:11px;color:var(--muted);line-height:1.6;margin-top:-10px}
@media(max-width:600px){.budget-page{gap:15px}.budget-date-fields{grid-template-columns:minmax(0,1fr)}.budget-period-form{gap:17px}.budget-saved .budget-numbers strong{font-size:27px}.budget-saved .budget-numbers{flex-wrap:wrap}}

.budget-card .budget-numbers,.budget-saved .budget-numbers{flex-wrap:wrap;min-width:0}.budget-period-label,.budget-range-preview{overflow-wrap:anywhere}

/* Account owns exports; Reports retains compact wallet/month controls only. */
.report-controls{align-items:center;gap:12px}.report-controls .wallet-switch{margin:0}.report-controls .heading-actions{margin-left:auto}
.export-dialog{max-width:520px}.export-form label{display:grid;gap:8px;min-width:0}.export-form .select-trigger{width:100%;min-width:0}.export-dates{display:grid;grid-template-columns:1fr 1fr;gap:12px}.export-form .date-surface{width:100%;min-width:0;font-size:13px}.export-note{font-size:12px;line-height:1.6;color:var(--muted);margin:0}.export-form .primary{min-height:46px}
@media(max-width:600px){.report-controls{flex-wrap:nowrap}.report-controls .heading-title{min-width:0}.report-controls .wallet-switch{max-width:100%}.report-controls .heading-actions{flex-shrink:0}.export-dialog .sheet-header{display:grid;grid-template-columns:60px minmax(0,1fr) 60px;align-items:center;gap:6px}.export-dialog .sheet-header h2{grid-column:2;grid-row:1;text-align:center;font-size:16px}.export-dialog .sheet-header [data-close]{grid-column:1;grid-row:1;justify-self:start;min-height:44px}.export-dates{gap:10px}.export-form .date-surface{font-size:12px;padding:0 9px}}

/* Overview keeps the saved budget period beside its name. */
.budget-card .budget-title-row{display:flex;align-items:baseline;gap:5px;min-width:0;white-space:nowrap}.budget-card .budget-period-label{display:inline;margin:0;overflow-wrap:normal;white-space:nowrap}
@media(max-width:360px){.budget-card .budget-caption{font-size:10px}.budget-card .budget-period-label{font-size:9px}}

/* Reports balances its wallet and month selectors with matching dimensions. */
.report-controls{display:grid;grid-template-columns:repeat(2,minmax(0,175px));justify-content:space-between;align-items:center;gap:12px}.report-controls .heading-title,.report-controls .heading-actions{min-width:0;margin:0}.report-controls .heading-actions,.report-controls .month-control,.report-controls .month-control>label{display:block;width:100%}.report-controls .wallet-switch,.report-controls .month-control .date-surface{width:100%;max-width:none;height:44px;min-height:44px;margin:0;padding:8px 10px;border-radius:11px;background:#fff;font-size:12px;font-weight:600;gap:6px}.report-controls .wallet-switch svg,.report-controls .date-surface>svg{width:16px;height:16px}
@media(max-width:600px){.report-controls{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:360px){.report-controls .wallet-switch,.report-controls .month-control .date-surface{font-size:11px;padding:8px;gap:5px}.report-controls .wallet-switch svg,.report-controls .date-surface>svg{width:14px;height:14px}}

/* ---------------------------------------------------------------------------
   2026-11 refresh. One identity idea: the ledger page. The balance card carries
   ruled lines and a lime margin rule; everything else stays quiet, readable and
   aligned to right-hand figure columns. Later rules here intentionally win over
   the older layered rules above.
--------------------------------------------------------------------------- */
:root{--paper:#f4f3ec;--ink:#1f2e26;--muted:#647166;--green:#1d4535;--green-deep:#163628;--lime:#d4ec9a;--line:#e2e0d5;--soft:#edf0e3;--tint:#e5ecd3;--income:#2d7a4c;--over:#ad4f2b;--font:system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,'Helvetica Neue',Arial,sans-serif}
body{background:var(--paper);color:var(--ink);font-size:15px}
:is(.balance-amount,.balance-stat strong,.current-wallet-balance strong,.budget-numbers,.budget-left,.record-value,.legend-row strong,.report-amount,.transaction-balance strong,.donut-label strong,.trend-value,.wallet-card strong,.wallet-total-card strong,.transaction-spending-summary){font-variant-numeric:tabular-nums}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline-color:#5f9a6d}

/* Demo ribbon and sidebar */
.demo-ribbon{background:#e9e8de;color:#56625a;font-size:11px}
.ribbon-note{font-size:11px}
.sidebar{background:#f9f8f3;border-right-color:var(--line)}
.brand{font-size:19px;letter-spacing:-.5px;gap:11px;color:var(--ink)}
.brand img{border-radius:10px}
.desktop-nav{gap:4px;margin-top:44px}
.desktop-nav a{min-height:46px;border-radius:12px;color:#5d6a60;font-weight:560;font-size:14px}
.desktop-nav a:hover{background:#efefe6;color:var(--green)}
.desktop-nav a.active{background:var(--tint);color:var(--green-deep);font-weight:650}
.scan-side.primary{margin-top:26px;background:#fff;color:var(--green);border:1px solid #d7dcc8;font-size:13px}
.scan-side.primary:hover{background:var(--soft)}
.sidebar-profile{background:#efefe6;border-radius:14px}
.sidebar-profile:hover{background:#e7e8dc}

/* Buttons, links and shared surfaces */
.primary{background:var(--green)}
.primary:hover{background:var(--green-deep)}
.secondary{border-color:#d9dccd}
.secondary:hover{background:#f2f2ea}
.panel{border-color:var(--line);border-radius:20px}
.panel-title h2{font-size:17px;letter-spacing:-.3px;font-weight:650}
.panel-title a,.text-button{color:var(--green);font-size:13px;font-weight:600;text-decoration-color:#a9b998}
.empty-state{font-size:14px}
.page-heading h1{letter-spacing:-.9px;font-weight:680}

/* Balance card: plain forest with one soft light in the top corner, no lines */
.balance-card{background-color:var(--green);background-image:radial-gradient(90% 120% at 100% 0%,#2b5b46 0%,#22503d 38%,transparent 72%);border-radius:24px}
.balance-card:before,.balance-card:after{content:none}
.balance-top>span:first-child{font-size:13px;color:#cfdcc9}
.balance-amount{font-weight:620;letter-spacing:-1.8px}
.balance-amount small{color:var(--lime);font-weight:560;font-size:19px;letter-spacing:0}
.current-wallet-balance{font-size:13px;color:#d3e0cc}
.current-wallet-balance strong{font-size:14px;font-weight:600;color:#fff}
.balance-bottom{border-top-color:#d4ec9a2e}
.balance-stat span{font-size:12px;color:#c4d3c0}
.balance-stat strong{font-weight:620}
.balance-stat:last-child i{background:#f4f3ec}
.balance-wallet-row .wallet-switch{background:#ffffff14;border-color:#ffffff30;font-size:13px}

/* Budget card: spent figure, plain range, readable footer */
.budget-caption{font-size:13px;color:var(--muted);font-weight:600}
.budget-card .budget-period-label{font-size:12px;color:var(--muted)}
.budget-card .budget-title-row{gap:8px}
.budget-numbers strong{font-weight:680;letter-spacing:-1px}
.budget-numbers>span{font-size:13px}
.budget-track,.progress-track{height:10px;background:#ecebe2}
.budget-track>span,.progress-track>span{background:#a9cf63}
.budget-track.over>span{background:#d98b68}
.budget-left{font-size:12px}

/* Transaction rows: name and meta on the left, a right-hand figure column */
.category-icon{border-radius:12px}
.record-row{border-top-color:#eceae1}
.record-row:hover .record-name{color:var(--green)}
.record-name{font-size:15px;font-weight:620}
.record-meta{font-size:12px;color:#6f7a71;margin-top:2px}
.record-meta svg{width:12px;height:12px}
.record-value strong{font-size:15px;font-weight:650;color:var(--ink)}
.record-value.income strong{color:var(--income)}
.record-value small{font-size:12px;color:#717c73}
.date-heading{font-size:12px;letter-spacing:0;font-weight:650;color:#6c776d;border-bottom-color:#eceae1}
.legend-row{font-size:13px}
.legend-row strong{font-size:13px}
.donut-label small{font-size:12px;color:var(--muted)}

/* Overview layout: two independent columns, no stretched gaps */
.overview-grid{grid-template-columns:minmax(0,1.45fr) minmax(0,1fr);grid-template-rows:auto 1fr;align-items:start}
.overview-grid>.balance-card{grid-column:1;grid-row:1;align-self:stretch}
.overview-grid>.budget-card{grid-column:2;grid-row:1;align-self:stretch}
.overview-grid>.overview-spending{grid-column:1;grid-row:2;align-self:stretch}
.overview-grid>.recent-panel{grid-column:2;grid-row:2;align-self:stretch}
.overview-grid>.quick-actions{display:none}
.budget-card{justify-content:flex-start}
.budget-card .budget-numbers{margin-top:26px}
.budget-card .budget-numbers strong{font-size:34px}
.budget-daily{margin:8px 0 0;font-size:14px;color:var(--muted)}
.budget-daily strong{color:var(--ink);font-weight:650;font-variant-numeric:tabular-nums}
.budget-card .budget-track{margin-top:auto}
/* Desktop spending reads across: chart beside its legend */
.overview-spending{display:grid;grid-template-columns:auto minmax(0,1fr);grid-template-areas:"title title" "chart legend" "chart link";column-gap:36px;align-items:center}
.overview-spending>.panel-title{grid-area:title}
.overview-spending>.spending-graphic{grid-area:chart;margin:4px 0}
.overview-spending>.category-legend{grid-area:legend;align-self:end}
.overview-spending>.text-button{grid-area:link;align-self:start;justify-self:start;margin-top:8px}
@media(max-width:1100px){
 .overview-grid>.overview-spending{grid-column:1 / -1;grid-row:2}
 .overview-grid>.recent-panel{grid-column:1 / -1;grid-row:3}
 .brand{font-size:16px;gap:9px;white-space:nowrap}
}
@media(max-width:800px){.brand{font-size:15px;gap:8px}.brand img{width:28px;height:28px}}
@media(max-width:1100px){.overview-spending{column-gap:22px}.overview-spending .donut{width:132px;height:132px}.overview-spending .donut:before{inset:15px}.overview-spending .donut-label strong{font-size:16px}}
@media(max-width:800px){
 .overview-grid{grid-template-columns:minmax(0,1fr);grid-template-rows:none}
 .overview-grid>*{grid-column:1!important;grid-row:auto!important}
 .overview-grid>.balance-card{order:1}.overview-grid>.quick-actions{order:2}.overview-grid>.budget-card{order:3}.overview-grid>.recent-panel{order:4}
 .budget-card .budget-numbers{margin-top:10px}
 .budget-daily{font-size:13px;margin-top:4px}
 .budget-card .budget-track{margin-top:12px}
 .overview-grid>.overview-spending{display:none}
 .budget-card .budget-numbers strong{font-size:26px}
}

/* Transactions: title and wallet on one line, balance as the page figure */
.transaction-periods{border-bottom-color:var(--line)}
.transaction-periods button{min-width:0;text-transform:none;letter-spacing:0;font-size:14px;color:#6c776d;padding:14px 20px}
.transaction-periods button[aria-selected=true]{color:var(--green-deep);border-bottom-color:var(--green)}
.transaction-wallet-switch{background:#fff;border-color:#d7dcc8;font-size:14px}
.transaction-balance>span{font-size:13px}
.transaction-spending-summary{font-size:13px}
.transaction-future-note{font-size:13px}
@media(min-width:601px){
 .transactions-header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:0 0 14px}
 .transactions-header h1{font-size:32px;letter-spacing:-.9px;font-weight:680;line-height:1.2;position:static;width:auto;height:auto;margin:0;overflow:visible;clip:auto}
 .transactions-header h1:before{content:none}
 .transactions-header .transaction-title{position:static}
 .transactions-header .transaction-wallet-switch{min-height:44px;max-width:260px}
 .transaction-balance{justify-items:start;gap:2px;margin-bottom:22px}
 .transaction-balance>strong{font-size:30px;text-align:left;letter-spacing:-.6px}
}

/* Reports */
.report-stat{border-color:var(--line)}
.report-stat>span{font-size:13px;color:var(--muted);font-weight:600}
.report-stat.income{background:var(--tint);border-color:#d6e0c0}
.report-grid>.panel:first-child{display:flex;flex-direction:column}
.report-grid>.panel:first-child .trend-chart{flex:1;min-height:220px;height:auto}
.trend-bar{background:#c8dba3;border-radius:8px 8px 3px 3px;max-width:64px}
.trend-bar:hover{background:var(--green)}
.trend-value{font-size:11px;color:#5f6b61}
.trend-label{font-size:12px;color:var(--muted)}
.tiny-track{height:6px}

/* Account hub: tinted icon tiles give each row a clear anchor */
.account-menu{border-color:var(--line);border-radius:18px}
.account-menu-row{font-size:15px;min-height:58px}
.account-menu-row:hover{background:#f3f4ec}
.account-menu-row+.account-menu-row{border-top-color:#eceae1}
.account-menu-icon{width:34px;height:34px;border-radius:10px;background:var(--soft);color:var(--green)}
.account-menu-icon svg{width:19px;height:19px}
.account-profile-card{border-color:var(--line)}

/* Add/edit transaction: controls share one width */
.record-editor .type-switch,.record-editor .amount-input{max-width:none}
.type-switch{background:#efefe6}
.type-switch button{font-size:14px;color:#66726a}
.amount-input>span{color:#8d978a}
.amount-input input::placeholder{color:#c9cfbf}

/* Sheets */
.picker-type{font-size:13px;font-weight:600;color:var(--muted);margin:0 0 2px}
.scan-intro{font-size:18px;font-weight:650;letter-spacing:-.3px}
.scan-description{font-size:14px;color:var(--muted);max-width:40ch;margin-left:auto;margin-right:auto}
.scan-footnote{font-size:12px}

/* Phones: readable sizes first, then compact spacing */
@media(max-width:600px){
 .demo-ribbon,.ribbon-note{font-size:10px}
 .overview-grid>.quick-actions{display:flex}
 .balance-amount small{font-size:17px}
 .current-wallet-balance{font-size:12px}
 .current-wallet-balance strong{font-size:13px}
 .balance-stat span{font-size:12px}
 .budget-caption{font-size:12px}
 .budget-card .budget-period-label{font-size:11px}
 .budget-left{font-size:12px}
 .budget-track{height:8px}
 .record-name{font-size:14px}
 .record-meta{font-size:12px}
 .record-value strong{font-size:14px}
 .record-value small{font-size:11px}
 .date-heading{font-size:12px}
 .mobile-nav{background:#fbfaf6f2;border-top:1px solid var(--line);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}
 .mobile-nav a,.mobile-nav button{font-size:11px;color:#6d786f}
 .mobile-nav a.active{color:var(--green-deep)}
 .mobile-nav a svg{width:44px;height:28px;padding:3px 11px;border-radius:14px;transition:background .2s}
 .mobile-nav a.active svg{background:var(--tint)}
 .transaction-periods button{min-width:0;padding:14px 18px;font-size:14px}
 .transaction-wallet-switch{font-size:14px}
 .transaction-balance>span{font-size:12px}
 .transaction-spending-summary{font-size:12px}
 .report-stat>span{font-size:12px}
 .report-grid>.panel:first-child .trend-chart{min-height:180px}
 .trend-value{font-size:10px}
 .trend-label{font-size:11px}
 .account-menu-row{min-height:56px;font-size:15px}
 .account-menu-icon{width:32px;height:32px}
 .legend-row,.legend-row strong{font-size:13px}
 .panel-title h2{font-size:16px}
}
@media(max-width:360px){
 .panel-title h2{font-size:15px}
 .record-name{font-size:13px}
 .record-meta{font-size:11px}
 .record-value strong{font-size:13px}
 .record-value small{font-size:10px}
 .trend-value{font-size:9px}
 .trend-label{font-size:10px}
 .transaction-periods button{padding:13px 15px;font-size:13px}
}

/* Section labels read in sentence case, like the rest of the interface. */
.wallet-group>h2,.event-wallet-group h2,.travel-mode-page h2,.travel-events-page h2,.transaction-wallet-group>h3{text-transform:none;letter-spacing:0;font-size:13px;font-weight:650;color:#5f6b61}

/* Receipt scanning: today's remaining scans, and the page shown after saving a scanned receipt. */
.scan-allowance{text-align:center;font-size:13px;font-weight:600;color:var(--green);background:var(--soft);border-radius:999px;padding:7px 14px;margin:-8px auto 18px;width:fit-content;max-width:100%}
.scanning .scan-allowance{display:none}
.saved-receipt{display:grid;grid-template-columns:minmax(0,300px) minmax(0,1fr);gap:32px;align-items:start;padding:28px}
.saved-receipt-photo{margin:0;background:var(--soft);border:1px solid var(--line);border-radius:18px;overflow:hidden;display:flex;justify-content:center}
.saved-receipt-photo img{display:block;width:100%;max-height:520px;object-fit:contain}
.saved-receipt-name{margin:0;font-size:15px;font-weight:600;color:var(--muted);overflow-wrap:anywhere}
.saved-receipt-amount{margin:4px 0 22px;font-size:36px;font-weight:700;color:var(--ink);font-variant-numeric:tabular-nums;letter-spacing:-.01em}
.saved-receipt dl{margin:0;border-top:1px solid var(--line)}
.saved-receipt dl div{display:flex;justify-content:space-between;gap:16px;padding:13px 0;border-bottom:1px solid var(--line);font-size:15px}
.saved-receipt dt{color:var(--muted)}
.saved-receipt dd{margin:0;font-weight:600;text-align:right;overflow-wrap:anywhere}
.saved-receipt-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:24px}
.saved-receipt-actions button{min-width:150px}
@media (max-width:700px){
 .saved-receipt{grid-template-columns:1fr;gap:20px;padding:18px}
 .saved-receipt-photo img{max-height:280px}
 .saved-receipt-amount{font-size:30px;margin-bottom:16px}
 .saved-receipt-actions button{flex:1 1 140px}
}
