/* ═══════════════════════════════════════════════════════════════════════════
   HND MUSE AI — STANDALONE REVIEW STUDIO & AUTO STORYBOARD ENGINE CSS
   ═══════════════════════════════════════════════════════════════════════════ */
#v-review-studio.on {
    display: block;
    padding: 0 14px 20px;
    overflow-y: auto;
    overflow-x: hidden;
    min-height: 0;
}

#v-review-studio .btn-primary,
.review-styles-dialog .btn-primary,
.review-script-dialog .btn-primary,
.muse-preview-dialog .btn-primary {
    background: var(--grad, linear-gradient(135deg, #F97316 0%, #ea580c 100%));
    border: 1px solid rgba(251, 191, 36, 0.5);
    color: #fff;
    font-weight: 700;
}

#v-review-studio .btn-outline,
.review-styles-dialog .btn-outline,
.review-script-dialog .btn-outline,
.story-character-preview .btn-outline,
.task-preview-dialog .btn-outline,
.muse-preview-dialog .btn-outline {
    background: var(--bg-surface);
    border: 1px solid rgba(148, 163, 184, 0.28);
    color: #e2e8f0;
}

#v-review-studio .btn-outline:hover:not(:disabled),
.review-styles-dialog .btn-outline:hover:not(:disabled),
.review-script-dialog .btn-outline:hover:not(:disabled),
.muse-preview-dialog .btn-outline:hover:not(:disabled) {
    border-color: rgba(249, 115, 22, 0.55);
    color: #fbbf24;
}

#v-review-studio .btn-danger,
.review-script-dialog .btn-danger,
.muse-preview-dialog .btn-danger {
    background: rgba(244, 63, 94, 0.16);
    border: 1px solid rgba(244, 63, 94, 0.42);
    color: #fda4af;
}

#v-review-studio .btn-sm,
.review-script-dialog .btn-sm,
.muse-preview-dialog .btn-sm {
    padding: 6px 11px;
    font-size: 11.5px;
    border-radius: 8px;
}

/* Modal & Dialog Base Styles for Review Studio */
.muse-preview-dialog,
.task-preview-dialog,
.review-styles-dialog,
.review-script-dialog,
.story-character-preview {
    position: fixed !important;
    inset: 0 !important;
    margin: auto !important;
    z-index: 10050 !important;
}

.muse-preview-dialog:not([open]),
.task-preview-dialog:not([open]),
.review-styles-dialog:not([open]),
.review-script-dialog:not([open]),
.story-character-preview:not([open]) {
    display: none !important;
}

.muse-preview-dialog[open] {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: none !important;
    padding: 0 !important;
    background: transparent !important;
    color: #f8fafc;
}

.muse-preview-dialog::backdrop,
.task-preview-dialog::backdrop {
    background: var(--bg-surface) !important;
    backdrop-filter: blur(8px) !important;
}

.muse-preview-dialog-card {
    background: linear-gradient(165deg, var(--bg-elevated) 0%, var(--bg-surface) 100%);
    border: 1px solid rgba(249, 115, 22, 0.28);
    border-radius: 18px;
    padding: 20px 24px;
    box-shadow: 0 28px 68px var(--bg-surface), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
    margin: auto;
    color: #f8fafc;
}

.muse-preview-dialog-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
    margin-bottom: 14px;
}

.muse-preview-dialog-head h3 {
    margin: 4px 0 0;
    font-size: 16px;
    color: #f8fafc;
}

.muse-eyebrow-pill {
    display: inline-block;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fbbf24;
}

.muse-preview-dialog-foot {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 14px;
    margin-top: 14px;
    border-top: 1px solid rgba(148, 163, 184, 0.14);
}

.muse-add-bar {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.muse-add-bar .form-input,
.muse-preview-dialog-body .form-input,
.muse-add-bar .form-select {
    padding: 9px 12px;
    border-radius: 9px;
    border: 1px solid rgba(148, 163, 184, 0.26);
    background: var(--bg-surface);
    color: #f8fafc;
    font: inherit;
    font-size: 12.5px;
}

.muse-add-bar .form-input {
    flex: 1;
    min-width: 180px;
}

.muse-picker-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 52vh;
    overflow-y: auto;
}

.muse-picker-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 12px;
    background: var(--bg-surface);
    border: 1px solid rgba(148, 163, 184, 0.16);
}

.muse-picker-item strong {
    font-size: 13px;
    color: #f8fafc;
}

.muse-picker-item p {
    margin: 4px 0 0;
    font-size: 11.5px;
    color: #94a3b8;
}

.muse-status-pill {
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    background: rgba(249, 115, 22, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(249, 115, 22, 0.35);
}

.muse-status-pill.is-ready {
    background: rgba(16, 185, 129, 0.16);
    color: #34d399;
    border-color: rgba(16, 185, 129, 0.38);
}

.task-preview-dialog {
    width: min(860px, calc(100vw - 32px));
    max-height: 90dvh;
    padding: 18px;
    background: var(--bg-elevated);
    border: 1px solid var(--bg-elevated);
    border-radius: 16px;
    color: #e5f0ff;
    box-shadow: 0 25px 90px var(--bg-surface);
}

.task-player-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.task-player-header h2 {
    font-size: 15px;
    margin: 0;
}

.task-player-header .btn-close {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    background: var(--bg-elevated);
    color: #e2e8f0;
    font-size: 18px;
    cursor: pointer;
}

.task-player-content {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-canvas);
    border-radius: 10px;
    overflow: hidden;
    min-height: 280px;
}

.task-player-content video,
.task-player-content img {
    max-width: 100%;
    max-height: calc(85dvh - 140px);
    object-fit: contain;
}

.task-player-controls {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 12px;
}

