/* ═══════════════════════════════════════════════════════════════════
   VIDEO STUDIO PRO — CSS Principal + Responsive
   ═══════════════════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: #050505; color: rgba(255,255,255,0.9); font-family: 'Inter', -apple-system, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: clip; }
a { color: #00F0FF; text-decoration: none; }
a:hover { text-decoration: underline; }

.hidden { display: none !important; }

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #222; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #333; }

#video-content { min-height: 60vh; }
#audio-content { min-height: 40vh; }
#video-editor-content { min-height: 60vh; }

/* Estudio de Cine · escena única
   Un solo visor dominante y controles progresivos, sin galería duplicada. */
#vid-tab-content-generator.vsp-cinema-workspace,
#vid-tab-content-script.vsp-cinema-workspace {
    grid-template-columns: minmax(460px, 1fr) minmax(390px, 540px) !important;
    gap: clamp(20px, 2.4vw, 40px) !important;
    align-items: start !important;
    max-width: 1480px;
    margin-inline: auto;
}

#vid-tab-content-generator .vsp-cinema-controls {
    display: flex;
    flex-direction: column;
    gap: 16px;
    overflow: visible !important;
}

#vid-tab-content-generator .vsp-cinema-controls > div {
    margin: 0 !important;
}

#vid-tab-content-generator .vsp-cinema-controls > div:not(:first-child):not(.vsp-cinema-map-entry) {
    padding: clamp(16px, 2vw, 22px) !important;
    border: 1px solid rgba(109, 153, 204, 0.18) !important;
    border-radius: 16px !important;
    background: linear-gradient(145deg, rgba(16, 29, 49, 0.94), rgba(9, 18, 32, 0.96)) !important;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.16);
}

#vid-tab-content-generator .vsp-cinema-controls > div:first-child {
    justify-content: flex-start !important;
    padding: 0 2px 2px;
}

#vid-tab-content-generator .vsp-cinema-controls input,
#vid-tab-content-generator .vsp-cinema-controls textarea,
#vid-tab-content-generator .vsp-cinema-controls select {
    border-radius: 10px !important;
    border-color: rgba(116, 151, 192, 0.28) !important;
    background-color: rgba(6, 13, 25, 0.72) !important;
}

#vid-tab-content-generator .vsp-cinema-controls textarea {
    min-height: 132px;
    line-height: 1.55;
}

#vid-tab-content-generator .vsp-cinema-controls button {
    min-height: 44px;
}

#vid-tab-content-generator .vsp-cinema-controls :focus-visible,
#vid-tab-content-generator .vsp-cinema-preview-rail :focus-visible {
    outline: 2px solid #38bdf8 !important;
    outline-offset: 3px;
}

#vid-tab-content-generator .vsp-cinema-preview-rail,
#vid-tab-content-script .vsp-cinema-preview-rail {
    position: sticky !important;
    top: calc(var(--header-height, 70px) + 18px);
    z-index: 8;
    width: 100%;
    min-height: calc(100dvh - var(--header-height, 70px) - 36px);
    max-height: calc(100dvh - var(--header-height, 70px) - 36px);
    margin-block: 18px;
    padding: 18px;
    box-sizing: border-box;
    justify-content: center;
    border: 1px solid rgba(64, 171, 232, 0.22);
    border-radius: 20px;
    background: linear-gradient(155deg, rgba(13, 27, 47, 0.98), rgba(7, 15, 28, 0.98));
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.vsp-cinema-preview-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.vsp-cinema-preview-heading > div {
    display: flex;
    align-items: center;
    gap: 9px;
}

.vsp-cinema-preview-heading > div > span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #26b9f3;
    box-shadow: 0 0 14px rgba(38, 185, 243, 0.75);
}

.vsp-cinema-preview-heading strong {
    color: #f3f8ff;
    font: 800 0.78rem/1 'Outfit', 'Inter', sans-serif;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.vsp-cinema-preview-heading small {
    color: #71849c;
    font-size: 0.68rem;
}

#vid-tab-content-generator .vsp-cinema-preview-stage,
#vid-tab-content-script .vsp-cinema-preview-stage {
    display: grid;
    place-items: center;
    width: 100%;
    height: min(68dvh, 720px);
    min-height: 0;
    max-height: calc(100dvh - var(--header-height, 70px) - 220px);
    overflow: hidden;
    border: 1px solid rgba(120, 164, 214, 0.14);
    border-radius: 15px;
    background:
        radial-gradient(circle at 50% 18%, rgba(31, 134, 190, 0.14), transparent 34%),
        linear-gradient(160deg, #0a1424 0%, #07101d 58%, #09182a 100%);
}

.vsp-cinema-empty {
    display: grid;
    place-items: center;
    align-content: center;
    gap: 24px;
    width: 100%;
    min-height: inherit;
    padding: 38px 24px;
    text-align: center;
}

.vsp-cinema-empty-frame {
    position: relative;
    display: grid;
    place-items: center;
    width: clamp(138px, 36%, 190px);
    aspect-ratio: 9 / 16;
    overflow: hidden;
    border: 1px solid rgba(84, 185, 235, 0.2);
    border-radius: 18px;
    background: linear-gradient(155deg, rgba(30, 75, 108, 0.25), rgba(8, 18, 32, 0.4));
    box-shadow: 0 24px 54px rgba(0, 0, 0, 0.28);
}

.vsp-cinema-empty-glow {
    position: absolute;
    inset: 12% -30% auto;
    height: 42%;
    background: radial-gradient(circle, rgba(32, 181, 244, 0.2), transparent 70%);
    filter: blur(8px);
}

.vsp-cinema-empty-icon {
    position: relative;
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    padding-left: 4px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 50%;
    background: rgba(4, 12, 24, 0.7);
    color: #dff6ff;
    font-size: 1rem;
}

.vsp-cinema-empty-copy {
    display: grid;
    gap: 7px;
    max-width: 360px;
}

.vsp-cinema-empty-copy strong {
    color: #f4f8fc;
    font: 800 clamp(1rem, 1.5vw, 1.18rem)/1.2 'Outfit', 'Inter', sans-serif;
}

.vsp-cinema-empty-copy span {
    color: #8fa3bb;
    font-size: 0.78rem;
    line-height: 1.55;
}

.vsp-cinema-preview-loading {
    display: grid;
    align-content: center;
    gap: 16px;
    width: min(74%, 360px);
    min-height: inherit;
    color: #9fb4ca;
    text-align: center;
    font-size: 0.76rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.vsp-cinema-preview-loading > div {
    height: 3px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
}

.vsp-cinema-preview-loading > div::after {
    content: '';
    display: block;
    width: 45%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #1e91d2, #4fd2ff);
    animation: vspCinemaLoad 1.25s ease-in-out infinite alternate;
}

@keyframes vspCinemaLoad {
    to { transform: translateX(122%); }
}

.vsp-cinema-active-video,
.vsp-cinema-active-video-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    min-height: 0;
}

.vsp-cinema-current-preview {
    height: 100%;
    min-height: 0;
}

.vsp-cinema-active-video {
    flex: 1 1 auto;
    min-height: 0;
}

.vsp-cinema-active-video-inner {
    flex: 1 1 auto;
    height: 100%;
    gap: 12px;
}

.vsp-cinema-active-video-frame,
.vsp-cinema-result-media {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 0;
    max-height: calc(100dvh - var(--header-height, 70px) - 255px);
    overflow: hidden;
    border: 1px solid rgba(78, 183, 235, 0.2);
    border-radius: 13px;
    background: #03070d;
    box-shadow: 0 22px 55px rgba(0, 0, 0, 0.32);
}

[data-preview-ratio="9-16"] .vsp-cinema-active-video-frame,
[data-preview-ratio="9-16"] .vsp-cinema-result-media {
    width: auto;
    height: min(100%, calc(100dvh - var(--header-height, 70px) - 255px), 660px);
    max-width: 100%;
    aspect-ratio: 9 / 16;
}
[data-preview-ratio="16-9"] .vsp-cinema-active-video-frame,
[data-preview-ratio="16-9"] .vsp-cinema-result-media { aspect-ratio: 16 / 9; }
[data-preview-ratio="1-1"] .vsp-cinema-active-video-frame,
[data-preview-ratio="1-1"] .vsp-cinema-result-media { aspect-ratio: 1 / 1; }
[data-preview-ratio="4-3"] .vsp-cinema-active-video-frame,
[data-preview-ratio="4-3"] .vsp-cinema-result-media { aspect-ratio: 4 / 3; }
[data-preview-ratio="3-4"] .vsp-cinema-active-video-frame,
[data-preview-ratio="3-4"] .vsp-cinema-result-media { width: min(100%, 470px); aspect-ratio: 3 / 4; }
[data-preview-ratio="21-9"] .vsp-cinema-active-video-frame,
[data-preview-ratio="21-9"] .vsp-cinema-result-media { aspect-ratio: 21 / 9; }

.vsp-cinema-active-video-frame video,
.vsp-cinema-result-media video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.vsp-cinema-result {
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 14px;
    width: 100%;
    height: 100%;
    min-height: 0;
    padding: 14px;
}

.vsp-cinema-result-meta {
    width: 100%;
    padding: 0 4px 2px;
}

.vsp-cinema-result-actions {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
}

@media (max-width: 1120px) {
    #vid-tab-content-generator.vsp-cinema-workspace,
    #vid-tab-content-script.vsp-cinema-workspace {
        grid-template-columns: minmax(0, 1fr) !important;
    }
    #vid-tab-content-generator .vsp-cinema-preview-rail,
    #vid-tab-content-script .vsp-cinema-preview-rail {
        position: relative !important;
        top: auto;
        min-height: 0;
        max-height: none;
        grid-row: 1;
        width: min(680px, 100%);
        margin: 18px auto 30px;
    }
    #vid-tab-content-generator .vsp-cinema-preview-stage,
    #vid-tab-content-script .vsp-cinema-preview-stage {
        height: min(72vh, 680px);
        max-height: none;
    }
}

@media (max-width: 640px) {
    #vid-tab-content-generator .vsp-cinema-preview-rail,
    #vid-tab-content-script .vsp-cinema-preview-rail { padding: 12px; border-radius: 15px; }
    #vid-tab-content-generator .vsp-cinema-preview-stage,
    #vid-tab-content-script .vsp-cinema-preview-stage { height: 58vh; }
    #vid-tab-content-generator .vsp-cinema-controls > div:not(:first-child):not(.vsp-cinema-map-entry) { padding: 15px !important; }
    .vsp-cinema-preview-heading small { display: none; }
    .vsp-cinema-result-actions { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
    .vsp-cinema-preview-loading > div::after { animation: none; width: 100%; }
}

/* Biblioteca editorial de historias: lectura rápida, detalle bajo demanda. */
.vsp-story-library {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
    gap: 18px;
    width: 100%;
    max-width: 1240px;
}

.vsp-story-library-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 280px;
    padding: 22px;
    overflow: hidden;
    border: 1px solid rgba(71, 167, 218, 0.18);
    border-radius: 16px;
    background:
        radial-gradient(circle at 100% 0, rgba(45, 178, 224, 0.1), transparent 35%),
        linear-gradient(150deg, rgba(14, 27, 45, 0.94), rgba(7, 14, 25, 0.98));
    box-shadow: 0 20px 46px rgba(0, 0, 0, 0.2);
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.vsp-story-library-card::before {
    content: '';
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: linear-gradient(#38bdf8, #8b5cf6);
}

.vsp-story-library-card:hover {
    transform: translateY(-2px);
    border-color: rgba(56, 189, 248, 0.36);
    box-shadow: 0 25px 58px rgba(0, 0, 0, 0.28);
}

.vsp-story-card-header,
.vsp-story-card-title,
.vsp-story-card-chips,
.vsp-story-card-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.vsp-story-card-header { justify-content: space-between; gap: 12px; }
.vsp-story-card-title { gap: 9px; min-width: 0; }
.vsp-story-card-title strong { color: #f4f8fc; font: 800 1rem/1.3 'Outfit', 'Inter', sans-serif; }
.vsp-story-card-header time { color: #71849c; font-size: 0.7rem; white-space: nowrap; }
.vsp-story-card-chips { gap: 7px; margin-top: 14px; }

.vsp-story-chip,
.vsp-story-current {
    padding: 4px 9px;
    border: 1px solid;
    border-radius: 999px;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.025em;
}

.vsp-story-chip.is-tone { color: #c4b5fd; border-color: rgba(139, 92, 246, 0.32); background: rgba(139, 92, 246, 0.1); }
.vsp-story-chip.is-audience { color: #83eaff; border-color: rgba(34, 211, 238, 0.3); background: rgba(34, 211, 238, 0.08); }
.vsp-story-current { color: #4ade80; border-color: rgba(74, 222, 128, 0.3); background: rgba(74, 222, 128, 0.08); }

.vsp-story-card-excerpt {
    margin: 18px 0 14px;
    color: #a8b8ca;
    font-size: 0.82rem;
    line-height: 1.65;
}

.vsp-story-card-details { border-top: 1px solid rgba(120, 164, 214, 0.12); padding-top: 13px; }
.vsp-story-card-details summary { width: fit-content; cursor: pointer; color: #74d8fa; font-size: 0.76rem; font-weight: 800; }
.vsp-story-card-body { margin-top: 12px; color: #d3deea; font-size: 0.82rem; line-height: 1.65; white-space: pre-wrap; }
.vsp-story-card-cast { margin-top: 10px; color: #8294a8; font-size: 0.74rem; line-height: 1.5; white-space: pre-wrap; }
.vsp-story-card-actions { gap: 8px; margin-top: auto; padding-top: 18px; }

.vsp-story-card-button {
    min-height: 38px;
    padding: 8px 12px;
    border: 1px solid rgba(70, 177, 225, 0.28);
    border-radius: 9px;
    background: rgba(36, 108, 151, 0.1);
    color: #9adff8;
    font: 750 0.72rem 'Inter', sans-serif;
    cursor: pointer;
}

.vsp-story-card-button.is-primary { border-color: rgba(52, 211, 153, 0.3); background: rgba(16, 185, 129, 0.1); color: #7ee7bb; }
.vsp-story-card-button:hover { border-color: rgba(83, 204, 244, 0.55); background: rgba(41, 145, 194, 0.16); }
.vsp-story-card-button:focus-visible { outline: 2px solid #38bdf8; outline-offset: 3px; }

/* Mi Cuenta responsive */
@media (max-width: 860px) {
    #module-identidad > div[style*="display:grid"],
    #module-identidad > div[style*="display: grid"] {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
    #workspace input,
    #workspace textarea,
    #workspace select,
    #module-identidad input,
    #module-identidad select {
        font-size: 16px !important; /* Evita auto-zoom en iOS Safari */
    }
    #module-identidad div {
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
}

/* Video Generator responsive */
@media (max-width: 860px) {
    #vid-tab-content-generator,
    #vid-tab-content-script,
    .vsp-project-wrap {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
    #module-video #vid-config-panel {
        max-width: 100%;
    }
}

/* Audio responsive */
@media (max-width: 860px) {
    .audio-2col,
    .voice-columns {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
}

/* Module headers responsive */
@media (max-width: 600px) {
    .module-header h2 { font-size: 1.3rem !important; }
    .module-header p { font-size: 0.75rem; }
    #workspace { padding: 1rem !important; }
}

/* Sidebar mobile */
@media (max-width: 860px) {
    #mobile-hamburger { display: flex !important; }
    #sidebar { transform: translateX(-100%); transition: transform 0.3s ease; position: fixed; z-index: 600; top: var(--header-height); }
    #sidebar.open { transform: translateX(0); box-shadow: 4px 0 30px rgba(0,0,0,0.7); }
    #workspace { margin-left: 0 !important; padding: 1rem !important; }
}

/* Print */
@media print {
    #sidebar, #main-header { display: none !important; }
    #workspace { margin-left: 0 !important; }
}

/* ─── VSP CARDS & DECORATIONS ─── */
.vsp-card {
    background: rgba(255, 255, 255, 0.035) !important;
    border: 1px solid rgba(0, 240, 255, 0.20) !important;
    border-radius: 12px !important;
    padding: 1.5rem !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25) !important;
}

.vsp-card:hover {
    border-color: rgba(0, 240, 255, 0.50) !important;
    box-shadow: 0 0 16px rgba(0, 240, 255, 0.12), 0 4px 24px rgba(0, 0, 0, 0.45) !important;
    transform: translateY(-2px) !important;
}

/* API Key Card - Purple Accent */
.vsp-card.api-card {
    border-color: rgba(139, 92, 246, 0.22) !important;
}

.vsp-card.api-card:hover {
    border-color: rgba(139, 92, 246, 0.55) !important;
    box-shadow: 0 0 16px rgba(139, 92, 246, 0.12), 0 4px 24px rgba(0, 0, 0, 0.45) !important;
}

/* Card typography & accessibility fixes */
.vsp-card h3 {
    color: #ffffff !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
}

.vsp-card label {
    color: rgba(255, 255, 255, 0.85) !important; /* High contrast text */
    font-size: 0.78rem !important;
}

.vsp-card p,
.vsp-card span {
    color: rgba(255, 255, 255, 0.70) !important; /* High contrast paragraph/span */
    font-size: 0.78rem !important;
}

/* Custom inputs styling */
.vsp-card input[type="text"] {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
    transition: all 0.2s ease !important;
}

.vsp-card input[type="text"]:focus {
    border-color: #00F0FF !important;
    box-shadow: 0 0 8px rgba(0, 240, 255, 0.25) !important;
    background: rgba(255, 255, 255, 0.08) !important;
}

/* API status overrides for visibility */
#vsp-api-label-inline {
    font-size: 0.78rem !important;
    font-weight: 600 !important;
}

.vsp-card button {
    transition: all 0.2s ease !important;
}

.vsp-card button:hover {
    background: rgba(0, 240, 255, 0.18) !important;
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.2) !important;
}

/* ─── CUSTOM PREMIUM DIALOGS & MODALS ─── */
.vsp-dialog-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(4, 4, 8, 0.82);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 200000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.vsp-dialog-backdrop.visible {
    opacity: 1;
}

.vsp-dialog-card {
    background: linear-gradient(135deg, rgba(13, 13, 24, 0.98), rgba(6, 6, 12, 0.99));
    border: 1px solid rgba(0, 240, 255, 0.18);
    border-radius: 16px;
    padding: 2rem;
    width: 440px;
    max-width: 90vw;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.7), 0 0 32px rgba(0, 240, 255, 0.04);
    transform: scale(0.92);
    opacity: 0;
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    font-family: 'Inter', sans-serif;
    color: #ffffff;
}

.vsp-dialog-backdrop.visible .vsp-dialog-card {
    transform: scale(1);
    opacity: 1;
}

.vsp-dialog-card.vsp-dialog-danger {
    border-color: rgba(239, 68, 68, 0.35);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.7), 0 0 32px rgba(239, 68, 68, 0.05);
}

.vsp-dialog-header {
    margin-bottom: 1rem;
}

.vsp-dialog-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
    background: linear-gradient(135deg, #00F0FF, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.vsp-dialog-card.vsp-dialog-danger .vsp-dialog-title {
    background: linear-gradient(135deg, #ff4d4d, #f97316);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.vsp-dialog-body {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.vsp-dialog-input {
    width: 100%;
    padding: 0.7rem 0.9rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    color: #ffffff;
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
    outline: none;
    box-sizing: border-box;
    margin-top: 0.75rem;
    transition: all 0.2s ease;
}

.vsp-dialog-input:focus {
    border-color: #00F0FF;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 8px rgba(0, 240, 255, 0.2);
}

.vsp-dialog-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

.vsp-dialog-btn {
    padding: 0.65rem 1.4rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: all 0.2s ease;
    border: none;
}

.vsp-dialog-btn-secondary {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.7);
}

.vsp-dialog-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.vsp-dialog-btn-primary {
    background: linear-gradient(135deg, #00F0FF, #8b5cf6);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 240, 255, 0.25);
}

.vsp-dialog-btn-primary:hover {
    box-shadow: 0 4px 20px rgba(0, 240, 255, 0.45);
    transform: translateY(-1px);
}

.vsp-dialog-card.vsp-dialog-danger .vsp-dialog-btn-primary {
    background: linear-gradient(135deg, #ef4444, #b91c1c);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.25);
}

.vsp-dialog-card.vsp-dialog-danger .vsp-dialog-btn-primary:hover {
    box-shadow: 0 4px 20px rgba(239, 68, 68, 0.45);
}


/* === APG CLONED STYLES FOR MI CUENTA IN VSP === */
.apg-home-wrap {
  --font-body: "Inter", sans-serif;
  --font-display: "Outfit", sans-serif;
  --surface: rgba(255, 255, 255, 0.035);
  --border: rgba(255, 255, 255, 0.08);
  --accent: #00F0FF;
  --accent-light: #60a5fa;
  --text: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.45);
  --bg: #050505;
}



.apg-field { margin-bottom: 1rem; }


.apg-field label {
  display: block; color: rgba(255,255,255,0.75);
  font-size: 0.72rem; font-weight: 600;
  margin-bottom: 0.4rem; letter-spacing: 0.5px; text-transform: uppercase;
}


.apg-field input {
  width: 100%; padding: 0.75rem 1rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1); border-radius: 8px;
  color: white; font-size: 0.9rem; font-family: var(--font-body);
  outline: none; transition: border-color 0.2s, box-shadow 0.2s;
}


.apg-field input:focus {
  border-color: rgba(59,130,246,0.45);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
}


.apg-field textarea {
  width: 100%; padding: 0.75rem 1rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1); border-radius: 8px;
  color: white; font-size: 0.86rem; font-family: var(--font-body);
  outline: none; transition: border-color 0.2s; resize: vertical; min-height: 72px;
  line-height: 1.5;
}


.apg-field textarea:focus {
  border-color: rgba(59,130,246,0.45);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
}


.apg-field-opt {
  font-weight: 400; color: var(--text-muted); text-transform: none; letter-spacing: 0;
}



/* ═══════════════════════
   HOME — LAYOUT FULL WIDTH
   ═══════════════════════ */
.apg-home-wrap {
  padding: 1.5rem 3rem 3rem;
  width: 100%;
}



/* CONTENIDO PRINCIPAL */
.apg-home-main {}



/* ── Bloques de sección ── */
.apg-home-block {
  background: rgba(255,255,255,0.028);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 14px;
  padding: 1.4rem 1.6rem 1.6rem;
  margin-bottom: 1.1rem;
}


.apg-home-block-header {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}


.apg-home-block-num {
  width: 26px; height: 26px;
  border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.68rem; font-weight: 800;
  flex-shrink: 0;
}


.apg-home-block-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: rgba(255,255,255,0.92);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}


.apg-home-block-sub {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.78);
  margin-left: 0.4rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}



/* Colores por bloque */
.apg-home-block-num.b1 { background: rgba(59,130,246,0.18); border: 1px solid rgba(59,130,246,0.35); color: #60a5fa; }


.apg-home-block-num.b2 { background: rgba(139,92,246,0.18); border: 1px solid rgba(139,92,246,0.35); color: #a78bfa; }


.apg-home-block-num.b3 { background: rgba(251,191,36,0.15); border: 1px solid rgba(251,191,36,0.3);  color: #fbbf24; }


/* Resaltar la sección activa con border izquierdo de color */
.apg-home-block.b1 { border-left: 2.5px solid rgba(59,130,246,0.4); }


.apg-home-block.b2 { border-left: 2.5px solid rgba(139,92,246,0.4); }


.apg-home-block.b3 { border-left: 2.5px solid rgba(251,191,36,0.35); }



/* 2 columnas: usuario | proyectos */
.apg-home-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
  margin-bottom: 1.1rem;
  align-items: start;
}


@media (max-width: 900px) {
  .apg-home-two-col { grid-template-columns: 1fr; }


}

/* ── MOBILE: ahora gestionado via JS (body.apg-mobile) en el HTML inline ── */

/* CTA principal — bloque 4 */
.apg-home-cta-block {
  margin: 2.5rem 0;
  padding: 0.8rem 0;
  text-align: center;
}


.apg-home-cta-main {
  display: inline-block;
  padding: 1rem 3rem;
  background: linear-gradient(135deg, rgba(59,130,246,0.22) 0%, rgba(99,102,241,0.22) 100%);
  border: 1px solid rgba(99,102,241,0.45);
  border-radius: 14px;
  color: #c7d2fe;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.22s;
  letter-spacing: 0.2px;
  width: auto;
  min-width: 300px;
}


.apg-home-cta-main:hover {
  background: linear-gradient(135deg, rgba(59,130,246,0.32) 0%, rgba(99,102,241,0.32) 100%);
  border-color: rgba(99,102,241,0.65);
  color: #e0e7ff;
  box-shadow: 0 4px 24px rgba(99,102,241,0.2);
  transform: translateY(-1px);
}



/* API status row en bloque sistema */
.apg-system-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0.9rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 9px;
  margin-bottom: 0.6rem;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.7);
}


.apg-system-row-label { display: flex; align-items: center; gap: 0.5rem; }


.apg-system-btn {
  padding: 0.35rem 0.85rem;
  background: rgba(251,191,36,0.1);
  border: 1px solid rgba(251,191,36,0.3);
  color: #fbbf24;
  border-radius: 7px;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s;
}


.apg-system-btn:hover {
  background: rgba(251,191,36,0.18);
  border-color: rgba(251,191,36,0.5);
}

/* API Key Status Dots */
.apg-api-status {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  flex-shrink: 0;
  transition: background 0.3s, box-shadow 0.3s;
  vertical-align: middle;
  margin-right: 6px;
}
.apg-api-status.ok {
  background: #22c55e !important;
  box-shadow: 0 0 8px rgba(34,197,94,0.6) !important;
}
.apg-api-status.error {
  background: #ef4444 !important;
  box-shadow: 0 0 8px rgba(239,68,68,0.6) !important;
}



.apg-home-header { margin-bottom: 1.25rem; }


.apg-home-eyebrow {
  font-size: 1.25rem !important; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.12em; color: #00F0FF !important;
  margin-bottom: 0.8rem; display: flex; align-items: center; gap: 0.85rem;
}


.apg-home-eyebrow-time {
  font-size: 1.25rem !important; font-weight: 700; letter-spacing: 0.04em; opacity: 1 !important;
  color: #00F0FF !important; text-transform: none;
}


.apg-home-title {
  font-family: var(--font-display); font-size: 2.8rem; font-weight: 800;
  color: #ffffff;
  line-height: 1.15; margin-bottom: 0.45rem;
  letter-spacing: -0.02em;
}


.apg-home-title-name {
  background: linear-gradient(110deg, #38bdf8 0%, #818cf8 50%, #c084fc 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline;
}


.apg-home-sub {
  font-size: 0.84rem; color: var(--text-sub); line-height: 1.55; max-width: 600px;
}



/* Asset section (legacy — dentro de apg-home-block no necesita margin propio) */
.apg-section-label {
  font-size: 0.65rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--text-muted); margin-bottom: 0.9rem;
}



/* GRID 3 COLUMNAS (Alineado protagonist, logo, coprotagonist) */
.apg-asset-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
  width: 100%;
}

@media (max-width: 900px) {
  .apg-asset-grid {
    grid-template-columns: 1fr;
    width: 100%;
  }
}



/* CARD */
.apg-asset-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
  cursor: pointer;
}


.apg-asset-card:hover {
  border-color: rgba(59,130,246,0.45);
  box-shadow: 0 6px 28px rgba(0,0,0,0.35), 0 0 0 1px rgba(59,130,246,0.1);
  transform: translateY(-2px);
}


.apg-asset-card.has-image {
  border-color: rgba(59,130,246,0.3);
}



/* Label clickable que cubre toda la card */
.apg-asset-card-label {
  display: block;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}



/* ZONA VISUAL — altura fija, objeto-fit cover manda */
.apg-asset-card-visual {
  height: 260px;
  position: relative;
  overflow: hidden;
  background: rgba(255,255,255,0.02);
  display: flex;
  align-items: center;
  justify-content: center;
}



/* Estado vacío */
.apg-asset-placeholder {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.75rem; width: calc(100% - 28px); height: calc(100% - 28px);
  border: 1.5px dashed rgba(255,255,255,0.1);
  border-radius: 10px;
  transition: border-color 0.2s;
}


.apg-asset-card:hover .apg-asset-placeholder {
  border-color: rgba(59,130,246,0.35);
}


.apg-asset-card:hover .apg-placeholder-icon {
  background: rgba(59,130,246,0.14); border-color: rgba(59,130,246,0.3);
  color: var(--accent-light);
}


.apg-asset-card:hover .apg-placeholder-text { color: var(--text-sub); }



/* Estado con imagen — contain para ver la imagen entera sin recortes */
.apg-asset-card.has-image .apg-asset-card-visual {
  padding: 12px;
  background: rgba(10,10,22,0.95);
}


.apg-asset-full-img {
  width: 100%; height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}


/* Overlay oscuro en hover para ver el botón eliminar */
.apg-asset-card-visual::after {
  content: '';
  position: absolute; inset: 0;
  background: rgba(0,0,0,0);
  transition: background 0.2s;
  pointer-events: none;
}


.apg-asset-card.has-image:hover .apg-asset-card-visual::after {
  background: rgba(0,0,0,0.2);
}


/* Botón eliminar overlay */
.apg-asset-del-overlay {
  position: absolute; top: 10px; right: 10px; z-index: 5;
  width: 32px; height: 32px; border-radius: 8px;
  background: rgba(0,0,0,0.7); border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.75); font-size: 0.75rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.2s, background 0.2s;
}


.apg-asset-card.has-image:hover .apg-asset-del-overlay { opacity: 1; }


.apg-asset-del-overlay:hover { background: rgba(239,68,68,0.8) !important; color: white; }



/* FOOTER */
.apg-asset-card-footer {
  padding: 0.85rem 1rem;
  border-top: 1px solid rgba(255,255,255,0.05);
  display: flex; align-items: center; justify-content: space-between; gap: 0.5rem;
}


.apg-asset-card-name {
  font-size: 0.88rem; font-weight: 700; color: var(--text); margin-bottom: 0.15rem;
}


.apg-asset-card-desc {
  font-size: 0.72rem; color: var(--text-muted); line-height: 1.35;
}


.apg-asset-card-cta {
  font-size: 0.75rem; font-weight: 600; color: var(--accent);
  white-space: nowrap; flex-shrink: 0; padding: 0.35rem 0.75rem;
  border: 1px solid rgba(59,130,246,0.25); border-radius: 7px;
  background: rgba(59,130,246,0.06); transition: all 0.2s;
}


.apg-asset-card:hover .apg-asset-card-cta {
  background: rgba(59,130,246,0.14); border-color: rgba(59,130,246,0.45);
}



/* Chip "+ Ángulos extra (opcional)" — aparece cuando hay 1 imagen en producto */
.apg-asset-trigger {
  display: flex; align-items: center; justify-content: center; gap: 0.45rem;
  margin-top: 0.7rem;
  padding: 0.55rem 0.85rem;
  background: rgba(59,130,246,0.08);
  border: 1px dashed rgba(59,130,246,0.4);
  border-radius: 9px;
  font-family: var(--font-body);
  font-size: 0.78rem; font-weight: 600;
  color: var(--accent-light);
  cursor: pointer;
  transition: all 0.2s;
  opacity: 0; transform: translateY(-4px);
  animation: apgTriggerFadeIn 0.45s 0.15s forwards;
}


.apg-asset-trigger:hover {
  background: #1c2d52;
  border-color: #6196eb;
  color: #ffffff;
}


.apg-asset-trigger:focus-visible {
  outline: 2px solid var(--accent-light); outline-offset: 2px;
}


.apg-asset-trigger svg { width: 14px; height: 14px; flex-shrink: 0; }



/* Triángulo — colapsa por max-height + opacity. Va DEBAJO del grid de 3 cards
   (no dentro), full-width del bloque 01. Las cards principales no se deforman. */
.apg-triangle {
  position: relative;
  margin-top: 1.4rem;
  padding-top: 0.4rem;
  width: 100%;
  overflow: visible;
  max-height: 0; opacity: 0;
  transition: max-height 0.55s cubic-bezier(0.4,0,0.2,1), opacity 0.4s ease 0.2s;
}


.apg-triangle.open { max-height: 380px; opacity: 1; }



/* Botón de cierre del triángulo — EN EL VÉRTICE CENTRAL (donde convergen las 2 líneas SVG).
   Botón circular pequeño que sustituye el "punto" abstracto del vértice por un control real.
   Posición: top -2px (sobre el inicio de las líneas), centrado horizontal sobre el max-width del SVG. */
.apg-triangle-close {
  position: absolute;
  top: -10px; left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  background: #1f3461;
  border: 1.5px solid #4d7cc7;
  border-radius: 50%;
  color: #ffffff;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 0 0 4px var(--bg), 0 0 12px rgba(59,130,246,0.45);
}


.apg-triangle-close:hover {
  background: #2a4a82;
  border-color: #6196eb;
  transform: translateX(-50%) scale(1.08);
}


.apg-triangle-close:focus-visible {
  outline: 2px solid var(--accent-light); outline-offset: 3px;
}


.apg-triangle-close svg { flex-shrink: 0; }



/* Líneas SVG decorativas — salen del centro superior hacia los 2 sub-slots */
.apg-triangle-svg {
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 100%; max-width: 720px;
  height: 60px;
  pointer-events: none; z-index: 1;
}


.apg-triangle-line {
  fill: none;
  stroke: rgba(59,130,246,0.55);
  stroke-width: 1.4; stroke-linecap: round;
  stroke-dasharray: 200; stroke-dashoffset: 200;
  transition: stroke-dashoffset 0.7s ease 0.15s;
  filter: drop-shadow(0 0 6px rgba(59,130,246,0.35));
}


.apg-triangle.open .apg-triangle-line { stroke-dashoffset: 0; }



/* Base del triángulo — 2 sub-slots centrados con max-width para no estirarse demasiado */
.apg-triangle-base {
  margin: 60px auto 0;
  max-width: 720px;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  position: relative; z-index: 2;
}



/* Sub-slot — más pequeño que la card principal pero usable (200px) */
.apg-sub-slot {
  position: relative;
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.25s;
  height: 200px;
  display: flex; align-items: center; justify-content: center;
  transform: scale(0.85); opacity: 0;
}


.apg-triangle.open .apg-sub-slot {
  transform: scale(1); opacity: 1;
  transition: transform 0.45s ease 0.5s, opacity 0.45s ease 0.5s,
              border-color 0.2s, box-shadow 0.2s;
}


.apg-sub-slot:hover {
  border-color: rgba(59,130,246,0.55);
  box-shadow: 0 4px 18px rgba(0,0,0,0.3), 0 0 0 1px rgba(59,130,246,0.1);
}


.apg-sub-slot:focus-within {
  border-color: var(--accent-light);
  box-shadow: 0 0 0 3px rgba(96,165,250,0.25);
  outline: none;
}


.apg-sub-slot.has-image {
  border-color: rgba(59,130,246,0.45);
  padding: 10px;
  background: rgba(10,10,22,0.95);
}



/* Label flotante "Ángulo 1" / "Ángulo 2" en esquina superior izquierda */
.apg-sub-label {
  position: absolute; top: 8px; left: 10px; z-index: 3;
  font-size: 0.72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: #ede9fe;
  background: #1a1530;
  padding: 0.22rem 0.55rem;
  border-radius: 5px;
  border: 1px solid #6d52d4;
  backdrop-filter: blur(4px);
}



/* Label clickable que cubre el sub-slot (mismo patrón que apg-asset-card-label) */
.apg-sub-slot-label {
  display: block; width: 100%; height: 100%;
  cursor: pointer; text-decoration: none; color: inherit;
}



/* Placeholder dentro del sub-slot (más pequeño que el de card principal) */
.apg-sub-slot .apg-asset-placeholder {
  width: calc(100% - 20px); height: calc(100% - 20px);
  gap: 0.6rem;
}


.apg-sub-slot .apg-placeholder-icon { width: 42px; height: 42px; border-radius: 10px; }


.apg-sub-slot .apg-placeholder-icon svg { width: 20px; height: 20px; }


.apg-sub-slot .apg-placeholder-text { font-size: 0.78rem; font-weight: 600; }



/* Imagen llena del sub-slot */
.apg-sub-slot.has-image .apg-asset-full-img {
  width: 100%; height: 100%;
  object-fit: contain; object-position: center;
  border-radius: 6px; display: block;
}



/* Papelera overlay del sub-slot — touch target 44x44, visual centrado */
.apg-sub-del-overlay {
  position: absolute; top: 6px; right: 6px; z-index: 5;
  width: 44px; height: 44px; border-radius: 9px;
  background: rgba(0,0,0,0.78);
  border: 1px solid rgba(255,255,255,0.4);
  color: #ffffff;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transition: opacity 0.2s, background 0.2s, transform 0.18s;
}


.apg-sub-slot.has-image:hover .apg-sub-del-overlay,
.apg-sub-slot.has-image:focus-within .apg-sub-del-overlay,
.apg-sub-del-overlay:focus-visible {
  opacity: 1;
}


.apg-sub-del-overlay:hover {
  background: #991b1b;
  border-color: rgba(255,255,255,0.6);
  transform: scale(1.05);
}


.apg-sub-del-overlay:focus-visible {
  outline: 2px solid var(--accent-light); outline-offset: 2px;
}


.apg-sub-del-overlay svg { width: 16px; height: 16px; }



/* Mobile: triángulo a 1 columna apilada */
@media (max-width: 700px) {
  .apg-triangle-base { grid-template-columns: 1fr; gap: 0.6rem; }


  .apg-triangle.open { max-height: 480px; }


  .apg-triangle-svg { display: none; }


  .apg-sub-slot { height: 180px; }


}

/* Reduced motion — respeta accesibilidad */
@media (prefers-reduced-motion: reduce) {
  .apg-asset-trigger { animation: none; opacity: 1; transform: none; }


  .apg-triangle { transition: max-height 0.01ms, opacity 0.01ms; }


  .apg-triangle-line {
    stroke-dasharray: 0 !important;
    stroke-dashoffset: 0 !important;
    transition: none;
  }


  .apg-triangle.open .apg-sub-slot {
    transform: scale(1); opacity: 1; transition: none;
  }


  .apg-sub-slot:hover { transform: none; }

}

/* Panels dentro del drawer */
.apg-home-side {
  display: flex; flex-direction: column; gap: 1rem;
}



/* ═══════════════════════════════════════════════════
   MI CUENTA — PERFIL INLINE (view-home)
   ═══════════════════════════════════════════════════ */

/* Labels de campos dentro del bloque perfil */
.apg-home-block .apg-field label {
  color: rgba(255,255,255,0.6);
}



.apg-home-profile-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  max-width: 680px;
}


