.workspace-sidebar .commerce-provider-card {
  flex: 0 0 auto;
  margin-bottom: 5px;
}

.commerce-workspace {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  min-height: calc(100svh - 130px);
  border: 1px solid #dfe7e9;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.commerce-workspace[hidden] {
  display: none;
}

.commerce-project-rail {
  display: flex;
  flex-direction: column;
  min-height: 0;
  border-right: 1px solid #e5ecee;
  background: #f8fbfb;
}

.commerce-rail-heading,
.commerce-project-header,
.commerce-step-heading,
.commerce-step-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.commerce-rail-heading {
  padding: 18px 16px 14px;
  border-bottom: 1px solid #e5ecee;
}

.commerce-rail-heading > div {
  display: grid;
  gap: 3px;
}

.commerce-rail-heading strong {
  color: #101828;
  font-size: 14px;
}

.commerce-rail-heading span,
.commerce-step-heading small,
.commerce-project-header p {
  color: #8a94a5;
  font-size: 11px;
}

.commerce-project-list {
  display: grid;
  align-content: start;
  gap: 6px;
  min-height: 0;
  padding: 10px;
  overflow-y: auto;
}

.commerce-project-item {
  display: grid;
  gap: 7px;
  width: 100%;
  min-height: 74px;
  padding: 11px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: #344054;
  cursor: pointer;
  text-align: left;
}

.commerce-project-item:hover,
.commerce-project-item.active {
  border-color: #cfece8;
  background: #eefaf8;
}

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

.commerce-project-item-meta {
  display: flex;
  justify-content: space-between;
  color: #8a94a5;
  font-size: 10px;
}

.commerce-project-status {
  color: #087d76;
  font-weight: 800;
}

.commerce-load-more {
  min-height: 36px;
  margin: 8px 10px 12px;
  border: 1px solid #dce5e8;
  border-radius: 6px;
  background: #fff;
  color: #667085;
  cursor: pointer;
}

.commerce-stage {
  min-width: 0;
  padding: 24px;
  background: #fff;
}

.commerce-new-project {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(380px, 1.2fr);
  gap: 48px;
  align-items: center;
  max-width: 980px;
  min-height: 540px;
  margin: 0 auto;
}

.commerce-empty-copy span,
.commerce-project-header > div > span {
  color: #0d9488;
  font-size: 12px;
  font-weight: 900;
}

.commerce-mock-badge {
  margin-left: 6px;
  padding: 2px 6px;
  border: 1px solid #f3ba63;
  border-radius: 4px;
  color: #9a5b00;
  background: #fff8e8;
  font-size: 11px;
}

.commerce-empty-copy h3 {
  margin-top: 10px;
  color: #101828;
  font-size: 26px;
  line-height: 1.35;
}

.commerce-empty-copy p {
  margin-top: 14px;
  color: #667085;
  font-size: 14px;
  line-height: 1.8;
}

.commerce-project-form {
  display: grid;
  gap: 16px;
  padding: 22px;
  border: 1px solid #dfe7e9;
  border-radius: 8px;
}

.commerce-project-form label {
  display: grid;
  gap: 8px;
  color: #344054;
  font-size: 12px;
  font-weight: 800;
}

.commerce-project-form textarea,
.commerce-scheme-editor textarea {
  width: 100%;
  resize: vertical;
}

.commerce-project-form textarea {
  min-height: 180px;
  padding: 12px;
}

.commerce-count-field input {
  width: 120px;
  height: 40px;
  padding: 0 10px;
}

.commerce-project-detail {
  display: grid;
  gap: 18px;
  max-width: 1480px;
  margin: 0 auto;
}

.commerce-project-header {
  align-items: flex-start;
  padding-bottom: 16px;
  border-bottom: 1px solid #edf1f2;
}

.commerce-project-header h3 {
  margin: 5px 0;
  color: #101828;
  font-size: 20px;
}

