.chat-launcher{position:fixed;z-index:2147483647;right:max(26px,env(safe-area-inset-right));bottom:calc(24px + env(safe-area-inset-bottom));width:62px;height:62px;display:grid;place-items:center;border:1px solid #ffffff66;border-radius:20px;background:#173e49;color:#fff;box-shadow:0 8px 24px #16313d30;transition:transform .2s}.chat-launcher:hover{transform:translateY(-3px)}.chat-launcher svg{width:30px;height:30px}.chat-launcher .chat-spark{position:absolute;right:11px;top:9px;color:#b9fbff}.chat-launcher .chat-spark svg{width:15px;height:15px}.chat-panel{position:fixed;inset:auto max(26px,env(safe-area-inset-right)) calc(100px + env(safe-area-inset-bottom)) auto;z-index:2147483647;margin:0;padding:0;width:370px;height:min(520px,calc(100dvh - 125px));max-width:calc(100vw - 32px);border:1px solid #d5e3df;border-radius:20px;background:#fff;color:#203d43;box-shadow:0 18px 65px #143b3d25;overflow:hidden;font-family:inherit}.chat-panel.has-conversation{height:min(520px,calc(100dvh - 125px))}.chat-panel:not(:popover-open){display:none}.chat-panel:popover-open{display:flex;flex-direction:column}.chat-panel::backdrop{background:transparent;pointer-events:none}#ai-chat .chat-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:17px 20px;background:#fff;color:#284b43;border-bottom:1px solid #eef2ef;flex-shrink:0}.chat-head h2{font-size:16px;font-weight:600;margin:0;letter-spacing:-.2px}#ai-chat .chat-head .icon-button{font-size:25px;color:#779287;width:28px;height:28px;border-radius:50%;margin:0}#ai-chat .chat-head .icon-button:hover{background:#f0f5f2}.chat-messages{padding:22px 20px;overflow-y:auto;overscroll-behavior:contain;flex:1;min-height:0;background:#fff;display:flex;flex-direction:column;gap:14px;scrollbar-width:thin}.chat-message{max-width:94%;align-self:flex-start;flex-shrink:0}.chat-message[hidden]{display:none}.chat-bubble{background:#f0f5f3;border:0;border-radius:14px;padding:11px 14px;font-size:14px;line-height:1.8;white-space:pre-wrap;overflow-wrap:anywhere;color:#2b4852}.chat-message.user{align-self:flex-end;max-width:88%}.chat-message.user .chat-bubble{background:#1c666b;color:#fff;border-radius:14px}.chat-welcome{max-width:100%;width:100%;margin-top:5px}#ai-chat .chat-welcome .chat-bubble{background:none;padding:0;border:0;font-size:21px;line-height:1.5;font-weight:550;color:#294c41}.chat-suggestions{display:flex;gap:8px;flex-wrap:wrap;margin-top:22px}.chat-suggestions button{border:1px solid #dce7e0;border-radius:8px;padding:8px 11px;color:#4c7d68;background:#fff;font-size:12px}.chat-suggestions button:hover{background:#eef5f0}.chat-compose{padding:12px 16px max(14px,env(safe-area-inset-bottom));background:#fff;flex-shrink:0}.chat-input-row{display:flex;align-items:flex-end;gap:8px;border:1px solid #d2e0dc;background:#f7faf9;border-radius:12px;padding:6px}.chat-input-row:focus-within{border-color:#4c9d8e;box-shadow:0 0 0 2px #4c9d8e0c}.chat-input-row textarea{border:0;background:none;outline:none!important;resize:none;min-height:38px;max-height:100px;width:100%;padding:8px 6px;font-family:inherit;font-size:16px;line-height:22px;color:#294c41}.chat-input-row textarea::placeholder{color:#91a79c}.chat-send{display:grid;place-items:center;width:36px;height:36px;flex-shrink:0;border-radius:9px;background:#1c666b;color:#fff}.chat-send:disabled{background:#e3ece7;color:#99b0a3;cursor:default}.chat-send svg{width:19px;height:19px}.chat-sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.chat-panel button:focus-visible{outline:2px solid #3c8269;outline-offset:2px}
@media(max-width:500px){.chat-launcher{right:18px;bottom:calc(18px + env(safe-area-inset-bottom));width:56px;height:56px;border-radius:19px}.chat-panel{right:12px;bottom:calc(86px + env(safe-area-inset-bottom));width:calc(100vw - 24px);max-width:none;height:min(480px,calc(100dvh - 108px));border-radius:18px}.chat-panel.has-conversation{height:min(480px,calc(100dvh - 108px))}#ai-chat .chat-head{padding:15px 18px}.chat-messages{padding:20px 18px}.chat-bubble{font-size:15px}.chat-suggestions{gap:6px}.chat-suggestions button{padding:8px 10px}}
@media(prefers-reduced-motion:reduce){.chat-launcher{transition:none}}
