/* Ask the Studio chat. Sits above the cookie settings button in the bottom-right corner. */
.ask-studio{--as-bg:#18111f;--as-panel:#1f1628;--as-line:#4b3557;--as-text:#f3eaf8;--as-muted:#b9a8c3;--as-accent:#a435ff;position:fixed;right:20px;bottom:72px;z-index:90;font-family:"DM Sans",system-ui,sans-serif;color:var(--as-text)}
.ask-studio-launcher{display:inline-flex;align-items:center;gap:10px;min-height:48px;padding:12px 18px;border:1px solid #c58cf0;border-radius:999px;background:var(--as-accent);color:#fff;font:700 14px/1 "DM Sans",system-ui,sans-serif;cursor:pointer;box-shadow:0 10px 30px #0007;transition:transform .15s,background .15s}
.ask-studio-launcher:hover{background:#b858ff;transform:translateY(-2px)}
.ask-studio-dot{width:9px;height:9px;border-radius:50%;background:#7dffb2;box-shadow:0 0 0 3px #7dffb233}
.ask-studio.is-open .ask-studio-launcher{display:none}
.ask-studio-panel{position:absolute;right:0;bottom:0;display:flex;flex-direction:column;width:min(380px,calc(100vw - 32px));height:min(560px,calc(100dvh - 110px));background:var(--as-panel);border:1px solid var(--as-line);border-radius:14px;box-shadow:0 24px 60px #000a;overflow:hidden}
.ask-studio-panel[hidden]{display:none}
.ask-studio-panel header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 16px;background:var(--as-bg);border-bottom:1px solid var(--as-line)}
.ask-studio-panel header strong{display:block;font:700 16px "Space Grotesk",system-ui,sans-serif}
.ask-studio-panel header small{display:block;margin-top:3px;color:var(--as-muted);font-size:12px}
.ask-studio-close{width:40px;height:40px;border:0;border-radius:8px;background:transparent;color:var(--as-text);font-size:26px;line-height:1;cursor:pointer}
.ask-studio-close:hover{background:#2f2239}
.ask-studio-log{flex:1;overflow-y:auto;padding:16px;display:flex;flex-direction:column;gap:10px;overscroll-behavior:contain}
.ask-studio-msg{max-width:86%;padding:10px 13px;border-radius:12px;font-size:14px;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere}
.ask-studio-assistant{align-self:flex-start;background:#2c2036;border-bottom-left-radius:4px}
.ask-studio-client{align-self:flex-end;background:#6f20d8;color:#fff;border-bottom-right-radius:4px}
.ask-studio-waiting{color:var(--as-muted);font-style:italic}
.ask-studio-msg a:not(.ask-studio-whatsapp){color:inherit;text-decoration:underline}
.ask-studio-whatsapp{display:inline-block;margin-top:8px;padding:8px 12px;border-radius:8px;background:#1f9d55;color:#fff;font-weight:700;text-decoration:none;white-space:normal}
.ask-studio-form{display:flex;align-items:flex-end;gap:8px;padding:12px;border-top:1px solid var(--as-line);background:var(--as-bg)}
.ask-studio-form textarea{flex:1;min-height:44px;max-height:120px;padding:11px 12px;border:1px solid var(--as-line);border-radius:10px;background:#120d17;color:var(--as-text);font:14px/1.4 "DM Sans",system-ui,sans-serif;resize:none}
.ask-studio-form textarea:focus{outline:2px solid #c58cf0;outline-offset:1px}
.ask-studio-send{min-height:44px;padding:0 16px;border:0;border-radius:10px;background:var(--as-accent);color:#fff;font-weight:700;cursor:pointer}
.ask-studio-form.is-busy .ask-studio-send{opacity:.5;cursor:wait}
.ask-studio-note{margin:0;padding:0 14px 10px;background:var(--as-bg);color:var(--as-muted);font-size:11px;line-height:1.4}
.ask-studio-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
.ask-studio :focus-visible{outline:3px solid #dfb2fa;outline-offset:2px}
html.navigation-open .ask-studio{display:none}
@media(max-width:600px){
 .ask-studio{right:12px;bottom:64px}
 .ask-studio-launcher{min-height:44px;padding:10px 15px;font-size:13px}
 .ask-studio.is-open{inset:0;right:0;bottom:0;z-index:200}
 .ask-studio-panel{position:fixed;inset:0;width:100%;height:100dvh;border-radius:0;border:0}
}
@media(prefers-reduced-motion:reduce){.ask-studio-launcher{transition:none}}
