.reference-remake{margin-top:14px;padding-top:14px;border-top:1px solid #dfe2e6;color:#20242b;min-width:0}.reference-remake h3{font-size:14px;margin:0 0 8px}.reference-remake p,.reference-remake a,.reference-remake label{font-size:13px;line-height:1.6;overflow-wrap:anywhere}.reference-remake label{display:block;margin:10px 0}.reference-remake textarea{display:block;box-sizing:border-box;width:100%;min-width:0;resize:vertical;border:1px solid #dfe2e6;border-radius:8px;background:#fff;padding:8px;font:inherit;line-height:1.5;color:inherit}.reference-remake button{min-height:36px;border:1px solid #dfe2e6;border-radius:8px;background:#fff;color:#20242b;padding:7px 10px;font:inherit;cursor:pointer;white-space:normal}.reference-remake button:disabled{opacity:.5;cursor:default}.reference-remake button[data-remake-adapt]{width:100%;background:#20242b;color:#fff}.reference-remake button:focus-visible,.reference-remake textarea:focus-visible{outline:1px solid #626a76;outline-offset:2px}.remake-actions{display:flex;flex-wrap:wrap;gap:6px;margin:10px 0}.remake-steps{padding-left:20px;color:#626a76;font-size:12px}.remake-sheets img{width:100%;height:auto;display:block;border:1px solid #dfe2e6;margin:8px 0}.reference-remake details{border-top:1px solid #dfe2e6;padding:8px 0}.reference-remake summary{cursor:pointer;font-weight:500;line-height:1.6}.reference-remake .remake-check{display:flex;align-items:flex-start;gap:7px}.remake-check input{width:16px;height:16px;flex:0 0 16px;margin-top:4px}.remake-help{color:#626a76}.reference-remake [hidden]{display:none!important}@media(max-width:640px){.reference-remake textarea{font-size:16px}.reference-remake button{min-height:44px}.remake-actions button{flex:1 1 125px}}

.reference-analysis-row>.remake-actions{grid-column:1/-1}.reference-remake>a{display:inline-block;margin:6px;max-width:100%}

.open-reference-remake{width:100%;min-height:40px;margin:8px 0;border:1px solid #dfe2e6;border-radius:8px;background:#fff;color:#20242b;font:inherit;padding:8px}

/* The mode uses the original four-column workspace, with one direct settings rail. */
.video-generation-page[data-creation-mode="remake"] .video-config-column{min-height:0;display:flex;flex-direction:column}
.video-generation-page[data-creation-mode="remake"]:not([data-composer-layout="reference-v1"]) .video-config-column>:not(.scene-picker-card):not(.new-chat-action):not(#remake-workbench){display:none!important}
.remake-workbench{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;padding:12px 14px 20px;color:#20242b;background:#fff}
.remake-workbench[hidden],.remake-analysis-stage[hidden]{display:none!important}
.remake-parameter-section{padding:12px 0;border-top:1px solid #dfe2e6;min-width:0}.remake-parameter-section:first-child{border-top:0;padding-top:0}.remake-parameter-section h4{font-size:13px;font-weight:600;margin:0 0 10px}
.remake-parameter-section>button{width:100%;min-height:40px;padding:8px 10px;border:1px solid #dfe2e6;border-radius:8px;background:#fff;color:inherit;font:inherit;font-size:13px}
.remake-parameter-section p{font-size:12px;line-height:1.6;overflow-wrap:anywhere}.remake-output-settings{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.remake-output-settings label{font-size:12px;min-width:0;color:#626a76}.remake-output-settings select{display:block;margin-top:6px;width:100%;--select-height:40px;min-height:40px;color:#20242b}
.remake-output-settings label:first-child{grid-column:1/-1}.remake-workbench .reference-video-options{margin:10px 0 0;border:0;padding:0}.remake-workbench .reference-video-heading h3,.remake-workbench .reference-video-heading p,.remake-workbench .open-reference-remake,.remake-workbench #reference-video-status,.remake-workbench .reference-remake>h3,.remake-workbench .reference-remake>video,.remake-workbench .reference-remake>ol,.remake-workbench .reference-remake>p:first-of-type,.remake-workbench #add-reference-video{display:none}
.remake-workbench .reference-video-heading{justify-content:flex-end;margin-bottom:4px}.remake-workbench .reference-video-preview video{width:100%;max-height:170px;object-fit:contain;background:#17191c}.remake-workbench .reference-video-preview{display:block}
.remake-workbench .reference-video-uses{margin:0;display:flex;gap:8px;flex-wrap:wrap;border:0;padding:0}.remake-workbench .reference-video-uses legend{display:none}.remake-workbench .reference-video-uses label,.remake-workbench .reference-lock{font-size:13px;line-height:1.7}
.remake-workbench .reference-analysis{margin-top:10px;padding-top:10px}.remake-workbench .reference-analysis h3{font-size:13px}.remake-workbench .reference-analysis-row{grid-template-columns:1fr;gap:6px}.remake-workbench .reference-analysis-row input{width:100%;min-width:0;font-size:12px}.remake-workbench .reference-analysis-row>.remake-actions{grid-column:auto}
.remake-workbench .attachment-toolbar{padding:0;margin:6px 0 10px}.remake-workbench .attachment-toolbar>button{flex:1;min-width:0}.remake-workbench .chat-attachments{margin:0 0 8px}.remake-workbench .reference-remake{border:0;padding:0;margin:0}
body:not([data-creation-mode="remake"]) #reference-video-options>.reference-remake{display:none}
.remake-analysis-stage{margin:0 0 16px;padding:14px;border:1px solid #dfe2e6;border-radius:10px;background:#fff;color:#20242b;font-size:13px;line-height:1.7}.remake-analysis-stage>summary{font-size:15px;font-weight:600;cursor:pointer}.remake-analysis-stage>p{color:#626a76}.remake-analysis-stage [data-remake-report]>details{padding:10px 0;border-top:1px solid #dfe2e6}.remake-analysis-stage textarea{box-sizing:border-box;display:block;width:100%;min-width:0;resize:vertical;padding:9px;border:1px solid #dfe2e6;border-radius:8px;font:inherit;background:#fff;color:inherit}.remake-analysis-stage button{min-height:36px;padding:7px 10px;border:1px solid #dfe2e6;border-radius:8px;background:#fff;color:inherit;font:inherit}.remake-analysis-stage .remake-check{display:flex;gap:8px;align-items:flex-start;margin-top:10px}.remake-analysis-stage .remake-check input{flex:0 0 16px;margin-top:5px}
[data-creation-mode="remake"] #result-plan:has(#remake-analysis-stage:not([hidden])) #director-plan-empty{display:none}
@media(max-width:1179px){.remake-workbench{max-height:none;overflow:visible}.video-generation-page[data-creation-mode="remake"] .video-config-column{overflow:visible}}
@media(max-width:640px){.remake-workbench{padding:12px}.remake-output-settings select{font-size:16px;min-height:44px}.remake-parameter-section>button,.remake-analysis-stage button{min-height:44px}.remake-workbench textarea,.remake-analysis-stage textarea{font-size:16px}}
.remake-workbench [hidden]{display:none!important}
.remake-workbench #chat-attachments{position:static;inset:auto;z-index:auto;height:auto;min-height:0;max-height:none;display:block;pointer-events:auto;margin:0 0 10px;padding:0;overflow:visible}
.remake-workbench .material-stack[data-role]{position:static;inset:auto;width:100%;height:auto;margin:0 0 8px}
.remake-workbench .material-stack .stack-row{position:static;display:flex;flex-wrap:wrap;gap:8px;width:100%;height:auto;padding:0;overflow:visible;background:transparent}
.remake-workbench .material-stack .chat-attachment{position:relative;left:auto;top:auto;flex:0 0 48px;margin-bottom:0}
.remake-workbench .stack-toggle,.remake-workbench .attachment-more,.remake-workbench .attachment-mention{display:none!important}
#remake-structure-details{margin:10px 0 0;font-size:12px;color:#626a76}#remake-structure-details>summary{padding:8px 0;cursor:pointer;font-weight:500;color:#20242b}
.remake-borrowing{display:flex;align-items:baseline;gap:10px;margin-top:10px;font-size:12px;color:#626a76}.remake-borrowing [data-remake-slot]{min-width:0}.remake-borrowing .reference-video-uses{gap:8px}.remake-borrowing .reference-video-uses label{font-size:12px;white-space:nowrap}
.remake-fold{padding:10px 0;border-top:1px solid #dfe2e6;font-size:12px;color:#626a76;line-height:1.6}.remake-fold>summary{cursor:pointer;color:#20242b;font-weight:500;min-height:24px;overflow-wrap:anywhere}.remake-fold[open]>summary{margin-bottom:10px}
#remake-settings-summary{display:block;font-size:12px;font-weight:400;color:#626a76;margin:4px 0 0 15px}
.remake-extra-media{display:flex;gap:10px}.remake-extra-media>button{flex:1;min-width:0;background:#fff;border:1px solid #dfe2e6;border-radius:8px;padding:8px;font:inherit;color:#20242b}.remake-extra-media .attachment-tile{display:none}
.remake-workbench .attachment-toolbar #add-images{display:flex;flex-direction:row;justify-content:center;align-items:center;gap:8px;border:1px solid #dfe2e6;border-radius:8px;min-height:40px;padding:8px;background:#fff;font-size:13px;color:#20242b;max-width:none;width:100%}.remake-workbench .attachment-toolbar #add-images .attachment-tile{display:none}.remake-workbench .attachment-toolbar [data-material-help]{display:none}
.remake-workbench .reference-remake>label{margin-top:0}.remake-workbench .reference-remake>.remake-actions{display:grid;grid-template-columns:1fr 1fr}.remake-workbench .reference-remake>.remake-actions button{padding:7px 6px;font-size:12px}
.remake-analysis-stage>[data-remake-adapt]{display:block;margin-top:14px;width:100%;background:#20242b;color:#fff}.remake-analysis-stage button:disabled{opacity:.5;cursor:default}.remake-analysis-stage button:focus-visible,.remake-fold>summary:focus-visible{outline:2px solid #626a76;outline-offset:2px}.remake-analysis-stage .remake-actions{display:flex;flex-wrap:wrap;gap:6px}
@media(max-width:640px){.remake-fold>summary{min-height:44px;line-height:44px}.remake-fold[open]>summary{margin-bottom:4px}.remake-extra-media>button,.remake-workbench .attachment-toolbar #add-images{min-height:44px}.remake-borrowing .reference-video-uses label{min-height:44px;display:flex;align-items:center}.remake-workbench .reference-remake>.remake-actions button{font-size:14px}}

.remake-workbench .remake-intro{display:none}
