/* Studio consumes the public site's design system; all workspace surfaces share its palette. */
:root{color-scheme:dark;--bg:var(--dm-bg,#080a09);--panel:var(--dm-surface,#141917);--panel-soft:var(--dm-surface-raised,#1c231e);--line:var(--dm-line,#2b332e);--muted:var(--dm-muted,#9da69f);--text:var(--dm-text,#f2f2e9);--accent:var(--dm-accent,#c2f970);--accent-ink:#13210e;--lavender:var(--dm-violet,#b19aff);--error:var(--dm-coral,#ff9b7e);--radius:var(--dm-radius-panel,16px);--control-radius:var(--dm-radius-control,9px);--accent-soft:color-mix(in srgb,var(--accent) 7%,var(--panel));--accent-border:color-mix(in srgb,var(--accent) 24%,var(--line));--text-soft:color-mix(in srgb,var(--text) 80%,var(--muted));--warning:color-mix(in srgb,var(--dm-coral,#ff9b7e) 72%,var(--text))}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--bg);color:var(--text);font:14px var(--dm-font,PlexAr,Arial,sans-serif);line-height:1.65}
body:has(dialog[open]){overflow:hidden}
button,input,textarea,select{font:inherit}
button,a,input,select{touch-action:manipulation}
button,a{-webkit-tap-highlight-color:transparent}
button{cursor:pointer}
a{color:inherit;text-decoration:none}
button{color:inherit}
button:disabled{cursor:not-allowed;opacity:.42}
button:not(:disabled),a,input,textarea,select{transition:background var(--dm-duration-fast,180ms),border-color var(--dm-duration-fast,180ms),color var(--dm-duration-fast,180ms),box-shadow var(--dm-duration-fast,180ms),transform var(--dm-duration-ui,240ms) var(--dm-ease-out,cubic-bezier(.16,1,.3,1))}
button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:2px solid var(--accent);outline-offset:4px}
button:focus:not(:focus-visible){outline:none}
[hidden]{display:none!important}
h1,h2,h3,p{margin-top:0}
h1,h2,h3{font-weight:600}
h2{font-size:20px}
h3{font-size:15px}
.muted{color:var(--muted)}
.grow{flex:1;min-width:0}
.app-shell{max-width:1480px;padding:0 46px;margin:auto}
.topbar{height:96px;display:flex;align-items:center;justify-content:space-between;gap:25px;border-bottom:1px solid var(--line)}
.brand{display:inline-flex;align-items:center;gap:11px;font:700 23px var(--dm-font-display,InterW,sans-serif);letter-spacing:-1px}
.brand-symbol{position:relative;width:37px;height:39px;display:grid;place-items:center;background:var(--accent);color:var(--accent-ink);font-size:33px;border-radius:10px 10px 10px 2px;line-height:1}
.brand-symbol>span{position:absolute;right:1px;top:1px;font-size:16px}
.brand-sub{display:block;font:500 8px var(--dm-font-display,InterW,sans-serif);letter-spacing:2.7px;color:var(--muted);margin-top:7px}
.topnav{display:flex;align-items:center;gap:26px;font-size:12px;color:var(--text-soft)}
.topnav>a{display:flex;align-items:center;gap:8px}
.topnav>a:hover,.text-button:hover{color:var(--accent)}
.nav-divider{height:22px;width:1px;background:var(--line)}
.text-button{border:0;background:none;padding:0;color:var(--muted);font-size:12px;min-height:34px}
.icon-button{border:1px solid var(--line);background:transparent;display:grid;place-items:center;width:34px;height:34px;border-radius:9px;font-family:Arial,sans-serif;font-size:20px;flex-shrink:0}
.icon-button:hover:enabled{background:var(--panel-soft)}
.workspace-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:38px 0 29px}
.eyebrow{color:var(--accent);font-size:11px;font-weight:500;display:flex;align-items:center;gap:8px;letter-spacing:.2px;margin-bottom:8px}
.live-dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:var(--accent);flex-shrink:0}
.heading-separator{margin:0 4px;color:var(--line)}
.workspace-heading h1{font-size:34px;line-height:1.6;letter-spacing:-.5px;margin:0}
.workspace-heading p{color:var(--muted);font-size:13px;margin:6px 0 0}
.primary,.secondary,.danger{display:inline-flex;justify-content:center;align-items:center;gap:13px;padding:13px 17px;border-radius:var(--control-radius);font-size:13px;font-weight:600;line-height:1.5;min-height:46px}
.primary{background:var(--accent);border:1px solid var(--accent);color:var(--accent-ink)}
.primary:hover:enabled{background:var(--dm-accent-hover,#d0ff8b)}
.secondary{background:transparent;border:1px solid var(--line);color:var(--text)}
.secondary:hover:enabled{background:var(--panel-soft);border-color:var(--accent-border)}
.danger{background:var(--dm-coral,#ff9b7e);color:#28150e;border:1px solid var(--dm-coral,#ff9b7e)}
.small{font-size:12px;min-height:41px;padding:9px 13px}
.studio-grid{display:grid;grid-template-columns:minmax(330px,.86fr) minmax(0,1.24fr);gap:26px;align-items:start}
.panel{border:1px solid var(--line);border-radius:var(--radius);background:var(--panel)}
.create-panel{overflow:hidden}
.panel-heading{padding:22px 24px 18px;display:flex;align-items:center;justify-content:space-between;gap:14px}
.panel-heading h2{margin:0;font-size:18px}
.tiny-label{font-size:10px;color:var(--muted)}
.editor-tabs{display:flex;border-bottom:1px solid var(--line);margin:0 24px}
.editor-tabs button{border:0;background:transparent;display:flex;align-items:center;justify-content:center;gap:9px;position:relative;flex:1;padding:12px 6px 17px;font-size:13px;color:var(--muted)}
.editor-tabs button>span:first-child{font:10px var(--dm-font-display,InterW,sans-serif);color:var(--muted)}
.editor-tabs button[aria-selected=true]{color:var(--accent)}
.editor-tabs button[aria-selected=true]>span:first-child{color:var(--accent)}
.editor-tabs button[aria-selected=true]:after{content:"";height:2px;background:var(--accent);position:absolute;bottom:-1px;right:9px;left:9px;border-radius:2px}
.editor-pane{padding:23px 24px 17px;min-height:478px}
.field-row{display:flex;gap:12px}
.language-field{width:106px;flex-shrink:0}
label{display:block;font-size:12px;font-weight:500;color:var(--text-soft);margin-bottom:8px}
input:not([type=range]):not([type=color]):not([type=file]):not([type=checkbox]),select,textarea{width:100%;min-width:0;border:1px solid var(--line);background:var(--bg);color:var(--text);padding:11px 12px;border-radius:var(--control-radius);outline:none}
input::placeholder,textarea::placeholder{color:var(--muted);font-weight:400}
input:focus,textarea:focus,select:focus{border-color:var(--accent)}
select{padding-inline-end:27px;font-size:12px;height:45px}
textarea{resize:vertical;min-height:205px;max-height:500px;font-size:13px;line-height:2.15;padding:14px!important}
#projectTitle{font-size:12px}
.label-row{display:flex;align-items:center;justify-content:space-between;gap:12px}
.label-row label{margin:0}
.label-row h3{margin:0}
.editor-pane>.label-row{margin-top:17px;margin-bottom:6px}
.input-meta{display:flex;align-items:start;justify-content:space-between;gap:12px;font-size:9px;color:var(--muted);margin:8px 0 12px}
.input-meta>span:first-child{max-width:75%}
#charCount{font-family:var(--dm-font-display,InterW,sans-serif);white-space:nowrap;font-size:9px;margin-top:3px}
.editor-tip{display:flex;gap:9px;align-items:flex-start;background:var(--accent-soft);border:1px solid var(--accent-border);border-radius:9px;padding:9px 10px;color:var(--muted)}
.editor-tip>span{color:var(--accent);font-size:17px;line-height:1.5}
.editor-tip p{font-size:10px;margin:0;line-height:1.8}
.next-tab{font-size:11px;min-height:37px;width:100%;margin-top:16px;padding:8px 12px;justify-content:space-between;color:var(--text-soft);border-color:var(--line)}
.create-footer{padding:16px 24px 18px;background:var(--bg);border-top:1px solid var(--line)}
.provider-status{display:flex;align-items:center;gap:7px;color:var(--muted);font-size:10px;line-height:1.8;margin-bottom:11px}
.provider-status.unavailable{color:var(--warning)}
.provider-status.unavailable .live-dot{background:var(--warning)}
.create-footer>.primary{width:100%;justify-content:space-between;padding:14px 17px}
.create-note{font-size:9px;color:var(--muted);text-align:center;margin:9px 0 11px}
.demo-button{background:transparent;color:var(--text-soft);border:0;width:100%;padding:8px;display:flex;align-items:center;justify-content:center;gap:9px;font-size:11px;min-height:36px}
.demo-button:hover:enabled{color:var(--accent)}
.demo-button>span:first-child{font-size:19px}
.preview-workspace{min-width:0}
.preview-heading{display:flex;align-items:center;justify-content:space-between;padding:4px 2px 17px;gap:10px}
.preview-heading .eyebrow{font-size:10px;color:var(--muted);margin:0 0 4px}
.preview-heading h2{font-size:19px;margin:0}
.preview-size{font:10px var(--dm-font-display,InterW,sans-serif);color:var(--muted);background:var(--panel);border:1px solid var(--line);border-radius:6px;padding:7px 10px;white-space:nowrap}
.preview-size>span{padding:0 6px;color:var(--muted)}
.preview-stage{min-height:526px;height:526px;background:radial-gradient(ellipse at 50% 15%,color-mix(in srgb,var(--accent) 8%,var(--panel)) 0%,var(--panel) 53%);border:1px solid var(--line);border-radius:var(--radius);position:relative;display:flex;justify-content:center;align-items:center;overflow:hidden;padding:22px}
.stage-grid{position:absolute;inset:0;background-image:linear-gradient(#ffffff03 1px,transparent 1px),linear-gradient(90deg,#ffffff03 1px,transparent 1px);background-size:26px 26px;pointer-events:none}
.preview-art{height:100%;max-height:480px;aspect-ratio:9/16;background:#d7e0c9;color:#1c2823;border-radius:5px;position:relative;overflow:hidden;box-shadow:0 15px 45px #0007}
.art-kicker{position:absolute;left:22px;top:27px;z-index:2;font:700 24px/1.15 var(--dm-font-display,InterW,sans-serif);letter-spacing:-1.1px;text-align:left}
.art-person{position:absolute;width:74%;height:66%;object-fit:contain;bottom:45px;left:15%;z-index:1;filter:drop-shadow(6px 8px 0 #23342c13)}
.art-orbit{position:absolute;border-radius:100%;border:1px solid #2d483745;transform:rotate(-30deg)}
.orbit-one{width:340px;height:220px;left:-40px;top:130px}
.orbit-two{width:350px;height:230px;left:-48px;top:133px;transform:rotate(30deg)}
.art-symbol{position:absolute;z-index:3;display:grid;place-items:center;box-shadow:0 7px 22px #0001}
.symbol-atom{background:var(--lavender);border:1px solid color-mix(in srgb,var(--lavender) 65%,#15131b);width:69px;height:69px;border-radius:20px;top:148px;right:15px;transform:rotate(12deg);font-size:44px;line-height:1}
.symbol-brackets{background:var(--accent);border:1px solid color-mix(in srgb,var(--accent) 65%,#18200f);width:58px;height:58px;border-radius:13px;bottom:121px;left:12px;transform:rotate(-13deg);font:600 23px var(--dm-font-display,InterW,sans-serif)}
.art-caption{position:absolute;bottom:66px;right:12px;left:12px;background:#17251dee;color:#f0f4e7;z-index:5;border-radius:7px;padding:10px 7px;display:flex;justify-content:center;align-items:center;gap:7px;font-size:13px;box-shadow:0 5px 12px #0001}
.caption-line{height:12px;width:3px;border-radius:4px;background:var(--accent)}
.art-footer{position:absolute;bottom:18px;left:18px;right:18px;display:flex;justify-content:space-between;align-items:center;font:7px var(--dm-font-display,InterW,sans-serif);letter-spacing:.7px}
.art-footer>span:last-child{font-size:21px}
#canvasPreview,#video{height:100%;width:auto;aspect-ratio:9/16;max-width:100%;border:0;background:var(--bg);position:relative;z-index:1;border-radius:5px;box-shadow:0 15px 45px #0006}
#video{object-fit:contain}
.preview-badge{position:absolute;left:13px;top:13px;font-size:9px;background:color-mix(in srgb,var(--bg) 84%,transparent);border:1px solid var(--accent-border);padding:4px 9px;color:var(--text-soft);border-radius:20px;z-index:3}
.preview-toolbar{display:flex;align-items:center;justify-content:space-between;padding:13px 3px;gap:10px}
.preview-caption{display:flex;gap:8px;align-items:center;font-size:10px;color:var(--muted);min-width:0}
.status-dot{width:5px;height:5px;border-radius:50%;background:var(--muted);flex-shrink:0}
.preview-toolbar .icon-button{width:28px;height:28px;font-size:19px;border:0;color:var(--muted)}
.status-box{border:1px solid var(--line);border-radius:12px;background:var(--panel);display:flex;align-items:center;gap:12px;padding:13px 15px}
.status-icon{color:var(--accent);font-size:26px;line-height:1}
.status-box strong{display:block;font-size:12px;font-weight:500}
.status-box p{font-size:10px;color:var(--muted);margin:3px 0 0;line-height:1.9}
.status-box.error{border-color:color-mix(in srgb,var(--error) 40%,var(--line))}
.status-box.error .status-icon,.status-box.error strong{color:var(--error)}
.pipeline{display:flex;list-style:none;padding:0;margin:16px 2px 0;gap:8px}
.pipeline li{flex:1;display:flex;align-items:center;gap:7px;color:var(--muted);border-top:2px solid var(--line);padding-top:9px}
.pipeline li>span{font:9px var(--dm-font-display,InterW,sans-serif);color:var(--muted)}
.pipeline li>b{font-weight:400;font-size:10px}
.pipeline li.active{border-color:var(--accent);color:var(--accent)}
.pipeline li.complete{border-color:var(--accent-border);color:var(--accent)}
.review-actions,.decision-actions{margin-top:17px;padding:16px;border:1px solid var(--accent-border);border-radius:12px;background:var(--accent-soft)}
.review-actions strong{font-size:13px}
.review-actions p,.decision-actions p{font-size:11px;color:var(--text-soft);margin:4px 0 12px;line-height:1.8}
.review-actions .review-buttons button{width:100%}
.review-play{display:flex;flex-wrap:wrap;align-items:center;gap:8px 14px;margin:0 0 12px}
.review-play .secondary{min-height:40px;font-size:12px}
.review-play .text-button{font-size:12px}
.review-options{margin:0 0 10px;padding-inline-start:18px;display:grid;gap:6px;font-size:12px;line-height:1.8;color:var(--text)}
.review-options b{font-weight:700}
.review-buttons{display:grid;grid-template-columns:1fr 1.4fr;gap:10px;align-items:stretch}
.review-buttons .secondary{font-size:12px}
@media(max-width:560px){.review-buttons{grid-template-columns:1fr}.review-buttons .primary{order:-1}}
.checkbox-label{display:flex;gap:10px;align-items:start;font-size:11px;line-height:1.9}
.checkbox-label input{margin-top:4px;accent-color:var(--accent)}
.download-row{display:flex;gap:10px;margin-top:16px}
.download-row .primary{flex:1}
.download-row .secondary{font-size:11px}
.voice-mode{display:flex;gap:5px;padding:4px;background:var(--bg);border-radius:11px;border:1px solid var(--line);margin-bottom:23px}
.voice-mode button{flex:1;display:flex;align-items:center;justify-content:center;gap:9px;padding:10px 6px;font-size:12px;border:1px solid transparent;background:transparent;border-radius:7px;color:var(--muted)}
.voice-mode button.selected{background:var(--accent-soft);border-color:var(--accent-border);color:var(--accent)}
.field-help{font-size:10px;line-height:1.9;color:var(--muted);margin:8px 0 18px}
.voice-preview{display:flex;align-items:center;flex-wrap:wrap;gap:10px;padding:13px;background:color-mix(in srgb,var(--lavender) 9%,var(--panel));border:1px solid color-mix(in srgb,var(--lavender) 25%,var(--line));border-radius:11px;margin:15px 0 22px;font-size:11px;color:var(--text-soft)}
.wave-decoration{color:var(--lavender);letter-spacing:1px;font:18px monospace}
.voice-preview audio,.uploaded-file audio{width:100%;height:34px;direction:ltr}
.range-row{display:flex;align-items:center;gap:12px;font-size:10px;margin:13px 0 17px}
.range-row input{min-width:0;flex:1;accent-color:var(--accent)}
.range-row output{font:11px var(--dm-font-display,InterW,sans-serif);color:var(--accent)}
.upload-drop{position:relative;border:1px dashed var(--accent-border);border-radius:13px;min-height:215px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;text-align:center;background:var(--accent-soft);cursor:pointer;padding:20px}
.upload-drop:hover,.upload-drop.dragging{border-color:var(--accent);background:color-mix(in srgb,var(--accent) 12%,var(--panel))}
.upload-drop:focus-within{outline:2px solid var(--accent);outline-offset:3px}
.upload-drop input{position:absolute;inset:0;opacity:0;width:100%;height:100%;cursor:pointer}
.upload-symbol{width:42px;height:42px;border-radius:12px;background:color-mix(in srgb,var(--accent) 17%,var(--panel));color:var(--accent);font:24px var(--dm-font-display,InterW,sans-serif);display:grid;place-items:center;margin-bottom:8px}
.upload-drop strong{font-size:13px;font-weight:500}
.upload-drop>span:not(.upload-symbol){color:var(--text-soft);font-size:11px}
.upload-drop small{font:9px var(--dm-font-display,InterW,sans-serif);color:var(--muted);direction:ltr;margin-top:5px}
.privacy-note{font-size:10px;color:var(--muted);line-height:1.95;margin:16px 0 0}
.uploaded-file{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;padding:13px;background:var(--panel);border:1px solid var(--accent-border);border-radius:11px}
.uploaded-file>div{min-width:0;flex:1}
.uploaded-file strong{font:12px var(--dm-font-display,InterW,sans-serif);display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;direction:ltr;text-align:start;max-width:100%}
.uploaded-file .muted{font-size:10px;display:block;margin-top:6px}
.format-option{display:flex;align-items:center;gap:13px;border:1px solid var(--accent-border);background:var(--accent-soft);border-radius:10px;padding:13px;margin-bottom:22px}
.format-outline{width:24px;height:39px;border:1px solid var(--accent);border-radius:4px;position:relative}
.format-outline:after{content:"";position:absolute;left:7px;right:7px;bottom:3px;height:2px;border-radius:2px;background:var(--accent)}
.format-option strong{display:block;font-size:12px;font-weight:500}
.format-option div>span{font:9px var(--dm-font-display,InterW,sans-serif);color:var(--muted);display:block;margin-top:4px}
.selected-check{margin-inline-start:auto;color:var(--accent);font-size:17px}
.accent-row{display:flex;align-items:center;gap:10px;margin-bottom:21px}
.accent-row input[type=color]{padding:3px;width:33px;height:33px;background:transparent;border:1px solid var(--line);border-radius:7px;cursor:pointer}
.accent-row output{font:11px var(--dm-font-display,InterW,sans-serif);color:var(--text-soft)}
.swatches{display:flex;gap:7px;margin-inline-start:auto}
.swatch{width:22px;height:22px;border:2px solid #ffffff1f;border-radius:50%;padding:0}
.swatch.lime{background:var(--accent)}
.swatch.lavender{background:var(--lavender)}
.swatch.coral{background:var(--dm-coral,#ff9b7e)}
.swatch.sky{background:var(--dm-sky,#89d9ed)}
#brandHandle{margin-bottom:20px}
.budget-input{position:relative;direction:ltr}
.budget-input>span{position:absolute;left:13px;top:11px;color:var(--muted)}
.budget-input input{padding-left:58px!important}
.section-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:18px}
.section-heading h2{font-size:23px;margin:0}
.section-heading .eyebrow{font-size:10px;margin-bottom:4px}
.project-details{margin-top:33px}
.details-grid{display:grid;grid-template-columns:minmax(260px,.8fr) minmax(0,1.2fr);gap:22px}
.cost-card,.storyboard-card{padding:21px 23px}
.cost-total{display:flex;gap:13px;align-items:center;margin:23px 0}
.cost-total strong{font:600 32px var(--dm-font-display,InterW,sans-serif);letter-spacing:-1px;direction:ltr}
.cost-total span{font-size:10px;color:var(--muted);max-width:125px}
.cost-breakdown{margin:0;font-size:11px}
.cost-breakdown div{display:flex;justify-content:space-between;gap:15px;padding:9px 0;border-bottom:1px solid #ffffff08}
.cost-breakdown dt{color:var(--muted)}
.cost-breakdown dd{margin:0;font:11px var(--dm-font-display,InterW,PlexAr,sans-serif);direction:ltr}
.cost-card>.field-help{margin:15px 0 0;font-size:9px}
.shot-list{display:flex;flex-direction:column;gap:10px;margin-top:21px;max-height:270px;overflow:auto}
.shot{display:flex;align-items:center;gap:13px;padding:11px 12px;border-radius:var(--control-radius);background:var(--panel-soft);border:1px solid var(--line)}
.shot-number{width:32px;height:35px;border-radius:7px;background:var(--accent-soft);color:var(--accent);font:10px var(--dm-font-display,InterW,sans-serif);display:grid;place-items:center;flex-shrink:0}
.shot-text{flex:1;min-width:0}
.shot-title{font-size:12px;font-weight:500;line-height:1.8}
.shot-timing{font:9px var(--dm-font-display,InterW,sans-serif);color:var(--muted);direction:ltr;white-space:nowrap}
.shot-description{font-size:9px;color:var(--muted);margin:2px 0 0;line-height:1.8}
.tag{font-size:10px;color:var(--text-soft);border:1px solid var(--accent-border);background:var(--accent-soft);border-radius:20px;padding:5px 10px}
.history-section{margin:39px 0 35px;padding-top:27px;border-top:1px solid var(--line)}
.history-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}
.empty-history{grid-column:1/-1;display:flex;align-items:center;justify-content:center;gap:15px;border:1px dashed var(--line);border-radius:12px;padding:24px;color:var(--muted)}
.empty-history>span{font-size:27px;color:var(--muted)}
.empty-history p{font-size:11px;margin:0}
.history-card{padding:15px;border:1px solid var(--line);background:var(--panel);border-radius:var(--radius);display:flex;gap:12px;align-items:center;min-width:0}
.history-cover{background:var(--accent-soft);color:var(--accent);width:43px;height:58px;border:1px solid var(--accent-border);border-radius:6px;display:grid;place-items:center;font-size:24px;flex-shrink:0}
.history-main{flex:1;min-width:0;background:transparent;border:0;text-align:start;padding:0}
.history-main strong{font-size:12px;font-weight:500;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.history-main span{color:var(--muted);font-size:9px;margin-top:5px;display:block;line-height:1.8}
.history-card .icon-button{border:0;color:var(--muted);font-size:18px}
.history-card.current{border-color:var(--accent-border)}
footer{display:flex;align-items:center;gap:20px;justify-content:space-between;border-top:1px solid var(--line);padding:23px 0 29px}
.footer-brand{font:600 16px var(--dm-font-display,InterW,sans-serif);letter-spacing:-.7px;color:var(--text)}
.footer-brand>span{margin-left:8px;color:var(--accent)}
footer p{margin:0;font-size:10px;color:var(--muted)}
footer>a:last-child{font-size:9px;color:var(--muted)}
.skip-link{position:fixed;top:-60px;left:15px;background:var(--accent);color:var(--accent-ink);padding:9px 15px;border-radius:7px;z-index:30}
.skip-link:focus{top:15px}
.auth-view{min-height:100vh;display:grid;place-items:center;padding:25px;background:radial-gradient(ellipse at 50% 10%,var(--accent-soft),transparent 60%)}
.auth-card{width:100%;max-width:430px;background:var(--panel);border:1px solid var(--line);border-radius:var(--radius);padding:35px}
.auth-card>.brand{margin-bottom:38px}
.auth-card h1{font-size:27px;margin-bottom:14px}
.auth-card>.muted{font-size:12px;line-height:1.9}
.auth-card form input{margin-bottom:18px}
.auth-card .primary{width:100%;margin-top:12px;justify-content:space-between}
.auth-card #authStatus{font-size:11px;color:var(--error);margin:15px 0 0}
.auth-card>.language-toggle{display:block;margin:15px auto 0}
dialog{max-width:420px;width:calc(100% - 40px);border:1px solid var(--line);border-radius:var(--radius);background:var(--panel);color:var(--text);padding:26px}
dialog::backdrop{background:#0009;backdrop-filter:blur(4px)}
dialog h2{font-size:20px}
dialog p{font-size:12px;color:var(--muted);line-height:1.9}
.dialog-actions{display:flex;gap:10px;margin-top:24px}
.dialog-actions>*{flex:1}
.toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);max-width:calc(100% - 40px);background:var(--panel-soft);color:var(--text);border:1px solid var(--accent-border);border-radius:10px;padding:12px 20px;font-size:12px;z-index:50;box-shadow:0 10px 40px #0005}
html[dir=ltr] .next-tab>span:last-child{transform:scaleX(-1)}
html[dir=ltr] .preview-caption{font-size:11px}
html[dir=ltr] .workspace-heading h1{font-family:var(--dm-font-display,InterW,PlexAr,sans-serif);font-size:32px;line-height:1.5}
html[dir=ltr] .brand-sub{letter-spacing:2.7px}
@media(min-width:1400px){.studio-grid{grid-template-columns:minmax(390px,.9fr) minmax(0,1.3fr);gap:32px}
.preview-stage{height:547px}
.preview-art{max-height:500px}
.editor-pane{min-height:499px}
}
@media(max-width:1100px){.app-shell{padding:0 28px}
.studio-grid{grid-template-columns:minmax(320px,1fr) minmax(0,1.05fr);gap:20px}
.topnav{gap:18px}
.preview-stage{height:506px;min-height:506px;padding:20px}
.panel-heading,.editor-pane,.create-footer{padding-left:19px;padding-right:19px}
.editor-tabs{margin:0 19px}
.preview-heading h2{font-size:17px}
.history-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.optional-nav{display:none!important}
.workspace-heading h1{font-size:30px}
.editor-pane{min-height:458px}
.art-kicker{font-size:22px}
}
@media(max-width:800px){.app-shell{padding:0 20px}
.topbar{height:82px}
.brand{font-size:21px}
.topnav{gap:16px}
.topnav>a{font-size:11px}
.workspace-heading{padding:29px 0 23px}
.workspace-heading h1{font-size:27px}
.workspace-heading p{font-size:11px}
.workspace-heading>.small{font-size:11px}
.studio-grid{grid-template-columns:minmax(0,1fr);gap:30px}
.editor-pane{min-height:0;padding-bottom:18px}
.preview-heading{padding-top:0}
.preview-stage{height:545px;min-height:0}
.preview-art{max-height:500px}
.preview-workspace{order:1}
.create-panel{order:0}
.create-footer{padding:18px 24px}
.create-footer>.primary{min-height:50px}
.details-grid{grid-template-columns:1fr 1.15fr}
.shot{flex-wrap:wrap;gap:8px}
.shot-timing{width:100%;padding-inline-start:41px}
.history-section{margin-top:30px}
.pipeline{margin-bottom:0}
footer{flex-wrap:wrap}
.preview-badge{left:15px;top:15px}
.art-kicker{font-size:24px}
.editor-pane textarea{min-height:190px}
.status-box{padding:15px}
.preview-heading h2{font-size:20px}
}
@media(max-width:520px){.app-shell{padding:0 16px}
.topbar{height:78px;gap:15px}
.brand{font-size:19px;gap:8px}
.brand-symbol{width:31px;height:33px;font-size:28px;border-radius:8px}
.brand-sub{font-size:6px;letter-spacing:2.5px!important;margin-top:5px}
.topnav{gap:13px}
.topnav>a>span:first-child{display:none}
.topnav>a{font-size:10px}
.topnav .nav-divider{display:none}
.topnav .icon-button{width:28px;height:30px;font-size:17px}
.topnav .language-toggle{font-size:10px}
.workspace-heading{align-items:flex-start;padding:27px 0 20px}
.workspace-heading h1{font-size:23px;letter-spacing:-.6px}
.workspace-heading p{font-size:10px;line-height:1.9;max-width:235px}
.workspace-heading>.small{min-height:32px;padding:6px 8px;font-size:0;gap:0;border-radius:8px;margin-top:23px}
.workspace-heading>.small>span:first-child{font-size:19px}
.eyebrow{font-size:9px;gap:6px}
.heading-separator{margin:0 2px}
.create-panel{border-radius:15px}
.panel-heading{padding:18px 18px 13px}
.panel-heading h2{font-size:17px}
.editor-tabs{margin:0 17px}
.editor-tabs button{font-size:12px;padding-bottom:14px;gap:7px}
.editor-pane{padding:20px 17px 16px}
.field-row{gap:10px}
.language-field{width:93px}
.editor-pane label{font-size:11px}
input,select{font-size:12px!important}
.input-meta{font-size:9px;gap:8px}
.create-footer{padding:16px 17px}
.preview-stage{height:490px;padding:20px}
.preview-art{max-height:450px}
.art-kicker{font-size:22px;left:20px;top:24px}
.art-caption{font-size:12px;bottom:62px}
.art-person{bottom:42px}
.symbol-atom{width:61px;height:61px;font-size:39px;top:143px}
.symbol-brackets{bottom:125px;width:51px;height:51px;font-size:21px}
.preview-heading h2{font-size:18px}
.preview-size{font-size:9px;padding:6px 8px}
.preview-badge{font-size:8px;padding:3px 7px;left:8px;top:8px}
.preview-toolbar{padding:11px 1px}
.preview-caption{font-size:9px}
.status-box{padding:12px}
.pipeline li{gap:6px}
.pipeline li b{font-size:9px}
.details-grid{grid-template-columns:1fr}
.section-heading h2{font-size:20px}
.cost-card,.storyboard-card{padding:19px}
.shot{flex-wrap:nowrap;gap:12px}
.shot-timing{width:auto;padding:0}
.history-grid{grid-template-columns:1fr}
.history-section{margin-top:28px;padding-top:22px}
.empty-history{padding:18px 15px;gap:10px}
.empty-history p{font-size:10px}
.history-card{padding:13px}
.history-cover{width:37px;height:51px}
.download-row{flex-wrap:wrap}
.download-row .primary{min-width:180px}
.review-actions{padding:14px}
.review-actions .primary{font-size:12px}
.create-note{font-size:8px}
.demo-button{font-size:10px}
.topnav{gap:11px}
footer{gap:12px;padding-top:19px}
footer p{font-size:9px}
footer>a:last-child{width:100%;font-size:9px}
.auth-card{padding:27px}
.auth-card h1{font-size:24px}
html[dir=ltr] .workspace-heading h1{font-size:23px}
.preview-stage:fullscreen{height:100vh;border-radius:0}
.preview-stage:fullscreen #video,.preview-stage:fullscreen iframe{height:95vh}
}

@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}
*,*:before,*:after{transition:none!important;animation:none!important}
}
@media(forced-colors:active){.live-dot,.status-dot{background:CanvasText}
.primary,.selected,.editor-tabs button[aria-selected=true]{border:2px solid Highlight}
.preview-art{forced-color-adjust:none}
}

.auth-links{display:flex;gap:16px;align-items:center;justify-content:space-between;margin-top:16px}
.auth-links .text-button{font-size:11px}
.billing-section{margin-top:32px;padding-top:26px;border-top:1px solid var(--line)}
.billing-summary{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:22px}
.billing-summary strong{font-size:18px;font-weight:500}
.billing-summary .field-help{margin:6px 0 0}
.minutes-meter{text-align:center;border-inline-start:1px solid var(--line);padding-inline-start:25px}
.minutes-meter>strong{font:600 28px var(--dm-font-display,InterW,sans-serif);color:var(--accent);display:block}
.minutes-meter>span{font-size:10px;color:var(--muted)}
.plans-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:20px 0}
.plan-card{border:1px solid var(--line);background:var(--panel);border-radius:var(--radius);padding:22px}
.plan-card h3{font-size:18px;margin-bottom:12px}
.plan-price{font-size:13px;display:flex;align-items:baseline;gap:6px}
.plan-price strong{font:600 32px var(--dm-font-display,InterW,sans-serif);color:var(--accent)}
.plan-card p{font-size:11px;color:var(--muted);line-height:1.9;margin:12px 0 20px}
.plan-card button{width:100%;font-size:11px}
.payment-order{border:1px solid var(--accent-border);border-radius:13px;background:var(--panel);padding:20px;margin-top:14px}
.payment-order h3{margin-bottom:7px}
.payment-order p{font-size:11px;color:var(--text-soft);line-height:1.9}
.payment-reference{display:flex;align-items:center;justify-content:space-between;gap:12px;background:var(--bg);border:1px dashed var(--accent-border);border-radius:8px;padding:9px 12px;margin:13px 0;direction:ltr}
.payment-reference strong{font:12px var(--dm-font-display,InterW,sans-serif);overflow-wrap:anywhere}
.payment-reference button{font-size:10px}
.payment-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-top:13px}
.payment-actions>.primary,.payment-actions>.secondary{font-size:11px;min-height:39px;padding:9px 13px}
.payment-order input{margin-top:8px}
.payment-order label{margin-top:15px}
.payment-status{font-size:10px;color:var(--accent);display:inline-block}
.admin-billing{margin-top:28px;border-top:1px solid var(--line);padding-top:22px}
.admin-billing .privacy-note{margin-bottom:14px;color:var(--warning)}
.admin-order{display:flex;flex-wrap:wrap;gap:14px;align-items:center;background:color-mix(in srgb,var(--dm-coral,#ff9b7e) 5%,var(--panel));border:1px solid color-mix(in srgb,var(--dm-coral,#ff9b7e) 23%,var(--line));border-radius:12px;padding:16px;margin-top:10px}
.admin-order>div:first-child{flex:1;min-width:200px}
.admin-order strong{font-size:12px;display:block;overflow-wrap:anywhere}
.admin-order p{font-size:10px;color:var(--text-soft);margin:7px 0;overflow-wrap:anywhere}
.admin-order .payment-actions{margin:0}
.admin-order input{font-size:11px!important;max-width:260px}
.admin-order .danger{font-size:11px;min-height:39px;padding:9px 13px}
@media(max-width:800px){.plans-grid{grid-template-columns:1fr}
.plan-card{display:grid;grid-template-columns:1fr 1fr;gap:0 20px;padding:19px}
.plan-card h3{margin:0}
.plan-price{justify-content:end}
.plan-price strong{font-size:27px}
.plan-card p{margin:7px 0 0}
.plan-card button{align-self:center;justify-self:end;max-width:180px}
.payment-order{padding:16px}
}
@media(max-width:520px){#openBilling{display:none}
.billing-summary{padding:17px;gap:15px}
.billing-summary strong{font-size:16px}
.minutes-meter{padding-inline-start:17px}
.minutes-meter>strong{font-size:25px}
.plan-card h3{font-size:16px}
.plan-card p{font-size:10px}
.plan-price{font-size:11px}
.plan-price strong{font-size:25px}
.admin-order{padding:14px}
.admin-order>div:first-child{min-width:0;width:100%}
.admin-order .payment-actions{width:100%}
.workspace-heading{flex-wrap:wrap}
.mobile-billing-button{display:inline-flex!important;font-size:10px;margin-top:0!important;min-height:30px!important}
}

.recordings-library{border:1px solid var(--line);border-radius:10px;margin:16px 0;padding:10px 12px}
.recordings-library summary{font-size:11px;color:var(--text-soft);cursor:pointer;min-height:25px}
.recordings-library>.text-button{font-size:10px;margin-top:7px}
.recording-row{display:flex;gap:9px;align-items:center;padding:11px 0;border-top:1px solid #ffffff0b}
.recording-row>div{min-width:0;flex:1}
.recording-row strong{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:10px;font-weight:500}
.recording-row .field-help{display:block;margin:3px 0 0;font-size:9px}
.recording-row .text-button{font-size:10px}
.recording-row .icon-button{font-size:17px;width:27px;height:27px;border:0}

.footer-links{display:flex;align-items:center;flex-wrap:wrap;gap:18px;font-size:9px;color:var(--muted)}
.footer-links a:hover,#registerConsent a:hover{color:var(--accent)}
#registerConsent{margin:16px 0 5px;font-size:10px;color:var(--muted);line-height:2}
#registerConsent input{margin:5px 0 0;flex-shrink:0}
#registerConsent a{text-decoration:underline;text-underline-offset:3px;color:var(--text)}
@media(max-width:520px){.footer-links{width:100%;gap:14px;font-size:9px}
}

@media(pointer:coarse){input:not([type=color]):not([type=range]),select,textarea{font-size:16px!important}
.text-button{min-height:40px}
.icon-button{min-width:38px;min-height:38px}
.swatch{width:29px;height:29px}
.topnav .icon-button{min-width:30px}
.topnav .text-button{min-height:38px}
}


/* Shared identity and restrained motion; rendering previews retain their own authored colors. */
.brand-sub{font-size:7px;letter-spacing:3px;color:var(--muted)}
.topnav{color:var(--text-soft)}
.topnav .text-button,.topnav a{min-height:44px;display:inline-flex;align-items:center}
.workspace-heading h1{font-size:36px;font-weight:600;letter-spacing:-.7px;line-height:1.45}
.workspace-heading .eyebrow{font-family:var(--dm-font,PlexAr,sans-serif)}
.primary,.secondary,.danger,.icon-button{border-radius:var(--control-radius)}
.secondary:hover:enabled{color:var(--accent);border-color:var(--accent-border)}
.primary:active:enabled,.secondary:active:enabled{transform:translateY(1px)}
.editor-pane>.field-row{margin-bottom:18px}
.editor-tabs button{min-height:48px}
.preview-stage{background:radial-gradient(ellipse at 50% 10%,color-mix(in srgb,var(--accent) 7%,var(--panel)),var(--panel) 62%)}
.preview-art{background:#e4e9d5;color:#17231c}
.art-caption{background:color-mix(in srgb,var(--bg) 92%,transparent);color:var(--text)}
.status-box,.voice-mode,.voice-preview,.uploaded-file,.format-option,.review-actions,.decision-actions,.payment-order,.admin-order,.recordings-library{border-radius:var(--control-radius)}
.history-card{transition:border-color var(--dm-duration-ui,240ms),background var(--dm-duration-ui,240ms)}
.history-card:hover{background:var(--panel-soft);border-color:var(--accent-border)}
.history-card.current{border-color:var(--accent);background:var(--accent-soft)}
.cost-card,.storyboard-card,.auth-card,.billing-summary,.plan-card{border-radius:var(--radius)}
.plan-card:nth-child(2){background:var(--accent-soft);border-color:var(--accent-border)}
.plan-card h3{font-size:20px}
.plan-price strong{font-weight:600;letter-spacing:-1px;color:var(--text)}
.plan-card:nth-child(2) .plan-price strong{color:var(--accent)}
.payment-reference{background:var(--bg);border-color:var(--accent-border)}
.auth-view{background:radial-gradient(ellipse at 50% 0%,color-mix(in srgb,var(--accent) 6%,var(--bg)),transparent 64%),var(--bg)}
.auth-card{box-shadow:0 24px 80px #0002}
.auth-card h1{letter-spacing:-.5px;line-height:1.55}
.auth-preferences{display:flex;justify-content:center;align-items:center;gap:22px;margin-top:17px;padding-top:13px;border-top:1px solid var(--line)}
.auth-preferences .text-button{margin:0;min-height:44px}
.studio-motion-control{display:inline-flex;align-items:center;gap:7px;font-size:10px;min-height:44px;white-space:nowrap;color:var(--muted)}
.studio-motion-control [data-motion-icon]{font:10px var(--dm-font-mono,JBM,monospace);color:var(--accent)}
.footer-links{row-gap:4px}
.footer-links .studio-motion-control{font-size:9px}
html[data-motion=running] .workspace-heading,html[data-motion=running] .create-panel,html[data-motion=running] .preview-workspace,html[data-motion=running] .auth-card{animation:studio-enter var(--dm-duration-reveal,560ms) var(--dm-ease-out,cubic-bezier(.16,1,.3,1)) both}
html[data-motion=running] .create-panel{animation-delay:60ms}
html[data-motion=running] .preview-workspace{animation-delay:110ms}
html[data-motion=running] .pipeline li.active{animation:studio-progress 1800ms ease-in-out infinite}
@keyframes studio-enter{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}
@keyframes studio-progress{0%,100%{border-color:var(--accent)}50%{border-color:var(--accent-border)}}
html[data-motion=paused],html[data-motion=reduced]{scroll-behavior:auto}
html[data-motion=paused] *,html[data-motion=paused] *:before,html[data-motion=paused] *:after,html[data-motion=reduced] *,html[data-motion=reduced] *:before,html[data-motion=reduced] *:after{animation:none!important;transition:none!important}
@media(max-width:800px){.workspace-heading h1{font-size:29px}.auth-card{box-shadow:none}}
@media(max-width:520px){.workspace-heading h1{font-size:24px}.brand-symbol{border-radius:8px 8px 8px 2px}.brand-sub{font-size:5px;letter-spacing:2.5px!important}.auth-preferences{gap:16px}.studio-motion-control{font-size:9px}.footer-links{column-gap:14px}.plan-card h3{font-size:16px}}
@media(prefers-reduced-motion:reduce){html[data-motion=running] *,html[data-motion=running] *:before,html[data-motion=running] *:after{animation:none!important;transition:none!important}}

/* Private image assets and an editable story library. */
.project-images{margin-top:18px;border:1px solid var(--line);border-radius:var(--control-radius);overflow:hidden}
.project-images>summary{display:flex;align-items:center;gap:8px;padding:13px 12px;cursor:pointer;list-style:none;font-size:12px;color:var(--text-soft);min-height:48px}
.project-images>summary::-webkit-details-marker{display:none}.project-images>summary:after{content:'＋';color:var(--accent);font-size:18px}.project-images[open]>summary:after{content:'−'}
.project-images>summary .optional{font-size:9px;color:var(--muted)}.images-summary-icon{color:var(--accent);font-size:18px}.image-count{margin-inline-start:auto;font:10px var(--dm-font-mono);color:var(--accent)}
.images-body{padding:0 12px 15px;border-top:1px solid var(--line)}.images-body>.field-help{margin:12px 0}.image-drop{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;min-height:138px;border:1px dashed var(--accent-border);border-radius:var(--control-radius);background:var(--accent-soft);padding:16px;text-align:center;cursor:pointer;overflow:hidden}
.image-drop input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}.image-drop>span{font-size:22px;color:var(--accent)}.image-drop strong{font-size:11px;font-weight:500}.image-drop small{font:9px var(--dm-font-display);color:var(--muted)}.image-drop:focus-within{outline:2px solid var(--accent);outline-offset:3px}.image-drop.dragging{border-color:var(--accent);background:color-mix(in srgb,var(--accent) 12%,var(--panel))}
.image-upload-progress progress{width:100%;height:5px;accent-color:var(--accent)}.image-upload-progress{padding-top:10px}#imageUploadStatus{overflow-wrap:anywhere}.selected-images{display:grid;gap:10px}.selected-image{padding:11px;border:1px solid var(--line);border-radius:var(--control-radius);background:var(--bg);min-width:0}.selected-image-top{display:flex;align-items:center;gap:10px;margin-bottom:12px}.image-thumb{display:block;flex-shrink:0;width:60px;height:66px;object-fit:contain;background:var(--panel-soft);border-radius:6px;border:1px solid var(--line)}.selected-image-heading{flex:1;min-width:0}.selected-image-heading strong{display:block;font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:500}.selected-image-heading small{display:block;font:8px var(--dm-font-mono);color:var(--muted);margin-top:4px}.selected-image .image-description{min-height:70px;max-height:160px;font-size:11px;line-height:1.9;padding:10px!important;background:var(--panel)}.selected-image label{font-size:10px;margin-bottom:5px}.image-actions{display:flex;gap:7px;align-items:center;margin-top:10px}.image-actions select{flex:1;min-width:0;height:37px;font-size:10px}.image-actions .icon-button{width:33px;height:37px;font-size:15px}.image-actions .image-order{font:9px var(--dm-font-mono);color:var(--muted)}.image-fit-label{margin-top:10px}.image-library-list{display:grid;gap:8px;margin-top:8px}.image-library-row{display:flex;align-items:center;gap:10px;padding:9px 0;border-top:1px solid var(--line)}.image-library-row .image-thumb{width:45px;height:50px}.image-library-info{flex:1;min-width:0}.image-library-info strong{display:block;font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:500}.image-library-info small{display:block;font-size:8px;color:var(--muted);margin-top:3px}.image-library-row .text-button{font-size:9px;flex-shrink:0}.image-library-row .icon-button{border:0;font-size:16px;flex-shrink:0}.demo-images-option{margin:12px 0 3px;text-align:start;font-size:9px;color:var(--muted)}
.examples-dialog{width:min(1040px,calc(100% - 32px));max-width:none;max-height:calc(100dvh - 40px);padding:0;background:var(--bg);overflow:auto;border-color:var(--line)}.examples-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:25px 28px 0}.examples-heading .eyebrow{margin-bottom:4px}.examples-heading h2{font-size:29px;line-height:1.5;margin:0}.examples-intro{margin:10px 28px 20px;max-width:730px;font-size:12px;line-height:1.9;color:var(--muted)}.examples-filters{display:grid;grid-template-columns:1.3fr 1fr;gap:14px;padding:0 28px 22px;border-bottom:1px solid var(--line)}.examples-filters input{height:45px}.examples-content{display:grid;grid-template-columns:minmax(220px,.8fr) minmax(0,1.2fr);min-height:480px}.examples-list-wrap{padding:18px 19px 24px;border-inline-end:1px solid var(--line);max-height:650px;overflow:auto}.example-list{display:grid;gap:9px}.example-card{display:block;text-align:start;padding:15px;border:1px solid var(--line);border-radius:var(--control-radius);background:var(--panel);color:var(--text);width:100%;min-width:0}.example-card:hover,.example-card[aria-pressed=true]{border-color:var(--accent-border);background:var(--accent-soft)}.example-card[aria-pressed=true]{border-inline-start:3px solid var(--accent)}.example-card strong{display:block;font-size:13px;line-height:1.8}.example-card p{font-size:10px;line-height:1.8;color:var(--muted);margin:8px 0}.example-card-meta{display:flex;justify-content:space-between;gap:10px;align-items:center;color:var(--accent);font-size:9px}.example-detail{padding:25px 27px;min-width:0;background:var(--panel)}.example-detail-top{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:15px}.example-detail h3{font-size:24px;line-height:1.5;margin-bottom:11px}.example-detail h4{font-size:11px;font-weight:500;color:var(--text-soft);margin:20px 0 8px}.example-script-preview{background:var(--bg);border:1px solid var(--line);padding:15px;border-radius:var(--control-radius);font-size:12px;line-height:2.1;white-space:pre-wrap;max-height:210px;overflow:auto}.example-shots,.example-image-ideas{padding-inline-start:20px;margin:0;font-size:11px;line-height:1.9;color:var(--muted)}.example-shots li,.example-image-ideas li{padding-inline-start:5px;margin:7px 0}.example-shots li::marker{color:var(--accent);font-family:var(--dm-font-mono)}.example-detail>.primary{width:100%;justify-content:space-between}.examples-empty{font-size:12px;color:var(--muted);padding:20px 5px;line-height:1.9}#deleteImageName{overflow-wrap:anywhere;color:var(--text)}
@media(max-width:650px){.examples-dialog{width:calc(100% - 20px);max-height:calc(100dvh - 20px)}.examples-heading{padding:20px 18px 0;gap:12px}.examples-heading h2{font-size:24px}.examples-intro{font-size:11px;margin:10px 18px 17px}.examples-filters{padding:0 18px 18px;gap:10px;grid-template-columns:minmax(0,1fr)}.examples-filters label{font-size:11px}.examples-content{grid-template-columns:1fr}.examples-list-wrap{padding:12px 18px 18px;max-height:265px;border-inline-end:0;border-bottom:1px solid var(--line)}.example-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.example-card{padding:12px}.example-card strong{font-size:11px}.example-card p{font-size:9px}.example-card-meta{font-size:8px;flex-wrap:wrap;gap:4px}.example-detail{padding:22px 18px}.example-detail h3{font-size:22px}.example-script-preview{font-size:11px;max-height:180px}.example-detail .tiny-label{font-size:9px}.project-images>summary{font-size:11px;gap:6px}.selected-image-top{gap:8px}.image-thumb{width:52px;height:60px}.image-library-row{gap:7px}.image-library-row .image-thumb{width:38px;height:46px}.image-library-row .text-button{font-size:8px}.image-actions{gap:5px}.image-actions .icon-button{min-width:30px;width:30px}.image-actions select{font-size:10px!important}}
@media(max-width:350px){.example-list{grid-template-columns:1fr}.examples-heading h2{font-size:21px}.images-body{padding-left:9px;padding-right:9px}.project-images>summary .optional{font-size:8px}.image-library-row .icon-button{width:25px;min-width:25px}}
/* Account journey and safe sign-in share the existing studio identity. */
.google-auth{margin-top:22px}.google-auth>.secondary{width:100%;justify-content:center;margin-top:14px}.auth-divider{display:flex;align-items:center;gap:12px;color:var(--muted);font:11px var(--dm-font-display)}.auth-divider:before,.auth-divider:after{content:'';height:1px;background:var(--line);flex:1}.google-auth .checkbox-label{font-size:11px;margin:14px 0 5px}.google-policy-links{font-size:11px;color:var(--muted)}.google-policy-links a{text-decoration:underline;text-underline-offset:4px}
.account-journey{display:flex;align-items:center;justify-content:space-between;gap:25px;margin:28px 0 10px;padding:24px 28px;border:1px solid var(--accent-border);background:var(--accent-soft)}.account-journey h2{margin:5px 0 8px;font-size:22px}.account-journey p{color:var(--muted);font-size:12px;margin:0 0 15px}.account-journey>.primary{flex-shrink:0}.account-steps{list-style:none;padding:0;margin:0;display:flex;flex-wrap:wrap;gap:10px;font-size:10px;color:var(--muted);counter-reset:step}.account-steps li{display:flex;align-items:center;gap:6px;counter-increment:step}.account-steps li:before{content:counter(step);border:1px solid var(--line);border-radius:50%;width:21px;height:21px;display:grid;place-items:center;font:10px var(--dm-font-mono)}.account-steps li.current{color:var(--accent)}.account-steps li.current:before,.account-steps li.done:before{background:var(--accent);color:var(--accent-ink);border-color:var(--accent)}.account-steps li.done:before{content:'✓'}.account-journey[data-state=expired],.account-journey[data-state=exhausted]{border-color:color-mix(in srgb,var(--error) 40%,var(--line))}.payment-reason{padding:13px;border:1px solid color-mix(in srgb,var(--error) 30%,var(--line));border-radius:var(--control-radius);color:var(--error);overflow-wrap:anywhere}#creditDetails{margin:5px 0 0}
@media(max-width:650px){.account-journey{display:block;padding:20px;margin-top:20px}.account-journey h2{font-size:19px}.account-journey>.primary{width:100%;margin-top:18px;justify-content:center}.account-steps{gap:8px;font-size:9px}.account-steps li:before{width:18px;height:18px}}

.session-check{position:fixed;z-index:999;inset:0;background:var(--bg);display:grid;place-items:center;color:var(--muted);font-size:14px}

.advanced-output{margin-top:20px;border-top:1px solid var(--line);padding-top:14px}.advanced-output>summary{font-size:11px;color:var(--muted);cursor:pointer}.advanced-output[open]>summary{margin-bottom:15px}

.payment-correction{margin-top:20px;padding-top:14px;border-top:1px solid var(--line)}.payment-correction summary{font-size:12px;color:var(--muted);cursor:pointer}.payment-correction label{margin-top:15px}.payment-correction .secondary{margin-top:12px}

.plan-card.chosen-plan{border-color:var(--accent);box-shadow:inset 0 0 0 1px var(--accent-border)}

.cancel-unpaid{display:block;margin:18px 0 0!important;color:var(--muted);font-size:11px}

/* Narrator library: listen deliberately, choose independently from the current page. */
.voice-library-heading{display:flex;align-items:start;justify-content:space-between;gap:15px;margin:25px 0 16px}.voice-library-heading h3{font-size:18px;line-height:1.5;letter-spacing:-.35px;margin:7px 0 0}.voice-provider{font:10px var(--dm-font-mono);color:var(--muted);padding-top:3px}.selected-narrator{display:flex;align-items:center;gap:12px;padding:16px;border:1px solid var(--line);border-radius:var(--control-radius);background:var(--panel-soft);margin:0 0 22px}.selected-narrator.has-selection{border-color:var(--accent-border);background:var(--accent-soft)}.selected-narrator .grow{min-width:0}.selected-narrator strong{display:block;margin:5px 0;font-size:13px;overflow-wrap:anywhere}.selected-narrator .field-help{display:block;margin:0;font-size:10px}.narrator-avatar{display:grid;place-items:center;width:38px;height:38px;border:1px solid var(--accent-border);border-radius:50%;flex-shrink:0;color:var(--accent);font:500 12px var(--dm-font-display);background:var(--accent-soft)}.voice-search-field label,.voice-filters label{font-size:11px}.voice-search-field input{width:100%;min-height:42px}.voice-filters{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:13px 0}.voice-filters>div{min-width:0}.voice-filters select{width:100%;min-width:0;font-size:11px;height:40px}.voice-results-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:17px 0 8px;min-height:21px}.voice-results-heading button{font-size:11px}.voice-results{max-height:430px;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:var(--line) transparent;border-block:1px solid var(--line)}.voice-results:empty{display:none}.narrator-row{display:flex;align-items:start;gap:12px;padding:16px 4px;border-bottom:1px solid var(--line)}.narrator-row:last-child{border-bottom:0}.narrator-row.chosen{background:var(--accent-soft)}.narrator-row:nth-child(3n+2) .narrator-avatar{color:var(--dm-violet);border-color:color-mix(in srgb,var(--dm-violet) 25%,var(--line));background:color-mix(in srgb,var(--dm-violet) 8%,var(--panel))}.narrator-row:nth-child(3n) .narrator-avatar{color:var(--dm-coral);border-color:color-mix(in srgb,var(--dm-coral) 25%,var(--line));background:color-mix(in srgb,var(--dm-coral) 8%,var(--panel))}.narrator-info{flex:1;min-width:0}.narrator-info>strong{font-size:12px;font-weight:600;line-height:1.6;overflow-wrap:anywhere}.narrator-labels{display:flex;gap:4px 7px;flex-wrap:wrap;margin-top:4px;font-size:9px;color:var(--muted)}.narrator-labels span:not(:last-child):after{content:'·';margin-inline-start:7px;color:var(--line)}.narrator-description{font-size:10px;line-height:1.7;color:var(--muted);margin:6px 0 0;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}.narrator-actions{display:flex;flex-direction:column;align-items:center;gap:6px;flex-shrink:0;min-width:46px}.narrator-actions .voice-sample,.selected-narrator .voice-sample{width:34px;height:34px;border:1px solid var(--line);border-radius:50%;font-size:17px}.voice-sample[aria-pressed=true]{color:var(--accent);border-color:var(--accent-border);background:var(--accent-soft)}.voice-sample:disabled{opacity:.35;cursor:not-allowed}.choose-narrator{font-size:10px;padding:5px 3px;min-height:30px}.choose-narrator[aria-pressed=true]{color:var(--accent)}.voice-catalog-status{font-size:12px;line-height:1.9;color:var(--muted);padding:17px 0}.voice-catalog-status.error{color:var(--error)}.voice-load-more{width:100%;justify-content:center;margin:12px 0;font-size:11px}.narrator-preview{display:block;padding:13px;margin:19px 0}.voice-preview-heading{display:flex;align-items:center;gap:10px;min-width:0;margin-bottom:10px}.voice-preview-heading .wave-decoration{font-size:17px;flex-shrink:0}.voice-preview-heading>span:nth-child(2){flex:1;min-width:0;overflow-wrap:anywhere;font-size:11px}.narrator-preview audio{width:100%;max-width:100%;height:38px}.narrator-preview .field-help:empty{display:none}@media(max-width:390px){.voice-library-heading{gap:8px}.voice-library-heading h3{font-size:16px}.voice-provider{font-size:9px}.narrator-row{gap:9px}.narrator-avatar{width:31px;height:31px;font-size:10px}.selected-narrator{padding:12px;gap:10px}.voice-filters{gap:8px}.voice-filters select{padding-inline:9px}.voice-results{max-height:370px}}
.live-progress{border:1px solid var(--line);border-radius:var(--control-radius);padding:14px 17px;margin:14px 0;background:var(--panel-soft)}.live-progress>div:first-child{display:flex;align-items:center;justify-content:space-between;gap:14px}.live-progress #liveStage{font-size:12px;font-weight:500;color:var(--accent)}.live-progress #progressConnection{font-size:9px;color:var(--muted)}.live-progress #progressConnection.stale{color:var(--error)}.progress-clocks{display:flex;gap:8px 20px;flex-wrap:wrap;margin-top:10px;font-variant-numeric:tabular-nums;font-size:12px}.live-progress .field-help{font-size:10px;margin-bottom:0}@media(max-width:390px){.live-progress{padding:12px}.live-progress>div:first-child{align-items:start;flex-direction:column;gap:6px}}
.narration-language{margin-bottom:18px}.narration-language>label{font-size:11px}.narration-language select{width:100%}.voice-mode{gap:5px}.voice-mode button{padding-inline:8px;font-size:11px;min-width:0}.silent-voice-panel{padding:26px 20px;text-align:center;border:1px solid var(--line);border-radius:var(--control-radius);background:var(--panel-soft);margin:22px 0}.silent-symbol{font-size:42px;color:var(--dm-violet)}.silent-voice-panel h3{font-size:19px;margin:8px 0}.silent-voice-panel p{font-size:12px;line-height:1.9;color:var(--muted)}.budget-minimum{font-size:12px;color:var(--accent);line-height:1.8;margin:12px 0}#estimateBudget{font-size:11px;margin:7px 0}#renderProgressBar{appearance:none;width:100%;height:5px;margin-top:10px;border:0;border-radius:20px;background:var(--line)}#renderProgressBar::-webkit-progress-bar{background:var(--line);border-radius:20px}#renderProgressBar::-webkit-progress-value{background:var(--accent);border-radius:20px}#renderProgressBar::-moz-progress-bar{background:var(--accent);border-radius:20px}#downloadStatus{margin-top:10px;font-size:11px;line-height:1.8;color:var(--muted)}#downloadStatus.error{color:var(--error)}#download[aria-disabled=true]{opacity:.6;pointer-events:none}@media(max-width:390px){.voice-mode button{font-size:10px;padding:10px 5px;gap:5px}.narration-language .field-help{font-size:10px}}
.receipt-upload{display:grid;gap:6px;margin-top:13px;justify-items:start}
.receipt-upload .visually-hidden{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);border:0;white-space:nowrap}
.receipt-button{cursor:pointer;font-size:11px;min-height:39px;padding:9px 13px}
.receipt-button[aria-disabled=true]{opacity:.6;pointer-events:none}
.receipt-upload input:focus-visible+.receipt-button{outline:2px solid var(--accent);outline-offset:2px}
.receipt-sent{margin-top:10px}
.receipt-sent a{color:var(--accent);text-decoration:underline}
.account-menu{position:relative}
.account-button{display:inline-flex;align-items:center;gap:9px;min-height:38px;padding:3px 4px;padding-inline-end:12px;border:1px solid var(--line);border-radius:999px;background:transparent;color:var(--text);cursor:pointer;font:inherit}
.account-button:hover,.account-button[aria-expanded=true]{border-color:var(--accent-border);background:var(--panel-soft)}
.account-button:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.account-avatar{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:var(--accent);color:var(--bg);font-weight:700;font-size:13px;flex-shrink:0}
.account-summary{display:grid;line-height:1.3;text-align:start}
.account-name{font-size:11px;font-weight:600;color:var(--text);max-width:140px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.account-credits{font-size:10px;color:var(--accent);white-space:nowrap}
.account-panel{position:absolute;inset-inline-end:0;top:calc(100% + 8px);z-index:40;width:min(290px,calc(100vw - 32px));display:grid;gap:10px;padding:16px;border:1px solid var(--accent-border);border-radius:13px;background:var(--panel);box-shadow:0 18px 40px rgba(0,0,0,.35)}
.account-panel[hidden]{display:none}
.account-panel-name{font-size:14px;font-weight:700;color:var(--text)}
.account-panel-email{font-size:11px;color:var(--text-soft);overflow-wrap:anywhere;text-align:start}
.account-panel-credits{display:grid;gap:3px;padding:10px 12px;border-radius:10px;background:var(--panel-soft)}
.account-panel-credits strong{font-size:18px;color:var(--accent)}
.account-panel-credits span{font-size:11px;line-height:1.6;color:var(--text-soft)}
.account-panel .secondary{width:100%;font-size:12px;min-height:40px}
.account-logout{justify-self:start;font-size:12px}
@media(max-width:520px){.account-name{display:none}.account-button{gap:7px;padding-inline-end:9px}}
.receipt-upload [role=status]:empty{display:none}
.account-panel p{margin:0}
html[dir=rtl] .account-panel-email{text-align:right}
html[dir=ltr] .account-panel-email{text-align:left}
.draft-open{display:flex;align-items:center;gap:10px;width:100%;margin:2px 0 10px;padding:11px 14px;border:1px dashed var(--accent-border);border-radius:var(--control-radius);background:color-mix(in srgb,var(--accent) 6%,transparent);color:var(--text);font:inherit;font-size:12px;font-weight:600;cursor:pointer;text-align:start}
.draft-open:hover,.draft-open[aria-expanded=true]{border-style:solid;background:color-mix(in srgb,var(--accent) 11%,transparent)}
.draft-open:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.draft-open-mark{color:var(--accent);font-size:14px}
.draft-panel{display:grid;gap:10px;margin:0 0 12px;padding:16px;border:1px solid var(--accent-border);border-radius:13px;background:var(--panel-soft)}
.draft-panel[hidden]{display:none}
.draft-panel>label{font-size:12px;font-weight:600}
.draft-options{display:flex;flex-wrap:wrap;gap:12px 20px}
.draft-choice{display:flex;flex-wrap:wrap;gap:6px;border:0;margin:0;padding:0;min-width:0}
.draft-choice legend{width:100%;margin-bottom:6px;padding:0;font-size:11px;color:var(--text-soft)}
.draft-choice label{position:relative;display:inline-flex}
.draft-choice input{position:absolute;opacity:0;width:1px;height:1px}
.draft-choice span{padding:7px 11px;border:1px solid var(--line);border-radius:999px;font-size:11px;color:var(--text-soft);cursor:pointer}
.draft-choice input:checked+span{border-color:var(--accent);color:var(--text);background:color-mix(in srgb,var(--accent) 12%,transparent)}
.draft-choice input:focus-visible+span{outline:2px solid var(--accent);outline-offset:2px}
.draft-actions{display:flex;flex-wrap:wrap;align-items:center;gap:10px}
.draft-actions .primary,.draft-actions .secondary{font-size:12px;min-height:40px}
.draft-status{display:flex;align-items:center;gap:8px;min-height:0;font-size:12px;line-height:1.7;color:var(--text-soft)}
.draft-status:empty{display:none}
.spinner{flex-shrink:0;width:14px;height:14px;border-radius:50%;border:2px solid color-mix(in srgb,var(--accent) 25%,transparent);border-top-color:var(--accent)}
html[data-motion=running] .spinner{animation:studio-spin 800ms linear infinite}
@keyframes studio-spin{to{transform:rotate(360deg)}}
.draft-result{display:grid;gap:8px;padding:14px;border-radius:11px;background:var(--panel);border:1px solid var(--line)}
.draft-result[hidden]{display:none}
.draft-title{font-size:14px;font-weight:700;color:var(--text)}
.draft-lines{margin:0;padding-inline-start:20px;display:grid;gap:6px;font-size:13px;line-height:1.8;color:var(--text)}
.script-idea-hint{display:grid;gap:8px;justify-items:start;margin-top:10px;padding:12px 14px;border-radius:11px;border:1px solid color-mix(in srgb,#f5b74a 45%,var(--line));background:color-mix(in srgb,#f5b74a 8%,transparent)}
.script-idea-hint[hidden]{display:none}
.script-idea-hint p{font-size:12px;line-height:1.8;color:var(--text)}
.script-idea-hint .secondary{font-size:11px;min-height:36px;padding:7px 12px}
.script-idea-hint.attention{border-color:#f5b74a;box-shadow:0 0 0 3px color-mix(in srgb,#f5b74a 22%,transparent)}
.idea-hint-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px 14px}
.idea-hint-actions .text-button{font-size:12px}
.draft-restore{margin-top:8px;font-size:12px}
.stage-loader{position:absolute;inset:0;z-index:6;pointer-events:none;display:grid;place-content:center;justify-items:center;gap:10px;padding:24px;text-align:center;background:color-mix(in srgb,var(--panel) 78%,transparent);backdrop-filter:blur(3px)}
.stage-loader[hidden]{display:none}
.stage-loader strong{font-size:15px;color:var(--text)}
.stage-loader span:not(.spinner){max-width:320px;font-size:12px;line-height:1.8;color:var(--text-soft)}
.stage-loader .estimate-track{width:min(260px,70vw)}
.stage-loader.compact{inset:auto 12px 12px 12px;display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:8px 12px;padding:12px 14px;border-radius:12px;border:1px solid var(--accent-border)}
.stage-loader.compact .estimate-track{width:100%}
.stage-spinner{width:28px;height:28px;border-width:3px}
.stage-loader.compact .stage-spinner{width:16px;height:16px;border-width:2px}
.progress-estimate{margin:8px 0 0;font-size:12px;line-height:1.8;color:var(--text)}
.progress-estimate[hidden]{display:none}
.estimate-track{height:6px;margin-top:8px;border-radius:999px;background:color-mix(in srgb,var(--accent) 14%,var(--line));overflow:hidden}
.estimate-track[hidden]{display:none}
.estimate-track>span{display:block;height:100%;width:0;border-radius:inherit;background:var(--accent);transition:width 900ms linear}
html:not([data-motion=running]) .estimate-track>span{transition:none}

.first-video{display:flex;align-items:center;justify-content:space-between;gap:25px;margin:28px 0 10px;padding:26px 28px;border:1px solid var(--accent-border);background:linear-gradient(135deg,var(--accent-soft),transparent)}.first-video h2{font-size:24px;margin:8px 0}.first-video p{max-width:620px;color:var(--text-soft);margin:0}.first-video-actions{display:flex;flex-direction:column;align-items:stretch;gap:6px;flex-shrink:0}.first-video-actions .primary{justify-content:center;font-size:15px;padding-inline:26px}.first-video+.account-journey{margin-top:10px}
@media(max-width:650px){.first-video{display:block;padding:20px;margin-top:20px}.first-video h2{font-size:20px}.first-video-actions{margin-top:18px}.first-video-actions .primary{width:100%}}
