.product-clone-page {
  display: grid;
  grid-template-rows: 54px minmax(0, 1fr);
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #f5f6f8;
  color: #111827;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

/* Ecommerce generation progress bar */
.ecommerce-progress-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-radius: var(--radius-sm, 10px);
  background: rgba(var(--accent-rgb, 0, 255, 136), 0.08);
  border: 1px solid rgba(var(--accent-rgb, 0, 255, 136), 0.18);
  margin: 8px 0;
}

.ecommerce-progress-bar__label {
  font-size: 13px;
  font-weight: 700;
  color: var(--fg-muted, #aeb8b1);
  white-space: nowrap;
}

.ecommerce-progress-bar__track {
  flex: 1;
  height: 6px;
  border-radius: 999px;
  background: rgba(var(--accent-rgb, 0, 255, 136), 0.12);
  overflow: hidden;
}

.ecommerce-progress-bar__fill {
  height: 100%;
  border-radius: 999px;
  background: var(--accent, #00ff88);
  transition: width 80ms linear;
}

.ecommerce-progress-bar__value {
  font-size: 12px;
  font-weight: 900;
  color: var(--accent, #00ff88);
  min-width: 40px;
  text-align: right;
}

/* Product set page: target dark two-column workspace with floating detail input. */
.product-clone-page[data-tool="set"] {
  display: block;
  height: 100%;
  overflow: hidden;
  background: #101115;
  color: #e7ecf6;
}

.product-clone-page[data-tool="set"] > .product-clone-shell {
  display: grid;
  grid-template-columns: minmax(440px, 570px) minmax(0, 1fr);
  height: 100%;
  min-height: 0;
  background: #101115;
}

.product-clone-page[data-tool="set"] .product-clone-rail {
  display: none;
}

.product-clone-page[data-tool="set"] .product-clone-panel {
  grid-template-rows: minmax(0, 1fr);
  min-height: 0;
  border-right: 1px solid #2a2d36;
  background: #101115;
}

.product-clone-page[data-tool="set"] .product-clone-panel__scroll {
  display: block;
  min-height: 0;
  overflow: auto;
  padding: 44px 36px 46px;
  scrollbar-color: #3a3d49 #101115;
}

.product-clone-page[data-tool="set"] :is(.product-set-upload-section, .product-set-settings-section) {
  margin: 0 0 30px;
  border: 1px solid #2b2e39;
  border-radius: 18px;
  background: #17181f;
  padding: 28px;
  box-shadow: none;
}

.product-clone-page[data-tool="set"] :is(.product-set-upload-section, .product-set-settings-section) h2 {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 24px;
  color: #d8deed;
  font-size: 22px;
  font-weight: 900;
  line-height: 1.2;
}

.product-clone-page[data-tool="set"] :is(.product-set-upload-section, .product-set-settings-section) h2 .anticon {
  color: #737786;
  font-size: 24px;
}

.product-clone-page[data-tool="set"] .product-set-upload {
  min-height: 316px;
  gap: 14px;
  border: 2px dashed #3a3d4b;
  border-radius: 18px;
  background: #1a1d21;
  color: #dbe7f7;
  padding: 24px;
}

.product-clone-page[data-tool="set"] .product-set-upload:hover,
.product-clone-page[data-tool="set"] .product-set-upload.is-dragging {
  border-color: #00ff88;
  background: #1a2421;
}

.product-clone-page[data-tool="set"] .product-set-upload-icon {
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  border-radius: 999px;
  background: #20282a;
  color: #00ff88;
  font-size: 32px;
}

.product-clone-page[data-tool="set"] .product-set-upload-title {
  color: #bdd0e6;
  font-size: 18px;
  font-weight: 800;
}

.product-clone-page[data-tool="set"] .product-set-upload strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 168px;
  height: 52px;
  border-radius: 10px;
  background: #00ff88;
  color: #03130d;
  padding: 0 22px;
  font-size: 20px;
  font-weight: 900;
}

.product-clone-page[data-tool="set"] .product-set-upload strong span {
  color: inherit;
  font-size: 24px;
  line-height: 1;
}

.product-clone-page[data-tool="set"] .product-set-upload-note {
  color: #788294;
  font-size: 16px;
  font-weight: 700;
}

.product-clone-page[data-tool="set"] .product-set-thumb-row {
  gap: 12px;
  margin-top: 16px;
}

.product-clone-page[data-tool="set"] .product-set-thumb {
  border-color: #2c303a;
  background: #202229;
}

.product-clone-page[data-tool="set"] .product-set-thumb button {
  border-color: #303541;
  background: #17181f;
  color: #e7ecf6;
}

.product-clone-page[data-tool="set"] .product-set-setting-block {
  gap: 14px;
}

.product-clone-page[data-tool="set"] .product-set-setting-block + .product-set-setting-block {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 0;
}

.product-clone-page[data-tool="set"] .product-set-setting-title {
  color: #7f8798;
  font-size: 16px;
  font-weight: 900;
}

.product-clone-page[data-tool="set"] .product-set-output-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.product-clone-page[data-tool="set"] .product-set-output-grid button {
  height: 56px;
  border: 1px solid #2d303b;
  border-radius: 10px;
  background: #1d1e26;
  color: #c1ccdd;
  font-size: 20px;
  font-weight: 900;
}

.product-clone-page[data-tool="set"] .product-set-output-grid button:hover {
  border-color: #414653;
  background: #232530;
  color: #e7ecf6;
}

.product-clone-page[data-tool="set"] .product-set-output-grid button.is-active {
  border-color: #00ff88;
  background: #00ff88;
  color: #04130e;
}

.product-clone-page[data-tool="set"] .product-set-field-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.product-clone-page[data-tool="set"] .product-set-field-grid label {
  position: relative;
  display: block;
  min-width: 0;
}

.product-clone-page[data-tool="set"] .product-set-field-grid label > span {
  position: absolute;
  left: 18px;
  top: 10px;
  z-index: 1;
  color: #7d8392;
  font-size: 13px;
  font-weight: 800;
  pointer-events: none;
}

.product-clone-page[data-tool="set"] .product-set-field-grid select {
  width: 100%;
  height: 72px;
  border: 1px solid #2d303b;
  border-radius: 10px;
  background: #1d1e26;
  color: #ffffff;
  padding: 28px 18px 8px;
  font-size: 20px;
  font-weight: 900;
}

.product-clone-page[data-tool="set"] .product-clone-preview {
  position: relative;
  display: grid;
  min-height: 0;
  overflow: hidden;
  align-content: center;
  justify-items: center;
  gap: 24px;
  background: #101115;
  padding: 64px 56px 210px;
  scrollbar-color: #3a3d49 #101115;
}

.product-clone-page[data-tool="set"] .product-clone-preview__headline {
  position: absolute;
  left: 32px;
  right: 32px;
  top: 10px;
  text-align: center;
}

.product-clone-page[data-tool="set"] .product-clone-preview__headline h1 {
  display: none;
}

.product-clone-page[data-tool="set"] .product-clone-preview__headline p {
  color: #758096;
  font-size: 18px;
  font-weight: 700;
}

.product-clone-page[data-tool="set"] .product-clone-preview__headline p span {
  color: #758096;
}

.product-clone-page[data-tool="set"] .product-set-empty-preview {
  width: min(100%, 640px);
  min-height: 300px;
  border: 0;
  background: transparent;
  padding: 0;
  color: #80899c;
}

.product-clone-page[data-tool="set"] .product-set-empty-preview .anticon {
  width: 120px;
  height: 120px;
  border: 1px solid #2b2e39;
  border-radius: 999px;
  background: #1a1b22;
  color: #565b69;
  font-size: 46px;
}

.product-clone-page[data-tool="set"] .product-set-empty-preview strong {
  color: #dbe3f2;
  font-size: 24px;
  font-weight: 900;
}

.product-clone-page[data-tool="set"] .product-set-empty-preview span {
  max-width: 620px;
  color: #747d90;
  font-size: 18px;
  font-weight: 700;
}

.product-clone-page[data-tool="set"] .product-set-demo-board {
  width: min(100%, 980px);
  min-height: 470px;
  border: 0;
  background: transparent;
  padding: 0;
}

.product-clone-page[data-tool="set"] .product-set-demo-board :is(button, figure) {
  border: 1px solid #2b2e39;
  background: #17181f;
}

.product-clone-page[data-tool="set"] .product-set-floating-detail {
  position: absolute;
  left: 56px;
  right: 56px;
  bottom: 28px;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  border: 1px solid #2b2e39;
  border-radius: 18px;
  background: #17181f;
  padding: 16px;
}

.product-clone-page[data-tool="set"] .product-set-floating-detail__head {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #d8deed;
  font-size: 15px;
  font-weight: 900;
}

.product-clone-page[data-tool="set"] .product-set-floating-detail__head span {
  color: #767f91;
  font-size: 13px;
}

.product-clone-page[data-tool="set"] .product-set-floating-detail textarea {
  min-width: 0;
  min-height: 72px;
  max-height: 150px;
  border: 1px solid #2d303b;
  border-radius: 12px;
  outline: none;
  resize: vertical;
  background: #1d1e26;
  color: #e7ecf6;
  padding: 14px 16px;
  font-size: 15px;
  line-height: 1.5;
}

.product-clone-page[data-tool="set"] .product-set-floating-detail textarea::placeholder {
  color: #687184;
}

.product-clone-page[data-tool="set"] .product-set-floating-detail textarea:focus {
  border-color: #00ff88;
  box-shadow: 0 0 0 3px rgb(52 211 153 / 14%);
}

.product-clone-page[data-tool="set"] .product-set-floating-submit {
  align-self: stretch;
  min-width: 148px;
  border: 0;
  border-radius: 12px;
  background: #00ff88;
  color: #04130e;
  padding: 0 18px;
  font-size: 17px;
  font-weight: 900;
  cursor: pointer;
}

.product-clone-page[data-tool="set"] .product-set-floating-submit:disabled {
  background: #26342f;
  color: #687568;
  cursor: not-allowed;
}

.product-clone-page[data-tool="set"] .product-set-floating-submit--cancel {
  background: #303540;
  color: #eef2f6;
}

.product-clone-page[data-tool="set"] .product-set-floating-submit--cancel:hover {
  background: #3a4050;
}

.product-clone-page[data-tool="set"] .product-clone-help {
  display: none;
}

@media (max-width: 1520px) {
  .product-clone-page[data-tool="set"] > .product-clone-shell {
    grid-template-columns: minmax(370px, 535px) minmax(0, 1fr);
  }

  .product-clone-page[data-tool="set"] .product-clone-panel__scroll {
    padding: 44px 36px 46px;
  }

  .product-clone-page[data-tool="set"] :is(.product-set-upload-section, .product-set-settings-section) {
    margin-bottom: 30px;
    border-radius: 18px;
    padding: 28px;
  }

  .product-clone-page[data-tool="set"] .product-set-upload {
    min-height: 316px;
  }

  .product-clone-page[data-tool="set"] .product-set-output-grid button {
    height: 56px;
    font-size: 20px;
  }

  .product-clone-page[data-tool="set"] .product-set-field-grid select {
    height: 72px;
    font-size: 20px;
  }

  .product-clone-page[data-tool="set"] .product-clone-preview {
    padding: 64px 56px 210px;
  }
}

/* Tail guard for ecommerce AI color parity. */
.product-clone-page[data-tool="clone"] {
  background: var(--bg-base);
  color: var(--fg-body);
}

.product-clone-page[data-tool="clone"] > .product-clone-shell,
.product-clone-page[data-tool="clone"] .clone-ai-preview {
  background: var(--bg-base);
}

.product-clone-page[data-tool="clone"] .product-clone-panel,
.product-clone-page[data-tool="clone"] .clone-ai-panel::-webkit-scrollbar-track {
  background: var(--bg-panel);
}

.product-clone-page[data-tool="clone"] .product-clone-panel,
.product-clone-page[data-tool="clone"] :is(.clone-ai-logo, .clone-ai-card, .clone-ai-platform-spec, .clone-ai-count-panel, .clone-ai-replicate-panel, .clone-ai-module-panel, .clone-ai-model-panel, .clone-ai-video-panel, .clone-ai-empty-state .anticon, .clone-ai-main-result, .clone-ai-result-grid button, .clone-ai-input-wrapper) {
  border-color: var(--border-weak);
}

.product-clone-page[data-tool="clone"] :is(.clone-ai-logo, .clone-ai-card, .clone-ai-platform-spec, .clone-ai-count-panel, .clone-ai-replicate-panel, .clone-ai-module-panel, .clone-ai-model-panel, .clone-ai-video-panel, .clone-ai-empty-state .anticon, .clone-ai-main-result, .clone-ai-result-grid button, .clone-ai-input-wrapper) {
  background: var(--bg-panel);
}

.product-clone-page[data-tool="clone"] :is(.clone-ai-logo em, .clone-ai-upload-zone, .clone-ai-upload-icon, .clone-ai-uploaded-file, .clone-ai-tag-group button, .clone-ai-basic-select > button, .clone-ai-basic-select__menu, .clone-ai-basic-select__menu button, .clone-ai-replicate-tabs button, .clone-ai-replicate-upload, .clone-ai-replicate-link input, .clone-ai-replicate-levels button, .clone-ai-count-row, .clone-ai-count-stepper button, .clone-ai-module-list button, .clone-ai-model-tabs button, .clone-ai-model-scene-grid button, .clone-ai-model-select, .clone-ai-model-select > button, .clone-ai-model-select__menu, .clone-ai-model-select__menu button, .clone-ai-video-options button, .clone-ai-video-smart, .clone-ai-video-smart i, .clone-ai-send-button) {
  border-color: var(--border-subtle);
  background: var(--bg-inset);
  color: var(--fg-muted);
}

.product-clone-page[data-tool="clone"] :is(.clone-ai-upload-zone:hover, .clone-ai-upload-zone.is-dragging, .clone-ai-tag-group button:hover, .clone-ai-basic-select > button:hover, .clone-ai-basic-select > button.is-open, .clone-ai-basic-select__menu button:hover, .clone-ai-basic-select__menu button.is-active, .clone-ai-replicate-tabs button:hover, .clone-ai-replicate-upload:hover, .clone-ai-replicate-levels button:hover, .clone-ai-count-stepper button:hover:not(:disabled), .clone-ai-module-list button:hover, .clone-ai-model-tabs button:hover, .clone-ai-model-scene-grid button:hover, .clone-ai-model-select > button:hover, .clone-ai-model-select > button.is-open, .clone-ai-model-select__menu button:hover, .clone-ai-model-select__menu button.is-active, .clone-ai-video-options button:hover, .clone-ai-video-smart:hover, .clone-ai-send-button:hover:not(:disabled), .clone-ai-main-result:hover, .clone-ai-result-grid button:hover) {
  border-color: var(--border-default);
  background: var(--bg-hover);
  color: var(--fg-body);
}

.product-clone-page[data-tool="clone"] :is(.clone-ai-logo em.is-ready, .clone-ai-tag-group button.is-active, .clone-ai-basic-select__menu button.is-active, .clone-ai-replicate-tabs button.is-active, .clone-ai-replicate-levels button.is-active, .clone-ai-module-list button.is-active, .clone-ai-model-tabs button.is-active, .clone-ai-model-scene-grid button.is-active, .clone-ai-model-select__menu button.is-active, .clone-ai-video-options button.is-active, .clone-ai-video-smart.is-on) {
  border-color: rgba(var(--accent-rgb), 0.42);
  background: var(--accent-muted);
  color: var(--accent);
}

.product-clone-page[data-tool="clone"] :is(.clone-ai-logo strong, .clone-ai-card h2, .clone-ai-platform-spec strong, .clone-ai-basic-select > button strong, .clone-ai-model-select > button strong, .clone-ai-preview-header strong, .clone-ai-empty-state strong, .clone-ai-input-wrapper textarea) {
  color: var(--fg-body);
}

.product-clone-page[data-tool="clone"] :is(.clone-ai-logo em, .clone-ai-card h2 .anticon, .clone-ai-upload-title, .clone-ai-upload-hint, .clone-ai-settings-label, .clone-ai-basic-select > button span, .clone-ai-model-select > button span, .clone-ai-preview-header span, .clone-ai-empty-state, .clone-ai-empty-state span, .clone-ai-char-count, .clone-ai-input-wrapper textarea::placeholder) {
  color: var(--fg-muted);
}

.product-clone-page[data-tool="clone"] :is(.clone-ai-logo__mark, .clone-ai-upload-zone strong, .clone-ai-generate, .clone-ai-send-button) {
  background: var(--accent);
  color: var(--dg-button-text, #061014);
}

.product-clone-page[data-tool="clone"] :is(.clone-ai-logo strong span, .clone-ai-upload-icon, .clone-ai-preview-header b, .clone-ai-video-smart.is-on i::after) {
  color: var(--accent);
}

.product-clone-page[data-tool="clone"] :is(.clone-ai-generate:disabled, .clone-ai-send-button:disabled) {
  background: var(--bg-inset);
  color: var(--fg-soft);
}

.product-clone-page[data-tool="clone"] .clone-ai-flow-arrow {
  background: var(--accent);
}

.product-clone-page[data-tool="clone"] .clone-ai-video-smart.is-on i {
  border-color: rgba(var(--accent-rgb), 0.42);
  background: var(--accent-muted);
}

/* Final ecommerce AI color parity. Keep this block limited to colors and border tones. */
.product-clone-page[data-tool="clone"] {
  background: var(--bg-base);
  color: var(--fg-body);
}

.product-clone-page[data-tool="clone"] > .product-clone-shell,
.product-clone-page[data-tool="clone"] .clone-ai-preview {
  background: var(--bg-base);
}

.product-clone-page[data-tool="clone"] .product-clone-panel,
.product-clone-page[data-tool="clone"] .clone-ai-panel::-webkit-scrollbar-track {
  background: var(--bg-panel);
}

.product-clone-page[data-tool="clone"] .product-clone-panel {
  border-right-color: var(--border-weak);
}

.product-clone-page[data-tool="clone"] .clone-ai-panel {
  scrollbar-color: var(--border-default) var(--bg-panel);
}

.product-clone-page[data-tool="clone"] .clone-ai-panel::-webkit-scrollbar-thumb {
  border-color: var(--bg-panel);
  background: var(--border-default);
}

.product-clone-page[data-tool="clone"] :is(
  .clone-ai-logo,
  .clone-ai-card,
  .clone-ai-platform-spec,
  .clone-ai-count-panel,
  .clone-ai-replicate-panel,
  .clone-ai-module-panel,
  .clone-ai-model-panel,
  .clone-ai-video-panel,
  .clone-ai-empty-state .anticon,
  .clone-ai-main-result,
  .clone-ai-result-grid button,
  .clone-ai-input-wrapper
) {
  border-color: var(--border-weak);
  background: var(--bg-panel);
}

.product-clone-page[data-tool="clone"] :is(
  .clone-ai-logo em,
  .clone-ai-upload-zone,
  .clone-ai-upload-icon,
  .clone-ai-uploaded-file,
  .clone-ai-tag-group button,
  .clone-ai-basic-select > button,
  .clone-ai-basic-select__menu,
  .clone-ai-basic-select__menu button,
  .clone-ai-replicate-tabs button,
  .clone-ai-replicate-upload,
  .clone-ai-replicate-link input,
  .clone-ai-replicate-levels button,
  .clone-ai-count-row,
  .clone-ai-count-stepper button,
  .clone-ai-module-list button,
  .clone-ai-model-tabs button,
  .clone-ai-model-scene-grid button,
  .clone-ai-model-select,
  .clone-ai-model-select > button,
  .clone-ai-model-select__menu,
  .clone-ai-model-select__menu button,
  .clone-ai-video-options button,
  .clone-ai-video-smart,
  .clone-ai-video-smart i,
  .clone-ai-send-button
) {
  border-color: var(--border-subtle);
  background: var(--bg-inset);
  color: var(--fg-muted);
}

.product-clone-page[data-tool="clone"] :is(
  .clone-ai-upload-zone:hover,
  .clone-ai-upload-zone.is-dragging,
  .clone-ai-tag-group button:hover,
  .clone-ai-basic-select > button:hover,
  .clone-ai-basic-select > button.is-open,
  .clone-ai-basic-select__menu button:hover,
  .clone-ai-basic-select__menu button.is-active,
  .clone-ai-replicate-tabs button:hover,
  .clone-ai-replicate-upload:hover,
  .clone-ai-replicate-levels button:hover,
  .clone-ai-count-stepper button:hover:not(:disabled),
  .clone-ai-module-list button:hover,
  .clone-ai-model-tabs button:hover,
  .clone-ai-model-scene-grid button:hover,
  .clone-ai-model-select > button:hover,
  .clone-ai-model-select > button.is-open,
  .clone-ai-model-select__menu button:hover,
  .clone-ai-model-select__menu button.is-active,
  .clone-ai-video-options button:hover,
  .clone-ai-video-smart:hover,
  .clone-ai-send-button:hover:not(:disabled),
  .clone-ai-main-result:hover,
  .clone-ai-result-grid button:hover
) {
  border-color: var(--border-default);
  background: var(--bg-hover);
  color: var(--fg-body);
}

.product-clone-page[data-tool="clone"] :is(
  .clone-ai-logo em.is-ready,
  .clone-ai-tag-group button.is-active,
  .clone-ai-basic-select__menu button.is-active,
  .clone-ai-replicate-tabs button.is-active,
  .clone-ai-replicate-levels button.is-active,
  .clone-ai-module-list button.is-active,
  .clone-ai-model-tabs button.is-active,
  .clone-ai-model-scene-grid button.is-active,
  .clone-ai-model-select__menu button.is-active,
  .clone-ai-video-options button.is-active,
  .clone-ai-video-smart.is-on
) {
  border-color: rgba(var(--accent-rgb), 0.42);
  background: var(--accent-muted);
  color: var(--accent);
}

.product-clone-page[data-tool="clone"] :is(
  .clone-ai-logo strong,
  .clone-ai-card h2,
  .clone-ai-platform-spec strong,
  .clone-ai-basic-select > button strong,
  .clone-ai-model-select > button strong,
  .clone-ai-preview-header strong,
  .clone-ai-empty-state strong,
  .clone-ai-input-wrapper textarea
) {
  color: var(--fg-body);
}

.product-clone-page[data-tool="clone"] :is(
  .clone-ai-logo em,
  .clone-ai-card h2 .anticon,
  .clone-ai-upload-title,
  .clone-ai-upload-hint,
  .clone-ai-settings-label,
  .clone-ai-basic-select > button span,
  .clone-ai-model-select > button span,
  .clone-ai-preview-header span,
  .clone-ai-empty-state,
  .clone-ai-empty-state span,
  .clone-ai-char-count,
  .clone-ai-input-wrapper textarea::placeholder
) {
  color: var(--fg-muted);
}

.product-clone-page[data-tool="clone"] :is(
  .clone-ai-logo__mark,
  .clone-ai-upload-zone strong,
  .clone-ai-generate,
  .clone-ai-send-button
) {
  background: var(--accent);
  color: var(--dg-button-text, #061014);
}

.product-clone-page[data-tool="clone"] :is(
  .clone-ai-logo strong span,
  .clone-ai-upload-icon,
  .clone-ai-preview-header b,
  .clone-ai-video-smart.is-on i::after
) {
  color: var(--accent);
}

.product-clone-page[data-tool="clone"] :is(
  .clone-ai-upload-zone:focus-visible,
  .clone-ai-basic-select > button:focus-visible
) {
  outline-color: var(--accent);
}

.product-clone-page[data-tool="clone"] :is(
  .clone-ai-generate:disabled,
  .clone-ai-send-button:disabled
) {
  background: var(--bg-inset);
  color: var(--fg-soft);
}

.product-clone-page[data-tool="clone"] .clone-ai-flow-arrow {
  background: var(--accent);
}

.product-clone-page[data-tool="clone"] .clone-ai-video-smart.is-on i {
  border-color: rgba(var(--accent-rgb), 0.42);
  background: var(--accent-muted);
}

/* Ecommerce AI workspace theme parity: colors and borders only. */
.product-clone-page[data-tool="clone"] {
  background: var(--bg-base);
  color: var(--fg-body);
}

.product-clone-page[data-tool="clone"] > .product-clone-shell,
.product-clone-page[data-tool="clone"] .clone-ai-preview {
  background: var(--bg-base);
}

.product-clone-page[data-tool="clone"] .product-clone-panel,
.product-clone-page[data-tool="clone"] .clone-ai-panel::-webkit-scrollbar-track {
  background: var(--bg-panel);
}

.product-clone-page[data-tool="clone"] .product-clone-panel {
  border-right-color: var(--border-weak);
}

.product-clone-page[data-tool="clone"] .clone-ai-panel {
  scrollbar-color: var(--border-default) var(--bg-panel);
}

.product-clone-page[data-tool="clone"] .clone-ai-panel::-webkit-scrollbar-thumb {
  border-color: var(--bg-panel);
  background: var(--border-default);
}

.product-clone-page[data-tool="clone"] :is(
  .clone-ai-logo,
  .clone-ai-card,
  .clone-ai-platform-spec,
  .clone-ai-count-panel,
  .clone-ai-replicate-panel,
  .clone-ai-module-panel,
  .clone-ai-model-panel,
  .clone-ai-video-panel,
  .clone-ai-empty-state .anticon,
  .clone-ai-main-result,
  .clone-ai-result-grid button,
  .clone-ai-input-wrapper
) {
  border-color: var(--border-weak);
  background: var(--bg-panel);
}

.product-clone-page[data-tool="clone"] :is(
  .clone-ai-logo em,
  .clone-ai-upload-zone,
  .clone-ai-upload-icon,
  .clone-ai-uploaded-file,
  .clone-ai-tag-group button,
  .clone-ai-basic-select > button,
  .clone-ai-basic-select__menu,
  .clone-ai-basic-select__menu button,
  .clone-ai-replicate-tabs button,
  .clone-ai-replicate-upload,
  .clone-ai-replicate-link input,
  .clone-ai-replicate-levels button,
  .clone-ai-count-row,
  .clone-ai-count-stepper button,
  .clone-ai-module-list button,
  .clone-ai-model-tabs button,
  .clone-ai-model-scene-grid button,
  .clone-ai-model-select,
  .clone-ai-model-select > button,
  .clone-ai-model-select__menu,
  .clone-ai-model-select__menu button,
  .clone-ai-video-options button,
  .clone-ai-video-smart,
  .clone-ai-video-smart i,
  .clone-ai-send-button
) {
  border-color: var(--border-subtle);
  background: var(--bg-inset);
  color: var(--fg-muted);
}

.product-clone-page[data-tool="clone"] :is(
  .clone-ai-upload-zone:hover,
  .clone-ai-upload-zone.is-dragging,
  .clone-ai-tag-group button:hover,
  .clone-ai-basic-select > button:hover,
  .clone-ai-basic-select > button.is-open,
  .clone-ai-basic-select__menu button:hover,
  .clone-ai-basic-select__menu button.is-active,
  .clone-ai-replicate-tabs button:hover,
  .clone-ai-replicate-upload:hover,
  .clone-ai-replicate-levels button:hover,
  .clone-ai-count-stepper button:hover:not(:disabled),
  .clone-ai-module-list button:hover,
  .clone-ai-model-tabs button:hover,
  .clone-ai-model-scene-grid button:hover,
  .clone-ai-model-select > button:hover,
  .clone-ai-model-select > button.is-open,
  .clone-ai-model-select__menu button:hover,
  .clone-ai-model-select__menu button.is-active,
  .clone-ai-video-options button:hover,
  .clone-ai-video-smart:hover,
  .clone-ai-send-button:hover:not(:disabled),
  .clone-ai-main-result:hover,
  .clone-ai-result-grid button:hover
) {
  border-color: var(--border-default);
  background: var(--bg-hover);
  color: var(--fg-body);
}

.product-clone-page[data-tool="clone"] :is(
  .clone-ai-logo em.is-ready,
  .clone-ai-tag-group button.is-active,
  .clone-ai-basic-select__menu button.is-active,
  .clone-ai-replicate-tabs button.is-active,
  .clone-ai-replicate-levels button.is-active,
  .clone-ai-module-list button.is-active,
  .clone-ai-model-tabs button.is-active,
  .clone-ai-model-scene-grid button.is-active,
  .clone-ai-model-select__menu button.is-active,
  .clone-ai-video-options button.is-active,
  .clone-ai-video-smart.is-on
) {
  border-color: rgba(var(--accent-rgb), 0.42);
  background: var(--accent-muted);
  color: var(--accent);
}

.product-clone-page[data-tool="clone"] :is(
  .clone-ai-logo strong,
  .clone-ai-card h2,
  .clone-ai-platform-spec strong,
  .clone-ai-basic-select > button strong,
  .clone-ai-model-select > button strong,
  .clone-ai-preview-header strong,
  .clone-ai-empty-state strong,
  .clone-ai-input-wrapper textarea
) {
  color: var(--fg-body);
}

.product-clone-page[data-tool="clone"] :is(
  .clone-ai-logo em,
  .clone-ai-card h2 .anticon,
  .clone-ai-upload-title,
  .clone-ai-upload-hint,
  .clone-ai-settings-label,
  .clone-ai-basic-select > button span,
  .clone-ai-model-select > button span,
  .clone-ai-preview-header span,
  .clone-ai-empty-state,
  .clone-ai-empty-state span,
  .clone-ai-char-count,
  .clone-ai-input-wrapper textarea::placeholder
) {
  color: var(--fg-muted);
}

.product-clone-page[data-tool="clone"] :is(
  .clone-ai-logo__mark,
  .clone-ai-upload-zone strong,
  .clone-ai-generate,
  .clone-ai-send-button
) {
  background: var(--accent);
  color: var(--dg-button-text, #061014);
}

.product-clone-page[data-tool="clone"] :is(
  .clone-ai-logo strong span,
  .clone-ai-upload-icon,
  .clone-ai-preview-header b,
  .clone-ai-video-smart.is-on i::after
) {
  color: var(--accent);
}

.product-clone-page[data-tool="clone"] :is(
  .clone-ai-upload-zone:focus-visible,
  .clone-ai-basic-select > button:focus-visible
) {
  outline-color: var(--accent);
}

.product-clone-page[data-tool="clone"] :is(
  .clone-ai-generate:disabled,
  .clone-ai-send-button:disabled
) {
  background: var(--bg-inset);
  color: var(--fg-soft);
}

.product-clone-page[data-tool="clone"] .clone-ai-flow-arrow {
  background: var(--accent);
}

.product-clone-page[data-tool="clone"] .clone-ai-video-smart.is-on i {
  border-color: rgba(var(--accent-rgb), 0.42);
  background: var(--accent-muted);
}

/* Hot-image clone page: replaced by the uploaded ecommerce AI art tool. */
.product-clone-page[data-tool="clone"] {
  --clone-settings-panel-width: 550px;
  --clone-settings-toggle-size: 36px;
  --clone-settings-motion-duration: 520ms;
  --clone-settings-motion-ease: cubic-bezier(0.16, 1, 0.3, 1);
  display: block;
  height: 100%;
  overflow: hidden;
  background: #101115;
  color: #eef2f6;
}

.product-clone-page[data-tool="clone"] > .product-clone-shell {
  position: relative;
  display: grid;
  grid-template-columns: var(--clone-settings-panel-width) minmax(0, 1fr);
  height: 100%;
  min-height: 0;
  background: #101115;
  transition: grid-template-columns var(--clone-settings-motion-duration) var(--clone-settings-motion-ease);
  will-change: grid-template-columns;
}

.product-clone-page[data-tool="clone"] .product-clone-rail {
  display: none;
}

.product-clone-page[data-tool="clone"] .product-clone-panel {
  display: block;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border-right: 1px solid #2c3038;
  background: #15171c;
  transition:
    border-color 340ms ease,
    opacity var(--clone-settings-motion-duration) var(--clone-settings-motion-ease);
}

.product-clone-page[data-tool="clone"] .clone-ai-panel {
  display: flex;
  width: var(--clone-settings-panel-width);
  max-width: var(--clone-settings-panel-width);
  height: 100%;
  min-height: 0;
  flex-direction: column;
  gap: 14px;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 20px 18px;
  scrollbar-width: thin;
  scrollbar-color: #3a3f49 #15171c;
  transition:
    opacity 360ms ease,
    transform var(--clone-settings-motion-duration) var(--clone-settings-motion-ease);
  will-change: opacity, transform;
}

.product-clone-page[data-tool="clone"] .clone-ai-panel::-webkit-scrollbar {
  width: 8px;
}

.product-clone-page[data-tool="clone"] .clone-ai-panel::-webkit-scrollbar-track {
  background: #15171c;
}

.product-clone-page[data-tool="clone"] .clone-ai-panel::-webkit-scrollbar-thumb {
  border: 2px solid #15171c;
  border-radius: 999px;
  background: #3a3f49;
}

.product-clone-page[data-tool="clone"].is-settings-collapsed > .product-clone-shell {
  grid-template-columns: 0 minmax(0, 1fr);
}

.product-clone-page[data-tool="clone"].is-settings-collapsed .product-clone-panel {
  border-right-color: transparent;
}

.product-clone-page[data-tool="clone"].is-settings-collapsed .clone-ai-panel {
  opacity: 0;
  pointer-events: none;
  transform: translateX(-18px);
}

.product-clone-page[data-tool="clone"] .clone-ai-settings-toggle {
  position: absolute;
  z-index: 8;
  top: 50%;
  left: calc(var(--clone-settings-panel-width) - (var(--clone-settings-toggle-size) / 2));
  display: grid;
  width: var(--clone-settings-toggle-size);
  height: var(--clone-settings-toggle-size);
  place-items: center;
  border: 1px solid #3a3f49;
  border-radius: 999px;
  outline: none;
  background: #1b1d23;
  color: #cbd5e1;
  box-shadow: 0 14px 30px rgb(0 0 0 / 24%);
  cursor: pointer;
  transform: translateY(-50%);
  transition:
    left var(--clone-settings-motion-duration) var(--clone-settings-motion-ease),
    background-color 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.product-clone-page[data-tool="clone"] .clone-ai-settings-toggle:hover,
.product-clone-page[data-tool="clone"] .clone-ai-settings-toggle:focus-visible {
  border-color: #00ff88;
  background: #202c28;
  color: #00ff88;
}

.product-clone-page[data-tool="clone"] .clone-ai-settings-toggle:active {
  transform: translateY(-50%) scale(0.94);
}

.product-clone-page[data-tool="clone"].is-settings-collapsed .clone-ai-settings-toggle {
  left: 12px;
}

.product-clone-page[data-tool="clone"] .clone-ai-logo {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid #2c3038;
  padding: 0 0 12px;
}

.product-clone-page[data-tool="clone"] .clone-ai-logo__mark {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 7px;
  background: #00ff88;
  color: #06130d;
  font-size: 11px;
  font-weight: 900;
}

.product-clone-page[data-tool="clone"] .clone-ai-logo strong {
  min-width: 0;
  color: #eef2f6;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0;
}

.product-clone-page[data-tool="clone"] .clone-ai-logo strong span {
  color: #00ff88;
}

.product-clone-page[data-tool="clone"] .clone-ai-logo em {
  border: 1px solid #343944;
  border-radius: 999px;
  background: #1d2027;
  color: #7d8798;
  padding: 4px 8px;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.product-clone-page[data-tool="clone"] .clone-ai-logo em.is-ready {
  border-color: #00ff88;
  background: #17352a;
  color: #00ff88;
}

.product-clone-page[data-tool="clone"] .clone-ai-card {
  margin: 0;
  border: 1px solid #2c3038;
  border-radius: 12px;
  background: #1b1d23;
  padding: 14px;
}

.product-clone-page[data-tool="clone"] .clone-ai-card h2 {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 11px;
  color: #b8c0cd;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
}

.product-clone-page[data-tool="clone"] .clone-ai-card h2 .anticon {
  color: #7c8492;
  font-size: 15px;
}

.product-clone-page[data-tool="clone"] .clone-ai-upload-zone {
  display: grid;
  width: 100%;
  min-height: 152px;
  align-content: center;
  justify-items: center;
  gap: 8px;
  border: 1.5px dashed #3a3f49;
  border-radius: 10px;
  background: #20232a;
  color: #eef2f6;
  padding: 14px 12px;
  text-align: center;
  cursor: pointer;
  transition:
    border-color 160ms ease,
    background-color 160ms ease,
    transform 160ms ease;
}

.product-clone-page[data-tool="clone"] .clone-ai-upload-zone:hover,
.product-clone-page[data-tool="clone"] .clone-ai-upload-zone.is-dragging {
  border-color: #00ff88;
  background: #202c28;
}

.product-clone-page[data-tool="clone"] .clone-ai-upload-zone:active {
  transform: scale(0.98);
}

.product-clone-page[data-tool="clone"] .clone-ai-upload-zone:focus-visible {
  outline: 2px solid #00ff88;
  outline-offset: 3px;
}

.product-clone-page[data-tool="clone"] .clone-ai-upload-main {
  display: grid;
  justify-items: center;
  gap: 8px;
  pointer-events: none;
}

.product-clone-page[data-tool="clone"] .clone-ai-upload-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 999px;
  background: #262a33;
  color: #00ff88;
  font-size: 20px;
}

.product-clone-page[data-tool="clone"] .clone-ai-upload-title {
  color: #aab4c2;
  font-size: 13px;
  font-weight: 800;
}

.product-clone-page[data-tool="clone"] .clone-ai-upload-zone strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 122px;
  height: 38px;
  border-radius: 9px;
  background: #00ff88;
  color: #06130d;
  padding: 0 16px;
  font-size: 14px;
  font-weight: 900;
}

.product-clone-page[data-tool="clone"] .clone-ai-upload-zone strong span {
  color: inherit;
  font-size: 18px;
  line-height: 1;
}

.product-clone-page[data-tool="clone"] .clone-ai-upload-hint {
  color: #747d8e;
  font-size: 11px;
  font-weight: 700;
}

.product-clone-page[data-tool="clone"] .clone-ai-panel input[type="file"] {
  display: none;
}

.product-clone-page[data-tool="clone"] .clone-ai-uploaded-files {
  display: flex;
  flex-wrap: wrap;
  justify-self: stretch;
  gap: 8px;
  margin-top: 4px;
}

.product-clone-page[data-tool="clone"] .clone-ai-uploaded-file {
  position: relative;
  width: 54px;
  height: 54px;
  overflow: hidden;
  margin: 0;
  border: 1px solid #303540;
  border-radius: 8px;
  background: #20232a;
}

.product-clone-page[data-tool="clone"] .clone-ai-uploaded-file img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-clone-page[data-tool="clone"] .clone-ai-uploaded-file button {
  position: absolute;
  top: 3px;
  right: 3px;
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: #101115;
  color: #eef2f6;
  cursor: pointer;
  font-size: 10px;
  opacity: 0;
  transition:
    opacity 160ms ease,
    transform 160ms ease;
}

.product-clone-page[data-tool="clone"] .clone-ai-uploaded-file:hover button {
  opacity: 1;
}

.product-clone-page[data-tool="clone"] .clone-ai-uploaded-file button:active {
  transform: scale(0.92);
}

.product-clone-page[data-tool="clone"] .clone-ai-settings-section {
  display: grid;
  gap: 8px;
}

.product-clone-page[data-tool="clone"] .clone-ai-settings-section + .clone-ai-settings-section {
  margin-top: 13px;
}

.product-clone-page[data-tool="clone"] .clone-ai-settings-label {
  color: #737d8e;
  font-size: 11px;
  font-weight: 900;
}

.product-clone-page[data-tool="clone"] .clone-ai-tag-group {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.product-clone-page[data-tool="clone"] .clone-ai-tag-group button {
  height: 39px;
  min-width: 0;
  border: 1px solid #303540;
  border-radius: 9px;
  background: #22252d;
  color: #b7bfcc;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  transition:
    border-color 160ms ease,
    background-color 160ms ease,
  color 160ms ease,
  transform 160ms ease;
  white-space: nowrap;
}

.product-clone-page[data-tool="clone"] .clone-ai-tag-group button:hover {
  border-color: #454b57;
  background: #282c35;
  color: #eef2f6;
}

.product-clone-page[data-tool="clone"] .clone-ai-tag-group button.is-active {
  border-color: #00ff88;
  background: #00ff88;
  color: #06130d;
}

.product-clone-page[data-tool="clone"] .clone-ai-tag-group button:active {
  transform: scale(0.96);
}

.product-clone-page[data-tool="clone"] .clone-ai-platform-spec {
  display: grid;
  gap: 10px;
  margin-top: 13px;
  border: 1px solid #303540;
  border-radius: 12px;
  background: #1c1f26;
  padding: 12px;
}

.product-clone-page[data-tool="clone"] .clone-ai-platform-spec > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.product-clone-page[data-tool="clone"] .clone-ai-platform-spec strong {
  min-width: 0;
  overflow: hidden;
  color: #eef2f6;
  font-size: 13px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-clone-page[data-tool="clone"] .clone-ai-platform-spec > div span {
  flex: 0 0 auto;
  border-radius: 999px;
  background: #17352a;
  color: #00ff88;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 900;
}

.product-clone-page[data-tool="clone"] .clone-ai-platform-spec ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.product-clone-page[data-tool="clone"] .clone-ai-platform-spec li {
  position: relative;
  color: #8f98a8;
  padding-left: 12px;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.45;
}

.product-clone-page[data-tool="clone"] .clone-ai-platform-spec li::before {
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: #00ff88;
  content: "";
}

.product-clone-page[data-tool="clone"] .clone-ai-platform-spec p {
  margin: 0;
  border-top: 1px solid #303540;
  color: #00ff88;
  padding-top: 9px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
}

.product-clone-page[data-tool="clone"] .clone-ai-count-panel {
  display: grid;
  flex: 0 0 auto;
  gap: 10px;
  border: 1px solid #303540;
  border-radius: 14px;
  background: #1c1f26;
  padding: 12px;
}

.product-clone-page[data-tool="clone"] .clone-ai-count-panel p {
  margin: 0;
  color: #8f98a8;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.4;
}

.product-clone-page[data-tool="clone"] .clone-ai-count-list {
  display: grid;
  gap: 10px;
}

.product-clone-page[data-tool="clone"] .clone-ai-count-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 66px;
  border: 1px solid #303540;
  border-radius: 10px;
  background: #22252d;
  padding: 12px 14px;
}

.product-clone-page[data-tool="clone"] .clone-ai-count-copy {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.product-clone-page[data-tool="clone"] .clone-ai-count-copy strong {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  color: #eef2f6;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.2;
}

.product-clone-page[data-tool="clone"] .clone-ai-count-copy strong em {
  display: inline-flex;
  align-items: center;
  height: 18px;
  border-radius: 4px;
  background: #dfeeff;
  color: #245b9f;
  padding: 0 5px;
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.product-clone-page[data-tool="clone"] .clone-ai-count-copy span {
  color: #8f98a8;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.product-clone-page[data-tool="clone"] .clone-ai-count-stepper {
  display: inline-grid;
  grid-template-columns: 24px 28px 24px;
  align-items: center;
  justify-items: center;
  min-width: 76px;
  height: 38px;
  border: 1px solid #303540;
  border-radius: 8px;
  background: #101115;
  color: #eef2f6;
}

.product-clone-page[data-tool="clone"] .clone-ai-count-stepper button {
  display: grid;
  width: 24px;
  height: 30px;
  place-items: center;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #8f98a8;
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  transition:
    background-color 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.product-clone-page[data-tool="clone"] .clone-ai-count-stepper button:hover:not(:disabled) {
  background: #26342f;
  color: #00ff88;
}

.product-clone-page[data-tool="clone"] .clone-ai-count-stepper button:active:not(:disabled) {
  transform: scale(0.92);
}

.product-clone-page[data-tool="clone"] .clone-ai-count-stepper button:disabled {
  color: #4f5865;
  cursor: not-allowed;
}

.product-clone-page[data-tool="clone"] .clone-ai-count-stepper b {
  color: #eef2f6;
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
}

.product-clone-page[data-tool="clone"] .clone-ai-replicate-panel {
  display: grid;
  flex: 0 0 auto;
  gap: 9px;
  overflow: visible;
  border: 1px solid #303540;
  border-radius: 14px;
  background: #1c1f26;
  padding: 12px;
}

.product-clone-page[data-tool="clone"] .clone-ai-replicate-section {
  display: grid;
  gap: 7px;
  min-height: 0;
}

.product-clone-page[data-tool="clone"] .clone-ai-replicate-title {
  color: #8f98a8;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.15;
}

.product-clone-page[data-tool="clone"] .clone-ai-replicate-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  height: 38px;
  border: 1px solid #303540;
  border-radius: 10px;
  background: #151922;
  padding: 3px;
}

.product-clone-page[data-tool="clone"] .clone-ai-replicate-tabs button {
  min-width: 0;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #9aa4b4;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  transition:
    background-color 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.product-clone-page[data-tool="clone"] .clone-ai-replicate-tabs button:hover {
  color: #eef2f6;
}

.product-clone-page[data-tool="clone"] .clone-ai-replicate-tabs button.is-active {
  background: #00ff88;
  color: #06130d;
}

.product-clone-page[data-tool="clone"] .clone-ai-replicate-tabs button:active {
  transform: scale(0.97);
}

.product-clone-page[data-tool="clone"] .clone-ai-replicate-upload {
  position: relative;
  display: grid;
  min-height: 96px;
  overflow: visible;
  place-items: center;
  align-content: center;
  gap: 7px;
  border: 1px dashed #5d84bd;
  border-radius: 12px;
  background: #20242c;
  color: #eef2f6;
  padding: 16px 12px;
  cursor: pointer;
  transition:
    border-color 160ms ease,
    background-color 160ms ease,
    transform 160ms ease;
}

.product-clone-page[data-tool="clone"] .clone-ai-replicate-upload.has-files {
  min-height: 120px;
  place-items: center;
  align-content: center;
  gap: 8px;
  padding: 10px;
}

.product-clone-page[data-tool="clone"] .clone-ai-replicate-upload:hover {
  border-color: #00ff88;
  background: #202c28;
}

.product-clone-page[data-tool="clone"] .clone-ai-replicate-upload.is-dragging {
  border-color: #00ff88;
  background: #1a2e24;
  border-style: solid;
}

.product-clone-page[data-tool="clone"] .clone-ai-replicate-upload:active {
  transform: scale(0.98);
}

.product-clone-page[data-tool="clone"] .clone-ai-replicate-upload-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 12px;
  background: rgba(0, 255, 136, 0.08);
  color: #00ff88;
  pointer-events: none;
}

.product-clone-page[data-tool="clone"] .clone-ai-replicate-upload-overlay .anticon {
  font-size: 28px;
}

.product-clone-page[data-tool="clone"] .clone-ai-replicate-upload-overlay span {
  font-size: 14px;
  font-weight: 800;
}

.product-clone-page[data-tool="clone"] .clone-ai-replicate-upload > span {
  display: inline-grid;
  grid-template-columns: auto minmax(0, max-content);
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: fit-content;
  max-width: calc(100% - 8px);
  height: 34px;
  min-width: 0;
  overflow: hidden;
  border-radius: 9px;
  background: #2b3039;
  color: #eef2f6;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 900;
  text-align: center;
  white-space: nowrap;
}

.product-clone-page[data-tool="clone"] .clone-ai-replicate-upload > span .anticon {
  min-width: 0;
  color: currentcolor;
  font-size: 15px;
  line-height: 0;
}

.product-clone-page[data-tool="clone"] .clone-ai-replicate-upload-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-clone-page[data-tool="clone"] .clone-ai-replicate-upload em {
  color: #9aa4b4;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

/* ── Reference image file grid (inside upload button) ── */
.product-clone-page[data-tool="clone"] .clone-ai-replicate-files {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(56px, 1fr));
  gap: 6px;
  width: 100%;
  overflow: visible;
}

.product-clone-page[data-tool="clone"] .clone-ai-replicate-file {
  position: relative;
  display: block;
  aspect-ratio: 1;
  min-width: 0;
  overflow: visible;
  margin: 0;
  border-radius: 6px;
}

.product-clone-page[data-tool="clone"] .clone-ai-replicate-file > img {
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  border: 1px solid #3a4555;
  border-radius: 6px;
  background: #111720;
  object-fit: cover;
}

.product-clone-page[data-tool="clone"] .clone-ai-replicate-file > img:hover {
  border-color: #00ff88;
}

.product-clone-page[data-tool="clone"] .clone-ai-replicate-add-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  justify-self: center;
  width: fit-content;
  max-width: calc(100% - 8px);
  height: 28px;
  min-width: 0;
  border-radius: 7px;
  background: #2b3039;
  color: #9aa4b4;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap;
}

.product-clone-page[data-tool="clone"] .clone-ai-replicate-add-more .anticon {
  font-size: 13px;
  color: #5d84bd;
}

/* ── Portal-based zoom preview (avoids overflow clipping) ── */
.clone-ai-zoom-portal {
  position: fixed;
  z-index: 9999;
  width: min(280px, 52vw);
  max-height: 340px;
  border: 1px solid #3a4555;
  border-radius: 14px;
  background: #101115;
  padding: 8px;
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.5);
  transform: translate(-50%, calc(-100% - 12px));
  pointer-events: none;
}

.clone-ai-zoom-portal img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 324px;
  border-radius: 8px;
  object-fit: contain;
}

.product-clone-page[data-tool="clone"] .clone-ai-replicate-link input {
  width: 100%;
  height: 72px;
  border: 1px solid #303540;
  border-radius: 12px;
  outline: none;
  background: #22252d;
  color: #eef2f6;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 800;
}

.product-clone-page[data-tool="clone"] .clone-ai-replicate-link input:focus {
  border-color: #00ff88;
  box-shadow: 0 0 0 3px rgb(52 211 153 / 10%);
}

.product-clone-page[data-tool="clone"] .clone-ai-replicate-levels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  min-height: 0;
}

.product-clone-page[data-tool="clone"] .clone-ai-replicate-levels button {
  display: grid;
  align-content: start;
  gap: 6px;
  min-width: 0;
  min-height: 82px;
  border: 1px solid #303540;
  border-radius: 12px;
  background: #22252d;
  padding: 12px;
  text-align: left;
  cursor: pointer;
  transition:
    border-color 160ms ease,
    background-color 160ms ease,
    transform 160ms ease;
}

.product-clone-page[data-tool="clone"] .clone-ai-replicate-levels button:hover {
  border-color: #454b57;
  background: #252934;
}

.product-clone-page[data-tool="clone"] .clone-ai-replicate-levels button.is-active {
  border-color: #00ff88;
  background: #26342f;
}

.product-clone-page[data-tool="clone"] .clone-ai-replicate-levels button:active {
  transform: scale(0.98);
}

.product-clone-page[data-tool="clone"] .clone-ai-replicate-levels strong {
  overflow: hidden;
  color: #eef2f6;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-clone-page[data-tool="clone"] .clone-ai-replicate-levels span {
  display: -webkit-box;
  overflow: hidden;
  color: #8f98a8;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.product-clone-page[data-tool="clone"] .clone-ai-module-panel {
  display: grid;
  flex: 0 0 auto;
  gap: 10px;
  border: 1px solid #303540;
  border-radius: 14px;
  background: #1c1f26;
  padding: 12px;
}

.product-clone-page[data-tool="clone"] .clone-ai-module-panel p {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin: 0;
  color: #eef2f6;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.2;
}

.product-clone-page[data-tool="clone"] .clone-ai-module-panel p svg {
  color: #8f98a8;
  font-size: 12px;
}

.product-clone-page[data-tool="clone"] .clone-ai-module-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
  gap: 8px;
}

.product-clone-page[data-tool="clone"] .clone-ai-module-list button {
  display: grid;
  align-content: center;
  gap: 6px;
  min-width: 0;
  min-height: 68px;
  border: 1px solid #303540;
  border-radius: 10px;
  background: #22252d;
  padding: 12px;
  text-align: left;
  cursor: pointer;
  transition:
    border-color 160ms ease,
    background-color 160ms ease,
    transform 160ms ease;
}

.product-clone-page[data-tool="clone"] .clone-ai-module-list button:hover {
  border-color: #454b57;
  background: #252934;
}

.product-clone-page[data-tool="clone"] .clone-ai-module-list button:active {
  transform: scale(0.98);
}

.product-clone-page[data-tool="clone"] .clone-ai-module-list button.is-active {
  border-color: #00ff88;
  background: #26342f;
}

.product-clone-page[data-tool="clone"] .clone-ai-module-list strong {
  overflow: hidden;
  color: #eef2f6;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-clone-page[data-tool="clone"] .clone-ai-module-list span {
  overflow: hidden;
  color: #8f98a8;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-clone-page[data-tool="clone"] .clone-ai-model-panel {
  display: grid;
  flex: 0 0 auto;
  gap: 10px;
  border: 1px solid #303540;
  border-radius: 14px;
  background: #1c1f26;
  padding: 12px;
}

.product-clone-page[data-tool="clone"] .clone-ai-model-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.product-clone-page[data-tool="clone"] .clone-ai-model-tabs button {
  height: 34px;
  min-width: 0;
  border: 1px solid #303540;
  border-radius: 8px;
  background: #22252d;
  color: #b7bfcc;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  transition:
    border-color 160ms ease,
    background-color 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.product-clone-page[data-tool="clone"] .clone-ai-model-tabs button:hover {
  border-color: #454b57;
  background: #282c35;
  color: #eef2f6;
}

.product-clone-page[data-tool="clone"] .clone-ai-model-tabs button.is-active {
  border-color: #00ff88;
  background: #00ff88;
  color: #06130d;
}

.product-clone-page[data-tool="clone"] .clone-ai-model-tabs button:active {
  transform: scale(0.97);
}

.product-clone-page[data-tool="clone"] .clone-ai-model-scroll {
  overflow: visible;
}

.product-clone-page[data-tool="clone"] .clone-ai-model-scenes,
.product-clone-page[data-tool="clone"] .clone-ai-model-profile {
  display: grid;
  gap: 12px;
}

.product-clone-page[data-tool="clone"] .clone-ai-model-scene-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.product-clone-page[data-tool="clone"] .clone-ai-model-scene-grid button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  min-height: 42px;
  border: 1px solid #303540;
  border-radius: 10px;
  background: #22252d;
  color: #eef2f6;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 900;
  text-align: left;
  cursor: pointer;
  transition:
    border-color 160ms ease,
    background-color 160ms ease,
    transform 160ms ease;
}

.product-clone-page[data-tool="clone"] .clone-ai-model-scene-grid button > span {
  display: block;
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  border: 1px solid #596272;
  border-radius: 4px;
  background: #101115;
}

.product-clone-page[data-tool="clone"] .clone-ai-model-scene-grid button:hover {
  border-color: #454b57;
  background: #252934;
}

.product-clone-page[data-tool="clone"] .clone-ai-model-scene-grid button.is-active {
  border-color: #00ff88;
  background: #26342f;
}

.product-clone-page[data-tool="clone"] .clone-ai-model-scene-grid button.is-active > span {
  border-color: #00ff88;
  background: #00ff88;
}

.product-clone-page[data-tool="clone"] .clone-ai-model-scene-grid button:active {
  transform: scale(0.98);
}

.product-clone-page[data-tool="clone"] .clone-ai-model-select-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.product-clone-page[data-tool="clone"] .clone-ai-model-select-grid label,
.product-clone-page[data-tool="clone"] .clone-ai-model-select {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.product-clone-page[data-tool="clone"] .clone-ai-model-select {
  position: relative;
  z-index: 1;
}

.product-clone-page[data-tool="clone"] .clone-ai-model-select.is-open {
  z-index: 24;
}

.product-clone-page[data-tool="clone"] .clone-ai-model-select-grid label > span,
.product-clone-page[data-tool="clone"] .clone-ai-model-select > span {
  color: #8f98a8;
  font-size: 11px;
  font-weight: 900;
}

.product-clone-page[data-tool="clone"] .clone-ai-model-select-grid select,
.product-clone-page[data-tool="clone"] .clone-ai-model-select > button {
  width: 100%;
  height: 40px;
  min-width: 0;
  border: 1px solid #303540;
  border-radius: 9px;
  outline: none;
  background: #22252d;
  color: #eef2f6;
  padding: 0 10px;
  font-size: 13px;
  font-weight: 900;
}

.product-clone-page[data-tool="clone"] .clone-ai-model-select > button {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 14px;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  text-align: left;
  transition:
    border-color 160ms ease,
    background-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.product-clone-page[data-tool="clone"] .clone-ai-model-select > button:hover,
.product-clone-page[data-tool="clone"] .clone-ai-model-select > button.is-open {
  border-color: #00ff88;
  background: #26342f;
  box-shadow: 0 0 0 3px rgb(52 211 153 / 10%);
}

.product-clone-page[data-tool="clone"] .clone-ai-model-select > button:active {
  transform: scale(0.98);
}

.product-clone-page[data-tool="clone"] .clone-ai-model-select > button:focus-visible {
  border-color: #00ff88;
  box-shadow: 0 0 0 3px rgb(52 211 153 / 16%);
}

.product-clone-page[data-tool="clone"] .clone-ai-model-select > button strong {
  min-width: 0;
  overflow: hidden;
  color: #eef2f6;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-clone-page[data-tool="clone"] .clone-ai-model-select > button i {
  display: block;
  width: 8px;
  height: 8px;
  justify-self: end;
  border-right: 2px solid #d9dee8;
  border-bottom: 2px solid #d9dee8;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 160ms ease;
}

.product-clone-page[data-tool="clone"] .clone-ai-model-select > button.is-open i {
  transform: translateY(2px) rotate(225deg);
}

.product-clone-page[data-tool="clone"] .clone-ai-model-select__menu {
  position: absolute;
  top: calc(100% + 7px);
  left: 0;
  right: 0;
  z-index: 30;
  display: grid;
  gap: 4px;
  border: 1px solid #303540;
  border-radius: 8px;
  background: #22252d;
  background-image: none;
  padding: 5px;
  box-shadow: none;
  transform-origin: top center;
  animation: clone-ai-model-select-pop 160ms cubic-bezier(0.2, 0.82, 0.2, 1) both;
}

.product-clone-page[data-tool="clone"] .clone-ai-model-select.is-drop-up .clone-ai-model-select__menu {
  top: auto;
  bottom: calc(100% + 7px);
  transform-origin: bottom center;
  animation-name: clone-ai-model-select-pop-up;
}

.product-clone-page[data-tool="clone"] .clone-ai-model-select__menu button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
  min-height: 32px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #b7bfcc;
  padding: 0 9px;
  font-size: 13px;
  font-weight: 900;
  text-align: left;
  cursor: pointer;
  transition:
    border-color 140ms ease,
    background-color 140ms ease,
    color 140ms ease,
    transform 140ms ease;
}

.product-clone-page[data-tool="clone"] .clone-ai-model-select__menu button:hover,
.product-clone-page[data-tool="clone"] .clone-ai-model-select__menu button.is-active {
  background: #17352a;
  color: #00ff88;
}

.product-clone-page[data-tool="clone"] .clone-ai-model-select__menu button:active {
  transform: scale(0.98);
}

@keyframes clone-ai-model-select-pop {
  from {
    opacity: 0;
    transform: translateY(-6px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes clone-ai-model-select-pop-up {
  from {
    opacity: 0;
    transform: translateY(6px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.product-clone-page[data-tool="clone"] .clone-ai-model-textarea {
  display: grid;
  gap: 8px;
}

.product-clone-page[data-tool="clone"] .clone-ai-model-textarea strong {
  color: #8f98a8;
  font-size: 12px;
  font-weight: 900;
}

.product-clone-page[data-tool="clone"] .clone-ai-model-textarea textarea {
  width: 100%;
  min-height: 92px;
  resize: none;
  border: 1px solid #303540;
  border-radius: 12px;
  outline: none;
  background: #22252d;
  color: #eef2f6;
  padding: 12px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}

.product-clone-page[data-tool="clone"] .clone-ai-model-textarea textarea::placeholder {
  color: #737d8e;
}

.product-clone-page[data-tool="clone"] .clone-ai-model-textarea textarea:focus,
.product-clone-page[data-tool="clone"] .clone-ai-model-select-grid select:focus {
  border-color: #00ff88;
}

.product-clone-page[data-tool="clone"] .clone-ai-video-panel {
  display: grid;
  flex: 0 0 auto;
  align-content: start;
  gap: 12px;
  overflow: visible;
  border: 1px solid #303540;
  border-radius: 14px;
  background: #1c1f26;
  padding: 12px;
}

.product-clone-page[data-tool="clone"] .clone-ai-video-section {
  display: grid;
  gap: 8px;
}

.product-clone-page[data-tool="clone"] .clone-ai-video-title {
  color: #eef2f6;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.2;
}

.product-clone-page[data-tool="clone"] .clone-ai-video-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.product-clone-page[data-tool="clone"] .clone-ai-video-title-row strong {
  color: #00ff88;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.product-clone-page[data-tool="clone"] .clone-ai-video-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.product-clone-page[data-tool="clone"] .clone-ai-video-options button {
  display: grid;
  align-content: center;
  gap: 5px;
  min-width: 0;
  min-height: 54px;
  border: 1px solid #303540;
  border-radius: 10px;
  background: #22252d;
  padding: 9px 8px;
  text-align: left;
  cursor: pointer;
  transition:
    border-color 160ms ease,
    background-color 160ms ease,
    transform 160ms ease;
}

.product-clone-page[data-tool="clone"] .clone-ai-video-options button:hover {
  border-color: #454b57;
  background: #252934;
}

.product-clone-page[data-tool="clone"] .clone-ai-video-options button:active {
  transform: scale(0.98);
}

.product-clone-page[data-tool="clone"] .clone-ai-video-options button.is-active {
  border-color: #00ff88;
  background: #26342f;
}

.product-clone-page[data-tool="clone"] .clone-ai-video-options strong {
  overflow: hidden;
  color: #eef2f6;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-clone-page[data-tool="clone"] .clone-ai-video-options span {
  overflow: hidden;
  color: #8f98a8;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-clone-page[data-tool="clone"] .clone-ai-duration-control {
  display: grid;
  gap: 10px;
  border: 1px solid #303540;
  border-radius: 10px;
  background: #22252d;
  padding: 18px 14px 12px;
}

.product-clone-page[data-tool="clone"] .clone-ai-duration-control input {
  width: 100%;
  height: 18px;
  appearance: none;
  outline: none;
  background: transparent;
  cursor: pointer;
}

.product-clone-page[data-tool="clone"] .clone-ai-duration-control input::-webkit-slider-runnable-track {
  height: 5px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, #00ff88 0 var(--clone-video-duration-progress), #3a4050 var(--clone-video-duration-progress) 100%);
}

.product-clone-page[data-tool="clone"] .clone-ai-duration-control input::-webkit-slider-thumb {
  width: 18px;
  height: 18px;
  margin-top: -6.5px;
  appearance: none;
  border: 3px solid #101115;
  border-radius: 999px;
  background: #00ff88;
  box-shadow: 0 0 0 1px #00ff88;
}

.product-clone-page[data-tool="clone"] .clone-ai-duration-control input::-moz-range-track {
  height: 5px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, #00ff88 0 var(--clone-video-duration-progress), #3a4050 var(--clone-video-duration-progress) 100%);
}

.product-clone-page[data-tool="clone"] .clone-ai-duration-control input::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border: 3px solid #101115;
  border-radius: 999px;
  background: #00ff88;
  box-shadow: 0 0 0 1px #00ff88;
}

.product-clone-page[data-tool="clone"] .clone-ai-duration-scale {
  display: flex;
  justify-content: space-between;
  color: #8f98a8;
  font-size: 11px;
  font-weight: 800;
}

.product-clone-page[data-tool="clone"] .clone-ai-video-smart {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  border: 1px solid #303540;
  border-radius: 10px;
  background: #22252d;
  padding: 12px;
  text-align: left;
  cursor: pointer;
  transition:
    border-color 160ms ease,
    background-color 160ms ease,
    transform 160ms ease;
}

.product-clone-page[data-tool="clone"] .clone-ai-video-smart:hover {
  border-color: #454b57;
  background: #252934;
}

.product-clone-page[data-tool="clone"] .clone-ai-video-smart:active {
  transform: scale(0.98);
}

.product-clone-page[data-tool="clone"] .clone-ai-video-smart.is-on {
  border-color: #00ff88;
  background: #26342f;
}

.product-clone-page[data-tool="clone"] .clone-ai-video-smart span {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.product-clone-page[data-tool="clone"] .clone-ai-video-smart strong {
  color: #eef2f6;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.2;
}

.product-clone-page[data-tool="clone"] .clone-ai-video-smart em {
  overflow: hidden;
  color: #8f98a8;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-clone-page[data-tool="clone"] .clone-ai-video-smart i {
  position: relative;
  display: block;
  width: 38px;
  height: 22px;
  border-radius: 999px;
  background: #101115;
  border: 1px solid #303540;
}

.product-clone-page[data-tool="clone"] .clone-ai-video-smart i::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: #596272;
  content: "";
  transition:
    background-color 160ms ease,
    transform 160ms ease;
}

.product-clone-page[data-tool="clone"] .clone-ai-video-smart.is-on i {
  border-color: #00ff88;
  background: #17352a;
}

.product-clone-page[data-tool="clone"] .clone-ai-video-smart.is-on i::after {
  background: #00ff88;
  transform: translateX(16px);
}

.product-clone-page[data-tool="clone"] .clone-ai-select-group {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.product-clone-page[data-tool="clone"] .clone-ai-basic-select {
  position: relative;
  min-width: 0;
}

.product-clone-page[data-tool="clone"] .clone-ai-basic-select > button {
  position: relative;
  display: grid;
  width: 100%;
  min-height: 68px;
  min-width: 0;
  justify-items: start;
  gap: 6px;
  border: 1px solid #303540;
  border-radius: 11px;
  background: #22252d;
  color: #eef2f6;
  padding: 11px 40px 11px 14px;
  text-align: left;
  cursor: pointer;
  transition:
    border-color 160ms ease,
    background-color 160ms ease,
    transform 160ms ease;
}

.product-clone-page[data-tool="clone"] .clone-ai-basic-select > button:hover,
.product-clone-page[data-tool="clone"] .clone-ai-basic-select > button.is-open {
  border-color: #00ff88;
  background: #202c28;
}

.product-clone-page[data-tool="clone"] .clone-ai-basic-select > button.is-static {
  padding-right: 14px;
  cursor: default;
}

.product-clone-page[data-tool="clone"] .clone-ai-basic-select > button.is-static:hover {
  border-color: #303540;
  background: #22252d;
}

.product-clone-page[data-tool="clone"] .clone-ai-basic-select > button:active {
  transform: scale(0.98);
}

.product-clone-page[data-tool="clone"] .clone-ai-basic-select > button.is-static:active {
  transform: none;
}

.product-clone-page[data-tool="clone"] .clone-ai-basic-select > button:focus-visible {
  outline: 2px solid #00ff88;
  outline-offset: 2px;
}

.product-clone-page[data-tool="clone"] .clone-ai-basic-select > button span {
  color: #737d8e;
  font-size: 12px;
  font-weight: 900;
}

.product-clone-page[data-tool="clone"] .clone-ai-basic-select > button strong {
  max-width: 100%;
  overflow: hidden;
  color: #eef2f6;
  font-size: 15px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-clone-page[data-tool="clone"] .clone-ai-basic-select > button i {
  position: absolute;
  right: 14px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid #7c8492;
  border-bottom: 2px solid #7c8492;
  transform: translateY(-65%) rotate(45deg);
  transition: transform 160ms ease;
}

.product-clone-page[data-tool="clone"] .clone-ai-basic-select > button.is-open i {
  transform: translateY(-35%) rotate(225deg);
}

.product-clone-page[data-tool="clone"] .clone-ai-basic-select__menu {
  position: absolute;
  z-index: 30;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  display: grid;
  max-height: 184px;
  overflow-y: auto;
  border: 1px solid #303540;
  border-radius: 8px;
  background: #22252d;
  padding: 5px;
  animation: clone-ai-select-fade 150ms ease both;
}

.product-clone-page[data-tool="clone"] .clone-ai-basic-select__menu button {
  min-height: 32px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #b7bfcc;
  padding: 0 9px;
  text-align: left;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  transition:
    background-color 140ms ease,
    color 140ms ease;
}

.product-clone-page[data-tool="clone"] .clone-ai-basic-select__menu button:hover,
.product-clone-page[data-tool="clone"] .clone-ai-basic-select__menu button.is-active {
  background: #17352a;
  color: #00ff88;
}

@keyframes clone-ai-select-fade {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.product-clone-page[data-tool="clone"] .clone-ai-generate {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  border: 0;
  border-radius: 11px;
  background: #00ff88;
  color: #06130d;
  font-size: 16px;
  font-weight: 900;
  cursor: pointer;
  transition:
    background-color 160ms ease,
    transform 160ms ease;
}

.product-clone-page[data-tool="clone"] .clone-ai-generate:hover:not(:disabled) {
  background: #5eead4;
  transform: translateY(-1px);
}

.product-clone-page[data-tool="clone"] .clone-ai-generate:active:not(:disabled) {
  transform: scale(0.97);
}

.product-clone-page[data-tool="clone"] .clone-ai-generate:disabled {
  background: #26342f;
  color: #677569;
  cursor: not-allowed;
}

.product-clone-page[data-tool="clone"] .clone-ai-preview {
  position: relative;
  display: grid;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  align-content: safe center;
  justify-items: center;
  gap: 22px;
  background: #101115;
  padding: 92px 46px 142px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.product-clone-page[data-tool="clone"] .clone-ai-preview::-webkit-scrollbar {
  display: none;
}

.product-clone-page[data-tool="clone"] .clone-ai-preview-header {
  position: absolute;
  top: 84px;
  left: 32px;
  right: 414px;
  display: grid;
  justify-items: start;
  gap: 7px;
  max-width: 560px;
  text-align: left;
}

.product-clone-page[data-tool="clone"] .clone-ai-preview-header strong {
  color: #eef2f6;
  font-size: 22px;
  font-weight: 900;
}

.product-clone-page[data-tool="clone"] .clone-ai-preview-header span {
  color: #758096;
  font-size: 14px;
  font-weight: 700;
}

.product-clone-page[data-tool="clone"] .clone-ai-preview-header b {
  color: #00ff88;
}

/* ── Preview zoom controls ─────────────────────────── */
.product-clone-page[data-tool="clone"] .clone-ai-preview-zoom {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
}
.product-clone-page[data-tool="clone"] .clone-ai-preview-zoom button {
  width: 28px;
  height: 28px;
  border: 1px solid #2c3038;
  border-radius: 6px;
  background: #1b1d23;
  color: #a0a8b8;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: border-color 150ms ease, color 150ms ease;
}
.product-clone-page[data-tool="clone"] .clone-ai-preview-zoom button:hover:not(:disabled) {
  border-color: #00ff88;
  color: #00ff88;
}
.product-clone-page[data-tool="clone"] .clone-ai-preview-zoom button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.product-clone-page[data-tool="clone"] .clone-ai-preview-zoom span {
  min-width: 42px;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: #758096;
}
.product-clone-page[data-tool="clone"] .clone-ai-preview-zoom-wrap {
  flex-shrink: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  min-width: max-content;
}

.product-clone-page[data-tool="clone"] .clone-ai-empty-state {
  display: grid;
  width: min(100%, 600px);
  min-height: 300px;
  place-items: center;
  align-content: center;
  gap: 12px;
  color: #747d90;
  text-align: center;
}

.product-clone-page[data-tool="clone"] .clone-ai-empty-state .anticon {
  display: grid;
  width: 96px;
  height: 96px;
  place-items: center;
  border: 1px solid #2c3038;
  border-radius: 999px;
  background: #1b1d23;
  color: #565d6b;
  font-size: 40px;
}

.product-clone-page[data-tool="clone"] .clone-ai-empty-state strong {
  color: #d8deed;
  font-size: 22px;
  font-weight: 900;
}

.product-clone-page[data-tool="clone"] .clone-ai-empty-state span {
  max-width: 500px;
  color: #747d90;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.6;
}

.clone-ai-retry-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 20px;
  border: 1px solid rgba(var(--accent-rgb), 0.32);
  border-radius: 12px;
  background: rgba(var(--accent-rgb), 0.12);
  color: var(--accent);
  font-weight: 900;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
}

.clone-ai-retry-btn:hover {
  background: rgba(var(--accent-rgb), 0.22);
  transform: translateY(-1px);
}

.product-clone-page[data-tool="clone"] .clone-ai-preview-showcase {
  display: grid;
  grid-template-columns: minmax(260px, 380px) 54px minmax(400px, 1fr);
  align-items: center;
  gap: 28px;
  width: min(100%, 1120px);
}

.product-clone-page[data-tool="clone"] .clone-ai-main-result,
.product-clone-page[data-tool="clone"] .clone-ai-result-grid button {
  position: relative;
  overflow: hidden;
  border: 1px solid #2c3038;
  border-radius: 16px;
  background: #1b1d23;
  padding: 0;
  cursor: pointer;
  transition:
    border-color 200ms ease,
    transform 200ms ease,
    box-shadow 200ms ease;
}

.product-clone-page[data-tool="clone"] .clone-ai-main-result:hover,
.product-clone-page[data-tool="clone"] .clone-ai-result-grid button:hover {
  border-color: #00ff88;
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 255, 136, 0.1), 0 2px 8px rgba(0, 0, 0, 0.3);
}

.product-clone-page[data-tool="clone"] .clone-ai-main-result:active,
.product-clone-page[data-tool="clone"] .clone-ai-result-grid button:active {
  transform: scale(0.97);
}

.product-clone-page[data-tool="clone"] .clone-ai-main-result img,
.product-clone-page[data-tool="clone"] .clone-ai-result-grid img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 300ms ease;
}

.product-clone-page[data-tool="clone"] .clone-ai-main-result:hover img,
.product-clone-page[data-tool="clone"] .clone-ai-result-grid button:hover img {
  transform: scale(1.03);
}

.product-clone-page[data-tool="clone"] .clone-ai-main-result {
  width: 100%;
  height: auto;
}

.product-clone-page[data-tool="clone"] .clone-ai-result-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.product-clone-page[data-tool="clone"] .clone-ai-result-grid button {
  width: 100%;
  height: auto;
}

.product-clone-page[data-tool="clone"] .clone-ai-result-grid button:first-child {
  grid-column: 1 / -1;
}

.product-clone-page[data-tool="clone"] .clone-ai-main-result span,
.product-clone-page[data-tool="clone"] .clone-ai-result-grid span {
  position: absolute;
  left: 12px;
  top: 12px;
  max-width: calc(100% - 24px);
  overflow: hidden;
  border: 1px solid rgba(48, 53, 64, 0.6);
  border-radius: 999px;
  background: rgba(21, 23, 28, 0.85);
  backdrop-filter: blur(8px);
  color: #d8deed;
  padding: 7px 13px;
  font-size: 12px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-clone-page[data-tool="clone"] .clone-ai-flow-arrow {
  width: 54px;
  height: 26px;
  background: #00ff88;
  clip-path: polygon(0 34%, 58% 34%, 58% 0, 100% 50%, 58% 100%, 58% 66%, 0 66%);
  animation: clone-ai-arrow-pulse 1.35s ease-in-out infinite;
}

.product-clone-page[data-tool="clone"] .clone-ai-bottom-input {
  position: absolute;
  left: 46px;
  right: 46px;
  bottom: 24px;
  z-index: 2;
  display: grid;
  gap: 8px;
}

.product-clone-page[data-tool="clone"] .clone-ai-input-wrapper {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 38px;
  align-items: end;
  gap: 10px;
  border: 1px solid #2c3038;
  border-radius: 18px;
  background: #1b1d23;
  padding: 12px;
}

.product-clone-page[data-tool="clone"] .clone-ai-send-button {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid #303540;
  border-radius: 999px;
  background: #22252d;
  color: #eef2f6;
  font-size: 20px;
  font-weight: 900;
  cursor: pointer;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    transform 160ms ease;
}

.product-clone-page[data-tool="clone"] .clone-ai-send-button:hover:not(:disabled) {
  border-color: #00ff88;
  background: #202c28;
}

.product-clone-page[data-tool="clone"] .clone-ai-send-button:active:not(:disabled) {
  transform: scale(0.94);
}

.product-clone-page[data-tool="clone"] .clone-ai-input-wrapper textarea {
  min-width: 0;
  min-height: 44px;
  max-height: 183px;
  border: 0;
  outline: none;
  resize: vertical;
  background: transparent;
  color: #eef2f6;
  padding: 10px 0 8px;
  font: inherit;
  font-size: 14px;
  line-height: 1.55;
}

.product-clone-page[data-tool="clone"] .clone-ai-input-wrapper textarea::placeholder {
  color: #687184;
}

.product-clone-page[data-tool="clone"] .clone-ai-send-button {
  background: #00ff88;
  color: #06130d;
}

.product-clone-page[data-tool="clone"] .clone-ai-send-button:disabled {
  background: #26342f;
  color: #677569;
  cursor: not-allowed;
}

.product-clone-page[data-tool="clone"] .clone-ai-char-count {
  justify-self: end;
  color: #70798a;
  font-size: 12px;
  font-weight: 800;
}

/* ═══════════════════════════════════════════════
   Flowchart Pipeline Layout (参考图风格)
   流程图式布局：原图 → 分镜文本 → 分镜图 → 分镜视频
   ═══════════════════════════════════════════════ */

.clone-ai-flow-pipeline {
  display: flex;
  align-items: stretch;
  gap: 0;
  width: min(100%, 1100px);
  min-height: 320px;
  padding: 20px 0;
}

/* ── Source Node ── */
.clone-ai-flow-source {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.clone-ai-flow-node {
  position: relative;
  overflow: hidden;
  border: 1px solid #2c3038;
  border-radius: var(--radius-sm, 10px);
  background: #1b1d23;
  transition: border-color 200ms ease, transform 200ms ease, box-shadow 200ms ease;
}

.clone-ai-flow-node:hover {
  border-color: rgba(var(--accent-rgb), 0.4);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.clone-ai-flow-node--source {
  width: 160px;
  height: 200px;
  flex-shrink: 0;
}

.clone-ai-flow-node--source img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.clone-ai-flow-node__placeholder {
  display: grid;
  width: 100%;
  height: 100%;
  min-height: 80px;
  place-items: center;
  color: #565d6b;
  font-size: 32px;
  background: linear-gradient(135deg, #1b1d23 0%, #14161b 100%);
}

.clone-ai-flow-node__label {
  color: #aeb8b1;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

.clone-ai-flow-node__tag {
  position: absolute;
  left: 8px;
  top: 8px;
  max-width: calc(100% - 16px);
  overflow: hidden;
  border: 1px solid #303540;
  border-radius: 999px;
  background: rgba(21, 23, 28, 0.92);
  backdrop-filter: blur(6px);
  color: #d8deed;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.clone-ai-flow-node__tag--accent {
  border-color: rgba(var(--accent-rgb), 0.35);
  background: rgba(var(--accent-rgb), 0.12);
  color: var(--accent);
}

/* ── Text Node ── */
.clone-ai-flow-node--text {
  min-width: 130px;
  max-width: 160px;
  padding: 16px 14px;
  cursor: default;
}

.clone-ai-flow-node__text-content {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.clone-ai-flow-node__text-title {
  color: #eef2f6;
  font-size: 14px;
  font-weight: 800;
}

.clone-ai-flow-node__text-desc {
  color: #758096;
  font-size: 12px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── Result Node ── */
.clone-ai-flow-node--result,
.clone-ai-flow-node--output {
  width: 180px;
  height: 140px;
  flex-shrink: 0;
  cursor: pointer;
}

.clone-ai-flow-node--result img,
.clone-ai-flow-node--output img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── Video Node ── */
.clone-ai-flow-node--video {
  width: 160px;
  height: 120px;
  flex-shrink: 0;
}

/* ── Connector (分支连接线) ── */
.clone-ai-flow-connector {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  width: 40px;
  position: relative;
}

.clone-ai-flow-connector__trunk {
  position: absolute;
  left: 0;
  top: 50%;
  width: 20px;
  height: 2px;
  background: #3a3f48;
}

.clone-ai-flow-connector__branches {
  position: absolute;
  left: 20px;
  top: 15%;
  bottom: 15%;
  width: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.clone-ai-flow-connector__branch {
  position: relative;
  width: 100%;
  height: 2px;
  background: #3a3f48;
}

.clone-ai-flow-connector__branch::before {
  content: "";
  position: absolute;
  left: 0;
  top: -8px;
  width: 2px;
  height: 18px;
  background: #3a3f48;
}

.clone-ai-flow-connector__branch:last-child::before {
  display: none;
}

.clone-ai-flow-connector__branches::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #3a3f48;
}

/* ── Flow Arrow (节点间箭头) ── */
.clone-ai-flow-branch .clone-ai-flow-arrow {
  width: 28px;
  height: 16px;
  flex-shrink: 0;
  background: var(--accent);
  clip-path: polygon(0 34%, 55% 34%, 55% 0, 100% 50%, 55% 100%, 55% 66%, 0 66%);
  opacity: 0.7;
  animation: clone-ai-arrow-pulse 1.6s ease-in-out infinite;
}

@keyframes clone-ai-arrow-pulse {
  0%, 100% { opacity: 0.5; transform: translateX(0); }
  50% { opacity: 1; transform: translateX(3px); }
}

/* ── Branches Container ── */
.clone-ai-flow-branches {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
  min-width: 0;
}

.clone-ai-flow-branch {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ── Empty State Branches ── */
.clone-ai-flow-branches--empty .clone-ai-flow-branch {
  opacity: 0.55;
}

.clone-ai-flow-branches--empty .clone-ai-flow-branch.is-generating {
  opacity: 0.85;
}

.clone-ai-flow-branches--empty .clone-ai-flow-branch.is-generating .clone-ai-flow-node {
  border-color: rgba(var(--accent-rgb), 0.25);
}

.clone-ai-flow-branches--empty .clone-ai-flow-branch.is-failed {
  opacity: 0.7;
}

.clone-ai-flow-branches--empty .clone-ai-flow-branch.is-failed .clone-ai-flow-node {
  border-color: rgba(255, 90, 95, 0.3);
}

/* ── Status Overlay ── */
.clone-ai-flow-status {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  text-align: center;
  padding: 16px 24px;
  border: 1px solid #2c3038;
  border-radius: var(--radius-md, 14px);
  background: rgba(27, 29, 35, 0.85);
  backdrop-filter: blur(8px);
  width: min(100%, 480px);
}

.clone-ai-flow-status strong {
  color: #d8deed;
  font-size: 18px;
  font-weight: 900;
}

.clone-ai-flow-status span {
  color: #758096;
  font-size: 14px;
  font-weight: 600;
}

.clone-ai-flow-status .anticon {
  color: var(--accent);
}

/* ── Flowchart Responsive ── */
@media (max-width: 900px) {
  .clone-ai-flow-pipeline {
    flex-direction: column;
    align-items: center;
  }

  .clone-ai-flow-connector {
    display: none;
  }

  .clone-ai-flow-source {
    flex-direction: row;
    gap: 16px;
  }

  .clone-ai-flow-node--source {
    width: 100px;
    height: 100px;
  }

  .clone-ai-flow-branches {
    width: 100%;
  }

  .clone-ai-flow-branch {
    flex-wrap: wrap;
    justify-content: center;
  }

  .clone-ai-flow-node--result,
  .clone-ai-flow-node--output {
    width: 140px;
    height: 110px;
  }

  .clone-ai-flow-node--text {
    min-width: 100px;
  }
}

/* ── Scope to clone tool + video output ── */
.product-clone-page[data-tool="clone"] .clone-ai-flow-pipeline {
  width: min(100%, 1100px);
}

/* ═══════════════════════════════════════════════
   End Flowchart Pipeline Styles
   ═══════════════════════════════════════════════ */

.product-clone-page .clone-ai-input-wrapper {
  position: relative;
}

.image-mention-menu {
  position: absolute;
  z-index: 18;
  left: 12px;
  right: 60px;
  bottom: calc(100% + 8px);
  display: grid;
  max-height: 226px;
  overflow-y: auto;
  gap: 6px;
  border: 1px solid #303540;
  border-radius: 14px;
  background: #20232a;
  padding: 8px;
  box-shadow: 0 18px 42px rgb(0 0 0 / 36%);
  animation: image-mention-menu-rise 150ms ease both;
}

.image-mention-menu__item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 52px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #d8deed;
  padding: 5px 7px;
  text-align: left;
  cursor: pointer;
}

.image-mention-menu__item:hover,
.image-mention-menu__item:focus-visible {
  background: #17352a;
  outline: none;
}

.image-mention-menu__item img {
  width: 42px;
  height: 42px;
  border: 1px solid #3a4555;
  border-radius: 9px;
  background: #101115;
  object-fit: cover;
}

.image-mention-menu__item span {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.image-mention-menu__item strong,
.image-mention-menu__item em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.image-mention-menu__item strong {
  color: #eef2f6;
  font-size: 13px;
  font-weight: 900;
}

.image-mention-menu__item em,
.image-mention-menu__empty {
  color: #8f98a8;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.image-mention-menu__empty {
  padding: 10px 12px;
}

.product-clone-page[data-tool="clone"] .clone-ai-uploaded-file,
.product-clone-page[data-tool="set"] .product-set-thumb,
.product-set-thumb,
.product-clone-uploaded-thumb {
  overflow: visible;
}

.product-clone-page[data-tool="clone"] .clone-ai-uploaded-file > img,
.product-set-thumb > img,
.product-clone-uploaded-thumb > img {
  border-radius: inherit;
}

.product-clone-uploaded-thumb {
  position: relative;
  display: block;
  min-width: 0;
  overflow: visible;
  margin: 0;
  border: 1px solid #dfe5ee;
  border-radius: 10px;
  background: #f5f6f8;
  aspect-ratio: 1;
}

.product-clone-uploaded-thumb > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.uploaded-image-zoom {
  position: absolute;
  z-index: 70;
  left: 50%;
  bottom: calc(100% + 10px);
  display: block;
  width: min(230px, 58vw);
  max-height: 280px;
  border: 1px solid #3a4555;
  border-radius: 14px;
  background: #101115;
  padding: 8px;
  box-shadow: 0 22px 48px rgb(0 0 0 / 42%);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 8px) scale(0.96);
  transition:
    opacity 160ms ease,
    transform 160ms ease,
    visibility 160ms ease;
  visibility: hidden;
}

.uploaded-image-zoom img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 260px;
  border-radius: 10px;
  object-fit: contain;
}

.product-clone-page[data-tool="clone"] .clone-ai-uploaded-file:hover .uploaded-image-zoom,
.product-clone-page[data-tool="clone"] .clone-ai-uploaded-file:focus-within .uploaded-image-zoom,
.product-set-thumb:hover .uploaded-image-zoom,
.product-set-thumb:focus-within .uploaded-image-zoom,
.product-clone-uploaded-thumb:hover .uploaded-image-zoom,
.product-clone-uploaded-thumb:focus-within .uploaded-image-zoom,
.clone-ai-replicate-file:hover .uploaded-image-zoom,
.clone-ai-replicate-file:focus-within .uploaded-image-zoom {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
  visibility: visible;
}

@keyframes image-mention-menu-rise {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes clone-ai-arrow-pulse {
  0%,
  100% {
    opacity: 0.55;
    transform: translateX(0);
  }

  50% {
    opacity: 1;
    transform: translateX(5px);
  }
}

@media (max-width: 1280px) {
  .product-clone-page[data-tool="clone"] {
    --clone-settings-panel-width: 520px;
  }

  .product-clone-page[data-tool="clone"] > .product-clone-shell {
    grid-template-columns: var(--clone-settings-panel-width) minmax(0, 1fr);
  }

  .product-clone-page[data-tool="clone"] .clone-ai-preview {
    padding-inline: 30px;
  }

  .product-clone-page[data-tool="clone"] .clone-ai-preview-showcase {
    grid-template-columns: minmax(180px, 260px) 44px minmax(280px, 1fr);
  }

  .product-clone-page[data-tool="clone"] .clone-ai-bottom-input {
    left: 30px;
    right: 30px;
  }
}

/* Ecommerce route keeps the main floating sidebar visible, so offset the embedded AI art tool. */
.web-shell[data-view="ecommerce"] .product-clone-page[data-tool="clone"] {
  padding-left: 92px;
}

.web-shell[data-view="ecommerce"] .product-clone-page[data-tool="clone"] > .product-clone-shell {
  width: 100%;
}

@media (max-width: 860px) {
  .web-shell[data-view="ecommerce"] .product-clone-page[data-tool="clone"] {
    padding-left: 0;
  }

  .product-clone-page[data-tool="clone"] {
    --clone-settings-panel-width: 100%;
  }

  .product-clone-page[data-tool="clone"] > .product-clone-shell,
  .product-clone-page[data-tool="clone"].is-settings-collapsed > .product-clone-shell {
    grid-template-columns: 1fr;
  }

  .product-clone-page[data-tool="clone"].is-settings-collapsed .product-clone-panel {
    display: none;
  }

  .product-clone-page[data-tool="clone"] .clone-ai-preview {
    min-height: 640px;
    align-content: start;
    gap: 28px;
    padding: 86px 20px 132px;
  }

  .product-clone-page[data-tool="clone"] .clone-ai-preview-header {
    position: static;
    width: 100%;
    max-width: none;
  }

  .product-clone-page[data-tool="clone"] .clone-ai-empty-state {
    width: min(100%, 320px);
    min-height: 260px;
  }

  .product-clone-page[data-tool="clone"] .clone-ai-bottom-input {
    left: 20px;
    right: 20px;
    bottom: 24px;
  }

  .product-clone-page[data-tool="clone"] .clone-ai-settings-toggle,
  .product-clone-page[data-tool="clone"].is-settings-collapsed .clone-ai-settings-toggle {
    top: 18px;
    right: 18px;
    left: auto;
    transform: none;
  }

  .product-clone-page[data-tool="clone"] .clone-ai-settings-toggle:active {
    transform: scale(0.94);
  }
}

.product-clone-topbar {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  border-bottom: 1px solid #e5e7eb;
  background: #ffffff;
  padding: 10px 20px;
}

.product-clone-brand,
.product-clone-new-task,
.product-clone-back-to-more,
.product-clone-member {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.product-clone-back-to-more {
  gap: 6px;
  height: 34px;
  border: 0;
  border-radius: 8px;
  background: #f0f2f5;
  color: #111827;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.product-clone-brand {
  gap: 8px;
  min-width: 0;
  font-size: 16px;
}

.product-clone-brand__mark {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 6px;
  background: #111827;
  color: #ffffff;
  font-size: 10px;
  font-weight: 900;
}

.product-clone-new-task,
.product-clone-member {
  height: 34px;
  gap: 6px;
  border: 0;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.product-clone-new-task {
  padding: 0 14px;
  background: #f0f2f5;
  color: #111827;
}

.product-clone-member {
  padding: 0 12px;
  background: #ffe0cc;
  color: #8a3a12;
}

.product-clone-topbar__spacer {
  flex: 1;
}

.product-clone-shell {
  display: grid;
  grid-template-columns: 68px 400px minmax(0, 1fr);
  min-height: 0;
}

.product-clone-rail {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  border-right: 1px solid #e5e7eb;
  background: #ffffff;
  padding: 18px 10px;
}

.product-clone-rail button {
  display: grid;
  place-items: center;
  gap: 6px;
  min-height: 62px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #111827;
  font-size: 12px;
  cursor: pointer;
}

.product-clone-rail button .anticon {
  font-size: 20px;
}

.product-clone-rail button.is-active {
  background: #eef5ff;
  color: #0f57ff;
  font-weight: 800;
}

.product-clone-panel {
  display: grid;
  grid-template-rows: minmax(0, 1fr) 72px;
  min-width: 0;
  min-height: 0;
  border-right: 1px solid #e5e7eb;
  background: #ffffff;
}

.product-clone-panel__scroll {
  min-height: 0;
  overflow: auto;
  padding: 20px 16px 28px;
}

.product-clone-field {
  display: block;
  margin: 0 0 28px;
}

.product-clone-field h2 {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin: 0 0 12px;
  color: #111827;
  font-size: 14px;
  font-weight: 800;
}

.product-clone-field input {
  display: none;
}

.product-clone-upload-zone {
  display: grid;
  width: 100%;
  min-height: 104px;
  place-items: center;
  gap: 8px;
  border: 1px dashed #d9e0ec;
  border-radius: 12px;
  background: #ffffff;
  color: #111827;
  cursor: pointer;
}

.product-clone-upload-zone .anticon {
  font-size: 18px;
}

.product-clone-upload-zone strong {
  padding: 9px 14px;
  border-radius: 8px;
  background: #f3f5f8;
  font-size: 13px;
}

.product-clone-upload-zone span {
  color: #8a94a6;
  font-size: 13px;
}

.product-clone-thumb-row,
.product-clone-ref-grid {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.product-clone-thumb-row {
  grid-template-columns: repeat(3, 1fr);
}

.product-clone-thumb-row img,
.product-clone-ref-grid img {
  width: 100%;
  object-fit: cover;
  border-radius: 10px;
  transition: transform 250ms ease;
}

.product-clone-thumb-row img:hover,
.product-clone-ref-grid img:hover {
  transform: scale(1.03);
}

.product-clone-thumb-row img {
  aspect-ratio: 1;
}

.product-clone-segment {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-bottom: 16px;
  border-radius: 10px;
  background: #f1f3f6;
  padding: 2px;
}

.product-clone-segment button {
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #111827;
  font-weight: 700;
  cursor: pointer;
}

.product-clone-segment button.is-active {
  background: #ffffff;
  box-shadow: 0 1px 4px rgb(17 24 39 / 10%);
}

.product-clone-link-box {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) 58px;
  align-items: center;
  gap: 8px;
  height: 48px;
  border: 1px solid #dfe5ef;
  border-radius: 10px;
  padding: 0 8px 0 12px;
}

.product-clone-link-box input {
  display: block;
  min-width: 0;
  border: 0;
  outline: none;
  color: #111827;
  font-size: 13px;
}

.product-clone-link-box button {
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: #111827;
  color: #ffffff;
  font-weight: 800;
  cursor: pointer;
}

.product-clone-ref-grid {
  grid-template-columns: repeat(3, 1fr);
}

.product-clone-ref-grid figure {
  min-width: 0;
  margin: 0;
}

.product-clone-ref-grid img {
  aspect-ratio: 1.25;
}

.product-clone-ref-grid figcaption {
  margin-top: 4px;
  overflow: hidden;
  color: #6b7280;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-clone-mode-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.product-clone-mode-grid button {
  min-height: 110px;
  padding: 16px;
  border: 1px solid #eef0f4;
  border-radius: 10px;
  background: #f6f7f9;
  text-align: left;
  cursor: pointer;
}

.product-clone-mode-grid button.is-active {
  border-color: #2b6cff;
  background: #f8fbff;
}

.product-clone-mode-grid strong,
.product-clone-mode-grid span {
  display: block;
}

.product-clone-mode-grid strong {
  margin-bottom: 9px;
  font-size: 14px;
}

.product-clone-mode-grid span {
  color: #7b8495;
  font-size: 12px;
  line-height: 1.7;
}

.product-clone-field textarea {
  width: 100%;
  min-height: 82px;
  resize: vertical;
  border: 1px solid #dfe5ef;
  border-radius: 10px;
  outline: none;
  padding: 12px;
  color: #111827;
  font: inherit;
  font-size: 13px;
  line-height: 1.6;
}

.product-clone-select-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.product-clone-select-grid select {
  height: 38px;
  min-width: 0;
  border: 0;
  border-radius: 8px;
  background: #f2f4f7;
  color: #111827;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 700;
}

.product-clone-panel__footer {
  display: grid;
  align-items: center;
  gap: 8px;
  border-top: 1px solid #e5e7eb;
  padding: 12px 16px;
}

.product-clone-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  border: 0;
  border-radius: 8px;
  background: #2b6cff;
  color: #ffffff;
  font-weight: 900;
  cursor: pointer;
}

.product-clone-primary:disabled {
  background: #c7dcff;
  color: #ffffff;
  cursor: not-allowed;
}

.product-clone-primary--cancel {
  background: #303540;
  color: #eef2f6;
}

.product-clone-preview {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 36px;
  min-width: 0;
  min-height: 0;
  overflow: auto;
  background: #f5f6f8;
  padding: 48px;
}

.product-clone-preview__headline {
  text-align: center;
}

.product-clone-preview__headline h1 {
  margin: 0 0 10px;
  color: #111827;
  font-size: 38px;
  font-weight: 900;
  letter-spacing: 0;
}

.product-clone-preview__headline p {
  margin: 0;
  color: #647084;
  font-size: 16px;
}

.product-clone-demo-board {
  position: relative;
  display: grid;
  grid-template-columns: minmax(300px, 400px) 48px minmax(340px, 420px);
  align-items: center;
  gap: 34px;
  width: min(100%, 920px);
  border-radius: 24px;
  background: #ffffff;
  padding: 34px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.product-clone-source-card,
.product-clone-result-stack figure {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  background: #f2f4f7;
  transition: transform 250ms ease, box-shadow 250ms ease;
}

.product-clone-source-card:hover,
.product-clone-result-stack figure:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

.product-clone-source-card img,
.product-clone-result-stack img {
  display: block;
  width: 100%;
  aspect-ratio: 1.55;
  object-fit: cover;
  transition: transform 300ms ease;
}

.product-clone-source-card:hover img,
.product-clone-result-stack figure:hover img {
  transform: scale(1.02);
}

.product-clone-source-card span,
.product-clone-result-stack figcaption {
  position: absolute;
  top: 12px;
  right: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(6px);
  padding: 7px 13px;
  color: #111827;
  font-size: 12px;
  font-weight: 800;
}

.product-clone-product-chip {
  position: absolute;
  bottom: 30px;
  left: 104px;
  display: grid;
  width: 96px;
  height: 96px;
  place-items: center;
  overflow: hidden;
  border: 8px solid #ffffff;
  border-radius: 999px;
  background: #eef5ff;
  color: #111827;
  font-size: 12px;
  font-weight: 800;
}

.product-clone-product-chip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-clone-product-chip .anticon {
  font-size: 28px;
}

.product-clone-flow {
  display: grid;
  gap: 14px;
}

.product-clone-flow span {
  display: block;
  width: 44px;
  height: 18px;
  border-radius: 999px;
  background: #c6d0df;
  clip-path: polygon(0 28%, 58% 28%, 58% 0, 100% 50%, 58% 100%, 58% 72%, 0 72%);
}

.product-clone-result-stack {
  display: grid;
  gap: 12px;
}

.product-clone-result-stack figure {
  margin: 0;
}

.product-clone-preview__status {
  display: inline-grid;
  grid-template-columns: auto auto;
  align-items: center;
  gap: 6px 10px;
  min-width: min(100%, 520px);
  border-radius: 14px;
  background: #ffffff;
  padding: 14px 18px;
  color: #111827;
  font-weight: 800;
}

.product-clone-preview__status em {
  grid-column: 2;
  color: #7b8495;
  font-size: 12px;
  font-style: normal;
  font-weight: 600;
}

.product-clone-preview__status[data-state="done"] .anticon {
  color: #0b9f62;
}

/* Target-page alignment */
.product-clone-page {
  grid-template-rows: 80px minmax(0, 1fr);
  background: #f3f4f6;
}

.product-clone-topbar {
  min-height: 80px;
  gap: 12px;
  padding: 0 30px;
  border-bottom-color: #e6e9ef;
}

.product-clone-brand {
  gap: 12px;
  font-size: 25px;
  font-weight: 900;
}

.product-clone-brand__mark {
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
  width: 36px;
  height: 36px;
  padding: 6px;
  border-radius: 8px;
  background: #090d15;
}

.product-clone-brand__mark span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 3px;
}

.product-clone-brand__mark span:nth-child(1) {
  background: #ff5b6f;
}

.product-clone-brand__mark span:nth-child(2) {
  background: #28d46f;
}

.product-clone-brand__mark span:nth-child(3) {
  background: #7b61ff;
}

.product-clone-brand__mark span:nth-child(4) {
  background: #ffdd35;
}

.product-clone-new-task {
  height: 48px;
  padding: 0 22px;
  border-radius: 12px;
  background: #f3f5f8;
  font-size: 20px;
}

.product-clone-back-to-more {
  height: 48px;
  padding: 0 18px;
  border-radius: 12px;
  background: #f3f5f8;
  font-size: 18px;
}

.product-clone-member,
.product-clone-beans,
.product-clone-history,
.product-clone-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  border: 0;
  border-radius: 10px;
  font-size: 18px;
  font-weight: 900;
  cursor: pointer;
}

.product-clone-member {
  gap: 8px;
  padding: 0 18px;
  background: #ffd8be;
  color: #7b3413;
}

.product-clone-member__badge {
  display: block;
  width: 18px;
  height: 18px;
  border-radius: 5px 5px 9px 9px;
  background: #8a4b22;
  transform: rotate(-35deg);
}

.product-clone-beans {
  gap: 8px;
  min-width: 88px;
  background: #ffffff;
  box-shadow: inset 0 0 0 1px #dfe3ea;
  color: #111827;
}

.product-clone-beans__drop {
  display: block;
  width: 17px;
  height: 22px;
  border-radius: 13px 13px 13px 4px;
  background: #ffb178;
  transform: rotate(-25deg);
}

.product-clone-history {
  gap: 8px;
  min-width: 146px;
  background: #f3f5f8;
  color: #111827;
}

.product-clone-avatar {
  width: 52px;
  border-radius: 999px;
  background: #e1e3e7;
  color: #ffffff;
  font-size: 28px;
  box-shadow: inset 0 0 0 3px #d6d9de;
}

.product-clone-shell {
  grid-template-columns: 102px 600px minmax(0, 1fr);
}

.product-clone-rail {
  gap: 22px;
  padding: 30px 14px;
}

.product-clone-rail button {
  min-height: 88px;
  border-radius: 12px;
  color: #111827;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.25;
}

.product-clone-rail button .anticon {
  font-size: 31px;
}

.product-clone-rail button.is-active {
  background: #eaf4ff;
  color: #111827;
}

.product-clone-panel {
  grid-template-rows: minmax(0, 1fr) 111px;
}

.product-clone-panel__scroll {
  padding: 29px 47px 36px 24px;
  scrollbar-color: #8b8b8b #f2f3f5;
  scrollbar-width: auto;
}

.product-clone-panel__scroll::-webkit-scrollbar,
.product-clone-preview::-webkit-scrollbar {
  width: 16px;
}

.product-clone-panel__scroll::-webkit-scrollbar-track,
.product-clone-preview::-webkit-scrollbar-track {
  background: #f2f3f5;
}

.product-clone-panel__scroll::-webkit-scrollbar-thumb,
.product-clone-preview::-webkit-scrollbar-thumb {
  border: 4px solid #f2f3f5;
  border-radius: 999px;
  background: #8b8b8b;
}

.product-clone-field {
  margin-bottom: 42px;
}

.product-clone-field h2 {
  margin-bottom: 18px;
  font-size: 20px;
}

.product-clone-upload-zone {
  min-height: 155px;
  border-color: #dfe5ef;
  border-radius: 14px;
  background: #ffffff;
}

.product-clone-upload-zone .anticon {
  color: #8b97aa;
  font-size: 18px;
}

.product-clone-upload-zone strong {
  padding: 11px 18px;
  border-radius: 10px;
  background: #f3f5f8;
  font-size: 20px;
}

.product-clone-upload-zone span {
  color: #9098a6;
  font-size: 20px;
}

.product-clone-segment {
  height: 50px;
  margin-bottom: 16px;
  border-radius: 12px;
}

.product-clone-segment button {
  height: 46px;
  border-radius: 10px;
  font-size: 20px;
}

.product-clone-mode-grid {
  gap: 12px;
}

.product-clone-mode-grid button {
  min-height: 168px;
  padding: 24px 24px 20px;
  border-radius: 14px;
  background: #f2f3f5;
}

.product-clone-mode-grid button.is-active {
  border-color: #2b6cff;
  background: #f7fbff;
}

.product-clone-mode-grid strong {
  margin-bottom: 10px;
  font-size: 22px;
}

.product-clone-mode-grid span {
  color: #8c95a3;
  font-size: 18px;
  line-height: 1.55;
}

.product-clone-field textarea {
  min-height: 120px;
  border-radius: 12px;
  background: #ffffff;
  color: #111827;
  font-size: 18px;
}

.product-clone-field textarea::placeholder {
  color: #9aa3af;
}

.product-clone-select-grid {
  gap: 18px;
}

.product-clone-select-grid select {
  height: 52px;
  border-radius: 10px;
  background: #f2f3f6;
  color: #111827;
  font-size: 20px;
}

.product-clone-panel__footer {
  padding: 18px 24px;
}

.product-clone-primary {
  height: 66px;
  border-radius: 10px;
  background: #2b6cff;
  font-size: 22px;
}

.product-clone-primary:disabled {
  background: #c9ddff;
}

.product-clone-preview {
  position: relative;
  align-content: start;
  gap: 91px;
  overflow: auto;
  padding: 66px 0 48px 34px;
  background: #f3f4f6;
  scrollbar-color: #a2a2a2 #f3f4f6;
}

.product-clone-preview__headline h1 {
  margin-bottom: 18px;
  font-size: 48px;
  line-height: 1.12;
}

.product-clone-preview__headline p {
  color: #626b78;
  font-size: 24px;
}

.product-clone-demo-board {
  grid-template-columns: minmax(390px, 468px) 62px minmax(420px, 496px);
  gap: 44px;
  width: min(100%, 1168px);
  min-height: 664px;
  padding: 35px 36px;
  border-radius: 34px;
}

.product-clone-source-card,
.product-clone-result-stack figure {
  border-radius: 16px;
}

.product-clone-source-card img,
.product-clone-result-stack img {
  aspect-ratio: 1.58;
}

.product-clone-source-card span,
.product-clone-result-stack figcaption {
  top: 14px;
  right: 14px;
  padding: 8px 14px;
  font-size: 18px;
}

.product-clone-product-chip {
  bottom: 96px;
  left: 120px;
  width: 162px;
  height: 162px;
  border-width: 10px;
  color: #111827;
  font-size: 17px;
}

.product-clone-product-chip .anticon {
  color: #111827;
  font-size: 42px;
}

.product-clone-flow {
  gap: 24px;
}

.product-clone-flow span {
  width: 62px;
  height: 27px;
  background: #cbd4e1;
}

.product-clone-result-stack {
  gap: 12px;
}

.product-clone-help {
  position: absolute;
  right: 36px;
  bottom: 44px;
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  border: 1px solid #d9dde5;
  border-radius: 999px;
  background: #ffffff;
  color: #111827;
  font-size: 30px;
  box-shadow: 0 4px 14px rgb(17 24 39 / 10%);
  cursor: pointer;
}

.product-clone-page[data-tool="set"] {
  grid-template-rows: 54px minmax(0, 1fr);
  background: #f5f6f8;
}

.product-clone-page[data-tool="set"] .product-clone-topbar {
  min-height: 54px;
  gap: 8px;
  padding: 0 20px;
  border-bottom-color: #e8ebf0;
  background: #ffffff;
}

.product-clone-page[data-tool="set"] .product-clone-brand {
  gap: 8px;
  font-size: 19px;
}

.product-clone-page[data-tool="set"] .product-clone-brand__mark {
  gap: 3px;
  width: 26px;
  height: 26px;
  padding: 4px;
  border-radius: 7px;
}

.product-clone-page[data-tool="set"] .product-clone-new-task,
.product-clone-page[data-tool="set"] .product-clone-back-to-more,
.product-clone-page[data-tool="set"] .product-clone-member,
.product-clone-page[data-tool="set"] .product-clone-history {
  height: 34px;
  border-radius: 8px;
  font-size: 14px;
}

.product-clone-page[data-tool="set"] .product-clone-new-task,
.product-clone-page[data-tool="set"] .product-clone-back-to-more {
  padding: 0 12px;
}

.product-clone-page[data-tool="set"] .product-clone-member {
  padding: 0 14px;
}

.product-clone-page[data-tool="set"] .product-clone-member__badge {
  width: 14px;
  height: 14px;
  border-radius: 4px 4px 7px 7px;
}

.product-clone-page[data-tool="set"] .product-clone-beans {
  display: none;
}

.product-clone-page[data-tool="set"] .product-clone-history {
  min-width: 104px;
  padding: 0 12px;
}

.product-clone-page[data-tool="set"] .product-clone-avatar {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  font-size: 18px;
}

.product-clone-page[data-tool="set"] .product-clone-shell {
  grid-template-columns: 68px 400px minmax(0, 1fr);
}

.product-clone-page[data-tool="set"] .product-clone-rail {
  gap: 18px;
  padding: 18px 8px;
}

.product-clone-page[data-tool="set"] .product-clone-rail button {
  min-height: 54px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 800;
}

.product-clone-page[data-tool="set"] .product-clone-rail button .anticon {
  font-size: 22px;
}

.product-clone-page[data-tool="set"] .product-clone-panel {
  grid-template-rows: minmax(0, 1fr) 68px;
}

.product-clone-page[data-tool="set"] .product-clone-panel__scroll {
  padding: 20px 20px 24px;
  scrollbar-color: #a8adb6 #f5f6f8;
}

.product-clone-page[data-tool="set"] .product-clone-field {
  margin-bottom: 28px;
}

.product-clone-page[data-tool="set"] .product-clone-field h2 {
  width: 100%;
  margin-bottom: 12px;
  font-size: 14px;
}

.product-clone-page[data-tool="set"] .product-clone-upload-zone {
  min-height: 104px;
  gap: 12px;
  border: 2px dashed #dfe5ee;
  border-radius: 10px;
  background: #ffffff;
}

.product-clone-page[data-tool="set"] .product-clone-upload-zone strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: 9px;
  background: #f2f4f7;
  font-size: 14px;
}

.product-clone-page[data-tool="set"] .product-clone-upload-zone span {
  color: #7d8796;
  font-size: 14px;
}

.product-set-settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.product-set-settings-grid select {
  height: 34px;
  min-width: 0;
  border: 0;
  border-radius: 8px;
  outline: none;
  background: #f0f2f5;
  color: #111827;
  padding: 0 10px;
  font-size: 14px;
  font-weight: 700;
}

.product-set-requirement h2 {
  justify-content: flex-start;
}

.product-set-requirement h2 button {
  margin-left: auto;
  border: 0;
  border-radius: 7px;
  background: #e8f3ff;
  color: #1677ff;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.product-clone-page[data-tool="set"] .product-set-requirement textarea {
  min-height: 158px;
  border: 1px solid #dbe3ee;
  border-radius: 10px;
  background: #ffffff;
  padding: 12px;
  color: #111827;
  font-size: 14px;
  line-height: 1.55;
}

.product-set-structure-grid {
  display: grid;
  gap: 8px;
}

.product-set-structure-grid button {
  position: relative;
  display: grid;
  min-height: 70px;
  align-content: center;
  gap: 6px;
  border: 1px solid #e1e7f0;
  border-radius: 10px;
  background: #ffffff;
  padding: 13px 44px 13px 14px;
  color: #111827;
  text-align: left;
  cursor: pointer;
}

.product-set-structure-grid button > span {
  position: absolute;
  right: 16px;
  top: 50%;
  width: 16px;
  height: 16px;
  border: 1px solid #cbd3df;
  border-radius: 4px;
  background: #ffffff;
  transform: translateY(-50%);
}

.product-set-structure-grid button.is-active {
  border-color: #1677ff;
  box-shadow: inset 0 0 0 1px #1677ff;
}

.product-set-structure-grid button.is-active > span {
  border-color: #1677ff;
  background: #1677ff;
  box-shadow: inset 0 0 0 3px #ffffff;
}

.product-set-structure-grid strong,
.product-set-style-toggle strong {
  color: #111827;
  font-size: 14px;
  font-weight: 800;
}

.product-set-structure-grid em {
  color: #7d8796;
  font-size: 12px;
  font-style: normal;
  line-height: 1.35;
}

.product-set-count-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
  border-radius: 10px;
  background: #f7f8fa;
  padding: 10px;
}

.product-set-count-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 32px;
  color: #111827;
  font-size: 13px;
}

.product-set-count-row div {
  display: inline-grid;
  grid-template-columns: 28px 32px 28px;
  align-items: center;
  border-radius: 8px;
  background: #ffffff;
}

.product-set-count-row button {
  height: 28px;
  border: 0;
  background: transparent;
  color: #1677ff;
  font-size: 16px;
  font-weight: 900;
  cursor: pointer;
}

.product-set-count-row strong {
  text-align: center;
  font-size: 13px;
}

.product-set-style-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 44px;
  border: 0;
  border-radius: 9px;
  background: #f2f4f7;
  padding: 10px 12px;
  cursor: pointer;
}

.product-clone-page[data-tool="set"] .product-clone-panel__footer {
  padding: 12px 16px;
}

.product-clone-page[data-tool="set"] .product-clone-primary {
  height: 44px;
  border-radius: 9px;
  background: #5a9bff;
  font-size: 14px;
}

.product-clone-page[data-tool="set"] .product-clone-primary:disabled {
  background: #5a9bff;
  opacity: 0.72;
}

.product-clone-page[data-tool="set"] .product-clone-preview {
  align-content: center;
  justify-items: center;
  gap: 38px;
  padding: 44px 32px 44px;
  background: #f5f6f8;
}

.product-clone-page[data-tool="set"] .product-clone-preview__headline h1 {
  margin-bottom: 12px;
  font-size: 38px;
  line-height: 1.15;
}

.product-clone-page[data-tool="set"] .product-clone-preview__headline p {
  color: #4b5565;
  font-size: 16px;
}

.product-clone-page[data-tool="set"] .product-clone-preview__headline p span {
  color: #1677ff;
}

.product-set-demo-board {
  display: grid;
  grid-template-columns: minmax(300px, 420px) 44px minmax(340px, 1fr);
  align-items: center;
  gap: 28px;
  width: min(100%, 960px);
  min-height: 380px;
}

.product-set-demo-board figure {
  position: relative;
  overflow: hidden;
  margin: 0;
  border-radius: 14px;
  background: #ffffff;
  transition: transform 250ms ease, box-shadow 250ms ease;
}

.product-set-demo-board figure:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.product-set-demo-board img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 300ms ease;
}

.product-set-demo-board figure:hover img {
  transform: scale(1.03);
}

.product-set-demo-board figcaption {
  position: absolute;
  left: 12px;
  top: 12px;
  max-width: calc(100% - 24px);
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(6px);
  color: #111827;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-set-main-card {
  position: relative;
  height: 380px;
  border-radius: 16px;
  transition: transform 250ms ease, box-shadow 250ms ease;
}

.product-set-main-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.product-set-flow-arrow {
  width: 44px;
  height: 26px;
  border-radius: 999px;
  background: linear-gradient(90deg, #b8c3d1, #d7dde6);
  clip-path: polygon(0 28%, 58% 28%, 58% 0, 100% 50%, 58% 100%, 58% 72%, 0 72%);
}

.product-set-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.product-set-card-grid figure {
  height: 184px;
}

.product-set-generated-note {
  margin: -20px 0 0;
  border-radius: 999px;
  background: #ffffff;
  color: #1677ff;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 800;
}

.product-clone-page[data-tool="set"] .product-clone-help {
  right: 24px;
  bottom: 28px;
  width: 44px;
  height: 44px;
  font-size: 22px;
  box-shadow: none;
}

.product-set-hosting-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  background: rgba(17, 24, 39, 0.42);
}

.product-set-hosting-modal {
  display: grid;
  grid-template-columns: 320px 360px;
  overflow: hidden;
  width: min(92vw, 680px);
  min-height: 428px;
  border-radius: 22px;
  background: #ffffff;
}

.product-set-hosting-modal img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-set-hosting-content {
  position: relative;
  display: grid;
  align-content: start;
  padding: 28px 24px 24px;
}

.product-set-hosting-close {
  position: absolute;
  right: 18px;
  top: 18px;
  border: 0;
  background: transparent;
  color: #8a94a6;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.product-set-hosting-content h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 8px;
  color: #111827;
  font-size: 28px;
  line-height: 1.2;
}

.product-set-hosting-content h2 span {
  border-radius: 999px;
  background: #ffeef2;
  color: #e04868;
  padding: 3px 8px;
  font-size: 12px;
}

.product-set-hosting-content > strong {
  width: fit-content;
  margin-bottom: 20px;
  border-radius: 6px;
  background: #e8f3ff;
  color: #1677ff;
  padding: 5px 9px;
  font-size: 12px;
}

.product-set-hosting-content ul {
  display: grid;
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.product-set-hosting-content li {
  display: grid;
  gap: 6px;
}

.product-set-hosting-content b {
  color: #111827;
  font-size: 14px;
}

.product-set-hosting-content li span {
  color: #7d8796;
  font-size: 13px;
}

.product-set-hosting-confirm {
  align-self: end;
  height: 40px;
  margin-top: 26px;
  border: 0;
  border-radius: 10px;
  background: #18191b;
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

/* Product set target-page alignment */
.product-clone-page[data-tool="set"] {
  grid-template-rows: 80px minmax(0, 1fr);
  background: #f3f4f6;
}

.product-clone-page[data-tool="set"] .product-clone-topbar {
  min-height: 80px;
  gap: 12px;
  padding: 0 30px;
  border-bottom-color: #e6e9ef;
  background: #ffffff;
}

.product-clone-page[data-tool="set"] .product-clone-back-to-more,
.product-clone-page[data-tool="set"] .product-clone-new-task,
.product-clone-page[data-tool="set"] .product-clone-member,
.product-clone-page[data-tool="set"] .product-clone-history,
.product-clone-page[data-tool="set"] .product-clone-avatar {
  height: 48px;
  border: 0;
  border-radius: 10px;
  font-size: 18px;
  font-weight: 900;
  box-shadow: none;
}

.product-clone-page[data-tool="set"] .product-clone-back-to-more,
.product-clone-page[data-tool="set"] .product-clone-new-task {
  padding: 0 18px;
  background: #f3f5f8;
  color: #111827;
}

.product-clone-page[data-tool="set"] .product-clone-brand {
  gap: 12px;
  font-size: 25px;
  font-weight: 900;
}

.product-clone-page[data-tool="set"] .product-clone-brand__mark {
  gap: 4px;
  width: 36px;
  height: 36px;
  padding: 6px;
  border-radius: 8px;
}

.product-clone-page[data-tool="set"] .product-clone-member {
  gap: 8px;
  padding: 0 18px;
  background: #ffd8be;
  color: #7b3413;
}

.product-clone-page[data-tool="set"] .product-clone-member__badge {
  width: 18px;
  height: 18px;
  border-radius: 5px 5px 9px 9px;
}

.product-clone-page[data-tool="set"] .product-clone-history {
  min-width: 146px;
  padding: 0 18px;
  background: #f3f5f8;
  color: #111827;
}

.product-clone-page[data-tool="set"] .product-clone-avatar {
  width: 52px;
  border-radius: 999px;
  background: #e1e3e7;
  color: #ffffff;
  font-size: 28px;
  box-shadow: none;
}

.product-clone-page[data-tool="set"] .product-clone-shell {
  grid-template-columns: 102px 600px minmax(0, 1fr);
  background: #f3f4f6;
}

.product-clone-page[data-tool="set"] .product-clone-rail {
  gap: 22px;
  padding: 30px 14px;
  border-right-color: #e6e9ef;
  background: #ffffff;
}

.product-clone-page[data-tool="set"] .product-clone-rail button {
  min-height: 88px;
  border-radius: 12px;
  color: #111827;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.25;
}

.product-clone-page[data-tool="set"] .product-clone-rail button .anticon {
  font-size: 31px;
}

.product-clone-page[data-tool="set"] .product-clone-rail button.is-active {
  background: #eaf4ff;
  color: #111827;
}

.product-clone-page[data-tool="set"] .product-clone-panel {
  grid-template-rows: minmax(0, 1fr) 116px;
  border-right-color: #e6e9ef;
  background: #ffffff;
}

.product-clone-page[data-tool="set"] .product-clone-panel__scroll {
  padding: 34px 30px 44px;
  scrollbar-color: #b4b7bd #f3f4f6;
  scrollbar-width: auto;
}

.product-clone-page[data-tool="set"] .product-clone-field {
  margin-bottom: 44px;
}

.product-clone-page[data-tool="set"] .product-clone-field h2 {
  margin-bottom: 20px;
  color: #111827;
  font-size: 24px;
  line-height: 1.2;
}

.product-clone-page[data-tool="set"] .product-clone-upload-zone {
  min-height: 156px;
  gap: 18px;
  border: 2px dashed #dfe5ee;
  border-radius: 14px;
  background: #ffffff;
}

.product-clone-page[data-tool="set"] .product-clone-upload-zone strong {
  gap: 8px;
  padding: 13px 22px;
  border-radius: 11px;
  background: #f3f5f8;
  font-size: 20px;
}

.product-clone-page[data-tool="set"] .product-clone-upload-zone span {
  color: #8d96a4;
  font-size: 20px;
}

.product-clone-page[data-tool="set"] .product-set-settings-grid {
  gap: 18px;
}

.product-clone-page[data-tool="set"] .product-set-settings-grid select {
  height: 52px;
  border-radius: 10px;
  background: #f0f1f4;
  padding: 0 18px;
  color: #111827;
  font-size: 20px;
  font-weight: 600;
}

.product-clone-page[data-tool="set"] .product-set-requirement h2 button {
  padding: 10px 16px;
  border-radius: 9px;
  background: #e3f1ff;
  color: #1677ff;
  font-size: 18px;
}

.product-clone-page[data-tool="set"] .product-set-requirement textarea {
  min-height: 240px;
  border: 1px solid #dbe3ee;
  border-radius: 14px;
  background: #ffffff;
  padding: 18px;
  color: #111827;
  font-size: 20px;
  line-height: 1.48;
  box-shadow: none;
}

.product-clone-page[data-tool="set"] .product-set-structure-grid {
  gap: 14px;
}

.product-clone-page[data-tool="set"] .product-set-structure-grid button {
  min-height: 108px;
  gap: 12px;
  border: 1px solid #dfe5ee;
  border-radius: 16px;
  background: #ffffff;
  padding: 24px 64px 24px 28px;
  box-shadow: none;
}

.product-clone-page[data-tool="set"] .product-set-structure-grid button > span {
  right: 24px;
  width: 24px;
  height: 24px;
  border-radius: 6px;
}

.product-clone-page[data-tool="set"] .product-set-structure-grid button.is-active {
  border-color: #2b7cff;
  background: #ffffff;
  box-shadow: none;
}

.product-clone-page[data-tool="set"] .product-set-structure-grid button.is-active > span {
  border-color: #2b7cff;
  background: #2b7cff;
  box-shadow: inset 0 0 0 5px #ffffff;
}

.product-clone-page[data-tool="set"] .product-set-structure-grid strong,
.product-clone-page[data-tool="set"] .product-set-style-toggle strong {
  color: #111827;
  font-size: 24px;
  font-weight: 600;
}

.product-clone-page[data-tool="set"] .product-set-structure-grid em {
  color: #8a94a3;
  font-size: 20px;
  line-height: 1.35;
}

.product-clone-page[data-tool="set"] .product-set-count-list {
  gap: 12px;
  margin-top: 16px;
  border-radius: 14px;
  background: #f2f3f5;
  padding: 16px;
}

.product-clone-page[data-tool="set"] .product-set-count-row {
  min-height: 42px;
  font-size: 18px;
}

.product-clone-page[data-tool="set"] .product-set-count-row div {
  grid-template-columns: 36px 42px 36px;
  border-radius: 10px;
  background: #ffffff;
}

.product-clone-page[data-tool="set"] .product-set-count-row button {
  height: 36px;
  font-size: 20px;
}

.product-clone-page[data-tool="set"] .product-set-count-row strong {
  font-size: 18px;
}

.product-clone-page[data-tool="set"] .product-set-style-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  border: 0;
  border-radius: 12px;
  background: #f0f1f4;
  color: #111827;
  padding: 0 16px;
}

.product-clone-page[data-tool="set"] .product-set-style-toggle .anticon {
  color: #8fc8ff;
  font-size: 22px;
}

.product-clone-page[data-tool="set"] .product-set-style-toggle.is-active {
  background: #f0f1f4;
}

.product-clone-page[data-tool="set"] .product-clone-panel__footer {
  padding: 24px 30px;
}

.product-clone-page[data-tool="set"] .product-clone-primary {
  height: 70px;
  border-radius: 12px;
  background: #5a9bff;
  font-size: 24px;
}

.product-clone-page[data-tool="set"] .product-clone-primary:disabled {
  background: #b9d6ff;
  opacity: 1;
}

.product-clone-page[data-tool="set"] .product-clone-preview {
  align-content: start;
  justify-items: center;
  gap: 84px;
  padding: 88px 36px 56px;
  background: #f3f4f6;
  scrollbar-color: #b4b7bd #f3f4f6;
}

.product-clone-page[data-tool="set"] .product-clone-preview__headline h1 {
  margin-bottom: 22px;
  color: #111827;
  font-size: 56px;
  line-height: 1.12;
}

.product-clone-page[data-tool="set"] .product-clone-preview__headline p {
  color: #69717d;
  font-size: 24px;
}

.product-clone-page[data-tool="set"] .product-clone-preview__headline p span {
  color: #1f7aff;
}

.product-clone-page[data-tool="set"] .product-set-demo-board {
  grid-template-columns: minmax(380px, 1fr) 48px minmax(380px, 1fr);
  gap: 32px;
  width: min(100%, 1200px);
  min-height: 620px;
  border-radius: 32px;
  background: #ffffff;
  padding: 40px 34px;
}

.product-clone-page[data-tool="set"] .product-set-demo-board figure {
  border-radius: 18px;
  background: #f3f4f6;
  box-shadow: none;
}

.product-clone-page[data-tool="set"] .product-set-main-card {
  height: 540px;
  background: #ffffff;
}

.product-clone-page[data-tool="set"] .product-set-card-grid {
  gap: 20px;
}

.product-clone-page[data-tool="set"] .product-set-card-grid figure {
  height: 260px;
}

.product-clone-page[data-tool="set"] .product-set-demo-board figcaption {
  left: 14px;
  top: 14px;
  max-width: calc(100% - 28px);
  background: #ffffff;
  color: #111827;
  padding: 9px 16px;
  font-size: 16px;
  box-shadow: none;
}

.product-clone-page[data-tool="set"] .product-set-flow-arrow {
  width: 44px;
  height: 28px;
  background: #d7dde6;
}

.product-clone-page[data-tool="set"] .product-set-generated-note {
  background: #ffffff;
  color: #1677ff;
  box-shadow: none;
}

.product-clone-page[data-tool="set"] .product-clone-help {
  right: 36px;
  bottom: 44px;
  width: 64px;
  height: 64px;
  background: #ffffff;
  font-size: 30px;
  box-shadow: none;
}

@media (max-width: 1520px) {
  .product-clone-page[data-tool="set"] {
    grid-template-rows: 54px minmax(0, 1fr);
  }

  .product-clone-page[data-tool="set"] .product-clone-topbar {
    min-height: 54px;
    gap: 8px;
    padding: 0 20px;
  }

  .product-clone-page[data-tool="set"] .product-clone-back-to-more,
  .product-clone-page[data-tool="set"] .product-clone-new-task,
  .product-clone-page[data-tool="set"] .product-clone-member,
  .product-clone-page[data-tool="set"] .product-clone-history {
    height: 34px;
    border-radius: 8px;
    font-size: 14px;
  }

  .product-clone-page[data-tool="set"] .product-clone-brand {
    gap: 8px;
    font-size: 19px;
  }

  .product-clone-page[data-tool="set"] .product-clone-brand__mark {
    gap: 3px;
    width: 26px;
    height: 26px;
    padding: 4px;
    border-radius: 7px;
  }

  .product-clone-page[data-tool="set"] .product-clone-member__badge {
    width: 14px;
    height: 14px;
  }

  .product-clone-page[data-tool="set"] .product-clone-history {
    min-width: 104px;
  }

  .product-clone-page[data-tool="set"] .product-clone-avatar {
    width: 34px;
    height: 34px;
    font-size: 18px;
  }

  .product-clone-page[data-tool="set"] .product-clone-shell {
    grid-template-columns: 68px 400px minmax(0, 1fr);
  }

  .product-clone-page[data-tool="set"] .product-clone-rail {
    gap: 18px;
    padding: 18px 8px;
  }

  .product-clone-page[data-tool="set"] .product-clone-rail button {
    min-height: 54px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 800;
  }

  .product-clone-page[data-tool="set"] .product-clone-rail button .anticon {
    font-size: 22px;
  }

  .product-clone-page[data-tool="set"] .product-clone-panel {
    grid-template-rows: minmax(0, 1fr) 78px;
  }

  .product-clone-page[data-tool="set"] .product-clone-panel__scroll {
    padding: 20px 20px 24px;
  }

  .product-clone-page[data-tool="set"] .product-clone-field {
    margin-bottom: 28px;
  }

  .product-clone-page[data-tool="set"] .product-clone-field h2 {
    margin-bottom: 12px;
    font-size: 14px;
  }

  .product-clone-page[data-tool="set"] .product-clone-upload-zone {
    min-height: 104px;
    gap: 12px;
    border-radius: 10px;
  }

  .product-clone-page[data-tool="set"] .product-clone-upload-zone strong {
    padding: 9px 16px;
    border-radius: 9px;
    font-size: 14px;
  }

  .product-clone-page[data-tool="set"] .product-clone-upload-zone span {
    font-size: 14px;
  }

  .product-clone-page[data-tool="set"] .product-set-settings-grid {
    gap: 8px;
  }

  .product-clone-page[data-tool="set"] .product-set-settings-grid select {
    height: 34px;
    border-radius: 8px;
    padding: 0 10px;
    font-size: 14px;
    font-weight: 700;
  }

  .product-clone-page[data-tool="set"] .product-set-requirement h2 button {
    padding: 6px 10px;
    border-radius: 7px;
    font-size: 12px;
  }

  .product-clone-page[data-tool="set"] .product-set-requirement textarea {
    min-height: 158px;
    border-radius: 10px;
    padding: 12px;
    font-size: 14px;
  }

  .product-clone-page[data-tool="set"] .product-set-structure-grid button {
    min-height: 70px;
    gap: 6px;
    border-radius: 10px;
    padding: 13px 44px 13px 14px;
  }

  .product-clone-page[data-tool="set"] .product-set-structure-grid button > span {
    right: 16px;
    width: 16px;
    height: 16px;
    border-radius: 4px;
  }

  .product-clone-page[data-tool="set"] .product-set-structure-grid strong,
  .product-clone-page[data-tool="set"] .product-set-style-toggle strong {
    font-size: 14px;
    font-weight: 800;
  }

  .product-clone-page[data-tool="set"] .product-set-structure-grid em {
    font-size: 12px;
  }

  .product-clone-page[data-tool="set"] .product-set-style-toggle {
    min-height: 44px;
    border-radius: 9px;
  }

  .product-clone-page[data-tool="set"] .product-set-style-toggle .anticon {
    font-size: 16px;
  }

  .product-clone-page[data-tool="set"] .product-clone-panel__footer {
    padding: 12px 16px;
  }

  .product-clone-page[data-tool="set"] .product-clone-primary {
    height: 44px;
    border-radius: 9px;
    font-size: 14px;
  }

  .product-clone-page[data-tool="set"] .product-clone-preview {
    gap: 38px;
    padding: 44px 32px;
  }

  .product-clone-page[data-tool="set"] .product-clone-preview__headline h1 {
    margin-bottom: 12px;
    font-size: 38px;
  }

  .product-clone-page[data-tool="set"] .product-clone-preview__headline p {
    font-size: 16px;
  }

  .product-clone-page[data-tool="set"] .product-set-demo-board {
    grid-template-columns: 336px 40px 338px;
    gap: 24px;
    width: min(100%, 802px);
    min-height: 336px;
    border-radius: 22px;
    background: transparent;
    padding: 0;
  }

  .product-clone-page[data-tool="set"] .product-set-main-card {
    height: 336px;
  }

  .product-clone-page[data-tool="set"] .product-set-card-grid {
    gap: 12px;
  }

  .product-clone-page[data-tool="set"] .product-set-card-grid figure {
    height: 162px;
  }

  .product-clone-page[data-tool="set"] .product-set-demo-board figcaption {
    left: 12px;
    top: 12px;
    padding: 6px 10px;
    font-size: 12px;
  }

  .product-clone-page[data-tool="set"] .product-clone-help {
    right: 24px;
    bottom: 28px;
    width: 44px;
    height: 44px;
    font-size: 22px;
  }
}

.product-clone-page[data-tool="detail"] {
  grid-template-rows: 54px minmax(0, 1fr);
  background: #f5f6f8;
}

.product-clone-page[data-tool="detail"] .product-clone-topbar {
  min-height: 54px;
  gap: 8px;
  padding: 0 20px;
  border-bottom-color: #e8ebf0;
  background: #ffffff;
}

.product-clone-page[data-tool="detail"] .product-clone-brand {
  gap: 8px;
  font-size: 19px;
}

.product-clone-page[data-tool="detail"] .product-clone-brand__mark {
  gap: 3px;
  width: 26px;
  height: 26px;
  padding: 4px;
  border-radius: 7px;
}

.product-clone-page[data-tool="detail"] .product-clone-new-task,
.product-clone-page[data-tool="detail"] .product-clone-back-to-more,
.product-clone-page[data-tool="detail"] .product-clone-member,
.product-clone-page[data-tool="detail"] .product-clone-history {
  height: 34px;
  border-radius: 8px;
  font-size: 14px;
}

.product-clone-page[data-tool="detail"] .product-clone-new-task,
.product-clone-page[data-tool="detail"] .product-clone-back-to-more {
  padding: 0 12px;
}

.product-clone-page[data-tool="detail"] .product-clone-member {
  padding: 0 14px;
}

.product-clone-page[data-tool="detail"] .product-clone-member__badge {
  width: 14px;
  height: 14px;
  border-radius: 4px 4px 7px 7px;
}

.product-clone-page[data-tool="detail"] .product-clone-beans {
  display: none;
}

.product-clone-page[data-tool="detail"] .product-clone-history {
  min-width: 104px;
  padding: 0 12px;
}

.product-clone-page[data-tool="detail"] .product-clone-avatar {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  font-size: 18px;
}

.product-clone-page[data-tool="detail"] .product-clone-shell {
  grid-template-columns: 68px 480px minmax(0, 1fr);
}

.product-clone-page[data-tool="detail"] .product-clone-rail {
  gap: 18px;
  padding: 18px 8px;
}

.product-clone-page[data-tool="detail"] .product-clone-rail button {
  min-height: 54px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 800;
}

.product-clone-page[data-tool="detail"] .product-clone-rail button .anticon {
  font-size: 22px;
}

.product-clone-page[data-tool="detail"] .product-clone-panel {
  grid-template-rows: minmax(0, 1fr) 78px;
}

.product-clone-page[data-tool="detail"] .product-clone-panel__scroll {
  padding: 20px;
  scrollbar-color: #a8adb6 #f5f6f8;
}

.product-clone-page[data-tool="detail"] .product-clone-field {
  margin-bottom: 28px;
}

.product-clone-page[data-tool="detail"] .product-clone-field h2 {
  width: 100%;
  margin-bottom: 12px;
  font-size: 14px;
}

.product-clone-page[data-tool="detail"] .product-clone-upload-zone {
  min-height: 104px;
  gap: 12px;
  border: 2px dashed #dfe5ee;
  border-radius: 10px;
  background: #ffffff;
}

.product-clone-page[data-tool="detail"] .product-clone-upload-zone strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: 9px;
  background: #f2f4f7;
  font-size: 14px;
}

.product-clone-page[data-tool="detail"] .product-clone-upload-zone span {
  color: #7d8796;
  font-size: 14px;
}

.product-detail-settings-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.product-detail-settings-grid select {
  height: 34px;
  min-width: 0;
  border: 0;
  border-radius: 8px;
  outline: none;
  background: #f0f2f5;
  color: #111827;
  padding: 0 10px;
  font-size: 14px;
  font-weight: 700;
}

.product-detail-settings-grid select:nth-child(4) {
  grid-column: 1 / -1;
}

.product-detail-requirement h2 {
  justify-content: flex-start;
}

.product-detail-requirement h2 button {
  margin-left: auto;
  border: 0;
  border-radius: 7px;
  background: #e8f3ff;
  color: #1677ff;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.product-clone-page[data-tool="detail"] .product-detail-requirement textarea {
  min-height: 158px;
  border: 1px solid #dbe3ee;
  border-radius: 10px;
  background: #ffffff;
  padding: 12px;
  color: #111827;
  font-size: 14px;
  line-height: 1.55;
}

.product-detail-module-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.product-detail-module-grid button {
  display: grid;
  min-height: 76px;
  align-content: center;
  gap: 8px;
  border: 1px solid #e1e7f0;
  border-radius: 8px;
  background: #ffffff;
  padding: 14px 16px;
  color: #111827;
  text-align: left;
  cursor: pointer;
}

.product-detail-module-grid button.is-active {
  border-color: #1677ff;
  box-shadow: inset 0 0 0 1px #1677ff;
}

.product-detail-module-grid strong {
  font-size: 14px;
  font-weight: 800;
}

.product-detail-module-grid span {
  color: #7d8796;
  font-size: 12px;
  line-height: 1.35;
}

.product-clone-page[data-tool="detail"] .product-clone-panel__footer {
  padding: 12px 20px;
}

.product-clone-page[data-tool="detail"] .product-clone-primary {
  height: 50px;
  border-radius: 9px;
  background: #5a9bff;
  font-size: 16px;
}

.product-clone-page[data-tool="detail"] .product-clone-primary:disabled {
  background: #5a9bff;
  opacity: 0.92;
}

.product-clone-page[data-tool="detail"] .product-clone-preview {
  align-content: center;
  justify-items: center;
  gap: 54px;
  padding: 52px 32px 44px;
  background: #f5f6f8;
}

.product-clone-page[data-tool="detail"] .product-clone-preview__headline h1 {
  margin-bottom: 12px;
  font-size: 38px;
  line-height: 1.15;
}

.product-clone-page[data-tool="detail"] .product-clone-preview__headline p {
  color: #4b5565;
  font-size: 16px;
}

.product-clone-page[data-tool="detail"] .product-clone-preview__headline p span {
  color: #1677ff;
}

.product-detail-demo-board {
  display: grid;
  grid-template-columns: 104px 32px 94px 360px;
  align-items: center;
  gap: 14px;
  width: min(100%, 680px);
  min-height: 385px;
  border-radius: 22px;
  background: #ffffff;
  padding: 24px;
}

.product-detail-source-stack {
  display: grid;
  position: relative;
  gap: 4px;
  overflow: hidden;
  border-radius: 14px;
  background: #f3f6fb;
}

.product-detail-source-stack figure {
  margin: 0;
  overflow: hidden;
  background: #eef2f7;
}

.product-detail-source-stack img {
  display: block;
  width: 100%;
  height: 108px;
  object-fit: cover;
}

.product-detail-source-stack span,
.product-detail-long-result span,
.product-detail-grid-result span {
  position: absolute;
  left: 50%;
  bottom: 8px;
  transform: translateX(-50%);
  white-space: nowrap;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.62);
  color: #ffffff;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 800;
}

.product-detail-flow-arrow {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: #eef2f7;
  clip-path: polygon(0 32%, 55% 32%, 55% 8%, 100% 50%, 55% 92%, 55% 68%, 0 68%);
}

.product-detail-long-result {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: #eff4f8;
}

.product-detail-long-result img {
  display: block;
  width: 100%;
  height: 336px;
  object-fit: cover;
}

.product-detail-grid-result {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  overflow: hidden;
  border-radius: 14px;
}

.product-detail-grid-result img {
  display: block;
  width: 100%;
  height: 108px;
  object-fit: cover;
}

.product-clone-page[data-tool="detail"] .product-clone-help {
  right: 24px;
  bottom: 28px;
  width: 44px;
  height: 44px;
  font-size: 22px;
  box-shadow: none;
}

/* A+ detail target-page alignment */
.product-clone-page[data-tool="detail"] {
  grid-template-rows: 80px minmax(0, 1fr);
  background: #f3f4f6;
}

.product-clone-page[data-tool="detail"] .product-clone-topbar {
  min-height: 80px;
  gap: 12px;
  padding: 0 30px;
  border-bottom-color: #e6e9ef;
  background: #ffffff;
}

.product-clone-page[data-tool="detail"] .product-clone-back-to-more {
  display: none;
}

.product-clone-page[data-tool="detail"] .product-clone-brand {
  gap: 12px;
  font-size: 25px;
  font-weight: 900;
}

.product-clone-page[data-tool="detail"] .product-clone-brand__mark {
  gap: 4px;
  width: 36px;
  height: 36px;
  padding: 6px;
  border-radius: 8px;
}

.product-clone-page[data-tool="detail"] .product-clone-new-task {
  height: 48px;
  padding: 0 22px;
  border-radius: 12px;
  font-size: 20px;
}

.product-clone-page[data-tool="detail"] .product-clone-member,
.product-clone-page[data-tool="detail"] .product-clone-beans,
.product-clone-page[data-tool="detail"] .product-clone-history,
.product-clone-page[data-tool="detail"] .product-clone-batch,
.product-clone-page[data-tool="detail"] .product-clone-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  border: 0;
  border-radius: 10px;
  font-size: 18px;
  font-weight: 900;
  cursor: pointer;
}

.product-clone-page[data-tool="detail"] .product-clone-member {
  gap: 8px;
  padding: 0 18px;
  background: #ffd8be;
  color: #7b3413;
}

.product-clone-page[data-tool="detail"] .product-clone-member__badge {
  width: 18px;
  height: 18px;
  border-radius: 5px 5px 9px 9px;
}

.product-clone-page[data-tool="detail"] .product-clone-beans {
  gap: 8px;
  min-width: 88px;
  background: #ffffff;
  color: #111827;
  box-shadow: inset 0 0 0 1px #dfe3ea;
}

.product-clone-page[data-tool="detail"] .product-clone-batch {
  position: relative;
  gap: 8px;
  min-width: 146px;
  background: #f3f5f8;
  color: #111827;
}

.product-clone-batch__tag {
  position: absolute;
  right: -8px;
  top: -11px;
  border-radius: 999px;
  background: #ffeef2;
  color: #cb2445;
  padding: 2px 8px;
  font-size: 16px;
  line-height: 1.1;
}

.product-clone-page[data-tool="detail"] .product-clone-history {
  min-width: 146px;
  background: #f3f5f8;
  color: #111827;
}

.product-clone-page[data-tool="detail"] .product-clone-avatar {
  width: 52px;
  border-radius: 999px;
  background: #e1e3e7;
  color: #ffffff;
  font-size: 28px;
  box-shadow: inset 0 0 0 3px #d6d9de;
}

.product-clone-page[data-tool="detail"] .product-clone-shell {
  grid-template-columns: 102px 720px minmax(0, 1fr);
}

.product-clone-page[data-tool="detail"] .product-clone-rail {
  gap: 22px;
  padding: 30px 14px;
}

.product-clone-page[data-tool="detail"] .product-clone-rail button {
  min-height: 88px;
  border-radius: 12px;
  color: #111827;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.25;
}

.product-clone-page[data-tool="detail"] .product-clone-rail button .anticon {
  font-size: 31px;
}

.product-clone-page[data-tool="detail"] .product-clone-rail button.is-active {
  background: #eaf4ff;
  color: #111827;
}

.product-clone-page[data-tool="detail"] .product-clone-panel {
  grid-template-rows: minmax(0, 1fr) 116px;
}

.product-clone-page[data-tool="detail"] .product-clone-panel__scroll {
  padding: 34px 30px 44px;
  scrollbar-color: #b4b7bd #f3f4f6;
  scrollbar-width: auto;
}

.product-clone-page[data-tool="detail"] .product-clone-field {
  margin-bottom: 44px;
}

.product-clone-page[data-tool="detail"] .product-clone-field h2 {
  margin-bottom: 20px;
  font-size: 24px;
  line-height: 1.2;
}

.product-clone-page[data-tool="detail"] .product-clone-upload-zone {
  min-height: 156px;
  gap: 18px;
  border: 2px dashed #dfe5ee;
  border-radius: 14px;
  background: #ffffff;
}

.product-clone-page[data-tool="detail"] .product-clone-upload-zone strong {
  gap: 8px;
  padding: 13px 22px;
  border-radius: 11px;
  background: #f3f5f8;
  font-size: 20px;
}

.product-clone-page[data-tool="detail"] .product-clone-upload-zone span {
  max-width: 480px;
  color: #8d96a4;
  font-size: 20px;
}

.product-clone-page[data-tool="detail"] .product-detail-settings-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.product-clone-page[data-tool="detail"] .product-detail-settings-grid select {
  height: 52px;
  border-radius: 10px;
  padding: 0 14px;
  font-size: 20px;
  font-weight: 600;
}

.product-clone-page[data-tool="detail"] .product-detail-settings-grid select:nth-child(4) {
  grid-column: 1 / -1;
}

.product-clone-page[data-tool="detail"] .product-detail-requirement h2 button {
  padding: 10px 16px;
  border-radius: 9px;
  background: #e3f1ff;
  color: #1677ff;
  font-size: 18px;
}

.product-clone-page[data-tool="detail"] .product-detail-requirement textarea {
  min-height: 240px;
  border-radius: 14px;
  padding: 18px;
  font-size: 20px;
  line-height: 1.48;
}

.product-clone-page[data-tool="detail"] .product-detail-module-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.product-clone-page[data-tool="detail"] .product-detail-module-grid button {
  min-height: 116px;
  align-content: center;
  gap: 12px;
  border: 0;
  border-radius: 9px;
  background: #f2f3f5;
  padding: 24px 28px;
  color: #111827;
}

.product-clone-page[data-tool="detail"] .product-detail-module-grid button.is-active {
  border: 0;
  background: #eaf4ff;
  box-shadow: inset 0 0 0 2px #2b7cff;
}

.product-clone-page[data-tool="detail"] .product-detail-module-grid strong {
  font-size: 24px;
  font-weight: 600;
}

.product-clone-page[data-tool="detail"] .product-detail-module-grid span {
  color: #8a94a3;
  font-size: 20px;
  line-height: 1.35;
}

.product-clone-page[data-tool="detail"] .product-clone-panel__footer {
  padding: 24px 30px;
}

.product-clone-page[data-tool="detail"] .product-clone-primary {
  height: 70px;
  border-radius: 12px;
  background: #5a9bff;
  font-size: 24px;
}

.product-clone-page[data-tool="detail"] .product-clone-primary:disabled {
  background: #5a9bff;
  opacity: 0.96;
}

.product-clone-page[data-tool="detail"] .product-clone-preview {
  align-content: start;
  justify-items: center;
  gap: 84px;
  padding: 88px 36px 56px;
  background: #f3f4f6;
}

.product-clone-page[data-tool="detail"] .product-clone-preview__headline h1 {
  margin-bottom: 22px;
  font-size: 56px;
  line-height: 1.12;
}

.product-clone-page[data-tool="detail"] .product-clone-preview__headline p {
  color: #69717d;
  font-size: 24px;
}

.product-clone-page[data-tool="detail"] .product-clone-preview__headline p span {
  color: #1f7aff;
}

.product-clone-page[data-tool="detail"] .product-detail-demo-board {
  grid-template-columns: 156px 44px 140px 539px;
  gap: 28px;
  width: min(100%, 1010px);
  min-height: 576px;
  border-radius: 32px;
  background: #ffffff;
  padding: 37px 30px;
}

.product-clone-page[data-tool="detail"] .product-detail-source-stack {
  border-radius: 18px;
  background: #f3f6fb;
}

.product-clone-page[data-tool="detail"] .product-detail-source-stack img {
  height: 164px;
}

.product-clone-page[data-tool="detail"] .product-detail-flow-arrow {
  width: 44px;
  height: 28px;
  background: #d7dde6;
}

.product-clone-page[data-tool="detail"] .product-detail-long-result {
  border-radius: 18px;
}

.product-clone-page[data-tool="detail"] .product-detail-long-result img {
  height: 502px;
}

.product-clone-page[data-tool="detail"] .product-detail-grid-result {
  gap: 5px;
  border-radius: 18px;
}

.product-clone-page[data-tool="detail"] .product-detail-grid-result img {
  height: 164px;
}

.product-clone-page[data-tool="detail"] .product-detail-source-stack span,
.product-clone-page[data-tool="detail"] .product-detail-long-result span,
.product-clone-page[data-tool="detail"] .product-detail-grid-result span {
  bottom: 12px;
  padding: 8px 18px;
  font-size: 16px;
}

.product-clone-page[data-tool="detail"] .product-clone-help {
  right: 36px;
  bottom: 44px;
  width: 64px;
  height: 64px;
  font-size: 30px;
  box-shadow: 0 4px 14px rgb(17 24 39 / 10%);
}

.product-clone-page[data-tool="wear"] {
  grid-template-rows: 54px minmax(0, 1fr);
  background: #f5f6f8;
}

.product-clone-page[data-tool="wear"] .product-clone-topbar {
  min-height: 54px;
  gap: 8px;
  padding: 0 20px;
  border-bottom-color: #e8ebf0;
  background: #ffffff;
}

.product-clone-page[data-tool="wear"] .product-clone-brand {
  gap: 8px;
  font-size: 19px;
}

.product-clone-page[data-tool="wear"] .product-clone-brand__mark {
  gap: 3px;
  width: 26px;
  height: 26px;
  padding: 4px;
  border-radius: 7px;
}

.product-clone-page[data-tool="wear"] .product-clone-new-task {
  height: 34px;
  padding: 0 14px;
  border-radius: 8px;
  font-size: 14px;
}

.product-clone-page[data-tool="wear"] .product-clone-back-to-more {
  height: 34px;
  padding: 0 12px;
  border-radius: 8px;
  font-size: 14px;
}

.product-clone-page[data-tool="wear"] .product-clone-member {
  height: 34px;
  padding: 0 14px;
  border-radius: 8px;
  font-size: 14px;
}

.product-clone-page[data-tool="wear"] .product-clone-member__badge {
  width: 14px;
  height: 14px;
  border-radius: 4px 4px 7px 7px;
}

.product-clone-page[data-tool="wear"] .product-clone-beans,
.product-clone-page[data-tool="wear"] .product-clone-history {
  display: none;
}

.product-clone-page[data-tool="wear"] .product-clone-avatar {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  font-size: 18px;
}

.product-clone-page[data-tool="wear"] .product-clone-shell {
  grid-template-columns: 68px 400px minmax(0, 1fr);
}

.product-clone-page[data-tool="wear"] .product-clone-rail {
  gap: 18px;
  padding: 18px 8px;
}

.product-clone-page[data-tool="wear"] .product-clone-rail button {
  min-height: 54px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 800;
}

.product-clone-page[data-tool="wear"] .product-clone-rail button .anticon {
  font-size: 22px;
}

.product-clone-page[data-tool="wear"] .product-clone-panel {
  grid-template-rows: minmax(0, 1fr) 78px;
}

.product-clone-page[data-tool="wear"] .product-clone-panel__scroll {
  padding: 20px 20px 24px;
  scrollbar-color: #a8adb6 #f5f6f8;
}

.product-clone-page[data-tool="wear"] .product-clone-field {
  margin-bottom: 24px;
}

.product-clone-page[data-tool="wear"] .product-clone-field h2 {
  margin-bottom: 12px;
  font-size: 14px;
}

.product-clone-page[data-tool="wear"] .product-clone-upload-zone {
  min-height: 130px;
  gap: 16px;
  border: 2px dashed #dfe5ee;
  border-radius: 10px;
  background: #ffffff;
}

.product-clone-page[data-tool="wear"] .product-clone-upload-zone strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: 9px;
  background: #f2f4f7;
  font-size: 14px;
}

.product-clone-page[data-tool="wear"] .product-clone-upload-zone span {
  max-width: 300px;
  color: #7d8796;
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
}

.product-try-on-thumb-row {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.product-clone-page[data-tool="wear"] .product-clone-segment {
  height: 34px;
  margin-bottom: 16px;
  border-radius: 8px;
  background: #f0f2f5;
}

.product-clone-page[data-tool="wear"] .product-clone-segment button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 30px;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 600;
}

.product-clone-model-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.product-clone-model-grid select {
  height: 34px;
  min-width: 0;
  border: 0;
  border-radius: 8px;
  outline: none;
  background: #f0f2f5;
  color: #111827;
  padding: 0 10px;
  font-size: 14px;
  font-weight: 700;
}

.product-try-on-textarea-label {
  display: block;
  margin-top: 16px;
}

.product-try-on-textarea-label span {
  display: block;
  margin-bottom: 10px;
  color: #111827;
  font-size: 14px;
  font-weight: 500;
}

.product-clone-page[data-tool="wear"] .product-clone-field textarea,
.product-try-on-textarea-label textarea {
  min-height: 80px;
  border-color: #dbe3ee;
  border-radius: 10px;
  padding: 12px;
  background: #ffffff;
  font-size: 14px;
  line-height: 1.6;
}

.product-clone-model-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  height: 40px;
  margin-top: 16px;
  border: 0;
  border-radius: 9px;
  background: #e3f1ff;
  color: #1677ff;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.product-clone-model-button:disabled {
  color: #6aa8ff;
  cursor: not-allowed;
}

.product-try-on-library {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.product-try-on-library button {
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 10px;
  background: #f2f4f7;
  padding: 0;
  cursor: pointer;
}

.product-try-on-library button.is-active {
  border-color: #5b9cff;
}

.product-try-on-library img {
  display: block;
  width: 100%;
  aspect-ratio: 0.76;
  object-fit: cover;
}

.product-clone-scene-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.product-clone-scene-grid button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 49px;
  min-width: 0;
  border: 0;
  border-radius: 8px;
  background: #f2f4f7;
  color: #111827;
  padding: 0 12px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.product-clone-scene-grid button span {
  display: block;
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  border: 1px solid #cfd6e2;
  border-radius: 3px;
  background: #ffffff;
}

.product-clone-scene-grid button.is-active {
  background: #e9f3ff;
  color: #1677ff;
}

.product-clone-scene-grid button.is-active span {
  border-color: #1677ff;
  background: #1677ff;
  box-shadow: inset 0 0 0 3px #ffffff;
}

.product-try-on-scene-field {
  margin-top: -4px;
}

.product-clone-switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 64px;
  border: 0;
  border-radius: 10px;
  background: #f2f4f7;
  padding: 12px 14px;
  text-align: left;
  cursor: pointer;
}

.product-clone-switch-row > span:first-child {
  display: grid;
  gap: 4px;
}

.product-clone-switch-row strong {
  color: #111827;
  font-size: 14px;
}

.product-clone-switch-row em {
  color: #7d8796;
  font-size: 12px;
  font-style: normal;
}

.product-clone-switch {
  display: inline-flex;
  align-items: center;
  width: 42px;
  height: 24px;
  border-radius: 999px;
  background: #cbd3df;
  padding: 2px;
}

.product-clone-switch span {
  display: block;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: #ffffff;
  transition: transform 0.16s ease;
}

.product-clone-switch.is-on {
  background: #2b7cff;
}

.product-clone-switch.is-on span {
  transform: translateX(18px);
}

.product-clone-ratio-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.product-clone-ratio-row button {
  height: 38px;
  border: 0;
  border-radius: 8px;
  background: #f2f4f7;
  color: #111827;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.product-clone-ratio-row button.is-active {
  background: #e8f2ff;
  color: #1677ff;
}

.product-clone-page[data-tool="wear"] .product-clone-panel__footer {
  padding: 12px 20px;
}

.product-clone-page[data-tool="wear"] .product-clone-primary {
  height: 50px;
  border-radius: 9px;
  background: #5a9bff;
  font-size: 16px;
}

.product-clone-page[data-tool="wear"] .product-clone-primary:disabled {
  background: #5a9bff;
  opacity: 0.92;
}

.product-clone-page[data-tool="wear"] .product-clone-preview {
  align-content: center;
  justify-items: center;
  gap: 54px;
  padding: 52px 32px 44px;
  background: #f5f6f8;
}

.product-clone-page[data-tool="wear"] .product-clone-preview__headline h1 {
  margin-bottom: 12px;
  font-size: 38px;
  line-height: 1.15;
}

.product-clone-page[data-tool="wear"] .product-clone-preview__headline p {
  color: #4b5565;
  font-size: 16px;
}

.product-try-on-demo-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  width: min(100%, 766px);
  min-height: 385px;
  border-radius: 22px;
  background: #ffffff;
  padding: 24px;
}

.product-try-on-card {
  display: grid;
  grid-template-rows: auto 70px 26px minmax(0, 1fr);
  align-items: center;
  min-width: 0;
  overflow: hidden;
  border-radius: 12px;
  background: #eef3f5;
  padding: 32px 12px 24px;
  text-align: center;
}

.product-try-on-card h2 {
  margin: 0 0 18px;
  font-size: 20px;
  font-weight: 900;
  line-height: 1.2;
}

.product-try-on-card--red h2 {
  color: #d83c42;
}

.product-try-on-card--brown h2 {
  color: #7a5739;
}

.product-try-on-card--gold h2 {
  color: #b57914;
}

.product-try-on-inputs {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.product-try-on-input-group {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.product-try-on-inputs img {
  display: block;
  width: 56px;
  height: 70px;
  border-radius: 8px;
  background: #ffffff;
  object-fit: cover;
}

.product-try-on-plus {
  color: #a9b4c2;
  font-size: 24px;
  font-weight: 600;
}

.product-try-on-arrow {
  width: 18px;
  height: 18px;
  justify-self: center;
  border-right: 4px solid #aeb9c7;
  border-bottom: 4px solid #aeb9c7;
  transform: rotate(45deg);
}

.product-try-on-results {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px;
  align-self: end;
  overflow: hidden;
  border-radius: 8px;
}

.product-try-on-results img {
  display: block;
  width: 100%;
  height: 152px;
  object-fit: cover;
}

.product-try-on-generated {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  width: min(100%, 820px);
  border-radius: 20px;
  background: #ffffff;
  padding: 16px;
}

.product-try-on-generated figure {
  position: relative;
  overflow: hidden;
  margin: 0;
  border-radius: 14px;
  background: #edf1f6;
  transition: transform 250ms ease, box-shadow 250ms ease;
}

.product-try-on-generated figure:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

.product-try-on-generated img {
  display: block;
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 300ms ease;
}

.product-try-on-generated figure:hover img {
  transform: scale(1.03);
}

.product-try-on-generated figcaption {
  position: absolute;
  left: 10px;
  bottom: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(6px);
  padding: 6px 12px;
  color: #111827;
  font-size: 12px;
  font-weight: 800;
}

.product-clone-page[data-tool="wear"] .product-clone-help {
  right: 24px;
  bottom: 28px;
  width: 44px;
  height: 44px;
  font-size: 22px;
  box-shadow: none;
}

/* Clothing try-on target-page alignment */
.product-clone-page[data-tool="wear"] {
  grid-template-rows: 80px minmax(0, 1fr);
  background: #f3f4f6;
}

.product-clone-page[data-tool="wear"] .product-clone-topbar {
  min-height: 80px;
  gap: 12px;
  padding: 0 30px;
  border-bottom-color: #e6e9ef;
  background: #ffffff;
}

.product-clone-page[data-tool="wear"] .product-clone-back-to-more {
  display: none;
}

.product-clone-page[data-tool="wear"] .product-clone-brand {
  gap: 12px;
  font-size: 25px;
  font-weight: 900;
}

.product-clone-page[data-tool="wear"] .product-clone-brand__mark {
  gap: 4px;
  width: 36px;
  height: 36px;
  padding: 6px;
  border-radius: 8px;
}

.product-clone-page[data-tool="wear"] .product-clone-new-task {
  height: 48px;
  padding: 0 22px;
  border-radius: 12px;
  font-size: 20px;
}

.product-clone-page[data-tool="wear"] .product-clone-member,
.product-clone-page[data-tool="wear"] .product-clone-beans,
.product-clone-page[data-tool="wear"] .product-clone-history,
.product-clone-page[data-tool="wear"] .product-clone-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  border: 0;
  border-radius: 10px;
  font-size: 18px;
  font-weight: 900;
  cursor: pointer;
}

.product-clone-page[data-tool="wear"] .product-clone-member {
  gap: 8px;
  padding: 0 18px;
  background: #ffd8be;
  color: #7b3413;
}

.product-clone-page[data-tool="wear"] .product-clone-member__badge {
  width: 18px;
  height: 18px;
  border-radius: 5px 5px 9px 9px;
}

.product-clone-page[data-tool="wear"] .product-clone-beans {
  gap: 8px;
  min-width: 88px;
  background: #ffffff;
  color: #111827;
  box-shadow: inset 0 0 0 1px #dfe3ea;
}

.product-clone-page[data-tool="wear"] .product-clone-history {
  gap: 8px;
  min-width: 146px;
  background: #f3f5f8;
  color: #111827;
}

.product-clone-page[data-tool="wear"] .product-clone-avatar {
  width: 52px;
  border-radius: 999px;
  background: #e1e3e7;
  color: #ffffff;
  font-size: 28px;
  box-shadow: inset 0 0 0 3px #d6d9de;
}

.product-clone-page[data-tool="wear"] .product-clone-shell {
  grid-template-columns: 102px 600px minmax(0, 1fr);
}

.product-clone-page[data-tool="wear"] .product-clone-rail {
  gap: 22px;
  padding: 30px 14px;
}

.product-clone-page[data-tool="wear"] .product-clone-rail button {
  min-height: 88px;
  border-radius: 12px;
  color: #111827;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.25;
}

.product-clone-page[data-tool="wear"] .product-clone-rail button .anticon {
  font-size: 31px;
}

.product-clone-page[data-tool="wear"] .product-clone-rail button.is-active {
  background: #eaf4ff;
  color: #111827;
}

.product-clone-page[data-tool="wear"] .product-clone-panel {
  grid-template-rows: minmax(0, 1fr) 116px;
}

.product-clone-page[data-tool="wear"] .product-clone-panel__scroll {
  padding: 34px 30px 44px;
  scrollbar-color: #b4b7bd #f3f4f6;
  scrollbar-width: auto;
}

.product-clone-page[data-tool="wear"] .product-clone-field {
  margin-bottom: 42px;
}

.product-clone-page[data-tool="wear"] .product-clone-field h2 {
  margin-bottom: 20px;
  font-size: 24px;
  line-height: 1.2;
}

.product-clone-page[data-tool="wear"] .product-clone-upload-zone {
  min-height: 194px;
  gap: 18px;
  border: 2px dashed #dfe5ee;
  border-radius: 14px;
  background: #ffffff;
}

.product-clone-page[data-tool="wear"] .product-clone-upload-zone strong {
  gap: 8px;
  padding: 13px 22px;
  border-radius: 11px;
  background: #f3f5f8;
  font-size: 20px;
}

.product-clone-page[data-tool="wear"] .product-clone-upload-zone span {
  max-width: 480px;
  color: #8d96a4;
  font-size: 20px;
}

.product-clone-page[data-tool="wear"] .product-clone-segment {
  height: 50px;
  margin-bottom: 24px;
  border-radius: 12px;
  background: #f0f2f5;
}

.product-clone-page[data-tool="wear"] .product-clone-segment button {
  height: 46px;
  border-radius: 10px;
  font-size: 20px;
  font-weight: 700;
}

.product-clone-page[data-tool="wear"] .product-clone-model-grid {
  gap: 12px;
}

.product-clone-page[data-tool="wear"] .product-clone-model-grid select {
  height: 52px;
  border-radius: 10px;
  padding: 0 14px;
  font-size: 20px;
}

.product-clone-page[data-tool="wear"] .product-try-on-textarea-label {
  margin-top: 24px;
}

.product-clone-page[data-tool="wear"] .product-try-on-textarea-label span {
  margin-bottom: 14px;
  color: #69717d;
  font-size: 20px;
}

.product-clone-page[data-tool="wear"] .product-clone-field textarea,
.product-clone-page[data-tool="wear"] .product-try-on-textarea-label textarea {
  min-height: 120px;
  border: 1px solid #dbe3ee;
  border-radius: 12px;
  padding: 16px;
  background: #ffffff;
  font-size: 20px;
  line-height: 1.45;
}

.product-clone-page[data-tool="wear"] .product-clone-model-button {
  height: 56px;
  margin-top: 24px;
  border-radius: 12px;
  background: #e3f1ff;
  color: #1677ff;
  font-size: 20px;
}

.product-clone-page[data-tool="wear"] .product-clone-scene-grid {
  gap: 12px;
}

.product-clone-page[data-tool="wear"] .product-clone-scene-grid button {
  height: 72px;
  gap: 14px;
  border-radius: 8px;
  background: #f2f3f5;
  padding: 0 18px;
  font-size: 20px;
  font-weight: 600;
}

.product-clone-page[data-tool="wear"] .product-clone-scene-grid button span {
  width: 24px;
  height: 24px;
  border-color: #cbd3df;
  border-radius: 5px;
}

.product-clone-page[data-tool="wear"] .product-try-on-scene-field {
  margin-top: 0;
}

.product-clone-page[data-tool="wear"] .product-clone-switch-row {
  min-height: 100px;
  border-radius: 12px;
  background: #f2f3f5;
  padding: 22px 24px;
}

.product-clone-page[data-tool="wear"] .product-clone-switch-row strong {
  font-size: 22px;
  font-weight: 700;
}

.product-clone-page[data-tool="wear"] .product-clone-switch-row em {
  color: #8a94a3;
  font-size: 18px;
}

.product-clone-page[data-tool="wear"] .product-clone-switch {
  width: 52px;
  height: 32px;
  background: #e1e5eb;
  padding: 3px;
}

.product-clone-page[data-tool="wear"] .product-clone-switch span {
  width: 26px;
  height: 26px;
  box-shadow: 0 2px 8px rgb(17 24 39 / 18%);
}

.product-clone-page[data-tool="wear"] .product-clone-switch.is-on span {
  transform: translateX(20px);
}

.product-clone-page[data-tool="wear"] .product-clone-ratio-row {
  height: 60px;
  gap: 0;
  border-radius: 14px;
  background: #f2f3f5;
  padding: 4px;
}

.product-clone-page[data-tool="wear"] .product-clone-ratio-row button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 52px;
  border-radius: 12px;
  background: transparent;
  color: #4b5565;
  font-size: 18px;
  font-weight: 600;
}

.product-clone-page[data-tool="wear"] .product-clone-ratio-row button::before {
  content: "";
  display: block;
  width: 10px;
  height: 18px;
  border: 2px solid currentColor;
  border-radius: 3px;
}

.product-clone-page[data-tool="wear"] .product-clone-ratio-row button:nth-child(2)::before {
  width: 14px;
  height: 14px;
}

.product-clone-page[data-tool="wear"] .product-clone-ratio-row button.is-active {
  background: #ffffff;
  color: #111827;
  box-shadow: 0 1px 5px rgb(17 24 39 / 8%);
}

.product-clone-page[data-tool="wear"] .product-clone-panel__footer {
  padding: 24px 30px;
}

.product-clone-page[data-tool="wear"] .product-clone-primary {
  height: 70px;
  border-radius: 12px;
  background: #5a9bff;
  font-size: 24px;
}

.product-clone-page[data-tool="wear"] .product-clone-preview {
  align-content: start;
  justify-items: center;
  gap: 84px;
  padding: 88px 36px 56px;
  background: #f3f4f6;
}

.product-clone-page[data-tool="wear"] .product-clone-preview__headline h1 {
  margin-bottom: 22px;
  font-size: 56px;
  line-height: 1.12;
}

.product-clone-page[data-tool="wear"] .product-clone-preview__headline p {
  color: #69717d;
  font-size: 24px;
}

.product-clone-page[data-tool="wear"] .product-try-on-demo-board {
  gap: 18px;
  width: min(100%, 1100px);
  min-height: 576px;
  border-radius: 32px;
  background: #ffffff;
  padding: 37px;
}

.product-clone-page[data-tool="wear"] .product-try-on-card {
  grid-template-rows: auto 118px 44px minmax(0, 1fr);
  border-radius: 20px;
  background: #eef3f5;
  padding: 48px 0 36px;
}

.product-clone-page[data-tool="wear"] .product-try-on-card h2 {
  margin-bottom: 28px;
  font-size: 30px;
}

.product-clone-page[data-tool="wear"] .product-try-on-inputs img {
  width: 105px;
  height: 105px;
  border-radius: 10px;
}

.product-clone-page[data-tool="wear"] .product-try-on-plus {
  color: #a9b4c2;
  font-size: 32px;
}

.product-clone-page[data-tool="wear"] .product-try-on-arrow {
  width: 28px;
  height: 28px;
  border-right-width: 6px;
  border-bottom-width: 6px;
}

.product-clone-page[data-tool="wear"] .product-try-on-results {
  gap: 3px;
  border-radius: 10px;
}

.product-clone-page[data-tool="wear"] .product-try-on-results img {
  height: 228px;
}

.product-clone-page[data-tool="wear"] .product-try-on-generated {
  width: min(100%, 1100px);
  border-radius: 24px;
  padding: 18px;
}

.product-clone-page[data-tool="wear"] .product-clone-help {
  right: 36px;
  bottom: 44px;
  width: 64px;
  height: 64px;
  font-size: 30px;
  box-shadow: 0 4px 14px rgb(17 24 39 / 10%);
}

.product-clone-empty-panel {
  display: grid;
  min-height: 340px;
  place-items: center;
  align-content: center;
  gap: 10px;
  color: #7b8495;
  text-align: center;
}

.product-clone-empty-panel > span {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 14px;
  background: #f2f4f7;
  color: #111827;
  font-size: 28px;
}

.product-clone-empty-panel h2 {
  margin: 0;
  color: #111827;
  font-size: 22px;
}

.product-clone-empty-panel p {
  max-width: 260px;
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
}

@media (max-width: 1180px) {
  .product-clone-shell {
    grid-template-columns: 64px 360px minmax(0, 1fr);
  }

  .product-clone-demo-board {
    grid-template-columns: 1fr;
    max-width: 560px;
  }

  .product-clone-flow {
    display: none;
  }

  .product-clone-product-chip {
    left: 52px;
  }

  .product-try-on-demo-board {
    grid-template-columns: 1fr;
    max-width: 360px;
  }
}

@media (max-width: 860px) {
  .product-clone-page {
    height: auto;
    min-height: 100%;
    overflow: auto;
  }

  .product-clone-shell {
    grid-template-columns: 1fr;
  }

  .product-clone-rail {
    flex-direction: row;
    overflow-x: auto;
    border-right: 0;
    border-bottom: 1px solid #e5e7eb;
  }

  .product-clone-rail button {
    min-width: 82px;
  }

  .product-clone-panel {
    min-height: 680px;
    border-right: 0;
  }

  .product-clone-page[data-tool="wear"] .product-clone-shell {
    grid-template-columns: 1fr;
  }

  .product-try-on-generated {
    grid-template-columns: 1fr;
  }
}

.product-clone-page,
.product-clone-page[data-tool="set"],
.product-clone-page[data-tool="detail"],
.product-clone-page[data-tool="wear"],
.product-clone-page[data-tool="clone"] {
  grid-template-rows: minmax(0, 1fr);
}

.product-clone-page > .product-clone-shell {
  min-height: 0;
  height: 100%;
}

.product-clone-page[data-tool="set"] :is(
  .product-set-upload-section,
  .product-set-settings-section,
  .product-set-detail-section
) {
  margin-bottom: 18px;
  border: 1px solid #dfe5ee;
  border-radius: 12px;
  background: #ffffff;
  padding: 16px;
  box-shadow: none;
}

.product-clone-page[data-tool="set"] :is(
  .product-set-upload-section,
  .product-set-settings-section,
  .product-set-detail-section
) h2 {
  margin-bottom: 14px;
}

.product-set-setting-block {
  display: grid;
  gap: 10px;
}

.product-set-setting-block + .product-set-setting-block {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #e5eaf1;
}

.product-set-setting-title {
  display: block;
  color: #596272;
  font-size: 13px;
  font-weight: 800;
}

.product-set-output-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.product-set-output-grid button {
  height: 38px;
  min-width: 0;
  border: 1px solid #dfe5ee;
  border-radius: 9px;
  background: #f5f6f8;
  color: #111827;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.product-set-output-grid button:hover,
.product-set-output-grid button.is-active {
  border-color: #2b7cff;
  background: #eaf4ff;
  color: #0f57ff;
}

.product-set-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.product-set-field-grid label {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.product-set-field-grid label > span {
  color: #6b7280;
  font-size: 12px;
  font-weight: 800;
}

.product-set-field-grid select {
  height: 38px;
  min-width: 0;
  border: 1px solid #dfe5ee;
  border-radius: 9px;
  outline: none;
  background: #f5f6f8;
  color: #111827;
  padding: 0 10px;
  font-size: 13px;
  font-weight: 800;
}

.product-clone-page[data-tool="set"] .product-set-detail-section textarea {
  min-height: 176px;
  resize: vertical;
}

.product-clone-page[data-tool="set"] .product-set-upload {
  transition:
    border-color 160ms ease,
    background-color 160ms ease,
    transform 160ms ease;
}

.product-clone-page[data-tool="set"] .product-set-upload:hover,
.product-clone-page[data-tool="set"] .product-set-upload.is-dragging {
  border-color: #00ff88;
  background: #eefbf5;
}

.product-clone-page[data-tool="set"] .product-set-upload:active {
  transform: scale(0.98);
}

.product-set-thumb-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.product-set-thumb {
  position: relative;
  overflow: hidden;
  margin: 0;
  border: 1px solid #dfe5ee;
  border-radius: 12px;
  background: #f5f6f8;
  aspect-ratio: 1;
  transition: border-color 200ms ease, transform 200ms ease, box-shadow 200ms ease;
}

.product-set-thumb:hover {
  border-color: #c6cdd8;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.product-set-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 250ms ease;
}

.product-set-thumb:hover img {
  transform: scale(1.04);
}

.product-set-thumb button {
  position: absolute;
  top: 6px;
  right: 6px;
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border: 1px solid rgba(223, 229, 238, 0.7);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
  color: #111827;
  cursor: pointer;
  transition:
    background-color 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.product-set-thumb button:hover {
  background: #111827;
  color: #ffffff;
}

.product-set-thumb button:active {
  transform: scale(0.94);
}

.product-set-textarea-wrap {
  position: relative;
}

.product-set-textarea-wrap textarea {
  padding-bottom: 32px;
}

.product-set-textarea-wrap textarea:focus {
  border-color: #00ff88;
  box-shadow: 0 0 0 3px rgb(52 211 153 / 16%);
}

.product-set-char-count {
  position: absolute;
  right: 12px;
  bottom: 10px;
  color: #8a94a6;
  font-size: 12px;
  font-weight: 800;
  pointer-events: none;
}

.product-set-demo-board :is(button, figure) {
  position: relative;
  overflow: hidden;
  margin: 0;
  border: 0;
  border-radius: 12px;
  background: #ffffff;
  padding: 0;
  cursor: pointer;
}

.product-set-demo-board button {
  transition:
    border-color 160ms ease,
    transform 160ms ease;
}

.product-set-demo-board button:hover {
  transform: translateY(-1px);
}

.product-set-demo-board button:active {
  transform: scale(0.98);
}

.product-set-demo-board :is(span, figcaption) {
  position: absolute;
  left: 12px;
  top: 12px;
  max-width: calc(100% - 24px);
  overflow: hidden;
  border-radius: 999px;
  background: #ffffff;
  color: #111827;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-set-card-grid button {
  height: 162px;
}

.product-set-flow-arrow {
  animation: product-set-arrow-pulse 1.35s ease-in-out infinite;
}

.product-set-empty-preview {
  display: grid;
  width: min(100%, 620px);
  min-height: 336px;
  place-items: center;
  align-content: center;
  gap: 12px;
  border: 1px dashed #d9e0ec;
  border-radius: 18px;
  background: #ffffff;
  color: #6b7280;
  padding: 32px;
  text-align: center;
}

.product-set-empty-preview .anticon {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 14px;
  background: #eefbf5;
  color: #00ff88;
  font-size: 26px;
}

.product-set-empty-preview strong {
  color: #111827;
  font-size: 18px;
}

.product-set-empty-preview span {
  max-width: 360px;
  color: #7b8495;
  font-size: 14px;
  line-height: 1.6;
}

.product-set-preview-backdrop {
  position: fixed;
  inset: 0;
  z-index: 24;
  display: grid;
  place-items: center;
  background: rgb(17 24 39 / 58%);
  padding: 28px;
  animation: product-set-modal-fade 180ms ease both;
}

.product-set-preview-modal {
  position: relative;
  display: grid;
  width: min(820px, 92vw);
  max-height: 88vh;
  gap: 12px;
  border: 1px solid #dfe5ee;
  border-radius: 18px;
  background: #ffffff;
  padding: 18px;
  animation: product-set-modal-rise 180ms ease both;
}

.product-set-preview-modal img {
  width: 100%;
  max-height: 72vh;
  object-fit: contain;
  border-radius: 12px;
  background: #f5f6f8;
}

.product-set-preview-modal strong {
  color: #111827;
  font-size: 15px;
}

.product-set-preview-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid #dfe5ee;
  border-radius: 999px;
  background: #ffffff;
  color: #111827;
  cursor: pointer;
  transition:
    background-color 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.product-set-preview-close:hover {
  background: #111827;
  color: #ffffff;
}

.product-set-preview-close:active {
  transform: scale(0.94);
}

@keyframes product-set-arrow-pulse {
  0%,
  100% {
    opacity: 0.55;
    transform: translateX(0);
  }

  50% {
    opacity: 1;
    transform: translateX(5px);
  }
}

@keyframes product-set-modal-fade {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes product-set-modal-rise {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (min-width: 1521px) {
  .product-clone-page[data-tool="set"] :is(
    .product-set-upload-section,
    .product-set-settings-section,
    .product-set-detail-section
  ) {
    margin-bottom: 24px;
    border-radius: 16px;
    padding: 24px;
  }

  .product-set-setting-block {
    gap: 14px;
  }

  .product-set-setting-block + .product-set-setting-block {
    margin-top: 22px;
    padding-top: 22px;
  }

  .product-set-setting-title {
    font-size: 18px;
  }

  .product-set-output-grid,
  .product-set-field-grid {
    gap: 14px;
  }

  .product-set-output-grid button,
  .product-set-field-grid select {
    height: 52px;
    border-radius: 12px;
    font-size: 18px;
  }

  .product-set-field-grid label > span {
    font-size: 16px;
  }

  .product-clone-page[data-tool="set"] .product-set-detail-section textarea {
    min-height: 240px;
  }

  .product-clone-page[data-tool="set"] .product-set-demo-board :is(button, figure) {
    border-radius: 18px;
    background: #f3f4f6;
  }

  .product-clone-page[data-tool="set"] .product-set-card-grid button {
    height: 242px;
  }

  .product-clone-page[data-tool="set"] .product-set-demo-board :is(span, figcaption) {
    left: 14px;
    top: 14px;
    max-width: calc(100% - 28px);
    padding: 9px 16px;
    font-size: 16px;
  }

  .product-set-empty-preview {
    min-height: 576px;
  }

  .product-set-empty-preview .anticon {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    font-size: 34px;
  }

  .product-set-empty-preview strong {
    font-size: 24px;
  }

  .product-set-empty-preview span {
    font-size: 18px;
  }
}

/* Product set final target: dark two-column workspace with floating input. */
.product-clone-page[data-tool="set"] {
  display: block;
  height: 100%;
  overflow: hidden;
  background: #101115;
  color: #e7ecf6;
}

.product-clone-page[data-tool="set"] > .product-clone-shell {
  display: grid;
  grid-template-columns: minmax(440px, 570px) minmax(0, 1fr);
  height: 100%;
  min-height: 0;
  background: #101115;
}

.product-clone-page[data-tool="set"] .product-clone-rail {
  display: none;
}

.product-clone-page[data-tool="set"] .product-clone-panel {
  display: block;
  min-height: 0;
  border-right: 1px solid #2a2d36;
  background: #101115;
}

.product-clone-page[data-tool="set"] .product-clone-panel__scroll {
  min-height: 0;
  height: 100%;
  overflow: auto;
  padding: 44px 36px 46px;
  scrollbar-color: #3a3d49 #101115;
}

.product-clone-page[data-tool="set"] :is(.product-set-upload-section, .product-set-settings-section) {
  margin: 0 0 30px;
  border: 1px solid #2b2e39;
  border-radius: 18px;
  background: #17181f;
  padding: 28px;
  box-shadow: none;
}

.product-clone-page[data-tool="set"] :is(.product-set-upload-section, .product-set-settings-section) h2 {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 24px;
  color: #d8deed;
  font-size: 22px;
  font-weight: 900;
  line-height: 1.2;
}

.product-clone-page[data-tool="set"] :is(.product-set-upload-section, .product-set-settings-section) h2 .anticon {
  color: #737786;
  font-size: 24px;
}

.product-clone-page[data-tool="set"] .product-set-upload {
  min-height: 316px;
  gap: 14px;
  border: 2px dashed #3a3d4b;
  border-radius: 18px;
  background: #1a1d21;
  color: #dbe7f7;
  padding: 24px;
}

.product-clone-page[data-tool="set"] .product-set-upload:hover,
.product-clone-page[data-tool="set"] .product-set-upload.is-dragging {
  border-color: #00ff88;
  background: #1a2421;
}

.product-clone-page[data-tool="set"] .product-set-upload-icon {
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  border-radius: 999px;
  background: #20282a;
  color: #00ff88;
  font-size: 32px;
}

.product-clone-page[data-tool="set"] .product-set-upload-title {
  color: #bdd0e6;
  font-size: 18px;
  font-weight: 800;
}

.product-clone-page[data-tool="set"] .product-set-upload strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 168px;
  height: 52px;
  border-radius: 10px;
  background: #00ff88;
  color: #03130d;
  padding: 0 22px;
  font-size: 20px;
  font-weight: 900;
}

.product-clone-page[data-tool="set"] .product-set-upload strong span {
  color: inherit;
  font-size: 24px;
  line-height: 1;
}

.product-clone-page[data-tool="set"] .product-set-upload-note {
  color: #788294;
  font-size: 16px;
  font-weight: 700;
}

.product-clone-page[data-tool="set"] .product-set-thumb-row {
  gap: 12px;
  margin-top: 16px;
}

.product-clone-page[data-tool="set"] .product-set-thumb {
  border-color: #2c303a;
  background: #202229;
}

.product-clone-page[data-tool="set"] .product-set-thumb button {
  border-color: #303541;
  background: #17181f;
  color: #e7ecf6;
}

.product-clone-page[data-tool="set"] .product-set-setting-block {
  gap: 14px;
}

.product-clone-page[data-tool="set"] .product-set-setting-block + .product-set-setting-block {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 0;
}

.product-clone-page[data-tool="set"] .product-set-setting-title {
  color: #7f8798;
  font-size: 16px;
  font-weight: 900;
}

.product-clone-page[data-tool="set"] .product-set-output-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.product-clone-page[data-tool="set"] .product-set-output-grid button {
  height: 56px;
  border: 1px solid #2d303b;
  border-radius: 10px;
  background: #1d1e26;
  color: #c1ccdd;
  font-size: 20px;
  font-weight: 900;
}

.product-clone-page[data-tool="set"] .product-set-output-grid button:hover {
  border-color: #414653;
  background: #232530;
  color: #e7ecf6;
}

.product-clone-page[data-tool="set"] .product-set-output-grid button.is-active {
  border-color: #00ff88;
  background: #00ff88;
  color: #04130e;
}

.product-clone-page[data-tool="set"] .product-set-field-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.product-clone-page[data-tool="set"] .product-set-field-grid label {
  position: relative;
  display: block;
}

.product-clone-page[data-tool="set"] .product-set-field-grid label > span {
  position: absolute;
  left: 18px;
  top: 10px;
  z-index: 1;
  color: #7d8392;
  font-size: 13px;
  font-weight: 800;
  pointer-events: none;
}

.product-clone-page[data-tool="set"] .product-set-field-grid select {
  width: 100%;
  height: 72px;
  border: 1px solid #2d303b;
  border-radius: 10px;
  background: #1d1e26;
  color: #ffffff;
  padding: 28px 18px 8px;
  font-size: 20px;
  font-weight: 900;
}

.product-clone-page[data-tool="set"] .product-clone-preview {
  position: relative;
  display: grid;
  min-height: 0;
  overflow: hidden;
  align-content: center;
  justify-items: center;
  gap: 24px;
  background: #101115;
  padding: 64px 56px 210px;
  scrollbar-color: #3a3d49 #101115;
}

.product-clone-page[data-tool="set"] .product-clone-preview__headline {
  position: absolute;
  left: 32px;
  right: 32px;
  top: 10px;
  text-align: center;
}

.product-clone-page[data-tool="set"] .product-clone-preview__headline h1 {
  display: none;
}

.product-clone-page[data-tool="set"] .product-clone-preview__headline p,
.product-clone-page[data-tool="set"] .product-clone-preview__headline p span {
  color: #758096;
  font-size: 18px;
  font-weight: 700;
}

.product-clone-page[data-tool="set"] .product-set-empty-preview {
  width: min(100%, 640px);
  min-height: 300px;
  border: 0;
  background: transparent;
  padding: 0;
  color: #80899c;
}

.product-clone-page[data-tool="set"] .product-set-empty-preview .anticon {
  width: 120px;
  height: 120px;
  border: 1px solid #2b2e39;
  border-radius: 999px;
  background: #1a1b22;
  color: #565b69;
  font-size: 46px;
}

.product-clone-page[data-tool="set"] .product-set-empty-preview strong {
  color: #dbe3f2;
  font-size: 24px;
  font-weight: 900;
}

.product-clone-page[data-tool="set"] .product-set-empty-preview span {
  max-width: 620px;
  color: #747d90;
  font-size: 18px;
  font-weight: 700;
}

.product-clone-page[data-tool="set"] .product-set-demo-board {
  width: min(100%, 980px);
  min-height: 470px;
  border: 0;
  background: transparent;
  padding: 0;
}

.product-clone-page[data-tool="set"] .product-set-demo-board :is(button, figure) {
  border: 1px solid #2b2e39;
  background: #17181f;
}

.product-clone-page[data-tool="set"] .product-set-floating-detail {
  position: absolute;
  left: 56px;
  right: 56px;
  bottom: 28px;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  border: 1px solid #2b2e39;
  border-radius: 18px;
  background: #17181f;
  padding: 16px;
}

.product-clone-page[data-tool="set"] .product-set-floating-detail__head {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #d8deed;
  font-size: 15px;
  font-weight: 900;
}

.product-clone-page[data-tool="set"] .product-set-floating-detail__head span {
  color: #767f91;
  font-size: 13px;
}

.product-clone-page[data-tool="set"] .product-set-floating-detail textarea {
  min-width: 0;
  min-height: 72px;
  max-height: 150px;
  border: 1px solid #2d303b;
  border-radius: 12px;
  outline: none;
  resize: vertical;
  background: #1d1e26;
  color: #e7ecf6;
  padding: 14px 16px;
  font-size: 15px;
  line-height: 1.5;
}

.product-clone-page[data-tool="set"] .product-set-floating-detail textarea::placeholder {
  color: #687184;
}

.product-clone-page[data-tool="set"] .product-set-floating-detail textarea:focus {
  border-color: #00ff88;
  box-shadow: 0 0 0 3px rgb(52 211 153 / 14%);
}

.product-clone-page[data-tool="set"] .product-set-floating-submit {
  align-self: stretch;
  min-width: 148px;
  border: 0;
  border-radius: 12px;
  background: #00ff88;
  color: #04130e;
  padding: 0 18px;
  font-size: 17px;
  font-weight: 900;
  cursor: pointer;
}

.product-clone-page[data-tool="set"] .product-set-floating-submit:disabled {
  background: #26342f;
  color: #687568;
  cursor: not-allowed;
}

.product-clone-page[data-tool="set"] .product-clone-help {
  display: none;
}

@media (max-width: 1520px) {
  .product-clone-page[data-tool="set"] > .product-clone-shell {
    grid-template-columns: minmax(370px, 535px) minmax(0, 1fr);
  }

  .product-clone-page[data-tool="set"] .product-clone-panel__scroll {
    padding: 44px 36px 46px;
  }

  .product-clone-page[data-tool="set"] :is(.product-set-upload-section, .product-set-settings-section) {
    margin-bottom: 30px;
    border-radius: 18px;
    padding: 28px;
  }

  .product-clone-page[data-tool="set"] .product-set-upload {
    min-height: 316px;
  }

  .product-clone-page[data-tool="set"] .product-set-output-grid button {
    height: 56px;
    font-size: 20px;
  }

  .product-clone-page[data-tool="set"] .product-set-field-grid select {
    height: 72px;
    font-size: 20px;
  }

  .product-clone-page[data-tool="set"] .product-clone-preview {
    padding: 64px 56px 210px;
  }
}

.clone-ai-adwizard {
  margin-top: 14px;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.clone-ai-adwizard__head { display: flex; flex-direction: column; gap: 2px; }
.clone-ai-adwizard__head strong { font-size: 14px; }
.clone-ai-adwizard__head span { font-size: 12px; opacity: 0.6; }
.clone-ai-adwizard__error { font-size: 12px; color: #ff7875; background: rgba(255, 90, 95, 0.12); border-radius: 8px; padding: 8px 10px; }
.clone-ai-adwizard__progress { font-size: 12px; opacity: 0.8; display: flex; align-items: center; gap: 6px; }
.clone-ai-adwizard__plan,
.clone-ai-adwizard__render { padding: 10px; border-radius: 8px; border: none; cursor: pointer; font-size: 13px; background: linear-gradient(135deg, #6a5cff, #8b5cf6); color: #fff; }
.clone-ai-adwizard__plan:disabled,
.clone-ai-adwizard__render:disabled { opacity: 0.5; cursor: not-allowed; }
.clone-ai-adwizard__plan-result { display: flex; flex-direction: column; gap: 10px; }
.clone-ai-adwizard__block { padding: 10px; border-radius: 8px; background: rgba(255, 255, 255, 0.04); display: flex; flex-direction: column; gap: 6px; }
.clone-ai-adwizard__block strong { font-size: 13px; }
.clone-ai-adwizard__block p { font-size: 12px; opacity: 0.8; margin: 0; }
.clone-ai-adwizard__label { font-size: 12px; opacity: 0.6; }
.clone-ai-adwizard__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.clone-ai-adwizard__chips span { font-size: 11px; padding: 3px 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); }
.clone-ai-adwizard__scenes { display: flex; flex-direction: column; gap: 8px; }
.clone-ai-adwizard__scene { padding: 8px; border-radius: 6px; background: rgba(0, 0, 0, 0.2); }
.clone-ai-adwizard__scene-head { display: flex; justify-content: space-between; font-size: 12px; font-weight: 600; }
.clone-ai-adwizard__scene-status.is-completed { color: #52c41a; }
.clone-ai-adwizard__scene-status.is-failed { color: #ff4d4f; }
.clone-ai-adwizard__scene-video { width: 100%; border-radius: 6px; margin-top: 6px; }
.clone-ai-adwizard__risk { font-size: 12px; font-weight: 600; }
.clone-ai-adwizard__risk.is-low { color: #52c41a; }
.clone-ai-adwizard__risk.is-medium { color: #faad14; }
.clone-ai-adwizard__risk.is-high { color: #ff4d4f; }
.clone-ai-adwizard__issues { margin: 0; padding-left: 16px; font-size: 12px; display: flex; flex-direction: column; gap: 4px; }

/* ===== Ecommerce Template Apple Carousel ===== */
.ecommerce-template-apple-carousel {
  position: relative;
  width: min(100%, 1160px);
  min-height: clamp(340px, 34vw, 480px);
  margin: 0 auto;
  overflow: hidden;
  isolation: isolate;
}

.ecommerce-template-apple-carousel__stage {
  position: relative;
  width: min(100%, 1080px);
  height: clamp(320px, 30vw, 440px);
  margin: 0 auto;
  overflow: visible;
  transform-style: preserve-3d;
}

.ecommerce-template-apple-carousel__deck {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
}

.ecommerce-template-apple-card {
  --apple-card-offset: 0;
  --apple-card-depth: 0;
  --apple-card-z: 20;
  --apple-card-x: 0;
  --apple-card-y: 0;
  --apple-card-z-offset: 0;
  --apple-card-rotate-y: 0deg;
  --apple-card-rotate-z: 0deg;
  --apple-card-scale: 1;
  --apple-card-opacity: 1;
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: clamp(200px, 16vw, 270px);
  height: clamp(114px, 9.2vw, 153px);
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: clamp(10px, 1.1vw, 16px);
  background: #0d1110;
  color: #101412;
  padding: 0;
  cursor: pointer;
  opacity: var(--apple-card-opacity);
  box-shadow:
    0 10px 24px rgb(0 0 0 / 16%),
    inset 0 -1px 0 rgb(0 0 0 / 8%);
  transform:
    translate(-50%, -50%)
    translateX(var(--apple-card-x))
    translateY(var(--apple-card-y))
    translateZ(var(--apple-card-z-offset))
    rotateY(var(--apple-card-rotate-y))
    rotateZ(var(--apple-card-rotate-z))
    scale(var(--apple-card-scale));
  transform-origin: center;
  transform-style: preserve-3d;
  transition:
    transform 760ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 640ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 640ms cubic-bezier(0.22, 1, 0.36, 1),
    width 760ms cubic-bezier(0.22, 1, 0.36, 1),
    height 760ms cubic-bezier(0.22, 1, 0.36, 1);
  z-index: var(--apple-card-z);
}

.ecommerce-template-apple-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(180deg, rgb(255 255 255 / 12%), transparent 24%),
    linear-gradient(0deg, rgb(0 0 0 / 18%), transparent 44%);
  pointer-events: none;
  z-index: 2;
}

.ecommerce-template-apple-card img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
  filter:
    saturate(1.06)
    contrast(1.02)
    drop-shadow(0 16px 16px rgb(0 0 0 / 14%));
  transform: translateZ(10px);
  transition:
    filter 640ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 760ms cubic-bezier(0.22, 1, 0.36, 1);
}

.ecommerce-template-apple-card.is-active {
  width: clamp(360px, 34vw, 580px);
  height: clamp(203px, 19.2vw, 328px);
  border-radius: clamp(14px, 1.6vw, 24px);
  box-shadow:
    0 18px 40px rgb(0 0 0 / 26%),
    inset 0 -1px 0 rgb(0 0 0 / 8%);
}

.ecommerce-template-apple-card.is-active img {
  filter:
    saturate(1.1)
    contrast(1.04)
    drop-shadow(0 20px 18px rgb(0 0 0 / 16%));
  transform: translateZ(18px) scale(1.02);
}

.ecommerce-template-apple-card:hover {
  box-shadow:
    0 26px 54px rgb(0 0 0 / 32%),
    inset 0 -1px 0 rgb(0 0 0 / 8%);
}

.ecommerce-template-apple-carousel.is-resetting .ecommerce-template-apple-card,
.ecommerce-template-apple-carousel.is-resetting .ecommerce-template-apple-card img {
  transition: none;
}
.clone-ai-video-outfit-upload {
  position: relative;
  display: grid;
  gap: 8px;
  margin-top: 6px;
}

.clone-ai-video-outfit-upload-btn {
  display: flex;
  width: 100%;
  min-height: 118px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1.5px dashed var(--ecm-line, var(--border-subtle));
  border-radius: var(--ecm-radius-md, 14px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 65%),
    var(--ecm-inset, var(--bg-inset));
  color: var(--ecm-text, var(--fg-body));
  font-size: 13px;
  font-weight: 850;
  line-height: 1.35;
  cursor: pointer;
  text-align: center;
  transition:
    border-color 150ms,
    background 150ms,
    color 150ms,
    transform 150ms;
}

.clone-ai-video-outfit-upload-btn::before {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  margin-bottom: 8px;
  border: 1px solid rgba(var(--ecm-accent-rgb, 0, 255, 136), 0.26);
  border-radius: 999px;
  background: rgba(var(--ecm-accent-rgb, 0, 255, 136), 0.08);
  color: var(--ecm-accent, var(--accent));
  content: "+";
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
}

.clone-ai-video-outfit-upload-btn:hover {
  border-color: rgba(var(--ecm-accent-rgb, 0, 255, 136), 0.48);
  background:
    linear-gradient(180deg, rgba(var(--ecm-accent-rgb, 0, 255, 136), 0.08), transparent 72%),
    var(--ecm-inset-hover, var(--bg-hover));
  color: var(--ecm-text, var(--fg-body));
}

.clone-ai-video-outfit-upload-btn:active {
  transform: scale(0.99);
}

.clone-ai-video-outfit-info {
  position: absolute;
  top: 10px;
  right: 10px;
  max-width: calc(100% - 20px);
  padding: 4px 8px;
  border: 1px solid rgba(var(--ecm-accent-rgb, 0, 255, 136), 0.28);
  border-radius: 999px;
  background: rgba(var(--ecm-accent-rgb, 0, 255, 136), 0.1);
  font-size: 12px;
  font-weight: 850;
  color: var(--ecm-accent, var(--accent));
  pointer-events: none;
}

.clone-ai-video-outfit-upload:has(.clone-ai-video-outfit-info) .clone-ai-video-outfit-upload-btn {
  border-style: solid;
  border-color: rgba(var(--ecm-accent-rgb, 0, 255, 136), 0.38);
  background:
    linear-gradient(180deg, rgba(var(--ecm-accent-rgb, 0, 255, 136), 0.075), transparent 74%),
    var(--ecm-inset, var(--bg-inset));
}

/* Ecommerce generation page SaaS polish: visual-only refinement for the product creation workspace. */
.product-clone-page {
  --ecm-page: #0e1012;
  --ecm-panel: rgba(20, 23, 25, 0.96);
  --ecm-panel-strong: rgba(24, 28, 30, 0.98);
  --ecm-inset: rgba(255, 255, 255, 0.035);
  --ecm-inset-hover: rgba(255, 255, 255, 0.06);
  --ecm-line: rgba(255, 255, 255, 0.095);
  --ecm-line-strong: rgba(255, 255, 255, 0.14);
  --ecm-text: #eef4f0;
  --ecm-muted: rgba(232, 240, 235, 0.62);
  --ecm-soft: rgba(232, 240, 235, 0.42);
  --ecm-accent: var(--accent, #00ff88);
  --ecm-accent-rgb: var(--accent-rgb, 0, 255, 136);
  --ecm-radius-sm: 10px;
  --ecm-radius-md: 14px;
  --ecm-radius-lg: 18px;
  --ecm-shadow-soft: 0 14px 38px rgba(0, 0, 0, 0.2);
  --ecm-shadow-panel: 0 18px 54px rgba(0, 0, 0, 0.28);
  background:
    radial-gradient(circle at 26% 0%, rgba(var(--ecm-accent-rgb), 0.055), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.022), transparent 150px),
    var(--ecm-page);
  color: var(--ecm-text);
  font-family: var(--font-sans, Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif);
}

.product-clone-page > .product-clone-shell {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.018), transparent 22%, transparent 76%, rgba(255, 255, 255, 0.014)),
    transparent;
}

.product-clone-page :is(button, select, textarea, input) {
  font-family: inherit;
  letter-spacing: 0;
}

.product-clone-page :is(button, select, textarea):focus-visible {
  outline: 2px solid rgba(var(--ecm-accent-rgb), 0.48);
  outline-offset: 2px;
}

.product-clone-page :is(button, select, textarea):disabled {
  box-shadow: none;
}

.product-clone-page[data-tool="clone"] {
  --clone-settings-panel-width: clamp(420px, 36vw, 540px);
  background:
    radial-gradient(circle at 72% 12%, rgba(var(--ecm-accent-rgb), 0.045), transparent 31%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.018), transparent 180px),
    var(--ecm-page);
}

.product-clone-page[data-tool="clone"] > .product-clone-shell,
.product-clone-page[data-tool="clone"] .clone-ai-preview {
  background: transparent;
}

.product-clone-page[data-tool="clone"] .product-clone-panel {
  border-right-color: var(--ecm-line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 150px),
    var(--ecm-panel);
}

.product-clone-page[data-tool="clone"] .clone-ai-panel {
  gap: 12px;
  padding: 18px;
  scrollbar-color: rgba(255, 255, 255, 0.2) rgba(255, 255, 255, 0.035);
}

.product-clone-page[data-tool="clone"] .clone-ai-logo {
  position: static;
  z-index: auto;
  margin: -18px -18px 2px;
  padding: 16px 18px 14px;
  border-bottom-color: var(--ecm-line);
  background:
    linear-gradient(180deg, rgba(21, 24, 26, 0.98), rgba(21, 24, 26, 0.9));
  backdrop-filter: blur(16px);
}

.product-clone-page[data-tool="clone"] .clone-ai-logo__mark {
  border-radius: 9px;
  box-shadow: 0 0 0 1px rgba(var(--ecm-accent-rgb), 0.18), 0 10px 24px rgba(var(--ecm-accent-rgb), 0.14);
}

.product-clone-page[data-tool="clone"] .clone-ai-logo strong {
  font-size: 15px;
  line-height: 1.2;
}

.product-clone-page[data-tool="clone"] .clone-ai-logo em {
  border-color: var(--ecm-line);
  background: var(--ecm-inset);
  color: var(--ecm-muted);
}

.product-clone-page[data-tool="clone"] :is(
  .clone-ai-card,
  .clone-ai-platform-spec,
  .clone-ai-count-panel,
  .clone-ai-replicate-panel,
  .clone-ai-module-panel,
  .clone-ai-model-panel,
  .clone-ai-video-panel
) {
  border-color: var(--ecm-line);
  border-radius: var(--ecm-radius-md);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 58%),
    var(--ecm-panel-strong);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

.product-clone-page[data-tool="clone"] .clone-ai-card {
  padding: 13px;
}

.product-clone-page[data-tool="clone"] .clone-ai-card h2 {
  margin-bottom: 10px;
  color: var(--ecm-muted);
  font-size: 11px;
  line-height: 1.2;
}

.product-clone-page[data-tool="clone"] .clone-ai-upload-zone {
  min-height: 140px;
  border-color: rgba(255, 255, 255, 0.16);
  border-radius: var(--ecm-radius-md);
  background:
    radial-gradient(circle at 50% 0%, rgba(var(--ecm-accent-rgb), 0.09), transparent 58%),
    var(--ecm-inset);
}

.product-clone-page[data-tool="clone"] .clone-ai-upload-zone:hover,
.product-clone-page[data-tool="clone"] .clone-ai-upload-zone.is-dragging {
  border-color: rgba(var(--ecm-accent-rgb), 0.55);
  background:
    radial-gradient(circle at 50% 0%, rgba(var(--ecm-accent-rgb), 0.14), transparent 60%),
    rgba(var(--ecm-accent-rgb), 0.055);
  transform: translateY(-1px);
}

.product-clone-page[data-tool="clone"] .clone-ai-upload-icon {
  background: rgba(var(--ecm-accent-rgb), 0.09);
  color: var(--ecm-accent);
}

.product-clone-page[data-tool="clone"] :is(
  .clone-ai-tag-group button,
  .clone-ai-basic-select > button,
  .clone-ai-basic-select__menu,
  .clone-ai-basic-select__menu button,
  .clone-ai-replicate-tabs button,
  .clone-ai-replicate-upload,
  .clone-ai-replicate-levels button,
  .clone-ai-count-row,
  .clone-ai-count-stepper button,
  .clone-ai-module-list button,
  .clone-ai-model-tabs button,
  .clone-ai-model-scene-grid button,
  .clone-ai-model-select,
  .clone-ai-model-select > button,
  .clone-ai-model-select__menu,
  .clone-ai-model-select__menu button,
  .clone-ai-video-options button,
  .clone-ai-video-smart
) {
  border-color: var(--ecm-line);
  background: var(--ecm-inset);
  color: var(--ecm-muted);
}

.product-clone-page[data-tool="clone"] :is(
  .clone-ai-tag-group button:hover,
  .clone-ai-basic-select > button:hover,
  .clone-ai-basic-select > button.is-open,
  .clone-ai-basic-select__menu button:hover,
  .clone-ai-replicate-tabs button:hover,
  .clone-ai-replicate-upload:hover,
  .clone-ai-replicate-levels button:hover,
  .clone-ai-count-stepper button:hover:not(:disabled),
  .clone-ai-module-list button:hover,
  .clone-ai-model-tabs button:hover,
  .clone-ai-model-scene-grid button:hover,
  .clone-ai-model-select > button:hover,
  .clone-ai-model-select > button.is-open,
  .clone-ai-model-select__menu button:hover,
  .clone-ai-video-options button:hover,
  .clone-ai-video-smart:hover
) {
  border-color: var(--ecm-line-strong);
  background: var(--ecm-inset-hover);
  color: var(--ecm-text);
}

.product-clone-page[data-tool="clone"] :is(
  .clone-ai-tag-group button.is-active,
  .clone-ai-basic-select__menu button.is-active,
  .clone-ai-replicate-tabs button.is-active,
  .clone-ai-replicate-levels button.is-active,
  .clone-ai-module-list button.is-active,
  .clone-ai-model-tabs button.is-active,
  .clone-ai-model-scene-grid button.is-active,
  .clone-ai-model-select__menu button.is-active,
  .clone-ai-video-options button.is-active,
  .clone-ai-video-smart.is-on
) {
  border-color: rgba(var(--ecm-accent-rgb), 0.48);
  background:
    linear-gradient(180deg, rgba(var(--ecm-accent-rgb), 0.16), rgba(var(--ecm-accent-rgb), 0.07));
  color: var(--ecm-accent);
}

.product-clone-page[data-tool="clone"] :is(.clone-ai-generate, .clone-ai-send-button, .clone-ai-upload-zone strong) {
  background: var(--ecm-accent);
  color: var(--dg-button-text, #061014);
  box-shadow: 0 10px 28px rgba(var(--ecm-accent-rgb), 0.18);
}

.product-clone-page[data-tool="clone"] :is(.clone-ai-generate:hover:not(:disabled), .clone-ai-send-button:hover:not(:disabled)) {
  filter: brightness(1.03);
  transform: translateY(-1px);
}

.product-clone-page[data-tool="clone"] :is(.clone-ai-generate:disabled, .clone-ai-send-button:disabled) {
  border-color: var(--ecm-line);
  background: var(--ecm-inset);
  color: var(--ecm-soft);
  filter: none;
}

.product-clone-page[data-tool="clone"] .clone-ai-generate--cancel {
  border: 1px solid var(--ecm-line);
  background: var(--ecm-inset);
  color: var(--ecm-text);
  box-shadow: none;
}

.product-clone-page[data-tool="clone"] .clone-ai-generate--cancel:hover:not(:disabled) {
  background: var(--ecm-inset-hover);
}

.product-clone-page[data-tool="clone"] .clone-ai-settings-toggle {
  border-color: var(--ecm-line-strong);
  background: rgba(20, 23, 25, 0.86);
  color: var(--ecm-muted);
  box-shadow: var(--ecm-shadow-soft);
  backdrop-filter: blur(14px);
}

.product-clone-page[data-tool="clone"] .clone-ai-settings-toggle:hover,
.product-clone-page[data-tool="clone"] .clone-ai-settings-toggle:focus-visible {
  border-color: rgba(var(--ecm-accent-rgb), 0.5);
  background: rgba(var(--ecm-accent-rgb), 0.09);
  color: var(--ecm-accent);
}

.product-clone-page[data-tool="clone"] .clone-ai-preview {
  align-content: center;
  gap: 20px;
  padding: 90px clamp(22px, 4vw, 46px) 134px;
  background:
    radial-gradient(circle at 50% 42%, rgba(var(--ecm-accent-rgb), 0.035), transparent 38%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.014), transparent 160px);
}

.product-clone-page[data-tool="clone"] .clone-ai-preview-header {
  top: 28px;
  right: clamp(22px, 4vw, 46px);
  left: clamp(22px, 4vw, 46px);
  max-width: none;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.055);
}

.product-clone-page[data-tool="clone"] .clone-ai-preview-header strong {
  font-size: clamp(18px, 1.6vw, 22px);
}

.product-clone-page[data-tool="clone"] .clone-ai-preview-header span {
  max-width: 620px;
  color: var(--ecm-muted);
  font-size: 13px;
  line-height: 1.55;
}

.product-clone-page[data-tool="clone"] .clone-ai-empty-state {
  width: min(100%, 580px);
  min-height: 260px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.014);
}

.product-clone-page[data-tool="clone"] .clone-ai-empty-state .anticon {
  width: 84px;
  height: 84px;
  border-color: var(--ecm-line);
  background:
    radial-gradient(circle at 50% 16%, rgba(var(--ecm-accent-rgb), 0.12), transparent 62%),
    var(--ecm-panel-strong);
  color: rgba(var(--ecm-accent-rgb), 0.46);
}

.product-clone-page[data-tool="clone"] .clone-ai-preview-showcase {
  gap: 18px;
}

.product-clone-page[data-tool="clone"] :is(.clone-ai-main-result, .clone-ai-result-grid button) {
  border-color: var(--ecm-line);
  background: var(--ecm-panel-strong);
  box-shadow: var(--ecm-shadow-soft);
}

.product-clone-page[data-tool="clone"] :is(.clone-ai-main-result:hover, .clone-ai-result-grid button:hover) {
  border-color: rgba(var(--ecm-accent-rgb), 0.38);
  box-shadow: var(--ecm-shadow-panel);
}

.product-clone-page[data-tool="clone"] .clone-ai-bottom-input {
  right: clamp(18px, 4vw, 46px);
  bottom: 20px;
  left: clamp(18px, 4vw, 46px);
}

.product-clone-page[data-tool="clone"] .clone-ai-input-wrapper {
  border-color: var(--ecm-line);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018)),
    rgba(20, 24, 23, 0.92);
  box-shadow: var(--ecm-shadow-panel);
  backdrop-filter: blur(18px);
}

.product-clone-page[data-tool="clone"] .clone-ai-input-wrapper:focus-within {
  border-color: rgba(var(--ecm-accent-rgb), 0.42);
  box-shadow:
    0 20px 58px rgba(0, 0, 0, 0.34),
    0 0 0 1px rgba(var(--ecm-accent-rgb), 0.08);
}

.product-clone-page[data-tool="clone"] .clone-ai-input-wrapper textarea {
  color: var(--ecm-text);
}

.product-clone-page[data-tool="clone"] .clone-ai-char-count {
  color: var(--ecm-soft);
}

.product-clone-page:is([data-tool="set"], [data-tool="detail"], [data-tool="wear"]) {
  background: var(--ecm-page);
}

.product-clone-page:is([data-tool="set"], [data-tool="detail"], [data-tool="wear"]) .product-clone-panel,
.product-clone-page:is([data-tool="set"], [data-tool="detail"], [data-tool="wear"]) .product-clone-rail {
  border-color: var(--ecm-line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 160px),
    var(--ecm-panel);
}

.product-clone-page:is([data-tool="detail"], [data-tool="wear"]) .product-clone-rail button {
  border-radius: var(--ecm-radius-sm);
  color: var(--ecm-muted);
}

.product-clone-page:is([data-tool="detail"], [data-tool="wear"]) .product-clone-rail button:hover,
.product-clone-page:is([data-tool="detail"], [data-tool="wear"]) .product-clone-rail button.is-active {
  background: rgba(var(--ecm-accent-rgb), 0.1);
  color: var(--ecm-accent);
}

.product-clone-page:is([data-tool="set"], [data-tool="detail"], [data-tool="wear"]) :is(
  .product-clone-field,
  .product-set-upload-section,
  .product-set-settings-section,
  .product-set-detail-section
) {
  border-color: var(--ecm-line);
  border-radius: var(--ecm-radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.034), transparent 54%),
    var(--ecm-panel-strong);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

.product-clone-page:is([data-tool="set"], [data-tool="detail"], [data-tool="wear"]) :is(
  .product-clone-field h2,
  .product-set-upload-section h2,
  .product-set-settings-section h2,
  .product-set-detail-section h2
) {
  color: var(--ecm-text);
  font-size: 15px;
  font-weight: 820;
}

.product-clone-page:is([data-tool="set"], [data-tool="detail"], [data-tool="wear"]) :is(
  select,
  textarea,
  .product-clone-upload-zone,
  .product-set-upload,
  .product-set-output-grid button,
  .product-set-structure-grid button,
  .product-detail-module-grid button,
  .product-clone-scene-grid button,
  .product-clone-ratio-row button,
  .product-clone-segment button,
  .product-clone-model-button,
  .product-clone-switch-row,
  .product-set-style-toggle
) {
  border-color: var(--ecm-line);
  border-radius: var(--ecm-radius-sm);
  background: var(--ecm-inset);
  color: var(--ecm-muted);
}

.product-clone-page:is([data-tool="set"], [data-tool="detail"], [data-tool="wear"]) :is(
  select:hover,
  textarea:hover,
  .product-clone-upload-zone:hover,
  .product-set-upload:hover,
  .product-set-output-grid button:hover,
  .product-set-structure-grid button:hover,
  .product-detail-module-grid button:hover,
  .product-clone-scene-grid button:hover,
  .product-clone-ratio-row button:hover,
  .product-clone-segment button:hover,
  .product-clone-model-button:hover,
  .product-clone-switch-row:hover,
  .product-set-style-toggle:hover
) {
  border-color: var(--ecm-line-strong);
  background: var(--ecm-inset-hover);
  color: var(--ecm-text);
}

.product-clone-page:is([data-tool="set"], [data-tool="detail"], [data-tool="wear"]) :is(
  .product-set-output-grid button.is-active,
  .product-set-structure-grid button.is-active,
  .product-detail-module-grid button.is-active,
  .product-clone-scene-grid button.is-active,
  .product-clone-ratio-row button.is-active,
  .product-clone-segment button.is-active,
  .product-set-style-toggle.is-active
) {
  border-color: rgba(var(--ecm-accent-rgb), 0.48);
  background: rgba(var(--ecm-accent-rgb), 0.12);
  color: var(--ecm-accent);
}

.product-clone-page:is([data-tool="set"], [data-tool="detail"], [data-tool="wear"]) :is(.product-clone-primary, .product-set-floating-submit) {
  border: 0;
  background: var(--ecm-accent);
  color: var(--dg-button-text, #061014);
  box-shadow: 0 12px 30px rgba(var(--ecm-accent-rgb), 0.18);
}

.product-clone-page:is([data-tool="set"], [data-tool="detail"], [data-tool="wear"]) :is(.product-clone-primary, .product-set-floating-submit):disabled {
  background: var(--ecm-inset);
  color: var(--ecm-soft);
  box-shadow: none;
}

.product-clone-page:is([data-tool="set"], [data-tool="detail"], [data-tool="wear"]) :is(.product-clone-primary--cancel, .product-set-floating-submit--cancel) {
  border: 1px solid var(--ecm-line);
  background: var(--ecm-inset);
  color: var(--ecm-text);
  box-shadow: none;
}

.product-clone-page:is([data-tool="set"], [data-tool="detail"], [data-tool="wear"]) :is(.product-clone-primary--cancel, .product-set-floating-submit--cancel):hover {
  background: var(--ecm-inset-hover);
}

.product-clone-page:is([data-tool="set"], [data-tool="detail"], [data-tool="wear"]) .product-clone-preview {
  background:
    radial-gradient(circle at 50% 40%, rgba(var(--ecm-accent-rgb), 0.032), transparent 40%),
    transparent;
}

.product-clone-page:is([data-tool="set"], [data-tool="detail"], [data-tool="wear"]) :is(
  .product-set-empty-preview,
  .product-clone-empty-panel
) {
  border-color: rgba(255, 255, 255, 0.055);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.014);
}

.product-clone-page[data-tool="set"] .product-set-floating-detail {
  border-color: var(--ecm-line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018)),
    rgba(20, 24, 23, 0.92);
  box-shadow: var(--ecm-shadow-panel);
  backdrop-filter: blur(18px);
}

.ecommerce-progress-bar {
  border-color: rgba(var(--ecm-accent-rgb), 0.22);
  background: rgba(var(--ecm-accent-rgb), 0.07);
}

.ecommerce-progress-bar__fill {
  box-shadow: 0 0 18px rgba(var(--ecm-accent-rgb), 0.36);
}

@media (max-width: 1180px) {
  .product-clone-page[data-tool="clone"] {
    --clone-settings-panel-width: clamp(390px, 45vw, 440px);
  }

  .product-clone-page[data-tool="clone"] .clone-ai-preview {
    padding-right: 28px;
    padding-left: 28px;
  }
}

@media (max-width: 860px) {
  .product-clone-page[data-tool="clone"] {
    height: auto;
    min-height: 100%;
    overflow: auto;
  }

  .product-clone-page[data-tool="clone"] > .product-clone-shell,
  .product-clone-page[data-tool="clone"].is-settings-collapsed > .product-clone-shell {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(620px, 1fr);
    height: auto;
    min-height: 100%;
  }

  .product-clone-page[data-tool="clone"].is-settings-collapsed > .product-clone-shell {
    grid-template-rows: 0 minmax(620px, 1fr);
  }

  .product-clone-page[data-tool="clone"] .product-clone-panel {
    border-right: 0;
    border-bottom: 1px solid var(--ecm-line);
  }

  .product-clone-page[data-tool="clone"] .clone-ai-panel {
    width: 100%;
    max-width: none;
    max-height: none;
  }

  .product-clone-page[data-tool="clone"] .clone-ai-settings-toggle,
  .product-clone-page[data-tool="clone"].is-settings-collapsed .clone-ai-settings-toggle {
    top: 14px;
    right: 14px;
    left: auto;
    transform: none;
  }

  .product-clone-page[data-tool="clone"] .clone-ai-settings-toggle:active {
    transform: scale(0.94);
  }

  .product-clone-page[data-tool="clone"] .clone-ai-preview {
    min-height: 620px;
    padding: 92px 18px 134px;
  }

  .product-clone-page[data-tool="clone"] .clone-ai-preview-header {
    top: 24px;
    right: 18px;
    left: 18px;
  }

  .product-clone-page[data-tool="clone"] .clone-ai-preview-showcase {
    grid-template-columns: 1fr;
    width: min(100%, 520px);
  }

  .product-clone-page[data-tool="clone"] .clone-ai-flow-arrow {
    display: none;
  }

  .product-clone-page[data-tool="clone"] .clone-ai-main-result {
    height: 260px;
  }
}

@media (max-width: 620px) {
  .product-clone-page:is([data-tool="set"], [data-tool="detail"], [data-tool="wear"]) .product-clone-panel__scroll,
  .product-clone-page[data-tool="clone"] .clone-ai-panel {
    padding: 14px;
  }

  .product-clone-page[data-tool="clone"] .clone-ai-logo {
    margin: 0;
    padding: 14px 54px 12px 14px;
  }

  .product-clone-page[data-tool="clone"] .clone-ai-card,
  .product-clone-page[data-tool="clone"] :is(.clone-ai-platform-spec, .clone-ai-count-panel, .clone-ai-replicate-panel, .clone-ai-module-panel, .clone-ai-model-panel, .clone-ai-video-panel) {
    padding: 11px;
  }

  .product-clone-page[data-tool="clone"] .clone-ai-upload-zone {
    min-height: 120px;
  }

  .product-clone-page[data-tool="clone"] .clone-ai-tag-group,
  .product-clone-page[data-tool="clone"] .clone-ai-basic-select-grid,
  .product-clone-page[data-tool="clone"] .clone-ai-model-select-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-clone-page[data-tool="clone"] .clone-ai-preview {
    min-height: 560px;
    padding: 86px 12px 128px;
  }

  .product-clone-page[data-tool="clone"] .clone-ai-empty-state {
    min-height: 220px;
    padding: 22px 16px;
  }

  .product-clone-page[data-tool="clone"] .clone-ai-bottom-input {
    right: 10px;
    bottom: 12px;
    left: 10px;
  }

  .product-clone-page[data-tool="clone"] .clone-ai-input-wrapper {
    grid-template-columns: minmax(0, 1fr) 36px;
    gap: 8px;
    padding: 10px;
    border-radius: 16px;
  }

  .product-clone-page[data-tool="clone"] .clone-ai-send-button {
    width: 36px;
    height: 36px;
  }
}

@media (max-width: 900px) {
  .product-clone-page {
    box-sizing: border-box;
    padding-top: 58px;
  }

  .product-clone-page > .product-clone-shell {
    min-height: calc(100% - 58px);
  }
}

@media (max-width: 480px) {
  .product-clone-page {
    padding-top: 56px;
  }

  .product-clone-page > .product-clone-shell {
    min-height: calc(100% - 56px);
  }
}

/* Ecommerce refinement pass: make the preview state more informative and selected controls quieter. */
.product-clone-page[data-tool="clone"] .clone-ai-preview {
  padding-top: 138px;
}

.product-clone-page[data-tool="clone"] .clone-ai-preview-header {
  gap: 9px;
}

.product-clone-page[data-tool="clone"] .clone-ai-preview-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  max-width: min(100%, 720px);
}

.product-clone-page[data-tool="clone"] .clone-ai-preview-summary span {
  display: inline-flex;
  align-items: center;
  max-width: 180px;
  min-height: 26px;
  padding: 0 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.095);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  color: rgba(232, 240, 235, 0.68);
  font-size: 11px;
  font-weight: 780;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-clone-page[data-tool="clone"] .clone-ai-preview-summary span:first-child {
  border-color: rgba(var(--ecm-accent-rgb), 0.28);
  background: rgba(var(--ecm-accent-rgb), 0.08);
  color: var(--ecm-accent);
}

.product-clone-page[data-tool="clone"] :is(
  .clone-ai-module-list button,
  .clone-ai-model-scene-grid button,
  .clone-ai-replicate-levels button,
  .clone-ai-video-options button
),
.product-clone-page:is([data-tool="set"], [data-tool="detail"], [data-tool="wear"]) :is(
  .product-set-structure-grid button,
  .product-detail-module-grid button,
  .product-clone-scene-grid button,
  .product-clone-ratio-row button
) {
  position: relative;
  overflow: hidden;
}

.product-clone-page[data-tool="clone"] :is(
  .clone-ai-module-list button.is-active,
  .clone-ai-model-scene-grid button.is-active,
  .clone-ai-replicate-levels button.is-active,
  .clone-ai-video-options button.is-active
),
.product-clone-page:is([data-tool="set"], [data-tool="detail"], [data-tool="wear"]) :is(
  .product-set-structure-grid button.is-active,
  .product-detail-module-grid button.is-active,
  .product-clone-scene-grid button.is-active,
  .product-clone-ratio-row button.is-active
) {
  border-color: rgba(var(--ecm-accent-rgb), 0.5);
  background:
    linear-gradient(90deg, rgba(var(--ecm-accent-rgb), 0.13), rgba(var(--ecm-accent-rgb), 0.035)),
    rgba(255, 255, 255, 0.035);
  color: var(--ecm-text);
}

.product-clone-page[data-tool="clone"] :is(
  .clone-ai-module-list button.is-active,
  .clone-ai-model-scene-grid button.is-active,
  .clone-ai-replicate-levels button.is-active,
  .clone-ai-video-options button.is-active
)::before,
.product-clone-page:is([data-tool="set"], [data-tool="detail"], [data-tool="wear"]) :is(
  .product-set-structure-grid button.is-active,
  .product-detail-module-grid button.is-active,
  .product-clone-scene-grid button.is-active,
  .product-clone-ratio-row button.is-active
)::before {
  position: absolute;
  inset: 8px auto 8px 0;
  width: 3px;
  border-radius: 999px;
  background: var(--ecm-accent);
  content: "";
}

.product-clone-page[data-tool="clone"] .clone-ai-module-list button.is-active span,
.product-clone-page:is([data-tool="set"], [data-tool="detail"], [data-tool="wear"]) :is(
  .product-set-structure-grid button.is-active em,
  .product-detail-module-grid button.is-active span
) {
  color: rgba(232, 240, 235, 0.62);
}

@media (max-width: 860px) {
  .product-clone-page[data-tool="clone"] .clone-ai-preview {
    padding-top: 148px;
  }
}

@media (max-width: 620px) {
  .product-clone-page[data-tool="clone"] .clone-ai-preview {
    padding-top: 158px;
  }

  .product-clone-page[data-tool="clone"] .clone-ai-preview-summary {
    gap: 6px;
  }

  .product-clone-page[data-tool="clone"] .clone-ai-preview-summary span {
    max-width: 138px;
    min-height: 24px;
    padding: 0 8px;
    font-size: 10px;
  }
}

@media (max-height: 760px) {
  .product-clone-page[data-tool="clone"].is-settings-collapsed .clone-ai-preview {
    grid-template-rows: auto minmax(220px, 1fr) auto;
    align-content: stretch;
    justify-items: stretch;
    overflow: auto;
    padding-top: clamp(28px, 7vh, 72px);
    padding-bottom: 20px;
  }

  .product-clone-page[data-tool="clone"].is-settings-collapsed .clone-ai-preview-header {
    position: static;
    width: 100%;
    max-width: none;
  }

  .product-clone-page[data-tool="clone"].is-settings-collapsed .clone-ai-empty-state {
    align-self: center;
    justify-self: center;
    min-height: min(260px, 36vh);
  }

  .product-clone-page[data-tool="clone"].is-settings-collapsed .clone-ai-bottom-input {
    position: static;
    width: min(100%, 780px);
    align-self: end;
    justify-self: center;
  }
}

@media (max-width: 860px) {
  .product-clone-page[data-tool="clone"] .clone-ai-preview {
    grid-template-rows: auto minmax(220px, 1fr) auto;
    align-content: stretch;
    justify-items: stretch;
    overflow: auto;
    padding-bottom: 20px;
  }

  .product-clone-page[data-tool="clone"] .clone-ai-preview-header {
    position: static;
    width: 100%;
    max-width: none;
  }

  .product-clone-page[data-tool="clone"] .clone-ai-empty-state {
    align-self: center;
    justify-self: center;
  }

  .product-clone-page[data-tool="clone"] .clone-ai-bottom-input {
    position: static;
    width: min(100%, 780px);
    align-self: end;
    justify-self: center;
  }
}

@media (max-width: 620px) {
  .product-clone-page[data-tool="clone"] .clone-ai-preview {
    grid-template-rows: auto minmax(210px, 1fr) auto;
    gap: 16px;
    padding-bottom: 14px;
  }

  .product-clone-page[data-tool="clone"] .clone-ai-empty-state {
    min-height: min(220px, 34vh);
  }
}

/* Mobile preview rhythm: once the preview header is in normal flow, remove the desktop top reserve. */
@media (max-width: 860px) {
  .product-clone-page[data-tool="clone"] .clone-ai-preview {
    min-height: 520px;
    padding-top: 18px;
  }
}

@media (max-width: 620px) {
  .product-clone-page[data-tool="clone"] .clone-ai-preview {
    min-height: 440px;
    padding-top: 14px;
  }
}

/* Mobile clone header alignment: keep the tool title in normal flow, but attach it to the top nav rhythm. */
@media (max-width: 900px) {
  .product-clone-page[data-tool="clone"] {
    padding-top: 59px;
  }

  .product-clone-page[data-tool="clone"] > .product-clone-shell {
    min-height: calc(100% - 59px);
  }

  .product-clone-page[data-tool="clone"] .clone-ai-panel {
    padding-top: 0;
  }

  .product-clone-page[data-tool="clone"] .clone-ai-logo {
    margin: 0 -18px 2px;
  }
}

@media (max-width: 620px) {
  .product-clone-page[data-tool="clone"] .clone-ai-panel {
    padding: 0 14px 14px;
  }

  .product-clone-page[data-tool="clone"] .clone-ai-logo {
    margin: 0 -14px 0;
  }
}

@media (max-width: 480px) {
  .product-clone-page[data-tool="clone"] {
    padding-top: 59px;
  }

  .product-clone-page[data-tool="clone"] > .product-clone-shell {
    min-height: calc(100% - 59px);
  }
}

