:root{--bg: #f6f7f9;--surface: #ffffff;--surface-2: #f1f3f6;--ink: #111827;--ink-2: #4b5563;--ink-3: #8a919e;--line: #e5e7eb;--brand: #2a0179;--brand-ink: #ffffff;--orange: #fe4505;--orange-soft: #ffe6dc;--accent: #16a34a;--accent-soft: #dcfce7;--blue: #2563eb;--blue-soft: #dbeafe;--amber: #b45309;--amber-soft: #fef3c7;--red: #dc2626;--red-soft: #fee2e2;--violet: #7c3aed;--violet-soft: #ede9fe;--radius: 14px;--shadow: 0 1px 2px rgb(16 24 40 / 6%), 0 1px 3px rgb(16 24 40 / 8%);--nav-h: 64px;color-scheme:light}@media(prefers-color-scheme:dark){:root{--bg: #0d1117;--surface: #161b22;--surface-2: #1f252e;--ink: #e6edf3;--ink-2: #aab3bf;--ink-3: #7d8590;--line: #2a313c;--brand: #fe5a1f;--brand-ink: #ffffff;--orange: #ff6a33;--orange-soft: #3d1a0c;--accent: #22c55e;--accent-soft: #12351f;--blue: #60a5fa;--blue-soft: #172a46;--amber: #f59e0b;--amber-soft: #3a2a0a;--red: #f87171;--red-soft: #3d1414;--violet: #a78bfa;--violet-soft: #2a1f4a;--shadow: none;color-scheme:dark}}*{box-sizing:border-box}html,body{margin:0;background:var(--bg);color:var(--ink)}body{font:15px/1.45 system-ui,-apple-system,Segoe UI,Roboto,Noto Sans,sans-serif;-webkit-font-smoothing:antialiased;-webkit-tap-highlight-color:transparent}a{color:inherit;text-decoration:none}button,input,select,textarea{font:inherit;color:inherit}h1,h2,h3{margin:0;line-height:1.2}h1{font-size:22px;font-weight:700;letter-spacing:-.01em}h2{font-size:17px;font-weight:650}h3{font-size:15px;font-weight:600}.muted{color:var(--ink-2)}.faint{color:var(--ink-3);font-size:13px}.num{font-variant-numeric:tabular-nums}.app{display:flex;min-height:100vh}.sidebar{display:none}.main{flex:1;min-width:0;padding-bottom:calc(var(--nav-h) + env(safe-area-inset-bottom) + 16px)}.topbar{position:sticky;top:0;z-index:20;display:flex;align-items:center;gap:12px;padding:calc(10px + env(safe-area-inset-top)) 16px 10px;background:color-mix(in srgb,var(--bg) 88%,transparent);backdrop-filter:blur(10px);border-bottom:1px solid var(--line)}.topbar .title{flex:1;min-width:0;font-weight:650;font-size:17px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.page{padding:16px;max-width:1200px;margin:0 auto;display:grid;gap:16px}.bottomnav{position:fixed;bottom:0;left:0;right:0;z-index:30;display:grid;grid-template-columns:repeat(5,1fr);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)}.bottomnav a{display:grid;place-items:center;align-content:center;gap:2px;font-size:11px;color:var(--ink-3)}.bottomnav a.active{color:var(--brand);font-weight:700}.bottomnav a.active svg{stroke:var(--orange)}.bottomnav svg{width:22px;height:22px}@media(min-width:900px){.bottomnav{display:none}.main{padding-bottom:24px}.sidebar{display:flex;flex-direction:column;gap:2px;width:232px;flex-shrink:0;padding:18px 12px;position:sticky;top:0;height:100vh;background:var(--surface);border-right:1px solid var(--line)}.sidebar .brand{display:grid;gap:2px;padding:2px 8px 18px}.sidebar .brand img{width:196px;height:auto}.sidebar .brand span{font-size:11px;white-space:nowrap;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--ink-3);padding-left:2px}.sidebar a{display:flex;align-items:center;gap:10px;padding:9px 10px;border-radius:10px;color:var(--ink-2)}.sidebar a:hover{background:var(--surface-2)}.sidebar a.active{background:var(--orange-soft);color:var(--ink);font-weight:600;box-shadow:inset 3px 0 0 var(--orange)}.sidebar svg{width:19px;height:19px}.sidebar .spacer{flex:1}.page{padding:24px}.topbar{padding:14px 24px}}.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow)}.card.pad{padding:16px}.card-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:14px 16px;border-bottom:1px solid var(--line)}.grid{display:grid;gap:12px}.grid.cols-2{grid-template-columns:repeat(auto-fill,minmax(min(100%,320px),1fr))}.grid.cols-3{grid-template-columns:repeat(auto-fill,minmax(min(100%,260px),1fr))}.kpis{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:10px}.kpi{padding:12px 14px}.kpi .v{font-size:24px;font-weight:700;font-variant-numeric:tabular-nums}.kpi .l{font-size:12px;color:var(--ink-2)}.row{display:flex;align-items:center;gap:10px}.row.wrap{flex-wrap:wrap}.row.between{justify-content:space-between}.stack{display:grid;gap:8px}.list>*+*{border-top:1px solid var(--line)}.item{display:flex;gap:12px;align-items:center;padding:12px 16px;min-height:56px}a.item:hover,button.item:hover{background:var(--surface-2)}button.item{width:100%;border:0;background:none;text-align:left;cursor:pointer}.item .grow{flex:1;min-width:0}.ellipsis{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.section-title{display:flex;align-items:center;justify-content:space-between;gap:8px}.btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:40px;padding:0 14px;border-radius:10px;border:1px solid var(--line);background:var(--surface);font-weight:600;font-size:14px;cursor:pointer;white-space:nowrap}.btn:hover{background:var(--surface-2)}.btn:disabled{opacity:.5;cursor:default}.btn.primary{background:var(--brand);color:var(--brand-ink);border-color:var(--brand)}.btn.green{background:var(--accent);color:#fff;border-color:var(--accent)}.btn.danger{color:var(--red)}.btn.big{min-height:52px;font-size:16px;border-radius:12px}.btn.sm{min-height:32px;padding:0 10px;font-size:13px}.btn.icon{width:40px;padding:0}.btn svg{width:18px;height:18px}.iconbtn{position:relative;display:grid;place-items:center;width:40px;height:40px;border-radius:10px;border:0;background:none;cursor:pointer}.iconbtn:hover{background:var(--surface-2)}.iconbtn svg{width:22px;height:22px}.dot{position:absolute;top:6px;right:6px;min-width:17px;height:17px;padding:0 4px;border-radius:9px;background:var(--red);color:#fff;font-size:11px;font-weight:700;display:grid;place-items:center}.field{display:grid;gap:5px}.field>span{font-size:13px;font-weight:600;color:var(--ink-2)}.input,select.input,textarea.input{width:100%;min-height:44px;padding:10px 12px;border-radius:10px;border:1px solid var(--line);background:var(--surface);font-size:16px}textarea.input{min-height:84px;resize:vertical}.input:focus{outline:2px solid var(--blue);outline-offset:-1px;border-color:transparent}.form{display:grid;gap:14px}.form .two{display:grid;grid-template-columns:1fr 1fr;gap:12px}.chips{display:flex;gap:8px;overflow-x:auto;padding-bottom:2px;scrollbar-width:none}.chips::-webkit-scrollbar{display:none}.chip{flex-shrink:0;padding:7px 12px;border-radius:999px;border:1px solid var(--line);background:var(--surface);font-size:13px;font-weight:600;cursor:pointer;color:var(--ink-2)}.chip.on{background:var(--brand);color:var(--brand-ink);border-color:var(--brand)}.tabs{display:flex;gap:4px;overflow-x:auto;border-bottom:1px solid var(--line);scrollbar-width:none}.tabs button{flex-shrink:0;padding:10px 12px;border:0;background:none;border-bottom:2px solid transparent;font-weight:600;color:var(--ink-3);cursor:pointer}.tabs button.on{color:var(--ink);border-bottom-color:var(--orange)}.checklist{display:grid;gap:6px;max-height:240px;overflow:auto;padding:4px;border:1px solid var(--line);border-radius:10px}.checklist label{display:flex;gap:8px;align-items:center;padding:6px 8px;border-radius:8px}.checklist label:hover{background:var(--surface-2)}.checklist input{width:18px;height:18px}.pill{display:inline-flex;align-items:center;gap:5px;padding:2px 9px;border-radius:999px;font-size:12px;font-weight:650;white-space:nowrap;background:var(--surface-2);color:var(--ink-2)}.pill.green{background:var(--accent-soft);color:var(--accent)}.pill.blue{background:var(--blue-soft);color:var(--blue)}.pill.amber{background:var(--amber-soft);color:var(--amber)}.pill.red{background:var(--red-soft);color:var(--red)}.pill.violet{background:var(--violet-soft);color:var(--violet)}.bar{height:8px;border-radius:99px;background:var(--surface-2);overflow:hidden}.bar>i{display:block;height:100%;border-radius:99px;background:var(--accent);transition:width .3s}.bar.thin{height:5px}.ring{--p: 0;--c: var(--accent);width:56px;height:56px;border-radius:50%;flex-shrink:0;display:grid;place-items:center;background:conic-gradient(var(--c) calc(var(--p) * 1%),var(--surface-2) 0)}.ring>span{width:44px;height:44px;border-radius:50%;background:var(--surface);display:grid;place-items:center;font-size:13px;font-weight:700}.avatar{width:36px;height:36px;border-radius:50%;display:grid;place-items:center;font-weight:700;font-size:13px;flex-shrink:0;background:var(--surface-2);color:var(--ink-2)}.center-swatch{width:44px;height:44px;border-radius:12px;display:grid;place-items:center;font-weight:800;font-size:13px;color:#fff;flex-shrink:0}.overlay{position:fixed;inset:0;z-index:50;background:#00000073;display:flex;align-items:flex-end;justify-content:center;animation:fade .15s}.sheet{width:100%;max-width:640px;max-height:92vh;overflow:auto;background:var(--surface);border-radius:18px 18px 0 0;padding:8px 16px calc(20px + env(safe-area-inset-bottom));animation:up .2s ease-out}.sheet .grab{width:40px;height:4px;border-radius:4px;background:var(--line);margin:4px auto 12px}.sheet-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}@media(min-width:700px){.overlay{align-items:center}.sheet{border-radius:18px;padding:20px 24px}.sheet .grab{display:none}}@keyframes fade{0%{opacity:0}}@keyframes up{0%{transform:translateY(30px);opacity:.6}}.toast{position:fixed;left:50%;bottom:calc(var(--nav-h) + 20px + env(safe-area-inset-bottom));transform:translate(-50%);z-index:70;background:var(--ink);color:var(--bg);padding:10px 16px;border-radius:10px;font-weight:600;font-size:14px;max-width:calc(100% - 32px);box-shadow:0 8px 24px #0003}.toast.err{background:var(--red);color:#fff}.empty{padding:28px 16px;text-align:center;color:var(--ink-3)}.skeleton{background:linear-gradient(90deg,var(--surface-2) 25%,var(--surface) 50%,var(--surface-2) 75%);background-size:200% 100%;animation:sk 1.2s infinite;border-radius:10px}@keyframes sk{to{background-position:-200% 0}}.fab{position:fixed;right:16px;bottom:calc(var(--nav-h) + 16px + env(safe-area-inset-bottom));z-index:25;width:56px;height:56px;border-radius:18px;border:0;background:var(--orange);color:#fff;display:grid;place-items:center;box-shadow:0 8px 20px #fe450559;cursor:pointer}.fab svg{width:26px;height:26px}@media(min-width:900px){.fab{bottom:24px;right:24px}}.status-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}.status-btn{min-height:64px;border-radius:14px;border:2px solid var(--line);background:var(--surface);font-weight:700;font-size:15px;cursor:pointer;display:grid;place-items:center;gap:2px}.status-btn small{font-weight:500;font-size:12px;color:var(--ink-3)}.status-btn.start{border-color:var(--blue);color:var(--blue)}.status-btn.done{border-color:var(--accent);background:var(--accent);color:#fff}.status-btn.done small{color:#e8fff0}.status-btn.block{border-color:var(--red);color:var(--red)}.status-btn.verify{border-color:var(--violet);color:var(--violet)}input[type=range]{width:100%;accent-color:var(--accent);height:32px}.viewer{position:fixed;inset:0;z-index:60;background:#1b1f24;display:flex;flex-direction:column;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}.viewer-bar{display:flex;align-items:center;gap:8px;padding:calc(8px + env(safe-area-inset-top)) 10px 8px;color:#fff;background:#0f1215}.viewer-bar .t{flex:1;min-width:0;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px}.viewer-bar button,.viewer-bar select{background:#2a3038;color:#fff;border:0;border-radius:8px;min-height:36px;padding:0 10px;font-weight:600}.viewer-stage{flex:1;position:relative;overflow:hidden;touch-action:none;cursor:grab}.viewer-stage canvas{position:absolute;inset:0;width:100%;height:100%}.viewer-stage.hidden canvas{filter:blur(24px)}.viewer-hint{white-space:nowrap;position:absolute;left:50%;bottom:calc(14px + env(safe-area-inset-bottom));transform:translate(-50%);color:#cbd5e1;font-size:12px;background:#0000007f;padding:6px 10px;border-radius:8px;pointer-events:none}.thumb{aspect-ratio:4/3;border-radius:10px;background:var(--surface-2) center/cover no-repeat;border:1px solid var(--line)}.login-wrap{min-height:100vh;display:grid;place-items:center;padding:20px;background:radial-gradient(120% 80% at 50% 0%,#4a1bb0,#2a0179 55%,#160043)}.login{width:100%;max-width:400px}.login-logo{display:block;width:min(300px,80%);height:auto;margin:0 auto 4px}.login-tag{text-align:center;font-weight:700;letter-spacing:.1em;text-transform:uppercase;font-size:12px;color:var(--ink-3)}.topbar .brand-mark{height:32px;width:auto}.empty .mascot{width:96px;height:auto;display:block;margin:0 auto 8px;opacity:.95}@media print{body{display:none!important}}.hide-sm{display:none}@media(min-width:700px){.hide-sm{display:initial}.hide-lg{display:none}}.page,.stack{grid-template-columns:minmax(0,1fr)}.row>*,.item>*{min-width:0}.pill,.btn,.ring,.avatar,.center-swatch,.iconbtn{flex-shrink:0}.mobile-only{display:initial}@media(min-width:900px){.mobile-only{display:none}}
