:root{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;color:#111;background:#fff;font-synthesis:none;font-size:17px;--line: #ddd;--muted: #555 }*{box-sizing:border-box}body{margin:0}[x-cloak]{display:none!important}button,input,select{font:inherit;color:inherit}button{cursor:pointer}button:disabled{opacity:.5;cursor:wait}button:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid #111;outline-offset:3px}main{max-width:1000px;margin:0 auto;padding:0 24px 28px}nav{display:flex;gap:28px;border-bottom:1px solid #ccc;margin:0 0 20px}nav button{background:none;border:0;border-bottom:3px solid transparent;padding:20px 0 14px;color:#555;font-size:18px}nav button.active{color:#000;border-color:#000;font-weight:700}.home-grid{display:grid;grid-template-columns:1.7fr 1fr;gap:18px}.card{border:1px solid var(--line);border-radius:12px;padding:22px;background:#fff}.section-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:18px}h2,h3,p{margin-top:0}h2{font-size:20px;font-weight:650;margin:0}.field-label{font-size:17px;font-weight:600}.amount-wrap{display:flex;align-items:baseline;gap:12px;margin:8px 0 18px}.amount-wrap input{font:inherit;font-size:64px;letter-spacing:-2px;font-weight:600;border:0;width:100%;min-width:0;padding:0;background:#fff}.amount-wrap input::placeholder{color:#888}.category-list{display:flex;flex-wrap:wrap;gap:8px}.category-list button,.category-options button{border:1px solid #ccc;border-radius:7px;background:#fff;padding:10px 13px;font-size:16px;min-height:44px}.category-list button.selected,.category-options button.selected{background:#111;color:#fff;border-color:#111}.category-picker{border:1px solid #aaa;border-radius:9px;margin-top:12px;padding:14px}.category-picker label{font-size:16px;font-weight:600}.category-picker input{display:block;width:100%;padding:10px;border:1px solid #aaa;border-radius:6px;margin:10px 0}.category-options{flex-wrap:wrap;gap:7px;max-height:240px;overflow:auto}.category-options button{font-size:15px;padding:8px 11px;text-align:left}.note-input{width:100%;padding:16px 0;border:0;border-bottom:1px solid var(--line);margin:3px 0 18px;font-size:17px;border-radius:0}.note-input::placeholder{color:#666}.entry-bottom{display:flex;flex-direction:column;align-items:stretch;gap:16px}.date-label{display:flex;flex-direction:column;gap:8px;font-size:17px;font-weight:600}.date-label input{font:inherit;font-size:23px;min-height:56px;width:100%;max-width:100%;border:1px solid #aaa;padding:12px;border-radius:8px;background:#fff;color:#111;-webkit-appearance:auto;-moz-appearance:auto;appearance:auto}.date-label input::-webkit-calendar-picker-indicator{width:25px;height:25px;cursor:pointer}.save{background:#111;color:#fff;border:1px solid #111;border-radius:8px;padding:14px 18px;min-height:52px;font-size:18px;display:flex;justify-content:space-between;gap:16px;align-items:center}.save:hover{background:#333}.overview{display:flex;flex-direction:column;background:#f7f7f7}.eyebrow{font-size:14px;letter-spacing:1px;font-weight:600;color:#555;text-transform:uppercase;margin:0 0 18px}.summary-label{font-size:19px;margin:6px 0 8px}.big-total{font-size:42px;letter-spacing:-1px;font-weight:650;overflow-wrap:anywhere;margin:0 0 20px}.overview-link{margin-top:auto;padding:18px 0 0;border:0;border-top:1px solid #ccc;background:none;text-align:left;font-size:17px;display:flex;justify-content:space-between}.progress{height:7px;background:#ddd;border-radius:4px;overflow:hidden;margin:12px 0}.progress span{height:100%;display:block;background:#111}.muted{color:#555;font-size:16px;line-height:1.55}.budget-warning{font-size:16px;font-weight:700}.history{grid-column:1/-1}.history .section-heading{margin-bottom:10px}.count{font-size:14px;color:#555;margin-left:5px}.search{display:flex;gap:7px;align-items:center}.search>span{font-size:25px}.search input{width:155px;background:transparent;border:0;font-size:16px;min-height:44px}.empty{padding:20px 0;color:#555}.empty p{margin:0;font-size:17px}.day-group h3{font-size:15px;color:#555;margin:18px 0 4px}.expense-row{display:flex;align-items:center;border-bottom:1px solid var(--line)}.expense-main{display:flex;align-items:center;gap:12px;flex:1;min-width:0;border:0;background:transparent;text-align:left;padding:14px 0}.expense-icon{width:38px;height:38px;background:#eee;display:grid;place-items:center;border-radius:8px;font-size:22px}.expense-description{flex:1;min-width:0}.expense-description strong{display:block;font-size:18px;font-weight:500;overflow-wrap:anywhere}.expense-description small{font-size:15px;color:#555;display:block;margin-top:4px}.expense-main>b{font-size:20px;font-weight:650;white-space:nowrap}.delete{background:none;border:0;font-size:26px;min-width:44px;min-height:44px;margin-left:4px}.quick{margin-top:20px;border-top:1px solid var(--line);padding-top:16px}.quick .eyebrow{font-size:13px;margin-bottom:10px}.quick .eyebrow span{text-transform:none;letter-spacing:0;font-weight:400}.quick-list{display:flex;gap:7px;flex-wrap:wrap}.quick-list button{border:1px solid #ccc;background:#fff;border-radius:7px;padding:10px;font-size:15px;display:flex;gap:8px;align-items:center;min-height:44px}.quick-list b{font-weight:600}.summary-grid{display:grid;grid-template-columns:1fr;gap:18px}.report-total{font-size:44px;font-weight:650;letter-spacing:-1px;margin:24px 0 8px}.breakdown{margin-top:25px}.breakdown>div{margin-bottom:20px}.breakdown-label{display:flex;justify-content:space-between;gap:12px;font-size:17px}.breakdown-label b{font-weight:600}.text-button{display:block;border:0;background:none;font-size:16px;text-decoration:underline;padding:14px 0;min-height:44px}.small{font-size:15px;margin:15px 0 0}.settings{padding:0 22px}.setting{display:flex;justify-content:space-between;align-items:center;gap:22px;padding:23px 0;border-bottom:1px solid var(--line)}.setting .muted{margin:7px 0 0;max-width:510px}.secondary,select{border:1px solid #aaa;border-radius:7px;background:#fff;padding:12px;font-size:16px;min-height:44px;white-space:nowrap}.privacy{display:flex;gap:15px;padding:23px 0}.privacy>span{font-size:24px}.privacy p{font-size:16px;line-height:1.6;max-width:650px;color:#555;margin:8px 0 0}.toast{position:fixed;bottom:20px;left:50%;transform:translate(-50%);display:flex;align-items:center;gap:18px;background:#111;color:#fff;padding:12px 18px;border-radius:10px;box-shadow:0 4px 20px #0003;z-index:10;font-size:17px;max-width:95vw}.toast button{background:none;border:0;color:#fff;padding:8px;font-weight:650;min-height:44px}.error{background:#eee;color:#111;border-left:4px solid #111;padding:14px;font-size:17px}.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}@media(max-width:650px){main{padding:0 16px 24px}nav{gap:26px;margin-bottom:16px}nav button{padding-top:16px}.home-grid,.summary-grid{grid-template-columns:1fr;gap:16px}.card,.overview{padding:18px}.overview .eyebrow{margin-bottom:7px}.summary-label{margin:0 0 5px}.big-total{font-size:38px;margin-bottom:14px}.overview-link{padding-top:14px}.history h2{font-size:19px}.search input{width:136px;font-size:15px}.category-list{gap:6px}.category-list button{padding:9px 11px}.amount-wrap input{font-size:60px}.setting{flex-direction:column;align-items:flex-start;gap:15px}.toast{bottom:12px;width:max-content;gap:10px;font-size:16px;padding:8px 14px}.summary-grid .section-heading{flex-wrap:wrap}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}.report-period{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.report-period select{font-size:30px;font-weight:650;min-height:58px;padding:8px 32px 8px 10px;border-color:#bbb;max-width:100%}.report-caption{margin:24px 0 0}.report-total{margin-top:6px}@media(max-width:400px){.report-period{gap:8px}.report-period select{font-size:25px;padding-right:22px}}.over-limit{color:#ef4444}.progress.over-limit{background:#f9dddd}.progress.over-limit span{background:#ef4444}.category-report{display:flex;align-items:center;flex-direction:column;margin:28px 0 20px}.donut{border-radius:50%;display:grid;place-items:center}.donut-center{background:#fff;border-radius:50%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px}.donut-center span{font-size:16px;color:#555}.chart-caption{font-size:16px;color:#555;margin:14px 0 0}.category-name{display:flex;align-items:center;gap:9px;min-width:0}.category-name i{width:12px;height:12px;border-radius:50%;flex-shrink:0}.category-values{display:flex;align-items:flex-end;flex-direction:column;gap:4px;white-space:nowrap}.category-values>span{font-size:15px;color:#555}.breakdown-label{align-items:center}.save:disabled{cursor:default;opacity:.45}.limit-form{display:flex;align-items:center;justify-content:space-between;gap:16px;width:100%}.limit-form>label{font-size:20px;font-weight:650}.limit-controls{display:flex;align-items:center;gap:10px}.limit-controls select{font-size:18px;min-height:48px;max-width:190px;padding:10px 30px 10px 12px}.limit-controls .save{min-height:48px;padding:10px 16px;font-size:17px}@media(max-width:420px){.limit-form{flex-wrap:wrap}.limit-controls{margin-left:auto}.limit-form>label{font-size:18px}.limit-controls select{max-width:170px}}.limit-controls{flex-wrap:wrap;justify-content:flex-end}.limit-controls input{width:160px;min-height:48px;border:1px solid #aaa;border-radius:7px;padding:10px 12px;font-size:18px}.limit-controls input::placeholder{font-size:16px}.limit-controls{min-width:0}.limit-form>label{flex-shrink:0}@media(max-width:650px){.limit-form:has(input:not([style*="display: none"])){flex-wrap:wrap}}.big-total.spending-green{color:#111}.progress.spending-green{background:#e5e7eb}.progress.spending-green span{background:#84cc16}.progress.spending-orange{background:#fef3c7}.big-total.spending-red{color:#ef4444}.progress.spending-red{background:#f9dddd}.progress.spending-red span{background:#ef4444}.overview .progress{height:12px;border-radius:6px}.overview .progress span{min-width:4px;border-radius:6px}.overview .progress{background:#e5e7eb}.amount-wrap input,.amount-wrap input:focus,.amount-wrap input:focus-visible{border:0;outline:none;box-shadow:none}.amount-wrap:focus-within>span{text-underline-offset:6px}.amount-wrap>span{font-size:64px;font-weight:600;line-height:normal}.amount-wrap:focus-within>span{text-decoration:none}@media(max-width:650px){.amount-wrap>span{font-size:60px}}.amount-wrap>span,.amount-wrap input{font-weight:400}.big-total,.report-total,.expense-main>b,.category-values b,.quick-list b,.limit-controls select,.limit-controls input,.budget-warning{font-weight:400}.big-total.spending-amber{color:#a66b00}.progress.spending-amber span{background:#fbbf24}.big-total.spending-orange{color:#c25a00}.progress.spending-orange span{background:#f97316}@keyframes over-limit-blink{0%,to{opacity:1}50%{opacity:.25}}.limit-controls select{font-weight:700}.amount-wrap:focus-within{background:#f5f5f5;border-radius:8px}.amount-wrap input:focus-visible{outline:none}.category-options{display:block}.category-group{margin-bottom:16px}.category-group h3{font-size:14px;color:#555;margin:0 0 8px;font-weight:600}.category-group>div{display:flex;flex-wrap:wrap;gap:7px}.date-label small{font-size:15px;color:#555;font-weight:400;margin-left:8px}.date-shortcuts{display:flex;gap:8px;margin-top:-8px}.date-shortcuts button{background:#fff;border:1px solid #ccc;border-radius:7px;padding:8px 14px;min-height:44px;font-size:16px}.usage-label{font-size:16px;margin:10px 0}.donut{width:250px;height:250px}.donut-center{width:180px;height:180px;padding:10px}.donut-center strong{font-size:25px;font-weight:400;max-width:100%;overflow-wrap:anywhere;text-align:center}.breakdown-label{width:100%;background:none;border:0;border-bottom:1px solid #eee;padding:12px 0;text-align:left;min-height:56px;cursor:pointer}.breakdown-label:hover,.breakdown-label[aria-expanded=true]{background:#f5f5f5}.report-details{margin-top:20px;border-top:1px solid #ddd;padding-top:20px}.report-detail-row,.trash-row{display:flex;align-items:center;gap:14px;justify-content:space-between;padding:14px 0;border-bottom:1px solid #eee}.report-detail-row>div,.trash-row>div{flex:1;min-width:0}.report-detail-row strong,.trash-row strong{font-size:17px;font-weight:500;overflow-wrap:anywhere}.report-detail-row small,.trash-row small{display:block;margin-top:5px;color:#555;font-size:14px}.report-detail-row>span,.trash-row>span{font-weight:400;white-space:nowrap}.import-preview{background:#f5f5f5;padding:18px;border-radius:8px;margin:18px 0}.preview-actions{display:flex;gap:10px;flex-wrap:wrap}select:disabled{opacity:1;color:#555;background:#f4f4f4;cursor:default}.budget-warning.over-limit{animation:over-limit-blink 1.5s ease-in-out 3}@media(prefers-reduced-motion:reduce){.budget-warning.over-limit{animation:none}}@media(max-width:420px){.trash-row{flex-wrap:wrap}.trash-row .secondary{margin-left:auto}}.report-limit{display:inline-flex;flex-direction:column;gap:6px;padding:14px 20px;border:1px solid #ccc;border-radius:9px;background:#f5f5f5;margin:0 0 16px}.report-limit>span{font-size:15px;color:#555}.report-limit>strong{font-size:26px;font-weight:400;letter-spacing:-.5px}.report-total.spending-amber,.report-limit.spending-amber .report-usage{color:#a66b00}.report-total.spending-orange,.report-limit.spending-orange .report-usage{color:#c25a00}.report-total.spending-red,.report-limit.spending-red .report-usage{color:#ef4444}.report-limit.spending-green .report-usage{color:#4d7c0f}.report-limit .report-progress{height:12px;min-width:180px;background:#e5e7eb;margin:4px 0 0}.report-total.spending-green{color:#111}.report-limit>span.over-limit{color:#ef4444}.report-limit{display:grid;grid-template-columns:1fr auto;width:100%;gap:8px 20px;padding:18px 20px;align-items:center}.report-limit>span:first-child{grid-column:1;grid-row:1}.report-limit>strong{grid-column:1;grid-row:2;min-width:0;overflow-wrap:anywhere}.report-limit>.report-usage{grid-column:2;grid-row:2;text-align:right;font-size:17px}.report-limit>.report-progress{grid-column:1/-1;width:100%;min-width:0;margin-top:8px}.report-limit>span.over-limit{grid-column:1/-1;text-align:right;font-size:16px}@media(max-width:420px){.report-limit{padding:16px;gap:8px 12px}.report-limit>strong{font-size:24px}.report-limit>.report-usage{font-size:15px}}.report-limit>.report-usage{grid-column:1;text-align:left}.report-limit>strong{grid-column:2;text-align:right}.report-limit>span:first-child{grid-column:2;text-align:right}.report-limit>span:first-child{grid-column:1;grid-row:1;text-align:left}.report-limit>strong{grid-column:1;grid-row:2;text-align:left}.report-limit>.report-usage{grid-column:1/-1;grid-row:4;text-align:right}.report-limit>.report-progress{grid-column:1/-1;grid-row:3}.report-limit>span.over-limit{grid-column:2;grid-row:2;text-align:right}.report-limit>.limit-difference{grid-column:2;grid-row:2;text-align:right;font-size:16px}.report-limit>.limit-difference.over-limit{color:#ef4444}.income-page .limit-setting{border-bottom:0;padding:0}nav{gap:24px}@media(max-width:420px){nav{gap:18px}nav button{font-size:16px}}.income-page .limit-form{flex-wrap:wrap}.income-category{display:flex;justify-content:space-between;align-items:center;gap:16px;width:100%;padding-bottom:20px;margin-bottom:4px;border-bottom:1px solid #ddd}.income-category label{font-size:20px;font-weight:650}.income-category select{font-size:18px;max-width:65%}.income-total{border-bottom:1px solid #ddd;margin-bottom:22px;padding-bottom:4px}.income-total .big-total{font-weight:400}.income-page .limit-controls input{width:220px;max-width:100%;font-size:24px;font-weight:400}.income-page .income-category{margin-bottom:6px}.income-page .limit-controls{flex:1}.income-page .income-save{width:100%;margin-top:24px}.income-page .amount-wrap input{font-weight:400}.report-totals{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:24px 0}.report-totals>div{display:flex;flex-direction:column;gap:9px;min-width:0}.report-totals span{font-size:16px;color:#555}.report-totals strong{font-size:30px;font-weight:400;overflow-wrap:anywhere}.report-totals .spending-amber{color:#a66b00}.report-totals .spending-orange{color:#c25a00}.report-totals .spending-red{color:#ef4444}.report-limit .no-income{grid-column:1/-1;font-size:16px}.savings-target-form{display:flex;gap:8px;flex-wrap:wrap}.savings-target-form input{width:170px;padding:10px;border:1px solid #aaa;border-radius:7px;font-size:18px}@media(max-width:480px){.report-totals{gap:8px}.report-totals strong{font-size:23px}.report-limit .limit-difference{font-size:14px;max-width:180px}}nav{overflow-x:auto;gap:24px}nav button{flex-shrink:0}.savings-page{display:grid;gap:18px}.savings-overview>.big-total{margin:16px 0 12px}.savings-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;padding:20px 0;border-top:1px solid #ddd;margin-top:20px}.savings-stats>div{display:flex;flex-direction:column;gap:8px;min-width:0}.savings-stats span{font-size:16px;color:#555}.savings-stats strong{font-size:26px;font-weight:400;overflow-wrap:anywhere}.savings-history>h2{margin-bottom:8px}.savings-month{display:flex;width:100%;align-items:center;gap:14px;background:none;border:0;border-bottom:1px solid #ddd;padding:18px 0;text-align:left;font-size:20px}.savings-month>span:first-child{flex:1;min-width:0}.savings-month strong{font-size:17px;font-weight:500}.savings-month small{display:block;font-size:14px;color:#555;margin-top:6px}.savings-month>span:nth-child(2){overflow-wrap:anywhere}.savings-month>span:last-child{font-size:18px;color:#555}@media(max-width:480px){nav{gap:16px}nav button{font-size:15px}.savings-stats{gap:10px}.savings-stats strong{font-size:22px}.savings-month{font-size:18px}}.savings-lime{color:#4d7c0f}.savings-amber{color:#a66b00}.savings-orange{color:#c25a00}.savings-red{color:#ef4444}.savings-stats{display:flex;flex-direction:column;gap:0;padding:0}.savings-stats>div{flex-direction:row;align-items:center;justify-content:space-between;gap:20px;padding:16px 0;border-bottom:1px solid #ddd}.savings-stats strong{text-align:right}.goal-values{display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-top:20px;font-size:18px}.savings-goal-progress{height:12px;background:#e5e7eb}.savings-goal-progress span{background:#84cc16}.savings-goal .text-button{padding-bottom:0}.settings-label{display:block;font-size:20px;font-weight:650}.savings-rate-form{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap}.rate-input{display:flex;align-items:center;gap:6px;border:1px solid #bbb;border-radius:8px;padding:0 12px;background:#fff;min-height:52px}.rate-input:focus-within{outline:2px solid #111;outline-offset:2px}.rate-input input{width:78px;border:0;padding:10px 0;font-size:24px;font-weight:400;background:none;outline:none}.rate-input input:focus-visible{outline:none}.rate-input>span{font-size:20px;color:#555}.rate-actions{display:flex;gap:8px}.rate-actions .save{min-height:48px;padding:10px 16px;font-size:16px}.rate-error{flex-basis:100%;font-size:14px;margin:0;text-align:right;color:#b91c1c}.savings-rate-setting{align-items:center}@media(max-width:650px){.savings-rate-form{justify-content:flex-start;width:100%}.rate-error{text-align:left}}.unsaved-label{font-size:14px;color:#a66b00}.target-status{font-size:17px;font-weight:500}.target-achieved{padding:12px 14px;background:#ecfccb;border-radius:8px;color:#365314}nav{display:flex;justify-content:space-between;gap:10px}nav button{font-size:17px;min-height:48px}@media(max-width:400px){nav{gap:6px}nav button{font-size:14px;letter-spacing:-.2px}main{padding-left:12px;padding-right:12px}.savings-month{flex-wrap:wrap}.savings-month>span:first-child{flex-basis:45%}.savings-month>span:nth-child(2){max-width:45%;text-align:right}}.report-histories{display:grid;gap:28px;margin-top:28px}.report-histories .history{border-top:1px solid #ddd;padding-top:22px}.report-histories .history .section-heading{flex-wrap:wrap}.home-grid>.overview{justify-content:flex-start}.home-grid>.overview .big-total{margin-bottom:0}.toast{flex-wrap:wrap;justify-content:center}.toast>span{overflow-wrap:anywhere}.toast button{white-space:nowrap}@media(max-width:480px){.toast{width:calc(100% - 24px);gap:4px 14px}.toast>span{flex-basis:100%;text-align:center}.toast button{font-size:14px}}.toast-fade{transition:opacity .4s ease}.toast-visible{opacity:1}.toast-hidden{opacity:0}.amount-wrap input.zero-amount{color:#999}.category-overlay{position:fixed;top:0;right:0;bottom:0;left:0;z-index:30;background:#fff;display:flex;flex-direction:column;height:100dvh;overflow:hidden}.picker-header,.picker-content,.picker-footer{width:100%;max-width:820px;margin:0 auto;padding:20px 24px}.picker-header{display:flex;align-items:center;justify-content:space-between;gap:16px;border-bottom:1px solid #ddd;flex-shrink:0}.picker-content{flex:1;overflow-y:auto;min-height:0}.picker-footer{border-top:1px solid #ddd;padding-bottom:max(18px,env(safe-area-inset-bottom));flex-shrink:0}.picker-footer .save{width:100%}.picker-input{display:block;width:100%;font-size:18px;padding:14px;border:1px solid #bbb;border-radius:8px;margin:10px 0 22px}.picker-content .category-options{max-height:none;overflow:visible}.picker-content .category-group{margin-bottom:24px}body:has(.category-overlay:not([style*="display: none"])){overflow:hidden}@media(max-width:480px){.picker-header,.picker-content,.picker-footer{padding-left:16px;padding-right:16px}}.entry .category-list button.selected,.category-overlay .category-group button.selected{background:#bef264;border-color:#a3e635;color:#1a2e05}.entry .save:not(:disabled),.category-overlay .save:not(:disabled){background:#c026d3;border-color:#c026d3;color:#fff}.entry .save:not(:disabled):hover,.category-overlay .save:not(:disabled):hover{background:#a21caf;border-color:#a21caf}nav{position:sticky;top:0;z-index:20;background:#fff;padding-top:env(safe-area-inset-top);box-shadow:0 1px #ddd}.app{min-height:100dvh}main{min-height:100dvh}.savings-stats.savings-inline{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:24px;padding:18px 0}.savings-stats.savings-inline>div{flex-direction:column;align-items:flex-start;gap:8px;padding:0;border:0}.savings-stats.savings-inline>div:last-child{align-items:flex-end}.savings-stats.savings-inline strong{text-align:left}.report-totals{display:flex;flex-direction:column;gap:0}.report-totals>div{flex-direction:row;align-items:center;justify-content:space-between;gap:20px;padding:16px 0;border-bottom:1px solid #ddd}.report-totals strong{text-align:right}
