#alexAIWidget,#alexAIWidget *{box-sizing:border-box}
#alexAIWidget{font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
#alexAIButton{position:fixed;right:22px;bottom:22px;width:64px;height:64px;border:0;border-radius:50%;cursor:grab;z-index:2147483000;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#0f172a,#2563eb);box-shadow:0 12px 34px rgba(0,0,0,.28);touch-action:none;user-select:none;transition:transform .16s ease,box-shadow .16s ease}
#alexAIButton:hover{transform:scale(1.06);box-shadow:0 15px 40px rgba(37,99,235,.38)}
#alexAIButton.alex-dragging{cursor:grabbing;transform:scale(1.04)}
#alexAIButton svg{width:38px;height:38px;display:block;pointer-events:none}
#alexAIBadge{position:absolute;right:0;top:0;width:15px;height:15px;border:2px solid #fff;border-radius:50%;background:#22c55e}
#alexAIPanel{position:fixed;right:18px;bottom:96px;width:min(390px,calc(100vw - 24px));height:min(650px,calc(100vh - 115px));min-height:460px;background:#fff;border:1px solid rgba(15,23,42,.1);border-radius:20px;box-shadow:0 24px 70px rgba(15,23,42,.28);z-index:2147482999;overflow:hidden;display:none;flex-direction:column}
#alexAIPanel.alex-open{display:flex}
.alex-head{padding:14px 15px;background:linear-gradient(135deg,#0f172a,#1d4ed8);color:#fff;display:flex;align-items:center;gap:11px}
.alex-avatar{width:42px;height:42px;border-radius:14px;background:rgba(255,255,255,.14);display:flex;align-items:center;justify-content:center;flex:none}.alex-avatar svg{width:27px;height:27px}
.alex-title{font-size:15px;font-weight:800;line-height:1.15}.alex-status{font-size:11px;opacity:.8;margin-top:3px}.alex-close{margin-left:auto;border:0;background:rgba(255,255,255,.12);color:#fff;width:34px;height:34px;border-radius:10px;cursor:pointer;font-size:19px}
.alex-body{flex:1;min-height:0;background:#f8fafc;display:flex;flex-direction:column}
.alex-messages{flex:1;min-height:0;overflow-y:auto;padding:13px 12px 8px;scroll-behavior:smooth}
.alex-msg{display:flex;margin:0 0 10px}.alex-msg.bot{justify-content:flex-start}.alex-msg.user{justify-content:flex-end}.alex-bubble{max-width:88%;padding:10px 12px;border-radius:14px;font-size:13px;line-height:1.48;white-space:pre-wrap;overflow-wrap:anywhere;word-break:break-word}.alex-msg.bot .alex-bubble{background:#fff;color:#0f172a;border:1px solid #e2e8f0;border-bottom-left-radius:5px}.alex-msg.user .alex-bubble{background:#2563eb;color:#fff;border-bottom-right-radius:5px}
.alex-quick{padding:8px 10px;display:grid;grid-template-columns:1fr 1fr;gap:7px;border-top:1px solid #e2e8f0;background:#fff;max-height:178px;overflow:auto}.alex-quick button{min-width:0;border:1px solid #dbe3ee;background:#f8fafc;color:#0f172a;border-radius:10px;padding:9px 7px;font-size:11px;font-weight:700;cursor:pointer;line-height:1.2}.alex-quick button:hover{background:#eff6ff;border-color:#93c5fd;color:#1d4ed8}
.alex-input{display:flex;gap:7px;padding:9px;background:#fff;border-top:1px solid #e2e8f0}.alex-input textarea{flex:1;min-width:0;resize:none;height:42px;max-height:100px;border:1px solid #dbe3ee;border-radius:11px;padding:10px;font:inherit;font-size:13px;outline:none}.alex-input textarea:focus{border-color:#60a5fa;box-shadow:0 0 0 3px rgba(96,165,250,.14)}.alex-send{width:45px;border:0;border-radius:11px;background:#2563eb;color:#fff;cursor:pointer;font-size:18px}.alex-send:disabled{opacity:.55;cursor:not-allowed}
.alex-support{padding:14px}.alex-support h3{margin:0 0 5px;font-size:16px}.alex-support p{margin:0 0 11px;font-size:12px;color:#64748b}.alex-field{margin:0 0 9px}.alex-field label{display:block;font-size:11px;font-weight:800;color:#334155;margin-bottom:4px}.alex-field input,.alex-field select,.alex-field textarea{width:100%;border:1px solid #dbe3ee;border-radius:10px;padding:9px;font:inherit;font-size:12px;outline:none;background:#fff}.alex-field textarea{min-height:92px;resize:vertical}.alex-support-actions{display:flex;gap:7px}.alex-primary,.alex-secondary{flex:1;border:0;border-radius:10px;padding:10px;font-size:12px;font-weight:800;cursor:pointer}.alex-primary{background:#2563eb;color:#fff}.alex-secondary{background:#e2e8f0;color:#0f172a}.alex-links{display:flex;gap:7px;margin-top:9px}.alex-links a{flex:1;text-align:center;text-decoration:none;border-radius:10px;padding:9px;font-size:11px;font-weight:800}.alex-wa{background:#dcfce7;color:#166534}.alex-tg{background:#dbeafe;color:#1d4ed8}
.alex-typing{display:inline-flex;gap:4px;padding:11px 13px}.alex-typing i{width:5px;height:5px;border-radius:50%;background:#94a3b8;animation:alexDot 1s infinite}.alex-typing i:nth-child(2){animation-delay:.15s}.alex-typing i:nth-child(3){animation-delay:.3s}@keyframes alexDot{0%,60%,100%{opacity:.35;transform:translateY(0)}30%{opacity:1;transform:translateY(-3px)}}
@media(max-width:520px){#alexAIButton{right:14px;bottom:14px;width:58px;height:58px}#alexAIPanel{right:7px;bottom:82px;width:calc(100vw - 14px);height:calc(100vh - 98px);min-height:420px;border-radius:17px}.alex-quick{grid-template-columns:1fr 1fr;max-height:165px}.alex-bubble{max-width:92%}}
