/* Scoped product UI: inherit the production palette, typography and table styling. */
.product-acceptance {
  height: 100vh;
  overflow: hidden;
}
.product-acceptance .app-shell {
  height: 100vh;
  min-height: 0;
}
.product-acceptance .content {
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding-bottom: 0;
}
.product-acceptance .sidebar button:disabled {
  opacity: 0.45;
  cursor: default;
}
.pw-acceptance-banner {
  font-size: 12px;
  color: var(--muted);
  padding: 5px 10px;
  background: var(--soft);
  flex-shrink: 0;
}
.pw {
  flex: 1;
  min-height: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  margin: 10px 0;
}
.pw h2,
.pw h3,
.pw p {
  margin: 0;
}
.pw h2 {
  font-size: 20px;
}
.pw h3 {
  font-size: 15px;
}
.pw button,
.pw input,
.pw select,
.pw textarea {
  font: inherit;
}
.pw button {
  padding: 7px 10px;
  white-space: nowrap;
}
.pw input:not([type="checkbox"]),
.pw select,
.pw textarea {
  width: 100%;
  min-width: 0;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
}
.pw input[type="checkbox"] {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  margin: 0;
  accent-color: var(--primary);
}
.pw label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 13px;
  margin: 0;
  min-width: 0;
}
.pw small {
  font-size: 12px;
}
.pw .pw-inline {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
}
.pw .pw-muted,
.pw-muted {
  color: var(--muted);
  font-size: 12px;
}
.pw-error {
  display: block;
  color: var(--danger);
  font-size: 12px;
  white-space: normal;
}
.pw-error:empty {
  display: none;
}
.pw-link {
  border: 0 !important;
  background: transparent !important;
  color: var(--primary);
  padding: 3px 4px !important;
}
.pw-toolbar {
  display: flex;
  gap: 10px;
  padding: 14px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}
.pw-toolbar .pw-search {
  flex: 1;
  min-width: 180px;
}
.pw-toolbar select {
  width: 170px;
}
.pw-new,
.pw-segments {
  display: flex;
}
.pw-segments button {
  border-radius: 0;
}
.pw-segments button:first-child {
  border-radius: 6px 0 0 6px;
}
.pw-segments button:last-child {
  border-radius: 0 6px 6px 0;
}
.pw button[aria-pressed="true"] {
  background: var(--soft);
  color: var(--primary);
  border-color: var(--primary);
}
.pw-menu {
  position: relative;
}
.pw-menu summary {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
  list-style: none;
}
.pw-menu > div {
  position: absolute;
  right: 0;
  top: 100%;
  background: white;
  box-shadow: 0 8px 24px #17211c26;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 5px;
  min-width: 150px;
  z-index: 12;
  display: grid;
}
.pw-menu button {
  text-align: left;
  border: 0;
}
.pw-row-actions {
  display: flex;
  gap: 6px;
}
.pw-list-heading,
.pw-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 14px;
  flex-shrink: 0;
}
.pw-list-heading strong {
  font-size: 16px;
}
.pw-scroll,
.pw-grid-scroll {
  min-height: 0;
  overflow: auto;
  flex: 1;
}
.pw .data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.pw .data-table th {
  position: sticky;
  top: 0;
  background: #f5f8f6;
  z-index: 1;
}
.pw .data-table th,
.pw .data-table td {
  padding: 7px 10px;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid #edf0ee;
}
.pw-products tbody td {
  height: 62px;
}
.pw-product-title {
  display: flex;
  align-items: center;
  gap: 10px;
}
.pw-product-title img {
  width: 40px;
  height: 44px;
  border-radius: 6px;
  object-fit: cover;
}
.pw-product-title strong,
.pw-product-title small {
  display: block;
}
.pw-product-title .pw-link {
  font-weight: 600;
}
/* Expanded SKU rows stay dense without inheriting the parent product row height. */
.pw .pw-products .pw-expanded-row > td {height:auto;padding:4px 10px;}
.pw-expanded {max-height:286px;overflow:auto;}
.pw .pw-expanded-table {width:max-content;max-width:none;border-collapse:collapse;font-size:13px;}
.pw .pw-expanded-table th,
.pw .pw-expanded-table td {height:22px;box-sizing:border-box;padding:1px 8px;line-height:19px;white-space:nowrap;border-bottom:1px solid var(--line);}
.pw .pw-expanded-table th {position:sticky;top:0;z-index:1;background:var(--soft);color:var(--muted);font-weight:500;}
.pw .pw-expanded-table th:nth-child(2),
.pw .pw-expanded-table td:nth-child(2) {width:auto;min-width:80px;text-align:left;}
.pw .pw-expanded-table .pw-code-cell {gap:4px;}
.pw .pw-expanded-table .pw-code-cell > button {height:19px;min-height:0;line-height:19px;padding:0 3px;font-size:13px;}
.pw .pw-expanded-table .pw-code-cell > .pw-link {overflow:visible;text-overflow:clip;}
.pw .pw-expanded-table .pw-copy {width:22px;}
.pw .pw-expanded-table tbody tr:hover {background:var(--soft);}
.pw-footer {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding: 10px 14px;
  gap: 8px;
  background: white;
  font-size: 13px;
  min-height: 58px;
}
.pw-footer > div {
  display: flex;
  align-items: center;
  gap: 10px;
}
.pw-selection {
  padding: 8px 14px;
  background: var(--soft);
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  font-size: 13px;
}
.pw-editor-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}
.pw-head-spacer {
  flex: 1;
}
.pw-identity {
  display: flex;
  align-items: end;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}
