:root{font-family:Inter,"Microsoft YaHei",system-ui,sans-serif;color:#263044;background:#f5f7fb;font-size:13px;font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit;color:inherit}button,a{touch-action:manipulation}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.45}a{color:inherit;text-decoration:none}button{border:0;background:none}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,.dropzone:focus-visible{outline:2px solid #3679ff;outline-offset:3px}[hidden]{display:none!important}.topbar{height:64px;display:flex;justify-content:space-between;align-items:center;padding:0 26px;background:linear-gradient(110deg,#e8f2ff,#f0effb);gap:20px}.brand{font-size:27px;font-weight:850;white-space:nowrap}.brand em{color:#2688f3;font-style:normal;font-size:23px}.topbar nav{display:flex;align-items:center;gap:28px;color:#6b7282}.topbar nav a{padding:9px 14px}.topbar nav .active{background:#fff;border-radius:24px;color:#252b38;font-weight:700}.topbar nav span{color:#9ba3b1}.account{font-size:12px;color:#637087}.workspace{height:calc(100dvh - 64px);display:grid;grid-template-columns:62px 370px minmax(0,1fr);gap:8px;padding:0 10px 10px 0}.rail{display:flex;flex-direction:column;gap:8px;padding:12px 4px}.rail a,.rail button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;padding:12px 2px;border-radius:12px;min-height:65px}.rail .active{background:white;box-shadow:0 2px 5px #283e6812;color:#242b38}.rail svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.5}.rail small{font-size:10px;white-space:nowrap}.rail i{font-size:9px;font-style:normal;color:#8d97a8}.control-panel,.main-panel{border:1px solid #e1e7f0;border-radius:17px;background:white;min-height:0;overflow:hidden;box-shadow:0 2px 4px #203d5810}.control-panel{display:flex;flex-direction:column;background:linear-gradient(140deg,#f6f9ff 0%,#fff 55%)}.control-scroll{padding:20px 17px 16px;overflow:auto;min-height:0;flex:1;scrollbar-width:thin}.control-scroll h1{font-size:16px;margin:0 0 20px}.segmented{display:flex;padding:3px;background:#f0f3f9;border-radius:9px;gap:3px}.segmented button{flex:1;padding:8px 10px;color:#8b92a0;border-radius:7px;white-space:nowrap}.segmented .selected{background:#fff;box-shadow:0 1px 3px #283e6826;color:#263044}.dropzone{margin-top:16px;min-height:143px;border:1px dashed #d5deef;border-radius:10px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:8px;padding:16px 10px;cursor:pointer;background:#f7f9fc}.dropzone.drag{border-color:#3478ff;background:#edf4ff}.upload-icon{display:grid;place-items:center;width:35px;height:35px;border-radius:10px;background:linear-gradient(130deg,#87d1ff,#347eff);color:white;font-size:28px;box-shadow:0 5px 10px #417dff18}.dropzone strong{font-size:12px;font-weight:500}.dropzone small{font-size:10px;color:#929aaa}.dropzone small:last-child{font-size:9px}.uploads{display:flex;gap:8px;margin-top:10px}.upload-item{width:calc((100% - 16px)/3);position:relative;background:#eef2f8;border-radius:8px;overflow:hidden}.upload-item img{width:100%;height:85px;object-fit:contain;display:block}.upload-item button{position:absolute;right:3px;top:3px;background:#ffffffea;border-radius:50%;width:23px;height:23px;font-size:17px}.upload-item small{display:block;text-align:center;padding:3px;color:#68748a;font-size:10px}.label-row{display:flex;justify-content:space-between;align-items:center;margin:22px 0 9px;gap:10px}.label-row label{font-weight:600}.label-row small{font-size:10px;color:#9aa0ae;font-weight:400}.text-button{color:#4a84ff;background:#edf4ff;border-radius:5px;font-size:11px;padding:4px 8px}.textarea-wrap{position:relative}.textarea-wrap textarea{padding-bottom:27px}.textarea-wrap>span{position:absolute;right:12px;bottom:10px;font-size:11px;color:#9ca7ba}textarea{display:block;width:100%;resize:vertical;min-height:88px;padding:12px;border:1px solid #dce3ee;border-radius:9px;background:#fff;line-height:1.7;outline:none}textarea::placeholder{color:#a0a8b8;font-size:11px}#creativeModes{margin-top:20px}.type-choice{display:flex;align-items:center;gap:12px;text-align:left;width:100%;min-height:88px;margin:11px 0 22px;padding:13px;background:#f6f7fa;border-radius:9px}.type-choice>span:nth-child(2){flex:1;min-width:0}.type-choice strong,.type-choice small{display:block}.type-choice strong{font-size:13px}.type-choice small{margin-top:7px;color:#929aaa;font-size:10px;line-height:1.5}.type-choice>b{border-radius:50%;background:white;width:24px;height:24px;text-align:center;line-height:24px;font-size:19px;font-weight:400}.type-icon{display:grid;place-items:center;width:52px;height:56px;background:white;border-radius:8px;color:#b4bfd2;font-size:36px;box-shadow:0 2px 5px #152a4820}.section-label{display:block;font-weight:600;margin:20px 0 10px}.two-columns{display:grid;grid-template-columns:1fr 1fr;gap:12px}select,input[type=text],input[type=password],input:not([type]){width:100%;height:36px;padding:0 10px;border:1px solid #dce3ee;border-radius:7px;background:white;font-size:12px}.settings-summary{display:flex;justify-content:space-between;gap:8px;width:100%;margin-top:18px;color:#6b778b;font-size:11px}.settings-summary span:last-child{color:#3879ed}.submit-panel{padding:14px 17px 15px;border-top:1px solid #edf0f5;box-shadow:0 -3px 8px #24365006;background:#fff}.model-line{display:flex;justify-content:space-between;align-items:center;margin-bottom:13px;font-size:11px}.model-line button{display:flex;align-items:center;gap:8px}.status-dot{width:8px;height:8px;background:#b6bfce;border-radius:50%}.status-dot.ready{background:#27bd8e}.primary{border-radius:8px;background:#2974ff;color:#fff;padding:14px 22px;font-weight:600}.primary:hover:not(:disabled){background:#1863e9}.submit-panel>.primary{width:100%;min-height:48px;font-size:12px}.footer-note{margin-top:12px;text-align:center;font-size:10px;color:#a1abba}.footer-note button{color:#5a88d3;font-size:10px;padding:0 0 0 9px}.config-notice{background:#fff8ea;border:1px solid #f4e2bb;border-radius:7px;font-size:11px;color:#946d24;line-height:1.65;padding:9px}.config-notice a{text-decoration:underline}.main-panel{display:flex;flex-direction:column;background:linear-gradient(140deg,#f8fbff,#fff 35%)}.main-toolbar{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:17px 18px 8px}.result-tabs{width:265px}.result-tabs button{font-size:12px}.toolbar-note{font-size:10px;color:#a8b2c3}.content-scroll{padding:0 18px 28px;flex:1;min-height:0;overflow:auto;scrollbar-width:thin}.hero{text-align:center;padding:26px 4px 29px}.eyebrow{font-size:9px;letter-spacing:2px;font-weight:600;color:#96a6c2;margin:0 0 10px}.hero h2{font-size:clamp(20px,2vw,29px);letter-spacing:-1px;margin:9px 0 12px;font-weight:700;color:#2a3141}.hero h2 span{color:#4777d6}.hero>p:not(.eyebrow){color:#98a2b4;font-size:12px}.hero-badges{display:flex;justify-content:center;gap:12px;margin-top:19px}.hero-badges span{font-size:10px;color:#7e8dab;background:#f1f5fb;border:1px solid #e6ecf5;padding:4px 10px;border-radius:20px}.category-tabs{display:flex;gap:12px;margin:4px 0 19px}.category-tabs button{color:#798296;padding:9px 13px;font-size:11px;border-radius:8px}.category-tabs .selected{color:#283448;background:#edf1f6;font-weight:600}.template-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:17px}.template-card{position:relative;isolation:isolate;aspect-ratio:9/15;border-radius:15px;overflow:hidden;text-align:left;background:#e6e8e8;padding:0;min-width:0}.template-card>img{position:absolute;width:100%;height:100%;object-fit:cover;object-position:center 8%;transition:transform .4s}.template-card:hover>img{transform:scale(1.035)}.template-card::after{content:'';position:absolute;inset:40% 0 0;background:linear-gradient(transparent,#111d33ad);z-index:0}.template-card .template-label{position:absolute;bottom:20px;left:17px;right:12px;color:white;z-index:1}.template-label b{display:block;font-size:18px}.template-label small{display:block;font-size:10px;opacity:.8;margin-top:6px}.template-tag{position:absolute;left:12px;top:12px;padding:5px 8px;color:#fff;font-size:9px;border-radius:5px;background:#23334b40;backdrop-filter:blur(8px);z-index:1}.template-action{position:absolute;bottom:20px;right:14px;border:1px solid #ffffff65;border-radius:50%;height:29px;width:29px;display:grid;place-items:center;color:white;z-index:1}.template-note{font-size:10px;color:#9aa6ba;text-align:center;margin-top:20px}.art-card{background:linear-gradient(150deg,#f5eadb,#d2b595 58%,#7d6654)}.art-card.blue{background:linear-gradient(145deg,#e0edf6,#8aaabc,#384d60)}.art-card.rose{background:linear-gradient(145deg,#f5e5e2,#d0a7a0,#825b62)}.art-card.dark{background:linear-gradient(145deg,#4f6268,#1e363c,#101d21)}.art-word{font-size:clamp(20px,2.3vw,38px);font-weight:300;letter-spacing:2px;color:#fff9;position:absolute;top:25%;left:15%;writing-mode:vertical-rl}.art-circle{position:absolute;width:90%;aspect-ratio:1;border:1px solid #ffffff48;border-radius:50%;top:13%;left:20%;box-shadow:0 0 0 30px #ffffff09,0 0 0 60px #ffffff06}.view-heading{display:flex;justify-content:space-between;align-items:center;gap:15px;margin:28px 0 20px}.view-heading h2{font-size:23px;margin:0}.secondary{border:1px solid #dfe5ef;background:white;color:#63748d;border-radius:7px;padding:9px 14px;font-size:12px}.empty{text-align:center;padding:100px 20px;color:#98a4b8}.empty>span{font-size:50px;color:#b8c8e5}.empty h3{color:#71809a;font-weight:500}.empty p{font-size:12px}.empty button{margin-top:12px}.scene-list{display:grid;gap:13px}.scene{display:grid;grid-template-columns:105px minmax(0,1fr);gap:18px;border:1px solid #e3e9f1;border-radius:11px;padding:17px;background:#fff}.scene-time{border-radius:8px;background:#f2f6fd;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;color:#8ca3ca}.scene-time b{font-size:28px;font-weight:400}.scene-time span{font-size:10px}.scene h3{margin:0 0 11px;font-size:13px}.scene label{display:block;font-size:11px;color:#8795a9;margin-top:9px}.scene textarea{font-size:12px;min-height:68px}.scene input{margin-top:6px}.plan-note,.plan-footer p{color:#8995a9;font-size:12px;line-height:1.7}.plan-footer{position:sticky;bottom:-28px;display:flex;justify-content:space-between;align-items:center;gap:18px;background:#fffffff5;border-top:1px solid #e2e8f1;padding:17px 0}.plan-footer>.primary{white-space:nowrap}.result-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:18px}.result-card{border:1px solid #e2e8f1;background:#fff;border-radius:12px;overflow:hidden}.result-card video{display:block;width:100%;height:290px;background:#172133;object-fit:contain}.result-info{padding:17px}.result-info h3{margin:0 0 10px;font-size:14px}.result-info p{font-size:11px;line-height:1.7;color:#8b97aa}.result-info a{font-size:11px;color:#3b78df;display:inline-block;margin-right:15px}.result-info details{font-size:10px;color:#9ba5b5;margin:10px 0;overflow-wrap:anywhere}.result-placeholder{height:175px;display:grid;place-content:center;text-align:center;background:linear-gradient(135deg,#eef4ff,#f5f2ff);color:#859fc8;font-size:32px}.result-placeholder small{font-size:11px;margin-top:9px}.progress{height:4px;border-radius:4px;background:#edf1f8;margin:12px 0;overflow:hidden}.progress span{display:block;height:100%;background:#5485f5}dialog{border:1px solid #e1e7f0;border-radius:15px;color:#293447;background:#fff;padding:22px;max-height:90dvh;box-shadow:0 18px 80px #142c5333}dialog::backdrop{background:#1b2e474f;backdrop-filter:blur(3px)}dialog:not([open]){display:none}.dialog-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:14px}.dialog-heading h2{font-size:15px;margin:0}.dialog-heading>button{font-size:26px;color:#929caf;line-height:1;padding:0 3px}.type-dialog{width:min(680px,94vw)}.type-group h3{font-size:12px;font-weight:500;margin:24px 0 12px}.type-group h3::before{content:'';display:inline-block;width:7px;height:7px;background:#3b7fff;border-radius:50%;margin-right:9px}.type-group:nth-child(2) h3::before{background:#923df6}.type-group:nth-child(3) h3::before{background:#f8a241}.type-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.type-option{padding:22px 14px;background:#f7f8fa;border:1px solid transparent;border-radius:12px;text-align:left}.type-option strong,.type-option small{display:block}.type-option strong{font-size:13px}.type-option small{color:#919aaa;font-size:11px;line-height:1.6;margin-top:7px}.type-option.selected{border-color:#3e7eff;background:#eef4ff}.model-dialog{width:395px}.model-option{display:flex;align-items:center;gap:13px;border:1px solid transparent;border-radius:9px;padding:15px 12px;width:100%;text-align:left;margin:7px 0;background:#f8f9fc}.model-option.selected{border-color:#99bbff;background:#f0f5ff}.model-option>span{width:32px;height:36px;border:1px solid #d6e5ff;border-radius:7px;display:grid;place-items:center;color:#3baad1;font-size:20px}.model-option div{flex:1}.model-option b{font-weight:500;font-size:14px}.model-option small{display:block;color:#9aa4b5;font-size:10px;margin-top:6px}.model-option>i{color:#8597b2;font-size:10px;font-style:normal}.settings-dialog{width:390px}.settings-body{background:#f7f8fb;padding:14px;border-radius:12px}.settings-body>label:not(.toggle-row){display:block;font-size:12px;color:#7b8597;margin:6px 0 12px}.settings-body>.segmented{margin-bottom:21px}.ratio-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:3px;background:#ecf0f6;border-radius:9px;padding:4px}.ratio-grid button{padding:10px 0 7px;border-radius:7px;font-size:10px;color:#8994a5}.ratio-grid button span{display:block;margin:0 auto 8px;width:17px;height:17px;border:1px solid #9ba5b5;border-radius:2px}.ratio-grid .selected{background:white;color:#263448;box-shadow:0 1px 3px #21345115}.ratio-grid button[data-ratio="9:16"] span{width:12px;height:21px}.ratio-grid button[data-ratio="21:9"] span{height:9px;width:22px}.ratio-grid button[data-ratio="16:9"] span{height:12px;width:21px}.settings-body input[type=range]{width:100%;accent-color:#337aff}.range-labels{display:flex;justify-content:space-between;color:#98a4b5;font-size:10px;margin-top:7px}.range-labels button{font-size:10px;color:#5887d9}.toggle-row{display:flex;justify-content:space-between;align-items:center;padding:16px 0;border-top:1px dashed #dce3ee;font-size:12px;color:#778297}.toggle-row input{appearance:none;width:33px;height:19px;background:#dce1e8;border-radius:20px;position:relative;cursor:pointer}.toggle-row input::after{content:'';position:absolute;top:2px;left:2px;width:15px;height:15px;border-radius:50%;background:white;transition:left .15s}.toggle-row input:checked{background:#397cff}.toggle-row input:checked::after{left:16px}.muted{font-size:11px;color:#909cad;line-height:1.75}.connection-dialog{width:480px}.connection-dialog>p{font-size:12px;color:#8b97aa;line-height:1.7}.connection-dialog form label{display:block;font-size:12px;color:#68768c;margin-top:15px}.connection-dialog form input,.connection-dialog form select{margin-top:8px}.dialog-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:21px}.dialog-actions .primary{font-size:12px;padding:11px 16px}.docs-link{display:block;color:#6590d6;font-size:11px;margin-top:21px}#connectionStatus{font-size:12px;line-height:1.7;color:#5679a6}#toast{position:fixed;left:50%;bottom:30px;transform:translateX(-50%);background:#26364beb;color:white;border-radius:9px;padding:12px 18px;font-size:12px;z-index:20;max-width:min(90vw,600px);box-shadow:0 6px 20px #1b2b4a30}#toast:empty{display:none}
@media(min-width:1700px){.workspace{grid-template-columns:62px 380px minmax(0,1fr)}.template-card{aspect-ratio:9/16}}@media(max-width:1250px){.workspace{grid-template-columns:58px 330px minmax(0,1fr)}.template-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.toolbar-note{display:none}.template-label b{font-size:15px}}@media(max-width:980px){.workspace{grid-template-columns:52px 300px minmax(0,1fr)}.template-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.topbar nav{gap:5px}.topbar nav a{padding:8px}.hero h2 span{display:block}.hero-badges{gap:5px}.hero-badges span{padding:3px 6px}}@media(max-width:740px){.topbar{height:auto;min-height:62px;padding:12px;flex-wrap:wrap;gap:10px}.brand{font-size:23px}.topbar nav{order:3;width:100%;justify-content:center;font-size:12px}.workspace{display:flex;flex-direction:column;height:auto;padding:8px}.rail{flex-direction:row;padding:0;gap:12px}.rail a,.rail button{min-height:50px;padding:8px 14px;flex-direction:row}.rail i{display:none}.rail svg{width:18px;height:18px}.control-panel{overflow:visible}.control-scroll{overflow:visible}.main-panel{min-height:550px}.content-scroll{overflow:visible;padding:0 12px 20px}.main-toolbar{padding:14px 12px}.hero{padding:23px 0}.hero h2{font-size:24px}.hero h2 span{display:inline}.hero-badges{gap:8px}.template-grid{gap:12px}.category-tabs{gap:0;justify-content:space-between}.category-tabs button{padding:8px}.plan-footer{position:static;display:block}.plan-footer button{width:100%}.scene{grid-template-columns:60px minmax(0,1fr);padding:11px;gap:10px}.scene-time b{font-size:23px}.type-grid{gap:8px}.type-option{padding:16px 10px}.type-dialog{padding:17px}.result-grid{grid-template-columns:1fr}.settings-summary{padding:5px}.submit-panel{border-radius:0 0 17px 17px}}

.director-summary{padding:18px 20px;margin:16px 0 22px;background:#f1f6ff;border:1px solid #dce7fb;border-radius:12px;line-height:1.8;overflow-wrap:anywhere}.director-summary h3{font-size:16px;margin:0 0 8px;color:#315f9f}.director-summary p{margin:7px 0}.director-summary summary{cursor:pointer;color:#5c7398}.director-warning{color:#946723}.scene-purpose{color:#6580a3;font-size:12px}.scene textarea{min-height:145px}
.relay-consent{display:flex;align-items:flex-start;gap:9px;padding:11px;margin:10px 0;border:1px solid #dce5f4;border-radius:9px;background:#f7f9fd;font-size:11px;line-height:1.65}.relay-consent input{margin:3px 0 0;accent-color:#3477ed}.relay-consent span{display:block}.relay-consent b,.relay-consent small{display:block}.relay-consent small{color:#74829a;margin-top:4px}.product-source-note{margin:-4px 0 2px;font-size:10px}.director-references{display:flex;gap:10px;overflow:auto;margin:12px 0}.director-references figure{margin:0;flex:0 0 104px;text-align:center;font-size:10px;color:#70819c}.director-references img{width:104px;height:116px;object-fit:contain;background:#f3f6fb;border:1px solid #e3eaf3;border-radius:8px}.director-references figcaption{padding:5px}

.product-reference-priority{padding:9px 12px;border-radius:8px;background:#eaf3ff;color:#416698;font-weight:600}
