.hb-hero-card{background:linear-gradient(180deg,color-mix(in srgb,var(--brand) 6%,var(--surface)),var(--surface))}.hb-hero{display:flex;align-items:center;gap:18px}.hb-hero-ring{flex:none}.hb-hero-main{flex:1 1 200px;min-width:0}.hb-hero-title{font-size:18px;font-weight:650;letter-spacing:-.2px}.hb-hero-sub{margin-top:2px;font-size:12.5px;color:var(--text-faint)}.hb-hero-actions{margin-top:12px;display:flex;gap:8px;flex-wrap:wrap}.hb-hero-stats{flex:0 1 340px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.hb-hero-stats .stat{padding:10px 12px}.hb-hero-stats .stat .v{font-size:19px}.hb-alert{border-color:color-mix(in srgb,var(--amber) 42%,var(--border));background:color-mix(in srgb,var(--amber) 7%,var(--surface))}.hb-alert-head{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.hb-alert-mark{display:grid;place-items:center;width:32px;height:32px;flex:none;border-radius:10px;color:var(--amber);background:color-mix(in srgb,var(--amber) 16%,var(--surface))}.hb-alert-text{flex:1 1 160px;min-width:0}.hb-alert-title{font-size:14px;font-weight:600}.hb-alert-meta{font-size:12.5px;color:var(--text-dim);overflow-wrap:anywhere}.hb-alert-chips{display:flex;gap:6px;flex-wrap:wrap;margin-top:10px}.hb-chip-btn{min-height:32px;padding:0 11px;border-radius:999px;border:1px solid var(--border-strong);background:var(--surface);color:var(--text-dim);font-size:12.5px;font-weight:550;cursor:pointer}.hb-chip-btn:hover{border-color:var(--brand);color:var(--brand-text)}.hb-grid{display:grid;gap:10px;grid-template-columns:repeat(auto-fill,minmax(238px,1fr))}.hb-habit{border:1px solid var(--border);border-radius:12px;background:var(--surface);padding:8px 10px 9px;transition:border-color .16s,background .16s}.hb-habit-main{display:flex;align-items:center;gap:11px;width:100%;min-height:56px;padding:4px 2px;border:0;border-radius:10px;background:transparent;color:inherit;text-align:left;cursor:pointer}.hb-habit-main:focus-visible,.hb-cell:focus-visible,.hb-w-cell:focus-visible{outline:2px solid var(--brand);outline-offset:1px}.hb-icon{display:grid;place-items:center;width:38px;height:38px;flex:none;border-radius:11px}.hb-habit-text{flex:1;min-width:0}.hb-habit-name{display:block;font-size:15px;font-weight:550;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.hb-habit-meta{display:block;margin-top:1px;font-size:12px;color:var(--text-faint)}.hb-habit-state{display:grid;place-items:center;width:26px;height:26px;flex:none;border-radius:50%;border:2px solid var(--border-strong);color:transparent}.hb-habit.done .hb-habit-state{color:#fff}.hb-foot{display:flex;align-items:center;gap:8px;padding:2px 2px 0}.hb-week{display:flex;gap:4px;flex:1}.hb-week-dot{width:15px;height:15px;border-radius:5px;background:var(--surface-3)}.hb-week-dot.today{box-shadow:0 0 0 2px color-mix(in srgb,var(--brand) 45%,transparent)}.hb-week-hint{font-size:11px;color:var(--text-faint);flex:none}.hb-matrix{min-width:max-content;display:flex;flex-direction:column;gap:5px}.hb-matrix-head{display:flex;gap:4px;margin-left:104px;margin-bottom:1px}.hb-matrix-head span{width:26px;text-align:center;font-size:10.5px;color:var(--text-faint)}.hb-matrix-head span.hb-date-current{color:var(--brand-text);font-weight:700}.hb-matrix-row{display:flex;align-items:center;gap:4px}.hb-matrix-name{width:96px;flex:none;font-size:13px;font-weight:550;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.hb-cell{position:relative;width:26px;height:26px;flex:none;padding:0;border-radius:7px;border:1px solid var(--border);cursor:pointer;transition:transform .12s}.hb-cell:active{transform:scale(.9)}.hb-cell.on:after{content:"";display:block;width:7px;height:7px;margin:0 auto;border-radius:50%;background:#fff;opacity:.92}.hb-cell.today{box-shadow:0 0 0 2px color-mix(in srgb,var(--brand) 40%,transparent)}.hb-overview{display:flex;align-items:center;gap:18px;flex-wrap:wrap}.hb-overview-stats{flex:1 1 260px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.hb-rank{display:flex;flex-direction:column;gap:11px}.hb-rank-row{display:grid;grid-template-columns:96px minmax(0,1fr) 54px;align-items:center;gap:10px}.hb-rank-name{font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.hb-rank-track{height:8px;border-radius:999px;background:var(--surface-3);overflow:hidden}.hb-rank-fill{display:block;height:100%;border-radius:999px;transition:width .3s ease}.hb-rank-value{font-size:12.5px;text-align:right;color:var(--text-dim);font-variant-numeric:tabular-nums}.hb-picker{margin-bottom:14px}.hb-picker .tabs{max-width:100%;overflow-x:auto}.hb-heat-block{margin-top:14px}.hb-heat{display:flex;align-items:flex-start;gap:8px}.hb-heat-weekdays{display:flex;flex-direction:column;gap:3px;flex:none;font-size:10px;color:var(--text-faint)}.hb-heat-grid{display:grid;grid-auto-flow:column}.hb-heat-cell{border-radius:3px}.hb-heat-cell.future{opacity:.3}.hb-heat-foot{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-top:10px}.hb-legend{display:flex;align-items:center;gap:4px;font-size:11px;color:var(--text-faint)}.hb-legend-cell{width:11px;height:11px;border-radius:3px}.hb-add{display:grid;gap:14px;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));align-items:start}.hb-add-icons,.hb-add-actions{grid-column:1 / -1}.hb-icon-pick{display:flex;gap:6px;flex-wrap:wrap}.hb-icon-btn{display:grid;place-items:center;width:38px;height:38px;border-radius:10px;border:1px solid var(--border);background:var(--surface-2);color:var(--text-dim);cursor:pointer}.hb-icon-btn:hover{border-color:var(--border-strong);color:var(--text)}.hb-icon-btn.on{border-color:var(--brand);background:var(--brand-soft);color:var(--brand-text)}.hb-color-pick{display:flex;gap:8px;flex-wrap:wrap}.hb-color-btn{width:30px;height:30px;border-radius:9px;border:1px solid var(--border);cursor:pointer;padding:0}.hb-color-btn.on{border:2px solid var(--text)}.hb-manage-list{display:flex;flex-direction:column;gap:8px}.hb-manage-item{display:flex;align-items:center;gap:11px;padding:10px 12px;border:1px solid var(--border);border-radius:11px;background:var(--surface)}.hb-manage-item.off{background:var(--surface-2)}.hb-manage-item.off .hb-manage-name{color:var(--text-dim)}.hb-manage-text{flex:1;min-width:0}.hb-manage-name{display:flex;align-items:center;gap:6px;font-size:14.5px;font-weight:550;overflow-wrap:anywhere}.hb-manage-meta{font-size:12px;color:var(--text-faint);margin-top:1px}.hb-manage-tools{display:flex;align-items:center;gap:4px;flex:none}.hb-manage-tools .btn.icon{width:32px;min-height:32px}.hb-edit{flex:1;display:grid;gap:10px}.hb-file{display:none}.hb-w{display:flex;flex-direction:column;gap:8px;height:100%}.hb-w-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(80px,1fr));gap:8px;flex:1 1 auto;align-content:start}.hb-w-cell{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-height:66px;padding:6px 4px;border:1px solid var(--border);border-radius:11px;background:var(--surface-2);color:var(--text-dim);cursor:pointer}.hb-w-cell.on{color:#fff;border-color:transparent}.hb-w-cell-name{max-width:100%;font-size:11.5px;font-weight:550;line-height:1.25;text-align:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.hb-w-cell-state{font-size:10px;opacity:.8}.hb-w-foot{display:flex;align-items:center;justify-content:space-between;gap:8px;flex:none}.hb-w-ring{display:flex;align-items:center;gap:10px;height:100%}.hb-w-ring-title{font-size:13.5px;font-weight:600}.hb-w-ring-sub{font-size:12px;color:var(--text-faint)}.hb-w-rank{display:flex;flex-direction:column;gap:7px;height:100%}.hb-w-rank-row{display:flex;align-items:center;gap:7px;min-width:0}.hb-w-rank-icon{display:grid;place-items:center;width:24px;height:24px;flex:none;border-radius:8px}.hb-w-rank-name{flex:0 1 88px;min-width:0;font-size:12.5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.hb-w-rank-track{flex:1 1 40px;min-width:30px;height:6px;border-radius:999px;background:var(--surface-3);overflow:hidden}.hb-w-rank-fill{display:block;height:100%;border-radius:999px}.hb-w-rank-value{flex:none;font-size:12px;color:var(--text-dim);font-variant-numeric:tabular-nums}.hb-w-rank-value strong{font-size:13.5px;color:var(--text)}.hb-w-rank-best{flex:none;font-size:10.5px;color:var(--text-faint)}.hb-w-heat{display:flex;flex-direction:column;gap:8px;height:100%}.hb-w-heat-foot{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:auto}@media(max-width:860px){.hb-hero{flex-wrap:wrap;gap:14px}.hb-hero-stats{flex:1 1 100%}.hb-grid{grid-template-columns:minmax(0,1fr)}.hb-habit-main{min-height:60px}.hb-overview{gap:14px}.hb-overview-stats{flex:1 1 100%}.hb-rank-row{grid-template-columns:84px minmax(0,1fr) 50px;gap:8px}.hb-matrix-name{width:78px}.hb-matrix-head{margin-left:86px}.hb-manage-item{flex-wrap:wrap}.hb-manage-text{flex:1 1 140px}.hb-manage-tools{flex:1 1 100%;justify-content:flex-end}.hb-add{grid-template-columns:minmax(0,1fr)}.hb-w-cell{min-height:62px}.hb-w-rank-best{display:none}}@media(prefers-reduced-motion:reduce){.hb-cell,.hb-habit,.hb-rank-fill{transition:none}}.hb-page{max-width:1200px;margin:0 auto;font-variant-numeric:tabular-nums}.hb-page-heading{display:flex;align-items:baseline;justify-content:space-between;gap:12px;padding:2px 0 14px}.hb-page-heading h1{font-size:18px;line-height:1.5;font-weight:600;letter-spacing:0;margin:0}.hb-page-date{font-size:12px;color:var(--text-faint);font-variant-numeric:tabular-nums}.hb-page-content{display:grid;gap:14px;min-width:0}.hb-page .card{min-width:0;margin:0;padding:18px;border:1px solid var(--border);border-radius:14px;box-shadow:none}.hb-page .card-head{margin-bottom:14px}.hb-page .card-title{font-size:14px;font-weight:600;line-height:1.5}.hb-page .card-sub{color:var(--text-dim);font-size:12px;line-height:1.8;margin-top:4px}.hb-page .btn{gap:6px;min-height:32px;border-radius:8px;font-size:12px}.hb-page button:focus-visible{outline:2px solid var(--brand);outline-offset:3px}.hb-page button:disabled{cursor:default}.hb-page .stat{padding:12px;border-radius:10px}.hb-page .stat .k{font-size:12px;color:var(--text-dim);line-height:1.6}.hb-page .stat .v{font-size:21px;font-weight:650;line-height:1.45;letter-spacing:-.4px}.hb-page .hb-hero-card{padding:20px;border-color:color-mix(in srgb,var(--brand) 16%,var(--border));background:linear-gradient(115deg,color-mix(in srgb,var(--brand) 7%,var(--surface)),var(--surface) 72%)}.hb-hero{gap:18px;flex-wrap:wrap}.hb-hero-title{font-size:16px;line-height:1.5;font-weight:650}.hb-hero-sub{margin-top:6px;color:var(--text-dim);font-size:13px}.hb-hero-actions{margin-top:12px}.hb-hero-stats{gap:10px;flex-basis:310px}.hb-page .hb-hero-stats .stat{background:color-mix(in srgb,var(--surface) 65%,transparent);border:1px solid var(--border)}.hb-page .hb-alert{background:color-mix(in srgb,var(--amber) 6%,var(--surface));border-color:color-mix(in srgb,var(--amber) 25%,var(--border));padding:14px 18px}.hb-alert-mark{width:40px;height:40px;border-radius:12px}.hb-alert-meta{margin-top:4px}.hb-alert-chips{padding-left:42px;margin-top:12px}.hb-chip-btn{min-height:32px}.hb-grid{gap:10px;grid-template-columns:repeat(auto-fit,minmax(min(100%,250px),1fr))}.hb-habit{padding:10px 12px;border-radius:11px;background:var(--surface-2)}.hb-habit:hover{border-color:var(--border-strong)}.hb-habit-main{gap:10px;min-height:50px}.hb-icon{width:34px;height:34px;border-radius:10px}.hb-habit-name{font-size:13px;font-weight:600;line-height:1.6}.hb-habit-meta{margin-top:4px;line-height:1.7;color:var(--text-dim)}.hb-habit-state{width:24px;height:24px;border-width:1.5px}.hb-foot{border-top:1px solid var(--border);margin-top:8px;padding-top:10px}.hb-week{gap:6px}.hb-week-dot{width:14px;height:14px;border-radius:5px}.hb-week-hint{font-size:12px;color:var(--text-dim)}.hb-matrix{gap:10px;padding:4px}.hb-matrix-head{margin-left:124px;gap:6px}.hb-matrix-head span{width:32px;font-size:11px}.hb-matrix-row{gap:6px}.hb-matrix-name{width:118px;font-size:13px}.hb-cell{width:32px;height:32px;border-radius:8px}.hb-page-stats .hb-page-content{grid-template-columns:repeat(2,minmax(0,1fr))}.hb-page-stats .hb-page-content>.card:first-child,.hb-page-stats .hb-page-content>.card:nth-child(4),.hb-page-stats .hb-page-content>.card:last-child{grid-column:1 / -1}.hb-overview{gap:20px}.hb-rank{gap:12px}.hb-rank-row{grid-template-columns:minmax(100px,1fr) minmax(60px,1fr) 46px;gap:14px}.hb-rank-name{display:flex;align-items:center;gap:9px;font-weight:550}.hb-rank-symbol{display:grid;place-items:center;width:30px;height:30px;border-radius:9px;flex:none}.hb-rank-track{height:7px}.hb-page .stat-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.hb-heat-block{margin-top:18px}.hb-heat-foot{margin-top:12px}.hb-page-manage .hb-page-content{grid-template-columns:minmax(280px,.85fr) minmax(0,1.4fr);align-items:start}.hb-page-manage .hb-page-content>.card:last-child{grid-column:1 / -1}.hb-add{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 12px}.hb-add>.field:first-child,.hb-add>.field:nth-child(3){grid-column:1 / -1}.hb-add>.field:nth-child(2){grid-column:1 / -1}.hb-page .field label{font-size:12px;font-weight:600;color:var(--text-dim);margin-bottom:8px}.hb-page .input{min-height:36px;border-radius:8px;font-size:12px}.hb-icon-pick{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.hb-icon-btn{width:100%;height:48px;display:flex;flex-direction:column;justify-content:center;gap:5px;border-radius:10px}.hb-icon-btn span{font-size:11px;line-height:1.3}.hb-color-btn{display:grid;place-items:center;width:28px;height:28px;border-radius:50%}.hb-color-btn.on{border:2px solid var(--surface);box-shadow:0 0 0 2px var(--text-dim)}.hb-color-btn svg{color:#fff}.hb-add-actions .btn{width:100%}.hb-manage-list{gap:12px}.hb-manage-item{padding:12px;border-radius:10px;flex-wrap:wrap}.hb-manage-text{flex:1 1 160px}.hb-manage-name{font-size:14px;font-weight:600;line-height:1.6}.hb-manage-meta{color:var(--text-dim);line-height:1.7;margin-top:4px}.hb-manage-tools{flex:1 1 100%;justify-content:flex-end;padding-top:10px;border-top:1px solid var(--border)}.hb-manage-item.off .hb-icon{opacity:.55}.hb-delete{color:var(--text-faint)}.hb-delete:hover{color:var(--red)}.hb-page .row{flex-wrap:wrap;gap:10px}.hb-page .hint{line-height:1.8;color:var(--text-dim)}.hb-w-cell{border-radius:12px;min-height:64px;gap:5px}.hb-w-cell-name{font-size:12px}.hb-w-cell-state{font-size:11px}@media(max-width:1000px){.hb-page-manage .hb-page-content{grid-template-columns:minmax(0,1fr)}.hb-page-manage .hb-add{grid-template-columns:repeat(2,minmax(0,1fr))}.hb-page-manage .hb-add>.field:nth-child(2){grid-column:auto}.hb-page-manage .hb-add>.field:first-child{grid-column:auto}.hb-icon-pick{grid-template-columns:repeat(8,minmax(0,1fr))}}@media(max-width:700px){.hb-page-heading{gap:12px;padding:4px 0 16px}.hb-page-symbol{width:42px;height:42px;border-radius:12px}.hb-page-heading h1{font-size:19px}.hb-page-content{gap:14px}.hb-page .card,.hb-page .hb-hero-card{padding:14px;border-radius:12px}.hb-page-stats .hb-page-content{grid-template-columns:minmax(0,1fr)}.hb-hero{gap:16px}.hb-hero-main{flex-basis:140px}.hb-hero-title{font-size:15px}.hb-hero-stats{flex-basis:100%;gap:8px}.hb-page .stat{padding:12px 10px}.hb-page .stat .v{font-size:19px}.hb-alert-chips{padding-left:0}.hb-page .stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.hb-page-manage .hb-add{grid-template-columns:minmax(0,1fr)}.hb-icon-pick{grid-template-columns:repeat(4,minmax(0,1fr))}.hb-page .card-head{margin-bottom:16px}}@media(min-width:1200px){.hb-manage-tools{flex:0 0 auto;border-top:0;padding-top:0}}@media(max-width:700px){.hb-page .btn{min-height:36px}.hb-page-symbol{width:36px;height:36px}.hb-page .stat .v{font-size:19px}.hb-alert-mark{width:32px;height:32px}}.hb-recent .hb-matrix{width:100%;min-width:0;gap:6px;padding:2px}.hb-recent .hb-matrix-head{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));margin:0 0 4px 108px;gap:6px}.hb-recent .hb-matrix-head span{width:auto;font-size:11px}.hb-recent .hb-matrix-head small{display:block;font-size:10px;font-weight:400;margin-top:2px}.hb-recent .hb-matrix-row{display:grid;grid-template-columns:102px repeat(5,minmax(0,1fr));gap:6px}.hb-recent .hb-matrix-name{width:auto;font-size:12px}.hb-recent .hb-cell{width:26px;height:26px;justify-self:center;border-radius:6px}.hb-recent .hb-cell:disabled{opacity:.35;cursor:default}.hb-recent .hb-matrix{max-width:540px}.hb-more-records{display:flex;align-items:center;gap:4px;background:none;border:0;color:var(--brand-text);padding:0;margin-top:14px;cursor:pointer;font-size:12px}.hb-history-toolbar{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.hb-history-date{display:flex;align-items:center;gap:4px}.hb-history-date .input{width:150px}.hb-history-search{width:200px;margin-left:auto}.hb-history-summary{font-size:12px;color:var(--text-dim);margin:16px 0 10px}.hb-history-list{display:flex;flex-direction:column}.hb-history-row{display:flex;align-items:center;gap:10px;padding:12px 0;border-bottom:1px solid var(--border)}.hb-history-row:last-child{border-bottom:0}.hb-history-done{color:var(--brand-text);background:var(--brand-soft);border-color:transparent}@media(max-width:700px){.hb-recent .card-head{flex-wrap:nowrap;gap:8px}.hb-recent .card-head>div:first-child{flex-basis:80px}.hb-recent .card-head .btn{flex:none;font-size:11px;padding:0 6px}.hb-recent .hb-matrix-head{margin-left:82px;gap:4px}.hb-recent .hb-matrix-row{grid-template-columns:78px repeat(5,minmax(0,1fr));gap:4px}.hb-history-search{margin-left:0;width:100%}}.hb-page .card-head>div:first-child{display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 10px}.hb-page .card-title{font-size:13px;font-weight:600;line-height:1.6}.hb-page .card-head .card-sub{margin-top:0;font-size:11px;line-height:1.6;color:var(--text-faint)}.hb-page .hb-hero-title{font-size:14px;font-weight:600}.hb-page .hb-hero-sub{font-size:12px;margin-top:3px}@media(max-width:700px){.hb-page-heading{padding:2px 0 12px}.hb-page-heading h1{font-size:16px}.hb-page .card-head{margin-bottom:12px}}.hb-page-stats .hb-overview{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;align-items:stretch}.hb-page-stats .hb-overview-stats{display:contents}.hb-overview-rate{display:flex;align-items:center;justify-content:center;gap:12px;min-width:0;min-height:88px;padding:12px;border-radius:10px;background:var(--brand-soft)}.hb-overview-rate>span{font-size:12px;color:var(--brand-text)}.hb-page-stats .hb-overview .stat{display:flex;flex-direction:column;justify-content:center;gap:3px;min-height:88px;padding:12px 18px}@media(max-width:700px){.hb-page-stats .hb-overview{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.hb-overview-rate{justify-content:flex-start;gap:8px;padding:10px;min-height:80px}.hb-page-stats .hb-overview .stat{min-height:80px;padding:10px 14px}}.hb-page .stat .v .hb-stat-unit{font-size:11px;font-weight:400;color:var(--text-faint);letter-spacing:0;margin-left:3px}.hb-page .hb-history-card{padding:16px 18px}.hb-history-card .hb-history-toolbar{gap:10px}.hb-history-card .hb-history-date{gap:4px}.hb-history-card .date-picker-trigger{width:auto;min-height:32px;padding:5px 10px;font-size:12px;gap:8px;border-radius:8px}.hb-history-card .hb-history-date>.btn{width:28px;min-height:28px;padding:0}.hb-history-today{border:0;background:none;color:var(--brand-text);font-size:11px;padding:5px 7px;cursor:pointer}.hb-history-today:disabled{opacity:.4}.hb-history-card .hb-history-search{width:180px;min-height:32px;padding:6px 10px;font-size:12px}.hb-history-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px;margin-top:16px}.hb-history-days button{display:flex;flex-direction:column;align-items:center;gap:5px;padding:9px 4px;background:var(--surface-2);border:1px solid transparent;border-radius:8px;color:var(--text-dim);cursor:pointer}.hb-history-days button span{font-size:10px}.hb-history-days button strong{font-size:12px;font-weight:550}.hb-history-days button.selected{background:var(--brand-soft);border-color:color-mix(in srgb,var(--brand) 25%,var(--border));color:var(--brand-text)}.hb-history-days button:disabled{opacity:.35}.hb-history-card .hb-history-summary{display:flex;justify-content:space-between;gap:8px;font-size:11px;margin:18px 0 2px}.hb-history-summary strong{color:var(--text);font-weight:550}.hb-history-card .hb-history-row{padding:10px 0;gap:10px}.hb-history-card .hb-history-row .hb-icon{width:30px;height:30px;border-radius:9px}.hb-history-card .hb-manage-name{font-size:12px}.hb-history-card .hb-manage-meta{font-size:11px;margin-top:1px}.hb-history-action{display:inline-flex;align-items:center;justify-content:center;gap:4px;flex:none;min-width:56px;height:26px;padding:0 8px;font-size:11px;font-weight:500;border:1px solid var(--border);border-radius:7px;color:var(--text-dim);background:var(--surface);cursor:pointer}.hb-history-action:hover{border-color:var(--brand);color:var(--brand-text)}.hb-history-action.hb-history-done{background:var(--brand-soft);border-color:transparent;color:var(--brand-text)}.hb-history-action:disabled{opacity:.4;cursor:default}.date-picker-grid button:disabled{opacity:.3;cursor:default}@media(max-width:700px){.hb-page .hb-history-card{padding:14px}.hb-history-card .hb-history-search{width:100%;margin-left:0}.hb-history-days{gap:4px;margin-top:12px}.hb-history-days button{padding:8px 2px}.hb-history-action{height:30px}}.hb-history-days{position:relative;display:grid;grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:calc((100% - 36px) / 7);overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x proximity;scrollbar-width:none;touch-action:pan-x pan-y;user-select:none;cursor:grab}.hb-history-days::-webkit-scrollbar{display:none}.hb-history-days:active{cursor:grabbing}.hb-history-days button{scroll-snap-align:start;min-width:0}@media(max-width:700px){.hb-history-days{grid-auto-columns:calc((100% - 24px) / 7)}}.hb-heat.fluid{width:100%;gap:10px}.hb-heat.fluid>.scroll-x{flex:1;min-width:0}.hb-heat.fluid .hb-heat-weekdays{gap:5px}.hb-heat.fluid .hb-heat-grid{width:100%}.hb-heat.fluid .hb-heat-cell{border-radius:5px}.hb-trend{display:flex;gap:10px;padding-top:8px}.hb-trend-axis{display:flex;flex-direction:column;justify-content:space-between;font-size:10px;color:var(--text-faint);height:140px;padding:0 0 18px;flex:none}.hb-trend-plot{flex:1;min-width:0;position:relative}.hb-trend-plot svg{display:block;width:100%;height:140px;overflow:visible}.hb-trend-values{position:absolute;top:0;width:100%;height:140px;pointer-events:none}.hb-trend-values>span{position:absolute;transform:translate(-50%,-50%)}.hb-trend-values i{display:block;width:6px;height:6px;border-radius:50%;background:var(--brand);border:2px solid var(--surface);box-sizing:content-box}.hb-trend-values small{position:absolute;bottom:16px;left:50%;transform:translate(-50%);color:var(--text-dim);font-size:10px}.hb-trend-labels{display:flex;justify-content:space-between;gap:3px;font-size:10px;color:var(--text-faint);margin-top:2px}.hb-page-manage .hb-manage-item{padding:14px;gap:12px}.hb-page-manage .hb-manage-item .hb-icon{width:40px;height:40px;border-radius:12px}.hb-page-manage .hb-manage-name{font-size:14px;font-weight:600}.hb-page-manage .hb-manage-meta{font-size:12px;line-height:1.6;margin-top:3px}.hb-page-manage .hb-manage-tools{gap:6px}.hb-page-manage .hb-manage-tools .btn{font-size:12px;min-height:30px}.hb-page-manage .hb-manage-tools .btn.icon svg{width:18px;height:18px}@media(max-width:700px){.hb-page-manage .hb-manage-tools{padding-top:8px;justify-content:flex-start}.hb-page-manage .hb-manage-tools .btn:nth-child(3){margin-left:auto}.hb-page-manage .hb-manage-tools .btn{min-height:32px}.hb-heat.fluid .hb-heat-cell{border-radius:4px}.hb-trend{gap:6px}.hb-trend-labels{font-size:9px}}.hb-page-manage .hb-manage-tools .btn.icon{padding:0;flex:0 0 32px}.hb-page-manage .hb-manage-tools .btn svg{flex-shrink:0}.hb-page-manage .hb-manage-tools .btn:not(.icon){font-size:13px}.hb-heat-range{display:flex;justify-content:space-between;gap:8px;margin-bottom:10px;color:var(--text-dim);font-size:11px}.hb-heat-range>span:last-child{color:var(--text-faint)}.hb-heat-months{display:grid;gap:5px;margin-bottom:7px;height:14px;line-height:14px;font-size:10px;color:var(--text-dim)}.hb-heat.fluid .hb-heat-weekdays{margin-top:21px;font-size:10px}.hb-heat-months>span{white-space:nowrap;min-width:0;overflow:visible}.hb-heat-months>span{font-weight:600;color:var(--text-dim)}.hb-heat-month-note{margin-top:10px;font-size:10px;color:var(--text-dim);line-height:1.6}.hb-recent .hb-matrix-head>span{padding:4px 0;line-height:1.5;border-radius:8px}.hb-recent .hb-matrix-head>span.hb-date-current{border:0;background:var(--brand-soft);color:var(--brand-text);font-weight:600}.hb-recent .hb-matrix-head>span.hb-date-current small{color:var(--brand-text);opacity:.8}.hb-page .hb-edit-actions{justify-content:flex-end}.hb-page-manage .hb-page-content{grid-template-columns:minmax(0,1fr)}.hb-page-manage .settings-form-dialog .hb-add-modal{margin-top:20px;grid-template-columns:minmax(0,1fr);gap:16px}.hb-page-manage .settings-form-dialog .hb-add-modal>.field{grid-column:1 / -1}.hb-page-manage .settings-form-dialog .hb-icon-pick{grid-template-columns:repeat(8,minmax(0,1fr))}.hb-page-manage .settings-form-dialog .hb-add-actions{display:flex;justify-content:flex-end;gap:8px;padding-top:8px;border-top:1px solid var(--border)}.hb-page-manage .settings-form-dialog .hb-add-actions .btn{width:auto;min-height:34px;padding:0 14px}.hb-page-manage .settings-form-dialog>.card-title{font-size:15px}@media(max-width:700px){.hb-page-manage .settings-form-dialog .hb-icon-pick{grid-template-columns:repeat(4,minmax(0,1fr))}}.td-hero-card .card-head{align-items:center}.td-hero-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.td-alert{display:flex;align-items:center;gap:12px;margin-top:12px;padding:10px 12px;border-radius:var(--radius-sm);background:color-mix(in srgb,var(--amber) 14%,var(--surface));border:1px solid color-mix(in srgb,var(--amber) 34%,transparent)}.td-alert.sm{margin-top:0;margin-bottom:10px}.td-alert-body{min-width:0;flex:1}.td-alert-title{font-weight:650;font-size:14px;color:var(--text)}.td-alert-text{font-size:12.5px;color:var(--text-dim);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.td-alert-actions{display:flex;gap:6px;flex-shrink:0}.td-dot{display:inline-block;width:8px;height:8px;border-radius:50%;flex-shrink:0}.td-dot.lg{width:12px;height:12px}.td-tag{display:inline-flex;align-items:center;height:18px;padding:0 6px;border-radius:4px;font-size:11px;font-weight:650;letter-spacing:.2px}.td-chip-row{display:flex;flex-wrap:wrap;gap:6px;align-items:center}.td-chip-sep{width:1px;height:16px;background:var(--border);margin:0 2px}.td-chip{display:inline-flex;align-items:center;gap:5px;min-height:32px;padding:0 10px;border-radius:999px;border:1px solid var(--border);background:var(--surface-2);color:var(--text-dim);font-size:12.5px;cursor:pointer;transition:background .15s,color .15s,border-color .15s}.td-chip:hover{border-color:var(--border-strong);color:var(--text)}.td-chip.on{background:var(--brand-soft);border-color:color-mix(in srgb,var(--brand) 45%,transparent);color:var(--brand-text);font-weight:600}.td-chip.static{cursor:default;opacity:.75}.td-quick{display:flex;flex-direction:column;gap:10px;align-items:flex-start}.td-quick .input{width:100%;min-height:44px;font-size:16px}.td-list{display:flex;flex-direction:column}.td-row{padding:10px 0;border-bottom:1px solid var(--border)}.td-row:last-child{border-bottom:none}.td-row.is-overdue{background:color-mix(in srgb,var(--expense) 5%,transparent);border-radius:var(--radius-sm);padding-left:8px;padding-right:8px}.td-row.is-done .td-row-title{color:var(--text-faint);text-decoration:line-through}.td-row-top{display:flex;align-items:flex-start;gap:10px}.td-check{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;min-width:24px;border-radius:50%;border:1.8px solid var(--border-strong);background:var(--surface);color:transparent;cursor:pointer;margin-top:1px;transition:background .15s,border-color .15s,color .15s}.td-check.sm{width:20px;height:20px;min-width:20px}.td-check:hover{border-color:var(--brand)}.td-check.on{background:var(--brand);border-color:var(--brand);color:#fff}.td-row-main{flex:1;min-width:0}.td-row-title{font-size:14.5px;font-weight:550;line-height:1.4;word-break:break-word}.td-pin{display:inline-flex;margin-right:4px;color:var(--amber);vertical-align:-1px}.td-row-meta{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:4px;font-size:12px;color:var(--text-dim)}.td-meta-item{display:inline-flex;align-items:center;gap:4px}.td-row-actions{display:flex;align-items:center;gap:4px;flex-shrink:0}.td-progress{height:5px;margin-top:6px;border-radius:999px;background:var(--surface-3);overflow:hidden}.td-progress.lg{height:10px}.td-progress i{display:block;height:100%;border-radius:999px;transition:width .2s}.td-sub-toggle{display:inline-flex;align-items:center;gap:4px;margin-top:6px;margin-left:34px;padding:2px 4px;border:none;background:none;color:var(--text-faint);font-size:12px;cursor:pointer}.td-sub-toggle:hover{color:var(--brand-text)}.td-subs{margin:8px 0 0 34px;padding:8px 10px;border-radius:var(--radius-sm);background:var(--surface-2);display:flex;flex-direction:column;gap:6px}.td-sub-item{display:flex;align-items:center;gap:8px;font-size:13.5px}.td-sub-item>span{flex:1;min-width:0;word-break:break-word}.td-sub-item .strike{color:var(--text-faint);text-decoration:line-through}.td-sub-add{display:flex;gap:6px;margin-top:2px}.td-sub-add .input{flex:1;min-height:36px}.td-editor{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:10px 0 4px;padding:12px;border-radius:var(--radius-sm);background:var(--surface-2);border:1px solid var(--border)}.td-editor.is-new{margin-top:0}.td-field{display:flex;flex-direction:column;gap:5px;min-width:0}.td-field>label{font-size:12px;color:var(--text-dim)}.td-field .input{min-height:40px;font-size:16px}.td-date-row{display:flex;flex-direction:column;gap:6px}.td-editor-actions{grid-column:span 2;display:flex;gap:8px}.td-filters{display:flex;flex-direction:column;gap:10px}.td-filters .input{min-height:42px;font-size:16px}.td-overview-body{display:flex;align-items:center;gap:20px}.td-overview-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;flex:1}.td-two-col{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.td-donut-wrap{display:flex;align-items:center;gap:16px}.td-legend{display:flex;flex-direction:column;gap:6px;flex:1}.td-legend-item{display:flex;align-items:center;gap:7px;font-size:13px;color:var(--text-dim)}.td-legend-item b{margin-left:auto;color:var(--text);font-variant-numeric:tabular-nums}.td-rank{display:flex;flex-direction:column;gap:10px}.td-rank-head{display:flex;justify-content:space-between;align-items:center;font-size:13px;color:var(--text-dim);margin-bottom:4px}.td-rank-head b{color:var(--text);font-variant-numeric:tabular-nums}.td-manage-list{display:flex;flex-direction:column;gap:8px}.td-manage-item{display:flex;align-items:center;gap:10px;padding:8px 10px;border-radius:var(--radius-sm);background:var(--surface-2);border:1px solid var(--border)}.td-manage-item .input{flex:1;min-width:0;min-height:38px}.td-manage-item .hint{flex-shrink:0;white-space:nowrap}.td-color-row{display:flex;gap:5px;flex-shrink:0}.td-color-btn{width:20px;height:20px;border-radius:50%;border:2px solid transparent;cursor:pointer;padding:0;box-shadow:0 0 0 1px var(--border) inset}.td-color-btn.on{border-color:var(--text)}.td-group-add{display:flex;align-items:center;gap:10px;margin-top:12px}.td-group-add .input{flex:1;min-width:0;min-height:42px;font-size:16px}.td-backup-row{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:8px}.td-widget{display:flex;flex-direction:column;gap:8px;height:100%}.td-widget-row{display:flex;align-items:center;gap:12px}.td-widget-list{min-height:0}.td-mini-list{display:flex;flex-direction:column;gap:2px;overflow:auto;min-height:0}.td-mini{display:flex;align-items:center;gap:8px;padding:5px 0}.td-mini.is-overdue .td-mini-title{color:var(--expense)}.td-mini-main{flex:1;min-width:0}.td-mini-title{font-size:13px;line-height:1.35;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.td-mini-meta{display:flex;align-items:center;gap:5px;font-size:11px;color:var(--text-faint)}.td-widget-quick{justify-content:center}.td-widget-quick .input{min-height:40px}@media(max-width:768px){.td-hero-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.td-two-col,.td-overview-stats{grid-template-columns:1fr}.td-overview-body{flex-direction:column;align-items:flex-start;gap:12px}.td-editor{grid-template-columns:1fr}.td-editor-actions{grid-column:span 1}.td-alert{flex-direction:column;align-items:stretch}.td-row-top{flex-wrap:wrap}.td-row-actions{width:100%;margin-left:34px;justify-content:flex-end}.td-row-actions .btn{min-height:36px}.td-manage-item{flex-wrap:wrap}.td-manage-item .input{flex-basis:100%;order:2}.td-group-add{flex-wrap:wrap}.td-chip{min-height:36px}.td-donut-wrap{flex-direction:column;align-items:flex-start}}.td-page{max-width:1200px;margin:0 auto;font-variant-numeric:tabular-nums}.td-page-heading{display:flex;justify-content:space-between;align-items:baseline;gap:12px;padding:2px 0 14px}.td-page-heading h1{margin:0;font-size:18px;font-weight:600;line-height:1.5}.td-page-heading>span{color:var(--text-faint);font-size:12px}.td-page-content{display:grid;gap:14px;min-width:0}.td-page .card{padding:18px;margin:0;min-width:0;border:1px solid var(--border);border-radius:14px;box-shadow:none}.td-page .card-head{margin-bottom:14px;gap:10px}.td-page .card-head>div:first-child{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 10px}.td-page .card-title{font-size:13px;line-height:1.6;font-weight:600}.td-page .card-sub{font-size:11px;color:var(--text-faint);line-height:1.6}.td-page .btn{min-height:32px;border-radius:8px;font-size:12px;gap:6px}.td-page .btn.icon{padding:0;width:32px;min-width:32px}.td-page .btn.icon svg{width:18px;height:18px;flex-shrink:0}.td-page button:focus-visible{outline:2px solid var(--brand);outline-offset:2px}.td-page .input{font-size:13px;min-height:36px;border-radius:8px}.td-page .stat{border:0;border-radius:10px;padding:12px}.td-page .stat .k{font-size:11px;color:var(--text-dim)}.td-page .stat .v{font-size:22px;font-weight:600;letter-spacing:0}.td-page .td-chip{min-height:28px;font-size:11px;padding:0 9px;border-radius:7px}.td-page .tabs{flex-wrap:wrap}.td-page .tabs button{font-size:12px;padding:6px 10px}.td-page .td-hero-card{background:linear-gradient(110deg,color-mix(in srgb,var(--brand) 5%,var(--surface)),var(--surface))}.td-page .td-alert{margin-top:12px;padding:12px;background:color-mix(in srgb,var(--amber) 6%,var(--surface))}.td-page .td-alert-title{font-size:12px}.td-page .td-alert-text{font-size:11px;white-space:normal;line-height:1.7;margin-top:4px}.td-page .td-quick{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px}.td-page .td-quick>.input{grid-column:1;grid-row:1;min-height:36px;font-size:13px}.td-page .td-quick>.btn{grid-column:2;grid-row:1;height:36px}.td-page .td-quick>.td-chip-row{grid-column:1 / -1}.td-page .td-bucket .td-row{padding:14px 0}.td-page .td-bucket .td-row.is-overdue{padding:12px;margin-bottom:6px}.td-page .td-row-title{font-size:14px;font-weight:550;line-height:1.6}.td-page .td-row-meta{font-size:11px;gap:6px 10px}.td-page .td-tag{font-size:10px;font-weight:550}.td-page .td-row-actions{gap:4px}.td-page .td-row-actions .btn:last-child{color:var(--text-faint)}.td-page .td-row-actions .btn:last-child:hover{color:var(--expense)}.td-page .td-note-preview{display:flex;gap:5px;font-size:12px;color:var(--text-dim);line-height:1.6;margin:6px 0 0}.td-note-preview svg{flex:none;margin-top:3px}.td-note-preview span{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;overflow-wrap:anywhere;white-space:pre-wrap}.td-page .td-progress{max-width:100%;height:4px}.td-page .td-check{border-radius:8px;width:24px;height:24px}.td-page .td-subs{padding:12px;margin-top:12px}.td-page .td-sub-toggle{color:var(--text-dim);min-height:28px;font-size:11px}.td-page .td-editor{border:0;background:none;padding:0;margin-top:18px;gap:16px}.td-page .td-editor>.td-field:nth-child(-n+2),.td-page .td-editor>.td-field:nth-child(5),.td-page .td-editor>.td-field:nth-child(6){grid-column:1 / -1}.td-page .td-editor .input{font-size:13px;min-height:36px}.td-page .td-editor-actions{justify-content:flex-end;border-top:1px solid var(--border);padding-top:12px}.td-page .td-date-row .date-picker-trigger{width:100%;min-height:36px;font-size:13px}.td-page .td-filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.td-page .td-filters>.input,.td-page .td-filters>.td-chip-row{grid-column:1 / -1}.td-page .td-filters .input{font-size:13px;min-height:36px}.td-page .td-overview-body{display:flex;flex-direction:row;align-items:center;gap:18px}.td-page .td-overview-stats{flex:1;grid-template-columns:repeat(4,minmax(0,1fr))}.td-page .td-overview-body>svg{flex:none}.td-page .td-two-col{gap:14px}.td-page .td-donut-wrap{flex-direction:row;align-items:center;gap:20px}.td-page .td-donut-wrap>svg{flex:none}.td-page .td-legend-item{font-size:12px}.td-page .td-rank{gap:16px}.td-page .td-rank-head{font-size:12px}.td-page .td-rank-head .td-dot{margin-right:6px}.td-trend{width:100%;padding-top:8px}.td-trend.is-month>div{gap:3px!important}.td-trend.is-month>div>div>span:last-child{visibility:hidden;font-size:9px!important}.td-trend.is-month>div>div:nth-child(5n+1)>span:last-child,.td-trend.is-month>div>div:last-child>span:last-child{visibility:visible}.td-completed-log>div{display:flex;align-items:center;gap:10px;padding:12px 0;border-bottom:1px solid var(--border)}.td-completed-log>div:last-child{border-bottom:0}.td-completed-log>div>svg{color:var(--income);flex:none}.td-completed-log>div>span{flex:1;min-width:0;font-size:13px;overflow-wrap:anywhere}.td-completed-log small{display:block;font-size:10px;color:var(--text-faint);margin-top:3px}.td-completed-log time{font-size:11px;color:var(--text-dim);flex:none}.td-page .td-manage-item{padding:12px;gap:12px;border-radius:10px}.td-page .td-manage-item .input{font-size:13px;min-height:36px}.td-page .td-color-btn{width:24px;height:24px}.td-page .td-manage-item .hint{font-size:11px}.td-page .td-group-add{margin-top:18px;padding-top:16px;border-top:1px solid var(--border)}.td-page .td-backup-row+.hint{font-size:11px;line-height:1.8}.td-page .hint{line-height:1.7}@media(max-width:700px){.td-page-heading h1{font-size:16px}.td-page .card{padding:14px;border-radius:12px}.td-page .card-head{margin-bottom:12px}.td-page .btn{min-height:34px}.td-page .td-chip{min-height:32px}.td-page .td-filters{grid-template-columns:minmax(0,1fr)}.td-page .td-row-actions{width:calc(100% - 34px);margin-left:34px}.td-page .td-row-actions .btn{min-height:30px}.td-page .td-overview-body{flex-wrap:wrap;gap:12px}.td-page .td-overview-stats{grid-template-columns:repeat(2,minmax(0,1fr));flex-basis:100%}.td-page .td-two-col{grid-template-columns:minmax(0,1fr)}.td-page .td-donut-wrap{gap:14px}.td-page .td-donut-wrap>svg{width:110px;height:110px}.td-page .td-editor{grid-template-columns:minmax(0,1fr)}.td-page .td-manage-item{display:grid;grid-template-columns:12px minmax(0,1fr) auto;gap:8px}.td-page .td-manage-item .input{order:0;grid-column:2}.td-page .td-manage-item .td-color-row{grid-column:2;grid-row:2}.td-page .td-manage-item .hint{grid-column:2;grid-row:3}.td-page .td-manage-item>.btn{grid-column:3;grid-row:1 / 4}.td-page .td-group-add>.input{flex-basis:100%}.td-trend.is-month>div>div>span:first-child{font-size:8px!important}}@media(prefers-reduced-motion:reduce){.td-page *{transition:none!important}}.td-overview-rate{display:flex;align-items:center;gap:12px;flex:0 0 220px}.td-overview-rate svg{flex:none}.td-overview-rate strong{display:block;font-size:12px;font-weight:550;margin-bottom:5px}.td-overview-rate span{display:block;font-size:11px;color:var(--text-dim);line-height:1.7}@media(max-width:700px){.td-overview-rate{flex-basis:100%}}:root{--bg: #f5f6f8;--surface: #ffffff;--surface-2: #f7f8fa;--surface-3: #f0f2f5;--border: #e4e7ec;--border-strong: #d3d7de;--text: #171f2a;--text-dim: #657082;--text-faint: #8490a1;--brand: #0089ff;--brand-soft: #eaf4ff;--brand-text: #0074db;--expense: #e5484d;--expense-amount: #cf6c68;--income: #12924f;--income-amount: #5e9278;--amber: #e8930c;--violet: #7c5cff;--cyan: #0ea5a5;--input-radius: 6px;--form-input-radius: 8px;--radius: 10px;--radius-sm: 6px;--shadow: 0 1px 3px rgba(24, 39, 62, .03);--shadow-pop: 0 12px 48px rgba(16, 24, 40, .18);--topbar-h: 56px;--sidebar-w: 216px;--sidebar-w-collapsed: 64px;color-scheme:light}[data-theme=dark]{--bg: #0e1014;--surface: #171a21;--surface-2: #1c2028;--surface-3: #232833;--border: #282d38;--border-strong: #363c49;--text: #e9ecf1;--text-dim: #9aa3b2;--text-faint: #6b7482;--brand: #5b86ff;--brand-soft: rgba(91, 134, 255, .16);--brand-text: #93b0ff;--expense: #ff6369;--income: #34c77b;--amber: #f7b955;--violet: #9b83ff;--cyan: #2dd4bf;--shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .35);--shadow-pop: 0 12px 48px rgba(0, 0, 0, .5);color-scheme:dark}*{box-sizing:border-box}html,body{margin:0;padding:0}body{background:var(--bg);color:var(--text);font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,PingFang SC,Hiragino Sans GB,Microsoft YaHei,sans-serif;font-size:15px;line-height:1.55;-webkit-font-smoothing:antialiased;-webkit-tap-highlight-color:transparent}button,input,select,textarea{font-family:inherit;font-size:inherit;color:inherit}input,select,textarea{font-size:16px}::-webkit-scrollbar{width:10px;height:10px}::-webkit-scrollbar-thumb{background:var(--border-strong);border-radius:8px;border:3px solid transparent;background-clip:content-box}.app{min-height:100vh;min-height:100dvh;display:flex;flex-direction:column}.topbar{position:sticky;top:0;z-index:40;height:var(--topbar-h);display:flex;align-items:center;gap:10px;padding:0 16px;background:color-mix(in srgb,var(--surface) 88%,transparent);backdrop-filter:saturate(1.6) blur(12px);border-bottom:1px solid var(--border)}.topbar .brand{display:flex;align-items:center;gap:10px;font-weight:650;letter-spacing:.2px;min-width:0}.topbar .brand .logo{width:30px;height:30px;border-radius:9px;background:linear-gradient(140deg,var(--brand),var(--violet));display:grid;place-items:center;color:#fff;flex:none}.topbar .brand .title{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.topbar .brand .sub{font-size:11px;color:var(--text-faint);font-weight:500;padding:1px 6px;border:1px solid var(--border);border-radius:999px;flex:none}.topbar .spacer{flex:1}.shell{flex:1;display:flex;align-items:flex-start;min-height:0}.shell[data-sidebar=collapsed]{--sidebar-w: var(--sidebar-w-collapsed)}.sidebar{position:sticky;top:var(--topbar-h);width:var(--sidebar-w);flex:none;height:calc(100vh - var(--topbar-h));overflow-y:auto;padding:14px 10px calc(14px + env(safe-area-inset-bottom));border-right:1px solid var(--border);background:var(--surface);display:flex;flex-direction:column;transition:width .18s ease}.nav-label{font-size:11px;font-weight:600;letter-spacing:.8px;color:var(--text-faint);padding:8px 10px 6px}.nav-item{position:relative;width:100%;display:flex;align-items:center;gap:10px;padding:9px 10px;margin-bottom:2px;border:0;background:transparent;border-radius:var(--radius-sm);cursor:pointer;text-align:left;color:var(--text-dim);font-weight:550;font-size:15px;line-height:1.55;transition:background .14s,color .14s}.nav-item:hover{background:var(--surface-3);color:var(--text)}.nav-item.active{background:var(--brand-soft);color:var(--brand-text)}.nav-item .ico{width:20px;height:20px;flex:none;display:grid;place-items:center}.nav-item .badge{margin-left:auto;min-width:20px;height:20px;padding:0 6px;border-radius:999px;background:var(--expense);color:#fff;font-size:11px;font-weight:700;display:grid;place-items:center}.sidebar.collapsed{padding-left:8px;padding-right:8px}.sidebar.collapsed .nav-item{justify-content:center;gap:0;padding:10px 0}.sidebar.collapsed .nav-item .ico{width:24px;height:24px}.nav-item .badge-dot{position:absolute;top:8px;right:10px;width:8px;height:8px;border-radius:999px;background:var(--expense);box-shadow:0 0 0 2px var(--surface)}.nav-sep{height:1px;margin:9px 12px;background:var(--border)}.nav-toggle{margin-top:auto;border-top:1px solid var(--border);border-radius:0;padding-top:12px;padding-bottom:6px;color:var(--text-faint);font-size:13px}.sidebar.collapsed .nav-item.nav-toggle{padding:22px 0 10px}.nav-toggle:hover{color:var(--text)}.nav-tip{position:fixed;z-index:90;transform:translateY(-50%);padding:6px 10px;border-radius:8px;background:var(--text);color:var(--surface);font-size:12.5px;font-weight:600;line-height:1.4;white-space:nowrap;box-shadow:var(--shadow-pop);pointer-events:none}.content{flex:1;min-width:0;padding:18px 20px 48px;max-width:1080px;margin:0 auto;width:100%}.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow);padding:16px;margin-bottom:14px}.card.tight{padding:12px 14px}.card-head{display:flex;align-items:center;gap:10px;margin-bottom:12px}.card-title{font-size:15px;font-weight:650;margin:0}.card-sub{font-size:12.5px;color:var(--text-faint)}.card-head .spacer{flex:1}.btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:38px;padding:0 14px;border-radius:6px;border:1px solid var(--border-strong);background:var(--surface);color:var(--text);font-weight:550;cursor:pointer;transition:filter .14s,background .14s,border-color .14s;white-space:nowrap;font-size:14px}.btn:hover{background:var(--surface-3)}.btn:active{filter:brightness(.96)}.btn.primary{background:var(--brand);border-color:var(--brand);color:#fff}.btn.primary:hover{filter:brightness(1.06);background:var(--brand)}.btn.danger{color:var(--expense);border-color:color-mix(in srgb,var(--expense) 40%,var(--border))}.btn.danger:hover{background:color-mix(in srgb,var(--expense) 10%,transparent)}.btn.ghost{border-color:transparent;background:transparent;color:var(--text-dim)}.btn.ghost:hover{background:var(--surface-3);color:var(--text)}.btn.icon{padding:0;width:38px;min-height:38px}.btn.sm{min-height:32px;padding:0 10px;font-size:13px;border-radius:8px}.btn[disabled]{opacity:.45;cursor:not-allowed}.field{display:flex;flex-direction:column;gap:6px;min-width:0}.field>label{font-size:12.5px;font-weight:600;color:var(--text-dim)}.input,.select{width:100%;min-height:44px;padding:0 12px;border-radius:var(--input-radius);border:1px solid transparent;background:var(--surface-2);color:var(--text);outline:none}.textarea{width:100%;min-height:76px;padding:10px 12px;border-radius:var(--input-radius);border:1px solid transparent;background:var(--surface-2);color:var(--text);outline:none;resize:vertical}.input:focus,.select:focus,.textarea:focus{border-color:var(--brand);box-shadow:none}.grid-form{display:grid;gap:12px;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));align-items:end}.row{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.chip{display:inline-flex;align-items:center;gap:5px;padding:3px 9px;border-radius:999px;font-size:12px;font-weight:600;background:var(--surface-3);color:var(--text-dim);border:1px solid transparent;white-space:nowrap}.chip.brand{background:var(--brand-soft);color:var(--brand-text)}.chip.expense{background:color-mix(in srgb,var(--expense) 12%,transparent);color:var(--expense)}.chip.income{background:color-mix(in srgb,var(--income) 13%,transparent);color:var(--income)}.chip.amber{background:color-mix(in srgb,var(--amber) 15%,transparent);color:var(--amber)}.chip.violet{background:color-mix(in srgb,var(--violet) 14%,transparent);color:var(--violet)}.tabs{display:inline-flex;padding:3px;gap:2px;background:var(--surface-3);border-radius:10px}.tabs button{border:0;background:transparent;padding:6px 12px;border-radius:8px;font-weight:600;color:var(--text-dim);cursor:pointer;min-height:32px;font-size:13px}.tabs button.active{background:var(--surface);color:var(--text);box-shadow:0 1px 2px #00000014}.stat-grid{display:grid;gap:10px;grid-template-columns:repeat(auto-fit,minmax(132px,1fr))}.stat{background:var(--surface-2);border:1px solid var(--border);border-radius:var(--radius-sm);padding:12px 13px}.stat .k{font-size:12px;color:var(--text-faint);font-weight:600}.stat .v{font-size:21px;font-weight:700;letter-spacing:-.4px;margin-top:2px;font-variant-numeric:tabular-nums}.stat .v.expense{color:var(--expense-amount)}.stat .v.income{color:var(--income-amount)}.list{display:flex;flex-direction:column}.list-item{display:flex;align-items:center;gap:12px;padding:11px 4px;border-bottom:1px solid var(--border)}.list-item:last-child{border-bottom:0}.list-item .main{flex:1;min-width:0}.list-item .title{font-weight:550;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.list-item .meta{font-size:12.5px;color:var(--text-faint);margin-top:1px}.amount{font-variant-numeric:tabular-nums;font-weight:650;white-space:nowrap}.amount.expense{color:var(--expense-amount)}.amount.income{color:var(--income-amount)}.strike{text-decoration:line-through;color:var(--text-faint)}.empty{text-align:center;padding:34px 16px;color:var(--text-faint);font-size:14px}.check{width:24px;height:24px;border-radius:8px;border:2px solid var(--border-strong);background:transparent;cursor:pointer;display:grid;place-items:center;flex:none;padding:0;color:transparent}.check.on{background:var(--brand);border-color:var(--brand);color:#fff}.due-dot{width:8px;height:8px;border-radius:50%;flex:none}.bar{height:8px;border-radius:999px;background:var(--surface-3);overflow:hidden}.bar>i{display:block;height:100%;border-radius:999px;background:var(--brand);transition:width .3s ease}.today{border:1px solid color-mix(in srgb,var(--brand) 26%,var(--border));background:linear-gradient(180deg,color-mix(in srgb,var(--brand) 6%,var(--surface)),var(--surface))}.today-item{display:flex;align-items:center;gap:11px;padding:9px 10px;border-radius:var(--radius-sm);background:var(--surface);border:1px solid var(--border);margin-bottom:8px}.today-item:last-child{margin-bottom:0}.today-item.overdue{border-color:color-mix(in srgb,var(--expense) 45%,var(--border));background:color-mix(in srgb,var(--expense) 6%,var(--surface))}.today-item .main{flex:1;min-width:0}.today-item .title{font-weight:600;font-size:14px}.today-item .meta{font-size:12px;color:var(--text-faint)}.today-item.overdue .meta{color:var(--expense);font-weight:600}.scrim{position:fixed;inset:0;background:#0c10186b;z-index:60;animation:fade .16s ease}.drawer{position:fixed;top:0;right:0;bottom:0;width:min(420px,100vw);background:var(--surface);border-left:1px solid var(--border);z-index:61;display:flex;flex-direction:column;box-shadow:var(--shadow-pop);animation:slide-in .2s cubic-bezier(.2,.8,.2,1)}.drawer-head{display:flex;align-items:center;gap:10px;padding:14px 16px;border-bottom:1px solid var(--border)}.drawer-body{flex:1;overflow-y:auto;padding:14px 16px calc(28px + env(safe-area-inset-bottom))}.modal-card{width:min(420px,calc(100vw - 32px));background:var(--surface);border-radius:16px;box-shadow:var(--shadow-pop);padding:20px}.center-modal{position:fixed;inset:0;z-index:70;display:grid;place-items:center;padding:16px;background:#0c10186b}.toast-host{position:fixed;left:50%;transform:translate(-50%);bottom:calc(20px + env(safe-area-inset-bottom));z-index:90;display:flex;flex-direction:column;gap:8px;align-items:center;pointer-events:none}.toast{background:var(--text);color:var(--surface);padding:9px 16px;border-radius:999px;font-size:13.5px;font-weight:550;box-shadow:var(--shadow-pop);animation:pop .2s cubic-bezier(.2,.8,.2,1);max-width:84vw}.plugin-row{display:flex;align-items:center;gap:10px;padding:11px 12px;border:1px solid var(--border);border-radius:var(--radius-sm);margin-bottom:8px;background:var(--surface-2)}.plugin-row .meta{flex:1;min-width:0}.plugin-row .meta .n{font-weight:600;font-size:14px}.plugin-row .meta .d{font-size:12px;color:var(--text-faint);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.plugin-row.off{opacity:.55}.switch{width:42px;height:25px;border-radius:999px;border:0;background:var(--border-strong);cursor:pointer;position:relative;flex:none;padding:0;transition:background .18s}.switch.on{background:var(--brand)}.switch>i{position:absolute;top:3px;left:3px;width:19px;height:19px;border-radius:50%;background:#fff;transition:transform .18s;box-shadow:0 1px 3px #00000040}.switch.on>i{transform:translate(17px)}.hr{height:1px;background:var(--border);margin:16px 0}.hint{font-size:12.5px;color:var(--text-faint);line-height:1.6}.scroll-x{overflow-x:auto;-webkit-overflow-scrolling:touch}.dash-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));grid-auto-rows:122px;gap:12px}.wcard{background:var(--surface-2);border:1px solid var(--border);border-radius:var(--radius-sm);padding:9px 11px;display:flex;flex-direction:column;min-width:0;overflow:hidden}.wcard.editing{border-style:dashed;border-color:var(--brand);cursor:grab}.wcard-head{display:flex;align-items:center;gap:6px;margin-bottom:5px;flex:none}.wcard-name{font-size:12.5px;font-weight:650;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.wcard-from{font-size:10.5px;color:var(--text-faint);flex:none}.wcard-tools{margin-left:auto;display:flex;gap:2px;flex:none}.wcard-body{flex:1;min-height:0;overflow:auto}.wcard-body .amount{font-size:15px}.size-sm{grid-column:span 1;grid-row:span 1}.size-md{grid-column:span 2;grid-row:span 1}.size-tall{grid-column:span 1;grid-row:span 2}.size-lg{grid-column:span 2;grid-row:span 2}.plugin-subnav{display:flex;gap:4px;margin-bottom:16px;overflow-x:auto;border-bottom:1px solid var(--border)}.plugin-subnav a{display:inline-flex;align-items:center;justify-content:center;gap:6px;flex:0 0 auto;padding:10px 16px;min-height:44px;border-bottom:2px solid transparent;font-size:14px;font-weight:600;color:var(--text-dim);text-decoration:none;white-space:nowrap}.plugin-subnav a:hover,.plugin-subnav a.active{color:var(--brand-text)}.plugin-subnav a.active{border-bottom-color:var(--brand)}.plugin-subnav a:focus-visible,.nav-subitem a:focus-visible{outline:2px solid var(--brand);outline-offset:-2px}.nav-item .caret{margin-left:auto;display:grid;place-items:center;color:var(--text-faint)}.nav-item .badge+.caret{margin-left:6px}.nav-sub{display:flex;flex-direction:column;margin-bottom:6px}.nav-subitem .nav-item{text-decoration:none;padding-left:30px}@media(max-width:1024px){.dash-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:480px){.dash-grid{grid-auto-rows:112px;gap:10px}}.tabbar{display:none}@media(max-width:860px){.ledger-report-actions{flex-direction:column;align-items:flex-end;flex-shrink:0}.plugin-subnav a{flex:1 0 auto}.content{padding:14px 13px 96px}.sidebar,.nav-tip{display:none}.tabbar{position:fixed;left:0;right:0;bottom:0;z-index:50;display:flex;align-items:stretch;background:color-mix(in srgb,var(--surface) 92%,transparent);backdrop-filter:saturate(1.6) blur(12px);border-top:1px solid var(--border);padding-bottom:env(safe-area-inset-bottom)}.tabbar button{flex:1;min-height:56px;border:0;background:transparent;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;font-size:11px;font-weight:600;color:var(--text-faint);cursor:pointer;position:relative;padding:6px 2px}.tabbar button.active{color:var(--brand-text)}.tabbar .badge-dot{position:absolute;top:6px;right:calc(50% - 20px);min-width:16px;height:16px;padding:0 4px;border-radius:999px;background:var(--expense);color:#fff;font-size:10px;line-height:16px;font-weight:700}.drawer{width:100vw}.grid-form{grid-template-columns:1fr 1fr}.stat .v{font-size:19px}}@media(max-width:420px){.grid-form{grid-template-columns:1fr}}@keyframes fade{0%{opacity:0}}@keyframes slide-in{0%{transform:translate(24px);opacity:.4}}@keyframes pop{0%{transform:translateY(10px);opacity:0}}.form-controls .input,.form-controls .select,.content .grid-form .input,.content .grid-form .select{height:36px;min-height:36px;border-radius:var(--input-radius)}.quick-template-actions{margin-bottom:12px}.quick-template-actions .hint{margin-bottom:6px}.quick-template-actions .row{gap:6px}.mobile-title{display:none}.topbar{background:var(--surface);backdrop-filter:none}.topbar .brand .logo{background:var(--brand);border-radius:7px}.topbar .brand .sub{border:0;padding:0;font-size:12px}.sidebar{background:var(--surface)}.nav-label{font-size:12px;letter-spacing:0}.nav-item{min-height:42px;padding-top:8px;padding-bottom:8px}.nav-item.active{font-weight:600}.nav-item .badge{min-width:18px;height:18px;padding:0 5px;font-size:10px}.content{max-width:1200px;padding:24px 28px 48px}.card{border-color:var(--border);padding:20px;margin-bottom:16px}.card-head{gap:12px;flex-wrap:wrap;margin-bottom:18px}.card-head>div:first-child{flex:1 1 120px}.card-head .spacer{display:none}.card-title{font-size:16px;font-weight:600}.card-sub{line-height:1.65}.btn{border-radius:6px;font-weight:500}.btn.sm{border-radius:6px}.btn.primary{box-shadow:none}.btn.danger{background:transparent}.input,.select{min-width:0;border-radius:var(--input-radius)}.form-controls .input,.form-controls .select,.content .grid-form .input,.content .grid-form .select{border-radius:var(--input-radius)}.field>label{font-size:13px;font-weight:500}.grid-form{gap:16px}.tabs{padding:3px;border-radius:6px;max-width:100%}.tabs button{flex:none;border-radius:4px;white-space:nowrap}.tabs button.active{color:var(--brand-text)}.scroll-x{scrollbar-width:thin}.stat{border:0;background:var(--surface-2);padding:14px}.stat .v{font-size:24px;letter-spacing:0}.list-item{padding:14px 0;gap:10px}.list-item .title{font-weight:500}.list-item .meta{font-size:12px;line-height:1.6}.check{border-width:1.5px;border-radius:5px}.plugin-subnav{background:var(--surface);padding:0 8px;border-radius:8px;gap:16px;margin-bottom:16px}.plugin-subnav a{padding:12px 10px;font-size:15px;font-weight:500;position:relative;border-bottom:0}.plugin-subnav a.active{font-weight:600}.plugin-subnav a.active:after{content:"";position:absolute;bottom:0;left:10px;right:10px;height:3px;border-radius:3px;background:var(--brand)}.workbench-apps{background:var(--surface);padding:24px;border:1px solid var(--border);border-radius:var(--radius);margin-bottom:20px}.workbench-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:24px}.workbench-heading h1{font-size:22px;line-height:1.4;font-weight:600;margin:0}.workbench-heading p{margin:6px 0 0;color:var(--text-dim);font-size:13px}.workbench-date{color:var(--text-dim);font-size:13px;white-space:nowrap}.app-shortcuts{display:flex;gap:28px;flex-wrap:wrap}.app-shortcut{display:flex;flex-direction:column;align-items:center;gap:10px;border:0;background:transparent;padding:0 6px;color:var(--text);font-size:13px;min-width:72px;cursor:pointer}.app-shortcut-icon{position:relative;display:grid;place-items:center;width:48px;height:48px;border-radius:12px;background:#eef6ff;color:#0089ff}.app-shortcut-icon[data-plugin=habits]{color:#1baa76;background:#eaf8f2}.app-shortcut-icon[data-plugin=todos]{color:#ed9b25;background:#fff6e7}.app-shortcut-icon>svg{width:25px;height:25px}.shortcut-badge{position:absolute;top:-4px;right:-4px;min-width:17px;height:17px;line-height:17px;padding:0 4px;border-radius:10px;background:var(--expense);color:#fff;font-size:10px;border:2px solid var(--surface);box-sizing:content-box}.app-shortcut:hover .app-shortcut-icon{filter:brightness(.97)}.dashboard-card{background:transparent;border:0;padding:0;box-shadow:none}.dash-grid{grid-auto-rows:minmax(180px,auto);gap:16px;align-items:stretch}.wcard{background:var(--surface);border-radius:10px;padding:14px;overflow:visible}.wcard-body{flex:1 0 auto;min-height:auto;overflow:visible}.wcard.size-tall,.wcard.size-lg{grid-row:span 1;min-height:320px}.wcard-head{margin-bottom:10px;flex-wrap:wrap}.wcard-name{font-size:14px}.wcard-from{margin-left:auto;font-size:11px;color:var(--text-faint)}.wcard-tools{flex-wrap:wrap}.wcard.editing .wcard-tools{width:100%;justify-content:flex-end}.today-item{padding:12px;border-color:var(--border);border-radius:6px}.today-item.overdue{background:color-mix(in srgb,var(--expense) 4%,var(--surface))}.quick-template-actions .btn{background:var(--brand-soft);color:var(--brand-text);border-color:transparent}.drawer{width:min(460px,100vw)}.drawer-head{padding:18px 20px;font-size:17px}.drawer-body{padding:20px}.plugin-row{background:var(--surface);padding:16px 0;border:0;border-bottom:1px solid var(--border);border-radius:0}.plugin-row .meta .d{white-space:normal}.modal-card{border-radius:12px}.btn:focus-visible,.app-shortcut:focus-visible,.nav-item:focus-visible{outline:2px solid var(--brand);outline-offset:2px}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}@media(max-width:860px){:root{--topbar-h: calc(56px + env(safe-area-inset-top)) }.desktop-title{display:none}.mobile-title{display:inline}.topbar{padding:env(safe-area-inset-top) 16px 0;gap:8px}.topbar .brand{flex:1;font-size:18px;gap:8px}.topbar .brand .logo,.topbar .brand .sub{display:none}.topbar>.spacer{display:none}.topbar .btn.icon{width:36px;min-height:40px}.content{padding:12px 12px calc(84px + env(safe-area-inset-bottom));max-width:100%}.card{padding:16px;margin-bottom:12px;border:0;box-shadow:none}.card-head{margin-bottom:16px;gap:8px}.card-head>div:first-child{flex:1 1 100px}.card-title{font-size:16px}.card-sub{font-size:12px}.workbench-apps{border:0;padding:20px 16px;margin-bottom:20px}.workbench-heading{margin-bottom:20px;align-items:flex-start}.workbench-heading h1{font-size:20px}.workbench-heading p{font-size:12px}.workbench-date{font-size:11px;padding-top:5px}.app-shortcuts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px 8px}.app-shortcut{min-width:0;padding:0;font-size:12px}.app-shortcut-icon{width:46px;height:46px}.dashboard-card{padding:0}.dash-grid{grid-auto-rows:minmax(180px,auto);gap:12px}.wcard{padding:12px;border:0}.wcard-head{gap:4px;margin-bottom:8px}.wcard-name{font-size:13px}.wcard-from{font-size:10px}.plugin-subnav{position:sticky;top:var(--topbar-h);z-index:30;margin:-12px -12px 12px;padding:0 16px;border-radius:0;gap:12px}.plugin-subnav a{flex:1 0 auto;min-height:48px}.plugin-subnav a>svg{display:none}.tabbar{background:var(--surface);backdrop-filter:none;border-top-color:var(--border);box-shadow:0 -2px 8px #18273e06}.tabbar button{min-height:60px;gap:4px;font-size:11px;font-weight:400;color:var(--text-dim)}.tabbar button>svg{width:24px;height:24px}.tabbar button.active{color:var(--brand);font-weight:600}.tabbar .badge-dot{top:5px;font-size:10px}.grid-form{grid-template-columns:minmax(0,1fr);gap:14px}.field{gap:8px}.field>label{font-size:13px;color:var(--text-dim)}.form-controls .input,.form-controls .select,.content .grid-form .input,.content .grid-form .select{height:36px;min-height:36px;font-size:16px;background:var(--surface-2)}.form-controls .btn,.content .grid-form>.btn{min-height:44px;font-size:14px}.form-controls .btn.icon{width:44px}.grid-form .tabs{display:flex}.grid-form .tabs button{flex:1;min-height:44px;padding:8px 10px}.grid-form>.btn.primary{margin-top:4px;width:100%}.form-controls>.scroll-x .tabs{display:flex;width:max-content;min-width:100%;background:transparent;padding:0;gap:0}.form-controls>.scroll-x .tabs button{min-height:42px;padding:8px 12px;border-bottom:2px solid transparent;border-radius:0;font-size:14px}.form-controls>.scroll-x .tabs button.active{background:transparent;box-shadow:none;border-bottom-color:var(--brand)}.book-management>.row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.book-management>.row>strong{grid-column:1;font-size:15px}.book-management>.row>select{grid-column:2 / 4;width:100%!important;max-width:none!important}.book-management .btn{padding:0 6px;font-size:13px}.book-management form>.input{flex:1 1 100%}.type-management-row .type-color-palette{order:4;width:100%}.type-management-row>.input{min-width:100px}.type-management-row>.select{flex:1 1 120px}.stat-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.stat{padding:12px}.stat .v{font-size:22px}.list-item{flex-wrap:wrap;gap:8px;padding:14px 0}.list-item .main{flex:1 1 120px}.list-item .title{white-space:normal;overflow-wrap:anywhere}.list-item .btn{min-height:36px}.list-item .main .input,.list-item .main .select{max-width:100%}.today-item{gap:8px;flex-wrap:wrap}.today-item .main{min-width:100px}.quick-template-actions .row{flex-wrap:nowrap;overflow-x:auto;padding-bottom:4px}.quick-template-actions .btn{flex:none;min-height:38px}.ledger-report-actions{flex-direction:row;flex-wrap:wrap;justify-content:flex-end}.drawer{width:100%;border-left:0;box-shadow:none}.drawer-head{min-height:var(--topbar-h);padding:calc(14px + env(safe-area-inset-top)) 16px 14px}.drawer-body{padding:16px 16px calc(24px + env(safe-area-inset-bottom))}.plugin-row{align-items:flex-start;gap:12px}.plugin-row .meta>.row{gap:8px}.drawer .btn{min-height:40px}.modal-card{padding:20px;width:min(360px,calc(100vw - 40px))}.modal-card>.row:last-child{display:grid;grid-template-columns:1fr 1fr;gap:12px}.modal-card .btn{min-height:44px}.toast-host{bottom:calc(78px + env(safe-area-inset-bottom))}}@media(max-width:860px){.wcard.size-md[data-owner="@system"]{grid-row:span 1}.wcard-body{scrollbar-width:none}.wcard-body::-webkit-scrollbar{width:0;height:0}.scroll-x{scrollbar-width:none}.scroll-x::-webkit-scrollbar{height:0}}[data-theme=dark] .app-shortcut-icon{background:#1a3046;color:#69b8ff}[data-theme=dark] .app-shortcut-icon[data-plugin=habits]{background:#173b30;color:#62d7a7}[data-theme=dark] .app-shortcut-icon[data-plugin=todos]{background:#40331d;color:#f7c168}.field>.input,.field>.select,.field>.textarea,.content .grid-form .input,.content .grid-form .select{border-radius:var(--form-input-radius)}.ledger-records-layout{display:grid;grid-template-columns:minmax(340px,420px) minmax(0,1fr);gap:20px;align-items:start}.ledger-entry-column,.ledger-history-column{min-width:0}.ledger-entry-column{position:static}.ledger-entry-column>.card{margin-bottom:0}.ledger-entry-sheet{position:fixed;inset:auto 0 0;margin:0 auto;width:100%;max-width:600px;max-height:calc(100dvh - 24px);box-sizing:border-box;padding:0;border:0;border-radius:18px 18px 0 0;background:var(--surface);color:var(--text);overflow-y:auto}.ledger-entry-sheet::backdrop{background:#0f172a73}.ledger-entry-sheet .card{padding:20px 16px;margin:0;border:0}.ledger-entry-sheet .card-head{padding-right:32px}.ledger-entry-sheet .grid-form{grid-template-columns:minmax(0,1fr)}.ledger-entry-sheet .ledger-entry-footer{position:sticky;bottom:0;background:var(--surface);padding:12px 0 calc(12px + env(safe-area-inset-bottom))}.ledger-entry-sheet .ledger-entry-footer .btn{width:100%;min-height:44px}.ledger-sheet-close{position:absolute;right:10px;top:10px;z-index:12;font-size:24px}.ledger-mobile-book{display:flex;justify-content:flex-end;margin-bottom:4px}.ledger-mobile-add{position:fixed;right:16px;bottom:calc(78px + env(safe-area-inset-bottom));z-index:40;border-radius:24px;min-height:44px;padding:0 20px;box-shadow:0 4px 18px #2f6bff40}.ledger-mobile-categories{display:grid;grid-auto-flow:column;grid-auto-columns:64px;gap:6px;max-width:100%;overflow-x:auto;overscroll-behavior-x:contain;padding:3px 0 8px;scroll-snap-type:x proximity}.ledger-mobile-category{display:flex;flex-direction:column;align-items:center;gap:6px;border:0;background:transparent;color:var(--text-dim);padding:3px;cursor:pointer;scroll-snap-align:start;touch-action:pan-x pan-y}.ledger-mobile-category>span{display:grid;place-items:center;width:44px;height:44px;border:1px solid transparent;border-radius:12px;background:var(--surface-2)}.ledger-mobile-category strong{max-width:100%;font-size:12px;font-weight:400;overflow-wrap:anywhere}.ledger-mobile-category.selected{color:var(--brand)}.ledger-mobile-category.selected strong{font-weight:650}.ledger-mobile-category.selected>span{background:color-mix(in srgb,var(--category-highlight) 18%,var(--surface));border:2px solid var(--brand);box-sizing:border-box}.ledger-mobile-category:focus-visible{outline:2px solid var(--text);outline-offset:-2px;border-radius:8px}.ledger-entry-form .field,.ledger-entry-fields{min-width:0}.ledger-entry-form .ledger-date-input{display:block;box-sizing:border-box;width:100%;max-width:100%;min-width:0;text-align:left;-webkit-appearance:none;appearance:none}.ledger-date-input::-webkit-date-and-time-value{text-align:left;min-height:1em}.ledger-date-input::-webkit-datetime-edit{padding:0}@media(max-width:860px){.ledger-history-column{padding-bottom:52px}.plugin-subnav a{min-height:44px}.app,.tabbar,.plugin-subnav{-webkit-tap-highlight-color:transparent}.tabbar button,.btn,.plugin-subnav a{touch-action:manipulation}}.ledger-entry-column .grid-form{grid-template-columns:minmax(0,1fr)}.ledger-entry-column .grid-form .tabs{display:flex}.ledger-entry-column .grid-form .tabs button{flex:1}.ledger-entry-column .grid-form>.btn{width:100%}.ledger-history-column>.card:last-child{margin-bottom:0}@media(max-width:980px){.ledger-records-layout{grid-template-columns:minmax(0,1fr);gap:16px}.ledger-entry-column{position:static}}.ledger-entry-column>.card{display:flex;flex-direction:column;overflow:visible}.ledger-entry-column .card-head,.ledger-entry-column .quick-template-actions{flex:none}.ledger-entry-column .ledger-entry-form{display:flex;flex-direction:column;align-items:stretch;min-height:0;gap:0}.ledger-entry-fields{display:grid;gap:16px;min-height:0;overflow:visible;padding:2px 2px 4px}.ledger-entry-footer{position:sticky;bottom:16px;z-index:20;flex:none;padding:12px 0 0;background:var(--surface);border-top:1px solid var(--border);margin-top:12px}.ledger-entry-footer .btn{width:100%}@media(max-width:860px){.ledger-entry-footer{bottom:calc(72px + env(safe-area-inset-bottom))}.ledger-entry-fields{gap:14px}.ledger-entry-footer .btn{min-height:44px}}.category-icon{flex:none;vertical-align:middle}.ledger-category-mark{display:grid;place-items:center;width:32px;height:32px;flex:none;border-radius:8px;background:var(--surface-2)}.ledger-detail-list{gap:0}.ledger-detail-row{display:flex;align-items:center;gap:14px;padding:14px 4px;background:transparent;border-bottom:1px solid var(--border)}.ledger-detail-row:last-child{border-bottom:0}.ledger-detail-icon{display:grid;place-items:center;width:48px;height:48px;border-radius:8px;background:var(--surface-2);flex:none}.ledger-detail-row .main{flex:1;min-width:0}.ledger-detail-title{display:flex;align-items:baseline;gap:8px;min-width:0;font-size:15px}.ledger-detail-title strong{flex:none;font-weight:600}.ledger-detail-note{color:var(--text-dim);overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.ledger-detail-meta{display:flex;align-items:center;gap:10px;margin-top:6px;color:var(--text-faint);font-size:12px}.ledger-detail-type{display:inline-flex;padding:2px 10px;border-radius:999px;font-weight:600;white-space:nowrap}.ledger-detail-row .amount{font-size:18px;flex:none}.ledger-detail-delete{flex:none;color:var(--text-faint)}@media(max-width:520px){.ledger-detail-row{gap:8px;padding:12px 4px}.ledger-detail-icon{width:38px;height:42px;border-radius:8px}.ledger-detail-title{font-size:13px;gap:5px}.ledger-detail-meta{gap:6px;font-size:11px}.ledger-detail-type{padding:2px 6px}.ledger-detail-row .amount{font-size:15px}.ledger-detail-delete{width:28px;min-width:28px;padding:0}}.category-picker{min-width:0;width:100%}.category-picker-trigger{display:flex;align-items:center;gap:8px;text-align:left;cursor:pointer;font-weight:400}.category-picker-trigger>span:not(.category-picker-arrow){flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.category-picker-arrow{color:var(--text-dim)}.category-picker-list{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px;padding:8px 0}.category-picker-option{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;width:100%;min-width:0;min-height:0;height:auto;aspect-ratio:1;box-sizing:border-box;padding:4px 2px;border:1px solid var(--border);border-radius:8px;background:var(--surface);color:var(--text-dim);font-size:12px;cursor:pointer;overflow-wrap:anywhere}.category-picker-option.selected{border:2px solid var(--brand);background:color-mix(in srgb,var(--category-highlight) 18%,var(--surface));color:var(--brand);font-weight:650}.category-picker-trigger:focus-visible,.category-picker-option:focus-visible{outline:2px solid var(--brand);outline-offset:-2px}.content .grid-form .category-picker-trigger{height:36px;min-height:36px;border-radius:var(--form-input-radius)}.wcard .category-picker{flex:1 1 70px}.wcard .category-picker-list{grid-template-columns:repeat(5,minmax(0,1fr))}.ledger-entry-column .quick-template-actions .row{flex-wrap:wrap;overflow:visible}.category-color-control{display:inline-flex;align-items:center;gap:6px}.category-color-input{width:26px;height:26px;padding:2px;border:1px solid var(--border);border-radius:6px;background:var(--surface);cursor:pointer}.category-color-input::-webkit-color-swatch-wrapper{padding:0}.category-color-input::-webkit-color-swatch{border:0;border-radius:3px}.category-color-input:focus-visible{outline:2px solid var(--brand);outline-offset:2px}.category-settings-toolbar{padding:4px 0 20px;border-bottom:1px solid var(--border);margin-bottom:20px}.category-type-label{font-size:12px;color:var(--text-dim)}.category-settings-layout{display:grid;grid-template-columns:minmax(280px,360px) minmax(0,1fr);gap:24px;align-items:start}.category-settings-layout>section{min-width:0}.category-section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.category-count{display:inline-block;margin-left:6px;padding:2px 7px;border-radius:6px;background:var(--surface-2);color:var(--text-dim);font-size:12px}.category-management-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}.category-management-tile{position:relative;border:1px solid var(--border);border-radius:8px;padding:14px 6px 6px;background:var(--surface);min-width:0}.category-management-tile.sorting{border:1px dashed var(--brand);background:var(--brand-soft)}.category-management-tile.sorting>*{opacity:.25}.category-drag-ghost{position:fixed;left:0;top:0;z-index:10000;box-sizing:border-box;pointer-events:none;padding:16px 6px 6px;border:1px solid var(--brand);border-radius:8px;background:var(--surface);box-shadow:0 8px 24px #00000029;will-change:transform;display:flex;flex-direction:column;align-items:center}.category-ghost-color{display:block;width:16px;height:16px;margin-top:8px;border-radius:4px}.category-tile-heading{display:flex;flex-direction:column;align-items:center;gap:6px;min-width:0;width:100%}.category-sort-handle{border:0;padding:2px 0;border-radius:6px;background:transparent;color:var(--text);cursor:grab;touch-action:none;user-select:none}.category-sort-handle:active{cursor:grabbing}.category-sort-handle:focus-visible{outline:2px solid var(--brand);outline-offset:2px}.category-tile-icon{position:relative;width:30px;height:30px;border-radius:8px;display:grid;place-items:center;flex:none}.category-tile-name{max-width:100%;font-size:12px;font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.category-tile-actions{display:flex;justify-content:center;align-items:center;gap:8px;margin-top:6px}.category-tile-actions .category-color-input{width:20px;height:20px}.category-remove{position:absolute;top:3px;right:3px;display:grid;place-items:center;width:18px;height:18px;border:0;border-radius:50%;padding:0;background:var(--surface-2);color:var(--text-faint);cursor:pointer}.category-sort-announcement{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.category-remove:hover{color:var(--expense);background:var(--surface-2)}.category-origin{font-size:10px;color:var(--text-faint);font-weight:400;white-space:nowrap}.category-management-tile.checked{border-color:var(--brand);background:var(--brand-soft)}.category-check{position:absolute;top:4px;right:4px;width:15px;height:15px;margin:0;cursor:pointer;accent-color:var(--brand)}.category-management-actions{gap:6px}.category-delete-toolbar{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:12px 0}.category-edit-panel{border:1px solid var(--brand)}.category-editor-preview{display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:14px}.category-edit-color{width:100%;height:36px;padding:4px;border:1px solid var(--border);border-radius:8px;background:var(--surface);cursor:pointer}.ledger-annual-total{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 0 16px;font-size:13px;color:var(--text-dim)}.ledger-annual-total strong{color:var(--expense-amount);font-size:22px}.ledger-annual-ranking{padding:0;margin:0;list-style:none}.ledger-annual-ranking li{display:flex;align-items:center;gap:10px;padding:14px 0;border-top:1px solid var(--border)}.ledger-rank-number{width:18px;text-align:center;color:var(--text-faint);font-size:12px;flex:none}.ledger-annual-ranking .main{flex:1;min-width:0}.ledger-annual-ranking .title{font-size:14px;overflow-wrap:anywhere}.ledger-annual-ranking .meta{color:var(--text-faint);font-size:11px;margin:4px 0 6px}.ledger-annual-ranking .bar{height:4px}.ledger-annual-ranking .amount{font-size:14px}.category-remove:focus-visible,.category-preset-option:focus-visible{outline:2px solid var(--brand);outline-offset:2px}.category-add-column{display:grid;gap:16px;min-width:0}.category-add-panel{background:var(--surface-2);border-radius:10px;padding:16px}.content .category-add-form{grid-template-columns:minmax(0,1fr);margin-top:16px;gap:10px}.category-add-form .hint{margin:0}.content .category-add-form .input{height:36px;min-height:36px;background:var(--surface);border:1px solid var(--border)}.content .category-add-form .input:focus{border-color:var(--brand)}.category-preset-group{border-bottom:1px solid var(--border)}.category-preset-group:last-child{border-bottom:0}.category-preset-group summary{padding:12px 0;cursor:pointer;font-size:13px;font-weight:500}.category-preset-count{float:right;font-weight:400;font-size:12px;color:var(--text-faint)}.category-preset-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;padding-bottom:12px}.category-preset-option{display:flex;align-items:center;gap:6px;min-height:36px;padding:8px;border:1px solid var(--border);border-radius:6px;background:var(--surface);color:var(--text);font-size:12px;text-align:left;cursor:pointer}.category-preset-option:hover{border-color:var(--brand)}.category-preset-plus{margin-left:auto;color:var(--text-faint)}@media(max-width:980px){.category-settings-layout{grid-template-columns:minmax(0,1fr)}}@media(max-width:520px){.category-management-grid{gap:4px}.category-management-tile,.category-drag-ghost{padding:14px 2px 5px}.category-tile-heading{gap:4px}.category-tile-icon{width:26px;height:26px}.category-tile-name{font-size:11px}.category-section-head .btn{height:32px;min-height:32px;padding:0 9px;font-size:12px}.category-tile-actions{gap:4px;margin-top:2px}.category-sort-handle{padding:0}.category-origin{font-size:9px;line-height:12px}.category-tile-name{line-height:14px}.category-preset-option{min-height:42px;padding:10px;gap:8px;font-size:13px;border-radius:8px}.category-preset-option .category-icon{width:20px;height:20px;flex:none}.category-preset-grid{gap:8px}.category-preset-group summary{font-size:14px}}.ledger-report-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.2fr);gap:20px;align-items:start}.ledger-report-layout>section{min-width:0}.ledger-report-layout .card-head{flex-wrap:wrap}.ledger-report-trend .card-head>div:first-child{flex:1 1 100%}.ledger-report-trend .card-head .spacer{display:none}.ledger-report-trend .ledger-report-actions{width:100%;justify-content:space-between}.ledger-year-trend{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:4px;margin-top:20px}.ledger-trend-month{min-width:0;text-align:center}.ledger-trend-bar-area{height:145px;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;gap:4px}.ledger-trend-value{font-size:9px;color:var(--text-faint);font-variant-numeric:tabular-nums}.ledger-trend-bar{width:100%;max-width:30px;border-radius:5px 5px 2px 2px;background:color-mix(in srgb,var(--brand) 50%,var(--surface))}.ledger-trend-label{display:block;margin-top:6px;font-size:10px;white-space:nowrap;color:var(--text-dim)}.ledger-trend-year{display:block;margin-top:4px;font-size:9px;color:var(--text-faint)}.ledger-trend-month.current .ledger-trend-bar{background:var(--brand)}.ledger-trend-month.current .ledger-trend-label,.ledger-trend-month.current .ledger-trend-year{color:var(--brand);font-weight:600}.ledger-report-breakdown{display:flex;align-items:center;gap:12px}.ledger-report-breakdown>svg{flex:none}.ledger-composition-section+.ledger-composition-section{border-top:1px solid var(--border);padding-top:16px;margin-top:16px}.ledger-composition-sub{color:var(--text-faint);font-size:14px;margin:6px 0 12px}.ledger-composition-legend{flex:1;min-width:0;max-width:350px}.ledger-composition-row{display:grid;grid-template-columns:minmax(70px,96px) minmax(0,1fr);align-items:baseline;gap:12px;padding:7px 0;font-size:14px}.ledger-composition-name{display:flex;align-items:center;gap:6px;min-width:0}.ledger-composition-name strong{overflow-wrap:anywhere;font-weight:600}.ledger-composition-name i{width:8px;height:8px;border-radius:2px;flex:none}.ledger-composition-value{color:var(--text-faint);white-space:nowrap;font-variant-numeric:tabular-nums}.ledger-report-category-list{width:100%;min-width:0}.ledger-report-category-list>.row{border-bottom:1px solid var(--border);padding:12px 0}.ledger-report-category-list>.row:last-child{border-bottom:0}.ledger-monthly-layout{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(280px,1fr);gap:16px;align-items:start}.ledger-monthly-layout>.card{min-width:0}.ledger-month-details{min-width:0}.ledger-month-search{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin-bottom:16px}.ledger-month-search .input{flex:1 1 180px;min-width:0}.ledger-month-search .select{flex:0 1 140px;width:140px}.ledger-calendar-toolbar{display:flex;align-items:center;gap:8px;margin:20px 0 16px}.ledger-calendar-toolbar .ledger-month-control{width:auto;min-width:0;flex:1;max-width:220px}.ledger-calendar{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px}.ledger-calendar-weekday{padding:8px 0;text-align:center;color:var(--text-faint);font-size:12px}.ledger-calendar-day{display:flex;flex-direction:column;align-items:center;gap:4px;min-width:0;min-height:48px;aspect-ratio:1;box-sizing:border-box;justify-content:center;border:1px solid transparent;border-radius:6px;padding:6px 2px;background:var(--surface-2);color:var(--text);font:inherit;cursor:pointer}.ledger-calendar-day:hover{border-color:var(--brand)}.ledger-calendar-day.selected{border-color:var(--brand);background:var(--brand-soft);box-shadow:none}.ledger-calendar-day:focus{outline:none}.ledger-calendar-day:focus-visible:not(.selected){border-color:var(--brand);outline:none}.ledger-calendar-day-number{display:grid;place-items:center;width:24px;height:24px;font-size:14px;font-weight:500}.ledger-calendar-day.today .ledger-calendar-day-number{border-radius:50%;background:var(--brand);color:#fff}.ledger-calendar-day-amount{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--expense-amount);font-size:12px;font-weight:500}.ledger-calendar-compact-amount{display:none}.ledger-calendar-summary{display:grid;grid-template-columns:1.4fr 1fr 1fr;gap:8px;margin-top:12px;padding-top:12px;border-top:1px solid var(--border)}.ledger-calendar-summary .v{font-size:18px;overflow-wrap:anywhere}.ledger-day-total{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:16px 0;border-bottom:1px solid var(--border);font-size:13px;color:var(--text-dim)}.ledger-day-total strong{font-size:22px;color:var(--expense-amount)}.ledger-monthly-layout .list-item{flex-wrap:wrap}@media(max-width:980px){.ledger-report-layout,.ledger-monthly-layout{grid-template-columns:minmax(0,1fr);gap:0}}@media(max-width:520px){.ledger-calendar{gap:3px}.ledger-calendar-day{min-height:42px;gap:2px;padding:2px 1px;border-radius:6px}.ledger-calendar-day-number{width:20px;height:20px;font-size:12px}.ledger-report-breakdown{gap:12px}.ledger-report-breakdown>svg{width:130px;height:130px}.ledger-composition-row{display:flex;flex-wrap:wrap;gap:3px 8px;font-size:13px;padding:6px 0}.ledger-composition-value{white-space:normal;overflow-wrap:anywhere}.ledger-calendar-day-amount{font-size:9px}.ledger-calendar-full-amount{display:none}.ledger-calendar-compact-amount{display:inline}.ledger-calendar-summary{gap:6px}.ledger-calendar-summary .v{font-size:16px}.ledger-calendar-summary .k{font-size:11px}.ledger-calendar-toolbar{gap:4px}.ledger-calendar-toolbar .btn{min-height:36px}.ledger-calendar-toolbar .btn.icon{width:36px;min-width:36px;padding:0}.ledger-calendar-toolbar .ledger-month-control{padding:0 6px;font-size:14px}}.ledger-settings-layout{display:grid;grid-template-columns:minmax(300px,380px) minmax(0,1fr);gap:24px;align-items:start}.wealth-editor-layout{display:grid;grid-template-columns:minmax(300px,380px) minmax(0,1fr);gap:20px;align-items:start}.wealth-editor-layout>*,.wealth-view .card{min-width:0}.content .wealth-form{grid-template-columns:minmax(0,1fr)}.wealth-form-actions{display:flex;flex-wrap:wrap}.wealth-form-actions .btn{flex:1}.wealth-form-card{overflow:visible}.wealth-form-card .wealth-form-actions{position:sticky;bottom:16px;z-index:10;padding-top:12px;background:var(--surface);border-top:1px solid var(--border)}.wealth-account-filter{width:auto;max-width:200px}.wealth-account-create .input{flex:1;width:auto;min-width:140px}.wealth-view .card-head{flex-wrap:wrap}.wealth-record-actions{gap:6px}.wealth-overview{margin-bottom:16px}.wealth-card-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}.item-status-filters{flex:1;min-width:0}.wealth-card-toolbar>.btn{flex:none}.item-status-filters .tabs{width:max-content}.wealth-record-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,480px),1fr));gap:16px;align-items:start}.wealth-record-grid>.card{margin-bottom:0}.wealth-record-grid .stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.wealth-record-grid .stat .v{font-size:18px;overflow-wrap:anywhere}.wealth-record-grid .item-value-card{padding:18px;border-radius:14px}.item-value-content{display:flex;gap:16px}.item-value-icon{width:66px;height:66px;display:grid;place-items:center;flex:none;border-radius:14px;color:var(--text-dim);background:var(--surface-2)}.item-value-main{flex:1;min-width:0}.item-value-heading{display:flex;align-items:start;justify-content:space-between;gap:12px}.item-value-heading h3{margin:0;font-size:19px;line-height:1.4;font-weight:650;overflow-wrap:anywhere}.item-value-status{flex:none;font-size:11px;padding:3px 8px;border-radius:20px;background:var(--surface-2);color:var(--text-faint)}.item-value-status.using{color:var(--income-amount);background:color-mix(in srgb,var(--income-amount) 12%,var(--surface))}.item-value-meta{color:var(--text-faint);font-size:12px;line-height:1.6;margin:5px 0 12px}.item-value-metrics{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.1fr) minmax(100px,.9fr);gap:12px;padding:12px 0;border-top:1px solid var(--border)}.item-value-metrics span{display:block;color:var(--text-faint);font-size:11px;line-height:1.6}.item-value-metrics strong{display:block;color:var(--text);font-size:17px;font-weight:650;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.item-value-metrics small{font-size:12px;font-weight:500}.item-value-progress{display:flex;gap:8px;border-left:1px solid var(--border);padding-left:12px;align-items:center}.item-value-battery{position:relative;width:19px;height:40px;border:1px solid var(--text-faint);border-radius:5px;padding:2px;flex:none}.item-value-battery:before{content:"";position:absolute;width:8px;height:3px;top:-4px;left:50%;transform:translate(-50%);border-radius:2px 2px 0 0;background:var(--text-faint)}.item-value-battery i{position:absolute;bottom:2px;left:2px;right:2px;max-height:calc(100% - 4px);background:var(--income-amount);border-radius:2px}.item-value-projection{display:flex;justify-content:space-between;flex-wrap:wrap;gap:5px 12px;border-top:1px dashed var(--border);padding-top:9px;font-size:11px;line-height:1.6}.item-value-projection strong{color:var(--text-dim);font-weight:600}.item-value-projection span{color:var(--text-faint)}.wealth-card-footer{display:flex;justify-content:flex-end;margin-top:10px}.wealth-card-footer .btn{min-height:28px;font-size:11px;padding:3px 8px}@media(max-width:520px){.wealth-record-grid .item-value-card{padding:14px}.item-value-content{gap:10px}.item-value-icon{width:44px;height:50px;border-radius:10px}.item-value-icon svg{width:26px;height:26px}.item-value-heading h3{font-size:16px}.item-value-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.item-value-metrics strong{font-size:16px}.item-value-progress{grid-column:1 / -1;padding:0;border:0}.item-value-progress>div:last-child{display:flex;align-items:baseline;gap:8px;flex-wrap:wrap}.item-value-battery{width:14px;height:24px}}.wealth-form-dialog{position:fixed;width:min(560px,calc(100vw - 32px));max-height:calc(100dvh - 32px);box-sizing:border-box;padding:0;color:var(--text);background:var(--surface);border:1px solid var(--border);border-radius:14px;box-shadow:0 20px 70px #0003;overflow-y:auto}.wealth-form-dialog::backdrop{background:#0f172a66}.wealth-form-dialog .card{border:0;box-shadow:none;margin:0;border-radius:0}.wealth-form-dialog .card-head{padding-right:36px}.wealth-form-dialog .wealth-form{grid-template-columns:repeat(2,minmax(0,1fr))}.wealth-form-dialog .wealth-form-card .wealth-form-actions{grid-column:1 / -1;bottom:0;padding-bottom:4px}.wealth-dialog-close{position:absolute;top:12px;right:12px;z-index:11;font-size:24px;line-height:1}@media(max-width:520px){.wealth-record-grid{gap:12px}.wealth-form-dialog .wealth-form{grid-template-columns:minmax(0,1fr)}}.item-summary{margin-bottom:20px}.item-overview{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));margin:0;padding:16px 0;border:1px solid var(--border);border-radius:14px;background:var(--surface)}.item-overview-metric{min-width:0;padding:0 20px}.item-overview-metric+.item-overview-metric{border-left:1px solid var(--border)}.item-overview dt{color:var(--text-faint);font-size:13px;font-weight:500}.item-overview .item-overview-value{margin:6px 0 0;color:var(--text);font-size:clamp(20px,2vw,26px);font-weight:650;line-height:1.3;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.item-summary-footer{display:flex;align-items:baseline;justify-content:flex-end;flex-wrap:wrap;gap:8px 20px;padding-top:12px;font-size:12px;color:var(--text-faint)}.item-overview-value small{font-size:12px;font-weight:500;margin-left:2px}.item-overview-daily .item-overview-value{color:var(--text-dim)}@media(max-width:520px){.item-summary{margin-bottom:16px}.item-overview{padding:14px 0}.item-overview-metric{padding:0 8px}.item-overview dt{font-size:11px}.item-overview .item-overview-value{font-size:clamp(13px,3.8vw,19px)}.item-overview-value small{font-size:10px}.item-summary-footer{font-size:11px;padding-top:10px}}.wealth-details{border-top:1px solid var(--border);margin-top:16px;padding-top:12px}.wealth-details summary{cursor:pointer;font-size:13px;font-weight:500;margin-bottom:12px}.wealth-account-row{margin-top:10px}.wealth-account-row .input{flex:1;min-width:140px}.wealth-table-wrap{max-width:100%;overflow-x:auto}.wealth-table{width:100%;border-collapse:collapse;font-size:12px;white-space:nowrap}.wealth-table th,.wealth-table td{text-align:right;padding:10px 8px;border-bottom:1px solid var(--border)}.wealth-table th{color:var(--text-faint);font-weight:500}.wealth-plan-progress{margin-top:16px}.wealth-plan-progress .row{justify-content:space-between;font-size:12px;margin-bottom:6px}.wealth-movement-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding-top:16px;margin-top:16px;border-top:1px solid var(--border)}@media(max-width:980px){.wealth-editor-layout{grid-template-columns:minmax(0,1fr);gap:0}}@media(max-width:520px){.wealth-movement-form{grid-template-columns:minmax(0,1fr)}.wealth-view .stat .v{font-size:20px;overflow-wrap:anywhere}.wealth-record-actions .btn{min-height:36px}}@media(max-width:860px){.wealth-form-card .wealth-form-actions{bottom:calc(72px + env(safe-area-inset-bottom))}}.ledger-settings-entry{min-width:0;padding-right:24px;border-right:1px solid var(--border)}.content .ledger-settings-form{grid-template-columns:minmax(0,1fr);margin-top:16px}.ledger-settings-records{display:grid;gap:24px;min-width:0}.ledger-settings-records .list{margin-top:12px}.ledger-settings-records .list-item{flex-wrap:wrap}.ledger-settings-records .list-item .main{flex:1 1 220px}.ledger-settings-form-wide{grid-column:1 / -1}.ledger-settings-form-actions{display:flex;gap:8px}.ledger-settings-form-actions .btn{flex:1}@media(max-width:980px){.ledger-settings-layout{grid-template-columns:minmax(0,1fr)}.ledger-settings-entry{padding-right:0;padding-bottom:24px;border-right:0;border-bottom:1px solid var(--border)}}.home-quick-entry{display:flex;flex-direction:column;gap:12px}.home-quick-amount{display:flex;align-items:center;gap:8px;padding:8px 0 12px;border-bottom:1px solid var(--border)}.home-quick-amount>span{font-size:20px;color:var(--text-faint)}.home-quick-amount input{min-width:0;width:100%;flex:1;border:0;outline:0;background:transparent;color:var(--text);font-size:36px;font-weight:600;font-variant-numeric:tabular-nums}.home-quick-amount input:focus-visible{box-shadow:0 2px var(--brand)}.home-quick-amount>.btn{flex:none;min-width:72px;min-height:40px}.home-quick-templates{display:flex;align-items:center;gap:6px;overflow-x:auto;font-size:12px;color:var(--text-faint)}.home-quick-templates>*{flex:none}.home-quick-categories{display:flex;gap:12px;min-width:0;max-width:100%;overflow-x:auto;scroll-snap-type:x mandatory;overscroll-behavior-x:contain;padding-bottom:6px}.home-quick-category-page{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));grid-template-rows:repeat(2,auto);gap:10px 4px;flex:0 0 100%;min-width:0;scroll-snap-align:start}.home-quick-entry>.input{min-height:36px;font-size:16px}.home-quick-footer{display:flex;align-items:center;justify-content:space-between;border-top:1px solid var(--border);padding-top:8px;font-size:12px;color:var(--text-faint)}.amount-input-control{min-width:0;position:relative}.home-quick-amount .amount-input-control{flex:1;min-width:0}.category-settings .category-settings-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 0 16px;margin-bottom:16px}.category-type-switch{min-width:0}.category-type-switch .tabs{display:flex;width:max-content}.category-type-switch .tabs button{min-height:36px;padding:6px 14px;font-size:13px}.category-settings .category-settings-layout{display:flex;flex-direction:column;gap:24px}.category-settings-layout>section{width:100%;box-sizing:border-box}.category-settings .category-management-actions .btn{height:32px;min-height:32px;min-width:64px;width:auto;padding:0 12px;flex:none;white-space:nowrap}.category-settings-toolbar>.btn{min-height:36px;padding:0 14px;flex:none;white-space:nowrap}.category-settings .category-preset-grid{grid-template-columns:repeat(auto-fill,minmax(130px,1fr))}.category-form-dialog{position:fixed;width:min(420px,calc(100vw - 32px));box-sizing:border-box;max-height:calc(100dvh - 32px);overflow-y:auto;padding:20px;border:1px solid var(--border);border-radius:14px;background:var(--surface);color:var(--text);box-shadow:0 16px 60px #0000002e}.category-form-dialog::backdrop{background:#0f172a66}.category-form-dialog .category-add-panel{background:transparent;border:0;padding:0}.category-form-dialog .card-title{padding-right:32px}.category-form-dialog .category-add-form{display:grid;grid-template-columns:minmax(0,1fr);margin-top:16px;gap:12px}.category-form-dialog .input{background:var(--surface-2);border:1px solid var(--border);height:36px}.category-dialog-close{position:absolute;top:10px;right:10px;font-size:24px}@media(max-width:520px){.category-settings .category-section-head{gap:10px}.category-settings .category-management-actions{width:100%;justify-content:flex-end}.category-type-switch .tabs button{padding:6px 10px}}.category-form-dialog .category-dialog-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:8px}.category-form-dialog .category-dialog-actions .btn{width:auto;flex:none;margin:0;height:36px;min-height:36px;padding:0 14px;font-size:13px}.category-form-dialog .category-dialog-close{display:grid;place-items:center;width:28px;height:28px;min-height:28px;padding:0;border:0;border-radius:6px;background:transparent;color:var(--text-faint);box-shadow:none;font-size:22px;cursor:pointer}.category-dialog-close:focus{outline:none}.category-dialog-close:focus-visible{outline:1px solid var(--text-faint);outline-offset:1px}@media(max-width:860px){:root{--mobile-button-height: 36px}.btn:not(.icon),.form-controls .btn:not(.icon),.content .grid-form>.btn:not(.icon),.category-settings .category-management-actions .btn,.category-settings-toolbar>.btn,.category-settings .category-delete-toolbar .btn,.category-form-dialog .category-dialog-actions .btn{height:var(--mobile-button-height);min-height:var(--mobile-button-height);padding:0 14px;font-size:13px;width:auto;flex-shrink:0}}.category-form-dialog:focus,.wealth-form-dialog:focus,.ledger-entry-sheet:focus{outline:none}.component-select{position:relative;min-width:0}.component-select-native{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none;clip-path:inset(50%)}.component-select-trigger{display:flex;align-items:center;justify-content:space-between;gap:10px;cursor:pointer;text-align:left;height:36px;min-height:36px;font:inherit}.component-select-trigger>span:first-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.component-select-trigger:focus-visible{outline:2px solid var(--brand);outline-offset:2px}.component-select-dialog{width:min(380px,calc(100vw - 32px));max-height:calc(100dvh - 48px);box-sizing:border-box;padding:0;border:1px solid var(--border);border-radius:14px;background:var(--surface);color:var(--text);overflow:hidden;box-shadow:0 12px 48px #0003}.component-select-dialog::backdrop{background:#0f172a66}.component-select-dialog header{display:flex;align-items:center;justify-content:space-between;padding:14px 16px;border-bottom:1px solid var(--border);font-size:14px}.component-select-dialog header button{border:0;background:transparent;color:var(--text-faint);width:28px;height:28px;font-size:22px}.component-select-options{overflow-y:auto;max-height:min(55dvh,420px);padding:6px 8px}.component-select-options button{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:44px;padding:10px 12px;border:0;border-radius:8px;background:transparent;color:var(--text);font:inherit;text-align:left}.component-select-options button[aria-selected=true]{background:var(--brand-soft);color:var(--brand)}.component-select-options button:focus-visible{outline:1px solid var(--brand);outline-offset:-1px}.component-select-options button:disabled{opacity:.45}@media(max-width:860px){.component-select-dialog{position:fixed;inset:auto 0 0;margin:0 auto;width:100%;max-width:600px;border:0;border-radius:16px 16px 0 0;padding-bottom:env(safe-area-inset-bottom)}.component-select-trigger{font-size:16px}.book-management>.row>.component-select{grid-column:2 / 4}}.ledger-month-search>.component-select{flex:1 1 140px;min-width:0}.type-management-row>.component-select{flex:1 1 120px;min-width:0}.component-select:has(>.wealth-account-filter){max-width:200px}.component-select>.wealth-account-filter{width:100%}.text-delete-action{display:inline-flex;align-items:center;justify-content:center;min-height:36px;padding:0 8px;border:0;background:transparent;box-shadow:none;color:var(--expense);font-size:13px;cursor:pointer;white-space:nowrap}.text-delete-action:disabled{opacity:.45;cursor:default}.text-delete-action:focus-visible{outline:1px solid var(--expense);outline-offset:2px}.component-select-arrow{display:block;flex:none;align-self:center}.component-select-trigger{line-height:1.2}.component-select-trigger>span:first-child{display:block;line-height:1.2}.card-head>.component-select{margin-left:auto;flex:0 0 auto;max-width:100%}.ledger-report-trend .ledger-report-actions{justify-content:flex-end;margin-left:auto}@media(max-width:860px){.component-select-dialog{inset:auto 12px calc(12px + env(safe-area-inset-bottom));width:calc(100% - 24px);border-radius:16px;padding-bottom:8px;max-height:calc(100dvh - 80px - env(safe-area-inset-bottom))}.ledger-report-trend .ledger-report-actions{justify-content:flex-end}}.category-settings .category-management-actions .text-delete-action{color:var(--expense);border:0;background:transparent;box-shadow:none}.category-settings .category-management-actions .text-delete-action:hover{color:var(--expense);background:transparent}.ledger-book-selector{display:flex;justify-content:flex-end;width:fit-content;max-width:100%;margin-left:auto;flex:0 0 auto}.ledger-book-selector .component-select{width:auto;margin-left:auto}.card-head>.ledger-book-selector{margin-left:auto;flex:0 0 auto}.ledger-mobile-book{width:100%}@media(max-width:860px){.book-management>.row>.ledger-book-selector{grid-column:2 / 4;justify-self:end}}.settings-list-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}.settings-list-toolbar .hint{margin:0}.settings-list-toolbar>.btn{flex:none}.settings-form-dialog{width:min(520px,calc(100vw - 32px));max-height:calc(100dvh - 32px);box-sizing:border-box;overflow-y:auto;padding:20px;border:1px solid var(--border);border-radius:14px;background:var(--surface);color:var(--text);box-shadow:0 16px 60px #0000002e}.settings-form-dialog::backdrop{background:#0f172a66}.settings-form-dialog:focus{outline:none}.settings-form-dialog .card-title{padding-right:30px}.settings-form-dialog .ledger-settings-form{grid-template-columns:minmax(0,1fr);margin-top:16px}.settings-form-dialog .ledger-settings-form-actions{justify-content:flex-end}.settings-form-dialog .ledger-settings-form-actions .btn{flex:none;width:auto;min-height:36px;padding:0 14px;font-size:13px}.settings-form-dialog .category-dialog-close{position:absolute;right:10px;top:10px;width:28px;height:28px;padding:0;border:0;background:transparent;color:var(--text-faint);font-size:22px}.wcard .workbench-widget{padding:0;margin:0;border:0;background:transparent;box-shadow:none}.workbench-widget .workbench-heading{margin-bottom:16px}.workbench-widget .workbench-heading h1{font-size:18px}.workbench-widget .workbench-heading p{font-size:12px}.workbench-widget .app-shortcuts{display:grid;grid-template-columns:repeat(auto-fit,minmax(64px,1fr));gap:12px 8px}.ledger-book-selector .component-select-trigger{min-width:128px;height:36px;padding:0 12px;border:1px solid var(--border);border-radius:8px;background:var(--surface);color:var(--text);font-size:14px;gap:12px}.ledger-entry-sheet{inset:0;margin:auto;width:min(520px,calc(100vw - 32px));max-height:calc(100dvh - 32px);border:1px solid var(--border);border-radius:14px}.ledger-entry-sheet .card{padding:20px}.ledger-entry-sheet .ledger-entry-footer{display:flex;justify-content:flex-end;gap:8px;padding:12px 0 0;position:static}.ledger-entry-sheet .ledger-entry-footer .btn{width:auto;flex:none;min-height:36px;height:36px;padding:0 14px;font-size:13px}.ledger-entry-sheet .ledger-sheet-close{display:grid;place-items:center;width:28px;height:28px;min-height:28px;padding:0;border:0;background:transparent;box-shadow:none;color:var(--text-faint);font-size:22px}.dashboard-heading .card-title{display:flex;align-items:center;gap:10px}.dashboard-component-count{font-size:12px;font-weight:400;color:var(--text-faint);white-space:nowrap}.component-select[data-pointer-focus=true] .component-select-trigger:focus{outline:none;border-color:transparent;box-shadow:none}.ledger-book-selector .component-select[data-pointer-focus=true] .component-select-trigger:focus{border-color:var(--border)}.home-quick-templates .btn.sm,.quick-template-actions .btn.sm{height:28px;min-height:28px;padding:0 10px;border-radius:999px;font-size:12px;gap:4px;flex:none}.quick-template-actions .btn.sm .category-icon{width:14px;height:14px}.component-select[data-pointer-focus=true] .component-select-options button:focus-visible{outline:none}.month-picker-trigger{display:flex;align-items:center;justify-content:space-between;gap:10px;height:36px;border:1px solid var(--border);cursor:pointer}.month-picker-trigger>svg{flex:none}.month-picker-dialog:focus{outline:none}.month-picker-year{display:flex;align-items:center;justify-content:space-between;padding:12px 16px;font-size:16px}.month-picker-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:0 16px 16px}.month-picker-grid button{min-height:44px;border:0;border-radius:8px;background:var(--surface-2);color:var(--text);font-size:14px;cursor:pointer}.month-picker-grid button[aria-pressed=true]{background:var(--brand-soft);color:var(--brand);font-weight:600}.month-picker-grid button:focus-visible{outline:1px solid var(--text-dim)}.month-picker-actions{display:flex;justify-content:flex-end;gap:8px;padding:0 16px 12px}.monthly-expense-trend{display:block;width:100%;height:auto;min-height:200px}.monthly-trend-selection{display:flex;align-items:baseline;justify-content:space-between;gap:8px;font-size:12px;color:var(--text-faint);margin-bottom:6px}.monthly-trend-selection strong{color:var(--expense-amount);font-size:18px;font-variant-numeric:tabular-nums}.monthly-trend-point{cursor:pointer}.monthly-trend-point:focus{outline:none}.monthly-trend-point:focus-visible circle{stroke:var(--text);stroke-width:2}.month-picker-grid button:disabled{opacity:.35;cursor:not-allowed;background:var(--surface-2);color:var(--text-faint);font-weight:400}.ledger-calendar-toolbar .ledger-more-query{display:inline-flex;align-items:center;gap:5px;padding:0 10px;border:1px solid var(--border);background:var(--surface);color:var(--text-dim);border-radius:8px;white-space:nowrap}.ledger-calendar-toolbar .ledger-more-query.active{color:var(--brand);border-color:color-mix(in srgb,var(--brand) 35%,var(--border));background:var(--brand-soft)}.query-active-dot{width:5px;height:5px;border-radius:50%;background:var(--brand);flex:none}.ledger-year-trend.trend-carousel{position:relative;display:flex;gap:12px;overflow-x:auto;scroll-snap-type:x mandatory;overscroll-behavior-x:contain;padding:28px max(0px,calc(50% - 36px)) 12px;margin-top:8px;scrollbar-width:thin}.trend-carousel .ledger-trend-month{flex:0 0 72px;border:0;padding:0;background:transparent;font:inherit;scroll-snap-align:center;cursor:pointer}.trend-carousel .ledger-trend-bar-area{transform:scale(var(--trend-scale, 1));transform-origin:center bottom;opacity:var(--trend-opacity, .65);will-change:transform}.trend-carousel .ledger-trend-bar{width:30px}.trend-carousel .ledger-trend-value{font-size:11px}.trend-carousel .ledger-trend-label{font-size:12px}.trend-carousel .ledger-trend-month.focused .ledger-trend-bar{background:var(--brand)}.trend-carousel .ledger-trend-month.focused .ledger-trend-label{color:var(--brand);font-weight:600}.trend-carousel .ledger-trend-month:focus-visible{outline:1px solid var(--text-dim);outline-offset:2px;border-radius:6px}@media(prefers-reduced-motion:reduce){.trend-carousel .ledger-trend-bar-area{transform:none}}.ledger-annual-total{font-size:14px;font-weight:500}.ledger-annual-total strong{font-size:24px;font-weight:700}.ledger-annual-ranking li{gap:12px;padding:16px 0}.ledger-annual-ranking .title{font-size:16px;font-weight:600;line-height:1.5}.ledger-annual-ranking .category-origin{font-size:11px;font-weight:500}.ledger-annual-ranking .meta{font-size:13px;font-weight:500;margin:4px 0 8px}.ledger-annual-ranking .amount{font-size:17px;font-weight:650}.ledger-rank-number{width:30px;font-size:14px;font-weight:600}@media(max-width:520px){.ledger-annual-ranking li{gap:8px}.ledger-annual-ranking .amount{font-size:16px}}.ledger-annual-ranking .ledger-rank-number{width:24px;flex:0 0 24px}.ledger-annual-ranking li>.category-icon{display:block;flex:0 0 24px;width:24px;height:24px}.ledger-annual-ranking .amount{flex:none;white-space:nowrap}@media(max-width:520px){.ledger-annual-ranking li{gap:10px}}.wealth-tab-navigation{margin-bottom:12px;overflow-x:auto;scrollbar-width:none;overscroll-behavior-x:contain}.wealth-tab-navigation .tabs{display:inline-flex;width:auto;max-width:100%;box-sizing:border-box;gap:2px;padding:3px;border-radius:8px}.wealth-tab-navigation .tabs button{flex:none;min-height:32px;padding:5px 16px;font-size:13px;font-weight:500;border-radius:8px;touch-action:manipulation;transition:background-color .18s ease,color .18s ease,box-shadow .18s ease}@media(max-width:860px){.wealth-tab-navigation .tabs button{min-height:34px;font-size:13px;padding:5px 14px}}@media(prefers-reduced-motion:reduce){.wealth-tab-navigation .tabs button{transition:none}}.ledger-annual-ranking li{gap:8px;padding:11px 0}.ledger-annual-ranking .ledger-rank-number{width:18px;flex-basis:18px}.ledger-annual-ranking li>.category-icon{width:22px;height:22px;flex-basis:22px}.ledger-annual-ranking .meta{margin:2px 0 5px}.calendar-heat-legend{display:flex;align-items:center;justify-content:flex-end;gap:4px;margin:8px 0 0;font-size:10px;color:var(--text-faint)}.calendar-heat-legend i{width:12px;height:8px;border-radius:2px}.monthly-peak-label{paint-order:stroke;stroke:var(--surface);stroke-width:4px;stroke-linejoin:round;pointer-events:none}.monthly-trend-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;border-top:1px solid var(--border);margin-top:12px;padding-top:12px}.monthly-trend-stats span{display:block;font-size:11px;color:var(--text-faint)}.monthly-trend-stats strong{display:block;margin-top:4px;font-size:17px;font-weight:600;font-variant-numeric:tabular-nums}.item-value-content{display:block}.item-value-title-group{display:flex;align-items:center;gap:10px;min-width:0}.item-value-title-group .item-value-icon{width:36px;height:36px;border-radius:9px}.item-value-title-group .item-value-icon svg{width:23px;height:23px}.item-value-heading{align-items:center}.comparison-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.comparison-stats span{display:block;font-size:12px;color:var(--text-faint)}.comparison-stats strong{display:block;font-size:20px;margin-top:4px;font-variant-numeric:tabular-nums}.comparison-change{font-size:12px;color:var(--text-dim);margin:10px 0}.comparison-legend{display:flex;justify-content:flex-end;gap:16px;font-size:11px;color:var(--text-faint)}.comparison-legend span{display:flex;align-items:center;gap:5px}.comparison-legend i{width:14px;height:3px;background:var(--brand)}.comparison-legend span:last-child i{background:var(--text-faint)}.monthly-comparison-chart{display:block;width:100%;height:auto}.comparison-legend{flex-wrap:wrap}.comparison-legend span:nth-child(2) i{background:var(--text-faint)}.comparison-legend .comparison-continuation i{background:none;height:0;border-top:2px dashed var(--brand)}.item-card-body{display:grid;grid-template-columns:minmax(0,1fr);width:100%}.item-card-body .item-value-meta,.item-card-body .item-value-metrics,.item-card-body .item-value-projection{width:100%;box-sizing:border-box;margin-left:0}.wealth-record-grid:has(.item-value-card){grid-template-columns:repeat(auto-fill,minmax(min(100%,360px),1fr));gap:10px}.wealth-record-grid .item-value-card{padding:12px 14px;border-radius:10px}.item-value-card .item-value-heading h3{font-size:16px;line-height:1.35}.item-value-card .item-value-title-group{gap:8px}.item-value-card .item-value-icon{width:30px;height:30px;border-radius:8px}.item-value-card .item-value-icon svg{width:20px;height:20px}.item-value-card .item-value-meta{font-size:11px;margin:4px 0 8px}.item-value-card .item-value-metrics{gap:8px;padding:8px 0;grid-template-columns:minmax(0,1fr) minmax(0,1.1fr) minmax(86px,.9fr)}.item-value-card .item-value-metrics strong{font-size:15px}.item-value-card .item-value-progress{gap:6px;padding-left:8px}.item-value-card .item-value-battery{width:15px;height:30px}.item-value-card .item-value-projection{padding-top:6px;gap:3px 8px;line-height:1.45}.item-value-card .wealth-card-footer{margin-top:6px}.item-value-card .hint{margin:6px 0}@media(max-width:520px){.item-value-card .item-value-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.item-value-card .item-value-progress{padding-left:0}.item-value-card .item-value-battery{width:12px;height:20px}}.wealth-view .ledger-currency{display:inline;color:var(--text-faint);font-size:.7em;font-weight:400;margin-right:3px}.wealth-view .item-value-metrics .ledger-currency{font-size:.7em;font-weight:400}.wealth-view .ledger-money-unit{color:var(--text-faint);font-size:.6em;font-weight:400;margin-left:3px}.movable-action.btn{position:fixed;right:20px;bottom:24px;z-index:40;border-radius:24px;height:44px;min-height:44px;padding:0 18px;box-shadow:0 4px 18px #2f6bff38;touch-action:none;user-select:none;cursor:grab}.movable-action:before{content:"+";font-size:20px;margin-right:4px}.movable-action:active{cursor:grabbing}.with-floating-add{padding-bottom:60px}@media(max-width:860px){.movable-action.btn{bottom:calc(78px + env(safe-area-inset-bottom))}}@media(max-width:520px){.wealth-card-toolbar{flex-wrap:wrap;gap:8px}.wealth-card-toolbar .item-status-filters{flex:1 1 220px}.wealth-card-toolbar>.btn{margin-left:auto}}.item-value-status{font-weight:600}.item-value-status.using{color:#3f795f;font-weight:650}[data-theme=dark] .item-value-status.using{color:#93c8ac}.ledger-currency{display:inline;font-size:.7em;font-weight:400;color:var(--text-faint);margin-right:2px}.home-quick-amount>.ledger-currency{font-size:16px}.entry-swipe{position:relative;overflow:hidden;border-bottom:1px solid var(--border)}.entry-swipe:last-of-type{border-bottom:0}.entry-swipe-actions{position:absolute;right:0;top:0;bottom:0;width:120px;display:flex;visibility:hidden;pointer-events:none;clip-path:inset(0 0 0 100%);transition:clip-path .18s ease,visibility 0s linear .18s}.entry-swipe.opened .entry-swipe-actions{visibility:visible;pointer-events:auto;clip-path:inset(0);transition-delay:0s}.entry-swipe-actions button{width:60px;border:0;color:#fff;background:var(--brand);font-size:13px}.entry-swipe-actions button:last-child{background:var(--expense)}.entry-swipe .entry-swipe-content{position:relative;background:var(--surface);border-bottom:0;transition:transform .18s ease;touch-action:pan-y}.entry-swipe.opened .entry-swipe-content{transform:translate(-120px)}.entry-desktop-actions{display:flex;gap:4px;flex:none}.entry-desktop-actions .ledger-detail-delete{color:var(--expense);width:auto}.entry-mobile-more{display:none;flex:none}@media(max-width:860px){.entry-desktop-actions{display:none}.entry-mobile-more{display:inline-flex;width:28px;min-width:28px;font-size:18px}}@media(prefers-reduced-motion:reduce){.entry-swipe .entry-swipe-content,.entry-swipe .entry-swipe-actions{transition:none}}.ledger-overview-widget{display:flex;flex-direction:column;height:100%;gap:12px}.ledger-overview-primary{display:block;white-space:nowrap;font-size:clamp(20px,3vw,28px);line-height:1.3;font-weight:650;margin:4px 0 8px}.ledger-overview-breakdown{display:grid;gap:6px;margin:0;font-size:12px}.ledger-overview-breakdown>div{display:flex;justify-content:space-between;align-items:baseline;gap:6px}.ledger-overview-breakdown dt{color:var(--text-faint);flex:none}.ledger-overview-breakdown dd{margin:0;color:var(--text-dim);white-space:nowrap;font-variant-numeric:tabular-nums;font-weight:500}.component-select{box-sizing:border-box}.component-select-trigger{box-sizing:border-box;min-width:0;max-width:100%;height:36px;flex-wrap:nowrap}.component-select-trigger>span:first-child{min-width:0;flex:1}.ledger-calendar-toolbar{flex-wrap:wrap}.ledger-calendar-toolbar .month-picker-trigger{flex:1 0 140px;min-width:140px;max-width:220px;height:36px;min-height:36px;box-sizing:border-box;padding:0 10px;line-height:1.2}.month-picker-trigger>span{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:left}.ledger-calendar-toolbar>.btn.icon{flex:0 0 36px}.ledger-calendar-toolbar .ledger-more-query{flex:none;margin-left:auto}.update-notice{position:fixed;bottom:24px;left:50%;transform:translate(-50%);z-index:70;display:flex;align-items:center;gap:16px;max-width:calc(100vw - 32px);padding:10px 14px;border:1px solid var(--border);border-radius:12px;background:var(--surface);color:var(--text);box-shadow:0 6px 28px #00000026;font-size:13px;white-space:nowrap}@media(max-width:860px){.update-notice{bottom:calc(78px + env(safe-area-inset-bottom))}}.category-picker-option>.category-icon{flex:none;width:22px;height:22px}.category-picker-option>span{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;line-height:1.3}@media(max-width:380px){.category-picker-option{gap:3px;font-size:11px}.category-picker-option>.category-icon{width:20px;height:20px}}.recurring-text-actions{display:flex;align-items:center;justify-content:flex-end;gap:14px;flex:0 0 auto;margin-left:auto;white-space:nowrap}.recurring-text-actions button{border:0;background:transparent;padding:4px 0;min-height:32px;color:var(--text-dim);font-size:13px;font-weight:500;cursor:pointer}.recurring-text-actions button.danger{color:var(--expense)}.recurring-text-actions button:focus-visible{outline:1px solid var(--brand);outline-offset:3px;border-radius:2px}.recurring-rule-card{min-width:0;border:1px solid var(--border);border-radius:10px;background:var(--surface);padding:14px 16px;margin-top:10px}.recurring-rule-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.recurring-rule-name{display:flex;align-items:center;gap:9px;min-width:0;font-size:15px}.recurring-rule-name strong{overflow-wrap:anywhere;font-weight:600}.recurring-rule-icon{display:grid;place-items:center;width:34px;height:34px;border-radius:9px;background:var(--surface-2);flex:none}.recurring-rule-amount{flex:none;font-size:19px;font-weight:650;white-space:nowrap;font-variant-numeric:tabular-nums}.recurring-rule-amount.expense{color:var(--expense-amount)}.recurring-rule-amount.income{color:var(--income-amount)}.recurring-rule-meta{display:flex;align-items:center;flex-wrap:wrap;gap:8px 12px;margin-top:10px;color:var(--text-dim);font-size:12px}.recurring-rule-frequency{padding:2px 7px;border-radius:5px;background:var(--surface-2)}.recurring-rule-schedule{display:flex;justify-content:space-between;flex-wrap:wrap;gap:5px 10px;font-size:12px;color:var(--text-faint);margin-top:9px}.recurring-rule-schedule strong{font-weight:500;color:var(--text-dim)}.recurring-rule-note{font-size:12px;color:var(--text-faint);margin:8px 0 0;overflow-wrap:anywhere}.recurring-rule-footer{display:flex;justify-content:flex-end;margin-top:10px;padding-top:4px;border-top:1px solid var(--border)}.recurring-rule-footer .recurring-text-actions{gap:20px}@media(max-width:520px){.recurring-rule-card{padding:12px}}.repayment-cycle-list{margin-top:12px}.repayment-cycle-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 0;border-top:1px solid var(--border)}.repayment-cycle-row>div:first-child{min-width:0}.repayment-cycle-row strong{font-size:13px;font-weight:600}.repayment-cycle-row p{font-size:11px;color:var(--text-faint);margin:5px 0 0;line-height:1.6}.repayment-cycle-status{font-size:11px;margin-left:8px;color:var(--text-faint)}.repayment-cycle-status.paid{color:var(--income-amount)}.repayment-cycle-status.overdue{color:var(--expense)}.bill-type-mark{width:34px;height:34px;display:grid;place-items:center;border-radius:9px;font-size:23px;font-weight:600;flex:none}.bill-type-colors{display:flex;align-items:center;flex-wrap:wrap;gap:10px}.bill-type-colors button{width:28px;height:28px;border:0;border-radius:50%;color:#fff;font-size:16px;cursor:pointer}.bill-type-colors button[aria-pressed=true]{outline:2px solid var(--text-dim);outline-offset:3px}.bill-type-colors input{width:32px;height:32px;border:1px solid var(--border);padding:2px;border-radius:8px;background:var(--surface)}.bill-type-list{display:flex;flex-direction:column}.bill-type-row{display:flex;align-items:center;gap:12px;padding:14px 0;border-bottom:1px solid var(--border)}.bill-type-row:last-child{border-bottom:0}.bill-type-info{flex:1;min-width:0;display:flex;flex-direction:column;gap:4px}.bill-type-info strong{font-size:15px;font-weight:600;overflow-wrap:anywhere}.bill-type-info>span{font-size:12px;color:var(--text-faint)}.plan-record-card .stat-grid{gap:8px;margin-top:12px}.plan-record-card .stat{padding:10px}.plan-record-card .wealth-movement-form{margin-top:12px;padding-top:12px;gap:10px}.plan-record-card .plan-status-actions{justify-content:flex-end;margin-top:8px}.ledger-date-group{min-width:0}.ledger-date-group+.ledger-date-group{margin-top:16px}.ledger-date-group-header{display:flex;align-items:baseline;justify-content:space-between;flex-wrap:wrap;gap:6px 12px;padding:10px 0;border-bottom:1px solid var(--border)}.ledger-date-group-header h3{margin:0;font-size:14px;font-weight:600}.ledger-date-group-header h3 small{font-size:11px;font-weight:400;color:var(--text-faint);margin-left:4px}.ledger-date-group-header>div{display:flex;flex-wrap:wrap;gap:8px;font-size:11px;color:var(--text-faint)}.ledger-date-group-header strong{color:var(--text-dim);font-weight:500;font-variant-numeric:tabular-nums}.date-picker-dialog:focus{outline:none}.date-picker-trigger{width:100%;background:var(--surface-2);border:1px solid var(--border)}.date-picker-trigger>svg{flex:none}.date-picker-toolbar{display:flex;align-items:center;gap:8px;padding:12px 16px}.date-picker-toolbar>.component-select{flex:1;min-width:0}.date-picker-toolbar>.btn.icon{flex:none;width:32px;height:36px;min-height:36px;padding:0}.date-picker-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px;padding:0 16px 16px}.date-picker-weekday{padding:6px 0;font-size:12px;color:var(--text-faint);text-align:center}.date-picker-grid button{min-width:0;min-height:38px;aspect-ratio:1;border:1px solid transparent;background:transparent;color:var(--text);border-radius:8px;font-size:14px;cursor:pointer}.date-picker-grid button[aria-current=date]{color:var(--brand);font-weight:600}.date-picker-grid button[aria-pressed=true]{color:var(--brand);background:var(--brand-soft);font-weight:600}.date-picker-grid button:focus-visible{outline:1px solid var(--text-dim)}.ledger-reminder-row{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px 12px;padding:12px 0;border-bottom:1px solid var(--border)}.ledger-reminder-row:last-child{border-bottom:0}.ledger-reminder-content{flex:1 1 170px;min-width:0}.ledger-reminder-title{display:flex;align-items:baseline;flex-wrap:wrap;gap:8px;font-size:14px}.ledger-reminder-title strong{font-weight:600;overflow-wrap:anywhere}.ledger-reminder-title>span{color:var(--text-dim);font-weight:500}.ledger-reminder-content p{margin:5px 0;color:var(--text-faint);font-size:12px}.ledger-reminder-date{color:var(--text-dim);font-size:11px}.ledger-reminder-date.overdue{color:var(--expense)}.ledger-upcoming{min-width:0;padding:18px 20px 6px}.ledger-upcoming-head{display:flex;align-items:center;gap:14px;margin-bottom:14px}.ledger-upcoming-head h2{margin:0 auto 0 0;font-weight:700}.ledger-upcoming-head>span{color:var(--text-faint);font-size:12px;white-space:nowrap}.ledger-upcoming-head>button{border:0;background:none;color:var(--brand-text);padding:6px 0 6px 6px;font:inherit;font-size:13px;font-weight:600;cursor:pointer}.ledger-upcoming-row+.ledger-upcoming-row{border-top:1px solid var(--border)}.ledger-upcoming-trigger{width:100%;display:flex;align-items:center;gap:10px;border:0;background:none;color:var(--text);padding:15px 0;text-align:left;cursor:pointer}.ledger-upcoming-dot{width:7px;height:7px;flex:0 0 7px;border-radius:50%;background:#cf895c}.ledger-upcoming-dot.overdue{background:var(--expense)}.ledger-upcoming-copy{min-width:0;flex:1;display:grid;gap:5px}.ledger-upcoming-copy>strong{font-size:14px;line-height:1.5;font-weight:650;overflow-wrap:anywhere}.ledger-upcoming-copy>strong>span{margin-left:5px;font-size:12px;font-weight:500;color:var(--text-dim);white-space:nowrap}.ledger-upcoming-copy>strong>span.overdue{color:var(--expense)}.ledger-upcoming-copy>small{font-size:12px;color:var(--text-faint);line-height:1.5;overflow-wrap:anywhere}.ledger-upcoming-actions{justify-content:flex-end;padding:0 0 12px 17px}.ledger-upcoming-more{width:100%;border:0;border-top:1px solid var(--border);background:none;color:var(--text-dim);display:flex;gap:5px;align-items:center;justify-content:center;padding:12px 0;font-size:12px;cursor:pointer}.ledger-upcoming-empty{margin:0;padding:18px 0;font-size:13px;color:var(--text-faint);text-align:center}@media(max-width:600px){.ledger-upcoming{padding:16px 16px 4px}}button.repayment-check{position:relative;display:inline-grid;place-items:center;flex:0 0 26px;width:26px;height:26px;min-height:26px;padding:0;border:2px solid var(--border-strong);border-radius:50%;background:transparent;color:var(--text-dim);cursor:pointer}button.repayment-check:hover{background:var(--surface-3);border-color:var(--text-dim);color:var(--text)}button.repayment-check:active{transform:scale(.94)}button.repayment-check.is-paid{background:var(--text-dim);border-color:var(--text-dim);color:var(--surface)}button.repayment-check:focus-visible{outline:2px solid var(--text-dim);outline-offset:3px;border-radius:50%}.ledger-upcoming-main{display:flex;align-items:center;gap:14px;padding:15px 0}.ledger-upcoming-summary{display:flex;align-items:center;gap:10px;flex:1;min-width:0}button.repayment-check:after{content:"";position:absolute;inset:-7px;border-radius:50%}.ledger-reminder-list{overflow:hidden}.ledger-upcoming-row.is-completing{pointer-events:none;animation:ledger-notice-complete .62s ease-in-out forwards}.ledger-upcoming-row.is-completing .ledger-upcoming-copy>strong>span{color:var(--text-dim)}@keyframes ledger-notice-complete{0%,38%{transform:translate(0);opacity:1;max-height:180px}80%{transform:translate(105%);opacity:0;max-height:180px}to{transform:translate(105%);opacity:0;max-height:0;border-top-width:0}}@media(prefers-reduced-motion:reduce){.ledger-upcoming-row.is-completing{animation:none;opacity:.6}}.ledger-upcoming-scheduled-icon{display:grid;place-items:center;flex:0 0 26px;width:26px;height:26px;color:var(--text-faint)}.ledger-upcoming-pending{flex:1;min-width:0;padding:0}button.repayment-check:disabled:not(.is-paid){opacity:.45;cursor:default;background:transparent;border-color:var(--border-strong);transform:none}.month-wheel-trigger{display:inline-flex;align-items:center;justify-content:space-between;gap:12px;width:auto;flex:none;white-space:nowrap}.month-wheel-trigger>svg{flex:none}.month-wheel-frame{position:relative;margin:14px 16px;overflow:hidden}.month-wheel{position:relative;height:220px;padding:88px 0;box-sizing:border-box;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:none;touch-action:pan-y;-webkit-overflow-scrolling:touch;mask-image:linear-gradient(transparent,#000 22%,#000 78%,transparent)}.month-wheel::-webkit-scrollbar{display:none}.month-wheel:focus{outline:none}.month-wheel:focus-visible{outline:1px solid var(--border-strong);outline-offset:-1px;border-radius:10px}.month-wheel-highlight{position:absolute;top:88px;left:0;right:0;height:44px;border-radius:9px;background:var(--surface-3);pointer-events:none}.month-wheel-option{height:44px;display:flex;align-items:center;justify-content:center;cursor:pointer;color:var(--text);font-size:17px;font-weight:600}.month-wheel-option span{display:block;transform-origin:center;font-variant-numeric:tabular-nums;backface-visibility:hidden;will-change:transform,opacity}.nav-status-dot{width:6px;height:6px;flex:none;border-radius:50%;background:var(--expense)}.sidebar:not(.collapsed) .nav-status-dot{margin-left:auto}.sidebar:not(.collapsed) .nav-status-dot+.caret{margin-left:0}.sidebar.collapsed .nav-status-dot{position:absolute;top:8px;right:10px;box-shadow:0 0 0 2px var(--surface)}.tabbar .nav-status-dot{position:absolute;top:5px;right:calc(50% - 16px);box-shadow:0 0 0 2px var(--surface)}.nav-status-dot.nav-status-count{display:grid;place-items:center;min-width:16px;width:auto;height:16px;padding:0 4px;font-size:10px;font-weight:600;line-height:1;color:#fff;border-radius:10px}
