:root{--bg: #f4f3ef;--surface: #ffffff;--surface-2: #f0efe9;--line: #e2e0d8;--text: #1d1f1e;--muted: #6b6f6c;--accent: #2f7d6d;--accent-strong: #256657;--accent-soft: #e2f0ec;--on-accent: #ffffff;--pos: #1f7a4d;--neg: #b3402f;--warn: #9a6a00;--warn-soft: #fbf1d6;--neg-soft: #f8e4df;--radius: 14px;--radius-sm: 10px;--shadow: 0 1px 2px rgb(0 0 0 / 5%), 0 4px 16px rgb(0 0 0 / 5%);--nav-h: 64px;--safe-b: env(safe-area-inset-bottom, 0px);--safe-t: env(safe-area-inset-top, 0px);color-scheme:light}@media(prefers-color-scheme:dark){:root{--bg: #121413;--surface: #1b1e1d;--surface-2: #232726;--line: #2f3432;--text: #eceeed;--muted: #9aa19e;--accent: #4fb39d;--accent-strong: #6cc7b2;--accent-soft: #1d3530;--on-accent: #0d1f1b;--pos: #5ec48f;--neg: #f08a78;--warn: #e6b545;--warn-soft: #362d14;--neg-soft: #3a211c;--shadow: none;color-scheme:dark}}*{box-sizing:border-box}html{-webkit-text-size-adjust:100%;-webkit-tap-highlight-color:transparent}body{margin:0;background:var(--bg);color:var(--text);font:16px/1.45 system-ui,-apple-system,Segoe UI,Roboto,Helvetica Neue,sans-serif;overscroll-behavior-y:none}a{color:var(--accent);text-decoration:none}h1,h2,h3{margin:0;line-height:1.2}h1{font-size:1.5rem;font-weight:700}h2{font-size:1.05rem;font-weight:650}h3{font-size:.95rem;font-weight:600}.app{max-width:680px;margin:0 auto;min-height:100dvh;padding:calc(var(--safe-t) + 12px) 16px 24px}.app.has-nav{padding-bottom:calc(var(--nav-h) + var(--safe-b) + 24px)}.page-head{display:flex;align-items:center;gap:8px;min-height:48px;margin-bottom:12px}.page-head h1{flex:1;min-width:0;overflow-wrap:anywhere}.page-head>*{flex-shrink:0}.page-head>h1{flex-shrink:1}.head-actions{margin-right:-6px}.swipe-actions{display:flex;flex-direction:column;align-items:center;flex-shrink:0}.swipe-track{display:flex;width:var(--swipe-w);overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;overscroll-behavior-x:contain}.swipe-track::-webkit-scrollbar{display:none}.swipe-track>*{flex:0 0 var(--swipe-w);scroll-snap-align:start}.swipe-dots{display:flex;gap:4px;margin-top:2px}.page-head .swipe-dots{margin-top:-2px}.swipe-dots span{width:5px;height:5px;border-radius:50%;background:var(--line);cursor:pointer}.swipe-dots span.on{background:var(--muted)}@media(min-width:560px){.swipe-track{width:auto;gap:8px;overflow:visible}.swipe-track>*{flex:0 0 auto}.page-head .swipe-track{gap:0}.swipe-dots{display:none}}.back{display:grid;place-items:center;width:44px;height:44px;margin-left:-10px;border-radius:50%;color:var(--text)}.back:active{background:var(--surface-2)}.card{background:var(--surface);border-radius:var(--radius);box-shadow:var(--shadow);border:1px solid var(--line);padding:16px;margin-bottom:12px}.card.flush{padding:0;overflow:hidden}.section-title{display:flex;align-items:baseline;justify-content:space-between;margin:22px 4px 8px;color:var(--muted);font-size:.8rem;font-weight:650;letter-spacing:.04em;text-transform:uppercase}.list{list-style:none;margin:0;padding:0}.row{display:flex;align-items:center;gap:12px;min-height:56px;padding:10px 16px;color:inherit;border-top:1px solid var(--line)}.list>li:first-child>.row,.list>.row:first-child{border-top:0}a.row:active,button.row:active{background:var(--surface-2)}button.row{width:100%;background:none;border:0;border-top:1px solid var(--line);font:inherit;text-align:left;cursor:pointer}.row-main{flex:1;min-width:0}.row-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.row-sub{color:var(--muted);font-size:.82rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.row-sub-wrap{display:flex;flex-wrap:wrap;column-gap:10px;white-space:normal}.row-sub-wrap>span{white-space:nowrap}.row-end{text-align:right;flex-shrink:0}.money{font-variant-numeric:tabular-nums;font-weight:600;white-space:nowrap}.pos{color:var(--pos)}.neg{color:var(--neg)}.muted{color:var(--muted)}.small{font-size:.85rem}.big-number{font-size:2rem;font-weight:700;font-variant-numeric:tabular-nums;letter-spacing:-.02em}.stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.stat{background:var(--surface-2);border-radius:var(--radius-sm);padding:10px 12px}.stat .label{color:var(--muted);font-size:.78rem}.stat .value{font-size:1.1rem}.badge{display:inline-flex;align-items:center;gap:4px;padding:2px 8px;border-radius:999px;background:var(--surface-2);color:var(--muted);font-size:.72rem;font-weight:600;white-space:nowrap}.badge.warn{background:var(--warn-soft);color:var(--warn)}.badge.neg{background:var(--neg-soft);color:var(--neg)}.badge.accent{background:var(--accent-soft);color:var(--accent-strong)}.dot{width:10px;height:10px;border-radius:50%;flex-shrink:0}.field{display:block;margin-bottom:14px}.field>span{display:block;margin-bottom:6px;color:var(--muted);font-size:.85rem;font-weight:550}input,select,textarea{width:100%;min-height:48px;padding:11px 14px;border:1px solid var(--line);border-radius:var(--radius-sm);background:var(--surface);color:var(--text);font:inherit;font-size:16px}textarea{min-height:90px;resize:vertical}input:focus-visible,select:focus-visible,textarea:focus-visible,button:focus-visible,a:focus-visible{outline:2px solid var(--accent);outline-offset:2px}input[type=checkbox],input[type=radio]{flex:none;width:22px;min-height:22px;height:22px;padding:0;accent-color:var(--accent)}.check{display:flex;align-items:center;gap:10px;min-height:44px}.amount-input{font-size:2rem!important;font-weight:700;text-align:center;font-variant-numeric:tabular-nums;min-height:64px}.hint{margin:-6px 0 14px;color:var(--muted);font-size:.82rem}.error-box{padding:10px 14px;margin-bottom:14px;border-radius:var(--radius-sm);background:var(--neg-soft);color:var(--neg);font-size:.9rem}.warn-box{padding:10px 14px;margin-bottom:12px;border-radius:var(--radius-sm);background:var(--warn-soft);color:var(--warn);font-size:.9rem}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:48px;padding:0 18px;border:1px solid var(--line);border-radius:var(--radius-sm);background:var(--surface);color:var(--text);font:inherit;font-weight:600;cursor:pointer;-webkit-user-select:none;user-select:none}.btn:active{transform:scale(.98)}.btn:disabled{opacity:.5;cursor:default}.btn.primary{background:var(--accent);border-color:var(--accent);color:var(--on-accent)}.btn.danger{color:var(--neg)}.btn.block{width:100%}.btn.small{min-height:36px;padding:0 12px;font-size:.85rem}.btn-row{display:flex;gap:10px;flex-wrap:wrap}.btn-row>.btn{flex:1}.icon-btn{display:grid;place-items:center;width:44px;height:44px;border:0;border-radius:50%;background:none;color:var(--text);cursor:pointer}.icon-btn:active{background:var(--surface-2)}.segment{display:flex;gap:4px;padding:4px;margin-bottom:14px;border-radius:12px;background:var(--surface-2);overflow-x:auto;scrollbar-width:none}.segment button{flex:1 0 auto;min-height:38px;padding:0 12px;border:0;border-radius:9px;background:none;color:var(--muted);font:inherit;font-size:.9rem;font-weight:600;cursor:pointer;white-space:nowrap}.segment button.active{background:var(--surface);color:var(--text);box-shadow:var(--shadow)}.choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.choice{display:flex;flex-direction:column;align-items:flex-start;gap:6px;min-height:96px;padding:14px;border:1px solid var(--line);border-radius:var(--radius);background:var(--surface);color:var(--text);font:inherit;text-align:left;cursor:pointer}.choice:active{transform:scale(.98)}.choice.selected{border-color:var(--accent);background:var(--accent-soft)}.choice strong{font-size:.95rem}.choice small{color:var(--muted);font-size:.78rem;line-height:1.3}.choice .ico{color:var(--accent)}.bottom-nav{position:fixed;left:0;right:0;bottom:0;z-index:20;display:flex;justify-content:space-around;align-items:stretch;height:calc(var(--nav-h) + var(--safe-b));padding-bottom:var(--safe-b);background:color-mix(in srgb,var(--surface) 92%,transparent);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);border-top:1px solid var(--line)}.bottom-nav a{position:relative;flex:1;max-width:120px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;color:var(--muted);font-size:.7rem;font-weight:600}.bottom-nav a.router-link-exact-active{color:var(--accent)}.bottom-nav .fab{display:grid;place-items:center;width:52px;height:52px;margin-top:-18px;border-radius:18px;background:var(--accent);color:var(--on-accent);box-shadow:0 6px 18px color-mix(in srgb,var(--accent) 40%,transparent)}.nav-badge{position:absolute;top:6px;left:50%;margin-left:6px;min-width:18px;height:18px;padding:0 5px;border-radius:9px;background:var(--neg);color:#fff;font-size:.68rem;line-height:18px;text-align:center}.sheet-backdrop{position:fixed;inset:0;z-index:40;display:flex;align-items:flex-end;justify-content:center;background:#0006}.sheet{width:100%;max-width:680px;max-height:92dvh;overflow-y:auto;padding:8px 16px calc(20px + var(--safe-b));border-radius:20px 20px 0 0;background:var(--surface)}.sheet-grip{width:40px;height:5px;margin:4px auto 12px;border-radius:3px;background:var(--line)}.sheet h2{margin-bottom:14px}.sheet-enter-active,.sheet-leave-active{transition:opacity .2s}.sheet-enter-active .sheet,.sheet-leave-active .sheet{transition:transform .25s cubic-bezier(.2,.8,.2,1)}.sheet-enter-from,.sheet-leave-to{opacity:0}.sheet-enter-from .sheet,.sheet-leave-to .sheet{transform:translateY(100%)}.toast{position:fixed;left:50%;bottom:calc(var(--nav-h) + var(--safe-b) + 16px);z-index:50;max-width:calc(100% - 32px);padding:12px 18px;border-radius:12px;background:var(--text);color:var(--bg);font-weight:600;transform:translate(-50%);box-shadow:0 8px 24px #0003}.toast.error{background:var(--neg);color:#fff}.toast-enter-active,.toast-leave-active{transition:all .2s}.toast-enter-from,.toast-leave-to{opacity:0;transform:translate(-50%,10px)}.empty{padding:32px 16px;color:var(--muted);text-align:center}.center-page{display:flex;flex-direction:column;justify-content:center;min-height:90dvh;max-width:400px;margin:0 auto}.brand{display:flex;align-items:center;gap:12px;margin-bottom:28px}.brand img{width:52px;height:52px;border-radius:14px}.bar{height:8px;border-radius:4px;background:var(--surface-2);overflow:hidden}.bar>div{height:100%;border-radius:4px;background:var(--accent)}.kv{display:grid;grid-template-columns:auto 1fr;gap:8px 16px;margin:0}.kv dt{color:var(--muted);font-size:.88rem}.kv dd{margin:0;text-align:right;overflow-wrap:anywhere}.thumbs{display:flex;gap:8px;flex-wrap:wrap}.thumbs a,.thumbs .pdf{display:grid;place-items:center;width:84px;height:84px;border-radius:var(--radius-sm);border:1px solid var(--line);background:var(--surface-2);overflow:hidden;font-size:.75rem;color:var(--muted)}.thumbs img{width:100%;height:100%;object-fit:cover}.spinner{width:28px;height:28px;margin:40px auto;border:3px solid var(--line);border-top-color:var(--accent);border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.strike{text-decoration:line-through;opacity:.6}.pre{white-space:pre-wrap}.mt{margin-top:12px}.table-scroll{overflow-x:auto}table.simple{width:100%;border-collapse:collapse;font-size:.9rem}table.simple th,table.simple td{padding:8px 10px;border-top:1px solid var(--line);text-align:left;white-space:nowrap}table.simple th{color:var(--muted);font-size:.75rem;font-weight:600;border-top:0}table.simple td.num,table.simple th.num{text-align:right}@media(min-width:700px){.app{padding-top:24px}.choices{grid-template-columns:repeat(3,minmax(0,1fr))}.stats{grid-template-columns:repeat(4,minmax(0,1fr))}}@media(prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}
