/* Chat stays in document flow; no fixed mobile keyboard overlay. */
.conversation{min-width:0}.chat-connection{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:12px 0;color:var(--muted);font-size:.85rem}.chat-connection button,.chat-history,.chat-new,.chat-latest{min-height:44px}.conversation [hidden]{display:none!important}.conversation [data-chat-timeline]{max-height:min(60svh,600px);min-height:160px;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable;padding:16px;display:flex;flex-direction:column;gap:12px;border:1px solid var(--line);border-radius:24px;background:var(--bg);overflow-anchor:none}.conversation .chat-bubble{max-width:85%;margin:0;min-width:0;overflow-wrap:anywhere;flex-shrink:0}.conversation .chat-bubble-own{align-self:flex-end}.chat-bubble p{white-space:pre-wrap}.chat-bubble time,.chat-bubble [data-chat-receipt]{display:inline-block;color:var(--muted);font-size:.72rem;margin-right:8px}.chat-bubble.chat-arriving{animation:chat-arrive .28s cubic-bezier(.2,0,0,1)}.chat-typing{min-height:1.4em;margin:8px 0;color:var(--muted);font-size:.8rem}.conversation .reply-composer{margin-top:16px;gap:12px}.conversation .reply-composer textarea{min-height:88px;max-height:240px;resize:vertical;width:100%;min-width:0;font-size:16px}.chat-history{margin:8px 0}.chat-new,.chat-latest{margin:8px 8px 8px 0}.chat-connection[data-state="online"] [data-chat-status]::before{content:"";display:inline-block;width:8px;height:8px;border-radius:50%;background:var(--brand);margin-right:8px}@keyframes chat-arrive{from{opacity:0;transform:translateY(8px) scale(.98)}to{opacity:1;transform:none}}@media(max-width:600px){.conversation[data-order-chat]{padding:16px}.conversation [data-chat-timeline]{padding:12px;border-radius:18px;max-height:55svh}.conversation .chat-bubble{max-width:92%}.chat-connection{align-items:flex-start}.chat-connection button{flex-shrink:0}.conversation .reply-composer>.primary{width:100%}}@media(prefers-reduced-motion:reduce){.chat-bubble.chat-arriving{animation:none}.conversation [data-chat-timeline]{scroll-behavior:auto}}
