@font-face{font-family:Geist;src:url(geist.woff2) format("woff2");font-weight:100 900;font-display:swap}
@font-face{font-family:"Space Grotesk";src:url(space-grotesk.woff2) format("woff2");font-weight:300 700;font-display:swap}
:root {
    --page:#100b19; --surface:#20152d; --surface-soft:#191020; --surface-raised:#2c1e3c;
    --border:#43334f; --border-strong:#715487; --text:#f6f0ff; --muted:#c2afce;
    --accent:#cdaffb; --accent-strong:#e0d0fc; --accent-soft:#38244e; --accent-ink:#241037; --focus:#e0d0fc;
    font-family:Geist,"Segoe UI",sans-serif;
}
:root[data-theme="light"] {--page:#f6f1fb;--surface:#fff;--surface-soft:#f8f4fb;--surface-raised:#eee4f6;--accent:#623098;--accent-strong:#50247e;--accent-soft:#e9dcf6;--accent-ink:#fff;--border:#d5c6df;--text:#251833;--muted:#624e6e}
body {background:linear-gradient(90deg,rgba(16,6,33,.45),rgba(16,6,33,.78)),url("../images/sc-galaxy.webp") center / cover fixed,#100621}
h1,h2,h3,.auth-brand,.mini-panel {font-family:"Space Grotesk",Geist,sans-serif}
body:not(.voice-connected):has(#authView:not(.hidden)) {padding:0}
#app:has(#authView:not(.hidden)) {width:min(100%,1100px); min-height:100dvh; overflow:visible; background:transparent; border:0; box-shadow:none}
#authView:not(.hidden) {
    max-width:none; min-height:100dvh; color:#f6f0ff;
    display:grid; grid-template-columns:minmax(0,1.1fr) minmax(300px,.85fr); align-content: center;
    grid-template-areas:"brand brand" "intro pair" "links links"; align-items:center;
    column-gap:clamp(2rem,7vw,6rem);row-gap:clamp(2rem,6vh,4rem);padding:clamp(1.4rem,5vw,4rem);
}
.auth-brand {grid-area:brand;letter-spacing:-.025em}
.auth-brand .voice-logo {width:44px;height:40px;object-fit:contain;border-radius:0}
.auth-language-select {margin-left:auto}
.auth-intro {grid-area:intro;margin:0}
.auth-intro .wordmark {display:block;width:min(100%,300px);height:auto;margin:0 0 1.6rem}
.auth-intro .eyebrow {color:#cdaffb}
.auth-intro h1 {font-size:clamp(2.9rem,5.2vw,4.7rem);line-height:.99;letter-spacing:-.067em;max-width:12ch}
.auth-intro .voice-directions {max-width:34ch;color:#e0d0ed;font-size:1.04rem;margin:1.1rem 0 0}
.voice-directions code {font:inherit;font-weight:700;color:white}
#pairingCard,#returningCard {grid-area:pair;align-self:center;margin:0;padding:clamp(1.3rem,3vw,2.3rem);border-radius:1.45rem;background:var(--surface);color:var(--text);border:1px solid var(--border-strong);box-shadow:0 26px 60px #09061170}
#pairingForm {gap:.95rem}
#pairingForm label {font-family:"Space Grotesk",sans-serif;font-size:1.45rem;letter-spacing:-.045em}
#pairingCode {min-width:0;width:100%;background:var(--surface-soft);font-variant-numeric:tabular-nums;text-align:center;border-radius:.75rem}
#pairingCode::placeholder {color:var(--muted);opacity:.6}
#pairButton,#enableMicButton {border-radius:.75rem;min-height:48px;background:linear-gradient(115deg,var(--accent-strong),var(--accent));border:0;color:var(--accent-ink)}
.auth-links {grid-area:links;justify-content:flex-start;margin:0;padding:0;border-top:1px solid #ffffff29;gap:1.4rem}
.auth-links a {color:#e0d0fc}
.voice-connected .app-shell {background:var(--page);border-color:var(--border)}
.mic-button:not(.muted) {box-shadow:0 8px 40px #a35ff329}
.sc-mini-launch {margin:.75rem auto;text-align:center;max-width:28rem}
.sc-mini-launch button {width:auto;min-height:42px;border-radius:999px;padding:.55rem 1.3rem}
.sc-mini-launch p {margin:.45rem .3rem;color:var(--muted);font-size:.84rem;line-height:1.45}
#miniCompact[hidden],.mini-panel [hidden] {display:none!important}
body.sc-compact {height:100dvh;overflow:auto;padding:0}
body.sc-compact #app {display:none}
#miniCompact {min-height:100dvh;padding:12px;display:grid;align-content:start;justify-items:center}
body.sc-pip {margin:0;min-width:0;background:#170d25;color:#f6f0ff}
.mini-panel {box-sizing:border-box;width:min(100%,400px);padding:14px 16px;border-radius:16px;color:#f6f0ff;background:#21142f;border:1px solid #665078;display:grid;gap:10px;line-height:1.28;font-size:14px;color-scheme:dark}
.sc-pip .mini-panel {width:100%;min-height:100dvh;border:0;border-radius:0;align-content:center}
.mini-top,.mini-bottom {display:flex;align-items:center;justify-content:space-between;gap:8px}
.mini-top img {height:27px;width:auto;max-width:44%}
.mini-status {font-size:.82rem;color:#e0d0fc;text-align:right}
.mini-panel button {cursor:pointer;font:600 .88rem Geist,sans-serif;min-width:0;min-height:32px;width:auto;color:#eee5fa;background:transparent;border:0}
.mini-panel button:focus-visible {outline:2px solid white;outline-offset:2px}
.mini-panel .mini-hold {touch-action:none;user-select:none;-webkit-user-select:none;width:100%;height:60px;border-radius:12px;font:700 1.1rem "Space Grotesk",sans-serif;background:#cdaffb;color:#251039}
.mini-hold[aria-pressed="true"] {background:#a7f0c8;color:#0e3927}
.mini-panel button:disabled {opacity:.55;cursor:default}
.mini-help {margin:0;font:400 .84rem/1.5 Geist,sans-serif;color:#e0d0fc}
@media(max-width:720px){
    #authView:not(.hidden) {grid-template-columns:minmax(0,1fr);grid-template-areas:"brand" "intro" "pair" "links";gap:1.5rem;align-content:start;padding:max(1.25rem,env(safe-area-inset-top)) max(1.25rem,env(safe-area-inset-right)) 1.5rem}
    .auth-intro .wordmark {width:160px;margin:.4rem 0 .9rem}
    .auth-intro h1 {font-size:clamp(2.4rem,10vw,3.4rem);max-width:17ch}
    .auth-intro .voice-directions {margin-top:.65rem}
    .auth-links {justify-content:center}
}
@media(max-height:330px){#miniCompact{padding:0}.mini-panel{padding:6px 10px;gap:5px}.mini-panel .mini-hold{height:44px}.mini-help{font-size:12px}}

