.view-chat {
  display: flex;
  flex-direction: column;
}

/* ---------- Empty state hero ---------- */
.chat-empty {
  padding: var(--space-6) var(--space-4) var(--space-7);
  max-width: var(--max-read);
  margin: 0 auto;
  width: 100%;
}
.chat-hero {
  padding: var(--space-7) 0 var(--space-6);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.vertical-greeting {
  font-family: var(--font-sc-serif);
  font-weight: 300;
  font-size: var(--text-hero);
  line-height: 0.88;
  letter-spacing: 0.04em;
  color: var(--ink-black);
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: var(--space-5);
}
.tagline {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: var(--text-lg);
  color: var(--ink-soft);
  line-height: 1.4;
  max-width: 22em;
}
.tagline .py {
  display: block;
  margin-top: var(--space-1);
  font-family: var(--font-sans);
  font-style: italic;
  font-size: var(--text-sm);
  color: var(--stone-gray);
}

.suggestions {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-top: var(--space-6);
}
.suggestions .suggestion {
  text-align: left;
  padding: var(--space-3) var(--space-4);
  background: var(--paper-white);
  border: var(--hairline);
  border-radius: var(--radius-card);
  font-size: var(--text-sm);
  color: var(--ink-black);
  transition: border-color var(--dur-fast) var(--ease);
}
.suggestions .suggestion:hover { border-color: var(--qinghua-blue); }

/* ---------- Conversation ---------- */
.chat-log {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: var(--space-5) var(--space-4) var(--space-4);
  max-width: var(--max-read);
  margin: 0 auto;
  width: 100%;
}
.msg {
  display: flex;
  max-width: 100%;
}
.msg-user { justify-content: flex-end; }
.msg-ai   { justify-content: flex-start; }
.bubble {
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-card);
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: var(--text-base);
}
.msg-user .bubble {
  background: var(--paper-warm);
  color: var(--ink-black);
  max-width: 78%;
}
.msg-ai .bubble {
  position: relative;
  background: var(--paper-white);
  border-left: 1.5px solid var(--qinghua-blue);
  padding-left: var(--space-4);
  max-width: 92%;
}
.msg-ai .bubble .chop {
  position: absolute;
  top: -10px;
  right: -6px;
}
.msg-ai .bubble.thinking {
  color: var(--ink-soft);
  font-style: italic;
}
.thinking-dot { animation: blink 1.4s var(--ease) infinite; }
.thinking-dot:nth-child(2) { animation-delay: 0.2s; }
.thinking-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes blink { 0%, 80%, 100% { opacity: 0.3; } 40% { opacity: 1; } }

.followups {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-2);
}
.followups .chip {
  text-align: left;
  white-space: normal;
  max-width: 100%;
}

/* ---------- Compose ---------- */
.chat-compose {
  position: sticky;
  bottom: 0;
  padding: var(--space-3) var(--space-4);
  background: var(--paper-white);
  border-top: var(--hairline-soft);
  z-index: 20;
}
.compose-form {
  display: flex;
  align-items: end;
  gap: var(--space-2);
  max-width: var(--max-read);
  margin: 0 auto;
  background: var(--paper-warm);
  border-radius: var(--radius-card);
  padding: var(--space-2);
}
.compose-form textarea {
  flex: 1;
  resize: none;
  background: transparent;
  border: none;
  font-family: var(--font-sans);
  font-size: var(--text-base);
  padding: 8px 10px;
  max-height: 9em;
  min-height: 24px;
  line-height: 1.5;
  color: var(--ink-black);
}
.compose-form .send {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  background: var(--qinghua-blue);
  color: var(--paper-white);
  border-radius: var(--radius-button);
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 18px;
  transition: background-color var(--dur-fast) var(--ease);
}
.compose-form .send:hover { background: var(--qinghua-deep); }
.compose-form .send:disabled { background: var(--stone-gray); cursor: not-allowed; }

.chat-empty-note {
  margin-top: var(--space-6);
  padding: var(--space-3) var(--space-4);
  background: var(--paper-warm);
  border-left: 2px solid var(--qinghua-blue);
  font-size: var(--text-sm);
  color: var(--ink-soft);
}
.chat-empty-note .why {
  font-family: var(--font-serif);
  font-weight: 500;
  color: var(--ink-black);
  display: block;
  margin-bottom: 2px;
}
