:root{--comic-top:var(--ml-topbar-height,56px)}
.hidden{display:none!important}
.comic-shell{min-height:100vh;background:var(--ml-bg-primary);color:var(--ml-text-primary)}
.comic-topbar{position:sticky;top:0;z-index:30;height:var(--comic-top);display:flex;align-items:center;justify-content:space-between;padding:0 18px;border-bottom:1px solid var(--ml-border-subtle);background:var(--ml-topbar-bg);backdrop-filter:blur(18px)}
.comic-brand{display:flex;align-items:center;gap:16px;text-decoration:none;color:inherit;font-weight:750}
.comic-brand img{width:140px;max-height:32px;object-fit:contain;display:block}.comic-brand span{border-left:1px solid var(--ml-border-subtle);padding-left:16px;font-size:var(--ml-type-card-title)}
.comic-top-actions,.button-row,.form-actions,.ready-actions,.frame-nav{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.locale-control select{width:auto}.comic-top-actions .icon-button svg{display:block;width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.comic-nav{position:fixed;z-index:20;left:0;top:var(--comic-top);bottom:0;width:var(--studio-context-rail-width,0px);border-right:1px solid var(--ml-border-subtle);background:var(--ml-surface-primary);padding:10px 8px 12px;display:flex;flex-direction:column;box-sizing:border-box}
.comic-nav-btn{width:100%;min-height:62px;border:0;background:transparent;color:var(--ml-text-secondary);padding:8px 4px;border-radius:12px;font:inherit;font-size:var(--ml-type-nav);font-weight:760;cursor:pointer;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px}
.comic-nav-btn .nav-icon{display:grid;place-items:center;width:24px;height:24px}.comic-nav-btn .nav-icon svg{display:block;width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}.comic-nav-btn.active{background:var(--ml-bg-secondary);color:var(--ml-text-primary)}
.comic-nav-create .nav-create-icon{width:46px;height:38px;display:grid;place-items:center;border-radius:12px;background:var(--ml-control-primary-bg);color:var(--ml-control-primary-fg)}.comic-nav-create .nav-create-icon svg{width:25px;height:25px;stroke-width:2.2}
.comic-nav-profile{margin-top:auto}.audience-nav-spacer{flex:1 1 auto;min-height:12px}
.comic-main{max-width:1500px;margin:auto;padding:28px 32px 60px calc(var(--studio-context-rail-width,0px) + 32px)}
.comic-public-topnav{display:flex;align-items:center;gap:18px;margin-left:auto;margin-right:22px}.comic-public-topnav a{color:var(--ml-text-secondary);font-size:var(--ml-type-label);font-weight:760;text-decoration:none}.comic-public-topnav a:hover{color:var(--ml-text-primary);text-decoration:underline}.comic-shell.studio-mode .comic-public-topnav{display:none}
.comic-shell.public-mode .comic-main,.comic-shell.login-mode .comic-main{max-width:1240px;padding:24px 24px 56px;margin:0 auto}.public-landing{display:grid;gap:34px}.public-hero{border:1px solid var(--ml-border-subtle);border-radius:22px;background:var(--ml-surface-primary);padding:30px 32px;box-shadow:var(--ml-shadow-subtle)}.public-hero>div{max-width:760px}.public-hero h1{margin:7px 0 10px;font-size:clamp(32px,4vw,48px);line-height:1.04}.public-hero p{margin:0;color:var(--ml-text-secondary);font-size:18px;line-height:1.5;max-width:650px}.public-hero-actions{margin-top:18px}.public-landing-section{display:grid;gap:14px}.public-landing-grid{width:100%}.creator-feature-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.creator-feature-card{border:1px solid var(--ml-border-subtle);border-radius:18px;background:var(--ml-surface-primary);padding:18px;display:grid;gap:7px;box-shadow:var(--ml-shadow-subtle)}.creator-feature-card h3{margin:0;font-size:var(--ml-type-card-title)}.creator-feature-card p{margin:0;color:var(--ml-text-muted);line-height:1.45}.creator-feature-card a{width:max-content;max-width:100%;color:var(--ml-text-primary);font-weight:760;text-decoration:none}.creator-feature-card a:hover{text-decoration:underline}.creator-cta{display:flex;align-items:center;justify-content:space-between;gap:20px}.creator-cta h2{margin:0 0 5px;font-size:var(--ml-type-heading-section)}.creator-cta p{margin:0;color:var(--ml-text-muted)}.public-footer{display:flex;gap:18px;align-items:center;padding:4px 2px 18px;color:var(--ml-text-muted);font-size:var(--ml-type-label)}.public-footer span{font-weight:760;color:var(--ml-text-primary)}.public-footer a{color:inherit}.studio-login{max-width:940px;margin:32px auto;display:grid;grid-template-columns:minmax(0,1fr) minmax(320px,410px);gap:32px;align-items:start}.studio-login-intro{padding:20px 2px}.studio-login-intro h1{margin:8px 0 10px;font-size:clamp(30px,4vw,44px);line-height:1.08}.studio-login-intro p{margin:0;color:var(--ml-text-secondary);font-size:17px;line-height:1.5}.studio-auth-card{margin:0}
.eyebrow{font-weight:750;letter-spacing:.015em}
.auth-card,.surface-card,.editor-pane{border:1px solid var(--ml-border-subtle);border-radius:20px;background:var(--ml-surface-primary);padding:22px;box-shadow:var(--ml-shadow-card)}
.status-dot{display:inline-block;width:10px;height:10px;border-radius:50%;background:var(--ml-success);margin-top:4px}
.segmented{display:grid;grid-template-columns:1fr 1fr;gap:5px;background:var(--ml-bg-secondary);padding:4px;border-radius:12px}.segmented button{border:0;border-radius:9px;padding:9px;background:transparent}.segmented button.active{background:var(--ml-surface-primary);font-weight:700}
.form-stack,.form-grid{display:grid;gap:14px;margin-top:16px}.form-grid{grid-template-columns:1fr 1fr}.form-grid .full{grid-column:1/-1}
label{display:grid;gap:6px;font-weight:650}input,textarea,select{width:100%;box-sizing:border-box;border:1px solid var(--ml-border-subtle);border-radius:12px;padding:11px 12px;background:var(--ml-surface-primary);color:var(--ml-text-primary);font:inherit}
.view-heading,.editor-heading,.pane-heading,.section-heading.inline,.stage-actions{display:flex;justify-content:space-between;gap:18px;align-items:center}.view-heading h1,.view-heading h2,.pane-heading h2,.editor-heading h1{margin:0}.view-heading p,.pane-heading p{margin:5px 0 0;color:var(--ml-text-secondary)}
.creator-view{display:grid;gap:18px}.home-create-heading{margin-bottom:-4px}.home-product-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.home-product-card{display:flex;flex-direction:column;gap:10px;padding:22px;min-width:0}.home-product-card h2{margin:0;font-size:clamp(20px,2vw,28px);line-height:1.2}.home-product-card>p{margin:0;color:var(--ml-text-secondary);line-height:1.5;flex:1}.home-product-card .large-action{align-self:flex-start;margin-top:4px}.home-product-note{display:flex;align-items:flex-start;gap:9px;padding:10px 12px;border-radius:12px;background:var(--ml-bg-secondary)}.home-product-note .status-dot{margin-top:4px;flex:0 0 auto}.home-product-note span:last-child{display:grid;gap:2px}.home-product-note small{color:var(--ml-text-secondary)}.comic-home-hero{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:18px;align-items:center;padding:18px 20px}.home-hero-copy h3{font-size:clamp(20px,2vw,28px);line-height:1.2;margin:4px 0 7px}.home-hero-copy p{font-size:15px;line-height:1.45;color:var(--ml-text-secondary);max-width:720px;margin:0 0 12px}.home-hero-copy .large-action{font-size:15px;padding:10px 16px}.home-hero-art{min-height:0;border-radius:12px;background:var(--ml-bg-secondary);display:grid;grid-template-columns:auto auto;column-gap:9px;align-items:center;padding:10px 12px;box-sizing:border-box;max-width:290px}.home-hero-art .status-dot{grid-row:1/3}.home-hero-art p{margin:2px 0 0;color:var(--ml-text-secondary);font-size:13px}
.catalogue-toolbar{display:flex;justify-content:flex-start}.catalogue-search{width:min(100%,420px)}
.create-comic-form{display:grid;gap:18px;max-width:760px}.create-comic-form .form-actions{justify-content:flex-end}
.comic-card-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:16px}.compact-grid{grid-template-columns:repeat(auto-fill,minmax(240px,1fr))}.comic-card{border:1px solid var(--ml-border-subtle);border-radius:18px;background:var(--ml-surface-primary);overflow:hidden}.comic-cover{aspect-ratio:16/9;background:var(--ml-bg-secondary);display:grid;place-items:center;color:var(--ml-text-muted)}.comic-cover img{width:100%;height:100%;object-fit:cover}.comic-card-body{padding:16px}.comic-card h3{margin:0 0 6px}.comic-card p{color:var(--ml-text-secondary);min-height:42px}.comic-meta{font-size:12px;color:var(--ml-text-muted);margin-bottom:12px}
.empty-state{padding:28px;text-align:center;color:var(--ml-text-muted);border:1px dashed var(--ml-border-subtle);border-radius:16px}.empty-upload-action{margin-top:14px}
.editor-heading{justify-content:flex-start}.editor-heading h1{margin:2px 0}.meta-label,.step-kicker{font-size:12px;color:var(--ml-text-muted);font-weight:750;letter-spacing:.04em}.editor-stepper{display:grid;grid-template-columns:repeat(5,1fr);gap:8px;margin:18px 0}.editor-stepper button{display:flex;justify-content:center;align-items:center;gap:8px;border:1px solid var(--ml-border-subtle);border-radius:14px;padding:11px;background:var(--ml-surface-primary);color:var(--ml-text-muted);font:inherit;font-weight:700}.editor-stepper button b{display:grid;place-items:center;width:24px;height:24px;border-radius:50%;background:var(--ml-bg-secondary)}.editor-stepper button.current{border-color:var(--ml-border-strong);color:var(--ml-text-primary);box-shadow:var(--ml-active-ring-shadow)}.editor-stepper button.completed{color:var(--ml-text-primary);cursor:pointer}.editor-stepper button.locked{opacity:.5;cursor:not-allowed}.editor-pane{min-height:440px}.pane-heading{align-items:flex-start}.stage-actions{margin-top:24px;border-top:1px solid var(--ml-border-subtle);padding-top:16px}
.upload-queue{display:grid;gap:8px;margin:16px 0}.upload-queue:empty{display:none}.upload-row{display:grid;grid-template-columns:minmax(120px,1fr) 2fr auto;gap:10px;align-items:center;padding:10px;border-radius:12px;background:var(--ml-bg-secondary)}.upload-row progress{width:100%}.upload-row.error{border:1px solid var(--ml-danger-border)}
.frame-grid{display:grid;grid-template-columns:1fr;gap:18px;margin-top:18px}.frame-card{border:1px solid var(--ml-border-subtle);border-radius:16px;overflow:hidden;background:var(--ml-bg-secondary);cursor:grab}.frame-card.dragging{opacity:.45}.frame-card button{font-size:12px}
.cast-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:12px;margin-top:18px}.cast-card,.dialogue-card{border:1px solid var(--ml-border-subtle);border-radius:15px;padding:14px}.cast-card-head,.dialogue-head{display:flex;justify-content:space-between;gap:12px}.cast-card small,.dialogue-card small{color:var(--ml-text-muted)}.row-actions{display:flex;gap:5px}.row-actions button{border:0;background:var(--ml-bg-secondary);border-radius:8px;min-width:34px;height:34px;cursor:pointer}
.dialogue-workspace{display:grid;grid-template-columns:minmax(300px,.9fr) minmax(360px,1.1fr);gap:20px;margin-top:16px}.dialogue-frame img{width:100%;max-height:58vh;object-fit:contain;background:var(--ml-text-primary);border-radius:16px}.frame-count{font-weight:750;margin-bottom:8px}.frame-nav{justify-content:space-between;margin-top:10px}.dialogue-list{display:grid;gap:10px}.dialogue-text{white-space:pre-wrap}.narration-panel,.character-dialogue-panel{border:1px solid var(--ml-border-subtle);border-radius:14px;padding:14px}.character-dialogue-panel{margin-top:14px}.narration-panel #narrationSummary{margin:2px 0 0;color:var(--ml-text-muted)}
.preview-summary{margin-top:14px;padding:12px 14px;border:1px solid var(--ml-border-subtle);border-radius:12px;color:var(--ml-text-secondary)}.preview-settings{max-width:460px;margin-top:20px}.caption-settings-card{margin-top:14px;padding:14px;border:1px solid var(--ml-border-subtle);border-radius:14px;background:var(--ml-surface-primary);display:grid;gap:10px}.caption-settings-card p{margin:3px 0 0;color:var(--ml-text-muted);font-size:13px;line-height:1.4}.caption-toggle{display:flex;align-items:center;gap:10px;font-size:14px}.caption-toggle input{width:18px;height:18px}.caption-actions{margin-top:2px}.audience-player-actions{align-items:center;flex-wrap:wrap}.preview-action{display:grid;place-items:center;min-height:220px}.large-action{font-size:18px;padding:14px 28px}.render-preview{display:grid;place-items:center;margin-top:14px}.render-preview video{display:block;height:min(68vh,760px);width:auto;max-width:100%;aspect-ratio:9/16;object-fit:contain;background:var(--ml-text-primary);border-radius:18px;margin:auto}.ready-actions{justify-content:center;margin-top:18px}.finalization-progress{max-width:560px;margin:14px auto;padding:14px 16px;border:1px solid var(--ml-border-subtle);border-radius:14px;background:var(--ml-bg-secondary)}.finalization-progress ol{margin:10px 0 0;padding-left:22px}.finalization-progress li{color:var(--ml-text-muted);margin:5px 0}.finalization-progress li.active{color:var(--ml-text-primary);font-weight:750}.finalization-progress li.complete{color:var(--ml-text-primary)}.final-result-meta{text-align:center;margin:12px auto 0;font-weight:700}.app-dialog #dialogInlineMessage{margin:0 16px 10px}
.notice{padding:11px 13px;border-radius:12px;background:var(--ml-bg-secondary);margin:12px 0}.notice.error{color:var(--ml-danger-text);border:1px solid var(--ml-danger-border)}
.app-dialog{width:min(590px,calc(100vw - 24px));border:1px solid var(--ml-border-subtle);border-radius:20px;background:var(--ml-surface-raised);color:var(--ml-text-primary);padding:0}.app-dialog::backdrop{background:var(--ml-modal-backdrop);backdrop-filter:blur(3px)}.app-dialog header{display:flex;justify-content:space-between;align-items:center;padding:16px;border-bottom:1px solid var(--ml-border-subtle)}.app-dialog h2{margin:0}.app-dialog #dialogFields{padding:16px;display:grid;gap:14px;max-height:65vh;overflow:auto}.dialog-actions{display:flex;justify-content:flex-end;gap:8px;padding:14px 16px;border-top:1px solid var(--ml-border-subtle)}.dialog-copy{color:var(--ml-text-secondary)}.toast{position:fixed;z-index:100;left:50%;bottom:24px;transform:translateX(-50%);background:var(--ml-surface-strong);color:var(--ml-text-inverse);border-radius:999px;padding:9px 14px}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
@media(max-width:900px){.home-product-grid{grid-template-columns:1fr}.comic-nav{position:static;width:auto;display:flex!important;flex-direction:row;border:0;border-bottom:1px solid var(--ml-border-subtle);padding:6px 12px}.comic-nav.hidden{display:none!important}.comic-nav-btn{width:auto;padding:8px 14px}.comic-nav-btn .nav-icon{display:none}.comic-nav-create .nav-create-icon{display:none}.comic-nav-profile{margin-top:0;margin-left:auto}.comic-main{padding:20px 14px 90px}.comic-home-hero{grid-template-columns:1fr}.home-hero-art{min-height:0;max-width:none}.editor-stepper{grid-template-columns:repeat(5,minmax(100px,1fr));overflow:auto}.dialogue-workspace{grid-template-columns:1fr}.form-grid{grid-template-columns:1fr}.form-grid .full{grid-column:auto}}
@media(max-width:560px){.render-preview video{width:min(100%,430px);height:auto;max-height:72vh}.finalization-progress{margin-inline:0}.comic-brand img{width:108px}.comic-brand span{font-size:14px}.view-heading,.pane-heading{align-items:stretch;flex-direction:column}.editor-stepper button span{display:none}.editor-stepper{grid-template-columns:repeat(5,1fr)}.frame-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.upload-row{grid-template-columns:1fr}.stage-actions{gap:8px}.ready-actions>*{width:100%}.comic-nav{overflow-x:auto}.comic-nav-profile{margin-left:0}}
@media(max-width:760px){.comic-public-topnav{display:none}.comic-shell.public-mode .comic-main,.comic-shell.login-mode .comic-main{padding:18px 12px 42px}.public-landing{gap:26px}.public-hero{padding:22px 20px}.public-hero h1{font-size:34px}.public-hero p{font-size:16px}.creator-feature-grid{grid-template-columns:1fr}.creator-cta{align-items:flex-start;flex-direction:column}.studio-login{grid-template-columns:1fr;margin:10px auto;gap:12px}.studio-login-intro{padding:8px 2px}.public-footer{flex-wrap:wrap}.audience-player-stage{width:min(100%,340px)}}
.voice-sample-status{margin:0;padding:10px 12px;border-radius:10px;background:var(--ml-bg-secondary);color:var(--ml-text-secondary);font-weight:650}.row-actions button:disabled{opacity:.45;cursor:not-allowed}
.narration-planner,.speech-sequence-panel{border:1px solid var(--ml-border-subtle);border-radius:14px;padding:14px}.speech-sequence-panel{margin-top:14px}.narration-actions{margin-top:10px}.candidate-status{margin-top:10px;padding:10px 12px;border-radius:10px;background:var(--ml-surface-subtle);color:var(--ml-text-muted)}.speech-sequence-list{counter-reset:speech-sequence}.speech-sequence-list>.dialogue-card{position:relative;padding-left:42px}.speech-sequence-list>.dialogue-card:before{counter-increment:speech-sequence;content:counter(speech-sequence);position:absolute;left:14px;top:16px;width:20px;height:20px;border-radius:50%;display:grid;place-items:center;font-size:12px;font-weight:750;background:var(--ml-surface-subtle);border:1px solid var(--ml-border-subtle)}.narration-card{border-style:dashed}.candidate-narration-card{background:var(--ml-surface-subtle)}.candidate-dialogue-card{opacity:.96}.sequence-badge{font-size:12px;color:var(--ml-text-muted);font-weight:700}

.closing-narration-panel{border:1px solid var(--ml-border-subtle);border-radius:14px;padding:14px;margin-top:14px}.closing-narration-actions{margin-top:10px}.closing-narration-panel .candidate-status{white-space:pre-wrap}

