#aichat-root{position:fixed;right:20px;bottom:20px;z-index:99999;font:14px/1.45 system-ui,-apple-system,Segoe UI,Roboto,sans-serif;color:#222}
#aichat-fab{width:60px;height:60px;border-radius:50%;border:0;background:#1a5fb4;color:#fff;font-size:28px;cursor:pointer;box-shadow:0 4px 14px rgba(0,0,0,.3)}
#aichat-fab.aichat-pulse{animation:aichat-pulse 1.6s infinite}
@keyframes aichat-pulse{0%{box-shadow:0 0 0 0 rgba(26,95,180,.6)}70%{box-shadow:0 0 0 16px rgba(26,95,180,0)}100%{box-shadow:0 0 0 0 rgba(26,95,180,0)}}
#aichat-teaser{position:absolute;right:0;bottom:72px;background:#fff;border-radius:12px;padding:10px 14px;box-shadow:0 4px 18px rgba(0,0,0,.25);white-space:nowrap;cursor:pointer;font-weight:600}
#aichat-teaser[hidden]{display:none}
#aichat-panel{position:absolute;right:0;bottom:72px;width:370px;max-width:calc(100vw - 40px);height:540px;max-height:calc(100vh - 110px);background:#fff;border-radius:14px;box-shadow:0 8px 30px rgba(0,0,0,.3);display:flex;flex-direction:column;overflow:hidden;animation:aichat-in .25s ease-out}
@keyframes aichat-in{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}
#aichat-panel[hidden]{display:none}
#aichat-head{background:linear-gradient(135deg,#1a5fb4,#2b7de0);color:#fff;padding:13px 14px;display:flex;justify-content:space-between;align-items:center;font-weight:700;font-size:15px}
#aichat-close{background:none;border:0;color:#fff;font-size:24px;cursor:pointer;line-height:1}
#aichat-msgs{flex:1;overflow-y:auto;padding:12px;background:#f5f6f8}
.aichat-m{max-width:90%;padding:9px 12px;border-radius:12px;margin-bottom:8px;word-wrap:break-word}
.aichat-assistant{background:#fff;border:1px solid #e1e4e8}
.aichat-user{background:#1a5fb4;color:#fff;margin-left:auto}
.aichat-user a{color:#fff}
.aichat-m a{color:#1a5fb4;text-decoration:underline}
#aichat-chips{display:flex;flex-direction:column;gap:6px;margin:4px 0 8px}
#aichat-chips button{text-align:left;padding:9px 12px;border:1px solid #1a5fb4;border-radius:18px;background:#fff;color:#1a5fb4;cursor:pointer;font:inherit}
#aichat-chips button:hover{background:#1a5fb4;color:#fff}
#aichat-form{display:flex;gap:6px;padding:8px;border-top:1px solid #e1e4e8;background:#fff}
#aichat-input{flex:1;padding:9px 11px;border:1px solid #c5c9d0;border-radius:8px;font:inherit;min-width:0}
#aichat-form button{padding:8px 13px;border:0;border-radius:8px;background:#1a5fb4;color:#fff;cursor:pointer;font:inherit}
#aichat-note{font-size:11px;color:#6b7280;text-align:center;padding:0 8px 6px;background:#fff}
@media (max-width:767px){#aichat-panel{position:fixed;right:10px;left:10px;bottom:84px;width:auto;max-width:none;height:70vh}}