@media (max-width: 600px) {
  .apg-home-profile-fields { grid-template-columns: 1fr; }


}
.apg-home-profile-fields .apg-field-full {
  grid-column: 1 / -1;
}


.apg-home-profile-save {
  max-width: 680px;
}


.apg-home-profile-save {
  display: block;
  width: 100%;
  margin-top: 1.1rem;
  padding: 0.75rem 1.5rem;
  background: rgba(59,130,246,0.14);
  border: 1px solid rgba(59,130,246,0.38);
  color: #93c5fd;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}


.apg-home-profile-save:hover {
  background: rgba(59,130,246,0.22);
  border-color: rgba(59,130,246,0.55);
  color: #bfdbfe;
}





/* HASHTAGS HABITUALES BLOCK AND BUTTON STYLES */
.apg-home-block-num.b4 {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #10b981;
}



.apg-home-block.b4 {
  border-left: 2.5px solid rgba(16, 185, 129, 0.35);
}



  /* Mi Cuenta (Home view) padding adjustments on mobile */
  .apg-home-wrap {
    padding: 1rem 10px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }


  .apg-home-block {
    padding: 1rem 10px 1.25rem !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }




/* === TITULO DE PROYECTO ACTIVO EN LA CABECERA === */
.apg-home-active-project-title-bar {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  color: #a78bfa;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: linear-gradient(135deg, rgba(167,139,250,0.15) 0%, rgba(124,58,237,0.1) 100%);
  border: 1px solid rgba(167,139,250,0.35);
  padding: 4px 16px;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(167, 139, 250, 0.15);
  white-space: nowrap;
}


@media (max-width: 900px) {
  .apg-home-active-project-title-bar {
    position: static;
    transform: none;
    margin-left: auto;
    font-size: 0.95rem;
    padding: 3px 10px;
  }
}


/* ═══════════════════════════════════════════════════
   MIS PROYECTOS
   ═══════════════════════════════════════════════════ */
.apg-projects-section {
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
  margin-top: 1.5rem;
}


.apg-proj-active-banner {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.9rem;
  background: rgba(59,130,246,0.08);
  border: 1px solid rgba(59,130,246,0.2);
  border-radius: 8px;
  margin-bottom: 1rem;
  font-size: 0.82rem;
}


.apg-proj-active-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #22c55e;
  flex-shrink: 0;
  box-shadow: 0 0 6px rgba(34,197,94,0.6);
}


.apg-proj-active-label { color: rgba(255,255,255,0.5); }


.apg-proj-active-name { color: #93c5fd; font-size: 0.85rem; }


.apg-proj-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}


.apg-proj-new-btn {
  padding: 0.4rem 0.9rem;
  background: rgba(59,130,246,0.12);
  border: 1px solid rgba(59,130,246,0.3);
  color: #93c5fd;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s;
}


.apg-proj-new-btn:hover {
  background: rgba(59,130,246,0.2);
  border-color: rgba(59,130,246,0.5);
  color: #bfdbfe;
}


.apg-proj-action-row {
  display: flex; gap: 0.5rem; margin-bottom: 0.75rem;
}


.apg-proj-action-row button {
  flex: 1; padding: 0.6rem;
  border-radius: 6px; font-family: var(--font-body);
  font-size: 0.82rem; font-weight: 600;
  cursor: pointer; transition: all 0.2s;
}


.apg-proj-save-btn {
  border: 1px solid rgba(129,140,248,0.3);
  background: rgba(99,102,241,0.08);
  color: #a5b4fc;
}


.apg-proj-save-btn:hover { background: rgba(99,102,241,0.18); }


.apg-proj-save-btn:disabled { opacity: 0.4; cursor: default; }


.apg-proj-clear-btn {
  border: 1px solid rgba(239,68,68,0.3);
  background: rgba(239,68,68,0.06);
  color: #f87171;
}


.apg-proj-clear-btn:hover { background: rgba(239,68,68,0.14); }


.apg-proj-clear-btn:disabled { opacity: 0.4; cursor: default; }


.apg-proj-btn-icon {
  padding: 0.3rem 0.5rem;
  background: rgba(99,102,241,0.1);
  border: 1px solid rgba(129,140,248,0.25);
  border-radius: 7px; cursor: pointer;
  font-size: 0.85rem; transition: all 0.18s;
}


.apg-proj-btn-icon:hover { background: rgba(99,102,241,0.2); }


.apg-proj-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.75rem;
}


.apg-proj-card {
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  overflow: hidden;
  transition: border-color 0.2s;
}


.apg-proj-card.active {
  border-color: rgba(59,130,246,0.35);
  background: rgba(59,130,246,0.06);
}


.apg-proj-card-top {
  padding: 0.85rem 0.75rem 0.6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}


.apg-proj-card-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.82rem; font-weight: 700; color: #fff;
  flex-shrink: 0;
}


.apg-proj-active-badge {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #22c55e;
  background: rgba(34,197,94,0.1);
  border: 1px solid rgba(34,197,94,0.3);
  border-radius: 4px;
  padding: 0.1rem 0.35rem;
}


.apg-proj-card-body {
  padding: 0.4rem 0.75rem 0.5rem;
}


.apg-proj-card-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(240,244,255,0.88);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}


.apg-proj-card-actions {
  display: flex;
  gap: 0.35rem;
  padding: 0.4rem 0.6rem 0.6rem;
}


.apg-proj-btn-load, .apg-proj-btn-active {
  flex: 1;
  padding: 0.35rem 0.4rem;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s;
  border: 1px solid rgba(59,130,246,0.3);
  background: rgba(59,130,246,0.1);
  color: #93c5fd;
}


.apg-proj-btn-load:hover {
  background: rgba(59,130,246,0.2);
  border-color: rgba(59,130,246,0.5);
}


.apg-proj-btn-active {
  opacity: 0.4;
  cursor: default;
}


.apg-proj-btn-del {
  padding: 0.35rem 0.5rem;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.18s;
  border: 1px solid rgba(239,68,68,0.2);
  background: rgba(239,68,68,0.06);
  color: rgba(248,113,113,0.7);
}


.apg-proj-btn-del:hover {
  background: rgba(239,68,68,0.15);
  border-color: rgba(239,68,68,0.4);
  color: #f87171;
}


.apg-proj-btn-edit {
  padding: 0.35rem 0.5rem;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.18s;
  border: 1px solid rgba(167,139,250,0.2);
  background: rgba(167,139,250,0.06);
  color: rgba(196,181,253,0.7);
}


.apg-proj-btn-edit:hover {
  background: rgba(167,139,250,0.15);
  border-color: rgba(167,139,250,0.4);
  color: #c4b5fd;
}


.apg-proj-empty {
  font-size: 0.83rem;
  color: rgba(255,255,255,0.60);
  line-height: 1.6;
  padding: 0.5rem 0;
}



/* ── Modal crear proyecto y modales genéricos ── */
#apg-proj-modal-overlay, .apg-proj-modal-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,0.72);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  animation: apgFadeIn 0.18s ease;
}


#apg-proj-modal, .apg-proj-modal {
  background: rgba(10,10,24,0.97);
  border: 1px solid rgba(139,92,246,0.35);
  border-radius: 16px;
  padding: 2rem 2rem 1.75rem;
  width: 100%; max-width: 420px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.7), 0 0 0 1px rgba(139,92,246,0.12);
  display: flex; flex-direction: column; gap: 1.25rem;
}


.apg-proj-modal-title {
  font-size: 1.05rem; font-weight: 700;
  color: rgba(255,255,255,0.92);
  display: flex; align-items: center; gap: 0.55rem;
}


.apg-proj-modal-title span {
  width: 28px; height: 28px; border-radius: 8px;
  background: rgba(139,92,246,0.18); border: 1px solid rgba(139,92,246,0.35);
  color: #a78bfa; font-size: 0.75rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}


#apg-proj-modal-input {
  width: 100%; padding: 0.8rem 1rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(139,92,246,0.3);
  border-radius: 10px;
  color: white; font-size: 0.95rem; font-family: var(--font-body);
  outline: none; transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}


#apg-proj-modal-input:focus {
  border-color: rgba(139,92,246,0.6);
  box-shadow: 0 0 0 3px rgba(139,92,246,0.12);
}


#apg-proj-modal-input::placeholder { color: rgba(255,255,255,0.28); }


.apg-proj-modal-actions {
  display: flex; gap: 0.65rem; justify-content: flex-end;
}


.apg-proj-modal-cancel {
  padding: 0.6rem 1.2rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.80);
  border-radius: 9px; font-family: var(--font-body);
  font-size: 0.85rem; font-weight: 600; cursor: pointer;
  transition: all 0.18s;
}


.apg-proj-modal-cancel:hover {
  background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.75);
}


.apg-proj-modal-confirm {
  padding: 0.6rem 1.5rem;
  background: rgba(139,92,246,0.2);
  border: 1px solid rgba(139,92,246,0.45);
  color: #c4b5fd;
  border-radius: 9px; font-family: var(--font-body);
  font-size: 0.85rem; font-weight: 700; cursor: pointer;
  transition: all 0.18s;
}


.apg-proj-modal-confirm:hover {
  background: rgba(139,92,246,0.32);
  border-color: rgba(139,92,246,0.65);
  color: #ddd6fe;
}


.apg-proj-modal-confirm.danger {
  background: rgba(239,68,68,0.18);
  border-color: rgba(239,68,68,0.45);
  color: #fca5a5;
}


.apg-proj-modal-confirm.danger:hover {
  background: rgba(239,68,68,0.28);
  border-color: rgba(239,68,68,0.65);
  color: #fee2e2;
}

/* ESTILO VISUAL PREMIUM CARDS & GRID */
.vsp-styles-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.1rem;
  margin-top: 1.5rem;
}

@media (max-width: 1200px) {
  .vsp-styles-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 900px) {
  .vsp-styles-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 550px) {
  .vsp-styles-grid {
    grid-template-columns: 1fr;
  }
}

.vsp-style-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.vsp-style-card:hover {
  transform: translateY(-2px);
  background: rgba(255, 45, 120, 0.03);
  border-color: rgba(255, 45, 120, 0.3);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.vsp-style-card.active {
  background: rgba(255, 45, 120, 0.06);
  border-color: rgba(255, 45, 120, 0.65);
  box-shadow: 0 0 15px rgba(255, 45, 120, 0.15);
}

.vsp-style-card-img-container {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: rgba(255, 255, 255, 0.01);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.vsp-style-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.vsp-style-card-placeholder {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #18181f 0%, #0c0c0e 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.vsp-style-placeholder-icon {
  font-size: 1.8rem;
  opacity: 0.25;
  transition: opacity 0.25s;
}

.vsp-style-card:hover .vsp-style-placeholder-icon {
  opacity: 0.45;
}

.vsp-style-card.active .vsp-style-placeholder-icon {
  opacity: 0.6;
}

.vsp-style-card-body {
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  flex: 1;
}

.vsp-style-card-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  transition: color 0.25s;
}

.vsp-style-card.active .vsp-style-card-title {
  color: #FF2D78;
}

.vsp-style-card-desc {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.35;
}

/* Badge flotante de consistencia IA */
.apg-asset-cyber-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 4;
  padding: 0.35rem 0.65rem;
  background: rgba(139, 92, 246, 0.95); /* Fondo violeta cyberpunk */
  color: white;
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 800;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  pointer-events: none;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.35);
  animation: apgTriggerFadeIn 0.3s ease forwards;
}

