:root,:root[data-theme=light]{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;--bg:#f5f7fb;--surface:#fff;--surface-2:#f1f4f9;--surface-hover:#f6f8fc;--line:#e2e8f0;--line-strong:#cbd5e1;--fg:#0f172a;--muted:#475569;--faint:#64748b;--primary:#1e40af;--primary-hover:#1e3a8a;--on-primary:#fff;--primary-soft:#e8efff;--accent-text:#1d4ed8;--pos:#047857;--pos-soft:#e7f6ef;--neg:#b42318;--neg-soft:#fdecea;--warn:#92400e;--warn-soft:#fef3c7;--focus:#2563eb;--shadow:0 1px 2px #0f172a0f, 0 1px 3px #0f172a0a;--shadow-lg:0 10px 30px #0f172a1a;--bar-in:#059669;--bar-out:#e11d48}@media (prefers-color-scheme:dark){:root:not([data-theme=light]){--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;--bg:#0b1220;--surface:#111a2b;--surface-2:#162235;--surface-hover:#172438;--line:#22304a;--line-strong:#31415f;--fg:#e7ecf4;--muted:#a9b5c7;--faint:#8d9ab0;--primary:#2563eb;--primary-hover:#1d4ed8;--on-primary:#fff;--primary-soft:#172a4d;--accent-text:#8ab8ff;--pos:#34d399;--pos-soft:#0f2e25;--neg:#fb7185;--neg-soft:#3a1620;--warn:#fbbf24;--warn-soft:#3a2a0c;--focus:#60a5fa;--shadow:0 1px 2px #0006;--shadow-lg:0 10px 30px #00000080;--bar-in:#34d399;--bar-out:#fb7185}}:root[data-theme=dark]{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;--bg:#0b1220;--surface:#111a2b;--surface-2:#162235;--surface-hover:#172438;--line:#22304a;--line-strong:#31415f;--fg:#e7ecf4;--muted:#a9b5c7;--faint:#8d9ab0;--primary:#2563eb;--primary-hover:#1d4ed8;--on-primary:#fff;--primary-soft:#172a4d;--accent-text:#8ab8ff;--pos:#34d399;--pos-soft:#0f2e25;--neg:#fb7185;--neg-soft:#3a1620;--warn:#fbbf24;--warn-soft:#3a2a0c;--focus:#60a5fa;--shadow:0 1px 2px #0006;--shadow-lg:0 10px 30px #00000080;--bar-in:#34d399;--bar-out:#fb7185}:root{--font:ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;--radius:12px;--sidebar:236px;--topbar:56px;--tabbar:64px;font-family:var(--font);font-size:15px;line-height:1.5}*{box-sizing:border-box}body{background:var(--bg);color:var(--fg);-webkit-font-smoothing:antialiased;margin:0}a{color:var(--accent-text);text-decoration:none}a:hover{text-decoration:underline}h1{letter-spacing:-.01em;margin:0;font-size:1.5rem;line-height:1.25}h2{margin:0;font-size:1rem}h3{color:var(--faint);text-transform:uppercase;letter-spacing:.06em;margin:.75rem 0 .25rem;font-size:.8rem;font-weight:600}p{margin:0}:focus-visible{outline:2px solid var(--focus);outline-offset:2px}.sr-only{clip:rect(0 0 0 0);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}.num,.money{font-variant-numeric:tabular-nums;white-space:nowrap}.muted{color:var(--muted)}.faint{color:var(--faint)}.pos{color:var(--pos)}.neg{color:var(--neg)}.small{font-size:.85rem}.loading{color:var(--faint);padding:40px}.shell{grid-template-columns:var(--sidebar) 1fr;min-height:100dvh;display:grid}.sidebar{background:var(--surface);border-right:1px solid var(--line);flex-direction:column;gap:4px;height:100dvh;padding:18px 14px;display:flex;position:sticky;top:0}.brand{color:var(--fg);align-items:center;gap:10px;padding:4px 8px 18px;font-size:1.02rem;font-weight:700;display:flex}.brand:hover{text-decoration:none}.brand-mark{background:var(--primary);width:30px;height:30px;color:var(--on-primary);border-radius:9px;flex:none;place-items:center;display:grid}.nav-link{min-height:42px;color:var(--muted);border-radius:10px;align-items:center;gap:12px;padding:0 12px;font-weight:500;transition:background .15s,color .15s;display:flex}.nav-link:hover{background:var(--surface-hover);color:var(--fg);text-decoration:none}.nav-link[aria-current=page]{background:var(--primary-soft);color:var(--accent-text)}.nav-badge{background:var(--warn-soft);min-width:22px;height:22px;color:var(--warn);border-radius:999px;place-items:center;margin-left:auto;padding:0 7px;font-size:.8rem;font-weight:700;display:grid}.sidebar-foot{border-top:1px solid var(--line);flex-direction:column;gap:4px;margin-top:auto;padding-top:12px;display:flex}.sidebar-foot .who{color:var(--faint);text-overflow:ellipsis;white-space:nowrap;padding:4px 12px 8px;font-size:.8rem;overflow:hidden}button.nav-link{font:inherit;cursor:pointer;width:100%;color:var(--muted);background:0 0;border:0;justify-content:flex-start;font-weight:500}button.nav-link:hover{background:var(--surface-hover);color:var(--fg)}.main{min-width:0;padding:28px clamp(16px,3vw,40px) 48px}.content{flex-direction:column;gap:20px;max-width:1180px;margin:0 auto;display:flex}.topbar,.tabbar{display:none}.page-head{flex-wrap:wrap;justify-content:space-between;align-items:flex-end;gap:16px;display:flex}.page-head .sub{color:var(--muted);margin-top:4px}.page-head .actions{flex-wrap:wrap;gap:8px;display:flex}.back{color:var(--muted);align-items:center;gap:6px;min-height:36px;font-weight:500;display:inline-flex}.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);flex-direction:column;gap:12px;min-width:0;padding:20px;display:flex}.card-head{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;display:flex}.card-head .hint{color:var(--faint);font-size:.85rem}.card.flush{gap:0;padding:0;overflow:hidden}.card.flush>.card-head{border-bottom:1px solid var(--line);padding:16px 20px}.card.flush>.pad{padding:16px 20px}.grid-2{grid-template-columns:minmax(0,1.6fr) minmax(0,1fr);align-items:start;gap:20px;display:grid}.stack{flex-direction:column;gap:20px;display:flex}.stats{grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;display:grid}.stat{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);flex-direction:column;gap:6px;min-width:0;padding:16px 18px;display:flex}.stat-label{color:var(--muted);align-items:center;gap:8px;font-size:.85rem;font-weight:500;display:flex}.stat-icon{background:var(--surface-2);width:28px;height:28px;color:var(--muted);border-radius:8px;flex:none;place-items:center;display:grid}.stat-icon.pos{background:var(--pos-soft);color:var(--pos)}.stat-icon.neg{background:var(--neg-soft);color:var(--neg)}.stat-icon.primary{background:var(--primary-soft);color:var(--accent-text)}.stat-value{letter-spacing:-.02em;font-variant-numeric:tabular-nums;text-overflow:ellipsis;white-space:nowrap;font-size:1.6rem;font-weight:700;overflow:hidden}.stat-hint{color:var(--faint);font-size:.8rem}.list-row{border-bottom:1px solid var(--line);justify-content:space-between;align-items:center;gap:12px;min-height:48px;padding:10px 0;display:flex}.list-row:last-child{border-bottom:0}.list-row .title{color:var(--fg);font-weight:500}.list-row a.title:hover{color:var(--accent-text)}.list-row .meta{color:var(--faint);font-size:.8rem}.list-row.total{border-top:1px solid var(--line-strong);border-bottom:0;font-weight:700}.list-row.big{font-size:1.1rem}.todo{background:var(--surface-2);color:var(--fg);border-radius:10px;align-items:center;gap:12px;min-height:52px;padding:12px;font-weight:500;display:flex}.todo:hover{background:var(--surface-hover);box-shadow:inset 0 0 0 1px var(--line-strong);text-decoration:none}.todo .count{font-variant-numeric:tabular-nums;margin-left:auto;font-weight:700}.todo.attention .count{color:var(--warn)}.todo.done .count{color:var(--pos)}button,.button{background:var(--primary);min-height:40px;color:var(--on-primary);font:inherit;cursor:pointer;white-space:nowrap;border:1px solid #0000;border-radius:10px;justify-content:center;align-items:center;gap:8px;padding:0 16px;font-weight:600;text-decoration:none;transition:background .15s,border-color .15s,color .15s;display:inline-flex}button:hover,.button:hover{background:var(--primary-hover);text-decoration:none}button:disabled{opacity:.5;cursor:not-allowed}button.ghost,.button.ghost{background:var(--surface);color:var(--fg);border-color:var(--line-strong)}button.ghost:hover,.button.ghost:hover{background:var(--surface-hover)}button.danger-ghost{color:var(--neg);background:0 0;border-color:#0000}button.danger-ghost:hover{background:var(--neg-soft)}button.icon-btn,.button.icon-btn{width:36px;min-height:36px;color:var(--faint);background:0 0;border-color:#0000;padding:0}button.icon-btn:hover,.button.icon-btn:hover{background:var(--surface-2);color:var(--fg)}button.icon-btn.danger:hover{background:var(--neg-soft);color:var(--neg)}.btn-sm{border-radius:8px;padding:0 12px;font-size:.88rem;min-height:34px!important}label{color:var(--muted);flex-direction:column;gap:6px;font-size:.85rem;font-weight:500;display:flex}input,select{border:1px solid var(--line-strong);background:var(--surface);min-height:40px;color:var(--fg);font:inherit;border-radius:10px;min-width:0;padding:0 12px;font-weight:400;transition:border-color .15s,box-shadow .15s}input:focus,select:focus{border-color:var(--focus);box-shadow:0 0 0 3px color-mix(in srgb, var(--focus) 25%, transparent);outline:none}input[type=checkbox],input[type=radio]{width:18px;height:18px;min-height:0;accent-color:var(--primary);cursor:pointer;margin:0;padding:0}input[type=checkbox]:focus,input[type=radio]:focus{box-shadow:none}label.check-row{color:var(--fg);cursor:pointer;flex-direction:row;align-items:center;gap:10px;min-height:40px;font-weight:500}.hitbox{cursor:pointer;border-radius:8px;place-items:center;width:40px;height:40px;margin:-10px;display:inline-grid}.hitbox:hover{background:var(--surface-2)}.form-grid{grid-template-columns:repeat(auto-fit,minmax(190px,1fr));align-items:end;gap:14px;display:grid}.inline{flex-wrap:wrap;align-items:center;gap:10px;display:flex}.toolbar{flex-wrap:wrap;align-items:end;gap:10px;display:flex}.toolbar>label{flex:0 190px;min-width:150px}.toolbar>.grow{flex:240px}.search{flex-direction:column;display:flex;position:relative}.search svg{color:var(--faint);pointer-events:none;position:absolute;bottom:11px;left:12px}.search input{padding-left:38px}.segmented{background:var(--surface-2);border:1px solid var(--line);border-radius:10px;flex-wrap:wrap;gap:2px;padding:3px;display:inline-flex}.segmented button{min-height:34px;color:var(--muted);background:0 0;border:0;border-radius:8px;font-weight:500}.segmented button:hover{background:var(--surface);color:var(--fg)}.segmented button[aria-pressed=true]{background:var(--surface);color:var(--fg);box-shadow:var(--shadow)}.alert{border-radius:10px;align-items:flex-start;gap:10px;padding:12px 14px;font-size:.92rem;display:flex}.alert svg{flex:none;margin-top:2px}.alert.error{background:var(--neg-soft);color:var(--neg)}.alert.warn{background:var(--warn-soft);color:var(--warn)}.alert.ok{background:var(--pos-soft);color:var(--pos)}.alert a{color:inherit;font-weight:600;text-decoration:underline}.badge{background:var(--surface-2);color:var(--muted);white-space:nowrap;border-radius:999px;align-items:center;gap:4px;padding:2px 8px;font-size:.8rem;font-weight:600;display:inline-flex}.badge.ok{background:var(--pos-soft);color:var(--pos)}.badge.warn{background:var(--warn-soft);color:var(--warn)}.empty{text-align:center;color:var(--muted);flex-direction:column;align-items:center;gap:10px;padding:40px 16px;display:flex}.empty svg{color:var(--faint)}.skeleton{background:linear-gradient(90deg, var(--surface-2), var(--surface-hover), var(--surface-2));background-size:200% 100%;border-radius:6px;height:14px;animation:1.2s infinite shimmer}@keyframes shimmer{to{background-position:-200% 0}}.table-wrap{overflow-x:auto}table{border-collapse:collapse;width:100%;font-size:.92rem}thead th{background:var(--surface-2);color:var(--faint);text-transform:uppercase;letter-spacing:.05em;text-align:left;border-bottom:1px solid var(--line);white-space:nowrap;padding:10px 12px;font-size:.8rem;font-weight:600}tbody td{border-bottom:1px solid var(--line);vertical-align:middle;padding:10px 12px}tbody tr{transition:background .1s}tbody tr:hover{background:var(--surface-hover)}tbody tr:last-child td{border-bottom:0}th.num,td.num{text-align:right}td.amt{font-weight:600}.col-check{width:48px;padding-left:18px!important}.col-date{white-space:nowrap;color:var(--muted);width:116px}.col-acct{color:var(--muted);white-space:nowrap}.col-cat select{border-radius:8px;width:100%;max-width:240px;min-height:34px;font-size:.88rem}.col-cat select.uncat{border-color:color-mix(in srgb, var(--warn) 60%, var(--line-strong));color:var(--warn);font-weight:600}.col-act{text-align:right;width:56px}.desc{overflow-wrap:anywhere;font-weight:500}.desc-meta{color:var(--faint);flex-wrap:wrap;align-items:center;gap:6px;margin-top:2px;font-size:.8rem;display:flex}tr.is-selected,tr.is-selected:hover{background:var(--primary-soft)}.bulkbar{z-index:5;background:var(--fg);color:var(--bg);box-shadow:var(--shadow-lg);border-radius:12px;flex-wrap:wrap;align-items:center;gap:12px;padding:10px 14px;font-weight:600;display:flex;position:sticky;top:12px}.bulkbar select{min-height:36px}.bulkbar button.ghost{color:var(--bg);border-color:color-mix(in srgb, var(--bg) 40%, transparent);background:0 0}.table-foot{border-top:1px solid var(--line);color:var(--faint);flex-wrap:wrap;gap:16px;padding:12px 20px;font-size:.85rem;display:flex}.recon-bar{z-index:6;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow-lg);grid-template-columns:repeat(4,minmax(0,1fr)) auto;align-items:center;gap:16px;padding:14px 20px;display:grid;position:sticky;top:12px}.recon-bar .k{color:var(--faint);text-transform:uppercase;letter-spacing:.05em;font-size:.8rem;font-weight:600}.recon-bar .v{font-variant-numeric:tabular-nums;white-space:nowrap;font-size:1.15rem;font-weight:700}.recon-bar .diff.zero{color:var(--pos)}.recon-bar .diff.off{color:var(--neg)}.recon-bar .actions{justify-content:flex-end;gap:8px;display:flex}.progress{background:var(--surface-2);border-radius:999px;grid-column:1/-1;height:6px;overflow:hidden}.progress>span{background:var(--primary);height:100%;transition:width .25s;display:block}tr.clickable{cursor:pointer}tr.out-of-period td{color:var(--faint)}.steps{flex-wrap:wrap;align-items:center;gap:10px;display:flex}.step{color:var(--faint);align-items:center;gap:8px;font-size:.9rem;font-weight:500;display:flex}.step .n{background:var(--surface-2);width:26px;height:26px;color:var(--muted);border-radius:999px;place-items:center;font-size:.8rem;font-weight:700;display:grid}.step.active{color:var(--fg)}.step.active .n{background:var(--primary);color:var(--on-primary)}.step.done .n{background:var(--pos-soft);color:var(--pos)}.step-sep{background:var(--line-strong);width:28px;height:1px}.dropzone{border:2px dashed var(--line-strong);border-radius:var(--radius);background:var(--surface-2);color:var(--muted);text-align:center;cursor:pointer;flex-direction:column;justify-content:center;align-items:center;gap:8px;padding:32px 16px;font-size:.95rem;font-weight:400;transition:border-color .15s,background .15s;display:flex;position:relative}.dropzone:hover,.dropzone.over{border-color:var(--focus);background:var(--primary-soft)}.dropzone:focus-within{outline:2px solid var(--focus);outline-offset:2px}.dropzone strong{color:var(--fg)}.dropzone input{opacity:0;cursor:pointer;position:absolute;inset:0}.chart{max-width:100%;display:block;overflow:visible}.chart text{fill:var(--faint);font-size:11px;font-family:var(--font)}.chart .gridline{stroke:var(--line)}.chart .bar-in{fill:var(--bar-in)}.chart .bar-out{fill:var(--bar-out)}.legend{color:var(--muted);gap:16px;font-size:.82rem;display:flex}.legend i{vertical-align:-1px;border-radius:3px;width:10px;height:10px;margin-right:6px;display:inline-block}.share{background:var(--surface-2);border-radius:999px;height:6px;margin-top:6px;overflow:hidden}.share>span{border-radius:999px;height:100%;display:block}.pnl-line{padding:8px 0}.pnl-line .top{justify-content:space-between;gap:12px;display:flex}.auth{background:radial-gradient(1000px 420px at 50% -10%, var(--primary-soft), transparent), var(--bg);place-items:center;min-height:100dvh;padding:24px;display:grid}.auth form{width:min(400px,100%);box-shadow:var(--shadow-lg);gap:16px;padding:28px}.auth .brand{padding:0 0 4px}@media (width<=1100px){.stats{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-2{grid-template-columns:1fr}}@media (width<=900px){.shell{display:block}.sidebar{display:none}.topbar{z-index:20;height:var(--topbar);background:color-mix(in srgb, var(--surface) 94%, transparent);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);border-bottom:1px solid var(--line);align-items:center;gap:4px;padding:0 8px 0 16px;display:flex;position:sticky;top:0}.topbar .brand{margin-right:auto;padding:0}.topbar .icon-btn{width:44px;min-height:44px}.tabbar{z-index:20;height:calc(var(--tabbar) + env(safe-area-inset-bottom));padding-bottom:env(safe-area-inset-bottom);background:var(--surface);border-top:1px solid var(--line);grid-template-columns:repeat(5,1fr);display:grid;position:fixed;bottom:0;left:0;right:0}.tab{color:var(--faint);flex-direction:column;justify-content:center;align-items:center;gap:3px;min-height:48px;font-size:.8rem;font-weight:600;display:flex;position:relative}.tab:hover{color:var(--fg);text-decoration:none}.tab[aria-current=page]{color:var(--accent-text)}.tab .dot{background:var(--warn);border-radius:999px;width:8px;height:8px;position:absolute;top:10px;left:calc(50% + 7px)}.main{padding:16px 14px calc(var(--tabbar) + 28px)}h1{font-size:1.3rem}.stat-value{font-size:1.25rem}.stats{gap:10px}.stat{padding:12px 14px}.recon-bar{top:calc(var(--topbar) + 8px);grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 14px;padding:12px 14px}.recon-bar .actions{grid-column:1/-1;justify-content:stretch}.recon-bar .actions>*{flex:1}.toolbar>label,.toolbar>.grow{flex:140px;min-width:0}button,.button{min-height:44px}button.icon-btn{width:44px;min-height:44px}input,select{min-height:44px;font-size:16px}.card{padding:16px}.page-head .actions{width:100%}.page-head .actions>*{flex:1}.toolbar.foldable>label:not(.search){display:none}.toolbar.foldable.open>label{display:flex}.filters-btn{display:inline-flex!important}table.cards thead{display:none}table.cards,table.cards tbody{display:block}table.cards tbody tr{border-bottom:1px solid var(--line);grid-template-columns:32px minmax(0,1fr) auto;grid-template-areas:"check desc amt""check cat act";align-items:center;gap:8px 12px;padding:14px 16px;display:grid}table.cards tbody td{border:0;padding:0!important}table.cards td.col-check{grid-area:check;align-self:start;width:auto;padding-top:2px!important}table.cards td.col-desc{grid-area:desc}table.cards td.col-date,table.cards td.col-acct{display:none}table.cards td.col-amt{grid-area:amt;align-self:start}table.cards td.col-cat{grid-area:cat}table.cards td.col-cat select{max-width:none}table.cards td.col-act{grid-area:act;width:auto}table.cards.two-line tbody tr{grid-template-areas:"check desc amt"}table.cards.plain tbody tr{grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"desc amt""cat act"}}.m-only{display:none}.filters-btn{display:none!important}@media (width<=900px){.m-only{display:inline}.d-only{display:none!important}}@media (prefers-reduced-motion:reduce){*,:before,:after{transition:none!important;animation:none!important}}