/* Auto Studio: shared desktop navy, amber and cyan. */
.story-project-location{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 12px;margin-bottom:14px;background:var(--bg-elevated);border:1px solid var(--bg-elevated);border-radius:8px}.story-project-location>div{min-width:0;display:grid;gap:5px}.story-project-location small{font-size:8px;letter-spacing:.8px;color:#718ba8}.story-project-location span{font-size:10px;color:#adbed2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.story-project-location .btn{flex-shrink:0;font-size:9px}
#tab-story{padding:18px 20px 24px;background:var(--bg-darkest);color:var(--text-main);min-height:0;overflow:auto}
.story-workspace{container:auto-story / inline-size;min-width:0;max-width:1800px;margin:auto}
.story-page-header{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:20px}
.story-page-header h1{font-size:22px;letter-spacing:-.6px;margin:6px 0}.story-page-header p{font-size:11px;color:var(--text-muted);line-height:1.7}
.story-eyebrow,.story-page-header>div>span{font-size:9px;letter-spacing:1.5px;font-weight:700;color:var(--navy-light)}
.story-page-header>span{flex-shrink:0;padding:10px 14px;border:1px solid var(--bg-elevated);border-radius:24px;background:var(--bg-elevated);color:#77e8bf;font-size:11px}
.story-layout{display:grid;grid-template-columns:minmax(310px,360px) minmax(0,1fr);gap:18px;align-items:start}
.story-pane{display:flex;flex-direction:column;gap:10px;min-width:0;padding:18px;background:var(--bg-card);border:1px solid var(--border);border-radius:12px}
.story-pane[hidden],.story-pane [hidden],.story-detail-panel [hidden]{display:none!important}
.story-pane .card-header{display:flex;justify-content:space-between;align-items:center;flex-wrap:nowrap;gap:8px;margin:0 0 2px}.story-pane .card-header h2{font-size:16px;margin-top:5px;letter-spacing:-.3px}.story-pane .card-header .btn{flex-shrink:0;font-size:10px;padding:7px 9px}
.story-pane .subtext{font-size:10px;line-height:1.7;color:var(--text-muted)}
.story-pane label{display:grid;gap:6px;color:#b0bfd3;font-size:11px;line-height:1.5}.story-pane>label[for]{margin-bottom:-5px}
.story-pane input:not([type="checkbox"]):not([type="file"]),.story-pane select,.story-pane textarea,.story-detail-panel textarea,.story-detail-panel select,.writer-settings input,.writer-settings select{width:100%;min-width:0;padding:9px 10px;border:1px solid var(--bg-elevated);border-radius:7px;color:var(--text-main);background:var(--bg-surface);font:inherit;font-size:11px;line-height:1.6;outline:none;transition:border-color .18s ease,box-shadow .18s ease}
.story-pane input::placeholder,.story-pane textarea::placeholder{color:#6e819d}.story-pane input:focus,.story-pane select:focus,.story-pane textarea:focus,.story-detail-panel textarea:focus,.story-detail-panel select:focus{border-color:#39bcf3;box-shadow:0 0 0 3px #39bcf312}
.story-pane textarea{min-height:68px;resize:vertical}.story-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.story-field-wide{grid-column:1/-1}
.story-genre-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;padding:4px;border:1px solid var(--border);border-radius:9px;background:var(--bg-surface)}
.story-genre-tabs button{padding:10px 5px;min-width:0;border:1px solid transparent;border-radius:6px;background:transparent;color:#9cabc2;font:inherit;font-size:10px;line-height:1.5;cursor:pointer;transition:var(--transition)}.story-genre-tabs button:hover{color:#edf2f9;background:var(--bg-elevated)}.story-genre-tabs button.active{color:var(--gold);background:#ffb8000c;border-color:#a77920;box-shadow:inset 0 -2px var(--gold)}
.story-flow{display:flex;align-items:center;justify-content:space-between;gap:5px;padding:10px 0;font-size:9px;color:var(--text-muted);border-bottom:1px solid var(--border)}.story-flow b{color:#58708f}
.story-section-label{display:flex;align-items:center;gap:8px;color:#d9e5f4;font-size:11px;font-weight:700;padding-top:12px;margin-top:8px;border-top:1px solid var(--border)}.story-section-label>span{display:grid;place-items:center;width:23px;height:23px;border:1px solid var(--bg-elevated);border-radius:6px;color:#53c7f4;font-size:9px}.story-section-label>small{margin-left:auto;color:var(--text-dim);font-size:9px;font-weight:400}
.story-asset-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.story-asset-card{display:flex;flex-direction:column;gap:8px;min-width:0;padding:9px 7px;background:var(--bg-elevated);border:1px solid var(--bg-elevated);border-radius:8px}.story-asset-card strong{font-size:10px;text-align:center;color:#b7c9df}.story-asset-card .btn{display:block;text-align:center;font-size:9px;padding:6px 3px;white-space:normal;cursor:pointer;margin-top:auto}
.story-asset-thumbs{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:6px;min-height:54px}.story-asset-thumbs:empty:before{content:'＋';display:grid;place-items:center;width:42px;height:48px;color:#617a98;border:1px dashed var(--bg-elevated);border-radius:6px;font-size:20px}.story-asset-thumbs>div{position:relative;width:42px;height:50px}.story-asset-thumbs img{width:100%;height:100%;object-fit:contain;background:var(--bg-surface);border-radius:5px}.story-asset-thumbs button{position:absolute;right:-4px;top:-4px;width:17px;height:17px;padding:0;border:1px solid #653544;border-radius:50%;background:var(--bg-elevated);color:#ffc0c7;cursor:pointer}
.story-options{padding:11px;background:var(--bg-elevated);border:1px solid var(--bg-elevated);border-radius:8px}.story-options summary{font-size:11px;color:#afc1d8;cursor:pointer}.story-options[open] summary{margin-bottom:12px;color:#edf2f9}.story-options>label+label{margin-top:10px}.story-pane .story-checkbox{display:flex;align-items:center;gap:8px}.story-checkbox input{width:15px;height:15px;accent-color:var(--gold)}
.story-editor-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px}.story-editor-actions .btn{font-size:10px}.story-editor-actions>select{flex:1;min-width:140px}#story-estimate{flex-basis:100%;color:#718ba9;font-size:10px;line-height:1.6}
.story-output-panel{min-width:0}.story-board-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;padding:2px 0 15px}.story-board-heading h2{font-size:16px;margin-top:6px;letter-spacing:-.3px}.story-board-hint{font-size:10px;color:var(--text-dim)}
.production-card{min-width:0;padding:18px;margin-bottom:14px;border:1px solid var(--bg-elevated);border-radius:12px;background:linear-gradient(125deg,var(--bg-elevated),var(--bg-elevated));box-shadow:0 6px 24px var(--bg-canvas)}.production-card>header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.production-card>header>div{min-width:0}.production-kind{font-size:9px;letter-spacing:.8px;color:#829fbc;font-weight:700}.production-kind i{font-style:normal;margin:0 4px;color:#52677f}.production-card h3{font-size:13px;line-height:1.7;margin:6px 0 0;color:#e9f0f9;overflow-wrap:anywhere}
.production-status{flex-shrink:0;padding:6px 9px;border:1px solid var(--bg-elevated);border-radius:20px;color:#9caec5;background:var(--bg-elevated);font-size:9px;line-height:1.5}.production-card.running .production-status,.production-card.writing .production-status{color:#ffcf65;background:#9d6a151f;border-color:#806022}.production-card.running .production-status:before,.production-card.writing .production-status:before{content:'';display:inline-block;width:5px;height:5px;margin-right:6px;border-radius:50%;background:#ffb800;animation:storyPulse 1.7s ease-in-out infinite}.production-card.error .production-status{color:#ff8e9b;background:#af354522;border-color:#713748}.production-card.done .production-status{color:#61e6b9;background:#149b7020;border-color:var(--bg-elevated)}
.production-progress{display:flex;align-items:center;gap:10px;margin:15px 0 9px}.production-progress progress,.story-run-status progress{appearance:none;height:5px;border:0;border-radius:6px;flex:1;width:100%;overflow:hidden;background:var(--bg-surface)}.production-progress progress::-webkit-progress-bar,.story-run-status progress::-webkit-progress-bar{background:var(--bg-surface);border-radius:6px}.production-progress progress::-webkit-progress-value,.story-run-status progress::-webkit-progress-value{background:linear-gradient(90deg,#f5a800,#f67622);border-radius:6px;transition:width .45s ease}.production-card.done progress::-webkit-progress-value{background:linear-gradient(90deg,#17ab82,#4edbb3)}.production-progress progress::-moz-progress-bar{background:#f5a800}.production-progress b{font-size:10px;min-width:27px;text-align:right;color:#b6c7dc;font-variant-numeric:tabular-nums}
.production-message{color:#8ea2bd;font-size:10px;line-height:1.7;margin:0 0 14px;overflow-wrap:anywhere}
.production-scenes{display:grid;grid-template-columns:repeat(auto-fit,minmax(100px,1fr));gap:9px;align-items:start}.production-scene,.production-final{min-width:0;max-width:200px;padding:6px;border:1px solid var(--bg-elevated);border-radius:9px;background:var(--bg-elevated)}
.production-thumb{display:grid;place-items:center;position:relative;width:100%;padding:0;aspect-ratio:var(--story-ratio,9/16);border:0;border-radius:6px;overflow:hidden;background:linear-gradient(140deg,var(--bg-elevated),var(--bg-surface));color:#59718e;font:inherit}.production-thumb img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .3s ease,filter .3s ease}.production-thumb>b{position:absolute;left:6px;top:6px;padding:4px 5px;font-size:8px;background:var(--bg-canvas);border:1px solid #ffffff12;border-radius:4px;color:#e7eef9}.production-thumb>em{position:absolute;right:5px;bottom:5px;padding:3px 5px;background:var(--bg-surface);color:#d4e2f3;font-size:8px;border-radius:4px;font-style:normal}.scene-placeholder{font-size:30px;color:var(--bg-elevated)}.production-thumb.is-playable{cursor:pointer}.production-play{position:absolute;display:grid;place-items:center;width:36px;height:36px;border:1px solid #d9ecff66;border-radius:50%;background:var(--bg-surface);color:white;font-size:23px;backdrop-filter:blur(5px);transition:transform .2s ease,background .2s ease}.is-playable:hover img{transform:scale(1.04);filter:brightness(.82)}.is-playable:hover .production-play{transform:scale(1.1);background:#ae761aee;border-color:#ffcd6a}
.production-scene p{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;height:32px;margin:9px 2px 6px;color:#acbdd1;font-size:9px;line-height:1.75}.production-scene small{display:block;margin:0 2px 2px;color:#7b91ad;font-size:8px}
.production-final{background:var(--bg-elevated);border-color:#715923;display:flex;flex-direction:column;gap:8px}.production-final>b{font-size:8px;text-align:center;letter-spacing:.6px;color:#f4c56c;line-height:1.6}.production-final .btn{text-align:center;justify-content:center;font-size:9px;background:#ffb80012;border-color:#806321;color:#ffcf71;padding:7px}.production-wait{aspect-ratio:var(--story-ratio,9/16);display:flex;flex-direction:column;justify-content:center;align-items:center;gap:12px;padding:8px;border:1px dashed var(--bg-elevated);border-radius:6px;text-align:center;color:#617b99}.production-wait>span{font-size:25px}.production-wait small{font-size:9px;line-height:1.7}
.production-card footer{display:flex;gap:7px;flex-wrap:wrap;margin-top:14px;padding-top:12px;border-top:1px solid var(--bg-elevated)}.production-card footer .btn{padding:7px 10px;font-size:10px}.production-card footer .btn-primary{background:#ffb80013;border-color:#806321;color:#ffcf71}
.production-empty{padding:65px 24px;border:1px dashed var(--bg-elevated);border-radius:12px;background:var(--bg-elevated);color:#91a7c2;text-align:center}.production-empty>span{display:grid;place-items:center;margin:0 auto 18px;width:52px;height:52px;border:1px solid #725d2b;border-radius:14px;background:#ffb8000b;color:#ffc34f;font-size:28px}.production-empty h2{color:#d5e3f4;font-size:16px;margin-bottom:10px}.production-empty p{font-size:11px;line-height:1.8;max-width:330px;margin:auto}
.story-detail-panel{padding:15px;margin-top:14px;border:1px solid var(--border);border-radius:10px;background:var(--bg-card)}.story-detail-panel>summary{color:#b6c9df;font-size:11px;font-weight:600;cursor:pointer}.story-detail-panel[open]>summary{padding-bottom:14px;margin-bottom:14px;border-bottom:1px solid var(--border)}
.story-run-status{display:grid;gap:8px;background:var(--bg-elevated);border:1px solid var(--bg-elevated);border-radius:8px;padding:12px;margin-bottom:12px}.story-run-status strong{color:#52c8f3;font-size:12px}.story-run-status span,.story-run-status small{color:#9bb4cd;font-size:10px;line-height:1.7;overflow-wrap:anywhere}
.story-detail-panel h3{margin:14px 0 8px;font-size:13px;line-height:1.6}.story-scene-editor{padding:12px;border:1px solid var(--bg-elevated);border-radius:8px;margin:10px 0;background:var(--bg-elevated)}.story-scene-editor header{display:flex;align-items:center;gap:9px;margin-bottom:10px}.story-scene-editor header b{color:#ffc64e;font-size:11px}.story-scene-editor header span{font-size:10px;color:#b4c4d9;white-space:nowrap}.story-scene-editor header small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#6f87a5;font-size:9px}.story-scene-editor label{display:grid;gap:7px;font-size:10px;color:#a3b6cd;margin-top:10px}.story-scene-editor textarea{width:100%;resize:vertical}.story-scene-editor details{margin-top:10px;font-size:10px;color:#879db8}.story-scene-editor summary{cursor:pointer}
.story-scene-progress{display:flex;align-items:center;flex-wrap:wrap;gap:8px;padding:12px 0;border-bottom:1px solid var(--border);font-size:10px}.story-scene-progress>b{color:#ffc34e}.story-scene-progress figure{margin:0;width:46px;text-align:center}.story-scene-progress img{width:46px;height:56px;object-fit:contain;background:var(--bg-surface);border-radius:5px}.story-scene-progress figcaption{font-size:7px;color:#718aa7;margin-top:3px}.story-scene-progress>span{flex:1;color:#8fa6c0}.story-detail-panel>.story-editor-actions:last-child{margin-top:12px}
.writer-settings{margin-bottom:18px;padding:20px}.writer-add-row{display:flex;flex-wrap:wrap;gap:10px;margin:15px 0}.writer-add-row input{flex:1;min-width:130px}.writer-account{display:flex;align-items:center;gap:12px;padding:14px 0;border-top:1px solid var(--border)}.writer-account>div{flex:1;display:grid;gap:6px;min-width:0}.writer-account strong{font-size:12px}.writer-state{color:#ffb800;font-size:10px;white-space:nowrap}.writer-state.ready{color:#20c997}
#btn-toggle-queue.is-producing,#btn-toggle-queue.is-complete{background:linear-gradient(110deg,#047857,#10b981)!important;border-color:#34d399!important;color:#fff!important;opacity:1!important}#btn-toggle-queue.is-producing{cursor:pointer;box-shadow:0 0 0 3px #10b98115}
.task-player-header h2{overflow-wrap:anywhere;line-height:1.6}.task-player-header .btn-close{flex-shrink:0}.task-player-content video{max-height:calc(100dvh - 180px)}
@keyframes storyEnter{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}@keyframes storyPulse{50%{opacity:.35;box-shadow:0 0 0 4px #ffb80012}}
.story-page-header,.story-pane{animation:storyEnter .25s ease both}.story-pane{animation-delay:.04s}.story-detail-panel[open]{animation:storyEnter .2s ease}
@container auto-story (max-width:900px){.story-layout{grid-template-columns:minmax(0,1fr)}.story-genre-tabs{max-width:560px}.production-scenes{grid-template-columns:repeat(auto-fit,minmax(110px,1fr))}.production-scene,.production-final{max-width:180px}}
@media(max-width:650px){#tab-story{padding:12px}.story-page-header{align-items:flex-start;flex-direction:column;gap:10px;margin-bottom:15px}.story-page-header h1{font-size:19px}.story-page-header>span{font-size:10px;padding:7px 11px}.story-pane,.production-card{padding:13px}.story-pane .card-header{flex-wrap:wrap}.production-card>header{flex-wrap:wrap;gap:8px}.production-kind{font-size:8px}.production-scenes{grid-template-columns:repeat(2,minmax(0,1fr))}.production-scene,.production-final{max-width:none}.writer-account{flex-wrap:wrap}.writer-add-row>*{width:100%}.story-section-label>small{font-size:8px}.story-board-hint{display:none}}
@media(prefers-reduced-motion:reduce){.story-page-header,.story-pane,.story-detail-panel[open],.production-status:before{animation:none!important}.production-thumb img,.production-play,.production-progress progress::-webkit-progress-value{transition:none}}

@keyframes storySpin{to{transform:rotate(360deg)}}
.production-config{font-size:9px;color:#819bb8;line-height:1.8;margin:8px 0 0;overflow-wrap:anywhere}.story-pane input:disabled{opacity:.45}
.story-queue-actions{position:sticky;top:-18px;z-index:3;box-shadow:0 5px 12px #0003;display:grid;gap:8px;padding:12px;border:1px solid #47543a;background:var(--bg-elevated);border-radius:8px}.story-queue-actions .btn{justify-content:center;font-size:11px}.story-queue-actions small{font-size:10px;line-height:1.7;color:#9aafc8}.production-delete{margin-left:auto}.production-card.queued .production-status{color:#92cfff;background:#17497e30;border-color:#305980}
.production-scene{position:relative;isolation:isolate}.production-scene.is-active,.production-final.is-active{border-color:#49c6ff;box-shadow:0 0 18px #30afff28}.production-scene.is-active:after,.production-final.is-active:after{content:'';position:absolute;inset:-2px;border-radius:10px;padding:2px;background:conic-gradient(from var(--scene-orbit),transparent 0deg,#45c6ff 65deg,#ffbf49 95deg,transparent 125deg);mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);mask-composite:exclude;pointer-events:none;animation:sceneOrbit 2.8s linear infinite}.scene-live{display:flex;align-items:center;gap:5px;margin:9px 1px 5px;color:#76d6ff;font-size:9px;line-height:1.6}.scene-live>span:nth-child(2){flex:1}.scene-live strong{font-variant-numeric:tabular-nums}.scene-spinner{width:10px;height:10px;flex-shrink:0;border:1.5px solid var(--bg-elevated);border-top-color:#72deff;border-radius:50%;animation:storySpin 1s linear infinite}.production-scene progress{width:100%;height:3px;appearance:none;border:0;border-radius:3px;background:var(--bg-elevated)}.production-scene progress::-webkit-progress-bar{background:var(--bg-elevated)}.production-scene progress::-webkit-progress-value{background:#55d7ff}.production-scene progress:indeterminate{background:linear-gradient(90deg,var(--bg-elevated),#55d7ff,var(--bg-elevated));background-size:200% 100%;animation:sceneShimmer 1.5s linear infinite}.story-pane select:disabled{opacity:.45}
@property --scene-orbit{syntax:'<angle>';initial-value:0deg;inherits:false}
@keyframes sceneOrbit{to{--scene-orbit:360deg}}@keyframes sceneShimmer{to{background-position:200% 0}}
@media(prefers-reduced-motion:reduce){.production-scene.is-active:after,.scene-spinner,.production-scene progress:indeterminate{animation:none!important}.production-scene.is-active:after,.production-final.is-active:after{background:#49c6ff}}
#story-cta-custom[hidden]{display:none!important}
#story-cta-hint{line-height:1.65;overflow-wrap:anywhere}
.story-folder-shortcuts{display:flex;flex-wrap:wrap;gap:7px;margin:-6px 0 14px}.story-folder-shortcuts .btn{font-size:10px;padding:7px 10px}.story-folder-shortcuts .completed{color:#ffce6b;border-color:#775e2e;background:#ffb8000c}
#btn-toggle-queue.is-producing>span:first-child{display:inline-block;animation:storySpin 1.2s linear infinite}
@media(prefers-reduced-motion:reduce){#btn-toggle-queue.is-producing>span:first-child{animation:none}}
@container auto-story (min-width:901px){.story-layout>.story-pane{position:sticky;top:0;max-height:calc(100dvh - 225px);overflow-y:auto;scrollbar-gutter:stable}}

/* Optional library picker and photo inspection share the studio palette. */
.story-character-browser{border:1px solid var(--bg-elevated);border-radius:9px;background:var(--bg-elevated);overflow:hidden}
.story-character-browser summary{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:11px;cursor:pointer;color:#c2d3e8;font-size:11px;list-style:none}
.story-character-browser summary:after{content:'⌄';color:#57c9f6}.story-character-browser summary small{margin-left:auto;color:#7995b5;font-size:9px}
#story-character-picker{display:grid;gap:7px;padding:0 9px 9px;max-height:320px;overflow:auto}
.story-character-none{width:100%;padding:10px;text-align:left;border:1px dashed var(--bg-elevated);background:var(--bg-surface);color:#9cb1cb;border-radius:7px;font:inherit;font-size:10px;cursor:pointer}
.story-character-option{display:flex;align-items:center;gap:5px;border:1px solid var(--bg-elevated);border-radius:8px;padding:5px;background:var(--bg-elevated);transition:border-color .2s,background .2s}
.story-character-option.selected,.story-character-none.selected{border-color:#38b8e7;background:var(--bg-elevated);color:#bcf1ff}
.story-character-choice{display:flex;align-items:center;gap:9px;min-width:0;flex:1;padding:0;border:0;background:none;color:#d0e0f3;text-align:left;font:inherit;cursor:pointer}
.story-character-choice img,.story-avatar{width:37px;height:46px;border-radius:5px;object-fit:contain;background:var(--bg-surface);flex-shrink:0}.story-avatar{display:grid;place-items:center;font-size:23px;color:#6c89aa}
.story-character-choice>span:not(.story-avatar){display:grid;gap:5px;min-width:0}.story-character-choice strong{overflow-wrap:anywhere;font-size:11px}.story-character-choice small{color:#839ab8;font-size:9px}.story-character-choice>b{margin-left:auto;color:#6ddafa}
.story-character-option>.btn{padding:6px;font-size:9px;flex-shrink:0}.story-character-selection{display:flex;gap:7px;flex-wrap:wrap}
.story-character-chip{display:flex;align-items:center;gap:8px;border:1px solid var(--bg-elevated);border-radius:8px;background:var(--bg-elevated);padding:5px 8px;color:#c7e6fc;font:inherit;font-size:10px;text-align:left;cursor:pointer;max-width:100%}.story-character-chip img{width:30px;height:38px;object-fit:contain;border-radius:4px;background:var(--bg-surface)}.story-character-chip span{overflow-wrap:anywhere}.story-character-chip small{display:block;margin-top:4px;color:#7d9bb9;font-size:8px}.story-character-empty{font-size:9px;color:#7790ae;line-height:1.6}
.story-character-preview{position:fixed;inset:0;margin:auto;width:min(880px,calc(100vw - 32px));max-height:85dvh;padding:18px;background:var(--bg-elevated);border:1px solid var(--bg-elevated);border-radius:14px;color:#e3efff;box-shadow:0 24px 100px #0009}
.story-character-preview::backdrop{background:var(--bg-canvas);backdrop-filter:blur(5px)}.story-character-preview header{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:16px}.story-character-preview h3{font-size:15px;margin:0;overflow-wrap:anywhere}
#story-character-preview-photos{display:flex;justify-content:center;flex-wrap:wrap;gap:12px;overflow:auto;max-height:65dvh}#story-character-preview-photos img{width:auto;max-width:100%;max-height:60dvh;object-fit:contain;border:1px solid var(--bg-elevated);border-radius:8px;background:var(--bg-surface)}
.production-card.writing,.production-card.running{border-color:var(--bg-elevated)}.production-card.writing .production-progress progress{background:var(--bg-surface);background-size:200% 100%;animation:sceneShimmer 2s linear infinite}
.production-final.is-active{position:relative;border-color:#54ccf5;box-shadow:0 0 0 1px #39c5ff33,0 0 22px #39c5ff20;isolation:isolate}
@media(prefers-reduced-motion:reduce){.production-final.is-active:after,.production-card.writing .production-progress progress{animation:none!important}.production-final.is-active:after{background:#49c6ff}}

.story-pane>*{flex-shrink:0}.story-hint{font-size:10px;color:#829bb8;line-height:1.75;margin:2px 0 12px;overflow-wrap:anywhere}

.story-hook-preview{padding:12px;border:1px solid var(--bg-elevated);border-left:3px solid #38c5ed;border-radius:8px;background:linear-gradient(115deg,var(--bg-elevated),var(--bg-elevated))}.story-hook-preview>small{display:block;color:#66bfdc;font-size:8px;letter-spacing:.55px;line-height:1.7}.story-hook-preview p{margin:7px 0 0;color:#c3d8ed;font-size:11px;line-height:1.85;overflow-wrap:anywhere}.story-hook-fields{display:grid;gap:10px;padding:11px;border:1px solid var(--bg-elevated);border-radius:8px;background:var(--bg-elevated)}#story-hook-hint{margin-bottom:0}

#story-hook-mode,.story-hook-preview{scroll-margin-top:140px}

.story-content-options{border:1px solid var(--bg-elevated);border-radius:9px;background:var(--bg-elevated);flex-shrink:0}.story-content-options>summary{cursor:pointer;padding:12px;color:#bfd4e9;font-size:11px}.story-content-controls{display:grid;gap:11px;padding:0 11px 12px}.story-content-controls input[type=range]{accent-color:#39bcf3;padding:0!important}.story-content-controls output{font-size:10px;color:#60d2f6}.story-content-controls .story-hint{margin:0}.production-content-config{font-size:9px;color:#8db3cc;line-height:1.8;margin:6px 0;overflow-wrap:anywhere}.story-content-options .btn{font-size:9px;padding:8px}.story-content-options [hidden]{display:none!important}

/* Compact Review Studio uses the same navy/cyan/amber palette as Muse. */
.review-main,.review-advanced{display:grid;gap:12px;min-width:0}.review-main{font-size:13px}.review-block-label{padding-top:8px;color:#5ed4f7;font-size:11px;font-weight:700;letter-spacing:1px}
#review-product-fields{display:grid;gap:9px}#review-product-fields label{font-size:12px}#review-product-fields input,#review-product-fields textarea{font-size:13px;line-height:1.6}
.review-drop{padding:15px;border:1px dashed #3b607f;border-radius:12px;background:var(--bg-elevated);transition:background .2s,border-color .2s}.review-drop.drag-over{background:var(--bg-elevated);border-color:#63d9ff}.review-drop>label{cursor:pointer;color:#a5d8ee;text-align:center;font-size:12px!important}
#review-product-photos{display:flex;gap:8px;flex-wrap:wrap}#review-product-photos:empty{display:none}#review-product-photos figure{position:relative;margin:0 0 12px;width:62px;height:74px}#review-product-photos img{width:100%;height:100%;object-fit:contain;background:var(--bg-surface);border-radius:7px}#review-product-photos button{position:absolute;right:-4px;top:-4px;border:0;border-radius:50%;color:#ffdbe4;background:#782b40;cursor:pointer}
.review-style-trigger{display:flex;align-items:center;justify-content:space-between;padding:13px;border:1px solid var(--bg-elevated);border-radius:9px;background:linear-gradient(125deg,var(--bg-elevated),var(--bg-elevated));color:#d4f4ff;font:inherit;text-align:left;cursor:pointer}.review-style-trigger b{color:#73d7ff}
.review-stepper{display:flex;align-items:center;gap:8px;min-width:0}.review-stepper>button{width:34px;height:36px;background:var(--bg-elevated);border:1px solid var(--bg-elevated);border-radius:7px;color:#cbeafe;font-size:20px;cursor:pointer}.review-stepper input{width:50px!important;padding:7px!important;text-align:center}.review-stepper strong{font-size:11px;color:#8ed3e8;margin-left:auto}.review-stepper input::-webkit-inner-spin-button{appearance:none}
.review-advanced{display:block;padding:13px;border:1px solid var(--bg-elevated);border-radius:10px;background:var(--bg-surface)}.review-advanced>summary{font-size:11px;color:#a9c4de;cursor:pointer;line-height:1.7}.review-advanced[open]>summary{margin-bottom:14px}.review-advanced>*:not(summary){margin-top:12px}.review-advanced>.story-form-grid{margin-top:12px}
.review-primary-actions{position:sticky;bottom:0;z-index:2;display:grid;gap:8px;padding:13px 0 0;background:linear-gradient(0deg,var(--bg-elevated) 90%,transparent)}.review-primary-actions>.btn{width:100%;justify-content:center;padding:13px;font-size:13px}.review-primary-actions small{font-size:10px;color:#8fa9c5;line-height:1.6}
#review-ideas{margin-bottom:22px;min-width:0}.review-ideas-header{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:14px}.review-ideas-header>div{flex:1}.review-ideas-header h2{font-size:18px;margin:5px 0}.review-ideas-header small{font-size:11px;color:#94aac5}.review-ideas-header select{max-width:180px;padding:9px;background:var(--bg-elevated);color:#c8ddf2;border:1px solid var(--bg-elevated);border-radius:7px;font-size:12px}
.review-concept-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));gap:12px;align-items:stretch}.review-concept{display:flex;flex-direction:column;min-width:0;padding:16px;background:linear-gradient(145deg,var(--bg-elevated),var(--bg-elevated));border:1px solid var(--bg-elevated);border-radius:12px;transition:border-color .2s,box-shadow .2s}.review-concept.selected{border-color:#42c9f4;box-shadow:0 0 0 2px #42c9f413}.review-concept header{display:flex;gap:8px;align-items:start;justify-content:space-between}.review-concept header small{color:#79cae5;font-size:10px}.review-concept header span{font-size:10px;color:#a2b6ce;white-space:nowrap}.review-concept h3{font-size:14px;line-height:1.65;margin:13px 0 9px;color:#e5f2ff}.review-concept p{font-size:12px;line-height:1.75;color:#a9c1db;overflow-wrap:anywhere}.review-concept>small{font-size:10px;color:#7496b6}.review-concept-note{font-size:10px!important}.review-concept footer{display:flex;gap:6px;flex-wrap:wrap;margin-top:auto;padding-top:12px}.review-concept .btn{font-size:11px;padding:8px 10px}.review-mini-timeline{display:flex;flex-wrap:wrap;gap:4px;margin:10px 0}.review-mini-timeline span{padding:4px 6px;border:1px solid var(--bg-elevated);border-radius:4px;font-size:9px;color:#93b4d0}
.review-selected{display:grid;gap:12px;margin-top:14px;padding:19px;border:1px solid var(--bg-elevated);border-radius:12px;background:var(--bg-elevated)}.review-selected[hidden]{display:none}.review-selected h3{font-size:16px}.review-selected>small{font-size:11px;color:#89abc8}.review-selected label{display:grid;gap:8px;font-size:12px;color:#a7c5de}.review-selected textarea{box-sizing:border-box;width:100%;resize:vertical;min-height:125px;background:var(--bg-surface);color:#deedff;border:1px solid var(--bg-elevated);padding:12px;border-radius:8px;font:inherit;line-height:1.8;font-size:13px}.review-tools{display:flex;gap:7px;flex-wrap:wrap}.review-tools .btn{font-size:11px;padding:8px 10px}.review-selected details{font-size:12px;color:#91afca}.review-selected summary{cursor:pointer}.review-selected details p{margin:12px 0;line-height:1.7}
.review-empty{padding:30px;border:1px dashed var(--bg-elevated);border-radius:12px;color:#91afca;font-size:13px;line-height:1.8}.review-styles-dialog{position:fixed;inset:0;margin:auto;width:min(980px,calc(100vw - 32px));max-height:85dvh;overflow:auto;padding:22px;background:var(--bg-elevated);border:1px solid var(--bg-elevated);border-radius:16px;color:#dbeaff;box-shadow:0 25px 100px #0009}.review-styles-dialog::backdrop{background:var(--bg-canvas);backdrop-filter:blur(5px)}.review-styles-dialog>header{display:flex;align-items:center;justify-content:space-between;gap:12px}.review-styles-dialog h2{font-size:19px}.review-styles-dialog input{width:100%;box-sizing:border-box;margin:16px 0;padding:12px;background:var(--bg-surface);border:1px solid var(--bg-elevated);border-radius:8px;color:#daebff}.review-style-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.review-style-card{display:grid;gap:8px;padding:14px;border:1px solid var(--bg-elevated);border-radius:10px;background:var(--bg-elevated);color:#d2eaff;text-align:left;font:inherit;cursor:pointer}.review-style-card.selected{border-color:#5cdaff;background:var(--bg-elevated)}.review-style-card strong{font-size:13px}.review-style-card span{font-size:12px;line-height:1.6;color:#a2bed7}.review-style-card em{font-size:11px;color:#5ccef3;font-style:normal}.review-style-card small{font-size:10px;line-height:1.6;color:#8aabc6}.review-styles-dialog h3{font-size:12px;color:#84bedc;margin:18px 0 10px}.review-styles-dialog>button{margin-top:16px}.review-concept.is-writing{border-color:#45c7f5;animation:reviewGlow 2s ease-in-out infinite}
@keyframes reviewGlow{50%{box-shadow:0 0 22px #38c4f427,inset 0 0 8px #38c4f417}}
@media(min-width:1250px){.story-layout{grid-template-columns:minmax(360px,400px) minmax(0,1fr)}}
@media(max-width:800px){.story-layout{grid-template-columns:minmax(0,1fr)}.story-pane{max-height:none!important}.review-concept-cards{grid-template-columns:repeat(auto-fit,minmax(min(100%,230px),1fr))}.review-ideas-header select{max-width:140px}}
@media(max-width:480px){#tab-story{padding:12px 8px}.review-style-grid,.review-concept-cards{grid-template-columns:1fr}.review-styles-dialog{padding:15px}.review-selected{padding:13px}.production-scenes{grid-template-columns:minmax(0,1fr)}.production-scene,.production-final{max-width:none}.production-thumb{max-height:420px}.review-ideas-header .btn{font-size:11px}}
@media(prefers-reduced-motion:reduce){.review-concept.is-writing{animation:none}}
@property --review-angle{syntax:'<angle>';initial-value:0deg;inherits:false}
.review-concept.is-writing{position:relative;isolation:isolate}.review-concept.is-writing:before{content:'';position:absolute;inset:-1px;padding:2px;border-radius:inherit;background:conic-gradient(from var(--review-angle),transparent 0deg,#46ceff 80deg,#bbf2ff 105deg,transparent 145deg);-webkit-mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);-webkit-mask-composite:xor;mask-composite:exclude;pointer-events:none;animation:reviewOrbit 2.5s linear infinite}
@keyframes reviewOrbit{to{--review-angle:360deg}}
.review-selected textarea{user-select:text}.review-qc p{font-size:11px;line-height:1.7;margin:8px 0;color:#95b3ce}
@media(max-width:800px){.app-container:has(#tab-story.active)>.sidebar{width:56px;padding:0 4px 8px}.app-container:has(#tab-story.active) .brand-info,.app-container:has(#tab-story.active) .nav-item>span,.app-container:has(#tab-story.active) .nav-section-label,.app-container:has(#tab-story.active) .admin-card{display:none}.app-container:has(#tab-story.active) .logo-box{width:34px;height:34px}.app-container:has(#tab-story.active) .brand{padding:8px 5px;min-height:60px}.app-container:has(#tab-story.active) .nav-item{justify-content:center;padding:12px 6px}.app-container:has(#tab-story.active) .topbar{padding:8px}.app-container:has(#tab-story.active) .workspace-actions{margin:0 8px}.app-container:has(#tab-story.active) .project-toolbar{padding-left:8px;padding-right:8px}}
@media(prefers-reduced-motion:reduce){.review-concept.is-writing:before{animation:none;background:#46ceff}}

/* Review Studio 2: the layout exists in HTML before account/API loading. */
.review-studio-v2{--review-line:var(--bg-elevated);--review-surface:var(--bg-elevated);--review-accent:#72dbf6;max-width:1760px}
.review-studio-v2 .story-page-header{padding:6px 2px 20px;border-bottom:1px solid var(--bg-elevated);margin-bottom:22px;align-items:center}
.review-studio-v2 .story-page-header h1{font-size:clamp(24px,2.2vw,32px);font-weight:750;letter-spacing:-1px;line-height:1.3;margin:10px 0;color:#eef7ff}
.review-studio-v2 .story-page-header p{font-size:12px;line-height:1.8;color:#93abc6}
.review-page-status{display:flex;align-items:center;gap:8px;border:1px solid var(--bg-elevated);background:var(--bg-elevated);border-radius:30px;padding:10px 15px;max-width:240px;color:#a0dfe9;font-size:11px;line-height:1.6}
.review-page-status i{width:6px;height:6px;flex-shrink:0;border-radius:50%;background:#52dbc6;box-shadow:0 0 10px #52dbc65c}
.review-studio-v2 .story-layout{grid-template-columns:minmax(340px,380px) minmax(0,1fr);gap:22px}
.review-studio-v2 .story-pane{padding:20px;border-radius:16px;border-color:var(--bg-elevated);background:linear-gradient(150deg,var(--bg-elevated),var(--bg-elevated));gap:17px;box-shadow:0 12px 35px var(--bg-canvas)}
.review-studio-v2 .story-pane .card-header{padding-bottom:15px;border-bottom:1px solid var(--bg-elevated);align-items:flex-start;gap:10px}
.review-studio-v2 .story-pane .card-header h2{font-size:16px;line-height:1.5;margin-top:6px}.review-studio-v2 .story-pane .card-header .btn{padding:7px;font-size:10px}
.review-studio-v2 .story-eyebrow{color:#70bbd6;font-size:9px;letter-spacing:1.3px}
.review-form-section-title{display:flex;align-items:center;gap:9px;margin:0 0 2px;font-size:12px;color:#d7eafb}
.review-form-section-title b{display:grid;place-items:center;width:25px;height:25px;border-radius:8px;background:var(--bg-elevated);border:1px solid var(--bg-elevated);color:#82e1f4;font-size:10px}
.review-form-section-title span{font-weight:650}.review-form-section-title small{margin-left:auto;color:#829eb9;font-size:10px;font-weight:400}
.review-studio-v2 .review-main{gap:15px}.review-studio-v2 #review-product-fields{gap:8px}.review-studio-v2 #review-product-fields label{font-size:11px;font-weight:500;margin-top:4px;color:#aac4dd}
.review-studio-v2 #review-product-fields input,.review-studio-v2 #review-product-fields textarea{padding:11px 12px;border-radius:9px;background:var(--bg-surface);border-color:var(--bg-elevated);font-size:12px;line-height:1.8}
.review-studio-v2 .review-drop{position:relative;border-style:dashed;border-color:#3d627e;background:radial-gradient(ellipse at top,#1a3e526b,var(--bg-elevated));padding:18px 12px;border-radius:12px;text-align:center;transition:border-color .2s,background .2s}
.review-studio-v2 .review-drop>label{align-items:center;gap:7px;font-size:12px!important}.review-upload-symbol{display:grid;place-items:center;width:35px;height:35px;border:1px solid #3c7792;border-radius:10px;background:var(--bg-elevated);color:#91e8ff;font-size:22px;margin:0 auto 3px}
.review-drop strong{font-size:12px;font-weight:600;color:#d5ecff}.review-drop small{font-size:10px;color:#88a6c3;line-height:1.6}
.review-video-controls{display:grid;gap:10px;margin-top:4px;padding-top:15px;border-top:1px solid var(--bg-elevated)}.review-input-caption{margin-top:3px}
.review-studio-v2 .review-style-trigger{padding:13px 12px;font-size:12px;border-color:#427c96;border-radius:10px;background:linear-gradient(120deg,var(--bg-elevated),var(--bg-elevated))}
.review-style-description{font-size:10px;color:#7c9eba;line-height:1.65;margin:-2px 0 2px}
.review-studio-v2 .story-genre-tabs{gap:3px;background:var(--bg-surface);padding:4px;border-radius:9px}.review-studio-v2 .story-genre-tabs button{font-size:10px;padding:9px 4px}.review-studio-v2 .story-genre-tabs button.active{border-color:#5a9aaf;background:var(--bg-elevated);color:#c4f4ff;box-shadow:inset 0 -2px #67d2eb}
.review-form-two{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:14px;margin-top:4px}.review-count-block>label{margin-bottom:6px}
.review-studio-v2 .review-stepper{gap:5px}.review-studio-v2 .review-stepper button{height:36px;width:30px;font-size:18px}.review-studio-v2 .review-stepper input{width:43px!important;height:36px;padding:6px!important;font-size:13px}
.review-duration{display:block;margin-top:6px;font-size:10px;color:#79b5ca}.review-studio-v2 .review-variants-label select{height:36px;padding:6px 9px;font-size:12px}
.review-studio-v2 .review-advanced{padding:12px;border-radius:11px;border-color:var(--bg-elevated);background:var(--bg-surface)}.review-studio-v2 .review-advanced>summary{font-size:11px;color:#98b4cd;font-weight:500;line-height:1.8}
.review-studio-v2 .review-advanced>label{margin-bottom:14px}.review-settings-group{border-top:1px solid var(--bg-elevated);padding:10px 0}.review-settings-group>summary{font-size:12px;color:#b1cee6;cursor:pointer}.review-settings-group[open]>summary{color:#82def1;margin-bottom:12px}
.review-settings-body{display:grid;gap:12px}.review-settings-body:empty{display:none}.review-settings-body input,.review-settings-body textarea,.review-settings-body select{font-size:12px!important}.review-settings-body .story-content-options{max-width:100%;min-width:0}
.review-settings-body .story-section-label{display:none}.review-settings-body label:not(:has(input,select,textarea)){display:none}.review-settings-body #story-assets{grid-template-columns:repeat(2,minmax(0,1fr))}.review-settings-body #story-assets [data-story-role=product]{display:none}
.review-primary-actions{padding:12px 0 0;background:linear-gradient(0deg,var(--bg-elevated) 92%,transparent)}.review-studio-v2 .review-primary-actions>.btn{min-height:44px;border:1px solid #55cced;border-radius:10px;background:linear-gradient(115deg,#258fbe,#3672bb);color:white;font-weight:700;box-shadow:0 7px 22px #0582b524}
.review-primary-actions>small{font-size:10px;text-align:center;color:#819eb8}.review-runtime-status{display:flex;justify-content:space-between;align-items:center;gap:10px;border-top:1px solid var(--bg-elevated);padding-top:10px;font-size:10px;color:#82afc7}.review-runtime-status .btn{font-size:10px;padding:5px 9px}
.review-output-nav{display:flex;align-items:center;gap:10px;justify-content:space-between;margin-bottom:21px}.review-output-nav>[role=tablist]{display:flex;flex-wrap:wrap;gap:5px;padding:5px;border:1px solid var(--bg-elevated);background:var(--bg-elevated);border-radius:12px}
.review-output-nav button[role=tab]{display:flex;align-items:center;gap:8px;padding:10px 13px;border-radius:8px;border:1px solid transparent;background:none;color:#8da7c3;font:inherit;font-size:12px;cursor:pointer}.review-output-nav button[aria-selected=true]{color:#d5f4ff;background:var(--bg-elevated);border-color:#3a718e;box-shadow:0 2px 8px #0002}
.review-output-nav button span{background:var(--bg-elevated);border-radius:5px;min-width:18px;padding:2px 4px;text-align:center;color:#8acbdf;font-size:10px}.review-output-nav>.btn{font-size:10px;white-space:normal}
.review-studio-v2 #review-ideas{margin:0}.review-studio-v2 .review-ideas-header{gap:8px;margin-bottom:16px;align-items:end}.review-studio-v2 .review-ideas-header>div{flex-basis:100%}.review-studio-v2 .review-ideas-header h2{font-size:19px;letter-spacing:-.4px}.review-studio-v2 .review-ideas-header small{font-size:11px}.review-studio-v2 .review-ideas-header select{font-size:11px;max-width:220px;min-width:0;height:35px}.review-ideas-header>.btn{margin-left:auto;font-size:11px;height:35px}
.review-studio-v2 .review-concept-cards{grid-template-columns:repeat(auto-fit,minmax(min(100%,185px),1fr));gap:12px}.review-studio-v2 .review-concept{border-radius:13px;padding:16px;background:linear-gradient(160deg,var(--bg-elevated),var(--bg-elevated));border-color:var(--bg-elevated);min-height:245px}.review-studio-v2 .review-concept.selected{border-color:#65cce6;box-shadow:0 0 0 2px #65cce614,0 8px 25px var(--bg-surface)}
.review-studio-v2 .review-concept h3{font-size:13px;line-height:1.8;margin-top:13px;-webkit-line-clamp:3;display:-webkit-box;-webkit-box-orient:vertical;overflow:hidden}.review-studio-v2 .review-concept p{font-size:11px;line-height:1.8}.review-studio-v2 .review-concept-note{font-size:10px!important;color:#86a6c2}.review-studio-v2 .review-concept footer{gap:5px}.review-studio-v2 .review-concept .btn{font-size:10px;padding:7px 8px}
.review-start{grid-column:1/-1;padding:42px 22px 26px;border:1px solid var(--bg-elevated);border-radius:17px;background:radial-gradient(ellipse at 50% 0%,#153f5366,transparent 70%),var(--bg-elevated);text-align:center}.review-start-icon{display:grid;place-items:center;width:54px;height:54px;border:1px solid #396b87;border-radius:16px;background:linear-gradient(130deg,var(--bg-elevated),var(--bg-elevated));color:#83e1f5;font-size:30px;margin:0 auto 20px;box-shadow:0 0 45px #34c3ef15}
.review-start>span{font-size:9px;letter-spacing:1.5px;color:#6eabc2}.review-start h3{margin:10px 0;font-size:25px;letter-spacing:-.7px;color:#e0f1ff}.review-start>p{font-size:12px;line-height:1.8;color:#90abc5;max-width:390px;margin:0 auto}.review-start-examples{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:28px 0 20px}
.review-start-examples button{display:grid;align-content:start;gap:10px;padding:16px 13px;text-align:left;border:1px solid var(--bg-elevated);border-radius:11px;background:var(--bg-elevated);color:#c2e0f1;font:inherit;cursor:pointer;transition:border-color .2s,background .2s}.review-start-examples button:hover{border-color:#64b5d3;background:var(--bg-elevated)}.review-start-examples b{color:#78d5f1;font-size:22px;font-weight:400}.review-start-examples strong{font-size:11px;line-height:1.5}.review-start-examples small{font-size:10px;color:#81a0bc;line-height:1.7}.review-start-note{font-size:9px;color:#6786a1;line-height:1.7}
.review-studio-v2 .review-selected{margin-top:20px;padding:18px;border-radius:15px;gap:16px;background:var(--bg-elevated);border-color:var(--bg-elevated)}.review-selected-header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.review-selected-header>div{min-width:0}.review-selected-header h3{font-size:16px;line-height:1.6;margin:0 0 7px}.review-selected-header small{font-size:10px;color:#7da5bf}.review-selected-header .btn{flex-shrink:0;font-size:11px;padding:9px 11px}
.review-detail-tabs{display:flex;flex-wrap:wrap;gap:4px;padding-bottom:10px;border-bottom:1px solid var(--bg-elevated)}.review-detail-tabs button{border:1px solid transparent;border-radius:7px;background:transparent;color:#7f9eb8;font:inherit;font-size:11px;padding:8px 10px;cursor:pointer}.review-detail-tabs button[aria-selected=true]{border-color:#38617f;background:var(--bg-elevated);color:#bcefff}
.review-storyboard{display:flex;gap:12px;overflow-x:auto;padding:2px 2px 12px;scroll-snap-type:x proximity}.review-shot{flex:1 0 150px;min-width:0;max-width:210px;display:flex;flex-direction:column;padding:8px;border:1px solid var(--bg-elevated);border-radius:11px;background:var(--bg-elevated);scroll-snap-align:start;overflow:hidden;position:relative}.review-shot>header{display:flex;justify-content:space-between;gap:5px;padding:2px 2px 9px}.review-shot>header b{font-size:9px;color:#97cce4}.review-shot>header span{font-size:9px;color:#668ba8}
.review-shot-preview{display:grid;align-content:center;place-items:center;gap:10px;position:relative;aspect-ratio:9/12;border:0;border-radius:7px;overflow:hidden;width:100%;padding:0;color:#648aa8;background:linear-gradient(145deg,var(--bg-elevated),var(--bg-surface));font:inherit}.review-shot-preview img{width:100%;height:100%;object-fit:cover}.review-shot-preview small{font-size:9px;text-align:center;line-height:1.6}.review-shot-placeholder{font-size:29px;color:#5b97b4}.review-shot>p{font-size:10px;line-height:1.8;color:#acc8dc;margin:10px 3px;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.review-shot>details{font-size:9px;color:#799fb9;margin:0 3px 10px}.review-shot>details>summary{cursor:pointer}.review-shot>details small{display:block;line-height:1.8;margin-top:7px;overflow-wrap:anywhere}.review-shot>footer{display:flex;gap:6px;align-items:center;flex-wrap:wrap;border-top:1px solid var(--bg-elevated);margin-top:auto;padding:8px 2px 0;font-size:9px;color:#70b4cc}.review-shot .btn{font-size:9px;padding:5px 7px}
.review-final-card{flex:0 0 160px;max-width:200px;padding:10px;border:1px solid #8d7440;border-radius:11px;background:linear-gradient(150deg,var(--bg-elevated),var(--bg-elevated));display:flex;flex-direction:column;gap:10px}.review-final-card>header{font-size:9px;font-weight:600;color:#e4c17c;text-align:center}.review-final-placeholder{min-height:220px;flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;text-align:center;padding:18px;border:1px dashed #626453;border-radius:8px;background:var(--bg-elevated)}.review-final-placeholder span{font-size:30px;color:#c3ad72}.review-final-placeholder strong{font-size:15px;color:#e3d3a7}.review-final-placeholder small{font-size:10px;color:#8a9eaa;line-height:1.7}.review-final-card>.btn{font-size:10px;justify-content:center}
.review-prompt-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:12px}.review-prompt-actions>small{flex:1;color:#7fa1bc;line-height:1.7;font-size:10px}.review-prompt-actions .btn{font-size:10px}.review-detail-view>textarea{font:11px/1.9 'JetBrains Mono',monospace;min-height:280px;resize:vertical;user-select:text}
.review-activity-list{display:grid;gap:12px}.review-activity-item{display:flex;align-items:start;gap:12px;padding:13px;background:var(--bg-elevated);border:1px solid var(--bg-elevated);border-radius:10px}.review-activity-item>i{width:7px;height:7px;margin-top:6px;border-radius:50%;background:#77bfd9;flex-shrink:0}.review-activity-item>i.done{background:#45c6a2}.review-activity-item>div{flex:1;min-width:0}.review-activity-item strong{font-size:12px;color:#c0daec}.review-activity-item p{font-size:11px;color:#7fa4bf;line-height:1.8;margin-top:5px;overflow-wrap:anywhere}.review-activity-item>span{font-size:11px;color:#86c9df}
.review-studio-v2 [hidden]{display:none!important}.review-script-dialog{position:fixed;inset:0;margin:auto;width:min(1050px,calc(100vw - 32px));max-height:88dvh;overflow:auto;padding:20px;border:1px solid #3b627f;border-radius:16px;background:var(--bg-elevated);color:#dceeff;box-shadow:0 25px 100px #000a}.review-script-dialog::backdrop{background:var(--bg-surface);backdrop-filter:blur(6px)}.review-script-dialog>header{display:flex;justify-content:space-between;gap:15px;align-items:center}.review-script-dialog>header small{font-size:9px;letter-spacing:1.2px;color:#68b4d1}.review-script-dialog h2{font-size:18px;margin:7px 0}.review-script-dialog #story-details{margin-top:15px;padding:0;border:0}.review-script-dialog #story-details>summary{display:none}
.review-shot.is-active{border-color:#62ceef;box-shadow:0 0 20px #3fc7ef19}.review-shot.is-active:before{content:'';position:absolute;inset:0;padding:2px;border-radius:inherit;pointer-events:none;background:conic-gradient(from var(--review-angle),transparent,#76e1ff,transparent 40%);-webkit-mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);-webkit-mask-composite:xor;mask-composite:exclude;animation:reviewOrbit 2.5s linear infinite}
@container auto-story (max-width:1000px){.review-studio-v2 .story-layout{grid-template-columns:minmax(300px,340px) minmax(0,1fr);gap:16px}.review-start-examples{grid-template-columns:1fr}.review-start-examples button{grid-template-columns:25px 1fr;gap:7px 12px}.review-start-examples b{grid-row:1/3}.review-start-examples small{grid-column:2}.review-start{padding:30px 18px}.review-start h3{font-size:22px}.review-output-nav{flex-wrap:wrap}}
@container auto-story (max-width:800px){.review-studio-v2 .story-layout{grid-template-columns:minmax(0,1fr)}.review-studio-v2 .story-pane{max-height:none;position:static}.review-start-examples{grid-template-columns:repeat(3,minmax(0,1fr))}.review-start-examples button{display:grid;grid-template-columns:1fr}.review-start-examples b,.review-start-examples small{grid-row:auto;grid-column:auto}}
@media(max-width:800px){.review-studio-v2 .story-layout{grid-template-columns:minmax(0,1fr)}.review-studio-v2 .story-page-header{align-items:flex-start;flex-direction:column;gap:14px}.review-studio-v2 .story-pane{max-height:none!important}.review-page-status{max-width:none}.review-studio-v2 .review-ideas-header h2{font-size:18px}}
@media(max-width:480px){.review-studio-v2 .story-pane{padding:15px}.review-studio-v2 .story-page-header h1{font-size:24px}.review-output-nav>[role=tablist]{width:100%}.review-output-nav button[role=tab]{flex:1;font-size:10px;padding:9px 7px}.review-start-examples{grid-template-columns:1fr}.review-start-examples button{display:grid;grid-template-columns:25px 1fr;gap:7px 12px}.review-start-examples b{grid-row:1/3}.review-start-examples small{grid-column:2}.review-start h3{font-size:22px}.review-studio-v2 .review-concept-cards{grid-template-columns:minmax(0,1fr)}.review-selected-header{flex-direction:column}.review-selected-header>.btn{width:100%;justify-content:center}.review-studio-v2 .review-selected{padding:13px}.review-storyboard{display:grid;grid-template-columns:minmax(0,1fr)}.review-shot,.review-final-card{max-width:none}.review-shot-preview{max-height:300px;aspect-ratio:4/3}.review-ideas-header select{flex:1;max-width:100%!important;width:100px}.review-ideas-header>.btn{width:100%;margin-left:0;justify-content:center}.review-final-placeholder{min-height:140px}}
@media(prefers-reduced-motion:reduce){.review-shot.is-active:before{animation:none;background:#62ceef}}
.review-shot-preview{aspect-ratio:var(--review-ratio,9/16)}.review-shot-preview img{object-fit:contain}
.review-character-quick{border:1px solid var(--bg-elevated);border-radius:10px;padding:12px;display:grid;gap:9px;background:var(--bg-elevated);min-width:0}
.review-optional-title{display:flex;justify-content:space-between;gap:10px;font-size:11px;color:#bfd8ea}.review-optional-title small{color:#7a9bb5;font-size:10px}
.review-character-upload{display:block;text-align:center;padding:9px;border:1px dashed var(--bg-elevated);border-radius:7px;cursor:pointer;color:#8ed4ed;font-size:11px}.review-character-upload:hover{background:var(--bg-elevated)}
.review-quick-photos{display:flex;gap:8px;flex-wrap:wrap}.review-quick-photos:empty{display:none}.review-quick-photos figure{position:relative;width:64px;margin:0}.review-character-preview{width:64px;height:72px;border:0;border-radius:7px;padding:0;background:var(--bg-surface);overflow:hidden;cursor:zoom-in}.review-character-preview img{width:100%;height:100%;object-fit:contain}.review-remove-photo{position:absolute;top:-5px;right:-5px;width:20px;height:20px;border:1px solid #835765;border-radius:50%;background:#512433;color:white;cursor:pointer}
.review-studio-v2 #story-assets [data-story-role=character]{display:none}.review-character-quick .story-character-browser{margin:0}.review-character-quick .story-character-selection:empty{display:none}
.review-preset-summary{border-left:2px solid #58cce5;padding:9px 11px;background:var(--bg-elevated);border-radius:0 7px 7px 0;color:#a0c8dc;font-size:11px;line-height:1.7}
.review-studio-v2 .story-genre-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.review-studio-v2 .story-genre-tabs button{font-size:11px}
.review-auto-toggle{display:flex!important;align-items:flex-start;gap:10px;padding:12px;background:var(--bg-elevated);border-radius:8px;color:#bce1ed}.review-auto-toggle input{width:16px!important;height:16px;flex:0 0 16px;accent-color:#66d4ed}.review-auto-toggle span{display:grid;gap:5px;font-size:12px}.review-auto-toggle small,.review-variants-label small{color:#7c9fb9;font-size:10px;line-height:1.6;font-weight:400}
.review-workflow-label select,.review-basic-cta select{font-size:12px}.review-studio-v2 [hidden]{display:none!important}
@media(max-width:480px){.review-shot-preview{aspect-ratio:4/3}}

/* Compact Muse layout: one content style, with camera and setting on the basic form. */
.review-studio-compact .story-page-header{padding:0 0 12px;margin-bottom:14px;gap:12px;border-color:var(--border)}
.review-studio-compact .story-page-header h1{font-size:21px;letter-spacing:-.4px;margin:5px 0;line-height:1.4}
.review-studio-compact .story-page-header p{font-size:11px;line-height:1.6}.review-studio-compact .review-page-status{padding:7px 11px;border-radius:8px;background:var(--bg-elevated);font-size:10px}
.review-studio-compact .story-layout{grid-template-columns:minmax(310px,350px) minmax(0,1fr);gap:14px}
.review-studio-compact .story-pane{padding:14px;gap:12px;border-radius:10px;background:var(--bg-card);box-shadow:none}
.review-studio-compact .story-pane .card-header{padding-bottom:10px;margin:0;gap:8px}.review-studio-compact .story-pane .card-header h2{font-size:15px;margin:4px 0}
.review-studio-compact .review-main{gap:12px}.review-studio-compact .review-form-section-title{font-size:11px;margin-bottom:0}.review-studio-compact .review-form-section-title b{width:22px;height:22px;border-radius:6px;background:var(--bg-elevated);border-color:var(--bg-elevated);color:#e1c58a}
.review-studio-compact .review-form-section-title small{display:none}.review-studio-compact .review-drop{padding:11px;border-radius:8px;background:var(--bg-elevated);border-color:var(--bg-elevated)}.review-studio-compact .review-upload-symbol{width:27px;height:27px;font-size:18px;margin-bottom:0}
.review-studio-compact .review-drop>label{gap:3px}.review-studio-compact #review-product-fields{gap:6px}.review-studio-compact #review-product-fields label{margin-top:0;font-size:11px}
.review-studio-compact #review-product-fields input,.review-studio-compact #review-product-fields textarea{padding:8px 10px;border-radius:7px;font-size:12px;line-height:1.7;background:var(--bg-surface)}
.review-studio-compact #story-benefits{min-height:76px}.review-studio-compact .review-character-quick{padding:9px;background:var(--bg-elevated);border-radius:8px;gap:7px}
.review-studio-compact .review-character-upload{padding:6px;font-size:10px}.review-studio-compact .review-video-controls{gap:9px}.review-style-field{display:grid;gap:6px;min-width:0}.review-style-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:7px;align-items:center}
.review-style-row select{font-weight:600;min-height:39px;border-color:#886b2c!important;color:#ffe1a0!important;background:var(--bg-surface)!important}.review-style-row .btn{height:39px;padding:7px 10px;font-size:10px;white-space:nowrap}
.review-studio-compact .review-style-description{font-size:10px;line-height:1.7;margin:0;color:#91a6c1}.review-hook-preview{font-size:11px;line-height:1.7;color:#c2cfdf;padding:9px 10px;background:var(--bg-surface);border:1px solid var(--bg-elevated);border-radius:7px;margin:0;overflow-wrap:anywhere}
.review-studio-compact .review-preset-summary{font-size:10px;line-height:1.7;background:var(--bg-elevated);color:#a5c6ce;padding:7px 9px;margin:0;border-color:#479fa9}
.review-studio-compact .review-stepper{gap:5px}.review-studio-compact .review-stepper input{width:46px!important}.review-studio-compact .review-stepper>button{min-width:30px;padding:0}
.review-studio-compact .review-form-two{gap:10px;margin:0}.review-studio-compact .review-duration{font-size:10px;margin-top:5px}.review-studio-compact .review-variants-label{grid-column:1/-1}
.review-studio-compact .review-advanced{padding:10px;background:var(--bg-surface);border-radius:8px}.review-studio-compact .review-advanced>summary{font-size:11px}.review-studio-compact .review-primary-actions{padding-top:10px;background:linear-gradient(0deg,var(--bg-card) 88%,transparent)}
.review-studio-compact .review-primary-actions>.btn{padding:11px;font-size:12px}.review-studio-compact .review-output-nav{gap:8px;padding-bottom:10px}.review-studio-compact .review-output-nav button[role=tab]{font-size:11px;padding:9px 12px}
.review-studio-compact .review-output-nav button[aria-selected=true]{background:var(--bg-elevated);border-color:#8e702c;color:#ffdb82}.review-studio-compact .review-start{padding:25px 16px;border-radius:10px;background:var(--bg-elevated)}.review-studio-compact .review-start h3{font-size:20px}.review-studio-compact .review-ideas-header h2{font-size:17px}.review-studio-compact .review-concept,.review-studio-compact .review-selected{border-radius:9px;padding:14px;box-shadow:none}
@container auto-story (max-width:800px){.review-studio-compact .story-layout{grid-template-columns:minmax(0,1fr)}.review-studio-compact .story-layout>.story-pane{position:static;max-height:none;overflow:visible}}
@media(max-width:800px){.review-studio-compact .story-layout{grid-template-columns:minmax(0,1fr)}}
@media(max-width:480px){.review-studio-compact .story-page-header h1{font-size:19px}.review-studio-compact .story-pane{padding:12px}.review-style-row{grid-template-columns:minmax(0,1fr) auto}.review-style-row select{font-size:11px}.review-studio-compact .review-form-two{grid-template-columns:minmax(0,1fr)}.review-studio-compact .review-page-status{width:100%;max-width:none}}
.review-camera-label{margin:10px 0 7px}.story-pane #review-camera-mode{min-height:39px;border-color:#39728a;background:var(--bg-elevated);color:#b5e9f7;font-size:12px}
.review-camera-basic{display:grid;gap:6px;min-width:0}.review-camera-basic .review-camera-label{display:grid;gap:6px;margin:0}.review-camera-basic #review-camera-mode{width:100%;min-width:0}.review-camera-basic .review-camera-description{margin:0;padding:7px 9px;font-size:10px}
.review-camera-description{font-size:11px;line-height:1.8;padding:10px;border:1px solid var(--bg-elevated);border-left:2px solid #5fcbe9;border-radius:6px;color:#a6c6dd;background:var(--bg-elevated);margin:7px 0 10px;overflow-wrap:anywhere}
.review-subject-options{padding-top:8px;border-top:1px solid var(--bg-elevated);font-size:10px;color:#91a9c2}.review-subject-options>summary{cursor:pointer;margin-bottom:9px}.review-subject-options .story-genre-tabs{margin:0}
.review-style-note{display:block;font-size:10px;line-height:1.8;color:#91b7cb;margin:0}
.review-primary-actions #story-enqueue{width:100%;justify-content:center;font-size:11px;padding:10px}
.review-style-card:not(button){cursor:default}.review-styles-dialog [hidden],#review-legacy-controls{display:none!important}
.review-simple-steps{display:grid;gap:12px;padding-left:24px;margin:20px 0 0;color:#b7cedf;font-size:12px;line-height:1.8;text-align:left}.review-simple-steps li::marker{color:#efbf5c;font-weight:700}
.review-studio-compact .review-primary-actions{grid-template-columns:minmax(105px,1fr) minmax(0,1.8fr);align-items:stretch;gap:8px}
.review-primary-actions #review-create{font-size:11px;padding:10px 8px}.review-primary-actions>#review-stop,.review-primary-actions>small{grid-column:1/-1}

/* Review setup: wider panel, independently scrolling fields, unobstructed actions. */
.production-variation{font-size:10px;line-height:1.7;color:#8fd3df;margin:7px 0;overflow-wrap:anywhere}
.review-studio-polished .story-layout{grid-template-columns:clamp(430px,36%,520px) minmax(0,1fr);gap:20px}
.review-studio-polished #studio-story-pane{position:sticky;top:0;max-height:calc(100dvh - 190px);overflow:hidden;scrollbar-gutter:auto;padding:0;gap:0;border:1px solid var(--bg-elevated);border-radius:16px;background:linear-gradient(155deg,var(--bg-elevated),var(--bg-elevated));box-shadow:0 12px 36px var(--bg-surface)}
.review-studio-polished #studio-story-pane>.card-header{padding:18px 20px 16px;margin:0;border-bottom:1px solid var(--bg-elevated);background:var(--bg-elevated);align-items:center}
.review-studio-polished #studio-story-pane .card-header h2{font-size:19px;letter-spacing:-.4px;margin:3px 0 0}.review-studio-polished #studio-story-pane .card-header .btn{font-size:11px;padding:8px 10px;border-radius:8px}.review-studio-polished .story-eyebrow{font-size:10px;letter-spacing:1.2px}
.review-config-scroll{flex:1 1 auto;min-height:0;overflow-y:auto;overflow-x:hidden;padding:16px;scrollbar-gutter:stable;scrollbar-width:thin;scrollbar-color:var(--bg-elevated) transparent;overscroll-behavior:contain;scroll-padding:16px}
.review-config-scroll:focus-visible{outline:2px solid #55cde3;outline-offset:-3px}.review-studio-polished .review-main{gap:14px}
.review-product-section,.review-studio-polished .review-video-controls{display:grid;gap:12px;padding:15px;min-width:0;margin:0;border:1px solid var(--bg-elevated);border-radius:12px;background:var(--bg-elevated);animation:reviewSetupEnter .32s ease both}.review-studio-polished .review-video-controls{animation-delay:.05s}
.review-studio-polished .review-form-section-title{font-size:13px;margin-bottom:2px}.review-studio-polished .review-form-section-title b{width:25px;height:25px;border-radius:8px;background:var(--bg-elevated);border-color:var(--bg-elevated);color:#97e3ee}
.review-studio-polished #review-drop{display:flex;align-items:center;gap:12px;padding:12px;border:1px dashed var(--bg-elevated);border-radius:10px;background:linear-gradient(120deg,var(--bg-elevated),var(--bg-elevated));min-width:0;transition:border-color .2s,background .2s,box-shadow .2s}
.review-studio-polished #review-drop:hover,.review-studio-polished #review-drop:focus-within,.review-studio-polished #review-drop.drag-over{border-color:#72d4e7;box-shadow:0 0 0 3px #52cce911;background:var(--bg-elevated)}
.review-studio-polished #review-drop>label{flex:1;min-width:0;display:grid;grid-template-columns:30px minmax(0,1fr);gap:2px 9px;align-items:center;text-align:left}.review-studio-polished .review-upload-symbol{grid-row:1/3;width:29px;height:32px;margin:0;font-size:19px;border-radius:8px}.review-studio-polished #review-drop strong{font-size:12px;line-height:1.6}.review-studio-polished #review-drop small{font-size:10px;line-height:1.6}
.review-studio-polished #review-product-photos{flex:0 1 90px;max-height:140px;overflow:auto;gap:6px}.review-studio-polished #review-product-photos figure{flex:0 0 38px;width:38px;height:50px;margin:3px 2px}.review-studio-polished #review-product-photos img{border:1px solid var(--bg-elevated);border-radius:6px}
.review-studio-polished #review-product-fields{gap:7px}.review-studio-polished #review-product-fields label{font-size:12px;margin:0;color:#b9cde0}.review-studio-polished #review-product-fields input,.review-studio-polished #review-product-fields textarea{padding:10px 11px;font-size:13px;line-height:1.65;border-radius:8px}.review-studio-polished #story-benefits{min-height:90px}
.review-product-prices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;min-width:0;margin-top:4px}.review-product-hint{font-size:10px;line-height:1.7;color:#8aa7be;overflow-wrap:anywhere}.review-studio-polished #review-product-fields>label:has(#story-store){margin-top:6px}.review-product-prices input{font-variant-numeric:tabular-nums}.review-product-prices label{min-width:0}
@media(max-width:480px){.review-product-prices{grid-template-columns:minmax(0,1fr)}}
.review-studio-polished .review-character-quick{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px;padding:10px;border-radius:10px;background:var(--bg-elevated);border-color:var(--bg-elevated)}.review-studio-polished .review-optional-title,.review-studio-polished #review-character-photos,.review-studio-polished #story-character-selection{grid-column:1/-1}.review-studio-polished .review-character-upload{margin:0;display:flex;align-items:center;justify-content:center;min-height:38px;padding:7px;font-size:11px;border-radius:8px;cursor:pointer}.review-studio-polished .story-character-browser summary{padding:9px 8px;font-size:11px;min-height:38px;box-sizing:border-box}.review-studio-polished .story-character-browser summary small{display:none}
.review-studio-polished .review-style-note{font-size:11px;line-height:1.6;color:#88a4bb}.review-studio-polished .review-style-field label,.review-studio-polished .review-camera-label,.review-studio-polished .review-location-basic>label,.review-studio-polished .review-workflow-label,.review-studio-polished .review-basic-cta{font-size:12px;color:#b9cde0}.review-studio-polished .review-style-row select,.review-studio-polished #review-camera-mode,.review-studio-polished #story-location-preset{min-height:43px;font-size:12px;padding:10px;border-radius:9px}
.review-studio-polished .review-style-row select{border-color:#94773a!important;background:var(--bg-elevated)!important}.review-studio-polished .review-style-row .btn{height:43px;font-size:11px;border-radius:9px}.review-studio-polished #review-camera-mode{border-color:#3a657e;background:var(--bg-elevated)}.review-studio-polished #story-location-preset{border-color:#3a657e;background:var(--bg-elevated);color:#c7e6f2}
.review-style-help,.review-location-more{font-size:11px;color:#8db8cc;min-width:0}.review-style-help>summary,.review-location-more>summary{cursor:pointer;line-height:1.6;list-style:none;display:flex;align-items:center;gap:7px}.review-style-help>summary::-webkit-details-marker,.review-location-more>summary::-webkit-details-marker{display:none}.review-style-help>summary:before,.review-location-more>summary:before{content:'+';color:#70d4e4;font-size:15px;transition:transform .2s}.review-style-help[open]>summary:before,.review-location-more[open]>summary:before{transform:rotate(45deg)}.review-style-help[open]>*:not(summary),.review-location-more[open]>*:not(summary),.review-studio-polished .review-settings-group[open]>*:not(summary){animation:reviewSetupEnter .2s ease both}.review-style-help .review-hook-preview{margin-top:9px}.review-style-help .review-style-description{margin-top:8px}
.review-location-basic{display:grid;gap:9px;padding-top:2px;min-width:0}.review-location-more[open]>label{margin-top:10px}.review-studio-polished .review-location-upload{display:flex;align-items:center;justify-content:center;min-height:38px;padding:8px;border:1px dashed #41647e;border-radius:8px;color:#a9d6e8;background:var(--bg-elevated);cursor:pointer}.review-studio-polished #review-location-photos figure{width:62px;height:56px}.review-studio-polished #review-location-photos img{width:100%;height:100%;object-fit:cover;border:1px solid var(--bg-elevated);border-radius:7px}
.review-studio-polished #story-assets [data-story-role=location]{display:none}.review-studio-polished #story-assets{display:none}.review-studio-polished .review-camera-description{font-size:11px;padding:8px 10px;line-height:1.7;background:var(--bg-elevated);border-color:var(--bg-elevated);color:#92b9cf}
.review-studio-polished .review-preset-summary{font-size:11px;line-height:1.6;padding:9px 10px}.review-studio-polished .review-form-two{gap:12px}.review-studio-polished .review-advanced{margin-top:14px;padding:12px;border-radius:11px;background:var(--bg-elevated);animation:reviewSetupEnter .32s .09s ease both}.review-studio-polished .review-advanced>summary{font-size:12px;color:#b1c8dd}
.review-studio-polished #studio-story-pane>.review-primary-actions{position:static;flex:0 0 auto;grid-template-columns:minmax(0,1fr) minmax(0,1.35fr);padding:12px 16px 14px;margin:0;border-top:1px solid var(--bg-elevated);background:var(--bg-elevated);gap:9px;z-index:auto}.review-studio-polished #story-enqueue,.review-studio-polished #review-create{min-height:44px;padding:9px;font-size:12px;line-height:1.5;white-space:normal;transition:transform .16s ease,box-shadow .18s ease,background .18s ease}.review-studio-polished #story-enqueue{border-color:var(--bg-elevated);background:var(--bg-elevated);color:#bee2f1;box-shadow:none}.review-studio-polished #review-create{background:linear-gradient(115deg,#218eaa,#3872bb);border-color:#60c3df}.review-studio-polished #story-enqueue:hover:not(:disabled),.review-studio-polished #review-create:hover:not(:disabled){transform:translateY(-1px);box-shadow:0 5px 16px #35b5df25}.review-studio-polished #story-enqueue:active:not(:disabled),.review-studio-polished #review-create:active:not(:disabled){transform:translateY(0)}
.review-studio-polished .review-runtime-status{grid-column:1/-1;border-top:0;padding-top:0;font-size:10px;line-height:1.6}.review-studio-polished .review-runtime-status>span{min-width:0;overflow-wrap:anywhere}.review-studio-polished #studio-story-pane input:focus-visible,.review-studio-polished #studio-story-pane select:focus-visible,.review-studio-polished #studio-story-pane textarea:focus-visible,.review-studio-polished #studio-story-pane button:focus-visible,.review-studio-polished #studio-story-pane summary:focus-visible{outline:2px solid #63d6ed;outline-offset:2px}
@keyframes reviewSetupEnter{from{opacity:0;transform:translateY(7px)}to{opacity:1;transform:translateY(0)}}
@container auto-story (max-width:1000px){.review-studio-polished .story-layout{grid-template-columns:minmax(0,1fr)}.review-studio-polished #studio-story-pane{position:static;max-height:none;overflow:visible}.review-studio-polished .review-config-scroll{overflow:visible;flex:none;scrollbar-gutter:auto}.review-studio-polished .review-main{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}.review-studio-polished .review-product-section{position:sticky;top:0}}
@container auto-story (max-width:820px){.review-studio-polished .review-main{grid-template-columns:minmax(0,1fr)}.review-studio-polished .review-product-section{position:static}}
@media(max-width:800px){.review-studio-polished .story-layout{grid-template-columns:minmax(0,1fr)}.review-studio-polished #studio-story-pane{position:static;max-height:none;overflow:visible}.review-studio-polished .review-config-scroll{overflow:visible;flex:none;scrollbar-gutter:auto}}
@media(max-width:480px){.review-studio-polished #studio-story-pane>.card-header{padding:14px}.review-studio-polished .review-config-scroll{padding:10px}.review-studio-polished .review-product-section,.review-studio-polished .review-video-controls{padding:12px}.review-studio-polished .review-character-quick{grid-template-columns:minmax(0,1fr)}.review-studio-polished #studio-story-pane>.review-primary-actions{padding:12px}.review-studio-polished #review-drop{gap:8px}.review-studio-polished #review-drop>label{grid-template-columns:minmax(0,1fr)}.review-studio-polished .review-upload-symbol{display:none}}
@media(prefers-reduced-motion:reduce){.review-studio-polished #studio-story-pane,.review-studio-polished #studio-story-pane *{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* ── 8. Review Studio Full 2-Column Workspace & Smooth Animations ───────── */
.muse-review-studio-wrapper {
    --bg-darkest: var(--bg-surface);
    --bg-deep: var(--bg-surface);
    --bg-card: var(--bg-elevated);
    --bg-card-hover: var(--bg-elevated);
    --border: rgba(148, 163, 184, 0.18);
    --border-light: rgba(249, 115, 22, 0.34);
    --gold: #F97316;
    --gold-hover: #fbbf24;
    --gold-glow: rgba(249, 115, 22, 0.25);
    --orange: #F97316;
    --orange-hover: #fbbf24;
    --red: #f43f5e;
    --red-hover: #fb7185;
    --navy-accent: #10b981;
    --navy-light: #fbbf24;
    --text-main: var(--text-primary);
    --text-muted: var(--text-secondary);
    --text-dim: var(--text-muted);
    padding: 14px 20px 28px !important;
    max-width: 1760px !important;
    margin: 0 auto !important;
    display: flex;
    flex-direction: column;
    gap: 14px;
    animation: museFadeSlideUp 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes museFadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.muse-review-top-shell {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: var(--bg-surface);
    border: 1px solid rgba(249, 115, 22, 0.22);
    border-radius: 14px;
    padding: 11px 15px;
    box-shadow: 0 12px 30px var(--bg-surface), 0 1px 0 rgba(255, 255, 255, 0.04) inset;
}

.muse-review-project-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

.muse-review-project-left {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 10px;
    min-width: 0;
}

.muse-review-project-label {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #fbbf24;
    padding: 5px 10px;
    border-radius: 7px;
    background: rgba(249, 115, 22, 0.12);
    border: 1px solid rgba(249, 115, 22, 0.28);
    white-space: nowrap;
    flex-shrink: 0;
}

.muse-review-project-select {
    width: 220px !important;
    min-width: 160px !important;
    max-width: 280px !important;
    flex: 0 1 220px !important;
    height: 36px !important;
    padding: 0 12px !important;
    border-radius: 9px !important;
    background: var(--bg-surface) !important;
    border: 1px solid rgba(148, 163, 184, 0.26) !important;
    color: #f8fafc !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    outline: none;
    cursor: pointer;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.muse-review-project-select:focus {
    border-color: rgba(249, 115, 22, 0.6) !important;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.15) !important;
}

.muse-review-create-proj-btn {
    height: 36px !important;
    padding: 0 14px !important;
    border-radius: 9px !important;
    font-size: 12.5px !important;
    font-weight: 700 !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
}

/* Folder Pill Button (no white background!) */
.muse-review-folder-pill {
    appearance: none;
    -webkit-appearance: none;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    height: 36px !important;
    max-width: min(620px, 100%);
    padding: 0 13px !important;
    border-radius: 9px !important;
    background: var(--bg-surface) !important;
    border: 1px solid rgba(148, 163, 184, 0.22) !important;
    color: #cbd5e1 !important;
    font-size: 12px !important;
    font-family: inherit !important;
    cursor: pointer;
    transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

.muse-review-folder-pill:hover {
    border-color: rgba(249, 115, 22, 0.5) !important;
    background: rgba(249, 115, 22, 0.08) !important;
    color: #f8fafc !important;
    transform: translateY(-1px);
}

.muse-review-folder-pill .muse-folder-label {
    color: #94a3b8;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}

.muse-review-folder-pill strong {
    color: #e2e8f0;
    font-weight: 600;
    font-family: 'JetBrains Mono', Consolas, monospace;
    font-size: 11.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.muse-review-folder-pill small,
.muse-review-folder-pill .muse-folder-open-tag {
    padding: 2px 7px;
    border-radius: 5px;
    background: rgba(249, 115, 22, 0.16);
    border: 1px solid rgba(249, 115, 22, 0.35);
    color: #fbbf24;
    font-size: 10.5px;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Action Bar Row */
.muse-review-action-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}

.muse-review-action-right {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.muse-review-run-btn,
.muse-review-run-pill {
    flex: 1 1 320px;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    min-height: 40px !important;
    padding: 0 18px !important;
    border-radius: 10px !important;
    border: 1px solid rgba(251, 191, 36, 0.52) !important;
    background: linear-gradient(135deg, #F97316 0%, #d97706 100%) !important;
    color: var(--bg-canvas) !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    cursor: pointer;
    box-shadow: 0 8px 22px rgba(249, 115, 22, 0.24) !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.muse-review-run-btn:hover,
.muse-review-run-pill:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 26px rgba(249, 115, 22, 0.34) !important;
    filter: brightness(1.04);
}

.muse-review-run-btn.is-running,
.muse-review-run-pill.is-running {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    border-color: rgba(52, 211, 153, 0.65) !important;
    color: var(--bg-elevated) !important;
    box-shadow: 0 0 24px rgba(16, 185, 129, 0.38) !important;
}

.muse-review-stop-btn,
.muse-review-stop-pill {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    min-height: 40px !important;
    padding: 0 15px !important;
    border-radius: 10px !important;
    border: 1px solid rgba(244, 63, 94, 0.38) !important;
    background: rgba(244, 63, 94, 0.14) !important;
    color: #fda4af !important;
    font-size: 12.5px !important;
    font-weight: 700 !important;
    cursor: pointer;
    transition: all 0.18s ease !important;
}

.muse-review-stop-btn:hover:not(:disabled),
.muse-review-stop-pill:hover:not(:disabled) {
    background: rgba(244, 63, 94, 0.24) !important;
    border-color: rgba(244, 63, 94, 0.6) !important;
    transform: translateY(-1px);
}

.muse-review-nav-btn,
.muse-review-action-pill,
.muse-review-account-pill {
    display: inline-flex !important;
    align-items: center !important;
    gap: 7px !important;
    min-height: 40px !important;
    padding: 0 13px !important;
    border-radius: 10px !important;
    background: var(--bg-surface) !important;
    border: 1px solid rgba(148, 163, 184, 0.22) !important;
    color: #e2e8f0 !important;
    font-size: 12.5px !important;
    font-weight: 600 !important;
    cursor: pointer;
    transition: all 0.18s ease !important;
}

.muse-review-nav-btn:hover,
.muse-review-action-pill:hover,
.muse-review-account-pill:hover {
    border-color: rgba(249, 115, 22, 0.45) !important;
    color: #fbbf24 !important;
    background: rgba(249, 115, 22, 0.08) !important;
    transform: translateY(-1px);
}

.muse-badge-inline {
    display: inline-grid;
    place-items: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: rgba(249, 115, 22, 0.18);
    border: 1px solid rgba(249, 115, 22, 0.35);
    color: #fbbf24;
    font-size: 11px;
    font-weight: 800;
}

/* Step Pills Bar inside #studio-story-pane (fixes raw white buttons!) */
.muse-review-step-pills {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 6px !important;
    padding: 10px 14px !important;
    background: var(--bg-surface) !important;
    border-bottom: 1px solid rgba(148, 163, 184, 0.14) !important;
    flex-shrink: 0;
}

.muse-review-step-pills > button,
.muse-review-step-pill {
    appearance: none;
    -webkit-appearance: none;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    min-height: 34px !important;
    padding: 5px 8px !important;
    border-radius: 8px !important;
    background: var(--bg-surface) !important;
    border: 1px solid rgba(148, 163, 184, 0.2) !important;
    color: #cbd5e1 !important;
    font-size: 11.2px !important;
    font-weight: 600 !important;
    font-family: inherit !important;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.muse-review-step-pills > button b,
.muse-review-step-pill b {
    display: inline-grid;
    place-items: center;
    width: 19px;
    height: 19px;
    border-radius: 5px;
    background: rgba(249, 115, 22, 0.16);
    color: #fbbf24;
    font-size: 10px;
    font-weight: 800;
    flex-shrink: 0;
}

.muse-review-step-pills > button:hover,
.muse-review-step-pill:hover,
.muse-review-step-pills > button.active,
.muse-review-step-pill.active {
    background: rgba(249, 115, 22, 0.15) !important;
    border-color: rgba(249, 115, 22, 0.5) !important;
    color: #fef3c7 !important;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.12) !important;
}

/* 2-Column Split Layout: .story-workspace holds header + .story-layout */
.muse-review-studio-wrapper .story-workspace.review-studio-v2 {
    display: block !important;
    width: 100% !important;
    max-width: 1760px !important;
    margin: 0 auto !important;
}

.muse-review-studio-wrapper .story-page-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 4px 2px 14px !important;
    margin-bottom: 16px !important;
    border-bottom: 1px solid rgba(148, 163, 184, 0.14) !important;
}

.muse-review-studio-wrapper .story-layout {
    display: grid !important;
    grid-template-columns: clamp(410px, 34%, 470px) minmax(0, 1fr) !important;
    gap: 20px !important;
    align-items: start !important;
}

@media (max-width: 1120px) {
    .muse-review-studio-wrapper .story-layout {
        grid-template-columns: 1fr !important;
    }
}

/* Left Column: Single clean scroll inside .review-config-scroll, no double scrollbars */
.muse-review-studio-wrapper #studio-story-pane {
    position: sticky !important;
    top: 10px !important;
    display: flex !important;
    flex-direction: column !important;
    padding: 0 !important;
    gap: 0 !important;
    max-height: calc(100dvh - 145px) !important;
    overflow: hidden !important;
    background: var(--bg-surface) !important;
    border: 1px solid rgba(249, 115, 22, 0.22) !important;
    border-radius: 16px !important;
    box-shadow: 0 18px 42px var(--bg-surface) !important;
}

.muse-review-studio-wrapper #studio-story-pane > .card-header {
    padding: 14px 16px !important;
    margin: 0 !important;
    border-bottom: 1px solid rgba(148, 163, 184, 0.14) !important;
    background: var(--bg-surface) !important;
    flex-shrink: 0;
}

.muse-review-studio-wrapper .review-config-scroll {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    padding: 14px 16px !important;
}

/* Product & Character Thumbnails inside Left Column */
.muse-review-studio-wrapper #review-product-photos figure,
.muse-review-studio-wrapper .review-quick-photos figure {
    position: relative !important;
    width: 56px !important;
    height: 68px !important;
    margin: 2px !important;
    border-radius: 8px !important;
    background: var(--bg-surface) !important;
    border: 1px solid rgba(249, 115, 22, 0.3) !important;
    overflow: visible !important;
}

.muse-review-studio-wrapper .review-character-preview,
.muse-review-studio-wrapper #review-product-photos img,
.muse-review-studio-wrapper .review-quick-photos img {
    width: 100% !important;
    height: 100% !important;
    border-radius: 7px !important;
    object-fit: cover !important;
    background: var(--bg-surface) !important;
}

.muse-review-studio-wrapper #review-product-photos button,
.muse-review-studio-wrapper .review-remove-photo {
    position: absolute !important;
    top: -6px !important;
    right: -6px !important;
    width: 19px !important;
    height: 19px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    border: 1px solid rgba(251, 113, 133, 0.6) !important;
    background: #881337 !important;
    color: #ffe4e6 !important;
    font-size: 11px !important;
    line-height: 1 !important;
    display: grid !important;
    place-items: center !important;
    cursor: pointer;
    z-index: 2;
    box-shadow: 0 2px 6px var(--bg-surface);
}

/* Bottom Sticky Action Buttons in Left Column */
.muse-review-studio-wrapper #studio-story-pane > .review-primary-actions {
    flex: 0 0 auto !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) !important;
    gap: 10px !important;
    padding: 12px 16px 14px !important;
    border-top: 1px solid rgba(148, 163, 184, 0.16) !important;
    background: var(--bg-surface) !important;
}

.muse-review-studio-wrapper #story-enqueue {
    background: rgba(249, 115, 22, 0.12) !important;
    border: 1px solid rgba(249, 115, 22, 0.42) !important;
    color: #fbbf24 !important;
    font-weight: 700 !important;
    border-radius: 10px !important;
    min-height: 42px !important;
    box-shadow: none !important;
}

.muse-review-studio-wrapper #story-enqueue:hover:not(:disabled) {
    background: rgba(249, 115, 22, 0.2) !important;
    border-color: rgba(249, 115, 22, 0.65) !important;
    color: #fef3c7 !important;
    transform: translateY(-1px);
}

.muse-review-studio-wrapper #review-create {
    background: linear-gradient(135deg, #F97316 0%, #d97706 100%) !important;
    border: 1px solid rgba(251, 191, 36, 0.55) !important;
    color: var(--bg-canvas) !important;
    font-weight: 800 !important;
    border-radius: 10px !important;
    min-height: 42px !important;
    box-shadow: 0 8px 20px rgba(249, 115, 22, 0.24) !important;
}

.muse-review-studio-wrapper #review-create:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 12px 26px rgba(249, 115, 22, 0.35) !important;
    filter: brightness(1.05);
}

.muse-review-studio-wrapper #review-create.is-running {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    border-color: rgba(52, 211, 153, 0.65) !important;
    color: var(--bg-elevated) !important;
}

/* Right Column: Clean Storyboard Output Panel */
.muse-review-studio-wrapper .story-output-panel {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    max-height: none !important;
    overflow: visible !important;
    min-width: 0 !important;
}

.muse-review-studio-wrapper .production-card {
    background: var(--bg-surface) !important;
    border: 1px solid rgba(148, 163, 184, 0.2) !important;
    border-radius: 16px !important;
    padding: 18px !important;
    margin-bottom: 16px !important;
    box-shadow: 0 14px 34px var(--bg-surface) !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}

.muse-review-studio-wrapper .production-card:hover {
    border-color: rgba(249, 115, 22, 0.35) !important;
}

.muse-review-studio-wrapper .production-scenes {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(125px, 1fr)) !important;
    gap: 10px !important;
    align-items: stretch !important;
}

.muse-review-studio-wrapper .production-scene,
.muse-review-studio-wrapper .production-final {
    max-width: none !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    padding: 8px !important;
    border-radius: 11px !important;
    background: var(--bg-surface) !important;
    border: 1px solid rgba(148, 163, 184, 0.16) !important;
}

.muse-review-studio-wrapper .production-final {
    border-color: rgba(249, 115, 22, 0.38) !important;
    background: var(--bg-surface) !important;
}

/* Shopee / TikTok Shop Link Auto-Import Box in Review Studio */
.muse-review-studio-wrapper .review-affiliate-import-box {
    display: flex;
    flex-direction: column;
    gap: 7px;
    padding: 10px 12px;
    margin-bottom: 10px;
    border-radius: 12px;
    background: linear-gradient(145deg, rgba(249, 115, 22, 0.1) 0%, var(--bg-surface) 100%);
    border: 1px solid rgba(249, 115, 22, 0.35);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.muse-review-studio-wrapper .review-affiliate-import-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.muse-review-studio-wrapper .review-affiliate-import-head span {
    font-size: 12px;
    font-weight: 800;
    color: #fbbf24;
    letter-spacing: 0.01em;
}

.muse-review-studio-wrapper .review-affiliate-import-head small {
    font-size: 10.5px;
    color: #94a3b8;
}

.muse-review-studio-wrapper .review-affiliate-import-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 6px;
    align-items: center;
}

.muse-review-studio-wrapper .review-affiliate-import-row input {
    min-height: 34px !important;
    padding: 6px 10px !important;
    font-size: 12px !important;
    border-radius: 8px !important;
    background: var(--bg-surface) !important;
    border: 1px solid rgba(148, 163, 184, 0.28) !important;
    color: #f8fafc !important;
}

.muse-review-studio-wrapper .review-affiliate-import-row input:focus {
    border-color: rgba(249, 115, 22, 0.65) !important;
    box-shadow: 0 0 0 2px rgba(249, 115, 22, 0.16) !important;
    outline: none !important;
}

.muse-review-studio-wrapper .review-affiliate-import-row .btn {
    min-height: 34px !important;
    padding: 0 10px !important;
    font-size: 11.5px !important;
    font-weight: 700 !important;
    border-radius: 8px !important;
    white-space: nowrap !important;
}

.muse-review-studio-wrapper .review-affiliate-status {
    font-size: 11px;
    line-height: 1.4;
    padding: 5px 8px;
    border-radius: 7px;
    background: var(--bg-surface);
    border: 1px solid rgba(148, 163, 184, 0.2);
    color: #cbd5e1;
}

.muse-review-studio-wrapper .review-affiliate-status.is-loading {
    border-color: rgba(56, 189, 248, 0.45);
    color: #bae6fd;
}

.muse-review-studio-wrapper .review-affiliate-status.is-ok {
    border-color: rgba(16, 185, 129, 0.45);
    color: #a7f3d0;
    background: rgba(6, 78, 59, 0.28);
}

.muse-review-studio-wrapper .review-affiliate-status.is-warn {
    border-color: rgba(249, 115, 22, 0.45);
    color: #fde68a;
}

.muse-review-studio-wrapper .review-affiliate-status.is-err {
    border-color: rgba(239, 68, 68, 0.5);
    color: #fecaca;
    background: rgba(127, 29, 29, 0.28);
}

.muse-review-studio-wrapper .review-char-action-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 6px;
    align-items: center;
}


