*{box-sizing:border-box} :root{font-family:Arial,"PingFang SC","Microsoft YaHei",sans-serif;color:#262729;background:#f7f7f8;font-size:14px}body{margin:0}button,input,textarea,select{font:inherit;color:inherit}button{cursor:pointer;border:0;background:transparent;border-radius:8px}button:hover{background:#ececef}button:disabled{cursor:not-allowed;opacity:.4}button:focus-visible,a:focus-visible{outline:2px solid #709bef;outline-offset:2px}a{color:inherit;text-decoration:none}svg{width:20px;height:20px;vertical-align:middle;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}input,textarea{outline:none;border:1px solid #e8e8eb;border-radius:8px;background:#fff}input:focus,textarea:focus{border-color:#aebed8}textarea{resize:none}small,.muted{color:#919398;font-size:12px}.notice{height:40px;display:flex;align-items:center;justify-content:center;gap:9px;background:linear-gradient(105deg,#9573f4,#47b8e4 36%,#3b96e8);color:white;font-size:13px}.notice u{color:#fff7aa;text-underline-offset:3px}.notice button{position:absolute;right:22px;color:#ffffffb0;font-size:22px}.sidebar{position:fixed;left:0;top:40px;bottom:0;width:72px;border-right:1px solid #eaeaec;display:flex;align-items:center;flex-direction:column;padding:72px 8px 16px;gap:12px;background:#f8f8f9}.nav{width:56px;height:57px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:8px;font-size:11px;color:#64666a}.nav svg{width:21px;height:21px}.nav.active{color:#18191c;font-weight:600}.nav.active svg{fill:none;stroke:currentColor}.sidebar .spacer{flex:1}.credits{border:1px solid #e8e8eb;border-radius:12px;width:56px;text-align:center;font-size:10px;padding:9px 1px}.credits button{color:#518bf3;font-size:11px;margin-top:9px}.avatar{width:34px;height:34px;border-radius:50%;background:#efe6fb}.workspace{height:calc(100dvh - 40px);margin-left:72px;padding:24px 34px;display:grid;grid-template-columns:460px minmax(280px,1fr) 160px;gap:12px}.panel{border:1px solid #e7e7ea;border-radius:16px;min-width:0;background:#f8f8f9}.editor{display:flex;flex-direction:column;padding:10px;position:relative}.edit-header{height:50px;display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:8px}.skill-trigger{display:flex;align-items:center;gap:14px;background:linear-gradient(90deg,#eeeeef,transparent);height:50px;flex:1;text-align:left;padding:5px 10px;font-weight:600}.skill-trigger img{width:42px;height:42px;object-fit:cover;border-radius:7px}.skill-trigger small{display:block;font-weight:400;font-size:10px;margin-top:4px}.new{font-size:12px;padding:12px;white-space:nowrap}.input-card{border:1px solid #e4e4e8;box-shadow:0 1px 3px #00000005;border-radius:12px;background:#fafafa;flex:1;display:flex;flex-direction:column;min-height:180px;padding:12px 16px}.input-tools{display:flex;align-items:center;justify-content:space-between;height:24px;margin-bottom:10px;font-size:11px;color:#8e9298}.tools{display:flex;gap:6px}.icon-btn{padding:4px;color:#9197a0}.icon-btn svg{width:17px;height:17px}.materials{display:flex;gap:20px;align-items:flex-start;margin-bottom:14px;flex-wrap:wrap}.material{text-align:center;position:relative;width:72px;flex-shrink:0}.material-box{width:64px;height:64px;border:1px solid #e7e7e9;border-radius:12px;display:flex;align-items:center;justify-content:center;position:relative;background:#f9f9fa;padding:0}.material-box>svg{width:39px;height:39px;color:#c5c7cc;stroke-width:1.2}.material-box img{width:100%;height:100%;object-fit:cover;border-radius:11px}.add-dot{position:absolute;right:2px;bottom:3px;width:17px;height:17px;background:#72767b;color:#fff;border-radius:100%;font-size:14px;line-height:15px;border:2px solid white}.material small{font-size:10px;display:block;white-space:nowrap;margin-top:7px}.material-delete{position:absolute;right:4px;top:2px;border-radius:50%;background:#fff;font-size:12px;padding:1px 4px;display:none}.material:hover .material-delete{display:block}.prompt-wrap{flex:1;position:relative;display:flex;min-height:100px}.prompt{width:100%;height:100%;min-height:110px;border:0;background:transparent;border-radius:0;line-height:1.8;padding:0;font-size:14px}.prompt:focus{border:0}.placeholder{position:absolute;top:0;left:0;color:#85868b;font-size:13px;line-height:1.8;pointer-events:none}.placeholder button{pointer-events:auto;font-size:13px;font-weight:600;padding:0;color:#46484a}.input-bottom{display:flex;justify-content:space-between;align-items:center;margin-top:12px;font-size:11px;color:#93959a}.blue{color:#528bf1}.director-trigger{font-size:12px;padding:6px}.config-row{display:flex;gap:8px;margin:8px 0}.config{border:1px solid #eeeef0;background:#fff;display:flex;align-items:center;gap:10px;flex:1;min-width:0;height:52px;text-align:left;padding:8px}.config>span{font-size:11px;font-weight:600;flex:1}.config small{display:block;font-size:10px;margin-bottom:3px;font-weight:400}.config svg{width:15px;height:15px}.config .config-icon{display:flex;width:31px;height:31px;align-items:center;justify-content:center;border:1px solid #efeff1;border-radius:6px;flex:none}.generate{background:#252527;color:#fff;height:40px;width:100%;font-size:13px;flex-shrink:0;font-weight:600}.generate:hover,.primary:hover{background:#3e3e41}.generate:disabled{opacity:1;background:#939395}.generate small{margin-left:15px;color:#d6d6d8;font-weight:400;font-size:10px}.preview{position:relative;display:flex;flex-direction:column;padding:12px 16px;overflow:hidden}.preview-tabs{display:flex;align-items:center;gap:18px;height:28px;font-size:12px;flex-shrink:0}.preview-tabs button{position:relative;padding:5px 0}.preview-tabs .selected{font-weight:600}.preview-tabs .selected:after{content:"";position:absolute;width:21px;height:2px;background:#3f4144;bottom:-3px;left:50%;transform:translateX(-50%)}.preview-actions{margin-left:auto;display:flex;gap:8px}.preview-actions button{font-size:11px;padding:6px}.preview-body{flex:1;display:flex;align-items:center;justify-content:center;flex-direction:column;min-height:0}.empty-preview{text-align:center;width:100%;transform:translateY(-2px)}h2{font-size:18px;margin:0 0 8px}h3{font-size:16px;margin:0}.empty-preview p{margin:0;color:#999;font-size:14px}.empty-preview p button{padding:0;color:#528bf1}.hero-stack{height:215px;position:relative;margin:36px auto 0;max-width:400px;width:100%;display:flex;align-items:center;justify-content:center;filter:drop-shadow(0 16px 15px #a0a7aa22)}.hero-stack img{position:absolute;object-fit:cover;border:2px solid #ffffffa0;border-radius:15px}.hero-stack img:nth-child(1){width:72%;height:95px;opacity:.3}.hero-stack img:nth-child(2){width:64%;height:138px;transform:rotate(-3deg);opacity:.6}.hero-stack img:nth-child(3){width:44%;height:195px}.queue{padding:12px 10px}.queue-head{display:flex;justify-content:space-between;align-items:center;white-space:nowrap;font-size:12px;font-weight:600}.queue-head button{padding:4px 0}.queue-head small{font-size:9px;font-weight:400}.task{border:1px solid #e4e4e8;border-radius:11px;margin-top:12px;display:flex;gap:9px;padding:9px;position:relative;cursor:pointer;background:#fff}.task.active{box-shadow:0 0 0 1px #d6d7dc}.task-thumb{width:52px;height:52px;border-radius:8px;background:#ececee;display:grid;place-items:center;color:#a0a2a8;flex:none;overflow:hidden}.task-thumb img{width:100%;height:100%;object-fit:cover}.task-text{font-size:11px;font-weight:600;padding-top:4px}.task-text small{font-size:9px;display:block;font-weight:400;line-height:1.5;margin-top:4px}.task-actions{position:absolute;bottom:3px;right:3px;display:none;background:#fff;border-radius:5px}.task:hover .task-actions{display:flex}.task-actions button{font-size:12px;padding:2px 5px}.queue-collapsed{grid-template-columns:460px minmax(280px,1fr) 34px}.queue-collapsed .queue{padding:12px 7px}.queue-collapsed .queue-head{writing-mode:vertical-rl;gap:10px}.popover{position:fixed;z-index:30;background:#fff;border:1px solid #e5e5e8;border-radius:15px;box-shadow:0 12px 45px #0002;padding:20px}.pop-backdrop{position:fixed;inset:0;z-index:29}.settings-pop{left:342px;bottom:140px;width:346px}.model-pop{left:118px;bottom:140px;width:390px}.setting-label{font-size:12px;margin-bottom:12px;font-weight:500}.choices{display:flex;gap:7px;margin-bottom:21px}.choice{border:1px solid #e6e6e9;border-radius:8px;flex:1;min-height:34px;padding:8px 5px;font-size:11px;text-align:center}.choice.active{border-color:#393a3e;background:#f1f1f3}.ratio-shape{margin:0 auto 7px;border:1px solid #9b9da2;width:19px;height:15px;border-radius:2px}.range{width:100%;accent-color:#26272b}.range-labels{display:flex;justify-content:space-between;font-size:11px;color:#96999f}.model-option{display:block;width:100%;text-align:left;padding:14px 10px;border:1px solid transparent;margin-top:6px}.model-option.active{background:#f5f5f7;border-color:#e8e8eb}.model-option strong{font-size:13px}.model-option small{display:block;margin-top:5px}.badge{font-size:9px;color:#558ed6;background:#eef6ff;border-radius:4px;padding:3px 5px;margin-left:8px}.skills-pop{left:118px;top:124px;width:720px;padding:24px}.skills-top{display:flex;align-items:center;justify-content:space-between}.skills-top small{display:block;margin-top:7px}.skill-tabs{display:flex;gap:7px;margin:20px 0}.skill-tabs button{padding:8px 15px;font-size:12px}.skill-tabs .active{background:#f0f0f2;font-weight:600}.search{height:34px;padding:8px 11px;width:100%;font-size:12px}.skills-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:18px}.skill-card{border:1px solid #e9e9eb;border-radius:10px;overflow:hidden;padding:0;text-align:left}.skill-card img{width:100%;height:86px;object-fit:cover}.skill-card strong{display:block;margin:10px 11px 5px;font-size:13px}.skill-card small{display:block;margin:0 11px 12px;font-size:10px}.skill-card.active{border-color:#555}.skills-foot{text-align:center;color:#b2b2b7;font-size:11px;margin:22px 0 0}.modal-backdrop{position:fixed;inset:0;background:#252e4166;backdrop-filter:blur(5px);z-index:50;display:flex;align-items:center;justify-content:center;padding:20px}.modal{background:#fff;border:1px solid #e2e2e8;border-radius:14px;width:700px;max-width:100%;box-shadow:0 24px 80px #0002;overflow:hidden;display:flex;flex-direction:column;max-height:88vh}.modal-header{padding:17px 20px;border-bottom:1px solid #eee;display:flex;align-items:center;justify-content:space-between;font-size:14px;font-weight:600}.close{font-size:22px;line-height:20px;font-weight:300;color:#9a9da3}.modal-content{padding:24px}.modal-footer{padding:14px 18px;display:flex;align-items:center;justify-content:flex-end;gap:10px}.primary{background:#252527;color:#fff;padding:9px 17px;font-size:12px}.secondary{border:1px solid #e7e7ea;padding:8px 17px;font-size:12px}.upload-modal{width:768px;background:linear-gradient(#fff,#fafbfc);height:672px;padding:16px}.upload-modal .modal-header{padding:0 5px 12px;border:0}.upload-modal .modal-header small{display:block;font-size:11px;font-weight:400;margin-top:8px}.upload-content{padding:14px;border:1px solid #ebedf1;border-radius:12px;flex:1;min-height:0;overflow:auto}.tabs{display:flex;gap:22px;margin-bottom:15px;height:29px}.tabs button{font-size:12px;padding:0 4px;border-radius:0}.tabs .active{font-weight:600;border-bottom:2px solid #27282b}.filter-row{display:flex;gap:10px;margin-bottom:14px}.filter-row select{background:#fff;border:1px solid #e8e8eb;border-radius:7px;width:134px;padding:6px;font-size:12px}.filter-pills{display:flex;gap:8px;margin-bottom:14px}.filter-pills button{font-size:11px;padding:6px 11px}.filter-pills .active{background:#edeef1}.asset-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:12px}.asset{padding:0;text-align:left;border:1px solid transparent;border-radius:9px;background:#fff;overflow:hidden;position:relative}.asset.selected{border-color:#518ef0}.asset img{width:100%;aspect-ratio:1;object-fit:cover}.asset-name{font-size:11px;font-weight:600;margin:6px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.asset small{display:block;font-size:9px;margin:4px 6px}.asset-check{position:absolute;top:106px;left:5px;background:#fff;width:17px;height:17px;border:1px solid #ddd;border-radius:4px;color:white;text-align:center}.selected .asset-check{background:#4985e9;border-color:#4985e9}.upload-tile{border:1px dashed #dfe1e5;min-height:162px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:10px}.upload-tile svg{color:#acafb7;width:30px;height:30px}.upload-modal .modal-footer{padding:10px 0 0}.check-all{margin-right:auto;font-size:12px;display:flex;gap:6px;align-items:center}.empty-box{height:420px;display:flex;align-items:center;justify-content:center;flex-direction:column;color:#999fa8;gap:18px}.empty-box>div{background:#fafafa;border:1px dashed #e5e6e9;border-radius:12px;text-align:center;padding:40px 80px}.empty-box svg{width:36px;height:36px;margin-bottom:17px}.field{display:block;font-size:12px;margin-bottom:20px}.field input{display:block;width:100%;padding:11px;margin-top:10px}.saved-content{border:1px solid #ececef;border-radius:9px;padding:14px;line-height:1.8;margin-top:10px}.confirm-modal{width:440px}.stepper{display:flex;justify-content:space-between;align-items:center;padding:12px 0 24px}.stepper>div{display:flex;align-items:center;gap:24px}.stepper button{border:1px solid #e5e6ea;border-radius:6px;width:28px;height:28px}.confirm-cost{padding:16px;background:#f6f6f8;border-radius:8px;font-size:12px;line-height:2.2}.confirm-cost strong{float:right}.expanded-modal{width:1050px;height:80vh}.expanded-modal .input-card{margin:18px;border:0}.director{display:flex;flex-direction:column;min-height:0;flex:1}.director-welcome{flex:1;display:flex;align-items:center;justify-content:center;flex-direction:column}.director-welcome .director-symbol{font-size:56px;color:#dfe2ec;letter-spacing:10px;margin-bottom:22px}.suggestions{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:20px 28px}.suggestions button{font-size:11px;border:1px solid #e7e7ea;padding:9px 7px;white-space:nowrap}.director-composer{border:1px solid #eeeef1;border-radius:12px;background:#fff;padding:12px;box-shadow:0 0 16px #00000003}.director-composer .materials{gap:10px;margin-bottom:8px}.director-composer .material-box{height:47px;width:47px}.director-composer .material{width:65px}.director-composer .material small{font-size:9px}.director-composer textarea{border:0;min-height:64px;width:100%;font-size:12px;line-height:1.6;padding:0}.director-bottom{display:flex;align-items:center;justify-content:space-between;font-size:11px}.send{background:#252527;color:#fff;border-radius:50%;width:32px;height:32px;font-size:23px}.exit-director{align-self:flex-end;background:#28282a;color:white;padding:5px 8px;font-size:10px;margin-bottom:10px}.chat{overflow:auto;flex:1;padding:15px 5px;font-size:13px;line-height:1.8}.chat-bubble{padding:15px;border:1px solid #e8e8ec;border-radius:12px;background:#fff;margin:12px 0}.chat-bubble.user{background:#eef2f8;margin-left:30px}.chat-bubble h4{margin:5px 0}.chat-bubble button{margin-top:12px}.video-result{width:100%;max-height:calc(100% - 35px);height:100%;display:flex;justify-content:center;align-items:center}.video-result video{max-height:100%;max-width:100%;border-radius:12px;background:#eee}.result-meta{color:#a0a3a8;font-size:10px;line-height:2;margin:12px 0;text-align:center}.generating{width:100%;height:70%;background:radial-gradient(#dedee2 1px,transparent 1px);background-size:11px 11px;border-radius:14px;display:flex;align-items:center;justify-content:center}.generating span{padding:18px;border:1px solid #fff;border-radius:16px;background:#f9fafbe8;color:#8f9299;font-size:12px;box-shadow:0 5px 25px #00000008}.favorites{display:grid;grid-template-columns:repeat(2,1fr);gap:15px;width:100%;padding:24px 0;align-self:flex-start}.favorite img{width:100%;border-radius:10px}.favorite{text-align:left;padding:8px;border:1px solid #e7e7eb}.favorite p{font-size:12px}.editing-screen{position:fixed;inset:40px 0 0;background:#f5f5f6;z-index:25;display:flex;flex-direction:column}.edit-topbar{height:55px;background:white;display:flex;align-items:center;justify-content:space-between;padding:10px 20px}.edit-columns{flex:1;min-height:0;padding:8px;display:grid;grid-template-columns:280px 1fr 360px;gap:8px}.edit-columns>section{border:1px solid #e8e8ec;border-radius:9px;background:#fff;min-height:0;padding:16px}.edit-player{display:flex;align-items:center;justify-content:center}.edit-player video{height:100%;max-width:100%;border-radius:8px}.edit-asset img{width:100%;height:140px;object-fit:cover;border-radius:6px}.edit-asset small{display:block;margin-top:8px}.edit-tabs{display:flex;gap:15px;border-bottom:1px solid #eee;margin-bottom:20px}.edit-tabs button{font-size:12px;padding:9px 0}.edit-tabs .active{border-bottom:2px solid #252527;border-radius:0}.edit-prompt{width:100%;height:125px;padding:10px;font-size:13px;line-height:1.8}.speed-fields label{display:block;font-size:12px;margin:16px 0}.speed-fields input[type=number]{width:90px;padding:8px;float:right}.timeline{height:300px;border:1px solid #e4e5e8;border-radius:9px;margin:0 8px 8px;background:#fafafa}.timeline-tools{height:40px;background:#fff;display:flex;align-items:center;justify-content:space-between;padding:6px 15px}.timeline-tools button{margin:0 7px}.ruler{display:flex;justify-content:space-between;padding:20px 25px;font-size:10px;color:#9da0a8}.track{position:relative;margin:15px 45px;border:2px solid #5a95e7;border-radius:6px;background:#dae7f9;height:55px;display:flex;overflow:hidden;width:48%;max-width:85%;min-width:70px}.track img{height:100%;width:55px;object-fit:cover}.track span{position:absolute;left:10px;top:8px;color:white;text-shadow:0 1px 2px #000}.timeline input[type=range]{width:calc(100% - 90px);margin:0 45px}.notice-hidden .notice{display:none}.notice-hidden .sidebar{top:0}.notice-hidden .workspace{height:100dvh}.notice-hidden .editing-screen{top:0}#toast{position:fixed;top:60px;left:50%;transform:translateX(-50%);padding:12px 20px;background:#fff;border:1px solid #e8e8eb;border-radius:10px;box-shadow:0 8px 35px #0002;font-size:13px;z-index:100;display:none}.empty-message{color:#a0a3aa;text-align:center;margin:auto;font-size:13px}.demo-note{font-size:10px;color:#9b9ea6;margin-top:10px}.reference-menu{position:absolute;left:0;top:35px;background:#fff;border:1px solid #ddd;box-shadow:0 8px 30px #0001;border-radius:8px;padding:8px;z-index:10}.reference-menu button{display:block;padding:8px;font-size:12px}.saved-item{border:1px solid #e9e9ec;border-radius:10px;padding:15px;margin:12px 0}.saved-item p{font-size:12px;color:#777}.saved-item button{font-size:12px;margin-right:10px}.mobile-toggle{display:none}@media(min-width:1500px){.workspace{grid-template-columns:460px minmax(280px,1fr) 200px;max-width:2000px;margin-right:auto}}@media(max-width:1100px){.workspace{padding:18px;grid-template-columns:390px minmax(230px,1fr) 130px}.task{padding:5px;gap:6px}.task-thumb{width:40px;height:45px}.queue-collapsed{grid-template-columns:390px minmax(230px,1fr) 34px}.suggestions{margin:20px 0;gap:5px}.skills-pop{left:95px;width:680px}}@media(max-width:800px){.notice{font-size:10px;padding:0 30px 0 10px;overflow:hidden;white-space:nowrap;justify-content:flex-start;height:32px}.sidebar{top:auto!important;bottom:0;width:100%;height:58px;flex-direction:row;padding:3px 10px;justify-content:space-around;z-index:20;background:#fff}.sidebar .nav{height:48px;gap:4px;font-size:10px}.sidebar .spacer,.sidebar .credits,.sidebar .avatar,.sidebar>.icon-btn{display:none}.workspace{margin:0}.editor,.preview,.queue{width:100%;flex:none}.skills-pop{top:85px;left:12px;width:calc(100% - 24px);max-height:75vh;overflow:auto;padding:16px}.skills-grid{grid-template-columns:repeat(2,1fr)}.skill-tabs{gap:0;flex-wrap:wrap}.skill-tabs button{padding:8px 9px}.settings-pop,.model-pop{left:15px;bottom:178px;width:calc(100% - 30px)}.asset-grid{grid-template-columns:repeat(3,1fr)}.upload-modal{height:80vh;padding:10px}.upload-content{padding:10px}.asset-check{top:65px}.empty-box>div{padding:30px}.modal-content{padding:17px}.modal-backdrop{padding:12px}.suggestions{margin:20px 8px}.edit-columns{grid-template-columns:1fr 1fr}.edit-columns>section:first-child{display:none}.edit-columns>section{padding:10px}.timeline{height:200px}.editing-screen{top:32px;bottom:58px}.queue-collapsed{display:flex}.hero-stack{max-width:350px}.expanded-modal{height:80vh}.preview-body{overflow:auto}.notice-hidden .workspace{height:calc(100dvh - 58px)}}
.record-icon{display:grid;place-items:center;width:78px;height:78px;background:#f4f5f8;border:1px solid #e8eaf0;border-radius:50%;margin:0 auto 22px}.record-icon svg{height:35px;width:35px;color:#858b96}.filter-pills button:first-child{margin-right:auto}.chat-bubble h4{font-size:14px}.material-box>img[src*="55edb902"],.material-box>img[src*="48066eae"]{object-fit:contain;padding:5px}
.hero-reference{width:100%;max-width:400px;aspect-ratio:400/245;margin:22px auto 0;background-image:url('/assets/video-reference-screen.png');background-size:320% auto;background-position:71.3636% 58.6259%;background-repeat:no-repeat;mix-blend-mode:multiply}.director-guide{width:104px;height:auto;margin-bottom:26px}.settings-pop{left:192px;width:368px;padding:12px;border-radius:10px}.settings-pop .setting-label{font-size:10px;margin-bottom:8px}.settings-pop .choices{gap:8px;margin-bottom:12px;padding-bottom:9px;border-bottom:1px solid #f0f0f2}.settings-pop .choice{font-size:11px;line-height:1.5;position:relative}.settings-pop .choice.active:after{content:'✓';position:absolute;right:4px;top:4px;background:#27282b;color:#fff;border-radius:50%;width:11px;height:11px;font-size:8px;line-height:11px}.settings-pop .choices:first-of-type .choice{padding-top:14px}.ratio-shape{width:32px;height:23px}.skills-pop{left:118px;top:134px;width:442px;border-radius:10px;padding:16px 12px;box-shadow:0 10px 25px #00000008}.skills-top h3{font-size:14px}.skills-top>div{display:flex;align-items:center;gap:13px}.skills-top small{font-size:10px;margin:0}.skills-top>button{position:absolute;right:10px;top:12px;font-size:9px}.skill-tabs{gap:14px;margin:17px 0 12px;padding:0 4px;height:24px}.skill-tabs button{padding:0;font-size:10px;border-radius:0;white-space:nowrap}.skill-tabs .active{background:none;color:#5689d8;border-bottom:2px solid #5689d8}.skills-pop>.search{position:absolute;right:16px;top:49px;width:69px;height:28px;font-size:10px;padding:5px;border:0;background:transparent}.skills-grid{grid-template-columns:repeat(2,1fr);gap:9px;margin:0}.skill-card{min-height:76px;padding:12px;display:grid;grid-template-columns:49px 1fr;grid-template-rows:22px auto;column-gap:10px;align-items:start;background:#fcfcfd}.skill-card img{width:49px;height:49px;border:3px solid #e9e9eb;border-radius:10px;grid-row:1/3}.skill-card strong{margin:3px 0 0;font-size:12px}.skill-card small{margin:0;font-size:9px;line-height:1.5}.skills-foot{font-size:10px;margin:15px 0 0}.model-pop{width:350px}.empty-preview{transform:translateY(2px)}@media(max-width:1100px) and (min-width:801px){.skills-pop{left:101px;width:368px}.skills-top>div{gap:6px}.skills-top small{font-size:9px}.skill-tabs{gap:9px}.skills-pop>.search{width:52px}.skill-card{padding:8px;column-gap:7px;grid-template-columns:40px 1fr}.skill-card img{width:40px;height:44px}.settings-pop{left:101px;width:368px}}@media(max-width:800px){.settings-pop{left:15px;width:calc(100% - 30px)}.skills-pop{left:20px;top:110px;width:calc(100% - 40px);padding:13px 10px}.skills-top>div{display:block}.skills-top small{display:block;margin-top:6px}.skill-tabs{gap:9px;margin-top:14px}.skills-pop>.search{top:55px;right:10px;width:52px}.skill-tabs button{font-size:9px}.skill-card{padding:9px;grid-template-columns:38px 1fr;column-gap:6px}.skill-card img{width:38px;height:43px}.skill-card strong{font-size:11px}.skill-card small{font-size:9px}.hero-reference{max-width:350px}.director-guide{width:95px}}
.pipeline-controls{padding:12px 18px;display:grid;gap:8px}.pipeline-controls small{color:#777;font-size:11px}.real-result{padding:24px;max-width:800px;margin:auto;width:100%;overflow:auto;max-height:100%}.real-result video{width:100%;max-height:420px;background:#111;border-radius:12px}.real-result pre{white-space:pre-wrap;line-height:1.8;font:13px/1.8 inherit}.pipeline-stages{display:flex;gap:12px;color:#527be8;font-size:12px}.api-error{color:#c83a40;background:#fff0f0;padding:12px}.api-form{padding:22px;line-height:1.7}.api-form label{display:block;margin:16px 0}.api-form input{display:block;width:100%;padding:10px;border:1px solid #ddd;border-radius:6px}.real-result details{margin-top:16px}
.history-item{display:block;width:100%;padding:14px;text-align:left;border-bottom:1px solid #eee}.real-result pre{font-family:inherit;font-size:13px;line-height:1.8}.preview-body{overflow:auto}
.generating{position:relative;isolation:isolate;min-height:min(60vh,36rem);height:auto;flex-shrink:0;width:100%;overflow:hidden;background:#efefef;border:1px solid #e5e7eb;border-radius:12px;backdrop-filter:blur(4px) saturate(1.35)}.matrix-canvas{position:absolute;inset:0;width:100%;height:100%;z-index:0}.generating span{position:relative;z-index:1;max-width:min(30rem,88%);padding:12px 16px;border:1px solid #ffffff73;border-radius:12px;background:#ffffff0a;color:#858585;font-size:12px;line-height:1.625;box-shadow:0 16px 44px #0f172a1f,inset 0 1px #ffffffb3;backdrop-filter:blur(24px) saturate(1.5)}.script-document pre{white-space:pre-wrap;font:13px/1.85 Arial,"PingFang SC",sans-serif;margin:8px 0}.generation-error{text-align:center;padding:20px}.generation-error p{color:#a46363;font-size:12px}.preview-tabs{margin-bottom:12px}.preview-tabs>button+button:before{content:'';position:absolute;left:-10px;top:6px;height:16px;border-left:1px solid #e6e6e8}
@media(max-width:800px){.workspace,.workspace.show-preview{display:flex;flex-direction:column;height:auto!important;min-height:100dvh;padding:16px clamp(12px,4.5vw,28px) calc(80px + env(safe-area-inset-bottom));gap:12px}.workspace .editor,.workspace.show-preview .editor{display:flex;min-height:510px}.workspace .preview,.workspace.show-preview .preview{display:flex;padding:12px;min-height:380px}.workspace .queue{display:block;width:100%;padding:10px 8px}.mobile-toggle{display:none}.queue .task-thumb{width:52px;height:52px}.queue .task{padding:10px}.queue .task-text{font-size:11px}.queue .task-text small{font-size:10px}.edit-header{gap:0}.edit-header .new{padding:8px 5px;font-size:10px}.skill-trigger{gap:7px;padding:4px;min-width:0}.skill-trigger img{width:36px;height:36px}.skill-trigger span{font-size:12px}.pipeline-controls{padding:10px 0}.preview-body{min-height:332px}.input-card{min-height:260px}.director{min-height:430px}.chat{max-height:none;overflow:visible;flex:none}.chat-bubble{overflow-wrap:anywhere}.workspace .preview-body{overflow:visible}.queue-collapsed .queue-head{writing-mode:horizontal-tb}.sidebar{height:calc(58px + env(safe-area-inset-bottom));padding-bottom:calc(3px + env(safe-area-inset-bottom))}.notice{display:none}.sidebar .nav{font-size:11px}.video-result{height:440px}.video-result video{max-height:440px}.editor{padding:8px}.generating{min-height:min(60vh,36rem)}}
.task-thumb video{width:100%;height:100%;object-fit:cover;pointer-events:none}.task-loading{background-color:#efefef;background-image:radial-gradient(#b6b8bd 0.6px,transparent .8px);background-size:5px 5px}.script-document p{margin:8px 0;line-height:1.8}.script-document h4{font-size:15px;margin:16px 0 8px}
.task-skill{display:block;font-size:10px;color:#777;margin-bottom:4px}.task-text{min-width:0;overflow-wrap:anywhere}
.queue{overflow-y:auto}.script-document{overflow-wrap:anywhere}@media(max-width:800px){.queue{overflow-y:visible}}
.task.active .task-actions,.task:focus-within .task-actions{display:flex}
.script-tools{display:flex;gap:8px}.script-tools button{flex:1;font-size:12px;padding:8px}.script-source{font-size:11px;color:#6e819b;padding:8px 0;border-bottom:1px solid #eee}

/* Task selection restores the editor and preview, as on the reference workbench. */
.queue .task{display:block;padding:0;overflow:hidden;background:transparent}
.queue .task.active{background:#fff;box-shadow:0 0 0 1px #d6d7dc}
.task-open{display:flex;align-items:center;gap:9px;text-align:left;width:100%;min-height:72px;padding:9px;border-radius:10px}
.task-open:hover{background:#ffffff80}.task-open .task-text{padding-top:0}
.task-actions{left:0;right:0;bottom:0;justify-content:space-between;padding:5px 7px 2px;background:linear-gradient(transparent,#0007);border-radius:0;color:white;pointer-events:none}
.task-actions button{pointer-events:auto}.task-actions svg{width:15px;height:15px}.task-favorite[aria-pressed=true] svg{fill:currentColor}
.task-list{min-width:0}.preview,.editor,.queue{scroll-margin-top:16px}
@media(max-width:800px){.queue .task{padding:0}.task-open{padding:10px;min-height:72px}.task-open .task-thumb{width:52px;height:52px}.queue .task-text{font-size:11px}}

.estimate-note{font-size:12px;line-height:1.7;color:#85878d;margin:14px 0 0}.estimate-note summary{cursor:pointer}.estimate-note a{text-decoration:underline}.generate .estimated-cost{white-space:nowrap;font-size:12px}.generate{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:4px 12px;height:auto;min-height:40px;padding:9px 12px}.generate .estimated-cost{margin-left:0}
/* Inline reference images match the material numbering sent to the model. */
.image-reference{display:inline-flex;align-items:center;vertical-align:middle;gap:5px;padding:2px 5px;margin:0 2px;border:1px solid #d7d7da;border-radius:7px;background:#ededee;color:#232427;font-size:inherit;font-weight:600;line-height:1.4;white-space:nowrap;cursor:pointer;user-select:all}
.image-reference img{width:23px;height:23px;object-fit:cover;border-radius:4px;background:#fff;flex:none}
.image-reference:hover{background:#e3e3e6}.image-reference:focus-visible{outline:2px solid #709bef;outline-offset:2px}
.rich-prompt{white-space:pre-wrap;overflow-wrap:anywhere;overflow-y:auto;outline:none;min-width:0;flex:1;max-height:60vh;cursor:text}
.rich-prompt:empty:before{content:''}.reference-menu{top:auto;bottom:0;max-height:200px;overflow:auto;max-width:100%;z-index:10}.reference-menu button{display:flex;align-items:center;gap:7px;max-width:100%;text-align:left}.reference-menu img{width:28px;height:28px;border-radius:5px;object-fit:cover}
@media(max-width:800px){.rich-prompt{max-height:none;overflow:visible;min-height:180px}.expanded-modal .rich-prompt{max-height:50vh;overflow:auto}.image-reference img{width:22px;height:22px}}

/* Keep the creation selector beside the model and video settings. */
.editor{container-type:inline-size}
.edit-header{justify-content:flex-end}
.config-row{display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.3fr) minmax(0,1.2fr)}
.skill-trigger .skill-icon{display:grid;place-items:center;width:42px;height:42px;flex:none}
.skill-icon svg{width:24px;height:24px}
.config-row button>svg{width:13px;height:13px;flex:none}
.config-row .config>span:not(.config-icon){min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;line-height:1.4}
.skills-pop{height:420px;display:flex;flex-direction:column;overflow:hidden;max-width:calc(100vw - 24px)}
.skills-pop .skills-top,.skills-pop .skill-tabs,.skills-pop .skills-foot{flex-shrink:0}
.skills-pop .skills-grid{flex:1;min-height:0;overflow-y:auto;align-content:start;scrollbar-gutter:stable}
.skills-pop .skills-grid>.muted{grid-column:1/-1}
@container(max-width:540px){
  .config-row{gap:6px}
  .config-row .config{gap:5px;padding:7px}
  .config-row .config-icon{display:none}
}
@container(max-width:340px){
  .config-row .config>span{font-size:10px}
  .config-row button>svg{width:10px;height:10px}
}

/* Increase skill-picker text by 20% without resizing its fixed frame. */
.skills-pop{font-size:16.8px}
.skills-pop .skills-top h3{font-size:16.8px}
.skills-pop .skills-top small{font-size:12px}
.skills-pop .skills-top>button{font-size:10.8px}
.skills-pop .skill-tabs button{font-size:14.4px}
.skills-pop>.search{font-size:12px}
.skills-pop .skill-card strong{font-size:14.4px}
.skills-pop .skill-card small{font-size:10.8px}
.skills-pop .skills-foot{font-size:12px}
.skills-pop .skills-grid>.muted{font-size:14.4px}
@media(max-width:1100px) and (min-width:801px){
  .skills-pop .skills-top small{font-size:10.8px}
}
@media(max-width:800px){
  .skills-pop .skill-tabs button{font-size:12.96px}
  .skills-pop .skill-card strong{font-size:13.2px}
}

/* Original categories and imported template groups share one fixed-size picker. */
.skills-pop .skills-top{gap:10px;align-items:flex-start}
.skills-pop .skills-top>div{display:block}
.skills-pop .skills-top small{display:block;margin-top:6px}
.skills-pop .skills-top>button{position:static;flex:none;white-space:nowrap;padding:2px 0}
.skills-pop .skill-tabs{height:auto;display:flex;flex-wrap:wrap;gap:8px 14px;margin:14px 0 12px;padding:0 2px}
.skills-pop .skill-tabs button{min-height:28px;padding:3px 0;border-bottom:2px solid transparent}
.skills-pop .skill-tabs button.active{border-bottom-color:#5689d8}
.skills-pop>.search{position:static;width:100%;height:30px;flex:none;margin:0 0 12px;padding:5px 9px;border:1px solid #e8e8eb;border-radius:7px;background:#fafafa}
.skills-pop .skills-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.skills-pop .skill-card{display:flex;align-items:center;min-height:52px;padding:12px;min-width:0;background:#fcfcfd;transition:background .15s,border-color .15s}
.skills-pop .skill-card strong{margin:0;line-height:1.5;overflow-wrap:anywhere}
.skills-pop .skill-card:hover{background:#f3f5f8;border-color:#c5cdd9}
.skills-pop .skill-card.active{background:#f5f8fd;border-color:#5689d8}
.skills-pop .skills-foot{margin-top:12px}

/* Conversation history scrolls independently from the composer. */
.chat-author{font-size:11px;color:#8a8e96;margin-bottom:6px}
.chat-text{white-space:pre-wrap;overflow-wrap:anywhere}
.chat-status{padding:14px 16px;color:#777d87;font-size:12px;line-height:1.7}
.director .chat{min-height:120px;max-height:60dvh;overflow-y:auto;overscroll-behavior:contain}
.director .director-composer{flex-shrink:0}
.chat-bubble .script-tools button{margin-top:0}
.script-template{font-size:12px;color:#657792;padding:7px 0;border-bottom:1px solid #eef0f3;margin-bottom:8px}

.storyboard-preview{width:100%;flex-shrink:0;padding:18px 4px;text-align:left}.storyboard-preview h3{margin:0 0 12px;font-size:14px;font-weight:600}.storyboard-preview h3 small{margin-left:8px;font-size:12px;font-weight:400;color:#858585}.storyboard-cells{display:grid;grid-template-columns:repeat(auto-fit,minmax(110px,1fr));gap:12px}.storyboard-cells figure{margin:0;min-width:0}.storyboard-cells a{display:block;border:1px solid #e6e6e9;border-radius:10px;overflow:hidden;background:#f0f0f2}.storyboard-cells img{display:block;width:100%;height:150px;object-fit:contain}.storyboard-cells figcaption{padding-top:7px;color:#777;font-size:12px}

.storyboard-confirm{padding:24px;text-align:center}.storyboard-confirm p{color:#666;line-height:1.7}.storyboard-confirm button{padding:12px 20px;background:#222;color:#fff}

.prompt-review{width:100%;padding:24px;min-height:0;overflow:auto;text-align:left;align-self:stretch}.prompt-review .script-document{white-space:normal;line-height:1.8}.prompt-review-actions{display:flex;gap:12px;position:sticky;bottom:0;padding:16px 0;background:var(--panel,#fff)}
.composer-right{display:flex;align-items:center;justify-content:flex-end;gap:12px;min-width:0}.composer-model{display:inline-flex;align-items:center;gap:4px;padding:6px 8px;font-size:12px;white-space:nowrap;color:#555b64}.composer-model svg{width:14px;height:14px}.director-bottom .composer-model{margin-left:auto}

.materials:empty{display:none}.composer-attachments{display:flex;align-items:center;gap:4px;flex-shrink:0}.attachment-button{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;border:1px solid #e4e4e8;border-radius:8px;color:#777d86}.attachment-button svg{width:20px;height:20px}.input-bottom{flex-wrap:wrap;gap:8px}.composer-right{margin-left:auto;flex-wrap:wrap;gap:8px}.director-bottom{flex-wrap:wrap;gap:6px}.director-bottom .composer-attachments{margin-left:auto}.director-bottom .composer-model{margin-left:0}

.director-back{display:inline-flex;align-items:center;gap:6px;margin-right:auto;padding:10px 12px;font-weight:600}.director-back svg{width:20px;height:20px}

.config-row>.generate{width:auto;min-width:100px;align-self:stretch;padding:9px 14px;margin-left:auto}
/* Keep the two settings and primary action aligned as one compact row. */
.config-row{grid-template-columns:minmax(0,1fr) minmax(0,1.35fr) minmax(100px,.95fr);gap:10px;align-items:stretch;margin:12px 0 0}
.config-row>.config,.config-row>.generate{height:54px;min-height:54px;width:100%;margin:0;border-radius:10px}
.config-row>.config{padding:9px 12px}
.config-row>.generate{min-width:0;padding:9px 12px;white-space:nowrap;font-size:13px}
@media(max-width:480px){.config-row{grid-template-columns:minmax(0,1fr) minmax(0,1.3fr) minmax(88px,.9fr);gap:6px}.config-row>.config{padding:8px}.config-row>.generate{padding:8px;font-size:12px}}

.director-welcome .creative-welcome-title{font-size:26px;font-weight:700;line-height:1.4;color:#24262b;margin:12px 0 24px}
/* Compact prompt utility toolbar. */
.input-tools .tools{display:flex;align-items:center;gap:3px;padding:3px;background:#fff;border:1px solid #e5e7eb;border-radius:10px;box-shadow:0 1px 3px #18213105}
.input-tools .tools .icon-btn{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;padding:0;border-radius:7px;color:#697383;transition:background .16s,color .16s}
.input-tools .tools .icon-btn svg{width:18px;height:18px;stroke-width:1.7}
.input-tools .tools .icon-btn:hover:not(:disabled){background:#eef3fc;color:#356fe3}
.input-tools .tools .icon-btn:active:not(:disabled){background:#e2eafa}
.input-tools .tools .icon-btn:disabled{opacity:.4}
.input-tools{height:auto;min-height:40px}
@media(pointer:coarse){.input-tools .tools .icon-btn{width:40px;height:40px}}
@media(prefers-reduced-motion:reduce){.input-tools .tools .icon-btn{transition:none}}

.workspace.queue-collapsed>.queue{display:none}.workspace.queue-collapsed{grid-template-columns:460px minmax(280px,1fr)}.sidebar .queue-toggle[aria-expanded="true"]{background:#e9edf4;color:#24262b}
@media(min-width:801px) and (max-width:1100px){.workspace.queue-collapsed{grid-template-columns:390px minmax(230px,1fr)}}

.preview-actions{display:flex;align-items:center;gap:6px}.preview-actions .preview-tool{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;padding:0;border:1px solid #e5e7eb;border-radius:9px;background:#fff;color:#697383}.preview-actions .preview-tool svg{width:18px;height:18px}.preview-actions .preview-tool:hover{background:#eef3fc;color:#356fe3}

.director-bottom .send{display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;min-width:38px;padding:0;border-radius:11px;background:#252527;color:#fff;transition:background .16s}.director-bottom .send svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.director-bottom .send:hover:not(:disabled){background:#45464b}

.preview-tabs:empty{display:none}.preview-tabs .preview-actions{margin-left:auto}

.preview-welcome{width:83.333333%;margin:0 auto;transform:scale(1.2);transform-origin:center}

/* Commerce examples: square motion card with quiet neighboring previews. */
.hero-reference.commerce-carousel{position:relative;background:none;mix-blend-mode:normal;width:100%;max-width:390px;aspect-ratio:1.25;margin:24px auto 0;isolation:isolate;transform:scale(.8);transform-origin:top center}
.commerce-carousel :is(img,video){position:absolute;display:block;object-fit:cover;aspect-ratio:1;border-radius:18px;border:4px solid #fff;box-shadow:0 12px 28px #20252d16}
.commerce-main{width:76%;left:12%;top:2%;z-index:2}
.commerce-side{width:65%;top:9%;opacity:.65;z-index:1}
.commerce-prev{left:0;transform:rotate(-9deg)}
.commerce-next{right:0;transform:rotate(9deg)}
@media(max-width:800px){.hero-reference.commerce-carousel{max-width:320px}}

/* Centered editorial titles, aligned to the active square card. */
.commerce-carousel{container-type:inline-size}
.commerce-caption{position:absolute;left:12%;top:2%;width:76%;aspect-ratio:1;z-index:3;box-sizing:border-box;border:4px solid transparent;border-radius:18px;overflow:hidden;display:grid;place-items:center;pointer-events:none;background:linear-gradient(180deg,transparent 12%,rgba(16,20,25,.08) 27%,rgba(16,20,25,.42) 48%,rgba(16,20,25,.32) 62%,transparent 89%);background-clip:padding-box;color:#fff;font-family:"Microsoft YaHei","微软雅黑","PingFang SC",sans-serif;text-align:center}
.commerce-caption-copy{display:flex;align-items:center;flex-direction:column;gap:12px;padding:0 12px;animation:commerce-caption-in .32s ease-out both}
.commerce-caption-eyebrow{font-size:8px;font-size:clamp(7px,2.1cqw,9px);font-weight:500;letter-spacing:.23em;line-height:1.5;color:rgba(255,255,255,.88);text-shadow:0 1px 6px #0005}
.commerce-caption-title{font-size:24px;font-size:clamp(18px,6.5cqw,27px);font-weight:600;letter-spacing:.16em;text-indent:.16em;line-height:1.4;color:#fff;text-shadow:0 2px 14px #0004,0 1px 3px #0003;white-space:nowrap}
.commerce-caption-rule{width:42px;height:1px;background:linear-gradient(90deg,transparent,#ffffffb3 25%,#ffffffb3 75%,transparent);margin-top:2px}
@keyframes commerce-caption-in{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}
@media(prefers-reduced-motion:reduce){.commerce-caption-copy{animation:none}}

/* Bottom-aligned Chinese scene titles. */
.commerce-caption{place-items:end center;background:linear-gradient(180deg,transparent 48%,rgba(16,20,25,.12) 65%,rgba(16,20,25,.6) 100%);background-clip:padding-box}
.commerce-caption-copy{padding:0 12px 9%;gap:9px}

/* Side cards are the navigation controls; clip motion before it reaches the scroll container. */
.hero-reference.commerce-carousel{overflow:clip;overflow-clip-margin:28px}
.commerce-stage{position:absolute;inset:0;pointer-events:none;will-change:transform,opacity}
.commerce-stage .commerce-side{position:absolute;display:block;aspect-ratio:1;padding:0;border:0;border-radius:18px;background:transparent;pointer-events:auto;cursor:pointer}
.commerce-stage .commerce-main{pointer-events:auto}
.commerce-stage .commerce-side img{inset:0;width:100%;height:100%}
.commerce-stage .commerce-side:hover{background:transparent;opacity:1}
.commerce-stage .commerce-side:focus-visible{outline:2px solid #567bb3;outline-offset:5px}
.commerce-stage[inert] .commerce-side{pointer-events:none}
.preview-body:has(.commerce-carousel){overflow-x:hidden}
/* API keys are entered once and kept on the backend. */
.api-key-settings{max-height:min(70vh,650px);overflow-y:auto}.api-key-settings h3{margin-top:0}.api-key-row{padding:12px 0;border-top:1px solid #e8e8eb}.api-key-row label{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:8px}.api-key-row label strong{font-size:13px}.api-key-row label small{white-space:nowrap}.api-key-row>div{display:flex;gap:8px}.api-key-row input{min-width:0;flex:1;padding:9px 10px}.api-key-row button{flex:none;padding:8px 14px;border:1px solid #dddde2;background:#fff}
.sidebar .nav{gap:6px;text-align:center}.sidebar .nav span{display:block;white-space:nowrap;line-height:1.2}.sidebar .sidebar-more{color:#64666a}
@media(max-width:800px){.sidebar .nav{flex:1;width:auto;min-width:0;gap:3px;font-size:9px}.sidebar .nav svg{width:19px;height:19px}.sidebar>.sidebar-more{display:none}}
