:root{color-scheme:dark;--page:#101113;--surface:#191b1e;--raised:#22252a;--border:#30343b;--text:#f5f4ef;--muted:#aaaeb7;--accent:#f2cd79;--green:#99dfb7;--red:#ffa9a2;font-family:system-ui,-apple-system,sans-serif}
*{box-sizing:border-box}
body{margin:0;background:var(--page);color:var(--text)}
button,input,select{font:inherit}
button,a,input,select{-webkit-tap-highlight-color:transparent}
a{color:inherit;text-decoration:none}
button,select{cursor:pointer}
button,select,input{color:var(--text);background:var(--surface);border:1px solid var(--border);border-radius:10px}
button{min-height:43px;padding:8px 13px;font-weight:650}
button:hover{border-color:var(--accent)}
:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
button:disabled{opacity:.45;cursor:default}
select,input{padding:10px 12px;min-width:0}
input[type=search],.field input,.field select{width:100%}
.primary{background:var(--accent);color:#20180b;border-color:transparent}
.subtle{background:transparent;color:var(--muted)}
.demo-bar{background:#1d1a14;border-bottom:1px solid #403624}
.demo-inner,.header-inner,main{width:min(100% - 32px,960px);margin:auto}
.demo-inner{display:flex;flex-wrap:wrap;gap:8px 12px;align-items:center;padding:9px 0;font-size:.78rem}
.demo-inner label{display:flex;align-items:center;gap:6px;color:var(--muted)}
.demo-inner select,.demo-inner button{padding:5px 7px;min-height:32px}
.demo-tag{font-size:.66rem;letter-spacing:.09em;font-weight:800;color:var(--accent)}
.header{border-bottom:1px solid var(--border)}
.header-inner{min-height:67px;display:flex;align-items:center;justify-content:space-between;gap:10px}
.brand{display:flex;gap:10px;align-items:center}.brand strong,.brand small{display:block}.brand small{color:var(--muted);font-size:.73rem}
.brand-symbol{display:grid;place-items:center;width:38px;height:38px;background:var(--accent);color:#211809;border-radius:12px;font-size:1.35rem}
.header-actions,.actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px}
main{padding:20px 0 100px}
.hero{padding:25px 22px;margin-bottom:18px;border:1px solid #473a25;border-radius:18px;background:radial-gradient(ellipse at 100% 0%,#463620 0,transparent 65%),#1c1b18}
h1,h2,h3,p{margin:0}h1{font-size:clamp(1.75rem,5vw,2.5rem);line-height:1.16}h2{font-size:1.16rem}h3{font-size:.98rem}
p{line-height:1.5}.muted,small{color:var(--muted)}.hero p,.section-head p{margin-top:7px}
.stack{display:grid;gap:10px}.section-head{margin-bottom:15px}.section-row{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:20px 0 10px}
.catalog{display:grid;gap:18px}.categories{display:grid;grid-template-columns:1fr 1fr;gap:8px}.categories button{text-align:left;display:flex;align-items:center;gap:9px}.categories button span{color:var(--accent)}
[aria-pressed=true]{background:#302719;border-color:#947746;color:#ffdd99}
.product-grid{display:grid;gap:8px}
.product,.panel,.order{background:var(--surface);border:1px solid var(--border);border-radius:14px;padding:13px}
.product{display:grid;grid-template-columns:48px minmax(0,1fr) auto;text-align:left;gap:11px;align-items:center;width:100%;min-height:74px}
.product img,.item img{width:48px;height:48px;border-radius:10px;object-fit:contain;background:#121315}
.product small,.item small{display:block;margin-top:4px}.price{color:var(--accent);font-weight:750;white-space:nowrap}
.item{display:flex;gap:12px;align-items:center}.item>div{flex:1;min-width:0}
.order summary{cursor:pointer;font-weight:700}.order summary small{display:block;margin:5px 0 0 16px}.order-body{padding-top:12px;margin-top:12px;border-top:1px solid var(--border)}
.status{display:inline-block;border:1px solid var(--border);border-radius:20px;padding:3px 8px;color:var(--accent);font-size:.75rem}.status.delivered{color:var(--green)}.status.rejected{color:var(--red)}
.stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-bottom:14px}.stats strong{display:block;font-size:1.5rem;margin-bottom:3px}
.field{display:grid;gap:6px;font-size:.9rem}.field input,.field select{font-size:1rem}
.total{display:flex;justify-content:space-between;gap:10px;align-items:center;font-weight:700}
#bottom-nav:not(:empty){position:fixed;bottom:0;left:0;right:0;display:flex;justify-content:center;gap:8px;padding:8px 12px max(8px,env(safe-area-inset-bottom));background:#181a1df5;border-top:1px solid var(--border);z-index:1}
#bottom-nav button{flex:1;max-width:190px}
dialog{width:min(480px,calc(100% - 24px));max-height:calc(100dvh - 28px);border:1px solid var(--border);border-radius:16px;background:var(--surface);color:var(--text);padding:18px}
dialog::backdrop{background:#000a}.dialog-head{display:flex;justify-content:space-between;gap:8px;align-items:center}.dialog-head h2{flex:1}
.plan{display:flex;width:100%;justify-content:space-between;align-items:center;text-align:left;gap:8px}
#feedback{position:fixed;bottom:72px;left:50%;transform:translateX(-50%);z-index:3;background:var(--raised);border:1px solid var(--border);padding:10px 15px;border-radius:10px;max-width:calc(100% - 24px);width:max-content}
#feedback:empty{display:none}
@media(min-width:700px){.catalog{grid-template-columns:230px minmax(0,1fr);align-items:start}.categories{grid-template-columns:1fr}.product-grid{grid-template-columns:1fr 1fr}.hero{padding:32px}.shop-links{display:flex;gap:8px}}
@media(max-width:420px){.demo-tag{width:100%}.demo-inner{gap:6px}.demo-inner label{gap:3px}.stats .panel{padding:8px}.product{padding:9px}.product img{width:44px;height:44px}.product{grid-template-columns:44px minmax(0,1fr) auto}.header-actions button{padding-inline:8px}}

#catalog-title{margin-bottom:10px}
