/* «Обсуждения» (19.11.2026): строка = задача с перепиской. Непрочитанное — плотный бейдж «N нов.» и жирное название, без полос по краю. */
.chats { display: flex; flex-direction: column; }
.chat-list { display: flex; flex-direction: column; gap: 8px; }
.chat-row { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 14px; min-height: 64px;
  background: var(--card); border: 1px solid var(--color-divider); border-radius: 14px; cursor: pointer; }
.chat-row:hover { background: var(--tint); }
.chat-row .cr-ic { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--inset); color: var(--mut); }
.chat-row .cr-t { display: flex; gap: 10px; align-items: baseline; min-width: 0; }
.chat-row .cr-t b { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.chat-row .cr-t .mut { font-size: 12px; white-space: nowrap; flex: none; }
.chat-row .cr-m { color: var(--mut); font-size: 13px; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-row .cr-e { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.chat-row .tm { color: var(--mut); font-size: 12px; white-space: nowrap; }
.chat-row.new .cr-t b { font-weight: 700; }
.chat-row.new .cr-m { color: var(--color-text); }
.chat-row .nb { background: var(--color-accent); color: var(--on-accent); font-size: 11px; font-weight: 700; line-height: 1; padding: 4px 8px; border-radius: 6px; white-space: nowrap; }
@media (max-width: 640px) {
  .chat-row { grid-template-columns: 32px minmax(0, 1fr); padding: 12px; }
  .chat-row .ava { --s: 32px !important; width: 32px; height: 32px; }
  .chat-row .cr-t { flex-wrap: wrap; gap: 2px 8px; }
  .chat-row .cr-m { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .chat-row .cr-e { grid-column: 2; flex-direction: row; justify-content: space-between; align-items: center; }
}
