.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.nav-inner{gap:1.5rem}
.studio-brand{display:flex;align-items:center;gap:.55rem;margin-right:auto;color:#fff;font-size:.84rem;font-weight:650}
.studio-brand span:first-child{font-weight:800}
.studio-separator{color:rgba(255,255,255,.42)}
.studio-back{color:rgba(255,255,255,.78);font-size:.8rem;font-weight:600}
.studio-back:hover{color:#fff}
.studio-back span{margin-left:.2rem}
.studio-hero{padding:128px 0 36px;background:var(--navy)}
.studio-hero-inner{display:grid;grid-template-columns:minmax(0,1fr) minmax(290px,.74fr);gap:clamp(2rem,6vw,5.5rem);align-items:center;max-width:var(--container);margin:0 auto;padding:0 5%}
.studio-hero h1{color:#fff;font-size:clamp(2.2rem,4.2vw,3.3rem);font-weight:720;letter-spacing:-.045em;margin:0 0 .7rem}
.studio-hero .lead{max-width:600px;margin:0;color:rgba(255,255,255,.78);font-size:.96rem;line-height:1.7}
.studio-runtime{padding:1.15rem 1.25rem;background:rgba(255,255,255,.055);border:1px solid rgba(255,255,255,.18);border-radius:6px;color:#fff}
.runtime-row{display:flex;align-items:flex-start;gap:.75rem}
.runtime-row>div{display:grid;gap:.18rem}
.runtime-row strong{font-size:.84rem;font-weight:650}
.runtime-row p{margin:0;color:rgba(255,255,255,.66);font-size:.75rem;line-height:1.5}
.runtime-light{display:inline-block;width:8px;height:8px;flex:0 0 8px;margin-top:.35rem;border-radius:50%;background:#98a3b3;box-shadow:0 0 0 3px rgba(152,163,179,.16)}
.runtime-light.runtime-light-ok{background:#54c893;box-shadow:0 0 0 3px rgba(84,200,147,.16)}
.runtime-light.runtime-light-no{background:#e68e92;box-shadow:0 0 0 3px rgba(230,142,146,.16)}
.runtime-light.runtime-light-pending{background:#d4a7bd;box-shadow:0 0 0 3px rgba(212,167,189,.15)}
.runtime-divider{height:1px;margin:.95rem 0;background:rgba(255,255,255,.13)}
.studio-workspace{min-height:520px;padding:48px 0 56px;background:var(--bg-alt)}
.studio-grid{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(285px,.75fr);gap:1rem;max-width:var(--container);margin:0 auto;padding:0 5%}
.generator-card,.output-card{min-width:0;background:#fff;border:1px solid var(--border);border-radius:6px;box-shadow:0 8px 24px rgba(17,24,39,.035)}
.generator-card{padding:1.6rem}
.generator-heading,.output-head{display:flex;justify-content:space-between;align-items:center;gap:1rem;margin-bottom:1.25rem}
.generator-heading .eyebrow,.output-head .eyebrow{margin-bottom:.25rem}
.generator-heading h2,.output-head h2{font-size:1.24rem;font-weight:680;letter-spacing:-.025em}
.local-chip{display:inline-flex;align-items:center;gap:.35rem;padding:.4rem .62rem;border:1px solid var(--border);border-radius:4px;color:var(--mid);font-size:.69rem;font-weight:600;white-space:nowrap}
.local-chip span{color:var(--maroon);font-size:.88rem}
#speech-text{display:block;width:100%;min-height:154px;resize:vertical;padding:.9rem 1rem;border:1px solid #cbd2dc;border-radius:4px;background:#fff;color:var(--ink);font:inherit;font-size:.9rem;line-height:1.65}
#speech-text::placeholder{color:#8a93a1}
#speech-text:focus,.setting select:focus{outline:2px solid rgba(120,0,60,.2);outline-offset:1px;border-color:var(--maroon)}
.text-meta{display:flex;justify-content:space-between;gap:1rem;margin-top:.42rem;color:var(--muted);font-size:.7rem}
.settings-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.75rem;margin-top:1.15rem}
.setting{display:grid;gap:.38rem;min-width:0}
.setting label{color:var(--mid);font-size:.73rem;font-weight:650}
.setting select{width:100%;min-width:0;height:42px;padding:0 .65rem;border:1px solid #cbd2dc;border-radius:4px;background:#fff;color:var(--ink);font:inherit;font-size:.77rem}
.generator-actions{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-top:1.35rem;padding-top:1rem;border-top:1px solid var(--border)}
.generator-actions p{max-width:330px;margin:0;color:var(--muted);font-size:.72rem;line-height:1.55}
.generate-btn{gap:.5rem;padding:.68rem 1rem;font-size:.78rem;white-space:nowrap}
.generate-btn:disabled{background:#e6e8ec;color:#808895;cursor:not-allowed}
.output-card{display:flex;flex-direction:column;padding:1.5rem}
.output-head{margin-bottom:0}
.output-format{padding:.25rem .4rem;border:1px solid var(--border);border-radius:3px;color:var(--muted);font-size:.64rem;font-weight:700;letter-spacing:.06em}
.output-empty{display:flex;flex:1;min-height:250px;flex-direction:column;align-items:center;justify-content:center;padding:1.5rem 0;text-align:center}
.output-empty p{margin:.95rem 0 .2rem;color:var(--mid);font-size:.82rem;font-weight:650}
.output-empty>span{max-width:230px;color:var(--muted);font-size:.7rem;line-height:1.5}
.waveform{display:flex;height:42px;align-items:center;gap:4px;color:#c5cbd4}
.waveform i{display:block;width:3px;height:var(--bar,14px);border-radius:3px;background:currentColor}
.waveform i:nth-child(3n){--bar:28px}.waveform i:nth-child(4n){--bar:20px}.waveform i:nth-child(5n){--bar:34px}.waveform i:nth-child(7n){--bar:10px}
.output-footer{display:flex;justify-content:space-between;gap:.75rem;padding-top:.85rem;border-top:1px solid var(--border);color:var(--muted);font-size:.65rem}
.output-footer>span:first-child{display:flex;align-items:center;gap:.4rem}
.output-footer .runtime-light{width:7px;height:7px;flex-basis:7px;margin:0}
#audio-output{width:100%;margin-top:auto}
.workspace-note{max-width:var(--container);margin:1rem auto 0;padding:0 5%;color:var(--muted);font-size:.7rem}
.studio-footer{display:flex;align-items:center;justify-content:space-between;gap:1.25rem;padding:1.15rem max(5%,calc((100vw - var(--container))/2 + 5%));background:var(--navy);color:rgba(255,255,255,.7);font-size:.72rem}
.studio-footer .footer-brand{display:flex;align-items:center;gap:.55rem;color:#fff;font-weight:700}
.studio-footer .footer-brand img{width:25px;height:25px;border:1px solid rgba(255,255,255,.24);border-radius:4px}
.studio-footer>a:last-child{color:rgba(255,255,255,.8);text-decoration:underline;text-underline-offset:3px}
@media(max-width:960px){.studio-hero-inner{grid-template-columns:1fr;gap:1.5rem}.studio-runtime{max-width:600px}.studio-grid{grid-template-columns:1fr}.output-empty{min-height:190px}}
@media(max-width:640px){.nav-inner{gap:.7rem}.studio-brand{font-size:.74rem}.studio-back{font-size:.72rem;white-space:nowrap}.studio-hero{padding:116px 0 30px}.studio-hero-inner,.studio-grid{padding-left:5%;padding-right:5%}.studio-workspace{padding:32px 0 42px}.generator-card,.output-card{padding:1.15rem}.generator-heading{align-items:flex-start;flex-direction:column;gap:.55rem}.settings-grid{grid-template-columns:1fr;gap:.7rem}.setting select{height:44px}.generator-actions{align-items:stretch;flex-direction:column}.generator-actions p{max-width:none}.generate-btn{width:100%}.output-footer{font-size:.61rem}.studio-footer{flex-wrap:wrap;padding:1rem 5%;font-size:.67rem}}
@media(max-width:380px){.studio-brand{display:none}.studio-back{margin-left:auto}}
