.workbench-timeline{margin:8px 0 26px;padding-top:0;border-top:0}
.workbench-current-task{position:relative;display:flex;align-items:center;gap:10px;height:42px;min-width:0;box-sizing:border-box;overflow:hidden;margin-bottom:8px;padding:0 12px;border:1px solid #344b3c;border-radius:9px;background:#111a17;color:#dce8df}.workbench-current-task-label{flex:none;color:#9cad9f;font-size:.68rem}.workbench-current-task>strong{min-width:0;overflow:hidden;color:#e8f1e5;font-size:.78rem;text-overflow:ellipsis;white-space:nowrap}.workbench-current-task-state{flex:none;margin-left:auto;overflow:hidden;color:#9cad9f;font-size:.68rem;text-overflow:ellipsis;white-space:nowrap}.workbench-current-task-progress{position:absolute;right:0;bottom:0;left:0;height:3px;background:transparent}.workbench-current-task-progress i{display:block;height:100%;background:#c7f36b;transition:width .3s ease}.workbench-current-task.is-running{border-color:#607e4c;background:#18291e}.workbench-current-task.is-running .workbench-current-task-state{color:#d8f39d}.workbench-current-task.is-running .workbench-current-task-progress{background:#283b2e}.workbench-current-task.is-queued .workbench-current-task-state{color:#c5d4a1}.workbench-current-task.is-complete .workbench-current-task-state{color:#c7f36b}.workbench-current-task.is-error{border-color:#784b43}.workbench-current-task.is-error .workbench-current-task-state{color:#ff9a8d}
.workbench-production-controls{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px 18px;margin:14px 0 0;padding:11px 12px;border:1px solid #2b3d35;border-radius:10px;background:#111a17}
.workbench-production-config{display:grid;grid-column:1/-1;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px 20px;min-width:0}.workbench-production-settings{display:grid;gap:8px;min-width:0}.workbench-production-options{display:flex;align-items:center;justify-content:flex-end;gap:10px;min-width:0}
.workbench-submit-segment,.workbench-production-feedback-row{grid-column:1/-1}
.workbench-production-feedback-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px;min-width:0}
.workbench-production-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px}.workbench-production-actions .workbench-submit-segment,.workbench-production-actions .workbench-run-selection-toggle{min-height:34px;margin:0;padding:6px 10px;border-radius:8px;font-size:.75rem}.workbench-production-actions .workbench-submit-segment{width:max-content;min-width:0;flex:0 0 auto}.workbench-production-actions .workbench-run-selection-toggle{flex:none}
.workbench-production-actions .workbench-submit-segment:not(:disabled){border-color:#c7f36b;background:#c7f36b;color:#19311e;box-shadow:0 0 12px #c7f36b33}
.workbench-production-actions .workbench-submit-segment:disabled{border-color:#3d5941;background:#203c2c;color:#91a978;box-shadow:none}
.workbench-timeline-actions>.workbench-timeline-production-actions-mount{display:flex;flex:1 1 auto;justify-content:flex-end;min-width:fit-content}.workbench-timeline-actions>.workbench-timeline-production-actions-mount .workbench-production-actions{margin-left:auto}
.workbench-ratio-control{display:grid;grid-template-columns:minmax(0,1fr) minmax(86px,auto);align-items:center;gap:8px;color:#dce8df;font-size:.78rem}
.workbench-control-label{color:#91a198}
.workbench-ratio-control select{height:34px;min-height:34px;padding:0 10px;border:1px solid #405b4b;border-radius:8px;background:#1a2b24;color:#e8f3e8}
.workbench-ratio-control select:disabled{opacity:.55;cursor:wait}
.workbench-generation-toggles{display:grid;gap:8px;align-content:start}.workbench-generation-toggle{display:flex;align-items:center;justify-content:space-between;gap:9px;min-height:34px;padding:6px 10px;border:1px solid #405b4b;border-radius:8px;background:#17231e;color:#dce8df;font-size:.75rem;cursor:pointer}
.workbench-generation-toggle strong{min-width:30px;color:#91a198;font-size:.68rem;font-weight:700}
.workbench-generation-toggle[aria-pressed=true]{border-color:#729c48;background:#203c2b;color:#eff8e2}
.workbench-generation-toggle[aria-pressed=true] strong{color:#c7f36b}
.workbench-generation-toggle:disabled{opacity:.5;cursor:not-allowed}
.workbench-generation-toggles.is-comfy-offline .workbench-generation-toggle:disabled{filter:saturate(.55)}
.workbench-ratio-control select:disabled{opacity:.5;cursor:not-allowed}
#workbenchRatioStatus{flex-basis:100%;color:#91a198;font-size:.68rem}
.workbench-timeline-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px;padding:10px 12px;border:1px solid #31533e;border-radius:8px;background:linear-gradient(100deg,#1d402d,#193629);color:#dce8df;font-size:.78rem}
.workbench-timeline-head span,.workbench-timeline-scale{color:#91a198;font-size:.68rem}
.workbench-timeline-track{display:flex;gap:0;min-height:76px;overflow-x:auto;padding:4px 0 8px;scrollbar-color:#405b4b #121b18;scrollbar-width:thin}.workbench-timeline-placeholder.is-populated{display:flex;place-items:initial;gap:0;align-items:stretch;padding:0;background:#2b302e}.workbench-timeline-placeholder.is-populated .workbench-timeline-segment{flex:none}
.workbench-timeline-segment{position:relative;display:flex;flex:0 0 var(--timeline-width);width:var(--timeline-width);min-width:0;max-width:none;box-sizing:border-box;flex-direction:column;justify-content:space-between;padding:8px 8px;border:1px solid #436047;border-radius:6px;background:linear-gradient(135deg,#243c30,#1a2b24);overflow:hidden}
.workbench-timeline-segment::before{position:absolute;inset:0 auto 0 0;width:3px;background:#c7f36b;content:""}
.workbench-timeline-number{color:#c7f36b;font-size:.65rem;font-weight:800}
.workbench-timeline-segment strong{overflow:hidden;color:#eef6ed;font-size:.73rem;text-overflow:ellipsis;white-space:nowrap}
.workbench-timeline-segment small{color:#a8b8ac;font-size:.65rem}
.workbench-timeline-scale-viewport{position:relative;height:32px;overflow:hidden}.workbench-timeline-scale{position:relative;height:32px;margin:0;transition:transform .05s linear}.workbench-timeline-scale::after{position:absolute;right:0;bottom:5px;left:0;height:1px;background:#496052;content:""}.workbench-timeline-tick{position:absolute;top:0;height:32px;transform:translateX(-50%);color:#91a198;font-size:.68rem;white-space:nowrap}.workbench-timeline-tick i{position:absolute;bottom:6px;left:50%;display:block;width:1px;height:4px;background:#657a6b}.workbench-timeline-tick.is-major i{height:9px;background:#91a198}.workbench-timeline-tick small{position:absolute;top:1px;left:50%;transform:translateX(-50%);font-size:inherit;line-height:1}.workbench-timeline-tick.is-start{transform:none}.workbench-timeline-tick.is-start i,.workbench-timeline-tick.is-start small{left:0;transform:none}.workbench-timeline-tick.is-end{transform:translateX(-100%)}.workbench-timeline-tick.is-end i,.workbench-timeline-tick.is-end small{right:0;left:auto;transform:none}
.workbench-timeline-placeholder{display:grid;flex:0 0 auto;min-height:76px;place-items:center;overflow:hidden;border:1px solid #394640;border-radius:7px;background:#2b302e}
.workbench-timeline-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:0 0 10px}.workbench-timeline-actions button{min-height:42px;padding:6px 11px;border:1px solid #405b4b;border-radius:8px;background:#192820;color:#dce8df;font-size:.75rem;font-weight:700}.workbench-timeline-actions .workbench-timeline-import{border-color:#709348;background:#263d2c;color:#d8f39d}.workbench-timeline-actions button:disabled{opacity:.48}.workbench-timeline-actions small{color:#91a198;font-size:.67rem}
.workbench-timeline-actions .workbench-timeline-delete-selected{border-color:#76524e;background:#2b1d1c;color:#f0aaa0}.workbench-timeline-actions .workbench-timeline-delete-selected:disabled{opacity:.42}
.workbench-timeline-actions .workbench-timeline-generate-prompts{border-color:#709348;background:#263d2c;color:#d8f39d}
.workbench-timeline-segment[role=button]{cursor:pointer;transition:border-color .15s ease,background .15s ease,box-shadow .15s ease}.workbench-timeline-segment[role=button]:focus-visible{outline:2px solid #c7f36b;outline-offset:2px}.workbench-timeline-segment.active{border-color:#c7f36b;background:linear-gradient(135deg,#304b37,#203529);box-shadow:0 0 0 1px rgba(199,243,107,.28)}
.workbench-timeline-segment.is-producing{z-index:1;isolation:isolate;border-color:#ff5a54;box-shadow:0 0 8px 2px rgba(255,45,52,.7),inset 0 0 8px rgba(255,45,52,.18)}.workbench-timeline-segment.is-producing::after{position:absolute;z-index:4;inset:0;padding:2px;border-radius:inherit;background:conic-gradient(from 0deg,transparent 0 68%,#ff343b 74%,#ffd08a 77%,#ff343b 80%,transparent 86% 100%);content:"";-webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;mask-composite:exclude;animation:timeline-electric-spin 1.15s linear infinite;pointer-events:none}.workbench-timeline-segment.is-producing::before{z-index:5;background:#ff6260}.workbench-timeline-segment.is-producing>*{position:relative;z-index:2}.workbench-timeline-segment.is-produced{border-color:#73974f;box-shadow:0 0 0 1px rgba(199,243,107,.16)}@keyframes timeline-electric-spin{to{transform:rotate(360deg)}}
.workbench-timeline-prompt{margin-top:10px;padding:12px;border:1px solid #344b3c;border-radius:10px;background:#111a17}.workbench-timeline-prompt[hidden]{display:none}.workbench-timeline-prompt-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:8px;color:#c7f36b;font-size:.8rem}.workbench-timeline-prompt-head strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.workbench-timeline-prompt-head span{flex:none;color:#91a198;font-size:.68rem}.workbench-timeline-prompt-body{max-height:260px;overflow:auto;padding:10px;border:1px solid #293e33;border-radius:8px;background:#0c1411;color:#e1ece2;font-size:.78rem;line-height:1.6;white-space:pre-wrap;overflow-wrap:anywhere;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
.workbench-timeline-linked-assets{display:flex;flex-wrap:wrap;align-items:flex-start;gap:9px;margin:0 0 10px;padding:9px 0}.workbench-timeline-linked-assets>strong{flex:0 0 100%;color:#c7f36b;font-size:.72rem}.workbench-timeline-linked-assets>small{color:#91a198;font-size:.7rem}.workbench-timeline-linked-asset{position:relative;display:flex;flex:0 0 82px;box-sizing:border-box;flex-direction:column;align-items:stretch;gap:0;overflow:hidden;border:1px solid #355344;border-radius:8px;background:#111c17}.workbench-timeline-linked-kind{position:absolute;z-index:1;top:4px;left:4px;padding:2px 5px;border-radius:4px;background:#102019d9;color:#c7f36b;font-size:.6rem;line-height:1.2}.workbench-timeline-linked-preview{display:grid;width:100%;height:74px;place-items:center;overflow:hidden;background:#0b1310}.workbench-timeline-linked-preview img{display:block;width:100%;height:100%;object-fit:cover}.workbench-timeline-linked-audio,.workbench-timeline-linked-fallback{display:grid;width:100%;height:100%;place-items:center;background:#20362a;color:#c7f36b;font-size:1.2rem}.workbench-timeline-linked-asset>strong{display:block;overflow:hidden;padding:5px 5px 6px;color:#e1ece2;font-size:.65rem;text-align:center;text-overflow:ellipsis;white-space:nowrap}
.workbench-timeline-detail-container{margin-top:10px;padding:0 12px 12px;border:1px solid #344b3c;border-radius:12px;background:#111a17}.workbench-timeline-detail-container>.workbench-review-summary{margin:0;padding:12px 0;border-top:0}.workbench-timeline-detail-container .workbench-timeline-prompt{margin:0;padding:12px 0 0;border:0;border-top:1px solid #2b3d35;border-radius:0;background:transparent}
.workbench-prompt-summary{position:relative}.workbench-prompt-summary button{margin-top:8px;padding:6px 9px;border-color:#587546;background:#203a2b;color:#c7f36b;font-size:.68rem;white-space:nowrap}.workbench-prompt-summary button:disabled{opacity:.7;cursor:wait}
.workbench-timeline-detail-container>.workbench-review-summary{display:block}.workbench-summary-toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:0 0 10px!important;border:0!important}.workbench-summary-toolbar .workbench-production-back{margin:0!important}.workbench-summary-generate{flex:none;min-height:34px;padding:6px 10px;border-color:#587546;background:#203a2b;color:#c7f36b;font-size:.72rem;white-space:nowrap}.workbench-summary-generate:disabled{opacity:.7;cursor:wait}.workbench-summary-exported{padding:0 0 10px!important;border:0!important;color:#91a49a;font-size:.72rem}.workbench-summary-exported strong{display:inline!important;margin:0!important;color:#dce8dc!important}.workbench-summary-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));padding:0!important;border-top:1px solid #2b3d35;border-right:0!important}.workbench-summary-stats>div{min-width:0;padding:10px 12px 2px;border-right:1px solid #2b3d35}.workbench-summary-stats>div:first-child{padding-left:0}.workbench-summary-stats>div:last-child{border-right:0}.workbench-summary-stats span,.workbench-summary-stats strong{display:block}.workbench-summary-stats span{color:#8fa198;font-size:.68rem}.workbench-summary-stats strong{margin-top:5px;overflow-wrap:anywhere;color:#e1eddf;font-size:.77rem}@media(max-width:620px){.workbench-summary-stats{grid-template-columns:repeat(2,minmax(0,1fr));row-gap:8px}.workbench-summary-stats>div{border-right:0}.workbench-summary-stats>div:nth-child(even){border-left:1px solid #2b3d35}}
.workbench-timeline-reference-map{display:flex;flex-wrap:wrap;align-items:center;gap:5px 12px;margin:0 0 9px;padding:8px 10px;border:1px solid #293e33;border-radius:8px;background:#0d1713;color:#9db4a6;font-size:.68rem}.workbench-timeline-reference-map>strong{flex-basis:100%;color:#c7f36b;font-size:.7rem}.workbench-timeline-reference-map b{color:#eff7e8}
.workbench-timeline-reference-item{display:inline-flex;align-items:center;gap:7px;min-width:0}.workbench-timeline-reference-thumb{width:34px;height:34px;flex:none;object-fit:cover;border:1px solid #49634c;border-radius:5px;background:#101915}.workbench-timeline-reference-name{min-width:0;overflow-wrap:anywhere}
.workbench-run-selection-toggle{min-height:42px;padding:9px 14px;border:1px solid #49634c;border-radius:10px;background:#17231d;color:#c7f36b;font-weight:700;cursor:pointer}.workbench-run-selection-toggle.is-active{border-color:#c7f36b;background:#294136;color:#eff8df}.workbench-timeline.is-run-selection-mode .workbench-timeline-segment{cursor:crosshair;transition:opacity .15s ease,filter .15s ease,background .15s ease,box-shadow .15s ease}.workbench-timeline.is-run-selection-mode .workbench-timeline-segment.is-run-unselected{opacity:.38;filter:saturate(.35);background:#111a17;box-shadow:none}.workbench-timeline.is-run-selection-mode .workbench-timeline-segment.is-run-unselected::before{background:#526258}.workbench-timeline.is-run-selection-mode .workbench-timeline-segment.is-run-selected{opacity:1;filter:none;border-color:#c7f36b;background:linear-gradient(135deg,#304b37,#203529);box-shadow:0 0 0 1px rgba(199,243,107,.35)}
.workbench-timeline-head .workbench-run-selection-toggle{flex:none;min-height:34px;padding:6px 12px;border-radius:8px}
.workbench-timeline-head .workbench-submit-segment{flex:none;width:auto;margin:0;padding:7px 14px;min-height:34px;border-radius:8px}
.workbench-timeline-segment.is-run-pending{opacity:.56;filter:grayscale(.9);border-color:#3b4840;background:#18211c;box-shadow:none}
.workbench-timeline-segment.is-run-pending::before{background:#58665b}
.workbench-timeline-segment.is-run-current{opacity:1;filter:none;border-color:#c7f36b;background:linear-gradient(90deg,rgba(166,219,90,.48) 0 var(--segment-progress,1%),rgba(20,31,24,.92) var(--segment-progress,1%) 100%),linear-gradient(135deg,#304b37,#203529);box-shadow:0 0 0 1px rgba(199,243,107,.32),0 0 12px rgba(199,243,107,.14)}
.workbench-timeline-segment.is-run-current::before{background:#c7f36b}
.workbench-timeline-segment.is-run-complete{opacity:1;filter:none;border-color:#9bcf58;background:linear-gradient(135deg,#34573b,#24452f);box-shadow:0 0 0 1px rgba(199,243,107,.38)}
.workbench-timeline-segment.is-run-complete::before{background:#c7f36b}
.workbench-timeline-duration{position:absolute;top:6px;right:15px;color:#c7f36b;font-size:.62rem;font-weight:800;line-height:1}
.workbench-timeline-segment strong{padding-right:13px}
.workbench-timeline-resize{position:absolute;z-index:8;top:0;right:0;bottom:0;width:11px;cursor:ew-resize;touch-action:none}
.workbench-timeline-resize::after{position:absolute;top:50%;right:3px;width:2px;height:18px;border-right:1px solid #c7f36b;border-left:1px solid #c7f36b;content:"";opacity:.65;transform:translateY(-50%)}
.workbench-timeline-resize:hover::after,.workbench-timeline-resize:focus-visible::after{opacity:1;box-shadow:0 0 5px rgba(199,243,107,.8)}
@media(prefers-reduced-motion:reduce){.workbench-timeline-segment.is-producing::after{animation-duration:4s}}
@media(max-width:960px){.workbench-production-controls{grid-template-columns:1fr}.workbench-production-options{justify-content:flex-start;flex-wrap:wrap}}
@media(max-width:620px){.workbench-timeline{margin:16px 0 20px}.workbench-timeline-segment{flex-basis:96px;min-width:96px;padding:7px 8px}.workbench-timeline-head{font-size:.74rem}.workbench-production-controls{align-items:stretch;gap:10px}.workbench-production-config{gap:8px}.workbench-ratio-control{grid-template-columns:minmax(0,1fr) 78px;gap:5px;font-size:.68rem}.workbench-ratio-control select{min-width:0;padding:6px 5px;font-size:.68rem}.workbench-generation-toggle{padding:6px 7px;font-size:.68rem}}
.workbench-timeline-track .workbench-timeline-segment{flex-basis:var(--timeline-width);min-width:0;max-width:none}
.workbench-split-box{margin-top:14px;padding:0;border:0;border-radius:0;background:transparent}
.workbench-split-mode{position:relative;grid-column:1/-1}
.workbench-split-mode-button{display:flex;align-items:center;justify-content:space-between;width:100%;min-height:44px;padding:9px 12px;border:1px solid #394d46;border-radius:11px;background:#0f1816;color:#eff8f2;text-align:left}
.workbench-split-mode-menu{position:absolute;z-index:5;top:calc(100% + 5px);left:0;right:0;padding:5px;border:1px solid #394d46;border-radius:11px;background:#16201e;box-shadow:0 12px 30px #0008}
.workbench-split-mode-menu[hidden]{display:none}
.workbench-split-mode-menu button{display:block;width:100%;padding:11px;border:0;background:transparent;text-align:left}
.workbench-split-mode-menu button:hover{background:#24352d}
.workbench-count-dialog{width:min(380px,calc(100vw - 36px));padding:20px;border:1px solid #40584a;border-radius:16px;background:#16201e;color:#edf5ec;box-shadow:0 18px 60px #0009}
.workbench-count-dialog::backdrop{background:#050908b8}
.workbench-count-dialog h3{margin:0 0 16px;font-size:1rem}
.workbench-count-dialog #workbenchCountField{display:grid;gap:8px}
.workbench-count-dialog #workbenchCountField[hidden]{display:none}
.workbench-count-dialog #workbenchSegmentCount{width:100%;min-height:50px;font-size:1.1rem;text-align:center}
.workbench-count-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:18px}
.workbench-count-actions button{min-width:82px}
.workbench-count-actions .primary{width:auto;margin:0;justify-content:center}
.workbench-selected-script{grid-column:1/-1;width:50%;max-width:50%;min-width:0;text-align:left}
.workbench-selected-script>span:last-child{min-width:0;overflow:hidden}
.workbench-selected-script strong,.workbench-selected-script small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media(max-width:620px){.workbench-selected-script{width:50%;max-width:50%;padding:10px;gap:8px}.workbench-selected-script .file-glyph{width:44px;height:54px}}
.workbench-script-picker{min-height:88px;background:#15201c;cursor:pointer}
.workbench-script-picker:not(.has-script){border-style:dashed}
.workbench-script-picker:not(.has-script) .workbench-script-add{display:grid;place-items:center;flex:none;width:48px;height:48px;border-radius:12px;background:#c7f36b;color:#19311e;font-size:1.8rem;font-weight:500}
.workbench-script-dialog{width:min(520px,calc(100vw - 32px));max-height:min(75vh,620px);padding:16px;border:1px solid #40584a;border-radius:16px;background:#16201e;color:#edf5ec;box-shadow:0 18px 60px #0009}
.workbench-script-dialog::backdrop{background:#050908b8}
.workbench-script-dialog-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}
.workbench-script-dialog-head strong{font-size:1rem}
.workbench-script-dialog-head button{width:38px;height:38px;padding:0;font-size:1.25rem}
.workbench-script-choices{display:grid;gap:8px;max-height:calc(75vh - 90px);overflow:auto}
.workbench-script-choice{display:flex;align-items:center;gap:12px;width:100%;padding:10px;border:1px solid #30443a;border-radius:11px;background:#101917;text-align:left}
.workbench-script-choice.active{border-color:#a3cf62;background:#1c2c22}
.workbench-script-choice .file-glyph{display:grid;place-items:center;width:48px;height:48px;flex:none;border-radius:9px;background:#29483d;color:#c7f36b;font-size:.78rem;font-weight:900}
.workbench-script-choice strong,.workbench-script-choice small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.workbench-script-choice small{margin-top:4px;color:#91a49a;font-size:.7rem}
.workbench-script-choices{grid-template-columns:repeat(3,minmax(0,1fr))}
.workbench-picker-folder,.workbench-script-choice{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:10px;min-width:0;min-height:110px;padding:10px 4px;border:0;border-radius:10px;background:transparent;color:#edf5ec;text-align:center}
.workbench-picker-folder:hover,.workbench-script-choice:hover{background:#192924}
.workbench-picker-folder strong,.workbench-script-choice strong{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.72rem}
.workbench-picker-folder .folder-glyph{width:64px;height:47px;margin-top:8px}
.workbench-script-choice .file-glyph{width:64px;height:54px;border-radius:7px;font-size:.78rem}
.workbench-script-choice.active{border:1px solid #a3cf62;background:#1c2c22}
.workbench-script-dialog-head #workbenchScriptFolderBack[hidden]{display:none}
.workbench-script-dialog{display:flex;flex-direction:column;width:min(520px,calc(100vw - 32px));height:min(560px,calc(100vh - 40px));max-height:none;min-height:min(360px,calc(100vh - 40px));overflow:hidden}
.workbench-script-dialog:not([open]){display:none}
.workbench-script-dialog-head{flex:none}
.workbench-script-dialog .workbench-script-choices{flex:1;min-height:0;max-height:none;overflow-y:auto;align-content:start}
.workbench-split-result-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin-top:10px}
.workbench-split-review{display:grid;gap:10px;width:100%}.workbench-split-review-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.workbench-split-review-head>div{display:grid;gap:3px}.workbench-split-review-head small{color:#93a89b;font-size:.7rem}.workbench-split-result-grid>.workbench-result-card{display:flex;flex-direction:column;align-items:stretch;gap:7px;min-width:0;min-height:132px;padding:10px;border:1px solid #344b3c;border-radius:11px;background:#111a17;color:#e7f0e8;text-align:left}.workbench-split-result-grid>.workbench-result-card>span{color:#c7f36b;font-size:.64rem}.workbench-split-result-grid>.workbench-result-card>strong{font-size:.78rem;line-height:1.35}.workbench-split-result-grid>.workbench-result-card>p{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;margin:0;color:#afbeb5;font-size:.68rem;line-height:1.4}.workbench-split-result-grid>.workbench-result-card>small{margin-top:auto;color:#a6c78a;font-size:.65rem}
.workbench-character-summary{margin-top:0;padding:0;border:0;border-radius:0;background:transparent}.workbench-character-summary>strong{display:block;margin-bottom:9px;color:#c7f36b;font-size:.8rem}.workbench-character-grid,.workbench-scene-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:8px}.workbench-scene-grid{margin-top:8px}.workbench-character-summary article{min-width:0;padding:10px;border:0;border-radius:8px;background:#101a16}.workbench-character-summary em,.workbench-character-summary b,.workbench-character-summary span,.workbench-character-summary small{display:block}.workbench-character-summary em{color:#85a577;font-size:.59rem;font-style:normal;font-weight:800;letter-spacing:.08em}.workbench-character-summary b{margin-top:4px;color:#edf7e8;font-size:.78rem}.workbench-character-summary span{margin-top:3px;color:#b8df8a;font-size:.68rem}.workbench-character-summary small{margin-top:5px;color:#9cafa4;font-size:.67rem;line-height:1.4}
.workbench-character-summary button{width:100%;margin-top:9px;padding:7px 8px;border-color:#527844;background:#203d29;color:#d9f7b0;font-size:.68rem}
.workbench-character-summary .workbench-scene-title{margin-top:14px}
.workbench-subject-image-slot.empty-slot{width:112px;max-width:112px;margin:0;padding:0;border:0;border-color:transparent;border-radius:10px;background:#15251d;outline:none;box-shadow:none;cursor:pointer;transition:background .15s ease}.workbench-subject-image-slot.empty-slot:hover,.workbench-subject-image-slot.empty-slot:focus,.workbench-subject-image-slot.empty-slot:focus-visible{border:0;border-color:transparent;outline:none;box-shadow:none;background:#1b3024}.workbench-subject-image-slot.empty-slot span{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px}.workbench-subject-image-slot.empty-slot b{font-size:2rem;font-weight:400;line-height:1}.workbench-subject-image-slot.empty-slot small{color:#b8d495;font-size:.7rem;font-weight:700;line-height:1.2}@media(max-width:600px){.workbench-subject-image-slot.empty-slot{width:96px;max-width:96px}}
.workbench-subject-card>button:not(.empty-slot){display:inline-flex;align-items:center;gap:10px;width:max-content;max-width:calc(100% - 380px);margin:0;padding:6px 0;border:0!important;border-radius:0;background:transparent!important;box-shadow:none;color:#edf7e8!important;font-size:1rem;font-weight:800;line-height:1.35;text-align:left;white-space:normal}.workbench-subject-card>button:not(.empty-slot)::before{content:"";display:block;flex:0 0 3px;width:3px;height:22px;border-radius:3px;background:#c7f36b}.workbench-subject-card>button:not(.empty-slot):hover{color:#c7f36b!important}@media(max-width:600px){.workbench-subject-card>button:not(.empty-slot){max-width:calc(100% - 312px);font-size:.94rem}}
.workbench-next[data-show-split-segments]{display:none!important}
.workbench-subject-card,.workbench-subject-card.has-bound-assets{align-items:center!important}.workbench-character-summary .workbench-subject-card,.workbench-character-summary .workbench-subject-card.has-bound-assets{border:0!important;outline:0!important;box-shadow:none!important}.workbench-subject-card>button:not(.empty-slot){align-self:center!important;margin-top:0!important;transform:none!important}.workbench-subject-preview.subject-image-slots{align-self:center!important}.workbench-subject-preview.empty{border:0!important;outline:0!important;box-shadow:none!important}
.workbench-character-grid .workbench-subject-card:not(.has-bound-assets)>button:not(.empty-slot),.workbench-scene-grid .workbench-subject-card:not(.has-bound-assets)>button:not(.empty-slot){position:relative!important;inset:auto!important;align-self:center!important;margin:0!important;transform:none!important}
.workbench-split-result-grid article{display:flex;flex-direction:column;gap:7px;min-width:0;height:480px;box-sizing:border-box;padding:10px;border:1px solid #344b3c;border-radius:11px;background:#111a17;box-shadow:inset 3px 0 0 #779b4e;overflow:hidden}
.workbench-result-card-head{display:flex;align-items:center;justify-content:space-between;gap:6px}
.workbench-result-card-head>span{display:grid;place-items:center;width:26px;height:26px;border-radius:8px;background:#294136;color:#c7f36b;font-size:.68rem;font-weight:900}
.workbench-result-card-head>small{color:#c7f36b;font-size:.64rem;white-space:nowrap}
.workbench-split-result-grid article>strong{font-size:.74rem;line-height:1.35;overflow-wrap:anywhere}
.workbench-split-result-grid article>p{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;margin:0;color:#afbeb5;font-size:.68rem;line-height:1.4;overflow-wrap:anywhere}
.workbench-result-dialogue{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;margin-top:auto;padding-top:6px;border-top:1px solid #293a31;color:#8fa49a;font-size:.62rem;line-height:1.4;overflow-wrap:anywhere}
.workbench-result-card{cursor:pointer;transition:border-color .16s ease,background-color .16s ease,transform .16s ease}
.workbench-result-card:hover,.workbench-result-card:focus-visible{outline:none;border-color:#a3cf62;background:#192820;transform:translateY(-2px)}
.workbench-split-result-grid{align-items:start}
.workbench-result-card.editing{grid-column:span 1;cursor:default;transform:none}
.workbench-result-dramatic,.workbench-result-visual,.workbench-result-opening,.workbench-result-timeline,.workbench-result-ending,.workbench-result-sound,.workbench-result-prompt-status{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;margin:0;color:#b8c7bd;font-size:.64rem;line-height:1.35;overflow-wrap:anywhere}
.workbench-result-dramatic{-webkit-line-clamp:3;padding-top:5px;border-top:1px solid #293a31;color:#c7d9bb}
.workbench-result-visual,.workbench-result-opening,.workbench-result-timeline,.workbench-result-ending,.workbench-result-sound{color:#a7b9ae}
.workbench-result-prompt-status{margin-top:auto;padding-top:5px;border-top:1px solid #293a31;color:#c7f36b}
.workbench-prompt-output{display:grid;gap:9px;margin:18px 0 22px;padding:13px 0;border-top:1px solid #344b3c;border-bottom:1px solid #344b3c}
.workbench-prompt-output-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
.workbench-prompt-output-head strong{color:#c7f36b;font-size:.95rem}
.workbench-prompt-output-head button{padding:9px 13px;border:1px solid #547047;border-radius:9px;background:#223629;color:#d7f5a0;font-size:.78rem}
.workbench-prompt-output-head button:disabled{opacity:.65}
.workbench-prompt-output textarea{width:100%;box-sizing:border-box;min-height:220px;padding:12px;border:1px solid #344b3c;border-radius:10px;background:#0d1513;color:#dce8df;font: .76rem/1.55 ui-monospace,SFMono-Regular,Consolas,monospace;resize:vertical}
.workbench-prompt-output small{color:#91a49a;font-size:.72rem;line-height:1.45}
.workbench-ai-requirements-label{margin-top:4px;color:#c7f36b;font-size:.82rem;font-weight:700}
.workbench-prompt-output .workbench-ai-requirements{min-height:88px;font:inherit;font-size:.86rem;resize:vertical}
.workbench-prompt-output .workbench-ai-requirements-hint{margin-top:-4px}
.workbench-segment-video{display:grid;gap:10px;margin:18px 0 8px;padding:13px;border:1px solid #344b3c;border-radius:11px;background:#111a17}
.workbench-segment-video-head{display:flex;align-items:center;justify-content:space-between;gap:10px;color:#c7f36b;font-size:.88rem}
.workbench-segment-video-head span{color:#91a198;font-size:.7rem}
.workbench-segment-video-head button{flex:none;padding:6px 9px;border:1px solid #547047;border-radius:8px;background:#223629;color:#d7f5a0;font-size:.7rem}
.workbench-segment-video video{display:block;width:100%;max-height:360px;border-radius:8px;background:#080d0b;object-fit:contain}
.workbench-segment-video-empty{display:grid;min-height:120px;place-items:center;padding:16px;border:1px dashed #405b4b;border-radius:8px;color:#91a198;font-size:.76rem;text-align:center;line-height:1.5}
.workbench-segment-video-picker{display:flex;align-items:center;gap:10px;color:#c6d3c9;font-size:.75rem}
.workbench-segment-video-picker select{flex:1;min-width:0;min-height:38px;padding:7px 9px;border:1px solid #344b3c;border-radius:8px;background:#0d1513;color:#e5eee7}
.workbench-segment-video-picker select:disabled{opacity:.55}
.workbench-segment-video-status{min-height:1em;color:#91a49a;font-size:.7rem}
.workbench-duration-control{display:flex;align-items:center;gap:6px;margin-left:auto;color:#a7b9ae;font-size:.76rem;font-weight:700;white-space:nowrap}
.workbench-duration-control select{width:42px;height:36px;box-sizing:border-box;padding:4px 2px;border:1px solid #3b5546;border-radius:8px;background:#0f1816;color:#eef6ed;font:inherit;text-align:center;appearance:auto}
.workbench-duration-control span{color:#91a49a;font-weight:500}
.workbench-prompt-output-head{justify-content:flex-start}
.workbench-prompt-output-head>button{flex:none}
.workbench-segment-detail[hidden]{display:none}
.workbench-segment-detail{position:fixed;z-index:19;inset:0;overflow:auto;box-sizing:border-box;padding:calc(env(safe-area-inset-top) + 18px) max(16px,calc((100vw - 900px)/2)) calc(100px + env(safe-area-inset-bottom));background:#111a17;color:#eef6ed}
.workbench-segment-detail-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px}
.workbench-segment-detail-head>button{flex:none;padding:9px 13px;border:1px solid #3b5546;border-radius:10px;background:#1a2922;color:#eef6ed}
.workbench-segment-detail-save{margin-left:auto;display:flex;align-items:center;justify-content:flex-end;gap:10px}
.workbench-segment-detail-save button{flex:none;min-height:42px;padding:9px 18px;border:0;border-radius:10px;background:#c7f36b;color:#19311e;font-weight:800}
.workbench-segment-detail-save span{color:#a9d277;font-size:.8rem;white-space:nowrap}
.workbench-segment-detail-head span,.workbench-segment-detail-note{color:#a7b9ae;font-size:.8rem}
.workbench-segment-detail h2{margin:0;font-size:1.35rem}
.workbench-split-file{display:flex;align-items:center;gap:12px;width:min(100%,520px);margin:10px 0 0;padding:13px 15px;border:1px solid #344b3c;border-radius:12px;background:#15221c;color:#eef6ed;text-align:left;cursor:pointer}
.workbench-split-file:hover,.workbench-split-file:focus-visible{outline:none;border-color:#a3cf62;background:#192820}
.workbench-split-file-icon{display:grid;place-items:center;flex:none;width:42px;height:48px;border-radius:8px;background:#294136;color:#c7f36b;font-size:1rem;font-weight:900;box-shadow:inset 0 -3px 0 #203329}
.workbench-split-file-copy{display:grid;gap:4px;min-width:0;flex:1}
.workbench-split-file-copy strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.84rem}
.workbench-split-file-copy small,.workbench-split-file-open{color:#a7b9ae;font-size:.72rem}
.workbench-split-file-open{flex:none;color:#c7f36b}
.workbench-document-head{justify-content:flex-start}
.workbench-document-head>.workbench-export-actions{display:flex;align-items:center;gap:8px;margin-left:auto}
.workbench-export-warning{margin:0 0 12px;color:#ffc48d;font-size:.82rem}
.workbench-document-head .workbench-export-production{grid-column:auto;justify-self:auto;align-self:center;flex:none;margin:0;white-space:nowrap}
.workbench-view-exported-production{flex:none;padding:9px 13px;border:1px solid #3b5546;border-radius:10px;background:#1a2922;color:#eef6ed;white-space:nowrap}
.workbench-document-title{display:flex;align-items:center;gap:13px;margin:0 0 22px;padding:17px;border:1px solid #2d4337;border-radius:12px;background:#15221c}
.workbench-document-title h2{overflow-wrap:anywhere}
.workbench-document-title p{margin:5px 0 0}
.workbench-document-subject-lists{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;max-width:900px;margin:0 auto 14px}
.workbench-document-subject-list{padding:13px;border:1px solid #2d4337;border-radius:10px;background:#14201a}
.workbench-document-subject-list>strong{display:block;margin-bottom:9px;color:#c7f36b;font-size:.8rem}
.workbench-document-subject-list>div{display:flex;flex-wrap:wrap;gap:7px}
.workbench-document-subject-list span{padding:4px 8px;border:1px solid #38533f;border-radius:999px;background:#19291f;color:#d5e5d9;font-size:.78rem}
.workbench-document-content{display:grid;gap:14px;max-width:900px;margin:0 auto}
.workbench-document-segment{padding:17px;border:1px solid #2b4034;border-radius:12px;background:#14201a;box-shadow:inset 3px 0 0 #779b4e}
.workbench-document-segment>header{display:flex;align-items:center;justify-content:space-between;gap:10px;color:#a7b9ae;font-size:.78rem}
.workbench-document-segment>header span{display:grid;place-items:center;width:30px;height:30px;border-radius:8px;background:#294136;color:#c7f36b;font-weight:900}
.workbench-document-segment>header small{margin-left:auto}
.workbench-document-segment>header [data-edit-document-segment]{padding:5px 10px;border:1px solid #587747;border-radius:7px;background:#16261c;color:#c7f36b;font-size:.72rem;font-weight:800;line-height:1.1;cursor:pointer}
.workbench-document-segment>header [data-edit-document-segment]:hover{border-color:#b9ef55;background:#203621;color:#e1ff91}
.workbench-document-segment>header [data-cancel-document-edit]{padding:5px 10px;border:1px solid #3b5546;border-radius:7px;background:#16231d;color:#b8c7bc;font-size:.72rem;font-weight:800;cursor:pointer}
.workbench-document-segment>header [data-save-document-segment]{padding:6px 11px;border:0;border-radius:7px;background:#c7f36b;color:#19311e;font-size:.72rem;font-weight:900;cursor:pointer}
.workbench-document-segment.is-editing{border-color:#66894d;background:#16241c}
.workbench-document-field strong{display:flex;align-items:center;gap:8px}
.workbench-document-field strong button{padding:2px 7px;border:1px solid #466442;border-radius:5px;background:#15231b;color:#b7e96d;font-size:.65rem;font-weight:800;cursor:pointer}
.workbench-document-field.is-editing textarea{width:100%;box-sizing:border-box;min-height:72px;margin-top:8px;padding:10px 12px;border:1px solid #587747;border-radius:8px;background:#0e1814;color:#eef6ed;font:inherit;font-size:.88rem;line-height:1.6;resize:vertical}
.workbench-document-field-actions{display:flex;align-items:center;gap:8px;margin-top:8px}
.workbench-document-field-actions button{padding:5px 10px;border:1px solid #3b5546;border-radius:7px;background:#16231d;color:#c8d5ca;font-size:.72rem;font-weight:800;cursor:pointer}
.workbench-document-field-actions [data-save-document-field]{border:0;background:#c7f36b;color:#19311e}
.workbench-document-field-actions small{color:#c7f36b;font-size:.72rem}
.workbench-document-edit-status{min-height:1.2em;margin:12px 0 0;color:#c7f36b;font-size:.78rem}
.workbench-document-segment h3{margin:12px 0 8px;font-size:1.08rem;line-height:1.4;overflow-wrap:anywhere}
.workbench-document-subjects{margin:0 0 13px;color:#c7f36b;font-size:.8rem;line-height:1.5}
.workbench-document-field{padding:10px 0;border-top:1px solid #293a31}
.workbench-document-field strong{color:#c7f36b;font-size:.78rem}
.workbench-document-field p{margin:5px 0 0;color:#d6e2d9;font-size:.88rem;line-height:1.65;white-space:pre-wrap;overflow-wrap:anywhere}
@media (max-width:760px){.workbench-document-subject-lists{grid-template-columns:1fr}}
.workbench-segment-detail-form{display:grid;gap:13px;margin-top:22px}
.workbench-segment-detail-form label{display:grid;gap:6px;color:#c7f36b;font-size:.82rem;font-weight:700}
.workbench-segment-detail-form textarea,.workbench-segment-detail-form input{width:100%;box-sizing:border-box;min-height:48px;padding:12px;border:1px solid #344b3c;border-radius:10px;background:#0f1816;color:#eef6ed;font:inherit;font-size:.9rem;line-height:1.5;resize:vertical}
.workbench-segment-detail-form textarea{min-height:88px}
.workbench-split-result-grid+.workbench-next{margin-top:12px}
.workbench-result-card>.workbench-result-subjects{order:99;flex:none;margin-top:auto}
.workbench-split-result-grid article.workbench-result-card{overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;scrollbar-width:thin;scrollbar-color:#557448 #17221d}
.workbench-split-result-grid article.workbench-result-card::-webkit-scrollbar{width:4px}
.workbench-split-result-grid article.workbench-result-card::-webkit-scrollbar-thumb{border-radius:4px;background:#557448}
.workbench-result-reference-thumb{position:relative;display:grid;place-items:center;width:100%;height:100%;min-width:0;padding:0;border:0;border-radius:4px;background:transparent;overflow:hidden;cursor:zoom-in}
.workbench-result-reference-thumb .workbench-bound-thumb.compact{display:block;width:100%;height:100%;max-width:none;max-height:none;object-fit:contain}
.workbench-result-reference-thumb>b{position:absolute;right:1px;bottom:1px;padding:1px 3px;border-radius:4px;background:rgba(7,12,10,.82);color:#e9f3df;font-size:7px;line-height:1.2;white-space:nowrap}
.workbench-reference-viewer{position:fixed;inset:0;width:min(94vw,1100px);height:min(92vh,900px);max-width:none;max-height:none;margin:auto;padding:0;overflow:hidden;border:1px solid #3b5546;border-radius:16px;background:#0e1512;color:#edf6e9}
.workbench-reference-viewer::backdrop{background:rgba(0,0,0,.88)}
.workbench-reference-viewer-shell{display:grid;grid-template-rows:auto minmax(0,1fr) auto;width:100%;height:100%;min-height:0}
.workbench-reference-viewer header,.workbench-reference-viewer footer{display:flex;align-items:center;justify-content:center;min-height:42px;padding:7px 12px;color:#d7e4d7;font-size:.82rem}
.workbench-reference-viewer header{justify-content:space-between;border-bottom:1px solid #263a30}
.workbench-reference-viewer header button{width:36px;height:36px;padding:0;border:0;background:transparent;color:#e8f2e6;font-size:1.6rem;line-height:1}
.workbench-reference-viewer-stage{display:grid;grid-template-columns:42px minmax(0,1fr) 42px;align-items:center;gap:8px;min-height:0;padding:10px}
.workbench-reference-viewer-stage>button{width:40px;height:48px;padding:0;border:1px solid #3b5546;border-radius:9px;background:#18251e;color:#d8f09f;font-size:1.8rem;line-height:1}
.workbench-reference-viewer-stage>button:disabled{visibility:hidden}
.workbench-reference-viewer-image{display:grid;place-items:center;width:100%;height:100%;min-width:0;min-height:0;overflow:hidden;touch-action:pan-x pan-y;-webkit-user-select:none;user-select:none}
.workbench-reference-viewer-image img{display:block;max-width:100%;max-height:100%;object-fit:contain;pointer-events:none}
.workbench-reference-viewer footer{border-top:1px solid #263a30;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media(max-width:620px){.workbench-reference-viewer{inset:0;width:100vw;height:100dvh;border:0;border-radius:0}.workbench-reference-viewer-stage{grid-template-columns:34px minmax(0,1fr) 34px;gap:4px;padding:6px}.workbench-reference-viewer-stage>button{width:32px;height:42px}.workbench-reference-viewer header,.workbench-reference-viewer footer{min-height:44px}}
@media(max-width:620px){.workbench-split-result-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.workbench-split-result-grid article{height:432px;gap:6px;padding:7px;border-radius:9px}.workbench-split-result-grid article>p{-webkit-line-clamp:3;font-size:.62rem}.workbench-split-result-grid article>strong{font-size:.66rem}.workbench-result-dialogue{-webkit-line-clamp:2;font-size:.58rem}.workbench-segment-detail-head>span{font-size:.68rem}.workbench-segment-detail-save{gap:6px}.workbench-segment-detail-save button{padding:8px 11px}.workbench-segment-detail-save span{display:none}.workbench-segment-detail h2{font-size:1.15rem}.workbench-prompt-output-head{gap:8px}.workbench-prompt-output-head strong{margin-right:auto}.workbench-duration-control{margin-left:0}.workbench-duration-control select{width:42px;height:38px;padding:4px 1px}.workbench-prompt-output-head>button{padding:8px 9px;font-size:.7rem}}
@media(max-width:620px){.workbench-result-dramatic,.workbench-result-visual,.workbench-result-opening,.workbench-result-timeline,.workbench-result-ending,.workbench-result-sound,.workbench-result-prompt-status{font-size:.57rem;-webkit-line-clamp:2}}
#workbenchSplitResult{grid-column:1/-1;width:100%;min-width:0}
#workbenchSplitResult>.workbench-success{width:100%;box-sizing:border-box}
.workbench-split-chat-result{display:flex;align-items:center;justify-content:space-between;gap:12px;width:min(100%,540px);box-sizing:border-box;padding:9px 11px;border:1px solid #496744;border-radius:10px;background:#193023;color:#e6f3df;cursor:pointer}.workbench-split-chat-result:hover,.workbench-split-chat-result:focus-visible{outline:none;border-color:#b8f45a;background:#203b2a}.workbench-split-chat-result-copy{display:grid;gap:2px;min-width:0}.workbench-split-chat-result-copy>span{color:#c7f36b;font-size:.62rem;font-weight:800}.workbench-split-chat-result-copy>strong{font-size:.76rem}.workbench-split-chat-result-copy>small{color:#a9bba9;font-size:.62rem}.workbench-split-chat-result-arrow{flex:none;color:#c7f36b;font-size:1.45rem;line-height:1}
.workbench-split-progress{display:grid;gap:3px;box-sizing:border-box;padding:5px 7px}
#workbenchSection #workbenchSplitChatMessages{position:relative;z-index:0;display:flex;flex:1 1 auto;width:100%;min-height:0;max-height:none;justify-content:flex-start;overflow-x:hidden;overflow-y:auto;transform:none;padding:12px 0;background:transparent;touch-action:pan-y;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
#workbenchSection #workbenchSplitChatMessages:has(#workbenchSplitResult:not(:empty)){max-height:none}
.workbench-progress-copy{display:flex;align-items:center;justify-content:space-between;gap:7px;min-width:0;font-size:.61rem}
.workbench-progress-message{min-width:0;overflow-wrap:anywhere}
.workbench-progress-percent{flex:none;font-size:.64rem;font-variant-numeric:tabular-nums;font-weight:800;color:#e4ffc1}
.workbench-progress-track{height:3px;overflow:hidden;border-radius:999px;background:#0e1713;box-shadow:inset 0 0 0 1px #38513f}
.workbench-progress-fill{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#87bd48,#c7f36b);transition:width .35s ease}
.workbench-error{background:#472b2d;color:#ffdadd}
.workbench-result-reveal{animation:workbench-result-in .32s ease both;animation-delay:calc(var(--result-order)*140ms)}
@keyframes workbench-result-in{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}
.workbench-script-control{grid-column:1/-1;display:flex;align-items:center;gap:10px;width:50%;max-width:50%;padding:8px;border:1px solid #34483d;border-radius:13px;background:#15201c}
.workbench-script-control .workbench-selected-script{width:auto;max-width:none;min-width:0;flex:1;grid-column:auto;margin:0;padding:4px;border:0;border-radius:8px;background:transparent}
.workbench-script-control .workbench-selected-script:not(.has-script){border:0}
.workbench-script-control .workbench-split-mode{flex:0 0 142px;grid-column:auto}
.workbench-script-control .workbench-split-mode-button{min-height:40px;padding:7px 9px;font-size:.76rem;white-space:nowrap}
.workbench-script-control .workbench-split-mode-menu{left:auto;right:0}
.workbench-script-control{display:flex;flex-direction:column;align-items:stretch;gap:12px;width:100%;max-width:100%;min-height:300px;padding:16px;border:1px solid #34483d;border-radius:14px;background:#15201c}
.workbench-script-control-top{display:flex;align-items:center;gap:10px}
.workbench-script-control .workbench-selected-script{width:50%;max-width:50%;min-height:84px;flex:none;margin:0;padding:10px;border:1px solid #34483d;border-radius:11px;background:#182521}
.workbench-script-control .workbench-selected-script:not(.has-script){border-style:dashed}
.workbench-script-control .workbench-split-mode{flex:0 0 142px}
.workbench-script-control>label{margin:4px 0 -5px;color:#dce7df;font-size:.8rem;font-weight:700}
.workbench-script-control>textarea{flex:1;min-height:130px;resize:vertical}
@media(max-width:620px){.workbench-script-control{min-height:280px;gap:10px;padding:12px}.workbench-script-control-top{gap:8px}.workbench-script-control .workbench-selected-script{width:50%;max-width:50%;min-height:72px;padding:8px;gap:7px}.workbench-script-control .workbench-split-mode{flex-basis:126px}.workbench-script-control .workbench-selected-script .file-glyph{width:38px;height:44px}.workbench-script-control>textarea{min-height:140px}}
.workbench-script-control .workbench-selected-script{width:75%;max-width:75%;aspect-ratio:auto;min-height:84px;align-self:flex-start;align-items:center}
@media(max-width:620px){.workbench-script-control .workbench-selected-script{width:75%;max-width:75%;min-height:72px}}
.workbench-script-control-top{display:grid;grid-template-columns:minmax(0,3fr) minmax(52px,1fr);gap:10px;align-items:stretch}
.workbench-script-control-top>.workbench-selected-script{width:100%;max-width:none;min-height:156px;align-self:stretch}
.workbench-script-actions{display:flex;flex-direction:column;gap:8px;min-width:0}
.workbench-script-actions .workbench-split-mode{flex:1 1 0;min-width:0}
.workbench-icon-action{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;width:100%;height:100%;min-height:72px;padding:8px 4px;border:1px solid #3b5546;border-radius:11px;background:#1c3025;color:#e6f4df;text-align:center;font-size:.69rem;line-height:1.2;overflow-wrap:anywhere}
.workbench-icon-action svg{width:24px;height:24px;flex:none;fill:none;stroke:#c7f36b;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.workbench-icon-action span{max-width:100%}
.workbench-icon-chevron{position:absolute;top:5px;right:6px;color:#a9d277;font-size:.65rem}
.workbench-script-actions .workbench-split-mode-button{min-height:72px;white-space:normal}
.workbench-script-actions .workbench-split-mode-menu{left:auto;right:calc(100% + 6px);top:0;width:min(190px,60vw)}
.workbench-run-split-button{flex:1 1 0;border:0;background:#c7f36b;color:#18311e;font-weight:800}
.workbench-run-split-button svg{stroke:#18311e}
.workbench-script-control-top>.workbench-selected-script{min-height:88px}
.workbench-script-actions{gap:5px}
.workbench-icon-action,.workbench-script-actions .workbench-split-mode-button{min-height:40px;padding:5px 3px;gap:2px;font-size:.66rem}
.workbench-icon-action svg{display:none}
.workbench-icon-chevron{display:none}
@media(max-width:620px){.workbench-script-control-top{grid-template-columns:minmax(0,3fr) minmax(54px,1fr);gap:7px}.workbench-script-control-top>.workbench-selected-script{min-height:88px}.workbench-icon-action,.workbench-script-actions .workbench-split-mode-button{min-height:40px;padding:4px 2px;font-size:.58rem}.workbench-script-actions{gap:5px}}
.workbench-script-control{background:#0f1816;border:0}
#workbenchSection .workbench-step-content{background:#16201e;border-radius:0}
#workbenchSection .workbench-split-chat{display:flex;min-height:0;overflow:visible;flex-direction:column;border:0;border-radius:0;background:transparent}
#workbenchSection .workbench-script-control-top[hidden]{display:none!important}
#workbenchSection .workbench-script-control{min-height:0;gap:0;padding:0;background:transparent}
#workbenchSection .workbench-split-chat-form{gap:6px;padding:6px;border:1px solid #344b3f;border-top:1px solid #344b3f;border-radius:12px;background:#111b17}
#workbenchSection .workbench-split-chat-form textarea{border:0;border-radius:8px;background:transparent;box-shadow:none}
#workbenchSection .workbench-split-chat-form textarea:focus{outline:none}
#workbenchSection #workbenchAddScriptButton{flex:0 0 38px;width:38px;min-width:38px;height:38px;min-height:38px;border:0;border-radius:9px;background:transparent}
#workbenchSection .workbench-split-chat-form>#workbenchSplitChatSend{min-width:58px;min-height:38px;padding:7px 10px}
#workbenchSection .workbench-split-chat-form{height:auto;min-height:62px;align-items:center;padding:5px}
#workbenchSection .workbench-split-chat-form textarea{height:100%;min-height:0;max-height:none;resize:none;box-sizing:border-box}
#workbenchSection #workbenchAddScriptButton{flex-basis:44px;width:44px;min-width:44px;height:44px;min-height:44px}
#workbenchSection .workbench-split-chat-form>#workbenchSplitChatSend{min-width:60px;height:44px;min-height:44px;padding:7px 10px}
#workbenchSection .workbench-split-chat{overflow:hidden}
#workbenchSection .workbench-split-chat-form{position:relative;z-index:2;right:auto;bottom:auto;left:auto;align-self:stretch;width:auto;margin-top:0;transform:none;box-shadow:none}
#workbenchSection .workbench-split-chat-form[data-current-script]::before{content:attr(data-current-script);position:absolute;bottom:calc(100% + 7px);left:12px;max-width:calc(100% - 24px);overflow:hidden;padding:4px 8px;border:1px solid #3b5748;border-radius:999px;background:#15231d;color:#b9d695;font-size:.62rem;line-height:1.2;text-overflow:ellipsis;white-space:nowrap;box-shadow:0 5px 14px #07100daa}
#workbenchSection .workbench-split-chat-form{border-radius:999px;padding-right:7px;padding-left:10px}
#workbenchSection .workbench-split-chat-form textarea{border-radius:12px}
#workbenchSection #workbenchAddScriptButton{border-radius:50%}
#workbenchSection .workbench-split-chat-form>#workbenchSplitChatSend{border-radius:999px}
#workbenchSection .workbench-panel[data-workbench-panel="storyboard"]{padding-bottom:0}
@media(max-width:759px){#workbenchSection .workbench-split-chat-form{width:100%}}
@media(max-width:600px){#workbenchSection .workbench-split-chat-form{left:var(--workbench-base-left,0px);width:var(--workbench-base-width,100%);box-sizing:border-box}}
/* The base-panel coordinates are only useful for the former fixed composer.
   In the phone flex layout they can be stale after Safari changes its visual
   viewport, which made the form wider than the visible screen. */
@media(max-width:600px){
  #workbenchSection .workbench-split-chat-form{
    right:auto!important;
    left:auto!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    margin:0!important;
    box-sizing:border-box!important;
  }
  #workbenchSection .workbench-split-chat-compose-row{min-width:0;max-width:100%}
  #workbenchSection .workbench-split-chat-compose-row>#workbenchSplitChatInput{min-width:0!important}
}

@media(max-width:600px){
  #workbenchSection #workbenchSplitChatForm.workbench-split-chat-form{
    min-height:40px;
    padding:1px 6px;
  }
  #workbenchSection .workbench-split-chat-compose-row{min-height:34px}
  #workbenchSplitChatForm .workbench-split-chat-compose-row>#workbenchAddScriptButton{
    flex-basis:34px;
    width:34px;
    min-width:34px;
    height:34px;
    min-height:34px;
  }
  #workbenchSplitChatForm .workbench-split-chat-compose-row>#workbenchSplitChatInput{
    height:32px;
    min-height:32px;
    padding-top:5px;
    padding-bottom:5px;
  }
  #workbenchSplitChatForm .workbench-split-chat-compose-row>#workbenchSplitChatSend{
    min-width:50px;
    height:28px;
    min-height:28px;
    margin-bottom:2px;
    padding:2px 8px;
  }
}
#workbenchSplitInstructions{background:#0f1816}
.workbench-script-info{min-width:0;flex:1}
.workbench-script-reselect{flex:none;padding:7px 9px;border:1px solid #3d5947;border-radius:8px;color:#c7f36b;font-size:.64rem;white-space:nowrap}
.workbench-script-control-top{display:flex;justify-content:flex-end}
.workbench-script-actions{width:25%;min-width:150px}
.workbench-split-chat-attachments{display:flex;align-items:center;flex-wrap:wrap;gap:10px;padding:12px 12px 0}
.workbench-split-chat-attachments .workbench-script-picker{display:flex;align-items:center;gap:12px;width:min(32%,300px);max-width:300px;min-width:220px;min-height:78px;box-sizing:border-box;margin:0;padding:10px;border:1px solid #344b3c;border-radius:11px;background:#15221c;text-align:left}
.workbench-split-chat-attachments .workbench-script-picker .file-glyph{display:grid;place-items:center;flex:none;width:48px;height:56px;border-radius:8px;background:#38534a;color:#d7f49d;font-size:.9rem;font-weight:900;box-shadow:inset 0 -4px 0 rgba(0,0,0,.15)}
.workbench-split-chat-attachments .workbench-script-info{display:grid;gap:5px;overflow:hidden}
.workbench-split-chat-attachments .workbench-script-info strong,.workbench-split-chat-attachments .workbench-script-info small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.workbench-split-chat-attachments .workbench-script-info strong{color:#edf5ec;font-size:.88rem}
.workbench-split-chat-attachments .workbench-script-info small{color:#91a49a;font-size:.72rem}
.workbench-split-chat-attachments .workbench-script-reselect{margin-left:auto}
.workbench-script-attachment{display:flex;align-items:center;gap:10px;width:min(32%,300px);min-width:220px;min-height:78px;box-sizing:border-box;padding:10px;border:1px solid #344b3c;border-radius:11px;background:#15221c}
.workbench-script-attachment>.file-glyph{display:grid;place-items:center;flex:none;width:48px;height:56px;border-radius:8px;background:#38534a;color:#d7f49d;font-size:.9rem;font-weight:900;box-shadow:inset 0 -4px 0 rgba(0,0,0,.15)}
.workbench-script-attachment .workbench-script-info{display:grid;gap:5px;overflow:hidden}
.workbench-script-attachment .workbench-script-info strong,.workbench-script-attachment .workbench-script-info small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.workbench-script-attachment .workbench-script-info strong{color:#edf5ec;font-size:.84rem}
.workbench-script-attachment .workbench-script-info small{color:#91a49a;font-size:.68rem}
.workbench-script-attachment>button{flex:none;width:28px;height:28px;padding:0;border:1px solid #405b4b;border-radius:50%;background:transparent;color:#a7b9ae;font-size:1.1rem;line-height:1}
.workbench-add-script{display:flex;flex:none;flex-direction:column;align-items:center;justify-content:center;gap:2px;width:66px;height:78px;padding:5px;border:1px dashed #55714d;border-radius:11px;background:#15221c;color:#c7f36b;cursor:pointer}
.workbench-add-script>span{font-size:1.8rem;font-weight:300;line-height:1}
.workbench-add-script small{color:#b8d495;font-size:.62rem;white-space:nowrap}
#workbenchSplitChatForm>#workbenchAddScriptButton{display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;min-width:44px;min-height:44px;padding:0;border:1px solid #405b4b;border-radius:10px;background:#15221c;color:#c7f36b}
#workbenchSplitChatForm>#workbenchAddScriptButton>span{font-size:1.8rem;line-height:1}
@media(max-width:620px){.workbench-split-chat-attachments .workbench-script-picker,.workbench-script-attachment{width:min(100%,340px);min-width:0}}
#workbenchSection #workbenchAddScriptButton{border:0!important;background:transparent!important;box-shadow:none!important}
#workbenchSection .workbench-split-chat-form{height:57px;min-height:57px}
#workbenchSplitResult>#workbenchSplitProgress:not(.workbench-progress){display:flex;align-items:center;height:57px;min-height:57px;box-sizing:border-box;padding-top:0;padding-bottom:0}
.workbench-script-attachment{position:relative;display:flex;width:118px;min-width:118px;height:118px;min-height:118px;flex:0 0 118px;flex-direction:column;align-items:center;justify-content:center;gap:8px;padding:12px;border-radius:14px}
.workbench-script-attachment>.file-glyph,.workbench-script-attachment .workbench-script-info small{display:none}
.workbench-script-attachment .workbench-script-info{display:block;width:100%;flex:none;text-align:center}
.workbench-script-attachment .workbench-script-info strong{display:-webkit-box;overflow:hidden;white-space:normal;overflow-wrap:anywhere;-webkit-box-orient:vertical;-webkit-line-clamp:3;line-height:1.35;text-align:center}
.workbench-script-attachment>button{position:absolute;top:6px;right:6px}
.workbench-script-attachment{width:112px;min-width:112px;height:96px;min-height:96px;flex-basis:112px}
.workbench-script-attachment{gap:4px}
.workbench-script-attachment>.file-glyph{display:grid;width:40px;height:40px;box-sizing:border-box;border-radius:8px;font-size:.72rem}
.workbench-script-attachment .workbench-script-info strong{font-size:.72rem;line-height:1.2;-webkit-line-clamp:2}
@media(max-width:600px){.workbench-script-attachment{width:96px;min-width:96px;height:72px;min-height:72px;flex-basis:96px}.workbench-script-attachment>.file-glyph{width:30px;height:30px;font-size:.62rem}.workbench-script-attachment .workbench-script-info strong{font-size:.62rem}}
.workbench-script-attachment>button{top:-7px;right:-7px;width:18px;height:18px;min-width:18px;padding:0;border:1.5px solid #fff;border-radius:50%;background:#111;color:#fff;font:700 12px/1 Arial,sans-serif;box-shadow:0 1px 4px #0009}
.workbench-split-chat-attachments .workbench-script-picker{position:relative;padding-right:30px}
.workbench-primary-script-remove{position:absolute;top:6px;right:6px;display:grid;place-items:center;width:18px;height:18px;border:1.5px solid #fff;border-radius:50%;background:#111;color:#fff;font:700 12px/1 Arial,sans-serif;box-shadow:0 1px 4px #0009;cursor:pointer}
.workbench-script-picker.has-script .workbench-script-reselect{margin-right:18px}
.workbench-split-chat-status:empty{display:none}
.workbench-chat-typing{display:flex;align-items:center;justify-content:center;gap:9px;min-height:32px;padding:4px 0;color:#9bb4a5;font-size:.72rem;letter-spacing:.02em}
.workbench-chat-typing[hidden]{display:none}
.workbench-chat-typing-dots{display:inline-flex;align-items:center;gap:4px;height:12px}
.workbench-chat-typing-dots i{width:5px;height:5px;border-radius:50%;background:#c7f36b;opacity:.35;animation:workbench-chat-dot 1.1s ease-in-out infinite}
.workbench-chat-typing-dots i:nth-child(2){animation-delay:.16s}.workbench-chat-typing-dots i:nth-child(3){animation-delay:.32s}
@keyframes workbench-chat-dot{0%,60%,100%{transform:translateY(0);opacity:.35}30%{transform:translateY(-4px);opacity:1}}
.workbench-split-chat-message.user:has(.workbench-split-chat-message-attachments){display:grid;gap:8px}
.workbench-split-chat-message-attachments{display:flex;flex-wrap:wrap;gap:7px}
.workbench-split-chat-message-file{display:flex;align-items:center;gap:7px;max-width:230px;min-width:120px;padding:7px 9px;border:1px solid #41594b;border-radius:9px;background:#18251f}
.workbench-split-chat-message-file .file-glyph{display:grid;place-items:center;flex:none;width:28px;height:32px;border-radius:6px;background:#38534a;color:#d7f49d;font-size:.55rem;font-weight:900}
.workbench-split-chat-message-file strong{min-width:0;overflow:hidden;color:#edf5ec;font-size:.68rem;text-overflow:ellipsis;white-space:nowrap}
.workbench-split-chat-message-text{margin:0;padding:0;border:0;border-radius:0;background:transparent;color:inherit;font:inherit;line-height:inherit;white-space:pre-wrap;overflow-wrap:anywhere}
#workbenchScriptDialog.workbench-script-dialog{position:fixed;inset:auto;width:min(420px,calc(100vw - 24px));height:min(520px,calc(100dvh - 120px));min-height:min(240px,calc(100dvh - 120px));max-height:calc(100dvh - 120px);margin:0;padding:14px;box-sizing:border-box}
#workbenchScriptDialog .workbench-split-chat-attachments{display:flex;flex:none;align-items:stretch;flex-wrap:wrap;gap:8px;margin:0 0 12px;padding:0}
#workbenchScriptDialog .workbench-script-picker,#workbenchScriptDialog .workbench-script-attachment,#workbenchScriptDialog .workbench-script-slot-placeholder{position:relative;display:flex;flex:0 0 112px;width:112px;min-width:112px;height:96px;min-height:96px;box-sizing:border-box;align-items:center;justify-content:center;gap:4px;margin:0;padding:8px;border:1px solid #344b3c;border-radius:12px;background:#15221c;color:#edf5ec;text-align:center}
#workbenchScriptDialog .workbench-script-picker{padding:8px}
#workbenchScriptDialog .workbench-script-picker .file-glyph{display:grid;place-items:center;flex:none;width:36px;height:36px;border-radius:8px;background:#38534a;color:#d7f49d;font-size:.7rem;font-weight:900}
#workbenchScriptDialog .workbench-script-picker .workbench-script-info{display:block;flex:none;width:100%;min-width:0}
#workbenchScriptDialog .workbench-script-picker .workbench-script-info strong,#workbenchScriptDialog .workbench-script-attachment .workbench-script-info strong{display:-webkit-box;overflow:hidden;white-space:normal;overflow-wrap:anywhere;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-height:1.2;text-align:center;font-size:.7rem}
#workbenchScriptDialog .workbench-script-picker .workbench-script-info small,#workbenchScriptDialog .workbench-script-picker .workbench-script-reselect{display:none}
#workbenchScriptDialog .workbench-script-picker .workbench-primary-script-remove,#workbenchScriptDialog .workbench-script-attachment>button{top:-7px;right:-7px}
#workbenchScriptDialog .workbench-script-attachment>.file-glyph{display:grid;width:36px;height:36px;font-size:.68rem}
#workbenchScriptDialog .workbench-script-attachment .workbench-script-info{display:block;flex:none;width:100%;min-width:0}
#workbenchScriptDialog .workbench-script-attachment .workbench-script-info small{display:none}
#workbenchScriptDialog .workbench-script-slot-placeholder{flex-direction:column;border-style:dashed;background:transparent;color:#c7f36b;cursor:pointer}
#workbenchScriptDialog .workbench-script-slot-placeholder>span{font-size:1.8rem;font-weight:300;line-height:1}
#workbenchScriptDialog .workbench-script-slot-placeholder>small{color:#b8d495;font-size:.66rem;white-space:nowrap}
@media(max-width:600px){#workbenchScriptDialog.workbench-script-dialog{height:min(440px,calc(100dvh - 120px));min-height:min(220px,calc(100dvh - 120px))}#workbenchScriptDialog .workbench-script-picker,#workbenchScriptDialog .workbench-script-attachment,#workbenchScriptDialog .workbench-script-slot-placeholder{flex-basis:96px;width:96px;min-width:96px;height:72px;min-height:72px;padding:5px}#workbenchScriptDialog .workbench-script-picker .file-glyph,#workbenchScriptDialog .workbench-script-attachment>.file-glyph{width:28px;height:28px;font-size:.58rem}#workbenchScriptDialog .workbench-script-picker .workbench-script-info strong,#workbenchScriptDialog .workbench-script-attachment .workbench-script-info strong{font-size:.62rem}#workbenchScriptDialog .workbench-script-slot-placeholder>span{font-size:1.5rem}}
#workbenchSection #workbenchSplitChatForm.workbench-split-chat-form{display:flex;height:auto;min-height:57px;flex-direction:column;align-items:stretch;gap:0;padding:5.5px 10px;border-radius:26px}
#workbenchSplitChatForm .workbench-split-chat-attachments{display:flex;align-items:stretch;flex-wrap:wrap;gap:8px;width:100%;margin:0;padding:5px 0 8px 2px}
#workbenchSplitChatForm .workbench-split-chat-attachments[hidden]{display:none!important}
#workbenchSplitChatForm .workbench-script-picker,#workbenchSplitChatForm .workbench-script-attachment{position:relative;display:flex;flex:0 0 112px;width:112px;min-width:112px;height:96px;min-height:96px;box-sizing:border-box;flex-direction:column;align-items:center;justify-content:center;gap:4px;margin:0;padding:8px;border:1px solid #344b3c;border-radius:12px;background:#15221c;color:#edf5ec;text-align:center}
#workbenchSplitChatForm .workbench-split-chat-attachments .workbench-script-picker,#workbenchSplitChatForm .workbench-split-chat-attachments .workbench-script-attachment{top:1px}
#workbenchSplitChatForm .workbench-script-picker{padding:8px}
#workbenchSplitChatForm .workbench-script-picker .file-glyph,#workbenchSplitChatForm .workbench-script-attachment>.file-glyph{display:grid;place-items:center;flex:none;width:36px;height:36px;border-radius:8px;background:#38534a;color:#d7f49d;font-size:.7rem;font-weight:900}
#workbenchSplitChatForm .workbench-script-picker .workbench-script-info,#workbenchSplitChatForm .workbench-script-attachment .workbench-script-info{display:block;flex:none;width:100%;min-width:0}
#workbenchSplitChatForm .workbench-script-picker .workbench-script-info strong,#workbenchSplitChatForm .workbench-script-attachment .workbench-script-info strong{display:-webkit-box;overflow:hidden;white-space:normal;overflow-wrap:anywhere;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-height:1.2;text-align:center;font-size:.7rem}
#workbenchSplitChatForm .workbench-script-picker .workbench-script-info small,#workbenchSplitChatForm .workbench-script-picker .workbench-script-reselect,#workbenchSplitChatForm .workbench-script-attachment .workbench-script-info small{display:none}
#workbenchSplitChatForm .workbench-primary-script-remove,#workbenchSplitChatForm .workbench-script-attachment>button{position:absolute;top:-7px;right:-7px;display:grid;place-items:center;flex:none;width:18px;height:18px;min-width:18px;min-height:18px;box-sizing:border-box;padding:0;border:1.5px solid #fff;border-radius:50%;background:#111;color:#fff;font:700 12px/1 Arial,sans-serif;box-shadow:0 1px 4px #0009;cursor:pointer}
.workbench-primary-script-preview{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;width:100%;min-width:0;padding:0;border:0;background:transparent;color:inherit;font:inherit;cursor:pointer}
.workbench-split-chat-compose-row{display:flex;align-items:flex-end;gap:6px;width:100%;min-height:44px}
#workbenchSection .workbench-split-chat-compose-row{align-items:flex-end}
#workbenchSplitChatForm .workbench-split-chat-compose-row>#workbenchAddScriptButton{flex:0 0 44px;width:44px;min-width:44px;height:44px;min-height:44px}
#workbenchSection #workbenchAddScriptButton{display:grid;place-items:center;align-self:flex-end;margin:0;padding:0;color:#c7f36b!important}
#workbenchSplitChatForm .workbench-split-chat-compose-row>#workbenchSplitChatInput{flex:1 1 auto;width:0;height:39px;min-height:39px;max-height:none;overflow-y:hidden;align-self:flex-end;margin:0;padding:9px 8px;resize:none;box-sizing:border-box;line-height:1.4}
#workbenchSplitChatForm .workbench-split-chat-compose-row>#workbenchSplitChatSend{flex:0 0 auto;min-width:60px;height:34px;min-height:34px;align-self:flex-end;margin-bottom:5px;padding:5px 12px}
@media(max-width:600px){#workbenchSplitChatForm .workbench-script-picker,#workbenchSplitChatForm .workbench-script-attachment{flex-basis:96px;width:96px;min-width:96px;height:72px;min-height:72px;padding:5px}#workbenchSplitChatForm .workbench-script-picker .file-glyph,#workbenchSplitChatForm .workbench-script-attachment>.file-glyph{width:28px;height:28px;font-size:.58rem}#workbenchSplitChatForm .workbench-script-picker .workbench-script-info strong,#workbenchSplitChatForm .workbench-script-attachment .workbench-script-info strong{font-size:.62rem}}
.workbench-summary-delete {
  flex: none;
  min-height: 34px;
  padding: 6px 12px;
  border: 1px solid #76524e;
  border-radius: 9px;
  background: #2b1d1c;
  color: #f0aaa0;
  font-size: .72rem;
  white-space: nowrap;
}

/* Keep the two project actions at the two upper corners on both desktop and mobile. */
.workbench-timeline-detail-container .workbench-summary-toolbar {
  display: flex !important;
  width: 100% !important;
  min-width: 0;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: 12px;
}

.workbench-timeline-detail-container .workbench-summary-toolbar .workbench-summary-delete {
  margin-right: auto !important;
}

.workbench-timeline-detail-container .workbench-summary-toolbar .workbench-summary-generate {
  margin-left: auto !important;
}

/* The actions belong above the information divider, not inside its grid. */
.workbench-timeline-detail-container .workbench-review-summary {
  border-top: 0 !important;
  padding-top: 0 !important;
}

.workbench-timeline-detail-container .workbench-summary-toolbar {
  padding: 0 0 14px !important;
  border: 0 !important;
}

.workbench-timeline-detail-container .workbench-summary-exported {
  padding: 14px 0 10px !important;
  border-top: 1px solid #2b3d35 !important;
}

/* The summary itself used to carry a top rule; remove that stale rule. */
#workbenchReviewSummary {
  width: 100% !important;
  max-width: none !important;
  box-sizing: border-box;
  border-top: 0 !important;
  border-bottom: 0 !important;
  padding-top: 0 !important;
}

.workbench-timeline-summary-mount {
  width: 100% !important;
  max-width: none !important;
}

#workbenchReviewSummary .workbench-summary-stats {
  display: flex !important;
  width: 100%;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 0 0 !important;
  border-top: 1px solid #2b3d35 !important;
  border-right: 0 !important;
}

#workbenchReviewSummary .workbench-summary-stats > div {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 6px;
  padding: 7px 10px !important;
  border: 1px solid #355746 !important;
  border-radius: 8px;
  background: #12241c;
}

#workbenchReviewSummary .workbench-summary-stats > div:first-child {
  padding-left: 10px !important;
}

#workbenchReviewSummary .workbench-summary-stats span,
#workbenchReviewSummary .workbench-summary-stats strong {
  display: inline !important;
  margin: 0 !important;
  font-size: .75rem;
  line-height: 1.2;
}

#workbenchReviewSummary .workbench-summary-stats span {
  color: #91a79a;
}

#workbenchReviewSummary .workbench-summary-stats strong {
  color: #e2eedf;
}

#workbenchReviewSummary .workbench-summary-stats {
  border-top: 0 !important;
}

#workbenchReviewSummary > .workbench-summary-toolbar {
  border-top: 0 !important;
}

/* The action bar is now a sibling of the summary, above all summary rules. */
.workbench-summary-toolbar {
  display: flex !important;
  width: 100% !important;
  box-sizing: border-box;
  position: relative !important;
  inset: auto !important;
  transform: none !important;
  margin: 0 !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: 12px;
  padding: 16px 0 14px !important;
  border: 0 !important;
  border-bottom: 1px solid #2b3d35 !important;
}

.workbench-summary-toolbar .workbench-summary-delete {
  margin: 0 auto 0 0 !important;
  position: static !important;
  transform: none !important;
}

.workbench-summary-toolbar .workbench-summary-generate {
  margin: 0 0 0 auto !important;
  position: static !important;
  transform: none !important;
}

.workbench-summary-project-title {
  position: absolute;
  top: 50%;
  left: 50%;
  max-width: calc(100% - 250px);
  overflow: hidden;
  color: #e0ecdf;
  font-size: .9rem;
  line-height: 1.3;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
  transform: translate(-50%, -50%);
}

.workbench-split-chat-message{touch-action:pan-y}.workbench-chat-message-menu{position:fixed;z-index:60;display:flex;overflow:hidden;border:1px solid #53705b;border-radius:10px;background:#17251f;box-shadow:0 12px 30px rgba(0,0,0,.42)}.workbench-chat-message-menu[hidden]{display:none}.workbench-chat-message-menu button{min-width:56px;min-height:42px;padding:8px 11px;border:0;border-right:1px solid #365044;border-radius:0;background:transparent;color:#e4eee3;font-size:.76rem}.workbench-chat-message-menu button:last-child{border-right:0}.workbench-chat-message-menu button:active{background:#30473b}.workbench-chat-message-menu button.danger{color:#ffa99e}.workbench-chat-message-menu button.danger:active{background:#4b2927}

/* A finished split is already a clickable card.  Its message wrapper must not
   render as a second assistant-chat bubble behind it. */
#workbenchSection .workbench-split-chat-message.split-result{
  width:min(65%,182px);
  max-width:min(65%,182px);
  margin:0;
  padding:0;
  border:0;
  border-radius:0;
  background:transparent;
  color:inherit;
}
#workbenchSection .workbench-split-chat-message.split-result .workbench-split-chat-result{width:100%}
.workbench-split-chat-message.split-script-draft{max-width:min(96%,900px);white-space:pre-wrap;overflow-wrap:anywhere}
#workbenchSection .workbench-split-task-card{align-items:flex-start}
#workbenchSection .workbench-split-task-card .workbench-split-chat-result-copy{width:100%}
#workbenchSection .workbench-split-task-card strong{display:block;overflow:hidden;font-size:.71rem;line-height:1.3}
#workbenchSection .workbench-split-task-card small{display:block;margin-top:4px;font-size:.58rem;line-height:1.35}
#workbenchSection .workbench-split-task-card .workbench-progress-track{width:100%;height:5px;margin-top:8px}
#workbenchSection .workbench-split-task-card .workbench-progress-meta{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:4px;color:#a9bba9;font-size:.62rem;line-height:1.2}
#workbenchSection .workbench-split-task-card .workbench-progress-state{flex:none;margin:0;color:#c7f36b;font-size:.66rem}
#workbenchSection .workbench-split-task-card .workbench-progress-track.is-indeterminate{background:#321417;box-shadow:inset 0 0 0 1px #633037}
#workbenchSection .workbench-split-task-card .workbench-progress-track.is-indeterminate .workbench-progress-fill{width:38%!important;transform:translateX(-110%);transform-origin:left center;background:linear-gradient(90deg,transparent,#ff5261 25%,#ff9b9f 58%,#ff5261 82%,transparent);box-shadow:0 0 8px #f044526e;animation:workbench-split-red-flow 1.35s linear infinite}
@keyframes workbench-split-red-flow{from{transform:translateX(-110%)}to{transform:translateX(310%)}}
@media(prefers-reduced-motion:reduce){#workbenchSection .workbench-split-task-card .workbench-progress-track.is-indeterminate .workbench-progress-fill{animation-duration:3s}}

.workbench-summary-toolbar {
  border-bottom: 0 !important;
}

#workbenchReviewSummary .workbench-summary-nameplate {
  display: flex;
  width: 100%;
  min-height: 42px;
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
  margin: 0 0 14px;
  padding: 9px 14px;
  border: 1px solid #304c3d;
  border-radius: 8px;
  background: #14281f;
  color: #e1eddf;
  text-align: center;
}

#workbenchReviewSummary .workbench-summary-nameplate strong {
  overflow: hidden;
  font-size: .88rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Composer send/stop control shared by desktop and phone layouts. */
#workbenchSection #workbenchSplitChatSend{
  display:grid;
  align-self:flex-end;
  flex:0 0 44px;
  place-items:center;
  width:44px;
  min-width:44px;
  height:44px;
  min-height:44px;
  padding:0;
  border:0;
  border-radius:50%;
  background:transparent;
  color:#73827a;
  transition:background .16s ease,color .16s ease,opacity .16s ease;
}
#workbenchSection #workbenchSplitChatSend{background:transparent!important}
#workbenchSection #workbenchSplitChatSend svg{display:block;width:25px;height:25px;fill:none;stroke:currentColor;stroke-width:1.45;stroke-linecap:round;stroke-linejoin:round}
#workbenchSection #workbenchSplitChatSend.has-text svg circle,
#workbenchSection #workbenchSplitChatSend.is-sending svg circle,
#workbenchSection #workbenchSplitChatSend.is-remote-processing:not(.has-text) svg circle{fill:#c7f36b;stroke:#c7f36b}
#workbenchSection #workbenchSplitChatSend.has-text svg path,
#workbenchSection #workbenchSplitChatSend.is-sending svg path,
#workbenchSection #workbenchSplitChatSend.is-remote-processing:not(.has-text) svg path{stroke:#17301d}
#workbenchSection #workbenchSplitChatSend .chat-send-stop{display:none}
#workbenchSection #workbenchSplitChatSend.is-sending .chat-send-arrow{display:none}
#workbenchSection #workbenchSplitChatSend.is-sending .chat-send-stop{display:block}
#workbenchSection #workbenchSplitChatSend.is-remote-processing:not(.has-text) .chat-send-arrow{display:none}
#workbenchSection #workbenchSplitChatSend.is-remote-processing:not(.has-text) .chat-send-stop{display:block}
@media(min-width:601px){
  #workbenchSection #workbenchSplitChatSend svg{width:31px;height:31px}
}
#workbenchSection #workbenchSpeechButton{display:grid;flex:0 0 34px;place-items:center;width:34px;min-width:34px;height:34px;min-height:34px;margin:0;padding:0;border:0;border-radius:50%;background:transparent;color:#82938a}
#workbenchSection #workbenchSpeechButton{align-self:flex-end}
#workbenchSection #workbenchSpeechButton svg{display:block;width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.55;stroke-linecap:round;stroke-linejoin:round}
#workbenchSection #workbenchSpeechButton .speech-wave-icon{display:none}
#workbenchSection #workbenchSpeechButton .speech-wave-icon rect{fill:currentColor;stroke:none;transform-box:fill-box;transform-origin:center;transition:transform .08s linear}
#workbenchSection #workbenchSpeechButton.is-listening .speech-mic-icon{display:none}
#workbenchSection #workbenchSpeechButton.is-listening .speech-wave-icon{display:block}
#workbenchSection #workbenchSpeechButton.is-listening:not(.has-audio-meter) .speech-wave-icon rect{animation:speech-wave-idle .72s ease-in-out infinite alternate}
#workbenchSection #workbenchSpeechButton.is-listening:not(.has-audio-meter) .speech-wave-icon rect:nth-child(2){animation-delay:-.48s}
#workbenchSection #workbenchSpeechButton.is-listening:not(.has-audio-meter) .speech-wave-icon rect:nth-child(3){animation-delay:-.24s}
#workbenchSection #workbenchSpeechButton.is-listening:not(.has-audio-meter) .speech-wave-icon rect:nth-child(4){animation-delay:-.58s}
@keyframes speech-wave-idle{from{transform:scaleY(.32)}to{transform:scaleY(1)}}
#workbenchSection #workbenchSpeechButton.is-listening{background:#243b2b;color:#c7f36b}
@media(max-width:600px){#workbenchSection #workbenchSpeechButton{flex-basis:30px;width:30px;min-width:30px;height:30px;min-height:30px}#workbenchSection #workbenchSpeechButton svg{width:20px;height:20px}}
#workbenchSection .workbench-split-chat-status{background:transparent!important}

/* Final phone composer dimensions.  This intentionally follows the older
   57px declarations above so the compact size actually wins. */
@media(max-width:600px){
  #workbenchSection #workbenchSplitChatForm.workbench-split-chat-form{
    height:auto!important;
    min-height:40px!important;
    padding:1px 6px!important;
  }
  #workbenchSection .workbench-split-chat-compose-row{
    min-height:34px!important;
  }
  #workbenchSection #workbenchAddScriptButton{
    flex:0 0 34px!important;
    width:34px!important;
    min-width:34px!important;
    height:34px!important;
    min-height:34px!important;
  }
  #workbenchSection #workbenchSplitChatInput{
    height:32px;
    min-height:32px;
    align-self:flex-end!important;
    padding-top:5px!important;
    padding-bottom:5px!important;
  }
  #workbenchSection #workbenchSplitChatSend{
    display:grid!important;
    flex:0 0 34px!important;
    place-items:center;
    width:34px!important;
    min-width:34px!important;
    height:34px!important;
    min-height:34px!important;
    margin:0 1px 2px 0!important;
    align-self:flex-end!important;
    padding:0!important;
    border:0!important;
    border-radius:50%!important;
    background:transparent!important;
    color:#73827a!important;
    transition:background .16s ease,color .16s ease,opacity .16s ease;
  }
  #workbenchSection #workbenchSplitChatSend.has-text,
  #workbenchSection #workbenchSplitChatSend.is-sending{
    background:transparent!important;
    color:#73827a!important;
  }
  #workbenchSection #workbenchSplitChatSend svg{width:25px;height:25px}
}

.workbench-timeline-mobile-hint{display:none}
.workbench-timeline-track{-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain}
@media(max-width:620px){
  .workbench-timeline-mobile-hint{display:none!important}
}

#workbenchProductionProjectChoices{flex:1 1 auto;min-width:0;min-height:0;overflow-x:hidden;overflow-y:auto;-webkit-overflow-scrolling:touch}

/* Keep every control and the first line of text on the composer's horizontal centerline. */
#workbenchSection .workbench-split-chat-compose-row{align-items:center!important}
#workbenchSection #workbenchAddScriptButton,
#workbenchSection #workbenchSpeechButton,
#workbenchSection #workbenchSplitChatSend{align-self:center!important;margin-top:0!important;margin-bottom:0!important}
#workbenchSection #workbenchSplitChatInput{align-self:center!important}
#workbenchProductionProjectChoices>.workbench-production-picker{display:block;width:100%;min-width:0}
#workbenchProductionProjectChoices .workbench-production-picker>div{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.workbench-production-project-open{display:flex;min-height:0;width:100%;min-width:0;flex-direction:column;align-items:center;gap:9px;padding:5px 2px 8px;border:0;border-radius:12px;background:transparent;color:#edf5ec;text-align:center}
.workbench-production-project-open:hover{background:#192924}
.workbench-production-project-open svg{display:block;flex:0 0 56.06px;width:76.19px;height:56.06px;stroke:#c7f36b;stroke-linecap:round;stroke-linejoin:round;stroke-width:2}
.workbench-production-project-open strong{display:block;width:100%;min-width:0;overflow:hidden;color:#eaf4e8;font-size:.76rem;text-overflow:ellipsis;white-space:nowrap}

/* Keep long association pages inside their own scroll viewport on phones. */
@media(max-width:600px){
  body.workbench-fullscreen .workbench-step-content>.workbench-panel:not([hidden]){
    display:block!important;
    flex:1 1 0%!important;
    min-width:0!important;
    min-height:0!important;
    max-height:none!important;
    overflow-x:hidden!important;
    overflow-y:auto!important;
    overscroll-behavior:contain;
    -webkit-overflow-scrolling:touch;
  }
  #workbenchCommonReferences{width:100%;max-width:100%;min-width:0;box-sizing:border-box}
}

.workbench-timeline-actions>.workbench-timeline-import,.workbench-timeline-actions>.workbench-timeline-generate-prompts,.workbench-timeline-actions>.workbench-timeline-delete-selected{box-sizing:border-box;height:34px;min-height:34px!important;padding:6px 10px}
.workbench-timeline-actions>.workbench-timeline-generate-prompts{width:max-content;min-width:0;white-space:nowrap}
@media(max-width:620px){.workbench-timeline{margin-top:8px;padding-top:0}}
.workbench-timeline-prompt-editor{min-height:120px;max-height:65vh;overflow-y:auto}
.workbench-timeline-detail-container .workbench-timeline-prompt{padding-top:0!important;border-top:0!important}
.workbench-timeline-prompt-head{position:relative;min-height:34px;justify-content:flex-start;padding-right:150px}
.workbench-timeline-prompt-head>strong{flex:1 1 auto}
.workbench-timeline-prompt-controls{position:absolute;top:8px;right:0;display:flex;align-items:center;gap:8px}
.workbench-timeline-prompt-controls>span{flex:none;color:#91a198;font-size:.68rem}
@media(max-width:620px){.workbench-timeline-prompt-head{padding-right:132px}.workbench-timeline-prompt-controls{gap:5px}.workbench-timeline-prompt-controls .workbench-prompt-actions{gap:4px}.workbench-timeline-prompt-controls .workbench-prompt-actions button{padding:5px 7px;font-size:.68rem}}
.workbench-current-task #workbenchRatioStatus{display:block;flex:1 1 auto;min-width:0;overflow:hidden;margin:0;color:#91a198;font-size:.68rem;text-overflow:ellipsis;white-space:nowrap}
.workbench-current-task #workbenchRatioStatus:empty{display:none}
.workbench-timeline-prompt-head{margin-bottom:12px}
.workbench-timeline-linked-assets{margin:0 0 12px;padding:0}
.workbench-timeline-reference-map{margin:0 0 12px}

.completed-video-save-actions{display:flex;flex-wrap:wrap;gap:8px;padding:10px}.completed-video-save-actions button{padding:8px 12px;border:1px solid #709348;border-radius:8px;background:#263d2c;color:#d8f39d}.completed-video-save-actions small{flex-basis:100%;color:#91a198}.completed-video-save-actions button:disabled{opacity:.5}.completed-segment-version{margin-left:auto;padding:3px 7px;border:1px solid #58783d;border-radius:999px;color:#c7f36b;font-size:.65rem;font-weight:600}

/* Keep the mobile story chat stretched to the space below the step tabs. */
@media(max-width:600px){
  body.workbench-fullscreen #workbenchSection.page-active .workbench-step-content,
  body.workbench-fullscreen #workbenchSection.page-active .workbench-panel[data-workbench-panel="storyboard"]:not([hidden]),
  body.workbench-fullscreen #workbenchSection.page-active .workbench-split-box,
  body.workbench-fullscreen #workbenchSection.page-active .workbench-script-control{
    display:flex!important;min-height:0!important;flex:1 1 auto!important;flex-direction:column!important;overflow:hidden!important
  }
  body.workbench-fullscreen #workbenchSection.page-active .workbench-split-chat{
    display:flex!important;min-height:0!important;flex:1 1 auto!important;flex-direction:column!important;overflow:hidden!important
  }
  body.workbench-fullscreen #workbenchSection.page-active #workbenchSplitChatMessages{
    display:flex!important;min-height:0!important;max-height:none!important;flex:1 1 auto!important;overflow-x:hidden!important;overflow-y:auto!important
  }
  body.workbench-fullscreen #workbenchSection.page-active #workbenchSplitChatForm{flex:none!important;margin-top:auto!important}
}
.workbench-split-chat-messages{position:relative}
#workbenchSection .workbench-split-chat>#workbenchChatTyping:not([hidden]){position:absolute;z-index:3;left:50%;display:flex;width:max-content;height:5px;min-height:5px;margin:0;padding:0;transform:translateX(-50%);pointer-events:none}
#workbenchSection .workbench-split-chat>#workbenchChatTyping .workbench-chat-typing-dots{height:5px}

/* Keep the phone workbench's fixed viewport frame. Long workbench panels
   scroll internally; switching the shell to document flow here collapses
   the panel viewport and lets the fixed navigation cover its content. */
/* In the fixed iOS/PWA workbench frame, give the long completed-video panel
   the remaining viewport height and its own vertical scroller. */
@media(max-width:600px){
  body.workbench-fullscreen #workbenchSection[data-step="segments"] .workbench-panel[data-workbench-panel="segments"]{
    display:block!important;
    min-height:0!important;
  }
  body.workbench-fullscreen #workbenchSection.page-active .workbench-panel[data-workbench-panel="segments"]:not([hidden]){
    flex:1 1 0!important;
    min-height:0!important;
    max-height:none!important;
    overflow-x:hidden!important;
    overflow-y:auto!important;
    -webkit-overflow-scrolling:touch;
    overscroll-behavior-y:contain;
    touch-action:pan-y;
  }
}
@media(min-width:601px){
  html.workbench-active:not(.workbench-chat-active),
  body.workbench-fullscreen:not(.workbench-chat-active){height:100dvh!important;min-height:0!important;overflow:hidden!important}
  body.workbench-fullscreen:not(.workbench-chat-active){display:flex!important;flex-direction:column!important}
  body.workbench-fullscreen:not(.workbench-chat-active) .shell{display:flex!important;height:auto!important;min-height:0!important;flex:1 1 auto!important;flex-direction:column!important;overflow:hidden!important;padding-bottom:0!important}
  body.workbench-fullscreen:not(.workbench-chat-active) .workbench-page.page-active{display:flex!important;min-height:0!important;flex:1 1 auto!important;flex-direction:column!important;overflow:hidden!important}
  body.workbench-fullscreen:not(.workbench-chat-active) .workbench-step-content{display:block!important;height:auto!important;min-height:0!important;flex:1 1 auto!important;overflow-x:hidden!important;overflow-y:auto!important}
  body.workbench-fullscreen:not(.workbench-chat-active) .workbench-step-content>.workbench-panel:not([hidden]){display:block!important;min-height:0!important;max-height:none!important;overflow:visible!important}
}

/* Show more subject slots on the material-project cards. */
#workbenchCommonReferences .workbench-production-picker.is-material-picker .workbench-production-card{height:369px;min-height:369px}
#workbenchCommonReferences .workbench-production-picker.is-material-picker .workbench-production-open{box-sizing:border-box;height:369px;min-height:0;grid-template-rows:1.35em minmax(0,1fr) 183px;overflow:hidden;align-content:start;padding:8px}
#workbenchCommonReferences .workbench-production-picker.is-material-picker .workbench-production-open::before{content:"";grid-column:1;grid-row:2 / 4;justify-self:start;align-self:stretch;width:1px;min-height:0;margin-left:17px;background:#456249;pointer-events:none;z-index:1}
#workbenchCommonReferences .workbench-production-picker.is-material-picker .workbench-production-open>b{text-align:center}
#workbenchCommonReferences .workbench-production-picker.is-material-picker .workbench-production-plot{position:relative;display:grid;grid-template-columns:15px minmax(0,1fr);align-items:center;gap:8px;min-width:0;margin-top:0;color:#b8c8bd;font-size:.7rem;line-height:1.45;text-align:left}
#workbenchCommonReferences .workbench-production-picker.is-material-picker .workbench-production-plot>em{align-self:center;justify-self:center;color:#c7f36b;font-size:.65rem;font-style:normal;font-weight:800;writing-mode:vertical-rl;text-orientation:upright;white-space:nowrap}
#workbenchCommonReferences .workbench-production-picker.is-material-picker .workbench-production-plot>span{display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:8;overflow-wrap:anywhere}
#workbenchCommonReferences .workbench-production-picker.is-material-picker .workbench-production-assets{display:grid;grid-template-rows:repeat(3,61px)!important;align-content:start;align-items:stretch;align-self:end;gap:0;min-height:0;height:183px;margin-top:2px;overflow:hidden}
#workbenchCommonReferences .workbench-production-picker.is-material-picker .workbench-production-asset-row{position:relative;display:flex;align-items:center;min-width:0;width:100%;height:61px;min-height:0;overflow:hidden;padding-top:0}
#workbenchCommonReferences .workbench-production-picker.is-material-picker .workbench-production-asset-row>em{position:absolute;top:50%;left:0;width:11px;padding-top:0;transform:translateY(-50%);color:#c7f36b;font-size:.62rem;font-style:normal;font-weight:700;writing-mode:vertical-lr;text-orientation:upright;white-space:nowrap}
#workbenchCommonReferences .workbench-production-picker.is-material-picker .workbench-production-asset-slots{display:flex;flex:1 1 auto;flex-wrap:nowrap;gap:2px;min-width:0;padding-left:17px;overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch;touch-action:pan-x}
#workbenchCommonReferences .workbench-production-picker.is-material-picker .workbench-production-asset-slot{grid-template-rows:48px auto;flex:0 0 60px}
#workbenchCommonReferences .workbench-production-picker.is-material-picker .workbench-production-asset-slot>i,
#workbenchCommonReferences .workbench-production-picker.is-material-picker .workbench-production-asset-slot>.workbench-bound-thumb,
#workbenchCommonReferences .workbench-production-picker.is-material-picker .workbench-production-asset-slot>.workbench-bound-preview-fallback{box-sizing:border-box;width:48px!important;height:48px!important}
#workbenchCommonReferences .workbench-production-picker.is-material-picker .workbench-production-asset-slot>small{display:block;width:6em;max-width:100%;overflow:hidden;color:#b8c8bd;font-size:.6rem;line-height:1.1;text-align:center;text-overflow:ellipsis;white-space:nowrap}
#workbenchCommonReferences .workbench-production-picker.is-material-picker .workbench-production-asset-more{flex:0 0 48px;width:48px;height:48px}
@media(max-width:600px){#workbenchCommonReferences .workbench-production-picker.is-material-picker .workbench-production-card{height:351px;min-height:351px}#workbenchCommonReferences .workbench-production-picker.is-material-picker .workbench-production-open{height:351px;grid-template-rows:1.35em minmax(0,1fr) 183px}#workbenchCommonReferences .workbench-production-picker.is-material-picker .workbench-production-plot>span{-webkit-line-clamp:7}}

/* Keep the storyboard reference frame around the thumbnail only; its name sits below it. */
.workbench-timeline-linked-asset{overflow:visible;border:0;border-radius:0;background:transparent}
.workbench-timeline-linked-preview{box-sizing:border-box;border:1px solid #355344;border-radius:8px}
.workbench-timeline-linked-asset>strong{padding:5px 2px 0}

/* Keep every composer control and the first text line on one horizontal centerline. */
#workbenchSection .workbench-split-chat-compose-row{align-items:center!important}
#workbenchSection #workbenchAddScriptButton,
#workbenchSection #workbenchSpeechButton,
#workbenchSection #workbenchSplitChatSend{align-self:center!important;margin-top:0!important;margin-bottom:0!important}
#workbenchSection #workbenchSplitChatInput{align-self:center!important}


