.chat-widget{position:fixed;right:24px;bottom:calc(24px + env(safe-area-inset-bottom));z-index:1000;display:flex;flex-direction:column;align-items:flex-end;gap:12px;font-family:system-ui,sans-serif;color:#492e3d}
.chat-panel{width:min(390px,calc(100vw - 48px));height:min(600px,calc(100dvh - 110px - env(safe-area-inset-bottom)));min-height:340px;display:flex;flex-direction:column;overflow:hidden;background:#fffdfd;border:1px solid #efdee6;border-radius:22px;box-shadow:0 14px 45px #653b5030;animation:chat-panel-in .18s ease-out}
.chat-panel[hidden],.chat-launcher[hidden]{display:none}
@keyframes chat-panel-in{from{opacity:0;transform:translateY(8px) scale(.98)}to{opacity:1;transform:translateY(0) scale(1)}}
.chat-head{display:flex;align-items:center;gap:11px;flex:none;padding:14px 15px;border-bottom:1px solid #f2e4eb;background:#fff}
.chat-avatar{width:40px;height:40px;display:grid;place-items:center;flex:none;border-radius:50%;background:linear-gradient(145deg,#d58aaa,#a94f78);color:#fff;font:20px Georgia,serif}
.chat-head-copy{min-width:0;flex:1}.chat-head-copy strong{display:block;font-size:14px}.chat-head-copy small{display:block;margin-top:4px;color:#977487;font-size:11px}
.chat-status{display:flex;align-items:center;gap:6px;color:#7d956e;font-size:10px}.chat-status:before{content:'';width:7px;height:7px;border-radius:50%;background:#91b67b}
.chat-minimize{width:34px;height:34px;display:grid;place-items:center;border:0;border-radius:11px;background:#faeaf1;color:#8c4a6b;font-size:23px;line-height:1;cursor:pointer}
.chat-feed{flex:1;min-height:0;overflow:auto;display:flex;flex-direction:column;gap:12px;padding:16px 14px;background:linear-gradient(#fffdfd,#fffafd)}
.chat-message{max-width:88%;padding:11px 13px;border-radius:16px;font-size:13px;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere}
.chat-message--assistant{align-self:flex-start;color:#68465a;background:#f7edf2;border-bottom-left-radius:5px}.chat-message--user{align-self:flex-end;color:#fff;background:#b65f86;border-bottom-right-radius:5px}.chat-message--pending{opacity:.7}
.chat-note{flex:none;margin:0;padding:9px 13px;border-top:1px solid #f5e8ee;color:#9a7c8d;font-size:10px;line-height:1.4;text-align:center}
.chat-form{display:flex;align-items:flex-end;gap:9px;flex:none;padding:11px;border-top:1px solid #f2e4eb;background:#fff}
.chat-input{min-height:43px;max-height:100px;resize:none;flex:1;border:1px solid #ecd8e2;border-radius:15px;padding:11px;color:#653b50;font:inherit;font-size:13px;line-height:1.4;outline:none}.chat-input:focus{border-color:#c7809f;box-shadow:0 0 0 3px #f8e9f0}
.chat-send{width:43px;height:43px;display:grid;place-items:center;flex:none;border:0;border-radius:14px;background:#b65f86;color:#fff;font-size:22px;cursor:pointer}.chat-send:disabled{opacity:.55;cursor:wait}
.chat-launcher{position:fixed;right:24px;bottom:calc(24px + env(safe-area-inset-bottom));z-index:999;width:62px;height:62px;display:grid;place-items:center;border:0;border-radius:50%;background:#a83d70;color:white;box-shadow:0 7px 24px #653b5040;cursor:pointer;transition:transform .2s,background .2s}
.chat-launcher:hover{background:#852d55;transform:translateY(-2px)}.chat-launcher svg{width:29px;height:29px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.chat-launcher__dot{position:absolute;top:3px;right:3px;width:13px;height:13px;border:2px solid white;border-radius:50%;background:#92b77b}
.honeypot{position:absolute!important;left:-10000px!important;width:1px!important;height:1px!important;opacity:0!important}.privacy-copy{max-width:440px;margin:10px auto;color:#876b7b;font-size:11px;text-align:left}
@media(max-width:600px){.chat-widget{right:14px;bottom:calc(14px + env(safe-area-inset-bottom));gap:0}.chat-launcher{right:14px;bottom:calc(14px + env(safe-area-inset-bottom));width:58px;height:58px}.chat-panel{width:calc(100vw - 28px);height:calc(100dvh - 28px - env(safe-area-inset-top) - env(safe-area-inset-bottom));max-height:720px;min-height:0;border-radius:21px}.chat-head{padding:13px}.chat-feed{padding:15px 12px}}
@media(prefers-reduced-motion:reduce){.chat-panel{animation:none}.chat-launcher{transition:none}}
