.chat-main { max-width: var(--reading-width); padding-top: var(--space-32); }

.chat-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: var(--space-32);
}
.chat-headline {
  font-family: var(--serif-display);
  font-weight: 400;
  font-size: var(--text-2xl);
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin: 0;
  font-variation-settings: "opsz" 36;
}
.chat-status {
  font-family: var(--sans);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-faint);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--surface-2);
}
.chat-status[data-state="connected"], .chat-status[data-state="ready"] {
  color: var(--status-thriving);
  background: var(--status-thriving-soft);
}
.chat-status[data-state="reconnecting"] {
  color: var(--status-checkin);
  background: var(--status-checkin-soft);
}
.chat-status[data-state="error"] {
  color: var(--accent);
  background: var(--accent-soft);
}

.chat-thread {
  background: transparent;
  margin-bottom: var(--space-24);
  min-height: 200px;
}

.chat-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-12);
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  padding: var(--space-16);
}
.chat-form textarea {
  width: 100%;
  border: none;
  background: transparent;
  font-family: var(--serif-body);
  font-size: var(--text-lg);
  line-height: 1.5;
  color: var(--ink);
  resize: vertical;
  min-height: 60px;
}
.chat-form textarea:focus { outline: none; }
.chat-form-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.chat-hint {
  font-family: var(--sans);
  font-size: var(--text-xs);
  color: var(--ink-faint);
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Manage-memory modal (REC-3): the list of what the mentor remembers. */
.memory-modal-note {
  font-family: var(--sans);
  font-size: var(--text-sm);
  color: var(--ink-muted);
  margin: 0 0 var(--space-16);
}
.memory-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 50vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}
.memory-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-16);
  padding: var(--space-12);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
}
.memory-row-text {
  font-family: var(--serif-body);
  font-size: var(--text-base);
}
