/* The whole preview remains a normal Telegram link, not a local chatbot. */
.tgwrap{padding-top:0}
.tgwrap>.cap{display:none}
/* At either end of the conversation, continue scrolling the page normally. */
.tgm .bd{height:380px;box-sizing:border-box;overflow-y:auto;overscroll-behavior-y:auto;overflow-anchor:none;scrollbar-gutter:stable;scrollbar-width:thin;scrollbar-color:#84b3ee55 transparent}
.tgm .m,.tgm .chips{flex-shrink:0;animation:none}
.tgm.chat-preview .bd>[hidden]{display:none!important}
.tgm.chat-preview .bd>.m,.tgm.chat-preview .bd>.chips{animation:chat-message-in .2s ease-out both;transform:translateZ(0);backface-visibility:hidden}
.tgm.chat-preview,.tgm.chat-preview:hover{transform:none}
.tgm.chat-preview{border-width:1px;box-shadow:none}
.tgm.chat-preview .ft .go i{transform:none}
.tgm .chat-typing{display:flex;align-items:center;gap:5px;align-self:flex-start;padding:14px 16px;background:#d4d4d414;border-radius:18px 18px 18px 6px;flex-shrink:0;min-height:8px}
.chat-typing i{width:5px;height:5px;background:var(--lvl-t,#84b3ee);border-radius:50%;animation:chat-dot 1s ease-in-out infinite}
.chat-typing i:nth-child(2){animation-delay:.15s}.chat-typing i:nth-child(3){animation-delay:.3s}
.chat-demo-meta{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 3px 0;color:var(--ash);font-size:11px;line-height:1.4}
.chat-replay{display:inline-flex;align-items:center;justify-content:center;gap:5px;flex:none;min-height:32px;padding:4px 8px;border:1px solid var(--hair);border-radius:20px;background:transparent;color:var(--ink);font:inherit;cursor:pointer;transition:border-color .2s,color .2s}
.chat-replay:hover{color:var(--ink-hi);border-color:var(--lvl-t)}
.chat-replay:focus-visible,.tgm.chat-preview:focus-visible{outline:2px solid var(--lvl-t);outline-offset:4px}
@keyframes chat-dot{0%,100%{opacity:.25}50%{opacity:1}}
@media(max-width:600px){.tgm .bd{height:360px}.chat-demo-meta{font-size:10px;gap:6px}}
@media(prefers-reduced-motion:reduce){.tgm.chat-preview .m,.tgm.chat-preview .chips,.chat-typing i{animation:none}}

@keyframes chat-message-in{from{opacity:0}to{opacity:1}}