/* Build 4 SAME-BUILD UI/UX Hotfix — canonical Comic Audience presentation */
.comic-shell.audience-mode{--studio-context-rail-width:86px}.comic-shell.audience-mode .comic-main{max-width:none;margin:0;padding:14px 18px 36px calc(var(--studio-context-rail-width,86px) + 18px)}
.audience-root{display:grid;gap:14px}.audience-content{display:grid;gap:24px}.audience-section{display:grid;gap:12px}.audience-section-head{display:flex;justify-content:space-between;gap:12px;align-items:end}.audience-section-head h1,.audience-section-head h2{margin:0;font-size:var(--ml-type-heading-section);line-height:1.25}.audience-section-head p{margin:4px 0 0;color:var(--ml-text-muted);font-size:var(--ml-type-body-secondary)}.audience-section-compact{gap:8px}.audience-section-compact .audience-section-head h2{font-size:var(--ml-type-label);color:var(--ml-text-muted);font-weight:760}
.audience-grid{display:grid;grid-template-columns:1fr;gap:16px;align-items:start}.audience-card{min-width:0;border:1px solid var(--ml-border-subtle);border-radius:18px;overflow:hidden;background:var(--ml-surface-primary);box-shadow:var(--ml-shadow-subtle)}.audience-media-stage{position:relative;width:100%;aspect-ratio:4/5;overflow:hidden;background:var(--ml-media-bg)}.audience-poster{display:block;width:100%;height:100%;object-fit:contain;background:var(--ml-media-bg)}.audience-media-actions{position:absolute;z-index:3;top:12px;right:12px;display:flex;gap:8px}.audience-icon-action{width:42px;height:42px;border:1px solid var(--ml-on-media-border);border-radius:50%;background:var(--ml-media-control-bg);backdrop-filter:blur(10px);color:var(--ml-on-media);display:grid;place-items:center;box-shadow:0 3px 18px var(--ml-overlay-medium);text-decoration:none;padding:0}.audience-icon-action svg{display:block;width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.audience-icon-action[data-watch] svg{fill:currentColor;stroke:none}.audience-save-action.is-saved svg,.audience-save-action[aria-pressed="true"] svg{fill:currentColor}.audience-card-body{display:grid;gap:6px;padding:13px 14px 15px}.audience-card-topline{display:flex;align-items:center;justify-content:space-between;gap:10px;min-width:0}.audience-creator-link{width:max-content;max-width:100%;color:var(--ml-text-muted);font-size:var(--ml-type-meta);font-weight:760;text-decoration:none;overflow-wrap:anywhere}.audience-creator-link:hover{text-decoration:underline}.access-badge{display:inline-flex;align-items:center;flex:0 0 auto;border:1px solid var(--ml-border-subtle);border-radius:999px;padding:4px 8px;background:var(--ml-bg-secondary);color:var(--ml-text-primary);font-size:var(--ml-type-meta);font-weight:760}.audience-title-link{display:block;color:var(--ml-text-primary);font-size:var(--ml-type-card-title);font-weight:820;line-height:1.28;letter-spacing:-.015em;text-decoration:none;overflow-wrap:anywhere}.audience-title-link:hover{text-decoration:underline}.audience-episode-meta{color:var(--ml-text-secondary);font-size:var(--ml-type-label);line-height:1.35}.audience-card-description{margin:0;color:var(--ml-text-muted);font-size:var(--ml-type-body-secondary);line-height:1.45;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.audience-player-layout{display:grid;grid-template-columns:minmax(240px,380px) minmax(280px,1fr);gap:24px;align-items:start;max-width:1080px}.audience-player{display:flex;justify-content:center;min-width:0}.audience-player-stage{position:relative;height:min(675px,calc(100vh - var(--comic-top) - 120px));width:auto;max-width:100%;aspect-ratio:9/16;overflow:hidden;border-radius:18px;background:var(--ml-media-bg);box-shadow:var(--ml-shadow-subtle)}.audience-player-stage video{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:contain;background:var(--ml-media-bg)}.audience-player-play{position:absolute;z-index:3;inset:50% auto auto 50%;transform:translate(-50%,-50%);width:58px;height:58px;border:1px solid var(--ml-on-media-border);border-radius:50%;background:var(--ml-media-control-bg);color:var(--ml-on-media);display:grid;place-items:center;box-shadow:0 4px 20px var(--ml-overlay-medium);font-size:22px}.audience-player-copy{display:grid;gap:10px;align-content:start}.audience-player-copy h1{margin:0;font-size:var(--ml-type-heading-max);line-height:1.2}.audience-player-copy h3{margin:0;font-size:var(--ml-type-card-title)}.audience-player-copy p{margin:0;color:var(--ml-text-muted);font-size:var(--ml-type-body-secondary);line-height:1.5}.audience-compact-save{width:max-content;min-height:38px;display:inline-flex;align-items:center;gap:7px;border:1px solid var(--ml-border-subtle);border-radius:999px;padding:7px 11px;background:var(--ml-control-secondary-bg);color:var(--ml-text-primary);font-size:var(--ml-type-label);font-weight:760}.audience-compact-save svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.audience-compact-save.is-saved svg,.audience-compact-save[aria-pressed="true"] svg{fill:currentColor}.audience-signin-inline{width:max-content}
.audience-profile{display:grid;gap:18px}.audience-profile-head,.audience-series-head,.audience-series-summary{padding:18px}.audience-profile-head h1,.audience-series-head h1{margin:0 0 6px;font-size:var(--ml-type-heading-max)}.audience-series-summary h3{margin:0 0 6px;font-size:var(--ml-type-card-title)}.audience-series-summary p,.audience-series-head p{color:var(--ml-text-muted);font-size:var(--ml-type-body-secondary)}.audience-inline-link{display:inline-block;width:max-content;max-width:100%;padding:5px 0;color:var(--ml-text-primary);font-size:var(--ml-type-label);font-weight:760;text-decoration:none}.audience-inline-link:hover{text-decoration:underline}.audience-saved-series{display:grid;gap:8px}.audience-policy-card{margin-top:18px;padding:16px}.landing-actions{margin:12px 0}.audience-account-action{white-space:nowrap}.audience-empty{grid-column:1/-1;padding:30px;text-align:center;border:1px dashed var(--ml-border-subtle);border-radius:16px;color:var(--ml-text-muted);font-size:var(--ml-type-body-secondary)}
@media(min-width:900px){.audience-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:899px){.comic-shell.audience-mode .comic-main{padding:14px 12px 90px}.comic-shell.audience-mode .comic-nav{position:fixed;z-index:50;left:0;right:0;top:auto;bottom:0;width:auto;height:72px;display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr));border:0;border-top:1px solid var(--ml-border-subtle);background:var(--ml-nav-bg);backdrop-filter:blur(18px);padding:6px 8px max(8px,env(safe-area-inset-bottom));overflow:visible}.comic-shell.audience-mode .comic-nav-btn{width:auto;min-width:0;min-height:0;padding:3px 2px;border-radius:10px;font-size:var(--ml-type-nav);gap:2px}.comic-shell.audience-mode .comic-nav-btn .nav-icon{display:grid;width:22px;height:22px}.comic-shell.audience-mode .comic-nav-btn .nav-icon svg{width:21px;height:21px}.comic-shell.audience-mode .audience-nav-spacer{display:none!important}.audience-player-layout{grid-template-columns:1fr}.audience-player{width:100%;margin:auto}.audience-player-stage{width:min(100%,360px);height:auto;max-width:100%;aspect-ratio:9/16}}
@media(max-width:560px){.comic-shell.audience-mode .comic-top-actions{gap:6px}.comic-shell.audience-mode .locale-control select{max-width:120px}.comic-shell.audience-mode .audience-account-action{padding-inline:9px}.audience-card-body{padding:12px}.audience-media-actions{top:10px;right:10px}.audience-icon-action{width:40px;height:40px}}
/* Build 6A canonical mixed-media timeline */
.media-thumb{position:relative;background:var(--ml-text-primary)}.media-kind-badge{position:absolute;right:8px;top:8px;padding:4px 7px;border-radius:999px;background:var(--ml-overlay-strong);color:var(--ml-layout-panel);font-size:10px;font-weight:800;letter-spacing:.08em}.media-controls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:10px}.media-inline-control{display:grid;gap:4px;font-size:11px;color:var(--ml-text-muted)}.media-inline-control select{width:100%;min-width:0}.dialogue-frame video{width:100%;max-height:58vh;object-fit:contain;background:var(--ml-text-primary);border-radius:16px}
@media(max-width:620px){.media-controls{grid-template-columns:1fr}}

/* Build 6B — one linguistic-performance surface over the canonical visual timeline. */
.linguistic-performance-panel{display:grid;gap:14px;margin-bottom:16px;padding:16px}
.linguistic-toolbar{display:flex;align-items:end;justify-content:space-between;gap:12px;flex-wrap:wrap}
.linguistic-toolbar>label{min-width:min(320px,100%);flex:1}
.variant-cast-grid{display:grid;gap:10px}
.variant-cast-row{display:grid;grid-template-columns:minmax(180px,1fr) minmax(130px,.55fr) minmax(180px,.8fr);gap:10px;align-items:end;padding:12px;border:1px solid var(--ml-border,var(--ml-selection-overlay));border-radius:12px}
.variant-cast-row small,.source-segment-row small{display:block;margin-top:3px;opacity:.72}
.source-transcript-panel{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:start;padding-top:12px;border-top:1px solid var(--ml-border,var(--ml-selection-overlay))}
.source-transcript-panel p{margin:5px 0 0}
.source-transcript-segments{display:grid;gap:8px;margin-top:10px}
.source-segment-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(190px,.42fr);gap:10px;align-items:start;padding:10px;border-radius:10px;background:var(--ml-surface-subtle,var(--ml-overlay-soft))}
.source-segment-row p{margin:5px 0 0;white-space:normal}
@media(max-width:760px){.variant-cast-row,.source-transcript-panel,.source-segment-row{grid-template-columns:1fr}.source-transcript-panel>.button-row{justify-content:flex-start}}

.animation-director-story{margin:14px 0;padding:16px}.animation-story-fields{display:grid;grid-template-columns:minmax(180px,.4fr) minmax(280px,1fr);gap:12px;margin-top:12px}.animation-story-fields label{display:grid;gap:6px;font-size:12px;color:var(--ml-text-muted)}.animation-story-fields input,.animation-story-fields textarea{width:100%}.animation-direction-card{margin-top:10px;padding:10px;border:1px solid var(--ml-border-subtle);border-radius:10px;background:var(--ml-surface-primary);display:grid;gap:6px}.animation-direction-card p{margin:0;white-space:pre-wrap;font-size:12px;line-height:1.45}.animation-direction-meta{font-size:11px;color:var(--ml-text-muted)}.animation-direction-actions{display:flex;flex-wrap:wrap;gap:5px}.animation-direction-actions button{font-size:11px}.animation-advanced{font-size:11px;color:var(--ml-text-muted)}@media(max-width:760px){.animation-story-fields{grid-template-columns:1fr}}


/* Build 6C3 Hotfix1 — horizontal production workspace and creator-final Clean Plate review. */
.comic-shell.studio-mode .comic-main{max-width:none;margin:0;padding-right:24px}
/* Studio shared chrome authority — approved Daily Studio v2 shell integration.
   Global Studio chrome lives here; Daily-specific layout remains in daily-studio-v2.css. */
.comic-shell.studio-mode .comic-topbar{height:var(--ml-topbar-height);gap:12px;justify-content:flex-start;padding:0 16px}
.comic-shell.studio-mode .comic-brand{gap:9px;flex:0 0 auto}
.comic-shell.studio-mode .comic-brand span{padding-left:12px}
.comic-shell.studio-mode .comic-top-actions{margin-left:auto;flex-wrap:nowrap;gap:7px}
.studio-product-switcher{position:relative;flex:0 0 auto}
.studio-product-switcher-button,.studio-account-button{min-height:34px;display:inline-flex;align-items:center;gap:7px;padding:0 10px;border:1px solid var(--ml-border-default);border-radius:9px;background:var(--ml-layout-panel);color:var(--ml-text-primary);cursor:pointer;font-size:var(--ml-type-body-secondary);font-weight:var(--ml-font-weight-semibold);transition:120ms ease}
.studio-product-switcher-button{color:var(--ml-accent-active);background:var(--ml-accent-soft);border-color:var(--ml-border-accent)}
.studio-product-switcher-button:hover,.studio-account-button:hover{border-color:var(--ml-border-strong);background:var(--ml-layout-hover)}
.studio-nav-icon{display:block;width:18px;height:18px;flex:0 0 18px;stroke:currentColor;fill:none;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.studio-icon-sm{width:15px;height:15px;flex-basis:15px}
.studio-product-menu,.studio-account-menu{position:absolute;z-index:80;top:calc(100% + 7px);min-width:190px;max-width:min(300px,calc(100vw - 24px));padding:6px;border:1px solid var(--ml-border-subtle);border-radius:11px;background:var(--ml-layout-panel);box-shadow:0 16px 40px var(--ml-shadow-medium)}
.studio-product-menu{left:0}
.studio-account-wrap{position:relative}
.studio-account-menu{right:0;top:calc(100% + 7px)}
.studio-menu-item{width:100%;min-height:36px;display:grid;grid-template-columns:20px minmax(0,1fr);gap:8px;align-items:center;padding:0 8px;border:0;border-radius:7px;background:transparent;color:var(--ml-text-secondary);cursor:pointer;text-align:left;font-size:var(--ml-type-body-secondary)}
.studio-product-menu a.studio-menu-item{text-decoration:none}
.studio-menu-item:hover{background:var(--ml-layout-hover);color:var(--ml-text-primary)}
.studio-menu-item.active{background:var(--ml-accent-soft);color:var(--ml-accent-active);font-weight:var(--ml-font-weight-semibold)}
.studio-top-breadcrumb{min-width:0;display:flex;align-items:center;gap:6px;flex:1 1 auto;margin-left:2px;color:var(--ml-text-muted);font-size:var(--ml-type-body-secondary)}
.studio-top-breadcrumb button{min-width:0;padding:3px 4px;border:0;border-radius:5px;background:transparent;color:var(--ml-text-secondary);cursor:pointer;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.studio-top-breadcrumb button:hover{background:var(--ml-layout-hover);color:var(--ml-text-primary)}
.studio-top-breadcrumb button.current{color:var(--ml-text-primary);font-weight:var(--ml-font-weight-medium)}
@media(max-width:760px){.comic-shell.studio-mode .comic-topbar{padding:0 12px}.studio-top-breadcrumb{display:none}.studio-product-switcher-button span{display:none}.studio-account-button #studioAccountName{display:none}}

.media-production-row{background:var(--ml-surface-primary);cursor:grab}
.media-row-header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 14px;border-bottom:1px solid var(--ml-border-subtle)}
.media-row-header>div{display:grid;gap:2px}.media-row-header small{color:var(--ml-text-muted)}
.media-row-grid{display:grid;grid-template-columns:minmax(220px,1fr) minmax(220px,1fr) minmax(280px,1.15fr) minmax(320px,1.35fr);align-items:stretch}
.media-work-panel{min-width:0;padding:14px;border-right:1px solid var(--ml-border-subtle);display:grid;align-content:start;gap:10px;background:var(--ml-surface-primary)}
.media-work-panel:last-child{border-right:0}.panel-label{text-transform:uppercase;letter-spacing:.045em;font-size:11px;font-weight:800;color:var(--ml-text-muted)}
.artwork-preview-button{border:0;padding:0;background:transparent;border-radius:12px;overflow:hidden;cursor:zoom-in;display:block;width:100%}
.artwork-preview-button img{display:block;width:100%;height:auto;max-height:360px;min-height:180px;object-fit:contain;background:var(--ml-media-bg);border-radius:12px}
.text-button{justify-self:start;border:0;background:transparent;color:var(--ml-text-secondary);padding:0;text-decoration:underline;cursor:pointer}
.clean-plate-empty{min-height:180px;border:1px dashed var(--ml-border-subtle);border-radius:12px;display:grid;place-items:center;text-align:center;padding:14px;color:var(--ml-text-muted);background:var(--ml-bg-secondary)}
.clean-plate-actions,.animation-direction-actions{display:flex;gap:6px;flex-wrap:wrap}.review-status,.creator-status{display:grid;gap:3px}.review-status span,.creator-status span{font-size:11px;color:var(--ml-text-muted);text-transform:uppercase;letter-spacing:.04em}.review-details{border:1px solid var(--ml-border-subtle);border-radius:10px;padding:8px 10px}.review-details summary,.animation-direction-details summary{cursor:pointer;font-weight:700;font-size:12px}.review-details p,.animation-direction-details p{font-size:12px;line-height:1.45;margin:8px 0 0;white-space:pre-wrap}.compact-copy{margin:0;color:var(--ml-text-secondary);font-size:12px;line-height:1.45}
.clean-plate-progress,.clean-plate-error{display:grid;gap:8px;padding:12px;border-radius:12px;background:var(--ml-bg-secondary);border:1px solid var(--ml-border-subtle)}.clean-plate-progress ol{margin:0;padding-left:20px;display:grid;gap:4px}.clean-plate-progress small,.clean-plate-error small{color:var(--ml-text-muted)}
.animation-direction-card{margin:0;padding:14px;border:0;border-radius:0;background:var(--ml-surface-primary);display:grid;gap:8px}.animation-direction-card p{margin:0;white-space:pre-wrap;font-size:12px;line-height:1.45}.animation-direction-summary{display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden}.animation-direction-details{border-top:1px solid var(--ml-border-subtle);padding-top:8px}.animation-direction-meta{font-size:11px;color:var(--ml-text-muted)}
.clean-plate-touchup{display:grid;gap:10px}.touchup-toolbar{display:flex;gap:7px;align-items:center;flex-wrap:wrap}.touchup-toolbar button{border:1px solid var(--ml-border-subtle);background:var(--ml-control-secondary-bg);color:var(--ml-text-primary);border-radius:9px;padding:7px 9px}.touchup-toolbar button.active{outline:2px solid var(--ml-border-strong);font-weight:800}.touchup-toolbar label{display:flex;align-items:center;gap:6px;font-size:12px}.touchup-toolbar input[type=range]{width:120px;padding:0}.touchup-help{margin:0;color:var(--ml-text-muted);font-size:12px;line-height:1.4}.touchup-canvas-wrap{max-height:58vh;overflow:auto;border:1px solid var(--ml-border-subtle);border-radius:12px;background:var(--ml-text-primary);padding:8px}.touchup-canvas{display:block;max-width:none;touch-action:none;cursor:crosshair;background:var(--ml-text-primary)}
.app-dialog:has(.clean-plate-touchup){width:min(1080px,calc(100vw - 28px))}.app-dialog:has(.clean-plate-touchup) #dialogFields{max-height:72vh}
@media(max-width:1250px){.media-row-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.media-work-panel:nth-child(2){border-right:0}.media-work-panel:nth-child(-n+2){border-bottom:1px solid var(--ml-border-subtle)}}
@media(max-width:760px){.media-row-grid{grid-template-columns:1fr}.media-work-panel{border-right:0;border-bottom:1px solid var(--ml-border-subtle)}.media-work-panel:last-child{border-bottom:0}.artwork-preview-button img{max-height:440px}.comic-shell.studio-mode .comic-main{padding-right:14px}.animation-story-fields{grid-template-columns:1fr}}

/* Build 6C3 SAME-BUILD Hotfix3 — project-level Motion Comic orchestration */
.motion-comic-panel{display:grid;gap:14px}
.motion-comic-summary{display:flex;gap:12px;align-items:baseline;flex-wrap:wrap}
.motion-comic-advanced{max-width:420px}
.motion-comic-advanced label{display:grid;gap:6px;margin-top:10px}
.motion-comic-shots{display:grid;gap:8px}
.motion-comic-shot{display:grid;grid-template-columns:minmax(140px,.8fr) minmax(160px,1fr) minmax(180px,1.4fr);gap:12px;align-items:center;padding:10px 12px;border:1px solid var(--border,var(--ml-border-subtle));border-radius:12px}
.motion-comic-shot strong{display:block}
.motion-comic-shot-status{font-weight:700}
.motion-comic-shot-error{font-size:.9rem;color:var(--danger,var(--ml-danger))}
@media (max-width:760px){.motion-comic-shot{grid-template-columns:1fr}}

.motion-comic-advanced-grid{display:grid;grid-template-columns:repeat(2,minmax(180px,1fr));gap:12px;margin-top:10px}.motion-comic-advanced-grid label{display:grid;gap:6px}.motion-comic-derived{display:grid;gap:4px;padding:10px 0}.motion-comic-derived span,.motion-comic-derived small{color:var(--ml-text-muted);font-size:12px}.motion-comic-derived strong{font-size:14px}@media(max-width:720px){.motion-comic-advanced-grid{grid-template-columns:1fr}}

/* Build 6C3 SAME-BUILD Hotfix7 — creator-visible WAN shot review */
.motion-comic-shot{grid-template-columns:minmax(140px,.8fr) minmax(150px,.9fr) minmax(180px,1.2fr) auto}
.motion-comic-shot-actions{display:flex;justify-content:flex-end;align-items:center}
.motion-comic-shot-actions .secondary-button{white-space:nowrap}
.motion-review-dialog{width:min(920px,calc(100vw - 28px));padding:0}
.motion-review-shell{display:grid;gap:14px;padding:18px}
.motion-review-shell header{display:flex;justify-content:space-between;gap:16px;align-items:flex-start}
.motion-review-shell header h2{margin:0 0 4px}
.motion-review-shell video{display:block;width:100%;max-height:72vh;object-fit:contain;background:var(--ml-text-primary);border-radius:12px}
@media(max-width:760px){.motion-comic-shot{grid-template-columns:1fr}.motion-comic-shot-actions{justify-content:flex-start}.motion-review-dialog{width:calc(100vw - 18px)}}

/* B8H9H1 Owner UX: compact creator landing, with the entire 2x3 menu discoverable on desktop. */
.studio-product-landing{max-width:1200px;margin:0 auto;padding:10px 16px 24px}
.studio-product-hero{max-width:790px;margin:0 auto 16px;text-align:center}
.studio-product-hero h1{margin:.2rem 0 .4rem;font-size:clamp(1.9rem,3.2vw,2.9rem);line-height:1.08}
.studio-product-hero p{margin:0 auto;color:var(--text-muted,var(--ml-text-muted));max-width:680px}
.studio-product-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;max-width:1200px;margin:0 auto}
.studio-product-card{min-width:0;border:1px solid var(--border-color,var(--ml-border-subtle));border-radius:16px;padding:18px 20px;background:var(--surface-card,var(--ml-layout-panel))}
.studio-product-card h2{margin:.25rem 0 .4rem;font-size:1.4rem}
.studio-product-card p{min-height:0;margin:.45rem 0 .7rem;color:var(--text-muted,var(--ml-text-muted));line-height:1.4}
.studio-product-kicker{font-size:.76rem;font-weight:700;letter-spacing:.055em;text-transform:uppercase;color:var(--text-muted,var(--ml-text-muted))}
.studio-product-card .primary-button,.studio-product-card .secondary-button{margin-top:6px}
.studio-external-link{text-decoration:none;display:inline-flex;align-items:center;justify-content:center}
@media(max-width:980px){.studio-product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.studio-product-landing{padding:8px 4px 20px}.studio-product-grid{grid-template-columns:1fr;gap:10px}.studio-product-card{padding:16px}.studio-product-card p{min-height:0}.studio-product-hero{margin-bottom:14px}.studio-product-hero h1{font-size:clamp(1.85rem,7vw,2.4rem)}}

/* Studio CR Build 3 — Movie project core */
.movie-studio{max-width:1420px;margin:0 auto;padding:clamp(20px,4vw,48px);display:grid;gap:24px}.movie-studio.hidden{display:none}.movie-studio-header{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;flex-wrap:wrap}.movie-studio-header h1{margin:.2rem 0}.movie-workspace-grid{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(300px,.85fr);gap:20px;align-items:start}.movie-create-form .wide,.movie-editor .wide{grid-column:1/-1}.movie-project-list,.movie-character-list,.movie-scene-list{display:grid;gap:10px}.movie-project-card,.movie-character-card,.movie-scene-card{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;border-top:1px solid var(--ml-border-subtle);padding:14px 0}.movie-project-card:first-child,.movie-character-card:first-child,.movie-scene-card:first-child{border-top:0}.movie-project-card p,.movie-scene-card p{margin:.35rem 0 0;color:var(--ml-text-muted);white-space:pre-wrap}.movie-editor{display:grid;gap:20px}.movie-editor.hidden{display:none}.movie-editor-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}.movie-editor-toolbar .comic-meta{margin:0;line-height:1.45;text-align:right}.movie-editor-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:20px;align-items:start}.movie-editor-grid>.surface-card{width:100%;box-sizing:border-box}.movie-form-section-heading{grid-column:1/-1;margin-bottom:2px;padding-bottom:14px;border-bottom:1px solid var(--ml-border-subtle);align-items:flex-start}.movie-form-section-heading>div{min-width:0}.movie-form-section-heading h2{margin:0}.movie-form-section-heading p{margin:5px 0 0;color:var(--ml-text-secondary);max-width:760px}.movie-form-section-heading>button{flex:0 0 auto;white-space:normal;text-align:center;max-width:220px}.movie-world-review-field textarea{min-height:88px;resize:vertical;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere;overflow-x:hidden}.movie-cast-section{display:grid;gap:18px}.movie-character-form{border-top:1px solid var(--ml-border-subtle);padding-top:16px}.movie-build3-boundary{border-style:dashed}.movie-build3-boundary button[disabled]{opacity:.6;cursor:not-allowed}
@media(max-width:900px){.movie-workspace-grid,.movie-editor-grid{grid-template-columns:1fr}.movie-project-card,.movie-character-card{flex-direction:column}.movie-project-card .button-row,.movie-character-card .button-row{width:100%}.movie-form-section-heading{flex-direction:column;align-items:stretch}.movie-form-section-heading>button{max-width:none;width:100%}.movie-editor-toolbar .comic-meta{text-align:left;width:100%}}
.movie-assisted-field{position:relative}.movie-field-assist{margin-top:2px;justify-self:start;border:1px solid var(--ml-border-subtle);border-radius:999px;background:var(--ml-bg-secondary);padding:6px 10px;text-decoration:none;font-size:12px;font-weight:760;line-height:1.2}.movie-field-assist:hover{background:var(--ml-surface-subtle);text-decoration:none}.movie-assistant-review{display:grid;gap:14px}.movie-assistant-explanation{white-space:pre-wrap;color:var(--ml-text-secondary)}.movie-assistant-review-policy{font-size:.92rem;color:var(--ml-text-muted)}.movie-assistant-review-items{display:grid;gap:10px}.movie-assistant-review-item{display:grid;grid-template-columns:auto minmax(0,1fr);gap:10px;align-items:flex-start;border-top:1px solid var(--ml-border-subtle);padding-top:12px}.movie-assistant-review-item:first-child{border-top:0;padding-top:0}.movie-assistant-review-item input{margin-top:4px}.movie-assistant-review-item strong{display:block;margin-bottom:4px}.movie-assistant-review-item pre{white-space:pre-wrap;overflow-wrap:anywhere;margin:0;font:inherit;color:var(--ml-text-secondary)}.movie-assistant-overwrite{justify-self:start}

