:root{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;color:#243b34;background:#f6f7f3;font-synthesis:none;--green:#1f5c4c;--ink:#243b34;--muted:#7a8780;--line:#e8ece5}*{box-sizing:border-box}body{margin:0;font-size:14px;line-height:1.55;-webkit-tap-highlight-color:transparent}button,input,select{font:inherit}button,a,input,select{touch-action:manipulation}button,a{user-select:none}button{cursor:pointer;border:0;background:none;color:inherit}button:disabled{opacity:.5;cursor:wait}a{color:inherit;text-decoration:none}input,select{min-width:0;font-size:16px;color:var(--ink);border:1px solid var(--line);border-radius:12px;padding:12px;background:#f9faf7;outline:none}input:focus,select:focus{border-color:var(--green);box-shadow:0 0 0 3px #1f5c4c12}button:focus-visible,a:focus-visible{outline:3px solid #81ac96;outline-offset:4px}h1,h2,p{margin:0}h2{font-size:16px;font-weight:650;letter-spacing:.02em}svg{width:20px;height:20px;vertical-align:middle;flex-shrink:0}i{display:inline-flex;font-style:normal;align-items:center;justify-content:center}[hidden]{display:none!important}.brand{display:flex;align-items:center;gap:11px;font-size:18px;font-weight:650;letter-spacing:1px}.brand img{border-radius:11px}.brand small{display:block;font-size:8px;letter-spacing:2px;font-weight:500;color:var(--muted);margin-top:3px}.primary,.secondary{min-height:48px;display:inline-flex;align-items:center;justify-content:center;gap:12px;border-radius:13px;padding:12px 20px;font-weight:600}.primary{background:var(--green);color:white}.primary:hover{background:#184b3e}.secondary{border:1px solid #dce5dc;background:white}.full{width:100%}.text-button{font-size:12px;display:inline-flex;align-items:center;gap:5px;color:var(--green);min-height:36px;padding:4px 0}.text-button svg{width:14px;height:14px}.icon-button{height:40px;width:40px;display:inline-flex;align-items:center;justify-content:center;border-radius:50%;flex-shrink:0}.icon-button:hover{background:#eaf0e7}.muted{color:var(--muted);font-size:12px}.eyebrow{font-size:10px;letter-spacing:2px;color:var(--muted)}.error{color:#b44435;font-size:13px;min-height:20px;margin:10px 0}.offline{padding:12px 20px;padding-top:max(12px,env(safe-area-inset-top));background:#faedce;color:#785b1d;text-align:center;position:relative;z-index:5;font-size:12px}.loading{min-height:100svh;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:20px;color:var(--muted)}.loading img{border-radius:16px}.sidebar{position:fixed;inset:0 auto 0 0;width:224px;background:#fdfefb;border-right:1px solid var(--line);padding:40px 26px;z-index:10;display:flex;flex-direction:column}.nav-caption{margin:60px 16px 16px;color:#99a29a;font-size:11px;letter-spacing:2px}.desktop-nav{display:grid;gap:9px}.desktop-nav button{display:flex;align-items:center;gap:15px;text-align:left;min-height:49px;padding:12px 16px;border-radius:12px;color:var(--muted)}.desktop-nav button.active{background:#eaf1e7;color:var(--green);font-weight:600}.sidebar-add{margin-top:35px}.sidebar-bottom{margin-top:auto;color:#87958b;font-size:11px;letter-spacing:1px}.sidebar-bottom .text-button{display:block;margin-top:10px;font-size:11px}.status-dot{display:inline-block;width:6px;height:6px;background:#8cae80;border-radius:50%;margin-right:7px}.main{margin-left:224px;max-width:1480px;padding:0 48px 30px}.topbar{height:106px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);margin-bottom:37px}.desktop-greeting{font-size:12px;color:#98a199;letter-spacing:1px}.topbar-right{display:flex;align-items:center;gap:10px;font-size:12px}.user-avatar{width:29px;height:29px;display:grid;place-items:center;border:1px solid #dde7d5;border-radius:50%;background:#eaf0df;color:var(--green);font-size:11px}.topbar-right #username{max-width:120px;overflow:hidden;text-overflow:ellipsis}.page-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:30px;gap:15px}.page-heading h1{font-size:30px;font-weight:650;letter-spacing:1px;margin-top:5px}.title-dot{color:#96b68a}.month-control{display:flex;align-items:center;gap:3px;background:white;border:1px solid var(--line);border-radius:11px;padding:3px}.month-control .icon-button{width:30px;height:32px}.month-control svg{width:15px}.month-label{position:relative;font-size:12px;font-weight:600;min-width:85px;text-align:center;cursor:pointer}.month-label input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer;padding:0;border:0}.summary-grid{display:grid;grid-template-columns:1.5fr 1fr;gap:20px;margin-bottom:28px}.balance-card{background:#205747;color:#fff;border-radius:20px;padding:27px 30px;min-height:228px;position:relative;overflow:hidden}.balance-card:after{content:"";position:absolute;border:1px solid #ffffff0e;border-radius:50%;width:300px;height:300px;top:-150px;right:-120px;pointer-events:none}.balance-top{display:flex;align-items:center;justify-content:space-between;font-size:12px;color:#d0dfd2}.balance-mark{font-size:10px;color:#a8c3b2;letter-spacing:1px}.balance-value{display:flex;align-items:baseline;gap:8px;margin:17px 0 25px}.balance-value>span{font-size:23px;color:#c8dacc}.balance-value strong{font-size:42px;font-weight:500;line-height:1.2;letter-spacing:-1px;font-variant-numeric:tabular-nums;word-break:break-all}.balance-bottom{display:flex;gap:45px;border-top:1px solid #ffffff1c;padding-top:17px}.balance-bottom>div{min-width:35%}.balance-bottom span{display:flex;align-items:center;gap:5px;font-size:10px;color:#b9cec0}.balance-bottom svg{width:12px;height:12px}.balance-bottom strong{font-weight:500;font-size:18px;display:block;margin-top:4px;font-variant-numeric:tabular-nums}.budget-card,.panel{background:white;border:1px solid var(--line);border-radius:20px;padding:25px}.budget-card{display:flex;flex-direction:column}.section-title{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:20px}.section-title .text-button{min-height:24px}.budget-number{font-size:25px;font-weight:550;margin:3px 0 6px;font-variant-numeric:tabular-nums}.budget-card>p{font-size:11px;color:var(--muted);margin-bottom:21px}.progress-track{height:5px;background:#edf1e9;border-radius:6px;overflow:hidden;margin-top:auto}.progress-track>span{display:block;height:100%;width:0;background:#a9c58e;transition:width .3s}.budget-foot{display:flex;justify-content:space-between;font-size:10px;color:var(--muted);margin-top:10px}.content-grid{display:grid;grid-template-columns:1.5fr 1fr;gap:20px}.count{font-size:10px;font-weight:400;color:var(--muted);margin-left:6px}.empty-state{padding:32px 10px;display:flex;flex-direction:column;align-items:center;text-align:center;gap:8px;color:#8a968b;min-height:220px;justify-content:center}.empty-state .empty-icon{height:52px;width:52px;border-radius:18px;background:#f1f5eb;color:#8ca27c;display:grid;place-items:center;margin-bottom:9px}.empty-state p{font-size:13px;color:#65786b}.empty-state small{font-size:11px}.empty-state button{margin-top:6px}.entry-row{display:flex;align-items:center;width:100%;gap:12px;min-height:70px;text-align:left;border-bottom:1px solid #eff2ed;padding:12px 0}.entry-row:last-child{border:0}.entry-row:hover .entry-title{color:var(--green)}.entry-icon{width:41px;height:41px;display:flex;align-items:center;justify-content:center;border-radius:13px;background:var(--tint,#f1f4ea);color:var(--tone,#759165);flex-shrink:0}.entry-icon svg{width:19px;height:19px}.entry-detail{min-width:0;flex:1}.entry-title{font-size:13px;font-weight:550;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}.entry-meta{font-size:10px;color:#9aa399;margin-top:4px}.entry-amount{white-space:nowrap;font-weight:550;font-size:14px;font-variant-numeric:tabular-nums}.income-amount{color:var(--green)}.expense-amount{color:#4a5147}.category-row{margin-bottom:20px}.category-row:last-child{margin-bottom:0}.category-info{display:flex;align-items:center;font-size:12px;gap:8px;margin-bottom:8px}.category-info .dot{width:7px;height:7px;border-radius:50%;background:var(--tone)}.category-info .category-value{margin-left:auto;font-variant-numeric:tabular-nums}.category-info small{color:var(--muted);font-size:10px;width:38px;text-align:right}.category-track{height:5px;background:#f1f3ee;border-radius:5px;overflow:hidden}.category-track span{display:block;height:100%;background:var(--tone);border-radius:5px}.footer-note{display:flex;justify-content:space-between;color:#a0aaa0;font-size:10px;margin-top:30px;letter-spacing:1px}.footer-note span{font-size:8px;letter-spacing:2px}.mobile-brand,.bottom-nav{display:none}.records-toolbar{display:flex;gap:12px;margin-bottom:20px}.search{display:flex;align-items:center;gap:10px;background:white;border:1px solid var(--line);border-radius:12px;padding:0 15px;flex:1;color:var(--muted)}.search input{border:0;background:none;box-shadow:none;width:100%;font-size:13px;padding-left:0}.records-toolbar select{font-size:13px;background:white}.filter-row{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px}.segmented{display:inline-flex;background:#eaf0e6;border-radius:11px;padding:4px;gap:4px}.segmented button{min-height:34px;padding:5px 18px;border-radius:8px;font-size:12px;color:#879281}.segmented button.active{background:white;color:var(--green);box-shadow:0 2px 5px #243b3408;font-weight:600}.day-heading{display:flex;justify-content:space-between;font-size:11px;color:#84927e;padding:20px 0 6px}.day-heading:first-child{padding-top:0}.day-heading span:last-child{font-size:10px}.report-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-bottom:20px}.report-stats .panel>span{font-size:11px;color:var(--muted)}.report-stats strong{display:block;font-size:26px;font-weight:550;margin:10px 0 3px;font-variant-numeric:tabular-nums;word-break:break-all}.report-stats small{display:block;font-size:10px;color:var(--muted)}.report-stats strong small{display:inline;font-size:12px}.trend-panel{margin-bottom:20px}.daily-chart{display:flex;align-items:flex-end;height:160px;gap:6px;border-bottom:1px solid var(--line);padding-top:20px}.day-bar{flex:1;min-width:0;height:100%;display:flex;align-items:flex-end;position:relative}.day-bar .bar{width:100%;background:#a9bf92;border-radius:4px 4px 0 0;min-height:2px}.day-bar:hover .bar{background:var(--green)}.chart-labels{display:flex;justify-content:space-between;color:var(--muted);font-size:10px;margin-top:9px}.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.settings-grid h2{margin-bottom:15px}.setting-row{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:20px 0;border-bottom:1px solid var(--line)}.setting-row:last-child{border:0;padding-bottom:0}.setting-row strong{font-size:12px;font-weight:550}.setting-row p{color:var(--muted);font-size:10px;margin-top:5px}.setting-row select{font-size:12px;max-width:145px}.setting-row>a{white-space:nowrap}.settings-note{font-size:12px;color:var(--muted);line-height:1.9;margin:12px 0 20px}.setting-action{display:flex;align-items:center;gap:13px;width:100%;min-height:72px;text-align:left;border-bottom:1px solid var(--line)}.setting-action:last-of-type{border:0}.setting-action>i:first-child{color:#7e9971}.setting-action>i:last-child{margin-left:auto;color:#a7b1a3}.setting-action span{font-size:12px}.setting-action small{display:block;color:var(--muted);font-size:10px;margin-top:4px}.signout-panel>small{display:block;margin-top:20px;font-size:10px;color:#a9b1a4}.danger-text{color:#a95b48}.notice{padding:14px 18px;border:1px solid #e6c6ab;background:#fff5e9;border-radius:12px;color:#8b623e;margin-bottom:18px;font-size:12px}
.sheet{padding:25px 28px 28px;border:0;border-radius:24px;width:min(480px,calc(100% - 32px));max-height:90dvh;overflow-y:auto;color:var(--ink);background:#fff;box-shadow:0 25px 100px #14261e30}.sheet::backdrop{background:#14291e60;backdrop-filter:blur(3px)}.sheet-handle{display:none}.sheet-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.sheet-header h2{font-size:19px}.type-choice{width:100%}.type-choice button{flex:1}.amount-field{display:flex;align-items:center;border-bottom:1px solid var(--line);margin:20px 0;gap:10px}.amount-field>span{font-size:26px;color:var(--muted)}.amount-field input{font-size:43px;width:100%;border:0;padding:8px 0 15px;background:none;box-shadow:none;font-weight:500;border-radius:0}.field-caption{font-size:11px;color:var(--muted)}.category-picker{display:grid;grid-template-columns:repeat(5,1fr);gap:9px;margin:10px 0 22px}.category-choice{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:5px;padding:8px 0;border:1px solid transparent;border-radius:12px;font-size:10px;color:#899282;min-height:65px}.category-choice i{width:30px;height:30px;border-radius:9px;background:#f3f5ef}.category-choice i svg{width:18px}.category-choice.active{background:#edf3e7;border-color:#b6cda7;color:var(--green)}.category-choice.active i{background:#e4eedc}.form-row{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-bottom:15px}.form-row label,.note-label{font-size:11px;color:var(--muted);display:block}.form-row input,.form-row select,.note-label input{display:block;width:100%;margin-top:7px;min-height:47px;line-height:1.3}.note-label input::placeholder{font-size:12px}.sheet-actions{display:flex;gap:12px;margin-top:15px}.sheet-actions .primary{flex:1}.delete-button{width:48px;background:#fbefea;color:#ad6551;border-radius:13px}.small-sheet{max-width:410px}.install-icon{display:block;border-radius:18px;margin:10px auto 20px}.install-steps{padding-left:20px;font-size:13px;line-height:2.2}.confirm-actions{display:flex;gap:12px;margin-top:25px}.confirm-actions>*{flex:1}.toast{position:fixed;z-index:100;bottom:35px;left:50%;transform:translateX(-50%);background:#203b30;color:white;border-radius:12px;padding:13px 22px;font-size:13px;box-shadow:0 10px 30px #0002;max-width:calc(100vw - 40px);text-align:center}.login{min-height:100svh;display:grid;grid-template-columns:1fr 1fr;max-width:1440px;margin:auto}.login-copy{padding:55px 70px;display:flex;flex-direction:column}.login-body{margin:auto 0;padding:60px 0}.login-body>.eyebrow{font-size:12px;letter-spacing:3px}.login h1{font-size:49px;line-height:1.5;letter-spacing:2px;font-weight:550;margin:20px 0}.login-body>p:not(.error){font-size:15px;color:var(--muted);line-height:2}.login-cta{margin:32px 0 14px;min-width:240px;justify-content:space-between}.login-body>.login-note{font-size:11px!important;line-height:1.8!important}.login-art{background:#e5ecde;display:flex;flex-direction:column;align-items:center;justify-content:center;margin:20px 20px 20px 0;border-radius:28px;position:relative;overflow:hidden}.paper{background:#fbfaf3;padding:36px 33px;width:290px;transform:rotate(-7deg);box-shadow:15px 22px 0 #c9d5bf,0 20px 50px #62765a1a;border-radius:3px}.paper-top{display:flex;justify-content:space-between;font-size:9px;letter-spacing:2px;color:#8d9d7d}.paper-top span{font-size:22px;line-height:.8}.paper-rule{height:1px;background:#dce3d3;margin:16px 0 25px}.paper-title{font-size:36px;line-height:1.6;letter-spacing:3px;font-family:Georgia,"Songti SC",serif;margin-bottom:30px}.paper-title em{font-style:normal;color:#76915e}.paper-line{display:flex;justify-content:space-between;border-bottom:1px solid #e4e8d9;padding:12px 0;font-size:11px;color:#8a977d;letter-spacing:2px}.paper-footer{font-size:7px;letter-spacing:1.8px;margin-top:24px;color:#8d9d7d}.art-caption{position:absolute;bottom:40px;font-size:10px;letter-spacing:2px;color:#8a9b7f}
@media(min-width:1500px){.main{margin-left:auto;margin-right:auto;padding-left:265px;max-width:1450px}}@media(max-width:1100px){.sidebar{width:190px;padding:35px 18px}.main{margin-left:190px;padding:0 28px 25px}.summary-grid,.content-grid{grid-template-columns:1.3fr 1fr}.balance-mark{display:none}.balance-card{padding:25px}.balance-value strong{font-size:35px}.budget-card,.panel{padding:21px}.settings-grid{grid-template-columns:1fr}.login-copy{padding:40px}.login h1{font-size:40px}}
@media(max-width:760px){.sidebar,.desktop-greeting{display:none}.main{margin:0;padding:0 20px calc(108px + env(safe-area-inset-bottom));max-width:600px;margin-inline:auto}.topbar{height:calc(69px + env(safe-area-inset-top));padding-top:env(safe-area-inset-top);margin-bottom:26px;border:0}.mobile-brand{display:flex;gap:9px;align-items:center;font-size:14px}.mobile-brand img{border-radius:8px}.topbar-right{gap:6px}.topbar-right #username{display:none}.topbar-right .icon-button{width:34px;height:34px}.topbar-right svg{width:17px}.user-avatar{width:27px;height:27px}.page-heading{margin-bottom:23px;align-items:flex-end}.eyebrow{font-size:8px;letter-spacing:1.6px}.page-heading h1{font-size:27px;margin-top:4px}.month-control{gap:0;padding:2px;border-radius:10px}.month-control .icon-button{width:25px;height:29px}.month-label{font-size:11px;min-width:82px}.summary-grid{grid-template-columns:1fr;gap:14px;margin-bottom:22px}.balance-card{padding:25px;border-radius:19px;min-height:226px}.balance-top{font-size:11px}.balance-mark{display:block;font-size:9px}.balance-value{margin:17px 0 23px}.balance-value strong{font-size:41px}.balance-value>span{font-size:22px}.balance-bottom{gap:35px;padding-top:14px}.balance-bottom>div{min-width:36%}.balance-bottom strong{font-size:18px}.budget-card{border-radius:17px;padding:18px 20px}.budget-card .section-title{margin-bottom:12px}.budget-card h2{font-size:13px}.budget-number{font-size:21px;margin:0 0 4px}.budget-card>p{margin-bottom:16px;font-size:10px}.budget-foot{font-size:9px}.content-grid{grid-template-columns:1fr;gap:18px}.panel{padding:20px;border-radius:17px}.section-title{margin-bottom:17px}.section-title h2{font-size:14px}.section-title .text-button{font-size:11px}.entry-row{min-height:68px}.entry-title{font-size:13px}.entry-meta{font-size:10px}.entry-amount{font-size:14px}.empty-state{min-height:180px;padding:22px 8px}.bottom-nav{position:fixed;bottom:0;left:0;right:0;z-index:20;display:flex;align-items:center;justify-content:space-around;background:#fffffff5;backdrop-filter:blur(20px);border-top:1px solid #e6eae1;padding:10px max(10px,env(safe-area-inset-right)) calc(10px + env(safe-area-inset-bottom)) max(10px,env(safe-area-inset-left));height:calc(74px + env(safe-area-inset-bottom))}.bottom-nav button{width:18%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;font-size:9px;color:#9aa598;min-height:48px}.bottom-nav button.active{color:var(--green)}.bottom-nav button.active span{font-weight:650}.bottom-nav svg{width:20px;height:20px}.bottom-nav .add-tab{background:var(--green);color:#fff;width:46px;height:46px;min-height:46px;border-radius:15px;box-shadow:0 5px 12px #1f5c4c22}.bottom-nav .add-tab svg{width:24px;height:24px}.footer-note{margin-top:23px;font-size:9px}.footer-note span{font-size:7px}.records-toolbar{gap:8px;margin-bottom:16px}.search{padding:0 10px}.search input{font-size:12px;padding-top:11px;padding-bottom:11px}.search svg{width:16px}.records-toolbar select{font-size:12px;max-width:105px;padding:10px 6px}.filter-row .muted{font-size:10px}.segmented button{padding:5px 15px;min-height:32px;font-size:11px}.records-panel{padding:17px}.report-stats{grid-template-columns:repeat(2,1fr);gap:12px}.report-stats .panel:last-child{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:10px}.report-stats .panel:last-child strong{margin:0}.report-stats strong{font-size:23px}.report-stats .panel:last-child>small{font-size:9px}.daily-chart{height:140px;gap:3px}.settings-grid{gap:15px}.setting-row{gap:10px}.sheet{position:fixed;inset:auto 0 0;margin:0;width:100%;max-width:100%;border-radius:25px 25px 0 0;max-height:calc(100dvh - env(safe-area-inset-top) - 12px);padding:11px 23px calc(24px + env(safe-area-inset-bottom));overscroll-behavior:contain}.sheet-handle{display:block;width:32px;height:4px;background:#d9e0d3;border-radius:5px;margin:0 auto 12px}.sheet-header{margin-bottom:15px}.sheet-header h2{font-size:18px}.amount-field{margin:16px 0}.amount-field input{font-size:40px;padding-bottom:12px}.category-picker{gap:4px;margin-bottom:18px}.category-choice{min-height:60px}.form-row{gap:12px}.sheet-actions{margin-top:10px}.toast{bottom:calc(90px + env(safe-area-inset-bottom));width:max-content;max-width:calc(100% - 35px);font-size:12px;padding:12px 18px}.small-sheet{padding-top:12px}.small-sheet:not(:has(.sheet-handle)){padding-top:25px}.confirm-actions{margin-top:18px}.login{display:block;min-height:100svh}.login-copy{padding:calc(35px + env(safe-area-inset-top)) 30px calc(25px + env(safe-area-inset-bottom));min-height:100svh}.login-body{padding:45px 0}.login h1{font-size:40px;line-height:1.5;margin:22px 0}.login-art{display:none}.login-body>.eyebrow{font-size:11px}.login-body>p:not(.error){font-size:14px}.login-cta{min-width:100%;margin-top:35px}.login-body>.login-note{font-size:11px!important}.login-copy>.text-button{font-size:12px}.login-copy .brand{font-size:17px}}
@media(max-width:360px){.main{padding-left:14px;padding-right:14px}.page-heading h1{font-size:25px}.balance-card{padding:22px}.balance-mark{font-size:8px}.balance-value strong{font-size:35px}.sheet{padding-left:18px;padding-right:18px}.month-label{min-width:73px;font-size:10px}.topbar{margin-bottom:20px}}@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}

.login-form{max-width:340px;margin-top:25px}.login-form label{display:block;font-size:12px;color:var(--muted);margin-top:13px}.login-form input{display:block;width:100%;margin-top:6px;background:#fff}.login-form .login-cta{width:100%;margin:20px 0 12px}.brand{font-size:16px}.brand small{font-size:7px}.entry-title{display:block}.entry-meta{display:block}@media(max-width:760px){.login-body{padding:25px 0}.login h1{font-size:34px;line-height:1.45;margin:18px 0}.login-form{max-width:none}.login-form input{padding:11px}.login-copy{padding-top:calc(28px + env(safe-area-inset-top))}}
