/* MD Chat (chat/index.html). */
.chat-label { display: block; margin: 0 0 8px; font-weight: 600; }
/* "Your paste" and the Paste from clipboard button share a row; one tap on a phone. */
.chat-paste-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: 0 0 8px; }
.chat-paste-row .chat-label { margin: 0; }
.chat-source { min-height: 220px; }
.chat-rich { margin: 8px 0 0; color: var(--text-secondary); font-size: 0.9rem; }
.chat-rich i { color: #34d399; }

.chat-options { display: flex; flex-wrap: wrap; gap: 16px; margin: 16px 0 0; }
.chat-options label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; min-width: 200px; }
.chat-options select { padding: 10px 12px; font-weight: 400; }

.chat-result { margin-top: 24px; }
.chat-note { margin: 0 0 12px; color: var(--text-secondary); }
.chat-panes { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.chat-pane { min-width: 0; }
.chat-markdown { min-height: 520px; height: 520px; resize: vertical; }
.chat-preview {
  width: 100%; height: 520px; border: 1px solid var(--border-glass);
  border-radius: var(--radius-md); background: #ffffff;
}
.chat-downloads { margin-top: 16px; }

@media (max-width: 900px) {
  .chat-panes { grid-template-columns: 1fr; }
  .chat-markdown, .chat-preview { height: 360px; min-height: 360px; }
}
