@font-face{font-family:Inter Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/assets/inter-latin-ext-wght-normal-DO1Apj_S.woff2) format("woff2-variations");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Inter Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/assets/inter-latin-wght-normal-Dx4kXJAl.woff2) format("woff2-variations");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}:root{--ink: #171a1f;--ink-2: #2b3038;--muted: #5f6672;--faint: #8b919c;--ground: #f4f5f7;--surface: #ffffff;--surface-2: #f8f9fa;--line: #e6e8ec;--line-strong: #d4d8de;--accent: #0e6b58;--accent-hover: #0a5a4a;--accent-ink: #0a5546;--accent-text: #0b6a56;--accent-soft: #e9f3ef;--accent-ring: rgba(14, 107, 88, .18);--pos: #0b7a50;--neg: #c2412d;--warn: #b54708;--warn-soft: #fff6ea;--warn-line: #f6d9b0;--warn-ink: #8a3a0c;--danger: #c0362c;--danger-fill: #c0362c;--danger-soft: #fdeceb;--seg: #eceef1;--disabled: #c4c8ce;--avatar-bg: #e9f3ef;--trend: #cfe5dd;--income-bg: #edf2fc;--income-ink: #2f5bb7;--dash: #cdd1d7;--radius-lg: 16px;--radius: 12px;--radius-sm: 10px;--h: 44px;--h-sm: 34px;--shadow-pop: 0 24px 48px -16px rgba(16, 24, 40, .22), 0 2px 6px rgba(16, 24, 40, .06);--font: "Inter Variable", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "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: #eceef1;--ink-2: #d5d9de;--muted: #a3a9b3;--faint: #7d838d;--ground: #111316;--surface: #1a1d21;--surface-2: #202429;--line: #2b3036;--line-strong: #3a4048;--accent: #2f9c83;--accent-hover: #3aae93;--accent-ink: #8fdcc5;--accent-text: #6fd0b4;--accent-soft: #16322b;--accent-ring: rgba(111, 208, 180, .25);--pos: #5fd3a3;--neg: #f08a76;--warn: #f0a35b;--warn-soft: #2e2416;--warn-line: #4a3820;--warn-ink: #f3c08a;--danger: #f2776b;--danger-fill: #c0392b;--danger-soft: #3b1d1a;--seg: #23272c;--disabled: #454b53;--avatar-bg: #1c3a32;--trend: #24453b;--income-bg: #1b2740;--income-ink: #9bb9ec;--dash: #3a4048;color-scheme:dark}}:root[data-theme=dark]{--ink: #eceef1;--ink-2: #d5d9de;--muted: #a3a9b3;--faint: #7d838d;--ground: #111316;--surface: #1a1d21;--surface-2: #202429;--line: #2b3036;--line-strong: #3a4048;--accent: #2f9c83;--accent-hover: #3aae93;--accent-ink: #8fdcc5;--accent-text: #6fd0b4;--accent-soft: #16322b;--accent-ring: rgba(111, 208, 180, .25);--pos: #5fd3a3;--neg: #f08a76;--warn: #f0a35b;--warn-soft: #2e2416;--warn-line: #4a3820;--warn-ink: #f3c08a;--danger: #f2776b;--danger-fill: #c0392b;--danger-soft: #3b1d1a;--seg: #23272c;--disabled: #454b53;--avatar-bg: #1c3a32;--trend: #24453b;--income-bg: #1b2740;--income-ink: #9bb9ec;--dash: #3a4048;color-scheme:dark}*,*:before,*:after{box-sizing:border-box}html,body{margin:0}body{font-family:var(--font);font-size:15px;line-height:1.5;color:var(--ink);background:var(--ground);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-variant-numeric:tabular-nums;font-feature-settings:"cv11","ss03";text-rendering:optimizeLegibility}h1,h2,h3,p{margin:0}h1{font-size:24px;line-height:1.2;font-weight:650;letter-spacing:-.02em}h2{font-size:16px;line-height:1.35;font-weight:600;letter-spacing:-.005em}h3{font-size:14px;font-weight:600}a{color:var(--accent-text);text-underline-offset:3px}button,input,select,textarea{font:inherit;color:inherit;letter-spacing:inherit}button{-webkit-tap-highlight-color:transparent}:focus-visible{outline:2px solid var(--accent);outline-offset:2px}::selection{background:var(--accent-soft)}.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:.08em}.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;background:var(--surface)}.auth-brand{display:none}.auth-main{flex:1;display:flex;flex-direction:column;padding:8px 20px calc(28px + var(--safe-bottom))}.auth-top{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:60px}.auth-top-brand{display:inline-flex;align-items:center;gap:10px;font-weight:650;font-size:17px;letter-spacing:-.01em}.auth-body{width:100%;max-width:400px;margin:28px auto 0;display:flex;flex-direction:column;gap:22px}.auth-body h1{font-size:26px}.switch-line{text-align:center;color:var(--muted);font-size:14px}.switch-line a{font-weight:600;text-decoration:none}@media (min-width: 900px){.auth{background:var(--ground)}.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:after{content:"";position:absolute;inset:auto -20% -35% auto;width:70%;aspect-ratio:1;border-radius:50%;background:radial-gradient(closest-side,rgba(255,255,255,.1),transparent);pointer-events:none}.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:18px;font-weight:650;letter-spacing:-.01em}.auth-pitch{position:relative;z-index:1;display:flex;flex-direction:column;gap:14px;max-width:500px}.auth-tagline{font-size:clamp(30px,2.8vw,44px);line-height:1.12;font-weight:700;letter-spacing:-.03em}.auth-tagline span{display:block;word-break:keep-all;overflow-wrap:break-word;text-wrap:balance}.auth-sub{font-size:16px;line-height:1.6;color:#ffffffd1;margin-bottom:24px;max-width:34em}.preview-card{background:#fff;color:#171a1f;border-radius:18px;padding:18px 20px 16px;box-shadow:0 30px 60px -20px #00000059;font-size:14px}.preview-head{display:flex;justify-content:space-between;align-items:baseline}.preview-head strong{font-size:16px;font-weight:650}.preview-head span,.preview-label{color:#5f6672;font-size:12.5px}.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 #eef0f2}.preview-card li:first-child{border-top:0}.preview-avatar{width:26px;height:26px;border-radius:50%;background:#e9f3ef;color:#0a5546;display:inline-flex;align-items:center;justify-content:center;font-size:12px;font-weight:650}.preview-name{flex:1}.preview-pos,.preview-neg{font-weight:650;font-variant-numeric:tabular-nums}.preview-pos{color:#0b7a50}.preview-neg{color:#c2412d}.preview-total{display:flex;justify-content:space-between;padding:10px 0 12px;border-top:1px solid #171a1f;font-weight:650}.preview-suggest{display:flex;justify-content:space-between;gap:12px;padding:10px 12px;border-radius:10px;background:#e9f3ef;color:#0a5546;font-size:13.5px}.auth-main{position:relative;display:flex;align-items:center;justify-content:center;padding:88px 48px 48px}.auth-top{position:absolute;top:20px;right:28px;min-height:0}.auth-top-brand{display:none}.auth-body{margin:0;width:100%;max-width:420px;gap:20px;background:var(--surface);border:1px solid var(--line);border-radius:20px;padding:36px 36px 28px;box-shadow:0 1px 2px #1018280a,0 12px 32px -12px #1018281a}.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 28px}.page{max-width:720px;margin:0 auto;display:flex;flex-direction:column;gap:14px}.tabbar{position:sticky;bottom:0;z-index:10;display:grid;grid-template-columns:repeat(5,1fr);align-items:center;padding:6px 6px calc(6px + var(--safe-bottom));background:color-mix(in srgb,var(--surface) 92%,transparent);-webkit-backdrop-filter:saturate(1.6) blur(16px);backdrop-filter:saturate(1.6) blur(16px);border-top:1px solid var(--line)}.tabbar a{touch-action:manipulation;-webkit-tap-highlight-color:transparent;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-height:50px;font-size:11px;font-weight:500;letter-spacing:.01em;color:var(--faint);text-decoration:none;border-radius:var(--radius-sm)}.tabbar a.active{color:var(--accent-text);font-weight:600}.tabbar a.tab-add{justify-self:center;width:48px;min-height:0;height:40px;border-radius:14px;background:var(--accent);color:#fff;box-shadow:0 6px 14px -6px #0e6b5899}.tabbar a.tab-add:active{transform:scale(.96)}.tabbar a.tab-add.active{color:#fff}@media (min-width: 900px){.shell{display:grid;grid-template-columns:248px minmax(0,1fr)}.tabbar{display:none}.sidebar{display:flex;flex-direction:column;gap:12px;position:sticky;top:env(safe-area-inset-top,0px);height:calc(100dvh - env(safe-area-inset-top,0px));padding:18px 12px 14px;background:var(--surface);border-right:1px solid var(--line);overflow-y:auto}.sidebar-brand{display:inline-flex;align-items:center;gap:9px;font-size:16px;font-weight:650;letter-spacing:-.01em;padding:2px 8px 6px}.ledger-switch{display:flex;align-items:center;gap:10px;padding:8px 10px 8px 8px;border-radius:12px;border:1px solid var(--line);background:var(--surface);color:var(--ink);text-decoration:none;transition:border-color .15s,background .15s}.ledger-switch:hover{border-color:var(--line-strong);background:var(--surface-2)}.ledger-switch svg{color:var(--faint);flex-shrink:0}.ledger-switch-initial{width:34px;height:34px;flex-shrink:0;border-radius:10px;background:var(--accent);color:#fff;display:inline-flex;align-items:center;justify-content:center;font-weight:650;font-size:15px}.ledger-switch-text{flex:1;min-width:0;display:flex;flex-direction:column;line-height:1.3}.ledger-switch-text strong{font-size:14px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ledger-switch-text small{color:var(--muted);font-size:12px}.sidebar-add{min-height:40px}.sidebar-nav{display:flex;flex-direction:column;gap:1px}.nav-group{font-size:12px;font-weight:500;color:var(--faint);padding:14px 10px 6px}.sidebar-nav a{display:flex;align-items:center;gap:11px;min-height:36px;padding:0 10px;color:var(--ink-2);text-decoration:none;border-radius:8px;font-size:14px;font-weight:500;transition:background .12s,color .12s}.sidebar-nav a svg{color:var(--faint);width:18px;height:18px}.sidebar-nav a:hover{background:var(--surface-2);color:var(--ink)}.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:10px;color:var(--ink);text-decoration:none;font-size:14px}.sidebar-user:hover,.sidebar-user.active{background:var(--surface-2)}.sidebar-user span{display:flex;flex-direction:column;line-height:1.3;min-width:0}.sidebar-user strong{font-weight:600}.sidebar-user small{color:var(--muted);font-size:12px}.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);font-size:15px}.fine{font-size:12.5px;color:var(--muted);line-height:1.5}.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-lg);padding:16px}.card-title{font-size:15px}.field{display:flex;flex-direction:column;gap:6px}.field label{font-size:13px;font-weight:550;color:var(--ink-2)}.field.grow{flex:1;min-width:0}.input{width:100%;min-height:var(--h);padding:0 12px;border-radius:var(--radius-sm);border:1px solid var(--line-strong);background:var(--surface);font-size:16px;transition:border-color .15s,box-shadow .15s}.input::placeholder{color:var(--faint)}.input:hover:not(:disabled):not(:focus){border-color:#bfc4cb}.input:focus{border-color:var(--accent);outline:none;box-shadow:0 0 0 3px var(--accent-ring)}.input:disabled{background:var(--surface-2);color:var(--muted)}.input[aria-invalid=true]{border-color:var(--warn)}.input[aria-invalid=true]:focus{box-shadow:0 0 0 3px #b5470826}.input-lg{min-height:52px;font-size:18px}textarea.input{padding:10px 12px;min-height:88px;resize:vertical}select.input{-webkit-appearance:none;-moz-appearance:none;appearance:none;cursor:pointer;padding-right:38px;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='%238b919c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 10l5 5 5-5'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 12px center;background-size:16px}select.input::-ms-expand{display:none}input[type=date].input{padding-right:10px}.lang-switch select{min-width:124px;min-height:38px;font-size:14px}.input-row{display:flex;gap:8px}.input-row .input{flex:1;min-width:0}.hint{font-size:12.5px;color:var(--muted);min-height:1.4em}.hint-error{color:var(--warn)}.hint-ok{color:var(--accent-ink);font-weight:600}.notice{padding:11px 14px;border-radius:var(--radius-sm);font-size:14px;border:1px solid transparent}.notice-error{background:var(--warn-soft);color:var(--warn-ink);border-color:var(--warn-line)}.notice-ok{background:var(--accent-soft);color:var(--accent-ink);border-color:color-mix(in srgb,var(--accent) 18%,transparent)}.links-row{display:flex;justify-content:space-between}.links-row a{min-height:40px;display:inline-flex;align-items:center;text-decoration:none;font-size:14px;font-weight:500}.back-link{display:inline-flex;align-items:center;gap:4px;min-height:40px;color:var(--muted);text-decoration:none;align-self:flex-start;font-size:14px;font-weight:500}.back-link:hover{color:var(--ink)}.btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:var(--h);padding:0 16px;border-radius:var(--radius);border:1px solid transparent;font-weight:600;font-size:15px;letter-spacing:-.005em;cursor:pointer;text-decoration:none;white-space:nowrap;transition:background .15s,border-color .15s,color .15s,box-shadow .15s,transform .08s}.btn:active:not(:disabled){transform:scale(.98)}.btn:disabled{cursor:not-allowed;opacity:.45}.btn-lg{min-height:50px;font-size:16px;border-radius:13px}.btn-sm{min-height:var(--h-sm);padding:0 12px;font-size:13.5px;border-radius:9px}.btn-primary{background:var(--accent);color:#fff;box-shadow:0 1px 2px #10182814,inset 0 1px #ffffff14}.btn-primary:hover:not(:disabled){background:var(--accent-hover)}.btn-outline{background:var(--surface);border-color:var(--line-strong);color:var(--ink);box-shadow:0 1px 2px #1018280a}.btn-outline:hover:not(:disabled){background:var(--surface-2);border-color:#bfc4cb}.btn-ghost{background:transparent;color:var(--accent-text);padding:0;min-height:40px;justify-content:flex-start;white-space:normal;text-align:left}.btn-ghost:hover:not(:disabled){color:var(--accent-hover)}.btn-danger{background:var(--danger-fill);color:#fff}.btn-danger:hover:not(:disabled){background:#a92e25}.btn-danger-outline{background:var(--surface);border-color:color-mix(in srgb,var(--danger) 45%,var(--line));color:var(--danger)}.btn-danger-outline:hover:not(:disabled){background:var(--danger-soft)}.danger-text{color:var(--danger)}.link-btn{min-height:32px;padding:0 6px;border:0;border-radius:6px;background:none;color:var(--accent-text);font-weight:600;cursor:pointer;font-size:13.5px}.link-btn:hover{background:var(--accent-soft)}.link-btn.danger{color:var(--danger)}.link-btn.danger:hover{background:var(--danger-soft)}.row-2{display:grid;grid-template-columns:1fr 1fr;gap:10px}.seg{display:inline-flex;gap:2px;padding:3px;background:var(--seg);border-radius:11px}.seg button{min-height:32px;padding:0 12px;border:0;border-radius:8px;background:transparent;color:var(--muted);font-size:13.5px;font-weight:500;cursor:pointer;transition:background .15s,color .15s}.seg button:hover{color:var(--ink)}.seg button[aria-pressed=true],.seg button[aria-selected=true]{background:var(--surface);color:var(--ink);font-weight:600;box-shadow:0 1px 2px #1018281a,0 0 0 .5px #1018280a}.seg-wide{display:grid;grid-template-columns:1fr 1fr}.seg-wide button{min-height:38px;font-size:14px}.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:650}.tag{display:inline-flex;align-items:center;margin-left:6px;padding:0 7px;height:20px;border-radius:6px;background:var(--seg);color:var(--muted);font-size:11.5px;font-weight:600;vertical-align:middle}.tag-ok{background:var(--accent-soft);color:var(--accent-ink)}.pinpad{display:flex;flex-direction:column;gap:20px}.pin-dots{display:flex;justify-content:center;gap:14px;padding:4px 0}.dot{width:12px;height:12px;border-radius:50%;border:1.5px solid var(--line-strong);transition:background .12s,border-color .12s}.dot.optional{opacity:.45}.dot.on{background:var(--ink);border-color:var(--ink);opacity:1}.keys{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.key{min-height:56px;border:1px solid var(--line);border-radius:14px;background:var(--surface);font-size:22px;font-weight:500;cursor:pointer;transition:background .1s}.key:hover:not(:disabled){background:var(--surface-2)}.key:active:not(:disabled){background:var(--seg)}.big-icon{width:56px;height:56px;border-radius:16px;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:6px 12px;border-radius:999px;background:var(--warn-soft);border:1px solid var(--warn-line);color:var(--warn-ink);font-weight:600;font-size:13px}.pulse{width:7px;height:7px;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:22px;font-weight:650;letter-spacing:.04em}.empty{padding:32px 20px;border-radius:var(--radius-lg);border:1px dashed var(--dash);background:var(--surface-2);text-align:center;display:flex;flex-direction:column;align-items:center;gap:6px}.empty h2{font-size:15px}.empty p{color:var(--muted);font-size:14px}.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:14px 16px;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-lg);color:var(--ink);text-decoration:none}.ledger:hover{border-color:var(--line-strong)}.ledger-initial{width:42px;height:42px;border-radius:12px;display:inline-flex;align-items:center;justify-content:center;background:var(--accent);color:#fff;font-weight:650;font-size:18px;flex-shrink:0}.ledger-text{display:flex;flex-direction:column;min-width:0}.ledger-text strong{font-size:16px;font-weight:600;letter-spacing:-.01em}.ledger-text small{color:var(--muted);font-size:13px}.create-row{display:flex;gap:10px;align-items:flex-end}.create-row .field:last-child{width:112px}.profile{display:flex;align-items:center;gap:14px}.profile-text{display:flex;flex-direction:column;gap:2px;min-width:0}.profile-text strong{font-size:19px;font-weight:650;letter-spacing:-.015em}.id-line{color:var(--muted);font-size:13.5px;display:flex;align-items:center;gap:4px;flex-wrap:wrap}.id-line b{color:var(--ink);font-weight:600}.list{padding:4px 16px}.list-title{font-size:12.5px;font-weight:500;color:var(--muted);padding:12px 0 4px}.list-row{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:52px;border-top:1px solid var(--line);font-size:15px}.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;gap:4px}.device{display:flex;flex-direction:column;gap:1px}.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:#10141a6b;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);display:flex;align-items:flex-end;justify-content:center}.sheet{width:100%;max-width:460px;background:var(--surface);border-radius:20px 20px 0 0;padding:22px 20px calc(20px + var(--safe-bottom));display:flex;flex-direction:column;gap:12px;box-shadow:var(--shadow-pop)}.sheet h2{font-size:18px;font-weight:650;letter-spacing:-.01em}.sheet p{color:var(--muted);font-size:14.5px}.sheet-icon{width:44px;height:44px;border-radius:12px;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:18px;padding:24px}}@media (prefers-reduced-motion: reduce){.pulse{animation:none}.btn,.input,.seg button{transition:none}}.narrow{max-width:480px}.label{font-size:13px;font-weight:550;color:var(--ink-2)}.text-link{font-size:13.5px;font-weight:600;text-decoration:none;min-height:32px;display:inline-flex;align-items:center}.text-link:hover{color:var(--accent-hover)}.card-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:6px}.mobile-only{display:flex}@media (min-width: 900px){.mobile-only{display:none}}.bullets{margin:0;padding-left:18px;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:26px}.summary{background:var(--surface);border:1px solid var(--line);border-radius:20px;padding:18px 18px 16px;display:flex;flex-direction:column;gap:16px}.summary-top{display:flex;justify-content:space-between;gap:16px;align-items:flex-start}.summary-top h1{font-size:20px;font-weight:650}.summary-meta{margin-top:2px;color:var(--muted);font-size:13.5px;display:flex;flex-wrap:wrap;align-items:center;gap:2px 4px}.summary-actions{display:none;gap:8px;flex-wrap:wrap;justify-content:flex-end}.summary-balance{display:flex;flex-direction:column;gap:2px}.summary-balance span{font-size:13.5px;color:var(--muted);font-weight:500}.summary-balance strong{font-size:38px;line-height:1.05;font-weight:700;letter-spacing:-.035em;white-space:nowrap}.summary-balance strong.pos{color:var(--pos)}.summary-balance strong.neg{color:var(--neg)}.summary-balance small{color:var(--muted);font-size:12.5px}.summary-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;align-items:end;margin:0;padding-top:14px;border-top:1px solid var(--line)}.summary-stats>div{min-width:0}.summary-stats dt{font-size:12px;line-height:1.3;color:var(--muted)}.summary-stats dd{margin:2px 0 0;font-size:15px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;letter-spacing:-.01em}.quick{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.quick-item{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;min-height:76px;padding:10px 6px;border-radius:14px;border:1px solid var(--line);background:var(--surface);color:var(--ink);font-weight:600;font-size:13px;text-decoration:none;text-align:center;line-height:1.2;transition:background .12s,border-color .12s}.quick-item:active{background:var(--surface-2)}.quick-icon{width:34px;height:34px;border-radius:11px;display:inline-flex;align-items:center;justify-content:center;background:var(--seg);color:var(--ink-2)}.quick-main .quick-icon{background:var(--accent);color:#fff}.link-list{flex-direction:column;padding:4px 16px}.link-list a{min-height:48px;display:flex;align-items:center;gap:12px;color:var(--ink);text-decoration:none;border-top:1px solid var(--line);font-size:15px}.link-list a:first-child{border-top:0}.link-list a svg{color:var(--faint)}.cur-switch{position:relative;display:inline-flex;align-items:center}.cur-switch select{-webkit-appearance:none;-moz-appearance:none;appearance:none;cursor:pointer;height:24px;padding:0 22px 0 8px;border-radius:7px;border:1px solid var(--line-strong);background:var(--surface);font-size:12.5px;font-weight:650;color:var(--ink);letter-spacing:.02em}.cur-switch select:hover{border-color:#bfc4cb}.cur-switch select:focus-visible{outline:none;border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-ring)}.cur-switch svg{position:absolute;right:6px;pointer-events:none;color:var(--faint)}.cur-static{font-weight:650;color:var(--ink-2)}.table-wrap{overflow-x:auto;margin-top:6px}.balance-table{width:100%;border-collapse:collapse;font-size:14.5px}.balance-table th,.balance-table td{padding:11px 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:2px 0 8px}.balance-table tbody th{font-weight:500}.balance-table .num{text-align:right;padding-left:16px}.amount{font-weight:600;white-space:nowrap;letter-spacing:-.01em}.amount.pos{color:var(--pos)}.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:11px 0;width:100%}.entry-mark{width:36px;height:36px;flex-shrink:0;border-radius:11px;display:inline-flex;align-items:center;justify-content:center;font-size:13px;font-weight:650;background:var(--accent-soft);color:var(--accent-ink)}.mark-transfer,.mark-adjustment,.mark-carry_over,.mark-conversion{background:var(--seg);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;gap:1px;text-align:left}.entry-text strong{font-weight:550;font-size:14.5px;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;border-radius:10px}.entry-button:hover .entry-text strong{color:var(--accent-ink)}.entry-detail{padding:0 0 12px 48px;display:flex;flex-direction:column;gap:8px;font-size:14px}.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 .field:first-child{width:100px;flex-shrink:0}.input-amount{font-size:22px;font-weight:650;letter-spacing:-.02em;text-align:right;min-height:52px}.amount-row select.input{min-height:52px;font-weight:600}.readout{display:flex;align-items:center;justify-content:flex-end;background:var(--surface-2)}.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:6px}.chip{min-height:var(--h-sm);padding:0 12px;border-radius:999px;border:1px solid var(--line-strong);background:var(--surface);cursor:pointer;font-size:13.5px;font-weight:500;color:var(--ink-2);transition:background .12s,border-color .12s,color .12s}.chip:hover{border-color:#bfc4cb;background:var(--surface-2)}.chip[aria-pressed=true]{background:var(--accent-soft);border-color:var(--accent);color:var(--accent-ink);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:40px}.share-list{list-style:none;margin:0;padding:0}.share-row{display:flex;align-items:center;gap:12px;min-height:52px;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:40px;font-size:15px;cursor:pointer}.share-who input{width:18px;height:18px;accent-color:var(--accent)}.share-amount{width:124px;min-height:40px;text-align:right;font-weight:600}.share-amount:disabled{background:var(--surface-2)}.share-amount.pos{color:var(--pos)}.share-amount.neg{color:var(--neg)}.sum-bar{display:flex;justify-content:space-between;gap:12px;padding:11px 14px;border-radius:var(--radius-sm);background:var(--warn-soft);border:1px solid var(--warn-line);color:var(--warn-ink);font-weight:600;font-size:14px}.sum-bar.ok{background:var(--accent-soft);border-color:color-mix(in srgb,var(--accent) 18%,transparent);color:var(--accent-ink)}.preview p{font-size:14.5px}.toolbar{display:flex;flex-direction:column;gap:10px}.input-compact{min-height:40px;width:auto;align-self:flex-start;font-size:15px}.month-nav{display:flex;align-items:center;gap:8px}.month-nav strong{min-width:7.5em;text-align:center;font-weight:600}.btn-icon{min-width:40px;min-height:40px;padding:0;font-size:18px}.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);font-size:12.5px}.figures strong{font-size:19px;font-weight:650;letter-spacing:-.02em;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:32px;letter-spacing:-.03em}.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:13.5px}.bar-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.bar-track{height:8px;border-radius:4px;background:var(--seg);overflow:hidden}.bar-fill{display:block;height:100%;border-radius:4px;background:var(--accent)}.bar-value{font-weight:600;text-align:right}.bar-value small{margin-left:8px;color:var(--muted);font-weight:400}.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:30px;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:11.5px}.trend-value{font-size:11px;color:var(--muted);white-space:nowrap;min-height:1.4em}.radio-row{display:flex;align-items:center;gap:12px;min-height:46px;flex:1;cursor:pointer}.radio-row input{width:18px;height:18px;accent-color:var(--accent)}.file-btn{cursor:pointer;position:relative}.page-header{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:12px 16px;padding:6px 2px 2px}.page-heading{min-width:0}.page-heading h1{font-size:24px}.page-sub{margin-top:4px;color:var(--muted);font-size:14px;max-width:46em;display:flex;flex-wrap:wrap;align-items:center;gap:2px 4px}.page-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px}.layout-main,.layout-2{display:flex;flex-direction:column;gap:14px}.col-main,.col-side{display:flex;flex-direction:column;gap:14px;min-width:0}section.col-main,section.col-side{gap:12px}.form-actions{margin-top:2px}.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:14.5px}.mini-list li:first-child{border-top:0}.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:550;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(--surface-2)}.data-table tr[aria-expanded=true] td{border-bottom:0}.row-detail td{background:var(--surface-2);padding:14px 16px}.row-detail .entry-detail{padding:0}.type-tag{display:inline-flex;align-items:center;height:22px;padding:0 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,.type-tag.tag-conversion{background:var(--seg);color:var(--muted)}@media (min-width: 900px){.btn{min-height:40px;font-size:14.5px;border-radius:10px}.btn-lg{min-height:48px;font-size:15.5px;border-radius:12px}.btn-sm{min-height:32px;font-size:13px;border-radius:8px}.input{min-height:40px;font-size:15px}.input-amount,.amount-row select.input{min-height:48px}.input-amount{font-size:22px}}@media (min-width: 1024px){.page{max-width:1200px;margin:0;gap:18px}.page-header{padding:0 0 4px}.page-heading h1{font-size:26px}.layout-main{display:grid;grid-template-columns:minmax(0,1fr) 340px;align-items:start;gap:18px}.layout-2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:18px}.card{padding:20px 22px}.summary{padding:24px 26px 22px;gap:20px}.summary-top h1{font-size:24px}.summary-actions{display:flex}.summary-main{display:flex;align-items:flex-end;justify-content:space-between;gap:24px}.summary-balance strong{font-size:46px}.summary-stats{grid-template-columns:repeat(3,minmax(140px,auto));gap:0;padding-top:0;border-top:0}.summary-stats>div{padding:0 0 0 22px;margin-left:22px;border-left:1px solid var(--line)}.summary-stats>div:first-child{margin-left:0;padding-left:0;border-left:0}.summary-stats dd{font-size:17px}.quick{display:none}.seg-type button{min-width:88px;min-height:34px;font-size:14px}.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:52px}.entry-list .suggestion{flex-wrap:wrap}.narrow{margin:0 auto}}.row-select{min-width:136px;min-height:38px;font-size:14.5px}.list-row>label{font-size:15px;font-weight:400;color:var(--ink)}.ledger-grid{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:1fr;gap:10px}.ledger-grid>li{display:flex;min-width:0}.ledger-tile{flex:1;display:flex;align-items:center;gap:14px;padding:16px;min-height:80px;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-lg);color:var(--ink);text-decoration:none;transition:border-color .15s,box-shadow .15s}.ledger-tile:hover{border-color:var(--line-strong);box-shadow:0 6px 18px -10px #1018282e}.ledger-tile .tag{margin-left:auto}.create-tile{flex:1;display:flex;flex-direction:column;gap:12px;padding:16px;border-radius:var(--radius-lg);border:1px dashed var(--dash);background:transparent}.create-tile h2{font-size:15px}.preview h2{margin-bottom:6px}.preview .mini-list b{font-weight:650}@media (min-width: 1024px){.ledger-grid{grid-template-columns:repeat(auto-fill,minmax(290px,1fr));gap:14px}.ledger-tile,.create-tile{min-height:164px}.ledger-tile{flex-direction:column;align-items:flex-start;justify-content:space-between;padding:20px}.ledger-tile .ledger-initial{width:44px;height:44px}.ledger-tile .tag{margin-left:0}.create-tile{padding:20px}}.rate-box{display:flex;flex-direction:column;gap:6px;padding:12px 14px;border-radius:var(--radius-sm);background:var(--surface-2);border:1px solid var(--line)}.converted{font-weight:650;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:16px;font-weight:650}.extras{display:flex;flex-wrap:wrap;gap:6px}.chip-icon{display:inline-flex;align-items:center;gap:6px;cursor:pointer}.chip-disabled{opacity:.5;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:68px;height:68px;object-fit:cover;border-radius:10px;display:block}.receipt-remove{position:absolute;top:-7px;right:-7px;width:24px;height:24px;border-radius:50%;border:2px solid var(--surface);background:var(--ink);color:var(--surface);font-size:14px;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:11px;background:var(--surface-2);cursor:zoom-in}.receipt-loading{display:block;width:68px;height:68px}.lightbox{max-width:min(92vw,720px);max-height:90dvh;display:flex;flex-direction:column;gap:12px;padding:12px;border-radius:18px;background:var(--surface);box-shadow:var(--shadow-pop)}.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:14.5px}.budget-name{font-weight:600}.budget-pct{font-weight:600;color:var(--muted);font-size:13.5px}.budget-line small{color:var(--muted);font-size:12px;display:flex;flex-wrap:wrap;justify-content:space-between;gap:2px 12px}.meter{height:6px;border-radius:3px;background:var(--seg);overflow:hidden}.meter span{display:block;height:100%;border-radius:3px;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;align-items:flex-start;gap:12px;padding:12px 12px 12px 14px;border-radius:var(--radius);background:var(--warn-soft);border:1px solid var(--warn-line);color:var(--warn-ink);font-size:13.5px}.alert-icon{flex:none;margin-top:1px;color:var(--warn)}.alert-banner ul{flex:1;min-width:0;margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:2px}.alert-banner li{font-weight:500}.alert-actions{display:flex;align-items:center;gap:4px;flex:none}.alert-actions .text-link{min-height:28px;color:var(--warn-ink);text-decoration:underline;text-underline-offset:3px}.icon-btn{width:28px;height:28px;border:0;border-radius:8px;background:transparent;color:inherit;display:inline-flex;align-items:center;justify-content:center;cursor:pointer}.icon-btn:hover{background:color-mix(in srgb,currentColor 10%,transparent)}.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:9px 16px;border-radius:999px;background:var(--ink);color:var(--surface);font-size:13.5px;font-weight:500;box-shadow:var(--shadow-pop)}.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}}
