.sku-full-frame-panel {
  display: grid;
  gap: 8px;
  margin: 10px 0 14px;
}

.sku-full-frame-heading,
.sku-full-frame-preview {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sku-full-frame-heading { justify-content: space-between; }
.sku-full-frame-heading span {
  padding: 2px 7px;
  border-radius: 999px;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  font-size: 11px;
  font-weight: 700;
}
.sku-full-frame-panel p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.sku-full-frame-panel [data-frame-status][data-tone="error"] { color: var(--danger, #d65b4a); }
.sku-full-frame-panel [data-frame-status][data-tone="required"] { color: var(--accent); }
.sku-full-frame-preview button { flex: none; white-space: nowrap; }
.sku-full-frame-upload { margin: 0; }
.sku-full-frame-preview {
  min-height: 52px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}
.sku-full-frame-preview[hidden],
.sku-full-frame-upload[hidden] { display: none; }
.sku-full-frame-preview img { width: 42px; height: 42px; border-radius: 5px; object-fit: cover; }
.sku-full-frame-preview strong { min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }

/* The dark SKU result area uses the same per-image generation slots as light mode. */
html[data-theme="dark"] .production-workspace:has(.sku-horizontal-workbench) .sku-generation-slots {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  min-width: 0;
  margin: 0;
}

html[data-theme="dark"] .production-workspace:has(.sku-horizontal-workbench) .sku-generation-slots[hidden] { display: none; }

html[data-theme="dark"] .production-workspace:has(.sku-horizontal-workbench) .sku-generation-slot {
  position: relative;
  display: grid;
  min-height: min(30vw, 290px);
  padding: 16px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--line) 82%, #9eb5dc 18%);
  border-radius: 17px;
  background: color-mix(in srgb, var(--surface) 92%, #101827 8%);
  box-shadow: 0 10px 24px rgb(0 0 0 / 16%), inset 0 1px 0 rgb(255 255 255 / 5%);
  place-items: center;
  text-align: center;
}

html[data-theme="dark"] .production-workspace:has(.sku-horizontal-workbench) .sku-generation-slot[data-current] { border-color: rgb(255 129 83 / 78%); }
html[data-theme="dark"] .production-workspace:has(.sku-horizontal-workbench) .sku-generation-slot[data-current]::after {
  position: absolute;
  bottom: 0;
  left: -35%;
  width: 34%;
  height: 3px;
  content: '';
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, #ff7a56, transparent);
  animation: sku-generation-sweep 1.8s ease-in-out infinite;
}

html[data-theme="dark"] .production-workspace:has(.sku-horizontal-workbench) .sku-generation-placeholder { display: grid; width: 92px; height: 92px; margin-top: auto; place-items: center; }
html[data-theme="dark"] .production-workspace:has(.sku-horizontal-workbench) :is(.sku-generation-image-icon, .sku-generation-image-fallback, .sku-generation-orbit) { grid-area: 1 / 1; }
html[data-theme="dark"] .production-workspace:has(.sku-horizontal-workbench) .sku-generation-image-icon { width: 58px; height: 58px; color: #9baaca; stroke-width: 1.55; }
html[data-theme="dark"] .production-workspace:has(.sku-horizontal-workbench) .sku-generation-image-fallback { width: 54px; height: 40px; border: 2px solid #9baaca; border-radius: 10px; }
html[data-theme="dark"] .production-workspace:has(.sku-horizontal-workbench) .sku-generation-orbit {
  width: 82px;
  height: 82px;
  border: 3px solid rgb(110 146 209 / 22%);
  border-top-color: #ff7a56;
  border-right-color: rgb(255 122 86 / 60%);
  border-radius: 50%;
  animation: sku-generation-spin .9s linear infinite;
}
html[data-theme="dark"] .production-workspace:has(.sku-horizontal-workbench) .sku-generation-slot[data-state="queued"] .sku-generation-orbit { border-top-color: rgb(160 125 255 / 70%); border-right-color: rgb(160 125 255 / 30%); animation-duration: 1.6s; }
html[data-theme="dark"] .production-workspace:has(.sku-horizontal-workbench) .sku-generation-dots { display: flex; gap: 7px; margin: 10px 0 8px; }
html[data-theme="dark"] .production-workspace:has(.sku-horizontal-workbench) .sku-generation-dots i { width: 7px; height: 7px; border-radius: 50%; background: #536075; }
html[data-theme="dark"] .production-workspace:has(.sku-horizontal-workbench) .sku-generation-slot[data-current] .sku-generation-dots i:first-child { background: #ff7a56; }
html[data-theme="dark"] .production-workspace:has(.sku-horizontal-workbench) .sku-generation-slot[data-state="queued"] .sku-generation-dots i:first-child { background: rgb(160 125 255 / 72%); }
html[data-theme="dark"] .production-workspace:has(.sku-horizontal-workbench) .sku-generation-copy { display: grid; gap: 5px; align-self: start; min-width: 0; }
html[data-theme="dark"] .production-workspace:has(.sku-horizontal-workbench) .sku-generation-copy strong { color: var(--ink); font-size: 14px; line-height: 20px; }
html[data-theme="dark"] .production-workspace:has(.sku-horizontal-workbench) .sku-generation-copy span { color: var(--muted); font-size: 12px; line-height: 18px; }
html[data-theme="dark"] .production-workspace:has(.sku-horizontal-workbench) .sku-generation-elapsed { color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }

@media (max-width: 900px) {
  html[data-theme="dark"] .production-workspace:has(.sku-horizontal-workbench) .sku-generation-slots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  html[data-theme="dark"] .production-workspace:has(.sku-horizontal-workbench) .sku-generation-slots { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html[data-theme="dark"] .production-workspace:has(.sku-horizontal-workbench) :is(.sku-generation-orbit, .sku-generation-slot[data-current]::after) { animation: none; }
}
