/* Example conversation on the coach page: plays by itself (coach-preview.js), in Dodo's chat colours. */
.preview-chat { padding: 20px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); gap: 12px; align-content: start; }
.preview-chat .msg { max-width: 88%; padding: 14px 16px; }
.preview-chat .msg.parent { background: var(--accent); color: var(--accent-text); }
.preview-chat .msg.coach.plan { background: var(--soft); border-color: transparent; }
.preview-chat .msg.coach.plan strong { display: block; margin-bottom: 4px; }
.preview-chat .msg.is-hidden { display: none; }
/* Arrival: a short, critically damped rise, no bounce; the bubble grows from its own side. */
.preview-chat .msg.is-entering { animation: preview-in 340ms cubic-bezier(.2, .9, .25, 1) both; }
.preview-chat .msg.parent.is-entering { transform-origin: bottom right; }
.preview-chat .msg.coach.is-entering { transform-origin: bottom left; }
@keyframes preview-in { from { opacity: 0; transform: translateY(10px) scale(.97); } to { opacity: 1; transform: none; } }
.preview-chat .msg.typing { display: inline-flex; gap: 5px; padding: 14px 16px; width: max-content; animation: preview-in 200ms ease-out both; }
.preview-chat .msg.typing::before { content: none; }
.preview-chat .msg.typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: preview-dot 1s infinite ease-in-out; }
.preview-chat .msg.typing span:nth-child(2) { animation-delay: .14s; }
.preview-chat .msg.typing span:nth-child(3) { animation-delay: .28s; }
@keyframes preview-dot { 0%, 80%, 100% { opacity: .3; transform: none; } 40% { opacity: .9; transform: translateY(-3px); } }
@media (max-width: 380px) { .preview-chat { padding: 12px; } .preview-chat .msg { max-width: 94%; padding: 12px 14px; } }
