:root{--bg:#f3f4f7;--surface:#fff;--ink:#0f1729;--muted:#525b6b;--line:#e2e5ea;--line2:#eef0f3;--accent:#2457d6;--on-accent:#fff;--accent-soft:#e8eefc;--accent-ink:#163c9c;--good:#0b6b45;--good-soft:#e5f5ec;--warn:#9a3f06;--warn-soft:#fff0e3;--bad:#b42318;--bad-soft:#fcebea;--side:#0f1729;--side-ink:#c3cad5;--side-hi:hsla(0,0%,100%,.1);--hero:#0f1729;--hero-muted:#a9b1bf;--chip:#e9ebef;--f-body:"Inter",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;--f-head:"Inter Tight","Inter",system-ui,-apple-system,sans-serif;color-scheme:light}@media (prefers-color-scheme:dark){:root{--bg:#0c1017;--surface:#151b25;--ink:#e7ebf1;--muted:#a1aab8;--line:#273142;--line2:#1e2633;--accent:#7096f2;--on-accent:#0c1017;--accent-soft:#1a2848;--accent-ink:#afc4f8;--good:#53d19b;--good-soft:#11301f;--warn:#f2b27a;--warn-soft:#38230f;--bad:#f08a80;--bad-soft:#3a1816;--side:#080b11;--side-ink:#a9b1bf;--side-hi:hsla(0,0%,100%,.08);--hero:#1b2333;--chip:#222b3a;color-scheme:dark}}*{box-sizing:border-box}body,html{margin:0}body{background:var(--bg);color:var(--ink);font-family:var(--f-body);font-size:15px;line-height:1.45;font-feature-settings:"tnum";font-variant-numeric:tabular-nums}h1,h2,h3{font-family:var(--f-head);letter-spacing:-.02em;margin:0;text-wrap:balance}a{color:var(--accent)}button,input,select,textarea{font:inherit;color:inherit}:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.muted{color:var(--muted)}.small{font-size:13px}.app{min-height:100vh}.app,.side{display:flex}.side{width:232px;flex:none;background:var(--side);padding:22px 14px;flex-direction:column;gap:4px;position:-webkit-sticky;position:sticky;top:0;height:100vh;overflow:auto}.side .brand{gap:10px;padding:0 12px 18px;color:#fff;font-weight:700}.logo,.side .brand{display:flex;align-items:center}.logo{width:30px;height:30px;border-radius:9px;background:var(--accent);color:var(--on-accent);justify-content:center;font-family:var(--f-head);font-weight:800;flex:none}.nav{display:flex;align-items:center;gap:12px;padding:11px 12px;border-radius:10px;color:var(--side-ink);font-weight:500;text-decoration:none}.nav.on,.nav:hover{background:var(--side-hi);color:#fff}.side .foot{margin-top:auto;padding:12px;color:var(--side-ink);font-size:13px}.side .foot button{background:none;border:0;color:var(--side-ink);text-decoration:underline;cursor:pointer;padding:0}.badge{margin-left:auto;font-size:11px;font-weight:700;background:var(--bad);color:#fff;padding:2px 7px;border-radius:999px}.main{flex:1 1;min-width:0;padding:28px 32px 56px}.wrap{max-width:1120px;display:flex;flex-direction:column;gap:20px}.tabbar{display:none}@media (max-width:760px){.side{display:none}.main{padding:16px max(16px,env(safe-area-inset-left,0px)) 96px}.tabbar{display:flex;position:fixed;left:0;right:0;bottom:0;z-index:10;background:var(--surface);border-top:1px solid var(--line);padding:6px 6px calc(8px + env(safe-area-inset-bottom, 0px))}.tabbar a{flex:1 1;display:flex;flex-direction:column;align-items:center;gap:3px;color:var(--muted);font-size:11px;font-weight:600;text-decoration:none;padding:6px 0;min-height:48px;justify-content:center}.tabbar a.on{color:var(--accent)}.tabbar .plus{width:46px;height:46px;border-radius:14px;background:var(--accent);color:var(--on-accent);display:flex;align-items:center;justify-content:center}.head h1{font-size:24px}}.head{display:flex;flex-wrap:wrap;gap:14px;justify-content:space-between;align-items:flex-end}.head h1{font-size:30px}.card{background:var(--surface);border:1px solid var(--line);border-radius:16px}.pad{padding:20px}.h3{font-family:var(--f-head);font-weight:700;font-size:18px}.row{gap:12px}.between,.row{display:flex;align-items:center}.between{justify-content:space-between;gap:10px;flex-wrap:wrap}.grid{display:grid;grid-gap:12px;gap:12px;grid-template-columns:repeat(auto-fit,minmax(170px,1fr))}.big{font-family:var(--f-head);font-size:26px;letter-spacing:-.02em}.big,.btn{font-weight:700}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:0;border-radius:12px;padding:12px 18px;font-size:15px;cursor:pointer;min-height:46px;text-decoration:none;white-space:nowrap}.btn.primary{background:var(--accent);color:var(--on-accent)}.btn.ghost{background:var(--surface);color:var(--ink);border:1px solid var(--line)}.btn.dark{background:var(--ink)}.btn.dark,.btn.good{color:var(--surface)}.btn.good{background:var(--good)}.btn.sm{padding:8px 13px;min-height:38px;font-size:14px;border-radius:10px}.btn.block{width:100%}.pill{display:inline-block;font-size:12px;font-weight:600;padding:4px 10px;border-radius:999px;white-space:nowrap}.p-good{background:var(--good-soft);color:var(--good)}.p-warn{background:var(--warn-soft);color:var(--warn)}.p-bad{background:var(--bad-soft);color:var(--bad)}.p-acc{background:var(--accent-soft);color:var(--accent-ink)}.p-mute{background:var(--chip);color:var(--muted)}.item{display:flex;align-items:center;gap:14px;padding:14px 20px;border-top:1px solid var(--line2);flex-wrap:wrap;color:inherit;text-decoration:none}a.item:hover{background:var(--line2)}.dot{width:10px;height:10px;border-radius:50%;flex:none}.scroll-x{overflow-x:auto}table.t{width:100%;border-collapse:collapse}table.t th{text-align:left;font-size:13px;font-weight:600;color:var(--muted);padding:11px 16px;border-bottom:1px solid var(--line);white-space:nowrap}table.t td{padding:12px 16px;border-bottom:1px solid var(--line2);white-space:nowrap}table.t .r{text-align:right}tr.total{background:var(--line2);font-weight:800}tr.profit{background:var(--good-soft);font-weight:800}tr.sub td:first-child{padding-left:36px;color:var(--muted)}tr.sub td{color:var(--muted);font-weight:500}.bar{height:10px;background:var(--line2);overflow:hidden}.bar,.bar>span{border-radius:999px}.bar>span{display:block;height:100%;background:var(--accent)}.pulse{background:var(--hero);color:#fff;border-radius:18px;padding:22px;display:flex;flex-direction:column;gap:16px}.pulse .tiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));grid-gap:14px;gap:14px}.pulse .k,.pulse .s{font-size:13px;color:var(--hero-muted)}.pulse .v{font-family:var(--f-head);font-size:26px;font-weight:700}.chips{display:flex;flex-wrap:wrap;gap:8px}.chip{border:1px solid var(--line);background:var(--surface);border-radius:12px;padding:9px 13px;font-weight:600;font-size:14px;cursor:pointer;min-height:42px;color:var(--ink);text-decoration:none;display:inline-flex;flex-direction:column;justify-content:center}.chip.on,.chip:has(input:checked){border-color:var(--accent);box-shadow:inset 0 0 0 1px var(--accent);background:var(--accent-soft);color:var(--accent-ink)}.chip input{position:absolute;opacity:0;pointer-events:none}.chip small{font-weight:500;font-size:12px;color:var(--muted)}.field{display:flex;flex-direction:column;gap:6px;font-size:13px;font-weight:600;color:var(--muted)}.field input,.field select,.field textarea{font-size:16px;font-weight:500;color:var(--ink);padding:11px 14px;border:1px solid var(--line);border-radius:12px;background:var(--surface);min-height:46px;width:100%}.err{color:var(--bad)}.err,.ok{font-size:14px;font-weight:600}.ok{color:var(--good)}.form{display:flex;flex-direction:column;gap:16px}.center{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:24px 16px}.seg{display:inline-flex;flex-wrap:wrap;background:var(--chip);border-radius:10px;padding:3px;gap:2px}.seg a,.seg button{border:0;background:transparent;padding:8px 14px;border-radius:8px;font-size:14px;font-weight:600;color:var(--muted);cursor:pointer;min-height:38px;text-decoration:none;display:inline-flex;align-items:center}.seg .on{color:var(--ink);box-shadow:0 1px 2px rgba(15,23,41,.12)}.seg .on,.switch{background:var(--surface)}.switch{display:flex;align-items:center;gap:12px;padding:14px;border:1px solid var(--line);border-radius:12px;cursor:pointer;width:100%;text-align:left}.switch input{position:absolute;opacity:0;pointer-events:none}.switch .knob{width:46px;height:28px;border-radius:999px;background:var(--chip);position:relative;flex:none;transition:background .15s}.switch .knob:after{content:"";position:absolute;top:3px;left:3px;width:22px;height:22px;border-radius:50%;background:var(--surface);box-shadow:0 1px 2px rgba(0,0,0,.25);transition:left .15s}.switch.on .knob,.switch:has(input:checked) .knob{background:var(--accent)}.switch.on .knob:after,.switch:has(input:checked) .knob:after{left:21px}.sum{background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:16px;display:flex;flex-direction:column;gap:9px}.sum .ln{display:flex;justify-content:space-between;gap:10px}.notice{background:var(--accent-soft);color:var(--accent-ink);border-radius:12px;padding:14px 16px;font-weight:600;line-height:1.5}.linkbtn{border:0;background:none;padding:0;font:inherit;font-weight:600;color:var(--ink);cursor:pointer;text-align:left;text-decoration:none}.code{font-family:ui-monospace,Menlo,monospace;font-size:13px;background:var(--line2);padding:8px 10px;border-radius:8px;word-break:break-all}