:root{--ink:#172c32;--muted:#536970;--brand:#087f75;--brand2:#0b8c80;--brand-dark:#065c55;--brand-soft:#e8f5f1;--bg:#f3f5f2;--line:#dce4df;--shadow:0 2px 8px #17352b06}
body{background:var(--bg)}.topbar,.progressbar,.stage,.footerbar{backdrop-filter:none;border:1px solid var(--line);background:#fff}.topbar,.stage{border-radius:16px}.brandname{font-weight:750}.brandmark{box-shadow:none}.eyebrow{color:var(--brand);font-weight:700}h1,h2{letter-spacing:-.035em;font-weight:750!important}.leadcopy{color:var(--muted);line-height:1.6}.btn-next{background:var(--brand);box-shadow:none;border-radius:10px}.btn-next:hover{background:var(--brand-dark)}.btn-next:disabled{opacity:.55}.footerbar{border-radius:12px}.fieldlabel{font-weight:650}.form-control,.form-select{border-color:#cbd7d0;border-radius:8px}.form-control:focus,.form-select:focus{border-color:var(--brand);box-shadow:0 0 0 3px #087f7525}.auth-sublink{cursor:pointer;text-decoration:underline;text-underline-offset:3px;color:var(--brand)}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #c17b24;outline-offset:3px}.modecard,.mini-card,.picker{box-shadow:none;border-color:var(--line)}.style-catalogue{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:20px 0}.style-option{padding:0;text-align:left;border:1px solid var(--line);border-radius:12px;background:#fff;color:var(--ink);overflow:hidden;cursor:pointer;transition:border-color .15s,box-shadow .15s}.style-option[aria-pressed=true]{border-color:var(--brand);box-shadow:0 0 0 2px var(--brand)}.style-option strong{display:block;font-size:.92rem;padding:12px 12px 2px}.style-option small{display:block;font-size:.76rem;padding:0 12px 12px;color:var(--muted);line-height:1.5}.style-scene{height:112px;background:var(--scene-bg);position:relative;overflow:hidden;display:flex;align-items:center;justify-content:center;color:var(--scene-ink)}.style-scene:before{content:"";position:absolute;width:90px;height:90px;border:1px solid currentColor;border-radius:50%;opacity:.35;left:15%;top:15%;animation:studio-orbit 5s ease-in-out infinite}.style-scene:after{content:"";position:absolute;width:35px;height:35px;background:var(--scene-accent);border-radius:8px;right:20%;bottom:15%;animation:studio-object 3s ease-in-out infinite}.style-scene span{font-size:1.15rem;font-weight:800;letter-spacing:.06em;z-index:1;animation:studio-title 4s ease-in-out infinite}.style-option:nth-child(3n) .style-scene:before{border-radius:5px;width:130px;height:65px}.style-option:nth-child(3n+1) .style-scene:after{border-radius:50%}.style-option:nth-child(2n) .style-scene span{font-family:Georgia,serif;letter-spacing:.01em}.studio-note{font-size:.8rem;color:var(--muted)}.hook-panel{border:1px solid var(--line);padding:20px;border-radius:12px;background:#fcfdfb;margin:18px 0}.hook-heading{display:flex;justify-content:space-between;gap:12px;align-items:center}.hook-heading h3{font-size:1rem;margin:0 0 5px;font-weight:750}.hook-heading p{margin:0;color:var(--muted);font-size:.85rem}.hook-fields{margin-top:20px;display:grid;gap:14px}.hook-fields label{display:block;font-size:.88rem;font-weight:650;margin-bottom:6px}.hook-fields textarea{min-height:110px}.hook-row{display:grid;grid-template-columns:1fr 1fr;gap:14px}.hook-toggle{width:22px;height:22px;accent-color:var(--brand);flex-shrink:0}.hook-preview{display:block;max-width:260px;max-height:300px;border-radius:10px;margin-top:12px}.hook-status{font-size:.85rem;color:var(--muted);margin-top:10px}.hook-music{display:flex!important;gap:10px;align-items:center;font-weight:500!important}.hook-music input{accent-color:var(--brand)}.first-password{position:fixed;inset:0;background:#102c35a6;display:grid;place-items:center;z-index:3000;padding:20px}.first-password[hidden]{display:none}.first-password form{background:white;border-radius:16px;padding:28px;width:min(420px,100%);box-shadow:0 20px 80px #0003}.first-password h2{font-size:1.5rem}.first-password p{color:var(--muted);line-height:1.6}.first-password label{display:block;margin-top:15px;margin-bottom:6px}.first-password button{margin-top:20px;min-height:46px;width:100%}.first-password-error{color:#ac2932;font-size:.85rem;margin-top:12px}.step[data-step=video] .step-inner{overflow-y:auto;height:100%;padding-bottom:28px}.hero{background:#123f39!important;box-shadow:none!important}.mark{background:var(--brand)!important}.btnsoft{background:var(--brand-soft);color:var(--brand-dark)}
@keyframes studio-orbit{50%{transform:translateX(22px) rotate(20deg)}}@keyframes studio-object{50%{transform:translateY(-12px) rotate(-12deg)}}@keyframes studio-title{50%{transform:translateY(-3px)}}
@media(max-width:760px){.style-catalogue{grid-template-columns:repeat(2,minmax(0,1fr))}.hook-row{grid-template-columns:1fr}.hook-panel{padding:16px}.style-scene{height:100px}.shell{padding:8px;gap:8px}.hook-heading{align-items:flex-start}.style-option small{min-height:45px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
.balancebtn,.gallerybtn,.pill-action,.auth-tab-btn.active{background:var(--brand-soft);color:var(--brand-dark);border-color:var(--line)}.stepdot.done{background:#91bfb3}.step-label{color:var(--muted)}.brandtag{color:var(--muted)}.authhint{color:var(--muted)}.authhint,.studio-note{line-height:1.6}.gallerybtn:hover,.balancebtn:hover{background:#d5ebe4}.hook-preview[hidden]{display:none}.topbar .brand{flex:1;min-width:0}
@media(max-width:480px){.topbar{padding:8px 10px;gap:6px}.top-actions{gap:6px}.gallerybtn{font-size:13px!important;padding:8px!important}.balancebtn{font-size:12px!important;padding:8px!important}.brandmark{width:32px;height:32px}.brand{gap:6px}.brandname{font-size:1rem}}

.hook-choices{display:flex;gap:10px;margin:18px 0 12px}.hook-choice{min-height:46px;padding:10px 20px;border:1px solid var(--line);border-radius:9px;background:#fff;color:var(--ink);font-weight:650}.hook-choice[aria-pressed=true]{background:var(--brand-soft);border-color:var(--brand);color:var(--brand-dark)}button:disabled{cursor:wait;opacity:.55}.step[data-step=video] .video-options{grid-template-columns:1fr}

.home-action{display:inline-flex;align-items:center;gap:6px;white-space:nowrap}
.production-layout{display:grid;grid-template-columns:minmax(240px,1fr) minmax(250px,.85fr);gap:28px;align-items:start;margin-top:24px}.production-preview{min-width:0;max-width:390px;width:100%;margin:auto}.forming-frame{position:relative;aspect-ratio:9/16;width:100%;padding:0;overflow:hidden;border:1px solid #ffffff20;border-radius:22px;background:#122c2b;box-shadow:0 20px 45px #123f3918;color:white}.forming-scene{position:absolute;inset:0;background:linear-gradient(145deg,#143c3a,#315b5d 50%,#d9b78a);animation:scene-breathe 8s ease-in-out infinite alternate}.forming-orb{position:absolute;border-radius:50%;filter:blur(25px);opacity:.7}.orb-one{width:85%;height:50%;background:#d4bc8b;top:8%;left:-30%;animation:scene-orbit 9s ease-in-out infinite alternate}.orb-two{width:80%;height:45%;background:#53a58e;right:-25%;bottom:20%;animation:scene-orbit 7s ease-in-out infinite alternate-reverse}.forming-subject{position:absolute;width:38%;height:42%;left:31%;top:23%;border-radius:44% 44% 18% 18%;background:linear-gradient(140deg,#e7e7cc90,#163e3b90);box-shadow:0 30px 70px #092e2b50;filter:blur(3px);transform:rotate(-8deg);animation:subject-form 5s ease-in-out infinite alternate}.forming-scan{position:absolute;inset:-100% 0 0;height:200%;background:linear-gradient(transparent 46%,#d7fff320 50%,transparent 54%);animation:scene-scan 5s ease-in-out infinite}.forming-grain{position:absolute;inset:0;background:repeating-linear-gradient(0deg,transparent 0 4px,#ffffff05 4px 5px);opacity:.5}.forming-badge{position:absolute;top:18px;left:18px;display:flex;align-items:center;gap:8px;padding:7px 10px;border:1px solid #ffffff25;border-radius:30px;background:#102c3560;font-size:11px;backdrop-filter:blur(8px)}.forming-badge span{width:6px;height:6px;border-radius:50%;background:#b8ecd6;animation:scene-pulse 2s ease-in-out infinite}.forming-caption{position:absolute;inset:auto 0 0;padding:65px 24px 26px;background:linear-gradient(transparent,#0b2526ed);display:flex;flex-direction:column;gap:8px}.forming-caption strong{font-size:1.12rem;line-height:1.4}.forming-caption p{font-size:.82rem;color:#ffffffb0;margin:0}.forming-symbol{font-size:25px;color:#c5e7d8}.forming-meta{display:flex;justify-content:space-between;align-items:center;font-size:.85rem;color:#d7eee5;margin:8px 0}.forming-dots{letter-spacing:5px;animation:scene-pulse 1.5s ease-in-out infinite}.forming-caption .small{font-size:.72rem;color:#d5dfdc;line-height:1.6}.production-music{margin:0!important;padding:22px!important;background:#f8faf8;border:1px solid var(--line);border-radius:18px}.production-music .choice-rail{display:grid;grid-template-columns:1fr;max-height:440px;overflow-y:auto;gap:10px}.production-music .choice-card{width:100%;min-width:0}.production-music .picker-tools{display:none}.production-preview .video-frame{margin:0;max-width:none}.production-preview .vplayer{border-radius:22px}.production-music .picker-title{font-size:1rem}.production-music .selection-note{line-height:1.6;font-size:.8rem;margin-top:6px}
@keyframes scene-breathe{from{filter:saturate(.75)}to{filter:saturate(1.15)}}@keyframes scene-orbit{to{transform:translate(35px,-45px) scale(1.15)}}@keyframes subject-form{from{filter:blur(7px);transform:translateY(12px) rotate(-8deg);opacity:.55}to{filter:blur(1px);transform:translateY(-6px) rotate(5deg);opacity:.95}}@keyframes scene-scan{from{transform:translateY(-35%)}to{transform:translateY(35%)}}@keyframes scene-pulse{50%{opacity:.4}}
@media(max-width:700px){.production-layout{grid-template-columns:1fr;gap:22px}.production-preview{max-width:310px}.production-music{padding:16px!important}.production-music .choice-rail{display:flex;overflow-x:auto;overflow-y:hidden;max-height:none;scroll-snap-type:x mandatory;touch-action:pan-x;overscroll-behavior-x:contain;padding-bottom:10px}.production-music .choice-card{flex:0 0 210px;min-width:210px;scroll-snap-align:start}.production-music .picker-tools{display:flex}.topbar .brandtag{display:none}.home-action span{display:none}.top-actions{gap:5px}.home-action{padding:8px!important}}
@media(prefers-reduced-motion:reduce){.forming-frame *{animation:none!important}.forming-subject{filter:blur(1px)}}
@media(min-width:701px){.production-preview{max-width:300px}.production-layout{grid-template-columns:minmax(240px,1fr) minmax(250px,1fr)}}
.production-music #videoMusicRail{grid-template-columns:1fr}.production-music .remix-btn{background:var(--brand);color:white;border-radius:10px}.production-music .choice-icon{background:var(--brand-soft);color:var(--brand)}.production-music .choice-play{color:var(--brand)}
@media(max-width:480px){.top-actions .gallerybtn .label{display:none}.topbar .brandname{font-size:.93rem}.top-actions .gallerybtn{min-width:36px;justify-content:center}.home-action{min-width:36px}}
/* Production puts the player first; compact status leaves the preview exposed. */
.step[data-step="render"] .step-inner{max-width:1180px;width:100%}
.step[data-step="render"] .eyebrow{font-size:11px;margin-bottom:4px}
.step[data-step="render"] #renderTitle{font-size:clamp(18px,2vw,24px);line-height:1.25;margin-bottom:6px}
.step[data-step="render"] #renderCopy{font-size:13px;line-height:1.4;margin-bottom:10px}
.production-layout{grid-template-columns:minmax(0,1.65fr) minmax(260px,1fr);gap:20px;margin-top:12px}
.production-preview{max-width:420px;width:100%;margin:0 auto}
.production-preview .vplayer,.production-preview .forming-frame{max-height:72vh;max-height:72dvh;aspect-ratio:9/16;width:auto;max-width:100%;margin:auto}
.forming-caption{padding:28px 16px 16px;gap:4px}.forming-caption strong{font-size:14px}.forming-caption p{font-size:12px}.forming-symbol{display:none}.forming-meta{margin:3px 0}.forming-caption .small{font-size:11px}.forming-badge{font-size:11px;padding:5px 8px;top:12px;left:12px}
.production-music{padding:16px!important}.production-music .choice-rail{max-height:62vh;max-height:62dvh}
@media(max-width:700px){.production-layout{grid-template-columns:minmax(0,1fr);gap:14px}.production-preview{max-width:360px}.production-preview .forming-frame,.production-preview .vplayer{max-height:65dvh}.production-music .choice-rail{max-height:none}}
.step[data-step="render"] .step-inner{max-width:1100px!important}
.step[data-step="render"] .eyebrow{display:none}
.step[data-step="render"] #renderTitle{font-size:20px}
.step[data-step="render"] #renderCopy{font-size:12px;margin-bottom:4px}
.production-layout{margin-top:8px}
.video-variant-tabs{display:flex;gap:6px;justify-content:center;margin:0 0 10px;flex-wrap:wrap}
.video-variant-tabs button{border:1px solid #cbd5d4;border-radius:10px;padding:8px 18px;background:#fff;color:#344744;font-size:14px;font-weight:700}
.video-variant-tabs button[aria-selected="true"],.video-variant-tabs button[aria-pressed="true"]{background:#087d70;border-color:#087d70;color:#fff}
.video-variant-tabs[hidden]{display:none}
.video-variant-tabs button:focus-visible{outline:3px solid #ff8d3f;outline-offset:3px}
.production-preview .forming-frame,.production-preview .vplayer{height:clamp(380px,calc(100dvh - 380px),640px);max-height:none;width:auto;aspect-ratio:9/16}
.production-preview .vplayer video{width:100%;height:100%;object-fit:contain}
@media(max-width:700px){.production-preview .forming-frame,.production-preview .vplayer{height:clamp(360px,calc(100dvh - 380px),560px)}}
@media(min-width:701px){.production-music{height:clamp(380px,calc(100dvh - 380px),640px);display:flex;flex-direction:column}.production-music .choice-rail{flex:1;min-height:0;max-height:none}.production-music .picker-head{flex-shrink:0}}
/* A full-width seeker is reachable independently of the compact player buttons. */
.vcontrols { grid-template-columns: auto 1fr auto; padding-top: 36px; }
.vcontrols .vseek { grid-column: 1 / -1; grid-row: 1; min-width: 0; height: 28px; margin: 0; accent-color: #ffad54; cursor: pointer; }
.vcontrols .vtime { font-size: 13px; }
.vcontrols button { min-width: 40px; min-height: 40px; }
.vcontrols button:focus-visible, .vseek:focus-visible { outline: 3px solid #ffad54; outline-offset: 3px; }
#variantDownload[aria-disabled="true"] { opacity: .75; cursor: wait; }
.audio-seek { width: 100%; height: 30px; accent-color: var(--teal, #087d70); cursor: pointer; }
.audio-seek:focus-visible { outline: 3px solid #ffad54; outline-offset: 3px; }
