/* ── Generator Canvas ────────────────────────── */
.generator-canvas-wrap {
  position: relative;
  background-image:
    linear-gradient(45deg, #e2e8f0 25%, transparent 25%),
    linear-gradient(-45deg, #e2e8f0 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #e2e8f0 75%),
    linear-gradient(-45deg, transparent 75%, #e2e8f0 75%);
  background-size: 16px 16px;
  background-position: 0 0, 0 8px, 8px -8px, -8px 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  border: 1px solid var(--color-border);
  margin: 20px 0;
}

.live-canvas {
  max-width: 100%;
  display: block;
}

.canvas-controls {
  display: flex;
  flex-direction: row;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--color-border);
  background: var(--color-surface);
}

.color-stop-editor {
  display: flex;
  gap: 4px;
  align-items: center;
}

/* ── Upload zone for screenshot-mockup ───────── */
.upload-zone {
  border: 2px dashed var(--color-border);
  border-radius: var(--radius-lg);
  padding: 48px 24px;
  text-align: center;
  cursor: pointer;
  transition: all 250ms;
  background: var(--color-surface);
}

.upload-zone:hover,
.upload-zone.drag-over {
  border-color: var(--color-brand);
  background: var(--color-brand-light);
}

.upload-zone-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  color: var(--color-text-muted);
}

.upload-zone-icon svg {
  width: 100%;
  height: 100%;
}

.upload-zone-text {
  font-size: 16px;
  color: var(--color-text-secondary);
  margin-bottom: 12px;
}

.upload-zone-text strong {
  color: var(--color-text);
}

.upload-zone-or {
  font-size: 13px;
  color: var(--color-text-muted);
  margin-bottom: 12px;
}

.upload-zone-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  background: var(--color-brand);
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background 200ms;
}

.upload-zone-btn:hover { background: var(--color-brand-dark); }

.upload-zone-hint {
  font-size: 12px;
  color: var(--color-text-muted);
  margin-top: 12px;
}

/* ── File List ──────────────────────────────── */
.file-list {
  margin: 20px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.file-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.file-item-thumb {
  width: 48px;
  height: 48px;
  background: var(--color-bg);
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.file-item-info { flex: 1; min-width: 0; }

.file-item-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.file-item-meta {
  font-size: 12px;
  color: var(--color-text-muted);
  margin-top: 2px;
}

/* ── Progress ─────────────────────────────── */
.progress-section {
  padding: 32px 0;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: var(--color-border);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 12px;
}

.progress-bar-fill {
  height: 100%;
  background: var(--color-brand);
  border-radius: 4px;
  width: 0%;
  transition: width 300ms;
}

.progress-label {
  font-size: 14px;
  color: var(--color-text-secondary);
  text-align: center;
}
