:root{--bg:#f3f6fb;--card:#fff;--ink:#0f172a;--mut:#64748b;--line:#e4eaf2;--bd:#dbe3ee;--pri:#1d4ed8;--pri2:#0ea5e9;--ok:#16a34a;--okbg:#dcfce7;--warn:#d97706;--warnbg:#fef3c7;--bad:#dc2626;--badbg:#fee2e2;--r:20px;
  --safe-b:env(safe-area-inset-bottom,0px);--safe-t:env(safe-area-inset-top,0px)}
/* qorong'i mavzu */
:root[data-theme=dark]{--bg:#0b1220;--card:#121a2b;--ink:#e5ecf6;--mut:#94a3b8;--line:#1f2a40;--bd:#2a3956;--okbg:#0f2e1c;--warnbg:#3a2a0a;--badbg:#3a1414}
:root[data-theme=dark] .hcard{background:linear-gradient(135deg,#13254a,#0f2a3d 45%,#1f1a3d);border-color:#24365c}
:root[data-theme=dark] .hcard .lbl,:root[data-theme=dark] .trio span,:root[data-theme=dark] .sub3 span,:root[data-theme=dark] .two span,:root[data-theme=dark] .kp span,:root[data-theme=dark] .hcard .big small{color:#a9b8d0}
:root[data-theme=dark] .sub3,:root[data-theme=dark] .seg.mini{background:rgba(255,255,255,.06)}
:root[data-theme=dark] .store,:root[data-theme=dark] .sync,:root[data-theme=dark] .top .back,:root[data-theme=dark] .nav,:root[data-theme=dark] .card7,:root[data-theme=dark] .sbox,:root[data-theme=dark] .inp,
:root[data-theme=dark] .cats button,:root[data-theme=dark] .pc,:root[data-theme=dark] .prow,:root[data-theme=dark] .sugg,:root[data-theme=dark] .pill,:root[data-theme=dark] .btn.sq,:root[data-theme=dark] .chips button,
:root[data-theme=dark] .qin,:root[data-theme=dark] .price,:root[data-theme=dark] .qty input,:root[data-theme=dark] .pay input{background:#121a2b;color:var(--ink);border-color:var(--bd)}
:root[data-theme=dark] .top{background:rgba(11,18,32,.92)}:root[data-theme=dark] .ava{background:#e5ecf6;color:#0b1220}
:root[data-theme=dark] .btn{background:#1e2a42;color:var(--ink)}:root[data-theme=dark] .btn.ok{background:#16a34a;color:#fff}:root[data-theme=dark] .btn.acc,:root[data-theme=dark] .btn.grad{color:#fff}:root[data-theme=dark] .btn.pri{background:#e5ecf6;color:#0b1220}
:root[data-theme=dark] .btn.bad{background:#3a1414;color:#fca5a5}:root[data-theme=dark] .seg{background:#1a2438}:root[data-theme=dark] .seg button{color:#94a3b8}:root[data-theme=dark] .seg button.on{background:#2a3956;color:#fff}
:root[data-theme=dark] .k1,:root[data-theme=dark] .k2,:root[data-theme=dark] .k3,:root[data-theme=dark] .k4,:root[data-theme=dark] .qa button{background:#121a2b;border-color:#24365c}
:root[data-theme=dark] .pc.in{background:#0f2e1c}:root[data-theme=dark] .chip{background:#1e2a42}:root[data-theme=dark] .tags span{background:#1e2a42;color:#a9b8d0}
:root[data-theme=dark] .bars em{background:#24406e}:root[data-theme=dark] .sheet .grab{background:#2a3956}:root[data-theme=dark] .nav .navc span{border-color:var(--bg)}
:root[data-theme=dark] .f1,:root[data-theme=dark] .f2,:root[data-theme=dark] .f3{background:#121a2b}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html,body{margin:0;min-height:100%;background:var(--bg);color:var(--ink);font:15px/1.35 system-ui,-apple-system,"Segoe UI",Roboto,sans-serif}
button{font:inherit;cursor:pointer;color:inherit}input,select,textarea{font:inherit;color:inherit}
.boot{display:grid;place-items:center;height:100vh;font-weight:800;color:var(--mut)}
.money{font-variant-numeric:tabular-nums;font-weight:800}
.mut{color:var(--mut);font-size:13px}.small{font-size:12px}.red{color:var(--bad)!important}
.row{display:flex;align-items:center;gap:8px}.sp{flex:1;min-width:0}.right{text-align:right}
.g{color:#15803d}.b{color:#1d4ed8}.o{color:#c2410c}.p{color:#7c3aed}
/* ichki sahifa sarlavhasi */
.top{position:sticky;top:0;z-index:5;background:rgba(243,246,251,.92);backdrop-filter:blur(10px);padding:calc(10px + var(--safe-t)) 14px 10px;display:flex;align-items:center;gap:12px}
.top .back{width:44px;height:44px;border-radius:16px;border:1px solid var(--bd);background:#fff;font-size:22px;font-weight:700;display:grid;place-items:center}
.top .t{font-weight:900;font-size:21px;letter-spacing:-.3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.top .s{font-size:12px;color:var(--mut);font-weight:600}
.sync{border:1px solid var(--bd);border-radius:999px;padding:7px 11px;font-size:13px;font-weight:800;background:#fff;color:#334155;white-space:nowrap}
.sync.ok{color:#15803d}.sync.wait,.sync.off{background:var(--warnbg);color:#92400e;border-color:#fcd34d}.sync.err{background:var(--badbg);color:#991b1b;border-color:#fca5a5}
main{padding:6px 14px calc(110px + var(--safe-b))}
main.home{padding-top:calc(10px + var(--safe-t))}
/* pastki panel */
.nav{position:fixed;left:10px;right:10px;bottom:calc(8px + var(--safe-b));z-index:6;background:#fff;border:1px solid var(--line);border-radius:26px;display:grid;grid-template-columns:repeat(5,1fr);align-items:end;padding:6px 4px;box-shadow:0 10px 30px rgba(15,23,42,.12)}
.nav button{border:0;background:none;padding:6px 0 4px;font-size:11.5px;font-weight:800;color:#475569;display:flex;flex-direction:column;align-items:center;gap:3px}
.nav button b{font-size:21px;line-height:1}.nav button.on{color:var(--pri)}
.nav .navc{position:relative}.nav .navc span{display:grid;place-items:center;width:64px;height:64px;margin:-34px auto 0;border-radius:50%;background:linear-gradient(135deg,#0ea5e9,#2563eb);color:#fff;font-size:28px;box-shadow:0 10px 24px rgba(37,99,235,.45);border:5px solid var(--bg)}
/* bosh ekran */
.hbar{display:flex;align-items:center;gap:10px;margin-bottom:12px}
.store{flex:1;min-width:0;display:flex;align-items:center;gap:8px;background:#fff;border:1px solid var(--bd);border-radius:22px;padding:12px 16px;text-align:left}
.store b{flex:1;font-size:19px;font-weight:900;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.store span{color:var(--mut);font-size:18px}
.hbar .sync{height:48px;min-width:48px;border-radius:50%;padding:0 10px}
.ava{width:48px;height:48px;border-radius:50%;border:0;background:#0f172a;color:#fff;font-weight:900;font-size:18px;display:grid;place-items:center;flex:none;font-style:normal}
.bell{position:relative;width:48px;height:48px;border-radius:50%;border:1px solid var(--bd);background:var(--card);font-size:20px;display:grid;place-items:center;flex:none}
.bell.on{animation:ring .9s ease 2}.bell i{position:absolute;top:-3px;right:-3px;min-width:20px;height:20px;padding:0 5px;border-radius:999px;background:var(--bad);color:#fff;font:800 11px/20px system-ui;font-style:normal}
@keyframes ring{0%,100%{transform:rotate(0)}20%{transform:rotate(14deg)}40%{transform:rotate(-12deg)}60%{transform:rotate(8deg)}80%{transform:rotate(-5deg)}}
.nt{display:flex;gap:10px;padding:10px 0;border-bottom:1px solid var(--line);font-size:14px;font-weight:600}.nt:last-child{border-bottom:0}.nt .ic{font-size:20px;flex:none}.nt.new{font-weight:800}.nt.new .ic{filter:drop-shadow(0 0 4px #f59e0b)}
.ava.sm{width:38px;height:38px;font-size:15px;background:#e0e7ff;color:#3730a3}
.hcard{background:linear-gradient(135deg,#dbeafe 0%,#e0f2fe 45%,#ede9fe 100%);border:1px solid #c7d7f2;border-radius:26px;padding:16px 16px 14px;margin-bottom:6px}
.hcard.slim{margin-bottom:12px}
.hcard .lbl{font-weight:700;color:#475569;font-size:15px}
.datechip{background:#bae6fd;color:#0369a1;font-weight:800;font-size:13px;border-radius:999px;padding:5px 11px}
.hcard .big{font-size:38px;font-weight:900;letter-spacing:-1px;margin:8px 0 10px}.hcard .big small{font-size:18px;font-weight:800;color:#475569}
.trio{display:grid;grid-template-columns:repeat(3,1fr);border-top:2px solid rgba(100,116,139,.18);padding-top:10px}
.trio div{padding:0 8px;border-left:2px solid rgba(100,116,139,.18)}.trio div:first-child{border-left:0;padding-left:0}
.trio b{display:block;font-size:17px}.trio span{font-size:12.5px;color:#475569;font-weight:600}
.sub3{display:grid;grid-template-columns:repeat(3,1fr);gap:4px;background:rgba(255,255,255,.55);border-radius:16px;padding:10px 12px;margin-top:12px}
.sub3 span{display:block;font-size:12px;color:#475569;font-weight:600}.sub3 b{font-size:15px}
.seg.mini{margin:12px 0 0;background:rgba(255,255,255,.55)}
.sec{font-size:18px;font-weight:900;margin:18px 2px 10px;display:flex;align-items:center;gap:8px}
.kp4{display:grid;grid-template-columns:repeat(4,1fr);gap:9px}
.kp{border-width:1.5px;border-style:solid;border-radius:18px;padding:11px 9px;text-align:left;display:flex;flex-direction:column;gap:2px;min-height:104px}
.kp i{font-style:normal;font-size:24px;margin-bottom:auto}.kp b{font-size:15px;font-weight:900;white-space:nowrap;letter-spacing:-.3px}.kp span{font-size:12px;color:#475569;font-weight:600}
.k1{background:#efe9fd;border-color:#d8ccfa}.k2{background:#fdeee6;border-color:#f6d3bd}.k3{background:#e2f5ec;border-color:#bfe6d1}.k4{background:#fde8ea;border-color:#f6c6cc}
.banner{display:flex;align-items:center;gap:12px;width:100%;margin-top:14px;border:0;border-radius:22px;padding:15px 16px;text-align:left;color:#fff;background:linear-gradient(120deg,#0ea5e9,#2563eb 60%,#1d4ed8);box-shadow:0 10px 24px rgba(37,99,235,.3)}
.banner i{font-style:normal;font-size:26px;width:54px;height:54px;border-radius:16px;background:rgba(255,255,255,.2);display:grid;place-items:center}
.banner b{display:block;font-size:17px}.banner span{font-size:13px;opacity:.9}.banner em{font-style:normal;font-size:26px;opacity:.9}
.qa{display:grid;grid-template-columns:repeat(4,1fr);gap:9px}
.qa button{border-width:1.5px;border-style:solid;border-radius:18px;padding:12px 4px 10px;display:flex;flex-direction:column;align-items:center;gap:6px;min-height:92px;justify-content:center}
.qa i{font-style:normal;font-size:28px}.qa span{font-size:12.5px;font-weight:800;text-align:center;line-height:1.15}
.c1{background:#e7f6ee;border-color:#c3e8d3}.c2{background:#fbe9f1;border-color:#f3c9db}.c3{background:#e6f5f0;border-color:#bfe5d8}.c4{background:#eceefb;border-color:#d0d6f5}
.c5{background:#e5f3fb;border-color:#c2e2f4}.c6{background:#fdf0e6;border-color:#f6d7bf}.c7{background:#eef0f4;border-color:#d8dde6}.c8{background:#f3ebfd;border-color:#ddcbf7}
.card7{background:#fff;border:1px solid var(--line);border-radius:22px;padding:14px 16px;margin-top:16px}
.bars{display:grid;grid-template-columns:repeat(7,1fr);gap:8px;align-items:end;height:96px;margin-top:10px}
.bars div{display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:4px;height:100%}
.bars em{width:100%;max-width:28px;border-radius:8px 8px 4px 4px;background:#bfdbfe}.bars em.now{background:linear-gradient(#38bdf8,#2563eb)}
.bars span{font-size:11px;color:var(--mut);font-weight:700}
.foot{text-align:center;margin-top:14px;color:var(--mut);font-size:12px}
.note{margin:12px 0;border-radius:14px;padding:11px 13px;font-size:13px;font-weight:700}.note.warn{background:var(--warnbg);color:#92400e}.note.ok{background:var(--okbg);color:#14532d}
/* umumiy kartochka, tugma */
.card{background:var(--card);border:1px solid var(--line);border-radius:var(--r);padding:12px 14px;margin-bottom:12px}
.card.st{padding:12px}
.h{font-weight:900;font-size:16px;margin:2px 0 10px}
.inp{width:100%;padding:12px 13px;border:1.5px solid var(--bd);border-radius:14px;background:#fff;font-size:16px}
.inp:focus{outline:none;border-color:#60a5fa;box-shadow:0 0 0 3px rgba(96,165,250,.25)}
.fl{display:block;font-size:12.5px;font-weight:800;color:#475569;margin-bottom:10px}.fl .inp{margin-top:4px}
.row2{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.btn{border:0;border-radius:14px;padding:12px 14px;font-weight:800;background:#e8eef6;color:var(--ink)}
.btn.pri{background:#0f172a;color:#fff}.btn.ok{background:var(--ok);color:#fff}.btn.acc{background:#2563eb;color:#fff}.btn.bad{background:var(--badbg);color:var(--bad)}
.btn.grad{background:linear-gradient(120deg,#0ea5e9,#2563eb);color:#fff;box-shadow:0 8px 18px rgba(37,99,235,.28)}
.btn.w{width:100%}.btn.big{font-size:17px;padding:15px}.btn.sm{padding:7px 11px;font-size:13px;border-radius:11px}.btn.sq{width:52px;padding:12px 0;font-size:20px;border:1.5px solid var(--bd);background:#fff}
.btn:disabled{opacity:.45}.link{border:0;background:none;color:var(--pri);font-weight:800;padding:0;text-decoration:underline}
.chip{display:inline-block;border-radius:999px;padding:3px 9px;font-size:12px;font-weight:800;background:#e8eef6}
.chip.ok{background:var(--okbg);color:#166534}.chip.warn{background:var(--warnbg);color:#92400e}.chip.bad{background:var(--badbg);color:#991b1b}
.empty{padding:28px 10px;text-align:center;color:var(--mut)}
.seg{display:flex;background:#e8eef6;border-radius:14px;padding:4px;gap:4px;margin-bottom:12px}
.seg button{flex:1;border:0;background:none;border-radius:11px;padding:9px 4px;font-weight:800;font-size:13px;color:#475569}.seg button.on{background:#fff;color:var(--ink);box-shadow:0 1px 3px rgba(15,23,42,.12)}
.li{display:flex;align-items:center;gap:10px;padding:11px 2px;border-bottom:1px solid var(--line)}.li:last-child{border-bottom:0}
.li .a{flex:1;min-width:0}.li .a .n{font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.li.wide{width:100%;border:0;background:none;text-align:left;font-weight:800;font-size:16px}.li.wide.on{color:var(--pri)}
.qin{width:64px;padding:8px 6px;border:1.5px solid var(--bd);border-radius:10px;text-align:center}
/* sotuv: rasmsiz, ramkali, ixcham */
.search{display:flex;gap:8px;position:sticky;top:calc(64px + var(--safe-t));z-index:4;background:var(--bg);padding:2px 0 10px}
.sbox{flex:1;display:flex;align-items:center;gap:8px;background:#fff;border:1.5px solid var(--bd);border-radius:16px;padding:0 12px}
.sbox span{opacity:.6}.sbox input{flex:1;border:0;outline:0;padding:12px 0;font-size:16px;background:none;min-width:0}
.scan{width:52px;border:1.5px solid #bae6fd;border-radius:16px;background:#e0f2fe;color:#0369a1;font-size:22px;font-weight:900}.scan.on{background:#2563eb;color:#fff;border-color:#2563eb}
.cats{display:flex;gap:7px;overflow-x:auto;padding-bottom:10px;scrollbar-width:none}.cats::-webkit-scrollbar{display:none}
.cats button{border:1.5px solid var(--bd);background:#fff;border-radius:999px;padding:7px 14px;font-size:13px;font-weight:800;white-space:nowrap}
.cats button.on{background:#2563eb;color:#fff;border-color:#2563eb}
.pgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:8px}
.pc{position:relative;background:#fff;border:1.5px solid var(--bd);border-radius:14px;padding:9px 10px;text-align:left;display:flex;flex-direction:column;gap:6px;min-height:76px}
.pc:active{background:#eff6ff;border-color:#93c5fd}
.pc .n{font-size:13.5px;font-weight:700;line-height:1.2;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.pc .row{margin-top:auto;justify-content:space-between}.pc b{font-size:14.5px}.pc small{font-size:11.5px;color:var(--mut);font-weight:700;white-space:nowrap}
.pc.in{border-color:#22c55e;background:#f0fdf4}.pc em{position:absolute;top:-7px;right:-6px;font-style:normal;background:var(--ok);color:#fff;border-radius:999px;min-width:24px;height:24px;display:grid;place-items:center;font-size:12px;font-weight:900;padding:0 6px;border:2px solid #fff}
.cartbar{position:fixed;left:12px;right:12px;bottom:calc(12px + var(--safe-b));z-index:6;border:0;border-radius:20px;background:linear-gradient(120deg,#16a34a,#059669);color:#fff;padding:15px 18px;display:flex;align-items:center;gap:10px;font-weight:900;font-size:16px;box-shadow:0 10px 24px rgba(22,163,74,.4)}
.cartbar .sp{text-align:left}.cartbar b{font-size:22px}
/* mahsulotlar (Admin) */
.two{display:grid;grid-template-columns:1fr 1fr;margin:10px 0 12px}.two div{padding-right:8px}.two div+div{border-left:2px solid rgba(100,116,139,.18);padding-left:12px}
.two span{display:block;font-size:13px;color:#475569;font-weight:600}.two b{font-size:21px;letter-spacing:-.4px;white-space:nowrap}.two b span{display:inline;font-size:inherit}
.fl3{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.fl3 button{border-width:1.5px;border-style:solid;border-radius:16px;padding:10px 4px;display:flex;flex-direction:column;align-items:center}
.fl3 b{font-size:20px}.fl3 span{font-size:12px;font-weight:700}
.f1{background:#fff;border-color:#bfdbfe;color:#1d4ed8}.f2{background:#fffbeb;border-color:#fde68a;color:#b45309}.f3{background:#fff1f2;border-color:#fecdd3;color:#be123c}
.fl3 .on.f1{background:#2563eb;color:#fff;border-color:#2563eb}.fl3 .on.f2{background:#f59e0b;color:#fff;border-color:#f59e0b}.fl3 .on.f3{background:#e11d48;color:#fff;border-color:#e11d48}
.plist2{display:flex;flex-direction:column;gap:9px}
.prow{display:flex;align-items:center;gap:11px;background:#fff;border:1px solid var(--line);border-radius:18px;padding:11px 12px}
.prow i{font-style:normal;width:48px;height:48px;border-radius:14px;background:#e0f2fe;display:grid;place-items:center;font-size:22px;flex:none}
.prow.off i{background:#ffe4e6}.prow .a{flex:1;min-width:0}.prow .n{font-weight:800;font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tags{display:flex;gap:5px;margin-top:4px;flex-wrap:wrap}.tags span{font-size:11px;font-weight:800;background:#e8eef6;color:#475569;border-radius:999px;padding:2px 8px}.tags .g{background:#dcfce7;color:#166534}
.bq{display:flex;flex-wrap:wrap;gap:4px 10px;margin-top:3px;font-size:12px;color:#334155}.bq span.z{color:#94a3b8}.bq b{font-weight:900}
.sqrow{display:flex;align-items:center;gap:10px;padding:8px 0;border-bottom:1px solid var(--line)}.sqrow:last-of-type{border-bottom:0}
.sqrow span{font-weight:800}.sqrow small{display:block;font-weight:600;color:var(--mut);font-size:12px}.qin.w{width:96px;font-size:16px;font-weight:800;padding:10px 8px}
.tg{display:flex;align-items:center;gap:10px;padding:11px 0;border-bottom:1px solid var(--line);font-weight:700;font-size:14.5px;cursor:pointer}.tg:last-child{border-bottom:0}
.tg input{position:absolute;opacity:0;pointer-events:none}.tg i{width:46px;height:28px;border-radius:999px;background:#cbd5e1;position:relative;transition:.15s;flex:none}
.tg i::after{content:'';position:absolute;top:3px;left:3px;width:22px;height:22px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.25);transition:.15s}
.tg input:checked+i{background:#16a34a}.tg input:checked+i::after{left:21px}
.chips{display:flex;flex-wrap:wrap;gap:6px;margin-top:4px}.chips button{border:1.5px solid var(--bd);background:#fff;border-radius:999px;padding:7px 12px;font-size:13px;font-weight:800}
.chips button.on{background:#dc2626;color:#fff;border-color:#dc2626}
.attn{display:flex;flex-direction:column;gap:5px;width:100%;margin-top:12px;text-align:left;background:#fff7ed;border:1.5px solid #fed7aa;border-radius:20px;padding:13px 15px}
.attn b{font-size:15.5px}.attn span{font-size:13.5px;font-weight:700;color:#334155}.attn span.bad{color:#b91c1c}.attn span.warn{color:#b45309}.attn em{font-style:normal;font-size:12.5px;color:#c2410c;font-weight:800;margin-top:2px}
:root[data-theme=dark] .attn{background:#2a1a0a;border-color:#5b3a12}:root[data-theme=dark] .attn span{color:#e5ecf6}
.parkbar{display:flex;align-items:center;width:100%;border:1.5px dashed #f59e0b;background:#fffbeb;color:#92400e;border-radius:14px;padding:10px 14px;font-weight:800;margin-bottom:10px}.parkbar em{margin-left:auto;font-style:normal;font-size:12.5px}
:root[data-theme=dark] .parkbar{background:#2a1f0a}
.brrow{display:grid;grid-template-columns:1fr 140px;gap:8px;margin-bottom:8px}
.rep{white-space:pre-wrap;font:13.5px/1.45 system-ui,-apple-system,"Segoe UI",sans-serif;margin:0 0 8px}
.jl i{font-style:normal;width:36px;height:36px;border-radius:12px;background:#eef2f7;display:grid;place-items:center;flex:none;font-size:17px;align-self:flex-start}
.jl .a .n{white-space:normal}.jl.void{opacity:.55}.jl.void .n{text-decoration:line-through}
:root[data-theme=dark] .jl i{background:#1e2a42}
.pill{border:1.5px solid #bae6fd;background:#f0f9ff;border-radius:999px;padding:8px 12px;font-weight:900;font-size:14px;white-space:nowrap}
/* varaq (sheet) */
.sheet-bg{position:fixed;inset:0;background:rgba(15,23,42,.45);z-index:20;display:flex;align-items:flex-end}
.sheet{background:var(--bg);width:100%;max-height:92vh;overflow:auto;border-radius:22px 22px 0 0;padding:12px 14px calc(18px + var(--safe-b));animation:up .18s ease-out}
@keyframes up{from{transform:translateY(40px);opacity:.5}to{transform:none;opacity:1}}
.sheet .grab{width:42px;height:5px;border-radius:9px;background:#cbd5e1;margin:0 auto 12px}
.line{display:grid;grid-template-columns:1fr auto;gap:6px;padding:10px 0;border-bottom:1px solid var(--line)}.line:last-child{border-bottom:0}
.qty{display:flex;align-items:center;gap:6px}.qty button{width:36px;height:36px;border-radius:11px;border:0;background:#e8eef6;font-size:18px;font-weight:900}
.qty input{width:58px;text-align:center;padding:7px 4px;border:1.5px solid var(--bd);border-radius:10px}
.price{width:112px;padding:7px 8px;border:1.5px solid var(--bd);border-radius:10px;text-align:right}
.pay{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}
.pay label{font-size:12px;font-weight:800;color:#475569}.pay input{width:100%;margin-top:3px;padding:11px 8px;border:1.5px solid var(--bd);border-radius:12px;text-align:right;font-size:16px;font-weight:800}
.pay input:focus{outline:none;border-color:#2563eb}
.total{display:flex;justify-content:space-between;align-items:baseline;font-size:24px;font-weight:900;margin:4px 0 12px}
.sugg{background:#fff;border:1px solid var(--line);border-radius:12px;margin-top:6px;overflow:hidden}
.sugg button{display:flex;width:100%;border:0;background:none;padding:10px 12px;text-align:left;border-bottom:1px solid var(--line)}.sugg button:last-child{border-bottom:0}
/* xabar va boshqalar */
#toast{position:fixed;left:50%;top:calc(14px + var(--safe-t));transform:translateX(-50%);z-index:50;display:flex;flex-direction:column;gap:6px;width:min(92vw,420px);pointer-events:none}
#toast div{background:#0f172a;color:#fff;border-radius:14px;padding:12px 15px;font-weight:700;box-shadow:0 8px 24px rgba(0,0,0,.25);animation:up .2s}
#toast div.warn{background:#b45309}#toast div.bad{background:#b91c1c}#toast div.ok{background:#15803d}
.done{position:fixed;inset:0;z-index:40;display:grid;place-items:center;background:rgba(15,23,42,.5)}
.done div{background:#fff;border-radius:26px;padding:26px 32px;text-align:center;min-width:240px}.done .c{font-size:48px;color:var(--ok)}.done .m{font-size:28px;font-weight:900}
.scanv{position:fixed;inset:0;background:#000;z-index:60;display:flex;flex-direction:column}
.scanv video{flex:1;width:100%;object-fit:cover}.scanv .fr{position:absolute;left:12%;right:12%;top:38%;height:22%;border:3px solid #22c55e;border-radius:14px;box-shadow:0 0 0 999px rgba(0,0,0,.35)}
.scanv .bar{padding:14px 14px calc(14px + var(--safe-b));display:flex;gap:8px;background:#000}
.login{max-width:420px;margin:0 auto;padding:calc(48px + var(--safe-t)) 20px 30px}
.login .logo{width:76px;height:76px;margin:0 auto 12px;display:block}
.login h1{text-align:center;margin:0 0 4px;font-size:26px}.login p{text-align:center}
.err{background:var(--badbg);color:#991b1b;border-radius:12px;padding:10px 12px;font-size:13px;font-weight:700;margin:10px 0}
@media (min-width:700px){main{max-width:760px;margin:0 auto}.sheet{max-width:640px;margin:0 auto;border-radius:22px}.sheet-bg{justify-content:center;align-items:center}.nav{max-width:560px;margin:0 auto}}
