/* chat.css: the example text conversation card (Kristi 11/11: "look like Latchel", made-up words, it scrolls).
   Markup: <div class="achat" data-achat> .achat-hd + .achat-body (.achat-t time, .achat-m in|out, .achat-done). chat.js plays it. */
.achat{--ac-blue:#1f6feb;--ac-in:#eef1f6;--ac-ink:#0b1f3a;--ac-mute:#6b7a90;--ac-line:#e2e8f0;--ac-good:#0e8a44;--ac-goodbg:#e7f6ee;
  background:#fff;border:1px solid var(--ac-line);border-radius:22px;box-shadow:0 22px 60px rgba(11,31,58,.14),0 2px 6px rgba(11,31,58,.06);
  overflow:hidden;width:100%;max-width:420px;margin:0 auto;text-align:left;font-size:15px;line-height:1.42;color:var(--ac-ink)}
.achat-hd{display:flex;align-items:center;gap:12px;padding:14px 18px;border-bottom:1px solid var(--ac-line);background:#fbfcfe}
.achat-av{width:38px;height:38px;border-radius:50%;flex:none;display:grid;place-items:center;font-weight:700;font-size:15px;color:#fff;background:linear-gradient(135deg,#3b6fd8,#7aa5ef)}
.achat-who{display:flex;flex-direction:column;min-width:0}
.achat-who b{font-size:15.5px;line-height:1.2}
.achat-who span{font-size:12.5px;color:var(--ac-mute)}
/* every sample conversation says it is one (reviewer 11/22): made-up example, or a re-typed real one */
.achat-tag{margin-left:auto;flex:none;font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--ac-mute);background:var(--ac-in);border-radius:999px;padding:4px 10px}
.achat-body{height:360px;overflow-y:auto;padding:16px 16px 18px;display:flex;flex-direction:column;gap:8px;scroll-behavior:smooth;overscroll-behavior:contain}
.achat-body:focus-visible{outline:2px solid var(--ac-blue);outline-offset:-2px}
.achat.short .achat-body{height:auto;max-height:360px}
.achat-t{align-self:center;font-size:11.5px;font-weight:600;color:var(--ac-mute);margin:2px 0}
.achat-m{max-width:82%;padding:9px 14px;border-radius:18px;white-space:pre-line;overflow-wrap:anywhere}
.achat-m.in{align-self:flex-start;background:var(--ac-in);border-bottom-left-radius:6px}
.achat-m.out{align-self:flex-end;background:var(--ac-blue);color:#fff;border-bottom-right-radius:6px}
.achat-done{align-self:center;display:flex;align-items:center;gap:8px;margin-top:6px;padding:8px 14px;border-radius:12px;background:var(--ac-goodbg);color:var(--ac-good);font-size:13.5px;font-weight:600}
.achat-done::before{content:"✓";display:grid;place-items:center;width:20px;height:20px;border-radius:50%;background:var(--ac-good);color:#fff;font-size:12px}
/* playing (chat.js adds .play; without JS everything shows) */
.achat.play .achat-body>:not(.on){display:none}
.achat.play .achat-body>.on{animation:achat-in .32s ease-out both}
.achat-m.typing{display:flex;gap:4px;align-items:center;padding:12px 14px}
.achat-m.typing i{width:7px;height:7px;border-radius:50%;background:currentColor;opacity:.45;animation:achat-dot 1s infinite}
.achat-m.typing i:nth-child(2){animation-delay:.15s}.achat-m.typing i:nth-child(3){animation-delay:.3s}
.achat-m.in.typing{color:#6b7a90}
@keyframes achat-in{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
@keyframes achat-dot{0%,60%,100%{opacity:.35;transform:none}30%{opacity:.9;transform:translateY(-3px)}}
@media(max-width:640px){.achat-body{height:320px}}
@media(prefers-reduced-motion:reduce){.achat.play .achat-body>:not(.on){display:flex}.achat.play .achat-body>.on{animation:none}}
