.support-launcher{position:fixed;right:max(16px,env(safe-area-inset-right));bottom:calc(16px + env(safe-area-inset-bottom));z-index:40;display:flex;align-items:center;gap:8px;min-height:44px;padding:10px 16px;border:0;border-radius:24px;background:#2635d9;color:white;font:inherit;font-size:13px;box-shadow:0 5px 24px #2635d930}
.support-launcher[hidden],.support-widget[hidden]{display:none}
.support-widget{position:fixed;right:max(16px,env(safe-area-inset-right));bottom:calc(72px + env(safe-area-inset-bottom));z-index:45;width:360px;max-width:calc(100vw - 32px);max-height:calc(100dvh - 100px - env(safe-area-inset-top) - env(safe-area-inset-bottom));padding:16px;background:#fff;border:1px solid #dce4f1;border-radius:18px;box-shadow:0 12px 50px #14264d30;overflow-y:auto}
.support-widget-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid #e8edf5;padding-bottom:12px}.support-widget-heading small{display:block;margin-top:6px}.support-widget-heading button{width:44px;height:44px;flex-shrink:0;border:1px solid #e2e7f0;border-radius:10px;background:#fff;font-size:26px;color:#2635d9}
.support-presence{font-size:12px;color:#7b879c;line-height:1.8}.support-presence.online{color:#087b4f}.support-hint,.support-empty{font-size:13px;line-height:1.9;color:#75829a}.support-empty{padding:16px;text-align:center}
.support-messages{height:320px;max-height:42dvh;overflow:auto;overscroll-behavior:contain;padding:12px 2px;display:flex;flex-direction:column;gap:10px;scrollbar-width:thin}
.support-message{width:fit-content;max-width:90%;padding:10px 12px;border-radius:12px;background:#eef2ff;align-self:flex-start;flex-shrink:0}.support-message.from-staff{background:#eff8f4;align-self:flex-end}.support-message p{white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px;line-height:1.8;margin:5px 0}.support-message small,.support-message time{font-size:10px;color:#677792}
.support-composer{display:flex;align-items:flex-end;gap:8px;margin-top:10px}.support-composer textarea{width:100%;min-width:0;min-height:48px;max-height:140px;padding:10px;border:1px solid #dce4ef;border-radius:10px;font:inherit;font-size:16px;resize:vertical}.support-composer .ui-button{min-height:44px;padding:8px 12px;font-size:13px;flex-shrink:0;align-self:flex-end!important}.support-feedback{font-size:12px;color:#a13e2c;line-height:1.8;margin:8px 0 0}.support-feedback:empty{display:none}
.support-staff-grid{display:grid;grid-template-columns:minmax(220px,1fr) minmax(0,2fr);gap:18px}.support-thread-list{max-height:480px;overflow:auto}.support-thread{display:block;width:100%;min-height:48px;padding:12px;text-align:right;border:1px solid #e3e8f1;border-radius:12px;background:#fff;font:inherit;color:#22385e;margin:8px 0}.support-thread.selected{border-color:#8d9bff;background:#f1f4ff}.support-thread span{display:block;margin-top:6px;font-size:12px;color:#6b7a91;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.support-thread small{display:inline-block;margin-right:8px;color:#2635d9;font-size:11px}
.support-tickets details{border-bottom:1px solid #e2e7f0;padding:14px 0}.support-tickets summary{cursor:pointer;font-size:14px;line-height:1.8}.support-tickets summary small{display:block;color:#748299}.support-ticket-body{white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px;line-height:1.9;padding:14px;border-radius:12px;background:#f4f7fc}.support-ticket-body.from-staff{background:#eff8f4}
.support-guest p{font-size:14px;line-height:1.9}
.portal-user-actions{display:flex;flex-direction:column;align-items:flex-start;gap:8px}.portal-user-actions .ui-button{white-space:nowrap!important;flex-shrink:0}
body:has(.panel-menu-open) .support-launcher{display:none}
.support-composer .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:850px){.support-staff-grid{grid-template-columns:minmax(0,1fr)}.support-thread-list{max-height:220px}.support-messages{height:300px}.support-widget{padding:12px}.support-launcher{padding:10px 13px}.support-launcher .bmx-icon{width:18px;height:18px}}
@media(hover:none) and (max-height:500px){.support-widget{bottom:calc(12px + env(safe-area-inset-bottom));right:72px;max-height:calc(100dvh - 24px - env(safe-area-inset-top) - env(safe-area-inset-bottom))}.support-messages{height:120px;max-height:30dvh}.support-launcher span{display:none}.support-launcher{width:44px;justify-content:center;padding:10px}}