.movie-video-generation-controls{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.movie-video-generation-controls label{display:flex;align-items:center;gap:6px}.movie-video-resolution-select{min-width:92px}
.movie-audio-foundation{display:grid;gap:18px}.movie-audio-workspace{display:grid;gap:16px}.movie-audio-toolbar{display:grid;grid-template-columns:minmax(260px,1fr) auto auto;gap:12px;align-items:end}.movie-audio-transport{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.movie-audio-status{padding:10px 12px;border-radius:10px;background:var(--ml-bg-secondary,var(--ml-layout-track-alt));color:var(--ml-text-secondary);font-size:.9rem}.movie-visual-timeline{border:1px solid var(--ml-border-subtle);border-radius:16px;background:var(--ml-surface,var(--ml-layout-panel));overflow:hidden}.movie-timeline-scroll{overflow-x:auto;overflow-y:hidden;max-width:100%}.movie-timeline-canvas{position:relative;display:grid;grid-template-columns:160px minmax(900px,1fr);min-width:1060px}.movie-timeline-label-spacer{grid-column:1;border-right:1px solid var(--ml-border-subtle);border-bottom:1px solid var(--ml-border-subtle);background:var(--ml-bg-secondary,var(--ml-layout-track-alt));height:42px}.movie-timeline-ruler{grid-column:2;height:42px;position:relative;border-bottom:1px solid var(--ml-border-subtle);background:var(--ml-bg-secondary,var(--ml-layout-track-alt));cursor:pointer;user-select:none}.movie-timeline-tick{position:absolute;bottom:0;height:100%;border-left:1px solid var(--ml-border-subtle);padding:5px 0 0 5px;font-size:11px;color:var(--ml-text-muted);box-sizing:border-box}.movie-timeline-lanes{grid-column:1/-1;display:grid}.movie-timeline-lane{display:grid;grid-template-columns:160px minmax(900px,1fr);min-height:96px;border-bottom:1px solid var(--ml-border-subtle)}.movie-timeline-lane[data-lane-kind="speech"]{min-height:136px}.movie-timeline-lane:last-child{border-bottom:0}.movie-timeline-lane-label{padding:10px 12px;border-right:1px solid var(--ml-border-subtle);background:var(--ml-bg-secondary,var(--ml-layout-track-alt));min-width:0}.movie-timeline-lane-label strong{display:block;overflow:hidden;text-overflow:ellipsis}.movie-timeline-lane-label small{display:block;margin-top:2px;color:var(--ml-text-muted);font-size:11px}.movie-timeline-track{position:relative;min-height:96px;background-image:linear-gradient(to right,var(--ml-border-subtle,var(--ml-layout-panel-muted)) 1px,transparent 1px);background-size:10% 100%}.movie-timeline-lane[data-lane-kind="speech"] .movie-timeline-track{min-height:136px}.movie-timeline-clip{position:absolute;top:8px;height:80px;min-width:34px;border:1px solid var(--ml-border-subtle,var(--ml-border-default));border-radius:9px;background:var(--ml-bg-secondary,var(--ml-layout-track-alt));padding:7px 38px 27px 8px;box-sizing:border-box;overflow:hidden;cursor:grab;touch-action:pan-y;user-select:none}.movie-timeline-clip.is-speech{height:120px;padding:8px;display:grid;grid-template-rows:16px 16px minmax(24px,1fr) 24px;gap:4px;align-content:stretch}.movie-timeline-clip:focus{outline:2px solid currentColor;outline-offset:2px}.movie-timeline-clip.is-selected{border-width:2px}.movie-timeline-clip.is-unresolved{border-style:dashed}.movie-timeline-clip.is-dragging{cursor:grabbing;opacity:.86}.movie-timeline-clip strong{display:block;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.movie-timeline-clip.is-speech .movie-timeline-clip-speaker,.movie-timeline-clip.is-speech .movie-timeline-clip-state,.movie-timeline-clip.is-speech .movie-timeline-clip-dialogue{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.movie-timeline-clip.is-speech .movie-timeline-clip-state{position:static;font-size:10px;line-height:16px}.movie-timeline-clip.is-speech .movie-timeline-clip-dialogue{margin:0;font-size:10px;line-height:1.25;align-self:center}.movie-timeline-clip-media{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px;align-items:center;min-width:0;min-height:24px}.movie-timeline-waveform-placeholder{display:block;min-width:0}.movie-waveform-svg{position:absolute;left:7px;right:38px;bottom:5px;width:calc(100% - 45px);height:18px;opacity:.7}.movie-timeline-clip.is-speech .movie-waveform-svg{position:static;left:auto;right:auto;bottom:auto;width:100%;height:18px;min-width:0}.movie-caption-clip{position:absolute;height:18px;border-radius:5px;border:1px solid var(--ml-border-subtle,var(--ml-border-default));background:var(--ml-bg-secondary,var(--ml-layout-track-alt));padding:1px 5px;font-size:9px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;box-sizing:border-box}.movie-timeline-playhead{position:absolute;top:0;bottom:0;width:2px;background:currentColor;pointer-events:none;z-index:8;left:160px}.movie-timeline-playhead::before{content:"";position:absolute;top:32px;left:-5px;border-left:6px solid transparent;border-right:6px solid transparent;border-top:8px solid currentColor}.movie-timeline-inspector{border-top:1px solid var(--ml-border-subtle);padding-top:16px}.movie-timeline-inspector.hidden{display:none}.movie-audio-event-form{margin-top:8px}.movie-audio-mix-panel{display:grid;gap:12px;border-top:1px solid var(--ml-border-subtle);padding-top:18px}.movie-audio-source-list{display:grid;gap:8px}.movie-audio-source-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(220px,.75fr);gap:12px;align-items:center;padding:8px 0;border-top:1px solid var(--ml-border-subtle)}.movie-audio-source-row:first-child{border-top:0}.movie-audio-source-row audio,.movie-audio-mix-panel audio{width:min(100%,560px)}.movie-audio-upload-label{cursor:pointer}.movie-audio-upload-label input{display:none}.movie-audio-caption-link{white-space:nowrap}.movie-audio-precision{border-top:1px solid var(--ml-border-subtle);padding-top:10px}.movie-audio-precision summary{cursor:pointer;font-weight:700}.movie-timeline-empty{position:absolute;inset:0;display:flex;align-items:center;padding:0 12px;color:var(--ml-text-muted);font-size:12px}.movie-timeline-lane[data-lane-kind="provider_native"]{opacity:.72}.movie-timeline-lane[data-lane-kind="captions"] .movie-timeline-track{min-height:96px}.movie-timeline-lane[data-lane-kind="audio"] .movie-timeline-clip{height:64px;top:16px;padding-bottom:8px}.movie-stem-preview-button{position:absolute;right:6px;bottom:5px;z-index:3;min-width:28px;height:24px;border:1px solid var(--ml-border-subtle,var(--ml-border-default));border-radius:7px;background:var(--ml-surface,var(--ml-layout-panel));font:inherit;font-size:11px;line-height:1;cursor:pointer}.movie-timeline-clip.is-speech .movie-stem-preview-button{position:static;right:auto;bottom:auto;align-self:center;justify-self:end}.movie-stem-preview-button:focus-visible{outline:2px solid currentColor;outline-offset:1px}.movie-speech-voice-preview{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:10px 12px;border:1px solid var(--ml-border-subtle);border-radius:10px;background:var(--ml-bg-secondary,var(--ml-layout-track-alt))}.movie-speech-voice-preview.hidden{display:none}.movie-speech-voice-preview .button-row{margin:0}
@media(max-width:760px){.movie-audio-source-row{grid-template-columns:1fr}.movie-timeline-canvas,.movie-timeline-lane{grid-template-columns:120px minmax(760px,1fr)}.movie-timeline-canvas{min-width:880px}.movie-timeline-playhead{left:120px}.movie-timeline-lane-label{padding:8px}.movie-audio-transport{width:100%}}
@media(max-width:760px){.movie-audio-toolbar,.movie-speech-event-card,.movie-audio-source-row{grid-template-columns:1fr}.movie-speech-event-card>.button-row{width:100%}.movie-audio-source-row audio{width:100%}}
.movie-speech-voice-copy{display:grid;gap:3px;min-width:min(100%,320px)}
.movie-speech-voice-progress{display:flex;align-items:center;gap:7px;color:var(--ml-text-secondary);font-size:.86rem}.movie-speech-voice-progress.hidden{display:none}
.movie-speech-voice-spinner{width:12px;height:12px;border:2px solid var(--ml-border-subtle,var(--ml-border-default));border-top-color:currentColor;border-radius:50%;animation:movieVoiceSpin .8s linear infinite}
@keyframes movieVoiceSpin{to{transform:rotate(360deg)}}
.movie-speech-voice-actions{justify-content:flex-end}

/* Studio Movie CR Build 5 — Directors + canonical visual references */
.movie-director-list,.movie-reference-list,.movie-shot-list{display:grid;gap:12px}
.movie-director-list{grid-template-columns:repeat(auto-fit,minmax(260px,1fr))}
.movie-director-card,.movie-reference-card,.movie-shot-card{border:1px solid var(--line,var(--ml-border-subtle));border-radius:14px;padding:14px;background:var(--surface,var(--ml-layout-panel));display:flex;gap:14px;justify-content:space-between;align-items:flex-start}
.movie-director-card details{margin-top:8px;max-width:620px}.movie-director-card pre,.movie-shot-reference-result{white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px;max-height:320px;overflow:auto}
.movie-reference-card img{width:96px;height:96px;object-fit:cover;border-radius:10px;background:var(--ml-layout-panel-muted);flex:0 0 auto}
.movie-reference-card>div:nth-child(2){flex:1;min-width:0}.movie-reference-panel .form-grid{margin-bottom:16px}

/* Movie CR-VWF-R1 Build 6 same-build UX corrective — Distribution packaging brief fields fill their cards. */
#moviePackagingAcquisitionGrid .movie-reference-card{align-items:stretch}
#moviePackagingAcquisitionGrid .movie-reference-card>div{flex:1 1 100%;min-width:0;width:100%;display:grid;gap:10px}
#moviePackagingAcquisitionGrid textarea[data-packaging-brief]{display:block;width:100%;min-width:0;min-height:132px;resize:vertical;line-height:1.5}
.movie-shot-list{margin-top:12px}.movie-shot-card{background:var(--ml-overlay-soft);flex-wrap:wrap}.movie-shot-reference-result{width:100%;margin:0}
@media(max-width:720px){.movie-reference-card,.movie-director-card,.movie-shot-card{flex-direction:column}.movie-reference-card img{width:100%;height:auto;max-height:220px}}

/* Movie CR Build 5 same-build hotfix — canonical Studio rail + production workspace. */
.comic-shell.movie-project-mode{--studio-context-rail-width:210px}.comic-shell.movie-project-mode .comic-nav{padding:10px 10px 14px;overflow-y:auto}.movie-nav-group{display:grid;gap:3px;width:100%;margin:0 0 10px}.movie-nav-group-label{padding:6px 10px 4px;font-size:10px;font-weight:850;letter-spacing:.09em;text-transform:uppercase;color:var(--ml-text-muted)}.comic-shell.movie-project-mode .movie-nav-panel-btn{min-height:0;flex-direction:row;align-items:center;justify-content:flex-start;padding:9px 10px;border-radius:10px;text-align:left;font-size:13px;line-height:1.2}.comic-shell.movie-project-mode .movie-nav-panel-btn:hover,.comic-shell.movie-project-mode .movie-nav-panel-btn:focus-visible{background:var(--ml-bg-secondary,var(--ml-layout-track-alt));outline:none}.comic-shell.movie-project-mode .movie-nav-panel-btn.active{background:var(--ml-bg-secondary,var(--ml-layout-panel-muted));color:var(--ml-text-primary);font-weight:800}.movie-workspace-shell{display:block}.movie-workspace-content{min-width:0;display:grid;gap:16px}.movie-workspace-panel{min-width:0}.movie-workspace-panel.hidden{display:none!important}.movie-workspace-title{display:block;font-size:1.05rem;text-align:right}.movie-editor-toolbar>div:last-child{min-width:0}.movie-director-tabs{display:flex;gap:8px;flex-wrap:wrap;border-bottom:1px solid var(--ml-border-subtle);padding-bottom:12px}.movie-director-tabs button{border:1px solid var(--ml-border-subtle);border-radius:999px;background:var(--ml-surface,var(--ml-layout-panel));color:inherit;padding:8px 13px;font:inherit;cursor:pointer}.movie-director-tabs button.active{background:var(--ml-bg-secondary,var(--ml-layout-panel-muted));font-weight:750}.movie-director-list{display:block}.movie-director-focus{display:grid;gap:16px}.movie-director-focus-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;flex-wrap:wrap}.movie-director-focus-head h3{margin:0 0 4px}.movie-director-purpose{margin:0 0 6px;max-width:760px;color:var(--ml-text-secondary);line-height:1.45}.movie-director-structured-review{display:grid;gap:16px}.movie-director-review-section{display:grid;gap:9px;padding-top:14px;border-top:1px solid var(--ml-border-subtle)}.movie-director-review-section:first-child{border-top:0;padding-top:0}.movie-director-review-section h3{margin:0;font-size:1rem}.movie-director-review-section p{margin:0;white-space:pre-wrap}.movie-director-review-list{display:grid;gap:10px}.movie-director-review-list article{display:grid;gap:6px;padding:11px 12px;border:1px solid var(--ml-border-subtle);border-radius:12px;background:var(--ml-bg-secondary,var(--ml-layout-track-alt))}.movie-director-field{display:grid;grid-template-columns:minmax(130px,.35fr) minmax(0,1fr);gap:10px;align-items:start}.movie-director-field>span{text-transform:capitalize;color:var(--ml-text-muted);font-size:.82rem}.movie-director-field>strong{font-weight:600;white-space:pre-wrap;overflow-wrap:anywhere}.movie-director-technical{border-top:1px solid var(--ml-border-subtle);padding-top:10px}.movie-director-technical summary{cursor:pointer;font-weight:700}.movie-director-technical pre{white-space:pre-wrap;overflow-wrap:anywhere;max-height:320px;overflow:auto;font-size:12px}.movie-video-readiness{margin:0 0 14px;padding-left:20px;display:grid;gap:5px}
@media(max-width:900px){.comic-shell.movie-project-mode{--studio-context-rail-width:0px}.comic-shell.movie-project-mode .comic-nav{overflow-x:auto;overflow-y:hidden}.comic-shell.movie-project-mode .movie-nav-group{display:contents}.comic-shell.movie-project-mode .movie-nav-group-label{display:none}.comic-shell.movie-project-mode .movie-nav-panel-btn{width:auto;min-width:max-content;min-height:0;flex:0 0 auto;white-space:nowrap;padding:8px 12px}.movie-workspace-title,.movie-editor-toolbar .comic-meta{text-align:left}.movie-director-field{grid-template-columns:1fr;gap:2px}}

/* Movie CR Build 6 — durable shot-based WAN video workspace */
.movie-video-summary{display:flex;justify-content:space-between;gap:12px;align-items:center;flex-wrap:wrap;margin:4px 0 14px}.movie-video-shot-list{display:grid;gap:14px}.movie-video-shot-card{border:1px solid var(--line,var(--ml-border-subtle));border-radius:14px;padding:16px;background:var(--surface,var(--ml-layout-panel));display:grid;gap:12px}.movie-video-shot-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;flex-wrap:wrap}.movie-video-shot-head h3{margin:0}.movie-video-readiness-badge{display:inline-flex;align-items:center;border:1px solid var(--line,var(--ml-border-subtle));border-radius:999px;padding:5px 9px;font-size:12px;font-weight:700}.movie-video-warning-list,.movie-video-blocker-list{margin:0;padding-left:20px}.movie-video-warning-list{color:var(--ml-text-secondary)}.movie-video-blocker-list{color:var(--danger,var(--ml-danger-text))}.movie-video-progress{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.movie-video-candidate{display:grid;gap:10px;border-top:1px solid var(--line,var(--ml-border-subtle));padding-top:12px}.movie-video-candidate video{display:block;width:min(100%,430px);max-height:680px;border-radius:12px;background:var(--ml-text-primary)}.movie-video-candidate details pre{white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px;max-height:220px;overflow:auto}.movie-video-stale{font-size:13px;color:var(--ml-text-secondary)}
@media(max-width:720px){.movie-video-shot-head,.movie-video-progress{align-items:stretch}.movie-video-shot-card .button-row{width:100%}}

.movie-assistant-review{grid-column:1/-1;width:100%;box-sizing:border-box}
.movie-assistant-grounding{display:grid;gap:10px;padding:12px 14px;border:1px solid var(--ml-border-subtle);border-radius:12px;background:var(--ml-bg-secondary,var(--ml-layout-track-alt))}
.movie-assistant-grounding.hidden{display:none}
.movie-assistant-grounding-head{display:flex;align-items:baseline;justify-content:space-between;gap:12px;flex-wrap:wrap}
.movie-assistant-grounding-head span{color:var(--ml-text-muted);font-size:.88rem}
.movie-assistant-grounding-list{display:grid;gap:8px}
.movie-assistant-grounding-list article{display:grid;grid-template-columns:minmax(180px,1fr) auto;gap:4px 12px;padding-top:8px;border-top:1px solid var(--ml-border-subtle)}
.movie-assistant-grounding-list article:first-child{border-top:0;padding-top:0}
.movie-assistant-grounding-list article>span{color:var(--ml-text-secondary);text-align:right}
.movie-assistant-grounding-list small{grid-column:1/-1;color:var(--ml-text-muted);overflow-wrap:anywhere}
.movie-assistant-grounding-list code{font-size:.78rem;white-space:normal;overflow-wrap:anywhere}
.movie-assistant-review-copy{min-width:0;display:grid;gap:8px}
.movie-assistant-review-compare{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:14px;align-items:stretch}
.movie-assistant-review-compare>div,.movie-assistant-review-proposed{min-width:0;padding:10px 12px;border:1px solid var(--ml-border-subtle);border-radius:10px;background:var(--ml-surface,var(--ml-layout-panel))}
.movie-assistant-review-compare span,.movie-assistant-review-proposed>span{display:block;margin-bottom:6px;font-size:.78rem;font-weight:800;text-transform:uppercase;letter-spacing:.04em;color:var(--ml-text-muted)}
.movie-assistant-review-compare pre,.movie-assistant-review-proposed pre{white-space:pre-wrap;overflow-wrap:anywhere;overflow-x:hidden;margin:0;font:inherit;line-height:1.5;color:var(--ml-text-secondary)}
@media(max-width:900px){.movie-assistant-review-compare{grid-template-columns:1fr}.movie-assistant-grounding-list article{grid-template-columns:1fr}.movie-assistant-grounding-list article>span{text-align:left}}

.movie-assistant-editable-item{display:block}
.movie-assistant-item-select{display:flex;align-items:flex-start;gap:10px;margin-bottom:10px}
.movie-assistant-item-select input{margin-top:4px}
.movie-assistant-item-select strong{display:block;margin:0}
.movie-assistant-item-select small{display:block;margin-top:2px;color:var(--ml-text-muted);font-weight:500}
.movie-assistant-structured-editor{display:grid;gap:14px}
.movie-assistant-edit-field{display:grid;gap:6px}
.movie-assistant-edit-field>strong{font-size:.9rem}
.movie-assistant-review-compare textarea,.movie-assistant-review-proposed textarea,.movie-assistant-review-compare input,.movie-assistant-review-compare select{width:100%;box-sizing:border-box;line-height:1.5}
.movie-assistant-review-compare textarea,.movie-assistant-review-proposed textarea{min-height:110px;resize:vertical;white-space:pre-wrap;overflow-wrap:anywhere;overflow-x:hidden}
.movie-assistant-review-compare input,.movie-assistant-review-compare select{min-height:42px}
.movie-character-summary{min-width:0;display:grid;gap:5px}
.movie-character-grounding,.movie-character-specific-refs{margin-top:7px;padding:8px 10px;border:1px solid var(--ml-border-subtle);border-radius:9px;background:var(--ml-bg-secondary,var(--ml-layout-track-alt));font-size:.86rem}
.movie-character-grounding strong,.movie-character-specific-refs strong{display:block;margin-bottom:3px;font-size:.78rem;text-transform:uppercase;letter-spacing:.04em;color:var(--ml-text-muted)}
.movie-character-grounding.muted{opacity:.82}
@media(max-width:900px){.movie-assistant-review-compare textarea,.movie-assistant-review-proposed textarea{min-height:130px}}

.movie-production-overview{display:grid;gap:14px;margin:0 0 18px;padding:16px;border:1px solid var(--line,var(--ml-border-subtle));border-radius:14px;background:var(--ml-bg-secondary,var(--ml-layout-track-alt))}
.movie-production-overview .section-heading{margin:0}.movie-production-overview h3{margin:0}
.movie-production-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.movie-production-metrics>div,.movie-scene-production-metrics>div{display:grid;gap:3px;padding:11px 12px;border:1px solid var(--line,var(--ml-border-subtle));border-radius:11px;background:var(--surface,var(--ml-layout-panel));min-width:0}
.movie-production-metrics span,.movie-scene-production-metrics span,.movie-production-shot-meaning span{font-size:.78rem;font-weight:750;text-transform:uppercase;letter-spacing:.04em;color:var(--ml-text-muted)}
.movie-production-metrics strong,.movie-scene-production-metrics strong{font-size:1rem;overflow-wrap:anywhere}
.movie-production-metrics small,.movie-scene-production-metrics small{color:var(--ml-text-secondary);overflow-wrap:anywhere}
.movie-production-coverage{display:grid;gap:7px}.movie-production-coverage-head{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap}
.movie-production-progress-track{height:10px;border-radius:999px;background:var(--ml-border-subtle);overflow:hidden}
.movie-production-progress-track>span{display:block;height:100%;width:0;background:currentColor;opacity:.72;transition:width .2s ease}
.movie-scene-production-list{gap:16px}.movie-scene-production-card{padding:18px;gap:16px}
.movie-scene-production-head,.movie-production-shot-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:14px;flex-wrap:wrap}
.movie-production-kicker{font-size:.72rem;font-weight:850;letter-spacing:.08em;text-transform:uppercase;color:var(--ml-text-muted);margin-bottom:3px}
.movie-production-time{margin-top:5px;color:var(--ml-text-secondary);font-size:.9rem}
.movie-scene-production-summary{margin:0;max-width:920px;line-height:1.55;white-space:pre-wrap}
.movie-scene-production-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}
.movie-scene-coverage{display:grid;gap:6px}.movie-scene-next-action{display:grid;gap:3px;padding:12px 14px;border-left:4px solid currentColor;background:var(--ml-bg-secondary,var(--ml-layout-track-alt));border-radius:8px}
.movie-scene-next-action>span{font-size:.72rem;font-weight:850;letter-spacing:.08em}.movie-scene-production-actions{align-items:center}
.movie-scene-shot-section{display:grid;gap:10px;padding-top:14px;border-top:1px solid var(--line,var(--ml-border-subtle))}
.movie-scene-shot-section-heading{display:flex;justify-content:space-between;gap:14px;align-items:baseline;flex-wrap:wrap}.movie-scene-shot-section-heading h4,.movie-scene-shot-section-heading p{margin:0}.movie-scene-shot-section-heading p{color:var(--ml-text-secondary);font-size:.88rem}
.movie-scene-shot-grid{display:grid;gap:12px}.movie-production-shot-card{background:var(--surface,var(--ml-layout-panel))}.movie-production-shot-card h4{margin:0;font-size:1.02rem}
.movie-production-shot-meaning{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.movie-production-shot-meaning>div{padding:10px 11px;border-radius:10px;background:var(--ml-bg-secondary,var(--ml-layout-track-alt));min-width:0}.movie-production-shot-meaning p{margin:4px 0 0;line-height:1.45;white-space:pre-wrap;overflow-wrap:anywhere}
.movie-creator-status{align-items:flex-start}.movie-creator-status>span{color:var(--ml-text-secondary)}
.movie-video-generation-controls{align-items:center}.movie-video-resolution-control{display:inline-flex;align-items:center;gap:8px;font-weight:700}.movie-video-resolution-select{min-width:92px}
.movie-video-advanced{border-top:1px solid var(--line,var(--ml-border-subtle));padding-top:10px}.movie-video-advanced summary,.movie-video-workflow-help summary{cursor:pointer;font-weight:750}.movie-video-advanced pre{white-space:pre-wrap;overflow-wrap:anywhere;max-height:300px;overflow:auto;font-size:12px}
.movie-video-diagnostic-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:10px}.movie-video-diagnostic-grid>div{display:grid;gap:2px;padding:8px 10px;border-radius:8px;background:var(--ml-bg-secondary,var(--ml-layout-track-alt));min-width:0}.movie-video-diagnostic-grid span{font-size:.75rem;color:var(--ml-text-muted)}.movie-video-diagnostic-grid strong{font-size:.82rem;overflow-wrap:anywhere}
.movie-video-workflow-help{margin:0 0 14px;padding:10px 12px;border:1px solid var(--line,var(--ml-border-subtle));border-radius:10px}.movie-video-workflow-help p{margin:8px 0 0;color:var(--ml-text-secondary);line-height:1.45}
@media(max-width:900px){.movie-production-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.movie-scene-production-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:640px){.movie-production-metrics,.movie-scene-production-metrics,.movie-production-shot-meaning,.movie-video-diagnostic-grid{grid-template-columns:1fr}.movie-scene-production-card{padding:14px}.movie-scene-production-actions,.movie-video-generation-controls{width:100%}.movie-scene-production-actions>*:not(label),.movie-video-generation-controls>*:not(label){flex:1 1 100%}.movie-production-coverage-head{align-items:flex-start;flex-direction:column;gap:3px}}

