:root{--navy:#06111d;--gold:#e7b629;--green:#2dbb72;--line:#dfe6ed;--muted:#68798a}*{box-sizing:border-box}body{margin:0;font-family:Inter,Arial;background:#f4f7fa;color:#17202b}.hidden{display:none!important}.login{min-height:100vh;display:grid;place-items:center;background:linear-gradient(135deg,#06111d,#122b42)}.login-card{width:min(410px,92%);background:#fff;padding:36px;border-radius:20px;text-align:center;box-shadow:0 30px 70px #0006}.login-card img{width:90px;height:60px;object-fit:contain}.login-card h1{margin:8px 0 3px}.login-card p{color:var(--muted);margin-top:0}.login-card form{display:grid;gap:12px;margin-top:24px}.login-card input{padding:14px;border:1px solid #ccd6df;border-radius:10px;font-size:15px}.login-card button{padding:14px;background:var(--green);color:#fff;border:0;border-radius:10px;font-weight:800;cursor:pointer}.login-card #le{color:#c53a3a;font-size:13px;min-height:18px}header{height:72px;background:var(--navy);color:#fff;padding:8px 4%;display:flex;justify-content:space-between;align-items:center}header button{padding:9px 13px;border-radius:9px;border:1px solid #40576c;background:#132b40;color:#fff;margin-left:6px}.headbrand{display:flex;align-items:center;gap:12px}.headbrand img{height:50px;width:55px;object-fit:contain}.headbrand small{display:block;color:#9eb0c1;margin-top:2px}.title{display:flex;justify-content:space-between;align-items:end;margin-bottom:25px}.title span{color:#9b7310;font-size:11px;font-weight:900;letter-spacing:1.3px}.title h1{font-size:36px;margin:7px 0}.title p{color:var(--muted);margin:0}.title a{color:#8b690e;text-decoration:none;font-weight:800}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:24px}.stat{background:#fff;border:1px solid var(--line);border-radius:14px;padding:22px}.stat small{color:var(--muted)}.stat b{display:block;font-size:30px;margin-top:10px}.stat b.gold{color:var(--gold)}main{max-width:1400px;margin:auto;padding:35px 4%}section{background:#fff;border:1px solid var(--line);border-radius:16px;padding:20px}.toolbar{display:flex;justify-content:space-between;gap:15px;align-items:center;margin-bottom:18px}.toolbar h2{margin:0}.toolbar input,.toolbar select{padding:11px;border:1px solid #ccd6df;border-radius:9px;margin-left:7px}.tablewrap{overflow:auto}table{width:100%;border-collapse:collapse;min-width:950px}th{text-align:left;color:#98750c;font-size:11px;letter-spacing:.7px;padding:13px;border-bottom:1px solid var(--line)}td{padding:15px 13px;border-bottom:1px solid #edf0f3;font-size:13px}td strong{display:block}td small{display:block;color:var(--muted);margin-top:3px}.status{display:inline-block;padding:6px 9px;border-radius:99px;background:#eef3f7;color:#42576a;font-size:11px;font-weight:800}.action{padding:8px 11px;border:1px solid #cbd6df;border-radius:8px;background:#fff;cursor:pointer}.drawer{position:fixed;inset:0;background:#06111dcc;z-index:20;padding:25px;overflow:auto}.drawer-card{max-width:900px;margin:auto;background:#fff;border-radius:18px;padding:28px}.drawer-head{display:flex;justify-content:space-between}.detailgrid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:22px 0}.detail{padding:14px;background:#f7f9fb;border-radius:10px}.detail small{color:var(--muted);display:block;margin-bottom:5px}.detail.full{grid-column:1/-1}.editgrid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.editgrid input,.editgrid select,.editgrid textarea{width:100%;padding:11px;border:1px solid #ccd6df;border-radius:8px}.save{margin-top:15px;padding:12px 18px;border:0;background:var(--green);color:#fff;border-radius:9px;font-weight:800}.danger{background:#fff1f1;color:#b33030}@media(max-width:800px){.stats{grid-template-columns:1fr 1fr}.toolbar{display:block}.toolbar input,.toolbar select{margin:8px 0 0;width:100%}.detailgrid,.editgrid{grid-template-columns:1fr}.detail.full{grid-column:auto}}
.catalog-section{margin-top:26px}.section-title{display:flex;justify-content:space-between;align-items:flex-end;gap:20px;margin-bottom:20px}.section-title span,.section-title small,.brand-head small{color:#7f96ad;font-size:12px;letter-spacing:.12em}.section-title h2{margin:6px 0}.section-title p{margin:0;color:#9eb1c5}.catalog-form{background:#081b2d;border:1px solid #1f4568;border-radius:16px;padding:22px;margin-bottom:22px}.catalog-form small{display:block;color:#8096aa;margin-top:6px}.form-actions{display:flex;gap:10px;margin-top:18px}.brand-block{border:1px solid #183b5d;background:#06182a;border-radius:16px;margin-bottom:16px;overflow:hidden}.brand-head{display:flex;align-items:center;gap:14px;padding:16px 18px;border-bottom:1px solid #183b5d}.brand-head img{width:42px;height:42px;object-fit:contain;background:#fff;border-radius:8px}.brand-head h3{margin:0}.brand-head>div{flex:1}.danger-btn{background:#32151a;color:#ff9aa5;border:1px solid #6b2933;border-radius:8px;padding:8px 12px;cursor:pointer}.model-row{display:flex;justify-content:space-between;align-items:center;gap:18px;padding:15px 18px;border-bottom:1px solid #102f4b}.model-row:last-child{border-bottom:0}.model-main{display:flex;align-items:center;gap:14px}.model-main img,.noimg{width:58px;height:58px;object-fit:contain;border-radius:10px;background:#fff}.noimg{display:grid;place-items:center;font-size:24px}.variants{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}.variants span{font-size:13px;color:#c7d5e2;background:#0c2942;border:1px solid #204967;padding:6px 8px;border-radius:8px}.variants button{border:0;background:transparent;color:#ff8793;cursor:pointer;font-size:16px}.empty{padding:40px;text-align:center;color:#8498ab;border:1px dashed #24435e;border-radius:14px}.brand-img{width:58px;height:58px;object-fit:contain;background:#fff;border-radius:12px}.model-img{width:120px;height:120px;object-fit:contain;background:#fff;border-radius:14px;margin-bottom:10px}@media(max-width:700px){.section-title,.brand-head,.model-row{align-items:flex-start;flex-direction:column}.model-row .danger-btn{align-self:flex-end}.model-main{width:100%}}
nav{display:flex;gap:6px;align-items:center;flex-wrap:wrap}.navbtn{border:1px solid #29445f;background:#0b1a2b;color:#dbe8f5;padding:9px 12px;border-radius:8px}.navbtn.active{background:#d5a51d;color:#08111b;border-color:#d5a51d}.hidden{display:none!important}.tab{margin-bottom:30px}.catalog-help{background:#fff7df;border:1px solid #ecd18a;color:#5b4a19;padding:14px 16px;border-radius:10px;margin-bottom:18px}.price-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:18px}.price-grid label,.editgrid label{font-weight:600;color:#35485d}.price-grid input{display:block;width:100%;margin-top:6px;box-sizing:border-box}.issue-row{display:grid;grid-template-columns:1fr 180px 90px;gap:10px;margin:8px 0}.issue-row input{width:100%;box-sizing:border-box}.mini{border:0;background:transparent;color:#a27700;font-weight:700;cursor:pointer;margin-left:4px}.muted{color:#718096}.form-actions{display:flex;gap:10px;margin-top:20px}.catalog-section h3{margin-top:24px}.catalog-form{background:#fff;border:1px solid #dbe4ec;border-radius:12px;padding:20px;margin-bottom:20px}.danger-btn{background:#fff;border:1px solid #e3b1b1;color:#a23b3b;padding:7px 10px;border-radius:7px;cursor:pointer}.empty{padding:30px;text-align:center;color:#718096;border:1px dashed #cbd5e1;border-radius:10px}.brand-block{border:1px solid #dbe4ec;border-radius:12px;margin:15px 0;overflow:hidden;background:#fff}.brand-head{display:flex;align-items:center;gap:12px;padding:14px 16px;background:#f7fafc}.brand-head img{width:42px;height:42px;object-fit:contain}.brand-head h3{margin:0}.brand-head small{color:#718096}.brand-head .danger-btn{margin-left:auto}.model-row{display:flex;justify-content:space-between;gap:15px;align-items:center;padding:14px 16px;border-top:1px solid #edf2f7}.model-main{display:flex;align-items:center;gap:14px}.model-main img,.noimg{width:58px;height:58px;object-fit:contain;border:1px solid #e2e8f0;border-radius:8px;background:#fff}.noimg{display:flex;align-items:center;justify-content:center;font-size:28px}.variants{display:flex;gap:8px;flex-wrap:wrap;margin-top:8px}.variants span{background:#f5f7fa;border:1px solid #e2e8f0;padding:6px 8px;border-radius:7px;font-size:13px}.toolbar{gap:12px}@media(max-width:800px){.price-grid{grid-template-columns:1fr 1fr}.issue-row{grid-template-columns:1fr}.model-row{align-items:flex-start;flex-direction:column}.brand-head{flex-wrap:wrap}nav{order:3;width:100%}}
