.spossity-assistant{position:relative;display:flex;gap:4px;align-items:center;justify-content:flex-end;max-width:100%;color:var(--sp-color-violet)}
.spossity-assistant[hidden],.spossity-assistant [hidden]{display:none}
.spossity-assistant button{min-height:44px;min-width:44px;padding:6px 12px;border:1px solid #d6c4f6;border-radius:22px;color:inherit;background:rgba(255,255,255,.8);font:inherit;font-size:13px;font-weight:650;cursor:pointer}
.spossity-assistant button:first-child::before{content:'';display:inline-block;width:7px;height:7px;border-radius:50%;background:currentColor;margin-inline-end:7px;vertical-align:middle;opacity:.55}
.spossity-assistant[data-phase="listening"] button:first-child::before{opacity:1}
.spossity-assistant button:disabled{opacity:.65;cursor:default}
html[data-theme="dark"] .spossity-assistant{color:var(--sp-control-icon-dark)}
html[data-theme="dark"] .spossity-assistant button{background:var(--sp-theme-surface);border-color:var(--sp-theme-border)}
.spossity-voice-preferences{display:grid;gap:12px;margin-top:18px;padding-top:16px;border-top:1px solid var(--sp-theme-border);color:var(--sp-theme-text)}
.spossity-voice-preferences header>strong{font-size:10px;font-weight:700}
.spossity-voice-preferences header>p{margin:4px 0 0;font-size:9px;line-height:1.4;color:var(--sp-theme-text-muted)}
.spossity-voice-options{display:grid;gap:8px}
.spossity-voice-option{display:flex;align-items:center;gap:12px;padding:4px 8px;border:1px solid var(--sp-theme-border);border-radius:12px;background:var(--sp-theme-surface-soft);min-width:0}
.spossity-voice-option:has(input:checked){border-color:var(--sp-color-violet);background:var(--sp-theme-surface-accent)}
.spossity-voice-select{display:flex;align-items:center;gap:10px;min-height:44px;flex:1;min-width:0;cursor:pointer}
.spossity-voice-select strong{font-size:12px;font-weight:700;color:var(--sp-theme-text)}
.spossity-voice-select input{width:18px;height:18px;margin:0;flex:0 0 18px;accent-color:var(--sp-selection-light-fill)}
html body.is-logged-in [data-voice-preferences] .spossity-voice-preview{display:flex;align-items:center;justify-content:center;gap:4px;min-height:44px;padding:6px 8px;border:0;border-radius:8px;color:var(--sp-theme-accent);background:transparent;font:inherit;font-size:9px;font-weight:700;cursor:pointer;flex-shrink:0}
.spossity-voice-preferences .profile-setting-row{margin:0}
.spossity-voice-preferences .profile-location-switch{position:relative;flex-shrink:0}
.spossity-voice-preferences input:focus-visible+.profile-location-toggle{outline:2px solid var(--sp-color-violet);outline-offset:3px}
.spossity-voice-preferences footer{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
html body.is-logged-in [data-voice-preferences] .spossity-voice-save{min-height:44px;width:auto;padding:10px 16px;border:1px solid var(--sp-selection-light-border);border-radius:11px;color:var(--sp-selection-light-text);background:var(--sp-selection-light-fill);font:inherit;font-size:9px;font-weight:700;cursor:pointer}
html[data-theme="dark"] body.is-logged-in [data-voice-preferences] .spossity-voice-save{background:var(--sp-selection-dark-fill);color:var(--sp-selection-dark-text);border-color:var(--sp-selection-dark-border)}
.spossity-voice-preferences footer p{margin:0;font-size:9px;line-height:1.4}
.spossity-voice-preferences footer p:empty{display:none}
.spossity-voice-preferences button:disabled{opacity:.6;cursor:default}
.spossity-voice-consent{box-sizing:border-box;width:min(480px,calc(100% - 28px));max-height:85dvh;padding:24px;border:1px solid var(--sp-theme-border);border-radius:24px;background:var(--sp-theme-surface);color:var(--sp-theme-text);font:inherit;overflow:auto;box-shadow:0 16px 60px #06173540}
.spossity-voice-consent::backdrop{background:var(--sp-theme-overlay)}
.spossity-voice-consent h2{font-size:20px;margin:0 0 16px}
.spossity-voice-consent p{font-size:14px;line-height:1.55;margin:0 0 14px}
.spossity-voice-consent-actions{display:flex;flex-wrap:wrap;gap:10px;justify-content:flex-end;margin-top:20px}
.spossity-voice-consent button{min-height:44px;padding:10px 16px;border:1px solid var(--sp-color-violet);border-radius:16px;color:inherit;background:transparent;font:inherit;cursor:pointer}
.spossity-voice-consent button[data-voice-consent-agree]{background:var(--sp-selection-light-fill);color:var(--sp-selection-light-text);border-color:var(--sp-selection-light-border)}
html[data-theme="dark"] .spossity-voice-consent{background:var(--sp-theme-surface);color:var(--sp-theme-text);border-color:var(--sp-theme-border)}

html body.is-logged-in [data-voice-preferences] .spossity-voice-consent-review{min-height:44px;padding:8px;border:0;background:transparent;color:var(--sp-theme-accent);font:inherit;font-size:9px;font-weight:700;text-decoration:underline;cursor:pointer}

html[data-theme="dark"] .spossity-voice-consent button[data-voice-consent-agree]{background:var(--sp-selection-dark-fill);color:var(--sp-selection-dark-text);border-color:var(--sp-selection-dark-border)}

.spossity-companion-name{display:inline}
[data-floating-voice-anchor]{position:fixed;z-index:90;inset-inline-end:max(18px,env(safe-area-inset-right));bottom:max(20px,env(safe-area-inset-bottom));width:76px;height:58px;pointer-events:none}
[data-floating-voice-anchor]:has(.spossity-assistant[hidden]){display:none}
[data-floating-voice-anchor] .spossity-assistant{width:76px;height:58px;justify-content:center;pointer-events:auto}
html body.is-logged-in [data-floating-voice-anchor] .spossity-assistant button:first-child{display:grid;place-items:center;width:76px;height:58px;min-width:44px;min-height:44px;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;color:var(--sp-color-violet)}
[data-floating-voice-anchor] .spossity-assistant button:first-child::before,[data-floating-voice-anchor] .spossity-companion-name,[data-floating-voice-anchor] .spossity-assistant>p,[data-floating-voice-anchor] .spossity-assistant button[aria-label="Stop voice assistant"]{display:none!important}
[data-floating-voice-anchor] .companion-portrait{grid-area:1/1;width:72px;height:48px;filter:drop-shadow(0 4px 5px rgba(11,40,91,.24))}
[data-floating-voice-anchor] .spossity-assistant[data-phase="listening"] .companion-portrait{filter:drop-shadow(0 0 5px var(--sp-color-violet))}
html body.is-logged-in [data-floating-voice-anchor] .spossity-assistant button:first-child:focus{outline:none}
html body.is-logged-in [data-floating-voice-anchor] .spossity-assistant button:first-child:focus-visible{outline:2px solid var(--sp-color-violet);outline-offset:2px;border-radius:14px}
@media(max-width:1100px){[data-floating-voice-anchor]{inset-inline-end:max(12px,env(safe-area-inset-right));bottom:calc(86px + env(safe-area-inset-bottom))}}
.voice-mic-label{font-size:8px;line-height:10px;font-weight:600;color:var(--sp-theme-text-muted)}
.spossity-assistant[data-phase="listening"] .voice-mic-core{animation:spossity-microphone-pulse 1.2s ease-in-out infinite}
@keyframes spossity-microphone-pulse{0%,100%{opacity:1}50%{opacity:.3}}
@media(prefers-reduced-motion:reduce){.spossity-assistant[data-phase="listening"] .voice-mic-core{animation:none}}
html.reduce-motion .spossity-assistant .voice-mic-core{animation:none}

.spossity-voice-feedback{position:fixed;z-index:150;inset-inline-end:20px;bottom:max(20px,env(safe-area-inset-bottom));box-sizing:border-box;width:min(360px,calc(100% - 40px));display:flex;align-items:center;gap:10px;padding:10px 12px;border:1px solid var(--sp-rich-edge);border-radius:20px;color:var(--sp-theme-text);font:inherit;font-size:12px;line-height:1.45}
.spossity-voice-feedback[hidden]{display:none!important}
.spossity-voice-feedback>span{flex:1;min-width:0}
.spossity-voice-feedback>button{flex:0 0 44px;min-height:44px;padding:0;border:0;background:transparent;color:var(--sp-theme-text);font:inherit;font-size:22px;cursor:pointer}
@media(max-width:1100px){.spossity-voice-feedback{bottom:calc(150px + env(safe-area-inset-bottom))}}
html:root body.is-logged-in .spossity-voice-option:has(input:checked){border-color:var(--sp-color-violet)!important}