.movie-audio-canonical-timing{display:grid;gap:4px;padding:10px 12px;border:1px solid var(--line,var(--ml-border-subtle));border-radius:10px;background:var(--ml-bg-secondary,var(--ml-layout-track-alt))}
.movie-audio-canonical-timing strong{font-size:.95rem}.movie-audio-canonical-timing span{color:var(--ml-text-secondary);font-size:.86rem;line-height:1.4}
.movie-scene-temporal-board{display:grid;gap:10px;padding:13px 14px;border:1px solid var(--line,var(--ml-border-subtle));border-radius:12px;background:var(--ml-bg-secondary,var(--ml-layout-track-alt))}
.movie-scene-temporal-head{display:flex;justify-content:space-between;gap:12px;align-items:baseline;flex-wrap:wrap}.movie-scene-temporal-head strong{font-size:.95rem}.movie-scene-temporal-head span{color:var(--ml-text-secondary);font-size:.86rem}
.movie-temporal-lane{display:grid;grid-template-columns:minmax(110px,150px) minmax(0,1fr);gap:10px;align-items:center}.movie-temporal-label{display:grid;gap:2px}.movie-temporal-label strong{font-size:.77rem;letter-spacing:.05em;text-transform:uppercase}.movie-temporal-label small{color:var(--ml-text-muted)}
.movie-temporal-track{position:relative;min-height:42px;border:1px solid var(--line,var(--ml-border-subtle));border-radius:8px;background:var(--surface,var(--ml-layout-panel));overflow:hidden}.movie-temporal-track::before{content:"";position:absolute;inset:0;background:linear-gradient(to right,transparent 49.7%,currentColor 50%,transparent 50.3%);opacity:.08;pointer-events:none}
.movie-temporal-bar{position:absolute;top:5px;bottom:5px;min-width:3px;padding:4px 6px;border:1px solid currentColor;border-radius:6px;background:var(--ml-bg-secondary,var(--ml-layout-track-alt));overflow:hidden;font-size:.72rem;line-height:1.15;white-space:nowrap;text-overflow:ellipsis}.movie-temporal-bar.is-audio{top:4px;bottom:4px}.movie-temporal-bar.is-video{top:4px;bottom:4px}
.movie-temporal-empty{display:flex;align-items:center;min-height:40px;padding:0 9px;color:var(--ml-text-muted);font-size:.8rem}
.movie-temporal-cohesion-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.movie-temporal-cohesion-summary>div{display:grid;gap:2px;padding:8px 10px;border-radius:8px;background:var(--surface,var(--ml-layout-panel))}.movie-temporal-cohesion-summary span{font-size:.72rem;text-transform:uppercase;letter-spacing:.04em;color:var(--ml-text-muted)}
.movie-temporal-warnings{margin:0;padding-left:20px;color:var(--ml-text-secondary);font-size:.84rem;line-height:1.4}
.movie-scene-production-metrics{grid-template-columns:repeat(auto-fit,minmax(170px,1fr))}
@media(max-width:720px){.movie-temporal-lane{grid-template-columns:1fr}.movie-temporal-cohesion-summary{grid-template-columns:1fr}.movie-temporal-track{min-height:46px}}


.movie-video-scene-navigation{display:grid;gap:10px;margin:16px 0 14px;min-width:0}
.movie-video-scene-navigation .section-heading,.movie-selected-scene-section>.section-heading{margin-bottom:0}
.movie-video-scene-tabs{display:flex;gap:8px;overflow-x:auto;overscroll-behavior-inline:contain;padding:2px 2px 8px;scrollbar-width:thin;min-width:0}
.movie-video-scene-tab{flex:0 0 auto;min-width:150px;max-width:210px;min-height:58px;padding:9px 11px;border:1px solid var(--line,var(--ml-border-subtle));border-radius:10px;background:var(--surface,var(--ml-layout-panel));color:inherit;text-align:left;display:grid;gap:2px;cursor:pointer}
.movie-video-scene-tab strong{font-size:.9rem}.movie-video-scene-tab span,.movie-video-scene-tab small{font-size:.76rem;color:var(--ml-text-secondary);overflow-wrap:anywhere}
.movie-video-scene-tab[aria-selected="true"]{border-color:currentColor;outline:2px solid color-mix(in srgb,currentColor 16%,transparent);outline-offset:0}
.movie-video-scene-tab:focus-visible,.movie-video-scene-subtab:focus-visible{outline:2px solid currentColor;outline-offset:2px}
.movie-selected-scene-section{display:grid;gap:12px;min-width:0}
.movie-video-scene-subtabs{display:flex;gap:8px;flex-wrap:wrap;border-bottom:1px solid var(--line,var(--ml-border-subtle));padding-bottom:8px}
.movie-video-scene-subtab{min-height:42px;padding:8px 13px;border:1px solid var(--line,var(--ml-border-subtle));border-radius:999px;background:transparent;color:inherit;font-weight:750;cursor:pointer}
.movie-video-scene-subtab[aria-selected="true"]{background:var(--ml-bg-secondary,var(--ml-layout-track-alt));border-color:currentColor}
.movie-selected-scene-workspace{margin:0}
@media(max-width:640px){.movie-video-scene-tabs{margin-inline:0}.movie-video-scene-tab{min-width:138px}.movie-video-scene-subtabs{flex-wrap:nowrap;overflow-x:auto;padding-bottom:9px}.movie-video-scene-subtab{flex:0 0 auto}}

/* Movie Multi-Engine Video Provider CR Build 1 — Shot execution preparation */
.movie-shot-preparation-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.movie-shot-preparation-grid label{display:grid;gap:5px;min-width:0}.movie-shot-preparation-grid label>span{font-size:.78rem;font-weight:750;text-transform:uppercase;letter-spacing:.04em;color:var(--ml-text-muted)}.movie-shot-preparation-grid select{width:100%;min-width:0}
@media(max-width:820px){.movie-shot-preparation-grid{grid-template-columns:1fr}}

/* Movie Build 2 Hotfix2 — Shot keyframe / continuity controls. */
.movie-shot-frame-control{display:flex;flex-direction:column;gap:.45rem;min-width:0}
.movie-shot-frame-control .button-row.compact{margin-top:.15rem;gap:.45rem;flex-wrap:wrap}
.movie-shot-keyframe-candidates{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:.75rem;margin-top:.8rem}
.movie-shot-keyframe-candidate{display:flex;flex-direction:column;gap:.45rem;padding:.7rem;border:1px solid var(--border-color,var(--ml-border-subtle));border-radius:.7rem;background:var(--surface,var(--ml-layout-panel))}
.movie-shot-keyframe-candidate img{display:block;width:100%;max-height:220px;object-fit:contain;border-radius:.5rem;background:var(--ml-text-primary)}
.movie-shot-continuity-advisory,.movie-provider-requirement-note{margin-top:.7rem;padding:.65rem .75rem;border:1px solid var(--border-color,var(--ml-border-subtle));border-radius:.6rem}
.movie-keyframe-aspect-control{display:flex!important;align-items:center;gap:.35rem;min-width:150px;font-size:.82rem;color:var(--ml-text-muted)}
.movie-keyframe-aspect-control select{width:auto!important;min-width:88px}
.movie-previous-shot-status{display:block;margin-top:.1rem}

