#crmAiRoot{font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;color:#193246}
#crmAiRoot [hidden]{display:none!important}
.crm-ai-launcher{position:fixed;right:22px;bottom:22px;z-index:1200;display:flex;align-items:center;gap:10px;border:0;border-radius:999px;padding:13px 19px;background:linear-gradient(135deg,#137b73,#11625f);color:#fff;box-shadow:0 12px 32px rgba(16,83,79,.28);font:700 14px/1 Inter,ui-sans-serif,system-ui,sans-serif;cursor:pointer;transition:transform .18s ease,box-shadow .18s ease}
.crm-ai-launcher:hover{transform:translateY(-2px);box-shadow:0 16px 36px rgba(16,83,79,.34)}
.crm-ai-launcher:focus-visible,.crm-ai-icon-button:focus-visible,.crm-ai-mic:focus-visible,.crm-ai-send:focus-visible,.crm-ai-suggestions button:focus-visible,.crm-ai-confirm-actions button:focus-visible,.crm-ai-transcript-suggestions button:focus-visible{outline:3px solid #79d8ce;outline-offset:2px}
.crm-ai-launcher-icon{display:grid;place-items:center;width:22px;height:22px;border-radius:50%;background:rgba(255,255,255,.17);font-size:16px}
.crm-ai-panel{position:fixed;right:22px;bottom:82px;z-index:1201;display:flex;flex-direction:column;width:min(430px,calc(100vw - 28px));height:min(680px,calc(100dvh - 118px));min-height:380px;overflow:hidden;border:1px solid #dce8e8;border-radius:20px;background:#fff;box-shadow:0 24px 70px rgba(18,43,58,.23)}
.crm-ai-header{display:flex;align-items:center;gap:11px;padding:15px 16px;background:#f6faf9;border-bottom:1px solid #e6eeee}
.crm-ai-brand-mark{display:grid;place-items:center;flex:none;width:37px;height:37px;border-radius:13px;background:#137b73;color:#fff;font-weight:800;font-size:18px}
.crm-ai-title{display:flex;flex:1;min-width:0;flex-direction:column;gap:3px}.crm-ai-title strong{font-size:14px;color:#183448}.crm-ai-title span{font-size:12px;color:#668078;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.crm-ai-icon-button{display:grid;place-items:center;flex:none;width:32px;height:32px;border:0;border-radius:10px;background:transparent;color:#637a88;font-size:21px;cursor:pointer}.crm-ai-icon-button:hover{background:#e9f1f0;color:#173d4b}
.crm-ai-context{display:flex;align-items:center;gap:7px;padding:9px 16px;border-bottom:1px solid #edf1f1;color:#667a85;font-size:12px}.crm-ai-context strong{margin-left:2px;color:#21766d;font-weight:700}.crm-ai-context-dot{width:7px;height:7px;border-radius:50%;background:#37a88b}
.crm-ai-messages{display:flex;flex:1;flex-direction:column;gap:12px;overflow:auto;padding:16px 14px 10px;overscroll-behavior:contain;background:#fff}
.crm-ai-message{display:flex;max-width:91%;flex-direction:column;gap:5px}.crm-ai-message-user{align-self:flex-end;align-items:flex-end}.crm-ai-message-assistant{align-self:flex-start;align-items:flex-start}
.crm-ai-bubble{max-width:100%;border:1px solid #e7eeee;border-radius:15px 15px 15px 4px;padding:10px 12px;background:#f5f8f8;color:#254150;font-size:16px;line-height:1.5;overflow-wrap:anywhere}.crm-ai-message-user .crm-ai-bubble{border-color:#d0ebe6;border-radius:15px 15px 4px 15px;background:#e9f6f3;color:#173d42}
.crm-ai-message-text{white-space:pre-wrap}.crm-ai-speak{margin-top:8px;padding:3px 0 0;border:0;background:transparent;color:#287b72;font:600 12px Inter,ui-sans-serif,system-ui,sans-serif;cursor:pointer}.crm-ai-result-badge{border-radius:999px;padding:4px 8px;background:#fff5df;color:#8a651c;font-size:12px;font-weight:700}
.crm-ai-typing{display:flex;align-items:center;gap:4px;align-self:flex-start;padding:8px 12px;color:#70838b;font-size:12px}.crm-ai-typing i{width:6px;height:6px;border-radius:50%;background:#44a398;animation:crmAiPulse 1s ease-in-out infinite}.crm-ai-typing i:nth-child(2){animation-delay:.12s}.crm-ai-typing i:nth-child(3){animation-delay:.24s}.crm-ai-typing span{margin-left:5px}@keyframes crmAiPulse{0%,70%,100%{opacity:.35;transform:translateY(0)}35%{opacity:1;transform:translateY(-3px)}}
.crm-ai-suggestions{display:flex;flex-wrap:wrap;gap:6px;padding:0 14px 10px}.crm-ai-suggestions button{border:1px solid #dce9e7;border-radius:999px;padding:7px 9px;background:#fff;color:#34666a;font:600 12px Inter,ui-sans-serif,system-ui,sans-serif;cursor:pointer}.crm-ai-suggestions button:hover{border-color:#8bc7bf;background:#f2faf8}
.crm-ai-feedback{display:flex;align-items:center;flex-wrap:wrap;gap:7px;margin:0 2px;color:#60757d;font-size:13px}.crm-ai-feedback button{border:1px solid #dce7e7;border-radius:8px;padding:6px 9px;background:#fff;color:#34666a;font:600 13px/1.3 Inter,ui-sans-serif,system-ui,sans-serif;cursor:pointer}.crm-ai-feedback button:hover{border-color:#8bc7bf;background:#f2faf8}.crm-ai-feedback button:focus-visible{outline:3px solid #79d8ce;outline-offset:2px}.crm-ai-feedback button:disabled{opacity:.6;cursor:wait}.crm-ai-feedback-status{color:#60757d;font-size:13px;line-height:1.4}.crm-ai-feedback.is-saved{color:#21766d}.crm-ai-feedback-editor{display:flex;flex-direction:column;gap:7px;width:min(100%,340px);padding:10px;border:1px solid #dce9e7;border-radius:12px;background:#f9fcfb}.crm-ai-feedback-editor label{font-size:13px;font-weight:600;color:#284857}.crm-ai-feedback-editor textarea{width:100%;box-sizing:border-box;resize:vertical;border:1px solid #d7e3e4;border-radius:8px;padding:8px;background:#fff;color:#173246;font:14px/1.45 Inter,ui-sans-serif,system-ui,sans-serif}.crm-ai-feedback-editor textarea:focus{outline:3px solid rgba(60,160,147,.18);border-color:#56a89f}.crm-ai-feedback-actions{display:flex;justify-content:flex-end;gap:7px}
.crm-ai-confirmation{margin:0 13px 10px;border:1px solid #eed8a8;border-radius:13px;padding:11px;background:#fffaf0;color:#655126}.crm-ai-confirmation p{margin:0 0 9px;font-size:13px;line-height:1.5}.crm-ai-confirm-actions{display:flex;justify-content:flex-end;gap:8px}.crm-ai-confirm-actions button{border-radius:8px;padding:7px 11px;font:700 12px Inter,ui-sans-serif,system-ui,sans-serif;cursor:pointer}.crm-ai-cancel{border:1px solid #d8dfe2;background:#fff;color:#50636d}.crm-ai-confirm{border:1px solid #136f68;background:#137b73;color:#fff}
.crm-ai-composer{display:flex;align-items:flex-end;gap:7px;padding:10px 12px;border-top:1px solid #e8eeee;background:#fbfdfd}.crm-ai-composer textarea{flex:1;min-width:0;max-height:120px;resize:none;border:1px solid #dce5e7;border-radius:12px;padding:10px 11px;background:#fff;color:#173246;font:13px/1.45 Inter,ui-sans-serif,system-ui,sans-serif;outline:none}.crm-ai-composer textarea:focus{border-color:#56a89f;box-shadow:0 0 0 3px rgba(60,160,147,.12)}.crm-ai-composer textarea::placeholder{color:#8a9aa0}
.crm-ai-mic,.crm-ai-send{display:grid;place-items:center;flex:none;width:39px;height:39px;border:0;border-radius:12px;cursor:pointer}.crm-ai-mic{background:#edf4f4;color:#35656a}.crm-ai-mic:hover{background:#dceceb}.crm-ai-mic svg,.crm-ai-send svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.crm-ai-send{background:#137b73;color:#fff}.crm-ai-send:hover{background:#0f6862}.crm-ai-send:disabled,.crm-ai-mic:disabled{opacity:.55;cursor:wait}.crm-ai-mic.is-listening{background:#fee7e4;color:#b13d38;animation:crmAiMicPulse 1.15s ease-in-out infinite}@keyframes crmAiMicPulse{50%{box-shadow:0 0 0 6px rgba(210,70,60,.14)}}
.crm-ai-transcript-suggestions{display:flex;align-items:center;flex-wrap:wrap;gap:7px;padding:0 14px 8px;background:#fbfdfd;color:#6c7f87;font-size:12px}.crm-ai-transcript-suggestions button{border:1px solid #dce9e7;border-radius:8px;padding:6px 9px;background:#fff;color:#226e68;font:600 12px Inter,ui-sans-serif,system-ui,sans-serif;cursor:pointer}.crm-ai-transcript-suggestions button:hover{border-color:#8bc7bf;background:#f2faf8}
.crm-ai-footnote{padding:0 14px 11px;background:#fbfdfd;color:#7a8c91;font-size:12px;line-height:1.4}.crm-ai-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:700px){.crm-ai-launcher{right:14px;bottom:calc(88px + env(safe-area-inset-bottom));padding:12px 16px}.crm-ai-panel{right:10px;bottom:calc(146px + env(safe-area-inset-bottom));left:10px;width:auto;height:min(660px,calc(100dvh - 180px));min-height:0;border-radius:18px}.crm-ai-header{padding:13px 14px}.crm-ai-messages{padding-right:12px;padding-left:12px}}
@media(max-width:380px){.crm-ai-launcher{bottom:calc(84px + env(safe-area-inset-bottom))}.crm-ai-panel{bottom:calc(138px + env(safe-area-inset-bottom));height:calc(100dvh - 168px);min-height:0}.crm-ai-suggestions button{font-size:12px;padding:6px 8px}}
@media(prefers-reduced-motion:reduce){.crm-ai-launcher,.crm-ai-typing i,.crm-ai-mic.is-listening{animation:none;transition:none}}
