:root{font-family:'Noto Sans SC',system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;color:#253b32;background:#f5f7f3;font-synthesis:none;--green:#215c46;--muted:#88918a;--border:#e6eae3}*{box-sizing:border-box}body{margin:0}button,input,textarea{font:inherit}button,a,label.upload-zone{-webkit-tap-highlight-color:transparent}.receipt-choices{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:14px}.receipt-choices .upload-zone{margin-bottom:0;min-width:0;padding:20px 8px}.receipt-formats{grid-column:1 / -1;margin:0;text-align:center;font-size:10px;color:#879579}.upload-zone:has(input:disabled){opacity:.5;cursor:wait}.upload-zone{-webkit-tap-highlight-color:transparent}button{cursor:pointer;color:inherit}button{border:0;background:none}button:disabled{cursor:wait;opacity:.5}a{color:inherit;text-decoration:none}svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;vertical-align:middle;flex-shrink:0}button:focus-visible,a:focus-visible{outline:3px solid #83b89a;outline-offset:4px}input:focus,textarea:focus{outline:2px solid #8db49c;outline-offset:1px}[hidden]{display:none!important}.shell{max-width:1440px;margin:auto;display:flex;min-height:100vh}.sidebar{width:238px;padding:47px 26px 26px;display:flex;flex-direction:column;position:sticky;top:0;height:100vh;border-right:1px solid var(--border);flex-shrink:0}.brand{display:flex;gap:12px;align-items:center;font-size:23px;font-weight:700;letter-spacing:1px}.brand-icon{background:var(--green);color:#fff;display:grid;place-items:center;border-radius:13px;width:44px;height:46px}.brand-icon svg{width:26px;height:26px}.brand small{display:block;font-size:8px;font-weight:500;letter-spacing:1.5px;margin-top:5px;color:#8b968e}.sidebar nav{margin-top:58px;display:grid;gap:10px}.nav-item{display:flex;align-items:center;gap:14px;padding:15px 19px;text-align:left;color:#859087;border-radius:11px;font-size:14px}.nav-item.active{background:#e6eee3;color:#295d43;font-weight:600}.sidebar-note{margin-top:auto;padding:50px 17px 35px;color:#809184}.sprout{font-size:48px;color:#98ab88}.sidebar-note p{font-size:13px;line-height:1.9}.sidebar-note small{font-size:10px;letter-spacing:2px}.local-badge{font-size:11px;color:#8c968f;display:flex;gap:8px;align-items:center;padding:15px 17px;border-top:1px solid var(--border)}i{display:inline-block;width:5px;height:5px;background:#96b69f;border-radius:50%}main{flex:1;min-width:0;padding:0 55px 36px}.topbar{height:98px;display:flex;align-items:center;justify-content:space-between}.desktop-date{color:#8d978e;font-size:12px;letter-spacing:1px}.icon-button{display:grid;place-items:center;border:1px solid var(--border);border-radius:50%;width:39px;height:39px;background:#fafbf8}.mobile-brand,.bottom-nav{display:none}.page-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:30px}.eyebrow{color:#8c9b8c;font-size:10px;letter-spacing:2.5px;font-weight:600}h1{font-size:30px;letter-spacing:1px;margin:12px 0 10px;font-weight:600}p{font-size:13px;line-height:1.8}.page-heading p{margin:0;color:#8b948c}.month-picker{display:flex;align-items:center;background:#fff;border:1px solid var(--border);border-radius:10px;padding:11px 13px;gap:9px}.month-picker svg{width:17px;color:#7c907d}.month-picker input{border:0;background:transparent;width:128px;color:#506151;font-size:13px;min-height:24px}.summary-grid{display:grid;grid-template-columns:1.75fr 1fr;gap:20px;margin-bottom:20px}.expense-card{position:relative;overflow:hidden;background:#245c46;color:#fff;border-radius:19px;padding:28px 30px 19px;min-height:204px}.card-label{display:flex;align-items:center;gap:17px;font-size:13px;color:#d7e4d9}.card-label>span{font-size:9px;letter-spacing:1px;color:#a7c5b2;padding:4px 8px;border:1px solid #5d826b;border-radius:5px}.big-money{font-size:44px;letter-spacing:1px;font-weight:500;margin:13px 0 20px;font-variant-numeric:tabular-nums;position:relative;z-index:1;overflow-wrap:anywhere}.big-money small{font-size:24px;margin-right:10px;color:#a9c7ad;font-weight:400}.card-foot{font-size:10px;letter-spacing:.5px;color:#b3cab9}.card-foot i{margin-right:7px}.leaf-art{position:absolute;right:1px;bottom:-50px;font-size:215px;line-height:1;transform:rotate(15deg);color:#87aa7928;pointer-events:none}.balance-card{background:#fff;border:1px solid var(--border);border-radius:19px;padding:25px 27px;display:flex;flex-direction:column;justify-content:center;gap:20px}.mini-summary{display:flex;gap:15px;align-items:center}.summary-symbol{width:39px;height:39px;background:#f2f0e9;border-radius:12px;display:grid;place-items:center;color:#9c936b}.summary-symbol.income{background:#edf4e9;color:#7c9b69}.muted{color:var(--muted);font-size:12px}.mini-summary strong{display:block;font-size:23px;font-weight:500;letter-spacing:.5px;margin-top:5px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.divider{height:1px;background:#edf0e9}.action-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-bottom:35px}.action-card{background:#fff;border:1px solid var(--border);border-radius:14px;display:flex;align-items:center;text-align:left;gap:15px;padding:22px 23px;transition:transform .2s,border-color .2s}.action-card:hover{transform:translateY(-2px);border-color:#a2b69c}.action-icon{display:grid;place-items:center;width:43px;height:43px;background:#edf2e8;color:#67835a;border-radius:13px;flex-shrink:0}.scan .action-icon{background:#f6f0df;color:#ad985c}.action-card strong{display:block;font-size:14px;font-weight:600}.action-card small{display:block;font-size:10px;color:#959b91;margin-top:7px}.action-card em{font-size:8px;letter-spacing:1px;font-style:normal;border:1px solid #e1d8b9;color:#9b8c58;border-radius:4px;margin-left:5px;padding:1px 4px}.action-arrow{margin-left:auto;color:#98a28f;font-size:22px}.records-panel{background:#fff;border:1px solid var(--border);border-radius:18px;padding:25px 27px}.section-title{display:flex;justify-content:space-between;align-items:center}h2{font-size:17px;font-weight:600;margin:0}.section-title h2 span{font-size:10px;font-weight:400;color:#9ba392;margin-left:10px}.text-button{display:inline-flex;align-items:center;gap:5px;color:#7c8d76;font-size:11px;padding:6px}.text-button svg{width:14px;height:14px}.record-tools{display:flex;align-items:center;justify-content:space-between;margin:25px 0 10px;gap:15px}.segmented{display:flex;background:#f5f6f1;border-radius:8px;padding:4px;gap:2px}.segmented button{font-size:11px;min-width:54px;padding:7px;border-radius:6px;color:#919987}.segmented .selected{background:#fff;box-shadow:0 1px 5px #2035210c;color:#45623e}.search{display:flex;gap:7px;align-items:center;color:#a1aa9a}.search svg{width:16px;height:16px}.search input{border:0;background:transparent;max-width:180px;font-size:11px;padding:9px 0;min-width:0}.search input::placeholder{color:#a8aea1}.date-heading{font-size:11px;color:#959f8e;background:#f8f9f5;margin:17px -10px 0;padding:9px 10px;display:flex;justify-content:space-between;border-radius:5px}.date-heading span:last-child{font-size:10px}.record{display:flex;align-items:center;width:100%;text-align:left;padding:17px 1px;border-bottom:1px solid #f0f2ec;gap:13px}.record:hover{background:#fafbf7}.record-icon{width:41px;height:41px;border-radius:12px;display:grid;place-items:center;flex-shrink:0;background:var(--tint);color:var(--ink)}.record-icon svg{width:20px;height:20px}.record-name{font-size:13px;font-weight:500;max-width:440px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.record-info{min-width:0;flex:1}.record-meta{font-size:10px;color:#9da594;margin-top:5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.record-amount{font-size:16px;font-weight:500;white-space:nowrap;font-variant-numeric:tabular-nums}.record-amount.income{color:#6b9164}.source-dot{color:#b6ad88;font-size:9px;margin-left:6px}.empty{text-align:center;padding:43px 15px 39px}.empty-art{width:72px;height:72px;margin:auto auto 18px;display:grid;place-items:center;border:1px solid #dce5d6;background:#f1f5ec;border-radius:24px;transform:rotate(-6deg);color:#85a076}.empty-art svg{height:34px;width:34px}.empty h3{font-size:14px;font-weight:500;margin:10px 0}.empty p{font-size:11px;color:#9aa38f;margin:0 0 17px}.empty button{border-bottom:1px solid #b1c1a7;border-radius:0}.gentle-note{display:flex;justify-content:center;align-items:center;gap:6px;font-size:10px;color:#99a18f;margin:22px 0}.gentle-note svg{width:13px;height:13px}.stats-month{display:inline-flex;margin:16px 0 22px}.stats-card,.settings-card{padding:28px;background:#fff;border:1px solid var(--border);border-radius:18px;margin:20px 0}.stats-totals{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.stats-totals strong{display:block;font-size:23px;margin-top:12px;overflow-wrap:anywhere}.chart-row{margin:24px 0}.chart-row header{display:flex;justify-content:space-between;font-size:12px;margin-bottom:9px}.bar-track{height:8px;background:#f1f3ec;border-radius:8px;overflow:hidden}.bar-fill{height:100%;background:#85a77b;border-radius:8px}.settings-card p{color:#8a9586;font-size:13px;line-height:1.9}.settings-hero{display:grid;place-items:center;width:50px;height:50px;background:#eef4e8;border-radius:15px;color:#658457;margin-bottom:20px}.settings-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:20px}.primary,.secondary{display:inline-flex;justify-content:center;align-items:center;gap:8px;padding:13px 21px;font-size:13px;border-radius:10px;min-height:46px}.primary{background:var(--green);color:#fff}.secondary{border:1px solid #dae1d3;background:#fff;color:#6c805f}.small{font-size:11px!important}.settings-footer{font-size:11px;letter-spacing:1px;color:#9ba48f;text-align:center;margin-top:35px}.settings-footer span{padding:0 10px}dialog{border:0;box-shadow:0 20px 100px #1b372d2b;border-radius:22px;padding:0;width:min(590px,calc(100% - 32px));max-height:92dvh;color:inherit;background:#fcfdf9}dialog::backdrop{background:#142a225c;backdrop-filter:blur(4px)}.dialog-header{display:flex;justify-content:space-between;align-items:center;padding:24px 28px 18px;border-bottom:1px solid var(--border)}.dialog-header h2{font-size:22px;margin-top:7px}.dialog-header .eyebrow{font-size:8px}.dialog-content{padding:22px 28px 12px}.entry-tabs{display:flex;gap:5px;background:#eff2e9;border-radius:10px;padding:4px;margin-bottom:22px}.entry-tabs button{padding:10px;flex:1;border-radius:7px;color:#8d9784;font-size:13px}.entry-tabs .selected{background:#fff;color:#355d40;box-shadow:0 2px 8px #20352108}fieldset{border:0;padding:0;margin:0}.amount-label{display:block;font-size:11px;color:#8c9782}.amount-input{display:flex;align-items:center;gap:10px;border-bottom:1px solid #dfe6d6;padding:10px 0 15px;margin-bottom:22px}.amount-input span{font-size:29px;color:#a0b194}.amount-input input{width:100%;min-width:0;border:0;background:transparent;font-size:41px;color:#305640;font-weight:500}.amount-input input::placeholder{color:#ccd4c6}.field-grid{display:grid;grid-template-columns:1.2fr 1fr;gap:15px}.field-grid label,.note-field,.field-caption{font-size:11px;color:#7c8c72;display:block}.field-grid input,.note-field textarea{border:1px solid #e2e7db;border-radius:8px;padding:12px;background:#fff;width:100%;min-width:0;font-size:13px;color:#3b5133;margin-top:9px}.field-caption{margin:22px 0 12px}.categories{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}.category{padding:12px 3px 9px;border:1px solid transparent;background:#f1f4ec;border-radius:10px;font-size:10px;color:#8d9981;display:grid;place-items:center;gap:6px;min-height:66px}.category.selected{border-color:#91ad82;background:#eaf0e2;color:#4d7141}.category svg{width:20px;height:20px}.note-field{margin:20px 0 10px}.note-field span{font-size:9px;color:#a4ad98;margin-left:5px}.note-field textarea{resize:vertical}.dialog-footer{display:flex;gap:15px;padding:15px 28px 22px;background:#fcfdf9;border-top:1px solid var(--border)}.dialog-footer .primary{flex:1}.delete-button{color:#b7796b;font-size:12px;padding:10px}.upload-zone{position:relative;display:flex;align-items:center;flex-direction:column;border:1px dashed #b2c1a4;border-radius:12px;padding:24px 12px;background:#f3f6ed;margin-bottom:14px;cursor:pointer;color:#73905e}.upload-zone strong{font-size:13px;margin:12px 0 7px;font-weight:500}.upload-zone small{font-size:9px;color:#95a284}.upload-zone input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}.upload-zone:focus-within{outline:2px solid #7b9a69}#receipt-panel{display:flex;gap:16px;align-items:center;background:#eef3e7;padding:12px;border-radius:12px;margin:12px 0}#receipt-preview{width:100px;max-height:155px;object-fit:contain;border-radius:6px;background:white;cursor:zoom-in}#receipt-panel strong{font-size:12px}#ocr-status{font-size:11px;color:#879579;line-height:1.6}.scan-hint{font-size:10px;line-height:1.8;color:#a49465;background:#f8f3e5;padding:10px 12px;border-radius:8px;margin-bottom:20px}details{font-size:10px;color:#879579;margin:12px 0}pre{white-space:pre-wrap;max-height:160px;overflow:auto;font-size:11px}.review-check{display:flex;align-items:flex-start;gap:9px;font-size:11px;line-height:1.8;color:#6b805c;padding:12px;background:#edf3e6;border-radius:8px}.review-check input{accent-color:#3e7152;width:17px;height:17px;flex-shrink:0;margin:2px 0}.form-error{font-size:11px;color:#b76d59;margin:10px 0 0;min-height:15px}.confirm-body{padding:28px}.confirm-body p{color:#839177}.confirm-body .settings-actions{justify-content:flex-end}.toast{position:fixed;z-index:10;bottom:35px;left:50%;transform:translateX(-50%);background:#264d39;color:#fff;padding:13px 24px;border-radius:12px;box-shadow:0 5px 25px #18391b20;font-size:12px;max-width:90vw;text-align:center}.error-banner{padding:15px;background:#fff0e8;color:#a56046;border-radius:10px;font-size:12px;margin:20px 0}
@media(min-width:1450px){main{padding:0 65px 40px}.topbar{height:115px}.page-heading{margin-bottom:35px}.expense-card{min-height:220px}.big-money{margin-top:18px;font-size:48px}}
@media(max-width:1100px){.sidebar{width:190px;padding-left:18px;padding-right:18px}main{padding:0 30px 30px}.action-card{padding:18px 15px;gap:10px}.action-card strong{font-size:12px}.action-card small{font-size:9px}.action-arrow{font-size:18px}.balance-card{padding:22px}.big-money{font-size:37px}.record-name{max-width:290px}}
@media(max-width:760px){.sidebar{display:none}main{padding:0 20px 110px}.topbar{height:78px}.desktop-date{display:none}.mobile-brand{display:flex;align-items:center;gap:8px;font-weight:700;font-size:19px;color:#2c5d40}.mobile-brand svg{width:23px;height:23px}.topbar .icon-button{width:34px;height:34px}.topbar .icon-button svg{width:18px}.page-heading{margin:10px 0 24px;position:relative;display:block}.eyebrow{font-size:8px;letter-spacing:2px}h1{font-size:25px;margin-top:10px}.page-heading p{font-size:11px}.page-heading .month-picker{margin-top:20px;width:fit-content;padding:6px 10px}.month-picker input{font-size:12px}.summary-grid{grid-template-columns:1fr;gap:12px;margin-bottom:17px}.expense-card{min-height:181px;padding:24px 24px 20px;border-radius:17px}.big-money{font-size:43px;margin:14px 0 19px}.card-label{font-size:12px}.balance-card{flex-direction:row;padding:19px 20px;gap:15px;border-radius:14px}.mini-summary{flex:1;gap:10px}.summary-symbol{width:34px;height:34px;border-radius:10px}.summary-symbol svg{width:18px;height:18px}.mini-summary strong{font-size:19px;margin-top:4px}.mini-summary .muted{font-size:10px}.balance-card .divider{width:1px;height:44px}.action-grid{gap:10px;margin-bottom:24px}.action-card{position:relative;display:block;padding:17px 13px}.action-icon{width:33px;height:33px;border-radius:10px;margin-bottom:12px}.action-icon svg{width:20px}.action-card strong{font-size:12px}.action-card em{font-size:7px;margin-left:2px}.action-card small{font-size:9px;line-height:1.6;margin-top:5px}.action-arrow{position:absolute;top:18px;right:14px;font-size:17px}.records-panel{padding:22px 16px;border-radius:15px}.section-title h2{font-size:15px}.record-tools{margin-top:20px;flex-wrap:wrap;gap:12px}.search{width:100%;background:#f8f9f5;border-radius:7px;padding:0 10px}.search input{max-width:none;width:100%;font-size:11px;min-height:36px}.record{gap:10px;padding:16px 0}.record-name{font-size:12px;max-width:none}.record-meta{font-size:9px}.record-icon{width:35px;height:35px;border-radius:10px}.record-amount{font-size:14px}.empty{padding:35px 5px 26px}.date-heading{font-size:10px;margin-left:-5px;margin-right:-5px}.gentle-note{font-size:9px;gap:5px;margin-top:20px}.bottom-nav{display:flex;position:fixed;z-index:3;bottom:0;left:0;right:0;align-items:center;justify-content:space-around;padding:10px 30px calc(10px + env(safe-area-inset-bottom));background:#fcfdf9f5;backdrop-filter:blur(18px);border-top:1px solid #e4e9dc}.bottom-nav button{display:flex;flex-direction:column;gap:4px;font-size:9px;align-items:center;color:#a3ad99;min-width:65px}.bottom-nav button.active{color:#416d3c}.bottom-nav .bottom-add{min-width:48px;width:48px;height:43px;border-radius:14px;background:#295e44;color:white;display:grid;place-items:center}.toast{bottom:100px;min-width:190px}.stats-card,.settings-card{padding:22px 19px}.stats-totals{gap:8px}.stats-totals strong{font-size:17px}.stats-totals .muted{font-size:10px}.settings-card p{font-size:12px}dialog{width:100%;max-width:none;border-radius:22px 22px 0 0;margin:auto 0 0;max-height:94dvh}.dialog-header{padding:20px}.dialog-content{padding:20px 20px 8px}.dialog-footer{padding:15px 20px calc(20px + env(safe-area-inset-bottom))}.dialog-header h2{font-size:20px}.field-grid{grid-template-columns:1fr 1fr;gap:10px}.field-grid input{font-size:16px;padding:10px 8px}.note-field textarea{font-size:16px}.amount-input input{font-size:39px}#confirm-dialog{width:calc(100% - 32px);margin:auto;border-radius:20px}.review-check{font-size:10px}.settings-actions .primary,.settings-actions .secondary{font-size:12px;padding:12px 15px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}

.smart-input{margin:18px 0 24px;padding:16px;background:#eef3e7;border-radius:12px}.smart-input label{display:block;font-size:13px;font-weight:600;margin-bottom:10px}.smart-input textarea{width:100%;border:1px solid #c9d7c1;background:white;border-radius:8px;padding:12px;font:inherit;font-size:14px;line-height:1.7;resize:vertical}.smart-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}.smart-actions button{padding:10px 13px}.smart-input p{line-height:1.7;color:#607658}#server-token{display:block;max-width:100%;width:100%;margin:12px 0;padding:12px;border:1px solid #dae1d3;border-radius:8px}