.commerce-delete-project {
  color: #b42318;
}

.commerce-step {
  padding: 18px;
  border: 1px solid #e0e7ea;
  border-radius: 8px;
  background: #fff;
}

.commerce-step-heading {
  margin-bottom: 15px;
}

.commerce-step-heading > div {
  display: flex;
  align-items: center;
  gap: 9px;
}

.commerce-step-heading > div > span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: #eaf9f6;
  color: #087d76;
  font-size: 11px;
  font-weight: 900;
}

.commerce-step-heading strong {
  color: #101828;
  font-size: 15px;
}

.commerce-product-copy {
  margin-bottom: 14px;
  padding: 12px;
  border-radius: 6px;
  background: #f7f9fa;
  color: #475467;
  font-size: 13px;
  line-height: 1.65;
  white-space: pre-wrap;
}

.commerce-upload-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}

.commerce-upload-item {
  position: relative;
  aspect-ratio: 1;
  border: 1px solid #dfe7e9;
  border-radius: 7px;
  background: #f5f7f8;
  overflow: hidden;
}

.commerce-upload-item img,
.commerce-result-tile img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.commerce-upload-remove {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 28px;
  height: 28px;
  border: 1px solid #e5e7eb;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: #b42318;
  cursor: pointer;
}

.commerce-image-role,
.commerce-set-primary {
  position: absolute;
  left: 7px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 800;
}

.commerce-image-role {
  top: 7px;
  padding: 3px 6px;
  background: rgba(255, 255, 255, 0.92);
  color: #667085;
}

.commerce-image-role.primary {
  background: #e8f8ef;
  color: #087443;
}

.commerce-set-primary {
  bottom: 7px;
  min-height: 26px;
  padding: 0 7px;
  border: 1px solid #d7e2e5;
  background: rgba(255, 255, 255, 0.94);
  color: #344054;
  cursor: pointer;
}

.commerce-upload-placeholder {
  display: grid;
  place-items: center;
  min-height: 130px;
  border: 1px dashed #cbd5df;
  border-radius: 7px;
  color: #98a2b3;
  font-size: 12px;
}

.commerce-step-actions {
  margin-top: 15px;
}

.commerce-stage-action-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 58px;
  padding-top: 14px;
  border-top: 1px solid #e7edef;
}

.commerce-text-link {
  min-height: 40px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #087d76;
  font: inherit;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.commerce-stage-action-bar > span,
.commerce-action-reason,
.commerce-prompt-actions > span {
  color: #667085;
  font-size: 12px;
  line-height: 1.5;
}

.commerce-stage-action-bar > button {
  min-width: 180px;
  min-height: 40px;
}

.commerce-step button:focus-visible,
.commerce-step input:focus-visible,
.commerce-step select:focus-visible,
.commerce-step textarea:focus-visible {
  outline: 3px solid rgb(19 168 158 / 28%);
  outline-offset: 2px;
}

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

.commerce-analysis-stage {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid #e0e7ea;
  border-radius: 6px;
  color: #667085;
  font-size: 12px;
}

.commerce-analysis-stage > div {
  display: grid;
  gap: 4px;
}

.commerce-analysis-stage.done {
  border-color: #bfe7d6;
  background: #f0fbf6;
  color: #087443;
}

.commerce-analysis-stage.active {
  border-color: #bde8e3;
  background: #eefaf8;
  color: #087d76;
}

.commerce-analysis-summary {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  color: #475467;
  font-size: 13px;
  line-height: 1.65;
}

.commerce-analysis-summary ul {
  margin: 0;
  padding-left: 20px;
}

.commerce-recognition-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.commerce-recognition-heading span,
.commerce-product-lock-field small {
  color: #98a2b3;
  font-size: 12px;
}

.commerce-product-lock-field {
  display: grid;
  gap: 6px;
}

.commerce-product-lock-field > span,
.commerce-recognition-list > strong {
  color: #344054;
  font-size: 12px;
  font-weight: 700;
}

.commerce-product-lock-field textarea {
  width: 100%;
  min-height: 118px;
  resize: vertical;
  border: 1px solid #cfd9df;
  border-radius: 6px;
  padding: 10px 12px;
  color: #1d2939;
  background: #fff;
  font: inherit;
  line-height: 1.65;
}

.commerce-product-lock-field textarea[readonly] {
  background: #f8fafb;
}

.commerce-content-assets {
  display: grid;
  gap: 10px;
}

.commerce-content-assets-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.commerce-content-assets-heading > div {
  display: grid;
  gap: 3px;
}

.commerce-content-assets-heading span,
.commerce-content-assets-heading small,
.commerce-content-asset > small {
  color: #667085;
  font-size: 11px;
}

.commerce-content-assets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 8px;
}

