:root{--ink: #1b1f1d;--muted: #5b6460;--ground: #f4f5f2;--surface: #ffffff;--line: #e3e6e0;--accent: #0f6e5c;--accent-ink: #0b5547;--accent-soft: #e8f2ee;--warn: #b45309;--warn-soft: #fff4e8;--danger: #b42318;--danger-fill: #b42318;--danger-soft: #fdecea;--accent-text: #0f6e5c;--warn-ink: #8a3b0e;--neg: #9a3412;--seg: #e8eae5;--disabled: #a9afa9;--avatar-bg: #dcefe9;--trend: #cfe3dc;--income-bg: #e6eefb;--income-ink: #1d4e9e;--dash: #c9cdc6;--radius-lg: 20px;--radius: 14px;--radius-sm: 10px;--font: system-ui, -apple-system, "PingFang SC", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans CJK SC", "Noto Sans SC", "Microsoft YaHei", "Yu Gothic UI", sans-serif;--safe-bottom: env(safe-area-inset-bottom, 0px);color-scheme:light;box-sizing:border-box;padding-top:env(safe-area-inset-top,0px)}html{scroll-padding-top:env(safe-area-inset-top,0px)}@media (prefers-color-scheme: dark){:root:not([data-theme=light]){--ink: #e7ebe8;--muted: #a3aca7;--ground: #121614;--surface: #1b201e;--line: #2e3632;--accent-text: #6fd0b4;--accent-ink: #8fdcc5;--accent-soft: #183b32;--warn: #f0a35b;--warn-soft: #3a2a17;--warn-ink: #f3c08a;--danger: #f2776b;--danger-fill: #c0392b;--danger-soft: #3b1d1a;--neg: #f29b74;--seg: #262c29;--disabled: #4a524e;--avatar-bg: #24453b;--trend: #2c4d43;--income-bg: #1d2b45;--income-ink: #9bb9ec;--dash: #3a423e;color-scheme:dark}}:root[data-theme=dark]{--ink: #e7ebe8;--muted: #a3aca7;--ground: #121614;--surface: #1b201e;--line: #2e3632;--accent-text: #6fd0b4;--accent-ink: #8fdcc5;--accent-soft: #183b32;--warn: #f0a35b;--warn-soft: #3a2a17;--warn-ink: #f3c08a;--danger: #f2776b;--danger-fill: #c0392b;--danger-soft: #3b1d1a;--neg: #f29b74;--seg: #262c29;--disabled: #4a524e;--avatar-bg: #24453b;--trend: #2c4d43;--income-bg: #1d2b45;--income-ink: #9bb9ec;--dash: #3a423e;color-scheme:dark}*,*:before,*:after{box-sizing:border-box}html,body{margin:0}body{font-family:var(--font);font-size:16px;line-height:1.55;color:var(--ink);background:var(--ground);-webkit-font-smoothing:antialiased;font-variant-numeric:tabular-nums}h1,h2,p{margin:0}h1{font-size:26px;line-height:1.25;font-weight:700;letter-spacing:-.01em}h2{font-size:17px;line-height:1.35;font-weight:600}a{color:var(--accent-text)}button,input,select{font:inherit;color:inherit}:focus-visible{outline:3px solid color-mix(in srgb,var(--accent) 55%,white);outline-offset:2px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}.mono-digits{letter-spacing:.06em}.muted{color:var(--muted)}.center{text-align:center}.boot{padding:40px;text-align:center;color:var(--muted)}.brand-mark{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;border-radius:28%;background:var(--accent);color:#fff}.auth{min-height:calc(100dvh - env(safe-area-inset-top,0px));display:flex}.auth-brand{display:none}.auth-main{flex:1;display:flex;flex-direction:column;padding:12px 20px calc(28px + var(--safe-bottom))}.auth-top{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:56px}.auth-top-brand{display:inline-flex;align-items:center;gap:10px;font-weight:700;font-size:18px}.auth-body{width:100%;max-width:420px;margin:20px auto 0;display:flex;flex-direction:column;gap:24px}.switch-line{text-align:center;color:var(--muted);font-size:15px}.switch-line a{font-weight:600;text-decoration:none}@media (min-width: 900px){.auth-brand{position:relative;display:flex;flex-direction:column;justify-content:center;width:min(46vw,600px);flex-shrink:0;padding:96px clamp(40px,5vw,72px) 56px;background:var(--accent);color:#fff;overflow:hidden}.auth-brand .brand-mark{background:#fff;color:var(--accent)}.auth-brand-top{position:absolute;top:32px;left:clamp(40px,5vw,72px);display:inline-flex;align-items:center;gap:12px}.auth-name{font-size:19px;font-weight:700}.auth-pitch{display:flex;flex-direction:column;gap:16px;max-width:440px}.auth-tagline{font-size:clamp(32px,3vw,46px);line-height:1.2;font-weight:700;letter-spacing:-.01em}.auth-tagline span{display:block;word-break:keep-all;overflow-wrap:break-word}.auth-sub{font-size:17px;line-height:1.6;color:#ffffffdb;margin-bottom:20px}.preview-card{background:#fff;color:#1b1f1d;border-radius:20px;padding:20px 22px 18px;box-shadow:0 24px 60px #00000038;font-size:15px}.preview-head{display:flex;justify-content:space-between;align-items:baseline}.preview-head strong{font-size:17px}.preview-head span,.preview-label{color:#5b6460;font-size:13px}.preview-label{margin:10px 0 4px}.preview-card ul{list-style:none;margin:0;padding:0}.preview-card li{display:flex;align-items:center;gap:10px;padding:8px 0;border-top:1px solid #eceee9}.preview-card li:first-child{border-top:0}.preview-avatar{width:28px;height:28px;border-radius:50%;background:#dcefe9;color:#0b5547;display:inline-flex;align-items:center;justify-content:center;font-size:13px;font-weight:700}.preview-name{flex:1}.preview-pos,.preview-neg{font-weight:700;font-variant-numeric:tabular-nums}.preview-pos{color:#0b5547}.preview-neg{color:#9a3412}.preview-total{display:flex;justify-content:space-between;padding:10px 0 12px;border-top:1.5px solid #1b1f1d;font-weight:700}.preview-suggest{display:flex;justify-content:space-between;gap:12px;padding:10px 12px;border-radius:12px;background:#e8f2ee;color:#0b5547;font-size:14px}.auth-main{position:relative;display:flex;align-items:center;justify-content:center;padding:88px 48px 48px}.auth-top{position:absolute;top:24px;right:32px;min-height:0}.auth-top-brand{display:none}.auth-body{margin:0;width:100%;max-width:440px;gap:20px;background:var(--surface);border-radius:24px;padding:40px 40px 32px;box-shadow:0 1px 2px #141e190a,0 16px 48px #14281e14}.auth-body .switch-line{padding-top:18px;border-top:1px solid var(--line)}}.shell{min-height:calc(100dvh - env(safe-area-inset-top,0px));display:flex;flex-direction:column}.sidebar{display:none}.content{flex:1 0 auto;padding:16px 16px 24px}.page{max-width:720px;margin:0 auto;display:flex;flex-direction:column;gap:16px}.tabbar{position:sticky;bottom:0;z-index:10;display:flex;justify-content:space-around;padding:6px 8px calc(6px + var(--safe-bottom));background:var(--surface);border-top:1px solid var(--line)}.tabbar a{touch-action:manipulation;-webkit-tap-highlight-color:transparent;display:flex;flex-direction:column;align-items:center;gap:2px;min-width:72px;min-height:48px;justify-content:center;font-size:12px;color:var(--muted);text-decoration:none;border-radius:var(--radius-sm)}.tabbar a.active{color:var(--accent-text);font-weight:600}@media (min-width: 900px){.shell{display:grid;grid-template-columns:252px minmax(0,1fr)}.tabbar{display:none}.sidebar{display:flex;flex-direction:column;gap:14px;position:sticky;top:env(safe-area-inset-top,0px);height:calc(100dvh - env(safe-area-inset-top,0px));padding:20px 14px 16px;background:var(--surface);border-right:1px solid var(--line);overflow-y:auto}.sidebar-brand{display:inline-flex;align-items:center;gap:9px;font-size:17px;font-weight:700;padding:0 6px 4px}.ledger-switch{display:flex;align-items:center;gap:10px;padding:10px;border-radius:14px;background:var(--ground);color:var(--ink);text-decoration:none}.ledger-switch:hover{background:var(--accent-soft)}.ledger-switch svg{color:var(--muted);flex-shrink:0}.ledger-switch-initial{width:38px;height:38px;flex-shrink:0;border-radius:11px;background:var(--accent);color:#fff;display:inline-flex;align-items:center;justify-content:center;font-weight:700;font-size:17px}.ledger-switch-text{flex:1;min-width:0;display:flex;flex-direction:column;line-height:1.3}.ledger-switch-text strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ledger-switch-text small{color:var(--muted);font-size:12px}.sidebar-add{min-height:44px}.sidebar-nav{display:flex;flex-direction:column;gap:2px}.nav-group{font-size:12px;color:var(--muted);padding:14px 12px 6px}.sidebar-nav a{display:flex;align-items:center;gap:12px;min-height:40px;padding:0 12px;color:var(--ink);text-decoration:none;border-radius:var(--radius-sm);font-size:15px}.sidebar-nav a svg{color:var(--muted)}.sidebar-nav a:hover{background:var(--ground)}.sidebar-nav a.active{background:var(--accent-soft);color:var(--accent-ink);font-weight:600}.sidebar-nav a.active svg{color:var(--accent-ink)}.sidebar-user{margin-top:auto;display:flex;align-items:center;gap:10px;padding:8px;border-radius:12px;color:var(--ink);text-decoration:none}.sidebar-user:hover,.sidebar-user.active{background:var(--ground)}.sidebar-user span{display:flex;flex-direction:column;line-height:1.3;min-width:0}.sidebar-user small{color:var(--muted)}.content{padding:28px 36px 48px}}.stack{display:flex;flex-direction:column;gap:18px}.stack-sm{display:flex;flex-direction:column;gap:12px}.lead{margin-top:6px;color:var(--muted)}.fine{font-size:13px;color:var(--muted)}.card{background:var(--surface);border-radius:var(--radius-lg);padding:18px}.card-title{font-size:16px}.field{display:flex;flex-direction:column;gap:6px}.field label{font-size:14px;font-weight:600}.field.grow{flex:1;min-width:0}.input{width:100%;min-height:50px;padding:0 14px;border-radius:var(--radius);border:1px solid var(--line);background:var(--surface);font-size:16px}.input:focus{border-color:var(--accent);outline:none;box-shadow:0 0 0 3px var(--accent-soft)}.input[aria-invalid=true]{border-color:var(--warn)}.input-lg{min-height:56px;font-size:18px}select.input{-webkit-appearance:none;-moz-appearance:none;appearance:none;cursor:pointer;padding-right:42px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%237a837e' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 14px center;background-size:16px}select.input::-ms-expand{display:none}.lang-switch select{min-width:128px}.input-row{display:flex;gap:8px}.input-row .input{flex:1;min-width:0}.hint{font-size:13px;color:var(--muted);min-height:1.4em}.hint-error{color:var(--warn)}.hint-ok{color:var(--accent-ink);font-weight:600}.notice{padding:12px 14px;border-radius:var(--radius);font-size:14px}.notice-error{background:var(--warn-soft);color:var(--warn-ink)}.notice-ok{background:var(--accent-soft);color:var(--accent-ink)}.links-row{display:flex;justify-content:space-between}.links-row a{min-height:44px;display:inline-flex;align-items:center;text-decoration:none;font-size:15px}.back-link{display:inline-flex;align-items:center;gap:4px;min-height:44px;color:var(--muted);text-decoration:none;align-self:flex-start}.btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:48px;padding:0 18px;border-radius:var(--radius);border:1px solid transparent;font-weight:600;font-size:16px;cursor:pointer;text-decoration:none;white-space:nowrap}.btn:disabled{cursor:not-allowed;opacity:1;background:var(--disabled);border-color:var(--disabled);color:#fff}.btn-lg{min-height:56px;font-size:17px}.btn-primary{background:var(--accent);color:#fff}.btn-primary:hover:not(:disabled){background:var(--accent-ink)}.btn-primary:disabled{background:color-mix(in srgb,var(--accent) 38%,var(--surface));border-color:transparent;color:#fff}.btn-outline{background:var(--surface);border-color:var(--line);color:var(--ink)}.btn-ghost{background:transparent;color:var(--accent-text);padding:0;min-height:44px;justify-content:flex-start;white-space:normal;text-align:left}.btn-danger{background:var(--danger-fill);color:#fff}.btn-danger-outline{background:var(--surface);border-color:var(--danger);color:var(--danger)}.danger-text{color:var(--danger)}.link-btn{min-height:36px;padding:0 6px;border:0;background:none;color:var(--accent-text);font-weight:600;cursor:pointer;font-size:14px}.link-btn.danger{color:var(--danger)}.row-2{display:grid;grid-template-columns:1fr 1fr;gap:10px}.seg{display:inline-flex;gap:2px;padding:3px;background:var(--seg);border-radius:12px}.seg button{min-height:36px;padding:0 10px;border:0;border-radius:9px;background:transparent;color:var(--muted);font-size:13px;cursor:pointer}.seg button[aria-pressed=true],.seg button[aria-selected=true]{background:var(--surface);color:var(--ink);font-weight:600}.seg-wide{display:grid;grid-template-columns:1fr 1fr}.seg-wide button{min-height:44px;font-size:15px}.avatar{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;border-radius:50%;background:var(--avatar-bg);color:var(--accent-ink);font-weight:700}.tag{display:inline-block;margin-left:6px;padding:1px 8px;border-radius:999px;background:var(--ground);color:var(--muted);font-size:12px;font-weight:600}.tag-ok{background:var(--accent-soft);color:var(--accent-ink)}.pinpad{display:flex;flex-direction:column;gap:18px}.pin-dots{display:flex;justify-content:center;gap:14px;padding:6px 0}.dot{width:14px;height:14px;border-radius:50%;border:1.5px solid var(--disabled)}.dot.optional{opacity:.4}.dot.on{background:var(--accent);border-color:var(--accent);opacity:1}.keys{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.key{min-height:58px;border:0;border-radius:var(--radius);background:var(--surface);font-size:22px;cursor:pointer}.key:active:not(:disabled){background:var(--accent-soft)}.big-icon{width:64px;height:64px;border-radius:20px;display:inline-flex;align-items:center;justify-content:center;background:var(--accent-soft);color:var(--accent-text)}.status-pill{display:inline-flex;align-items:center;gap:8px;align-self:flex-start;padding:8px 14px;border-radius:999px;background:var(--warn-soft);color:var(--warn-ink);font-weight:600;font-size:14px}.pulse{width:8px;height:8px;border-radius:50%;background:#d97706;animation:pulse 1.6s ease-in-out infinite}@keyframes pulse{50%{opacity:.3}}.result{display:flex;flex-direction:column;gap:14px}.result-row{display:flex;align-items:center;gap:12px}.result-row span{display:flex;flex-direction:column}.result-row small{color:var(--muted)}.result-value{font-size:24px;letter-spacing:.04em}.empty{padding:28px 20px;border-radius:var(--radius-lg);border:1.5px dashed var(--dash);text-align:center;display:flex;flex-direction:column;gap:6px}.empty p{color:var(--muted)}.ledger-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px}.ledger{display:flex;align-items:center;gap:14px;padding:16px;background:var(--surface);border-radius:var(--radius-lg)}.ledger-initial{width:46px;height:46px;border-radius:14px;display:inline-flex;align-items:center;justify-content:center;background:var(--accent);color:#fff;font-weight:700;font-size:20px;flex-shrink:0}.ledger-text{display:flex;flex-direction:column;min-width:0}.ledger-text strong{font-size:17px}.ledger-text small{color:var(--muted)}.create-row{display:flex;gap:10px;align-items:flex-end}.create-row .field:last-child{width:110px}.profile{display:flex;align-items:center;gap:16px}.profile-text{display:flex;flex-direction:column;gap:2px;min-width:0}.profile-text strong{font-size:21px}.id-line{color:var(--muted);font-size:14px;display:flex;align-items:center;gap:4px;flex-wrap:wrap}.id-line b{color:var(--ink)}.list{padding:6px 18px}.list-title{font-size:13px;font-weight:500;color:var(--muted);padding:12px 0 2px}.list-row{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:54px;border-top:1px solid var(--line)}.list-title+.list-row,.list>.list-row:first-child{border-top:0}.row-actions{display:flex;align-items:center;flex-wrap:wrap;justify-content:flex-end}.device{display:flex;flex-direction:column}.device small{color:var(--muted);font-size:12px}.pin-form{display:flex;flex-direction:column;gap:12px;padding:4px 0 14px}.sheet-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:50;background:#1b1f1d73;display:flex;align-items:flex-end;justify-content:center}.sheet{width:100%;max-width:480px;background:var(--surface);border-radius:24px 24px 0 0;padding:24px 20px calc(24px + var(--safe-bottom));display:flex;flex-direction:column;gap:12px}.sheet p{color:var(--muted)}.sheet-icon{width:48px;height:48px;border-radius:16px;display:inline-flex;align-items:center;justify-content:center;background:var(--warn-soft);color:var(--warn)}@media (min-width: 900px){.sheet-backdrop{align-items:center}.sheet{border-radius:24px}}@media (prefers-reduced-motion: reduce){.pulse{animation:none}}.narrow{max-width:480px}.label{font-size:14px;font-weight:600}.text-link{font-size:14px;font-weight:600;text-decoration:none;min-height:44px;display:inline-flex;align-items:center}.card-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:4px}.btn-sm{min-height:36px;padding:0 12px;font-size:14px}.mobile-only{display:flex}@media (min-width: 900px){.mobile-only{display:none}}.bullets{margin:0;padding-left:20px;display:flex;flex-direction:column;gap:6px;color:var(--ink)}.sheet-body{display:flex;flex-direction:column;gap:10px}.sheet-body p{color:var(--ink)}.ledger-head{padding:4px 4px 0;display:flex;flex-direction:column;gap:2px}.ledger-head h1{font-size:28px}.quick{display:grid;grid-template-columns:1.3fr 1fr 1fr;gap:8px}.quick-item{display:flex;align-items:center;justify-content:center;text-align:center;min-height:56px;padding:6px 10px;border-radius:var(--radius);background:var(--surface);color:var(--ink);font-weight:600;font-size:15px;text-decoration:none;line-height:1.3}.quick-main{background:var(--accent);color:#fff}.link-list{flex-direction:column;padding:4px 18px}.link-list a{min-height:50px;display:flex;align-items:center;color:var(--ink);text-decoration:none;border-top:1px solid var(--line)}.link-list a:first-child{border-top:0}.ledger{color:var(--ink);text-decoration:none}.ledger:hover{outline:2px solid var(--accent-soft)}.table-wrap{overflow-x:auto;margin-top:8px}.balance-table{width:100%;border-collapse:collapse;font-size:15px}.balance-table th,.balance-table td{padding:10px 0;text-align:left;border-top:1px solid var(--line);white-space:nowrap}.balance-table thead th{font-size:12px;font-weight:500;color:var(--muted);border-top:0;padding-top:4px}.balance-table tbody th{font-weight:500}.balance-table .num{text-align:right;padding-left:16px}.amount{font-weight:600;white-space:nowrap}.amount.pos{color:var(--accent-ink)}.amount.neg{color:var(--neg)}.entry-list{list-style:none;margin:0;padding:0}.entry-list>li{border-top:1px solid var(--line)}.entry-list>li:first-child{border-top:0}.entry-line{display:flex;align-items:center;gap:12px;padding:10px 0;width:100%}.entry-mark{width:36px;height:36px;flex-shrink:0;border-radius:12px;display:inline-flex;align-items:center;justify-content:center;font-size:14px;font-weight:700;background:var(--accent-soft);color:var(--accent-ink)}.mark-transfer,.mark-adjustment,.mark-carry_over{background:var(--ground);color:var(--muted)}.mark-income{background:var(--income-bg);color:var(--income-ink)}.entry-text{flex:1;min-width:0;display:flex;flex-direction:column;text-align:left}.entry-text strong{font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.entry-text small{color:var(--muted);font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.entry-button{width:100%;padding:0;border:0;background:none;cursor:pointer;text-align:left}.entry-detail{padding:0 0 12px 48px;display:flex;flex-direction:column;gap:6px}.effects{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:4px;font-size:14px}.effects li{display:flex;justify-content:space-between;max-width:320px}.day .list-title{padding-top:0}.suggestion{display:flex;align-items:center;gap:12px;padding:10px 0}.suggestion>span:first-child{flex:1}.amount-row{display:flex;gap:10px;align-items:flex-start}.amount-row .input{min-height:56px}.amount-row .field:first-child{width:104px;flex-shrink:0}.input-amount{font-size:24px;font-weight:700;min-height:56px;text-align:right}.readout{display:flex;align-items:center;justify-content:flex-end;background:var(--ground)}.two-col{display:grid;grid-template-columns:1fr 1fr;gap:10px}@media (max-width: 420px){.two-col{grid-template-columns:1fr}}.chips{display:flex;flex-wrap:wrap;gap:8px}.chip{min-height:40px;padding:0 14px;border-radius:999px;border:1px solid var(--line);background:var(--surface);cursor:pointer;font-size:14px}.chip[aria-pressed=true]{background:var(--accent);border-color:var(--accent);color:#fff;font-weight:600}.chip-add{border-style:dashed;color:var(--accent-text)}.chip-input{display:flex;gap:8px;flex-basis:100%}.chip-input .input{flex:1;min-height:44px}.share-list{list-style:none;margin:0;padding:0}.share-row{display:flex;align-items:center;gap:12px;min-height:56px;border-top:1px solid var(--line)}.share-row:first-child{border-top:0}.share-who{flex:1;display:flex;align-items:center;gap:10px;min-height:44px;font-size:15px}.share-who input{width:20px;height:20px;accent-color:var(--accent)}.share-amount{width:128px;min-height:44px;text-align:right;font-weight:600}.share-amount:disabled{background:var(--ground)}.share-amount.pos{color:var(--accent-ink)}.share-amount.neg{color:var(--neg)}.sum-bar{display:flex;justify-content:space-between;gap:12px;padding:12px 16px;border-radius:var(--radius);background:var(--warn-soft);color:var(--warn-ink);font-weight:600;font-size:14px}.sum-bar.ok{background:var(--accent-soft);color:var(--accent-ink)}.preview p{font-size:15px}.toolbar{display:flex;flex-direction:column;gap:10px}.input-compact{min-height:44px;width:auto;align-self:flex-start}.month-nav{display:flex;align-items:center;gap:10px}.month-nav strong{min-width:7.5em;text-align:center}.btn-icon{min-width:44px;padding:0;font-size:20px}.figures{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 16px}.figures div{display:flex;flex-direction:column;min-width:0}.figures small{color:var(--muted)}.figures strong{font-size:20px;white-space:nowrap}.figures>div:first-child{grid-column:1 / -1;padding-bottom:14px;border-bottom:1px solid var(--line)}.figures>div:first-child strong{font-size:30px}.bars{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px}.bars li{display:grid;grid-template-columns:5.5em 1fr auto;align-items:center;gap:10px;font-size:14px}.bar-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.bar-track{height:10px;border-radius:5px;background:var(--ground);overflow:hidden}.bar-fill{display:block;height:100%;border-radius:5px;background:var(--accent)}.bar-value{font-weight:600;text-align:right}.trend{display:grid;grid-template-columns:repeat(6,1fr);gap:10px;height:140px;align-items:end}.trend-col{height:100%;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;gap:6px}.trend-bar{width:100%;max-width:32px;border-radius:6px 6px 2px 2px;background:var(--trend)}.trend-col.current .trend-bar{background:var(--accent)}.trend-col small{color:var(--muted);font-size:12px}.radio-row{display:flex;align-items:center;gap:12px;min-height:48px;flex:1;cursor:pointer}.radio-row input{width:18px;height:18px;accent-color:var(--accent)}.file-btn{cursor:pointer;position:relative}.tabbar a.tab-add{min-width:56px;width:56px;height:56px;margin-top:-22px;border-radius:50%;background:var(--accent);color:#fff;border:4px solid var(--ground)}.tabbar a.tab-add.active{color:#fff}.page-header{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:12px 16px;padding:8px 4px 0}.page-heading{min-width:0}.page-heading h1{font-size:26px}.page-sub{margin-top:4px;color:var(--muted);max-width:46em}.page-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px}.layout-main,.layout-2{display:flex;flex-direction:column;gap:16px}.col-main,.col-side{display:flex;flex-direction:column;gap:16px;min-width:0}section.col-main,section.col-side{gap:12px}.form-actions{margin-top:4px}.hero{background:var(--accent);color:#fff;border-radius:22px;padding:20px;display:flex;flex-direction:column;gap:18px}.hero h1{font-size:26px}.hero-sub{margin-top:2px;color:#ffffffd9}.hero-top{display:flex;justify-content:space-between;gap:16px;align-items:flex-start}.hero-actions{display:none;gap:8px;flex-wrap:wrap;justify-content:flex-end}.hero-figures{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 16px;margin:0}.hero-figures>div{min-width:0}.hero-figures dt{font-size:13px;color:#ffffffd1}.hero-figures dd{margin:2px 0 0;font-size:20px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.hero-figures small{display:block;font-size:13px;color:#ffffffd9}.btn-on-accent{background:#ffffff1f;border-color:#fff6;color:#fff}.btn-on-accent:hover{background:#fff3}.btn-light{background:#fff;color:#0b5547}.btn-light:hover{background:#eef5f2}.mini-list{list-style:none;margin:0;padding:0}.mini-list li{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:10px 0;border-top:1px solid var(--line);font-size:15px}.mini-list li:first-child{border-top:0}.link-list a{gap:12px}.link-list a svg{color:var(--muted)}.data-table{width:100%;border-collapse:collapse;font-size:14px}.data-table th{text-align:left;font-weight:500;font-size:12px;color:var(--muted);padding:0 14px 10px 0;border-bottom:1px solid var(--line);white-space:nowrap}.data-table td{padding:12px 14px 12px 0;border-bottom:1px solid var(--line);vertical-align:middle}.data-table tbody tr:last-child td{border-bottom:0}.data-table .num{text-align:right;padding-right:0}.data-table .nowrap{white-space:nowrap}.data-table .cell-item{font-weight:500;max-width:18em;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.data-table tr.row-click{cursor:pointer}.data-table tr.row-click:hover td,.data-table tr.row-click:focus-visible td{background:var(--ground)}.data-table tr[aria-expanded=true] td{border-bottom:0}.row-detail td{background:var(--ground);padding:14px 16px}.row-detail .entry-detail{padding:0}.type-tag{display:inline-block;padding:2px 8px;border-radius:6px;font-size:12px;font-weight:600;white-space:nowrap;background:var(--accent-soft);color:var(--accent-ink)}.type-tag.tag-income{background:var(--income-bg);color:var(--income-ink)}.type-tag.tag-transfer,.type-tag.tag-adjustment,.type-tag.tag-carry_over{background:var(--seg);color:var(--muted)}.bar-value small{margin-left:8px;color:var(--muted);font-weight:400}.trend-value{font-size:11px;color:var(--muted);white-space:nowrap;min-height:1.4em}@media (min-width: 1024px){.page{max-width:1200px;margin:0;gap:20px}.page-header{padding:0 0 4px}.page-heading h1{font-size:28px}.layout-main{display:grid;grid-template-columns:minmax(0,1fr) 340px;align-items:start;gap:20px}.layout-2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:20px}.card{padding:22px 24px}.hero{padding:26px 30px;gap:26px}.hero h1{font-size:30px}.hero-actions{display:flex}.hero-figures{grid-template-columns:repeat(4,minmax(0,1fr));gap:0}.hero-figures>div{padding:0 24px;border-left:1px solid rgba(255,255,255,.25)}.hero-figures>div:first-child{padding-left:0;border-left:0}.hero-figures dd{font-size:28px}.quick{display:none}.seg-type button{min-width:88px;min-height:40px;font-size:15px}.form-actions{max-width:520px;margin-left:auto}.figures{grid-template-columns:repeat(3,minmax(0,1fr))}.figures>div:first-child{grid-column:auto;padding-bottom:0;border-bottom:0}.figures strong,.figures>div:first-child strong{font-size:28px}.figures>div+div{padding-left:24px;border-left:1px solid var(--line)}.settings-page{max-width:760px}.logout-btn{align-self:flex-start;min-width:200px}.trend{height:200px;gap:18px}.trend-bar{max-width:56px}.entry-list .suggestion{flex-wrap:wrap}.narrow{margin:0 auto}}.row-select{min-width:140px}.list-row>label{font-size:16px;font-weight:400}.ledger-grid{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:1fr;gap:12px}.ledger-grid>li{display:flex;min-width:0}.ledger-tile{flex:1;display:flex;align-items:center;gap:14px;padding:18px;min-height:84px;background:var(--surface);border-radius:var(--radius-lg);color:var(--ink);text-decoration:none;border:1px solid transparent}.ledger-tile:hover{border-color:var(--accent-soft)}.ledger-tile .tag{margin-left:auto}.create-tile{flex:1;display:flex;flex-direction:column;gap:12px;padding:18px;border-radius:var(--radius-lg);border:1.5px dashed var(--dash);background:transparent}.create-tile h2{font-size:16px}.preview h2{margin-bottom:6px}.preview .mini-list b{font-weight:700}@media (min-width: 1024px){.ledger-grid{grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:16px}.ledger-tile,.create-tile{min-height:170px}.ledger-tile{flex-direction:column;align-items:flex-start;justify-content:space-between;padding:22px}.ledger-tile .ledger-initial{width:48px;height:48px}.ledger-tile .tag{margin-left:0}.create-tile{padding:20px 22px}}.rate-box{display:flex;flex-direction:column;gap:8px;padding:14px;border-radius:var(--radius);background:var(--ground)}.converted{font-weight:700;color:var(--accent-ink)}.orig{display:block;color:var(--muted);font-size:12px;font-weight:400}.data-table .orig{margin-top:2px}.rate-head{display:flex;justify-content:space-between;align-items:center;gap:8px}.rate-value{font-size:17px;font-weight:700;font-variant-numeric:tabular-nums}.extras{display:flex;flex-wrap:wrap;gap:8px}.chip-icon{display:inline-flex;align-items:center;gap:6px;cursor:pointer}.chip-disabled{opacity:.55;cursor:not-allowed}.receipt-picks{list-style:none;margin:0;padding:0;display:flex;gap:10px;flex-wrap:wrap}.receipt-picks li{position:relative}.receipt-picks img,.receipt-thumb img{width:72px;height:72px;object-fit:cover;border-radius:10px;display:block}.receipt-remove{position:absolute;top:-8px;right:-8px;width:28px;height:28px;border-radius:50%;border:2px solid var(--surface);background:var(--ink);color:var(--surface);font-size:16px;line-height:1;cursor:pointer}.receipt-strip ul{list-style:none;margin:4px 0 0;padding:0;display:flex;gap:12px;flex-wrap:wrap}.receipt-strip li{display:flex;flex-direction:column;align-items:center;gap:2px}.receipt-thumb{padding:0;border:1px solid var(--line);border-radius:12px;background:var(--ground);cursor:zoom-in}.receipt-loading{display:block;width:72px;height:72px}.lightbox{max-width:min(92vw,720px);max-height:90dvh;display:flex;flex-direction:column;gap:12px;padding:12px;border-radius:18px;background:var(--surface)}.lightbox img{max-width:100%;max-height:75dvh;object-fit:contain;border-radius:10px}.sheet-backdrop:has(.lightbox){align-items:center}.budget-line{display:flex;flex-direction:column;gap:6px}.budget-line+.budget-line{padding-top:12px;border-top:1px solid var(--line)}.budget-head{display:flex;justify-content:space-between;gap:12px;font-size:15px}.budget-name{font-weight:600}.budget-pct{font-weight:600;color:var(--muted)}.budget-line small{color:var(--muted);font-size:12px}.meter{height:10px;border-radius:5px;background:var(--ground);overflow:hidden}.meter span{display:block;height:100%;border-radius:5px;background:var(--accent)}.level-80 .meter span{background:#d97706}.level-80 .budget-pct{color:var(--warn-ink)}.level-100 .meter span{background:var(--danger-fill)}.level-100 .budget-pct{color:var(--danger)}.budget-rows{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}.budget-rows li{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr) auto;gap:8px;align-items:center}.alert-banner{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 16px;padding:12px 16px;border-radius:var(--radius);background:var(--warn-soft);color:var(--warn-ink);font-size:14px}.alert-banner ul{margin:0;padding-left:18px}.alert-actions{display:flex;align-items:center;gap:8px}.server-waking{position:fixed;left:50%;transform:translate(-50%);z-index:50;top:calc(env(safe-area-inset-top,0px) + 12px);display:flex;align-items:center;gap:10px;max-width:calc(100vw - 32px);padding:10px 16px;border-radius:999px;background:var(--ink);color:var(--surface);font-size:14px;box-shadow:0 6px 24px #0000002e}.server-waking .spinner{width:14px;height:14px;flex:none;border-radius:50%;border:2px solid currentColor;border-right-color:transparent;animation:spin .9s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}@media (prefers-reduced-motion: reduce){.server-waking .spinner{animation:none}}
