/* ── Smart Production Engine ────────────────────────────────────────────── */
.production-panel { max-width: 1100px; margin: 0 auto; }
.panel-header h2 { font-size: 1.8rem; margin-bottom: 4px; }
.panel-subtitle { color: #94a3b8; font-size: 0.9rem; margin-bottom: 24px; }
.production-step { background: var(--bg-secondary,#1e293b); border-radius: 12px; padding: 24px; margin-bottom: 20px; }
.production-step h3 { font-size: 1.1rem; margin-bottom: 16px; color: var(--accent,#00d4aa); }

.source-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin-bottom: 16px; }
.source-card { background: var(--bg-tertiary,#334155); border-radius: 8px; padding: 16px; cursor: pointer; border: 2px solid transparent; transition: border-color 0.2s; display: flex; gap: 12px; align-items: center; }
.source-card:hover { border-color: var(--accent,#00d4aa); }
.source-card.active { border-color: var(--accent,#00d4aa); background: rgba(0,212,170,0.1); }
.source-icon { font-size: 2rem; }
.source-info small { display: block; color: #94a3b8; font-size: 0.8rem; }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.field { display: flex; flex-direction: column; gap: 4px; }
.field label { font-size: 0.85rem; color: #94a3b8; }

.text-input, .select-input { background: var(--bg-tertiary,#334155); border: 1px solid #475569; border-radius: 6px; padding: 8px 12px; color: #e2e8f0; font-size: 0.9rem; width: 100%; box-sizing: border-box; }
.select-input { cursor: pointer; }
.text-input:focus, .select-input:focus { outline: none; border-color: var(--accent,#00d4aa); }

.cost-card { background: var(--bg-tertiary,#334155); border-radius: 8px; padding: 16px; margin-bottom: 16px; }
.cost-row { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid #334155; }
.cost-row:last-child { border-bottom: none; }
.cost-row.highlight { font-size: 1.1rem; color: var(--accent,#00d4aa); margin-top: 4px; }
.cost-row.savings { color: #4ade80; }
.cost-warning { background: rgba(251,191,36,0.15); border: 1px solid #fbbf24; border-radius: 6px; padding: 10px 14px; color: #fbbf24; font-size: 0.88rem; margin: 10px 0; }
.cost-info { background: rgba(100,116,139,0.2); border-radius: 6px; padding: 8px 14px; font-size: 0.88rem; color: #94a3b8; }

.scene-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 20px; max-height: 400px; overflow-y: auto; }
.scene-row { display: grid; grid-template-columns: 32px 1fr auto auto auto; gap: 8px; align-items: center; background: var(--bg-tertiary,#334155); border-radius: 6px; padding: 8px 12px; font-size: 0.85rem; }
.scene-index { color: #475569; font-size: 0.8rem; text-align: center; }
.scene-type-badge { display: inline-block; padding: 2px 6px; border-radius: 4px; font-size: 0.75rem; background: #475569; color: #e2e8f0; margin-bottom: 2px; }
.scene-type-hook { background: rgba(251,191,36,0.2); color: #fbbf24; }
.scene-type-cta { background: rgba(239,68,68,0.2); color: #f87171; }
.scene-type-offer { background: rgba(34,197,94,0.2); color: #4ade80; }
.scene-type-teaching { background: rgba(59,130,246,0.2); color: #60a5fa; }
.scene-text { color: #cbd5e1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 400px; }
.scene-timing { font-size: 0.75rem; color: #64748b; }
.scene-scores { text-align: center; }
.score-badge { background: #475569; padding: 2px 6px; border-radius: 4px; font-size: 0.75rem; }
.scene-visual { display: flex; flex-direction: column; gap: 2px; }
.scene-reason { font-size: 0.7rem; color: #64748b; max-width: 200px; }
.scene-cost { font-weight: 600; text-align: right; min-width: 48px; }
.cost-avatar { color: var(--accent,#00d4aa); }
.cost-cheap { color: #64748b; }

.panel-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.btn-primary { background: var(--accent,#00d4aa); color: #0f172a; border: none; border-radius: 8px; padding: 10px 20px; font-weight: 600; cursor: pointer; transition: opacity 0.2s; }
.btn-primary:hover { opacity: 0.85; }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-secondary { background: #334155; color: #e2e8f0; border: 1px solid #475569; border-radius: 8px; padding: 10px 20px; cursor: pointer; }
.btn-ghost { background: transparent; color: #94a3b8; border: 1px solid #475569; border-radius: 8px; padding: 10px 20px; cursor: pointer; }
.btn-ghost:hover { color: #e2e8f0; border-color: #94a3b8; }

.render-progress { background: var(--bg-secondary,#1e293b); border-radius: 8px; padding: 20px; margin-top: 16px; }
.progress-bar { background: #334155; border-radius: 4px; height: 8px; overflow: hidden; margin: 12px 0; }
.progress-fill { background: var(--accent,#00d4aa); height: 100%; transition: width 0.5s ease; }
.progress-text { font-size: 0.88rem; color: #94a3b8; }

.final-output { margin-top: 20px; }
.output-clips { margin-top: 12px; }
.clip-row { background: var(--bg-tertiary,#334155); padding: 8px 12px; border-radius: 6px; margin-bottom: 6px; display: flex; gap: 12px; font-size: 0.85rem; }
.template-desc { color: #94a3b8; font-size: 0.88rem; font-style: italic; margin-top: 8px; }

.btn-sm { background: rgba(0,212,170,0.15); color: #00d4aa; border: 1px solid rgba(0,212,170,0.3); border-radius: 6px; padding: 4px 10px; font-size: 0.78rem; cursor: pointer; white-space: nowrap; }
.btn-sm:hover { background: rgba(0,212,170,0.25); }
.recording-actions { display: flex; gap: 6px; margin-top: 6px; }