.commerce-content-asset {
  display: grid;
  gap: 7px;
  padding: 10px;
  border: 1px solid #dce4e7;
  border-radius: 6px;
  background: #fafcfc;
}

.commerce-content-asset.selected,
.commerce-content-asset:has([data-asset-selected]:checked) {
  border-color: #86d4cb;
  background: #f1fbf9;
}

.commerce-content-asset-head,
.commerce-content-source {
  display: flex;
  align-items: center;
  gap: 8px;
}

.commerce-content-asset-head label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #344054;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.commerce-content-asset-head select {
  margin-left: auto;
  width: min(180px, 55%);
}

.commerce-content-review {
  padding: 2px 5px;
  border: 1px solid #f2bd63;
  border-radius: 4px;
  color: #9a6700;
  background: #fff8e8;
  font-size: 10px;
}

.commerce-content-asset input,
.commerce-content-asset select,
.commerce-content-asset textarea {
  min-width: 0;
  border: 1px solid #cfd9df;
  border-radius: 5px;
  padding: 7px 8px;
  color: #1d2939;
  background: #fff;
  font: inherit;
}

.commerce-content-asset textarea {
  min-height: 54px;
  resize: vertical;
}

.commerce-content-source input {
  width: 120px;
}

.commerce-content-source textarea {
  flex: 1;
}

.commerce-recognition-list {
  display: grid;
  gap: 4px;
}

.commerce-recognition-list.warning {
  border-left: 3px solid #f6b94b;
  padding-left: 10px;
}

.commerce-evidence-summary,
.commerce-master-panel,
.commerce-marketing-settings {
  display: grid;
  gap: 10px;
  padding: 13px;
  border: 1px solid #e0e7ea;
  border-radius: 7px;
  background: #fafcfc;
}

.commerce-evidence-summary > span,
.commerce-master-panel span,
.commerce-marketing-settings > div > span {
  color: #667085;
  font-size: 12px;
}

.commerce-master-heading > div,
.commerce-marketing-settings > div {
  display: grid;
  gap: 3px;
}

.commerce-master-preview {
  display: grid;
  place-items: center;
  width: min(100%, 840px);
  min-height: 180px;
  max-height: 420px;
  padding: 0;
  border: 1px solid #d9e2e5;
  border-radius: 7px;
  background: #f1f4f5;
  overflow: hidden;
}

.commerce-master-preview img {
  width: 100%;
  max-height: 420px;
  object-fit: contain;
}

.commerce-master-panel {
  max-width: 840px;
}

.commerce-master-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}

