.video-image-inputs{--video-input-height: 170px;min-width:0;padding:12px;box-sizing:border-box;color:var(--foreground, #24232c)}.video-image-inputs__tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;width:100%;min-width:0;margin:0 0 16px;padding:4px;box-sizing:border-box;border:0;border-radius:10px;background:var(--surface-subtle, #f0f0f5)}.video-image-inputs__tabs-label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.video-image-inputs__tabs button{min-width:0;min-height:39px;padding:7px 4px;border:0;border-radius:7px;background:transparent;color:var(--muted, #73717d);font:inherit;font-size:12px;line-height:1.2;cursor:pointer;transition:color .15s ease,background-color .15s ease,box-shadow .15s ease}.video-image-inputs__tabs button[aria-pressed=true]{background:var(--glass-solid-fallback, #fff);color:var(--foreground, #24232c);box-shadow:0 1px 4px #191e2d17}.video-image-inputs__tabs button:focus-visible,.video-image-inputs__reference-actions button:focus-visible,.video-image-inputs__icon-button:focus-within,.video-image-inputs__create-image:focus-visible,.video-image-inputs__preview:focus-visible{outline:2px solid var(--brand-primary, #1f11ed);outline-offset:2px}.video-image-inputs__tabs button:disabled,.video-image-inputs__reference-actions button:disabled,.video-image-inputs__create-image:disabled{cursor:not-allowed;opacity:.55}.video-image-inputs__dropzone{position:relative;box-sizing:border-box;display:grid;grid-template-rows:auto auto;align-content:center;gap:18px;height:var(--video-input-height);min-width:0;padding:12px;border:1px solid transparent;border-radius:10px;background:var(--surface-subtle, #f7f7fa);text-align:center;transition:border-color .15s ease,background-color .15s ease}.video-image-inputs__dropzone:hover,.video-image-inputs__dropzone.is-dragover{border-color:var(--brand-primary, #1f11ed);background:color-mix(in srgb,var(--brand-primary, #1f11ed) 4%,white)}.video-image-inputs__dropzone:focus-within{outline:2px solid var(--brand-primary, #1f11ed);outline-offset:2px}.video-image-inputs__upload-label{display:flex;flex-direction:column;align-items:center;min-height:0;box-sizing:border-box;justify-content:center;gap:8px;color:var(--brand-primary, #1f11ed);cursor:pointer}.video-image-inputs__file-input{position:absolute;width:1px;height:1px;margin:-1px;padding:0;border:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.video-image-inputs__upload-label .video-image-inputs__upload-text{color:var(--foreground, #24232c);font-size:13px;font-weight:500;line-height:1.35}.video-image-inputs__upload-label .video-image-inputs__upload-hint{color:var(--muted, #73717d);font-size:11px;line-height:1.35}.video-image-inputs__upload-actions,.video-image-inputs__compact-actions{display:flex;justify-content:center;gap:6px;margin:0}.video-image-inputs__upload-actions button,.video-image-inputs__compact-actions button,.video-image-inputs__create-image{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-width:30px;min-height:30px;padding:4px 10px;border:0;border-radius:9px;background:var(--surface-subtle-strong, #eaeaf0);color:var(--muted, #5f5d69);font:inherit;font-size:12px;cursor:pointer}.video-image-inputs__upload-actions.is-icons-only button{width:30px;padding:0}.video-image-inputs__upload-actions button:hover,.video-image-inputs__compact-actions button:hover,.video-image-inputs__upload-actions button[data-popup-open],.video-image-inputs__compact-actions button[data-popup-open]{background:var(--brand-primary-soft, #e9e7ff);color:var(--brand-primary, #1f11ed)}.video-image-inputs__upload-actions button:focus-visible,.video-image-inputs__compact-actions button:focus-visible{outline:2px solid var(--brand-primary, #1f11ed);outline-offset:2px}.video-image-inputs__between{display:grid;grid-template-columns:minmax(0,1fr) 24px minmax(0,1fr);align-items:center;gap:6px;min-width:0}.video-image-inputs__between-arrow{color:var(--muted, #858390)}.video-image-inputs__reference-card{position:relative;box-sizing:border-box;display:block;width:100%;height:var(--video-input-height);min-width:0;padding:0;overflow:hidden;border:1px solid var(--glass-separator, #e1e0e8);border-radius:10px;background:var(--surface-subtle, #f7f7fa)}.video-image-inputs__preview{display:block;width:100%;height:100%;padding:0;overflow:hidden;border:0;background:transparent;cursor:zoom-in}.video-image-inputs__preview img{display:block;width:100%;height:100%;object-fit:contain}.video-image-inputs__slot-name{position:absolute;bottom:7px;left:8px;max-width:calc(100% - 16px);padding:3px 7px;overflow:hidden;border-radius:5px;background:#ffffffe0;color:var(--foreground, #24232c);font-size:11px;text-overflow:ellipsis;white-space:nowrap;pointer-events:none}.video-image-inputs__reference-actions{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;gap:2px;box-sizing:border-box;background:#0f172a8c;opacity:0;pointer-events:none;transition:opacity .14s ease}.video-image-inputs__reference-card:hover .video-image-inputs__reference-actions,.video-image-inputs__reference-card:focus-within .video-image-inputs__reference-actions{opacity:1}.video-image-inputs__reference-card>.video-image-inputs__replace{position:absolute;top:4px;right:4px;border-radius:6px;background:#0f172a8c;opacity:0}.video-image-inputs__reference-card:hover .video-image-inputs__replace,.video-image-inputs__reference-card:focus-within .video-image-inputs__replace{opacity:1}.video-image-inputs__reference-actions button,.video-image-inputs__icon-button{position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;width:32px;min-width:32px;height:32px;min-height:32px;padding:0;border:0;border-radius:6px;background:transparent;color:#fff;cursor:pointer;pointer-events:auto}.video-image-inputs__reference-actions button:hover,.video-image-inputs__icon-button:hover{background:#ffffff2e}.video-image-inputs__icon-button svg{pointer-events:none}.video-image-inputs__description{margin:0 0 10px;color:var(--muted, #73717d);font-size:13px;line-height:1.4}.video-image-inputs__references{min-width:0}.video-image-inputs__reference-list{display:flex;min-width:0;gap:8px;overflow-x:auto;overscroll-behavior-inline:contain;padding:2px 2px 8px;scrollbar-width:thin}.video-image-inputs__reference-list>*{flex:0 0 calc((100% - 16px) / 3);width:calc((100% - 16px) / 3);height:var(--video-input-height)}.video-image-inputs__reference-list .video-image-inputs__slot-name{bottom:5px;left:5px;max-width:calc(100% - 10px);padding:2px 5px;font-size:10px}.video-image-inputs__reference-list .video-image-inputs__dropzone.is-compact{padding:8px}.video-image-inputs__reference-list .video-image-inputs__upload-label{gap:4px;color:var(--brand-primary, #1f11ed);font-size:11px}.video-image-inputs__reference-list .video-image-inputs__upload-label .video-image-inputs__upload-text{font-size:11px;text-align:center}.video-image-inputs__compact-actions button{width:44px;min-width:44px;height:44px;min-height:44px;padding:0}@media(max-width:480px){.video-image-inputs__tabs button{font-size:12px}.video-image-inputs__between{grid-template-columns:minmax(0,1fr) 18px minmax(0,1fr);gap:3px}.video-image-inputs__between-arrow{width:18px}}@media(max-width:360px){.video-image-inputs__between{grid-template-columns:minmax(0,1fr);justify-items:stretch;gap:6px}.video-image-inputs__between-arrow{justify-self:center;transform:rotate(90deg)}}@media(max-width:680px),(hover:none),(pointer:coarse){.video-image-inputs__tabs button{min-height:44px}.video-image-inputs__upload-actions button{min-width:44px;min-height:44px}.video-image-inputs__reference-list>*{flex-basis:140px;width:140px}.video-image-inputs__reference-actions{top:auto;min-height:44px;align-items:center;padding-top:0;flex-wrap:wrap;gap:0;opacity:1;background:#fffffff0}.video-image-inputs__reference-actions button,.video-image-inputs__icon-button{width:44px;min-width:44px;height:44px;min-height:44px;color:var(--foreground, #393743)}.video-image-inputs__slot-name,.video-image-inputs__reference-list .video-image-inputs__slot-name{top:6px;bottom:auto;max-width:calc(100% - 58px)}.video-image-inputs__reference-card>.video-image-inputs__replace{opacity:1}}@media(prefers-reduced-motion:reduce){.video-image-inputs__tabs button,.video-image-inputs__reference-actions,.video-image-inputs__dropzone{transition:none}}.workspace-dialog:has(.video-reference-crop-dialog){width:min(1000px,calc(100vw - 32px));max-height:calc(100dvh - 32px);overflow:auto}.video-reference-crop-dialog{display:flex;min-height:0;flex-direction:column;gap:18px;padding:20px;color:var(--text-primary, #22222a)}.video-reference-crop-header,.video-reference-crop-footer{display:flex;align-items:center;justify-content:space-between;gap:16px}.video-reference-crop-header h2{margin:0;font-size:20px;font-weight:600;line-height:1.25}.video-reference-crop-header p{margin:5px 0 0;color:var(--muted, #73717d);font-size:13px}.video-reference-crop-header>button,.video-reference-crop-load-error button,.video-reference-crop-footer button,.video-reference-crop-ratios button{min-width:44px;min-height:44px;border:1px solid var(--glass-separator, #dedde4);border-radius:9px;background:var(--surface, #fff);color:var(--text-primary, #22222a);font:inherit;cursor:pointer}.video-reference-crop-header>button{flex:0 0 44px;padding:0;font-size:24px}.video-reference-crop-layout{display:grid;min-height:min(560px,62dvh);grid-template-columns:minmax(0,1fr) 260px;gap:20px}.video-reference-crop-stage{position:relative;display:grid;min-width:0;min-height:320px;place-items:center;overflow:hidden;border:1px solid var(--glass-separator, #dedde4);border-radius:12px;background:#17171c}.video-reference-crop-image-wrap{position:relative;display:inline-block;max-width:100%;max-height:100%;line-height:0;-webkit-user-select:none;user-select:none}.video-reference-crop-image-wrap>img{display:block;max-width:100%;max-height:min(560px,62dvh);object-fit:contain;pointer-events:none;-webkit-user-select:none;user-select:none}.video-reference-crop-window{position:absolute;z-index:1;appearance:none;box-sizing:border-box;padding:0;border:2px solid #fff;background:transparent;color:inherit;font:inherit;line-height:normal;box-shadow:0 0 0 9999px #0000007a;cursor:grab;touch-action:none}.video-reference-crop-window:active{cursor:grabbing}.video-reference-crop-window:focus-visible{outline:2px solid var(--brand-primary, #1f11ed);outline-offset:2px}.video-reference-crop-grid{position:absolute;inset:0;background-image:linear-gradient(to right,transparent calc(33.333% - .5px),rgb(255 255 255 / 40%) 33.333%,transparent calc(33.333% + .5px)),linear-gradient(to right,transparent calc(66.666% - .5px),rgb(255 255 255 / 40%) 66.666%,transparent calc(66.666% + .5px)),linear-gradient(to bottom,transparent calc(33.333% - .5px),rgb(255 255 255 / 40%) 33.333%,transparent calc(33.333% + .5px)),linear-gradient(to bottom,transparent calc(66.666% - .5px),rgb(255 255 255 / 40%) 66.666%,transparent calc(66.666% + .5px));pointer-events:none}.video-reference-crop-loading{position:absolute;color:#fff;font-size:14px}.video-reference-crop-tools{display:flex;min-width:0;flex-direction:column;gap:20px;padding:12px 0}.video-reference-crop-range{display:grid;gap:12px}.video-reference-crop-range>span{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:13px}.video-reference-crop-range output{color:var(--muted, #73717d);font-variant-numeric:tabular-nums}.video-reference-crop-range input{width:100%;min-height:32px;margin:0;accent-color:var(--brand-primary, #1f11ed)}.video-reference-crop-ratios{min-width:0;margin:0;padding:0;border:0}.video-reference-crop-ratios legend{margin-bottom:10px;color:var(--text-primary, #22222a);font-size:13px;font-weight:600}.video-reference-crop-ratios>div{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.video-reference-crop-ratios button{padding:0 6px;font-size:12px}.video-reference-crop-ratios button[aria-pressed=true]{border-color:var(--brand-primary, #1f11ed);color:var(--brand-primary, #1f11ed);background:color-mix(in srgb,var(--brand-primary, #1f11ed) 6%,white)}.video-reference-crop-filename{overflow:hidden;margin:auto 0 0;color:var(--muted, #73717d);font-size:12px;text-overflow:ellipsis;white-space:nowrap}.video-reference-crop-error,.video-reference-crop-load-error{color:#b42318;font-size:13px}.video-reference-crop-load-error{display:grid;min-height:220px;align-content:center;justify-items:center;gap:12px}.video-reference-crop-load-error>div,.video-reference-crop-footer>div{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:10px}.video-reference-crop-footer{padding-top:4px;border-top:1px solid var(--glass-separator, #dedde4)}.video-reference-crop-footer button{padding:0 16px;font-size:13px;font-weight:550}.video-reference-crop-footer .video-reference-crop-reset,.video-reference-crop-footer .video-reference-crop-cancel{background:transparent}.video-reference-crop-footer .video-reference-crop-confirm{border-color:var(--brand-primary, #1f11ed);background:var(--brand-primary, #1f11ed);color:#fff}.video-reference-crop-dialog button:focus-visible,.video-reference-crop-range input:focus-visible{outline:2px solid var(--brand-primary, #1f11ed);outline-offset:2px}.video-reference-crop-dialog button:disabled{cursor:not-allowed;opacity:.55}@media(max-width:720px){.workspace-dialog:has(.video-reference-crop-dialog){width:calc(100vw - 24px);max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px)}.video-reference-crop-dialog{gap:14px;padding:16px}.video-reference-crop-header h2{font-size:18px}.video-reference-crop-header p{max-width:38ch;font-size:12px}.video-reference-crop-layout{min-height:0;grid-template-columns:minmax(0,1fr);gap:10px}.video-reference-crop-stage{min-height:min(38dvh,300px)}.video-reference-crop-image-wrap>img{max-height:min(38dvh,300px)}.video-reference-crop-tools{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px 16px;padding:4px 0 0}.video-reference-crop-ratios{grid-column:1 / -1}.video-reference-crop-ratios>div{grid-template-columns:repeat(4,minmax(0,1fr))}.video-reference-crop-filename{grid-column:1 / -1}.video-reference-crop-footer{gap:8px}.video-reference-crop-footer>div{gap:8px}}@media(max-width:360px){.video-reference-crop-ratios>div{grid-template-columns:repeat(3,minmax(0,1fr))}}.workspace-dialog:has(.image-assets-dialog){width:min(1120px,calc(100vw - 48px));max-width:calc(100vw - 48px);height:min(820px,calc(100dvh - 64px));max-height:calc(100dvh - 64px);overflow:hidden;border:1px solid var(--glass-separator, #e1e0e8);border-radius:24px}.image-assets-dialog{display:flex;flex-direction:column;height:100%;min-height:0;box-sizing:border-box;padding:32px 40px 28px;color:var(--foreground, #24232c)}.image-assets-header{position:relative;flex-shrink:0;margin-bottom:32px;text-align:center}.image-assets-header h2{margin:0;font-size:24px;line-height:44px;font-weight:650}.image-assets-dialog button{font:inherit;cursor:pointer}.image-assets-header>button{position:absolute;top:0;right:0;display:grid;place-items:center;width:44px;height:44px;border:0;border-radius:8px;background:transparent;color:inherit}.image-assets-toolbar{display:flex;align-items:center;justify-content:space-between;flex-shrink:0;gap:16px;margin-bottom:24px}.image-assets-tabs{display:flex;gap:4px;min-width:0;margin:0;padding:4px;border:1px solid var(--glass-separator, #e1e0e8);border-radius:10px}.image-assets-tabs legend{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.image-assets-tabs button{min-height:40px;padding:7px 20px;border:0;border-radius:8px;background:transparent;color:var(--muted)}.image-assets-tabs button[aria-pressed=true]{background:var(--brand-primary-soft, #e9e7ff);color:var(--brand-primary)}.image-assets-upload{position:relative;display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:0 18px;border-radius:10px;background:var(--surface-subtle, #f0f0f5);cursor:pointer}.image-assets-upload input{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.image-assets-upload:has(input:disabled){opacity:.5;cursor:wait}.image-assets-body{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:3px}.image-assets-empty{display:flex;height:100%;min-height:200px;flex-direction:column;align-items:center;justify-content:center;gap:12px;margin:0;color:var(--muted)}.image-assets-empty p{margin:0;font-size:18px;font-weight:550}.image-assets-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(145px,1fr));gap:16px}.image-assets-card{position:relative;overflow:hidden;border:2px solid transparent;border-radius:12px;background:var(--surface-subtle, #f0f0f5)}.image-assets-card.is-selected{border-color:var(--brand-primary)}.image-assets-select.composer-modal-item{display:block;width:100%;padding:0;border:0;border-radius:0;background:transparent;text-align:left}.image-assets-select.composer-modal-item img{display:block;width:100%;height:auto;aspect-ratio:1;object-fit:cover;border-radius:0}.image-assets-name{display:block;overflow:hidden;padding:9px 10px;font-size:12px;line-height:20px;text-overflow:ellipsis;white-space:nowrap}.image-assets-selected{position:absolute;top:8px;left:8px;display:grid;place-items:center;width:26px;height:26px;border-radius:50%;background:var(--brand-primary);color:#fff}.image-assets-favorite{position:absolute;top:4px;right:4px;display:grid;place-items:center;width:36px;height:36px;border:0;border-radius:8px;background:#ffffffeb;color:var(--muted)}.image-assets-favorite[aria-pressed=true]{color:var(--brand-primary)}.image-assets-footer{display:flex;justify-content:flex-end;flex-shrink:0;gap:16px;padding-top:24px}.image-assets-footer button{min-width:130px;min-height:48px;padding:8px 20px;border:0;border-radius:10px;background:var(--surface-subtle, #f0f0f5);color:inherit}.image-assets-footer .image-assets-confirm{background:var(--brand-primary);color:#fff}.image-assets-dialog button:disabled{cursor:not-allowed;opacity:.45}.image-assets-dialog button:focus-visible,.image-assets-upload:focus-within{outline:2px solid var(--brand-primary);outline-offset:2px}.image-assets-error{flex-shrink:0;margin-bottom:12px;padding:10px;border-radius:8px;background:#fff1f0;color:#a02929;font-size:13px}.image-assets-error button,.image-assets-more{min-height:36px;padding:6px 12px;border:1px solid var(--glass-separator, #e1e0e8);border-radius:8px;background:var(--surface, white);color:inherit}.image-assets-more{display:block;margin:20px auto 8px}@media(max-width:680px){.workspace-dialog:has(.image-assets-dialog){width:calc(100vw - 24px);max-width:calc(100vw - 24px);height:calc(100dvh - 32px);max-height:calc(100dvh - 32px);border-radius:18px}.image-assets-dialog{padding:16px}.image-assets-header{margin-bottom:20px}.image-assets-header h2{font-size:20px}.image-assets-toolbar{flex-wrap:wrap;gap:12px}.image-assets-tabs{width:100%;box-sizing:border-box}.image-assets-tabs button{flex:1;min-width:0;min-height:44px;padding:6px 4px;font-size:12px}.image-assets-upload{margin-left:auto}.image-assets-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.image-assets-favorite{width:44px;height:44px}.image-assets-footer{gap:12px;padding-top:16px}.image-assets-footer button{flex:1;min-width:0}}.studio-workspace.video-studio-fidelity{width:100%;max-width:none;grid-template-columns:clamp(320px,35%,460px) minmax(0,1fr);align-items:stretch;gap:20px;padding:24px}.video-studio-fidelity .studio-creation-panel.creation-composer-studio,.video-studio-fidelity .studio-preview-panel{height:max(600px,calc(85dvh - 42.6667px));min-height:600px;max-height:none;box-sizing:border-box}.video-studio-fidelity .studio-creation-panel.creation-composer-studio{position:relative;top:auto;min-width:0;padding:16px 20px 20px;container-type:inline-size}.video-studio-fidelity .studio-panel-header{flex:0 0 auto;margin:0 0 16px}.video-studio-fidelity .studio-headline{margin:0;font-size:clamp(16px,4.8cqi,20px);line-height:1.3;font-weight:650;letter-spacing:0}.video-studio-fidelity .studio-form-body{min-height:0;flex:1}.video-studio-fidelity .studio-prompt-section{position:relative;margin:0}.video-studio-fidelity .studio-prompt-header{display:contents}.video-studio-fidelity .studio-prompt-header .studio-field-label{display:none}.video-studio-fidelity .studio-prompt-header .studio-char-count{position:absolute;right:10px;bottom:9px;z-index:1;color:var(--muted, #73717d);font-size:12px}.video-studio-fidelity .studio-creation-panel .studio-prompt-section textarea.composer-prompt.gp-textarea.studio-prompt-textarea{display:block;width:100%;height:142px;min-height:142px;max-height:142px;padding:10px 10px 30px;border:1px solid var(--glass-separator, #dedde4);border-radius:10px;background:var(--surface, #fff);font-size:14px;line-height:1.45;resize:none;box-shadow:none}.video-studio-fidelity .studio-prompt-textarea::placeholder{color:var(--muted, #73717d)}.video-studio-fidelity .video-start-image-row{display:flex;align-items:center;min-height:36px;margin:0 0 16px;justify-content:space-between;gap:12px;padding:4px;border-radius:8px;background:var(--surface-subtle, #f0f0f5)}.video-studio-fidelity .video-start-image-row>span{padding:8px 14px;border-radius:6px;background:var(--glass-solid-fallback, #fff);font-size:13px}.video-studio-fidelity .video-start-image-row>small{padding-right:8px;color:var(--muted, #73717d);font-size:11px}.video-studio-fidelity .studio-upload-section{margin:0;padding:12px;border:1px solid var(--glass-separator, #dedde4);border-bottom:0;border-radius:10px 10px 0 0}.video-studio-fidelity .studio-upload-section>.studio-field-label,.video-studio-fidelity .studio-upload-section>.studio-field-desc{display:none}.video-studio-fidelity .studio-upload-dropzone{height:170px;min-height:170px;box-sizing:border-box;padding:12px;border:0;border-radius:8px;background:var(--surface-subtle, #f7f7fa)}.video-studio-fidelity .studio-upload-dropzone-label{flex:1;justify-content:center;gap:7px}.video-studio-fidelity .studio-upload-text{font-weight:500}.video-studio-fidelity .studio-upload-hint{font-size:11px}.video-studio-fidelity .studio-upload-actions{display:flex;justify-content:center;flex-wrap:wrap;gap:8px;margin:0}.video-studio-fidelity .studio-asset-pick-btn{min-height:40px;padding:4px 10px}.video-studio-fidelity .studio-create-image-btn{display:inline-flex;align-items:center;gap:6px;min-height:40px;padding:4px 10px;border-radius:8px;font-size:12px}.video-studio-fidelity .studio-reference-card{position:relative;display:block;height:170px;min-width:0;box-sizing:border-box;padding:0;border:0;border-radius:8px;background:var(--surface-subtle, #f7f7fa)}.video-studio-fidelity .studio-reference-thumb{width:100%;height:100%;object-fit:contain}.video-studio-fidelity .studio-reference-thumb img{object-fit:contain}.video-studio-fidelity .studio-reference-meta,.video-studio-fidelity .studio-reference-name{min-width:0;max-width:100%}.video-studio-fidelity .studio-reference-name{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.video-studio-fidelity .studio-reference-actions{position:absolute;top:8px;right:8px;justify-content:flex-end;gap:6px;flex-wrap:wrap}.video-studio-fidelity .studio-reference-actions>*{min-width:44px;min-height:44px;padding:8px;border-radius:8px;background:var(--glass-overlay-bg, #fff)}.video-reference-action-label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.video-studio-fidelity.studio-workspace-image-to-video .studio-prompt-section{overflow:hidden;border:1px solid var(--glass-separator, #dedde4);border-top:0;border-radius:0 0 10px 10px}.video-studio-fidelity.studio-workspace-image-to-video .studio-creation-panel .studio-prompt-section textarea.composer-prompt.gp-textarea.studio-prompt-textarea{height:142px;min-height:142px;max-height:142px;border:0;border-radius:0}.video-studio-fidelity .studio-prompt-section:has(+.studio-error-banner){margin-bottom:10px}.video-studio-fidelity .studio-panel-bottom{flex:0 0 auto;gap:16px;padding-top:0;border:0}.video-studio-fidelity .studio-bottom-settings-row{display:grid;grid-template-columns:max-content minmax(0,1fr);align-items:stretch;gap:6px}.video-studio-fidelity .studio-bottom-settings-row>.studio-control-row,.video-studio-fidelity .studio-bottom-settings-row>.studio-parameters-trigger{grid-column:auto;width:100%;min-width:0}.video-studio-fidelity .composer-mode-trigger,.video-studio-fidelity .studio-parameters-trigger{width:100%;height:auto;min-height:36px;padding:6px 8px;border-radius:9px;font-size:12px}.video-studio-fidelity .composer-mode-trigger{justify-content:space-between}.video-studio-fidelity .composer-mode-trigger strong{min-width:0;font-size:clamp(12px,3.35cqi,14px);font-weight:450;line-height:1.35;text-align:left;white-space:nowrap;overflow:visible}.video-studio-fidelity .composer-mode-trigger>svg,.video-studio-fidelity .studio-parameters-trigger>svg{flex-shrink:0}.video-studio-fidelity .composer-mode-trigger:focus-visible,.video-studio-fidelity .studio-parameters-trigger:focus-visible{outline-offset:-1px}.video-studio-fidelity .studio-parameters-trigger>svg:first-child{display:none}.video-studio-fidelity .studio-parameters-trigger{font-size:14px;font-weight:450}.video-studio-fidelity .composer-summary-text{min-width:0;flex-wrap:nowrap;overflow:visible;font-size:clamp(12px,3.35cqi,14px);font-weight:450;line-height:1.35;text-align:left;white-space:nowrap}.video-studio-fidelity .composer-summary-text>span{white-space:nowrap}@container (max-width: 360px){.video-studio-fidelity .composer-mode-trigger,.video-studio-fidelity .studio-parameters-trigger{gap:2px;padding-inline:4px}.video-studio-fidelity .composer-summary-text{gap:1px}}@container (max-width: 290px){.video-studio-fidelity .studio-bottom-settings-row{gap:2px}.video-studio-fidelity .composer-mode-trigger,.video-studio-fidelity .studio-parameters-trigger{padding-inline:2px}.video-studio-fidelity .composer-mode-trigger>svg,.video-studio-fidelity .studio-parameters-trigger>svg{width:12px}.video-studio-fidelity .composer-summary-text{gap:0}}@media(max-width:360px){.studio-workspace.video-studio-fidelity .studio-creation-panel.creation-composer-studio{padding-inline:12px}}.studio-workspace-image-to-video .composer-summary-sep{width:1px;height:9px;margin-inline:1px;overflow:hidden;background:currentColor;font-size:0;opacity:.55}.studio-workspace-image-to-video .studio-parameters-trigger[aria-expanded=true]{border-color:var(--text-primary, #22222a)}.studio-workspace-image-to-video .studio-parameters-trigger>svg:last-child{transition:transform .14s ease}.studio-workspace-image-to-video .studio-parameters-trigger[aria-expanded=true]>svg:last-child{transform:rotate(180deg)}.video-studio-fidelity .studio-demo-controls{position:absolute;z-index:3;top:10px;right:12px}.video-studio-fidelity .studio-demo-controls .composer-demo-summary{width:auto;min-height:24px;padding:0 8px;font-size:10px}.video-studio-fidelity .composer-mode-menu{width:314px;max-width:calc(100vw - 40px);max-height:min(450px,70dvh);overflow-y:auto}.video-studio-fidelity .composer-mode-item-text strong{font-size:14px}.video-studio-fidelity .composer-mode-item-text small{font-size:12px}.video-studio-fidelity .studio-create-btn{min-height:51px;justify-content:center;gap:8px;border-radius:10px;box-shadow:none}.video-studio-fidelity .studio-create-cost{display:inline-flex;align-items:center;min-height:24px;box-sizing:border-box;padding:3px 7px;font-size:11px}.video-studio-fidelity .studio-create-label{font-size:15px}.video-studio-fidelity .studio-insufficient-row{min-height:51px;box-sizing:border-box}.video-studio-fidelity .studio-preview-panel{position:relative;min-width:0;padding:20px 16px 16px;border-radius:20px}.video-studio-fidelity .studio-preview-header{flex:0 0 auto;min-height:19px;margin:0 0 12px}.video-studio-fidelity .studio-preview-title-wrap{min-width:0}.video-studio-fidelity .studio-preview-title{color:var(--muted, #73717d);font-size:14px;font-weight:450;line-height:19px;letter-spacing:0}.video-studio-fidelity .studio-media-viewport{flex:1 1 auto;width:100%;height:auto;min-height:0;max-height:none;aspect-ratio:auto;border-radius:10px}.video-studio-fidelity .studio-preview-media{width:100%;height:100%;max-height:100%;object-fit:contain}.video-studio-fidelity .studio-media-action-bar{flex:0 0 auto;min-height:0;margin:0;padding:0;border:0}.video-studio-fidelity .studio-sample-meta{display:none}.video-studio-fidelity .studio-showcase-rail{position:relative;display:flex;align-items:center;flex:0 0 auto;width:100%;min-width:0;height:auto;margin:40px 0 0;padding:0;border:0;container-type:inline-size}.video-studio-fidelity .studio-showcase-rail:not(.has-examples){margin-top:12px}.video-studio-fidelity .studio-showcase-header{display:none}.video-studio-fidelity .studio-showcase-track{display:flex;flex:0 0 calc(100% - 40px);align-items:center;width:calc(100% - 40px);min-width:0;height:auto;margin-inline:auto;gap:10px;padding:0;overflow-x:auto;scrollbar-width:none}.video-studio-fidelity .studio-showcase-track::-webkit-scrollbar{display:none}.video-studio-fidelity .studio-showcase-card{position:relative;transition:border-color .14s ease,background-color .14s ease;flex:0 0 max(44px,calc((100cqi - 80px)/5));width:max(44px,calc((100cqi - 80px)/5));min-width:44px;height:auto;aspect-ratio:1;box-sizing:border-box;gap:0;padding:0;overflow:hidden;border:2px solid transparent;border-radius:10px;background:transparent}.video-studio-fidelity .studio-showcase-card.is-selected{border-color:var(--brand-primary, #1f11ed)}.video-studio-fidelity .studio-showcase-card-thumb{width:100%;height:100%;border-radius:8px}.video-studio-fidelity .video-example-select{display:block;padding:0;border:0;background:transparent;overflow:hidden;cursor:pointer}.video-studio-fidelity .video-example-select img{width:100%;height:100%;object-fit:cover}.video-reference-preview-trigger{display:block;width:100%;height:100%;padding:0;border:0;border-radius:inherit;background:transparent;cursor:zoom-in}.video-reference-preview-trigger img{width:100%;height:100%;object-fit:contain}.video-reference-preview-dialog{width:min(800px,calc(100vw - 48px));padding:20px}.video-reference-preview-dialog header{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:12px}.video-reference-preview-dialog h2{margin:0;font-size:18px}.video-reference-preview-dialog button{width:44px;height:44px;border:1px solid var(--glass-separator);border-radius:8px;background:var(--glass-solid-fallback);cursor:pointer}.video-reference-preview-dialog>img{display:block;width:100%;max-height:70dvh;object-fit:contain}.video-studio-fidelity .studio-showcase-card-info{display:none}.video-studio-fidelity .image-showcase-arrow{position:absolute;z-index:2;top:50%;width:20px;height:44px;min-height:44px;padding:0;border:0;background:var(--glass-solid-fallback, #fff);color:var(--text-primary, #22222a);transform:translateY(-50%)}.video-studio-fidelity .image-showcase-arrow:first-child{left:0}.video-studio-fidelity .image-showcase-arrow:last-child{right:0}.video-studio-fidelity .image-showcase-arrow:disabled{opacity:.35;cursor:default}.video-studio-fidelity .studio-showcase-card .studio-use-example-btn{position:absolute;z-index:3;left:50%;bottom:0;min-height:32px;padding:0 12px;border-radius:999px;font-size:12px;white-space:nowrap;transform:translate(-50%,35%)}.video-studio-fidelity .studio-showcase-card.is-selected .studio-use-example-btn{transform:translate(-50%)}.video-studio-fidelity .video-sample-player{position:relative;width:100%;height:100%;min-width:0;min-height:0;overflow:hidden;background:#09090b}.video-studio-fidelity .video-sample-player>video{display:block;width:100%;height:100%;object-fit:contain}.video-studio-fidelity .video-sample-player button{display:inline-flex;align-items:center;justify-content:center;border:1px solid rgb(255 255 255 / 30%);color:#fff;background:#101014ad;cursor:pointer;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.video-studio-fidelity .video-sample-player button:focus-visible{outline:2px solid #fff;outline-offset:3px}.video-sample-player-error{position:absolute;inset:0;display:grid;align-content:center;justify-items:center;gap:12px;padding:20px;background:#000000b8;color:#fff;text-align:center}.video-sample-player-error button{min-height:44px;padding:8px 16px;border-radius:8px}.video-studio-fidelity .video-sample-player-mute{position:absolute;z-index:1;top:12px;right:12px;width:44px;height:44px;border-radius:50%}.video-studio-fidelity .video-sample-player-toggle{position:absolute;top:50%;left:50%;width:56px;height:56px;border-radius:50%;opacity:0;pointer-events:none;transform:translate(-50%,-50%);transition:opacity .14s ease}.video-studio-fidelity .video-sample-player:hover .video-sample-player-toggle,.video-studio-fidelity .video-sample-player:focus-within .video-sample-player-toggle,.video-studio-fidelity .video-sample-player.is-paused .video-sample-player-toggle{opacity:1;pointer-events:auto}@media(max-width:980px){.studio-workspace.video-studio-fidelity{grid-template-columns:minmax(0,1fr);padding:20px 16px}.video-studio-fidelity .studio-creation-panel.creation-composer-studio,.video-studio-fidelity .studio-preview-panel{height:auto;min-height:0}.video-studio-fidelity .studio-creation-panel.creation-composer-studio{min-height:600px}.video-studio-fidelity .studio-media-viewport{flex:initial;min-height:min(480px,64vh)}}@media(max-width:680px){.studio-workspace.video-studio-fidelity{padding:16px 12px calc(24px + env(safe-area-inset-bottom,0px))}.video-studio-fidelity .studio-creation-panel.creation-composer-studio,.video-studio-fidelity .studio-preview-panel{padding:18px 16px;border-radius:18px}.video-studio-fidelity .studio-creation-panel.creation-composer-studio{min-height:570px}.video-studio-fidelity .studio-preview-panel{padding-bottom:16px}.video-studio-fidelity .studio-showcase-rail{margin-top:12px}.video-studio-fidelity .studio-media-viewport{min-height:min(420px,55vh)}.video-studio-fidelity .studio-create-btn,.video-studio-fidelity .studio-use-example-btn,.video-studio-fidelity .composer-mode-trigger,.video-studio-fidelity .studio-parameters-trigger{min-height:44px}.video-studio-fidelity .image-showcase-arrow{width:44px}.video-studio-fidelity .image-showcase-arrow:first-child{left:-16px}.video-studio-fidelity .image-showcase-arrow:last-child{right:-16px}.video-studio-fidelity .studio-showcase-track{flex-basis:calc(100% - 56px);width:calc(100% - 56px)}.video-studio-fidelity .studio-showcase-card{flex-basis:92px;width:92px}.video-studio-fidelity .studio-showcase-card .studio-use-example-btn{min-height:44px}.video-studio-fidelity .studio-upload-dropzone,.video-studio-fidelity .studio-reference-card{height:170px;min-height:170px}.video-studio-fidelity .studio-creation-panel .studio-prompt-section textarea.composer-prompt.gp-textarea.studio-prompt-textarea{font-size:16px}}.studio-workspace.studio-workspace-image-to-video.video-studio-fidelity{grid-template-columns:460px minmax(0,1fr);gap:20px;padding:24px 40px 40px}.studio-workspace-image-to-video.video-studio-fidelity .studio-creation-panel.creation-composer-studio,.studio-workspace-image-to-video.video-studio-fidelity .studio-preview-panel{height:max(600px,calc(100dvh - 136px))}.studio-workspace-image-to-video.video-studio-fidelity .studio-creation-panel.creation-composer-studio{padding:16px 20px}.studio-workspace-image-to-video.video-studio-fidelity .studio-preview-panel{padding:20px 16px}.studio-workspace-image-to-video.video-studio-fidelity .studio-headline{font-size:20px;line-height:31px}.studio-workspace-image-to-video.video-studio-fidelity .studio-panel-header{margin-bottom:16px}.studio-workspace-image-to-video.video-studio-fidelity .studio-media-viewport{container-type:inline-size}.studio-workspace-image-to-video.video-studio-fidelity .video-start-image-row{min-height:44px;margin-bottom:16px}.studio-workspace-image-to-video.video-studio-fidelity .video-combined-input{min-width:0;overflow:hidden;border:1px solid var(--glass-separator, #dedde4);border-radius:10px;background:var(--surface, #fff)}.studio-workspace-image-to-video.video-studio-fidelity .video-combined-input .studio-upload-section{padding:12px;border:0;border-radius:0}.studio-workspace-image-to-video.video-studio-fidelity .video-combined-input .studio-upload-dropzone,.studio-workspace-image-to-video.video-studio-fidelity .video-combined-input .studio-reference-card{height:clamp(170px,40.5cqi,255px);min-height:170px}.studio-workspace-image-to-video.video-studio-fidelity .video-combined-input .studio-prompt-section{border:0;border-top:1px solid var(--glass-separator, #dedde4);border-radius:0}.studio-workspace-image-to-video.video-studio-fidelity .video-combined-input .studio-prompt-section textarea.composer-prompt.gp-textarea.studio-prompt-textarea.video-combined-prompt{height:142px;min-height:142px;max-height:142px}@media(min-width:1101px)and (max-width:1240px){.studio-workspace.studio-workspace-image-to-video.video-studio-fidelity{grid-template-columns:420px minmax(0,1fr);padding-inline:24px}}.studio-workspace-image-to-video.video-studio-fidelity .video-combined-input .studio-asset-pick-btn,.studio-workspace-image-to-video.video-studio-fidelity .video-combined-input .studio-create-image-btn,.studio-workspace-image-to-video.video-studio-fidelity .video-combined-input .studio-reference-actions>*{min-height:44px}@media(max-width:1100px){.studio-workspace.studio-workspace-image-to-video.video-studio-fidelity{grid-template-columns:minmax(0,1fr);padding:20px 16px}.studio-workspace-image-to-video.video-studio-fidelity .studio-creation-panel.creation-composer-studio,.studio-workspace-image-to-video.video-studio-fidelity .studio-preview-panel{height:auto;min-height:0}.studio-workspace-image-to-video.video-studio-fidelity .studio-creation-panel.creation-composer-studio{min-height:0}.studio-workspace-image-to-video.video-studio-fidelity .studio-form-body{flex:0 0 auto;min-height:0}.studio-workspace-image-to-video.video-studio-fidelity .studio-media-viewport{min-height:300px;aspect-ratio:16 / 9}}@media(max-width:680px){.studio-workspace.studio-workspace-image-to-video.video-studio-fidelity{padding:16px 12px calc(24px + env(safe-area-inset-bottom,0px))}.studio-workspace-image-to-video.video-studio-fidelity .studio-media-viewport{min-height:220px}.studio-workspace-image-to-video.video-studio-fidelity .video-combined-input .studio-prompt-section textarea.composer-prompt.gp-textarea.studio-prompt-textarea.video-combined-prompt{font-size:16px}}.video-sample-context{position:absolute;left:50%;display:flex;align-items:center;gap:8px;width:max-content;max-width:calc(100% - 32px);transform:translate(-50%)}.video-sample-context__images{display:flex;flex:0 0 auto;gap:4px}.video-sample-context__images img{width:28px;height:28px;border:1px solid rgb(255 255 255 / 60%);border-radius:5px;object-fit:cover}.video-sample-context__action{display:flex;align-items:center;gap:8px;min-width:0;padding:4px 5px 4px 8px;border:1px solid rgb(255 255 255 / 50%);border-radius:7px;background:#14141cb3;color:#fff;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}.video-sample-context__action>svg{flex-shrink:0;color:#c6baff}.video-sample-context__prompt{min-width:0;overflow:hidden;font-size:12px;text-overflow:ellipsis;white-space:nowrap}.video-sample-context__action button{flex-shrink:0;min-height:28px;padding:3px 12px;border:0;border-radius:5px;background:var(--brand-primary);color:#fff;font:inherit;font-size:12px;cursor:pointer}.video-sample-context__action button:focus-visible{outline:2px solid white;outline-offset:2px}.video-sample-context__action button:disabled{opacity:.55;cursor:not-allowed}@media(max-width:680px),(pointer:coarse){.video-sample-context__action button{min-height:44px}.video-sample-context__images{display:none}}@media(hover:none){.studio-workspace-image-to-video.video-studio-fidelity .composer-mode-trigger,.studio-workspace-image-to-video.video-studio-fidelity .studio-parameters-trigger,.studio-workspace-image-to-video.video-studio-fidelity .studio-create-btn,.studio-workspace-image-to-video.video-studio-fidelity .studio-use-example-btn,.studio-workspace-image-to-video.video-studio-fidelity .image-showcase-arrow,.studio-workspace-image-to-video.video-studio-fidelity .video-sample-player button{min-height:44px}}.video-studio-fidelity .video-ai-prompt{position:absolute;left:12px;bottom:8px;display:inline-flex;align-items:center;gap:5px;min-height:28px;font-size:13px;color:var(--muted)}.video-ai-prompt>label{cursor:pointer;white-space:nowrap}.video-ai-prompt-help{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;width:24px;height:28px;padding:0;border:0;border-radius:6px;background:transparent;color:var(--muted);cursor:help}.video-ai-prompt-help:hover,.video-ai-prompt-help[data-popup-open]{background:var(--surface-subtle, #f0f0f5);color:var(--foreground)}.video-ai-prompt-help:focus-visible{outline:2px solid var(--brand-primary);outline-offset:2px}.video-ai-prompt input{appearance:none;position:relative;width:30px;height:18px;margin:0;border:1px solid var(--glass-separator);border-radius:999px;background:#d3d3dc;cursor:pointer}.video-ai-prompt input:before{content:"";position:absolute;top:2px;left:2px;width:12px;height:12px;border-radius:50%;background:#fff}.video-ai-prompt input:checked{background:var(--brand-primary)}.video-ai-prompt input:checked:before{left:14px}.video-ai-prompt input:disabled{cursor:not-allowed;opacity:.5}.video-ai-prompt input:focus-visible{outline:2px solid var(--brand-primary);outline-offset:3px}@media(max-width:680px){.video-studio-fidelity .video-ai-prompt{bottom:0;min-height:44px;font-size:12px}.video-ai-prompt-help{width:44px;height:44px}}@container (max-width: 300px){.studio-workspace-image-to-video .studio-char-count{bottom:48px}.studio-workspace-image-to-video .video-combined-input textarea.video-combined-prompt{padding-bottom:68px}}.studio-workspace-image-to-video .studio-panel-bottom{gap:10px}.studio-workspace-image-to-video .studio-bottom-settings-row{gap:8px}.studio-workspace-image-to-video :is(.composer-mode-trigger,.studio-parameters-trigger){min-height:40px;padding:0 11px;gap:8px;border-color:#e7e6ed;border-radius:10px;background:#f8f8fb;box-shadow:none;color:#625f70;transition:background-color .14s ease,border-color .14s ease}.studio-workspace-image-to-video .composer-mode-trigger strong{color:#35313f;font-size:13px;font-weight:550;letter-spacing:-.015em}.studio-workspace-image-to-video .composer-summary-text{gap:5px;color:#625f70;font-size:12px;font-weight:450;font-variant-numeric:tabular-nums}.studio-workspace-image-to-video .composer-summary-sep{height:8px;margin-inline:0;opacity:.25}.studio-workspace-image-to-video :is(.composer-mode-trigger,.studio-parameters-trigger)>svg:last-child{width:12px;color:#898593}.studio-workspace-image-to-video .studio-parameters-trigger[aria-expanded=true],.studio-workspace-image-to-video .composer-mode-trigger[aria-expanded=true]{border-color:#c4bee7;background:#fff}.studio-workspace-image-to-video .studio-create-btn{min-height:48px;padding:0 17px;justify-content:space-between;gap:16px;border:1px solid transparent;border-radius:11px;background:#4431e4;box-shadow:0 3px 9px #3623aa1f,inset 0 1px #ffffff1f}.studio-workspace-image-to-video .studio-create-label{order:-1;font-size:14px;font-weight:600;letter-spacing:-.01em}.studio-workspace-image-to-video .studio-create-cost{min-height:auto;padding:0 0 0 14px;border-inline-start:1px solid rgb(255 255 255 / 22%);border-radius:0;background:transparent;color:#e5e1ff;font-size:11px;font-weight:450;letter-spacing:0;font-variant-numeric:tabular-nums;white-space:nowrap}@media(hover:hover)and (pointer:fine){.studio-workspace-image-to-video :is(.composer-mode-trigger,.studio-parameters-trigger):hover:not(:disabled){border-color:#d3d0df;background:#f1f0f7}.studio-workspace-image-to-video .studio-create-btn:hover:not(:disabled){background:#3a27d0}}@media(max-width:680px){.studio-workspace-image-to-video :is(.composer-mode-trigger,.studio-parameters-trigger){min-height:44px}}@container (max-width: 360px){.studio-workspace-image-to-video :is(.composer-mode-trigger,.studio-parameters-trigger){padding-inline:6px;gap:4px}.studio-workspace-image-to-video .composer-summary-text{gap:2px;font-size:11px}.studio-workspace-image-to-video .composer-mode-trigger strong{font-size:12px}}@container (max-width: 290px){.studio-workspace-image-to-video .studio-bottom-settings-row{gap:5px}.studio-workspace-image-to-video :is(.composer-mode-trigger,.studio-parameters-trigger){padding-inline:4px;gap:3px}.studio-workspace-image-to-video .composer-summary-text{display:grid;grid-template-columns:repeat(2,max-content);gap:2px 7px;font-size:11.5px;line-height:1.25}.studio-workspace-image-to-video .composer-summary-sep{display:none}}
