/* -- Production Stage --------------------- */
.production-box {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
}

.production-box .prod-status {
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.production-box .prod-prompt {
  background: var(--bg);
  border: 1px solid #333;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  color: var(--muted);
  font-style: italic;
  margin: 1rem 0;
  text-align: left;
}

.audio-player {
  margin: 1.5rem 0;
}

.audio-player audio {
  width: 100%;
  border-radius: 8px;
}


/* ── Rating feedback ───────────────────────── */
.rating-feedback {
  margin-top: 0.5rem;
}
.rating-fb-inner {
  background: var(--surface2, #16213e);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 0.75rem;
}
.rating-fb-label {
  font-size: 0.82rem;
  margin-bottom: 0.35rem;
}
.rating-fb-inner .edit-textarea {
  font-size: 0.82rem;
  min-height: 50px;
}
.rating-fb-thanks {
  font-size: 0.82rem;
  color: var(--green, #4ecca3);
  padding: 0.5rem;
}

.duration-picker {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.duration-picker label {
  font-size: 0.85rem;
  color: var(--muted);
}

.duration-picker select {
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  border: 1px solid #333;
  background: var(--bg);
  color: var(--text);
  font-size: 0.9rem;
}

/* -- Final Summary Card ------------------- */
.final-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-top: 1.5rem;
}

.final-card h3 {
  color: var(--green);
  margin-bottom: 1rem;
}

.final-lyrics {
  margin-top: 1.5rem;
  padding: 1rem;
  background: var(--surface2);
  border-radius: 8px;
}

.final-lyrics pre {
  white-space: pre-wrap;
  font-family: inherit;
  font-size: 0.9rem;
  line-height: 1.7;
}

.no-token-notice {
  background: var(--surface2);
  border: 1px solid #f0c040;
  border-radius: var(--radius);
  padding: 1rem 1.5rem;
  margin: 1rem 0;
  color: #f0c040;
  font-size: 0.85rem;
}


/* -- Voice Generation -------------------- */
.voice-box {
  margin-top: 1.5rem;
  border: 1px solid rgba(78, 204, 163, 0.2);
}

.voice-title {
  color: var(--green);
  margin-bottom: 0.25rem;
}

.voice-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.voice-picker label,
.voice-mode label {
  font-size: 0.85rem;
  color: var(--muted);
}

.voice-picker select {
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  border: 1px solid #333;
  background: var(--bg);
  color: var(--text);
  font-size: 0.9rem;
  margin-left: 0.5rem;
}

.voice-mode input[type="checkbox"] {
  accent-color: var(--green);
  margin-right: 0.4rem;
}

.voice-mode label {
  display: flex;
  align-items: center;
  cursor: pointer;
}


/* ── Voice reference ─────────────────────────────────────────── */

.voice-ref-box {
  text-align: left;
  margin-bottom: 0.5rem;
}

.voice-ref-hint {
  font-size: 0.78rem;
  color: var(--muted);
  margin: 0.25rem 0 0.5rem 0;
}

.required-badge {
  background: var(--accent);
  color: var(--bg);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-left: 0.35rem;
}

.voice-upload-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.voice-upload-btn {
  cursor: pointer;
  white-space: nowrap;
  font-size: 0.85rem !important;
}

.voice-file-name {
  font-size: 0.85rem;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 200px;
}

#voiceUploadStatus {
  font-size: 0.8rem;
  white-space: nowrap;
}

/* -- Voice preset chips ------------------- */
.voice-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: 0.35rem;
}

.voice-chip {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  font-size: 0.7rem;
  border: 1px solid var(--border);
  border-radius: 1rem;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.15s;
  user-select: none;
}

.voice-chip:hover {
  border-color: var(--accent);
  color: var(--fg);
}

.voice-chip.active {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}

/* -- Member demo area --------------------- */
.member-demo {
  padding: 0.5rem 0;
}

.member-demo audio {
  border-radius: var(--radius);
}

/* -- Environment banner ------------------- */
.env-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  padding: 0.25rem 0;
  text-align: center;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  pointer-events: none;
}

.env-banner.staging {
  background: #f59e0b;
  color: #000;
}

.env-banner.development {
  background: #3b82f6;
  color: #fff;
}
