#mbg-chat-root{font:14px/1.5 Arial,sans-serif;color:#f5f5f5;position:relative;z-index:1600}#mbg-chat-root *{box-sizing:border-box}#mbg-chat-root [hidden]{display:none!important}#mbg-chat-root button,#mbg-chat-root a{font:inherit}#mbg-chat-root button{cursor:pointer;border:1px solid #666;border-radius:6px;padding:9px 12px;color:#fff;background:#292929}#mbg-chat-root button:disabled{opacity:.5;cursor:wait}#mbg-chat-root :focus-visible{outline:3px solid #ff9a9e;outline-offset:3px}#mbg-chat-root .mbg-chat-bubble{position:fixed;right:20px;bottom:calc(20px + env(safe-area-inset-bottom));border:1px solid #ff9296;border-radius:50%;background:#cb2631;box-shadow:0 5px 24px #0008;padding:0;width:56px;height:56px;display:grid;place-items:center;min-height:56px}#mbg-chat-count{position:absolute;top:-5px;right:-5px;min-width:22px;border:2px solid #cb2631;border-radius:20px;background:#fff;color:#a91923;padding:1px 5px;font-size:12px;font-weight:bold;line-height:16px;text-align:center}#mbg-chat-toggle svg{display:block}#mbg-chat-panel{position:fixed;right:20px;bottom:calc(84px + env(safe-area-inset-bottom));width:380px;max-width:calc(100vw - 24px);height:min(580px,calc(100dvh - 110px));display:flex;flex-direction:column;background:#161616;border:1px solid #6f353b;border-radius:12px;box-shadow:0 10px 60px #000a;overflow:hidden}#mbg-chat-panel header{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:15px;background:#101010;border-bottom:3px solid #d92c34}#mbg-chat-panel h2{font-size:18px;margin:0;color:white}#mbg-chat-panel header small{display:block;color:#b9b9b9;font-size:11px;margin-top:3px}#mbg-chat-status{padding:8px 14px;margin:0;font-size:12px;color:#ffd2d5}#mbg-chat-body{display:flex;flex-direction:column;min-height:0;flex:1;overflow:hidden}#mbg-chat-info{padding:16px;overflow:auto}#mbg-chat-info a{color:#ffb4b7}#mbg-chat-threads{flex:1;overflow:auto;padding:12px}#mbg-chat-threads button.mbg-chat-thread{display:block;width:100%;margin:0 0 10px;text-align:left;padding:13px;border-color:#4c4c4c}#mbg-chat-threads strong,#mbg-chat-threads small{display:block}#mbg-chat-threads small{font-size:11px;color:#ccc}#mbg-chat-threads .mbg-unread{border-left:4px solid #ef4751!important}#mbg-chat-toolbar{display:flex;gap:8px;padding:8px 12px;border-bottom:1px solid #333}#mbg-chat-toolbar button{font-size:11px;padding:6px 8px}#mbg-chat-toolbar .mbg-delete{margin-left:auto;color:#ffbcc0;border-color:#87444c}#mbg-chat-messages{overflow:auto;flex:1;padding:12px;min-height:60px;overflow-wrap:anywhere}#mbg-chat-messages article{padding:10px 12px;border-radius:9px;background:#272727;margin:0 20px 12px 0}#mbg-chat-messages article.mbg-coach{margin:0 0 12px 20px;background:#3a1f23;border:1px solid #6d343d}#mbg-chat-messages small{display:block;font-size:10px;color:#bdbdbd}#mbg-chat-messages p{white-space:pre-wrap;margin:7px 0 0;color:#f0f0f0;font-size:14px;line-height:1.5}#mbg-chat-form{padding:10px 12px;border-top:1px solid #414141}#mbg-chat-form label{font-size:12px;display:block;margin:0 0 5px}#mbg-chat-form textarea{display:block;width:100%;min-height:60px;max-height:110px;resize:vertical;border-radius:6px;border:1px solid #666;background:#101010;color:white;font:16px/1.4 Arial;padding:9px;margin:0 0 7px}#mbg-chat-form button{background:#c92a34;border:0;width:100%;font-weight:bold}#mbg-chat-note{padding:7px 12px;color:#aaa;font-size:10px;margin:0;border-top:1px solid #333}#mbg-chat-note a{color:#ccc}#mbg-chat-toast{position:fixed;right:20px;bottom:90px;max-width:300px;padding:14px;background:#292023;border:1px solid #e95560;border-radius:9px;box-shadow:0 5px 30px #0008}#mbg-chat-toast p{margin:0 0 10px;color:#fff}.back-to-top{right:96px!important}@media(max-width:600px){#mbg-chat-root .mbg-chat-bubble{right:14px;bottom:calc(88px + env(safe-area-inset-bottom));padding:0}#mbg-chat-panel{inset:12px 10px calc(84px + env(safe-area-inset-bottom));width:auto;height:auto;max-width:none}#mbg-chat-toast{right:14px;bottom:150px}.back-to-top{right:96px!important;bottom:calc(90px + env(safe-area-inset-bottom))!important}}

#mbg-chat-panel #mbg-chat-availability{font-size:12px;line-height:1.4;margin-top:5px;color:#ddd}#mbg-chat-availability[data-online]::before{content:"";display:inline-block;width:8px;height:8px;border-radius:50%;margin-right:6px;background:#999}#mbg-chat-availability[data-online=yes]::before{background:#73d994}#mbg-chat-availability[data-online=yes]{color:#a9ebbd!important}

#mbg-chat-messages a{color:#ffb4b7;text-decoration:underline;overflow-wrap:anywhere}#mbg-chat-shortcuts{margin:0 0 9px}.mbg-chat-shortcut-row{display:flex;gap:6px;align-items:stretch}#mbg-chat-page{min-width:0;flex:1;background:#101010;color:white;border:1px solid #666;border-radius:5px;padding:7px;font:13px Arial}#mbg-chat-form #mbg-chat-insert{width:auto;flex:0 0 auto;font-size:12px;padding:7px 9px;background:#393939;border:1px solid #666}@media(max-width:380px){.mbg-chat-shortcut-row{flex-direction:column}}

/* Isolate chat controls from member-page full-width button/header rules. */
#mbg-chat-panel header{flex-direction:row;text-align:left}#mbg-chat-panel header>div{min-width:0}#mbg-chat-panel header button,#mbg-chat-toolbar button{width:auto;flex:0 0 auto;min-width:44px;min-height:44px}#mbg-chat-panel header small{overflow-wrap:anywhere}#mbg-chat-panel h2{overflow-wrap:anywhere}@media(min-width:601px) and (max-width:767px){#mbg-chat-root .mbg-chat-bubble{bottom:calc(88px + env(safe-area-inset-bottom))}#mbg-chat-panel{bottom:calc(152px + env(safe-area-inset-bottom));height:min(580px,calc(100dvh - 176px))}.back-to-top{bottom:calc(90px + env(safe-area-inset-bottom))!important}}
