/* Scoped S2 workspace; existing image and account screens retain their styles. */
.s2{--s2-bg:#0b0f14;--s2-card:#121820;--s2-line:#28313c;--s2-text:#edf1f5;--s2-muted:#9ba7b6;--s2-gold:#f4b62e;--s2-gold-light:#ffe0a0;--s2-green:#49c8a0;--s2-red:#f28e8e;color:var(--s2-text);font-family:inherit;box-sizing:border-box;background:var(--s2-bg);border:1px solid #222d37;border-radius:18px;display:grid;grid-template-columns:205px minmax(0,1fr);min-height:760px;overflow:hidden;line-height:1.65}
.s2 *{box-sizing:border-box}.s2 h2,.s2 h3,.s2 h4,.s2 p{margin:0}.s2 button,.s2 input,.s2 textarea,.s2 select{font:inherit}.s2 button{cursor:pointer}.s2 button:disabled{cursor:not-allowed;opacity:.48}.s2 button:focus-visible,.s2 a:focus-visible,.s2 summary:focus-visible,.s2 input:focus-visible,.s2 textarea:focus-visible,.s2 select:focus-visible{outline:2px solid var(--s2-gold);outline-offset:3px}.s2 a{color:var(--s2-gold-light)}.s2 ul{padding-left:22px}.s2-main{min-width:0;padding:28px}.s2-sidebar{border-right:1px solid var(--s2-line);background:#0e1319;padding:20px 12px;display:flex;flex-direction:column;gap:20px;min-width:0}.s2-project-heading{display:flex;align-items:center;flex-wrap:wrap;gap:10px;padding:0 4px}.s2-project-heading h3{font-size:15px}.s2-project-list{display:flex;flex-direction:column;gap:7px;max-height:720px;overflow:auto}.s2-project-item{color:var(--s2-muted);background:transparent;border:1px solid transparent;border-radius:10px;text-align:left;padding:12px;display:flex;flex-direction:column;gap:3px;min-width:0}.s2-project-item strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:600}.s2-project-item small{font-size:11px}.s2-project-item:hover{background:#18212b;color:var(--s2-text)}.s2-project-item.is-on{background:#2b2415;border-color:#624d20;color:var(--s2-gold-light)}.s2-sidebar-foot{display:flex;gap:8px;align-items:center;font-size:11px;color:var(--s2-muted);padding:15px 6px;margin-top:auto}.s2-dot{width:7px;height:7px;border-radius:50%;background:var(--s2-green);display:inline-block}.s2-btn{background:#1b2530;color:var(--s2-text);border:1px solid #374453;border-radius:9px;padding:9px 14px;display:inline-flex;align-items:center;justify-content:center;gap:6px;text-decoration:none;font-size:13px;line-height:1.5;transition:background .15s,border-color .15s;white-space:nowrap}.s2-btn:hover:not(:disabled){background:#263442;border-color:#627384;color:#fff}.s2-btn-gold{background:var(--s2-gold);border-color:var(--s2-gold);color:#201706;font-weight:700}.s2-btn-gold:hover:not(:disabled){background:#ffcc5a;border-color:#ffcc5a;color:#201706}.s2-btn-small{padding:6px 9px;font-size:12px}.s2-btn-outline-gold{color:var(--s2-gold-light);border-color:#705520;background:#292315}.s2-btn-outline-gold:hover:not(:disabled){background:#413318;border-color:var(--s2-gold)}.s2-hero{padding:16px 12px 30px;text-align:center;position:relative}.s2-eyebrow{font-size:11px;font-weight:600;letter-spacing:.12em;color:var(--s2-gold);margin-bottom:6px}.s2-hero h2{font-size:clamp(30px,3.3vw,48px);line-height:1.3;color:var(--s2-gold-light);letter-spacing:.02em;font-weight:800}.s2-edition{font-size:13px;display:inline-block;background:var(--s2-gold);color:#1a1204;padding:4px 8px;border-radius:5px;vertical-align:middle;transform:rotate(-4deg);letter-spacing:0}.s2-hero p{font-size:14px;color:var(--s2-muted);margin:14px auto 20px;max-width:620px}.s2-hero-steps{display:flex;justify-content:center;flex-wrap:wrap;gap:12px 22px;color:#b8c1cd;font-size:12px}.s2-hero-steps span{display:flex;gap:7px;align-items:center}.s2-hero-steps b{font-size:10px;color:var(--s2-gold);background:#302718;padding:3px 6px;border-radius:4px}.s2-team{border:1px solid var(--s2-line);border-radius:12px;padding:13px 17px;margin-bottom:22px;background:linear-gradient(110deg,#191b1a,#101720)}.s2-team summary{display:flex;align-items:center;justify-content:space-between;gap:8px;cursor:pointer;font-size:13px;color:var(--s2-gold-light);list-style:none}.s2-team summary:after{content:'＋';font-size:16px;color:var(--s2-muted);margin-left:auto}.s2-team[open] summary:after{content:'−'}.s2-team-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:14px;margin-top:20px;margin-bottom:15px}.s2-role{display:flex;align-items:flex-start;gap:8px;min-width:0}.s2-role-number{font-size:10px;background:#332a17;color:var(--s2-gold);padding:5px 7px;border-radius:6px}.s2-role strong{font-size:12px;font-weight:600}.s2-role small{display:block;color:var(--s2-muted);font-size:10px}.s2-card{border:1px solid var(--s2-line);border-radius:13px;background:var(--s2-card);padding:22px;margin-bottom:20px;min-width:0}.s2-card-head{margin-bottom:20px}.s2-card-head h3{font-size:18px;font-weight:700;line-height:1.5}.s2-card-head p{font-size:12px;color:var(--s2-muted);margin-top:5px}.s2-card-actions{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:12px;margin-top:22px;padding-top:18px;border-top:1px solid var(--s2-line)}.s2-card-actions>.s2-hint{margin-right:auto;flex:1;min-width:160px}.s2-label{font-size:12px;font-weight:600;color:#d6dee8;display:block}.s2-field{display:flex;flex-direction:column;gap:7px;min-width:0}.s2-input{width:100%;background:#0d141c;border:1px solid #354250;color:var(--s2-text);border-radius:8px;padding:10px 12px;font-size:13px;line-height:1.55;min-width:0;box-shadow:none}.s2-input::placeholder{color:#69798a}.s2 textarea.s2-input{resize:vertical;min-height:84px}.s2 select.s2-input{appearance:auto}.s2-input option{background:#101821;color:var(--s2-text)}.s2-input[type=number]{max-width:180px}.s2-hint{font-size:11px;color:var(--s2-muted);line-height:1.7}.s2-upload{position:relative;min-height:190px;border:1px dashed #715a2a;border-radius:12px;background:linear-gradient(120deg,#28211655,#111c29);display:flex;align-items:center;justify-content:center;flex-direction:column;gap:7px;text-align:center;padding:25px;cursor:pointer}.s2-upload:hover,.s2-upload.is-drag{border-color:var(--s2-gold);background:#31281755}.s2-file{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer;z-index:1}.s2-upload-symbol{font-size:27px;color:var(--s2-gold);line-height:1}.s2-upload strong{font-size:16px}.s2-upload>span:not(.s2-upload-symbol){font-size:12px;color:#bec8d5}.s2-upload small{font-size:11px;color:var(--s2-muted)}.s2-upload-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(85px,1fr));gap:10px;margin-top:15px}.s2-upload-thumb{position:relative;aspect-ratio:1;border:1px solid #38414b;border-radius:8px;overflow:hidden;background:#fff}.s2-upload-thumb img{display:block;width:100%;height:100%;object-fit:contain}.s2-thumb-remove{position:absolute;right:4px;top:4px;border:0;border-radius:50%;background:#0c131ddd;color:#fff;width:23px;height:23px;font-size:17px}.s2-setup-row{display:grid;grid-template-columns:95px minmax(0,1fr);align-items:start;gap:18px;border-bottom:1px solid #242c35;padding:22px 0}.s2-setup-row>.s2-label{padding-top:8px}.s2-chips{display:flex;gap:8px;flex-wrap:wrap}.s2-chip{background:#1c232c;border:1px solid #34404c;border-radius:24px;padding:7px 13px;color:#b8c2ce;font-size:12px;line-height:1.6}.s2-chip.is-on{background:#392c12;border-color:var(--s2-gold);color:var(--s2-gold);box-shadow:0 0 15px #f4b62e0d}.s2-chip:hover:not(:disabled){color:var(--s2-gold-light);border-color:#8f7138}.s2-custom{margin-top:12px;max-width:420px}.s2-create-fields{display:grid;gap:18px;margin-top:22px}.s2-tag{display:inline-flex;border:1px solid #344250;border-radius:20px;align-items:center;padding:3px 9px;font-size:10px;color:#bcc8d5;background:#1a2530;line-height:1.6;white-space:nowrap}.s2-tag-gold{color:var(--s2-gold-light);border-color:#6b5426;background:#302715}.s2-tag-ok{color:#8ce4c7;border-color:#285347;background:#112e29}.s2-tag-error{color:#ffc3c3;border-color:#7e4141;background:#392120}.s2-note{border:1px solid #344757;background:#14222d;border-radius:8px;padding:12px 14px;margin-top:13px;color:#b9cddd;font-size:12px;white-space:pre-wrap}.s2-note-warning{border-color:#67512b;background:#2e271a;color:#ead09d}.s2-error{display:flex;gap:15px;align-items:center;justify-content:space-between;background:#3b2025;border:1px solid #7f3b4a;color:#ffd6de;padding:12px 15px;border-radius:10px;margin-bottom:20px;font-size:13px;white-space:pre-wrap}.s2-project-title{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:3px 0 20px}.s2-project-title h2{font-size:24px;line-height:1.4}.s2-project-title p{font-size:11px;color:var(--s2-muted);margin-top:5px}.s2-product-strip{display:flex;gap:6px;flex-shrink:0}.s2-product-strip img{width:42px;height:42px;object-fit:cover;background:#fff;border:1px solid #4c4a3b;border-radius:7px}.s2-progress{display:grid;grid-template-columns:repeat(4,1fr);list-style:none;padding:0;margin:2px 0 24px;gap:6px}.s2-progress li{display:flex;gap:7px;align-items:center;font-size:11px;color:#768595;padding:12px 0;border-bottom:2px solid #263340}.s2-step-number{width:22px;height:22px;background:#1d2935;border:1px solid #344352;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:10px;flex-shrink:0}.s2-progress li.is-current{color:var(--s2-gold-light);border-bottom-color:var(--s2-gold)}.s2-progress li.is-current .s2-step-number{background:var(--s2-gold);color:#211708;border-color:var(--s2-gold)}.s2-progress li.is-done{color:#8acebc;border-bottom-color:#357f6b}.s2-progress li.is-done .s2-step-number{background:#153c31;color:#8bdfc5;border-color:#3c7e68}.s2-workspace{display:grid;grid-template-columns:minmax(0,1fr) 285px;gap:20px;align-items:start}.s2-work-main{min-width:0}.s2-summary{font-size:13px;color:#c8d4e0;line-height:1.8;white-space:pre-wrap;margin-bottom:14px!important}.s2-question-list{background:#182330;border-radius:9px;padding:13px 16px;font-size:12px;color:#c1d2e4;margin-top:16px}.s2-question-list strong{color:var(--s2-gold-light)}.s2-question-list ul{margin:7px 0 0}.s2-count-pick{display:flex;align-items:center;gap:20px;flex-wrap:wrap}.s2-count-pick .s2-field{width:110px}.s2-video-plan{border:1px solid #33404b;border-radius:10px;margin-bottom:15px;overflow:hidden}.s2-video-head{display:flex;align-items:center;gap:11px;background:#19232e;padding:14px}.s2-video-index{font-size:18px;color:var(--s2-gold);font-weight:700;flex-shrink:0}.s2-video-head h4{font-size:14px}.s2-video-head p{color:var(--s2-muted);font-size:11px}.s2-video-head>.s2-tag{margin-left:auto}.s2-plan-shot{display:flex;gap:13px;padding:16px;border-bottom:1px solid #283440;align-items:flex-start}.s2-plan-shot:last-child{border-bottom:0}.s2-shot-order{color:var(--s2-gold);font-size:10px;white-space:nowrap}.s2-plan-shot>.s2-shot-order{margin-top:3px}.s2-plan-shot>div{flex:1;min-width:0}.s2-plan-shot strong{font-size:12px}.s2-plan-shot p{color:#afbdca;font-size:12px;margin-top:6px;white-space:pre-wrap;overflow-wrap:anywhere}.s2-shot-meta{display:flex;flex-wrap:wrap;gap:5px 14px;font-size:10px;color:#7f91a3;margin-top:9px}.s2-reference-list{display:grid;gap:20px}.s2-reference-card{border:1px solid #36424e;border-radius:11px;padding:17px;background:#101821}.s2-reference-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:15px}.s2-reference-head h4{font-size:14px}.s2-inline-actions{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}.s2-reference-options{display:grid;grid-template-columns:repeat(auto-fill,minmax(95px,1fr));gap:10px;margin-top:15px}.s2-ref-choice{position:relative;padding:0;background:#1a2430;border:2px solid transparent;border-radius:8px;overflow:hidden;color:#afbfce;display:flex;flex-direction:column;min-width:0}.s2-ref-choice img{width:100%;aspect-ratio:1;object-fit:contain;background:#fff;display:block}.s2-ref-choice>span{font-size:10px;padding:6px;display:block;text-align:center}.s2-ref-choice.is-selected{border-color:var(--s2-gold);color:var(--s2-gold-light);background:#352a16}.s2-ref-choice:hover{border-color:#8c713c}.s2-ref-pending{aspect-ratio:1;display:flex;align-items:center;justify-content:center;gap:10px;flex-direction:column;background:#1a2632;border-radius:8px;padding:10px;text-align:center;color:var(--s2-muted)}.s2-ref-pending.is-error{color:var(--s2-red);font-size:11px}.s2-fields-row{display:grid;grid-template-columns:105px minmax(120px,1fr) minmax(120px,1fr);gap:12px}.s2-shot-fields{display:grid;gap:13px}.s2-shot-fields .s2-label{font-size:10px}.s2-shot-fields .s2-input{padding:8px 10px;font-size:12px}.s2-studio-summary{display:flex;gap:26px;flex-wrap:wrap;margin-bottom:20px}.s2-studio-summary>div{display:flex;flex-direction:column;gap:3px}.s2-studio-summary strong{font-size:24px;color:var(--s2-gold-light);line-height:1.3}.s2-studio-summary span{font-size:10px;color:var(--s2-muted)}.s2-generation-toolbar{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.s2-generation-toolbar .s2-hint{flex-basis:100%;margin-bottom:5px}.s2-studio-shots{display:grid;gap:20px}.s2-shot-card{padding:17px;border:1px solid #35424f;border-radius:10px;background:#101820}.s2-shot-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:15px}.s2-shot-head h4{font-size:14px}.s2-version-compare{display:flex;overflow-x:auto;gap:13px;align-items:flex-start;padding:5px 0 12px;scroll-snap-type:x proximity}.s2-version{border:1px solid #344552;border-radius:9px;background:#0b131b;min-width:180px;width:calc(50% - 7px);flex-shrink:0;padding:10px;scroll-snap-align:start}.s2-version header{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:9px}.s2-version header strong{font-size:11px}.s2-version video{width:100%;max-height:260px;background:#030608;display:block;border-radius:5px;aspect-ratio:9/16;object-fit:contain}.s2-version>.s2-btn{margin-top:9px}.s2-version>.s2-hint{display:block;margin-top:6px;font-size:9px}.s2-version-full{min-width:210px}.s2-version-placeholder{aspect-ratio:9/16;max-height:250px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:10px;color:#8297a9;background:#111e29;border-radius:5px;padding:14px;text-align:center}.s2-version-placeholder>span:not(.s2-spinner){font-size:30px}.s2-version-placeholder p{font-size:11px;overflow-wrap:anywhere}.s2-version-placeholder progress{width:90%;height:6px;accent-color:var(--s2-gold)}.s2-no-version{font-size:11px;color:#748899;background:#111f2a;padding:18px;border-radius:7px}.s2-compose-area{display:flex;justify-content:space-between;align-items:center;gap:16px;border-top:1px solid #2c3945;padding-top:18px;margin-top:20px;flex-wrap:wrap}.s2-compose-area h4{font-size:13px}.s2-compose-area p{margin-top:4px}.s2-quote{border:1px solid #765c28;background:#272314;border-radius:10px;padding:17px;margin-top:17px}.s2-quote-total{display:flex;align-items:center;justify-content:space-between;gap:15px;color:#d0c5a9;font-size:12px;flex-wrap:wrap}.s2-quote-total strong{font-size:23px;color:var(--s2-gold-light);line-height:1.4}.s2-quote-items{display:grid;gap:5px;border-top:1px solid #55472c;padding-top:10px;margin-top:12px;font-size:11px}.s2-quote-items>div{display:flex;justify-content:space-between;gap:12px}.s2-quote-items b{font-weight:500;color:#f4d99e;white-space:nowrap}.s2-quote>.s2-hint{margin-top:10px}.s2-chat{position:sticky;top:20px;border:1px solid #394332;border-radius:12px;background:#101720;overflow:hidden;min-width:0}.s2-chat-head{display:flex;align-items:center;gap:10px;padding:16px;background:linear-gradient(110deg,#302714,#17202b);border-bottom:1px solid #3b3d2f}.s2-chat-icon{height:35px;width:35px;background:#f4b62e1a;border:1px solid #7c6128;display:flex;align-items:center;justify-content:center;border-radius:9px;color:var(--s2-gold);font-size:22px}.s2-chat-head h3{font-size:14px}.s2-chat-head p{font-size:10px;color:#b4ab96}.s2-chat-messages{min-height:210px;max-height:510px;overflow:auto;padding:15px;display:flex;flex-direction:column;gap:15px;scrollbar-width:thin;scrollbar-color:#455362 transparent}.s2-message{font-size:12px;padding:12px;border:1px solid #303f4b;background:#182430;border-radius:0 10px 10px 10px;overflow-wrap:anywhere}.s2-message strong{font-size:10px;color:var(--s2-gold-light)}.s2-message p{white-space:pre-wrap;margin-top:5px;color:#c2cfdd;line-height:1.85}.s2-message.is-user{background:#292616;border-color:#514829;border-radius:10px 0 10px 10px;margin-left:18px}.s2-message.is-user strong{color:#d5c392}.s2-chat-welcome{font-size:12px;color:#93a6b8;padding:14px 0}.s2-chat-welcome strong{font-size:13px;color:#d4e0eb}.s2-chat-welcome p{margin-top:10px}.s2-chat-form{border-top:1px solid #283542;padding:12px}.s2-chat-form .s2-input{font-size:12px;background:#0b121a;min-height:100px}.s2-chat-send{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:9px}.s2-chat-send small{font-size:9px;color:#6d8397}.s2-chat-foot{padding:0 13px 13px!important;font-size:9px;color:#73889c}.s2-loading{grid-column:1/-1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:18px;min-height:480px;color:var(--s2-muted);font-size:13px}.s2-spinner{display:inline-block;width:21px;height:21px;border:2px solid #5c4b29;border-top-color:var(--s2-gold);border-radius:50%;animation:s2spin 1s linear infinite;flex-shrink:0}.s2-modal-mask{position:fixed;inset:0;z-index:120;background:#020810bb;display:flex;align-items:center;justify-content:center;padding:20px;border:0;border-radius:0;min-height:0;backdrop-filter:blur(4px)}.s2-modal{width:620px;max-width:100%;max-height:90vh;overflow-y:auto;background:#121b24;border:1px solid #4d5141;border-radius:14px;padding:24px;box-shadow:0 30px 90px #0009}.s2-modal-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:22px}.s2-modal-head h3{font-size:18px}.s2-modal .s2-quote{margin-top:0}@keyframes s2spin{to{transform:rotate(360deg)}}
@media(min-width:1550px){.s2-workspace{grid-template-columns:minmax(0,1fr) 320px}.s2-main{padding:32px}.s2-sidebar{padding:24px 14px}.s2{grid-template-columns:220px minmax(0,1fr)}}
@media(max-width:1250px){.s2{grid-template-columns:170px minmax(0,1fr)}.s2-main{padding:20px}.s2-workspace{grid-template-columns:minmax(0,1fr)}.s2-chat{position:relative;top:0;display:grid;grid-template-columns:1fr 1fr}.s2-chat-head{grid-column:1/-1}.s2-chat-messages{height:290px;max-height:290px}.s2-chat-form{border-top:0;border-left:1px solid #283542;display:flex;flex-direction:column;justify-content:flex-end}.s2-chat-foot{grid-column:1/-1;padding-top:8px!important}.s2-fields-row{grid-template-columns:90px minmax(120px,1fr) minmax(120px,1fr)}.s2-card{padding:20px}}
@media(max-width:800px){.s2{grid-template-columns:minmax(0,1fr);border-radius:12px}.s2-sidebar{border-right:0;border-bottom:1px solid var(--s2-line);padding:14px;gap:10px}.s2-project-heading{justify-content:space-between}.s2-project-list{display:flex;flex-direction:row;overflow:auto;max-height:85px;padding-bottom:3px}.s2-project-item{min-width:165px;max-width:220px;padding:9px 11px;border:1px solid #26343f}.s2-project-item strong{font-size:12px}.s2-sidebar-foot{display:none}.s2-main{padding:18px}.s2-hero{padding-top:6px}.s2-hero h2{font-size:34px}.s2-progress li{font-size:10px;gap:5px;align-items:flex-start;flex-direction:column}.s2-progress{gap:10px}.s2-product-strip img{width:34px;height:34px}.s2-project-title h2{font-size:21px}.s2-project-title{gap:10px}.s2-project-title p{max-width:280px}.s2-chat{display:block}.s2-chat-form{border-left:0;border-top:1px solid #283542}.s2-chat-messages{height:auto;min-height:190px;max-height:370px}.s2-card{padding:17px}.s2-fields-row{grid-template-columns:90px minmax(0,1fr)}.s2-fields-row>.s2-field:last-child{grid-column:1/-1}.s2-modal .s2-fields-row{grid-template-columns:90px minmax(0,1fr)}.s2-setup-row{grid-template-columns:1fr;gap:10px;padding:18px 0}.s2-setup-row>.s2-label{padding-top:0}.s2-card-actions>.s2-btn-gold{width:100%}.s2-team-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.s2-generation-toolbar>.s2-btn{flex:1}.s2-quote-total strong{font-size:20px}.s2-plan-shot{gap:9px;padding:13px;flex-wrap:wrap}.s2-plan-shot>.s2-shot-order{min-width:40px}.s2-plan-shot>.s2-btn{margin-left:49px}.s2-video-head{flex-wrap:wrap}.s2-video-head>.s2-tag{margin-left:30px}.s2-version{min-width:180px;width:70%}.s2-project-title .s2-product-strip img:nth-child(n+3){display:none}}
@media(prefers-reduced-motion:reduce){.s2-spinner{animation:none}.s2 *{transition:none!important}}
.s2-working{display:flex;align-items:center;gap:12px;border:1px solid #65502a;border-radius:9px;background:#2b2518;color:#e6d09c;padding:12px 15px;margin-bottom:17px;font-size:12px}.s2-working .s2-spinner{width:17px;height:17px}
.s2-history>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;cursor:pointer;list-style:none}.s2-history>summary strong{font-size:15px}.s2-history>summary small{display:block;color:var(--s2-muted);font-size:10px;margin-top:4px}.s2-history>summary:after{content:"＋";color:var(--s2-gold)}.s2-history[open]>summary:after{content:"−"}.s2-history-list{display:grid;gap:20px;margin-top:22px}.s2-history-plan{border-top:1px solid var(--s2-line);padding-top:17px}.s2-history-plan>header{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-bottom:12px}.s2-history-plan>header h4{font-size:13px;color:var(--s2-gold-light)}.s2-history-video{background:#0e171f;border:1px solid #2d3c49;border-radius:9px;padding:14px;margin-top:10px}.s2-history-video>h4{font-size:12px}.s2-history-shots{display:grid;gap:8px;margin-top:12px}.s2-history-shot{border:1px solid #293b49;border-radius:7px;padding:11px}.s2-history-shot>summary{display:flex;align-items:center;justify-content:space-between;gap:10px;cursor:pointer;font-size:11px}.s2-history-shot>p{margin-top:9px;white-space:pre-wrap}
.s2 input.s2-input[type="number"]{background:#0d141c!important;background-color:#0d141c!important;color:#edf1f5!important;-webkit-text-fill-color:#edf1f5;caret-color:#edf1f5;color-scheme:dark;border-color:#46596a}.s2-project-title{scroll-margin-top:90px}
@media(max-width:600px){
body:has(#ecommerce-s2) .topbar{flex-wrap:wrap;align-items:center;gap:8px;padding:10px 12px}
body:has(#ecommerce-s2) .topbar-left{width:100%;min-width:0;gap:8px}
body:has(#ecommerce-s2) .topbar .logo{width:28px;height:28px;flex-shrink:0;font-size:12px}
body:has(#ecommerce-s2) #siteName{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px}
body:has(#ecommerce-s2) #readiness{white-space:nowrap;flex-shrink:0;font-size:11px}
body:has(#ecommerce-s2) .topbar-right{width:100%;justify-content:space-between;gap:5px}
body:has(#ecommerce-s2) .topbar .chip{min-width:0;white-space:nowrap;font-size:11px;padding:5px 7px}
body:has(#ecommerce-s2) #btnUser{max-width:110px;overflow:hidden;text-overflow:ellipsis}
}
/* Project timing, transparent model trials and observable production responsibilities. */
.s2-duration-controls{display:flex;flex-direction:column;gap:10px;min-width:0}.s2-duration-controls>.s2-field{max-width:220px}.s2-model-choice{min-width:0;display:grid;gap:7px}.s2-model-choice>.s2-input{max-width:100%}.s2-test-price{font-size:11px;line-height:1.7;color:#dfc48a;margin-top:7px!important}.s2-settings>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;cursor:pointer;list-style:none}.s2-settings>summary strong{font-size:14px}.s2-settings>summary small{display:block;font-size:11px;color:var(--s2-muted);margin-top:4px;overflow-wrap:anywhere}.s2-settings>summary:after{content:'＋';color:var(--s2-gold)}.s2-settings[open]>summary:after{content:'−'}.s2-settings-body{display:grid;gap:20px;margin-top:22px}.s2-settings-body>.s2-field>.s2-label{font-size:13px}.s2-settings-body .s2-card-actions{margin-top:0}.s2-duration-summary{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin-bottom:15px}.s2-video-head .s2-duration-summary{margin-left:auto;margin-bottom:0;max-width:100%}.s2-duration-warning{font-size:11px!important;color:#edc77b!important;flex-basis:100%;text-align:left;line-height:1.6}.s2-script-summary{border-left:2px solid #61512d;padding:6px 10px;margin-top:9px;display:grid;gap:5px}.s2-script-summary p{font-size:11px!important;color:#b2becc!important;white-space:pre-wrap;overflow-wrap:anywhere}.s2-script-summary b{color:#e4d3ab;font-weight:600}.s2-script-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:12px 0}.s2-script-fields textarea.s2-input{min-height:76px}.s2-shot-fields>.s2-field:last-of-type{margin-top:12px}.s2-role-body{min-width:0;flex:1}.s2-role-head{display:flex;align-items:flex-start;justify-content:space-between;gap:6px}.s2-role-head .s2-tag{font-size:9px;padding:2px 6px;white-space:nowrap}.s2-team-grid{grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:12px}.s2-role{padding:12px;background:#101820;border:1px solid #2b3541;border-radius:9px}.s2-role-number{flex-shrink:0}.s2-role-output{font-size:11px!important;color:#d7e1ed;margin-top:7px!important;overflow-wrap:anywhere}.s2-role .s2-role-limit{font-size:10px;color:#bfa877;margin-top:5px}.s2-team .s2-hint{overflow-wrap:anywhere}.s2-plan-shot>div{min-width:0}.s2-fields-row .s2-input{max-width:100%}
@media(max-width:1000px){.s2-team-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.s2-team-grid,.s2-script-fields{grid-template-columns:minmax(0,1fr)}.s2-team{padding:12px}.s2-team summary{align-items:flex-start;flex-wrap:wrap}.s2-role{padding:11px}.s2-role-head{align-items:center}.s2-settings{padding:15px}.s2-settings>summary{flex-wrap:wrap}.s2-settings>summary>span:first-child{flex:1;min-width:0}.s2-settings-body .s2-card-actions>.s2-btn{width:100%;white-space:normal}.s2-video-head .s2-duration-summary{margin-left:0;flex-basis:100%}.s2-duration-summary>.s2-tag{font-size:10px}.s2-fields-row{grid-template-columns:minmax(0,1fr)}.s2-fields-row>.s2-field:last-child{grid-column:auto}.s2-modal .s2-fields-row{grid-template-columns:minmax(0,1fr)}.s2-model-choice select{font-size:12px}.s2-duration-controls .s2-chip{padding:7px 10px}}

/* Persisted background operations remain visible after the submission returns. */
#ecommerce-s2 .s2-background-status:empty { display: none; }
#ecommerce-s2 .s2-background-status .s2-working { align-items: flex-start; }
#ecommerce-s2 .s2-background-status .s2-working strong { display: block; color: #f5d68a; }
#ecommerce-s2 .s2-background-status .s2-working p { margin: 5px 0; }
#ecommerce-s2 .s2-background-status .s2-working small { color: #aaaeb9; }
#ecommerce-s2 .s2-operation-error { display: grid; gap: 9px; margin: 16px 0; padding: 18px; border: 1px solid #a76035; border-radius: 12px; background: #302318; color: #ffce9e; }
#ecommerce-s2 .s2-operation-error p { margin: 0; }
#ecommerce-s2 .s2-operation-error small { color: #dbbca0; }
#ecommerce-s2 .s2-operation-error .s2-btn { justify-self: start; }
#ecommerce-s2 .s2-pending-create { margin: 18px 0; }
#ecommerce-s2 .s2-pending-create .s2-note { margin-bottom: 10px; }

/* Answers live beside the questions and save as structured product facts. */
#ecommerce-s2 .s2-facts-form { display: grid; gap: 18px; margin-top: 24px; padding-top: 22px; border-top: 1px solid #33343b; }
#ecommerce-s2 .s2-facts-head h4 { margin: 0 0 8px; font-size: 17px; color: #f5d68a; }
#ecommerce-s2 .s2-facts-head p { margin: 0; }
#ecommerce-s2 .s2-facts-questions { display: grid; gap: 18px; }
#ecommerce-s2 .s2-facts-question { display: grid; gap: 7px; }
#ecommerce-s2 .s2-facts-question .s2-field { margin: 0; }
#ecommerce-s2 .s2-facts-question .s2-label { line-height: 1.65; }
#ecommerce-s2 .s2-facts-answer-state { justify-self: start; }
#ecommerce-s2 .s2-facts-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
#ecommerce-s2 .s2-facts-save-state { color: #aaaeb9; font-size: 12px; }
#ecommerce-s2 .s2-facts-form .s2-input { width: 100%; min-width: 0; resize: vertical; }
@media (max-width: 680px) { #ecommerce-s2 .s2-facts-actions .s2-btn-gold { width: 100%; } }

/* A disabled gate needs a visible reason; it is not a running generation task. */
#ecommerce-s2 .s2-reference-guidance { display: grid; gap: 12px; margin-top: 16px; padding: 15px; border: 1px solid #715a2a; border-radius: 9px; background: #302719; color: #f2d398; }
#ecommerce-s2 .s2-reference-missing { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
#ecommerce-s2 .s2-reference-missing p { flex: 1; min-width: 180px; font-size: 12px; }
#ecommerce-s2 .s2-reference-draft-warning:not(:empty) { margin-top: 14px; color: #f2d398; font-size: 12px; }
#ecommerce-s2 .s2-ref-option { display: flex; min-width: 0; flex-direction: column; gap: 5px; }
#ecommerce-s2 .s2-ref-option .s2-ref-choice { width: 100%; }
#ecommerce-s2 .s2-ref-zoom { align-self: center; padding: 2px 4px; font-size: 10px; text-decoration: underline; }

/* Task synchronization and explicit preview-to-HD generation actions. */
#ecommerce-s2 .s2-progress-sync { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin: 12px 0 18px; }
#ecommerce-s2 .s2-quality-actions { display: grid; gap: 9px; margin: 16px 0; padding-top: 14px; border-top: 1px solid #303b48; }
#ecommerce-s2 .s2-compose-area { flex-wrap: wrap; }


/* Explicit production choice and completion step for segmented videos. */
#ecommerce-s2 .s2-structure-controls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
#ecommerce-s2 .s2-structure-choice { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; min-width: 0; padding: 16px; text-align: left; color: #bfceda; background: #111e29; border: 1px solid #3a4c5a; border-radius: 9px; }
#ecommerce-s2 .s2-structure-choice strong { font-size: 14px; }
#ecommerce-s2 .s2-structure-choice span { font-size: 11px; line-height: 1.7; }
#ecommerce-s2 .s2-structure-choice.is-on { border-color: #c59b45; background: #302719; color: #f1d391; box-shadow: inset 0 0 0 1px #c59b45; }
#ecommerce-s2 .s2-structure-choice:focus-visible { outline: 2px solid #ffe0a0; outline-offset: 3px; }
#ecommerce-s2 .s2-plan-shot-body { flex: 1; min-width: 0; }
#ecommerce-s2 .s2-plan-shot-body > .s2-shot-fields { margin: 14px 0; }
#ecommerce-s2 .s2-compose-area { padding: 20px; border: 1px solid #806329; background: #292416; border-radius: 10px; }
#ecommerce-s2 .s2-compose-area > div { flex: 1; min-width: 220px; }
#ecommerce-s2 .s2-merge-readiness { color: #f1d391; font-size: 12px; line-height: 1.7; }
@media(max-width:600px) { #ecommerce-s2 .s2-structure-controls { grid-template-columns: 1fr; } #ecommerce-s2 .s2-compose-area > .s2-btn { width: 100%; } #ecommerce-s2 .s2-plan-shot > .s2-btn { margin-left: 0; width: 100%; } }

/* A visible, free handoff from completed production to playback and download. */
#ecommerce-s2 .s2-delivery-entry { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 18px; margin: 0 0 22px; padding: 22px; border: 1px solid #4c9c7f; border-radius: 14px; background: linear-gradient(120deg,#14392f,#17241f); }
#ecommerce-s2 .s2-delivery-entry h3 { font-size: 21px; color: #b9f1d7; margin: 2px 0 7px; }
#ecommerce-s2 .s2-delivery-entry p { max-width: 620px; color: #bfcecc; font-size: 12px; }
#ecommerce-s2 .s2-delivery-view { min-width: 0; }
#ecommerce-s2 .s2-delivery-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; margin-bottom: 20px; }
#ecommerce-s2 .s2-delivery-head h2 { color: #ffe0a0; font-size: 24px; }
#ecommerce-s2 .s2-delivery-head p { margin-top: 7px; color: #acbac7; font-size: 12px; }
#ecommerce-s2 .s2-delivery-video .s2-card-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
#ecommerce-s2 .s2-delivery-player { display: block; width: 100%; max-height: 72vh; margin: 14px 0; background: #050709; border-radius: 10px; }
#ecommerce-s2 .s2-delivery-download { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; }
#ecommerce-s2 .s2-delivery-older { margin-top: 18px; }
#ecommerce-s2 .s2-delivery-older summary { color: #bdc9d5; cursor: pointer; font-size: 12px; }
#ecommerce-s2 .s2-delivery-pending { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; color: #b5c4d1; font-size: 13px; }
#ecommerce-s2 .s2-delivery-footer { display: flex; justify-content: flex-end; margin-top: 18px; }
@media (max-width:680px) { #ecommerce-s2 .s2-delivery-entry { padding: 18px; } #ecommerce-s2 .s2-delivery-entry>.s2-btn { width: 100%; } }
