/* Shared interface refinement: geometry, surfaces and numeric hierarchy. */
:root{--surface-raised:#fff;--control-surface:#fff;--number-size:16px}
:root[data-theme=dark]{--bg:#111823;--surface:#1a2533;--subtle:#243448;--surface-raised:#25364a;--control-surface:#203044;--row-hover:#2b4058;--line:#40536a;--control-line:#536b85;--good-soft:#1d4537;--warn-soft:#4a3923;--bad-soft:#482d38;--table-foot:#24364b}
:root[data-theme=dark] .panel,:root[data-theme=dark] .tile{background:var(--surface-raised)}
.metric{background:var(--subtle)}.metric strong,dialog .metric strong{font-size:32px;line-height:1.2;font-weight:650;font-variant-numeric:tabular-nums}
.num,.ui-number,.commerce-signal strong,.commerce-pill strong{font-size:var(--number-size);font-variant-numeric:tabular-nums;line-height:1.35}.ui-number{white-space:nowrap}
.site-select-native{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;clip-path:inset(50%)!important;overflow:hidden!important;white-space:nowrap!important;pointer-events:none!important;opacity:0!important}
.site-select{display:inline-flex;align-items:center;justify-content:space-between;gap:12px;min-width:110px;max-width:100%;min-height:var(--control);padding:8px 12px;border:1px solid var(--control-line);border-radius:6px;background:var(--control-surface);color:var(--ink);font:inherit;font-size:13px;cursor:pointer;text-align:left}
.site-select>span:first-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}.site-select-arrow{flex:none;color:var(--muted);font-size:17px;line-height:1}.site-select:hover:not(:disabled),.site-select[aria-expanded=true]{border-color:var(--accent);background:var(--accent-soft)}.site-select:focus-visible{outline:3px solid var(--accent-line);outline-offset:2px}.site-select:disabled{cursor:not-allowed;opacity:.5}.site-select[hidden]{display:none!important}.site-select.channel-select{min-width:0}.site-select.mobile-nav{display:none}
.site-select-popup{position:fixed;inset:auto;margin:0;padding:6px;min-width:0;border:1px solid var(--control-line);border-radius:9px;background:var(--surface-raised);color:var(--ink);box-shadow:var(--shadow);overflow:auto;z-index:1000}.site-select-popup::backdrop{background:transparent;pointer-events:none}.site-select-popup>input{width:100%;min-width:0;min-height:38px;margin-bottom:6px;background:var(--control-surface);color:var(--ink)}.site-select-options{display:grid;gap:3px}.site-select-options>button{font:inherit;font-size:14px;text-align:left;white-space:normal;overflow-wrap:anywhere;color:var(--ink);background:transparent;border:0;border-radius:5px;padding:10px 12px;min-height:40px;cursor:pointer}.site-select-options>button:hover,.site-select-options>button:focus-visible{outline:0;background:var(--row-hover)}.site-select-options>button[aria-selected=true]{background:var(--accent-soft);color:var(--accent);font-weight:650}.site-select-empty{margin:8px;color:var(--muted)}
#modal{width:min(760px,calc(100vw - 40px));max-width:none;max-height:calc(100dvh - 32px)}#modal[open]{display:grid;grid-template-rows:auto minmax(0,1fr) auto}#modal[data-layout=form]{width:min(1120px,calc(100vw - 40px))}#modal[data-layout=wide]{width:min(1520px,calc(100vw - 40px))}#modal .modal-body{min-width:0;min-height:0;max-height:none;overflow-y:auto;overflow-x:hidden;padding:24px;overscroll-behavior:contain}#modal .modal-body>*{min-width:0;max-width:100%}#modal .table-wrap{max-width:100%;max-height:min(66dvh,720px);overflow:auto}#modal th,#modal td{overflow-wrap:anywhere}#modal .detail-list,#modal .commerce-detail-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0 24px}#modal .detail-list>div,#modal .commerce-detail-list>div{display:block;min-width:0;padding:12px 0}#modal dt{line-height:1.4}#modal dd{margin:7px 0 0;overflow-wrap:anywhere;font-size:16px}#modal input,#modal textarea,#modal .site-select{max-width:100%;min-width:0}#modal input[type=number]{font-size:17px}.ui-field-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px 22px;align-content:start}.ui-field-grid>label.field{min-width:0;margin:0;align-self:start}.ui-field-grid>:not(label.field){grid-column:1/-1}.ui-field-grid>label.field input,.ui-field-grid>label.field .site-select{width:100%}
@media(max-width:1000px){.ui-field-grid,#modal .detail-list,#modal .commerce-detail-list{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:950px){.site-select.mobile-nav{display:inline-flex}}
@media(max-width:600px){:root{--number-size:15px}.site-select{padding:7px 9px;min-width:90px}.site-select.channel-select{max-width:92px}.site-select.mobile-nav{min-width:0}.ui-field-grid,#modal .detail-list,#modal .commerce-detail-list{grid-template-columns:1fr}#modal,#modal[data-layout=form],#modal[data-layout=wide]{width:calc(100vw - 16px);max-height:calc(100dvh - 16px)}#modal .modal-body{padding:16px}.metric strong,dialog .metric strong{font-size:28px}#modal>header,#modal>footer{padding:14px 16px}}

.commerce-number-button{font-size:var(--number-size)}#modal .form-grid{grid-template-columns:repeat(3,minmax(0,1fr))}@media(max-width:1000px){#modal .form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){#modal .form-grid{grid-template-columns:1fr}}

/* Header owns the height of wrapped actions; the table consumes the remaining viewport. */
.app-header{height:auto;min-height:var(--header);flex-wrap:wrap;row-gap:6px;padding-block:8px}
.header-actions{min-width:0;max-width:100%;flex:none}
.header-actions .page-actions{flex-wrap:wrap;justify-content:flex-end}
@media(max-width:600px){.app-header{padding-block:6px}}

/* Product review 28.10: quiet surfaces, meaningful state colors and direct values. */
:root:not([data-theme=dark]){--bg:#eaf0f5;--subtle:#f1f4f8;--row-hover:#eaf1fa;--line:#d6dee8;--table-foot:#edf2f8;--surface-raised:#fff}
:root:not([data-theme=dark]) .app-header{box-shadow:0 1px 5px #1c355b0a}:root:not([data-theme=dark]) .toolbar{background:#f3f6fa}:root:not([data-theme=dark]) thead th{background:#eaf0f7}:root:not([data-theme=dark]) tbody tr:nth-child(even){background:#f7f9fc}:root:not([data-theme=dark]) tbody tr:hover{background:var(--row-hover)}
.header-actions .page-actions .btn.quiet,.toolbar .mobile-action .btn.quiet{border:1px solid var(--control-line);background:var(--control-surface)}.header-actions .journal-top{border:1px solid var(--control-line);background:var(--accent-soft);color:var(--accent)}
.page-footer{display:flex;align-items:center;gap:18px;min-width:0;flex:1}.page-footer:empty{display:none}.page-footer .btn{min-height:28px;padding:3px 8px;font-size:12px}.product-count{font-variant-numeric:tabular-nums;white-space:nowrap}.preview-footer .footer-brand{color:var(--muted);font-size:11px}.preview-footer:has(.page-footer:not(:empty)) .footer-brand{display:none}
.product-filter-controls{display:flex;gap:7px;align-items:center;flex-wrap:wrap;flex:1 1 100%}.product-filter-controls .site-select{min-width:132px;padding-block:5px;min-height:32px}.product-filter-summary{display:flex;align-items:center;gap:6px;flex-wrap:wrap;flex:1 1 100%;font-size:12px}.product-filter-summary .btn{min-height:28px;padding:3px 8px}.filter-chip{font:inherit;color:var(--accent);background:var(--accent-soft);border:1px solid var(--accent-line);border-radius:5px;padding:4px 7px;cursor:pointer}.filter-chip span{margin-left:7px}.filter-chip:focus-visible{outline:2px solid var(--accent)}
.products-workspace .toolbar{gap:8px;padding-block:9px}.products-workspace td{height:auto;padding-block:10px}.commerce-product .sub{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.marketplace-link{display:inline-flex!important;align-items:center;gap:4px;color:var(--muted);text-decoration:none;width:fit-content}.marketplace-link:hover,.marketplace-link:focus-visible{color:var(--accent);text-decoration:underline}.marketplace-link>span[aria-hidden]{font-size:15px;color:var(--accent)}
.cell-value{padding:6px;border:1px solid transparent;border-radius:5px;min-height:32px;cursor:pointer;overflow-wrap:anywhere}.cell-value:hover{background:var(--accent-soft);border-color:var(--accent-line)}.cell-value:focus-visible{outline:2px solid var(--accent);outline-offset:1px;background:var(--accent-soft)}.cell-value .sub{margin-top:2px}.cell-edit-icon{padding:2px 6px;min-height:26px;font-size:15px}.more-count{font-size:11px;color:var(--muted);white-space:nowrap}.product-status{font-size:12px;line-height:1.4;white-space:normal;padding:5px 8px}.product-status.ready{color:var(--accent);background:var(--accent-soft);border-color:var(--accent-line)}.barcode-alert{display:inline-block;color:var(--bad);background:var(--bad-soft);border:1px solid var(--bad-line);border-radius:4px;padding:3px 6px;font-weight:600}.product-labels{display:flex;align-items:center;gap:4px;margin-top:4px;flex-wrap:wrap}.product-label{display:inline-block;padding:1px 6px;font-size:11px;line-height:1.5;background:var(--accent-soft);color:var(--accent);border-radius:4px;max-width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.quick-journal-list{padding:0;margin:12px 0 0;list-style:none}.quick-journal-list>li+li{border-top:1px solid var(--line)}.quick-journal-event{display:flex;align-items:center;justify-content:space-between;gap:18px;text-align:left;width:100%;padding:13px 10px;font:inherit;color:var(--ink);background:transparent;border:0;border-radius:5px;cursor:pointer}.quick-journal-event:hover,.quick-journal-event:focus-visible{background:var(--row-hover);outline:2px solid var(--accent-line)}.quick-journal-event>span{min-width:0}.quick-journal-event>span:last-child{display:grid;justify-items:end;gap:7px;flex:none}.quick-journal-event .sub{overflow-wrap:anywhere}.quick-journal-event time{font-size:12px;color:var(--muted)}
@media(max-width:700px){.product-filter-controls{gap:6px}.product-filter-controls .site-select{min-width:0;max-width:calc(50% - 3px);flex:1 1 45%}.page-footer{gap:5px;flex-wrap:wrap}.page-footer .btn{font-size:11px}.preview-footer:has(.page-footer:not(:empty))>.inline{display:none}.products-workspace .toolbar{padding:8px 12px}.products-workspace .commerce-search{flex:1 1 100%;max-width:none}.product-status{font-size:11px}.quick-journal-event{gap:10px}}

/* Keep an offscreen color/value column from wrapping one letter per line. */
.products-workspace .cell-value{min-width:104px}

/* UI review 02.11.2026: local proposal */
.product-sort,.product-filter-menu{position:relative}.product-filter-menu{margin-inline-start:auto}.product-sort summary{cursor:pointer;border:1px solid var(--line,#ccd5df);padding:10px;border-radius:9px}.control-popover{position:absolute;z-index:40;top:100%;right:0;width:min(520px,calc(100vw - 32px));max-height:65vh;overflow:auto;background:var(--surface,#fff);color:var(--ink,#172333);padding:14px;border:1px solid var(--line,#ccd5df);border-radius:12px;box-shadow:0 12px 35px #0002}.control-popover fieldset{border:1px solid var(--line,#ccd5df);border-radius:8px;margin:0 0 10px;padding:10px;min-width:0}.control-popover legend{font-weight:650}.sort-option{display:inline-flex;align-items:center;padding:7px;border-radius:6px;margin:3px;background:var(--subtle,#edf3f8);cursor:pointer}.sort-option:has(input:checked){outline:2px solid var(--accent,#457bb4)}.product-filter-controls{display:grid;grid-template-columns:1fr 1fr}.product-filter-controls .site-select,.product-filter-controls select{max-width:100%;width:100%}.cat-dimension-row{display:grid;grid-template-columns:minmax(100px,1fr) minmax(120px,1fr);gap:12px;align-items:baseline;padding:5px 0}.cat-dimension-row strong{font-weight:500;overflow-wrap:anywhere}.cat-dimension-row .sub{white-space:nowrap}.metric-reason{display:block;font-size:13px;line-height:1.4;max-width:26em;margin-top:8px}.production-click-row{cursor:pointer}.production-click-row:hover,.production-click-row:focus-visible{background:var(--row-hover,#e8f1fa);outline:2px solid var(--accent,#457bb4);outline-offset:-2px}@media(max-width:600px){.product-filter-controls{grid-template-columns:1fr}.product-filter-menu{margin-inline-start:0}.cat-dimension-row{grid-template-columns:1fr;gap:2px}}

.product-filter-menu>summary{background:var(--accent);color:var(--bg);border-color:var(--accent);font-weight:650}.product-sort{min-width:155px}
.product-filter-controls fieldset{display:grid;grid-template-columns:minmax(0,1fr);gap:7px}.product-filter-controls fieldset .btn{justify-self:start;width:auto;white-space:normal;font-size:12px}.product-filter-menu>summary.btn.primary{background:var(--accent);color:var(--bg);border-color:var(--accent)}
/* Product workspace review 03.11: compact controls, bounded menus, stable identity. */
.product-sort .control-popover fieldset{display:grid;grid-template-columns:minmax(0,1fr);gap:4px}
.product-sort .sort-option{display:flex;align-items:center;justify-content:flex-start;gap:8px;min-width:0;min-height:34px;margin:0;padding:7px 9px;font-size:12px;line-height:1.35}
.product-sort .sort-option input[type=radio]{appearance:auto;flex:0 0 16px;width:16px;min-width:16px;max-width:16px;height:16px;min-height:0;margin:0;padding:0;accent-color:var(--accent)}
.control-popover{box-sizing:border-box;overscroll-behavior:contain;overflow-x:hidden}
.product-filter-controls{gap:10px}
.product-filter-controls fieldset{margin:0;padding:9px}
.product-filter-controls fieldset.is-active{border-color:var(--accent);background:var(--info-soft,var(--subtle))}
.filter-control-row{display:flex;align-items:center;gap:6px;min-width:0}
.filter-control-row .site-select{min-width:0;flex:1}
.product-filter-controls fieldset .filter-reset{flex:0 0 30px;width:30px;min-height:30px;padding:5px;justify-self:auto}
.filter-reset:not(:disabled){color:var(--accent);border-color:var(--accent);background:var(--surface)}
.filter-reset:disabled{opacity:.35;cursor:default}
.filter-popover-footer{grid-column:1/-1;display:flex;justify-content:flex-end;border-top:1px solid var(--line);padding-top:10px}
.commerce-search{position:relative}
.commerce-search input{padding-inline-end:36px}
.commerce-search input::-webkit-search-cancel-button{appearance:none}
.commerce-search-clear{position:absolute;inset-inline-end:5px;top:50%;transform:translateY(-50%);display:grid;place-items:center;width:26px;height:26px;padding:4px;border:0;border-radius:5px;background:var(--subtle);color:var(--muted);cursor:pointer}
.commerce-search-clear[hidden]{display:none}
.commerce-search-clear:hover{background:var(--line);color:var(--ink)}
.products-workspace td:has(>.commerce-product){width:360px;min-width:360px;max-width:360px}
.products-workspace .commerce-product{width:330px;min-width:330px;gap:10px}
.products-workspace .commerce-product-copy{min-width:0;flex:1;display:grid;grid-template-rows:18px 18px 18px;align-items:center;gap:2px}
.products-workspace .commerce-product-headline{display:flex;align-items:center;gap:6px;min-width:0}
.products-workspace .commerce-product-headline>.commerce-offer{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0;flex:1}
.products-workspace .commerce-product-name,.products-workspace .commerce-product .commerce-meta{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:0;line-height:18px}
.products-workspace .commerce-product-headline .product-labels{display:flex;flex-wrap:nowrap;gap:3px;max-width:90px;margin:0;overflow:hidden}
.products-workspace .commerce-product-headline .product-label{white-space:nowrap;max-width:48px;overflow:hidden;text-overflow:ellipsis}
.custom-columns-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;align-items:start;margin-top:16px}
.custom-columns-grid fieldset{border:1px solid var(--line);border-radius:8px;padding:12px;min-width:0;margin:0}
.custom-columns-grid legend{font-weight:650;font-size:13px}
.custom-columns-grid .check-row{display:flex;align-items:center;gap:8px;margin:0;padding:6px 0;font-size:13px}
.custom-columns-grid input[type=checkbox]{width:16px;min-width:16px;max-width:16px;height:16px;min-height:0;padding:0;margin:0;flex:none;accent-color:var(--accent)}
.ops-panel td:has(.stock-quantity){vertical-align:middle}
.stock-quantity{display:inline-block;font-size:16px;height:1.35em;line-height:1.35;position:relative}
.stock-quantity>.num{line-height:inherit}
.stock-quantity>.sub{position:absolute;top:100%;inset-inline-start:0;margin:0;font-size:10px;line-height:14px;color:var(--muted)}
.ops-command{border:1px solid var(--line);background:var(--subtle);margin:3px;min-height:32px;padding:6px 10px;white-space:nowrap}
.ops-command-parties{background:var(--info-soft,var(--subtle));border-color:var(--accent);color:var(--accent)}
.ops-command-assembly{background:var(--good-soft);border-color:color-mix(in srgb,var(--good) 45%,var(--line));color:var(--good)}
.ops-command-box{background:var(--warn-soft);border-color:color-mix(in srgb,var(--warn) 45%,var(--line));color:var(--warn)}
.ops-command:hover{filter:brightness(.95);border-color:currentColor}
@media(max-width:760px){.custom-columns-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:480px){.product-sort .control-popover fieldset,.custom-columns-grid{grid-template-columns:minmax(0,1fr)}.columns-presets{flex-wrap:wrap}}

/* Product/report review R2: single sort criterion, explicit direction, shared calendar. */
.product-sort-control{display:flex;align-items:stretch;gap:4px;max-width:100%}.product-sort-control .product-sort{min-width:0}.sort-direction{border:1px solid var(--control-line);background:var(--control-surface);font-size:20px;min-width:38px;padding:5px}.sort-choice{display:block;width:100%;font:inherit;font-size:13px;line-height:1.4;text-align:left;min-height:36px;padding:8px 10px;border:1px solid transparent;border-radius:5px;color:var(--ink);background:transparent;cursor:pointer}.sort-choice:hover{background:var(--row-hover)}.sort-choice[aria-pressed=true]{color:var(--accent);background:var(--accent-soft);border-color:var(--accent-line);font-weight:650}.sort-choice .sub{font-size:11px;margin-top:3px}.btn.columns-edit{color:var(--accent);border:1px solid var(--accent-line);background:var(--accent-soft);font-weight:600}.product-extra-name{display:block;width:220px;max-width:220px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.product-status.ready{border:1px solid var(--accent-line)}
.toolbar .segmented [data-report-period][aria-pressed=true]{color:var(--accent);background:var(--accent-soft);border-color:var(--accent-line);box-shadow:inset 0 -2px var(--accent);font-weight:650}
.report-product{display:flex;align-items:center;gap:10px;min-width:280px;max-width:340px}.report-product .commerce-thumb{flex:0 0 38px;width:38px;height:48px;object-fit:contain}.report-product-copy{min-width:0;flex:1}.report-product-copy .commerce-offer{max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:left}.report-product-title{display:block;max-width:280px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:18px}.report-photo-empty{border:1px dashed var(--line);background:var(--subtle);border-radius:4px}
.site-date{display:inline-flex;align-items:center;justify-content:space-between;gap:10px;font:inherit;color:var(--ink);background:var(--control-surface);border:1px solid var(--control-line);border-radius:6px;min-height:var(--control);min-width:154px;padding:8px 12px;text-align:left;cursor:pointer;font-variant-numeric:tabular-nums}.site-date:hover,.site-date[aria-expanded=true]{border-color:var(--accent);background:var(--accent-soft)}.site-date:focus-visible,.date-days button:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.site-date:disabled{opacity:.5;cursor:default}
.site-date-popup{position:fixed;inset:auto;margin:0;padding:14px;border:1px solid var(--control-line);border-radius:10px;background:var(--surface-raised);color:var(--ink);box-shadow:var(--shadow);z-index:1001;box-sizing:border-box;overflow:auto;overscroll-behavior:contain}.site-date-popup::backdrop{background:transparent;pointer-events:none}.date-navigation{display:flex;align-items:center;justify-content:space-between;gap:6px;margin-bottom:12px}.date-navigation strong{font-size:14px;text-transform:capitalize}.date-weekdays,.date-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:3px}.date-weekdays span{text-align:center;font-size:11px;color:var(--muted);padding-block:6px}.date-days button{font:inherit;font-size:13px;text-align:center;color:var(--ink);background:transparent;border:1px solid transparent;border-radius:5px;min-width:0;height:34px;padding:0;cursor:pointer}.date-days button:hover:not(:disabled){background:var(--row-hover);border-color:var(--accent-line)}.date-days button.other-month{color:var(--muted)}.date-days button.selected{background:var(--accent-soft);color:var(--accent);border-color:var(--accent);font-weight:700}.date-days button:disabled{opacity:.3;cursor:default}.date-footer{display:flex;justify-content:space-between;border-top:1px solid var(--line);margin-top:12px;padding-top:8px}.date-footer .btn{min-height:32px;font-size:12px}

.product-status.info{color:#7651a0;background:#f2edf8;border:1px solid #cbbbdf}:root[data-theme=dark] .product-status.info{color:#d3b5ff;background:#382b4b;border-color:#80639d}

.site-date svg{flex:none;width:16px;height:16px;stroke:currentColor;fill:none;stroke-width:1.6;opacity:.8}

/* Product cell refinements R3: data and commands keep their native contracts. */
.commerce-bars{display:inline-flex!important;flex-direction:column;gap:4px;width:168px;max-width:100%}.commerce-bars svg{width:100%;max-width:100%;height:32px;display:block;fill:var(--accent,#315d70)}.commerce-bars .zero{fill:var(--muted,#8996a4);opacity:.45}.commerce-trend-values{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));width:100%;font-size:12px;font-variant-numeric:tabular-nums;text-align:center;gap:0}.product-ops-actions{display:flex;flex-wrap:nowrap;align-items:center;gap:6px;min-width:190px;margin-top:7px}.product-ops-actions .btn{white-space:nowrap}.mode-edit{padding:0!important;border:0!important;background:transparent!important}.commerce-result{display:inline-block;padding:4px 7px;border-radius:6px;font-weight:700;font-variant-numeric:tabular-nums}.commerce-result.bad{color:#a92534;background:#fbecef}.commerce-result.warn{color:#835519;background:#fff3da}.commerce-result.good{color:#23684d;background:#e9f4ee}.ops-command-start{color:#34549c!important;background:#e9effb!important;border:1px solid #bfceef!important}html[data-theme=dark] .commerce-result.bad{color:#ffb0b9;background:#4a2732}html[data-theme=dark] .commerce-result.warn{color:#f3cd88;background:#433820}html[data-theme=dark] .commerce-result.good{color:#a6dbc4;background:#203e35}html[data-theme=dark] .ops-command-start{color:#bdcff6!important;background:#263a59!important;border-color:#4a6388!important}

.date-days button.today{box-shadow:inset 0 0 0 1px var(--accent);font-weight:700}.date-days button.today:not(.selected){color:var(--accent);background:var(--accent-soft)}

/* Product polish 06.11: compact signals, no calculation or legacy styles. */
.products-workspace .commerce-thumb{width:39px;height:52px;aspect-ratio:3/4;object-fit:cover;object-position:center;padding:0;border:0;background:transparent;border-radius:4px}
.products-workspace .commerce-product-headline .product-labels{max-width:154px;flex-shrink:0}
.products-workspace .commerce-product-headline .product-label{max-width:134px}
.quick-status-menu{position:fixed;z-index:10000;min-width:166px;padding:6px;display:grid;gap:3px;background:var(--panel);border:1px solid var(--line);border-radius:8px;box-shadow:0 12px 30px #0005}
.quick-status-menu button{display:block;text-align:left;padding:7px;background:transparent;border:1px solid transparent;border-radius:5px;color:var(--ink);cursor:pointer}
.quick-status-menu button:hover,.quick-status-menu button:focus-visible,.quick-status-menu button[aria-checked=true]{background:var(--accent-soft);border-color:var(--accent-line)}
.content-indicators{display:grid;grid-template-columns:repeat(4,23px);gap:4px;width:max-content}
.content-indicator{display:grid;place-items:center;width:23px;height:23px;border:1px solid var(--line);border-radius:5px;background:var(--subtle);color:var(--muted)}
.content-indicator svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.content-indicator.good{color:var(--good);background:var(--good-soft)}.content-indicator.warn{color:var(--warn);background:var(--warn-soft)}.content-indicator.bad{color:var(--bad);background:var(--bad-soft)}
.rate-origin{font-size:10px;color:var(--muted);border-bottom:1px dotted var(--line)}
.min-price-clock{display:grid;gap:4px;justify-items:center;margin:4px 0}.min-price-clock .sub{font-size:11px;white-space:nowrap}

.validation-rule-row{display:flex;align-items:end;gap:8px;margin-bottom:12px}.validation-rule-row .field{flex:1;min-width:0}.validation-rules legend{font-size:16px;font-weight:650}.validation-rules [data-add-validation]{margin:10px 0}.validation-rule-list:empty:before{content:"Правила ещё не заданы";display:block;color:var(--muted);margin:8px 0 14px}
/* Independent price popup: table stays in place behind the shared dialog. */
#modal.price-workbench-popup{width:min(1160px,calc(100vw - 32px));height:min(420px,calc(100dvh - 32px));max-width:none;max-height:calc(100dvh - 32px)}#modal.price-workbench-popup>.modal-body{padding:24px;background:var(--subtle)}#modal.price-workbench-popup>footer:empty{display:none}#modal.price-workbench-popup[open]{grid-template-rows:auto minmax(0,1fr)}.price-workbench{margin:0;padding:0;min-width:0}
.price-workbench-bottom{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.price-workbench-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px}.price-workbench .field{min-width:0;display:flex;flex-direction:column;gap:6px;font-size:12px}.price-workbench .field strong{font-size:20px;line-height:1.5}.price-workbench input{width:100%;font-size:19px;min-height:40px}.price-workbench-bottom{margin-top:12px}.price-workbench-bottom .sub{flex:1;min-width:180px}.price-workbench-status.good{background:var(--good-soft);color:var(--good);border:1px solid var(--good-line);padding:8px 12px;border-radius:6px;font-weight:700}.price-workbench-status.bad{color:var(--bad,#d35762)}.price-history{margin-top:10px;font-size:12px}.price-history-list{max-height:160px;overflow:auto}.price-history-list>div{padding:7px 0;border-top:1px solid var(--line)}.promotion-compact{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;max-width:210px}
@media(max-width:1050px){.price-workbench-grid{grid-template-columns:repeat(3,minmax(0,1fr))}#modal.price-workbench-popup{height:min(520px,calc(100dvh - 32px))}}
@media(max-width:550px){.price-workbench-grid{grid-template-columns:repeat(2,minmax(0,1fr))}#modal.price-workbench-popup{width:calc(100vw - 16px);height:calc(100dvh - 16px);max-height:calc(100dvh - 16px)}#modal.price-workbench-popup>.modal-body{padding:16px}}

.price-inline-tools{display:flex;align-items:center;justify-content:center;gap:8px}.price-inline-tools .min-price-clock{margin:0}.price-inline-tools .btn{flex:none}

.price-workbench-status.warn{color:var(--warn);background:var(--warn-soft);padding:8px 12px;border:1px solid var(--warn-line);border-radius:6px}
