/* Supplied mascot preview: keep its silhouette, placement and motion intact. */
.fx-mascot-zone{position:fixed;right:24px;bottom:24px;width:146px;height:146px;pointer-events:none;z-index:80;outline:none;-webkit-tap-highlight-color:transparent}
.fx-mascot-zone.is-open{pointer-events:auto;cursor:pointer}
.fx-mascot-zone::before{content:"";position:absolute;inset:0 -24px -24px 0}
.fx-mascot-hit{position:absolute;inset:17%;border-radius:50%;pointer-events:auto;cursor:pointer;touch-action:manipulation}
.fx-mascot-peek{position:relative;width:100%;height:100%;transform:translate(60%,57%) rotate(-28deg);animation:fx-mascot-lurk 6s ease-in-out infinite;will-change:transform}
.fx-mascot-art{width:100%;height:100%;pointer-events:none}
.fx-mascot-zone:focus-visible .fx-mascot-hit{outline:2px solid var(--blue);outline-offset:3px}
@keyframes fx-mascot-lurk{0%,30%,70%,100%{transform:translate(60%,57%) rotate(-28deg)}42%,58%{transform:translate(52%,50%) rotate(-22deg)}}
.fx-mascot-fallback{width:64px;height:64px;pointer-events:auto;cursor:pointer}
.fx-mascot-fallback .fx-mascot-peek{transform:none!important;animation:none!important}
.fx-mascot-fallback .fx-mascot-hit{inset:0}
.fx-mascot-fallback .fx-mascot-art{display:grid;place-items:center;border-radius:50%;background:var(--blue);color:white;font:700 24px Inter,system-ui,sans-serif}
.fx-chat{position:fixed;right:24px;bottom:190px;z-index:90;width:min(390px,calc(100vw - 32px));height:min(540px,calc(var(--chat-viewport-height,100dvh) - 214px));display:flex;flex-direction:column;background:var(--surface);color:var(--text);border:1px solid var(--surface-2);border-radius:24px;box-shadow:0 18px 65px -20px var(--shadow);overflow:hidden;font:14px/1.5 Inter,system-ui,sans-serif;animation:fx-chat-in .25s var(--ease)}
.fx-chat[hidden]{display:none}
@keyframes fx-chat-in{from{opacity:0;transform:translateY(16px) scale(.97)}to{opacity:1;transform:none}}
.fx-chat button,.fx-chat input{font:inherit}
.fx-chat button{cursor:pointer}
.fx-chat button:disabled{cursor:default;opacity:.5}
.fx-chat-head{display:flex;align-items:center;gap:12px;padding:16px;background:var(--blue);color:white}
.fx-chat-brand{flex:1;min-width:0}
.fx-chat-brand strong{display:block;font-size:15px}
.fx-chat-brand p{font-size:11px;opacity:.85}
.fx-chat-icon{width:44px;height:44px;flex:none;border:0;border-radius:50%;display:grid;place-items:center;background:rgba(255,255,255,.14);color:white;font-size:24px}
.fx-chat-new{font-size:20px}
.fx-chat-messages{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;padding:16px;display:flex;flex-direction:column;gap:12px;background:var(--bg)}
.fx-chat-bubble{max-width:88%;padding:12px 14px;border-radius:18px;background:var(--surface);overflow-wrap:anywhere}
.fx-chat-bubble-user{align-self:flex-end;background:var(--blue);color:white;white-space:pre-wrap}
.fx-chat-bubble p+p,.fx-chat-bubble ul,.fx-chat-bubble ol{margin-top:8px}
.fx-chat-bubble ul{list-style:disc;padding-inline-start:18px}
.fx-chat-bubble ol{list-style:decimal;padding-inline-start:18px}
.fx-chat-bubble a{color:var(--blue);text-decoration:underline;text-underline-offset:3px}
.fx-chat-bubble code{font-size:.9em;background:var(--surface-2);border-radius:4px;padding:2px 4px}
.fx-chat-suggestions{display:flex;flex-wrap:wrap;gap:8px}
.fx-chat-suggestions button,.fx-chat-retry{border:1px solid var(--word-dim);background:var(--surface);color:var(--text);padding:9px 12px;min-height:40px;border-radius:20px;font-size:12px}
.fx-chat-compose{display:flex;gap:8px;padding:12px;border-top:1px solid var(--surface-2)}
.fx-chat input{min-width:0;color:var(--text);background:var(--surface-2);border:0;border-radius:16px;padding:12px;outline-offset:2px}
.fx-chat-compose input{flex:1;width:0}
.fx-chat input:focus-visible{outline:2px solid var(--blue)}
.fx-chat-send{background:var(--blue);font-size:20px}
.fx-chat-footer{padding:0 16px 12px;text-align:center;font-size:10px;color:var(--muted)}
.fx-chat-handoff{display:inline-block;background:none;border:0;color:var(--blue);font-size:12px;padding:4px;min-height:32px}
.fx-chat-error{color:#dc2626;font-size:12px}
.fx-chat-lead{display:flex;flex-direction:column;gap:8px;padding:12px;background:var(--surface);border:1px solid var(--surface-2);border-radius:18px}
.fx-chat-lead button{min-height:44px;background:var(--blue);color:white;border:0;border-radius:16px}
.fx-chat-sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:640px),(max-height:500px){.fx-chat{right:16px;bottom:calc(16px + var(--chat-keyboard-offset,0px));height:min(620px,calc(var(--chat-viewport-height,100dvh) - 32px))}.fx-mascot-zone[data-chat-open="true"]{visibility:hidden}}
@media(prefers-reduced-motion:reduce){.fx-mascot-peek,.fx-chat{animation:none}}
