/* Chat IA: pallino in basso a destra con il solo simbolo Health-X; si apre piccola o a tutto schermo. */
.hxcw-launcher{position:fixed;right:22px;bottom:22px;z-index:900;width:62px;height:62px;border-radius:50%;border:1px solid #cfe4ec;background:#fff;box-shadow:0 8px 24px rgba(15,60,80,.25);display:grid;place-items:center;cursor:pointer;padding:0;transition:transform .15s}
.hxcw-launcher:hover{transform:scale(1.06)}
.hxcw-launcher:focus-visible{outline:3px solid #14a3b8;outline-offset:3px}
.hxcw-launcher img{width:42px;height:42px;object-fit:contain;pointer-events:none}
.hxcw-launcher[hidden],.hxcw-panel[hidden]{display:none}
.hxcw-panel{position:fixed;right:22px;bottom:96px;z-index:910;width:392px;height:min(600px,calc(100vh - 120px));display:flex;flex-direction:column;background:#fff;border:1px solid #cfe4ec;border-radius:16px;box-shadow:0 18px 48px rgba(15,60,80,.3);overflow:hidden}
.hxcw-panel[data-expanded=true]{inset:0;width:auto;height:auto;border-radius:0;border:0}
.hxcw-head{display:flex;align-items:center;gap:10px;padding:10px 14px;border-bottom:1px solid #e2ece7;background:#f5fafc}
.hxcw-head strong{flex:1;font-size:15px;color:#183b38}
.hxcw-head img{width:26px;height:26px;object-fit:contain}
.hxcw-head button{width:34px;height:34px;border:1px solid #cfe4ec;border-radius:8px;background:#fff;cursor:pointer;font-size:16px;line-height:1;color:#24333b}
.hxcw-body{flex:1;min-height:0;overflow:auto;padding:12px}
.hxcw-panel[data-expanded=true] .hxcw-body{padding:18px max(18px,calc((100vw - 900px)/2))}
.hxcw-body .hxc{max-width:none;height:100%;grid-template-rows:auto 1fr auto auto auto}
.hxcw-body .hxc-log{min-height:0;max-height:none;height:auto}
@media (max-width:560px){.hxcw-panel:not([data-expanded=true]){right:12px;left:12px;width:auto;bottom:90px}.hxcw-launcher{right:14px;bottom:14px}}
