/* source: /assets/index-Bv7gH4PR.css */
.wf-asset-preview{position:absolute;top:0;right:0;bottom:0;left:0;display:block;width:100%;height:100%;min-width:0;min-height:0;padding:0;border:0;background:#000;cursor:zoom-in}.wf-asset-preview:disabled{opacity:1;cursor:default}.wf-card-arrow{position:absolute;top:50%;transform:translateY(-50%);z-index:2;display:grid;place-items:center;width:32px;height:40px;padding:0;border:1px solid #ffffff45;border-radius:6px;background:#111a;color:#fff;cursor:pointer}.wf-card-arrow.prev{left:8px}.wf-card-arrow.next{right:8px}.wf-card-arrow:hover{background:#111e}.wf-image-dots{position:absolute;bottom:6px;left:50%;transform:translate(-50%);z-index:2;display:flex;justify-content:center;flex-wrap:wrap;max-width:calc(100% - 32px);width:max-content;padding:2px 6px;border-radius:8px;background:#1119}.wf-image-dots button{display:grid;place-items:center;width:22px;height:24px;padding:0;border:0;background:transparent;cursor:pointer}.wf-image-dots span{width:6px;height:6px;border-radius:50%;background:#ffffff65}.wf-image-dots button[aria-current=true] span{background:#fff;box-shadow:0 0 0 2px #ffffff25}.wf-card-arrow:focus-visible,.wf-image-dots button:focus-visible{outline:2px solid white;outline-offset:2px}.wf-card-history-error{position:absolute;bottom:38px;left:8px;padding:2px 6px;background:#111c;color:#ffb7b7;font-size:12px}.wf-card-select,.wf-preview-selected{position:absolute;top:10px;right:10px;z-index:2;display:flex;align-items:center;gap:5px;padding:6px 9px;border:1px solid #ffffff55;border-radius:6px;background:#181b20e6;color:#fff;font-size:12px}.wf-card-select{cursor:pointer}.wf-card-select.selected,.wf-preview-selected{background:#164a36ee;border-color:#74c8a2;color:#d7ffea;opacity:1}.wf-card-select:disabled{cursor:default}.wf-preview-selected{right:54px;pointer-events:none}.wf-card-history-error{max-width:calc(100% - 16px);overflow-wrap:anywhere}.wf-image-overlay{position:fixed;top:0;right:0;bottom:0;left:0;z-index:100;background:#000d;display:grid;place-items:center;padding:20px}.wf-image-dialog{width:min(1200px,100%);height:min(900px,94dvh);display:flex;flex-direction:column;border:1px solid #555;border-radius:8px;background:#101114;color:#fff;overflow:hidden}.wf-image-dialog header{display:flex;gap:10px;align-items:center;padding:12px}.wf-image-dialog header strong{flex:1;min-width:0;overflow-wrap:anywhere}.wf-image-dialog header .wf-btn{flex-shrink:0;width:40px;height:40px;padding:8px}.wf-image-dialog>p{color:#ffa5b5;margin:0 12px 8px}.wf-image-dialog footer{display:flex;justify-content:center;padding:8px 12px 16px}.wf-image-stage{position:relative;flex:1;min-height:0;padding:0 48px 16px}.wf-image-scroll{height:100%;overflow:auto;display:grid;place-items:center}.wf-image-scroll img{display:block;max-width:100%;max-height:100%;object-fit:contain}.wf-image-scroll.zoomed{display:block}.wf-image-scroll.zoomed img{width:200%;max-width:none;max-height:none}.wf-image-prev,.wf-image-next{position:absolute;top:50%;transform:translateY(-50%);width:40px;height:48px;padding:8px;z-index:1}.wf-image-prev{left:4px}.wf-image-next{right:4px}.wf-image-prev svg,.wf-image-next svg{width:24px;height:24px;flex-shrink:0}.wf-image-dialog .wf-image-prev:hover:not(:disabled),.wf-image-dialog .wf-image-next:hover:not(:disabled){transform:translateY(-50%)}@media(max-width:640px){.wf-image-overlay{padding:8px}.wf-image-dialog header{gap:4px;padding:8px;font-size:12px}.wf-image-dialog header .wf-btn{width:34px;height:36px;padding:6px}.wf-image-stage{padding:0 40px 12px}.wf-image-prev,.wf-image-next{width:32px;padding:4px}}.wf-asset-preview .wf-empty-frame{position:absolute;top:0;right:0;bottom:0;left:0;display:grid;place-items:center;box-sizing:border-box;width:100%;height:100%;background:linear-gradient(135deg,#1c1f27,#12141a);color:#8b93a7}.wf-empty-frame:before{content:"";position:absolute;top:6.67%;right:5%;bottom:6.67%;left:5%;border:1px dashed #3a4050;border-radius:10px}.wf-empty-frame>span{max-width:85%;text-align:center;overflow-wrap:anywhere;font-size:14px}.wf-empty-frame small{display:block;margin-top:8px;font-size:11px;color:#5c6478}.wf-asset-preview .wf-empty-frame:before{top:0;right:0;bottom:0;left:0;border-radius:0}.wf-asset-preview .wf-empty-frame{aspect-ratio:1672/941}.account-manager{width:min(920px,calc(100vw - 24px));max-height:88vh;overflow:auto;border:1px solid #d9dee7;border-radius:16px;padding:24px;background:#fff;color:#1f2937;box-sizing:border-box}.account-manager::backdrop{background:#00000080}.account-manager-heading,.account-row{display:flex;justify-content:space-between;align-items:center;gap:16px}.account-manager h2,.account-manager h3{margin:0 0 14px}.account-manager form{padding:20px 0;border-top:1px solid #e5e7eb}.account-manager p{font-size:13px;line-height:1.6}.account-manager small{color:#667085}.account-form-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;align-items:end}.account-manager label{display:flex;flex-direction:column;gap:8px;font-size:13px}.account-manager .wf-input{width:100%;box-sizing:border-box}.account-form-grid>button{justify-self:start}.account-row{padding:16px 0;border-top:1px solid #e5e7eb}.account-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}.account-row p{margin:6px 0}@media(max-width:650px){.account-manager{padding:16px}.account-form-grid{grid-template-columns:1fr}.account-row{align-items:flex-start;flex-direction:column}.account-actions{justify-content:flex-start}.account-manager-heading{align-items:flex-start}}.admin-warnings{border:1px solid #816542;border-radius:12px;padding:18px;margin:12px 0 24px;background:#c49b5b09}.admin-warnings-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}.admin-warnings-heading h3{margin:0;color:#edbd85}.admin-warnings-heading p{font-size:13px;color:#b7aa99;margin:6px 0}.admin-warnings-settings{display:flex;gap:10px;align-items:end;flex-wrap:wrap;margin:18px 0;padding:14px;background:#ffffff04;border-radius:8px}.admin-warnings-settings label{flex:1;min-width:160px;display:grid;gap:8px}.admin-warnings-settings small{flex-basis:100%;overflow-wrap:anywhere;color:#b7aa99}.admin-warning-filter{display:flex;align-items:center;gap:10px;margin:12px 0}.admin-warning-filter select{flex:1;min-width:0}.admin-warning-records{max-height:450px;overflow:auto}.admin-warning-records article{border:1px solid #51473c;padding:14px;border-radius:9px;margin-bottom:10px;overflow-wrap:anywhere}.admin-warning-records header{display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap}.admin-warning-records header span,.admin-warning-records small{font-size:11px;color:#b7aa99}.admin-warning-item{margin-top:12px;padding-top:10px;border-top:1px solid #51473c}.admin-warning-item b{font-size:11px;color:#edbd85}.admin-warning-item p{font-size:13px;white-space:pre-wrap;margin:5px 0}@media(max-width:540px){.admin-warnings{padding:12px}.admin-warnings-heading{align-items:start}.admin-warning-filter{flex-wrap:wrap}}.skill-progress{margin:20px 0 24px;padding:22px;border:1px solid #515056;border-radius:8px;background:#1c1d23;color:#f2f3f6;letter-spacing:0}.skill-progress-heading{display:flex;gap:18px;align-items:center}.skill-progress-ring{flex:0 0 76px;width:76px;height:76px;border-radius:50%;background:conic-gradient(#e8b775 var(--checkpoint-progress),#373a45 0);display:grid;place-items:center;position:relative}.skill-progress-ring:before{content:"";position:absolute;top:6px;right:6px;bottom:6px;left:6px;background:#1c1d23;border-radius:50%}.skill-progress-ring strong{position:relative;font-size:16px}.skill-progress-summary{flex:1;min-width:0}.skill-progress-eyebrow{color:#e8b775;font-size:12px;font-weight:700}.skill-progress h2{font-size:24px;line-height:1.3;margin:6px 0}.skill-progress p{color:#b5b8c2;font-size:13px;overflow-wrap:anywhere}.skill-progress progress{width:100%;height:6px;display:block;border:0;border-radius:3px;overflow:hidden;background:#363840;accent-color:#92d6ee}.skill-progress progress::-webkit-progress-bar{background:#363840}.skill-progress progress::-webkit-progress-value{background:linear-gradient(90deg,#e8b775,#92d6ee)}.skill-progress progress::-moz-progress-bar{background:#92d6ee}.skill-progress-caption,.skill-checkpoint-label{display:flex;justify-content:space-between;gap:12px;font-size:12px;color:#b5b8c2;margin:8px 0;flex-wrap:wrap}.skill-progress-metrics{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin:22px 0}.skill-progress-metrics>div{border:1px solid #3e4049;border-radius:6px;padding:10px;background:#26272e;min-width:0}.skill-progress-metrics strong,.skill-progress-metrics span{display:block;overflow-wrap:anywhere}.skill-progress-metrics strong{font-size:18px}.skill-progress-metrics span{font-size:11px;color:#b5b8c2;margin-top:4px}.skill-progress summary{cursor:pointer;font-size:13px;font-weight:600}.skill-checkpoints{display:grid;gap:18px;margin-top:16px}.skill-checkpoint{display:flex;gap:10px;align-items:center;color:#8c909d}.skill-checkpoint>div{flex:1;min-width:0}.skill-checkpoint.done>svg{color:#62c8a0}.skill-checkpoint.running>svg{color:#e8b775}.skill-checkpoint-label strong{color:#edf0f5}.skill-progress-spin{animation:skill-progress-rotate 1.5s linear infinite}.skill-conversation{margin-top:20px}.skill-conversation code{display:block;margin-top:8px;overflow-wrap:anywhere;font-size:12px}.skill-requirements{margin-bottom:26px}.skill-requirements>h2{font-size:18px}.skill-requirements>h2 span{color:#9298a5;font-size:14px}.skill-requirement-image{aspect-ratio:16/9;background:#25272d;color:#aeb3bf;display:flex;flex-direction:column;gap:8px;align-items:center;justify-content:center}.skill-requirements textarea{min-height:130px;width:100%;resize:vertical}@keyframes skill-progress-rotate{to{transform:rotate(360deg)}}@media(max-width:600px){.skill-progress{padding:14px}.skill-progress-heading{align-items:flex-start;gap:12px}.skill-progress-ring{flex-basis:56px;width:56px;height:56px}.skill-progress h2{font-size:21px}.skill-progress-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(prefers-reduced-motion:reduce){.skill-progress-spin{animation:none}}.project-pipeline{margin:20px 0}.pipeline-progress{margin-top:20px;display:grid;gap:24px}.pipeline-progress>div>span{float:right;color:var(--muted,#adb0b9)}.pipeline-progress progress{display:block;width:100%;height:7px;margin-top:12px;accent-color:#ddbb81}.pipeline-batches{display:grid;grid-template-columns:repeat(auto-fit,minmax(115px,1fr));gap:10px;margin:14px 0}.pipeline-batch{padding:14px;border:1px solid #45454d;border-radius:8px;opacity:.5}.pipeline-batch small{display:block;margin-top:6px}.pipeline-batch.done{opacity:1;border-color:#dbbb83;background:#dbbb8320}.pipeline-batch.running{opacity:1;border-color:#aad4df}.pipeline-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#0009;z-index:90;display:grid;place-items:center;padding:20px}.pipeline-dialog{width:min(680px,100%);max-height:80vh;overflow:auto}.canvas-episode-picker{position:relative}.episode-calendar{position:absolute;top:48px;left:0;z-index:40;width:min(460px,85vw);max-height:65vh;overflow:auto;box-shadow:0 15px 40px #0008}.episode-calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px;margin-top:14px}.episode-calendar-grid .wf-btn{padding:9px 4px;min-width:0}.pipeline-agents{min-width:0}.pipeline-agents-heading{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap}.pipeline-agents-heading>span{color:var(--muted,#adb0b9);font-size:13px}.pipeline-agent-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:10px;margin-top:14px}.pipeline-agent{min-width:0;padding:14px;border:1px solid #45454d;border-radius:8px}.pipeline-agent>div{display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap}.pipeline-agent>div>span{font-size:12px;color:var(--muted,#adb0b9)}.pipeline-agent p{margin:10px 0 6px}.pipeline-agent small{display:block;color:var(--muted,#adb0b9);margin-top:4px}.pipeline-agent.running,.pipeline-agent.writing{border-color:#aad4df}.pipeline-agent.verified{border-color:#dbbb83;background:#dbbb8314}.pipeline-agent.failed,.pipeline-agent.stopped{border-color:#c88383}@media(max-width:480px){.pipeline-agent-grid{grid-template-columns:minmax(0,1fr)}}.asset-name-search{width:240px;max-width:100%;min-width:0;flex:0 1 240px}.basic-asset-stage{padding:12px 14px;border:1px solid #e7b37b45;border-radius:8px;background:#e7b37b0d;color:#e6c49b;font-size:13px;line-height:1.7;margin:14px 0}.basic-progress{min-width:0}.basic-progress-heading{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap}.basic-progress-heading>span{color:#cbbca8;font-size:13px}.basic-block-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(135px,1fr));gap:10px;margin:14px 0}.basic-block{display:flex;flex-direction:column;gap:6px;padding:13px;border:1px solid #51473c;border-radius:9px;background:#ffffff03;min-width:0}.basic-block>strong{color:#e9dfd1;font-size:14px}.basic-block>span,.basic-block>small{font-size:12px;color:#b7aa99}.basic-block.running,.basic-block.validating{border-color:#e7b37b;background:#e7b37b12}.basic-block.running>span,.basic-block.validating>span{color:#f4c88f}.basic-block.completed,.basic-block.extracted{border-color:#739278;background:#73927816}.basic-block.completed>span,.basic-block.extracted>span{color:#b1d0ad}.basic-block.failed,.basic-block.unknown{border-color:#b87570;background:#b8757012}.basic-block.failed>span,.basic-block.unknown>span{color:#f2aaa3}.basic-block.stopped{border-color:#7c7164}.basic-block-error{overflow-wrap:anywhere;color:#f2aaa3!important}.basic-progress>small{display:block;font-size:12px;line-height:1.6}@media(max-width:480px){.basic-block-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.basic-block{padding:11px}}.pipeline-duration{border:0;margin:16px 0;padding:0;display:flex;gap:20px;flex-wrap:wrap}.pipeline-duration legend{margin-bottom:12px;font-size:14px}.pipeline-duration label{display:inline-flex;align-items:center;gap:8px;font-size:14px}.pipeline-dialog .wf-btn{margin:4px 8px 4px 0}.pipeline-dialog{box-sizing:border-box;min-width:0}.pipeline-batch-heading{display:flex;align-items:center;gap:14px;flex-wrap:wrap;min-width:0;flex:1}.pipeline-preparation-inline{min-width:0;max-width:100%;font-size:13px;color:#edbd85;overflow-wrap:anywhere}.pipeline-preparation-inline.blocked{color:#f99}.pipeline-preparation-inline.finished,.pipeline-preparation-inline.launched{color:#91c89e}@media(max-width:600px){.pipeline-batch-heading{flex-basis:100%}}.asset-parent-label{color:#ff8e8e!important;border:1px solid #d96363;background:#d9636318}.asset-child-label{color:#86bcff!important;border:1px solid #518ede;background:#518ede18}.canvas-generation{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.canvas-generation>p{flex-basis:100%;margin:0;font-size:13px}.canvas-links-dialog{padding:24px;background:#211d19;color:#f3eee6;border:1px solid #514539;border-radius:16px;box-shadow:0 24px 80px #0008}.canvas-links-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.canvas-links-heading h2{margin:0 0 8px;font-size:22px}.canvas-links-heading p{margin:0;color:#b6aa9d;font-size:13px}.canvas-links-list{display:grid;gap:10px;margin:24px 0}.canvas-link-row{display:flex;align-items:center;gap:16px;padding:14px 16px;border:1px solid #4b4035;border-radius:10px;background:#ffffff04}.canvas-link-target{flex:1;min-width:0;color:#edbd85;text-decoration:none}.canvas-link-target:hover{color:#ffdbac}.canvas-link-target>span{display:flex;align-items:center;gap:8px;font-weight:600}.canvas-link-target>small{display:block;color:#ac9e8f;font-size:12px;overflow-wrap:anywhere;margin-top:7px}.canvas-link-row>.wf-btn{flex-shrink:0}.canvas-links-footer{display:flex;justify-content:flex-end;gap:10px}.canvas-copy-status{color:#edbd85;font-size:13px}@media(max-width:480px){.canvas-links-dialog{padding:18px}.canvas-link-row{padding:12px;gap:8px}.canvas-link-target>small{font-size:11px}}.canvas-generate-dialog{display:flex;flex-direction:column;box-sizing:border-box;overflow:hidden;padding:20px;background:#191919;color:#eee;border:1px solid #45454d;border-radius:12px;max-height:min(85vh,900px)}.canvas-generate-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;flex-shrink:0}.canvas-generate-heading h2{margin:0;font-size:22px}.canvas-generate-actions{display:flex;justify-content:flex-end;gap:8px;flex-shrink:0}.canvas-generate-dialog>p{margin:10px 0 0;flex-shrink:0}.canvas-generate-episodes{overflow:auto;min-height:0;overscroll-behavior:contain;margin-top:12px}.canvas-generate-episodes .episode-calendar-grid{margin-top:0}.canvas-generate-dialog .wf-error{max-height:90px;overflow:auto}@media(max-width:600px){.canvas-generate-dialog{padding:14px;width:100%}.canvas-generate-heading{flex-wrap:wrap}.canvas-generate-heading h2{font-size:18px;flex-basis:100%}.canvas-generate-actions{margin-left:auto}.canvas-generate-actions .wf-btn{padding:9px 12px}.canvas-generate-dialog>p{font-size:12px}}.canvas-operation-notice{min-height:22px;max-width:100%;overflow-wrap:anywhere;color:#f5a9a9;font-size:13px;margin:4px 0 12px}.canvas-generate-dialog>.wf-toolbar-group{flex-shrink:0}.analysis-episode-grid{max-height:38vh;overflow:auto;overscroll-behavior:contain;padding:3px}.pipeline-dialog .analysis-episode-grid .wf-btn{margin:0;display:flex;flex-direction:column;gap:4px;align-items:center}.analysis-episode-grid small{font-size:10px}.analysis-episode-grid button:disabled{opacity:.35}.analysis-selection-hint{display:flex;align-items:center;gap:12px}.analysis-selection-hint>p{flex:1;min-width:0;margin:10px 0}.pipeline-dialog .analysis-selection-hint>.wf-btn{flex-shrink:0;margin:0}.basic-progress{border:1px solid #51473c;border-radius:12px;padding:18px;background:#ffffff03}.basic-progress-summary{display:flex;align-items:center;gap:14px;flex-wrap:wrap}.basic-progress-summary>span{font-size:13px;color:#cbbca8}.basic-progress-summary b{font-size:21px;color:#edbd85}.analysis-range-tabs{display:flex;gap:8px;overflow-x:auto;padding:4px 0;margin:12px 0;max-width:100%}.analysis-range-tabs .wf-btn{white-space:nowrap;flex-shrink:0}.analysis-range-tabs .wf-btn.active{border-color:#edbd85;color:#edbd85;background:#edbd8515}.analysis-progress-legend{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;color:#ac9e8f;font-size:12px;margin-bottom:12px}.compact-progress-grid{display:grid;grid-template-columns:repeat(10,minmax(0,1fr));gap:8px}.compact-progress-grid.asset-groups{grid-template-columns:repeat(5,minmax(0,1fr))}.compact-progress-grid .compact-episode{min-width:0;display:flex;flex-direction:column;align-items:center;gap:4px;padding:8px 2px}.compact-episode small{font-size:11px}.compact-episode.completed{color:#b1d0ad;border-color:#739278;background:#73927816}.compact-episode.extracted{color:#b1d0ad;border-color:#73927866}.compact-episode.running,.compact-episode.validating{color:#f4c88f;border-color:#e7b37b;background:#e7b37b12}.compact-episode.failed,.compact-episode.unknown{color:#f2aaa3;border-color:#b87570;background:#b8757012}.compact-episode[aria-pressed=true]{box-shadow:0 0 0 2px #edbd8540}.compact-progress-detail{margin:14px 0;padding:14px;background:#ffffff04;border-left:2px solid #edbd85;border-radius:6px;overflow-wrap:anywhere}.partial-story-summary{margin:12px 0}.partial-story-summary>summary{cursor:pointer;color:#edbd85}.compact-analysis-dialog{display:flex;flex-direction:column;max-height:min(88dvh,850px);overflow:hidden}.compact-analysis-dialog>h2,.compact-analysis-dialog>.analysis-selected-summary,.compact-analysis-dialog>.analysis-selection-hint,.compact-analysis-dialog>.analysis-jump{flex-shrink:0}.analysis-selected-summary{max-height:65px;overflow:auto;overflow-wrap:anywhere}.analysis-jump{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.analysis-jump input{width:75px;min-width:0;margin:0 5px;padding:6px}.compact-analysis-scroll{min-height:0;overflow:auto;overscroll-behavior:contain;margin-top:10px}.compact-analysis-dialog .analysis-episode-grid{max-height:none;overflow:visible;grid-template-columns:repeat(10,minmax(0,1fr));margin:10px 0;padding:3px}.compact-analysis-dialog .analysis-range-tabs{margin:0 0 10px}.compact-analysis-footer{flex-shrink:0;border-top:1px solid #51473c;margin-top:12px;padding-top:8px;max-height:38dvh;overflow:auto}.compact-analysis-footer .pipeline-duration{margin:10px 0}.compact-analysis-footer>p{font-size:12px;margin:5px 0}.compact-analysis-dialog .analysis-range-tabs .wf-btn{margin:0}@media(max-width:600px){.basic-progress{padding:14px}.compact-progress-grid,.compact-progress-grid.asset-groups{grid-template-columns:repeat(5,minmax(0,1fr));gap:6px}.compact-analysis-dialog .analysis-episode-grid{grid-template-columns:repeat(5,minmax(0,1fr))}.compact-analysis-dialog{padding:14px}.compact-analysis-dialog>h2{font-size:19px}.compact-analysis-footer{max-height:34dvh}.compact-analysis-dialog .analysis-selection-hint>p{font-size:12px}.analysis-selected-summary{font-size:12px}}.episode-target{border:1px solid #65513b;border-radius:12px;padding:16px;background:linear-gradient(135deg,#d9ad7210,#ffffff02);margin:16px 0;color:#eee7de;min-width:0}.episode-target-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:13px}.episode-target-heading>span{display:flex;align-items:center;gap:8px;font-size:14px;font-weight:600}.episode-target-heading svg{color:#e6b77d}.episode-target-heading>small{font-size:11px;color:#ac9e8f}.episode-target-options{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.episode-target-option{position:relative;display:flex;flex-direction:column;gap:7px;padding:12px;border:1px solid #494039;border-radius:9px;background:#151413;cursor:pointer;min-width:0;transition:border-color .15s,background .15s}.episode-target-option:hover{border-color:#ae8a5e}.episode-target-option.selected{border-color:#e3b579;background:#e3b57915;box-shadow:inset 0 0 0 1px #e3b57915}.episode-target-option input{position:absolute;width:1px;height:1px;opacity:0}.episode-target-option:focus-within{outline:2px solid #edbd85;outline-offset:3px}.episode-target-option-title{display:flex;align-items:center;justify-content:space-between;gap:4px;font-size:14px;font-weight:600}.episode-target-option-title svg{visibility:hidden;flex-shrink:0}.episode-target-option.selected .episode-target-option-title{color:#f2c58c}.episode-target-option.selected svg{visibility:visible}.episode-target-option>small{font-size:11px;color:#aa9f93}.episode-target-custom{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:13px;font-size:13px}.episode-target-custom>div{display:flex;align-items:center;gap:9px}.episode-target-custom input{box-sizing:border-box;width:105px;min-width:0;padding:9px 10px;border:1px solid #665340;border-radius:7px;background:#151413;color:#f4e7d5;font:inherit}.episode-target-custom input:focus{outline:2px solid #edbd85;outline-offset:2px}.episode-target-custom input[aria-invalid=true]{border-color:#cf837c}.episode-target-custom span,.episode-target-custom>small{color:#b5a794}.episode-target-summary{margin-top:14px;padding-top:13px;border-top:1px solid #a58b6530;font-size:13px;line-height:1.65}.episode-target-summary strong{font-size:17px;color:#f2c58c;font-weight:600}.episode-target-summary strong span{font-size:12px;font-weight:400;color:#bfb1a0}.episode-target-summary i{font-style:normal;margin:0 12px;color:#aa8e69}.episode-target-summary p{margin:5px 0;color:#c9bcad}.episode-target-summary>small{font-size:11px;color:#a79a8a}.compact-analysis-dialog .analysis-dialog-body{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:0 3px 4px;scrollbar-gutter:stable}.compact-analysis-dialog .analysis-dialog-body .compact-analysis-footer{max-height:none;overflow:visible;min-height:0}.compact-analysis-dialog .analysis-dialog-body .compact-analysis-scroll{max-height:210px;min-height:0;overflow:auto;flex-shrink:0}.compact-analysis-dialog .analysis-dialog-actions{flex:0 0 auto;display:flex;gap:10px;align-items:center;border-top:1px solid #51473c;padding-top:12px;margin-top:12px;background:#191919}.compact-analysis-dialog .analysis-dialog-actions .wf-btn{margin:0;min-height:44px}.compact-analysis-dialog .analysis-dialog-body .analysis-selected-summary{margin-top:0;font-size:12px}.compact-analysis-dialog>h2{margin:0 0 16px}.pipeline-duration.story-duration-options{gap:10px;margin:14px 0 18px}.story-duration-options label{position:relative;padding:10px 17px;border:1px solid #494039;border-radius:8px;background:#ffffff03}.story-duration-options label:has(input:checked){border-color:#e3b579;color:#f2c58c;background:#e3b57915}.story-duration-options input{accent-color:#e3b579}@media(max-width:540px){.episode-target{padding:12px;margin:12px 0}.episode-target-options{grid-template-columns:repeat(2,minmax(0,1fr))}.episode-target-option{padding:10px 12px;gap:4px}.episode-target-summary strong{font-size:15px}.episode-target-summary i{margin:0 8px}.compact-analysis-dialog .analysis-dialog-body .compact-analysis-scroll{max-height:170px}.episode-target-heading>small{font-size:10px}.pipeline-overlay:has(.compact-analysis-dialog){padding:12px}.pipeline-dialog.compact-analysis-dialog{max-height:calc(100dvh - 24px);width:100%}.analysis-dialog-actions>.primary{flex:1;justify-content:center}}.wf-episode-picker{display:flex;align-items:center;flex-wrap:wrap;gap:8px}.wf-episode-dialog{box-sizing:border-box;width:min(480px,calc(100vw - 24px));max-height:calc(100dvh - 32px);overflow:auto;padding:20px;border:1px solid #735343;border-radius:14px;background:#191919;color:#eee;box-shadow:0 20px 70px #0009}.wf-episode-dialog::backdrop{background:#0009}.wf-episode-heading,.wf-episode-paging,.wf-episode-footer{display:flex;align-items:center;gap:12px;justify-content:space-between}.wf-episode-heading strong{font-size:20px}.wf-episode-heading span{margin-left:auto;color:#bbb;font-size:13px}.wf-episode-dialog .wf-muted{font-size:13px;line-height:1.7;margin:14px 0}.wf-episode-paging{margin-bottom:14px;font-size:14px}.wf-episode-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px}.wf-episode-day{min-width:0;min-height:42px;border:1px solid transparent;border-radius:7px;color:#eee;background:#272727;cursor:pointer;font:inherit}.wf-episode-day:hover{border-color:#ff986b}.wf-episode-day.in-range{background:#593321;color:#ffe0cf}.wf-episode-day.endpoint{background:#d9562f;color:#fff;border-color:#ffb38e}.wf-episode-day:focus-visible{outline:2px solid #ffb38e;outline-offset:1px}.wf-episode-footer{margin-top:18px;flex-wrap:wrap;font-size:13px}.wf-episode-footer>span{flex:1}@media(max-width:480px){.wf-episode-dialog{padding:14px}.wf-episode-grid{gap:3px}.wf-episode-day{min-height:38px}}.wf-canvas-asset-picker{min-width:0;margin-top:12px}.wf-canvas-asset-picker>button{width:100%;justify-content:center;white-space:normal}.wf-canvas-asset-panel{margin-top:8px;padding:10px;border:1px solid var(--line);border-radius:8px;background:#141414}.wf-canvas-asset-panel>p{margin:0 0 10px;font-size:12px;line-height:1.6}.wf-canvas-asset-options{display:grid;gap:8px;max-height:340px;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable}.wf-canvas-asset-option{display:grid;grid-template-columns:56px minmax(0,1fr) 18px;gap:8px;align-items:center;padding:8px;border:1px solid var(--line);border-radius:6px;background:#232323;cursor:pointer}.wf-canvas-asset-option:has(input:checked){border-color:#c07952}.wf-canvas-asset-option.added{opacity:.65;cursor:default}.wf-canvas-asset-option img{width:56px;height:56px;object-fit:contain;background:#111}.wf-canvas-asset-option strong{display:block;font-size:13px;overflow-wrap:anywhere}.wf-canvas-asset-option small{display:block;margin-top:4px;color:var(--muted)}.wf-canvas-asset-option input{width:18px;height:18px;margin:0}.wf-canvas-asset-footer{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}.wf-canvas-asset-footer button{white-space:normal}.wf-app{--accent: #ff986b;--accent-2: #f06b55;--line: #ffffff24;--line-strong: #ffffff4d;--bg: #090909;--bg-elev: #191919ed;--bg-card: #202020ed;--muted: #aaa7a4;--role: #80533b;--scene: #3d6966;--prop: #78535f;--radius: 8px}.wf-app:before{opacity:.3}.wf-app:after{background:#090909a3}.wf-app .wf-top{background:#101010ed}.wf-app .wf-main{padding-top:32px}.wf-app .wf-hero-title{font-size:30px;text-shadow:none}.wf-app .wf-step.active,.wf-app .wf-btn.primary{background:#d9562f;box-shadow:none;color:#fff}.wf-app .wf-step.done{border-color:#a56549;color:#f8ba9b}.wf-app .wf-btn:hover:not(:disabled){background:#34312f;border-color:#a66b50}.wf-app .wf-btn.primary:hover:not(:disabled){background:#bd4723}.wf-app input,.wf-app select,.wf-app textarea{accent-color:#eb7951}.wf-app input:not([type=checkbox]):not([type=radio]),.wf-app select,.wf-app textarea{background:#141414;border-color:var(--line);color:var(--text)}.wf-app input:focus-visible,.wf-app textarea:focus-visible,.wf-app select:focus-visible{outline:2px solid #ff986b;outline-offset:2px;box-shadow:none}.wf-app .wf-panel,.wf-app .wf-side,.wf-app .wf-board,.wf-app .wf-model-column,.wf-app .wf-segment-header{background:#181818ed;border-radius:8px;box-shadow:none}.wf-app .wf-video-columns{background:#111111c9}.wf-app .wf-clip-item{background:#161616}.wf-app .wf-clip-item.active{background:#34261f;border-color:#be6d47;box-shadow:inset 3px 0 #f28b5a}.wf-app .wf-clip-item:hover{border-color:#a16b51}.wf-app .wf-column-heading span,.wf-app .wf-directory{color:#efab88}.wf-app .wf-prompt-path{color:var(--muted)}.wf-app .wf-upload-btn{color:#ffc3a4;border-color:#916950}.wf-app .wf-upload-btn.secondary{color:#b8d6d0;border-color:#587b75}.wf-app .wf-reference-kind.manual{background:#446962}.wf-app .wf-empty{background:#17171799}.wf-app .wf-result-card{border-radius:8px}.wf-project-layout{display:grid;grid-template-columns:minmax(240px,320px) minmax(0,1fr);gap:40px;align-items:start}.wf-project-create{padding-right:28px;border-right:1px solid var(--line)}.wf-project-results,.wf-project-create{min-width:0}.wf-batch-progress{display:flex;flex-wrap:wrap;align-items:center;gap:12px;padding:12px 16px;margin-bottom:20px;border-left:2px solid var(--accent);background:#201a17;font-size:13px;overflow-wrap:anywhere}.wf-batch-progress>.wf-error{flex-basis:100%}.wf-project-results .wf-grid-projects{grid-template-columns:repeat(auto-fill,minmax(min(100%,230px),1fr))}.wf-app .wf-project-card{border-radius:8px;background:#1b1b1be8;box-shadow:none}.wf-app .wf-project-card:hover{border-color:#a36c4f}.wf-app .wf-reference-item{grid-template-columns:64px minmax(0,1fr) 22px;align-items:center;padding:10px;background:#242322;border-color:#ffffff24;transition:background .15s,border-color .15s}.wf-app .wf-reference-item img,.wf-app .wf-audio-preview{width:64px;height:64px;background:#111}.wf-app .wf-reference-item>input{width:18px;height:18px;margin:0;cursor:pointer}.wf-app .wf-reference-item:has(.wf-icon-btn){padding-right:36px}.wf-app .wf-reference-item.excluded{background:#161616;border-color:#ffffff12}.wf-app .wf-reference-item.excluded img,.wf-app .wf-reference-item.excluded>div{filter:grayscale(1);opacity:.42}.wf-reference-number{font-size:12px;font-weight:700;color:#ffd4bb}.wf-app .wf-reference-item strong{white-space:normal;overflow-wrap:anywhere}.wf-app .wf-video-columns{grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,1.35fr) minmax(0,1fr)}.wf-app .wf-reference-list{min-width:0;overflow-x:hidden;grid-auto-rows:max-content}.wf-app .wf-reference-item{width:100%;min-width:0;box-sizing:border-box;overflow:hidden;grid-template-columns:56px minmax(0,1fr) 20px;gap:6px}.wf-app .wf-reference-item img,.wf-app .wf-reference-item .wf-audio-preview{display:block;width:56px;height:56px;max-width:100%;object-fit:contain}.wf-app .wf-reference-item>div{min-width:0;max-width:100%}.wf-app .wf-reference-item strong{display:block;max-width:100%;white-space:normal;overflow-wrap:anywhere;word-break:break-word}.wf-app .wf-reference-kind{max-width:100%;box-sizing:border-box;overflow-wrap:anywhere}.wf-app .wf-storyboard-column{display:flex;flex-direction:column;gap:12px;min-width:0}.wf-app .wf-storyboard-list{display:grid;gap:12px;max-height:450px;overflow:auto;min-width:0}.wf-app .wf-storyboard-card{min-width:0;border:1px solid var(--line);border-radius:6px;overflow:hidden}.wf-app .wf-storyboard-card a{display:block}.wf-app .wf-storyboard-card img{display:block;width:100%;max-height:240px;object-fit:contain;background:#111}.wf-app .wf-storyboard-card>div{display:flex;align-items:center;gap:6px;padding:6px}.wf-app .wf-storyboard-card span{min-width:0;flex:1;overflow-wrap:anywhere;font-size:12px}.wf-app .wf-storyboard-card button{flex-shrink:0}@media(max-width:1400px){.wf-app .wf-video-columns{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.wf-app .wf-video-columns>section{border:0;border-bottom:1px solid var(--line)}}@media(max-width:700px){.wf-app .wf-video-columns{grid-template-columns:minmax(0,1fr)}}.wf-app .wf-icon-btn{background:#101010cc}.wf-model-options{border:0;margin:0;padding:0;min-width:0;display:grid;gap:8px}.wf-model-options legend{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.wf-model-option{display:flex;align-items:center;gap:10px;min-height:76px;border-bottom:1px solid var(--line);padding:12px 8px;cursor:pointer}.wf-model-option input{width:17px;height:17px;flex:0 0 17px;margin:0}.wf-model-option span{display:grid;gap:5px;min-width:0;overflow-wrap:anywhere}.wf-model-option strong{font-size:13px}.wf-model-option small{font-size:11px;color:var(--muted)}.wf-model-option.active{border-bottom-color:#e58252;background:#e582520c}.wf-model-option.active strong{color:#ffc3a4}@media(max-width:1180px){.wf-model-options{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:720px){.wf-project-layout{grid-template-columns:minmax(0,1fr);gap:28px}.wf-project-create{border-right:0;padding-right:0;border-bottom:1px solid var(--line);padding-bottom:24px}.wf-app .wf-hero-title{font-size:26px}.wf-model-options{grid-template-columns:minmax(0,1fr)}}.agy-exchange{margin-top:24px;padding-top:20px;border-top:1px solid #ffffff26;min-width:0}.agy-exchange .wf-toolbar-group{flex-wrap:wrap;gap:8px}.agy-exchange select{max-width:100%;min-width:0}.agy-exchange details{padding:10px 0;border-bottom:1px solid #ffffff20;overflow-wrap:anywhere}.agy-exchange p{white-space:pre-wrap;overflow-wrap:anywhere}.wf-asset-title-row .wf-asset-image-action{width:60px;height:36px;padding:0;flex:0 0 60px}.wf-asset-title-row h3{min-width:0;flex:1}.wf-app .wf-canvas-thumb{width:56px;height:56px;padding:0;border:0;background:#111;border-radius:6px;overflow:hidden;cursor:zoom-in}.wf-app .wf-reference-item.excluded .wf-canvas-thumb{filter:grayscale(1);opacity:.42}.asset-review-page{min-height:100vh;background:#121313;color:#eee}.asset-review-header{display:flex;align-items:center;gap:24px;padding:20px 28px;border-bottom:1px solid #383838;background:#101111}.asset-review-header span{color:#c5c1ba;font-size:14px}.asset-review-main{max-width:1800px;margin:auto;padding:20px 28px}.asset-review-main .wf-analysis-heading{margin-bottom:20px;flex-wrap:wrap}.asset-review-image{width:100%;height:100%;display:block;padding:0;border:0;background:transparent;cursor:zoom-in}.asset-review-image img{width:100%;height:100%;object-fit:contain;display:block}.asset-review-selected{position:absolute;right:10px;top:10px;padding:7px 10px;border-radius:6px;background:#195d48;color:#fff;font-size:13px;pointer-events:none}.asset-review-empty{display:grid;place-items:center;height:100%;color:#969696}.asset-review-page .wf-desc{display:block;overflow:visible;white-space:pre-wrap;-webkit-line-clamp:unset}.asset-review-preview{padding:12px;border:1px solid #555;border-radius:12px;background:#151515;max-width:95vw;max-height:95vh}.asset-review-preview::backdrop{background:#000c}.asset-review-preview>button{display:block;margin:0 0 10px auto}.asset-review-preview>img{display:block;max-width:90vw;max-height:82vh;object-fit:contain}.asset-review-export{margin-left:auto}.asset-review-link{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:12px 0;padding:12px;border:1px solid #5b4c37;border-radius:8px}.asset-review-link input{flex:1;min-width:180px}@media(max-width:600px){.asset-review-header,.asset-review-main{padding:16px}.asset-review-export{margin-left:0}}.asset-review-image{position:relative;cursor:pointer}.review-cross{position:absolute;top:0;right:0;bottom:0;left:0;display:grid;place-items:center;color:#ff222f;font:900 150px/1 system-ui;text-shadow:0 2px 5px #0009;opacity:0;pointer-events:none;transition:opacity .12s}.asset-review-image:hover .review-cross,.asset-review-image:focus-visible .review-cross{opacity:.42}.review-cross.fixed,.asset-review-image:hover .review-cross.fixed{opacity:.92}.asset-review-zoom{position:absolute;bottom:10px;right:10px;z-index:3}.review-opinions{color:#ffb9be;border:1px solid #943b44;border-radius:7px;padding:10px;margin:10px 0;max-height:240px;overflow:auto}.review-opinions p{white-space:pre-wrap;overflow-wrap:anywhere;margin:5px 0 12px}.review-opinions small{color:#d9a6ab}.review-opinion-dialog{width:min(520px,94vw);border:1px solid #84434a;border-radius:12px;background:#191919;color:#eee;padding:22px}.review-opinion-dialog::backdrop{background:#000b}.review-opinion-dialog label{display:block;margin:16px 0}.review-opinion-dialog input,.review-opinion-dialog textarea{display:block;width:100%;margin-top:8px}.wf-btn.review-rejected{background:#444;color:#ddd;border-color:#686868}.wf-btn.review-rejected.has-opinions{background:#b82032;border-color:#ff5965;color:#fff}.wf-btn.review-rejected[aria-pressed=true]{box-shadow:0 0 0 2px #ff9ba3}.review-card-cross{position:absolute;top:0;right:0;bottom:0;left:0;display:grid;place-items:center;pointer-events:none;color:#ff222f;font:900 140px/1 system-ui;text-shadow:0 2px 5px #0009;z-index:2}.review-card-notes{position:absolute;left:8px;bottom:8px;z-index:4;max-width:70%;max-height:100px;overflow:auto;background:#330811e8;color:#ffcad0;padding:6px 9px;border-radius:6px;font-size:12px;white-space:pre-wrap;overflow-wrap:anywhere}@media(hover:none){.review-cross{opacity:.25}.review-cross.fixed{opacity:.92}}.wf-app .wf-episode-canvas{grid-template-columns:150px minmax(0,1fr)}.wf-segment-picker{display:flex;flex-wrap:wrap;gap:8px;padding:14px 18px;border-bottom:1px solid var(--line)}.wf-segment-choice{display:flex;align-items:center;gap:10px;padding-right:10px;border:1px solid var(--line);border-radius:8px;background:#242322}.wf-segment-choice.active{border-color:var(--accent);background:#c079521a}.wf-segment-choice button{display:grid;gap:4px;padding:10px 12px;border:0;background:transparent;color:inherit;text-align:left;cursor:pointer}.wf-segment-choice small{color:var(--muted);font-size:11px}.wf-segment-choice input{width:16px;height:16px;margin:0;cursor:pointer}.wf-canvas-ratio{margin:0 0 16px;padding:0;border:0}.wf-canvas-ratio legend{margin-bottom:8px;font-size:13px}.wf-canvas-ratio select{width:100%;padding:8px;color:inherit;background:#242322;border:1px solid var(--line);border-radius:6px}.wf-script-dropzone{border:1px dashed var(--line);transition:border-color .15s,background .15s}.wf-script-dropzone.dragging{border-color:var(--accent);background:#c079521a}.wf-script-drop-hint{margin:0 0 16px;padding:16px;text-align:center;color:var(--muted);border:1px dashed var(--line);border-radius:8px}.wf-script-dropzone.dragging .wf-script-drop-hint{color:var(--accent)}.wf-app .wf-episode-canvas .wf-video-columns{grid-template-columns:200px minmax(0,1fr) minmax(190px,.65fr)!important}.wf-app .wf-episode-canvas .wf-reference-column{padding:12px}.wf-app .wf-episode-canvas .wf-reference-item{padding:6px}.wf-app .wf-episode-canvas .wf-reference-item:has(.wf-icon-btn){padding-right:28px}.wf-app .wf-episode-canvas .wf-reference-actions{grid-template-columns:1fr}@media(max-width:1100px){.wf-app .wf-episode-canvas .wf-video-columns{grid-template-columns:200px minmax(0,1fr)!important}.wf-episode-canvas .wf-model-column{grid-column:1 / -1}}@media(max-width:920px){.wf-app .wf-episode-canvas{grid-template-columns:minmax(0,1fr)}.wf-episode-canvas .wf-side .wf-clip-list{display:flex;flex-wrap:wrap;max-height:180px}}@media(max-width:600px){.wf-app .wf-episode-canvas .wf-video-columns{grid-template-columns:minmax(0,1fr)!important}.wf-segment-picker{padding:12px}}.project-delete-overlay{padding:20px;background:#05070ab8;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}.project-delete-dialog.wf-panel{position:relative;width:min(100%,460px);max-height:calc(100dvh - 40px);overflow:auto;padding:30px;border:1px solid #443b36;border-radius:20px;background:linear-gradient(145deg,#24211f,#171819 70%);box-shadow:0 24px 80px #0008;color:#eee9e2}.project-delete-close{position:absolute;top:16px;right:16px;display:grid;place-items:center;width:32px;height:32px;border:0;border-radius:8px;background:transparent;color:#a9a39c;cursor:pointer}.project-delete-close:hover{background:#ffffff0b;color:#fff}.project-delete-close:focus-visible{outline:2px solid #c7a77b;outline-offset:2px}.project-delete-icon{display:grid;place-items:center;width:54px;height:54px;margin-bottom:18px;border:1px solid #c36a553d;border-radius:16px;background:#c36a5514;color:#df927f}.project-delete-dialog h2{margin:0;font-size:23px;line-height:1.4;letter-spacing:.02em}.project-delete-dialog .project-delete-subtitle{margin:6px 0 20px;color:#aaa39b;font-size:13px}.project-delete-target{display:flex;align-items:flex-start;gap:12px;padding:15px 16px;border:1px solid #ffffff0d;border-radius:12px;background:#ffffff04}.project-delete-target svg{flex-shrink:0;margin-top:2px;color:#c7ad8a}.project-delete-target strong{min-width:0;overflow-wrap:anywhere;line-height:1.65;font-size:15px;font-weight:500}.project-delete-dialog .project-delete-notice{margin:16px 0 24px;color:#aaa39b;font-size:13px;line-height:1.85}.project-delete-notice strong{display:block;color:#dc9b8c;font-weight:500}.project-delete-label{display:block;margin-bottom:9px;font-size:13px;color:#dfd7ce}.project-delete-dialog .wf-input{box-sizing:border-box;width:100%;min-height:46px;border:1px solid #51463b;border-radius:10px;background:#111314;color:#f3ece4;padding:11px 13px;font-size:14px;transition:border-color .15s,box-shadow .15s}.project-delete-dialog .wf-input:focus{outline:0;border-color:#c7a77b;box-shadow:0 0 0 3px #c7a77b1a}.project-delete-dialog .wf-input::placeholder{color:#77736f}.project-delete-dialog .project-delete-error{margin:10px 0 0;padding:10px 12px;border-radius:8px;background:#dc7d6810;color:#eda996;font-size:13px;line-height:1.6;overflow-wrap:anywhere}.project-delete-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:26px;padding-top:20px;border-top:1px solid #ffffff0b}.project-delete-actions .wf-btn{display:inline-flex;justify-content:center;align-items:center;gap:7px;min-width:100px;min-height:42px;border-radius:10px;font-size:14px}.project-delete-actions .wf-btn.danger{border:1px solid #b65f4d;background:#ae5545;color:#fff5f0}.project-delete-actions .wf-btn.danger:hover:not(:disabled){background:#bd6351;border-color:#ce7965}.project-delete-actions .wf-btn:disabled,.project-delete-close:disabled{opacity:.4;cursor:default}@media(max-width:520px){.project-delete-overlay{padding:16px}.project-delete-dialog.wf-panel{padding:24px;max-height:calc(100dvh - 32px);border-radius:16px}.project-delete-actions .wf-btn{flex:1}.project-delete-dialog .wf-input{font-size:16px}}.wf-app .wf-batch-progress{width:fit-content;max-width:100%;box-sizing:border-box;justify-content:flex-start}.wf-app .wf-image-notice{display:flex;flex-direction:column;align-items:flex-start;gap:10px;flex:0 1 auto;width:fit-content;max-width:min(100%,760px);box-sizing:border-box;padding:12px 14px;border:1px solid #dbc16d;border-radius:10px;background:#fff1bd;color:#665019;line-height:1.65;text-align:left}.wf-image-notice>span{min-width:0;overflow-wrap:anywhere}.wf-image-notice-actions{display:flex;flex-wrap:wrap;justify-content:flex-start;gap:8px}.wf-app .wf-image-notice-actions .wf-btn{margin:0;min-height:34px;padding:6px 12px;border:1px solid #c9ad59;border-radius:7px;background:#fffae8;color:#614a12;font-size:13px;box-shadow:none}.wf-app .wf-image-notice-actions .wf-btn:hover:not(:disabled){background:#f5e2a0;border-color:#a88a32}.wf-app .wf-image-notice-actions .wf-btn:focus-visible{outline:2px solid #8a6a18;outline-offset:2px}.wf-app .wf-image-notice-actions .wf-btn:disabled{opacity:.5;cursor:not-allowed}.wf-app .wf-batch-progress>.wf-muted{flex-basis:100%;margin:0;max-width:760px}@media(max-width:600px){.wf-app .wf-batch-progress{padding:10px;gap:10px}.wf-app .wf-image-notice{width:100%;padding:10px 12px}}.brand-landing[data-motion]{background:#090a0b;min-height:max(400px,100dvh);display:flex;flex-direction:column}.brand-landing .brand-landing-nav{flex:0 0 auto;min-height:clamp(52px,8dvh,76px)}.brand-landing .brand-landing-main{flex:1;min-height:0;padding:0 24px 20px}.brand-landing .brand-landing-foot{position:relative;inset:auto;flex:0 0 auto;padding:0 64px max(18px,env(safe-area-inset-bottom));gap:10px}.brand-landing .brand-motion-toggle{right:24px;bottom:18px}.brand-cover{position:absolute;top:0;right:0;bottom:0;left:0;overflow:hidden;background:#090a0b}.brand-cover-poster,.brand-cover-video{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;object-fit:cover;object-position:60% center}.brand-cover-video{opacity:0;transition:opacity .65s ease}.brand-cover-retry{position:fixed;right:24px;bottom:76px;z-index:30;border:1px solid #d2aa76;border-radius:8px;background:#171719;color:#f3d2a9;padding:10px 14px;cursor:pointer}.brand-cosmos:after,.workspace-film:after{pointer-events:none}.brand-cover[data-playing=true] .brand-cover-video{opacity:1}.brand-cosmos:after{content:"";position:absolute;top:0;right:0;bottom:0;left:0;background:linear-gradient(180deg,#050607a6 0%,#05060740 24%,transparent 42%,transparent 58%,#05060780 82%,#050607d9 100%)}.brand-landing .brand-landing-nav{border-bottom:1px solid #ffffff1c}.brand-intro{flex:1;display:flex;flex-direction:column;justify-content:center;align-items:center;min-width:0;width:100%;padding:clamp(12px,3dvh,32px) 0}.brand-landing .brand-headline{flex-direction:column;gap:clamp(7px,1.35dvh,12px);font-size:clamp(28px,min(6dvh,5.6vw),56px);text-shadow:0 2px 8px #0008}.brand-landing .brand-actions{margin-top:0}.brand-title-art{display:block;width:min(540px,86vw,58dvh);line-height:0}.brand-title-art img{display:block;width:100%;height:auto;filter:drop-shadow(0 2px 3px #0008)}.brand-landing .brand-kicker{margin-bottom:0;color:#d9cbb9;font-size:clamp(9px,1.35dvh,12px);font-weight:600;letter-spacing:.22em;text-indent:.22em;opacity:.88;text-shadow:0 2px 8px #000}.brand-company-line{margin-top:clamp(3px,.7dvh,7px);color:#f1c58f;font-family:Microsoft YaHei,PingFang SC,sans-serif;font-size:clamp(14px,1.8dvh,20px);font-weight:500;letter-spacing:.2em;line-height:1.35;text-indent:.2em;text-shadow:0 2px 10px #000b}.brand-landing .brand-rotator{color:#f6c181;text-shadow:none;background:transparent;border:0;box-shadow:none}.brand-landing .brand-action.primary,.brand-auth-form .wf-btn{background:#f4c18b;color:#20170d;border-color:#f4c18b}.brand-landing .brand-action.secondary{background:#0c0e11d9;border-color:#ffffff70}.brand-landing .brand-action:hover{border-color:#ffe0b7}.brand-landing .brand-motion-toggle{background:#0c0e11d9;color:#f6d1a1;border-color:#ffffff4d}.brand-landing .brand-credit{color:#c9c4bb}.brand-landing .brand-landing-foot{color:#d5d1c9}.brand-landing .brand-mark,.brand-auth-mark{color:#171a1d}.brand-auth-backdrop{background:#08090bc4}.brand-auth .wf-login-card{border-radius:8px}.brand-auth .wf-login-card{max-height:calc(100dvh - 40px);overflow-y:auto}.wf-app{--accent: #edb67d;--accent-2: #c9915c;--muted: #aaaeb1;--role: #75634d}.wf-app:before{background-image:url(/hero-covers-desktop-v1.webp);background-size:cover;opacity:.18}.wf-app:after{background:#090a0bd9}.wf-app .wf-step.active,.wf-app .wf-btn.primary{background:#e7b37b;color:#1c1711}.wf-app .wf-step.done{color:#e7c49a;border-color:#8d755c}.wf-app .wf-btn.primary:hover:not(:disabled){background:#f4cb9a}.wf-app .wf-btn:hover:not(:disabled){border-color:#aa8763}.wf-app input,.wf-app select,.wf-app textarea{accent-color:#e7b37b}.wf-app input:focus-visible,.wf-app textarea:focus-visible,.wf-app select:focus-visible{outline-color:#e7b37b}.wf-app .wf-clip-item.active{background:#2c2b29;border-color:#aa8763;box-shadow:inset 3px 0 #e7b37b}.wf-app .wf-column-heading span,.wf-app .wf-directory{color:#dbbd98}.wf-app .wf-reference-number{color:#ead5b9}.wf-app .wf-model-option.active{border-bottom-color:#c7a47a;background:#c7a47a0c}.wf-app .wf-model-option.active strong{color:#e9c89e}@media(max-width:640px){.brand-cover-poster,.brand-cover-video{object-position:center}.wf-app:before{background-image:url(/hero-covers-mobile-v1.webp)}}@media(max-width:720px){.brand-landing[data-motion]{min-height:max(520px,100dvh)}.brand-landing .brand-landing-main{padding:0 18px 20px}.brand-landing .brand-headline{gap:7px;font-size:clamp(28px,min(6dvh,9vw),36px)}.brand-landing .brand-kicker{font-size:9px;letter-spacing:.14em;text-indent:.14em}.brand-company-line{margin-top:3px;font-size:clamp(13px,3.8vw,17px);letter-spacing:.14em;text-indent:.14em}.brand-landing .brand-landing-foot{padding:0 18px max(60px,calc(env(safe-area-inset-bottom) + 42px))}}@media(prefers-reduced-motion:reduce){.brand-cover-video{transition:none}}[hidden]{display:none!important}.brand-user-link{display:flex;align-items:center;gap:10px;background:transparent;border:0;color:#fff;max-width:220px;cursor:pointer}.brand-user-link>span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.brand-user-avatar{display:grid;place-items:center;width:36px;height:36px;flex-shrink:0;border-radius:50%;color:#f3c794;border:1px solid #f3c79477;background:#19161388}.brand-auth .brand-auth-backdrop{background:#15120e22;backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px)}.brand-auth .wf-login-card{background:#171719f5;border:1px solid #dbc4a04d}.brand-auth .wf-form input:focus,.project-dialog .wf-form input:not([type=radio]):focus,.project-dialog .wf-form textarea:focus{outline:2px solid #e7b37b;outline-offset:2px;box-shadow:none;border-color:#b7946a}.brand-auth .wf-btn.primary{background:#e7b37b;color:#21180c}.workspace-film{position:fixed;top:0;right:0;bottom:0;left:0;z-index:0;pointer-events:none}.workspace-film:after{content:"";position:absolute;top:0;right:0;bottom:0;left:0;background:#080a0dd9}.wf-app:before,.wf-app:after{display:none}.wf-app .wf-topbar,.wf-app .wf-main{position:relative;z-index:1}.wf-app .wf-topbar{background:#101113df;-webkit-backdrop-filter:none;backdrop-filter:none}.wf-app .wf-project-create{border:0;padding:0}.project-add-card{width:100%;min-height:220px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:22px;border:1px solid #cfab77a8;border-radius:14px;background:linear-gradient(145deg,#e7b37b12,#111216ab 70%);color:#edc999;font:inherit;font-weight:600;cursor:pointer}.project-add-card:hover:not(:disabled){border-color:#ffd29a;background-color:#d7ad7014}.project-add-card:disabled{opacity:.5;cursor:wait}.wf-project-results .wf-grid-projects{grid-template-columns:repeat(auto-fill,minmax(min(100%,240px),1fr))}.wf-project-card .wf-project-open{display:grid;grid-template-columns:minmax(0,1fr) minmax(70px,30%);align-items:center;gap:12px;padding:20px 48px 20px 16px}.wf-project-open>.project-card-details{min-width:0}.project-card-details strong{color:var(--text);font-size:15px;line-height:1.5}.project-card-notes{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;white-space:pre-wrap;overflow-wrap:anywhere;color:var(--muted);font-size:13px;line-height:1.5}.wf-project-open>.project-card-style{display:grid;align-content:center;gap:6px;min-width:0;padding-left:10px;border-left:1px solid #ffffff24;text-align:right}.project-card-style-label{color:#aaa49b;font-size:11px}.project-card-style-value{color:#f5d1a4;font-size:12px;line-height:1.5;overflow-wrap:anywhere}.project-dialog-layer{position:fixed;top:0;right:0;bottom:0;left:0;z-index:100;display:grid;place-items:center;padding:20px}.project-dialog-backdrop{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;border:0;background:#08090b26;cursor:default}.project-dialog{position:relative;width:min(820px,100%);max-height:calc(100dvh - 40px);overflow-y:auto;padding:30px;border-radius:16px;background:#19191cf5;border:1px solid #d6b68d60;color:#f8f5ef;box-shadow:0 24px 90px #0006}.project-dialog h2{margin:0 0 24px;font-size:26px}.project-dialog-eyebrow{font-size:10px;letter-spacing:.18em;color:#d9b488;margin:0 0 8px}.project-dialog .wf-form{gap:18px;max-width:none;width:100%}.project-dialog .wf-form textarea{resize:vertical;min-height:78px;height:86px}.project-dialog .wf-btn.primary{background:#e7b37b;color:#21180c;min-height:46px;box-shadow:none}.project-modes{display:flex;gap:12px;border:0;padding:0;margin:0}.project-modes legend{font-size:13px;color:#c1bdb6;margin-bottom:10px}.project-dialog .project-modes label{flex:1;display:flex;align-items:center;gap:9px;padding:16px 12px;border:1px solid #ffffff26;border-radius:9px;cursor:pointer}.project-modes label.active{border-color:#e7b37b;background:#e7b37b0d;color:#f5d1a4}.project-dialog .project-modes input[type=radio]{-webkit-appearance:none;-moz-appearance:none;appearance:none;width:18px;height:18px;min-height:0;flex:0 0 18px;padding:0;margin:0;border:1px solid #a79b8c;border-radius:50%;background:transparent;box-shadow:none;outline:none}.project-dialog .project-modes input[type=radio]:checked{border-color:#e7b37b;background:radial-gradient(circle,#e7b37b 0 4px,transparent 5px)}.project-dialog .project-modes input[type=radio]:focus-visible{outline:2px solid #e7b37b;outline-offset:3px}.project-styles{min-width:0;margin:0;padding:0;border:0}.project-styles legend{padding:0;font-size:13px;color:#c1bdb6}.project-styles legend span{color:#aaa49b}.project-style-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:6px 0 10px}.project-style-toolbar p{margin:0;font-size:12px;color:#c1bdb6}.project-style-clear{flex-shrink:0;padding:6px 0 6px 8px;border:0;background:transparent;color:#f5d1a4;font:inherit;font-size:12px;cursor:pointer}.project-style-clear:disabled{opacity:.4;cursor:default}.project-style-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;max-height:clamp(150px,calc(100dvh - 640px),420px);overflow-y:auto;overscroll-behavior:contain;padding:3px;scrollbar-width:thin;scrollbar-color:#74614b transparent}.project-style-card{position:relative;display:flex;flex-direction:column;min-width:0;padding:0;border:1px solid #ffffff26;border-radius:9px;overflow:hidden;background:#111214;color:#dedbd5;font:inherit;cursor:pointer;text-align:center}.project-style-card img{display:block;width:100%;height:auto;aspect-ratio:1;object-fit:cover}.project-style-name{display:flex;flex:1;align-items:center;justify-content:center;width:100%;min-height:38px;padding:8px 4px;font-size:12px;line-height:1.45;overflow-wrap:anywhere}.project-style-card:hover:not(:disabled){border-color:#c7a47a}.project-style-card[aria-pressed=true]{border-color:#e7b37b;background:#35291e;color:#ffe0b7;box-shadow:0 0 0 1px #e7b37b}.project-style-check{position:absolute;top:7px;right:7px;display:grid;place-items:center;width:23px;height:23px;border-radius:50%;background:#e7b37b;color:#21180c;box-shadow:0 1px 6px #0006}.project-style-card:focus-visible,.project-style-clear:focus-visible{outline:2px solid #e7b37b;outline-offset:2px}.project-style-card:disabled{cursor:default;opacity:.65}.brand-workflow-nav .wf-step{color:#d3c6b5;border-color:#ffffff30;white-space:nowrap}.brand-workflow-nav .wf-step.active{background:#e7b37b;color:#21180c;box-shadow:none}.brand-workflow-nav .wf-step:disabled{opacity:.45}.brand-landing .brand-landing-nav.signed-in{gap:16px;flex-wrap:wrap}@media(max-width:1100px){.brand-workflow-nav{order:3;width:100%;min-width:0}.brand-workflow-nav .wf-steps{justify-content:center;gap:5px}.brand-workflow-nav .wf-step{padding:6px 8px;font-size:12px}}.project-upload{padding:16px;border:1px dashed #d4b68d66;border-radius:9px}.project-upload small{color:#aca9a3;overflow-wrap:anywhere}.project-dialog .wf-form input[type=file]{padding:8px;font-size:12px}.restyle-source-video{width:min(100%,900px);max-height:60dvh;display:block;margin-top:18px;background:#080808}.restyle-script{display:grid;gap:12px;margin-top:24px}.restyle-script textarea{width:100%;min-height:160px;padding:12px;border:1px solid #ffffff30;border-radius:8px;background:#101114;color:#eee;resize:vertical}@media(max-width:720px){.project-add-card{min-height:155px;gap:14px}.project-dialog{padding:24px 18px}.project-dialog .project-modes label{flex-wrap:wrap;padding:12px 10px}.project-style-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.brand-user-link{max-width:150px}.brand-workflow-nav .wf-steps{flex-wrap:nowrap;justify-content:flex-start;overflow-x:auto;padding-bottom:4px}.brand-workflow-nav .wf-step{flex:0 0 auto;padding:6px;font-size:11px}}@media(max-width:440px){.project-style-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.wf-project-card .wf-project-open{gap:10px;padding-left:14px}.wf-project-open>.project-card-style{padding-left:10px}}.project-dialog-layer:has(.style-project-dialog) .project-dialog-backdrop{background:#08090b2e}.style-project-dialog{--style-accent: #e7b37b;--style-accent-ink: #21180c;--style-selected-text: #f5d1a4;--style-text: #f8f5ef;--style-muted: #c1bdb6;--style-line: rgb(214 182 141 / 22%);width:min(1080px,100%);height:min(840px,calc(100dvh - 40px));max-height:calc(100dvh - 40px);padding:0;overflow:hidden;display:flex;flex-direction:column;border:1px solid rgb(214 182 141 / 36%);border-radius:8px;background:#141416ad;color:var(--style-text);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);box-shadow:0 24px 90px #0006,inset 0 1px #ffefd70f}.style-project-header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:20px 24px;border-bottom:1px solid var(--style-line);background:#1010123d}.style-project-header h2{font-size:22px;line-height:1.4;margin:0}.style-project-header p{font-size:12px;color:var(--style-muted);margin:4px 0 0}.style-project-close{display:grid;place-items:center;width:36px;height:36px;flex:0 0 36px;border:0;border-radius:6px;background:transparent;color:var(--style-muted);cursor:pointer}.style-project-close:hover{background:#e7b37b1a;color:var(--style-text)}.style-project-dialog .wf-form{display:flex;flex-direction:column;gap:0;flex:1;min-height:0;margin:0}.style-project-body{display:grid;grid-template-columns:270px minmax(0,1fr);flex:1;min-height:0;overflow:hidden}.style-project-details{padding:24px;display:flex;flex-direction:column;gap:22px;border-right:1px solid var(--style-line);overflow-y:auto;background:#1111132e}.style-project-details label,.style-custom-prompt{display:flex;flex-direction:column;gap:8px;font-size:13px;color:var(--style-muted)}.style-project-dialog .wf-form input:not([type=radio]),.style-project-dialog .wf-form textarea{background:#0c0d0f7a;border-color:#d6b68d3d;color:var(--style-text);border-radius:6px;font-size:13px}.style-project-dialog .wf-form input:not([type=radio]):focus,.style-project-dialog .wf-form textarea:focus{border-color:var(--style-accent);outline-color:var(--style-accent)}.style-project-dialog .project-modes{flex-direction:column;gap:10px}.style-project-dialog .project-modes legend{margin-bottom:12px;color:var(--style-muted)}.style-project-dialog .wf-form .project-modes label{flex-direction:row;border-radius:6px;padding:12px}.style-project-dialog .project-modes label.active{background:#e7b37b1a;color:var(--style-selected-text);border-color:var(--style-accent)}.style-project-dialog .project-modes input[type=radio]:checked{border-color:var(--style-accent);background:var(--style-accent);box-shadow:inset 0 0 0 4px #252320}.style-project-dialog .project-modes .project-mode-unavailable{display:flex;flex:1;align-items:center;justify-content:flex-start;gap:8px;padding:12px;min-width:0;border:1px solid rgb(214 182 141 / 24%);border-radius:6px;background:transparent;color:var(--style-muted);font:inherit;font-size:13px;text-align:left;cursor:pointer}.style-project-dialog .project-modes .project-mode-unavailable:hover:not(:disabled){border-color:var(--style-accent);color:var(--style-selected-text);background:#e7b37b0f}.style-project-dialog .project-modes .project-mode-unavailable:disabled{cursor:default;opacity:.65}.style-project-dialog .project-modes .project-mode-unavailable:focus-visible{outline:2px solid var(--style-accent);outline-offset:3px}.style-project-dialog .restyle-coming-soon{margin:-10px 0 0;color:var(--style-selected-text);font-size:13px}.wf-app .restyle-coming-soon{margin:0 0 16px;color:#f5d1a4;font-size:13px}.wf-app .restyle-coming-soon button{display:inline-grid;place-items:center;width:28px;height:28px;margin-left:8px;padding:0;background:transparent;border:0;color:#c1bdb6;vertical-align:middle;cursor:pointer}.project-style-picker{min-width:0;min-height:0;display:flex;flex-direction:column;gap:22px;padding:24px}.project-style-picker fieldset{min-width:0;border:0;padding:0;margin:0}.project-style-picker legend{display:flex;align-items:center;gap:8px;width:100%;padding:0;margin-bottom:14px;font-size:14px;color:var(--style-text)}.style-step{display:grid;place-items:center;width:21px;height:21px;border:1px solid rgb(214 182 141 / 38%);border-radius:50%;font-size:11px;color:var(--style-muted)}.style-category-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.style-project-dialog .wf-form .style-category-grid label{position:relative;display:flex;flex-direction:row;align-items:center;gap:8px;padding:11px 9px;border:1px solid rgb(214 182 141 / 24%);border-radius:6px;background:#0c0d0f2e;color:var(--style-muted);cursor:pointer;min-width:0}.style-category-grid label span{min-width:0;font-size:12px;line-height:1.5}.style-category-grid small{display:block;color:#b0aaa1;font-size:10px}.style-project-dialog .wf-form .style-category-grid label.selected{border-color:var(--style-accent);background:#e7b37b1a;color:var(--style-selected-text)}.style-category-check{position:absolute;right:5px;top:5px;width:12px;height:12px}.style-category-grid input,.style-variant input{position:absolute;width:1px;height:1px;margin:0;opacity:0}.style-category-grid label:has(input:focus-visible),.style-variant:has(input:focus-visible){outline:2px solid var(--style-accent);outline-offset:3px}.style-variant-options{flex:1;min-height:0;display:flex;flex-direction:column}.style-category-current{margin-left:auto;color:var(--style-muted);font-size:12px}.style-unselected{flex:1;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:12px;min-height:220px;color:var(--style-muted);font-size:13px;background:#0c0d0f24}.style-project-dialog .wf-form .style-search{display:flex;flex-direction:row;align-items:center;gap:8px;margin:0 0 14px;color:var(--style-muted);border-bottom:1px solid var(--style-line);padding-bottom:6px}.style-project-dialog .wf-form .style-search input{min-height:30px;flex:1;min-width:0;background:transparent;border:0;padding:3px;outline:0;box-shadow:none}.style-search span{white-space:nowrap;font-size:11px}.style-variant-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));align-content:start;gap:16px 12px;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:3px;scrollbar-width:thin;scrollbar-color:#8d755c transparent}.style-variant{position:relative;display:flex;flex-direction:column;min-width:0;cursor:pointer}.style-variant-image{position:relative;display:block;width:100%;aspect-ratio:1;border-radius:6px;outline:2px solid transparent;outline-offset:1px}.style-variant img{display:block;width:100%;height:100%;object-fit:cover;border-radius:6px}.style-variant-name{display:block;min-height:35px;margin-top:8px;padding:0 2px;text-align:center;font-size:11px;line-height:1.5;color:var(--style-muted);overflow-wrap:anywhere}.style-variant:hover .style-variant-image{outline-color:#c7a47a}.style-variant.selected .style-variant-image{outline-color:var(--style-accent)}.style-variant.selected .style-variant-name{color:var(--style-selected-text)}.style-variant-check{display:none;position:absolute;right:5px;top:5px;width:21px;height:21px;place-items:center;border-radius:50%;background:var(--style-accent);color:var(--style-accent-ink)}.style-variant.selected .style-variant-check{display:grid}.style-search-empty{grid-column:1/-1;text-align:center;font-size:13px;color:var(--style-muted);padding:32px 0}.custom-variant{flex:0 0 auto;grid-template-columns:140px;margin-bottom:16px}.style-custom-prompt{min-height:0}.style-project-dialog .style-custom-prompt textarea{min-height:110px;height:150px;resize:vertical}.style-project-footer{padding:16px 24px;display:flex;align-items:center;justify-content:space-between;gap:16px;border-top:1px solid var(--style-line);flex-shrink:0;background:#1010125c}.style-project-footer>div{min-width:0}.style-project-footer p{font-size:12px;margin:0;color:var(--style-muted);overflow-wrap:anywhere}.style-project-dialog .style-project-footer .wf-btn.primary{display:flex;align-items:center;gap:7px;flex-shrink:0;background:var(--style-accent);color:var(--style-accent-ink);border-color:var(--style-accent);border-radius:6px}.style-project-dialog .style-project-footer .wf-btn.primary:hover:not(:disabled){background:#f4cb9a;border-color:#f4cb9a}.style-project-dialog .style-project-footer .wf-btn:disabled{opacity:.45;cursor:default}.project-style-picker fieldset:disabled label{cursor:default;opacity:.65}.style-project-dialog,.style-project-dialog *{letter-spacing:0}@media(max-width:900px){.style-project-body{grid-template-columns:220px minmax(0,1fr)}.style-project-details,.project-style-picker{padding:20px 16px}.style-category-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.style-variant-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.custom-variant{grid-template-columns:120px}}@media(max-width:650px){.project-dialog-layer:has(.style-project-dialog){padding:8px}.style-project-dialog{height:calc(100dvh - 16px);max-height:calc(100dvh - 16px)}.style-project-header{padding:16px}.style-project-header h2{font-size:19px}.style-project-header p{display:none}.style-project-body{display:block;overflow-y:auto}.style-project-details{border-right:0;border-bottom:1px solid var(--style-line);gap:14px}.style-project-details>label:nth-child(2) textarea{min-height:52px;height:52px}.style-project-dialog .project-modes{flex-direction:row}.style-project-dialog .project-modes label{flex-wrap:nowrap;padding:10px}.project-style-picker{min-height:360px;gap:20px}.style-category-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.style-variant-grid{grid-template-columns:repeat(3,minmax(0,1fr));max-height:420px}.custom-variant{grid-template-columns:120px}.style-unselected{min-height:180px}.style-project-footer{padding:12px 16px;gap:12px}.style-project-footer .wf-btn{padding:10px 12px;font-size:12px}}:root{color-scheme:dark;--bg: #08090b;--bg-elev: rgba(20, 21, 25, .94);--bg-card: rgba(26, 27, 32, .94);--line: rgba(203, 210, 222, .2);--line-strong: rgba(203, 210, 222, .36);--text: #f5f6f8;--muted: #a9adb7;--accent: #769aff;--accent-2: #eb4eaa;--danger: #ff6c91;--role: #7556d9;--scene: #285bc9;--prop: #bd3d8c;--radius: 10px;font-family:PingFang SC,Noto Sans SC,Microsoft YaHei,system-ui,sans-serif}*{box-sizing:border-box}html,body,#root{min-height:100%;margin:0}body{background:var(--bg);color:var(--text)}button,input,textarea,select{font:inherit;color:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.55}.wf-app{min-height:100vh;display:flex;flex-direction:column;position:relative;isolation:isolate;background:var(--bg)}.wf-app:before{content:"";position:fixed;top:0;right:0;bottom:0;left:0;z-index:-2;background:url(/hero-black-hole-poster-v1.webp) center top / min(1040px,100%) auto no-repeat;opacity:.22;pointer-events:none}.wf-app:after{content:"";position:fixed;top:0;right:0;bottom:0;left:0;z-index:-1;background:#08090ba6;pointer-events:none}.wf-top{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:68px;padding:12px clamp(14px,2.4vw,34px);border-bottom:1px solid var(--line);background:#0a0b0ee6;-webkit-backdrop-filter:blur(22px) saturate(130%);backdrop-filter:blur(22px) saturate(130%);position:sticky;top:0;z-index:20}.wf-brand{display:flex;align-items:center;gap:10px;font-weight:700;letter-spacing:0;white-space:nowrap}.wf-brand-mark{width:32px;height:32px;display:grid;place-items:center;border-radius:7px;background:#fff;color:#1c1730;font-size:13px;font-weight:900}.wf-brand span{color:var(--muted);font-weight:500;font-size:13px;margin-left:6px}.wf-steps{display:flex;gap:8px;flex-wrap:wrap}.wf-step{border:1px solid var(--line);background:transparent;color:var(--muted);border-radius:7px;padding:6px 12px;font-size:13px}.wf-step.active{color:#fff;background:linear-gradient(105deg,#7648e8,#345ed8);border-color:#ffffff1f;font-weight:600;box-shadow:0 8px 24px #41259b47}.wf-step.done{color:#d7caff;border-color:#8b63ff6b}.wf-top-actions{display:flex;gap:8px;align-items:center}.wf-user{color:var(--muted);font-size:13px;margin-right:6px}.wf-btn{border:1px solid var(--line);background:var(--bg-elev);color:var(--text);border-radius:7px;padding:8px 14px;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);transition:border-color .15s ease,background .15s ease,transform .15s ease;display:inline-flex;align-items:center;justify-content:center;gap:7px}.wf-btn:hover:not(:disabled){border-color:var(--line-strong);background:#302752e6;transform:translateY(-1px)}.wf-btn.primary{background:linear-gradient(105deg,#7548e8,#d43c92);color:#fff;border:none;font-weight:700;box-shadow:0 9px 28px #682db53d}.wf-btn.ghost{background:transparent}.wf-btn.danger{border-color:#f0717866;color:#fecaca}.wf-main{flex:1;width:min(1280px,calc(100% - 32px));margin:0 auto;padding:clamp(28px,4vw,52px) 0 64px}.wf-hero-title{font-size:clamp(28px,4vw,42px);margin:0 0 8px;letter-spacing:0;text-shadow:0 8px 28px rgba(7,4,24,.34)}.wf-hero-sub{margin:0 0 24px;color:var(--muted);line-height:1.6;max-width:52rem}.wf-panel{background:var(--bg-elev);border:1px solid var(--line);border-radius:12px;padding:20px;box-shadow:0 22px 60px #04021033;-webkit-backdrop-filter:blur(24px) saturate(120%);backdrop-filter:blur(24px) saturate(120%)}.wf-grid-projects{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:14px}.wf-project-card{position:relative;text-align:left;background:var(--bg-card);border:1px solid var(--line);border-radius:var(--radius);padding:0;min-height:122px;color:var(--text);-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);transition:border-color .16s ease,transform .16s ease,background .16s ease}.wf-project-card:hover:not(:disabled){border-color:#8b63ff80;background:#2b214ef0;transform:translateY(-2px)}.wf-project-card strong{display:block;margin-bottom:6px}.wf-project-open{display:block;width:100%;min-height:122px;height:100%;padding:20px 48px 20px 16px;border:0;border-radius:inherit;background:transparent;text-align:left;overflow-wrap:anywhere}.wf-project-open>span{display:block;color:var(--muted);font-size:13px;line-height:1.5}.wf-project-delete{position:absolute;top:8px;right:8px;display:grid;place-items:center;width:36px;height:36px;padding:0;border:1px solid transparent;border-radius:7px;background:transparent;color:var(--muted)}.wf-project-delete:hover:not(:disabled){color:#ff9bb1;background:#3a1b25;border-color:#773448}.wf-project-delete:focus-visible,.wf-project-open:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.wf-form{display:grid;gap:12px;max-width:420px}.wf-form.wide{max-width:none}.wf-form label{display:grid;gap:6px;font-size:13px;color:var(--muted)}.wf-form input,.wf-form textarea,.wf-form select{width:100%;border:1px solid var(--line);background:#0a0818b8;border-radius:7px;padding:10px 12px}.wf-form input:focus,.wf-form textarea:focus,.wf-form select:focus{border-color:#8b63ffb8;outline:0;box-shadow:0 0 0 3px #8b63ff1f}.wf-form textarea{min-height:220px;resize:vertical;line-height:1.55}.wf-error{color:#ffd2df;background:#ff487e1f;border:1px solid rgba(255,108,145,.32);border-radius:7px;padding:10px 12px;font-size:13px}.wf-muted{color:var(--muted);font-size:13px}.wf-toolbar{display:flex;flex-wrap:wrap;gap:10px;align-items:center;justify-content:space-between;margin-bottom:16px}.wf-toolbar-group{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.wf-asset-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}@media(max-width:1000px){.wf-asset-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:640px){.wf-asset-grid{grid-template-columns:1fr}.wf-top{align-items:center;flex-wrap:wrap;padding:12px}.wf-brand span,.wf-user{display:none}.wf-top-actions{margin-left:auto}.wf-top-actions .wf-btn{white-space:nowrap}.wf-main{width:min(100% - 20px,1280px);padding-top:16px}.wf-steps{order:3;width:100%;gap:5px}.wf-step{padding:5px 8px;font-size:12px}.wf-board-canvas{padding:12px;min-height:0}.wf-nodes{grid-template-columns:1fr}}.wf-asset-card{background:var(--bg-card);border:1px solid #3a4152;border-radius:16px;overflow:hidden;display:flex;flex-direction:column;min-height:100%}.wf-asset-media{position:relative;aspect-ratio:16 / 9;flex:0 0 auto;min-height:0;overflow:hidden;background:#000;border-bottom:1px solid var(--line)}.wf-asset-media img{width:100%;height:100%;object-fit:contain;display:block}.wf-asset-check{z-index:1;position:absolute;top:10px;left:10px;width:18px;height:18px}.wf-asset-body{padding:14px 14px 16px;display:grid;gap:10px}.wf-asset-title-row{display:flex;justify-content:space-between;gap:10px;align-items:flex-start}.wf-asset-title-row h3{margin:0;font-size:18px}.wf-badge{display:inline-flex;align-items:center;border-radius:6px;padding:3px 8px;font-size:12px;white-space:nowrap}.wf-badge.prompt{border:1px solid rgba(110,231,168,.55);color:var(--accent)}.wf-badge.kind-角色{background:var(--role);color:#fff}.wf-badge.kind-场景{background:var(--scene);color:#fff}.wf-badge.kind-道具{background:var(--prop);color:#fff}.wf-badge.meta{background:#2a303d;color:#d5dbe8}.wf-tags{display:flex;flex-wrap:wrap;gap:6px}.wf-desc{margin:0;color:#b7bfcf;font-size:13px;line-height:1.55;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.wf-prompt-box textarea{width:100%;min-height:72px;border:1px solid var(--line);background:#10131a;border-radius:10px;padding:8px 10px;font-size:12px;line-height:1.45}.wf-canvas{display:grid;grid-template-columns:230px minmax(0,1fr);gap:14px;min-height:620px}@media(max-width:920px){.wf-canvas{grid-template-columns:1fr}}.wf-side,.wf-board,.wf-inspector{background:var(--bg-elev);border:1px solid var(--line);border-radius:var(--radius);padding:14px}.wf-side h4,.wf-inspector h4{margin:0 0 12px;font-size:14px}.wf-clip-list{display:grid;gap:8px;max-height:560px;overflow:auto}.wf-clip-item{text-align:left;border:1px solid var(--line);background:#12151c;border-radius:10px;padding:10px}.wf-clip-item.active{border-color:#6ee7a880}.wf-clip-item small{color:var(--muted)}.wf-clip-heading{display:flex;justify-content:space-between;gap:8px}.wf-video-workspace{padding:0;overflow:hidden}.wf-segment-header{min-height:76px;padding:14px 18px;display:flex;align-items:center;justify-content:space-between;gap:14px;border-bottom:1px solid var(--line);background:#12151c}.wf-directory{display:flex;align-items:center;gap:6px;color:var(--muted);font-size:11px;text-transform:uppercase}.wf-segment-title{display:block;width:min(420px,100%);margin-top:5px;border:0;padding:0;background:transparent;font-size:19px;font-weight:700;outline:none}.wf-status{display:inline-flex;align-items:center;gap:6px;color:var(--accent);font-size:12px;white-space:nowrap}.wf-video-columns{display:grid;grid-template-columns:minmax(190px,.8fr) minmax(280px,1.5fr) minmax(210px,.8fr);min-height:540px;background:#0f1218}.wf-video-columns>section{min-width:0;padding:16px}.wf-video-columns>section+section{border-left:1px solid var(--line)}.wf-column-heading{min-height:28px;display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:14px}.wf-column-heading>div{display:flex;align-items:center;gap:8px}.wf-column-heading span{color:var(--accent);font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:11px}.wf-column-heading strong{font-size:13px}.wf-column-heading small{color:var(--muted);font-size:11px}.wf-reference-column{display:flex;flex-direction:column}.wf-reference-list{display:grid;gap:10px;max-height:405px;overflow-y:auto;padding-right:4px}.wf-reference-item{position:relative;display:grid;grid-template-columns:72px minmax(0,1fr);align-items:center;gap:10px;min-height:62px;padding:6px;border:1px solid #303747;border-radius:8px;background:#171b24}.wf-reference-item img,.wf-audio-preview{width:72px;height:54px;border-radius:5px;object-fit:cover;background:#0b0e13}.wf-audio-preview{display:grid;place-items:center;color:var(--accent-2);font-size:9px;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;letter-spacing:.08em}.wf-reference-item>div:nth-child(2){min-width:0;display:grid;gap:5px}.wf-reference-item strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px}.wf-reference-kind{width:fit-content;padding:2px 5px;border-radius:4px;color:#fff;font-size:9px}.wf-reference-kind.kind-角色{background:var(--role)}.wf-reference-kind.kind-场景{background:var(--scene)}.wf-reference-kind.kind-道具{background:var(--prop)}.wf-reference-kind.manual{background:#36506e}.wf-icon-btn{position:absolute;top:5px;right:5px;width:26px;height:26px;display:grid;place-items:center;border:0;border-radius:5px;background:#0a0c11c7;color:var(--muted)}.wf-icon-btn:hover{color:#fecaca}.wf-reference-actions{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-top:auto;padding-top:14px}.wf-upload-btn{min-height:38px;display:flex;align-items:center;justify-content:center;gap:6px;border:1px dashed rgba(110,231,168,.55);border-radius:7px;color:var(--accent);font-size:11px;cursor:pointer}.wf-upload-btn.secondary{border-color:#465168;color:#bcc5d6}.wf-upload-btn input{display:none}.wf-prompt-column{display:flex;flex-direction:column}.wf-video-prompt{flex:1;width:100%;min-height:390px;resize:vertical;border:1px solid #303747;border-radius:8px;padding:16px;background:#11151d;color:#e8ecf4;line-height:1.75;outline:none}.wf-video-prompt:focus{border-color:#6ee7a899;box-shadow:0 0 0 3px #6ee7a814}.wf-prompt-path{margin:9px 0 0;color:#667085;font-size:10px;font-family:ui-monospace,SFMono-Regular,Consolas,monospace}.wf-model-column{background:#131720}.wf-model-select>span{display:block;margin-bottom:7px;color:var(--muted);font-size:11px}.wf-model-select>div{position:relative}.wf-model-select select{width:100%;height:46px;-webkit-appearance:none;-moz-appearance:none;appearance:none;border:1px solid rgba(110,231,168,.42);border-radius:8px;padding:0 42px 0 13px;background:#19231f;color:#dffbec;font-weight:650;outline:none}.wf-model-select svg{position:absolute;right:13px;top:14px;color:var(--accent);pointer-events:none}.wf-model-info{display:grid;gap:5px;margin-top:12px;padding:12px;border-left:2px solid var(--accent);background:#6ee7a80b}.wf-model-info strong{font-size:13px}.wf-model-info span{color:var(--muted);font-size:11px}.wf-model-route{display:grid;grid-template-columns:auto 1fr;gap:10px 12px;margin-top:24px;padding-top:16px;border-top:1px solid var(--line);font-size:11px}.wf-model-route span{color:var(--muted)}.wf-model-route strong{text-align:right;font-weight:500}@media(max-width:1180px){.wf-video-columns{grid-template-columns:minmax(180px,.75fr) minmax(260px,1.25fr)}.wf-model-column{grid-column:1 / -1;border-left:0!important;border-top:1px solid var(--line)}.wf-model-route{grid-template-columns:repeat(6,auto);align-items:center}.wf-model-route strong{text-align:left}}.wf-board-canvas{position:relative;min-height:560px;border-radius:12px;background:linear-gradient(rgba(255,255,255,.03) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.03) 1px,transparent 1px),#10131a;background-size:28px 28px,28px 28px,auto;overflow:auto;padding:24px}.wf-nodes{display:grid;grid-template-columns:repeat(3,minmax(160px,1fr));gap:18px;align-items:start}.wf-node{background:#1a1f2b;border:1px solid #3b4356;border-radius:12px;padding:12px;min-height:96px}.wf-node.model{border-color:#6ee7a873}.wf-node h5{margin:0 0 6px;font-size:13px}.wf-node p{margin:0;color:var(--muted);font-size:12px;line-height:1.4}.wf-flow-hint{margin-top:18px;color:var(--muted);font-size:12px;line-height:1.5}.wf-login-wrap{min-height:100vh;display:grid;place-items:center;padding:24px}.wf-login-card{width:min(420px,100%);background:var(--bg-elev);border:1px solid var(--line);border-radius:18px;padding:28px}.wf-login-card h1{margin:0 0 8px;font-size:28px}.wf-login-card p{margin:0 0 20px;color:var(--muted)}.brand-landing{--space-x: 0px;--space-y: 0px;position:relative;min-height:max(760px,100dvh);overflow:hidden;isolation:isolate;background:#000;color:#fff}.brand-cosmos{position:absolute;top:0;right:0;bottom:0;left:0;z-index:0;overflow:hidden;pointer-events:none}.brand-black-hole{position:absolute;top:50%;left:50%;width:min(1040px,100%);height:auto;aspect-ratio:1040 / 600;background:url(/hero-black-hole-poster-v1.webp) center / 100% 100% no-repeat;translate:-50% -50%;transform:translate3d(var(--space-x),var(--space-y),0);transition:transform .4s ease-out}.brand-black-hole-animation{display:block;width:100%;height:100%}.brand-landing-nav{position:relative;z-index:2;display:flex;min-height:76px;align-items:center;justify-content:space-between;padding:0 clamp(22px,4vw,68px)}.brand-wordmark,.brand-login-link{display:inline-flex;align-items:center;border:0;padding:0;background:transparent;color:#fff}.brand-wordmark{gap:10px}.brand-wordmark strong{font-size:16px;font-weight:700}.brand-mark,.brand-auth-mark{display:grid;place-items:center;background:#fff;color:#1d1830;font-weight:900}.brand-mark{width:34px;height:34px;border-radius:7px;font-size:15px}.brand-login-link{gap:7px;padding:9px 2px;font-size:14px;font-weight:650}.brand-landing-main{position:relative;z-index:1;min-height:max(684px,calc(100dvh - 76px));display:flex;flex-direction:column;align-items:center;justify-content:flex-start;padding:28px 24px 120px;text-align:center}.brand-kicker{margin-bottom:18px;color:#ffffffb8;font-size:11px;font-weight:700;letter-spacing:0}.brand-headline{display:flex;align-items:center;justify-content:center;gap:18px;margin:0;font-size:56px;font-weight:750;letter-spacing:0;line-height:1.08;text-shadow:0 5px 30px rgba(9,6,25,.34)}.brand-rotator{height:1.26em;overflow:hidden;color:#9fb8ff;line-height:1.26}.brand-rotator-track{display:flex;flex-direction:column;animation:brandWords 12s cubic-bezier(.76,0,.24,1) infinite}.brand-rotator-track>span{height:1.26em;flex:0 0 1.26em;white-space:nowrap}@keyframes brandWords{0%,16%{transform:translateY(0)}22%,38%{transform:translateY(-1.26em)}44%,60%{transform:translateY(-2.52em)}66%,82%{transform:translateY(-3.78em)}88%,to{transform:translateY(-5.04em)}}.brand-actions{display:flex;gap:12px;margin-top:auto}.brand-action{text-decoration:none;min-width:122px;height:44px;display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid rgba(255,255,255,.34);border-radius:7px;padding:0 20px;color:#fff;font-size:14px;font-weight:700;box-shadow:0 10px 28px #0a061f33;transition:transform .16s ease,border-color .16s ease,background .16s ease}.brand-action:hover{transform:translateY(-2px);border-color:#ffffffb8}.brand-action.secondary{background:#101114}.brand-action.primary{border-color:transparent;background:#dce5ff;color:#101522}.brand-landing-foot{position:absolute;bottom:max(22px,env(safe-area-inset-bottom));left:24px;right:24px;z-index:1;display:grid;justify-items:center;gap:14px;color:#ffffff94;font-size:11px;font-weight:650}.brand-pipeline{display:flex;align-items:center;gap:12px}.brand-credit{color:#92969e;font-size:10px;text-decoration:none}.brand-credit:hover{color:#fff;text-decoration:underline}.brand-motion-toggle{position:absolute;right:0;bottom:0;display:grid;place-items:center;width:36px;height:36px;border:1px solid #3a3d44;border-radius:50%;background:#101114;color:#dce5ff}.brand-landing[data-motion=off] .brand-black-hole{transform:none;transition:none}.brand-landing[data-motion=off] .brand-rotator-track{animation-play-state:paused}.brand-landing-foot i{width:20px;height:1px;background:#ffffff4d}.brand-auth{position:fixed;top:0;right:0;bottom:0;left:0;z-index:30;display:grid;place-items:center;padding:20px}.brand-auth-backdrop{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;border:0;background:#090614ad;-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px)}.brand-auth .wf-login-card{position:relative;z-index:1;width:min(420px,100%);border-color:#ffffff29;border-radius:12px;background:#141519f7;box-shadow:0 30px 90px #0804197a;text-align:center}.brand-auth .wf-login-card h2{margin:18px 0 8px;font-size:27px}.brand-auth .wf-login-card>p{margin:0 0 24px;color:#aaa5ba;font-size:13px;line-height:1.6}.brand-auth-mark{width:38px;height:38px;border-radius:8px;margin:0 auto}.brand-auth-close{position:absolute;top:14px;right:14px;display:grid;width:32px;height:32px;place-items:center;border:0;border-radius:6px;background:transparent;color:#aaa5ba}.brand-auth-close:hover{background:#ffffff14;color:#fff}.brand-auth-form{max-width:none;text-align:left}.brand-auth-form .wf-btn{min-height:44px;margin-top:4px;border-radius:7px;background:#dce5ff;color:#101522}@media(max-width:1000px){.brand-headline{font-size:42px}}@media(max-width:720px){.brand-landing{min-height:max(680px,100dvh)}.brand-black-hole{width:100%;top:52%}.brand-landing-nav{min-height:64px;padding:0 18px}.brand-landing-main{min-height:max(616px,calc(100dvh - 64px));padding:36px 18px 132px}.brand-kicker{margin-bottom:17px;font-size:9px}.brand-headline{flex-direction:column;gap:10px;font-size:36px}.brand-actions{width:min(330px,100%);margin-top:auto}.brand-action{min-width:0;flex:1;padding:0 12px}.brand-landing-foot{bottom:max(22px,env(safe-area-inset-bottom));gap:14px;padding-bottom:38px}.brand-landing-foot i{width:10px}}@media(prefers-reduced-motion:reduce){.brand-rotator-track{animation:none}.brand-black-hole{transform:none;transition:none}}.wf-asset-card{border-color:var(--line);border-radius:10px;background:var(--bg-card);box-shadow:0 18px 44px #03020f33;-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px)}.wf-asset-media{background:#070613b8}.wf-badge.prompt{border-color:#8b63ff85;background:#8b63ff1a;color:#d4c7ff}.wf-badge.meta{border:1px solid rgba(177,164,223,.18);background:#191630db;color:#dcd5ee}.wf-desc{color:#b9b4c8}.wf-prompt-box textarea{border-radius:7px;background:#080714b8}.wf-app textarea{resize:none;scrollbar-width:thin;scrollbar-color:#73737d #19191f;scrollbar-gutter:stable}.wf-analysis-heading{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin-bottom:12px}.wf-analysis-heading .wf-hero-title{margin:0}.wf-analysis-heading select{width:auto;max-width:100%;min-height:40px;padding:8px 32px 8px 12px;background:#19191f;color:#fff;border:1px solid #555;border-radius:6px}.wf-prompt-box textarea::-webkit-scrollbar{width:8px}.wf-prompt-box textarea::-webkit-scrollbar-track{background:#19191f;border-radius:4px}.wf-prompt-box textarea::-webkit-scrollbar-thumb{background:#73737d;border:2px solid #19191f;border-radius:4px}.wf-prompt-box textarea::-webkit-scrollbar-thumb:hover{background:#9999a4}.wf-side,.wf-board,.wf-inspector{box-shadow:0 20px 56px #03020f33;-webkit-backdrop-filter:blur(22px);backdrop-filter:blur(22px)}.wf-clip-item{border-radius:7px;background:#0a081ab3;color:var(--text);transition:border-color .15s ease,background .15s ease}.wf-clip-item:hover{border-color:#8b63ff61}.wf-clip-item.active{border-color:#8b63ffb8;background:#4830894d;box-shadow:inset 3px 0 #8b63ff}.wf-segment-header{background:#0c091db3}.wf-video-columns{background:#0706129e}.wf-column-heading span{color:#b59cff}.wf-reference-item{border-color:var(--line);background:#1d1734b8}.wf-reference-item img,.wf-audio-preview{background:#0a0819}.wf-reference-kind.manual{background:#3159a8}.wf-icon-btn{background:#090716d6}.wf-upload-btn{border-color:#8b63ff94}.wf-upload-btn.secondary{border-color:#e54aa86b;color:#f1b5da}.wf-video-prompt{border-color:var(--line);background:#080715c2;color:#f2eefb}.wf-video-prompt:focus{border-color:#8b63ffad;box-shadow:0 0 0 3px #8b63ff1a}.wf-prompt-path{color:#77708c}.wf-model-column{background:#18122d94}.wf-model-select select{border-color:#8b63ff85;background:#2e2157cc;color:#f1ebff}.wf-model-info{border-left-color:#d946a0;background:#d946a012}.wf-board-canvas{background:linear-gradient(rgba(184,165,232,.035) 1px,transparent 1px),linear-gradient(90deg,rgba(184,165,232,.035) 1px,transparent 1px),#080714d1;background-size:28px 28px,28px 28px,auto}.wf-node{border-color:var(--line);border-radius:8px;background:#231b3fe6}.wf-node.model{border-color:#8b63ff8c}.wf-result-card{border-radius:10px;background:var(--bg-card);box-shadow:0 18px 44px #03020f33;-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px)}.wf-empty{background:#14102773}.wf-analyzing{display:grid;place-items:center;min-height:360px;gap:12px;text-align:center}.wf-spinner{width:42px;height:42px;border-radius:50%;border:3px solid #2c3344;border-top-color:var(--accent);animation:spin .9s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.wf-result-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:14px}.wf-result-card{background:var(--bg-card);border:1px solid var(--line);border-radius:14px;padding:14px}.wf-empty{border:1px dashed var(--line);border-radius:14px;padding:28px;text-align:center;color:var(--muted)}.wf-canvas>*,.wf-nodes>*{min-width:0}@media(max-width:640px){.wf-board-canvas{padding:12px;min-height:0}.wf-nodes{grid-template-columns:minmax(0,1fr)}.wf-segment-header{align-items:flex-start}.wf-status{display:none}.wf-video-columns{grid-template-columns:minmax(0,1fr)}.wf-video-columns>section+section{border-left:0;border-top:1px solid var(--line)}.wf-model-column{grid-column:auto}.wf-reference-list{max-height:360px}.wf-video-prompt{min-height:280px}.wf-model-route{grid-template-columns:auto 1fr}.wf-model-route strong{text-align:right}}.wf-image-retry-bar{display:flex;align-items:center;justify-content:space-between;gap:16px;width:100%;box-sizing:border-box}.wf-image-retry-bar>span{min-width:0;overflow-wrap:anywhere}.wf-image-retry-bar>.wf-btn{flex-shrink:0;margin-left:auto}

/* source: /assets/yuntuo-1d3ba97bbdc3-v3-549bce22ffc8-workspace-polish-20261009-v2.css */
/* Local workspace presentation. Workflow, request handling and data are unchanged. */
.wf-app {
  --bg: #101112;
  --bg-elev: #1a1b1ded;
  --bg-card: #1d1e20;
  --line: #ffffff14;
  --line-strong: #c7a47a66;
  --text: #f0eeea;
  --muted: #a7a49f;
  --accent: #edb67d;
  --accent-2: #c9915c;
  background: radial-gradient(ellipse at 85% 0%, #b48c6010, transparent 48%), #101112;
  color: var(--text);
}
.wf-app::before { display: none; }
.wf-app::after { display: none; }
.wf-app .workspace-film { opacity: .06; }
.wf-app .workspace-film::after { background: #101112ef; }
.wf-app .wf-top {
  min-height: 76px;
  box-sizing: border-box;
  padding: 14px 30px;
  gap: 22px;
  border-bottom: 1px solid #ffffff10;
  background: #131416f5;
  backdrop-filter: blur(18px);
  box-shadow: 0 4px 22px #0002;
}
.wf-app .wf-brand { gap: 10px; font-size: 16px; letter-spacing: .01em; }
.wf-app .wf-brand-mark { background: #e9c49a; color: #2b2116; border-radius: 10px; box-shadow: inset 0 1px #fff7; }
.wf-app .wf-brand > span { color: #8b8986; font-size: 11px; }
.wf-app .wf-steps { gap: 5px; padding: 5px; background: #ffffff03; border: 1px solid #ffffff0b; border-radius: 12px; }
.wf-app .wf-step { min-height: 34px; padding: 7px 12px; border: 1px solid transparent; border-radius: 8px; background: transparent; color: #aaa6a0; font-size: 12px; }
.wf-app .wf-step.done { border-color: transparent; color: #c9b092; }
.wf-app .wf-step:hover:not(:disabled) { color: #f0d6b5; background: #ffffff06; }
.wf-app .wf-step.active { border-color: #e7b37b; background: #e7b37b; color: #21180c; box-shadow: 0 2px 8px #0002; }
.wf-app .wf-step:disabled { opacity: .38; }
.wf-app .wf-user { color: #a7a49f; font-size: 12px; }
.wf-app .wf-top-actions { gap: 10px; }
.wf-app .wf-top-actions .wf-btn { min-height: 36px; padding: 7px 12px; font-size: 12px; }
.wf-app .wf-main { width: min(1344px, calc(100% - 64px)); padding: 36px 0 64px; }
.wf-app .wf-hero-title { margin-bottom: 12px; color: #f4f0e9; font-size: 30px; font-weight: 650; letter-spacing: -.025em; line-height: 1.4; }
.wf-app .wf-hero-sub { margin-bottom: 28px; color: #a7a49f; font-size: 13px; line-height: 1.85; max-width: 760px; }
.wf-app .wf-main > section > .wf-hero-title::before { content: '云拓创作工作台'; display: block; margin-bottom: 12px; color: #bda88b; font-size: 10px; font-weight: 500; letter-spacing: .24em; }
.wf-app .wf-main > section > .wf-hero-title { font-size: clamp(30px,3.2vw,42px); font-weight: 550; letter-spacing: -.035em; }
.wf-app .wf-project-results > .wf-toolbar { padding-bottom: 16px; border-bottom: 1px solid #ffffff12; margin-bottom: 20px; }
.wf-app .wf-project-results > .wf-toolbar > strong { font-size: 13px; font-weight: 500; letter-spacing: .02em; }
.wf-app .wf-project-results > .wf-toolbar > strong .wf-muted { display: inline-grid; place-items: center; min-width: 22px; height: 22px; margin-left: 5px; padding: 0 4px; border-radius: 6px; background: #c7a47a12; color: #c7b493; font-size: 11px; }
.wf-app .wf-muted { color: var(--muted); }
.wf-app .wf-btn { min-height: 38px; padding: 8px 14px; border-color: #ffffff18; border-radius: 9px; background: #ffffff04; font-size: 13px; font-weight: 500; box-shadow: none; transition: background .16s ease, border-color .16s ease, color .16s ease; }
.wf-app .wf-btn:hover:not(:disabled) { transform: none; background: #ffffff09; border-color: #c7a47a66; }
.wf-app .wf-btn.primary { background: #e7b37b; color: #251b0e; border-color: #e7b37b; font-weight: 650; }
.wf-app .wf-btn.primary:hover:not(:disabled) { background: #f4cb9a; border-color: #f4cb9a; }
.wf-app .wf-btn.danger { background: #c76f7710; border-color: #c76f7738; color: #dfa2a7; }
.wf-app .wf-btn.danger:hover:not(:disabled) { background: #c76f7720; border-color: #c76f7780; }
.wf-app .wf-btn:disabled { opacity: .38; }
.wf-app .wf-btn:focus-visible,.wf-app .wf-step:focus-visible { outline: 2px solid #edb67d; outline-offset: 3px; }
.wf-app input:not([type=checkbox]):not([type=radio]),.wf-app select,.wf-app textarea { background-color: #141517; border-color: #ffffff18; color: #e7e4df; font-family: inherit; }
.wf-app select { border-radius: 8px; }
.wf-app .wf-panel,.wf-app .wf-side,.wf-app .wf-board,.wf-app .wf-model-column,.wf-app .wf-segment-header { background: #1a1b1df5; border-radius: 12px; box-shadow: 0 8px 28px #0002; }
.wf-app .wf-toolbar { gap: 14px; margin-bottom: 20px; }
.wf-app .wf-toolbar-group { gap: 8px; }
.wf-app .wf-project-layout { gap: 28px; }
.wf-app .project-add-card { border-radius: 14px; border: 1px dashed #c7a47a66; background: linear-gradient(145deg,#c7a47a0c,#ffffff02); color: #e1be95; transition: background .16s, border-color .16s; }
.wf-app .project-add-card:hover { background: #c7a47a12; border-color: #e7b37b; }
.wf-app .project-add-card { position: relative; overflow: hidden; min-height: 252px; }
.wf-app .project-add-card::before { content: ''; position: absolute; width: 180px; height: 180px; top: -98px; right: -78px; border: 1px solid #c7a47a24; border-radius: 50%; box-shadow: 0 0 0 28px #c7a47a05,0 0 0 56px #c7a47a04; pointer-events: none; }
.wf-app .wf-grid-projects { gap: 16px; }
.wf-app .wf-project-card { border-radius: 13px; border-color: #ffffff15; background: linear-gradient(145deg,#242527,#1a1b1d); box-shadow: 0 5px 18px #0002; }
.wf-app .wf-project-card:hover { border-color: #c7a47a66; background: linear-gradient(145deg,#2a2926,#202123); box-shadow: 0 8px 26px #0003; transform: translateY(-2px); }
.wf-app .wf-project-open { min-height: 142px; gap: 16px; padding: 24px 46px 24px 20px; }
.wf-app .wf-project-card .wf-project-open { grid-template-columns: minmax(0,1fr); align-content: space-between; gap: 20px; min-height: 164px; }
.wf-app .wf-project-open > .project-card-style { display: flex; align-items: center; justify-content: flex-start; gap: 10px; padding: 12px 0 0; border-left: 0; border-top: 1px solid #ffffff0c; text-align: left; }
.wf-app .project-card-details strong { font-size: 15px; font-weight: 600; line-height: 1.6; margin-bottom: 9px; }
.wf-app .project-card-notes { color: #94918b; font-size: 12px; }
.wf-app .project-card-style { border-left-color: #c7a47a22; gap: 8px; }
.wf-app .project-card-style-label { font-size: 10px; color: #8b8882; }
.wf-app .project-card-style-value { color: #c8b392; font-size: 11px; line-height: 1.6; }
.wf-app .wf-project-delete { color: #85827d; }
.wf-app .wf-project-delete { top: 10px; right: 10px; width: 30px; height: 30px; }
.wf-app .wf-project-card .project-card-details strong { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.wf-app .basic-progress { background: linear-gradient(135deg,#242321,#1b1c1e 75%); border-color: #c7a47a26; border-radius: 14px; padding: 20px; box-shadow: 0 8px 26px #0002; }
.wf-app .basic-progress-summary { gap: 12px; }
.wf-app .basic-progress-summary strong { font-size: 14px; font-weight: 600; }
.wf-app .basic-progress-summary b { font-size: 24px; font-weight: 600; color: #e8bf90; }
.wf-app .basic-progress .wf-btn { min-height: 32px; padding: 6px 10px; font-size: 12px; }
.wf-app .basic-progress .wf-muted,.wf-app .basic-progress > small { font-size: 12px; line-height: 1.8; }
.wf-app .basic-asset-stage { background: #c7a47a08; border-color: #c7a47a24; color: #cbbda9; border-radius: 9px; }
.wf-app progress { appearance: none; height: 5px; border: 0; border-radius: 8px; overflow: hidden; background: #ffffff09; color: #d6b084; }
.wf-app progress::-webkit-progress-bar { border-radius: 8px; background: #ffffff09; }
.wf-app progress::-webkit-progress-value { border-radius: 8px; background: linear-gradient(90deg,#ad8860,#edc496); }
.wf-app progress::-moz-progress-bar { border-radius: 8px; background: #d6b084; }
.wf-app .wf-asset-grid { gap: 22px; }
.wf-app .wf-asset-card { border: 1px solid #ffffff18; border-radius: 14px; background: #1d1e20; box-shadow: 0 8px 26px #0002; transition: border-color .18s ease, box-shadow .18s ease; }
.wf-app .wf-asset-card:hover { border-color: #c7a47a55; box-shadow: 0 10px 30px #0003; }
.wf-app .wf-asset-media { border-bottom-color: #ffffff0d; background: #161719; }
.wf-app .wf-asset-preview .wf-empty-frame { background: radial-gradient(ellipse at 50% 40%,#292a2c,#191a1c 80%); color: #b4aea4; }
.wf-app .wf-asset-preview .wf-empty-frame::before { border-color: #ffffff10; border-style: solid; }
.wf-app .wf-empty-frame > span { padding: 20px; font-size: 13px; line-height: 1.8; }
.wf-app .wf-empty-frame small { color: #767571; font-size: 11px; margin-top: 6px; }
.wf-app .wf-asset-check { top: 14px; left: 14px; width: 17px; height: 17px; }
.wf-app .wf-asset-body { padding: 18px; gap: 14px; }
.wf-app .wf-asset-title-row { display: grid; grid-template-columns: minmax(0,1fr) auto auto; gap: 9px; align-items: center; }
.wf-app .wf-asset-title-row h3 { grid-column: 1 / -1; padding-bottom: 3px; }
.wf-app .wf-asset-title-row h3 input { font-size: 17px !important; font-weight: 600 !important; line-height: 1.5; }
.wf-app .wf-asset-title-row .wf-badge.prompt { justify-self: start; }
.wf-app .wf-asset-title-row .wf-asset-image-action { min-height: 34px; height: 34px; padding: 0 12px; width: auto; font-size: 12px; }
.wf-app .wf-badge { border-radius: 6px; font-size: 11px; font-weight: 500; }
.wf-app .wf-badge.prompt { color: #c7bea9; background: #c7a47a0c; border: 1px solid #c7a47a30; padding: 4px 8px; }
.wf-app .wf-tags { gap: 7px; }
.wf-app .wf-tags .wf-btn { min-height: 30px; padding: 5px 8px; border-radius: 6px; }
.wf-app .wf-tags select { max-width: 160px; padding: 6px 8px; min-height: 30px; background: #ffffff04; border-color: #ffffff16; color: #bdb8b0; }
.wf-app .wf-badge.kind-角色 { background: #9b80502a; color: #d7be96; }
.wf-app .wf-badge.kind-场景 { background: #628b8226; color: #a6cbc0; }
.wf-app .wf-badge.kind-道具 { background: #9d78872a; color: #d3b0bd; }
.wf-app .asset-parent-label { border-color: #b992632e; background: #b992630e; color: #d4b58d; }
.wf-app .asset-child-label { border-color: #789aa62e; background: #789aa60e; color: #a5c4cf; }
.wf-app .wf-desc { color: #aba69e; font-size: 12px; line-height: 1.8; }
.wf-app .wf-prompt-box { display: grid; gap: 8px; min-width: 0; }
.wf-app .wf-prompt-box > .wf-muted { font-size: 11px; color: #94918b; }
.wf-app .wf-prompt-box textarea { min-height: 94px; box-sizing: border-box; padding: 12px; font-size: 12px; font-weight: 400; line-height: 1.7; border-radius: 9px; background: #131416; color: #c9c6c0; }
.wf-app .wf-video-workspace { border: 1px solid #ffffff14; border-radius: 14px; overflow: hidden; }
.wf-app .wf-segment-header { border-radius: 0; box-shadow: none; background: #232321; border-bottom-color: #c7a47a20; padding: 20px; }
.wf-app .wf-video-columns { background: #151618; }
.wf-app .wf-video-columns > section { padding: 20px; }
.wf-app .wf-video-columns > section + section { border-left-color: #ffffff0c; }
.wf-app .wf-model-column { border-radius: 0; background: #1c1d1f; box-shadow: none; }
.wf-app .wf-column-heading { margin-bottom: 18px; }
.wf-app .wf-column-heading span { color: #bfa580; }
.wf-app .wf-column-heading strong { font-size: 13px; font-weight: 600; }
.wf-app .wf-reference-item { border-radius: 9px; background: #202123; border-color: #ffffff10; }
.wf-app .wf-model-select select { border-color: #c7a47a4d; background: #282622; color: #ecd4b4; }
.wf-app .wf-model-info { border-left-color: #c7a47a; border-radius: 0 8px 8px 0; background: #c7a47a08; }
.wf-app .wf-clip-item { border-radius: 8px; background: #1c1d1f; }
.wf-app .wf-clip-item.active { background: #c7a47a12; border-color: #c7a47a66; box-shadow: inset 3px 0 #d4b183; }
.wf-app .wf-side { border-color: #ffffff12; }
.wf-app .wf-video-prompt { box-sizing: border-box; border-radius: 10px; background: #111214; color: #d8d4cd; }
/* Keep account tools visually consistent with the workspace, including body portals. */
.brand-landing .brand-landing-nav { border-bottom-color: #e7c49a20; background: #10111218; }
.brand-landing .brand-headline { font-weight: 550; letter-spacing: -.03em; }
.brand-landing .brand-action { border-radius: 10px; min-height: 48px; font-weight: 600; padding-inline: 24px; }
.brand-landing .brand-action.primary { box-shadow: 0 4px 20px #0003, inset 0 1px #fff4; }
.brand-landing .brand-action.secondary { backdrop-filter: blur(14px); border-color: #ffffff3d; }
.brand-landing .brand-credit { font-weight: 400; letter-spacing: .06em; }
.model-api-manager { --ma-accent: #e7b37b; background: linear-gradient(145deg,#242321,#191a1c 75%); border-color: #c7a47a44; border-radius: 16px; color: #f0eeea; }
.model-api-manager .ma-button.primary { background: #e7b37b; border-color: #e7b37b; color: #251b0e; }
.model-api-manager .ma-default-summary,.model-api-manager .ma-api-card.is-default { background: #c7a47a08; border-color: #c7a47a44; }
.model-api-manager .ma-tab.active { color: #e7c49a; border-bottom-color: #e7b37b; }
.model-api-manager .ma-badge.default { background: #c7a47a18; color: #e4c69e; }
.model-api-manager .ma-default-icon { background: #c7a47a18; color: #e4c69e; }
.model-api-manager .ma-eyebrow,.model-api-manager .ma-default-summary small { color: #bfa580; }
.model-api-manager .ma-default-summary strong { color: #ead5b9; }
.model-api-manager .ma-heading p,.model-api-manager .ma-list-heading p,.model-api-manager .ma-card-detail small { color: #a7a49f; }
.model-api-manager .ma-api-card { background: #ffffff02; border-color: #ffffff18; }
.model-api-manager .ma-field input,.model-api-manager .ma-field select,.model-api-manager .mu-currency,.model-api-manager .mu-project-select { background-color: #141517; border-color: #ffffff20; color: #ddd5ca; }
.model-api-manager .mu-kpi { background: #c7a47a05; border-color: #c7a47a22; }
.model-api-manager .mu-kpi strong { color: #ecd4b4; }
.model-api-manager .mu-kpi small,.model-api-manager .mu-table th { color: #b5a48d; }
.model-api-manager .mu-table th { background: #c7a47a07; }
.model-api-manager .mu-table td { color: #d0cbc2; }
@media(max-width:1180px) {
  .wf-app .wf-top { padding: 12px 20px; gap: 14px; flex-wrap: wrap; }
  .wf-app .wf-brand > span { display: none; }
  .wf-app .wf-main { width: calc(100% - 40px); }
  .wf-app .wf-asset-grid { gap: 16px; }
}
@media(max-width:760px) {
  .wf-app .wf-top { padding: 12px 16px; gap: 12px; }
  .wf-app .wf-brand { font-size: 14px; }
  .wf-app .wf-top-actions { margin-left: auto; }
  .wf-app .wf-steps { order: 3; width: 100%; box-sizing: border-box; overflow-x: auto; flex-wrap: nowrap; }
  .wf-app .wf-step { flex-shrink: 0; padding: 7px 10px; font-size: 11px; }
  .wf-app .wf-main { width: calc(100% - 32px); padding-top: 24px; }
  .wf-app .wf-hero-title { font-size: 25px; }
  .wf-app .wf-hero-sub { font-size: 12px; margin-bottom: 22px; }
  .wf-app .wf-project-open { min-height: 130px; }
  .wf-app .basic-progress { padding: 16px; }
  .wf-app .wf-asset-body { padding: 16px; }
  .wf-app .wf-video-columns > section { padding: 16px; }
  .wf-app .wf-toolbar-group { max-width: 100%; }
}
@media(prefers-reduced-motion:reduce) {
  .wf-app .wf-project-card,.wf-app .wf-asset-card,.wf-app .wf-btn,.wf-app .project-add-card { transition: none; }
  .wf-app .wf-project-card:hover { transform: none; }
}

/* source: /assets/v3-baa5316fc040-prompt-editor-20261009-v5.css */
.prompt-editor-dialog {
  position: fixed;
  inset: 0;
  margin: auto;
  width: min(1120px, calc(100vw - 64px));
  height: min(820px, calc(100dvh - 64px));
  max-width: none;
  max-height: none;
  box-sizing: border-box;
  padding: 26px;
  border: 1px solid rgb(214 182 141 / 32%);
  border-radius: 8px;
  color: var(--text, #f5f6f8);
  background: var(--bg-elev, #191919ed);
  box-shadow: 0 24px 90px #0006, inset 0 1px #ffefd70f;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  font-family: inherit;
}
.prompt-editor-dialog[open] { display: flex; flex-direction: column; gap: 18px; }
.prompt-editor-dialog::backdrop { background: #090909a8; backdrop-filter: blur(5px); }
.prompt-editor-heading,.prompt-editor-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-shrink: 0; }
.prompt-editor-heading h2 { margin: 0; font-size: 23px; line-height: 1.4; }
.prompt-editor-subtitle { margin: 6px 0 0; color: var(--muted, #aaaeb1); font-size: 14px; }
.prompt-editor-close { display: grid; place-items: center; width: 36px; height: 36px; flex-shrink: 0; padding: 8px; border: 0; border-radius: 6px; background: transparent; color: var(--muted, #aaaeb1); cursor: pointer; transition: color .15s ease, background .15s ease; }
.prompt-editor-close svg { width: 20px; height: 20px; }
.prompt-editor-close:hover { color: #f5d1a4; background: #e7b37b1a; }
.prompt-editor-close:focus-visible { outline: 2px solid var(--accent, #edb67d); outline-offset: 2px; }
.prompt-editor-dialog .prompt-editor-input {
  flex: 1;
  min-height: 0;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 22px;
  border: 1px solid var(--line, #ffffff24);
  border-radius: 7px;
  background: #101011;
  color: var(--text, #f5f6f8);
  font-family: inherit;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.8;
  resize: none;
  overflow: auto;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.prompt-editor-dialog .prompt-editor-input:hover { border-color: #edb67d99; box-shadow: 0 0 0 1px #edb67d26, 0 0 18px #edb67d12; }
.prompt-editor-dialog .prompt-editor-input:focus { outline: none; border-color: var(--accent, #edb67d); box-shadow: 0 0 0 2px #edb67d1a, 0 0 20px #edb67d12; }
.prompt-editor-count { color: var(--muted, #aaaeb1); font-size: 14px; }
.prompt-editor-actions { display: flex; gap: 12px; }
.prompt-editor-actions .wf-btn { padding: 10px 22px; font-size: 16px; }
.prompt-editor-actions .wf-btn:hover:not(:disabled) { background: #34312f; border-color: #aa8763; transform: none; }
.prompt-editor-actions .wf-btn.primary { background: #e7b37b; color: #21180c; border: 1px solid #e7b37b; box-shadow: none; }
.prompt-editor-actions .wf-btn.primary:hover:not(:disabled) { background: #f4cb9a; border-color: #f4cb9a; }
.prompt-editor-actions .wf-btn:focus-visible { outline: 2px solid var(--accent, #edb67d); outline-offset: 3px; }
.prompt-editor-error { color: #ffb3b3; margin: 0; }
.wf-prompt-box textarea:not([readonly]):not(:disabled),textarea.wf-video-prompt:not([readonly]):not(:disabled) { cursor: default; transition: border-color .18s ease, box-shadow .18s ease; }
.wf-prompt-box textarea:not([readonly]):not(:disabled):hover,textarea.wf-video-prompt:not([readonly]):not(:disabled):hover { border-color: var(--accent, #edb67d); box-shadow: 0 0 0 1px #edb67d33, 0 0 18px #edb67d26; }
.wf-app .wf-prompt-box textarea,.wf-app textarea.wf-video-prompt,.prompt-editor-dialog .prompt-editor-input { scrollbar-width: none; scrollbar-gutter: auto; }
.wf-app .wf-prompt-box textarea::-webkit-scrollbar,.wf-app textarea.wf-video-prompt::-webkit-scrollbar,.prompt-editor-dialog .prompt-editor-input::-webkit-scrollbar { display: none; width: 0; height: 0; }
@media(max-width:640px) {
  .prompt-editor-dialog { width: calc(100vw - 24px); height: calc(100dvh - 24px); padding: 16px; gap: 14px; border-radius: 8px; }
  .prompt-editor-dialog .prompt-editor-input { padding: 14px; font-size: 18px; line-height: 1.75; }
  .prompt-editor-heading h2 { font-size: 21px; }
  .prompt-editor-actions .wf-btn { padding: 10px 14px; }
}
@media(prefers-reduced-motion:reduce) {
  .prompt-editor-close,.prompt-editor-dialog .prompt-editor-input,.wf-prompt-box textarea,textarea.wf-video-prompt { transition: none; }
}

/* source: /assets/script-upload-77f7ec33a9c4.css */
.wf-app .wf-main[data-local-script-layout] { max-width: 1200px; }
.wf-app .wf-script-dropzone { padding: 28px; margin-top: 24px; border: 1px solid #c7a47a26; border-radius: 16px; background: linear-gradient(135deg,#222321,#191a1c 65%); box-shadow: 0 12px 40px #0002; }
.wf-app .wf-script-dropzone.dragging { border-color: #edb67d; box-shadow: 0 0 0 3px #edb67d18; background: #292620; }
.wf-app .wf-script-drop-hint { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.wf-app .wf-script-dropzone .wf-form.wide { display: grid; grid-template-columns: minmax(0,1fr) 280px; align-items: start; gap: 22px; }
.wf-app .wf-script-dropzone .wf-form > label { display: flex; flex-direction: column; gap: 12px; min-width: 0; color: #e5dfd5; font-size: 14px; font-weight: 500; }
.wf-app .wf-script-dropzone label:has(textarea) { grid-column: 1; grid-row: 1 / 3; }
.wf-app .wf-script-dropzone textarea { width: 100%; min-height: 380px; box-sizing: border-box; padding: 22px; border: 1px solid #ffffff18; border-radius: 12px; background: #121315; color: #d8d2c8; font-size: 15px; font-weight: 400; line-height: 1.95; resize: none; }
.wf-app .wf-script-dropzone textarea::placeholder { color: #77746e; }
.wf-app .wf-script-dropzone textarea:focus-visible { outline: none; border-color: #c7a47a80; box-shadow: 0 0 0 3px #c7a47a0c; }
.wf-app .wf-script-dropzone label:has(input[type=file]) { position: relative; grid-column: 2; box-sizing: border-box; min-height: 320px; margin-top: 33px; padding: 24px; gap: 18px; border: 1px solid #ffffff18; border-radius: 12px; background: #141517; font-size: 0; line-height: 1.8; text-align: left; transition: border-color .18s, background .18s; }
.wf-app .wf-script-dropzone label:has(input[type=file])::before { content: '导入剧本'; display: flex; align-items: center; min-height: 36px; padding-left: 46px; color: #e5dfd5; font-size: 15px; font-weight: 600; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='36' viewBox='0 0 32 36' fill='none'%3E%3Crect x='.5' y='.5' width='31' height='35' rx='7' fill='%23c7a47a0d' stroke='%23c7a47a40'/%3E%3Cpath d='M18 8h-7v19h12V13l-5-5Zm0 0v5h5M17 23v-7m-3 3 3-3 3 3' stroke='%23d6b48a' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") left center no-repeat; }
.wf-app .wf-script-dropzone label:has(input[type=file])::after { content: '拖拽剧本到这里\A 或点击下方按钮选择文件\A\A TXT · MD · Fountain · DOCX'; order: 1; flex: 1; white-space: pre-line; color: #a7a097; font-size: 12px; font-weight: 400; line-height: 1.9; }
.wf-app .wf-script-dropzone.dragging label:has(input[type=file]) { border-color: #edb67d; background: #edb67d0c; box-shadow: 0 0 0 2px #edb67d18; }
.wf-app .wf-script-dropzone.dragging label:has(input[type=file])::after { content: '松开即可导入剧本\A TXT · MD · Fountain · DOCX'; }
.wf-app .wf-script-dropzone input[type=file] { order: 2; width: 100%; min-width: 0; box-sizing: border-box; background: transparent; border: 0; border-top: 1px solid #ffffff0d; padding: 20px 0 0; color: #8f8b83; font-size: 10px; }
.wf-app .wf-script-dropzone input[type=file]::file-selector-button { display: inline-block; width: auto; margin: 0 10px 0 0; padding: 9px 15px; border: 1px solid #c7a47a55; border-radius: 7px; background: #c7a47a12; color: #e7c49a; font: inherit; font-size: 12px; font-weight: 500; cursor: pointer; transition: background .18s, border-color .18s; }
.wf-app .wf-script-dropzone input[type=file]:hover::file-selector-button { background: #c7a47a24; border-color: #c7a47a99; }
.wf-app .wf-script-dropzone input[type=file]:focus-visible { outline: 2px solid #c7a47a80; outline-offset: 4px; box-shadow: none; border-radius: 5px; }
.wf-app .wf-script-dropzone input[type=file]:disabled::file-selector-button { opacity: .4; cursor: default; }
.wf-app .wf-script-dropzone .wf-form > .wf-toolbar-group { grid-column: 2; align-self: end; }
.wf-app .wf-script-dropzone .wf-form > .wf-toolbar-group .wf-btn { width: 100%; }
.wf-app .wf-script-dropzone .wf-error { grid-column: 1 / -1; }
.wf-app .wf-main[data-local-script-layout] .pipeline-progress { margin-top: 24px; }
@media(max-width:800px) {
 .wf-app .wf-script-dropzone { padding: 20px; }
 .wf-app .wf-script-dropzone .wf-form.wide { grid-template-columns: minmax(0,1fr); gap: 20px; }
 .wf-app .wf-script-dropzone label:has(textarea) { grid-column: 1; grid-row: auto; }
 .wf-app .wf-script-dropzone label:has(input[type=file]),.wf-app .wf-script-dropzone .wf-form > .wf-toolbar-group { grid-column: 1; }
 .wf-app .wf-script-dropzone textarea { min-height: 300px; padding: 16px; font-size: 14px; }
 .wf-app .wf-script-dropzone label:has(input[type=file]) { padding: 20px; margin-top: 0; min-height: 260px; }
}

/* source: /assets/model-api-layout-72a036dc5c91.css */
.model-api-manager{--ma-accent:#91b4ff;color:#eef2ff;background:linear-gradient(155deg,#1c2334,#111622 70%);border:1px solid #53617a80;border-radius:24px;width:min(900px,calc(100vw - 40px));max-height:88dvh;padding:0;box-shadow:0 32px 100px #0009;font-family:inherit;overflow:auto;}
.model-api-manager::backdrop{background:#050912ad;backdrop-filter:blur(8px)}
.ma-heading{display:flex;justify-content:space-between;gap:20px;padding:30px 32px 20px}.ma-eyebrow{color:#a4b9e5;font-size:10px;letter-spacing:.2em;font-weight:700}.ma-heading h2{font-size:27px;letter-spacing:-.03em;margin:9px 0}.ma-heading p{font-size:13px;color:#a5b0c4;margin:0;line-height:1.7}.ma-close{width:36px;height:36px;border:1px solid #61708b55;background:#ffffff08;color:#c7d2e7;border-radius:50%;font-size:24px;cursor:pointer;flex-shrink:0}
.ma-default-summary{display:flex;align-items:center;gap:16px;margin:0 32px 22px;padding:18px 20px;background:linear-gradient(115deg,#709afd1e,#747afa08);border:1px solid #739eff35;border-radius:16px}.ma-default-icon{display:grid;place-items:center;background:#a1bbff22;color:#afc8ff;border-radius:12px;width:44px;height:44px;font-size:24px}.ma-default-summary small,.ma-default-summary strong,.ma-default-summary div>span{display:block}.ma-default-summary small{color:#a6b7d6;font-size:11px;margin-bottom:5px}.ma-default-summary strong{font-size:16px;font-weight:600}.ma-default-summary div>span{color:#8fa3c5;font-size:12px;margin-top:5px}
.ma-tabs{display:flex;gap:6px;padding:0 32px;border-bottom:1px solid #4d5a723f}.ma-tab{padding:13px 18px;border:0;border-bottom:2px solid transparent;background:none;color:#8896af;font-size:13px;font-weight:600;cursor:pointer}.ma-tab.active{color:#b4cbff;border-bottom-color:#a9c2ff}.ma-content{padding:22px 32px 30px}.ma-list-heading{display:flex;justify-content:space-between;align-items:center;gap:18px;margin-bottom:18px}.ma-list-heading p{color:#a0aec5;font-size:12px;line-height:1.6;margin:0}.ma-button{font:inherit;font-size:12px;border-radius:9px;padding:9px 13px;background:#ffffff07;color:#c6d1e7;border:1px solid #64718a55;cursor:pointer;white-space:nowrap}.ma-button.primary{color:#142039;background:#b0c9ff;border-color:#b0c9ff;font-weight:700}.ma-button.danger{border-color:transparent;color:#d9a7ad;background:transparent}.ma-button:disabled{opacity:.45;cursor:wait}.ma-api-list{display:grid;grid-template-columns:1fr 1fr;gap:14px}.ma-api-card{border:1px solid #4e5b7150;border-radius:16px;background:#ffffff03;padding:19px;min-width:0}.ma-api-card.is-default{border-color:#90b4ff65;background:#719fff08}.ma-api-card.is-disabled{opacity:.65}.ma-card-top{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}.ma-card-top h3{font-size:14px;margin:2px 0;line-height:1.5;overflow-wrap:anywhere}.ma-badge{font-size:10px;border-radius:20px;background:#ffffff0a;color:#9faec6;padding:5px 8px;white-space:nowrap}.ma-badge.default{color:#b6caff;background:#87aaff19}.ma-card-detail{display:flex;flex-direction:column;gap:8px;margin-top:15px}.ma-card-detail code{color:#d0dcf3;font-size:12px;overflow-wrap:anywhere}.ma-endpoint{color:#8b9cb8;font-size:11px;overflow-wrap:anywhere;line-height:1.6}.ma-card-detail small{color:#687c9c;font-size:10px}.ma-card-actions{display:flex;flex-wrap:wrap;gap:6px;margin-top:18px;padding-top:15px;border-top:1px solid #4e5b7130}.ma-card-actions .ma-button{padding:6px 10px}.ma-empty{color:#99abc7;grid-column:1/-1;padding:35px;text-align:center}.ma-message{margin:0 32px 18px;padding:11px 14px;border-radius:9px;background:#a6c8ff10;color:#b4cbff;font-size:12px}.ma-message.is-error{background:#e46e7715;color:#f4b2bb}.ma-editor h3{font-size:17px;margin:0 0 22px}.ma-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.ma-field{display:flex;flex-direction:column;gap:9px;font-size:12px;color:#aab8cf}.ma-field input{color:#e0e9fa;background:#080e1b50;border:1px solid #63728b55;padding:12px 13px;border-radius:10px;min-width:0;font:inherit;font-size:13px}.ma-field input:focus{outline:2px solid #9fbdff55;border-color:#91b4ff}.ma-toggle{display:flex;align-items:center;gap:9px;color:#b5c2d9;font-size:13px;margin:22px 0 14px}.ma-toggle input{accent-color:#a3beff}.ma-note{color:#7e92b2;font-size:12px;line-height:1.7}.ma-form-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:25px}.ma-analysis-picker{margin:0 0 18px;padding:16px 18px;border-radius:14px;background:linear-gradient(115deg,#83aaff14,#777dca07);border:1px solid #8ba7db40}.ma-picker-heading{display:flex;align-items:center;gap:10px;margin-bottom:12px}.ma-picker-icon{display:grid;place-items:center;width:32px;height:32px;border-radius:9px;background:#8cacfa18;color:#a9c4ff;font-size:18px}.ma-picker-heading strong{display:block;color:#c1d2ee;font-size:13px}.ma-picker-heading small{display:block;color:#8b9bb7;font-size:11px;margin-top:3px}.ma-api-select{display:block;width:100%;padding:10px 12px;background:#172035;border:1px solid #778eaf66;border-radius:9px;color:#dce6fc;font:inherit;font-size:13px}.ma-api-select option{background:#172035;color:#dce6fc}.ma-picker-note{font-size:11px;color:#8298bd;margin:10px 0 0}.ma-launcher{white-space:nowrap}.ma-button:focus-visible,.ma-tab:focus-visible,.ma-close:focus-visible{outline:2px solid #a9c2ff;outline-offset:3px}
@media(max-width:640px){.model-api-manager{width:calc(100vw - 20px);max-height:93dvh;border-radius:18px}.ma-heading{padding:22px 20px 16px}.ma-heading h2{font-size:22px}.ma-heading p{font-size:12px}.ma-default-summary{margin:0 20px 18px;padding:14px}.ma-tabs{padding:0 20px}.ma-content{padding:18px 20px 22px}.ma-api-list,.ma-form-grid{grid-template-columns:1fr}.ma-list-heading{align-items:flex-start}.ma-list-heading p{max-width:170px}.ma-message{margin:0 20px 16px}.ma-analysis-picker{padding:12px}.ma-launcher{font-size:11px!important;padding:7px 9px!important}}
.pipeline-overlay:has(.ma-analysis-picker){z-index:10020;align-items:center;overflow:hidden;padding:18px;box-sizing:border-box}
.pipeline-overlay[popover]:has(.ma-analysis-picker){margin:0;width:100vw;height:100dvh;max-width:none;max-height:none;border:0;color:inherit}
.ma-account-entry{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 18px;margin:16px 0 22px;border:1px solid #8ba7db40;border-radius:14px;background:linear-gradient(115deg,#83aaff14,#777dca07)}
.ma-account-entry h3{margin:0 0 6px;font-size:14px}.ma-account-entry p{margin:0;color:#8b9bb7;font-size:12px;line-height:1.6}
.ma-account-controls{display:flex;gap:8px;flex-wrap:wrap}
.mu-toolbar .mu-filter-field{display:flex;flex:1;flex-direction:column;gap:8px;min-width:0;color:#98adca;font-size:11px}.mu-toolbar .mu-project-field{flex:2}.mu-toolbar .mu-project-select{width:100%;box-sizing:border-box;min-height:40px}.mu-toolbar{align-items:flex-end}.mu-toolbar>.ma-button{min-height:40px}
.model-usage-manager .mu-toolbar{align-items:flex-end}
@media(max-width:640px){.mu-toolbar{flex-wrap:wrap}.mu-toolbar .mu-filter-field{flex-basis:100%}.mu-toolbar>.ma-button{margin-left:auto}}
.pipeline-progress[data-local-basic-layout]{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:18px;align-items:start}
.pipeline-progress[data-local-basic-layout]>*{grid-column:1/-1;min-width:0}
.pipeline-progress>.basic-progress[aria-label="资产分析分块进度"]{grid-column:1;grid-row:2;margin:0;height:100%;box-sizing:border-box}
.pipeline-progress>.basic-progress[aria-label="剧本分析逐集进度"]{grid-column:2;grid-row:2;margin:0;height:100%;box-sizing:border-box}
.pipeline-progress>.basic-progress .basic-progress-heading{align-items:flex-start;flex-wrap:wrap;gap:12px}
.pipeline-progress>.basic-progress .basic-progress-heading>.wf-toolbar-group{flex-wrap:wrap;gap:8px;min-width:0}
.pipeline-progress>.basic-progress .compact-progress-grid{grid-template-columns:repeat(5,minmax(0,1fr))}
.pipeline-progress>.basic-progress .compact-progress-grid.asset-groups{grid-template-columns:repeat(5,minmax(0,1fr))}
.pipeline-progress>.basic-progress .analysis-range-tabs{flex-wrap:wrap}
@media(max-width:760px){.pipeline-progress[data-local-basic-layout]{grid-template-columns:minmax(0,1fr);gap:14px}.pipeline-progress>.basic-progress[aria-label="资产分析分块进度"]{grid-column:1;grid-row:2;height:auto}.pipeline-progress>.basic-progress[aria-label="剧本分析逐集进度"]{grid-column:1;grid-row:3;height:auto}}
.ma-model-control{position:relative;width:230px;max-width:100%;min-width:0}
.pipeline-dialog .ma-model-trigger{display:flex;align-items:center;gap:9px;width:100%;height:36px;box-sizing:border-box;margin:0;padding:0 12px;color:#e5e2dd;border:1px solid #ffffff26;border-radius:9px;background:linear-gradient(180deg,#ffffff08,#ffffff03);font:inherit;font-size:12px;text-align:left;cursor:pointer;transition:background .15s,border-color .15s,box-shadow .15s}
.pipeline-dialog .ma-model-trigger:hover{background:#ffffff0b;border-color:#ad8d665e}.pipeline-dialog .ma-model-trigger:focus-visible,.pipeline-dialog .ma-model-trigger[aria-expanded=true]{outline:none;border-color:#b89465;box-shadow:0 0 0 2px #b894651a}.ma-model-caption{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:500}.ma-model-default{flex-shrink:0;font-size:10px;line-height:18px;padding:0 6px;border:1px solid #b9966230;border-radius:5px;color:#c5ad89;background:#b9966210}.ma-model-default[hidden]{display:none}.ma-model-chevron{flex-shrink:0;width:6px;height:6px;border-right:1.5px solid #9d9991;border-bottom:1.5px solid #9d9991;transform:rotate(45deg);margin:0 2px 3px 4px;transition:transform .15s}.ma-model-trigger[aria-expanded=true] .ma-model-chevron{transform:rotate(225deg);margin-top:5px}
.ma-model-menu[popover]{position:fixed;inset:auto;margin:0;padding:5px;box-sizing:border-box;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;border:1px solid #635747;border-radius:12px;background:#22201d;color:#e5e2dd;box-shadow:0 12px 35px #0007,0 2px 8px #0004;font:inherit}
.ma-model-menu::backdrop{background:transparent;pointer-events:none}
.model-usage-manager{width:min(1040px,calc(100vw - 40px))}.mu-toolbar{display:flex;gap:12px;align-items:center;margin-bottom:22px}.mu-project-select,.mu-currency{color:#dce6fc;border:1px solid #64718a55;border-radius:9px;background:#172035;padding:11px 12px;font:inherit;font-size:13px;min-width:0}.mu-project-select{flex:1;width:100%}.mu-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:18px}.mu-kpi{border:1px solid #63728b44;border-radius:14px;padding:16px;background:#83aaff08;min-width:0}.mu-kpi small{display:block;font-size:11px;color:#8da1c1;margin-bottom:10px}.mu-kpi strong{display:block;font-size:17px;font-weight:600;overflow-wrap:anywhere;color:#dbe7ff}.mu-content h3{font-size:14px;margin:25px 0 14px}.mu-table-scroll{overflow-x:auto;border:1px solid #63728b33;border-radius:12px}.mu-table{width:100%;border-collapse:collapse;text-align:left;font-size:12px;white-space:nowrap}.mu-table th{color:#98adca;background:#83aaff08;font-weight:500}.mu-table th,.mu-table td{padding:12px 14px;border-bottom:1px solid #63728b22}.mu-table td{color:#ccd6e8}.mu-table tbody tr:last-child td{border-bottom:0}.mu-incomplete,.mu-price-example{border:1px solid #b6986440;background:#b6986410;color:#d2bc93;border-radius:10px;padding:12px 14px;font-size:12px;line-height:1.8}.mu-price-example{margin-bottom:22px}.mu-price-editor{padding:5px 0 10px}.mu-currency{width:100%}
@media(max-width:640px){.model-usage-manager{width:calc(100vw - 20px)}.mu-kpis{grid-template-columns:1fr 1fr}.mu-kpi{padding:12px}.mu-kpi strong{font-size:14px}.mu-toolbar{gap:8px}.mu-project-select{font-size:12px}.mu-table th,.mu-table td{padding:10px}.ma-account-entry .ma-account-controls{width:100%}}
.ma-model-menu .ma-model-choice{display:flex;align-items:center;gap:9px;width:100%;min-height:38px;box-sizing:border-box;margin:0;padding:9px 10px;border:0;border-radius:7px;background:transparent;color:#d8d5d0;font:inherit;font-size:12px;line-height:20px;text-align:left;cursor:pointer}.ma-model-choice-name{flex:1;min-width:0;overflow-wrap:anywhere}.ma-model-menu .ma-model-choice[aria-selected=true]{background:#b6936116;color:#ddc6a5}.ma-model-menu .ma-model-choice.is-highlighted{background:#b6936126}.ma-model-check{width:14px;flex-shrink:0;font-size:13px;color:#d5b887;visibility:hidden}.ma-model-choice[aria-selected=true] .ma-model-check{visibility:visible}.ma-model-trigger:disabled{opacity:.5;cursor:default}
@media(max-width:640px){.ma-model-control{flex:1;width:auto}}
.ma-alias-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(140px,1fr) auto;gap:12px;align-items:center;padding:16px 0;border-bottom:1px solid #64718a35}.ma-alias-info{display:flex;flex-direction:column;gap:6px;min-width:0}.ma-alias-info strong{font-size:12px;overflow-wrap:anywhere}.ma-alias-info code{font-size:11px;color:#8b9bb7;overflow-wrap:anywhere}.ma-alias-input{min-width:0;border:1px solid #64718a55;border-radius:9px;background:#080e1b50;color:#e0e9fa;padding:10px 12px;font:inherit;font-size:13px}
.pipeline-dialog .ma-analysis-picker{display:flex;align-items:center;gap:12px;padding:0;margin:0 0 12px;border:0;border-radius:0;background:none;min-height:36px}
.pipeline-dialog .ma-picker-heading{display:block;flex-shrink:0;margin:0;color:#a8b0be;font-size:12px;font-weight:500}
.pipeline-dialog .ma-api-select{width:auto;min-width:190px;max-width:340px;height:36px;box-sizing:border-box;padding:0 34px 0 12px;border:1px solid #ffffff24;border-radius:9px;background-color:#ffffff07;color:#e0e3e9;font-size:12px;appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='m3 4.5 3 3 3-3' fill='none' stroke='%23a8b0be' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 12px center;cursor:pointer;transition:border-color .15s,background-color .15s}
.pipeline-dialog .ma-api-select:hover{border-color:#ffffff42;background-color:#ffffff0d}.pipeline-dialog .ma-api-select:focus-visible{outline:2px solid #9fbdff55;outline-offset:2px;border-color:#91a9d0}.pipeline-dialog .ma-api-select option{background:#202124;color:#e0e3e9}
@media(max-width:640px){.ma-alias-row{grid-template-columns:1fr auto}.ma-alias-info{grid-column:1/-1}.pipeline-dialog .ma-analysis-picker{padding:0;gap:10px}.pipeline-dialog .ma-api-select{flex:1;min-width:0;max-width:none}.ma-account-controls{gap:6px}}
.account-manager .ma-account-entry .ma-launcher{color:#fff;background:#283d64;border:1px solid #283d64;opacity:1;font-weight:600;box-shadow:0 2px 5px #15264014}
.account-manager .ma-account-entry .ma-launcher:hover{color:#fff;background:#1d2e4e;border-color:#1d2e4e}
.account-manager .ma-account-entry .ma-launcher:focus-visible{outline:3px solid #8facdf;outline-offset:3px}
.ma-pull-models{align-self:flex-start}.ma-model-list{padding:10px;border:1px solid #64718a55;border-radius:12px;background:#0d1524}.ma-model-search{width:100%;box-sizing:border-box}.ma-model-results{max-height:220px;overflow:auto;margin-top:8px;display:flex;flex-direction:column;gap:4px}.ma-model-option{text-align:left;font:inherit;font-size:12px;overflow-wrap:anywhere;border:0;background:transparent;color:#bdcdeb;padding:9px;border-radius:7px;cursor:pointer}.ma-model-option:hover,.ma-model-option:focus-visible{background:#90afff20;outline:1px solid #90afff55}.ma-field>.ma-note{margin:0;line-height:1.6}
@media(max-width:640px){.ma-account-entry{align-items:flex-start;flex-wrap:wrap;padding:14px}.ma-account-entry .ma-launcher{min-height:40px}}
.wf-main[data-local-analysis-layout]{z-index:10020}
.pipeline-dialog:has(.ma-analysis-picker){max-height:calc(100dvh - 36px);display:flex;flex-direction:column;min-height:0;overflow:hidden;box-sizing:border-box;min-width:0}
.pipeline-dialog:has(.ma-analysis-picker)>h2{flex-shrink:0}
.pipeline-dialog:has(.ma-analysis-picker) .analysis-dialog-body{overflow-y:auto;min-height:0;overscroll-behavior:contain}
.pipeline-dialog:has(.ma-analysis-picker) .analysis-dialog-actions{flex-shrink:0}
@media(max-width:640px){.pipeline-overlay:has(.ma-analysis-picker){padding:10px}.pipeline-dialog:has(.ma-analysis-picker){width:100%;max-width:100%;max-height:calc(100dvh - 20px);padding:16px}.pipeline-dialog:has(.ma-analysis-picker) .analysis-selection-hint{flex-wrap:wrap}.pipeline-dialog:has(.ma-analysis-picker) .analysis-dialog-body{max-width:100%}.pipeline-dialog:has(.ma-analysis-picker) .ma-api-select{max-width:100%;text-overflow:ellipsis}}

/* source: /assets/v3-30b772b59c0b-asset-delete-confirm-20261009-v1.css */
.asset-delete-confirm { position:fixed; inset:0; margin:auto; width:min(440px,calc(100vw - 32px)); box-sizing:border-box; padding:30px; border:1px solid #c7a47a40; border-radius:16px; background:#1b1c1e; color:#f0eeea; box-shadow:0 24px 80px #0008; font-family:inherit; }
.asset-delete-confirm::backdrop { background:#090909ad; backdrop-filter:blur(5px); }
.asset-delete-mark { display:grid; place-items:center; width:40px; height:40px; margin-bottom:18px; border:1px solid #cf858544; border-radius:12px; background:#cf858512; color:#dba0a0; font-size:22px; }
.asset-delete-confirm h2 { margin:0 0 14px; font-size:22px; font-weight:600; }
.asset-delete-confirm p { margin:0 0 12px; line-height:1.8; overflow-wrap:anywhere; font-size:14px; }
.asset-delete-confirm .asset-delete-detail { color:#aaa69f; font-size:12px; }
.asset-delete-actions { display:flex; justify-content:flex-end; gap:10px; margin-top:26px; }
.asset-delete-actions .wf-btn { min-height:40px; padding:9px 18px; font-size:13px; border:1px solid #ffffff20; border-radius:8px; background:#ffffff04; color:#e3dfd8; box-shadow:none; }
.asset-delete-actions .wf-btn:hover:not(:disabled) { transform:none; border-color:#c7a47a66; background:#ffffff08; }
.asset-delete-actions .wf-btn.danger { background:#ac5656; border-color:#ac5656; color:#fff5f2; }
.asset-delete-actions .wf-btn.danger:hover:not(:disabled) { background:#be6565; border-color:#be6565; }
.asset-delete-actions .wf-btn:focus-visible { outline:2px solid #e7b37b; outline-offset:3px; }
@media(max-width:640px) { .asset-delete-confirm { padding:24px; } .asset-delete-actions .wf-btn { flex:1; } }

/* source: /assets/v3-1f9eec6bd038-account-panel-20261009-v1.css */
/* The account panel has a light surface; isolate it from the dark workspace. */
.wf-app .account-manager {
  --text: #20304b;
  --muted: #66758b;
  --line: #d6deea;
  --bg-elev: #f5f7fb;
  color-scheme: light;
  background: #fff;
  color: #20304b;
}
.wf-app .account-manager h2,.wf-app .account-manager h3 { color: #20304b; }
.wf-app .account-manager p,.wf-app .account-manager label { color: #52627a; }
.wf-app .account-manager small { color: #66758b; }
.wf-app .account-manager .wf-btn {
  color: #fff;
  background: #283d64;
  border: 1px solid #283d64;
  box-shadow: none;
  opacity: 1;
}
.wf-app .account-manager .wf-btn:hover:not(:disabled) { color: #fff; background: #1d2e4e; border-color: #1d2e4e; }
.wf-app .account-manager .wf-btn.primary { color: #fff; background: #283d64; border-color: #283d64; }
.wf-app .account-manager .wf-btn.danger { color: #fff; background: #a6404a; border-color: #a6404a; }
.wf-app .account-manager .wf-btn.danger:hover:not(:disabled) { background: #8d3039; border-color: #8d3039; }
.wf-app .account-manager .wf-btn:disabled { color: #64748b; background: #e8edf4; border-color: #d6deea; opacity: 1; cursor: default; }
.wf-app .account-manager .wf-btn:focus-visible { outline: 3px solid #8facdf; outline-offset: 3px; }
.wf-app .account-manager input:not([type=checkbox]):not([type=radio]),.wf-app .account-manager select,.wf-app .account-manager textarea {
  box-sizing: border-box;
  min-height: 38px;
  padding: 9px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #f8fafc;
  color: #20304b;
  font-size: 13px;
}
.wf-app .account-manager input::placeholder,.wf-app .account-manager textarea::placeholder { color: #75839a; }
.wf-app .account-manager input:focus-visible,.wf-app .account-manager select:focus-visible,.wf-app .account-manager textarea:focus-visible { outline: 2px solid #8facdf; outline-offset: 2px; border-color: #7895c6; box-shadow: none; }
.wf-app .account-manager .admin-warnings { border-color: #e1d3b7; background: #fffbf3; }
.wf-app .account-manager .admin-warnings h3,.wf-app .account-manager .admin-warning-item b { color: #805b23; }
.wf-app .account-manager .admin-warnings p,.wf-app .account-manager .admin-warnings small,.wf-app .account-manager .admin-warning-records header span { color: #75664d; }
.wf-app .account-manager .admin-warnings-settings { background: #f4eedf; }
.wf-app .account-manager .admin-warning-records article,.wf-app .account-manager .admin-warning-item { border-color: #e1d3b7; }
.wf-app .account-manager .ma-account-entry p { color: #63738d; }
@media(max-width:640px) { .wf-app .account-manager-heading { gap: 12px; } .wf-app .account-manager-heading > .wf-btn { flex-shrink: 0; } }

/* source: /assets/v6-b3c8d09c5c88-dismiss-errors.css */
.error-message-dismissible{position:relative;padding-right:2.75rem!important}
.error-message-dismissible>.error-message-close{position:absolute;right:.5rem;top:.5rem;display:grid;place-items:center;box-sizing:border-box;width:28px;height:28px;min-width:0;min-height:0;margin:0;padding:6px;border:0;border-radius:6px;background:transparent;box-shadow:none;color:var(--muted,#aaaeb1);cursor:pointer;font:inherit;line-height:1;transition:color .15s ease,background .15s ease}
.error-message-close svg{display:block;width:16px;height:16px;pointer-events:none}
.error-message-dismissible>.error-message-close:hover{color:#f5d1a4;background:#e7b37b1a}
.error-message-close:focus-visible{outline:2px solid #e7b37b;outline-offset:2px}
.error-message-dismissed{display:none!important}
@media(prefers-reduced-motion:reduce){.error-message-dismissible>.error-message-close{transition:none}}

/* source: /assets/project-errors-responsive-7bfee04804f4.css */
/* Display-only: keep complete failure text and all original recovery controls. */
.wf-app .wf-error {
  box-sizing: border-box;
  min-width: 0;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
}
.wf-app .wf-error:not(.wf-image-retry-bar) {
  max-height: 18rem;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  scrollbar-gutter: stable;
}
.wf-app .wf-error pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
@media (max-width: 760px) {
  .wf-app .wf-error:not(.wf-image-retry-bar) { max-height: 14rem; }
  /* Skip offscreen painting, not asset nodes, selection or saved prompt data. */
  .wf-app .wf-asset-card {
    content-visibility: auto;
    contain-intrinsic-size: auto 540px;
  }
}

/* source: /assets/brand-canvas-3d520a36b826.css */
/* User-supplied transparent artwork; keep original proportions and strokes. */
.brand-wordmark .brand-logo-image,
.wf-brand .brand-logo-image { display: block; width: 176px; height: auto; max-height: 48px; object-fit: contain; }
.brand-wordmark { gap: 0; }
.wf-brand .brand-logo-image { width: 158px; }
.brand-auth-mark.brand-auth-logo { width: 224px; height: auto; margin: 0 auto 24px; border-radius: 0; background: transparent; }
.brand-auth-logo img { display: block; width: 100%; height: auto; }
.brand-title-art img { width: min(580px, 82vw); height: auto; object-fit: contain; }
.wf-board.wf-video-workspace { display: flex; flex-direction: column; }
.wf-video-generate-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 12px;
  margin-top: auto; padding: 20px 4px 4px; border-top: 1px solid #ffffff0d; }
.wf-video-generate-note { color: #a7a29a; font-size: 11px; letter-spacing: .02em; }
.wf-video-generate-preview { display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 24px; border: 1px solid #f5d9ae; border-radius: 14px;
  background: linear-gradient(135deg, #f5ddba 0%, #e8b77e 56%, #d69b64 100%); color: #2c2018;
  box-shadow: 0 6px 22px #c28c4930, inset 0 1px #fff9; font: inherit; font-size: 14px; font-weight: 700;
  letter-spacing: .05em; cursor: not-allowed; opacity: 1; }
.wf-video-generate-preview:disabled { opacity: 1; color: #2c2018; }
.wf-video-generate-icon { display: grid; place-items: center; width: 26px; height: 26px;
  border-radius: 8px; background: #35200c12; font-size: 11px; }
.wf-video-generate-preview:focus-visible { outline: 2px solid #f5ddba; outline-offset: 4px; }
@media (max-width: 640px) {
  .brand-wordmark .brand-logo-image { width: 138px; max-height: 38px; }
  .wf-brand .brand-logo-image { width: 120px; }
  .brand-title-art img { width: min(520px, 90vw); }
  .wf-video-generate-footer { gap: 8px; padding-top: 16px; }
  .wf-video-generate-preview { min-height: 46px; padding-inline: 18px; }
}

/* source: /assets/home-wordmark-center-9824ee5d5b91.css */
/* The artwork must fill its centered box, never overflow a narrower legacy box. */
.brand-landing .brand-title-art {
  display: block;
  width: min(580px, 82vw);
  max-width: 100%;
  margin-inline: auto;
  line-height: 0;
}
.brand-landing .brand-title-art img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin-inline: auto;
  object-fit: contain;
}
@media (max-width: 640px) {
  .brand-landing .brand-title-art { width: min(520px, 90vw); }
}

/* source: /assets/local-video-flow-5a386d7bec86.css */
/* Local UI preview: inherit the server's warm neutral/gold workflow theme. */
.wf-video-generate-preview:not(:disabled){cursor:pointer;transition:transform .15s,box-shadow .15s}
.wf-video-generate-preview:not(:disabled):hover{transform:translateY(-1px);box-shadow:0 8px 26px #c28c4940,inset 0 1px #fff9}
.wf-video-generate-preview:disabled{opacity:.55;cursor:not-allowed}
.local-video-overlay{z-index:1600}
.local-video-dialog{width:min(760px,calc(100vw - 32px));max-height:calc(100dvh - 40px);overflow:auto;box-sizing:border-box;padding:26px;border:1px solid #d2aa7540;border-radius:22px;background:linear-gradient(150deg,#242321,#181a1e);box-shadow:0 24px 100px #0009;color:#eee8de}
.local-video-dialog-heading,.local-video-episode-heading,.local-video-result-heading,.local-video-result-card-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}
.local-video-dialog-heading h2{margin:7px 0 0;font-size:22px;font-weight:600;letter-spacing:-.02em}
.local-video-eyebrow{color:#cdb58f;font-size:10px;letter-spacing:.18em;font-weight:600}
.local-video-close{font-size:24px;min-width:42px;min-height:42px}
.local-video-summary{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin:22px 0 12px;padding:14px 16px;border-radius:12px;border:1px solid #e2c08d24;background:#e2c08d09}
.local-video-summary strong{font-size:14px;color:#f0d8b4}.local-video-summary span{color:#b4afa5;font-size:12px}
.local-video-upstream-heading{display:flex;justify-content:space-between;align-items:center;margin:20px 0 10px;gap:12px}.local-video-upstream-heading>strong{font-size:13px;font-weight:600}.local-video-upstream-heading .wf-btn{font-size:11px;padding:6px 10px;min-height:32px}
.local-video-upstream-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;border:0;padding:0;margin:0}.local-video-upstream-option{display:flex;align-items:center;justify-content:space-between;gap:8px;border:1px solid #ffffff18;border-radius:12px;padding:14px 12px;cursor:pointer;background:#ffffff03;min-width:0}.local-video-upstream-option.active{border-color:#dab78180;background:#dab78112}.local-video-upstream-option input{accent-color:#d6ae78;margin:0}.local-video-upstream-option>span:first-of-type{flex:1;min-width:0}.local-video-upstream-option strong{font-size:13px;display:block;overflow-wrap:anywhere}.local-video-upstream-option small{display:block;font-size:10px;color:#9b9489;margin-top:5px}.local-video-upstream-option>span:last-child{color:#d7b588;font-size:12px}.local-video-sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.local-video-name-editor{border:1px solid #ffffff13;border-radius:12px;padding:14px;margin-top:12px;background:#ffffff03}.local-video-name-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.local-video-name-fields label{display:grid;gap:7px;font-size:11px;color:#b9b1a4}.local-video-name-fields .wf-input{width:100%;box-sizing:border-box;min-width:0}.local-video-name-editor .wf-muted{font-size:11px;margin-bottom:0}
.local-video-range-help{font-size:12px;line-height:1.7;min-height:21px}
.local-video-range-actions{display:flex;gap:8px;margin:12px 0 18px}
.local-video-range-list{display:grid;gap:20px;max-height:43dvh;overflow:auto;padding:2px 4px 6px 0}
.local-video-episode-heading{margin-bottom:10px}.local-video-episode-heading h3{margin:0;font-size:14px;font-weight:600}.local-video-episode-heading small{font-size:11px;color:#a59f96;margin-left:8px;font-weight:400}
.local-video-episode-heading .wf-btn{font-size:11px;min-height:34px;padding:6px 12px}
.local-video-seg-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(100px,1fr));gap:9px}
.local-video-seg{display:flex;flex-direction:column;gap:5px;min-height:66px;border-radius:12px;text-align:center}.local-video-seg span{font-size:13px;font-weight:600;letter-spacing:.04em}.local-video-seg small{font-size:10px;opacity:.65;font-weight:400}
.local-video-dialog-footer{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:10px;border-top:1px solid #ffffff0d;padding-top:18px;margin-top:20px}.local-video-dialog-footer .wf-btn{min-height:44px}
.local-video-dialog .wf-btn.primary{background:linear-gradient(135deg,#f5ddba,#e8b77e 56%,#d69b64)!important;color:#2c2018!important;border:1px solid #edcc9b!important;box-shadow:0 4px 16px #c28c4920!important}
.local-video-dialog .wf-btn.primary:hover:not(:disabled){background:linear-gradient(135deg,#fae6c9,#eec38e 56%,#dfaa77)!important}
.local-video-dialog .local-video-seg[aria-pressed=true]{background:linear-gradient(135deg,#f5ddba,#e8b77e 56%,#d69b64)!important;color:#2c2018!important;border-color:#edcc9b!important}
.local-video-dialog .wf-btn:disabled{opacity:.4;cursor:not-allowed}
.local-video-demo-note{color:#b7b0a5;font-size:12px;line-height:1.8;margin:18px 0 0}.local-video-demo-note strong{color:#e2c398;font-weight:600}
.local-video-billing-warning{display:flex;align-items:flex-start;gap:14px;border:1px solid #d6ab6650;background:#d6ab6610;border-radius:14px;padding:18px;margin-top:22px}.local-video-billing-warning>span{display:grid;place-items:center;background:#e1b36b24;color:#efca8f;min-width:32px;height:32px;border-radius:50%;font-size:20px;font-weight:700}.local-video-billing-warning strong{color:#efcea0;font-size:15px}.local-video-billing-warning p{margin:9px 0 0;font-size:12px;line-height:1.8;color:#bcb3a5}
.local-video-confirm-segments{display:flex;flex-wrap:wrap;gap:8px;max-height:24dvh;overflow:auto}.local-video-confirm-segments>span{font-size:11px;border:1px solid #ffffff14;padding:7px 10px;border-radius:8px;color:#cec5b7;background:#ffffff04}
.local-video-preview-badge{display:inline-flex;border:1px solid #d8b58635;background:#d8b5860c;color:#cdb58f;font-size:11px;padding:5px 10px;border-radius:999px;white-space:nowrap}
.local-video-result-heading .wf-hero-title{margin-top:8px}.local-video-result-notice{display:flex;align-items:center;gap:16px;padding:20px;border:1px solid #d8b58624;border-radius:16px;background:#d8b58606;margin:20px 0 24px}.local-video-result-notice>span{font-size:32px;color:#d8b586}.local-video-result-notice strong{font-size:14px;color:#e1d5c2}.local-video-result-notice p{font-size:12px;color:#a7a097;margin:7px 0 0;line-height:1.7}
.local-video-result-placeholder{aspect-ratio:16/9;border:1px dashed #d7b78433;border-radius:14px;background:radial-gradient(ellipse at 50% 20%,#d8b58612,transparent 70%),#181a1e;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;color:#bcb1a0}.local-video-film-icon{display:grid;place-items:center;width:44px;height:44px;border:1px solid #d8b58635;border-radius:14px;color:#d8b586;background:#d8b58609}.local-video-result-placeholder strong{letter-spacing:.08em;font-size:16px}.local-video-result-placeholder>span:last-child{font-size:11px;color:#8e8981}.local-video-result-card-heading{margin-top:16px}.local-video-result-card-heading>strong{font-size:14px}.local-video-result-title{font-size:12px;color:#b5afa5;overflow-wrap:anywhere;line-height:1.7}.local-video-result-card .wf-muted{font-size:11px}
@media(max-width:640px){.local-video-dialog{width:calc(100vw - 24px);max-height:calc(100dvh - 24px);padding:20px 16px;border-radius:18px}.local-video-dialog-heading h2{font-size:18px}.local-video-dialog-heading{gap:8px}.local-video-range-list{max-height:40dvh}.local-video-seg-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.local-video-dialog-footer{gap:8px}.local-video-dialog-footer .wf-btn{padding-inline:12px}.local-video-summary{padding:12px}.local-video-billing-warning{padding:14px;gap:10px}.local-video-billing-warning strong{font-size:14px}.local-video-result-notice{align-items:flex-start;padding:16px}}
@media(prefers-reduced-motion:reduce){.wf-video-generate-preview:not(:disabled){transition:none}.wf-video-generate-preview:not(:disabled):hover{transform:none}}
@media(max-width:640px){.local-video-upstream-options{gap:6px}.local-video-upstream-option{padding:12px 8px;gap:5px}.local-video-upstream-option small{font-size:9px}.local-video-upstream-option>span:last-child{display:none}.local-video-name-fields{grid-template-columns:1fr}.local-video-name-editor{padding:12px}}
/* Compact range buttons; neutralize global dialog/primary nth-child styling. */
.local-video-dialog .local-video-range-list{gap:14px;padding:0 2px 2px 0}
.local-video-dialog .local-video-episode{margin:0;padding:0;min-height:0}
.local-video-dialog .local-video-seg-grid{display:grid;width:fit-content;max-width:100%;grid-template-columns:repeat(auto-fill,minmax(88px,1fr));gap:8px;align-content:start;justify-content:start}
.local-video-dialog .local-video-seg.wf-btn{width:100%;max-width:none;margin:0!important;padding:10px 8px;min-height:56px;gap:4px}
.local-video-dialog .local-video-episode-heading{margin:0 0 8px}
.local-video-dialog .local-video-range-actions{margin:8px 0 14px;gap:8px}
.local-video-dialog .local-video-summary{margin:16px 0 8px}
.local-video-dialog .local-video-demo-note{margin-top:12px}
.local-video-dialog .local-video-dialog-footer{margin-top:14px;padding-top:14px}
/* The previous desktop media rules forced a third empty grid column and put
   the model controls below it. Set all responsive columns and spans together. */
.wf-app .wf-episode-canvas .wf-video-workspace .wf-video-columns{grid-template-columns:180px minmax(0,1fr)!important;gap:0;align-items:stretch;min-width:0}
.wf-app .wf-episode-canvas .wf-video-workspace .wf-video-columns>.wf-reference-column{grid-column:1;grid-row:1;padding:12px}
.wf-app .wf-episode-canvas .wf-video-workspace .wf-video-columns>.wf-prompt-column{grid-column:2;grid-row:1;display:flex;flex-direction:column;min-width:0;padding:14px}
.wf-app .wf-episode-canvas .wf-video-workspace .wf-video-columns>.wf-model-column{grid-column:1 / -1!important;grid-row:2;border-left:0!important;border-top:1px solid #ffffff0c}
.wf-app .wf-episode-canvas .wf-video-workspace .wf-video-prompt{display:block;box-sizing:border-box;flex:1 1 auto;width:100%;max-width:100%;min-width:0;height:clamp(400px,60dvh,620px);min-height:360px;padding:16px 18px;font-family:inherit;font-size:13px;line-height:1.8;white-space:pre-wrap;overflow-wrap:anywhere;overflow:auto;resize:vertical;letter-spacing:.01em}
.wf-app .wf-episode-canvas .wf-video-workspace .wf-video-prompt:focus{border-color:#cbaa78;box-shadow:0 0 0 2px #cbaa781c}
.wf-app .wf-episode-canvas .wf-video-workspace .wf-reference-list{max-height:480px;overflow-y:auto;min-width:0}
.wf-app .wf-episode-canvas .wf-video-workspace .wf-prompt-path{margin-top:8px}
@media(min-width:1360px){.wf-app .wf-episode-canvas .wf-video-workspace .wf-video-columns{grid-template-columns:180px minmax(0,1fr) 260px!important}.wf-app .wf-episode-canvas .wf-video-workspace .wf-video-columns>.wf-model-column{grid-column:3!important;grid-row:1;border-left:1px solid #ffffff0c!important;border-top:0}}
@media(max-width:600px){.wf-app .wf-episode-canvas .wf-video-workspace .wf-video-columns{grid-template-columns:minmax(0,1fr)!important}.wf-app .wf-episode-canvas .wf-video-workspace .wf-video-columns>.wf-reference-column{grid-column:1;grid-row:1}.wf-app .wf-episode-canvas .wf-video-workspace .wf-video-columns>.wf-prompt-column{grid-column:1;grid-row:2;padding:14px 12px}.wf-app .wf-episode-canvas .wf-video-workspace .wf-video-columns>.wf-model-column{grid-column:1!important;grid-row:3}.wf-app .wf-episode-canvas .wf-video-workspace .wf-video-prompt{height:400px;min-height:320px;font-size:13px;padding:14px}.wf-app .wf-episode-canvas .wf-video-workspace .wf-reference-list{max-height:300px}.local-video-dialog .local-video-seg-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
/* Episode covers open the unchanged SEG-card design in a details window. */
.local-video-episode-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:16px}
.local-video-episode-card{padding:16px;border:1px solid #ffffff15;border-radius:14px;background:#1d1e20;min-width:0;color:#ded6c9;font:inherit;text-align:left;cursor:pointer;transition:border-color .15s,transform .15s}
.local-video-episode-card:hover{border-color:#d3b08480;transform:translateY(-2px)}.local-video-episode-card:focus-visible{outline:2px solid #d3b084;outline-offset:3px}
.local-video-episode-cover{aspect-ratio:16/9;background:radial-gradient(ellipse at 50% 20%,#d8b58615,transparent 70%),#181a1e;border:1px dashed #d7b78433;border-radius:10px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px}
.local-video-episode-cover>strong{font-size:20px;font-weight:600;letter-spacing:.04em}.local-video-episode-cover>small{font-size:11px;color:#9c9488}
.local-video-episode-card>p{font-size:12px;color:#a89f92;line-height:1.7;margin:12px 0}.local-video-episode-open{display:flex;justify-content:space-between;font-size:11px;color:#d1b68f;border-top:1px solid #ffffff0c;padding-top:12px}
.local-video-segments-dialog.local-video-dialog{width:min(1140px,calc(100vw - 40px));padding:24px}
.local-video-segments-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:16px;margin-top:20px}
.local-video-segments-grid .wf-result-card{margin:0;min-width:0;border:1px solid #ffffff15;border-radius:12px;background:#202123;padding:14px;box-shadow:none}
.local-video-segments-grid .wf-result-card.is-generating{border-color:#bfa06b55}
.local-video-elapsed{font-size:12px;color:#dfbf8f;font-variant-numeric:tabular-nums;letter-spacing:.05em}
.local-video-result-placeholder .local-video-segment-status{font-size:11px;color:#a99e8b}
.local-video-segments-grid .is-generating .local-video-segment-status{color:#e1c293}
.local-video-spinner{animation:local-video-spin 2s linear infinite;font-size:26px;border-radius:50%}.local-video-result-placeholder:has(.local-video-spinner){background:radial-gradient(ellipse at 50% 35%,#d8b58617,transparent 70%),#181a1e}
@keyframes local-video-spin{to{transform:rotate(360deg)}}
@media(max-width:640px){.local-video-dialog .local-video-seg-grid{width:100%;grid-template-columns:repeat(3,minmax(0,1fr))!important}.local-video-episode-grid{grid-template-columns:minmax(0,1fr)}.local-video-segments-dialog.local-video-dialog{width:calc(100vw - 24px);padding:20px 16px}.local-video-segments-grid{grid-template-columns:minmax(0,1fr);gap:12px}.local-video-result-heading{padding-top:8px}}
@media(prefers-reduced-motion:reduce){.local-video-spinner{animation:none}.local-video-episode-card{transition:none}.local-video-episode-card:hover{transform:none}}

/* source: /assets/role-hd-865e8ca6d62b.css */
.local-role-hd-actions{display:inline-flex;align-items:center;gap:5px;flex-shrink:0}.local-role-hd-help{display:grid;place-items:center;width:20px;height:20px;border:1px solid #6b9cb754;border-radius:50%;background:#29455a22;color:#83bde4;font-size:12px;padding:0;cursor:help}.local-role-hd-help:focus-visible{outline:2px solid #75b8f0;outline-offset:3px}
.wf-app .wf-btn.local-role-hd-button,.local-role-hd-dialog .local-role-hd-button{background:linear-gradient(135deg,#367cb8,#2a6095)!important;color:#edf6ff!important;border:1px solid #69a6d36b!important;box-shadow:0 3px 10px #164d7b24!important;white-space:nowrap}
.wf-app .wf-btn.local-role-hd-button:disabled,.local-role-hd-dialog .local-role-hd-button:disabled{background:#30343a!important;border-color:#474b50!important;color:#858b92!important;cursor:not-allowed;opacity:.65;box-shadow:none!important}
.local-role-hd-notice{font-size:11px;color:#8cc3e9;line-height:1.6;flex-basis:100%;margin:4px 0}.wf-asset-title-row:has(.local-role-hd-actions){flex-wrap:wrap;gap:7px}.wf-asset-title-row:has(.local-role-hd-actions)>h3{flex:1 1 100%;margin-bottom:2px}
.local-role-hd-reference{display:flex;gap:16px;padding:16px;border:1px solid #6da5d82b;background:#4782b30a;border-radius:12px;margin-top:18px}.local-role-hd-reference img{width:120px;height:90px;object-fit:contain;border-radius:8px;background:#111}.local-role-hd-reference>div{min-width:0}.local-role-hd-reference strong{font-size:14px;color:#b8dafa}.local-role-hd-reference p,.local-role-hd-reference span{font-size:12px;color:#b0b8c0;line-height:1.7;overflow-wrap:anywhere}.local-role-hd-config-note,.local-role-hd-billing{font-size:12px;line-height:1.8;padding:12px 14px;background:#ffffff04;border:1px solid #ffffff13;border-radius:10px}.local-role-hd-billing{color:#dfbd8c;border-color:#dfbd8c2a}.local-role-hd-dialog .wf-error{font-size:12px;line-height:1.7}
.ma-hd-settings{padding:18px;margin:0 0 20px;border:1px solid #649acd35;border-radius:14px;background:#5181a70b}.ma-hd-settings h3{font-size:15px;margin:0 0 10px;color:#c4ddf4}.ma-hd-settings .ma-note{line-height:1.7}.ma-hd-settings .ma-field{margin-bottom:12px}.ma-hd-settings textarea{box-sizing:border-box;width:100%;min-height:90px;resize:vertical;padding:10px;border-radius:8px;border:1px solid #ffffff20;background:#15191f;color:#dedfe2;font:inherit;font-size:12px}.ma-hd-settings select{width:100%}
@media(max-width:640px){.local-role-hd-reference{gap:12px;padding:12px}.local-role-hd-reference img{width:88px;height:88px}.local-role-hd-dialog .local-video-dialog-footer{justify-content:space-between}}

/* source: /assets/video-layout-v3-fc0d89c61c88.css */
/* Local UI preview: inherit the server's warm neutral/gold workflow theme. */
.wf-video-generate-preview:not(:disabled){cursor:pointer;transition:transform .15s,box-shadow .15s}
.wf-video-generate-preview:not(:disabled):hover{transform:translateY(-1px);box-shadow:0 8px 26px #c28c4940,inset 0 1px #fff9}
.wf-video-generate-preview:disabled{opacity:.55;cursor:not-allowed}
.local-video-overlay{z-index:1600}
.local-video-dialog{width:min(760px,calc(100vw - 32px));max-height:calc(100dvh - 40px);overflow:auto;box-sizing:border-box;padding:26px;border:1px solid #d2aa7540;border-radius:22px;background:linear-gradient(150deg,#242321,#181a1e);box-shadow:0 24px 100px #0009;color:#eee8de}
.local-video-dialog-heading,.local-video-episode-heading,.local-video-result-heading,.local-video-result-card-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}
.local-video-dialog-heading h2{margin:7px 0 0;font-size:22px;font-weight:600;letter-spacing:-.02em}
.local-video-eyebrow{color:#cdb58f;font-size:10px;letter-spacing:.18em;font-weight:600}
.local-video-close{font-size:24px;min-width:42px;min-height:42px}
.local-video-summary{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin:22px 0 12px;padding:14px 16px;border-radius:12px;border:1px solid #e2c08d24;background:#e2c08d09}
.local-video-summary strong{font-size:14px;color:#f0d8b4}.local-video-summary span{color:#b4afa5;font-size:12px}
.local-video-upstream-heading{display:flex;justify-content:space-between;align-items:center;margin:20px 0 10px;gap:12px}.local-video-upstream-heading>strong{font-size:13px;font-weight:600}.local-video-upstream-heading .wf-btn{font-size:11px;padding:6px 10px;min-height:32px}
.local-video-upstream-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;border:0;padding:0;margin:0}.local-video-upstream-option{display:flex;align-items:center;justify-content:space-between;gap:8px;border:1px solid #ffffff18;border-radius:12px;padding:14px 12px;cursor:pointer;background:#ffffff03;min-width:0}.local-video-upstream-option.active{border-color:#dab78180;background:#dab78112}.local-video-upstream-option input{accent-color:#d6ae78;margin:0}.local-video-upstream-option>span:first-of-type{flex:1;min-width:0}.local-video-upstream-option strong{font-size:13px;display:block;overflow-wrap:anywhere}.local-video-upstream-option small{display:block;font-size:10px;color:#9b9489;margin-top:5px}.local-video-upstream-option>span:last-child{color:#d7b588;font-size:12px}.local-video-sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.local-video-name-editor{border:1px solid #ffffff13;border-radius:12px;padding:14px;margin-top:12px;background:#ffffff03}.local-video-name-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.local-video-name-fields label{display:grid;gap:7px;font-size:11px;color:#b9b1a4}.local-video-name-fields .wf-input{width:100%;box-sizing:border-box;min-width:0}.local-video-name-editor .wf-muted{font-size:11px;margin-bottom:0}
.local-video-range-help{font-size:12px;line-height:1.7;min-height:21px}
.local-video-range-actions{display:flex;gap:8px;margin:12px 0 18px}
.local-video-range-list{display:grid;gap:20px;max-height:43dvh;overflow:auto;padding:2px 4px 6px 0}
.local-video-episode-heading{margin-bottom:10px}.local-video-episode-heading h3{margin:0;font-size:14px;font-weight:600}.local-video-episode-heading small{font-size:11px;color:#a59f96;margin-left:8px;font-weight:400}
.local-video-episode-heading .wf-btn{font-size:11px;min-height:34px;padding:6px 12px}
.local-video-seg-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(100px,1fr));gap:9px}
.local-video-seg{display:flex;flex-direction:column;gap:5px;min-height:66px;border-radius:12px;text-align:center}.local-video-seg span{font-size:13px;font-weight:600;letter-spacing:.04em}.local-video-seg small{font-size:10px;opacity:.65;font-weight:400}
.local-video-dialog-footer{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:10px;border-top:1px solid #ffffff0d;padding-top:18px;margin-top:20px}.local-video-dialog-footer .wf-btn{min-height:44px}
.local-video-dialog .wf-btn.primary{background:linear-gradient(135deg,#f5ddba,#e8b77e 56%,#d69b64)!important;color:#2c2018!important;border:1px solid #edcc9b!important;box-shadow:0 4px 16px #c28c4920!important}
.local-video-dialog .wf-btn.primary:hover:not(:disabled){background:linear-gradient(135deg,#fae6c9,#eec38e 56%,#dfaa77)!important}
.local-video-dialog .local-video-seg[aria-pressed=true]{background:linear-gradient(135deg,#f5ddba,#e8b77e 56%,#d69b64)!important;color:#2c2018!important;border-color:#edcc9b!important}
.local-video-dialog .wf-btn:disabled{opacity:.4;cursor:not-allowed}
.local-video-demo-note{color:#b7b0a5;font-size:12px;line-height:1.8;margin:18px 0 0}.local-video-demo-note strong{color:#e2c398;font-weight:600}
.local-video-billing-warning{display:flex;align-items:flex-start;gap:14px;border:1px solid #d6ab6650;background:#d6ab6610;border-radius:14px;padding:18px;margin-top:22px}.local-video-billing-warning>span{display:grid;place-items:center;background:#e1b36b24;color:#efca8f;min-width:32px;height:32px;border-radius:50%;font-size:20px;font-weight:700}.local-video-billing-warning strong{color:#efcea0;font-size:15px}.local-video-billing-warning p{margin:9px 0 0;font-size:12px;line-height:1.8;color:#bcb3a5}
.local-video-confirm-segments{display:flex;flex-wrap:wrap;gap:8px;max-height:24dvh;overflow:auto}.local-video-confirm-segments>span{font-size:11px;border:1px solid #ffffff14;padding:7px 10px;border-radius:8px;color:#cec5b7;background:#ffffff04}
.local-video-preview-badge{display:inline-flex;border:1px solid #d8b58635;background:#d8b5860c;color:#cdb58f;font-size:11px;padding:5px 10px;border-radius:999px;white-space:nowrap}
.local-video-result-heading .wf-hero-title{margin-top:8px}.local-video-result-notice{display:flex;align-items:center;gap:16px;padding:20px;border:1px solid #d8b58624;border-radius:16px;background:#d8b58606;margin:20px 0 24px}.local-video-result-notice>span{font-size:32px;color:#d8b586}.local-video-result-notice strong{font-size:14px;color:#e1d5c2}.local-video-result-notice p{font-size:12px;color:#a7a097;margin:7px 0 0;line-height:1.7}
.local-video-result-placeholder{aspect-ratio:16/9;border:1px dashed #d7b78433;border-radius:14px;background:radial-gradient(ellipse at 50% 20%,#d8b58612,transparent 70%),#181a1e;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;color:#bcb1a0}.local-video-film-icon{display:grid;place-items:center;width:44px;height:44px;border:1px solid #d8b58635;border-radius:14px;color:#d8b586;background:#d8b58609}.local-video-result-placeholder strong{letter-spacing:.08em;font-size:16px}.local-video-result-placeholder>span:last-child{font-size:11px;color:#8e8981}.local-video-result-card-heading{margin-top:16px}.local-video-result-card-heading>strong{font-size:14px}.local-video-result-title{font-size:12px;color:#b5afa5;overflow-wrap:anywhere;line-height:1.7}.local-video-result-card .wf-muted{font-size:11px}
@media(max-width:640px){.local-video-dialog{width:calc(100vw - 24px);max-height:calc(100dvh - 24px);padding:20px 16px;border-radius:18px}.local-video-dialog-heading h2{font-size:18px}.local-video-dialog-heading{gap:8px}.local-video-range-list{max-height:40dvh}.local-video-seg-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.local-video-dialog-footer{gap:8px}.local-video-dialog-footer .wf-btn{padding-inline:12px}.local-video-summary{padding:12px}.local-video-billing-warning{padding:14px;gap:10px}.local-video-billing-warning strong{font-size:14px}.local-video-result-notice{align-items:flex-start;padding:16px}}
@media(prefers-reduced-motion:reduce){.wf-video-generate-preview:not(:disabled){transition:none}.wf-video-generate-preview:not(:disabled):hover{transform:none}}
@media(max-width:640px){.local-video-upstream-options{gap:6px}.local-video-upstream-option{padding:12px 8px;gap:5px}.local-video-upstream-option small{font-size:9px}.local-video-upstream-option>span:last-child{display:none}.local-video-name-fields{grid-template-columns:1fr}.local-video-name-editor{padding:12px}}
/* Compact range buttons; neutralize global dialog/primary nth-child styling. */
.local-video-dialog .local-video-range-list{gap:14px;padding:0 2px 2px 0}
.local-video-dialog .local-video-episode{margin:0;padding:0;min-height:0}
.local-video-dialog .local-video-seg-grid{display:grid;width:fit-content;max-width:100%;grid-template-columns:repeat(auto-fill,minmax(88px,1fr));gap:8px;align-content:start;justify-content:start}
.local-video-dialog .local-video-seg.wf-btn{width:100%;max-width:none;margin:0!important;padding:10px 8px;min-height:56px;gap:4px}
.local-video-dialog .local-video-episode-heading{margin:0 0 8px}
.local-video-dialog .local-video-range-actions{margin:8px 0 14px;gap:8px}
.local-video-dialog .local-video-summary{margin:16px 0 8px}
.local-video-dialog .local-video-demo-note{margin-top:12px}
.local-video-dialog .local-video-dialog-footer{margin-top:14px;padding-top:14px}
/* The previous desktop media rules forced a third empty grid column and put
   the model controls below it. Set all responsive columns and spans together. */
.wf-app .wf-episode-canvas .wf-video-workspace .wf-video-columns{grid-template-columns:180px minmax(0,1fr)!important;gap:0;align-items:stretch;min-width:0}
.wf-app .wf-episode-canvas .wf-video-workspace .wf-video-columns>.wf-reference-column{grid-column:1;grid-row:1;padding:12px}
.wf-app .wf-episode-canvas .wf-video-workspace .wf-video-columns>.wf-prompt-column{grid-column:2;grid-row:1;display:flex;flex-direction:column;min-width:0;padding:14px}
.wf-app .wf-episode-canvas .wf-video-workspace .wf-video-columns>.wf-model-column{grid-column:1 / -1!important;grid-row:2;border-left:0!important;border-top:1px solid #ffffff0c}
.wf-app .wf-episode-canvas .wf-video-workspace .wf-video-prompt{display:block;box-sizing:border-box;flex:1 1 auto;width:100%;max-width:100%;min-width:0;height:clamp(400px,60dvh,620px);min-height:360px;padding:16px 18px;font-family:inherit;font-size:13px;line-height:1.8;white-space:pre-wrap;overflow-wrap:anywhere;overflow:auto;resize:vertical;letter-spacing:.01em}
.wf-app .wf-episode-canvas .wf-video-workspace .wf-video-prompt:focus{border-color:#cbaa78;box-shadow:0 0 0 2px #cbaa781c}
.wf-app .wf-episode-canvas .wf-video-workspace .wf-reference-list{max-height:480px;overflow-y:auto;min-width:0}
.wf-app .wf-episode-canvas .wf-video-workspace .wf-prompt-path{margin-top:8px}
@media(min-width:1360px){.wf-app .wf-episode-canvas .wf-video-workspace .wf-video-columns{grid-template-columns:180px minmax(0,1fr) 260px!important}.wf-app .wf-episode-canvas .wf-video-workspace .wf-video-columns>.wf-model-column{grid-column:3!important;grid-row:1;border-left:1px solid #ffffff0c!important;border-top:0}}
@media(max-width:600px){.wf-app .wf-episode-canvas .wf-video-workspace .wf-video-columns{grid-template-columns:minmax(0,1fr)!important}.wf-app .wf-episode-canvas .wf-video-workspace .wf-video-columns>.wf-reference-column{grid-column:1;grid-row:1}.wf-app .wf-episode-canvas .wf-video-workspace .wf-video-columns>.wf-prompt-column{grid-column:1;grid-row:2;padding:14px 12px}.wf-app .wf-episode-canvas .wf-video-workspace .wf-video-columns>.wf-model-column{grid-column:1!important;grid-row:3}.wf-app .wf-episode-canvas .wf-video-workspace .wf-video-prompt{height:400px;min-height:320px;font-size:13px;padding:14px}.wf-app .wf-episode-canvas .wf-video-workspace .wf-reference-list{max-height:300px}.local-video-dialog .local-video-seg-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
/* Episode covers open the unchanged SEG-card design in a details window. */
.local-video-episode-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:16px}
.local-video-episode-card{padding:16px;border:1px solid #ffffff15;border-radius:14px;background:#1d1e20;min-width:0;color:#ded6c9;font:inherit;text-align:left;cursor:pointer;transition:border-color .15s,transform .15s}
.local-video-episode-card:hover{border-color:#d3b08480;transform:translateY(-2px)}.local-video-episode-card:focus-visible{outline:2px solid #d3b084;outline-offset:3px}
.local-video-episode-cover{aspect-ratio:16/9;background:radial-gradient(ellipse at 50% 20%,#d8b58615,transparent 70%),#181a1e;border:1px dashed #d7b78433;border-radius:10px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px}
.local-video-episode-cover>strong{font-size:20px;font-weight:600;letter-spacing:.04em}.local-video-episode-cover>small{font-size:11px;color:#9c9488}
.local-video-episode-card>p{font-size:12px;color:#a89f92;line-height:1.7;margin:12px 0}.local-video-episode-open{display:flex;justify-content:space-between;font-size:11px;color:#d1b68f;border-top:1px solid #ffffff0c;padding-top:12px}
.local-video-segments-dialog.local-video-dialog{width:min(1140px,calc(100vw - 40px));padding:24px}
.local-video-segments-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:16px;margin-top:20px}
.local-video-segments-grid .wf-result-card{margin:0;min-width:0;border:1px solid #ffffff15;border-radius:12px;background:#202123;padding:14px;box-shadow:none}
.local-video-segments-grid .wf-result-card.is-generating{border-color:#bfa06b55}
.local-video-elapsed{font-size:12px;color:#dfbf8f;font-variant-numeric:tabular-nums;letter-spacing:.05em}
.local-video-result-placeholder .local-video-segment-status{font-size:11px;color:#a99e8b}
.local-video-segments-grid .is-generating .local-video-segment-status{color:#e1c293}
.local-video-spinner{animation:local-video-spin 2s linear infinite;font-size:26px;border-radius:50%}.local-video-result-placeholder:has(.local-video-spinner){background:radial-gradient(ellipse at 50% 35%,#d8b58617,transparent 70%),#181a1e}
@keyframes local-video-spin{to{transform:rotate(360deg)}}
@media(max-width:640px){.local-video-dialog .local-video-seg-grid{width:100%;grid-template-columns:repeat(3,minmax(0,1fr))!important}.local-video-episode-grid{grid-template-columns:minmax(0,1fr)}.local-video-segments-dialog.local-video-dialog{width:calc(100vw - 24px);padding:20px 16px}.local-video-segments-grid{grid-template-columns:minmax(0,1fr);gap:12px}.local-video-result-heading{padding-top:8px}}
@media(prefers-reduced-motion:reduce){.local-video-spinner{animation:none}.local-video-episode-card{transition:none}.local-video-episode-card:hover{transform:none}}
.wf-app .wf-episode-canvas .wf-model-column{display:flex;flex-direction:column}
.wf-app .wf-episode-canvas .wf-model-column .wf-video-generate-footer{margin-top:auto;width:100%;padding-top:20px;box-sizing:border-box;justify-content:flex-end}
.wf-app .wf-episode-canvas>.wf-side{align-self:stretch;max-height:none!important;overflow:visible!important;display:flex;flex-direction:column}
.wf-app .wf-episode-canvas>.wf-side .wf-clip-list{max-height:none!important;height:auto!important;overflow:visible!important;flex:1;align-content:start}
.local-video-episode-card-open{display:block;width:100%;background:transparent;border:0;padding:0;text-align:left;color:inherit;font:inherit;cursor:pointer}
.local-video-episode-card-open:focus-visible{outline:2px solid #d3b084;outline-offset:4px;border-radius:8px}
.local-video-episode-card-open>p{font-size:12px;color:#a89f92;line-height:1.7;margin:12px 0}
.local-video-episode-card-footer{display:flex;justify-content:flex-end;padding-top:10px}
.wf-btn.local-video-download{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:36px;font-size:12px;cursor:not-allowed;opacity:.45}
.local-video-episode-card{cursor:default}

/* source: /assets/episode-scroll-hidden-74e49012cfd0.css */
/* Keep the left episode list independently scrollable without drawing a bar.
   Size containment stops a long episode list from setting the grid row height;
   the right video canvas determines it and grid stretch aligns both edges. */
@media (min-width:921px) {
  .wf-app .wf-episode-canvas > .wf-side {
    contain:size;
    align-self:stretch;
    display:flex;
    flex-direction:column;
    min-height:0;
    height:auto!important;
    max-height:none!important;
    overflow:hidden!important;
    box-sizing:border-box;
  }
  .wf-app .wf-episode-canvas > .wf-side > h4 {flex:0 0 auto;}
  .wf-app .wf-episode-canvas > .wf-side .wf-clip-list {
    display:flex;
    flex-direction:column;
    flex:1 1 0;
    min-height:0;
    height:auto!important;
    max-height:none!important;
    overflow-x:hidden!important;
    overflow-y:auto!important;
    scrollbar-width:none;
    -ms-overflow-style:none;
    overscroll-behavior-y:contain;
    touch-action:pan-y;
  }
  .wf-app .wf-episode-canvas > .wf-side .wf-clip-item {flex:0 0 auto;}
}
.wf-app .wf-episode-canvas > .wf-side .wf-clip-list::-webkit-scrollbar {display:none;width:0;height:0;}
@media (max-width:920px) {
  /* Stacked mobile/tablet layout uses a short list, not a canvas-height spacer. */
  .wf-app .wf-episode-canvas > .wf-side {min-height:0;overflow:hidden!important;}
  .wf-app .wf-episode-canvas > .wf-side .wf-clip-list {
    max-height:180px!important;
    overflow-y:auto!important;
    overflow-x:hidden!important;
    scrollbar-width:none;
    -ms-overflow-style:none;
    overscroll-behavior-y:contain;
    touch-action:pan-y;
  }
}

/* source: /assets/asset-card-layout-8c6b56222075.css */
/* Preserve original image/media proportions; only rebuild the title/actions. */
.wf-app .wf-asset-title-row.local-asset-heading{display:block!important;margin-bottom:12px}
.wf-app .local-asset-name-row{display:flex;align-items:center;gap:12px;width:100%;min-width:0;margin-bottom:12px}
.wf-app .local-asset-name-row>h3{flex:1 1 auto;min-width:0;width:auto!important;margin:0!important;font-size:18px;line-height:1.45}
.wf-app .local-asset-name-row>h3 input{box-sizing:border-box;min-width:0;max-width:100%;font-size:18px!important}
.wf-app .local-asset-quality{flex:0 0 auto;display:inline-flex;align-items:center;gap:6px;border:1px solid #c1aa8540;border-radius:7px;padding:5px 9px;background:#cfb28609;color:#d9c19c;font-size:12px;line-height:1.1;font-weight:600;text-transform:none;letter-spacing:.02em;font-variant-numeric:tabular-nums}
.wf-app .local-asset-quality>small{font-weight:400;color:#9d9588;font-size:10px}
.wf-app .local-asset-action-row{display:flex;align-items:center;justify-content:space-between;gap:8px;min-width:0}
.wf-app .local-asset-action-row>.wf-badge.prompt{flex:0 1 auto;font-size:10px;white-space:nowrap;padding:4px 7px;max-width:100px;overflow:hidden;text-overflow:ellipsis}
.wf-app .local-asset-action-buttons{display:flex;align-items:center;justify-content:flex-end;gap:6px;margin-left:auto;min-width:0;flex-shrink:0}
.wf-app .local-asset-action-buttons .wf-asset-image-action{flex:0 0 auto!important;width:auto!important;max-width:none!important;min-width:0!important;min-height:34px!important;height:34px!important;padding:0 11px!important;margin:0!important;font-size:12px!important;border-radius:9px!important;line-height:1!important}
.wf-app .local-asset-action-buttons .local-role-hd-actions{display:inline-flex;align-items:center;gap:5px;flex:0 0 auto}
.local-role-hd-notice{display:none!important}
.local-role-hd-help{display:grid;place-items:center;width:19px;height:19px;background:#273e5112;border:1px solid #87b0d041;border-radius:50%;color:#98bcd5;font-size:11px;font-weight:600;padding:0;transition:background .15s,border-color .15s,box-shadow .15s}
.local-role-hd-help:hover,.local-role-hd-help.is-open{color:#d2e9fc;background:#477ca929;border-color:#8abde287;box-shadow:0 0 0 3px #629ac014}
.local-role-hd-help:focus-visible{outline:2px solid #8cbbdf;outline-offset:3px}
.local-role-hd-tooltip[popover]{position:fixed;inset:auto;margin:0;box-sizing:border-box;max-height:calc(100dvh - 28px);overflow:auto;border:1px solid #7597b24a;border-radius:15px;padding:18px;background:linear-gradient(145deg,#252b33,#171d24)!important;color:#e6edf5!important;opacity:1!important;box-shadow:0 12px 48px #0008,0 1px 0 #b8cfe40d inset;font-family:inherit;animation:local-hd-tip-in .13s ease-out}
.local-role-hd-tooltip::backdrop{background:transparent}
.local-role-hd-tooltip-heading{display:flex;align-items:center;gap:12px}.local-role-hd-tooltip-mark{display:grid;place-items:center;width:38px;height:38px;flex:0 0 auto;border:1px solid #8ac0eb33;border-radius:11px;background:#7bb5e210;color:#b9ddf8;font-size:11px;font-weight:700;letter-spacing:.04em}
.local-role-hd-tooltip-heading small{display:block;font-size:8px;letter-spacing:.15em;color:#91a5b8;margin-bottom:4px}.local-role-hd-tooltip-heading strong{font-size:13px;font-weight:600;letter-spacing:.01em}
.local-role-hd-tooltip>p{margin:14px 0;font-size:12px;line-height:1.8;letter-spacing:.015em;color:#b9c5d0;white-space:pre-wrap;overflow-wrap:anywhere}
.local-role-hd-tooltip-footer{border-top:1px solid #a7bdd312;padding-top:11px;display:flex;justify-content:space-between;gap:8px;color:#8d9dac;font-size:10px}
.local-image-preview-quality{display:inline-flex;align-items:center;gap:10px;margin-left:auto}.local-image-preview-quality>b{font-size:12px;color:#d9c19c;border:1px solid #c1aa8540;border-radius:6px;padding:4px 7px;font-weight:600}
@keyframes local-hd-tip-in{from{opacity:0;transform:translateY(3px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:640px){.wf-app .local-asset-name-row{gap:10px}.wf-app .local-asset-name-row>h3 input{font-size:16px!important}.wf-app .local-asset-action-buttons{gap:5px}.wf-app .local-asset-action-buttons .wf-asset-image-action{padding-inline:10px!important}.local-role-hd-tooltip[popover]{border-radius:13px;padding:16px}}
@media(prefers-reduced-motion:reduce){.local-role-hd-tooltip[popover]{animation:none}.local-role-hd-help{transition:none}}

/* source: /assets/video-connected-4433055a82cc.css */
/* Compact image actions and scrollable controls without visible tracks. */
.wf-app .local-asset-action-row{gap:8px;min-height:34px}.wf-app .local-asset-action-row>.wf-tags{display:flex;align-items:center;flex-wrap:nowrap;gap:5px;margin:0!important;min-width:0}
.wf-app .local-asset-action-row>.wf-tags .wf-badge{padding:4px 6px;font-size:10px;white-space:nowrap}.wf-app .local-asset-action-row>.wf-tags .wf-btn.danger{display:grid;place-items:center;width:28px;height:28px;min-height:28px;padding:0;margin:0;border-radius:7px;flex:none}.wf-app .local-asset-action-row>.wf-tags .wf-btn.danger svg{width:14px;height:14px}
.wf-app .local-asset-action-row>.wf-badge.prompt{display:none}.wf-app .local-asset-name-row{margin-bottom:8px}.wf-app .wf-asset-title-row.local-asset-heading{margin-bottom:10px}.wf-app .local-asset-action-buttons{gap:5px}.wf-app .local-asset-action-buttons .wf-asset-image-action{padding-inline:9px!important;height:32px!important;min-height:32px!important}
.wf-app .wf-reference-list,.local-video-dialog,.local-video-range-list,.local-video-confirm-segments,.local-video-segments-grid,.wf-app .account-manager{scrollbar-width:none!important;-ms-overflow-style:none!important}
.wf-app .wf-reference-list::-webkit-scrollbar,.local-video-dialog::-webkit-scrollbar,.local-video-range-list::-webkit-scrollbar,.local-video-confirm-segments::-webkit-scrollbar,.local-video-segments-grid::-webkit-scrollbar,.wf-app .account-manager::-webkit-scrollbar{display:none!important;width:0!important;height:0!important}
.local-video-error{white-space:pre-wrap;overflow-wrap:anywhere;max-height:180px;overflow-y:auto;scrollbar-width:none}.local-video-consent{display:flex;gap:10px;align-items:flex-start;font-size:13px;line-height:1.6;margin:16px 0}.local-video-consent input{margin-top:4px;accent-color:#ceb188}.local-video-confirm-segments>div{padding:9px 12px;border:1px solid #73675444;border-radius:9px;background:#15171c}.local-video-confirm-segments>div>p{font-size:11px;line-height:1.6;margin:6px 0 0;color:#a3a5ad}
.local-video-source-panel{margin:18px 0;padding:16px;border:1px solid #ddd;border-radius:12px;background:#f8fafd}.local-video-source-panel h3{font-size:15px;margin:0 0 8px}.local-video-source-panel>p{font-size:12px;margin:8px 0}.local-video-source-row{display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid #e0e5ed;padding:12px 0}.local-video-source-row strong{display:block}.local-video-source-row small{display:block;margin-top:5px}.local-video-source-row .wf-btn{font-size:12px;padding:8px 12px}.local-video-login-link{display:block;padding:10px;border-radius:8px;background:#e8eef8;color:#234f8e;text-decoration:underline;font-size:12px}.local-video-source-error{color:#a43d42!important;white-space:pre-wrap;font-size:12px}
@media(max-width:640px){.wf-app .local-asset-action-row{gap:4px}.wf-app .local-asset-action-row>.wf-tags{gap:4px}.wf-app .local-asset-action-row>.wf-tags .wf-badge{font-size:9px;padding:4px 5px}.wf-app .local-asset-action-buttons .wf-asset-image-action{padding-inline:7px!important;font-size:11px!important}.wf-app .local-asset-action-buttons{gap:4px}}

/* source: /assets/preflight-ui-be8eba90a85b.css */
/* Compact image actions and scrollable controls without visible tracks. */
.wf-app .local-asset-action-row{gap:8px;min-height:34px}.wf-app .local-asset-action-row>.wf-tags{display:flex;align-items:center;flex-wrap:nowrap;gap:5px;margin:0!important;min-width:0}
.wf-app .local-asset-action-row>.wf-tags .wf-badge{padding:4px 6px;font-size:10px;white-space:nowrap}.wf-app .local-asset-action-row>.wf-tags .wf-btn.danger{display:grid;place-items:center;width:28px;height:28px;min-height:28px;padding:0;margin:0;border-radius:7px;flex:none}.wf-app .local-asset-action-row>.wf-tags .wf-btn.danger svg{width:14px;height:14px}
.wf-app .local-asset-action-row>.wf-badge.prompt{display:none}.wf-app .local-asset-name-row{margin-bottom:8px}.wf-app .wf-asset-title-row.local-asset-heading{margin-bottom:10px}.wf-app .local-asset-action-buttons{gap:5px}.wf-app .local-asset-action-buttons .wf-asset-image-action{padding-inline:9px!important;height:32px!important;min-height:32px!important}
.wf-app .wf-reference-list,.local-video-dialog,.local-video-range-list,.local-video-confirm-segments,.local-video-segments-grid,.wf-app .account-manager{scrollbar-width:none!important;-ms-overflow-style:none!important}
.wf-app .wf-reference-list::-webkit-scrollbar,.local-video-dialog::-webkit-scrollbar,.local-video-range-list::-webkit-scrollbar,.local-video-confirm-segments::-webkit-scrollbar,.local-video-segments-grid::-webkit-scrollbar,.wf-app .account-manager::-webkit-scrollbar{display:none!important;width:0!important;height:0!important}
.local-video-error{white-space:pre-wrap;overflow-wrap:anywhere;max-height:180px;overflow-y:auto;scrollbar-width:none}.local-video-consent{display:flex;gap:10px;align-items:flex-start;font-size:13px;line-height:1.6;margin:16px 0}.local-video-consent input{margin-top:4px;accent-color:#ceb188}.local-video-confirm-segments>div{padding:9px 12px;border:1px solid #73675444;border-radius:9px;background:#15171c}.local-video-confirm-segments>div>p{font-size:11px;line-height:1.6;margin:6px 0 0;color:#a3a5ad}
.local-video-source-panel{margin:18px 0;padding:16px;border:1px solid #ddd;border-radius:12px;background:#f8fafd}.local-video-source-panel h3{font-size:15px;margin:0 0 8px}.local-video-source-panel>p{font-size:12px;margin:8px 0}.local-video-source-row{display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid #e0e5ed;padding:12px 0}.local-video-source-row strong{display:block}.local-video-source-row small{display:block;margin-top:5px}.local-video-source-row .wf-btn{font-size:12px;padding:8px 12px}.local-video-login-link{display:block;padding:10px;border-radius:8px;background:#e8eef8;color:#234f8e;text-decoration:underline;font-size:12px}.local-video-source-error{color:#a43d42!important;white-space:pre-wrap;font-size:12px}
@media(max-width:640px){.wf-app .local-asset-action-row{gap:4px}.wf-app .local-asset-action-row>.wf-tags{gap:4px}.wf-app .local-asset-action-row>.wf-tags .wf-badge{font-size:9px;padding:4px 5px}.wf-app .local-asset-action-buttons .wf-asset-image-action{padding-inline:7px!important;font-size:11px!important}.wf-app .local-asset-action-buttons{gap:4px}}

.wf-video-generate-footer{display:flex;flex-direction:column;gap:10px}.local-preflight-status,.local-preflight-review{border:1px solid #73675444;border-radius:10px;padding:12px;margin-block:12px}.local-preflight-review pre,.local-preflight-status pre{font:12px/1.7 monospace;white-space:pre-wrap;overflow-wrap:anywhere;max-height:300px;overflow:auto;scrollbar-width:none}.local-video-range-list{scrollbar-width:none}.local-preflight-review h3{font-size:14px;margin:14px 0 8px}
/* source: /assets/video-simple-menu-e071fc78137e.css */
.local-finished-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(280px,100%),1fr));gap:16px;margin-top:18px}.local-finished-card{padding:18px;min-width:0}.local-finished-card h3{margin:0 0 8px}.local-video-result video{display:block;background:#111;border-radius:10px}.local-video-result .wf-toolbar{display:flex;gap:10px;flex-wrap:wrap;align-items:center}.local-video-error{white-space:pre-wrap;overflow-wrap:anywhere}
/* source: /assets/episode-results-2e53f2f34254.css */
.local-result-dialog{scrollbar-width:none;-ms-overflow-style:none}.local-result-dialog::-webkit-scrollbar{display:none}
.local-result-dialog .local-video-segments-grid{grid-template-columns:repeat(auto-fill,minmax(300px,1fr));align-items:start}
.local-result-dialog .local-video-result-card-heading{margin:0 0 14px;gap:8px;flex-wrap:wrap}.local-result-dialog h3{margin:0;font-size:15px}.local-result-dialog h4{margin:0 0 10px;font-size:12px;font-weight:600;color:#cbbfae}
.local-result-preview video{display:block;width:100%;height:230px;object-fit:contain;background:#111215;border:1px solid #ffffff12;border-radius:10px}.local-result-preview .local-video-result-placeholder{min-height:180px;aspect-ratio:16/9;padding:14px;text-align:center;box-sizing:border-box}
.local-result-preview .wf-toolbar{margin-top:12px;gap:8px}.local-result-preview a.wf-btn{display:inline-flex;text-decoration:none;align-items:center}.local-result-preview a.disabled{opacity:.4;pointer-events:none}
.local-result-process{margin-top:18px;padding-top:16px;border-top:1px solid #ffffff12}.local-result-stages{list-style:none;padding:0;margin:12px 0;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:4px}.local-result-stages li{display:flex;flex-direction:column;align-items:center;gap:7px;color:#827e77;font-size:11px;position:relative}.local-result-stages li>span{display:grid;place-items:center;border:1px solid #ffffff20;border-radius:50%;width:24px;height:24px;background:#232427}.local-result-stages li.done{color:#b8ad99}.local-result-stages li.done>span{background:#c5a67618;border-color:#c5a67650}.local-result-stages li.current{color:#efd1a3}.local-result-stages li.current>span{background:#c5a67632;border-color:#d2b17e}
.local-result-state{font-size:13px;margin:12px 0 8px;color:#e4d3b9}.local-result-message{overflow-wrap:anywhere;line-height:1.7}.local-result-times{font-size:10px;color:#a8a096;display:grid;gap:6px}.local-result-times>div{display:flex;justify-content:space-between;gap:8px}.local-result-times dd{margin:0;font-variant-numeric:tabular-nums}.local-result-provider-link{display:inline-flex;text-decoration:none;font-size:11px;margin-top:8px;max-width:100%;box-sizing:border-box}
.local-result-history{display:grid;gap:6px;font-size:11px;color:#b7b0a6;margin:0 0 14px}.local-result-history select{width:100%;min-width:0;background:#232427;color:#e5dccd;border:1px solid #ffffff22;border-radius:8px;padding:8px}
@media(max-width:640px){.local-result-dialog .local-video-segments-grid{grid-template-columns:minmax(0,1fr)}.local-result-preview video{height:215px}.local-result-dialog .local-video-dialog-heading h2{font-size:18px}.local-result-dialog .local-finished-card{padding:12px}.local-result-times>div{flex-wrap:wrap}}

/* Preserve the episode-card and SEG-dialog layout; only fill completed covers. */
.local-video-episode-cover{position:relative;overflow:hidden}
.local-episode-thumbnail{position:absolute;inset:0;pointer-events:none;display:block}
.local-episode-thumbnail img,.local-episode-thumbnail video{display:block;width:100%;height:100%;object-fit:contain;background:#111215}
.local-video-episode-cover:has(.local-episode-thumbnail img)>strong,.local-video-episode-cover:has(.local-episode-thumbnail img)>small{position:relative;z-index:1;background:#111215c9;padding:4px 10px;border-radius:6px;text-shadow:0 1px 2px #000}
.local-video-episode-cover:has(.local-episode-thumbnail img){justify-content:flex-end;gap:4px;padding:10px;box-sizing:border-box}

/* source: /assets/video-accounts-932995db1d56.css */
.local-video-account-card{padding:12px 0;border-top:1px solid #ffffff15}.local-video-account-card .local-video-source-row{gap:16px}.local-video-account-identity{display:block;overflow-wrap:anywhere;line-height:1.6;margin-top:6px}.local-video-login-state{font-size:12px;line-height:1.7;margin:8px 0;color:#d9c6a6}.local-video-account-actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.local-video-account-actions a.wf-btn{display:inline-flex;text-decoration:none}.local-video-account-actions [hidden],.local-video-account-help[hidden]{display:none!important}.local-video-account-help{font-size:11px;line-height:1.8;color:#aaa094;max-width:640px}.local-video-account-card button{white-space:nowrap}.local-video-source-error{overflow-wrap:anywhere}

/* source: /assets/poster-preview-5afd75de435e.css */
.local-result-poster-button{position:relative;display:flex;align-items:center;justify-content:center;width:100%;min-height:230px;aspect-ratio:16/9;max-height:420px;overflow:hidden;border:1px solid #3e424d;border-radius:12px;background:#11141b;color:#fff;cursor:pointer;padding:0}
.local-result-poster-button .local-episode-thumbnail{position:absolute;inset:0;display:block;width:100%;height:100%}
.local-result-poster-button .local-episode-thumbnail img{width:100%;height:100%;object-fit:contain}
.local-result-play-label{position:relative;z-index:1;background:rgba(10,12,18,.8);border:1px solid #6b7280;border-radius:24px;padding:12px 20px;color:#fff}
.local-result-poster-button:focus-visible{outline:3px solid #e5c27a;outline-offset:3px}
.local-result-poster-button:disabled{cursor:wait}
@media(max-width:640px){.local-result-poster-button{min-height:180px}.local-result-play-label{padding:10px 14px}}

/* source: /assets/studio-96855c4768b9.css */
/* src/studio/tokens.css */
/* Studio design tokens. Legacy variables (--bg, --accent, …) are remapped so the
   compiled bundle and older extension styles inherit the new palette. */
:root {
  color-scheme: dark;
  --st-bg: #07080b;
  --st-bg-raised: #0c0e13;
  --st-solid: #111319;
  --st-solid-2: #161921;
  --st-solid-3: #1c2029;
  --st-surface-0: rgba(255, 255, 255, 0.02);
  --st-surface-1: rgba(255, 255, 255, 0.035);
  --st-surface-2: rgba(255, 255, 255, 0.055);
  --st-surface-3: rgba(255, 255, 255, 0.085);
  --st-glass: rgba(14, 16, 22, 0.78);
  --st-inset: rgba(0, 0, 0, 0.28);
  --st-line: rgba(255, 255, 255, 0.07);
  --st-line-2: rgba(255, 255, 255, 0.11);
  --st-line-3: rgba(255, 255, 255, 0.18);
  --st-text: #f4f1ea;
  --st-text-2: #cfcac1;
  --st-muted: #9b978f;
  --st-faint: #6e6b65;
  --st-gold-1: #ffe3b3;
  --st-gold-2: #f6b867;
  --st-gold-3: #e9853f;
  --st-accent: #f3b46c;
  --st-accent-ink: #1b1207;
  --st-accent-soft: rgba(243, 180, 108, 0.13);
  --st-accent-line: rgba(243, 180, 108, 0.42);
  --st-accent-glow: rgba(240, 152, 72, 0.55);
  --st-grad: linear-gradient(135deg, #ffe2ad 0%, #f6b462 48%, #e9823e 100%);
  --st-grad-soft: linear-gradient(135deg, rgba(255, 226, 173, 0.16), rgba(233, 130, 62, 0.08));
  --st-blue: #93b6ff;
  --st-blue-soft: rgba(147, 182, 255, 0.13);
  --st-green: #5ad6a8;
  --st-green-soft: rgba(90, 214, 168, 0.13);
  --st-red: #ff7b8b;
  --st-red-soft: rgba(255, 123, 139, 0.11);
  --st-amber: #fbc15e;
  --st-violet: #b7a3ff;
  --st-teal: #55dccb;
  --st-rose: #ff92b4;
  --st-radius-xs: 6px;
  --st-radius-sm: 8px;
  --st-radius: 10px;
  --st-radius-md: 12px;
  --st-radius-lg: 16px;
  --st-radius-xl: 22px;
  --st-shadow-1: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 1px 2px rgba(0, 0, 0, 0.35);
  --st-shadow-2: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 14px 34px -18px rgba(0, 0, 0, 0.8);
  --st-shadow-3: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 34px 90px -30px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.03);
  --st-ring: 0 0 0 2px var(--st-bg), 0 0 0 4px rgba(243, 180, 108, 0.75);
  --st-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --st-ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --st-spring: cubic-bezier(0.34, 1.4, 0.64, 1);
  --st-fast: 140ms;
  --st-med: 220ms;
  --st-slow: 380ms;
  --st-font: "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Noto Sans SC", "Source Han Sans SC", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --st-mono: "JetBrains Mono", "SF Mono", ui-monospace, Menlo, Consolas, monospace;
  --st-noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --st-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231b1207' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.2 4.2L19 7'/%3E%3C/svg%3E");
  --st-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b9b4aa' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
}

:root,
:root .wf-app,
:root .wf-app .account-manager,
:root .asset-review-page {
  --bg: var(--st-bg);
  --bg-elev: var(--st-glass);
  --bg-card: var(--st-solid);
  --line: var(--st-line-2);
  --line-strong: var(--st-line-3);
  --text: var(--st-text);
  --muted: var(--st-muted);
  --accent: var(--st-accent);
  --accent-2: var(--st-gold-3);
  --danger: var(--st-red);
  --radius: 14px;
  --role: #7a63e8;
  --scene: #1e9b90;
  --prop: #d0507f;
  --style-accent: var(--st-accent);
  --style-accent-ink: var(--st-accent-ink);
}

/* src/studio/base.css */
/* Page foundation: canvas, type, scrollbars, selection, focus. */
:root {
  font-family: var(--st-font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
:root body {
  background: var(--st-bg);
  color: var(--st-text);
  font-family: var(--st-font);
  font-feature-settings: "tnum" 0, "kern" 1;
}
:root ::selection {
  background: rgba(243, 180, 108, 0.34);
  color: #fff;
}
:root * {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.16) transparent;
}
:root *::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
:root *::-webkit-scrollbar-thumb {
  border: 3px solid transparent;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16) padding-box;
}
:root *::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.28) padding-box;
}
:root *::-webkit-scrollbar-track {
  background: transparent;
}
:root :focus-visible {
  outline: 2px solid rgba(243, 180, 108, 0.8);
  outline-offset: 2px;
}

/* Workspace canvas: aurora light, film grain and the brand film kept as a faint texture. */
:root .wf-app {
  background:
    radial-gradient(1100px 620px at 8% -12%, rgba(246, 178, 96, 0.11), transparent 62%),
    radial-gradient(900px 640px at 104% -4%, rgba(118, 142, 255, 0.085), transparent 58%),
    radial-gradient(1200px 760px at 50% 118%, rgba(233, 130, 62, 0.06), transparent 62%),
    var(--st-bg);
  color: var(--st-text);
}
:root .wf-app::after {
  content: "";
  display: block;
  position: fixed;
  inset: 0;
  z-index: -1;
  background: var(--st-noise);
  opacity: 0.045;
  mix-blend-mode: overlay;
  pointer-events: none;
}
:root .wf-app .workspace-film {
  opacity: 0.07;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.5) 40%, transparent 78%);
  mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.5) 40%, transparent 78%);
}
:root .wf-app .workspace-film::after {
  background: rgba(7, 8, 11, 0.86);
}

/* Type scale */
:root .wf-app .wf-main {
  width: min(1360px, calc(100% - 56px));
  padding: 34px 0 96px;
}
:root .wf-app .wf-hero-title,
:root .wf-app .wf-main > section > .wf-hero-title {
  margin: 0 0 10px;
  font-size: clamp(28px, 2.6vw, 38px);
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.22;
  background: linear-gradient(180deg, #ffffff 20%, #d8d1c4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
}
:root .wf-app .wf-main > section > .wf-hero-title::before,
:root .wf-app .wf-main > div > .wf-hero-title::before {
  content: "云拓星芒 · 创作工作台";
  display: flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  margin-bottom: 14px;
  padding: 5px 11px 5px 9px;
  border: 1px solid rgba(243, 180, 108, 0.24);
  border-radius: 999px;
  background: rgba(243, 180, 108, 0.07);
  color: #f0c993;
  -webkit-text-fill-color: #f0c993;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1;
}
:root .wf-app .wf-hero-sub {
  max-width: 820px;
  margin: 0 0 26px;
  color: var(--st-muted);
  font-size: 13.5px;
  line-height: 1.8;
}
:root .wf-app .wf-muted,
:root .wf-muted {
  color: var(--st-muted);
}
:root .wf-app main p.wf-muted {
  font-size: 12.5px;
  line-height: 1.75;
}
:root .wf-app h1,
:root .wf-app h2,
:root .wf-app h3,
:root .wf-app h4 {
  letter-spacing: -0.01em;
}
:root code,
:root kbd {
  font-family: var(--st-mono);
}

/* src/studio/components.css */
/* Core components: top bar, navigation, buttons, fields, badges, surfaces, feedback. */

/* ── Top bar ───────────────────────────────────────────── */
:root :is(.wf-app,.brand-workflow-nav) .wf-top {
  min-height: 64px;
  padding: 10px clamp(16px, 2.2vw, 30px);
  gap: 20px;
  border-bottom: 1px solid var(--st-line);
  background: rgba(8, 9, 13, 0.72);
  -webkit-backdrop-filter: blur(22px) saturate(170%);
  backdrop-filter: blur(22px) saturate(170%);
  box-shadow: 0 18px 40px -32px rgba(0, 0, 0, 0.9);
}
:root :is(.wf-app,.brand-workflow-nav) .wf-top::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent 4%, rgba(246, 180, 98, 0.5) 50%, transparent 96%);
  opacity: 0.55;
  pointer-events: none;
}
:root :is(.wf-app,.brand-workflow-nav) .wf-brand {
  gap: 12px;
}
:root :is(.wf-app,.brand-workflow-nav) .wf-brand > span {
  padding-left: 12px;
  border-left: 1px solid var(--st-line-2);
  color: var(--st-faint);
  font-size: 11.5px;
  letter-spacing: 0.04em;
}

/* Stage navigation: segmented control with a sliding indicator (studio.js sets --st-ind-*). */
:root .wf-app .wf-steps {
  position: relative;
  gap: 2px;
  padding: 4px;
  border: 1px solid var(--st-line);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.03);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035), inset 0 -10px 20px -18px rgba(0, 0, 0, 0.9);
}
:root .wf-app .wf-steps[data-st-indicator]::before {
  content: "";
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 0;
  width: var(--st-ind-w, 0px);
  transform: translateX(var(--st-ind-x, 0px));
  border-radius: 9px;
  background: var(--st-grad);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 8px 22px -10px var(--st-accent-glow);
  opacity: var(--st-ind-o, 0);
  transition: transform 460ms var(--st-spring), width 460ms var(--st-spring), opacity 200ms ease;
  pointer-events: none;
}
:root .wf-app .wf-step {
  position: relative;
  z-index: 1;
  min-height: 32px;
  padding: 6px 14px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--st-muted);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: color var(--st-med) var(--st-ease), background var(--st-fast) ease;
}
:root .wf-app .wf-step.done {
  color: var(--st-text-2);
}
:root .wf-app .wf-step:hover:not(:disabled) {
  color: var(--st-text);
  background: rgba(255, 255, 255, 0.055);
}
:root .wf-app .wf-step.active,
:root .wf-app .wf-step.active:hover:not(:disabled) {
  border: 0;
  color: var(--st-accent-ink);
  background: var(--st-grad);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 8px 22px -10px var(--st-accent-glow);
  font-weight: 650;
}
:root .wf-app .wf-steps[data-st-indicator] .wf-step.active,
:root .wf-app .wf-steps[data-st-indicator] .wf-step.active:hover:not(:disabled) {
  background: transparent;
  box-shadow: none;
}
:root .wf-app .wf-step:disabled {
  opacity: 0.32;
}
:root .wf-app .wf-user {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-right: 2px;
  color: var(--st-text-2);
  font-size: 12.5px;
  font-weight: 500;
}
:root .wf-app .wf-user::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--st-green);
  box-shadow: 0 0 0 3px rgba(90, 214, 168, 0.16), 0 0 10px rgba(90, 214, 168, 0.6);
}
:root .wf-app .wf-top-actions {
  gap: 8px;
}
:root .wf-app .wf-top-actions .wf-btn {
  min-height: 34px;
  padding: 0 13px;
  font-size: 12.5px;
}
:root .wf-app .wf-top-actions .wf-btn.ghost {
  --btn-border: rgba(255, 255, 255, 0.09);
  --btn-border-hover: rgba(255, 255, 255, 0.2);
}
@media (max-width: 900px) {
  :root .wf-app .wf-steps {
    max-width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 14px, #000 calc(100% - 14px), transparent);
    mask-image: linear-gradient(90deg, transparent, #000 14px, #000 calc(100% - 14px), transparent);
  }
  :root .wf-app .wf-steps::-webkit-scrollbar {
    display: none;
  }
  :root .wf-app .wf-step {
    flex: none;
  }
}

/* ── Buttons ───────────────────────────────────────────── */
:root .wf-btn,
:root .wf-app .wf-btn {
  --btn-bg: rgba(255, 255, 255, 0.045);
  --btn-bg-hover: rgba(255, 255, 255, 0.085);
  --btn-border: rgba(255, 255, 255, 0.1);
  --btn-border-hover: rgba(255, 255, 255, 0.2);
  --btn-text: var(--st-text);
  --st-rx: 50%;
  --st-ry: 50%;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 36px;
  padding: 0 15px;
  border: 1px solid var(--btn-border);
  border-radius: 10px;
  background: var(--btn-bg);
  color: var(--btn-text);
  font-family: var(--st-font);
  font-size: 13px;
  font-weight: 550;
  line-height: 1;
  letter-spacing: 0.01em;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 1px 2px rgba(0, 0, 0, 0.3);
  transform: translateZ(0);
  transition:
    background var(--st-fast) var(--st-ease),
    border-color var(--st-fast) var(--st-ease),
    color var(--st-fast) ease,
    box-shadow var(--st-med) var(--st-ease),
    transform var(--st-med) var(--st-spring),
    filter var(--st-fast) ease,
    opacity var(--st-fast) ease;
}
:root .wf-btn::before {
  content: "";
  position: absolute;
  left: var(--st-rx);
  top: var(--st-ry);
  z-index: -1;
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0;
  pointer-events: none;
}
:root .wf-btn[data-st-ripple]::before {
  animation: st-ripple 620ms var(--st-ease) forwards;
}
:root .wf-btn:hover:not(:disabled),
:root .wf-app .wf-btn:hover:not(:disabled) {
  background: var(--btn-bg-hover);
  border-color: var(--btn-border-hover);
  color: var(--btn-text);
  transform: translateY(-1px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 10px 22px -12px rgba(0, 0, 0, 0.75);
}
:root .wf-btn:active:not(:disabled),
:root .wf-app .wf-btn:active:not(:disabled) {
  transform: translateY(0) scale(0.97);
  transition-duration: 80ms;
}
:root .wf-btn:focus-visible,
:root .wf-app .wf-btn:focus-visible {
  outline: none;
  box-shadow: var(--st-ring);
}
:root .wf-btn:disabled,
:root .wf-app .wf-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
  filter: saturate(0.4);
}
:root .wf-btn.primary,
:root .wf-app .wf-btn.primary {
  --btn-bg: var(--st-grad);
  --btn-bg-hover: var(--st-grad);
  --btn-border: transparent;
  --btn-border-hover: transparent;
  --btn-text: var(--st-accent-ink);
  font-weight: 650;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.25);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), inset 0 -1px 0 rgba(122, 52, 0, 0.28), 0 10px 26px -12px var(--st-accent-glow);
}
:root .wf-btn.primary::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(105deg, transparent 32%, rgba(255, 255, 255, 0.55) 50%, transparent 68%);
  transform: translateX(-130%);
  transition: transform 760ms var(--st-ease);
  pointer-events: none;
}
:root .wf-btn.primary:hover:not(:disabled),
:root .wf-app .wf-btn.primary:hover:not(:disabled) {
  filter: brightness(1.05) saturate(1.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), inset 0 -1px 0 rgba(122, 52, 0, 0.28), 0 16px 34px -14px rgba(240, 152, 72, 0.85);
}
:root .wf-btn.primary:hover:not(:disabled)::after {
  transform: translateX(130%);
}
:root .wf-btn.primary:disabled,
:root .wf-app .wf-btn.primary:disabled {
  --btn-bg: rgba(255, 255, 255, 0.06);
  --btn-border: rgba(255, 255, 255, 0.08);
  --btn-text: var(--st-faint);
  opacity: 1;
  filter: none;
  text-shadow: none;
  box-shadow: none;
}
:root .wf-btn.primary:disabled::after {
  content: none;
}
:root .wf-btn.ghost,
:root .wf-app .wf-btn.ghost {
  --btn-bg: transparent;
  --btn-bg-hover: rgba(255, 255, 255, 0.065);
  --btn-border: transparent;
  --btn-border-hover: rgba(255, 255, 255, 0.08);
  --btn-text: var(--st-text-2);
  box-shadow: none;
}
:root .wf-btn.ghost:hover:not(:disabled),
:root .wf-app .wf-btn.ghost:hover:not(:disabled) {
  --btn-text: var(--st-text);
  box-shadow: none;
}
:root .wf-app .wf-main .wf-btn.ghost {
  --btn-border: rgba(255, 255, 255, 0.09);
  --btn-border-hover: rgba(255, 255, 255, 0.18);
}
:root .wf-btn.danger,
:root .wf-app .wf-btn.danger {
  --btn-bg: rgba(255, 123, 139, 0.08);
  --btn-bg-hover: rgba(255, 123, 139, 0.16);
  --btn-border: rgba(255, 123, 139, 0.26);
  --btn-border-hover: rgba(255, 123, 139, 0.5);
  --btn-text: #ffb8c2;
}
:root .wf-btn.studio-next,
:root .wf-app .wf-btn.studio-next {
  --btn-bg: linear-gradient(rgba(14, 16, 22, 0.92), rgba(14, 16, 22, 0.92)) padding-box, linear-gradient(135deg, rgba(255, 226, 173, 0.75), rgba(233, 130, 62, 0.55)) border-box;
  --btn-bg-hover: linear-gradient(rgba(30, 24, 18, 0.95), rgba(30, 24, 18, 0.95)) padding-box, linear-gradient(135deg, #ffe2ad, #e9823e) border-box;
  --btn-border: transparent;
  --btn-border-hover: transparent;
  --btn-text: var(--st-gold-1);
  padding-right: 13px;
}
:root .wf-btn.studio-next::after {
  content: "→";
  margin-left: 2px;
  font-weight: 700;
  transition: transform var(--st-med) var(--st-spring);
}
:root .wf-btn.studio-next:hover:not(:disabled)::after {
  transform: translateX(3px);
}
:root .wf-btn.studio-add {
  padding-left: 12px;
}
:root .wf-btn.studio-add::after {
  content: "+";
  order: -1;
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--st-gold-1);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}

/* ── Form controls ─────────────────────────────────────── */
:root .wf-input,
:root .wf-app input:not([type]),
:root .wf-app input[type="text"],
:root .wf-app input[type="search"],
:root .wf-app input[type="password"],
:root .wf-app input[type="url"],
:root .wf-app input[type="number"],
:root .wf-app input[type="email"],
:root .wf-app select,
:root .wf-app textarea,
:root .pipeline-dialog input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
:root .pipeline-dialog select,
:root .pipeline-dialog textarea {
  border: 1px solid var(--st-line-2);
  border-radius: 10px;
  background-color: var(--st-inset);
  color: var(--st-text);
  font-family: var(--st-font);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.35);
  transition: border-color var(--st-fast) ease, box-shadow var(--st-med) var(--st-ease), background-color var(--st-fast) ease;
}
:root .wf-input:hover,
:root .wf-app input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):hover,
:root .wf-app select:hover,
:root .wf-app textarea:hover {
  border-color: var(--st-line-3);
}
:root .wf-input:focus,
:root .wf-input:focus-visible,
:root .wf-app input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):focus,
:root .wf-app select:focus,
:root .wf-app textarea:focus,
:root .pipeline-dialog input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):focus,
:root .pipeline-dialog select:focus,
:root .pipeline-dialog textarea:focus {
  outline: none;
  border-color: rgba(243, 180, 108, 0.6);
  background-color: rgba(0, 0, 0, 0.36);
  box-shadow: 0 0 0 3px rgba(243, 180, 108, 0.16), inset 0 1px 2px rgba(0, 0, 0, 0.35);
}
:root .wf-app input::placeholder,
:root .wf-app textarea::placeholder,
:root .pipeline-dialog input::placeholder,
:root .pipeline-dialog textarea::placeholder {
  color: var(--st-faint);
}
:root .wf-app input.wf-input,
:root .wf-app select.wf-input,
:root .wf-app .asset-name-search {
  min-height: 36px;
  padding: 0 12px;
}
:root .wf-app select,
:root .pipeline-dialog select {
  -webkit-appearance: none;
  appearance: none;
  min-height: 36px;
  padding: 0 34px 0 12px;
  background-image: var(--st-chevron);
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px;
  cursor: pointer;
}
:root .wf-app select option,
:root .pipeline-dialog select option {
  background: var(--st-solid-2);
  color: var(--st-text);
}
:root .wf-app input[type="file"]::file-selector-button,
:root .pipeline-dialog input[type="file"]::file-selector-button {
  margin-right: 12px;
  padding: 9px 14px;
  border: 1px solid var(--st-line-2);
  border-radius: 9px;
  background: var(--st-surface-2);
  color: var(--st-text);
  font: 550 12.5px/1 var(--st-font);
  cursor: pointer;
  transition: background var(--st-fast) ease, border-color var(--st-fast) ease;
}
:root .wf-app input[type="file"]::file-selector-button:hover {
  background: var(--st-surface-3);
  border-color: var(--st-accent-line);
}
:root .wf-app input[type="checkbox"],
:root .pipeline-dialog input[type="checkbox"],
:root .iu-dialog input[type="checkbox"],
:root .iu-manager input[type="checkbox"] {
  -webkit-appearance: none;
  appearance: none;
  display: inline-grid;
  place-content: center;
  flex: none;
  width: 18px;
  height: 18px;
  margin: 0;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.3) center / 14px no-repeat;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  transition: background-color var(--st-fast) ease, border-color var(--st-fast) ease, transform var(--st-med) var(--st-spring), box-shadow var(--st-med) ease;
}
:root .wf-app input[type="checkbox"]:hover,
:root .pipeline-dialog input[type="checkbox"]:hover {
  border-color: var(--st-accent-line);
}
:root .wf-app input[type="checkbox"]:checked,
:root .pipeline-dialog input[type="checkbox"]:checked,
:root .iu-dialog input[type="checkbox"]:checked,
:root .iu-manager input[type="checkbox"]:checked {
  border-color: transparent;
  background-color: var(--st-gold-2);
  background-image: var(--st-check), var(--st-grad);
  background-size: 14px, cover;
  box-shadow: 0 4px 12px -4px var(--st-accent-glow), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  animation: st-pop 260ms var(--st-spring);
}
:root .wf-app input[type="checkbox"]:focus-visible,
:root .pipeline-dialog input[type="checkbox"]:focus-visible {
  outline: none;
  box-shadow: var(--st-ring);
}
:root .wf-app input[type="radio"],
:root .pipeline-dialog input[type="radio"] {
  accent-color: var(--st-gold-2);
}

/* ── Badges ────────────────────────────────────────────── */
:root .wf-badge,
:root .wf-app .wf-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 22px;
  padding: 0 9px 0 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--st-text-2);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1;
  white-space: nowrap;
}
:root .wf-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
}
:root .wf-badge.kind-角色,
:root .wf-reference-kind.kind-角色 {
  color: var(--st-violet);
  border-color: rgba(183, 163, 255, 0.22);
  background: rgba(183, 163, 255, 0.09);
}
:root .wf-badge.kind-场景,
:root .wf-reference-kind.kind-场景 {
  color: var(--st-teal);
  border-color: rgba(85, 220, 203, 0.22);
  background: rgba(85, 220, 203, 0.08);
}
:root .wf-badge.kind-道具,
:root .wf-reference-kind.kind-道具 {
  color: var(--st-rose);
  border-color: rgba(255, 146, 180, 0.22);
  background: rgba(255, 146, 180, 0.08);
}
:root .wf-badge.asset-parent-label,
:root .asset-parent-label {
  color: var(--st-gold-1) !important;
  border-color: rgba(246, 184, 103, 0.3);
  background: rgba(246, 184, 103, 0.1);
}
:root .wf-badge.asset-child-label,
:root .asset-child-label {
  color: var(--st-blue) !important;
  border-color: rgba(147, 182, 255, 0.28);
  background: rgba(147, 182, 255, 0.09);
}

/* ── Surfaces ──────────────────────────────────────────── */
:root .wf-app .wf-panel,
:root .wf-app .wf-side,
:root .wf-app .wf-board,
:root .wf-app .wf-segment-header,
:root .wf-panel {
  border: 1px solid var(--st-line);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012)), var(--st-solid);
  box-shadow: var(--st-shadow-2);
}
:root .wf-app .wf-toolbar {
  gap: 12px;
  margin-bottom: 16px;
}
:root .wf-app .wf-toolbar-group {
  gap: 8px;
}

/* ── Feedback ──────────────────────────────────────────── */
:root .wf-error,
:root .wf-app .wf-error {
  position: relative;
  padding: 11px 14px 11px 40px;
  border: 1px solid rgba(255, 123, 139, 0.26);
  border-radius: 12px;
  background: linear-gradient(90deg, rgba(255, 123, 139, 0.12), rgba(255, 123, 139, 0.05));
  color: #ffc6cd;
  font-size: 13px;
  line-height: 1.65;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  animation: st-fade-up 260ms var(--st-ease) both;
}
:root .wf-error::before {
  content: "!";
  position: absolute;
  left: 13px;
  top: 11px;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(255, 123, 139, 0.22);
  color: #ffd2d8;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}
:root .wf-spinner,
:root .wf-app .wf-spinner {
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0 25%, var(--st-gold-2) 75%, var(--st-gold-1));
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2.5px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2.5px));
  animation: st-spin 0.9s linear infinite;
}
:root .wf-app .wf-analyzing {
  gap: 14px;
  color: var(--st-text-2);
}
:root .wf-app .wf-batch-progress {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-bottom: 18px;
  padding: 14px 16px;
  border: 1px solid rgba(243, 180, 108, 0.22);
  border-radius: 16px;
  background: linear-gradient(90deg, rgba(243, 180, 108, 0.1), rgba(255, 255, 255, 0.03)), var(--st-solid);
  color: var(--st-text);
  font-size: 13px;
  box-shadow: var(--st-shadow-2);
  animation: st-fade-up 280ms var(--st-ease) both;
}
:root .wf-app .wf-batch-progress::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--st-gold-2), var(--st-gold-1), transparent);
  background-size: 50% 100%;
  background-repeat: no-repeat;
  animation: st-indeterminate 1.6s var(--st-ease-in-out) infinite;
}
:root .wf-app .wf-batch-progress:not(:has(.wf-btn.danger))::before {
  display: none;
}
:root .wf-app .wf-batch-progress {
  width: auto;
}
:root .wf-app .wf-batch-progress > .wf-muted {
  flex-basis: 100%;
  max-width: none;
  margin: 0;
}
:root .wf-app .wf-batch-progress .wf-image-notice {
  flex: 1 1 100%;
  width: auto;
  max-width: none;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 123, 139, 0.24);
  border-radius: 12px;
  background: rgba(255, 123, 139, 0.07);
  color: #ffc6cd;
}
:root .wf-app .wf-image-notice-actions {
  display: flex;
  gap: 8px;
}

/* src/studio/workspace.css */
/* Workspace views: projects, asset review, filter panel, video canvas, results, script. */
.wf-image-dialog .local-image-viewport { position: relative; width: 100%; height: min(68vh, 760px); min-height: 180px; overflow: auto; overscroll-behavior: contain; }
.local-image-viewport .local-image-surface { position: relative; width: 100%; height: 100%; }
.local-image-viewport .local-image-surface img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; object-fit: contain; user-select: none; -webkit-user-select: none; -webkit-user-drag: none; pointer-events: none; }
.local-image-viewport.is-zoomed { cursor: grab; touch-action: none; }
.local-image-viewport[data-dragging] { cursor: grabbing; }
.local-image-viewport .local-image-loading { position: sticky; bottom: 8px; left: 8px; display: inline-block; padding: 5px 10px; color: #ddd; background: #202127e6; border-radius: 6px; pointer-events: none; }

/* One status meaning for asset and story analysis. */
@media (hover: none), (pointer: coarse) {
  :root .wf-app .wf-asset-card { contain: layout style; }
  :root .wf-app .wf-asset-check { backdrop-filter: none; -webkit-backdrop-filter: none; }
  :root .wf-app .wf-asset-preview .wf-empty-frame { background: #202127; }
}
:root .compact-progress-grid .wf-btn.compact-episode:is(.extracted,.completed),
:root .analysis-episode-grid .wf-btn:is(.extracted,.completed) {
  color: #86efac; background: rgba(34,197,94,.16); border-color: rgba(74,222,128,.55); box-shadow: none;
}
:root .compact-progress-grid .wf-btn.compact-episode:is(.running,.validating),
:root .analysis-episode-grid .wf-btn:is(.running,.validating) {
  color: #f3b46c; background: rgba(243,180,108,.14); border-color: rgba(243,180,108,.45); box-shadow: none;
}
:root .compact-progress-grid .wf-btn.compact-episode:is(.pending,.queued),
:root .analysis-episode-grid .wf-btn:is(.pending,.queued) {
  color: #b3b5bc; background: #292b31; border-color: #41444d; box-shadow: none;
}
:root .compact-progress-grid .compact-episode:is(.extracted,.completed,.running,.validating,.pending) small { color: inherit; }
.local-batch-hd-dialog { width: min(760px,calc(100vw - 24px)); animation: st-dialog-in 240ms var(--st-spring) both; }
.local-batch-hd-dialog > .wf-toolbar { justify-content: flex-end; gap: 8px; }
.local-batch-hd-dialog > .wf-toolbar > .wf-btn { margin: 0; }
.local-batch-hd-dialog > .wf-toolbar > span { order: -1; margin-inline-end: auto; }
.local-hd-character-grid { grid-template-columns: repeat(auto-fill,minmax(145px,1fr)); max-height: 42vh; overflow: auto; }
.local-hd-character-grid .asset-filter-episode { min-height: 64px; padding: 10px; display: flex; flex-direction: column; gap: 6px; }
.local-hd-character-grid strong { white-space: normal; overflow-wrap: anywhere; }
.local-hd-character-grid small { font-size: 11px; color: inherit; opacity: .8; }
.local-hd-character-grid .asset-filter-episode:disabled { opacity: .45; }
.local-episode-download { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 12px; }
.local-episode-download small { color: var(--st-muted); }
.brand-workflow-nav > .wf-top { width: 100%; }
.brand-landing > .brand-workflow-nav { position: relative; z-index: 20; }
:root .brand-landing > .brand-workflow-nav.wf-app { min-height: 0; height: auto; flex: 0 0 auto; overflow: visible; }

/* Two-line episode controls need room for both the number and status. */
:root .wf-app .compact-progress-grid .wf-btn.compact-episode,
:root .pipeline-dialog .analysis-episode-grid .wf-btn {
  height: auto;
  min-height: 56px;
  padding: 9px 4px;
  flex-direction: column;
  gap: 6px;
  line-height: 1.3;
}
:root .wf-app .compact-progress-grid .compact-episode small,
:root .pipeline-dialog .analysis-episode-grid .wf-btn small {
  line-height: 1.35;
}

/* ── Pointer-reactive border light (studio.js feeds --st-mx/--st-my) ── */
:root .wf-app .wf-asset-card::after,
:root .wf-app .wf-project-card::after,
:root .wf-app .local-video-episode-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  padding: 1px;
  border-radius: inherit;
  background: radial-gradient(420px circle at var(--st-mx, 50%) var(--st-my, -20%), rgba(255, 210, 150, 0.55), transparent 42%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: 0;
  transition: opacity var(--st-slow) var(--st-ease);
  pointer-events: none;
}
:root .wf-app .wf-asset-card:hover::after,
:root .wf-app .wf-project-card:hover::after,
:root .wf-app .local-video-episode-card:hover::after {
  opacity: 1;
}

/* ── Pipeline launcher (资产分析 / 剧本分析 / 剧本分集) ── */
:root .wf-app .project-pipeline .wf-toolbar-group {
  gap: 6px;
  padding: 4px;
  border: 1px solid var(--st-line);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.03);
  width: max-content;
}
:root .wf-app .project-pipeline .wf-btn {
  min-height: 32px;
  border-radius: 9px;
}

/* ── Projects ── */
:root .wf-app .wf-project-layout {
  gap: 24px;
}
:root .wf-app .project-add-card {
  position: relative;
  overflow: hidden;
  display: grid;
  place-content: center;
  gap: 14px;
  min-height: 260px;
  border: 1px dashed rgba(243, 180, 108, 0.38);
  border-radius: 20px;
  background:
    radial-gradient(260px 200px at 80% 0%, rgba(246, 178, 96, 0.16), transparent 70%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01)),
    var(--st-solid);
  color: var(--st-gold-1);
  font-size: 15px;
  font-weight: 650;
  letter-spacing: 0.02em;
  box-shadow: var(--st-shadow-2);
  transition: transform var(--st-med) var(--st-spring), border-color var(--st-med) ease, box-shadow var(--st-med) ease, background var(--st-med) ease;
}
:root .wf-app .project-add-card:hover {
  transform: translateY(-3px);
  border-color: rgba(243, 180, 108, 0.75);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.9), 0 0 0 4px rgba(243, 180, 108, 0.06);
}
:root .wf-app .project-add-card svg {
  width: 44px;
  height: 44px;
  padding: 10px;
  border-radius: 14px;
  background: var(--st-grad);
  color: var(--st-accent-ink);
  box-shadow: 0 12px 30px -12px var(--st-accent-glow), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  transition: transform var(--st-slow) var(--st-spring);
  justify-self: center;
}
:root .wf-app .project-add-card:hover svg {
  transform: rotate(-8deg) scale(1.08);
}
:root .wf-app .wf-project-results > .wf-toolbar {
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--st-line);
}
:root .wf-app .wf-project-results > .wf-toolbar > strong {
  color: var(--st-text);
  font-size: 14px;
  font-weight: 650;
}
:root .wf-app .wf-project-results > .wf-toolbar > strong .wf-muted {
  border-radius: 999px;
  background: var(--st-accent-soft);
  color: var(--st-gold-1);
  font-weight: 650;
}
:root .wf-app .wf-grid-projects {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
:root .wf-app .wf-project-card {
  position: relative;
  overflow: hidden;
  min-height: 150px;
  border: 1px solid var(--st-line);
  border-radius: 18px;
  background:
    radial-gradient(320px 160px at 100% 0%, rgba(246, 178, 96, 0.07), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012)),
    var(--st-solid);
  box-shadow: var(--st-shadow-2);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  transition: transform var(--st-med) var(--st-spring), box-shadow var(--st-med) ease, border-color var(--st-med) ease;
}
:root .wf-app .wf-project-card:hover:not(:disabled) {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.13);
  background:
    radial-gradient(320px 160px at 100% 0%, rgba(246, 178, 96, 0.12), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015)),
    var(--st-solid);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.95);
}
:root .wf-app .wf-project-open {
  padding: 20px 52px 18px 20px;
}
:root .wf-app .wf-project-open strong,
:root .wf-app .project-card-details strong {
  color: var(--st-text);
  font-size: 16px;
  font-weight: 650;
  letter-spacing: -0.01em;
}
:root .wf-app .project-card-notes {
  color: var(--st-muted);
  font-size: 12.5px;
  line-height: 1.65;
}
:root .wf-app .project-card-style {
  border-top-color: var(--st-line);
}
:root .wf-app .project-card-style-label {
  color: var(--st-faint);
}
:root .wf-app .project-card-style-value {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 9px;
  border-radius: 999px;
  background: var(--st-accent-soft);
  color: var(--st-gold-1);
  font-weight: 600;
}
:root .wf-app .wf-project-delete {
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  opacity: 0.55;
  transition: opacity var(--st-fast) ease, background var(--st-fast) ease, color var(--st-fast) ease;
}
:root .wf-app .wf-project-card:hover .wf-project-delete {
  opacity: 1;
}

/* ── Asset review: command bar ── */
:root .wf-app .wf-analysis-heading {
  position: sticky;
  top: 74px;
  z-index: 15;
  gap: 10px;
  margin-bottom: 14px;
  padding: 10px;
  border: 1px solid var(--st-line);
  border-radius: 16px;
  background: rgba(12, 14, 19, 0.78);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  box-shadow: 0 20px 40px -30px rgba(0, 0, 0, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
:root .wf-app .wf-analysis-heading > .wf-toolbar-group[role="group"] {
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--st-line);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.25);
}
:root .wf-app .wf-analysis-heading > .wf-toolbar-group[role="group"] .wf-btn {
  --btn-bg: transparent;
  --btn-bg-hover: rgba(255, 255, 255, 0.06);
  --btn-border: transparent;
  --btn-border-hover: transparent;
  --btn-text: var(--st-muted);
  min-height: 30px;
  padding: 0 12px;
  border-radius: 9px;
  box-shadow: none;
  font-weight: 550;
  text-shadow: none;
  filter: none;
}
:root .wf-app .wf-analysis-heading > .wf-toolbar-group[role="group"] .wf-btn:hover:not(:disabled) {
  --btn-text: var(--st-text);
  transform: none;
  box-shadow: none;
}
:root .wf-app .wf-analysis-heading > .wf-toolbar-group[role="group"] .wf-btn.primary {
  --btn-bg: rgba(243, 180, 108, 0.16);
  --btn-bg-hover: rgba(243, 180, 108, 0.2);
  --btn-text: var(--st-gold-1);
  box-shadow: inset 0 0 0 1px rgba(243, 180, 108, 0.35);
}
:root .wf-app .wf-analysis-heading > .wf-toolbar-group[role="group"] .wf-btn.primary::after {
  content: none;
}
:root .wf-app .wf-analysis-heading .asset-name-search {
  flex: 1 1 200px;
  max-width: 320px;
  padding-left: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238f8b83' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 12px center;
  background-size: 16px;
}
:root .wf-app .wf-btn.review-rejected.has-opinions {
  --btn-text: #ffb8c2;
  --btn-border: rgba(255, 123, 139, 0.3);
}
:root .wf-app .wf-btn.review-rejected[aria-pressed="true"] {
  --btn-bg: rgba(255, 123, 139, 0.16);
  --btn-border: rgba(255, 123, 139, 0.55);
}
:root .wf-app .asset-export-menu > summary.wf-btn {
  list-style: none;
}
:root .wf-app .asset-export-menu > summary.wf-btn::-webkit-details-marker {
  display: none;
}
:root .wf-app .asset-export-panel {
  border: 1px solid var(--st-line-2);
  border-radius: 14px;
  background: rgba(18, 20, 27, 0.96);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: var(--st-shadow-3);
  animation: st-pop-in 200ms var(--st-spring) both;
}
:root .wf-app .asset-export-panel button,
:root .wf-app .asset-export-panel summary {
  border-radius: 9px;
  transition: background var(--st-fast) ease, color var(--st-fast) ease;
}
:root .wf-app .asset-export-panel button:hover,
:root .wf-app .asset-export-panel summary:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--st-text);
}
:root .wf-app .asset-review-link {
  border: 1px solid var(--st-line-2);
  border-radius: 14px;
  background: var(--st-surface-1);
}

/* ── Asset review: action toolbar ── */
:root .wf-app section > .wf-toolbar:has(.studio-add) {
  justify-content: space-between;
  padding: 12px;
  border: 1px solid var(--st-line);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
}
:root .wf-app .asset-filter-summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid rgba(243, 180, 108, 0.22);
  border-radius: 999px;
  background: rgba(243, 180, 108, 0.07);
  color: var(--st-gold-1) !important;
  animation: st-fade-up 240ms var(--st-ease) both;
}

/* ── Asset cards ── */
:root .wf-app .wf-asset-grid {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 18px;
}
:root .wf-app .wf-asset-card {
  position: relative;
  border: 1px solid var(--st-line);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01)), var(--st-solid);
  box-shadow: var(--st-shadow-2);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  transition: transform var(--st-med) var(--st-spring), box-shadow var(--st-med) ease, border-color var(--st-med) ease;
}
:root .wf-app .wf-asset-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.13);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 34px 70px -34px rgba(0, 0, 0, 0.95);
}
:root .wf-app .wf-asset-card[data-selected="true"] {
  border-color: rgba(243, 180, 108, 0.2);
}
:root .wf-app .wf-asset-card[data-selected="false"] .wf-asset-media {
  filter: saturate(0.55) brightness(0.82);
}
:root .wf-app .wf-asset-card[data-status="失败"] {
  border-color: rgba(255, 123, 139, 0.4);
}
:root .wf-app .wf-asset-media {
  border-bottom: 1px solid var(--st-line);
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(255, 255, 255, 0.05), transparent 60%),
    linear-gradient(180deg, #0d0f14, #090a0e);
}
:root .wf-app .wf-asset-media img {
  transition: transform 700ms var(--st-ease), filter var(--st-med) ease;
}
:root .wf-app .wf-asset-card:hover .wf-asset-media img {
  transform: scale(1.025);
}
:root .wf-app .wf-asset-check {
  top: 12px;
  left: 12px;
  z-index: 3;
  width: 20px;
  height: 20px;
  border-radius: 7px;
  background-color: rgba(8, 9, 13, 0.55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
:root .wf-app .wf-asset-preview .wf-empty-frame {
  color: var(--st-text-2);
  background:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px) 0 0 / 22px 22px,
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px) 0 0 / 22px 22px,
    radial-gradient(80% 70% at 50% 40%, rgba(246, 178, 96, 0.08), transparent 70%);
}
:root .wf-app .wf-asset-preview .wf-empty-frame::before {
  border: 1px dashed rgba(255, 255, 255, 0.13);
  border-radius: 14px;
}
:root .wf-app .wf-empty-frame > span {
  display: grid;
  justify-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 650;
  letter-spacing: 0.01em;
  color: var(--st-text-2);
}
:root .wf-app .wf-asset-card[data-kind] .wf-empty-frame > span::before {
  content: "";
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: var(--st-kind-icon) center / 20px no-repeat, linear-gradient(160deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 10px 24px -14px rgba(0, 0, 0, 0.9);
}
:root .wf-app .wf-asset-card[data-kind="角色"] {
  --st-kind-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b7a3ff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21a8 8 0 0 1 16 0'/%3E%3C/svg%3E");
}
:root .wf-app .wf-asset-card[data-kind="场景"] {
  --st-kind-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2355dccb' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3 20 6-10 4 6 3-4 5 8z'/%3E%3Ccircle cx='17' cy='6' r='2'/%3E%3C/svg%3E");
}
:root .wf-app .wf-asset-card[data-kind="道具"] {
  --st-kind-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff92b4' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 8 12 3 3 8v8l9 5 9-5z'/%3E%3Cpath d='m3 8 9 5 9-5'/%3E%3Cpath d='M12 13v8'/%3E%3C/svg%3E");
}
:root .wf-app .wf-empty-frame small {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 0;
  padding: 4px 10px;
  border: 1px solid var(--st-line-2);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.3);
  color: var(--st-muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
}
:root .wf-app .wf-asset-card[data-status="生成中"] .wf-asset-media::after,
:root .wf-app .wf-asset-card[data-status="待母图"] .wf-asset-media::after,
:root .wf-app .wf-asset-card[data-status="提示词准备中"] .wf-asset-media::after {
  content: "生成中";
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: end center;
  padding-bottom: 18px;
  background:
    linear-gradient(105deg, transparent 30%, rgba(255, 220, 170, 0.16) 50%, transparent 70%) 0 0 / 220% 100% no-repeat,
    rgba(7, 8, 11, 0.42);
  color: var(--st-gold-1);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  animation: st-sheen 1.8s var(--st-ease-in-out) infinite;
  pointer-events: none;
}
:root .wf-app .wf-asset-card[data-status="待母图"] .wf-asset-media::after {
  content: "等待母图";
  color: var(--st-blue);
}
:root .wf-app .wf-asset-card[data-status="提示词准备中"] .wf-asset-media::after {
  content: "提示词准备中";
  color: var(--st-text-2);
}
:root .wf-app .wf-asset-body {
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  padding: 16px 16px 18px;
}
:root .wf-app .local-asset-action-row {
  flex-wrap: wrap;
  row-gap: 10px;
}
:root .wf-app .local-asset-action-buttons {
  flex-wrap: wrap;
  flex-shrink: 1;
  justify-content: flex-end;
}
:root .wf-app .local-role-hd-help {
  width: 22px;
  height: 22px;
  border-color: rgba(147, 182, 255, 0.35);
  background: rgba(147, 182, 255, 0.08);
  color: var(--st-blue);
  font-weight: 700;
}
:root .wf-app .wf-asset-title-row h3 input,
:root .wf-app .local-asset-name-row > h3 input {
  padding: 4px 6px !important;
  border-radius: 8px !important;
  color: var(--st-text) !important;
  font-size: 17px !important;
  font-weight: 650 !important;
  letter-spacing: -0.01em;
  box-shadow: none !important;
  transition: background var(--st-fast) ease, box-shadow var(--st-fast) ease;
}
:root .wf-app .local-asset-name-row > h3 input:hover {
  background: rgba(255, 255, 255, 0.04) !important;
}
:root .wf-app .local-asset-name-row > h3 input:focus {
  background: rgba(0, 0, 0, 0.3) !important;
  box-shadow: 0 0 0 1px rgba(243, 180, 108, 0.45) !important;
}
:root .wf-app .local-asset-quality {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 9px;
  border: 1px solid var(--st-line-2);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.25);
  color: var(--st-text);
  font-family: var(--st-mono);
  font-size: 11.5px;
  font-weight: 700;
}
:root .wf-app .local-asset-quality small {
  color: var(--st-faint);
  font-family: var(--st-font);
  font-weight: 600;
}
:root .wf-app .wf-tags {
  gap: 6px;
  align-items: center;
}
:root .wf-app .wf-tags > .wf-btn.danger {
  order: 3;
  --btn-bg: transparent;
  --btn-border: transparent;
  --btn-text: var(--st-faint);
  width: 28px;
  min-height: 28px;
  height: 28px;
  padding: 0;
  border-radius: 9px;
  box-shadow: none;
}
:root .wf-app .wf-tags > .wf-btn.danger:hover:not(:disabled) {
  --btn-bg-hover: rgba(255, 123, 139, 0.14);
  --btn-border-hover: rgba(255, 123, 139, 0.35);
  --btn-text: #ffb8c2;
  transform: none;
}
:root .wf-app .local-asset-action-buttons {
  gap: 6px;
}
:root .wf-app .local-asset-action-buttons .wf-asset-image-action {
  height: 32px !important;
  min-height: 32px !important;
  padding: 0 13px !important;
  border-radius: 10px !important;
  font-size: 12.5px !important;
}
:root .wf-app .local-asset-action-buttons .wf-asset-image-action.primary {
  padding: 0 15px !important;
}
:root .wf-app .wf-desc {
  color: var(--st-muted);
  font-size: 12.5px;
  line-height: 1.7;
}
:root .wf-app .wf-prompt-box {
  gap: 6px;
}
:root .wf-app .wf-prompt-box > .wf-muted {
  color: var(--st-faint);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.14em;
}
:root .wf-app .wf-prompt-box textarea {
  min-height: 84px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.28);
  color: var(--st-text-2);
  font-size: 12.5px;
  line-height: 1.7;
}
:root .wf-app .wf-prompt-box textarea::-webkit-scrollbar-track {
  background: transparent;
}
:root .wf-app .wf-prompt-box textarea::-webkit-scrollbar-thumb {
  border: 3px solid transparent;
  background: rgba(255, 255, 255, 0.16) padding-box;
}

/* Image carousel controls inside cards and previews */
:root .wf-card-arrow,
:root .wf-image-dots {
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
:root .wf-card-arrow {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  background: rgba(8, 9, 13, 0.55);
  opacity: 0;
  transition: opacity var(--st-med) ease, transform var(--st-med) var(--st-spring), background var(--st-fast) ease;
}
:root .wf-asset-media:hover .wf-card-arrow,
:root .wf-card-arrow:focus-visible {
  opacity: 1;
}
:root .wf-card-arrow:hover {
  background: rgba(8, 9, 13, 0.8);
  transform: translateY(-50%) scale(1.06);
}
:root .wf-image-dots {
  border-radius: 999px;
  background: rgba(8, 9, 13, 0.5);
}
:root .wf-image-dots button[aria-current="true"] span {
  width: 16px;
  border-radius: 999px;
  background: var(--st-gold-1);
}
:root .wf-image-dots span {
  transition: width var(--st-med) var(--st-spring), background var(--st-fast) ease;
}
:root .wf-card-select,
:root .wf-preview-selected {
  border-radius: 999px;
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(8, 9, 13, 0.6);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-weight: 600;
}
:root .wf-card-select.selected,
:root .wf-preview-selected {
  border-color: rgba(90, 214, 168, 0.5);
  background: rgba(16, 70, 52, 0.75);
  color: #c8ffe9;
}

/* ── 筛选 panel ── */
:root .asset-filter {
  position: relative;
}
:root .wf-btn.asset-filter-trigger {
  gap: 8px;
  padding: 0 12px;
}
:root .wf-btn.asset-filter-trigger.is-active {
  --btn-bg: rgba(243, 180, 108, 0.12);
  --btn-bg-hover: rgba(243, 180, 108, 0.18);
  --btn-border: rgba(243, 180, 108, 0.42);
  --btn-border-hover: rgba(243, 180, 108, 0.65);
  --btn-text: var(--st-gold-1);
}
:root .asset-filter-chips {
  display: inline-flex;
  gap: 4px;
}
:root .asset-filter-chip {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 7px;
  border-radius: 999px;
  background: rgba(243, 180, 108, 0.16);
  color: var(--st-gold-1);
  font-size: 11px;
  font-weight: 650;
  animation: st-pop 260ms var(--st-spring) both;
}
:root .asset-filter-count {
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--st-grad);
  color: var(--st-accent-ink);
  font-size: 10.5px;
  font-weight: 800;
}
:root .asset-filter-panel {
  position: fixed;
  z-index: 1200;
  display: grid;
  gap: 4px;
  max-height: calc(100dvh - 24px);
  overflow: auto;
  padding: 6px;
  border: 1px solid var(--st-line-2);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015)), rgba(16, 18, 24, 0.97);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  backdrop-filter: blur(22px) saturate(160%);
  color: var(--st-text);
  box-shadow: var(--st-shadow-3);
  transform-origin: top left;
  animation: st-pop-in 240ms var(--st-spring) both;
}
:root .asset-filter-panel[data-side="top"] {
  transform-origin: bottom left;
}
:root .asset-filter-panel.is-sheet {
  left: 10px;
  right: 10px;
  bottom: 10px;
  top: auto;
  transform-origin: bottom center;
  animation-name: st-sheet-in;
}
:root .asset-filter-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 10px 6px 14px;
}
:root .asset-filter-head strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
}
:root .asset-filter-head span {
  color: var(--st-muted);
  font-size: 12px;
}
:root .asset-filter-head > div {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
:root .asset-filter-close {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--st-line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  color: var(--st-text-2);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: background var(--st-fast) ease, transform var(--st-med) var(--st-spring);
}
:root .asset-filter-close:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: rotate(90deg);
}
:root .asset-filter-section {
  display: grid;
  gap: 10px;
  padding: 12px 14px 14px;
  border: 1px solid var(--st-line);
  border-radius: 15px;
  background: rgba(0, 0, 0, 0.22);
}
:root .asset-filter-label {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 12px;
}
:root .asset-filter-panel.is-sheet .asset-filter-label small {
  flex-basis: 100%;
  text-align: left;
}
:root .asset-filter-label > span {
  color: var(--st-text);
  font-size: 13px;
  font-weight: 650;
}
:root .asset-filter-label em {
  color: var(--st-muted);
  font-style: normal;
  font-weight: 500;
}
:root .asset-filter-label small {
  color: var(--st-muted);
  font-size: 11.5px;
  text-align: right;
}
:root .asset-filter-segment {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--st-line);
  border-radius: 13px;
  background: rgba(0, 0, 0, 0.3);
}
:root .asset-filter-option {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--st-muted);
  font: 600 13px/1 var(--st-font);
  cursor: pointer;
  transition: background var(--st-med) var(--st-ease), color var(--st-fast) ease, box-shadow var(--st-med) ease, transform var(--st-med) var(--st-spring);
}
:root .asset-filter-option small {
  min-width: 22px;
  padding: 3px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: inherit;
  font-size: 11px;
  font-weight: 700;
}
:root .asset-filter-option:hover {
  color: var(--st-text);
  background: rgba(255, 255, 255, 0.05);
}
:root .asset-filter-option:active {
  transform: scale(0.97);
}
:root .asset-filter-option.is-selected {
  background: var(--st-grad);
  color: var(--st-accent-ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 8px 20px -10px var(--st-accent-glow);
}
:root .asset-filter-option.is-selected small {
  background: rgba(27, 18, 7, 0.16);
}
:root .asset-filter-option:focus-visible,
:root .asset-filter-episode:focus-visible {
  outline: none;
  box-shadow: var(--st-ring);
}
:root .asset-filter-note {
  margin: 0;
  color: var(--st-muted);
  font-size: 12px;
  line-height: 1.6;
}
:root .asset-filter-paging {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--st-text-2);
  font-size: 12.5px;
  font-weight: 600;
}
:root .asset-filter-paging .wf-btn {
  width: auto;
  min-width: 76px;
  min-height: 40px;
  padding: 8px 14px;
  white-space: nowrap;
  flex-shrink: 0;
}
/* Preserve the original native episode calendar and its 50-episode pages. */
:root .wf-episode-dialog { width: min(620px, calc(100vw - 28px)); max-height: calc(100dvh - 28px); box-sizing: border-box; overflow: auto; }
:root .wf-episode-dialog .wf-episode-paging .wf-btn { min-width: 40px; min-height: 40px; padding: 8px; }
:root .wf-episode-dialog .wf-episode-day { min-width: 0; min-height: 44px; }
:root .wf-episode-dialog .asset-filter-section { margin-bottom: 16px; }
:root .asset-filter-episodes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(42px, 1fr));
  gap: 6px;
}
:root .asset-filter-episode {
  position: relative;
  min-height: 38px;
  border: 1px solid var(--st-line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--st-text-2);
  font: 650 13px/1 var(--st-font);
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  transition: background var(--st-fast) ease, border-color var(--st-fast) ease, color var(--st-fast) ease, transform var(--st-med) var(--st-spring);
}
:root .asset-filter-episode:hover {
  border-color: rgba(243, 180, 108, 0.45);
  color: var(--st-text);
  transform: translateY(-1px);
}
:root .asset-filter-episode.in-range {
  border-color: rgba(243, 180, 108, 0.35);
  background: rgba(243, 180, 108, 0.16);
  color: var(--st-gold-1);
}
:root .asset-filter-episode.endpoint {
  border-color: transparent;
  background: var(--st-grad);
  color: var(--st-accent-ink);
  box-shadow: 0 8px 18px -10px var(--st-accent-glow), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
:root .asset-filter-episode.is-anchor {
  animation: st-pulse-ring 1.4s var(--st-ease) infinite;
}
:root .asset-filter-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 6px 4px;
}
:root .asset-filter-foot-actions {
  display: flex;
  gap: 8px;
}

/* ── Video canvas ── */
:root .wf-app .wf-episode-canvas {
  gap: 16px;
}
:root .wf-app .wf-side h4 {
  color: var(--st-faint);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
}
:root .wf-app .wf-clip-item {
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: var(--st-text-2);
  transition: background var(--st-fast) ease, border-color var(--st-fast) ease, color var(--st-fast) ease;
}
:root .wf-app .wf-clip-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--st-text);
}
:root .wf-app .wf-clip-item.active {
  border-color: rgba(243, 180, 108, 0.4);
  background: linear-gradient(90deg, rgba(243, 180, 108, 0.16), rgba(243, 180, 108, 0.04));
  color: var(--st-gold-1);
  box-shadow: inset 3px 0 0 var(--st-gold-2);
}
:root .wf-app .wf-segment-choice {
  border-radius: 14px;
  border-color: var(--st-line);
  background: rgba(255, 255, 255, 0.03);
  transition: border-color var(--st-fast) ease, background var(--st-fast) ease, transform var(--st-med) var(--st-spring);
}
:root .wf-app .wf-segment-choice:hover {
  transform: translateY(-1px);
  border-color: var(--st-line-3);
}
:root .wf-app .wf-segment-choice.active {
  border-color: rgba(243, 180, 108, 0.55);
  background: linear-gradient(160deg, rgba(243, 180, 108, 0.16), rgba(243, 180, 108, 0.04));
  box-shadow: 0 10px 26px -18px var(--st-accent-glow);
}
:root .wf-app .wf-segment-choice strong {
  font-variant-numeric: tabular-nums;
}
:root .wf-app .wf-directory {
  color: var(--st-gold-1);
  font-size: 11.5px;
  letter-spacing: 0.04em;
}
:root .wf-app .wf-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid rgba(90, 214, 168, 0.3);
  border-radius: 999px;
  background: rgba(90, 214, 168, 0.08);
  color: #a5f0d3;
  font-size: 11.5px;
  font-weight: 600;
}
:root .wf-app .wf-column-heading span {
  color: var(--st-gold-2);
  font-family: var(--st-mono);
  font-weight: 700;
}
:root .wf-app .wf-reference-item {
  border: 1px solid var(--st-line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  transition: border-color var(--st-fast) ease, background var(--st-fast) ease;
}
:root .wf-app .wf-reference-item:hover {
  border-color: var(--st-line-3);
  background: rgba(255, 255, 255, 0.05);
}
:root .wf-app .wf-canvas-thumb {
  border-radius: 10px;
  overflow: hidden;
}
:root .wf-app .wf-reference-kind {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 7px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 700;
}
:root .wf-app .wf-upload-btn {
  border: 1px dashed rgba(243, 180, 108, 0.35);
  border-radius: 12px;
  background: rgba(243, 180, 108, 0.05);
  color: var(--st-gold-1);
  transition: background var(--st-fast) ease, border-color var(--st-fast) ease;
}
:root .wf-app .wf-upload-btn:hover {
  border-color: rgba(243, 180, 108, 0.7);
  background: rgba(243, 180, 108, 0.1);
}
:root .wf-app .wf-video-prompt {
  border-radius: 14px;
  line-height: 1.75;
}
:root .wf-app .wf-model-option {
  border: 1px solid var(--st-line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  transition: border-color var(--st-fast) ease, background var(--st-fast) ease;
}
:root .wf-app .wf-model-option:hover {
  border-color: var(--st-line-3);
}
:root .wf-app .wf-model-option.active {
  border-color: rgba(243, 180, 108, 0.55);
  background: linear-gradient(160deg, rgba(243, 180, 108, 0.14), rgba(243, 180, 108, 0.03));
}
:root .wf-app .wf-model-route {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
  flex: 0 0 auto;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  height: auto;
  margin: 20px 0 0;
  padding: 12px 14px;
  gap: 12px 20px;
  border: 1px solid var(--st-line);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.22);
}
:root .wf-app .wf-model-route > div { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 12px; min-width: 0; }
:root .wf-app .wf-model-route dt { margin: 0; color: var(--st-muted); line-height: 1.6; }
:root .wf-app .wf-model-route dd { margin: 0; color: var(--st-text); text-align: right; line-height: 1.6; font-weight: 650; overflow-wrap: anywhere; }
/* Higher specificity than the studio's generic red image-failure treatment. */
:root .wf-app .wf-batch-progress .wf-image-notice.is-http400,
:root .local-role-hd-dialog .wf-image-notice.is-http400,
:root .local-batch-hd-dialog .wf-image-notice.is-http400 {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  min-width: 0;
  box-sizing: border-box;
  padding: 12px 14px;
  border: 1px solid #dbc16d;
  border-radius: 12px;
  border-color: #dbc16d;
  background: #fff1bd;
  color: #665019;
}
:root .wf-app .wf-image-notice.is-http400 > span { flex: 1 1 100%; }
:root .local-image-error-detail { flex: 1 1 100%; min-width: 0; max-width: 100%; }
:root .local-image-error-detail summary { cursor: pointer; }
:root .local-image-error-detail p { margin: 6px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
:root .wf-app .wf-image-notice.is-http400 .wf-btn {
  --btn-bg: #fffae8;
  --btn-border: #c9ad59;
  --btn-text: #614a12;
  color: #614a12;
  background: #fffae8;
  border-color: #c9ad59;
  text-shadow: none;
  box-shadow: none;
}
:root .wf-app .wf-image-notice.is-http400 .wf-btn:disabled { opacity: .7; }
:root .wf-app .wf-model-column .wf-video-generate-footer { flex: 0 0 auto; }
:root .wf-app .wf-video-generate-preview {
  border-radius: 12px;
  background: var(--st-grad);
  color: var(--st-accent-ink);
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 12px 28px -14px var(--st-accent-glow);
  transition: transform var(--st-med) var(--st-spring), filter var(--st-fast) ease, box-shadow var(--st-med) ease;
}
:root .wf-app .wf-video-generate-preview:hover:not(:disabled) {
  transform: translateY(-1px);
  filter: brightness(1.05);
}
:root .wf-app .wf-video-generate-preview:disabled {
  opacity: 0.45;
  filter: grayscale(0.4);
}
:root .wf-app .canvas-operation-notice:not(:empty) {
  border: 1px solid var(--st-line-2);
  border-radius: 12px;
  background: var(--st-surface-1);
}

/* ── Results ── */
:root .wf-app .local-video-episode-grid {
  gap: 16px;
}
:root .wf-app .local-video-episode-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--st-line);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01)), var(--st-solid);
  box-shadow: var(--st-shadow-2);
  transition: transform var(--st-med) var(--st-spring), box-shadow var(--st-med) ease, border-color var(--st-med) ease;
}
:root .wf-app .local-video-episode-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.13);
  box-shadow: 0 30px 60px -32px rgba(0, 0, 0, 0.95);
}
:root .wf-app .local-video-episode-cover {
  border: 0;
  border-radius: 14px;
  background:
    radial-gradient(90% 80% at 50% 0%, rgba(246, 178, 96, 0.14), transparent 70%),
    linear-gradient(180deg, #14161c, #0c0d11);
  box-shadow: inset 0 0 0 1px var(--st-line);
}
:root .wf-app .local-video-episode-cover strong {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
:root .wf-app .local-video-episode-open {
  color: var(--st-gold-1);
  font-weight: 600;
}
:root .wf-app .local-video-episode-open span {
  display: inline-block;
  transition: transform var(--st-med) var(--st-spring);
}
:root .wf-app .local-video-episode-card:hover .local-video-episode-open span {
  transform: translateX(4px);
}

/* ── Script ── */
:root .wf-app .wf-script-dropzone {
  padding: 22px;
}
:root .wf-app .wf-script-drop-hint {
  color: var(--st-muted);
}
:root .wf-app .wf-form label {
  color: var(--st-text-2);
  font-weight: 550;
}
:root .wf-app .wf-form textarea {
  min-height: 260px;
  padding: 14px 16px;
  border-radius: 14px;
  line-height: 1.8;
}

/* src/studio/dialogs.css */
/* Dialogs and overlays: one glass language for native <dialog>, pipeline overlays and extensions. */
:root dialog::backdrop {
  background: rgba(4, 5, 8, 0.6);
  -webkit-backdrop-filter: blur(10px) saturate(120%);
  backdrop-filter: blur(10px) saturate(120%);
  animation: st-fade-in 220ms ease both;
}
:root dialog[open] {
  animation: st-dialog-in 300ms var(--st-spring) both;
}
:root .pipeline-overlay {
  background: rgba(4, 5, 8, 0.6) !important;
  -webkit-backdrop-filter: blur(10px) saturate(120%);
  backdrop-filter: blur(10px) saturate(120%);
  animation: st-fade-in 200ms ease both;
}
:root .pipeline-dialog,
:root .wf-panel.pipeline-dialog {
  border: 1px solid var(--st-line-2);
  border-radius: 22px;
  background:
    radial-gradient(600px 240px at 0% 0%, rgba(246, 178, 96, 0.08), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012)),
    #12141a;
  color: var(--st-text);
  box-shadow: var(--st-shadow-3);
  animation: st-dialog-in 300ms var(--st-spring) both;
}
:root .pipeline-dialog h2 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
:root .local-video-eyebrow,
:root .ma-eyebrow,
:root .iu-eyebrow {
  color: var(--st-gold-2) !important;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.22em;
}
:root .local-video-dialog .wf-btn.primary {
  background: var(--st-grad) !important;
  color: var(--st-accent-ink) !important;
  border: 1px solid transparent !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 10px 26px -12px var(--st-accent-glow) !important;
}
:root .local-video-dialog .wf-btn.primary:hover:not(:disabled) {
  background: var(--st-grad) !important;
  filter: brightness(1.06);
}
:root .local-video-dialog .local-video-seg[aria-pressed="true"] {
  background: var(--st-grad) !important;
  color: var(--st-accent-ink) !important;
  border-color: transparent !important;
}
:root .local-duration-list { display: grid; gap: 8px; max-height: 220px; overflow: auto; }
:root .local-duration-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 40px; padding: 6px 10px; border: 1px solid var(--st-line); border-radius: 12px; background: rgba(255, 255, 255, 0.03); }
:root .local-duration-stepper { display: inline-flex; align-items: center; gap: 6px; }
:root .local-duration-stepper .wf-btn { width: 32px; min-width: 32px; padding: 0; }
:root .local-duration-stepper strong { min-width: 3.2em; text-align: center; font-variant-numeric: tabular-nums; }
:root .local-duration-stepper small { color: var(--st-muted, rgba(255, 255, 255, 0.62)); }
:root .local-role-hd-dialog .local-role-hd-button,
:root .wf-app .local-role-hd-button {
  background: linear-gradient(135deg, #a9c4ff, #6f8cff 60%, #5a6ff0) !important;
  color: #0b1230 !important;
  border: 1px solid transparent !important;
  font-weight: 700 !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 10px 24px -12px rgba(111, 140, 255, 0.75) !important;
}
:root .local-role-hd-dialog .local-role-hd-button:disabled,
:root .wf-app .local-role-hd-button:disabled {
  background: #2a2d36 !important;
  color: #7f8491 !important;
  box-shadow: none !important;
}
:root .local-role-hd-upstream {
  display: grid;
  gap: 8px;
  margin: 14px 0 4px;
  padding: 14px;
  border: 1px solid var(--st-line-2);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.24);
}
:root .local-role-hd-upstream > span {
  color: var(--st-text);
  font-size: 13px;
  font-weight: 650;
}
:root .local-role-hd-upstream select {
  width: 100%;
}
:root .local-role-hd-upstream small {
  color: var(--st-muted);
  font-size: 12px;
  line-height: 1.6;
}
:root .local-role-hd-tooltip[popover] {
  border: 1px solid var(--st-line-2) !important;
  border-radius: 16px !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015)), #14161d !important;
  box-shadow: var(--st-shadow-3) !important;
}

/* ── Account dialog: dark, sectioned, consistent with the workspace ── */
:root .wf-app dialog.account-manager,
:root .wf-app .account-manager {
  --text: var(--st-text);
  --muted: var(--st-muted);
  --line: var(--st-line-2);
  --bg-elev: rgba(255, 255, 255, 0.035);
  color-scheme: dark;
  width: min(880px, calc(100vw - 28px));
  max-height: min(90dvh, 980px);
  padding: 0 0 26px;
  border: 1px solid var(--st-line-2);
  border-radius: 24px;
  background:
    radial-gradient(700px 260px at 0% 0%, rgba(246, 178, 96, 0.09), transparent 70%),
    radial-gradient(600px 260px at 100% 0%, rgba(118, 142, 255, 0.07), transparent 70%),
    #101217;
  color: var(--st-text);
  box-shadow: var(--st-shadow-3);
}
:root .wf-app .account-manager > * {
  margin-left: 26px;
  margin-right: 26px;
}
:root .wf-app .account-manager .account-manager-heading {
  position: sticky;
  top: 0;
  z-index: 5;
  margin: 0 0 18px;
  padding: 22px 26px 16px;
  border-bottom: 1px solid var(--st-line);
  background: rgba(16, 18, 23, 0.86);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}
:root .wf-app .account-manager h2 {
  margin: 0;
  color: var(--st-text);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
:root .wf-app .account-manager h3 {
  margin: 0 0 6px;
  color: var(--st-text);
  font-size: 15px;
  font-weight: 650;
}
:root .wf-app .account-manager p,
:root .wf-app .account-manager label {
  color: var(--st-muted);
}
:root .wf-app .account-manager small {
  color: var(--st-faint);
}
:root .wf-app .account-manager > form,
:root .wf-app .account-manager > .local-video-source-panel,
:root .wf-app .account-manager > .ma-account-entry,
:root .wf-app .account-manager > .admin-warnings,
:root .wf-app .account-manager > .account-list:not(:empty) {
  margin-bottom: 14px;
  padding: 18px 20px;
  border: 1px solid var(--st-line);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}
:root .wf-app .account-manager .local-video-account-card {
  border-color: var(--st-line);
}
:root .wf-app .account-manager .local-video-source-panel strong {
  color: var(--st-text);
}
:root .wf-app .account-manager .local-video-source-panel .local-video-account-identity {
  color: var(--st-muted);
}
:root .wf-app .account-manager > form + form {
  margin-top: 0;
}
:root .wf-app .account-manager .wf-btn {
  --btn-bg: rgba(255, 255, 255, 0.05);
  --btn-bg-hover: rgba(255, 255, 255, 0.09);
  --btn-border: rgba(255, 255, 255, 0.11);
  --btn-border-hover: rgba(255, 255, 255, 0.2);
  --btn-text: var(--st-text);
  background: var(--btn-bg);
  border: 1px solid var(--btn-border);
  color: var(--btn-text);
  opacity: 1;
}
:root .wf-app .account-manager .wf-btn:hover:not(:disabled) {
  background: var(--btn-bg-hover);
  border-color: var(--btn-border-hover);
  color: var(--btn-text);
}
:root .wf-app .account-manager .wf-btn.primary,
:root .wf-app .account-manager .wf-btn.primary:hover:not(:disabled) {
  --btn-bg: var(--st-grad);
  --btn-bg-hover: var(--st-grad);
  --btn-border: transparent;
  --btn-border-hover: transparent;
  --btn-text: var(--st-accent-ink);
}
:root .wf-app .account-manager .wf-btn.ghost {
  --btn-bg: transparent;
  --btn-border: rgba(255, 255, 255, 0.1);
}
:root .wf-app .account-manager .wf-btn.danger,
:root .wf-app .account-manager .wf-btn.danger:hover:not(:disabled) {
  --btn-bg: rgba(255, 123, 139, 0.1);
  --btn-bg-hover: rgba(255, 123, 139, 0.18);
  --btn-border: rgba(255, 123, 139, 0.3);
  --btn-text: #ffb8c2;
}
:root .wf-app .account-manager .wf-btn:disabled {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.06);
  color: var(--st-faint);
  opacity: 0.7;
}
:root .wf-app .account-manager input:not([type="checkbox"]):not([type="radio"]),
:root .wf-app .account-manager select,
:root .wf-app .account-manager textarea {
  min-height: 38px;
  border: 1px solid var(--st-line-2);
  border-radius: 10px;
  background-color: var(--st-inset);
  color: var(--st-text);
}
:root .wf-app .account-manager input::placeholder,
:root .wf-app .account-manager textarea::placeholder {
  color: var(--st-faint);
}
:root .wf-app .account-manager input:focus-visible,
:root .wf-app .account-manager select:focus-visible,
:root .wf-app .account-manager textarea:focus-visible {
  outline: none;
  border-color: rgba(243, 180, 108, 0.6);
  box-shadow: 0 0 0 3px rgba(243, 180, 108, 0.16);
}
:root .wf-app .account-manager .admin-warnings {
  border-color: rgba(251, 193, 94, 0.22);
  background: linear-gradient(90deg, rgba(251, 193, 94, 0.08), rgba(255, 255, 255, 0.015));
}
:root .wf-app .account-manager .admin-warnings h3,
:root .wf-app .account-manager .admin-warning-item b {
  color: #ffd99a;
}
:root .wf-app .account-manager .admin-warnings p,
:root .wf-app .account-manager .admin-warnings small,
:root .wf-app .account-manager .admin-warning-records header span {
  color: var(--st-muted);
}
:root .wf-app .account-manager .admin-warnings-settings {
  background: rgba(0, 0, 0, 0.22);
}
:root .wf-app .account-manager .admin-warning-records article,
:root .wf-app .account-manager .admin-warning-item {
  border-color: var(--st-line);
}
:root .wf-app .account-manager .ma-account-entry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
:root .wf-app .account-manager .ma-account-entry p {
  color: var(--st-muted);
}
:root .wf-app .account-manager .ma-account-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
:root .wf-app .account-manager .account-list {
  display: grid;
  gap: 8px;
}

/* ── Model API manager & usage (extension dialogs) ── */
:root .model-api-manager {
  --ma-accent: var(--st-gold-2);
  border: 1px solid var(--st-line-2);
  border-radius: 24px;
  background:
    radial-gradient(700px 260px at 0% 0%, rgba(246, 178, 96, 0.09), transparent 70%),
    #101217;
  color: var(--st-text);
  box-shadow: var(--st-shadow-3);
}
:root .model-api-manager .ma-heading h2 {
  color: var(--st-text);
}
:root .model-api-manager .ma-heading p,
:root .model-api-manager .ma-note,
:root .model-api-manager .ma-list-heading p {
  color: var(--st-muted);
}
:root .model-api-manager .ma-close {
  border-color: var(--st-line-2);
  background: rgba(255, 255, 255, 0.04);
  color: var(--st-text-2);
  transition: transform var(--st-med) var(--st-spring), background var(--st-fast) ease;
}
:root .model-api-manager .ma-close:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: rotate(90deg);
}
:root .model-api-manager .ma-default-summary {
  border-color: rgba(243, 180, 108, 0.26);
  background: linear-gradient(115deg, rgba(243, 180, 108, 0.12), rgba(243, 180, 108, 0.03));
}
:root .model-api-manager .ma-default-icon {
  background: rgba(243, 180, 108, 0.16);
  color: var(--st-gold-1);
}
:root .model-api-manager .ma-default-summary small,
:root .model-api-manager .ma-default-summary div > span {
  color: var(--st-muted);
}
:root .model-api-manager .ma-tabs {
  border-bottom-color: var(--st-line);
}
:root .model-api-manager .ma-tab {
  color: var(--st-muted);
  transition: color var(--st-fast) ease, border-color var(--st-fast) ease;
}
:root .model-api-manager .ma-tab:hover {
  color: var(--st-text);
}
:root .model-api-manager .ma-tab.active {
  color: var(--st-gold-1);
  border-bottom-color: var(--st-gold-2);
}
:root .model-api-manager .ma-button {
  border-color: var(--st-line-2);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--st-text);
  font-weight: 550;
  transition: background var(--st-fast) ease, border-color var(--st-fast) ease, transform var(--st-med) var(--st-spring);
}
:root .model-api-manager .ma-button:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.085);
  border-color: var(--st-line-3);
  transform: translateY(-1px);
}
:root .model-api-manager .ma-button.primary {
  border-color: transparent;
  background: var(--st-grad);
  color: var(--st-accent-ink);
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 8px 22px -12px var(--st-accent-glow);
}
:root .model-api-manager .ma-button.danger {
  color: #ffb8c2;
}
:root .model-api-manager .ma-api-card {
  border-color: var(--st-line);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012));
}
:root .model-api-manager .ma-api-card.is-default {
  border-color: rgba(243, 180, 108, 0.38);
}
:root .model-api-manager .ma-badge {
  border-radius: 999px;
}
:root .model-api-manager .ma-badge.default {
  background: var(--st-accent-soft);
  color: var(--st-gold-1);
}
:root .model-api-manager input,
:root .model-api-manager select,
:root .model-api-manager textarea {
  border: 1px solid var(--st-line-2);
  border-radius: 10px;
  background-color: var(--st-inset);
  color: var(--st-text);
}
:root .model-api-manager select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 34px;
  background-image: var(--st-chevron);
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px;
}
:root .model-api-manager select option {
  background: var(--st-solid-2);
}
:root .model-api-manager .ma-button:disabled {
  border-color: var(--st-line);
  background: rgba(255, 255, 255, 0.05);
  color: var(--st-faint);
  box-shadow: none;
  opacity: 1;
  cursor: not-allowed;
}
:root .model-api-manager .ma-hd-settings {
  border: 1px solid rgba(147, 182, 255, 0.2);
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(147, 182, 255, 0.07), rgba(255, 255, 255, 0.015));
}
:root .model-api-manager input:focus,
:root .model-api-manager select:focus,
:root .model-api-manager textarea:focus {
  outline: none;
  border-color: rgba(243, 180, 108, 0.6);
  box-shadow: 0 0 0 3px rgba(243, 180, 108, 0.16);
}
:root .model-api-manager .mu-kpi {
  border-color: var(--st-line);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.012));
}
:root .model-api-manager .mu-table th {
  color: var(--st-muted);
}
:root .model-api-manager .mu-table td,
:root .model-api-manager .mu-table th {
  border-color: var(--st-line);
}

/* ── Smaller extension dialogs ── */
:root .prompt-editor-dialog,
:root .asset-delete-confirm,
:root .wf-episode-dialog,
:root .asset-review-preview,
:root .review-opinion-dialog {
  border: 1px solid var(--st-line-2);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012)), #12141a;
  color: var(--st-text);
  box-shadow: var(--st-shadow-3);
}
:root .prompt-editor-input {
  border: 1px solid var(--st-line-2);
  border-radius: 14px;
  background: var(--st-inset);
  color: var(--st-text);
  line-height: 1.8;
}
:root .prompt-editor-input:focus {
  outline: none;
  border-color: rgba(243, 180, 108, 0.6);
  box-shadow: 0 0 0 3px rgba(243, 180, 108, 0.16);
}
:root .asset-delete-mark {
  background: rgba(255, 123, 139, 0.16) !important;
  color: #ffb8c2 !important;
}

/* ── Episode calendars used by analysis / canvas dialogs ── */
:root .episode-calendar-grid .wf-btn,
:root .wf-episode-day {
  min-height: 38px;
  border-radius: 10px;
  font-variant-numeric: tabular-nums;
}
:root .episode-calendar-grid .wf-btn.primary {
  box-shadow: 0 8px 18px -10px var(--st-accent-glow), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
:root .wf-episode-day.in-range {
  background: rgba(243, 180, 108, 0.16);
  color: var(--st-gold-1);
}
:root .wf-episode-day.endpoint {
  background: var(--st-grad);
  color: var(--st-accent-ink);
}

/* ── Public review page ── */
:root .asset-review-page .asset-review-header {
  border-bottom: 1px solid var(--st-line);
  background: rgba(8, 9, 13, 0.72);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}
:root .asset-review-page .wf-analysis-heading {
  top: 12px;
}

/* src/studio/landing.css */
/* Landing & sign-in refinements; the cinematic hero itself stays as designed. */
/* The legacy <=1100px order:3 belongs to a nav inside the old header, not
   the new whole-header flex item. Keep the signed-in header before the hero. */
:root .brand-landing > .brand-workflow-nav { order: 0; }
:root .brand-landing-nav {
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
:root .brand-login-link,
:root .brand-user-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(10, 11, 15, 0.42);
  color: #fff;
  font-size: 13px;
  font-weight: 650;
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  backdrop-filter: blur(14px) saturate(150%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 10px 30px -14px rgba(0, 0, 0, 0.8);
  transition: transform var(--st-med) var(--st-spring), border-color var(--st-fast) ease, background var(--st-fast) ease;
}
:root .brand-login-link:hover,
:root .brand-user-link:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 220, 170, 0.5);
  background: rgba(20, 18, 14, 0.55);
}
:root .brand-login-link svg {
  transition: transform var(--st-med) var(--st-spring);
}
:root .brand-login-link:hover svg {
  transform: translateX(3px);
}
:root .brand-action {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  height: 46px;
  min-width: 132px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: transform var(--st-med) var(--st-spring), box-shadow var(--st-med) ease, border-color var(--st-fast) ease, filter var(--st-fast) ease;
}
:root .brand-action.secondary {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(10, 11, 15, 0.5);
  color: #fff;
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  backdrop-filter: blur(14px) saturate(150%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 16px 40px -20px rgba(0, 0, 0, 0.9);
}
:root .brand-action.secondary:hover {
  border-color: rgba(255, 255, 255, 0.45);
}
:root .brand-action.primary {
  border: 1px solid transparent;
  background: var(--st-grad);
  color: var(--st-accent-ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 18px 44px -16px rgba(240, 152, 72, 0.85);
}
:root .brand-action.primary::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.6) 50%, transparent 70%);
  transform: translateX(-130%);
  animation: st-cta-sheen 4.8s var(--st-ease) 1.2s infinite;
}
:root .brand-action:hover {
  transform: translateY(-2px);
}
:root .brand-action.primary:hover {
  filter: brightness(1.05);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 22px 54px -16px rgba(240, 152, 72, 0.95);
}
:root .brand-pipeline span {
  padding: 4px 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(10, 11, 15, 0.38);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: rgba(255, 255, 255, 0.82);
  letter-spacing: 0.08em;
}
:root .brand-pipeline i {
  width: 22px;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 220, 170, 0.15), rgba(255, 220, 170, 0.6), rgba(255, 220, 170, 0.15));
}
:root .brand-motion-toggle {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(10, 11, 15, 0.45);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: transform var(--st-med) var(--st-spring), border-color var(--st-fast) ease;
}
:root .brand-motion-toggle:hover {
  transform: scale(1.06);
  border-color: rgba(255, 220, 170, 0.5);
}

/* Sign-in / register card */
:root .brand-auth-backdrop {
  background: rgba(4, 5, 8, 0.5) !important;
  -webkit-backdrop-filter: blur(16px) saturate(130%);
  backdrop-filter: blur(16px) saturate(130%);
  animation: st-fade-in 240ms ease both;
}
:root .brand-auth .wf-login-card,
:root .wf-login-card {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 26px;
  background:
    radial-gradient(420px 200px at 50% -20%, rgba(246, 178, 96, 0.18), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015)),
    rgba(14, 15, 20, 0.9);
  -webkit-backdrop-filter: blur(26px) saturate(150%);
  backdrop-filter: blur(26px) saturate(150%);
  box-shadow: var(--st-shadow-3), 0 0 0 1px rgba(255, 220, 170, 0.04);
  animation: st-dialog-in 360ms var(--st-spring) both;
}
:root .wf-login-card h2 {
  font-size: 24px;
  font-weight: 750;
  letter-spacing: -0.02em;
}
:root .wf-login-card p {
  color: var(--st-muted);
}
:root .brand-auth-form label {
  color: var(--st-text-2);
  font-weight: 550;
}
:root .brand-auth-form input {
  min-height: 44px;
  border: 1px solid var(--st-line-2) !important;
  border-radius: 12px !important;
  background: rgba(0, 0, 0, 0.32) !important;
  color: var(--st-text) !important;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.4) !important;
  transition: border-color var(--st-fast) ease, box-shadow var(--st-med) ease;
}
:root .brand-auth-form input:focus {
  outline: none;
  border-color: rgba(243, 180, 108, 0.65) !important;
  box-shadow: 0 0 0 4px rgba(243, 180, 108, 0.16), inset 0 1px 2px rgba(0, 0, 0, 0.4) !important;
}
:root .brand-auth-form .wf-btn.primary {
  min-height: 46px;
  border-radius: 12px;
  font-size: 14.5px;
}
:root .brand-auth-close {
  border-radius: 50%;
  transition: transform var(--st-med) var(--st-spring), background var(--st-fast) ease;
}
:root .brand-auth-close:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: rotate(90deg);
}
:root .brand-auth-register {
  border-radius: 10px;
  color: var(--st-gold-1);
  font-weight: 650;
  transition: background var(--st-fast) ease;
}
:root .brand-auth-register:hover {
  background: rgba(243, 180, 108, 0.1);
}

/* src/image-upstreams/image-upstreams.css */
/* Image upstream picker and account manager. */
:root .iu-dialog {
  width: min(620px, calc(100vw - 24px));
  max-height: min(88dvh, 860px);
  padding: 0;
  border: 1px solid var(--st-line-2);
  border-radius: 24px;
  background:
    radial-gradient(560px 220px at 0% 0%, rgba(246, 178, 96, 0.12), transparent 70%),
    radial-gradient(420px 220px at 100% 0%, rgba(118, 142, 255, 0.08), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012)),
    #101217;
  color: var(--st-text);
  box-shadow: var(--st-shadow-3);
  overflow: hidden;
}
:root .iu-sheet {
  display: flex;
  flex-direction: column;
  max-height: inherit;
}
:root .iu-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px 12px;
}
:root .iu-head h2 {
  margin: 8px 0 6px;
  font-size: 22px;
  font-weight: 750;
  letter-spacing: -0.02em;
}
:root .iu-subtitle {
  margin: 0;
  color: var(--st-text-2);
  font-size: 13.5px;
}
:root .iu-close {
  display: grid;
  place-items: center;
  flex: none;
  width: 34px;
  height: 34px;
  border: 1px solid var(--st-line-2);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  color: var(--st-text-2);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: transform var(--st-med) var(--st-spring), background var(--st-fast) ease;
}
:root .iu-close:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: rotate(90deg);
}
:root .iu-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 24px 10px;
}
:root .iu-chip {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border: 1px solid var(--st-line-2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--st-text-2);
  font-size: 12px;
  font-weight: 600;
  animation: st-pop 300ms var(--st-spring) both;
}
:root .iu-chip.is-strong {
  border-color: transparent;
  background: var(--st-grad);
  color: var(--st-accent-ink);
}
:root .iu-chip.is-parent {
  border-color: rgba(246, 184, 103, 0.3);
  color: var(--st-gold-1);
}
:root .iu-chip.is-child {
  border-color: rgba(147, 182, 255, 0.3);
  color: var(--st-blue);
}
:root .iu-chip.kind-角色 { color: var(--st-violet); }
:root .iu-chip.kind-场景 { color: var(--st-teal); }
:root .iu-chip.kind-道具 { color: var(--st-rose); }
:root .iu-note {
  margin: 0 24px 10px;
  padding: 9px 12px;
  border: 1px solid rgba(147, 182, 255, 0.22);
  border-radius: 12px;
  background: rgba(147, 182, 255, 0.07);
  color: #cfdcff;
  font-size: 12.5px;
  line-height: 1.6;
}
:root .iu-blocked {
  margin: 0 24px 10px;
  padding: 9px 12px;
  border: 1px solid rgba(251, 193, 94, 0.22);
  border-radius: 12px;
  background: rgba(251, 193, 94, 0.06);
  color: #ffe0a6;
  font-size: 12.5px;
}
:root .iu-blocked summary {
  cursor: pointer;
  font-weight: 650;
}
:root .iu-blocked ul {
  margin: 8px 0 2px;
  padding-left: 18px;
  color: var(--st-text-2);
  line-height: 1.7;
}
:root .iu-toggle,
:root .iu-remember {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--st-text-2);
  font-size: 13px;
  cursor: pointer;
}
:root .iu-picker .iu-toggle {
  margin: 0 24px 10px;
  padding: 10px 12px;
  border: 1px solid var(--st-line-2);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.2);
}
:root .iu-options {
  display: grid;
  gap: 8px;
  min-height: 120px;
  padding: 6px 24px 16px;
  overflow: auto;
  transition: opacity var(--st-med) ease, filter var(--st-med) ease;
}
:root .iu-options.is-muted {
  opacity: 0.4;
  filter: saturate(0.3);
  pointer-events: none;
}
:root .iu-group {
  margin: 10px 2px 2px;
  color: var(--st-faint);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
}
:root .iu-option {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid var(--st-line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.025);
  cursor: pointer;
  animation: st-fade-up 320ms var(--st-ease) both;
  animation-delay: calc(var(--iu-i, 0) * 35ms);
  transition: border-color var(--st-fast) ease, background var(--st-fast) ease, transform var(--st-med) var(--st-spring), box-shadow var(--st-med) ease;
}
:root .iu-option:hover {
  border-color: var(--st-line-3);
  background: rgba(255, 255, 255, 0.045);
  transform: translateY(-1px);
}
:root .iu-option.is-selected {
  border-color: rgba(243, 180, 108, 0.6);
  background: linear-gradient(160deg, rgba(243, 180, 108, 0.14), rgba(243, 180, 108, 0.03));
  box-shadow: 0 0 0 3px rgba(243, 180, 108, 0.1), 0 14px 30px -20px var(--st-accent-glow);
}
:root .iu-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
:root .iu-option:has(input:focus-visible) {
  box-shadow: var(--st-ring);
}
:root .iu-avatar {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(147, 182, 255, 0.3), rgba(118, 142, 255, 0.12));
  color: #dfe7ff;
  font-size: 15px;
  font-weight: 800;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
:root .iu-avatar.is-platform {
  background: var(--st-grad);
  color: var(--st-accent-ink);
}
:root .iu-avatar.is-private {
  background: linear-gradient(135deg, rgba(90, 214, 168, 0.32), rgba(40, 140, 110, 0.14));
  color: #d4fff0;
}
:root .iu-option-main,
:root .iu-card-main {
  display: grid;
  gap: 5px;
  min-width: 0;
}
:root .iu-option-title,
:root .iu-card-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
:root .iu-option-title strong,
:root .iu-card-title strong {
  overflow: hidden;
  color: var(--st-text);
  font-size: 14px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}
:root .iu-option-meta,
:root .iu-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  color: var(--st-muted);
  font-size: 12px;
}
:root .iu-option-meta code,
:root .iu-card-meta code {
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--st-text-2);
  font-size: 11.5px;
}
:root .iu-scope {
  font-size: 11px;
  font-weight: 650;
}
:root .iu-scope.is-shared { color: var(--st-blue); }
:root .iu-scope.is-private { color: var(--st-green); }
:root .iu-scope.is-platform { color: var(--st-gold-1); }
:root .iu-tag {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 7px;
  border: 1px solid var(--st-line-2);
  border-radius: 999px;
  color: var(--st-text-2);
  font-size: 10.5px;
  font-weight: 700;
}
:root .iu-tag.is-default {
  border-color: rgba(243, 180, 108, 0.45);
  background: var(--st-accent-soft);
  color: var(--st-gold-1);
}
:root .iu-tag.is-off {
  border-color: rgba(255, 123, 139, 0.3);
  color: #ffb8c2;
}
:root .iu-check {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1.5px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  transition: border-color var(--st-fast) ease, background var(--st-fast) ease, transform var(--st-med) var(--st-spring);
}
:root .iu-option.is-selected .iu-check {
  border-color: transparent;
  background: var(--st-check) center / 13px no-repeat, var(--st-grad);
  transform: scale(1.06);
  box-shadow: 0 4px 12px -4px var(--st-accent-glow);
}
:root .iu-empty {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px;
  border: 1px dashed var(--st-line-3);
  border-radius: 14px;
  color: var(--st-muted);
  font-size: 12.5px;
  line-height: 1.6;
}
:root .iu-loading {
  padding: 18px;
  color: var(--st-muted);
  font-size: 13px;
  text-align: center;
}
:root .iu-loading::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-right: 8px;
  vertical-align: -2px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0 25%, var(--st-gold-2) 75%, var(--st-gold-1));
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1.5px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1.5px));
  animation: st-spin 0.9s linear infinite;
}
:root .iu-error,
:root .iu-message.is-error {
  color: #ffc6cd;
}
:root .iu-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 24px 20px;
  border-top: 1px solid var(--st-line);
  background: rgba(10, 11, 15, 0.6);
}
:root .iu-foot-left,
:root .iu-foot-right {
  display: flex;
  align-items: center;
  gap: 14px;
}
:root .iu-confirm {
  min-width: 150px;
  min-height: 40px;
}
:root .iu-link {
  padding: 0;
  border: 0;
  background: none;
  color: var(--st-gold-1);
  font: 600 12.5px/1.4 var(--st-font);
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: rgba(255, 227, 179, 0.35);
  text-underline-offset: 3px;
  transition: color var(--st-fast) ease, text-decoration-color var(--st-fast) ease;
}
:root .iu-link:hover {
  color: #fff;
  text-decoration-color: currentColor;
}

/* Account manager section */
:root .wf-app .account-manager > .image-upstream-slot {
  margin-bottom: 14px;
  padding: 20px;
  border: 1px solid rgba(243, 180, 108, 0.22);
  border-radius: 20px;
  background:
    radial-gradient(520px 200px at 0% 0%, rgba(246, 178, 96, 0.1), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.012));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  scroll-margin-top: 90px;
  transition: box-shadow var(--st-slow) ease;
}
:root .image-upstream-slot.iu-flash {
  box-shadow: 0 0 0 3px rgba(243, 180, 108, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
:root .iu-manager {
  display: grid;
  gap: 12px;
}
:root .iu-manager-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
:root .iu-manager-head h3 {
  margin: 6px 0 4px !important;
  font-size: 17px !important;
}
:root .iu-manager-head p {
  max-width: 560px;
  margin: 0;
  font-size: 12.5px;
  line-height: 1.7;
}
:root .iu-default-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--st-line);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.2);
  color: var(--st-muted);
  font-size: 12.5px;
}
:root .iu-default-line strong {
  color: var(--st-gold-1);
}
:root .iu-manager .iu-group {
  margin-top: 4px;
}
:root .iu-list {
  display: grid;
  gap: 8px;
}
:root .iu-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 12px 12px 12px 14px;
  border: 1px solid var(--st-line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.025);
  transition: border-color var(--st-fast) ease, background var(--st-fast) ease;
}
:root .iu-card:hover {
  border-color: var(--st-line-3);
  background: rgba(255, 255, 255, 0.04);
}
:root .iu-card.is-off {
  opacity: 0.6;
}
:root .iu-card-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px;
}
:root .iu-card-actions .wf-btn {
  min-height: 30px;
  padding: 0 10px;
  font-size: 12px;
}
:root .iu-card-actions .wf-btn.is-confirming {
  --btn-bg: rgba(255, 123, 139, 0.22);
  --btn-border: rgba(255, 123, 139, 0.6);
  animation: st-pop 260ms var(--st-spring);
}
:root .iu-message {
  margin: 0;
  padding: 9px 12px;
  border: 1px solid rgba(90, 214, 168, 0.25);
  border-radius: 12px;
  background: rgba(90, 214, 168, 0.07);
  color: #b8f5dd;
  font-size: 12.5px;
  animation: st-fade-up 240ms var(--st-ease) both;
}
:root .iu-message.is-error {
  border-color: rgba(255, 123, 139, 0.3);
  background: rgba(255, 123, 139, 0.08);
}
:root .iu-form {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(243, 180, 108, 0.28);
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.24);
  animation: st-fade-up 260ms var(--st-ease) both;
}
:root .iu-form h4 {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
}
:root .iu-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 14px;
}
:root .iu-field {
  display: grid;
  gap: 6px;
  align-content: start;
}
:root .iu-field.is-wide {
  grid-column: 1 / -1;
}
:root .iu-field > span {
  color: var(--st-text-2) !important;
  font-size: 12.5px;
  font-weight: 600;
}
:root .iu-field small,
:root .iu-pull-status {
  color: var(--st-faint);
  font-size: 11.5px;
  line-height: 1.5;
}
:root .iu-field .wf-input {
  width: 100%;
}
:root .iu-model-row {
  display: flex;
  gap: 8px;
}
:root .iu-model-row .wf-input {
  flex: 1;
}
:root .iu-model-list {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--st-line-2);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.25);
}
:root .iu-model-results {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-height: 180px;
  overflow: auto;
}
:root .iu-model-option {
  padding: 6px 10px;
  border: 1px solid var(--st-line-2);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--st-text-2);
  font: 500 12px/1.2 var(--st-mono);
  cursor: pointer;
  transition: background var(--st-fast) ease, border-color var(--st-fast) ease, color var(--st-fast) ease;
}
:root .iu-model-option:hover {
  border-color: var(--st-accent-line);
  background: var(--st-accent-soft);
  color: var(--st-gold-1);
}
:root .iu-toggles {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
}
:root .iu-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
:root .iu-muted {
  color: var(--st-muted);
  font-size: 12px;
}
@media (max-width: 640px) {
  :root .iu-form-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  :root .iu-card {
    grid-template-columns: auto minmax(0, 1fr);
  }
  :root .iu-card-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
  :root .iu-foot {
    flex-direction: column-reverse;
    align-items: stretch;
  }
  :root .iu-foot-right {
    justify-content: flex-end;
  }
}

/* src/studio/motion.css */
/* Motion system: keyframes, entrance reveals, route transitions, top progress. */
@keyframes st-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes st-fade-up {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
@keyframes st-dialog-in {
  from { opacity: 0; transform: translateY(14px) scale(0.965); }
  to { opacity: 1; transform: none; }
}
@keyframes st-pop-in {
  from { opacity: 0; transform: translateY(-6px) scale(0.96); }
  to { opacity: 1; transform: none; }
}
@keyframes st-sheet-in {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}
@keyframes st-pop {
  0% { transform: scale(0.7); }
  60% { transform: scale(1.12); }
  100% { transform: scale(1); }
}
@keyframes st-spin {
  to { transform: rotate(360deg); }
}
@keyframes st-ripple {
  from { opacity: 0.28; transform: scale(0); }
  to { opacity: 0; transform: scale(var(--st-rs, 28)); }
}
@keyframes st-sheen {
  from { background-position: 160% 0, 0 0; }
  to { background-position: -60% 0, 0 0; }
}
@keyframes st-cta-sheen {
  0%, 62% { transform: translateX(-130%); }
  82%, 100% { transform: translateX(130%); }
}
@keyframes st-indeterminate {
  from { background-position: -50% 0; }
  to { background-position: 150% 0; }
}
@keyframes st-pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(243, 180, 108, 0.55); }
  100% { box-shadow: 0 0 0 10px rgba(243, 180, 108, 0); }
}
@keyframes st-route-in {
  from { opacity: 0; transform: translateY(10px); filter: blur(4px); }
  to { opacity: 1; transform: none; filter: none; }
}

/* Freshly rendered, on-screen cards ease in once (studio.js sets data-st-reveal). */
:root [data-st-reveal="shown"] {
  animation: st-reveal 560ms var(--st-ease) both;
  animation-delay: var(--st-delay, 0ms);
}
@keyframes st-reveal {
  from { opacity: 0; transform: translateY(14px) scale(0.985); }
  to { opacity: 1; transform: none; }
}

/* Stage change: the main column eases in. */
:root .wf-app .wf-main[data-st-route-anim] > * {
  animation: st-route-in 460ms var(--st-ease) both;
}
:root .wf-app .wf-main[data-st-route-anim] > *:nth-child(2) { animation-delay: 40ms; }
:root .wf-app .wf-main[data-st-route-anim] > *:nth-child(3) { animation-delay: 80ms; }

/* Network activity bar */
:root .st-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 3000;
  height: 2px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 260ms ease;
}
:root .st-progress[data-active] {
  opacity: 1;
}
:root .st-progress::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, #ffe2ad, #f6b462, #e9823e, transparent);
  background-size: 45% 100%;
  background-repeat: no-repeat;
  box-shadow: 0 0 12px rgba(246, 180, 98, 0.8);
  animation: st-indeterminate 1.25s var(--st-ease-in-out) infinite;
}

@media (prefers-reduced-motion: reduce) {
  :root *,
  :root *::before,
  :root *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
    scroll-behavior: auto !important;
  }
}

/* src/studio/poster-preview.css */
.local-result-poster-button{position:relative;display:flex;align-items:center;justify-content:center;width:100%;min-height:230px;aspect-ratio:16/9;max-height:420px;overflow:hidden;border:1px solid #3e424d;border-radius:12px;background:#11141b;color:#fff;cursor:pointer;padding:0}
.local-result-poster-button .local-episode-thumbnail{position:absolute;inset:0;display:block;width:100%;height:100%}
.local-result-poster-button .local-episode-thumbnail img{width:100%;height:100%;object-fit:contain}
.local-result-play-label{position:relative;z-index:1;background:rgba(10,12,18,.8);border:1px solid #6b7280;border-radius:24px;padding:12px 20px;color:#fff}
.local-result-poster-button:focus-visible{outline:3px solid #e5c27a;outline-offset:3px}
.local-result-poster-button:disabled{cursor:wait}
@media(max-width:640px){.local-result-poster-button{min-height:180px}.local-result-play-label{padding:10px 14px}}

/* src/studio/credits-center.css */
/* 云拓制作管理中心。与工作室同一套玻璃、金色和动效，不另起视觉系统。 */
:root .yc-dialog .yc-note.is-error,:root .yt-inline-error{position:static;inset:auto;transform:none;font:500 12px/1.55 var(--st-font);color:#f3a6a6;text-align:left;max-width:100%;white-space:normal;overflow-wrap:anywhere;margin:8px 0;padding:8px 11px;border:1px solid #f3a6a62b;border-radius:10px;background:#b7434312;}
:root .yt-inline-error:empty{display:none;}
:root .yc-row>.wf-btn{grid-column:2/-1;justify-self:end;}
:root .yc-dialog.yt-dialog{width:min(1160px,calc(100vw - 28px));max-height:92dvh;}
:root .yt-sheet{display:flex;flex-direction:column;max-height:92dvh;}
:root .yt-content{padding:8px 24px 26px;overflow:auto;min-height:180px;}
:root .yt-toolbar,:root .yt-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px;}
:root .yt-heading h2{font-size:24px;margin:0;}
:root .yt-role{border:1px solid var(--st-accent-line);border-radius:20px;padding:5px 12px;font-size:12px;color:var(--st-gold-1);}
:root .yt-stats{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;margin:16px 0;}
:root .yt-stat{border:1px solid var(--st-line);border-radius:16px;padding:16px;background:linear-gradient(145deg,#f6b26010,#ffffff04);}
:root .yt-stat span{display:block;font-size:12px;color:var(--st-muted);}
:root .yt-stat strong{display:block;margin-top:10px;font:650 25px/1.2 var(--st-mono);color:var(--st-gold-1);}
:root .yt-panel{border:1px solid var(--st-line);border-radius:18px;padding:18px;margin:14px 0;background:#ffffff03;}
:root .yt-panel h3{font-size:15px;margin:0 0 12px;}
:root .yt-muted{color:var(--st-muted);font-size:12px;line-height:1.65;}
:root .yt-chart svg{display:block;width:100%;height:180px;}
:root .yt-form{display:grid;grid-template-columns:repeat(var(--yt-field-count,1),minmax(0,1fr)) auto;align-items:end;gap:12px;}
:root .yt-field{display:grid;gap:8px;min-width:0;font-size:12px;color:var(--st-muted);}
:root .yt-content input,:root .yt-content select{box-sizing:border-box;min-width:0;max-width:100%;padding:10px 12px;color:var(--st-text);background:#0c0e13;border:1px solid var(--st-line-2);border-radius:10px;font:500 13px/1.3 var(--st-font);}
:root .yt-toolbar select{flex:1;max-width:380px;}
:root .yt-form .yt-field>input,:root .yt-form .yt-field>select,:root .yt-form>.wf-btn{box-sizing:border-box;width:100%;height:44px;min-height:44px;border-radius:12px;line-height:normal;margin:0;}
:root .yt-form .yt-field>input,:root .yt-form .yt-field>select{padding-top:0;padding-bottom:0;}
:root .yt-form>.wf-btn{padding:0 20px;white-space:nowrap;}
@media(max-width:700px){:root .yt-form{grid-template-columns:1fr;gap:14px;}}
:root .yt-project{border-top:1px solid var(--st-line);padding:14px 0;}
:root .yt-project h4{font-size:14px;margin:0 0 6px;}
:root .yt-project p{font-size:12px;line-height:1.7;margin:6px 0;}
:root .yt-project-metrics{color:var(--st-gold-1);}
:root .yt-member-project-list{display:flex;flex-direction:column;max-height:420px;overflow-y:auto;overscroll-behavior:contain;}
:root .yt-member-project-row{flex-shrink:0;border-top:1px solid var(--st-line);}
:root .yt-member-project-summary{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:14px;min-height:48px;list-style:none;cursor:pointer;font-size:12px;}
:root .yt-member-project-summary::-webkit-details-marker{display:none;}
:root .yt-member-project-summary:focus-visible{outline:2px solid var(--st-gold-1);outline-offset:-2px;border-radius:8px;}
:root .yt-member-project-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0;font-size:13px;}
:root .yt-member-project-count{color:var(--st-muted);white-space:nowrap;font-variant-numeric:tabular-nums;}
:root .yt-member-project-toggle{color:var(--st-gold-1);white-space:nowrap;}
:root .yt-member-project-toggle::after{content:'⌄';display:inline-block;margin-left:6px;}
:root .yt-member-project-row[open]>.yt-member-project-summary .yt-member-project-toggle::after{transform:rotate(180deg);}
:root .yt-member-project-detail{max-height:260px;overflow-y:auto;overscroll-behavior:contain;padding:0 12px;margin:0 0 10px;border-radius:12px;background:#ffffff03;}
:root .yt-member-project-detail .yt-project:first-child{border-top:0;}
:root .yt-member-project-detail .yt-project h4{overflow-wrap:anywhere;}
:root .yt-project-statistics-note{margin-top:12px;font-size:11px;color:var(--st-muted);}
:root .yt-project-statistics-note>summary{cursor:pointer;}
@media(max-width:600px){:root .yt-member-project-summary{gap:8px;}:root .yt-member-project-count{font-size:11px;}:root .yt-member-project-toggle{font-size:11px;}}
:root .yt-member,:root .yt-review{display:flex;align-items:center;gap:12px;flex-wrap:wrap;border-top:1px solid var(--st-line);padding:12px 0;font-size:13px;}
:root .yt-member strong{min-width:100px;}
:root .yt-notice{padding:10px 12px;border-radius:10px;background:var(--st-accent-soft);font-size:12px;line-height:1.6;color:var(--st-gold-1);margin:10px 0;}
@media(max-width:700px){:root .yt-stats{grid-template-columns:repeat(2,minmax(0,1fr));}:root .yt-content{padding:8px 14px 18px;}:root .yt-panel{padding:14px;}:root .yt-form>.wf-btn{width:100%;}:root .yt-stat strong{font-size:22px;}:root .yt-dialog .yc-head{padding:18px 14px 12px;}}
:root .yc-launcher {
  position: relative;
  right: auto;
  bottom: auto;
  z-index: 40;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 14px 0 12px;
  border: 1px solid var(--st-accent-line);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    rgba(12, 13, 18, 0.78);
  color: var(--st-gold-1);
  font: 650 13px/1 var(--st-font);
  letter-spacing: 0.01em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 14px 34px -18px rgba(0, 0, 0, 0.85);
  cursor: pointer;
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  transform: translateZ(0);
  transition: transform var(--st-med) var(--st-spring), border-color var(--st-fast) ease, box-shadow var(--st-med) var(--st-ease);
}
:root .yc-launcher:hover {
  transform: translateY(-2px);
  border-color: var(--st-gold-2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 18px 36px -16px rgba(240, 152, 72, 0.45);
}
:root .yc-launcher:active { transform: translateY(0) scale(0.98); transition-duration: 80ms; }
:root .yc-launcher:focus-visible { outline: none; box-shadow: var(--st-ring); }
:root .yc-launcher i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--st-grad);
  box-shadow: 0 0 0 4px var(--st-accent-soft);
  animation: st-pulse-ring 2.8s var(--st-ease) infinite;
}
:root .yc-launcher b {
  font: 680 13px/1 var(--st-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
}
:root .yc-dialog {
  position: relative;
  width: min(880px, calc(100vw - 28px));
  max-height: min(88dvh, 860px);
  padding: 0;
  border: 1px solid var(--st-line-2);
  border-radius: 24px;
  background:
    radial-gradient(640px 240px at 0% 0%, rgba(246, 178, 96, 0.14), transparent 68%),
    radial-gradient(480px 220px at 100% 0%, rgba(118, 142, 255, 0.08), transparent 70%),
    #101217;
  color: var(--st-text);
  box-shadow: var(--st-shadow-3);
  overflow: hidden;
  contain: layout style;
}
:root .yc-dialog::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.04;
  background: var(--st-noise);
  mix-blend-mode: overlay;
}
:root .yc-sheet { position: relative; display: flex; flex-direction: column; max-height: inherit; }
:root .yc-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px 12px;
}
:root .yc-kicker {
  margin: 0;
  color: var(--st-gold-2);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.22em;
}
:root .yc-head h2 {
  margin: 6px 0 4px;
  font-size: 26px;
  font-weight: 720;
  letter-spacing: -0.035em;
}
:root .yc-head p:last-child { margin: 0; color: var(--st-muted); font-size: 13px; }
:root .yc-hero {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  gap: 10px;
  padding: 2px 22px 4px;
}
:root .yc-card {
  padding: 14px 16px 13px;
  border: 1px solid var(--st-line);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
  box-shadow: var(--st-shadow-1);
  contain: layout paint;
  animation: st-fade-up 420ms var(--st-ease) both;
}
:root .yc-card:nth-child(2) { animation-delay: 50ms; }
:root .yc-card:nth-child(3) { animation-delay: 100ms; }
:root .yc-card.is-main {
  border-color: var(--st-accent-line);
  background:
    radial-gradient(120% 90% at 0% 0%, rgba(246, 178, 96, 0.18), transparent 62%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
}
:root .yc-card span { display: block; color: var(--st-faint); font-size: 12px; }
:root .yc-card strong {
  display: block;
  margin-top: 8px;
  min-height: 32px;
  font: 680 32px/1 var(--st-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.045em;
  background: var(--st-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
:root .yc-card.is-skeleton strong {
  width: 72px;
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04));
  background-size: 200% 100%;
  animation: st-sheen 1.1s linear infinite;
  -webkit-background-clip: border-box;
  background-clip: border-box;
  color: transparent;
}
:root .yc-prices {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 22px 0;
}
:root .yc-price {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 8px 0 10px;
  border: 1px solid var(--st-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--st-muted);
  font-size: 11.5px;
  font-weight: 600;
}
:root .yc-price b {
  color: var(--st-gold-1);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
:root .yc-seg {
  position: relative;
  display: inline-flex;
  align-self: flex-start;
  gap: 2px;
  margin: 12px 22px 0;
  padding: 3px;
  border: 1px solid var(--st-line);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.28);
}
:root .yc-seg-indicator {
  position: absolute;
  top: 3px;
  left: 0;
  height: calc(100% - 6px);
  border-radius: 999px;
  background: var(--st-grad-soft);
  box-shadow: inset 0 0 0 1px var(--st-accent-line);
  transition: transform var(--st-med) var(--st-spring), width var(--st-med) var(--st-ease);
  pointer-events: none;
}
:root .yc-seg button {
  position: relative;
  z-index: 1;
  height: 28px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--st-muted);
  font: 650 12.5px/1 var(--st-font);
  cursor: pointer;
  transition: color var(--st-fast) ease;
}
:root .yc-seg button[aria-selected="true"] { color: var(--st-gold-1); }
:root .yc-seg button:focus-visible { outline: none; box-shadow: var(--st-ring); }
:root .yc-tabs {
  display: flex;
  gap: 2px;
  margin-top: 8px;
  padding: 0 18px;
  border-bottom: 1px solid var(--st-line);
}
:root .yc-tab {
  position: relative;
  height: 36px;
  padding: 0 12px;
  border: 0;
  background: transparent;
  color: var(--st-muted);
  font: 650 13px/1 var(--st-font);
  cursor: pointer;
  transition: color var(--st-fast) ease;
}
:root .yc-tab[aria-selected="true"] { color: var(--st-gold-1); }
:root .yc-tab[aria-selected="true"]::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: -1px;
  height: 2px;
  border-radius: 2px;
  background: var(--st-grad);
}
:root .yc-tab:focus-visible { outline: none; box-shadow: var(--st-ring); }
:root .yc-body {
  overflow: auto;
  padding: 8px 22px 20px;
  min-height: 220px;
}
:root .yc-body[data-pane] { animation: st-fade-up 280ms var(--st-ease) both; }
:root .yc-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 52px;
  padding: 6px 2px;
  border-bottom: 1px solid var(--st-line);
  content-visibility: auto;
  contain-intrinsic-size: auto 52px;
}
:root .yc-row b { font-weight: 650; }
:root .yc-row small { display: block; margin-top: 3px; color: var(--st-faint); font-size: 12px; }
:root .yc-kind {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
:root .yc-kind.is-gift { color: var(--st-gold-1); background: var(--st-accent-soft); }
:root .yc-kind.is-in { color: var(--st-green); background: var(--st-green-soft); }
:root .yc-kind.is-out { color: #ffb4be; background: var(--st-red-soft); }
:root .yc-kind.is-hold { color: var(--st-amber); background: rgba(251, 193, 94, 0.12); }
:root .yc-kind.is-move { color: var(--st-blue); background: var(--st-blue-soft); }
:root .yc-delta {
  font: 680 15px/1 var(--st-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
}
:root .yc-delta.is-plus { color: var(--st-green); }
:root .yc-delta.is-minus { color: var(--st-red); }
:root .yc-panel {
  margin: 8px 0 14px;
  padding: 14px;
  border: 1px solid var(--st-line);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
:root .yc-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
:root .yc-form + .yc-form { margin-top: 8px; }
:root .yc-form input,
:root .yc-form select,
:root .yc-confirm input {
  height: 38px;
  border: 1px solid var(--st-line-2);
  border-radius: 10px;
  padding: 0 12px;
  background: var(--st-inset);
  color: var(--st-text);
  font: 500 13px/1 var(--st-font);
  transition: border-color var(--st-fast) ease, box-shadow var(--st-fast) ease;
}
:root .yc-form input:focus-visible,
:root .yc-form select:focus-visible,
:root .yc-confirm input:focus-visible {
  outline: none;
  border-color: rgba(243, 180, 108, 0.6);
  box-shadow: 0 0 0 3px rgba(243, 180, 108, 0.16);
}
:root .yc-note { margin: 8px 0; color: var(--st-text-2); font-size: 13px; line-height: 1.55; }
:root .yc-note.is-error { color: var(--st-red); }
:root .yc-empty {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 36px 12px 28px;
  text-align: center;
}
:root .yc-empty i {
  width: 42px;
  height: 42px;
  margin-bottom: 4px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 45%, rgba(246, 180, 98, 0.9), rgba(233, 130, 62, 0.2) 62%, transparent 64%),
    var(--st-accent-soft);
  box-shadow: 0 0 0 8px rgba(243, 180, 108, 0.06);
}
:root .yc-empty b { font-size: 15px; font-weight: 680; }
:root .yc-empty span { max-width: 280px; color: var(--st-muted); font-size: 13px; line-height: 1.5; }
:root .yc-confirm {
  width: min(420px, calc(100vw - 28px));
  padding: 0;
  border: 1px solid var(--st-line-2);
  border-radius: 22px;
  background:
    radial-gradient(420px 180px at 0% 0%, rgba(246, 178, 96, 0.16), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.012)),
    #12141a;
  color: var(--st-text);
  box-shadow: var(--st-shadow-3);
  overflow: hidden;
}
:root .yc-confirm-body { padding: 22px 22px 8px; }
:root .yc-confirm h3 { margin: 6px 0 0; font-size: 20px; font-weight: 720; letter-spacing: -0.03em; }
:root .yc-confirm p { margin: 8px 0 0; color: var(--st-text-2); font-size: 13.5px; line-height: 1.55; }
:root .yc-quote {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 16px 0 8px;
}
:root .yc-quote div {
  padding: 10px 10px 9px;
  border: 1px solid var(--st-line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
}
:root .yc-quote span { display: block; color: var(--st-faint); font-size: 11px; }
:root .yc-quote b {
  display: block;
  margin-top: 5px;
  font: 680 16px/1.2 var(--st-mono);
  font-variant-numeric: tabular-nums;
}
:root .yc-confirm.is-short .yc-quote div:last-child {
  border-color: rgba(255, 123, 139, 0.35);
  background: var(--st-red-soft);
}
:root .yc-confirm.is-short .yc-quote div:last-child b { color: var(--st-red); }
:root .yc-confirm .row {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 14px 22px 18px;
}
:root .yc-confirm input { width: 100%; margin-top: 14px; }
@media (max-width: 720px) {
  :root .yc-hero, :root .yc-quote { grid-template-columns: 1fr; }
  :root .yc-row { grid-template-columns: 56px minmax(0, 1fr) auto; gap: 8px; }
  :root .yc-launcher { right: auto; bottom: auto; height:34px;padding:0 10px; }
  :root .yc-head, :root .yc-hero, :root .yc-prices, :root .yc-body { padding-left: 16px; padding-right: 16px; }
  :root .yc-seg { margin-left: 16px; margin-right: 16px; }
}
:root .yc-lightning{font-size:23px;line-height:1;color:var(--st-gold-1);}
:root .yc-launcher.is-energized{animation:yv-energize 850ms ease-out;}
:root .yv-stack{position:fixed;right:20px;top:90px;z-index:2147483000;display:grid;gap:10px;max-width:min(390px,calc(100vw - 28px));pointer-events:none;}
:root .yv-toast{display:flex;align-items:center;gap:12px;padding:16px 14px;border:1px solid var(--st-accent-line);border-radius:18px;background:linear-gradient(130deg,#29231c,#12151d);box-shadow:0 14px 45px #0006;pointer-events:auto;animation:yv-arrive 400ms cubic-bezier(.18,.85,.25,1);color:var(--st-text);}
:root .yv-toast.is-success{border-color:#70c9a660;background:linear-gradient(130deg,#1b3028,#12151d);}
:root .yv-toast.is-return{border-color:#8daed759;}
:root .yv-icon{display:grid;place-items:center;flex-shrink:0;width:38px;height:38px;border-radius:13px;background:#f6ba6a1b;color:var(--st-gold-1);font-size:25px;}
:root .yv-toast.is-success .yv-icon{background:#81d9ad15;color:#98e2b8;}
:root .yv-toast strong{font-size:13px;line-height:1.5;}
:root .yv-toast p{margin:5px 0 0;font-size:12px;line-height:1.65;color:var(--st-muted);}
:root .yv-toast button{align-self:flex-start;border:0;background:none;color:var(--st-muted);font-size:18px;cursor:pointer;padding:0 3px;}
:root .yv-purpose{display:flex;align-items:center;gap:12px;border:1px solid var(--st-accent-line);border-radius:12px;padding:12px;margin:14px 0 0;color:var(--st-gold-1);font-size:12px;line-height:1.6;background:linear-gradient(100deg,#f2b76e0c,#f2b76e18,#f2b76e0c);background-size:200% 100%;animation:yv-flow 3s ease-in-out infinite;}
:root .yv-purpose-icon{font-size:25px;}
:root .yv-payer{display:grid;gap:7px;color:var(--st-muted);font-size:12px;margin-top:12px;}
:root .yv-payer select{width:100%;border:1px solid var(--st-line-2);border-radius:10px;background:#12151d;color:var(--st-text);padding:9px;}
:root .lv-upstream-field{margin:16px 0;display:grid;gap:8px;}
:root .lv-upstream-trigger{display:flex;align-items:center;gap:12px;width:100%;padding:14px;text-align:left;border:1px solid var(--st-line-2);border-radius:14px;background:linear-gradient(110deg,#ffffff06,#ffffff02);color:var(--st-text);cursor:pointer;font-family:var(--st-font);}
:root .lv-upstream-trigger>span:nth-child(2){flex:1;}
:root .lv-upstream-trigger strong,:root .lv-upstream-card strong{display:block;font-size:14px;}
:root .lv-upstream-trigger small,:root .lv-upstream-card small{display:block;margin-top:5px;font-size:12px;line-height:1.6;color:var(--st-muted);}
:root .lv-upstream-mark{display:grid;place-items:center;width:40px;height:40px;border:1px solid var(--st-accent-line);border-radius:12px;background:var(--st-accent-soft);color:var(--st-gold-1);font-size:14px;flex-shrink:0;}
:root .lv-upstream-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:18px 0;}
:root .lv-upstream-overlay{position:fixed;inset:0;display:grid;place-items:center;padding:16px;overflow:hidden;z-index:9999;}
:root .lv-upstream-dialog{display:flex;flex-direction:column;box-sizing:border-box;max-height:calc(100dvh - 32px);width:min(760px,calc(100vw - 32px));min-height:0;overflow:hidden;margin:0;}
:root .lv-upstream-dialog>.local-video-dialog-heading,:root .lv-upstream-dialog>.local-video-dialog-footer{flex-shrink:0;}
:root .lv-upstream-dialog>.lv-upstream-grid{overflow-y:auto;min-height:0;overscroll-behavior:contain;padding-right:4px;}
:root .lv-upstream-card{position:relative;display:flex;align-items:center;gap:12px;min-width:0;padding:18px;border:1px solid var(--st-line-2);border-radius:16px;background:#ffffff03;cursor:pointer;}
:root .lv-upstream-card input{position:absolute;right:12px;top:14px;accent-color:#f3bb76;}
:root .lv-upstream-card.is-selected{border-color:#f3bb76aa;background:linear-gradient(120deg,#f3bb7619,#ffffff03);}
:root .lv-upstream-card.is-disabled{opacity:.5;cursor:not-allowed;}
:root .lv-upstream-card em{font-size:10px;font-style:normal;display:block;margin-top:8px;color:var(--st-gold-1);}
:root .lv-upstream-hint{font-size:12px;line-height:1.7;}
:root .yc-launcher[data-credit-status="error"]{border-color:#d8ab6680;}
@media(max-width:600px){:root .lv-upstream-grid{grid-template-columns:1fr;}}
@keyframes yv-arrive{from{opacity:0;transform:translateY(-10px) scale(.98)}to{opacity:1;transform:none}}
@keyframes yv-energize{0%{box-shadow:0 0 0 0 #efb06355}100%{box-shadow:0 0 0 14px #efb06300}}
@keyframes yv-flow{0%,100%{background-position:100% 0}50%{background-position:0 0}}
@media(prefers-reduced-motion:reduce){:root .yv-toast,:root .yv-purpose,:root .yc-launcher.is-energized{animation:none;}}
:root .yc-dialog.yr-dialog{width:min(1440px,calc(100vw - 24px));max-height:94dvh;border-radius:24px;}
:root .yr-sheet{overflow:auto;max-height:94dvh;padding:28px 38px 32px;}
:root .yr-close{position:absolute;right:12px;top:12px;z-index:2;border:0;background:transparent;color:var(--st-muted);font-size:26px;cursor:pointer;}
:root .yr-top{display:flex;align-items:center;justify-content:center;gap:20px;flex-wrap:wrap;}
:root .yr-tabs{border-radius:24px;background:#ffffff0b;padding:5px;}
:root .yr-tabs span{display:block;padding:8px 28px;border-radius:20px;background:var(--st-grad);color:#211506;font-size:13px;font-weight:700;}
:root .yr-hero{text-align:center;padding:38px 0 22px;}
:root .yr-hero h1{font-size:clamp(28px,4vw,46px);margin:8px 0 10px;letter-spacing:-.04em;}
:root .yr-hero>p:last-child{font-size:14px;color:var(--st-muted);}
:root .yr-payment-notice{font-size:12px;text-align:center;padding:10px;border:1px solid var(--st-accent-line);border-radius:10px;color:var(--st-gold-1);background:var(--st-accent-soft);}
:root .yr-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-top:20px;}
:root .yr-card{display:flex;flex-direction:column;min-width:0;padding:22px 18px;border:1px solid var(--st-line-2);border-radius:20px;background:linear-gradient(150deg,#ffffff07,#ffffff01);}
:root .yr-card.is-featured{border-color:#f1b66688;background:linear-gradient(150deg,#edb97314,#ffffff02);}
:root .yr-card-heading{display:flex;justify-content:space-between;align-items:center;gap:6px;flex-wrap:wrap;}
:root .yr-card h3{font-size:14px;margin:0;}
:root .yr-gift{font-size:10px;color:var(--st-gold-1);border:1px solid var(--st-accent-line);padding:3px 6px;border-radius:5px;}
:root .yr-points{display:block;font:750 clamp(23px,2.4vw,32px)/1.3 var(--st-font);margin:22px 0 2px;letter-spacing:-.025em;white-space:nowrap;}
:root .yr-breakdown{font-size:12px;color:var(--st-muted);margin:4px 0 32px;}
:root .yr-breakdown b{color:var(--st-gold-1);}
:root .yr-price{font-weight:700;font-size:24px;margin:8px 0 16px;}
:root .yr-card>.wf-btn{width:100%;justify-content:center;}
:root .yr-card small{font-size:10px;line-height:1.6;color:var(--st-muted);text-align:center;margin-top:10px;}
:root .yr-custom{grid-column:span 2;}
:root .yr-custom-inputs{display:flex;align-items:center;gap:14px;margin:24px 0 12px;}
:root .yr-custom-inputs input[type=range]{flex:1;min-width:0;accent-color:#f5bc7b;}
:root .yr-custom-inputs input[type=number]{width:95px;padding:9px;color:var(--st-text);background:#ffffff0b;border:1px solid var(--st-line);border-radius:10px;}
:root .yr-policy{font-size:12px;line-height:1.7;text-align:center;color:var(--st-muted);margin-top:20px;}
@media(max-width:1000px){:root .yr-grid{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media(max-width:600px){:root .yr-sheet{padding:32px 14px 20px;}:root .yr-grid{grid-template-columns:1fr;gap:12px;}:root .yr-custom{grid-column:auto;}:root .yr-card{padding:20px;}:root .yr-hero{padding:24px 0 12px;}}
@media (prefers-reduced-motion: reduce) {
  :root .yc-dialog, :root .yc-card, :root .yc-body[data-pane], :root .yc-confirm, :root .yc-launcher i { animation: none; }
  :root .yc-seg-indicator { transition: none; }
}

/* src/studio/dropdowns.css */
/* One shared select language. Keep native semantics, labels, forms and keyboard
   behavior; use the browser's top-layer customizable picker when supported. */
:root select:not([multiple]):not([size]) {
  box-sizing: border-box;
  min-width: 0;
  max-width: 100%;
  min-height: 42px;
  padding: 0 38px 0 13px;
  border: 1px solid var(--st-line-2, #ffffff20);
  border-radius: 12px;
  background-color: var(--st-inset, #101217);
  background-image: var(--st-chevron);
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 15px;
  color: var(--st-text, #f2f0ec);
  font: 500 13px/1.4 var(--st-font, sans-serif);
  color-scheme: dark;
  appearance: none;
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}
:root select:not([multiple]):not([size]):hover:not(:disabled) { border-color: #f4bf7966; }
:root select:not([multiple]):not([size]):focus-visible {
  outline: none;
  border-color: #f4bf7999;
  box-shadow: 0 0 0 3px #f4bf791c;
}
:root select:not([multiple]):not([size]):disabled { opacity: .48; cursor: not-allowed; box-shadow: none; }
:root select option { background-color: #17191f; color: #edeae5; }
:root select option:disabled { color: #777b84; }

@supports (appearance: base-select) {
  :root select:not([multiple]):not([size]),
  :root select:not([multiple]):not([size])::picker(select) { appearance: base-select; }
  :root select:not([multiple]):not([size]) { background-image: none; padding-right: 13px; gap: 12px; align-items: center; }
  :root select:not([multiple]):not([size])::picker-icon {
    content: '';
    display: block;
    flex-shrink: 0;
    margin-inline-start: auto;
    width: 15px;
    height: 15px;
    background: var(--st-chevron) center / 15px no-repeat;
    transition: transform 180ms ease;
  }
  :root select:not([multiple]):not([size]):open::picker-icon { transform: rotate(180deg); }
  :root select:not([multiple]):not([size])::picker(select) {
    box-sizing: border-box;
    padding: 6px;
    margin-block: 6px;
    border: 1px solid #ffffff24;
    border-radius: 14px;
    max-height: min(330px, 55dvh);
    max-width: calc(100vw - 28px);
    overflow-y: auto;
    overscroll-behavior: contain;
    background: linear-gradient(145deg, #24242c, #14161c 80%);
    color: #f2f0ec;
    box-shadow: 0 16px 48px #0008, inset 0 1px #ffffff09;
    scrollbar-width: thin;
  }
  :root select:not([multiple]):not([size]) option {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 38px;
    padding: 9px 11px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: #e4e2df;
    font: 500 13px/1.5 var(--st-font, sans-serif);
    white-space: normal;
    overflow-wrap: anywhere;
    cursor: pointer;
  }
  :root select:not([multiple]):not([size]) option:hover:not(:disabled),
  :root select:not([multiple]):not([size]) option:focus-visible {
    outline: none;
    background: #ffffff0c;
    border-color: #ffffff0c;
  }
  :root select:not([multiple]):not([size]) option:checked {
    color: #f7d4a0;
    background: linear-gradient(100deg, #f4bf791e, #f4bf790a);
    border-color: #f4bf792e;
  }
  :root select:not([multiple]):not([size]) option::checkmark {
    order: 1;
    margin-inline-start: auto;
    color: #f7c37d;
    font-size: 13px;
  }
  :root select:not([multiple]):not([size]) option:disabled { color: #777b84; opacity: .7; cursor: not-allowed; }
  :root select optgroup { padding: 6px 2px; font: 650 11px/1.6 var(--st-font, sans-serif); color: #aaa7a0; }
}
/* Existing custom menus retain their interaction and focus management. */
:root [role="listbox"], :root [role="menu"] {
  border: 1px solid var(--st-line-2, #ffffff20);
  border-radius: 14px;
  background-color: #16181f;
  color: var(--st-text, #f2f0ec);
  box-shadow: 0 14px 42px #0006;
}
:root [role="listbox"] [role="option"], :root [role="menu"] [role="menuitem"] { border-radius: 8px; }
:root [role="listbox"] [role="option"]:hover, :root [role="menu"] [role="menuitem"]:hover { background-color: #ffffff0b; }
:root [role="listbox"] [role="option"][aria-selected="true"] { background-color: #f4bf791a; color: #f7d4a0; }
@media (prefers-reduced-motion: reduce) {
  :root select:not([multiple]):not([size]), :root select::picker-icon { transition: none; }
}

/* source: /assets/canvas-image-mentions-afe8e9fe5471.css */
.wf-image-prompt-wrap{position:relative;min-width:0;display:flex;flex-direction:column;flex:1}
.wf-image-prompt-editor{white-space:pre-wrap;overflow-wrap:anywhere;outline:none;overflow-y:auto;line-height:2;cursor:text;min-height:360px;tab-size:4}
.wf-image-prompt-editor:empty:before{content:attr(data-placeholder);color:#747a85;pointer-events:none}
.wf-image-prompt-editor:focus{border-color:#bca46d;box-shadow:0 0 0 2px #bca46d20}
.wf-image-mention{display:inline-flex;box-sizing:border-box;height:20px;vertical-align:middle;align-items:center;gap:4px;max-width:100%;padding:1px 5px 1px 2px;margin:0 2px;border:1px solid #ffffff1a;border-radius:6px;background:#ffffff08;color:#dce0e7;font:500 11px/16px system-ui,sans-serif;white-space:nowrap;cursor:default;user-select:all}
.wf-image-mention img{display:block;flex:none;width:16px;height:16px;object-fit:cover;border-radius:3px;pointer-events:none}
.wf-image-mention .wf-mention-name{display:block;min-width:0;max-width:110px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.wf-mention-check{color:#78b4cd;font-size:10px;margin-left:0;opacity:.85}
.wf-image-mention.unavailable{border-color:#986d3e;color:#e2b480;background:#3a3025}
.wf-image-mention.unavailable .wf-mention-check{color:#e2b480}
.wf-mention-help{margin:7px 0 0;color:#9196a1;font-size:12px}
.wf-mention-help kbd{font:inherit;padding:1px 5px;border:1px solid #44464c;border-radius:4px;color:#d7dae1}
.wf-image-mention-menu{position:fixed;z-index:11000;background:#252528;color:#e7e7eb;border:1px solid #4a4b50;border-radius:16px;padding:9px;box-shadow:0 12px 40px #0008;overflow:auto;overscroll-behavior:contain}
.wf-image-mention-menu .wf-mention-search{box-sizing:border-box;width:100%;min-width:0;padding:10px;border:1px solid #4b4c51;border-radius:10px;background:#252528;color:#e7e7eb;font-size:14px;outline:none}.wf-image-mention-menu .wf-mention-search:focus{border-color:#bca46d}
.wf-mention-heading{color:#92929b;font-size:12px;padding:13px 10px 6px}
.wf-mention-option{width:100%;display:flex;align-items:center;gap:10px;text-align:left;border:0;background:transparent;color:inherit;border-radius:9px;padding:9px;cursor:pointer;font:inherit}
.wf-mention-option.active,.wf-mention-option:hover{background:#3b3c42}
.wf-mention-option[aria-disabled=true]{opacity:.5;cursor:not-allowed}
.wf-mention-option img,.wf-mention-noimage{width:32px;height:36px;object-fit:cover;border-radius:6px;flex:none}
.wf-mention-option>span:not(.wf-mention-noimage){min-width:0;flex:1}
.wf-mention-option strong{font-size:14px;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.wf-mention-option small{display:block;font-size:12px;color:#aaaeb8;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.wf-mention-option .wf-mention-unavailable{font-size:10px;flex:none}.wf-mention-empty{padding:14px;color:#a2a5ad;font-size:13px}
@media(max-width:640px){.wf-image-prompt-editor{min-height:300px}.wf-image-mention-menu{max-width:calc(100vw - 24px)}}

/* source: /assets/canvas-search-ae6da801421d.css */
.wf-canvas-asset-panel{width:min(420px,calc(100vw - 48px));max-width:100%}.wf-canvas-asset-footer{display:flex;flex-wrap:wrap;gap:8px}.wf-canvas-asset-footer>.primary{flex-basis:100%}.canvas-asset-search{flex:1;min-width:0;width:0;min-height:36px;box-sizing:border-box;border:1px solid #3b3b3b;border-radius:8px;background:#171717;color:#eee;padding:8px 10px}
/* source: /assets/canvas-copy-286a2f055c41.css */
.wf-video-workspace{min-width:0}.wf-segment-picker{display:flex!important;flex-wrap:nowrap!important;overflow-x:auto!important;overflow-y:hidden;max-width:100%;min-width:0;gap:8px;scrollbar-width:thin;scrollbar-color:#605346 transparent;overscroll-behavior-x:contain}.wf-segment-picker>.wf-segment-choice{position:relative;flex:0 0 auto!important;min-width:96px}.wf-segment-picker>.canvas-custom-add{flex:0 0 auto!important;margin-left:auto;white-space:nowrap}.wf-segment-choice>.canvas-segment-delete{position:absolute!important;inset:3px 3px auto auto!important;width:22px!important;height:22px!important;min-width:0!important;min-height:0!important;padding:0!important;margin:0;border:0!important;border-radius:50%;background:#a32929!important;color:#fff!important;display:flex!important;align-items:center;justify-content:center;font-size:20px;line-height:1;opacity:0;pointer-events:none;z-index:2}.wf-segment-choice:hover>.canvas-segment-delete,.wf-segment-choice:focus-within>.canvas-segment-delete{opacity:1;pointer-events:auto}.wf-segment-choice:has(.canvas-segment-delete)>button:first-child{padding-right:28px}@media(hover:none){.wf-segment-choice>.canvas-segment-delete{opacity:1;pointer-events:auto}}.wf-segment-choice strong{white-space:nowrap}
