.video-studio .refine-actions{align-items:center;justify-content:flex-start;flex-wrap:nowrap;gap:8px;min-height:36px}
.video-model{flex:1;min-width:0;font-size:12px;line-height:1.4;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.video-studio .refine-actions :is(.speech-add,.refine-submit){display:grid;place-items:center;flex:0 0 36px;width:36px;height:36px;margin:0}
.video-spending-link{display:inline-block;color:var(--green);font-weight:600;text-decoration:underline;text-underline-offset:3px}
#video-settings-toggle{display:flex;align-items:center;justify-content:center;flex:none;gap:7px;height:36px;margin:0;padding:7px 10px;border:0;border-radius:6px;background:transparent;color:var(--muted);font-size:12px;line-height:1;white-space:nowrap}
#video-settings-toggle[aria-expanded=true]{color:var(--green);background:var(--theme-hover,#edf4f0)}
#video-settings-toggle svg{width:17px;height:17px}
.video-studio-result{display:block;width:auto;max-width:100%;height:auto;max-height:620px;object-fit:contain;margin:16px 0 12px;border-radius:4px;background:#161616}
.video-studio .refine-submit{flex-shrink:0}
@media(max-width:650px){.video-studio-result{max-height:460px}}
@media(max-width:650px){.video-studio .refine-actions{gap:4px}}
@media(max-width:380px){#video-settings-toggle span{display:none}#video-settings-toggle{padding:7px}.video-model{font-size:11px}}
.video-inspiration{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.2fr);align-items:center;gap:28px;margin:24px 0 32px}
.video-inspiration[hidden]{display:none}
.video-inspiration-heading{min-width:0}
.video-inspiration-heading h2{margin:0 0 10px;font-size:20px;line-height:1.35;font-weight:600}
.video-inspiration-heading p{margin:0;color:var(--muted);font-size:14px;line-height:1.6}
.video-example{position:relative;display:block;width:100%;min-width:0;aspect-ratio:16/9;padding:0;overflow:hidden;border:0;border-radius:8px;background:#161616;cursor:pointer;text-align:left}
.video-example video{display:block;width:100%;height:100%;object-fit:cover;pointer-events:none}
.video-example span{position:absolute;bottom:12px;left:12px;right:12px;width:fit-content;max-width:calc(100% - 24px);padding:7px 10px;border-radius:6px;background:rgb(0 0 0 / 70%);color:#fff;font-size:13px;line-height:1.4}
.video-example:focus-visible{outline:2px solid var(--green);outline-offset:4px}
.video-example-media{position:relative;min-width:0;width:100%}
.video-example-audio{position:absolute;top:10px;right:10px;display:grid;place-items:center;width:40px;height:40px;padding:0;border:1px solid rgb(255 255 255 / 35%);border-radius:6px;background:rgb(0 0 0 / 70%);color:#fff;cursor:pointer}
.video-example-audio:hover{background:rgb(0 0 0 / 85%)}
.video-example-audio svg{width:20px;height:20px;pointer-events:none}
.video-example-audio:focus-visible{outline:2px solid var(--green);outline-offset:3px}
@media(max-width:1000px){.video-inspiration{grid-template-columns:minmax(0,1fr);gap:18px}.video-example-media{max-width:560px;justify-self:center}}
@media(max-width:650px){.video-inspiration{gap:14px;margin-top:16px}.video-inspiration-heading h2{font-size:18px}.video-inspiration-heading p{font-size:13px}.video-example span{font-size:12px;bottom:8px;left:8px;right:8px;max-width:calc(100% - 16px)}}
.video-duration-label>span:first-child{display:flex;justify-content:space-between;gap:8px}
#video-duration-value{font-variant-numeric:tabular-nums;color:var(--muted);font-size:12px}
#video-duration{display:block;width:100%;height:22px;min-height:22px;padding:0;margin:12px 0 4px;accent-color:var(--green);cursor:pointer;box-shadow:none}
.video-duration-bounds{display:flex;justify-content:space-between;font-size:11px;color:var(--muted)}
.video-duration-disabled{opacity:.6}
#video-settings{margin:0 0 28px;padding:0 0 24px;border-bottom:1px solid var(--border)}
#video-settings .image-options{display:grid;grid-template-columns:minmax(0,1fr);gap:20px}
#video-settings select{width:100%;min-width:0}
.video-reference-dialog{width:min(760px,calc(100% - 32px));padding:16px;border:1px solid var(--border);border-radius:8px;background:var(--theme-surface,#fff);color:inherit}
.video-reference-dialog>button{display:flex;margin-left:auto;margin-bottom:10px}
.video-reference-dialog video{display:block;width:100%;max-height:70vh}
.video-task-guide-flow,.video-task-guide-extension{display:flex;align-items:center;justify-content:center;gap:12px;min-width:0}
.video-task-guide-flow>svg,.video-task-guide-extension>svg{width:22px;height:22px;flex:none;color:var(--muted)}
.video-task-guide-scene{position:relative;flex:1;min-width:0;max-width:250px;aspect-ratio:16/10;border:1px solid var(--border);border-radius:4px;overflow:hidden;background:#172421}
.video-task-guide-scene img{display:block;width:100%;height:100%;object-fit:cover}
.video-task-guide-scene>span{position:absolute;bottom:6px;left:6px;right:6px;width:fit-content;max-width:calc(100% - 12px);box-sizing:border-box;padding:4px 6px;background:rgb(0 0 0 / 75%);border-radius:4px;color:#fff;font-size:11px;line-height:1.4;overflow-wrap:anywhere}
.video-task-guide-scene>svg{position:absolute;top:10px;right:10px;width:24px;height:24px;padding:5px;box-sizing:content-box;border-radius:50%;background:rgb(0 0 0 / 60%);color:#fff}
.video-task-guide-scene.edited img{filter:hue-rotate(130deg) saturate(.7)}
.video-task-guide-scene.reference img{object-position:70% center;transform:scale(1.3);filter:brightness(.8)}
.video-task-guide-symbol{display:flex;flex:1;align-items:center;justify-content:center;flex-direction:column;gap:10px;min-height:100px;font-size:13px;color:var(--green)}
.video-task-guide-prompt{display:flex;align-items:center;gap:10px;flex:1;min-width:0;padding:12px;border:1px solid var(--border);border-radius:4px;background:var(--theme-surface,#fff);font-size:13px;line-height:1.5;overflow-wrap:anywhere}
.video-task-guide-prompt>svg{width:18px;height:18px;flex:none;color:var(--muted)}
.video-task-guide-apply{margin-top:16px}
@media(max-width:380px){.video-task-guide-flow,.video-task-guide-extension{gap:6px}.video-task-guide-prompt{padding:8px;font-size:11px;gap:6px}.video-task-guide-prompt>svg{display:none}.video-task-guide-scene>span{font-size:10px;padding:3px}.video-task-guide-scene>svg{width:16px;height:16px;top:5px;right:5px}}
.video-attachments{position:relative;flex:0 0 36px}
#video-attachment-menu{position:absolute;bottom:44px;left:0;width:min(260px,calc(100vw - 128px));padding:6px;border:1px solid var(--border);border-radius:6px;background:var(--theme-surface,#fff);box-shadow:0 6px 24px #0002;z-index:6}
#video-attachment-menu button{display:flex;align-items:center;justify-content:flex-start;gap:10px;width:100%;padding:10px 8px;border:0;border-radius:4px;background:transparent;color:inherit;font-size:13px;line-height:1.4;text-align:left}
#video-attachment-menu button:hover,#video-attachment-menu button:focus-visible{background:var(--theme-hover,#edf4f0)}
#video-attachment-menu svg{width:18px;height:18px;flex:none}
#video-image-library-dialog{width:min(850px,calc(100vw - 32px));max-height:90dvh;overflow:auto;box-sizing:border-box}
#video-image-library-dialog h2{font-size:18px;line-height:1.4}
.video-image-library-empty{text-align:center;padding:30px 0}
.video-image-library-empty button{margin:16px auto 0}
.video-image-library-loading{display:flex;justify-content:center;padding:20px}
.video-image-library-footer{display:flex;justify-content:center;margin-top:20px}
#video-image-library-dialog .clip-media-choice>.speech-spinner{position:absolute;top:10px;right:10px}
#video-image-library-dialog .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
