.messages-list {
  display: flex;
  flex-direction: column;
}

.message-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-5);
  border-bottom: 1px solid var(--border);
  cursor: pointer;
}

.message-row__avatar {
  width: 44px;
  height: 44px;
  border-radius: 22px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 500;
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
}

.message-row__avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.message-row__avatar span {
  position: relative;
  z-index: 0;
}

.message-row__main {
  flex: 1;
  min-width: 0;
}

.message-row__name {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-primary);
  font-weight: 500;
}

.message-row__preview {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.message-row__dot {
  width: 9px;
  height: 9px;
  border-radius: 5px;
  background: var(--accent-cyan);
  box-shadow: 0 0 8px var(--accent-cyan-glow);
  flex-shrink: 0;
}

/* Chat header (uses two-line title) */
.chat-header__name {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--text-primary);
  text-align: center;
  line-height: 1.1;
}

.chat-header__sub {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-tertiary);
  letter-spacing: 0.05em;
  text-align: center;
}

/* Chat bubbles */
.chat-stream {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-4);
}

.chat-bubble {
  max-width: 78%;
  padding: var(--space-2) var(--space-3);
  border-radius: 16px;
  font-size: 14px;
  font-family: var(--font-body);
  line-height: 1.4;
}

.chat-bubble--mine {
  align-self: flex-end;
  background: var(--accent-cyan);
  color: var(--bg-deep);
  border-bottom-right-radius: 4px;
}

.chat-bubble--theirs {
  align-self: flex-start;
  background: var(--bg-card);
  color: var(--text-primary);
  border-bottom-left-radius: 4px;
}

.chat-read-indicator {
  align-self: flex-end;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-tertiary);
  letter-spacing: 0.05em;
  margin-top: var(--space-1);
}

.chat-tells {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: 0 var(--space-4) var(--space-5);
}
