*{box-sizing:border-box}:root{--bg:#f5f2eb;--card:#fff;--ink:#151719;--muted:#69707a;--gold:#d2aa42;--line:#e4e7eb;--red:#b42318;--green:#15704b}body{margin:0;background:var(--bg);color:var(--ink);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Yu Gothic",sans-serif}button,input,select,textarea{font:inherit}button{cursor:pointer}header{position:sticky;top:0;z-index:10;display:flex;justify-content:space-between;align-items:center;padding:12px max(16px,calc((100vw - 960px)/2));background:rgba(245,242,235,.94);backdrop-filter:blur(12px);border-bottom:1px solid #0000000d}.brand{display:flex;align-items:center;gap:10px}.brand img{width:48px;height:48px;border-radius:12px}.brand small,.label{font-size:10px;letter-spacing:.17em;font-weight:900;color:var(--gold)}h1{font-size:20px;margin:1px 0}main{max-width:960px;margin:auto;padding:18px 16px 100px}.hero{background:linear-gradient(140deg,#0c0e0f,#292d30);color:white;border-radius:26px;padding:26px;box-shadow:0 12px 32px #0002}.hero h2{font-size:clamp(28px,6vw,48px);margin:10px 0}.hero>p:last-of-type{color:#d0d4d8}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;margin-top:22px}.stats div{background:#ffffff10;border:1px solid #ffffff10;border-radius:16px;text-align:center;padding:12px}.stats b{display:block;font-size:25px}.stats span{font-size:11px;color:#d0d4d8}.tabs{display:flex;gap:8px;overflow:auto;margin:16px 0}.tabs button,.secondary{border:1px solid var(--line);background:white;border-radius:999px;padding:10px 13px;font-weight:800;white-space:nowrap}.tabs button.active{background:var(--ink);color:white}.tabs i{background:var(--red);color:#fff;border-radius:999px;padding:2px 6px;font-style:normal;font-size:10px}.view{display:none}.view.active{display:block}.card{background:white;border-radius:22px;padding:20px;box-shadow:0 8px 26px #00000012}h3{font-size:22px;margin:4px 0 15px}label{display:block;font-size:13px;font-weight:800;margin:13px 0 6px}input,select,textarea{width:100%;padding:13px;border:1px solid #d3d7dc;border-radius:13px;background:white}textarea{min-height:75px}.stockPreview{display:flex;justify-content:space-between;background:#f4f6f8;border-radius:13px;padding:12px;margin-top:10px}.qty{display:grid;grid-template-columns:54px 1fr 54px;gap:8px}.qty button{border:0;border-radius:13px;font-size:26px}.primary{border:0;border-radius:13px;background:#121416;color:white;padding:14px 16px;font-weight:900;width:100%;margin-top:17px}.primary.small{width:auto;margin:0;padding:10px 13px}.head{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:13px}.head input{max-width:360px}.categoryGrid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}.category{border:0;background:white;border-radius:19px;padding:17px;text-align:left;box-shadow:0 8px 24px #00000010;position:relative;min-height:120px}.category em{font-style:normal;font-size:28px;display:block;margin-bottom:10px}.category strong{display:block;font-size:16px}.category small{color:var(--muted)}.count{position:absolute;right:12px;top:12px;background:#eee9da;border-radius:999px;padding:4px 8px;font-size:10px}.itemGrid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}.item{background:white;border-radius:19px;padding:17px;box-shadow:0 8px 24px #00000010}.item.low{outline:2px solid #efb4ae}.item h4{margin:0}.stockNum{font-size:34px;font-weight:900;margin:15px 0}.status{display:inline-block;border-radius:999px;padding:5px 8px;font-size:10px;font-weight:900;background:#dff5ea;color:var(--green)}.status.low{background:#fee4e2;color:var(--red)}.actions{display:flex;gap:8px;margin-top:13px}.actions button{flex:1;border:0;border-radius:11px;padding:9px;font-weight:800}.restock{background:#151719;color:white}.edit{background:#edf0f3}.row{display:grid;grid-template-columns:1fr auto;gap:12px;padding:14px 0;border-top:1px solid var(--line)}.row:first-child{border-top:0}.row h4{margin:0}.row p{margin:4px 0;color:var(--muted);font-size:12px}.amount{font-weight:900;color:var(--red)}.historyRow{display:grid;grid-template-columns:40px 1fr auto;gap:10px;align-items:center;padding:13px 0;border-top:1px solid var(--line)}.historyRow:first-child{border-top:0}.historyRow small{color:var(--muted)}.plus{color:var(--green);font-weight:900}.minusVal{color:var(--red);font-weight:900}.hidden{display:none!important}.bottom{display:none}.modal{position:fixed;inset:0;z-index:40;background:#0008;display:grid;place-items:center;padding:16px}.modalBox{position:relative;width:min(560px,100%);max-height:88vh;overflow:auto;background:white;border-radius:23px;padding:23px}.close{position:absolute;right:12px;top:10px;border:0;border-radius:50%;width:38px;height:38px;font-size:22px}.formGrid{display:grid;grid-template-columns:1fr 1fr;gap:9px}.full{grid-column:1/-1}#message{text-align:center;font-weight:800}.ok{color:var(--green)}.err{color:var(--red)}@media(max-width:700px){.tabs{display:none}.bottom{display:grid;grid-template-columns:repeat(4,1fr);position:fixed;bottom:0;left:0;right:0;z-index:20;background:#fffc;border-top:1px solid var(--line);backdrop-filter:blur(12px);padding:7px 6px calc(7px + env(safe-area-inset-bottom))}.bottom button{border:0;background:transparent;color:#707782;font-size:18px}.bottom button.active{color:#111;font-weight:900}.bottom span{display:block;font-size:10px}.itemGrid{grid-template-columns:1fr}.hero{padding:22px}.brand small{display:none}}
.categoryImage{display:block;width:100%;aspect-ratio:1/1;object-fit:cover;border-radius:14px;margin-bottom:12px;border:1px solid #dce5df;background:#fff}.category-card{min-height:auto}.category-card strong{font-size:16px}.category-card small{font-size:12px}

.appTitle{text-align:center}
.appTitle h2{margin:0}
.appTitle small{display:block;color:#68736c;font-size:12px;letter-spacing:.06em;margin-top:2px}
.adminText{font-size:14px;font-weight:800;margin-left:4px}
@media(max-width:700px){
  .appTitle small{font-size:10px}
  .adminText{display:none}
}
