.ai-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:22px}.ai-status{display:flex;align-items:center;gap:7px;color:#849475;font-size:10px}.ai-status:before{content:'';width:6px;height:6px;border-radius:50%;background:#b7a57e}.ai-status.online:before{background:#7b9b59}.ai-pipeline{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-bottom:27px}.ai-stage-card{border:1px solid #dfe5d6;background:#fff;border-radius:8px;padding:22px;position:relative;overflow:hidden}.ai-stage-card .ai-stage-icon{width:36px;height:36px;border-radius:9px;background:#edf2e6;display:grid;place-items:center;color:#668551;margin-bottom:18px}.ai-stage-card .ai-stage-code{position:absolute;right:20px;top:20px;font-size:30px;color:#eef1e8;font-weight:700}.ai-stage-card h2{margin:0 0 9px;font-size:16px;font-weight:600}.ai-stage-card p{font-size:10px;line-height:1.9;color:#929e84;min-height:39px}.ai-model-label{display:block;margin:15px 0;font-size:9px;color:#97a487;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.ai-stage-card button{width:100%}.ai-section-head{display:flex;justify-content:space-between;align-items:center;margin:24px 0 16px}.ai-section-head h2{font-size:16px;margin:0;font-weight:550}.ai-section-head span{font-size:10px;color:#96a38a}.ai-task{border:1px solid #dfe5d5;background:#fff;border-radius:7px;padding:17px 19px;margin-bottom:12px;display:grid;grid-template-columns:35px minmax(0,1fr) auto;gap:13px;align-items:center}.ai-task-icon{width:33px;height:33px;background:#f0f3e9;border-radius:7px;display:grid;place-items:center;color:#809869}.ai-task h3{font-size:12px;margin:0 0 6px;font-weight:550}.ai-task p{font-size:9px;line-height:1.8;color:#98a58b;margin:0;overflow-wrap:anywhere}.ai-task-actions{display:flex;gap:9px;align-items:center}.ai-state{padding:4px 7px;font-size:9px;color:#929f81;background:#f0f3e9;border-radius:4px;white-space:nowrap}.ai-state.succeeded{color:#6d8b50;background:#eaf2e0}.ai-state.failed,.ai-state.interrupted{color:#b07757;background:#f5ebe3}.ai-state.running{color:#7d8d51;background:#f0f2df}.ai-output-preview{width:100%;max-height:390px;object-fit:contain;background:#eaf0e3;border-radius:7px;margin:12px 0}.ai-output-video{width:100%;max-height:430px;background:#142d26;border-radius:8px;margin:12px 0}.ai-generated-note{font-size:9px;line-height:1.9;color:#91a17e}.ai-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.ai-asset{border:1px solid #e0e5d7;border-radius:7px;background:white;overflow:hidden}.ai-asset-image{aspect-ratio:1.6;background:#edf1e5;display:grid;place-items:center;color:#a2b28c;position:relative}.ai-asset-image img{width:100%;height:100%;object-fit:contain}.ai-asset-image>.icon{width:30px;height:30px;stroke-width:1.2}.ai-asset-body{padding:13px}.ai-asset-body h3{font-size:12px;margin:0 0 6px;display:flex;justify-content:space-between;gap:5px}.ai-asset-body p{font-size:9px;line-height:1.9;color:#9aa68b;margin:7px 0 12px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.ai-asset-actions{display:flex;justify-content:space-between;gap:7px;align-items:center}.ai-asset-type{position:absolute;top:9px;left:9px;background:#234333c0;color:#eef2e6;padding:3px 6px;border-radius:3px;font-size:8px}.ai-config-channel{background:#f5f7ef;border:1px solid #e1e7d7;border-radius:7px;padding:19px;margin-bottom:15px}.ai-config-channel h3{font-size:13px;font-weight:600;margin:0 0 17px;display:flex;gap:8px;align-items:center}.ai-config-channel h3>span{margin-left:auto;font-size:9px;font-weight:400;color:#93a280}.ai-config-channel .field{margin-bottom:13px}.ai-config-channel .field input,.ai-config-channel .field select{background:white}.ai-config-channel .field label{font-size:10px}.ai-secret-help{display:flex;justify-content:space-between;gap:10px;align-items:center;margin-top:4px;color:#98a98a;font-size:9px}.ai-secret-help label{display:flex;align-items:center;gap:4px}.ai-secret-help input{accent-color:#66874d}.ai-reference-list{max-height:250px;overflow-y:auto;border:1px solid #e0e7d5;border-radius:6px;background:#f9fbf4;padding:10px}.ai-reference-item{display:flex;align-items:center;gap:10px;border-bottom:1px solid #e9eddf;padding:8px 4px;font-size:10px;color:#7f916d}.ai-reference-item:last-child{border:0}.ai-reference-item>input{accent-color:#4b7440}.ai-reference-item img{width:50px;height:36px;object-fit:contain;border-radius:3px;background:#e6ecdc}.ai-reference-item span{display:block;line-height:1.8}.ai-reference-item small{font-size:8px;color:#a1ad93}.ai-inline-button{margin-left:9px}.ai-text-result{max-height:420px;overflow-y:auto}.ai-text-result h3{font-size:13px;font-weight:550;color:#5f7c49}.ai-text-result p{font-size:11px;line-height:2;color:#8a987c}.ai-key-status{font-size:9px;color:#9aab87}.ai-reference-note{padding:10px 12px;background:#f1f4e7;border-radius:5px;font-size:10px;line-height:1.9;color:#8b9c78;margin-bottom:16px}.ai-video-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.ai-video-card{border:1px solid var(--line);border-radius:8px;background:white;padding:16px}.ai-video-card h3{font-size:12px;margin:12px 0 7px}.ai-video-card video{width:100%;aspect-ratio:16/9;background:#17392e;border-radius:5px}.ai-video-card p{font-size:10px;color:#9ba98c;line-height:1.9}.ai-result-counts{display:flex;gap:10px;flex-wrap:wrap;margin:15px 0}.ai-result-counts span{font-size:10px;padding:7px 10px;background:#edf2e5;border-radius:5px;color:#799360}.ai-segment-tabs{display:flex;gap:9px;flex-wrap:wrap;margin:17px 0}.ai-segment-tab{background:#edf2e4;border:1px solid #dfe7d2;border-radius:5px;font-size:11px;padding:10px 15px;color:#8b9f73}.ai-segment-tab.selected{background:#365d45;border-color:#365d45;color:#fff}.ai-fields{display:grid;grid-template-columns:1fr 1fr;gap:16px}.ai-prompt-warning{font-size:10px;color:#b08c5c;line-height:1.9}.ai-generation-strip{display:flex;gap:7px;align-items:center;justify-content:flex-end;padding:10px 17px;border-top:1px solid #edf0e5;background:#fcfdf8}.ai-progress-indeterminate{height:3px;background:#e8eedf;margin-top:10px;overflow:hidden}.ai-progress-indeterminate:after{content:'';display:block;background:#94aa77;width:30%;height:100%;animation:ai-slide 1.8s ease-in-out infinite}@keyframes ai-slide{from{transform:translateX(-100%)}to{transform:translateX(400%)}}.ai-loading{padding:25px;text-align:center;color:#98a987;font-size:11px}.ai-no-server{margin-bottom:22px}.ai-config-grid{display:grid;grid-template-columns:1fr 1fr;gap:13px}.ai-task-meta{display:flex;gap:7px;flex-wrap:wrap;align-items:center;margin-bottom:10px}.ai-task-meta span{font-size:9px;color:#92a280}.ai-detail-controls{display:flex;gap:9px;flex-wrap:wrap}.ai-privacy{font-size:10px;color:#97a78a;line-height:1.9}.ai-validation{border:1px solid #e4e9da;padding:17px;background:#fafcf5;border-radius:6px}.ai-validation p{font-size:11px;color:#8a9c77;line-height:2;margin:3px 0}.ai-data-caption{font-size:9px;color:#91a27d;line-height:1.9}.ai-tabs{display:flex;gap:23px;border-bottom:1px solid var(--line);margin-bottom:20px}.ai-tabs button{font-size:11px;padding:12px 0;position:relative;color:#96a58a}.ai-tabs button.active{color:#44643b}.ai-tabs button.active:after{position:absolute;content:'';height:2px;background:#638354;bottom:-1px;left:0;right:0}.ai-count{font-size:9px;color:#9ba98b;margin-left:5px}.ai-header-action{white-space:nowrap}.ai-empty-asset{min-height:170px}.ai-metadata-row{font-size:10px;line-height:1.9;color:#9aa98c;margin:8px 0}.ai-metadata-row b{color:#708b58;font-weight:500}.ai-raw-json{font-family:Consolas,monospace;font-size:10px}.ai-reference-empty{font-size:10px;color:#9aa98a;padding:15px;line-height:1.9}.ai-message-error{font-size:11px;color:#b27f5c;line-height:1.9;overflow-wrap:anywhere}
@media(max-width:1100px){.ai-stage-card{padding:18px}.ai-stage-card h2{font-size:14px}.ai-grid{grid-template-columns:1fr 1fr}.ai-task-actions{flex-wrap:wrap;justify-content:flex-end;max-width:150px}}
@media(max-width:760px){.ai-pipeline{grid-template-columns:1fr;gap:12px}.ai-stage-card{display:grid;grid-template-columns:36px 1fr;gap:0 14px;padding:17px}.ai-stage-card .ai-stage-icon{grid-row:1/3;margin:0}.ai-stage-card h2{font-size:14px}.ai-stage-card p{margin:0;min-height:0;font-size:9px}.ai-stage-card .ai-model-label{grid-column:2;margin:10px 0;font-size:8px}.ai-stage-card button{grid-column:2;font-size:10px}.ai-stage-card .ai-stage-code{right:14px;top:8px;font-size:23px}.ai-grid{gap:12px}.ai-toolbar{align-items:flex-start}.ai-status{font-size:9px;line-height:1.7}.ai-task{padding:13px;gap:10px;grid-template-columns:28px minmax(0,1fr)}.ai-task-actions{grid-column:2;max-width:none;justify-content:flex-start}.ai-task-icon{width:28px;height:28px}.ai-task h3{font-size:11px}.ai-fields,.ai-config-grid{grid-template-columns:1fr}.ai-config-channel{padding:15px}.ai-video-grid{grid-template-columns:1fr}.ai-asset-body h3{flex-wrap:wrap;font-size:11px}.ai-asset-body p{font-size:8px}.ai-asset-actions{flex-wrap:wrap}.ai-asset-image{aspect-ratio:1.3}.ai-generation-strip{flex-wrap:wrap;justify-content:flex-start}.ai-header-action{font-size:9px;padding:8px!important}.ai-header-action .icon{width:12px}.ai-section-head h2{font-size:14px}.ai-stage-card p,.ai-privacy{overflow-wrap:anywhere}.ai-tabs{gap:20px}.ai-tabs button{font-size:10px}}
.project-context-label{max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#b9cdbd!important;letter-spacing:0!important;line-height:1.8}.project-nav{border-left:1px solid #688a6c55;padding-left:8px;margin-bottom:4px}.project-nav .nav-item{font-size:12px}.project-library-card{cursor:default;display:flex;flex-direction:column;align-items:flex-start;min-height:225px}.project-library-card>h3{margin:17px 0 8px}.project-library-card>p{margin:3px 0}.project-progress{color:#82956d;font-size:10px;padding-top:14px}.project-card-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;margin-top:20px}.project-card-actions .primary-btn{font-size:11px;padding:10px 12px}.ai-project-context{display:flex;justify-content:space-between;gap:20px;align-items:center;background:#eaf0e2;border:1px solid #dbe4d1;border-radius:8px;padding:21px 24px;margin-bottom:20px}.ai-project-context h2{font-size:20px;color:#365b40;font-weight:550;margin:7px 0 8px}.ai-project-context p{font-size:10px;line-height:1.9;color:#8a9b7c;margin:0}.ai-project-context button{flex-shrink:0}.ai-material-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:18px}.ai-material-heading h3{font-size:14px;display:flex;gap:8px;align-items:center;font-weight:550;margin:0 0 9px;color:#57764a}.ai-material-heading p{font-size:10px;line-height:1.8;color:#8d9e7c;margin:0}.ai-material-heading button{flex-shrink:0}.ai-sync-note{font-size:9px;color:#78935f;margin-top:5px}.ai-sync-note.warning{color:#b28a5d}.ai-tabs{overflow-x:auto;white-space:nowrap;scrollbar-width:thin}.ai-tabs button{flex-shrink:0}.ai-asset-body .ai-prompt-preview{display:block;line-height:1.8;color:#8b9d77;padding:8px;background:#f2f5ec;border-radius:4px}.ai-project-context .section-code{font-size:8px;letter-spacing:1.4px}
@media(max-width:760px){.ai-project-context{padding:17px;align-items:flex-start;flex-direction:column;gap:12px}.ai-project-context h2{font-size:18px}.ai-project-context p{font-size:9px}.ai-project-context button{font-size:10px}.project-card-actions{flex-wrap:wrap}.ai-tabs{gap:18px}.ai-material-heading{align-items:flex-start;flex-direction:column;gap:12px}.ai-material-heading p{font-size:9px}}
.ai-sync-note .icon{display:inline-block;width:11px;height:11px;vertical-align:-2px;margin-right:4px}
.ai-tabs{overflow-y:hidden;padding-bottom:2px}
.studio-steps{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));border:1px solid #dce4d1;border-radius:8px;background:#f7f9f0;margin:0 0 24px;overflow:hidden}.studio-steps button{padding:16px 6px;display:flex;align-items:center;flex-direction:column;gap:9px;border-right:1px solid #e3e9db;color:#94a184;font-size:11px}.studio-steps button:last-child{border:0}.studio-steps button>span{width:25px;height:25px;display:grid;place-items:center;background:#e9eddf;border-radius:50%;font-size:11px}.studio-steps .done{color:#3e6946}.studio-steps .done>span{background:#dbe7cc}.studio-steps .icon{width:13px;height:13px}.studio-prep-grid{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(280px,1fr);gap:20px;margin-bottom:24px}.studio-prep-grid .big-panel{margin:0;padding:24px}.studio-prep-grid h2{display:flex;align-items:center;gap:9px;font-size:17px;font-weight:550;color:#3e6042}.studio-prep-grid .section-heading{margin:12px 0}.studio-settings-line{font-size:11px;color:#7b9068;margin:0 0 18px}.studio-document{border-top:1px solid #e4e9da;padding:16px 0 0;margin-top:15px}.studio-document>div:first-child{display:flex;justify-content:space-between;font-size:13px;color:#4b6545}.studio-document small{color:#96a482;font-size:10px}.studio-document p{font-size:12px;line-height:1.9;color:#879575;white-space:pre-wrap;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.studio-button-row{display:flex;gap:14px;align-items:center;flex-wrap:wrap}.studio-instructions-card>h2{margin:16px 0 12px}.studio-rule-row{display:flex;align-items:center;text-align:left;gap:12px;width:100%;border-bottom:1px solid #e7ecdf;padding:14px 0}.studio-rule-row:last-child{border-bottom:0}.studio-rule-row>span:first-child{flex:1}.studio-rule-row b{display:block;font-size:12px;color:#546c48;font-weight:550}.studio-rule-row small{display:block;color:#95a183;font-size:10px;margin-top:5px}.studio-rule-row>.icon{width:13px;color:#8e9b7e}.studio-rule-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.studio-rule-card{padding:26px;border:1px solid #dfe6d4;background:#f9fbf3;border-radius:8px}.studio-rule-card>.status{float:right}.studio-rule-card h2{font-size:19px;color:#456140;margin:22px 0 12px}.studio-rule-card p{font-size:12px;line-height:1.9;color:#8a9a79;min-height:44px}.studio-rule-card>small{display:block;font-size:10px;color:#99a488;margin-bottom:24px}.studio-rule-card>button{width:100%}.studio-long-text{min-height:360px!important;font-size:13px!important;line-height:1.9!important}.studio-instruction-note{font-size:12px;background:#eef3e5;border-radius:6px;padding:14px 17px;color:#7a8c65;line-height:1.9;margin-bottom:18px}.studio-history{padding:14px;background:#f1f5e9;color:#71855e;font-size:12px;border-radius:5px}.studio-history-row{display:flex;justify-content:space-between;gap:16px;margin:12px 0}.studio-assets-toolbar,.studio-video-toolbar{display:flex;justify-content:space-between;align-items:center;gap:18px;margin-bottom:20px}.studio-assets-toolbar p{font-size:12px;color:#8b9878}.studio-pipeline .ai-stage-card{padding:26px}.studio-pipeline .ai-stage-card p{font-size:12px;min-height:65px;line-height:1.9}.studio-pipeline .ai-stage-code{font-size:32px}.studio-prompt{min-height:220px!important}.studio-video-anchor{color:#5b774e;text-decoration:none;padding:9px 14px;background:#e9efdf;border-radius:5px;font-size:12px}.studio-video-window{scroll-margin-top:20px;background:#fafcf5;border:1px solid #d7e2ca;border-radius:9px;padding:28px;margin:0 0 28px;box-shadow:0 4px 12px #48603904}.studio-video-window>header{display:flex;justify-content:space-between;align-items:center;gap:20px;border-bottom:1px solid #e0e7d4;padding-bottom:17px;margin-bottom:22px}.studio-video-window h2{font-size:24px;color:#3c6542;margin:8px 0 0}.studio-video-window h2 small{font-size:12px;margin-left:10px;color:#8a9d77;font-weight:400}.studio-video-window .field label{font-size:12px}.studio-video-window input,.studio-video-window select,.studio-video-window textarea{background:#fffef8;font-size:13px;border-color:#dbe3ce}.studio-video-window .field input,.studio-video-window select{min-height:40px}.studio-video-prompt{min-height:310px!important;line-height:1.9!important;font-size:13px!important;resize:vertical}.studio-prompt-tools{margin:-4px 0 18px}.studio-asset-picker,.studio-shot-details{border:1px solid #e2e8d8;border-radius:6px;padding:14px;margin-bottom:20px;color:#7f926b;font-size:12px}.studio-asset-picker summary,.studio-shot-details summary{cursor:pointer}.studio-asset-chips{display:flex;flex-wrap:wrap;gap:10px;margin-top:16px}.studio-asset-chips button{display:flex;align-items:center;gap:10px;border:1px solid #e1e6d5;border-radius:5px;padding:9px 12px;color:#8f9b7f;font-size:11px}.studio-asset-chips .has-image{border-color:#c5d4b6;color:#597a46}.studio-asset-chips small{font-size:9px;color:#9daa8c}.studio-binding-heading{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:14px;color:#536e46;font-size:13px}.studio-binding-heading small{font-size:10px;color:#99a68a}.studio-bound-images{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:18px}.studio-bound-image{display:flex;gap:12px;align-items:center;min-width:0;border:1px solid #dfe7d2;background:#f1f5e9;padding:10px;border-radius:6px}.studio-bound-image img{height:55px;width:65px;object-fit:contain;border-radius:4px;background:#e6ecd8}.studio-bound-image>div{min-width:0;flex:1}.studio-bound-image b{display:block;font-size:11px;color:#627951;overflow-wrap:anywhere}.studio-bound-image small{display:block;font-size:9px;color:#94a283;margin-top:6px;line-height:1.6}.studio-bound-image.missing{border:1px dashed #cfc4a0;background:#f7f3e7}.studio-bound-image.missing>.icon{width:34px;color:#b9a77d;flex-shrink:0}.studio-bound-image .icon-button{min-width:20px;width:20px}.studio-video-options{margin-top:20px}.studio-video-window>.helper{font-size:11px}.studio-video-window>footer{display:flex;justify-content:space-between;gap:18px;align-items:center;padding-top:18px;border-top:1px solid #e0e7d4}.studio-video-window>footer .primary-btn{flex-shrink:0}.studio-shot-row{display:flex;justify-content:space-between;gap:20px;border-top:1px solid #e0e7d4;padding-top:18px;margin-top:18px;color:#7f9271}.studio-shot-row p{font-size:12px;line-height:1.9}.studio-shot-row small{font-size:11px;line-height:1.9}.studio-shot-row button{flex-shrink:0}.studio-segment-results{border-top:1px solid #e0e7d4;margin-top:22px;padding-top:18px}.studio-video-result video{width:100%;max-height:480px;margin-top:16px;background:#1d2b23;border-radius:6px}.studio-video-result .text-action{display:block;margin-top:12px}.studio-video-result{font-size:12px;color:#8fa27a}.studio-video-window .verify-row{font-size:12px;line-height:1.8}button:focus-visible,a:focus-visible,summary:focus-visible{outline:2px solid #849b69;outline-offset:3px}
@media(max-width:1100px){.studio-steps{grid-template-columns:repeat(4,1fr)}.studio-steps button:nth-child(4){border-right:0}.studio-steps button:nth-child(-n+4){border-bottom:1px solid #e3e9db}.studio-prep-grid{grid-template-columns:1fr}.studio-rule-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.studio-bound-images{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.studio-video-window{padding:18px}.studio-video-window>header{align-items:flex-start;flex-direction:column;gap:14px}.studio-video-window>footer{align-items:flex-start;flex-direction:column}.studio-video-window>footer>button{width:100%}.studio-prep-grid .big-panel{padding:18px}.studio-rule-grid,.studio-bound-images{grid-template-columns:1fr}.studio-steps button{font-size:10px;padding:12px 4px}.studio-steps button>span{width:22px;height:22px}.studio-long-text{min-height:290px!important}.studio-pipeline .ai-stage-card{padding:18px}.studio-pipeline .ai-stage-card p{font-size:11px;min-height:0}.studio-pipeline .ai-stage-card>button{margin-top:14px}.studio-assets-toolbar{flex-wrap:wrap}.studio-video-prompt{min-height:330px!important}.studio-video-toolbar{flex-direction:column;align-items:flex-start}.studio-rule-card p{min-height:0}.studio-prep-grid .section-heading{align-items:flex-start;gap:12px}}

.model-library-section{margin:20px 0 28px}.model-library-section h3{font-size:17px;color:#3d6343}.model-library-row{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:16px 0;border-bottom:1px solid #dfe6d5}.model-library-row b{color:#426348;font-size:13px}.model-library-row p{font-size:12px;color:#859574;overflow-wrap:anywhere;line-height:1.8;margin:7px 0 0}.model-choice{margin-top:20px}.model-choice select{width:100%;text-overflow:ellipsis}.danger-action{color:#a77458!important}.asset-delete-row{padding:10px 0 0}.result-actions{margin-top:14px}.ai-asset-actions{flex-wrap:wrap}.studio-shot-row>div:first-child{flex:1;min-width:0}.studio-shot-row{align-items:flex-start}.studio-video-result .result-actions .text-action{display:inline-flex}.model-library-row[hidden],#profile-connection[hidden]{display:none}@media(max-width:760px){.model-library-row{align-items:flex-start;flex-wrap:wrap}.studio-shot-row{gap:10px;flex-wrap:wrap}}
/* Video production workbench: source, editable prompt, and result stay together. */
.video-workbench-active .content{max-width:none;padding:24px}.video-workbench-active .page-heading{margin-bottom:20px}.workbench-layout{display:grid;grid-template-columns:40px minmax(0,1fr);gap:15px;align-items:start}.workbench-main{min-width:0}.workbench-segment-rail{position:sticky;top:18px;display:flex;flex-direction:column;gap:8px;max-height:85vh;overflow:auto;padding:3px}.workbench-segment-rail a,.workbench-segment-rail button{display:grid;place-items:center;flex-shrink:0;width:32px;height:34px;border:1px solid #d6e0d9;border-radius:7px;background:#fffefb;text-decoration:none;color:#6e8173;font-size:12px;cursor:pointer}.workbench-segment-rail a.active,.workbench-segment-rail a:hover{background:#244c3d;color:white;border-color:#244c3d}.workbench-video-window{padding:0;overflow:hidden;background:#fcfdf9;border:1px solid #dbe4da;border-radius:14px;scroll-margin-top:18px}.workbench-video-window>.workbench-segment-header{padding:18px 20px;margin:0;border-bottom:1px solid #e3e9de;gap:12px}.workbench-segment-header h2{font-size:19px}.workbench-time{display:block;font-size:11px;color:#87977e;margin-top:6px}.workbench-segment-mode{display:flex;align-items:center;flex-wrap:wrap;gap:12px;padding:11px 18px;background:#f4f7ef;border-bottom:1px solid #e1e8d9;font-size:11px;color:#5c7456}.workbench-mode-control{display:flex;flex-wrap:wrap;gap:14px;padding:7px 10px;border-radius:7px;background:#e9f0e3}.workbench-mode-control label{display:flex;align-items:center;gap:6px;cursor:pointer}.workbench-mode-control input{accent-color:#315a42;min-height:0}.workbench-mode-spacer{flex:1}.workbench-columns{display:grid;grid-template-columns:minmax(185px,.7fr) minmax(330px,1.5fr) minmax(250px,1fr);gap:0;align-items:stretch}.workbench-side{padding:18px 15px;border-right:1px solid #e3e9df;background:#fafbf7;min-width:0}.workbench-panel-title,.workbench-assets-heading,.workbench-composer-head,.workbench-preview-head{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:12px;color:#3c5b43}.workbench-source{margin:18px 0;font-size:11px;color:#687c5c}.workbench-source summary,.workbench-shots summary,.workbench-history summary{cursor:pointer}.workbench-source-body{white-space:pre-wrap;overflow-wrap:anywhere;max-height:170px;overflow:auto;border:1px solid #dce4d7;border-radius:7px;padding:10px;margin-top:9px;background:white;color:#52614f;line-height:1.8}.workbench-assets-heading{padding-top:12px;border-top:1px solid #e0e8d9}.workbench-asset-group{margin:16px 0}.workbench-asset-group h4{font-size:11px;color:#76886b;font-weight:500;margin:0 0 9px}.workbench-asset-row{display:flex;align-items:center;gap:9px;margin:9px 0}.workbench-asset-thumb{border:1px solid #dbe4d4;border-radius:7px;width:46px;height:46px;padding:0;overflow:hidden;flex-shrink:0;background:#edf2e7;cursor:zoom-in;color:#829575}.workbench-asset-thumb.empty{cursor:default}.workbench-asset-thumb img{width:100%;height:100%;object-fit:cover}.workbench-asset-name{min-width:0;flex:1}.workbench-asset-name b,.workbench-asset-name small{display:block;overflow-wrap:anywhere}.workbench-asset-name b{font-size:11px;color:#4a6244;line-height:1.6}.workbench-asset-name small{font-size:9px;color:#8a9b7d;margin-top:3px}.workbench-insert{font-size:16px;flex-shrink:0}.workbench-manage-assets{width:100%;padding:10px;border:1px dashed #b7cab0;border-radius:7px;background:transparent;font-size:11px;color:#59794a;cursor:pointer}.workbench-composer{min-width:0;padding:18px}.workbench-composer-head small{display:block;font-size:10px;color:#8a9b7c;line-height:1.8;margin-top:5px}.workbench-composer-head .small-btn{padding:7px 10px;font-size:10px;flex-shrink:0}.workbench-composer-tools{display:flex;flex-wrap:wrap;align-items:center;gap:10px;padding:11px 0;border-bottom:1px solid #e0e7d9;margin-bottom:14px}.workbench-composer-tools>span{color:#7f956c}.workbench-prompt-field{margin-bottom:12px}.studio-rich-prompt{display:block;box-sizing:border-box;width:100%;padding:14px;border:1px solid #d6e0ce;border-radius:8px;background:#fffefb;min-height:310px!important;height:auto;max-height:none;overflow:visible;resize:none;white-space:pre-wrap;overflow-wrap:anywhere;word-break:break-word;color:#344d38;font-family:inherit;font-size:13px;line-height:2.2!important;outline:none;cursor:text}.studio-rich-prompt:focus{border-color:#77966a;box-shadow:0 0 0 3px #6b8b5614}.prompt-mention-chip{display:inline-flex;vertical-align:middle;align-items:center;gap:5px;max-width:100%;padding:2px 6px 2px 2px;margin:1px 3px;border:1px solid #cbdcc4;border-radius:6px;background:#eff5ea;line-height:1.35;user-select:all;white-space:nowrap;cursor:zoom-in}.prompt-mention-chip img{width:34px;height:32px;border-radius:4px;object-fit:cover;display:block}.prompt-mention-label{font-size:10px;color:#49713e;max-width:130px;overflow:hidden;text-overflow:ellipsis}.prompt-mention-chip.missing{background:#fff5e9;border-color:#d9bc98;cursor:default}.prompt-mention-missing,.prompt-mention-audio{display:grid;place-items:center;width:27px;height:30px;font-size:20px;color:#74905d}.prompt-mention-chip.audio{cursor:default}.workbench-bound-summary{border-top:1px solid #e3e9de;padding-top:12px;margin-top:12px}.workbench-bound-summary .studio-binding-heading{font-size:11px;margin-bottom:6px}.workbench-bound-summary .reference-bound-grid{grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:7px;max-height:210px;overflow:auto}.workbench-bound-summary .reference-bound-card{padding:7px;gap:7px;border-radius:7px}.workbench-bound-summary .reference-bound-card img,.workbench-bound-summary .reference-audio-icon{width:35px;height:35px}.workbench-bound-summary .reference-bound-info b{font-size:10px}.workbench-bound-summary .reference-bound-info small{font-size:9px}.workbench-bound-summary>.helper{font-size:10px;line-height:1.8}.workbench-shots{font-size:11px;color:#7d906f;padding:12px 0;border-top:1px solid #e2e8db;margin-top:12px}.workbench-shots .studio-shot-row{gap:10px;flex-wrap:wrap}.workbench-generation-settings{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(75px,.6fr) minmax(75px,.6fr);gap:10px;align-items:start;padding-top:15px}.workbench-generation-settings .model-choice{margin-top:0}.workbench-generation-settings>.model-choice>small{display:none}.workbench-generation-settings .field{margin:0}.workbench-generation-settings select{width:100%;min-width:0;font-size:11px}.workbench-verify{margin:14px 0;font-size:10px!important}.workbench-submit{display:flex;align-items:center;justify-content:flex-end;gap:12px;padding-top:12px;border-top:1px solid #e0e7d7}.workbench-submit .dialog-error{flex:1;font-size:11px;overflow-wrap:anywhere}.workbench-submit .primary-btn{flex-shrink:0;padding:11px 17px}.workbench-preview{padding:18px;background:#f5f7f1;border-left:1px solid #e0e7da;min-width:0}.workbench-preview-head{margin-bottom:18px}.workbench-preview-head>span{font-size:10px;color:#8b9b7e}.workbench-preview-empty{min-height:330px;aspect-ratio:4/5;max-height:580px;background:#26312d;border-radius:10px;display:flex;flex-direction:column;align-items:center;justify-content:center;color:#d3ddd1;gap:16px;padding:20px;text-align:center}.workbench-preview-empty b{font-size:13px;font-weight:500}.workbench-preview-empty small{font-size:10px;color:#9bac9e;line-height:1.8}.workbench-play-mark{display:grid;place-items:center;width:52px;height:52px;background:#ffffff18;border:1px solid #ffffff24;border-radius:50%;font-size:20px;padding-left:3px}.workbench-video-output{background:#26312d;border-radius:9px;overflow:hidden;color:#b5c4b4}.workbench-video-output video{display:block;width:100%;max-height:580px;min-height:250px}.workbench-video-output>a{display:flex;padding:12px;color:#ddedda}.workbench-result-meta{font-size:10px;color:#829575;line-height:1.8;overflow-wrap:anywhere;margin-top:12px}.workbench-history{font-size:11px;color:#7a8d6b;margin-top:20px}.workbench-history>div{display:flex;align-items:center;justify-content:space-between;gap:10px;border-bottom:1px solid #dce5d4;padding:10px 0;line-height:1.7}.workbench-old-results{display:none}.prompt-image-viewer{position:fixed;inset:0;z-index:950;background:#101d18e8;display:flex;align-items:center;justify-content:center;padding:54px 30px 30px;backdrop-filter:blur(6px)}.prompt-image-viewer>button{position:absolute;right:22px;top:15px;border:1px solid #ffffff50;background:#ffffff12;color:white;width:38px;height:38px;border-radius:50%;font-size:26px;cursor:pointer}.prompt-image-viewer figure{margin:0;max-width:96%;text-align:center}.prompt-image-viewer figure img{display:block;max-width:100%;max-height:80vh;object-fit:contain;margin:auto;border-radius:7px}.prompt-image-viewer figcaption{color:#e0eadf;font-size:13px;padding-top:16px}.workbench-toolbar-secondary{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin:10px 0;font-size:10px;color:#859777}.video-workbench-active .studio-video-toolbar>div:first-child{display:none}
@media(min-width:1700px){.workbench-columns{grid-template-columns:minmax(220px,.65fr) minmax(440px,1.6fr) minmax(330px,1.15fr)}.workbench-preview-empty{min-height:420px}}
@media(max-width:1250px){.workbench-columns{grid-template-columns:minmax(180px,.6fr) minmax(0,1.5fr)}.workbench-preview{grid-column:2;border-left:0;border-top:1px solid #e0e7da}.workbench-side{grid-row:1/3}.workbench-preview-empty{min-height:220px;aspect-ratio:16/9}.workbench-video-output video{max-height:420px}}
@media(max-width:900px){.video-workbench-active .content{padding:20px 14px}.workbench-layout{grid-template-columns:30px minmax(0,1fr);gap:9px}.workbench-segment-rail a,.workbench-segment-rail button{width:27px;height:31px}.workbench-columns{grid-template-columns:1fr}.workbench-side{grid-row:auto;border:0;border-bottom:1px solid #e0e7da}.workbench-source-body{max-height:110px}.workbench-asset-group{display:inline-block;vertical-align:top;width:calc(50% - 10px);margin:10px 8px 6px 0}.workbench-preview{grid-column:auto}.workbench-segment-header .studio-button-row{flex-wrap:wrap}.workbench-composer{padding:15px}.workbench-segment-mode{gap:8px;padding:10px 13px}.workbench-video-window>.workbench-segment-header{padding:15px}.workbench-generation-settings{grid-template-columns:1fr 1fr}.workbench-generation-settings>div:first-child{grid-column:1/-1}.workbench-prompt-field .studio-rich-prompt{min-height:330px!important;max-height:none}}
@media(max-width:480px){.workbench-asset-group{width:100%;margin-right:0}.workbench-composer-head{align-items:flex-start;flex-wrap:wrap}.workbench-submit{flex-wrap:wrap}.workbench-submit .dialog-error{flex-basis:100%}.workbench-submit .primary-btn{width:100%}.workbench-mode-control{gap:8px;font-size:10px}.workbench-segment-header h2 small{display:block;margin:5px 0}.prompt-image-viewer{padding:52px 12px 20px}}
/* Project reference media and inline @ picker */
.reference-bound-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(265px,1fr));gap:10px;margin:12px 0}.reference-bound-card{display:flex;align-items:center;gap:12px;padding:12px;border:1px solid #dce5df;border-radius:12px;background:#fbfcfa;min-width:0}.reference-bound-card.missing{border-color:#d6a382;background:#fff8f1}.reference-bound-card img,.reference-audio-icon{width:55px;height:55px;object-fit:cover;border-radius:8px;flex-shrink:0}.reference-audio-icon{display:grid;place-items:center;background:#e4eee9;font-size:27px;color:#28604b}.reference-bound-info{flex:1;min-width:0}.reference-bound-info b,.reference-bound-info small,.reference-library-info small{display:block;overflow-wrap:anywhere}.reference-bound-info b{font-size:12px}.reference-bound-info small{font-size:11px;color:#667a6f;margin:4px 0}.reference-bound-info audio{height:30px;width:100%;max-width:260px}.reference-editor-help{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:12px;color:#607467;margin:8px 0}.reference-mentions{position:fixed;z-index:600;overflow:auto;background:#fffefa;border:1px solid #cbd9d1;border-radius:13px;box-shadow:0 12px 40px #16392b30;padding:6px}.reference-mention-heading{padding:8px 9px;font-size:12px;color:#244b3c}.reference-mention-heading small{display:block;font-size:10px;color:#75867c;margin-top:4px}.reference-mentions [role=option]{display:flex;align-items:center;gap:10px;text-align:left;width:100%;border:0;border-radius:8px;background:transparent;padding:8px;cursor:pointer;color:#193c34}.reference-mentions [role=option][aria-selected=true],.reference-mentions [role=option]:hover{background:#e6eee6}.reference-mentions img,.reference-voice-badge{width:42px;height:42px;object-fit:cover;border-radius:6px}.reference-voice-badge{background:#e1e8de;display:grid;place-items:center;font-size:25px}.reference-mentions b,.reference-mentions small{display:block}.reference-mentions b{font-size:12px}.reference-mentions [role=option] small{color:#7b8b7f;font-size:10px;margin-top:3px}.reference-mention-upload{border:0;border-top:1px solid #dce5df;background:transparent;width:100%;text-align:left;padding:12px;color:#256343;cursor:pointer}.reference-library-overlay{position:fixed;inset:0;background:#112c2566;z-index:700;display:flex;align-items:center;justify-content:center;padding:24px}.reference-library{width:min(880px,100%);max-height:90vh;overflow:auto;padding:26px;background:#fdfcf7;border-radius:18px;box-shadow:0 24px 80px #10281f44}.reference-library header{display:flex;justify-content:space-between;gap:20px}.reference-library h2{font-size:23px;margin:8px 0}.reference-library p{font-size:12px;color:#718274;line-height:1.7}.reference-library-upload{display:flex;align-items:center;flex-wrap:wrap;gap:12px;border-block:1px solid #dee5dc;padding:18px 0;margin:15px 0}.reference-library-upload label{cursor:pointer}.reference-library-upload small{font-size:11px;color:#687c6e;line-height:1.7}.reference-library-item{display:flex;align-items:center;gap:16px;padding:15px 0;border-bottom:1px solid #e1e7de}.reference-library-item>img,.reference-library-audio{width:90px;height:78px;object-fit:cover;border-radius:10px;flex-shrink:0}.reference-library-audio{background:#e5ecdf;display:grid;place-items:center;font-size:36px;color:#326047}.reference-library-info{flex:1;min-width:0;font-size:13px}.reference-library-info small{font-size:11px;color:#738274;margin-top:6px}.reference-library-info audio{height:32px;width:100%;max-width:320px;margin-top:10px}.reference-library-actions{display:flex;gap:5px;flex-direction:column;align-items:flex-end}.reference-library footer{display:flex;justify-content:space-between;align-items:center;font-size:11px;gap:20px;padding-top:22px;color:#778579}.reference-library .verify-row{font-size:11px;margin-top:10px}.reference-rename{max-width:260px;width:70%}@media(max-width:600px){.reference-library-overlay{padding:8px}.reference-library{padding:17px}.reference-library-item{gap:10px}.reference-library-item>img,.reference-library-audio{width:60px;height:64px}.reference-library-actions .small-btn{font-size:11px;padding:8px}.reference-bound-grid{grid-template-columns:1fr}.studio-binding-heading{flex-wrap:wrap}.reference-editor-help{flex-wrap:wrap}}

/* Keep editable prompts and the 16:9 player at the same fixed viewing height. */
.workbench-video-window{--workbench-media-height:240px}
.workbench-video-window .workbench-prompt-field .studio-rich-prompt{height:var(--workbench-media-height)!important;min-height:var(--workbench-media-height)!important;max-height:var(--workbench-media-height)!important;overflow-y:scroll;overflow-x:hidden;resize:none;scrollbar-gutter:stable;overscroll-behavior-y:contain;scrollbar-color:#ae9cc6 #f2edf8}
.workbench-video-window .workbench-preview .workbench-preview-empty{box-sizing:border-box;width:100%;height:var(--workbench-media-height);min-height:var(--workbench-media-height);max-height:var(--workbench-media-height);aspect-ratio:16/9;padding:12px;gap:8px}
.workbench-video-window .workbench-preview .workbench-video-output:not(.workbench-player-expanded) video{box-sizing:border-box;width:100%;height:var(--workbench-media-height);min-height:var(--workbench-media-height);max-height:var(--workbench-media-height);aspect-ratio:16/9;object-fit:contain;background:#24232a}

/* Center each landscape frame on the matching fixed prompt editor. */
.workbench-video-window .workbench-preview .workbench-preview-empty,.workbench-video-window .workbench-preview .workbench-video-output:not(.workbench-player-expanded){margin-top:var(--workbench-preview-offset,0px)}
.workbench-advanced-tools{margin:22px 0;padding-top:18px;border-top:1px solid #e7e0ef}
.workbench-advanced-tools h3{font-size:16px;color:#635077;margin:0 0 12px}
.workbench-advanced-tools .workbench-verify{display:flex;margin:18px 0 0}

.workbench-preview>[data-video-status]:not(:empty){margin-top:14px}
