:root {
  --ink: #20242b;
  --muted: #68707d;
  --line: #dfe3e8;
  --paper: #f6f7f8;
  --panel: #ffffff;
  --accent: #19736a;
  --accent-strong: #12564f;
  --warn: #b36b00;
  --danger: #b92d2b;
  --soft-accent: #e6f3f0;
  --soft-warn: #fff1d6;
  --soft-danger: #fde6e5;
}

/* Shared Product Facts: compact local review, never a provider-write surface. */
.product-facts-panel {
  min-width: 0;
}

.product-facts-panel > summary {
  list-style: none;
  cursor: pointer;
}

.product-facts-panel > summary::-webkit-details-marker {
  display: none;
}

.product-facts-panel__summary {
  margin: 0;
  padding: 0;
}

.product-facts-panel__summary::after {
  content: "Open";
  align-self: center;
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 800;
}

.product-facts-panel[open] .product-facts-panel__summary::after {
  content: "Close";
}

.product-facts-panel__body {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.product-facts-review-bundle {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 14px;
  align-items: center;
  margin: 8px 0;
  padding: 9px 10px;
  border: 1px solid #dfbd7d;
  border-radius: 6px;
  background: var(--soft-warn);
}

.product-facts-review-bundle__copy {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.product-facts-review-bundle__copy small {
  color: #70501d;
}

.product-facts-review-bundle__values {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 3px 12px;
}

.product-facts-review-bundle__values span {
  display: flex;
  gap: 5px;
  min-width: 0;
  overflow-wrap: anywhere;
}

.product-facts-review-bundle__values b {
  flex: 0 0 auto;
}

.product-shell-review-options {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 1px;
}

.product-shell-review-status:not(:empty) {
  color: var(--accent-strong);
  font-weight: 650;
}

.product-shell-condition-review {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px 10px;
  margin-top: 3px;
  padding-top: 8px;
  border-top: 1px solid #dfbd7d;
}

.product-shell-condition-review > strong,
.product-shell-condition-review > .product-shell-inline-fact,
.product-shell-condition-review > input[type="hidden"] {
  grid-column: 1 / -1;
}

.product-shell-condition-review label:not(.product-shell-inline-fact) {
  align-self: end;
  color: #5f4318;
  font-size: 12px;
  font-weight: 750;
}

.product-shell-condition-review textarea {
  width: 100%;
  min-height: 68px;
  resize: vertical;
}

@media (max-width: 700px) {
  .product-shell-condition-review {
    grid-template-columns: minmax(0, 1fr);
  }

  .product-shell-condition-review > * {
    grid-column: 1;
  }
}

.product-fact-review-list {
  display: grid;
  gap: 8px;
  margin: 10px 0;
}

.product-fact-row {
  display: grid;
  grid-template-columns: minmax(150px, 0.7fr) minmax(220px, 1.4fr) auto;
  gap: 8px 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--border, #d7e0e8);
  border-left: 3px solid #d7e0e8;
  border-radius: 6px;
  min-width: 0;
}

.product-fact-row--conflict {
  border-left-color: #c9473a;
}

.product-fact-row--proposed {
  border-left-color: #d79a27;
}

.product-fact-row__identity,
.product-fact-row__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}

.product-fact-row__value {
  min-width: 0;
}

.product-fact-row__value input {
  width: 100%;
}

.product-fact-row__value small {
  display: block;
  margin-top: 3px;
  color: var(--muted, #667085);
}

.product-fact-row__assistance {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 5px 8px;
  margin-bottom: 7px;
  padding: 7px 8px;
  border-left: 3px solid #2f7d68;
  background: #f1f8f5;
}

.product-fact-row__assistance > span:first-child {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.product-fact-row__assistance .product-fact-row__impact,
.product-fact-row__assistance-actions {
  grid-column: 1 / -1;
}

.product-fact-row__assistance-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.product-fact-row__assistance-actions details {
  flex: 1 1 240px;
}

.product-fact-row__evidence {
  grid-column: 1 / -1;
}

.product-facts-known-grid,
.product-fact-proposal-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 6px 14px;
  padding-top: 8px;
}

.product-facts-known-grid > div,
.product-fact-proposal-list > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.product-fact-channel-plans {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.product-fact-plan-table {
  min-width: 720px;
}

.product-facts-actions {
  margin-top: 10px;
}

.listing-assist-command {
  display: grid;
  gap: 8px;
  margin: 8px 0 10px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.listing-assist-command__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.listing-assist-command__head h3 {
  margin: 1px 0 0;
}

.listing-assist-command__controls {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto;
  gap: 8px;
  align-items: end;
}

.listing-assist-command textarea {
  width: 100%;
  min-height: 58px;
  resize: vertical;
}

.stocksheet-full-row {
  margin-top: 2px;
}

.stocksheet-full-row__grid {
  display: grid;
  grid-template-columns: minmax(140px, 190px) minmax(240px, 1fr);
  gap: 6px 10px;
  align-items: start;
  padding-top: 8px;
}

.stocksheet-full-row__grid label {
  display: grid;
  gap: 2px;
  padding-top: 6px;
}

.stocksheet-full-row__action {
  grid-column: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

@media (max-width: 720px) {
  .product-facts-review-bundle {
    grid-template-columns: minmax(0, 1fr);
  }

  .product-facts-review-bundle .button {
    width: 100%;
  }
}

.listing-preparation-loader {
  margin: 8px 0;
}

.listing-preparation-loader > summary > span {
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 5px 9px;
}

.listing-preparation-loader > summary small {
  color: var(--muted);
  font-weight: 500;
}

.listing-preparation-loader__content,
.listing-preparation-review {
  display: grid;
  gap: 8px;
  padding-top: 8px;
}

.listing-preparation-review__head h3 {
  margin: 0;
  font-size: 16px;
}

.listing-preparation-next {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
  align-items: baseline;
  padding: 8px 10px;
  border-left: 3px solid var(--accent);
  background: var(--soft-accent);
}

.listing-preparation-next > span {
  color: var(--accent-strong);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.listing-preparation-next__body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  min-width: 0;
}

.listing-preparation-next__body > strong {
  overflow-wrap: anywhere;
}

.listing-preparation-next__body > .action-row {
  flex: 0 0 auto;
  margin: 0;
}

.listing-preparation-lanes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}

.listing-preparation-lanes section {
  display: grid;
  align-content: start;
  gap: 3px;
  min-width: 0;
  padding: 9px 10px;
  border-right: 1px solid var(--line);
}

.listing-preparation-lanes section:last-child {
  border-right: 0;
}

.listing-preparation-lanes strong,
.listing-preparation-lanes small {
  overflow-wrap: anywhere;
}

.listing-preparation-lanes small,
.listing-preparation-safety {
  color: var(--muted);
}

.listing-preparation-channel-values {
  margin-top: 8px;
}

.listing-preparation-channel-values > summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.listing-preparation-channel-values__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 16px;
  padding-top: 8px;
}

.listing-preparation-channel-values__grid section {
  min-width: 0;
}

.listing-preparation-channel-values__grid section + section {
  padding-left: 16px;
  border-left: 1px solid var(--line);
}

.listing-preparation-channel-values__grid dl {
  margin: 5px 0 0;
}

.listing-preparation-channel-values__grid dl > div {
  display: grid;
  grid-template-columns: minmax(100px, 0.8fr) minmax(0, 1.2fr);
  gap: 8px;
  padding: 4px 0;
  border-top: 1px solid var(--line);
}

.listing-preparation-channel-values__grid dt {
  font-weight: 600;
}

.listing-preparation-channel-values__grid dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.listing-preparation-checks ul,
.listing-preparation-checks ol {
  display: grid;
  gap: 5px;
  margin: 8px 0 0;
  padding-left: 20px;
}

.listing-preparation-condition-review {
  display: grid;
  gap: 7px;
  padding: 10px;
  border: 1px solid #d7dfdc;
  border-left: 3px solid var(--accent);
  border-radius: 6px;
  background: #fbfdfc;
}

.listing-preparation-condition-review textarea {
  width: 100%;
  min-height: 78px;
  resize: vertical;
}

.listing-preparation-condition-evidence {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  color: var(--muted);
  font-size: 12px;
}

.listing-preparation-condition-evidence span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.listing-preparation-description > div {
  max-width: 76ch;
  padding-top: 8px;
}

.listing-preparation-actions {
  margin-top: 0;
}

.listing-preparation-safety {
  margin: 0;
  font-size: 12px;
}

.listing-assistance-review {
  margin: 10px 0;
  padding: 10px;
  border: 1px solid #cfe3df;
  border-radius: 6px;
  background: #f8fcfb;
}

.listing-assistance-review h3 {
  margin: 0;
}

.listing-assistance-progress {
  display: grid;
  gap: 5px;
  margin-top: 8px;
}

.listing-assistance-progress__summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.listing-assistance-progress__summary small {
  color: var(--muted);
}

.listing-assistance-progress progress {
  width: 100%;
  height: 7px;
  accent-color: #0f766e;
}

.listing-assistance-progress .muted-copy {
  margin: 0;
}

.listing-assistance-impact {
  display: grid;
  grid-template-columns: minmax(220px, 1.35fr) minmax(320px, 1fr);
  gap: 8px 16px;
  margin-top: 8px;
  padding: 9px 10px;
  border-left: 3px solid #64748b;
  background: #fff;
}

.listing-assistance-impact--accepted {
  border-left-color: #15803d;
}

.listing-assistance-impact--review,
.listing-assistance-impact--working {
  border-left-color: #b45309;
}

.listing-assistance-impact__answer {
  display: grid;
  align-content: start;
  gap: 2px;
  min-width: 0;
}

.listing-assistance-impact__answer > strong {
  font-size: 15px;
  overflow-wrap: anywhere;
}

.listing-assistance-impact__answer > small,
.listing-assistance-impact__usage {
  color: var(--muted);
}

.listing-assistance-impact__counts {
  display: grid;
  grid-template-columns: repeat(4, minmax(64px, 1fr));
  margin: 0;
}

.listing-assistance-impact__counts > div {
  min-width: 0;
  padding: 0 8px;
  border-left: 1px solid var(--line);
}

.listing-assistance-impact__counts dt {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.2;
}

.listing-assistance-impact__counts dd {
  margin: 2px 0 0;
  font-size: 17px;
  font-weight: 800;
}

.listing-assistance-impact__usage {
  display: flex;
  grid-column: 1 / -1;
  flex-wrap: wrap;
  gap: 3px 14px;
  font-size: 11px;
}

.listing-assistance-impact__usage span {
  overflow-wrap: anywhere;
}

.listing-assistance-list {
  display: grid;
  gap: 6px;
  margin-top: 8px;
}

.listing-assistance-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto auto;
  gap: 8px 12px;
  align-items: center;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--panel);
  min-width: 0;
}

.listing-assistance-row--reviewed {
  opacity: 0.78;
}

.listing-assistance-row__fact {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.listing-assistance-row__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}

.listing-assistance-row__fact small {
  color: var(--muted);
}

.listing-assistance-row__change {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.listing-assistance-row__change > span {
  display: grid;
  gap: 1px;
  min-width: 0;
  overflow-wrap: anywhere;
}

.listing-assistance-row__change > b {
  flex: 0 0 auto;
  color: var(--accent-strong);
}

.listing-assistance-row__outputs {
  display: block;
  overflow-wrap: anywhere;
}

.listing-assistance-row__details {
  grid-column: 1 / -1;
}

.listing-assistance-edit-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.listing-assistance-technical {
  margin-top: 8px;
}

.listing-assistance-reviewed {
  margin-top: 8px;
}

@media (max-width: 760px) {
  .listing-preparation-next {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .listing-preparation-next__body {
    align-items: stretch;
    flex-direction: column;
  }

  .listing-assistance-row {
    grid-template-columns: 1fr;
  }

  .listing-assistance-row__details {
    grid-column: 1;
  }

  .listing-assistance-row__change {
    align-items: flex-start;
  }

  .listing-assistance-edit-row {
    grid-template-columns: 1fr;
  }

  .listing-assistance-impact {
    grid-template-columns: 1fr;
  }

  .listing-assistance-impact__counts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .listing-assistance-impact__counts > div:nth-child(3) {
    margin-top: 6px;
  }

  .listing-assistance-impact__counts > div:nth-child(4) {
    margin-top: 6px;
  }

  .listing-assist-command__controls {
    grid-template-columns: 1fr;
  }

  .listing-assist-command__controls .button {
    width: 100%;
  }

  .stocksheet-full-row__grid {
    grid-template-columns: 1fr;
  }

  .stocksheet-full-row__action {
    grid-column: 1;
  }

  .listing-preparation-lanes {
    grid-template-columns: 1fr;
  }

  .listing-preparation-lanes section {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .listing-preparation-lanes section:last-child {
    border-bottom: 0;
  }

  .listing-preparation-channel-values__grid {
    grid-template-columns: 1fr;
  }

  .listing-preparation-channel-values__grid section + section {
    margin-top: 8px;
    padding-top: 8px;
    padding-left: 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }
}

/* PPC analyst pack: dense, scan-first evidence completion. */
.ci-workbench-baseline {
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fbfcfd;
}

.ci-workbench-baseline > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 42px;
  padding: 8px 10px;
  cursor: pointer;
  color: var(--ink);
  font-weight: 800;
}

.ci-workbench-baseline > summary span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-align: right;
}

.ci-workbench-baseline > p {
  margin: 0;
  padding: 9px 10px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.ci-workbench-baseline ol {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  padding: 1px;
  list-style: none;
  background: var(--line);
}

.ci-workbench-baseline li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) minmax(116px, auto);
  gap: 8px;
  align-items: center;
  min-width: 0;
  min-height: 58px;
  padding: 8px 9px;
  border-left: 3px solid #8793a0;
  background: var(--panel);
}

.ci-workbench-baseline li[data-state="automatic"] {
  border-left-color: var(--accent);
  background: #f5fbf9;
}

.ci-workbench-baseline li[data-state="manual"] {
  border-left-color: #3578a8;
  background: #f4f9fd;
}

.ci-workbench-baseline li[data-state="manual_tail"],
.ci-workbench-baseline li[data-state="repair_due"] {
  border-left-color: var(--warn);
  background: #fffaf0;
}

.ci-workbench-baseline li[data-state="unproven"] {
  border-left-color: var(--danger);
  background: #fff7f7;
}

.ci-workbench-baseline li > span {
  min-width: 0;
}

.ci-workbench-baseline li > span:nth-child(2) {
  display: grid;
  gap: 3px;
}

.ci-workbench-baseline li strong,
.ci-workbench-baseline li small {
  overflow-wrap: anywhere;
}

.ci-workbench-baseline li small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.ci-workbench-baseline-number {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--panel);
  color: #4a5562;
  font-size: 11px;
  font-weight: 850;
}

.ci-workbench-baseline-scores {
  display: grid;
  gap: 2px;
  text-align: right;
}

.ci-workbench-baseline-scores strong {
  color: var(--accent-strong);
  font-size: 12px;
}

.ci-workbench-baseline-action {
  display: inline-block;
  margin-top: 0.25rem;
  color: var(--link);
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
}

.ci-workbench-baseline-action:hover,
.ci-workbench-baseline-action:focus-visible {
  text-decoration: underline;
}

@media (max-width: 1050px) {
  .ci-workbench-baseline ol {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .ci-workbench-baseline > summary {
    align-items: flex-start;
    flex-direction: column;
  }

  .ci-workbench-baseline > summary span,
  .ci-workbench-baseline-scores {
    text-align: left;
  }

  .ci-workbench-baseline li {
    grid-template-columns: 28px minmax(0, 1fr);
  }

  .ci-workbench-baseline-scores {
    grid-column: 2;
  }
}

.shopify-classification-planner {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fbfdfc;
}

.ebay-live-create-strip > summary {
  cursor: pointer;
  list-style-position: inside;
}

.ebay-live-create-strip[open] > summary {
  border-bottom: 1px solid var(--line);
}

.ebay-live-create-body {
  padding-top: 10px;
}

.shopify-classification-planner > summary {
  padding: 8px 9px;
  cursor: pointer;
  list-style-position: inside;
}

.shopify-classification-planner > summary::marker {
  color: var(--accent-strong);
}

.shopify-classification-planner[open] > summary {
  border-bottom: 1px solid var(--line);
}

.shopify-classification-body {
  min-width: 0;
  padding: 0 9px 9px;
}

.shopify-classification-planner h3 {
  margin: 2px 0 0;
  font-size: 15px;
}

.shopify-classification-head {
  gap: 8px;
}

.compact-info-strip,
.compact-danger-strip {
  margin: 7px 0;
  padding: 7px 9px;
  border: 1px solid #cfdde5;
  border-radius: 6px;
  background: #f4f8fa;
}

.compact-danger-strip {
  border-color: #e1aaa6;
  background: var(--soft-danger);
  color: #852522;
}

.shopify-classification-mode {
  display: grid;
  grid-template-columns: minmax(210px, auto) minmax(220px, 330px) minmax(220px, 1fr);
  gap: 8px 12px;
  align-items: center;
  margin: 8px 0;
  padding: 8px;
  border: 1px solid #cfe1dc;
  border-radius: 6px;
  background: #f1f8f6;
}

.shopify-classification-mode select {
  height: 34px;
  min-height: 34px;
  padding: 5px 8px;
}

.shopify-classification-summary-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin-top: 6px;
  padding: 6px 8px;
  border: 1px solid #cfe1dc;
  border-radius: 5px;
  background: #f1f8f6;
  font-size: 12px;
}

.shopify-classification-summary-line span {
  color: var(--muted);
}

.shopify-classification-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 7px 0;
}

.shopify-classification-preview > span {
  display: inline-grid;
  gap: 1px;
  min-width: 130px;
  max-width: 230px;
  padding: 5px 7px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fff;
}

.shopify-classification-preview > span.is-vat {
  border-color: #d9a84c;
  background: #fffaf0;
}

.shopify-classification-preview small {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shopify-classification-preview strong {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shopify-classification-imported-details {
  margin-top: 5px;
}

.shopify-classification-checklist-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 7px;
}

.shopify-classification-checklist-head > div {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 5px 10px;
}

.shopify-classification-checklist-head span,
.shopify-classification-checklist-head small {
  color: var(--muted);
  font-size: 12px;
}

.shopify-classification-group-list {
  display: grid;
  gap: 5px;
  margin-top: 7px;
}

.shopify-classification-group {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.shopify-classification-group > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 9px;
  cursor: pointer;
  list-style-position: inside;
}

.shopify-classification-group > summary > span:first-child {
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 9px;
}

.shopify-classification-group > summary small,
.shopify-classification-group-count {
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
}

.shopify-classification-group-count {
  white-space: nowrap;
}

.shopify-classification-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin: 0;
  padding: 0 8px 8px;
  min-width: 0;
  align-items: start;
}

.shopify-classification-field {
  position: relative;
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fff;
}

.shopify-classification-field > label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.shopify-classification-field input {
  width: 100%;
  min-width: 0;
  height: 32px;
  min-height: 32px;
  padding: 5px 8px;
  border-radius: 4px 0 0 4px;
  line-height: 1.2;
}

.shopify-classification-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 31px;
  min-width: 0;
}

.shopify-classification-control > small {
  display: none;
}

.shopify-classification-control input::-webkit-calendar-picker-indicator {
  display: none !important;
}

.shopify-classification-picker {
  display: inline-grid;
  width: 31px;
  min-width: 31px;
  height: 32px;
  min-height: 32px;
  place-items: center;
  padding: 0;
  border: 1px solid #cbd5df;
  border-left: 0;
  border-radius: 0 4px 4px 0;
  background: #f7f9fa;
  color: var(--accent-strong);
  cursor: pointer;
  font-size: 15px;
}

.shopify-classification-picker:hover,
.shopify-classification-picker:focus-visible {
  background: var(--soft-accent);
}

.shopify-classification-options {
  position: absolute;
  z-index: 40;
  top: calc(100% - 5px);
  right: 6px;
  left: 6px;
  display: grid;
  max-height: 230px;
  overflow-y: auto;
  padding: 4px;
  border: 1px solid #b8c8d6;
  border-radius: 5px;
  background: #fff;
  box-shadow: 0 8px 20px rgb(28 45 58 / 14%);
}

.shopify-classification-option {
  display: grid;
  gap: 1px;
  width: 100%;
  min-width: 0;
  padding: 6px 7px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.shopify-classification-option:hover,
.shopify-classification-option:focus-visible,
.shopify-classification-option.is-active {
  background: var(--soft-accent);
  outline: none;
}

.shopify-classification-option strong,
.shopify-classification-option small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shopify-classification-option strong {
  font-size: 12px;
}

.shopify-classification-option small,
.shopify-classification-options__empty {
  color: var(--muted);
  font-size: 11px;
}

.shopify-classification-options__empty {
  padding: 7px;
}

.shopify-classification-field small {
  color: var(--muted);
  line-height: 1.25;
}

.shopify-classification-field--vat {
  border-color: #d9a84c;
  background: #fffaf0;
}

.shopify-classification-group-list--observed {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding-top: 7px;
}

.shopify-classification-observed-group {
  min-width: 0;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fff;
}

.shopify-classification-group-heading {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.shopify-classification-group-heading span {
  color: var(--muted);
  font-size: 11px;
}

.shopify-classification-observed-rows {
  display: grid;
  gap: 2px;
}

.shopify-classification-observed-rows > div {
  display: grid;
  grid-template-columns: minmax(110px, 0.8fr) minmax(0, 1.2fr);
  gap: 4px 8px;
  min-width: 0;
  padding: 3px 4px;
  border-radius: 4px;
  font-size: 12px;
}

.shopify-classification-observed-rows > div.is-vat {
  background: #fff8e8;
}

.shopify-classification-observed-rows span,
.shopify-classification-observed-rows small {
  color: var(--muted);
}

.shopify-classification-observed-rows strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shopify-classification-observed-rows small {
  grid-column: 1 / -1;
}

.shopify-classification-extras {
  margin-top: 8px;
}

.shopify-classification-extra-body {
  display: grid;
  gap: 8px;
  padding-top: 8px;
}

.shopify-output-review {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  align-items: center;
  margin-top: 8px;
  padding: 8px 10px;
  border: 1px solid #b9ded5;
  border-radius: 6px;
  background: #f2faf8;
  color: var(--text-soft);
  font-size: 12px;
}

.shopify-output-review strong {
  color: var(--text);
}

.shopify-output-review a {
  color: var(--accent-strong);
  text-decoration: none;
}

.shopify-output-review a:hover,
.shopify-output-review a:focus-visible {
  text-decoration: underline;
}

.shopify-output-review a,
.shopify-structured-review__category,
.shopify-structured-review__group,
.shopify-classification-checklist-head,
.shopify-classification-collections {
  scroll-margin-top: 16px;
}

.shopify-structured-review {
  display: grid;
  gap: 9px;
}

.shopify-structured-review__category {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 12px;
  align-items: center;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.shopify-structured-review__category span {
  display: grid;
  gap: 2px;
}

.shopify-structured-review__category small {
  color: var(--muted);
  font-size: 11px;
}

.shopify-structured-review__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.shopify-structured-review__group {
  display: grid;
  gap: 6px;
}

.shopify-structured-review__group > summary {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 7px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
}

.shopify-structured-review__group > summary small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.shopify-structured-review__group[open] > summary {
  margin-bottom: 6px;
}

.shopify-structured-review__group h4 {
  margin: 0;
  font-size: 13px;
}

.shopify-structured-review__field {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.shopify-structured-review__field > label {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--text);
  font-weight: 800;
}

.shopify-structured-review__field > label small,
.shopify-structured-review__field > small {
  color: var(--muted);
  font-size: 11px;
}

.shopify-structured-review__control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px;
  align-items: center;
}

.shopify-structured-review__control input {
  width: 100%;
  min-width: 0;
}

.shopify-classification-instruction {
  margin: 7px 0 0;
}

.shopify-classification-extras-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding-top: 8px;
}

.shopify-classification-extras-grid fieldset {
  min-width: 0;
  margin: 0;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.shopify-option-checks {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 4px 8px;
  margin-bottom: 8px;
}

.shopify-option-checks label {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 5px;
  align-items: center;
  min-width: 0;
}

.shopify-option-checks label span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shopify-option-checks label small {
  color: var(--muted);
}

.shopify-observed-summary {
  display: grid;
  gap: 6px;
  padding-top: 8px;
}

.shopify-observed-summary > div {
  display: grid;
  grid-template-columns: minmax(150px, 0.25fr) minmax(0, 1fr);
  gap: 8px;
}

.shopify-observed-summary span {
  overflow-wrap: anywhere;
}

.shopify-classification-actions,
.shopify-classification-help {
  margin-top: 8px;
}

@media (max-width: 900px) {
  .product-fact-row {
    grid-template-columns: 1fr;
  }

  .product-fact-row__evidence {
    grid-column: auto;
  }

  .shopify-classification-mode,
  .shopify-classification-extras-grid,
  .shopify-structured-review__category,
  .shopify-structured-review__grid,
  .shopify-observed-summary > div,
  .shopify-classification-group-list--observed {
    grid-template-columns: 1fr;
  }

  .shopify-classification-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .shopify-classification-grid {
    grid-template-columns: 1fr;
  }

  .shopify-classification-group > summary,
  .shopify-classification-checklist-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .shopify-structured-review__control {
    grid-template-columns: 1fr;
  }
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  min-height: 100vh;
  max-width: 100%;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  letter-spacing: 0;
}

a {
  color: var(--accent-strong);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 248px;
  padding: 18px 14px;
  background: #ffffff;
  border-right: 1px solid var(--line);
  overflow-y: auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  margin-bottom: 18px;
  color: var(--ink);
  font-weight: 700;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
}

.sidebar-toggle {
  display: none;
}

nav {
  display: grid;
  gap: 2px;
}

nav a {
  display: block;
  padding: 10px 12px;
  border-radius: 6px;
  color: #333942;
}

nav a:hover {
  background: var(--soft-accent);
  text-decoration: none;
}

.nav-sub-link {
  margin-left: 12px;
  padding: 7px 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.nav-sub-link::before {
  content: "- ";
  color: #9aa5b1;
}

.nav-sub-link.is-active {
  background: var(--soft-accent);
  color: var(--accent-strong);
}

.nav-sub-link--quiet {
  color: #7a8491;
  font-size: 11px;
  font-weight: 700;
}

.nav-label {
  margin: 18px 0 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.nav-help {
  display: block;
  margin: 8px 12px 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

.page-tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0 0 14px;
}

.page-tabs a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--muted);
  font-weight: 650;
}

.page-tabs a.active {
  border-color: var(--accent);
  background: var(--soft-accent);
  color: var(--accent-strong);
}

.page-tabs a:hover {
  background: var(--soft-accent);
  text-decoration: none;
}

.app-performance-footer {
  position: fixed;
  right: 14px;
  bottom: 10px;
  z-index: 40;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: min(360px, calc(100vw - 28px));
  padding: 5px 8px;
  border: 1px solid rgba(104, 112, 125, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--muted);
  box-shadow: 0 8px 20px rgba(32, 36, 43, 0.08);
  font-size: 11px;
  line-height: 1.25;
  backdrop-filter: blur(4px);
}

.app-performance-footer [data-performance-summary] {
  display: inline-block;
  min-width: 118px;
  text-align: left;
  white-space: nowrap;
}

.app-performance-details {
  position: relative;
  color: var(--muted);
}

.app-performance-details summary {
  cursor: pointer;
  list-style: none;
  white-space: nowrap;
}

.app-performance-details summary::-webkit-details-marker {
  display: none;
}

.app-performance-details[open] dl {
  position: absolute;
  right: 0;
  bottom: 24px;
  width: 240px;
  margin: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(32, 36, 43, 0.14);
}

.app-performance-details dl div {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 8px;
  margin: 0 0 6px;
}

.app-performance-details dt {
  color: var(--muted);
  font-weight: 700;
}

.app-performance-details dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--ink);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* WorkspaceKit: shared internal page shell, overflow and compact UI standards. */
.wk_shell,
.wk_header,
.wk_tabs,
.wk_control_card,
.wk_summary_strip,
.wk_card_grid,
.wk_card,
.wk_issue_card,
.wk_filter_toolbar,
.wk_quick_filters,
.wk_advanced_filters,
.wk_result_meta,
.wk_selection_toolbar,
.wk_table_card,
.wk_table_scroll,
.wk_chart_card,
.wk_diagnostics_collapsed {
  box-sizing: border-box;
  max-width: 100%;
  min-width: 0;
}

.wk_shell {
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr);
}

.wk_header {
  align-items: flex-start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.wk_header_text,
.wk_header_actions {
  min-width: 0;
}

.wk_header_actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.wk_header_actions form {
  margin: 0;
}

.wk_header h2 {
  margin: 0;
}

.wk_tabs {
  overflow-x: auto;
  overflow-y: hidden;
}

.wk_tabs .page-tabs {
  max-width: 100%;
  min-width: 0;
}

.wk_control_card,
.wk_card,
.wk_table_card {
  background: #fff;
  border: 1px solid #dbe7e2;
  border-radius: 8px;
  padding: 12px;
}

.wk_summary_strip,
.wk_card_grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.wk_stat_card {
  display: grid;
  gap: 4px;
}

.wk_stat_label,
.wk_stat_detail {
  color: #64748b;
  font-size: 12px;
}

.wk_stat_value {
  color: #0f172a;
  font-size: 20px;
  line-height: 1.15;
}

.listing-evaluation-model-glance {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
}

.listing-evaluation-model-glance .wk_stat_card,
.listing-evaluation-model-glance .wk_stat_card > * {
  min-width: 0;
  overflow-wrap: anywhere;
}

.wk_issue_card {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.wk_filter_toolbar {
  display: grid;
  gap: 8px;
}

.wk_result_meta {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: space-between;
}

.wk_listing_tools {
  border-top: 1px solid #dbe7e2;
  margin-top: -4px;
  padding-top: 8px;
}

.wk_listing_tools > summary {
  color: #475569;
  cursor: pointer;
  font-size: 12px;
  font-weight: 750;
}

.wk_listing_tools__body {
  align-items: end;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding-top: 10px;
}

.wk_listing_tools__body p {
  margin: 3px 0 0;
}

.listing-intelligence-prepared-output {
  border-top: 1px solid #dbe7e2;
  padding-top: 8px;
}

.listing-intelligence-prepared-output > summary {
  color: #334155;
  cursor: pointer;
  font-size: 13px;
  font-weight: 750;
}

.listing-intelligence-prepared-output[open] > summary {
  margin-bottom: 12px;
}

.listing-intelligence-prepared-output > section + section {
  border-top: 1px solid #e7efec;
  margin-top: 12px;
  padding-top: 12px;
}

.listing-rule-command {
  background: #f8fbfa;
  border-block: 1px solid #dbe7e2;
  display: grid;
  gap: 12px;
  padding: 14px 0;
}

.listing-rule-command .muted-copy {
  margin: 4px 0 0;
  max-width: 76ch;
}

.listing-rule-explainer,
.listing-rule-next-action {
  border-block: 1px solid #dbe7e2;
  padding: 9px 0;
}

.listing-rule-explainer > summary,
.listing-rule-next-action > summary {
  color: #334155;
  font-size: 13px;
  font-weight: 750;
}

.listing-rule-explainer[open] > summary,
.listing-rule-next-action[open] > summary {
  margin-bottom: 10px;
}

.listing-rule-next-action > .wk_control_card {
  border: 0;
  border-radius: 0;
  padding: 8px 0 0;
}

.listing-rule-lanes {
  border-top: 1px solid #dbe7e2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.listing-rule-lanes > div {
  align-content: start;
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 12px 16px 2px 0;
}

.listing-rule-lanes > div + div {
  border-left: 1px solid #dbe7e2;
  padding-left: 16px;
}

.listing-rule-lanes strong,
.listing-rule-lanes span {
  overflow-wrap: anywhere;
}

.listing-rule-lanes > div > span:last-of-type {
  color: #64748b;
  font-size: 12px;
}

.listing-rule-output-lanes {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.listing-rule-output-lanes a {
  align-self: end;
  font-size: 12px;
  font-weight: 700;
}

.listing-rule-section {
  border-bottom: 1px solid #dbe7e2;
  display: grid;
  gap: 10px;
  padding-bottom: 12px;
}

.listing-rule-management {
  border-block: 1px solid #dbe7e2;
  padding: 10px 0;
}

.listing-rule-management > summary > span {
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 12px;
}

.listing-rule-management > summary small {
  color: var(--muted);
  font-weight: 500;
}

.listing-rule-management__body {
  display: grid;
  gap: 14px;
  padding-top: 12px;
}

.listing-rule-attention-list {
  display: grid;
}

.listing-rule-attention-list article {
  align-items: center;
  border-top: 1px solid #e2e8f0;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 10px 0;
}

.listing-rule-model-index {
  padding: 12px 0 4px;
}

.listing-rule-model-list {
  display: grid;
  gap: 6px;
  margin: 8px 0;
}

.listing-rule-model-list > a {
  align-items: center;
  border: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  padding: 9px 10px;
  text-decoration: none;
}

.listing-rule-model-list > a:hover,
.listing-rule-model-list > a:focus-visible {
  border-color: var(--accent);
  background: var(--soft-accent);
}

.listing-rule-model-list span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.listing-rule-model-list > a > span:last-child {
  flex: 0 0 auto;
  text-align: right;
}

.listing-rule-attention-list article > div {
  min-width: 0;
}

.listing-rule-attention-list article p {
  color: #64748b;
  font-size: 12px;
  margin: 4px 0 0;
}

.listing-rule-attention-list .wk_status_chip {
  margin-left: 6px;
}

.listing-rule-editor > .wk_control_card {
  border: 0;
  border-top: 1px solid #dbe7e2;
  border-radius: 0;
  margin-top: 8px;
  padding-inline: 0;
}

@media (max-width: 760px) {
  .listing-rule-lanes {
    grid-template-columns: 1fr;
  }

  .listing-rule-lanes > div,
  .listing-rule-lanes > div + div {
    border-left: 0;
    border-top: 1px solid #dbe7e2;
    padding: 10px 0;
  }

  .listing-rule-attention-list article {
    align-items: flex-start;
    flex-direction: column;
  }
}

.wk_selection_toolbar {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.wk_table_scroll {
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
}

.wk_table,
.wk_table_scroll table {
  max-width: 100%;
}

.listing-intelligence-pilot-table {
  min-width: 620px;
}

.wk_actions_cell {
  min-width: 110px;
  white-space: nowrap;
}

.wk_actions_menu {
  align-items: center;
  display: inline-flex;
  gap: 6px;
  white-space: nowrap;
}

.wk_empty_state {
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  color: #334155;
  display: grid;
  gap: 5px;
  padding: 12px;
}

.wk_status_chip {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-size: 11px;
  font-weight: 800;
  gap: 4px;
  line-height: 1;
  padding: 5px 8px;
  white-space: nowrap;
}

.wk_long_value {
  display: inline-block;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  overflow-wrap: anywhere;
  text-overflow: ellipsis;
  vertical-align: bottom;
}

.wk_copy_value {
  align-items: center;
  display: inline-flex;
  gap: 6px;
  max-width: 100%;
  min-width: 0;
}

.wk_chart_card {
  display: grid;
  gap: 5px;
}

.wk_chart_header {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: space-between;
  min-width: 0;
}

.wk_diagnostics_collapsed > summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  gap: 8px;
  justify-content: space-between;
}

.wk_tone_pass,
.wk_tone_green,
.wk_tone_ready {
  border-color: #bbf7d0;
  color: #166534;
}

.wk_tone_shopify,
.wk_tone_teal,
.wk_tone_working {
  border-color: #99f6e4;
  color: #0f766e;
}

.wk_tone_warn,
.wk_tone_amber,
.wk_tone_review {
  border-color: #fde68a;
  color: #92400e;
}

.wk_tone_danger {
  border-color: #fecdd3;
  color: #9f1239;
}

.wk_tone_muted,
.wk_tone_grey {
  border-color: #e2e8f0;
  color: #475569;
}

.tools-card {
  align-content: space-between;
  display: grid;
  gap: 14px;
}

.template-remover {
  --template-remover-preview-min: min(62vh, 640px);
}

.template-remover-title-row,
.template-remover-panel-header {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.template-remover-title-row h2,
.template-remover-panel-header h3 {
  margin: 0;
}

.template-remover-panel-header--compact {
  margin: 8px 0;
}

.template-remover-hero {
  margin-bottom: 0;
}

.template-remover-safety {
  margin: 10px 0 0;
  padding: 9px 10px;
  border: 1px solid #bbf7d0;
  border-radius: 6px;
  background: #f0fdf4;
  color: #166534;
  font-weight: 650;
}

.template-remover-controls {
  display: grid;
  gap: 10px;
}

.template-remover-toolbar {
  align-items: end;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(220px, 320px) auto auto minmax(160px, 1fr);
}

.template-remover-preset {
  margin: 0;
}

.template-remover-toggle {
  align-items: center;
  display: inline-flex;
  gap: 7px;
  min-height: 34px;
  font-weight: 700;
}

.template-remover-meter,
.template-remover-live-state {
  align-self: center;
  color: var(--muted);
  font-size: 12px;
}

.template-remover-meter[data-state="paused"],
.template-remover-live-state[data-tone="warn"] {
  color: #92400e;
}

.template-remover-meter[data-state="blocked"],
.template-remover-live-state[data-tone="danger"] {
  color: #9f1239;
}

.template-remover-live-state[data-tone="pass"] {
  color: #166534;
}

.template-remover-live-state[data-tone="info"] {
  color: #0f766e;
}

.template-remover-controls .field-row {
  max-width: 380px;
}

.template-remover-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.template-remover-quick-repairs,
.template-remover-advanced-options {
  grid-column: 1 / -1;
}

.template-remover-quick-repairs {
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px;
}

.template-remover-quick-repairs .muted-copy {
  margin: 2px 8px 0 0;
}

.template-remover-mode-guide {
  margin-top: 8px;
}

.template-remover-mode-guide table {
  min-width: 720px;
}

.template-remover-more-repairs {
  min-width: 180px;
}

.template-remover-more-repairs[open] {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.template-remover-error-detail {
  grid-column: 1 / -1;
}

.template-remover-actions--small {
  margin-top: 8px;
}

.template-remover-options-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  padding-top: 10px;
}

.template-remover-options-grid label {
  align-items: center;
  display: flex;
  gap: 8px;
}

.template-remover-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 0.46fr) minmax(0, 0.54fr);
}

.template-remover-panel {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.template-remover-source-panel,
.template-remover-preview-panel {
  align-content: start;
}

.template-remover-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
}

.template-remover-tabs button {
  min-height: 32px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--muted);
  cursor: pointer;
  font-weight: 700;
}

.template-remover-tabs button.active {
  border-color: var(--accent);
  background: var(--soft-accent);
  color: var(--accent-strong);
}

.template-remover-tabs button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.template-remover-tab-panel,
.template-remover-editor-panel {
  min-width: 0;
}

.template-remover textarea,
.template-remover select {
  width: 100%;
}

.template-remover textarea {
  min-height: var(--template-remover-preview-min);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  line-height: 1.45;
  resize: vertical;
}

.template-remover-visual-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 8px 0;
}

.template-remover-colour-swatch {
  width: 28px;
  height: 28px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: var(--swatch-color);
  cursor: pointer;
}

.template-remover-colour-swatch:focus {
  outline: 2px solid rgba(18, 86, 79, 0.28);
  outline-offset: 2px;
}

.template-remover-visual-editor {
  min-height: var(--template-remover-preview-min);
  max-height: 72vh;
  overflow: auto;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  line-height: 1.55;
}

.template-remover-visual-editor:focus {
  outline: 2px solid rgba(18, 86, 79, 0.28);
  outline-offset: 2px;
}

.template-remover-visual-editor img {
  max-width: 100%;
  height: auto;
}

.template-remover-visual-editor img.is-selected {
  outline: 3px solid #0f766e;
  outline-offset: 3px;
}

.template-remover-pane-metrics {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  margin: 8px 0 0;
  padding-top: 8px;
}

.template-remover-preview-shell {
  position: relative;
}

.template-remover-preview-frame {
  width: 100%;
  min-height: var(--template-remover-preview-min);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.template-remover-empty-preview {
  align-items: center;
  display: flex;
  min-height: var(--template-remover-preview-min);
  justify-content: center;
  padding: 18px;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  background: #f8fafc;
  color: var(--muted);
  text-align: center;
}

.template-remover-summary-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  margin: 12px 0;
}

.template-remover-summary-grid div {
  display: grid;
  gap: 3px;
  padding: 10px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
}

.template-remover-summary-grid span {
  color: #64748b;
  font-size: 12px;
}

.template-remover-summary-grid strong {
  font-variant-numeric: tabular-nums;
}

.template-remover-compatibility {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0;
}

.template-remover-compact-list {
  margin: 8px 0 12px;
  padding-left: 18px;
}

.template-remover-repair-events {
  display: grid;
  gap: 8px;
  margin: 8px 0 12px;
}

.template-remover-repair-event {
  display: grid;
  gap: 7px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.template-remover-repair-event-header {
  align-items: baseline;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: space-between;
}

.template-remover-repair-diff {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.template-remover-repair-diff div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.template-remover-repair-diff span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.template-remover-repair-diff code {
  display: block;
  max-height: 92px;
  overflow: auto;
  padding: 6px;
  border-radius: 6px;
  background: #f8fafc;
  color: #1e293b;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.template-remover-removed-text {
  max-height: 220px;
  overflow: auto;
  white-space: pre-wrap;
}

.template-remover-diagnostics {
  display: grid;
  gap: 6px;
  margin: 10px 0 0;
}

.template-remover-diagnostics div {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 10px;
}

.template-remover-diagnostics dt {
  color: var(--muted);
  font-weight: 700;
}

.template-remover-diagnostics dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.template-remover-review-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.45fr);
}

.template-remover-outline {
  max-height: 220px;
  overflow: auto;
  padding-left: 22px;
}

.template-remover-outline li[data-level="h3"] {
  margin-left: 12px;
}

.template-remover-outline li[data-level="h4"] {
  margin-left: 24px;
}

.template-remover-review-blocks {
  display: grid;
  gap: 8px;
  margin: 10px 0 12px;
}

.template-remover-review-block {
  display: grid;
  gap: 7px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.template-remover-review-block p {
  margin: 0;
}

.template-remover-review-choice {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.template-remover-review-choice .is-selected {
  border-color: var(--accent);
  background: var(--soft-accent);
  color: var(--accent-strong);
}

.template-remover-template-picker {
  align-items: end;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(180px, 1fr) auto;
  margin-bottom: 8px;
}

.template-remover-template-picker label {
  grid-column: 1 / -1;
}

.template-remover-section-tabs {
  margin: 0 0 10px;
}

.csv-description-cleaner {
  --csv-preview-min: 260px;
}

.csv-cleaner-workflow ol {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.csv-cleaner-workflow li {
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.csv-cleaner-workflow span,
.csv-cleaner-message,
.csv-column-choice em,
.csv-progress-panel span {
  color: var(--muted);
  font-size: 12px;
}

.csv-drop-zone {
  display: grid;
  place-items: center;
  gap: 4px;
  min-height: 92px;
  margin-top: 10px;
  padding: 16px;
  border: 1px dashed #b6c3d1;
  border-radius: 8px;
  background: #f8fafc;
  text-align: center;
}

.csv-drop-zone[data-dragging="true"],
.csv-drop-zone.is-active {
  border-color: var(--accent);
  background: var(--soft-accent);
}

.csv-cleaner-message {
  margin-top: 10px;
  font-weight: 700;
}

.csv-cleaner-message[data-tone="pass"] {
  color: #166534;
}

.csv-cleaner-message[data-tone="warn"] {
  color: #92400e;
}

.csv-cleaner-message[data-tone="danger"] {
  color: #9f1239;
}

.csv-cleaner-column-grid,
.csv-preview-split {
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.csv-column-list {
  display: grid;
  gap: 7px;
  max-height: 320px;
  overflow: auto;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.csv-column-choice {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-width: 0;
  padding: 7px;
  border-radius: 6px;
}

.csv-column-choice:hover {
  background: #f8fafc;
}

.csv-column-choice span {
  overflow-wrap: anywhere;
  font-weight: 700;
}

.csv-progress-panel {
  display: grid;
  gap: 7px;
  margin: 10px 0;
}

.csv-progress-panel > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.csv-progress-panel progress {
  width: 100%;
}

.csv-preview-table {
  min-width: 980px;
  table-layout: fixed;
}

.csv-preview-table td,
.csv-preview-table th {
  vertical-align: top;
  overflow-wrap: anywhere;
}

.csv-preview-table tbody tr {
  cursor: pointer;
}

.csv-preview-sidepanel {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.csv-preview-sidepanel .template-remover-preview-frame,
.csv-preview-sidepanel .template-remover-empty-preview {
  min-height: var(--csv-preview-min);
}

.csv-preview-sidepanel textarea {
  min-height: 180px;
}

@media (max-width: 980px) {
  .csv-cleaner-column-grid,
  .csv-preview-split {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 980px) {
  .template-remover-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .template-remover-toolbar,
  .template-remover-review-grid,
  .template-remover-template-picker {
    grid-template-columns: minmax(0, 1fr);
  }

  .template-remover textarea,
  .template-remover-preview-frame {
    min-height: 340px;
  }

  .template-remover-empty-preview {
    min-height: 340px;
  }
}

@media (max-width: 900px) {
  .wk_header,
  .wk_issue_card,
  .wk_listing_tools__body {
    flex-direction: column;
  }

  .wk_listing_tools__body {
    align-items: stretch;
  }

  .wk_header_actions,
  .wk_issue_card .button {
    width: 100%;
  }

  .wk_header_actions {
    justify-content: flex-start;
  }
}

@media (max-width: 520px) {
  .listing-assist-command__head,
  .wk_header_actions {
    align-items: stretch;
    flex-direction: column;
  }

  .wk_header_actions > *,
  .wk_header_actions .button {
    width: 100%;
  }
}

.product-workspace-tabs {
  margin-bottom: 14px;
  padding: 4px;
  border: 1px solid #dbe2ea;
  border-radius: 10px;
  background: #ffffff;
}

.product-workspace-tabs a {
  min-height: 32px;
  border-color: transparent;
  background: transparent;
  font-size: 13px;
}

.product-workspace-tabs a.active {
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

.product-workspace-control-card,
.channel-products-hero,
.import-review-hero,
.product-change-hero {
  max-width: 100%;
  overflow: hidden;
}

.product-workspace-control-card .panel-head,
.channel-products-hero .panel-head,
.import-review-hero .panel-head,
.product-change-hero .panel-head {
  align-items: flex-start;
}

.product-workspace-control-card .row-actions,
.channel-products-hero .row-actions,
.import-review-hero .row-actions,
.product-change-hero .row-actions {
  justify-content: flex-end;
}

.product-workspace-empty {
  margin: 0;
  border-top: 1px solid #e1e7ee;
  border-radius: 0 0 8px 8px;
  background: #fbfcfd;
}

.product-workspace-import-table {
  min-width: 980px;
}

.main {
  min-height: 100vh;
  min-width: 0;
  max-width: calc(100vw - 248px);
  overflow-x: hidden;
  margin-left: 248px;
  padding: 24px;
}

.main--with-section-sidebar {
  max-width: calc(100vw - 456px);
  margin-left: 456px;
}

.section-sidebar {
  position: fixed;
  inset: 0 auto 0 248px;
  width: 208px;
  padding: 22px 14px;
  border-right: 1px solid var(--line);
  background: #f7faf9;
  overflow-y: auto;
}

.section-sidebar__eyebrow {
  margin: 0 0 2px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.section-sidebar__title {
  display: block;
  margin-bottom: 16px;
  color: var(--ink);
  font-size: 17px;
}

.section-sidebar__nav {
  display: grid;
  gap: 4px;
}

.section-sidebar__link {
  display: block;
  padding: 9px 10px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: #39424e;
  font-weight: 700;
}

.section-sidebar__link:hover {
  background: var(--soft-accent);
  text-decoration: none;
}

.section-sidebar__link.is-active {
  border-color: #c9ddd9;
  background: #edf7f4;
  color: var(--accent-strong);
  box-shadow: inset 3px 0 0 var(--accent);
}

.section-sidebar__note {
  margin: 18px 2px 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

.commercial-mobile-tabs {
  display: flex;
}

.commercial-tab-select {
  display: none;
  margin: 0 0 14px;
}

.commercial-tab-select label {
  display: grid;
  gap: 4px;
  max-width: 360px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  min-width: 0;
  margin-bottom: 22px;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  line-height: 1.2;
}

h1 {
  font-size: 28px;
}

h2 {
  font-size: 16px;
}

.top-actions,
.action-row,
.form-actions,
.row-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.button,
button {
  min-height: 36px;
  border: 1px solid var(--accent);
  border-radius: 6px;
  padding: 8px 12px;
  background: var(--accent);
  color: #ffffff;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}

.button.secondary,
.row-actions button {
  background: #ffffff;
  color: var(--accent-strong);
  border-color: var(--line);
}

.button.danger,
button.danger {
  border-color: var(--danger);
  background: var(--danger);
}

.button.secondary.active {
  border-color: var(--accent);
  background: var(--soft-accent);
  color: var(--accent-strong);
}

.subtle-button {
  min-height: 32px;
  padding: 6px 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.workbench-shell {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.workbench-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(32, 36, 43, 0.06);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.workbench-pill:hover,
.workbench-pill:focus {
  filter: none;
  text-decoration: none;
  box-shadow: 0 0 0 3px rgba(25, 115, 106, 0.12);
}

.workbench-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #86b79d;
  box-shadow: 0 0 0 3px rgba(134, 183, 157, 0.16);
}

.workbench-pill-quiet {
  border-color: #cfe5d9;
  background: #f6fbf8;
  color: #2f6d4c;
}

.workbench-pill-working {
  border-color: #bfe6e1;
  background: #f0fbfa;
  color: #176b66;
}

.workbench-pill-working .workbench-status-dot {
  background: #2b9b91;
  box-shadow: 0 0 0 3px rgba(43, 155, 145, 0.16);
}

.workbench-pill-busy {
  border-color: #f0d39f;
  background: #fff8eb;
  color: #8a590b;
}

.workbench-pill-busy .workbench-status-dot {
  background: #d89423;
  box-shadow: 0 0 0 3px rgba(216, 148, 35, 0.16);
}

.workbench-pill-scheduled {
  border-color: #d9e4f4;
  background: #f7fbff;
  color: #3f5f86;
}

.workbench-pill-scheduled .workbench-status-dot {
  background: #6b8db8;
  box-shadow: 0 0 0 3px rgba(107, 141, 184, 0.16);
}

.workbench-pill-needs-attention,
.workbench-pill-needs-help {
  border-color: #efd8a8;
  background: #fffaf0;
  color: #7a570f;
}

.workbench-pill-needs-attention .workbench-status-dot,
.workbench-pill-needs-help .workbench-status-dot {
  background: #c58b25;
  box-shadow: 0 0 0 3px rgba(197, 139, 37, 0.14);
}

.workbench-pill-offline {
  border-color: #d7dce2;
  background: #f8f9fb;
  color: #68707d;
}

.workbench-pill-offline .workbench-status-dot {
  background: #9aa5b1;
  box-shadow: 0 0 0 3px rgba(154, 165, 177, 0.16);
}

.workbench-soft-pulse .workbench-status-dot {
  animation: workbench-soft-pulse 1.8s ease-in-out infinite;
}

@keyframes workbench-soft-pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.18);
  }
}

.workbench-popover {
  position: absolute;
  z-index: 40;
  inset: calc(100% + 8px) 0 auto auto;
  width: min(460px, calc(100vw - 32px));
  max-height: min(76vh, 680px);
  overflow: auto;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 16px 40px rgba(32, 36, 43, 0.16);
}

.workbench-counters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin: 0 0 10px;
}

.workbench-counters button {
  min-height: 30px;
  padding: 5px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f8fafb;
  color: #586271;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.workbench-counters button.active,
.workbench-counters button:focus {
  border-color: #bfe6e1;
  background: #f0fbfa;
  color: #176b66;
}

.workbench-counters span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  min-height: 18px;
  margin-left: 4px;
  border-radius: 999px;
  background: rgba(23, 107, 102, 0.1);
  font-size: 10px;
}

.workbench-popover-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.workbench-popover-header strong {
  display: block;
  font-size: 14px;
}

.workbench-popover-header p,
.workbench-empty,
.workbench-task-meta,
.workbench-task-action {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.workbench-icon-button,
.workbench-refresh {
  min-height: 28px;
  border-color: var(--line);
  background: #fff;
  color: var(--muted);
  padding: 4px 8px;
  font-size: 12px;
}

.workbench-icon-button {
  width: 28px;
  border-radius: 999px;
  font-size: 17px;
  line-height: 1;
}

.workbench-task-list {
  display: grid;
  gap: 8px;
  max-width: 100%;
  min-width: 0;
}

.topbar > *,
.panel,
.summary-card,
.settings-summary-card,
.settings-card,
.ops-workbench-card,
.table-wrap,
.grid-scroll,
.app-card,
.app-card-body,
.app-page,
.app-page-content {
  min-width: 0;
  max-width: 100%;
}

.workbench-section {
  display: grid;
  gap: 7px;
}

.workbench-section h3 {
  margin: 4px 0 0;
  color: #4e5865;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.workbench-task {
  position: relative;
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
}

.workbench-task-compact {
  min-height: 0;
}

.workbench-task-teal {
  border-color: #ccebe8;
  background: #f6fcfb;
}

.workbench-task-amber {
  border-color: #f0d39f;
  background: #fff9ef;
}

.workbench-task-needs-attention,
.workbench-task-needs-help {
  border-color: #efd8a8;
  background: #fffaf0;
}

.workbench-task-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.workbench-task-head strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 13px;
}

.workbench-task-head span {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.workbench-task-progress {
  width: 100%;
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: #e9edf1;
}

.workbench-task-progress span {
  display: block;
  height: 100%;
  min-width: 4px;
  border-radius: inherit;
  background: #2b9b91;
  transition: width 240ms ease;
}

.workbench-task-progress--unknown span {
  background: #b7c3cf;
}

.workbench-task-action {
  color: #4e5865;
}

.workbench-task-link {
  justify-self: start;
  font-size: 12px;
  font-weight: 700;
}

.workbench-task-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.workbench-task-control {
  min-height: 26px;
  padding: 4px 8px;
  border-color: #d7dde5;
  background: #ffffff;
  color: #4e5865;
  font-size: 12px;
  font-weight: 700;
}

select.workbench-task-control {
  max-width: 140px;
}

.workbench-popover-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin-top: 11px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-size: 12px;
}

.workbench-technical-link {
  color: var(--muted);
}

@media (max-width: 560px) {
  .workbench-popover {
    position: fixed;
    inset: 56px 12px auto 12px;
    width: auto;
  }

  .workbench-counters {
    grid-template-columns: 1fr;
  }
}

.workbench-popover-footer a {
  font-weight: 700;
}

.workbench-complete-check {
  color: #2f6d4c;
}

@media (prefers-reduced-motion: reduce) {
  .workbench-soft-pulse .workbench-status-dot,
  .workbench-task-progress span {
    animation: none;
    transition: none;
  }
}

.button:hover,
button:hover {
  text-decoration: none;
  filter: brightness(0.97);
}

.messages {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.message {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
}

.version-intro {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  margin-bottom: 16px;
}

.version-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.version-panel {
  display: grid;
  gap: 12px;
}

.compact-list {
  margin: 0;
  padding-left: 18px;
  color: #333942;
}

.compact-list li + li {
  margin-top: 7px;
}

.version-timeline {
  display: grid;
  gap: 12px;
}

.version-entry {
  display: grid;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.version-entry:first-child {
  padding-top: 0;
  border-top: 0;
}

.version-latest {
  margin-bottom: 16px;
  border-color: #bddfd7;
  background: #f7fbfa;
}

.version-annotation {
  margin: 0;
  padding: 9px 11px;
  border-left: 3px solid #b87400;
  border-radius: 4px;
  background: #fff8e8;
  color: #6d4700;
  font-size: 13px;
  line-height: 1.4;
}

.version-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.version-stat {
  display: grid;
  gap: 5px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.version-stat__label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.version-stat strong {
  color: var(--ink);
  font-size: 22px;
  line-height: 1.1;
}

.version-stat__detail {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.version-entry__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.version-entry h3,
.version-entry h4 {
  margin: 0;
}

.version-entry h3 {
  font-size: 17px;
}

.version-entry h4 {
  font-size: 14px;
}

.version-entry__section {
  display: grid;
  gap: 6px;
}

.version-anchor {
  color: var(--muted);
  font-weight: 800;
  text-decoration: none;
}

.version-type {
  display: inline-block;
  margin-right: 4px;
  color: #12564f;
  font-weight: 800;
}

.message.success {
  border-color: #9dcfc5;
  background: var(--soft-accent);
}

.message.error {
  border-color: #e4a09c;
  background: var(--soft-danger);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(130px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.metric,
.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.metric {
  min-height: 88px;
  padding: 14px;
}

.metric span {
  display: block;
  color: var(--muted);
  margin-bottom: 8px;
}

.metric strong {
  font-size: 28px;
}

.metric.danger strong {
  color: var(--danger);
}

.dashboard-welcome {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.9fr);
  gap: 12px;
  align-items: stretch;
  overflow: hidden;
  border-color: #bddfd7;
  background: #f7fbfa;
}

.dashboard-welcome__message {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.dashboard-welcome h2 {
  margin: 0 0 6px;
  font-size: 18px;
}

.dashboard-welcome p {
  max-width: 780px;
  margin: 0;
  color: #3f4a54;
  line-height: 1.55;
}

.dashboard-whats-new {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid rgba(25, 115, 106, 0.18);
  border-radius: 8px;
  background: #ffffff;
}

.dashboard-whats-new p {
  max-width: none;
}

.dashboard-whats-new__age {
  margin: 0 0 3px;
  font-weight: 800;
  color: #12564f;
}

.dashboard-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.dashboard-hero h2,
.dashboard-section h2 {
  margin: 0;
  font-size: 18px;
}

.dashboard-refresh {
  display: grid;
  gap: 4px;
  min-width: 180px;
  color: var(--muted);
  text-align: right;
}

.dashboard-refresh strong,
.attention-count,
.workflow-stage strong,
.reports-status-grid strong {
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.dashboard-section {
  margin-bottom: 16px;
}

.attention-list,
.review-list,
.activity-list,
.channel-health-list {
  display: grid;
  gap: 8px;
}

.attention-row,
.review-row,
.activity-row,
.channel-health-row,
.workflow-stage {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: inherit;
  text-decoration: none;
}

.attention-row,
.review-row {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) minmax(140px, auto);
  gap: 12px;
  align-items: center;
  padding: 12px;
}

.attention-count {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 36px;
  border-radius: 8px;
  background: var(--soft);
  font-size: 20px;
  font-weight: 700;
}

.attention-row strong,
.review-row strong,
.activity-row strong,
.channel-health-row strong,
.workflow-stage span {
  display: block;
}

.attention-row small,
.review-row small,
.activity-row small,
.channel-health-row small,
.workflow-stage small,
.workflow-stage em {
  display: block;
  color: var(--muted);
  font-style: normal;
  line-height: 1.35;
}

.attention-row--red .attention-count {
  color: #8f1d18;
  background: var(--soft-danger);
}

.attention-row--amber .attention-count,
.review-row--amber .attention-count {
  color: #79510b;
  background: #fff3d8;
}

.attention-meta {
  display: grid;
  justify-items: end;
  gap: 2px;
}

.dashboard-clear-state {
  display: grid;
  gap: 4px;
  padding: 14px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: #fbfcfd;
  color: var(--muted);
}

.dashboard-clear-state strong {
  color: var(--ink);
}

.workflow-strip {
  display: grid;
  grid-template-columns: repeat(7, minmax(110px, 1fr));
  gap: 8px;
}

.workflow-stage {
  min-height: 96px;
  padding: 12px;
}

.workflow-stage strong {
  display: block;
  margin: 6px 0;
  font-size: 22px;
}

.dashboard-two-column {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
}

.channel-health-row,
.activity-row {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(80px, auto) minmax(120px, auto);
  gap: 12px;
  align-items: center;
  padding: 11px 12px;
}

.activity-row {
  grid-template-columns: minmax(0, 1fr) minmax(110px, auto);
}

.reports-status-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.reports-status-grid div {
  display: grid;
  gap: 6px;
  min-height: 78px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
}

.reports-status-grid span {
  color: var(--muted);
}

.reports-status-grid strong {
  font-size: 18px;
}

.attention-row:focus-visible,
.review-row:focus-visible,
.activity-row:focus-visible,
.channel-health-row:focus-visible,
.workflow-stage:focus-visible,
.stockhub-login-form input:focus-visible,
.stockhub-login-button:focus-visible,
.stockhub-show-password:focus-visible,
.stockhub-login-link:focus-visible {
  outline: 3px solid rgba(25, 115, 106, 0.35);
  outline-offset: 2px;
}

.stockhub-login-body {
  background: #f3f6f7;
}

.stockhub-login-body #container {
  background: transparent;
  border: 0;
  min-width: 0;
}

.stockhub-login-body #header,
.stockhub-login-body #content h1 {
  display: none;
}

.stockhub-login-body #content {
  padding: 0;
}

.stockhub-login-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
}

.stockhub-login-card {
  width: min(420px, 100%);
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 20px 48px rgba(20, 31, 43, 0.08);
}

.stockhub-login-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  color: var(--ink);
  font-weight: 800;
}

.stockhub-login-mark {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
}

.stockhub-login-card h1 {
  margin: 0 0 6px;
  color: var(--ink);
  font-size: 24px;
}

.stockhub-login-card p {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.5;
}

.stockhub-login-error {
  padding: 10px 12px;
  border: 1px solid #f4b5b2;
  border-radius: 8px;
  background: var(--soft-danger);
  color: #8f1d18 !important;
  font-weight: 700;
}

.stockhub-login-form {
  display: grid;
  gap: 10px;
}

.stockhub-login-form label,
.stockhub-password-row label {
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.stockhub-login-form input {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid #cfd8df;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.stockhub-password-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 6px;
}

.stockhub-show-password {
  border: 0;
  background: transparent;
  color: var(--accent-strong);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.stockhub-login-button {
  min-height: 44px;
  margin-top: 10px;
  border: 1px solid var(--accent);
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.stockhub-login-button:hover {
  background: var(--accent-strong);
}

.stockhub-login-link {
  display: inline-block;
  margin-top: 18px;
  font-weight: 800;
}

@media (max-width: 1180px) {
  .dashboard-welcome {
    grid-template-columns: 1fr;
  }

  .workflow-strip {
    grid-template-columns: repeat(4, minmax(120px, 1fr));
  }

  .dashboard-two-column {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .dashboard-hero,
  .panel-head,
  .attention-row,
  .review-row,
  .channel-health-row {
    align-items: flex-start;
    grid-template-columns: 1fr;
  }

  .dashboard-hero,
  .dashboard-welcome__message,
  .dashboard-whats-new,
  .panel-head {
    flex-direction: column;
  }

  .dashboard-refresh,
  .attention-meta {
    justify-items: start;
    min-width: 0;
    text-align: left;
  }

  .workflow-strip,
  .reports-status-grid {
    grid-template-columns: 1fr;
  }

  .workflow-stage {
    min-height: auto;
  }

  .activity-row {
    grid-template-columns: 1fr;
  }

  .stockhub-login-page {
    padding: 16px;
  }

  .stockhub-login-card {
    padding: 22px;
  }
}

.panel {
  padding: 14px;
  margin-bottom: 16px;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 16px;
}

.detail-grid--compact {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.product-head {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 14px;
}

.product-head p {
  margin: 6px 0 0;
  color: var(--muted);
}

.thumb {
  display: grid;
  place-items: center;
  width: 88px;
  height: 72px;
  border-radius: 8px;
  background: #eef1f1;
  border: 1px solid var(--line);
  color: var(--muted);
  overflow: hidden;
  font-weight: 700;
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.spec-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 10px;
  margin: 0 0 14px;
}

.spec-list div {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.spec-list dt {
  color: var(--muted);
  font-size: 12px;
}

.spec-list dd {
  margin: 4px 0 0;
  font-weight: 650;
}

.stock-panel {
  align-self: start;
}

.stock-number {
  display: block;
  margin: 10px 0 16px;
  font-size: 44px;
  line-height: 1;
}

.toolbar {
  margin-bottom: 14px;
}

.catalog-toolbar {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: var(--panel);
}

.catalog-filter-form {
  display: grid;
  gap: 10px;
}

.search-row {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto auto;
  gap: 8px;
}

.quick-filters,
.bulk-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.quick-filters .button {
  min-height: 30px;
  padding: 5px 8px;
  font-size: 12px;
}

.ops-filter {
  margin: 0 0 12px;
  align-items: end;
}

.filter-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(150px, 1fr));
  gap: 8px;
}

.filter-grid label {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.compact-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 8px;
  margin: 12px 0;
}

.compact-summary-grid article {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px;
  background: var(--soft);
  display: grid;
  gap: 3px;
  min-width: 0;
}

.compact-summary-grid strong {
  font-size: 18px;
}

.bulk-bar {
  justify-content: space-between;
  color: var(--muted);
  font-size: 12px;
}

input,
select,
textarea {
  width: 100%;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 10px;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
}

textarea {
  min-height: 90px;
}

.grid-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 10px 14px;
}

.grid-form p {
  margin: 0;
}

.grid-form label,
.stack-form label {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 12px;
}

.grid-form .form-actions {
  grid-column: 1 / -1;
}

.form-subsection {
  grid-column: 1 / -1;
  display: grid;
  gap: 8px;
  margin-top: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfbfc;
}

.form-panel {
  max-width: 980px;
}

.product-shell-create {
  max-width: 1040px;
}

.product-shell-intake {
  display: grid;
  gap: 9px;
  margin-bottom: 12px;
  padding: 14px;
  border: 1px solid #b8d5d0;
  border-radius: 8px;
  background: var(--soft-accent);
}

.product-shell-intake > label {
  display: grid;
  gap: 2px;
}

.product-shell-intake > label span,
.product-shell-intake small,
.product-shell-intake details label {
  color: var(--muted);
  font-size: 12px;
}

.product-shell-intake textarea {
  width: 100%;
  min-height: 96px;
  resize: vertical;
  background: #fff;
}

.product-shell-intake details summary,
.product-shell-manual-entry > summary {
  color: var(--accent-strong);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}

.product-shell-intake details textarea {
  min-height: 64px;
  margin-top: 5px;
}

.product-shell-intake__action {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
}

.product-shell-manual-entry {
  margin-top: 10px;
}

.product-shell-manual-entry[open] > summary {
  margin-bottom: 10px;
}

.product-shell-canonical-proposal {
  display: grid;
  gap: 8px;
  margin: 12px 0 16px;
  padding: 12px 0;
  border-block: 1px solid var(--line);
}

.product-shell-canonical-proposal .product-shell-prefill-review {
  margin: 0;
}

.listing-staff-outcome {
  border: 1px solid var(--line);
  background: #fff;
  padding: 14px 16px;
}

.listing-staff-outcome--blocked {
  border-color: #b42318;
}

.listing-staff-outcome__header,
.listing-staff-outcome__columns {
  display: grid;
  gap: 12px;
}

.listing-staff-outcome__header {
  grid-template-columns: minmax(180px, .42fr) minmax(0, 1.58fr);
  align-items: start;
}

.listing-staff-outcome__header h2,
.listing-staff-outcome__header p {
  margin: 0;
}

.listing-staff-outcome__header h2 {
  font-size: 1.15rem;
}

.listing-staff-outcome__result {
  min-width: 0;
  text-align: left;
}

.listing-staff-outcome__result p {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: start;
  gap: 2px;
}

.listing-staff-outcome__result strong {
  font-size: 1.05rem;
}

.listing-staff-outcome__result span,
.listing-staff-outcome__result small {
  color: var(--muted);
}

.listing-staff-outcome__result small {
  display: block;
  margin-top: 2px;
}

.listing-staff-outcome__quick-values {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.45;
}

.listing-staff-outcome__quick-values b {
  color: var(--ink);
}

.listing-staff-outcome__blockers {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin-top: 10px;
  padding: 9px 10px;
  background: #fff1f0;
  color: #7a271a;
}

.listing-staff-outcome__columns {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 12px;
}

.listing-staff-outcome__columns > section {
  min-width: 0;
  border-left: 1px solid var(--line);
  padding-left: 12px;
}

.listing-staff-outcome__columns > section:first-child {
  border-left: 0;
  padding-left: 0;
}

.listing-staff-outcome__columns h3 {
  display: flex;
  justify-content: space-between;
  margin: 0 0 5px;
  font-size: .9rem;
}

.listing-staff-outcome__columns p {
  display: grid;
  grid-template-columns: minmax(90px, .8fr) minmax(0, 1.2fr);
  gap: 8px;
  margin: 0;
  padding: 3px 0;
  font-size: .82rem;
}

.listing-staff-outcome__columns p span {
  overflow-wrap: anywhere;
}

.listing-staff-outcome__evidence {
  margin-top: 10px;
}

@media (max-width: 760px) {
  .listing-staff-outcome__header,
  .listing-staff-outcome__columns {
    grid-template-columns: 1fr;
  }

  .listing-staff-outcome__columns > section {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 9px 0 0;
  }

  .listing-staff-outcome__result {
    min-width: 0;
    text-align: left;
  }

  .listing-staff-outcome__result p {
    justify-content: flex-start;
  }
}

.product-shell-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 320px);
  gap: 16px;
  align-items: start;
}

.product-shell-main,
.product-shell-next {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 14px;
}

.product-shell-main h3,
.product-shell-next h3 {
  margin-top: 0;
}

.product-shell-primary-action {
  width: 100%;
  margin-top: 10px;
}

.product-shell-create-progress {
  display: grid;
  gap: 5px;
  margin-top: 6px;
  font-weight: 700;
}

.product-shell-create-progress[hidden] {
  display: none;
}

.product-shell-create-progress__heading {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
}

.product-shell-create-progress__heading > span {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.product-shell-create-progress__track {
  display: block;
  position: relative;
  height: 4px;
  overflow: hidden;
  border-radius: 2px;
  background: var(--line);
}

.product-shell-create-progress__track > span {
  position: absolute;
  inset-block: 0;
  left: 0;
  width: 38%;
  background: var(--primary);
  animation: product-shell-create-progress 1.25s ease-in-out infinite;
}

@keyframes product-shell-create-progress {
  0% { transform: translateX(-105%); }
  55% { transform: translateX(105%); }
  100% { transform: translateX(265%); }
}

@media (prefers-reduced-motion: reduce) {
  .product-shell-create-progress__track > span {
    width: 55%;
    animation: none;
  }
}

.product-shell-assistance-scope {
  display: grid;
  gap: 0.35rem;
  margin: 0.45rem 0;
}

.product-shell-assistance-scope > span {
  display: grid;
  grid-template-columns: minmax(7.5rem, 0.42fr) minmax(0, 1fr);
  gap: 0.55rem;
  font-size: 0.78rem;
  line-height: 1.35;
}

.product-shell-assistance-scope em {
  color: var(--muted);
  font-style: normal;
  font-weight: 700;
}

@media (max-width: 640px) {
  .product-shell-assistance-scope > span {
    grid-template-columns: 1fr;
    gap: 0.05rem;
  }
}

.listing-proposal-impact {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 8px 0 12px;
  border-block: 1px solid var(--line);
}

.workspace-shared-proposal {
  margin: 14px 0 18px;
  padding-inline: 2px;
}

.workspace-shared-proposal .compact-section-head {
  margin-bottom: 2px;
}

.listing-proposal-impact > div {
  min-width: 0;
  padding: 9px 8px;
}

.listing-proposal-impact > div:nth-child(odd) {
  padding-left: 0;
  border-right: 1px solid var(--line);
}

.listing-proposal-impact > div:nth-child(-n + 2) {
  border-bottom: 1px solid var(--line);
}

.listing-proposal-impact span,
.listing-proposal-impact small,
.listing-proposal-delta small {
  display: block;
  color: var(--muted);
  font-size: 11px;
}

.listing-proposal-impact strong {
  display: block;
  margin: 2px 0;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.listing-proposal-work-split {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin: -4px 0 10px;
  padding: 7px 0;
  border-bottom: 1px solid var(--line);
}

.listing-proposal-work-split > span {
  display: grid;
  min-width: 0;
  gap: 1px;
}

.listing-proposal-work-split small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.listing-proposal-work-split strong {
  color: var(--ink);
  font-size: 12px;
}

.listing-proposal-outputs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: -4px 0 9px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.listing-proposal-outputs span {
  min-width: 82px;
}

.listing-proposal-outputs small,
.listing-proposal-channel-values span,
.listing-proposal-channel-values > small,
.product-shell-photo-reminder span,
.product-shell-photo-reminder small {
  display: block;
  color: var(--muted);
  font-size: 11px;
}

.listing-proposal-outputs b,
.listing-proposal-channel-values b {
  display: block;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.listing-proposal-channel-preview {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 14px;
  margin: 0 0 10px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  background: #fff;
}

.listing-proposal-channel-preview__head {
  grid-column: 1 / -1;
}

.listing-proposal-channel-preview > div:not(.listing-proposal-channel-preview__head) {
  min-width: 0;
  padding-top: 7px;
  border-top: 1px solid var(--line);
}

.listing-proposal-channel-preview__description {
  grid-column: 1 / -1;
}

.listing-proposal-channel-preview span,
.listing-proposal-channel-preview small {
  display: block;
  color: var(--muted);
  font-size: 11px;
}

.listing-proposal-channel-preview strong {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.listing-proposal-assist-impact {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 14px;
  margin: -2px 0 10px;
  padding: 8px 10px;
  border-left: 3px solid #0f766e;
  background: #f0fdfa;
  font-size: 12px;
}

.listing-proposal-assist-impact small {
  flex-basis: 100%;
  color: var(--muted);
  font-size: 11px;
}

.listing-proposal-decisions {
  display: grid;
  gap: 0;
  margin: 0 0 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
}

.listing-proposal-decisions__head,
.listing-proposal-decision {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 12px;
  align-items: center;
  padding: 9px 10px;
}

.listing-proposal-decisions__head {
  border-bottom: 1px solid var(--line);
}

.listing-proposal-decisions__head small,
.listing-proposal-decision small {
  display: block;
  color: var(--muted);
  font-size: 11px;
}

.listing-proposal-decisions__head .button {
  grid-column: 2;
  grid-row: 1 / span 2;
}

.listing-proposal-decision + .listing-proposal-decision {
  border-top: 1px solid var(--line);
}

.listing-proposal-decision__comparison {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin: 5px 0;
}

.listing-proposal-decision__comparison > span {
  min-width: 0;
  padding: 5px 6px;
  background: #fff;
  border: 1px solid var(--line);
}

.listing-proposal-decision__comparison b,
.listing-proposal-final em {
  display: block;
  overflow-wrap: anywhere;
  font-size: 11px;
}

.listing-proposal-final em {
  margin-top: 2px;
  color: var(--muted);
  font-style: normal;
  font-weight: 700;
}

.listing-proposal-final--confirmed {
  border-color: #86c5a3 !important;
  background: #f3fbf6 !important;
}

.listing-proposal-final--pending,
.listing-proposal-final--missing {
  border-color: #e4bd77 !important;
  background: #fffaf0 !important;
}

.listing-proposal-applied {
  border-color: #86c5a3;
}

.listing-proposal-applied__value {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.listing-proposal-applied__outputs {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 8px;
  margin-top: 6px;
}

.listing-proposal-applied__outputs > small {
  flex-basis: 100%;
}

.listing-proposal-applied__outputs > span {
  display: inline-flex;
  gap: 4px;
  padding: 4px 6px;
  border: 1px solid #b8dac8;
  background: #f3fbf6;
  font-size: 11px;
}

.listing-proposal-applied__evidence {
  margin-top: 5px;
}

.listing-proposal-decision__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 5px;
}

.listing-proposal-decision__edit {
  grid-column: 1 / -1;
  margin: 2px 0 0;
}

.listing-proposal-decision__edit > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px;
  margin-top: 6px;
}

.listing-proposal-decision--stale {
  opacity: 0.75;
}

.listing-proposal-detail {
  margin: -4px 0 12px;
}

.listing-proposal-detail summary {
  color: var(--accent-strong);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}

.listing-proposal-delta {
  display: grid;
  gap: 0;
  margin-top: 8px;
  border-top: 1px solid var(--line);
}

.listing-proposal-delta__row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}

.listing-proposal-delta__row > span {
  min-width: 0;
}

.listing-proposal-delta__row b {
  display: block;
  font-size: 11px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.listing-proposal-delta__field {
  grid-column: 1 / -1;
}

.listing-proposal-delta__field b {
  font-size: 12px;
}

.listing-proposal-channel-values {
  display: grid;
  gap: 7px;
  padding-top: 9px;
}

.listing-proposal-channel-values p {
  display: grid;
  gap: 2px;
  margin: 0;
}

.product-shell-photo-reminder {
  display: grid;
  grid-template-columns: minmax(70px, auto) minmax(0, 1fr);
  gap: 2px 10px;
  margin: 8px 0 12px;
  padding-block: 8px;
  border-block: 1px solid var(--line);
}

.product-shell-prepared-values {
  display: grid;
  gap: 5px;
  margin: 10px 0 4px;
  padding-top: 9px;
  border-top: 1px solid var(--line);
}

.product-shell-prepared-values dl,
.product-shell-prepared-values dl > div {
  display: grid;
  gap: 4px 8px;
  margin: 0;
}

.product-shell-prepared-values dl > div {
  grid-template-columns: minmax(78px, 0.42fr) minmax(0, 1fr);
  padding: 5px 0;
  border-top: 1px solid var(--line);
  font-size: 12px;
}

.product-shell-prepared-values dl > div:first-child {
  border-top: 0;
}

.product-shell-prepared-values dt {
  color: var(--muted);
  font-weight: 750;
}

.product-shell-prepared-values dd {
  display: grid;
  gap: 1px;
  min-width: 0;
  overflow-wrap: anywhere;
}

.product-shell-prepared-values dd small {
  color: var(--muted);
}

.product-shell-photo-reminder strong {
  text-align: right;
  font-size: 12px;
}

.product-shell-photo-reminder small {
  grid-column: 1 / -1;
}

.listing-proposal-impact--wide {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.listing-proposal-impact--wide > div,
.listing-proposal-impact--wide > div:nth-child(odd),
.listing-proposal-impact--wide > div:nth-child(-n + 2) {
  padding-inline: 10px;
  border-right: 1px solid var(--line);
  border-bottom: 0;
}

.listing-proposal-impact--wide > div:first-child {
  padding-left: 0;
}

.listing-proposal-impact--wide > div:last-child {
  padding-right: 0;
  border-right: 0;
}

.listing-proposal-impact--wide ~ .listing-proposal-detail .listing-proposal-delta__row {
  grid-template-columns: minmax(140px, 1.2fr) repeat(4, minmax(90px, 1fr));
}

.listing-proposal-impact--wide ~ .listing-proposal-detail .listing-proposal-delta__field {
  grid-column: auto;
}

@media (max-width: 700px) {
  .listing-proposal-impact--wide {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .listing-proposal-impact--wide > div,
  .listing-proposal-impact--wide > div:nth-child(odd),
  .listing-proposal-impact--wide > div:nth-child(-n + 2) {
    padding: 9px 8px;
    border-right: 0;
    border-bottom: 0;
  }

  .listing-proposal-impact--wide > div:nth-child(odd) {
    padding-left: 0;
    border-right: 1px solid var(--line);
  }

  .listing-proposal-impact--wide > div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .listing-proposal-impact--wide ~ .listing-proposal-detail .listing-proposal-delta__row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .listing-proposal-impact--wide ~ .listing-proposal-detail .listing-proposal-delta__field {
    grid-column: 1 / -1;
  }

  .listing-proposal-decisions__head,
  .listing-proposal-decision {
    grid-template-columns: minmax(0, 1fr);
  }

  .listing-proposal-decisions__head .button,
  .listing-proposal-decision__edit {
    grid-column: 1;
    grid-row: auto;
  }

  .listing-proposal-decision__actions {
    justify-content: flex-start;
  }

  .listing-proposal-decision__comparison {
    grid-template-columns: 1fr;
  }

  .listing-proposal-channel-preview {
    grid-template-columns: 1fr;
  }
}

.product-shell-fields {
  margin-top: 10px;
}

.product-shell-finish-copy {
  margin: -2px 0 10px;
}

.product-shell-finish-fields {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
}

.product-shell-finish-fields > p {
  margin: 0;
}

.product-shell-prepared-identity {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.product-shell-prepared-identity > summary {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 12px;
  color: var(--accent-strong);
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
}

.product-shell-prepared-identity > summary small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.product-shell-prepared-identity[open] > summary {
  margin-bottom: 8px;
}

.product-shell-model-review {
  display: grid;
  gap: 6px;
  margin-top: 8px;
}

.product-shell-model-review__action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid #b8d8cc;
  border-radius: 6px;
  background: #f3faf7;
}

.product-shell-model-review__action > span {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.product-shell-model-review__action strong {
  color: var(--accent-strong);
  font-size: 13px;
}

.product-shell-model-review__action small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

@media (max-width: 640px) {
  .product-shell-model-review__action {
    align-items: stretch;
    flex-direction: column;
  }
}

.product-shell-fields small,
.product-shell-finish-fields small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.listing-intelligence-channel-choice,
.product-shell-review-channels {
  display: grid;
  gap: 7px;
  margin: 10px 0;
  padding: 0;
  border: 0;
}

.listing-intelligence-channel-choice legend,
.product-shell-review-channels legend {
  padding: 0;
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
}

.listing-intelligence-channel-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.listing-intelligence-channel-options label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--text);
  font-size: 13px;
  font-weight: 750;
}

.listing-intelligence-channel-options input {
  margin: 0;
}

.listing-intelligence-channel-choice small,
.product-shell-review-channels small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.listing-assistance-impact__changes {
  display: grid;
  gap: 1px;
  grid-column: 1 / -1;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--line);
}

.listing-assistance-impact__changes > span {
  display: grid;
  grid-template-columns: minmax(7rem, 0.7fr) minmax(7rem, 1fr) auto minmax(7rem, 1fr) auto;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.6rem;
  background: var(--panel);
}

.listing-assistance-impact__changes small,
.listing-assistance-impact__changes em {
  color: var(--muted);
  font-style: normal;
}

.listing-assistance-impact__changes strong {
  color: var(--accent-strong);
}

.listing-assistance-impact__unsupported {
  grid-column: 1 / -1;
  margin: 0;
}

.listing-preparation-ai-receipt {
  margin: 0;
  padding: 0.55rem 0.7rem;
  border-left: 3px solid var(--accent);
  background: var(--paper);
  font-size: 13px;
  line-height: 1.45;
}

.listing-intelligence-coverage-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 1.1rem;
  margin: 0 0 0.75rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  font-size: 12px;
}

.listing-intelligence-handoff {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 1px;
  margin: 0 0 0.65rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--line);
}

.listing-intelligence-handoff > strong,
.listing-intelligence-handoff > span {
  display: grid;
  align-content: center;
  min-height: 2.7rem;
  padding: 0.4rem 0.65rem;
  background: var(--panel);
}

.listing-intelligence-handoff > strong {
  flex: 1 1 10rem;
  color: var(--accent-strong);
}

.listing-intelligence-handoff > span {
  flex: 1 1 7rem;
  font-size: 12px;
  font-weight: 700;
}

.listing-intelligence-handoff small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
}

.listing-intelligence-coverage-line span {
  display: inline-flex;
  align-items: baseline;
  gap: 0.3rem;
}

.listing-intelligence-coverage-line small,
.listing-intelligence-coverage-line em {
  color: var(--muted);
  font-style: normal;
}

.listing-intelligence-coverage-line em {
  margin-left: auto;
}

@media (max-width: 720px) {
  .listing-assistance-impact__changes > span {
    grid-template-columns: minmax(6rem, 0.8fr) minmax(0, 1fr) auto minmax(0, 1fr);
  }

  .listing-assistance-impact__changes em {
    grid-column: 2 / -1;
  }

  .listing-intelligence-coverage-line em {
    flex-basis: 100%;
    margin-left: 0;
  }
}

.listing-intelligence-ai-choice {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 8px 0;
  padding: 8px 10px;
  border: 1px solid var(--line);
  background: #f8fbfa;
}

.listing-intelligence-ai-choice > label {
  display: flex;
  min-width: 0;
  flex: 1 1 auto;
  align-items: flex-start;
  gap: 8px;
  cursor: pointer;
}

.listing-intelligence-ai-choice input {
  margin-top: 3px;
}

.listing-intelligence-ai-choice label span {
  display: grid;
  min-width: 0;
  gap: 1px;
}

.listing-intelligence-ai-choice label strong {
  font-size: 12px;
}

.listing-intelligence-ai-choice label small {
  color: var(--muted);
  font-size: 11px;
}

@media (max-width: 640px) {
  .listing-intelligence-ai-choice {
    align-items: flex-start;
    flex-wrap: wrap;
  }
}

.required-marker,
.required-label {
  color: #a33616;
  font-weight: 700;
}

.required-label {
  margin-left: 4px;
  font-size: 11px;
}

.form-error-summary {
  margin: 0 0 14px;
  padding: 10px 12px;
  border: 1px solid #efc48d;
  border-radius: 8px;
  background: #fff7e8;
  color: #5f3407;
}

.form-error-summary p {
  margin: 4px 0 0;
}

.errorlist {
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
  color: #8f1d1d;
  font-size: 12px;
  font-weight: 700;
}

table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.table-wrap,
.grid-scroll {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
}

.table-wrap table,
.grid-scroll table {
  min-width: 760px;
  table-layout: auto;
}

th,
td {
  padding: 10px 8px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
  overflow-wrap: anywhere;
}

.table-wrap td,
.grid-scroll td {
  vertical-align: top;
}

.coherence-table {
  min-width: 980px;
}

.coherence-table th,
.coherence-table td {
  white-space: normal;
}

.coherence-table .muted-copy {
  overflow-wrap: anywhere;
}

.app-page,
.app-page-content {
  display: grid;
  gap: 14px;
}

.app-card,
.app-card-body {
  display: grid;
  gap: 12px;
}

.app-table-wrap,
.app-table-scroll {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-inline: contain;
}

.app-wide-table {
  min-width: 860px;
}

.app-diagnostic-table {
  min-width: 920px;
  table-layout: fixed;
}

.app-diagnostic-table th,
.app-diagnostic-table td {
  max-width: 260px;
}

.app-key-value-grid {
  min-width: 0;
}

.app-key-value-grid dt,
.settings-kv dt {
  min-width: 0;
}

.app-key-value-grid dd,
.settings-kv dd {
  min-width: 0;
  max-width: 100%;
}

.app-long-value,
.app-long-value-mono {
  display: inline-block;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.app-long-value.is-clamped,
.app-long-value-mono.is-clamped {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.app-long-value-mono {
  padding: 1px 0;
  color: #2f3e4f;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  line-height: 1.45;
}

.app-truncate {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: bottom;
  white-space: nowrap;
}

.app-truncate-middle {
  display: inline-flex;
  max-width: 100%;
  min-width: 0;
  align-items: baseline;
  gap: 2px;
  vertical-align: bottom;
}

.app-truncate-middle > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-nowrap {
  white-space: nowrap;
}

.app-actions-cell {
  min-width: 118px;
  white-space: normal;
}

.app-actions-menu {
  display: inline-flex;
  flex-wrap: nowrap;
  gap: 6px;
  align-items: center;
}

td.row-actions,
th.row-actions,
td.actions-cell,
th.actions-col,
td.app-actions-cell,
th.app-actions-cell {
  min-width: 118px;
  overflow-wrap: normal;
  word-break: normal;
  white-space: normal;
}

td.app-actions-cell {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 6px;
}

td.row-actions > *,
td.actions-cell > *,
td.app-actions-cell > * {
  flex-shrink: 0;
}

.app-actions-cell form {
  margin: 0;
}

.app-actions-cell > form:not(.stack-form) {
  display: inline-flex;
}

.app-actions-cell .stack-form,
.app-actions-cell .row-actions--wrap,
.app-actions-cell .compact-details {
  flex: 1 0 100%;
}

.app-actions-cell .button,
.app-actions-cell button {
  white-space: nowrap;
}

.app-compact-details {
  max-width: 100%;
}

.app-compact-details > summary {
  list-style-position: inside;
}

.app-compact-details:not([open]) > :not(summary) {
  display: none;
}

.app-compact-details pre,
.app-compact-details code {
  max-width: 100%;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.app-diagnostics-collapsed:not([open]) {
  overflow: hidden;
}

.app-diagnostics-collapsed:not([open]) > :not(summary) {
  display: none;
}

th {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

tr:last-child td {
  border-bottom: 0;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  max-width: 100%;
  min-height: 24px;
  border-radius: 999px;
  padding: 3px 8px;
  background: var(--soft-accent);
  color: var(--accent-strong);
  font-weight: 700;
  white-space: normal;
  text-align: center;
  overflow-wrap: anywhere;
}

.pill.warn {
  background: var(--soft-warn);
  color: var(--warn);
}

.pill.pass {
  background: var(--soft-accent);
  color: var(--accent-strong);
}

.pill.danger {
  background: var(--soft-danger);
  color: var(--danger);
}

.pill.muted {
  background: #eef0f2;
  color: var(--muted);
}

.pill.shopify {
  background: #e8f3ee;
  color: #0f6b58;
}

.danger-text {
  color: var(--danger);
  font-weight: 700;
}

.muted-copy,
.warning-copy {
  margin: 8px 0;
  color: var(--muted);
}

.summary-grid,
.settings-map {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.summary-grid > div,
.settings-map > div {
  display: grid;
  gap: 5px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.settings-map span,
.summary-grid span {
  color: var(--muted);
}

.warning-copy {
  color: var(--danger);
}

.empty {
  color: var(--muted);
  text-align: center;
}

.product-command-panel {
  display: grid;
  gap: 12px;
}

.channel-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

.channel-summary-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.compact-spec-list div {
  grid-template-columns: minmax(120px, 0.6fr) minmax(0, 1fr);
}

.command-head {
  margin-bottom: 0;
}

.status-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.safeguard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  gap: 12px;
}

.safeguard-panel {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfbfc;
}

.safeguard-panel summary {
  cursor: pointer;
  font-weight: 800;
}

.danger-zone {
  border-color: #e4a09c;
  background: var(--soft-danger);
}

.stack-form {
  display: grid;
  gap: 8px;
}

.stack-form p {
  margin: 0;
}

.row-actions.vertical {
  display: grid;
  justify-items: start;
  gap: 6px;
}

.row-actions.vertical form {
  margin: 0;
}

.row-actions.vertical button {
  min-height: 28px;
  padding: 4px 7px;
  font-size: 12px;
}

.product-table {
  min-width: 1320px;
}

.product-table td small,
.product-table th small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.table-thumb {
  display: grid;
  place-items: center;
  width: 58px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #eef1f1;
  color: var(--muted);
  overflow: hidden;
  font-size: 12px;
  font-weight: 800;
}

.table-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pagination {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 12px;
}

.pagination--bottom {
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 12px 14px;
  border-top: 1px solid var(--line);
  background: #fbfcfd;
}

.pagination__summary,
.pagination__controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.pagination__summary {
  color: var(--text-soft);
  font-size: 12px;
}

.pagination__controls a,
.pagination__controls .disabled {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.pagination__controls .disabled {
  color: var(--muted);
  opacity: 0.55;
}

.workspace-form {
  display: block;
}

.workspace-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 16px;
  align-items: start;
}

.workspace-side {
  position: sticky;
  top: 16px;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
}

.workspace-section summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  font-weight: 750;
}

.workspace-section-title {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.workspace-section-title small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}

.section-status {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  padding: 3px 8px;
  background: var(--soft-accent);
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap;
}

.section-status.pass {
  background: #dcf6ea;
  color: #00684a;
}

.section-status.warn {
  background: #fff0ce;
  color: #8a5600;
}

.section-status.danger {
  background: #ffe1e1;
  color: #a21f1f;
}

.section-status.muted {
  background: #eef2f5;
  color: #556170;
}

.workspace-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.workspace-grid.wide {
  grid-template-columns: repeat(3, minmax(180px, 1fr));
}

.field-row {
  display: grid;
  gap: 4px;
}

.field-row label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.field-error {
  color: var(--danger);
  font-size: 12px;
}

.workspace-note {
  margin-top: 10px;
  padding: 10px;
  border: 1px solid #c8d8d6;
  border-radius: 6px;
  background: var(--soft-accent);
  color: var(--accent-strong);
}

.suggestion-box {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fafafa;
}

.suggestion-box label {
  display: block;
}

.gallery-strip {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
  margin-top: 8px;
}

.gallery-tile {
  display: grid;
  gap: 6px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.gallery-tile img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 4px;
  background: #eef1f1;
}

.gallery-tile button {
  min-height: 30px;
  padding: 5px 8px;
  font-size: 12px;
}

.editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 12px 0 4px;
}

.editor-mode-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 10px 0 8px;
}

.editor-mode-row p {
  margin: 0;
}

.editor-tabs {
  display: inline-flex;
  gap: 4px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #f7f8f9;
}

.editor-tabs button {
  min-height: 30px;
  border-color: transparent;
  background: transparent;
  color: var(--muted);
  padding: 5px 8px;
}

.editor-tabs button.active {
  border-color: var(--line);
  background: #ffffff;
  color: var(--accent-strong);
}

.rich-toolbar {
  align-items: center;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 7px 7px 0 0;
  background: #fbfbfc;
}

.rich-toolbar select,
.rich-toolbar input[type="color"] {
  width: auto;
  min-height: 30px;
  padding: 4px 6px;
}

.rich-toolbar input[type="color"] {
  width: 42px;
  padding: 2px;
}

.rich-toolbar label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.rich-toolbar-advanced {
  flex-basis: 100%;
  margin-top: 2px;
}

.rich-toolbar-advanced > summary {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.rich-toolbar-advanced[open] > summary {
  color: var(--accent-strong);
}

.rich-toolbar-advanced__controls {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.editor-toolbar button {
  min-height: 30px;
  padding: 5px 8px;
  background: #fff;
  color: var(--accent-strong);
  border-color: var(--line);
}

.rich-editor {
  min-height: 320px;
  padding: 14px;
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 7px 7px;
  background: #ffffff;
  overflow: auto;
}

.description-editor .rich-editor {
  min-height: 220px;
  max-height: 360px;
}

.description-editor .description-html-source {
  min-height: 220px;
  max-height: 360px;
  overflow: auto;
}

.rich-editor:focus {
  outline: 2px solid #b8d9d3;
  outline-offset: 0;
}

.html-source-panel {
  display: none;
}

.description-html-source {
  min-height: 320px;
  max-height: 360px;
  border-radius: 0 0 7px 7px;
  font-family: Consolas, "Courier New", monospace;
}

.description-editor.html-mode .rich-editor {
  display: none;
}

.description-editor.html-mode .html-source-panel {
  display: block;
}

.description-editor {
  margin-bottom: 12px;
}

.description-expanded-dialog {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0;
  width: min(1100px, calc(100vw - 32px));
}

.description-expanded-dialog::backdrop {
  background: rgba(15, 23, 42, 0.42);
}

.description-expanded-dialog__panel {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.description-expanded-dialog .rich-editor {
  min-height: 56vh;
  max-height: 62vh;
}

.description-expanded-dialog .description-html-source {
  min-height: 56vh;
  max-height: 62vh;
}

.description-expanded-dialog.html-mode .description-expanded-visual {
  display: none;
}

.description-expanded-dialog.html-mode .description-expanded-source-panel {
  display: block;
}

.description-expanded-actions {
  justify-content: flex-end;
}

.description-layer-heading--core {
  margin-bottom: 6px;
}

.channel-description-system {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbf9;
}

.channel-description-system--ebay-template {
  margin-bottom: 0;
  background: #f8fbff;
}

.description-layer-heading {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.description-layer-heading h3 {
  margin: 0 0 3px;
}

.description-template-grid {
  grid-template-columns: minmax(220px, 1.25fr) minmax(160px, 0.8fr) minmax(160px, 0.7fr);
}

.workspace-section--ebay_template .description-template-grid {
  align-items: end;
}

.workspace-section--ebay_template .description-layer-heading {
  padding: 8px 10px;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  background: #fff;
}

.workspace-section--ebay_template .channel-description-previews details {
  margin: 0;
}

.workspace-section--ebay_template .channel-description-preview summary {
  font-weight: 850;
}

.description-preview-actions .action-row {
  margin: 0;
}

.compact-meta {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.description-override-panel textarea {
  min-height: 120px;
  border-radius: 7px;
}

.channel-description-previews {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
}

.description-preview-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 12px;
}

.channel-description-frame {
  max-height: 360px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
}

.channel-description-frame--mobile {
  max-width: 390px;
  max-height: 300px;
  margin-top: 8px;
}

.channel-description-frame--shopify {
  max-height: 260px;
}

.danger-text {
  color: var(--danger);
  font-weight: 700;
}

.snippet-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.checklist {
  display: grid;
  gap: 6px;
  padding: 0;
  margin: 12px 0;
  list-style: none;
}

.checklist li {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.checklist span {
  font-size: 12px;
  font-weight: 800;
}

.checklist .pass span {
  color: var(--accent-strong);
}

.checklist .warning span {
  color: var(--warn);
}

.checklist .fail span {
  color: var(--danger);
}

.listing-preview {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}

.workspace-section--preview .listing-preview {
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 12px;
  margin-bottom: 10px;
}

.workspace-section--preview p {
  margin: 0 0 6px;
}

.workspace-section--export .workspace-section-body > .subtle {
  margin: 0;
}

.workspace-section--history .secondary-panel-body {
  gap: 12px;
  padding: 0;
}

.workspace-section--history h3 {
  margin: 0 0 8px;
  font-size: 14px;
}

.workspace-section--history table {
  margin: 0;
}

.workspace-section--history .history-panel {
  display: grid;
  gap: 8px;
}

.workspace-section--history .history-panel .compact-section-head {
  align-items: center;
  margin: 0;
}

.history-load-state {
  grid-column: 1 / -1;
  margin: 0;
}

.preview-photo {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #eef1f1;
  overflow: hidden;
  color: var(--muted);
}

.preview-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.export-summary {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fafafa;
}

.export-summary p {
  margin: 0 0 6px;
}

@media (max-width: 1040px) {
  .sidebar {
    position: static;
    width: auto;
    padding: 12px 14px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .sidebar-mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .sidebar-mobile-header .brand {
    margin-bottom: 0;
  }

  .sidebar-toggle {
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #ffffff;
    color: var(--ink);
    cursor: pointer;
    font: inherit;
    font-size: 20px;
    line-height: 1;
  }

  .sidebar-toggle:hover,
  .sidebar-toggle:focus-visible {
    border-color: var(--accent);
    background: var(--soft-accent);
    color: var(--accent-strong);
  }

  .sidebar-navigation {
    display: none;
    margin-top: 12px;
  }

  .sidebar.is-mobile-open .sidebar-navigation {
    display: block;
  }

  nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .main {
    margin-left: 0;
    max-width: 100vw;
  }

  .main--with-section-sidebar {
    margin-left: 0;
    max-width: 100vw;
  }

  .section-sidebar {
    display: none;
  }

  .commercial-mobile-tabs {
    display: none;
  }

  .commercial-tab-select {
    display: block;
  }

  .commercial-cockpit-grid,
  .commercial-visual-row {
    grid-template-columns: 1fr;
  }

  .commercial-visual-row__metric {
    text-align: left;
  }

  .metric-grid,
  .split,
  .detail-grid,
  .workspace-layout,
  .listing-preview {
    grid-template-columns: 1fr;
  }

  .search-row,
  .filter-grid,
  .safeguard-grid,
  .grid-form,
  .spec-list,
  .product-shell-layout,
  .workspace-grid,
  .workspace-grid.wide,
  .rich-toolbar {
    grid-template-columns: 1fr;
  }

  .workspace-side {
    position: static;
    max-height: none;
  }
}

@media (max-width: 640px) {
  .main {
    padding: 16px;
    max-width: 100vw;
  }

  .topbar {
    display: grid;
  }

  nav {
    grid-template-columns: 1fr 1fr;
  }

  table {
    min-width: 720px;
  }

  .panel {
    overflow-x: auto;
  }
}

.workspace-action-bar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.catalog-search-field {
  min-width: 260px;
}

.advanced-filter-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.advanced-filter-panel summary {
  cursor: pointer;
  padding: 10px 12px;
  color: var(--accent-strong);
  font-weight: 800;
}

.advanced-filter-panel .filter-grid {
  padding: 0 12px 12px;
}

.template-chip {
  display: inline-flex;
  max-width: 180px;
  min-height: 28px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 4px 8px;
  background: #ffffff;
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 700;
}

.template-chip.muted {
  color: var(--muted);
  background: #f4f5f6;
}

.workspace-action-bar {
  position: sticky;
  top: 0;
  z-index: 5;
  align-items: center;
  margin-top: -8px;
  box-shadow: 0 8px 18px rgba(24, 32, 38, 0.06);
}

.workspace-layout-edit-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border-color: #b9d8d0;
  background: #f4fbf8;
}

.workspace-layout-edit-bar[hidden] {
  display: none;
}

.workspace-layout-edit-bar h2,
.workspace-layout-edit-bar p {
  margin: 0;
}

.workspace-layout-edit-bar__controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}

.workspace-layout-edit-bar__controls label {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.layout-section-controls {
  display: none;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin-left: auto;
  padding: 4px 0;
}

.layout-edit-mode .layout-section-controls {
  display: inline-flex;
}

.layout-section-controls[hidden] {
  display: none;
}

.layout-section-controls__label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.layout-section-controls .button.active {
  border-color: #0f766e;
  background: #e7f5f0;
  color: #0f513f;
}

.layout-edit-mode [data-layout-section-key] {
  outline: 1px dashed #9fc9c0;
  outline-offset: 2px;
}

.layout-section-is-collapsed:not(details) {
  min-height: 44px;
}

.layout-section-is-collapsed:not(details) > :not(.layout-section-controls) {
  display: none;
}

.layout-section-is-collapsed:not(details)::after {
  content: attr(data-layout-label) " collapsed";
  color: var(--muted);
  display: block;
  font-size: 12px;
  font-weight: 800;
  padding: 4px 0;
}

.specifics-groups {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.specifics-group {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.specifics-group summary {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  cursor: pointer;
  font-weight: 850;
}

.specifics-group > p {
  margin: 0;
  padding: 0 12px 8px;
}

.specifics-group .workspace-grid {
  margin-top: 0;
  padding: 0 12px 12px;
}

.required-field {
  padding: 8px;
  border: 1px solid #f0d199;
  border-radius: 7px;
  background: #fffaf0;
}

@media (max-width: 1040px) {
  .workspace-action-bar {
    display: grid;
  }

}

/* Products page 2026 operations UI */
:root {
  --surface-raised: #ffffff;
  --surface-subtle: #f8fafb;
  --text-soft: #5f6976;
  --status-live-bg: #e7f6ef;
  --status-live-text: #176244;
  --status-draft-bg: #fff5df;
  --status-draft-text: #835500;
  --status-error-bg: #fdebea;
  --status-error-text: #aa2725;
  --status-muted-bg: #eef1f4;
  --status-muted-text: #5f6976;
  --shadow-low: 0 10px 24px rgba(20, 30, 40, 0.06);
}

.catalog-page {
  display: grid;
  gap: 16px;
}

.catalog-toolbar {
  display: grid;
  gap: 16px;
  padding: 18px;
  box-shadow: var(--shadow-low);
}

.catalog-toolbar__top,
.catalog-toolbar__actions,
.mode-badges,
.catalog-search-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.catalog-toolbar__top {
  justify-content: space-between;
  align-items: flex-start;
}

.catalog-toolbar__actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.catalog-search-grid {
  display: grid;
  grid-template-columns: minmax(180px, 230px) minmax(150px, 190px) minmax(320px, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.catalog-search-field input {
  min-height: 40px;
}

.quick-filter-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-subtle);
}

.quick-filter-chip {
  min-height: 30px;
  border-color: var(--line);
  border-radius: 7px;
  padding: 5px 10px;
  background: #ffffff;
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 750;
}

.quick-filter-chip.active {
  border-color: var(--accent);
  background: var(--soft-accent);
}

.active-filter-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin-top: 8px;
}

.active-filter-label {
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 750;
}

.active-filter-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  gap: 6px;
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 750;
}

.active-filter-chip span {
  color: var(--muted);
}

.active-filter-chip--static {
  color: var(--text);
  background: var(--surface-subtle);
  cursor: default;
}

.result-strip {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  color: var(--text-soft);
  font-size: 12px;
}

.product-table-card {
  padding: 0;
  max-width: 100%;
  overflow: hidden;
  box-shadow: var(--shadow-low);
}

.table-scroll {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
}

.ops-product-table {
  min-width: 1180px;
  table-layout: fixed;
}

.ops-product-table col[hidden],
.ops-product-table col[data-optional-column][hidden] {
  display: none;
  width: 0 !important;
}

.ops-product-table th,
.ops-product-table td {
  padding: 12px 10px;
  vertical-align: top;
  overflow-wrap: normal;
}

.ops-product-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--surface-raised);
  color: #586171;
  font-size: 11px;
  letter-spacing: 0;
  text-transform: uppercase;
}

.ops-product-table tbody tr {
  background: #ffffff;
}

.ops-product-table tbody tr:hover {
  background: #fbfcfd;
}

.product-main {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.product-title {
  display: -webkit-box;
  overflow: hidden;
  color: var(--accent-strong);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.28;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.product-meta-line,
.row-status-line,
.channel-state,
.row-action-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.product-meta-line span {
  color: var(--text-soft);
  font-size: 12px;
}

.product-meta-line span + span::before {
  content: "/";
  margin-right: 6px;
  color: #9aa3ad;
}

.row-status-line small,
.channel-state small,
.ops-product-table td small {
  color: var(--text-soft);
  font-size: 11px;
  line-height: 1.35;
}

.product-thumb {
  display: grid;
  place-items: center;
  width: 58px;
  height: 50px;
  border: 1px solid #d8dee5;
  border-radius: 7px;
  background: linear-gradient(180deg, #ffffff, #f1f4f6);
  overflow: hidden;
}

.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.thumb-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  padding: 5px;
  color: #76808c;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
}

.is-hidden {
  display: none !important;
}

.sku-code {
  display: block;
  color: #222a33;
  font-size: 13px;
  line-height: 1.25;
}

.stock-count {
  display: inline-flex;
  min-width: 28px;
  min-height: 24px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--soft-accent);
  color: var(--accent-strong);
  font-weight: 800;
}

.stock-count.warn {
  background: var(--soft-warn);
  color: var(--warn);
}

.stock-count.danger {
  background: var(--soft-danger);
  color: var(--danger);
}

.status-chip {
  display: inline-flex;
  max-width: 100%;
  min-height: 23px;
  align-items: center;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 3px 8px;
  background: var(--status-muted-bg);
  color: var(--status-muted-text);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  white-space: normal;
}

.status-chip.pass,
.status-chip--live {
  border-color: #bce4d0;
  background: var(--status-live-bg);
  color: var(--status-live-text);
}

.status-chip.warn,
.status-chip--sandbox,
.status-chip--mock {
  border-color: #f2d69d;
  background: var(--status-draft-bg);
  color: var(--status-draft-text);
}

.status-chip.danger {
  border-color: #efbab7;
  background: var(--status-error-bg);
  color: var(--status-error-text);
}

.status-chip.muted {
  border-color: #d9dee5;
  background: var(--status-muted-bg);
  color: var(--status-muted-text);
}

.template-chip {
  display: inline-flex;
  max-width: 100%;
  min-height: 24px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 3px 7px;
  background: #ffffff;
  color: var(--accent-strong);
  font-size: 11px;
  font-weight: 750;
}

.template-chip.muted {
  color: var(--text-soft);
  background: #f4f6f8;
}

.row-action-menu {
  align-items: flex-start;
}

.action-link {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 4px 8px;
  background: #ffffff;
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 750;
}

.action-link.primary {
  border-color: #b9d9d4;
  background: var(--soft-accent);
}

.more-actions {
  position: relative;
}

.more-actions summary {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 4px 8px;
  background: #ffffff;
  color: var(--text-soft);
  cursor: pointer;
  font-size: 12px;
  font-weight: 750;
  list-style: none;
}

.more-actions summary::-webkit-details-marker {
  display: none;
}

.more-actions div {
  position: absolute;
  right: 0;
  z-index: 4;
  display: grid;
  min-width: 160px;
  margin-top: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 36px rgba(20, 30, 40, 0.14);
}

.more-actions a {
  padding: 9px 10px;
  color: #27313c;
  font-size: 13px;
}

.more-actions a:hover {
  background: var(--surface-subtle);
  text-decoration: none;
}

.column-settings {
  position: relative;
}

.column-settings summary {
  list-style: none;
}

.column-settings > summary.button {
  display: inline-flex;
  align-items: center;
}

.column-settings summary::-webkit-details-marker {
  display: none;
}

.column-settings__panel {
  position: absolute;
  right: 0;
  z-index: 10;
  width: min(520px, calc(100vw - 40px));
  max-height: min(72vh, 680px);
  margin-top: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 24px 48px rgba(20, 30, 40, 0.16);
  overflow-y: auto;
}

.column-settings__head,
.density-control,
.column-settings__row,
.column-settings__buttons {
  display: flex;
  align-items: center;
  gap: 8px;
}

.column-settings__head {
  justify-content: space-between;
  margin-bottom: 10px;
}

.column-settings__head small {
  display: block;
  color: var(--text-soft);
  font-size: 11px;
}

.density-control {
  justify-content: space-between;
  margin-bottom: 10px;
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 750;
}

.density-control select {
  width: 160px;
}

.column-settings__list {
  display: grid;
  gap: 6px;
}

.column-settings__row {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) auto minmax(105px, auto);
  padding: 7px;
  border: 1px solid #edf0f3;
  border-radius: 8px;
  background: #fbfcfd;
}

.column-settings__row label {
  margin: 0;
  color: #343b45;
  font-size: 12px;
  font-weight: 750;
}

.column-settings__row input[type="number"] {
  width: 64px;
  min-height: 28px;
  padding: 4px 6px;
}

.column-settings__buttons button,
.compact-button {
  min-height: 28px;
  border-color: var(--line);
  padding: 4px 7px;
  background: #ffffff;
  color: var(--accent-strong);
  font-size: 11px;
}

button:disabled,
.button[disabled],
.button.disabled,
.column-settings__buttons button:disabled {
  border-color: #dce1e6;
  background: #f1f3f5;
  color: #8a929c;
  cursor: not-allowed;
  filter: none;
}

[data-density="compact"] .ops-product-table th,
[data-density="compact"] .ops-product-table td {
  padding-top: 7px;
  padding-bottom: 7px;
}

[data-density="compact"] .product-title {
  -webkit-line-clamp: 2;
}

@media (max-width: 1180px) {
  .catalog-toolbar__top,
  .catalog-search-grid {
    grid-template-columns: 1fr;
  }

  .catalog-toolbar__top {
    display: grid;
  }

  .catalog-toolbar__actions,
  .catalog-search-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  .catalog-toolbar {
    padding: 14px;
  }

  .quick-filter-strip {
    flex-wrap: nowrap;
    overflow-x: auto;
  }

  .result-strip {
    display: grid;
  }

  .column-settings__panel {
    right: auto;
    left: 0;
  }
}

/* Listing workspace usability pass */
:root {
  --surface-raised: #ffffff;
  --surface-subtle: #f8fafb;
  --text-soft: #5f6976;
  --status-live-bg: #e7f6ef;
  --status-live-text: #176244;
  --status-draft-bg: #fff5df;
  --status-draft-text: #835500;
  --status-error-bg: #fdebea;
  --status-error-text: #aa2725;
  --status-muted-bg: #eef1f4;
  --status-muted-text: #5f6976;
  --shadow-low: 0 10px 24px rgba(20, 30, 40, 0.06);
}

.status-chip {
  display: inline-flex;
  max-width: 100%;
  min-height: 23px;
  align-items: center;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 3px 8px;
  background: var(--status-muted-bg);
  color: var(--status-muted-text);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  white-space: normal;
}

.status-chip.pass,
.status-chip--live {
  border-color: #bce4d0;
  background: var(--status-live-bg);
  color: var(--status-live-text);
}

.status-chip.warn,
.status-chip--sandbox,
.status-chip--mock {
  border-color: #f2d69d;
  background: var(--status-draft-bg);
  color: var(--status-draft-text);
}

.status-chip.danger {
  border-color: #efbab7;
  background: var(--status-error-bg);
  color: var(--status-error-text);
}

.status-chip.muted {
  border-color: #d9dee5;
  background: var(--status-muted-bg);
  color: var(--status-muted-text);
}

.workspace-command {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  margin-bottom: 10px;
  box-shadow: var(--shadow-low, 0 10px 24px rgba(20, 30, 40, 0.06));
}

.workspace-command__media {
  display: grid;
  place-items: center;
  width: 74px;
  height: 62px;
  border: 1px solid #d8dee5;
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, #f1f4f6);
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  overflow: hidden;
}

.workspace-command__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.workspace-command__summary {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.workspace-command__summary h2 {
  max-width: 980px;
  overflow: hidden;
  color: #18222d;
  font-size: 20px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workspace-command__chips,
.workspace-blockers,
.workspace-command__actions,
.workspace-action-bar__meta,
.compact-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
}

.workspace-blockers strong {
  font-size: 12px;
}

.workspace-command__actions {
  justify-content: flex-end;
  min-width: 210px;
}

.save-state {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 9px;
  background: #ffffff;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.workspace-action-bar--compact {
  position: sticky;
  top: 0;
  z-index: 8;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  margin-bottom: 12px;
  box-shadow: 0 10px 20px rgba(20, 30, 40, 0.08);
}

.workspace-layout--tight {
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 12px;
}

.workspace-side--compact {
  top: 58px;
  padding: 12px;
}

.workspace-side--compact h2 {
  font-size: 14px;
}

.workspace-section--compact {
  padding: 0;
  margin-bottom: 10px;
  overflow: visible;
}

.workspace-section--compact[data-section-state="complete"]:not([open]) {
  border-color: #d7ebe3;
  background: #fbfefd;
}

.workspace-section--compact[data-section-state="quiet"]:not([open]) {
  background: #fbfcfd;
}

.workspace-section--compact[data-section-state="complete"]:not([open]) > summary,
.workspace-section--compact[data-section-state="quiet"]:not([open]) > summary {
  color: #334155;
}

.workspace-section--compact[data-section-state="complete"]:not([open]) .workspace-section-title small,
.workspace-section--compact[data-section-state="quiet"]:not([open]) .workspace-section-title small {
  color: #64748b;
}

.workspace-section--compact > summary {
  min-height: 42px;
  padding: 9px 12px;
}

.workspace-section-body {
  display: grid;
  gap: 10px;
  padding: 0 12px 12px;
}

.workspace-section-body .workspace-grid {
  gap: 8px;
  margin-top: 0;
}

.workspace-section-body .workspace-grid.wide {
  grid-template-columns: repeat(3, minmax(150px, 1fr));
}

.workspace-section-body .field-row {
  gap: 3px;
}

.workspace-section-body input,
.workspace-section-body select,
.workspace-section-body textarea {
  min-height: 34px;
}

.compact-button {
  min-height: 30px;
  padding: 5px 9px;
  font-size: 12px;
}

.compact-button.is-active {
  border-color: var(--accent);
  background: var(--soft-accent);
  color: var(--accent-strong);
}

.compact-button [data-specific-filter-count],
.compact-button [data-validation-filter-count] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  margin-left: 4px;
  padding: 0 5px;
  border-radius: 999px;
  background: #eef3f6;
  color: var(--text-soft);
  font-size: 11px;
  font-weight: 850;
  line-height: 1;
}

.compact-button.is-active [data-specific-filter-count],
.compact-button.is-active [data-validation-filter-count] {
  background: #d7f0e8;
  color: var(--accent-strong);
}

.compact-note,
.workspace-note.compact-note {
  margin-top: 0;
  padding: 8px;
  font-size: 12px;
}

.field-help-disclosure {
  margin-top: 2px;
}

.field-help-disclosure summary {
  color: var(--accent-strong);
  cursor: pointer;
  font-size: 11px;
  font-weight: 850;
}

.field-help-disclosure small {
  display: block;
  margin-top: 3px;
  color: var(--text-soft);
}

.policy-summary-grid {
  display: grid;
  gap: 8px;
  width: 100%;
}

.policy-summary-row {
  display: grid;
  grid-template-columns: minmax(120px, 0.42fr) minmax(180px, 1fr) auto;
  gap: 6px 10px;
  align-items: center;
  width: 100%;
}

.policy-summary-row small,
.policy-summary-row details {
  grid-column: 2 / -1;
}

.policy-profile-disclosure {
  width: 100%;
}

.policy-workspace-panel {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fbfcfd;
}

.policy-source-row,
.policy-source-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 10px;
}

.policy-source-controls > .field-row {
  flex: 1 1 260px;
  margin: 0;
}

.policy-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.policy-card {
  display: grid;
  gap: 7px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #fff;
}

.policy-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
}

.policy-card__selector {
  margin: 4px 0 0;
}

.policy-technical-disclosure {
  justify-self: start;
}

.logistics-grid {
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

@media (max-width: 980px) {
  .policy-card-grid {
    grid-template-columns: 1fr;
  }
}

.source-blank-note {
  display: block;
  margin-top: 3px;
  color: var(--text-soft);
  font-size: 11px;
  line-height: 1.35;
}

.info-disclosure {
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fbfcfd;
}

.info-disclosure summary {
  cursor: pointer;
  padding: 7px 9px;
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 850;
}

.info-disclosure p {
  margin: 0;
  padding: 0 9px 9px;
  color: var(--muted);
  font-size: 12px;
}

.compact-help-disclosure {
  margin: 0 0 8px;
  background: #fff;
}

.compact-help-disclosure summary {
  padding: 5px 8px;
}

.photo-dropzone {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 86px;
  border: 1px dashed #aebbc8;
  border-radius: 9px;
  background: #f9fbfc;
  color: var(--muted);
  text-align: center;
}

.photo-dropzone.is-dragging {
  border-color: var(--accent);
  background: var(--soft-accent);
}

.photo-dropzone input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.photo-dropzone strong {
  color: #24313d;
}

.photo-dropzone span {
  font-size: 12px;
}

.compact-section-head {
  justify-content: space-between;
  gap: 10px;
}

.compact-section-head h3 {
  margin: 0;
  font-size: 14px;
}

.suggestion-box--compact {
  gap: 8px;
  margin-top: 0;
  padding: 9px;
  border-radius: 8px;
  background: #ffffff;
}

.suggestion-box--folded summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
  font-weight: 850;
}

.specifics-overview {
  display: grid;
  grid-template-columns: minmax(220px, 1.2fr) minmax(240px, 0.9fr) minmax(0, 1.5fr) auto;
  align-items: end;
  gap: 8px 10px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
}

.specifics-overview--editor {
  position: sticky;
  top: 46px;
  z-index: 4;
  background: rgba(251, 252, 253, 0.96);
  backdrop-filter: blur(5px);
}

.specifics-editor-summary,
.specifics-editor-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.specifics-editor-summary strong {
  color: #142129;
  font-size: 14px;
}

.specifics-global-search {
  display: grid;
  gap: 3px;
  min-width: 0;
  color: var(--text-soft);
  font-size: 11px;
  font-weight: 850;
}

.specifics-global-search input {
  min-height: 32px;
  border-radius: 7px;
}

.specifics-overview-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 4px 8px;
  border: 1px solid #d8e2ea;
  border-radius: 999px;
  background: #ffffff;
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 750;
}

.specifics-overview-chip strong {
  color: #25313c;
}

.specifics-overview-chip--missing {
  border-color: #f3c4c4;
  background: #fff4f4;
}

.specifics-overview-chip--complete {
  border-color: #bce9d2;
  background: #f3fbf7;
}

.specifics-quick-filters {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}

.specifics-more-filters {
  position: relative;
  min-width: 0;
}

.specifics-more-filters > summary {
  list-style: none;
  cursor: pointer;
}

.specifics-more-filters > summary::-webkit-details-marker {
  display: none;
}

.specifics-more-filter-menu {
  position: absolute;
  right: 0;
  z-index: 8;
  display: grid;
  gap: 5px;
  min-width: 170px;
  margin-top: 5px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
}

.specifics-more-filter-menu .compact-button {
  justify-content: space-between;
  width: 100%;
}

.specifics-filter-status {
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 750;
}

.specifics-compact-note {
  justify-self: end;
  min-width: 0;
  max-width: 100%;
  color: var(--text-soft);
  font-size: 12px;
}

.specifics-compact-note summary {
  cursor: pointer;
  font-weight: 850;
  color: var(--accent-strong);
}

.specifics-compact-note p {
  margin: 4px 0;
}

.specifics-save-reminder {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  min-width: 0;
  padding: 4px 6px;
  border: 1px solid #f0d89b;
  border-radius: 8px;
  background: #fff9e8;
  color: #765200;
  font-size: 11px;
  font-weight: 850;
}

.specifics-save-reminder[hidden] {
  display: none;
}

.channel-lifecycle-panel {
  display: grid;
  gap: 10px;
}

.lifecycle-summary-grid {
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.compact-inline-field {
  display: inline-grid;
  gap: 3px;
  min-width: 150px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.compact-inline-field select,
.compact-inline-field input {
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 5px 8px;
  background: #ffffff;
  color: var(--ink);
  font-size: 13px;
  font-weight: 650;
  text-transform: none;
}

.inline-relink-form {
  align-items: center;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.inline-relink-form input {
  max-width: 180px;
  min-width: 130px;
}

.specifics-support-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 8px;
  min-width: 0;
}

.specifics-support-card {
  min-width: 0;
  margin: 0;
}

.specifics-support-card > summary {
  min-height: 34px;
  padding: 7px 10px;
  border-radius: 8px;
}

.source-evidence-disclosure .app-table-scroll {
  margin-top: 6px;
}

.suggestion-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 6px;
}

.suggestion-row {
  display: grid;
  grid-template-columns: auto minmax(80px, 0.8fr) minmax(110px, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-height: 34px;
  padding: 6px 7px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fbfcfd;
}

.suggestion-row input,
.export-confirm-row input,
.specific-field--multi input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
}

.suggestion-row span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.suggestion-row strong {
  font-size: 12px;
}

.suggestion-row em {
  color: var(--warn);
  font-size: 11px;
  font-style: normal;
  font-weight: 850;
}

.specifics-groups--compact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  align-items: start;
  gap: 8px;
  border-radius: 9px;
  min-width: 0;
}

.specifics-groups--compact .compact-specifics {
  align-self: start;
  min-width: 0;
  border: 1px solid #e5edf2;
  border-radius: 8px;
  background: #ffffff;
}

.specifics-groups--compact .specifics-group--missing {
  border-color: #f1c6c6;
  grid-column: 1 / -1;
  background: linear-gradient(90deg, #fff8f2 0, #ffffff 18%);
}

.specifics-groups--compact .specifics-group--complete {
  border-color: #e5edf2;
  background: #ffffff;
}

.compact-specifics > summary {
  min-height: 34px;
  padding: 7px 10px;
  background: #fbfcfd;
}

.specifics-groups--compact .compact-specifics:not([open]) > summary {
  min-height: 40px;
}

.specifics-group-body {
  display: grid;
  gap: 7px;
  padding: 0 10px 10px;
}

.specifics-group-note {
  margin: 0;
}

.specifics-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 4px;
  align-items: start;
}

.specific-field {
  display: block;
  min-width: 0;
  padding: 0;
  border: 1px solid #edf0f3;
  border-radius: 5px;
  background: #ffffff;
  overflow: hidden;
}

.specific-field.is-complete {
  background: #ffffff;
}

.specific-field:hover {
  border-color: #d7e3ea;
  box-shadow: 0 1px 0 rgba(18, 35, 45, 0.03);
}

.specific-field:focus-within {
  border-color: #79b8a8;
  box-shadow: 0 0 0 3px rgba(18, 128, 113, 0.12);
}

.specific-field[hidden] {
  display: none;
}

.specific-control {
  min-width: 0;
}

.specific-multi-summary,
[data-specific-multi-summary] {
  display: block;
  min-width: 0;
  padding: 4px 6px;
  border: 1px solid #dfe9ee;
  border-radius: 7px;
  background: #f8fbfc;
  color: #28414f;
  font-size: 11px;
  font-weight: 850;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.specific-source-summary,
.specific-selected-preview,
.specific-quick-options,
.specific-option-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  min-width: 0;
}

.specific-source-summary {
  gap: 3px;
}

.specific-source-pill {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-height: 20px;
  padding: 2px 6px;
  border: 1px solid #dbe5ea;
  border-radius: 999px;
  background: #f6f8fa;
  color: var(--text-soft);
  font-size: 10px;
  font-weight: 850;
  line-height: 1.15;
}

.specific-source-pill--imported_ebay {
  border-color: #bfe7d5;
  background: #effaf4;
  color: #126241;
}

.specific-source-pill--ebay_option {
  border-color: #dbe5ea;
  background: #f7fafb;
  color: #51606c;
}

.specific-source-pill--stockhub_suggestion {
  border-color: #d8e7f6;
  background: #f1f7fd;
  color: #245c85;
}

.specific-source-pill--staff_value {
  border-color: #bfd4ee;
  background: #f4f8fd;
  color: #315984;
}

.specific-selected-preview {
  color: #263744;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.25;
}

.specific-selected-preview span:not(.specific-selected-preview__more) {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.specific-selected-preview__more {
  color: var(--text-soft);
}

.specific-quick-options {
  font-size: 11px;
  line-height: 1.2;
}

.specific-quick-options small {
  color: var(--text-soft);
  font-size: 10px;
  font-weight: 850;
}

.specific-quick-option,
.specific-option-filter {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  max-width: 100%;
  padding: 2px 7px;
  border: 1px solid #d9e5eb;
  border-radius: 999px;
  background: #ffffff;
  color: #2f4552;
  font-size: 10px;
  font-weight: 850;
  line-height: 1.1;
  cursor: pointer;
}

.specific-quick-option:hover,
.specific-quick-option:focus-visible,
.specific-option-filter.is-active {
  border-color: #9ccbc1;
  background: #eff8f5;
  color: var(--accent-strong);
}

.specific-option-filters {
  gap: 5px;
}

.specific-multi-summary.is-empty,
[data-specific-multi-summary].is-empty {
  color: var(--text-soft);
  font-weight: 750;
}

.specific-multi-picker {
  position: relative;
  min-width: 0;
}

.specific-multi-picker-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px;
  min-height: 34px;
}

.specific-multi-edit-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 4px 8px;
  border: 1px solid #cfdde4;
  border-radius: 999px;
  background: #ffffff;
  color: var(--accent-strong);
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.specific-multi-picker-panel {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 18;
  display: grid;
  gap: 6px;
  width: min(520px, calc(100vw - 64px));
  max-height: 320px;
  padding: 8px;
  overflow: hidden;
  border: 1px solid #dfe9ee;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(18, 35, 45, 0.12);
}

.specific-multi-picker-panel[hidden] {
  display: none;
}

.specific-multi-picker-actions {
  position: sticky;
  bottom: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
  padding-top: 6px;
  background: #ffffff;
}

.specific-control--searchable_multi_select > ul,
.specific-control--searchable_multi_select > div {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 5px;
  max-height: 210px;
  margin: 0;
  padding: 4px;
  overflow: auto;
  list-style: none;
  border: 1px solid #e5edf2;
  border-radius: 7px;
  background: #ffffff;
}

.specific-control--searchable_multi_select > ul > li,
.specific-control--searchable_multi_select > div > div {
  margin: 0;
}

.specific-control--searchable_multi_select label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 30px;
  padding: 5px 8px;
  border: 1px solid #d9e5eb;
  border-radius: 7px;
  background: #fbfcfd;
  color: #263744;
  font-size: 11px;
  font-weight: 850;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.specific-control--searchable_multi_select label:has(input:checked) {
  border-color: #a7d3ca;
  background: #edf7f4;
  color: var(--accent-strong);
}

.specific-control--searchable_multi_select label.specific-option-row--staff {
  border-color: #bfd4ee;
  background: #f4f8fd;
  color: #315984;
}

.specific-control--searchable_multi_select label.specific-option-row--suggested {
  border-color: #d8e7f6;
  background: #f1f7fd;
  color: #245c85;
}

.specific-control--searchable_multi_select label.specific-option-row--ebay:not(:has(input:checked)) {
  background: #ffffff;
  color: #344753;
}

.specific-control--searchable_multi_select input[type="checkbox"] {
  width: 13px;
  height: 13px;
  margin: 0;
}

.workspace-import-readiness,
.ebay-live-upload-disabled-panel {
  display: grid;
  gap: 8px;
  min-width: 0;
  margin: 10px 0;
  padding: 10px;
  border: 1px solid #dfe9ee;
  border-radius: 8px;
  background: #fbfcfd;
}

.workspace-import-readiness--ready {
  border-color: #bfe7d0;
  background: #f4fbf7;
}

.workspace-import-readiness--needs_review {
  border-color: #f1d7a6;
  background: #fffaf0;
}

.workspace-import-readiness--blocked {
  border-color: #f1c6c6;
  background: #fff6f6;
}

.import-readiness-list {
  display: grid;
  gap: 6px;
  margin: 0;
}

.import-readiness-list li {
  display: grid;
  grid-template-columns: auto minmax(140px, 0.4fr) minmax(0, 1fr);
  align-items: start;
  gap: 6px;
}

.live-upload-step-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 4px 14px;
  margin: 0;
  padding-left: 20px;
}

@media (max-width: 760px) {
  .specific-multi-picker-panel {
    position: static;
    width: 100%;
    max-height: 320px;
    margin-top: 6px;
  }

  .import-readiness-list li {
    grid-template-columns: 1fr;
  }
}

.specific-option-label {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  min-height: 20px;
  padding: 2px 6px;
  border-radius: 999px;
  background: #f3f7f8;
  color: var(--text-soft);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0;
}

.specific-field-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.specific-field-head label {
  min-width: 0;
  color: #24313d;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.specific-field-status {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px;
  min-width: 0;
}

.specific-source-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 18px;
  padding: 1px 5px;
  border: 1px solid #cfe4f3;
  border-radius: 999px;
  background: #f1f8fd;
  color: #245c85;
  font-size: 9px;
  font-weight: 900;
  line-height: 1;
}

.specific-review-chip,
.specific-edited-chip,
.specific-added-chip,
.specific-ready-chip {
  display: inline-flex;
  align-items: center;
  min-height: 18px;
  padding: 1px 6px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 900;
  line-height: 1;
}

.specific-review-chip {
  border: 1px solid #f1cf8a;
  background: #fff8e8;
  color: #765200;
}

.specific-edited-chip {
  border: 1px solid #c8d7e8;
  background: #f5f8fb;
  color: #37516b;
}

.specific-added-chip {
  border: 1px solid #badfd3;
  background: #eef9f5;
  color: #12624f;
}

.specific-ready-chip {
  border: 1px solid #cfe4f3;
  background: #f1f8fd;
  color: #245c85;
}

.specific-original-value {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px;
  min-width: 0;
  padding: 5px 6px;
  border: 1px solid #e1e8ec;
  border-radius: 7px;
  background: #fbfcfd;
  color: var(--text-soft);
  font-size: 11px;
}

.specific-original-value[hidden] {
  display: none;
}

.specific-original-value span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.specific-restore-button {
  min-height: 26px;
  padding: 3px 8px;
  border-color: #92b8af;
  background: #f0faf7;
  color: #075f52;
  font-weight: 900;
  box-shadow: none;
}

.specific-restore-button:hover,
.specific-restore-button:focus-visible {
  border-color: #0f7665;
  background: #0f7665;
  color: #ffffff;
}

@media (max-width: 980px) {
  .specifics-groups--compact {
    grid-template-columns: 1fr;
  }

  .specifics-grid {
    grid-template-columns: 1fr;
  }
}

.specific-option-search {
  display: grid;
  gap: 3px;
  color: var(--text-soft);
  font-size: 11px;
  font-weight: 850;
}

.specific-option-search input {
  min-height: 30px;
  border-radius: 7px;
}

.specific-field input:not([type="checkbox"]):not([type="radio"]),
.specific-field select,
.specific-field textarea {
  width: 100%;
  min-width: 0;
}

.specific-field textarea {
  min-height: 68px;
  resize: vertical;
}

.specific-priority-badge {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 2px 7px;
  border: 1px solid #d8e2ea;
  border-radius: 999px;
  background: #f8fafb;
  color: var(--text-soft);
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0;
}

.specific-priority-badge--required {
  border-color: #efc38b;
  background: #fff7e7;
  color: #815100;
}

.specific-priority-badge--recommended {
  border-color: #b9d7ee;
  background: #f1f8fd;
  color: #245c85;
}

.specific-priority-badge--optional {
  border-color: #e0e5ea;
  background: #fbfcfd;
}

.specifics-empty-note {
  margin: 0;
  padding: 8px;
  border: 1px dashed #cfd8e3;
  border-radius: 7px;
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 750;
}

.specific-suggestion-chip {
  justify-self: start;
  display: inline-flex;
  padding: 2px 7px;
  border-radius: 999px;
  background: #fff0ce;
  color: #845100;
  font-size: 11px;
  font-weight: 850;
}

.specific-field.required-field {
  border-color: #f0d199;
  background: #fffaf0;
}

.specific-field--multi {
  grid-column: span 1;
  min-width: 0;
}

.specific-field--multi > div,
.specific-field--multi ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.specific-field--multi li,
.specific-field--multi > div > div {
  margin: 0;
}

.specific-field--multi label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 8px;
  background: #ffffff;
  color: #25313d;
  font-size: 12px;
  font-weight: 750;
}

.specific-field--multi label:has(input:checked) {
  border-color: #9ed8c0;
  background: var(--soft-accent);
  color: var(--accent-strong);
}

.rich-editor,
.description-html-source {
  min-height: 250px;
}

.snippet-row {
  gap: 5px;
}

.workspace-side--compact .checklist {
  gap: 5px;
  margin: 8px 0;
}

.workspace-side--compact .checklist li {
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 6px;
  padding: 6px;
  font-size: 12px;
}

.workspace-side--compact .export-summary p {
  margin: 5px 0;
  font-size: 12px;
}

.export-confirm-row label {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #27313c;
}

@media (max-width: 1180px) {
  .workspace-command {
    grid-template-columns: 74px minmax(0, 1fr);
  }

  .workspace-command__actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .workspace-layout--tight {
    grid-template-columns: 1fr;
  }

  .workspace-side--compact {
    position: static;
    max-height: none;
  }
}

@media (max-width: 820px) {
  .workspace-command {
    grid-template-columns: 1fr;
  }

  .workspace-command__summary h2 {
    white-space: normal;
  }

  .workspace-action-bar--compact,
  .specifics-overview {
    display: grid;
    grid-template-columns: 1fr;
  }

  .workspace-section-body .workspace-grid,
  .workspace-section-body .workspace-grid.wide,
  .specifics-grid {
    grid-template-columns: 1fr;
  }

  .specific-field--multi {
    grid-column: auto;
  }

}

/* Products pagination and bulk actions pass */
.product-control-bar,
.bulk-action-bar,
.bulk-action-bar__status,
.bulk-action-bar__controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.product-control-bar {
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
}

.product-control-bar .result-strip {
  margin-top: 0;
}

.page-size-control {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 800;
}

.page-size-control select {
  width: auto;
  min-width: 92px;
  min-height: 32px;
  padding: 5px 8px;
}

.bulk-action-bar {
  position: relative;
  z-index: 3;
  justify-content: space-between;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  background: #ffffff;
}

.bulk-action-bar__status {
  color: var(--text-soft);
  font-size: 12px;
}

.bulk-action-bar__status strong {
  color: var(--ink);
}

.bulk-action-bar__controls {
  justify-content: flex-end;
}

.bulk-action-bar__controls select {
  width: min(260px, 100%);
}

.bulk-action-bar__controls input[type="text"] {
  width: min(240px, 100%);
}

.ops-product-table input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-height: 18px;
  padding: 0;
  accent-color: var(--accent);
}

.ops-product-table tbody tr:has([data-row-select]:checked) {
  background: #f2faf7;
}

@media (max-width: 760px) {
  .product-control-bar,
  .bulk-action-bar,
  .bulk-action-bar__controls {
    display: grid;
    grid-template-columns: 1fr;
  }
}

/* Products bulk bar page size navigation */
.page-size-control--bulk {
  color: var(--ink);
}

.page-size-control--bulk select {
  min-width: 78px;
}

.bulk-action-bar__status > span {
  color: var(--text-soft);
}

/* Channel cover gallery roles pass */
.gallery-summary-panel .panel-head,
.gallery-manager .panel-head {
  align-items: flex-start;
}

.gallery-warning-list {
  display: grid;
  gap: 6px;
  margin: 10px 0 0;
  padding: 10px 12px;
  border: 1px solid #f2d08a;
  border-radius: 8px;
  background: #fff8e8;
  color: #6c4c00;
  font-size: 13px;
}

.gallery-warning-list--compact {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-bottom: 10px;
}

.gallery-warning-disclosure {
  margin-bottom: 10px;
}

.gallery-warning-disclosure .gallery-warning-list {
  margin: 0 8px 8px;
  border: 0;
  background: transparent;
}

.channel-gallery-grid {
  display: grid;
  grid-template-columns: minmax(180px, 0.8fr) minmax(180px, 0.8fr) minmax(280px, 1.4fr);
  gap: 12px;
}

.channel-gallery-card {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
}

.channel-gallery-card h3 {
  margin: 0;
  font-size: 14px;
}

.channel-gallery-card p {
  margin: 0;
  color: var(--text-soft);
  font-size: 12px;
}

.gallery-role-strip {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(58px, 1fr));
  gap: 6px;
}

.gallery-role-strip img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.product-detail-gallery-strip {
  grid-template-columns: repeat(auto-fill, minmax(86px, 1fr));
}

.product-detail-gallery-strip[data-reusable-photo-card-strip] {
  grid-template-columns: repeat(auto-fill, minmax(96px, 116px));
  align-items: start;
  justify-content: start;
  gap: 8px;
  overflow: visible;
}

.product-detail-gallery-tile {
  position: relative;
  display: grid;
  align-content: start;
  gap: 5px;
  min-width: 0;
  min-height: 92px;
  overflow: visible;
}

.product-detail-gallery-tile.gallery-selectable-tile--shared-card,
.product-detail-gallery-tile--shared-card {
  display: block;
  width: 100%;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
}

.product-detail-gallery-strip[data-reusable-photo-card-strip] .gallery-control-thumb {
  max-width: 116px;
  padding: 3px;
  gap: 2px;
}

.product-detail-gallery-strip[data-reusable-photo-card-strip] .gallery-control-thumb figcaption {
  min-height: 0;
  padding-right: 0;
}

.product-detail-gallery-tile img,
.product-detail-gallery-placeholder {
  width: 100%;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.product-detail-gallery-tile img {
  object-fit: contain;
}

.gallery-save-status {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 8px;
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 800;
}

.gallery-save-status[data-save-state="saving"],
.gallery-save-status[data-save-state="pending"] {
  color: var(--warn);
}

.gallery-save-status[data-save-state="saved"] {
  color: var(--accent-strong);
}

.gallery-save-status[data-save-state="failed"] {
  color: var(--danger);
}

.product-detail-gallery-placeholder {
  display: grid;
  place-items: center;
  padding: 6px;
  color: var(--text-soft);
  font-size: 11px;
  line-height: 1.25;
  text-align: center;
  background: #f8fafc;
}

.product-detail-gallery-placeholder small {
  color: var(--text-muted);
  font-size: 10px;
}

.product-detail-gallery-tile .status-chip {
  justify-self: start;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gallery-role-form {
  display: grid;
  gap: 14px;
}

.product-photo-workspace {
  display: grid;
  gap: 10px;
  min-width: 0;
  overflow: visible;
}

.product-photo-set-panel {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
}

.product-photo-set-panel[hidden] {
  display: none;
}

.product-photo-workspace:not(.is-selecting) .gallery-select-box,
.product-photo-workspace:not(.is-selecting) [data-product-photo-selected-count],
.product-photo-workspace:not(.is-selecting) [data-product-photo-bulk-toolbar] {
  display: none;
}

.product-photo-workspace.is-selecting .gallery-selectable-tile {
  outline: 1px dashed #99c7bd;
  outline-offset: -4px;
}

.product-photo-workspace.is-selecting .gallery-selectable-tile--shared-card {
  border-radius: 10px;
  outline-offset: 2px;
}

.product-photo-panel-actions {
  justify-content: end;
}

.photo-health-line {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
}

.product-photo-bulk-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
  padding: 7px;
  border: 1px solid #b9e3d8;
  border-radius: 8px;
  background: #f0fbf7;
}

.product-photo-bulk-toolbar[hidden] {
  display: none;
}

.product-photo-bulk-form {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
  margin: 0;
}

.product-photo-bulk-duplicate-reason {
  display: inline-grid;
  gap: 3px;
  min-width: min(180px, 100%);
  max-width: 220px;
  color: var(--text-soft);
  font-size: 11px;
  font-weight: 800;
}

.product-photo-bulk-duplicate-reason input {
  min-height: 30px;
  padding: 5px 8px;
  font-size: 12px;
}

.product-photo-bulk-note {
  flex: 1 1 220px;
  min-width: 180px;
  margin-left: auto;
  text-align: right;
}

.product-photo-workspace .product-detail-gallery-strip[data-reusable-photo-card-strip] {
  grid-template-columns: repeat(auto-fill, minmax(124px, 146px));
  gap: 8px;
}

.product-photo-workspace .gallery-control-thumb {
  max-width: 146px;
  padding: 5px;
  gap: 3px;
}

.product-photo-workspace .gallery-control-thumb figcaption {
  min-height: 22px;
  padding-right: 28px;
}

.product-photo-order-preview {
  margin-top: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.product-photo-order-preview > summary {
  padding: 8px 10px;
  cursor: pointer;
  color: var(--accent-strong);
  font-weight: 850;
}

.product-photo-order-list {
  margin: 0;
  padding: 0 10px 10px;
}

.product-photo-order-list .gallery-export-order-row {
  grid-template-columns: auto minmax(130px, 1fr) auto auto auto;
}

.product-photo-upload-card {
  min-height: 156px;
  padding: 10px;
  text-decoration: none;
}

.product-photo-upload-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.product-photo-empty-grid {
  display: grid;
  grid-template-columns: minmax(150px, 176px);
  gap: 10px;
  justify-content: start;
  min-width: 0;
}

.photo-original-source-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 10px;
  min-width: 0;
}

.photo-original-source-card {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.photo-original-thumb-strip {
  gap: 8px;
  max-height: none;
  overflow: visible;
}

.photo-original-view-all {
  margin-top: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbfa;
}

.photo-original-view-all > summary {
  padding: 7px 9px;
  color: var(--accent-strong);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 850;
}

.photo-original-view-all > .photo-original-thumb-strip {
  padding: 0 8px 8px;
}

.gallery-graduation-panel {
  min-width: 0;
}

.photo-workspace-compare,
.photo-workspace-action-chooser {
  margin-top: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.photo-workspace-compare > summary,
.photo-workspace-action-chooser > summary {
  cursor: pointer;
  font-weight: 900;
}

.photo-workspace-action-chooser--panel {
  margin: 0;
  border: 0;
  border-radius: inherit;
  background: #fff;
}

.photo-workspace-action-chooser--panel > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  list-style: none;
}

.photo-workspace-action-chooser--panel > summary::-webkit-details-marker {
  display: none;
}

.photo-workspace-action-chooser--panel > summary span:first-child {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.photo-workspace-action-chooser--panel > summary strong {
  color: var(--ink);
  font-size: 1rem;
}

.photo-workspace-action-chooser--panel > summary small {
  color: var(--text-soft);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.35;
}

.photo-workspace-action-chooser--panel > .muted-copy,
.photo-workspace-action-chooser--panel > .gallery-graduation-actions {
  margin: 0 12px 12px;
}

.photo-workspace-action-chooser--panel > .muted-copy {
  font-size: 0.78rem;
  line-height: 1.35;
}

.photo-workspace-compare-counts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0 0;
}

.compact-panel-head {
  align-items: start;
}

.gallery-selectable-tile {
  cursor: pointer;
}

.gallery-selectable-tile input[type="checkbox"] {
  position: absolute;
  z-index: 2;
  top: 6px;
  left: 6px;
}

.gallery-graduation-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px;
  margin-top: 8px;
  min-width: 0;
}

.gallery-graduation-actions .inline-form,
.gallery-graduation-actions .button {
  width: 100%;
}

.photo-source-action-grid {
  grid-template-columns: repeat(auto-fill, minmax(190px, 240px));
  justify-content: start;
}

.photo-source-action-heading {
  grid-column: 1 / -1;
  margin: 4px 0 -2px;
  font-size: 0.78rem;
  letter-spacing: 0;
  color: var(--muted);
  text-transform: uppercase;
}

.photo-source-action-grid .inline-form,
.photo-source-action-card {
  display: grid;
  align-content: start;
  gap: 6px;
  min-width: 0;
  max-width: 240px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbfa;
}

.photo-source-action-card {
  grid-template-rows: auto minmax(2.45em, auto) auto;
}

.photo-source-action-card:focus-within {
  border-color: #8fc6ba;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.08);
}

.photo-source-action-grid .inline-form strong,
.photo-source-action-card strong {
  color: var(--ink);
}

.photo-source-action-grid .inline-form .muted-copy,
.photo-source-action-card .muted-copy {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.35;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.photo-source-action-grid .button {
  justify-content: center;
  min-height: 32px;
  padding-inline: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
}

.transition-gallery-workspace-panel {
  display: grid;
  gap: 8px;
  margin: 10px 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbfa;
}

.transition-gallery-details {
  display: grid;
  gap: 8px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.multi-channel-gallery-control {
  display: grid;
  gap: 10px;
  margin: 10px 0;
  min-width: 0;
}

.multi-channel-gallery-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 8px;
  min-width: 0;
}

.gallery-control-card {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfc;
}

.gallery-comparison-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 8px;
  margin-top: 10px;
  min-width: 0;
}

.gallery-comparison-summary-card {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.gallery-comparison-summary-card dl {
  display: grid;
  gap: 5px;
  margin: 0;
}

.gallery-comparison-summary-card dl > div {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  font-size: 12px;
}

.gallery-control-comparison-grid {
  margin-bottom: 10px;
}

.photo-routing-workspace {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfc;
}

.photo-routing-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.photo-routing-head h3 {
  margin: 0 0 2px;
}

.photo-routing-summary,
.photo-routing-summary--compact,
.photo-routing-status-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.photo-routing-summary-pill,
.photo-routing-status-pill,
.photo-routing-status-line > span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: 100%;
  min-height: 24px;
  padding: 3px 8px;
  border: 1px solid #dce8ee;
  border-radius: 999px;
  background: #f8fbfc;
  color: #425363;
  font-size: 0.76rem;
  line-height: 1.15;
}

.photo-routing-status-pill--mode {
  border-color: #bee6d8;
  background: #effaf4;
  color: var(--accent-strong);
  font-weight: 900;
}

.photo-routing-summary-pill strong,
.photo-routing-status-line strong {
  color: var(--ink);
}

.photo-routing-label {
  color: var(--text-soft);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.gallery-output-source-line {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin: 0;
  color: var(--text-soft);
  font-size: 0.78rem;
}

.gallery-channel-brief {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: center;
  margin: 0;
  min-width: 0;
}

.gallery-channel-brief .gallery-save-status {
  min-height: 24px;
  padding: 0;
}

.gallery-mini-badge {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-height: 18px;
  padding: 1px 5px;
  border: 1px solid #dce8ee;
  border-radius: 999px;
  background: #f8fbfc;
  color: #526171;
  font-size: 0.66rem;
  font-weight: 900;
  line-height: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gallery-mini-badge--cover {
  border-color: #f2d18d;
  background: #fff8e8;
  color: #815c10;
}

.gallery-mini-badge--product {
  border-color: #bee6d8;
  background: #effaf4;
  color: var(--accent-strong);
}

.gallery-mini-badge--duplicate {
  border-color: #d8e1ea;
  background: #f5f8fb;
  color: #4b5d70;
}

.gallery-action-preview-details,
.gallery-output-technical-details {
  margin-top: 8px;
}

.gallery-action-preview-details summary,
.gallery-output-technical-details summary {
  cursor: pointer;
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 900;
}

.photo-routing-details-drawer {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.photo-routing-details-drawer > summary {
  cursor: pointer;
  font-weight: 900;
}

.photo-routing-table-wrap {
  max-width: 100%;
  overflow-x: auto;
}

.photo-routing-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 12px;
}

.photo-routing-table th,
.photo-routing-table td {
  padding: 8px;
  border-top: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
}

.photo-routing-table thead th {
  border-top: 0;
  color: var(--text-soft);
  font-size: 11px;
  text-transform: uppercase;
}

.photo-routing-table .app-actions-cell {
  min-width: 150px;
}

.gallery-action-preview {
  display: block;
  margin-top: 0.35rem;
  color: var(--text-soft);
  font-size: 0.76rem;
  line-height: 1.35;
  white-space: normal;
}

.gallery-action-preview-list {
  display: grid;
  gap: 0.35rem;
  margin-top: 0.55rem;
  color: var(--text-soft);
  font-size: 0.78rem;
  line-height: 1.4;
}

.gallery-action-preview-list small {
  display: block;
}

.photo-rules-details {
  position: relative;
}

.photo-rules-details summary,
.photo-routing-more summary {
  list-style: none;
  cursor: pointer;
}

.photo-rules-details summary::-webkit-details-marker,
.photo-routing-more summary::-webkit-details-marker {
  display: none;
}

.photo-routing-more {
  position: relative;
}

.photo-rules-panel {
  position: absolute;
  right: 0;
  z-index: 5;
  width: min(420px, calc(100vw - 40px));
  margin-top: 6px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.14);
}

.photo-routing-more-menu {
  position: absolute;
  right: 0;
  z-index: 5;
  display: grid;
  gap: 6px;
  width: max-content;
  min-width: 170px;
  margin-top: 6px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.14);
}

.photo-routing-more-menu .button {
  justify-content: center;
}

.photo-rules-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin: 8px 0;
}

.photo-rules-grid div,
.photo-rules-channel-list li {
  min-width: 0;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel-soft);
}

.photo-rules-grid dt {
  color: var(--text-soft);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.photo-rules-grid dd {
  margin: 2px 0 0;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.photo-rules-channel-list {
  display: grid;
  gap: 6px;
  margin: 8px 0;
  padding: 0;
  list-style: none;
}

.photo-rules-channel-list li {
  display: grid;
  grid-template-columns: minmax(80px, 0.8fr) minmax(92px, 0.9fr) minmax(120px, 1.1fr);
  gap: 6px;
  align-items: center;
}

.photo-rules-channel-list span,
.photo-rules-channel-list small {
  min-width: 0;
  overflow-wrap: anywhere;
}

.source-history-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
  min-width: 0;
}

.source-history-thumb {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  font-size: 9px;
}

.source-history-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-comparison-details {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.gallery-comparison-details > summary {
  cursor: pointer;
  font-weight: 900;
}

.gallery-control-card__head,
.gallery-control-panel-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
}

.gallery-control-card dl {
  display: grid;
  gap: 5px;
  margin: 0;
}

.gallery-control-card dl > div {
  display: flex;
  gap: 8px;
  justify-content: space-between;
  min-width: 0;
  color: var(--text-soft);
  font-size: 12px;
}

.gallery-control-card dt {
  font-weight: 800;
}

.gallery-control-card dd {
  min-width: 0;
  margin: 0;
  color: var(--text);
  text-align: right;
  overflow-wrap: anywhere;
}

.gallery-control-selector {
  display: flex;
  gap: 6px;
  max-width: 100%;
  overflow-x: auto;
  padding-bottom: 2px;
}

.gallery-control-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.gallery-control-tab span {
  color: var(--text-muted);
}

.gallery-control-tab.is-active,
.gallery-control-tab[aria-selected="true"] {
  border-color: #8fc6ba;
  background: #eefaf7;
  color: #0f766e;
}

.channel-gallery-control-panel {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
}

.channel-gallery-control-panel[hidden] {
  display: none;
}

.channel-gallery-control-panel:not(.is-selecting) .channel-photo-select-box,
.channel-gallery-control-panel:not(.is-selecting) [data-channel-photo-bulk-toolbar],
.channel-gallery-control-panel:not(.is-selecting) [data-channel-photo-selected-count] {
  display: none;
}

.channel-gallery-control-panel.is-selecting .gallery-control-thumb {
  outline: 1px dashed #99c7bd;
  outline-offset: 2px;
}

.channel-gallery-control-panel.is-selecting .gallery-control-thumb:has([data-channel-photo-select]:checked) {
  border-color: #7fc8ba;
  background: #f0fbf7;
  box-shadow: 0 0 0 2px rgba(20, 184, 166, 0.12);
}

.channel-photo-select-box {
  position: absolute;
  top: 5px;
  left: 5px;
  z-index: 32;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border: 1px solid rgba(15, 23, 42, 0.16);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.channel-photo-select-box input {
  width: 14px;
  height: 14px;
  margin: 0;
}

.channel-photo-bulk-toolbar {
  margin: 2px 0;
}

.gallery-control-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  min-width: 0;
}

.photo-primary-setup-card {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid #bde7d4;
  border-radius: 8px;
  background: #f4fbf7;
}

.photo-primary-setup-card p {
  margin: 3px 0 0;
}

.channel-photo-use-sentence {
  margin: 2px 0 0;
  color: var(--text);
  font-size: 12px;
}

.gallery-control-thumb-strip {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 176px));
  gap: 8px;
  align-items: start;
  justify-content: start;
  max-width: 100%;
  min-width: 0;
  overflow: visible;
  padding: 2px 0 4px;
}

.channel-gallery-control-panel .gallery-control-thumb-strip {
  grid-template-columns: repeat(auto-fill, minmax(112px, 132px));
  gap: 7px;
  padding-bottom: 2px;
}

.workspace-section--staff-photos .channel-gallery-control-panel .gallery-control-thumb-strip {
  grid-template-columns: repeat(auto-fill, minmax(96px, 116px));
  gap: 6px;
}

.gallery-control-thumb {
  position: relative;
  display: grid;
  gap: 3px;
  width: 100%;
  max-width: 176px;
  min-width: 0;
  margin: 0;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-size: 11px;
  color: var(--text-soft);
  contain: layout;
  overflow: visible;
}

.channel-gallery-control-panel .gallery-control-thumb {
  max-width: 132px;
  padding: 4px;
}

.channel-gallery-control-panel .gallery-control-thumb.is-dragging {
  opacity: 0.58;
  outline: 2px solid var(--accent);
}

.channel-gallery-control-panel .gallery-control-thumb.is-drop-before {
  box-shadow: inset 3px 0 0 var(--accent);
}

.channel-gallery-control-panel .gallery-control-thumb.is-drop-after {
  box-shadow: inset -3px 0 0 var(--accent);
}

.workspace-section--staff-photos .channel-gallery-control-panel .gallery-control-thumb {
  max-width: 116px;
  padding: 3px;
  gap: 2px;
}

.gallery-control-thumb .gallery-square-frame {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
}

.gallery-control-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.gallery-control-thumb figcaption {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  align-items: center;
  min-width: 0;
  min-height: 20px;
  padding-right: 28px;
  line-height: 1.15;
  overflow: visible;
}

.channel-gallery-control-panel .gallery-control-thumb figcaption {
  min-height: 18px;
  padding-right: 24px;
}

.workspace-section--staff-photos .channel-gallery-control-panel .gallery-control-thumb figcaption {
  min-height: 16px;
  padding-right: 22px;
  gap: 2px;
}

.workspace-section--staff-photos .channel-gallery-control-panel .gallery-mini-badge {
  padding: 1px 5px;
  font-size: 0.64rem;
}

.gallery-control-thumb figcaption > span:first-child {
  color: var(--text-muted);
  font-size: 0.68rem;
  font-weight: 850;
}

.gallery-mini-actions {
  display: inline-flex;
  gap: 3px;
  align-items: center;
}

.gallery-mini-actions .compact-button,
.photo-duplicate-mini-form .compact-button {
  min-height: 24px;
  padding: 3px 6px;
  font-size: 10px;
}

.gallery-card-more-menu {
  position: absolute;
  top: 5px;
  right: 5px;
  z-index: 30;
  min-width: 0;
  line-height: 1;
}

.gallery-card-more-menu[open] {
  z-index: 90;
}

.gallery-card-more-menu[open] > summary {
  border-color: #a9d4cc;
  background: #eef9f6;
  color: var(--accent-strong);
}

.gallery-card-more-menu:not([open]) > .gallery-card-more-actions {
  display: none;
}

.gallery-card-more-menu > summary {
  width: 24px;
  min-width: 24px;
  height: 24px;
  min-height: 24px;
  padding: 0;
  justify-content: center;
  list-style: none;
}

.gallery-card-more-menu > summary::-webkit-details-marker {
  display: none;
}

.gallery-card-more-actions {
  display: grid;
  gap: 4px;
  width: min(188px, calc(100vw - 40px));
  max-height: min(420px, 65vh);
  margin-top: 5px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
  position: absolute;
  top: 100%;
  right: 0;
  z-index: 20;
  overflow: auto;
  line-height: 1.25;
}

.gallery-card-more-menu.opens-left .gallery-card-more-actions {
  right: 0;
  left: auto;
}

.gallery-card-more-menu.opens-right .gallery-card-more-actions {
  right: auto;
  left: 0;
}

.gallery-photo-action-trigger span[aria-hidden="true"] {
  transform: translateY(-2px);
  color: var(--text);
  font-weight: 900;
  font-size: 1.1rem;
  letter-spacing: 0;
  line-height: 1;
}

.gallery-card-more-actions .button,
.gallery-card-more-actions form {
  width: 100%;
}

.gallery-card-more-actions .button {
  justify-content: flex-start;
  min-height: 27px;
  padding-inline: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gallery-card-more-actions .gallery-duplicate-note {
  line-height: 1.2;
}

.gallery-card-more-actions .gallery-duplicate-note span {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gallery-card-duplicate-details {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.gallery-card-duplicate-details > summary {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f8fafc;
  color: var(--accent-strong);
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 900;
  list-style: none;
}

.gallery-card-duplicate-details > summary::-webkit-details-marker {
  display: none;
}

.gallery-card-duplicate-details:not([open]) > .photo-duplicate-mini-form {
  display: none;
}

.photo-duplicate-mini-form {
  display: grid;
  gap: 5px;
  min-width: 0;
  margin-top: 4px;
}

.photo-duplicate-mini-form input[type="text"] {
  width: 100%;
  min-width: 0;
  height: 30px;
  font-size: 0.76rem;
}

.gallery-duplicate-note {
  display: grid;
  gap: 3px;
  width: 100%;
  min-width: 0;
  font-size: 0.76rem;
  color: var(--muted);
}

.gallery-duplicate-note input {
  min-height: 28px;
  padding: 5px 7px;
  font-size: 0.78rem;
  width: 100%;
  min-width: 0;
}

.gallery-thumbnail-preview {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 7px;
  background: #f4f6f8;
  cursor: zoom-in;
}

.gallery-thumbnail-preview:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.product-hub-photo-choice-details,
.product-hub-photo-actions {
  margin: 10px 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.product-hub-photo-status-card {
  gap: 8px;
}

.product-hub-photo-health-strip,
.product-hub-photo-cover-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  min-width: 0;
}

.product-hub-photo-choice-details > summary,
.product-hub-photo-actions > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  color: var(--text);
  font-weight: 800;
  cursor: pointer;
}

.product-hub-photo-choice-details > .spec-list,
.product-hub-photo-actions > .muted-copy,
.product-hub-photo-actions > .action-row {
  margin: 0;
  padding: 8px 10px 10px;
}

.product-hub-photo-actions > .action-row {
  gap: 8px;
}

.product-hub-photo-quick-actions {
  margin-top: 10px;
}

.product-hub-channel-photo-previews {
  margin-top: 12px;
}

.product-hub-channel-photo-previews > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  cursor: pointer;
}

.product-hub-channel-photo-previews > summary span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.product-hub-channel-photo-previews > summary small {
  color: var(--text-soft);
  font-size: 12px;
}

.product-hub-channel-photo-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 320px));
  gap: 8px;
  margin-top: 10px;
  min-width: 0;
}

.product-hub-channel-photo-preview {
  min-width: 0;
  overflow: hidden;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.product-hub-channel-photo-preview > .action-row {
  gap: 6px;
  margin-bottom: 4px;
}

.product-hub-channel-photo-preview > .muted-copy {
  display: -webkit-box;
  margin: 0 0 6px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.product-hub-channel-photo-preview .gallery-control-thumb-strip {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(72px, 88px));
  gap: 6px;
  padding-bottom: 2px;
}

.product-hub-channel-photo-preview .gallery-control-thumb {
  width: 100%;
  min-width: 0;
}

.product-hub-channel-photo-preview .gallery-control-thumb figcaption {
  min-height: 0;
  padding-right: 0;
}

@media (min-width: 1440px) {
  .gallery-control-thumb-strip {
    grid-template-columns: repeat(auto-fill, minmax(146px, 166px));
  }

  .product-detail-gallery-strip[data-reusable-photo-card-strip] {
    grid-template-columns: repeat(auto-fill, minmax(104px, 124px));
  }

  .product-photo-workspace .product-detail-gallery-strip[data-reusable-photo-card-strip] {
    grid-template-columns: repeat(auto-fill, minmax(130px, 152px));
  }

  .product-photo-workspace .gallery-control-thumb {
    max-width: 152px;
  }
}

@media (max-width: 1320px) {
  .gallery-control-thumb-strip {
    grid-template-columns: repeat(auto-fill, minmax(126px, 148px));
  }

  .product-detail-gallery-strip[data-reusable-photo-card-strip] {
    grid-template-columns: repeat(auto-fill, minmax(96px, 112px));
  }

  .gallery-control-thumb {
    max-width: 148px;
  }

  .product-photo-workspace .product-detail-gallery-strip[data-reusable-photo-card-strip] {
    grid-template-columns: repeat(auto-fill, minmax(116px, 136px));
  }

  .product-photo-workspace .gallery-control-thumb {
    max-width: 136px;
  }
}

.source-history-list {
  display: grid;
  gap: 6px;
}

.source-history-row {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) auto auto auto auto minmax(120px, 0.9fr) auto;
  gap: 8px;
  align-items: center;
  min-width: 0;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-size: 12px;
}

.source-history-row > * {
  min-width: 0;
  overflow-wrap: anywhere;
}

.source-history-actions {
  display: inline-flex;
  flex-wrap: nowrap;
  gap: 6px;
  justify-content: flex-end;
}

@media (max-width: 900px) {
  .source-history-row {
    grid-template-columns: 1fr;
  }

  .source-history-actions {
    flex-wrap: wrap;
    justify-content: flex-start;
  }
}

.compact-empty-state {
  margin: 0;
  padding: 10px;
}

.gallery-order-input {
  min-height: 32px;
  padding: 4px 6px;
}

@media (max-width: 980px) {
  .channel-gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-graduation-grid {
    grid-template-columns: 1fr;
  }
}
/* Validation checklist clarity pass */
.action-needed-panel {
  display: grid;
  gap: 10px;
}

.validation-item-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: center;
}

.validation-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 700;
}

.validation-toggle input {
  width: 16px;
  height: 16px;
  min-height: 16px;
  accent-color: var(--accent);
}

.validation-group {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
}

.validation-group > summary {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  cursor: pointer;
  font-weight: 800;
}

.validation-group > summary small {
  color: var(--text-soft);
  font-weight: 700;
}

.validation-status {
  display: inline-flex;
  align-items: center;
  min-height: 21px;
  padding: 2px 7px;
  border-radius: 999px;
  background: #eef2f5;
  color: var(--text-soft);
  font-size: 11px;
  font-weight: 900;
}

/* Simplified workspace photo section */
.photo-logic-note {
  margin-bottom: 8px;
}

.photo-role-empty {
  width: 100%;
  aspect-ratio: 4 / 3;
  max-height: 150px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
}

.photo-role-empty {
  display: grid;
  place-items: center;
  color: var(--text-soft);
  font-size: 12px;
  text-align: center;
}

.compact-label {
  display: grid;
  gap: 5px;
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 800;
}

.source-gallery-workspace {
  display: grid;
  gap: 10px;
}

.source-gallery-header {
  align-items: start;
}

.gallery-inline-counts {
  margin: 4px 0 0;
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.gallery-bulk-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.source-gallery-workspace:not(.is-editing) .gallery-bulk-bar,
.source-gallery-workspace:not(.is-editing) .gallery-select-box,
.source-gallery-workspace:not(.is-editing) .gallery-card-controls {
  display: none;
}

.source-gallery-workspace:not(.is-editing) .source-gallery-card {
  cursor: zoom-in;
}

.source-gallery-workspace.is-editing .source-gallery-card {
  cursor: grab;
}

.source-gallery-workspace.is-editing .gallery-bulk-bar.has-selection {
  display: flex;
}

.source-gallery-workspace.is-editing .gallery-card-controls {
  display: grid;
}

.danger-button {
  border-color: #fecaca;
  background: #fff7f7;
  color: #b91c1c;
}

.danger-button:hover {
  border-color: #fca5a5;
  background: #fee2e2;
}

.source-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 180px));
  gap: 10px;
  align-items: stretch;
  justify-content: start;
  width: 100%;
}

.workspace-section--staff-photos .source-gallery-grid {
  grid-template-columns: repeat(auto-fill, minmax(128px, 150px));
  gap: 7px;
}

.source-gallery-card {
  position: relative;
  display: grid;
  grid-template-rows: auto auto auto;
  gap: 4px;
  align-content: start;
  min-width: 0;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: grab;
}

.workspace-section--staff-photos .source-gallery-card {
  padding: 5px;
  gap: 3px;
}

.source-gallery-card.is-dragging {
  opacity: 0.55;
  outline: 2px solid var(--accent);
}

.gallery-card-media {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 7px;
  background: #f4f6f8;
}

.gallery-square-frame {
  aspect-ratio: 1 / 1;
  width: 100%;
}

.gallery-card-media img,
.gallery-card-media .photo-role-empty {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.gallery-card-media .photo-role-empty {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 12px;
}

.gallery-select-box {
  position: absolute;
  top: 6px;
  left: 6px;
  z-index: 1;
  padding: 2px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.9);
}

.gallery-position {
  position: absolute;
  right: 6px;
  bottom: 6px;
  min-width: 24px;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.78);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}

.gallery-card-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
}

.workspace-section--staff-photos .gallery-card-controls {
  gap: 3px;
}

.gallery-card-badges {
  position: absolute;
  top: 6px;
  right: 6px;
  left: 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  min-height: 0;
  justify-content: flex-end;
  pointer-events: none;
}

.gallery-card-badges .status-chip {
  max-width: 100%;
  padding: 2px 5px;
  font-size: 10px;
  line-height: 1.1;
}

.gallery-card-actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 4px;
  width: 100%;
  grid-column: 1 / -1;
}

.gallery-card-actions .compact-button {
  flex: 1 1 0;
  min-width: 0;
  min-height: 28px;
  padding: 3px 5px;
  font-size: 11px;
  line-height: 1.15;
}

.workspace-section--staff-photos .gallery-card-actions .compact-button {
  min-height: 24px;
  padding: 2px 4px;
  font-size: 10px;
}

.gallery-card-actions [data-gallery-move] {
  flex: 0 0 30px;
}

.gallery-card-actions [data-gallery-delete-one] {
  flex: 1 1 auto;
}

.source-gallery-card input[type="checkbox"],
.source-gallery-card input[type="radio"] {
  width: 15px;
  height: 15px;
  min-height: 15px;
  flex: 0 0 auto;
}

.source-gallery-card label {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 0;
  min-width: 0;
  color: var(--text-soft);
  font-size: 10.5px;
  font-weight: 800;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.source-gallery-card small {
  overflow: hidden;
  text-overflow: ellipsis;
}

.gallery-source-details {
  color: var(--text-soft);
  font-size: 11px;
}

.gallery-source-details:not([open]) > :not(summary),
.gallery-technical-details:not([open]) > :not(summary) {
  display: none;
}

.gallery-source-details > summary {
  cursor: pointer;
  font-weight: 800;
}

.gallery-source-details small {
  display: block;
  margin-top: 2px;
  white-space: normal;
  overflow-wrap: anywhere;
}

.gallery-upload-card {
  justify-items: center;
  align-content: center;
  gap: 6px;
  min-height: 0;
  border-style: dashed;
  background: #f9fbfc;
  color: var(--muted);
  cursor: pointer;
  text-align: center;
}

.gallery-upload-card:hover,
.gallery-upload-card.is-dragging {
  border-color: var(--accent);
  background: var(--soft-accent);
}

.gallery-upload-card input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  max-width: none;
  opacity: 0;
  cursor: pointer;
  font-size: 11px;
}

.gallery-upload-frame {
  border: 1px dashed #b7c3d0;
  background: #f8fafc;
}

.gallery-upload-plus {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--accent-strong);
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
}

.gallery-upload-card .compact-button {
  cursor: pointer;
}

.gallery-upload-card small {
  max-width: 150px;
  font-size: 11px;
  line-height: 1.25;
}

.photo-upload-queue {
  display: grid;
  gap: 4px;
}

.photo-upload-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(90px, 0.8fr) auto auto auto;
  gap: 6px;
  align-items: center;
  padding: 5px 6px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fbfcfd;
  font-size: 12px;
}

.photo-upload-progress {
  display: grid;
  grid-template-columns: minmax(56px, 1fr) auto;
  gap: 5px;
  align-items: center;
  min-width: 0;
  color: var(--text-soft);
  font-variant-numeric: tabular-nums;
}

.photo-upload-progress progress {
  width: 100%;
  min-width: 56px;
  height: 7px;
  accent-color: var(--accent);
}

.photo-upload-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gallery-export-preview > summary {
  cursor: pointer;
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 850;
}

.hidden-gallery-form {
  display: none;
}

@media (max-width: 980px) {
  .photo-upload-item {
    grid-template-columns: minmax(0, 1fr) minmax(80px, 0.8fr) auto;
  }
}
/* Listing Workspace flow redesign */
.workspace-layout--tight {
  grid-template-columns: minmax(0, 1fr);
}

.workspace-side,
.workspace-side--compact {
  display: none;
}

.action-needed-panel--single {
  padding: 0;
  overflow: visible;
}

.action-needed-summary {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 8px 12px;
  cursor: pointer;
  list-style: none;
}

.action-needed-summary--hidden {
  display: none;
}

.action-needed-summary::-webkit-details-marker {
  display: none;
}

.action-needed-summary::before {
  content: "\25b8";
  color: var(--muted);
  font-weight: 900;
}

.action-needed-panel--single[open] .action-needed-summary::before {
  content: "\25be";
}

.action-needed-body {
  display: grid;
  gap: 8px;
  padding: 0 12px 12px;
}

.action-needed-body__intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding-top: 4px;
}

.action-needed-body__intro h2,
.action-needed-body__intro p {
  margin: 0;
}

.validation-quick-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.action-needed-groups {
  display: grid;
  gap: 7px;
}

.action-needed-group {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.action-needed-group > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
}

.action-needed-group > summary small {
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 800;
}

.checklist--compact-actionable {
  display: grid;
  gap: 5px;
  margin: 0;
  padding: 0 8px 8px;
  list-style: none;
}

.checklist--compact-actionable li {
  display: grid;
  grid-template-columns: minmax(150px, 0.7fr) minmax(220px, 1.1fr) minmax(220px, 1.4fr) auto;
  gap: 8px;
  align-items: center;
  padding: 7px 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
}

.checklist--compact-actionable li.fail {
  border-color: #f1b7b7;
  background: #fff7f7;
}

.checklist--compact-actionable li.warning {
  border-color: #f1d596;
  background: #fffaf0;
}

.checklist--compact-actionable strong,
.checklist--compact-actionable p,
.checklist--compact-actionable a {
  font-size: 12px;
}

.checklist--compact-actionable p {
  margin: 0;
  color: var(--text-soft);
}

.checklist--compact-actionable a {
  color: var(--accent);
  font-weight: 900;
  white-space: nowrap;
}

.action-needed-groups.is-hiding-completed .is-completed,
.action-needed-groups.is-hiding-completed .is-completed-group {
  display: none;
}

.action-needed-groups:not(.is-hiding-completed) .is-completed {
  opacity: 0.6;
}

.secondary-workspace-panel > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  padding: 9px 12px;
  cursor: pointer;
  font-weight: 800;
}

.secondary-panel-body {
  padding: 0 12px 12px;
}

.export-confirmation-panel .export-summary--inline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 6px 12px;
  margin: 10px 0;
}

.export-confirmation-panel .export-summary--inline p {
  margin: 0;
  font-size: 12px;
}

@media (max-width: 1040px) {
  .action-needed-body__intro {
    align-items: flex-start;
    flex-direction: column;
  }

  .checklist--compact-actionable li {
    grid-template-columns: 1fr;
  }

}
/* Workspace layout validation end pass */

/* Staff-first listing command deck and channel-neutral workspace surfaces. */
.local-combobox {
  position: relative;
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr) 30px;
}

.local-combobox > input {
  min-width: 0;
  padding-right: 34px;
}

.local-combobox__toggle {
  width: 30px;
  min-width: 30px;
  margin-left: -30px;
  border: 0;
  border-left: 1px solid #d4dfe3;
  border-radius: 0 5px 5px 0;
  background: transparent;
  color: #48635e;
  cursor: pointer;
  font-size: 13px;
}

.local-combobox__toggle:hover,
.local-combobox__toggle:focus-visible {
  background: #eef8f5;
  color: #0d6658;
}

.local-combobox__listbox {
  position: absolute;
  z-index: 32;
  top: calc(100% + 3px);
  right: 0;
  left: 0;
  display: grid;
  max-height: 220px;
  overflow-y: auto;
  border: 1px solid #b9cbc8;
  border-radius: 5px;
  padding: 3px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(22, 38, 50, 0.14);
}

.local-combobox__listbox[hidden] {
  display: none;
}

.local-combobox__option {
  min-width: 0;
  border: 0;
  border-radius: 4px;
  padding: 6px 8px;
  background: transparent;
  color: #24313d;
  cursor: pointer;
  font-size: 12px;
  text-align: left;
}

.local-combobox__option:hover,
.local-combobox__option.is-active {
  background: #e6f4f0;
  color: #0d6658;
}

.local-combobox__empty {
  margin: 0;
  padding: 7px 8px;
  color: var(--text-soft);
  font-size: 11px;
}

.workspace-command-deck {
  position: sticky;
  top: 0;
  z-index: 18;
  display: grid;
  max-width: 100%;
  margin-bottom: 10px;
  border: 1px solid #cfd9df;
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(22, 38, 50, 0.1);
}

.specific-field-summary {
  display: grid;
  min-height: 38px;
  align-items: center;
  grid-template-columns: minmax(150px, 0.7fr) minmax(180px, 1.3fr) auto;
  gap: 8px 12px;
  padding: 6px 9px;
  cursor: pointer;
  list-style: none;
}

.specific-field-summary::-webkit-details-marker {
  display: none;
}

.specific-field-summary::after {
  content: "+";
  width: 20px;
  color: #53706b;
  font-size: 16px;
  font-weight: 800;
  text-align: center;
}

.specific-field[open] > .specific-field-summary::after {
  content: "-";
}

.specific-field-summary__name {
  color: #24313d;
  font-size: 12px;
  font-weight: 850;
}

.specific-field-summary > strong {
  min-width: 0;
  overflow: hidden;
  color: #253742;
  font-size: 12px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.specific-field-summary__state {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
}

.specific-field-editor {
  display: grid;
  gap: 6px;
  padding: 8px 9px 9px;
  border-top: 1px solid #e5ecef;
  background: #fbfcfd;
}

.specific-field:not([open]) > .specific-field-editor {
  display: none;
}

.workspace-command-deck .workspace-command--deck {
  grid-template-areas:
    "media summary overview"
    "channels channels channels"
    "tabs tabs tabs"
    "surface-status surface-status surface-status";
  grid-template-columns: 64px minmax(250px, 0.9fr) minmax(360px, 1.4fr);
  gap: 8px 12px;
  margin: 0;
  border: 0;
  border-radius: 7px 7px 0 0;
  padding: 9px 10px 7px;
  box-shadow: none;
}

.workspace-command--deck .workspace-command__media {
  grid-area: media;
  width: 60px;
  height: 54px;
}

.workspace-command--deck .workspace-command__summary {
  grid-area: summary;
  align-self: center;
  gap: 3px;
}

.workspace-command--deck .workspace-command__summary h2 {
  font-size: 16px;
}

.workspace-command__identity {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  gap: 4px 10px;
  color: var(--text-soft);
  font-size: 11px;
}

.workspace-command__overview {
  grid-area: overview;
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(2, minmax(120px, 1fr));
  border: 1px solid #dce5e8;
  border-radius: 6px;
  background: #f8fbfa;
}

.workspace-command__metric {
  display: grid;
  min-width: 0;
  gap: 1px;
  padding: 6px 9px;
  border-right: 1px solid #dce5e8;
}

.workspace-command__metric:last-child {
  border-right: 0;
}

.workspace-command__metric > span {
  color: var(--text-soft);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.workspace-command__metric > strong,
.workspace-command__metric > small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workspace-command__metric > strong {
  color: #183b35;
  font-size: 12px;
}

.workspace-command__metric > small {
  color: var(--text-soft);
  font-size: 10px;
}

.workspace-command__channel-state.pass {
  color: #176b55;
}

.workspace-command__channel-state.warn {
  color: #8a5a00;
}

.workspace-command__channel-state.danger {
  color: #a92d2d;
}

.workspace-command__metric--next {
  background: #eef8f5;
}

.listing-finish-queue {
  display: grid;
  gap: 8px;
  margin: 0 0 10px;
  padding: 10px 12px;
  border-block: 1px solid #dce5e8;
  background: #f8fbfa;
}

.listing-finish-queue__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.listing-finish-queue__head h2 {
  margin: 1px 0 0;
  font-size: 15px;
}

.listing-finish-queue__items {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.listing-finish-queue__item {
  display: grid;
  min-width: 0;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: start;
  gap: 5px 8px;
  padding: 7px 10px;
  border-left: 1px solid #dce5e8;
}

.listing-finish-queue__item:first-child {
  border-left: 0;
}

.listing-finish-queue__item.is-next {
  background: #edf8f4;
  box-shadow: inset 3px 0 #168064;
}

.listing-finish-queue__item--danger.is-next {
  background: #fff5f3;
  box-shadow: inset 3px 0 #c94a4a;
}

.listing-finish-queue__step {
  display: inline-grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border: 1px solid #c6d4d8;
  border-radius: 50%;
  color: #38534d;
  background: #fff;
  font-size: 10px;
  font-weight: 850;
}

.listing-finish-queue__copy {
  display: grid;
  min-width: 0;
  gap: 1px;
}

.listing-finish-queue__copy > span {
  color: var(--text-soft);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.listing-finish-queue__copy > strong {
  color: #183b35;
  font-size: 12px;
}

.listing-finish-queue__copy > small {
  color: var(--text-soft);
  font-size: 10px;
  line-height: 1.35;
}

.listing-finish-queue__item > .button {
  grid-column: 2;
  justify-self: start;
  margin-top: 3px;
}

.compact-channel-command {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid #dce5e8;
  border-radius: 6px;
  background: #dce5e8;
  gap: 1px;
}

.compact-channel-command--workspace {
  grid-area: channels;
}

.workspace-channel-command-disclosure {
  grid-area: channels;
  min-width: 0;
}

.workspace-channel-command-disclosure > summary {
  display: none;
}

.workspace-channel-command-disclosure > .compact-channel-command--workspace {
  grid-area: auto;
}

.compact-channel-command__row {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(92px, .8fr) minmax(86px, .7fr) minmax(78px, .6fr) minmax(132px, 1.1fr);
  align-items: center;
  gap: 6px 10px;
  padding: 6px 8px;
  background: #fff;
}

.compact-channel-command__row--warn {
  box-shadow: inset 3px 0 #d79a2b;
}

.compact-channel-command__row--danger {
  box-shadow: inset 3px 0 #c94a4a;
}

.compact-channel-command__identity,
.compact-channel-command__metric,
.compact-channel-command__action {
  min-width: 0;
}

.compact-channel-command__identity,
.compact-channel-command__metric {
  display: grid;
  gap: 1px;
}

.compact-channel-command__identity > span,
.compact-channel-command__metric > span {
  color: var(--text-soft);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.compact-channel-command__identity > strong,
.compact-channel-command__metric > strong,
.compact-channel-command__metric > small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compact-channel-command__identity > strong,
.compact-channel-command__metric > strong {
  color: #183b35;
  font-size: 12px;
}

.compact-channel-command__metric > small {
  color: var(--text-soft);
  font-size: 9px;
}

.compact-channel-command__action {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.compact-channel-command__issue {
  min-width: 0;
  overflow: hidden;
  color: var(--text-soft);
  font-size: 10px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compact-channel-command__issue--warn {
  color: #805100;
}

.compact-channel-command__issue--danger {
  color: #a92d2d;
}

.workspace-surface-row {
  grid-area: tabs;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  gap: 4px;
}

.workspace-surface-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
}

.workspace-surface-tab {
  display: flex;
  min-width: 0;
  min-height: 32px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid #d5dfe3;
  border-radius: 5px;
  background: #f8fafb;
  color: #344752;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.workspace-surface-tab > span {
  max-width: 72px;
  overflow: hidden;
  border-radius: 999px;
  padding: 1px 5px;
  background: #e8edf0;
  color: #596872;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workspace-surface-tab__badge--pass,
.workspace-surface-tab__badge--muted {
  display: none;
}

.workspace-surface-tab:hover,
.workspace-surface-tab:focus-visible {
  border-color: #78aea4;
  background: #f0f8f6;
  color: #0d6658;
}

.workspace-surface-tab.is-active {
  border-color: #16796a;
  background: #16796a;
  color: #fff;
}

.workspace-surface-tab.is-active > span {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.workspace-surface-utilities {
  display: flex;
  align-items: stretch;
  gap: 4px;
}

.workspace-checks-publish {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid #d5dfe3;
  border-radius: 5px;
  padding: 4px 9px;
  background: #fff;
  color: #28544c;
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.workspace-checks-publish:hover,
.workspace-checks-publish:focus-visible,
.workspace-checks-publish.is-active {
  border-color: #16796a;
  background: #eef8f5;
  color: #0d6658;
}

.workspace-checks-publish > span {
  min-width: 17px;
  border-radius: 999px;
  padding: 1px 4px;
  background: #f9dada;
  color: #9b2020;
  text-align: center;
}

.workspace-presentation-switch {
  display: inline-grid;
  grid-template-columns: repeat(2, auto);
  align-items: stretch;
  border: 1px solid #d5dfe3;
  border-radius: 5px;
  background: #f3f6f7;
  padding: 2px;
}

.workspace-presentation-switch button {
  min-height: 26px;
  border: 0;
  border-radius: 3px;
  padding: 3px 7px;
  background: transparent;
  color: #5b6870;
  font: inherit;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
}

.workspace-presentation-switch button:hover,
.workspace-presentation-switch button:focus-visible,
.workspace-presentation-switch button.is-active {
  background: #fff;
  color: #0d6658;
  box-shadow: 0 1px 2px rgba(24, 59, 53, 0.12);
}

.workspace-presentation-switch button:disabled {
  cursor: wait;
  opacity: 0.65;
}

[data-workspace-presentation="accordion"] .workspace-surface-tabs {
  grid-template-columns: minmax(0, 1fr);
  gap: 2px;
}

[data-workspace-presentation="accordion"] .workspace-surface-tab {
  min-height: 27px;
  justify-content: space-between;
  padding: 3px 8px;
}

.workspace-surface-status {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.workspace-command-deck .workspace-action-bar--compact {
  position: static;
  margin: 0;
  border: 0;
  border-top: 1px solid #dce5e8;
  border-radius: 0 0 7px 7px;
  padding: 6px 9px;
  box-shadow: none;
}

[data-workspace-active-surface="review"] [data-workspace-section-group]:not([data-workspace-section-group="review"]),
[data-workspace-active-surface="ebay"] [data-workspace-section-group="review"] {
  display: none;
}

[data-workspace-active-surface="review"] #ebay-workspace > .channel-workspace__head,
[data-workspace-active-surface="review"] #ebay-workspace > .ebay-workspace-navigator,
[data-workspace-active-surface="review"] #ebay-workspace > .workspace-native-summary,
[data-workspace-active-surface="review"] #ebay-workspace > .channel-value-truth-note,
[data-workspace-active-surface="review"] #ebay-workspace > [data-workspace-attention-strip],
[data-workspace-active-surface="review"] #ebay-workspace > [data-import-readiness] {
  display: none;
}

.workspace-focus-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 7px;
  padding: 6px 9px;
  border: 1px solid #d9e7e3;
  border-radius: 5px;
  background: #f5faf8;
}

.workspace-focus-strip > div {
  display: flex;
  min-width: 0;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 3px 9px;
}

.workspace-focus-strip strong {
  color: #174f45;
  font-size: 12px;
}

.workspace-focus-strip span:not(.status-chip) {
  color: var(--text-soft);
  font-size: 11px;
}

[data-workspace-active-surface="ebay"][data-workspace-ebay-view="focus"] .workspace-section[data-section-state="complete"],
[data-workspace-active-surface="ebay"][data-workspace-ebay-view="focus"] .workspace-section[data-section-state="quiet"] {
  display: none;
}

.workspace-channel-review {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-width: 0;
  gap: 7px;
  margin: 0 0 8px;
  padding: 8px 9px;
  border: 1px solid #d9e3e7;
  border-radius: 6px;
  background: #fbfcfd;
}

.workspace-channel-review .compact-section-head {
  margin: 0;
}

.listing-quick-review {
  width: min(100%, 1500px);
  margin: 0 auto;
}

.listing-quick-review__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 12px 0 20px;
  border-bottom: 1px solid var(--line);
}

.listing-quick-review__header h2,
.listing-quick-review__lane h3 {
  margin: 4px 0;
  letter-spacing: 0;
}

.listing-quick-review__header p,
.listing-quick-review__lane-head p,
.listing-quick-review__progress {
  margin: 0;
  color: var(--muted);
}

.listing-quick-review__next-action {
  align-items: center;
  background: var(--surface-subtle, #f5f8f7);
  border: 1px solid var(--border-color, #cfd8d5);
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 10px;
}

.listing-quick-review__next-action > div {
  display: grid;
  gap: 2px;
}

.listing-quick-review__next-action span {
  color: var(--muted-color, #52615d);
  font-size: 0.86rem;
}

.listing-quick-review__status {
  position: sticky;
  top: 8px;
  z-index: 6;
  display: flex;
  flex-wrap: wrap;
  gap: 7px 16px;
  margin: 10px 0 0;
  padding: 9px 12px;
  border: 1px solid #cfe0db;
  border-radius: 5px;
  background: #f6faf8;
  box-shadow: 0 5px 12px rgba(23, 63, 55, 0.07);
  font-size: 0.88rem;
}

.listing-quick-review__status-attention {
  color: #7a4c00;
}

.listing-quick-review__status-link {
  color: inherit;
  text-decoration-color: var(--line-strong, #8ca39d);
  text-underline-offset: 3px;
}

.listing-quick-review__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.9fr) minmax(280px, 0.8fr);
  align-items: start;
}

.listing-quick-review__lane {
  min-width: 0;
  padding: 24px;
}

.listing-quick-review__lane:first-child {
  padding-left: 0;
}

.listing-quick-review__lane:last-child {
  padding-right: 0;
}

.listing-quick-review__lane + .listing-quick-review__lane {
  border-left: 1px solid var(--line);
}

.listing-quick-review__lane-head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 16px;
}

.listing-quick-review__step {
  display: inline-grid;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  place-items: center;
  border-radius: 50%;
  background: var(--soft-accent);
  color: var(--accent-strong);
  font-weight: 700;
}

.listing-quick-review__progress {
  min-height: 22px;
  margin-bottom: 8px;
}

.listing-quick-review__progress-meter {
  display: grid;
  gap: 5px;
  margin: 0 0 14px;
}

.listing-quick-review__progress-meter progress {
  width: 100%;
  height: 7px;
  accent-color: var(--primary);
}

.listing-quick-review__progress-meter small {
  color: var(--muted);
}

.listing-quick-review__exceptions {
  display: grid;
  gap: 8px;
  margin: 0 0 16px;
  padding: 12px;
  border: 1px solid #e6c67c;
  border-radius: 6px;
  background: #fff8e8;
}

.listing-quick-review__exceptions > div,
.listing-quick-review__exceptions article {
  display: grid;
  gap: 2px;
}

.listing-quick-review__exceptions span,
.listing-quick-review__exceptions small {
  color: var(--muted-text);
}

.listing-quick-review__accept {
  margin: 0 0 18px;
  padding: 14px;
  border: 1px solid #b8d9ce;
  border-radius: 6px;
  background: #f4faf8;
}

.listing-quick-review__accept-head,
.listing-quick-review__accept-values article {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.listing-quick-review__accept-head > div,
.listing-quick-review__accept-change,
.listing-quick-review__accept-destinations {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.listing-quick-review__accept-head span,
.listing-quick-review__accept-change small,
.listing-quick-review__accept > small,
.listing-quick-review__accept .muted-copy {
  color: var(--muted);
}

.listing-quick-review__accept-values {
  margin: 10px 0;
  border-top: 1px solid #cfe3dc;
}

.listing-quick-review__accept-values article {
  padding: 10px 0;
  border-bottom: 1px solid #dbeae5;
}

.listing-quick-review__accept-change span,
.listing-quick-review__accept-destinations span {
  overflow-wrap: anywhere;
}

.listing-quick-review__accept-change s {
  color: var(--muted);
}

.listing-quick-review__accept-destinations {
  max-width: 48%;
  color: var(--muted);
  font-size: 0.84rem;
  text-align: right;
}

.listing-quick-review__accept .muted-copy {
  margin: 10px 0 0;
}

.listing-quick-review__values + .listing-quick-review__values {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.listing-quick-review__values-head,
.listing-quick-review__value,
.listing-quick-review__channels article {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.listing-quick-review__values-head {
  margin-bottom: 6px;
}

.listing-quick-review__values-head span,
.listing-quick-review__values > small,
.listing-quick-review__value span,
.listing-quick-review__channels span,
.listing-quick-review__channels small {
  color: var(--muted);
}

.listing-quick-review__value {
  padding: 9px 0;
  border-top: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}

.listing-quick-review__more-values {
  margin-top: 6px;
}

.listing-quick-review__value > div,
.listing-quick-review__channels article > div {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.listing-quick-review__value > div > span,
.listing-quick-review__channels small {
  overflow-wrap: anywhere;
}

.listing-quick-review__destinations {
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.listing-quick-review__preparation-receipt {
  margin: 14px 0 10px;
}

.listing-quick-review__receipt-rows {
  display: grid;
  gap: 5px;
  padding: 8px 0 2px;
  color: var(--muted);
  font-size: 0.84rem;
}

.listing-quick-review__lane--photos .workspace-review-photo-add {
  padding: 0;
  border: 0;
  background: transparent;
}

.listing-quick-review__lane--photos .workspace-review-photo-add__copy {
  display: none;
}

.listing-quick-review__channels article {
  align-items: flex-start;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.listing-quick-review__channels .button {
  flex: 0 0 auto;
}

.listing-quick-review__channel-category {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: 10px;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  color: inherit;
  text-decoration: none;
}

.listing-quick-review__channel-groups {
  display: grid;
  gap: 0;
  margin-top: 9px;
  border-top: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}

.listing-quick-review__channel-group-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 0;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  color: inherit;
  font-size: 0.82rem;
  text-decoration: none;
}

.listing-quick-review__channel-category:hover b,
.listing-quick-review__channel-category:focus-visible b,
.listing-quick-review__channel-group-link:hover b,
.listing-quick-review__channel-group-link:focus-visible b {
  color: var(--accent-strong);
  text-decoration: underline;
}

.listing-quick-review__channel-category span,
.listing-quick-review__channel-category b {
  min-width: 0;
  overflow-wrap: anywhere;
}

.listing-quick-review__footer {
  display: flex;
  justify-content: flex-end;
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.listing-quick-review__footer > div {
  display: flex;
  gap: 16px;
}

@media (max-width: 1050px) {
  .listing-quick-review__grid {
    grid-template-columns: 1fr;
  }

  .listing-quick-review__lane,
  .listing-quick-review__lane:first-child,
  .listing-quick-review__lane:last-child {
    padding: 20px 0;
  }

  .listing-quick-review__lane + .listing-quick-review__lane {
    border-top: 1px solid var(--line);
    border-left: 0;
  }
}

@media (max-width: 640px) {
  .listing-quick-review__header,
  .listing-quick-review__footer,
  .listing-quick-review__next-action,
  .listing-quick-review__accept-head,
  .listing-quick-review__accept-values article,
  .listing-quick-review__channels article {
    align-items: stretch;
    flex-direction: column;
  }

  .listing-quick-review__status {
    position: static;
  }

  .listing-quick-review__channels .button {
    width: 100%;
  }

  .listing-quick-review__accept-destinations {
    max-width: none;
    text-align: left;
  }
}

.workspace-review-progress {
  position: sticky;
  top: 8px;
  z-index: 6;
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 9px;
  border: 1px solid #cfe0db;
  border-radius: 5px;
  background: #f6faf8;
  box-shadow: 0 5px 12px rgba(23, 63, 55, 0.07);
}

.workspace-review-progress > div {
  display: grid;
  min-width: 0;
  gap: 1px;
}

.workspace-review-progress strong {
  color: #173f37;
  font-size: 12px;
}

.workspace-review-progress [data-review-progress-copy] {
  color: var(--text-soft);
  font-size: 10px;
}

.workspace-review-progress [data-review-progress-action] {
  flex: 0 0 auto;
  text-decoration: none;
  white-space: nowrap;
}

.workspace-review-sequence {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.workspace-review-sequence li {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 5px;
  color: var(--text-soft);
}

.workspace-review-sequence li + li::before {
  content: "/";
  margin-right: 2px;
  color: #a9b7b4;
}

.workspace-review-sequence li > span {
  display: grid;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  place-items: center;
  border: 1px solid #c9d8d4;
  border-radius: 50%;
  background: #fff;
  font-size: 9px;
  font-weight: 800;
}

.workspace-review-sequence li.is-current > span {
  border-color: #2c806e;
  background: #2c806e;
  color: #fff;
}

.workspace-review-sequence li.is-ready > span {
  border-color: #8ebcae;
  color: #24695b;
}

.workspace-review-sequence strong {
  color: #29433e;
  font-size: 11px;
}

.workspace-review-sequence small {
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 720px) {
  .workspace-review-sequence {
    align-items: flex-start;
    flex-direction: column;
  }

  .workspace-review-sequence li + li::before {
    content: none;
  }
}

.workspace-review-coverage {
  display: grid;
  gap: 5px;
  padding: 7px 8px;
  border-left: 3px solid #2c806e;
  background: #f5faf8;
}

.workspace-review-coverage__answer {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.workspace-review-coverage__answer > div {
  display: grid;
  min-width: 0;
  gap: 1px;
}

.workspace-review-coverage__answer strong {
  color: #173f37;
  font-size: 12px;
}

.workspace-review-coverage__counts {
  color: var(--text-soft);
  font-size: 10px;
}

.workspace-review-coverage__detail {
  margin: 0;
}

.workspace-review-coverage__destinations {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px 12px;
  padding: 7px 8px 3px;
}

.workspace-review-coverage__destinations > * {
  display: flex;
  min-width: 0;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding: 3px 0;
  color: inherit;
  text-decoration: none;
}

.workspace-review-coverage__destinations span {
  color: var(--text-soft);
  font-size: 10px;
  text-align: right;
}

.workspace-review-coverage__gaps {
  padding: 3px 8px 7px;
}

.listing-rule-memory-activation {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(360px, 1.2fr);
  align-items: center;
  gap: 9px 16px;
  margin: 8px 0;
  padding: 9px 10px;
  border: 1px solid #9fcabb;
  border-left: 4px solid #2c806e;
  border-radius: 5px;
  background: #f3faf7;
}

.listing-rule-memory-activation > div {
  display: grid;
  gap: 2px;
}

.listing-rule-memory-activation strong {
  color: #173f37;
  font-size: 13px;
}

.listing-rule-memory-activation small {
  color: var(--text-soft);
}

@media (max-width: 720px) {
  .workspace-review-coverage__destinations {
    grid-template-columns: minmax(0, 1fr);
  }

  .listing-rule-memory-activation {
    grid-template-columns: minmax(0, 1fr);
  }
}

.workspace-review-finish {
  display: grid;
  gap: 6px;
  padding: 7px;
  border: 1px solid #cfe0db;
  border-radius: 5px;
  background: #f6faf8;
}

.workspace-review-finish__head,
.workspace-review-finish__row {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.workspace-review-finish__head > div,
.workspace-review-finish__state {
  display: grid;
  min-width: 0;
  gap: 1px;
}

.workspace-review-finish__head strong,
.workspace-review-finish__state strong {
  color: #173f37;
  font-size: 12px;
}

.workspace-review-finish__rows {
  display: grid;
  border: 1px solid #dbe5e2;
  border-radius: 4px;
  background: #fff;
}

.workspace-review-local-save {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px;
  border: 1px solid #b9d6cc;
  border-radius: 4px;
  background: #fff;
}

.workspace-review-local-save > div:first-child {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.workspace-review-local-save strong {
  color: #173f37;
  font-size: 12px;
}

.workspace-review-local-save small {
  color: var(--text-soft);
  font-size: 10px;
}

.workspace-review-output-lanes {
  display: flex;
  flex-wrap: wrap;
  gap: 3px 10px;
  color: var(--text-soft);
  font-size: 10px;
}

.workspace-review-output-lanes b {
  color: #29433e;
}

.workspace-review-finish__row {
  padding: 7px 8px;
  border-left: 3px solid #4b927f;
  border-bottom: 1px solid #e4ebe9;
}

.workspace-review-finish__row:last-child {
  border-bottom: 0;
}

.workspace-review-finish__row--warn {
  border-left-color: #b7791f;
}

.workspace-review-finish__row--danger {
  border-left-color: #b43b35;
}

.workspace-review-finish__state > span {
  color: var(--text-soft);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.workspace-review-finish__state small {
  color: var(--text-soft);
  font-size: 10px;
}

.workspace-review-handoff {
  display: grid;
  grid-template-columns: minmax(190px, 0.75fr) minmax(260px, 1.25fr) auto;
  align-items: center;
  gap: 7px 12px;
  padding: 6px 8px;
  border-left: 3px solid #2c806e;
  background: #f3f9f7;
}

.workspace-review-handoff[data-handoff-state="partial"] {
  border-left-color: #b7791f;
  background: #fff9ee;
}

.workspace-review-handoff__copy {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.workspace-review-handoff__copy strong {
  color: #173f37;
  font-size: 12px;
}

.workspace-review-handoff__copy > span:last-child {
  color: var(--text-soft);
  font-size: 10px;
}

.workspace-review-handoff__fields {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  gap: 4px;
}

.workspace-review-handoff__fields span {
  padding: 2px 5px;
  border: 1px solid #d5e3df;
  border-radius: 3px;
  background: #fff;
  color: #29433e;
  font-size: 9px;
}

.workspace-review-photo-add {
  display: grid;
  grid-template-columns: minmax(180px, 0.8fr) minmax(240px, 1.2fr) auto;
  align-items: center;
  gap: 7px 10px;
  padding: 7px;
  border: 1px solid #dbe7e3;
  border-radius: 5px;
  background: #f7fbf9;
}

.workspace-review-photo-add--required {
  border-color: #d7a34a;
  border-left: 3px solid #b7791f;
  background: #fff9ee;
}

.workspace-review-photo-add__copy {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.workspace-review-photo-add__copy strong {
  color: #173f37;
  font-size: 12px;
}

.workspace-review-photo-dropzone {
  display: flex;
  min-width: 0;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px 8px;
  padding: 5px 7px;
  border: 1px dashed #91b7aa;
  border-radius: 5px;
  background: #fff;
}

.workspace-review-photo-dropzone.is-dragging {
  border-color: #147a66;
  background: #eef8f4;
}

.workspace-review-photo-dropzone > span,
.workspace-review-photo-dropzone > small {
  color: var(--text-soft);
  font-size: 10px;
}

.workspace-review-photo-dropzone [data-photo-upload-status]:not(:empty) {
  flex-basis: 100%;
  color: #174f45;
}

.workspace-review-photo-add__previews {
  display: flex;
  gap: 4px;
}

.workspace-review-route-bar {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 5px 7px;
  border: 1px solid #dbe5e2;
  border-radius: 5px;
  background: #f7faf9;
}

.workspace-review-route-bar__copy {
  display: grid;
  min-width: 0;
  gap: 1px;
}

.workspace-review-route-bar__copy strong {
  color: #173f37;
  font-size: 11px;
}

.workspace-review-route-bar__copy span {
  color: var(--text-soft);
  font-size: 10px;
}

.workspace-review-result-ledger {
  display: flex;
  flex-wrap: wrap;
  gap: 3px 8px;
  margin-top: 2px;
}

.workspace-review-result-ledger span {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
}

.workspace-review-result-ledger strong {
  color: #173f37;
}

.workspace-review-route-bar__actions {
  margin-left: auto;
  justify-content: flex-end;
}

.workspace-review-advanced {
  position: relative;
}

.workspace-review-advanced > summary {
  list-style: none;
}

.workspace-review-advanced > summary::-webkit-details-marker {
  display: none;
}

.workspace-review-advanced__panel {
  position: absolute;
  z-index: 20;
  top: calc(100% + 4px);
  right: 0;
  display: grid;
  width: min(330px, 82vw);
  overflow: hidden;
  border: 1px solid #cfdcda;
  border-radius: 5px;
  background: #fff;
  box-shadow: 0 8px 20px rgb(24 58 51 / 14%);
}

.workspace-review-advanced__panel a {
  display: grid;
  gap: 1px;
  padding: 7px 9px;
  border-bottom: 1px solid #e5ecea;
  color: #173f37;
  text-decoration: none;
}

.workspace-review-advanced__panel a:last-child {
  border-bottom: 0;
}

.workspace-review-advanced__panel a:hover,
.workspace-review-advanced__panel a:focus-visible {
  background: #f1f8f5;
}

.workspace-review-advanced__panel span {
  font-size: 11px;
  font-weight: 800;
}

.workspace-review-advanced__panel small {
  color: var(--text-soft);
  font-size: 9px;
}

.workspace-review-photo-add__previews:empty {
  display: none;
}

.workspace-review-photo-preview {
  position: relative;
  width: 54px;
  height: 54px;
  overflow: hidden;
  border: 1px solid #d9e3e0;
  border-radius: 4px;
  background: #fff;
}

.workspace-review-photo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.workspace-review-photo-preview .status-chip {
  position: absolute;
  right: 2px;
  bottom: 2px;
  padding: 1px 3px;
  font-size: 8px;
}

.workspace-channel-review__table-wrap {
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  border: 1px solid #e0e7ea;
  border-radius: 5px;
  background: #fff;
}

.workspace-review-comparison {
  border-top: 1px solid #e0e7e5;
}

.workspace-review-comparison > summary {
  display: flex;
  align-items: center;
  gap: 6px 10px;
  padding: 6px 2px 2px;
  color: #29433e;
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
}

.workspace-review-comparison > summary small {
  color: var(--text-soft);
  font-size: 9px;
  font-weight: 500;
}

.workspace-review-comparison[open] > summary {
  padding-bottom: 6px;
}

.workspace-channel-review__table {
  width: 100%;
  min-width: 760px;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 11px;
}

.workspace-channel-review__table th,
.workspace-channel-review__table td {
  min-width: 0;
  padding: 5px 7px;
  border-bottom: 1px solid #e8edef;
  text-align: left;
  vertical-align: middle;
}

.workspace-channel-review__table tr:last-child th,
.workspace-channel-review__table tr:last-child td {
  border-bottom: 0;
}

.workspace-channel-review__table thead th {
  background: #f4f7f8;
  color: var(--text-soft);
  font-size: 10px;
  text-transform: uppercase;
}

.workspace-channel-review__table th:first-child {
  width: 110px;
  color: #29433e;
}

.workspace-channel-review__evidence {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  gap: 4px 12px;
  color: var(--text-soft);
  font-size: 10px;
}

.workspace-channel-review__evidence strong {
  color: #29433e;
}

@media (max-width: 1180px) {
  .workspace-command-deck {
    display: contents;
    position: static;
  }

  .workspace-command-deck .workspace-command--deck {
    grid-template-areas:
      "media summary"
      "overview overview"
      "channels channels"
      "tabs tabs"
      "surface-status surface-status";
    grid-template-columns: 64px minmax(0, 1fr);
    margin-bottom: 6px;
    border: 1px solid #cfd9df;
    border-radius: 7px;
    box-shadow: 0 5px 16px rgba(22, 38, 50, 0.08);
  }

  .workspace-command-deck .workspace-action-bar--compact {
    position: sticky;
    top: 0;
    z-index: 18;
    margin-bottom: 10px;
    border: 1px solid #cfd9df;
    border-radius: 7px;
    background: #fff;
    box-shadow: 0 5px 16px rgba(22, 38, 50, 0.1);
  }
}

@media (max-width: 720px) {
  .photo-rules-panel {
    position: fixed;
    top: 12px;
    right: 12px;
    left: 12px;
    width: auto;
    max-height: calc(100vh - 24px);
    overflow: auto;
  }

  .workspace-review-finish__head,
  .workspace-review-finish__row,
  .workspace-review-local-save {
    align-items: flex-start;
    flex-direction: column;
  }

  .workspace-review-progress {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  .workspace-review-handoff {
    grid-template-columns: 1fr;
  }

  .workspace-review-route-bar {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .workspace-review-route-bar__actions {
    width: 100%;
    margin-left: 0;
    justify-content: stretch;
  }

  .workspace-review-route-bar__actions > .button {
    flex: 1 1 auto;
  }

  .workspace-review-advanced__panel {
    position: fixed;
    top: auto;
    right: 12px;
    bottom: 12px;
    left: 12px;
    width: auto;
  }

  .workspace-review-photo-add {
    grid-template-columns: 1fr;
  }

  .workspace-review-photo-add > .button {
    justify-self: start;
  }

  .workspace-focus-strip {
    align-items: flex-start;
    flex-direction: column;
  }

  .workspace-command__overview,
  [data-workspace-presentation="tabs"] .workspace-surface-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .compact-channel-command {
    grid-template-columns: minmax(0, 1fr);
  }

  .listing-finish-queue__items {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .listing-finish-queue__item:nth-child(odd) {
    border-left: 0;
  }

  .workspace-surface-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .workspace-surface-utilities {
    justify-content: space-between;
  }

  .workspace-command__metric:nth-child(2) {
    border-right: 0;
  }

  .workspace-command-deck .workspace-action-bar--compact {
    align-items: stretch;
  }

  .specific-field-summary {
    grid-template-columns: minmax(110px, 0.8fr) minmax(120px, 1.2fr) auto;
  }

  .specific-field-summary__state .specific-priority-badge--recommended {
    display: none;
  }
}

.workspace-blockers {
  padding-top: 2px;
}

.workspace-command__summary h2 {
  line-height: 1.2;
}

.workspace-section--compact > summary {
  min-height: 46px;
  padding: 11px 14px;
  font-size: 15px;
}

.workspace-section-body {
  gap: 12px;
  padding: 0 14px 14px;
}

.workspace-section-body .field-row {
  gap: 5px;
}

.field-row label,
.compact-label,
.specific-field > label {
  color: #24313d;
  font-size: 13px;
  font-weight: 850;
}

.field-row small,
.muted-copy,
.subtle,
.workspace-note.compact-note,
.info-disclosure p {
  color: var(--text-soft);
  font-size: 12px;
  line-height: 1.45;
}

.workspace-section--category .workspace-grid {
  grid-template-columns: minmax(220px, 340px) minmax(260px, 420px) minmax(180px, 260px);
}

.workspace-section--condition .workspace-grid {
  grid-template-columns: minmax(220px, 320px) minmax(360px, 1fr);
  align-items: start;
}

.workspace-section--condition .field-condition_id select {
  max-width: 320px;
}

.workspace-section--condition .field-condition_description textarea {
  min-height: 128px;
  resize: vertical;
}

.workspace-section--pricing .workspace-grid,
.workspace-section--delivery .workspace-grid {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.photo-role-empty {
  max-height: 120px;
  min-height: 96px;
}

.gallery-warning-list--compact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 6px 16px;
  padding: 8px 12px;
}

.validation-end-panel {
  margin-top: 12px;
}

.validation-end-panel:not([open]) {
  margin-bottom: 10px;
}

.validation-end-panel .action-needed-summary {
  min-height: 44px;
}

.action-needed-summary::before {
  content: "\25b8";
  color: var(--muted);
  font-weight: 900;
}

.action-needed-panel--single[open] .action-needed-summary::before {
  content: "\25be";
}

.checklist--compact-actionable li {
  grid-template-columns: minmax(150px, 0.7fr) minmax(220px, 1.1fr) minmax(240px, 1.4fr) auto;
}

input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-height: 18px;
  accent-color: var(--accent);
  vertical-align: middle;
}

th input[type="checkbox"],
td input[type="checkbox"],
.ops-product-table input[type="checkbox"] {
  display: block;
  margin: 0 auto;
}

.suggestion-row input[type="checkbox"],
.export-confirm-row input[type="checkbox"],
.validation-toggle input[type="checkbox"],
.specific-field--multi input[type="checkbox"] {
  flex: 0 0 auto;
  margin: 0;
}

.suggestion-row,
.validation-toggle,
.export-confirm-row label,
.specific-field--multi label {
  align-items: center;
}

.specific-field--multi label {
  min-height: 34px;
  padding: 7px 10px;
  border-radius: 999px;
}

.specific-field--multi input[type="checkbox"]:disabled + span,
.specific-field--multi label:has(input:disabled) {
  opacity: 0.55;
}

.section-status,
.status-chip {
  align-self: center;
}

.secondary-workspace-panel {
  margin-top: 10px;
}

@media (max-width: 1040px) {
  .workspace-section--category .workspace-grid,
  .workspace-section--condition .workspace-grid {
    grid-template-columns: 1fr;
  }

  .checklist--compact-actionable li {
    grid-template-columns: 1fr;
  }
}

/* Single export validation bar pass */
.workspace-command .workspace-blockers {
  display: none;
}

.workspace-action-bar--compact {
  align-items: center;
  gap: 12px;
  position: sticky;
  top: 0;
  z-index: 8;
}

.workspace-action-bar--compact .workspace-action-bar__meta {
  align-items: center;
  gap: 8px;
}

.workspace-action-bar--compact .save-state {
  font-size: 12px;
  color: var(--text-soft);
  white-space: nowrap;
}

.workspace-action-bar--compact [data-show-checks-button],
.workspace-action-bar--compact [data-export-open] {
  white-space: nowrap;
}

.workspace-check-button {
  border-color: #174f85;
  background: #174f85;
  color: #ffffff;
  font-weight: 900;
  box-shadow: 0 2px 0 rgba(23, 79, 133, 0.18);
}

.workspace-more-menu {
  position: relative;
}

.workspace-more-menu > summary {
  list-style: none;
  cursor: pointer;
}

.workspace-more-menu > summary::-webkit-details-marker {
  display: none;
}

.workspace-more-menu__panel {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 18;
  display: grid;
  gap: 6px;
  min-width: 180px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.16);
}

.workspace-more-menu__panel .button {
  justify-content: flex-start;
  width: 100%;
  white-space: nowrap;
}

.validation-top-panel {
  margin-top: -8px;
  margin-bottom: 12px;
}

.validation-end-panel.is-attention {
  box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.22);
  border-color: #f59e0b;
}

.export-summary-panel .panel-head {
  align-items: flex-start;
}

.workspace-mini-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
  margin: 10px 0;
}

.workspace-mini-grid > div {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  padding: 8px 10px;
}

.workspace-mini-grid strong {
  display: block;
  overflow-wrap: anywhere;
}

.compact-warning-list,
.modal-warning-list ul {
  margin: 8px 0 0;
  padding-left: 18px;
}

.compact-warning-list li,
.modal-warning-list li {
  margin: 3px 0;
}

.export-confirm-dialog {
  width: min(760px, calc(100vw - 32px));
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0;
  color: var(--text);
  background: var(--panel);
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.24);
}

.export-confirm-dialog::backdrop {
  background: rgba(15, 23, 42, 0.35);
}

.export-confirm-dialog__panel {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.modal-warning-list {
  border: 1px solid #f6c76f;
  background: #fff8e8;
  border-radius: 8px;
  padding: 10px 12px;
}

.export-confirm-dialog__actions {
  justify-content: flex-end;
}

@media (max-width: 820px) {
  .workspace-action-bar--compact {
    align-items: stretch;
  }

  .workspace-action-bar--compact .workspace-action-bar__meta,
  .workspace-action-bar--compact .action-row {
    justify-content: flex-start;
  }

  .workspace-more-menu__panel {
    right: auto;
    left: 0;
  }
}


/* Lightweight Shopify channel panel */
.channel-led-section {
  margin-bottom: 12px;
}

.channel-panel,
.channel-workspace {
  overflow: hidden;
}

.channel-panel {
  padding: 0;
}

.channel-panel-summary {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  min-height: 58px;
  padding: 10px 14px;
  cursor: pointer;
  list-style: none;
  text-align: left;
}

.channel-panel-summary::-webkit-details-marker {
  display: none;
}

.channel-panel-summary::before {
  content: none;
}

.channel-panel-toggle {
  display: grid;
  place-items: center;
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  border: 1px solid #b9e0c7;
  border-radius: 999px;
  background: #ffffff;
  color: #17653b;
  font-weight: 900;
}

.channel-panel[open] .channel-panel-toggle {
  font-size: 0;
}

.channel-panel[open] .channel-panel-toggle::after {
  content: "-";
  font-size: 14px;
}

.channel-panel-summary__title {
  display: grid;
  gap: 2px;
  flex: 1 1 320px;
  min-width: 0;
}

.channel-panel-summary__title h2,
.channel-workspace__head h2 {
  margin: 0;
  color: #172331;
  font-size: 19px;
}

.channel-panel-summary__title small {
  color: var(--text-soft);
  font-size: 12px;
}

.channel-panel-summary__meta,
.channel-workspace__status {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.channel-panel-summary__meta {
  flex: 1 1 360px;
  align-items: center;
  color: var(--text-soft);
  font-size: 12px;
}

.channel-panel-summary__meta > span:not(.status-chip) {
  overflow: hidden;
  max-width: 100%;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.channel-panel-body {
  display: grid;
  gap: 10px;
  padding: 0 14px 14px;
}

.shopify-layout-region,
.workspace-main[data-layout-region="ebay"] {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-items: start;
}

.shopify-layout-block {
  min-width: 0;
}

.layout-section--width-full {
  grid-column: 1 / -1;
}

.layout-section--width-half {
  grid-column: span 1;
}

.shopify-layout-card {
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid #d7ece3;
  border-radius: 8px;
  background: #ffffff;
}

.channel-panel--shopify {
  border-color: #d9e3ea;
  background: #ffffff;
  box-shadow: inset 4px 0 0 rgba(19, 120, 101, 0.24);
}

.channel-panel--shopify .channel-panel-summary {
  background: linear-gradient(180deg, #ffffff, #f7fafc);
}

.channel-workspace--ebay {
  padding: 0;
  border-color: #cfe1f5;
  background: #f7fbff;
}

.channel-workspace__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  border-bottom: 1px solid #dce8f6;
  background: linear-gradient(180deg, #ffffff, #f1f7ff);
}

.channel-workspace__head p {
  margin: 0;
}

.ebay-workspace-navigator {
  position: sticky;
  top: 0;
  z-index: 6;
  display: grid;
  grid-template-columns: minmax(170px, 0.7fr) minmax(0, 1.6fr) auto;
  gap: 8px;
  align-items: center;
  padding: 8px 12px;
  border-bottom: 1px solid #dce8f6;
  background: rgba(247, 251, 255, 0.96);
  backdrop-filter: blur(6px);
}

.ebay-workspace-navigator__summary {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.ebay-workspace-navigator__summary strong {
  color: #152533;
  font-size: 12px;
}

.ebay-workspace-navigator__summary span {
  overflow: hidden;
  color: var(--text-soft);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ebay-workspace-navigator__links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}

.ebay-workspace-navigator__links a {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 9px;
  border: 1px solid #cfdae5;
  border-radius: 999px;
  background: #fff;
  color: #264052;
  font-size: 12px;
  font-weight: 850;
  text-decoration: none;
  white-space: nowrap;
}

.ebay-workspace-navigator__links a:hover,
.ebay-workspace-navigator__links a:focus-visible,
.ebay-workspace-navigator__links a[aria-current="true"] {
  border-color: #75b9a9;
  background: #eefaf6;
  color: var(--accent-strong);
}

.ebay-workspace-navigator__select {
  display: none;
  gap: 3px;
  min-width: 0;
  color: var(--text-soft);
  font-size: 11px;
  font-weight: 850;
}

.ebay-workspace-navigator__select select {
  min-height: 30px;
  border-radius: 999px;
  font-size: 12px;
}

.workspace-attention-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  padding: 9px 14px;
  border-bottom: 1px solid #dce8f6;
  background: #ffffff;
}

.workspace-attention-strip > strong {
  color: #344254;
  font-size: 12px;
}

.workspace-attention-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: 100%;
  padding: 4px 8px;
  border: 1px solid #d8e2ea;
  border-radius: 999px;
  background: #fbfcfd;
  color: #25313d;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.workspace-attention-pill small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.workspace-attention-pill.is-blocking {
  border-color: #f1c6c6;
  background: #fff6f6;
}

.workspace-attention-pill.is-warning {
  border-color: #f3d99f;
  background: #fffaf0;
}

.workspace-native-summary {
  align-items: center;
  border-right: 0;
  border-left: 0;
  border-radius: 0;
  background: #eef9f6;
}

.workspace-native-summary > span,
.workspace-native-summary > strong {
  line-height: 1.25;
}

.workspace-technical-evidence {
  margin: 0;
  border-right: 0;
  border-left: 0;
  border-radius: 0;
  background: #f7fafc;
}

.workspace-technical-evidence > summary {
  min-height: 32px;
  padding: 6px 12px;
  color: #385568;
  font-size: 12px;
}

.workspace-technical-evidence:not([open]) > summary {
  border-bottom: 0;
}

.workspace-technical-evidence[open] {
  padding-bottom: 8px;
}

.workspace-technical-evidence[open] > :not(summary) {
  margin-right: 12px;
  margin-left: 12px;
}

.workspace-technical-evidence__inline {
  flex-basis: 100%;
  max-width: 100%;
}

.channel-workspace--ebay .workspace-layout--tight {
  padding: 12px;
}

.workspace-staff-layout {
  background: linear-gradient(180deg, #f7fbff 0, #f8fbfd 38%, #f6faf8 100%);
}

.workspace-main--staff {
  gap: 9px;
}

.workspace-section--staff-content > summary {
  border-left: 4px solid #85c7bd;
}

.workspace-section--staff-photos > summary {
  border-left: 4px solid #8ab4e8;
}

.workspace-section--staff-marketplace > summary {
  border-left: 4px solid #a7d7b9;
}

.workspace-section--staff-commercial > summary {
  border-left: 4px solid #e8c36d;
}

.workspace-section--staff-advanced > summary,
.workspace-section--staff-review > summary {
  border-left: 4px solid #c9d4df;
}

.workspace-section--staff-advanced[data-section-state="complete"]:not([open]) > summary,
.workspace-section--staff-advanced[data-section-state="quiet"]:not([open]) > summary,
.workspace-section--staff-review[data-section-state="complete"]:not([open]) > summary,
.workspace-section--staff-review[data-section-state="quiet"]:not([open]) > summary {
  min-height: 32px;
  background: #fbfcfd;
}

.shopify-channel-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  min-width: 0;
}

.shopify-channel-panel > .channel-panel-summary,
.shopify-channel-panel > .channel-panel-body {
  max-width: 100%;
  min-width: 0;
}

.shopify-channel-panel__actions {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.shopify-guidance-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: center;
  border: 1px solid #d8e8e3;
  border-radius: 8px;
  padding: 8px 10px;
  background: #f8fbfa;
  color: #244a40;
  font-size: 12px;
}

.shopify-guidance-row strong {
  color: #16402a;
}

.shopify-compact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 8px;
}

.shopify-compact-grid > div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 10px;
}

.workspace-density--shopify-compact .shopify-layout-card,
.workspace-density--shopify-compact .shopify-compact-grid > div,
.workspace-density--shopify-compact .shopify-draft-panel {
  padding: 8px;
}

.workspace-density--ebay-compact .workspace-section--compact > summary {
  padding: 9px 12px;
}

.workspace-density--ebay-compact .workspace-section-body {
  padding: 10px;
}

.workspace-staff-shell .description-editor .rich-editor,
.workspace-staff-shell .description-editor .description-html-source {
  min-height: 150px;
  max-height: 260px;
  overflow: auto;
}

.workspace-staff-shell .description-editor .editor-toolbar {
  gap: 4px;
}

.workspace-staff-shell .description-editor .description-layer-heading {
  margin-bottom: 2px;
}

.workspace-staff-shell .channel-description-frame {
  max-height: 240px;
}

.workspace-staff-shell .policy-workspace-panel {
  gap: 8px;
}

.workspace-staff-shell .policy-card-grid {
  gap: 7px;
}

.workspace-staff-shell .policy-card {
  padding: 8px;
}

.workspace-staff-shell .logistics-grid {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

@media (max-width: 920px) {
  .ebay-workspace-navigator {
    grid-template-columns: 1fr;
    position: static;
  }

  .ebay-workspace-navigator__links {
    display: none;
  }

  .ebay-workspace-navigator__select {
    display: grid;
  }

  .shopify-layout-region,
  .workspace-main[data-layout-region="ebay"] {
    grid-template-columns: 1fr;
  }

  .layout-section--width-half,
  .layout-section--width-full {
    grid-column: 1 / -1;
  }
}

.shopify-compact-grid strong,
.shopify-compact-grid small,
.shopify-compact-grid a {
  display: block;
}

.shopify-compact-grid strong {
  overflow: hidden;
  color: #1e2b37;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shopify-compact-grid small {
  color: var(--text-soft);
  font-size: 12px;
}

.shopify-compact-grid a {
  margin-top: 3px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
}

.shopify-light-region {
  grid-template-columns: 1fr;
}

.shopify-product-publishing,
.shopify-photos-row {
  display: grid;
  gap: 9px;
  border: 1px solid #d9e3ea;
  border-radius: 8px;
  background: #fff;
  padding: 10px;
}

.shopify-operation-grid {
  display: grid;
  grid-template-columns: minmax(280px, 1.7fr) minmax(120px, 0.55fr) minmax(120px, 0.5fr) minmax(170px, 0.75fr);
  gap: 8px;
  align-items: start;
}

.shopify-operation-field {
  display: grid;
  align-content: start;
  gap: 3px;
  min-width: 0;
  border: 1px solid #e1e8ee;
  border-radius: 6px;
  background: #fbfcfd;
  padding: 7px;
}

.shopify-operation-field small {
  overflow: hidden;
  max-width: 100%;
  color: var(--text-soft);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shopify-operation-field input,
.shopify-operation-field select {
  min-width: 0;
  min-height: 32px;
  font-size: 13px;
}

.shopify-readiness-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: center;
}

.shopify-operational-context {
  margin-top: 0;
}

.shopify-operational-context > summary {
  min-height: 32px;
}

.shopify-context-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding-top: 7px;
}

.shopify-context-grid > div {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 7px;
  border: 1px solid #e1e8ee;
  border-radius: 6px;
  background: #fbfcfd;
}

.shopify-context-grid strong,
.shopify-context-grid small {
  overflow: hidden;
  text-overflow: ellipsis;
}

.shopify-context-grid small {
  color: var(--text-soft);
  font-size: 11px;
}

.shopify-classification-pointer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 7px;
}

.shopify-classification-pointer > div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.shopify-classification-pointer span {
  color: var(--text-soft);
  font-size: 12px;
}

.shopify-primary-actions {
  border-top: 1px solid #edf1f4;
  padding-top: 8px;
}

.shopify-summary-meta {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
  color: var(--text-soft);
  font-size: 12px;
}

.shopify-photos-row {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.shopify-photos-row strong,
.shopify-photos-row small {
  display: block;
}

.shopify-connection-activity:not([open]),
.shopify-description-draft:not([open]) {
  padding: 8px 10px;
}

.shopify-connection-activity:not([open]) > summary,
.shopify-description-draft:not([open]) > summary {
  border-bottom: 0;
}

.shopify-detail-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 6px 10px;
  margin: 0 0 10px;
}

.shopify-detail-list div {
  min-width: 0;
}

.shopify-detail-list dt {
  color: var(--text-soft);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.shopify-detail-list dd {
  margin: 0;
  overflow-wrap: anywhere;
  color: #1d2c3a;
  font-size: 12px;
  font-weight: 750;
}

.mini-label {
  display: block;
  color: var(--text-soft);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.shopify-draft-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 10px;
  display: grid;
  gap: 10px;
}

.shopify-draft-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(120px, 180px) minmax(120px, 160px);
  gap: 8px;
}

.shopify-draft-grid label,
.shopify-description-draft {
  display: grid;
  gap: 4px;
}

.shopify-draft-grid input,
.shopify-draft-grid select {
  min-height: 34px;
}

.shopify-description-draft summary {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-weight: 800;
}

.shopify-description-draft textarea {
  min-height: 120px;
  resize: vertical;
}

.shopify-description-draft textarea[readonly] {
  border-color: #d7e6dd;
  background: #f7fbf8;
  color: var(--text-soft);
}

.shopify-description-mode {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 6px 0;
}

.shopify-description-mode label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 9px;
  background: #fff;
  color: #25313d;
  font-size: 12px;
  font-weight: 850;
}

.shopify-description-mode input {
  width: 15px;
  height: 15px;
  min-height: 15px;
  margin: 0;
}

.shopify-description-status {
  margin: 0;
  color: var(--text-soft);
  font-size: 12px;
}

.shopify-description-empty-state {
  margin: 0;
  border: 1px solid #f2c979;
  border-radius: 8px;
  background: #fff8e6;
  color: #6a4a00;
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 750;
  overflow-wrap: anywhere;
}

.shopify-description-diagnostics {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 8px 10px;
}

.shopify-description-diagnostics summary {
  cursor: pointer;
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 850;
}

.shopify-description-diagnostics dl {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 8px;
  margin: 8px 0 0;
}

.shopify-description-diagnostics div {
  display: grid;
  gap: 2px;
}

.shopify-description-diagnostics dt {
  color: var(--text-soft);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.shopify-description-diagnostics dd {
  margin: 0;
  color: var(--text);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.shopify-description-editor {
  display: grid;
  gap: 8px;
}

.shopify-description-editor__mode {
  margin: 0;
}

.shopify-description-visual {
  min-height: 130px;
  max-height: 240px;
  overflow: auto;
  background: #ffffff;
}

.shopify-description-editor.is-synced .shopify-description-visual {
  border-color: #d7e6dd;
  background: #fbfefd;
}

.shopify-description-editor.is-synced .shopify-description-toolbar {
  opacity: 0.62;
}

.shopify-description-editor.html-mode .shopify-description-visual {
  display: none;
}

.shopify-description-editor.html-mode .shopify-description-source-panel {
  display: block;
}

.shopify-description-source-panel {
  display: none;
}

.shopify-description-actions {
  align-items: center;
}

.shopify-setup-details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 10px;
}

.shopify-setup-details summary,
.shopify-warning-panel--compact summary {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-weight: 800;
}

.shopify-job-list {
  list-style: none;
  margin: 10px 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.shopify-job-list li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel-soft);
  padding: 8px;
}

.shopify-job-list strong,
.shopify-job-list small {
  display: block;
}

.shopify-job-list small {
  color: var(--text-soft);
}

.shopify-warning-panel {
  border: 1px solid #f5c36b;
  border-radius: 8px;
  background: #fff8e8;
  padding: 10px 12px;
  color: #6b4f12;
}

.shopify-warning-panel--compact {
  padding: 8px 10px;
}

.shopify-warning-panel--compact:not([open]) {
  border-color: #f7ddb0;
  background: #fffdf6;
  padding: 6px 9px;
}

.shopify-warning-panel--compact[open] .compact-warning-list {
  margin-top: 6px;
}

.shopify-warning-panel strong {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
}

.shopify-warning-panel .compact-warning-list {
  margin: 0;
}

.shopify-link-sku {
  display: grid;
  gap: 4px;
  min-width: 210px;
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 700;
}

.shopify-link-sku input {
  min-height: 34px;
}

.shopify-secondary-grid {
  display: grid;
  grid-template-columns: minmax(220px, 0.9fr) minmax(260px, 1.1fr);
  gap: 10px;
  margin-top: 10px;
}

.shopify-secondary-grid h3 {
  margin: 0 0 6px;
  font-size: 13px;
}

.shopify-checklist-list {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.shopify-checklist-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 6px;
  background: var(--panel-soft);
}

.shopify-checklist-list small {
  color: var(--text-soft);
  font-size: 12px;
}

.shopify-disconnect-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: end;
  border-top: 1px solid #dce9df;
  padding-top: 10px;
}

@media (max-width: 820px) {
  .channel-panel-summary,
  .channel-workspace__head,
  .shopify-guidance-row,
  .shopify-disconnect-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .channel-panel-summary__meta,
  .channel-workspace__status {
    justify-content: flex-start;
  }

  .shopify-draft-grid {
    grid-template-columns: 1fr;
  }

  .shopify-operation-grid,
  .shopify-context-grid,
  .shopify-photos-row {
    grid-template-columns: 1fr;
  }

  .shopify-classification-pointer {
    align-items: flex-start;
    flex-direction: column;
  }

  .shopify-secondary-grid {
    grid-template-columns: 1fr;
  }

  .shopify-channel-panel__actions .button,
  .shopify-link-sku {
    width: 100%;
  }
}

/* Gallery drag/drop preview pass */
[data-gallery-preview] {
  cursor: zoom-in;
}

.gallery-preview-dialog {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0;
  width: min(1180px, calc(100vw - 28px));
  max-height: calc(100vh - 28px);
}

.gallery-preview-dialog::backdrop {
  background: rgba(15, 23, 42, 0.42);
}

.gallery-preview-dialog__panel {
  display: grid;
  gap: 10px;
  padding: 12px;
}

.gallery-preview-close {
  justify-self: end;
}

.gallery-preview-dialog__media {
  display: grid;
  grid-template-columns: auto minmax(180px, 1fr) auto;
  gap: 8px;
  align-items: center;
  overflow: auto;
  max-height: min(76vh, 820px);
  min-height: min(68vh, 720px);
  touch-action: none;
}

.gallery-preview-dialog__panel img {
  width: 100%;
  max-height: min(74vh, 800px);
  object-fit: contain;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
  justify-self: center;
}

.gallery-preview-dialog__panel img[data-zoom-mode="zoomed"] {
  max-height: none;
  cursor: grab;
}

.gallery-preview-dialog__media.is-panning img[data-zoom-mode="zoomed"] {
  cursor: grabbing;
}

.gallery-preview-zoom-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.gallery-preview-zoom-controls .is-active {
  border-color: var(--brand);
  background: #e6f6f3;
  color: var(--brand-strong);
}

.gallery-preview-zoom-label {
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 800;
}

.gallery-preview-nav {
  min-width: 34px;
  min-height: 34px;
}

.gallery-preview-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 4px 12px;
  min-width: 0;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
}

.gallery-preview-meta strong {
  grid-column: 1 / -1;
}

.gallery-preview-meta p {
  margin: 0;
}

.compact-warning-list {
  margin: 8px 0 12px;
  padding-left: 18px;
}


.metric-grid a.metric {
  color: inherit;
  text-decoration: none;
}

.metric small {
  display: block;
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.filter-grid {
  align-items: end;
}

.definition-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
  margin: 0;
}

.definition-grid div {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.75rem;
  background: var(--panel-soft);
}

.definition-grid dt {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 700;
  text-transform: uppercase;
}

.definition-grid dd {
  margin: 0.2rem 0 0;
  font-weight: 700;
}

.code-block {
  white-space: pre-wrap;
  background: #f7faf9;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.75rem;
  overflow: auto;
}

.job-detail-hero .panel-head {
  align-items: flex-start;
}

.job-related-links,
.job-diagnostics-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.job-related-links .button {
  min-height: 34px;
}

.job-diagnostics-grid > details {
  flex: 1 1 320px;
}

.job-staff-summary-panel .warning-list {
  margin: 14px 18px 16px;
}

.job-staff-summary-panel .warning-list p {
  margin: 0.2rem 0;
}

.job-staff-summary-grid small {
  display: block;
  margin-top: 0.2rem;
  color: var(--muted);
  font-weight: 650;
}

.sync-error-history-table th:last-child,
.sync-error-history-table td:last-child {
  width: auto;
  min-width: 260px;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
}

.sync-error-history-table th:nth-child(1),
.sync-error-history-table td:nth-child(1) {
  width: 150px;
}

.sync-error-history-table th:nth-child(2),
.sync-error-history-table td:nth-child(2),
.sync-error-history-table th:nth-child(3),
.sync-error-history-table td:nth-child(3) {
  width: 150px;
}

.job-error-message {
  margin: 0;
  padding: 0 18px 16px;
  color: #7f1d1d;
  font-weight: 700;
}

.workflow-guidance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.workflow-guidance-grid--dense {
  padding: 16px 18px 18px;
  margin-top: 0;
}

.guidance-card {
  display: flex;
  min-height: 118px;
  flex-direction: column;
  gap: 0.45rem;
  justify-content: space-between;
  border: 1px solid #dbe6ec;
  border-radius: 8px;
  background: #fbfefd;
  padding: 0.85rem;
}

.guidance-card--next {
  border-color: #b9d8d2;
  background: #edf8f5;
}

.guidance-card > span {
  color: #657386;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.guidance-card strong {
  color: #111827;
  line-height: 1.25;
}

.guidance-card small {
  color: #526273;
  line-height: 1.4;
}

.guidance-card .button {
  align-self: flex-start;
  margin-top: 0.2rem;
}
.action-menu-button {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
  padding: 0.4rem 0.55rem;
  border-radius: 6px;
  font: inherit;
  cursor: pointer;
}

.action-menu-button:hover,
.danger-link:hover {
  background: #eef6f4;
}

.action-menu-button.danger,
.danger-link {
  color: #9f1239;
}

.more-actions hr {
  width: 100%;
  border: 0;
  border-top: 1px solid var(--border);
  margin: 0.25rem 0;
}

/* Operations IA polish pass */
.sidebar {
  background: #fbfcfd;
}

.sidebar .brand {
  padding: 4px 6px;
  border-radius: 10px;
}

.sidebar-nav {
  gap: 3px;
}

.nav-link {
  position: relative;
  border: 1px solid transparent;
  font-weight: 650;
}

.nav-link.is-active {
  border-color: #c9ddd9;
  background: #edf7f4;
  color: #0f554e;
  box-shadow: inset 3px 0 0 #19736a;
}

.nav-link.is-active:hover {
  background: #e5f2ef;
}

.sidebar-nav--technical .nav-link.is-active {
  background: #f2f4f7;
  border-color: #d7dde5;
  color: #3f4a57;
  box-shadow: inset 3px 0 0 #657386;
}

.topbar {
  align-items: center;
  padding-bottom: 4px;
}

.topbar h1 {
  letter-spacing: 0;
}

.main {
  background:
    radial-gradient(circle at top left, rgba(25, 115, 106, 0.035), transparent 320px),
    linear-gradient(180deg, #f7f9fb 0, #f3f6f8 280px, #f6f7f8 100%);
}

.panel.ops-hero,
.panel.ops-panel {
  border-color: #d8e0e8;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 12px 28px rgba(15, 23, 42, 0.035);
}

.ops-hero {
  padding: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 253, 252, 0.98));
}

.ops-hero .panel-head {
  margin-bottom: 12px;
}

.ops-hero h2,
.ops-panel h2 {
  font-size: 18px;
}

.operations-workbench-page,
.operations-now-card,
.operations-needs-look-card {
  background: #ffffff;
}

.ops-workbench-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: 12px;
  min-width: 0;
}

.ops-workbench-card {
  display: grid;
  gap: 8px;
  min-height: 120px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
}

.ops-workbench-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.ops-workbench-card-head > * {
  min-width: 0;
}

.ops-workbench-card-head strong {
  font-size: 14px;
}

.ops-workbench-card p {
  margin: 0;
}

.quiet-details {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.quiet-details summary {
  cursor: pointer;
  color: var(--muted);
  font-weight: 700;
}

.summary-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr));
  gap: 10px;
  min-width: 0;
  margin: 0 0 14px;
}

.summary-strip--compact {
  margin-bottom: 12px;
}

.listing-improvement-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr));
  gap: 8px;
  margin: 0 0 12px;
}

.listing-improvement-summary article {
  display: grid;
  gap: 4px;
  min-height: 74px;
  padding: 10px 12px;
  border: 1px solid #dbe2ea;
  border-radius: 8px;
  background: #fff;
}

.listing-improvement-summary span {
  color: #5d6875;
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.listing-improvement-summary strong {
  color: #18212d;
  font-size: 20px;
}

.listing-improvement-summary p {
  margin: 0;
  color: #5d6875;
  font-size: 12px;
}

.listing-improvement-filter {
  grid-template-columns: repeat(auto-fit, minmax(min(165px, 100%), 1fr));
  align-items: end;
}

.listing-improvement-table {
  min-width: 1080px;
}

.mapping-review-table {
  min-width: 1360px;
}

.operating-centre-page {
  min-width: 0;
}

.operating-centre-header {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  justify-content: space-between;
  min-width: 0;
  margin-bottom: 10px;
}

.operating-centre-header > div {
  min-width: 0;
}

.operating-centre-header h2 {
  margin: 0 0 3px;
}

.operating-centre-header p {
  max-width: 760px;
  margin: 0;
}

.operating-centre-eyebrow {
  color: #536273;
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.operating-centre-primary {
  flex: 0 0 auto;
  min-height: 38px;
  white-space: nowrap;
}

.operating-centre-tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(120px, 1fr));
  gap: 4px;
  min-width: 0;
  margin-bottom: 8px;
  padding: 3px;
  border: 1px solid #d7dee6;
  border-radius: 8px;
  background: #f3f5f7;
}

.operating-centre-tabs .operating-centre-tab {
  display: flex;
  gap: 7px;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 34px;
  padding: 6px 8px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: #465466;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.operating-centre-tabs .operating-centre-tab:hover {
  background: #fff;
}

.operating-centre-tabs .operating-centre-tab.is-active {
  border-color: #b8d8d1;
  background: #fff;
  color: #12564f;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

.operating-centre-tab strong {
  min-width: 24px;
  padding: 2px 5px;
  border-radius: 999px;
  background: #e5e9ee;
  color: #39475a;
  font-size: 11px;
}

.operating-centre-tab.is-active strong {
  background: #dff2ed;
  color: #12564f;
}

.operating-centre-status {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 16px;
  align-items: center;
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid #dce3e9;
  border-radius: 6px;
  background: #fbfcfd;
  color: #526173;
  font-size: 12px;
}

.operating-centre-status strong {
  color: #172233;
}

.operating-centre-safety {
  margin-left: auto;
  color: #31645c;
  font-weight: 750;
}

.operating-centre-batch {
  margin: 6px 0 8px;
  color: #536273;
  font-size: 12px;
}

.operating-centre-filter {
  gap: 7px;
  margin-bottom: 8px;
  padding: 8px;
  border: 1px solid #e0e5ea;
  border-radius: 6px;
  background: #fff;
}

.operating-centre-filter label {
  gap: 3px;
  margin: 0;
  font-size: 11px;
}

.operating-centre-filter select,
.operating-centre-filter input {
  min-height: 34px;
}

.mapping-session-status {
  display: flex;
  flex-wrap: wrap;
  gap: 3px 16px;
  margin: -3px 0 -2px;
  padding: 0;
  color: #536273;
  font-size: 12px;
  line-height: 1.15;
}

.mapping-session-status strong {
  color: #172233;
}

.mapping-review-table tr[id] {
  scroll-margin-top: 12px;
}

.mapping-review-table tr[id]:target td {
  background: #eef8f5;
  box-shadow: inset 0 2px 0 #2b7a70, inset 0 -2px 0 #2b7a70;
}

.mapping-decision-suggestion {
  display: grid;
  gap: 2px;
  width: 100%;
  color: #526173;
  font-size: 11px;
}

.mapping-decision-suggestion strong {
  color: #172233;
  font-size: 12px;
}

.operating-centre-page .result-meta {
  margin: 6px 0;
  padding: 6px 8px;
  font-size: 12px;
}

.operating-centre-technical {
  margin-top: 10px;
  border-top: 1px solid #e1e6eb;
}

.operating-centre-technical > summary {
  padding: 10px 0 5px;
  cursor: pointer;
  color: #596777;
  font-size: 12px;
  font-weight: 800;
}

.operating-centre-technical > .row-actions,
.operating-centre-technical > p {
  margin: 6px 0;
}

@media (max-width: 760px) {
  .operating-centre-header {
    display: grid;
    gap: 8px;
  }

  .operating-centre-primary {
    width: 100%;
    white-space: normal;
    text-align: center;
  }

  .operating-centre-tabs {
    grid-template-columns: repeat(5, minmax(132px, 1fr));
    overflow-x: auto;
    overscroll-behavior-inline: contain;
  }

  .operating-centre-status {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px 10px;
  }

  .operating-centre-safety {
    grid-column: 1 / -1;
    margin-left: 0;
  }

  .operating-centre-filter {
    grid-template-columns: 1fr 1fr;
  }

  .operating-centre-filter .row-actions {
    grid-column: 1 / -1;
  }
}

@media (max-width: 430px) {
  .operating-centre-filter {
    grid-template-columns: 1fr;
  }

  .operating-centre-filter .row-actions {
    grid-column: auto;
  }
}

.ops-hero .summary-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(165px, 100%), 1fr));
  gap: 8px;
  margin: 0 0 12px;
  min-width: 0;
}

.takeover-listing-preview,
.takeover-secondary {
  margin-top: 14px;
  border: 1px solid #dbe2ea;
  border-radius: 8px;
  background: #fff;
}

.takeover-listing-preview {
  padding: 12px;
}

.takeover-status-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 14px;
  margin: 0 0 10px;
  color: #506071;
  font-size: 12px;
}

.takeover-status-strip strong {
  color: #18212d;
}

.takeover-listing-preview-table {
  min-width: 860px;
}

.takeover-secondary > summary {
  cursor: pointer;
  padding: 12px;
  color: #334155;
  font-weight: 800;
}

.takeover-secondary__content {
  display: grid;
  gap: 14px;
  padding: 0 12px 12px;
  min-width: 0;
}

.summary-card {
  position: relative;
  display: grid;
  gap: 5px;
  min-height: 88px;
  padding: 13px 14px;
  border: 1px solid #dbe2ea;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.03);
  overflow: hidden;
}

.summary-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: #b8c3cf;
}

.summary-card span {
  color: #5d6875;
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.summary-card strong {
  color: #18212d;
  font-size: 24px;
  line-height: 1.05;
}

.ci-build-sha {
  font-size: 13px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.summary-card small {
  color: #66717e;
  line-height: 1.35;
}

.product-workspace-control-card .summary-strip,
.channel-products-hero .summary-strip,
.import-review-hero .summary-strip,
.product-change-hero .summary-strip {
  grid-template-columns: repeat(auto-fit, minmax(min(160px, 100%), 1fr));
  gap: 8px;
  margin-bottom: 10px;
}

.product-workspace-control-card .summary-card,
.channel-products-hero .summary-card,
.import-review-hero .summary-card,
.product-change-hero .summary-card {
  min-height: 70px;
  padding: 10px 12px;
}

.product-workspace-control-card .summary-card strong,
.channel-products-hero .summary-card strong,
.import-review-hero .summary-card strong,
.product-change-hero .summary-card strong {
  font-size: 20px;
}

.product-workspace-control-card .summary-card small,
.channel-products-hero .summary-card small,
.import-review-hero .summary-card small,
.product-change-hero .summary-card small {
  font-size: 11px;
}

.workspace-section--staff-photos .source-gallery-card label {
  gap: 3px;
  font-size: 10px;
  line-height: 1.15;
}

.summary-card-action {
  justify-self: start;
  color: #00695c;
  font-size: 12px;
  font-weight: 850;
  text-decoration: none;
}

.summary-card-action:hover {
  text-decoration: underline;
}

.summary-card--shopify {
  border-color: #cbe7d3;
  background: #f7fcf8;
}

.summary-card--shopify::before {
  background: #55a46a;
}

.summary-card--ebay {
  border-color: #cfe0f4;
  background: #f7fbff;
}

.summary-card--ebay::before {
  background: #4b83c5;
}

.summary-card--warn {
  border-color: #f3d6a4;
  background: #fffaf0;
}

.summary-card--warn::before {
  background: #d99624;
}

.summary-card--danger {
  border-color: #efc7c5;
  background: #fff7f7;
}

.summary-card--danger::before {
  background: #d94a45;
}

.summary-card--muted {
  background: #f7f8fa;
}

.summary-card--muted::before {
  background: #96a0ac;
}

.commercial-cockpit-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 14px;
  align-items: start;
}

.commercial-visual-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 12px;
  margin: 12px 0 0;
}

.commercial-visual-panel {
  min-width: 0;
  padding: 14px;
  border: 1px solid #dbe2ea;
  border-radius: 8px;
  background: #fff;
}

.commercial-visual-panel h3 {
  margin: 0 0 6px;
  font-size: 14px;
}

.commercial-visual-panel p {
  margin: 0 0 10px;
}

.ci-monthly-trend {
  display: grid;
  gap: 0;
  margin-top: 12px;
  border-block: 1px solid #dbe2ea;
}

.ci-monthly-trend__legend {
  display: flex;
  justify-content: flex-end;
  gap: 16px;
  padding: 8px 0;
  color: #55616e;
  font-size: 12px;
}

.ci-monthly-trend__legend span::before {
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 5px;
  border-radius: 2px;
  background: #5c7c9d;
  content: "";
}

.ci-monthly-trend__legend span[data-series="value"]::before {
  background: #4d8b68;
}

.ci-monthly-trend__row {
  display: grid;
  grid-template-columns: minmax(72px, 0.4fr) minmax(220px, 2fr) minmax(230px, 1fr);
  gap: 16px;
  align-items: center;
  padding: 11px 0;
  border-top: 1px solid #edf1f4;
}

.ci-monthly-trend__bars {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.ci-monthly-trend__bars > span {
  display: grid;
  grid-template-columns: minmax(100px, 2fr) minmax(max-content, 1fr);
  gap: 8px;
  align-items: center;
  min-width: 0;
}

.ci-monthly-trend__bars i {
  width: var(--ci-trend-width);
  min-width: 2px;
  max-width: 100%;
  height: 8px;
  border-radius: 2px;
  background: #5c7c9d;
}

.ci-monthly-trend__bars span[data-series="value"] i {
  background: #4d8b68;
}

.ci-monthly-trend__bars small {
  white-space: nowrap;
}

.ci-monthly-trend__metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.ci-monthly-trend__metrics span {
  display: grid;
  gap: 2px;
}

.ci-monthly-trend__metrics small {
  color: #65717d;
}

@media (max-width: 760px) {
  .ci-monthly-trend__legend {
    justify-content: flex-start;
  }

  .ci-monthly-trend__row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .ci-monthly-trend__metrics {
    max-width: 360px;
  }
}

.commercial-visual-list {
  display: grid;
  gap: 8px;
}

.commercial-visual-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(96px, 32%);
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-top: 1px solid #edf1f4;
  color: inherit;
  text-decoration: none;
}

.commercial-visual-row:first-child {
  border-top: 0;
}

.commercial-visual-row__copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.commercial-visual-row__copy strong,
.commercial-visual-row__metric span {
  color: #18212d;
  font-size: 13px;
}

.commercial-visual-row__copy span,
.commercial-empty-note {
  color: #66717e;
  font-size: 12px;
  line-height: 1.35;
}

.commercial-visual-row__metric {
  display: grid;
  gap: 5px;
  text-align: right;
}

.commercial-bar {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #eef3f2;
}

.commercial-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #0f766e;
}

.commercial-decision-board {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr));
  gap: 10px;
}

.commercial-decision-card {
  display: grid;
  gap: 8px;
  padding: 13px;
  border: 1px solid #dbe2ea;
  border-radius: 8px;
  background: #fff;
}

.commercial-decision-card[data-tone="quiet"] {
  background: #f7f8fa;
}

.ci-monthly-actions-table tbody tr[data-tone="attention"] td {
  background: #fffaf0;
}

.ci-monthly-actions-table tbody tr[data-tone="attention"] td:first-child {
  box-shadow: inset 3px 0 0 #d99624;
}

.ci-monthly-actions-table tbody tr[data-tone="review"] td:first-child {
  box-shadow: inset 3px 0 0 #6f8f9b;
}

.ci-monthly-actions-table tbody tr[data-tone="quiet"] td {
  background: #f7f8fa;
}

.ci-monthly-actions-table tbody tr[data-tone="attention"] td {
  background: #fffaf0;
}

.ci-monthly-actions-table tbody tr[data-tone="attention"] td:first-child {
  box-shadow: inset 3px 0 0 #d99624;
}

.ci-monthly-actions-table tbody tr[data-tone="review"] td:first-child {
  box-shadow: inset 3px 0 0 #6f8f9b;
}

.ci-monthly-actions-table tbody tr[data-tone="quiet"] td {
  background: #f7f8fa;
}

.commercial-decision-card span {
  color: #5d6875;
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.commercial-decision-card strong {
  color: #18212d;
  font-size: 18px;
}

.commercial-window-panel {
  padding: 12px 14px;
}

.commercial-window-strip {
  display: grid;
  grid-template-columns: minmax(220px, 1.5fr) minmax(180px, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.commercial-window-summary {
  display: grid;
  gap: 3px;
}

.commercial-window-summary span {
  color: #5d6875;
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.commercial-window-summary strong {
  color: #18212d;
  font-size: 17px;
}

.commercial-window-form {
  margin-top: 10px;
  align-items: end;
}

.commercial-window-form label {
  min-width: 150px;
}

.commercial-window-form input[readonly] {
  background: #f7f9fb;
  color: #536170;
}

.commercial-freshness-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 8px;
  margin-top: 10px;
  padding: 8px 10px;
  border: 1px solid #dbe2ea;
  border-radius: 8px;
  background: #f8fbfa;
  color: #18212d;
  text-decoration: none;
}

.commercial-freshness-strip span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.commercial-freshness-strip strong {
  font-size: 12px;
}

.commercial-freshness-strip small {
  color: #5d6875;
  font-size: 11px;
  line-height: 1.25;
}

.commercial-secondary-details {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #edf1f4;
}

@media (max-width: 900px) {
  .commercial-window-strip {
    grid-template-columns: 1fr;
  }
}

.commercial-secondary-details summary {
  cursor: pointer;
  color: #425466;
  font-weight: 850;
}

.commercial-review-text {
  max-height: 260px;
  overflow: auto;
  white-space: pre-wrap;
}

.ci-product-mapping-table tbody tr {
  vertical-align: top;
}

.ci-product-mapping-table .ci-mapping-priority-row {
  background: #f5faf7;
  box-shadow: inset 3px 0 #32765a;
}

.ci-mapping-rank {
  display: block;
  margin-bottom: 0.22rem;
  color: #52606d;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.ci-mapping-product-name {
  display: block;
  max-width: 34rem;
  line-height: 1.3;
}

.ci-spend-signal {
  display: inline-block;
  padding: 0.22rem 0.38rem;
  border-left: 3px solid #8a98a6;
  background: #f4f6f8;
  color: #24313d;
}

.ci-spend-signal--priority {
  border-left-color: #b15f16;
  background: #fff5e8;
  color: #6d3508;
}

.ci-mapping-primary-action {
  display: grid;
  grid-template-columns: minmax(10rem, 1fr) auto;
  align-items: end;
  gap: 0.5rem;
}

.ci-mapping-primary-action label,
.ci-mapping-primary-action input {
  min-width: 0;
  width: 100%;
}

@media (max-width: 720px) {
  .ci-mapping-primary-action {
    grid-template-columns: minmax(0, 1fr);
  }

  .ci-mapping-primary-action .button {
    width: 100%;
  }
}

.ci-refresh-command {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 10px 0;
  border-top: 1px solid #e2e8ee;
  border-bottom: 1px solid #e2e8ee;
}

.ci-refresh-command__status,
.ci-refresh-command__primary {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.ci-refresh-command__eyebrow {
  color: #596777;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.ci-refresh-command__status > strong {
  color: #172233;
  font-size: 15px;
}

.ci-refresh-command__status > small,
.ci-refresh-command__primary > small {
  max-width: 680px;
  color: #657283;
  font-size: 11px;
  line-height: 1.35;
}

.ci-refresh-command__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 3px 16px;
  margin-top: 3px;
  color: #536273;
  font-size: 11px;
}

.ci-refresh-command__meta b {
  color: #24313f;
}

.ci-refresh-command__job {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 8px;
  min-width: 0;
  margin-top: 4px;
  padding-top: 5px;
  border-top: 1px solid #edf1f4;
  color: #536273;
  font-size: 11px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.ci-refresh-command__job b {
  color: #24313f;
}

.ci-refresh-command__primary {
  justify-items: end;
  width: min(220px, 100%);
}

.ci-refresh-command__primary .button {
  width: 100%;
  white-space: normal;
}

.ci-refresh-command__primary > small {
  text-align: right;
}

.ci-refresh-advanced {
  margin-top: 9px;
  padding-top: 0;
  border-top: 0;
}

.ci-refresh-advanced__body {
  display: grid;
  gap: 9px;
  padding-top: 9px;
}

.ci-refresh-advanced__form {
  display: grid;
  grid-template-columns: repeat(2, minmax(150px, 1fr)) auto;
  gap: 8px;
  align-items: end;
}

.ci-refresh-advanced__form label {
  display: grid;
  gap: 3px;
  margin: 0;
  color: #536273;
  font-size: 11px;
  font-weight: 750;
}

.ci-refresh-advanced__form .button {
  white-space: nowrap;
}

.ci-refresh-advanced__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

@media (max-width: 720px) {
  .ci-refresh-command,
  .ci-refresh-advanced__form {
    grid-template-columns: 1fr;
  }

  .ci-refresh-command__primary {
    justify-items: stretch;
    width: 100%;
  }

  .ci-refresh-command__primary > small {
    text-align: left;
  }

  .ci-refresh-advanced__form .button,
  .ci-refresh-advanced__actions,
  .ci-refresh-advanced__actions form,
  .ci-refresh-advanced__actions .button {
    width: 100%;
  }
}

.page-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
  border: 1px solid #dbe2ea;
  border-radius: 10px;
  background: #ffffff;
}

.page-tabs a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-color: transparent;
  border-radius: 7px;
  background: transparent;
}

.page-tabs a.active {
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

.page-tabs a span {
  display: inline-flex;
  min-width: 22px;
  justify-content: center;
  border-radius: 999px;
  padding: 2px 7px;
  background: #edf2f7;
  color: #536170;
  font-size: 11px;
  font-weight: 800;
}

.page-tabs a.active span {
  background: #dff1ed;
  color: #0f554e;
}

.ops-panel {
  padding: 0;
  overflow: hidden;
}

.ops-panel > .panel-head {
  margin: 0;
  padding: 16px 18px 12px;
  border-bottom: 1px solid #e1e7ee;
  background: #ffffff;
}

.table-wrap--ops {
  max-width: 100%;
  overflow-x: auto;
  border-top: 1px solid #e1e7ee;
  border-radius: 0 0 8px 8px;
  background: #ffffff;
}

.ops-table {
  width: 100%;
  min-width: 860px;
  table-layout: auto;
  border-collapse: separate;
  border-spacing: 0;
}

.ops-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f8fafc;
  color: #4d5866;
  font-size: 11px;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.ops-table td,
.ops-table th {
  max-width: 320px;
  padding: 13px 16px;
  border-color: #e4eaf0;
}

.ops-table tbody tr:hover {
  background: #f7fbfa;
}

.ops-table tbody tr:nth-child(even) {
  background: #fcfdfe;
}

.ops-table tbody tr:nth-child(even):hover {
  background: #f7fbfa;
}

.ops-table td:first-child {
  color: #1d2a36;
  font-weight: 650;
}

.ops-table td small {
  display: block;
  margin-top: 4px;
  color: #687485;
  font-size: 12px;
}

.next-action {
  display: inline-flex;
  max-width: 210px;
  align-items: center;
  padding: 4px 8px;
  border: 1px solid #dbe9e5;
  border-radius: 999px;
  background: #f5faf8;
  color: #0f554e;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
}

.ops-table .row-actions {
  min-width: 118px;
  justify-content: flex-start;
  gap: 6px;
  white-space: nowrap;
  overflow-wrap: normal;
}

.ops-table .app-actions-cell {
  width: auto;
  min-width: 118px;
  overflow-wrap: normal;
  white-space: nowrap;
}

.ops-table .app-long-value,
.ops-table .app-long-value-mono {
  max-width: 260px;
}

.ops-table .row-actions .button,
.ops-table .row-actions button,
.ops-table a.button {
  min-height: 30px;
  padding: 5px 9px;
  font-size: 12px;
}

.ops-table a:not(.button) {
  color: #0f6b63;
  font-weight: 700;
  text-decoration: none;
}

.ops-table a:not(.button):hover {
  text-decoration: underline;
}

.ops-table th:last-child,
.ops-table td:last-child {
  width: 132px;
}

.orders-table {
  min-width: 1120px;
  font-size: 12px;
}

.orders-table th,
.orders-table td {
  overflow-wrap: normal;
  word-break: normal;
}

.orders-table th:first-child,
.orders-table td:first-child {
  width: 70px;
}

.orders-table th:nth-child(2),
.orders-table td:nth-child(2) {
  min-width: 118px;
}

.orders-table th:nth-child(5),
.orders-table td:nth-child(5) {
  width: 52px;
  min-width: 52px;
}

.orders-table th:nth-child(6),
.orders-table td:nth-child(6) {
  min-width: 90px;
}

.orders-table th:nth-child(7),
.orders-table td:nth-child(7),
.orders-table th:nth-child(9),
.orders-table td:nth-child(9) {
  min-width: 88px;
}

.orders-table th:nth-child(2),
.orders-table td:nth-child(2),
.orders-table th:nth-child(4),
.orders-table td:nth-child(4) {
  min-width: 145px;
}

.orders-table th:nth-child(8),
.orders-table td:nth-child(8) {
  min-width: 150px;
}

.orders-table th:last-child,
.orders-table td:last-child {
  min-width: 170px;
  width: auto;
}

.orders-table .row-actions {
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  max-width: 300px;
}

.orders-table .row-actions form {
  margin: 0;
}

.orders-table .row-actions .button,
.orders-table .row-actions button {
  white-space: nowrap;
}

.orders-table .order-list-row .pill {
  white-space: nowrap;
}

.orders-table .row-next-action {
  display: none;
}

@media (min-width: 761px) and (max-width: 1500px) {
  .orders-table th:nth-child(9),
  .orders-table td:nth-child(9),
  .orders-table th:nth-child(10),
  .orders-table td:nth-child(10) {
    display: none;
  }

  .orders-table .row-next-action {
    display: block;
    flex: 1 0 100%;
    color: var(--muted);
    line-height: 1.35;
    white-space: normal;
  }
}

.order-list-row {
  cursor: pointer;
}

.order-list-row:hover td {
  background: #f8fbfa;
}

.order-list-row.is-preparing td {
  background: #f0fbf8;
  border-top-color: #b7ddd4;
  border-bottom-color: #b7ddd4;
}

.order-list-row.is-preparing td:first-child {
  box-shadow: inset 5px 0 0 #0f766e;
}

@media (min-width: 761px) {
  .orders-table thead th:last-child,
  .orders-table .order-list-row td:last-child {
    position: sticky;
    right: 0;
    z-index: 2;
    background: #ffffff;
    box-shadow: -8px 0 14px rgba(15, 23, 42, 0.06);
  }

  .orders-table thead th:last-child {
    z-index: 3;
    background: #f8fafc;
  }

  .orders-table .order-list-row:hover td:last-child {
    background: #f8fbfa;
  }

  .orders-table .order-list-row.is-preparing td:last-child {
    background: #f0fbf8;
  }

  .orders-table .order-surface-row > td > .order-document-surface,
  .orders-table .order-surface-row > td > .order-document-surface-placeholder {
    position: sticky;
    left: 12px;
    width: calc(100vw - 340px);
    max-width: calc(100vw - 340px);
  }
}

.audit-log-table {
  min-width: 1120px;
  table-layout: fixed;
}

.audit-log-table th:nth-child(1),
.audit-log-table td:nth-child(1) {
  width: 120px;
}

.audit-log-table th:nth-child(2),
.audit-log-table td:nth-child(2) {
  width: 150px;
}

.audit-log-table th:nth-child(3),
.audit-log-table td:nth-child(3),
.audit-log-table th:nth-child(4),
.audit-log-table td:nth-child(4),
.audit-log-table th:nth-child(5),
.audit-log-table td:nth-child(5),
.audit-log-table th:nth-child(6),
.audit-log-table td:nth-child(6) {
  width: 130px;
}

.audit-log-table th:nth-child(8),
.audit-log-table td:nth-child(8) {
  width: 150px;
}

.audit-log-table td {
  vertical-align: top;
  overflow-wrap: break-word;
  word-break: normal;
}

.audit-details summary {
  max-width: 360px;
  overflow: hidden;
  cursor: pointer;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.audit-details[open] summary {
  margin-bottom: 8px;
  white-space: normal;
}

.request-id {
  display: inline-block;
  max-width: 92px;
  overflow: hidden;
  vertical-align: middle;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.copy-chip {
  min-height: 24px;
  margin-left: 4px;
  padding: 2px 6px;
  border: 1px solid #d8e1ea;
  border-radius: 999px;
  background: #f8fafc;
  color: #405063;
  font-size: 11px;
  font-weight: 800;
}

.settings-copy-line {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  max-width: min(100%, 720px);
}

.settings-copy-field {
  width: min(100%, 560px);
  min-width: 0;
  min-height: 30px;
  padding: 5px 8px;
  border: 1px solid #d8e1ea;
  border-radius: 6px;
  background: #f8fafc;
  color: #24313f;
  font: inherit;
  font-size: 12px;
}

.empty {
  padding: 28px 12px;
  color: #6a7584;
  background: #fbfcfd;
  font-weight: 650;
  text-align: center;
}

.settings-map > div,
.summary-grid > div {
  border-color: #dbe2ea;
  border-radius: 8px;
  background: #fbfcfd;
}

.settings-map strong,
.summary-grid strong {
  color: #24313f;
}

.form-actions {
  margin-bottom: 12px;
}

.form-actions .button.secondary {
  border-color: #dbe2ea;
  background: #fff;
}

.form-actions .button.secondary.active {
  border-color: #9dcfc5;
  background: #edf7f4;
}

/* Settings hub */
.settings-hero {
  margin-bottom: 12px;
}

.settings-tabs {
  margin: 0 0 14px;
}

.settings-card-grid,
.settings-section-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 12px;
  align-items: start;
  min-width: 0;
}

.settings-section {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.settings-summary-card,
.settings-card {
  display: grid;
  gap: 12px;
  min-width: 0;
  max-width: 100%;
  padding: 14px;
  border: 1px solid #dbe2ea;
  border-radius: 8px;
  background: #fff;
}

.settings-summary-card {
  min-height: 210px;
}

.settings-card-wide {
  grid-column: 1 / -1;
}

.settings-card-header {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  justify-content: space-between;
  min-width: 0;
}

.settings-card-header > * {
  min-width: 0;
}

.settings-card-header h2,
.settings-card-header h3 {
  margin: 2px 0 0;
}

.settings-mini-tabs {
  display: inline-flex;
  width: fit-content;
  gap: 4px;
  padding: 4px;
  border: 1px solid #dbe2ea;
  border-radius: 8px;
  background: #f7f9fb;
}

.settings-mini-tabs a {
  padding: 8px 12px;
  border-radius: 6px;
  color: #314051;
  font-weight: 800;
  text-decoration: none;
}

.settings-mini-tabs a.active {
  background: #fff;
  color: #0e625b;
  box-shadow: 0 0 0 1px #b8d9d3;
}

.settings-sub-tabs {
  width: 100%;
  flex-wrap: wrap;
}

.settings-channel-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 10px;
  min-width: 0;
}

.channel-settings-shell {
  display: grid;
  gap: 12px;
  min-width: 0;
  max-width: 100%;
}

.settings-channel-card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
  min-width: 0;
  max-width: 100%;
  padding: 12px;
  border: 1px solid #dbe2ea;
  border-radius: 8px;
  background: #fff;
}

.settings-channel-card > * {
  min-width: 0;
}

.settings-channel-card.active {
  border-color: #9ed5c7;
  background: #f4fbf8;
}

.settings-channel-card h3 {
  margin: 2px 0 4px;
}

.settings-channel-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
  min-width: min(150px, 100%);
}

.channel-settings-summary-card,
.channel-account-summary-card,
.channel-operation-gates-panel,
.channel-settings-evidence,
.channel-settings-technical-details,
.channel-settings-logs {
  min-width: 0;
  max-width: 100%;
}

.channel-operation-gates-panel {
  border-color: #b8d9ef;
  background: #f8fcff;
}

.channel-operation-gates-table-wrap {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
}

.channel-operation-gates-table {
  width: 100%;
  min-width: min(920px, 100%);
  table-layout: fixed;
}

.channel-operation-gates-table th,
.channel-operation-gates-table td {
  vertical-align: top;
  white-space: normal;
  overflow-wrap: anywhere;
}

.channel-operation-gates-table td:first-child strong {
  display: block;
}

.channel-operation-gates-table .pill,
.channel-operation-gates-table .app-actions-cell,
.channel-operation-gates-table .app-actions-cell .button,
.channel-operation-gates-table .app-actions-cell button,
.channel-operation-gates-table a.button {
  min-width: 0;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}

.channel-operation-gates-table .app-actions-cell,
.channel-operation-gates-table .app-long-value,
.channel-operation-gates-table .app-long-value-mono {
  max-width: none;
}

.channel-settings-summary-kv,
.channel-settings-compact-kv {
  grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr));
  gap: 8px 12px;
}

.channel-settings-summary-kv dt,
.channel-settings-compact-kv dt {
  color: #526173;
  font-size: 11px;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.channel-settings-summary-kv dd,
.channel-settings-compact-kv dd {
  margin: 0;
}

.channel-account-summary-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 10px;
  min-width: 0;
}

.channel-account-summary-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid #dbe2ea;
  border-radius: 8px;
  background: #fff;
}

.settings-details-body {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 0 14px;
}

.capability-safety-panel {
  border-color: #cfe7dd;
  background: #fbfffd;
}

.capability-safety-table-wrap {
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
}

.capability-safety-table th,
.capability-safety-table td {
  vertical-align: top;
  min-width: 0;
  overflow-wrap: anywhere;
}

.capability-safety-table td small {
  display: block;
  max-width: 320px;
  margin-top: 4px;
  overflow-wrap: anywhere;
  color: var(--text-soft);
}

.settings-empty-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  align-items: center;
  min-width: 0;
  padding: 10px 12px;
  border: 1px dashed #cfd8df;
  border-radius: 8px;
  background: #f8fafb;
  color: var(--text-soft);
}

.settings-empty-panel strong {
  color: #314051;
}

.safety-lock-inline {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 3px 8px;
  border: 1px solid #d7e5e1;
  border-radius: 999px;
  background: #f7fbfa;
  color: var(--text-soft);
  font-size: 11px;
  font-weight: 800;
}

.settings-fact-list {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: #435164;
}

.settings-fact-list li {
  padding-left: 12px;
  border-left: 2px solid #dbe9e5;
}

.settings-kv {
  display: grid;
  grid-template-columns: minmax(130px, 0.42fr) minmax(0, 1fr);
  gap: 8px 12px;
  min-width: 0;
  margin: 0;
}

.settings-kv dt {
  color: #526173;
  font-size: 12px;
  font-weight: 850;
}

.settings-kv dd {
  min-width: 0;
  max-width: 100%;
  margin: 0;
  color: #1d2937;
  overflow-wrap: anywhere;
}

.settings-choice-list {
  display: grid;
  gap: 8px;
}

.settings-choice {
  display: grid;
  gap: 2px;
  padding: 9px 10px;
  border: 1px solid #dbe2ea;
  border-radius: 8px;
  background: #fbfcfd;
}

.settings-choice strong {
  color: #172233;
  font-size: 13px;
}

.settings-choice span {
  color: #58677a;
  font-size: 12px;
  line-height: 1.35;
}

.settings-choice.selected {
  border-color: #a8d4c9;
  background: #f2fbf7;
}

.settings-choice.disabled {
  color: #7a8696;
  background: #f6f7f9;
  opacity: 0.78;
}

.settings-quantity-preview {
  display: grid;
  gap: 3px;
  padding: 10px;
  border: 1px solid #cfe1dc;
  border-radius: 8px;
  background: #f3fbf8;
  color: #24443f;
}

.settings-quantity-preview span {
  color: #48635e;
  font-size: 12px;
}

.settings-proof-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  padding: 9px 10px;
  border: 1px solid #dbe9e5;
  border-radius: 8px;
  background: #f7fbfa;
}

.settings-proof-strip strong {
  margin-right: 4px;
  color: #233143;
}

.settings-policy-list {
  display: grid;
  gap: 10px;
}

.settings-policy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 10px;
}

.settings-policy-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
  padding: 10px;
  border: 1px solid #dbe9e5;
  border-radius: 8px;
  background: #fbfcfd;
}

.settings-policy-row strong,
.settings-policy-row span:not(.pill) {
  display: block;
}

.settings-policy-row span:not(.pill) {
  margin-top: 3px;
  color: #536275;
  font-size: 12px;
  line-height: 1.45;
}

.settings-policy-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}

.settings-policy-columns h4 {
  margin: 0 0 8px;
  color: #233143;
  font-size: 13px;
}

.settings-subsection {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.settings-subsection h4 {
  margin: 0;
  color: #233143;
  font-size: 13px;
}

.settings-policy-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 8px;
  padding: 10px;
  border: 1px solid #dbe2ea;
  border-radius: 8px;
  background: #fbfcfd;
}

.settings-policy-head {
  display: flex;
  grid-column: 1 / -1;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
}

.settings-policy-form label {
  display: grid;
  gap: 4px;
  margin: 0;
  color: #526173;
  font-size: 12px;
  font-weight: 850;
}

.settings-policy-form button {
  align-self: end;
}

.settings-actions,
.settings-inline-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.settings-inline-form label {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  margin: 0;
}

.settings-note {
  margin: 0;
  color: #58677a;
  font-size: 13px;
  line-height: 1.45;
}

.settings-alert-list {
  display: grid;
  gap: 8px;
  margin: 12px 0;
}

.settings-inline-alert {
  margin: 0;
  border: 1px solid #f4d28c;
  border-radius: 8px;
  padding: 9px 11px;
  background: #fff8e8;
  color: #624515;
  font-size: 13px;
}

.settings-inline-alert--info,
.settings-inline-alert--safe {
  border-color: #b8e2d2;
  background: #f0fbf7;
  color: #174b3a;
}

.settings-inline-alert--warning,
.settings-inline-alert--warn {
  border-color: #f4d28c;
  background: #fff8e8;
  color: #624515;
}

.settings-inline-alert--danger {
  border-color: #f0b6bd;
  background: #fff1f3;
  color: #7b2330;
}

.settings-live-create-unlock {
  margin: 12px 0;
  border-color: #b8d9ef;
  background: #f8fcff;
}

.settings-live-create-form {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(320px, 1.5fr) auto;
  gap: 12px;
  align-items: end;
  margin-top: 12px;
}

.settings-live-create-toggle,
.settings-live-create-confirm {
  display: grid;
  gap: 6px;
  margin: 0;
  color: var(--text);
  font-size: 13px;
  font-weight: 850;
}

.settings-live-create-toggle {
  grid-template-columns: auto 1fr;
  align-items: center;
}

.settings-live-create-confirm code {
  width: max-content;
  max-width: 100%;
  border: 1px solid #d9e3ec;
  border-radius: 6px;
  padding: 3px 6px;
  background: #fff;
  color: #24435c;
  font-size: 12px;
  white-space: normal;
}

.settings-confirm-input {
  width: 100%;
  min-width: 260px;
}

.settings-live-create-actions {
  display: grid;
  gap: 6px;
}

.settings-live-controls-table {
  min-width: 760px;
}

.settings-live-controls-table th:first-child,
.settings-live-controls-table td:first-child {
  min-width: 150px;
}

.settings-live-controls-table th:nth-child(6),
.settings-live-controls-table td:nth-child(6),
.settings-live-controls-table th:nth-child(7),
.settings-live-controls-table td:nth-child(7) {
  min-width: 180px;
}

.channel-operation-gates-table.settings-live-controls-table {
  min-width: min(980px, 100%);
}

.channel-operation-gates-table.settings-live-controls-table th:first-child,
.channel-operation-gates-table.settings-live-controls-table td:first-child,
.channel-operation-gates-table.settings-live-controls-table th:nth-child(6),
.channel-operation-gates-table.settings-live-controls-table td:nth-child(6),
.channel-operation-gates-table.settings-live-controls-table th:nth-child(7),
.channel-operation-gates-table.settings-live-controls-table td:nth-child(7) {
  min-width: 0;
}

@media (max-width: 760px) {
  .channel-operation-gates-table-wrap {
    overflow-x: visible;
  }

  .channel-operation-gates-table,
  .channel-operation-gates-table thead,
  .channel-operation-gates-table tbody,
  .channel-operation-gates-table tr,
  .channel-operation-gates-table th,
  .channel-operation-gates-table td {
    display: block;
    width: 100%;
    min-width: 0 !important;
  }

  .channel-operation-gates-table {
    border: 0;
  }

  .channel-operation-gates-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .channel-operation-gates-table tr {
    display: grid;
    gap: 7px;
    margin: 0 0 10px;
    padding: 10px;
    border: 1px solid #d7e5ef;
    border-radius: 8px;
    background: #fff;
  }

  .channel-operation-gates-table td {
    display: grid;
    grid-template-columns: minmax(112px, 0.42fr) minmax(0, 1fr);
    gap: 8px;
    border: 0;
    padding: 0;
  }

  .channel-operation-gates-table td::before {
    content: attr(data-label);
    color: #526173;
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .02em;
    text-transform: uppercase;
  }
}

.system-health-card-grid,
.queue-health-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.system-health-card,
.queue-health-card {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 12px;
  border: 1px solid #dbe2ea;
  border-radius: 8px;
  background: #fff;
}

.system-health-card {
  border-top: 3px solid #dbe2ea;
}

.system-health-card--pass,
.queue-health-card--pass {
  border-top-color: #93d2bd;
}

.system-health-card--warn,
.queue-health-card--warn {
  border-top-color: #f0c56a;
}

.system-health-card--danger,
.queue-health-card--danger {
  border-top-color: #e88d9b;
}

.system-health-card--muted {
  border-top-color: #c9d2dc;
}

.system-health-card-head {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  justify-content: space-between;
  min-width: 0;
}

.system-health-card-head h3,
.queue-health-card h3 {
  min-width: 0;
  margin: 0;
  color: #172233;
  font-size: 14px;
}

.system-health-card p {
  margin: 0;
  color: #435164;
  font-size: 13px;
  line-height: 1.35;
}

.system-health-card small {
  color: #6b7684;
  font-size: 12px;
}

.settings-actions-compact {
  margin-top: 2px;
}

.queue-health-card dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.queue-health-card dl div {
  min-width: 0;
  padding: 8px;
  border: 1px solid #edf1f5;
  border-radius: 7px;
  background: #fbfcfd;
}

.queue-health-card dt {
  color: #617082;
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.queue-health-card dd {
  min-width: 0;
  margin: 2px 0 0;
  color: #1d2937;
  font-size: 13px;
  font-weight: 800;
  overflow-wrap: break-word;
}

.queue-policy-table {
  min-width: 980px;
  table-layout: fixed;
}

.queue-policy-table th,
.queue-policy-table td {
  padding: 10px 12px;
  line-height: 1.35;
  overflow-wrap: normal;
  word-break: normal;
  vertical-align: top;
}

.queue-policy-table th:last-child,
.queue-policy-table td:last-child {
  width: auto;
}

.queue-policy-priority {
  width: 95px;
}

.queue-policy-name {
  width: 145px;
}

.queue-policy-used {
  width: 245px;
}

.queue-policy-why {
  width: 250px;
}

.queue-policy-count {
  width: 74px;
}

.queue-policy-age {
  width: 105px;
}

.queue-policy-action {
  width: 118px;
}

.inline-row-details {
  margin-top: 5px;
}

.inline-row-details summary {
  cursor: pointer;
  color: #0f6b63;
  font-size: 12px;
  font-weight: 800;
}

.inline-row-details p {
  margin: 5px 0 0;
  color: #58677a;
  font-size: 12px;
}

.system-health-advanced {
  padding: 0;
}

.system-health-advanced[open] {
  padding-bottom: 12px;
}

.system-health-diagnostics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
  padding: 0 14px;
}

.system-health-diagnostic-table {
  min-width: 0;
}

.system-health-diagnostic-table h4 {
  margin: 0 0 8px;
  font-size: 13px;
}

.compact-settings-table {
  min-width: 520px;
}

.compact-settings-table th:last-child,
.compact-settings-table td:last-child {
  width: auto;
}

.compact-settings-table th,
.compact-settings-table td {
  padding: 8px 10px;
  line-height: 1.3;
  overflow-wrap: break-word;
}

.settings-table {
  margin: 0;
  max-width: 100%;
}

.settings-table th,
.settings-table td {
  vertical-align: middle;
  min-width: 0;
  overflow-wrap: break-word;
}

.settings-table .row-actions {
  min-width: 0;
}

.settings-table .row-actions .button,
.settings-table .row-actions button,
.settings-actions .button,
.settings-actions button,
.settings-channel-card-actions .button,
.settings-channel-card-actions button {
  max-width: 100%;
  white-space: normal;
}

.settings-details {
  border: 1px solid #dbe2ea;
  border-radius: 8px;
  background: #fbfcfd;
}

.settings-details summary {
  cursor: pointer;
  padding: 12px 14px;
  color: #0f554e;
  font-weight: 850;
}

.settings-details[open] {
  padding-bottom: 14px;
}

.settings-details .grid-form,
.settings-details .settings-kv {
  padding: 0 14px;
}

.settings-details.compact-details {
  background: #fff;
}

.settings-details.compact-details summary {
  padding: 9px 10px;
}

.settings-details.compact-details .settings-kv {
  padding: 0 10px;
}

@media (max-width: 760px) {
  .settings-kv {
    grid-template-columns: 1fr;
  }

  .settings-card-header {
    display: grid;
  }

  .settings-mini-tabs,
  .settings-actions,
  .settings-inline-form {
    width: 100%;
  }
}

@media (max-width: 900px) {
  .main {
    margin-left: 0;
    max-width: 100vw;
    padding: 14px;
  }

  .sidebar {
    position: static;
    width: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .topbar {
    display: grid;
    gap: 12px;
  }

  .top-actions {
    justify-content: flex-start;
  }
}

/* Templates and rules settings */
.templates-rules-hero {
  display: grid;
  gap: 14px;
}

.template-workbench-layout {
  display: grid;
  grid-template-columns: minmax(210px, 260px) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.template-account-rail {
  position: sticky;
  top: 14px;
  display: grid;
  gap: 10px;
  padding: 12px;
  border-color: #d8e0e8;
  background: #ffffff;
}

.template-account-rail h2 {
  margin: 0 0 2px;
  color: #536170;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.template-account-rail a {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid #dbe2ea;
  border-radius: 8px;
  background: #fbfcfd;
  color: #17212d;
  text-decoration: none;
}

.template-account-rail a.active {
  border-color: #9dcfc5;
  background: #f2faf7;
  box-shadow: inset 4px 0 0 #19736a;
}

.template-account-rail a small,
.template-rail-note span {
  display: block;
  margin-top: 2px;
  color: #687485;
  line-height: 1.35;
}

.template-rail-note {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid #dbe9e5;
  border-radius: 8px;
  background: #f7fbf9;
  color: #24313f;
}

.template-workbench-main {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.template-workbench-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 6px;
  border: 1px solid #dbe2ea;
  border-radius: 10px;
  background: #ffffff;
}

.template-workbench-tabs a {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 6px 12px;
  border-radius: 7px;
  color: #394653;
  font-weight: 750;
  text-decoration: none;
}

.template-workbench-tabs a.active,
.template-workbench-tabs a:hover {
  background: #edf7f4;
  color: #0f554e;
}

.channel-dot {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-weight: 850;
}

.channel-dot--ebay {
  background: #eef5ff;
  color: #2b68b8;
}

.channel-dot--shopify {
  background: #edf8ef;
  color: #2f7e43;
}

.template-group-list {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.template-group-card,
.template-row-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid #dbe2ea;
  border-radius: 8px;
  background: #fff;
}

.template-group-card {
  background: #f7fbff;
}

.template-row-main {
  display: grid;
  gap: 6px;
}

.template-row-main h3,
.template-group-card h3 {
  margin: 0;
  font-size: 15px;
}

.template-row-main p,
.template-group-card p {
  margin: 0;
}

.snippet-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px;
}

.template-source-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  margin: 10px 0 12px;
  padding: 10px 12px;
  border: 1px solid #dbe9e5;
  border-radius: 8px;
  background: #f7fbf9;
  color: #394653;
  font-size: 13px;
}

.template-source-strip--compact {
  margin-top: 8px;
  margin-bottom: 10px;
}

.template-source-strip strong {
  color: #1f2b36;
}

.template-source-strip a {
  margin-left: auto;
  color: #0f6b63;
  font-weight: 750;
  text-decoration: none;
}

.template-source-strip a:hover {
  text-decoration: underline;
}

.listing-guideline-command {
  display: grid;
  gap: 12px;
}

.listing-guideline-flow {
  border-block: 1px solid #dbe7e2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.listing-guideline-flow--four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.listing-guideline-flow > div {
  display: grid;
  gap: 3px;
  padding: 10px 14px 10px 0;
}

.listing-guideline-flow > div + div {
  border-left: 1px solid #dbe7e2;
  padding-left: 14px;
}

.listing-guideline-flow span {
  color: var(--muted);
  font-size: 12px;
}

.listing-guideline-list {
  display: grid;
}

.listing-guideline-rule {
  border-top: 1px solid #dbe7e2;
  display: grid;
  gap: 10px;
  padding: 14px 0;
}

.listing-guideline-rule > header {
  align-items: start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.listing-guideline-rule h3,
.listing-guideline-rule p {
  margin: 0;
}

.listing-guideline-status {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  gap: 6px;
}

.listing-guideline-wording {
  display: grid;
  gap: 3px;
}

.listing-guideline-wording > span,
.listing-guideline-contract dt {
  color: #51606e;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.listing-guideline-wording p {
  color: #17202a;
  max-width: 100ch;
}

.listing-guideline-contract {
  display: grid;
  gap: 8px 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
}

.listing-guideline-contract > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.listing-guideline-contract dd {
  color: #394653;
  margin: 0;
  overflow-wrap: anywhere;
}

.listing-guideline-policy {
  border-top: 1px solid #edf2f0;
  padding-top: 8px;
}

@media (max-width: 760px) {
  .listing-guideline-flow,
  .listing-guideline-contract {
    grid-template-columns: 1fr;
  }

  .listing-guideline-flow > div,
  .listing-guideline-flow > div + div {
    border-left: 0;
    border-top: 1px solid #dbe7e2;
    padding: 9px 0;
  }

  .listing-guideline-rule > header {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (min-width: 761px) and (max-width: 1040px) {
  .listing-guideline-flow--four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.listing-guideline-form {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.listing-guideline-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px 14px;
}

.listing-guideline-form label,
.listing-guideline-form fieldset {
  display: grid;
  min-width: 0;
  gap: 5px;
  margin: 0;
  color: #465362;
  font-size: 12px;
  font-weight: 750;
}

.listing-guideline-form fieldset {
  padding: 8px 10px;
  border: 1px solid #dbe2ea;
  border-radius: 6px;
}

.listing-guideline-form input[type="text"],
.listing-guideline-form input[type="number"],
.listing-guideline-form select,
.listing-guideline-form textarea {
  width: 100%;
  min-width: 0;
}

.listing-guideline-form textarea {
  resize: vertical;
}

.listing-guideline-form .checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.listing-guideline-form .checkbox-row input {
  flex: 0 0 auto;
  margin-top: 2px;
}

.listing-guideline-form ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.listing-preparation-guidelines .settings-map > div {
  align-items: start;
}

/* Channel Products */
.channel-products-hero {
  display: grid;
  gap: 12px;
}

.channel-products-table {
  min-width: 1240px;
}

.channel-product-identity {
  display: grid;
  gap: 4px;
  max-width: 380px;
}

.channel-product-identity a {
  color: #0f6b63;
  font-weight: 800;
  line-height: 1.25;
  text-decoration: none;
}

.channel-product-identity a:hover {
  text-decoration: underline;
}

.channel-pill {
  display: inline-flex;
  min-width: 72px;
  align-items: center;
  justify-content: center;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 850;
}

.channel-pill--shopify {
  border: 1px solid #bfe0c7;
  background: #eef9f0;
  color: #28773a;
}

.channel-pill--ebay {
  border: 1px solid #c8dbf2;
  background: #f0f6ff;
  color: #2d66a7;
}

.reports-hero {
  padding: 16px;
}

.reports-summary-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr));
  gap: 8px;
}

.reports-summary-strip article {
  display: grid;
  gap: 3px;
  min-height: 54px;
  padding: 10px 12px;
  border: 1px solid #dce4ec;
  border-radius: 8px;
  background: #fbfcfd;
}

.reports-summary-strip span,
.report-card__badge,
.report-card__meta,
.report-schedule-grid dt {
  color: #627083;
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.reports-summary-strip strong {
  color: #172231;
  font-size: 16px;
  line-height: 1.2;
}

.reports-summary-strip small {
  color: #627083;
}

.reports-library-panel,
.reports-activity-panel {
  padding: 16px;
}

.reports-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: 12px;
}

.report-card {
  display: grid;
  align-content: start;
  gap: 10px;
  min-width: 0;
  min-height: 164px;
  padding: 14px;
  border: 1px solid #dce4ec;
  border-left-width: 4px;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.035);
}

.report-card--pass {
  border-left-color: #4f9d63;
}

.report-card--teal {
  border-left-color: #19736a;
}

.report-card--warn {
  border-left-color: #d89524;
  background: #fffdfa;
}

.report-card--danger {
  border-left-color: #d94a45;
  background: #fffafa;
}

.report-card--muted {
  border-left-color: #9aa6b2;
  background: #fbfcfd;
}

.report-card__top,
.report-card__actions,
.reports-activity-panel > .panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.report-card__top h3 {
  margin: 0;
  color: #172231;
  font-size: 15px;
}

.report-card__top p {
  display: -webkit-box;
  margin: 4px 0 0;
  overflow: hidden;
  color: #647286;
  font-size: 12px;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.report-card__badge {
  flex: 0 0 auto;
  padding: 3px 8px;
  border: 1px solid #dce4ec;
  border-radius: 999px;
  background: #f7faf9;
  text-transform: none;
}

.report-card__stat {
  display: grid;
  gap: 3px;
}

.report-card__stat strong {
  color: #172231;
  font-size: 22px;
  line-height: 1.1;
}

.report-card__stat span {
  color: #647286;
  font-size: 12px;
}

.report-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  text-transform: none;
}

.report-card__actions {
  align-items: center;
}

.report-card__actions form {
  margin: 0;
}

.report-actions-menu {
  position: relative;
}

.report-actions-menu > summary,
.report-schedule-details > summary {
  cursor: pointer;
  color: #0f6b63;
  font-size: 12px;
  font-weight: 850;
}

.report-actions-menu > div {
  position: absolute;
  z-index: 5;
  right: 0;
  display: grid;
  min-width: 178px;
  gap: 5px;
  margin-top: 6px;
  padding: 8px;
  border: 1px solid #dce4ec;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
}

.report-actions-menu a,
.report-actions-menu button {
  display: block;
  width: 100%;
  padding: 6px 7px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #203040;
  font: inherit;
  font-size: 12px;
  font-weight: 750;
  text-align: left;
  text-decoration: none;
}

.report-actions-menu a:hover,
.report-actions-menu button:hover {
  background: #eef6f4;
}

.report-schedule-details {
  padding-top: 8px;
  border-top: 1px solid #edf1f5;
}

.report-schedule-grid {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.report-schedule-grid dl {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(160px, 100%), 1fr));
  gap: 6px;
  margin: 0;
}

.report-schedule-grid dl div {
  display: grid;
  gap: 2px;
  padding: 7px 8px;
  border: 1px solid #e4eaf0;
  border-radius: 7px;
  background: #fbfcfd;
}

.report-schedule-grid dd {
  margin: 0;
  color: #24313f;
  font-size: 12px;
}

.report-schedule-form {
  align-items: end;
}

.report-schedule-state {
  align-self: center;
  justify-self: start;
  padding: 5px 8px;
  border: 1px solid #dce4ec;
  border-radius: 999px;
  background: #f6faf8;
  color: #4d6876;
  font-size: 11px;
  font-weight: 850;
}

.report-schedule-state.is-dirty {
  border-color: #f3d6a4;
  background: #fff9ec;
  color: #91651c;
}

.report-schedule-form .button.is-disabled,
.report-schedule-form .button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.compact-details {
  margin-top: 6px;
}

.compact-action-details {
  min-width: 180px;
}

.compact-action-details form {
  display: grid;
  gap: 7px;
  margin-top: 8px;
  padding: 8px;
  border: 1px solid #e4eaf0;
  border-radius: 8px;
  background: #fbfcfd;
}

.compact-action-details label {
  display: flex;
  gap: 6px;
  align-items: center;
  font-size: 12px;
  font-weight: 700;
}

.compact-details summary {
  color: #0f6b63;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}

.compact-details dl {
  display: grid;
  gap: 5px;
  margin: 8px 0 0;
}

.compact-details dl div {
  display: grid;
  gap: 2px;
  padding: 6px 8px;
  border: 1px solid #e4eaf0;
  border-radius: 7px;
  background: #fbfcfd;
}

.compact-details dt {
  color: #687485;
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
}

.compact-details dd {
  margin: 0;
  color: #24313f;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.candidate-adoption-form {
  display: grid;
  gap: 10px;
}

.redacted-payload-preview {
  max-height: 360px;
  overflow: auto;
  white-space: pre-wrap;
  border: 1px solid #dce4ec;
  border-radius: 8px;
  background: #f7faf9;
  padding: 12px;
  font-size: 12px;
}

.mini-metric-grid,
.channel-sync-grid {
  display: grid;
  gap: 6px;
}

.mini-metric-grid span,
.channel-sync-grid span {
  display: flex;
  min-width: 135px;
  justify-content: space-between;
  gap: 10px;
  padding: 5px 7px;
  border: 1px solid #e4eaf0;
  border-radius: 7px;
  background: #fbfcfd;
  color: #24313f;
}

.mini-metric-grid strong,
.channel-sync-grid strong {
  color: #687485;
  font-size: 10px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.row-error {
  color: #9d2d2d;
  font-weight: 700;
}

.has-row-warning {
  background: #fffaf5;
}

/* Product Change Log */
.product-change-hero {
  display: grid;
  gap: 12px;
}

.product-change-filter {
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.product-change-more-filters {
  grid-column: 1 / -1;
  padding: 8px 10px;
  border: 1px solid #dbe2ea;
  border-radius: 8px;
  background: #f8fafc;
}

.product-change-more-filters > summary {
  color: #0f6b63;
  cursor: pointer;
  font-size: 12px;
  font-weight: 850;
}

.product-change-advanced-filter-grid {
  margin-top: 10px;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.product-change-quick-filters {
  margin-top: 2px;
}

.product-change-table {
  min-width: 1120px;
  table-layout: fixed;
}

.product-change-table th,
.product-change-table td {
  overflow-wrap: normal;
  word-break: normal;
}

.product-change-product-col {
  width: 280px;
  min-width: 280px;
}

.product-change-summary-col {
  width: 240px;
}

.product-change-impact-col {
  width: 180px;
}

.product-change-actions-col {
  width: 170px;
}

.product-change-select-col {
  width: 74px;
}

.product-change-risk-col,
.product-change-review-col {
  width: 105px;
}

.product-change-time-col {
  width: 116px;
}

.product-change-summary-card {
  color: inherit;
  text-decoration: none;
}

.product-change-summary-card:hover {
  border-color: #a7c4bf;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.03), 0 0 0 3px rgba(15, 118, 110, 0.08);
  text-decoration: none;
}

.product-change-main-row > td {
  vertical-align: middle;
}

.product-change-detail-row > td {
  padding: 0 10px 12px;
  background: #f8fafc;
}

.product-change-detail-row:hover > td {
  background: #f8fafc;
}

.product-change-detail-panel {
  border: 1px solid #dbe2ea;
  border-radius: 8px;
  background: #ffffff;
}

.product-change-detail-panel > summary {
  padding: 10px 12px;
  color: #0f6b63;
  cursor: pointer;
  font-size: 13px;
  font-weight: 850;
}

.product-change-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 0 12px 12px;
}

.product-change-detail-grid section {
  min-width: 0;
  padding: 12px;
  border: 1px solid #e5e9ef;
  border-radius: 8px;
  background: #fbfcfd;
}

.product-change-detail-grid h3 {
  margin: 0 0 8px;
  color: #27323f;
  font-size: 13px;
}

.product-change-field-table {
  table-layout: fixed;
}

.product-change-field-table td {
  overflow-wrap: anywhere;
}

.product-change-impact-chips,
.pill-row--compact {
  gap: 4px;
}

.product-change-review-form {
  display: grid;
  gap: 8px;
}

@media (max-width: 900px) {
  .product-change-detail-grid {
    grid-template-columns: 1fr;
  }
}

.compact-bulk-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 8px;
  margin: 0 0 10px;
  padding: 10px;
  border: 1px solid #dbe2ea;
  border-radius: 8px;
  background: #f8fafc;
}

.compact-bulk-actions label {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.product-change-product,
.change-summary {
  display: grid;
  gap: 4px;
  max-width: 360px;
  min-width: 0;
}

.product-change-product strong,
.change-summary strong {
  color: #1f2b36;
  line-height: 1.25;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.change-summary small {
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
}

.product-change-product--with-thumb {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  margin-top: 8px;
}

.product-change-product--with-thumb > span {
  min-width: 0;
}

.product-change-product--with-thumb small {
  display: inline-flex;
  max-width: 100%;
  width: fit-content;
  padding: 2px 7px;
  border-radius: 999px;
  background: #eef3f7;
  color: #53606d;
  font-size: 11px;
  font-weight: 850;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-thumb--square {
  width: 54px;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
}

img.product-thumb--square {
  display: block;
}

.mini-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.mini-table th,
.mini-table td {
  padding: 8px;
  border-bottom: 1px solid #e5e9ef;
  text-align: left;
  vertical-align: top;
}

.mini-table th {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* Sales Channels */
.sales-channel-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 12px;
}

.sales-channel-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  padding: 14px;
  border: 1px solid #dbe2ea;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.03);
}

.sales-channel-card--shopify {
  border-color: #cbe7d3;
  background: #f8fcf9;
}

.sales-channel-card--ebay {
  border-color: #cfe0f4;
  background: #f7fbff;
}

.sales-channel-card__icon {
  grid-row: span 2;
}

.sales-channel-card h3 {
  margin: 0;
  color: #17212d;
  font-size: 16px;
}

.sales-channel-card p {
  margin: 3px 0 0;
  color: #66717e;
}

.sales-channel-card dl {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.sales-channel-card dl div {
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid #e4eaf0;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.78);
}

.sales-channel-card dt {
  color: #687485;
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
}

.sales-channel-card dd {
  margin: 3px 0 0;
  color: #24313f;
  overflow-wrap: anywhere;
}

.sales-channel-card .row-actions {
  grid-column: 1 / -1;
  justify-content: flex-start;
}

.empty-card {
  border: 1px dashed #cdd6e0;
  border-radius: 8px;
}

.safe-flow-list {
  display: grid;
  gap: 8px;
  padding: 16px 18px 18px;
}

.safe-flow-list span {
  padding: 9px 11px;
  border: 1px solid #e4eaf0;
  border-radius: 7px;
  background: #fbfcfd;
  color: #334151;
  font-weight: 650;
}

.channel-discovery-tip {
  margin: 0 18px 14px;
  padding: 10px 12px;
  border: 1px solid #bfe4da;
  border-radius: 8px;
  background: #f2fbf8;
  color: #174f49;
  font-weight: 650;
  line-height: 1.45;
}

.channel-discovery-card {
  align-content: start;
}

.channel-discovery-pull-form {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: end;
}

.channel-discovery-pull-form label {
  width: 100%;
  color: #596676;
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.channel-discovery-pull-form select {
  min-height: 34px;
  min-width: 96px;
}

.channel-discovery-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  width: 100%;
}

.safe-inline-note {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel-soft);
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.35;
}

.safe-never-list {
  width: 100%;
  margin: 0;
  padding: 8px 10px 8px 24px;
  border: 1px solid #f0c7c7;
  border-radius: 8px;
  background: #fff8f8;
  color: #7a2f2f;
  font-size: 0.9rem;
  line-height: 1.45;
}

.channel-discovery-preview-table,
.channel-discovery-import-table {
  min-width: 1040px;
}

.discovery-diagnostics-row td {
  background: #fbfcfd;
  border-top: 0;
}

.discovery-diagnostics-row details {
  max-width: 100%;
}

.discovery-diagnostics-row summary {
  cursor: pointer;
  color: var(--accent-strong);
  font-weight: 850;
}

.discovery-diagnostics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.discovery-diagnostics-grid > div {
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid #dce5ee;
  border-radius: 8px;
  background: #ffffff;
}

.discovery-diagnostics-grid strong,
.discovery-diagnostics-grid span {
  display: block;
}

.discovery-diagnostics-grid strong {
  margin-bottom: 3px;
  color: #5c6675;
  font-size: 11px;
  letter-spacing: 0;
  text-transform: uppercase;
}

.discovery-diagnostics-grid span,
.diagnostics-note {
  overflow-wrap: anywhere;
  word-break: normal;
}

.discovery-runs-table {
  table-layout: fixed;
  min-width: 1120px;
}

.discovery-runs-table th:nth-child(1),
.discovery-runs-table td:nth-child(1) {
  width: 86px;
}

.discovery-runs-table th:nth-child(2),
.discovery-runs-table td:nth-child(2) {
  width: 180px;
}

.discovery-runs-table th:nth-child(7),
.discovery-runs-table td:nth-child(7) {
  width: 250px;
}

.discovery-runs-table th:nth-child(8),
.discovery-runs-table td:nth-child(8) {
  width: 320px;
}

.discovery-summary-cell {
  max-width: 320px;
  min-width: 240px;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
  line-height: 1.4;
}

.discovery-summary-cell details {
  margin-top: 6px;
}

.mono-cell {
  color: #314155;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.panel-footer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  padding: 12px 18px 16px;
  border-top: 1px solid #e1e7ee;
  background: #fbfcfd;
}

.bulk-match-actions {
  margin: 0 0 12px;
  padding: 10px 12px;
  border: 1px solid #dce5ee;
  border-radius: 8px;
  background: #fbfcfd;
}

.bulk-match-actions summary {
  cursor: pointer;
  font-weight: 850;
  color: #0f3d3a;
}

.bulk-match-actions .safe-flow-list {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  padding: 10px 0;
}

.inline-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 750;
  color: #425266;
}

.settings-map--channels {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  padding: 16px 18px 18px;
}

.settings-map--channels > div {
  display: grid;
  gap: 7px;
  align-content: start;
}

.settings-map--channels a {
  color: #0f6b63;
  font-weight: 800;
  text-decoration: none;
}

.settings-map--channels a:hover {
  text-decoration: underline;
}

/* Product Hub */
.product-hub-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 12px 0;
  padding: 6px;
  border: 1px solid #dce5ee;
  border-radius: 8px;
  background: #f8fafc;
}

.product-hub-tab {
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: #435166;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.product-hub-tab:hover {
  border-color: #cfd8e3;
  background: #fff;
}

.product-hub-tab.is-active {
  border-color: #b7d7d1;
  background: #eaf7f4;
  color: #0f5f57;
}

.product-hub-panel[hidden] {
  display: none !important;
}

.product-hub-manager-detail,
.product-hub-master-detail,
.product-hub-stock-command {
  max-width: 100%;
  padding: 0;
  overflow: hidden;
}

.product-hub-manager-detail > summary,
.product-hub-master-detail > summary,
.product-hub-stock-command > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  cursor: pointer;
  list-style: none;
}

.product-hub-manager-detail > summary::-webkit-details-marker,
.product-hub-master-detail > summary::-webkit-details-marker,
.product-hub-stock-command > summary::-webkit-details-marker {
  display: none;
}

.product-hub-manager-detail > summary strong,
.product-hub-master-detail > summary strong,
.product-hub-stock-command > summary strong {
  display: block;
  color: #17212b;
}

.product-hub-manager-detail > summary small,
.product-hub-master-detail > summary small,
.product-hub-stock-command > summary small {
  display: block;
  margin-top: 3px;
  color: #667587;
}

.product-hub-manager-detail[open] > summary,
.product-hub-master-detail[open] > summary,
.product-hub-stock-command[open] > summary {
  border-bottom: 1px solid #e1e7ee;
  background: #fbfcfd;
}

.product-hub-manager-detail > .panel {
  margin: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.product-hub-stock-command > p,
.product-hub-stock-command > form,
.product-hub-master-detail > form,
.product-hub-master-detail > dl,
.product-hub-master-detail > p,
.product-hub-master-detail > details {
  margin: 0;
  padding: 14px;
}

.product-hub-stock-command > form,
.product-hub-master-detail > form,
.product-hub-master-detail > dl,
.product-hub-master-detail > details {
  border-top: 1px solid #eef2f6;
}

.product-hub-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  margin: 0 0 12px;
}

.product-hub-summary-card {
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 14px;
}

.product-hub-summary-card h2 {
  margin: 0;
  font-size: 18px;
}

.product-hub-summary-card--action {
  border-color: #cfe0f4;
  background: #f8fbff;
}

.product-hub-attention-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid #f1d19c;
  border-radius: 8px;
  background: #fff8e9;
}

.product-hub-attention-strip strong {
  display: block;
  margin: 2px 0;
  color: #6c3d00;
}

.product-hub-attention-strip p {
  margin: 0;
  color: #5f4a28;
}

.product-channel-command-centre {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.product-channel-command-summary {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #e4ece9;
}

.product-channel-command-summary h2,
.product-channel-command-summary p {
  margin: 0;
}

.product-channel-command-summary h2 {
  font-size: 17px;
}

.product-channel-manager-details {
  margin-top: 8px;
}

.product-channel-manager-details > summary {
  cursor: pointer;
  color: #42615b;
  font-size: 11px;
  font-weight: 800;
}

.product-channel-manager-details[open] > summary {
  margin-bottom: 8px;
}

.product-channel-command-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.product-channel-command-head h2 {
  margin: 0;
  font-size: 20px;
}

.product-channel-help {
  max-width: 360px;
  color: #506070;
  font-size: 12px;
}

.product-channel-help summary {
  cursor: pointer;
  color: #0f6b63;
  font-weight: 850;
}

.product-channel-help dl {
  display: grid;
  gap: 6px;
  margin: 8px 0 0;
}

.product-channel-help div {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 8px;
}

.product-channel-help dt {
  font-weight: 850;
}

.product-channel-help dd {
  margin: 0;
}

.product-channel-matrix {
  display: grid;
  gap: 8px;
}

.product-channel-row {
  display: grid;
  grid-template-columns: minmax(150px, 0.95fr) repeat(5, minmax(118px, 1fr)) minmax(150px, 0.8fr);
  gap: 8px;
  align-items: stretch;
  padding: 10px;
  border: 1px solid #dbe7e2;
  border-radius: 8px;
  background: #fbfefd;
}

.product-channel-row--warn {
  border-color: #efd39b;
  background: #fffdf7;
}

.product-channel-row__identity,
.product-channel-row__metric,
.product-channel-row__actions {
  min-width: 0;
}

.product-channel-row__identity h3,
.product-channel-row__metric strong {
  display: block;
  margin: 0 0 5px;
  color: #17212b;
  font-size: 15px;
}

.product-channel-row__metric span {
  display: block;
  margin-bottom: 4px;
  color: #647386;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.product-channel-row__metric small {
  display: block;
  color: #5f6b7a;
  font-size: 11px;
  line-height: 1.35;
}

.product-channel-row__actions {
  display: grid;
  align-content: start;
  gap: 6px;
}

.product-hub-detail-notice {
  margin-top: 12px;
}

.product-hub-detail-notice summary {
  cursor: pointer;
  font-weight: 800;
}

@media (max-width: 980px) {
  .product-channel-command-head,
  .product-hub-attention-strip {
    align-items: stretch;
    flex-direction: column;
  }

  .product-channel-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .product-channel-row,
  .product-channel-help div {
    grid-template-columns: minmax(0, 1fr);
  }

  .workspace-command-deck .workspace-command--deck {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 6px 8px;
    padding: 7px;
  }

  .workspace-command--deck .workspace-command__media {
    width: 46px;
    height: 44px;
  }

  .workspace-command--deck .workspace-command__summary h2 {
    display: -webkit-box;
    overflow: hidden;
    font-size: 14px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    white-space: normal;
  }

  .workspace-command__identity > span:nth-child(2) {
    display: none;
  }

  .workspace-channel-command-disclosure {
    overflow: hidden;
    border: 1px solid #dce5e8;
    border-radius: 6px;
    background: #fff;
  }

  .workspace-channel-command-disclosure > summary {
    display: flex;
    min-height: 34px;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 5px 7px;
    color: #23443e;
    cursor: pointer;
    font-size: 11px;
    list-style: none;
  }

  .workspace-channel-command-disclosure > summary::-webkit-details-marker {
    display: none;
  }

  .workspace-channel-command-disclosure > summary::after {
    content: "+";
    font-size: 15px;
    font-weight: 850;
  }

  .workspace-channel-command-disclosure[open] > summary::after {
    content: "-";
  }

  .workspace-channel-command-disclosure > summary > span {
    display: flex;
    min-width: 0;
    gap: 6px;
    overflow: hidden;
  }

  .workspace-channel-command-disclosure > summary small {
    overflow: hidden;
    color: var(--text-soft);
    font-size: 9px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .workspace-channel-command-disclosure > .compact-channel-command {
    border: 0;
    border-top: 1px solid #dce5e8;
    border-radius: 0;
  }

  .compact-channel-command__row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px 6px;
    padding: 5px 7px;
  }

  .listing-finish-queue {
    padding: 8px;
  }

  .listing-finish-queue__head {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .listing-finish-queue__items {
    grid-template-columns: minmax(0, 1fr);
  }

  .listing-finish-queue__item,
  .listing-finish-queue__item:nth-child(odd) {
    border-left: 0;
    border-top: 1px solid #dce5e8;
  }

  .listing-finish-queue__item:first-child {
    border-top: 0;
  }

  .compact-channel-command__action {
    grid-column: 1 / -1;
    justify-content: space-between;
  }

  .workspace-command-deck .workspace-action-bar--compact {
    display: grid;
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    overflow-x: hidden;
    gap: 4px;
    padding: 5px 7px;
  }

  .workspace-command-deck .workspace-action-bar__meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    min-width: 0;
    overflow: visible;
  }

  .workspace-command-deck .workspace-action-bar__meta > * {
    flex: 0 0 auto;
  }

  .workspace-command-deck .workspace-action-bar__meta > .save-state {
    flex-basis: 100%;
    white-space: normal;
  }

  .workspace-command-deck .workspace-action-bar--compact .action-row {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 6px;
    overflow: visible;
  }

  .workspace-command-deck .workspace-action-bar--compact .action-row > * {
    width: 100%;
    min-width: 0;
    justify-content: center;
  }

  .workspace-command-deck .workspace-action-bar--compact .workspace-more-menu {
    grid-column: 1 / -1;
  }

  .workspace-command-deck .workspace-action-bar--compact .workspace-more-menu > summary {
    justify-content: center;
    width: 100%;
  }
}

.workspace-review-evidence {
  padding: 0 6px 6px;
  border: 1px solid #d5e3df;
  border-radius: 5px;
  background: #fff;
}

.workspace-review-evidence > summary small,
.workspace-review-evidence__group small {
  color: var(--text-soft);
  font-size: 9px;
}

.workspace-review-evidence > summary small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workspace-review-evidence > summary .status-chip {
  margin-left: auto;
}

.workspace-review-evidence__groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 8px;
  padding: 0 8px 8px;
}

.workspace-review-evidence__group {
  min-width: 0;
  border-top: 1px solid #e3ece9;
}

.workspace-review-evidence__group > header,
.workspace-review-evidence__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.workspace-review-evidence__group > header {
  padding: 6px 0 4px;
}

.workspace-review-evidence__rows {
  display: grid;
  gap: 2px;
}

.workspace-review-evidence__row {
  min-width: 0;
  padding: 4px 5px;
  background: #f7faf9;
}

.workspace-review-evidence__row > div {
  display: grid;
  min-width: 0;
  gap: 1px;
}

.workspace-review-evidence__row strong,
.workspace-review-evidence__row span {
  overflow: hidden;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workspace-review-evidence__row > div > span {
  color: #29433e;
}

.workspace-review-evidence__more {
  display: block;
  padding-top: 4px;
}

@media (max-width: 720px) {
  .workspace-review-evidence > summary small {
    display: none;
  }
}

.mini-metric-list {
  display: grid;
  gap: 6px;
  margin: 0;
}

.mini-metric-list div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 5px 0;
  border-bottom: 1px solid #edf1f5;
}

.mini-metric-list dt {
  color: #697586;
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.mini-metric-list dd {
  margin: 0;
  color: #1f2b36;
  font-weight: 750;
  text-align: right;
}

/* Orders */
.orders-surface-hero {
  gap: 10px;
}

.orders-page-head {
  align-items: flex-start;
  gap: 16px;
}

.orders-head-action {
  margin-left: auto;
}

.orders-summary-slim {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.orders-summary-slim span {
  align-items: baseline;
  background: #f8fbfa;
  border: 1px solid #dbe7e2;
  border-radius: 999px;
  color: #475569;
  display: inline-flex;
  gap: 5px;
  min-height: 28px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 750;
}

.orders-summary-slim strong {
  color: #14213d;
  font-size: 14px;
}

.orders-dashboard-summary,
.orders-more-filters,
.orders-more-tools {
  border: 1px solid #dbe7e2;
  border-radius: 8px;
  background: #fbfefd;
}

.orders-dashboard-summary > summary,
.orders-more-filters > summary,
.orders-more-tools > summary {
  cursor: pointer;
  color: #0f766e;
  font-size: 12px;
  font-weight: 850;
  padding: 8px 10px;
}

.orders-dashboard-summary .summary-strip {
  padding: 0 10px 10px;
}

.orders-dashboard-summary .summary-card {
  min-height: auto;
  padding: 9px 10px;
}

.orders-dashboard-summary .orders-stock-summary-slim {
  border-top: 1px solid #e2e8f0;
  margin: 0 10px 10px;
  padding-top: 8px;
}

.orders-filter-form {
  display: grid;
  gap: 8px;
}

.orders-filter-primary {
  align-items: end;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(260px, 1.4fr) minmax(180px, 0.6fr) auto auto auto;
}

.orders-filter-primary label,
.orders-more-filters label {
  color: #5f6b7a;
  display: grid;
  font-size: 12px;
  font-weight: 850;
  gap: 4px;
}

.orders-more-filters {
  align-self: end;
}

.orders-more-filters .filter-grid {
  border-top: 1px solid #e2e8f0;
  margin: 0;
  padding: 9px;
}

.orders-active-filters {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.orders-active-filters span,
.orders-active-filters a {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  min-height: 26px;
  padding: 5px 9px;
  text-decoration: none;
}

.orders-active-filters span {
  color: #64748b;
  padding-left: 0;
}

.orders-active-filters a {
  background: #f8fafc;
  border: 1px solid #dbe5ea;
  color: #0f766e;
}

.orders-active-filters a:hover,
.orders-active-filters a:focus {
  background: #eef9f6;
  border-color: #8fd5c5;
}

.orders-active-filters .orders-clear-filters {
  background: #fff;
  color: #475569;
}

.orders-more-tools {
  margin-top: 2px;
}

.orders-more-tools h3 {
  color: #14213d;
  font-size: 13px;
  margin: 0;
}

.orders-more-tools > h3,
.orders-more-tools > p,
.orders-more-tools > form {
  margin-left: 10px;
  margin-right: 10px;
}

.orders-more-tools > form {
  margin-bottom: 10px;
}

.orders-source-tools {
  border-bottom: 1px solid #e2e8f0;
  display: grid;
  gap: 8px;
  margin: 0 10px 10px;
  padding: 0 0 10px;
}

.orders-source-tools__head,
.orders-source-row {
  align-items: center;
  display: grid;
  gap: 8px;
}

.orders-source-tools__head {
  grid-template-columns: minmax(0, 1fr) auto;
}

.orders-source-tools__head p {
  margin: 3px 0 0;
}

.orders-source-list {
  display: grid;
  gap: 6px;
}

.orders-source-row {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  grid-template-columns: minmax(180px, 1fr) auto minmax(180px, 0.8fr) auto;
  min-height: 42px;
  padding: 7px 8px;
}

.orders-source-row__identity {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.orders-source-row__identity strong,
.orders-source-row__message {
  overflow-wrap: anywhere;
}

.orders-source-row form {
  margin: 0;
}

@media (max-width: 860px) {
  .orders-source-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .orders-source-row__message {
    grid-column: 1 / -1;
  }
}

.orders-workflow-drawer {
  border: 1px solid #dbe7e2;
  border-radius: 8px;
  background: #fbfefd;
}

.orders-workflow-drawer > summary {
  cursor: pointer;
  color: #244239;
  font-size: 12px;
  font-weight: 850;
  padding: 8px 10px;
}

.orders-workflow-drawer .order-workflow-strip {
  margin: 0;
  padding: 0 10px 10px;
}

.order-workflow-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
}

.order-workflow-strip span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  border: 1px solid #dbe7e2;
  border-radius: 999px;
  background: #f8fcfa;
  color: #244239;
  font-size: 12px;
  font-weight: 800;
}

.order-hub {
  display: grid;
  gap: 16px;
}

.order-header-grid,
.document-card-grid {
  display: grid;
  gap: 12px;
}

.order-header-grid {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.document-card-grid {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.document-options-grid,
.document-output-grid,
.line-item-card-grid {
  display: grid;
  gap: 12px;
}

.document-options-grid,
.document-output-grid {
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
}

.line-item-card-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.order-fact {
  min-width: 0;
  padding-left: 12px;
  border-left: 3px solid #d9e7e5;
}

.order-fact span,
.document-prereqs span {
  display: block;
  color: #5f6b7a;
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.order-fact strong,
.document-prereqs strong {
  display: block;
  margin-top: 3px;
  color: #192633;
  font-size: 14px;
}

.document-card {
  display: flex;
  flex-direction: column;
  gap: 13px;
  padding: 16px;
  border: 1px solid #d7e2e8;
  border-radius: 8px;
}

.document-option-card,
.document-latest-card,
.line-items-card,
.line-item-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  padding: 14px;
  border: 1px solid #d7e2e8;
  border-radius: 8px;
  background: #fff;
}

.line-items-card {
  margin-top: 12px;
}

.line-item-card h4 {
  margin: 2px 0 4px;
}

.document-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.document-card-head h3 {
  margin: 0;
}

.document-settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 9px;
}

.document-settings-grid form,
.document-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.document-mini-meta {
  display: grid;
  gap: 6px;
  margin: 0;
}

.document-mini-meta div {
  display: grid;
  grid-template-columns: minmax(90px, 0.45fr) minmax(0, 1fr);
  gap: 8px;
  align-items: baseline;
  min-width: 0;
}

.document-mini-meta dt {
  color: #5f6b7a;
  font-size: 12px;
  font-weight: 850;
}

.document-mini-meta dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
}

.document-proof-actions {
  align-items: center;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin: 12px 0;
  padding: 12px;
}

.document-proof-actions p {
  margin: 4px 0 0;
}

.document-settings-grid label {
  display: grid;
  gap: 4px;
}

.document-prereqs {
  padding: 11px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  background: #f8fafc;
}

.document-prereqs ul {
  margin: 7px 0 0;
  padding-left: 16px;
}

.document-actions .button,
.document-actions button {
  white-space: nowrap;
}

.document-inline-preview {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
}

.document-inline-preview summary {
  cursor: pointer;
  padding: 9px 11px;
  font-weight: 850;
}

.document-inline-preview__placeholder,
.document-inline-preview__fallback {
  border-top: 1px solid #e2e8f0;
  color: #475569;
  font-size: 13px;
  padding: 18px;
}

.document-inline-preview__fallback {
  background: #fff7ed;
  color: #9a3412;
}

.document-inline-preview__fallback a {
  color: #0f766e;
  font-weight: 850;
  margin-left: 6px;
}

.document-inline-preview iframe {
  display: block;
  width: 100%;
  min-height: min(72vh, 780px);
  border: 0;
  border-top: 1px solid #e2e8f0;
  background: #fff;
}

.document-draft-pdf-table {
  min-width: 980px;
}

.document-draft-pdf-table th,
.document-draft-pdf-table td {
  white-space: normal;
}

.document-draft-pdf-table th:last-child,
.document-draft-pdf-table td:last-child,
.document-draft-pdf-table .document-draft-action-column {
  min-width: 210px;
  white-space: nowrap;
}

.document-draft-pdf-table .row-actions {
  align-items: flex-start;
  flex-wrap: wrap;
}

.compact-table th,
.compact-table td {
  vertical-align: top;
}

.compact-table .action-cell {
  min-width: 112px;
  white-space: nowrap;
}

.compact-table .actions-cell,
.compact-table th.actions-col {
  min-width: 190px;
  white-space: nowrap;
}

.danger-action {
  color: #991b1b;
}

.compact-table .order-doc-actions,
.compact-table th.action-cell {
  min-width: 190px;
  white-space: nowrap;
}

.compact-table .order-doc-actions {
  align-items: flex-start;
}

.import-review-table {
  table-layout: fixed;
}

.field-ownership-table {
  table-layout: fixed;
}

.field-ownership-table td {
  overflow-wrap: anywhere;
  vertical-align: top;
}

.product-source-strip {
  align-items: center;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin: 12px 0;
  padding: 12px;
}

.product-source-strip span,
.product-field-source-table td {
  overflow-wrap: anywhere;
}

.import-review-table th,
.import-review-table td {
  vertical-align: top;
}

.import-review-table th:nth-child(1) {
  width: 54px;
}

.import-review-table th:nth-child(2) {
  width: 22%;
}

.import-review-table th:nth-child(5),
.import-review-table th:nth-child(6) {
  width: 17%;
}

.import-review-value {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.import-review-value span,
.import-review-reason p {
  overflow-wrap: anywhere;
  white-space: normal;
}

.compact-review-form input[type="text"] {
  min-width: 180px;
  width: 100%;
}

.inline-stack {
  display: grid;
  gap: 7px;
}

.line-form-grid {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) minmax(150px, 1fr) minmax(170px, 1fr) minmax(120px, 1fr) minmax(140px, 1fr) auto;
  gap: 8px;
  align-items: end;
}

.line-form-grid label {
  display: grid;
  gap: 4px;
  color: #5f6b7a;
  font-size: 12px;
  font-weight: 850;
}

.line-form-grid input,
.line-form-grid select {
  min-width: 0;
}

.line-form-grid button[type="submit"] {
  min-height: 37px;
  white-space: nowrap;
}

.order-surface-row td {
  background: linear-gradient(90deg, #d9f3ec 0, #d9f3ec 7px, #f3fbf7 7px, #fffaf0 100%);
  border-top: 0;
  padding: 0 12px 14px;
}

.order-surface-row {
  display: none;
}

.order-surface-row.is-open {
  display: table-row;
}

.order-document-surface {
  border: 1px solid #a9d9cd;
  border-left: 6px solid #0f766e;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 118, 110, 0.12);
}

.order-document-surface > summary {
  align-items: center;
  background: #effaf7;
  border-bottom: 1px solid #d6ebe5;
  cursor: pointer;
  display: flex;
  gap: 10px;
  min-height: 34px;
  padding: 7px 10px;
  font-weight: 850;
}

.order-document-surface > summary::marker {
  color: var(--teal, #0f766e);
}

.order-document-surface-placeholder {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  border: 1px solid #cce9df;
  border-left: 6px solid #8acbbe;
  border-radius: 8px;
  background: #ffffff;
  padding: 12px;
  box-shadow: 0 8px 18px rgba(15, 118, 110, 0.08);
}

.order-document-surface-placeholder strong {
  color: #17463f;
}

.surface-save-status {
  border-radius: 999px;
  background: #eef2f7;
  color: #475569;
  font-size: 12px;
  font-weight: 850;
  margin-left: auto;
  padding: 5px 10px;
  white-space: nowrap;
}

.surface-save-status[data-state="saving"],
.surface-save-status[data-state="unsaved"] {
  background: #fff7ed;
  color: #9a3412;
}

.surface-save-status[data-state="saved"] {
  background: #e7f7f2;
  color: #006b5f;
}

.surface-save-status[data-state="failed"] {
  background: #fff1f2;
  color: #b91c1c;
}

.order-surface-grid,
.order-surface-accordion {
  display: grid;
  gap: 12px;
  padding: 12px;
}

.order-surface-grid {
  grid-template-columns: minmax(240px, 0.8fr) minmax(420px, 1.55fr) minmax(190px, 0.55fr);
}

.order-surface-accordion {
  grid-template-columns: 1fr;
}

.surface-accordion-section {
  border: 1px solid #dbe5ea;
  border-radius: 8px;
  background: #fff;
  overflow: clip;
}

.surface-accordion-section > summary {
  align-items: center;
  background: #f8fafc;
  cursor: pointer;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  min-height: 39px;
  padding: 9px 12px;
}

.surface-accordion-section > summary::marker {
  color: var(--teal, #0f766e);
}

.surface-accordion-body {
  display: grid;
  gap: 10px;
  padding: 12px;
}

.surface-accordion-body--actions {
  max-width: 380px;
}

.surface-accordion-section--admin > summary {
  background: #fbfcfd;
}

.surface-card {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 12px;
}

.surface-customer-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
}

.surface-customer-grid div {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 8px 9px;
  border: 1px solid #e2e8f0;
  border-radius: 7px;
  background: #f8fafc;
}

.surface-customer-grid span {
  color: #64748b;
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.surface-customer-grid strong {
  color: #192633;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.surface-card h3,
.surface-card p {
  margin: 0;
}

.surface-card p,
.surface-line-title span {
  color: #5f6b7a;
  font-size: 12px;
}

.surface-card-head {
  align-items: start;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  min-width: 0;
}

.surface-field-grid,
.surface-line-grid {
  display: grid;
  gap: 8px;
}

.surface-field-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.surface-line-grid {
  grid-template-columns: repeat(4, minmax(130px, 1fr));
}

.surface-field-grid label,
.surface-line-grid label {
  color: #5f6b7a;
  display: grid;
  font-size: 12px;
  font-weight: 850;
  gap: 4px;
  min-width: 0;
}

.surface-field-grid select,
.surface-line-grid input,
.surface-line-grid select {
  min-width: 0;
  width: 100%;
}

.surface-field-hint {
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.25;
}

.surface-note {
  grid-column: span 2;
}

.surface-checkbox {
  align-content: end;
  min-height: 56px;
}

.surface-line-card {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  display: grid;
  gap: 9px;
  padding: 10px;
}

.surface-line-title {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.surface-line-title strong {
  max-width: 100%;
  overflow-wrap: anywhere;
}

.order-prep-console {
  background: #fffdf7;
  border-top: 1px solid #e2e8f0;
  display: grid;
  gap: 7px;
  padding: 10px 12px 12px;
}

.surface-progress-header {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(260px, 1fr) auto;
}

.surface-progress-copy {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  min-width: 0;
}

.surface-progress-copy > strong {
  color: #14213d;
  font-size: 13px;
}

.surface-progress-copy p {
  color: #64748b;
  flex-basis: 100%;
  font-size: 12px;
  margin: 0;
}

.surface-progress-header .surface-save-status {
  margin-left: 0;
}

.surface-status-chip {
  align-items: center;
  background: #f8fafc;
  border: 1px solid #dbe5ea;
  border-radius: 999px;
  color: #475569;
  display: inline-flex;
  font-size: 11px;
  font-weight: 850;
  gap: 5px;
  line-height: 1;
  min-height: 25px;
  padding: 6px 9px;
  white-space: nowrap;
}

.surface-status-chip strong.pass {
  color: #047857;
}

.surface-status-chip strong.warn {
  color: #9a3412;
}

.surface-status-chip strong.muted {
  color: #64748b;
}

.surface-status-chip strong.danger {
  color: #b91c1c;
}

.surface-primary-actions {
  align-items: center;
  display: flex;
  gap: 6px;
  justify-content: flex-end;
}

.surface-primary-action {
  display: flex;
  justify-content: flex-end;
}

.surface-primary-action button {
  min-width: 190px;
  white-space: nowrap;
}

.surface-status-row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.surface-section-label {
  color: #475569;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.surface-section-label--inline {
  align-items: center;
  display: inline-flex;
  min-height: 32px;
}

.surface-required-grid {
  display: grid;
  gap: 7px;
  grid-template-columns: minmax(260px, 0.8fr) minmax(520px, 1.6fr);
}

.surface-input-panel {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 7px;
  background: #fff;
}

.surface-mini-head {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: space-between;
}

.surface-mini-head h3 {
  color: #14213d;
  font-size: 13px;
  margin: 0;
}

.surface-checklist--compact {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 0;
  padding: 0;
}

.surface-checklist--compact span {
  border-radius: 999px;
  font-size: 11px;
  font-weight: 850;
  line-height: 1;
  min-height: 22px;
  padding: 5px 7px;
}

.surface-checklist--compact .ready {
  background: #ecfdf5;
  color: #047857;
}

.surface-checklist--compact .missing {
  background: #fff7ed;
  color: #9a3412;
}

.surface-optional-label {
  color: #64748b;
  font-size: 11px;
  font-weight: 750;
}

.surface-line-card--compact {
  background: #f8fafc;
  padding: 7px;
}

.surface-line-grid--compact {
  grid-template-columns: minmax(170px, 1fr) minmax(204px, 1.2fr) minmax(133px, 0.75fr) minmax(145px, 0.85fr);
}

.surface-serial-field {
  order: -2;
}

.surface-line-grid--compact .surface-note {
  grid-column: span 2;
}

.surface-action-strip {
  align-items: center;
  border-top: 1px solid #e2e8f0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 7px;
}

.surface-action-strip form {
  margin: 0;
}

.surface-action-strip .button,
.surface-action-strip button {
  white-space: nowrap;
}

.surface-more-actions {
  position: relative;
}

.surface-more-actions > summary {
  align-items: center;
  background: #fff;
  border: 1px solid #cfdce4;
  border-radius: 6px;
  color: #0f766e;
  cursor: pointer;
  display: inline-flex;
  font-size: 12px;
  font-weight: 850;
  min-height: 32px;
  padding: 7px 10px;
  white-space: nowrap;
}

.surface-more-actions[open] > summary {
  background: #eef9f6;
  border-color: #8fd5c5;
}

.surface-more-actions[open] {
  z-index: 6;
}

.surface-more-actions-menu {
  background: #fff;
  border: 1px solid #dbe5ea;
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.12);
  display: none;
  gap: 6px;
  left: 0;
  padding: 7px;
  position: absolute;
  top: 38px;
  width: 245px;
  z-index: 9;
}

.surface-more-actions[open] .surface-more-actions-menu {
  display: grid;
}

.surface-more-actions-menu .button,
.surface-more-actions-menu button {
  justify-content: center;
  width: 100%;
}

.surface-actions-card {
  align-content: start;
}

.surface-actions-card form,
.surface-actions-card .button {
  width: 100%;
}

.surface-actions-card button {
  width: 100%;
}

.preview-selection-toolbar {
  align-items: center;
  background: #f8fafc;
  border: 1px solid #dbe5ea;
  border-radius: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0;
  padding: 9px 10px;
}

.preview-selection-toolbar .checkbox-row {
  margin-right: auto;
}

.preview-selection-toolbar .button {
  white-space: nowrap;
}

.preview-selection-toolbar .muted-copy {
  flex-basis: 100%;
}

.orders-bulk-compact {
  align-items: center;
  display: flex;
  gap: 8px;
  margin: 0 0 8px;
}

.orders-bulk-toolbar[hidden] {
  display: none !important;
}

.orders-bulk-toolbar {
  align-items: center;
  background: #f8fbfa;
  border: 1px solid #dbe7e2;
  border-radius: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 8px;
  padding: 8px;
}

.order-bulk-selection-control {
  background: #f8fafc;
  border: 1px solid #dbe5ea;
  border-radius: 999px;
  padding: 6px 10px;
}

.order-bulk-more {
  position: relative;
}

.order-bulk-more > summary {
  align-items: center;
  background: #fff;
  border: 1px solid #cfdce4;
  border-radius: 6px;
  color: #0f766e;
  cursor: pointer;
  display: inline-flex;
  font-size: 12px;
  font-weight: 850;
  min-height: 32px;
  padding: 7px 10px;
  white-space: nowrap;
}

.order-bulk-more[open] > summary {
  background: #eef9f6;
  border-color: #8fd5c5;
}

.order-bulk-more[open] {
  z-index: 5;
}

.order-bulk-menu {
  background: #fff;
  border: 1px solid #dbe5ea;
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.12);
  display: none;
  gap: 6px;
  left: 0;
  padding: 7px;
  position: absolute;
  top: 38px;
  width: 240px;
  z-index: 8;
}

.order-bulk-more[open] .order-bulk-menu {
  display: grid;
}

.order-bulk-menu button {
  width: 100%;
}

.button.danger {
  background: #fff1f2;
  border-color: #fecdd3;
  color: #9f1239;
}

.button.danger:hover,
.button.danger:focus {
  background: #ffe4e6;
  border-color: #fda4af;
  color: #881337;
}

.restore-safe-banner {
  margin: 0 0 16px;
  padding: 10px 14px;
  border: 1px solid #f59e0b;
  border-radius: 8px;
  background: #fffbeb;
  color: #92400e;
  font-weight: 700;
}

@media (max-width: 900px) {
  .document-proof-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .document-mini-meta div {
    grid-template-columns: 1fr;
  }

  .line-form-grid {
    grid-template-columns: 1fr;
  }

  .order-surface-grid,
  .surface-field-grid,
  .surface-line-grid,
  .surface-required-grid,
  .surface-progress-header,
  .orders-filter-primary {
    grid-template-columns: 1fr;
  }

  .surface-note {
    grid-column: auto;
  }

  .surface-line-grid--compact {
    grid-template-columns: minmax(0, 1fr);
  }

  .surface-line-grid--compact .surface-note {
    grid-column: auto;
  }

  .surface-primary-action,
  .surface-primary-actions {
    justify-content: flex-start;
  }

  .surface-primary-action button {
    min-width: 0;
    width: 100%;
  }
}

@media (max-width: 760px) {
  .orders-table-wrap {
    overflow: visible;
  }

  .orders-table-wrap .orders-table {
    display: block;
    min-width: 0;
    max-width: 100%;
    width: 100%;
  }

  .orders-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .orders-table tbody {
    display: grid;
    gap: 10px;
    padding: 10px;
  }

  .orders-table .order-list-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border: 1px solid #dbe5ea;
    border-left: 5px solid #8acbbe;
    border-radius: 8px;
    background: #ffffff;
    cursor: pointer;
    overflow: hidden;
  }

  .orders-table .order-list-row.is-preparing {
    border-color: #8acbbe;
    border-left-color: #0f766e;
    background: #f0fbf8;
  }

  .orders-table .order-list-row td {
    display: grid;
    align-content: start;
    gap: 4px;
    width: auto !important;
    min-width: 0 !important;
    max-width: none;
    padding: 9px 10px;
    border: 0;
    border-bottom: 1px solid #edf1f5;
    overflow-wrap: anywhere;
    white-space: normal;
  }

  .orders-table .order-list-row td::before {
    content: attr(data-label);
    color: #64748b;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
  }

  .orders-table .order-list-row td[data-label="Select"],
  .orders-table .order-list-row td[data-label="Order"],
  .orders-table .order-list-row td[data-label="Customer"],
  .orders-table .order-list-row td[data-label="Product/SKU"],
  .orders-table .order-list-row td[data-label="Docs"],
  .orders-table .order-list-row td[data-label="Next action"],
  .orders-table .order-list-row td[data-label="Actions"] {
    grid-column: 1 / -1;
  }

  .orders-table .order-list-row td[data-label="Select"] {
    align-items: center;
    display: flex;
    justify-content: space-between;
  }

  .orders-table .order-list-row td[data-label="Select"]::before {
    margin-right: auto;
  }

  .orders-table .order-list-row td[data-label="Actions"] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: none;
  }

  .orders-table .order-list-row td[data-label="Actions"]::before {
    grid-column: 1 / -1;
  }

  .orders-table .order-list-row .row-actions form,
  .orders-table .order-list-row .row-actions .button,
  .orders-table .order-list-row .row-actions button {
    justify-content: center;
    width: 100%;
  }

  .orders-table .order-surface-row.is-open {
    display: block;
    width: 100%;
  }

  .orders-table .order-surface-row td {
    display: block;
    width: auto;
    min-width: 0;
    max-width: none;
    padding: 0 0 10px;
  }

  .order-document-surface,
  .order-document-surface-placeholder {
    position: static;
    width: 100%;
    max-width: 100%;
  }

  .surface-action-strip > .button,
  .surface-action-strip > form,
  .surface-action-strip > .surface-more-actions {
    width: 100%;
  }

  .surface-action-strip > .button,
  .surface-action-strip > form button,
  .surface-more-actions > summary {
    justify-content: center;
    width: 100%;
  }

  .surface-more-actions-menu {
    position: static;
    width: 100%;
    margin-top: 6px;
    box-shadow: none;
  }
}

@media (max-width: 900px) {
  .template-workbench-layout {
    grid-template-columns: 1fr;
  }

  .template-account-rail {
    position: static;
  }

  .template-group-card,
  .template-row-card {
    grid-template-columns: 1fr;
  }

  .template-source-strip a {
    width: 100%;
    margin-left: 0;
  }

  .product-change-filter,
  .sales-channel-card,
  .sales-channel-card dl {
    grid-template-columns: 1fr;
  }

  .sales-channel-card__icon,
  .sales-channel-card .row-actions {
    grid-column: auto;
  }

  .settings-live-create-form {
    grid-template-columns: 1fr;
  }

  .settings-confirm-input {
    min-width: 0;
  }
}

/* Staff shadow comparison: compact, route-scoped operational layout. */
.shadow-comparison-page {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.shadow-comparison-page .panel-head,
.shadow-comparison-page .result-meta,
.shadow-comparison-page .listing-improvement-summary {
  margin: 0;
}

.shadow-comparison-summary {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.shadow-comparison-summary article {
  min-height: 62px;
  padding: 8px 10px;
}

.shadow-comparison-summary strong {
  font-size: 18px;
}

.shadow-comparison-page .shadow-comparison-filter {
  display: grid;
  grid-template-columns: minmax(150px, 1.2fr) minmax(190px, 1.4fr) repeat(3, minmax(120px, 0.8fr)) auto;
  gap: 8px;
  align-items: end;
  margin: 0;
}

.shadow-comparison-filter label,
.shadow-comparison-export label {
  display: grid;
  gap: 3px;
  min-width: 0;
  color: #4f5d6b;
  font-size: 11px;
  font-weight: 800;
}

.shadow-comparison-filter input,
.shadow-comparison-filter select,
.shadow-comparison-export select {
  width: 100%;
  min-width: 0;
  height: 34px;
}

.shadow-comparison-filter .row-actions,
.shadow-comparison-export .row-actions {
  display: flex;
  align-items: end;
  gap: 6px;
  min-width: 0;
}

.shadow-comparison-filter .button,
.shadow-comparison-filter button,
.shadow-comparison-export .button,
.shadow-comparison-export button {
  min-height: 34px;
  white-space: nowrap;
}

.shadow-comparison-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 0;
}

.shadow-comparison-export {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  padding-top: 9px;
  border-top: 1px solid #e1e7ee;
}

.shadow-comparison-export > div:first-child p {
  margin: 2px 0 0;
}

.shadow-comparison-export > .row-actions {
  flex: 1;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.shadow-comparison-export form {
  display: flex;
  align-items: end;
  gap: 6px;
}

.shadow-comparison-export form label {
  width: 128px;
}

.shadow-comparison-results {
  padding: 0;
  overflow: hidden;
}

.shadow-comparison-results > .panel-head {
  margin: 0;
  padding: 12px 14px 10px;
}

.shadow-comparison-table {
  min-width: 1180px;
}

.shadow-comparison-detail-table {
  min-width: 860px;
}

.shadow-comparison-safety {
  padding: 12px 14px;
}

@media (max-width: 1180px) {
  .shadow-comparison-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .shadow-comparison-page .shadow-comparison-filter {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .shadow-comparison-export {
    align-items: flex-start;
    flex-direction: column;
  }

  .shadow-comparison-export > .row-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  .shadow-comparison-summary,
  .shadow-comparison-page .shadow-comparison-filter {
    grid-template-columns: 1fr;
  }

  .shadow-comparison-filter .row-actions,
  .shadow-comparison-export > .row-actions,
  .shadow-comparison-export form {
    align-items: stretch;
    flex-direction: column;
    width: 100%;
  }

  .shadow-comparison-export form label,
  .shadow-comparison-export .button,
  .shadow-comparison-export button {
    width: 100%;
  }
}
