:root{--bg:#f6f7f9;--surface:#fff;--surface-2:#eceff4;--text:#14181f;--muted:#566070;--border:#d5dae2;--accent:#1d5fd6;--accent-contrast:#fff;--accent-soft:#e4edfc;--pos:#11693a;--pos-bg:#e1f4e8;--neg:#b42318;--neg-bg:#fde9e7;--warn:#8a5a00;--warn-bg:#fdf1d6;--shadow:0 1px 2px #1018280f;--radius:14px;--tabbar-h:62px;--safe-b:env(safe-area-inset-bottom,0px);--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light dark}@media (prefers-color-scheme:dark){:root{--lightningcss-light: ;--lightningcss-dark:initial;--bg:#14171c;--surface:#1d2128;--surface-2:#272c35;--text:#eceff4;--muted:#a6b0bf;--border:#353c48;--accent:#7aa7ff;--accent-contrast:#0b1426;--accent-soft:#1f3050;--pos:#62d68e;--pos-bg:#14301f;--neg:#ff948a;--neg-bg:#3b1b19;--warn:#f0c35c;--warn-bg:#36290c;--shadow:none}}*,:before,:after{box-sizing:border-box}html{-webkit-text-size-adjust:100%}body{background:var(--bg);color:var(--text);-webkit-tap-highlight-color:transparent;margin:0;font:16px/1.45 system-ui,-apple-system,Segoe UI,Roboto,sans-serif}body.modal-open{overflow:hidden}h1,h2,h3,p{margin:0}h1{font-size:1.5rem;line-height:1.2}h2{font-size:1.1rem}h3{text-transform:uppercase;letter-spacing:.04em;color:var(--muted);font-size:.8rem;font-weight:600}a{color:var(--accent)}.muted{color:var(--muted)}.small{font-size:.875rem}.num{font-variant-numeric:tabular-nums;white-space:nowrap}:focus-visible{outline:3px solid var(--accent);outline-offset:2px;border-radius:6px}.app{max-width:640px;padding:16px 16px calc(var(--tabbar-h) + var(--safe-b) + 24px);padding-left:max(16px, env(safe-area-inset-left));padding-right:max(16px, env(safe-area-inset-right));margin:0 auto}.centered{place-items:center;min-height:100dvh;padding:16px;display:grid}.centered .card{max-width:420px}.stack{flex-direction:column;gap:16px;display:flex}.stack-sm{flex-direction:column;gap:8px;display:flex}.row{align-items:center;gap:12px;display:flex}.row-between{justify-content:space-between;align-items:center;gap:12px;display:flex}.grow{flex:1;min-width:0}.page-head{align-items:center;gap:8px;margin-bottom:16px;display:flex}.page-head h1{flex:1}.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow);padding:16px}.card-flush{padding:0;overflow:hidden}.card>h2,.card>h3{margin-bottom:8px}.state{flex-direction:column;align-items:flex-start;gap:8px;display:flex}.state-title{font-size:1.05rem;font-weight:600}.list{margin:0;padding:0;list-style:none}.list>li+li{border-top:1px solid var(--border)}.item{width:100%;min-height:56px;color:inherit;font:inherit;text-align:left;background:0 0;border:0;align-items:center;gap:12px;padding:10px 16px;text-decoration:none;display:flex}button.item,a.item{cursor:pointer}button.item:active,a.item:active{background:var(--surface-2)}.item.me{background:var(--accent-soft)}.item-main{flex:1;min-width:0}.item-title{overflow-wrap:anywhere;font-weight:600}.item-sub{color:var(--muted);font-size:.875rem}.item-icon{background:var(--surface-2);width:40px;height:40px;color:var(--muted);border-radius:12px;flex:none;place-items:center;display:grid}.group-title{background:var(--surface-2);justify-content:space-between;gap:8px;padding:12px 16px 8px;font-size:.9rem;font-weight:600;display:flex}.btn{border:1px solid var(--border);background:var(--surface);min-height:48px;color:var(--text);font:inherit;cursor:pointer;text-align:center;border-radius:12px;justify-content:center;align-items:center;gap:8px;padding:0 18px;font-weight:600;text-decoration:none;display:inline-flex}.btn:disabled{opacity:.55;cursor:default}.btn-primary{background:var(--accent);border-color:var(--accent);color:var(--accent-contrast)}.btn-danger{background:var(--neg);border-color:var(--neg);color:var(--bg)}.btn-ghost{color:var(--accent);background:0 0;border-color:#0000}.btn-block{width:100%}.btn-small{min-height:44px;padding:0 14px;font-size:.95rem}.btn-big{flex-direction:column;gap:2px;min-height:64px;font-size:1.1rem}.btn:active:not(:disabled){filter:brightness(.93)}.icon-btn{width:44px;height:44px;color:var(--muted);cursor:pointer;background:0 0;border:0;border-radius:12px;flex:none;place-items:center;font-size:1.25rem;display:grid}.actions{gap:12px;display:flex}.actions>*{flex:1}.sticky-actions{bottom:calc(var(--tabbar-h) + var(--safe-b) + 8px);z-index:5;background:linear-gradient(to top, var(--bg) 70%, transparent);padding:8px 0;position:sticky}.field{flex-direction:column;gap:6px;display:flex}.field>label,.label{font-size:.9rem;font-weight:600}input,select,textarea{width:100%;min-height:48px;font:inherit;color:var(--text);background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:10px 12px;font-size:16px}input[type=file]{padding:8px}textarea{resize:vertical}input[aria-invalid=true]{border-color:var(--neg)}.hint{color:var(--muted);font-size:.85rem}.field-error,.form-error{color:var(--neg);font-size:.9rem}.form-error{background:var(--neg-bg);border-radius:12px;padding:10px 12px}.field-pair{grid-template-columns:1fr 1fr;gap:12px;display:grid}.segmented{background:var(--surface-2);border-radius:12px;gap:3px;padding:3px;display:flex}.segmented button{min-height:44px;color:var(--text);font:inherit;cursor:pointer;background:0 0;border:0;border-radius:10px;flex:1;font-weight:600}.segmented button.on{background:var(--surface);color:var(--accent);box-shadow:0 1px 3px #0000002e}.chips{flex-wrap:wrap;gap:8px;display:flex}.chip{border:1px solid var(--border);background:var(--surface);min-height:44px;color:var(--text);font:inherit;cursor:pointer;border-radius:999px;align-items:center;padding:0 14px;display:inline-flex}.chip.on{background:var(--accent-soft);border-color:var(--accent);color:var(--accent);font-weight:600}.badge{background:var(--surface-2);color:var(--muted);white-space:nowrap;border-radius:999px;padding:2px 8px;font-size:.75rem;font-weight:600;display:inline-block}.badge-accent{background:var(--accent-soft);color:var(--accent)}.badge-pos{background:var(--pos-bg);color:var(--pos)}.badge-neg{background:var(--neg-bg);color:var(--neg)}.badge-warn{background:var(--warn-bg);color:var(--warn)}.tiles{grid-template-columns:repeat(2,1fr);gap:10px;display:grid}.tile{border:2px solid var(--border);background:var(--surface);min-height:68px;color:var(--text);font:inherit;text-align:left;cursor:pointer;border-radius:14px;flex-direction:column;justify-content:center;align-items:flex-start;gap:2px;padding:10px 14px;display:flex;position:relative}.tile[aria-pressed=true],.tile[aria-checked=true]{border-color:var(--accent);background:var(--accent-soft)}.tile-name{overflow-wrap:break-word;font-weight:600;line-height:1.2}.tile-sub{color:var(--muted);font-size:.85rem}.tile .badge{position:absolute;top:6px;right:6px}.tile-icon{color:var(--accent)}.hero{text-align:center;border-radius:var(--radius);background:var(--surface-2);padding:20px 16px}.hero-label{font-size:.95rem;font-weight:600}.hero-amount{font-variant-numeric:tabular-nums;font-size:2.4rem;font-weight:700;line-height:1.15}.hero.pos{background:var(--pos-bg);color:var(--pos)}.hero.neg{background:var(--neg-bg);color:var(--neg)}.pos-text{color:var(--pos)}.neg-text{color:var(--neg)}.warning{background:var(--warn-bg);color:var(--warn);border-radius:12px;align-items:flex-start;gap:8px;padding:10px 12px;font-size:.9rem;display:flex}.thumbs{flex-wrap:wrap;gap:8px;display:flex}.thumb{border:1px solid var(--border);background:var(--surface-2);border-radius:10px;width:88px;height:88px;display:block;overflow:hidden}.thumb img{object-fit:cover;width:100%;height:100%;display:block}.skeleton{background:linear-gradient(90deg, var(--surface-2) 25%, var(--border) 50%, var(--surface-2) 75%);background-size:200% 100%;border-radius:10px;animation:1.4s linear infinite shimmer}@keyframes shimmer{to{background-position:-200% 0}}.tabbar{z-index:10;background:var(--surface);border-top:1px solid var(--border);padding-bottom:var(--safe-b);position:fixed;bottom:0;left:0;right:0}.tabbar-inner{max-width:640px;height:var(--tabbar-h);grid-template-columns:repeat(5,1fr);margin:0 auto;display:grid}.tab{min-width:44px;color:var(--muted);flex-direction:column;justify-content:center;align-items:center;gap:2px;font-size:.72rem;font-weight:600;text-decoration:none;display:flex}.tab.active{color:var(--accent)}.dialog{background:var(--surface);width:100%;max-width:560px;max-height:92dvh;color:var(--text);border:0;border-radius:20px 20px 0 0;margin:auto auto 0;padding:0;overflow:auto}.dialog::backdrop{background:#0000008c}.dialog-body{padding:16px 16px calc(16px + var(--safe-b));flex-direction:column;gap:16px;display:flex}.dialog-head{justify-content:space-between;align-items:center;display:flex}.dialog-foot{gap:12px;display:flex}.dialog-foot>*{flex:1}@media (width>=640px){.dialog{border-radius:20px;margin:auto}}.toasts{left:0;right:0;bottom:calc(var(--tabbar-h) + var(--safe-b) + 12px);z-index:100;pointer-events:none;flex-direction:column;align-items:center;gap:8px;padding:0 16px;display:flex;position:fixed}.toast{background:var(--text);max-width:460px;color:var(--bg);border-radius:12px;padding:12px 16px;font-weight:600;animation:.2s ease-out pop;box-shadow:0 4px 16px #00000040}.toast-error{background:var(--neg);color:#fff}@keyframes pop{0%{opacity:0;transform:translateY(8px)}}@media (prefers-reduced-motion:reduce){*,:before,:after{transition:none!important;animation:none!important}}
