#ai-chat-toggle{position:fixed;right:20px;bottom:20px;width:56px;height:56px;border-radius:50%;border:none;box-shadow:0 10px 25px rgba(0,0,0,.15);background:#111827;color:#fff;font-size:24px;cursor:pointer;z-index:9999}
#ai-chat-panel{position:fixed;right:20px;bottom:90px;width:360px;max-width:calc(100vw - 40px);height:520px;border-radius:16px;background:#fff;border:1px solid #e5e7eb;box-shadow:0 20px 50px rgba(0,0,0,.18);display:none;flex-direction:column;overflow:hidden;z-index:9998;font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif}
#ai-chat-header{padding:12px 14px;background:#111827;color:#fff}
#ai-chat-header .title{font-weight:700;font-size:14px}
#ai-chat-header .subtitle{font-size:12px;opacity:.85}
#ai-chat-body{flex:1;padding:12px;overflow-y:auto;background:#f9fafb}
.message{margin:8px 0;display:flex}
.message.user{justify-content:flex-end}
.message.user .bubble{background:#2563eb;color:#fff;border-top-right-radius:4px;border-top-left-radius:14px;border-bottom-right-radius:4px;border-bottom-left-radius:14px}
.message.assistant .bubble{background:#fff;border:1px solid #e5e7eb;color:#111827;border-top-right-radius:14px;border-top-left-radius:4px;border-bottom-right-radius:14px;border-bottom-left-radius:14px}
.bubble{padding:10px 12px;max-width:80%;line-height:1.45;font-size:14px;white-space:pre-wrap;word-break:break-word}
#ai-chat-inputbar{display:flex;gap:8px;padding:10px;border-top:1px solid #e5e7eb;background:#fff}
#ai-chat-input{flex:1;padding:10px 12px;border:1px solid #d1d5db;border-radius:10px;font-size:14px;outline:none}
#ai-chat-send{padding:10px 14px;border:none;border-radius:10px;background:#111827;color:#fff;font-weight:600;cursor:pointer}
#typing{font-size:12px;color:#6b7280;padding-left:6px}
