:root{--bg:#f3f5f8;--ink:#202d3e;--muted:#627185;--line:#e0e6ed;--accent:#245bd8}*{box-sizing:border-box}body{margin:0;background:var(--bg);font:15px/1.5 system-ui,sans-serif;color:var(--ink)}header{background:#fff;border-bottom:1px solid var(--line);padding:18px 4%;display:flex;gap:20px;align-items:center}.brand{font-size:22px;font-weight:800;color:var(--ink)}.brand span{color:var(--accent)}a{text-decoration:none;color:var(--accent)}a:hover{text-decoration:underline}.environment,.muted,small{color:var(--muted)}.user{margin-left:auto}main{max-width:1320px;margin:auto;padding:36px 28px}h1{font-size:34px;letter-spacing:-1px;margin:4px 0 8px}h2{font-size:20px;margin:0 0 12px}h3{font-size:16px}p{margin:8px 0 16px}.eyebrow{font-size:11px;letter-spacing:2px;font-weight:700;color:var(--muted)}.heading,.row{display:flex;align-items:center;justify-content:space-between;gap:16px}.heading{margin-bottom:24px}.card{background:white;border:1px solid var(--line);border-radius:14px;padding:24px;margin-bottom:24px}.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:22px}.project-card{color:var(--ink)}.project-card:hover{border-color:#9bb4eb;text-decoration:none}.metrics{display:flex;gap:40px;margin:24px 0}.metrics strong{display:block;font-size:28px}.metrics span{color:var(--muted)}.badge,.tag{display:inline-block;border-radius:6px;background:#edf1f6;padding:4px 9px;font-size:12px}.tag{margin:2px}.danger{color:#a32727;background:#ffeded}.warning{color:#805811;background:#fff2d7}label{display:block;margin:12px 0;font-size:13px;color:var(--muted)}input,textarea,select{font:inherit;width:100%;padding:10px 12px;border:1px solid #cbd5e1;border-radius:7px;background:white;color:var(--ink);margin-top:5px}input:focus,textarea:focus,select:focus{outline:2px solid #a5bff8;outline-offset:1px}button{border:0;border-radius:7px;padding:11px 16px;background:var(--accent);color:white;font:inherit;cursor:pointer;white-space:nowrap}button:hover{filter:brightness(.95)}button.secondary{background:#edf2fc;color:#234eaa}.quiet{background:#f1f4f8;color:var(--ink);padding:6px 12px}.inline{display:flex;gap:12px;align-items:end;flex-wrap:wrap}.inline>label,.inline>input,.inline>select{flex:1;min-width:150px}.inline label{margin:0}.inline input[type=file]{max-width:450px}.tabs{display:flex;gap:28px;margin:24px 0;border-bottom:1px solid var(--line);padding-bottom:16px;flex-wrap:wrap}.notice{padding:15px 20px;border-radius:9px;margin-bottom:16px;background:#e7f2ff}.notice.error{background:#fff0ed;color:#982b27}.notice.success{background:#e9f5ee;color:#245d40}.error-text{color:#982b27}.filters{margin:18px 0}.table-wrap{overflow:auto}table{border-collapse:collapse;width:100%;text-align:left}th{font-size:12px;color:var(--muted);font-weight:600}th,td{padding:14px 10px;border-bottom:1px solid var(--line)}td:first-child{max-width:400px}.pagination{display:flex;gap:20px;justify-content:center;margin-top:20px}.collection{padding:16px 0;border-bottom:1px solid var(--line)}.thumbs{display:flex;gap:8px}.thumbs img{width:80px;height:80px;object-fit:contain;border:1px solid var(--line);border-radius:6px}.editor{display:grid;grid-template-columns:1fr 1fr;gap:28px}.hero-image{width:100%;height:340px;object-fit:contain}.empty-image{padding:80px;text-align:center;background:var(--bg)}.price{font-size:24px;font-weight:700}.checkbox{display:flex;align-items:center;gap:10px}.checkbox input{width:auto;margin:0}.back{display:block;margin-bottom:20px}details{border-bottom:1px solid var(--line);padding:12px 0}summary{cursor:pointer}.diff{display:grid;grid-template-columns:1fr 1fr;gap:16px}pre{white-space:pre-wrap;overflow-wrap:anywhere;background:var(--bg);padding:12px;font-size:12px}.login{max-width:460px;margin:60px auto}footer{text-align:center;color:var(--muted);font-size:12px;padding:24px}@media(max-width:760px){main{padding:20px 12px}.editor,.diff{grid-template-columns:1fr}.row,.heading{align-items:flex-start;flex-direction:column}.card{padding:18px}.environment{display:none}h1{font-size:28px}}

.stock-yes{color:#18723b;font-weight:650}.stock-no{color:#b22c2c;font-weight:650}
.category-picker{position:relative;flex:1 1 290px;min-width:0;max-width:100%;padding:0;border:0}
.category-picker>summary{display:flex;align-items:center;gap:12px;min-height:44px;padding:10px 12px;border:1px solid #cbd5e1;border-radius:7px;background:#fff;list-style:none}
.category-picker>summary::-webkit-details-marker{display:none}
.category-picker>summary::after{content:"";width:7px;height:7px;border-right:2px solid #627185;border-bottom:2px solid #627185;transform:rotate(45deg);flex:none;margin:0 2px 4px 4px}
.category-picker[open]>summary{border-color:#245bd8;box-shadow:0 0 0 2px #245bd820}
.category-caption{display:flex;align-items:center;justify-content:space-between;gap:16px;min-width:0;flex:1}
.category-name{min-width:0;overflow-wrap:anywhere}
.category-picker summary .category-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.category-count{flex:none;white-space:nowrap;font-variant-numeric:tabular-nums}
.category-options{position:absolute;z-index:30;top:calc(100% + 6px);left:0;width:100%;min-width:0;max-height:320px;overflow-y:auto;overflow-x:hidden;padding:6px;background:#fff;border:1px solid #d5deeb;border-radius:10px;box-shadow:0 12px 32px #202d3e25;overscroll-behavior:contain}
.category-options>label{display:flex;align-items:center;gap:10px;min-height:42px;margin:0;padding:9px 10px;border-radius:6px;cursor:pointer;color:var(--ink);font-size:14px;line-height:1.4}
.category-options>label:hover{background:#f0f4fb}
.category-options>label:has(input:checked){background:#eaf0fc}
.category-options input[type=radio]{flex:0 0 15px;width:15px;min-width:15px;height:15px;margin:0;padding:0;accent-color:#245bd8}
.category-options>p{font-size:11px;padding:7px 10px;margin:0 0 3px;border-bottom:1px solid #e0e6ed}
@media(max-width:760px){.category-picker{flex-basis:100%;width:100%}.category-options{max-height:280px}}

.gallery-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(145px,1fr));gap:12px;margin:16px 0}.gallery-item{border:1px solid var(--line);border-radius:10px;padding:10px;min-width:0;background:#fafbfd;display:flex;flex-direction:column;gap:8px}.gallery-item.selected{border-color:#8eabea;background:#f3f7ff}.gallery-item img{width:100%;height:140px;object-fit:contain;background:#fff}.gallery-controls{display:flex;gap:4px;flex-wrap:wrap}.gallery-controls button{padding:5px 8px;font-size:12px}button:disabled{opacity:.35;cursor:default}.select-product,input[type=checkbox].select-all{width:18px;height:18px;margin:0;accent-color:var(--accent)}.bulk-toolbar{padding:14px;background:#f3f6fc;border-radius:8px;margin-bottom:16px}.task-comment{border-left:3px solid var(--line);padding:8px 14px;margin:10px 0}.task-comment p{white-space:pre-wrap}.gallery-editor{margin:24px 0}

.filters{display:grid;grid-template-columns:minmax(220px,1.3fr) minmax(280px,1.6fr) minmax(160px,1fr) minmax(160px,1fr);align-items:center}.filters>input,.filters>select,.filters>.category-picker{min-width:0;width:100%;margin-top:0}.filters .category-picker{max-width:100%}.filters>a{justify-self:start}@media(max-width:1100px){.filters{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){.filters{grid-template-columns:minmax(0,1fr)}}

.workflow-stats{grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.workflow-stats>.card{margin:0;padding:16px}.workflow-stats strong{font-size:26px}.workflow-stats p{margin:4px 0}.workflow-notices{margin-bottom:20px}.workflow-notices summary{font-weight:600}.workflow-notices>.notice{margin-top:14px}.card a,.card code{overflow-wrap:anywhere}.card button{max-width:100%;white-space:normal}.card,.collection{min-width:0}
@media(max-width:900px){.workflow-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:500px){.workflow-stats{grid-template-columns:minmax(0,1fr)}header{gap:12px;flex-wrap:wrap}.inline>select,.inline>input,.inline>label{max-width:100%;min-width:0}.grid{grid-template-columns:minmax(0,1fr)}}
.status-lights{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:16px;margin-bottom:24px}.light{display:flex;gap:12px;align-items:flex-start;color:var(--ink);margin:0;padding:18px;border-left:6px solid #c9d2dc}.light:hover{text-decoration:none;border-color:#9bb4eb}.light p{margin:6px 0 0;font-size:13px;color:var(--muted)}.light-dot{width:12px;height:12px;border-radius:50%;flex:none;margin-top:5px;background:#9aa6b2}.light-ok{border-left-color:#2f8a4f}.light-ok .light-dot{background:#2f8a4f}.light-warn{border-left-color:#d49a1f}.light-warn .light-dot{background:#d49a1f}.light-bad{border-left-color:#c2412d}.light-bad .light-dot{background:#c2412d}.light-word{font-size:12px;color:var(--muted)}.light-bad .light-word{color:#a32727;font-weight:600}.problems .problem{border-top:1px solid var(--line);padding:14px 0}.problems .problem:first-of-type{border-top:0}.problems h3{margin:0 0 6px}.problems-ads{border-left:6px solid #c2412d}.button-link{display:inline-block;background:var(--accent);color:#fff;border-radius:7px;padding:8px 14px}.button-link:hover{text-decoration:none;filter:brightness(.95)}.todo{margin:0;padding-left:18px}.todo li{margin:6px 0}.project-lights{display:flex;flex-direction:column;gap:6px;margin:14px 0}.project-lights span{display:flex;gap:8px;align-items:flex-start;font-size:13px;color:var(--muted)}.project-lights i{width:10px;height:10px;border-radius:50%;flex:none;margin-top:5px;background:#9aa6b2}.project-lights .ok i{background:#2f8a4f}.project-lights .warn i{background:#d49a1f}.project-lights .bad i{background:#c2412d}.project-lights b{color:var(--ink);font-weight:600}
.slider-thumbs{flex-wrap:wrap;margin-top:10px}.slider-thumbs img{cursor:pointer;width:64px;height:64px}.slider-thumbs img.selected{outline:2px solid var(--accent);outline-offset:1px}.slider-nav{justify-content:center;margin-top:8px}.ad-preview{display:grid;grid-template-columns:140px 1fr;gap:14px;align-items:start;border:1px solid var(--line);border-radius:10px;padding:12px;margin:10px 0}.ad-preview img{width:140px;height:140px;object-fit:contain;background:var(--bg);border-radius:6px}.ad-preview h3{margin:0 0 6px;font-size:15px}.ad-preview .price{font-size:20px;margin:0 0 6px}.decision-box{border-left:6px solid #d49a1f}.product-head h1{font-size:28px}
.tab-groups{display:flex;gap:28px;flex-wrap:wrap;align-items:flex-start;margin:24px 0;border-bottom:1px solid var(--line);padding-bottom:14px}.tab-group{display:flex;flex-direction:column;gap:6px}.tab-group .eyebrow{font-size:10px;letter-spacing:1.5px}.tab-links{display:flex;gap:16px;flex-wrap:wrap}.tab-links a[aria-current=page]{font-weight:700;border-bottom:3px solid currentColor;padding-bottom:4px}.tab-group.service{border:0;padding:0;margin-left:auto}.tab-group.service summary{font-size:13px;color:var(--muted)}.tab-group.service .tab-links{margin-top:8px;font-size:14px}
.head-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,420px);gap:24px}.save-bar{position:sticky;bottom:0;display:flex;gap:16px;align-items:center;margin-top:0;z-index:2}@media(max-width:760px){.head-grid{grid-template-columns:1fr}}
.chips{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}.chip{border:1px solid var(--line);border-radius:999px;padding:6px 12px;font-size:13px;color:var(--ink);background:#fff}.chip b{color:var(--muted);font-weight:600;margin-left:4px}.chip:hover{text-decoration:none;border-color:#9bb4eb}.chip.active{background:var(--accent);border-color:var(--accent);color:#fff}.chip.active b{color:#dfe8fb}.bulk-bar{position:sticky;top:0;z-index:3;display:flex;flex-wrap:wrap;gap:10px;align-items:center;background:#fff;border:1px solid #9bb4eb;border-radius:10px;padding:12px;margin:12px 0}.bulk-bar select,.bulk-bar input{width:auto;margin:0}.row-thumb{width:48px;height:48px;object-fit:contain;border:1px solid var(--line);border-radius:6px;background:var(--bg)}.products-table td{vertical-align:middle;padding:10px}.status-ok{background:#e9f5ee;color:#245d40}.status-pending,.status-draft{background:#fff2d7;color:#805811}.status-missing,.status-conflict{background:#ffeded;color:#a32727}.status-excluded,.status-archived{background:#edf1f6;color:var(--muted)}
.feed-card{border-left:6px solid #c9d2dc}.feed-card .row{align-items:flex-start}.feed-card h2{margin:4px 0}.feed-url{margin:8px 0 12px}.feed-url code{font-size:13px;background:var(--bg);padding:6px 10px;border-radius:6px}.feed-card details{padding:10px 0}
.field{margin:2px 0}.field-chip{display:inline-block;font-size:11px;font-weight:600;border-radius:5px;padding:1px 7px;margin-left:4px}.field-manual .field-chip{background:#fff2d7;color:#805811}.field-rule .field-chip{background:#e6eef9;color:#2f5d9e}.field-manual input,.field-manual textarea{background:#fffbea;border-color:#e2b34a}.field-rule input,.field-rule textarea{background:#f2f6fd;border-color:#9bb4eb}.field-was{font-size:12px;color:var(--muted);margin:-6px 0 10px;display:flex;gap:10px;align-items:center;flex-wrap:wrap}.field-was button{padding:3px 10px;font-size:12px}
.history-group{padding:14px 18px}.history-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}.history-head form{margin:0}.history-changes{margin:8px 0;padding-left:18px}.history-changes li{margin:2px 0}.revert-conflict{background:#fff2d7}
.selection-table select,.selection-table input{margin:0}.selection-table td{padding:6px}
