.chat-list {
  flex: 1;
  overflow-y: auto;
  background: var(--bg);
}

.chat-card {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 10px;
  padding: 12px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  align-items: center;
}

.chat-card:hover {
  background: var(--bg-hover);
}

.chat-card.active {
  background: var(--bg-hover);
  box-shadow: inset 3px 0 0 var(--accent);
}

.chat-card .avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 16px;
  flex-shrink: 0;
}

.chat-card .body {
  min-width: 0;
}

.chat-card .name {
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

.chat-card .preview .item-tag {
  color: var(--text-muted);
  margin-right: 4px;
}

.chat-card .meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  font-size: 12px;
  color: var(--text-muted);
  min-width: 48px;
}

.chat-card .time {
  white-space: nowrap;
}

.chat-card .unread {
  background: var(--unread);
  color: #fff;
  border-radius: 11px;
  padding: 2px 7px;
  font-size: 11px;
  font-weight: 600;
  min-width: 22px;
  text-align: center;
}

.chat-card .status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-muted);
}

.chat-card .status-dot.s-new {
  background: var(--status-new);
}
.chat-card .status-dot.s-in_progress {
  background: var(--status-in-progress);
}
.chat-card .status-dot.s-done {
  background: var(--status-done);
}

.chat-list .empty-state {
  color: var(--text-muted);
  text-align: center;
  padding: 32px 16px;
}
