/* Панель чатов (список слева) */
/* ---------- Панель чатов ---------- */
.panel {
  width: 340px;
  min-width: 300px;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-right: 1px solid #e5e7eb;
}

.panel-head {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid #e5e7eb;
}

.panel-title { font-size: 20px; font-weight: 700; }

.icon-btn {
  border: 0;
  background: transparent;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: #5b6472;
  width: 34px; height: 34px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.icon-btn:hover { background: #eef1f5; }

.chats { flex: 1; overflow-y: auto; }

.chat {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  cursor: pointer;
  border-bottom: 1px solid #f2f4f7;
}
.chat:hover { background: #f5f7fa; }
.chat.on { background: #e9f2ff; }
.chat.on:hover { background: #dfeaff; }

.avatar {
  position: relative;
  height: 48px;
  border-radius: 50%;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 17px;
}

.chat .dot {
  position: absolute;
  left: 47px; bottom: 7px;
  width: 13px; height: 13px;
  border-radius: 50%;
  border: 2.5px solid #fff;
  background: #aab2bd;
  z-index: 1;
}
.dot.online { background: #34c759; }

.chat-body { flex: 1; min-width: 0; }

.row1 { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.row2 { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 2px; }

.cname {
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  display: flex; align-items: center; gap: 6px;
}

.ctime {
  flex: none;
  font-size: 12px;
  color: #8a94a3;
}

.csub {
  font-size: 13.5px;
  color: #6b7280;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.members {
  flex: none;
  font-size: 11px;
  color: #8a94a3;
  border: 1px solid #d7dce3;
  padding: 0 6px;
  border-radius: 20px;
  font-weight: 500;
}
.members.pin { color: #4f81ff; border-color: #b9d1ff; background: #eef4ff; }

.unread {
  flex: none;
  min-width: 18px; height: 18px;
  border-radius: 9px;
  background: #4f81ff;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  display: flex; align-items: center; justify-content: center;
  padding: 0 5px;
}

.divider {
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  color: #8a94a3;
  background: #f8fafc;
  border-bottom: 1px solid #f2f4f7;
}
