:root{color-scheme:dark;font:16px/1.5 system-ui,sans-serif;background:#080810;color:#f8f8ff;--muted:#a8a7bf;--edge:#302a4b;--accent:#b29aff}
*{box-sizing:border-box}[hidden]{display:none!important}body{margin:0}
.topbar{height:76px;padding:0 max(5vw,20px);display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #252137;background:#0b0a14}
.brand{display:flex;align-items:center;gap:.55rem;color:inherit;text-decoration:none;font-size:1.13rem;font-weight:850;letter-spacing:.14em}
.brand-ai{color:#baa5ff;font-size:.73rem;letter-spacing:.04em;border:1px solid #5a467f;padding:.02rem .28rem;border-radius:5px}
.mark{display:inline-block;width:18px;height:18px;border-radius:5px;background:linear-gradient(135deg,#dad2ff,#8350ff 60%,#48d7f8);transform:rotate(45deg);box-shadow:0 0 20px #974cff78;margin-right:.3rem}
#account,#guest-actions{display:flex;align-items:center;gap:.8rem}
main{width:min(1380px,92%);margin:0 auto}
.hero{min-height:clamp(480px,57vw,650px);display:flex;align-items:center;position:relative;isolation:isolate;margin-top:1.25rem;border-radius:28px;overflow:hidden;border:1px solid #2d2650;background:radial-gradient(ellipse at 72% 43%,#5532c7 0,#1a2264 33%,#101027 65%,#0e0c18 85%)}
.hero::before,.hero::after{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none}
.hero::before{background:url(/hero.webp) center right/cover no-repeat}
.hero::after{background:linear-gradient(90deg,#100c20 0%,#100c20eb 24%,#110d2090 46%,transparent 75%)}
.hero-content{padding:clamp(1.4rem,5.4vw,5.3rem);max-width:800px}
h1,h2,p{margin:0}h1{font-size:clamp(3rem,7.1vw,7.2rem);font-weight:850;line-height:.99;letter-spacing:-.075em}
h1 em{font-style:normal;color:#c5adff;background:linear-gradient(100deg,#cfb8ff,#9d9fff 65%,#86e5ff);background-clip:text;-webkit-text-fill-color:transparent}
.hero p{margin:1.55rem 0 1.8rem;color:#e0d9f0;font-size:clamp(1rem,1.65vw,1.25rem);max-width:29rem}
button,input,textarea{font:inherit}button{cursor:pointer;border:1px solid transparent;border-radius:12px;font-weight:700;padding:.65rem .95rem;color:inherit;background:transparent;min-height:42px}
.primary{background:#bba8ff;color:#140d27;border-color:#d0c2ff;box-shadow:0 0 24px #9467ff35}.primary:hover{background:#d8ccff}
.quiet:hover,.text-button:hover{background:#221a3b}.text-button{color:var(--accent);padding-inline:.3rem}
button:disabled{opacity:.5;cursor:wait}:focus-visible{outline:2px solid #9bddff;outline-offset:4px}
.modes{display:grid;grid-template-columns:repeat(3,1fr);gap:1rem;margin:1rem 0 2.5rem}
.modes article,.panel,.tool-list{background:#111020;border:1px solid var(--edge);border-radius:18px;padding:1.3rem}
.mode-icon{color:#c3acff;font-size:1.7rem}.modes h2,.panel h2,#history h2{font-size:1.25rem;margin:.2rem 0 .45rem}.modes p,#history p{color:var(--muted)}
dialog{width:min(450px,calc(100% - 2rem));padding:1.5rem;border:1px solid #624b97;border-radius:22px;color:inherit;background:#151124;box-shadow:0 20px 100px #0009}dialog::backdrop{background:#070511cf;backdrop-filter:blur(6px)}
.dialog-head{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-bottom:1rem}.dialog-head h2{font-size:1.45rem}.dialog-head button{font-size:1.5rem;line-height:1}
form{display:grid;gap:1rem}form button{justify-self:start}label{display:grid;gap:.35rem;font-weight:650}input,textarea{width:100%;border:1px solid #514567;background:#0d0b18;color:inherit;padding:.68rem .8rem;border-radius:10px}textarea{resize:vertical}
#device-note{color:var(--muted);font-size:.85rem}#auth-mode{margin-top:.75rem}#notice,#auth-notice{color:#ffc2db}#notice:not(:empty),#auth-notice:not(:empty){margin-top:.6rem}
.studio-heading{padding:2.6rem 0 1.4rem}.studio-heading h1{font-size:clamp(2.5rem,5vw,4.7rem)}.studio-layout{display:grid;grid-template-columns:minmax(155px,230px) minmax(0,1fr);gap:1rem;align-items:start}
.tool-list{display:grid;gap:.55rem;padding:.75rem}.tool-list button{text-align:left;padding:.55rem;border-radius:8px}.tool-list [aria-current]{background:#342653;color:#e5d8ff}
select{font:inherit;width:100%;border:1px solid #514567;background:#0d0b18;color:inherit;padding:.68rem .8rem;border-radius:10px}
.job video,.job audio{width:100%;margin:.7rem 0}#chat-answer{white-space:pre-wrap}
#referrals label{margin:.8rem 0}#google-login{display:block;margin-top:.75rem}
.credit{font-size:.88rem;padding:.35rem .6rem;background:#262043;border-radius:10px;color:#e4d9ff}
#history{padding:1.35rem 0 2rem}#jobs{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr));gap:1rem}.job{overflow-wrap:anywhere}.job img{display:block;max-width:100%;border-radius:8px;margin:.7rem 0}.job p{margin:.35rem 0}a{color:#c4aeff}
@media(max-width:640px){.topbar{height:66px;padding-inline:12px}.brand{font-size:.9rem;gap:.3rem}#guest-actions,#account{gap:.2rem}.topbar button{padding-inline:.55rem;font-size:.85rem}.hero{min-height:480px;align-items:end}.hero::before{background-position:65% center}.hero::after{background:linear-gradient(0deg,#100c20 4%,#100c20a0 55%,transparent 100%)}.modes,.studio-layout{grid-template-columns:1fr}.tool-list{grid-template-columns:repeat(3,minmax(0,1fr))}.tool-list span{display:block;font-size:.8rem}.tool-list small{display:block}}
