/* @mention: chip trong tin nhắn, popup gợi ý, badge ở danh sách phòng */
.mention {
  background: rgba(79, 70, 229, .12);
  color: #4338ca;
  border-radius: 5px;
  padding: 0 4px;
  font-weight: 600;
  word-break: break-all;
}
.mention.mention-me { background: #fde68a; color: #92400e; }
.msg-item.me .mention { background: rgba(255, 255, 255, .25); color: inherit; }
.msg-item.me .mention.mention-me { background: #fde68a; color: #92400e; }

.mention-badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 18px; height: 18px; padding: 0 4px; margin-right: 4px;
  border-radius: 9px; background: #ef4444; color: #fff; font-size: 11px; font-weight: 800; line-height: 1;
}

.mention-popup {
  position: fixed; z-index: 3000; max-height: 260px; overflow-y: auto;
  background: #fff; border: 1px solid #e2e8f0; border-radius: 12px;
  box-shadow: 0 8px 28px rgba(15, 23, 42, .18); padding: 4px;
}
.mention-popup.hidden { display: none; }
.mention-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; cursor: pointer; }
.mention-item.active, .mention-item:hover { background: #eef2ff; }
.mention-avatar {
  width: 30px; height: 30px; border-radius: 50%; flex: 0 0 30px;
  background: #e0e7ff; color: #4338ca; font-weight: 700; font-size: 14px;
  display: inline-flex; align-items: center; justify-content: center;
}
.mention-avatar.all { background: #4f46e5; color: #fff; }
.mention-info { display: flex; flex-direction: column; min-width: 0; }
.mention-name { font-size: 14px; font-weight: 600; color: #0f172a; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mention-sub { font-size: 12px; color: #64748b; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mention-empty { padding: 10px 12px; font-size: 13px; color: #64748b; }
