:root{--red:#c9202a;--red-dark:#a31620;--ink:#202020;--muted:#77736f;--paper:#f7f6f3;--line:#e8e5e0;--green:#247651;--radius:16px;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);background:var(--paper);font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.45}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible{outline:3px solid #e8a344;outline-offset:3px}h1,h2,h3,p{margin-top:0}h1{font-size:32px;letter-spacing:-1.1px;margin-bottom:8px}h2{font-size:20px;letter-spacing:-.5px}h3{font-size:17px}small,.muted{color:var(--muted)}.sidebar{position:fixed;inset:0 auto 0 0;width:242px;background:#181818;color:white;padding:36px 22px;display:flex;flex-direction:column;z-index:20}.brand{display:flex;align-items:center;gap:10px;font-size:22px;font-weight:850;letter-spacing:1.5px}.brand small{display:block;color:#b3b3b3;font-size:8px;letter-spacing:1.8px;margin-top:4px}.brand-symbol{display:grid;place-items:center;width:44px;height:46px;flex-shrink:0;background:var(--red);border-radius:12px;color:white;font-size:19px;font-weight:900;letter-spacing:-1px;transform:skew(-5deg)}.workspace-label{font-size:10px;color:#777;letter-spacing:2px;margin:58px 14px 16px}.sidebar nav{display:grid;gap:8px}.sidebar nav button{display:flex;gap:15px;align-items:center;background:none;border:0;color:#aaa;padding:15px 17px;border-radius:10px;text-align:left;font-size:14px;font-weight:550}.sidebar nav button span{font-size:22px;width:24px}.sidebar nav button.active{background:var(--red);color:white}.sidebar nav button:hover{color:white}.sidebar-bottom{margin-top:auto;font-size:12px;line-height:2.3;padding:12px;overflow-wrap:anywhere}.sidebar-bottom small{color:#939393;font-size:10px}.status-dot{display:inline-block;width:6px;height:6px;background:#7eb693;border-radius:50%;margin-right:6px}.text-button{border:0;background:none;color:inherit;padding:0;text-align:left;font-size:12px}.sidebar-bottom button{display:block;color:#aaa;margin-top:10px}.shell{margin-left:242px}header{height:104px;border-bottom:1px solid var(--line);padding:24px 42px;display:flex;align-items:center;justify-content:space-between;background:#fff9;gap:15px}.eyebrow{font-size:10px;font-weight:800;letter-spacing:2px}header p{font-size:12px;color:var(--muted);margin:6px 0 0}.button{display:inline-flex;align-items:center;justify-content:center;gap:10px;border:1px solid var(--line);border-radius:9px;background:white;padding:12px 17px;font-size:13px;font-weight:650;min-height:44px}.primary{background:var(--red);color:white;border-color:var(--red)}.primary:hover{background:var(--red-dark)}.secondary{background:#f0ede8}.danger{color:var(--red)}main{padding:38px 42px;max-width:1600px;margin:auto;min-height:calc(100vh - 166px)}.page-title{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:28px}.page-title p{color:var(--muted);font-size:13px;margin:0}.page-title .actions{display:flex;gap:8px;flex-wrap:wrap}.filters{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:25px}.filters input{max-width:250px}.filters select{width:auto;min-width:165px}.filter-date{display:flex;gap:8px;align-items:center}.metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:24px 0}.metric{background:white;border:1px solid var(--line);border-radius:var(--radius);padding:23px;min-width:0}.metric-label{font-size:12px;color:var(--muted);display:flex;justify-content:space-between;gap:5px}.metric strong{display:block;font-size:27px;letter-spacing:-.9px;margin:18px 0 10px;overflow-wrap:anywhere}.metric small{font-size:11px}.metric.featured{background:#202020;color:white;border-color:#202020}.metric.featured .metric-label,.metric.featured small{color:#bababa}.metric.featured strong{color:white}.metrics.secondary-metrics .metric{padding:16px 22px}.secondary-metrics .metric strong{font-size:22px;margin:12px 0 0}.panel{padding:26px;background:white;border:1px solid var(--line);border-radius:var(--radius);margin-bottom:20px;min-width:0}.panel-heading{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:20px}.panel-heading h2{margin:0}.panel-heading small{font-size:11px}.report-grid{display:grid;grid-template-columns:1.6fr 1fr;gap:20px}.legend{font-size:11px;display:flex;gap:15px;color:var(--muted)}.legend b{display:inline-block;width:7px;height:7px;background:var(--red);border-radius:50%;margin-right:5px}.legend b.profit{background:#272727}.chart{width:100%;height:230px}.chart text{font-size:11px;fill:#8b8781}.chart .grid{stroke:#eeece8;stroke-dasharray:4}.chart-table{font-size:12px}.rank-row{display:flex;align-items:center;gap:13px;padding:16px 0;border-bottom:1px solid var(--line)}.rank-row:last-child{border:0}.rank-number{width:28px;height:28px;display:grid;place-items:center;font-size:12px;border-radius:8px;background:var(--paper);color:var(--muted)}.rank-row strong{font-size:12px;display:block}.rank-row small{font-size:10px}.rank-value{margin-left:auto;font-size:12px;white-space:nowrap}.note{font-size:11px;color:var(--muted);line-height:1.7}.product-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}.product-card{border:1px solid var(--line);border-radius:var(--radius);background:white;overflow:hidden}.product-photo{position:relative;height:190px;background:#efede8}.product-photo img{width:100%;height:100%;object-fit:cover}.product-photo .badge{position:absolute;top:12px;left:12px}.product-photo .edit{position:absolute;right:10px;top:10px;background:#fffe}.product-info{padding:18px}.product-info h3{margin:7px 0 12px}.product-meta{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px}.product-meta strong{font-size:22px}.product-meta small{font-size:11px}.badge{display:inline-block;font-size:10px;font-weight:650;border-radius:5px;background:#fff;padding:5px 8px;color:#65605a}.badge.low{color:#a35a12;background:#fff1d9}.badge.good{background:#edf6ef;color:var(--green)}.badge.void{background:#eee;color:#777}.split-button{display:flex;width:100%}.split-button button{background:var(--red);color:white;border:0;min-height:46px;font-size:12px;font-weight:700}.split-button button:first-child{border-radius:8px 0 0 8px;flex:1}.split-button button:last-child{width:43px;border-left:1px solid #ffffff40;border-radius:0 8px 8px 0}.split-button button:hover{background:var(--red-dark)}.icon-button{background:none;border:1px solid var(--line);width:36px;height:36px;border-radius:8px;font-size:19px;flex-shrink:0}.table-wrap{overflow:auto;border:1px solid var(--line);border-radius:12px;background:white}table{border-collapse:collapse;width:100%;text-align:left;white-space:nowrap;font-size:12px}th{background:#faf9f7;color:var(--muted);font-weight:500;font-size:11px}th,td{padding:16px;border-bottom:1px solid var(--line)}td .button{font-size:11px;padding:8px 12px;min-height:36px}td small{display:block;margin-top:4px}.empty{padding:55px 20px;text-align:center;color:var(--muted);border:1px dashed #d8d2ca;border-radius:12px;background:#ffffff80}.empty strong{display:block;color:var(--ink);margin-bottom:10px}.empty p{font-size:13px}.success{color:var(--green)}.tabs{display:flex;padding:4px;background:#eae7e2;border-radius:9px;gap:4px}.tabs button{border:0;border-radius:6px;padding:9px 12px;font-size:12px;background:none;color:var(--muted)}.tabs .selected{background:white;color:var(--ink);box-shadow:0 1px 3px #0001}input,select,textarea{width:100%;border:1px solid #ddd8d1;border-radius:8px;padding:11px 12px;background:white;color:var(--ink);min-height:44px;font-size:14px}input:focus,select:focus,textarea:focus{outline:2px solid #c9202a50;outline-offset:1px}label{font-size:12px;display:block;line-height:1.5;color:#555}label>input,label>select,label>textarea{margin-top:6px}textarea{resize:vertical;min-height:80px}dialog{width:min(620px,calc(100vw - 28px));max-height:90dvh;border:1px solid var(--line);border-radius:18px;padding:25px;box-shadow:0 30px 100px #0003}dialog::backdrop{background:#17171780;backdrop-filter:blur(3px)}.modal-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:23px}.modal-head h2{margin:0}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.full{grid-column:1/-1}.form-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:24px}.form-error{color:var(--red);font-size:13px;line-height:1.5}.calc{background:var(--paper);border-radius:10px;padding:16px;display:flex;justify-content:space-between;flex-wrap:wrap;gap:12px;font-size:12px}.calc strong{display:block;font-size:18px;margin-top:5px}.check-label{display:flex;align-items:center;gap:9px}.check-label input{width:18px;min-height:20px;margin:0}#toast{position:fixed;bottom:24px;left:calc(50% + 120px);transform:translateX(-50%);z-index:60;padding:16px 20px;background:#202020;color:white;border-radius:12px;box-shadow:0 10px 30px #0003;max-width:90vw;min-width:280px;font-size:13px}#toast button{color:#fff;background:var(--red);border:0;padding:9px;border-radius:6px;margin-left:12px}footer{padding:22px 42px;color:#98928c;font-size:9px;letter-spacing:1.5px;display:flex;justify-content:space-between;border-top:1px solid var(--line)}footer span{letter-spacing:0}.login{min-height:100dvh;display:grid;place-items:center;background:linear-gradient(135deg,#161616 65%,#3e1619)}.login-card{max-width:460px;width:calc(100% - 40px);padding:46px;background:var(--paper);border-radius:22px}.login-card .brand-symbol{margin-bottom:34px}.login-card h1{font-size:40px;line-height:1.12;margin:20px 0}.login-card p:not(.eyebrow){color:var(--muted);font-size:14px;line-height:1.7}.login-card .button{display:flex;margin:30px 0 20px;justify-content:space-between}.login-card small{font-size:10px}.audit-entry{padding:12px 0;border-bottom:1px solid var(--line);font-size:12px}.audit-entry pre{white-space:pre-wrap;overflow-wrap:anywhere;font-size:11px;background:var(--paper);padding:10px}details{margin:16px 0}summary{cursor:pointer;font-size:12px}input[type=file]{font-size:12px}.loading{opacity:.5;pointer-events:none}
@media(min-width:1500px){.product-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:1150px){.sidebar{width:206px;padding:30px 14px}.shell{margin-left:206px}header,main{padding-left:25px;padding-right:25px}.metric{padding:18px}.metric strong{font-size:23px}.product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.report-grid{grid-template-columns:1fr}.brand{font-size:19px}#toast{left:calc(50% + 103px)}}
@media(max-width:760px){.sidebar{inset:auto 0 0 0;width:100%;height:calc(70px + env(safe-area-inset-bottom));padding:4px 5px env(safe-area-inset-bottom);border-top:1px solid #333}.sidebar>.brand,.workspace-label,.sidebar-bottom{display:none}.sidebar nav{display:flex;height:65px;gap:3px}.sidebar nav button{flex:1;flex-direction:column;justify-content:center;gap:2px;padding:5px 0;font-size:10px;border-radius:8px}.sidebar nav button span{font-size:22px;width:auto}.shell{margin:0;padding-bottom:calc(75px + env(safe-area-inset-bottom))}header{height:80px;padding:18px}header p{font-size:10px;max-width:160px;line-height:1.5}header .button{font-size:11px;padding:10px}main{padding:25px 16px;min-height:calc(100dvh - 220px)}h1{font-size:27px}.page-title{align-items:flex-start;flex-wrap:wrap;margin-bottom:22px}.page-title p{font-size:12px}.metrics{grid-template-columns:1fr 1fr;gap:10px;margin:18px 0}.metric{padding:17px 14px;border-radius:12px}.metric-label{font-size:10px}.metric strong{font-size:23px;margin:14px 0 8px}.metric small{font-size:9px}.metrics.secondary-metrics .metric{padding:14px}.secondary-metrics .metric strong{font-size:20px}.filters{gap:8px}.filters select{min-width:130px;flex:1}.filters input{max-width:none;flex:1;min-width:0}.filters .search{flex-basis:100%}.filter-date{width:100%;font-size:11px}.filter-date input{width:42%;font-size:14px}.panel{padding:20px 15px}.panel-heading{flex-wrap:wrap}.panel-heading h2{font-size:17px}.product-grid{gap:12px;grid-template-columns:repeat(2,minmax(0,1fr))}.product-photo{height:145px}.product-info{padding:12px}.product-info h3{font-size:14px;line-height:1.4;min-height:39px;margin:5px 0 10px}.product-info>.muted{font-size:9px}.product-meta{flex-wrap:wrap;gap:6px;margin-bottom:12px}.product-meta strong{font-size:19px}.product-meta small{font-size:10px}.split-button button:first-child{font-size:10px;padding:6px}.split-button button:last-child{width:32px}.product-photo .badge{font-size:8px;left:8px;top:8px;max-width:105px}.product-photo .edit{top:7px;right:7px;width:30px;height:30px;font-size:14px}.form-grid{gap:13px}input,select,textarea{font-size:16px}dialog{padding:20px;max-height:88dvh}.form-actions .button{flex:1}#toast{left:50%;bottom:calc(85px + env(safe-area-inset-bottom));width:calc(100% - 28px);font-size:12px}footer{padding:16px;font-size:8px;gap:15px}.chart{height:200px}.login-card{padding:32px}}
@media(prefers-reduced-motion:no-preference){button,a{transition:background .15s,opacity .15s}}
[hidden]{display:none!important}
.mobile-only{display:none}
@media(max-width:760px){.mobile-only{display:inline-block}header{gap:8px}header>div{flex:1}header .eyebrow{font-size:9px}.split-button button:last-child{width:44px}.icon-button{min-height:36px}}
@media(max-width:430px){.product-grid{grid-template-columns:1fr}.product-photo{height:185px}.product-info{padding:18px}.product-info h3{font-size:18px;min-height:0}.product-info>.muted{font-size:11px}.product-meta strong{font-size:23px}.product-meta small{font-size:12px}.split-button button:first-child{font-size:13px}.split-button button{min-height:48px}.product-photo .badge{font-size:10px;max-width:none}.product-photo .edit{width:40px;height:40px;font-size:18px}}
