.pw-page {
  --pw-line: #d7e0e8;
  --pw-line-strong: #bdc9d5;
  --pw-text: #17202a;
  --pw-muted: #667788;
  --pw-blue: #2563eb;
  --pw-blue-soft: #eaf1ff;
  --pw-teal: #087f72;
  --pw-teal-soft: #e3f5f1;
  --pw-amber: #9a5a12;
  --pw-amber-soft: #fff3da;
  --pw-red: #b73d3d;
  --pw-red-soft: #fff0f0;
  color: var(--pw-text);
  display: grid;
  gap: 12px;
  min-height: calc(100vh - 58px);
  min-width: 0;
  overflow-wrap: anywhere;
}

.pw-page button,
.pw-page input,
.pw-page select {
  border-radius: 6px;
}

.pw-topbar {
  align-items: center;
  background: #fff;
  border: 1px solid var(--pw-line);
  border-radius: 8px;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(180px, 1fr) auto auto;
  min-height: 70px;
  padding: 12px 16px;
}

.pw-topbar > div:first-child {
  min-width: 0;
}

.pw-topbar > div:first-child span {
  color: var(--pw-teal);
  display: block;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 2px;
}

.pw-topbar h2 {
  font-size: 21px;
  line-height: 1.25;
  margin: 0;
}

.pw-summary {
  display: grid;
  gap: 4px;
  grid-template-columns: repeat(3, minmax(78px, 1fr));
  margin: 0;
}

.pw-summary div {
  border-left: 1px solid var(--pw-line);
  min-width: 0;
  padding: 0 12px;
}

.pw-summary dt {
  color: var(--pw-muted);
  font-size: 11px;
}

.pw-summary dd {
  font-size: 18px;
  font-weight: 800;
  margin: 2px 0 0;
}

.pw-notice {
  background: #f4f7fa;
  border-left: 4px solid var(--pw-line-strong);
  color: #394a59;
  min-height: 36px;
  padding: 9px 12px;
}

.pw-notice.success {
  background: var(--pw-teal-soft);
  border-left-color: var(--pw-teal);
  color: #075e55;
}

.pw-notice.warning {
  background: var(--pw-amber-soft);
  border-left-color: var(--pw-amber);
  color: #70420d;
}

.pw-notice.danger {
  background: var(--pw-red-soft);
  border-left-color: var(--pw-red);
  color: #8f2d2d;
}

.pw-layout {
  align-items: start;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
  min-width: 0;
}

.pw-queue,
.pw-detail {
  background: #fff;
  border: 1px solid var(--pw-line);
  border-radius: 8px;
  min-width: 0;
}

.pw-queue {
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 168px);
  min-height: 560px;
  overflow: hidden;
  position: sticky;
  top: 0;
}

.pw-queue-head {
  border-bottom: 1px solid var(--pw-line);
  display: grid;
  gap: 10px;
  padding: 14px;
}

.pw-queue-head > div {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.pw-queue-head strong {
  font-size: 15px;
}

.pw-queue-head span {
  color: var(--pw-muted);
  font-size: 12px;
}

.pw-filter-strip {
  border-bottom: 1px solid var(--pw-line);
  display: flex;
  gap: 5px;
  overflow-x: auto;
  padding: 8px;
  scrollbar-width: thin;
}

.pw-filter-strip button {
  align-items: center;
  display: inline-flex;
  flex: 0 0 auto;
  gap: 4px;
  min-height: 28px;
  padding: 0 8px;
}

.pw-filter-strip button span {
  color: var(--pw-muted);
  font-size: 11px;
}

.pw-filter-strip button.active {
  background: var(--pw-blue-soft);
  border-color: #88aef8;
  color: #174ea6;
}

.pw-queue-list {
  display: grid;
  gap: 7px;
  min-height: 0;
  overflow-y: auto;
  padding: 8px;
}

.pw-task-card {
  align-items: start;
  background: #fff;
  border: 1px solid var(--pw-line);
  border-radius: 7px;
  display: grid;
  gap: 5px;
  min-height: 112px;
  padding: 10px 11px;
  position: relative;
  text-align: left;
  width: 100%;
}

.pw-task-card:hover,
.pw-task-card.selected {
  border-color: #7fa8f7;
  box-shadow: inset 3px 0 0 var(--pw-blue);
}

.pw-task-card.selected {
  background: #f7faff;
}

.pw-task-card strong {
  font-size: 14px;
  line-height: 1.4;
  padding-right: 76px;
}

.pw-task-card small {
  color: #455767;
  line-height: 1.35;
}

.pw-task-card time,
.pw-task-source {
  color: var(--pw-muted);
  font-size: 11px;
}

.pw-task-card time {
  justify-self: end;
}

.pw-task-status {
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 6px;
  position: absolute;
  right: 9px;
  top: 9px;
}

.pw-task-status.neutral,
.pw-pill.neutral,
.pw-state.neutral {
  background: #eef2f6;
  color: #4c6072;
}

.pw-task-status.success,
.pw-pill.success,
.pw-state.success {
  background: var(--pw-teal-soft);
  color: #076a5f;
}

.pw-task-status.warning,
.pw-pill.warning,
.pw-state.warning {
  background: var(--pw-amber-soft);
  color: #7d490e;
}

.pw-task-status.danger,
.pw-pill.danger,
.pw-state.danger {
  background: var(--pw-red-soft);
  color: #9d3131;
}

.pw-detail {
  min-height: 650px;
  overflow: hidden;
}

.pw-detail-empty {
  align-items: center;
  color: var(--pw-muted);
  display: flex;
  flex-direction: column;
  gap: 5px;
  justify-content: center;
  min-height: 520px;
}

.pw-detail-empty strong {
  color: var(--pw-text);
  font-size: 17px;
}

.pw-task-head {
  align-items: start;
  border-bottom: 1px solid var(--pw-line);
  display: flex;
  gap: 16px;
  justify-content: space-between;
  padding: 16px 18px 13px;
}

.pw-task-title {
  min-width: 0;
}

.pw-task-title > span {
  color: var(--pw-muted);
  font-size: 12px;
}

.pw-task-title h3 {
  font-size: 20px;
  line-height: 1.35;
  margin: 3px 0 4px;
}

.pw-task-title p {
  color: #455767;
  margin: 0;
}

.pw-state,
.pw-pill {
  border-radius: 4px;
  display: inline-flex;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
  padding: 5px 8px;
}

.pw-stagebar {
  align-items: start;
  border-bottom: 1px solid var(--pw-line);
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  list-style: none;
  margin: 0;
  padding: 11px 18px 12px;
}

.pw-stagebar li {
  align-items: center;
  color: #82909c;
  display: flex;
  gap: 6px;
  min-width: 0;
  position: relative;
}

.pw-stagebar li:not(:last-child)::after {
  background: #dbe3ea;
  content: "";
  height: 2px;
  left: 29px;
  position: absolute;
  right: 8px;
  top: 12px;
}

.pw-stagebar li.done:not(:last-child)::after {
  background: var(--pw-teal);
}

.pw-stagebar li span {
  align-items: center;
  background: #edf1f4;
  border-radius: 50%;
  display: inline-flex;
  flex: 0 0 24px;
  font-size: 11px;
  font-weight: 800;
  height: 24px;
  justify-content: center;
  position: relative;
  width: 24px;
  z-index: 1;
}

.pw-stagebar li b {
  font-size: 11px;
  line-height: 1.2;
  position: relative;
  z-index: 1;
}

.pw-stagebar li.done,
.pw-stagebar li.current {
  color: var(--pw-text);
}

.pw-stagebar li.done span {
  background: var(--pw-teal);
  color: #fff;
}

.pw-stagebar li.current span {
  background: var(--pw-blue);
  color: #fff;
}

.pw-tabs {
  border-bottom: 1px solid var(--pw-line);
  display: flex;
  gap: 20px;
  padding: 0 18px;
}

.pw-tabs button {
  background: transparent;
  border: 0;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  box-shadow: none;
  font-weight: 700;
  min-height: 44px;
  padding: 0 2px;
}

.pw-tabs button.active {
  border-bottom-color: var(--pw-blue);
  color: #174ea6;
}

.pw-tab-body {
  min-width: 0;
}

.pw-section {
  border-bottom: 1px solid var(--pw-line);
  min-width: 0;
  padding: 17px 18px 20px;
}

.pw-section:last-child {
  border-bottom: 0;
}

.pw-section-head {
  align-items: center;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  margin-bottom: 13px;
}

.pw-section-head > div:first-child {
  min-width: 0;
}

.pw-section-head h4 {
  font-size: 15px;
  line-height: 1.3;
  margin: 0 0 3px;
}

.pw-section-head span {
  color: var(--pw-muted);
  font-size: 12px;
}

.pw-route-section {
  align-items: center;
  display: flex;
  gap: 18px;
  justify-content: space-between;
}

.pw-route-section .pw-section-head {
  margin: 0;
}

.pw-route-selector {
  background: #edf1f4;
  border: 1px solid var(--pw-line);
  border-radius: 6px;
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(112px, 1fr));
  padding: 3px;
}