/* Selectores de Identidad en Escenas (Pills) */
.ref-pills-container {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.45rem;
  flex-wrap: wrap;
}
.ref-pills-label {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.45);
  margin-right: 0.2rem;
}
.ref-pill-btn {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  padding: 0.2rem 0.6rem;
  color: rgba(255,255,255,0.65);
  font-size: 0.72rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.ref-pill-btn:hover {
  background: rgba(255,255,255,0.08);
  color: #fff;
  border-color: rgba(255,255,255,0.25);
}
.ref-pill-btn.active {
  background: rgba(0,240,255,0.12);
  color: #00f0ff;
  border-color: rgba(0,240,255,0.4);
  font-weight: 600;
  box-shadow: 0 0 8px rgba(0,240,255,0.15);
}

/* ─── AUDIO GENERATOR STANDALONE MODULE STYLES ─── */
:root {
  --accent-audio: #FF9F1C;
  --border-subtle: 1px solid rgba(255, 255, 255, 0.18);
  --neon-blue: #00F0FF;
  --neon-blue-dim: rgba(0, 240, 255, 0.1);
}

body[data-module="audio"] {
  --module-accent: var(--accent-audio);
  --module-glow: rgba(255, 159, 28, 0.25);
}

/* ═══════════════════════════════════════════════════════════════
   VSP EXPRÉS — recorrido breve sobre el motor profesional
   ═══════════════════════════════════════════════════════════════ */
.vsp-mode-entry{margin:0 0 1.5rem;padding:clamp(1rem,2vw,1.55rem);border:1px solid rgba(96,165,250,.26);border-radius:18px;background:linear-gradient(135deg,rgba(37,99,235,.11),rgba(139,92,246,.08));display:grid;grid-template-columns:minmax(210px,.72fr) minmax(420px,1.4fr);gap:1.25rem;align-items:center}
.vsp-mode-entry-copy h2{margin:.18rem 0 .25rem;color:#fff;font-size:clamp(1.25rem,2vw,1.8rem)}
.vsp-mode-entry-copy p{margin:0;color:#94a3b8;font-size:.88rem}
.vsp-mode-kicker{font-size:.7rem;font-weight:900;letter-spacing:.13em;text-transform:uppercase;color:#60a5fa}
.vsp-mode-cards{display:grid;grid-template-columns:1fr 1fr;gap:.75rem}
.vsp-mode-card{appearance:none;width:100%;min-height:105px;padding:1rem;border-radius:14px;display:grid;grid-template-columns:auto 1fr;gap:.75rem;text-align:left;align-items:center;cursor:pointer;color:#fff;transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease}
.vsp-mode-card:hover{transform:translateY(-2px)}
.vsp-mode-card.is-express{border:1px solid rgba(34,211,238,.52);background:linear-gradient(145deg,rgba(6,182,212,.2),rgba(8,47,73,.52));box-shadow:0 10px 28px rgba(6,182,212,.09)}
.vsp-mode-card.is-complete{border:1px solid rgba(167,139,250,.36);background:linear-gradient(145deg,rgba(124,58,237,.14),rgba(30,27,75,.44))}
.vsp-mode-card-icon{font-size:1.65rem}
.vsp-mode-card strong,.vsp-mode-card small{display:block}.vsp-mode-card strong{font-size:1rem}.vsp-mode-card small{margin-top:.2rem;color:#cbd5e1;font-size:.72rem;line-height:1.35}.vsp-mode-card b{grid-column:2;color:#67e8f9;font-size:.72rem}

#module-express{padding:clamp(1rem,2.2vw,2rem)}
#express-sidebar{width:var(--sidebar-width);min-width:var(--sidebar-width);background:rgba(8,8,12,.98);border-right:1px solid rgba(255,255,255,.06);display:none;flex-direction:column;position:fixed;top:var(--header-height);bottom:0;left:0;z-index:500;overflow-y:auto}
.express-sidebar-btn{display:flex;align-items:center;gap:.6rem;width:100%;padding:.7rem .75rem;margin-bottom:.25rem;background:transparent;border:1px solid transparent;border-radius:9px;color:rgba(255,255,255,.76);font:650 .84rem 'Inter',sans-serif;text-align:left;cursor:pointer}.express-sidebar-btn:hover{background:rgba(255,255,255,.04);color:#fff}.express-sidebar-btn.active{background:rgba(34,211,238,.1);border-color:rgba(34,211,238,.32);color:#67e8f9}.express-mode-back{width:100%;margin-bottom:.55rem;padding:.55rem;border:1px solid rgba(148,163,184,.22);border-radius:8px;background:rgba(255,255,255,.03);color:#cbd5e1;cursor:pointer}
.express-sidebar-btn.express-pro-continue{margin:.7rem 0 .8rem;border-color:rgba(139,92,246,.38);background:linear-gradient(135deg,rgba(139,92,246,.15),rgba(34,211,238,.08));color:#ddd6fe}.express-sidebar-btn.express-pro-continue:hover{border-color:rgba(167,139,250,.68);background:linear-gradient(135deg,rgba(139,92,246,.24),rgba(34,211,238,.13));color:#fff}
/* 13 OCT 2026 (Toni): el menú Profesional también se ve en la pantalla de inicio, para que una cuenta nueva encuentre «Conectar redes sociales» sin buscar. */
body[data-product-mode="gateway"] #express-sidebar{display:none}
body[data-product-mode="express"] #sidebar{display:none}
body[data-product-mode="express"] #express-sidebar{display:flex}
body[data-product-mode="professional"] #express-sidebar{display:none}
@media(max-width:860px){.vsp-mode-entry{grid-template-columns:1fr}}@media(max-width:620px){.vsp-mode-cards{grid-template-columns:1fr}}

/* ═══════════════════════════════════════════════════════════════════════════
   VSP EXPRÉS 2 — experiencia independiente; servicios compartidos con Pro
   ═══════════════════════════════════════════════════════════════════════════ */
:where(#script-story-editor .vx-shell) button{border:1px solid rgba(148,163,184,.24);border-radius:10px;background:#19263a;color:#f8fafc;padding:.66rem .9rem;font-weight:750}
:where(#script-story-editor .vx-shell) button:hover:not(:disabled){filter:brightness(1.15)}
:where(#script-story-editor .vx-shell) button:focus-visible{outline:2px solid #67e8f9;outline-offset:3px}
.vx-voice-actions{display:flex;gap:.6rem;flex-wrap:wrap;margin:1rem 0}.vx-voice-status{display:block;color:#8fa1b9;margin-top:.3rem}
.vx-progress-board.vx-voice-progress{margin:1rem 0 1.5rem;padding:1.25rem;border:2px solid #38bdf8;background:#10263b;gap:1rem}
.vx-voice-progress-heading{display:flex;align-items:center;gap:.8rem;color:#e0f2fe}
.vx-voice-progress-heading strong{font-size:clamp(18px,1.4vw,24px);line-height:1.35}
.vx-voice-progress-icon{display:grid;place-items:center;flex:0 0 30px;width:30px;height:30px;border:3px solid currentColor;border-radius:50%;font-size:20px;font-weight:900}
.vx-voice-progress.is-busy .vx-voice-progress-icon{border-right-color:transparent;animation:vxSpin 1s linear infinite}
.vx-voice-progress .vx-progress-meter>div{font-size:16px}.vx-voice-progress .vx-progress-meter>i{height:12px}
.vx-voice-progress p,.vx-voice-progress li{margin:0;color:#d5e5f3;font-size:15px;line-height:1.5}.vx-voice-progress ul{margin:0;padding-left:1.2rem}
.vx-voice-progress.is-complete{border-color:#34d399;background:#0c2c29}.vx-voice-progress.is-complete .vx-voice-progress-heading{color:#6ee7b7}
.vx-voice-progress.needs-attention{border-color:#fbbf24;background:#302719}.vx-voice-progress.needs-attention .vx-voice-progress-heading{color:#fde68a}
.vx-voice-segments.vx-story-voice-segments>div{grid-template-columns:28px minmax(0,1fr) auto auto auto}
.vx-story-voice-segments .vx-segment-regenerate{border-color:#38bdf8;color:#e0f2fe;background:#12344c}
@media(max-width:760px){.vx-voice-segments.vx-story-voice-segments>div{grid-template-columns:28px minmax(0,1fr) auto}.vx-voice-segments.vx-story-voice-segments>div>.vx-segment-regenerate{grid-column:2}.vx-voice-segments.vx-story-voice-segments>div>button:last-child{grid-column:3}}
@media(prefers-reduced-motion:reduce){.vx-voice-progress.is-busy .vx-voice-progress-icon{animation:none}}
.vx-shell{--vx-bg:#101827;--vx-panel:#151f31;--vx-panel-2:#1a263a;--vx-line:rgba(148,163,184,.19);--vx-muted:#8fa1b9;--vx-blue:#1697ff;--vx-cyan:#29d7e8;min-height:calc(100vh - 120px);color:#f8fafc;font-family:'Inter',sans-serif}
.vx-shell *{box-sizing:border-box}.vx-shell button,.vx-shell input,.vx-shell textarea,.vx-shell select{font:inherit}.vx-shell button{cursor:pointer}.vx-shell button:disabled{opacity:.45;cursor:not-allowed}.vx-kicker{display:inline-flex;align-items:center;gap:.4rem;color:#67e8f9;font-size:.7rem;font-weight:900;letter-spacing:.13em}.vx-kicker:before{content:'';width:18px;height:2px;background:#22d3ee}
.vx-start{max-width:1540px;margin:0 auto}.vx-flow{max-width:1280px;margin:0 auto}.vx-start>header{max-width:850px;margin:0 auto 1.6rem;text-align:center}.vx-start h1,.vx-flow h1,.vx-complete h1,.vx-render-screen h1{margin:.55rem 0 .45rem;font:800 clamp(1.65rem,3vw,2.7rem)/1.08 'Outfit',sans-serif;letter-spacing:-.025em}.vx-start>header p,.vx-flow-head p,.vx-complete>p,.vx-render-screen>p{margin:0;color:var(--vx-muted);line-height:1.55}
.vx-setup-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(300px,380px);gap:clamp(1rem,2vw,1.65rem);align-items:start}.vx-setup-main{min-width:0}.vx-example-card{position:sticky;top:20px;overflow:hidden;padding:1rem;border:1px solid var(--vx-line);border-radius:18px;background:linear-gradient(145deg,rgba(21,31,49,.98),rgba(12,20,35,.94));box-shadow:0 24px 56px rgba(2,8,23,.28)}.vx-example-head>span{display:block;color:#67e8f9;font-size:.62rem;font-weight:900;letter-spacing:.14em}.vx-example-head h2{margin:.35rem 0 .25rem;font:800 1rem/1.2 'Outfit',sans-serif;letter-spacing:.04em}.vx-example-head p{margin:0 0 .85rem;color:var(--vx-muted);font-size:.7rem;line-height:1.45}.vx-example-video{overflow:hidden;width:100%;aspect-ratio:9/16;border:1px solid rgba(148,163,184,.18);border-radius:14px;background:#050a12;box-shadow:0 18px 40px rgba(0,0,0,.28)}.vx-example-video video{display:block;width:100%;height:100%;object-fit:cover;background:#000}.vx-example-format{display:block;margin-top:.65rem;color:#7f91a9;font-size:.62rem;text-align:center}
.vx-setup-card{margin:0 0 1rem;padding:1.25rem;border:1px solid var(--vx-line);border-radius:18px;background:linear-gradient(145deg,rgba(21,31,49,.96),rgba(17,26,42,.86));box-shadow:0 20px 45px rgba(2,8,23,.15)}
.vx-step-title{display:flex;align-items:flex-start;gap:.8rem;margin-bottom:1rem}.vx-step-title>b{display:grid;place-items:center;flex:0 0 34px;height:34px;border-radius:11px;background:linear-gradient(135deg,#11b8d7,#2563eb);box-shadow:0 8px 22px rgba(37,99,235,.22)}.vx-step-title h2,.vx-panel-head h2{margin:0;font:750 1.08rem/1.2 'Outfit',sans-serif}.vx-step-title p,.vx-panel-head p{margin:.18rem 0 0;color:var(--vx-muted);font-size:.76rem;line-height:1.45}
.vx-setup-card textarea,.vx-resource-card textarea,.vx-scene-card textarea,.vx-shell select,.vx-shell input[type=text],.vx-shell input[type=number]{width:100%;border:1px solid rgba(148,163,184,.28);border-radius:10px;background:#0c1423;color:#f8fafc;padding:.72rem .8rem;outline:none;resize:vertical}.vx-setup-card textarea:focus,.vx-resource-card textarea:focus,.vx-scene-card textarea:focus,.vx-shell select:focus,.vx-shell input:focus{border-color:#22b6ff;box-shadow:0 0 0 3px rgba(22,151,255,.1)}
.vx-script-source{display:grid;grid-template-columns:1fr;gap:.75rem}.vx-script-source label{display:block;color:#b8c4d6;font-size:.73rem;font-weight:750}.vx-script-source textarea{margin-top:.35rem;min-height:132px;line-height:1.48}.vx-script-source button{min-width:240px;justify-self:center}.vx-script-editor{margin-top:1rem;padding-top:1rem;border-top:1px solid var(--vx-line)}.vx-script-editor>label{display:flex;justify-content:space-between;gap:1rem;margin-bottom:.4rem;color:#f8fafc;font-size:.76rem;font-weight:800}.vx-script-editor label small{color:var(--vx-muted);font-weight:600}.vx-script-field{position:relative}.vx-script-editor .vx-script-textarea{min-height:clamp(320px,38vh,480px);line-height:1.52}.vx-script-textarea[readonly]{color:#b9c8da}.vx-script-loading{position:absolute;inset:1px;display:flex;align-items:center;justify-content:center;gap:1rem;padding:1.25rem;border-radius:9px;background:rgba(8,18,32,.9);backdrop-filter:blur(5px);text-align:left}.vx-script-loading b,.vx-script-loading small{display:block}.vx-script-loading b{color:#e8f8ff;font-size:.86rem}.vx-script-loading small{max-width:430px;margin-top:.3rem;color:#8fa6bf;font-size:.69rem;line-height:1.5}.vx-script-spinner{flex:0 0 38px;width:38px;height:38px;border:3px solid rgba(56,189,248,.18);border-top-color:#22d3ee;border-right-color:#2563eb;border-radius:50%;animation:vxSpin .78s linear infinite}.vx-script-footer{display:flex;flex-wrap:wrap;justify-content:space-between;gap:.55rem 1rem;margin-top:.55rem;color:#7f91a9;font-size:.68rem}.vx-script-duration{color:#9ec7e8}.vx-script-duration.is-warning{flex-basis:100%;order:3;color:#fbbf24;font-weight:750}.vx-script-count b{color:#d6e8f8}.vx-script-count.is-limit,.vx-script-count.is-limit b{color:#fbbf24}.vx-script-count.is-over,.vx-script-count.is-over b{color:#fda4af}
.vx-style-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.75rem}.vx-style{position:relative;display:flex;flex-direction:column;gap:.45rem;cursor:pointer}.vx-style input{position:absolute;opacity:0}.vx-style-image{display:block;width:100%;height:auto;aspect-ratio:1/1;box-sizing:border-box;object-fit:cover;border:2px solid transparent;border-radius:12px;background:#111827;filter:saturate(.85);transition:.18s ease}.vx-style strong{text-align:center;color:#b8c4d6;font-size:.73rem}.vx-style input:checked+.vx-style-image{border-color:#18a0fb;filter:saturate(1.1);box-shadow:0 0 0 3px rgba(22,151,255,.13)}.vx-style input:checked~strong{color:#fff}
.vx-field-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.85rem}.vx-field-grid label,.vx-inline-controls label,.vx-control-grid label,.vx-audio-card>label{color:#b8c4d6;font-size:.73rem;font-weight:750}.vx-field-grid select,.vx-field-grid input{margin-top:.35rem}.vx-info{margin-top:1rem;padding:.72rem .85rem;border:1px solid rgba(34,211,238,.22);border-radius:10px;background:rgba(6,182,212,.07);color:#a5f3fc;font-size:.74rem}
.vx-field-grid-compact{grid-template-columns:repeat(2,minmax(0,1fr))}.vx-setup-voice-grid,.vx-setup-track-list{max-height:390px;overflow:auto;padding-right:.25rem}.vx-setup-choice{grid-template-columns:1fr auto}.vx-setup-choice>label{display:grid;grid-template-columns:auto auto 1fr;align-items:center;gap:.65rem;cursor:pointer}.vx-setup-choice input,.vx-track label input{accent-color:#1f9cff}.vx-track>label{display:grid;grid-template-columns:auto 1fr;column-gap:.6rem;align-items:center;cursor:pointer}.vx-track>label b,.vx-track>label small{grid-column:2}.vx-uploaded-music{margin:-.3rem 0 .75rem;padding:.55rem .7rem;border-radius:9px;background:rgba(34,197,94,.1);color:#bbf7d0;font-size:.72rem}.vx-credit-box{max-width:720px;margin:1rem auto 0;padding:.85rem 1rem;border:1px solid rgba(56,189,248,.3);border-radius:14px;background:rgba(14,116,144,.1)}.vx-credit-box>div{display:flex;justify-content:space-between;gap:1rem;padding:.35rem 0;color:#b9cae0;font-size:.75rem}.vx-credit-box .is-total{margin-top:.3rem;padding-top:.65rem;border-top:1px solid rgba(125,211,252,.22);color:#f8fafc;font-size:.86rem}.vx-credit-box.is-pending{display:flex;flex-direction:column;gap:.28rem;color:#d6e8f8}.vx-credit-box.is-pending span{color:#8fa6bf;font-size:.7rem;line-height:1.45}
.vx-primary,.vx-secondary,.vx-card-actions button,.vx-panel-head>button,.vx-track button,.vx-voice-segments button{border:1px solid rgba(148,163,184,.24);border-radius:10px;background:#1d2b41;color:#f8fafc;padding:.66rem .9rem;font-weight:750}.vx-primary{border:0;background:linear-gradient(135deg,#138ef5,#285ce8);box-shadow:0 12px 28px rgba(37,99,235,.26)}.vx-secondary{background:#19263a}.vx-create{display:block;min-width:360px;margin:1.25rem auto 0;padding:.9rem 1.5rem;border-radius:999px}.vx-create span,.vx-create small{display:block}.vx-create small{margin-top:.2rem;color:#cce8ff;font-size:.65rem;font-weight:600}.vx-text-button{border:0!important;background:transparent!important;color:#7dd3fc!important;box-shadow:none!important}
.vx-flow-head{display:flex;align-items:flex-end;justify-content:space-between;gap:1.5rem;margin-bottom:1.15rem}.vx-flow-head>div:first-child{max-width:820px}.vx-progress{display:flex;flex-direction:column;align-items:flex-end}.vx-progress b{font:800 1.4rem 'Outfit',sans-serif}.vx-progress span{color:var(--vx-muted);font-size:.69rem}
.vx-resource-list,.vx-scene-list{display:flex;flex-direction:column;gap:.8rem}.vx-resource-card{display:grid;grid-template-columns:260px 1fr;overflow:hidden;border:1px solid var(--vx-line);border-radius:15px;background:var(--vx-panel)}.vx-resource-visual,.vx-scene-thumb{position:relative;display:grid;place-items:center;min-height:190px;background:linear-gradient(145deg,#10233d,#101521);color:#5d718c;overflow:hidden}.vx-resource-visual img,.vx-resource-visual video,.vx-scene-thumb img,.vx-scene-thumb video,.vx-reorder-item [data-asset-preview] img,.vx-reorder-item [data-asset-preview] video{width:100%;height:100%;object-fit:cover}.vx-scene-number{font:900 2rem 'Outfit',sans-serif}.vx-resource-visual small{display:block}.vx-resource-body,.vx-scene-content{padding:1rem}.vx-card-top,.vx-panel-head{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-bottom:.75rem}.vx-resource-body>label{display:block;margin-top:.65rem;color:var(--vx-muted);font-size:.7rem}.vx-resource-body>label textarea{margin-top:.35rem}.vx-recommended{padding:.32rem .55rem;border:1px solid rgba(34,197,94,.3);border-radius:999px;background:rgba(34,197,94,.1);color:#86efac;font-size:.63rem;font-weight:800}.vx-card-actions{display:flex;flex-wrap:wrap;gap:.55rem;margin-top:.75rem}.vx-card-actions button,.vx-upload{padding:.55rem .75rem;font-size:.7rem}.vx-upload{display:inline-flex;align-items:center;border:1px solid rgba(148,163,184,.24);border-radius:10px;background:#1d2b41;color:#fff;font-weight:750;cursor:pointer}.vx-upload input,.vx-music-upload input{display:none}.vx-bottom-actions{display:flex;justify-content:flex-end;gap:.7rem;margin-top:1rem;position:sticky;bottom:12px;padding:.65rem;border:1px solid var(--vx-line);border-radius:14px;background:rgba(11,19,33,.92);backdrop-filter:blur(14px);z-index:4}
.vx-tabs{display:flex;width:max-content;max-width:100%;margin-bottom:1rem;padding:.25rem;border:1px solid var(--vx-line);border-radius:12px;background:#121d2e;overflow:auto}.vx-tabs button{border:0;border-radius:9px;background:transparent;color:#8293aa;padding:.64rem 1rem;font-size:.74rem;font-weight:800}.vx-tabs button.is-active{background:#168ff1;color:#fff;box-shadow:0 7px 18px rgba(22,143,241,.23)}
.vx-editor-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(390px,430px);gap:1.25rem;align-items:start}.vx-editor-panel,.vx-preview-card{border:1px solid var(--vx-line);border-radius:16px;background:var(--vx-panel);box-shadow:0 20px 45px rgba(2,8,23,.13)}.vx-editor-panel{min-height:620px;padding:1rem}.vx-preview-card{position:sticky;top:20px;justify-self:center;width:100%;overflow:hidden;padding:1rem}.vx-preview-title{display:flex;justify-content:space-between;align-items:center;margin-bottom:.8rem;text-transform:uppercase;color:#9aabc0;font-size:.69rem;font-weight:850;letter-spacing:.08em}.vx-preview-title small{color:#5e718a;font-size:.56rem}.vx-preview-stage{position:relative;overflow:hidden;width:100%;aspect-ratio:9/16;container-type:inline-size;border-radius:12px;background:#07101d;box-shadow:inset 0 0 0 1px rgba(255,255,255,.06)}.vx-preview-media{width:100%;height:100%;object-fit:cover}.vx-preview-placeholder{display:flex;height:100%;flex-direction:column;align-items:center;justify-content:center;color:#5d718c}.vx-preview-placeholder span{font:800 1.2rem 'Outfit',sans-serif}.vx-preview-placeholder small{margin-top:.3rem}.vx-live-caption{position:absolute;left:7%;right:7%;padding:.18em .35em;border-radius:10px;text-align:center;line-height:1.08;text-shadow:0 4px 12px rgba(0,0,0,.5);z-index:3}.vx-preview-toggle{position:absolute;left:12px;bottom:12px;display:grid;place-items:center;width:38px;height:38px;border:1px solid rgba(255,255,255,.6);border-radius:50%;background:rgba(3,10,22,.72);color:#fff}.vx-preview-count{position:absolute;right:12px;bottom:18px;padding:.25rem .45rem;border-radius:999px;background:rgba(3,10,22,.72);font-size:.63rem}.vx-preview-footer{display:flex;align-items:center;justify-content:space-between;gap:.6rem;margin-top:.8rem;color:var(--vx-muted);font-size:.68rem}.vx-preview-footer button{border:0;border-radius:999px;background:#1496f7;color:#fff;padding:.65rem .85rem;font-weight:850}
.vx-caption-word{display:inline-block;transition:color .08s ease,transform .08s ease,filter .08s ease}.vx-caption-word.is-active{color:var(--vx-caption-active,#22d3ee);transform:scale(1.08)}.vx-caption-punch .is-active{transform:scale(1.2) rotate(-1deg)}.vx-caption-rise .is-active{transform:translateY(-.16em)}.vx-caption-fade .vx-caption-word:not(.is-active){opacity:.62}.vx-caption-glow .is-active{filter:drop-shadow(0 0 .28em currentColor)}
.vx-motion-auto,.vx-motion-zoom_in{animation:vxZoomIn 5s linear infinite alternate}.vx-motion-zoom_out{animation:vxZoomOut 5s linear infinite alternate}.vx-motion-pan_left{animation:vxPanLeft 5s linear infinite alternate}.vx-motion-pan_right{animation:vxPanRight 5s linear infinite alternate}.vx-motion-pan_up{animation:vxPanUp 5s linear infinite alternate}@keyframes vxZoomIn{from{transform:scale(1)}to{transform:scale(1.12)}}@keyframes vxZoomOut{from{transform:scale(1.12)}to{transform:scale(1)}}@keyframes vxPanLeft{from{transform:scale(1.12) translateX(4%)}to{transform:scale(1.12) translateX(-4%)}}@keyframes vxPanRight{from{transform:scale(1.12) translateX(-4%)}to{transform:scale(1.12) translateX(4%)}}@keyframes vxPanUp{from{transform:scale(1.12) translateY(4%)}to{transform:scale(1.12) translateY(-4%)}}
.vx-scene-card{display:grid;grid-template-columns:155px 1fr;border:1px solid var(--vx-line);border-radius:13px;background:#111b2b;overflow:hidden}.vx-scene-card.is-disabled{opacity:.48}.vx-scene-thumb{min-height:165px}.vx-scene-thumb button{position:absolute;left:8px;bottom:8px;border:0;border-radius:8px;background:rgba(3,10,22,.78);color:#fff;padding:.43rem .62rem;font-size:.65rem;font-weight:800}.vx-drag{color:#64748b;cursor:grab}.vx-inline-controls{display:grid;grid-template-columns:1fr 100px;gap:.6rem;margin-top:.55rem}.vx-inline-controls select,.vx-inline-controls input{margin-top:.25rem;padding:.5rem}.vx-animate{border-color:rgba(168,85,247,.55)!important;background:rgba(126,34,206,.22)!important;color:#d8b4fe!important}
.vx-scene-audio{margin-top:.75rem;border:1px solid rgba(56,189,248,.16);border-radius:10px;background:rgba(7,17,31,.48)}.vx-scene-audio summary{display:flex;align-items:center;justify-content:space-between;gap:.65rem;padding:.58rem .72rem;color:#c9d8ea;font-size:.68rem;font-weight:800;cursor:pointer}.vx-scene-audio summary b{color:#67e8f9;font-size:.62rem}.vx-scene-audio>div{display:grid;gap:.55rem;padding:0 .72rem .72rem}.vx-scene-audio label{display:grid;grid-template-columns:minmax(155px,1fr) minmax(120px,1.2fr) auto;align-items:center;gap:.55rem;color:#94a9c2;font-size:.66rem}.vx-scene-audio label span{display:flex;justify-content:space-between;gap:.5rem}.vx-scene-audio label b{color:#e5eef9}.vx-scene-audio input{width:100%;accent-color:#1599f7}.vx-scene-audio button{border:1px solid rgba(148,163,184,.22);border-radius:8px;background:#18263a;color:#dbeafe;padding:.42rem .55rem;font-size:.62rem;font-weight:800}.vx-scene-audio .vx-scene-audio-reset{justify-self:start;background:transparent;color:#7dd3fc}.vx-scene-audio small{color:#7187a2;font-size:.61rem;line-height:1.45}
.vx-switch{display:inline-flex;align-items:center;gap:.4rem;color:#cbd5e1;font-size:.67rem;font-weight:750}.vx-switch input{position:absolute;opacity:0}.vx-switch span{position:relative;width:34px;height:18px;border-radius:999px;background:#334155;transition:.15s}.vx-switch span:after{content:'';position:absolute;top:3px;left:3px;width:12px;height:12px;border-radius:50%;background:#fff;transition:.15s}.vx-switch input:checked+span{background:#158fec}.vx-switch input:checked+span:after{transform:translateX(16px)}
.vx-voice-tools{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:.6rem;margin-bottom:.7rem}.vx-voice-tools input{min-width:220px}.vx-voice-tools input,.vx-voice-tools select{width:100%;min-width:0;border:1px solid var(--vx-line);border-radius:10px;background:#0c1525;color:#eef6ff;padding:.68rem .75rem;font:650 .72rem 'Outfit',sans-serif}.vx-voice-tools input::placeholder{color:#71839a}.vx-voice-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.55rem}.vx-voice{display:grid;grid-template-columns:minmax(0,1fr) 38px;align-items:center;gap:.55rem;min-width:0;border:1px solid var(--vx-line);border-radius:11px;background:#101a2a;color:#fff;padding:.58rem;text-align:left}.vx-voice.is-selected{border-color:#20a3fa;box-shadow:inset 0 0 0 1px rgba(32,163,250,.5)}.vx-voice-select,.vx-setup-choice>label{display:grid;grid-template-columns:35px minmax(0,1fr);align-items:center;gap:.65rem;min-width:0;width:100%;border:0;background:transparent;color:#f8fafc;padding:0;text-align:left;cursor:pointer}.vx-setup-choice>label input{position:absolute;opacity:0;pointer-events:none}.vx-avatar,.vx-track-icon{display:grid;place-items:center;width:35px;height:35px;border-radius:50%;background:linear-gradient(145deg,#9c5de8,#32cfbf)}.vx-voice span:nth-child(2){min-width:0}.vx-voice b,.vx-voice small{display:block;overflow:hidden;text-overflow:ellipsis}.vx-voice b{font:750 .75rem/1.25 'Outfit',sans-serif;white-space:normal}.vx-voice small{margin-top:.15rem;color:var(--vx-muted);font-size:.62rem;white-space:nowrap}.vx-voice-preview{display:grid;place-items:center;width:36px;height:36px;border:1px solid rgba(125,211,252,.28);border-radius:50%;background:#172943;color:#7dd3fc;font-size:.72rem;cursor:pointer}.vx-voice-preview:hover{border-color:#38bdf8;background:#173753}.vx-voice-select:disabled{opacity:.55;cursor:wait}.vx-voice i{font-style:normal}.vx-voice-more{margin-top:.65rem}.vx-section-label{margin:1.2rem 0 .55rem;color:#9fb0c5;font-size:.72rem;text-transform:uppercase;letter-spacing:.08em}.vx-voice-segments{display:flex;flex-direction:column;gap:.45rem}.vx-voice-segments>div{display:grid;grid-template-columns:28px minmax(0,1fr) auto auto;align-items:center;gap:.65rem;padding:.65rem;border:1px solid var(--vx-line);border-radius:10px;background:#111a2b}.vx-voice-segments>div>span{display:grid;place-items:center;width:26px;height:26px;border-radius:50%;background:#0d345a;color:#4db5ff;font-size:.68rem;font-weight:900}.vx-voice-segments p{margin:0;color:#d8e1ee;font-size:.71rem;line-height:1.42}.vx-voice-segments button{padding:.5rem .65rem;font-size:.65rem}.vx-segment-play{display:grid;place-items:center;width:32px;height:32px;padding:0!important;border-radius:50%!important;color:#7dd3fc!important}.vx-voice-segments .is-missing strong{color:#fda4af;font-size:.66rem;font-weight:750}
.vx-preset-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.55rem}.vx-preset{overflow:hidden;border:1px solid var(--vx-line);border-radius:10px;background:#101525;color:#fff;padding:0}.vx-preset-sample{display:flex!important;flex-wrap:wrap;align-items:center;justify-content:center;gap:0 .22em;text-align:center;min-height:96px;padding:.55rem;background:linear-gradient(145deg,#17152b,#12182b);font-style:normal}.vx-preset-sample i{font:inherit;font-style:normal}.vx-preset-sample .is-active{color:var(--vx-caption-active,#22d3ee);animation:vxPresetWord 1.35s ease-in-out infinite}.vx-preset-sample.vx-caption-rise .is-active{animation-name:vxPresetRise}.vx-preset-sample.vx-caption-fade .vx-caption-word{animation:vxPresetFade 1.35s ease-in-out infinite}.vx-preset-sample.vx-caption-glow .is-active{animation-name:vxPresetGlow}.vx-preset b{display:block;padding:.48rem;color:#9fb0c5;font-size:.65rem}.vx-preset.is-selected{border-color:#1496f7;box-shadow:0 0 0 2px rgba(20,150,247,.13)}.vx-preset.is-selected b{color:#48b4ff}.vx-control-grid{display:grid;grid-template-columns:1fr 1fr;gap:1rem;margin-top:1rem;padding-top:1rem;border-top:1px solid var(--vx-line)}.vx-control-grid label{display:grid;grid-template-columns:1fr auto;align-items:center;gap:.4rem}.vx-control-grid input[type=range],.vx-control-grid select{grid-column:1/-1}.vx-control-grid input[type=color],.sw-workspace .vx-control-grid input[type=color]{width:60px;height:36px;padding:.15rem;border:1px solid var(--vx-line);border-radius:8px;background:#0c1423}@keyframes vxPresetWord{0%,100%{transform:scale(1)}45%{transform:scale(var(--vx-caption-pop-scale,1.18)) rotate(-1deg)}}@keyframes vxPresetRise{0%,100%{transform:translateY(0)}45%{transform:translateY(-.2em) scale(var(--vx-caption-pop-scale,1.12))}}@keyframes vxPresetFade{0%,100%{opacity:.42}50%{opacity:1}}@keyframes vxPresetGlow{0%,100%{filter:drop-shadow(0 0 .08em currentColor)}50%{filter:drop-shadow(0 0 .38em currentColor);transform:scale(1.1)}}
.vx-music-upload{display:flex;align-items:center;justify-content:center;margin-bottom:.75rem;padding:.78rem;border:1px dashed rgba(96,165,250,.45);border-radius:10px;color:#bfdbfe;font-size:.75rem;font-weight:800;cursor:pointer}.vx-track-list{display:flex;flex-direction:column;gap:.45rem}.vx-track{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:.7rem;min-width:0;padding:.65rem;border:1px solid var(--vx-line);border-radius:11px;background:#101a2a}.vx-track.is-selected{border-color:#1c9df4}.vx-track-select{display:block;min-width:0;width:100%;border:0!important;background:transparent!important;color:#f8fafc!important;padding:.48rem .65rem!important;text-align:left;cursor:pointer}.vx-track-select>span{display:block;min-width:0}.vx-track b,.vx-track small{display:block;overflow:hidden;text-overflow:ellipsis}.vx-track b{white-space:normal}.vx-track small{margin-top:.15rem;color:var(--vx-muted);font-size:.62rem;white-space:normal}.vx-track button{padding:.48rem .65rem;font-size:.65rem}
.vx-generation-status{display:grid;grid-template-columns:repeat(3,minmax(120px,1fr));gap:.75rem;width:min(620px,100%);margin:1.15rem auto}.vx-generation-status>div{padding:.85rem;border:1px solid rgba(56,189,248,.2);border-radius:13px;background:rgba(15,23,42,.66)}.vx-generation-status b,.vx-generation-status span{display:block}.vx-generation-status b{font:800 1.2rem 'Outfit',sans-serif;color:#f8fafc}.vx-generation-status span{margin-top:.15rem;color:#8fa6bf;font-size:.68rem}.vx-generation-warning{display:grid;place-items:center;width:58px;height:58px;margin:0 auto 1rem;border:1px solid rgba(251,113,133,.45);border-radius:50%;background:rgba(190,24,93,.16);color:#fda4af;font:900 1.8rem 'Outfit',sans-serif}.vx-generating-screen>.vx-primary{margin:.25rem auto 1rem}.vx-inline-controls-simple{grid-template-columns:minmax(0,360px)}
.vx-audio-card{display:grid;gap:1.2rem;padding:1rem;border:1px solid var(--vx-line);border-radius:13px;background:#111b2b}.vx-audio-card>label{display:grid;grid-template-columns:1fr auto;gap:.55rem}.vx-audio-card input{grid-column:1/-1;width:100%;accent-color:#1599f7}.vx-speed{grid-column:1/-1;display:grid;grid-template-columns:repeat(5,1fr);gap:.35rem}.vx-speed button{border:0;border-radius:8px;background:#162337;color:#71839b;padding:.58rem}.vx-speed button.is-selected{background:#168ff1;color:#fff}
.vx-modal{position:fixed;inset:0;z-index:9990;display:grid;place-items:center;padding:2rem;background:rgba(2,7,16,.82);backdrop-filter:blur(8px)}.vx-modal-card{width:min(1050px,94vw);max-height:88vh;overflow:auto;padding:1.25rem;border:1px solid rgba(148,163,184,.3);border-radius:18px;background:#111b2c;box-shadow:0 30px 80px rgba(0,0,0,.5)}.vx-reorder-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.75rem}.vx-reorder-item{position:relative;overflow:hidden;border:1px solid var(--vx-line);border-radius:12px;background:#192438;cursor:grab}.vx-reorder-item [data-asset-preview]{height:140px;background:#0b1321}.vx-reorder-item>b{position:absolute;top:8px;left:8px;padding:.3rem .45rem;border-radius:7px;background:rgba(3,10,22,.78)}.vx-reorder-item>span{display:block;padding:.55rem;color:#bbc7d7;font-size:.66rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.vx-add-scene-footer{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-top:1rem;padding:1rem;border:1px dashed rgba(56,189,248,.32);border-radius:14px;background:linear-gradient(145deg,rgba(14,116,144,.1),rgba(37,99,235,.06))}.vx-add-scene-footer b,.vx-add-scene-footer span{display:block}.vx-add-scene-footer b{color:#eefaff;font-size:.8rem}.vx-add-scene-footer span{margin-top:.2rem;color:#8fa6bf;font-size:.68rem}.vx-extension-card{width:min(760px,94vw)}.vx-extension-field{display:flex;flex-direction:column;gap:.42rem;margin-top:1rem;color:#d9e7f7;font-size:.74rem;font-weight:750}.vx-extension-textarea-wrap{position:relative}.vx-extension-field textarea{width:100%;border:1px solid rgba(148,163,184,.28);border-radius:11px;background:#0b1423;color:#f8fafc;padding:.78rem;resize:vertical}.vx-extension-field textarea[aria-busy="true"]{color:transparent;caret-color:transparent}.vx-extension-loading{position:absolute;inset:1px;display:flex;align-items:center;gap:.7rem;padding:1rem;border-radius:10px;overflow:hidden;background:linear-gradient(105deg,#0b1423 20%,#11243b 42%,#0b1423 64%);background-size:220% 100%;color:#bfe8ff;font-size:.72rem;font-weight:650;line-height:1.45;animation:vx-extension-shimmer 1.7s linear infinite}.vx-extension-loading i{flex:0 0 auto;width:1rem;height:1rem;border:2px solid rgba(56,189,248,.28);border-top-color:#38bdf8;border-radius:50%;animation:vx-spin .8s linear infinite}.vx-extension-field>small{color:#8197b1;font-size:.66rem;font-weight:500;line-height:1.45}.vx-extension-tools{display:flex;flex-wrap:wrap;gap:.55rem;margin-top:.75rem}.vx-extension-summary{display:flex;justify-content:space-between;gap:1rem;margin-top:1rem;padding:.8rem;border:1px solid rgba(56,189,248,.22);border-radius:12px;background:rgba(14,116,144,.09);color:#a9bfd7;font-size:.69rem}.vx-extension-actions{display:flex;justify-content:flex-end;gap:.65rem;margin-top:1rem}.vx-render-stale,.vx-render-error{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-bottom:.85rem;padding:.72rem .9rem;border-radius:12px;font-size:.7rem}.vx-render-stale{border:1px solid rgba(245,158,11,.3);background:rgba(146,64,14,.12);color:#fde68a}.vx-render-stale span{color:#d7c8a5}.vx-render-error{border:1px solid rgba(248,113,113,.28);background:rgba(127,29,29,.14);color:#fecaca}.vx-render-error b,.vx-render-error span{display:block}.vx-render-error span{margin-top:.2rem;color:#d7b5bd;line-height:1.45}.vx-render-error button{flex:0 0 auto;border:1px solid rgba(248,113,113,.35);border-radius:9px;background:rgba(127,29,29,.22);color:#fee2e2;padding:.55rem .8rem;font-weight:750;cursor:pointer}
.vx-scene-resource-state{display:flex;align-items:center;gap:.65rem;margin-top:.7rem;padding:.7rem .8rem;border:1px solid rgba(56,189,248,.24);border-radius:11px;background:rgba(14,116,144,.09);color:#cceeff}.vx-scene-resource-state b,.vx-scene-resource-state small{display:block}.vx-scene-resource-state b{font-size:.7rem}.vx-scene-resource-state small{margin-top:.16rem;color:#8fa9c2;font-size:.62rem;line-height:1.4}.vx-scene-resource-state.is-error{border-color:rgba(244,63,94,.34);background:rgba(136,19,55,.13);color:#fecdd3}.vx-scene-resource-state.is-error small{color:#fda4af}.vx-scene-pending{border-style:dashed}.vx-scene-pending .vx-scene-thumb{display:flex;gap:.55rem;color:#7dd3fc}.vx-pending-symbol{display:grid;place-items:center;width:2rem;height:2rem;border:1px solid rgba(244,63,94,.45);border-radius:50%;background:rgba(136,19,55,.22);color:#fda4af;font-weight:900}.vx-pending-pill{padding:.28rem .5rem;border:1px solid rgba(56,189,248,.3);border-radius:999px;background:rgba(14,116,144,.13);color:#7dd3fc;font-size:.62rem;font-weight:800}.vx-pending-pill.is-error{border-color:rgba(244,63,94,.4);background:rgba(136,19,55,.2);color:#fda4af}@keyframes vx-extension-shimmer{to{background-position:-220% 0}}
.vx-render-screen,.vx-complete{display:flex;min-height:70vh;flex-direction:column;align-items:center;justify-content:center;text-align:center}.vx-render-spinner{width:62px;height:62px;margin-bottom:1rem;border:4px solid rgba(59,130,246,.18);border-top-color:#1496f7;border-radius:50%;animation:vxSpin .85s linear infinite}@keyframes vxSpin{to{transform:rotate(360deg)}}.vx-render-progress{width:min(520px,75vw);height:8px;margin:1rem 0;border-radius:99px;background:#1c293c;overflow:hidden}.vx-render-progress i{display:block;width:4%;height:100%;border-radius:99px;background:linear-gradient(90deg,#12c8db,#2861ee);transition:width .3s}.vx-render-screen small{color:#73859d}.vx-complete-check{display:grid;place-items:center;width:58px;height:58px;margin-bottom:.8rem;border:1px solid rgba(52,211,153,.4);border-radius:50%;background:rgba(16,185,129,.12);color:#34d399;font-size:1.5rem}.vx-final-video{width:min(430px,70vw);margin:1.2rem auto;overflow:hidden;border-radius:15px;background:#050a12;box-shadow:0 24px 60px rgba(0,0,0,.35)}.vx-final-video video{display:block;width:100%;max-height:58vh;background:#000}.vx-complete-actions{display:flex;align-items:center;gap:.65rem}
.vx-message{position:fixed;right:24px;bottom:24px;z-index:9995;max-width:480px;padding:.75rem 1rem;border:1px solid rgba(34,211,238,.28);border-radius:11px;background:#10253a;color:#a5f3fc;box-shadow:0 16px 44px rgba(0,0,0,.35);font-size:.74rem;pointer-events:none}.vx-message[data-kind=error]{border-color:rgba(248,113,113,.45);background:#351823;color:#fecaca}.vx-message[data-kind=ok]{border-color:rgba(52,211,153,.4);background:#123128;color:#a7f3d0}
.vx-project-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.8rem}.vx-project-card{display:flex;min-height:150px;flex-direction:column;align-items:flex-start;gap:.45rem;padding:1rem;border:1px solid var(--vx-line);border-radius:14px;background:var(--vx-panel);color:#fff;text-align:left}.vx-project-card.is-active{border-color:#22d3ee}.vx-project-card b{font-size:.94rem}.vx-project-card small{color:var(--vx-muted)}.vx-project-card span{margin-top:auto;color:#67e8f9;font-size:.7rem;font-weight:800}
@media(max-width:1180px){.vx-setup-layout{grid-template-columns:1fr}.vx-example-card{position:relative;top:auto;width:min(420px,100%);margin-inline:auto}}
@media(max-width:1050px){.vx-editor-grid{grid-template-columns:minmax(0,1fr) 300px}.vx-field-grid{grid-template-columns:repeat(2,1fr)}.vx-style-grid{grid-template-columns:repeat(4,1fr)}}
@media(max-width:820px){.vx-editor-grid{grid-template-columns:1fr}.vx-preview-card{position:relative;top:auto;width:min(360px,100%);margin:0 auto;grid-row:1}.vx-resource-card{grid-template-columns:190px 1fr}.vx-style-grid,.vx-preset-grid,.vx-project-grid{grid-template-columns:repeat(2,1fr)}.vx-reorder-grid{grid-template-columns:repeat(2,1fr)}}
/* Fit style samples to the panel, including the animated word at full scale. */
.vx-editor .vx-preset-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,160px),1fr))}
@media(max-width:860px){body[data-product-mode="express"] #express-sidebar{transform:translateX(-100%);transition:transform .3s ease;z-index:600}body[data-product-mode="express"] #express-sidebar.open{transform:translateX(0);box-shadow:4px 0 30px rgba(0,0,0,.7)}}
@media(max-width:620px){.vx-style-grid,.vx-field-grid,.vx-control-grid,.vx-voice-grid,.vx-voice-tools,.vx-project-grid,.vx-generation-status{grid-template-columns:1fr}.vx-voice-tools input{grid-column:auto}.vx-script-source{grid-template-columns:1fr}.vx-script-source button{min-width:0}.vx-script-editor>label,.vx-script-footer{align-items:flex-start;flex-direction:column}.vx-script-editor .vx-script-textarea{min-height:340px}.vx-script-loading{align-items:flex-start;flex-direction:column}.vx-resource-card,.vx-scene-card{grid-template-columns:1fr}.vx-resource-visual,.vx-scene-thumb{min-height:180px}.vx-flow-head{align-items:flex-start;flex-direction:column}.vx-reorder-grid{grid-template-columns:1fr}.vx-create{min-width:100%}.vx-inline-controls{grid-template-columns:1fr}.vx-track{grid-template-columns:auto 1fr auto}.vx-track button:last-child{grid-column:2/-1}.vx-complete-actions{flex-direction:column}.vx-voice-segments>div{grid-template-columns:28px minmax(0,1fr) auto}.vx-voice-segments>div>button:last-child,.vx-voice-segments>div>strong{grid-column:2/-1}}

/* VSP Exprés — dirección de cámara y transiciones premium compartidas con render */
.vx-preview-layer{position:absolute;inset:0;overflow:hidden;transform-origin:center;will-change:transform,opacity,filter,clip-path}.vx-preview-layer .vx-preview-media{width:100%;height:100%;object-fit:cover;transform-origin:center;will-change:transform}.vx-live-caption{z-index:4}.vx-preview-toggle,.vx-preview-count{z-index:5}.vx-caption-word.is-active{transform:scale(var(--vx-caption-pop-scale,1.15));-webkit-text-stroke:var(--vx-caption-active-stroke,0 transparent);text-shadow:var(--vx-caption-active-shadow,inherit)}.vx-caption-word.is-emoji{margin-inline:var(--vx-caption-emoji-spacing,0);font-size:calc(1em * var(--vx-caption-emoji-scale,1.15))}.vx-caption-punch .is-active{transform:scale(calc(var(--vx-caption-pop-scale,1.15) + .08)) rotate(-1deg)}.vx-caption-rise .is-active{transform:translateY(-.16em) scale(var(--vx-caption-pop-scale,1.15))}
.vx-preview-signals{display:flex;flex-wrap:wrap;justify-content:center;gap:.35rem;margin-top:.6rem}.vx-preview-signals span{padding:.25rem .45rem;border:1px solid rgba(56,189,248,.16);border-radius:999px;background:rgba(8,47,73,.22);color:#a5d8f3;font-size:.56rem;font-weight:700}
.vx-motion-auto,.vx-motion-zoom_in{animation:vxPremiumZoomIn var(--vx-scene-duration,5s) cubic-bezier(.22,.61,.36,1) both}.vx-motion-zoom_out{animation:vxPremiumZoomOut var(--vx-scene-duration,5s) cubic-bezier(.22,.61,.36,1) both}.vx-motion-pan_left{animation:vxPremiumPanLeft var(--vx-scene-duration,5s) ease-in-out both}.vx-motion-pan_right{animation:vxPremiumPanRight var(--vx-scene-duration,5s) ease-in-out both}.vx-motion-pan_up{animation:vxPremiumPanUp var(--vx-scene-duration,5s) ease-in-out both}.vx-motion-pan_down{animation:vxPremiumPanDown var(--vx-scene-duration,5s) ease-in-out both}.vx-motion-diagonal_up_left{animation:vxPremiumDiagUpLeft var(--vx-scene-duration,5s) ease-in-out both}.vx-motion-diagonal_up_right{animation:vxPremiumDiagUpRight var(--vx-scene-duration,5s) ease-in-out both}.vx-motion-diagonal_down_left{animation:vxPremiumDiagDownLeft var(--vx-scene-duration,5s) ease-in-out both}.vx-motion-diagonal_down_right{animation:vxPremiumDiagDownRight var(--vx-scene-duration,5s) ease-in-out both}.vx-motion-dolly_left{animation:vxPremiumDollyLeft var(--vx-scene-duration,5s) cubic-bezier(.22,.61,.36,1) both}.vx-motion-dolly_right{animation:vxPremiumDollyRight var(--vx-scene-duration,5s) cubic-bezier(.22,.61,.36,1) both}.vx-motion-drift{animation:vxPremiumDrift var(--vx-scene-duration,5s) ease-in-out both}.vx-motion-tilt_left{animation:vxPremiumTiltLeft var(--vx-scene-duration,5s) ease-in-out both}.vx-motion-tilt_right{animation:vxPremiumTiltRight var(--vx-scene-duration,5s) ease-in-out both}.vx-motion-impact{animation:vxPremiumImpact var(--vx-scene-duration,5s) cubic-bezier(.16,1,.3,1) both}
@keyframes vxPremiumZoomIn{from{transform:scale(1.025)}to{transform:scale(1.14)}}@keyframes vxPremiumZoomOut{from{transform:scale(1.14)}to{transform:scale(1.025)}}@keyframes vxPremiumPanLeft{from{transform:scale(1.15) translateX(4%)}to{transform:scale(1.15) translateX(-4%)}}@keyframes vxPremiumPanRight{from{transform:scale(1.15) translateX(-4%)}to{transform:scale(1.15) translateX(4%)}}@keyframes vxPremiumPanUp{from{transform:scale(1.15) translateY(4%)}to{transform:scale(1.15) translateY(-4%)}}@keyframes vxPremiumPanDown{from{transform:scale(1.15) translateY(-4%)}to{transform:scale(1.15) translateY(4%)}}@keyframes vxPremiumDiagUpLeft{from{transform:scale(1.17) translate(3%,3%)}to{transform:scale(1.17) translate(-3%,-3%)}}@keyframes vxPremiumDiagUpRight{from{transform:scale(1.17) translate(-3%,3%)}to{transform:scale(1.17) translate(3%,-3%)}}@keyframes vxPremiumDiagDownLeft{from{transform:scale(1.17) translate(3%,-3%)}to{transform:scale(1.17) translate(-3%,3%)}}@keyframes vxPremiumDiagDownRight{from{transform:scale(1.17) translate(-3%,-3%)}to{transform:scale(1.17) translate(3%,3%)}}@keyframes vxPremiumDollyLeft{from{transform:scale(1.04)}to{transform:scale(1.16) translateX(-3%)}}@keyframes vxPremiumDollyRight{from{transform:scale(1.04)}to{transform:scale(1.16) translateX(3%)}}@keyframes vxPremiumDrift{0%{transform:scale(1.1) translate(0,1.5%)}50%{transform:scale(1.125) translate(1.5%,0)}100%{transform:scale(1.1) translate(0,-1.5%)}}@keyframes vxPremiumTiltLeft{from{transform:scale(1.13) translateX(1.5%) rotate(1.2deg)}to{transform:scale(1.13) translateX(-1.5%) rotate(-1.6deg)}}@keyframes vxPremiumTiltRight{from{transform:scale(1.13) translateX(-1.5%) rotate(-1.2deg)}to{transform:scale(1.13) translateX(1.5%) rotate(1.6deg)}}@keyframes vxPremiumImpact{0%{transform:scale(1.09)}2%{transform:scale(1.085) translate(-1.2%,.8%) rotate(-.6deg)}4%{transform:scale(1.08) translate(1%,-.7%) rotate(.5deg)}7%{transform:scale(1.075) translate(-.6%,.4%)}11%{transform:scale(1.065) translate(.3%,-.2%)}18%,100%{transform:scale(1.055)}}
.vx-inline-controls-premium{grid-template-columns:minmax(0,1.35fr) minmax(0,1fr) minmax(90px,.55fr)}
.vx-editor{width:100%;max-width:1680px;margin-inline:auto}.vx-editor-grid{grid-template-columns:minmax(620px,1fr) minmax(430px,500px);gap:clamp(1rem,2vw,1.8rem);justify-content:center}.vx-preview-card{width:100%;max-width:500px;justify-self:center;padding:1.2rem}.vx-preview-title,.vx-preview-footer{width:100%;margin-inline:auto}.vx-preview-stage{margin-inline:auto}
.vx-professional-toolbar{display:grid;grid-template-columns:minmax(280px,420px) 1fr;gap:1rem;align-items:end;margin:0 0 1rem;padding:1rem;border:1px solid rgba(56,189,248,.22);border-radius:16px;background:linear-gradient(135deg,rgba(14,116,144,.11),rgba(99,102,241,.08))}.vx-global-model{display:grid;gap:.35rem;color:#dbeafe;font-size:.72rem;font-weight:850}.vx-global-model select,.vx-model-select select{min-width:0;border:1px solid rgba(56,189,248,.38);border-radius:10px;background:#0a1627;color:#fff;padding:.65rem .75rem;font-weight:800}.vx-global-model small{color:#7791ad;font-size:.62rem;line-height:1.35}.vx-professional-tools{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:.55rem}.vx-professional-tools button{border:1px solid rgba(167,139,250,.4);border-radius:10px;background:#18253a;color:#e9e5ff;padding:.64rem .78rem;font-size:.68rem;font-weight:850}.vx-model-select{display:grid;grid-template-columns:minmax(115px,.65fr) minmax(160px,1fr);align-items:center;gap:.55rem;margin:.55rem 0;color:#c4b5fd;font-size:.68rem;font-weight:850}.vx-inline-controls-premium{grid-template-columns:repeat(2,minmax(0,1fr))}.vx-pro-scene-actions{padding-top:.1rem;margin-bottom:.65rem}.vx-more-controls{margin-top:.55rem;border-top:1px solid rgba(148,163,184,.12)}.vx-more-controls>summary{padding:.55rem 0;color:#7dd3fc;font-size:.66rem;font-weight:800;cursor:pointer}.vx-more-controls-body{display:flex;flex-wrap:wrap;gap:.55rem;padding-bottom:.55rem}.vx-progress-board{display:grid;gap:.8rem;padding:1rem;border:1px solid var(--vx-line);border-radius:14px;background:#0b1627}.vx-progress-meter>div{display:flex;justify-content:space-between;gap:1rem;margin-bottom:.4rem;color:#cbd5e1;font-size:.72rem}.vx-progress-meter>div span{color:#7dd3fc}.vx-progress-meter>i{display:block;height:8px;overflow:hidden;border-radius:999px;background:#1d2a3d}.vx-progress-meter>i span{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#22d3ee,#8b5cf6);box-shadow:0 0 16px rgba(34,211,238,.35)}.vx-progress-scenes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.55rem;margin-top:.8rem}.vx-progress-scenes button{display:grid;grid-template-columns:1fr auto auto auto;gap:.45rem;align-items:center;text-align:left;border:1px solid var(--vx-line);border-radius:10px;background:#111c2d;color:#94a3b8;padding:.65rem;font-size:.62rem}.vx-progress-scenes button b{color:#e2e8f0}.vx-progress-scenes button span{padding:.2rem .35rem;border-radius:999px;background:#1d293a}.vx-progress-scenes button span.is-ready{background:rgba(16,185,129,.13);color:#6ee7b7}.vx-progress-scenes button em{grid-column:1/-1;color:#fda4af}.vx-preview-footer{flex-wrap:wrap}.vx-preview-play{background:linear-gradient(135deg,#0891b2,#2563eb)!important}.vx-track-category>h3{margin:1rem 0 .45rem;color:#8da3bd;font-size:.68rem;text-transform:uppercase;letter-spacing:.08em}
.vx-track.vx-library-track{grid-template-columns:auto minmax(0,1fr) auto auto}
.vx-cinema-local-shell{height:100%;display:flex;flex-direction:column;gap:.65rem;overflow:hidden}.vx-cinema-local-label{padding:0 .75rem;color:#6ee7b7;font-size:.72rem;font-weight:900;letter-spacing:.12em;text-transform:uppercase}.vx-cinema-local-frame{position:relative;flex:1;min-height:0;overflow:hidden;border-radius:14px;background:#020617}.vx-cinema-local-frame .vx-live-caption{position:absolute}

/* Exprés cierre visual: controles estables, estados locales y proyectos reconocibles. */
.vx-preview-footer{flex-direction:column;justify-content:center;text-align:center}.vx-preview-footer button{align-self:center;min-width:190px}
[data-story-saved-final]{display:grid;justify-items:center;gap:.55rem;max-width:360px;margin:.35rem auto 0;text-align:center}
[data-story-saved-final] small{display:block;color:#9fb1c8;font-size:.72rem;line-height:1.5}
.vx-preview-footer [data-story-saved-final] button{background:#102337;border:1px solid rgba(56,189,248,.35);color:#8ce9ff}
.vx-voice-preview{box-sizing:border-box;min-width:36px;max-width:36px;padding:0!important;overflow:hidden;white-space:nowrap;line-height:1}.vx-voice.is-playing{border-color:#38bdf8;box-shadow:inset 0 0 0 1px rgba(56,189,248,.55),0 0 0 2px rgba(14,165,233,.12)}.vx-voice-preview.is-playing{background:#0e7490;color:#fff}.vsp-voice-preview-compact{width:36px!important;min-width:36px!important;max-width:36px!important;height:36px!important;padding:0!important;overflow:hidden;display:inline-grid!important;place-items:center;line-height:1!important;white-space:nowrap;flex:0 0 36px}
.vx-inline-spinner{display:inline-block;width:.8em;height:.8em;margin-right:.32em;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;vertical-align:-.08em;animation:vx-spin .7s linear infinite}.vx-animate.is-ready{border-color:rgba(34,197,94,.5)!important;background:rgba(22,101,52,.2)!important;color:#86efac!important}.vx-animate.is-error{border-color:rgba(244,63,94,.55)!important;background:rgba(136,19,55,.22)!important;color:#fda4af!important}.vx-inline-error{margin:.45rem 0 0;color:#fda4af;font-size:.66rem;line-height:1.35}
.vx-project-grid{grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:1rem}.vx-project-card{display:grid;grid-template-columns:minmax(110px,160px) minmax(0,1fr);min-height:0;align-items:stretch;gap:0;padding:0;overflow:hidden}.vx-project-cover{display:grid;place-items:center;width:100%;max-height:230px;background:linear-gradient(145deg,#0b1526,#17243a);color:#60738c;overflow:hidden}.vx-project-cover img{width:100%;height:100%;object-fit:cover}.vx-project-body{display:flex;min-width:0;flex-direction:column;gap:.45rem;padding:1rem}.vx-project-body>b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.vx-project-actions{display:flex;flex-wrap:wrap;gap:.45rem;margin-top:auto}.vx-project-actions button{border:1px solid rgba(103,232,249,.24);border-radius:9px;background:#13243a;color:#dff8ff;padding:.48rem .62rem;font-size:.66rem;font-weight:800}.vx-project-actions button:first-child{background:#0e7490;border-color:#22d3ee;color:#fff}.vx-project-actions button.vx-danger,.vsp-library-actions button.vx-danger{border-color:rgba(244,63,94,.42);background:rgba(136,19,55,.22);color:#fda4af}.vx-project-actions button.vx-danger:hover:not(:disabled),.vsp-library-actions button.vx-danger:hover:not(:disabled){border-color:rgba(251,113,133,.65);background:rgba(159,18,57,.34);color:#ffe4e6}.vx-preview-footer button.vx-secondary{background:#13243a;border:1px solid rgba(103,232,249,.32);color:#9aedff}
.vx-project-body time{color:#91a6bf;font-size:.66rem}.vx-project-status{align-self:flex-start;padding:.24rem .46rem;border:1px solid rgba(148,163,184,.22);border-radius:999px;font-size:.58rem;font-weight:850;letter-spacing:.04em;text-transform:uppercase}.vx-project-status.is-ready{border-color:rgba(52,211,153,.3);background:rgba(16,185,129,.1);color:#86efac}.vx-project-status.is-editing{border-color:rgba(56,189,248,.25);background:rgba(14,116,144,.1);color:#7dd3fc}.vx-project-status.is-stale{border-color:rgba(245,158,11,.34);background:rgba(146,64,14,.14);color:#fde68a}
.vx-track-category{display:flex;flex-direction:column;gap:.45rem}.vx-track-category+.vx-track-category{margin-top:1rem;padding-top:.9rem;border-top:1px solid var(--vx-line)}.vx-track-category>h3{margin:0;color:#9fb0c5;font-size:.69rem;letter-spacing:.08em;text-transform:uppercase}
@keyframes vx-spin{to{transform:rotate(360deg)}}
@media(max-width:620px){.vx-project-card{grid-template-columns:110px minmax(0,1fr)}.vx-project-actions button{width:100%}}
@media(max-width:620px){.vx-track.vx-library-track{grid-template-columns:auto minmax(0,1fr) auto}.vx-track.vx-library-track button:last-child{grid-column:2/-1}}
@media(max-width:620px){.vx-scene-audio label{grid-template-columns:1fr auto}.vx-scene-audio label input{grid-column:1/-1;grid-row:2}.vx-scene-audio label button{grid-column:2;grid-row:1}}
@media(max-height:900px) and (min-width:961px){.vx-preview-card{max-height:calc(100vh - 32px);overflow-y:auto}.vx-preview-stage{max-height:calc(100vh - 290px);width:auto;max-width:100%}}
@media(max-width:1250px){.vx-editor-grid{grid-template-columns:minmax(0,1fr) minmax(370px,420px)}}
@media(max-width:960px){.vx-editor-grid{grid-template-columns:1fr}.vx-preview-card{position:relative;top:auto;width:min(520px,100%);max-width:520px;margin-inline:auto;grid-row:1}}
@media(max-width:820px){.vx-professional-toolbar{grid-template-columns:1fr}.vx-professional-tools{justify-content:flex-start}.vx-progress-scenes{grid-template-columns:1fr}}
@media(max-width:900px){.vx-voice-tools{grid-template-columns:1fr 1fr}.vx-voice-tools input{grid-column:1/-1}}
@media(max-width:900px){.vx-inline-controls-premium{grid-template-columns:1fr 1fr}.vx-inline-controls-premium label:last-child{grid-column:1/-1}}
@media(prefers-reduced-motion:reduce){.vx-preview-layer,.vx-preview-media,.vx-script-spinner{animation:none!important}.vx-transition-active .vx-preview-current{opacity:1}.vx-transition-active .vx-preview-previous{display:none}}

/* Scoped styles under #module-audio to prevent leaks */
#module-audio .card {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(0, 240, 255, 0.20);
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  margin-bottom: 1rem;
}

#module-audio .card:hover {
  border-color: rgba(0, 240, 255, 0.50);
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.12), 0 4px 24px rgba(0, 0, 0, 0.45);
  transform: translateY(-2px);
}

#module-audio .voice-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

#module-audio .voice-card:hover {
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.05);
}

#module-audio .voice-card.active {
  background: rgba(255, 159, 28, 0.12);
  border-color: var(--accent-audio);
  box-shadow: 0 0 12px rgba(255, 159, 28, 0.25);
}

#module-audio .voice-name {
  font-size: 0.85rem;
  font-weight: 500;
  color: #ddd;
}

#module-audio .voice-card.active .voice-name {
  color: var(--accent-audio);
  font-weight: 700;
}

#module-audio .control-group {
  margin-bottom: 1.2rem;
}

#module-audio .control-group label {
  display: block;
  font-size: 0.85rem;
  color: #888;
  margin-bottom: 0.5rem;
}

#module-audio .neon-input {
  width: 100%;
  padding: 0.8rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  color: white;
  outline: none;
  transition: all 0.2s ease;
  font-family: inherit;
}

#module-audio .neon-input:focus {
  border-color: #00F0FF;
  box-shadow: 0 0 8px rgba(0, 240, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
}

#module-audio .neon-input option {
  background: #0f0f0f;
  color: #fff;
}

#module-audio .neon-textarea {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  color: white;
  padding: 0.8rem 1rem;
  width: 100%;
  outline: none;
  font-family: inherit;
  font-size: 0.9rem;
  resize: vertical;
  transition: all 0.2s ease;
}

#module-audio .neon-textarea:focus {
  border-color: #00F0FF;
  box-shadow: 0 0 8px rgba(0, 240, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
}

#module-audio .history-item {
  background: rgba(255, 255, 255, 0.02);
  border: var(--border-subtle);
  padding: 0.75rem;
  border-radius: 7px;
  margin-bottom: 0.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

#module-audio .history-item:hover {
  border-color: rgba(255, 255, 255, 0.28);
}

#module-audio .history-item button,
#module-audio .history-item a {
  color: rgba(255, 255, 255, 0.75);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  transition: color 0.2s;
}

#module-audio .history-item button:hover,
#module-audio .history-item a:hover {
  color: var(--neon-blue);
}

#module-audio .btn-neon {
  background: transparent;
  border: 1px solid var(--module-accent);
  color: var(--module-accent);
  padding: 0.7rem 1.4rem;
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  border-radius: 6px;
  font-family: inherit;
  transition: all 0.25s ease;
}

#module-audio .btn-neon:hover {
  background: var(--module-accent);
  color: #000;
  box-shadow: 0 0 20px var(--module-glow);
}

#module-audio .btn-neon:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

#module-audio .btn-text {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  font-family: inherit;
  transition: color 0.2s;
}

/* ─── LIPSYNC UGC RESPONSIVE LAYOUT ─── */
.lipsync-container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.5rem;
  height: calc(100vh - 120px);
  min-height: 550px;
  box-sizing: border-box;
  padding: 0.5rem 0;
}

.lipsync-portraits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-top: 0.5rem;
}

@media (max-width: 900px) {
  .lipsync-container {
    grid-template-columns: 1fr;
    height: auto;
    min-height: auto;
    gap: 1rem;
    overflow-y: visible;
  }
}

/* Assets narrativos en Mi Historia y Crear Historia; Crear Escena queda aislada. */
:is(#vsp-identity-widget-container, #story-identity-widget-main) .vsp-character-sheet-title {
  color: #a78bfa !important;
  font-size: clamp(1.25rem, 1.2vw, 1.5rem) !important;
  font-weight: 700 !important;
  line-height: 1.35;
}
:is(#vsp-identity-widget-container, #story-identity-widget-main) .vsp-atrezo-section .vsp-story-creative-title {
  color: #a78bfa !important;
  font-size: clamp(1.3rem, 1.4vw, 1.65rem) !important;
  font-weight: 750 !important;
  line-height: 1.35;
}
:is(#vsp-identity-widget-container, #story-identity-widget-main) .vsp-atrezo-slot > label {
  color: #aab4c3 !important;
  font-size: clamp(0.8rem, 0.85vw, 0.95rem) !important;
  font-weight: 500 !important;
}
:is(#vsp-identity-widget-container, #story-identity-widget-main) .vsp-atrezo-slot > input[type="text"] {
  color: #e8edf3 !important;
  font-size: clamp(1.1rem, 1.2vw, 1.4rem) !important;
  font-weight: 700 !important;
  padding: 0.65rem 0.75rem !important;
}
:is(#vsp-identity-widget-container, #story-identity-widget-main) .vsp-atrezo-slot > textarea {
  color: #e8edf3 !important;
  font-size: clamp(0.95rem, 1vw, 1.1rem) !important;
  line-height: 1.55;
}
:is(#vsp-identity-widget-container, #story-identity-widget-main) .vsp-atrezo-create:not(.vsp-atrezo-creating) {
  color: #22d3ee !important;
  background: rgba(34, 211, 238, 0.08) !important;
  border-color: rgba(34, 211, 238, 0.35) !important;
}
:is(#vsp-identity-widget-container, #story-identity-widget-main) .vsp-turnaround-container > div:first-child { flex-wrap: wrap; gap: 0.5rem; }
/* Las capacidades se consultan en los ajustes del modelo. */
:is(#vsp-identity-widget-container, #story-identity-widget-main) .vsp-identity-model-help { display: none !important; }

/* Objetos: ambas vistas usan el mismo fucsia que Estilo Visual. */
#module-briefing #vsp-identity-widget-container .vsp-atrezo-slot > input[type="text"],
#story-identity-widget-main .vsp-atrezo-slot > input[type="text"] {
  color: #FF2D78 !important;
}
#module-briefing #vsp-identity-widget-container .vsp-atrezo-slot > label {
  font-size: calc(clamp(0.8rem, 0.85vw, 0.95rem) - 1px) !important;
}
#module-briefing #vsp-identity-widget-container .vsp-atrezo-slot > input[type="text"] {
  font-size: calc(clamp(1.1rem, 1.2vw, 1.4rem) + 2px) !important;
}
#module-briefing #vsp-identity-widget-container .vsp-atrezo-slot > textarea {
  font-size: calc(clamp(0.95rem, 1vw, 1.1rem) - 2px) !important;
}

/* Mi Historia: estudio en cian, narrativa en violeta. Solo presentación. */
#module-briefing {
  --story-studio: #22d3ee;
  --story-creative: #a78bfa;
  --story-text: #e8edf3;
  --story-muted: #9ca6b5;
}
#module-briefing > .module-header h2,
#module-briefing #vsp-ia-metrics-card > h4 { color: var(--story-studio) !important; }
#module-briefing .vsp-project-section-label,
#module-briefing .vsp-story-creative-title,
#module-briefing #vsp-analysis-title,
#module-briefing #vsp-story-analysis-card > div > div > span:first-child,
#module-briefing .vsp-project-wrap > .vsp-card > div > label {
  color: var(--story-creative) !important;
}
#module-briefing input[type="text"],
#module-briefing textarea,
#module-briefing [id^="vsp-analysis-"]:not(#vsp-analysis-title),
#module-briefing > .module-header p { color: var(--story-text) !important; }
#module-briefing .vsp-project-section-kicker,
#module-briefing .vsp-metric-desc,
#module-briefing #vsp-audience-suggestion-note,
#module-briefing .vsp-project-wrap > .vsp-card > div > label > span {
  color: var(--story-muted) !important;
}

/* Cabeceras de Historia y Estilo Visual */
@media (min-width: 861px) {
  #module-briefing {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    gap: 1.5rem 2rem;
    align-items: start;
  }
  #module-briefing > .module-header { grid-column: 1; margin-bottom: 0; }
  #module-briefing #briefing-content,
  #module-briefing .vsp-project-wrap { display: contents !important; }
  #module-briefing .vsp-project-wrap > .vsp-card { grid-column: 1; grid-row: 2; }
  #module-briefing .vsp-project-wrap > div:nth-child(2) { grid-column: 2; grid-row: 1 / 3; }
  #module-briefing .vsp-project-wrap > div:nth-child(2) > div:first-child > h3 { text-align: left !important; }
}
#module-estilo .module-header p {
  font-size: clamp(1rem, 1.1vw, 1.2rem) !important;
}

/* ESTILO VISUAL — STICKY HEADER SÓLIDO */
#app-layout, #workspace, .module {
  overflow: visible !important;
}

.estilo-sticky-header-wrapper {
  position: -webkit-sticky;
  position: sticky;
  top: var(--header-height);
  z-index: 100;
  background: #050505; /* Fondo sólido igual al de la página, sin transparencia */
  padding-top: 0;
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06); /* Separación sutil */
}

#estilo-model-recommendation {
  margin-top: 0.5rem;
  margin-bottom: 0.25rem;
  padding: 0.85rem 1.25rem;
  background: rgba(0, 240, 255, 0.04);
  border: 1px solid rgba(0, 240, 255, 0.18);
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  font-size: 0.85rem;
  color: #38bdf8;
  line-height: 1.4;
  text-align: left;
  font-family: 'Outfit', sans-serif;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

@media (max-width: 860px) {
  .estilo-sticky-header-wrapper {
    top: var(--header-height);
    padding-top: 0;
    padding-bottom: 0.5rem;
  }
}

/* 🌟 VSP Character Sheet History Gallery (Columna Derecha) */
.vsp-history-container {
  border: 1px solid #00d2ff;
  border-radius: 12px;
  padding: 30px 20px;
  background-color: #0b0f19;
  margin-top: 25px;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.vsp-history-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: #00d2ff;
  text-align: center;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.vsp-history-empty-text {
  color: #e2e8f0;
  font-size: 1rem;
  text-align: center;
  opacity: 0.85;
}

.vsp-history-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.vsp-history-item {
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  background: rgba(0, 0, 0, 0.3);
}

.vsp-history-item:hover {
  transform: scale(1.03);
  box-shadow: 0 0 10px rgba(0, 210, 255, 0.5);
}

.vsp-history-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 576px) {
  .vsp-history-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Resolution buttons disabled state ── */
.vid-res-btn.disabled {
  opacity: 0.35 !important;
  background-color: #1a202c !important;
  border-color: #2d3748 !important;
  color: #a0aec0 !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
  box-shadow: none !important;
}

/* Historia: los frames inicial y final comparten una fila en escritorio. */
.vsp-story-frame-pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.55rem;
  align-items: start;
  width: 100%;
}

@media (max-width: 900px) {
  .vsp-story-frame-pair {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Slider de escenas (look APG: readout − / N / unidad / +, track violeta, thumb esférico) */
.vsp-scenes-slider { margin-bottom: 0.9rem; }
.vsp-scenes-slider-label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.8);
  display: block;
  margin-bottom: 0.55rem;
}
.vsp-scenes-readout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  margin-bottom: 0.55rem;
}
.vsp-scenes-step {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid rgba(167,139,250,0.45);
  background: rgba(139,92,246,0.12);
  color: #fff;
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  font-family: inherit;
}
.vsp-scenes-step:hover { background: rgba(139,92,246,0.28); }
.vsp-scenes-step:focus-visible {
  outline: 2px solid #a78bfa;
  outline-offset: 2px;
}
.vsp-scenes-value {
  font-size: 1.65rem;
  font-weight: 800;
  color: #fff;
  min-width: 1.6em;
  text-align: center;
  letter-spacing: -0.03em;
}
.vsp-scenes-unit {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
}
.vsp-scenes-track-wrap {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.vsp-scenes-bound {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.45);
  font-weight: 600;
}
.vsp-scenes-range {
  -webkit-appearance: none;
  appearance: none;
  flex: 1;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    #8b5cf6 0,
    #8b5cf6 var(--vsp-scenes-pct, 0%),
    rgba(255,255,255,0.12) var(--vsp-scenes-pct, 0%)
  );
  outline: none;
}
.vsp-scenes-range:focus-visible {
  outline: 2px solid #a78bfa;
  outline-offset: 3px;
}
.vsp-scenes-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ddd6fe, #8b5cf6 55%, #5b21b6);
  box-shadow: 0 0 12px rgba(139,92,246,0.75);
  border: 2px solid rgba(255,255,255,0.85);
  cursor: pointer;
}
.vsp-scenes-range::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ddd6fe, #8b5cf6 55%, #5b21b6);
  box-shadow: 0 0 12px rgba(139,92,246,0.75);
  border: 2px solid rgba(255,255,255,0.85);
  cursor: pointer;
}
.vsp-scenes-hint {
  margin: 0.4rem 0 0;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.42);
}

/* Story narrative: the creative decision precedes its voice settings. */
.vsp-narrative { container-type: inline-size; margin: .5rem 0 1.5rem; color: #f6f5fc; }
.vsp-narrative-step { display: flex; align-items: center; gap: 1rem; color: #00f0ff; font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.vsp-narrative-step > span { flex: 1; height: 1px; background: #37465c; }
.vsp-narrative h3 { margin: .65rem 0 .3rem; font-size: clamp(1.4rem, 3.4cqw, 2rem); font-weight: 850; line-height: 1.16; color: #f6f5fc; }
.vsp-narrative-intro { margin: 0 0 1rem; color: #b5c5df; font-size: .9rem; line-height: 1.5; }
.vsp-narrative-options { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .8rem; }
.vsp-narrative .script-narrative-btn { position: relative; display: flex; align-items: flex-start; gap: clamp(.6rem,1.4cqw,1rem); min-width: 0; padding: 2.3rem .9rem 1.1rem; border: 2px solid #3d4a61; border-radius: 14px; background: linear-gradient(125deg,#111824,#0b0e15); color: #ede7ff; text-align: left; font-family: inherit; cursor: pointer; transition: border-color .18s ease, box-shadow .18s ease; }
.vsp-narrative .script-narrative-btn:hover:not(:disabled) { border-color: #a78bfa; }
.vsp-narrative .script-narrative-btn[aria-pressed="true"] { border-color: #c49aff; background: linear-gradient(130deg,#291b4c,#121020); box-shadow: inset 0 0 22px #8b5cf61c,0 0 16px #8b5cf638; }
.vsp-narrative .script-narrative-btn:focus-visible,.vsp-narrator-controls select:focus-visible { outline: 3px solid #00f0ff; outline-offset: 4px; }
.vsp-narrative-selected { position: absolute; top: .65rem; right: .75rem; padding: .24rem .6rem; border: 1px solid #d6baff; border-radius: 999px; background: #bb91fa; color: #16092f; font-size: .6rem; font-weight: 850; letter-spacing: .025em; text-transform: uppercase; visibility: hidden; }
.script-narrative-btn[aria-pressed="true"] .vsp-narrative-selected { visibility: visible; }
.vsp-narrative-icon { flex: 0 0 clamp(2.65rem,5.2cqw,3.8rem); aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; border: 2px solid #39465c; background: linear-gradient(135deg,#202a3a,#101827); }
.script-narrative-btn[aria-pressed="true"] .vsp-narrative-icon { border-color: #7047ac; background: linear-gradient(135deg,#41266e,#211743); color: #dcc8ff; }
.vsp-narrative-icon svg { width: 58%; height: 58%; overflow: visible; }
.vsp-narrative-copy { display: flex; flex-direction: column; gap: .45rem; min-width: 0; }
.vsp-narrative-copy > strong { color: #f6f5fc; font-size: clamp(.88rem,1.65cqw,1.12rem); font-weight: 850; text-transform: uppercase; line-height: 1.2; }
.vsp-narrative-summary { color: #b9c9e2; font-size: .8rem; line-height: 1.38; }
.vsp-narrative-tags { display: flex; flex-wrap: wrap; gap: .35rem; }
.vsp-narrative-tags > span { border: 1px solid #38445a; border-radius: 9px; padding: .24rem .5rem; background: #ffffff06; color: #e0e6f2; font-size: .65rem; line-height: 1.3; }
.script-narrative-btn[aria-pressed="true"] .vsp-narrative-tags > span { border-color: #61428e; background: #8b5cf612; }
.vsp-narrative-help,.vsp-narrative-availability { margin: .7rem 0; color: #b5c5df; font-size: .78rem; line-height: 1.5; }
.vsp-narrative-help strong { color: #dfceff; }
.vsp-narrative-availability { color: #f5cf88; }
.vsp-narrator-controls { margin-top: .85rem; padding: .9rem 1rem; border: 1px solid #354158; border-radius: 13px; background: #10151db3; }
.vsp-narrator-controls label { display: block; margin-bottom: .65rem; color: #00f0ff; font-size: .78rem; font-weight: 800; letter-spacing: .045em; text-transform: uppercase; }
.vsp-narrator-controls select { width: 100%; min-width: 0; padding: .65rem .85rem; border: 1px solid #47556b; border-radius: 9px; background: #111722; color: #f0f3fa; font-family: inherit; font-size: .85rem; }
.vsp-narrator-controls p { margin: .5rem 0 0; color: #a7b8d0; font-size: .74rem; }
.vsp-narrative [hidden] { display: none; }
@container (max-width: 720px) {
  .vsp-narrative .script-narrative-btn { flex-direction: column; align-items: flex-start; gap: .65rem; }
  .vsp-narrative-icon { flex-basis: auto; width: 2.9rem; }
}
@container (max-width: 540px) {
  .vsp-narrative-options { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .vsp-narrative .script-narrative-btn { transition: none; }
}



/* Narrator intent belongs to preproduction; concrete voices belong to scenes. */
.vsp-narrator-profiles { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.vsp-narrator-profiles button { display:flex; min-width:0; gap:12px; align-items:center; text-align:left; padding:16px; border:1px solid #38485d; border-radius:14px; color:#eef1ff; background:#101720; cursor:pointer; font-family:inherit; }
.vsp-narrator-profiles button > span:first-child { display:grid; place-items:center; flex:0 0 54px; height:54px; border:2px solid #425b82; border-radius:50%; color:#81b4ff; font-size:32px; }
.vsp-narrator-profiles button[data-narrator-profile="female"] > span:first-child { color:#e68dd8; border-color:#854179; }
.vsp-narrator-profiles button[data-narrator-profile="auto"] > span:first-child { color:#be98ff; border-color:#7654a6; }
.vsp-narrator-profiles button > span:last-child { display:grid; min-width:0; gap:6px; line-height:1.4; font-size:13px; color:#b9c9e2; }
.vsp-narrator-profiles strong { display:flex; flex-wrap:wrap; align-items:center; gap:5px; font-size:15px; color:#eef1ff; }
.vsp-narrator-profiles small { display:inline-block; padding:3px 7px; border-radius:12px; background:#bca2fb; color:#140c27; font-size:10px; text-transform:uppercase; }
.vsp-narrator-profiles button[aria-pressed="true"] { border-color:#be98ff; background:linear-gradient(130deg,#2b1c46,#10131f); box-shadow:inset 0 0 0 1px #be98ff,0 0 15px #a16cff20; }
.vsp-narrator-profiles button:hover { border-color:#b7a1d6; }
.vsp-narrator-profiles button:focus-visible, .vsp-story-tts :focus-visible, .vsp-story-voice-continuity input:focus-visible { outline:3px solid #00def0; outline-offset:3px; }
.vsp-story-tts { width:100%; box-sizing:border-box; margin-top:16px; padding:18px; text-align:left; background:#071a1a; border:1px solid #08776c; border-radius:12px; }
.vsp-story-tts-fields { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto; align-items:end; gap:16px; }
.vsp-story-tts-fields label { display:grid; gap:8px; color:#bdd5e7; font-size:13px; font-weight:600; }
.vsp-story-tts select, .vsp-story-tts button { min-height:44px; box-sizing:border-box; padding:10px 14px; border:1px solid #415064; border-radius:8px; background:#10151f; color:#eef3ff; font-size:15px; width:100%; }
.vsp-story-tts button { cursor:pointer; font-weight:600; background:#172831; }
.vsp-story-tts :disabled { opacity:.55; cursor:wait; }
.vsp-story-tts p, .vsp-story-voice-continuity p { margin:12px 0 0; font-size:13px; color:#b5c7d9; line-height:1.5; }
.vsp-story-voice-continuity { width:100%; box-sizing:border-box; padding:14px 18px; text-align:left; }
.vsp-story-voice-continuity label { display:flex; align-items:center; gap:10px; color:#d5e5f0; font-size:14px; cursor:pointer; }
.vsp-story-voice-continuity input { width:18px; height:18px; accent-color:#00ccb1; }
@container (min-width:621px) and (max-width:900px) {
  .vsp-narrator-profiles { gap:8px; }
  .vsp-narrator-profiles button { padding:12px; gap:8px; }
  .vsp-narrator-profiles button > span:first-child { flex-basis:40px; height:40px; font-size:26px; }
  .vsp-narrator-profiles strong { font-size:14px; }
}
@container (max-width:620px) { .vsp-narrator-profiles { grid-template-columns:1fr; } }

/* Scene audio: customer language and compact controls, Premium in violet. */
#video-content .vsp-story-audio-options { container-type:inline-size; margin-top:18px; padding:20px; border:1px solid #17434a; border-radius:14px; background:#091214; text-align:left; }
#video-content .vsp-scene-audio-toolbar { display:flex; align-items:center; gap:16px; flex-wrap:wrap; }
#video-content .vsp-scene-audio-toolbar > strong { font-size:15px; color:#e7edf5; }
#video-content .vsp-scene-audio-tabs { display:flex; gap:6px; flex-wrap:wrap; }
#video-content .vsp-scene-audio-tab { width:auto; min-height:42px; padding:10px 16px; border:1px solid #374453; border-radius:9px; background:#0c1419; color:#c3d1e0; font-size:14px; font-weight:700; cursor:pointer; }
#video-content .vsp-scene-audio-tab[aria-pressed="true"] { border-color:#21b8ce; color:#84e6f1; background:#102932; }
#video-content .vsp-scene-audio-tab.is-premium { color:#c4a1ff; }
#video-content .vsp-scene-audio-tab.is-premium[aria-pressed="true"] { border-color:#b787f9; background:#2b1b43; color:#e0caff; box-shadow:0 0 0 1px #6f4698; }
#video-content .vsp-scene-voice-volume { margin-left:auto; display:flex; align-items:center; gap:10px; font-size:13px; color:#b7c5d8; }
#video-content .vsp-scene-voice-volume select { width:auto; min-width:85px; min-height:40px; padding:8px 12px; border:1px solid #435165; border-radius:8px; background:#111721; color:#edf3fd; font-size:14px; }
#video-content .vsp-scene-voice-panel { margin-top:20px; padding:22px; border:1px solid #365263; border-radius:12px; background:#0c1820; }
#video-content .vsp-scene-voice-panel.is-premium { border-color:#9564d4; background:linear-gradient(115deg,#1b142b,#11151f); }
#video-content .vsp-scene-voice-panel h4 { margin:0 0 16px; color:#eee5ff; font-size:19px; }
#video-content .vsp-scene-premium-fields { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto; align-items:end; gap:14px 20px; }
#video-content .vsp-scene-premium-language, #video-content .vsp-scene-premium-voice { display:grid; gap:8px; min-width:0; color:#c8d7e6; font-size:13px; font-weight:600; }
#video-content .vsp-scene-premium-voice ~ .vsp-scene-premium-voice { grid-column:2; }
#video-content .vsp-scene-premium-fields select, #video-content .vsp-scene-premium-fields button { box-sizing:border-box; width:100%; min-height:44px; padding:10px 14px; background:#111721; color:#eaf0fb; border:1px solid #435165; border-radius:8px; font-size:15px; }
#video-content .vsp-scene-premium-fields button { width:auto; cursor:pointer; background:#202b38; font-weight:700; }
#video-content .vsp-scene-voice-panel .vsp-story-tts { padding:0; margin:0; border:0; background:transparent; }
#video-content .vsp-scene-voice-panel .vsp-story-voice-continuity { padding:16px 0 0; margin-top:18px; border-top:1px solid #413650; }
#video-content .vsp-scene-audio-note, #video-content .vsp-scene-ducking p, #video-content .vsp-story-voice-continuity p { margin:10px 0 0; color:#b3c3d6; font-size:13px; line-height:1.5; }
#video-content .vsp-scene-ducking { margin-top:16px; padding-top:16px; border-top:1px solid #344453; }
#video-content .vsp-scene-ducking label, #video-content .vsp-story-voice-continuity label { display:flex; align-items:center; gap:10px; color:#e0e7f3; font-weight:600; font-size:14px; cursor:pointer; }
#video-content .vsp-scene-ducking input, #video-content .vsp-story-voice-continuity input { width:19px; height:19px; flex-shrink:0; accent-color:#a773f5; }
#video-content .vsp-story-audio-options :focus-visible { outline:3px solid #6ee1ef; outline-offset:3px; }
#video-content .vsp-story-audio-options :disabled { opacity:.5; cursor:not-allowed; }
/* Scene workflow: generation settings, existing video, then scene organization. */
#video-content .vsp-scene-audio-toolbar { justify-content:space-between; gap:18px; }
#video-content .vsp-scene-audio-heading strong { color:#22d3ee; font-size:17px; }
#video-content .vsp-scene-audio-heading p { margin:6px 0 0; font-size:13px; color:#a7bfd0; }
#video-content .vsp-scene-voice-heading { display:flex; justify-content:space-between; align-items:center; gap:16px; margin-bottom:18px; }
#video-content .vsp-scene-voice-heading h4 { margin:0; }
#video-content .vsp-scene-voice-switches { display:grid; grid-template-columns:1fr 1fr; gap:22px; border-top:1px solid #3b4055; margin-top:16px; padding-top:16px; }
#video-content .vsp-scene-voice-switches .vsp-story-voice-continuity, #video-content .vsp-scene-voice-switches .vsp-scene-ducking { padding:0; margin:0; border:0; }
#video-content .vsp-scene-voice-switches .vsp-scene-ducking { border-left:1px solid #3b4055; padding-left:22px; }
#video-content .vsp-scene-voice-switches input { appearance:none; position:relative; width:42px; height:24px; margin:0; border-radius:20px; border:1px solid #5b6578; background:#2b3341; cursor:pointer; }
#video-content .vsp-scene-voice-switches input::before { content:''; position:absolute; width:18px; height:18px; border-radius:50%; background:#f1e9ff; left:2px; top:2px; transition:transform .15s; }
#video-content .vsp-scene-voice-switches input:checked { background:#9354eb; border-color:#b77df8; }
#video-content .vsp-scene-voice-switches input:checked::before { transform:translateX(18px); }
#video-content .vsp-scene-voice-switches p { margin:7px 0 0 52px; }
#video-content .vsp-scene-action-section { padding:18px 20px; margin-top:16px; border:1px solid #17434a; border-radius:12px; background:#091214; color:#c9deee; }
#video-content .vsp-scene-action-section h4 { color:#22d3ee; font-size:15px; margin:0 0 14px; }
#video-content .vsp-scene-generation-controls, #video-content [data-vsp-scene-model-controls], #video-content .vsp-scene-generation-buttons { display:flex; align-items:center; flex-wrap:wrap; gap:12px; min-width:0; }
#video-content .vsp-scene-generation-controls { display:grid; grid-template-columns:minmax(0,1fr); gap:16px; }
#video-content [data-vsp-scene-model-controls] { flex:1 1 420px; max-width:100%; }
#video-content [data-vsp-scene-model-controls] > div { flex:1 1 200px; min-width:0!important; margin:0!important; flex-wrap:wrap!important; }
#video-content [data-vsp-scene-model-controls] select { flex:1 1 200px; width:100%!important; min-width:0!important; max-width:100%; }
#video-content .vsp-scene-generation-buttons button[onclick*="regenerateScene"] { order:2; }
#video-content .vsp-scene-action-section button, #video-content .vsp-scene-existing-buttons > label { min-height:42px!important; padding:10px 14px!important; border-radius:9px!important; font-size:14px!important; font-weight:700!important; cursor:pointer; }
#video-content .vsp-scene-section-heading { display:flex; align-items:baseline; flex-wrap:wrap; gap:12px 22px; margin-bottom:14px; }
#video-content .vsp-scene-section-heading h4 { margin:0; }
#video-content .vsp-scene-section-heading p { margin:0; color:#a7bfd0; font-size:13px; }
#video-content .vsp-scene-existing-buttons { display:flex; gap:16px; align-items:stretch; flex-wrap:wrap; }
#video-content .vsp-scene-existing-buttons > * { flex:1; justify-content:center; text-align:center; }
#video-content .vsp-scene-existing-buttons .vsp-change-video-audio { flex:2; background:#231633!important; border:1px solid #b881f6!important; color:#d8b8ff!important; gap:12px!important; }
#video-content .vsp-change-video-audio span { font-size:10px; text-transform:uppercase; border:1px solid #955bd6; border-radius:7px; padding:4px 7px; }
#video-content .vsp-change-audio-description { text-align:center; font-size:13px; color:#a7bfd0; margin:10px 0 0; }
#video-content .vsp-scene-download { background:#082831; border:1px solid #15c2d8; color:#27e0f0; }
#video-content .vsp-scene-existing-extras { display:flex; flex-wrap:wrap; gap:10px; margin-top:12px; }
#video-content .vsp-scene-order { display:flex; align-items:center; flex-wrap:wrap; gap:12px; }
#video-content .vsp-scene-order > span { font-size:14px; font-weight:700; }
#video-content .vsp-scene-order button[onclick*="openInsert"] { margin-left:12px; }
#video-content .vsp-scene-delete { margin-left:auto; color:#ff6b78; background:#260e16; border:1px solid #df485b; }
#video-content .vsp-scene-completion-actions { display:flex; flex-wrap:wrap; justify-content:center; gap:12px; margin-top:16px; }
#video-content .vsp-scene-action-section :disabled { opacity:.45; cursor:not-allowed; }
#video-content .vsp-scene-action-section :focus-visible { outline:3px solid #6ee1ef; outline-offset:3px; }
@media (prefers-reduced-motion:reduce) { #video-content .vsp-scene-voice-switches input::before { transition:none; } }
#video-content [data-vsp-scene-model-controls] > label { flex:1 1 100%; justify-content:flex-start!important; min-width:0; flex-wrap:wrap!important; font-size:13px!important; }
#video-content .vsp-scene-generation-buttons { flex:0 1 auto; max-width:100%; justify-content:flex-start; }
#video-content .vsp-scene-generation-buttons button { max-width:100%; white-space:normal; overflow-wrap:anywhere; }
#video-content .vsp-scene-generation-buttons button[onclick*="previewScenePrompt"] { order:1; }
#video-content .vsp-scene-action-section button[onclick*="regenerateScene"] { order:2; }
/* Respond to the actual scene column, including desktop browser zoom. */
@container (max-width:600px) {
    #video-content .vsp-scene-premium-fields { grid-template-columns:minmax(0,1fr); }
    #video-content .vsp-scene-premium-fields > * { grid-column:1!important; }
    #video-content .vsp-scene-premium-fields button { width:100%; }
    #video-content .vsp-scene-voice-heading { flex-wrap:wrap; }
    #video-content .vsp-scene-voice-volume { margin-left:0; flex-wrap:wrap; }
    #video-content .vsp-scene-voice-switches { grid-template-columns:minmax(0,1fr); }
    #video-content .vsp-scene-voice-switches .vsp-scene-ducking { border-left:0; padding-left:0; }
}

.vx-express-language{max-width:440px;margin:0 0 .8rem}.vx-express-language .vsp-scene-premium-language{display:grid;gap:.45rem;color:#c8d7e6;font-size:.72rem;font-weight:700}.vx-express-language select{width:100%;border:1px solid var(--vx-line);border-radius:10px;background:#0c1525;color:#eef6ff;padding:.68rem .75rem;font:650 .72rem 'Outfit',sans-serif}
.vx-voice-tools{grid-template-columns:minmax(220px,1.35fr) minmax(160px,.65fr)}
.vx-voice-tools>input{grid-column:auto}

.vx-plan-screen{min-height:70vh;display:grid;place-items:center;padding:3rem 1rem}.vx-plan-card{position:relative;isolation:isolate;width:min(760px,100%);overflow:hidden;padding:2.5rem;border:1px solid rgba(56,189,248,.3);border-radius:26px;background:radial-gradient(circle at 50% 0,rgba(37,99,235,.2),transparent 42%),linear-gradient(145deg,#111d31,#0a1220);box-shadow:0 35px 90px rgba(0,0,0,.46),inset 0 1px 0 rgba(255,255,255,.05);text-align:center}.vx-plan-card:before{content:'';position:absolute;inset:-40% 15% auto;height:240px;background:#22d3ee;filter:blur(110px);opacity:.08;z-index:-1}.vx-plan-brand{display:inline-flex;align-items:center;gap:.45rem;margin-bottom:1.2rem;padding:.42rem .7rem;border:1px solid rgba(125,211,252,.22);border-radius:999px;background:rgba(7,20,38,.65);letter-spacing:.16em}.vx-plan-brand span{font:900 .82rem 'Outfit',sans-serif;color:#f8fafc}.vx-plan-brand b{font:800 .62rem 'Outfit',sans-serif;color:#38bdf8}.vx-plan-orbit{position:relative;display:grid;place-items:center;width:94px;height:94px;margin:0 auto 1.1rem;border:1px solid rgba(56,189,248,.22);border-radius:50%;background:rgba(14,116,144,.08)}.vx-plan-orbit span{color:#a5f3fc;font-size:1.7rem;filter:drop-shadow(0 0 12px #22d3ee)}.vx-plan-orbit i{position:absolute;inset:7px;border:2px solid transparent;border-top-color:#22d3ee;border-radius:50%;animation:vxSpin 1.2s linear infinite}.vx-plan-orbit i:nth-child(2){inset:18px;border-top-color:#3b82f6;animation-duration:1.8s;animation-direction:reverse}.vx-plan-orbit i:nth-child(3){inset:-7px;border-top-color:rgba(167,139,250,.65);animation-duration:2.5s}.vx-plan-card h1{max-width:640px;margin:.55rem auto .6rem;font:800 clamp(1.55rem,3.2vw,2.45rem)/1.08 'Outfit',sans-serif}.vx-plan-card>p{max-width:610px;margin:0 auto;color:#9fb4cc;font-size:.9rem;line-height:1.6}.vx-plan-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.7rem;margin:1.65rem 0 1.3rem;text-align:left}.vx-plan-steps>div{display:grid;grid-template-columns:34px 1fr;align-items:center;gap:.7rem;padding:.8rem;border:1px solid rgba(148,163,184,.16);border-radius:13px;background:rgba(10,20,36,.72)}.vx-plan-steps>div>b{display:grid;place-items:center;width:32px;height:32px;border-radius:50%;background:#17263b;color:#7690aa;font-size:.75rem}.vx-plan-steps strong,.vx-plan-steps small{display:block}.vx-plan-steps strong{color:#dbeafe;font-size:.72rem}.vx-plan-steps small{margin-top:.15rem;color:#71859d;font-size:.62rem;line-height:1.35}.vx-plan-steps .is-ready{border-color:rgba(52,211,153,.28)}.vx-plan-steps .is-ready>b{background:rgba(16,185,129,.16);color:#6ee7b7}.vx-plan-steps .is-active{border-color:rgba(34,211,238,.45);box-shadow:0 0 0 1px rgba(34,211,238,.1),0 12px 30px rgba(6,182,212,.08)}.vx-plan-steps .is-active>b{background:linear-gradient(135deg,#0891b2,#2563eb);color:#fff;animation:vxPlanPulse 1.4s ease-in-out infinite}.vx-plan-steps .is-error{border-color:rgba(248,113,113,.42)}.vx-plan-steps .is-error>b{background:rgba(190,24,93,.2);color:#fda4af}.vx-plan-progress{height:7px;overflow:hidden;border-radius:999px;background:#111e31}.vx-plan-progress i{display:block;width:38%;height:100%;border-radius:inherit;background:linear-gradient(90deg,#06b6d4,#2563eb,#8b5cf6);animation:vxPlanTrack 1.8s ease-in-out infinite}.vx-plan-note{display:block;margin-top:1rem;color:#6f839b;font-size:.66rem}.vx-plan-actions{display:flex;justify-content:center;gap:.7rem;flex-wrap:wrap}.vx-plan-actions button{min-width:180px}.vx-plan-card[data-vx-plan-state=failed]{border-color:rgba(248,113,113,.3);background:radial-gradient(circle at 50% 0,rgba(190,24,93,.14),transparent 42%),linear-gradient(145deg,#181726,#0c111d)}@keyframes vxPlanTrack{0%{transform:translateX(-110%)}50%{transform:translateX(105%)}100%{transform:translateX(280%)}}@keyframes vxPlanPulse{50%{box-shadow:0 0 0 8px rgba(34,211,238,0)}}
@media(max-width:700px){.vx-plan-card{padding:1.5rem 1rem}.vx-plan-steps{grid-template-columns:1fr}.vx-plan-screen{padding:1.2rem .6rem}}

/* VSP Exprés — estudio de producción progresivo durante el vídeo base */
.vx-generation-studio{width:min(1540px,100%);min-height:calc(100vh - 110px);margin-inline:auto;padding:clamp(1.5rem,3vw,3rem) clamp(.75rem,2vw,2rem);color:#eaf3ff}.vx-generation-studio>header{text-align:center}.vx-generation-studio>header h1{margin:.45rem 0 .35rem;font:800 clamp(2rem,4vw,3.7rem)/1.02 'Outfit',sans-serif;letter-spacing:-.035em}.vx-generation-studio>header p{margin:0;color:#8fa6bf;font-size:clamp(.78rem,1.2vw,.95rem)}
.vx-generation-studio svg{display:block;width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.vx-generation-studio .vx-generation-status{display:grid;grid-template-columns:repeat(3,minmax(150px,1fr));gap:.7rem;width:min(720px,100%);margin:1rem auto}.vx-generation-studio .vx-generation-status>div{display:grid;grid-template-columns:40px 1fr;align-items:center;gap:.65rem;padding:.65rem .85rem;border:1px solid rgba(100,140,190,.22);border-radius:13px;background:#0c1728;text-align:left}.vx-generation-studio .vx-generation-status>div>svg{width:38px;height:38px;padding:9px;border-radius:50%;background:#112a46;color:#39aaf8}.vx-generation-studio .vx-generation-status>div:nth-child(2)>svg{background:#211d48;color:#a78bfa}.vx-generation-studio .vx-generation-status>div:nth-child(3)>svg{background:#17254a;color:#7895ff}.vx-generation-studio .vx-generation-status b,.vx-generation-studio .vx-generation-status small{display:block}.vx-generation-studio .vx-generation-status b{font:800 1.08rem 'Outfit',sans-serif}.vx-generation-studio .vx-generation-status small{margin-top:.08rem;color:#8299b3;font-size:.62rem}
.vx-generation-focus{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(280px,.72fr);width:min(1060px,100%);margin:0 auto;border:1px solid rgba(71,125,176,.34);border-radius:18px;background:#091322;box-shadow:0 28px 70px rgba(0,0,0,.32);overflow:hidden}.vx-generation-hero{position:relative;display:grid;min-width:0;place-items:center;padding:clamp(.7rem,1.5vw,1.1rem);background:radial-gradient(circle at 50% 35%,#152640 0,#070d17 68%)}.vx-generation-hero-label{position:absolute;z-index:2;top:1.25rem;left:1.25rem;padding:.38rem .7rem;border:1px solid rgba(125,211,252,.35);border-radius:999px;background:rgba(4,13,25,.82);color:#d8f3ff;font-size:.64rem;font-weight:800;backdrop-filter:blur(8px)}.vx-generation-hero-media{display:grid;width:100%;height:clamp(280px,40vh,520px);place-items:center;overflow:hidden;border-radius:12px;background:#050a11}.vx-generation-hero-media img,.vx-generation-hero-media video{display:block;width:100%;height:100%;object-fit:contain;animation:vxGenerationReveal .72s cubic-bezier(.16,1,.3,1) both}.vx-generation-hero-empty{display:grid;place-items:center;gap:.7rem;color:#7187a0}.vx-generation-hero-empty svg{width:52px;height:52px;opacity:.55}.vx-generation-hero-empty span{font-size:.72rem}
.vx-generation-current{display:flex;min-width:0;flex-direction:column;justify-content:center;padding:clamp(1.1rem,2.4vw,2rem);border-left:1px solid rgba(71,125,176,.25);background:#0b1627;text-align:left}.vx-generation-current>.vx-render-spinner{width:46px;height:46px;margin:0 0 .85rem;border-width:3px}.vx-generation-current>.vx-generation-warning{margin:0 0 .85rem}.vx-generation-current h2{margin:0;color:#edf6ff;font:800 clamp(1rem,1.7vw,1.35rem)/1.2 'Outfit',sans-serif}.vx-generation-current>p{min-height:2.7em;margin:.35rem 0 1rem;color:#8da4bf;font-size:.7rem;line-height:1.5}.vx-generation-resources{border:1px solid rgba(94,129,171,.2);border-radius:11px;background:#091321;overflow:hidden}.vx-generation-resource{display:grid;grid-template-columns:28px 1fr auto 22px;align-items:center;gap:.5rem;min-height:44px;padding:.5rem .65rem;color:#7f94ac}.vx-generation-resource+.vx-generation-resource{border-top:1px solid rgba(94,129,171,.17)}.vx-generation-resource-icon{display:grid;place-items:center;width:27px;height:27px;border-radius:50%;background:#112138;color:#6f8aa8}.vx-generation-resource-icon svg{width:15px;height:15px}.vx-generation-resource>b{font-size:.67rem;color:#afbed0}.vx-generation-resource>small{font-size:.58rem}.vx-generation-resource>i{color:#46c0ff}.vx-generation-resource>i svg{width:18px;height:18px}.vx-generation-resource.is-ready{color:#69dba4}.vx-generation-resource.is-ready .vx-generation-resource-icon{background:rgba(17,115,84,.22);color:#69dba4}.vx-generation-resource.is-active .vx-generation-resource-icon{background:#123155;color:#50b9ff}.vx-generation-resource.is-active>small{color:#6bc6ff}.vx-generation-resource.is-error,.vx-generation-resource.is-error>b{color:#f5a4ae}.vx-generation-resource.is-muted{opacity:.58}.vx-generation-current blockquote{margin:1rem 0 0;padding-top:.85rem;border-top:1px solid rgba(94,129,171,.2);color:#71869f;font-size:.65rem;font-style:italic}.vx-generation-current .vx-primary{width:100%;margin-top:1rem}
.vx-generation-scenes{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(125px,1fr);gap:.7rem;width:100%;margin:1rem auto 0;padding:.1rem .1rem .65rem;overflow-x:auto;overscroll-behavior-inline:contain;scrollbar-color:#294568 transparent}.vx-generation-scene{position:relative;min-width:0;overflow:hidden;border:1px solid rgba(84,119,159,.28);border-radius:12px;background:#0b1626;opacity:.72;cursor:pointer;transition:transform .35s cubic-bezier(.16,1,.3,1),border-color .35s,opacity .35s,box-shadow .35s}.vx-generation-scene:hover{border-color:rgba(56,189,248,.62);opacity:1}.vx-generation-scene:focus-visible{outline:3px solid rgba(56,189,248,.48);outline-offset:3px}.vx-generation-scene.is-ready{opacity:1;animation:vxGenerationReveal .65s cubic-bezier(.16,1,.3,1) both}.vx-generation-scene.is-active{border-color:#31aefa;opacity:1;transform:translateY(-2px);box-shadow:0 0 0 1px rgba(49,174,250,.2),0 14px 28px rgba(0,87,166,.2)}.vx-generation-scene.is-selected{border-color:#38bdf8;opacity:1;transform:translateY(-2px);box-shadow:0 0 0 2px rgba(56,189,248,.35),0 14px 28px rgba(0,87,166,.24)}.vx-generation-scene-number{position:absolute;z-index:2;top:.45rem;left:.45rem;display:grid;width:25px;height:25px;place-items:center;border-radius:7px;background:rgba(5,13,24,.82);color:#d7e9f8;font-size:.58rem;font-weight:800}.vx-generation-scene-media{display:grid;height:150px;place-items:center;overflow:hidden;background:linear-gradient(145deg,#101c2e,#08101d);color:#506985}.vx-generation-scene-media>span svg{width:28px;height:28px}.vx-generation-scene-media img,.vx-generation-scene-media video{width:100%;height:100%;object-fit:cover}.vx-generation-scene footer{display:flex;align-items:center;gap:.35rem;min-height:38px;padding:.45rem .55rem;color:#849ab1}.vx-generation-scene footer svg{width:15px;height:15px;color:#4bd493}.vx-generation-scene footer b{overflow:hidden;font-size:.59rem;text-overflow:ellipsis;white-space:nowrap}.vx-generation-scene footer.is-error,.vx-generation-scene footer.is-error svg{color:#f2a0aa}.vx-generation-dot{width:10px;height:10px;border:2px solid #4fb9ff;border-radius:50%;box-shadow:0 0 0 4px rgba(79,185,255,.1);animation:vxGenerationPulse 1.15s ease-in-out infinite}.vx-generation-note{display:block;margin:.45rem auto 0;color:#6e849d;font-size:.66rem;text-align:center}
@keyframes vxGenerationReveal{from{opacity:0;transform:translateY(10px) scale(.985)}to{opacity:1;transform:none}}@keyframes vxGenerationPulse{50%{box-shadow:0 0 0 9px rgba(79,185,255,0)}}
@media(max-width:900px){.vx-generation-focus{grid-template-columns:1fr}.vx-generation-current{border-top:1px solid rgba(71,125,176,.25);border-left:0}.vx-generation-hero-media{height:clamp(260px,48vh,480px)}.vx-generation-scenes{grid-auto-columns:130px}}
@media(max-width:620px){.vx-generation-studio{padding:1.25rem .55rem}.vx-generation-studio .vx-generation-status{grid-template-columns:repeat(3,minmax(0,1fr));gap:.35rem}.vx-generation-studio .vx-generation-status>div{grid-template-columns:1fr;gap:.3rem;padding:.55rem;text-align:center}.vx-generation-studio .vx-generation-status>div>svg{width:31px;height:31px;margin:auto;padding:7px}.vx-generation-focus{border-radius:14px}.vx-generation-hero{padding:.55rem}.vx-generation-hero-media{height:360px}.vx-generation-hero-label{top:.9rem;left:.9rem}.vx-generation-current{padding:1rem}.vx-generation-scenes{grid-auto-columns:112px}.vx-generation-scene-media{height:135px}.vx-generation-note{padding-inline:.8rem}}
@media(prefers-reduced-motion:reduce){.vx-generation-hero-media img,.vx-generation-hero-media video,.vx-generation-scene.is-ready,.vx-generation-dot{animation:none}}

/* Historia comparte el estudio progresivo premium de Exprés, con mayor espacio de dirección. */
.vx-professional-generation .vx-generation-focus{width:min(1180px,100%);box-shadow:0 32px 86px rgba(0,0,0,.42),inset 0 1px 0 rgba(255,255,255,.025)}
.vx-professional-generation .vx-generation-hero-media{height:clamp(320px,46vh,570px)}
.vx-professional-generation button.vx-generation-scene{appearance:none;padding:0;text-align:left;color:inherit;font:inherit;cursor:pointer}
.vx-professional-generation .vx-generation-scene-footer{display:flex;align-items:center;gap:.35rem;min-height:38px;padding:.45rem .55rem;color:#849ab1}
.vx-professional-generation .vx-generation-scene-footer svg{width:15px;height:15px;color:#4bd493}
.vx-professional-generation .vx-generation-scene-footer b{overflow:hidden;font-size:.59rem;text-overflow:ellipsis;white-space:nowrap}
.vx-professional-generation .vx-generation-scene-footer.is-error,.vx-professional-generation .vx-generation-scene-footer.is-error svg{color:#f2a0aa}
.vx-professional-generation .vx-generation-scene:focus-visible{outline:3px solid rgba(56,189,248,.48);outline-offset:3px}
.vx-professional-generation .vx-professional-format{display:flex;align-items:center;justify-content:space-between;gap:.7rem;margin:0 0 .85rem;padding:.55rem 0;border-top:1px solid rgba(94,129,171,.2);border-bottom:1px solid rgba(94,129,171,.2)}
.vx-professional-generation .vx-professional-format span{color:#71869f;font-size:.6rem;text-transform:uppercase;letter-spacing:.08em}
.vx-professional-generation .vx-professional-format b{color:#bfeaff;font-size:.67rem}
.vx-professional-generation .vx-generation-hero-media>img{width:100%;height:100%;object-fit:contain}
.vx-editor-recovery{display:grid;place-items:center;min-height:clamp(420px,62vh,720px);padding:clamp(2rem,5vw,5rem);text-align:center;background:radial-gradient(circle at 50% 18%,rgba(34,211,238,.1),transparent 34%),linear-gradient(145deg,#0b1b32,#06101f);border:1px solid rgba(56,189,248,.32);border-radius:24px;box-shadow:0 30px 90px rgba(0,0,0,.48),inset 0 1px 0 rgba(255,255,255,.04)}
.vx-editor-recovery-mark{display:grid;place-items:center;width:72px;height:72px;margin-bottom:1.2rem;border:1px solid rgba(251,191,36,.45);border-radius:50%;background:rgba(251,191,36,.1);color:#fcd34d;font-size:2rem;font-weight:900;box-shadow:0 0 38px rgba(251,191,36,.13)}
.vx-editor-recovery h1{max-width:760px;margin:.55rem auto .8rem;color:#f8fbff;font-size:clamp(2rem,4vw,3.35rem);line-height:1.04}
.vx-editor-recovery p{max-width:720px;margin:0 auto;color:#a8bad0;font-size:clamp(.95rem,1.3vw,1.08rem);line-height:1.65}
.vx-editor-recovery-actions{display:flex;justify-content:center;gap:.8rem;flex-wrap:wrap;margin-top:1.8rem}

/* Conexiones sociales — módulo aislado, compartido por el acceso Pro y el aviso Exprés */
.vsp-sidebar-line-icon{width:18px;height:18px;flex:0 0 auto;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.vsp-social-nav-badge{margin-left:auto;padding:.16rem .36rem;border:1px solid rgba(255,45,120,.38);border-radius:999px;background:rgba(255,45,120,.1);color:#ff77a8;font-size:.54rem;letter-spacing:.08em}.vsp-social-shell{width:min(1260px,100%);margin:0 auto;padding:clamp(1.4rem,3vw,3rem);color:#eef6ff}.vsp-social-hero{max-width:820px;margin-bottom:clamp(1.4rem,2.5vw,2.4rem)}.vsp-social-kicker{display:inline-flex;align-items:center;gap:.5rem;color:#38bdf8;font:800 .68rem 'Outfit',sans-serif;letter-spacing:.18em}.vsp-social-kicker:before{content:'';width:30px;height:2px;background:#38bdf8}.vsp-social-hero h1{margin:.55rem 0 .45rem;font:800 clamp(2rem,4vw,3.8rem)/1 'Outfit',sans-serif;letter-spacing:-.04em}.vsp-social-hero p{max-width:720px;margin:0;color:#99aec6;font-size:clamp(.78rem,1.15vw,.98rem);line-height:1.6}.vsp-social-assurance{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1px;margin-bottom:1.25rem;border:1px solid rgba(100,140,190,.2);border-radius:15px;background:rgba(100,140,190,.2);overflow:hidden}.vsp-social-assurance>div{display:grid;grid-template-columns:34px 1fr;gap:.2rem .7rem;padding:1rem;background:#0b1524}.vsp-social-assurance>div>span{grid-row:1/3;display:grid;width:32px;height:32px;place-items:center;border:1px solid rgba(56,189,248,.28);border-radius:50%;background:#0c2138;color:#74d2ff;font:800 .72rem 'Outfit',sans-serif}.vsp-social-assurance strong,.vsp-social-assurance small{display:block}.vsp-social-assurance strong{font-size:.75rem}.vsp-social-assurance small{color:#71879f;font-size:.64rem;line-height:1.45}.vsp-social-provider-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}.vsp-social-provider{position:relative;min-height:270px;padding:clamp(1.1rem,2vw,1.55rem);border:1px solid rgba(103,139,181,.25);border-radius:17px;background:linear-gradient(150deg,#101b2c,#091220);box-shadow:0 22px 48px rgba(0,0,0,.22)}.vsp-social-provider:before{content:'';position:absolute;inset:0 auto auto 0;width:100%;height:1px;background:linear-gradient(90deg,transparent,rgba(125,211,252,.48),transparent)}.vsp-social-provider-head{display:grid;grid-template-columns:54px minmax(0,1fr) auto;align-items:center;gap:.9rem}.vsp-social-provider-icon{display:grid;width:54px;height:54px;place-items:center;border-radius:14px}.vsp-social-provider-icon svg{width:30px;height:30px;fill:currentColor}.vsp-social-provider-icon .vsp-social-icon-cut{fill:#fff}.vsp-social-provider-icon.is-youtube{background:rgba(255,0,51,.12);color:#ff335f}.vsp-social-provider-icon.is-tiktok{background:linear-gradient(145deg,rgba(37,244,238,.13),rgba(254,44,85,.12));color:#25f4ee}.vsp-social-provider-head h2{margin:0;color:#f7fbff;font:800 1.12rem 'Outfit',sans-serif}.vsp-social-provider-head p{margin:.2rem 0 0;color:#8095ad;font-size:.68rem;line-height:1.45}.vsp-social-state{display:inline-flex;align-items:center;gap:.35rem;padding:.26rem .52rem;border:1px solid rgba(148,163,184,.18);border-radius:999px;color:#8ca0b7;font-size:.58rem;font-weight:800;white-space:nowrap}.vsp-social-state i{width:6px;height:6px;border-radius:50%;background:currentColor}.vsp-social-state.is-connected{border-color:rgba(52,211,153,.28);background:rgba(16,185,129,.1);color:#6ee7b7}.vsp-social-state.is-preparing{border-color:rgba(56,189,248,.22);background:rgba(14,165,233,.08);color:#7dd3fc}.vsp-social-account{display:grid;gap:.2rem;margin:1.2rem 0;padding:.8rem 1rem;border-left:2px solid #38bdf8;background:rgba(8,28,48,.55)}.vsp-social-account span{color:#71879f;font-size:.6rem}.vsp-social-account strong{font-size:.78rem}.vsp-social-coming{min-height:3em;margin:1.2rem 0;color:#8297ae;font-size:.68rem;line-height:1.55}.vsp-social-provider-action{position:absolute;right:1.55rem;bottom:1.45rem;left:1.55rem}.vsp-social-button{display:inline-flex;min-height:42px;align-items:center;justify-content:center;padding:.66rem 1rem;border:1px solid #258dd0;border-radius:10px;background:#147abd;color:#f7fbff;font:800 .7rem 'Outfit',sans-serif;cursor:pointer;transition:transform .18s ease,background .18s ease,border-color .18s ease}.vsp-social-button:hover:not(:disabled){transform:translateY(-1px);border-color:#55baf2;background:#198bd4}.vsp-social-button:focus-visible{outline:3px solid rgba(56,189,248,.38);outline-offset:3px}.vsp-social-button:disabled{border-color:rgba(125,145,168,.18);background:#152235;color:#657a91;cursor:not-allowed}.vsp-social-button.is-secondary{border-color:rgba(148,163,184,.25);background:#121d2d;color:#aec0d2}.vsp-social-provider-action .vsp-social-button{width:100%}.vsp-social-privacy{display:flex;align-items:center;gap:.8rem;margin-top:1rem;padding:.9rem 1rem;border-top:1px solid rgba(99,130,166,.18);color:#7e93aa}.vsp-social-privacy svg{width:30px;height:30px;flex:0 0 auto;fill:none;stroke:#52b9ee;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}.vsp-social-privacy p{margin:0}.vsp-social-privacy strong,.vsp-social-privacy span{display:block}.vsp-social-privacy strong{color:#b9c9d9;font-size:.66rem}.vsp-social-privacy span{margin-top:.14rem;font-size:.61rem}.vsp-social-notice{display:flex;align-items:center;gap:.65rem;margin-bottom:1rem;padding:.8rem 1rem;border:1px solid rgba(52,211,153,.3);border-radius:11px;background:rgba(16,185,129,.09);color:#a7f3d0;font-size:.68rem}.vsp-social-notice.is-error{flex-wrap:wrap;border-color:rgba(248,113,113,.32);background:rgba(190,24,93,.08);color:#fecdd3}.vsp-social-notice span{color:#cbd5e1}.vsp-social-notice button{margin-left:auto;border:0;background:none;color:#7dd3fc;font-weight:800;cursor:pointer}.vsp-social-loading{display:flex;min-height:58vh;align-items:center;justify-content:center;gap:.8rem;color:#9fb3c8}.vsp-social-loading>span{width:26px;height:26px;border:2px solid rgba(56,189,248,.16);border-top-color:#38bdf8;border-radius:50%;animation:spin .8s linear infinite}.vsp-social-loading strong{font-size:.74rem}.vsp-social-shell.is-express-lock{display:flex;min-height:calc(100vh - 150px);max-width:860px;flex-direction:column;align-items:center;justify-content:center;text-align:center}.vsp-social-lock-mark{display:grid;width:90px;height:90px;place-items:center;margin-bottom:1rem;border:1px solid rgba(255,45,120,.24);border-radius:24px;background:rgba(255,45,120,.07);color:#ff77a8}.vsp-social-lock-mark svg{width:42px;height:42px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}.vsp-social-pro-badge{padding:.28rem .62rem;border:1px solid rgba(255,45,120,.4);border-radius:999px;color:#ff77a8;font:800 .62rem 'Outfit',sans-serif;letter-spacing:.12em}.vsp-social-shell.is-express-lock h1{max-width:650px;margin:.8rem 0 .6rem;font:800 clamp(1.9rem,4vw,3.3rem)/1.02 'Outfit',sans-serif;letter-spacing:-.035em}.vsp-social-shell.is-express-lock p{max-width:650px;margin:0 0 1.25rem;color:#94a9c0;font-size:.86rem;line-height:1.65}.vsp-social-shell.is-express-lock small{margin-top:.8rem;color:#647a91;font-size:.62rem}
@media(min-width:1500px){.vsp-social-shell{width:min(1460px,100%)}.vsp-social-provider{min-height:310px}.vsp-social-provider-head h2{font-size:1.3rem}.vsp-social-provider-head p,.vsp-social-coming{font-size:.76rem}.vsp-social-button{font-size:.76rem}}
@keyframes vspSocialSpin{to{transform:rotate(360deg)}}
.vsp-social-loading>span{animation-name:vspSocialSpin}
@media(max-width:920px){.vsp-social-provider-list,.vsp-social-assurance{grid-template-columns:1fr}.vsp-social-provider{min-height:250px}.vsp-social-shell{padding:1rem}.vsp-social-provider-head{grid-template-columns:48px minmax(0,1fr)}.vsp-social-state{grid-column:2;justify-self:start}.vsp-social-provider-icon{width:48px;height:48px}}
@media(prefers-reduced-motion:reduce){.vsp-social-button,.vsp-social-loading>span{transition:none;animation:none}}
/* Un fallo de exportación vive dentro del editor; no se presenta como alerta roja flotante. */
.vx-render-error{border-color:rgba(56,189,248,.24);background:rgba(14,116,144,.1);color:#e0f7ff}.vx-render-error span{color:#a9c4d8}.vx-render-error button{border-color:rgba(56,189,248,.32);background:rgba(2,132,199,.16);color:#dff7ff}
@media(max-width:620px){.vx-add-scene-footer,.vx-extension-summary,.vx-render-stale,.vx-render-error{align-items:flex-start;flex-direction:column}.vx-add-scene-footer .vx-primary,.vx-render-error button{width:100%}.vx-extension-tools,.vx-extension-actions{align-items:stretch;flex-direction:column}.vx-extension-tools button,.vx-extension-actions button{width:100%}}

/* Profesional: espacio bajo la cabecera y dirección local de cada plano. */
.vsp-version-visible{display:block;margin-top:4px;font-size:10px;font-weight:700;letter-spacing:.06em;color:#8addeb;white-space:nowrap}
.vsp-update-notice{display:flex;align-items:center;gap:10px;border:1px solid #286c84;border-radius:12px;background:#0b2635;padding:7px 10px;font-size:12px;color:#b7e9f5}.vsp-update-notice[hidden]{display:none}.vsp-update-notice button{border:1px solid #58cdeb;border-radius:8px;padding:7px 11px;background:#096f99;color:#fff;font-weight:700;cursor:pointer}
.is-image-generating .vx-scene-thumb{position:relative;box-shadow:inset 0 0 0 2px #51dce7;isolation:isolate}.vx-image-loading{position:absolute;inset:0;z-index:2;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;overflow:hidden;border:1px solid #55e6f2;border-radius:inherit;background:linear-gradient(180deg,#03101c40,#072c43b3);color:#bdf9ff;font-size:11px;font-weight:800;text-align:center;padding:10px;pointer-events:none}.vx-image-loading-mark{font-size:32px;text-shadow:0 0 25px #5ce7ff;animation:vxImagePulse 1.8s ease-in-out infinite}.vx-image-scan{position:absolute;inset:-80% 0 80%;background:linear-gradient(transparent,#67e8f926,#67e8f9a0,transparent);animation:vxImageScan 2.5s ease-in-out infinite}.vx-image-spinner{display:inline-block;width:13px;height:13px;margin-right:8px;vertical-align:middle;border:2px solid #67e8f94d;border-top-color:#67e8f9;border-radius:50%;animation:vxImageSpin .8s linear infinite}.vx-image-pulse{display:inline-block;width:7px;height:7px;margin-right:6px;border-radius:50%;background:#67e8f9;box-shadow:0 0 10px #67e8f9;animation:vxImagePulse 1.5s ease-in-out infinite}.vx-image-updated .vx-scene-thumb img{animation:vxImageReveal .65s ease-out both}
@keyframes vxImageSpin{to{transform:rotate(360deg)}}@keyframes vxImagePulse{50%{opacity:.45}}@keyframes vxImageScan{to{transform:translateY(500%)}}@keyframes vxImageReveal{from{opacity:.45;filter:brightness(1.4)}to{opacity:1;filter:brightness(1)}}
@media(max-width:760px){.vsp-update-notice{position:fixed;top:calc(var(--header-height,70px) + 8px);right:12px;z-index:1001;box-shadow:0 8px 25px #0008}}
@media(prefers-reduced-motion:reduce){.vx-image-scan,.vx-image-spinner,.vx-image-pulse,.vx-image-loading-mark,.vx-image-updated .vx-scene-thumb img{animation:none!important}.vx-image-scan{display:none}}
#script-story-editor{scroll-margin-top:calc(var(--header-height,70px) + 24px)}
#script-story-editor .vx-shell{padding-top:clamp(24px,3vh,40px)}
#script-story-editor .vx-tabs{position:static;display:flex;align-items:center;width:100%;box-sizing:border-box;gap:6px;margin:0 0 20px;padding:6px;background:#0b111b;border:1px solid #203246;border-radius:12px;box-shadow:none;scroll-margin-top:calc(var(--header-height,70px) + 24px)}
#script-story-editor .vx-tabs button{flex:none;padding:10px 18px;font-size:14px;font-weight:600;line-height:1.5;color:#e2e8f0;background:transparent;border:1px solid transparent;border-radius:9px;box-shadow:none}
#script-story-editor .vx-tabs button.is-active{color:#07151c;background:#06d6e8;border-color:#06d6e8;box-shadow:none}
#script-story-editor .vx-tabs button:hover:not(:disabled){border-color:#00d5e9;filter:none}
#script-story-editor .vx-tabs button:nth-child(1)::before{content:"📝";margin-right:8px}
#script-story-editor .vx-tabs button:nth-child(2)::before{content:"🎬";margin-right:8px}
#script-story-editor .vx-tabs button:nth-child(3)::before{content:"🎙️";margin-right:8px}
#script-story-editor .vx-tabs button:nth-child(4)::before{content:"💬";margin-right:8px}
#script-story-editor .vx-tabs button:nth-child(5)::before{content:"🎵";margin-right:8px}
#script-story-editor .vx-tabs button:nth-child(6)::before{content:"🔊";margin-right:8px}
#script-story-editor .vx-tabs button:nth-child(7)::before{content:"◷";margin-right:8px}
#sb-edit-overlay .vsp-scene-premium-language{display:flex;flex-direction:column;gap:.5rem;margin:.5rem 0 1rem;color:#a9c6df;font-size:.8rem;font-weight:700}
#sb-edit-overlay :is(.vsp-elevenlabs-language-select,.vsp-story-language-select){color-scheme:dark;appearance:none;width:100%;min-height:46px;padding:.8rem 2.8rem .8rem 1rem;color:#edfaff;font:inherit;font-weight:600;background:#0b192b url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%2367e8f9' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 1rem center;border:1px solid #315470;border-radius:12px;box-shadow:inset 0 1px 0 #ffffff08;cursor:pointer;transition:border-color .18s,box-shadow .18s}
#sb-edit-overlay :is(.vsp-elevenlabs-language-select,.vsp-story-language-select):hover{border-color:#4ab6d0}
#sb-edit-overlay :is(.vsp-elevenlabs-language-select,.vsp-story-language-select):focus-visible{outline:2px solid #67e8f9;outline-offset:2px;box-shadow:0 0 0 4px #22d3ee18}
#sb-edit-overlay :is(.vsp-elevenlabs-language-select,.vsp-story-language-select) option{background:#0b192b;color:#edfaff}
#script-story-editor .vx-preview-card{top:calc(var(--header-height,70px) + 20px);max-height:calc(100dvh - var(--header-height,70px) - 40px);overflow:auto}
#script-story-editor .vx-preview-stage{width:min(100%,calc((100dvh - var(--header-height,70px) - 200px) * var(--vx-preview-ratio,.5625)));max-height:calc(100dvh - var(--header-height,70px) - 200px)}
#script-story-editor .vx-preview-stage video{flex:1;min-height:0;max-height:100%!important}
.vx-batch-count,.vx-model-target{display:grid;gap:.35rem;font-size:.75rem;font-weight:800;color:#a5d8f3}
.vx-batch-count select,.vx-model-target select{background:#0a1627;color:#fff;border:1px solid #287792;border-radius:10px;padding:.65rem;font:inherit}
.vx-batch-hint{flex-basis:100%;max-width:320px;text-align:right;color:#9bb1cc;font-size:.65rem}
.vx-continue-story{margin-top:1rem;padding:1.3rem;display:flex;align-items:center;justify-content:space-between;gap:1rem;flex-wrap:wrap;border:1px solid #237b94;border-radius:16px;background:linear-gradient(130deg,#0b2737,#18213b)}
.vx-continue-story h3{margin:0;color:#e5faff}.vx-continue-story p{margin:.4rem 0 0;color:#a5bad3;font-size:.8rem}
.vx-continue-story button,.vx-model-card button{border:1px solid #49daf3;border-radius:12px;padding:.8rem 1rem;color:white;background:linear-gradient(110deg,#0788a8,#2164e4);font-weight:800;cursor:pointer}
.vx-model-gallery{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;margin-top:1.2rem}
.vx-model-card{display:flex;flex-direction:column;gap:.7rem;padding:1.3rem;border:1px solid #334760;border-radius:18px;background:linear-gradient(140deg,#142438,#101929)}
.vx-model-card.is-active{border-color:#38cfe9;box-shadow:inset 0 0 24px #22d3ee12}.vx-model-card h3{margin:0;color:#e3f5ff}.vx-model-card p{margin:0;color:#abc0da;line-height:1.5;font-size:.85rem}.vx-model-card strong{font-size:.8rem;color:#7dd3fc}.vx-model-card small{margin-top:auto;color:#91a8c3}.vx-model-icon{font-size:1.8rem}.vx-model-target{max-width:300px}
#script-story-editor .vx-batch-action{background:linear-gradient(125deg,#087da7,#1765e8);border:1px solid #55c8ff;color:#fff;box-shadow:0 4px 18px #0284c733;white-space:nowrap}
#script-story-editor .vx-direction-toggle{border-color:#37849d;color:#a5f3fc;background:#143444}
.vx-direction-controls{margin:.85rem 0;padding:1rem;border:1px solid #31556c;border-radius:12px;background:linear-gradient(135deg,#142c3c,#141e32)}
.vx-direction-controls h3{margin:0 0 .4rem;color:#a5f3fc;font-size:.95rem}.vx-direction-controls p,.vx-direction-controls>small{display:block;color:#afc3d9;font-size:.78rem;line-height:1.5}.vx-direction-controls .vx-inline-controls{grid-template-columns:repeat(2,minmax(0,1fr));gap:.8rem}.vx-direction-controls label{font-size:.78rem;color:#d0dfed}.vx-direction-controls select,.vx-direction-controls input{margin-top:.35rem}.vx-direction-controls :disabled{opacity:.6;cursor:not-allowed}
#video-content,#vid-tab-content-script,#script-live-production{min-width:0;max-width:100%;box-sizing:border-box}
#workspace:has(.vx-professional-generation){min-width:0}
#video-content.is-professional-producing .video-module-wrap>.module-header,
#video-content.is-professional-producing .video-module-wrap>div:has(>#vid-tab-btn-script){display:none!important}
#script-live-production{padding:0}
.vx-professional-generation{min-width:0;max-width:100%;box-sizing:border-box;padding-top:clamp(28px,4vh,56px);background:radial-gradient(ellipse at 20% 0%,#0e749026,transparent 55%),radial-gradient(ellipse at 90% 50%,#6366f11c,transparent 60%)}
.vx-professional-generation>*{min-width:0;box-sizing:border-box;max-width:100%}
.vx-professional-progress{width:min(1180px,100%);margin:0 auto 1.25rem;display:grid;grid-template-columns:1fr 1fr;gap:1.25rem;padding:1rem 1.25rem;border:1px solid #2a465d;border-radius:14px;background:#102133}
.vx-professional-progress:has(>div:only-child){grid-template-columns:1fr}
.vx-professional-progress span{display:flex;justify-content:space-between;color:#bcd7e8;font-size:.8rem;margin-bottom:.5rem}.vx-professional-progress b{color:#67e8f9}.vx-production-meter{height:7px;overflow:hidden;background:#25374c;border-radius:10px}.vx-production-meter i{display:block;height:100%;background:linear-gradient(90deg,#1689ef,#4fe1d2);border-radius:inherit;transition:width .35s ease}
.vx-professional-plan .vx-plan-card{border-color:#28657d;box-shadow:0 24px 80px #0008,0 0 65px #0891b21a}
.vx-professional-plan [data-professional-plan-status]{margin-top:1rem;color:#e0f2fe;font-weight:700}
.vx-professional-plan [data-professional-plan-count]{display:block;margin-top:.4rem;color:#67e8f9}
.vx-professional-resource-error{width:min(1180px,100%);margin:.25rem auto;color:#fda4af;font-size:.8rem;overflow-wrap:anywhere}
/* Keep the entire production workspace and its retry action on desktop screens. */
@media(min-width:901px) and (min-height:650px){
 .vx-professional-generation{box-sizing:border-box;min-height:calc(100dvh - 120px);height:auto;display:flex;flex-direction:column;gap:.45rem;padding:.5rem 1rem}
 .vx-professional-generation>header h1{font-size:clamp(1.3rem,2vw,2rem);margin:.2rem 0}
 .vx-professional-generation>header p{font-size:.75rem}
 .vx-professional-generation .vx-generation-status{margin:0 auto;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));width:min(400px,100%);gap:.4rem}
 .vx-professional-generation .vx-generation-status>div{padding:.25rem .6rem;grid-template-columns:28px 1fr}
 .vx-professional-generation .vx-generation-status>div>svg{width:28px;height:28px;padding:6px}
 .vx-professional-generation .vx-professional-progress{margin:0 auto;padding:.4rem .8rem;gap:.8rem}
 .vx-professional-generation .vx-generation-focus{flex:1;min-height:clamp(320px,45vh,600px)}
 .vx-professional-generation .vx-generation-hero{min-height:0;padding:.5rem}
 .vx-professional-generation .vx-generation-hero-media{position:relative;height:100%;min-height:0}
 .vx-professional-generation .vx-generation-hero-media>img{position:absolute;inset:0;object-fit:contain}
 .vx-professional-generation .vx-generation-current{padding:.7rem 1rem;overflow:auto}.vx-professional-generation .vx-generation-current>*{flex-shrink:0}
 .vx-professional-generation .vx-generation-current>.vx-render-spinner,.vx-professional-generation .vx-generation-warning{width:28px;height:28px;margin:0 0 .4rem;font-size:1rem;flex-shrink:0}
 .vx-professional-generation .vx-generation-current h2{font-size:1rem}
 .vx-professional-generation .vx-generation-current>p{margin:.3rem 0 .5rem;min-height:0}
 .vx-professional-generation .vx-generation-current blockquote{display:none}
 .vx-professional-generation .vx-professional-format{margin:0 0 .4rem;padding:.3rem 0}
 .vx-professional-generation .vx-generation-scenes{flex-shrink:0;width:min(1180px,100%);grid-auto-columns:130px;justify-content:safe center;margin:0 auto;padding:.2rem .1rem .45rem;gap:.5rem}
 .vx-professional-generation .vx-generation-scene-media{height:135px}
 .vx-professional-generation .vx-generation-scene-footer{min-height:34px;padding:.4rem .5rem}
 .vx-professional-generation .vx-generation-scene-footer b{font-size:.7rem}
 .vx-professional-generation>.vx-primary{margin:0 auto;padding:.5rem 1rem;flex-shrink:0}
 .vx-professional-generation .vx-generation-note{margin:0;font-size:.65rem}
 .vx-professional-plan{min-height:0;padding:1rem}
 .vx-professional-plan .vx-plan-card{padding:1.25rem;max-width:760px}
 .vx-professional-plan .vx-plan-orbit{width:50px;height:50px;margin-bottom:.5rem}
 .vx-professional-plan .vx-plan-steps{margin:.8rem 0}
}
.vx-motion-orbit_left{animation:vxProOrbitLeft var(--vx-scene-duration,5s) ease-in-out both}.vx-motion-orbit_right{animation:vxProOrbitRight var(--vx-scene-duration,5s) ease-in-out both}.vx-motion-shake{animation:vxProShake var(--vx-scene-duration,5s) linear both}
@keyframes vxProOrbitLeft{from{transform:scale(1.2) rotate(3deg)}to{transform:scale(1.2) rotate(-3deg)}}
@keyframes vxProOrbitRight{from{transform:scale(1.2) rotate(-3deg)}to{transform:scale(1.2) rotate(3deg)}}
@keyframes vxProShake{0%,100%{transform:scale(1.1)}10%,30%,50%,70%,90%{transform:scale(1.1) translate(.7%,.5%)}20%,40%,60%,80%{transform:scale(1.1) translate(-.7%,-.5%)}}
@media(prefers-reduced-motion:reduce){.vx-professional-plan *,.vx-professional-generation *{animation:none!important;transition:none!important}#script-story-editor .vx-preview-media,#script-story-editor .vx-preview-layer{animation:none!important}.vx-motion-shake,.vx-motion-orbit_left,.vx-motion-orbit_right{animation:none!important}.vx-transition-shake .vx-preview-previous,.vx-transition-slide_down .vx-preview-previous,.vx-transition-wipe_right .vx-preview-previous{display:none}}

.vx-model-badge{padding:.4rem .65rem;border-radius:999px;border:1px solid #268493;background:#083443;color:#8ce8f0;font-size:.72rem;font-weight:800;align-self:flex-start}.vx-model-card button:disabled{opacity:.45;cursor:not-allowed}

#script-story-editor .vx-scene-thumb-play{position:absolute;left:8px;bottom:8px;z-index:3;border-radius:8px;background:rgba(3,10,22,.78);color:#fff;padding:.43rem .62rem;font-size:.65rem;font-weight:800} #professional-tabbed-preview .vx-preview-count{color:#fff;pointer-events:none}
.vsp-library-list{display:flex;flex-direction:column;gap:16px;max-width:1280px;margin:24px auto}.vsp-library-card{display:grid;grid-template-columns:180px minmax(0,1fr);overflow:hidden;border:1px solid rgba(56,189,248,.2);border-radius:18px;background:linear-gradient(115deg,#0a1627,#142338);box-shadow:0 12px 30px #02061720}.vsp-library-cover{display:grid;place-items:center;min-height:180px;background:#07111f;color:#50b8ff;font-size:42px}.vsp-library-cover img{width:100%;height:190px;object-fit:contain}.vsp-library-body{display:flex;align-items:flex-start;flex-direction:column;gap:12px;padding:24px}.vsp-library-body>strong{font-size:1.15rem;color:#f1f7ff}.vsp-library-body>small{color:#93a9c3}.vsp-library-badge{align-self:flex-end;padding:5px 12px;border-radius:999px;background:#1396f71a;color:#7dcaff;font-size:.74rem;font-weight:750}.vsp-library-badge.is-ready{background:#10b9811a;color:#6ee7b7}.vsp-library-actions,.vsp-library-nav{display:flex;gap:10px;flex-wrap:wrap}.vsp-library-actions button,.vsp-library-nav button,.vsp-library-player button{padding:10px 17px;border:1px solid #38526b;border-radius:10px;background:#18283d;color:#f1f5f9;font-weight:750;cursor:pointer}.vsp-library-actions .vx-primary,.vsp-library-nav button[aria-pressed=true]{background:linear-gradient(115deg,#078fad,#126ce8);border-color:#51cbf4;color:#fff}.vsp-library-nav{max-width:1280px;margin:18px auto}.vsp-library-retention{font-size:.85rem;color:#8ca8c3}.vsp-library-player{width:min(92vw,1000px);max-height:92vh;padding:16px;border:1px solid #398da9;border-radius:18px;background:#0a1627;color:white}.vsp-library-player::backdrop{background:#010714cc;backdrop-filter:blur(8px)}.vsp-library-player video{display:block;width:100%;max-height:78vh;margin-top:12px;background:#020817}.vsp-library-player button{display:block;margin-left:auto}@media(max-width:650px){.vsp-library-card{grid-template-columns:110px minmax(0,1fr)}.vsp-library-body{padding:16px;gap:10px}.vsp-library-cover{min-height:150px}.vsp-library-cover img{height:180px}.vsp-library-badge{align-self:flex-start}.vsp-library-body>strong{font-size:1rem}}
/* Scene picture choice preserves both saved resources and the audio mix. */
/* Audio de una escena: una fuente visible a la vez, sin biblioteca de otras escenas. */
.vsp-scene-audio-dialog {
    width: min(760px, 96vw);
    max-height: 92vh;
    overflow: auto;
    background: #0a1627;
    color: #edf5ff;
    border: 1px solid rgba(56,189,248,.3);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 24px 80px #0009;
    font: 15px/1.5 Inter, sans-serif;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.vsp-scene-audio-dialog [hidden] { display: none !important; }
.vsp-scene-audio-dialog header { display: flex; justify-content: space-between; align-items: start; gap: 16px; }
.vsp-scene-audio-dialog h2 { font-size: 22px; margin: 0; color: #67e8f9; }
.vsp-scene-audio-dialog p { margin: 6px 0 12px; color: #b4c6dc; }
.vsp-scene-audio-dialog small, .vsp-scene-audio-dialog footer { display: block; font-size: 13px; color: #a1b4ce; }
.vsp-scene-audio-dialog footer { border-top: 1px solid #ffffff14; padding-top: 14px; }
.vsp-scene-audio-dialog button, .vsp-scene-audio-dialog select {
    background: #182a42; color: #e2f4ff; border: 1px solid #355170;
    border-radius: 10px; padding: 9px 13px; font: inherit; cursor: pointer;
}
.vsp-scene-audio-dialog button:disabled { opacity: .5; cursor: default; }
.vsp-scene-audio-dialog button:hover:not(:disabled) { border-color: #38bdf8; }
.vsp-scene-audio-dialog :focus-visible { outline: 2px solid #67e8f9; outline-offset: 3px; }
.vsp-scene-audio-dialog input { accent-color: #21bcf2; }
.vsp-scene-audio-dialog fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.vsp-scene-audio-dialog legend { font-weight: 700; margin-bottom: 10px; }
.vsp-scene-audio-guide { background: #112138; border-radius: 12px; padding: 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.vsp-scene-audio-guide small { flex-basis: 100%; }
.vsp-scene-audio-sources { display: flex; flex-wrap: wrap; gap: 8px; }
.vsp-scene-audio-sources label { padding: 9px 12px; background: #112138; border: 1px solid #2c405d; border-radius: 10px; cursor: pointer; }
.vsp-scene-audio-sources label:has(:checked), .vsp-scene-audio-option:has(:checked) { border-color: #38bdf8; background: #103044; }
.vsp-scene-audio-option { display: flex; gap: 12px; align-items: start; padding: 12px; margin-bottom: 8px; border: 1px solid #2c405d; border-radius: 12px; cursor: pointer; }
.vsp-scene-audio-option input { margin-top: 5px; }
.vsp-scene-audio-upload { display: grid; gap: 8px; margin-bottom: 10px; }
.vsp-scene-audio-upload input { font: inherit; max-width: 100%; }
.vsp-scene-audio-upload input::file-selector-button { background: #17324a; color: #9aedff; border: 1px solid #38bdf866; border-radius: 9px; padding: 10px 14px; margin-right: 12px; cursor: pointer; }
.vsp-scene-audio-takes { display: grid; gap: 8px; max-height: 220px; overflow: auto; }
.vsp-scene-audio-dialog textarea { width: 100%; min-height: 90px; box-sizing: border-box; background: #081426; color: #fff; border: 1px solid #355170; border-radius: 10px; padding: 12px; font: inherit; }
.vsp-scene-audio-voice { display: flex; gap: 10px; margin: 10px 0; }
.vsp-scene-audio-voice select { flex: 1; min-width: 0; }
#sb-audio-apply-upload { background: #119be9; color: #fff; border-color: #119be9; font-weight: 700; }
#vid-tab-content-script.vsp-cinema-workspace:has(> #script-story-editor[style*="display: block"]){width:100%;max-width:100%}#script-story-editor .vx-editor{width:100%;max-width:1460px;margin-inline:auto;padding-inline:clamp(1.75rem,3.5vw,3.25rem);box-sizing:border-box}
#script-story-editor .vx-preview-footer{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.55rem;margin-top:.85rem;text-align:center}#script-story-editor .vx-preview-footer>.vx-preview-actions{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.5rem;width:100%;max-width:260px;margin-inline:auto}#script-story-editor .vx-preview-footer button{width:100%;max-width:260px;min-width:0;box-sizing:border-box;justify-content:center;text-align:center}#script-story-editor .vx-preview-footer button.vx-send-editor-btn{background:#102337;border:1px solid rgba(56,189,248,.35);color:#bae6fd;font-size:.74rem;padding:.55rem .85rem}#script-story-editor .vx-preview-footer [data-story-saved-final]{width:100%;max-width:260px;margin:.1rem auto 0}
@media(min-width:1251px){#script-story-editor .vx-editor-grid{grid-template-columns:minmax(0,1fr) minmax(320px,360px);gap:1.5rem}}
#script-story-editor .vx-editor-panel{min-width:0;padding:1.25rem 1.4rem}
#script-story-editor .vx-scene-card{--vx-scene-thumb-width:clamp(200px,15.5vw,236px);grid-template-columns:var(--vx-scene-thumb-width) minmax(0,1fr);gap:1.1rem;padding:.95rem;align-items:center}
#script-story-editor .vx-scene-thumb{width:var(--vx-scene-thumb-width);max-width:100%;height:auto;aspect-ratio:9/16;min-height:0;align-self:center;justify-self:center;border-radius:12px;box-shadow:0 8px 24px rgba(2,8,23,.45)}
#script-story-editor .vx-scene-thumb img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center center}
#script-story-editor .vx-scene-content{min-width:0;padding:0;container-type:inline-size}
#script-story-editor .vx-scene-content>.vx-card-top{gap:1rem;flex-wrap:wrap;margin-bottom:.6rem}
#script-story-editor .vx-scene-heading{display:flex;align-items:center;gap:.7rem;flex-wrap:wrap}
#script-story-editor .vx-card-top>.vx-model-select{margin:0;grid-template-columns:minmax(0,1fr);gap:.3rem;max-width:100%;flex:1 1 100%}
#script-story-editor .vx-card-top>.vx-model-select select{width:100%}
/* The model name of the card must be read whole: below 600px of list the image goes on top. */
#script-story-editor .vx-scene-list{container-type:inline-size}
@container(max-width:600px){#script-story-editor .vx-scene-card{grid-template-columns:1fr}#script-story-editor .vx-scene-thumb{justify-self:center}}
#script-story-editor .vx-pro-scene-actions{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem;margin:.65rem 0 0}
#script-story-editor .vx-scene-action-row{display:contents}
#script-story-editor .vx-scene-action-row>button,#script-story-editor .vx-pro-scene-actions>button{white-space:nowrap;min-height:36px;padding:.5rem .75rem}
#script-story-editor .vx-scene-media-choice{display:inline-flex;flex-shrink:0;gap:2px;margin:0;padding:3px;border:1px solid #38526b;border-radius:11px;background:#081426}
#script-story-editor .vx-scene-media-choice button{white-space:nowrap;padding:.45rem .5rem}
#script-story-editor .vx-scene-media-choice button[aria-pressed=true]{color:#7eeaff;border-color:#22d3ee;background:#103849;box-shadow:inset 0 0 0 1px rgba(34,211,238,.15)}
#script-story-editor .vx-pro-scene-secondary:empty{display:none}
#script-story-editor .vx-scene-content button:focus-visible{outline:2px solid #7eeaff;outline-offset:3px}
.vx-scene-voice-dialog{width:min(520px,calc(100vw - 2rem));max-height:85vh;overflow:auto;box-sizing:border-box;padding:1.5rem;border:1px solid #38526b;border-radius:16px;background:#0c1728;color:#f1f5f9}
.vx-scene-voice-dialog::backdrop{background:#020617bb;backdrop-filter:blur(4px)}
.vx-scene-voice-dialog h2{font-size:1.2rem;margin:0 0 1rem}
.vx-scene-voice-dialog p{color:#adc0d6;font-size:.85rem;line-height:1.5}
.vx-scene-voice-dialog label{display:grid;gap:.4rem;margin:.8rem 0;font-size:.85rem}
.vx-scene-voice-dialog select{width:100%;padding:.65rem;border:1px solid #38526b;border-radius:8px;background:#081426;color:#fff}
.vx-scene-voice-actions{display:flex;justify-content:flex-end;gap:.6rem;margin-top:1rem}
.vx-scene-voice-actions button{padding:.65rem .8rem;border:1px solid #38526b;border-radius:8px;background:#17324a;color:#fff;cursor:pointer}
.vx-scene-voice-actions button[type=submit]{background:#087ca7;border-color:#22d3ee}
.vx-scene-voice-dialog [role=alert]{color:#fda4af}
@container(max-width:420px){#script-story-editor .vx-pro-scene-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.4rem}#script-story-editor .vx-scene-action-row{display:contents}#script-story-editor .vx-scene-action-row>button{white-space:normal}#script-story-editor .vx-scene-media-choice{grid-column:1/-1;justify-content:center}}
@media(max-width:1100px){#script-story-editor .vx-editor-grid{grid-template-columns:1fr}#script-story-editor .vx-preview-card{position:relative;top:auto;grid-row:1;width:min(520px,100%)}}
@media(max-width:620px){#script-story-editor .vx-scene-card{grid-template-columns:1fr}#script-story-editor .vx-scene-thumb{justify-self:center}#script-story-editor .vx-card-top>.vx-model-select{flex-basis:100%}}

/* Hidden owner administration: wide layout, persistent documents, accessible tabs. */
#vsp-api-panel .vsp-admin-tabs{display:flex;gap:8px;padding:16px 24px;border-bottom:1px solid #263040;flex-wrap:wrap;flex-shrink:0}
#vsp-api-panel .vsp-admin-tabs button{padding:12px 16px;border:1px solid #304052;border-radius:9px;background:#101824;color:#b9c7d8;font:inherit;font-size:14px;font-weight:650;cursor:pointer}
#vsp-api-panel .vsp-admin-tabs button[aria-selected="true"]{background:#083441;border-color:#16bed7;color:#a9f4ff}
#vsp-api-panel .vsp-admin-tabs button:focus-visible{outline:2px solid #a9f4ff;outline-offset:3px}
#vsp-api-panel .vsp-admin-page[hidden]{display:none!important}
#vsp-api-panel .vsp-admin-frame-page{flex:1;min-height:0;overflow:hidden;background:#080b13}
#vsp-api-panel iframe{display:block;width:100%;height:100%;border:0;color-scheme:dark}

/* Owner administration occupies the whole browser viewport, including laptops. */
#vsp-api-panel{width:100vw;max-width:none;height:100vh;height:100dvh;box-sizing:border-box}

/* Social consent is one readable block, independent from the three-step grid. */
.vsp-social-consent{margin-bottom:1.25rem;padding:1.25rem;border:1px solid rgba(100,140,190,.2);border-radius:15px;background:#0b1524;color:#d9e6f4;line-height:1.6}
.vsp-social-consent p{margin:0 0 .85rem}.vsp-social-consent p:last-child{margin:.85rem 0 0}.vsp-social-consent label{display:block;line-height:1.7}.vsp-social-consent input[type=checkbox]{width:18px;height:18px;vertical-align:middle;margin:0 .5rem 0 0;accent-color:#1599f5}.vsp-social-consent a{color:#7dd3fc;text-decoration:underline;text-underline-offset:3px}
.vx-shell select,.vx-model-select select,.vx-global-model select,.sw-workspace select{color-scheme:dark;background-color:#0a1627;color:#f8fafc}
.vx-shell select option,.vx-shell select optgroup,.vx-model-select select option,.vx-model-select select optgroup,.vx-global-model select option,.vx-global-model select optgroup,.sw-workspace select option,.sw-workspace select optgroup{background-color:#0a1627;color:#f8fafc;font-weight:700}
/* Historia: model picker with the Crear Escena list (badge, duration, panel credits). The native select stays for the logic. */
.vx-model-select,.vx-global-model{position:relative}
.vsp-native-model-select{position:absolute!important;left:0;bottom:0;width:1px!important;height:1px!important;min-height:0!important;padding:0!important;border:0!important;opacity:0!important;pointer-events:none!important}
.vsp-story-model-current{display:flex;align-items:center;gap:12px;width:100%;padding:10px 14px;border:1px solid #38bdf8;border-radius:12px;background:#0b1729;color:#e2e8f0;text-align:left;font:inherit;cursor:pointer}
.vsp-story-model-current:disabled{opacity:.55;cursor:not-allowed}.vsp-story-model-current .vsp-scene-model-copy{flex:1;min-width:0}
.vsp-story-model-current .vsp-scene-model-copy strong{font-size:15px}.vsp-story-model-current .vsp-scene-model-copy small{display:block;color:#94a3b8;font-size:12px;margin-top:3px}
.vsp-story-model-caret{color:#94a3b8;flex:none}
.vsp-story-model-overlay{position:fixed;inset:0;z-index:10050;display:flex;align-items:center;justify-content:center;padding:24px;background:rgba(3,7,18,.72)}
.vsp-story-model-panel{width:min(640px,100%);max-height:86vh;overflow:auto;padding:20px;border:1px solid #2a4560;border-radius:18px;background:#101a2b;box-shadow:0 30px 80px rgba(0,0,0,.6)}
.vsp-story-model-panel-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.vsp-story-model-panel-head h3{margin:0;color:#e3f5ff;font-size:18px}
.vsp-story-model-close{border:1px solid #334760;border-radius:10px;background:#0b1729;color:#cbd5e1;padding:6px 10px;cursor:pointer}
.vsp-story-model-general{border-style:dashed!important;margin-bottom:4px}

.vx-professional-ready-count{font-size:.9rem;font-weight:700;color:#d7e9f8;margin-bottom:.75rem}