.pw-identity label:first-child {
  width: 42%;
  max-width: 520px;
}
.pw-identity label:nth-child(2) {
  width: 23%;
}
.pw-identity > span {
  align-self: center;
}
.pw-editor-body {
  display: flex;
  flex: 1;
  min-height: 0;
}
.pw-properties {
  flex: 0 0 304px;
  padding: 10px 12px;
  background: #f9fbfa;
  border-right: 1px solid var(--line);
  overflow: auto;
  min-height: 0;
}
.pw-properties > section,
.pw-properties > details {
  padding: 0 0 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.pw-properties h3 {
  margin-bottom: 8px;
}
.pw-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.pw-properties .pw-fields > label:nth-child(n + 7) {
  grid-column: 1/-1;
}
.pw-properties summary {
  cursor: pointer;
  padding: 5px 0;
  font-size: 13px;
}
.pw-properties summary small {
  display: block;
  color: var(--muted);
}
.pw-properties .pw-inline {
  margin-top: 6px;
}
.pw-help {
  display: inline-grid;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  font-size: 11px !important;
  place-content: center;
  padding: 0 !important;
  align-self: start;
}
.pw-results {
  flex: 1;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.pw-attribute-grid {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  padding: 0 14px 12px;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
  max-height: 210px;
  overflow: auto;
}
.pw-attribute-grid section {
  max-width: 100%;
}
.pw-picks {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  user-select: none;
  touch-action: none;
}
.pw label.pw-chip {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  padding: 5px 6px;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 5px;
  cursor: pointer;
  font-size: 12px;
}
.pw-chip.picked {
  background: var(--soft);
  border-color: #a6cbb9;
  color: var(--primary);
}
.pw-chip input {
  width: 12px !important;
  height: 12px !important;
  flex-basis: 12px !important;
}
.pw-selecting {
  cursor: crosshair;
}
.pw-sku-table input:not([type="checkbox"]),
.pw-suite-table input:not([type="checkbox"]) {
  border-color: transparent;
  background: transparent;
  padding: 5px;
  font-size: 12px;
}
.pw-sku-table input:focus,
.pw-suite-table input:focus {
  border-color: var(--primary);
  background: white;
}
.pw-sku-table td {
  height: 36px;
}
.pw-suite-table th:first-child {
  width: 30px;
}
.pw-suite-table th:nth-child(3) {
  width: 45px;
}
.pw-suite-table th:nth-child(4) {
  width: 31%;
}
.pw-suite-table th:nth-child(5) {
  width: 46%;
}
.pw-suite-table td {
  padding: 4px 6px !important;
  height: 34px;
}
.pw-color-heading th {
  position: static !important;
  padding: 7px 10px !important;
  border-top: 8px solid white;
  background: var(--soft) !important;
  color: var(--primary);
}
.pw-components {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  border: 0 !important;
  background: transparent !important;
  padding: 4px 0 !important;
  font-size: 12px !important;
  white-space: normal !important;
  text-align: left;
}
.pw-components span {
  white-space: nowrap;
}
.pw-part {
  background: white;
  border: 1px solid var(--line) !important;
  border-radius: 8px;
  padding: 10px !important;
  margin: 10px 0 !important;
}
.pw-part header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}
.pw-part header strong {
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 13px;
  flex: 1;
}
.pw-part header img {
  width: 28px;
  height: 32px;
  object-fit: cover;
  border-radius: 4px;
}
.pw-part header button {
  padding: 2px 5px;
  border: 0;
  background: transparent;
}
.pw-part [data-handle] {
  cursor: grab;
  font-size: 19px;
}
.pw-drop-target {
  border-top: 3px solid var(--primary) !important;
}
.pw-part-controls {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 8px;
}
.pw-part-controls select {
  font-size: 12px;
}
.pw-range-tools {
  font-size: 12px;
  color: var(--muted);
  padding-top: 7px;
}
.pw-color-group {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e8eeea;
}
.pw-color-group:last-child {
  border-bottom: 0;
}
.pw-color-name {
  border: 0;
  background: var(--soft);
  padding: 5px !important;
  font-size: 12px !important;
  min-width: 25px;
}
.pw-color-group .pw-chip input {
  position: absolute;
  opacity: 0;
  width: 1px !important;
}
.pw-color-group .pw-chip:focus-within {
  outline: 2px solid var(--primary);
}
.pw-map {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 4px !important;
  max-width: 130px;
  margin: 3px !important;
}
.pw-map select {
  width: 75px !important;
  padding: 3px !important;
}
.pw-excluded {
  opacity: 0.5;
}
.pw-empty {
  text-align: center;
  padding: 40px 20px !important;
  color: var(--muted);
}
.pw-empty p {
  margin: 12px;
}
.pw-overlay {
  position: absolute;
  inset: 0;
  background: #16271c24;
  z-index: 20;
  display: flex;
  justify-content: flex-end;
}
.pw-drawer {
  width: min(740px, 85%);
  height: 100%;
  background: white;
  box-shadow: -10px 0 35px #17211c22;
  display: flex;
  flex-direction: column;
}
.pw-drawer > header,
.pw-drawer > footer {
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  gap: 10px;
  flex-shrink: 0;
}
.pw-drawer > footer {
  border-top: 1px solid var(--line);
  border-bottom: 0;
}
.pw-drawer-body {
  overflow: auto;
  flex: 1;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.pw-catalog-list > label {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-bottom: 1px solid var(--line);
}
.pw-catalog-list img {
  width: 36px;
  height: 40px;
}
.pw-catalog-list small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}
.pw-notice {
  background: #fff3db;
  color: #705424;
  padding: 8px 14px;
  font-size: 13px;
  flex-shrink: 0;
}
.pw-notice[hidden] {
  display: none;
}
.pw-settings-body {
  display: flex;
  min-height: 0;
  flex: 1;
}
.pw-settings-body > nav {
  padding: 14px 8px;
  flex: 0 0 150px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.pw-settings-body > nav button {
  text-align: left;
  border: 0;
  background: transparent;
}
.pw-settings-body > nav button[aria-current="page"] {
  background: var(--soft);
  color: var(--primary);
  font-weight: 600;
}
.pw-settings-content {
  padding: 22px;
  overflow: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.pw-settings-content > label {
  max-width: 650px;
}
.pw-settings-row {
  display: flex;
  align-items: end;
  gap: 14px;
}
.pw-settings-row > label {
  flex: 1;
}
.pw-settings-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pw-settings-card td label {
  gap: 0;
}
.pw-settings-card .data-table input {
  padding: 5px;
}
.pw-rule-result {
  white-space: pre-wrap;
  background: var(--soft);
  padding: 12px;
  border-radius: 8px;
  font: inherit;
}
.pw-disabled-card {
  border: 1px dashed var(--line);
  padding: 20px;
  color: var(--muted);
}
.pw button:focus-visible,
.pw summary:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
@media (max-width: 1150px) {
  .pw-properties {
    flex-basis: 275px;
  }
  .pw-toolbar {
    gap: 5px;
  }
  .pw-toolbar select {
    width: 140px;
  }
  .pw-toolbar .pw-inline {
    font-size: 0;
  }
  .pw-identity > span {
    display: none;
  }
  .pw-components {
    gap: 8px;
  }
  .pw-selection {
    flex-wrap: wrap;
  }
  .pw-suite-table th:nth-child(4) {
    width: 30%;
  }
}
.product-acceptance .scroll-nav {
  display: none !important;
}
.pw-suite-table thead th {
  white-space: nowrap;
}
.pw-suite-table input:not([type="checkbox"]) {
  height: 25px;
  padding: 3px;
  font-size: 12px;
}
.pw-suite-table td {
  height: 32px !important;
  padding: 3px 6px !important;
}
.pw-results > .pw-section-title {
  padding: 7px 14px;
  min-height: 38px;
}
.pw-properties > .pw-section-title {
  padding: 0 0 8px;
  font-size: 13px;
}
.pw-color-heading th {
  padding: 5px 10px !important;
  border-top-width: 6px;
}
.pw-part {
  padding: 8px !important;
  margin: 8px 0 !important;
}
.pw-part header {
  margin-bottom: 6px;
}
.pw-part-controls input,
.pw-part-controls select {
  padding: 5px 7px;
}
.pw-part-controls label {
  gap: 3px;
  font-size: 12px;
}
.pw-color-group {
  margin-top: 7px;
  padding-bottom: 7px;
}
.pw-part p {
  margin-top: 6px;
}
.pw-settings-content .data-table {
  table-layout: fixed;
}
.pw-settings-content .data-table th:first-child,
.pw-settings-content .data-table td:first-child {
  width: 28%;
  min-width: 120px;
}
.pw-settings-content .data-table th:nth-child(2) {
  width: 28%;
}
.pw-settings-content .data-table th:nth-child(3) {
  width: 34%;
}
.pw-settings-content .data-table th:last-child {
  white-space: nowrap;
}
.pw .data-table th {
  white-space: nowrap;
}
.pw-sku-table th:first-child {
  width: 42px;
}
.pw-sku-table th:nth-child(3) {
  width: 110px;
}
.pw-range-tools {
  display: flex;
  align-items: center;
  gap: 4px;
}
.pw-range-tools input:not([type="checkbox"]) {
  width: 64px;
  margin-left: auto;
  padding: 3px 5px;
  font-size: 12px;
}
.pw-range-tools .pw-link {
  padding: 3px 2px !important;
}
.pw-settings-content label:has(input[type="checkbox"]) {
  flex-direction: row;
  align-items: center;
}
/* v0.2: permanent command surface, based on the current operational lists. */
.pw-query {display:flex;align-items:center;gap:8px;flex-shrink:0;padding:10px 12px;border-bottom:1px solid var(--line);min-height:56px;}
.pw-query .pw-search {width:320px;flex:0 1 320px;}
.pw-query select {width:auto;max-width:185px;}
.pw-query > input[data-demo-filter] {width:230px;}
.pw-command-bar {display:flex;align-items:stretch;flex-wrap:wrap;gap:0;padding:6px 4px;border-bottom:1px solid var(--line);background:#fafcfb;flex-shrink:0;}
.pw-command-group {padding:0 9px;border-right:1px solid #e3eae6;display:flex;flex-direction:column;gap:3px;}
.pw-command-group:last-child {border:0;}
.pw-command-group > small {font-size:11px;color:var(--muted);padding-left:4px;}
.pw-command-group > div {display:flex;align-items:center;gap:2px;}
.pw-command-group button:not(.primary), .pw-command-group summary {padding:6px 5px;border:0;background:transparent;border-radius:5px;font-size:13px;}
.pw-command-group .primary {font-size:13px;padding:6px 8px;}
.pw-command-group button:hover:not([aria-disabled="true"]):not(.primary) {background:#e9f2ed;}
.pw button[aria-disabled="true"] {color:#85958d;opacity:.62;cursor:not-allowed;}
.pw-command-group .pw-danger-action {color:#a34036;}
.pw-selection {height:42px;min-height:42px;box-sizing:border-box;flex-wrap:nowrap;padding:5px 12px;gap:10px;white-space:nowrap;}
.pw-selection button {border:0;padding:4px;background:transparent;font-size:12px;}
.pw-selection > strong {min-width:86px;}
.pw-hidden-count {min-width:110px;font-size:12px;color:var(--muted);}
.pw-selection .pw-inline {font-size:12px;}
.pw-products td {overflow:hidden;text-overflow:ellipsis;}
.pw-products th {position:sticky;}
.pw-products td small {display:block;}
.pw-list-image {width:42px;height:46px;object-fit:cover;border-radius:5px;}
.pw-code-cell {display:flex;align-items:center;min-width:0;gap:2px;}
.pw-code-cell > .pw-link {overflow:hidden;text-overflow:ellipsis;min-width:0;text-align:left;white-space:nowrap;padding:3px 0;}
.pw .pw-copy {font-size:15px;border:0;background:transparent;color:var(--muted);padding:4px;flex-shrink:0;}
.pw .pw-spec-count {font-size:12px;color:var(--muted);display:block;padding:2px 0;}
.pw-products .selected-row,.pw-business-table .selected-row {background:#edf5f0;}
.pw .pw-resizer {position:absolute;right:0;top:0;bottom:0;width:7px;border:0;border-right:1px solid var(--line);border-radius:0;padding:0;cursor:col-resize;background:transparent;touch-action:none;}
.pw .pw-resizer:hover {background:#bdd8ca;}
.pw-column-options > div {display:flex;align-items:center;gap:5px;border-bottom:1px solid var(--line);padding:4px;}
.pw-column-options label {flex:1;}
.pw-column-options button {padding:3px 8px;}
.pw-part-controls {grid-template-columns:90px 1fr;}
.pw .pw-part-controls input[data-qty] {background:#fff8e9;border:1px solid #d7bd80;color:#624c22;font-weight:650;box-shadow:inset 0 1px 2px #88662908;}
.pw .pw-part-controls input[data-qty]:focus {outline:2px solid #e5cb8e;outline-offset:1px;border-color:#a18446;}
.pw .pw-part-controls input[data-qty][aria-invalid="true"] {background:#fff3f1;border-color:#b85548;}
.pw .pw-part-controls input[data-qty]::placeholder {color:#8a7752;font-weight:400;font-size:12px;}
.pw-purchase-link {display:grid;gap:6px;background:#f7faf8;padding:8px;border:1px solid var(--line);border-radius:7px;margin:8px 0;}
.pw-purchase-link input[type="file"] {font-size:11px;}
.pw-business-body {display:flex;min-height:0;flex:1;}
.pw-supplier-cards {width:210px;flex-shrink:0;padding:12px;overflow:auto;border-right:1px solid var(--line);}
.pw-supplier-cards .pw-settings-card {padding:10px;margin-top:10px;}
.pw-supplier-cards p {margin:8px 0;}
.pw-supplier-cards button {font-size:12px;padding:5px;}
.pw-business-table {min-width:1200px;}
.pw-business-table td {white-space:nowrap;height:54px;}
.pw-business-table td[data-demo-zone] {min-width:96px;touch-action:none;user-select:none;}
.pw-business-table img {width:34px;height:38px;margin-left:10px;vertical-align:middle;user-select:none;}
.pw-documents td {height:70px;}
.pw-documents small {display:block;color:var(--muted);}
.pw-notice {position:absolute;right:16px;bottom:68px;z-index:30;max-width:620px;box-shadow:0 3px 16px #16372715;}
@media(max-width:1250px){.pw-command-group{padding:0 6px;}.pw-command-bar{row-gap:5px;}.pw-query .pw-search{width:260px;flex-basis:260px;}.pw-selection{gap:6px;}.pw-supplier-cards{width:185px;}}
.pw .pw-products {max-width:none;}
.pw .pw-business-table {table-layout:auto;max-width:none;}
.pw-business-table td small {display:block;font-size:11px;color:var(--muted);}

/* Formal host: keep the workbench bounded by the existing application tabs. */
#productsPage.sku-workspace-active { display:flex; flex-direction:column; height:calc(100dvh - 110px); min-height:480px; }
#productsPage.sku-workspace-active.hidden { display:none; }
#productsPage.sku-workspace-active > .toolbar, #productsPage.sku-workspace-active > .panel { display:none; }
.pw-command-bar { background:#e8f3ef; border-block:1px solid #d2e4dc; color:#244c3e; }
.pw-no-image {display:inline-grid;place-items:center;width:42px;height:42px;border-radius:6px;background:var(--soft);color:var(--muted);font-size:12px;}
.pw-part-controls input[data-qty] { background:#fff8e9; border-color:#d7bc80; color:#5c4518; font-weight:600; }
.pw-part-controls input[data-qty]:focus { outline:2px solid #e9d3a3; border-color:#aa8134; }
.pw-part-controls input[data-qty][aria-invalid="true"] { border-color:var(--danger); outline-color:#f2c7c2; }
.pw-native-fields { display:grid; grid-template-columns:1fr 1fr; gap:9px; }
#formalProductWorkspace .pw-part p{margin-block:5px 0}
#formalProductWorkspace .pw-part:has(select[data-fixed] option:checked:not([value=""]))>p{display:none}
#formalProductWorkspace .pw-part{margin-block:6px!important}
.pw-base-controls{display:flex;align-items:center;gap:10px;min-height:40px}.pw-base-controls>strong{white-space:nowrap;font-size:13px}.pw-base-controls label{flex:1;min-width:0;display:flex;align-items:center;gap:6px;white-space:nowrap;font-size:12px}.pw-base-controls select{min-width:0;width:100%}

#skuProductSettingsPanel{grid-column:1/-1;padding:0}#formalSkuSettings{height:calc(100dvh - 210px);min-height:540px}#skuSyncTaskPanel .sku-task-summary{display:flex;align-items:center;gap:14px;padding:10px;border-bottom:1px solid #dce9e4}#skuSyncTaskPanel .sku-task-summary strong{flex:1}#formalSkuSyncDetails{position:fixed;inset:0;z-index:1500;pointer-events:none}#formalSkuSyncDetails .pw-overlay{pointer-events:auto}

/* Compact desktop entry: intrinsic field widths, then selection beside a wide preview. */
.pw-entry .pw-editor-head {min-height:36px;padding:5px 10px;gap:8px;}
.pw-entry .pw-editor-head button {padding:4px 8px;}
.pw-entry .pw-editor-body {display:flex;flex-direction:column;min-height:0;overflow:hidden;}
.pw-entry-info {padding:8px 10px 5px;background:#fafcfb;border-bottom:1px solid var(--line);flex-shrink:0;min-width:0;}
.pw-entry-top {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));align-items:end;gap:10px;margin-bottom:7px;}
.pw-entry-top > [data-entry-field] {min-width:0;width:auto;}
.pw-entry-top .pw-name-short {display:grid;grid-template-columns:minmax(0,1fr) minmax(92px,6.5em);gap:6px;min-width:0;}
.pw-entry-top .pw-name-short > label {min-width:0;}

.pw-smart {min-width:0;box-sizing:border-box;padding:4px 6px;background:linear-gradient(125deg,#edf8f2,#f7fcff);border:1px solid #72b9a3;border-radius:7px;box-shadow:0 0 0 2px #55ad8f13,0 0 12px #55ad8f24;}
.pw-smart:focus-within {border-color:var(--primary);box-shadow:0 0 0 2px #55ad8f24,0 0 15px #55ad8f38;}
.pw-smart-caption {display:flex;justify-content:space-between;align-items:center;font-size:12px;line-height:16px;margin-bottom:2px;}
.pw-smart-caption > div {display:flex;gap:8px;}
.pw-smart-caption button {padding:0!important;font-size:11px!important;}
.pw-smart-input {display:flex;gap:6px;}
.pw-entry .pw-smart-input input {width:0;flex:1;height:28px;}
.pw-smart-input button {padding:3px 10px;font-size:13px;}
.pw-entry-fields {display:flex;flex-wrap:wrap;gap:6px 8px;align-items:flex-start;}
.pw-entry-info label {display:flex;flex-direction:column;gap:2px;font-size:12px;line-height:16px;min-width:0;position:relative;}
.pw-entry-fields > label {width:116px;flex:0 0 auto;}
.pw-entry-fields > [data-entry-field="supplier"] {width:180px;}
.pw-entry-fields > [data-entry-field="externalCode"] {width:118px;}
.pw-entry-fields > [data-entry-field="defaults.cost"] {width:84px;}
.pw-entry-fields > [data-entry-field="brand"] {width:168px;}
.pw-entry-fields > [data-entry-field="defaults.component"] {width:300px;}
.pw-entry-fields > [data-entry-field="defaults.standard"] {width:162px;}
.pw-entry-fields > [data-entry-field="defaults.safety"] {width:204px;}
.pw-entry-fields > [data-entry-field="purchaseLink"] {width:166px;}
.pw-entry-info input,.pw-entry-info select {width:100%;min-width:0;height:30px;padding:4px 6px;font-size:13px;box-sizing:border-box;}
.pw-entry-info .pw-inline {gap:3px;flex-wrap:nowrap;margin:0;}
.pw-entry-info .pw-inline input {flex:1;width:0;}
.pw-entry-info .pw-inline button {padding:4px;font-size:11px;flex-shrink:0;}
.pw-entry-info [data-number-hint] {position:absolute;right:0;top:0;color:var(--primary);font-size:10px;}
.pw-entry-info [data-number-hint]:not(:empty) {max-width:55px;overflow:hidden;white-space:nowrap;}
.pw-entry-extras {position:absolute;right:12px;top:10px;display:none;}
.pw-entry .pw-results {display:grid;grid-template-columns:minmax(180px,var(--quick-width,472px)) 6px minmax(0,1fr);min-height:0;flex:1;overflow:hidden;}
.pw-entry-divider {cursor:col-resize;touch-action:none;background:#edf3f0;outline-offset:-2px;}
.pw-entry-divider:hover,.pw-entry-divider:focus-visible {background:#9bcab8;}
.pw-quick-panel {display:flex;flex-direction:column;min-height:0;border-right:1px solid var(--line);background:#fafcfb;}
.pw-entry .pw-attribute-grid {display:block;min-height:0;max-height:none;overflow:auto;padding:0 10px 8px;flex:1;}
.pw-entry .pw-attribute-grid section {margin:0 0 8px;}
.pw-entry .pw-attribute-grid strong {font-size:12px;}
.pw-quick-group {margin:4px 0;}
.pw-quick-group > small {font-size:11px;}
.pw-entry .pw-picks {gap:3px;margin-top:2px;}
.pw-entry .pw-chip {padding:2px 4px;font-size:12px;min-height:22px;line-height:16px;}
.pw-preview-panel {display:flex;flex-direction:column;min-width:0;min-height:0;overflow:hidden;}
.pw-entry .pw-section-title {padding:6px 9px;gap:6px;min-height:28px;}
.pw-entry .pw-section-title h3 {font-size:13px;}
.pw-entry .pw-section-title span {font-size:11px;}
.pw-entry .pw-section-title button {padding:2px 6px;font-size:12px;}
.pw-entry .pw-grid-scroll {min-height:0;flex:1;}
.pw-entry .pw-sku-table {table-layout:fixed;font-size:13px;}
.pw-entry .pw-sku-table th {padding:3px 6px;height:25px;box-sizing:border-box;}
.pw-entry .pw-sku-table th:first-child {width:40px;}
.pw-entry .pw-sku-table th:nth-child(3) {width:110px;}
.pw-entry .pw-sku-table th:nth-child(5) {width:86px;}
.pw-entry .pw-sku-table th:last-child {width:48px;}
.pw-entry .pw-sku-table td {padding:1px 6px;height:22px;line-height:18px;box-sizing:border-box;}
.pw-entry .pw-sku-table input:not([type="checkbox"]) {height:19px;min-height:0;padding:0 2px;font-size:13px;line-height:17px;border-radius:3px;box-sizing:border-box;}
.pw-entry .pw-sku-table button {height:19px;padding:0 2px;font-size:12px;line-height:18px;}
.pw-entry .pw-sku-table small:not(:empty) {font-size:11px;line-height:16px;}
.pw-entry .pw-footer {flex-shrink:0;min-height:39px;padding:5px 10px;}
.pw-entry .pw-footer button {padding:4px 9px;}
.pw-entry .pw-notice:not([hidden]) {position:absolute;right:12px;top:45px;bottom:auto;max-width:440px;z-index:15;background:#edf8f2;font-size:12px;pointer-events:none;}
.pw-spec-group {border:1px solid var(--line);border-radius:8px;padding:10px;margin:8px 0 15px;}
.pw-drawer-body > label {display:grid;gap:6px;margin-bottom:14px;}
.pw-drawer-body [data-supplier-options] {display:grid;gap:5px;margin-top:12px;}
.pw-floating-menu {position:fixed;inset:auto;margin:0;padding:5px;min-width:175px;border:1px solid #d7e2dc;border-radius:8px;background:white;box-shadow:0 8px 25px #17211c30;}
.pw-floating-menu:popover-open {display:grid;gap:3px;}
.pw-floating-menu button {text-align:left;background:white;border:0;padding:9px 12px;cursor:pointer;}
.pw-floating-menu button:hover,.pw-floating-menu button:focus {background:#edf6f0;}
.pw-settings-options {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;}
#formalSkuSettings .pw-settings-content h3 {margin:16px 0 8px;}
#formalSkuSettings .pw-settings-content label {display:grid;gap:5px;}
#formalSkuSettings .pw-settings-card > label {margin:10px 0;}
#formalSkuSettings .pw-settings-content th:nth-child(3) {width:auto;}
#formalSkuSettings .pw-settings-content td {padding:5px;}
#formalSkuSettings .pw-settings-content input {min-width:0;width:100%;}
#formalSkuSettings .pw-settings-content input[type="checkbox"] {width:auto;}
#formalSkuSettings .pw-settings-body > nav {width:170px;flex-shrink:0;}
#formalSkuSettings .pw-settings-content {min-width:0;}
#productSettingsBridge {padding:12px;background:var(--panel);border:1px solid var(--line);border-radius:8px;margin-bottom:10px;}
.pw-product-settings-nav {display:flex;gap:8px;margin-bottom:12px;}
@media (max-width:1100px),(max-height:700px) {
  #productsPage.sku-workspace-active:has(.pw-entry) {height:auto;min-height:0;}
  .pw-entry,.pw-entry .pw-editor-body {overflow:visible;}
  .pw-entry-top {grid-template-columns:repeat(2,minmax(0,1fr));}
  .pw-entry .pw-results {min-height:380px;}
  .pw-entry .pw-grid-scroll {max-height:480px;}
}
@media (max-width:760px) {
  .pw-entry .pw-results {display:flex;flex-direction:column;}
  .pw-entry .pw-entry-divider {cursor:col-resize;touch-action:none;background:#edf3f0;outline-offset:-2px;}
.pw-entry-divider:hover,.pw-entry-divider:focus-visible {background:#9bcab8;}
.pw-quick-panel {max-height:220px;}
  .pw-entry-fields > label {max-width:100%;}
  .pw-entry-top {grid-template-columns:minmax(0,1fr);}
  .pw-entry-divider {display:none;}
}

/* Compact, scoped dictionary workspace. */
#formalSkuSettings .pw-attribute-settings {display:flex;flex-direction:column;overflow:hidden;padding:10px;}
#formalSkuSettings .pw-attribute-settings > h2 {font-size:16px;margin:0 0 7px;}
.ae-toolbar {display:flex;gap:6px;align-items:center;margin-bottom:8px;flex-shrink:0;}
#formalSkuSettings .ae-toolbar input {width:220px;height:30px;font-size:13px;}
.ae-toolbar > span {font-size:11px;color:var(--muted);margin-left:auto;}
#formalSkuSettings .ae-toolbar button,.ae-actions button,.ae-title button {padding:4px 7px;font-size:12px;}
.ae-layout {display:grid;grid-template-columns:166px minmax(320px,1fr) 244px;min-height:0;flex:1;border:1px solid var(--line);border-radius:7px;overflow:hidden;}
.ae-tree,.ae-values,.ae-quick {overflow:auto;min-height:0;min-width:0;padding:8px;}
.ae-tree {background:#f7faf8;border-right:1px solid var(--line);}
.ae-quick {background:#f5faf8;border-left:1px solid var(--line);}
.ae-pane-title {display:flex;justify-content:space-between;font-size:13px;margin-bottom:8px;}
.ae-pane-title small {font-weight:400;}
.ae-attribute,.ae-group {display:flex;align-items:center;gap:3px;min-height:28px;}
#formalSkuSettings .ae-attribute button,#formalSkuSettings .ae-group button {border:0;background:transparent;padding:3px 2px;text-align:left;white-space:normal;font-size:13px;}
.ae-attribute button:nth-child(2),.ae-group button {flex:1;min-width:0;}
.ae-attribute > small,.ae-group > small {font-size:11px;color:var(--muted);}
.ae-attribute {font-weight:650;}
.ae-group {padding:0 3px 0 10px;border-radius:4px;}
.ae-group.active {background:#e1f0e9;color:var(--primary);}
.ae-handle {display:inline-block;cursor:grab;user-select:none;color:#83958e;padding:0 3px;flex-shrink:0;}
.ae-title,.ae-actions,.ae-add {display:flex;align-items:center;gap:5px;margin-bottom:7px;}
.ae-title strong {flex:1;font-size:13px;}
#formalSkuSettings .ae-add input {width:140px;height:28px;padding:4px 6px;font-size:13px;}
#formalSkuSettings .ae-add button {padding:4px 6px;font-size:12px;}
.ae-table {width:100%;max-width:660px;table-layout:fixed;border-collapse:collapse;font-size:13px;}
.ae-table th {text-align:left;font-size:11px;color:var(--muted);font-weight:500;}
#formalSkuSettings .ae-table th:nth-child(3) {width:44px;text-align:center;}
.ae-table th:last-child {width:138px;}
#formalSkuSettings .ae-table td {height:30px;padding:2px 3px;border-bottom:1px solid #edf1ef;box-sizing:border-box;}
.ae-table td:first-child {white-space:nowrap;}
#formalSkuSettings .ae-table input:not([type="checkbox"]) {width:calc(100% - 21px);height:25px;padding:2px 3px;font-size:13px;}
#formalSkuSettings .ae-table td:nth-child(2) input {width:100%;}
#formalSkuSettings .ae-table button {padding:2px 4px;font-size:12px;line-height:19px;}
#formalSkuSettings .ae-table .ae-cell {max-width:calc(100% - 18px);overflow:hidden;text-overflow:ellipsis;text-align:left;font-size:13px;border:0;background:none;vertical-align:middle;}
#formalSkuSettings .ae-table .ae-state {text-align:center;vertical-align:middle;}
.ae-row-actions {white-space:nowrap;}
.ae-quick h4 {font-size:12px;margin:8px 0 5px;}
.ae-quick-group {border:1px solid #dbe7e0;border-radius:5px;background:white;margin-bottom:6px;padding:5px;}
.ae-quick-group > div:first-child {display:flex;align-items:center;gap:2px;}
#formalSkuSettings .ae-quick-group button {border:0;background:none;padding:1px 3px;font-size:12px;}
.ae-quick-group [data-action="ae-quick-expand"] {flex:1;text-align:left;min-width:0;white-space:normal;}
.ae-quick-group p {font-size:11px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:4px;}
.ae-quick-values {display:flex;flex-wrap:wrap;gap:4px 8px;margin-top:6px;}
#formalSkuSettings .ae-quick-values label {display:flex;flex-direction:row;align-items:center;gap:3px;font-size:12px;}
.ae-disabled {color:var(--muted);}
.ae-empty {font-size:12px;color:var(--muted);padding:10px;line-height:1.7;}
.ae-drop-target {outline:2px dashed var(--primary);outline-offset:-2px;background:#e3f3eb!important;}
.pw-drawer header,.pw-drawer footer {padding:10px 14px;}
.pw-drawer-body {padding:12px 14px;}
@media(max-width:1250px){.ae-layout{grid-template-columns:145px minmax(300px,1fr) 218px}.ae-toolbar > span{display:none}#formalSkuSettings .pw-settings-body > nav{width:145px}}
@media(max-width:1000px){.ae-layout{display:flex;flex-wrap:wrap;overflow:auto}.ae-tree{width:155px;max-height:420px}.ae-values{flex:1;min-width:310px;max-height:420px}.ae-quick{width:100%;max-height:250px}#formalSkuSettings{height:auto;min-height:540px}}
@media(min-width:1101px) and (min-height:701px){#productsPage.sku-workspace-active:has(.pw-entry){height:calc(100dvh - 84px)}}
.pw-entry .pw-sku-table th {line-height:18px;}
.pw-entry .pw-sku-table td {padding-block:0;}
.pw-entry .pw-sku-table input,.pw-entry .pw-sku-table button {vertical-align:middle;}
.pw-entry .pw-code-cell {position:relative;}
.pw-entry .pw-code-cell .pw-code-sync {position:relative;width:100%;}
.pw-entry .pw-code-cell .pw-code-sync input {width:100%;box-sizing:border-box;padding-left:calc(1em + 6px);padding-right:20px;text-overflow:ellipsis;}
.pw-entry .pw-code-cell .pw-sync-mark {position:absolute;left:2px;top:50%;transform:translateY(-50%);}
.pw-entry .pw-sku-table .pw-code-expand {position:absolute;right:3px;top:1px;background:none;border:0;color:var(--muted);font-size:11px;}
#formalSkuSettings .pw-attribute-settings {gap:6px;}
#formalSkuSettings .pw-editor-head {min-height:40px;padding:6px 10px;}
#formalSkuSettings .pw-footer {min-height:42px;padding:5px 10px;}
#formalSkuSettings .pw-footer button {padding:5px 8px;font-size:13px;}
#formalSkuSettings .pw-settings-content:not(.pw-attribute-settings) {padding:14px;gap:10px;}
#formalSkuSettings .ae-toolbar {margin-bottom:0;}
#formalSkuSettings .ae-table input:not([type="checkbox"]) {max-width:130px;}
#formalSkuSettings .ae-table td:first-child input {max-width:100px;}

#formalSkuSettings .ae-table button {height:25px;min-height:0;}
.ae-group.ae-drop-target[data-drop-position="before"],.ae-quick-group.ae-drop-target[data-drop-position="before"],.ae-table tr.ae-drop-target[data-drop-position="before"] {box-shadow:0 -2px 0 var(--primary);}
.ae-group.ae-drop-target[data-drop-position="after"],.ae-quick-group.ae-drop-target[data-drop-position="after"],.ae-table tr.ae-drop-target[data-drop-position="after"] {box-shadow:0 2px 0 var(--primary);}

#formalSkuSettings .pw-footer-notice {font-size:12px;color:var(--primary);flex:1;min-width:0;max-height:64px;overflow:auto;padding-right:10px;}
@media(min-width:1100px) and (min-height:700px){body:has(#settingsPage:not(.hidden) .ae-layout) #globalScrollControls{display:none}}

/* Product list: one query row, one action row; selection lives with the query. */
#formalProductWorkspace .pw-query {padding:6px 10px;min-height:42px;gap:6px;flex-wrap:wrap;}
#formalProductWorkspace .pw-query input,#formalProductWorkspace .pw-query select,#formalProductWorkspace .pw-query button {height:30px;padding:4px 8px;font-size:13px;box-sizing:border-box;}
#formalProductWorkspace .pw-query .pw-search {width:300px;flex:0 1 300px;}
#formalProductWorkspace .pw-query > select {width:128px;}
#formalProductWorkspace .pw-list-footer .pw-selection {height:auto;min-height:30px;padding:0;background:transparent;border:0;gap:8px;display:flex;align-items:center;font-size:12px;flex-wrap:nowrap;}
#formalProductWorkspace .pw-selection > strong {min-width:0;color:var(--primary);}
#formalProductWorkspace .pw-selection input[type="checkbox"] {width:14px;height:14px;padding:0;}
#formalProductWorkspace .pw-result-count {color:var(--muted);}
.pw-list-tools {display:flex;align-items:center;gap:4px;padding:5px 10px;border-bottom:1px solid var(--line);background:#f8fbfa;flex-wrap:wrap;flex-shrink:0;}
.pw-list-tools > button,.pw-list-tools .pw-new button {height:28px;padding:3px 8px;font-size:13px;}
.pw-list-tools > button {background:transparent;border-color:transparent;color:var(--primary);}
.pw-list-tools > button:hover {background:#e8f3ee;}
.pw-products thead th:first-child {white-space:nowrap;padding:4px;}
.pw-products [data-action="selection-menu"] {padding:0 3px;border:0;background:transparent;}
.pw-products .pw-sort {display:flex;align-items:center;justify-content:space-between;gap:6px;border:0;background:transparent;width:100%;padding:0 7px 0 0;font:inherit;font-weight:inherit;text-align:left;color:inherit;}
.pw-products .pw-sort span {color:#9aaaA4;}
.pw-products .pw-sort.active span {color:var(--primary);}
.pw-entry .pw-sku-table th {position:sticky;top:0;}
.pw-entry .pw-sku-table .pw-resizer {height:auto;line-height:normal;padding:0;}
.ae-reference-list article {padding:8px 0;border-bottom:1px solid var(--line);overflow-wrap:anywhere;}
.ae-reference-list button {margin-left:8px;}
.ae-attribute.ae-drop-target {background:#def1e8;outline:2px solid var(--primary);}

.pw-table-select {display:flex;align-items:center;gap:2px;}
.pw-table-select input {margin:0;}

#formalProductWorkspace .pw-list-footer {flex-wrap:wrap;min-height:44px;padding:0;}
#formalProductWorkspace .pw-list-status {flex-wrap:wrap;gap:8px 14px;}
#formalProductWorkspace .pw-pagination {margin-left:auto;white-space:nowrap;}
#formalProductWorkspace .pw-list-footer button {padding:4px 7px;font-size:13px;}

/* Halve the product workspace's outer gutters; other business pages keep theirs. */
.content:has(> #productsPage.sku-workspace-active:not(.hidden)) {padding-inline:calc(var(--content-gutter) / 2);padding-bottom:calc(var(--content-gutter) / 2);}
.content:has(> #productsPage.sku-workspace-active:not(.hidden)) > .workspace-bar {margin-inline:calc(var(--content-gutter) / -2);padding-inline:calc(var(--content-gutter) / 2);}
.content > #productsPage.sku-workspace-active {padding-top:8px;height:calc(100% - 79px + var(--content-gutter) / 2);}
#productsPage.sku-workspace-active > #formalProductWorkspace {margin-block:5px;}
@media(min-width:1101px) and (min-height:701px){.content > #productsPage.sku-workspace-active:has(.pw-entry){height:calc(100% - 66px + var(--content-gutter) / 2)}}
@media(max-width:1100px),(max-height:700px){.content > #productsPage.sku-workspace-active:has(.pw-entry){height:auto;min-height:0;}}

.pw-image-actions{display:inline-flex;align-items:center;gap:2px}.pw .pw-image-actions>button[data-action="product-image"]{padding:0;border:0;background:transparent;display:inline-flex}.pw .pw-image-actions .pw-link{padding:0 2px;font-size:12px}.pw-image-actions button:disabled{cursor:default}.pw-image-actions button:focus-visible{outline:2px solid var(--primary);outline-offset:2px}

.pw-column-options>[data-column-row]{position:relative;min-height:32px}
.pw-field-handle{cursor:grab;touch-action:none;color:var(--muted);width:28px;flex:none}
.pw-field-handle:active{cursor:grabbing}.pw-field-handle-placeholder{width:28px;flex:none}
.pw-field-dragging{opacity:.5}.pw-column-options .pw-field-before::before,.pw-column-options .pw-field-after::after{content:"";position:absolute;left:0;right:0;height:2px;background:var(--primary);pointer-events:none}
.pw-column-options .pw-field-before::before{top:-1px}.pw-column-options .pw-field-after::after{bottom:-1px}
.pw-column-status{min-height:18px;font-size:12px}

/* Reviewable changes are distinct from invalid product data. */
.pw-review { display: block; color: #8a5b12; font-size: 12px; margin-top: 3px; }

.pw-composition-cell { display: flex; align-items: center; gap: 8px; }
.pw-composition-cell > .pw-link { flex-shrink: 0; padding: 2px 0; font-size: 12px; }

/* Read-only SKU thumbnails never contribute to the existing table row height. */
.pw th.pw-spec-image-cell, .pw td.pw-spec-image-cell {width:48px;min-width:48px;box-sizing:border-box;text-align:center;}
.pw td.pw-spec-image-cell {position:relative;}
.pw-spec-thumb {position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:18px;height:18px;line-height:0;}
.pw-spec-thumb img {display:block;width:18px;height:18px;max-width:18px;max-height:18px;object-fit:contain;}
.pw-spec-thumb img[hidden] {display:none;}
.pw-spec-empty {background:center/contain no-repeat url('/static/product-workspace/no-image.svg');}

.pw .pw-spec-thumb > button {display:block;width:18px;height:18px;min-height:0;padding:0;border:0;border-radius:2px;background:transparent;line-height:0;cursor:pointer;}
.pw .pw-spec-thumb > button:focus-visible {outline:2px solid var(--primary);outline-offset:1px;}
.pw-entry-fields > [data-entry-field="classification"] {width:180px;}
.pw-classification-help {flex:0 0 26px;padding:3px!important;}
.pw-classification-picker {position:fixed;margin:0;padding:8px;border:1px solid #d8e0eb;border-radius:10px;background:#fff;color:#26364b;box-shadow:0 12px 36px #20365029;overflow:auto;box-sizing:border-box;font-size:13px;}
.pw-classification-picker [role="option"] {display:grid;width:100%;gap:3px;text-align:left;padding:9px;border:0;border-radius:6px;background:white;color:inherit;cursor:pointer;white-space:normal;}
.pw-classification-picker [role="option"][aria-selected="true"],.pw-classification-picker [role="option"]:hover {background:#eaf2ff;}
.pw-classification-picker small {display:block;line-height:1.5;color:#617187;overflow-wrap:anywhere;}
.pw-classification-picker-actions {display:flex;gap:6px;margin-top:8px;position:sticky;bottom:0;background:#fff;padding-top:6px;}
.pw-classification-picker-actions button {padding:5px 8px;border:1px solid #d8e0eb;border-radius:6px;background:#fff;cursor:pointer;}
.pw-classification-picker-actions button:disabled,.pw-classification-picker-actions button[aria-disabled="true"] {opacity:.5;cursor:default;}
.pw-classification-confirm-overlay {position:absolute;inset:0;z-index:35;display:grid;place-items:center;padding:16px;background:#16271c61;box-sizing:border-box;}
.pw-classification-confirm {width:min(460px,100%);max-height:calc(100dvh - 48px);overflow:auto;padding:22px;background:#fff;border:1px solid #d9e3ee;border-radius:14px;box-shadow:0 18px 50px #1b304345;box-sizing:border-box;color:#26364b;}
.pw-classification-confirm h3 {font-size:19px;line-height:1.4;}
.pw-classification-confirm > p {margin:7px 0 17px;color:#617187;font-size:13px;line-height:1.5;}
.pw-classification-changes {display:grid;gap:8px;}
.pw-classification-change-head {display:grid;grid-template-columns:72px minmax(0,1fr) 16px minmax(0,1fr);gap:8px;padding:0 11px;color:#617187;font-size:12px;}
.pw-classification-change {display:grid;grid-template-columns:72px minmax(0,1fr) 16px minmax(0,1fr);align-items:start;gap:8px;padding:11px;background:#f6f9fd;border:1px solid #e2eaf3;border-radius:8px;font-size:13px;overflow-wrap:anywhere;}
.pw-classification-change > span:first-child {font-weight:600;}.pw-classification-change del {color:#75849a;text-decoration:none;}.pw-classification-change strong {color:var(--primary);}
.pw-classification-confirm footer {display:flex;justify-content:flex-end;gap:9px;margin-top:20px;}
.pw-classification-confirm footer button {padding:8px 14px;border:1px solid #d7e1eb;border-radius:8px;background:#fff;cursor:pointer;}
.pw-classification-confirm footer button.primary {border-color:var(--primary);background:var(--primary);color:#fff;}
.pw-short-title-picker {position:fixed;inset:auto;margin:0;padding:9px;border:1px solid #d8e0eb;border-radius:10px;background:#fff;color:#26364b;box-shadow:0 12px 36px #20365029;box-sizing:border-box;overflow:auto;}
.pw-short-title-picker:popover-open {display:block;}
.pw-short-title-picker > strong {display:block;padding:5px 8px 8px;font-size:13px;}
.pw-short-title-picker [role="option"] {display:flex;align-items:center;justify-content:space-between;width:100%;gap:12px;text-align:left;padding:9px;border:0;border-radius:7px;background:#fff;color:inherit;cursor:pointer;font-size:14px;}
.pw-short-title-picker [role="option"] small {color:#617187;font-size:12px;white-space:nowrap;}
.pw-short-title-picker [role="option"] span {font-weight:600;overflow-wrap:anywhere;}
.pw-short-title-picker [role="option"][aria-selected="true"],.pw-short-title-picker [role="option"]:hover {background:var(--soft);}
@media(max-width:520px){.pw-classification-change,.pw-classification-change-head{grid-template-columns:70px 1fr 16px 1fr;gap:5px;font-size:12px}.pw-classification-confirm{padding:16px}}
.pw .pw-classification-row {display:grid;grid-template-columns:1fr 1.4fr 1fr;gap:8px;padding:10px 0;border-bottom:1px solid #e7edf5;}
.pw .pw-classification-row > label {min-width:0;}
.pw-classification-scope {grid-column:1/-1;}
.pw-preset-table {overflow:auto;}
.pw-preset-table table {min-width:560px;}
.pw-preset-table td {vertical-align:top;white-space:normal;min-width:110px;}
.pw-preset-table p {margin:5px 0;line-height:1.5;}
.pw-preset-search-item,.pw-classification-result {border:1px solid #d8e3ef;border-radius:8px;padding:10px;margin:10px 0;background:#f6f9fd;}
.pw-classification-result p,.pw-preset-search-item p {line-height:1.6;overflow-wrap:anywhere;}
.pw-classification-question small {color:#617187;line-height:1.5;}
.pw-classification-question select {max-width:100%;}
@media(max-width:640px){.pw .pw-classification-row{grid-template-columns:1fr;}.pw-classification-scope{grid-column:auto;}}

.pw-sku-delete{display:inline-flex;align-items:center;justify-content:center;margin-left:8px;padding:6px;color:var(--danger,#b42318);background:transparent;border:1px solid transparent;border-radius:6px;vertical-align:middle}.pw-sku-delete:hover{background:#fff1f0;border-color:#ffd4d0}.pw-sku-delete:focus-visible{outline:2px solid currentColor;outline-offset:2px}

.pw-entry .pw-sku-table td:last-child,.pw-suite-table td:last-child{white-space:nowrap}.pw-sku-table .pw-sku-delete,.pw-suite-table .pw-sku-delete{height:18px;min-width:18px;width:18px;padding:0;margin-left:2px;line-height:16px}

/* Status shares the existing code cell and never increases row height. */
.pw-code-sync {display:flex;align-items:center;gap:3px;}
.pw-code-sync input {flex:1;min-width:0;width:0;}
.pw-sync-mark {display:inline-flex;align-items:center;flex:0 0 1em;width:1em;height:1em;line-height:0;color:#a0a5a2;}
.pw-sync-mark svg {display:block;width:100%;height:100%;overflow:visible;}
.pw-sync-mark[data-state="synced"] {color:#388e54;}
.pw-sync-mark[data-state="pending"] {color:#b78606;}
.pw-sync-mark[data-state="unlinked"] {color:#cb4242;}
.pw-sync-mark:focus-visible {outline:1px solid currentColor;outline-offset:1px;}
.pw-sync-overview {display:flex;align-items:center;gap:8px;font-size:13px;}
.pw-sync-overview details {position:relative;}
.pw-sync-overview .pw-sync-detail {position:absolute;top:100%;left:0;z-index:20;background:white;border:1px solid #ddd;padding:10px;min-width:280px;max-height:300px;overflow:auto;box-shadow:0 3px 12px #0002;}

/* Import keeps the selected rows, explanation and result in the same drawer. */
.pw-import-actions,.pw-import-mode{display:flex;flex-wrap:wrap;gap:6px;margin:8px 0}
.pw-import-mode button[aria-pressed="true"]{background:#edf6f0;border-color:#17694f;color:#17694f}
.pw-import-code{overflow-wrap:anywhere;user-select:text}
.pw-import-table{width:100%;table-layout:fixed}.pw-import-table th:first-child{width:40px}.pw-import-table th:last-child{width:75px}.pw-import-table th:nth-child(4){width:36%}.pw-import-table td{vertical-align:top;overflow-wrap:anywhere}
.pw-import-property{display:flex;flex-wrap:wrap;gap:4px;margin:6px 0;align-items:center}.pw-import-property span{width:100%}.pw-import-property select,.pw-import-property input{width:110px;min-width:0;flex:1}
.pw-import-footer{flex:1;display:flex;flex-wrap:wrap;align-items:center;gap:8px}.pw-import-footer .pw-error{margin:0;width:100%;empty-cells:hide}.pw-import-footer .pw-error:empty{display:none}.pw-import-footer button{margin-left:auto}
.pw-import-batch{padding:10px;background:#f4f8f6}.pw-import-batch label{display:flex;align-items:center;gap:5px;margin:6px 0}.pw-import-success{padding:12px;background:#edf6f0}

/* Import uses available horizontal space; only whole control groups wrap. */
.pw-import-drawer{width:min(1180px,96%)}
.pw-import-drawer .pw-drawer-body{gap:8px;font-size:13px}
.pw-import-heading,.pw-import-info{display:flex;flex-wrap:wrap;align-items:center;gap:6px 16px}
.pw-import-heading small{color:var(--muted)}
.pw-import-info{padding:6px 0;gap:6px 18px}
.pw-import-actions,.pw-import-mode{margin:0;gap:4px}
.pw-import-drawer button{padding:4px 8px;min-height:26px;font-size:12px;white-space:nowrap}
.pw-import-drawer .pw-import-table th:first-child{width:28px}
.pw-import-drawer .pw-import-table th:last-child{width:60px}
.pw-import-drawer .pw-import-table th:nth-child(4){width:48%}
.pw-import-drawer .pw-import-table th,.pw-import-drawer .pw-import-table td{padding:5px 7px;vertical-align:middle}
.pw-import-result{display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px}
.pw-import-attributes{flex:1 1 250px;min-width:0}
.pw-import-attributes summary{font-size:12px;margin-bottom:3px}
.pw-import-needs[open]>summary{display:none}
.pw-import-properties{display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px}
.pw-import-drawer .pw-import-property{display:inline-flex;flex-direction:row;flex:0 1 auto;flex-wrap:wrap;gap:4px;margin:0;max-width:100%;font-size:12px}
.pw-import-drawer .pw-import-property span{width:auto;max-width:90px;overflow-wrap:anywhere}
.pw-import-drawer .pw-import-property select,.pw-import-drawer .pw-import-property input{flex:0 1 auto;width:82px;max-width:100%;height:27px;padding:3px 5px;font-size:12px}
.pw-import-drawer .pw-import-property input{width:92px}
.pw-import-batch small{margin-left:8px;color:var(--muted)}
.pw-import-batch .pw-import-properties{margin-top:5px}
.pw-import-drawer .pw-import-batch label{flex-direction:row}
.pw-import-drawer .pw-import-table td:last-child{white-space:nowrap;font-size:12px}
.pw-import-conflict{background:#fff4ef}
[data-import-row-error]{display:block;font-size:11px;line-height:1.4;margin-top:3px}
[data-import-row-error]:empty,[data-import-issues]:empty{display:none}
[data-import-issues]{background:#fff4ef;padding:6px 8px;color:#a43b24;font-size:12px;overflow-wrap:anywhere}
[data-import-issue]{display:flex;flex-wrap:wrap;gap:3px 8px}
.pw-import-footer [data-import-error]{max-height:90px;overflow:auto;font-size:12px}
@media(max-width:760px){.pw-import-drawer{width:100%}.pw-import-drawer .pw-import-table th:nth-child(4){width:44%}.pw-import-drawer .pw-import-property span{max-width:100%}.pw-import-drawer .pw-import-table th,.pw-import-drawer .pw-import-table td{padding:4px}.pw-import-attributes{flex-basis:100%}}

/* Current synchronization results reuse the existing compact table. */
.sku-sync-toolbar{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:10px 0}.sku-sync-toolbar input{flex:1 1 280px;min-width:180px}.sku-current-table th,.sku-current-table td{padding:8px 10px;vertical-align:middle}.sku-sort{border:0;background:transparent;padding:0;font:inherit;color:inherit;text-align:left}.sku-current-code{display:inline-block;max-width:320px;overflow-wrap:anywhere;vertical-align:middle;user-select:text}.sku-copy-code{margin-left:6px;padding:2px 4px;font-size:11px}.sku-result-badge{display:inline-block;padding:3px 7px;border-radius:5px;white-space:nowrap}.sku-result-badge.good{color:#12624b;background:#e1f3eb}.sku-result-badge.attention{color:#966025;background:#fff2da}.sku-result-badge.neutral{color:#51655f;background:#edf2ef}.sku-progress-chips{display:flex;flex-wrap:wrap;gap:5px}.sku-progress-chips span{white-space:nowrap;font-size:12px;padding:3px 5px;background:#f1f6f3;border-radius:4px}.sku-image-result{display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px;padding:7px 0;border-bottom:1px solid #e7eeea}.sku-image-result span:first-child{overflow-wrap:anywhere}.sku-current-table small{display:block;font-size:11px}.sku-current-table{min-width:780px}#skuSyncTaskPanel .table-scroll{overflow:auto}
#skuSyncTaskPanel .sku-sync-toolbar input{width:auto;max-width:360px;margin:0;flex:1 1 280px}#skuSyncTaskPanel .sku-sync-toolbar select{width:150px;min-width:150px;margin:0;flex:0 0 150px}.sku-current-code-line{display:flex;align-items:center;gap:6px}.sku-current-code-line .sku-current-code{min-width:0;flex:1}.sku-current-code-line .sku-copy-code{flex:none;margin:0}.sku-current-table th:first-child{width:26%}

/* Inline copy actions reserve space, so hovering never moves the value. */
.pw-hover-copy {display:inline-flex;align-items:center;gap:2px;max-width:100%;vertical-align:middle;min-width:0;}
.pw-copy-value {overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0;}
.pw-hover-copy > .pw-copy {opacity:0;pointer-events:none;}
.pw-hover-copy:hover > .pw-copy,.pw-hover-copy:focus-within > .pw-copy {opacity:1;pointer-events:auto;}
@media (hover:none) {.pw-hover-copy > .pw-copy {opacity:1;pointer-events:auto;}}
.pw-editor-head {flex-wrap:wrap;}
.pw-editor-sync-tools {display:flex;align-items:center;gap:6px;flex-wrap:wrap;min-width:0;}
.pw-sync-overview {flex-wrap:wrap;}
.pw-sync-overview .pw-sync-detail {position:fixed;right:auto;width:min(480px,calc(100vw - 24px));min-width:0;box-sizing:border-box;overflow-wrap:anywhere;}
@media (max-width:900px) {.pw-editor-sync-tools {order:2;flex-basis:100%;}}

/* Quiet autosave feedback occupies its space even when the message fades. */
[data-editor-status] {display:inline-flex;align-items:center;gap:8px;min-width:180px;}
.pw-auto-status {display:inline-flex;align-items:center;gap:5px;flex:0 0 160px;width:160px;min-height:20px;font-size:12px;color:var(--muted);white-space:nowrap;transition:opacity .2s;}
.pw-auto-status.pw-auto-faded {opacity:0;pointer-events:none;}
.pw-auto-status.pw-auto-error {color:var(--danger,#b45309);}
.pw-auto-status button {padding:0 3px!important;font-size:12px;min-height:20px;border:0;background:transparent;text-decoration:underline;}
.pw-auto-status button[hidden] {display:none;}
.pw-drawer > .pw-procurement-header h3 {flex:1;min-width:0;}
[data-product-save-summary] {flex:0 0 140px;width:140px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
