.nexus-ai{--chat-navy:#06152f;--chat-navy-2:#0a2945;--chat-teal:#19c4bb;--chat-line:#dce7eb;--chat-muted:#60727e;position:fixed;right:22px;bottom:22px;z-index:1500;font-family:"DM Sans","Segoe UI",Arial,sans-serif;color:#14222f}
.nexus-ai *{box-sizing:border-box}.nexus-ai button,.nexus-ai input,.nexus-ai textarea,.nexus-ai select{font:inherit}
.nexus-ai-launcher{display:flex;align-items:center;gap:11px;min-height:56px;padding:11px 19px 11px 11px;border:0;border-radius:999px;background:linear-gradient(135deg,#1dd0c5,#17afa9);color:#032438;font-weight:700;box-shadow:0 18px 46px rgba(6,21,47,.26);cursor:pointer;transition:transform .2s,box-shadow .2s}
.nexus-ai-launcher:hover{transform:translateY(-2px);box-shadow:0 22px 54px rgba(6,21,47,.32)}
.nexus-ai-launcher-icon{display:grid;place-items:center;width:36px;height:36px;border-radius:50%;background:rgba(255,255,255,.78)}.nexus-ai-launcher svg{width:20px;height:20px}
.nexus-ai-panel{position:absolute;right:0;bottom:70px;width:min(390px,calc(100vw - 28px));height:min(650px,calc(100vh - 110px));overflow:hidden;border:1px solid rgba(255,255,255,.18);border-radius:26px;background:#fff;box-shadow:0 28px 90px rgba(3,17,35,.34)}
.nexus-ai-header{display:grid;grid-template-columns:44px 1fr 38px;align-items:center;gap:12px;padding:16px 16px 15px;background:linear-gradient(135deg,var(--chat-navy),var(--chat-navy-2));color:#fff}
.nexus-ai-brandmark{display:grid;place-items:center;width:44px;height:44px;border-radius:14px;background:linear-gradient(135deg,#20d3c8,#62e1d8);color:#06203a;font-weight:950;font-size:1.25rem}
.nexus-ai-header strong{display:block;font-size:1rem}.nexus-ai-header span{display:flex;align-items:center;gap:6px;margin-top:3px;color:#bcd0d9;font-size:.76rem}.nexus-ai-header i{display:block;width:8px;height:8px;border-radius:50%;background:#4ddd96;box-shadow:0 0 0 4px rgba(77,221,150,.12)}
.nexus-ai-close{width:36px;height:36px;border:1px solid rgba(255,255,255,.17);border-radius:11px;background:rgba(255,255,255,.06);color:#fff;font-size:1.5rem;line-height:1;cursor:pointer}
.nexus-ai-body{height:calc(100% - 75px)}.nexus-ai-chat-view,.nexus-ai-lead-view{height:100%;padding:16px;background:linear-gradient(180deg,#f7fbfc 0%,#fff 100%)}
.nexus-ai-chat-view{display:flex;flex-direction:column}.nexus-ai-chat-view[hidden],.nexus-ai-lead-view[hidden]{display:none}
.nexus-ai-messages{flex:1;overflow-y:auto;padding:1px 3px 12px;scrollbar-width:thin;scrollbar-color:#b9cbd1 transparent}
.nexus-ai-message{display:flex;margin:8px 0}.nexus-ai-message>div{max-width:86%;padding:12px 14px;border-radius:17px;white-space:pre-wrap;overflow-wrap:anywhere;font-size:.93rem;line-height:1.48}
.nexus-ai-message.is-assistant{justify-content:flex-start}.nexus-ai-message.is-assistant>div{background:#fff;border:1px solid var(--chat-line);border-bottom-left-radius:5px;box-shadow:0 8px 24px rgba(6,21,47,.055)}
.nexus-ai-message.is-user{justify-content:flex-end}.nexus-ai-message.is-user>div{background:var(--chat-navy-2);color:#fff;border-bottom-right-radius:5px}
.nexus-ai-quick{display:flex;flex-wrap:wrap;gap:7px;padding:4px 0 10px}.nexus-ai-quick button{padding:8px 10px;border:1px solid #b9d9dc;border-radius:999px;background:#fff;color:#0b6e70;font-size:.78rem;font-weight:700;cursor:pointer}.nexus-ai-quick button:hover{background:#e8f8f6}
.nexus-ai-typing{display:flex;align-items:center;gap:4px;padding:7px 4px 10px;color:var(--chat-muted);font-size:.76rem}.nexus-ai-typing span{width:6px;height:6px;border-radius:50%;background:#7aa3ae;animation:nexusAiDot 1.1s infinite}.nexus-ai-typing span:nth-child(2){animation-delay:.14s}.nexus-ai-typing span:nth-child(3){animation-delay:.28s}.nexus-ai-typing em{font-style:normal;margin-left:5px}@keyframes nexusAiDot{0%,70%,100%{transform:translateY(0);opacity:.45}35%{transform:translateY(-4px);opacity:1}}
.nexus-ai-compose{display:grid;grid-template-columns:1fr 44px;gap:8px;align-items:end;padding:8px;border:1px solid var(--chat-line);border-radius:17px;background:#fff;box-shadow:0 8px 26px rgba(6,21,47,.06)}
.nexus-ai-compose textarea{width:100%;max-height:118px;resize:none;border:0;outline:0;padding:7px 5px;background:transparent;color:#162735;line-height:1.4}.nexus-ai-compose button{display:grid;place-items:center;width:42px;height:42px;border:0;border-radius:13px;background:var(--chat-teal);color:#04243a;cursor:pointer}.nexus-ai-compose button:disabled{opacity:.5;cursor:wait}.nexus-ai-compose svg{width:19px;height:19px}
.nexus-ai-human{width:100%;margin-top:9px;padding:9px;border:0;background:transparent;color:#087c79;font-size:.82rem;font-weight:700;cursor:pointer}.nexus-ai-note{margin:1px 6px 0;text-align:center;color:#7b8b94;font-size:.68rem;line-height:1.35}
.nexus-ai-lead-view{overflow-y:auto}.nexus-ai-back{padding:0;border:0;background:transparent;color:#087c79;font-weight:700;cursor:pointer}.nexus-ai-lead-view h3{margin:15px 0 5px;font-size:1.3rem}.nexus-ai-lead-view>p{margin:0 0 15px;color:var(--chat-muted);font-size:.9rem}
.nexus-ai-lead-form{display:grid;gap:11px}.nexus-ai-lead-form label{display:grid;gap:5px;color:#2c3c47;font-size:.78rem;font-weight:700}.nexus-ai-lead-form input,.nexus-ai-lead-form textarea,.nexus-ai-lead-form select{width:100%;padding:11px 12px;border:1px solid #cbdade;border-radius:12px;background:#fff;color:#14222f;outline:none}.nexus-ai-lead-form input:focus,.nexus-ai-lead-form textarea:focus,.nexus-ai-lead-form select:focus{border-color:#24bdb5;box-shadow:0 0 0 3px rgba(36,189,181,.12)}
.nexus-ai-consent{grid-template-columns:18px 1fr!important;align-items:start!important;gap:9px!important;font-weight:500!important;line-height:1.4!important}.nexus-ai-consent input{width:17px!important;height:17px;margin:2px 0 0;padding:0}.nexus-ai-consent a{color:#087c79;text-decoration:underline}.nexus-ai-hp{position:absolute!important;left:-9999px!important}
.nexus-ai-submit{padding:12px 16px;border:0;border-radius:999px;background:var(--chat-teal);color:#052438;font-weight:900;cursor:pointer}.nexus-ai-submit:disabled{opacity:.55;cursor:wait}.nexus-ai-form-status{min-height:1.2em;margin:0;color:#a23b3b;font-size:.78rem}.nexus-ai-form-status.is-success{color:#08765d}
@media(max-width:720px){.nexus-ai{right:10px;bottom:10px}.nexus-ai-launcher{min-height:52px;padding:8px 15px 8px 8px}.nexus-ai-launcher-icon{width:36px;height:36px}.nexus-ai-panel{position:fixed;inset:8px;width:auto;height:auto;border-radius:22px}.nexus-ai.is-open .nexus-ai-launcher{display:none}.nexus-ai-header{padding:13px 14px}.nexus-ai-chat-view,.nexus-ai-lead-view{padding:13px}.nexus-ai-message>div{max-width:90%}}
@media(prefers-reduced-motion:reduce){.nexus-ai-launcher,.nexus-ai-typing span{transition:none;animation:none}}

.nexus-ai-brandmark{padding:6px;background:#fff;border:1px solid rgba(32,211,200,.28)}
.nexus-ai-brandmark img{display:block;width:100%;height:auto;object-fit:contain}