/* Movie Multi-Engine Build 3 — keep the Creator anchored on the active Shot while async media changes layout. */
.movie-selected-scene-workspace,
.movie-scene-shot-grid,
.movie-video-shot-card { overflow-anchor: none; }
.movie-provider-native-audio { display:grid; gap:.55rem; padding:.75rem; margin-top:.65rem; border:1px solid var(--border,var(--ml-border-subtle)); border-radius:.7rem; }
.movie-provider-native-audio label,
.movie-provider-native-audio-toggle { display:flex; align-items:center; gap:.5rem; font-weight:600; }
.movie-provider-native-audio audio { width:100%; }
.movie-shot-keyframe-workspace{display:grid;gap:12px;padding:14px;border:1px solid var(--line,var(--ml-border-subtle));border-radius:12px;background:var(--ml-bg-secondary,var(--ml-layout-track-alt))}
.movie-keyframe-workspace-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;flex-wrap:wrap}.movie-keyframe-workspace-head h5{margin:0;font-size:.98rem}.movie-keyframe-workspace-head p{margin:3px 0 0;max-width:760px;color:var(--ml-text-secondary);font-size:.84rem}
.movie-keyframe-reference-summary{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;flex-wrap:wrap;padding:10px 0;border-top:1px solid var(--line,var(--ml-border-subtle));border-bottom:1px solid var(--line,var(--ml-border-subtle))}
.movie-keyframe-reference-chips{display:flex;flex-wrap:wrap;gap:6px;margin-top:6px}.movie-keyframe-reference-chips span{display:inline-flex;padding:4px 8px;border:1px solid var(--line,var(--ml-border-subtle));border-radius:999px;background:var(--ml-bg-primary,var(--ml-layout-panel));font-size:.76rem}
.movie-keyframe-global-controls{display:grid;grid-template-columns:minmax(200px,1.5fr) repeat(2,minmax(120px,.7fr));gap:10px}.movie-keyframe-global-controls label{display:grid;gap:5px}.movie-keyframe-global-controls label>span{font-size:.76rem;font-weight:750;text-transform:uppercase;letter-spacing:.04em;color:var(--ml-text-muted)}
.movie-keyframe-timeline{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:10px;align-items:start}.movie-keyframe-plan-card{display:grid;gap:8px;min-width:0;padding:10px;border:1px solid var(--line,var(--ml-border-subtle));border-radius:11px;background:var(--ml-bg-primary,var(--ml-layout-panel))}
.movie-keyframe-plan-head{display:flex;justify-content:space-between;align-items:flex-start;gap:8px}.movie-keyframe-plan-head>div{display:grid;gap:2px}.movie-keyframe-plan-head small{color:var(--ml-text-muted)}.movie-keyframe-position{font-size:.74rem;font-weight:800;color:var(--ml-text-muted)}
.movie-keyframe-status{display:inline-flex;align-items:center;padding:3px 7px;border:1px solid var(--line,var(--ml-border-subtle));border-radius:999px;font-size:.72rem;font-weight:750}.movie-keyframe-status.accepted{font-weight:850}.movie-keyframe-accepted-image{width:100%;max-height:230px;object-fit:contain;border-radius:8px;background:var(--ml-bg-tertiary,var(--ml-layout-panel-muted))}.movie-keyframe-empty{display:grid;place-items:center;min-height:120px;padding:10px;border:1px dashed var(--line,var(--ml-border-subtle));border-radius:8px;color:var(--ml-text-muted);font-size:.8rem;text-align:center}.movie-keyframe-beat{margin:0;font-size:.82rem;color:var(--ml-text-secondary)}
@media(max-width:820px){.movie-keyframe-global-controls{grid-template-columns:1fr}.movie-keyframe-timeline{grid-template-columns:1fr}}
.movie-director-speech-summary{display:grid;gap:8px;padding:12px;border:1px solid var(--ml-border-subtle);border-radius:12px;background:var(--ml-bg-secondary,var(--ml-layout-track-alt))}
.movie-director-speech-summary>div{display:flex;justify-content:space-between;gap:12px;align-items:baseline;flex-wrap:wrap}.movie-director-speech-summary>div span{color:var(--ml-text-secondary);font-size:.86rem}.movie-director-speech-summary.has-missing{border-style:dashed}
.movie-director-speaker-review{display:grid;gap:10px;margin-top:8px;padding-top:9px;border-top:1px dashed var(--ml-border-subtle)}.movie-director-speaker-review-head{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}.movie-speaker-review-ok{font-size:.78rem;font-weight:750}.movie-speaker-review-missing{font-size:.78rem;font-weight:750;text-decoration:underline}
.movie-speaker-blocking-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:8px}.movie-speaker-blocking-grid>div{display:grid;gap:2px;padding:8px 9px;border:1px solid var(--ml-border-subtle);border-radius:9px;background:var(--ml-surface,var(--ml-layout-panel))}.movie-speaker-blocking-grid span,.movie-speaker-blocking-grid small{color:var(--ml-text-secondary)}
.movie-speech-binding-list{display:grid;gap:8px}.movie-speech-binding-list>article{display:grid;gap:5px;padding:9px 10px;background:var(--ml-surface,var(--ml-layout-panel));border:1px solid var(--ml-border-subtle);border-radius:9px}.movie-speech-binding-head{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}.movie-speech-binding-head span{font-size:.75rem;font-weight:800;letter-spacing:.04em}.movie-speech-binding-list p{margin:0;line-height:1.4}.movie-speech-listeners{display:grid;gap:3px}.movie-speech-listeners>span{font-size:.78rem;color:var(--ml-text-muted)}.movie-speech-listeners ul{margin:0;padding-left:18px;display:grid;gap:2px;font-size:.85rem}
.movie-speaker-review-warning,.movie-speaker-review-advisory{padding:9px 10px;border:1px dashed var(--ml-border-subtle);border-radius:9px;background:var(--ml-surface,var(--ml-layout-panel));font-size:.88rem;line-height:1.4}.movie-speaker-review-advisory .button-row{margin-top:6px}
.movie-actor-inventory{display:grid;gap:12px;padding:14px;border:1px solid var(--ml-border-subtle);border-radius:12px;background:var(--ml-surface-subtle,var(--ml-layout-canvas))}
.movie-actor-inventory .section-heading{margin:0}.movie-actor-inventory-group{display:grid;gap:8px}.movie-actor-inventory-group>strong{font-size:.82rem;text-transform:uppercase;letter-spacing:.05em;color:var(--ml-text-muted)}
.movie-actor-inventory-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(260px,.9fr);gap:12px;align-items:start;padding:10px 12px;border:1px solid var(--ml-border-subtle);border-radius:10px;background:var(--ml-surface,var(--ml-layout-panel))}
.movie-actor-inventory-row.is-resolved{grid-template-columns:1fr}.movie-actor-inventory-copy,.movie-actor-inventory-row>div{display:grid;gap:4px}.movie-actor-inventory-row small{color:var(--ml-text-muted)}
.movie-actor-inventory-actions{display:grid;grid-template-columns:minmax(180px,1fr) auto;gap:8px;align-items:center}.movie-actor-inventory-actions select{min-height:40px;width:100%}.movie-actor-inventory-actions [data-actor-create],.movie-actor-inventory-actions [data-actor-ignore]{grid-column:2}.movie-actor-inventory-empty{color:var(--ml-text-muted)}
@media(max-width:900px){.movie-actor-inventory-row{grid-template-columns:1fr}.movie-actor-inventory-actions{grid-template-columns:1fr}.movie-actor-inventory-actions [data-actor-create],.movie-actor-inventory-actions [data-actor-ignore]{grid-column:1}}

/* Movie CR Build 3 Tranche 2 Hotfix5 — deterministic Creator production guidance. */
.movie-production-guide{display:grid;gap:14px;border:1px solid var(--ml-border-subtle);background:var(--ml-surface,var(--ml-layout-panel))}
.movie-production-guide-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;flex-wrap:wrap}.movie-production-guide-head h2{margin:.2rem 0 .35rem}.movie-production-guide-head p{margin:0;color:var(--ml-text-secondary);max-width:780px}
.movie-production-guide-current{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap}.movie-production-guide-current>span,.movie-production-guide-kicker,.movie-production-guide-optional>span{font-size:.78rem;font-weight:800;text-transform:uppercase;letter-spacing:.06em;color:var(--ml-text-muted)}.movie-production-guide-current>strong{font-size:1.08rem}
.movie-production-guide-checks{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:8px}.movie-production-guide-check{display:flex;gap:8px;align-items:center;padding:9px 10px;border:1px solid var(--ml-border-subtle);border-radius:10px;background:var(--ml-bg-secondary,var(--ml-layout-track-alt));font-size:.9rem}.movie-production-guide-check>span{font-weight:900;min-width:1rem;text-align:center}.movie-production-guide-check.is-needs_attention,.movie-production-guide-check.is-stale{font-weight:700}
.movie-production-guide-next{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:14px;border:1px solid var(--ml-border-subtle);border-radius:12px;background:var(--ml-bg-secondary,var(--ml-layout-track-alt))}.movie-production-guide-next>div{display:grid;gap:4px}.movie-production-guide-next strong{font-size:1.05rem}.movie-production-guide-next p{margin:0;color:var(--ml-text-secondary);max-width:780px;line-height:1.45}.movie-production-guide-next>button{flex:0 0 auto}
.movie-production-guide-blockers{padding:11px 13px;border:1px solid var(--ml-border-subtle);border-radius:10px}.movie-production-guide-blockers ul{margin:6px 0 0;padding-left:20px;display:grid;gap:4px}
.movie-production-guide-optional{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.movie-production-roadmap summary{cursor:pointer;font-weight:800}.movie-production-roadmap ol{list-style:none;margin:10px 0 0;padding:0;display:grid;gap:6px}.movie-production-roadmap li{display:grid;grid-template-columns:24px minmax(0,1fr);gap:6px;align-items:start}.movie-production-roadmap li>span{font-weight:900;padding-top:7px;text-align:center}.movie-production-roadmap button{width:100%;display:grid;gap:2px;text-align:left;border:0;background:transparent;color:inherit;padding:6px 8px;border-radius:8px;font:inherit;cursor:pointer}.movie-production-roadmap button:hover:not(:disabled),.movie-production-roadmap button:focus-visible{background:var(--ml-bg-secondary,var(--ml-layout-track-alt));outline:none}.movie-production-roadmap button:disabled{cursor:default;opacity:.72}.movie-production-roadmap small{color:var(--ml-text-muted);line-height:1.35}.movie-production-roadmap .is-current button{background:var(--ml-bg-secondary,var(--ml-layout-panel-muted))}
.movie-nav-panel-btn .movie-nav-guide-status{margin-left:auto;display:inline-grid;place-items:center;width:18px;height:18px;border:1px solid currentColor;border-radius:999px;font-size:11px;font-weight:900;line-height:1}.movie-nav-panel-btn .movie-nav-guide-status.is-optional,.movie-nav-panel-btn .movie-nav-guide-status.is-not_started,.movie-nav-panel-btn .movie-nav-guide-status.is-upcoming,.movie-nav-guide-status.is-loading{opacity:.6}
.movie-assistant-stale-review{padding:14px;border:1px solid var(--ml-border-subtle);border-radius:12px;background:var(--ml-bg-secondary,var(--ml-layout-track-alt))}.movie-assistant-stale-review p{margin:.4rem 0 0;color:var(--ml-text-secondary)}
@media(max-width:760px){.movie-production-guide-next{align-items:stretch;flex-direction:column}.movie-production-guide-next>button{width:100%}.movie-production-guide-checks{grid-template-columns:1fr}.movie-nav-panel-btn .movie-nav-guide-status{margin-left:6px}}

/* Movie CR Build 3 Tranche 2 Hotfix6 Correction1 — semantic Storyboard + Cast review UX */
.movie-preproduction-atomic-review{display:block;padding:0;border:0;background:transparent}
.movie-preproduction-atomic-note{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:16px;padding:12px 14px;border:1px solid var(--ml-border-subtle);border-radius:12px;background:var(--ml-bg-secondary,var(--ml-layout-track-alt))}
.movie-preproduction-atomic-note strong{white-space:nowrap}.movie-preproduction-atomic-note span{color:var(--ml-text-secondary);text-align:right}
.movie-preproduction-review{display:grid;gap:24px}.movie-preproduction-section{display:grid;gap:14px}.movie-preproduction-section+.movie-preproduction-section{padding-top:22px;border-top:1px solid var(--ml-border-subtle)}
.movie-preproduction-section-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;flex-wrap:wrap}.movie-preproduction-section-head h3{margin:2px 0 0}.movie-preproduction-section-head p{max-width:780px;margin:5px 0 0;color:var(--ml-text-secondary);line-height:1.5}
.movie-preproduction-kicker{font-size:.72rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--ml-text-muted)}
.movie-preproduction-count,.movie-preproduction-scene-number,.movie-preproduction-kind-badge{display:inline-flex;align-items:center;min-height:28px;padding:3px 10px;border:1px solid var(--ml-border-subtle);border-radius:999px;background:var(--ml-surface,var(--ml-layout-panel));font-size:.78rem;font-weight:800;color:var(--ml-text-secondary);white-space:nowrap}
.movie-preproduction-scene-list{display:grid;gap:16px}.movie-preproduction-scene-card,.movie-preproduction-cast-card{display:grid;gap:16px;padding:18px;border:1px solid var(--ml-border-subtle);border-radius:14px;background:var(--ml-surface,var(--ml-layout-panel));box-shadow:0 1px 2px var(--ml-overlay-soft)}
.movie-preproduction-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.movie-preproduction-card-head h4{margin:3px 0 0;font-size:1.05rem}.movie-preproduction-card-head .comic-meta{margin-top:4px}
.movie-preproduction-field-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 14px}.movie-preproduction-field-grid label{display:grid;gap:6px;min-width:0}.movie-preproduction-field-grid label>span{font-size:.84rem;font-weight:700;color:var(--ml-text-secondary)}.movie-preproduction-field-grid .wide{grid-column:1/-1}.movie-preproduction-field-grid input,.movie-preproduction-field-grid select,.movie-preproduction-field-grid textarea{width:100%;box-sizing:border-box;line-height:1.45}.movie-preproduction-field-grid input,.movie-preproduction-field-grid select{min-height:42px}.movie-preproduction-field-grid textarea{resize:vertical;min-height:86px}
.movie-preproduction-performers{display:grid;gap:10px;padding-top:2px}.movie-preproduction-subhead{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.movie-preproduction-subhead strong{display:block}.movie-preproduction-subhead small{display:block;margin-top:3px;color:var(--ml-text-muted)}.movie-preproduction-performer-list{display:grid;gap:8px}.movie-preproduction-performer-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(150px,210px);gap:12px;align-items:center;padding:10px 12px;border:1px solid var(--ml-border-subtle);border-radius:10px;background:var(--ml-bg-secondary,var(--ml-layout-track-alt))}.movie-preproduction-performer-toggle{display:flex;align-items:flex-start;gap:10px;min-width:0}.movie-preproduction-performer-toggle input{margin-top:3px}.movie-preproduction-performer-toggle span{display:grid;gap:2px;min-width:0}.movie-preproduction-performer-toggle strong{overflow-wrap:anywhere}.movie-preproduction-performer-toggle small{color:var(--ml-text-muted)}.movie-preproduction-performer-row select{width:100%;min-height:40px}.movie-preproduction-performer-row select:disabled{opacity:.55}
.movie-preproduction-cast-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.movie-preproduction-more{border-top:1px solid var(--ml-border-subtle);padding-top:10px}.movie-preproduction-more summary{cursor:pointer;font-weight:700;color:var(--ml-text-secondary)}.movie-preproduction-more[open] summary{margin-bottom:12px}
@media(max-width:980px){.movie-preproduction-cast-grid{grid-template-columns:1fr}.movie-preproduction-field-grid{grid-template-columns:1fr}.movie-preproduction-field-grid .wide{grid-column:1}.movie-preproduction-performer-row{grid-template-columns:1fr}.movie-preproduction-atomic-note{display:grid}.movie-preproduction-atomic-note span{text-align:left}}

/* Movie CR Build 3 Tranche 2 Hotfix6 Correction2 — panel-scoped workspace + compact pre-production UX */
.movie-storyboard-authority-list{display:grid;gap:12px;margin-bottom:12px}
.movie-storyboard-manual-add{margin-top:14px;border-top:1px solid var(--ml-border-subtle);padding-top:12px}
.movie-storyboard-manual-add>summary{cursor:pointer;font-weight:800;color:var(--ml-text-secondary);padding:4px 0 10px}
.movie-storyboard-manual-add[open]>summary{margin-bottom:8px}
.movie-storyboard-manual-add form{padding:14px;border:1px solid var(--ml-border-subtle);border-radius:12px;background:var(--ml-bg-secondary,var(--ml-layout-track-alt))}

.movie-preproduction-cast-strip{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(260px,310px);gap:12px;overflow-x:auto;overflow-y:hidden;padding:2px 2px 12px;scroll-snap-type:x proximity;overscroll-behavior-inline:contain}
.movie-preproduction-cast-strip:focus-visible{outline:2px solid currentColor;outline-offset:4px;border-radius:10px}
.movie-preproduction-cast-tile{scroll-snap-align:start;align-content:start;min-width:0;padding:14px;gap:12px}
.movie-preproduction-cast-tile .movie-preproduction-card-head{gap:8px}
.movie-preproduction-cast-tile .movie-preproduction-card-head h4{font-size:1rem;line-height:1.25;overflow-wrap:anywhere}
.movie-preproduction-cast-core{display:grid;grid-template-columns:1fr 1fr;gap:9px}
.movie-preproduction-cast-core label{display:grid;gap:4px;min-width:0}
.movie-preproduction-cast-core label>span{font-size:.76rem;font-weight:800;color:var(--ml-text-secondary)}
.movie-preproduction-cast-core input,.movie-preproduction-cast-core select{width:100%;min-height:38px;box-sizing:border-box}
.movie-preproduction-cast-tile .movie-preproduction-more{margin-top:2px}

.movie-preproduction-performer-table{overflow:hidden;border:1px solid var(--ml-border-subtle);border-radius:10px;background:var(--ml-surface,var(--ml-layout-panel))}
.movie-preproduction-performer-header,.movie-preproduction-performer-row{display:grid;grid-template-columns:54px minmax(180px,1fr) minmax(110px,150px) minmax(150px,210px);gap:10px;align-items:center}
.movie-preproduction-performer-header{padding:7px 10px;background:var(--ml-bg-secondary,var(--ml-layout-panel-muted));border-bottom:1px solid var(--ml-border-subtle);font-size:.72rem;font-weight:800;text-transform:uppercase;letter-spacing:.04em;color:var(--ml-text-muted)}
.movie-preproduction-performer-list{display:block}
.movie-preproduction-performer-row{padding:7px 10px;border:0;border-bottom:1px solid var(--ml-border-subtle);border-radius:0;background:transparent;min-height:46px}
.movie-preproduction-performer-row:last-child{border-bottom:0}
.movie-preproduction-performer-use{display:grid;place-items:center}
.movie-preproduction-performer-use input{width:18px;height:18px;margin:0}
.movie-preproduction-performer-identity{display:grid;gap:1px;min-width:0}
.movie-preproduction-performer-identity strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.movie-preproduction-performer-identity small{color:var(--ml-text-muted);font-size:.75rem}
.movie-preproduction-performer-row select{width:100%;min-height:36px;padding-block:4px}
.movie-preproduction-performer-row select:disabled{opacity:.5}

@media(max-width:760px){
  .movie-preproduction-cast-strip{grid-auto-columns:minmax(245px,82vw)}
  .movie-preproduction-performer-header{display:none}
  .movie-preproduction-performer-row{grid-template-columns:34px minmax(0,1fr) 110px;gap:8px}
  .movie-preproduction-performer-row>div:last-child{grid-column:2/4}
  .movie-preproduction-performer-identity strong{white-space:normal}
}

