:root{--bg:#F2F2F0;--card:#fff;--ink:#161616;--mute:#6B6B68;--line:#ECECE8;--acc:#FFAB00;--ok:#14A06F;--warn:#E89A00;--bad:#D23B24;--r:24px}
*{box-sizing:border-box;margin:0;padding:0;-webkit-tap-highlight-color:transparent}
html,body{background:var(--bg)}
body{font-family:Inter,system-ui,sans-serif;color:var(--ink);font-size:16px;line-height:1.45;-webkit-font-smoothing:antialiased;overscroll-behavior-y:none}
button{font:inherit;color:inherit;border:0;background:none;cursor:pointer}
a{color:inherit;text-decoration:none}
.ic{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;flex:none}
.app{max-width:720px;margin:0 auto;padding:12px 16px calc(110px + env(safe-area-inset-bottom))}
.top{display:flex;align-items:center;gap:10px;min-height:52px;margin-bottom:8px;position:sticky;top:0;z-index:5;background:var(--bg);padding-top:env(safe-area-inset-top)}
.top h1{flex:1;font-size:26px;letter-spacing:-.03em;font-weight:800;line-height:1.1}
.top .sub2{font-size:13px;color:var(--mute);font-weight:500;letter-spacing:0;display:block;margin-top:2px}
.rbtn{width:44px;height:44px;border-radius:50%;background:#fff;display:grid;place-items:center;flex:none}
.av{width:44px;height:44px;border-radius:50%;background:var(--ink);color:#fff;font-weight:700;display:grid;place-items:center;flex:none}
.card{background:#fff;border-radius:var(--r);padding:18px}
.stack>*+*{margin-top:10px}
.h2{font-size:15px;font-weight:700;margin:22px 4px 10px;display:flex;justify-content:space-between;align-items:center}
.h2 small{color:var(--mute);font-weight:500;font-size:14px}
.mute{color:var(--mute)}
.sm{font-size:14px}
.xs{font-size:12px}
.big{font-size:40px;font-weight:800;letter-spacing:-.035em;line-height:1.05}
.tiles{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:10px}
.tile{background:#fff;border-radius:var(--r);padding:16px;text-align:left;display:flex;flex-direction:column;gap:6px;min-height:108px}
.tile b{font-size:26px;letter-spacing:-.02em;line-height:1.1}
.tile span{font-size:14px;color:var(--mute)}
.tile.hot b{color:var(--ink)}
.tile.hot{box-shadow:inset 0 0 0 2px var(--acc)}
.list{background:#fff;border-radius:var(--r);overflow:hidden}
.row{display:flex;align-items:center;gap:12px;padding:14px 16px;width:100%;text-align:left;border-bottom:1px solid var(--line)}
.row:last-child{border-bottom:0}
.row .m{flex:1;min-width:0}
.row .t{font-weight:600;line-height:1.3;overflow:hidden;text-overflow:ellipsis}
.row .s{font-size:13px;color:var(--mute);margin-top:1px}
.row .v{font-weight:700;text-align:right;white-space:nowrap}
.row .q{font-size:24px;font-weight:800;letter-spacing:-.02em;min-width:36px;text-align:right}
.dot{width:9px;height:9px;border-radius:50%;flex:none;background:var(--ok)}
.dot.low{background:var(--warn)}.dot.out{background:var(--bad)}.dot.ord{background:#BDBDB8}
.chips{display:flex;gap:6px;overflow-x:auto;scrollbar-width:none;margin:0 -16px 10px;padding:0 16px}
.chips::-webkit-scrollbar{display:none}
.chip{flex:none;height:36px;padding:0 14px;border-radius:999px;background:#fff;font-size:14px;font-weight:500;display:inline-flex;align-items:center;gap:6px}
.chip.on{background:var(--ink);color:#fff}
.chip i{font-style:normal;font-size:12px;opacity:.6}
.badge{display:inline-flex;align-items:center;height:24px;padding:0 10px;border-radius:999px;font-size:12px;font-weight:600;background:var(--bg);white-space:nowrap}
.badge.acc{background:#FFF1CC}.badge.ok{background:#DDF3EA;color:#0B6B49}.badge.bad{background:#FBE3DF;color:#9E2615}.badge.grey{background:#EDEDEA;color:var(--mute)}
.btn{display:flex;align-items:center;justify-content:center;gap:8px;height:52px;padding:0 20px;border-radius:999px;font-weight:600;width:100%;transition:transform .12s}
.btn:active{transform:scale(.98)}
.btn:disabled{opacity:.5}
.b-ink{background:var(--ink);color:#fff}
.b-acc{background:var(--acc)}
.b-line{background:#fff;box-shadow:inset 0 0 0 1.5px var(--line)}
.b-soft{background:var(--bg)}
.b-bad{background:var(--bad);color:#fff}
.b-txt{height:44px;color:var(--mute);font-weight:500}
.b-txt.bad{color:var(--bad)}
.btns{display:flex;gap:8px}
.btns>*{flex:1;min-width:0}
.btns .btn{font-size:15px;padding:0 12px;white-space:nowrap;gap:6px}
.search{display:flex;align-items:center;gap:10px;background:#fff;border-radius:999px;padding:0 16px;height:48px;margin-bottom:10px}
.search input{flex:1;border:0;outline:0;font:inherit;font-size:16px;background:none;min-width:0}
.fld{display:block;margin-top:12px}
.fld>span{display:block;font-size:13px;color:var(--mute);margin:0 0 6px 4px}
.fld input,.fld select,.fld textarea{width:100%;font:inherit;font-size:16px;border:0;background:var(--bg);border-radius:14px;padding:13px 14px;color:var(--ink);outline:none;-webkit-appearance:none;appearance:none}
.card .fld input,.card .fld select,.card .fld textarea{background:var(--bg)}
.fld textarea{min-height:76px;resize:vertical}
.fld input:focus,.fld select:focus,.fld textarea:focus{box-shadow:0 0 0 2px var(--ink)}
.two{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.two .fld{margin-top:12px}
.seg{display:flex;gap:6px;flex-wrap:wrap}
.seg button{padding:10px 14px;border-radius:999px;background:var(--bg);font-size:15px;font-weight:500}
.seg button.on{background:var(--ink);color:#fff}
.chk{display:flex;align-items:center;gap:10px;margin-top:14px;font-size:15px}
.chk input{width:22px;height:22px;accent-color:var(--ink)}
.bar{height:10px;border-radius:5px;background:var(--bg);overflow:hidden;margin:10px 0 6px}
.bar i{display:block;height:100%;background:var(--ok);border-radius:5px}
.kv{display:flex;justify-content:space-between;gap:12px;padding:8px 0;font-size:15px}
.kv span{color:var(--mute)}
.kv b{font-weight:600;text-align:right}
.sep{height:1px;background:var(--line);margin:6px 0}
.empty{background:#fff;border-radius:var(--r);padding:26px 20px;text-align:center}
.empty b{display:block;font-size:17px;margin-bottom:4px}
.empty p{color:var(--mute);font-size:14px;margin-bottom:14px}
.warn{background:#FFF1CC;border-radius:14px;padding:12px 14px;font-size:14px;display:flex;gap:10px;align-items:flex-start;margin-top:10px}
.warn .ic{color:#A86F00;margin-top:1px}
.qty{display:inline-flex;align-items:center;background:var(--bg);border-radius:999px}
.qty button{width:36px;height:36px;display:grid;place-items:center}
.qty .ic{width:16px;height:16px}
.qty span{min-width:24px;text-align:center;font-weight:700}
.back{display:inline-flex;align-items:center;gap:4px;height:44px;font-weight:600;margin-left:-6px}
.callrow{display:flex;gap:8px;margin-top:14px}
.callrow a{flex:1;height:46px;border-radius:999px;background:var(--bg);display:flex;align-items:center;justify-content:center;gap:8px;font-weight:600;font-size:15px}
.dayh{font-size:13px;font-weight:700;color:var(--mute);margin:18px 6px 8px;text-transform:uppercase;letter-spacing:.04em}
.pickl{max-height:260px;overflow:auto;margin-top:8px;border-radius:16px;background:var(--bg)}
.pickl .row{border-bottom:1px solid #E6E6E2}
.tabbar{position:fixed;left:0;right:0;bottom:0;z-index:20;background:#fff;border-top:1px solid var(--line);padding:6px 8px calc(6px + env(safe-area-inset-bottom));display:flex}
.tabbar button{flex:1;display:flex;flex-direction:column;align-items:center;gap:3px;font-size:11px;font-weight:500;color:var(--mute);padding:6px 0;border-radius:16px}
.tabbar button.on{color:var(--ink);background:var(--bg);font-weight:600}
.ov{position:fixed;inset:0;background:rgba(22,22,22,.42);z-index:40;opacity:0;pointer-events:none;transition:opacity .2s}
.ov.on{opacity:1;pointer-events:auto}
.sheet{position:fixed;left:0;right:0;bottom:0;z-index:41;background:#fff;border-radius:26px 26px 0 0;max-height:92vh;overflow:auto;padding:8px 18px calc(18px + env(safe-area-inset-bottom));transform:translateY(105%);transition:transform .22s ease;visibility:hidden;max-width:720px;margin:0 auto}
.sheet.on{transform:none;visibility:visible}
.sheet .grab{width:40px;height:5px;border-radius:3px;background:#DCDCD8;margin:0 auto 12px}
.sheet h3{font-size:21px;letter-spacing:-.02em;margin-bottom:4px}
.sheet .acts{margin-top:18px;display:flex;flex-direction:column;gap:8px}
.toast{position:fixed;left:50%;bottom:calc(96px + env(safe-area-inset-bottom));transform:translate(-50%,16px);background:var(--ink);color:#fff;padding:11px 18px;border-radius:999px;font-size:14px;font-weight:500;opacity:0;transition:.2s;z-index:60;pointer-events:none;white-space:nowrap}
.toast.on{opacity:1;transform:translate(-50%,0)}
.login{min-height:100vh;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:24px;text-align:center}
.login img{height:30px;margin-bottom:8px}
.dots{display:flex;gap:14px;margin:30px 0 8px;justify-content:center}
.dots i{width:14px;height:14px;border-radius:50%;background:#DADAD6}
.dots i.f{background:var(--ink)}
.dots.shake{animation:sh .35s}
@keyframes sh{25%{transform:translateX(-8px)}75%{transform:translateX(8px)}}
.pad{display:grid;grid-template-columns:repeat(3,76px);gap:14px;margin-top:22px}
.pad button{height:76px;border-radius:50%;background:#fff;font-size:26px;font-weight:600}
.pad button:active{background:#E8E8E4}
.loading{min-height:60vh;display:grid;place-items:center;color:var(--mute)}
@media (min-width:760px){.app{padding-top:20px}.tabbar{left:50%;transform:translateX(-50%);bottom:12px;width:560px;border-radius:999px;border:0;box-shadow:0 8px 30px rgba(0,0,0,.08);padding:6px}.tabbar button{border-radius:999px}.sheet{bottom:12px;border-radius:26px;left:12px;right:12px}}
