:root{--bg:#f1f4f8;--panel:#fff;--nav:#111827;--nav2:#273244;--line:#d8e0ea;--text:#172033;--muted:#667085;--blue:#1769dc;--blue2:#0d55bd;--soft:#eef5ff;--red:#b73535;--green:#16835c;--shadow:0 14px 38px rgba(18,31,53,.07)}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font:14px/1.55 "Microsoft YaHei","PingFang SC",Arial,sans-serif}button,input,select,textarea{font:inherit}button{cursor:pointer}h1,h2,h3,p{margin:0}.muted{color:var(--muted)}
.sidebar{position:fixed;inset:0 auto 0 0;width:226px;background:var(--nav);padding:26px 18px;color:#fff}.brand{display:flex;align-items:center;gap:12px;margin-bottom:34px}.brand>b,.login-brand{display:grid;place-items:center;width:42px;height:42px;border-radius:8px;background:var(--blue);font-weight:800}.brand span,.brand strong,.brand small{display:block}.brand small{color:#93a0b5}.sidebar nav{display:grid;gap:8px}.nav{border:0;border-radius:7px;padding:11px 13px;background:transparent;color:#c6cfdd;text-align:left;text-decoration:none}.nav.active,.nav:hover{background:var(--nav2);color:#fff}.sidebar-note{position:absolute;bottom:24px;color:#8793a7}
main{margin-left:226px;padding:28px 34px 70px;max-width:1800px;min-width:0}header{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px}h1{font-size:28px}.eyebrow{font-size:11px;font-weight:800;color:var(--blue);letter-spacing:.07em}.header-actions{display:flex;align-items:center;gap:10px}.server-state,.user-pill{padding:7px 12px;border-radius:20px;background:#fff;border:1px solid var(--line);color:var(--muted)}.server-state.ok{color:var(--green)}.user-pill small{margin-left:7px;color:var(--blue)}
.panel{background:var(--panel);border:1px solid var(--line);border-radius:10px;box-shadow:var(--shadow);padding:22px;margin-bottom:16px}.mode-tabs{display:flex;gap:8px;margin-bottom:14px}.mode{border:1px solid var(--line);background:#fff;border-radius:7px;padding:10px 18px}.mode.active{background:var(--blue);border-color:var(--blue);color:#fff}.intro{display:flex;justify-content:space-between;align-items:center}.intro p,.section-title span,.config-row span,.history-row span{display:block;color:var(--muted);margin-top:4px}.badge{background:var(--soft);color:var(--blue);padding:7px 11px;border-radius:5px;font-weight:700}.section-title,.section-actions{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px}.section-title h2,.intro h2{font-size:18px}
.uploads{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.upload{min-height:170px;border:1px dashed #abc0dd;border-radius:9px;background:#f9fbfe;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:18px;text-align:center;cursor:pointer}.upload:hover{border-color:var(--blue);background:var(--soft)}.upload.dragover{border-color:var(--blue);background:#eaf3ff;box-shadow:inset 0 0 0 2px #4b8fd8}.upload input{position:absolute;opacity:0;pointer-events:none}.plus{font-size:32px;color:var(--blue)}.upload small{color:var(--muted)}.file-name{max-width:90%;margin-top:10px;color:var(--blue);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.field-grid,.editor-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px;margin-top:18px}.field-grid label,.editor-grid label,.login-form label{display:grid;gap:7px}.field-grid label:first-child{grid-row:span 2}.field-grid span{font-weight:700}.wide{grid-column:1/-1}.check{display:flex!important;align-items:center;gap:8px}.check input{width:auto}input,select,textarea{width:100%;border:1px solid var(--line);border-radius:7px;padding:10px 11px;background:#fff;color:var(--text)}textarea{resize:vertical}.constraints{margin-top:16px;padding:12px 14px;background:#fff8e8;border:1px solid #ead6a4;border-radius:7px;color:#775019}.form-actions{text-align:right;margin-top:18px;display:flex;justify-content:flex-end;gap:9px}.primary,.quiet{border:0;border-radius:7px;padding:10px 17px}.primary{background:var(--blue);color:#fff;font-weight:700}.primary:hover{background:var(--blue2)}.primary:disabled{opacity:.55}.quiet{background:#edf1f6;color:#344054}
.task-list{display:grid;gap:10px}.task-card{display:grid;grid-template-columns:minmax(220px,1.7fr) 1fr 1fr auto;gap:16px;align-items:center;border:1px solid var(--line);border-radius:8px;padding:14px;cursor:pointer}.task-card:hover{border-color:#9bb7de}.task-title strong,.task-title small{display:block}.task-title small,.meta{color:var(--muted)}.failure-reason{display:block;margin-top:6px;color:var(--red);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.status{display:inline-block;padding:5px 9px;border-radius:20px;background:#edf1f5}.status.completed,.status.approved,.status.exported{color:var(--green);background:#e9f7f1}.status.running,.status.queued,.status.upscaling{color:var(--blue);background:var(--soft)}.status.rejected,.status.failed{color:var(--red);background:#fff0f0}.progress{height:5px;background:#e8edf3;border-radius:4px;overflow:hidden;margin-top:6px}.progress i{display:block;height:100%;background:var(--blue)}.empty{text-align:center;color:var(--muted);padding:40px}
dialog{width:min(900px,92vw);border:0;border-radius:12px;padding:26px;box-shadow:0 30px 80px rgba(0,0,0,.25)}dialog::backdrop{background:rgba(15,23,42,.52)}.dialog-close{position:absolute;right:15px;top:12px;border:0;background:transparent;font-size:27px}.detail-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:18px 0}.detail-box{border:1px solid var(--line);border-radius:7px;padding:12px}.detail-box span,.detail-box strong,.detail-box small{display:block}.detail-box span{color:var(--muted);font-size:12px}.segments{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;margin:14px 0}.segment{padding:11px;border-radius:6px;background:#f4f7fb}.review{border-top:1px solid var(--line);margin-top:18px;padding-top:18px}.tags{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0}.tags label{border:1px solid var(--line);border-radius:20px;padding:6px 10px}.review-actions{display:flex;gap:8px;margin-top:12px}.danger,.danger-text{color:var(--red)}.toast{position:fixed;right:26px;bottom:26px;background:#172033;color:#fff;padding:12px 16px;border-radius:7px;box-shadow:var(--shadow);z-index:10}
.failure-box{margin:16px 0;padding:14px 16px;background:#fff5f5;border:1px solid #f2b8b8;border-radius:8px}.failure-box h3{color:var(--red);font-size:15px}.failure-box p{margin-top:7px;color:#8f2626;white-space:pre-wrap;overflow-wrap:anywhere}.failure-meta{margin-top:8px;color:var(--muted);font-size:12px}.outputs{margin:16px 0}.outputs h3{margin-bottom:10px}.output-item{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:14px;align-items:center;border:1px solid var(--line);border-radius:7px;padding:12px}.output-item video{width:100%;max-height:460px;background:#111}.download-link{display:inline-block;text-decoration:none;white-space:nowrap}
.login-page{min-height:100vh;background:linear-gradient(135deg,#0f172a,#1d4f91)}.login-shell{margin:0;max-width:none;min-height:100vh;display:grid;place-items:center;padding:30px}.login-panel{width:min(440px,95vw);background:#fff;border-radius:16px;padding:36px;box-shadow:0 25px 80px rgba(0,0,0,.3)}.login-brand{color:#fff;margin-bottom:20px}.login-panel>p{color:var(--muted);margin:5px 0 24px}.login-form{display:grid;gap:15px}.login-form h2{font-size:18px}.login-error{color:var(--red);min-height:22px}
.admin-sections{max-width:1100px;margin:auto}.config-section{padding:0;overflow:hidden}.config-section summary{display:flex;justify-content:space-between;align-items:center;list-style:none;padding:20px;cursor:pointer}.config-section summary div{display:grid;grid-template-columns:160px 1fr;align-items:center}.config-section summary span{color:var(--muted)}.config-section summary b{color:var(--blue);font-size:20px}.config-section[open] summary{border-bottom:1px solid var(--line)}.config-body{padding:20px}.config-list,.history-list{display:grid;gap:10px}.config-row,.history-row{display:flex;justify-content:space-between;align-items:center;gap:20px;border:1px solid var(--line);border-radius:8px;padding:13px}.history-row{display:grid;grid-template-columns:1fr auto 90px}.secret-state{display:inline!important;margin-right:8px!important}.editor-form h2{margin-bottom:16px}.account-status{display:inline-block;padding:3px 8px;border-radius:20px}.account-status.active{background:#e9f7f1;color:var(--green)}.account-status.disabled{background:#fff0f0;color:var(--red)}
.confirm-dialog{width:min(460px,92vw)}.confirm-dialog h2{font-size:20px;margin-bottom:12px}.confirm-dialog p{line-height:1.6}.confirm-note{color:var(--muted);font-size:13px;margin-top:8px}.danger-button{background:var(--red)}
.search{max-width:420px;margin-bottom:15px}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;background:#fff}th,td{text-align:left;border-bottom:1px solid var(--line);padding:12px 10px;white-space:nowrap}th{color:var(--muted);font-weight:600}.text-button{border:0;background:none;color:var(--blue);padding:5px}
.generation-panel{padding:0;overflow:hidden}.generation-panel>.section-title{padding:18px 20px;margin:0}.generation-panel .section-actions{margin:0;gap:8px}.generation-table-wrap{width:100%;max-width:100%;overflow-x:auto;overscroll-behavior-inline:contain;border-top:1px solid var(--line)}.generation-table{width:100%;min-width:1420px;table-layout:fixed}.generation-table th,.generation-table td{padding:8px;border-right:1px solid var(--line);vertical-align:middle;text-align:center}.generation-table th{height:42px;background:#f7f9fc;color:#344054}.generation-table th:nth-child(1),.generation-table td:nth-child(1){width:142px}.generation-table th:nth-child(2),.generation-table td:nth-child(2){width:142px}.generation-table th:nth-child(3),.generation-table td:nth-child(3){width:185px}.generation-table th:nth-child(4),.generation-table td:nth-child(4){width:220px}.generation-table th:nth-child(5),.generation-table td:nth-child(5){width:82px}.generation-table th:nth-child(6),.generation-table td:nth-child(6){width:96px}.generation-table th:nth-child(7),.generation-table td:nth-child(7){width:82px}.generation-table th:nth-child(8),.generation-table td:nth-child(8){width:76px}.generation-table th:nth-child(9),.generation-table td:nth-child(9){width:255px}.generation-table th:nth-child(10),.generation-table td:nth-child(10){width:95px}.generation-table textarea{height:96px;min-height:96px;resize:none}.generation-table select,.generation-table textarea{padding:8px}.table-upload{position:relative;display:grid;grid-template-rows:70px 18px;gap:4px;width:124px;height:96px;margin:auto;border:1px dashed #abc0dd;border-radius:6px;background:#f9fbfe;overflow:hidden;cursor:pointer}.table-upload:hover,.table-upload.dragover{border-color:var(--blue);background:var(--soft)}.table-upload input{position:absolute;opacity:0;pointer-events:none}.upload-preview{display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:0}.upload-preview b{font-size:24px;line-height:1;color:var(--blue)}.upload-preview small{color:var(--muted)}.upload-preview img,.upload-preview video{width:100%;height:70px;object-fit:contain;background:#f4f6f9}.upload-name{display:block;padding:0 6px;color:var(--blue);font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.not-needed,.result-empty,.result-running{color:var(--muted)}.row-result{height:112px;white-space:normal}.result-error{display:block;max-height:58px;overflow:hidden;color:var(--red);font-size:12px}.result-preview{position:relative;width:86px;height:72px;border:1px solid var(--line);border-radius:5px;padding:0;overflow:hidden;background:#111}.result-preview video{width:100%;height:100%;object-fit:cover}.result-preview span{position:absolute;inset:auto 0 0;padding:3px;background:rgba(0,0,0,.65);color:#fff;font-size:11px}.result-links{display:flex;align-items:center;justify-content:center;gap:5px;margin-top:3px}.result-links a{color:var(--blue);text-decoration:none}.row-actions{display:flex;align-items:center;justify-content:center;gap:4px}.icon-button{width:30px;height:30px;border:0;border-radius:5px;background:#edf1f6;color:var(--muted);font-size:20px;line-height:1}.task-actions{display:flex;gap:7px;justify-content:flex-end}.danger{color:var(--red)}button:disabled{cursor:not-allowed;opacity:.5}
.storyboard-panel{background:#15171c;border-color:#2c3039;color:#edf2f7}.storyboard-panel .section-title span,.storyboard-panel label span{color:#9aa3b2}.storyboard-panel .quiet{background:#252933;color:#e8edf3}.storyboard-panel .primary{background:#08b9d0}.storyboard-heading{padding-bottom:16px}.storyboard-items{display:grid;gap:14px}.storyboard-item{border:1px solid #2c3039;border-radius:8px;background:#1b1e24;padding:14px}.storyboard-item-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}.storyboard-item-head strong{font-size:14px}.storyboard-main{display:grid;grid-template-columns:160px minmax(0,1fr);gap:14px}.storyboard-upload{min-height:152px;border:1px dashed #505a69;border-radius:7px;background:#20242c;display:grid;grid-template-rows:112px 20px;gap:5px;align-content:center;justify-items:center;cursor:pointer;overflow:hidden}.storyboard-upload:hover,.storyboard-upload.dragover{border-color:#08b9d0;background:#202e35}.storyboard-upload input{position:absolute;opacity:0;pointer-events:none}.storyboard-upload-preview{width:100%;height:112px;display:flex;flex-direction:column;align-items:center;justify-content:center;color:#778293}.storyboard-upload-preview b{font-size:28px;line-height:1;color:#08b9d0}.storyboard-upload-preview img{width:100%;height:92px;object-fit:contain;background:#101216}.storyboard-upload-preview small{font-size:11px}.storyboard-upload-name{display:block;width:92%;padding:0 5px;color:#8dddeb;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:center}.storyboard-fields label{display:grid;gap:7px}.storyboard-fields textarea{min-height:152px;background:#121419;border-color:#343b48;color:#edf2f7}.storyboard-retained{margin-top:7px;color:#8dddeb;font-size:12px}.storyboard-controls{display:flex;flex-wrap:wrap;gap:10px;margin-top:12px;align-items:end}.storyboard-controls label{display:grid;gap:6px;min-width:112px}.storyboard-controls select,.storyboard-controls input{background:#242933;border-color:#3b4351;color:#edf2f7}.storyboard-toggle{display:flex!important;align-items:center;gap:7px;min-width:auto!important;height:39px;padding:0 10px;border:1px solid #343b48;border-radius:6px;background:#20242c}.storyboard-toggle input{width:auto}.storyboard-result{min-height:42px;margin-top:12px;border-top:1px solid #2d333e;padding-top:10px;text-align:left}.storyboard-result .result-preview{width:110px;height:82px}.storyboard-actions{text-align:right;margin-top:-35px}.storyboard-actions .quiet{border:1px solid #3b4351}.storyboard-panel .progress{background:#303641}.storyboard-panel .result-error{color:#ff8585}.storyboard-panel .result-running{color:#b9c4d2}
@media(max-width:850px){body{overflow-x:hidden}.sidebar{position:static;width:auto}.sidebar-note{display:none}main{width:100%;margin:0;padding:20px;overflow:hidden}.uploads,.field-grid,.editor-grid,.detail-grid,.segments,.output-item{grid-template-columns:1fr}.wide{grid-column:auto}.task-card{grid-template-columns:1fr}.config-section summary div{grid-template-columns:1fr}.config-row,.history-row{display:block}.header-actions{flex-wrap:wrap;justify-content:flex-end}.intro,.section-title{align-items:flex-start;gap:12px}.generation-panel>.section-title{flex-direction:column}.generation-panel .section-actions{align-self:stretch;justify-content:flex-end}.generation-table-wrap{max-width:100%}.task-actions{justify-content:flex-start}.storyboard-main{grid-template-columns:1fr}.storyboard-upload{width:100%}.storyboard-controls label{min-width:calc(50% - 5px)}.storyboard-actions{margin-top:10px}.storyboard-result{min-height:0}}
.storyboard-fields label{position:relative}.storyboard-mention-menu{position:absolute;z-index:3;left:0;right:0;top:100%;display:flex;gap:6px;padding:7px;background:#252933;border:1px solid #465263;border-radius:6px;box-shadow:0 8px 22px rgba(0,0,0,.35)}.storyboard-mention-menu button{border:1px solid #465263;border-radius:5px;background:#1b1e24;color:#e8edf3;padding:6px 10px;cursor:pointer}.storyboard-mention-menu button:hover{border-color:#08b9d0;color:#8dddeb}
.field-grid label[hidden]{display:none!important}

.model-config-row{align-items:flex-start}.model-config-main{min-width:0;flex:1}.model-config-actions{display:flex;align-items:center;justify-content:flex-end;gap:7px;flex-wrap:wrap}.model-board-tags{display:flex;flex-wrap:wrap;gap:5px;margin-top:8px}.model-board-tag{display:inline-block!important;margin:0!important;padding:3px 7px;border:1px solid #4a5361;border-radius:4px;background:#20252d;color:#9da8b8!important;font-size:12px}.model-toggle.success{color:#11805a}.board-fieldset{border:1px solid var(--line);border-radius:7px;padding:12px 14px}.board-fieldset legend{padding:0 5px;color:var(--muted)}.board-checks{display:flex;flex-wrap:wrap;gap:8px 16px}.board-check{display:flex!important;align-items:center;gap:6px!important}.board-check input{width:auto}.board-fieldset small{display:block;margin-top:9px;color:var(--muted)}

.analysis-panel{background:#111318;border-color:#282d36;color:#edf2f7}.analysis-toolbar{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:22px 24px;border-bottom:1px solid #282d36}.analysis-kicker{display:block;margin-bottom:5px;color:#818997;font-size:10px;letter-spacing:.16em}.analysis-toolbar h2{font-size:18px;font-weight:650}.analysis-actions,.analysis-batch-actions{display:flex;flex-wrap:wrap;gap:8px}.analysis-panel .quiet{border:1px solid #353c47;background:#1d2128;color:#d8dee7}.analysis-panel .primary{background:#e9b72f;color:#17130a}.analysis-inputs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:20px 24px}.analysis-dropzone{position:relative;display:grid;grid-template-columns:44px minmax(0,1fr);grid-template-rows:auto auto 1fr;column-gap:12px;min-height:138px;padding:18px;border:1px dashed #4b5564;border-radius:8px;background:#181c23;cursor:pointer;transition:border-color .18s ease,background-color .18s ease,box-shadow .18s ease}.analysis-dropzone:hover,.analysis-dropzone.dragover{border-color:#f1c334;background:#24241e;box-shadow:0 0 0 2px rgba(241,195,52,.16)}.analysis-dropzone input{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}.analysis-drop-icon{grid-row:1 / span 2;display:grid;place-items:center;width:38px;height:38px;border:1px solid #5b6371;border-radius:50%;color:#f1c334;font-size:20px}.analysis-dropzone strong{align-self:end;font-size:14px}.analysis-dropzone>small{color:#87909e;font-size:11px;line-height:1.5}.analysis-file-list{grid-column:1 / -1;display:flex;flex-wrap:wrap;gap:7px;margin-top:12px}.analysis-file-chip{position:relative;display:flex;align-items:center;gap:6px;min-width:0;max-width:210px;height:38px;padding:3px 28px 3px 3px;border:1px solid #38404c;border-radius:5px;background:#20252d;color:#cbd3de}.analysis-file-chip img,.analysis-file-chip video{width:30px;height:30px;object-fit:cover;border-radius:3px;background:#0b0d10}.analysis-file-chip b{overflow:hidden;font-size:10px;font-weight:500;text-overflow:ellipsis;white-space:nowrap}.analysis-file-chip button{position:absolute;right:4px;top:8px;display:grid;place-items:center;width:22px;height:22px;padding:0;border:0;border-radius:50%;background:#303640;color:#cbd3de;cursor:pointer}.analysis-file-chip button:hover{background:#9c3c43;color:#fff}.analysis-status{margin:0 24px;padding:11px 13px;border:1px solid #303742;border-radius:6px;background:#181c22;color:#9ba5b3;font-size:12px}.analysis-status.running{color:#f0d474}.analysis-status.ok{border-color:#286451;background:#15271f;color:#76d5ae}.analysis-status.error{border-color:#74383c;background:#29191c;color:#ff9b9b}.analysis-result{padding:20px 24px}.analysis-result[hidden],.analysis-history[hidden]{display:none}.analysis-summary{display:grid;grid-template-columns:minmax(180px,300px) minmax(0,1fr);gap:16px;align-items:center;margin-bottom:16px}.analysis-summary>div{display:grid;gap:7px}.analysis-summary strong{font-size:17px}.analysis-summary span{color:#cbd2dc;font-size:13px}.analysis-summary small{color:#858e9d;font-size:11px}.analysis-contact-sheet{width:100%;max-height:260px;object-fit:contain;object-position:left center;border:1px solid #313844;background:#0a0c0f}.analysis-identity{display:grid;gap:7px;margin-bottom:14px}.analysis-identity>span,.analysis-prompt-cell label>span,.analysis-frame-cell>span{color:#a5aeba;font-size:11px}.analysis-identity textarea,.analysis-prompt-cell textarea{width:100%;border:1px solid #303844;border-radius:5px;background:#171b21;color:#e9eef5;line-height:1.55;resize:vertical}.analysis-identity textarea{padding:11px}.analysis-batch-actions{justify-content:flex-end;margin-bottom:12px}.analysis-shot-list{display:grid;gap:12px}.analysis-shot{border:1px solid #303641;border-radius:7px;background:#171b21}.analysis-shot>header{display:flex;align-items:center;gap:12px;padding:11px 13px;border-bottom:1px solid #2a313b}.analysis-shot>header strong{font-size:13px}.analysis-shot>header time{color:#8e98a6;font-size:11px}.analysis-shot-status{margin-left:auto;color:#9aa4b1;font-size:11px}.analysis-shot-status.completed{color:#73d2aa}.analysis-shot-status.failed{color:#ff9292}.analysis-shot-status.generating{color:#f2d36b}.analysis-shot-grid{display:grid;grid-template-columns:145px 145px minmax(0,1fr);gap:13px;padding:13px}.analysis-frame-cell{display:grid;align-content:start;gap:6px}.analysis-frame-button{position:relative;display:block;width:100%;height:170px;padding:0;border:1px solid #3a424e;border-radius:4px;background:#0d0f13;overflow:hidden;cursor:zoom-in}.analysis-frame-button img{display:block;width:100%;height:100%;object-fit:contain}.analysis-frame-button i,.analysis-frame-button span{position:absolute;left:0;right:0;bottom:0;padding:5px;background:rgba(8,10,13,.78);color:#fff;font-size:10px;font-style:normal}.analysis-replacement{display:grid;gap:7px}.analysis-replacement .analysis-frame-button{height:170px}.analysis-frame-empty{display:grid;place-items:center;height:170px;padding:10px;border:1px dashed #3a424e;border-radius:4px;color:#838d9b;font-size:11px;text-align:center}.analysis-download{color:#e8c54e;font-size:11px;text-decoration:none}.analysis-prompt-cell{display:grid;gap:9px;min-width:0}.analysis-prompt-cell label{display:grid;gap:5px}.analysis-prompt-cell textarea{min-height:86px;padding:8px;font-size:11px}.analysis-prompt-cell textarea.analysis-replacement-prompt{min-height:110px}.analysis-evidence{color:#7e8998;font-size:10px;line-height:1.5}.analysis-shot>footer{display:flex;justify-content:flex-end;gap:7px;padding:0 13px 13px}.analysis-shot>footer button{font-size:11px}.analysis-history{padding:0 24px 24px}.analysis-history h3{margin-bottom:9px;color:#9da6b3;font-size:12px;font-weight:500}.analysis-history-list{display:grid;gap:6px}.analysis-history-item{display:flex;justify-content:space-between;gap:15px;width:100%;padding:10px 12px;border:1px solid #2c333e;border-radius:5px;background:#171b21;color:#cbd2dd;text-align:left;cursor:pointer}.analysis-history-item:hover{border-color:#c5a42d;background:#22231d}.analysis-history-item strong{font-size:11px;font-weight:500}.analysis-history-item span{color:#8b95a3;font-size:11px}.analysis-empty{padding:30px;color:#737d8b;text-align:center}
@media(max-width:850px){.analysis-toolbar{align-items:flex-start;flex-direction:column;padding:18px 14px}.analysis-actions{width:100%;justify-content:flex-end}.analysis-inputs{grid-template-columns:1fr;padding:14px}.analysis-status{margin:0 14px}.analysis-result{padding:16px 14px}.analysis-summary{grid-template-columns:1fr}.analysis-contact-sheet{max-height:180px}.analysis-shot-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.analysis-prompt-cell{grid-column:1 / -1}.analysis-shot>header{flex-wrap:wrap;gap:6px}.analysis-shot>header time{order:3;width:100%}.analysis-shot-status{margin-left:auto}.analysis-frame-button,.analysis-replacement .analysis-frame-button,.analysis-frame-empty{height:150px}.analysis-history{padding:0 14px 18px}.analysis-history-item{align-items:flex-start;flex-direction:column;gap:4px}}

.analysis-shot-delete{flex:0 0 auto;padding:4px 8px!important;border-color:#71434a!important;color:#ff9b9b!important;background:#291a1e!important;font-size:11px}.analysis-shot-delete:hover:not(:disabled){border-color:#e06b73!important;background:#642b33!important;color:#fff!important}.analysis-shot-delete:disabled{opacity:.55;cursor:wait}
.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
body.storyboard-mode{min-height:100vh;background:#0d0e12;color:#f2f3f5;overflow-x:hidden}
body.storyboard-mode .sidebar,body.storyboard-mode main>header{display:none}
body.storyboard-mode main{width:100%;max-width:none;min-height:100vh;margin:0;padding:0;background:#0d0e12}
body.storyboard-mode #createView{min-height:100vh;position:relative}
body.storyboard-mode .intro{display:none}
body.storyboard-mode .mode-tabs{position:fixed;z-index:100;top:18px;right:24px;margin:0;padding:4px;gap:3px;border:1px solid #2c2e35;border-radius:7px;background:#17191e;box-shadow:0 10px 30px rgba(0,0,0,.28)}
body.storyboard-mode .mode{padding:7px 11px;border:0;border-radius:5px;background:transparent;color:#8d929d;font-size:12px}
body.storyboard-mode .mode:hover{background:#24262d;color:#f2f3f5}
body.storyboard-mode .mode.active{background:#2c2e35;color:#ffc928}

.storyboard-panel{position:relative;min-height:100vh;margin:0;padding:18px 24px 34px;border:0;border-radius:0;background:#0d0e12;box-shadow:none;color:#f2f3f5}
.storyboard-topbar{position:relative;z-index:3;display:flex;align-items:center;gap:9px;min-height:42px}
.storyboard-task-list{display:flex;align-items:center;gap:8px;height:38px;padding:0 22px;border:0;border-radius:7px;background:linear-gradient(105deg,#ffd41a,#ff9f1a);color:#17140b;font-weight:800;box-shadow:0 8px 22px rgba(255,177,0,.16)}
.storyboard-task-list span{font-size:18px}
.storyboard-task-list #storyboardModelLabel{max-width:230px;overflow:hidden;font-size:13px;white-space:nowrap;text-overflow:ellipsis}.storyboard-model-caret{font-size:14px!important;transition:transform .16s ease}.storyboard-task-list[aria-expanded="true"] .storyboard-model-caret{transform:rotate(180deg)}
.storyboard-model-picker{position:relative}.storyboard-model-menu{position:absolute;z-index:20;left:0;top:44px;display:grid;width:300px;padding:6px;border:1px solid #3a3e47;border-radius:7px;background:#1e2127;box-shadow:0 18px 46px rgba(0,0,0,.46)}.storyboard-model-menu[hidden]{display:none}.storyboard-model-option{display:grid;gap:2px;width:100%;padding:10px 11px;border:1px solid transparent;border-radius:5px;background:transparent;color:#e7ebf0;text-align:left}.storyboard-model-option:hover{background:#292d35}.storyboard-model-option.active{border-color:#5f541b;background:#353016}.storyboard-model-option strong{font-size:13px}.storyboard-model-option small{color:#8f97a3;font-size:11px}.storyboard-model-option.active small{color:#d7c56d}
.storyboard-idea{width:38px;height:38px;padding:0;border:1px solid #7a6112;border-radius:50%;background:#30280f;color:#ffd44b;font-weight:800;box-shadow:0 0 18px rgba(255,204,34,.16)}
.storyboard-top-actions{display:flex;gap:6px;margin-left:6px}
.storyboard-top-actions .quiet{padding:8px 11px;border:1px solid #292c33;border-radius:6px;background:#17191e;color:#aeb3bd;font-size:12px}

.storyboard-feed{display:grid;gap:42px;width:min(920px,calc(100vw - 48px));margin:58px auto 34px}
.storyboard-feed-empty{min-height:220px;display:grid;place-items:center;color:#555a64}
.storyboard-feed-card{padding:0 0 34px;border:0;border-bottom:1px solid #202228;background:transparent}
.storyboard-feed-copy{display:grid;grid-template-columns:76px minmax(0,1fr);gap:16px;align-items:start}
.storyboard-feed-refs{position:relative;width:70px;height:66px;display:flex;align-items:center;justify-content:center;color:#666b75;font-size:11px}
.storyboard-feed-ref{position:absolute;width:48px;height:58px;padding:0;border:2px solid #d8d3cb;border-radius:3px;background:#24262c;box-shadow:0 4px 12px rgba(0,0,0,.35);cursor:zoom-in;transition:transform .16s ease,z-index .16s ease}
.storyboard-feed-ref img{display:block;width:100%;height:100%;object-fit:cover}
.storyboard-feed-ref:hover,.storyboard-feed-ref:focus-visible{z-index:4;transform:translateY(-4px) rotate(0deg);outline:2px solid #ffc928;outline-offset:2px}
.storyboard-feed-refs img:nth-child(1){left:3px;transform:rotate(-8deg)}.storyboard-feed-refs img:nth-child(2){left:18px;transform:rotate(2deg)}.storyboard-feed-refs img:nth-child(3){left:30px;transform:rotate(8deg)}
.storyboard-feed-ref:nth-child(1){left:3px;transform:rotate(-8deg)}.storyboard-feed-ref:nth-child(2){left:18px;transform:rotate(2deg)}.storyboard-feed-ref:nth-child(3){left:30px;transform:rotate(8deg)}
.storyboard-feed-title{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:18px;align-items:start}
.storyboard-feed-title strong{display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:2;color:#f0f1f3;font-size:14px;line-height:1.65;font-weight:600}
.storyboard-feed-title time{padding-top:2px;color:#555a64;font-size:11px;white-space:nowrap}
.storyboard-inline-ref{display:inline-flex;align-items:center;margin:0 2px;padding:0 6px;border:1px solid #12728c;border-radius:5px;background:#132630;color:#74dcf4;font-size:12px}
.storyboard-feed-chips{display:flex;flex-wrap:wrap;gap:6px;margin-top:9px}
.storyboard-feed-chips>span,.storyboard-group-select{height:25px;padding:3px 9px;border:1px solid #2d3037;border-radius:6px;background:#191b20;color:#8f949e;font-size:11px}
.storyboard-feed-chips .status{margin:0;color:#b8bec8}.storyboard-feed-chips .status.completed,.storyboard-feed-chips .status.approved{border-color:#245e4d;background:#13251f;color:#6bd3ab}.storyboard-feed-chips .status.failed{border-color:#6a3434;background:#281717;color:#ff8f8f}
.storyboard-group-select{width:auto;padding-right:26px;color:#8ccbf7}
.storyboard-feed-media{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,230px));gap:4px;margin:16px 0 10px 76px}
.storyboard-feed-video-wrap{position:relative;min-width:0}
.storyboard-feed-video{position:relative;display:block;width:100%;height:300px;padding:0;overflow:hidden;border:0;border-radius:3px;background:#17191e}
.storyboard-feed-video video{width:100%;height:100%;object-fit:contain;background:#141519}
.storyboard-play{position:absolute;left:50%;top:50%;display:grid;place-items:center;width:52px;height:52px;padding-left:4px;border:3px solid rgba(255,255,255,.32);border-radius:50%;background:rgba(232,228,222,.72);color:#fff;font-size:22px;transform:translate(-50%,-50%);box-shadow:0 5px 18px rgba(0,0,0,.25)}
.storyboard-feed-download{position:absolute;right:8px;bottom:8px;display:grid;place-items:center;width:30px;height:30px;border-radius:5px;background:rgba(15,16,20,.84);color:#fff;text-decoration:none}
.storyboard-feed-progress,.storyboard-feed-failure{grid-column:1/-1;min-height:74px;padding:18px;border:1px solid #292c33;border-radius:6px;background:#16181d;color:#9ba1ac}.storyboard-feed-failure{color:#ff8d8d}
.storyboard-feed-actions{display:flex;gap:7px;margin-left:76px}
.storyboard-feed-actions button{display:flex;align-items:center;gap:6px;height:34px;padding:0 12px;border:0;border-radius:5px;background:#1b1d23;color:#c8ccd3;font-size:12px}
.storyboard-feed-actions button:hover{background:#272a32;color:#fff}.storyboard-feed-actions button.danger{color:#c8ccd3}.storyboard-feed-actions button.danger:hover{background:#321d20;color:#ff9999}

.storyboard-composer-wrap{position:relative;z-index:1;width:min(1060px,calc(100vw - 48px));margin:30px auto 0}
.storyboard-items{display:grid;gap:10px}
.storyboard-item{position:relative;min-height:190px;padding:17px 18px 12px;border:1px solid #292c33;border-radius:8px;background:#1a1c21;box-shadow:0 18px 48px rgba(0,0,0,.38)}
.storyboard-item-head{position:absolute;z-index:4;right:9px;top:-30px;display:flex;align-items:center;gap:8px;margin:0}
.storyboard-item-head strong{display:none}.storyboard-item-head .icon-button{width:25px;height:25px;border:1px solid #30333b;border-radius:50%;background:#17191e;color:#777d87;font-size:15px}
.storyboard-main{display:grid;grid-template-columns:82px minmax(0,1fr);gap:16px;min-height:118px}
.storyboard-upload{width:70px;min-height:102px;height:102px;margin:5px 0 0 4px;grid-template-rows:76px 18px;gap:2px;border:1px dashed #4a4e58;border-radius:4px;background:#23262d;transform:rotate(-7deg)}
.storyboard-upload:hover,.storyboard-upload.dragover{border-color:#ffca29;background:#2b2b25}
.storyboard-upload-preview{height:76px;color:#707681}.storyboard-upload-preview b{color:#7b818c;font-size:24px}.storyboard-upload-preview img{height:76px;object-fit:cover;background:#121317}.storyboard-upload-preview small{font-size:10px}.storyboard-upload-name{width:92%;color:#8e949e;font-size:9px}
.storyboard-fields{position:relative;min-width:0}.storyboard-fields label{display:block;position:relative}
.storyboard-fields textarea{width:100%;min-height:102px;max-height:260px;padding:8px 116px 8px 4px;border:0;border-radius:0;background:transparent;color:#e5e7eb;line-height:1.65;resize:none;box-shadow:none}
.storyboard-fields textarea:focus{outline:0}.storyboard-fields textarea::placeholder{color:#6c717b}
.storyboard-retained{margin:0;color:#6fc7db;font-size:11px}
.storyboard-editor-tools{position:absolute;right:0;top:4px;display:grid;grid-template-columns:repeat(2,30px);gap:5px}
.storyboard-editor-tools button{width:30px;height:30px;padding:0;border:1px solid #30333a;border-radius:5px;background:#202229;color:#7e848e;font-size:13px}
.storyboard-editor-tools button:hover,.storyboard-editor-tools button.active{border-color:#49505c;color:#e6e8ec;background:#292c33}
.storyboard-prompt-menu{position:absolute;z-index:10;right:0;bottom:36px;width:min(430px,90%);max-height:260px;overflow:auto;padding:7px;border:1px solid #333740;border-radius:6px;background:#1f2228;box-shadow:0 14px 36px rgba(0,0,0,.4)}
.storyboard-prompt-menu button{display:block;width:100%;padding:9px;border:0;border-bottom:1px solid #30333a;background:transparent;color:#bfc4cd;text-align:left;font-size:11px}.storyboard-prompt-menu button:hover{background:#292c33;color:#fff}.storyboard-prompt-menu span{display:block;padding:14px;color:#737984;text-align:center}
.storyboard-controls{display:flex;flex-wrap:wrap;gap:7px;margin:4px 52px 0 98px;align-items:center}
.storyboard-controls>[hidden]{display:none!important}
.storyboard-control,.storyboard-toggle{display:flex!important;align-items:center;gap:5px;min-width:auto!important;height:32px;padding:0 8px;border:1px solid #2e3139;border-radius:6px;background:#252830;color:#a8adb6}
.storyboard-control.quantity{border-color:#5f541b;background:#403812;color:#f3d55b}
.storyboard-control select{width:auto;min-width:70px;padding:0 18px 0 0;border:0;background:transparent;color:inherit}.storyboard-control select:focus{outline:0}.storyboard-control option{background:#202229;color:#e6e8ec}
.storyboard-custom-quantity{display:flex;align-items:center;gap:5px;height:32px;min-width:128px}.storyboard-custom-quantity[hidden]{display:none!important}.storyboard-custom-quantity input{width:62px;height:32px;padding:5px;background:#252830;border-color:#343841;color:#fff}
.storyboard-toggle{position:relative;padding:0 10px;cursor:pointer}.storyboard-toggle input{position:absolute;opacity:0;pointer-events:none}.storyboard-toggle:has(input:checked){border-color:#255e69;background:#173039;color:#75d5e7}.storyboard-toggle:first-of-type:has(input:checked){border-color:#6a4d75;background:#2e1d35;color:#df9bea}
.storyboard-result{position:absolute;right:58px;top:-28px;min-height:24px;margin:0;padding:0;border:0;color:#747a84;font-size:11px}.storyboard-result .result-preview,.storyboard-result .result-links{display:none}.storyboard-panel .progress{background:#30333a}.storyboard-panel .progress i{background:#10c5d9}
.storyboard-actions{position:absolute;right:16px;bottom:14px;margin:0}.storyboard-generate{display:grid;place-items:center;width:42px;height:42px;padding:0;border:0;border-radius:50%;background:#0bc8df;color:#fff;font-size:24px;font-weight:700;box-shadow:0 8px 20px rgba(11,200,223,.2)}.storyboard-generate:hover{background:#23d5ea}.storyboard-generate:disabled{background:#343840;color:#747a84;box-shadow:none}
.storyboard-fields .storyboard-mention-menu{left:0;right:116px;top:auto;bottom:0;display:flex;gap:6px;padding:7px;background:#252830;border-color:#414651}.storyboard-fields .storyboard-mention-menu[hidden]{display:none!important}
.storyboard-fields .storyboard-mention-menu button{background:#191b20;color:#e8edf3}.storyboard-fields .storyboard-mention-menu button:hover{border-color:#0bc8df;color:#77e7f2}
.storyboard-item.fullscreen-editor{position:fixed;z-index:100;inset:24px;display:flex;flex-direction:column;padding:28px;background:#15171b}.storyboard-item.fullscreen-editor .storyboard-main{flex:1;grid-template-columns:100px 1fr}.storyboard-item.fullscreen-editor .storyboard-fields textarea{height:calc(100vh - 170px);max-height:none}.storyboard-item.fullscreen-editor .storyboard-item-head{top:10px;right:10px}

body.storyboard-mode dialog{background:#17191e;color:#edf0f3;border:1px solid #2d3038}body.storyboard-mode dialog .detail-box,body.storyboard-mode dialog .output-item{border-color:#30333b;background:#1c1e24}body.storyboard-mode dialog textarea{background:#202329;border-color:#333740;color:#fff}body.storyboard-mode dialog .quiet{background:#272a31;color:#d8dbe0}

@media(max-width:850px){body.storyboard-mode .mode-tabs{position:static;max-width:100%;margin:12px 12px 0;overflow-x:auto}body.storyboard-mode .mode{flex:0 0 auto}.storyboard-panel{padding:12px 12px 22px}.storyboard-topbar{margin-top:8px}.storyboard-top-actions{margin-left:auto}.storyboard-top-actions #generateStoryboards{display:none}.storyboard-feed{width:100%;margin:38px auto 24px;gap:28px}.storyboard-feed-copy{grid-template-columns:58px minmax(0,1fr);gap:10px}.storyboard-feed-refs{width:54px}.storyboard-feed-refs img{width:40px;height:50px}.storyboard-feed-title{grid-template-columns:1fr}.storyboard-feed-title time{display:none}.storyboard-feed-media,.storyboard-feed-actions{margin-left:0}.storyboard-feed-media{grid-template-columns:repeat(2,minmax(0,1fr))}.storyboard-feed-video{height:auto;aspect-ratio:9/14}.storyboard-feed-actions{flex-wrap:wrap}.storyboard-composer-wrap{bottom:8px;width:100%;margin-top:22px}.storyboard-item{padding:14px 12px 12px}.storyboard-main{grid-template-columns:66px minmax(0,1fr);gap:9px}.storyboard-upload{width:58px;height:90px;min-height:90px;grid-template-rows:66px 16px}.storyboard-upload-preview,.storyboard-upload-preview img{height:66px}.storyboard-fields textarea{min-height:96px;padding-right:74px}.storyboard-editor-tools{grid-template-columns:repeat(2,27px)}.storyboard-editor-tools button{width:27px;height:27px}.storyboard-controls{margin:8px 46px 0 0;gap:5px}.storyboard-control,.storyboard-toggle{height:30px;padding:0 7px}.storyboard-control select{min-width:58px;font-size:11px}.storyboard-actions{right:10px;bottom:10px}.storyboard-generate{width:38px;height:38px}.storyboard-result{right:48px}.storyboard-item.fullscreen-editor{inset:8px}.storyboard-item.fullscreen-editor .storyboard-main{grid-template-columns:1fr}.storyboard-item.fullscreen-editor .storyboard-upload{display:none}}

.storyboard-item.dragover{border-color:#0bc8df;background:#1b252b;box-shadow:0 0 0 2px rgba(11,200,223,.18),0 18px 48px rgba(0,0,0,.38)}
.storyboard-upload-preview{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:4px;overflow:visible}
.storyboard-upload-empty{display:flex;width:100%;height:100%;flex-direction:column;align-items:center;justify-content:center;cursor:pointer}
.storyboard-upload-thumb{position:relative;display:block;width:58px;height:76px;flex:0 0 58px}
.storyboard-upload-image{display:block;width:58px;height:76px;padding:0;border:1px solid #d8d3cb;border-radius:3px;background:#121317;overflow:hidden;cursor:zoom-in}
.storyboard-upload-image img{display:block;width:100%;height:100%;object-fit:cover}
.storyboard-upload-remove{position:absolute;z-index:2;right:-7px;top:-8px;display:grid;place-items:center;width:21px;height:21px;padding:0;border:1px solid #252830;border-radius:50%;background:#17191e;color:#edf2f7;font-size:15px;line-height:1;cursor:pointer}
.storyboard-upload-remove:hover{background:#8f343b;color:#fff}
.storyboard-upload-add{display:grid;place-items:center;width:34px;height:34px;flex:0 0 34px;padding:0;border:1px dashed #596170;border-radius:50%;background:#20242b;color:#9da6b3;font-size:22px;line-height:1;cursor:pointer}
.storyboard-upload-add:hover{border-color:#0bc8df;background:#183039;color:#77e7f2}
.storyboard-upload-preview small{flex-basis:100%;text-align:center}
.storyboard-control,.storyboard-toggle{transition:border-color .16s ease,background-color .16s ease,color .16s ease,box-shadow .16s ease}
.storyboard-control:hover,.storyboard-toggle:hover{border-color:#596170;background:#2b2f38;color:#eef2f7}
.storyboard-control:focus-within,.storyboard-toggle:focus-within{border-color:#0bc8df;box-shadow:0 0 0 2px rgba(11,200,223,.14)}
.storyboard-control select{appearance:none;cursor:pointer;background-image:linear-gradient(45deg,transparent 50%,#99a1ad 50%),linear-gradient(135deg,#99a1ad 50%,transparent 50%);background-position:calc(100% - 8px) 13px,calc(100% - 4px) 13px;background-size:4px 4px,4px 4px;background-repeat:no-repeat}
.storyboard-toggle::after{content:attr(data-state);margin-left:2px;color:#87909d;font-size:11px}
.storyboard-toggle:has(input:checked)::after{color:inherit}
.storyboard-bottom-jump{position:fixed;z-index:40;right:24px;bottom:24px;display:grid;place-items:center;width:42px;height:42px;padding:0;border:1px solid #3b424d;border-radius:50%;background:#1b2028;color:#e7edf4;font-size:22px;box-shadow:0 10px 24px rgba(0,0,0,.32);cursor:pointer;transition:transform .16s ease,background-color .16s ease}
.storyboard-bottom-jump:hover{background:#29313c;transform:translateY(2px)}
.storyboard-image-preview{position:relative;width:min(92vw,1100px);max-width:none;height:min(88vh,800px);max-height:none;padding:20px 76px;border:1px solid #343a45;border-radius:8px;background:#111318;box-shadow:0 30px 90px rgba(0,0,0,.55)}
.storyboard-image-preview::backdrop{background:rgba(5,7,10,.78);backdrop-filter:blur(3px)}
.storyboard-image-preview figure{display:grid;grid-template-rows:minmax(0,1fr) auto;width:100%;height:100%;margin:0;min-width:0;min-height:0}
.storyboard-image-preview img{display:block;width:100%;height:100%;min-height:0;object-fit:contain;background:#090a0d;cursor:zoom-in}
.storyboard-video-preview{position:relative;width:min(92vw,1100px);max-width:none;height:min(88vh,800px);max-height:none;padding:20px;border:1px solid #343a45;border-radius:8px;background:#111318;box-shadow:0 30px 90px rgba(0,0,0,.55)}
.storyboard-video-preview::backdrop{background:rgba(5,7,10,.78);backdrop-filter:blur(3px)}
.storyboard-video-preview video{display:block;width:100%;height:100%;object-fit:contain;background:#090a0d}
.storyboard-image-preview figcaption{padding-top:10px;color:#aab2bd;font-size:12px;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.storyboard-image-close{position:absolute;z-index:2;right:10px;top:10px;display:grid;place-items:center;width:36px;height:36px;padding:0;border:1px solid rgba(255,255,255,.22);border-radius:50%;background:rgba(20,22,27,.84);color:#fff;font-size:25px;line-height:1;cursor:pointer}
.storyboard-image-close:hover{background:#303640}
 .storyboard-image-prev,.storyboard-image-next{position:absolute;z-index:2;top:50%;display:grid;place-items:center;width:42px;height:64px;padding:0;border:1px solid rgba(255,255,255,.2);border-radius:7px;background:rgba(20,22,27,.84);color:#fff;font-size:42px;line-height:1;transform:translateY(-50%);cursor:pointer}
.storyboard-image-prev{left:18px}.storyboard-image-next{right:18px}.storyboard-image-prev:hover,.storyboard-image-next:hover{background:#303640;border-color:#ffc928}.storyboard-image-prev[hidden],.storyboard-image-next[hidden]{display:none}
@media(max-width:850px){.storyboard-bottom-jump{right:14px;bottom:14px}.storyboard-upload-thumb,.storyboard-upload-image{width:48px;height:64px}.storyboard-upload-thumb{flex-basis:48px}.storyboard-upload-remove{right:-6px;top:-7px;width:19px;height:19px;font-size:13px}.storyboard-upload-preview{gap:3px}.storyboard-image-preview{width:94vw;height:76vh;padding:10px 48px}.storyboard-image-close{right:6px;top:6px;width:32px;height:32px}.storyboard-image-prev,.storyboard-image-next{width:32px;height:52px;font-size:32px}.storyboard-image-prev{left:7px}.storyboard-image-next{right:7px}.storyboard-control select{background-position:calc(100% - 7px) 12px,calc(100% - 3px) 12px}}

.storyboard-item{border-radius:18px;backdrop-filter:blur(10px);transition:border-color .2s ease,box-shadow .2s ease,background-color .2s ease}
.storyboard-item.dragover{border-color:#08d8e9;background:#17252b;box-shadow:0 0 0 2px rgba(8,216,233,.32),0 0 26px rgba(8,216,233,.16),0 18px 48px rgba(0,0,0,.38);cursor:copy}
.storyboard-item.dragover::before{content:'松开即可上传参考图';position:absolute;z-index:20;inset:0;display:grid;place-items:center;border:1px solid rgba(115,242,250,.8);border-radius:17px;background:rgba(8,34,42,.58);color:#b8f8fc;font-size:13px;font-weight:600;letter-spacing:.02em;pointer-events:none}
.storyboard-upload{overflow:visible}
.storyboard-upload-preview{overflow:visible}
.storyboard-upload-thumb{transition:transform .3s cubic-bezier(.4,0,.2,1),z-index 0s .3s;transform:rotate(-7deg);z-index:1}
.storyboard-upload-thumb:nth-child(2){transform:rotate(5deg) translateX(-5px)}
.storyboard-upload-thumb:nth-child(3){transform:rotate(-2deg) translateX(-9px)}
.storyboard-upload-thumb:hover{z-index:8;transform:translateY(-7px) scale(1.18) rotate(-3deg);transition:transform .24s cubic-bezier(.4,0,.2,1),z-index 0s}
.storyboard-upload-thumb:hover .storyboard-upload-image{border-color:#fff;box-shadow:0 7px 20px rgba(0,0,0,.42),0 0 0 1px rgba(255,255,255,.28)}
.storyboard-upload-remove{width:27px;height:27px;right:-11px;top:-12px;border:1px solid #59616d;background:#1f2227;color:#fff;box-shadow:0 4px 12px rgba(0,0,0,.42),inset 0 1px 0 rgba(255,255,255,.12);font-size:0;opacity:.86;transition:transform .18s ease,background-color .18s ease,border-color .18s ease,opacity .18s ease}
.storyboard-trash-icon{position:relative;display:block;width:10px;height:10px;border:1.5px solid currentColor;border-top:0;border-radius:0 0 2px 2px}
.storyboard-trash-icon::before{content:'';position:absolute;left:-2px;top:-4px;width:12px;border-top:1.5px solid currentColor}
.storyboard-trash-icon::after{content:'';position:absolute;left:2px;top:-7px;width:4px;height:3px;border:1.5px solid currentColor;border-bottom:0;border-radius:2px 2px 0 0}
.storyboard-upload-remove:hover{border-color:#ff9b9f;background:#a3313b;transform:scale(1.1)}
.storyboard-upload-remove:hover,.storyboard-upload-remove:focus-visible{opacity:1}
@media(max-width:850px){.storyboard-item.dragover::before{font-size:12px}.storyboard-upload-remove{width:24px;height:24px;right:-9px;top:-10px}.storyboard-upload-thumb:hover{transform:translateY(-4px) scale(1.1) rotate(-3deg)}}

.storyboard-upload-preview{position:relative;display:block;width:70px;height:76px;padding:0;overflow:visible}
.storyboard-upload-preview>.storyboard-upload-thumb{position:absolute;left:4px;top:0;width:48px;height:64px;transform:scale(.78) rotate(-7deg);transform-origin:left top;transition:left .22s ease,transform .22s cubic-bezier(.4,0,.2,1),z-index 0s .22s}
.storyboard-upload-preview>.storyboard-upload-thumb:nth-child(2){left:16px;transform:scale(.78) rotate(5deg)}
.storyboard-upload-preview>.storyboard-upload-thumb:nth-child(3){left:28px;transform:scale(.78) rotate(-2deg)}
.storyboard-upload-preview>.storyboard-upload-thumb .storyboard-upload-image{width:48px;height:64px}
.storyboard-upload-preview:hover{z-index:30}
.storyboard-upload-preview:hover>.storyboard-upload-thumb{left:0;transform:translateY(-5px) scale(1) rotate(-5deg);transition:left .22s ease,transform .22s cubic-bezier(.4,0,.2,1),z-index 0s}
.storyboard-upload-preview:hover>.storyboard-upload-thumb:nth-child(2){left:52px;transform:translateY(-5px) scale(1) rotate(3deg)}
.storyboard-upload-preview:hover>.storyboard-upload-thumb:nth-child(3){left:104px;transform:translateY(-5px) scale(1) rotate(-1deg)}
.storyboard-upload-preview>.storyboard-upload-thumb:hover{z-index:8;transform:translateY(-8px) scale(1.08) rotate(-2deg)}
.storyboard-upload-preview>small{position:absolute;left:0;right:0;bottom:0;text-align:center;pointer-events:none}

.storyboard-fields .storyboard-mention-menu{left:4px;right:auto;bottom:8px;display:grid;grid-template-columns:repeat(3,minmax(0,118px));gap:5px;max-width:calc(100% - 124px);padding:6px;border-radius:7px;background:#20242b;box-shadow:0 12px 30px rgba(0,0,0,.45)}
.storyboard-fields .storyboard-mention-menu button{display:flex;align-items:center;gap:7px;min-width:0;height:46px;padding:4px 6px;border-radius:6px;text-align:left}
.storyboard-fields .storyboard-mention-menu button img,.storyboard-mention-fallback{display:grid;place-items:center;width:34px;height:36px;flex:0 0 34px;border:1px solid #596271;border-radius:4px;background:#101317;object-fit:cover;color:#c8d0da;font-size:10px}
.storyboard-fields .storyboard-mention-menu button>span:last-child{display:grid;gap:1px;min-width:0}
.storyboard-fields .storyboard-mention-menu button b{font-size:12px;font-weight:600;color:#eef3f7}
.storyboard-fields .storyboard-mention-menu button small{display:block;overflow:hidden;color:#89929e;font-size:9px;white-space:nowrap;text-overflow:ellipsis}

.storyboard-prompt-inline-assets{position:absolute;z-index:2;left:5px;top:5px;display:flex;align-items:center;gap:4px;max-width:calc(100% - 122px);pointer-events:auto}
.storyboard-prompt-inline-assets[hidden]{display:none!important}
.storyboard-inline-mention{display:flex;align-items:center;gap:4px;height:28px;padding:2px 6px 2px 2px;border:1px solid #2d6875;border-radius:5px;background:#173039;color:#8ce8f2;box-shadow:0 3px 10px rgba(0,0,0,.2);cursor:zoom-in}
.storyboard-inline-mention:hover,.storyboard-inline-mention:focus-visible{border-color:#ffc928;outline:2px solid rgba(255,201,40,.3);outline-offset:1px}
.storyboard-inline-mention img{width:22px;height:22px;border-radius:3px;object-fit:cover;background:#0f1317}
.storyboard-inline-mention b{font-size:10px;font-weight:600}
.storyboard-fields.has-inline-assets textarea{padding-top:38px}

@media(max-width:850px){.storyboard-upload-preview:hover>.storyboard-upload-thumb:nth-child(2){left:43px}.storyboard-upload-preview:hover>.storyboard-upload-thumb:nth-child(3){left:86px}.storyboard-fields .storyboard-mention-menu{grid-template-columns:1fr;max-width:calc(100% - 76px)}.storyboard-fields .storyboard-mention-menu button{height:42px}.storyboard-prompt-inline-assets{max-width:calc(100% - 78px)}}

.storyboard-main{isolation:isolate}
.storyboard-fields{z-index:2}
.storyboard-upload-preview{z-index:1}
.storyboard-upload-preview:hover{z-index:3}
body.storyboard-scrolling .storyboard-fields{background:rgba(21,23,28,.98)}
body.storyboard-scrolling .storyboard-upload-preview,body.storyboard-scrolling .storyboard-upload-preview:hover{z-index:1!important}
body.storyboard-scrolling .storyboard-upload-preview:hover>.storyboard-upload-thumb,body.storyboard-scrolling .storyboard-upload-preview>.storyboard-upload-thumb{left:4px!important;transform:scale(.78) rotate(-7deg)!important}
body.storyboard-scrolling .storyboard-upload-preview>.storyboard-upload-thumb:nth-child(2),body.storyboard-scrolling .storyboard-upload-preview:hover>.storyboard-upload-thumb:nth-child(2){left:16px!important;transform:scale(.78) rotate(5deg)!important}
body.storyboard-scrolling .storyboard-upload-preview>.storyboard-upload-thumb:nth-child(3),body.storyboard-scrolling .storyboard-upload-preview:hover>.storyboard-upload-thumb:nth-child(3){left:28px!important;transform:scale(.78) rotate(-2deg)!important}

/* Unified workbench shell */
:root{--bg:#0d0e12;--panel:#17191e;--nav:#111318;--nav2:#252830;--line:#2d3139;--text:#edf0f3;--muted:#8d94a0;--blue:#ffc928;--blue2:#e0a800;--soft:#292611;--red:#ff8585;--green:#6bd3ab;--shadow:0 16px 42px rgba(0,0,0,.28)}
body{background:#0d0e12;color:var(--text)}
.sidebar{border-right:1px solid #252830;background:#111318}
.brand>b,.login-brand{background:#ffc928;color:#17140b;box-shadow:0 8px 22px rgba(255,201,40,.16)}
.brand small,.sidebar-note{color:#737b87}
.nav{color:#9da4ae}.nav.active,.nav:hover{background:#252830;color:#fff}
main{background:#0d0e12}
main>header{padding-bottom:18px;border-bottom:1px solid #252830}
.eyebrow{color:#ffc928}.server-state,.user-pill{border-color:#30343d;background:#17191e;color:#9da4ae}.server-state.ok{color:#6bd3ab}.user-pill small{color:#ffc928}
.panel{border-color:#2d3139;background:#17191e;box-shadow:var(--shadow)}
.mode-tabs{width:max-content;padding:4px;gap:3px;border:1px solid #2d3139;border-radius:7px;background:#17191e}
.mode{padding:8px 13px;border:0;border-radius:5px;background:transparent;color:#989fa9}.mode:hover{background:#252830;color:#fff}.mode.active{background:#302b14;color:#ffc928}
.intro{border-color:#2d3139;background:#15171b}.intro p,.section-title span{color:#8d94a0}.badge{background:#292611;color:#ffc928}
button.primary,.primary{border-color:#ffc928;background:#ffc928;color:#17140b;font-weight:700}button.primary:hover,.primary:hover{background:#ffd758}
button.quiet,.quiet{border-color:#343840;background:#202329;color:#cbd0d7}button.quiet:hover,.quiet:hover{border-color:#50555f;background:#292c33;color:#fff}
main input,main select,main textarea{border-color:#343840;background:#17191e;color:#edf0f3}main input::placeholder,main textarea::placeholder{color:#686f7a}
.generation-panel,.task-card,.detail-box,.output-item,.config-section,.config-row,.history-row{border-color:#2d3139;background:#17191e;color:#edf0f3}
.generation-table th{border-color:#2d3139;background:#202329;color:#aeb4bd}.generation-table td{border-color:#292d34;background:#17191e}.generation-table tbody tr:hover td{background:#1c1f25}
.table-upload,.upload{border-color:#49505b;background:#202329}.table-upload:hover,.table-upload.dragover,.upload:hover{border-color:#ffc928;background:#292611}
.upload-preview small,.upload-name,.not-needed,.result-empty,.result-running{color:#9299a4}
.icon-button{background:#292c33;color:#aeb4bd}.icon-button:hover{background:#343840;color:#fff}
.task-card .status,.account-status{border-color:#353a43;background:#202329}
.analysis-panel{box-shadow:0 18px 52px rgba(0,0,0,.3)}
.analysis-frame-loading{position:absolute;z-index:2;inset:0 0 26px;display:grid;place-items:center;background:rgba(13,14,18,.68);color:#ffd44b;font-size:11px;font-weight:700}
.analysis-prompt-cell textarea:focus,.analysis-identity textarea:focus{border-color:#8a741d;outline:0;box-shadow:0 0 0 2px rgba(255,201,40,.12)}
.toast{border:1px solid #3c414b;background:#202329;color:#edf0f3;box-shadow:0 14px 36px rgba(0,0,0,.4)}
dialog{border-color:#343840;background:#17191e;color:#edf0f3}.login-panel{border-color:#2d3139;background:#17191e;box-shadow:0 24px 70px rgba(0,0,0,.42)}

/* High-contrast controls for admin and account pages */
main input:not([type="checkbox"]):not([type="radio"]),main select,main textarea,
dialog input:not([type="checkbox"]):not([type="radio"]),dialog select,dialog textarea{
  border:1px solid #4b5563;
  background:#20242b;
  color:#f4f7fb;
  caret-color:#ffd34d;
}
main input:not([type="checkbox"]):not([type="radio"])::placeholder,main textarea::placeholder,
dialog input:not([type="checkbox"]):not([type="radio"])::placeholder,dialog textarea::placeholder{color:#aeb8c6;opacity:1}
main input:not([type="checkbox"]):not([type="radio"]):focus,main select:focus,main textarea:focus,
dialog input:not([type="checkbox"]):not([type="radio"]):focus,dialog select:focus,dialog textarea:focus{
  border-color:#ffd34d;
  outline:0;
  box-shadow:0 0 0 2px rgba(255,211,77,.18);
}
main select option,dialog select option{background:#20242b;color:#f4f7fb}
main table{background:#17191e;color:#edf0f3}
main table thead th{background:#252a32;color:#f0f3f7;border-bottom-color:#4b5563}
main table tbody td{background:#17191e;color:#e0e6ee;border-bottom-color:#343b46}
main table tbody tr:hover td{background:#20252d}
.dialog-close{
  z-index:3;
  display:grid;
  place-items:center;
  width:36px;
  height:36px;
  padding:0;
  border:1px solid #596270;
  border-radius:50%;
  background:#252a32;
  color:#f8fafc;
  font-size:24px;
  font-weight:600;
  line-height:1;
  text-shadow:0 1px 1px rgba(0,0,0,.45);
}
.dialog-close:hover,.dialog-close:focus-visible{border-color:#ff9b9b;background:#8e343e;color:#fff;outline:0;box-shadow:0 0 0 2px rgba(255,155,155,.18)}
.editor-form label{color:#f0f3f7;font-weight:600}
.editor-form label input,.editor-form label select,.editor-form label textarea{margin-top:1px;font-weight:400}
.confirm-dialog .confirm-note{color:#b8c1cd}

/* Keep storyboard creation inside the shared workbench shell. */
body.storyboard-mode .sidebar{display:block}
body.storyboard-mode main>header{display:flex}
body.storyboard-mode main{width:auto;max-width:1800px;min-height:0;margin-left:226px;padding:28px 34px 70px;background:#0d0e12}
body.storyboard-mode #createView{min-height:0;position:static}
body.storyboard-mode .intro{display:flex}
body.storyboard-mode .mode-tabs{position:static;width:max-content;margin:0 0 14px;padding:4px;box-shadow:none}
body.storyboard-mode .storyboard-panel{min-height:0;margin-bottom:16px;padding:18px 24px 34px;border:1px solid #2d3139;border-radius:10px;background:#17191e;box-shadow:var(--shadow)}
body.storyboard-mode .storyboard-feed{width:min(920px,100%);margin:42px auto 34px}
body.storyboard-mode .storyboard-composer-wrap{position:relative;bottom:auto;z-index:1;width:min(1060px,100%);margin:30px auto 0}
body.storyboard-mode .storyboard-panel .storyboard-topbar{margin-top:0}
body.storyboard-mode:has(.storyboard-item.fullscreen-editor) .storyboard-topbar{visibility:hidden;pointer-events:none}
body.storyboard-mode:has(.storyboard-item.fullscreen-editor) .storyboard-bottom-jump{display:none!important}
.storyboard-video-picker{display:flex!important;align-items:center;gap:4px;width:auto!important;margin:4px 0 0;padding:3px 7px;border:1px solid #3d7480;border-radius:5px;background:#183039;color:#b7edf2;font-size:10px;cursor:pointer}.storyboard-video-picker input{display:none}
.analysis-dropzone[hidden]{display:none!important}
.analysis-contact-sheet-wrap{display:grid;gap:7px;justify-items:start}.analysis-contact-sheet-button{position:relative;width:100%;padding:0;border:0;background:#0a0c0f;cursor:zoom-in}.analysis-contact-sheet-button>span{position:absolute;right:7px;bottom:7px;padding:4px 7px;border-radius:4px;background:rgba(0,0,0,.72);color:#fff;font-size:10px}.analysis-contact-sheet-button .analysis-contact-sheet{display:block}.analysis-frame-cell>.analysis-download{justify-self:start}
.creative-derivation{margin-top:28px;padding-top:26px;border-top:1px solid rgba(255,255,255,.1)}
.creative-heading,.creative-storyboard-toolbar{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:16px}
.creative-heading h3,.creative-storyboard-toolbar h3{margin:4px 0 6px;font-size:20px}.creative-heading p,.creative-storyboard-toolbar p{margin:0;color:var(--muted)}
.creative-actions{display:flex;flex-wrap:wrap;gap:10px;justify-content:flex-end}
.creative-master-card{padding:18px;border:1px solid rgba(123,92,255,.35);background:rgba(123,92,255,.08);border-radius:16px;margin:16px 0}
.creative-master-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.creative-master-grid div{padding:12px;background:rgba(0,0,0,.18);border-radius:10px}.creative-master-grid strong{display:block;color:#b8aaff;margin-bottom:6px}.creative-master-grid p{margin:0;white-space:pre-wrap;line-height:1.65}
.creative-variant-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:16px}.creative-variant-card{padding:18px;border:1px solid rgba(255,255,255,.1);background:rgba(255,255,255,.035);border-radius:16px}.creative-variant-card.selected{border-color:#7b5cff;box-shadow:0 0 0 1px #7b5cff inset}.creative-variant-card h4{margin:5px 0 12px;font-size:18px}.creative-variant-card dl{margin:0}.creative-variant-card dt{color:#a89cff;font-weight:700;margin-top:10px}.creative-variant-card dd{margin:4px 0 0;white-space:pre-wrap;line-height:1.55;color:#ddd}.creative-variant-card footer{margin-top:16px;display:flex;justify-content:flex-end}
.creative-storyboard-toolbar{margin-top:26px;padding-top:22px;border-top:1px solid rgba(255,255,255,.08)}.creative-rhythm{padding:12px 14px;border-left:3px solid #7b5cff;background:rgba(123,92,255,.08);margin-bottom:14px;white-space:pre-wrap}
.creative-storyboard-list{display:grid;gap:16px}.creative-shot-card{padding:18px;border:1px solid rgba(255,255,255,.1);border-radius:16px;background:rgba(0,0,0,.16)}.creative-shot-card>header{display:flex;align-items:center;gap:12px;margin-bottom:14px}.creative-shot-card>header time{color:var(--muted)}.creative-shot-grid{display:grid;grid-template-columns:minmax(220px,.75fr) minmax(0,1.6fr);gap:18px}.creative-shot-image{min-height:260px;border-radius:12px;background:#090a0f;display:flex;align-items:center;justify-content:center;overflow:hidden;position:relative}.creative-shot-image img{width:100%;height:100%;max-height:420px;object-fit:contain}.creative-shot-image button{border:0;padding:0;background:transparent;width:100%;height:100%;cursor:zoom-in}.creative-shot-empty{color:var(--muted);padding:30px;text-align:center}.creative-shot-fields textarea{width:100%;min-height:220px}.creative-motion{margin-top:12px}.creative-motion textarea{width:100%;min-height:150px}.creative-shot-card footer{display:flex;flex-wrap:wrap;gap:10px;margin-top:14px}
.creative-shot-images{min-height:260px;border-radius:12px;background:#090a0f;display:flex;align-items:stretch;justify-content:center;overflow:hidden;gap:10px;padding:10px}.creative-shot-reference,.creative-shot-generated{flex:1;min-width:0;display:flex;flex-direction:column;gap:6px;color:var(--muted);font-size:12px}.creative-shot-reference button,.creative-shot-generated button{border:0;padding:0;background:transparent;flex:1;min-height:210px;cursor:zoom-in}.creative-shot-reference img,.creative-shot-generated img{width:100%;height:100%;max-height:420px;object-fit:contain;background:#111}.creative-shot-generated .creative-shot-empty{display:flex;align-items:center;justify-content:center;flex:1}.creative-shot-fields textarea{width:100%;min-height:220px}.creative-motion{margin-top:12px}.creative-motion textarea{width:100%;min-height:150px}.creative-shot-card footer{display:flex;flex-wrap:wrap;gap:10px;margin-top:14px}
@media(max-width:900px){.creative-heading,.creative-storyboard-toolbar{display:block}.creative-actions{justify-content:flex-start;margin-top:12px}.creative-master-grid,.creative-variant-list,.creative-shot-grid{grid-template-columns:1fr}}

/* Compact, staged layout for reference video analysis 2. */
.analysis-toolbar{position:sticky;top:0;z-index:6;background:#111318}.analysis-inputs{padding-top:14px;padding-bottom:14px}.analysis-dropzone{min-height:104px;padding:14px}.analysis-result{padding-top:14px}.analysis-shot-list{gap:8px}
.analysis-shot>summary{display:flex;align-items:center;gap:12px;padding:11px 13px;list-style:none;cursor:pointer}.analysis-shot>summary::-webkit-details-marker,.creative-master-card>summary::-webkit-details-marker,.creative-variant-card>summary::-webkit-details-marker,.creative-shot-card>summary::-webkit-details-marker{display:none}.analysis-shot>summary strong{font-size:13px}.analysis-shot>summary time{color:#8e98a6;font-size:11px}.analysis-shot>summary .analysis-shot-status{margin-left:auto}.analysis-expand-hint{color:#818b99;font-size:10px}.analysis-shot[open] .analysis-expand-hint{color:#e8c54e}.analysis-shot-tools{display:flex;justify-content:flex-end;padding:0 13px}.analysis-shot[open]>summary{border-bottom:1px solid #2a313b;background:#1c2027}
.creative-derivation{margin-top:18px;padding-top:18px}.creative-flow{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:7px;margin:12px 0}.creative-flow span{position:relative;padding:9px 10px;border:1px solid #303743;border-radius:7px;background:#181c22;color:#7f8997;font-size:11px;text-align:center}.creative-flow span.done{border-color:#286451;background:#15271f;color:#76d5ae}.creative-flow span.current{border-color:#8a6d1e;background:#2a2413;color:#f0d474}
.creative-master-card{padding:0;overflow:hidden}.creative-master-card>summary{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 16px;cursor:pointer}.creative-master-card>summary span{color:#9688d8;font-size:11px}.creative-master-card[open]>summary{border-bottom:1px solid rgba(123,92,255,.28)}.creative-master-grid{padding:14px}
.creative-variant-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.creative-variant-card{padding:0;overflow:hidden}.creative-variant-card>summary{display:grid;grid-template-columns:1fr auto;gap:5px 14px;padding:14px 15px;cursor:pointer}.creative-variant-card>summary .analysis-kicker{grid-column:1;margin:0}.creative-variant-card>summary>strong{grid-column:1;font-size:15px}.creative-variant-card>summary>small{grid-column:1;color:#aeb6c2;line-height:1.45;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}.creative-variant-card>summary>b{grid-column:2;grid-row:1 / span 3;align-self:center;color:#9183da;font-size:11px}.creative-variant-card.selected>summary>b{color:#76d5ae}.creative-variant-body{padding:0 15px 15px;border-top:1px solid rgba(255,255,255,.07)}.creative-variant-card dl{margin:0}.creative-variant-card footer{margin-top:14px}
.creative-storyboard-toolbar{position:sticky;top:66px;z-index:5;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;margin-top:18px;padding:14px 0 12px;background:linear-gradient(#111318 82%,rgba(17,19,24,0));border-top:1px solid rgba(255,255,255,.08)}.creative-selected{min-width:0}.creative-selected h3{margin-top:0}.creative-selected p{max-width:760px;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;line-height:1.55}.creative-actions button:disabled{opacity:.58;cursor:wait}.creative-main-action:not(:disabled){border-color:#80691f!important;color:#f5d76b!important;background:#29240f!important}.creative-rhythm{margin-bottom:9px;padding:9px 12px;font-size:12px}
.creative-storyboard-list{gap:9px}.creative-shot-card{padding:0;overflow:hidden}.creative-shot-card>summary{display:flex;align-items:center;gap:12px;padding:13px 15px;list-style:none;cursor:pointer}.creative-shot-card>summary time{color:var(--muted);font-size:11px}.creative-shot-card>summary .creative-shot-state{margin-left:auto;color:#939dac;font-size:11px}.creative-shot-state.ready{color:#76d5ae!important}.creative-shot-state.running{color:#f0d474!important}.creative-shot-state.failed{color:#ff9b9b!important}.creative-shot-card>summary>b{color:#9183da;font-size:10px}.creative-shot-card[open]>summary{border-bottom:1px solid rgba(255,255,255,.08);background:#1b1e25}.creative-shot-body{padding:14px}.creative-shot-image{min-height:210px}.creative-shot-fields textarea{min-height:140px}.creative-motion textarea{min-height:105px}
@media(max-width:900px){.analysis-toolbar{position:static}.creative-flow{grid-template-columns:1fr 1fr}.creative-storyboard-toolbar{position:static;display:block}.creative-storyboard-toolbar .creative-actions{margin-top:10px}.creative-variant-list{grid-template-columns:1fr}.creative-shot-card>summary{flex-wrap:wrap}.creative-shot-card>summary .creative-shot-state{margin-left:0}.creative-master-grid{grid-template-columns:1fr}.creative-shot-images{display:grid;grid-template-columns:1fr 1fr}.creative-shot-reference button,.creative-shot-generated button{min-height:160px}}
/* Reference-video analysis 2 has no product identity input. */
.analysis-identity[hidden]{display:none!important}
