.video-modes{min-width:0;margin:20px 0;padding:20px;border:1px solid #e1e5f0;border-radius:16px;background:linear-gradient(135deg,#fafaff,#f5f8fd)}
.video-modes legend{padding:0 8px;font-size:14px;font-weight:700;color:#34425d}
.video-mode-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.video-modes .video-mode-card{display:block;position:relative;cursor:pointer;margin:0;min-width:0}
.video-mode-card input{position:absolute;opacity:0;width:1px;height:1px}
.video-mode-card-body{height:100%;display:flex;flex-direction:column;align-items:flex-start;padding:17px 14px;background:#fff;border:1px solid #e1e5ef;border-radius:12px;transition:border-color .15s,box-shadow .15s}
.video-mode-card b{font-size:14px;margin:10px 0 6px;color:#35425d}.video-mode-card small{font-size:11px;line-height:1.6;color:#7c879b}.video-mode-icon{display:grid;place-items:center;width:30px;height:30px;border-radius:9px;background:#f0edff;color:#7555cf;font-size:19px}
.video-mode-card input:checked+.video-mode-card-body{border-color:#8569df;background:#f9f7ff;box-shadow:0 0 0 2px #8665df15}
.video-mode-card input:focus-visible+.video-mode-card-body{outline:3px solid #ac96f4;outline-offset:3px}
.video-mode-bottom{display:flex;gap:14px;align-items:center;justify-content:space-between;margin-top:18px}
.video-modes .video-mode-bottom label{display:flex;align-items:center;gap:14px;font-size:13px;margin:0;color:#4b5770}
.video-modes select{width:140px;min-height:42px;margin:0;padding:9px 12px;border:1px solid #dce2ec;border-radius:9px;background:#fff;color:#34425d;font:inherit}
.video-mode-quality{padding:5px 10px;border:1px solid #e0e5ef;border-radius:7px;background:#fff;color:#74839b;font-size:11px;font-weight:700}
.video-mode-hint{font-size:12px!important;line-height:1.7;color:#78849a;margin:14px 0 0!important}.video-mode-error{color:#b7374e;font-size:12px;line-height:1.6;margin:10px 0 0}.video-mode-error[hidden]{display:none}
@media(max-width:560px){.video-modes{padding:14px}.video-mode-cards{grid-template-columns:1fr}.video-mode-card-body{display:grid;grid-template-columns:30px 1fr;column-gap:12px;padding:12px}.video-mode-icon{grid-row:1/3;align-self:center}.video-mode-card b{margin:0 0 3px}.video-mode-card small{grid-column:2}}
.video-mode-estimate{display:block;margin-top:12px;font-size:11px;color:#6776a0;font-weight:600;grid-column:2}
.video-estimate-note{margin:8px 0 0;font-size:11px;line-height:1.6;color:#8490a4}
.video-mode-bottom>label>span{white-space:nowrap}
.video-tool-main .video-modes{background:#0d1725;border:1px solid #2b3c50;border-radius:14px;margin:22px 0 16px;padding:18px}
.video-tool-main .video-modes legend{color:#c7d5e7;font-size:13px}
.video-tool-main .video-mode-card-body{box-sizing:border-box;background:#121f2f;border-color:#2d4055;padding:14px 11px;box-shadow:none}
.video-tool-main .video-mode-card b{color:#deebf7;font-size:13px}
.video-tool-main .video-mode-card small,.video-tool-main .video-mode-hint,.video-tool-main .video-estimate-note{color:#96abc1}
.video-tool-main .video-mode-icon{background:#173745;color:#89e7ee}
.video-tool-main .video-mode-card input:checked+.video-mode-card-body{border-color:#82e0e9;background:#17313f;box-shadow:0 0 0 1px #82e0e926}
.video-tool-main .video-mode-card input:focus-visible+.video-mode-card-body{outline-color:#82e0e9}
.video-tool-main .video-mode-estimate{color:#8bdddf}
.video-tool-main .video-mode-quality{background:#152536;border-color:#30465d;color:#a7c6da}
.video-tool-main .video-modes .video-mode-bottom label{color:#c7d5e7;flex-wrap:nowrap;white-space:nowrap}
.video-tool-main .video-modes select{width:120px;background:#0b1523;border-color:#30465d;color:#e5edf9}
.video-creative-inputs{padding:18px;border:1px solid #293b50;background:#0c162480;border-radius:14px}
.video-tool-main .video-creative-inputs .frame-upload-panel{margin:18px 0 0;padding:18px 0 0;border:0;border-top:1px solid #293b50;border-radius:0;background:transparent}
.video-tool-main .video-creative-inputs textarea{min-height:200px}
.reference-upload.is-dragging,.ai-reference-file-picker.is-dragging{outline:2px solid #86e9f2;outline-offset:3px;background:#1b4659!important}
.video-drop-error{color:#e8899b;font-size:12px;line-height:1.6}.video-drop-error[hidden]{display:none}
@media(max-width:1100px) and (min-width:761px){.video-tool-main .video-mode-cards{grid-template-columns:1fr}.video-tool-main .video-mode-card-body{display:grid;grid-template-columns:30px 1fr;column-gap:12px}.video-tool-main .video-mode-icon{grid-row:1/4}.video-tool-main .video-mode-card b{margin:0 0 4px}.video-tool-main .video-mode-card small,.video-tool-main .video-mode-estimate{grid-column:2}}
@media(max-width:560px){.video-creative-inputs{padding:14px}.video-tool-main .video-modes{padding:14px}.video-mode-card-body{height:auto}.video-tool-main .video-mode-icon{grid-row:1/4}.video-mode-estimate{margin-top:7px}}
.video-tool-main .video-creative-inputs .frame-ratio-note{background:#142d3a;color:#96ccd5;border:1px solid #294b59}
.video-duration-control{margin-top:20px}
.video-modes .video-duration-heading{display:grid;grid-template-columns:1fr auto;gap:12px;margin:0;color:#4b5770;font-size:13px}
.video-duration-heading output{font-weight:700;color:#6750b1;font-variant-numeric:tabular-nums}
.video-modes input[type=range]{grid-column:1/-1;appearance:none;-webkit-appearance:none;display:block;width:100%;height:8px;min-height:0;margin:10px 0;padding:0;border:0;border-radius:20px;background:linear-gradient(to right,#886bdf var(--duration-progress,0%),#dce3ef var(--duration-progress,0%));cursor:pointer;box-shadow:none}
.video-modes input[type=range]::-webkit-slider-thumb{appearance:none;width:22px;height:22px;border:3px solid #fff;border-radius:50%;background:#886bdf;box-shadow:0 2px 10px #0003}
.video-modes input[type=range]::-moz-range-thumb{width:17px;height:17px;border:3px solid #fff;border-radius:50%;background:#886bdf;box-shadow:0 2px 10px #0003}
.video-modes input[type=range]:focus-visible{outline:2px solid #86e9f2;outline-offset:7px}
.video-modes input[type=range]:disabled{opacity:.45;cursor:default}
.video-duration-ticks{display:flex;justify-content:space-between;font-size:11px;color:#8392a8;margin-top:4px}
.video-tool-main .video-duration-heading{color:#c7d5e7}.video-tool-main .video-duration-heading output{color:#89e7ee}
.video-tool-main .video-modes input[type=range]{background:linear-gradient(to right,#86e9f2 var(--duration-progress,0%),#2a4055 var(--duration-progress,0%))}
.video-tool-main .video-modes input[type=range]::-webkit-slider-thumb{background:#86e9f2;border-color:#173745}
.video-tool-main .video-modes input[type=range]::-moz-range-thumb{background:#86e9f2;border-color:#173745}
/* Publishing composer: retain its light workspace palette and align all steps. */
.auto-video-panel .video-modes{margin:16px 18px 0;padding:17px;border-radius:12px;background:#f7f9fe}
.auto-video-panel .video-mode-card-body{box-sizing:border-box;padding:13px 11px}
.auto-video-panel .video-mode-card b{font-size:12px}.auto-video-panel .video-mode-card small{font-size:11px}
.auto-video-panel .video-mode-estimate{font-size:11px}.auto-video-panel .video-duration-control{margin-top:18px}
.auto-video-panel .marketing-video-creative{padding:18px;background:#fff}
.marketing-video-creative .ai-reference-upload{margin:16px 0 0;padding:16px 0 0;border:0;border-top:1px solid #e3e9f2;border-radius:0;background:transparent}
.marketing-video-creative .marketing-video-dropzone{min-height:94px;padding:16px;gap:13px;border:1px dashed #aebfe0;background:#f6f9ff;border-radius:12px}
.marketing-video-creative .marketing-video-dropzone:hover{border-color:#7765cf;background:#f4f1ff}
.marketing-video-creative .marketing-video-dropzone:focus-within{outline:2px solid #8d79df;outline-offset:3px}
.marketing-video-creative .marketing-video-dropzone>span{padding:0;border:0;background:transparent}
.marketing-video-creative .marketing-video-drop-icon{font-size:30px;color:#7661c7}
.marketing-video-creative .marketing-video-drop-copy{flex:1;min-width:0;white-space:normal}
.marketing-video-drop-copy b{display:block;color:#465777;font-size:12px;line-height:1.6}
.marketing-video-drop-copy small{display:block;color:#7e8ba1!important;overflow-wrap:anywhere;white-space:normal;margin-top:4px!important;font-size:11px}
.marketing-video-creative .marketing-video-dropzone.is-dragging{background:#eeeaff!important;outline-color:#8d79df}
.marketing-video-creative .marketing-video-prompt-action{margin-top:16px;padding-top:14px;border-top:1px solid #e3e9f2}
@media(max-width:650px){.auto-video-panel .video-mode-cards{grid-template-columns:1fr}.auto-video-panel .video-mode-card-body{height:auto;display:grid;grid-template-columns:30px minmax(0,1fr);column-gap:12px}.auto-video-panel .video-mode-icon{grid-row:1/4}.auto-video-panel .video-mode-card b{margin:0 0 4px}.auto-video-panel .video-mode-card small,.auto-video-panel .video-mode-estimate{grid-column:2}.auto-video-panel .video-modes{margin:14px 12px 0;padding:14px}.auto-video-panel .marketing-video-creative{margin:14px 12px 0;padding:14px}}
.cm-video-mode-workspace .video-modes{margin:16px 0;padding:17px;border-radius:12px;background:#f7f9fe}
.cm-video-mode-workspace .video-mode-card input[type=radio]{position:absolute;width:1px;height:1px;min-height:0;padding:0;border:0;opacity:0}
.cm-video-mode-workspace .video-mode-card-body{box-sizing:border-box;padding:13px 11px}
.cm-video-mode-workspace .video-mode-card b{font-size:12px}.cm-video-mode-workspace .video-mode-card small{font-size:11px}
.cm-video-mode-workspace .marketing-video-creative textarea{width:100%;min-height:150px;resize:vertical}
.cm-video-mode-workspace .cm-video-prompt-tip{margin:16px 0 0;padding:14px 0 0;border-top:1px solid #e1e7f1;justify-content:flex-end;background:transparent}
.cm-video-mode-workspace .video-duration-heading{display:grid!important;grid-template-columns:1fr auto}
.cm-video-mode-workspace .cm-ai-submit{margin-top:0}
@media(max-width:650px){.cm-video-mode-workspace .video-mode-cards{grid-template-columns:1fr}.cm-video-mode-workspace .video-mode-card-body{height:auto;display:grid;grid-template-columns:30px minmax(0,1fr);column-gap:12px}.cm-video-mode-workspace .video-mode-icon{grid-row:1/4}.cm-video-mode-workspace .video-mode-card b{margin:0 0 4px}.cm-video-mode-workspace .video-mode-card small,.cm-video-mode-workspace .video-mode-estimate{grid-column:2}}
.cm-video-mode-workspace .video-mode-card input[type=radio]{clip-path:inset(50%);overflow:hidden;box-shadow:none;margin:0}
.cm-video-mode-workspace .marketing-video-creative>label{display:block}
/* The storyboard tools now sit below uploads, outside the old positioned editor. */
.cm-video-mode-workspace .cm-video-prompt-tip{position:static;inset:auto;width:auto;max-width:100%;flex-wrap:wrap}
.cm-video-mode-workspace .cm-video-prompt-tip .cm-storyboard-button{flex:0 1 auto;width:auto;max-width:100%;min-height:38px;padding:9px 14px;font-size:12px;white-space:normal}
.cm-video-mode-workspace .cm-storyboard-status{position:static;inset:auto;z-index:auto;max-width:100%;margin:10px 0 0;overflow-wrap:anywhere}