/* Movie CR Build 3 Tranche 2 Hotfix6 Correction3 — no raw JSON Creator workflow + semantic screenplay/director review */
.movie-screenplay-review{display:grid;gap:14px}
.movie-screenplay-review-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;flex-wrap:wrap}
.movie-screenplay-review-head h3{margin:2px 0 4px}.movie-screenplay-review-head p{margin:0;max-width:760px;color:var(--ml-text-secondary);line-height:1.45}
.movie-screenplay-block-count{display:inline-flex;align-items:center;min-height:28px;padding:3px 10px;border:1px solid var(--ml-border-subtle);border-radius:999px;background:var(--ml-bg-secondary,var(--ml-layout-track-alt));font-size:.78rem;font-weight:800;color:var(--ml-text-secondary)}
.movie-screenplay-review [data-screenplay-block-list]{display:grid;gap:10px}
.movie-screenplay-review-block{display:grid;gap:10px;padding:12px 14px;border:1px solid var(--ml-border-subtle);border-radius:12px;background:var(--ml-surface,var(--ml-layout-panel))}
.movie-screenplay-review-block-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.movie-screenplay-review-block-head strong{font-size:.9rem}
.movie-screenplay-review-grid{display:grid;grid-template-columns:minmax(150px,220px) minmax(220px,1fr);gap:10px 12px}.movie-screenplay-review-grid label{display:grid;gap:5px;min-width:0}.movie-screenplay-review-grid label>span{font-size:.78rem;font-weight:800;color:var(--ml-text-secondary)}.movie-screenplay-review-grid .wide{grid-column:1/-1}.movie-screenplay-review-grid input,.movie-screenplay-review-grid select,.movie-screenplay-review-grid textarea{width:100%;box-sizing:border-box}.movie-screenplay-review-grid textarea{min-height:82px;resize:vertical}.movie-screenplay-review-grid .is-disabled{opacity:.55}
.movie-cast-change-review{display:grid;gap:14px}.movie-cast-change-alert{display:grid;gap:4px;padding:12px 14px;border:1px solid var(--ml-border-subtle);border-radius:12px;background:var(--ml-bg-secondary,var(--ml-layout-track-alt))}.movie-cast-change-alert span{color:var(--ml-text-secondary);line-height:1.45}
.movie-cast-change-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px 12px}.movie-cast-change-grid label{display:grid;gap:5px;min-width:0}.movie-cast-change-grid label>span{font-size:.78rem;font-weight:800;color:var(--ml-text-secondary)}.movie-cast-change-grid .wide{grid-column:1/-1}.movie-cast-change-grid input,.movie-cast-change-grid select,.movie-cast-change-grid textarea{width:100%;box-sizing:border-box}
.movie-director-semantic-editor{display:grid;gap:14px;min-width:min(760px,82vw)}.movie-director-edit-intro{margin:0;color:var(--ml-text-secondary);line-height:1.45}
.movie-director-edit-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 12px}.movie-director-edit-field{display:grid;gap:5px;min-width:0}.movie-director-edit-field>span,.movie-director-edit-group>strong{font-size:.78rem;font-weight:800;color:var(--ml-text-secondary)}.movie-director-edit-field.wide{grid-column:1/-1}.movie-director-edit-field input,.movie-director-edit-field select,.movie-director-edit-field textarea{width:100%;box-sizing:border-box}.movie-director-edit-field textarea{resize:vertical;min-height:78px}
.movie-director-edit-group{grid-column:1/-1;display:grid;gap:8px;padding:10px 12px;border:1px solid var(--ml-border-subtle);border-radius:10px;background:var(--ml-bg-secondary,var(--ml-layout-track-alt))}.movie-director-edit-array-item{display:grid;gap:8px;padding:10px;border:1px solid var(--ml-border-subtle);border-radius:9px;background:var(--ml-surface,var(--ml-layout-panel))}
.movie-director-edit-linked{display:grid;gap:3px;padding:8px 10px;border:1px solid var(--ml-border-subtle);border-radius:9px;background:var(--ml-bg-secondary,var(--ml-layout-track-alt))}.movie-director-edit-linked strong{font-size:.86rem}.movie-director-edit-linked small{color:var(--ml-text-muted)}
.movie-director-edit-checks{display:flex;flex-wrap:wrap;gap:7px 10px}.movie-director-edit-checks label{display:inline-flex;align-items:center;gap:6px;padding:6px 8px;border:1px solid var(--ml-border-subtle);border-radius:999px;background:var(--ml-surface,var(--ml-layout-panel));font-size:.82rem}
@media(max-width:760px){.movie-screenplay-review-grid,.movie-cast-change-grid,.movie-director-edit-grid{grid-template-columns:1fr}.movie-screenplay-review-grid .wide,.movie-cast-change-grid .wide,.movie-director-edit-field.wide{grid-column:1}.movie-director-semantic-editor{min-width:0}.movie-screenplay-review-block-head{align-items:flex-start}}

/* Correction7: surface polyphonic relationships without retiming or hiding overlap. */
.movie-timeline-clip.is-speech{grid-template-rows:16px 16px auto minmax(20px,1fr) 24px}
.movie-timeline-clip-relations{display:flex;gap:3px;min-width:0;overflow:hidden;white-space:nowrap}
.movie-timeline-clip-relations span{font-size:8px;line-height:13px;padding:0 4px;border:1px solid currentColor;border-radius:999px;overflow:hidden;text-overflow:ellipsis}
.movie-timeline-clip.is-overlap{border-style:double}
.movie-timeline-clip.is-barge-in{border-width:2px}

/* Movie CR Build 3 Tranche 4 — picture lock + audio conform Creator workspace */
.movie-conform-transition-editor,.movie-conform-track-section,.movie-conform-audio-section{display:grid;gap:10px;padding:14px;border:1px solid var(--ml-border-subtle);border-radius:12px;background:var(--ml-bg-secondary,var(--ml-layout-track-alt))}
.movie-transition-row{display:grid;grid-template-columns:minmax(180px,1fr) minmax(130px,180px) 110px auto;gap:9px;align-items:center;padding:8px 0;border-top:1px solid var(--ml-border-subtle)}
.movie-transition-row:first-of-type{border-top:0}.movie-transition-row select,.movie-transition-row input{min-height:38px;width:100%;box-sizing:border-box}
.movie-conform-player-shell video{width:min(100%,760px);max-height:70vh}.movie-conform-playback-controls{display:grid;grid-template-columns:auto auto auto minmax(180px,1fr) auto;gap:8px;align-items:center}.movie-conform-playback-controls input[type=range]{width:100%}
.movie-conform-track-label{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:.78rem;letter-spacing:.03em}.movie-conform-track-label span{color:var(--ml-text-muted);font-size:.72rem}
.movie-picture-track,.movie-audio-track-lane{position:relative;min-height:68px;border:1px solid var(--ml-border-subtle);border-radius:9px;overflow:hidden;background:var(--ml-surface,var(--ml-layout-panel))}
.movie-picture-shot{position:absolute;top:7px;bottom:7px;display:grid;align-content:center;gap:2px;min-width:34px;padding:4px 7px;box-sizing:border-box;border:1px solid var(--ml-border-subtle,var(--ml-border-default));border-radius:7px;background:var(--ml-bg-secondary,var(--ml-layout-panel-muted));overflow:hidden}.movie-picture-shot strong,.movie-picture-shot small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.movie-picture-shot small{font-size:.68rem;color:var(--ml-text-muted)}
.movie-picture-transition{position:absolute;top:0;bottom:0;display:flex;align-items:flex-start;justify-content:center;border-left:1px dashed currentColor;border-right:1px dashed currentColor;pointer-events:none;opacity:.85}.movie-picture-transition span{margin-top:2px;padding:1px 4px;border-radius:999px;background:var(--ml-surface,var(--ml-layout-panel));font-size:.64rem;font-weight:800;white-space:nowrap}
.movie-conform-audio-section{gap:16px}.movie-audio-track-row{display:grid;gap:7px}.movie-audio-track-lane{min-height:54px;background:linear-gradient(to right,transparent 24.8%,var(--ml-border-subtle) 25%,transparent 25.2%,transparent 49.8%,var(--ml-border-subtle) 50%,transparent 50.2%,transparent 74.8%,var(--ml-border-subtle) 75%,transparent 75.2%),var(--ml-surface,var(--ml-layout-panel))}
.movie-audio-clip{position:absolute;top:7px;bottom:7px;display:grid;align-content:center;gap:1px;min-width:30px;padding:3px 7px;box-sizing:border-box;border:1px solid var(--ml-border-subtle,var(--ml-text-disabled));border-radius:7px;background:var(--ml-bg-secondary,var(--ml-layout-panel-muted));cursor:grab;touch-action:none;overflow:hidden}.movie-audio-clip:active{cursor:grabbing}.movie-audio-clip strong,.movie-audio-clip small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.movie-audio-clip small{font-size:.66rem}.movie-audio-clip.muted{opacity:.45}.movie-audio-clip.solo{outline:2px solid currentColor;outline-offset:1px}
.movie-audio-clip-controls{display:flex;align-items:center;flex-wrap:wrap;gap:7px 9px;padding:7px 9px;border:1px solid var(--ml-border-subtle);border-radius:8px;background:var(--ml-surface,var(--ml-layout-panel));font-size:.76rem}.movie-audio-clip-controls>span{min-width:130px;font-weight:800}.movie-audio-clip-controls label{display:inline-flex;align-items:center;gap:4px}.movie-audio-clip-controls input[type=number]{width:74px;min-height:32px}.movie-audio-clip-controls button{min-height:32px}
@media(max-width:760px){.movie-transition-row{grid-template-columns:1fr 1fr}.movie-transition-row strong{grid-column:1/-1}.movie-conform-playback-controls{grid-template-columns:repeat(3,auto);}.movie-conform-playback-controls input[type=range]{grid-column:1/-1}.movie-conform-playback-controls span{grid-column:1/-1}.movie-audio-clip-controls{align-items:flex-start}.movie-audio-clip-controls>span{width:100%}}

