:root{--bg:#f4f6f3;--surface:#fff;--ink:#172019;--muted:#69736c;--line:#dfe5df;--green:#1f6b45;--green-2:#e4f2e9;--wb:#7c3aed;--ozon:#1457d9;--shadow:0 18px 45px rgba(30,55,39,.08)}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:15px/1.45 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}.topbar{height:72px;background:#17271e;color:white;display:flex;align-items:center;justify-content:space-between;padding:0 max(28px,calc((100vw - 1240px)/2));position:sticky;top:0;z-index:5}.brand{display:flex;align-items:center;gap:11px;color:white;text-decoration:none;font-weight:750;font-size:17px}.brand-mark{width:34px;height:34px;border-radius:10px;background:#d7f04b;color:#17271e;display:inline-grid;place-items:center;font-weight:850}.brand-mark.large{width:52px;height:52px;border-radius:15px;font-size:24px}.topbar nav{display:flex;align-items:center;gap:24px}.topbar nav a,.link-button{color:#dce5df;text-decoration:none;background:none;border:0;font:inherit;cursor:pointer}.topbar nav form{margin:0}.page{max-width:1240px;margin:0 auto;padding:40px 28px 80px}.page-head{display:flex;justify-content:space-between;gap:24px;align-items:flex-end;margin-bottom:28px}.page h1{font-size:36px;letter-spacing:-1.3px;line-height:1.08;margin:5px 0 8px}.eyebrow{font-size:12px;font-weight:800;letter-spacing:1.5px;color:var(--green);margin:0}.muted{color:var(--muted);margin:0}.small{font-size:13px}.actions{display:flex;gap:10px;align-items:center}.primary,.secondary{min-height:42px;padding:10px 18px;border-radius:11px;border:1px solid transparent;font-weight:750;cursor:pointer;font-size:14px}.primary{background:var(--green);color:white}.secondary{background:white;color:var(--ink);border-color:var(--line)}.button{display:inline-flex;text-decoration:none;align-items:center;justify-content:center}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:20px}.stats article{background:var(--surface);border:1px solid var(--line);padding:18px 20px;border-radius:15px}.stats span{display:block;color:var(--muted);font-size:13px}.stats strong{display:block;font-size:25px;margin-top:3px}.stats .safe{background:var(--green-2);border-color:#cfe5d6}.stats .safe strong{font-size:17px;color:var(--green);margin-top:8px}.inventory-list{display:grid;gap:14px}.inventory-card{background:var(--surface);border:1px solid var(--line);border-radius:18px;padding:20px;box-shadow:0 2px 3px rgba(20,30,23,.02)}.item-main{display:flex;justify-content:space-between;gap:20px;padding-bottom:17px;border-bottom:1px solid var(--line)}.item-main h2{display:inline;font-size:19px;margin-left:8px}.status-dot{display:inline-block;width:9px;height:9px;border-radius:50%;background:#30a46c}.stock-grid{display:grid;grid-template-columns:repeat(3,minmax(92px,1fr)) repeat(3,minmax(100px,1fr)) auto;gap:12px;align-items:end;padding-top:17px}.stock-grid label span,.allocation span{display:block;color:var(--muted);font-size:12px;margin-bottom:5px}.stock-grid input,.stacked-form input,.mapping-form input,.mapping-form select{width:100%;height:43px;border:1px solid #ccd5ce;border-radius:10px;background:white;padding:0 12px;font:inherit;color:var(--ink);outline:none}.stock-grid input:focus,.stacked-form input:focus,.mapping-form input:focus,.mapping-form select:focus{border-color:var(--green);box-shadow:0 0 0 3px rgba(31,107,69,.1)}.allocation{padding:8px 12px;border-radius:10px;background:#f4f6f4;min-height:66px}.allocation strong{font-size:21px}.allocation small{display:block;color:var(--muted)}.allocation.wb{border-left:3px solid var(--wb)}.allocation.ozon{border-left:3px solid var(--ozon)}.compact{white-space:nowrap}.empty-state{background:var(--surface);border:1px dashed #bdc9c0;border-radius:18px;text-align:center;padding:60px 24px;color:var(--muted)}.empty-state h2{color:var(--ink)}.empty-icon{font-size:40px;color:var(--green)}.flash{padding:13px 16px;border-radius:11px;margin-bottom:18px;border:1px solid}.flash.success{background:#e6f5eb;border-color:#bde0c8;color:#175c38}.flash.error{background:#ffeded;border-color:#ffc8c8;color:#8b2525}.flash.warning{background:#fff7dd;border-color:#efd984;color:#715b11}.login-page{min-height:100vh;display:grid;place-items:center;padding:24px}.login-card{width:min(440px,100%);background:white;border:1px solid var(--line);border-radius:22px;padding:36px;box-shadow:var(--shadow)}.login-card h1{font-size:34px}.stacked-form{display:grid;gap:16px;margin-top:26px}.stacked-form label,.mapping-form label{font-weight:650;font-size:13px}.stacked-form input,.mapping-form input{margin-top:6px}.secure-note{text-align:center;color:var(--muted);font-size:12px;margin-top:20px}.narrow{max-width:820px;margin:0 auto}.back{color:var(--green);text-decoration:none;display:inline-block;margin-bottom:28px}.mapping-form{background:white;border:1px solid var(--line);border-radius:18px;padding:25px;margin-top:24px;display:grid;gap:22px}.form-section{border-top:1px solid var(--line);padding-top:20px}.form-section>div{display:flex;align-items:center;gap:10px;margin-bottom:10px}.form-section h2{font-size:16px;margin:0}.market-badge{display:inline-grid;place-items:center;color:white;font-size:11px;font-weight:800;border-radius:6px;padding:4px 7px}.market-badge.wb{background:var(--wb)}.market-badge.ozon{background:var(--ozon)}.mapping-form select{height:46px}.three-cols{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.form-actions{display:flex;justify-content:flex-end;gap:10px;border-top:1px solid var(--line);padding-top:20px}.history-list{background:white;border:1px solid var(--line);border-radius:18px;padding:8px 22px}.history-list article{display:flex;gap:14px;padding:17px 0;border-bottom:1px solid var(--line)}.history-list article:last-child{border-bottom:0}.history-list p{margin:4px 0;color:var(--muted)}.history-list small{color:#8a938c}.history-dot{width:10px;height:10px;background:#d7f04b;border-radius:50%;margin-top:6px;box-shadow:0 0 0 4px #eff7cf}@media(max-width:900px){.stats{grid-template-columns:repeat(2,1fr)}.stock-grid{grid-template-columns:repeat(3,1fr)}.stock-grid button{grid-column:1/-1}.item-main,.page-head{align-items:flex-start;flex-direction:column}}@media(max-width:600px){.page{padding:28px 16px}.topbar{padding:0 16px}.topbar nav{gap:13px}.topbar nav a:first-child{display:none}.page h1{font-size:30px}.stats{grid-template-columns:1fr 1fr}.stock-grid{grid-template-columns:1fr 1fr}.allocation.reserve,.stock-grid button{grid-column:1/-1}.three-cols{grid-template-columns:1fr}.login-card{padding:26px}.actions{width:100%;flex-wrap:wrap}}