.pw-route-selector button {
  background: transparent;
  border: 0;
  box-shadow: none;
  min-height: 34px;
}

.pw-route-selector button.active {
  background: #fff;
  box-shadow: 0 1px 3px rgba(23, 35, 48, 0.16);
  color: #174ea6;
}

.pw-source-grid,
.pw-publish-truth {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  overflow: hidden;
}

.pw-source-grid div,
.pw-publish-truth div {
  background: #f4f7fa;
  min-height: 64px;
  padding: 10px 11px;
}

.pw-source-grid dt,
.pw-publish-truth span {
  color: var(--pw-muted);
  display: block;
  font-size: 11px;
  margin-bottom: 4px;
}

.pw-source-grid dd,
.pw-publish-truth strong {
  display: block;
  font-size: 13px;
  line-height: 1.45;
  margin: 0;
}

.pw-fact-table,
.pw-print-fields,
.pw-review-table,
.pw-package-list {
  border-top: 1px solid var(--pw-line);
}

.pw-fact-row {
  align-items: center;
  border-bottom: 1px solid var(--pw-line);
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(120px, 0.8fr) minmax(140px, 1fr) minmax(170px, 1.2fr) minmax(150px, auto);
  min-height: 76px;
  padding: 10px 2px;
}

.pw-fact-name,
.pw-fact-value,
.pw-fact-evidence {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.pw-fact-name span,
.pw-fact-value span,
.pw-fact-evidence span:not(.pw-pill),
.pw-fact-evidence small {
  color: var(--pw-muted);
  font-size: 11px;
}

.pw-row-actions,
.pw-inline-actions,
.pw-ai-controls,
.pw-actionbar {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  justify-content: flex-end;
}

.pw-row-actions button {
  min-height: 30px;
  padding: 0 8px;
}

.pw-manual-entry {
  align-items: center;
  display: grid;
  gap: 6px;
  grid-template-columns: minmax(90px, 1fr) auto auto;
  min-width: 230px;
}

.pw-manual-entry input {
  min-width: 0;
  width: 100%;
}

.pw-manual-entry > span {
  color: var(--pw-muted);
  font-size: 12px;
}

.pw-printing-inactive {
  background: #f8fafb;
}

.pw-proof-needed {
  color: var(--pw-red);
  font-size: 12px;
  font-weight: 700;
}

.pw-fact-warning {
  color: #9a4e00 !important;
  line-height: 1.45;
}

.pw-print-summary {
  align-items: center;
  background: #f4f7fa;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 10px;
  min-height: 44px;
  padding: 8px 10px;
}

.pw-print-summary > span:last-child {
  color: var(--pw-muted);
  font-size: 12px;
}

.pw-print-field {
  align-items: center;
  border-bottom: 1px solid var(--pw-line);
  cursor: pointer;
  display: grid;
  gap: 10px;
  grid-template-columns: 20px minmax(120px, 0.8fr) minmax(90px, 0.6fr) 24px minmax(110px, 0.7fr) minmax(150px, 1fr);
  min-height: 65px;
  padding: 7px 2px;
}

.pw-print-field.conflict {
  background: var(--pw-amber-soft);
}

.pw-print-field > span {
  min-width: 0;
}

.pw-print-field > span > strong,
.pw-current b,
.pw-recommended b {
  display: block;
  line-height: 1.35;
}

.pw-print-field small,
.pw-print-field em {
  color: var(--pw-muted);
  display: block;
  font-size: 11px;
  font-style: normal;
  line-height: 1.35;
}

.pw-arrow {
  color: var(--pw-muted);
  font-size: 11px;
  text-align: center;
}

.pw-recommended b {
  color: #174ea6;
}

.pw-actionbar {
  border-top: 1px solid var(--pw-line);
  margin-top: 12px;
  padding-top: 12px;
}

.pw-actionbar > span {
  color: var(--pw-muted);
  margin-right: auto;
}

.pw-ai-controls label {
  align-items: center;
  display: inline-flex;
  gap: 6px;
  white-space: nowrap;
}

.pw-ai-controls input {
  width: auto;
}

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

.pw-plan-column {
  border: 1px solid var(--pw-line);
  border-radius: 7px;
  min-width: 0;
  overflow: hidden;
}

.pw-plan-column header {
  align-items: center;
  background: var(--pw-blue-soft);
  border-bottom: 1px solid #cbdafb;
  display: flex;
  justify-content: space-between;
  min-height: 46px;
  padding: 9px 11px;
}

.pw-plan-column.original header {
  background: #edf2f5;
  border-bottom-color: var(--pw-line);
}

.pw-plan-column header span {
  color: var(--pw-muted);
  font-size: 11px;
}

.pw-plan-column dl {
  margin: 0;
}

.pw-plan-column dl div {
  border-bottom: 1px solid var(--pw-line);
  min-height: 60px;
  padding: 8px 10px;
}

.pw-plan-column dl div:last-child {
  border-bottom: 0;
}

.pw-plan-column dt {
  color: var(--pw-muted);
  font-size: 11px;
  margin-bottom: 3px;
}

.pw-plan-column dd {
  line-height: 1.45;
  margin: 0;
}

.pw-original-more {
  border-top: 3px solid #edf1f4;
}

.pw-original-more summary {
  color: #33495c;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  padding: 9px 10px;
}

.pw-plan-section + .pw-plan-section {
  border-top: 3px solid #edf1f4;
}

.pw-plan-section h5 {
  background: #f7f9fb;
  color: #33495c;
  font-size: 12px;
  margin: 0;
  padding: 7px 10px;
}

.pw-review-row {
  border-bottom: 1px solid var(--pw-line);
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(110px, 0.3fr) minmax(0, 1fr);
  padding: 10px 2px;
}

.pw-review-row > strong {
  padding-top: 9px;
}

.pw-choice-group {
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(4, minmax(100px, 1fr));
  min-width: 0;
}

.pw-choice-group > label {
  align-items: start;
  border: 1px solid var(--pw-line);
  border-radius: 6px;
  cursor: pointer;
  display: grid;
  gap: 5px;
  grid-template-columns: 16px minmax(0, 1fr);
  min-height: 62px;
  padding: 7px;
}

.pw-choice-group > label:has(input:checked) {
  background: var(--pw-blue-soft);
  border-color: #7fa8f7;
}

.pw-choice-group > label.unavailable {
  opacity: 0.45;
}

.pw-choice-group input[type="radio"] {
  margin-top: 3px;
  width: auto;
}

.pw-choice-group b,
.pw-choice-group small {
  display: block;
}

.pw-choice-group small {
  color: var(--pw-muted);
  line-height: 1.35;
  margin-top: 3px;
}

.pw-choice-group input[type="text"] {
  margin-top: 4px;
  min-height: 28px;
  padding: 4px 6px;
}

.pw-platform-builder {
  align-items: end;
  display: grid;
  gap: 9px;
  grid-template-columns: repeat(4, minmax(120px, 1fr)) auto;
}

.pw-platform-builder label {
  display: grid;
  gap: 4px;
}

.pw-platform-builder label > span {
  color: var(--pw-muted);
  font-size: 11px;
}

.pw-publish-truth {
  margin-bottom: 13px;
}

.pw-package-row {
  border-bottom: 1px solid var(--pw-line);
  display: grid;
  gap: 9px;
  padding: 12px 2px;
}

.pw-package-row > header,
.pw-package-row > footer,
.pw-package-meta {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: space-between;
}

.pw-package-row > header > div {
  display: grid;
  gap: 2px;
}

.pw-package-row > header span,
.pw-package-meta,
.pw-package-row p,
.pw-preflight span {
  color: var(--pw-muted);
  font-size: 12px;
}

.pw-package-row p {
  margin: 0;
}

.pw-package-row > footer {
  justify-content: flex-end;
}

.pw-package-row > footer input {
  max-width: 180px;
}

.pw-preflight {
  border-left: 4px solid var(--pw-red);
  display: grid;
  gap: 2px;
  padding: 6px 9px;
}

.pw-preflight.ready {
  border-left-color: var(--pw-teal);
}

.pw-execution-state {
  align-items: center;
  background: #f6f7f9;
  border: 1px solid var(--pw-border);
  display: flex;
  gap: 10px;
  justify-content: space-between;
  margin-top: 10px;
  padding: 10px 12px;
}

.pw-execution-state span {
  display: block;
  color: var(--pw-muted);
  font-size: 12px;
}

.pw-execution-state.success {
  background: #edf8f1;
  border-color: #9bcfaf;
}

.pw-execution-state.danger {
  background: #fff1f0;
  border-color: #e5aaa5;
}

.pw-empty {
  color: var(--pw-muted);
  min-height: 76px;
  padding: 24px 12px;
  text-align: center;
}

@media (max-width: 1180px) {
  .pw-summary {
    display: none;
  }

  .pw-topbar {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .pw-fact-row {
    grid-template-columns: minmax(120px, 0.8fr) minmax(140px, 1fr) minmax(160px, 1fr);
  }

  .pw-row-actions {
    grid-column: 1 / -1;
  }

  .pw-print-field {
    grid-template-columns: 20px minmax(110px, 0.8fr) minmax(90px, 0.6fr) 20px minmax(110px, 0.8fr);
  }

  .pw-print-field em {
    grid-column: 2 / -1;
  }

  .pw-choice-group {
    grid-template-columns: repeat(2, minmax(120px, 1fr));
  }

  .pw-platform-builder {
    grid-template-columns: repeat(2, minmax(130px, 1fr));
  }

  .pw-platform-builder > button {
    justify-self: end;
  }
}

@media (max-width: 900px) {
  .pw-layout {
    grid-template-columns: minmax(230px, 270px) minmax(0, 1fr);
  }

  .pw-stagebar li b {
    display: none;
  }

  .pw-stagebar li:not(:last-child)::after {
    right: 2px;
  }

  .pw-source-grid,
  .pw-publish-truth {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pw-plan-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .pw-page {
    min-height: auto;
  }

  .pw-topbar {
    border-left: 0;
    border-radius: 0;
    border-right: 0;
    gap: 8px;
    min-height: 58px;
    padding: 8px 10px;
  }

  .pw-topbar h2 {
    font-size: 18px;
  }

  .pw-layout {
    display: block;
  }

  .pw-queue,
  .pw-detail {
    border-left: 0;
    border-radius: 0;
    border-right: 0;
  }

  .pw-queue {
    max-height: none;
    min-height: 0;
    position: static;
  }

  .pw-queue-list {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
  }

  .pw-task-card {
    flex: 0 0 260px;
  }

  .pw-detail {
    margin-top: 10px;
    min-height: 520px;
  }

  .pw-task-head,
  .pw-section {
    padding-left: 10px;
    padding-right: 10px;
  }

  .pw-state {
    flex: 0 0 auto;
  }

  .pw-stagebar {
    padding-left: 10px;
    padding-right: 10px;
  }

  .pw-tabs {
    justify-content: space-between;
    padding: 0 10px;
  }

  .pw-section-head {
    align-items: stretch;
    flex-direction: column;
  }

  .pw-route-section {
    align-items: stretch;
    flex-direction: column;
  }

  .pw-route-selector {
    width: 100%;
  }

  .pw-section-head > button,
  .pw-ai-controls > button {
    width: 100%;
  }

  .pw-source-grid,
  .pw-publish-truth {
    grid-template-columns: 1fr 1fr;
  }

  .pw-fact-row,
  .pw-review-row {
    grid-template-columns: 1fr;
  }

  .pw-row-actions {
    justify-content: flex-start;
  }

  .pw-manual-entry {
    min-width: 0;
    width: 100%;
  }

  .pw-print-field {
    align-items: start;
    grid-template-columns: 20px minmax(0, 1fr);
    padding: 10px 2px;
  }

  .pw-print-field .pw-current,
  .pw-print-field .pw-recommended,
  .pw-print-field .pw-arrow,
  .pw-print-field em {
    grid-column: 2;
  }

  .pw-print-field .pw-arrow {
    display: none;
  }

  .pw-choice-group,
  .pw-platform-builder {
    grid-template-columns: 1fr;
  }

  .pw-review-row > strong {
    padding-top: 0;
  }

  .pw-platform-builder > button,
  .pw-package-row > footer input {
    max-width: none;
    width: 100%;
  }

  .pw-package-row > footer button {
    flex: 1 1 auto;
  }
}

/* Seven-step Miaoshou AI listing workflow. */
.pw-page-unified {
  background: #f4f6f8;
  gap: 10px;
  min-height: calc(100vh - 58px);
  padding: 10px;
}

.pw-unified-topbar {
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--pw-line);
  border-left: 4px solid var(--pw-blue);
  border-radius: 8px;
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(220px, 1fr) auto auto;
  min-height: 64px;
  padding: 9px 14px;
}

.pw-unified-topbar > div:first-child span {
  color: var(--pw-blue);
  display: block;
  font-size: 12px;
  font-weight: 700;
}

.pw-unified-topbar h2 {
  font-size: 20px;
  line-height: 1.25;
  margin: 1px 0 0;
}

.pw-unified-topbar-meta {
  align-items: baseline;
  border-left: 1px solid var(--pw-line);
  display: flex;
  gap: 7px;
  padding-left: 16px;
}

.pw-unified-topbar-meta strong {
  font-size: 19px;
}

.pw-unified-topbar-meta span,
.pwf-context span,
.pws-category-current > span,
.pws-prompt-snapshot span,
.pws-publish-summary span {
  color: var(--pw-muted);
  font-size: 12px;
}

.pw-unified-main,
.pwf-shell,
.pwf-active-step,
.pwf-active-step-body-slot {
  min-width: 0;
}

.pwf-shell {
  display: grid;
  gap: 10px;
}

.pwf-context,
.pwf-toolbar,
.pwf-rail-scroll,
.pwf-active-step {
  background: #ffffff;
  border: 1px solid var(--pw-line);
  border-radius: 8px;
}

.pwf-context {
  padding: 10px 12px;
}

.pwf-context-row > div {
  border-right: 1px solid var(--pw-line);
  display: grid;
  gap: 3px;
  min-height: 42px;
  min-width: 0;
  padding-right: 12px;
}

.pwf-context-row > div:last-child {
  border-right: 0;
}

.pwf-context-row strong {
  font-size: 13px;
  line-height: 1.35;
  max-height: 38px;
  overflow: hidden;
}

.pwf-toolbar {
  min-height: 46px;
  padding: 7px 10px;
}

.pwf-toolbar > div:first-child {
  align-items: baseline;
  display: flex;
  gap: 8px;
}

.pwf-toolbar > div:first-child em {
  color: var(--pw-muted);
  font-size: 12px;
  font-style: normal;
}

.pwf-toolbar > div:first-child span {
  color: var(--pw-blue);
  font-weight: 700;
}

.pwf-toolbar-actions button,
.pwc-pagination-actions button,
.pws-stage button,
.pw-unified-topbar button {
  min-height: 34px;
}

.pwf-rail-scroll {
  overflow-x: auto;
  padding: 8px;
  scrollbar-width: thin;
}

.pwf-step button {
  background: #f7f8fa;
  border: 1px solid var(--pw-line);
  border-radius: 6px;
  display: grid;
  gap: 5px;
  cursor: pointer;
}

.pwf-step button[data-step-selected="true"] {
  outline: 2px solid var(--pw-blue);
  outline-offset: 2px;
}

.pwf-step button[data-step-status="complete"] {
  background: var(--pw-teal-soft);
  border-color: #9dcec5;
  color: #075e55;
}

.pwf-step button[data-step-status="current"] {
  background: var(--pw-blue-soft);
  border-color: #78a0ef;
  box-shadow: inset 0 -3px 0 var(--pw-blue);
  color: #164ea6;
}

.pwf-step button[data-step-status="blocked"] {
  color: #748290;
}

.pwf-step button[data-step-status="blocked"][data-step-selected="true"] {
  background: #f1f5fb;
  color: #40556c;
}

.pws-stage-availability {
  align-items: center;
  background: #fff8e8;
  border-bottom: 1px solid #e8d39a;
  display: flex;
  gap: 10px;
  padding: 9px 12px;
}

.pws-stage-availability strong {
  color: #815f0d;
}

.pws-stage-availability span {
  color: #6f654d;
  font-size: 12px;
}

.pws-stage-locked {
  opacity: 0.72;
}

.pwf-step button > span {
  font-size: 14px;
  font-weight: 800;
}

.pwf-step button > strong {
  font-size: 12px;
}

.pwf-step button > small {
  font-size: 11px;
  line-height: 1.3;
}

.pwf-active-step {
  overflow: hidden;
}

.pwf-active-step > header {
  align-items: center;
  border-bottom: 1px solid var(--pw-line);
  display: flex;
  gap: 10px;
  min-height: 43px;
  padding: 8px 12px;
}

.pwf-active-step > header strong {
  font-size: 15px;
}

.pwf-active-step > header span {
  color: var(--pw-muted);
  font-size: 12px;
}

.pwf-active-step-body-slot {
  padding: 0;
}

.pwc-shell {
  min-width: 0;
}

.pwc-toolbar {
  align-items: center;
  border-bottom: 1px solid var(--pw-line);
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 10px 12px;
  flex-wrap: wrap;
}

.pwc-search {
  display: grid;
  gap: 7px;
  grid-template-columns: minmax(220px, 420px) auto auto;
}

.pwc-search input {
  min-height: 36px;
}

.pwc-window-note {
  color: var(--pw-muted);
  font-size: 12px;
  text-align: right;
}

.pwc-batch-actions {
  align-items: center;
  display: flex;
  gap: 7px;
}

.pwc-batch-actions small {
  color: var(--pw-muted);
  font-size: 11px;
}

.pwc-list-head,
.pwc-card {
  display: grid;
  grid-template-columns: 72px minmax(220px, 1.6fr) minmax(240px, 1.1fr) minmax(180px, 0.9fr) minmax(130px, 0.7fr) 104px;
}

.pwc-list-head {
  background: #f2f5f7;
  border-bottom: 1px solid var(--pw-line);
  color: var(--pw-muted);
  font-size: 11px;
  font-weight: 700;
  gap: 12px;
  padding: 7px 12px;
}

.pwc-card-grid {
  display: grid;
  gap: 7px;
  padding: 8px 12px 12px;
}

.pwc-card {
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--pw-line);
  border-radius: 7px;
  gap: 12px;
  min-width: 0;
  padding: 8px;
}

.pwc-card:hover {
  border-color: #82a8ef;
  box-shadow: 0 3px 10px rgba(23, 32, 42, 0.09);
}

.pwc-card-preview {
  aspect-ratio: 1 / 1;
  background: #eef1f4;
  border-radius: 5px;
  overflow: hidden;
  width: 64px;
}

.pwc-card-preview img {
  height: 100%;
  object-fit: contain;
  width: 100%;
}

.pwc-card-main {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.pwc-card-main h3 {
  font-size: 14px;
  line-height: 1.42;
  margin: 0;
  max-height: 40px;
  overflow: hidden;
}

.pwc-card-main p {
  color: var(--pw-muted);
  font-size: 12px;
  margin: 0;
}

.pwc-card-commerce {
  display: grid;
  gap: 5px;
  grid-template-columns: repeat(3, minmax(82px, 1fr));
  min-width: 0;
}

.pwc-card-commerce > div {
  border-left: 1px solid var(--pw-line);
  display: grid;
  gap: 2px;
  min-width: 0;
  padding-left: 9px;
}

.pwc-card-commerce span,
.pwc-card-commerce small {
  color: var(--pw-muted);
  font-size: 10px;
}

.pwc-card-commerce strong {
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pwc-card-facts {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.pwc-card-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.pwc-card-status {
  align-content: center;
  display: grid;
  gap: 5px;
}

.pwc-card-metrics span,
.pwc-card-status span,
.pwc-card-missing em {
  background: #f0f3f6;
  border-radius: 4px;
  color: #435364;
  font-size: 11px;
  font-style: normal;
  padding: 3px 5px;
}

.pwc-card-status span:first-child {
  background: var(--pw-blue-soft);
  color: #164ea6;
}

.pwc-card-missing {
  align-content: start;
  display: grid;
  gap: 4px;
}

.pwc-card-missing > span {
  color: var(--pw-muted);
  font-size: 11px;
}

.pwc-card-missing > div {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.pwc-card-actions {
  display: grid;
  gap: 6px;
}

.pwc-card-actions button {
  width: 100%;
}

.pwc-batch-select {
  align-items: center;
  color: var(--pw-muted);
  display: flex;
  font-size: 11px;
  gap: 5px;
  white-space: nowrap;
}

.pwc-batch-select input {
  height: 16px;
  margin: 0;
  width: 16px;
}

.pwc-pagination {
  align-items: center;
  border-top: 1px solid var(--pw-line);
  display: flex;
  justify-content: space-between;
  min-height: 48px;
  padding: 8px 12px;
}

.pwc-pagination > span {
  color: var(--pw-muted);
  font-size: 12px;
}

.pwc-pagination-actions {
  display: flex;
  gap: 7px;
}

.pwc-empty,
.pws-empty {
  color: var(--pw-muted);
  display: grid;
  gap: 5px;
  min-height: 110px;
  place-content: center;
  text-align: center;
}

.pws-empty strong {
  color: var(--pw-text);
}

.pws-stage {
  min-width: 0;
}

.pws-stage-head,
.pws-subhead,
.pws-actionbar,
.pws-prompt-snapshot,
.pws-batch-publish {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.pws-stage-head {
  background: #f7f9fb;
  border-bottom: 1px solid var(--pw-line);
  min-height: 66px;
  padding: 10px 12px;
}

.pws-stage-head h3,
.pws-subhead h4 {
  margin: 0;
}

.pws-stage-head h3 {
  font-size: 17px;
}

.pws-stage-head p,
.pws-subhead span {
  color: var(--pw-muted);
  font-size: 12px;
  margin: 3px 0 0;
}

.pws-stage-actions,
.pws-subhead > div:last-child,
.pws-category-control {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.pws-understanding-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(600px, 1.8fr);
  min-width: 0;
}

.pws-media-band,
.pws-understanding-table,
.pws-shop-picker,
.pws-branch-table,
.pws-assets-band,
.pws-review-table,
.pws-review-assets,
.pws-publish-table {
  min-width: 0;
  padding: 12px;
}

.pws-media-band,
.pws-shop-picker,
.pws-review-table {
  border-right: 1px solid var(--pw-line);
}

.pws-subhead {
  margin-bottom: 9px;
  min-height: 38px;
}

.pws-subhead h4 {
  font-size: 14px;
}

.pws-source-gallery {
  display: grid;
  gap: 7px;
  grid-template-columns: repeat(3, minmax(82px, 1fr));
  max-height: 590px;
  overflow-y: auto;
  scrollbar-width: thin;
}

.pws-source-gallery figure,
.pws-asset-grid figure {
  background: #f7f8fa;
  border: 1px solid var(--pw-line);
  border-radius: 6px;
  margin: 0;
  min-width: 0;
  overflow: hidden;
}

.pws-source-gallery img,
.pws-asset-preview,
.pws-asset-grid.compact img {
  aspect-ratio: 1 / 1;
  background: #eef1f4;
  height: auto;
  object-fit: contain;
  width: 100%;
}

.pws-source-gallery figcaption,
.pws-asset-grid figcaption {
  display: grid;
  gap: 2px;
  padding: 6px;
}

.pws-source-gallery figcaption span,
.pws-source-gallery figcaption small,
.pws-asset-grid figcaption small {
  font-size: 10px;
  line-height: 1.25;
}

.pws-source-gallery figcaption small,
.pws-asset-grid figcaption small {
  color: var(--pw-muted);
}

.pws-data-table,
.pws-review-table,
.pws-publish-table {
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: thin;
}

.pws-table-head,
.pws-table-row {
  align-items: center;
  display: grid;
  gap: 9px;
  min-width: 900px;
}

.pws-understanding-grid .pws-table-head,
.pws-understanding-grid .pws-table-row {
  grid-template-columns: minmax(130px, 0.8fr) minmax(190px, 1.4fr) minmax(130px, 0.9fr) 90px minmax(120px, 0.8fr);
}

.pws-table-head {
  background: #eef2f5;
  color: #4b5b6b;
  font-size: 11px;
  font-weight: 800;
  min-height: 34px;
  padding: 6px 8px;
}

.pws-table-row {
  border-bottom: 1px solid var(--pw-line);
  font-size: 12px;
  min-height: 58px;
  padding: 7px 8px;
}

.pws-table-row:last-child {
  border-bottom: 0;
}

.pws-table-row > span {
  min-width: 0;
}

.pws-table-row > span:first-child {
  display: grid;
  gap: 2px;
}

.pws-table-row small {
  color: var(--pw-muted);
  font-size: 10px;
}

.pws-table-row .danger,
.pws-inline-error {
  color: var(--pw-red);
}

.pws-table-row .muted {
  color: var(--pw-muted);
}

.pws-resolution {
  display: grid;
  gap: 5px;
  grid-template-columns: minmax(90px, 1fr) auto;
  margin-top: 6px;
}

.pws-resolution input,
.pws-resolution button {
  min-height: 32px;
  min-width: 0;
}

.pws-understanding-blockers {
  background: var(--pw-amber-soft);
  border-left: 4px solid var(--pw-amber);
  display: grid;
  font-size: 12px;
  gap: 3px;
  margin-top: 8px;
  padding: 8px 9px;
}

.pws-status {
  border-radius: 4px;
  display: inline-grid;
  font-size: 11px;
  font-weight: 700;
  gap: 2px;
  justify-self: start;
  padding: 4px 6px;
}

.pws-status.neutral {
  background: #edf1f4;
  color: #536576;
}

.pws-status.success {
  background: var(--pw-teal-soft);
  color: #075e55;
}

.pws-status.warning {
  background: var(--pw-amber-soft);
  color: #70420d;
}

.pws-status.danger {
  background: var(--pw-red-soft);
  color: #8f2d2d;
}

.pws-prompt-snapshot {
  background: #f7f9fb;
  border-top: 1px solid var(--pw-line);
  padding: 9px 12px;
}

.pws-prompt-snapshot > div {
  display: grid;
  gap: 2px;
}

.pws-shop-picker,
.pws-review-table {
  display: inline-block;
  vertical-align: top;
  width: 42%;
}

.pws-branch-table,
.pws-review-assets {
  display: inline-block;
  vertical-align: top;
  width: 57.5%;
}

.pws-shop-options {
  display: grid;
  gap: 7px;
  max-height: 420px;
  overflow-y: auto;
}

.pws-shop-option {
  border: 1px solid var(--pw-line);
  border-radius: 6px;
  overflow: hidden;
}

.pws-shop-option > label {
  align-items: center;
  display: grid;
  gap: 8px;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  min-height: 58px;
  padding: 8px 9px;
}

.pws-shop-option.existing {
  background: #f1f7f5;
  border-color: #abd2c9;
}

.pws-shop-option > label span {
  display: grid;
  gap: 2px;
}

.pws-shop-options small,
.pws-shop-options em {
  color: var(--pw-muted);
  font-size: 11px;
  font-style: normal;
}

.pws-shop-alias-action,
.pws-shop-alias-editor {
  align-items: center;
  border-top: 1px solid var(--pw-line);
  display: flex;
  gap: 6px;
  min-height: 34px;
  padding: 5px 8px;
}

.pws-shop-alias-action {
  justify-content: space-between;
}

.pws-shop-alias-action span {
  color: var(--pw-muted);
  font-size: 11px;
}

.pws-shop-alias-editor input {
  flex: 1 1 150px;
  min-width: 0;
}

.pws-shop-alias-editor button,
.pws-shop-alias-action button {
  font-size: 12px;
  min-height: 28px;
  padding: 0 8px;
}

.pws-actionbar {
  border-top: 1px solid var(--pw-line);
  margin-top: 10px;
  padding-top: 9px;
}

.pws-actionbar > span {
  color: var(--pw-muted);
  font-size: 12px;
}

.pws-shop-grid {
  grid-template-columns: minmax(140px, 1fr) 88px 100px minmax(180px, 1.2fr) minmax(180px, 1fr);
}

.pws-row-command {
  align-items: center;
  display: flex;
  gap: 7px;
}

.pws-row-command label,
.pws-publish-row footer label,
.pws-batch-publish label {
  align-items: center;
  color: var(--pw-muted);
  display: flex;
  font-size: 11px;
  gap: 5px;
}

.pws-branch-switcher {
  border-bottom: 1px solid var(--pw-line);
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 8px 12px;
}

.pws-branch-switcher button {
  align-items: start;
  background: #f6f8fa;
  display: grid;
  flex: 0 0 auto;
  min-width: 150px;
  text-align: left;
}

.pws-branch-switcher button[aria-selected="true"] {
  background: var(--pw-blue-soft);
  border-color: #82a7ef;
  color: #164ea6;
}

.pws-branch-switcher small {
  color: var(--pw-muted);
}

.pws-branch-alias-bar {
  align-items: center;
  border-bottom: 1px solid var(--pw-line);
  display: flex;
  gap: 12px;
  justify-content: space-between;
  min-height: 48px;
  padding: 7px 12px;
}

.pws-branch-alias-bar > div:first-child {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.pws-branch-alias-bar > div:first-child span,
.pws-branch-alias-bar > div:first-child small {
  color: var(--pw-muted);
  font-size: 11px;
}

.pws-branch-alias-bar > div:first-child strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pws-branch-alias-bar > .pws-shop-alias-editor {
  border-top: 0;
  flex: 1 1 420px;
  justify-content: flex-end;
  max-width: 620px;
  padding: 0;
}

.pws-category-band {
  align-items: end;
  background: #f7f9fb;
  border-bottom: 1px solid var(--pw-line);
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1.8fr);
  padding: 10px 12px;
}

.pws-category-current {
  display: grid;
  gap: 3px;
}

.pws-category-current strong {
  font-size: 14px;
}

.pws-category-current small {
  color: var(--pw-muted);
}

.pws-category-control {
  align-items: end;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(150px, 0.75fr) minmax(220px, 1.15fr) minmax(180px, 0.9fr) auto;
  min-width: 0;
}

.pws-category-picker,
.pws-category-search {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.pws-category-picker > span,
.pws-category-search > span {
  color: var(--pw-muted);
  font-size: 11px;
}

.pws-category-picker select,
.pws-category-search input {
  min-width: 0;
  width: 100%;
}

.pws-category-picker small,
.pws-category-feedback {
  color: var(--pw-muted);
  font-size: 11px;
  line-height: 1.35;
}

.pws-category-search > div,
.pws-category-actions {
  align-items: center;
  display: flex;
  gap: 6px;
}

.pws-category-search > div input {
  flex: 1 1 auto;
}

.pws-category-search > div button,
.pws-category-actions button {
  flex: 0 0 auto;
}

.pws-category-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.pws-field-table {
  padding: 12px;
}

.pws-template-application {
  align-items: center;
  background: #f3f8f6;
  border-bottom: 1px solid var(--pw-line);
  display: flex;
  gap: 16px;
  justify-content: space-between;
  padding: 9px 12px;
}

.pws-template-application > div:first-child {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.pws-template-application strong {
  color: #146c5a;
  font-size: 13px;
}

.pws-template-application span {
  color: var(--pw-muted);
  font-size: 12px;
}

.pws-template-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 6px;
}

.pws-template-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.pws-stage-next-action {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  justify-content: flex-end;
}

.pws-stage-next-action > span {
  color: var(--pw-muted);
  display: flex;
  gap: 4px;
  font-size: 12px;
}

.pws-stage-next-action b {
  color: var(--pw-text);
  font-weight: 700;
}

.pws-stage-next-action button {
  flex: 0 0 auto;
}

.pws-field-grid :disabled,
.pws-sku-edit-row :disabled {
  background: #eef3f7;
  color: #44556a;
  cursor: not-allowed;
  opacity: 1;
}

.pws-field-grid {
  grid-template-columns: minmax(130px, 0.9fr) minmax(160px, 1fr) minmax(180px, 1.1fr) minmax(120px, 0.8fr) minmax(120px, 0.8fr) 72px;
}

.pws-field-grid input,
.pws-field-grid select {
  max-width: 100%;
  min-height: 34px;
  width: 100%;
}

.pws-field-sku-row {
  align-items: start;
  grid-template-columns: minmax(130px, 0.75fr) minmax(760px, 4fr) minmax(120px, 0.7fr) minmax(180px, 1fr) 104px;
  min-width: 1320px;
}

.pws-sku-cell {
  min-width: 0;
}

.pws-sku-editor {
  border: 1px solid var(--pw-line);
  border-radius: 6px;
  overflow: hidden;
}

.pws-sku-guidance {
  align-items: baseline;
  background: #f3f8f6;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  padding: 7px 9px;
}

.pws-sku-guidance strong {
  color: #146c5a;
  font-size: 12px;
}

.pws-sku-guidance span,
.pws-sku-name small {
  color: var(--pw-muted);
  font-size: 10px;
}

.pws-sku-bulk {
  align-items: end;
  background: #f8fafc;
  border-top: 1px solid var(--pw-line);
  display: grid;
  gap: 7px;
  grid-template-columns: minmax(150px, 1.35fr) repeat(5, minmax(82px, 1fr)) auto;
  padding: 8px 9px;
}

.pws-sku-bulk-intro,
.pws-sku-bulk label {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.pws-sku-bulk-intro strong {
  font-size: 12px;
}

.pws-sku-bulk-intro span,
.pws-sku-bulk label > span,
.pws-sku-bulk > [data-sku-bulk-result] {
  color: var(--pw-muted);
  font-size: 10px;
}

.pws-sku-bulk input {
  min-height: 32px;
  min-width: 0;
  width: 100%;
}

.pws-sku-bulk > [data-sku-bulk-result] {
  grid-column: 1 / -1;
}

.pws-sku-edit-row {
  align-items: end;
  border-top: 1px solid var(--pw-line);
  display: grid;
  gap: 7px;
  grid-template-columns: minmax(120px, 1.25fr) repeat(6, minmax(82px, 1fr));
  padding: 7px 9px;
}

.pws-sku-name,
.pws-sku-edit-row label {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.pws-sku-name strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pws-sku-edit-row label > span {
  color: var(--pw-muted);
  font-size: 10px;
  white-space: nowrap;
}

.pws-sku-edit-row input {
  min-height: 32px;
  min-width: 0;
  width: 100%;
}

.pws-sku-empty {
  color: var(--pw-muted);
  padding: 12px;
}

.pws-ai-controls {
  align-items: center;
  background: #f7f9fb;
  border-bottom: 1px solid var(--pw-line);
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  padding: 8px 12px;
}

.pws-ai-controls label {
  align-items: center;
  display: flex;
  gap: 6px;
}

.pws-plan-comparison {
  display: grid;
  gap: 9px;
  grid-template-columns: repeat(3, minmax(240px, 1fr));
  padding: 12px;
}

.pws-plan-panel {
  border: 1px solid var(--pw-line);
  border-radius: 6px;
  min-width: 0;
  overflow: hidden;
}

.pws-plan-panel.source {
  border-color: #c5ccd3;
}

.pws-plan-panel > header {
  align-items: center;
  background: var(--pw-blue-soft);
  border-bottom: 1px solid var(--pw-line);
  display: flex;
  justify-content: space-between;
  min-height: 42px;
  padding: 8px 10px;
}

.pws-plan-panel.source > header {
  background: #eef1f4;
}

.pws-plan-panel h4 {
  font-size: 14px;
  margin: 0;
}

.pws-plan-panel header span {
  color: var(--pw-muted);
  font-size: 10px;
}

.pws-plan-panel dl {
  margin: 0;
  padding: 0 10px;
}

.pws-plan-panel dl > div {
  border-bottom: 1px solid var(--pw-line);
  display: grid;
  gap: 4px;
  grid-template-columns: 76px minmax(0, 1fr);
  padding: 8px 0;
}

.pws-plan-panel dl > div:last-child {
  border-bottom: 0;
}

.pws-plan-panel dt {
  color: var(--pw-muted);
  font-size: 11px;
}

.pws-plan-panel dd {
  font-size: 12px;
  line-height: 1.45;
  margin: 0;
}

.pws-assets-band {
  border-top: 1px solid var(--pw-line);
}

.pws-asset-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(7, minmax(120px, 1fr));
  overflow-x: auto;
  padding-bottom: 3px;
}

.pws-asset-preview {
  display: grid;
  place-items: center;
}

.pws-asset-preview img {
  height: 100%;
  object-fit: contain;
  width: 100%;
}

.pws-asset-grid figure > div:last-child {
  display: grid;
  gap: 4px;
  grid-template-columns: 1fr 1fr;
  padding: 0 6px 6px;
}

.pws-review-guard {
  align-items: center;
  background: var(--pw-amber-soft);
  border-bottom: 1px solid #e5c897;
  color: #70420d;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  min-height: 44px;
  padding: 7px 12px;
}

.pws-review-guard span {
  font-size: 12px;
}

.pws-review-row {
  align-items: stretch;
  border-bottom: 1px solid var(--pw-line);
  display: grid;
  gap: 7px;
  grid-template-columns: minmax(100px, 0.6fr) repeat(4, minmax(150px, 1fr));
  min-width: 900px;
  padding: 8px 0;
}

.pws-review-row > strong {
  align-self: center;
  font-size: 12px;
}

.pws-review-row > label {
  border: 1px solid var(--pw-line);
  border-radius: 6px;
  display: grid;
  gap: 6px;
  grid-template-columns: 18px minmax(0, 1fr);
  padding: 7px;
}

.pws-review-row > label:has(input:checked) {
  background: var(--pw-blue-soft);
  border-color: #82a7ef;
}

.pws-review-row > label.blocked,
.pws-review-row > label.unavailable {
  background: #f3f4f5;
  color: #7a858e;
}

.pws-review-row > label span {
  display: grid;
  gap: 3px;
}

.pws-review-row small {
  font-size: 10px;
  line-height: 1.35;
  max-height: 58px;
  overflow: auto;
}

.pws-review-row textarea {
  min-height: 54px;
  resize: vertical;
  width: 100%;
}

.pws-source-asset-blocked {
  align-items: center;
  background: #f3f4f5;
  border: 1px dashed var(--pw-line-strong);
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
  padding: 8px;
}

.pws-asset-grid.compact {
  grid-template-columns: repeat(4, minmax(110px, 1fr));
}

.pws-asset-grid.compact > label {
  border: 1px solid var(--pw-line);
  border-radius: 6px;
  display: grid;
  gap: 4px;
  grid-template-columns: 18px minmax(0, 1fr);
  overflow: hidden;
  padding: 5px;
}

.pws-asset-grid.compact img,
.pws-asset-grid.compact span {
  grid-column: 2;
}

.pws-publish-summary {
  background: #f7f9fb;
  border-bottom: 1px solid var(--pw-line);
  display: grid;
  gap: 0;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
}

.pws-publish-summary > div {
  border-right: 1px solid var(--pw-line);
  display: grid;
  gap: 2px;
  padding: 9px 12px;
}

.pws-publish-summary > div:last-child {
  border-right: 0;
}

.pws-publish-summary strong {
  font-size: 18px;
}

.pws-publish-row {
  border: 1px solid var(--pw-line);
  border-radius: 6px;
  margin-bottom: 8px;
  overflow: hidden;
}

.pws-publish-row > header,
.pws-publish-row > footer {
  align-items: center;
  display: flex;
  gap: 9px;
  justify-content: space-between;
  padding: 8px 10px;
}

.pws-publish-row > header {
  background: #f7f9fb;
  border-bottom: 1px solid var(--pw-line);
}

.pws-publish-row > header > div {
  display: grid;
  gap: 2px;
}

.pws-publish-row > header span {
  color: var(--pw-muted);
  font-size: 11px;
}

.pws-publish-row > footer {
  border-top: 1px solid var(--pw-line);
  justify-content: flex-end;
}

.pws-check-list {
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(7, minmax(110px, 1fr));
  overflow-x: auto;
  padding: 9px 10px;
}

.pws-check-list > span {
  border: 1px solid var(--pw-line);
  border-radius: 5px;
  display: grid;
  font-size: 11px;
  gap: 2px;
  min-height: 46px;
  padding: 6px;
}

.pws-check-list > span.pass {
  background: var(--pw-teal-soft);
  border-color: #9dcec5;
  color: #075e55;
}

.pws-check-list > span.blocked {
  background: var(--pw-amber-soft);
  border-color: #e5c897;
  color: #70420d;
}

.pws-inline-error {
  font-size: 12px;
  margin: 0;
  padding: 0 10px 8px;
}

.pws-batch-publish {
  background: #eef4ff;
  border-top: 1px solid #b9ccf1;
  padding: 10px 12px;
}

.pws-batch-publish > div {
  display: grid;
  gap: 2px;
}

.pws-batch-publish span {
  color: var(--pw-muted);
  font-size: 11px;
}

.pw-prompt-overlay {
  inset: 0;
  position: fixed;
  z-index: 1200;
}

.pw-prompt-backdrop {
  background: rgba(20, 28, 36, 0.54);
  border: 0;
  border-radius: 0 !important;
  height: 100%;
  inset: 0;
  position: absolute;
  width: 100%;
}

.pw-prompt-panel {
  background: #ffffff;
  border-left: 1px solid var(--pw-line);
  bottom: 0;
  box-shadow: -8px 0 24px rgba(20, 28, 36, 0.18);
  max-width: 620px;
  overflow-y: auto;
  position: absolute;
  right: 0;
  top: 0;
  width: min(620px, 94vw);
}

.pw-prompt-panel-tools {
  align-items: end;
  background: #f5f7f9;
  border-bottom: 1px solid var(--pw-line);
  display: flex;
  gap: 7px;
  padding: 9px;
  position: sticky;
  top: 0;
  z-index: 2;
}

.pw-prompt-panel-tools label {
  display: grid;
  flex: 1 1 auto;
  gap: 3px;
}

.pw-prompt-panel-tools span {
  color: var(--pw-muted);
  font-size: 11px;
}

.product-workbench-prompt-drawer {
  display: grid;
  gap: 0;
}

.product-workbench-prompt-drawer__header,
.product-workbench-prompt-drawer__footer {
  align-items: center;
  display: flex;
  justify-content: space-between;
  padding: 12px 14px;
}

.product-workbench-prompt-drawer__header h2 {
  font-size: 18px;
  margin: 2px 0 0;
}

.product-workbench-prompt-drawer__eyebrow,
.product-workbench-prompt-drawer__status {
  color: var(--pw-muted);
  font-size: 11px;
}

.product-workbench-prompt-drawer__meta {
  border-bottom: 1px solid var(--pw-line);
  border-top: 1px solid var(--pw-line);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.product-workbench-prompt-drawer__meta > div,
.product-workbench-prompt-drawer__meta > label {
  border-right: 1px solid var(--pw-line);
  display: grid;
  gap: 3px;
  padding: 9px 12px;
}

.product-workbench-prompt-drawer__meta span {
  color: var(--pw-muted);
  font-size: 11px;
}

.product-workbench-prompt-drawer__section {
  border-bottom: 1px solid var(--pw-line);
  padding: 10px 14px;
}

.product-workbench-prompt-drawer__section h3 {
  font-size: 13px;
  margin: 8px 0 4px;
}

.product-workbench-prompt-drawer__section p,
.product-workbench-prompt-drawer__section pre {
  background: #f5f7f9;
  border: 1px solid var(--pw-line);
  border-radius: 5px;
  font-size: 11px;
  line-height: 1.5;
  margin: 0;
  max-height: 220px;
  overflow: auto;
  padding: 8px;
  white-space: pre-wrap;
}

.product-workbench-prompt-drawer__form {
  display: grid;
  gap: 14px;
}

.product-workbench-prompt-drawer__form label {
  display: grid;
  gap: 6px;
}

.product-workbench-prompt-drawer__form label > span {
  font-size: 13px;
  font-weight: 700;
}

.product-workbench-prompt-drawer__form input,
.product-workbench-prompt-drawer__form textarea,
.product-workbench-prompt-drawer__meta input {
  background: #fff;
  border: 1px solid var(--pw-line-strong);
  border-radius: 6px;
  color: var(--pw-ink);
  font: inherit;
  padding: 9px 10px;
  width: 100%;
}

.product-workbench-prompt-drawer__form textarea {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  line-height: 1.5;
  resize: vertical;
}

@media (max-width: 1280px) {
  .pwc-list-head,
  .pwc-card {
    grid-template-columns: 68px minmax(190px, 1.4fr) minmax(220px, 1.1fr) minmax(165px, 0.9fr) 120px 100px;
  }

  .pws-understanding-layout {
    grid-template-columns: minmax(250px, 0.75fr) minmax(560px, 1.7fr);
  }

  .pws-plan-comparison {
    overflow-x: auto;
  }

  .pws-plan-panel {
    min-width: 300px;
  }

  .pws-category-control {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
  }

  .pws-category-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 900px) {
  .pwf-context-row {
    grid-template-columns: repeat(3, minmax(140px, 1fr)) !important;
  }

  .pwf-context-row > div:nth-child(3) {
    border-right: 0;
  }

  .pwc-list-head { display: none; }

  .pwc-card {
    align-items: start;
    grid-template-columns: 88px minmax(0, 1fr);
  }

  .pwc-card-commerce,
  .pwc-card-facts,
  .pwc-card-status,
  .pwc-card-actions {
    grid-column: 2;
  }

  .pws-understanding-layout {
    display: block;
  }

  .pws-media-band {
    border-bottom: 1px solid var(--pw-line);
    border-right: 0;
  }

  .pws-source-gallery {
    grid-template-columns: repeat(6, minmax(90px, 1fr));
    max-height: none;
    overflow-x: auto;
    overflow-y: hidden;
  }

  .pws-shop-picker,
  .pws-review-table,
  .pws-branch-table,
  .pws-review-assets {
    border-right: 0;
    display: block;
    width: 100%;
  }

  .pws-shop-picker,
  .pws-review-table {
    border-bottom: 1px solid var(--pw-line);
  }

  .pws-category-band {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .pws-category-control {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .pw-page-unified {
    padding: 0;
  }

  .pw-unified-topbar {
    border-left: 0;
    border-radius: 0;
    gap: 8px;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .pw-unified-topbar-meta {
    display: none;
  }

  .pw-unified-topbar h2 {
    font-size: 17px;
  }

  .pw-notice,
  .pwf-context,
  .pwf-toolbar,
  .pwf-rail-scroll,
  .pwf-active-step {
    border-left: 0;
    border-radius: 0;
    border-right: 0;
  }

  .pwf-context-row {
    grid-template-columns: repeat(2, minmax(130px, 1fr)) !important;
  }

  .pwf-context-row > div,
  .pwf-context-row > div:nth-child(3) {
    border-bottom: 1px solid var(--pw-line);
    border-right: 1px solid var(--pw-line);
    padding: 7px;
  }

  .pwf-context-row > div:nth-child(even) {
    border-right: 0;
  }

  .pwf-context-row > div:last-child {
    border-bottom: 0;
  }

  .pwf-toolbar,
  .pws-stage-head,
  .pws-prompt-snapshot,
  .pws-actionbar,
  .pws-batch-publish,
  .pwc-toolbar,
  .pwc-pagination {
    align-items: stretch !important;
    flex-direction: column;
  }

  .pwf-toolbar-actions,
  .pws-stage-actions,
  .pwc-pagination-actions {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }

  .pwf-toolbar-actions button,
  .pws-stage-actions button,
  .pwc-pagination-actions button,
  .pws-actionbar button,
  .pws-batch-publish button {
    width: 100%;
  }

  .pwf-active-step > header {
    align-items: start;
    flex-direction: column;
    gap: 2px;
  }

  .pwc-search {
    grid-template-columns: minmax(0, 1fr) auto;
    width: 100%;
  }

  .pwc-window-note {
    text-align: left;
  }

  .pwc-card-grid {
    padding: 8px;
  }

  .pwc-card {
    align-items: start;
    grid-template-columns: 88px minmax(0, 1fr);
  }

  .pwc-card-preview {
    aspect-ratio: 1 / 1;
    width: 80px;
  }

  .pwc-card-main h3 {
    min-height: 0;
  }

  .pwc-card-commerce,
  .pwc-card-facts,
  .pwc-card-status,
  .pwc-card-actions {
    grid-column: 2;
  }

  .pwc-card-commerce {
    grid-template-columns: repeat(2, minmax(92px, 1fr));
  }

  .pws-source-gallery {
    grid-template-columns: repeat(6, 88px);
  }

  .pws-publish-summary {
    grid-template-columns: repeat(3, minmax(90px, 1fr));
  }

  .pws-publish-row > footer {
    align-items: stretch;
    flex-direction: column;
  }

  .pws-publish-row > footer button {
    width: 100%;
  }

  .product-workbench-prompt-drawer__meta {
    grid-template-columns: 1fr;
  }

  .product-workbench-prompt-drawer__meta > div,
  .product-workbench-prompt-drawer__meta > label {
    border-bottom: 1px solid var(--pw-line);
    border-right: 0;
  }

  .product-workbench-prompt-drawer__footer {
    align-items: stretch;
    flex-direction: column;
    gap: 7px;
  }

  .product-workbench-prompt-drawer__footer button {
    width: 100%;
  }

  .pw-prompt-panel-tools {
    align-items: stretch;
    flex-direction: column;
  }
}
