/* The same selected color for ordinary users, VIP users and groups. */
#roomList .room.active,#roomList .room.active:hover{background:#2879c2;color:#fff}
#roomList .room.active small,#roomList .room.active .room-time,#roomList .room.active .friend-presence{color:#eef6ff}
#roomList .room.active .vip-name{color:#ffe1e5!important}
#roomList .room.pinned:not(.active){background:#edf4ff;box-shadow:inset 3px 0 #75a8e2}
#roomList .room.pinned:not(.active):hover{background:#e2eeff}
#roomList .room.pinned.active{box-shadow:inset 3px 0 #c9e3ff}
#roomList .room.pinned::after{display:none}
.room-pin-label{display:inline-flex;align-items:center;gap:3px;position:absolute;right:13px;bottom:13px;padding:2px 6px;border-radius:5px;background:#dbe9fc;color:#346baa;font-size:10px;line-height:16px;font-weight:600}
.room-pin-label .ui-icon{width:12px;height:12px}
#roomList .room.active .room-pin-label{background:#ffffff26;color:#fff}
#roomList .room.pinned .badge{right:66px}
#roomList .room.pinned .room-body small{padding-right:60px}
#roomList .room:focus-visible{outline:2px solid #165da4;outline-offset:-3px}
#pasteImageDialog{width:min(480px,calc(100vw - 24px));max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);padding:0;border:1px solid #dce5ef;border-radius:18px;overflow:auto;box-shadow:0 24px 90px #17355445;color:#24374c}
#pasteImageDialog form{display:flex;flex-direction:column;gap:0}
#pasteImageDialog header{height:auto;padding:22px 24px 16px;border:0}
#pasteImageTitle{font-size:20px;font-weight:650}
#pasteImageDialog p{font-size:13px;color:#64778b;line-height:1.6}
#pasteImageDestination{margin-top:6px;overflow-wrap:anywhere}
#pasteImageDialog .paste-image-stage{margin:0 20px;min-height:100px;display:flex;align-items:center;justify-content:center;border:1px solid #e6ecf3;border-radius:12px;background:#f3f6fa;overflow:hidden}
#pasteImagePreview{display:block;max-width:100%;max-height:min(360px,45dvh);object-fit:contain}
#pasteImageStatus{padding:14px 24px 0;min-height:40px}
#pasteImageDialog footer{display:flex;justify-content:flex-end;gap:10px;padding:18px 24px 22px}
#pasteImageDialog button{border-radius:9px;padding:10px 20px;font-weight:600}
#pasteImageCancel{background:#edf2f7;color:#4f6379}
#pasteImageSend{background:#2879c2;color:#fff;box-shadow:0 3px 8px #2879c22b}
#pasteImageSend:hover{background:#216aaf}
#pasteImageDialog button:disabled{opacity:.55;cursor:wait}
.reply-quote[role=button]{cursor:pointer;text-align:left}
.reply-quote[role=button]:hover{filter:brightness(.96)}
.reply-quote[role=button]:focus-visible{outline:2px solid #2879c2;outline-offset:2px}
.forward-dialog{width:min(470px,calc(100vw - 24px));max-height:calc(100dvh - 24px);padding:0;border-radius:16px;overflow:hidden}
.forward-dialog header{height:auto;display:flex;align-items:center;justify-content:space-between;padding:18px 22px 12px;border:0}
.forward-dialog h2{font-size:20px;color:#263e58}
.forward-close{font-size:24px;background:transparent;color:#798b9d;padding:2px 8px}
#forwardSearch{display:block;width:calc(100% - 40px);margin:0 20px;background:#f3f6fa;border-color:#dfe7f0}
.forward-dialog .forward-status{padding:10px 22px;color:#63778d;font-size:12px}
.forward-list{overflow:auto;max-height:min(470px,60dvh);padding:0 10px 12px}
.forward-choice{display:flex;align-items:center;gap:12px;width:100%;padding:10px 12px;text-align:left;background:#fff;border-radius:10px}
.forward-choice:hover{background:#eaf3ff}
.forward-avatar{display:grid;place-items:center;width:44px;height:44px;border-radius:50%;background:#5b9ddd;color:#fff;font-size:19px;overflow:hidden;flex:none}
.forward-avatar img{width:100%;height:100%;object-fit:cover}
.forward-info{min-width:0;flex:1}.forward-info strong,.forward-info small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.forward-info strong{font-size:14px;color:#29425c}.forward-info small{margin-top:5px;font-size:11px;color:#7b8ca0}
.forward-more{display:block;margin:8px auto;color:#2879c2;background:#edf4ff}
