[hidden]{display:none!important}.video-studio{max-width:1280px;margin:auto;padding:30px 4vw 70px}.video-intro{display:flex;justify-content:space-between;gap:28px;align-items:end;margin-bottom:34px}.video-intro h1{font-size:clamp(42px,7vw,78px);line-height:1.02;letter-spacing:-.05em;margin:0}.video-intro p{max-width:34ch;color:var(--muted);margin:0}.video-workbench{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr);gap:38px}.video-studio label{display:block;font-size:14px;margin:18px 0}.video-studio input,.video-studio select{font-size:16px}.video-studio fieldset{border:0;padding:0;margin:24px 0}.video-studio legend{font-weight:700;margin-bottom:10px}.upload-zone{background:var(--panel);border:1px dashed var(--accent);border-radius:18px;padding:22px;font-weight:700}.upload-zone span{display:block;font-size:13px;font-weight:400;color:var(--muted);margin-top:10px}.upload-zone input{max-width:100%;min-width:0}.clip-list{list-style:none;padding:0;display:grid;gap:10px;counter-reset:clips}.clip{counter-increment:clips;display:grid;grid-template-columns:38px minmax(0,1fr);gap:12px;border-bottom:1px solid var(--line);padding:15px 0}.clip::before{content:counter(clips);display:grid;place-items:center;border-radius:10px;background:var(--paper);height:38px;color:var(--accent);font-weight:800}.clip strong{overflow-wrap:anywhere;font-size:14px}.clip small{display:block;color:var(--muted);margin-top:4px}.clip-actions{display:flex;gap:6px;flex-wrap:wrap;margin-top:8px}.clip-actions button{padding:8px 12px;font-size:13px}.style-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.style-options label{border:1px solid var(--line);background:var(--panel);padding:12px;border-radius:12px;margin:0;position:relative}.style-options input{width:20px;min-height:20px;margin:0 0 9px}.style-options strong,.style-options span{display:block}.style-options strong{font-size:14px}.style-options span{font-size:12px;color:var(--muted);margin-top:5px}.style-options label:has(input:checked){border-color:var(--accent);box-shadow:inset 0 0 0 1px var(--accent)}.video-studio details{border-block:1px solid var(--line);padding:16px 0;margin:20px 0}.video-studio summary{cursor:pointer;min-height:44px;display:flex;align-items:center;font-weight:700}.video-result{align-self:start;position:sticky;top:calc(env(safe-area-inset-top) + 100px);min-width:0}.result-heading{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:16px}.result-heading h2{font-size:22px;margin:0}.result-heading span{font-size:12px;color:var(--muted)}.video-placeholder{display:grid;place-items:center;text-align:center;min-height:390px;background:var(--panel);border:1px solid var(--line);border-radius:22px;padding:35px;align-content:center}.video-placeholder p{font-weight:700;font-size:20px;margin:20px 0 8px}.video-placeholder small{color:var(--muted);max-width:28ch}.film-frame{display:flex;gap:9px;transform:rotate(-6deg)}.film-frame span{width:48px;height:72px;background:var(--accent);border-radius:7px}.film-frame span:nth-child(2){opacity:.65}.film-frame span:nth-child(3){opacity:.35}#result-video{display:block;width:100%;max-height:600px;background:#000;border-radius:18px}#render-progress{margin:18px 0}progress{width:100%;accent-color:var(--accent);height:10px}#progress-label{font-size:14px;color:var(--muted)}#render-error{color:var(--danger);overflow-wrap:anywhere}#video-notice:not(:empty){padding:14px;border-left:3px solid var(--accent);background:var(--panel);margin-bottom:20px}.video-button{display:inline-flex;align-items:center;min-height:44px;padding:10px 14px;border-radius:12px;border:1px solid var(--line);text-decoration:none}#render-video{width:100%}
@media(max-width:760px){.video-studio{padding:22px 16px 50px}.video-intro{display:block}.video-intro p{margin-top:18px}.video-workbench{grid-template-columns:minmax(0,1fr);gap:30px}.video-result{position:static}.video-placeholder{min-height:250px}.style-options{gap:6px}.style-options label{padding:9px}.style-options strong{font-size:12px}.style-options span{font-size:11px}.upload-zone{padding:18px}header>a:last-child{font-size:13px}#result-video{max-height:70dvh}}@media(max-width:350px){.video-studio{padding-inline:12px}.style-options{grid-template-columns:1fr}.style-options label{display:grid;grid-template-columns:24px 1fr;column-gap:8px}.style-options input{grid-row:1/3;margin:auto}.style-options strong{font-size:14px}.style-options span{grid-column:2}}

.clip-trims{display:grid;grid-template-columns:1fr 1fr;gap:12px}.video-studio .clip-trims label{margin:10px 0;font-size:12px}

.video-library summary{gap:10px;flex-wrap:wrap}.video-library summary span{font-weight:400;color:var(--muted);font-size:13px}.video-library h3{margin-top:22px}.library-row{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:14px 0;border-bottom:1px solid var(--line)}.library-row>div:first-child{min-width:0}.library-row strong{overflow-wrap:anywhere;font-size:14px}.library-row small{display:block;color:var(--muted);font-size:12px;margin-top:4px}.library-row .actions{margin:0;flex-shrink:0}.library-row button,.library-row a{font-size:13px}#library-error{color:var(--danger);margin-top:12px}#library-assets,#library-jobs{max-height:60dvh;overflow:auto}@media(max-width:760px){.library-row{display:block}.library-row .actions{margin-top:10px;flex-shrink:1}.video-library h3{font-size:17px}}

.reel-launch{border:1px solid var(--accent);border-radius:18px;background:var(--panel);padding:18px;margin:22px 0}.reel-launch h3{margin:0 0 8px}.reel-launch small{display:block;line-height:1.5}.reel-launch .actions{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0}.reel-launch button{flex:1 1 130px;min-height:44px}.style-options{grid-template-columns:repeat(2,minmax(0,1fr))}@media(max-width:350px){.style-options{grid-template-columns:1fr}}

.audio-levels{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px}.audio-levels select,.video-finishing select{width:100%;min-width:0}.audio-levels label{min-width:0}@media(max-width:350px){.audio-levels{grid-template-columns:1fr;gap:0}}

/* Contain native form controls including their padding on narrow phones. */
.video-studio,.video-studio *{box-sizing:border-box}.video-editor,.video-editor form,.video-studio label,.video-finishing,.audio-levels{min-width:0;max-width:100%}.video-studio input,.video-studio select,.video-studio textarea{min-width:0;max-width:100%}.clip-trims{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}

.smart-edit{margin-top:18px}.smart-edit summary,.caption-tools summary{min-height:44px;display:flex;align-items:center;gap:10px;cursor:pointer;font-weight:700}.smart-edit label{margin:0}.prepare-proposal ul{padding-left:20px;font-size:13px;overflow-wrap:anywhere}.prepare-proposal:has(#prepare-status:empty){display:none}.caption-tools{border-block:1px solid var(--line);padding-block:14px;margin-block:20px}.caption-tools summary span{font-size:12px;font-weight:400;color:var(--muted)}.caption-row{display:grid;grid-template-columns:1fr 1fr;gap:10px;padding:14px 0;border-top:1px solid var(--line);min-width:0}.caption-row label{min-width:0;margin:0}.caption-row .caption-copy{grid-column:1/-1}.caption-row textarea{width:100%;font-size:16px;min-height:70px}.caption-row button{grid-column:1/-1;justify-self:start}.caption-sample{background:#18272f;border-radius:14px;min-height:150px;display:flex;flex-direction:column;justify-content:end;align-items:center;padding:24px 18px 16px;gap:18px;margin:14px 0;text-align:center;overflow-wrap:anywhere}.caption-sample span{max-width:90%;color:white;text-shadow:0 2px 3px #000;font-weight:700;font-size:20px;line-height:1.25}.caption-sample.bold span{background:#000b;color:white;text-shadow:0 1px 2px #000;padding:6px 10px;font-size:24px;font-weight:850}.caption-sample small{font-size:10px;color:#c3d0d5}.prepare-proposal .actions{flex-wrap:wrap}@media(max-width:380px){.caption-tools summary{flex-wrap:wrap}.caption-sample.bold span{font-size:21px}}

.caption-export{padding:16px;margin:16px 0;border:1px solid var(--line);border-radius:16px;min-width:0}.caption-export .actions{display:flex;flex-wrap:wrap;gap:8px}.caption-export button{flex:1 1 140px;min-height:44px}.caption-export textarea{width:100%;font-size:16px;line-height:1.5}.caption-export .muted{margin:10px 0}.caption-validation:not(:empty){border-left:3px solid var(--accent,#ad7147);padding:10px 12px;overflow-wrap:anywhere}.caption-export[hidden]{display:none}

.story-director{border:1px solid var(--line);border-radius:16px;padding:14px;margin:20px 0;min-width:0}.story-director summary{min-height:44px;display:flex;align-items:center;flex-wrap:wrap;gap:8px;font-weight:700;cursor:pointer}.story-director summary small{font-weight:400;color:var(--muted);font-size:12px}.director-scenes{display:grid;gap:12px}.director-scenes section{border-left:3px solid var(--accent);padding-left:12px;min-width:0}.director-scenes h4{margin:10px 0}.story-director textarea{width:100%;font-size:16px;min-height:76px}.director-assignment{overflow-wrap:anywhere}.story-director input,.story-director select{max-width:100%;min-width:0}#director-status{overflow-wrap:anywhere;font-size:14px}

.video-editor details.story-director{padding:16px}.story-director .actions[hidden]{display:none}

.phrase-cut{margin:18px 0;padding:12px;border:1px solid var(--line);border-radius:14px;min-width:0}.phrase-cut summary{min-height:44px;display:flex;align-items:center;font-weight:700;cursor:pointer}.phrase-range{display:grid;gap:8px;min-width:0}.phrase-range label{min-width:0}.phrase-range select{width:100%;max-width:100%;min-width:0;text-overflow:ellipsis}#phrase-preview{white-space:pre-wrap;overflow-wrap:anywhere;border-left:3px solid var(--accent);padding:12px}#phrase-status{overflow-wrap:anywhere}

#phrase-selected{display:grid;gap:8px;margin:12px 0;max-height:340px;overflow:auto}.phrase-choice{display:flex!important;align-items:flex-start;gap:10px;margin:0!important;padding:10px;border:1px solid var(--line);border-radius:10px;min-height:44px;overflow-wrap:anywhere}.phrase-choice input{width:22px;min-width:22px;min-height:22px;margin:2px 0}.phrase-choice span{min-width:0;font-size:14px;line-height:1.5}
