@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Noto+Sans+SC:wght@400;500;600;700&display=swap');
:root{font-family:'DM Sans','Noto Sans SC',sans-serif;color:#18223b;background:#f6f8fc;font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button{cursor:pointer}.shell{display:flex;min-height:100vh}.sidebar{width:236px;flex:none;background:#141b34;color:#e8edfb;display:flex;flex-direction:column;padding:27px 16px 16px;position:sticky;top:0;height:100vh}.brand{display:flex;gap:11px;align-items:center;padding:0 13px 38px}.brand-icon{display:grid;place-items:center;background:linear-gradient(135deg,#a98cff,#735fe9);font-size:21px;font-weight:700;border-radius:11px;width:38px;height:38px;box-shadow:0 7px 20px #724cf844}.brand strong{font-size:19px;letter-spacing:2px}.brand small,.sidebar-foot small{display:block;color:#8d98b3;font-size:9px;letter-spacing:1.4px;margin-top:1px}.side-label{font-size:11px;letter-spacing:2px;color:#697590;padding:0 16px 12px}.sidebar nav{display:grid;gap:4px}.nav{border:0;background:transparent;color:#aab4cb;text-align:left;border-radius:11px;padding:12px 14px;display:flex;align-items:center;gap:13px;font-size:14px;width:100%}.nav:hover{background:#232d4b;color:white}.nav.active{background:#2b315c;color:white;box-shadow:inset 3px 0 #9d8bff}.nav-ico{font-size:19px;width:22px;text-align:center;line-height:1}.history-label{margin-top:31px}.sidebar-foot{margin-top:auto;border-top:1px solid #31394e;padding:18px 10px 4px;display:flex;align-items:center;gap:10px;font-size:12px}.foot-avatar,.avatar{display:grid;place-items:center;border-radius:50%;background:#8e78ec;color:white;font-weight:700}.foot-avatar{width:31px;height:31px}.avatar{width:29px;height:29px;font-size:12px}main{flex:1;min-width:0}header{height:70px;background:white;border-bottom:1px solid #e9edf4;display:flex;justify-content:space-between;align-items:center;padding:0 38px}.crumb{font-size:13px;color:#8c96aa}.crumb span{padding:0 12px;color:#c5cada}.crumb b{color:#2d3750;font-weight:600}.header-right{display:flex;align-items:center;gap:10px;color:#69758d;font-size:12px}.status-dot{height:7px;width:7px;background:#52c991;border-radius:50%}.header-divider{height:20px;width:1px;background:#e5e9f0;margin:0 9px}.content{max-width:1450px;margin:auto;padding:37px 38px 75px}.page-head{display:flex;align-items:flex-end;justify-content:space-between;margin-bottom:27px}.eyebrow{font-size:10px;letter-spacing:2.4px;font-weight:700;color:#8a7be0}.page-head h1{font-size:31px;letter-spacing:-1px;margin:7px 0 7px}.page-head p{margin:0;color:#8a93a4;font-size:13px}.head-pills{display:flex;gap:7px}.head-pills span{font-size:11px;color:#7a83a2;border:1px solid #e4e8f3;border-radius:99px;padding:7px 11px;background:white}.workspace{display:grid;grid-template-columns:minmax(500px,1.2fr) minmax(350px,.85fr);align-items:start;gap:20px}.form-column,.result-column{display:grid;gap:20px}.card,.result-card{background:#fff;border:1px solid #e9edf4;box-shadow:0 7px 28px #29335a08;border-radius:17px;padding:26px}.section-head{display:flex;gap:12px;align-items:flex-start;margin-bottom:23px}.step{display:grid;place-items:center;flex:none;width:28px;height:28px;border-radius:8px;background:#f1efff;color:#7e6bee;font-weight:700;font-size:12px}.section-head h2,.result-header h2{font-size:17px;margin:2px 0 3px;letter-spacing:-.3px}.section-head p{font-size:11px;color:#9aa2b1;margin:0}.upload-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.upload-grid:has(#refWrap[hidden]){grid-template-columns:1fr}.field-label,.field-row label,.field-block{display:block;font-weight:600;color:#364259;font-size:12px}.field-label{margin-bottom:9px}.field-label em{font-style:normal;color:#9c8aed;font-weight:500;font-size:10px;margin-left:4px}.drop{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:7px;height:171px;border:1.5px dashed #cbd3e7;border-radius:13px;background:#f9faff;color:#6f7a94;overflow:hidden;cursor:pointer;transition:.2s}.drop:hover{border-color:#9788f0;background:#f5f2ff}.upload-symbol{display:grid;place-items:center;border-radius:50%;width:34px;height:34px;background:#eeeaff;color:#8170dc;font-size:22px}.drop strong{font-size:12px;color:#48546c}.drop small{font-size:10px;color:#a5aec0}.drop img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;background:#fff}.drop:has(img:not([hidden])) strong,.drop:has(img:not([hidden])) small,.drop:has(img:not([hidden])) .upload-symbol{display:none}.field-row{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:19px}.field-row input,.field-row select,.field-block textarea{display:block;width:100%;margin-top:9px;border:1px solid #dfe5ef;border-radius:9px;background:#fff;padding:11px 13px;color:#263148;outline:none;font-size:12px}.field-row input:focus,.field-row select:focus,.field-block textarea:focus{border-color:#a692f1;box-shadow:0 0 0 3px #8f78ef1c}.field-block{margin-top:18px}.field-block small{font-size:10px;color:#a7adbc;font-weight:400}.field-block textarea{resize:vertical;line-height:1.65;min-height:76px}.settings{display:grid;gap:18px}.segmented{display:flex;gap:6px}.segmented button{border:1px solid #e1e6ef;background:#fff;color:#717e96;border-radius:8px;padding:9px 12px;font-size:11px}.segmented button.selected{color:#6c59ce;background:#f3f0ff;border-color:#b7a9f5;font-weight:700}.model-value{display:flex;align-items:center;gap:6px;border:1px solid #dfe5ef;margin-top:9px;border-radius:9px;height:39px;padding:0 12px;font-size:12px}.model-star{color:#8f79ec}.action-row{display:flex;align-items:center;gap:13px}.primary,.secondary{border:0;border-radius:9px;padding:12px 20px;font-weight:700;font-size:12px}.primary{color:white;background:linear-gradient(110deg,#8470e9,#aa81ed);box-shadow:0 6px 16px #8d6ff047}.primary:hover{filter:brightness(1.04)}.primary span{font-size:16px;margin-left:20px}.secondary{color:#7563d6;background:#f1eeff}.full{display:block;width:100%;margin-top:12px}.action-row p,#detailMessage{font-size:11px;color:#c45167;max-width:300px}.result-card{padding:25px}.result-header{display:flex;justify-content:space-between;align-items:center}.result-header h2{margin:4px 0 0}.badge{color:#8b7bcb;background:#f5f2ff;border-radius:99px;font-size:10px;padding:6px 10px}.preview{height:288px;margin:24px 0;background:radial-gradient(circle at 50% 45%,#fff 0,#f7f6ff 50%,#eff1fa 100%);border:1px dashed #dbe0ee;border-radius:13px;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;padding:30px;color:#64718d;overflow:hidden}.preview-icon{color:#9a83eb;font-size:32px;display:grid;place-items:center;width:70px;height:70px;background:white;border-radius:22px;box-shadow:0 9px 28px #9081db22;margin-bottom:17px}.preview strong{font-size:13px;color:#53607d}.preview p{font-size:11px;line-height:1.7;max-width:210px}.preview video{height:100%;max-width:100%;border-radius:10px}.flow{display:flex;justify-content:space-between;gap:7px;border-top:1px solid #edf0f5;padding-top:21px}.flow-item{display:flex;gap:7px;align-items:flex-start;min-width:0}.flow-item>span{display:grid;place-items:center;flex:none;width:20px;height:20px;border-radius:50%;background:#eeeafd;color:#806add;font-size:10px;font-weight:700}.flow-item strong{display:block;font-size:10px;color:#45516a}.flow-item small{display:block;font-size:9px;color:#a3aabb;margin-top:3px}.details .field-block textarea{font-size:11px;background:#fbfcff}.hint{color:#9b7182;font-size:10px;line-height:1.6}.details .secondary{margin-top:9px}dialog{border:0;border-radius:18px;box-shadow:0 20px 70px #17203c44;max-width:min(720px,95vw);width:720px;padding:25px}dialog::backdrop{background:#141b346a}.dialog-head{display:flex;justify-content:space-between;align-items:start;margin-bottom:15px}.dialog-head h2{margin:5px 0;font-size:21px}.dialog-head button{background:transparent;border:0;color:#8290aa;font-size:25px}.job-row{padding:15px;border:1px solid #e9edf4;border-radius:11px;margin:8px 0;cursor:pointer;display:flex;justify-content:space-between;gap:15px}.job-row:hover{border-color:#c0b3f4;background:#f9f8ff}.job-row strong{font-size:12px}.job-row small{display:block;margin-top:5px;color:#9ba4b5;font-size:10px}.job-row em{font-size:10px;color:#8270d5;font-style:normal}@media(max-width:1060px){.workspace{grid-template-columns:1fr}.result-column{grid-row:1}.sidebar{width:68px}.brand{padding:0 0 38px;justify-content:center}.brand>div,.side-label,.nav:not(.active) .nav-ico+*,.sidebar-foot div:not(.foot-avatar){display:none}.nav{font-size:0;justify-content:center;padding:13px}.nav-ico{font-size:22px}.sidebar-foot{justify-content:center}}@media(max-width:620px){.sidebar{display:none}.content{padding:24px 14px}.head-pills{display:none}header{padding:0 16px}.card,.result-card{padding:18px}.upload-grid,.field-row{grid-template-columns:1fr}.flow{flex-wrap:wrap}.page-head h1{font-size:26px}}
:where(.primary,.secondary):disabled{opacity:.45;box-shadow:none;cursor:not-allowed}
.primary.is-busy:disabled{opacity:1;filter:none;cursor:progress}
.login-note a{color:#7563d6;text-decoration:none;font-weight:700}.login-note a:hover{text-decoration:underline}.action-row{flex-wrap:wrap}.login-card [hidden]{display:none!important}
.logout-button{border:0;background:transparent;color:#7e889d;font-size:12px;padding:7px 5px}.logout-button:hover{color:#745ee0}
.login-body{min-height:100vh;background:#f6f8fc}.login-layout{display:grid;grid-template-columns:minmax(400px,48%) 1fr;min-height:100vh}.login-story{position:relative;overflow:hidden;display:flex;flex-direction:column;padding:44px clamp(35px,5vw,92px);color:#fff;background:radial-gradient(circle at 82% 20%,#6c5bc7 0,transparent 31%),radial-gradient(circle at 15% 88%,#263c70 0,transparent 40%),linear-gradient(145deg,#1b2345,#151b35 75%)}.login-story:before,.login-story:after{content:"";position:absolute;border:1px solid #ffffff22;border-radius:50%;pointer-events:none}.login-story:before{width:530px;height:530px;left:-300px;bottom:-250px}.login-story:after{width:440px;height:440px;right:-290px;top:24%}.login-brand,.login-mobile-brand{display:flex;gap:11px;align-items:center;position:relative;z-index:1}.login-brand strong{display:block;font-size:21px;letter-spacing:3px}.login-brand small{display:block;color:#aeb5d7;font-size:10px;letter-spacing:2.2px}.login-story-content{position:relative;z-index:1;margin:auto 0;max-width:530px}.login-kicker{display:inline-block;color:#c3baff;letter-spacing:3px;font-size:11px;font-weight:700}.login-story-content h1{font-size:clamp(44px,4.7vw,76px);line-height:1.16;letter-spacing:-2px;margin:24px 0}.login-story-content p{font-size:15px;line-height:1.9;color:#c4cae1;max-width:430px}.login-flow{display:flex;align-items:center;gap:12px;margin-top:55px}.login-flow span{border:1px solid #ffffff3b;border-radius:99px;padding:9px 15px;color:#dfe1f3;font-size:11px}.login-flow i{font-style:normal;color:#9a8ceb}.login-story-foot{position:relative;z-index:1;color:#8e98b9;font-size:11px}.login-panel{display:grid;place-items:center;padding:48px 24px}.login-card{width:min(100%,420px)}.login-mobile-brand{display:none}.login-welcome{display:block;color:#8370d9;font-weight:700;letter-spacing:1.8px;font-size:11px;margin-bottom:11px}.login-card h2{margin:0;color:#1e2945;font-size:34px;letter-spacing:-1px}.login-description{color:#8b96aa;font-size:13px;margin:13px 0 41px}.login-card form label{display:block;font-size:13px;color:#394760;font-weight:700;margin:21px 0 9px}.login-card form>input,.login-password input{width:100%;height:50px;border:1px solid #dfe5ef;border-radius:10px;background:#fff;padding:0 16px;font-size:14px;color:#263148;outline:none}.login-card form>input:focus,.login-password input:focus{border-color:#9888ed;box-shadow:0 0 0 4px #8f78ef19}.login-password{position:relative}.login-password input{padding-right:65px}.login-password button{position:absolute;right:12px;top:9px;border:0;background:transparent;color:#8171d5;font-size:12px;padding:8px}.login-error{min-height:21px;margin:12px 0 3px;color:#c45167;font-size:12px}.login-submit{height:50px;width:100%;font-size:14px;display:flex;align-items:center;justify-content:center}.login-submit span{position:absolute;right:23px}.login-submit{position:relative}.login-note{text-align:center;color:#a7afbf;font-size:11px;margin-top:26px}@media(max-width:850px){.login-layout{grid-template-columns:1fr}.login-story{min-height:260px;padding:25px 30px}.login-story-content{margin:36px 0 20px}.login-story-content h1{font-size:36px;margin:12px 0}.login-story-content p,.login-flow,.login-story-foot{display:none}.login-panel{padding:45px 24px}.login-card h2{font-size:30px}}@media(max-width:480px){.login-story{min-height:210px}.login-brand strong{font-size:18px}.login-story-content h1{font-size:30px}.login-panel{place-items:start center;padding-top:40px}}

[hidden]{display:none!important}.review-page{max-width:1120px;margin:0 auto;padding:48px 24px}.review-page a{text-decoration:none}.review-toolbar,.review-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.review-toolbar{justify-content:space-between}.review-search{margin-top:24px;width:100%;padding:12px 14px;border:1px solid #dfe5ef;border-radius:9px}.review-row{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:24px 0;border-bottom:1px solid #edf0f5}.review-row strong{font-size:15px;overflow-wrap:anywhere}.review-row p{font-size:12px;color:#8993a6;line-height:1.6}.review-state{display:inline-block;padding:5px 10px;border-radius:20px;background:#f1edff;color:#7865cb;font-size:11px}.review-state.approved{background:#eaf7ee;color:#398258}.review-state.rejected{background:#fff0f0;color:#b56363}.review-empty{text-align:center;color:#929bad;padding:50px 0}.review-actions{justify-content:flex-end}#reviewMessage,#decisionMessage{font-size:13px;color:#8e6b89}#manageUsers{white-space:nowrap}@media(max-width:620px){.review-page{padding:28px 16px}.review-toolbar{gap:18px}.review-row{align-items:flex-start;flex-direction:column}.review-page .segmented{flex-wrap:wrap}.review-page .page-head{align-items:flex-start;gap:10px}.review-page .page-head h1{font-size:28px}}

.publish-panel{margin:0 0 24px;padding:20px;background:#f8f6ff;border:1px solid #e7e1fa;border-radius:13px}.publish-heading{display:flex;justify-content:space-between;align-items:center;gap:16px}.publish-heading h3{font-size:14px;margin:0 0 5px}.publish-heading p{font-size:11px;margin:0;color:#9297ac}.publish-heading button{flex:none}.publish-recommendation{padding:12px 0;border-bottom:1px solid #ebe6f7}.publish-recommendation strong{font-size:12px;color:#6651a8}.publish-recommendation p,.publish-message{font-size:11px;color:#8a87a1;line-height:1.7;margin:6px 0}.publish-recommendation small{font-size:10px;color:#9b7182;line-height:1.6}.publish-message{margin:12px 0 0}@media(max-width:620px){.publish-heading{align-items:flex-start;flex-direction:column}.publish-heading button{width:100%}.publish-panel{padding:16px}}

.register-submit{margin-top:24px}.registration-feedback{padding:18px 20px;margin:0 0 24px;border:1px solid #ddd5fb;border-radius:12px;background:#f3efff;color:#6552b2}.registration-feedback strong{display:block;font-size:16px;outline:none}.registration-feedback p{font-size:13px;line-height:1.7;margin:8px 0 0}.registration-feedback.is-error{background:#fff2f2;border-color:#efc6ca;color:#a83c50}.registration-complete{background:radial-gradient(ellipse at 50% 20%,#ebe5ff,transparent 65%),#f6f8fc}.registration-complete .login-layout{grid-template-columns:1fr}.registration-complete .login-story{display:none}.registration-complete .login-panel{min-height:100svh;padding:36px 24px}.registration-result{width:min(100%,620px);padding:38px 44px;background:white;border:1px solid #e7e1f7;border-radius:24px;box-shadow:0 18px 70px #64569512;text-align:center}.registration-result-brand{display:flex;justify-content:center;align-items:center;gap:10px;margin-bottom:28px}.registration-result-brand strong{font-size:18px;letter-spacing:2px}.registration-result-brand small{color:#8c91a4;font-size:12px;margin-left:6px}.registration-result-icon{width:76px;height:76px;border-radius:50%;display:grid;place-items:center;background:#eee8ff;color:#8064da;font-size:38px;margin:0 auto 22px}.registration-pending{display:inline-block;background:#f1ecff;color:#7a5dce;border-radius:99px;font-size:13px;font-weight:700;padding:8px 15px}.registration-result h2{margin:18px 0 12px;font-size:32px;letter-spacing:-1px;color:#202a43;outline:none}.registration-result-description{font-size:15px;line-height:1.9;color:#7c859a;margin:0}.registration-account{font-size:13px;color:#9a9fb0;margin:16px 0 26px}.registration-steps{list-style:none;text-align:left;background:#f9f8fd;border:1px solid #efecf7;border-radius:16px;margin:0 0 26px;padding:22px 24px;display:grid;gap:22px}.registration-steps li{display:flex;gap:14px;align-items:flex-start}.registration-steps li>span{width:28px;height:28px;border-radius:50%;display:grid;place-items:center;background:#eceef4;color:#9ba2b3;font-size:12px;font-weight:700;flex:none}.registration-steps .done>span{background:#eae5fc;color:#8b70d6}.registration-steps .current>span{background:#9276df;color:white;box-shadow:0 0 0 4px #eee8fd}.registration-steps strong{font-size:14px;color:#414c65}.registration-steps .current strong{color:#7d60ca}.registration-steps p{font-size:12px;line-height:1.7;color:#969dad;margin:6px 0 0}.registration-activation{padding:17px 20px;text-align:left;border:1px solid #f0dfb7;background:#fffbf1;border-radius:12px;margin-bottom:24px}.registration-activation strong{font-size:14px;color:#9b783a}.registration-activation p{font-size:12px;line-height:1.8;color:#9b8b6d;margin:7px 0 0}.registration-return{text-decoration:none;height:54px;box-sizing:border-box}@media(max-width:620px){.registration-complete .login-panel{padding:24px 16px}.registration-result{padding:28px 22px;border-radius:20px}.registration-result h2{font-size:27px}.registration-result-description{font-size:13px}.registration-result-brand{flex-wrap:wrap}.registration-result-brand small{font-size:11px}.registration-steps{padding:20px 18px}.registration-result-icon{width:66px;height:66px;font-size:33px}}

.sales-scheme-picker select{display:block;width:100%;margin-top:9px;padding:11px 13px;color:#263148;background:white;border:1px solid #dfe5ef;border-radius:9px;outline:none;font-size:12px}.sales-scheme-picker select:focus{border-color:#a692f1;box-shadow:0 0 0 3px #8f78ef1c}

.asset-gallery{display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:12px;margin-top:14px}.asset-tile{border:1px solid #dedbeb;border-radius:14px;padding:9px;min-width:0}.asset-tile img{width:100%;height:110px;object-fit:contain;background:#faf9ff}.asset-tile strong{display:block;font-size:13px;margin:6px 0}.asset-actions{display:flex;flex-wrap:wrap;gap:5px}.asset-actions button,#removeReference{border:1px solid #ddd6f6;border-radius:8px;background:#f6f3ff;color:#7056c4;padding:6px 9px;cursor:pointer}.asset-actions button:disabled{opacity:.5;cursor:wait}.asset-help{font-size:13px;color:#817791;line-height:1.6}.asset-tile.is-primary{border-color:#9575e9;background:#faf8ff}

.history-tools{display:flex;gap:10px;align-items:center;margin-bottom:14px;flex-wrap:wrap}.history-tools input,.history-tools select{border:1px solid #dfe5ef;border-radius:8px;padding:10px;min-width:0}.history-tools input{flex:1}.history-tools span{color:#7a83a2;font-size:12px}button.job-row{width:100%;text-align:left;background:white;color:inherit}.job-row small{overflow-wrap:anywhere}

#jobsDialog{width:920px;max-height:86vh;overflow:auto}#jobsDialog .dialog-head{position:sticky;top:-25px;background:white;z-index:1;padding-top:8px}#jobsDialog .job-row{display:grid;grid-template-columns:72px minmax(0,1fr) auto;align-items:center;gap:16px;padding:12px}.job-thumb{position:relative;display:grid;place-items:center;width:72px;height:72px;border-radius:10px;border:1px solid #e7eaf2;background:#fafbfe;font-size:10px;color:#99a3b6;overflow:hidden}.job-thumb img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;background:white}.job-info{min-width:0}.job-info strong{display:block;font-size:14px;overflow-wrap:anywhere}.job-info small{line-height:1.7;font-size:11px}.job-state{border-radius:99px;padding:6px 10px;background:#f0edff;white-space:nowrap}.job-state.state-completed{color:#27835f;background:#e9f8f1}.job-state.state-failed{color:#b94653;background:#fff0f0}.history-feedback{display:flex;align-items:center;gap:12px;min-height:26px;color:#7a83a2;font-size:12px}.history-pagination{display:flex;align-items:center;justify-content:center;gap:18px;margin-top:18px}.history-pagination span{color:#7a83a2;font-size:12px}.history-empty{text-align:center;padding:30px;color:#8791a6}#jobList[aria-busy=true]{opacity:.55;pointer-events:none}@media(max-width:620px){#jobsDialog .job-row{grid-template-columns:54px minmax(0,1fr);gap:10px}.job-thumb{width:54px;height:54px}.job-state{grid-column:2;justify-self:start}.history-tools input{flex-basis:100%}}

.brief-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:12px}#briefMessage{display:block;margin-top:10px;font-size:12px;line-height:1.6}

.remake-switches{display:flex;gap:24px;margin:14px 0}.remake-switches input,.remake-confirm input{width:auto;margin-right:8px}.remake-confirm{display:flex;align-items:center;margin:16px 0;font-size:14px;line-height:1.6}#remakeReferenceImage{display:block;max-width:100%;max-height:340px;border-radius:14px;object-fit:contain;margin:12px auto}#remakeOptions select{width:100%;padding:12px;border:1px solid #dce1ee;border-radius:12px;background:white}#remakeState{color:#7765c7}

.image-quality{margin-top:24px}.quality-choices button{display:flex;flex-direction:column;gap:7px;padding:15px 10px}.quality-choices small{font-size:12px;font-weight:400}.quality-estimate{font-size:14px;line-height:1.7;color:#6552a7;background:#f5f1ff;border-radius:12px;padding:12px 14px}.image-quality[hidden]{display:none}

.creative-choice-panel{margin:24px 0;padding:20px;border:1px solid #ded8f5;border-radius:18px;background:#fbfaff}.creative-choice-panel h3{font-size:16px;margin:22px 0 12px}.creative-choice-panel h3 small{font-size:12px;color:#8c86a3;font-weight:400}.creative-point{display:flex;align-items:center;gap:9px;margin:8px 0}.creative-point input[type=checkbox]{width:18px;height:18px;flex:none}.creative-point input[type=text]{min-width:0;flex:1}.creative-point button{border:0;background:none;font-size:20px;color:#9486bd;cursor:pointer}.creative-add{display:flex;gap:8px;margin-top:12px}.creative-add input{min-width:0;flex:1}.creative-add .secondary{padding:10px 16px}.creative-directions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.creative-direction{padding:14px;text-align:left;background:white;border:1px solid #e3deee;border-radius:12px;cursor:pointer;color:#27334b;overflow-wrap:anywhere}.creative-direction strong,.creative-direction small{display:block}.creative-direction small{line-height:1.6;margin-top:6px;color:#888499}.creative-direction.selected{border-color:#8d74e8;background:#f1ebff;box-shadow:0 0 0 1px #8d74e8}.creative-direction:disabled{opacity:.6;cursor:default}.creative-choice-panel .field-block{margin-top:18px}.creative-choice-panel [hidden]{display:none}.creative-choice-panel[hidden]{display:none}#creativeChoiceMessage{font-size:14px;line-height:1.6;color:#746393}@media(max-width:520px){.creative-choice-panel{padding:14px}.creative-directions{grid-template-columns:1fr}}

.creative-choice-panel input[type=text],.creative-choice-panel input:not([type]){width:100%;font:inherit;color:#27334b;padding:11px 12px;border:1px solid #ded8ee;border-radius:10px;background:#fff;outline:none}.creative-choice-panel input:focus{border-color:#947de2;box-shadow:0 0 0 3px #eee8ff}.creative-point input[type=checkbox]{accent-color:#8b70df}.creative-choice-panel .field-block>input{display:block;margin-top:8px}.creative-point input[type=text]{width:0}.creative-add input{width:0}

/* Image creation: one editing step at a time, with a persistent preview. */
.workspace-toolbar{display:flex;align-items:center;gap:12px;margin-bottom:12px}.workspace-toolbar>p{font-size:12px;margin:0;line-height:1.6}.workspace-toolbar>button{white-space:nowrap;padding:9px 14px}
.workspace-product-reference{width:100%;max-height:210px;object-fit:contain;border-radius:12px;margin-bottom:14px;background:#fff}
.image-validation-notice,#formMessage.is-error{padding:14px 16px;border:1px solid #edbbc3;background:#fff1f3;border-radius:10px;color:#b34559!important;font-size:13px!important;line-height:1.8!important}.workspace-toolbar:has(#formMessage.is-error){flex-wrap:wrap}.workspace-toolbar #formMessage.is-error{flex-basis:100%;max-width:none}.asset-tile.invalid-image{border-color:#d9677b;background:#fff8f9}.image-dimension-error{font-size:11px;color:#b34559;line-height:1.5;margin:8px 0 0}
.image-workspace .page-head{margin-bottom:22px}.workspace-settings{background:#fff;border:1px solid #e2dfee;border-radius:14px;margin-bottom:16px}.workspace-settings>summary{padding:18px 20px;font-size:13px;color:#74628f;cursor:pointer}.workspace-settings>.card{border:0;box-shadow:none;margin:0;padding-top:0}.workspace-settings>.card>.section-head{display:none}
.image-workspace .content{max-width:1560px;margin:auto}.image-workspace .workspace{grid-template-columns:minmax(0,1.35fr) minmax(320px,.85fr);align-items:start;gap:24px}.image-workspace .form-column{min-width:0;display:block}.image-workspace .result-column{position:sticky;top:24px;min-width:0}.workspace-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;background:#eeedf6;border:1px solid #e5e2ef;border-radius:14px;padding:6px;margin-bottom:18px}.workspace-tabs button{display:flex;align-items:center;gap:8px;min-width:0;padding:12px 9px;border:0;border-radius:10px;background:transparent;text-align:left;color:#8c8a9e}.workspace-tabs button>span{font-size:12px;font-weight:700}.workspace-tabs strong{display:block;font-size:13px;white-space:nowrap}.workspace-tabs small{display:block;font-size:10px;margin-top:4px}.workspace-tabs button.is-active{background:white;color:#7055c3;box-shadow:0 2px 8px #40306a0c}.workspace-tabs button:focus-visible,.creative-view-tabs button:focus-visible{outline:2px solid #8b70df;outline-offset:2px}.image-workspace .workspace-pane{display:none}.image-workspace .workspace-pane.is-active{display:block}.image-workspace .workspace-pane>.card,.image-workspace .workspace-pane>.result-card{margin-bottom:16px}.workspace-next{display:flex;justify-content:space-between;gap:12px;margin-top:20px;flex-wrap:wrap}.workspace-next button:last-child{background:#ebe5fc;color:#6e52bc}.creative-view-tabs{display:flex;gap:6px;border-bottom:1px solid #e9e4f1;padding-bottom:14px;margin-bottom:16px}.creative-view-tabs button{background:transparent;color:#93899f;border-radius:8px;padding:10px 14px}.creative-view-tabs button[aria-selected=true]{background:#f0ebfc;color:#7055c3}.creative-view-tabs button:disabled{opacity:.45;cursor:not-allowed}.workspace-empty{padding:30px 12px;text-align:center;line-height:1.9;color:#8c879e;font-size:13px}.image-workspace .creative-workspace-card{padding:20px}.image-workspace .creative-choice-panel{margin:0;padding:0;border:0;background:transparent}.image-workspace .creative-choice-panel>.section-head{display:none}.image-workspace .creative-choice-panel h3{font-size:14px;margin:16px 0 10px}.image-workspace #creativePointList{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 12px}.image-workspace .creative-point{margin:0;gap:5px}.image-workspace .creative-point input[type=text]{padding:8px;font-size:12px}.image-workspace .creative-point input[type=checkbox]{width:16px;height:16px}.image-workspace .creative-add{margin-top:8px}.image-workspace .creative-add input{padding:9px 10px;font-size:12px}.image-workspace .creative-directions{gap:8px}.image-workspace .creative-direction{padding:11px 12px}.image-workspace .creative-direction strong{font-size:12px}.image-workspace .creative-direction small{font-size:11px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.image-workspace .creative-direction.selected small{display:block;overflow:visible}.image-workspace .creative-direction:hover{border-color:#ac99df}.image-workspace #creativeBriefWrap{display:none}.image-workspace .is-review #creativeBriefWrap{display:block;margin-top:0;font-size:15px}.image-workspace .is-review #creativeChoicePanel{display:none!important}.image-workspace .creative-workspace-card>.action-row{display:none}.image-workspace .is-review .creative-workspace-card>.action-row{display:flex;border-top:1px solid #ebe7f3;padding-top:16px;margin-top:18px}.image-workspace #creativeBrief{height:310px;max-height:420px;font-size:13px;line-height:1.9}.workspace-disclosure{margin:14px 0;border:1px solid #e9e4f0;border-radius:10px;padding:12px 14px}.workspace-disclosure summary{cursor:pointer;color:#857790;font-size:12px;line-height:1.5}.workspace-disclosure[open] summary{margin-bottom:12px}.image-workspace #creativeChoiceMessage{font-size:12px;margin-bottom:0}.image-workspace #generateSelectedCreative{margin-top:12px}.image-workspace .asset-gallery{display:flex;overflow-x:auto;padding-bottom:8px;gap:8px}.image-workspace .asset-tile{flex:0 0 126px;padding:7px}.image-workspace .asset-tile img{height:70px}.image-workspace .asset-tile strong{font-size:11px}.image-workspace .asset-actions button{font-size:10px;padding:4px 6px}.image-workspace .drop{min-height:130px;height:130px}.image-workspace .asset-help{font-size:11px;margin:8px 0;line-height:1.6}.image-workspace #notes{min-height:76px;height:76px}.image-workspace .result-card .preview{height:340px;margin:18px 0}.image-workspace .preview video{width:100%;object-fit:contain}.image-workspace .details #prompt{height:230px;max-height:420px;font-size:12px;line-height:1.8}.image-workspace .details #analysis{height:160px}.image-workspace .image-quality{margin-top:18px}.image-workspace .quality-estimate{font-size:12px;padding:10px 12px}.image-workspace .details .result-header h2{font-size:17px}
@media(max-width:1200px){.workspace-tabs small{display:none}.image-workspace .workspace{grid-template-columns:minmax(0,1.3fr) minmax(280px,.8fr);gap:18px}.image-workspace .content{padding-left:24px;padding-right:24px}}
@media(max-width:900px){.image-workspace .workspace{grid-template-columns:minmax(0,1fr)}.image-workspace .result-column{position:static;grid-row:auto}.image-workspace .result-card .preview{height:260px}.workspace-tabs small{display:block}}
@media(max-width:520px){.workspace-tabs button{padding:11px 6px;gap:5px}.workspace-tabs small{display:none}.workspace-tabs strong{font-size:12px}.image-workspace .content{padding-left:14px;padding-right:14px}.image-workspace #creativePointList,.image-workspace .creative-directions{grid-template-columns:1fr}.image-workspace .creative-workspace-card{padding:16px}.creative-view-tabs button{font-size:12px;padding:9px 10px}.image-workspace #creativeBrief{height:330px}.workspace-next button{flex:1}.image-workspace .workspace-tabs{position:sticky;top:8px;z-index:3}}

.video-versions{margin-top:18px;padding:16px;border:1px solid #e5e1f5;border-radius:14px;background:#faf9ff}.video-versions p{margin:0 0 12px;color:#6c6585;font-size:14px;line-height:1.6}.video-version-actions{display:flex;gap:10px;flex-wrap:wrap}.video-version-actions a{display:inline-flex;align-items:center;text-decoration:none}.video-version-actions .secondary{padding:10px 14px;font-size:14px}

/* Shared dimensions for sidebar links and buttons. */
.sidebar .nav{min-height:46px;line-height:22px;gap:12px;text-decoration:none}.sidebar .nav-ico{display:grid;place-items:center;flex:0 0 22px;width:22px;height:22px;line-height:1}

/* Unified video workspace: one visual system for all four creation modes. */
body.image-workspace,body.story-workspace{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Microsoft YaHei",sans-serif;background:#f6f8fc;color:#202a43;font-size:14px;line-height:1.6}
.image-workspace .content,.story-workspace .content{max-width:1560px;padding:32px 32px 64px;margin:auto}
.image-workspace .page-head,.story-workspace .heading{margin:0 0 24px;align-items:center;gap:20px}
.image-workspace h1,.story-workspace h1{font-size:30px;line-height:1.35;margin:7px 0 9px;letter-spacing:0}
.image-workspace .page-head p,.story-workspace .heading p:last-child{font-size:13px;color:#7c879c;margin:0;line-height:1.7}
.image-workspace .eyebrow,.story-workspace .eyebrow{font-size:10px;font-weight:700;letter-spacing:2.4px;color:#8a7be0;margin:0}
.image-workspace .workspace,.story-workspace .grid{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(300px,.85fr);align-items:start;gap:24px}
.image-workspace .result-column,.story-workspace .story-result-column{position:sticky;top:24px;min-width:0;grid-row:auto}
.image-workspace .card,.image-workspace .result-card,.story-workspace .card{border:1px solid #e4e8f1;border-radius:18px;box-shadow:0 6px 24px #29335a06;background:#fff;padding:24px;margin:0 0 18px}
.image-workspace .section-head h2,.image-workspace .result-header h2,.story-workspace .section-title h2{font-size:17px;line-height:1.5;color:#27324a;letter-spacing:0}
.image-workspace label,.story-workspace label{font-size:13px;font-weight:600;color:#43506a}
.image-workspace input:not([type=checkbox]):not([type=file]),.image-workspace select,.image-workspace textarea,.story-workspace input:not([type=checkbox]):not([type=file]),.story-workspace select,.story-workspace textarea{max-width:100%;min-height:44px;border:1px solid #dfe5ef;border-radius:10px;padding:11px 13px;background:#fff;color:#303b53;font-size:13px;line-height:1.7;outline:none}
.image-workspace textarea,.story-workspace textarea{resize:vertical}
.image-workspace input:focus-visible,.image-workspace select:focus-visible,.image-workspace textarea:focus-visible,.story-workspace input:focus-visible,.story-workspace select:focus-visible,.story-workspace textarea:focus-visible{border-color:#9e87e9;box-shadow:0 0 0 3px #8f78ef18}
.image-workspace .primary,.image-workspace .secondary,.story-workspace .primary,.story-workspace .secondary,.story-workspace #newButton{min-height:44px;padding:11px 17px;border:0;border-radius:10px;font-size:13px;font-weight:600;line-height:22px;text-decoration:none}
.image-workspace .primary,.story-workspace .primary{color:#fff;background:linear-gradient(110deg,#8470e9,#a580e8);box-shadow:0 5px 14px #8d6ff026}
.image-workspace .secondary,.story-workspace .secondary,.story-workspace #newButton{background:#f0ecfc;color:#7560c4;box-shadow:none}
.image-workspace button:disabled,.story-workspace button:disabled{cursor:not-allowed;opacity:.45;box-shadow:none}
.image-workspace button[aria-busy=true],.story-workspace button.busy:disabled{opacity:1;cursor:progress}
.image-workspace .preview,.story-workspace .preview{height:340px;padding:24px;margin:18px 0;background:radial-gradient(ellipse at top,#fcfbff,#f0f1fa);border:1px dashed #dbe0ee;border-radius:14px;color:#8e99ae}
.image-workspace .preview video,.story-workspace .preview video{max-width:100%;width:100%;height:100%;object-fit:contain;border-radius:10px}
.image-workspace .badge,.story-workspace .tag{font-size:11px;line-height:18px;padding:6px 11px;border-radius:99px;background:#f3efff;color:#8874c5}
.image-workspace .hint,.image-workspace .asset-help,.story-workspace .muted{font-size:12px;line-height:1.75;color:#8892a5}
.workspace-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;border:1px solid #e5e2ef;border-radius:14px;padding:6px;background:#eeedf6;margin-bottom:18px}
.workspace-tabs button{display:flex;align-items:center;gap:8px;min-width:0;padding:12px 9px;border:0;border-radius:10px;background:transparent;color:#8c8a9e;text-align:left;line-height:1.5}
.workspace-tabs button>span{font-size:12px;font-weight:700}.workspace-tabs strong{display:block;font-size:13px;white-space:nowrap}.workspace-tabs small{display:block;font-size:10px;margin-top:4px}
.workspace-tabs button.is-active{background:#fff;color:#7055c3;box-shadow:0 2px 8px #40306a0c}.workspace-tabs button:focus-visible{outline:2px solid #8b70df;outline-offset:2px}
.workspace-toolbar{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin-bottom:16px;min-height:44px}
.workspace-next{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-top:20px}.workspace-next button{min-height:44px}
.image-workspace .module-plan-card>.action-row{display:flex;border-top:1px solid #ebe7f3;padding-top:16px;margin-top:18px}.module-plan-card .analysis-disclosure{margin-top:0}
.image-workspace .module-plan-card #analysis{height:220px;font-size:13px}.image-workspace .module-plan-card #salesSchemeWrap select{width:100%}
.image-workspace #remakeOptions .field-block input,.image-workspace #remakeOptions .field-block select{display:block;width:100%;margin-top:8px}
.image-workspace .action-row p,.image-workspace #detailMessage,.image-workspace #briefMessage{max-width:none;font-size:12px;line-height:1.7}
.image-workspace #formMessage:empty,.image-workspace #briefMessage:empty,.image-workspace #detailMessage:empty{display:none}
.image-workspace #formMessage:not(:empty),.image-workspace #briefMessage:not(:empty),.image-workspace #detailMessage:not(:empty),.story-workspace .message{display:block;width:100%;padding:12px 15px;border:1px solid #ded6f5;background:#f4f0ff;border-radius:10px;margin:8px 0 16px;color:#7560ac;font-size:13px;font-weight:500;line-height:1.7;overflow-wrap:anywhere}
.image-workspace .is-error:not(:empty),.story-workspace .message.error{background:#fff2f4!important;border-color:#efd6df!important;color:#ad536b!important}
@media(max-width:1200px){.workspace-tabs small{display:none}.image-workspace .workspace,.story-workspace .grid{grid-template-columns:minmax(0,1.3fr) minmax(280px,.8fr);gap:18px}.image-workspace .content,.story-workspace .content{padding-left:24px;padding-right:24px}}
@media(max-width:900px){.image-workspace .workspace,.story-workspace .grid{grid-template-columns:minmax(0,1fr)}.image-workspace .result-column,.story-workspace .story-result-column{position:static;grid-row:auto}.image-workspace .preview,.story-workspace .preview{height:300px}}
@media(max-width:620px){.image-workspace .content,.story-workspace .content{padding:22px 14px 40px}.image-workspace .card,.image-workspace .result-card,.story-workspace .card{padding:18px}.image-workspace h1,.story-workspace h1{font-size:26px}.workspace-tabs strong{font-size:12px}.workspace-tabs button{padding:11px 6px;gap:5px}.workspace-next button{flex:1}.image-workspace .head-pills,.story-workspace .heading>.tag{display:none}}
.image-workspace .replication-approvals{border:1px solid #e3def4;border-radius:14px;background:#faf9ff;padding:16px;margin:18px 0}.image-workspace .replication-approvals h3{margin:0 0 8px;font-size:14px}.image-workspace .replication-approvals img{max-width:100%;max-height:300px;object-fit:contain;border-radius:10px}.image-workspace .replication-approvals .remake-confirm{display:flex;align-items:flex-start;gap:9px;margin-top:14px;font-size:13px}.image-workspace .replication-approvals input[type=checkbox]{width:18px;height:18px;flex:none;accent-color:#8d76e4}

