.bao-global-chat{position:fixed;right:20px;bottom:20px;z-index:90;font-family:inherit;max-width:calc(100vw - 24px)}
.bao-chat-launch{display:block;margin-left:auto;border:2px solid #fff4d9;border-radius:28px;background:linear-gradient(135deg,#ffb82c,#ff8529);color:#49290f;font-weight:800;box-shadow:0 5px 20px #9b571b35;padding:12px 18px;min-height:46px}
.bao-chat-panel{width:360px;max-width:calc(100vw - 24px);max-height:min(620px,calc(100dvh - 150px));margin-bottom:10px;background:#fffbf0;border:1px solid #f4d79e;border-radius:22px;box-shadow:0 12px 40px #613c2638;overflow:auto;display:flex;flex-direction:column}
.bao-chat-panel[hidden]{display:none}.bao-chat-panel>header{display:flex;align-items:center;justify-content:space-between;padding:13px 16px;background:#ffedbf;position:static;flex:none;gap:10px}.bao-chat-panel>header small{display:block;font-size:12px;margin-top:3px;color:#796044}.bao-chat-panel>header button{min-width:40px;min-height:40px;border-radius:50%;font-size:24px;padding:0}
.bao-chat-content{min-height:0;overflow:auto;padding:12px}.bao-chat-public{font-size:12px;color:#765b43;margin:0 0 9px}.bao-chat-log{height:250px;max-height:34dvh;overflow-y:auto;overscroll-behavior:contain;padding:2px 3px;scrollbar-width:thin}.bao-chat-bubble{background:#fff;border:1px solid #f3e5cd;padding:10px;border-radius:15px;margin-bottom:9px;overflow-wrap:anywhere}.bao-chat-bubble.mine{background:#fff1cb;border-color:#ffd791}.bao-chat-author{display:flex;align-items:center;gap:6px;font-size:12px;flex-wrap:wrap}.bao-chat-author .community-avatar{width:25px;height:25px;flex:none}.bao-chat-author strong{max-width:190px;overflow-wrap:anywhere}.bao-chat-author time{color:#866b52;font-size:10px;margin-left:auto}.bao-chat-bubble>p{white-space:pre-wrap;font-size:14px;line-height:1.5;margin:7px 0}.bao-chat-bubble details{font-size:11px}.bao-chat-bubble details button{font-size:12px;padding:6px 9px}.bao-chat-compose{margin-top:10px}.bao-chat-compose>label{font-size:12px}.bao-chat-compose>div{display:flex;align-items:flex-end;gap:7px}.bao-chat-compose textarea{min-width:0;flex:1;resize:vertical;max-height:100px;margin:4px 0 0;border-radius:12px;font-size:16px}.bao-chat-compose button{min-height:44px;padding:10px 13px}.bao-chat-help{font-size:11px;margin-top:8px}.bao-chat-help p{line-height:1.5}.bao-chat-status{font-size:12px;padding:0 14px;margin:0 0 8px;color:#6e4827}.bao-chat-status:empty{display:none}.bao-chat-gate{text-align:center;padding:16px}.bao-chat-gate img{width:70px;height:70px;object-fit:contain}.bao-chat-gate p{font-size:14px}.bao-chat-gate a{display:inline-block;text-decoration:none;padding:10px;border-radius:12px}.bao-chat-empty{font-size:14px;padding:25px 10px;text-align:center}.bao-chat-report textarea{font-size:16px;max-height:90px}
@media(max-width:700px){.bao-global-chat{right:12px;bottom:calc(78px + env(safe-area-inset-bottom,0px))}.bao-chat-launch{padding:9px 14px;font-size:13px;min-height:42px}.bao-chat-panel{max-height:calc(100dvh - 190px);width:340px}.bao-chat-log{height:210px;max-height:29dvh}.bao-chat-content{padding:10px}}
@media(prefers-reduced-motion:reduce){.bao-global-chat *{scroll-behavior:auto!important;animation:none!important}}

.bao-global-chat{display:flex;flex-direction:column;align-items:flex-end}.bao-chat-launch{order:2}.bao-chat-panel{order:1}
