.crm .fox-launcher{position:fixed;right:24px;bottom:calc(24px + env(safe-area-inset-bottom));z-index:70;width:64px;height:64px;display:grid;place-items:center;padding:12px;border:1px solid #6a3c23;border-radius:50%;background:#17191c;box-shadow:0 8px 30px #0006,0 0 24px #f47a3514;cursor:pointer;transition:transform .18s,box-shadow .18s}
.fox-launcher img{width:100%;height:100%;object-fit:contain}.crm .fox-launcher:hover{transform:translateY(-3px);box-shadow:0 10px 30px #0008,0 0 26px #f47a3530;border-color:#f47a35}.fox-launcher:focus-visible,.fox-chat-panel button:focus-visible{outline:2px solid #ffb07a;outline-offset:4px}
.fox-chat-panel{position:fixed;z-index:69;right:24px;bottom:calc(100px + env(safe-area-inset-bottom));width:390px;max-width:calc(100vw - 32px);height:610px;max-height:calc(100dvh - 128px - env(safe-area-inset-bottom));display:flex;flex-direction:column;overflow:hidden;background:#171a1d;border:1px solid #3b4148;border-radius:20px;box-shadow:0 20px 70px #0009;color:#f5f5f0;font-size:13px;animation:fox-open .18s ease-out}
.fox-chat-header{display:flex;align-items:center;gap:11px;padding:18px 16px;background:linear-gradient(120deg,#302218,#1b2025 65%);border-bottom:1px solid #343b42;flex-shrink:0}.fox-chat-avatar{width:42px;height:42px;padding:8px;border-radius:13px;background:#201b17;flex-shrink:0}.fox-chat-avatar img{width:100%;height:100%;object-fit:contain}.fox-chat-header>div{flex:1;min-width:0}.fox-chat-header h2{font-size:15px;margin:0}.fox-chat-header p{font-size:10px;color:#b0b7be;margin:0;display:flex;align-items:center;gap:7px}.fox-online{height:6px;width:6px;background:#b8e66a;border-radius:50%;box-shadow:0 0 8px #b8e66a33}.fox-online.offline{background:#c38a59;box-shadow:none}.crm .fox-icon-button{padding:7px;width:29px;height:29px;background:transparent;border:0;border-radius:8px;color:#b0b7be;display:grid;place-items:center}.crm .fox-icon-button:hover{background:#343b42;color:#f5f5f0}.fox-icon-button svg{width:16px;height:16px}
.fox-chat-log{padding:20px 16px 12px;overflow-y:auto;min-height:0;flex:1;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#48515a transparent}.fox-message{width:fit-content;max-width:94%;padding:13px 14px;margin-bottom:14px;border-radius:14px;background:#252b31;border:1px solid #343b42;overflow-wrap:anywhere}.fox-message.assistant{border-top-left-radius:4px}.fox-message.user{margin-left:auto;background:#3c2b20;border-color:#63442f;border-top-right-radius:4px}.fox-message small{font-size:9px;font-weight:600;color:#ffb07a;display:block;margin-bottom:6px}.fox-message.user small{color:#d3b9a7}.fox-message p{margin:0;line-height:1.75;font-size:12px;white-space:pre-wrap;color:#f5f5f0}.fox-starters{display:grid;gap:7px;margin:0 0 18px}.crm .fox-starters button{font-family:inherit;text-align:left;font-size:11px;font-weight:500;display:flex;justify-content:space-between;align-items:center;gap:8px;padding:10px 12px;background:transparent;border:1px solid #4a3b2e;border-radius:10px;color:#ffb07a;white-space:normal}.crm .fox-starters button:hover{background:#302218;border-color:#825135}.fox-starters span{font-size:15px}
.fox-typing{display:flex;align-items:center;gap:4px;color:#b0b7be;padding:3px 8px 15px}.fox-typing>span{width:5px;height:5px;border-radius:50%;background:#ffb07a;animation:fox-think 1s infinite}.fox-typing>span:nth-child(2){animation-delay:.15s}.fox-typing>span:nth-child(3){animation-delay:.3s}.fox-typing small{font-size:10px;margin-left:7px}.fox-chat-compose{display:flex;gap:9px;align-items:flex-end;margin:0;padding:12px 16px 8px;border-top:1px solid #343b42;background:#171a1d;flex-shrink:0}.crm .fox-chat-compose textarea{font-family:inherit;font-size:12px;line-height:1.6;min-height:58px;max-height:110px;resize:none;flex:1;min-width:0;margin:0;padding:11px 12px;background:#1f2429;border:1px solid #48515a;border-radius:12px;color:#f5f5f0}.fox-chat-compose textarea::placeholder{color:#929ba5}.fox-chat-compose textarea:focus{outline:none;border-color:#f47a35;box-shadow:0 0 0 2px #f47a3518}.crm .fox-send{height:40px;width:40px;padding:10px;flex-shrink:0;display:grid;place-items:center;border:0;border-radius:12px;background:#f47a35;color:#161719}.fox-send svg{width:20px;height:20px}.crm .fox-send:hover{background:#ff9258}.fox-chat-panel button:disabled{opacity:.45;cursor:default}.fox-chat-footer{display:flex;flex-wrap:wrap;justify-content:space-between;gap:4px;padding:0 16px 12px;font-size:8px;line-height:1.6;color:#939ba4;background:#171a1d;flex-shrink:0}.fox-chat-error,.fox-chat-notice{padding:10px 16px;font-size:11px;line-height:1.5;color:#ffb6a8;background:#352622;flex-shrink:0}.crm .fox-chat-error button{padding:0;margin-left:7px;border:0;color:#ffb07a;text-decoration:underline;background:none;font-size:11px;display:inline}.fox-chat-notice{color:#ffcf88;background:#342b20}.fox-sr-only{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
.crm #fox-assistant .fox-send{background:#f47a35;color:#161719;border:0}.crm #fox-assistant .fox-send:hover{background:#ff9258}.crm #fox-assistant .fox-launcher{background:#17191c;border-color:#6a3c23}.crm #fox-assistant .fox-launcher:hover{border-color:#f47a35}
@keyframes fox-open{from{opacity:0;transform:translateY(10px) scale(.98)}to{opacity:1;transform:none}}@keyframes fox-think{0%,70%,100%{opacity:.4;transform:none}35%{opacity:1;transform:translateY(-3px)}}
@media(max-width:540px){.crm .fox-launcher{right:16px;bottom:calc(16px + env(safe-area-inset-bottom));width:58px;height:58px;padding:11px}.fox-chat-panel{left:12px;right:12px;bottom:calc(86px + env(safe-area-inset-bottom));width:auto;max-width:none;height:590px;max-height:calc(100dvh - 106px - env(safe-area-inset-bottom));border-radius:17px}.fox-chat-header{padding:14px}.fox-chat-log{padding:16px 13px 10px}.fox-chat-compose{padding:11px 13px 8px}.fox-chat-footer{padding:0 13px 10px}}
@media(prefers-reduced-motion:reduce){.fox-chat-panel,.fox-typing>span{animation:none}.crm .fox-launcher{transition:none}}