.commerce-master-action-buttons {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.commerce-master-action-buttons button {
  min-height: 40px;
}

.commerce-marketing-settings {
  display: grid;
  gap: 14px;
}

.commerce-marketing-settings > .commerce-plan-actions {
  display: flex;
}

.commerce-plan-actions > button {
  margin-left: auto;
}

.commerce-marketing-fields.commerce-project-fields {
  grid-template-columns: 120px minmax(150px, 0.7fr) minmax(260px, 1.5fr);
}

.commerce-marketing-settings label {
  display: grid;
  gap: 6px;
  color: #344054;
  font-size: 12px;
  font-weight: 700;
}

.commerce-marketing-settings input,
.commerce-marketing-settings textarea {
  width: 100%;
  min-height: 40px;
  padding: 9px 10px;
  border: 1px solid #cfd9df;
  border-radius: 6px;
  background: #fff;
  color: #1d2939;
  font: inherit;
}

.commerce-marketing-settings textarea {
  min-height: 72px;
  resize: vertical;
}

.commerce-prompt-card-header > div {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.commerce-presence-badge {
  flex: 0 0 auto;
  padding: 2px 6px;
  border-radius: 4px;
  background: #eef4f5;
  color: #52606d;
  font-size: 10px;
  font-weight: 700;
}

.commerce-prompt-list {
  display: grid;
  gap: 12px;
  padding-bottom: 82px;
}

.commerce-scheme-row {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(320px, 1.35fr);
  min-height: 250px;
  border: 1px solid #e0e7ea;
  border-radius: 7px;
  background: #fff;
  overflow: hidden;
}

.commerce-scheme-editor {
  display: grid;
  grid-template-rows: auto minmax(120px, 1fr) auto;
  gap: 10px;
  min-width: 0;
  padding: 14px;
  border-right: 1px solid #edf1f2;
}

.commerce-prompt-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #344054;
  font-size: 12px;
}

.commerce-prompt-card-header label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex: 0 0 auto;
}

.commerce-prompt-card-header input[type="checkbox"] {
  width: 16px;
  height: 16px;
  padding: 0;
}

.commerce-scheme-editor textarea {
  min-height: 128px;
  padding: 10px;
  font-size: 12px;
  line-height: 1.6;
}

.commerce-ratio-field {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #475467;
  font-size: 12px;
  font-weight: 800;
}

.commerce-ratio-field select {
  width: 110px;
  height: 34px;
  padding: 0 8px;
}

.commerce-scheme-results {
  display: grid;
  grid-template-rows: minmax(190px, 1fr) auto;
  gap: 10px;
  min-width: 0;
  padding: 14px;
  background: #f8fafb;
}

.commerce-scheme-result-list {
  display: flex;
  align-items: stretch;
  gap: 10px;
  min-width: 0;
  overflow-x: auto;
}

.commerce-scheme-result-actions {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  padding-top: 10px;
  border-top: 1px solid #e7edef;
}

.commerce-scheme-result-actions > small {
  color: #98a2b3;
  font-size: 10px;
}

.commerce-scheme-result-actions > div {
  display: grid;
  justify-items: end;
  gap: 4px;
}

.commerce-scheme-result-actions .primary-button {
  min-width: 150px;
  min-height: 40px;
}

.commerce-result-tile {
  position: relative;
  display: grid;
  grid-template-rows: 160px auto auto;
  flex: 0 0 154px;
  border: 1px solid #e0e7ea;
  border-radius: 6px;
  background: #fff;
  overflow: hidden;
}

.commerce-result-select,
.commerce-history-select {
  position: absolute;
  z-index: 2;
  top: 6px;
  left: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 24px;
  padding: 3px 6px;
  border: 1px solid rgb(255 255 255 / 75%);
  border-radius: 4px;
  background: rgb(255 255 255 / 92%);
  color: #344054;
  font-size: 10px;
  box-shadow: 0 1px 4px rgb(16 24 40 / 12%);
}

.commerce-result-select input,
.commerce-history-select input {
  margin: 0;
}

.commerce-download-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 12px 0;
  border-top: 1px solid #edf1f2;
}

.commerce-download-toolbar > span {
  margin-right: auto;
  color: #667085;
  font-size: 12px;
}

.commerce-download-toolbar[hidden] {
  display: none;
}

.commerce-history-result {
  position: relative;
}

.commerce-result-preview {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 0;
  padding: 0;
  border: 0;
  background: #f5f7f8;
  cursor: pointer;
}

