:root{--space-1:4px;--space-2:8px;--space-3:12px;--space-4:16px;--space-5:24px;--space-6:32px;--space-7:48px;--text-xs:12px;--text-sm:14px;--text-md:16px;--text-lg:20px;--text-xl:24px;--text-2xl:30px;--radius-sm:6px;--radius:10px;--radius-lg:16px;--bg:#f6f7f9;--surface:#fff;--surface-muted:#f1f3f6;--line:#dfe3e8;--line-strong:#c5ccd5;--ink:#1b2129;--text:#2b333d;--muted:#5d6773;--subtle:#8a94a3;--brand:#1a4738;--brand-hover:#143a2d;--brand-soft:#e7f1ec;--accent:#fd8001;--accent-ink:#a35200;--accent-soft:#fff1e0;--income:#17703a;--income-soft:#e6f4ea;--expense:#b42318;--expense-soft:#fdecea;--warning:#8a5a00;--warning-soft:#fff4d6;--focus:#1a4738;--focus-ring:0 0 0 3px #1a473840;--toast-action:var(--accent);--shadow-sm:0 1px 2px #1018280f;--shadow:0 1px 3px #10182814;--shadow-lg:0 12px 32px #1018282e;--overlay:#10182873;--control-h:44px;--offline-h:0px;--content-max:1200px;--font-sans:system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;--font-mono:ui-monospace, SFMono-Regular, Menlo, monospace;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light}*{box-sizing:border-box}html,body{margin:0;padding:0}body{background:var(--bg);color:var(--text);font-family:var(--font-sans);font-size:var(--text-md);-webkit-font-smoothing:antialiased;line-height:1.5}h1,h2,h3{color:var(--ink);margin:0 0 var(--space-2);line-height:1.25}h1{font-size:var(--text-xl);font-weight:700}h2{font-size:18px;font-weight:600}h3{font-size:var(--text-md);font-weight:600}a{color:var(--brand)}:focus-visible{outline:2px solid var(--focus);outline-offset:2px}.page{max-width:640px;padding:var(--space-4);margin:0 auto}.stack{gap:var(--space-3);flex-direction:column;display:flex}.row{gap:var(--space-2);align-items:center;display:flex}.muted{color:var(--muted);font-size:var(--text-sm)}.money{font-variant-numeric:tabular-nums;color:var(--ink);white-space:nowrap;font-weight:600}.money-in{color:var(--income)}.money-out{color:var(--expense)}.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:var(--space-4);box-shadow:var(--shadow-sm)}.btn{justify-content:center;align-items:center;gap:var(--space-2);min-height:var(--control-h);padding:0 var(--space-4);border-radius:var(--radius-sm);font:inherit;cursor:pointer;border:1px solid #0000;font-weight:600;line-height:1.2;text-decoration:none;transition:background-color .15s,border-color .15s,transform 80ms;display:inline-flex}.btn:active:not(:disabled){transform:scale(.98)}.btn-primary{background:var(--brand);color:#fff}.btn-primary:hover:not(:disabled){background:var(--brand-hover)}.btn-secondary{background:var(--surface);color:var(--ink);border-color:var(--line-strong)}.btn-secondary:hover:not(:disabled){background:var(--surface-muted)}.btn-ghost{color:var(--brand);background:0 0}.btn-ghost:hover:not(:disabled){background:var(--brand-soft)}.btn-danger{background:var(--expense);color:#fff}.btn-danger:hover:not(:disabled){background:#94190f}.btn-sm{min-height:36px;padding:0 var(--space-3);font-size:var(--text-sm)}.btn-block{width:100%}.btn:disabled{opacity:.55;cursor:not-allowed}.field{gap:var(--space-1);flex-direction:column;display:flex}.field label{color:var(--ink);font-weight:600;font-size:var(--text-sm)}.input,.select,.textarea{min-height:var(--control-h);border:1px solid var(--line-strong);border-radius:var(--radius-sm);background:var(--surface);color:var(--ink);font:inherit;padding:10px 12px;transition:border-color .15s,box-shadow .15s}.input:focus-visible,.select:focus-visible,.textarea:focus-visible{border-color:var(--brand);box-shadow:var(--focus-ring)}.input[aria-invalid=true],.select[aria-invalid=true],.textarea[aria-invalid=true]{border-color:var(--expense)}input.input,select.select{height:var(--control-h);padding-block:0}.field-error{color:var(--expense);font-size:var(--text-sm)}.field-hint{color:var(--muted);font-size:var(--text-sm)}.alert{padding:var(--space-3) 14px;border-radius:var(--radius);font-size:var(--text-sm);border:1px solid #0000}.alert-error{background:var(--expense-soft);color:var(--expense);border-color:#b4231833}.alert-info{background:var(--brand-soft);color:var(--brand);border-color:#1a473826}.empty{align-items:center;gap:var(--space-2);text-align:center;padding:var(--space-6) var(--space-4);color:var(--muted);background:var(--surface);border:1px dashed var(--line-strong);border-radius:var(--radius);flex-direction:column;display:flex}.empty p{margin:0}.empty-icon{color:var(--subtle)}.empty-title{color:var(--ink);font-weight:600;font-size:var(--text-md)}.empty-body{max-width:36ch;font-size:var(--text-sm)}.empty-art{width:96px;height:96px;margin-bottom:var(--space-2)}.empty-actions{gap:var(--space-2);width:100%;max-width:320px;margin-top:var(--space-3);flex-direction:column;display:flex}.empty-good .empty-title{color:var(--brand)}@media (min-width:768px){.empty-art{width:128px;height:128px}.empty-actions{flex-direction:row;justify-content:center;width:auto;max-width:none}}.offline-banner{z-index:50;background:var(--accent-ink);color:#fff;padding:var(--space-2) var(--space-4);text-align:center;font-size:var(--text-sm);position:sticky;top:0}.visually-hidden{clip:rect(0, 0, 0, 0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.chips{gap:var(--space-2);flex-wrap:wrap;display:flex}.chip{min-height:var(--control-h);border:1px solid var(--line-strong);background:var(--surface);color:var(--ink);font:inherit;font-size:var(--text-sm);cursor:pointer;border-radius:999px;padding:0 14px;font-weight:500;transition:background-color .15s,border-color .15s,transform 80ms}.chip:hover{background:var(--surface-muted)}.chip:active{transform:scale(.97)}.chip[aria-pressed=true]{background:var(--brand);border-color:var(--brand);color:#fff;font-weight:600}.tabs{gap:var(--space-1);background:var(--surface-muted);border:1px solid var(--line);padding:var(--space-1);border-radius:var(--radius);grid-auto-columns:1fr;grid-auto-flow:column;display:grid}.tab{min-height:var(--control-h);border-radius:var(--radius-sm);font:inherit;color:var(--muted);cursor:pointer;background:0 0;border:0;font-weight:600}.tab[aria-selected=true]{background:var(--surface);color:var(--ink);box-shadow:var(--shadow-sm)}.tab:disabled{opacity:.55;cursor:not-allowed}a.tab{text-align:center;padding:var(--space-1);justify-content:center;align-items:center;line-height:1.2;text-decoration:none;display:flex}.tab[aria-current=page]{background:var(--surface);color:var(--ink);box-shadow:var(--shadow-sm)}.timeline{padding:0 0 0 var(--space-4);border-left:2px solid var(--line-strong);gap:var(--space-2);flex-direction:column;margin:0;list-style:none;display:flex}.timeline li{position:relative}.timeline li:before{content:"";left:calc(-1 * var(--space-4) - 6px);background:var(--brand);border-radius:50%;width:10px;height:10px;position:absolute;top:.45em}.amount-display{width:100%;min-width:0;color:var(--ink);text-align:center;font-variant-numeric:tabular-nums;padding:var(--space-4) var(--space-3);border-radius:var(--radius);background:var(--surface-muted);border:1px solid var(--line);font-family:inherit;font-size:2.25rem;font-weight:800;display:block}.amount-display:focus-visible{outline:2px solid var(--brand);outline-offset:2px}.keypad{gap:var(--space-2);grid-template-columns:repeat(3,1fr);display:grid}.key{border-radius:var(--radius);border:1px solid var(--line);background:var(--surface);min-height:56px;color:var(--ink);cursor:pointer;box-shadow:var(--shadow-sm);font-size:1.35rem;font-weight:700}.key:hover{background:var(--surface-muted)}.key:active{background:var(--brand-soft);transform:scale(.96)}.page-header{justify-content:space-between;align-items:center;gap:var(--space-3);flex-wrap:wrap;display:flex}.page-header h1{margin:0}.page-actions{gap:var(--space-2);flex-wrap:wrap;flex:100%;display:flex}.page-actions>*{flex:100%}.stat-grid{gap:var(--space-3);grid-template-columns:repeat(2,minmax(0,1fr));display:grid}.stat-grid>:first-child{grid-column:1/-1}.stat{gap:var(--space-1);flex-direction:column;min-width:0;display:flex;container-type:inline-size}.stat-label{color:var(--muted);font-size:var(--text-sm);font-weight:600}.stat-value{font-size:var(--text-xl);font-variant-numeric:tabular-nums;overflow-wrap:anywhere;font-weight:700}.stat .stat-value{font-size:clamp(.875rem, 11cqi, var(--text-xl));white-space:nowrap;overflow-wrap:normal}.stat-mode{max-width:100%;min-height:32px;padding:2px var(--space-2);border:1px solid var(--line-strong);border-radius:var(--radius-sm);background:var(--surface);color:var(--muted);font:inherit;font-size:var(--text-xs);align-self:flex-start;font-weight:600}.stat-mode:focus-visible{border-color:var(--brand);box-shadow:var(--focus-ring);outline:none}.grid-2{gap:var(--space-3);grid-template-columns:minmax(0,1fr);display:grid}.desk-split,.dash-toolbar,.hub-actions{gap:var(--space-3);flex-direction:column;display:flex}.dash-split,.detail-layout,.plan-grid{gap:var(--space-3);grid-template-columns:minmax(0,1fr);display:grid}.dash-split>*,.detail-layout>*{min-width:0}@media (min-width:600px){.grid-2{grid-template-columns:repeat(2,minmax(0,1fr))}.page-actions,.page-actions>*{flex:none}}@media (prefers-reduced-motion:reduce){.btn,.chip,.key{transition:none}.btn:active:not(:disabled),.chip:active,.key:active{transform:none}}.toast-region{left:0;right:0;bottom:calc(84px + env(safe-area-inset-bottom));z-index:50;pointer-events:none;flex-direction:column;align-items:center;gap:8px;display:flex;position:fixed}.toast{pointer-events:auto;background:var(--ink);color:var(--bg);max-width:calc(100% - 32px);box-shadow:var(--shadow);border-radius:12px;align-items:center;gap:12px;padding:12px 16px;display:flex}.toast button{min-height:44px;color:var(--toast-action);font:inherit;cursor:pointer;background:0 0;border:0;padding:0 8px;font-weight:700}.shell{min-height:100dvh;padding-bottom:calc(68px + env(safe-area-inset-bottom))}.skip-link{top:var(--space-2);left:var(--space-2);z-index:60;padding:var(--space-2) var(--space-3);border-radius:var(--radius-sm);background:var(--surface);color:var(--brand);font-weight:600;position:absolute;transform:translateY(-200%)}.skip-link:focus{box-shadow:var(--shadow-lg);transform:none}.shell-header{top:var(--offline-h,0px);z-index:30;align-items:center;gap:var(--space-2);min-height:52px;padding:var(--space-1) var(--space-3);background:var(--surface);border-bottom:1px solid var(--line);display:flex;position:sticky}.shell-brand{align-items:center;gap:var(--space-2);color:var(--ink);font-weight:700;text-decoration:none;display:none}.brand-mark{border-radius:var(--radius-sm);flex:none;width:28px;height:28px;display:block}.scope-switcher{align-items:center;gap:var(--space-2);min-width:0;min-height:var(--control-h);padding:0 var(--space-3);border:1px solid var(--line-strong);border-radius:var(--radius-sm);background:var(--surface);color:var(--ink);flex:auto;font-weight:600;text-decoration:none;display:inline-flex}.scope-switcher:hover{background:var(--surface-muted)}.scope-switcher svg{color:var(--muted);flex:none}.scope-switcher-text{white-space:nowrap;text-overflow:ellipsis;flex:1;min-width:0;overflow:hidden}.shell-spacer{flex:1;display:none}.account-link{align-items:center;gap:var(--space-2);min-height:var(--control-h);color:var(--muted);flex:none;text-decoration:none;display:inline-flex}.account-avatar{background:var(--brand-soft);width:44px;height:44px;color:var(--brand);border-radius:999px;justify-content:center;align-items:center;font-weight:700;display:inline-flex}.notification-bell{width:44px;height:44px;color:var(--muted);border-radius:999px;flex:none;justify-content:center;align-items:center;display:inline-flex;position:relative}.notification-bell:hover,.notification-bell:focus-visible{background:var(--brand-soft);color:var(--brand)}.notification-badge{background:var(--expense);min-width:18px;color:var(--surface);font-size:var(--text-xs);text-align:center;border-radius:999px;padding:0 5px;font-weight:700;line-height:18px;position:absolute;top:4px;right:2px}.notification-list{gap:var(--space-2);margin:0;padding:0;list-style:none;display:grid}.notification-item{gap:var(--space-1);width:100%;min-height:44px;padding:var(--space-3);border:1px solid var(--line);border-radius:var(--radius);background:var(--surface);text-align:left;font:inherit;color:inherit;cursor:pointer;display:grid}.notification-item.is-unread{border-color:var(--brand);background:var(--brand-soft)}.notification-item .notification-title{font-weight:600}.account-name{display:none}.shell-main{min-width:0}.shell-main:focus{outline:none}.bottom-nav{z-index:40;background:var(--surface);border-top:1px solid var(--line);padding:0 var(--space-1) env(safe-area-inset-bottom);display:grid;position:fixed;bottom:0;left:0;right:0}.bottom-nav a{min-height:60px;font-size:var(--text-xs);color:var(--muted);flex-direction:column;justify-content:center;align-items:center;gap:2px;font-weight:600;text-decoration:none;display:flex}.bottom-nav a[aria-current=page]{color:var(--brand)}.bottom-nav .plus{background:var(--accent);width:56px;height:56px;color:var(--ink);box-shadow:var(--shadow-lg);cursor:pointer;border:0;border-radius:50%;justify-content:center;place-self:center;align-items:center;margin-top:-20px;display:inline-flex}.bottom-nav .plus:disabled{opacity:.5;cursor:not-allowed}.sidebar{display:none}.sidebar-group{flex-direction:column;gap:2px;display:flex}.sidebar-group-title{padding:0 var(--space-3) var(--space-1);font-size:var(--text-xs);letter-spacing:.03em;text-transform:uppercase;color:var(--muted);margin:0;font-weight:600}.nav-disabled{color:var(--muted);cursor:not-allowed;padding:10px 12px;display:block}.sheet-backdrop{background:var(--overlay);z-index:40;position:fixed;inset:0}.action-sheet{z-index:41;padding:16px 16px calc(16px + env(safe-area-inset-bottom));background:var(--surface);border-radius:var(--radius-lg) var(--radius-lg) 0 0;box-shadow:var(--shadow-lg);max-width:560px;margin:0 auto;position:fixed;bottom:0;left:0;right:0}.sheet-handle{width:40px;height:5px;margin:0 auto var(--space-3);background:var(--line-strong);border-radius:999px}.sheet-grid-cash{gap:var(--space-2);grid-template-columns:repeat(3,minmax(0,1fr));display:grid}.sheet-action-owner{min-height:72px;padding:var(--space-3) var(--space-2);border-color:var(--line);background:var(--surface);color:var(--text);font-size:var(--text-sm);flex-direction:column}.sheet-action-owner:hover{border-color:currentColor}.sheet-grid-docs{gap:var(--space-2);grid-template-columns:repeat(2,minmax(0,1fr));display:grid}.sheet-action-income,.sheet-action-expense,.sheet-action-transfer{min-height:72px;padding:var(--space-3) var(--space-2);font-size:var(--text-sm);border-color:#0000;flex-direction:column}.sheet-action-income{background:var(--income-soft);color:var(--income)}.sheet-action-expense{background:var(--expense-soft);color:var(--expense)}.sheet-action-transfer{background:var(--brand-soft);color:var(--brand)}.sheet-action-income:hover,.sheet-action-expense:hover,.sheet-action-transfer:hover{border-color:currentColor}.sheet-action-doc{justify-content:flex-start}@media (max-width:420px){.sheet-grid-docs{grid-template-columns:minmax(0,1fr)}}.org-logo{border-radius:12px;max-width:120px}.chart-axis{justify-content:space-between;gap:var(--space-2);font-size:var(--text-xs);color:var(--muted);font-variant-numeric:tabular-nums;display:flex}.chart-legend{color:var(--muted);gap:16px;margin:0;padding:0;font-size:.9rem;list-style:none}.chart-legend li{align-items:center;gap:6px;display:flex}.chart-swatch{border-radius:3px;width:12px;height:12px;display:inline-block}table td.money,table th.num{white-space:nowrap;min-width:8.5rem;padding-left:12px}.journal-amounts{flex-wrap:wrap}.journal-amounts .input{flex:8rem;min-width:0}.pre-wrap{white-space:pre-wrap}.invoice-paper{border-top:4px solid var(--brand);padding:var(--space-5);flex-direction:column;gap:12px;display:flex;position:relative;overflow:hidden}.invoice-head{align-items:flex-start;gap:12px;display:flex}.invoice-meta{grid-template-columns:max-content 1fr;gap:4px 12px;margin:0;display:grid}.invoice-meta dt,.invoice-totals dt{color:var(--muted)}.invoice-meta dd,.invoice-totals dd{margin:0}.invoice-lines{border-collapse:collapse;width:100%}.invoice-lines-scroll{max-width:100%;overflow-x:auto}@media (min-width:600px){.invoice-paper .invoice-lines{table-layout:fixed;font-size:var(--text-sm)}.invoice-paper .invoice-lines td.money,.invoice-paper .invoice-lines th.num{min-width:0;padding-left:8px}.invoice-paper .invoice-lines th{text-align:left;border-bottom:1px solid var(--line-strong);padding:6px 0}.invoice-paper .invoice-lines th.num{text-align:right}.invoice-paper .invoice-lines td{vertical-align:top;overflow-wrap:anywhere;padding:6px 0}}.page-invoice{max-width:820px}.invoice-bill-to{flex-direction:column;gap:2px;display:flex}@media print{.no-print{display:none!important}body{background:#fff}.page-invoice{max-width:none;padding:0}.invoice-paper{box-shadow:none;border:0}}.invoice-totals{gap:4px;margin:0;display:grid}.invoice-totals>div{justify-content:space-between;gap:12px;display:flex}.invoice-totals>div.strong{font-weight:700}.invoice-pay h2,.invoice-pay p{margin:0}.invoice-pay-due{justify-content:space-between;gap:12px;display:flex}.select-all{-webkit-user-select:all;user-select:all}.pay-amount{font-size:var(--text-2xl);font-weight:700}.pay-copy-row{align-items:center;gap:var(--space-2);flex-wrap:wrap;display:flex}.invoice-qris{width:min(260px,100%)}.invoice-stamp{opacity:.14;pointer-events:none;font-size:3rem;font-weight:800;position:absolute;top:40%;left:50%;transform:translate(-50%,-50%)rotate(-25deg)}.invoice-stamp-paid{color:var(--income)}.invoice-stamp-void{color:var(--expense)}.invoice-stamp-returned{color:var(--muted)}.invoice-returns h2{font-size:var(--text-sm);color:var(--muted);margin:0}.invoice-returns ul{margin:0;padding:0;list-style:none}.invoice-returns li{font-size:var(--text-sm);justify-content:space-between;gap:12px;display:flex}.doc-card{color:var(--ink);justify-content:space-between;align-items:flex-start;gap:12px;text-decoration:none;display:flex}.doc-card-main,.doc-card-side{flex-direction:column;gap:4px;min-width:0;display:flex}.doc-card-side{text-align:right;align-items:flex-end}.badge{align-items:center;gap:var(--space-1);padding:1px var(--space-2);font-size:var(--text-xs);white-space:nowrap;background:var(--brand-soft);color:var(--brand);border-radius:999px;font-weight:600;line-height:18px;display:inline-flex}.badge-paid{background:var(--income-soft);color:var(--income)}.badge-open{background:var(--accent-soft);color:var(--accent-ink)}.badge-overdue{background:var(--expense-soft);color:var(--expense)}.badge-draft,.badge-void{background:var(--surface-muted);color:var(--muted)}.pick-list{gap:4px;margin:0;padding:0;list-style:none;display:grid}.pick-item{border:1px solid var(--line);background:var(--surface);width:100%;color:var(--ink);font:inherit;text-align:left;cursor:pointer;border-radius:10px;justify-content:space-between;gap:8px;padding:10px 12px;display:flex}.picked{flex-wrap:wrap;justify-content:space-between}.qty-stepper{grid-template-columns:44px minmax(64px,1fr) 44px auto;align-items:center;gap:8px;display:grid}.qty-stepper .input{text-align:center}.sticky-total{bottom:calc(76px + env(safe-area-inset-bottom));z-index:5;box-shadow:var(--shadow-lg);position:sticky}.report-table{border-collapse:collapse;width:100%}.tx-main{align-items:center;gap:var(--space-3);min-width:0;display:flex}.tx-title{color:var(--ink);font-weight:600}.tx-icon{border-radius:var(--radius);background:var(--surface-muted);width:36px;height:36px;color:var(--muted);flex-shrink:0;justify-content:center;align-items:center;display:inline-flex}.tx-icon-in{background:var(--income-soft);color:var(--income)}.tx-icon-out{background:var(--expense-soft);color:var(--expense)}.nav-icon{flex-shrink:0}@media (min-width:600px) and (max-width:1023px){.report-scroll{overflow-x:auto}}@media (max-width:599px){.table-cards thead{display:none}.table-cards,.table-cards tbody,.table-cards tfoot,.table-cards tr,.table-cards td{width:100%;display:block}.table-cards tr{border-bottom:1px solid var(--line);padding:8px 0}.table-cards td{justify-content:space-between;gap:12px;min-width:0;padding:2px 0;display:flex;text-align:right!important}.table-cards td:empty{display:none}.table-cards td[data-label]:before{content:attr(data-label);color:var(--muted);text-align:left}.doc-card{flex-direction:column}.doc-card-side{text-align:left;align-items:flex-start}}@media (min-width:1024px){.page-wide{max-width:960px}}@media (min-width:960px){.stat-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.stat-grid>:first-child{grid-column:auto}.shell{grid-template-rows:auto 1fr;grid-template-columns:232px minmax(0,1fr);padding-bottom:0;display:grid}.shell-header{gap:var(--space-3);min-height:56px;padding:var(--space-2) var(--space-5);grid-area:1/1/auto/-1}.shell-brand{display:inline-flex}.scope-switcher{flex:0 auto;max-width:420px;min-height:36px}.shell-spacer{display:block}.account-avatar{width:32px;height:32px;font-size:var(--text-sm)}.account-name{display:inline}.bottom-nav{display:none}.sidebar{top:calc(56px + var(--offline-h,0px));gap:var(--space-4);height:calc(100vh - 56px - var(--offline-h,0px));padding:var(--space-4) var(--space-2);background:var(--surface);border-right:1px solid var(--line);flex-direction:column;grid-area:2/1;display:flex;position:sticky;overflow-y:auto}.sidebar-group a{align-items:center;gap:var(--space-2);padding:7px var(--space-3);border-radius:var(--radius-sm);color:var(--ink);text-decoration:none;display:flex}.sidebar-group a:hover{background:var(--surface-muted)}.sidebar-group a svg{color:var(--muted)}.sidebar-group a[aria-current=page]{background:var(--brand-soft);color:var(--brand);font-weight:600}.sidebar-group a[aria-current=page] svg{color:var(--brand)}.shell-main{grid-area:2/2}.shell-main .page{padding:var(--space-5);margin-left:0}.mobile-only{display:none}.toast-region{bottom:24px}.sticky-total{bottom:0}}@media (min-width:1024px){.shell-main .page{max-width:1280px;margin-left:max(0px,50% - 640px)}.shell-main .page-narrow{max-width:720px}.shell-main .page-statement{max-width:960px}.desk-split{flex-direction:row;align-items:flex-start}.desk-split>*{flex:1 1 0;min-width:0}.dash-toolbar{flex-flow:wrap;justify-content:space-between;align-items:flex-end}.dash-toolbar>.field{width:280px}.detail-layout{grid-template-columns:minmax(0,1fr) minmax(300px,360px);align-items:start;display:grid}.detail-side{grid-area:1/2}.detail-main{grid-area:1/1}.plan-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr))}.plan-card{flex-direction:column;display:flex}.plan-card-action{margin-top:auto}.plan-confirm{max-width:720px}.shell-main .menu-list{grid-template-columns:repeat(3,minmax(0,1fr));display:grid}.menu-list a{border-right:1px solid var(--line)}.menu-list a:nth-child(3n){border-right:0}.menu-group-title+.menu-list a:nth-child(-n+3){border-top:0}.hub-actions{flex-direction:row}.hub-actions>.btn{width:auto}}@media (min-width:1280px){.dash-split{grid-template-columns:minmax(0,2fr) minmax(0,1fr);align-items:start}.shell-main .report-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}.hpp-value{font-size:var(--text-lg);font-weight:700}.hpp-meter{height:8px;margin-top:var(--space-1);background:var(--surface-muted);border-radius:999px;position:relative;overflow:hidden}.hpp-meter-fill{background:var(--brand);border-radius:999px;height:100%}.hpp-meter-fill-ok{background:var(--income)}.hpp-meter-fill-over{background:var(--expense)}.hpp-meter-target{background:var(--ink);width:2px;position:absolute;top:0;bottom:0}@media (min-width:1280px){.page-xl{max-width:1040px}}.filter-card{gap:var(--space-3);flex-direction:column;display:flex}.filter-card:empty{display:none}@media (max-width:599px){.filter-card .chips{margin-inline:calc(-1 * var(--space-4));padding:3px var(--space-4);scrollbar-width:none;flex-wrap:nowrap;overflow-x:auto}.filter-card .chip{flex:none}}@media (min-width:600px){.shell-main .invoice-lines th{padding:var(--space-2);font-size:var(--text-xs);letter-spacing:.02em;text-transform:uppercase;color:var(--muted);border-bottom:1px solid var(--line-strong);font-weight:600}.shell-main .invoice-lines th.num{text-align:right}.shell-main .invoice-lines td{padding:var(--space-2);border-bottom:1px solid var(--line);vertical-align:top}}.filter-grid{gap:var(--space-2);grid-template-columns:repeat(auto-fit,minmax(min(100%,180px),1fr));display:grid}.search-field{position:relative}.search-field svg{color:var(--muted);pointer-events:none;position:absolute;top:50%;left:12px;transform:translateY(-50%)}.search-field .input{width:100%;padding-left:40px}.tx-day{margin:var(--space-2) 0 0;font-size:var(--text-xs);letter-spacing:.03em;text-transform:uppercase;color:var(--muted);font-weight:600}.tx-link{text-decoration:none}.report-group-title{margin:var(--space-2) 0 0;font-size:var(--text-xs);letter-spacing:.03em;text-transform:uppercase;color:var(--muted);font-weight:600}.report-grid{gap:var(--space-3);grid-template-columns:minmax(0,1fr);display:grid}@media (min-width:640px){.report-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}.report-card{align-items:center;gap:var(--space-3);color:var(--ink);text-decoration:none;display:flex}.report-card:hover{border-color:var(--brand)}.report-card-icon{border-radius:var(--radius);background:var(--brand-soft);width:40px;height:40px;color:var(--brand);flex:none;justify-content:center;align-items:center;display:inline-flex}.report-card-text{flex-direction:column;flex:1;gap:2px;min-width:0;display:flex}.report-card-chevron{color:var(--muted);flex:none}.report-memo{margin-top:var(--space-2);color:var(--muted);font-style:italic}.report-memo-row{justify-content:space-between;gap:var(--space-2)}.report-memo-row .money{white-space:nowrap;color:inherit}.report-memo-hint{margin:var(--space-1) 0 0;font-size:var(--text-xs)}.report-total-card{background:var(--brand-soft);border-color:#1a473833;justify-content:space-between;font-weight:700}.report-table th{padding:var(--space-2) var(--space-3);font-size:var(--text-xs);letter-spacing:.02em;text-transform:uppercase;text-align:left;color:var(--muted);background:var(--surface-muted);white-space:nowrap;font-weight:600}.report-table td{padding:var(--space-2) var(--space-3);border-top:1px solid var(--line)}.catat-mode-income .tab[aria-selected=true]{background:var(--income);color:#fff}.catat-mode-income .amount-display{background:var(--income-soft);color:var(--income);border-color:#17703a40}.catat-mode-expense .tab[aria-selected=true]{background:var(--expense);color:#fff}.catat-mode-expense .amount-display{background:var(--expense-soft);color:var(--expense);border-color:#b4231840}.catat-mode-transfer .tab[aria-selected=true]{background:var(--brand);color:#fff}.catat-mode-transfer .amount-display{background:var(--brand-soft);color:var(--brand);border-color:#1a473840}.form-grid-2col{gap:var(--space-3);grid-template-columns:minmax(0,1fr);display:grid}@media (min-width:480px){.form-grid-2col{grid-template-columns:repeat(2,minmax(0,1fr))}}details.accordion-card{padding:var(--space-3) var(--space-4);background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow-sm)}details.accordion-card>summary{justify-content:space-between;align-items:center;gap:var(--space-2);min-height:var(--control-h);color:var(--ink);cursor:pointer;font-weight:600;list-style:none;display:flex}details.accordion-card>summary::-webkit-details-marker{display:none}details.accordion-card>summary:after{content:"▾";content:"▾" / "";color:var(--muted)}details.accordion-card[open]>summary:after{content:"▴";content:"▴" / ""}.invoice-pay{background:var(--surface-muted);border:1px solid var(--line);border-radius:var(--radius);padding:14px}.account-code{font-family:var(--font-mono);font-size:var(--text-sm);color:var(--ink);background:var(--surface-muted);border:1px solid var(--line);border-radius:var(--radius-sm);padding:2px 7px;font-weight:600}.coa-name{color:var(--ink);font-weight:600}.kazpos-stock-ok{color:var(--income)}.kazpos-stock-warn{color:var(--warning)}.kazpos-stock-error{color:var(--expense)}.kazpos-stock-pending{color:var(--muted)}.wizard-progress{background:var(--surface-muted);border-radius:999px;height:8px;overflow:hidden}.wizard-progress-bar{background:var(--brand);border-radius:999px;height:100%;display:block}.login.wizard{padding-top:var(--space-7);align-content:start}.wizard-head,.login-card.wizard-card{width:min(480px,100vw - 32px)}.wizard-head{gap:var(--space-2);flex-direction:column;display:flex}.wizard-step{margin:var(--space-2) 0 0}.wizard-check{min-height:var(--control-h);align-items:flex-start}.wizard-check input{width:20px;height:20px;accent-color:var(--brand);flex:none;margin:2px 0 0}.accordion-body{margin-top:var(--space-3)}.org-pick-list{gap:var(--space-2);flex-direction:column;display:flex}.org-pick-card{align-items:center;gap:var(--space-3);width:100%;padding:var(--space-3) 40px var(--space-3) var(--space-3);box-shadow:none;text-align:left;font:inherit;color:var(--ink);cursor:pointer;display:flex;position:relative}.org-pick-card:hover{border-color:var(--brand);background:var(--surface-muted)}.org-pick-card:after{content:"›";content:"›" / "";top:50%;right:var(--space-4);color:var(--muted);font-size:1.25rem;position:absolute;transform:translateY(-50%)}.org-pick-icon{border-radius:var(--radius-sm);background:var(--brand-soft);width:36px;height:36px;color:var(--brand);flex:none;justify-content:center;align-items:center;display:inline-flex}.org-pick-text{flex-direction:column;gap:2px;min-width:0;display:flex}.org-pick-name{align-items:center;gap:var(--space-2);flex-wrap:wrap;display:flex}.retur-source{color:var(--ink);margin:0}.login{place-content:center;justify-items:center;gap:var(--space-4);min-height:100dvh;padding:var(--space-5) var(--space-4);display:grid}.login-card{width:min(400px,100vw - 32px);padding:var(--space-5)}.login-brand{align-items:center;gap:var(--space-3);display:flex}.login-brand .brand-mark{width:40px;height:40px}.login-wordmark{font-size:var(--text-sm);color:var(--brand);margin:0;font-weight:700}.login-title{font-size:var(--text-lg);margin:0}.login-card .btn-primary{width:100%}.login-back{color:var(--muted);font-size:var(--text-sm)}.subscription-banner{padding:10px 16px;font-size:.95rem}.subscription-banner a{color:inherit;font-weight:700}.subscription-banner-warning{color:var(--accent-ink);background:#fff4e0}.subscription-banner-danger{background:var(--expense-soft);color:var(--expense)}.usage-list{gap:12px;margin:0;padding:0;list-style:none;display:grid}.usage-list meter{width:100%;height:8px}.usage-reached{color:var(--expense);font-weight:600}.dialog-backdrop{z-index:100;background:#00000073;justify-content:center;align-items:center;padding:16px;display:flex;position:fixed;inset:0}.dialog-backdrop>.card{width:100%;max-width:420px}.pairing-code{letter-spacing:.08em;text-align:center;color:var(--ink);font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:1.75rem;font-weight:700;display:block}.kazpos-focus{outline:2px solid var(--brand);outline-offset:4px;scroll-margin-top:calc(72px + var(--offline-h,0px));border-radius:8px}.profile-card{align-items:center;gap:var(--space-3);display:flex}.profile-avatar{background:var(--brand-soft);width:44px;height:44px;color:var(--brand);border-radius:999px;flex:none;justify-content:center;align-items:center;font-weight:700;display:inline-flex}.menu-group{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow-sm);overflow:hidden}.menu-group>.alert{margin:0 var(--space-4) var(--space-3)}.menu-group-title{padding:var(--space-3) var(--space-4) var(--space-1);font-size:var(--text-xs);letter-spacing:.03em;text-transform:uppercase;color:var(--muted);margin:0;font-weight:600}.menu-list{flex-direction:column;display:flex}.menu-list a{align-items:center;gap:var(--space-3);min-height:48px;padding:0 var(--space-4);border-top:1px solid var(--line);color:var(--ink);text-decoration:none;display:flex}.menu-group-title+.menu-list a:first-child{border-top:0}.menu-list a:hover{background:var(--surface-muted)}.menu-list a:focus-visible{outline-offset:-2px}.menu-list a svg{color:var(--muted);flex:none}.menu-list a.money-out,.menu-list a.money-out svg{color:var(--expense)}.menu-label{flex:1;min-width:0}.menu-switch{justify-content:space-between;align-items:center;gap:var(--space-3);padding:var(--space-3) var(--space-4);display:flex}.email-dialog{z-index:60;background:var(--surface);align-content:start;gap:16px;padding:16px;display:grid;position:fixed;inset:0;overflow-y:auto}.email-dialog-actions{background:var(--surface);justify-content:flex-end;gap:8px;padding:12px 0;display:flex;position:sticky;bottom:0}.email-preview{display:none}@media (min-width:768px){.email-dialog{border-radius:var(--radius);width:min(560px,100vw - 32px);max-height:88vh;inset:6vh auto auto 50%;transform:translate(-50%);box-shadow:0 12px 40px #0003}}@media (min-width:1100px){.email-dialog{grid-template-columns:560px 1fr;width:1000px}.email-preview{border-left:1px solid var(--line);padding-left:16px;display:block}}.reminders-table{display:none}@media (min-width:1024px){.reminders-cards{display:none}.reminders-table{display:table}}@media (max-width:959px){.desktop-only{display:none}}.card-selected{border-color:var(--brand)}.amount-hero{margin:0;font-size:1.5rem;font-weight:700}.diff{margin:0;font-weight:600}.diff-danger{color:var(--expense)}.diff-success{color:var(--income)}.diff-neutral{color:var(--muted)}.denomination-grid{gap:var(--space-2);grid-template-columns:repeat(2,minmax(0,1fr));display:grid}.denomination-cell{gap:var(--space-1);flex-direction:column;display:flex}@media (min-width:1024px){.denomination-grid{grid-template-columns:repeat(5,minmax(0,1fr))}}.checklist{gap:var(--space-3);border-top:4px solid var(--brand);flex-direction:column;display:flex}.checklist-head{align-items:center;gap:var(--space-2);display:flex}.checklist-head h2{font-size:var(--text-lg);color:var(--ink);margin:0}.checklist-count{font-size:var(--text-sm);color:var(--muted);margin-left:auto}.checklist-menu{position:relative}.checklist-menu-btn{width:var(--control-h);height:var(--control-h);border-radius:var(--radius);color:var(--muted);font-size:var(--text-lg);cursor:pointer;background:0 0;border:0;place-items:center;display:grid}.checklist-menu-btn:hover{background:var(--surface-muted)}.checklist-menu-btn:focus-visible{box-shadow:var(--focus-ring);outline:none}.checklist-menu-list{right:0;top:calc(100% + var(--space-1));z-index:20;min-width:180px;padding:var(--space-1);background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow-lg);position:absolute}.checklist-menu-list button{width:100%;min-height:var(--control-h);padding:0 var(--space-3);border-radius:var(--radius-sm);color:var(--ink);font:inherit;text-align:left;cursor:pointer;background:0 0;border:0;display:block}.checklist-menu-list button:hover,.checklist-menu-list button:focus-visible{background:var(--surface-muted);outline:none}.checklist-bar{background:var(--brand-soft);border-radius:999px;height:8px;overflow:hidden}.checklist-bar>span{background:var(--brand);height:100%;transition:width .4s;display:block}.checklist-list{gap:var(--space-2);flex-direction:column;margin:0;padding:0;list-style:none;display:flex}.checklist-list li{align-items:center;gap:var(--space-3);padding:var(--space-3);border-radius:var(--radius);background:var(--surface-muted);border-left:4px solid #0000;display:flex}.checklist-list li.is-next{border-left-color:var(--accent);background:var(--surface);box-shadow:0 0 0 1px var(--line)}.checklist-list li.is-done strong{color:var(--muted);font-weight:500;text-decoration:line-through}.checklist-list .btn{min-height:var(--control-h);flex:none}.checklist-tick{border:2px solid var(--line-strong);width:24px;height:24px;color:var(--surface);font-size:var(--text-sm);border-radius:50%;flex:none;place-items:center;display:grid}.is-done .checklist-tick{background:var(--brand);border-color:var(--brand)}.checklist-text{min-width:0;font-size:var(--text-sm);color:var(--muted);flex-direction:column;flex:1;align-items:flex-start;gap:2px;display:flex}.checklist-text strong{color:var(--ink);font-size:var(--text-md)}.checklist-text em{font-style:normal}.checklist-celebrate{color:var(--brand);margin:0;font-weight:600;animation:.8s ease-out checklist-pop}@keyframes checklist-pop{0%{opacity:0;transform:scale(.9)}60%{opacity:1;transform:scale(1.04)}to{transform:scale(1)}}@media (prefers-reduced-motion:reduce){.checklist-celebrate{animation:none}.checklist-bar>span{transition:none}}.asset-card .doc-card-side{text-align:right;align-items:flex-end}.asset-value{font-size:var(--text-lg);font-weight:700}.asset-usage{gap:var(--space-1);flex-direction:column;min-width:0;display:flex}.asset-progress{background:var(--surface-muted);border-radius:999px;width:100%;max-width:220px;height:6px;display:block;overflow:hidden}.asset-progress>span{background:var(--brand);height:100%;display:block}.asset-groups{gap:var(--space-2);grid-template-columns:repeat(auto-fill,minmax(min(100%,240px),1fr));display:grid}.asset-group{gap:var(--space-1);padding:var(--space-3);border:1px solid var(--line);border-radius:var(--radius);background:var(--surface);text-align:left;cursor:pointer;flex-direction:column;min-width:0;display:flex}.asset-group[aria-checked=true]{border-color:var(--brand);background:var(--brand-soft)}.asset-summary{gap:var(--space-3);grid-template-columns:repeat(auto-fit,minmax(min(100%,140px),1fr));display:grid}.asset-timeline{gap:var(--space-2);flex-direction:column;margin:0;padding:0;list-style:none;display:flex}.asset-timeline li{justify-content:space-between;gap:var(--space-3);border-bottom:1px solid var(--line);padding-bottom:var(--space-2);display:flex}.asset-loss{color:var(--expense)}.asset-gain{color:var(--income)}
