#okp-vs-wrap { font-family: 'Inter', 'Segoe UI', sans-serif; max-width: 900px; margin: 0 auto; padding: 24px 16px; color: #0f1f16; }

/* Steps */
.ovs-steps { display: flex; align-items: center; margin-bottom: 32px; gap: 0; }
.ovs-step { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: #9ab8a6; white-space: nowrap; padding: 6px 10px; border-radius: 20px; }
.ovs-step.active { background: #1a5c38; color: #fff; }
.ovs-step.done { background: #e8f5ee; color: #1a5c38; }
.ovs-step-num { width: 20px; height: 20px; border-radius: 50%; background: rgba(255,255,255,.3); display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; }
.ovs-step-line { flex: 1; height: 2px; background: #d4ead9; min-width: 12px; }

/* Panels */
.ovs-panel { background: #fff; border: 1.5px solid #d4ead9; border-radius: 12px; padding: 24px; margin-bottom: 16px; }
.ovs-panel-title { font-size: 18px; font-weight: 800; color: #0f1f16; margin: 0 0 8px; }
.ovs-panel-desc { font-size: 13px; color: #4a6858; margin: 0 0 16px; line-height: 1.6; }

/* Script textarea */
#ovs-script { width: 100%; border: 1.5px solid #a8d8be; border-radius: 10px; padding: 12px; font-size: 13px; font-family: Georgia, serif; line-height: 1.8; box-sizing: border-box; resize: vertical; min-height: 200px; }
#ovs-script:focus { outline: none; border-color: #1a5c38; }

/* Settings row */
.ovs-settings-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; margin: 16px 0; }
@media (max-width: 600px) { .ovs-settings-row { grid-template-columns: 1fr; } }
.ovs-field label { display: block; font-size: 11px; font-weight: 700; color: #4a6858; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 6px; }
.ovs-field select { width: 100%; border: 1.5px solid #a8d8be; border-radius: 8px; padding: 9px 12px; font-size: 13px; background: #fff; }

/* Style preview cards */
.ovs-style-preview { display: flex; gap: 10px; overflow-x: auto; padding: 4px 0 12px; scrollbar-width: none; margin-bottom: 16px; }
.ovs-style-preview::-webkit-scrollbar { display: none; }
.ovs-style-card { flex-shrink: 0; width: 80px; text-align: center; cursor: pointer; border-radius: 10px; padding: 8px 4px; border: 2px solid transparent; transition: border .15s, background .15s; }
.ovs-style-card.active { border-color: #1a5c38; background: #e8f5ee; }
.ovs-style-thumb { width: 60px; height: 60px; border-radius: 8px; margin: 0 auto 6px; display: flex; align-items: center; justify-content: center; font-size: 28px; }
.ovs-style-card span { font-size: 10px; font-weight: 700; color: #4a6858; }

/* Buttons */
.ovs-btn-primary { background: #1a5c38; color: #fff; border: none; padding: 11px 22px; border-radius: 8px; font-size: 14px; font-weight: 700; cursor: pointer; transition: opacity .15s; }
.ovs-btn-primary:hover { opacity: .88; }
.ovs-btn-primary:disabled { opacity: .45; cursor: not-allowed; }
.ovs-btn-secondary { background: #fff; color: #1a5c38; border: 1.5px solid #a8d8be; padding: 10px 20px; border-radius: 8px; font-size: 13px; font-weight: 700; cursor: pointer; }
.ovs-btn-success { background: #2ecc71; color: #fff; border: none; padding: 11px 22px; border-radius: 8px; font-size: 14px; font-weight: 700; cursor: pointer; }
.ovs-action-row { display: flex; gap: 10px; align-items: center; margin-top: 20px; flex-wrap: wrap; }

/* Scene cards */
.ovs-scene-card { border: 1.5px solid #d4ead9; border-radius: 10px; padding: 14px; margin-bottom: 12px; background: #f7fbf9; }
.ovs-scene-header { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.ovs-scene-num { background: #1a5c38; color: #fff; width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; flex-shrink: 0; }
.ovs-scene-dur { font-size: 11px; color: #6b8c78; font-weight: 600; }
.ovs-scene-narration { font-size: 13px; color: #0f1f16; line-height: 1.6; margin-bottom: 8px; padding: 8px; background: #fff; border-radius: 6px; border: 1px solid #e8f5ee; }
.ovs-scene-prompt-label { font-size: 11px; font-weight: 700; color: #4a6858; text-transform: uppercase; margin-bottom: 4px; }
.ovs-scene-prompt { width: 100%; border: 1.5px solid #a8d8be; border-radius: 6px; padding: 8px; font-size: 12px; font-family: Inter, sans-serif; resize: vertical; min-height: 60px; box-sizing: border-box; }

/* Image grid */
#ovs-image-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin: 16px 0; }
.ovs-img-card { border-radius: 10px; overflow: hidden; border: 2px solid #d4ead9; position: relative; background: #f0f9f4; aspect-ratio: 16/9; }
.ovs-img-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ovs-img-card .ovs-img-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,.4); display: none; align-items: center; justify-content: center; cursor: pointer; }
.ovs-img-card:hover .ovs-img-overlay { display: flex; }
.ovs-img-card .ovs-img-loading { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; font-size: 12px; color: #4a6858; }
.ovs-img-scene-label { position: absolute; bottom: 6px; left: 6px; background: rgba(0,0,0,.6); color: #fff; font-size: 10px; padding: 2px 6px; border-radius: 4px; font-weight: 700; }

/* Progress */
.ovs-progress-bg { background: #d4ead9; border-radius: 8px; height: 10px; overflow: hidden; margin-bottom: 8px; }
.ovs-progress-fill { height: 10px; background: #1a5c38; border-radius: 8px; transition: width .4s; }
.ovs-status-text { font-size: 12px; color: #4a6858; text-align: center; margin: 0; }

/* Voice box */
.ovs-voice-box { background: #f7fbf9; border: 1.5px solid #d4ead9; border-radius: 10px; padding: 16px; margin-bottom: 16px; }
#ovs-voice-script-preview { font-size: 13px; color: #4a6858; font-style: italic; line-height: 1.7; max-height: 120px; overflow-y: auto; }

/* Status */
.ovs-status { padding: 10px 14px; border-radius: 8px; font-size: 13px; font-weight: 600; margin-top: 12px; }
.ovs-status.error { background: #fef2f2; color: #c0392b; border: 1px solid #f8a8a8; }
.ovs-status.success { background: #e8f5ee; color: #1a5c38; border: 1px solid #a8d8be; }
.ovs-status.info { background: #e8f4f8; color: #1a5c38; border: 1px solid #bee3f8; }

/* Download */
.ovs-download-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.ovs-download-row a.ovs-btn-primary { text-decoration: none; }

/* Spinner */
.ovs-spin { width: 20px; height: 20px; border: 3px solid #d4ead9; border-top-color: #1a5c38; border-radius: 50%; animation: ovs-spin .7s linear infinite; display: inline-block; vertical-align: middle; margin-right: 6px; }
@keyframes ovs-spin { to { transform: rotate(360deg); } }

/* Image loading placeholder */
.ovs-img-card { background: #f0f0f8; border-radius: 10px; overflow: hidden; position: relative; min-height: 140px; }
.ovs-img-card img { width: 100%; display: block; opacity: 0; transition: opacity 0.4s; }
.ovs-img-card img.loaded { opacity: 1; }
.ovs-img-placeholder { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; background: #f0f0f8; font-size: .8em; color: #888; gap: 8px; }
.ovs-img-placeholder.hidden { display: none; }

/* ═══════════════════════════════════════════════════
   v1.1.0 ADDITIONS — new controls + per-scene voice cards
═══════════════════════════════════════════════════ */

/* Subtitle row in Step 1 settings */
.ovs-subtitle-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 10px 0 4px;
    flex-wrap: wrap;
}
.ovs-subtitle-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .88em;
    font-weight: 600;
    color: #333;
    cursor: pointer;
}
.ovs-subtitle-toggle input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}
.ovs-subtitle-opts select {
    font-size: .85em;
    padding: 5px 8px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background: #fff;
}

/* Per-scene voice card grid */
.ovs-voice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 14px;
    margin: 16px 0;
}

.ovs-voice-card {
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 14px 16px;
    transition: border-color .2s, background .2s;
}
.ovs-voice-card.generating {
    border-color: #f7931e;
    background: #fff8f2;
}
.ovs-voice-card.done {
    border-color: #2ecc71;
    background: #f2fff6;
}
.ovs-voice-card.failed {
    border-color: #e74c3c;
    background: #fff5f5;
}

.ovs-voice-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}
.ovs-voice-scene-num {
    font-weight: 700;
    font-size: .88em;
    color: #333;
    background: #e8e8e8;
    padding: 2px 8px;
    border-radius: 20px;
}
.ovs-voice-card-status {
    font-size: .82em;
    font-weight: 600;
    color: #666;
    white-space: nowrap;
}
.ovs-voice-card.done   .ovs-voice-card-status { color: #27ae60; }
.ovs-voice-card.failed .ovs-voice-card-status { color: #e74c3c; }
.ovs-voice-card.generating .ovs-voice-card-status { color: #f7931e; }

.ovs-voice-card-text {
    font-size: .82em;
    color: #555;
    line-height: 1.5;
}

/* Progress bar in Step 4 */
#ovs-voice-progress-wrap {
    margin-bottom: 12px;
}
#ovs-voice-gen-status {
    margin-top: 6px;
    font-size: .88em;
}

/* Spin animation (reused) */
@keyframes ovs-spin {
    to { transform: rotate(360deg); }
}
.ovs-spin {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(0,0,0,.15);
    border-top-color: #f7931e;
    border-radius: 50%;
    animation: ovs-spin .7s linear infinite;
    vertical-align: middle;
    margin-right: 5px;
}