.commerce-result-placeholder {
  cursor: default;
}

.commerce-result-meta {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  padding: 8px;
  color: #667085;
  font-size: 10px;
}

.commerce-result-download {
  margin: 0 8px 8px;
  min-height: 28px;
  border: 1px solid #dce5e8;
  border-radius: 5px;
  background: #fff;
  color: #344054;
  cursor: pointer;
}

.commerce-result-error {
  max-width: 130px;
  color: #b42318;
  font-size: 11px;
  line-height: 1.5;
  text-align: center;
}

.commerce-result-empty {
  display: grid;
  place-items: center;
  flex: 1 0 180px;
  color: #98a2b3;
  font-size: 12px;
}

.commerce-prompt-actions {
  position: sticky;
  z-index: 5;
  bottom: 0;
  flex-wrap: wrap;
  padding: 12px;
  border: 1px solid #dfe8ea;
  border-radius: 7px;
  background: rgb(255 255 255 / 96%);
  box-shadow: 0 -8px 22px rgb(16 24 40 / 7%);
  backdrop-filter: blur(8px);
}

.commerce-prompt-actions > span {
  margin-right: auto;
}

.commerce-result-pending {
  width: 28px;
  height: 28px;
  border: 3px solid #dcebe9;
  border-top-color: #13a89e;
  border-radius: 50%;
  animation: commerce-spin 0.8s linear infinite;
}

@keyframes commerce-spin { to { transform: rotate(360deg); } }

.commerce-confirm-dialog {
  width: min(440px, calc(100vw - 28px));
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 24px 80px rgba(29, 48, 58, 0.25);
}

.commerce-confirm-dialog::backdrop {
  background: rgba(16, 24, 40, 0.45);
}

.commerce-confirm-body {
  position: relative;
  padding: 28px;
}

.commerce-confirm-body .modal-close {
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: 1px solid #dce5e8;
  box-shadow: none;
}

.commerce-confirm-body h2 {
  margin: 7px 40px 0 0;
  color: #101828;
  font-size: 20px;
}

.commerce-confirm-body > p {
  margin-top: 12px;
  color: #667085;
  font-size: 13px;
  line-height: 1.7;
}

.commerce-confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 24px;
}

.commerce-confirm-actions button {
  min-width: 88px;
}

