:root{--bg:#f6f5ee;--surface:#fff;--text:#253a32;--muted:#758078;--border:#e7e9df;--primary:#285c48;--primary-dark:#1b4636;--honey:#f2d978;--income:#38734f;--expense:#a65746;--error:#a23d35;--sans:"Microsoft YaHei","PingFang SC","Noto Sans CJK SC",sans-serif;--serif:Georgia,"Times New Roman",serif}
*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:32px}body{margin:0;background:var(--bg);color:var(--text);font-family:var(--sans);font-size:14px;line-height:1.65;-webkit-font-smoothing:antialiased}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{opacity:.52;cursor:wait}button{color:inherit}button,textarea,input,select{touch-action:manipulation}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #b58a1f;outline-offset:3px}[hidden]{display:none!important}svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}h1,h2,h3,p{margin:0}h1,h2,h3{font-weight:600}h1{font-size:30px;line-height:1.4;letter-spacing:.01em}h2{font-size:18px}h3{font-size:15px}input,select,textarea{min-width:0;color:var(--text);background:#fff;border:1px solid var(--border);border-radius:10px;padding:12px 14px}input::placeholder,textarea::placeholder{color:#91988f}input:not([type=radio]),select{width:100%;min-height:48px}label{display:block;font-size:13px;font-weight:500}label>input,label>select{display:block;margin-top:7px}form>label{margin-bottom:18px}input:focus,select:focus,textarea:focus{border-color:var(--primary)}.brand{display:inline-flex;align-items:center;gap:12px;font-size:20px;font-weight:600;letter-spacing:.02em;white-space:nowrap}.brand-mark{width:38px;height:38px;display:inline-flex;justify-content:center;align-items:center;background:var(--primary);border-radius:12px;color:var(--honey);font-size:26px;font-weight:600;line-height:1;transform:rotate(-5deg)}.brand-separator{font-weight:400;color:#b5b9ab;margin:0 5px}.brand-subtitle{font-size:15px;font-weight:400;color:var(--muted)}.eyebrow{color:var(--muted);font-size:11px;font-weight:500;letter-spacing:.12em;margin-bottom:7px}.muted{color:var(--muted)}.small{font-size:12px}.optional{font-size:11px;color:var(--muted);font-weight:400;margin-left:5px}.button{min-height:46px;border:1px solid transparent;border-radius:10px;padding:11px 22px;font-size:14px;font-weight:500;display:inline-flex;align-items:center;justify-content:center;gap:8px;transition:background .15s,transform .15s}.button:active:not(:disabled){transform:translateY(1px)}.button-primary{background:var(--primary);color:#fff}.button-primary:hover:not(:disabled){background:var(--primary-dark)}.button-secondary{background:#f3f4ec;border-color:var(--border)}.button-secondary:hover:not(:disabled){background:#e9edde}.button-full{width:100%}.icon-button{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;flex-shrink:0;border:0;background:transparent;border-radius:50%;transition:background .15s}.icon-button:hover{background:#e9ebdf}.text-button{background:none;border:0;min-height:44px;padding:8px 3px;color:var(--primary);font-size:12px;display:inline-flex;align-items:center;justify-content:center;gap:7px}.text-button:hover{text-decoration:underline;text-underline-offset:4px}.text-button.muted{color:var(--muted)}.text-button.danger{color:var(--error)}.sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);border:0;white-space:nowrap}
.boot-screen{min-height:100dvh;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:22px;color:var(--muted)}.boot-screen .brand-mark{width:54px;height:54px;font-size:38px}.auth-screen{min-height:100dvh;max-width:1160px;padding:50px 64px;margin:auto;display:grid;grid-template-columns:1.2fr 1fr;gap:100px;align-items:center}.auth-story{position:relative;min-height:650px;padding-top:15px}.auth-story .brand{margin-bottom:76px}.auth-story>.eyebrow{color:var(--primary);margin-bottom:15px}.auth-story h1{font-size:48px;line-height:1.35;letter-spacing:.04em}.auth-intro{color:var(--muted);margin-top:22px;font-size:14px;line-height:2}.auth-footnote{position:absolute;bottom:15px;left:0;color:#8f968d;font-size:11px;letter-spacing:.08em}.paper-illustration{margin-top:35px;background:#f4db81;border-radius:3px;width:265px;padding:20px 25px 24px;transform:rotate(-6deg);box-shadow:8px 10px 0 #eae9df;position:relative;left:95px;font-size:12px}.paper-illustration:before{content:"";position:absolute;top:-9px;left:95px;width:70px;height:21px;background:#eeeee0ba;transform:rotate(7deg)}.paper-top{display:block;font-size:8px;letter-spacing:.18em;opacity:.65}.paper-title{display:block;font-size:16px;font-weight:600;margin:9px 0 16px}.paper-illustration>div{display:flex;justify-content:space-between;margin:12px 0}.paper-line{display:block;border-top:1px dashed #a5904c80;margin:18px 0 10px}.paper-bottom{font-size:9px;letter-spacing:.1em;opacity:.7}.auth-panel{background:#fff;padding:42px 36px;border:1px solid var(--border);border-radius:22px}.auth-panel h2{font-size:25px;margin-bottom:9px}.auth-panel>.muted{font-size:13px;margin-bottom:32px}.auth-panel form{margin-top:20px}.auth-switch{width:100%;margin-top:13px}.auth-note{text-align:center;color:var(--muted);font-size:11px;margin-top:24px}.form-error{color:var(--error);font-size:12px;padding:10px 12px;background:#fbf1ec;border:1px solid #f3dbd1;border-radius:8px;margin:12px 0;overflow-wrap:anywhere}
.site-header{max-width:1300px;margin:auto;padding:24px 48px 22px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--border)}.header-actions{display:flex;align-items:center;gap:14px}.greeting{font-size:12px;color:var(--muted)}.workspace{display:grid;grid-template-columns:minmax(0,1.8fr) minmax(310px,1fr);gap:60px;max-width:1300px;margin:auto;padding:36px 48px 0}.ledger-column{min-width:0}.page-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin-bottom:26px}.page-heading h1{font-size:27px}.month-picker{display:flex;align-items:center;gap:3px;margin-bottom:1px}.month-picker .icon-button{width:34px;height:38px}.month-label{position:relative;font-size:13px;min-width:100px;text-align:center;cursor:pointer;min-height:38px;display:flex;align-items:center;justify-content:center}.month-label input{opacity:0;position:absolute;inset:0;padding:0;margin:0;min-height:0;cursor:pointer}.month-label input::-webkit-calendar-picker-indicator{position:absolute;width:100%;height:100%;left:0;top:0;cursor:pointer}.month-label:focus-within{outline:3px solid #b58a1f;outline-offset:1px;border-radius:5px}.overview{background:var(--honey);border-radius:20px;padding:27px 30px 22px;position:relative;overflow:hidden}.overview-main{display:flex;justify-content:space-between;align-items:center;gap:18px;padding-bottom:24px}.overview-label{font-size:13px;color:#5f592f}.overview-label span{font-size:10px;margin-left:7px;border-left:1px solid #9d8c4a77;padding-left:9px}.hero-amount{font:600 clamp(38px,4vw,57px)/1.25 var(--serif);letter-spacing:-.035em;margin-top:10px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.overview-emblem{width:110px;flex-shrink:0;text-align:center;color:#596642}.overview-emblem svg{width:70px;height:70px;stroke-width:1.5;transform:rotate(8deg)}.overview-emblem span{display:block;font-size:8px;letter-spacing:.07em;margin-top:1px;white-space:nowrap}.overview-footer{border-top:1px solid #9c8b4c40;padding-top:19px;display:flex;gap:48px;align-items:flex-end}.overview-footer p{font-size:11px;color:#6e663a;margin-bottom:4px}.overview-footer strong{font:500 25px/1.2 var(--serif);font-variant-numeric:tabular-nums}.overview-currency{font-size:8px;color:#817444;letter-spacing:.05em;margin-left:auto;align-self:flex-end;margin-bottom:3px;white-space:nowrap}.budget-section{padding:22px 2px 23px;border-bottom:1px solid var(--border)}.budget-heading{display:flex;justify-content:space-between;gap:12px;align-items:center}.budget-heading>div{display:flex;align-items:center;gap:13px}.budget-heading h2{font-size:13px}.budget-heading .muted{font-size:11px}.budget-track{height:7px;background:#e8ebdf;border-radius:5px;overflow:hidden;margin:17px 0 9px}.budget-track>span{display:block;height:100%;background:var(--primary);border-radius:5px;width:0;transition:width .45s}.budget-track.over-budget>span{background:var(--expense)}.budget-meta{display:flex;justify-content:space-between;gap:12px;font-size:11px;color:var(--muted)}.budget-meta strong{font-weight:500;color:var(--text)}.section-heading{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:24px 0 15px}.view-tabs{display:flex;gap:22px}.view-tab{border:0;background:transparent;font-size:15px;padding:10px 0;position:relative;color:#92988f;font-weight:500;min-height:44px}.view-tab.selected{color:var(--text);font-weight:600}.view-tab.selected:after{content:"";width:20px;position:absolute;bottom:0;height:3px;background:var(--primary);border-radius:4px;left:0}.search-field{display:flex;align-items:center;gap:10px;background:#fff;border:1px solid var(--border);border-radius:12px;padding:0 14px;margin-bottom:24px;min-height:48px}.search-field svg{height:18px;width:18px;stroke:#9da497}.search-field input{border:0;min-height:46px;font-size:12px;padding:10px 0;margin:0;background:transparent}.search-field:focus-within{border-color:var(--primary)}.search-field input:focus-visible{outline:0}.search-count{font-size:10px;color:var(--muted);white-space:nowrap}.day-group{margin-bottom:25px;animation:appear .25s ease both}.day-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:0 2px 11px}.day-heading h3{font-size:13px}.day-heading h3 span{font-size:10px;color:var(--muted);font-weight:400;margin-left:8px}.day-totals{font-size:10px;display:flex;gap:11px;color:var(--muted);font-variant-numeric:tabular-nums}.day-totals strong{font-weight:500}.income-text{color:var(--income)}.expense-text{color:var(--expense)}.day-entries{background:#fff;border:1px solid #e7e9dfb3;border-radius:15px;overflow:hidden}.entry-row{display:flex;align-items:center;width:100%;text-align:left;background:#fff;border:0;padding:17px 19px;gap:14px;position:relative;min-height:78px}.entry-row:hover{background:#fbfcf6}.entry-row+.entry-row:before{content:"";height:1px;position:absolute;left:69px;right:18px;top:0;background:#f0f1eb}.category-icon{width:36px;height:36px;background:#f4f1df;border-radius:11px;display:inline-flex;align-items:center;justify-content:center;font-size:19px;flex-shrink:0}.entry-copy{min-width:0;flex:1}.entry-copy strong{display:block;font-size:13px;font-weight:500}.entry-copy p{font-size:11px;color:var(--muted);overflow:hidden;white-space:nowrap;text-overflow:ellipsis;max-width:100%;margin-top:3px}.entry-money{font:500 21px/1.2 var(--serif);font-variant-numeric:tabular-nums;white-space:nowrap;letter-spacing:-.02em}.entry-money.expense-text{color:var(--text)}.entry-money .currency-symbol{font-size:13px;margin-right:2px}.ledger-footer{display:flex;gap:8px;align-items:center;justify-content:center;font-size:10px;color:#8f978b;padding:17px 0 38px;letter-spacing:.05em}.footer-dot{width:5px;height:5px;border-radius:50%;background:#abb99f}.ledger-status{padding:42px 20px;text-align:center;color:var(--muted);font-size:13px}.empty-state{padding:45px 15px 41px;text-align:center}.empty-symbol{display:inline-flex;width:56px;height:56px;align-items:center;justify-content:center;background:#ebeddf;border-radius:50%;font-size:27px;color:#91a080;margin-bottom:15px}.empty-state h3{font-size:15px;margin-bottom:7px}.empty-state p{font-size:12px;color:var(--muted);margin-bottom:13px}.inline-error{padding:22px;background:#fff5ef;border:1px solid #efd9cc;border-radius:12px;font-size:12px;color:var(--error)}.inline-error .text-button{color:var(--error)}
.assistant-column{min-width:0;padding-top:13px;position:sticky;top:26px;align-self:start}.assistant-heading{display:flex;gap:11px;align-items:center}.assistant-symbol{width:43px;height:43px;background:#e5eadc;color:#5c7352;border-radius:14px;display:flex;align-items:center;justify-content:center;font-size:30px;line-height:1}.assistant-heading .eyebrow{font-size:9px;margin-bottom:4px;letter-spacing:.1em}.assistant-heading h2{font-size:19px}.mode-badge{font-size:9px;background:#eaede2;border:1px solid #dce4d5;color:#5a7152;border-radius:20px;padding:3px 8px;margin-left:auto;white-space:nowrap}.assistant-description{font-size:12px;color:var(--muted);margin:23px 0 19px;line-height:1.9}.conversation{display:flex;flex-direction:column;gap:14px;max-height:330px;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin}.chat-message{max-width:100%;border-radius:12px;padding:12px 14px;font-size:12px;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.9;animation:appear .2s ease}.chat-message.user{align-self:flex-end;background:#e9eddf;color:#3c513b;max-width:90%;border-bottom-right-radius:3px}.chat-message.assistant{background:#fff;border:1px solid var(--border);border-top-left-radius:3px}.chat-message.error{background:#fff1e9;border:1px solid #f1d7ca;color:var(--error)}.conversation:not(:empty){margin-bottom:18px}.message-form{border:1px solid #dce1d2;border-radius:15px;background:#fff;overflow:hidden;transition:box-shadow .15s,border-color .15s}.message-form:focus-within{border-color:var(--primary);box-shadow:0 0 0 3px #285c480b}.message-form textarea{display:block;border:0;resize:vertical;width:100%;min-height:103px;max-height:260px;font-size:13px;line-height:1.9;padding:17px 17px 10px;border-radius:0}.message-form textarea:focus-visible{outline:0}.composer-footer{display:flex;justify-content:space-between;align-items:center;padding:0 12px 11px 17px;gap:10px}.composer-footer>span{font-size:9px;color:#8d9788}.send-button{height:35px;width:35px;display:flex;align-items:center;justify-content:center;border:0;border-radius:10px;background:var(--primary);color:#fff}.send-button:hover:not(:disabled){background:var(--primary-dark)}.send-button svg{width:20px;height:20px;stroke-width:1.8}.assistant-quick-actions{display:flex;align-items:center;justify-content:space-between;margin-top:5px;gap:8px}.assistant-quick-actions .text-button{font-size:11px}.assistant-quick-actions svg{height:16px;width:16px}.assistant-quick-actions>span{font-size:9px;color:#959d90}.small-note{border-top:1px dashed #d9ddcd;display:flex;gap:13px;padding-top:26px;margin-top:37px;align-items:center;color:#9ca88f}.small-note>span{font-size:40px;font-family:var(--serif);line-height:1}.small-note p{font-size:11px;line-height:1.9;letter-spacing:.08em}.draft-panel{padding:17px;border:1px solid #d5dfc9;background:#f1f4e8;border-radius:13px;margin-bottom:18px}.draft-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:13px}.draft-heading strong{font-size:13px;font-weight:600}.draft-badge{font-size:9px;padding:2px 6px;border:1px solid #cbd5bb;border-radius:5px;color:#647854}.draft-row{display:flex;justify-content:space-between;gap:12px;padding:10px 0;border-top:1px solid #dfe5d4}.draft-row-copy{min-width:0}.draft-row-copy strong{font-size:12px;font-weight:500}.draft-row-copy p{font-size:10px;color:#7c8872;overflow-wrap:anywhere;line-height:1.7;margin-top:3px}.draft-row>span{font:500 18px/1.6 var(--serif);white-space:nowrap}.draft-total{display:flex;justify-content:space-between;align-items:center;border-top:1px solid #cfd8c1;padding-top:12px;margin-top:4px;font-size:11px}.draft-total strong{font:500 24px var(--serif)}.draft-hint{font-size:10px;color:#7c8872;margin:11px 0 12px}.draft-actions{display:flex;gap:10px}.draft-actions .button{flex:1;min-width:0;padding:10px 12px;min-height:43px;font-size:12px}.draft-panel .button-secondary{background:transparent;border-color:#cdd8bf}.mobile-nav{display:none}
.modal{border:1px solid var(--border);border-radius:20px;padding:28px;width:min(460px,calc(100% - 32px));max-height:calc(100dvh - 48px);overflow:auto;color:var(--text);background:var(--bg)}.modal::backdrop{background:#20352dc4;backdrop-filter:blur(3px)}.modal-small{max-width:410px}.dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:24px}.dialog-heading h2{font-size:21px}.dialog-heading .eyebrow{font-size:10px}.dialog-heading .icon-button{margin-right:-10px}.kind-picker{display:flex;border:1px solid #dfe3d5;background:#ebeee3;border-radius:9px;padding:4px;margin-bottom:23px;gap:4px}.kind-picker label{position:relative;flex:1;text-align:center;cursor:pointer}.kind-picker input{position:absolute;width:100%;height:100%;opacity:0;left:0;top:0;cursor:pointer;margin:0}.kind-picker span{display:block;padding:8px;border-radius:6px;font-size:13px;min-height:38px}.kind-picker input:checked+span{background:#fff;box-shadow:0 1px 4px #253a320a;color:var(--primary)}.kind-picker input:focus-visible+span{outline:3px solid #b58a1f;outline-offset:1px}.amount-field input{font:500 38px/1.2 var(--serif);padding:12px 14px;letter-spacing:-.02em}.form-grid{display:grid;grid-template-columns:1fr 1.15fr;gap:15px;margin-bottom:19px}.form-grid input,.form-grid select{font-size:13px;padding-left:11px;padding-right:8px}.dialog-actions{display:flex;justify-content:flex-end;gap:15px;align-items:center;margin-top:26px}.dialog-actions .danger{margin-right:auto;font-size:12px}#budget-form>.small{margin:-7px 0 23px}#confirm-description{font-size:13px;margin-bottom:24px;white-space:pre-line}.toast{position:fixed;bottom:28px;left:50%;transform:translateX(-50%);background:#263c32;color:#fff;padding:13px 22px;border-radius:12px;max-width:min(90vw,580px);box-shadow:0 5px 24px #1d2b201c;z-index:20;font-size:12px;text-align:center;white-space:pre-wrap;animation:appear .2s ease}.toast.error{background:#8a4539}.stats-intro{font-size:11px;color:var(--muted);margin:2px 0 18px}.stats-section{margin:20px 0 26px}.stats-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:15px}.stats-heading h3{font-size:13px}.stats-heading strong{font:500 22px var(--serif)}.stats-row{background:#fff;border:1px solid var(--border);border-bottom:0;display:flex;gap:13px;align-items:center;padding:15px}.stats-row:first-of-type{border-radius:12px 12px 0 0}.stats-row:last-of-type{border-bottom:1px solid var(--border);border-radius:0 0 12px 12px}.stats-row:only-of-type{border-radius:12px}.stats-content{flex:1;min-width:0}.stats-row-top{display:flex;justify-content:space-between;font-size:12px;gap:12px;margin-bottom:7px}.stats-row-top strong{font-weight:500}.stats-bar{height:4px;background:#f0f1e9;border-radius:3px;overflow:hidden}.stats-bar>span{display:block;height:100%;background:#799570;border-radius:3px}.stats-percentage{font-size:10px;color:var(--muted);width:36px;text-align:right}.limit-notice{padding:12px 15px;border:1px solid var(--border);border-radius:10px;background:#fff;font-size:11px;color:var(--muted);margin:14px 0}.total-count{font-size:10px;color:var(--muted);text-align:center;margin-top:10px}
@keyframes appear{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}
@media(min-width:1500px){.workspace{gap:80px}.site-header{padding-top:30px;padding-bottom:26px}.workspace{padding-top:45px}.assistant-column{padding-top:15px}}
@media(max-width:1100px){.workspace{padding:28px 30px 0;gap:30px;grid-template-columns:minmax(0,1.5fr) minmax(280px,1fr)}.site-header{padding:20px 30px}.overview{padding:24px}.overview-footer{gap:27px}.overview-emblem{width:85px}.overview-emblem span{font-size:7px}.overview-currency{display:none}.budget-heading>div{display:block}.budget-heading .muted{display:block;margin-top:3px}.auth-screen{padding:38px;gap:45px}.auth-story h1{font-size:41px}.auth-panel{padding:33px 28px}}
@media(max-width:760px){body{font-size:14px}.site-header{padding:18px 21px 16px;margin:0 0 23px;border-bottom:1px solid #e7e9df99}.brand{font-size:18px;gap:10px}.brand-mark{width:32px;height:32px;font-size:23px;border-radius:10px}.brand-subtitle{font-size:12px}.brand-separator{margin:0 2px}.greeting{display:none}.header-actions{gap:0}.header-actions .icon-button{width:35px;height:35px}.header-actions svg{width:21px;height:21px}.workspace{padding:0 21px 100px;display:flex;flex-direction:column;gap:0;max-width:600px}.ledger-column{display:contents}.page-heading{order:0;margin-bottom:20px;align-items:center;gap:10px}.page-heading>.eyebrow{display:none}.page-heading .eyebrow{font-size:9px;margin-bottom:4px}.page-heading h1{font-size:23px}.month-picker{gap:0}.month-picker .icon-button{width:29px;height:35px}.month-picker svg{height:20px;width:20px}.month-label{font-size:12px;min-width:92px}.overview{order:1;border-radius:17px;padding:23px 23px 20px}.overview-main{padding-bottom:20px;gap:10px}.overview-label{font-size:12px}.hero-amount{font-size:47px;letter-spacing:-.04em;margin-top:9px}.overview-emblem{width:80px}.overview-emblem svg{width:61px;height:61px}.overview-emblem span{font-size:7px;letter-spacing:0}.overview-footer{padding-top:15px;gap:50px}.overview-footer p{font-size:10px}.overview-footer strong{font-size:24px}.budget-section{order:2;padding:18px 0 17px}.budget-heading>div{display:flex;gap:11px}.budget-heading .muted{font-size:10px;margin:0}.budget-heading h2{font-size:12px}.budget-heading .text-button{font-size:10px;min-height:35px}.budget-track{margin-top:12px;height:6px}.budget-meta{font-size:10px}.assistant-column{order:3;position:static;padding-top:23px;padding-bottom:23px;border-bottom:1px solid var(--border);margin-bottom:0}.assistant-heading{gap:9px}.assistant-symbol{width:34px;height:34px;font-size:25px;border-radius:11px}.assistant-heading h2{font-size:16px}.assistant-heading .eyebrow{font-size:8px;margin-bottom:2px}.mode-badge{font-size:8px}.assistant-description{margin:13px 0;font-size:11px}.message-form{border-radius:13px}.message-form textarea{min-height:72px;height:72px;padding:13px 14px 4px;font-size:12px}.composer-footer{padding:0 10px 9px 14px}.composer-footer>span{font-size:9px}.send-button{height:31px;width:31px;border-radius:9px}.assistant-quick-actions{margin-top:2px}.assistant-quick-actions>span{font-size:9px}.assistant-quick-actions .text-button{font-size:10px;min-height:36px}.small-note{display:none}.conversation{max-height:260px;gap:9px}.conversation:not(:empty){margin-bottom:13px}.chat-message{font-size:11px;padding:10px 12px}.draft-panel{padding:14px;margin-bottom:13px}.ledger-section{order:4;scroll-margin-top:18px}.section-heading{margin-top:18px;margin-bottom:13px}.view-tab{font-size:14px}.view-tabs{gap:21px}.section-heading>.text-button{font-size:10px}.search-field{margin-bottom:21px;min-height:45px;padding:0 12px}.search-field input{min-height:43px;font-size:11px}.search-count{font-size:9px}.day-heading h3{font-size:12px}.day-heading h3 span{font-size:10px;margin-left:7px}.day-totals{font-size:9px;gap:9px}.entry-row{padding:15px 15px;gap:12px;min-height:77px}.entry-copy strong{font-size:13px}.entry-copy p{font-size:10px;margin-top:3px}.category-icon{height:35px;width:35px;border-radius:10px;font-size:19px}.entry-money{font-size:21px}.entry-money .currency-symbol{font-size:12px}.entry-row+.entry-row:before{left:62px;right:15px}.day-group{margin-bottom:24px}.day-entries{border-radius:13px}.ledger-footer{order:5;padding:15px 0 20px;font-size:9px}.mobile-nav{display:flex;justify-content:space-around;align-items:center;position:fixed;bottom:0;left:0;right:0;z-index:10;background:#fffffff5;backdrop-filter:blur(12px);border-top:1px solid #e5e8dc;padding:6px 20px max(9px,env(safe-area-inset-bottom));min-height:71px}.mobile-nav-button,.mobile-add{width:72px;background:none;border:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-height:48px;color:#9aa18f;font-size:10px}.mobile-nav-button svg{width:21px;height:21px;stroke-width:1.5}.mobile-nav-button.active{color:var(--primary)}.mobile-add{color:var(--text);position:relative;gap:1px}.mobile-add>span:first-child{width:46px;height:46px;border-radius:15px;background:var(--honey);font-size:30px;line-height:44px;display:block;margin-top:-23px;margin-bottom:3px;box-shadow:0 0 0 5px var(--bg)}.mobile-add>span:last-child{font-size:9px}.toast{bottom:96px;padding:12px 17px;min-width:220px;font-size:11px}.auth-screen{padding:34px 23px 42px;display:flex;flex-direction:column;gap:26px;justify-content:flex-start;min-height:100dvh;max-width:480px}.auth-story{min-height:auto;align-self:stretch;padding:0}.auth-story .brand{margin-bottom:35px}.auth-story>.eyebrow{font-size:10px;margin-bottom:10px}.auth-story h1{font-size:34px;line-height:1.35}.auth-intro{font-size:12px;margin-top:15px;line-height:1.9}.paper-illustration,.auth-footnote{display:none}.auth-panel{padding:26px 24px;width:100%;border-radius:17px}.auth-panel h2{font-size:21px}.auth-panel>.muted{font-size:11px;margin-bottom:23px}.auth-panel .eyebrow{font-size:9px}.auth-panel label{font-size:12px}.auth-panel input{font-size:13px}.auth-note{margin-top:18px;font-size:10px}.modal{padding:24px 22px;border-radius:18px;max-height:calc(100dvh - 32px)}.dialog-heading{margin-bottom:20px}.dialog-heading h2{font-size:20px}.modal label{font-size:12px}.modal input,.modal select{font-size:13px}.amount-field input{font-size:36px}.form-grid{gap:11px}.dialog-actions .button{padding:11px 19px}.stats-row{padding:14px 12px;gap:10px}.stats-percentage{width:32px;font-size:9px}}
@media(max-width:370px){.workspace{padding-left:15px;padding-right:15px}.site-header{padding-left:15px;padding-right:15px}.brand-subtitle{display:none}.overview{padding:21px 20px}.hero-amount{font-size:41px}.overview-emblem{width:68px}.overview-emblem svg{width:55px}.budget-heading>div{display:block}.budget-heading .muted{margin-top:3px;font-size:9px}.page-heading h1{font-size:21px}.month-label{min-width:85px;font-size:11px}.overview-footer{gap:40px}.day-totals{font-size:8px;gap:6px}.entry-money{font-size:19px}.day-heading h3{font-size:11px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*:before,*:after{animation:none!important;transition:none!important}}
.wechat-modal{max-width:480px}.wechat-intro{font-size:13px;color:var(--muted);margin:-7px 0 22px}.wechat-modal .kind-picker{margin-bottom:13px}.wechat-modal #wechat-bind-purpose{margin-bottom:18px;line-height:1.8}.wechat-code-panel{text-align:center;border:1px solid #d8e1c8;border-radius:13px;background:#edf1e4;padding:21px 15px 13px;margin-top:20px}.wechat-code-panel output{display:block;font:600 27px/1.5 var(--serif);letter-spacing:.12em;color:var(--primary);overflow-wrap:anywhere;user-select:all;margin:8px 0}.wechat-code-panel .eyebrow{font-size:9px}.wechat-code-note{font-size:10px;color:#87917d}.wechat-results{border-top:1px solid var(--border);margin-top:27px;padding-top:15px}.row-heading{display:flex;align-items:center;justify-content:space-between;gap:15px}.row-heading h3{font-size:13px}.wechat-results-hint{font-size:11px;color:var(--muted);line-height:1.9;margin:13px 0}.wechat-message{border-bottom:1px solid var(--border);padding:14px 0}.wechat-message:last-child{border-bottom:0}.wechat-message time{font-size:10px;color:var(--muted);display:block;margin-bottom:6px}.wechat-message p{font-size:12px;line-height:1.9;white-space:pre-wrap;overflow-wrap:anywhere}.wechat-empty{font-size:11px;color:#8b9580;padding:13px 0}
.header-actions .text-button{white-space:nowrap}.ledger-filters{display:grid;grid-template-columns:1fr 1fr 1.2fr;gap:12px;margin:-9px 0 20px}.ledger-filters label{font-size:11px;color:var(--muted)}.ledger-filters select,.ledger-filters input{font-size:12px;padding:10px;min-height:44px;margin-top:5px}.filter-actions{grid-column:1/-1;display:flex;justify-content:flex-end;gap:16px;margin-top:-6px}.filter-actions .text-button{font-size:11px;min-height:38px}.filtered-summary{font-size:11px;color:var(--primary);padding:12px 14px;background:#eaf0e2;border-radius:10px;margin:-6px 0 20px;line-height:1.9}.category-budget-section{border-bottom:1px solid var(--border);padding:13px 0 18px}.category-budget-section h2{font-size:13px}.category-budget-section .text-button{font-size:11px}.category-budget-empty{font-size:11px;color:var(--muted);margin:5px 0}.category-budget-row{display:block;width:100%;padding:13px 0 5px;border:0;background:none;text-align:left}.category-budget-row+.category-budget-row{border-top:1px solid var(--border);margin-top:8px}.category-budget-top{display:flex;justify-content:space-between;gap:10px;font-size:11px}.category-budget-top strong{font-weight:500}.category-budget-top>span{color:var(--muted);font-variant-numeric:tabular-nums}.category-budget-track{display:block;height:5px;margin:8px 0 5px;background:#e7eadf;border-radius:4px;overflow:hidden}.category-budget-track>span{display:block;background:#6d8e60;height:100%;border-radius:4px}.category-budget-remaining{font-size:10px;color:var(--muted)}.category-budget-row.over-budget .category-budget-remaining{color:var(--expense)}.category-budget-row.over-budget .category-budget-track>span{background:var(--expense)}#category-budget-form>.small{margin-bottom:20px}.draft-recovery-status{font-size:11px;line-height:1.8;margin:6px 0 10px;overflow-wrap:anywhere}.profile-modal{max-width:450px}.profile-modal form>label{margin-bottom:16px}.password-section{border-top:1px solid var(--border);padding-top:23px;margin-top:26px}.password-section>p{margin:7px 0 20px}.stats-row{width:100%;text-align:left;min-height:65px}.stats-row:hover{background:#f9faf4}.share-chart{display:flex;align-items:center;gap:28px;margin:10px 0 24px}.share-donut{width:154px;height:154px;flex-shrink:0;border-radius:50%;display:flex;align-items:center;justify-content:center;transform:rotate(-.1deg)}.share-center{display:flex;flex-direction:column;align-items:center;justify-content:center;background:var(--bg);border-radius:50%;width:108px;height:108px}.share-center>span{font-size:11px;color:var(--muted)}.share-center>strong{font-size:21px;font-weight:500;margin-top:4px}.share-insight{font-size:12px;color:var(--muted);max-width:240px;line-height:2}.chart-section{border-top:1px solid var(--border);padding:23px 0 18px;margin-top:27px}.chart-section h3{font-size:14px}.chart-description{font-size:10px;line-height:1.8;color:var(--muted);margin:6px 0 10px}.chart-legend{font-size:10px;display:flex;gap:18px;margin-bottom:10px}.chart-scroll{overflow-x:auto;overscroll-behavior-x:contain;padding:3px 0 8px;scrollbar-width:thin}.bar-chart{display:flex;gap:6px;align-items:flex-end;min-height:165px;border-bottom:1px solid var(--border)}.daily-chart{min-width:800px}.monthly-chart{min-width:300px;gap:12px}.chart-column{display:flex;flex:1;flex-direction:column;align-items:center;gap:7px;background:transparent;border:0;padding:0;min-width:20px;min-height:165px;justify-content:flex-end;border-radius:6px}.chart-column:hover{background:#e9eddf}.chart-column:focus-visible{outline-offset:0}.bar-pair{height:135px;display:flex;align-items:flex-end;justify-content:center;gap:3px;width:100%;padding:0 2px}.chart-bar{display:block;width:34%;max-width:28px;min-width:4px;border-radius:3px 3px 0 0}.chart-bar.income{background:#63845b}.chart-bar.expense{background:#b37b68}.chart-label{font-size:9px;color:var(--muted);white-space:nowrap;padding-bottom:5px}.trend-summary{margin-top:15px}.trend-summary-row{display:grid;grid-template-columns:.8fr 1fr 1fr 1.1fr;gap:10px;font-size:10px;padding:10px 0;border-bottom:1px solid var(--border);font-variant-numeric:tabular-nums}.trend-summary-row strong{font-weight:500;text-align:right}.calendar-intro{font-size:11px;color:var(--muted);margin:4px 0 20px}.calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px}.calendar-weekday{text-align:center;font-size:11px;color:var(--muted);padding:4px 0 10px}.calendar-day{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:4px;background:#fff;border:1px solid var(--border);border-radius:10px;padding:10px 2px;min-height:85px;min-width:0;overflow:hidden}.calendar-day strong{font-size:14px;font-weight:500}.calendar-day>span{font-size:9px;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-variant-numeric:tabular-nums}.calendar-day.today{border-color:var(--primary)}.calendar-day.today strong{color:var(--primary);font-weight:700}.calendar-day.selected{background:#e6eddb;border-color:var(--primary)}.calendar-day:hover{background:#eef2e5}.calendar-zero{color:#adb4a5;margin-top:4px}.calendar-footnote{font-size:10px;color:var(--muted);margin-top:15px}
@media(max-width:760px){.category-budget-section{order:2;padding:10px 0 16px}.category-budget-section h2{font-size:12px}.category-budget-section .text-button{font-size:10px}.header-actions>.text-button{font-size:10px;padding:7px 6px;min-height:44px}.site-header{padding-right:13px}.view-tabs{gap:17px}.view-tab{font-size:13px}.ledger-filters{gap:9px;grid-template-columns:1fr 1fr;margin-top:-7px}.ledger-filters>label:nth-child(3){grid-column:1/-1}.ledger-filters select,.ledger-filters input{font-size:12px}.ledger-filters>label:nth-child(3) input{max-width:none}.filter-actions{margin-top:-3px;min-height:42px}.filtered-summary{font-size:10px}.mobile-nav{padding-left:6px;padding-right:6px}.mobile-nav-button,.mobile-add{width:58px}.share-chart{gap:20px}.share-donut{width:128px;height:128px}.share-center{width:90px;height:90px}.share-center>strong{font-size:19px}.share-insight{font-size:11px}.calendar-grid{gap:4px}.calendar-day{min-height:78px;padding:8px 2px;border-radius:8px;gap:4px}.calendar-day strong{font-size:13px}.calendar-day>span{font-size:8px}.calendar-weekday{font-size:10px}.trend-summary-row{grid-template-columns:.8fr 1fr 1fr;gap:4px;font-size:9px}.trend-summary-row strong{grid-column:2/-1;text-align:right}.chart-description{font-size:10px}.bar-chart{min-height:156px}.chart-column{min-height:156px}.bar-pair{height:125px}.assistant-quick-actions .text-button{min-height:44px}}
@media(max-width:370px){.brand{gap:7px;font-size:16px}.brand-mark{width:29px;height:29px}.header-actions>.text-button{padding:6px 4px}.share-chart{gap:14px}.share-donut{width:112px;height:112px}.share-center{width:78px;height:78px}.share-insight{font-size:10px}.calendar-day>span{font-size:7px}.calendar-day{min-height:74px}.section-heading{gap:6px}.view-tabs{gap:14px}.section-heading>.text-button{font-size:9px}}

.book-context{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px 18px;margin:-12px 0 23px;padding:0 0 16px;border-bottom:1px solid var(--border)}.book-context>label{display:flex;align-items:center;gap:12px;font-size:11px;color:var(--muted);max-width:100%;min-width:0}.book-context select{font-size:12px;min-height:44px;max-width:270px;margin:0;padding:9px 32px 9px 12px;background-color:#fff}.book-context>div{display:flex;align-items:center;gap:13px}.book-context>p{width:100%;margin:0;line-height:1.8}.book-role{display:inline-block;font-size:10px;color:var(--primary);background:#e8edde;border-radius:24px;padding:5px 10px;white-space:nowrap}.book-context .text-button{font-size:11px;min-height:44px}.family-budget-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;border-bottom:1px solid var(--border);padding:0 0 20px;margin:4px 0 12px}.family-budget-summary>div{display:flex;flex-direction:column;gap:7px}.family-budget-summary span{font-size:10px;color:var(--muted)}.family-budget-summary strong{font-family:var(--serif);font-size:20px;font-weight:500;overflow-wrap:anywhere}.family-budget-summary>p{grid-column:1/-1;margin:0;font-size:10px;line-height:1.8}.family-modal{max-width:730px;width:min(730px,calc(100% - 32px))}.family-modal h3,.approvals-modal h3{font-size:15px;font-weight:600}.family-modal h4,.approvals-modal h4{font-size:13px;font-weight:600;margin:24px 0 12px}.family-books{margin:18px 0 24px;border-block:1px solid var(--border)}.family-book-row{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:15px 0}.family-book-row+.family-book-row{border-top:1px solid var(--border)}.family-book-row>div{min-width:0}.family-book-row strong{font-size:13px;font-weight:500;overflow-wrap:anywhere}.family-book-row p{margin:5px 0 0;font-size:10px}.family-book-row .text-button{white-space:nowrap;font-size:11px;min-height:44px}.family-setup-grid{display:grid;grid-template-columns:1fr 1fr;gap:28px;margin:23px 0}.family-setup-grid form{min-width:0}.family-setup-grid h3{margin-bottom:15px}.family-modal label,.approvals-modal label{font-size:12px}.family-modal input,.family-modal select,.approvals-modal input,.approvals-modal select,.approvals-modal textarea{font-size:13px;min-height:44px}.family-modal .button,.approvals-modal .button{font-size:12px;padding:11px 16px;min-height:44px}.family-modal .small,.approvals-modal .small{line-height:1.85}.family-section{border-top:1px solid var(--border);margin-top:24px;padding-top:23px}.family-section h3{margin-bottom:16px}.family-section>label{margin-bottom:16px}.family-section>.form-grid{margin-bottom:16px}.family-section>.small{margin:12px 0 17px}.family-checkbox{display:flex;align-items:center;gap:8px;justify-content:flex-start;min-height:44px}.family-checkbox input[type=checkbox]{display:inline-block;appearance:auto;min-height:18px;width:18px;flex:none;margin:0}.family-member-row{padding:17px 0;border-bottom:1px solid var(--border)}.family-member-row strong{font-size:13px;font-weight:500}.family-member-row>p{margin:6px 0 0}.member-controls{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin-top:10px}.member-controls select{width:auto;max-width:160px;margin:0;padding:8px 30px 8px 10px}.member-controls>label{margin:0}.member-controls .text-button{font-size:11px;min-height:44px}.family-code{padding:17px 20px;background:#edf1e5;border-radius:12px;margin-top:17px}.family-code output{display:block;user-select:all;overflow-wrap:anywhere;font:600 18px/1.8 monospace;color:var(--primary)}.family-code p{margin:8px 0 0;font-size:10px}.family-code .text-button{min-height:44px;font-size:11px}.family-notice{background:#e9efde;color:var(--primary);padding:12px 15px;border-radius:10px;line-height:1.8;margin:14px 0}.family-owner-actions{display:flex;align-items:flex-end;justify-content:space-between;gap:25px}.family-owner-actions form{flex:1;max-width:340px}.family-owner-actions .danger{min-height:44px;font-size:11px}.family-owner-actions form label{margin-bottom:12px}.approvals-modal{max-width:760px;width:min(760px,calc(100% - 32px))}.approvals-toolbar{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin:20px 0}.approval-view-tabs{display:flex;flex-wrap:wrap;gap:3px}.approval-view-tabs button{background:none;color:var(--muted);padding:10px 12px;border:0;border-radius:9px;min-height:44px;font-size:11px}.approval-view-tabs button.selected{background:#e7edda;color:var(--primary);font-weight:600}.approvals-toolbar>.button{flex-shrink:0;white-space:nowrap}.approval-list{display:grid;gap:10px}.approval-card{display:block;width:100%;text-align:left;padding:17px 19px;border:1px solid var(--border);border-radius:13px;background:#fff;color:var(--text)}.approval-card:hover{border-color:#a4b492;background:#fbfcf6}.approval-card strong{font-size:13px;font-weight:500;overflow-wrap:anywhere}.approval-card>p{font-size:10px;line-height:1.8;margin:6px 0 10px}.approval-card>.approval-amount{font-size:22px;font-family:var(--serif);font-weight:500}.approval-status{font-size:10px;line-height:1.4;padding:5px 9px;border-radius:22px;background:#eef0e9;white-space:nowrap;color:#6e7e66}.approval-status.status-pending{background:#fbefd3;color:#8a6a29}.approval-status.status-approved{background:#e4eedb;color:#3c704a}.approval-status.status-rejected,.approval-status.status-blocked{background:#f7e8de;color:#9b5a3a}.approval-detail{border-top:1px solid var(--border);padding-top:24px;margin-top:25px}.approval-detail>.row-heading{align-items:flex-start}.approval-detail h3{font-size:19px;line-height:1.6;overflow-wrap:anywhere}.approval-detail>p{margin:10px 0}.approval-detail>.approval-detail-amount{font:500 36px/1.4 var(--serif);color:var(--primary);margin:16px 0}.approval-description{white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px;line-height:1.9}.approval-figures{display:grid;grid-template-columns:1fr 1fr;gap:15px;margin:21px 0}.approval-figures>div{display:flex;flex-direction:column;gap:8px}.approval-figures span{font-size:10px;color:var(--muted)}.approval-figures strong{font:500 24px/1.4 var(--serif)}.approval-note{font-size:11px;line-height:1.9;background:#edf1e5;padding:12px 15px;border-radius:10px}.approval-people>div{padding:9px 0;border-bottom:1px solid var(--border);font-size:12px}.approval-actions{display:flex;flex-wrap:wrap;gap:10px;margin:20px 0}.approval-detail textarea{width:100%;padding:12px;border:1px solid var(--border);border-radius:10px;line-height:1.8;font-family:var(--sans);resize:vertical}.approval-timeline{font-size:11px;color:var(--muted);line-height:1.9;padding-left:18px}.approval-timeline>li{padding:7px 0;overflow-wrap:anywhere}.approvals-modal form>label{margin-bottom:16px}#auth-family-switch{display:block;margin-top:7px}#family-title,#approvals-title{line-height:1.5}
@media(max-width:760px){.book-context{order:-1;margin:0 0 12px;gap:7px;padding-bottom:13px}.book-context>label{width:100%;justify-content:space-between}.book-context select{width:calc(100% - 65px);max-width:none;font-size:12px}.book-context>div{width:100%;justify-content:space-between}.book-context>p{font-size:10px}.book-context .text-button{font-size:11px}.family-budget-summary{order:2;gap:10px;margin-bottom:6px}.family-budget-summary strong{font-size:19px}.family-budget-summary span{font-size:9px}.family-modal,.approvals-modal{width:calc(100% - 20px);max-width:600px;padding:23px 18px}.family-setup-grid{grid-template-columns:1fr;gap:25px}.family-setup-grid form+form{border-top:1px solid var(--border);padding-top:22px}.family-setup-grid .button{width:100%}.family-book-row{gap:9px}.family-book-row strong{font-size:12px}.family-book-row .text-button{font-size:10px}.family-owner-actions{display:block}.family-owner-actions form{max-width:none}.family-owner-actions>.danger{margin-top:22px}.member-controls{gap:8px}.member-controls select{max-width:120px}.member-controls>label{font-size:10px}.member-controls .text-button{font-size:10px}.family-section{padding-top:20px}.approvals-toolbar{display:block}.approvals-toolbar>.button{width:100%;margin-top:12px}.approval-view-tabs{flex-wrap:nowrap;overflow-x:auto;gap:2px;padding-bottom:3px}.approval-view-tabs button{flex-shrink:0;font-size:10px;padding:9px 8px}.approval-card{padding:15px}.approval-card .row-heading{gap:10px}.approval-card strong{font-size:12px}.approval-card>.approval-amount{font-size:23px}.approval-card>p{font-size:10px}.approval-detail h3{font-size:17px}.approval-figures strong{font-size:23px}.approval-actions .button{flex:1;min-width:100px}.approval-description{font-size:12px}.family-code{padding:15px}.family-code output{font-size:16px}.site-header .header-actions{gap:3px}.site-header .brand{gap:7px}.header-actions>.text-button{padding-inline:5px}.site-header .brand-subtitle{display:none}}

.entry-copy .entry-family-meta{font-size:9px;color:var(--muted);margin-top:4px}.entry-approval-tag{display:inline-block;font-size:9px;color:#8a6a29;background:#f7edcf;border-radius:10px;padding:3px 7px;margin-top:5px}.family-modal label>span.small{display:block;margin-top:8px}.modal input[readonly]{background:#ecefe4;color:var(--muted)}

.filing-info{font-size:11px;line-height:1.6;text-align:center;margin:14px 0 0;color:#758078}.icp-filing-link{font-size:11px;color:#758078;text-decoration:none;white-space:nowrap}.icp-filing-link:hover{text-decoration:underline}.ledger-footer{flex-wrap:wrap}.ledger-footer .icp-filing-link{flex-basis:100%;text-align:center}
