.member-chat-launch{position:fixed;right:24px;bottom:24px;z-index:1050;display:flex;align-items:center;gap:8px;padding:13px 18px;border:1px solid #365d86;border-radius:28px;background:#365d86;color:#fff;font:600 14px Pretendard,system-ui,sans-serif;box-shadow:0 3px 14px #17243b20;cursor:pointer;transition:transform .18s ease,box-shadow .18s ease}.member-chat-launch:hover{transform:translateY(-2px);box-shadow:0 5px 18px #17243b30}.member-chat-launch:active{transform:translateY(0)}.member-chat-launch img{width:32px;height:28px;object-fit:contain}.member-chat-launch b{background:#ba4c58;color:#fff;border-radius:12px;min-width:20px;padding:2px 5px;font-size:11px}.member-chat-dialog{position:fixed;inset:auto 24px 90px auto;width:min(440px,calc(100vw - 32px));height:min(640px,calc(100dvh - 120px));max-height:none;max-width:none;margin:0;padding:0;border:1px solid #dde2e8;border-radius:12px;color:#252b34;background:#fff;box-shadow:0 12px 42px #15213724;overflow:hidden;font:13px Pretendard,system-ui,sans-serif}.member-chat-dialog[open]{display:flex;flex-direction:column;animation:member-chat-enter .18s ease-out}.member-chat-dialog::backdrop{background:#18233420}.member-chat-title{height:50px;flex:none;padding:0 16px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #dde2e8}.member-chat-title strong{font-size:14px;font-weight:600}.member-chat-title button{display:grid;place-items:center;border:0;background:none;color:#626b78;padding:6px;cursor:pointer}.member-chat-dialog [data-widget-content]{flex:1;min-height:0}.member-chat-dialog .support-chat{height:100%;min-height:0;border:0;display:block;max-width:none}.member-chat-dialog .support-conversations{display:none}.member-chat-dialog .support-thread{height:100%;display:flex!important}.member-chat-dialog .support-thread-header{min-height:52px;padding:10px 16px}.member-chat-dialog .support-back{display:none}.member-chat-dialog .support-message-scroll{padding:16px}.member-chat-dialog .support-composer{padding:12px 16px}.member-chat-dialog .chat-bubble{max-width:94%;font-size:13px}.member-chat-dialog [data-widget-error]{padding:16px;color:#ba4c58}.member-chat-dialog [hidden],.member-chat-launch [hidden]{display:none!important}.member-chat-launch:focus-visible,.member-chat-dialog button:focus-visible{outline:2px solid #7396ba;outline-offset:3px}@keyframes member-chat-enter{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}@media(max-width:600px){.member-chat-launch{right:16px;bottom:calc(16px + env(safe-area-inset-bottom));padding:12px 16px}.is-terminal .member-chat-launch{bottom:calc(84px + env(safe-area-inset-bottom))}.member-chat-dialog{inset:auto 12px calc(12px + env(safe-area-inset-bottom)) 12px;width:auto;height:min(700px,calc(100dvh - 40px));border-radius:10px}}@media(prefers-reduced-motion:reduce){.member-chat-dialog[open]{animation:none}}

@media(prefers-reduced-motion:reduce){.member-chat-launch{transition:none}.member-chat-launch:hover{transform:none}}

/* Member support follows the selected site theme, including its identity header. */
:root[data-theme=dark] .member-chat-dialog{background:#151e29;color:#e1e8f1;border-color:#344153}
:root[data-theme=dark] .member-chat-title,:root[data-theme=dark] .member-chat-dialog .support-thread-header{background:#151e29;color:#e1e8f1;border-color:#2b394b}
:root[data-theme=dark] .member-chat-dialog .support-thread,:root[data-theme=dark] .member-chat-dialog .support-message-scroll{background:#151e29;color:#e1e8f1}
:root[data-theme=dark] .member-chat-title button,:root[data-theme=dark] .member-chat-dialog .support-attach{color:#a6b6c9}
:root[data-theme=dark] .member-chat-dialog .support-composer{background:#151e29;border-color:#2b394b}
:root[data-theme=dark] .member-chat-dialog textarea{background:#1c2836;color:#e1e8f1;border-color:#3b4b60}
:root[data-theme=dark] .member-chat-dialog textarea::placeholder{color:#95a6bb}
:root[data-theme=dark] .member-chat-dialog .chat-bubble{background:#233144;color:#e1e8f1;border-color:#344153}
:root[data-theme=dark] .member-chat-dialog .chat-bubble-title,:root[data-theme=dark] .member-chat-dialog .chat-bubble-date,:root[data-theme=dark] .member-chat-dialog .chat-bubble-author{color:#a6b6c9}

/* Customer support reference: Bitget public launcher and 418px assistant shell. */
#chat-widget-root .member-chat-launch{width:44px;height:44px;min-width:44px;padding:0;justify-content:center;border:0;border-radius:16px;background:#03aac7;color:#fff;box-shadow:0 5px 18px #11111118;transition:background .18s,box-shadow .18s,transform .18s}
#chat-widget-root .member-chat-launch>span{display:none}
#chat-widget-root .member-chat-launch img{width:24px;height:24px;filter:brightness(0) invert(1)}
#chat-widget-root .member-chat-launch:hover{background:#009bb7;transform:translateY(-2px);box-shadow:0 7px 22px #03aac730}
#chat-widget-root .member-chat-launch[aria-expanded=true]{background:#151517}
#chat-widget-root .member-chat-launch b{position:absolute;right:-5px;top:-5px;min-width:18px;height:18px;box-sizing:border-box;padding:0 4px;display:grid;place-items:center;border:2px solid #fff;line-height:14px;font-size:10px}
#chat-widget-root .member-chat-dialog{inset:auto 24px 80px auto;width:min(418px,calc(100vw - 32px));height:min(725px,calc(100dvh - 110px));border:1px solid #e8e8ec;border-radius:16px;background:#fff;color:#151517;box-shadow:0 10px 32px #1f1f1f26;z-index:1100;transform-origin:bottom right}
#chat-widget-root .member-chat-dialog[open]{animation:customer-support-open .22s cubic-bezier(.2,.7,.2,1)}
#chat-widget-root .member-chat-title{height:62px;padding:0 18px;background:transparent;border:0;gap:12px}
#chat-widget-root .member-chat-title strong{display:flex;align-items:center;gap:9px;font-size:14px;min-width:0;letter-spacing:-.2px}
#chat-widget-root .member-chat-title strong svg{width:22px;height:22px;flex:none;color:#03aac7}
#chat-widget-root .member-chat-title button{width:30px;height:30px;flex:none;border-radius:6px;padding:5px;color:#74747e;transition:background .15s,color .15s}
#chat-widget-root .member-chat-title button:hover{background:#f3f4f5;color:#151517}
#chat-widget-root [data-widget-content]{overflow:hidden;position:relative}
#chat-widget-root .support-thread-header{border-top:1px solid #f0f0f2;border-bottom:1px solid #f0f0f2;padding:10px 18px;min-height:60px}
#chat-widget-root .support-message-scroll{padding:20px 16px;background:#fff}
#chat-widget-root .chat-bubble{max-width:90%;font-size:13px;line-height:1.65}
#chat-widget-root .support-composer{padding:12px 14px 16px;gap:8px;border-top:1px solid #eeeef0;background:#fff}
#chat-widget-root .support-composer textarea{min-width:0;min-height:44px;height:44px;box-sizing:border-box;line-height:20px;padding:11px 12px;background:#f5f5f7;border:1px solid transparent;border-radius:9px;font:13px/20px Pretendard,system-ui,sans-serif}
#chat-widget-root .support-composer textarea:focus{outline:0;border-color:#03aac7}
#chat-widget-root .support-composer button[type=submit]{width:36px;height:36px;border-radius:8px;background:#151517;border:0;color:#fff;flex:none}
#chat-widget-root .support-composer button[type=submit]:hover{background:#303034}
#chat-widget-root .support-chat-error:empty{display:none}
#chat-widget-root .member-chat-loading{position:absolute;inset:62px 0 0;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:14px;background:inherit;z-index:2;color:#898990}
#chat-widget-root .member-chat-loading>span{width:24px;height:24px;border:2px solid #eaeaed;border-left-color:#151517;border-radius:50%;animation:customer-support-loading .8s linear infinite}
#chat-widget-root [data-widget-error]{margin:0;padding:18px;color:inherit;background:#f5f5f7;font-size:13px;line-height:1.6}
#chat-widget-root [data-widget-retry]{margin-left:8px;background:none;border:0;text-decoration:underline;color:inherit;cursor:pointer}
#chat-widget-root .support-welcome{gap:16px;padding:24px;box-sizing:border-box;color:#74747e;text-align:center}
#chat-widget-root .support-welcome>svg{width:38px;height:38px;color:#03aac7}
#chat-widget-root .support-welcome button{background:#151517;color:#fff;border:0;border-radius:8px;padding:12px 28px}
@keyframes customer-support-open{from{opacity:0;transform:translateY(12px) scale(.98)}to{opacity:1;transform:none}}
@keyframes customer-support-loading{to{transform:rotate(360deg)}}
:root[data-theme=dark] #chat-widget-root .member-chat-dialog{background:#18181b;color:#f4f4f5;border-color:#333338;box-shadow:0 10px 32px #0005}
:root[data-theme=dark] #chat-widget-root .support-thread,:root[data-theme=dark] #chat-widget-root .support-thread-header,:root[data-theme=dark] #chat-widget-root .support-message-scroll,:root[data-theme=dark] #chat-widget-root .support-composer{background:#18181b;color:#f4f4f5;border-color:#303035}
:root[data-theme=dark] #chat-widget-root .support-composer textarea,:root[data-theme=dark] #chat-widget-root [data-widget-error]{background:#242428;color:#eeeef0}
:root[data-theme=dark] #chat-widget-root .member-chat-title button:hover{background:#303035;color:#fff}
:root[data-theme=dark] #chat-widget-root .support-composer button[type=submit],:root[data-theme=dark] #chat-widget-root .support-welcome button{background:#f4f4f5;color:#18181b}
@media(max-width:600px){#chat-widget-root .member-chat-dialog{inset:auto 8px max(8px,env(safe-area-inset-bottom)) 8px;width:calc(100vw - 16px);height:min(725px,calc(100dvh - 24px));max-height:calc(100dvh - 24px);border-radius:16px}#chat-widget-root .member-chat-title{height:56px;padding:0 14px}#chat-widget-root .member-chat-title strong{font-size:13px}#chat-widget-root .member-chat-loading{top:56px}}
@media(prefers-reduced-motion:reduce){#chat-widget-root .member-chat-dialog[open],#chat-widget-root .member-chat-loading>span{animation:none}#chat-widget-root .member-chat-launch{transition:none}#chat-widget-root .member-chat-launch:hover{transform:none}}

.uh-chat-button{position:relative;flex-shrink:0;text-decoration:none}
.uh-chat-button>svg{width:20px;height:20px;display:block}
.uh-chat-button [data-header-chat-unread]{position:absolute;top:-4px;right:-5px;min-width:14px;height:14px;padding:0 3px;border-radius:8px;background:#365d86;color:#fff;font:500 9px/14px Pretendard,sans-serif;text-align:center}
.uh-chat-button [data-header-chat-unread][hidden]{display:none!important}

#chat-widget-root.is-terminal>.member-chat-launch{display:none}

@media(max-width:600px){
 .uh-reference-header:has(.uh-chat-button) .uh-actions{flex-shrink:0}
 .uh-reference-header:has(.uh-chat-button) :is(.uh-icon-button,.member-notice-bell){width:36px;min-width:36px;height:44px;padding:12px 8px}
 .uh-chat-button [data-header-chat-unread]{top:1px;right:0}
}
@media(max-width:380px){
 .uh-reference-header:has(.uh-chat-button) :is(.uh-icon-button,.member-notice-bell){width:34px;min-width:34px;padding:12px 7px}
}