@media (max-width: 980px) {
  .commerce-workspace { grid-template-columns: 210px minmax(0, 1fr); }
  .commerce-stage { padding: 16px; }
  .commerce-new-project { grid-template-columns: 1fr; gap: 24px; min-height: 0; }
  .commerce-scheme-row { grid-template-columns: 1fr; }
  .commerce-scheme-editor { border-right: 0; border-bottom: 1px solid #edf1f2; }
}

@media (max-width: 700px) {
  .commerce-workspace { display: block; min-height: 0; }
  .commerce-project-rail { max-height: 230px; border-right: 0; border-bottom: 1px solid #e5ecee; }
  .commerce-project-list { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
  .commerce-project-form { padding: 16px; }
  .commerce-upload-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .commerce-analysis-progress { grid-template-columns: 1fr; }
  .commerce-marketing-settings { grid-template-columns: 1fr; }
  .commerce-marketing-settings > div { grid-column: auto; }
  .commerce-scheme-row { grid-template-columns: 1fr; }
  .commerce-scheme-editor { border-right: 0; border-bottom: 1px solid #edf1f2; }
  .commerce-scheme-results { min-height: 220px; }
  .commerce-stage-action-bar,
  .commerce-master-action-buttons,
  .commerce-scheme-result-actions,
  .commerce-prompt-actions { align-items: stretch; flex-direction: column; }
  .commerce-stage-action-bar > button,
  .commerce-master-action-buttons button,
  .commerce-scheme-result-actions .primary-button,
  .commerce-prompt-actions button { width: 100%; }
  .commerce-plan-actions > button { margin-left: 0; }
  .commerce-scheme-result-actions > div { justify-items: stretch; }
  .commerce-prompt-actions { position: static; box-shadow: none; backdrop-filter: none; }
  .commerce-prompt-list { padding-bottom: 0; }
}

/* Four-stage commerce waterfall */
.commerce-waterfall-step {
  padding: 0;
  overflow: hidden;
}

.commerce-step-toggle {
  width: 100%;
  min-height: 62px;
  margin: 0;
  padding: 16px 18px;
  border: 0;
  background: #fff;
  cursor: pointer;
  text-align: left;
}

.commerce-step-toggle::after {
  content: "+";
  color: #667085;
  font-size: 18px;
  line-height: 1;
}

.commerce-step-toggle[aria-expanded="true"] {
  border-bottom: 1px solid #e8eef0;
  background: #fbfdfd;
}

.commerce-step-toggle[aria-expanded="true"]::after {
  content: "−";
}

.commerce-step-toggle > small {
  margin-left: auto;
}

.commerce-step-body {
  padding: 18px;
}

.commerce-project-fields {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) minmax(110px, 0.45fr) minmax(150px, 0.7fr) minmax(240px, 1.4fr);
  gap: 12px;
}

.commerce-project-fields label {
  display: grid;
  gap: 6px;
  min-width: 0;
  color: #344054;
  font-size: 12px;
  font-weight: 800;
}

.commerce-project-fields input,
.commerce-project-form textarea {
  width: 100%;
  border: 1px solid #cfd9df;
  border-radius: 6px;
  background: #fff;
  color: #1d2939;
  font: inherit;
}

.commerce-project-fields input {
  min-height: 40px;
  padding: 0 10px;
}

.commerce-project-fields input:disabled,
.commerce-project-form textarea:disabled {
  background: #f5f7f8;
  color: #667085;
}

.commerce-step-body .commerce-project-form {
  padding: 0;
  border: 0;
}

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

.commerce-upload-heading > div,
.commerce-history-results > div:first-child {
  display: grid;
  gap: 3px;
}

.commerce-upload-heading span,
.commerce-history-results span {
  color: #7b8796;
  font-size: 11px;
}

.commerce-stage-placeholder {
  margin: 0;
  padding: 28px 16px;
  border: 1px dashed #cedadd;
  border-radius: 7px;
  color: #7b8796;
  text-align: center;
}

.commerce-stage-running {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 72px;
  padding: 16px;
  border: 1px solid #cfe8e4;
  border-radius: 7px;
  background: #f2fbf9;
  color: #216b65;
  font-size: 13px;
}

.commerce-stale-notice {
  margin: 0 0 12px;
  padding: 10px 12px;
  border: 1px solid #f2c66d;
  border-radius: 6px;
  background: #fff8e8;
  color: #855b11;
  font-size: 12px;
}

.commerce-marketing-settings { margin-bottom: 14px; padding: 14px; }

.commerce-history-results {
  display: grid;
  gap: 12px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid #e5ecee;
}

.commerce-history-result-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 190px));
  gap: 10px;
}

.commerce-history-result {
  display: grid;
  gap: 7px;
  padding: 8px;
  border: 1px solid #dfe7e9;
  border-radius: 7px;
  background: #fff;
}

.commerce-history-result > button:first-child {
  width: 100%;
  aspect-ratio: 1;
  padding: 0;
  border: 0;
  background: #f3f6f7;
  cursor: pointer;
}

.commerce-history-result img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@media (max-width: 1120px) {
  .commerce-project-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .commerce-marketing-fields.commerce-project-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  .commerce-step-body { padding: 14px; }
  .commerce-step-toggle { padding: 14px; }
  .commerce-step-toggle > small { display: none; }
  .commerce-project-fields,
  .commerce-marketing-fields.commerce-project-fields { grid-template-columns: 1fr; }
}
