:root{--nav-w:216px;--brand:#3d5787;--brand-dark:#2e4570;--peri:#8fa8dc;--tint:#e7edf9;--bg:#f3f5f9;--surface:#fff;--surface2:#e9edf4;--text:#1f2937;--muted:#66707f;--faint:#96a0b0;--border:#e2e6ee;--border-strong:#c9d0dc;--danger:#b3261e;--danger-tint:#f7e4e2;--success:#3b6d11;--warn-bg:#f6ecd7;--warn-text:#8a5a12;--radius:12px}*{box-sizing:border-box;margin:0;padding:0}html,body{height:100%}body{color:var(--text);-webkit-font-smoothing:antialiased;background:#e3e7ef;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif}#root{justify-content:center;min-height:100dvh;display:flex}.app{background:var(--bg);flex-direction:column;width:100%;max-width:430px;min-height:100dvh;display:flex;position:relative}.screen{flex-direction:column;flex:1;padding:16px 16px 88px;display:flex}.screen.no-nav{padding-bottom:24px}.appbar{align-items:center;gap:12px;padding:14px 16px 10px;display:flex}.appbar .title{flex:1;font-size:18px;font-weight:600}.appbar .icon-btn{color:var(--text);cursor:pointer;background:0 0;border:none;align-items:center;padding:4px;display:flex}h1{font-size:22px;font-weight:700}.sub{color:var(--muted);font-size:13px}.card{background:var(--surface);border:.5px solid var(--border);border-radius:var(--radius);padding:14px}.surface2{background:var(--surface2);border-radius:10px;padding:10px 12px}.btn{background:var(--brand);color:#fff;cursor:pointer;border:none;border-radius:12px;justify-content:center;align-items:center;gap:7px;width:100%;padding:13px;font-family:inherit;font-size:14px;font-weight:600;display:flex}.btn:active{background:var(--brand-dark)}.btn:disabled{opacity:.45}.btn.outline{background:var(--surface);color:var(--text);border:.5px solid var(--border-strong)}.btn.danger-outline{background:var(--surface);color:var(--danger);border:.5px solid var(--border)}.btn.small{border-radius:9px;padding:9px;font-size:12px}.badge{background:var(--surface2);color:var(--muted);border-radius:9px;align-items:center;gap:4px;padding:2px 8px;font-size:11px;font-weight:500;display:inline-flex}.badge.navy{background:var(--tint);color:var(--brand-dark)}.badge.danger{background:var(--danger-tint);color:var(--danger)}.badge.warn{background:var(--warn-bg);color:var(--warn-text)}.badge.success{color:var(--success);background:#e6f0dc}.chip{border:.5px solid var(--border-strong);color:var(--muted);cursor:pointer;white-space:nowrap;background:0 0;border-radius:18px;align-items:center;gap:5px;padding:7px 14px;font-family:inherit;font-size:13px;display:inline-flex}.chip.active{background:var(--tint);color:var(--brand-dark);border-color:var(--tint);font-weight:600}.field{background:var(--surface);border:.5px solid var(--border-strong);border-radius:12px;align-items:center;gap:9px;width:100%;padding:12px 13px;display:flex}.field input,.field textarea{min-width:0;color:var(--text);resize:none;background:0 0;border:none;outline:none;flex:1;font-family:inherit;font-size:15px}.field input::placeholder,.field textarea::placeholder{color:var(--faint)}.select{position:relative}.select-trigger{background:var(--surface);border:.5px solid var(--border-strong);width:100%;color:var(--text);text-align:left;cursor:pointer;border-radius:12px;align-items:center;gap:9px;padding:12px 13px;font-family:inherit;font-size:15px;display:flex}.select-trigger.open{border-color:var(--brand);box-shadow:0 0 0 2px var(--tint)}.select-trigger>span:first-child{text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0;overflow:hidden}.select-panel{z-index:30;max-height:264px;position:absolute;inset:calc(100% + 6px) 0 auto;overflow-y:auto;box-shadow:0 10px 28px #1f293729}.select-panel.up{top:auto;bottom:calc(100% + 6px)}.label{margin:16px 0 7px;font-size:13px;font-weight:600}.metric{background:var(--surface2);border-radius:10px;padding:11px 12px}.metric .k{color:var(--muted);font-size:12px}.metric .v{margin-top:2px;font-size:21px;font-weight:700}.list-card{background:var(--surface);border:.5px solid var(--border);border-radius:var(--radius);overflow:hidden}.list-row{border-bottom:.5px solid var(--border);cursor:pointer;text-align:left;width:100%;color:var(--text);background:0 0;border-top:none;border-left:none;border-right:none;align-items:center;gap:11px;padding:13px 14px;font-family:inherit;font-size:14px;display:flex}.list-row:last-child{border-bottom:none}.seg{background:var(--surface2);border-radius:10px;padding:3px;display:flex}.seg button{text-align:center;color:var(--muted);cursor:pointer;background:0 0;border:none;border-radius:8px;flex:1;padding:7px;font-family:inherit;font-size:13px}.seg button.active{background:var(--surface);color:var(--text);font-weight:600}.stepper{justify-content:center;align-items:center;gap:20px;display:flex}.stepper .val{text-align:center;min-width:40px;font-size:24px;font-weight:700}.step-btn{cursor:pointer;border:.5px solid var(--border-strong);background:var(--surface);width:38px;height:38px;color:var(--text);border-radius:50%;justify-content:center;align-items:center;display:flex}.qty-input{text-align:center;width:54px;height:30px;color:var(--text);background:var(--surface);border:.5px solid var(--border-strong);border-radius:8px;outline:none;padding:0 4px;font-family:inherit;font-size:14px;font-weight:600}.qty-input:focus{border-color:var(--brand);box-shadow:0 0 0 2px var(--tint)}.step-btn.plus{background:var(--brand);border-color:var(--brand);color:#fff}.bottom-nav{background:var(--surface);border-top:.5px solid var(--border);width:100%;max-width:430px;padding:8px 4px calc(10px + env(safe-area-inset-bottom));z-index:20;justify-content:space-around;display:flex;position:fixed;bottom:0;left:50%;transform:translate(-50%)}.bottom-nav button{color:var(--faint);cursor:pointer;background:0 0;border:none;flex-direction:column;align-items:center;gap:3px;min-width:64px;font-family:inherit;font-size:10px;display:flex}.bottom-nav button.active{color:var(--brand)}.bottom-nav.nav-sub,.nav-brand{display:none}.nav-icon{display:flex;position:relative}.nav-dot{background:var(--danger);color:#fff;text-align:center;border-radius:8px;min-width:16px;height:16px;padding:0 4px;font-size:10px;font-weight:700;line-height:16px;position:absolute;top:-5px;left:11px}.fab{background:var(--brand);color:#fff;cursor:pointer;z-index:15;border:none;border-radius:16px;align-items:center;gap:8px;padding:13px 17px;font-family:inherit;font-size:14px;font-weight:600;display:flex;position:fixed;bottom:84px;right:max(16px,50% - 199px);box-shadow:0 4px 14px #2e457047}.grid2{grid-template-columns:1fr 1fr;gap:10px;display:grid}.product-card{background:var(--surface);border:.5px solid var(--border);border-radius:var(--radius);cursor:pointer;text-align:left;padding:0;font-family:inherit;overflow:hidden}.product-card .thumb{aspect-ratio:1;background:var(--surface2);color:var(--muted);justify-content:center;align-items:center;display:flex;overflow:hidden}.product-hero{aspect-ratio:1;border-radius:12px;justify-content:center;align-items:center;max-height:380px;display:flex;overflow:hidden}.product-card .info{padding:8px 10px 10px}.product-card .name{color:var(--text);font-size:13px;font-weight:600}.product-card .price{color:var(--muted);margin-top:2px;font-size:11px}.row{align-items:center;gap:10px;display:flex}.spread{justify-content:space-between;align-items:center;display:flex}.kv{justify-content:space-between;padding:4px 0;font-size:13px;display:flex}.kv .k{color:var(--muted)}.kv .v{font-weight:600}.mono{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:12px}.divider{border:none;border-top:.5px solid var(--border);margin:8px 0}.success-circle{background:var(--tint);width:72px;height:72px;color:var(--brand);border-radius:50%;justify-content:center;align-items:center;margin:0 auto 14px;display:flex}.select-card{background:var(--surface);border:.5px solid var(--border);border-radius:var(--radius);cursor:pointer;text-align:left;width:100%;color:var(--text);align-items:center;gap:12px;padding:14px;font-family:inherit;display:flex}.select-card.selected{background:var(--tint);border:2px solid var(--brand);padding:12.5px}.select-card .t{font-size:15px;font-weight:600}.select-card .d{color:var(--muted);margin-top:1px;font-size:12px}.upload-tile{cursor:pointer;border:.5px solid var(--border-strong);color:var(--muted);background:0 0;border-radius:12px;flex-direction:column;flex:1;align-items:center;gap:6px;padding:16px 0;font-family:inherit;font-size:12px;display:flex}.upload-tile.primary{border:1.5px dashed var(--brand);background:var(--tint);color:var(--brand-dark);font-weight:600}.pay-chip{text-align:center;border:.5px solid var(--border-strong);color:var(--muted);cursor:pointer;background:0 0;border-radius:10px;flex:1;padding:10px 0;font-family:inherit;font-size:13px}.pay-chip.active{background:var(--tint);border:1.5px solid var(--brand);color:var(--brand-dark);font-weight:600}.progress-seg{gap:5px;display:flex}.progress-seg span{background:var(--border-strong);border-radius:3px;flex:1;height:5px}.progress-seg span.ok{background:var(--brand)}.progress-seg span.bad{background:var(--danger)}.toast{background:var(--brand-dark);color:#fff;z-index:40;border-radius:12px;padding:10px 16px;font-size:13px;position:fixed;bottom:96px;left:50%;transform:translate(-50%)}@media (width>=768px){.app.with-nav{max-width:none}.bottom-nav.nav-sub{display:flex}.bottom-nav{width:var(--nav-w);border-top:none;border-right:.5px solid var(--border);flex-direction:column;justify-content:flex-start;align-items:stretch;gap:2px;max-width:none;height:100dvh;padding:16px 12px;top:0;bottom:auto;left:0;transform:none}.bottom-nav button{border-radius:10px;flex-direction:row;justify-content:flex-start;gap:12px;width:100%;min-width:0;padding:11px 12px;font-size:14px}.bottom-nav button.active{background:var(--tint)}.nav-icon{display:contents}.nav-dot{order:1;margin-left:auto;position:static}.nav-brand svg{margin:0}.nav-brand{color:var(--text);align-items:center;gap:10px;padding:6px 12px 18px;font-size:15px;font-weight:700;display:flex}.with-nav>.screen,.with-nav>.appbar{margin-left:var(--nav-w);max-width:860px}.screen{padding:24px 28px 40px}.appbar{padding:20px 28px 10px}.grid2{grid-template-columns:repeat(auto-fill,minmax(150px,1fr))}.product-hero{align-self:center;width:100%;max-width:380px}.fab{right:auto;left:calc(var(--nav-w) + 28px);bottom:28px}.with-nav .toast{left:calc(50% + var(--nav-w) / 2);bottom:32px}}@media (width>=1200px){.with-nav>.screen,.with-nav>.appbar{max-width:1040px}}
