/* Telegram dark chat shared by trade notifications and team dialogue.
   Keep .bbl.a: the existing scene controller owns the message animation. */
.dp .tg-chat{--tg-bg:#0e1621;--tg-surface:#182533;--tg-bubble:#1d2c3b;--tg-blue:#6ab3e9;--tg-muted:#a5b6c6;--tg-white:#f5f5f5;background:var(--tg-bg);color:var(--tg-white);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;line-height:1.4}
.tg-chat svg{display:block;flex:none;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.tg-avatar{justify-self:end;display:block;width:32px;height:32px;border-radius:50%;object-fit:cover}
.tg-date{align-self:center;padding:3px 10px;border-radius:16px;background:#20303f;color:#d0dbe4;font-size:11px;line-height:1.4}
.dp .tg-trade-chat .bbl{position:relative;flex:none;width:fit-content;max-width:86%;margin:0;padding:12px 14px;border-radius:14px 14px 14px 4px;background:var(--tg-bubble);box-shadow:none;gap:12px}
.dp .tg-trade-chat .bbl:before{content:"";position:absolute;left:-5px;bottom:0;width:9px;height:12px;background:var(--tg-bubble);clip-path:polygon(100% 0,100% 100%,0 100%,45% 72%)}
.dp .tg-trade-chat .tg-message-title{font-size:13px;font-weight:600;line-height:1.4;letter-spacing:0}
.dp .tg-trade-chat .tg-trade{font-size:var(--tg-chat-text);line-height:1.45;font-weight:500;overflow-wrap:break-word;text-wrap:pretty}
.tg-hashtag{color:var(--tg-blue)}
.dp .tg-chat .tg-composer{display:flex;flex:none;gap:8px;align-items:center;justify-content:flex-start;margin-top:auto;padding:8px;background:var(--tg-surface);color:var(--tg-muted);font-size:12px;line-height:1}
.tg-app{display:flex;align-items:center;gap:4px;padding:7px 6px;border-radius:16px;background:#278ad5;color:#fff;font-size:10px;font-weight:500;white-space:nowrap}
.tg-app svg{width:14px;height:14px;stroke-width:1.5}
.tg-composer .tg-attach{width:16px;height:20px;stroke-width:1.5}
.tg-input{display:flex;flex:1;min-width:0;align-items:center;justify-content:space-between;gap:4px;padding:8px 7px;border-radius:18px;border:1px solid #324454;background:#213140;color:#a5b6c6;font-size:11px;white-space:nowrap}
.tg-emoji{font-size:17px;line-height:12px}
.tg-composer .tg-mic{width:16px;height:22px;stroke-width:1.6}

/* Team dialogue: native Telegram surfaces, same question / typing / answer hooks. */
.dp .pn.tg-chat{--tg-outgoing:#2b5278;--tg-chat-pad:24px;--tg-chat-gap:16px;--tg-chat-text:16px;border-color:#ffffff14;overflow:hidden}
.dp .tg-chat .qa-h{gap:12px;min-height:64px;padding:12px var(--tg-chat-pad);background:var(--tg-surface);border-bottom:1px solid #ffffff08}
.dp .tg-chat .tg-avatar{width:36px;height:36px}
.dp .tg-chat .qa-h b{font-size:16px;line-height:1.4}
.dp .tg-chat .qa-h small{display:block;margin-top:2px;color:var(--tg-muted);font-size:13px;line-height:1.3}
.tg-chat-tools{display:flex;align-items:center;gap:20px;margin-left:auto;color:var(--tg-muted)}
.tg-chat-tools svg{width:20px;height:20px}
.dp .pn.tg-chat .chat{gap:var(--tg-chat-gap);padding:var(--tg-chat-pad);background:var(--tg-bg)}
.dp .tg-chat .bub{position:relative;margin:0;padding:12px 14px 8px;font-size:var(--tg-chat-text);line-height:1.45;box-shadow:none;color:var(--tg-white);text-wrap:pretty}
.dp .tg-chat .bub.q{max-width:82%;background:var(--tg-outgoing);border-radius:16px 16px 4px 16px}
.dp .tg-chat .awrap{max-width:86%}
.dp .tg-chat .bub.an{background:var(--tg-bubble);border-radius:16px 16px 16px 4px}
.dp .tg-chat .bub:after{content:"";position:absolute;bottom:0;width:8px;height:12px;clip-path:polygon(0 0,55% 72%,100% 100%,0 100%)}
.dp .tg-chat .bub.q:after{right:-5px;background:var(--tg-outgoing)}
.dp .tg-chat .bub.an:after{left:-5px;background:var(--tg-bubble);transform:scaleX(-1)}
.tg-message-meta{display:flex;justify-content:flex-end;align-items:center;gap:4px;margin-top:4px;color:var(--tg-muted);font-size:11px;line-height:1;font-variant-numeric:tabular-nums}
.tg-chat .q .tg-message-meta{color:#9fc9ec}
.tg-message-meta svg{width:18px;height:12px;stroke-width:1.4}
.dp .tg-chat .typ{background:var(--tg-bubble);border-radius:16px 16px 16px 4px}
.dp .tg-chat .typ i{background:var(--tg-muted)}
.dp .tg-chat .tg-composer{padding:10px var(--tg-chat-pad);gap:12px;border-top:1px solid #ffffff08}
.tg-chat .tg-app{font-size:12px;padding:8px 10px}
.tg-chat .tg-input{font-size:14px;padding:10px 12px}
.tg-chat .tg-composer .tg-attach,.tg-chat .tg-composer .tg-mic{width:20px;height:24px}
@media(max-width:767px){
 .dp .pn.tg-chat{--tg-chat-pad:16px;--tg-chat-gap:12px;--tg-chat-text:14px}
 .dp .tg-trade-chat .bbl{max-width:94%}
 .dp .tg-chat .bub.q{max-width:90%}
 .dp .tg-chat .awrap{max-width:94%}
 .dp .tg-chat .tg-composer{padding:10px;gap:8px}
 .tg-chat .tg-app{font-size:10px;padding:8px 6px}
 .tg-chat .tg-input{font-size:12px;padding:10px 8px}
 .tg-chat .tg-composer .tg-attach,.tg-chat .tg-composer .tg-mic{width:16px;height:22px}
}
