/* MiniMax only: normal workbench markup and video flows remain intact. */
html .minimax-workspace .mm-storyboard-mode{display:inline-flex;align-items:center;padding:3px;gap:2px;background:var(--vw-hover,#ededf0);border:1px solid var(--vw-line,#00000012);border-radius:8px;margin-right:auto;}
html .minimax-workspace .mm-storyboard-mode button{min-height:26px;padding:4px 8px;border:1px solid transparent;background:transparent;box-shadow:none;color:var(--vw-muted,#707279);font-size:11px;white-space:nowrap;}
html .minimax-workspace .mm-storyboard-mode button[aria-pressed="true"]{background:var(--vw-card,#fff);border-color:var(--vw-line,#00000012);color:var(--vw-text,#25262a);box-shadow:0 1px 3px #0000000b;}
html .minimax-workspace .mm-storyboard-template{display:flex;align-items:center;gap:12px;margin:15px 0 0;font-size:11px;color:var(--vw-muted,#707279);}
html .minimax-workspace .mm-storyboard-template select{margin-left:auto;padding:7px 9px;max-width:65%;border:1px solid var(--vw-line,#00000012);border-radius:8px;background:var(--vw-fill,#f5f5f7);color:var(--vw-text,#25262a);font:inherit;}
html .minimax-workspace [hidden]{display:none!important;}
html .minimax-workspace .is-storyboard-mode [data-mm="add-videos"]{display:none!important;}
html .minimax-workspace .is-storyboard-mode .mm-layout{--mm-sb-gap:22px;position:relative;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:var(--mm-sb-gap);align-items:start;}
html .minimax-workspace .is-storyboard-mode .mm-composer{grid-column:1;grid-row:1;transition:opacity .25s ease,transform .45s cubic-bezier(.22,.8,.25,1);}
html .minimax-workspace .is-storyboard-mode .mm-result-column{grid-column:2;grid-row:1;min-width:0;transition:transform .45s cubic-bezier(.22,.8,.25,1);position:relative;z-index:2;}
html .minimax-workspace .is-storyboard-mode .mm-result-card{padding-bottom:16px;}
html .minimax-workspace .is-storyboard-mode .mm-result-card>[data-mm="preview"],html .minimax-workspace .is-storyboard-mode .mm-result-card>[data-mm="progress"],html .minimax-workspace .is-storyboard-mode .mm-result-card>[data-mm="timing"],html .minimax-workspace .is-storyboard-mode .mm-result-card>[data-mm="job-actions"],html .minimax-workspace .is-storyboard-mode .mm-result-card>[data-mm="summary"],html .minimax-workspace .is-storyboard-mode .mm-result-card [data-mm="refresh"]{display:none!important;}
html .minimax-workspace .mm-storyboard-video-column{grid-column:2;grid-row:1;min-width:0;opacity:0;transform:translateY(12px);pointer-events:none;transition:opacity .3s ease .17s,transform .4s ease .1s;}
html .minimax-workspace .is-storyboard-expanded .mm-composer{opacity:0;pointer-events:none;transform:translateX(-14px);}
html .minimax-workspace .is-storyboard-expanded .mm-result-column{transform:translateX(calc(-100% - var(--mm-sb-gap)));}
html .minimax-workspace .is-storyboard-expanded .mm-storyboard-video-column{opacity:1;transform:translateY(0);pointer-events:auto;}
html .minimax-workspace .mm-storyboard-plan-actions>button{width:100%;min-height:45px;}
html .minimax-workspace .mm-card button.mm-storyboard-danger{background:#d8342b;border-color:transparent;color:#fff;}
html .minimax-workspace .mm-card button.mm-storyboard-danger:hover:not(:disabled){background:#b8261f;color:#fff;border-color:transparent;}
html .minimax-workspace .mm-storyboard{min-width:0;}
html .minimax-workspace .mm-storyboard-tabs{display:flex;background:var(--vw-fill,#f5f5f7);border:1px solid var(--vw-line,#00000012);border-radius:9px;padding:3px;gap:3px;margin-bottom:12px;}
html .minimax-workspace .mm-storyboard-tabs>button{flex:1;min-width:0;box-shadow:none;background:transparent;border-color:transparent;font-size:11px;padding:7px 6px;}
html .minimax-workspace .mm-storyboard-tabs>button[aria-selected="true"]{background:var(--vw-card,#fff);border-color:var(--vw-line,#00000012);box-shadow:0 1px 3px #00000008;}
html .minimax-workspace .mm-storyboard-stack{position:relative;min-height:360px;border-radius:11px;isolation:isolate;}
html .minimax-workspace .mm-storyboard-empty{min-height:315px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:13px;background:var(--vw-preview,#f1f1f4);border:1px solid var(--vw-line,#00000012);border-radius:11px;color:var(--vw-muted,#707279);text-align:center;padding:15px;}
html .minimax-workspace .mm-storyboard-empty .mm-preview-symbol{margin-bottom:0;}
html .minimax-workspace .mm-storyboard-empty strong{font-size:13px;font-weight:500;}
html .minimax-workspace .mm-storyboard-empty small{font-size:11px;font-variant-numeric:tabular-nums;}
html .minimax-workspace .mm-storyboard-panel{background:var(--vw-card,#fff);min-width:0;scrollbar-width:thin;overscroll-behavior:contain;}
html .minimax-workspace .is-storyboard-expanded .mm-storyboard-stack{height:min(65vh,720px);min-height:390px;overflow:hidden;background:var(--vw-fill,#f5f5f7);border:1px solid var(--vw-line,#00000012);}
html .minimax-workspace .is-storyboard-expanded .mm-storyboard-panel{position:absolute;inset:0;overflow-y:auto;padding:12px;box-sizing:border-box;border-radius:10px;transition:transform .38s cubic-bezier(.22,.8,.25,1),opacity .3s;}
html .minimax-workspace .is-storyboard-expanded .mm-storyboard-plan-panel{z-index:1;}
html .minimax-workspace .is-storyboard-expanded .mm-storyboard-script-panel{z-index:2;box-shadow:0 12px 30px #00000012;}
html .minimax-workspace .is-storyboard-expanded [data-card="plan"] .mm-storyboard-script-panel{transform:translateY(103%);opacity:0;pointer-events:none;}
html .minimax-workspace .is-storyboard-expanded [data-card="script"] .mm-storyboard-script-panel{transform:translateY(0);opacity:1;}
html .minimax-workspace .mm-storyboard-wheel{display:flex;justify-content:center;gap:30px;margin:9px 0 0;padding:7px 9px;border-radius:7px;background:var(--vw-fill,#f5f5f7);font-size:10px;color:var(--vw-muted,#707279);cursor:ns-resize;}
html .minimax-workspace .mm-storyboard-plan-title{display:flex;justify-content:space-between;align-items:center;margin:4px 0 12px;gap:8px;}
html .minimax-workspace .mm-storyboard-plan-title strong{font-size:13px;font-weight:600;}
html .minimax-workspace .mm-storyboard-plan-title small{font-size:11px;color:var(--vw-muted,#707279);}
html .minimax-workspace .mm-storyboard-tools{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin-bottom:13px;}
html .minimax-workspace .mm-storyboard-tools button{font-size:10px;min-height:29px;padding:5px 8px;}
html .minimax-workspace .mm-storyboard-tools svg{width:13px;height:13px;}
html .minimax-workspace .mm-storyboard-shots{display:flex;flex-direction:column;gap:12px;}
html .minimax-workspace .mm-storyboard-shot{background:var(--vw-fill,#f5f5f7);border:1px solid var(--vw-line,#00000012);border-radius:12px;padding:11px;}
html .minimax-workspace .mm-storyboard-shot-head{display:flex;align-items:center;gap:5px;margin-bottom:9px;}
html .minimax-workspace .mm-storyboard-shot-head>span{font-size:11px;color:var(--vw-muted,#707279);font-variant-numeric:tabular-nums;}
html .minimax-workspace .mm-storyboard-shot-head>input{min-width:40px;flex:1;font-weight:600;}
html .minimax-workspace .mm-storyboard-shot-head label{display:flex;align-items:center;gap:4px;font-size:10px;white-space:nowrap;color:var(--vw-muted,#707279);}
html .minimax-workspace .mm-storyboard-shot-head label input{width:45px;font-variant-numeric:tabular-nums;}
html .minimax-workspace .mm-storyboard-shot input{border:1px solid var(--vw-line,#00000012);background:var(--vw-card,#fff);border-radius:6px;min-height:27px;padding:3px 6px;font:inherit;font-size:11px;color:var(--vw-text,#25262a);box-sizing:border-box;}
html .minimax-workspace .mm-storyboard-shot-head button{width:24px;min-height:25px;padding:2px;border:0;background:transparent;box-shadow:none;color:var(--vw-muted,#707279);font-size:13px;}
html .minimax-workspace .mm-storyboard-shot-main{display:grid;grid-template-columns:72px minmax(0,1fr);gap:8px;align-items:stretch;}
html .minimax-workspace .mm-storyboard-shot-image{border:1px solid var(--vw-line,#00000012);background:var(--vw-preview,#f1f1f4);border-radius:8px;overflow:hidden;display:grid;place-items:center;color:var(--vw-muted,#707279);font-size:10px;min-height:95px;text-align:center;}
html .minimax-workspace .mm-storyboard-shot-image img{width:100%;height:100%;max-height:130px;object-fit:contain;display:block;}
html .minimax-workspace .mm-storyboard-shot textarea,html .minimax-workspace .mm-storyboard-globals textarea{min-height:66px;resize:vertical;background:var(--vw-card,#fff);border:1px solid var(--vw-line,#00000012);padding:8px 9px;border-radius:7px;font-size:11px;line-height:1.65;}
html .minimax-workspace .mm-storyboard-shot-main textarea{min-height:95px;}
html .minimax-workspace .mm-storyboard-shot details{margin-top:9px;}
html .minimax-workspace .mm-storyboard-shot summary,html .minimax-workspace .mm-storyboard-globals>summary{color:var(--vw-muted,#707279);font-size:10px;cursor:pointer;padding:4px 0;}
html .minimax-workspace .mm-storyboard-shot-details{display:grid;grid-template-columns:minmax(0,1fr);gap:8px;margin-top:8px;}
html .minimax-workspace .mm-storyboard-shot-details label,html .minimax-workspace .mm-storyboard-globals label{display:flex;flex-direction:column;gap:5px;color:var(--vw-muted,#707279);font-size:10px;min-width:0;}
html .minimax-workspace .mm-storyboard-bindings{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:8px;font-size:10px;color:var(--vw-muted,#707279);}
html .minimax-workspace .mm-storyboard-bindings label{display:flex;align-items:center;gap:4px;}
html .minimax-workspace .mm-storyboard-bindings input{width:13px;height:13px;min-height:0;accent-color:var(--vw-blue,#007aff);}
html .minimax-workspace .mm-storyboard-globals{margin-top:15px;}
html .minimax-workspace .mm-storyboard-subjects{margin-top:15px;}
html .minimax-workspace .mm-storyboard-subjects>summary{color:var(--vw-muted,#707279);font-size:10px;cursor:pointer;padding:4px 0;}
html .minimax-workspace .mm-storyboard-subjects>div{margin:10px 0;padding:10px;background:var(--vw-fill,#f5f5f7);border:1px solid var(--vw-line,#00000012);border-radius:9px;}
html .minimax-workspace .mm-storyboard-subjects label{font-size:10px;color:var(--vw-muted,#707279);}
html .minimax-workspace .mm-storyboard-subjects textarea{min-height:65px;font-size:11px;padding:8px 9px;margin-top:6px;}
html .minimax-workspace .mm-storyboard-shot select{font:inherit;font-size:11px;padding:6px;border:1px solid var(--vw-line,#00000012);background:var(--vw-card,#fff);border-radius:6px;color:var(--vw-text,#25262a);}
html .minimax-workspace .mm-storyboard-globals>div{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px;margin-top:8px;}
html .minimax-workspace .mm-storyboard-footer{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:13px;}
html .minimax-workspace .mm-storyboard-footer>span{font-size:11px;font-variant-numeric:tabular-nums;color:var(--vw-muted,#707279);}
html .minimax-workspace .mm-storyboard-footer>div{display:flex;justify-content:flex-end;gap:7px;flex-wrap:wrap;margin-left:auto;}
html .minimax-workspace .mm-storyboard-footer button{min-height:36px;font-size:11px;}
html .minimax-workspace .mm-storyboard-feedback:empty{display:none;}
html .minimax-workspace .mm-storyboard-feedback,html .minimax-workspace .mm-storyboard-video-state{font-size:11px;color:var(--vw-muted,#707279);line-height:1.7;white-space:pre-wrap;overflow-wrap:anywhere;margin:12px 0 0;}
html .minimax-workspace .mm-storyboard .is-error,html .minimax-workspace .mm-storyboard-video-state.is-error{color:#d24b42!important;}
html.lg-dark .minimax-workspace .mm-storyboard .is-error,html.lg-dark .minimax-workspace .mm-storyboard-video-state.is-error{color:#ff9187!important;}
html .minimax-workspace .mm-storyboard-script-heading{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:12px;}
html .minimax-workspace .mm-storyboard-script-heading strong{font-size:12px;}
html .minimax-workspace .mm-storyboard-script-heading button{font-size:10px;padding:5px 7px;min-height:28px;}
html .minimax-workspace .mm-storyboard-script-heading svg{width:13px;height:13px;}
html .minimax-workspace .mm-storyboard-script-panel pre{white-space:pre-wrap;overflow-wrap:anywhere;font:inherit;font-size:11px;line-height:1.85;color:var(--vw-text,#25262a);margin:0;}
html .minimax-workspace .mm-storyboard-video-card .mm-preview{min-height:360px;}
@container video-workbench (max-width:800px){
  html .minimax-workspace .is-storyboard-mode .mm-layout{grid-template-columns:minmax(0,1fr);}
  html .minimax-workspace .is-storyboard-mode .mm-result-column{grid-column:1;grid-row:2;}
  html .minimax-workspace .is-storyboard-mode .mm-storyboard-video-column{grid-column:1;grid-row:2;}
  html .minimax-workspace .is-storyboard-expanded .mm-result-column{grid-row:1;transform:translateX(0);}
  html .minimax-workspace .is-storyboard-expanded .mm-composer{visibility:hidden;}
  html .minimax-workspace .is-storyboard-expanded .mm-storyboard-stack{height:55vh;min-height:330px;}
}
@media(max-width:600px){
  html .minimax-workspace .mm-storyboard-mode{margin-left:auto;margin-right:0;}
  html .minimax-workspace .is-storyboard-mode .mm-media-count{font-size:10px;}
  html .minimax-workspace .mm-storyboard-shot-main{grid-template-columns:58px minmax(0,1fr);}
  html .minimax-workspace .mm-storyboard-globals>div{grid-template-columns:minmax(0,1fr);}
}
@media(prefers-reduced-motion:reduce){html .minimax-workspace .is-storyboard-mode :is(.mm-composer,.mm-result-column,.mm-storyboard-video-column,.mm-storyboard-panel){transition:none!important;animation:none!important;}}

.storyboard-mode-badge,.ct-storyboard-badge{display:inline-flex;align-items:center;padding:2px 6px;border-radius:5px;font-size:10px;line-height:1.5;font-weight:600;color:var(--lg-accent,#007aff);background:color-mix(in srgb,var(--lg-accent,#007aff) 12%,transparent)}
.mm-storyboard-saved-script{margin-top:12px;padding:12px;border:1px solid var(--line,#8883);border-radius:10px}.mm-storyboard-saved-script summary{cursor:pointer;font-size:12px;color:var(--muted)}.mm-storyboard-saved-script pre{white-space:pre-wrap;overflow-wrap:anywhere;max-height:240px;overflow:auto;font-size:12px;line-height:1.6}
