/* ============================================================
   CLAPXSE — Lista de Mensajes
   ============================================================ */

.msgs-page {
  padding: 14px 16px 90px;
  min-height: 100dvh;
}

.msgs-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.msgs-header h1 {
  font-size: 18px;
  font-weight: 700;
  flex: 1;
}

.msgs-back {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: var(--text);
  flex-shrink: 0;
}

.msgs-search {
  width: 100%;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 13.5px;
  margin-bottom: 14px;
}

.msgs-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.msgs-item img.msgs-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--bg-elevated);
  flex-shrink: 0;
}

.msgs-info {
  flex: 1;
  min-width: 0;
}

.msgs-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.msgs-name-row .name {
  font-weight: 700;
  font-size: 14.5px;
}

.msgs-streak {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
}

.msgs-preview {
  font-size: 13px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

.msgs-item.is-unread .msgs-preview {
  color: var(--text);
  font-weight: 600;
}

.msgs-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  flex-shrink: 0;
}

.msgs-time {
  font-size: 11px;
  color: var(--text-faint);
}

.msgs-badge {
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.msgs-empty {
  text-align: center;
  color: var(--text-muted);
  font-size: 13.5px;
  padding: 60px 20px;
}
