/*
Chat demo styles
*/

.settings .grid-2 {
  margin-bottom: 12px;
}

.instructions summary {
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 4px 0;
}

.instructions textarea {
  margin-top: 10px;
  min-height: 70px;
}

.chat {
  padding: 0;
  overflow: hidden;
}

.chat-messages {
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: min(60vh, 520px);
  overflow-y: auto;
  padding: 24px;
}

.empty {
  margin: auto;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

.suggestions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
}

.message {
  max-width: 85%;
  white-space: pre-wrap;
  word-break: break-word;
  animation: rise 0.25s ease both;
}

.message .bubble {
  padding: 12px 16px;
  border-radius: 18px;
}

.user-message {
  align-self: flex-end;
}

.user-message .bubble {
  background: var(--ink);
  color: var(--bg);
  border-bottom-right-radius: 6px;
}

.assistant-message {
  align-self: flex-start;
}

.assistant-message .bubble {
  background: var(--bg);
  border: 1px solid var(--line);
  border-bottom-left-radius: 6px;
}

.assistant-message .meta {
  margin: 6px 0 0 4px;
}

.thinking .bubble {
  color: var(--muted);
  font-style: italic;
}

.composer {
  display: flex;
  gap: 10px;
  align-items: flex-end;
  padding: 14px;
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.composer textarea {
  min-height: 44px;
  max-height: 180px;
  resize: none;
}

.composer button {
  flex-shrink: 0;
  height: 44px;
}

.chat-footer {
  display: flex;
  justify-content: flex-end;
  padding: 0 14px 14px;
}
