:root{--bg:#f6f5f0;--surface:#fff;--surface-2:#efede5;--ink:#1d2420;--ink-2:#56605a;--ink-3:#87908a;--line:#e1ded3;--green:#1f5e3b;--green-2:#2b7a4e;--green-soft:#e3efe6;--amber:#b07d12;--amber-soft:#fbf1d6;--egg:#e9b949;--red:#b23a2e;--red-soft:#f8e3e0;--blue:#2b5f8a;--blue-soft:#e2edf6;--radius:12px;--radius-sm:8px;--shadow:0 1px 2px #1d24200f, 0 4px 16px #1d24200d;--nav-h:64px;color:var(--ink);background:var(--bg);-webkit-font-smoothing:antialiased;-webkit-text-size-adjust:100%;font-family:system-ui,-apple-system,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif;font-size:16px;line-height:1.5}*{box-sizing:border-box}body{min-height:100dvh;margin:0}h1,h2,h3{margin:0;line-height:1.25}h1{letter-spacing:-.01em;font-size:1.5rem;font-weight:700}h2{font-size:1.125rem;font-weight:650}h3{font-size:1rem;font-weight:650}p{margin:0}a{color:var(--green)}button,input,select,textarea{font:inherit;color:inherit}.num{font-variant-numeric:tabular-nums;white-space:nowrap}.muted{color:var(--ink-2)}.small{font-size:.875rem}.stack{gap:16px;display:grid}.stack-sm{gap:8px;display:grid}.row{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.row-between{justify-content:space-between;align-items:center;gap:12px;display:flex}.visually-hidden{clip:rect(0 0 0 0);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}.btn{border-radius:var(--radius-sm);cursor:pointer;border:1px solid #0000;justify-content:center;align-items:center;gap:8px;min-height:44px;padding:0 18px;font-weight:600;text-decoration:none;transition:background .15s,border-color .15s;display:inline-flex}.btn:disabled{opacity:.55;cursor:not-allowed}.btn-primary{background:var(--green);color:#fff}.btn-primary:hover:not(:disabled){background:var(--green-2)}.btn-secondary{background:var(--surface);border-color:var(--line)}.btn-secondary:hover:not(:disabled){border-color:var(--ink-3)}.btn-ghost{color:var(--green);background:0 0;padding:0 10px}.btn-ghost:hover:not(:disabled){background:var(--green-soft)}.btn-danger{background:var(--surface);color:var(--red);border-color:#e6c3be}.btn-danger:hover:not(:disabled){background:var(--red-soft)}.btn-block{width:100%}.icon-btn{border-radius:var(--radius-sm);cursor:pointer;width:40px;height:40px;color:var(--ink-2);background:0 0;border:0;place-items:center;display:inline-grid}.icon-btn:hover{background:var(--surface-2)}:focus-visible{outline:3px solid color-mix(in srgb, var(--green) 45%, transparent);outline-offset:2px}.field{gap:6px;display:grid}.field label{font-size:.9375rem;font-weight:600}.field input,.field select,.field textarea{border:1px solid var(--line);border-radius:var(--radius-sm);background:var(--surface);width:100%;min-height:46px;padding:10px 12px}.field textarea{resize:vertical;min-height:88px}.field input:focus,.field select:focus,.field textarea:focus{border-color:var(--green);box-shadow:0 0 0 3px var(--green-soft);outline:none}.field-hint{color:var(--ink-2);font-size:.8125rem}.field-msg{color:var(--red);font-size:.8125rem;font-weight:600}.field-error input,.field-error select{border-color:var(--red)}.input-code{letter-spacing:.4em;text-align:center;font-variant-numeric:tabular-nums;font-size:1.5rem}.checkbox{align-items:flex-start;gap:10px;font-weight:500;display:flex}.checkbox input{width:20px;height:20px;accent-color:var(--green);margin-top:2px}.choice-list{gap:8px;display:grid}.choice{border:1px solid var(--line);border-radius:var(--radius-sm);background:var(--surface);cursor:pointer;align-items:flex-start;gap:10px;padding:12px;display:flex}.choice:has(input:checked){border-color:var(--green);background:var(--green-soft)}.choice input{accent-color:var(--green);margin-top:3px}.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);padding:16px}.card-flush{padding:0;overflow:hidden}.badge{white-space:nowrap;border-radius:999px;align-items:center;padding:2px 8px;font-size:.75rem;font-weight:650;display:inline-flex}.badge-neutral{background:var(--surface-2);color:var(--ink-2)}.badge-green{background:var(--green-soft);color:var(--green)}.badge-amber{background:var(--amber-soft);color:var(--amber)}.badge-red{background:var(--red-soft);color:var(--red)}.badge-blue{background:var(--blue-soft);color:var(--blue)}.banner{border-radius:var(--radius-sm);border:1px solid;padding:12px 14px;font-size:.9375rem}.banner-info{background:var(--blue-soft);color:#1e4566;border-color:#c7dbeb}.banner-error{background:var(--red-soft);color:#7d261d;border-color:#eac4bf}.banner-success{background:var(--green-soft);color:#194d31;border-color:#c4dccb}.banner-warning{background:var(--amber-soft);color:#6e4e0b;border-color:#eedca9}.empty{text-align:center;color:var(--ink-2);padding:24px 16px}.loading{color:var(--ink-2);justify-content:center;align-items:center;gap:10px;padding:24px 0;display:flex}.spinner{border:2.5px solid var(--line);border-top-color:var(--green);border-radius:50%;width:20px;height:20px;animation:.8s linear infinite spin}.spinner-sm{border-color:currentColor #fff6 #fff6;width:16px;height:16px}@keyframes spin{to{transform:rotate(360deg)}}.list{margin:0;padding:0;list-style:none}.list-item{align-items:center;gap:12px;min-height:60px;padding:14px 16px;display:flex}.list>*+*{border-top:1px solid var(--line)}.list-item-main{flex:1;min-width:0}.list-item-title{font-weight:600}.list-item-sub{color:var(--ink-2);font-size:.875rem}button.list-item,a.list-item{text-align:left;cursor:pointer;width:100%;color:inherit;background:0 0;border:0;text-decoration:none}button.list-item:hover,a.list-item:hover{background:var(--bg)}.tree-indent{color:var(--ink-3);margin-right:4px;display:inline-block}.section-title{text-transform:uppercase;letter-spacing:.06em;color:var(--ink-2);margin:4px 4px 8px;font-size:.8125rem;font-weight:700}.sheet{background:var(--surface);width:100%;max-width:100%;max-height:92dvh;color:var(--ink);border:0;border-radius:18px 18px 0 0;margin:auto 0 0;padding:0}.sheet::backdrop{background:#141a1673}.sheet-inner{flex-direction:column;max-height:92dvh;display:flex}.sheet-head{justify-content:space-between;align-items:center;padding:16px 16px 8px 20px;display:flex}.sheet-body{gap:16px;padding:8px 20px 20px;display:grid;overflow-y:auto}.sheet-foot{padding:12px 20px calc(12px + env(safe-area-inset-bottom));border-top:1px solid var(--line);background:var(--surface);justify-content:flex-end;gap:8px;display:flex}.sheet-foot .btn{flex:1}@media (width>=720px){.sheet{border-radius:var(--radius);max-width:560px;margin:auto}.sheet-foot .btn{flex:none}}.auth-page{place-items:center;min-height:100dvh;padding:24px 16px;display:grid}.auth-card{gap:20px;width:100%;max-width:400px;display:grid}.brand{align-items:center;gap:12px;display:flex}.brand img{width:44px;height:44px}.brand-name{letter-spacing:.04em;font-size:1.125rem;font-weight:800}.brand-tagline{color:var(--ink-2);font-size:.8125rem}.qr{border:1px solid var(--line);border-radius:var(--radius-sm);background:#fff;place-items:center;padding:12px;display:grid}.qr img{width:200px;height:200px}.secret{word-break:break-all;background:var(--surface-2);border-radius:6px;padding:8px 10px;font-family:ui-monospace,Menlo,Consolas,monospace;font-size:.875rem}.app{min-height:100dvh}.topbar{z-index:10;padding:calc(8px + env(safe-area-inset-top)) 16px 8px;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);border-bottom:1px solid var(--line);background:#f6f5f0eb;justify-content:space-between;align-items:center;gap:12px;display:flex;position:sticky;top:0}.topbar .brand img{width:32px;height:32px}.topbar .brand-name{font-size:1rem}.main{padding:16px 16px calc(var(--nav-h) + 24px + env(safe-area-inset-bottom));grid-template-columns:minmax(0,1fr);align-content:start;gap:20px;max-width:960px;margin:0 auto;display:grid}.bottom-nav{z-index:10;height:calc(var(--nav-h) + 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}.nav-item{color:var(--ink-2);flex-direction:column;justify-content:center;align-items:center;gap:2px;font-size:.6875rem;font-weight:600;text-decoration:none;display:flex;position:relative}.nav-item.active{color:var(--green)}.nav-item.soon{color:var(--ink-3);cursor:default}.nav-soon{text-transform:uppercase;letter-spacing:.04em;color:var(--ink-3);font-size:.5625rem;font-weight:700}.sidebar{display:none}.page-header{gap:8px;display:grid}.page-header-row{flex-wrap:wrap;justify-content:space-between;align-items:flex-start;gap:12px;display:flex}.page-subtitle{color:var(--ink-2);margin-top:4px}.back-link{color:var(--ink-2);align-items:center;gap:4px;width:fit-content;font-size:.875rem;font-weight:600;text-decoration:none;display:inline-flex}.kpi-grid{grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px;display:grid}.kpi-label{color:var(--ink-2);font-size:.8125rem;font-weight:600}.kpi-value{font-variant-numeric:tabular-nums;font-size:1.375rem;font-weight:750}.settings-grid{gap:12px;display:grid}.settings-link{color:inherit;align-items:center;gap:14px;text-decoration:none;display:flex}.settings-link:hover{border-color:var(--ink-3)}.settings-icon{background:var(--green-soft);width:42px;height:42px;color:var(--green);border-radius:10px;flex:none;place-items:center;display:grid}.user-chip{color:inherit;align-items:center;gap:8px;text-decoration:none;display:flex}.avatar{background:var(--green);color:#fff;border-radius:50%;flex:none;place-items:center;width:36px;height:36px;font-size:.875rem;font-weight:700;display:grid}@media (width>=960px){.bottom-nav{display:none}.app{grid-template-columns:240px 1fr;display:grid}.topbar{grid-column:1/-1}.sidebar{border-right:1px solid var(--line);flex-direction:column;align-self:start;gap:4px;min-height:calc(100dvh - 57px);padding:16px 12px;display:flex;position:sticky;top:57px}.sidebar .nav-item{border-radius:var(--radius-sm);flex-direction:row;justify-content:flex-start;gap:12px;padding:10px 12px;font-size:.9375rem}.sidebar .nav-item.active{background:var(--green-soft)}.sidebar .nav-soon{margin-left:auto}.main{width:100%;padding:28px 32px 48px}.settings-grid{grid-template-columns:repeat(2,1fr)}}.nav-icon{display:inline-grid;position:relative}.nav-badge{background:var(--red);color:#fff;border-radius:999px;place-items:center;min-width:18px;height:18px;padding:0 5px;font-size:.6875rem;font-weight:700;line-height:1;display:grid;position:absolute;top:-6px;right:-10px}.bottom-nav{grid-template-columns:repeat(5,1fr)}.kind-grid{grid-template-columns:repeat(2,1fr);gap:8px;display:grid}.kind-chip{border:1.5px solid var(--line);border-radius:var(--radius-sm);background:var(--surface);cursor:pointer;text-align:center;min-height:52px;padding:10px;font-weight:650}.kind-chip.selected{border-color:var(--green);background:var(--green-soft);color:var(--green)}.input-amount{font-variant-numeric:tabular-nums;font-weight:700;font-size:1.75rem!important}.split-row{grid-template-columns:1fr 120px 40px;align-items:center;gap:8px;display:grid}.split-row select,.split-row input{border:1px solid var(--line);border-radius:var(--radius-sm);background:var(--surface);width:100%;min-height:44px;padding:8px 10px}.file-btn{cursor:pointer}.file-list{gap:4px;margin:0;padding:0;list-style:none;display:grid}.file-list li{background:var(--surface-2);border-radius:var(--radius-sm);justify-content:space-between;align-items:center;gap:8px;padding:4px 4px 4px 12px;font-size:.875rem;display:flex}.file-list li span{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.form-actions{gap:8px;display:grid}@media (width>=720px){.form-actions{flex-wrap:wrap;justify-content:flex-end;display:flex}}.op-amount{font-size:1.75rem;font-weight:750}.op-line-title{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.op-line-amount{font-weight:650}.details{grid-template-columns:max-content 1fr;gap:8px 16px;margin:0;display:grid}.details dt{color:var(--ink-2);font-size:.875rem}.details dd{margin:0;font-weight:500}.timeline{border-left:2px solid var(--line);gap:12px;margin:0;padding:0 0 0 16px;list-style:none;display:grid}.timeline li{font-size:.9375rem;position:relative}.timeline li:before{content:"";background:var(--green);border-radius:50%;width:10px;height:10px;position:absolute;top:7px;left:-22px}.timeline-comment{color:var(--ink-2);margin-top:2px;font-style:italic;display:block}.filters{grid-template-columns:1fr 1fr;gap:8px;display:grid}.filters>input[type=search]{grid-column:1/-1}.filters input,.filters select{border:1px solid var(--line);border-radius:var(--radius-sm);background:var(--surface);width:100%;min-height:44px;padding:8px 10px}.date-filter{color:var(--ink-2);align-items:center;gap:6px;font-size:.875rem;display:flex}@media (width>=960px){.filters{grid-template-columns:repeat(4,1fr)}}.list-item-selected{background:var(--green-soft)!important}.attention{background:var(--blue-soft);border-color:#c7dbeb}.attention .settings-icon{color:var(--blue);background:#fff}
