.member-rail{min-width:0;overflow:auto;padding:20px;background:#1b1f28;border:1px solid #353d4b;border-radius:14px}.member-rail #members{display:flex;flex-direction:row;flex-wrap:wrap;max-height:none;gap:12px;padding:4px 2px;justify-content:flex-start}.member-rail #members button{text-align:left;width:auto;min-height:0;overflow-wrap:anywhere;padding:0}.member-rail summary{font-size:16px!important;font-weight:700;list-style:none;pointer-events:none}.member-rail summary::-webkit-details-marker{display:none}@media(min-width:1100px){.chat-layout.has-member-rail,html[data-web-embedded] .chat-layout.has-member-rail{grid-template-columns:220px minmax(0,1fr) 240px}.chat-layout .message{width:fit-content;max-width:85%}.chat-layout .message:has(.music-share){width:360px;max-width:90%}}html[data-mode=light]:not([data-web-embedded]) .member-rail{background:#fff;border-color:#dcd5e6}@media(max-width:760px){.chat-toolbar{flex-wrap:wrap}.chat-compose button{min-height:44px}}
.chat-identity{display:inline-flex!important;align-items:center;gap:10px;min-width:0;text-align:left;color:inherit}.chat-identity img{width:36px;height:36px;border-radius:50%;object-fit:cover;flex:none}.chat-identity span{overflow-wrap:anywhere;font-weight:600}.chat-identity small{font-size:11px;opacity:.7;font-weight:400}.message-head{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.message-head .chat-identity{padding:0;background:transparent;border:0}.message-head time{font-size:12px;opacity:.7}.message.mine .message-head{justify-content:flex-end}.member-rail #members .chat-identity{padding:0;gap:0;position:relative}.member-rail #members .chat-identity img{width:30px;height:30px}.member-rail #members .chat-identity span{display:none}.member-rail #members .chat-identity[data-online]:after{position:absolute;right:0;bottom:0;width:9px;height:9px;border:2px solid #1b1f28;background:#727580;border-radius:50%;flex:none}.member-rail #members .chat-identity[data-online=true]:after{background:#80d58b}.message>p{overflow-wrap:anywhere}@media(max-width:760px){.chat-identity img{width:32px;height:32px}.message-head{gap:6px}}
.room-peer{display:inline-flex;align-items:center;gap:10px}.room-peer img{width:38px;height:38px;border-radius:50%;object-fit:cover}.room-peer-info{display:grid;line-height:1.3;text-align:left}.room-peer-info strong{font-size:15px}.room-peer-info small{font-size:11px;opacity:.7}.conversation-avatar{object-fit:cover}
.chat-sidebar{padding:12px 0!important;border-radius:12px 0 0 12px!important;background:#191d26!important}.chat-sidebar>.chat-toolbar,.chat-sidebar>button{margin-left:14px;margin-right:14px}#rooms{gap:2px!important;display:grid;grid-template-columns:1fr!important}#rooms .conversation-item{display:flex;align-items:center;gap:12px;padding:15px 14px;min-height:72px;border:0;border-radius:0;background:transparent}#rooms .conversation-item.active{background:#343345!important;color:#f0eafa!important}.conversation-avatar{display:grid;place-items:center;flex:none;width:42px;height:42px;border-radius:50%;background:#405342;color:#d8f6bd;font-size:18px}.conversation-item>span:last-child{line-height:1.6;min-width:0;overflow-wrap:anywhere}.chat-layout{gap:0!important}.chat-room{border-radius:0 12px 12px 0!important;border-left:0!important;padding:16px!important}.chat-room>.chat-toolbar{min-height:42px}.chat-room #roomCounts{margin:2px 0 8px;font-size:12px;color:#b5c69f}.chat-room #roomHint:empty{display:none}.chat-room #messages{padding:20px 12px}.chat-room .message{background:transparent!important;border-radius:0;padding:4px 0;max-width:82%}.chat-room .message>p{background:transparent;border-radius:4px 14px 14px 14px;padding:12px 16px;display:block;white-space:pre-wrap}.chat-room .message.mine>p{background:transparent;color:#f0f8e9;border-radius:14px 4px 14px 14px}.message-head time{font-size:10px}.message-head .chat-identity{font-size:12px}.chat-room #composer{border-top:1px solid #3a3f4a;padding-top:10px;position:relative}.composer-tools{position:relative;display:flex;gap:12px;margin-bottom:6px}.composer-tools>button{background:transparent;border:0;color:#ddd;font-size:18px;padding:6px 10px}.emoji-picker{position:absolute;bottom:44px;left:0;display:grid;grid-template-columns:repeat(8,1fr);gap:4px;width:min(340px,calc(100vw - 54px));padding:12px;border:1px solid #4d5260;border-radius:14px;background:#252a35;z-index:20;box-shadow:0 12px 35px #0006}.emoji-picker[hidden]{display:none}.emoji-picker button{font-family:'Segoe UI Emoji',sans-serif;font-size:24px;padding:6px;background:none;border:0;min-width:0}.emoji-picker button:hover{background:#4b475e}.chat-compose{flex-wrap:wrap}.chat-compose textarea{flex-basis:100%;border:0!important;background:transparent!important;min-height:70px;resize:none}.chat-compose #chooseSong{margin-left:auto}.member-rail{border-radius:0 12px 12px 0}.chat-identity[data-online]:after{content:'';width:8px;height:8px;background:#727580;border-radius:50%;flex-shrink:0}.chat-identity[data-online=true]:after{background:#80d58b}@media(min-width:1100px){.chat-layout.has-member-rail,html[data-web-embedded] .chat-layout.has-member-rail{grid-template-columns:260px minmax(0,1fr) 200px}}@media(max-width:760px){.chat-room{border-left:1px solid #3a3248!important;border-radius:12px!important}.chat-sidebar{border-radius:12px!important;max-height:190px}.chat-room .message{max-width:94%}.emoji-picker{grid-template-columns:repeat(6,1fr);width:min(290px,calc(100vw - 54px))}.chat-compose textarea{min-height:48px}}
/* ===== Mobile chat: compress the top so the message area is not pushed down ===== */
@media(max-width:760px){
  html[data-web-embedded] .chat-sidebar{max-height:96px;padding:8px 0!important;overflow:hidden}
  html[data-web-embedded] .chat-sidebar>.chat-toolbar,html[data-web-embedded] .chat-sidebar>button{margin-left:10px;margin-right:10px}
  html[data-web-embedded] .chat-sidebar .chat-toolbar h1{font-size:14px;margin:2px 0}
  html[data-web-embedded] .chat-sidebar .chat-toolbar #newChat{font-size:11px;min-height:30px;padding:4px 9px}
  html[data-web-embedded] .chat-sidebar>button{margin-bottom:8px;font-size:11px;min-height:28px;padding:3px 9px}
  html[data-web-embedded] #rooms{display:flex!important;flex-wrap:nowrap;overflow-x:auto;gap:4px!important;padding:0 10px 8px;grid-template-columns:none!important}
  html[data-web-embedded] #rooms .conversation-item{
    display:inline-flex;align-items:center;gap:7px;flex:0 0 auto;min-height:46px;padding:6px 12px;
    border:1px solid #303743;border-radius:999px;background:#1b1f28}
  html[data-web-embedded] #rooms .conversation-avatar{width:26px;height:26px;font-size:13px;flex:none}
  html[data-web-embedded] #rooms .conversation-item>span:last-child{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:110px}
  /* room header: one compact line */
  html[data-web-embedded] .chat-room>.chat-toolbar{min-height:38px;margin-bottom:2px}
  html[data-web-embedded] .chat-room #roomTitle{font-size:15px;margin:4px 0}
  html[data-web-embedded] .chat-room #roomCounts{display:inline-block;font-size:11px;margin:0 8px 6px 0;padding:3px 10px;border-radius:999px;background:#262c38;color:#a9b6c6}
  html[data-web-embedded] .chat-room #roomHint{
    display:inline-block;font-size:11px;margin:0 0 6px;padding:3px 10px;border-radius:999px;
    background:#262c38;color:#8f9bad;line-height:1.5}
  html[data-web-embedded] #memberDetails{display:inline-block;margin:0 0 6px;vertical-align:top}
  html[data-web-embedded] #memberDetails>summary{font-size:11px;padding:3px 10px;border-radius:999px;background:#262c38;color:#b6c2d2;width:auto}
  html[data-web-embedded] #memberDetails[open]>summary{background:#303743}
  html[data-web-embedded] #memberDetails #members{max-height:120px;padding:6px 0}
  html[data-web-embedded] .chat-room #messages{padding:10px 8px}
  html[data-web-embedded] .chat-room .chat-room-actions #chatFullscreen{width:34px;height:34px;border-radius:9px}
}