/* Movie account/domain navigation authority — Same-Build Hotfix3 */
.comic-shell.movie-domain-mode{--studio-context-rail-width:210px}
.comic-shell.movie-domain-mode .comic-nav{padding:10px 10px 14px;overflow-y:auto}
.comic-shell.movie-domain-mode .movie-domain-nav-item{min-height:0;flex-direction:row;align-items:center;justify-content:flex-start;gap:10px;padding:10px 11px;border-radius:10px;text-align:left;font-size:13px;line-height:1.2}
.comic-shell.movie-domain-mode .movie-domain-nav-item .nav-icon{width:22px;height:22px;flex:0 0 22px}
.comic-shell.movie-domain-mode .movie-domain-nav-item .nav-icon svg{width:21px;height:21px}
.comic-shell.movie-domain-mode .movie-domain-nav-item:hover,.comic-shell.movie-domain-mode .movie-domain-nav-item:focus-visible{background:var(--ml-bg-secondary,var(--ml-layout-track-alt));outline:none}
.comic-shell.movie-domain-mode .movie-domain-nav-item.active{background:var(--ml-bg-secondary,var(--ml-layout-panel-muted));color:var(--ml-text-primary);font-weight:800}
.movie-account-view{display:grid;gap:20px}.movie-account-view.hidden{display:none!important}
.movie-dashboard-summary{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}
.movie-summary-card{display:grid;gap:6px;padding:18px}.movie-summary-card span{font-size:.82rem;color:var(--ml-text-secondary);font-weight:700}.movie-summary-card strong{font-size:1.8rem;line-height:1}
.movie-dashboard-grid{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(280px,.65fr);gap:20px;align-items:start}.movie-dashboard-grid>section:first-child{grid-row:span 2}
.movie-account-form{max-width:900px}.movie-account-tabs{display:flex;gap:8px;flex-wrap:wrap}.movie-account-tabs button.active{background:var(--ml-bg-secondary,var(--ml-layout-panel-muted));font-weight:800}
.movie-character-account-panel{display:grid;gap:16px}.movie-character-account-panel.hidden{display:none!important}.movie-account-selector{display:grid;gap:6px;max-width:520px}
.movie-universe-list{display:grid;gap:10px}.movie-universe-card{display:flex;justify-content:space-between;gap:16px;border-top:1px solid var(--ml-border-subtle);padding:14px 0}.movie-universe-card:first-child{border-top:0}.movie-universe-card p{margin:.35rem 0;color:var(--ml-text-muted);white-space:pre-wrap}
.movie-core-cast-helper{border:1px solid var(--ml-border-subtle);background:var(--ml-bg-secondary,var(--ml-layout-track-alt));border-radius:12px;padding:12px 14px}.movie-core-cast-helper p{margin:4px 0 0;color:var(--ml-text-secondary)}
.icon-label-button{display:inline-flex;align-items:center;gap:7px}.icon-label-button svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
@media(max-width:1100px){.movie-dashboard-summary{grid-template-columns:repeat(3,minmax(0,1fr))}.movie-dashboard-grid{grid-template-columns:1fr}.movie-dashboard-grid>section:first-child{grid-row:auto}}
@media(max-width:900px){.comic-shell.movie-domain-mode{--studio-context-rail-width:0px}.comic-shell.movie-domain-mode .comic-nav{position:static;width:auto;display:flex!important;flex-direction:row;overflow-x:auto;overflow-y:hidden;border:0;border-bottom:1px solid var(--ml-border-subtle);padding:6px 12px}.comic-shell.movie-domain-mode .movie-domain-nav-item{width:auto;min-width:max-content;flex:0 0 auto;padding:8px 12px}.comic-shell.movie-domain-mode .movie-domain-nav-item .nav-icon{display:grid}.movie-dashboard-summary{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.movie-dashboard-summary{grid-template-columns:1fr}.comic-shell.movie-domain-mode .movie-domain-nav-item span:last-child{display:none}.comic-shell.movie-domain-mode .movie-domain-nav-item{min-width:44px;justify-content:center;padding:8px}}
.movie-action-icon{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;vertical-align:-3px;margin-right:5px}
.movie-storyboard-visual-dialog{width:min(920px,calc(100vw - 24px))}.movie-storyboard-visual-dialog header{align-items:flex-start}.movie-storyboard-visual-dialog header p{margin:.35rem 0 0}.movie-storyboard-visual-body{padding:16px;display:grid;gap:14px;max-height:68vh;overflow:auto}.movie-storyboard-visual-list{display:grid;gap:10px}.movie-storyboard-visual-group{margin-top:4px;padding:4px 2px 0;font-size:.78rem;font-weight:700;letter-spacing:.05em;color:var(--ml-text-muted)}.movie-storyboard-visual-item{display:grid;grid-template-columns:auto 88px minmax(0,1fr);gap:12px;align-items:center;padding:11px;border:1px solid var(--ml-border-subtle);border-radius:12px;background:var(--ml-surface,var(--ml-layout-panel))}.movie-storyboard-visual-item input{width:18px;height:18px}.movie-storyboard-visual-item img{width:88px;height:88px;object-fit:contain;border-radius:10px;background:var(--ml-bg-secondary,var(--ml-layout-track-alt))}.movie-storyboard-visual-copy{min-width:0}.movie-storyboard-visual-copy strong{display:block}.movie-storyboard-visual-meta{display:flex;gap:8px 14px;flex-wrap:wrap;margin-top:4px;color:var(--ml-text-muted);font-size:.84rem}.movie-storyboard-visual-error{margin-top:5px;color:var(--ml-danger,var(--ml-danger-text));font-size:.84rem}.movie-storyboard-visual-summary{padding:11px 12px;border:1px solid var(--ml-border-subtle);border-radius:10px;background:var(--ml-bg-secondary,var(--ml-layout-track-alt));color:var(--ml-text-secondary)}@media(max-width:720px){.movie-storyboard-visual-item{grid-template-columns:auto 64px minmax(0,1fr)}.movie-storyboard-visual-item img{width:64px;height:64px}}

.movie-duration-authority{display:grid;gap:3px;margin:10px 0;padding:10px 12px;border:1px solid var(--ml-info-border);border-radius:12px;background:var(--ml-info-bg);color:var(--ml-info-text)}
.movie-duration-authority small{color:inherit}.movie-duration-authority.is-current{border-color:var(--ml-success-border);background:var(--ml-success-bg);color:var(--ml-success-text)}
.movie-duration-authority.is-warning{border-color:var(--ml-warning-border);background:var(--ml-warning-bg);color:var(--ml-warning-text)}
.notice.success{color:var(--ml-success-text);background:var(--ml-success-bg);border:1px solid var(--ml-success-border)}
.notice.warning,.stale{color:var(--ml-warning-text);background:var(--ml-warning-bg);border-color:var(--ml-warning-border)}
.notice.error,.failed{color:var(--ml-danger-text);background:var(--ml-danger-bg);border-color:var(--ml-danger-border)}
.current,.selected{--ml-current-state-accent:var(--ml-accent);}

/* Hotfix5 Corrective3: staleness is Creator review advice, not an error gate. */
.movie-stale-advisory,.movie-production-guide-warnings{display:grid;gap:5px;padding:10px 12px;border:1px solid var(--ml-warning-border);border-radius:10px;background:var(--ml-warning-bg);color:var(--ml-warning-text);font-size:.9rem;line-height:1.4}
.movie-stale-advisory span{color:inherit}.movie-production-guide-warnings ul{margin:4px 0 0;padding-left:20px}.movie-production-guide-warnings.hidden{display:none!important}
.movie-production-guide-check.is-warning,.movie-production-roadmap .is-warning,.movie-nav-guide-status.is-warning,.movie-nav-guide-status.is-stale{color:var(--ml-warning-text)}

/* Hotfix5 Corrective3: staleness is Creator review advice, not an error gate. */
.movie-stale-advisory,.movie-production-guide-warnings{display:grid;gap:5px;padding:10px 12px;border:1px solid var(--ml-warning-border);border-radius:10px;background:var(--ml-warning-bg);color:var(--ml-warning-text);font-size:.9rem;line-height:1.4}
.movie-stale-advisory span{color:inherit}.movie-production-guide-warnings ul{margin:4px 0 0;padding-left:20px}.movie-production-guide-warnings.hidden{display:none!important}
.movie-production-guide-check.is-warning,.movie-production-roadmap .is-warning,.movie-nav-guide-status.is-warning,.movie-nav-guide-status.is-stale{color:var(--ml-warning-text)}

/* Movie CR-B-R2 Build 4 Same-Build Hotfix2 — single long-operation UX authority. */
.movie-operation-tray{position:sticky;top:10px;z-index:45;display:flex;justify-content:flex-end;pointer-events:none}.movie-operation-tray.hidden{display:none}.movie-operation-tray button{pointer-events:auto;box-shadow:0 8px 24px var(--ml-overlay-soft)}

.studio-post-action-guidance{margin:12px auto;max-width:1100px;display:grid;gap:10px}.studio-post-action-guidance.hidden{display:none}.studio-post-action-head{display:flex;align-items:center;gap:12px}.studio-post-action-head strong{flex:1}.studio-post-action-authority,.studio-post-action-next{display:grid;gap:4px}.studio-post-action-authority>span,.studio-post-action-next>span{font-size:var(--ml-type-xs);font-weight:var(--ml-font-weight-semibold);letter-spacing:var(--ml-letter-caps);text-transform:uppercase;color:var(--ml-text-muted)}.studio-post-action-next .primary-button{justify-self:start}.studio-post-action-next p{margin:0}.studio-post-action-options{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.studio-post-action-options.hidden{display:none}.studio-post-action-options:before{content:"Other options";font-size:var(--ml-type-xs);font-weight:var(--ml-font-weight-semibold);letter-spacing:var(--ml-letter-caps);text-transform:uppercase;color:var(--ml-text-muted);margin-right:4px}
.movie-post-action-guidance{display:grid;gap:10px;padding:12px;border:1px solid var(--ml-border-subtle);border-radius:10px;background:var(--ml-layout-panel-muted)}.movie-post-action-guidance.hidden{display:none}.movie-post-action-guidance>div{display:grid;gap:3px}.movie-post-action-guidance span{font-size:var(--ml-type-xs);font-weight:var(--ml-font-weight-semibold);letter-spacing:var(--ml-letter-caps);text-transform:uppercase;color:var(--ml-text-muted)}.movie-post-action-options{display:flex!important;gap:8px;flex-wrap:wrap}.movie-post-action-options.hidden{display:none!important}
.movie-operation-dialog{width:min(620px,calc(100vw - 24px))}.movie-operation-shell{display:grid}.movie-operation-body{display:grid;gap:12px;padding:18px}.movie-operation-status{display:flex;align-items:flex-start;gap:12px}.movie-operation-status p{margin:4px 0 0;color:var(--ml-text-secondary);line-height:1.45}.movie-operation-spinner{width:18px;height:18px;flex:0 0 18px;border-radius:50%;border:2px solid var(--ml-border-subtle);border-top-color:currentColor;margin-top:2px;animation:movie-operation-spin .8s linear infinite}.movie-operation-spinner.hidden{display:none}@keyframes movie-operation-spin{to{transform:rotate(360deg)}}
.movie-operation-trigger.is-working{cursor:wait}.movie-operation-trigger.is-working::before{content:"";display:inline-block;width:12px;height:12px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;margin-right:7px;vertical-align:-2px;animation:movie-operation-spin .8s linear infinite}
.movie-production-guide-compact{width:100%;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,2fr) auto;gap:18px;align-items:center;text-align:left;border:1px solid var(--ml-border-subtle);border-radius:12px;background:var(--ml-bg-secondary);color:inherit;padding:10px 14px;font:inherit;cursor:pointer}.movie-production-guide-compact span{display:grid;gap:2px}.movie-production-guide-compact small{color:var(--ml-text-muted);text-transform:uppercase;font-size:.72rem;font-weight:800;letter-spacing:.05em}.movie-production-guide-compact.hidden{display:none}.movie-production-guide.is-compact>.movie-production-guide-head,.movie-production-guide.is-compact>#movieProductionGuideLoading,.movie-production-guide.is-compact>#movieProductionGuideContent{display:none!important}.movie-production-guide.is-compact>#movieProductionGuideCompact{display:grid!important}
@media(max-width:760px){.movie-production-guide-compact{grid-template-columns:1fr auto}.movie-production-guide-compact span:nth-child(2){grid-column:1/-1;grid-row:2}.movie-operation-tray{top:6px}}
/* CR-B-R2 Build 4 Same-Build Hotfix3 — canonical Visual Reference projection */
.movie-reference-accepted-heading{margin-top:8px}
.movie-reference-card-body{flex:1;min-width:0;display:grid;gap:4px}
.movie-reference-authority{font-weight:700;color:var(--ml-text-secondary)}
.movie-reference-thumb-button{display:block;flex:0 0 auto;padding:0;border:0;border-radius:10px;background:transparent;cursor:pointer;overflow:hidden;text-align:left}
.movie-reference-thumb-button:focus-visible{outline:3px solid currentColor;outline-offset:3px}
.movie-reference-thumb-button img{display:block;width:96px;height:96px;object-fit:cover;border-radius:10px;background:var(--ml-layout-panel-muted)}
.movie-reference-thumb-button.compact img{width:112px;height:112px}
.movie-reference-thumb-unavailable{display:grid;place-items:center;width:96px;height:96px;padding:8px;border:1px dashed var(--ml-border-subtle);border-radius:10px;background:var(--ml-bg-secondary);color:var(--ml-text-muted);font-size:.75rem;text-align:center}
.movie-reference-thumb-button.compact .movie-reference-thumb-unavailable{width:112px;height:112px}
.movie-character-reference-row{display:flex;align-items:center;gap:12px;min-width:0}
.movie-character-reference-row>div{min-width:0;display:grid;gap:3px}
.movie-character-grounding.compact{display:flex;align-items:center;gap:8px;padding:5px 8px;background:transparent;border-style:dashed}
.movie-character-grounding.compact strong{display:inline;margin:0}
.movie-character-specific-refs{display:grid;gap:8px}
.movie-character-specific-refs>strong{margin-bottom:0}
.movie-reference-candidate-review-dialog{width:min(1240px,calc(100vw - 24px));max-width:none}
.movie-reference-candidate-review-shell{display:grid;grid-template-rows:auto minmax(0,1fr) auto;max-height:calc(100vh - 24px)}
.movie-reference-candidate-review-body{padding:16px;display:grid;grid-template-columns:minmax(0,1fr) minmax(280px,360px);gap:20px;min-height:0;overflow:auto}
.movie-reference-candidate-review-image-wrap{min-width:0;min-height:0;display:grid;place-items:center;align-content:center;background:var(--ml-bg-secondary);border-radius:14px;padding:10px}
.movie-reference-candidate-review-image-wrap img{display:block;max-width:100%;max-height:76vh;width:auto;height:auto;object-fit:contain;border-radius:10px}
.movie-reference-candidate-review-image-wrap .empty-state{width:100%;box-sizing:border-box}
.movie-reference-candidate-review-inspector{display:grid;align-content:start;gap:12px;min-width:0}
.movie-reference-detail-dialog{width:min(920px,calc(100vw - 24px))}
.movie-reference-detail-body{padding:16px;display:grid;grid-template-columns:minmax(280px,1.2fr) minmax(260px,.8fr);gap:20px;max-height:75vh;overflow:auto}
.movie-reference-detail-image-wrap{min-width:0;display:grid;place-items:center;align-content:start}
.movie-reference-detail-image-wrap img{display:block;max-width:100%;max-height:62vh;width:auto;height:auto;object-fit:contain;border-radius:14px;background:var(--ml-bg-secondary)}
.movie-reference-detail-image-wrap .empty-state{width:100%;box-sizing:border-box}
.movie-reference-detail-metadata{margin:0;display:grid;align-content:start;gap:0;border:1px solid var(--ml-border-subtle);border-radius:12px;overflow:hidden}
.movie-reference-detail-row{display:grid;grid-template-columns:minmax(90px,.7fr) minmax(0,1.3fr);gap:12px;padding:10px 12px;border-top:1px solid var(--ml-border-subtle)}
.movie-reference-detail-row:first-child{border-top:0}
.movie-reference-detail-row dt{font-size:.78rem;text-transform:uppercase;letter-spacing:.04em;color:var(--ml-text-muted);font-weight:750}
.movie-reference-detail-row dd{margin:0;overflow-wrap:anywhere;color:var(--ml-text-primary)}
@media(max-width:720px){.movie-reference-candidate-review-body,.movie-reference-detail-body{grid-template-columns:1fr}.movie-reference-candidate-review-image-wrap img{max-height:68vh}.movie-reference-thumb-button.compact img,.movie-reference-thumb-button.compact .movie-reference-thumb-unavailable{width:96px;height:96px}.movie-character-reference-row{align-items:flex-start}}

/* CR-VWF-R1 Build 1 — Visual Canon Acquisition workflow */
.movie-character-variant-row{display:flex;align-items:center;justify-content:space-between;gap:10px 16px;flex-wrap:wrap;padding:7px 0;border-top:1px dashed var(--ml-border-subtle)}
.movie-character-variant-row:first-child{margin-top:6px}
.movie-reference-form{align-items:end}.movie-reference-form .wide{grid-column:1/-1}
#movieGlobalReferenceDialog .movie-reference-detail-body{grid-template-columns:1fr}
#movieGlobalReferenceDialog .movie-reference-list{max-height:34vh;overflow:auto}
@media(max-width:720px){.movie-character-variant-row{align-items:flex-start}.movie-character-variant-row .button-row{width:100%}}

/* CR-EP-R1 Build 1 — project structure and Episode lifecycle. */
.movie-project-structure-field{border:1px solid var(--ml-border-subtle);border-radius:12px;padding:14px;display:grid;gap:10px}.movie-project-structure-field legend{font-weight:700;padding:0 6px}.movie-structure-option{display:flex;gap:10px;align-items:flex-start;border:1px solid var(--ml-border-subtle);border-radius:10px;padding:12px;cursor:pointer}.movie-structure-option input{margin-top:4px}.movie-structure-option span{display:grid;gap:3px}.movie-structure-option small{color:var(--ml-text-secondary)}.movie-episode-list{display:grid;gap:10px}.movie-episode-card{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;border-top:1px solid var(--ml-border-subtle);padding:14px 0}.movie-episode-card:first-child{border-top:0}.movie-episode-editor{margin-top:20px;padding-top:18px;border-top:1px solid var(--ml-border-subtle)}.movie-episode-editor.hidden{display:none}

/* CR-EP-R1 Build 1 Same-Build Hotfix2 — New Movie creation UX clarity */
.movie-create-form{max-width:1040px;width:100%;margin:0 auto;display:grid;grid-template-columns:minmax(0,1fr);gap:0;padding:clamp(24px,3vw,34px)}
.movie-create-intro{padding-bottom:22px}.movie-create-intro .section-heading{margin:0}.movie-create-intro .section-heading h2{margin:0;font-size:clamp(1.45rem,2.2vw,1.8rem)}.movie-create-intro .section-heading p{margin:7px 0 0;max-width:760px;color:var(--ml-text-secondary);line-height:1.55}
.movie-create-section{display:grid;gap:16px;padding:24px 0;border-top:1px solid var(--ml-border-subtle)}
.movie-create-section-heading{display:grid;gap:4px}.movie-create-section-heading h3{margin:0;font-size:1.05rem}.movie-create-section-heading p{margin:0;max-width:760px;color:var(--ml-text-secondary);font-size:.9rem;line-height:1.5}.movie-create-kicker{font-size:.72rem;font-weight:850;letter-spacing:.08em;text-transform:uppercase;color:var(--ml-text-muted)}
.movie-create-title-field{max-width:none}.movie-create-title-field input{min-height:46px;font-size:1rem}
.movie-project-structure-field{margin:0;border:0;padding:0;display:grid;gap:9px;min-width:0}.movie-project-structure-field legend{padding:0;font-weight:750}.movie-create-field-help{display:block;margin:0;color:var(--ml-text-muted);font-size:.82rem;font-weight:500;line-height:1.45}.movie-project-structure-field>.movie-create-field-help{margin-top:-2px}
.movie-structure-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:2px}.movie-structure-option{display:grid;grid-template-columns:auto minmax(0,1fr);gap:12px;align-items:start;min-height:96px;border:1px solid var(--ml-border-subtle);border-radius:14px;padding:16px;background:var(--ml-surface-primary);cursor:pointer;transition:border-color .15s ease,background .15s ease,box-shadow .15s ease,transform .15s ease}.movie-structure-option:hover{border-color:var(--ml-border-strong);background:var(--ml-bg-secondary)}.movie-structure-option:has(input:checked){border-color:var(--ml-accent);background:var(--ml-accent-soft);box-shadow:var(--ml-active-ring-shadow)}.movie-structure-option input{width:18px;height:18px;margin:2px 0 0;accent-color:var(--ml-accent)}.movie-structure-option span{display:grid;gap:5px;min-width:0}.movie-structure-option strong{font-size:.98rem}.movie-structure-option small{color:var(--ml-text-secondary);font-weight:500;line-height:1.45}
.movie-create-universe-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:end}.movie-create-universe-field{min-width:0}.movie-create-universe-field>span{display:flex;align-items:baseline;gap:7px}.movie-create-universe-field>span small{font-size:.72rem;font-weight:650;color:var(--ml-text-muted);text-transform:uppercase;letter-spacing:.05em}.movie-create-universe-field .movie-create-field-help{margin-top:1px;max-width:720px}.movie-create-manage-universe{white-space:nowrap;margin-bottom:26px}
.movie-create-premise-field textarea{min-height:150px;resize:vertical;line-height:1.55}
.movie-create-language-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.movie-create-language-grid label{min-width:0}.movie-create-language-grid select{min-height:44px}
.movie-create-actions{display:flex;justify-content:flex-end;padding-top:20px;border-top:1px solid var(--ml-border-subtle)}.movie-create-actions .primary-button{min-width:160px}
@media(max-width:760px){.movie-create-form{padding:20px}.movie-structure-options,.movie-create-language-grid,.movie-create-universe-row{grid-template-columns:1fr}.movie-create-manage-universe{justify-self:start;margin-bottom:0}.movie-create-actions{justify-content:stretch}.movie-create-actions .primary-button{width:100%}}

