:root{--hwr-agent-navy:#063246;--hwr-agent-navy2:#0b4865;--hwr-agent-cyan:#12a9dc;--hwr-agent-ink:#13232c;--hwr-agent-muted:#647680;--hwr-agent-line:#dce5e9;--hwr-agent-mist:#f4f8fa}
.hwr-assistant{position:fixed;right:24px;bottom:24px;z-index:9999;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--hwr-agent-ink)}
.hwr-assistant *{box-sizing:border-box}.hwr-assistant button,.hwr-assistant input,.hwr-assistant textarea{font:inherit}
.hwr-assistant__launcher{height:58px;border:0;border-radius:999px;padding:0 20px 0 10px;display:flex;align-items:center;gap:10px;background:linear-gradient(135deg,var(--hwr-agent-cyan),#0d87b4);color:#fff;font-weight:850;box-shadow:0 14px 38px rgba(6,50,70,.28);cursor:pointer;transition:.2s ease}
.hwr-assistant__launcher:hover{transform:translateY(-2px);box-shadow:0 18px 44px rgba(6,50,70,.34)}
.hwr-assistant__launcher-icon{width:40px;height:40px;border-radius:50%;display:grid;place-items:center;background:#fff;overflow:hidden;box-shadow:0 3px 10px rgba(0,0,0,.12)}
.hwr-assistant__launcher-icon img{width:30px;height:30px;object-fit:contain}.hwr-assistant__launcher-label{white-space:nowrap}
.hwr-assistant__panel{padding:0!important;position:absolute;right:0;bottom:72px;width:min(390px,calc(100vw - 32px));height:min(620px,calc(100vh - 130px));background:#fff;border:1px solid rgba(6,50,70,.13);border-radius:24px;box-shadow:0 28px 80px rgba(6,50,70,.24);overflow:hidden;display:none;flex-direction:column;transform-origin:bottom right}
.hwr-assistant.is-open .hwr-assistant__panel{display:flex;animation:hwrAgentIn .18s ease-out}@keyframes hwrAgentIn{from{opacity:0;transform:translateY(10px) scale(.98)}to{opacity:1;transform:none}}
.hwr-assistant__header{background:linear-gradient(135deg,var(--hwr-agent-navy),var(--hwr-agent-navy2));color:#fff;padding:18px 18px 16px;display:flex;align-items:center;gap:12px}
.hwr-assistant__avatar{width:46px;height:46px;border-radius:14px;background:#fff;display:grid;place-items:center;box-shadow:0 4px 12px rgba(0,0,0,.12)}.hwr-assistant__avatar img{width:34px;height:34px;object-fit:contain}
.hwr-assistant__header-copy{min-width:0;flex:1}.hwr-assistant__header-copy strong{display:block;font-size:1.08rem}.hwr-assistant__status{font-size:.78rem;color:#bfeefe;display:flex;gap:7px;align-items:center}.hwr-assistant__status:before{content:"";width:7px;height:7px;border-radius:50%;background:#35d07f;box-shadow:0 0 0 3px rgba(53,208,127,.16)}
.hwr-assistant__close{border:0;background:rgba(255,255,255,.12);color:#fff;width:34px;height:34px;border-radius:50%;cursor:pointer;font-size:20px;line-height:1}
.hwr-assistant__modes{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:10px;background:#eef5f8;border-bottom:1px solid var(--hwr-agent-line)}
.hwr-assistant__mode{border:0;border-radius:12px;padding:10px 12px;background:transparent;color:var(--hwr-agent-navy);font-weight:800;cursor:pointer}.hwr-assistant__mode.is-active{background:#fff;box-shadow:0 3px 12px rgba(6,50,70,.08)}
.hwr-assistant__view{display:none;min-height:0;flex:1}.hwr-assistant__view.is-active{display:flex;flex-direction:column}
.hwr-assistant__messages{flex:1;overflow:auto;padding:18px;display:flex;flex-direction:column;gap:12px;background:#fff}
.hwr-assistant__message{max-width:84%;padding:11px 14px;border-radius:16px;font-size:.92rem;line-height:1.48;white-space:pre-wrap;word-wrap:break-word}.hwr-assistant__message--agent{align-self:flex-start;background:var(--hwr-agent-mist);border:1px solid #e1ebef;border-bottom-left-radius:5px}.hwr-assistant__message--user{align-self:flex-end;background:var(--hwr-agent-navy);color:#fff;border-bottom-right-radius:5px}.hwr-assistant__message--system{align-self:center;background:transparent;color:var(--hwr-agent-muted);font-size:.78rem;text-align:center;max-width:95%}
.hwr-assistant__typing{align-self:flex-start;display:flex;gap:4px;padding:12px 14px;background:var(--hwr-agent-mist);border-radius:16px}.hwr-assistant__typing span{width:6px;height:6px;border-radius:50%;background:#8fa6b1;animation:hwrDot 1s infinite alternate}.hwr-assistant__typing span:nth-child(2){animation-delay:.18s}.hwr-assistant__typing span:nth-child(3){animation-delay:.36s}@keyframes hwrDot{to{opacity:.28;transform:translateY(-2px)}}
.hwr-assistant__composer{padding:12px;border-top:1px solid var(--hwr-agent-line);display:grid;grid-template-columns:1fr 48px;gap:8px;align-items:end;background:#fff}.hwr-assistant__composer textarea{display:block;width:100%;min-height:76px;max-height:132px;resize:none;overflow-y:auto;border:1px solid #cbd9df;border-radius:14px;padding:12px 13px;outline:none;color:var(--hwr-agent-ink);background:#fff;line-height:1.42}.hwr-assistant__composer textarea:focus{border-color:var(--hwr-agent-cyan);box-shadow:0 0 0 3px rgba(18,169,220,.12)}.hwr-assistant__send{height:48px;border:0;border-radius:13px;background:var(--hwr-agent-cyan);color:#fff;font-size:18px;font-weight:900;cursor:pointer;margin-bottom:0}.hwr-assistant__send:disabled{opacity:.45;cursor:default}
.hwr-assistant__voice{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:26px;text-align:center;background:linear-gradient(180deg,#fff,#f5f9fb)}
.hwr-assistant__voice-mark{position:relative;width:126px;height:126px;border-radius:50%;display:grid;place-items:center;background:radial-gradient(circle at 35% 30%,#5bd5ff,var(--hwr-agent-cyan) 42%,var(--hwr-agent-navy) 100%);box-shadow:0 18px 46px rgba(18,169,220,.25);margin-bottom:24px}.hwr-assistant__voice-mark:before,.hwr-assistant__voice-mark:after{content:"";position:absolute;inset:-12px;border:1px solid rgba(18,169,220,.22);border-radius:50%;opacity:0}.hwr-assistant.is-calling .hwr-assistant__voice-mark:before{animation:hwrPulse 1.7s infinite}.hwr-assistant.is-calling .hwr-assistant__voice-mark:after{animation:hwrPulse 1.7s .55s infinite}@keyframes hwrPulse{0%{transform:scale(.86);opacity:.7}100%{transform:scale(1.28);opacity:0}}
.hwr-assistant__voice-logo{width:66px;height:66px;object-fit:contain;filter:brightness(0) invert(1)}.hwr-assistant__voice h3{font-size:1.35rem;margin:0 0 7px;color:var(--hwr-agent-navy)}.hwr-assistant__voice p{margin:0 0 22px;color:var(--hwr-agent-muted);max-width:260px}.hwr-assistant__call-btn{border:0;border-radius:999px;min-width:180px;padding:14px 22px;color:#fff;background:linear-gradient(135deg,var(--hwr-agent-cyan),#0d87b4);font-weight:850;cursor:pointer;box-shadow:0 9px 24px rgba(18,169,220,.25)}.hwr-assistant.is-calling .hwr-assistant__call-btn{background:#e94b4b;box-shadow:0 9px 24px rgba(233,75,75,.23)}
.hwr-assistant__voice-note{margin-top:14px;font-size:.75rem!important;color:#82939c!important}.hwr-assistant__error{color:#b52e2e!important}
@media(max-width:720px){.hwr-assistant{right:14px;bottom:76px}.hwr-assistant__panel{position:fixed;left:12px;right:12px;bottom:72px;width:auto;height:min(620px,calc(100vh - 95px));border-radius:20px}.hwr-assistant__launcher{height:54px;padding-right:16px}.hwr-assistant__launcher-icon{width:37px;height:37px}.hwr-assistant__launcher-label{font-size:.9rem}}

/* v12.4 — keep Avery clear of the fixed mobile CTA bar */
@media(max-width:720px){
  .hwr-assistant{bottom:88px}
  .hwr-assistant__panel{bottom:82px;height:min(620px,calc(100vh - 112px))}
}
