.asset-grid { grid-template-columns:repeat(4,minmax(0,1fr)); }
.asset-card .asset-upload-trigger { width:100%; min-height:113px; display:flex; flex:1; flex-direction:column; color:inherit; cursor:pointer; }
.asset-card.empty .asset-upload-trigger { align-items:center; justify-content:center; }
.asset-card.has-asset .asset-upload-trigger { justify-content:flex-start; }
.asset-card.has-asset .asset-visual { width:100%; height:69px; flex:none; margin-bottom:7px; background-color:#ecebe4; }
.asset-card.has-asset .asset-plus { display:none; }
.asset-card.has-asset .asset-type { display:block; }
.asset-card .asset-upload-trigger b,.asset-card .asset-upload-trigger small { max-width:100%; }
.asset-card.frame-pair { display:grid; grid-template-columns:1fr 1fr; gap:6px; padding:7px; background:#fff; }
.frame-pair>.asset-type { top:8px; left:8px; }
.frame-slot { position:relative; min-width:0; min-height:112px; display:flex; padding:5px; border:1px dashed #dfe4da; background:#fbfbf9; }
.frame-slot.empty .asset-upload-trigger { align-items:center; justify-content:center; }
.frame-slot.has-asset { border-style:solid; }
.frame-slot.has-asset .asset-upload-trigger { justify-content:flex-start; }
.frame-slot.has-asset .asset-visual { width:100%; height:62px; flex:none; margin-bottom:6px; background-color:#ecebe4; }
.frame-slot.has-asset .asset-plus { display:none; }
.frame-slot .asset-plus { width:22px; height:22px; margin-bottom:6px; font-size:15px; }
.frame-slot b { max-width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:8px; }
.frame-slot small { max-width:100%; overflow:hidden; margin-top:3px; color:#a0a49d; text-overflow:ellipsis; white-space:nowrap; font-size:7px; }
.frame-slot .remove-asset { top:3px; right:3px; }
.asset-card:hover .remove-asset,.frame-slot:hover .remove-asset { opacity:1; }
@media(max-width:980px){.asset-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.asset-card.frame-pair{min-height:129px}}
@media(max-width:560px){.asset-grid{grid-template-columns:1fr}.asset-card.frame-pair{min-height:129px}}

.asset-type em{margin-left:3px;padding:1px 3px;border-radius:2px;font-size:7px;font-style:normal}.asset-type .asset-required{color:#fff3ef;background:#bd6759}.asset-type .asset-optional{color:#eef2e8;background:rgba(39,48,39,.48)}
.track-clips{gap:0}.track-clips .timed-clip{width:var(--clip-width);flex:0 0 var(--clip-width);min-width:0;box-sizing:border-box;border-right:3px solid transparent;background-clip:padding-box}.track-clips .timed-clip:last-child{border-right:0}.clip.voice{justify-content:flex-start;padding:0 7px}.clip.voice>span{display:block;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.model-clip{padding:2px 4px!important}
.timeline{width:100%;max-width:100%;box-sizing:border-box;overflow:hidden}.timeline-ruler,.track-clips{min-width:0;max-width:100%;box-sizing:border-box}.track-clips{overflow:hidden}.timeline-ruler{overflow:hidden}.timeline-ruler span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media(max-width:760px){.timeline{width:100%!important}.timeline-section .panel-heading{min-width:0!important;flex-wrap:wrap;gap:8px}.timeline-actions{flex-wrap:wrap}}

.viral-prompt-panel{overflow:hidden}.viral-prompt-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:13px 17px 17px}.viral-prompt-card{min-width:0;overflow:hidden;border:1px solid #e0e5db;border-radius:4px;background:#fbfcf9}.viral-prompt-card header{display:flex;align-items:flex-start;justify-content:space-between;gap:8px;padding:10px 11px;border-bottom:1px solid #e7ece4;background:#fff}.viral-prompt-card header b,.viral-prompt-card header small{display:block}.viral-prompt-card header b{overflow:hidden;color:#4b5748;text-overflow:ellipsis;white-space:nowrap;font-size:10px}.viral-prompt-card header small{margin-top:4px;color:#9ba39a;font:8px "DM Mono",monospace}.viral-prompt-card header button{height:25px;flex:none;padding:0 8px;color:#5c7834;border:1px solid #cfe0b3;border-radius:3px;background:#f5faec;font-size:9px}.viral-prompt-card header button:hover{background:#e9f6d6}.viral-prompt-card pre{max-height:248px;overflow:auto;margin:0;padding:10px 11px;color:#5b6559;background:#fbfcf9;white-space:pre-wrap;word-break:break-word;font:9px/1.65 "DM Mono",monospace}.viral-prompt-empty{grid-column:1/-1;padding:26px 13px;color:#9aa29a;border:1px dashed #dce3d8;border-radius:3px;background:#fbfcfa;text-align:center;font-size:10px}@media(max-width:760px){.viral-prompt-grid{grid-template-columns:1fr}.viral-prompt-card pre{max-height:210px}}

/* Compact reference-video entry: local upload and public-link analysis share one workflow. */
.reference-source-row{display:grid;grid-template-columns:minmax(138px,.86fr) minmax(0,1.75fr);gap:8px;padding:13px 17px 0}.reference-source-card,.reference-link-card{min-width:0;min-height:68px;box-sizing:border-box;border:1px solid #dfe6d7;border-radius:4px;background:#fbfcf9}.reference-source-card{display:flex;flex-direction:column;justify-content:center;padding:10px 11px;color:#4c5c48;cursor:pointer;transition:border-color .15s,background .15s}.reference-source-card:hover{border-color:#91ae61;background:#f4f8ed}.reference-source-card span,.reference-link-card span{display:block;color:#93a08e;font:8px "DM Mono",monospace;letter-spacing:.06em}.reference-source-card b{margin-top:4px;font-size:11px}.reference-source-card small,.reference-link-card small{display:block;margin-top:3px;color:#a5ada2;font-size:8px}.reference-link-card{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:9px 10px}.reference-link-entry{display:flex;flex:1;min-width:0;max-width:300px;gap:5px}.reference-link-entry input{min-width:0;flex:1;height:29px;box-sizing:border-box;padding:0 8px;color:#52604e;border:1px solid #dce3d6;border-radius:3px;background:#fff;font-size:9px;outline:none}.reference-link-entry input:focus{border-color:#8dad5c;box-shadow:0 0 0 2px rgba(123,157,78,.1)}.reference-link-entry button{height:29px;flex:none;padding:0 9px;color:#f9fcf5;border:0;border-radius:3px;background:#5f7d3e;font-size:9px;white-space:nowrap}.reference-link-entry button:hover:not(:disabled){background:#4c6c30}.reference-link-entry button:disabled{cursor:wait;opacity:.62}.reference-video{height:118px!important;margin:10px 17px 0;border:1px solid #e0e6dc;border-radius:4px;background:#f7f9f4}.reference-video video{object-fit:contain;background:#1d211b}.reference-video .video-placeholder{display:flex;align-items:center;justify-content:center;gap:8px;padding:0;background:linear-gradient(135deg,#f7faf3,#edf3e7)}.reference-video .play-orb{display:grid;width:25px;height:25px;place-items:center;border-radius:50%;color:#6d8b47;background:#e2edcf;font-size:9px}.reference-video .video-placeholder p{margin:0;color:#7f8c79;font-size:10px}.reference-video .remove-reference-video{top:8px;right:8px}
@media(max-width:700px){.reference-source-row{grid-template-columns:1fr}.reference-link-card{align-items:flex-start;flex-direction:column}.reference-link-entry{width:100%;max-width:none}.reference-video{height:132px!important}}

/* Reference video: link → local upload → preview, with insight in the header. */
.source-panel-heading{gap:12px}.source-ai-insight{display:flex;align-items:center;gap:7px;margin-left:auto;min-width:0}.source-ai-insight .summary-icon{width:23px;height:23px;flex:none;font-size:10px}.source-ai-insight strong{color:#52604f;font-size:10px}.source-panel-heading .status-chip{flex:none}.reference-source-row{grid-template-columns:minmax(0,1.15fr) minmax(108px,.62fr) minmax(150px,.96fr);align-items:stretch;padding:13px 17px}.reference-source-row .reference-link-card{align-items:stretch;justify-content:center;flex-direction:column;gap:7px;min-height:94px;padding:10px}.reference-source-row .reference-link-entry{width:100%;max-width:none}.reference-source-row .reference-source-card{min-height:94px;align-items:center;text-align:center}.reference-source-row .reference-video{height:94px!important;margin:0}.reference-source-row .reference-video .video-placeholder{gap:5px}.reference-source-row .reference-video .play-orb{width:20px;height:20px;font-size:8px}.reference-source-row .reference-video .video-placeholder p{font-size:8px}.reference-source-row .remove-reference-video{top:5px;right:5px;padding:4px 6px;font-size:8px}
.storyboard-list .shot{grid-template-columns:28px 112px minmax(0,1fr) 17px;gap:10px;min-width:0;white-space:nowrap}.shot-info{display:flex;min-width:0;align-items:center}.shot-info .shot-merged-copy{display:flex;align-items:center;gap:6px;min-width:0;width:100%;max-width:none;color:#858b83;font-size:10px;white-space:nowrap;overflow:hidden}.shot-info .shot-merged-copy b{overflow:hidden;flex:none;max-width:138px;color:#434c42;text-overflow:ellipsis;font-size:11px}.shot-info .shot-merged-copy em{flex:none;padding:2px 4px;color:#697d43;border-radius:2px;background:#f0f6e5;font:8px "DM Mono",monospace;font-style:normal}.shot-info .shot-merged-copy span{min-width:0;overflow:hidden;text-overflow:ellipsis}.shot-image.has-clip{background:#202820}.shot-clip-video{position:absolute;z-index:0;width:100%;height:100%;object-fit:cover;background:#202820}.shot-image.has-clip:after{display:none}.shot-image.has-clip:hover{outline:1px solid #a8d753;outline-offset:1px}.clip-pending{display:grid;place-items:center;color:#dbe4d2;background:linear-gradient(135deg,#485145,#252c27)!important;font-size:8px}.clip-pending:after{display:none}.clip-pending span{position:relative;z-index:1;max-width:92%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.integrated-generation{margin-top:2px;padding-top:0;border-top:1px solid #e8ece5;background:linear-gradient(180deg,#fbfcf9,#fff 18%)}.integrated-generation-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:15px 18px 0}.integrated-generation-heading .section-index{margin-bottom:3px}.integrated-generation-heading h3{margin:0;color:#3e473e;font-size:14px}.integrated-generation-heading>span{max-width:220px;color:#9aa397;font-size:9px;line-height:1.5;text-align:right}.optimized-prompt-workspace{margin:14px 18px 0;padding:12px;border:1px solid #d6e5c0;border-radius:4px;background:linear-gradient(135deg,#f8fcef,#fff)}.optimized-prompt-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}.optimized-prompt-heading span,.optimized-prompt-heading b{display:block}.optimized-prompt-heading span{color:#82a43f;font:8px "DM Mono",monospace;letter-spacing:.07em}.optimized-prompt-heading b{margin-top:4px;color:#44533d;font-size:11px}.optimized-prompt-heading .ghost-button{height:26px;flex:none;padding:0 8px;color:#607a39;border-color:#c8ddb0;background:#fff;font-size:9px}.optimized-prompt-heading .ghost-button:disabled{cursor:not-allowed;opacity:.55}.optimized-prompt-workspace textarea{width:100%;min-height:142px;box-sizing:border-box;margin-top:10px;padding:10px;color:#455241;border:1px solid #dce8cf;border-radius:3px;outline:0;background:#fff;font:10px/1.75 "DM Mono",monospace;resize:vertical}.optimized-prompt-workspace small{display:block;margin-top:7px;color:#84917d;font-size:9px}.generation-bottom-actions{display:flex;align-items:center;gap:9px;margin:13px 18px 17px}.generation-bottom-actions .generate-button{flex:1;width:auto;margin:0}.viral-prompt-trigger{height:42px;flex:none;padding:0 10px;color:#607049;border:1px solid #d7dfcf;border-radius:3px;background:#fff;font-size:10px;white-space:nowrap}.viral-prompt-trigger span{display:block;margin-top:2px;color:#a1a99a;font:8px "DM Mono",monospace}.viral-prompt-dialog{width:min(720px,calc(100% - 30px));max-height:min(720px,calc(100vh - 40px));padding:0;color:#3d483d;border:0;border-radius:5px;background:#fff;box-shadow:0 26px 90px rgba(20,29,19,.3)}.viral-prompt-dialog::backdrop{background:rgba(27,34,26,.48);backdrop-filter:blur(2px)}.viral-prompt-dialog-heading{display:flex;align-items:flex-start;justify-content:space-between;padding:18px 19px 13px;border-bottom:1px solid #ebeee7}.viral-prompt-dialog-heading .section-index{margin-bottom:5px}.viral-prompt-dialog-heading h2{margin:0;color:#354035;font-size:16px}.viral-prompt-dialog-heading h2 span{margin-left:5px;color:#9aa297;font-size:9px;font-weight:500}.viral-prompt-dialog-heading>button{width:28px;height:28px;color:#7c8678;border:0;background:transparent;font-size:22px}.viral-prompt-dialog>p{margin:10px 18px 0;color:#929b8f;font-size:9px}.viral-prompt-dialog .viral-prompt-grid{max-height:calc(100vh - 190px);overflow:auto;padding:12px 18px 18px}.viral-prompt-dialog .viral-prompt-card pre{max-height:180px}
@media(max-width:700px){.integrated-generation-heading{align-items:flex-start;flex-direction:column}.integrated-generation-heading>span{max-width:none;text-align:left}.generation-bottom-actions{align-items:stretch;flex-direction:column}.generation-bottom-actions .generate-button{width:100%}.viral-prompt-trigger{height:37px}.optimized-prompt-workspace textarea{min-height:170px}.viral-prompt-dialog .viral-prompt-grid{grid-template-columns:1fr}}
@media(min-width:1101px){.workspace-grid{grid-template-columns:1fr;gap:18px}.left-column,.right-column{display:contents}.source-panel{grid-column:1;order:1}.storyboard-panel{grid-column:1;order:2}.strategy-panel{grid-column:1;order:3}.assets-panel{grid-column:1;order:4}.strategy-panel .strategy-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.strategy-panel .strategy-card{min-height:96px}.strategy-panel .strategy-card:nth-child(3n){border-right:0}.strategy-panel .strategy-card:nth-last-child(-n+3){border-bottom:0}.strategy-panel .subject-ledger{grid-template-columns:repeat(5,minmax(0,1fr))}.strategy-panel .subject-ledger>div{padding:8px 10px;border-right:1px dashed #e3e7e0;border-bottom:0}.strategy-panel .subject-ledger>div:last-child{border-right:0}.assets-panel .asset-grid{grid-template-columns:repeat(5,minmax(0,1fr));align-items:stretch}.assets-panel .frame-pair{grid-column:span 2}.assets-panel .integrated-generation{display:grid;grid-template-columns:minmax(270px,.72fr) minmax(0,1.28fr);column-gap:4px;align-items:start}.assets-panel .integrated-generation-heading{grid-column:1/-1}.assets-panel .engine-note,.assets-panel .model-select-row,.assets-panel .prompt-label{margin-right:0}.assets-panel .optimized-prompt-workspace{margin-left:0}.assets-panel .generation-bottom-actions{grid-column:1/-1}.assets-panel .prompt-label{padding-left:18px;padding-right:0}.assets-panel .model-select-row{grid-template-columns:repeat(2,minmax(0,1fr))!important;padding-right:0}.assets-panel .prompt-label textarea{min-height:92px}.assets-panel .optimized-prompt-workspace textarea{min-height:190px}}

.reference-video.is-dragging{border-color:#d94a3e!important;background:#fff3f1!important;box-shadow:0 0 0 3px rgba(217,74,62,.12)}.reference-video.is-dragging .video-placeholder{background:linear-gradient(135deg,#fff4f1,#ffe1dc)}.reference-video.is-dragging .video-placeholder p,.reference-video.is-dragging .play-orb{color:#c83c32}
.original-prompt-copy{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:9px;padding-top:9px;border-top:1px dashed #dbe5d0}.original-prompt-copy span{color:#99a494;font-size:8px;line-height:1.5}.original-prompt-copy button{height:24px;flex:none;padding:0 7px;color:#738365;border:1px solid #d7ded0;border-radius:3px;background:#fff;font-size:8px}.original-prompt-copy button:hover{border-color:#a6bc88;color:#52703a}
.storyboard-panel .analysis-table-wrap{display:none}.storyboard-list{padding:0}.storyboard-list .shot{display:grid;grid-template-columns:minmax(300px,.78fr) minmax(0,1.22fr) 20px;gap:0;align-items:stretch;min-height:118px;margin:0;padding:0;border-bottom:1px solid #edf0ea;white-space:normal}.storyboard-list .shot.is-selected{margin:0;padding:0;background:#f8fbf3;box-shadow:inset 3px 0 0 #a9d360}.shot-identity{display:grid;grid-template-columns:29px 112px minmax(0,1fr);gap:9px;align-items:center;padding:12px 14px;border-right:1px solid #edf0ea}.shot-identity .shot-id{align-self:start;padding-top:3px;color:#93a289;font:10px "DM Mono",monospace}.shot-identity .shot-image{width:112px;height:76px}.shot-label{min-width:0}.shot-label b,.shot-label small{display:block}.shot-label b{overflow:hidden;color:#3f493e;text-overflow:ellipsis;white-space:nowrap;font-size:11px}.shot-label small{margin-top:7px;color:#879187;font:9px/1.55 "DM Mono",monospace}.shot-analysis-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-content:center;gap:8px 14px;margin:0;padding:13px 16px}.shot-analysis-fields>div{min-width:0}.shot-analysis-fields dt{margin-bottom:3px;color:#9aa398;font-size:8px}.shot-analysis-fields dd{margin:0;overflow:hidden;color:#586257;font-size:9px;line-height:1.45;text-overflow:ellipsis;white-space:nowrap}.shot-analysis-fields .dialogue-field{grid-column:span 2}.storyboard-list .shot-menu{align-self:start;margin-top:8px;padding:0;color:#a6aea4;background:transparent;border:0;font-size:16px}.storyboard-empty{padding:32px 17px}.storyboard-list .shot-image.has-clip{border-radius:3px}
@media(max-width:900px){.storyboard-list .shot{grid-template-columns:1fr 18px}.shot-identity{border-right:0;border-bottom:1px solid #edf0ea}.shot-analysis-fields{grid-column:1;padding-top:10px}.storyboard-list .shot-menu{grid-column:2;grid-row:1}.strategy-panel .subject-ledger{grid-template-columns:1fr 1fr}}
@media(max-width:620px){.shot-identity{grid-template-columns:24px 92px minmax(0,1fr);padding:10px}.shot-identity .shot-image{width:92px;height:65px}.shot-analysis-fields{grid-template-columns:1fr 1fr;gap:8px;padding:10px}.shot-analysis-fields .dialogue-field{grid-column:span 2}.shot-analysis-fields dd{white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.storyboard-list .shot{min-height:0}}
@media(min-width:761px) and (max-width:1100px){.right-column{display:flex;grid-template-columns:none;flex-direction:column;gap:18px}.assets-panel{grid-column:auto}}
.shot-label b,.shot-label small{overflow:visible!important;text-overflow:clip!important;white-space:normal!important;overflow-wrap:anywhere}.shot-analysis-fields{grid-template-columns:repeat(auto-fit,minmax(150px,1fr));align-items:start}.shot-analysis-fields dd{display:block;overflow:visible!important;text-overflow:clip!important;white-space:normal!important;overflow-wrap:anywhere;word-break:break-word}.shot-analysis-fields .dialogue-field{grid-column:1/-1}.storyboard-list .shot{width:100%;box-sizing:border-box}.storyboard-list .shot:hover{background:#fbfdf8}.storyboard-list .shot.is-selected:hover{background:#f8fbf3}@media(max-width:620px){.shot-analysis-fields dd{display:block;-webkit-line-clamp:unset;-webkit-box-orient:initial}}
.analysis-progress{display:flex;align-items:center;gap:11px;margin:25px 0 11px}.analysis-progress>div{height:8px;flex:1;overflow:hidden;border-radius:999px;background:#edf0ea}.analysis-progress i{display:block;width:0;height:100%;border-radius:inherit;background:linear-gradient(90deg,#b5df53,#729e2d);transition:width .35s ease}.analysis-progress strong{min-width:35px;color:#58783a;font:700 14px "DM Mono",monospace}.analysis-progress-dialog small{display:block;color:#9aa097;font-size:10px}
@media(max-width:700px){.source-panel-heading{align-items:flex-start;flex-wrap:wrap}.source-ai-insight{order:3;width:100%;margin-left:0}.reference-source-row{grid-template-columns:1fr}.reference-source-row .reference-link-card,.reference-source-row .reference-source-card{min-height:70px}.reference-source-row .reference-video{height:132px!important}}

/* Compact prompt rows: one readable line per shot, with its copy action kept on the right. */
.prompt-results-workspace{margin-top:10px}.prompt-results-heading{padding:8px 11px}.prompt-results-grid{gap:6px;max-height:164px;overflow:auto;padding:7px}.prompt-result-inline{display:flex;align-items:center;gap:9px;min-height:38px;padding:6px 7px}.prompt-result-inline .prompt-inline-copy{min-width:0;flex:1}.prompt-result-inline .prompt-inline-copy span{display:block;margin-bottom:3px;color:#7f9b58;font:8px "DM Mono",monospace;letter-spacing:.04em}.prompt-result-inline .prompt-inline-copy p{overflow:hidden;margin:0;color:#5b6558;text-overflow:ellipsis;white-space:nowrap;font:9px/1.35 "DM Mono",monospace}.prompt-result-inline .ghost-button{height:27px;flex:none;padding:0 9px;color:#607a39;border-color:#c8ddb0;background:#fff;font-size:9px}.prompt-compare,.original-prompt-column{display:none!important}

/* Generation settings: all shots stay visible, editable, and comparable to the original analysis. */
.assets-panel .integrated-generation{display:block!important}.assets-panel .model-select-row{display:grid;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:9px;margin:14px 18px 0;padding:0}.assets-panel .model-select-row label{min-width:0}.compact-prompt-label{display:block!important;margin:12px 18px 0!important;padding:0!important}.compact-prompt-label textarea{min-height:38px!important;height:38px;resize:vertical}.prompt-results-workspace{margin:13px 18px 0;border:1px solid #d6e5c0;border-radius:4px;background:linear-gradient(135deg,#f8fcef,#fff)}.prompt-results-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 12px;border-bottom:1px solid #e1ebd4}.prompt-results-heading span,.prompt-results-heading b{display:block}.prompt-results-heading span{color:#82a43f;font:8px "DM Mono",monospace;letter-spacing:.07em}.prompt-results-heading b{margin-top:4px;color:#44533d;font-size:11px}.prompt-results-heading small{max-width:48%;color:#85917d;font-size:9px;line-height:1.45;text-align:right}.prompt-results-grid{display:grid;gap:10px;padding:10px}.prompt-results-empty{padding:28px 12px;color:#9aa397;border:1px dashed #dce5d4;border-radius:3px;background:#fff;text-align:center;font-size:10px}.prompt-result-card{min-width:0;border:1px solid #e0e9d7;border-radius:4px;overflow:hidden;background:#fff}.prompt-result-card header{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;padding:10px 11px;border-bottom:1px solid #e9efe3;background:#fbfdf9}.prompt-result-card header span,.prompt-result-card header b,.prompt-result-card header small{display:block}.prompt-result-card header span{color:#86a954;font:8px "DM Mono",monospace;letter-spacing:.06em}.prompt-result-card header b{margin-top:3px;color:#465244;font-size:11px}.prompt-result-card header small{margin-top:3px;color:#929d8d;font:8px "DM Mono",monospace}.prompt-result-card header .ghost-button{height:27px;flex:none;padding:0 8px;color:#607a39;border-color:#c8ddb0;background:#fff;font-size:9px}.prompt-compare{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(230px,.85fr);gap:0}.prompt-compare label{display:block;min-width:0;padding:10px;border-right:1px solid #e8eee2}.prompt-compare label:last-child{border-right:0;background:#fbfcfa}.prompt-compare label>span{display:block;margin-bottom:6px;color:#71806a;font-size:9px}.prompt-compare textarea{display:block;width:100%;min-height:158px;box-sizing:border-box;padding:9px;color:#455241;border:1px solid #dce8cf;border-radius:3px;outline:0;background:#fff;font:9px/1.7 "DM Mono",monospace;resize:vertical}.prompt-compare textarea:focus{border-color:#96b66a;box-shadow:0 0 0 2px rgba(124,161,74,.12)}.prompt-compare .original-prompt-column textarea{color:#65705f;background:#f8faf6}.storyboard-stage{display:flex;align-items:center;gap:8px;padding:9px 14px;color:#60733e;border-bottom:1px solid #e4ecd9;background:#f6faef}.storyboard-stage span{padding:2px 4px;color:#88a660;border-radius:2px;background:#e8f2d8;font:8px "DM Mono",monospace;letter-spacing:.04em}.storyboard-stage b{font-size:10px}.storyboard-list .storyboard-stage:first-child{border-top:0}@media(max-width:900px){.assets-panel .model-select-row{grid-template-columns:repeat(2,minmax(0,1fr))!important}.prompt-compare{grid-template-columns:1fr}.prompt-compare label{border-right:0;border-bottom:1px solid #e8eee2}.prompt-compare label:last-child{border-bottom:0}}@media(max-width:560px){.assets-panel .model-select-row{grid-template-columns:1fr!important}.prompt-results-heading{align-items:flex-start;flex-direction:column}.prompt-results-heading small{max-width:none;text-align:left}.prompt-result-card header{align-items:flex-start;flex-direction:column}.prompt-result-card header .ghost-button{width:100%}}

/* A large script item is shown as one continuous final-video interval. */
.storyboard-stage small{margin-left:auto;color:#84907c;font:8px "DM Mono",monospace;white-space:nowrap}.stage-model-clip{display:flex!important;align-items:center;justify-content:center;gap:3px;padding:3px 5px!important;color:#eef6e5!important;border-right-color:#f5f8ee!important;background:linear-gradient(135deg,#637e42,#90ab64)!important;overflow:hidden}.stage-model-clip b,.stage-model-clip span,.stage-model-clip small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.stage-model-clip b{font-size:9px}.stage-model-clip span{font:8px "DM Mono",monospace}.stage-model-clip small{font-size:7px;opacity:.82}@media(max-width:560px){.storyboard-stage{align-items:flex-start;flex-wrap:wrap}.storyboard-stage small{width:100%;margin-left:0}.stage-model-clip{justify-content:flex-start}.stage-model-clip small{display:none}}

/* The continuous shots in one script item have their own cloud-cut preview. */
.storyboard-stage .stage-clip-preview{width:116px;height:48px;flex:none;margin-left:auto;overflow:hidden;border:1px solid #d8e5ca;border-radius:3px;background:#273027}.storyboard-stage .stage-clip-preview video{display:block;width:100%;height:100%;object-fit:cover;background:#202820}.storyboard-stage .stage-clip-preview.stage-clip-pending{display:grid;place-items:center;color:#dae6cf;background:linear-gradient(135deg,#58654f,#354032)}.storyboard-stage .stage-clip-preview span{max-width:92%;overflow:hidden;color:inherit;border:0;background:transparent;text-overflow:ellipsis;white-space:nowrap;font:8px "DM Mono",monospace;letter-spacing:0}.storyboard-stage .stage-clip-preview+small{margin-left:0}.storyboard-stage:has(.stage-clip-preview){min-height:48px}@media(max-width:560px){.storyboard-stage .stage-clip-preview{width:104px;height:44px;margin-left:auto}.storyboard-stage .stage-clip-preview+small{width:100%;margin-left:0}}

/* Do not let an unfinished reference-image analysis be mistaken for a final prompt. */
.prompt-results-workspace.is-reference-analyzing{border-color:#e7a4a0;box-shadow:0 0 0 2px rgba(194,54,48,.09)}.prompt-results-workspace .prompt-results-heading small.is-reference-analyzing{max-width:58%;color:#c53531;font-weight:700}.prompt-results-workspace .prompt-results-heading small.is-reference-analyzing::before{content:"● ";font-size:9px}.prompt-results-grid.is-reference-analyzing{background:linear-gradient(135deg,#fff8f7,#fff)}.prompt-results-grid.is-reference-analyzing .prompt-result-card{border-color:#efd3d0}.prompt-results-grid.is-reference-analyzing .ghost-button[disabled]{cursor:not-allowed;color:#b96c69;border-color:#e8c1be;background:#fff5f4;opacity:1}

/* Live Seedance task results in the final timeline. */
.generated-shot-video{height:52px!important;padding:0!important;overflow:hidden;background:#202820!important}.generated-shot-video video{display:block;width:100%;height:100%;object-fit:cover;background:#202820}.generated-shot-status{height:52px!important;display:flex!important;align-items:center;justify-content:center;flex-direction:column;gap:2px;color:#6b7d55!important;background:#eef5e4!important}.generated-shot-status b{font:9px "DM Mono",monospace}.generated-shot-status span{font-size:8px}.generated-shot-status.is-failed{color:#a74f49!important;background:#fff0ee!important}
