/* Podcaster Studio — cinematic responsive accordion wizard.
 * Interactive controls are the real podcast form, not a visual-only mockup. */
:root{--studio-gold:#ffad55;--studio-cream:#ffecd9;--studio-purple:#9669ff;--studio-line:#9a82d957;--studio-white:#faf6ff}
html{scroll-padding-top:82px}
body{overflow-x:hidden}
.topbar{background:#171229ed;border-color:#ffffff1b;color:#f5eefe;box-shadow:0 3px 25px #1a10344a}
.topbar .nav{max-width:1500px}.topbar .links{color:#cfc5e8}.topbar .links a:hover{color:#ffbb76}
.topbar .brandmark{background:linear-gradient(135deg,#e88b55,#7259dc);box-shadow:0 8px 26px #e7926755}
.topbar .nav-btn{background:#ffffff1a;border:1px solid #ffffff2b}
.hero{padding:48px 0 85px;background:
 radial-gradient(ellipse at 16% 28%,#b35d5785,transparent 35%),
 radial-gradient(ellipse at 82% 0%,#6159b285,transparent 42%),
 radial-gradient(ellipse at 93% 76%,#251d6a,transparent 45%),
 linear-gradient(115deg,#29172e,#1a1839 51%,#13132e);color:#fff;min-height:830px}
.hero::before{inset:0;top:0;left:0;width:100%;height:100%;border-radius:0;pointer-events:none;
 background:linear-gradient(90deg,transparent 40%,#ffffff09 40.3%,transparent 41%),
 repeating-linear-gradient(90deg,transparent 0 116px,#ffffff08 117px 118px,transparent 119px 240px);opacity:.45}
.hero::after{content:"";position:absolute;inset:auto 0 0;height:150px;pointer-events:none;background:linear-gradient(0deg,#faaf6a17,transparent)}
.hero .container{max-width:1540px;padding:0 clamp(14px,3.5vw,48px)}
.hero-layout{display:flex;flex-direction:column;align-items:stretch;gap:30px}
.hero-copy{position:relative;z-index:1;text-align:right;display:grid;grid-template-columns:1fr auto;align-items:center;gap:3px 24px}
.hero-copy .eyebrow{grid-column:1/-1;width:max-content;font-size:11px;padding:4px 11px;border:1px solid #ffc58d77;background:#ffa74d23;color:#ffdbab}
.hero-copy h1{font-size:clamp(26px,3vw,44px);margin:3px 0 0;line-height:1.45;color:#fff3f3}
.hero-copy h1 span{color:#ffb76d}
.hero-copy p{grid-column:1;max-width:650px;font-size:13px;color:#d2c7df;margin:0}
.hero-copy .ctarow{grid-column:2;grid-row:2/4;align-self:center;margin:0}
.hero-copy .trust{display:none}
.hero-copy .ctarow .ghost{display:none}
.hero-copy .primary{background:linear-gradient(135deg,#ffbd69,#f38a42);color:#321833;box-shadow:0 6px 22px #e9845360}
.product-card.cinematic-studio{position:relative;z-index:1;background:#140e30b3;border:1px solid #ffdbb061;border-radius:31px;overflow:visible;box-shadow:0 32px 90px #07051c80,inset 0 1px #ffffff32}
.cinematic-studio .card-top{background:#ffffff07;min-height:73px;padding:12px 24px;border-radius:30px 30px 0 0;display:flex;justify-content:space-between;border-bottom:1px solid #d4a2ff1b}
.studio-brand{display:flex;gap:12px;align-items:center}
.studio-signal{font-size:28px;color:#ffac62;filter:drop-shadow(0 0 12px #ff924b)}
.studio-brand div{display:flex;flex-direction:column}
.studio-brand small{color:#d1bfdc}
.studio-brand strong{font-size:19px;color:white}
.cinematic-studio .live-pill{color:#ffe0ae;background:#f8ac5b14;border-color:#f8ac5b55;font-size:12px;padding:6px 14px}
.wizard-progress{display:flex;align-items:center;justify-content:center;gap:16px;padding:14px 20px 10px;direction:ltr}
.progress-node{height:8px;flex:1;max-width:110px;border:0;border-radius:8px;background:#9990b366;transition:background .25s}
.progress-node.is-active{background:linear-gradient(90deg,#ffa957,#ffe3a4);box-shadow:0 0 15px #fba453a1}
.progress-node.is-done{background:#c3a6ff}
.stage-layout{display:grid;grid-template-columns:minmax(0,8fr) minmax(235px,2fr);direction:ltr;gap:16px;align-items:stretch;padding:12px 22px 16px;min-height:624px}
.active-stage-host{min-width:0;display:flex}
.wizard-stage{min-width:0;direction:rtl;color:#fdf5ff;border:1px solid #9990c062;border-radius:23px;overflow:hidden;background:linear-gradient(115deg,#292149d9,#2e2559cb);position:relative;transition:border-color .2s,box-shadow .2s}
.active-stage-host>.wizard-stage{width:100%;min-height:596px;background:
 radial-gradient(ellipse at 17% 39%,#f1a56066,transparent 48%),
 radial-gradient(ellipse at 95% 10%,#7f6ac944,transparent 51%),
 linear-gradient(128deg,#563b5ce8,#31234bea 62%,#292049ed);border:1.5px solid #f9ae70;box-shadow:0 0 28px #eea26440,inset 0 1px #ffffff59}
.stage-toggle{color:inherit;display:flex;align-items:center;gap:14px;width:100%;border:0;background:none;text-align:right;padding:20px 17px;min-height:116px}
.active-stage-host .stage-toggle{min-height:90px;padding:22px 26px 10px;cursor:default}
.stage-number{font-size:19px;font-weight:900;min-width:53px;height:55px;border-radius:18px;background:#ffffff15;border:1px solid #e6ceff4a;display:grid;place-items:center;direction:ltr;color:#dac6ff}
.is-active .stage-number{background:linear-gradient(135deg,#ffe2b5,#ffa44f);color:#58282d;border-color:#ffdca3;box-shadow:0 6px 22px #f49c5e88}
.stage-name{display:flex;flex-direction:column;line-height:1.8;min-width:0;flex:1}
.stage-name strong{font-size:clamp(14px,1.5vw,18px);color:#fff;white-space:normal}
.stage-name small{font-size:11px;color:#bdb4d4}
.wizard-symbol{font-size:26px;color:#c9aeff;text-shadow:0 0 18px #c9a1ff9c}
.is-active .wizard-symbol{color:#ffe0aa;text-shadow:0 0 19px #ffba61}
.stage-chevron{font-size:20px;color:#d2c1eb;line-height:1}
.is-active .stage-chevron{transform:rotate(180deg)}
.step-rail{display:flex;flex-direction:column;gap:12px}
.step-rail .wizard-stage{flex:1;min-height:117px}
.step-rail .wizard-stage:hover{border-color:#e1b0ffb8;background:#413363}
.step-rail .stage-body{display:none!important}
.step-rail .stage-toggle{height:100%}
.step-rail .stage-name{gap:3px}
.step-rail .stage-number{width:49px;min-width:49px;height:49px;font-size:16px}
.step-rail .wizard-symbol{font-size:23px}
.stage-body{padding:2px 26px 30px;min-height:440px}
.stage-body[hidden]{display:none!important}
.stage-workspace{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(170px,.8fr);align-items:center;gap:25px;min-height:440px}
.workspace-form{min-width:0;position:relative;z-index:2}
.active-title{font-size:clamp(22px,2.5vw,32px);font-weight:900;line-height:1.5;color:#fff9fd;margin:0 0 4px}
.active-subtitle{font-size:12px;color:#e6d4ea;margin:0 0 20px}
.cinematic-studio .field-title{font-size:12px;margin-bottom:8px;color:#f6e8ff}
.cinematic-studio .tabs{background:#201936a9;border:1px solid #a58bd26b;min-height:47px;margin-bottom:15px}
.cinematic-studio .tab{color:#d3c2e4;font-size:13px}
.cinematic-studio .tab.active{background:linear-gradient(115deg,#ffe1ab,#ffae59);color:#4c2839;box-shadow:0 3px 16px #d88c5885}
.cinematic-studio .topicarea,.cinematic-studio .control{background:#211b3ba8;border:1px solid #d2b7ec79;color:#fff9ff;border-radius:14px;font-size:13px}
.cinematic-studio .topicarea::placeholder,.cinematic-studio .control::placeholder{color:#bcb1c9}
.cinematic-studio .topicarea{min-height:164px;resize:vertical;padding:18px}
.cinematic-studio select.control option{background:#271d40;color:#fff}
.cinematic-studio .topicarea:focus,.cinematic-studio input:focus,.cinematic-studio select:focus{outline:2px solid #ffb76e;outline-offset:1px}
.cinematic-studio .smalllabel,.cinematic-studio .help,.cinematic-studio .fineprint{color:#d9c6df;font-size:11px}
.cinematic-studio .option{background:#241d3eaa;color:#e3d2f0;border-color:#9c82ce66}
.cinematic-studio .option.active{background:#fdb36223;border-color:#ffaf69;color:#ffda9c}
.cinematic-studio .music button{background:#231b3cae;color:#dbd0ea;border-color:#9889c47a}
.cinematic-studio .music button.active{background:#f5b86b2d;color:#ffe0ad;border-color:#ffac64}
.cinematic-studio .duration strong{color:#ffd39b}
.cinematic-studio .duration input{accent-color:#ffad5f}
.cinematic-studio .duration-estimate-note{font-size:11px;line-height:1.7;color:#dbc8e6;margin:7px 0 0;max-width:36ch}
.cinematic-studio .ghost,.cinematic-studio .secondary-action{background:#31274d;border-color:#a78ccb;color:#f6e8ff}
.cinematic-studio .generate,.wizard-primary{background:linear-gradient(125deg,#ffc074,#fca04a);color:#2d1734;box-shadow:0 7px 22px #f2945991;border:1px solid #ffdb9a;border-radius:14px;font-size:14px;font-weight:900;padding:12px 18px}
.cinematic-studio .generate:hover,.wizard-primary:hover{filter:brightness(1.09)}
.wizard-footer{display:flex;gap:12px;align-items:center;margin-top:21px}
.wizard-primary{min-height:52px;flex:1}
.wizard-primary span{margin-right:8px}
.wizard-quiet{background:#ffffff0d;border:1px solid #c3ace06e;color:#f8e8ff;border-radius:14px;padding:12px 20px;min-height:52px;font-weight:750}
.input-footer{display:flex;align-items:center;justify-content:space-between;gap:8px;color:#d1c2db;font-size:10px;margin:4px 0}
.cinematic-studio .preview{background:#241c38ad;border:1px solid #d8bcfa66;color:#f2e5fc}
.cinematic-studio .preview .info,.cinematic-studio .preview p,.cinematic-studio .preview ol{color:#e3d2ed}
.cinematic-studio .preview-actions button{background:#392e4a;color:#ffe0b7;border-color:#e6af8e80}
.cinematic-studio .ai-panel{border-top-color:#ffffff30}
.cinematic-studio #editorBox[hidden],.cinematic-studio #audioBox[hidden]{display:none!important}
.cinematic-studio .script-editor{min-height:300px;resize:vertical}
.cinematic-studio .script-editor[readonly]{background:#271d3edb;color:#efe1f7}
.cinematic-studio .research-box{background:#221936;border-color:#a98bd49e;color:#f5e9fa}
.cinematic-studio .research-box h4,.cinematic-studio .research-box a,.cinematic-studio .research-details>summary{color:#ffce9c}
.cinematic-studio .research-box li,.cinematic-studio #scriptWords{color:#e6d7f1}
.cinematic-studio .studio-actions{grid-template-columns:1.3fr 1fr 1fr}
.cinematic-studio .studio-actions button{min-height:50px}
.cinematic-studio #audioPlayer{width:min(100%,490px)}
.cinematic-studio #downloadMp3{color:#321b31;background:#ffbe75}
.cinematic-studio #audioBox{flex-direction:column;align-items:stretch;padding:24px;border:1px solid #ffcf9e7d;border-radius:17px;background:#ffffff0e}
.cinematic-studio .studio-hint,.studio-disclaimer{font-size:11px;color:#d4c0e4;margin:12px 0}
.cinematic-studio #pilotAccess[hidden]{display:none!important}
.cinematic-studio .preview .notice{color:#d9c3ec;border-color:#a189c06b}
.studio-message{padding:2px 24px 20px;min-height:45px}
.studio-message #aiStatus{margin:0;color:#ffdaae;font-size:12px;line-height:1.7}
.review-heading{display:flex;justify-content:space-between;align-items:center;gap:12px}
.history-popover{position:relative;z-index:6}
.history-popover summary{display:flex;align-items:center;gap:8px;cursor:pointer;list-style:none;border:1px solid #ffce9970;border-radius:12px;padding:8px 12px;color:#ffe6ba;background:#ffc27518;font-size:12px}
.history-popover summary::-webkit-details-marker{display:none}
.history-list{position:absolute;top:calc(100% + 5px);left:0;width:min(310px,75vw);max-height:250px;overflow:auto;background:#231b38;border:1px solid #bb9ddb;border-radius:15px;padding:9px;box-shadow:0 16px 35px #08051e9c}
.history-list button{display:block;width:100%;padding:10px;text-align:right;background:transparent;color:#fff0ff;border:0;border-radius:10px;font-size:11px}
.history-list button:hover{background:#604a78}
.empty-step{background:#ffffff13;border:1px dashed #bda2d5;border-radius:15px;padding:26px;color:#f0dce4;font-size:13px;text-align:center}
.stage-art{position:relative;min-width:0;min-height:365px;display:grid;place-items:center;isolation:isolate;overflow:hidden}
.stage-art::before{content:"";position:absolute;inset:13% 0;border-radius:50%;background:radial-gradient(circle,#ffb85c66,#d7659f30 42%,transparent 67%);filter:blur(12px);z-index:-2}
.stage-art .orbit{position:absolute;width:96%;height:100px;border:2px solid #ffc374ae;box-shadow:0 0 18px #f4ab61c2, inset 0 0 18px #f4ab617e;border-radius:50%;transform:rotate(-18deg);top:48%;left:2%;z-index:-1}
.stage-art .orbit-b{width:75%;height:66px;top:57%;left:11%;transform:rotate(20deg);border-color:#d98bff9e;box-shadow:0 0 18px #ba77f0ac}
.lightbulb-illustration{width:min(82%,225px);height:auto;filter:drop-shadow(0 0 27px #ffb465d9);animation:float-art 5s ease-in-out infinite}
.float-note{position:absolute;top:21%;left:4%;width:108px;height:139px;background:#fff6e9;border-radius:11px;transform:rotate(-16deg);box-shadow:0 18px 35px #27143174;padding:25px 13px;display:flex;flex-direction:column;gap:11px}
.float-note i{height:7px;width:90%;background:#ffcda9;border-radius:8px}.float-note i:nth-child(2){width:72%}.float-note i:nth-child(3){width:84%}
.art-pencil{position:absolute;top:58%;right:2%;font-size:86px;color:#ffd3b3;transform:rotate(-27deg);text-shadow:0 0 23px #ff9566}
.art-spark{position:absolute;top:18%;right:15%;font-size:45px;color:#ffdf95;text-shadow:0 0 22px #ffb365}
.art-mic{font-size:clamp(80px,12vw,158px);line-height:1.3;filter:drop-shadow(0 15px 14px #08051f);animation:float-art 5s ease-in-out infinite}
.sound-bars{font-size:clamp(23px,3.3vw,52px);letter-spacing:2px;color:#ffaf9b;text-shadow:0 0 16px #bc62e9,0 0 24px #ff9e75}
.art-headphone{position:absolute;right:14%;top:23%;font-size:57px;color:#e8b1ff}
.art-paper{width:175px;min-height:240px;padding:29px 22px;background:#fff3e9;border-radius:16px;transform:rotate(9deg);box-shadow:0 20px 38px #08051f8a;font-size:45px;color:#d58a70}
.art-paper span{display:block;font-size:14px;color:#edb1a3;margin:13px 0}
@keyframes float-art{0%,100%{transform:translateY(0)}50%{transform:translateY(-14px)}}
.stage-toggle:focus-visible,.wizard-primary:focus-visible,.wizard-quiet:focus-visible,.progress-node:focus-visible{outline:3px solid #ffd79d;outline-offset:3px}
@media(max-width:1170px){
 .stage-layout{grid-template-columns:minmax(0,8fr) minmax(205px,2fr);padding:10px 13px 15px;gap:12px}
 .stage-body{padding:4px 17px 24px}
 .stage-workspace{grid-template-columns:minmax(0,1fr) minmax(120px,.55fr);gap:8px}
 .stage-art{min-height:300px}.art-mic{font-size:95px}.float-note{transform:rotate(-15deg) scale(.75)}
 .step-rail .stage-toggle{gap:7px;padding:12px}
 .step-rail .wizard-symbol{display:none}
}
@media(max-width:800px){
 .hero{padding:24px 0 55px}
 .hero-copy{display:block;text-align:center}
 .hero-copy .eyebrow{margin:auto}
 .hero-copy h1{font-size:29px}
 .hero-copy p{margin:5px auto 13px}
 .hero-copy .ctarow{justify-content:center;margin:0}
 .stage-layout{display:flex;flex-direction:column;padding:10px;gap:10px;min-height:0}
 .active-stage-host{order:0}
 .active-stage-host>.wizard-stage{min-height:590px}
 .step-rail{order:1;display:grid;grid-template-columns:1fr;gap:9px}
 .step-rail .wizard-stage{min-height:72px}
 .step-rail .stage-toggle{height:auto;min-height:72px;padding:9px 16px}
 .step-rail .wizard-symbol{display:inline}
 .stage-workspace{grid-template-columns:minmax(0,1.1fr) minmax(0,.7fr)}
 .stage-art{min-height:300px}
 .hero .container{padding:0 12px}
}
@media(max-width:590px){
 .topbar .nav{height:62px;gap:7px}
 .topbar .brand{font-size:13px;gap:6px}
 .topbar .brandmark{width:34px;height:34px}
 .topbar .nav-btn{font-size:10px;padding:6px 8px;border-radius:9px}
 .hero-copy h1{font-size:clamp(23px,6vw,31px);line-height:1.5}
 .hero-copy p{font-size:11px;line-height:1.9}
 .hero-copy .ctarow{display:none}
 .cinematic-studio .card-top{padding:9px 12px;min-height:59px}
 .studio-brand strong{font-size:14px}
 .cinematic-studio .live-pill{font-size:10px;padding:4px 9px}
 .wizard-progress{padding:12px 16px 3px;gap:9px}
 .progress-node{height:7px}
 .stage-layout{padding:9px}
 .active-stage-host>.wizard-stage{min-height:580px;border-radius:19px}
 .active-stage-host .stage-toggle{padding:15px 14px 4px;min-height:66px}
 .stage-number{min-width:43px;width:43px;height:44px;font-size:15px;border-radius:13px}
 .stage-name strong{font-size:15px}
 .stage-name small{font-size:10px}
 .stage-body{padding:0 15px 24px}
 .stage-workspace{display:flex;flex-direction:column-reverse;gap:2px;align-items:stretch}
 .workspace-form{width:100%}
 .stage-art{min-height:164px;max-height:170px}
 .lightbulb-illustration{width:115px}
 .float-note{top:8%;left:17%;transform:rotate(-13deg) scale(.56);transform-origin:top left}
 .stage-art .orbit{top:45%;height:56px}
 .stage-art .orbit-b{top:59%;height:41px}
 .art-pencil{font-size:49px;top:45%;right:18%}
 .art-spark{font-size:29px;top:7%}
 .art-mic{font-size:96px}
 .sound-bars{font-size:24px}
 .art-paper{width:85px;min-height:123px;padding:8px 10px;font-size:24px}
 .art-paper span{font-size:7px;margin:8px 0}
 .active-title{font-size:23px;margin-top:5px}
 .active-subtitle{font-size:11px;margin-bottom:14px}
 .cinematic-studio .topicarea{min-height:130px;padding:12px}
 .wizard-footer{flex-direction:column;gap:8px;margin-top:13px}
 .wizard-primary,.wizard-quiet{width:100%}
 .cinematic-studio .two-cols{grid-template-columns:1fr 1fr}
 .cinematic-studio .studio-actions{grid-template-columns:1fr;gap:7px}
 .cinematic-studio .studio-actions button{width:100%}
 .step-rail .wizard-stage{min-height:66px}
 .step-rail .stage-toggle{min-height:66px;padding:8px 10px;gap:8px}
 .step-rail .stage-number{min-width:41px;width:41px;height:42px;font-size:13px}
 .step-rail .wizard-symbol{font-size:20px}
 .studio-message{padding:5px 17px 16px}
 .review-heading .active-title{font-size:21px}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.lightbulb-illustration,.art-mic{animation:none}.wizard-stage,.progress-node{transition:none}}

.cinematic-studio #studioPriceQuote{background:#211a38!important;border-color:#ab87d9!important;color:#ffe2ac!important}
.cinematic-studio .research-details>summary{color:#ffdbb4}
.cinematic-studio .studio-actions .secondary-action{color:#f5e9ff}
.stage-body .fieldgap{max-width:100%}

/* ─── CINEMATIC STUDIO ART DIRECTION v2 ───
   Self-hosted original SVG scene and five stage-specific 3D-style artworks.
   Product UI remains keyboard accessible and uses real podcast controls.
*/
body{background:#f7f5fb}
.hero{
 background-image:
   linear-gradient(180deg,rgba(18,14,29,.18),rgba(13,10,31,.46) 36%,rgba(17,12,35,.62) 78%,rgba(19,12,35,.55)),
   url("/studio-visual/scene.svg");
 background-position:center center, center top;
 background-size:cover,cover;
 background-repeat:no-repeat;
 padding:38px 0 78px;
 min-height:950px;
}
.hero::before{
 background:
  radial-gradient(ellipse at 0% 40%,rgba(255,167,95,.15),transparent 44%),
  radial-gradient(ellipse at 100% 32%,rgba(195,103,251,.21),transparent 51%);
 opacity:1;
}
.hero::after{height:200px;background:linear-gradient(0deg,#16102577,transparent)}
.topbar{background:#191628c9;backdrop-filter:blur(28px);border-color:#ffdfed18}
.topbar .brandmark{background:linear-gradient(145deg,#ffbc88,#d66dc9 55%,#7c69d2)}
.hero-layout{gap:26px}
.hero-copy{padding:0 10px}
.hero-copy h1{font-size:clamp(29px,3.25vw,46px);line-height:1.38;max-width:680px;
 text-shadow:0 5px 26px #170a2a99}
.hero-copy h1 span{color:#ffcb9a;text-shadow:0 0 25px #ff9a6b69}
.hero-copy p{color:#f6e4ef;font-size:13px;max-width:700px;text-shadow:0 2px 14px #150923}
.hero-copy .eyebrow{border-color:#ffe6b6a6;color:#ffe4be;background:#4430498a;
 box-shadow:inset 0 1px #ffffff36}
.hero-copy .primary{border:1px solid #fff0bc;background:linear-gradient(135deg,#ffe1aa,#ffa45c);
 box-shadow:0 10px 37px #ff9b6d75}
.product-card.cinematic-studio{
 background:linear-gradient(120deg,#1b1429d4,#21162eb9 55%,#1d1832c7);
 border:1px solid #f6d9ee8a;
 backdrop-filter:blur(17px) saturate(1.27);
 box-shadow:0 30px 105px #090619bd,inset 0 1px #ffffff59,0 0 50px #ffb77a17;
 border-radius:31px;
}
.product-card.cinematic-studio::before{
 content:"";position:absolute;inset:0;pointer-events:none;border-radius:inherit;
 background:linear-gradient(135deg,#ffcd9836,transparent 18%,transparent 72%,#a77def23);
 z-index:-1;
}
.cinematic-studio .card-top{
 background:linear-gradient(115deg,#ffdfd30d,#a57ed322 45%,#1e143359);
 min-height:75px;border-bottom-color:#ffcbb733;
}
.studio-signal{font-size:31px;color:#ffcd9d;text-shadow:0 0 16px #fcb77f}
.cinematic-studio .live-pill{background:#d88b9e21;border-color:#ffdcb49e;color:#ffe2c6}
.wizard-progress{
 position:relative;gap:8px;padding:18px 28px 18px;max-width:960px;margin:0 auto;
}
.wizard-progress::before{content:"";position:absolute;left:28px;right:28px;top:50%;height:2px;
 background:linear-gradient(90deg,#f4aa89aa,#c087f6aa,#b6ccffaa);
 box-shadow:0 0 13px #d18be874;pointer-events:none}
.progress-node{position:relative;z-index:1;height:9px;max-width:140px;
 background:#5f537d98;border:1px solid #d4b6e78a}
.progress-node.is-active{
 background:linear-gradient(90deg,#ffcf89,#f5acb3,#bd8bff);
 box-shadow:0 0 0 5px #fbab7c19,0 0 19px #ffca88c7;
}
.progress-node.is-done{background:#ffbb9e}
.stage-layout{position:relative;gap:15px;min-height:670px;padding:10px 20px 23px}
.stage-layout::before{content:"";position:absolute;inset:0;pointer-events:none;
 background:radial-gradient(ellipse at 30% 50%,#ffb88112,transparent 56%)}
.wizard-stage{border-color:#f3d1fd5d;
 background:linear-gradient(150deg,rgba(117,81,139,.38),rgba(39,32,71,.54) 51%,rgba(24,23,52,.65));
 box-shadow:inset 0 1px #ffffff29,0 14px 35px #13091a35;
 backdrop-filter:blur(20px);
}
.active-stage-host>.wizard-stage{
 min-height:630px;
 background:
   radial-gradient(ellipse at 26% 48%,#f9b77e32,transparent 55%),
   linear-gradient(127deg,#89697c80 0%,#55365d9c 35%,#3d2956a8 67%,#241c49ac);
 border:1px solid #ffdbbaaf;
 box-shadow:inset 0 2px #ffffff50,inset 0 0 60px #ebacd017,
 0 20px 60px #08051d61,0 0 34px #ffbd9829;
}
.active-stage-host>.wizard-stage::after{
 content:"";position:absolute;pointer-events:none;left:-20%;top:-50%;
 width:70%;height:160%;transform:rotate(22deg);opacity:.24;
 background:linear-gradient(90deg,transparent,#ffe0a618,transparent);
}
.active-stage-host .stage-toggle{padding:20px 25px 7px;min-height:88px;position:relative;z-index:2}
.stage-toggle{transition:background .25s}
.stage-name strong{letter-spacing:-.18px}
.stage-number{background:linear-gradient(145deg,#f6e7fd20,#9c81cd25);
 border-color:#e9cbfb85;box-shadow:inset 0 1px #fff4}
.is-active .stage-number{
 background:linear-gradient(155deg,#fffae7,#ffc487 68%,#e88e69);
 border:1px solid #fffae4;
 box-shadow:0 9px 24px #ff9d6978,0 0 27px #ffc89372,inset 0 2px #ffffffd1;
}
.stage-toggle .wizard-symbol{font-size:27px}
.step-rail{position:relative;gap:12px;padding-left:4px}
.step-rail::before{
 content:"";position:absolute;z-index:0;top:48px;bottom:48px;left:17px;width:4px;
 border-radius:40px;
 background:linear-gradient(180deg,#ffbe9c,#d48bf9,#7cbbf4,#f9b7ab);
 box-shadow:0 0 15px #bf88f3bd,0 0 25px #e28ab177;
}
.step-rail .wizard-stage{
 min-height:126px;position:relative;z-index:1;
 border-radius:22px;
 background:linear-gradient(130deg,#af86ce26,#62488846 45%,#352d6266);
 border:1px solid #d8bbeb72;
}
.step-rail .wizard-stage::after{
 content:"";position:absolute;inset:0;pointer-events:none;
 border-radius:inherit;background:linear-gradient(125deg,#ffffff19,transparent 34%);
}
.step-rail .wizard-stage:hover{transform:translateX(2px);border-color:#ffd5c6bf;
 background:linear-gradient(130deg,#d99bbb44,#69539173,#44386b73)}
.step-rail .stage-toggle{padding:17px 12px;gap:9px}
.step-rail .stage-number{background:#d6bcf11d;border-color:#ecceec70;color:#ecd8ff}
.step-rail .wizard-symbol{color:#ffd0bd;filter:drop-shadow(0 0 7px #e2a8e4)}
.stage-body{padding:0 23px 28px;position:relative;z-index:2}
.stage-workspace{grid-template-columns:minmax(0,1.4fr) minmax(220px,.9fr);gap:8px;min-height:505px}
.workspace-form{
 padding:20px 22px 23px;
 border:1px solid #f8d8f05b;
 border-radius:22px;
 background:linear-gradient(125deg,#17132caa,#30213b9c 67%,#39264e80);
 box-shadow:inset 0 1px #ffffff35,0 17px 40px #17112a5a;
 backdrop-filter:blur(15px);
}
.active-title{font-size:clamp(23px,2.3vw,30px);color:#fff5f5;letter-spacing:-.3px}
.active-subtitle{color:#f0dfe7;font-size:12px}
.cinematic-studio .tabs{background:#120c2b9c;border-color:#f1ceec6e;min-height:50px}
.cinematic-studio .tab.active{background:linear-gradient(140deg,#ffebc3,#ffc38c);color:#512d41}
.cinematic-studio .topicarea,.cinematic-studio .control{
 background:#1a1535d9;border:1px solid #c9a8d59c;
 box-shadow:inset 0 2px 8px #100b1a42;color:#fff1fc
}
.cinematic-studio .topicarea{min-height:208px;line-height:2;padding:20px}
.cinematic-studio .topicarea:focus{border-color:#ffc293;box-shadow:0 0 0 4px #ffe2b31b}
.cinematic-studio .tab,.cinematic-studio .option,.cinematic-studio .music button{transition:background .2s,border-color .2s,transform .2s}
.cinematic-studio .generate,.wizard-primary{
 background:linear-gradient(135deg,#ffe6b3,#ffc187 55%,#ffa569);
 border:1px solid #fff2d0;box-shadow:0 11px 28px #e88d6c64,inset 0 1px #ffffffc7;
 color:#3a2738;
}
.cinematic-studio .generate:hover,.wizard-primary:hover{transform:translateY(-1px)}
.wizard-quiet{border-color:#e4bee59c;background:#ffffff13;color:#fbe9ff}
.wizard-footer{margin-top:20px}
.stage-art{position:relative;min-height:440px;isolation:isolate;overflow:visible}
.stage-art::before{
 content:"";position:absolute;inset:12% -10% 5%;background:
 radial-gradient(ellipse,#fbd59a48,#dc8bc528 55%,transparent 70%);
 filter:blur(13px);z-index:-1;
}
.art-atmosphere{position:absolute;inset:10%;border-radius:50%;
 background:radial-gradient(ellipse,#faaf8285,#b778bf30 51%,transparent 73%);
 filter:blur(23px);z-index:-1}
.studio-visual{
 display:block;width:min(100%,510px);max-height:510px;
 object-fit:contain;filter:drop-shadow(0 22px 24px #140b29a0);
 animation:cinematicFloat 6.7s ease-in-out infinite;
}
.art-float-small{position:absolute;pointer-events:none;color:#ffe4b0;
 text-shadow:0 0 16px #ffca82,0 0 31px #d193fa;font-size:36px}
.art-float-a{left:11%;top:20%;animation:cinematicTwinkle 4.3s ease-in-out infinite}
.art-float-b{right:5%;bottom:20%;font-size:26px;animation:cinematicTwinkle 5.2s ease-in-out infinite reverse}
@keyframes cinematicFloat{0%,100%{transform:translateY(0)}50%{transform:translateY(-12px)}}
@keyframes cinematicTwinkle{0%,100%{opacity:.52;transform:scale(.88)}50%{opacity:1;transform:scale(1.12)}}
.cinematic-studio .script-editor{min-height:350px}
.cinematic-studio .preview{background:#261735d6;border-color:#ffd0db66}
.cinematic-studio .studio-actions .secondary-action{border-color:#dbbfeca1;background:#5840687a}
.cinematic-studio .smalllabel{color:#ffedea}
.cinematic-studio #scriptHistory summary{border-color:#ffd9b0a6}
@media(max-width:1170px){
 .stage-layout{min-height:620px}
 .stage-workspace{grid-template-columns:minmax(0,1.4fr) minmax(150px,.7fr);gap:3px}
 .workspace-form{padding:17px 16px}
 .stage-body{padding:0 17px 24px}
 .stage-art{min-height:370px}
 .studio-visual{max-height:410px}
 .step-rail .stage-toggle{padding:12px 9px}
}
@media(max-width:800px){
 .hero{padding:25px 0 55px;background-position:center,57% top}
 .stage-layout{min-height:0}
 .active-stage-host>.wizard-stage{min-height:0}
 .stage-workspace{grid-template-columns:minmax(0,1.4fr) minmax(140px,.72fr)}
 .step-rail::before{left:24px}
 .step-rail .wizard-stage{min-height:77px}
 .stage-art{min-height:340px}
 .studio-visual{max-height:380px}
}
@media(max-width:590px){
 .hero{background-size:auto 1050px,auto 1050px;background-repeat:no-repeat;
   background-color:#241b32;background-position:center top,center top}
 .hero::before{opacity:.5}
 .hero-layout{gap:18px}
 .hero-copy{padding:0}
 .hero-copy h1{font-size:clamp(22px,6vw,29px)}
 .hero-copy p{font-size:11px;color:#f3dfeb}
 .product-card.cinematic-studio{border-radius:22px}
 .active-stage-host>.wizard-stage{min-height:0}
 .active-stage-host .stage-toggle{padding:12px 12px 7px}
 .stage-body{padding:0 10px 15px}
 .stage-workspace{display:flex;flex-direction:column-reverse;align-items:stretch;gap:0}
 .workspace-form{padding:14px 13px 19px;border-radius:16px}
 .stage-art{min-height:175px;max-height:190px;margin:0 auto;width:100%}
 .studio-visual{width:100%;height:195px;max-height:195px;object-fit:contain}
 .art-atmosphere{inset:15% 20%}
 .art-float-a{top:3%}.art-float-b{bottom:8%}
 .active-title{font-size:22px}
 .cinematic-studio .topicarea{min-height:145px;padding:13px}
 .step-rail .wizard-stage{min-height:66px}
 .step-rail .stage-toggle{min-height:64px}
 .step-rail::before{left:18px}
 .wizard-progress{padding:11px 15px}
 .studio-message{padding:8px 13px 18px}
}
@media(prefers-reduced-motion:reduce){
 .studio-visual,.art-float-small{animation:none}
 .step-rail .wizard-stage:hover{transform:none}
}
@media(max-width:590px){.stage-layout{padding:9px}.stage-body{padding:0 10px 15px}}

/* Licensed photographic recording room under the interactive glass UI.
   Original photographer: dar der / Unsplash; see docs for source and license. */
.hero{
 background-image:
  linear-gradient(180deg,rgba(19,14,35,.40) 0%,rgba(21,13,39,.61) 39%,rgba(17,10,31,.75) 76%,rgba(18,13,35,.65)),
  radial-gradient(ellipse at 12% 21%,rgba(255,147,92,.23),transparent 60%),
  url("/studio-visual/photo.jpg");
 background-position:center,center,center 33%;
 background-size:cover,cover,cover;
 background-repeat:no-repeat;
}
@media(max-width:590px){
 .hero{background-size:cover,cover,auto 1100px;
 background-position:center,center,50% 0%}
}

/* Continuous light ribbon: visually connects all five podcast stages. */
.sonic-ribbon{position:absolute;left:1%;bottom:9%;width:98%;height:155px;
 pointer-events:none;z-index:5;opacity:.65;mix-blend-mode:screen;overflow:visible}
@media(max-width:800px){.sonic-ribbon{height:98px;bottom:14%;opacity:.25}}
@media(max-width:590px){.sonic-ribbon{display:none}}

/* Keep the dominant stage large on wide desktop screens too. */
@media(min-width:801px){.hero .container{max-width:2560px;padding:0 clamp(16px,2.6vw,55px)}}

/* A medium-size tablet must not sacrifice the 70% active-stage target. */
@media(min-width:801px) and (max-width:1120px){
 .stage-layout{display:flex;flex-direction:column;padding:11px;min-height:0}
 .active-stage-host{order:0;width:100%}
 .active-stage-host>.wizard-stage{min-height:580px}
 .step-rail{order:1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 .step-rail::before{display:none}
 .step-rail .wizard-stage{min-height:92px}
 .step-rail .stage-toggle{height:auto;min-height:92px;padding:12px 16px}
 .step-rail .stage-name strong{font-size:16px}
}

/* =====================================================================
   HIGH FIDELITY V4 — premium object and geometry detail refinements
   The structural five-step wizard / functional controls remain untouched.
   ===================================================================== */
:root{
 --polish-pearl:#fce3ca;
 --polish-champagne:#f1bc91;
 --polish-lilac:#d2b0fa;
 --polish-ink:#20192e;
}
.product-card.cinematic-studio{
 border-radius:43px;
 border:1px solid #f8d8e8a1;
 background:linear-gradient(130deg,#3a263bba,#241730b9 48%,#1c1b38ca);
 box-shadow:
  0 42px 110px #0e071eb8,
  0 0 0 1px #fff1e521,
  inset 0 1px 1px #fffbf9a6,
  inset 0 -1px 1px #e5bbff4a,
  0 0 72px #fbb0aa18;
}
.product-card.cinematic-studio::before{
 border-radius:inherit;
 background:linear-gradient(145deg,#ffffff2a 0,transparent 18%,transparent 78%,#a58fea1d);
}
.cinematic-studio .card-top{
 border-radius:42px 42px 0 0;
 min-height:85px;
 padding:16px 29px;
 background:linear-gradient(125deg,#ebc1ca1e,#ffffff11 20%,#a48af50b 63%,#1d15354b);
 border-bottom:1px solid #f7d4e550;
}
.cinematic-studio .live-pill{
 border-radius:30px;
 border:1px solid #ffcfa090;
 box-shadow:inset 0 1px #fff9dc44,0 4px 25px #e6a77d19;
 background:linear-gradient(110deg,#f9cda61c,#da9bc221);
}
.stage-layout{gap:18px;min-height:690px;padding:17px 24px 26px}
.active-stage-host>.wizard-stage{
 min-height:648px;
 border-radius:46px;
 background:
  radial-gradient(ellipse at 15% 30%,#ffbd9865,transparent 54%),
  radial-gradient(ellipse at 83% 77%,#9681da25,transparent 62%),
  linear-gradient(120deg,#805d7eb5 0%,#422b55c7 42%,#29204bc7 100%);
 border:1.25px solid #fee4d2cf;
 box-shadow:
  0 25px 65px #10092278,
  0 0 37px #fac1a22b,
  inset 0 2px 1px #fff4eb88,
  inset 0 0 75px #ecc7ff18,
  inset 0 -2px 3px #ad8dc348;
}
.active-stage-host>.wizard-stage::before{
 content:"";position:absolute;pointer-events:none;
 inset:3px;border-radius:43px;
 border:1px solid #ffece92c;
 background:linear-gradient(130deg,#fffdf30d,transparent 29%,#b5a4ef0b 70%,transparent);
}
.active-stage-host .stage-toggle{
 min-height:100px;
 padding:24px 28px 10px;
}
.active-stage-host .stage-name strong{font-size:19px;font-weight:850}
.active-stage-host .stage-name small{font-size:11px;opacity:.84}
.stage-toggle .wizard-symbol{
 min-width:46px;width:46px;height:46px;
 border-radius:17px;display:grid;place-items:center;
 color:#efc7e4;
 background:linear-gradient(145deg,#fff8ed28,#a681d226 60%,#241b4c55);
 border:1px solid #f5d6ed57;
 box-shadow:inset 0 1px 1px #fff8f271,0 7px 19px #160b2e61;
 text-shadow:none;filter:none;
}
.stage-line-icon{
 display:block;width:31px;height:31px;overflow:visible;
 filter:drop-shadow(0 2px 4px #24152d65);
}
.is-active .stage-toggle .wizard-symbol{
 color:#ffebd6;
 border-color:#fff1d8a0;
 background:linear-gradient(130deg,#ffd7c657,#efb5d321 60%,#a587e71e);
 box-shadow:inset 0 2px 2px #fff5e97a,0 8px 25px #f8b38642;
}
.stage-number{
 border-radius:19px;min-width:58px;width:58px;height:58px;
 background:linear-gradient(145deg,#eed9f521,#b294c221);
 border:1px solid #f7dbff77;
 box-shadow:inset 0 2px #fffaf459,0 9px 25px #130c3252;
 font-size:18px;
}
.is-active .stage-number{
 background:linear-gradient(145deg,#fffdf5,#ffe7ca 50%,#ffae80 100%);
 color:#613740;border:1px solid #ffffffed;
 box-shadow:inset 0 2px #ffffff,0 9px 22px #e7a08470,0 0 28px #ffd6af7c;
}
.stage-chevron{color:#f1dce9aa;font-size:19px}
.step-rail{gap:13px}
.step-rail .wizard-stage{
 border-radius:34px;
 min-height:133px;
 border:1px solid #d9c6ed7b;
 background:linear-gradient(135deg,#ad8bdb39,#5c4a7c4a 45%,#2e285863);
 box-shadow:
  inset 0 1px #ffffff5b,
  inset 0 -1px #ffffff0a,
  0 9px 28px #130c2549,
  0 0 18px #ca90e812;
 backdrop-filter:blur(24px) saturate(1.2);
}
.step-rail .wizard-stage:nth-child(1){background:linear-gradient(127deg,#f5bbba2c,#5e497c62 65%,#3330607a)}
.step-rail .wizard-stage:nth-child(2){background:linear-gradient(127deg,#c9aaf02a,#59477565 67%,#3430617a)}
.step-rail .wizard-stage:nth-child(3){background:linear-gradient(127deg,#a79de92a,#514b8165 67%,#30335e7a)}
.step-rail .wizard-stage:nth-child(4){background:linear-gradient(127deg,#97b1f32a,#454b8165 67%,#283a637a)}
.step-rail .wizard-stage:hover{
 transform:translateY(-2px);
 border-color:#ffdbcfcd;
 box-shadow:inset 0 1px #ffffff7e,0 13px 35px #13092166,0 0 27px #e6b0db40;
}
.step-rail .stage-toggle{padding:15px 12px;gap:8px}
.step-rail .stage-number{
 width:48px;min-width:48px;height:49px;border-radius:16px;font-size:15px;
}
.step-rail .stage-name strong{font-size:clamp(12px,1.2vw,17px);font-weight:800}
.step-rail .stage-name small{font-size:10px;color:#d6c7e3}
.step-rail .stage-toggle .wizard-symbol{
 width:38px;min-width:38px;height:39px;border-radius:14px;
 color:#f5d3ec;
}
.step-rail .stage-line-icon{width:27px;height:27px}
.step-rail .stage-chevron{display:none}
.stage-body{padding:2px 24px 30px}
.stage-workspace{grid-template-columns:minmax(0,1.42fr) minmax(210px,.9fr);gap:19px;min-height:510px}
.workspace-form{
 border-radius:31px;
 padding:25px 25px 29px;
 border:1px solid #ffe0ed72;
 background:
  radial-gradient(ellipse at 90% 0%,#7a64972c,transparent 48%),
  linear-gradient(132deg,#21172dd9,#261b3fcf 59%,#2e2345d6);
 box-shadow:
  inset 0 2px 2px #ffffff36,
  inset 0 -1px 1px #e9d2ff24,
  0 18px 38px #190e285e,
  0 0 0 1px #fff0f50a;
 backdrop-filter:blur(19px);
}
.active-title{font-size:clamp(23px,2.3vw,31px);font-weight:900;letter-spacing:-.5px}
.active-subtitle{font-size:12px;line-height:1.9}
.cinematic-studio .tabs{
 padding:5px;border-radius:20px;
 border-color:#f1cde585;
 background:linear-gradient(140deg,#17112ecd,#2f2145cf);
 box-shadow:inset 0 2px 5px #0e0a1b5e;
}
.cinematic-studio .tab{border-radius:15px}
.cinematic-studio .tab.active{
 background:linear-gradient(145deg,#fff4d9,#ffd3b3 58%,#f5a582);
 box-shadow:inset 0 1px #ffffffbf,0 5px 14px #ffaf8385;
}
/* A calmer first step: an article/text source is recommended, not mandatory. */
.cinematic-studio #modeArticle{
 display:flex;
 align-items:center;
 justify-content:center;
 flex-wrap:wrap;
 column-gap:7px;
 row-gap:3px;
}
.cinematic-studio .source-recommendation{
 display:inline-block;
 white-space:nowrap;
 background:#fff8e5;
 color:#6e3b4b;
 border-radius:99px;
 padding:2px 8px;
 font-size:10px;
 line-height:1.55;
 font-weight:800;
}
.cinematic-studio .tab:not(.active) .source-recommendation{
 background:#463657;
 color:#e9d9f8;
}
.cinematic-studio .source-input-help{
 color:#d6c9df;
 font-size:11px;
 line-height:1.8;
 margin:8px 3px 10px;
}
.cinematic-studio .article-import-row{
 display:flex;
 gap:10px;
 align-items:center;
 flex-wrap:wrap;
 margin:9px 3px 2px;
}
.cinematic-studio .article-import-row[hidden]{display:none}
.cinematic-studio .article-sections-row{
 margin:10px 3px 5px;
 padding:10px;
 border:1px solid #d8b5e465;
 border-radius:12px;
 background:#322744a0;
}
.cinematic-studio .article-sections-row[hidden]{display:none}
.cinematic-studio .article-sections-row .control{
 width:100%;
 margin-top:5px;
}
.cinematic-studio .article-sections-row .source-input-help{margin:5px 0 0}
.cinematic-studio .article-import-button{
 border:1px solid #d8b5e48c;
 border-radius:12px;
 background:#3e3059;
 color:#f7eafa;
 padding:7px 12px;
 font-size:11px;
 font-weight:750;
}
.cinematic-studio .article-import-button:hover{background:#56436f}
.cinematic-studio .article-import-button:disabled{opacity:.55;cursor:wait}
.cinematic-studio .article-import-status{
 flex:1;
 min-width:min(220px,100%);
 font-size:11px;
 color:#f7deb6;
 line-height:1.75;
 overflow-wrap:anywhere;
}


.cinematic-studio .topicarea,
.cinematic-studio .control{
 border-radius:20px;
 border:1px solid #e1bbe7a8;
 background:linear-gradient(145deg,#1b1630f2,#251b3ff0);
 box-shadow:inset 0 2px 10px #07081f9a,inset 0 1px #ffffff11,0 0 0 1px #eabff40d;
}
.cinematic-studio .topicarea:focus,
.cinematic-studio .control:focus{
 border-color:#ffe1b7;outline:2px solid #ffc48d9e;outline-offset:1px;
 box-shadow:0 0 0 5px #f0bb9922,inset 0 2px 8px #100b2244;
}
.cinematic-studio .generate,.wizard-primary{
 border-radius:19px;
 background:linear-gradient(145deg,#fff0d0,#ffd2ad 40%,#ffb581);
 box-shadow:inset 0 2px 1px #ffffffc9,0 10px 26px #f2a3796e,0 0 17px #ffd3a73a;
 border:1px solid #fff1d4;
 transition:filter .2s,transform .22s,box-shadow .22s;
}
.wizard-primary:hover,.cinematic-studio .generate:hover{
 box-shadow:inset 0 2px #ffffff,0 15px 36px #f4a4828a;
}
.wizard-quiet,.cinematic-studio .ghost,.cinematic-studio .secondary-action{
 border-radius:18px;
 background:linear-gradient(135deg,#ffffff18,#8172b225);
 border:1px solid #e6c7ed91;
 box-shadow:inset 0 1px #ffffff42;
}
.cinematic-studio .option,.cinematic-studio .music button{border-radius:15px}
.cinematic-studio #audioBox,.cinematic-studio .empty-step{border-radius:23px}
.cinematic-studio #scriptHistory summary{border-radius:16px}
.studio-visual{
 width:min(106%,520px);
 max-height:510px;
 filter:drop-shadow(0 19px 23px #12091f96) saturate(1.13);
}
.stage-art{
 min-height:435px;
 border-radius:50%;
 filter:drop-shadow(0 3px 10px #b36ba427);
}
.stage-art::before{
 inset:13% 0;
 background:radial-gradient(ellipse,#ffbf9366,#df9bbb24 47%,transparent 69%);
 filter:blur(24px);
}
.art-atmosphere{
 background:radial-gradient(ellipse,#f8c0a25c,#9f88e12a 50%,transparent 72%);
 filter:blur(29px);
}
.stage-art-script::before,.stage-art-review::before{
 background:radial-gradient(ellipse,#dcb0f366,#9694e435 44%,transparent 71%);
}
.stage-art-audio::before{
 background:radial-gradient(ellipse,#9fcaf14d,#9f88e137 44%,transparent 70%);
}
.art-float-small{font-weight:300;text-shadow:0 0 14px #ffd7aa,0 0 30px #a674ddc4}
.sonic-ribbon{opacity:.5;filter:blur(.4px);bottom:7%;mix-blend-mode:screen}
.cinematic-studio .progress-node{
 height:7px;border-radius:999px;
 background:linear-gradient(90deg,#70638988,#9f8db07a);
 border:1px solid #e3c7ef45;
}
.cinematic-studio .progress-node.is-active{
 background:linear-gradient(90deg,#fff0d4,#ffd0b8,#cdaeff);
 box-shadow:0 0 0 4px #ffe3bd1a,0 0 23px #ffc89f98;
}
@media(max-width:1280px){
 .stage-layout{gap:11px;padding-inline:13px}
 .stage-body{padding-inline:15px}
 .stage-workspace{gap:9px;grid-template-columns:minmax(0,1.4fr) minmax(140px,.7fr)}
 .workspace-form{padding:19px}
 .step-rail .stage-toggle .wizard-symbol{width:34px;min-width:34px;height:35px}
 .step-rail .stage-number{min-width:41px;width:41px}
 .step-rail .stage-toggle{padding-inline:10px;gap:6px}
}
@media(max-width:1120px){
 .step-rail .stage-toggle .wizard-symbol{width:38px;min-width:38px;height:39px}
 .step-rail .stage-name strong{font-size:15px}
}
@media(max-width:800px){
 .product-card.cinematic-studio{border-radius:30px}
 .active-stage-host>.wizard-stage{min-height:0;border-radius:35px}
 .active-stage-host .stage-toggle{min-height:80px;padding:18px}
 .stage-body{padding:0 14px 18px}
 .stage-workspace{grid-template-columns:minmax(0,1.32fr) minmax(125px,.68fr)}
 .stage-art{min-height:315px}
 .step-rail .wizard-stage{min-height:76px;border-radius:24px}
 .step-rail .stage-toggle{min-height:76px;padding:10px 14px}
 .workspace-form{border-radius:23px}
}
@media(max-width:590px){
 .product-card.cinematic-studio{border-radius:26px}
 .cinematic-studio .card-top{border-radius:25px 25px 0 0;padding:11px 13px;min-height:65px}
 .stage-layout{padding:8px;gap:9px}
 .active-stage-host>.wizard-stage{border-radius:29px}
 .active-stage-host>.wizard-stage::before{border-radius:27px}
 .active-stage-host .stage-toggle{min-height:69px;padding:12px 13px 4px;gap:9px}
 .active-stage-host .stage-number{width:47px;min-width:47px;height:47px;border-radius:16px;font-size:15px}
 .active-stage-host .stage-toggle .wizard-symbol{width:40px;min-width:40px;height:41px;border-radius:14px}
 .stage-line-icon{width:26px;height:26px}
 .stage-body{padding:0 10px 12px}
 .stage-workspace{display:flex;flex-direction:column-reverse;gap:0}
 .stage-art{min-height:183px;max-height:192px;margin:auto}
 .studio-visual{width:100%;height:192px;max-height:192px;object-fit:contain}
 .workspace-form{padding:16px 13px 18px;border-radius:23px}
 .active-title{font-size:22px}
 .cinematic-studio .tabs{border-radius:16px}
 .cinematic-studio .tab{border-radius:12px}
 .cinematic-studio .topicarea{min-height:150px;border-radius:16px}
 .wizard-primary,.wizard-quiet{width:100%;border-radius:16px}
 .step-rail{gap:9px}
 .step-rail .wizard-stage{min-height:70px;border-radius:23px}
 .step-rail .stage-toggle{min-height:70px;padding:10px 13px;gap:8px}
 .step-rail .stage-number{min-width:43px;width:43px;height:45px;border-radius:15px}
 .step-rail .stage-toggle .wizard-symbol{width:38px;min-width:38px;height:39px}
 .step-rail .stage-name strong{font-size:14px}
 .step-rail .stage-name small{font-size:10px}
}
@media(prefers-reduced-motion:reduce){
 .studio-visual{animation:none}
 .step-rail .wizard-stage:hover,.cinematic-studio .generate:hover{transform:none}
}

/* FINAL-APPROVED UI — use the client's actual isolated lightbulb artwork.
   All other stage illustrations, rounded surfaces and working inputs stay unchanged. */
.stage-art-idea .studio-bulb-cutout{
 position:absolute;z-index:3;
 top:18%;left:28%;width:42%;height:auto;
 max-height:67%;object-fit:contain;
 filter:drop-shadow(0 0 18px #ffd59a9e) drop-shadow(0 19px 14px #1b0d2780);
 animation:cinematicFloat 6.7s ease-in-out infinite;
 pointer-events:none;user-select:none;
}
@media(max-width:1170px){
 .stage-art-idea .studio-bulb-cutout{top:21%;left:29%;width:42%;max-height:61%}
}
@media(max-width:590px){
 .stage-art-idea .studio-bulb-cutout{top:8%;left:37%;width:26%;max-height:76%}
}
@media(prefers-reduced-motion:reduce){
 .stage-art-idea .studio-bulb-cutout{animation:none}
}

/* Voice recommendations: a small contextual control within the APPROVED
   voice-selection area, no new wizard step or changes to the stage artwork. */
.voice-label-row{display:flex;justify-content:space-between;align-items:center;
 gap:8px;min-height:29px;margin-bottom:5px}
.voice-label-row .smalllabel{margin:0}
.voice-tip-button{display:inline-flex;align-items:center;justify-content:center;gap:4px;
 flex:none;border:1px solid #f4cfab96;border-radius:999px;
 background:linear-gradient(120deg,#fff7e91c,#f1b48c19);
 color:#ffddba;font-size:11px;font-weight:700;line-height:1.3;font-family:inherit;
 padding:5px 9px;cursor:pointer;box-shadow:inset 0 1px #fff5ee41;
 transition:background .16s,border-color .16s}
.voice-tip-button:hover,.voice-tip-button[aria-expanded="true"]{
 border-color:#ffdfc5;background:#ffdfb12e;color:#fff3dc}
.voice-tip-button svg{flex:none}
.voice-tip-button:focus-visible,.voice-tip-close:focus-visible{
 outline:2px solid #ffcd9a;outline-offset:3px}
.voice-tip-panel{margin-top:9px;background:linear-gradient(135deg,#382c4c,#2d2546);
 border:1px solid #d6b3dc9c;border-radius:16px;padding:12px 13px;
 box-shadow:0 7px 22px #1a102a42,inset 0 1px #fff2e32d;
 color:#f6e8fa;text-align:right}
.voice-tip-panel[hidden]{display:none!important}
.voice-tip-heading{display:flex;justify-content:space-between;align-items:center;
 gap:8px;margin-bottom:5px}
.voice-tip-heading strong{color:#ffdfbe;font-size:11px;font-weight:800}
.voice-tip-close{flex:none;width:24px;height:24px;border:1px solid #e4c3e95b;
 border-radius:9px;background:#fff5ef13;color:#ffefee;font-size:19px;line-height:1;
 cursor:pointer;display:grid;place-items:center}
.voice-tip-close:hover{background:#ffebe62a}
.voice-tip-panel p{margin:0;color:#f4e0f3;font-size:11px;line-height:2}
@media(max-width:590px){
 .voice-tip-panel{padding:11px;border-radius:14px}
 .voice-tip-button{font-size:11px;padding:6px 9px;min-height:31px}
}
@media(prefers-reduced-motion:reduce){.voice-tip-button{transition:none}}

/* Optional ending selector: compact within the existing accordion, RTL-safe. */
.closing-option{margin-top:14px;border:1px solid #ded8ec;border-radius:13px;background:#faf8ff}
.closing-option>summary{list-style:none;cursor:pointer;padding:10px 13px;font-size:12px;font-weight:760;color:#554575;display:flex;align-items:center;justify-content:space-between}
.closing-option>summary::-webkit-details-marker{display:none}
.closing-option>summary::before{content:"⌄";margin-left:9px;font-size:16px}
.closing-option[open]>summary::before{content:"⌃"}
.closing-option>summary span{font-size:10px;font-weight:550;color:#89809b}
.closing-option-body{padding:0 13px 13px}
.closing-option .closing-textarea{min-height:72px;resize:vertical;line-height:1.85}
.closing-option .help{margin:6px 0 0;color:#7e738d;font-size:11px;line-height:1.8}
.closing-option [hidden]{display:none!important}
.closing-option>summary:focus-visible{outline:2px solid #a89afa;outline-offset:2px}

/* C51 — compact, optional post-output satisfaction check inside stage five. */
.inline-quality{margin:18px 0 6px;padding:16px;border:1px solid #ddd4ed;border-radius:17px;background:#faf8ff;min-width:0}
.inline-quality[hidden]{display:none}
.inline-quality>summary{display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:13px;font-weight:850;color:#5643a0;cursor:pointer}
.inline-quality>summary span{font-size:23px;color:#ac87cd;line-height:1}
.inline-quality form{display:grid;gap:12px;padding-top:15px}
.inline-quality form>p:first-child{font-size:11px;line-height:1.9;color:#706886;margin:0}
.inline-quality-ratings{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.inline-quality-ratings label{display:flex;flex-direction:column;gap:5px;font-size:11px;color:#554c6a;font-weight:750;min-width:0}
.inline-quality-ratings select,.inline-quality textarea{width:100%;box-sizing:border-box;border-radius:10px;border:1px solid #e0d7ec;padding:9px;font:inherit;background:white;color:#302741}
.inline-quality form>label:not(.inline-quality-consent){font-size:11px;font-weight:750;color:#554c6a}
.inline-quality-consent{display:flex;gap:8px;align-items:flex-start;font-size:10px;color:#685e78;line-height:2}
.inline-quality-consent input{flex:none;margin-top:6px;accent-color:#6248c8}
.inline-quality button{border:0;border-radius:11px;padding:11px 15px;background:#6145ce;color:#fff;font:inherit;font-size:12px;font-weight:800;cursor:pointer}
.inline-quality button:disabled{opacity:.55}
#inlineQualityStatus{font-size:11px;color:#6045a3;line-height:1.8;margin:0;min-height:1.5em}
@media(max-width:480px){.inline-quality-ratings{grid-template-columns:1fr}.inline-quality{padding:13px}}

/* C68: two short beta feedback choices alongside three existing ratings. */
.inline-quality #inlineIssue,.inline-quality #inlineReuse{width:100%;box-sizing:border-box;border:1px solid #e0d7ec;border-radius:10px;padding:9px;background:white;color:#302741;font:inherit}

/* C73 — compact-fit desktop wizard. Preserve ALL computed font sizes and
   the approved V5 graphic language; reclaim vertical space only. */
@media (min-width:1121px){
 .hero{min-height:0;padding-top:25px;padding-bottom:36px}
 .hero-layout{gap:17px}
 .cinematic-studio .card-top{min-height:58px;padding:7px 21px}
 .wizard-progress{padding:7px 18px 5px;gap:14px}
 .stage-layout{min-height:0;gap:12px;padding:9px 15px 13px}
 .active-stage-host>.wizard-stage{min-height:0;border-radius:31px}
 .active-stage-host>.wizard-stage::before{border-radius:28px}
 .active-stage-host .stage-toggle{min-height:65px;padding:9px 17px 5px}
 .active-stage-host .stage-number{height:46px;width:46px;min-width:46px;border-radius:15px}
 .active-stage-host .stage-toggle .wizard-symbol{height:38px;width:38px;min-width:38px;border-radius:13px}
 .active-stage-host .stage-line-icon{height:27px;width:27px}
 .stage-body{min-height:0;padding:0 14px 13px}
 .stage-workspace{min-height:0;gap:11px;align-items:center}
 .workspace-form{padding:14px 16px 16px;border-radius:23px}
 .active-subtitle{margin-bottom:8px}
 .cinematic-studio .field-title{margin-bottom:5px}
 .cinematic-studio .tabs{min-height:43px;margin-bottom:8px;padding:4px;border-radius:15px}
 .cinematic-studio .topicarea{min-height:132px;padding:12px 15px;border-radius:15px}
 .cinematic-studio .source-input-help{margin:4px 3px 6px}
 .cinematic-studio .article-import-row{margin:5px 3px 0;gap:7px}
 .cinematic-studio .article-sections-row{margin:5px 3px 3px;padding:7px}
 .cinematic-studio .input-footer{margin:3px 0}
 .cinematic-studio .fieldgap{margin-top:10px}
 .wizard-footer{margin-top:10px;gap:10px}
 .wizard-primary,.wizard-quiet{min-height:46px;padding-block:9px;border-radius:14px}
 .stage-art{min-height:280px}
 .studio-visual{max-height:330px}
 .step-rail{gap:10px;justify-content:center}
 .step-rail .wizard-stage{flex:0 0 auto;min-height:92px;border-radius:24px}
 .step-rail .stage-toggle{height:auto;min-height:92px;padding:9px 11px}
 .step-rail .stage-number{width:43px;min-width:43px;height:43px;border-radius:14px}
 .step-rail .stage-toggle .wizard-symbol{width:35px;min-width:35px;height:35px;border-radius:12px}
 .step-rail .stage-line-icon{width:25px;height:25px}
 .cinematic-studio .script-editor{min-height:230px}
 .cinematic-studio .studio-actions button{min-height:46px}
}
/* Further remove non-content whitespace on short laptop displays, without
   reducing text sizes or disabling controls. Textareas remain user-resizable. */
@media (min-width:1121px) and (max-height:820px){
 .cinematic-studio .card-top{min-height:53px;padding-block:5px}
 .wizard-progress{padding-block:5px 3px}
 .stage-layout{padding-block:7px 9px}
 .active-stage-host .stage-toggle{min-height:59px;padding-block:6px 3px}
 .stage-body{padding-bottom:9px}
 .workspace-form{padding-block:11px 13px}
 .active-subtitle{margin-bottom:5px}
 .cinematic-studio .topicarea{min-height:115px}
 .stage-art{min-height:245px}
 .studio-visual{max-height:285px}
 .wizard-footer{margin-top:7px}
 .step-rail .wizard-stage,.step-rail .stage-toggle{min-height:82px}
 .step-rail{gap:8px}
}
/* On mobile use normal document scrolling rather than shrinking typography;
   tighten gaps while preserving comfortably sized touch targets. */
@media (max-width:800px){
 .hero{min-height:0}
 .hero-layout{gap:14px}
 .cinematic-studio .card-top{min-height:61px}
 .stage-layout{min-height:0}
 .stage-workspace{min-height:0}
 .stage-body{min-height:0}
 .wizard-footer{margin-top:13px}
 .stage-rail .wizard-stage{min-height:68px}
}
@media (max-width:590px){
 .cinematic-studio .card-top{min-height:57px}
 .active-stage-host .stage-toggle{min-height:62px}
 .workspace-form{padding-block:12px 14px}
 .stage-art{min-height:140px;max-height:158px}
 .studio-visual{height:158px;max-height:158px}
 .wizard-footer{margin-top:10px}
 .cinematic-studio .topicarea{min-height:132px}
}

/* C73 stage 2: the two-speaker configuration is genuinely denser than the
   topic step. Distribute its existing controls over two readable columns;
   keep all settings, labels, optional voice help and studio illustration. */
@media(min-width:1121px){
 #stage2 .stage-workspace{grid-template-columns:minmax(0,1fr) minmax(128px,.22fr);gap:8px;align-items:start}
 #stage2 .workspace-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));
  column-gap:15px;row-gap:8px;align-content:start;padding:14px 16px}
 #stage2 .workspace-form>.active-title,
 #stage2 .workspace-form>.active-subtitle{grid-column:1/-1}
 #stage2 .workspace-form>.fieldgap{margin-top:0}
 #stage2 .workspace-form>.studio-hint,
 #stage2 .workspace-form>.help{margin-block:0}
 #stage2 .workspace-form>.closing-option{margin-top:0}
 #stage2 .workspace-form .voice-identity{margin:0}
 #stage2 .stage-art{min-height:185px;align-self:center}
 #stage2 .studio-visual{max-height:200px;width:100%}
 #stage2 .generate{min-height:46px}
}
@media(min-width:1121px) and (max-height:820px){
 #stage2 .workspace-form{padding:11px 13px;row-gap:6px}
 #stage2 .stage-art{min-height:150px}
 #stage2 .studio-visual{max-height:170px}
}

/* On dense two-speaker settings, keep the studio and step rail within the
   viewport while letting the unusually long settings list scroll *inside*
   the active stage. A persistent action remains within reach. */
@media(min-width:1121px){
 #stage2 .stage-body{
  min-height:0;max-height:calc(100dvh - 268px);
  overflow-y:auto;overflow-x:hidden;
  scrollbar-width:thin;scrollbar-color:#bca2dc #ffffff09;
  overscroll-behavior:contain;
  padding-bottom:18px;
 }
 #stage2 .workspace-form{padding-bottom:72px}
 #stage2 #generate{
  position:sticky;bottom:8px;z-index:4;
  box-shadow:0 8px 25px #1a0d3178,0 0 0 3px #f6d3a82a;
 }
}

/* At 768px laptop height, including browser zoom, fit the whole core topic
   editor card without forcing the user to scroll the document. */
@media(min-width:1121px) and (max-height:780px){
 .cinematic-studio .card-top{min-height:49px}
 .wizard-progress{padding-block:3px 2px}
 .stage-layout{padding-block:5px 7px}
 .active-stage-host .stage-toggle{min-height:55px;padding-block:5px 2px}
 .stage-body{padding-bottom:7px}
 .workspace-form{padding-block:9px 11px}
 .cinematic-studio .topicarea{min-height:99px}
 .wizard-footer{margin-top:5px}
 .stage-art{min-height:220px}
 .studio-visual{max-height:260px}
}

/* C74 — semantic two-column voice journey: right-to-left decision sequence.
   Keep approved V5 font sizes, premium graphic and C73 internal scroll. */
#stage2 .speaker-voice-flow,
#stage2 .speaker-mode-flow,
#stage2 .speaker-extras-flow{min-width:0}
#stage2 .speaker-voice-flow,
#stage2 .speaker-mode-flow{display:flex;flex-direction:column;gap:10px}
#stage2 .speaker-voice-flow>.fieldgap,
#stage2 .speaker-mode-flow>.fieldgap,
#stage2 .speaker-extras-flow>.fieldgap{margin-top:0}
#stage2 .speaker-voice-flow>.two-cols,
#stage2 .speaker-mode-flow>.two-cols{margin-top:0}
#stage2 .speaker-mode-flow>.voice-identity{margin:0;padding:14px 15px;border-radius:18px}
#stage2 .speaker-mode-flow>.voice-identity .voice-identity-title{margin-bottom:10px}
#stage2 .speaker-mode-flow>.voice-identity .voice-identity-card{padding:10px 9px;gap:7px}
#stage2 .speaker-mode-flow>.voice-identity .voice-identity-icon{width:33px;height:33px;border-radius:11px}
#stage2 .speaker-mode-flow .voice-identity-choices{gap:7px}
#stage2 .speaker-mode-flow .voice-clone-panel{max-width:100%;min-width:0}
#stage2 .speaker-mode-flow>.fieldgap:last-child{margin-bottom:0}
#stage2 .speaker-extras-flow{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px 14px}
#stage2 .speaker-extras-flow>.fieldgap:nth-child(-n+2){grid-column:1/-1}
#stage2 .speaker-extras-flow>.closing-option{grid-column:1/-1}
#stage2 .speaker-extras-flow>.studio-hint,
#stage2 .speaker-extras-flow>.help{margin:0}
@media(min-width:1121px){
 #stage2 .workspace-form>.speaker-voice-flow{grid-column:1;grid-row:3}
 #stage2 .workspace-form>.speaker-mode-flow{grid-column:2;grid-row:3}
 #stage2 .workspace-form>.speaker-extras-flow{grid-column:1/-1;grid-row:4}
 #stage2 .workspace-form>#generate{grid-column:1/-1;grid-row:5;min-width:0;margin-top:2px}
 #stage2 .workspace-form>.studio-disclaimer{grid-column:1/-1;grid-row:6}
}
@media(max-width:1120px){
 #stage2 .speaker-voice-flow,
 #stage2 .speaker-mode-flow{margin-bottom:12px}
 #stage2 .speaker-mode-flow>.voice-identity{padding:14px}
}
@media(max-width:590px){
 #stage2 .speaker-extras-flow{grid-template-columns:minmax(0,1fr)}
 #stage2 .speaker-extras-flow>.fieldgap:nth-child(-n+2),
 #stage2 .speaker-extras-flow>.closing-option{grid-column:1}
 #stage2 .speaker-mode-flow>.voice-identity .voice-identity-card{min-height:54px}
}

/* C75: keep step-two advanced choices discoverable; no floating action
   may overlay music, duration, tone or ending. */
#stage2 .stage-two-flow-cue{
 display:flex;align-items:center;justify-content:space-between;gap:12px;
 border:1px solid #e9c2aa70;border-radius:13px;padding:8px 12px;
 background:linear-gradient(105deg,#ffe3be17,#d6b2ed16);color:#ffebd5;
 line-height:1.8;
}
#stage2 .stage-two-flow-cue strong{color:#ffdeb2}
#stage2 #stageTwoGoOptions{
 border:1px solid #f4c393a0;background:#f1bc8c24;color:#ffe1b5;
 border-radius:11px;padding:9px 13px;min-height:42px;cursor:pointer;
 font:inherit;font-weight:800;white-space:nowrap;
}
#stage2 #stageTwoGoOptions:hover,
#stage2 #stageTwoGoOptions:focus-visible{background:#eec0913d;outline-offset:3px}
#stage2 .speaker-extras-flow{scroll-margin-top:18px}
#stage2 #generate{
 position:static !important;
 bottom:auto !important;
 z-index:auto !important;
 box-shadow:0 9px 22px #edab8970 !important;
}
#stage2 .stage-body{scrollbar-width:thin}
#stage2 .voice-source-picker{margin-top:7px}
#stage2 .voice-source-note:not([hidden]){margin:5px 0;padding:7px 9px;line-height:1.85;
 border-radius:10px;border:1px solid #e0bbdd82;background:#3b29549c;color:#f2dbec}
@media(min-width:1121px){
 #stage2 .workspace-form>.stage-two-flow-cue{grid-column:1/-1;grid-row:3}
 #stage2 .workspace-form>.speaker-voice-flow{grid-column:1;grid-row:4}
 #stage2 .workspace-form>.speaker-mode-flow{grid-column:2;grid-row:4}
 #stage2 .workspace-form>.speaker-extras-flow{grid-column:1/-1;grid-row:5}
 #stage2 .workspace-form>#generate{grid-column:1/-1;grid-row:6}
 #stage2 .workspace-form>.studio-disclaimer{grid-column:1/-1;grid-row:7}
 #stage2 .workspace-form{padding-bottom:18px}
}
@media(max-width:590px){
 #stage2 .stage-two-flow-cue{flex-direction:column;align-items:stretch}
 #stage2 #stageTwoGoOptions{width:100%}
}

/* C76: six focused steps. First choose voices, then style the episode.
   Keep V5 font sizes, RTL grid and same deep-studio design. */
@media(min-width:1121px){
 #stage2 .workspace-form>.speaker-voice-flow{grid-column:1;grid-row:3}
 #stage2 .workspace-form>.speaker-mode-flow{grid-column:2;grid-row:3}
 #stage2 .workspace-form>.stage-two-next{grid-column:1/-1;grid-row:4;margin-top:9px}
 #stage2 .workspace-form{padding-bottom:18px}
 #stage2 .stage-body{max-height:calc(100dvh - 268px);overflow:auto;scrollbar-width:thin}
 #stage3 .stage-body{max-height:calc(100dvh - 268px);overflow-y:auto;overflow-x:hidden;
   scrollbar-width:thin;overscroll-behavior:contain}
 #stage3 .workspace-form{padding:16px 19px 20px}
 #stage3 .speaker-extras-flow{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 16px}
 #stage3 .speaker-extras-flow>.fieldgap{margin-top:0;min-width:0}
 #stage3 .speaker-extras-flow>.fieldgap:first-child{grid-column:1/-1}
 #stage3 .speaker-extras-flow>.two-cols{grid-column:1/-1;min-width:0}
 #stage3 .speaker-extras-flow>.closing-option{grid-column:1/-1}
 #stage3 .speaker-extras-flow>.studio-hint,
 #stage3 .speaker-extras-flow>.help{margin:0}
 #stage3 .stage-three-sponsor{margin-top:10px}
 #stage3 .stage-three-footer{display:flex;gap:12px;align-items:stretch;margin-top:14px}
 #stage3 .stage-three-footer .wizard-quiet{flex:0 0 auto;min-height:46px}
 #stage3 .stage-three-footer #generate{margin:0;flex:1;min-width:0;position:static;
   box-shadow:0 9px 22px #edab8970}
 #stage3 .stage-art{min-height:260px}
 #stage3 .studio-visual{max-height:320px}
}
#stage2 .stage-two-next{display:flex}
#stage2 .stage-two-next>.wizard-primary{flex:1}
#stage3 .stage-three-footer{display:flex;gap:10px;margin-top:13px}
#stage3 .stage-three-footer #generate{margin:0;position:static}
#stage3 .stage-three-sponsor .smalllabel{color:#efd9e9}
@media(max-width:1120px){
 #stage2 .stage-two-next{margin-top:14px}
 #stage3 .stage-three-footer{flex-wrap:wrap}
 #stage3 .stage-three-footer>.wizard-quiet{flex:0 0 auto}
 #stage3 .stage-three-footer>#generate{flex:1}
}
@media(max-width:590px){
 #stage3 .speaker-extras-flow{display:grid;grid-template-columns:1fr;gap:10px}
 #stage3 .stage-three-footer{flex-direction:column}
 #stage3 .stage-three-footer>.wizard-quiet{order:2}
 #stage3 .stage-three-footer>#generate{order:1;min-height:48px}
}

/* C77 — clear, independent speaker cards. No font-size reductions. */
@media(min-width:1121px){
 #stage2 .stage-workspace{grid-template-columns:minmax(0,1fr) minmax(120px,.18fr);gap:10px}
 #stage2 .workspace-form{padding:13px 18px 16px;row-gap:8px}
 #stage2 .workspace-form>.speaker-voice-flow,
 #stage2 .workspace-form>.speaker-mode-flow{grid-column:1/-1;grid-row:auto}
 #stage2 .workspace-form>.speaker-voice-flow{grid-row:3}
 #stage2 .workspace-form>.speaker-mode-flow{grid-row:4}
 #stage2 .workspace-form>.stage-two-next{grid-column:1/-1;grid-row:5;margin-top:6px}
 #stage2 .stage-body{max-height:calc(100dvh - 252px)}
 #stage2 .stage-art{min-height:160px;align-self:center}
 #stage2 .studio-visual{max-height:215px}
}
#stage2 .speaker-voice-flow{display:flex;flex-direction:column;gap:10px}
#stage2 .speaker-voice-flow>.fieldgap{margin:0}
#stage2 .voice-narrator-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-items:stretch}
#stage2 .voice-narrator-card{display:flex;flex-direction:column;gap:9px;min-width:0;
 padding:13px 15px;border:1px solid #cbb3e077;border-radius:18px;
 background:linear-gradient(135deg,#ffffff0d,#c5a0de0a);box-shadow:inset 0 1px #ffffff12}
#stage2 .voice-narrator-head{display:flex;align-items:center;justify-content:space-between;
 gap:8px;padding-bottom:5px;border-bottom:1px solid #e5c8e02e}
#stage2 .voice-narrator-head strong{font-weight:850;color:#ffe3c0}
#stage2 .voice-narrator-head span{width:30px;height:30px;flex:none;border-radius:11px;
 border:1px solid #e3c5e84e;display:grid;place-items:center;color:#f5dbfd;background:#ffffff10}
#stage2 .voice-narrator-card .voice-source-picker{margin:0}
#stage2 .voice-narrator-card .voice-source-picker select{min-height:40px}
#stage2 .voice-preset-options{display:flex;flex-direction:column;gap:6px}
#stage2 .voice-preset-options .voice-label-row{margin-bottom:0}
#stage2 .voice-preset-options .control{min-height:40px}
#stage2 .voice-narrator-name{margin-top:auto;min-width:0}
#stage2 .voice-narrator-name .smalllabel{margin-bottom:4px}
#stage2 .voice-narrator-preview button{width:100%;min-height:42px}
#stage2 .voice-narrator-card[data-mode="personal"] .voice-preset-options,
#stage2 .voice-narrator-card[data-mode="personal"] .voice-narrator-preview{display:none!important}
#stage2 .voice-narrator-card[data-mode="personal"] .voice-source-note{font-weight:650}
#stage2 .voice-personal-setup:not([hidden]){display:block;width:100%;min-height:43px;
 border:1px solid #ffc898;background:#e6ad8433;border-radius:12px;
 color:#ffead1;padding:9px 13px;font:inherit;font-weight:850;cursor:pointer}
#stage2 .voice-narrator-card[hidden]{display:none!important}
#stage2 .voice-preview-shelf{display:block;margin:0}
#stage2 .voice-preview-shelf>.fieldgap{margin:0}
#stage2 .voice-preview-shelf .field-title{display:none}
#stage2 .voice-preview-shelf .two-cols{display:none}
#stage2 .voice-preview-shelf audio{max-width:100%}
#stage2 .voice-preview-shelf #voicePreviewStatus{margin:3px 0;color:#ead9ef}
#stage2 .stage-two-next{margin-top:6px}
@media(max-width:800px){
 #stage2 .voice-narrator-grid{grid-template-columns:1fr}
 #stage2 .workspace-form{padding:13px 14px}
 #stage2 .voice-narrator-card{padding:12px 14px}
}
@media(min-width:801px) and (max-width:1120px){
 #stage2 .voice-narrator-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
/* Personal voice wizard is intentionally opened by a per-speaker button.
   Do not let consent/recording forms push other speaker settings off screen. */
.voice-clone-backdrop:not([hidden]){position:fixed;inset:0;z-index:1005;
 display:block;background:#080613dc;backdrop-filter:blur(5px)}
.voice-clone-backdrop[hidden],.voice-identity[hidden]{display:none!important}
body.voice-modal-open{overflow:hidden}
body>.voice-identity:not([hidden]){display:block;position:fixed;z-index:1006;
 top:50%;left:50%;transform:translate(-50%,-50%);
 width:min(740px,calc(100vw - 28px));max-height:calc(100dvh - 28px);
 overflow-y:auto;overscroll-behavior:contain;padding:17px 21px;
 margin:0;background:linear-gradient(140deg,#2c1e41,#231a38);
 border:1px solid #ebc1e1a3;border-radius:20px;box-shadow:0 24px 85px #060310cf}
body>.voice-identity .voice-identity-choices{display:none!important}
body>.voice-identity .voice-identity-title{margin-bottom:12px}
body>.voice-identity .voice-identity-title h3{line-height:1.55}
body>.voice-identity .voice-clone-panel{padding:0;margin:0;border:0;
 box-shadow:none;background:transparent}
@media(max-width:590px){
 body>.voice-identity:not([hidden]){width:calc(100vw - 16px);max-height:calc(100dvh - 16px);
 padding:12px 14px;border-radius:14px}
 body>.voice-identity .voice-identity-title h3{line-height:1.6}
}

/* Remove repeated title inside the form; the stage header already names it. */
#stage2 .workspace-form>.active-title,
#stage2 .workspace-form>.active-subtitle{display:none}
#stage2 .voice-narrator-card .voice-label-row{margin:0}
#stage2 .voice-narrator-card .smalllabel{margin-bottom:3px}
#stage2 .voice-narrator-card .voice-source-note:not([hidden]){padding:5px 8px;margin:4px 0}
@media(min-width:1121px){
 #stage2 .speaker-voice-flow>.fieldgap:first-child{display:grid;
 grid-template-columns:auto minmax(0,1fr);align-items:center;gap:12px}
 #stage2 .speaker-voice-flow>.fieldgap:first-child .field-title{margin:0}
 #stage2 .voice-narrator-card{padding:10px 12px;gap:6px}
 #stage2 .voice-narrator-grid{gap:10px}
 #stage2 .voice-narrator-head{padding-bottom:2px}
 #stage2 .voice-narrator-head span{height:26px;width:26px}
}
