.ai-chat-window{position:fixed;bottom:100px;right:20px;z-index:9998;width:320px;max-width:92vw;background:#fff;border-radius:12px;box-shadow:0 8px 30px rgba(0,0,0,.18);display:none;flex-direction:column;overflow:hidden;font-size:14px}.ai-chat-animate{animation:aiChatOpen .3s ease-out}@keyframes aiChatOpen{from{opacity:0;transform:translateY(12px) scale(0.97)}to{opacity:1;transform:translateY(0) scale(1)}}.ai-chat-header{display:flex;align-items:center;justify-content:space-between;padding:16px 18px;background:linear-gradient(135deg, #263142 0%, #1a2736 100%);color:#fff}.ai-chat-header strong{font-size:15px}.ai-chat-header__info{display:flex;align-items:center;gap:10px;border-radius:20%}.ai-chat-header__info small{display:block;font-size:11px;opacity:.8}.ai-chat-header__icon{width:32px;height:32px;border-radius:50%;background:rgba(255,255,255,.1);display:flex;align-items:center;justify-content:center;font-size:18px;flex-shrink:0}.ai-chat-header__photo{width:32px;height:32px;border-radius:50%;object-fit:cover;flex-shrink:0}.ai-chat-header__close{background:none;border:none;color:#fff;cursor:pointer;padding:4px;opacity:.7;transition:opacity .2s}.ai-chat-header__close:hover{opacity:1}.ai-chat-body{padding:16px;max-height:340px;overflow-y:auto;background:#f0f2f5;flex:1}.ai-chat-body::-webkit-scrollbar{width:6px}.ai-chat-body::-webkit-scrollbar-track{background:rgba(0,0,0,0)}.ai-chat-body::-webkit-scrollbar-thumb{background:#ccc;border-radius:3px}.ai-message{margin-bottom:12px;display:flex;animation:aiMessageIn .25s ease-out}.ai-message.ai-sent{justify-content:flex-end}.ai-message.ai-received{justify-content:flex-start}@keyframes aiMessageIn{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}.ai-typing{display:flex;align-items:center;gap:8px;margin-bottom:12px;animation:aiMessageIn .2s ease-out}.ai-typing__bubble{display:flex;align-items:center;gap:4px;background:#fff;padding:10px 14px;border-radius:12px;border-bottom-left-radius:4px;box-shadow:0 1px 4px rgba(0,0,0,.06)}.ai-typing__dot{width:7px;height:7px;border-radius:50%;background:#999;animation:aiTypingBounce 1.4s infinite ease-in-out}.ai-typing__dot:nth-child(2){animation-delay:.2s}.ai-typing__dot:nth-child(3){animation-delay:.4s}.ai-typing__text{font-size:11px;color:#999;font-family:inherit}@keyframes aiTypingBounce{0%,80%,100%{transform:scale(0.6);opacity:.4}40%{transform:scale(1);opacity:1}}.ai-message-bubble{max-width:85%;padding:10px 14px;border-radius:12px;line-height:1.5;font-size:13px}.ai-received .ai-message-bubble{background:#fff;color:#333;border-bottom-left-radius:4px;box-shadow:0 1px 4px rgba(0,0,0,.06)}.ai-sent .ai-message-bubble{background:#263142;color:#fff;border-bottom-right-radius:4px;box-shadow:0 2px 6px rgba(38,49,66,.2)}.ai-error .ai-message-bubble{background:#fee2e2;color:#dc2626}.ai-chat-footer{display:flex;align-items:center;padding:10px 14px;border-top:1px solid #e5e7eb;background:#fff;gap:8px}.ai-chat-input{flex:1;border:1px solid #d1d5db;border-radius:20px;padding:8px 14px;font-size:13px;outline:none;resize:none;max-height:80px;line-height:1.4;transition:border-color .2s,box-shadow .2s}.ai-chat-input:focus{border-color:#263142;box-shadow:0 0 0 3px rgba(38,49,66,.08)}.ai-chat-send{background:#263142;border:none;border-radius:50%;width:36px;height:36px;display:flex;align-items:center;justify-content:center;cursor:pointer;color:#fff;flex-shrink:0;transition:background .2s,transform .15s}.ai-chat-send:hover:not(:disabled){background:#1d2533;transform:scale(1.05)}.ai-chat-send:disabled{opacity:.5;cursor:not-allowed}@media(max-width: 480px){.ai-chat-window{left:4px;right:4px;width:auto;bottom:85px}}
