.ai-chat-launch{position:fixed;right:22px;bottom:22px;z-index:20;border:0;border-radius:999px;padding:14px 18px;background:linear-gradient(135deg,#8d4dff,#ff4f9a);color:#fff;font:inherit;font-weight:700;box-shadow:0 10px 28px rgba(32,12,70,.35);cursor:pointer}
.ai-chat-launch:hover{transform:translateY(-2px)}
.ai-chat-panel{position:fixed;right:22px;bottom:82px;z-index:21;width:min(390px,calc(100vw - 32px));height:min(560px,calc(100vh - 110px));display:flex;flex-direction:column;overflow:hidden;border:1px solid rgba(255,255,255,.18);border-radius:20px;background:#fff;box-shadow:0 20px 60px rgba(16,8,45,.35)}
.ai-chat-panel[hidden]{display:none}
.ai-chat-head{display:flex;align-items:center;justify-content:space-between;padding:16px 18px;background:linear-gradient(135deg,#24104d,#6e2ca8);color:#fff}
.ai-chat-head strong{display:block}.ai-chat-head small{display:block;margin-top:3px;opacity:.78}
.ai-chat-close{border:0;background:transparent;color:#fff;font-size:26px;line-height:1;cursor:pointer}
.ai-chat-messages{display:flex;flex:1;flex-direction:column;gap:10px;overflow:auto;padding:16px;background:#faf8ff}
.ai-chat-message{max-width:86%;padding:10px 12px;border-radius:14px;font-size:.94rem;line-height:1.45;white-space:pre-wrap}
.ai-chat-message.assistant{align-self:flex-start;background:#eee7ff;color:#24104d;border-bottom-left-radius:4px}
.ai-chat-message.user{align-self:flex-end;background:#6e2ca8;color:#fff;border-bottom-right-radius:4px}
.ai-chat-form{display:flex;gap:8px;padding:12px;border-top:1px solid #eee;background:#fff}
.ai-chat-form input{min-width:0;flex:1;border:1px solid #d8d1e3;border-radius:999px;padding:11px 14px;font:inherit}
.ai-chat-form button{border:0;border-radius:999px;padding:0 15px;background:#6e2ca8;color:#fff;font-weight:700;cursor:pointer}
.ai-chat-status{min-height:18px;margin:0;padding:0 14px 8px;color:#746b80;font-size:.78rem;background:#fff}
@media(max-width:600px){.ai-chat-launch{right:16px;bottom:16px}.ai-chat-panel{right:16px;bottom:72px}}
