:root{--mb-bg:#0e1116;--mb-bg-elevated:#161b22;--mb-bg-overlay:#00000080;--mb-surface:#161b22;--mb-surface-border:#2b3139;--mb-text-primary:#e6edf3;--mb-text-secondary:#9aa4b0;--mb-text-disabled:#6e7681;--mb-accent:#4f8cff;--mb-accent-text:#4f8cff;--mb-on-accent:#fff;--mb-chart-income:#43a7ea;--mb-chart-expense:#ff9f2e;--mb-income:#3fb950;--mb-expense:#f85149;--mb-warning:#d29922;--mb-danger:#f85149;--mb-on-warning:#0e1116;--mb-font-body:-apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;--mb-font-mono:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;--mb-font-heading:ui-serif, Georgia, "Songti SC", "SimSun", serif;--mb-font-size-caption:12px;--mb-font-size-body:15px;--mb-font-size-label:13px;--mb-font-size-title:17px;--mb-font-size-display:34px;--mb-font-weight-regular:400;--mb-font-weight-medium:600;--mb-font-weight-strong:700;--mb-line-height-tight:1.2;--mb-line-height-normal:1.5;--mb-line-height-relaxed:1.8;--mb-radius-small:8px;--mb-radius-medium:12px;--mb-radius-large:16px;--mb-border-normal:1px;--mb-border-strong:2px;--mb-shadow-raised:0 1px 3px #00000040;--mb-shadow-overlay:0 -6px 20px #00000059;--mb-space-xs:4px;--mb-space-sm:8px;--mb-space-md:12px;--mb-space-lg:16px;--mb-space-xl:24px;--mb-duration-fast:.12s;--mb-duration-base:.2s;--mb-duration-slow:.36s;--mb-easing:ease-out}*{box-sizing:border-box}html,body,#root{height:100dvh;margin:0;padding:0;overflow:hidden}body{background:var(--mb-bg);color:var(--mb-text-primary);font-family:var(--mb-font-body);-webkit-font-smoothing:antialiased;-webkit-tap-highlight-color:transparent}.shell{height:100dvh;padding-right:env(safe-area-inset-right);padding-left:env(safe-area-inset-left);grid-template-rows:auto minmax(0,1fr) auto;display:grid;overflow:hidden}.topbar{padding:var(--mb-space-md) var(--mb-space-lg);padding-top:calc(var(--mb-space-md) + env(safe-area-inset-top,0px));border-bottom:var(--mb-border-normal) solid var(--mb-surface-border);align-items:center;display:flex}.app-title{font-size:var(--mb-font-size-title);font-weight:var(--mb-font-weight-medium);text-overflow:ellipsis;white-space:nowrap;min-width:0;margin:0;overflow:hidden}.page{-webkit-overflow-scrolling:touch;flex-direction:column;min-height:0;display:flex;overflow:hidden auto}.page-center{text-align:center;padding:var(--mb-space-lg);flex:1;place-items:center;display:grid}.placeholder-text{font-size:var(--mb-font-size-body);color:var(--mb-text-secondary)}.tabbar{padding-bottom:env(safe-area-inset-bottom,0px);border-top:var(--mb-border-normal) solid var(--mb-surface-border);background:var(--mb-bg-elevated);display:flex}.tab{justify-content:center;align-items:center;gap:var(--mb-space-xs);min-width:0;min-height:52px;padding:var(--mb-space-sm) var(--mb-space-xs);font-size:var(--mb-font-size-caption);color:var(--mb-text-secondary);-webkit-tap-highlight-color:transparent;flex-direction:column;flex:1;text-decoration:none;display:flex;position:relative}.tab-icon{flex:none}.tab-label{text-overflow:ellipsis;white-space:nowrap;max-width:100%;line-height:1.2;display:block;overflow:hidden}.tab.active{color:var(--mb-accent-text)}.tab:focus-visible{outline:2px solid var(--mb-accent);outline-offset:-2px}.pf-avatar{width:var(--pf-size,28px);height:var(--pf-size,28px);object-fit:cover;border-radius:50%;flex:none;justify-content:center;align-items:center;display:inline-flex;overflow:hidden}.pf-avatar-default{background:var(--mb-accent);color:var(--mb-on-accent);border:var(--mb-border-normal) solid var(--mb-surface-border)}.pf-avatar-letter{font-size:var(--mb-font-size-body);-webkit-user-select:none;user-select:none;line-height:1}.id-area{align-items:center;gap:var(--mb-space-sm);min-height:44px;padding-left:var(--mb-space-sm);min-width:0;max-width:62%;margin-left:auto;text-decoration:none;display:flex}.id-name{min-width:0;font-size:var(--mb-font-size-caption);color:var(--mb-text-secondary);text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.pf-page{flex-direction:column;flex:1;min-height:100%;display:flex}.pf-toolbar{z-index:10;align-items:center;gap:var(--mb-space-sm);padding:var(--mb-space-sm) var(--mb-space-md);background:var(--mb-bg-elevated);border-bottom:var(--mb-border-normal) solid var(--mb-surface-border);display:flex;position:sticky;top:0}.pf-back{min-width:44px;height:44px;color:var(--mb-text-secondary);border-radius:var(--mb-radius-medium);cursor:pointer;background:0 0;border:0;justify-content:center;align-items:center;text-decoration:none;display:inline-flex}.pf-title{font-size:var(--mb-font-size-title);font-weight:var(--mb-font-weight-medium);color:var(--mb-text-primary);flex:1;margin:0}.pf-root{width:100%;max-width:520px;padding:var(--mb-space-lg);gap:var(--mb-space-lg);flex-direction:column;margin:0 auto;display:flex}.pf-preview{align-items:center;gap:var(--mb-space-sm);flex-direction:column;display:flex}.pf-preview-caption{font-size:var(--mb-font-size-title);font-weight:var(--mb-font-weight-medium);color:var(--mb-text-primary)}.pf-avatar-actions{justify-content:center;gap:var(--mb-space-md);display:flex}.pf-file{clip:rect(0 0 0 0);white-space:nowrap;border:0;width:1px;height:1px;padding:0;position:absolute;top:0;left:0;overflow:hidden}.pf-field{gap:var(--mb-space-xs);flex-direction:column;display:flex}.pf-label{font-size:var(--mb-font-size-caption);color:var(--mb-text-secondary)}.pf-input{background:var(--mb-bg);border:var(--mb-border-normal) solid var(--mb-surface-border);width:100%;color:var(--mb-text-primary);border-radius:var(--mb-radius-medium);padding:var(--mb-space-md);font-size:var(--mb-font-size-body);font-family:inherit}.pf-hint{font-size:var(--mb-font-size-caption);color:var(--mb-text-secondary)}.pf-local-note{font-size:var(--mb-font-size-caption);color:var(--mb-text-secondary);margin:0}.pf-error{font-size:var(--mb-font-size-label);color:var(--mb-expense);margin:0}.pf-saved{font-size:var(--mb-font-size-label);color:var(--mb-income);margin:0}.pf-actions{display:flex}.pf-btn{min-height:46px;padding:0 var(--mb-space-lg);border:var(--mb-border-normal) solid transparent;border-radius:var(--mb-radius-medium);font-size:var(--mb-font-size-body);cursor:pointer;font-family:inherit}.pf-btn:disabled{opacity:.55;cursor:default}.pf-btn-primary{background:var(--mb-accent);color:var(--mb-on-accent);font-weight:var(--mb-font-weight-medium);flex:1}.pf-btn-ghost{border-color:var(--mb-surface-border);color:var(--mb-text-primary);background:0 0}.pf-btn-danger-ghost{border-color:var(--mb-expense);color:var(--mb-expense);background:0 0}.cr-scrim{z-index:60;padding:var(--mb-space-lg);background:var(--mb-bg-overlay);justify-content:center;align-items:center;display:flex;position:fixed;inset:0}.cr-dialog{background:var(--mb-bg-elevated);border:var(--mb-border-normal) solid var(--mb-surface-border);border-radius:var(--mb-radius-large);width:100%;max-width:340px;padding:var(--mb-space-lg);gap:var(--mb-space-md);outline:none;flex-direction:column;display:flex}.cr-title{font-size:var(--mb-font-size-title);font-weight:var(--mb-font-weight-medium);color:var(--mb-text-primary);margin:0}.cr-status{font-size:var(--mb-font-size-caption);color:var(--mb-text-secondary);margin:0}.cr-error{font-size:var(--mb-font-size-caption);color:var(--mb-expense);margin:0}.cr-stage-wrap{justify-content:center;display:flex}.cr-stage{touch-action:none;-webkit-user-select:none;user-select:none;cursor:grab;background:var(--mb-surface);outline:var(--mb-border-normal) solid var(--mb-surface-border);border-radius:50%;position:relative;overflow:hidden}.cr-img{-webkit-user-select:none;user-select:none;-webkit-user-drag:none;max-width:none;position:absolute}.cr-hint{font-size:var(--mb-font-size-caption);color:var(--mb-text-secondary);margin:0}.cr-zoom{align-items:center;gap:var(--mb-space-md);display:flex}.cr-zoom-label{font-size:var(--mb-font-size-caption);color:var(--mb-text-secondary);flex:none}.cr-zoom-range{min-width:0;height:44px;accent-color:var(--mb-accent);cursor:pointer;flex:1;margin:0}.cr-zoom-value{min-width:44px;font-size:var(--mb-font-size-caption);color:var(--mb-text-secondary);text-align:end;flex:none}.cr-actions{gap:var(--mb-space-sm);display:flex}.cr-actions .pf-btn{flex:1}.qb{width:44px;height:44px;margin-left:var(--mb-space-sm);color:var(--mb-text-secondary);cursor:pointer;-webkit-tap-highlight-color:transparent;background:0 0;border:0;border-radius:999px;flex:none;justify-content:center;align-items:center;padding:0;display:inline-flex}.qb[aria-pressed=true]{color:var(--mb-accent-text)}.qb:focus-visible{outline:2px solid var(--mb-accent);outline-offset:-2px}.qb-icon{display:block}.mv-ctrl{align-items:center;gap:var(--mb-space-sm);flex:auto;min-width:0;display:flex}.mv-slider{min-width:0;accent-color:var(--mb-accent);flex:auto}.mv-pct{text-align:right;flex:none}.records-view{flex-direction:column;width:100%;max-width:520px;min-height:100%;margin:0 auto;display:flex}.records-toolbar{z-index:10;align-items:center;gap:var(--mb-space-sm);padding:var(--mb-space-sm) var(--mb-space-md);background:var(--mb-bg-elevated);border-bottom:var(--mb-border-normal) solid var(--mb-surface-border);display:flex;position:sticky;top:0}.records-toolbar:empty{display:none}.month-title{text-align:center;font-size:var(--mb-font-size-title);font-weight:var(--mb-font-weight-medium);color:var(--mb-text-primary);white-space:nowrap;flex:1}.month-nav-btn{min-width:44px;height:44px;color:var(--mb-text-secondary);border-radius:var(--mb-radius-medium);cursor:pointer;background:0 0;border:0;justify-content:center;align-items:center;display:inline-flex}.month-nav-btn:active{background:var(--mb-surface)}.month-now-btn{height:44px;padding:0 var(--mb-space-md);border:var(--mb-border-normal) solid var(--mb-surface-border);color:var(--mb-accent-text);font-size:var(--mb-font-size-body);border-radius:var(--mb-radius-medium);cursor:pointer;background:0 0}.add-btn{min-height:44px;padding:0 var(--mb-space-lg);background:var(--mb-accent);color:var(--mb-on-accent);font-size:var(--mb-font-size-body);font-weight:var(--mb-font-weight-medium);border-radius:var(--mb-radius-medium);cursor:pointer;white-space:nowrap;border:0}.records-filter{gap:var(--mb-space-xs);margin:var(--mb-space-md) var(--mb-space-lg) var(--mb-space-sm);background:var(--mb-bg-elevated);border:var(--mb-border-normal) solid var(--mb-surface-border);border-radius:var(--mb-radius-medium);grid-template-columns:repeat(3,minmax(0,1fr));padding:3px;display:grid}.records-filter-btn{justify-content:center;align-items:center;gap:var(--mb-space-sm);min-width:0;min-height:44px;padding:0 var(--mb-space-sm);border:var(--mb-border-normal) solid transparent;border-radius:var(--mb-radius-small);color:var(--mb-text-secondary);font:inherit;cursor:pointer;background:0 0;display:inline-flex;position:relative}.records-filter-btn[aria-checked=true]{color:var(--mb-text-primary);border-color:var(--mb-accent);background:var(--mb-surface)}.records-filter-btn[aria-checked=true]:after{content:"";right:var(--mb-space-sm);bottom:4px;left:var(--mb-space-sm);background:var(--mb-accent-text);height:2px;position:absolute}.records-filter-btn:focus-visible{outline:var(--mb-border-strong) solid var(--mb-accent);outline-offset:2px}.records-list{padding:var(--mb-space-xs) 0 var(--mb-space-lg);flex:1}.day-group{margin-top:var(--mb-space-xs)}.day-header{align-items:baseline;gap:var(--mb-space-sm);padding:var(--mb-space-sm) var(--mb-space-lg) var(--mb-space-xs);font-size:var(--mb-font-size-caption);color:var(--mb-text-secondary);display:flex}.today-mark{color:var(--mb-accent-text)}.bill-row{align-items:center;gap:var(--mb-space-md);width:100%;min-height:56px;padding:var(--mb-space-sm) var(--mb-space-lg);border:0;border-bottom:var(--mb-border-normal) solid var(--mb-surface-border);text-align:left;cursor:pointer;font:inherit;color:inherit;background:0 0;display:flex}.bill-row:active{background:var(--mb-surface)}.cat-dot{border-radius:50%;flex:none;width:10px;height:10px}.bill-main{flex:1;min-width:0}.bill-title{align-items:center;gap:var(--mb-space-sm);min-width:0;display:flex}.bill-type-badge{border-radius:var(--mb-radius-small);flex:none;padding:2px 5px;font-size:10px;line-height:1}.bill-type-badge.expense{color:var(--mb-expense);border:var(--mb-border-normal) solid var(--mb-expense)}.bill-type-badge.income{color:var(--mb-income);border:var(--mb-border-normal) solid var(--mb-income)}.bill-cat{font-size:var(--mb-font-size-body);color:var(--mb-text-primary);text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.bill-note{font-size:var(--mb-font-size-caption);color:var(--mb-text-secondary);text-overflow:ellipsis;white-space:nowrap;margin-top:2px;display:block;overflow:hidden}.bill-amount{font-size:var(--mb-font-size-title);font-weight:var(--mb-font-weight-medium);font-variant-numeric:tabular-nums;flex:none}.amount-expense{color:var(--mb-expense)}.amount-income{color:var(--mb-income)}.records-loading,.records-empty{place-content:center;justify-items:center;gap:var(--mb-space-lg);padding:60px var(--mb-space-xl);text-align:center;flex:1;display:grid}.records-empty-title{font-size:var(--mb-font-size-body);color:var(--mb-text-primary);margin:0}.records-empty-hint{font-size:var(--mb-font-size-label);color:var(--mb-text-secondary);margin:0}.sheet-scrim{z-index:30;background:var(--mb-bg-overlay);justify-content:center;align-items:flex-end;display:flex;position:fixed;inset:0}.sheet{width:100%;max-width:520px;max-height:92dvh;padding:var(--mb-space-lg) var(--mb-space-lg) calc(var(--mb-space-xl) + var(--mb-space-xl) + var(--mb-space-xl) + env(safe-area-inset-bottom,0px));background:var(--mb-bg-elevated);border-radius:var(--mb-radius-large) var(--mb-radius-large) 0 0;flex-direction:column;display:flex;overflow:hidden}.sheet-title{margin:0 0 var(--mb-space-lg);font-size:var(--mb-font-size-title);font-weight:var(--mb-font-weight-medium);color:var(--mb-text-primary);flex:none}.form{gap:var(--mb-space-lg);-webkit-overflow-scrolling:touch;min-height:0;padding-bottom:var(--mb-space-lg);flex-direction:column;display:flex;overflow:auto}.field-label{margin:0 0 var(--mb-space-sm);font-size:var(--mb-font-size-caption);color:var(--mb-text-secondary);display:block}.seg{background:var(--mb-bg);border:var(--mb-border-normal) solid var(--mb-surface-border);border-radius:var(--mb-radius-medium);gap:3px;padding:3px;display:flex}.seg-btn{border-radius:var(--mb-radius-small);height:40px;color:var(--mb-text-primary);font-size:var(--mb-font-size-body);cursor:pointer;background:0 0;border:0;flex:1}.seg-btn.active-expense{background:var(--mb-expense);color:var(--mb-on-accent)}.seg-btn.active-income{background:var(--mb-income);color:var(--mb-on-accent)}.amount-input,.date-input,.note-input{background:var(--mb-bg);border:var(--mb-border-normal) solid var(--mb-surface-border);width:100%;color:var(--mb-text-primary);border-radius:var(--mb-radius-medium);padding:var(--mb-space-md);font-size:var(--mb-font-size-title);font-family:inherit}.amount-input{font-variant-numeric:tabular-nums;font-size:22px}.note-input{resize:vertical;min-height:72px}.chips{gap:var(--mb-space-sm);flex-wrap:wrap;display:flex}.chip{align-items:center;gap:var(--mb-space-sm);min-height:44px;padding:0 var(--mb-space-lg);border:var(--mb-border-normal) solid var(--mb-surface-border);background:var(--mb-bg);color:var(--mb-text-primary);font-size:var(--mb-font-size-body);border-radius:var(--mb-radius-large);cursor:pointer;display:inline-flex}.chip-dot{border-radius:50%;flex:none;width:8px;height:8px}.chip.active{border-color:var(--mb-accent);background:var(--mb-accent);color:var(--mb-on-accent)}.chip.active .chip-dot{background:var(--mb-on-accent)}.form-error{margin:var(--mb-space-sm) 0 0;font-size:var(--mb-font-size-label);color:var(--mb-expense);flex:none}.form-actions{z-index:1;align-items:center;gap:var(--mb-space-md);padding-top:var(--mb-space-md);border-top:var(--mb-border-normal) solid var(--mb-surface-border);background:var(--mb-bg-elevated);flex:none;display:flex;position:sticky;bottom:0}.btn{min-height:46px;padding:0 var(--mb-space-lg);border:var(--mb-border-normal) solid transparent;border-radius:var(--mb-radius-medium);font-size:var(--mb-font-size-body);cursor:pointer}.btn:disabled{opacity:.55;cursor:default}.btn-primary{background:var(--mb-accent);color:var(--mb-on-accent);font-weight:var(--mb-font-weight-medium);flex:1}.btn-ghost{border-color:var(--mb-surface-border);color:var(--mb-text-primary);background:0 0}.btn-danger{background:var(--mb-expense);color:var(--mb-on-accent);font-weight:var(--mb-font-weight-medium)}.btn-danger-ghost{border-color:var(--mb-expense);color:var(--mb-expense);background:0 0}.confirm-scrim{z-index:40;padding:var(--mb-space-xl);background:var(--mb-bg-overlay);place-items:center;display:grid;position:fixed;inset:0}.confirm-card{width:100%;max-width:340px;padding:var(--mb-space-xl);background:var(--mb-bg-elevated);border-radius:var(--mb-radius-medium)}.confirm-text{margin:0 0 var(--mb-space-lg);font-size:var(--mb-font-size-body);line-height:var(--mb-line-height-normal);color:var(--mb-text-primary)}.confirm-actions{gap:var(--mb-space-md);display:flex}.confirm-actions .btn{flex:1}@media (width>=560px){.sheet-scrim{align-items:center}.sheet{border-radius:var(--mb-radius-large)}}.home-root{gap:var(--mb-space-lg);width:100%;max-width:520px;min-height:100%;padding:var(--mb-space-md) var(--mb-space-lg) calc(var(--mb-space-lg) + env(safe-area-inset-bottom,0px));flex-direction:column;margin:0 auto;display:flex}.home-summary{padding:var(--mb-space-lg);background:var(--mb-bg-elevated);border:var(--mb-border-normal) solid var(--mb-surface-border);border-radius:var(--mb-radius-large)}.home-month{font-size:var(--mb-font-size-label);color:var(--mb-text-secondary);margin:0}.home-balance-label{margin:var(--mb-space-sm) 0 2px;font-size:var(--mb-font-size-caption);color:var(--mb-text-secondary)}.home-balance{font-size:var(--mb-font-size-display);line-height:var(--mb-line-height-tight);font-weight:var(--mb-font-weight-strong);font-variant-numeric:tabular-nums;overflow-wrap:anywhere;margin:0}.balance-positive{color:var(--mb-income)}.balance-negative{color:var(--mb-expense)}.balance-zero{color:var(--mb-text-primary)}.home-cards{gap:var(--mb-space-md);margin-top:var(--mb-space-lg);display:flex}.home-card{gap:var(--mb-space-xs);min-width:0;padding:var(--mb-space-md);background:var(--mb-bg);border:var(--mb-border-normal) solid var(--mb-surface-border);border-radius:var(--mb-radius-medium);flex-direction:column;flex:1;display:flex}.home-card-label{font-size:var(--mb-font-size-caption);color:var(--mb-text-secondary)}.home-card-value{font-size:var(--mb-font-size-title);font-weight:var(--mb-font-weight-medium);font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.home-income{color:var(--mb-income)}.home-expense{color:var(--mb-expense)}.home-count{margin:var(--mb-space-md) 0 0;font-size:var(--mb-font-size-caption);color:var(--mb-text-secondary)}.home-add{border-radius:var(--mb-radius-medium);background:var(--mb-accent);min-height:48px;color:var(--mb-on-accent);font-size:var(--mb-font-size-title);font-weight:var(--mb-font-weight-medium);cursor:pointer;border:0;font-family:inherit}.home-add:active{opacity:.85}.home-recent-title{margin:0 0 var(--mb-space-sm);font-size:var(--mb-font-size-label);font-weight:var(--mb-font-weight-medium);color:var(--mb-text-secondary)}.home-list{background:var(--mb-bg-elevated);border:var(--mb-border-normal) solid var(--mb-surface-border);border-radius:var(--mb-radius-large);overflow:hidden}.recent-row{align-items:center;gap:var(--mb-space-md);width:100%;min-height:56px;padding:var(--mb-space-sm) var(--mb-space-lg);border:0;border-bottom:var(--mb-border-normal) solid var(--mb-surface-border);text-align:left;cursor:pointer;color:inherit;background:0 0;font-family:inherit;display:flex}.recent-row:last-child{border-bottom:0}.recent-row:active{background:var(--mb-surface)}.recent-dot{border-radius:50%;flex:none;width:10px;height:10px}.recent-main{flex-direction:column;flex:1;gap:2px;min-width:0;display:flex}.recent-line1{align-items:center;gap:var(--mb-space-sm);min-width:0;display:flex}.recent-badge{border-radius:var(--mb-radius-small);flex:none;padding:2px 5px;font-size:10px;line-height:1}.recent-badge.expense{color:var(--mb-expense);border:var(--mb-border-normal) solid var(--mb-expense)}.recent-badge.income{color:var(--mb-income);border:var(--mb-border-normal) solid var(--mb-income)}.recent-cat{font-size:var(--mb-font-size-body);color:var(--mb-text-primary);text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.recent-date{font-size:var(--mb-font-size-caption);color:var(--mb-text-secondary);flex:none}.recent-note{font-size:var(--mb-font-size-caption);color:var(--mb-text-secondary);text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.recent-amount{font-size:var(--mb-font-size-title);font-weight:var(--mb-font-weight-medium);font-variant-numeric:tabular-nums;overflow-wrap:anywhere;flex:none}.recent-amount.expense{color:var(--mb-expense)}.recent-amount.income{color:var(--mb-income)}.home-empty{padding:var(--mb-space-xl) var(--mb-space-lg);text-align:center;font-size:var(--mb-font-size-label);color:var(--mb-text-secondary);margin:0}.home-loading,.home-error{place-content:center;justify-items:center;gap:var(--mb-space-md);padding:60px var(--mb-space-xl);text-align:center;flex:1;display:grid}.home-loading-text,.home-error-text{font-size:var(--mb-font-size-label);color:var(--mb-text-secondary);margin:0}.home-retry{min-height:44px;padding:0 var(--mb-space-lg);border:var(--mb-border-normal) solid var(--mb-surface-border);border-radius:var(--mb-radius-medium);background:var(--mb-bg-elevated);color:var(--mb-accent-text);font-size:var(--mb-font-size-body);cursor:pointer;font-family:inherit}.analysis-root{gap:var(--mb-space-lg);width:100%;max-width:520px;min-height:100%;padding:var(--mb-space-md) var(--mb-space-lg) calc(var(--mb-space-lg) + env(safe-area-inset-bottom,0px));flex-direction:column;margin:0 auto;display:flex}.analysis-toolbar{z-index:10;align-items:center;gap:var(--mb-space-sm);padding:var(--mb-space-sm) var(--mb-space-md);background:var(--mb-bg-elevated);border-bottom:var(--mb-border-normal) solid var(--mb-surface-border);display:flex;position:sticky;top:0}.analysis-title{text-align:center;min-width:0;font-size:var(--mb-font-size-title);font-weight:var(--mb-font-weight-medium);color:var(--mb-text-primary);white-space:nowrap;text-overflow:ellipsis;flex:1;overflow:hidden}.analysis-nav-btn{min-width:44px;height:44px;color:var(--mb-text-secondary);border-radius:var(--mb-radius-medium);cursor:pointer;background:0 0;border:0;justify-content:center;align-items:center;display:inline-flex}.analysis-nav-btn:not(:disabled):active{background:var(--mb-surface)}.analysis-nav-btn:disabled{opacity:.35;cursor:default}.analysis-now-btn{height:44px;padding:0 var(--mb-space-md);border:var(--mb-border-normal) solid var(--mb-surface-border);color:var(--mb-accent-text);font-size:var(--mb-font-size-body);border-radius:var(--mb-radius-medium);cursor:pointer;white-space:nowrap;background:0 0}.analysis-summary{padding:var(--mb-space-lg);background:var(--mb-bg-elevated);border:var(--mb-border-normal) solid var(--mb-surface-border);border-radius:var(--mb-radius-large)}.analysis-month{font-size:var(--mb-font-size-label);color:var(--mb-text-secondary);margin:0}.analysis-balance-label{margin:var(--mb-space-sm) 0 2px;font-size:var(--mb-font-size-caption);color:var(--mb-text-secondary)}.analysis-balance{font-size:var(--mb-font-size-display);line-height:var(--mb-line-height-tight);font-weight:var(--mb-font-weight-strong);font-variant-numeric:tabular-nums;overflow-wrap:anywhere;margin:0}.analysis-balance-positive{color:var(--mb-income)}.analysis-balance-negative{color:var(--mb-expense)}.analysis-balance-zero{color:var(--mb-text-primary)}.analysis-cards{gap:var(--mb-space-md);margin-top:var(--mb-space-lg);display:flex}.analysis-tile{gap:var(--mb-space-xs);min-width:0;padding:var(--mb-space-md);background:var(--mb-bg);border:var(--mb-border-normal) solid var(--mb-surface-border);border-radius:var(--mb-radius-medium);flex-direction:column;flex:1;display:flex}.analysis-tile-label{font-size:var(--mb-font-size-caption);color:var(--mb-text-secondary)}.analysis-tile-value{font-size:var(--mb-font-size-title);font-weight:var(--mb-font-weight-medium);font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.analysis-tile-income{color:var(--mb-income)}.analysis-tile-expense{color:var(--mb-expense)}.analysis-count{margin:var(--mb-space-md) 0 0;font-size:var(--mb-font-size-caption);color:var(--mb-text-secondary)}.analysis-section{padding:var(--mb-space-lg);background:var(--mb-bg-elevated);border:var(--mb-border-normal) solid var(--mb-surface-border);border-radius:var(--mb-radius-large)}.analysis-section-title{margin:0 0 var(--mb-space-sm);font-size:var(--mb-font-size-label);font-weight:var(--mb-font-weight-medium);color:var(--mb-text-secondary)}.share-body{align-items:center;gap:var(--mb-space-lg);flex-direction:column;display:flex}.chart-frame{width:100%}.chart-frame-ring{max-width:220px;margin:0 auto}.share-legend{gap:var(--mb-space-sm);flex-direction:column;width:100%;margin:0;padding:0;list-style:none;display:flex}.share-row{align-items:center;gap:var(--mb-space-sm);min-width:0;display:flex}.legend-dot{border-radius:50%;flex:none;width:10px;height:10px}.trend-swatch{flex:none;display:block}.share-name{text-overflow:ellipsis;white-space:nowrap;min-width:0;font-size:var(--mb-font-size-body);color:var(--mb-text-primary);flex:1;overflow:hidden}.share-amount{font-size:var(--mb-font-size-label);font-variant-numeric:tabular-nums;color:var(--mb-text-primary);flex:none}.share-percent{text-align:right;min-width:48px;font-size:var(--mb-font-size-caption);font-variant-numeric:tabular-nums;color:var(--mb-text-secondary);flex:none}.trend-legend{gap:var(--mb-space-md) var(--mb-space-lg);flex-wrap:wrap;display:flex}.trend-row{align-items:center;gap:var(--mb-space-sm);min-width:0;display:inline-flex}.trend-name{font-size:var(--mb-font-size-caption);color:var(--mb-text-secondary)}.trend-total{font-size:var(--mb-font-size-label);font-variant-numeric:tabular-nums;color:var(--mb-text-primary)}.trend-chart{margin-top:var(--mb-space-sm)}.analysis-empty-block,.analysis-loading,.analysis-error{justify-content:center;align-items:center;gap:var(--mb-space-sm);padding:60px var(--mb-space-xl);text-align:center;flex-direction:column;flex:1;display:flex}.analysis-error{gap:var(--mb-space-md)}.analysis-empty-title,.analysis-loading-text{font-size:var(--mb-font-size-body);color:var(--mb-text-primary);margin:0}.analysis-empty-hint{font-size:var(--mb-font-size-label);color:var(--mb-text-secondary);margin:0}.analysis-retry{min-height:44px;padding:0 var(--mb-space-lg);border:var(--mb-border-normal) solid var(--mb-surface-border);border-radius:var(--mb-radius-medium);background:var(--mb-bg-elevated);color:var(--mb-accent-text);font-size:var(--mb-font-size-body);cursor:pointer;font-family:inherit}@media (width>=560px){.share-body{flex-direction:row;justify-content:center}}.cm-root{flex-direction:column;width:100%;max-width:520px;min-height:100%;margin:0 auto;display:flex}.cm-toolbar{z-index:10;align-items:center;gap:var(--mb-space-sm);padding:var(--mb-space-sm) var(--mb-space-md);background:var(--mb-bg-elevated);border-bottom:var(--mb-border-normal) solid var(--mb-surface-border);display:flex;position:sticky;top:0}.cm-back{min-width:44px;height:44px;color:var(--mb-text-secondary);border-radius:var(--mb-radius-medium);cursor:pointer;background:0 0;border:0;justify-content:center;align-items:center;display:inline-flex}.cm-title{font-size:var(--mb-font-size-title);font-weight:var(--mb-font-weight-medium);color:var(--mb-text-primary);flex:1;margin:0}.cm-add{min-height:44px;padding:0 var(--mb-space-lg);background:var(--mb-accent);color:var(--mb-on-accent);font-size:var(--mb-font-size-body);font-weight:var(--mb-font-weight-medium);border-radius:var(--mb-radius-medium);cursor:pointer;white-space:nowrap;border:0}.cm-legend{padding:var(--mb-space-sm) var(--mb-space-lg) 2px;font-size:var(--mb-font-size-caption);color:var(--mb-text-secondary);margin:0}.cm-group{margin-top:var(--mb-space-sm)}.cm-group-title{align-items:baseline;gap:var(--mb-space-sm);padding:var(--mb-space-md) var(--mb-space-lg) var(--mb-space-xs);font-size:var(--mb-font-size-label);font-weight:var(--mb-font-weight-medium);color:var(--mb-text-secondary);margin:0;display:flex}.cm-count{font-size:var(--mb-font-size-caption);color:var(--mb-text-secondary)}.cm-list{border-top:var(--mb-border-normal) solid var(--mb-surface-border)}.cm-row{align-items:center;gap:var(--mb-space-md);min-height:56px;padding:var(--mb-space-xs) var(--mb-space-lg);border-bottom:var(--mb-border-normal) solid var(--mb-surface-border);display:flex}.cm-dot{border-radius:50%;flex:none;width:12px;height:12px}.cm-name{min-width:0;font-size:var(--mb-font-size-body);color:var(--mb-text-primary);text-overflow:ellipsis;white-space:nowrap;flex:1;overflow:hidden}.cm-badge{border-radius:var(--mb-radius-small);color:var(--mb-text-secondary);border:var(--mb-border-normal) solid var(--mb-surface-border);flex:none;padding:2px 6px;font-size:10px;line-height:1}.cm-badge-src{color:var(--mb-text-secondary);border-color:var(--mb-surface-border)}.cm-actions{gap:var(--mb-space-sm);flex:none;display:flex}.cm-act-btn{min-height:44px;padding:0 var(--mb-space-md);border:var(--mb-border-normal) solid var(--mb-surface-border);color:var(--mb-accent-text);font-size:var(--mb-font-size-label);border-radius:var(--mb-radius-small);cursor:pointer;white-space:nowrap;font:inherit;background:0 0}.cm-act-danger{color:var(--mb-expense)}.cm-empty{padding:60px var(--mb-space-xl);text-align:center;flex:1;place-content:center;display:grid}.cm-empty-text{font-size:var(--mb-font-size-label);color:var(--mb-text-secondary)}.cfs-scrim{z-index:30;background:var(--mb-bg-overlay);justify-content:center;align-items:flex-end;display:flex;position:fixed;inset:0}.cfs-sheet{width:100%;max-width:520px;max-height:90vh;padding:var(--mb-space-lg) var(--mb-space-lg) calc(var(--mb-space-lg) + env(safe-area-inset-bottom,0px));background:var(--mb-bg-elevated);border-radius:var(--mb-radius-large) var(--mb-radius-large) 0 0;overflow:auto}.cfs-title{margin:0 0 var(--mb-space-lg);font-size:var(--mb-font-size-title);font-weight:var(--mb-font-weight-medium);color:var(--mb-text-primary)}.cfs-form{gap:var(--mb-space-lg);flex-direction:column;display:flex}.cfs-label{margin:0 0 var(--mb-space-sm);font-size:var(--mb-font-size-caption);color:var(--mb-text-secondary);display:block}.cfs-hint{margin:var(--mb-space-sm) 0 0;font-size:var(--mb-font-size-caption);color:var(--mb-text-secondary)}.cfs-seg{background:var(--mb-bg);border:var(--mb-border-normal) solid var(--mb-surface-border);border-radius:var(--mb-radius-medium);gap:3px;padding:3px;display:flex}.cfs-seg-btn{border-radius:var(--mb-radius-small);height:40px;color:var(--mb-text-primary);font-size:var(--mb-font-size-body);cursor:pointer;background:0 0;border:0;flex:1}.cfs-seg-btn:disabled{cursor:default}.cfs-seg-btn.active-expense{background:var(--mb-expense);color:var(--mb-on-accent)}.cfs-seg-btn.active-income{background:var(--mb-income);color:var(--mb-on-accent)}.cfs-input{background:var(--mb-bg);border:var(--mb-border-normal) solid var(--mb-surface-border);width:100%;color:var(--mb-text-primary);border-radius:var(--mb-radius-medium);padding:var(--mb-space-md);font-size:var(--mb-font-size-title);font-family:inherit}.cfs-error{font-size:var(--mb-font-size-label);color:var(--mb-expense);margin:0}.cfs-actions{gap:var(--mb-space-md);display:flex}.cfs-btn{min-height:46px;padding:0 var(--mb-space-lg);border:var(--mb-border-normal) solid transparent;border-radius:var(--mb-radius-medium);font-size:var(--mb-font-size-body);cursor:pointer;flex:1}.cfs-btn:disabled{opacity:.55;cursor:default}.cfs-btn-primary{background:var(--mb-accent);color:var(--mb-on-accent);font-weight:var(--mb-font-weight-medium)}.cfs-btn-ghost{border-color:var(--mb-surface-border);color:var(--mb-text-primary);background:0 0}.cfs-btn-danger{background:var(--mb-expense);color:var(--mb-on-accent);font-weight:var(--mb-font-weight-medium)}.cfs-confirm-scrim{z-index:40;padding:var(--mb-space-xl);background:var(--mb-bg-overlay);place-items:center;display:grid;position:fixed;inset:0}.cfs-confirm-card{width:100%;max-width:340px;padding:var(--mb-space-xl);background:var(--mb-bg-elevated);border-radius:var(--mb-radius-medium)}.cfs-confirm-text{margin:0 0 var(--mb-space-lg);font-size:var(--mb-font-size-body);line-height:var(--mb-line-height-normal);color:var(--mb-text-primary)}.cfs-confirm-actions{gap:var(--mb-space-md);display:flex}@media (width>=560px){.cfs-scrim{align-items:center}.cfs-sheet{border-radius:var(--mb-radius-large)}}.st-root{flex-direction:column;min-height:100%;display:flex}.st-title{padding:var(--mb-space-lg) var(--mb-space-lg) var(--mb-space-sm);font-size:var(--mb-font-size-title);font-weight:var(--mb-font-weight-medium);color:var(--mb-text-primary);margin:0}.st-section{margin-top:var(--mb-space-xs)}.st-section-label{padding:var(--mb-space-md) var(--mb-space-lg) var(--mb-space-xs);font-size:var(--mb-font-size-caption);color:var(--mb-text-secondary)}.st-list{border-top:var(--mb-border-normal) solid var(--mb-surface-border)}.st-item{align-items:center;gap:var(--mb-space-md);width:100%;min-height:52px;padding:0 var(--mb-space-lg);border:0;border-bottom:var(--mb-border-normal) solid var(--mb-surface-border);font:inherit;color:var(--mb-text-primary);text-align:left;cursor:pointer;background:0 0;text-decoration:none;display:flex}.st-item:disabled{color:var(--mb-text-secondary);cursor:default;opacity:.6}.st-item-label{font-size:var(--mb-font-size-body);flex:1}.st-item-hint{font-size:var(--mb-font-size-caption);color:var(--mb-text-secondary)}.st-item-arrow{color:var(--mb-text-secondary);flex:none}.st-mt{margin-top:var(--mb-space-lg)}.st-radio{border:var(--mb-border-strong) solid var(--mb-text-disabled);border-radius:50%;flex:none;place-items:center;width:20px;height:20px;display:grid}.st-item[aria-checked=true] .st-radio{border-color:var(--mb-accent)}.st-item[aria-checked=true] .st-radio:after{content:"";background:var(--mb-accent);border-radius:50%;width:10px;height:10px;display:block}.st-vol-row .st-item-label{flex:none}.st-caption{margin:var(--mb-space-sm) var(--mb-space-lg) var(--mb-space-xs);font-size:var(--mb-font-size-caption);line-height:var(--mb-line-height-normal);color:var(--mb-text-secondary)}html[data-theme=arknights-prts] body{background-color:var(--mb-bg);background-image: radial-gradient(120% 90% at 50% 0%, var(--mb-bg-elevated) 0%, transparent 46%),  repeating-linear-gradient(0deg, var(--mb-bg-elevated) 0 1px, transparent 1px 34px), repeating-linear-gradient(90deg, var(--mb-bg-elevated) 0 1px, transparent 1px 34px)}html[data-theme=arknights-prts] [data-ui=page]{background:0 0}html[data-theme=arknights-prts] [data-ui=topbar]{border-bottom:var(--mb-border-strong) solid var(--mb-surface-border);position:relative;overflow:hidden}html[data-theme=arknights-prts] .app-title{font-family:var(--mb-font-heading);letter-spacing:.03em}html[data-theme=arknights-prts] [data-ui=topbar]:before{content:"";left:var(--mb-space-lg);width:44px;height:var(--mb-border-strong);background:var(--mb-accent);pointer-events:none;position:absolute;bottom:-2px}html[data-theme=arknights-prts] [data-ui=topbar]:after{content:"";width:88px;height:var(--mb-border-strong);background:var(--mb-accent-text);opacity:0;pointer-events:none;animation:mb-prts-topbar-sweep var(--mb-duration-slow) var(--mb-easing) infinite;position:absolute;bottom:-2px;left:0}@keyframes mb-prts-topbar-sweep{0%{opacity:0;transform:translate(-96px)}10%{opacity:.9}88%{opacity:.9}to{opacity:0;transform:translate(100vw)}}html[data-theme=arknights-prts] [data-ui=tabbar]{position:relative}html[data-theme=arknights-prts] [data-ui=nav-item].active:before{content:"";background:var(--mb-accent-text);pointer-events:none;width:18px;height:2px;position:absolute;top:0;left:50%;transform:translate(-50%)}@media (prefers-reduced-motion:reduce){html[data-theme=arknights-prts] [data-ui=topbar]:after{animation:none;display:none}}html[data-theme=endfield-terminal] body{background-color:var(--mb-bg)}html[data-theme=endfield-terminal] [data-ui=shell]{background-color:var(--mb-bg);border-right:var(--mb-border-normal) solid var(--mb-surface-border);border-left:var(--mb-border-normal) solid var(--mb-surface-border);width:100%;max-width:520px;margin:0 auto;position:relative}html[data-theme=endfield-terminal] [data-ui=page]{background-color:var(--mb-bg);background-image:url(/assets/industrial-terminal-bg-CH-pscLy.png);background-position:top;background-repeat:no-repeat;background-size:100%}html[data-theme=endfield-terminal] [data-ui=topbar]{background:var(--mb-bg-elevated);border-bottom:var(--mb-border-strong) solid var(--mb-surface-border);min-height:64px;position:relative;overflow:hidden}html[data-theme=endfield-terminal] [data-ui=topbar]:before{content:"";background:var(--mb-accent-text);pointer-events:none;width:68px;height:3px;position:absolute;bottom:0;left:0}html[data-theme=endfield-terminal] [data-ui=topbar]:after{content:"";opacity:.7;background-image:repeating-linear-gradient(90deg, var(--mb-accent) 0 7px, transparent 7px 11px);pointer-events:none;width:94px;height:3px;position:absolute;bottom:0;right:0}html[data-theme=endfield-terminal] .app-title{font-family:var(--mb-font-heading);font-weight:var(--mb-font-weight-strong);letter-spacing:.08em;color:var(--mb-text-primary);position:relative}html[data-theme=endfield-terminal] .app-title:after{content:"";width:5px;height:5px;margin-left:var(--mb-space-sm);background:var(--mb-accent-text);vertical-align:middle;display:inline-block}html[data-theme=endfield-terminal] .id-area{padding-right:var(--mb-space-xs)}html[data-theme=endfield-terminal] .id-area .pf-avatar{border:var(--mb-border-strong) solid var(--mb-accent)}html[data-theme=endfield-terminal] .id-name{font-family:var(--mb-font-mono);color:var(--mb-text-primary)}html[data-theme=endfield-terminal] .theme-brand-hero{display:none}html[data-theme=endfield-terminal] .theme-brand-mark{top:var(--mb-space-sm);right:var(--mb-space-md);width:26px;height:29px;color:var(--mb-text-primary);opacity:.55;z-index:1;display:block;position:absolute}html[data-theme=endfield-terminal] .home-root,html[data-theme=endfield-terminal] .analysis-root,html[data-theme=endfield-terminal] .pf-root{gap:var(--mb-space-lg);padding:var(--mb-space-lg)}html[data-theme=endfield-terminal] .home-root{padding-top:calc(var(--mb-space-lg) * 19)}html[data-theme=endfield-terminal] .home-summary,html[data-theme=endfield-terminal] .home-list,html[data-theme=endfield-terminal] .day-group,html[data-theme=endfield-terminal] .analysis-summary,html[data-theme=endfield-terminal] .analysis-section,html[data-theme=endfield-terminal] .st-list,html[data-theme=endfield-terminal] .cm-list,html[data-theme=endfield-terminal] .confirm-card,html[data-theme=endfield-terminal] .cfs-confirm-card,html[data-theme=endfield-terminal] .cr-dialog{background-color:var(--mb-bg-elevated);background-image:radial-gradient(120% 140% at 100% 0%, var(--mb-surface) 0%, transparent 66%);border:var(--mb-border-normal) solid var(--mb-surface-border);clip-path:polygon(0 0,calc(100% - 12px) 0,100% 12px,100% 100%,12px 100%,0 calc(100% - 12px));border-radius:0;position:relative}html[data-theme=endfield-terminal] .home-summary:before,html[data-theme=endfield-terminal] .analysis-summary:before,html[data-theme=endfield-terminal] .analysis-section:before,html[data-theme=endfield-terminal] .st-section>.st-list:before,html[data-theme=endfield-terminal] .home-list:before{content:"";background:var(--mb-accent-text);pointer-events:none;width:42px;height:3px;position:absolute;top:0;left:0}html[data-theme=endfield-terminal] .home-summary,html[data-theme=endfield-terminal] .analysis-summary,html[data-theme=endfield-terminal] .analysis-section{padding:var(--mb-space-lg)}html[data-theme=endfield-terminal] .home-month,html[data-theme=endfield-terminal] .analysis-month,html[data-theme=endfield-terminal] .home-count,html[data-theme=endfield-terminal] .analysis-count{font-family:var(--mb-font-mono);letter-spacing:.04em}html[data-theme=endfield-terminal] .home-balance,html[data-theme=endfield-terminal] .analysis-balance{color:var(--mb-accent);letter-spacing:-.025em}html[data-theme=endfield-terminal] .home-cards,html[data-theme=endfield-terminal] .analysis-cards{gap:var(--mb-space-md)}html[data-theme=endfield-terminal] .home-card,html[data-theme=endfield-terminal] .analysis-tile{background:var(--mb-bg);border:var(--mb-border-normal) solid var(--mb-surface-border);border-radius:var(--mb-radius-small);position:relative}html[data-theme=endfield-terminal] .home-card:after,html[data-theme=endfield-terminal] .analysis-tile:after{content:"";background:var(--mb-surface-border);width:18px;height:3px;position:absolute;bottom:0;right:0}html[data-theme=endfield-terminal] .home-add,html[data-theme=endfield-terminal] .add-btn,html[data-theme=endfield-terminal] .btn-primary,html[data-theme=endfield-terminal] .cfs-btn-primary,html[data-theme=endfield-terminal] .cm-add,html[data-theme=endfield-terminal] .pf-btn-primary,html[data-theme=endfield-terminal] .home-retry,html[data-theme=endfield-terminal] .analysis-retry{background:var(--mb-accent);min-height:48px;color:var(--mb-on-accent);border:var(--mb-border-normal) solid var(--mb-accent);border-radius:var(--mb-radius-small);font-family:var(--mb-font-heading);font-weight:var(--mb-font-weight-strong);letter-spacing:.04em;position:relative;overflow:hidden}html[data-theme=endfield-terminal] .home-add:before,html[data-theme=endfield-terminal] .add-btn:before,html[data-theme=endfield-terminal] .btn-primary:before,html[data-theme=endfield-terminal] .cfs-btn-primary:before,html[data-theme=endfield-terminal] .cm-add:before,html[data-theme=endfield-terminal] .pf-btn-primary:before{content:"";background:var(--mb-accent-text);width:5px;position:absolute;top:0;bottom:0;left:0}html[data-theme=endfield-terminal] .btn-ghost,html[data-theme=endfield-terminal] .cfs-btn-ghost,html[data-theme=endfield-terminal] .pf-btn-ghost,html[data-theme=endfield-terminal] .month-now-btn,html[data-theme=endfield-terminal] .analysis-now-btn,html[data-theme=endfield-terminal] .cm-act-btn{background:var(--mb-bg);min-height:44px;color:var(--mb-text-primary);border:var(--mb-border-normal) solid var(--mb-surface-border);border-radius:var(--mb-radius-small)}html[data-theme=endfield-terminal] .btn-danger,html[data-theme=endfield-terminal] .btn-danger-ghost,html[data-theme=endfield-terminal] .cfs-btn-danger,html[data-theme=endfield-terminal] .pf-btn-danger-ghost,html[data-theme=endfield-terminal] .cm-act-danger{background:var(--mb-bg);color:var(--mb-danger);border-color:var(--mb-danger)}html[data-theme=endfield-terminal] button:not(:disabled):active,html[data-theme=endfield-terminal] a:active{transform:translateY(1px)}html[data-theme=endfield-terminal] button:disabled{opacity:.42}html[data-theme=endfield-terminal] button:focus-visible,html[data-theme=endfield-terminal] a:focus-visible,html[data-theme=endfield-terminal] input:focus-visible,html[data-theme=endfield-terminal] textarea:focus-visible{outline:var(--mb-border-strong) solid var(--mb-accent-text);outline-offset:2px}html[data-theme=endfield-terminal] .home-recent-title,html[data-theme=endfield-terminal] .analysis-section-title,html[data-theme=endfield-terminal] .cm-group-title{padding-left:var(--mb-space-md);color:var(--mb-text-primary);font-family:var(--mb-font-heading);letter-spacing:.04em;position:relative}html[data-theme=endfield-terminal] .home-recent-title:before,html[data-theme=endfield-terminal] .analysis-section-title:before,html[data-theme=endfield-terminal] .cm-group-title:before{content:"";background:var(--mb-accent-text);width:5px;height:12px;position:absolute;top:50%;left:0;transform:translateY(-50%)}html[data-theme=endfield-terminal] .recent-row,html[data-theme=endfield-terminal] .bill-row,html[data-theme=endfield-terminal] .cm-row{border-bottom:var(--mb-border-normal) solid var(--mb-surface-border);background:0 0;position:relative}html[data-theme=endfield-terminal] .recent-row:after,html[data-theme=endfield-terminal] .bill-row:after,html[data-theme=endfield-terminal] .cm-row:after{content:"";background:var(--mb-accent);opacity:.55;width:22px;height:2px;position:absolute;bottom:0;right:0}html[data-theme=endfield-terminal] .recent-badge,html[data-theme=endfield-terminal] .bill-type-badge,html[data-theme=endfield-terminal] .cm-badge{font-family:var(--mb-font-mono);letter-spacing:.04em;border-radius:0}html[data-theme=endfield-terminal] .records-view{padding:0 var(--mb-space-lg) var(--mb-space-lg)}html[data-theme=endfield-terminal] .records-toolbar,html[data-theme=endfield-terminal] .analysis-toolbar,html[data-theme=endfield-terminal] .cm-toolbar,html[data-theme=endfield-terminal] .pf-toolbar{background:var(--mb-bg-elevated);border:var(--mb-border-normal) solid var(--mb-surface-border);border-top:0}html[data-theme=endfield-terminal] .records-toolbar{margin:0 calc(var(--mb-space-lg) * -1) var(--mb-space-md)}html[data-theme=endfield-terminal] .month-title,html[data-theme=endfield-terminal] .analysis-title,html[data-theme=endfield-terminal] .cm-title,html[data-theme=endfield-terminal] .pf-title{font-family:var(--mb-font-heading);letter-spacing:.04em}html[data-theme=endfield-terminal] .records-list{padding:0 0 var(--mb-space-lg)}html[data-theme=endfield-terminal] .records-filter{margin:0 0 var(--mb-space-md);background:var(--mb-bg-elevated);border-radius:var(--mb-radius-small);clip-path:polygon(0 0,calc(100% - 8px) 0,100% 8px,100% 100%,8px 100%,0 calc(100% - 8px));padding:3px}html[data-theme=endfield-terminal] .records-filter-btn{font-family:var(--mb-font-mono);border-radius:0}html[data-theme=endfield-terminal] .records-filter-btn[aria-checked=true]{color:var(--mb-accent);border-color:var(--mb-surface-border)}html[data-theme=endfield-terminal] .day-group{margin-top:var(--mb-space-md);overflow:hidden}html[data-theme=endfield-terminal] .day-header{min-height:38px;padding:var(--mb-space-sm) var(--mb-space-lg);background:var(--mb-surface);border-bottom:var(--mb-border-normal) solid var(--mb-surface-border);font-family:var(--mb-font-mono);color:var(--mb-text-primary);align-items:center}html[data-theme=endfield-terminal] .today-mark{padding:2px var(--mb-space-sm);color:var(--mb-on-accent);background:var(--mb-accent);border-radius:0}html[data-theme=endfield-terminal] .analysis-toolbar{margin:calc(var(--mb-space-lg) * -1) calc(var(--mb-space-lg) * -1) 0}html[data-theme=endfield-terminal] .analysis-section{background-image:radial-gradient(80% 58% at 100% 0%, var(--mb-surface) 0%, transparent 76%), repeating-linear-gradient(0deg, var(--mb-bg) 0 1px, transparent 1px 30px), repeating-linear-gradient(90deg, var(--mb-bg) 0 1px, transparent 1px 30px)}html[data-theme=endfield-terminal] .chart-frame-ring{position:relative}html[data-theme=endfield-terminal] .chart-frame-ring:before,html[data-theme=endfield-terminal] .chart-frame-ring:after{content:"";border-color:var(--mb-accent-text);pointer-events:none;width:28px;height:28px;position:absolute}html[data-theme=endfield-terminal] .chart-frame-ring:before{border-top:var(--mb-border-normal) solid var(--mb-accent-text);border-left:var(--mb-border-normal) solid var(--mb-accent-text);top:0;left:0}html[data-theme=endfield-terminal] .chart-frame-ring:after{border-right:var(--mb-border-normal) solid var(--mb-accent-text);border-bottom:var(--mb-border-normal) solid var(--mb-accent-text);bottom:0;right:0}html[data-theme=endfield-terminal] .share-row,html[data-theme=endfield-terminal] .trend-row{font-family:var(--mb-font-mono)}html[data-theme=endfield-terminal] .legend-dot,html[data-theme=endfield-terminal] .recent-dot,html[data-theme=endfield-terminal] .cat-dot,html[data-theme=endfield-terminal] .cm-dot{border-radius:0;transform:rotate(45deg)}html[data-theme=endfield-terminal] .st-root{width:100%;max-width:520px;padding:0 var(--mb-space-lg) var(--mb-space-xl);counter-reset:console-section;margin:0 auto}html[data-theme=endfield-terminal] .st-title{margin:0 calc(var(--mb-space-lg) * -1) var(--mb-space-sm);padding:var(--mb-space-xl) var(--mb-space-lg) var(--mb-space-md);background:var(--mb-bg-elevated);border-bottom:var(--mb-border-normal) solid var(--mb-surface-border);font-family:var(--mb-font-heading);font-weight:var(--mb-font-weight-strong);letter-spacing:.08em}html[data-theme=endfield-terminal] .st-section{counter-increment:console-section;margin-top:var(--mb-space-lg)}html[data-theme=endfield-terminal] .st-section-label{align-items:center;gap:var(--mb-space-sm);padding:var(--mb-space-sm) 0;color:var(--mb-text-primary);font-family:var(--mb-font-mono);letter-spacing:.06em;display:flex}html[data-theme=endfield-terminal] .st-section-label:before{content:"0" counter(console-section);color:var(--mb-accent-text)}html[data-theme=endfield-terminal] .st-section-label:after{content:"";background:var(--mb-surface-border);flex:1;height:1px}html[data-theme=endfield-terminal] .st-list{border-top:var(--mb-border-normal) solid var(--mb-surface-border);overflow:hidden}html[data-theme=endfield-terminal] .st-mt{counter-increment:console-section;margin-top:var(--mb-space-lg);padding-top:var(--mb-space-xl);position:relative}html[data-theme=endfield-terminal] .st-mt:before{content:"0" counter(console-section);color:var(--mb-accent-text);font-family:var(--mb-font-mono);position:absolute;top:0;left:0}html[data-theme=endfield-terminal] .st-mt:after{content:"";background:var(--mb-surface-border);height:1px;position:absolute;top:8px;left:34px;right:0}html[data-theme=endfield-terminal] .st-item{min-height:56px;padding:0 var(--mb-space-lg);border-bottom:var(--mb-border-normal) solid var(--mb-surface-border);background:0 0;position:relative}html[data-theme=endfield-terminal] .st-item:not(:disabled):hover,html[data-theme=endfield-terminal] .st-item[aria-checked=true]{background:var(--mb-surface)}html[data-theme=endfield-terminal] .st-item[aria-checked=true]:after{content:"";background:var(--mb-accent-text);width:4px;position:absolute;top:0;bottom:0;right:0}html[data-theme=endfield-terminal] .st-radio{border:var(--mb-border-normal) solid var(--mb-surface-border);border-radius:0;width:20px;height:20px;transform:rotate(45deg)}html[data-theme=endfield-terminal] .st-item[aria-checked=true] .st-radio{border-color:var(--mb-accent)}html[data-theme=endfield-terminal] .st-item[aria-checked=true] .st-radio:after{background:var(--mb-accent-text);border-radius:0;width:8px;height:8px}html[data-theme=endfield-terminal] .sheet,html[data-theme=endfield-terminal] .cfs-sheet{background-color:var(--mb-bg-elevated);background-image:radial-gradient(90% 50% at 100% 0%, var(--mb-surface) 0%, transparent 72%), repeating-linear-gradient(90deg, var(--mb-bg) 0 1px, transparent 1px 32px);border:var(--mb-border-normal) solid var(--mb-surface-border);clip-path:polygon(0 12px,12px 0,100% 0,100% 100%,0 100%);border-bottom:0;border-radius:0}html[data-theme=endfield-terminal] .sheet-title,html[data-theme=endfield-terminal] .cfs-title,html[data-theme=endfield-terminal] .cr-title{padding-left:var(--mb-space-md);border-left:4px solid var(--mb-accent-text);font-family:var(--mb-font-heading);letter-spacing:.04em}html[data-theme=endfield-terminal] .seg,html[data-theme=endfield-terminal] .cfs-seg{border-radius:var(--mb-radius-small);background:var(--mb-bg)}html[data-theme=endfield-terminal] .seg-btn,html[data-theme=endfield-terminal] .cfs-seg-btn,html[data-theme=endfield-terminal] .chip{border-radius:var(--mb-radius-small)}html[data-theme=endfield-terminal] .seg-btn.active-income,html[data-theme=endfield-terminal] .cfs-seg-btn.active-income{background:var(--mb-chart-income);color:var(--mb-bg)}html[data-theme=endfield-terminal] .seg-btn.active-expense,html[data-theme=endfield-terminal] .cfs-seg-btn.active-expense{background:var(--mb-chart-expense);color:var(--mb-bg)}html[data-theme=endfield-terminal] .amount-input,html[data-theme=endfield-terminal] .date-input,html[data-theme=endfield-terminal] .note-input,html[data-theme=endfield-terminal] .cfs-input,html[data-theme=endfield-terminal] .pf-input{background:var(--mb-bg);border-color:var(--mb-surface-border);border-radius:var(--mb-radius-small);font-family:var(--mb-font-mono)}html[data-theme=endfield-terminal] .chip.active{background:var(--mb-surface);color:var(--mb-text-primary);border-color:var(--mb-accent-text);outline:var(--mb-border-normal) solid var(--mb-accent-text);outline-offset:2px}html[data-theme=endfield-terminal] .cm-root,html[data-theme=endfield-terminal] .pf-page{padding:0 var(--mb-space-lg) var(--mb-space-xl)}html[data-theme=endfield-terminal] .cm-toolbar,html[data-theme=endfield-terminal] .pf-toolbar{margin:0 calc(var(--mb-space-lg) * -1) var(--mb-space-md)}html[data-theme=endfield-terminal] [data-ui=tabbar]{background:var(--mb-bg-elevated);border-top:var(--mb-border-strong) solid var(--mb-surface-border);position:relative}html[data-theme=endfield-terminal] [data-ui=tabbar]:before{content:"";background:var(--mb-accent-text);width:44px;height:2px;position:absolute;top:-2px;left:0}html[data-theme=endfield-terminal] [data-ui=nav-item]{min-height:62px;color:var(--mb-text-secondary);font-family:var(--mb-font-mono)}html[data-theme=endfield-terminal] [data-ui=nav-item].active{color:var(--mb-accent);background:var(--mb-surface)}html[data-theme=endfield-terminal] [data-ui=nav-item].active:before{content:"";background:var(--mb-accent-text);width:32px;height:2px;position:absolute;bottom:4px;left:50%;transform:translate(-50%)}html[data-theme=endfield-terminal] [data-ui=nav-item].active:after{content:"";background:var(--mb-accent-text);width:3px;height:22px;position:absolute;top:50%;left:4px;transform:translateY(-50%)}html[data-theme=endfield-terminal] [data-ui=nav-item].active .tab-icon{color:var(--mb-accent-text)}html[data-theme=endfield-terminal] .tab-label{letter-spacing:.04em}html[data-theme=endfield-terminal] .home-recent-head{justify-content:space-between;align-items:center;gap:var(--mb-space-md);margin-bottom:var(--mb-space-sm);display:flex}html[data-theme=endfield-terminal] .home-recent-head .home-recent-title{margin:0}html[data-theme=endfield-terminal] .home-all-bills{align-items:center;gap:var(--mb-space-xs);min-height:36px;padding:0 var(--mb-space-sm);background:var(--mb-bg-elevated);border:var(--mb-border-normal) solid var(--mb-surface-border);color:var(--mb-accent);font-family:var(--mb-font-mono);font-size:var(--mb-font-size-caption);letter-spacing:.04em;flex:none;text-decoration:none;display:inline-flex}html[data-theme=endfield-terminal] .records-head,html[data-theme=endfield-terminal] .analysis-head{padding:var(--mb-space-lg) 0 var(--mb-space-md)}html[data-theme=endfield-terminal] .records-head{justify-content:space-between;align-items:center;gap:var(--mb-space-md);display:flex}html[data-theme=endfield-terminal] .records-head-text{gap:var(--mb-space-xs);flex-direction:column;min-width:0;display:flex}html[data-theme=endfield-terminal] .analysis-head{gap:var(--mb-space-xs);flex-direction:column;display:flex}html[data-theme=endfield-terminal] .records-head-title,html[data-theme=endfield-terminal] .analysis-head-title{font-family:var(--mb-font-heading);font-size:22px;font-weight:var(--mb-font-weight-strong);letter-spacing:.02em;line-height:var(--mb-line-height-tight);color:var(--mb-text-primary);margin:0}html[data-theme=endfield-terminal] .records-head-sub,html[data-theme=endfield-terminal] .analysis-head-sub{font-family:var(--mb-font-mono);font-size:var(--mb-font-size-caption);letter-spacing:.1em;color:var(--mb-text-secondary);margin:0}html[data-theme=endfield-terminal] .records-head-add{min-height:44px;padding:0 var(--mb-space-lg);background:var(--mb-accent);color:var(--mb-on-accent);border:var(--mb-border-normal) solid var(--mb-accent);border-radius:var(--mb-radius-small);font-family:var(--mb-font-heading);font-weight:var(--mb-font-weight-strong);letter-spacing:.04em;white-space:nowrap;flex:none;position:relative;overflow:hidden}html[data-theme=endfield-terminal] .records-head-add:before{content:"";background:var(--mb-accent-text);width:5px;position:absolute;top:0;bottom:0;left:0}html[data-theme=endfield-terminal] .records-totals{gap:var(--mb-space-md);margin:0 0 var(--mb-space-md);display:flex}html[data-theme=endfield-terminal] .records-total-cell{gap:var(--mb-space-xs);min-width:0;padding:var(--mb-space-sm) var(--mb-space-md);background-color:var(--mb-bg-elevated);background-image:radial-gradient(120% 180% at 100% 0%, var(--mb-surface) 0%, transparent 72%);border:var(--mb-border-normal) solid var(--mb-surface-border);clip-path:polygon(0 0,calc(100% - 8px) 0,100% 8px,100% 100%,8px 100%,0 calc(100% - 8px));border-radius:0;flex-direction:column;flex:1;display:flex;position:relative}html[data-theme=endfield-terminal] .records-total-cell:before{content:"";background:var(--mb-accent-text);width:18px;height:2px;position:absolute;top:0;left:0}html[data-theme=endfield-terminal] .records-total-label{font-family:var(--mb-font-mono);font-size:var(--mb-font-size-caption);letter-spacing:.08em;color:var(--mb-text-secondary)}html[data-theme=endfield-terminal] .records-total-value{font-size:var(--mb-font-size-title);font-weight:var(--mb-font-weight-medium);font-variant-numeric:tabular-nums;overflow-wrap:anywhere}html[data-theme=endfield-terminal] .records-total-income{color:var(--mb-income)}html[data-theme=endfield-terminal] .records-total-expense{color:var(--mb-expense)}html[data-theme=endfield-terminal] .st-head-sub{margin:var(--mb-space-xs) 0 var(--mb-space-sm);font-family:var(--mb-font-mono);font-size:var(--mb-font-size-caption);letter-spacing:.1em;color:var(--mb-text-secondary)}html[data-theme=endfield-terminal] .console-profile{margin:0 0 var(--mb-space-md);background-color:var(--mb-bg-elevated);background-image:radial-gradient(120% 180% at 100% 0%, var(--mb-surface) 0%, transparent 72%);border:var(--mb-border-normal) solid var(--mb-surface-border);clip-path:polygon(0 0,calc(100% - 12px) 0,100% 12px,100% 100%,12px 100%,0 calc(100% - 12px));border-radius:0;position:relative;overflow:hidden}html[data-theme=endfield-terminal] .console-profile-link{align-items:center;gap:var(--mb-space-md);min-height:64px;padding:var(--mb-space-md) var(--mb-space-lg);color:var(--mb-text-primary);text-decoration:none;display:flex}html[data-theme=endfield-terminal] .console-profile .pf-avatar{border:var(--mb-border-strong) solid var(--mb-accent)}html[data-theme=endfield-terminal] .console-profile-meta{flex-direction:column;flex:1;gap:2px;min-width:0;display:flex}html[data-theme=endfield-terminal] .console-profile-name{font-size:var(--mb-font-size-title);font-weight:var(--mb-font-weight-medium);text-overflow:ellipsis;white-space:nowrap;overflow:hidden}html[data-theme=endfield-terminal] .console-profile-role{font-family:var(--mb-font-mono);font-size:var(--mb-font-size-caption);letter-spacing:.1em;color:var(--mb-text-secondary)}html[data-theme=endfield-terminal] .console-profile-arrow{color:var(--mb-text-secondary);flex:none}html[data-theme=endfield-terminal] .st-item .st-current{padding:2px var(--mb-space-sm);font-family:var(--mb-font-mono);letter-spacing:.08em;color:var(--mb-accent-text);border:var(--mb-border-normal) solid var(--mb-accent-text);flex:none;margin-left:auto;font-size:10px;line-height:1}@media (width<=360px){html[data-theme=endfield-terminal] .home-root,html[data-theme=endfield-terminal] .analysis-root,html[data-theme=endfield-terminal] .pf-root{padding:var(--mb-space-md)}html[data-theme=endfield-terminal] .records-view,html[data-theme=endfield-terminal] .st-root,html[data-theme=endfield-terminal] .cm-root,html[data-theme=endfield-terminal] .pf-page{padding-right:var(--mb-space-md);padding-left:var(--mb-space-md)}html[data-theme=endfield-terminal] .home-root{padding-top:calc(var(--mb-space-lg) * 18)}html[data-theme=endfield-terminal] .id-name{max-width:76px}}@media (prefers-reduced-motion:reduce){html[data-theme=endfield-terminal] *,html[data-theme=endfield-terminal] :before,html[data-theme=endfield-terminal] :after{scroll-behavior:auto;transition:none}}html[data-theme=arknights-volcano-dream] body{background-color:var(--mb-bg)}html[data-theme=arknights-volcano-dream][data-appearance=day] body{background-image:url(/assets/volcano-dream-day-BdnR0Usg.png), radial-gradient(130% 96% at 50% -10%, var(--mb-bg-elevated) 0%, transparent 56%);background-position:28% 8%,28% 8%;background-repeat:no-repeat,no-repeat;background-size:cover,auto}html[data-theme=arknights-volcano-dream][data-appearance=night] body{background-image:url(/assets/volcano-dream-night-ClLlKi9R.png), radial-gradient(170% 130% at 50% -16%, var(--mb-accent) 0%, transparent 58%);background-position:28% 8%,28% 8%;background-repeat:no-repeat,no-repeat;background-size:cover,auto}@media (width<=560px) and (orientation:portrait){html[data-theme=arknights-volcano-dream][data-appearance=day] body{background-image:url(/assets/volcano-dream-mobile-day-DabUza8H.png), radial-gradient(130% 96% at 50% -10%, var(--mb-bg-elevated) 0%, transparent 56%);background-position:top,top;background-repeat:no-repeat,no-repeat;background-size:cover,auto}html[data-theme=arknights-volcano-dream][data-appearance=night] body{background-image:url(/assets/volcano-dream-mobile-night-Pc2YBt1T.png), radial-gradient(170% 130% at 50% -16%, var(--mb-accent) 0%, transparent 58%);background-position:top,top;background-repeat:no-repeat,no-repeat;background-size:cover,auto}}html[data-theme=arknights-volcano-dream] [data-ui=page]{background:0 0}html[data-theme=arknights-volcano-dream] [data-ui=topbar]{background:var(--mb-surface);border-bottom:var(--mb-border-strong) solid var(--mb-accent-text);position:relative}html[data-theme=arknights-volcano-dream] .app-title{font-family:var(--mb-font-heading);letter-spacing:.02em}html[data-theme=arknights-volcano-dream] [data-ui=tabbar]{background:var(--mb-surface);border-top:var(--mb-border-normal) dashed var(--mb-surface-border)}html[data-theme=arknights-volcano-dream] [data-ui=nav-item].active:before{content:"";top:var(--mb-space-xs);background:var(--mb-accent-text);pointer-events:none;border-radius:50%;width:6px;height:6px;position:absolute;left:50%;transform:translate(-50%)}html[data-theme=arknights-volcano-dream] .home-summary,html[data-theme=arknights-volcano-dream] .home-list,html[data-theme=arknights-volcano-dream] .day-group,html[data-theme=arknights-volcano-dream] .st-list,html[data-theme=arknights-volcano-dream] .confirm-card,html[data-theme=arknights-volcano-dream] .cr-dialog{background:var(--mb-bg-elevated);border:var(--mb-border-normal) solid var(--mb-surface-border);border-radius:var(--mb-radius-small)}html[data-theme=arknights-volcano-dream] .day-group{margin-top:var(--mb-space-sm);overflow:hidden}html[data-theme=arknights-volcano-dream] .home-card{background:var(--mb-bg);border:var(--mb-border-normal) solid var(--mb-surface-border);border-radius:var(--mb-radius-small)}html[data-theme=arknights-volcano-dream] .recent-row,html[data-theme=arknights-volcano-dream] .bill-row,html[data-theme=arknights-volcano-dream] .st-item{border-bottom-style:dashed}html[data-theme=arknights-volcano-dream] .day-header:before{content:"";background:var(--mb-accent-text);border-radius:50%;flex:none;align-self:center;width:6px;height:6px}html[data-theme=arknights-volcano-dream] .st-list .st-item:last-child{border-bottom-style:none}html[data-theme=arknights-volcano-dream] .records-toolbar,html[data-theme=arknights-volcano-dream] .pf-toolbar{background:var(--mb-surface);border-bottom:var(--mb-border-normal) solid var(--mb-surface-border)}html[data-theme=arknights-volcano-dream] .home-add,html[data-theme=arknights-volcano-dream] .add-btn,html[data-theme=arknights-volcano-dream] .btn-primary,html[data-theme=arknights-volcano-dream] .pf-btn-primary{border-radius:var(--mb-radius-small);border:var(--mb-border-normal) solid var(--mb-on-accent)}
