:root{--sp-purple:#8b43ff;--sp-panel:#191b1f;--sp-card:#25272c}.sp-page{min-height:920px;position:relative;padding:70px 210px 110px}.sp-center{max-width:1040px;margin:auto;text-align:center}.sp-center h1{font-size:68px;letter-spacing:-.05em;margin:12px 0 8px}.sp-type{height:56px;font-size:32px;color:var(--sp-purple);font-weight:650}.sp-type i{display:inline-block;width:4px;height:31px;background:#eee;margin-left:5px;vertical-align:-4px;animation:blink .8s infinite}.sp-output{height:190px;margin:25px 0 24px;border:1px solid #303238;border-radius:24px;background:#141517;text-align:left;padding:22px;position:relative;color:#65676d;font-size:19px}.sp-output button{position:absolute;right:18px;bottom:17px;background:none;border:0;color:#8d8f94;font-size:27px;cursor:pointer}.sp-builder{border:1px solid #454048;border-radius:28px;background:#17181b;padding:16px;text-align:left}.sp-upper{display:grid;grid-template-columns:repeat(5,1fr);gap:8px}.sp-control{height:64px;border:0;border-radius:16px;background:#292b30;color:#fff;padding:9px 12px;display:flex;gap:10px;align-items:center;text-align:left;cursor:pointer}.sp-control:hover{background:#32343a}.sp-control small,.sp-control b{display:block}.sp-control small{color:#8f9198;font-size:11px}.sp-control b{font-size:14px;margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:120px}.sp-icon{font-size:23px;color:#cfcfd3}.sp-builder textarea{width:100%;height:105px;resize:none;background:transparent;border:0;outline:0;color:white;padding:22px 12px;font:16px inherit}.sp-lower{display:flex;gap:12px;align-items:flex-end}.sp-lower-tools{display:flex;gap:7px;flex-wrap:wrap;flex:1}.sp-lower-tools button{height:38px;border:0;border-radius:12px;background:#292b30;color:#eee;padding:0 13px;font-weight:650}.sp-generate{height:86px;min-width:145px;border:0;border-radius:17px;background:linear-gradient(135deg,#a15bff,#7139ff);color:white;font-weight:900}.sp-generate small{display:block;margin-top:5px}.sp-ad{position:absolute;top:82px;width:150px;height:590px;border:1px dashed #373a40;border-radius:18px;display:flex;flex-direction:column;align-items:center;justify-content:center;color:#575a61;gap:7px}.sp-ad small{font-size:10px}.sp-ad-left{left:28px}.sp-ad-right{right:28px}.sp-overlay{position:fixed;inset:0;background:rgba(0,0,0,.72);backdrop-filter:blur(4px);z-index:5000;opacity:0;pointer-events:none;transition:.2s}.sp-overlay.open{opacity:1;pointer-events:auto}.sp-modal{position:fixed;z-index:5001;inset:6vh 4vw;background:#1b1d20;border:1px solid #303238;border-radius:28px;overflow:hidden;opacity:0;pointer-events:none;transform:scale(.97);transition:.2s}.sp-modal.open{opacity:1;pointer-events:auto;transform:scale(1)}.sp-modal>header{height:82px;padding:0 24px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #2a2c31}.sp-modal h2{margin:0}.sp-modal header button{border:0;border-radius:999px;background:#303237;color:white;padding:12px 19px;font-size:15px;margin-left:7px}.sp-modal header #closePanel{font-size:28px;width:48px;padding:6px}.sp-modal-body{display:grid;grid-template-columns:250px 1fr;height:calc(100% - 82px)}.sp-modal aside{border-right:1px solid #303238;padding:20px 14px}.sp-tab{width:100%;height:58px;border:0;border-radius:14px;background:transparent;color:#9b9da3;text-align:left;padding:0 15px;font-size:16px;font-weight:700;display:flex;align-items:center;gap:12px;margin-bottom:6px}.sp-tab.active{background:#303237;color:#fff}.sp-tab .sp-tab-icon{font-size:20px}.sp-options{padding:28px;overflow:auto}.sp-options-head h3{font-size:24px;margin:0 0 5px}.sp-options-head p{margin:0 0 25px;color:#8c8e94}.sp-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.sp-option{position:relative;border:2px solid transparent;border-radius:18px;background:#25272c;padding:0;overflow:hidden;color:white;cursor:pointer;text-align:left}.sp-option .visual{height:180px;background:linear-gradient(135deg,#383b43,#1d1f23);display:grid;place-items:center;font-size:42px;color:#71747d}.sp-option strong{display:block;padding:13px 15px;font-size:16px}.sp-option.selected{border-color:var(--sp-purple)}.sp-option .tick{display:none;position:absolute;right:12px;top:12px;width:30px;height:30px;border-radius:50%;background:var(--sp-purple);place-items:center;font-weight:900}.sp-option.selected .tick{display:grid}@keyframes blink{50%{opacity:0}}@media(max-width:1100px){.sp-page{padding-left:28px;padding-right:28px}.sp-ad{display:none}}@media(max-width:760px){.sp-page{padding:42px 12px 70px;min-height:auto}.sp-center h1{font-size:43px}.sp-type{font-size:23px;height:45px}.sp-output{height:165px;border-radius:19px}.sp-builder{border-radius:20px;padding:10px}.sp-upper{display:flex;overflow-x:auto}.sp-control{min-width:155px}.sp-lower{flex-direction:column}.sp-generate{width:100%;height:58px}.sp-modal{inset:3vh 8px;border-radius:22px}.sp-modal-body{grid-template-columns:1fr;grid-template-rows:auto 1fr}.sp-modal aside{display:flex;overflow-x:auto;border-right:0;border-bottom:1px solid #303238;padding:10px}.sp-tab{min-width:130px;margin:0 5px 0 0}.sp-options{padding:16px}.sp-grid{grid-template-columns:1fr}.sp-option .visual{height:150px}.sp-modal>header{height:68px;padding:0 14px}.sp-modal-body{height:calc(100% - 68px)}}

/* 2026 compact Prompt Builder refinements */
.sp-page{padding-top:48px;padding-left:190px;padding-right:190px;min-height:820px}
.sp-center{max-width:860px}
.sp-center h1{font-size:58px;margin-top:4px}
.sp-type{height:48px;font-size:28px}
.sp-output{height:150px;margin:18px 0 18px;border-radius:20px;padding:18px 54px 18px 18px;overflow:hidden}
#promptOutput{height:100%;overflow-y:auto;overflow-x:hidden;white-space:pre-wrap;word-break:break-word;padding-right:8px;scrollbar-width:thin;scrollbar-color:#555 #1b1c20}
#promptOutput::-webkit-scrollbar{width:7px}#promptOutput::-webkit-scrollbar-thumb{background:#555;border-radius:8px}
.sp-builder{max-width:860px;margin:auto;border-radius:22px;padding:11px}
.sp-control{height:54px;border-radius:14px;padding:7px 10px}.sp-icon{font-size:19px}.sp-control b{font-size:13px}.sp-builder textarea{height:78px;padding:15px 10px}
.sp-lower-tools button{cursor:pointer}.sp-reset{border:1px solid #4b4652!important;color:#c8b7e8!important;background:#242129!important}
.sp-generate{height:68px;min-width:126px;border-radius:15px;cursor:pointer}
.sp-ad{top:70px;width:160px;height:520px;border:0;border-radius:18px;overflow:hidden;background:#17181b}
.sp-ad img{width:100%;height:100%;object-fit:cover;display:block}.sp-ad-left{left:20px}.sp-ad-right{right:20px}
.sp-modal{inset:auto;left:50%;top:50%;width:min(940px,90vw);height:min(610px,78vh);transform:translate(-50%,-50%) scale(.97);border-radius:24px}
.sp-modal.open{transform:translate(-50%,-50%) scale(1)}
.sp-modal>header{height:66px;padding:0 20px;justify-content:flex-start;gap:12px}.sp-modal>header>div{margin-left:auto}.sp-modal h2{font-size:21px}.sp-selected-count{font-size:13px;color:#92949b;background:#26282d;border-radius:999px;padding:6px 10px}
.sp-modal-body{grid-template-columns:205px 1fr;height:calc(100% - 66px)}.sp-modal aside{padding:14px 10px}.sp-tab{height:52px;cursor:pointer}.sp-tab:hover{background:#292b30}.sp-tab.active{background:#303237}.sp-tab-status{margin-left:auto;width:9px;height:9px;border-radius:50%;background:#666970}.sp-tab.complete .sp-tab-status{background:var(--sp-purple);box-shadow:0 0 0 3px rgba(139,67,255,.13)}
.sp-options{padding:20px}.sp-options-head h3{font-size:21px}.sp-options-head p{margin-bottom:17px}.sp-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.sp-option{border-radius:15px}.sp-option .visual{height:120px;background-size:cover;background-position:center}.sp-option strong{padding:10px 12px;font-size:14px}.sp-option .tick{right:8px;top:8px;width:26px;height:26px}
@media(max-width:1100px){.sp-page{padding-left:28px;padding-right:28px}.sp-ad{display:none}.sp-center{max-width:860px}}
@media(max-width:760px){.sp-page{padding-top:34px}.sp-center h1{font-size:42px}.sp-output{height:145px}.sp-modal{width:calc(100vw - 16px);height:86vh}.sp-modal-body{grid-template-columns:1fr;grid-template-rows:auto 1fr}.sp-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.sp-option .visual{height:115px}.sp-selected-count{display:none}}

/* v2.3 requested refinements */
.sp-ad{width:185px}
.sp-ad-left{left:34px}.sp-ad-right{right:34px}
.sp-control.complete{background:var(--sp-purple)}
.sp-control.complete small,.sp-control.complete b,.sp-control.complete .sp-icon{color:#fff}
.sp-modal>header>div{display:flex;align-items:center;gap:8px}
.sp-modal header button{margin-left:0;cursor:pointer;transition:background .18s ease,transform .18s ease}
.sp-modal header button:hover{background:var(--sp-purple);transform:translateY(-1px)}
.sp-modal header #closePanel{height:46px;width:46px;display:grid;place-items:center;line-height:1}
#nextPanel{height:46px;padding:0 20px}
#resetPanel{height:46px;padding:0 20px}
@media(max-width:1100px) and (min-width:761px){.sp-ad{display:none}}
@media(max-width:760px){
 .sp-upper-wrap{position:relative;padding:0 34px}
 .sp-upper{overflow:hidden;scroll-behavior:smooth;scrollbar-width:none}
 .sp-upper::-webkit-scrollbar{display:none}
 .sp-upper-arrow{display:grid!important;position:absolute;top:50%;transform:translateY(-50%);z-index:4;width:30px;height:42px;border:1px solid #454750;border-radius:12px;background:#202227;color:#fff;place-items:center;cursor:pointer;font-size:20px}
 .sp-upper-arrow:hover{background:var(--sp-purple)}
 .sp-upper-arrow.prev{left:0}.sp-upper-arrow.next{right:0}
 .sp-control{min-width:155px}
}
@media(min-width:761px){.sp-upper-arrow{display:none!important}}


/* v2.4 refinements */
.sp-control,.sp-lower-tools button{background:#292b30}
.sp-option{background:#292b30}
.sp-option .visual{background-color:#292b30}
.sp-option .visual video{width:100%;height:100%;display:block;object-fit:cover}
.sp-options{overflow-y:auto;scrollbar-width:none;-ms-overflow-style:none}
.sp-options::-webkit-scrollbar{display:none;width:0;height:0}
.sp-modal header #closePanel{order:1}.sp-modal header #nextPanel{order:2}.sp-modal header #resetPanel{order:3}
/* v2.5 requested refinements */
.sp-control,.sp-lower-tools button{background:#292b30}
.sp-modal>header>div{display:flex;align-items:center;gap:7px;flex-direction:row-reverse}
.sp-modal header #closePanel,.sp-modal header #nextPanel,.sp-modal header #resetPanel{order:initial}
.sp-option .visual video{width:100%;height:100%;object-fit:cover;display:block}

/* v2.6 single-option carousel */
.sp-grid.sp-single-carousel{display:block;position:relative;min-height:330px;padding:0 78px}
.sp-single-carousel .sp-option{display:none;width:min(480px,100%);margin:0 auto}
.sp-single-carousel .sp-option.is-active{display:block}
.sp-single-carousel .sp-option .visual{height:235px}
.sp-carousel-arrow{position:absolute;top:50%;transform:translateY(-50%);width:54px;height:74px;border:0;border-radius:18px;background:#2b2d32;color:#fff;font-size:38px;cursor:pointer;transition:.18s;z-index:3}
.sp-carousel-arrow:hover{background:var(--sp-purple)}
.sp-carousel-arrow.prev{left:6px}.sp-carousel-arrow.next{right:6px}
.sp-option video{width:100%;height:100%;display:block;object-fit:cover;background:#111}
@media(max-width:760px){.sp-grid.sp-single-carousel{padding:0 52px;min-height:260px}.sp-single-carousel .sp-option .visual{height:180px}.sp-carousel-arrow{width:42px;height:62px;font-size:30px}}

/* v2.7 compact reference-matched carousel */
.sp-grid.sp-single-carousel{display:block;position:relative;min-height:260px;padding:0 105px;margin-top:8px}
.sp-single-carousel .sp-option{display:none;width:min(360px,100%);margin:0 auto;background:transparent;border:0;border-radius:0;overflow:visible}
.sp-single-carousel .sp-option.is-active{display:block}
.sp-single-carousel .sp-option .visual{height:190px;border:2px solid #35383e;border-radius:18px;overflow:hidden;background:#202226;transition:border-color .18s}
.sp-single-carousel .sp-option.selected .visual{border-color:var(--sp-purple)}
.sp-single-carousel .sp-option strong{display:block;padding:11px 3px 0;font-size:20px;line-height:1.2;font-weight:400;color:#f2f2f3;background:transparent}
.sp-single-carousel .sp-option .tick{right:10px;top:10px;width:34px;height:34px;font-size:20px}
.sp-carousel-arrow{position:absolute;top:92px;transform:translateY(-50%);width:70px;height:110px;border:0;border-radius:0;background:transparent;color:#34363b;font-size:92px;font-family:Arial,sans-serif;font-weight:300;line-height:1;cursor:pointer;transition:.18s;z-index:3;padding:0;display:grid;place-items:center}
.sp-carousel-arrow:hover{background:transparent;color:#555860}
.sp-carousel-arrow.prev{left:18px}.sp-carousel-arrow.next{right:18px}
.sp-option video{width:100%;height:100%;display:block;object-fit:cover;background:#111}
@media(max-width:760px){.sp-grid.sp-single-carousel{padding:0 55px;min-height:220px}.sp-single-carousel .sp-option{width:min(300px,100%)}.sp-single-carousel .sp-option .visual{height:160px}.sp-single-carousel .sp-option strong{font-size:18px}.sp-carousel-arrow{top:78px;width:48px;height:86px;font-size:68px}.sp-carousel-arrow.prev{left:2px}.sp-carousel-arrow.next{right:2px}}


/* v2.8 reference-locked carousel layout */
.sp-grid.sp-single-carousel{
  display:grid;grid-template-columns:88px minmax(0,520px) 88px;
  align-items:center;justify-content:center;column-gap:34px;
  min-height:330px;padding:18px 22px 8px;margin-top:8px;
}
.sp-single-carousel .sp-option{grid-column:2;grid-row:1;display:none;width:520px;max-width:100%;margin:0;background:transparent;border:0;border-radius:0;overflow:visible;text-align:left}
.sp-single-carousel .sp-option.is-active{display:block}
.sp-single-carousel .sp-option .visual{height:275px;border:2px solid #35383e;border-radius:18px;overflow:hidden;background:#202226;transition:border-color .18s}
.sp-single-carousel .sp-option.selected .visual{border-color:var(--sp-purple)}
.sp-single-carousel .sp-option strong{display:block;padding:18px 0 0;text-align:center;font-size:27px;line-height:1.15;font-weight:400;color:#f2f2f3;background:transparent}
.sp-single-carousel .sp-option .tick{right:12px;top:12px;width:38px;height:38px;font-size:22px}
.sp-carousel-arrow{position:static;transform:none;width:88px;height:118px;border:0;border-radius:0;background:transparent;color:#3b3e45;font-size:96px;font-family:Arial,sans-serif;font-weight:300;line-height:1;cursor:pointer;transition:color .18s;z-index:3;padding:0;display:grid;place-items:center}
.sp-carousel-arrow:hover{background:transparent;color:#5b5f68}
.sp-carousel-arrow.prev{grid-column:1;grid-row:1;justify-self:end}.sp-carousel-arrow.next{grid-column:3;grid-row:1;justify-self:start}
.sp-option video{width:100%;height:100%;display:block;object-fit:cover;background:#111}
@media(max-width:760px){
 .sp-grid.sp-single-carousel{grid-template-columns:42px minmax(0,1fr) 42px;column-gap:10px;min-height:240px;padding:12px 2px 4px}
 .sp-single-carousel .sp-option{width:min(310px,100%)}
 .sp-single-carousel .sp-option .visual{height:170px}
 .sp-single-carousel .sp-option strong{padding-top:12px;font-size:20px}
 .sp-carousel-arrow{width:42px;height:76px;font-size:62px}
}
/* v3.0: premium copy action + animated section icons */
.sp-output .sp-copy-prompt{position:absolute;right:16px;bottom:14px;height:42px;padding:0 16px;border:1px solid #4a4058;border-radius:13px;background:linear-gradient(180deg,#30283d,#242129);color:#f5f1ff;font-size:13px;font-weight:700;display:flex;align-items:center;gap:8px;cursor:pointer;transition:.18s ease;box-shadow:0 7px 20px rgba(0,0,0,.2)}
.sp-output .sp-copy-prompt:hover{border-color:var(--sp-purple);background:linear-gradient(180deg,#6032a0,#3d2860);transform:translateY(-1px)}
.sp-copy-prompt .copy-icon{font-size:19px;color:#b98aff;line-height:1}
.sp-gif-icon{width:32px;height:32px;min-width:32px;border-radius:9px;overflow:hidden;display:grid;place-items:center;background:#202126}
.sp-gif-icon img{width:100%;height:100%;object-fit:cover;display:block}
.sp-control.complete .sp-gif-icon{background:#fff}
.sp-control.complete .sp-gif-icon img{mix-blend-mode:normal}

/* v3.2 lower generation controls */
.sp-menu-wrap{position:relative;display:inline-flex}
.sp-menu-wrap>button{white-space:nowrap}
.sp-pop-menu{position:absolute;left:0;bottom:calc(100% + 10px);z-index:40;display:none;background:#24262b;border:1px solid #34363c;border-radius:18px;padding:10px;box-shadow:0 18px 50px rgba(0,0,0,.42);max-height:390px;overflow-y:auto;scrollbar-width:none}
.sp-pop-menu::-webkit-scrollbar{display:none}
.sp-pop-menu.open{display:block}
.sp-pop-menu button{width:100%;min-height:46px!important;display:flex!important;align-items:center;justify-content:space-between;text-align:left;background:transparent!important;border-radius:12px!important;padding:0 14px!important;color:#f4f4f5!important;font-size:15px!important}
.sp-pop-menu button:hover,.sp-pop-menu button.selected{background:#111316!important}
.sp-pop-menu button.selected:after{content:'✓';color:#9b4dff;font-size:18px;margin-left:18px}
.sp-model-menu{width:310px;padding:12px}
.sp-model-menu button{min-height:44px!important}
.sp-small-menu{min-width:150px}
@media(max-width:760px){.sp-pop-menu{position:fixed;left:12px!important;right:12px;bottom:84px;width:auto;max-height:52vh}.sp-model-menu{width:auto}}


/* v3.6 prompt streaming + copy completion */
.sp-output{overflow:hidden}
#promptOutput{height:100%;overflow-y:auto;overflow-x:hidden;white-space:pre-wrap;word-break:break-word;padding-right:8px;padding-bottom:58px;scroll-behavior:auto}
.sp-copy-prompt{display:flex!important;align-items:center;gap:8px;opacity:0;visibility:hidden;pointer-events:none;transform:translateY(5px);transition:opacity .2s ease,transform .2s ease,background .2s ease,color .2s ease;border-color .2s ease!important;font-size:13px!important;font-weight:700!important;padding:9px 12px!important;border:1px solid #3b3d43!important;border-radius:11px!important;background:#202226!important;color:#d9dae0!important}
.sp-copy-prompt.is-visible{opacity:1;visibility:visible;pointer-events:auto;transform:translateY(0)}
.sp-copy-prompt:hover{background:#292b31!important;color:#fff!important;border-color:#565963!important}
.sp-copy-prompt.is-copied{color:#57d987!important;border-color:rgba(87,217,135,.42)!important;background:rgba(87,217,135,.08)!important}
.sp-copy-prompt .copy-icon{font-size:16px;line-height:1}

/* Copy Prompt is unavailable until final prompt typing is complete. */
.sp-copy-prompt[hidden]{display:none!important}

/* Prompt scrollbar: hidden until generated prompt starts */
#promptOutput{scrollbar-width:none}
#promptOutput::-webkit-scrollbar{width:0}
#promptOutput.has-generated-text{scrollbar-width:thin;scrollbar-color:#555 #1b1c20}
#promptOutput.has-generated-text::-webkit-scrollbar{width:7px}
#promptOutput.has-generated-text::-webkit-scrollbar-thumb{background:#555;border-radius:8px}

/* FILM DNA — OPTION 1 / left tool rail + creative stage + ad rail */
.sp-option-one{padding:44px 28px 90px!important;min-height:900px!important}
.sp-workspace-shell{max-width:1500px;margin:0 auto;display:grid;grid-template-columns:390px minmax(460px,1fr) 190px;gap:18px;align-items:stretch}
.sp-tool-rail,.sp-stage,.sp-option-one .sp-ad{background:rgba(19,20,23,.72);border:1px solid rgba(255,255,255,.11);box-shadow:0 24px 70px rgba(0,0,0,.18);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px)}
.sp-tool-rail{border-radius:26px;padding:22px;display:flex;flex-direction:column;gap:15px;text-align:left;min-width:0}
.sp-tool-heading .sp-eyebrow{font-size:10px;letter-spacing:.16em;color:#a66cff;font-weight:800}.sp-tool-heading h1{font-size:35px!important;letter-spacing:-.04em!important;margin:5px 0 5px!important}.sp-tool-heading p{margin:0;color:#96979d;font-size:13px;line-height:1.45}
.sp-idea-card{background:rgba(255,255,255,.035);border:1px solid rgba(255,255,255,.09);border-radius:18px;padding:14px}.sp-idea-card label{display:block;color:#d7d7da;font-size:12px;font-weight:750;margin-bottom:8px}.sp-idea-card textarea,.sp-option-one .sp-builder textarea{width:100%;height:100px;resize:none;border:0;outline:0;background:transparent;color:#fff;font:14px inherit;padding:0;line-height:1.5}.sp-idea-card textarea::placeholder{color:#666970}
.sp-option-one .sp-upper-wrap{position:relative}.sp-option-one .sp-upper{display:flex!important;flex-direction:column;gap:8px;overflow:visible!important}.sp-option-one .sp-control{width:100%;height:58px;border:1px solid rgba(255,255,255,.06);background:rgba(255,255,255,.055);border-radius:15px;padding:8px 11px}.sp-option-one .sp-control:hover{background:rgba(139,67,255,.10);border-color:rgba(166,108,255,.34)}.sp-option-one .sp-control small{font-size:11px}.sp-option-one .sp-control b{font-size:13px}.sp-option-one .sp-upper-arrow{display:none!important}
.sp-option-one .sp-lower{display:block}.sp-option-one .sp-lower-tools{display:grid;grid-template-columns:1fr 1fr;gap:7px}.sp-option-one .sp-lower-tools button{width:100%;height:40px;border:1px solid rgba(255,255,255,.06);background:rgba(255,255,255,.055);font-size:12px}.sp-option-one .sp-menu-wrap{width:100%}.sp-option-one .sp-menu-wrap>button{width:100%}.sp-option-one .sp-pop-menu{min-width:170px}
.sp-action-zone{margin-top:auto}.sp-option-one .sp-generate{width:100%;height:58px;min-width:0;border-radius:15px;font-size:14px}.sp-option-one .sp-generate small{display:inline;margin-left:6px}.sp-compact-output{height:54px!important;margin:9px 0 0!important;border-radius:14px!important;padding:0 13px!important;display:flex;align-items:center;background:rgba(8,9,11,.55)!important;font-size:11px!important;color:#6f7177!important;overflow:hidden}.sp-compact-output #promptOutput{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding-right:95px}.sp-compact-output #promptOutput.has-generated-text{color:#9a9ca2}.sp-compact-output .sp-copy-prompt{right:7px!important;bottom:7px!important;height:38px!important;padding:0 11px!important;font-size:11px!important;border-radius:10px!important}
.sp-stage{border-radius:26px;min-height:680px;position:relative;overflow:hidden;display:flex;flex-direction:column;background:linear-gradient(145deg,rgba(27,24,33,.68),rgba(13,14,17,.78))}.sp-stage:before{content:"";position:absolute;width:600px;height:600px;border-radius:50%;left:50%;top:38%;transform:translate(-50%,-50%);background:radial-gradient(circle,rgba(127,60,207,.22),rgba(127,60,207,.06) 42%,transparent 70%);filter:blur(8px);pointer-events:none}.sp-stage:after{content:"";position:absolute;inset:0;background-image:radial-gradient(rgba(255,255,255,.075) .7px,transparent .7px);background-size:18px 18px;mask-image:linear-gradient(to bottom,rgba(0,0,0,.55),transparent 75%);pointer-events:none}.sp-stage-top{height:62px;border-bottom:1px solid rgba(255,255,255,.08);padding:0 22px;display:flex;align-items:center;justify-content:space-between;color:#8f9197;font-size:12px;position:relative;z-index:2}.sp-stage-status{background:rgba(139,67,255,.13);color:#b98aff;border:1px solid rgba(166,108,255,.2);padding:7px 10px;border-radius:999px}.sp-stage-content{margin:auto;max-width:620px;text-align:center;padding:55px;position:relative;z-index:2}.sp-stage-kicker{font-size:10px;letter-spacing:.18em;color:#9f66ff;font-weight:800}.sp-stage h2{font-size:56px;line-height:.96;letter-spacing:-.055em;margin:14px 0 20px}.sp-stage p{font-size:15px;line-height:1.65;color:#92949a;max-width:570px;margin:0 auto}.sp-stage-chips{display:flex;justify-content:center;flex-wrap:wrap;gap:8px;margin-top:28px}.sp-stage-chips span{padding:8px 11px;border-radius:999px;background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.07);color:#aaaeb5;font-size:11px}
.sp-option-one .sp-ad{position:static!important;width:auto!important;height:auto!important;min-height:680px!important;border-style:solid!important;border-radius:26px!important;padding:12px!important;display:flex!important;justify-content:flex-start!important;gap:10px!important;color:#707279!important}.sp-option-one .sp-ad span{font-size:9px;letter-spacing:.14em;margin-top:4px}.sp-option-one .sp-ad img{width:100%;height:auto;max-height:560px;object-fit:cover;border-radius:17px;background:#111}.sp-option-one .sp-ad small{margin-top:auto;margin-bottom:5px;color:#55585e}
@media(max-width:1180px){.sp-workspace-shell{grid-template-columns:370px 1fr}.sp-option-one .sp-ad{display:none!important}.sp-stage h2{font-size:46px}}
@media(max-width:820px){.sp-option-one{padding:28px 12px 60px!important}.sp-workspace-shell{display:flex;flex-direction:column}.sp-tool-rail{order:1}.sp-stage{order:2;min-height:420px}.sp-stage-content{padding:35px 22px}.sp-stage h2{font-size:40px}.sp-option-one .sp-lower-tools{grid-template-columns:1fr 1fr}}


/* v4.1 requested Film DNA rail refinements */
.sp-option-one .sp-upper{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:8px!important;
}
.sp-option-one .sp-control{min-width:0!important}
.sp-option-one .sp-control.has-selection{
  background:rgba(111,55,157,.20)!important;
  border-color:rgba(157,82,222,.68)!important;
  box-shadow:inset 0 0 0 1px rgba(139,67,255,.05)!important;
}
.sp-option-one .sp-control.has-selection b{
  color:#fff!important;
  font-weight:800!important;
}
.sp-option-one .sp-control.has-selection small{color:#aaa3b1!important}
.sp-option-one .sp-menu-wrap{position:relative!important;overflow:visible!important;z-index:30}
.sp-option-one .sp-lower,.sp-option-one .sp-lower-tools,.sp-tool-rail{overflow:visible!important}
.sp-option-one .sp-pop-menu{z-index:9999!important;display:none}
.sp-option-one .sp-pop-menu.open{display:block!important}
.sp-hidden-prompt-output{display:none!important}
.sp-action-zone{margin-top:auto!important}
@media(max-width:820px){
  .sp-option-one .sp-upper{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(max-width:430px){
  .sp-option-one .sp-upper{grid-template-columns:1fr!important}
}
\n\n/* v4.3 viewport + scene counter refinements */
.sp-option-one .sp-tool-rail{gap:10px!important;padding:17px 22px!important}
.sp-option-one .sp-tool-heading h1{margin:0 0 3px!important}
.sp-option-one .sp-tool-heading p{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:12.5px}
.sp-option-one .sp-idea-card{padding:12px 14px 9px!important}
.sp-option-one .sp-idea-card textarea{height:92px!important}
.sp-char-count{font-size:10px;color:#74767d;text-align:right;margin-top:5px;letter-spacing:.01em}
.sp-char-count.is-near{color:#a66cff}
.sp-option-one .sp-control{height:50px!important;padding:6px 10px!important}
.sp-option-one .sp-upper{gap:7px!important}
.sp-option-one .sp-lower-tools{gap:6px!important}
.sp-option-one .sp-lower-tools button{height:36px!important}
.sp-action-zone{margin-top:0!important}
.sp-option-one .sp-generate{height:52px!important}
@media(min-width:821px){.sp-option-one .sp-tool-rail{min-height:680px}}
@media(max-width:820px){
 .sp-option-one .sp-tool-heading p{white-space:normal}
 .sp-option-one .sp-upper{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 .sp-option-one .sp-control{height:54px!important}
 .sp-option-one .sp-generate{height:56px!important}
}

/* v4.4 lower generation controls redesign */
.sp-option-one .sp-control[data-panel="lighting"]{grid-column:1/-1!important}
.sp-option-one .sp-lower-tools{grid-template-columns:repeat(3,minmax(0,1fr))!important}
.sp-option-one .sp-model-wrap{grid-column:1/-1!important}
.sp-option-one .sp-model-wrap>button{height:54px!important;text-align:left!important;padding:0 14px!important;display:flex!important;align-items:center!important;gap:9px!important}
.sp-option-one .sp-model-wrap>button::before{content:"Model";color:#96979d;font-size:11px;margin-right:3px}
.sp-option-one .sp-model-wrap>button::after{content:"›";font-size:25px;color:#a8a9ae;margin-left:auto;font-weight:300}
.sp-option-one #modelBtn{font-size:14px!important}.sp-option-one #modelValue{font-size:15px;font-weight:750;color:#f2f2f4}
.sp-option-one #modelBtn{font-size:0!important}.sp-option-one #modelBtn #modelValue{font-size:15px!important}
.sp-option-one #resolutionBtn.is-chosen,.sp-option-one #ratioBtn.is-chosen,.sp-option-one #durationBtn.is-chosen{background:rgba(111,55,157,.20)!important;border-color:rgba(157,82,222,.68)!important;color:#fff!important}
.sp-option-one .sp-model-menu{position:fixed!important;top:78px!important;right:24px!important;left:auto!important;bottom:auto!important;width:min(520px,calc(100vw - 48px))!important;max-height:calc(100vh - 110px)!important;padding:14px!important;border-radius:20px!important;background:#202327!important;border:1px solid rgba(255,255,255,.11)!important;box-shadow:0 28px 90px rgba(0,0,0,.55)!important;overflow:auto!important}
.sp-model-search{position:sticky;top:0;z-index:2;width:100%;height:48px;border:1px solid rgba(255,255,255,.08);border-radius:12px;background:#272a2e;color:#fff;padding:0 14px;margin-bottom:10px;font-size:14px;outline:none}
.sp-model-item{display:grid!important;grid-template-columns:44px 1fr auto!important;align-items:center!important;gap:12px!important;width:100%!important;min-height:67px!important;padding:9px 10px!important;text-align:left!important;border:0!important;border-radius:12px!important;background:transparent!important}
.sp-model-item:hover{background:rgba(255,255,255,.055)!important}.sp-model-mark{width:44px;height:44px;border-radius:11px;background:#303338;display:grid;place-items:center;color:#9da0a6;font-weight:800}.sp-model-copy strong{display:block;font-size:15px;color:#f2f2f4}.sp-model-meta{display:flex;gap:5px;margin-top:5px}.sp-model-meta span{font-size:10px;color:#8e9197;background:#2b2e32;border-radius:5px;padding:3px 5px}.sp-model-badge{font-size:10px;font-weight:900;padding:5px 7px;border-radius:6px;color:#fff;background:#8b43ff}.sp-model-badge.top{background:linear-gradient(135deg,#4d76ff,#43d4df)}
.sp-duration-pop{padding:14px!important;width:250px!important}.sp-duration-title{font-size:14px;font-weight:750;color:#fff;margin-bottom:12px}.sp-duration-range{width:100%;accent-color:#fff}.sp-duration-read{font-size:13px;color:#d9d9dc;margin-top:7px;text-align:center}
@media(max-width:820px){
 .sp-option-one .sp-upper{width:100%!important;grid-template-columns:repeat(2,minmax(0,1fr))!important}
 .sp-option-one .sp-control{width:100%!important;margin:0!important}
 .sp-option-one .sp-control[data-panel="lighting"]{grid-column:1/-1!important}
 .sp-option-one .sp-lower-tools{grid-template-columns:repeat(3,minmax(0,1fr))!important;width:100%!important}
 .sp-option-one .sp-model-wrap{grid-column:1/-1!important}
 .sp-option-one .sp-model-menu{top:70px!important;right:12px!important;width:calc(100vw - 24px)!important}
}

/* v4.5 — rail proportions, clean spacing and true overlays */
@media(min-width:1181px){
 .sp-workspace-shell{grid-template-columns:510px minmax(420px,1fr) 190px!important;gap:18px!important}
}
.sp-option-one .sp-tool-rail{gap:12px!important}
.sp-option-one .sp-upper{grid-template-columns:repeat(6,minmax(0,1fr))!important;gap:8px!important}
.sp-option-one .sp-control[data-panel="film"],.sp-option-one .sp-control[data-panel="camera"],.sp-option-one .sp-control[data-panel="movement"]{grid-column:span 2!important}
.sp-option-one .sp-control[data-panel="color"],.sp-option-one .sp-control[data-panel="lighting"]{grid-column:span 3!important}
.sp-option-one .sp-control[data-panel="lighting"]{width:100%!important}
.sp-option-one .sp-lower{margin:0!important}
.sp-option-one .sp-lower-tools{gap:8px!important}
.sp-option-one .sp-model-wrap{margin:0!important}
.sp-option-one .sp-action-zone{margin:0!important}

/* all floating lower menus render over the whole app */
.sp-option-one .sp-pop-menu{z-index:20000!important}
.sp-option-one .sp-model-menu{z-index:20000!important;top:76px!important;right:24px!important;left:auto!important;bottom:auto!important;width:min(560px,calc(100vw - 48px))!important;max-height:calc(100dvh - 100px)!important}
.sp-option-one .sp-small-menu{z-index:20000!important}
.sp-option-one .sp-duration-pop{position:fixed!important;top:50%!important;left:50%!important;right:auto!important;bottom:auto!important;transform:translate(-50%,-50%)!important;width:min(420px,calc(100vw - 32px))!important;max-height:none!important;padding:22px!important;background:#202327!important;border:1px solid rgba(255,255,255,.12)!important;border-radius:20px!important;box-shadow:0 28px 90px rgba(0,0,0,.65)!important}
.sp-duration-title{font-size:18px!important;margin-bottom:18px!important}.sp-duration-range{height:28px}.sp-duration-read{text-align:right!important;font-size:16px!important;margin-top:10px!important}

@media(max-width:1180px) and (min-width:821px){.sp-workspace-shell{grid-template-columns:460px minmax(380px,1fr)!important}}
@media(max-width:820px){
 .sp-option-one{padding:18px 8px 48px!important}
 .sp-workspace-shell{width:100%!important;gap:14px!important}
 .sp-tool-rail{width:100%!important;padding:18px!important;gap:12px!important;border-radius:22px!important}
 .sp-option-one .sp-idea-card{width:100%!important}
 .sp-option-one .sp-upper{width:100%!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
 .sp-option-one .sp-control[data-panel="film"],.sp-option-one .sp-control[data-panel="camera"],.sp-option-one .sp-control[data-panel="movement"],.sp-option-one .sp-control[data-panel="color"]{grid-column:auto!important}
 .sp-option-one .sp-control[data-panel="lighting"]{grid-column:1/-1!important}
 .sp-option-one .sp-lower-tools{width:100%!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px!important}
 .sp-option-one .sp-model-wrap{grid-column:1/-1!important;width:100%!important}
 .sp-option-one #soundBtn,.sp-option-one #resetBuilder{grid-column:span 1!important}
 .sp-option-one #soundBtn{grid-column:1/2!important}.sp-option-one #resetBuilder{grid-column:2/3!important}
 .sp-option-one .sp-model-menu{position:fixed!important;inset:58px 10px 12px 10px!important;width:auto!important;max-height:none!important;border-radius:18px!important;z-index:20000!important}
 .sp-option-one .sp-duration-pop{z-index:20000!important}
 .sp-option-one .sp-generate{width:100%!important}
}
@media(max-width:430px){
 .sp-option-one .sp-upper{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 .sp-option-one .sp-control{min-width:0!important;height:52px!important;padding:6px 8px!important}
 .sp-option-one .sp-control small{font-size:10px!important}.sp-option-one .sp-control b{font-size:12px!important}
 .sp-option-one .sp-lower-tools button{font-size:11px!important;padding:0 5px!important}
}
body.sp-float-open::after{content:"";position:fixed;inset:0;background:rgba(0,0,0,.58);z-index:19990;pointer-events:none}
.sp-option-one .sp-model-menu,.sp-option-one .sp-duration-pop{isolation:isolate}

/* v4.6 — mobile alignment + stable floating model overlay */
.sp-option-one .sp-upper-wrap{padding:0!important;width:100%!important;min-width:0!important}

/* Opening a lower popup must never tint or recolor the workspace behind it. */
body.sp-float-open::after{display:none!important;content:none!important}

/* Model menu is portaled to body by JS so it escapes the left rail stacking context. */
body > .sp-model-menu{
  position:fixed!important;
  z-index:2147483000!important;
  top:76px!important;
  right:28px!important;
  left:auto!important;
  bottom:auto!important;
  width:min(560px,calc(100vw - 56px))!important;
  max-height:calc(100dvh - 104px)!important;
  padding:14px!important;
  border-radius:20px!important;
  background:#202327!important;
  border:1px solid rgba(255,255,255,.12)!important;
  box-shadow:0 28px 90px rgba(0,0,0,.68)!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  isolation:isolate!important;
  text-align:left!important;
}
body > .sp-model-menu .sp-model-search{width:100%!important;text-align:left!important}
body > .sp-model-menu .sp-model-item{width:100%!important;text-align:left!important;justify-content:initial!important}
body > .sp-model-menu .sp-model-copy,body > .sp-model-menu .sp-model-copy strong,body > .sp-model-menu .sp-model-meta{text-align:left!important;justify-content:flex-start!important}

@media(max-width:820px){
  .sp-option-one .sp-upper-wrap{padding:0!important;margin:0!important;width:100%!important}
  .sp-option-one .sp-upper{width:100%!important;margin:0!important}
  .sp-option-one .sp-control{min-width:0!important;width:100%!important}
  body > .sp-model-menu{top:58px!important;right:10px!important;left:10px!important;bottom:12px!important;width:auto!important;max-height:none!important;border-radius:18px!important}
}


/* v4.7 — all lower popups are true top-layer portals; no backdrop/color shift */
body.sp-float-open::after{display:none!important;content:none!important}
body > .sp-pop-menu.sp-portal-menu{
 position:fixed!important;z-index:2147483600!important;
 left:var(--portal-left)!important;top:var(--portal-top)!important;
 right:auto!important;bottom:auto!important;width:var(--portal-width)!important;
 max-height:min(560px,calc(100dvh - 24px))!important;
 background:#202327!important;border:1px solid rgba(255,255,255,.12)!important;
 box-shadow:0 24px 80px rgba(0,0,0,.58)!important;isolation:isolate!important;
}
body > .sp-pop-menu.sp-portal-menu[data-kind="quality"],
body > .sp-pop-menu.sp-portal-menu[data-kind="ratio"]{padding:7px!important;border-radius:16px!important;overflow:hidden!important}
body > .sp-pop-menu.sp-portal-menu[data-kind="quality"] button,
body > .sp-pop-menu.sp-portal-menu[data-kind="ratio"] button{min-height:44px!important;padding:0 12px!important}
body > .sp-model-menu.sp-portal-menu{padding:14px!important;border-radius:20px!important;overflow-y:auto!important;overflow-x:hidden!important;text-align:left!important}
body > .sp-duration-pop.sp-portal-menu{transform:none!important;padding:18px!important;border-radius:18px!important;max-height:none!important}
@media(max-width:820px){
 body > .sp-pop-menu.sp-portal-menu{z-index:2147483600!important;right:auto!important;bottom:auto!important;max-height:58dvh!important}
 body > .sp-pop-menu.sp-portal-menu[data-kind="quality"],body > .sp-pop-menu.sp-portal-menu[data-kind="ratio"]{width:var(--portal-width)!important;min-width:0!important}
 body > .sp-model-menu.sp-portal-menu{width:min(520px,calc(100vw - 24px))!important;max-height:72dvh!important;inset:auto!important;left:var(--portal-left)!important;top:var(--portal-top)!important}
 body > .sp-duration-pop.sp-portal-menu{width:min(360px,calc(100vw - 24px))!important;inset:auto!important;left:var(--portal-left)!important;top:var(--portal-top)!important}
}

/* v4.8 — reference-style compact controls and menus */
.sp-option-one .sp-control{
  border:1px solid rgba(255,255,255,.055)!important;
  background:#1d2023!important;
  border-radius:13px!important;
  box-shadow:none!important;
}
.sp-option-one .sp-control:hover{background:#22262a!important;border-color:rgba(255,255,255,.09)!important}
.sp-option-one .sp-control.complete{background:#24202b!important;border-color:rgba(155,78,255,.52)!important}
.sp-ref-icon{
  width:42px!important;height:42px!important;min-width:42px!important;
  display:grid!important;place-items:center!important;border-radius:11px!important;
  background:linear-gradient(145deg,#34383d,#24272b)!important;
  color:#b5ff19!important;font-size:20px!important;font-weight:800!important;
  border:1px solid rgba(255,255,255,.045)!important;
}
.sp-option-one .sp-control small{font-size:11px!important;color:#989aa2!important}
.sp-option-one .sp-control b{font-size:14px!important;margin-top:2px!important}
.sp-option-one .sp-lower-tools>button,.sp-option-one .sp-menu-wrap>button{
  background:#1d2023!important;border:1px solid rgba(255,255,255,.055)!important;
  border-radius:13px!important;box-shadow:none!important;
}
.sp-option-one .sp-lower-tools>button:hover,.sp-option-one .sp-menu-wrap>button:hover{background:#24272b!important}

/* plain list menus: one clean surface, no boxes around every item */
body > .sp-pop-menu.sp-portal-menu[data-kind="quality"],
body > .sp-pop-menu.sp-portal-menu[data-kind="ratio"]{
  padding:7px!important;background:#202327!important;border-radius:16px!important;
  border:1px solid rgba(255,255,255,.10)!important;
}
body > .sp-pop-menu.sp-portal-menu[data-kind="quality"] button,
body > .sp-pop-menu.sp-portal-menu[data-kind="ratio"] button{
  border:0!important;background:transparent!important;border-radius:10px!important;
  min-height:42px!important;padding:0 12px!important;text-align:left!important;
  font-size:14px!important;font-weight:650!important;
}
body > .sp-pop-menu.sp-portal-menu[data-kind="quality"] button:hover,
body > .sp-pop-menu.sp-portal-menu[data-kind="ratio"] button:hover{background:#2a2d31!important}
body > .sp-pop-menu.sp-portal-menu[data-kind="quality"] button.selected,
body > .sp-pop-menu.sp-portal-menu[data-kind="ratio"] button.selected{background:#2b2e32!important;color:#fff!important}
body > .sp-pop-menu.sp-portal-menu[data-kind="quality"] button.selected::after,
body > .sp-pop-menu.sp-portal-menu[data-kind="ratio"] button.selected::after{content:'✓';float:right;color:#a454ff;font-size:18px}

/* compact duration preset menu like reference */
body > .sp-duration-pop.sp-portal-menu{padding:6px!important;width:238px!important;background:#202327!important;border-radius:17px!important}
.sp-duration-choice{width:100%!important;min-height:44px!important;padding:0 12px!important;border:0!important;border-radius:11px!important;background:transparent!important;color:#f2f2f4!important;display:flex!important;align-items:center!important;gap:10px!important;text-align:left!important}
.sp-duration-choice:hover,.sp-duration-choice.selected{background:#2b2e32!important}
.sp-duration-choice strong{font-size:14px!important;min-width:52px!important}.sp-duration-choice span{font-size:13px!important;color:#a5a7ad!important;font-weight:500!important}

/* model picker — clean grouped rows with comfortable spacing */
body > .sp-model-menu.sp-portal-menu{
  width:min(430px,calc(100vw - 24px))!important;padding:10px!important;
  background:#202327!important;border-radius:18px!important;
}
body > .sp-model-menu .sp-model-search{height:46px!important;border-radius:12px!important;padding:0 14px!important;margin:0 0 8px!important;background:#282b2f!important;border:1px solid rgba(255,255,255,.08)!important;font-size:14px!important}
body > .sp-model-menu .sp-model-item{min-height:66px!important;padding:8px 10px!important;border-radius:12px!important;gap:12px!important;background:transparent!important;border:0!important;display:flex!important;align-items:center!important}
body > .sp-model-menu .sp-model-item:hover{background:#292c30!important}
body > .sp-model-menu .sp-model-mark{width:48px!important;height:48px!important;min-width:48px!important;border-radius:12px!important;background:#30343a!important;color:#aeb1b8!important;display:grid!important;place-items:center!important;font-size:10px!important;letter-spacing:1px!important}
body > .sp-model-menu .sp-model-copy{min-width:0!important;display:flex!important;flex-direction:column!important;gap:5px!important;align-items:flex-start!important}
body > .sp-model-menu .sp-model-copy strong{font-size:15px!important;line-height:1.15!important;font-weight:650!important}
body > .sp-model-menu .sp-model-meta{display:flex!important;gap:5px!important;flex-wrap:wrap!important}
body > .sp-model-menu .sp-model-meta span{font-size:10px!important;line-height:1!important;padding:5px 7px!important;border-radius:6px!important;background:#303338!important;color:#a6a8ae!important}
body > .sp-model-menu .sp-model-badge{position:static!important;margin-left:auto!important;align-self:flex-start!important;font-size:10px!important;padding:5px 8px!important;border-radius:7px!important}

@media(max-width:820px){
  body > .sp-model-menu.sp-portal-menu{width:min(390px,calc(100vw - 20px))!important;max-height:68dvh!important}
  body > .sp-pop-menu.sp-portal-menu[data-kind="quality"],body > .sp-pop-menu.sp-portal-menu[data-kind="ratio"]{width:min(230px,calc(100vw - 20px))!important}
  body > .sp-duration-pop.sp-portal-menu{width:min(238px,calc(100vw - 20px))!important}
  .sp-option-one .sp-control{height:58px!important}
  .sp-ref-icon{width:38px!important;height:38px!important;min-width:38px!important}
}


/* v4.9 — restore original animated assets + sharper reference geometry */
.sp-option-one .sp-tool-rail,.sp-option-one .sp-stage,.sp-option-one .sp-ad{border-radius:16px!important}
.sp-option-one .sp-idea-card{border-radius:12px!important}
.sp-option-one .sp-control,.sp-option-one .sp-lower-tools>button,.sp-option-one .sp-menu-wrap>button{border-radius:10px!important}
.sp-option-one .sp-generate{border-radius:11px!important}
.sp-option-one .sp-control .sp-gif-icon{width:42px!important;height:42px!important;min-width:42px!important;border-radius:9px!important;background:#202126!important;overflow:hidden!important}
.sp-option-one .sp-control .sp-gif-icon img{width:100%!important;height:100%!important;display:block!important;object-fit:cover!important}
.sp-option-one .sp-control.complete .sp-gif-icon{background:#fff!important}
.sp-option-one .sp-control b{font-size:11px!important;line-height:1.15!important;font-weight:600!important;color:#989aa2!important;white-space:normal!important;overflow-wrap:anywhere!important}
.sp-option-one .sp-control small{font-size:11px!important;line-height:1.15!important}
.sp-option-one .sp-control>span:last-child{min-width:0!important;overflow:hidden!important}
.sp-option-one .sp-control.has-selection b,.sp-option-one .sp-control.complete b{color:#a6a8af!important}
.sp-option-one .sp-menu-wrap>button.is-chosen{background:#281b31!important;border-color:#8f43c7!important;color:#fff!important}
.sp-option-one #modelBtn.is-chosen{background:#281b31!important;border-color:#8f43c7!important}
body > .sp-model-menu .sp-model-item.selected{background:#2b2033!important;box-shadow:inset 0 0 0 1px rgba(161,74,222,.72)!important}
body > .sp-model-menu .sp-model-item.selected::after{content:'✓';color:#a855f7;font-size:18px;font-weight:800;margin-left:8px}
body > .sp-pop-menu.sp-portal-menu,body > .sp-model-menu.sp-portal-menu,body > .sp-duration-pop.sp-portal-menu{border-radius:12px!important}
body > .sp-pop-menu.sp-portal-menu button,body > .sp-model-menu .sp-model-item,.sp-duration-choice{border-radius:8px!important}
@media(max-width:820px){.sp-option-one .sp-control .sp-gif-icon{width:38px!important;height:38px!important;min-width:38px!important}.sp-option-one .sp-control b{font-size:10.5px!important}}


/* v5.0 final popup behavior + mobile carousel alignment */
/* Keep modal in the OrigaStock dark family with only a subtle purple tint. */
.sp-modal{
  background:linear-gradient(145deg,#1d1c22 0%,#1b1b20 48%,#191a1e 100%)!important;
  border-color:rgba(150,91,205,.20)!important;
}
.sp-modal>header,.sp-modal aside{
  background:rgba(37,31,43,.18)!important;
}
.sp-options{background:rgba(37,28,45,.10)!important;}

/* Duration opens as a neutral menu: selection is committed only after a click. */
body > .sp-duration-pop.sp-portal-menu .sp-duration-choice.selected{
  background:transparent!important;
}

@media(max-width:820px){
  /* Symmetrical mobile carousel: equal arrow gutters and a centered, larger preview. */
  .sp-grid.sp-single-carousel{
    display:grid!important;
    grid-template-columns:46px minmax(0,1fr) 46px!important;
    align-items:center!important;
    column-gap:10px!important;
    padding:12px 8px 8px!important;
    width:100%!important;
    min-height:300px!important;
    box-sizing:border-box!important;
  }
  .sp-single-carousel .sp-option{
    grid-column:2!important;
    grid-row:1!important;
    justify-self:center!important;
    width:min(390px,100%)!important;
    max-width:100%!important;
    margin:0!important;
  }
  .sp-single-carousel .sp-option .visual{
    width:100%!important;
    height:220px!important;
    margin:0 auto!important;
    background-position:center!important;
  }
  .sp-carousel-arrow{
    position:static!important;
    transform:none!important;
    width:46px!important;
    height:84px!important;
    padding:0!important;
    margin:0!important;
    align-self:center!important;
    justify-self:center!important;
    font-size:64px!important;
  }
  .sp-carousel-arrow.prev{grid-column:1!important;grid-row:1!important;}
  .sp-carousel-arrow.next{grid-column:3!important;grid-row:1!important;}
  .sp-single-carousel .sp-option strong{
    text-align:center!important;
    padding-top:12px!important;
  }
}

@media(max-width:520px){
  .sp-grid.sp-single-carousel{
    grid-template-columns:40px minmax(0,1fr) 40px!important;
    column-gap:6px!important;
    padding-left:4px!important;
    padding-right:4px!important;
  }
  .sp-single-carousel .sp-option{width:100%!important;}
  .sp-single-carousel .sp-option .visual{height:205px!important;}
  .sp-carousel-arrow{width:40px!important;font-size:58px!important;}
}

/* v5.2 — equal rail spacing + glassy purple modal + robust mobile Film Studio submenu */
.sp-option-one .sp-tool-rail{gap:10px!important;}
.sp-option-one .sp-upper{row-gap:10px!important;column-gap:10px!important;}
.sp-option-one .sp-lower-tools{row-gap:10px!important;column-gap:10px!important;}

/* Glass popup: transparent purple tint so the page behind softly shows through. */
.sp-modal{
  background:linear-gradient(145deg,rgba(37,29,46,.78) 0%,rgba(28,27,34,.82) 48%,rgba(23,24,29,.80) 100%)!important;
  border-color:rgba(173,112,230,.24)!important;
  box-shadow:0 30px 100px rgba(0,0,0,.48),inset 0 1px 0 rgba(255,255,255,.055)!important;
  backdrop-filter:blur(24px) saturate(118%)!important;
  -webkit-backdrop-filter:blur(24px) saturate(118%)!important;
}
.sp-modal>header,.sp-modal aside{background:rgba(57,42,69,.18)!important;}
.sp-options{background:rgba(54,38,66,.10)!important;}
.sp-overlay{background:rgba(5,4,8,.48)!important;backdrop-filter:blur(7px)!important;-webkit-backdrop-filter:blur(7px)!important;}

@media(max-width:900px){
  .hf-links > .nav-dropdown-wrap.mobile-sub-open > .mega-menu,
  .hf-links > .nav-dropdown-wrap.menu-open > .mega-menu{
    display:block!important;
    opacity:1!important;
    visibility:visible!important;
    transform:none!important;
    pointer-events:auto!important;
  }
}

/* v5.3 — compact single-row generation controls */
@media(min-width:821px){
  .sp-option-one .sp-lower-tools{
    grid-template-columns:repeat(5,minmax(0,1fr))!important;
    gap:7px!important;
    align-items:center!important;
  }
  .sp-option-one .sp-model-wrap{
    grid-column:1/-1!important;
  }
  .sp-option-one .sp-lower-tools > .sp-menu-wrap:not(.sp-model-wrap),
  .sp-option-one #soundBtn,
  .sp-option-one #resetBuilder{
    grid-column:auto!important;
    min-width:0!important;
    width:100%!important;
  }
  .sp-option-one .sp-lower-tools > .sp-menu-wrap:not(.sp-model-wrap) > button,
  .sp-option-one #soundBtn,
  .sp-option-one #resetBuilder{
    width:100%!important;
    height:36px!important;
    min-width:0!important;
    padding:0 5px!important;
    font-size:10.5px!important;
    white-space:nowrap!important;
  }
  .sp-option-one .sp-action-zone{margin-top:0!important;}
  .sp-option-one .sp-generate{height:52px!important;}
}

/* v5.4 — compact aligned desktop workspace height */
@media(min-width:821px){
  .sp-workspace-shell{align-items:stretch!important;}
  .sp-option-one .sp-tool-rail,
  .sp-option-one .sp-stage,
  .sp-option-one .sp-ad{
    min-height:0!important;
    height:auto!important;
    align-self:stretch!important;
  }
  .sp-option-one .sp-tool-rail{
    padding-bottom:14px!important;
  }
  .sp-option-one .sp-generate{
    margin-bottom:0!important;
  }
}

/* v5.6 — centered Film DNA with equal side ads; layout only */
@media(min-width:1181px){
  .sp-option-one .sp-workspace-shell{
    grid-template-columns:minmax(0,1fr) minmax(0,1.62fr) minmax(0,1fr)!important;
    gap:18px!important;
    align-items:stretch!important;
  }
  .sp-option-one .sp-tool-rail{grid-column:2!important;grid-row:1!important;min-width:0!important;width:auto!important;}
  .sp-option-one .sp-ad-left{grid-column:1!important;grid-row:1!important;}
  .sp-option-one .sp-ad-right{grid-column:3!important;grid-row:1!important;}
  .sp-option-one .sp-ad{
    position:static!important;
    display:flex!important;
    width:auto!important;
    min-width:0!important;
    height:auto!important;
    min-height:0!important;
    align-self:stretch!important;
    border-style:solid!important;
    padding:12px!important;
  }
}

/* v5.7 — responsive advertising layout only; prompt logic untouched */
/* Medium / slightly-shrunk desktop: Film DNA + one right ad */
@media (min-width:821px) and (max-width:1180px){
  .sp-option-one .sp-workspace-shell{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) minmax(250px,32%)!important;
    gap:18px!important;
    align-items:stretch!important;
  }
  .sp-option-one .sp-tool-rail{
    grid-column:1!important;
    grid-row:1!important;
    min-width:0!important;
    width:auto!important;
  }
  .sp-option-one .sp-ad-left{display:none!important;}
  .sp-option-one .sp-ad-right{
    display:flex!important;
    grid-column:2!important;
    grid-row:1!important;
    position:static!important;
    width:auto!important;
    min-width:0!important;
    min-height:0!important;
    height:auto!important;
    align-self:stretch!important;
    border-style:solid!important;
    padding:12px!important;
  }
}

/* Mobile: builder first, then both ads side-by-side directly beneath it */
@media (max-width:820px){
  .sp-option-one .sp-workspace-shell{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:12px!important;
    align-items:stretch!important;
  }
  .sp-option-one .sp-tool-rail{
    grid-column:1 / -1!important;
    grid-row:1!important;
    width:100%!important;
    min-width:0!important;
  }
  .sp-option-one .sp-ad-left,
  .sp-option-one .sp-ad-right{
    display:flex!important;
    position:static!important;
    width:100%!important;
    min-width:0!important;
    min-height:220px!important;
    height:auto!important;
    aspect-ratio:1 / 2!important;
    align-self:stretch!important;
    border-style:solid!important;
    padding:9px!important;
    border-radius:14px!important;
  }
  .sp-option-one .sp-ad-left{grid-column:1!important;grid-row:2!important;}
  .sp-option-one .sp-ad-right{grid-column:2!important;grid-row:2!important;}
  .sp-option-one .sp-ad img{max-height:none!important;}
}

/* v5.8 — OrigaStock mini feature slider in the left desktop panel */
.sp-feature-slider{width:100%;height:27%;min-height:170px;position:relative;overflow:hidden;border-radius:12px;background:#101114;flex:0 0 auto}
.sp-feature-track{position:relative;width:100%;height:100%}
.sp-feature-slide{position:absolute;inset:0;opacity:0;visibility:hidden;transition:opacity .45s ease;overflow:hidden;background:#101114}
.sp-feature-slide.active{opacity:1;visibility:visible;z-index:1}
.sp-feature-media{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}
.sp-feature-slide::after{content:'';position:absolute;inset:0;background:linear-gradient(180deg,rgba(5,5,7,.05) 20%,rgba(5,5,7,.82) 100%);z-index:1;pointer-events:none}
.sp-feature-content{position:absolute;left:12px;right:12px;bottom:13px;z-index:2;display:flex;flex-direction:column;align-items:flex-start;gap:7px}
.sp-feature-content strong{font-size:16px;line-height:1.1;color:#fff;letter-spacing:-.02em}
.sp-feature-cta{display:inline-flex;align-items:center;justify-content:center;min-height:29px;padding:0 12px;border-radius:999px;background:#fff;color:#111!important;font-size:11px;font-weight:800;text-decoration:none}
.sp-feature-nav{position:absolute;left:12px;right:12px;top:10px;z-index:3;display:flex;gap:5px}
.sp-feature-dot{height:3px;flex:1;border:0;border-radius:99px;padding:0;background:rgba(255,255,255,.28);overflow:hidden;cursor:pointer}
.sp-feature-dot::after{content:'';display:block;width:0;height:100%;background:#fff;border-radius:inherit}
.sp-feature-dot.active::after{animation:spFeatureProgress 8s linear forwards}
@keyframes spFeatureProgress{from{width:0}to{width:100%}}
.sp-feature-arrow{position:absolute;top:50%;z-index:4;width:28px;height:42px;transform:translateY(-50%);border:0;border-radius:9px;background:rgba(12,12,14,.52);color:#fff;font-size:22px;line-height:1;opacity:0;transition:opacity .2s;cursor:pointer;backdrop-filter:blur(8px)}
.sp-feature-slider:hover .sp-feature-arrow{opacity:1}.sp-feature-arrow.prev{left:6px}.sp-feature-arrow.next{right:6px}
.sp-ad-left.has-feature-slider{justify-content:flex-start!important}
.sp-ad-left.has-feature-slider>.sp-ad-paid{width:100%;flex:1;min-height:0;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:10px;overflow:hidden}
.sp-ad-left.has-feature-slider>.sp-ad-paid>span{font-size:9px;letter-spacing:.14em;margin-top:4px}
.sp-ad-left.has-feature-slider>.sp-ad-paid>img{width:100%;height:100%;min-height:0;object-fit:cover;border-radius:12px;background:#111}
.sp-ad-left.has-feature-slider>.sp-ad-paid>small{margin-top:auto;margin-bottom:5px;color:#55585e}
@media (min-width:821px) and (max-width:1180px){.sp-ad-left.has-feature-slider{display:none!important}}
@media (max-width:820px){
 .sp-ad-left.has-feature-slider{aspect-ratio:auto!important;min-height:0!important;height:auto!important;display:flex!important;gap:9px!important}
 .sp-ad-left.has-feature-slider .sp-feature-slider{height:150px;min-height:150px}
 .sp-ad-left.has-feature-slider>.sp-ad-paid{min-height:220px}
 .sp-feature-content strong{font-size:13px}.sp-feature-cta{min-height:26px;font-size:10px}
}


/* v5.9 — split left feature/ad cards + inline feature CTA */
@media(min-width:1181px){
  .sp-option-one .sp-left-stack{
    grid-column:1!important;grid-row:1!important;display:flex!important;flex-direction:column!important;
    gap:18px!important;min-width:0!important;height:100%!important;align-self:stretch!important;
  }
  .sp-option-one .sp-left-stack .sp-feature-card{
    flex:0 0 27%!important;min-height:170px!important;height:auto!important;
    background:rgba(19,20,23,.72)!important;border:1px solid rgba(255,255,255,.11)!important;
    box-shadow:0 24px 70px rgba(0,0,0,.18)!important;backdrop-filter:blur(16px)!important;
    -webkit-backdrop-filter:blur(16px)!important;border-radius:16px!important;padding:12px!important;box-sizing:border-box!important;
  }
  .sp-option-one .sp-left-stack .sp-feature-track{border-radius:12px!important;overflow:hidden!important;}
  .sp-option-one .sp-left-stack .sp-ad-left{
    flex:1 1 auto!important;display:flex!important;position:static!important;width:100%!important;min-width:0!important;
    min-height:0!important;height:auto!important;align-self:stretch!important;border-style:solid!important;padding:12px!important;
  }
}
.sp-feature-content{flex-direction:row!important;align-items:center!important;justify-content:space-between!important;gap:10px!important;}
.sp-feature-content strong{min-width:0!important;max-width:70%!important;}
.sp-feature-cta{flex:0 0 auto!important;min-height:30px!important;padding:0 12px!important;border-radius:10px!important;}

@media (min-width:821px) and (max-width:1180px){
  .sp-option-one .sp-left-stack{display:none!important;}
}
@media (max-width:820px){
  .sp-option-one .sp-left-stack{display:contents!important;}
  .sp-option-one .sp-left-stack .sp-feature-card{
    grid-column:1/-1!important;grid-row:2!important;width:100%!important;height:150px!important;min-height:150px!important;
    background:rgba(19,20,23,.72)!important;border:1px solid rgba(255,255,255,.11)!important;border-radius:14px!important;
    padding:9px!important;box-sizing:border-box!important;overflow:hidden!important;
  }
  .sp-option-one .sp-left-stack .sp-feature-track{border-radius:10px!important;overflow:hidden!important;}
  .sp-option-one .sp-left-stack .sp-ad-left{grid-column:1!important;grid-row:3!important;}
  .sp-option-one .sp-ad-right{grid-column:2!important;grid-row:3!important;}
  .sp-feature-content strong{font-size:13px!important;max-width:68%!important;}
  .sp-feature-cta{min-height:28px!important;font-size:10px!important;border-radius:9px!important;}
}


/* v5.10 — exact left stack proportions and inline CTA */
@media (min-width:1181px){
  .sp-option-one .sp-left-stack{
    grid-column:1!important;
    grid-row:1!important;
    align-self:stretch!important;
    min-height:0!important;
    height:auto!important;
    display:grid!important;
    grid-template-rows:minmax(0,3fr) minmax(0,7fr)!important;
    gap:18px!important;
  }
  .sp-option-one .sp-left-stack .sp-feature-card,
  .sp-option-one .sp-left-stack .sp-ad-left{
    min-height:0!important;
    height:100%!important;
    width:100%!important;
    box-sizing:border-box!important;
    margin:0!important;
  }
  .sp-option-one .sp-left-stack .sp-feature-card{
    padding:12px!important;
    overflow:hidden!important;
  }
  .sp-option-one .sp-left-stack .sp-ad-left{
    position:static!important;
    display:flex!important;
    align-self:stretch!important;
    aspect-ratio:auto!important;
    padding:12px!important;
  }
}
.sp-feature-content{
  display:flex!important;
  flex-direction:row!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:10px!important;
  width:auto!important;
}
.sp-feature-content strong{
  min-width:0!important;
  max-width:68%!important;
  margin:0!important;
}
.sp-feature-cta{
  flex:0 0 auto!important;
  margin:0!important;
  min-height:30px!important;
  padding:0 12px!important;
  border-radius:10px!important;
}

/* v5.11 — corrected feature/ad order + slider progress placement + mobile order */
@media (min-width:1181px){
  .sp-option-one .sp-left-stack .sp-feature-card{
    grid-row:1!important;
  }
  .sp-option-one .sp-left-stack .sp-ad-left{
    grid-row:2!important;
  }
}

/* Progress bars sit beneath the service title / CTA instead of at the top edge. */
.sp-feature-nav{
  top:auto!important;
  bottom:10px!important;
}
.sp-feature-content{
  bottom:28px!important;
}

@media (max-width:820px){
  .sp-option-one .sp-workspace-shell{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:12px!important;
  }
  .sp-option-one .sp-left-stack{display:contents!important;}
  .sp-option-one .sp-left-stack .sp-feature-card{
    grid-column:1/-1!important;
    grid-row:1!important;
    width:100%!important;
    height:auto!important;
    min-height:0!important;
    aspect-ratio:16/9!important;
  }
  .sp-option-one .sp-tool-rail{
    grid-column:1/-1!important;
    grid-row:2!important;
  }
  .sp-option-one .sp-left-stack .sp-ad-left{
    grid-column:1!important;
    grid-row:3!important;
    width:100%!important;
    height:auto!important;
    min-height:0!important;
    aspect-ratio:1/2!important;
  }
  .sp-option-one .sp-ad-right{
    grid-column:2!important;
    grid-row:3!important;
    width:100%!important;
    height:auto!important;
    min-height:0!important;
    aspect-ratio:1/2!important;
  }
  .sp-feature-nav{bottom:8px!important;}
  .sp-feature-content{bottom:25px!important;}
}

/* v5.12 — approved slider composition from visual reference */
@media (min-width:1181px){
  .sp-option-one .sp-left-stack{
    grid-template-rows:minmax(0,47fr) minmax(0,53fr)!important;
    gap:18px!important;
  }
  .sp-option-one .sp-left-stack .sp-feature-card{
    padding:12px!important;
    overflow:hidden!important;
  }
}

/* Keep title/CTA low and the progress rail fully INSIDE the media frame. */
.sp-feature-content{
  left:14px!important;
  right:14px!important;
  bottom:34px!important;
  align-items:center!important;
}
.sp-feature-nav{
  left:14px!important;
  right:14px!important;
  top:auto!important;
  bottom:13px!important;
  z-index:5!important;
}
.sp-feature-dot{height:3px!important;}
.sp-feature-track{position:relative!important;overflow:hidden!important;}

@media (max-width:820px){
  .sp-option-one .sp-left-stack .sp-feature-card{
    width:100%!important;
    height:auto!important;
    min-height:0!important;
    aspect-ratio:16/9!important;
    padding:9px!important;
  }
  .sp-feature-content{
    left:12px!important;
    right:12px!important;
    bottom:31px!important;
  }
  .sp-feature-nav{
    left:12px!important;
    right:12px!important;
    bottom:11px!important;
  }
}


/* v5.13 — symmetric 50/50 side stacks + three equal mobile ads */
@media (min-width:1181px){
  .sp-option-one .sp-left-stack,
  .sp-option-one .sp-right-stack{
    min-width:0!important;
    min-height:0!important;
    height:auto!important;
    align-self:stretch!important;
    display:grid!important;
    grid-template-rows:minmax(0,1fr) minmax(0,1fr)!important;
    gap:18px!important;
  }
  .sp-option-one .sp-left-stack{grid-column:1!important;grid-row:1!important;}
  .sp-option-one .sp-right-stack{grid-column:3!important;grid-row:1!important;}
  .sp-option-one .sp-left-stack .sp-feature-card,
  .sp-option-one .sp-left-stack .sp-ad-left,
  .sp-option-one .sp-right-stack .sp-ad-right{
    position:static!important;
    width:100%!important;
    height:100%!important;
    min-height:0!important;
    margin:0!important;
    box-sizing:border-box!important;
    align-self:stretch!important;
    aspect-ratio:auto!important;
  }
  .sp-option-one .sp-left-stack .sp-feature-card{grid-row:1!important;}
  .sp-option-one .sp-left-stack .sp-ad-left{grid-row:2!important;}
  .sp-option-one .sp-right-stack .sp-ad-right-top{grid-row:1!important;}
  .sp-option-one .sp-right-stack .sp-ad-right-bottom{grid-row:2!important;}
}

/* Medium desktop/tablet: hide the left column, retain the two right ads. */
@media (min-width:821px) and (max-width:1180px){
  .sp-option-one .sp-workspace-shell{
    grid-template-columns:minmax(520px,1fr) 230px!important;
    gap:18px!important;
    align-items:stretch!important;
  }
  .sp-option-one .sp-left-stack{display:none!important;}
  .sp-option-one .sp-tool-rail{grid-column:1!important;grid-row:1!important;}
  .sp-option-one .sp-right-stack{
    grid-column:2!important;grid-row:1!important;
    display:grid!important;
    grid-template-rows:minmax(0,1fr) minmax(0,1fr)!important;
    gap:18px!important;
    min-width:0!important;min-height:0!important;align-self:stretch!important;
  }
  .sp-option-one .sp-right-stack .sp-ad-right{
    display:flex!important;position:static!important;width:100%!important;height:100%!important;
    min-height:0!important;aspect-ratio:auto!important;margin:0!important;box-sizing:border-box!important;
  }
}

/* Mobile: slider first, builder second, then all 3 ads in one equal vertical stack. */
@media (max-width:820px){
  .sp-option-one .sp-workspace-shell{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:12px!important;
  }
  .sp-option-one .sp-left-stack{display:contents!important;}
  .sp-option-one .sp-left-stack .sp-feature-card{
    grid-column:1!important;grid-row:1!important;
    width:100%!important;height:auto!important;min-height:0!important;aspect-ratio:16/9!important;
  }
  .sp-option-one .sp-tool-rail{grid-column:1!important;grid-row:2!important;}
  .sp-option-one .sp-left-stack .sp-ad-left{
    grid-column:1!important;grid-row:3!important;
  }
  .sp-option-one .sp-right-stack{
    display:contents!important;
  }
  .sp-option-one .sp-right-stack .sp-ad-right-top{
    grid-column:1!important;grid-row:4!important;
  }
  .sp-option-one .sp-right-stack .sp-ad-right-bottom{
    grid-column:1!important;grid-row:5!important;
  }
  .sp-option-one .sp-left-stack .sp-ad-left,
  .sp-option-one .sp-right-stack .sp-ad-right{
    display:flex!important;position:static!important;
    width:100%!important;height:auto!important;min-height:0!important;
    aspect-ratio:2/1!important;
    margin:0!important;box-sizing:border-box!important;
  }
}

/* v5.14 — fix right ad stack only: match left advertisement dimensions */
@media (min-width:1181px){
  .sp-option-one .sp-right-stack .sp-ad-right{
    grid-column:1!important;
    width:100%!important;
    max-width:none!important;
  }
  .sp-option-one .sp-right-stack .sp-ad-right-top{grid-row:1!important;}
  .sp-option-one .sp-right-stack .sp-ad-right-bottom{grid-row:2!important;}
}

/* v5.15 — medium desktop: keep both right ads stacked at proper card proportions */
@media (min-width:821px) and (max-width:1180px){
  .sp-option-one .sp-workspace-shell{
    grid-template-columns:minmax(0,1fr) minmax(280px,32%)!important;
    gap:18px!important;
    align-items:start!important;
  }
  .sp-option-one .sp-left-stack{display:none!important;}
  .sp-option-one .sp-tool-rail{grid-column:1!important;grid-row:1!important;}
  .sp-option-one .sp-right-stack{
    grid-column:2!important;
    grid-row:1!important;
    display:flex!important;
    flex-direction:column!important;
    gap:18px!important;
    width:100%!important;
    height:auto!important;
    min-width:0!important;
    min-height:0!important;
    align-self:start!important;
  }
  .sp-option-one .sp-right-stack .sp-ad-right{
    display:flex!important;
    position:static!important;
    width:100%!important;
    height:auto!important;
    min-height:0!important;
    aspect-ratio:1.44/1!important;
    margin:0!important;
    box-sizing:border-box!important;
    flex:0 0 auto!important;
  }
}

/* v3.11 Film DNA intro + video banner */
.film-intro{max-width:1500px;margin:0 auto 34px}.film-breadcrumb{display:flex;align-items:center;gap:8px;font-size:13px;color:#8f8b99;margin-bottom:24px}.film-breadcrumb strong{color:#f0edf4}.film-kicker{font-size:12px;letter-spacing:.38em;color:#a8a2b5;margin:0 0 10px 2px}.film-title{font-size:76px;line-height:.95;letter-spacing:-4px;margin:0;background:linear-gradient(100deg,#b45cff 0%,#743cff 15%,#8ed8ff 31%,#55c8ff 39%,#ffb5a1 51%,#ed56c9 62%,#ad4dff 73%,#6ca6ff 90%,#6d5dff 100%);background-size:180% 100%;-webkit-background-clip:text;background-clip:text;color:transparent}.film-description{margin-top:14px;max-width:920px;font-size:18px;line-height:1.4;color:#b7b5c1}.film-banner{height:300px;margin-top:26px;border:1px solid rgba(157,77,255,.75);border-radius:20px;overflow:hidden;position:relative;background:#11131c;box-shadow:0 14px 50px rgba(59,19,104,.18);pointer-events:none}.film-banner video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block;pointer-events:none}.film-banner:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(10,10,18,.86) 0%,rgba(10,10,18,.58) 30%,rgba(10,10,18,.05) 62%,rgba(8,10,20,.14) 100%);pointer-events:none}.film-banner-copy{position:absolute;z-index:2;left:48px;top:50%;transform:translateY(-50%);color:#eee}.film-banner-copy h2{font-size:21px;line-height:1.28;letter-spacing:.34em;font-weight:450;margin:0}.film-banner-copy span{display:block;width:40px;height:2px;background:#a857ff;margin:20px 0 18px}.film-banner-copy p{font-size:15px;line-height:1.45;color:#b9b7c0;margin:0;letter-spacing:.02em}@media(max-width:1100px){.film-title{font-size:62px}.film-banner{height:260px}}@media(max-width:700px){.film-kicker{font-size:9px;letter-spacing:.28em}.film-title{font-size:45px;letter-spacing:-2.5px}.film-description{font-size:15px}.film-banner{height:220px;border-radius:16px}.film-banner-copy{left:24px}.film-banner-copy h2{font-size:16px}.film-banner-copy p{font-size:13px}}

/* v3.12 — match Film DNA horizontal alignment to Color Lab */
.sp-option-one{
  padding-left:56px!important;
  padding-right:56px!important;
}
.sp-option-one .film-intro,
.sp-option-one .sp-workspace-shell{
  max-width:1810px!important;
  width:100%!important;
  margin-left:auto!important;
  margin-right:auto!important;
  box-sizing:border-box!important;
}
@media(max-width:1100px){
  .sp-option-one{padding-left:28px!important;padding-right:28px!important;}
}
@media(max-width:700px){
  .sp-option-one{padding-left:16px!important;padding-right:16px!important;}
}

/* v3.13 — align Film DNA vertically with Color Lab + focus the scene input */
.sp-option-one{padding-top:78px!important;}
.sp-option-one .sp-tool-rail{padding-top:22px!important;}
.sp-option-one .sp-idea-card{
  margin-top:0!important;
  min-height:235px!important;
  display:flex!important;
  flex-direction:column!important;
  border:1px solid rgba(166,92,255,.82)!important;
  box-shadow:0 0 0 1px rgba(140,67,255,.12),0 0 24px rgba(139,67,255,.18),inset 0 0 24px rgba(139,67,255,.035)!important;
  transition:border-color .2s ease,box-shadow .2s ease!important;
}
.sp-option-one .sp-idea-card:focus-within{
  border-color:#b46cff!important;
  box-shadow:0 0 0 1px rgba(180,108,255,.25),0 0 34px rgba(139,67,255,.32),inset 0 0 28px rgba(139,67,255,.055)!important;
}
.sp-option-one .sp-idea-card textarea{height:auto!important;min-height:175px!important;flex:1!important;}
@media(max-width:1100px){.sp-option-one{padding-top:64px!important;}}
@media(max-width:700px){.sp-option-one{padding-top:42px!important}.sp-option-one .sp-idea-card{min-height:200px!important}.sp-option-one .sp-idea-card textarea{min-height:140px!important}}


/* v3.21 — full-width Film DNA video hero */
html{scroll-behavior:auto;scroll-padding-top:94px}
.film-video-hero{position:relative;width:100%;height:clamp(520px,72vh,760px);margin-top:-64px;overflow:hidden;background:#09090d;display:grid;place-items:center;isolation:isolate}
.film-video-hero__media{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-3}
.film-video-hero__shade{position:absolute;inset:0;z-index:-2;background:linear-gradient(180deg,rgba(5,5,10,.48) 0%,rgba(7,7,12,.38) 42%,rgba(8,8,13,.72) 100%),radial-gradient(circle at 50% 45%,rgba(86,34,151,.10),rgba(0,0,0,.30) 72%)}
.film-video-hero__content{width:min(900px,calc(100% - 40px));text-align:center;margin-top:64px;color:#fff;text-shadow:0 2px 22px rgba(0,0,0,.32)}
.film-video-hero__content>span{display:block;font-size:14px;letter-spacing:.18em;text-transform:uppercase;color:rgba(255,255,255,.72);margin-bottom:14px}
.film-video-hero__content h1{font-size:clamp(52px,6.2vw,104px);line-height:.92;letter-spacing:-.055em;margin:0}
.film-video-hero__content p{max-width:680px;margin:22px auto 28px;font-size:clamp(16px,1.25vw,20px);line-height:1.55;color:rgba(255,255,255,.78)}
.film-video-hero__cta{display:inline-flex;align-items:center;gap:12px;min-height:48px;padding:0 22px;border:1px solid rgba(255,255,255,.28);border-radius:999px;background:rgba(18,16,25,.30);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);color:#fff;text-decoration:none;font-size:15px;font-weight:750;transition:transform .2s ease,background .2s ease,border-color .2s ease}
.film-video-hero__cta:hover{transform:translateY(-2px);background:rgba(139,67,255,.24);border-color:rgba(183,108,255,.72)}
.film-video-hero__cta b{font-size:18px;font-weight:500}
#filmPromptBuilder{scroll-margin-top:94px}
@media(max-width:760px){.film-video-hero{height:560px;margin-top:-64px}.film-video-hero__content{margin-top:64px}.film-video-hero__content p{max-width:520px}.film-video-hero__cta{min-height:46px;padding:0 19px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.film-video-hero__cta{transition:none}}

/* v3.23 builder intro */
.sp-builder-intro{max-width:1180px;margin:54px auto 8px;padding:0 28px;text-align:center}
.sp-builder-intro h2{margin:0;color:#f4f1f7;font-size:30px;line-height:1.15;letter-spacing:-.025em}
.sp-builder-intro p{margin:9px 0 0;color:#92909a;font-size:15px;line-height:1.5}
@media(max-width:760px){.sp-builder-intro{margin-top:38px;padding:0 18px}.sp-builder-intro h2{font-size:25px}.sp-builder-intro p{font-size:14px}}


/* v3.24 — larger builder intro + four-ad layout */
.sp-builder-intro{max-width:1180px!important;margin:88px auto 54px!important;padding:0 28px!important;text-align:center!important}
.sp-builder-intro h2{margin:0!important;color:#f4f1f7!important;font-size:clamp(38px,4vw,62px)!important;line-height:1.05!important;letter-spacing:-.04em!important;font-weight:800!important}
.sp-builder-intro p{margin:14px 0 0!important;color:#92909a!important;font-size:17px!important;line-height:1.5!important}
@media (min-width:1181px){
  .sp-option-one .sp-left-stack .sp-ad-left{display:flex!important;position:static!important;width:100%!important;height:100%!important;min-height:0!important;aspect-ratio:auto!important;margin:0!important;box-sizing:border-box!important}
  .sp-option-one .sp-left-stack .sp-ad-left-top{grid-row:1!important}
  .sp-option-one .sp-left-stack .sp-ad-left-bottom{grid-row:2!important}
}
@media (max-width:820px){
  .sp-builder-intro{margin:62px auto 38px!important;padding:0 18px!important}
  .sp-builder-intro h2{font-size:clamp(34px,10vw,48px)!important}
  .sp-builder-intro p{font-size:15px!important}
  .sp-option-one .sp-left-stack .sp-ad-left-top{grid-column:1!important;grid-row:3!important}
  .sp-option-one .sp-left-stack .sp-ad-left-bottom{grid-column:1!important;grid-row:4!important}
  .sp-option-one .sp-right-stack .sp-ad-right-top{grid-column:1!important;grid-row:5!important}
  .sp-option-one .sp-right-stack .sp-ad-right-bottom{grid-column:1!important;grid-row:6!important}
  .sp-option-one .sp-left-stack .sp-ad-left,.sp-option-one .sp-right-stack .sp-ad-right{display:flex!important;position:static!important;width:100%!important;height:auto!important;min-height:0!important;aspect-ratio:2/1!important;margin:0!important;box-sizing:border-box!important}
}

/* v3.25 — Blog-style section handoff + centered builder intro */
#filmPromptStart{scroll-margin-top:64px}
.sp-builder-intro{
  min-height:310px!important;
  max-width:none!important;
  margin:0 auto!important;
  padding:72px 28px 62px!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
  text-align:center!important;
}
.sp-builder-intro h2{
  margin:0!important;
  color:#f4f1f7!important;
  font-size:clamp(46px,4.5vw,72px)!important;
  line-height:1.02!important;
  letter-spacing:-.045em!important;
  font-weight:800!important;
}
.sp-builder-intro p{
  margin:16px 0 0!important;
  color:#92909a!important;
  font-size:17px!important;
  line-height:1.5!important;
}
@media(max-width:760px){
  #filmPromptStart{scroll-margin-top:64px}
  .sp-builder-intro{min-height:250px!important;padding:54px 18px 44px!important}
  .sp-builder-intro h2{font-size:clamp(38px,11vw,52px)!important}
  .sp-builder-intro p{font-size:15px!important}
}

/* v3.26 — exact Blog-style first-screen / section handoff */
html{scroll-padding-top:0!important}
.film-video-hero{
  height:100vh!important;
  min-height:100vh!important;
  margin-top:-64px!important;
}
.film-video-hero__content{margin-top:64px!important}
#filmPromptStart{
  scroll-margin-top:0!important;
  min-height:430px!important;
  padding:96px 28px 76px!important;
  box-sizing:border-box!important;
}
.sp-option-one{padding-top:0!important}
@media(max-width:760px){
  .film-video-hero{height:100svh!important;min-height:100svh!important;margin-top:-64px!important}
  #filmPromptStart{scroll-margin-top:0!important;min-height:340px!important;padding:76px 18px 58px!important}
}

/* v3.27 — match Blog Archive title-to-grid spacing */
#filmPromptStart.sp-builder-intro{
  min-height:0!important;
  height:auto!important;
  padding:88px 28px 52px!important;
}
@media(max-width:760px){
  #filmPromptStart.sp-builder-intro{
    min-height:0!important;
    height:auto!important;
    padding:60px 18px 42px!important;
  }
}


/* v3.2 Film Setup browse grid: Genre + Era only */
.sp-grid.sp-film-browser{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:22px 16px;
  align-content:start;
  max-height:520px;
  overflow-y:auto;
  overflow-x:hidden;
  padding:8px 10px 28px 4px;
  scrollbar-width:none;
  -ms-overflow-style:none;
  cursor:grab;
  user-select:none;
  touch-action:pan-y;
}
.sp-grid.sp-film-browser::-webkit-scrollbar{display:none;width:0;height:0}
.sp-grid.sp-film-browser.is-dragging{cursor:grabbing}
.sp-film-browser .sp-film-tile{
  display:block!important;
  width:100%!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  background:transparent!important;
  position:relative;
  text-align:left;
  overflow:visible!important;
}
.sp-film-browser .sp-film-tile .visual{
  width:100%;height:132px;border-radius:14px;overflow:hidden;
  border:2px solid transparent;background-color:#25272c;
  transition:border-color .16s ease,box-shadow .16s ease,transform .16s ease;
}
.sp-film-browser .sp-film-tile:hover .visual{border-color:rgba(139,67,255,.5);transform:translateY(-1px)}
.sp-film-browser .sp-film-tile.selected .visual{border-color:var(--sp-purple);box-shadow:0 0 0 1px rgba(139,67,255,.28)}
.sp-film-browser .sp-film-tile strong{display:block!important;padding:9px 2px 0!important;font-size:15px!important;line-height:1.25!important;font-weight:500!important;color:#d9d9dc!important;text-align:left!important;background:transparent!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sp-film-browser .sp-film-tile .tick{
  position:absolute!important;right:8px!important;top:8px!important;width:25px!important;height:25px!important;
  border-radius:50%!important;background:#38c76f!important;color:#fff!important;font-size:15px!important;font-weight:900!important;
  display:grid!important;place-items:center!important;opacity:0!important;transform:scale(.75)!important;transition:.16s ease!important;
}
.sp-film-browser .sp-film-tile.selected .tick{opacity:1!important;transform:scale(1)!important}
@media(max-width:900px){.sp-grid.sp-film-browser{grid-template-columns:repeat(3,minmax(0,1fr));max-height:480px}.sp-film-browser .sp-film-tile .visual{height:120px}}
@media(max-width:620px){.sp-grid.sp-film-browser{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 12px;max-height:430px}.sp-film-browser .sp-film-tile .visual{height:112px}}

/* v3.3 Film Setup repair: wide 3-up tiles, working selection, modal-only scrolling */
body.sp-modal-lock{overflow:hidden!important;overscroll-behavior:none!important}
.sp-grid.sp-film-browser{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:20px 16px!important;max-height:500px!important;overscroll-behavior:contain!important;touch-action:pan-y!important}
.sp-film-browser .sp-film-tile .visual{height:auto!important;aspect-ratio:16/9!important;border-radius:14px!important}
.sp-film-browser .sp-film-tile{cursor:pointer!important}
.sp-film-browser{cursor:grab!important}
.sp-film-browser.is-dragging{cursor:grabbing!important}
@media(max-width:900px){.sp-grid.sp-film-browser{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:620px){.sp-grid.sp-film-browser{grid-template-columns:1fr!important}.sp-film-browser .sp-film-tile .visual{aspect-ratio:16/9!important}}

/* v3.4 browse grids: Film + Color; mobile stays 2-up */
@media(max-width:620px){
  .sp-grid.sp-film-browser{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:14px 10px!important;max-height:430px!important}
  .sp-film-browser .sp-film-tile .visual{aspect-ratio:16/9!important;height:auto!important}
}
.sp-grid.sp-color-browser{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:20px 16px!important;max-height:500px!important;overflow-y:auto!important;overflow-x:hidden!important;scrollbar-width:none!important;overscroll-behavior:contain!important;padding:8px 10px 22px!important;align-content:start!important;cursor:grab!important}
.sp-grid.sp-color-browser::-webkit-scrollbar{display:none!important}
.sp-color-browser.is-dragging{cursor:grabbing!important}
.sp-color-browser .sp-color-tile{display:block!important;position:relative!important;background:transparent!important;border:0!important;padding:0!important;text-align:left!important;cursor:pointer!important;min-width:0!important}
.sp-color-browser .sp-color-tile .visual{width:100%!important;height:auto!important;aspect-ratio:16/9!important;border-radius:14px!important;background-color:#22252a!important;border:2px solid transparent!important;overflow:hidden!important;transition:.18s ease!important}
.sp-color-browser .sp-color-tile strong{display:block!important;margin-top:9px!important;font-size:17px!important;font-weight:500!important;color:#e9e7ee!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
.sp-color-browser .sp-color-tile.selected .visual{border-color:#7c3aed!important;box-shadow:0 0 0 1px rgba(124,58,237,.25)!important}
.sp-color-browser .sp-color-tile .tick{position:absolute!important;right:10px!important;top:10px!important;width:28px!important;height:28px!important;border-radius:50%!important;background:#35c96f!important;color:#fff!important;font-size:17px!important;font-weight:800!important;display:grid!important;place-items:center!important;opacity:0!important;transform:scale(.75)!important;transition:.16s ease!important}
.sp-color-browser .sp-color-tile.selected .tick{opacity:1!important;transform:scale(1)!important}
@media(max-width:900px){.sp-grid.sp-color-browser{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:620px){.sp-grid.sp-color-browser{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:14px 10px!important;max-height:430px!important}}
/* Make carousel selection unmistakable, including Camera */
.sp-single-carousel .sp-option.selected .visual{border:3px solid #7c3aed!important;box-shadow:0 0 0 1px rgba(124,58,237,.28)!important}
.sp-single-carousel .sp-option.selected .tick{opacity:1!important;transform:scale(1)!important;background:#35c96f!important;color:#fff!important}

/* v3.27 — Generate button progress states */
.sp-generate{position:relative;overflow:hidden;transition:box-shadow .28s ease,filter .28s ease,transform .2s ease}
.sp-generate.is-generating{cursor:wait;box-shadow:0 0 0 1px rgba(188,126,255,.38),0 0 20px rgba(139,67,255,.48),0 0 42px rgba(139,67,255,.2);animation:o4PromptGlow 1.35s ease-in-out infinite}
.sp-generate.is-generating:before{content:"";position:absolute;inset:-70%;background:linear-gradient(110deg,transparent 35%,rgba(255,255,255,.24) 50%,transparent 65%);animation:o4PromptSweep 1.6s linear infinite;pointer-events:none}
.sp-generate.is-ready{cursor:pointer;box-shadow:0 0 24px rgba(139,67,255,.34)}
.sp-generate.is-copied{background:#22a85a!important;border-color:#57d987!important;color:#fff!important;box-shadow:0 0 28px rgba(87,217,135,.48)!important}
.sp-generate.is-cooldown{opacity:.72;cursor:not-allowed}
.sp-generate:disabled{color:#fff}
@keyframes o4PromptGlow{0%,100%{filter:brightness(1)}50%{filter:brightness(1.18)}}
@keyframes o4PromptSweep{from{transform:translateX(-55%) rotate(8deg)}to{transform:translateX(55%) rotate(8deg)}}

/* Generate validation hint */
.sp-generate-hint{position:fixed;z-index:99999;padding:8px 11px;border-radius:8px;background:#17131f;color:#fff;border:1px solid rgba(173,112,255,.5);font-size:12px;font-weight:600;line-height:1.2;pointer-events:none;opacity:0;transform:translateY(4px);transition:opacity .16s ease,transform .16s ease;box-shadow:0 8px 24px rgba(0,0,0,.28)}
.sp-generate-hint.show{opacity:1;transform:translateY(0)}

/* Refined premium option labels. */
.sp-option strong,.shuffle-choice-name,.sp-choice-name{font-size:14px!important;line-height:1.25!important;font-weight:600!important;}