/* CR-EP-R1 Build 2 — explicit Episode Storyboard scope. */
.movie-episode-storyboard-scope{display:grid;gap:14px;margin:0 0 18px;padding:16px;border:1px solid var(--ml-border-subtle);border-radius:14px;background:var(--ml-bg-secondary)}
.movie-episode-storyboard-selector label{display:grid;gap:7px;max-width:680px;font-weight:700}
.movie-episode-storyboard-selector select{width:100%;min-height:44px}
.movie-episode-storyboard-status{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.movie-episode-storyboard-status>div{display:grid;gap:4px;padding:12px 14px;border:1px solid var(--ml-border-subtle);border-radius:12px;background:var(--ml-surface-primary)}
.movie-episode-storyboard-status strong{font-size:1rem}
@media (max-width:760px){.movie-episode-storyboard-status{grid-template-columns:1fr}}

/* CR-EP-R1 Build 3 — Episode-aware downstream production navigation. */
.movie-downstream-scope{display:grid;grid-template-columns:minmax(220px,.85fr) minmax(280px,1.15fr);gap:12px 16px;align-items:end;margin:0 0 18px;padding:14px 16px;border:1px solid var(--ml-border-subtle);border-radius:14px;background:var(--ml-bg-secondary)}
.movie-downstream-scope label{display:grid;gap:7px;font-weight:700;min-width:0}
.movie-downstream-scope select{width:100%;min-height:44px}
.movie-downstream-scope .comic-meta{grid-column:1/-1;margin:0}
@media(max-width:760px){.movie-downstream-scope{grid-template-columns:1fr}}

/* CR-DC-R1 Build 1 — Daily Comic Series foundation */

/* Global Character Voice — direct MaiLens Voice Actor → Gemini mapping, Main-owned TTS compilation. */
.movie-global-voice-dialog{width:min(1180px,calc(100vw - 24px));max-width:none}
.movie-global-voice-shell{display:grid;grid-template-rows:auto minmax(0,1fr) auto;max-height:calc(100vh - 24px)}
.movie-global-voice-body{display:grid;gap:22px;padding:20px;overflow:auto}
.movie-global-voice-step{display:grid;gap:14px;min-width:0}
.movie-global-voice-step+.movie-global-voice-step{margin-top:4px}
.movie-global-voice-config{padding-bottom:20px;border-bottom:1px solid var(--ml-border-subtle)}
.movie-global-voice-step .section-heading{margin:0}.movie-global-voice-step .section-heading h3{margin:0}.movie-global-voice-step .section-heading p{margin:5px 0 0;color:var(--ml-text-secondary);line-height:1.5}
.movie-global-voice-profile-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.movie-global-voice-profile-grid label,.movie-global-voice-mapping-field{display:grid;gap:5px;min-width:0}
.movie-global-voice-profile-grid small,.movie-global-voice-mapping-field small{color:var(--ml-text-muted);line-height:1.35}
.movie-global-voice-mapping-field{padding:10px 12px;border:1px solid var(--ml-border-subtle);border-radius:10px;background:var(--ml-bg-secondary)}
.movie-global-voice-mapping-field>span{font-weight:650}.movie-global-voice-mapping-field>strong{font-size:1rem;overflow-wrap:anywhere}
.movie-global-voice-preview-text{grid-column:1/-1}.movie-global-voice-preview-text textarea{width:100%;min-height:96px;resize:vertical;line-height:1.5}
.movie-global-voice-config-actions{margin-top:2px}
.movie-global-voice-audio{display:grid;grid-template-columns:minmax(180px,.55fr) minmax(280px,1.45fr);gap:14px;align-items:center;padding:12px 14px;border:1px solid var(--ml-border-subtle);border-radius:12px;background:var(--ml-bg-secondary)}
.movie-global-voice-audio>div{display:grid;gap:3px;min-width:0}.movie-global-voice-audio small{color:var(--ml-text-muted);font-size:.72rem;font-weight:700}.movie-global-voice-audio strong{overflow-wrap:anywhere}.movie-global-voice-audio audio{display:block;width:100%;max-width:100%}
.movie-global-voice-prompt-panel{display:grid;gap:14px;padding:18px;border:1px solid var(--ml-border-subtle);border-radius:12px;background:var(--ml-bg-secondary)}
.movie-global-voice-main-provenance{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.movie-global-voice-main-provenance>div{display:grid;gap:5px;min-width:0;padding:11px 12px;border:1px solid var(--ml-border-subtle);border-radius:10px;background:var(--ml-layout-panel)}
.movie-global-voice-main-provenance small{color:var(--ml-text-muted);font-size:.72rem;font-weight:700;line-height:1.25}
.movie-global-voice-main-provenance strong,.movie-global-voice-main-provenance code{display:block;min-width:0;overflow-wrap:anywhere;word-break:break-word}
.movie-global-voice-main-profile{margin-top:-2px}
.movie-global-voice-diagnostic-heading{margin-top:8px!important;padding-top:12px;border-top:1px solid var(--ml-border-subtle)}
.movie-global-voice-prompt-panel pre{margin:0;max-height:360px;overflow:auto;white-space:pre-wrap;word-break:break-word;padding:13px;border-radius:10px;background:var(--ml-layout-panel);border:1px solid var(--ml-border-subtle);font:500 .82rem/1.5 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}
.movie-global-voice-prompt-panel code{word-break:break-all}
.movie-global-character-card{display:grid;grid-template-columns:minmax(165px,.65fr) minmax(280px,1.15fr) minmax(135px,.5fr) auto;gap:20px;align-items:center;padding:14px 16px;border:1px solid var(--ml-border-subtle);border-radius:16px;background:var(--ml-surface-primary);box-shadow:var(--ml-shadow-subtle)}
.movie-global-character-card:first-child{border-top:1px solid var(--ml-border-subtle)}
.movie-global-character-identity{min-width:0;display:grid;gap:3px;align-content:center}.movie-global-character-name{font-size:1.05rem;line-height:1.3}.movie-global-character-identity>span{color:var(--ml-text-muted);font-size:.78rem;line-height:1.35}
.movie-global-character-voice-status{display:inline-flex;width:max-content;max-width:100%;align-items:center;margin-top:4px;min-height:24px;padding:3px 8px;border:1px solid currentColor;border-radius:999px;font-size:.7rem;font-weight:700;line-height:1.2;letter-spacing:0;text-transform:none;white-space:normal}
.movie-global-character-voice-status[data-state="NOT_CONFIGURED"],.movie-global-character-voice-status[data-state="LOADING"]{color:var(--ml-text-secondary)}
.movie-global-character-voice-status[data-state="READY"]{color:var(--ml-text-primary)}
.movie-global-character-voice-status[data-state="ERROR"]{color:var(--ml-error-text,var(--ml-text-primary))}
.movie-global-character-voice-primary,.movie-global-character-gemini{min-width:0;display:grid;gap:3px;align-content:center}.movie-global-character-field-label{color:var(--ml-text-muted);font-size:.72rem;font-weight:700;line-height:1.25}.movie-global-character-voice-primary>strong,.movie-global-character-gemini>strong{font-size:.95rem;line-height:1.3;overflow-wrap:anywhere}.movie-global-character-voice-primary>span:last-child{color:var(--ml-text-secondary);font-size:.82rem;line-height:1.4}
.movie-global-character-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px;align-items:center}.movie-global-character-actions button{white-space:nowrap}
@media(max-width:1100px){.movie-global-character-card{grid-template-columns:minmax(150px,.7fr) minmax(240px,1.3fr) minmax(125px,.55fr)}.movie-global-character-actions{grid-column:1/-1;justify-content:flex-start}.movie-global-voice-main-provenance{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.movie-global-character-card{grid-template-columns:1fr;gap:10px;padding:14px}.movie-global-character-actions{grid-column:auto;display:grid;grid-template-columns:1fr 1fr}.movie-global-character-actions button{width:100%}.movie-global-character-actions [data-voice]{grid-column:1/-1}.movie-global-voice-profile-grid,.movie-global-voice-main-provenance,.movie-global-voice-audio{grid-template-columns:1fr}.movie-global-voice-dialog{width:calc(100vw - 12px)}.movie-global-voice-body{padding:12px;gap:18px}.movie-global-voice-prompt-panel{padding:14px}.movie-global-voice-prompt-panel pre{max-width:100%;overflow:auto}.movie-global-voice-step .section-heading.inline{align-items:flex-start;flex-direction:column}}

/* GCCTX-3 Hotfix 9: shared creator-control help and Final Master review surfaces. */
.studio-info-help{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;min-width:28px;padding:0;border:1px solid var(--ml-border-subtle);border-radius:999px;background:var(--ml-surface);color:var(--ml-text-muted);cursor:help;vertical-align:middle}.studio-info-help:hover,.studio-info-help:focus-visible{color:var(--ml-text);border-color:var(--ml-border-strong);outline:none}.studio-info-help svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.studio-info-help.hidden{display:none}.studio-info-popover{position:fixed;z-index:1200;box-sizing:border-box;max-width:360px;padding:12px;border:1px solid var(--ml-border-subtle);border-radius:var(--ml-radius-md);background:var(--ml-surface);box-shadow:var(--ml-shadow-lg);color:var(--ml-text)}.studio-info-popover.hidden{display:none}.studio-info-popover-head{display:flex;align-items:center;gap:12px;margin-bottom:6px}.studio-info-popover-head strong{flex:1;font-size:var(--ml-type-sm)}.studio-info-popover p{margin:0;font-size:var(--ml-type-sm);line-height:1.45;color:var(--ml-text-muted)}
.daily-final-master-card{display:grid;gap:10px;margin-bottom:12px}.daily-final-master-card video{display:block;width:min(100%,720px);max-height:68vh;border-radius:var(--ml-radius-md);background:#000}.daily-final-history{margin:8px 0 14px}.daily-final-history summary{cursor:pointer;font-weight:var(--ml-font-weight-semibold)}

/* C1H2 — Global Character Voice creator-first modal hierarchy. */
.movie-global-voice-actions{position:relative;z-index:2;flex-wrap:wrap;background:var(--ml-surface-raised)}
.movie-global-voice-actions #movieGlobalVoiceDone{margin-right:auto}
.movie-global-voice-preview-text textarea{min-height:72px}
.movie-global-voice-technical{padding:0;overflow:hidden}
.movie-global-voice-technical>summary{display:grid;gap:3px;padding:14px 16px;cursor:pointer;font-weight:700;list-style:none}
.movie-global-voice-technical>summary::-webkit-details-marker{display:none}
.movie-global-voice-technical>summary:after{content:'Show';grid-column:2;grid-row:1/3;align-self:center;color:var(--ml-text-muted);font-size:.78rem;font-weight:700}
.movie-global-voice-technical[open]>summary:after{content:'Hide'}
.movie-global-voice-technical>summary{grid-template-columns:minmax(0,1fr) auto}
.movie-global-voice-technical>summary small{color:var(--ml-text-muted);font-weight:500;line-height:1.35}
.movie-global-voice-technical-body{display:grid;gap:14px;padding:0 16px 16px;border-top:1px solid var(--ml-border-subtle)}
.movie-global-voice-technical-body>.movie-global-voice-mapping-field{margin-top:16px}
@media(max-width:700px){.movie-global-voice-actions{display:grid;grid-template-columns:1fr 1fr}.movie-global-voice-actions #movieGlobalVoiceDone{margin-right:0;grid-column:1/-1;grid-row:2}.movie-global-voice-actions button{width:100%}.movie-global-voice-preview-text textarea{min-height:84px}}

/* C1H2 same-build Hotfix 1 — restore the modal body as the sole vertical scrollport while keeping actions persistent. */
.movie-global-voice-dialog{max-height:calc(100vh - 24px);max-height:calc(100dvh - 24px);overflow:hidden}
.movie-global-voice-shell{max-height:calc(100vh - 24px);max-height:calc(100dvh - 24px);min-height:0;overflow:hidden}
.movie-global-voice-body{min-height:0;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable}
.movie-global-voice-technical{overflow:visible}
.movie-global-voice-technical>summary:after{content:'Show details  ▾';color:var(--ml-text-secondary);font-size:.82rem;font-weight:700;white-space:nowrap}
.movie-global-voice-technical[open]>summary:after{content:'Hide details  ▴'}

/* Global Character secondary-language authority V1 */
.movie-global-voice-secondary-toggle{grid-column:1/-1}
.movie-global-voice-secondary-toggle>span:last-of-type{display:flex;align-items:center;gap:8px;font-weight:600}
.movie-global-voice-secondary-toggle input{width:auto;margin:0}
.movie-global-voice-secondary-fields{grid-column:1/-1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:12px;border:1px solid var(--ml-border-subtle);border-radius:10px;background:var(--ml-bg-secondary)}
.movie-global-voice-secondary-fields.hidden{display:none}
.movie-global-voice-secondary-fields label{display:grid;gap:5px;min-width:0}
@media(max-width:700px){.movie-global-voice-secondary-fields{grid-template-columns:1fr}}

/* GCUX1 — Global Character operational workspace */
.studio-global-character-library-heading{align-items:flex-start}.studio-global-character-toolbar{display:grid;grid-template-columns:minmax(260px,1.5fr) minmax(180px,.65fr) minmax(180px,.65fr);gap:12px;align-items:end;margin:18px 0}.studio-global-character-toolbar label{display:grid;gap:5px}.studio-global-character-search input{width:100%}.studio-global-character-library-list{display:grid;gap:12px}.studio-global-character-library-card{grid-template-columns:88px minmax(0,1fr) auto!important;gap:16px!important;cursor:default}.studio-global-character-card-thumb{width:88px;height:88px;object-fit:cover;border-radius:14px;border:1px solid var(--ml-border-subtle);background:var(--ml-bg-secondary)}.studio-global-character-card-thumb-empty{display:grid;place-items:center;font-size:1.25rem;font-weight:750;color:var(--ml-text-muted)}.studio-global-character-card-copy{min-width:0;display:grid;gap:4px}.studio-global-character-card-copy>span{font-size:.82rem;color:var(--ml-text-secondary);line-height:1.35}.studio-global-character-card-copy .movie-global-character-name{font-size:1.08rem}.studio-global-character-workspace-view{display:grid;gap:16px}.studio-global-character-context{display:flex;justify-content:space-between;gap:18px;align-items:center;padding:16px}.studio-global-character-context-main{display:flex;align-items:center;gap:14px;min-width:0}.studio-global-character-library-back{align-self:flex-start}.studio-global-character-avatar-wrap{width:72px;height:72px;flex:0 0 72px;overflow:hidden;border-radius:16px}.studio-global-character-avatar,.studio-global-character-avatar-fallback{width:72px;height:72px;border-radius:16px;border:1px solid var(--ml-border-subtle);background:var(--ml-bg-secondary)}.studio-global-character-avatar{object-fit:cover}.studio-global-character-avatar-fallback{display:grid;place-items:center;font-weight:800;color:var(--ml-text-muted)}.studio-global-character-context-copy{min-width:0}.studio-global-character-context-copy h2{margin:2px 0 3px}.studio-global-character-context-copy p{margin:0;color:var(--ml-text-secondary)}.studio-global-character-context-badges{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}.studio-global-character-context-badges span{padding:4px 8px;border:1px solid var(--ml-border-subtle);border-radius:999px;background:var(--ml-bg-secondary);font-size:.72rem;color:var(--ml-text-secondary)}.studio-global-character-mobile-menu{display:none}.studio-global-character-workspace-grid{display:grid;grid-template-columns:220px minmax(0,1fr);gap:16px;align-items:start}.studio-global-character-rail{position:sticky;top:76px;padding:10px;border:1px solid var(--ml-border-subtle);border-radius:14px;background:var(--ml-surface-primary);box-shadow:var(--ml-shadow-subtle)}.studio-global-character-rail nav{display:grid;gap:4px}.studio-global-character-nav{appearance:none;border:0;border-radius:10px;background:transparent;color:var(--ml-text-secondary);font:inherit;font-weight:650;text-align:left;padding:10px 12px;cursor:pointer}.studio-global-character-nav:hover,.studio-global-character-nav:focus-visible{background:var(--ml-bg-secondary);color:var(--ml-text-primary)}.studio-global-character-nav.active{background:var(--ml-bg-secondary);color:var(--ml-text-primary);box-shadow:inset 3px 0 0 currentColor}.studio-global-character-panel-host{min-width:0}.studio-global-character-panel{display:grid;gap:18px;padding:22px;border:1px solid var(--ml-border-subtle);border-radius:16px;background:var(--ml-surface-primary);box-shadow:var(--ml-shadow-subtle)}.studio-global-character-panel.hidden{display:none!important}.studio-global-character-overview-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.studio-global-character-overview-grid article{display:grid;gap:5px;padding:14px;border:1px solid var(--ml-border-subtle);border-radius:12px;background:var(--ml-bg-secondary)}.studio-global-character-overview-grid article>span{font-size:.75rem;font-weight:700;color:var(--ml-text-muted)}.studio-global-character-overview-grid article>strong{font-size:1rem}.studio-global-character-overview-grid article>small{color:var(--ml-text-secondary);line-height:1.45}.studio-global-character-form{max-width:980px}.studio-global-character-aliases{display:grid;gap:10px;padding-top:8px;border-top:1px solid var(--ml-border-subtle)}.studio-global-character-alias-list{display:flex;flex-wrap:wrap;gap:7px}.studio-global-character-alias-chip{display:inline-flex;align-items:center;gap:6px;padding:4px 5px 4px 9px;border:1px solid var(--ml-border-subtle);border-radius:999px;background:var(--ml-bg-secondary);font-size:.82rem}.studio-global-character-alias-chip button{width:24px;height:24px;border:0;border-radius:50%;background:transparent;color:var(--ml-text-muted);cursor:pointer}.studio-global-character-alias-chip button:hover,.studio-global-character-alias-chip button:focus-visible{background:var(--ml-layout-panel);color:var(--ml-text-primary)}
.movie-global-voice-inline{display:grid;gap:16px}.movie-global-voice-inline .movie-global-voice-body{padding:0;overflow:visible}.movie-global-voice-workspace-grid{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(300px,.75fr);gap:20px;align-items:start}.movie-global-voice-workspace-config{display:grid;gap:14px;min-width:0}.movie-global-voice-preview-pane{position:sticky;top:92px;display:grid;gap:12px;padding:16px;border:1px solid var(--ml-border-subtle);border-radius:14px;background:var(--ml-bg-secondary);min-width:0}.movie-global-voice-preview-pane label{display:grid;gap:5px}.movie-global-voice-preview-pane .movie-global-voice-audio{grid-template-columns:1fr;padding:10px;background:var(--ml-layout-panel)}.movie-global-voice-subsection{padding-top:10px;border-top:1px solid var(--ml-border-subtle);color:var(--ml-text-secondary)}.movie-global-voice-inline .movie-global-voice-config{border-bottom:0;padding-bottom:0}.movie-global-voice-inline .movie-global-voice-prompt-panel{margin-top:2px}.movie-global-reference-inline{display:grid;gap:18px}.studio-global-reference-add-menu{padding:14px;border:1px dashed var(--ml-border-subtle);border-radius:12px;background:var(--ml-bg-secondary)}.studio-global-reference-add-menu p{margin:.35rem 0 .75rem;color:var(--ml-text-secondary)}.movie-global-reference-acquisition{padding:16px;border-radius:14px}.studio-global-reference-section{display:grid;gap:10px}.studio-global-reference-section+.studio-global-reference-section{padding-top:14px;border-top:1px solid var(--ml-border-subtle)}.studio-global-reference-history{padding-top:12px;border-top:1px solid var(--ml-border-subtle)}.studio-global-reference-history>summary{cursor:pointer;font-weight:700}.studio-global-reference-history .movie-reference-list{margin-top:12px}.studio-global-reference-history-row{grid-template-columns:1fr!important}.studio-global-character-usage-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.studio-global-character-usage-grid section{padding:14px;border:1px solid var(--ml-border-subtle);border-radius:12px;background:var(--ml-bg-secondary)}.studio-global-character-usage-grid h3{margin-top:0}.studio-global-character-usage-grid ul{list-style:none;margin:0;padding:0;display:grid;gap:8px}.studio-global-character-usage-grid li{display:flex;justify-content:space-between;gap:12px;padding:9px 0;border-bottom:1px solid var(--ml-border-subtle)}.studio-global-character-usage-grid li:last-child{border-bottom:0}.studio-global-character-usage-grid li span{color:var(--ml-text-secondary);text-align:right}.studio-global-character-usage-grid li.muted{color:var(--ml-text-muted)}.studio-global-character-revision-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:14px}.studio-global-character-revision-grid>div{display:grid;gap:4px;padding:12px;border:1px solid var(--ml-border-subtle);border-radius:12px}.studio-global-character-revision-grid span{font-size:.75rem;font-weight:700;color:var(--ml-text-muted)}.studio-global-character-revision-grid small{color:var(--ml-text-secondary)}#studioGlobalCharacterUnsavedDialog>div{min-width:min(520px,calc(100vw - 40px))}#studioGlobalCharacterUnsavedDialog .dialog-body{padding:18px}#studioGlobalCharacterUnsavedDialog .dialog-body p{margin:0}
@media(max-width:900px){.studio-global-character-toolbar{grid-template-columns:1fr 1fr}.studio-global-character-search{grid-column:1/-1}.studio-global-character-workspace-grid{grid-template-columns:1fr}.studio-global-character-mobile-menu{display:inline-flex}.studio-global-character-rail{display:none;position:static}.studio-global-character-rail.is-mobile-open{display:block}.movie-global-voice-workspace-grid{grid-template-columns:1fr}.movie-global-voice-preview-pane{position:static}.studio-global-character-revision-grid{grid-template-columns:1fr 1fr}}
@media(max-width:700px){.studio-global-character-library-heading,.studio-global-character-context{align-items:stretch;flex-direction:column}.studio-global-character-library-heading .button-row,.studio-global-character-context>.secondary-button{width:100%}.studio-global-character-library-heading .button-row>*{flex:1 1 100%}.studio-global-character-toolbar{grid-template-columns:1fr}.studio-global-character-search{grid-column:auto}.studio-global-character-library-card{grid-template-columns:64px minmax(0,1fr)!important;gap:12px!important}.studio-global-character-card-thumb{width:64px;height:64px}.studio-global-character-library-card .movie-global-character-actions{grid-column:1/-1}.studio-global-character-library-card .movie-global-character-actions button{width:100%}.studio-global-character-context-main{align-items:flex-start;flex-wrap:wrap}.studio-global-character-library-back{width:100%}.studio-global-character-avatar-wrap,.studio-global-character-avatar,.studio-global-character-avatar-fallback{width:60px;height:60px;flex-basis:60px}.studio-global-character-context-copy{flex:1 1 calc(100% - 80px)}.studio-global-character-panel{padding:16px}.studio-global-character-overview-grid,.studio-global-character-usage-grid,.studio-global-character-revision-grid{grid-template-columns:1fr}.movie-global-voice-profile-grid{grid-template-columns:1fr}.movie-global-voice-secondary-fields{grid-template-columns:1fr}.studio-global-character-form.form-grid{grid-template-columns:1fr}.studio-global-character-form .wide{grid-column:1}.studio-global-character-usage-grid li{align-items:flex-start;flex-direction:column}.studio-global-character-usage-grid li span{text-align:left}.movie-global-reference-inline .section-heading.inline{align-items:flex-start;flex-direction:column}.movie-global-reference-inline .section-heading.inline>.button-row{width:100%}.movie-global-reference-inline .section-heading.inline>.button-row>*{flex:1 1 auto}body{overflow-x:hidden}.studio-global-character-shell,.studio-global-character-workspace-view,.studio-global-character-panel-host,.studio-global-character-panel{min-width:0;max-width:100%}}

/* H8 caption authority: bottom-safe, high-contrast captions over light or dark footage. */
video::cue{color:#fff;background:rgba(0,0,0,.72);text-shadow:-1px -1px 0 #000,1px -1px 0 #000,-1px 1px 0 #000,1px 1px 0 #000;font-weight:700}

.studio-physical-appearance-fields{min-width:0;max-width:100%;padding:14px;border:1px solid var(--ml-border-subtle);border-radius:12px}.studio-physical-appearance-fields legend{font-weight:700;padding:0 6px}.studio-physical-appearance-fields .form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}@media(max-width:700px){.studio-physical-appearance-fields .form-grid{grid-template-columns:1fr}}

/* B8H2: Rejected Global Character candidates remain visibly reviewable. */
.studio-global-reference-history{padding:14px;border:1px solid var(--ml-border-subtle);border-radius:12px;background:var(--ml-bg-secondary)}
.studio-global-reference-history .movie-reference-list{margin-top:10px}
.studio-global-reference-history-row{display:flex!important;flex-wrap:wrap;align-items:flex-start;gap:12px;grid-template-columns:none!important}
.studio-global-reference-history-row>img{width:150px;height:200px;max-width:100%;object-fit:contain;background:var(--ml-layout-panel-muted)}
.studio-global-reference-history-row>div:nth-child(2){flex:1 1 200px;min-width:0}
.studio-global-reference-history-row .button-row{display:flex;flex-wrap:wrap;gap:8px}
@media(max-width:720px){.studio-global-reference-history-row>img{width:150px;height:200px}}

/* B8H6 — plain-language, non-blocking storyboard-to-production progress. */
.movie-storyboard-next{display:grid;gap:8px;padding:14px 16px;border:1px solid var(--ml-border-subtle);border-radius:12px;background:var(--ml-surface-primary)}
.movie-storyboard-next>strong{font-size:1rem;color:var(--ml-text-primary)}
.movie-storyboard-next p{margin:0;color:var(--ml-text-secondary);line-height:1.55}
.movie-storyboard-progress-details{color:var(--ml-text-secondary);font-size:.875rem;line-height:1.45}
.movie-storyboard-next>div>button{margin-top:5px}
.movie-duration-authority.is-pending{border-color:var(--ml-border-subtle);background:var(--ml-bg-secondary);color:var(--ml-text-secondary)}

/* B8H9H1: acquisition is a modal, not an inline panel below the reference history. */
.movie-global-reference-acquisition-dialog{width:min(780px,calc(100vw - 24px));max-width:none;max-height:min(92dvh,920px);overflow:auto}
.movie-global-reference-acquisition-shell{display:grid;grid-template-rows:auto minmax(0,1fr)}
.movie-global-reference-acquisition-dialog header{align-items:flex-start;gap:16px}
.movie-global-reference-acquisition-dialog header>div{min-width:0}
.movie-global-reference-acquisition-dialog header p{margin:5px 0 0;color:var(--ml-text-secondary)}
.movie-global-reference-acquisition-body{padding:16px;display:grid;gap:12px;min-width:0}
.movie-global-reference-acquisition-dialog .studio-global-reference-add-menu{padding:18px;border:1px solid var(--ml-border-subtle);border-radius:12px}
.movie-global-reference-acquisition-dialog .movie-global-reference-acquisition{padding:6px 0 0;border:0;border-radius:0;background:none}
.movie-global-reference-acquisition-dialog .movie-global-reference-acquisition .form-grid{margin-top:12px}
.movie-global-reference-acquisition-dialog .section-heading{gap:10px}
@media(max-width:700px){.movie-global-reference-acquisition-dialog{width:calc(100vw - 16px);max-height:94dvh}.movie-global-reference-acquisition-body{padding:12px}.movie-global-reference-acquisition-dialog .form-grid{grid-template-columns:1fr}}

/* B8H10: canonical Episode vs Whole Movie completion projection; informational only. */
.movie-guide-scope-summary{display:grid;grid-template-columns:repeat(auto-fit,minmax(245px,1fr));gap:8px;margin:0 0 12px}.movie-guide-scope-summary>div{display:grid;gap:3px;padding:10px 12px;background:var(--ml-bg-secondary,var(--ml-layout-track-alt));border:1px solid var(--ml-border-subtle);border-radius:9px}.movie-guide-scope-summary strong{font-size:.72rem;letter-spacing:.05em;color:var(--ml-text-muted);}.movie-guide-scope-summary span{font-size:.88rem;line-height:1.45}

/* Movie PREVIEWHF1: read-only literal accepted Provider text, never interpreted. */
.movie-final-provider-prompt{white-space:pre-wrap;overflow-wrap:anywhere;word-break:normal;
 max-height:min(50vh,560px);overflow:auto;padding:14px;border:1px solid var(--line, #7775);
 border-radius:8px;font:inherit;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;
 font-size:12px;line-height:1.5;user-select:text}
.movie-provider-input-preview{min-width:0;margin-top:8px}
