.telegram-connect-card {
  grid-column: 1 / -1;
  padding: clamp(22px, 3vw, 32px);
  min-width: 0;
  display: grid;
  gap: 20px;
}
.telegram-connect-card .tg-head { display:flex; align-items:center; gap:16px; min-width:0; }
.telegram-connect-card .tg-copy { min-width:0; }
.telegram-connect-card h2 { margin:0 0 5px; font-size:clamp(22px,2.3vw,30px); line-height:1.15; }
.telegram-connect-card p { line-height:1.5; overflow-wrap:anywhere; margin:0; }
.telegram-connect-card .tg-hint { color:var(--text-muted,#667993); max-width:820px; }
.telegram-connect-card .tg-logo {
  flex:0 0 auto; width:54px; height:54px; display:grid; place-items:center;
  border-radius:17px; background:#eaf4ff; color:#229ED9;
}
.telegram-connect-card .tg-logo-svg,.telegram-registration-prompt .tg-logo-svg { width:29px; height:29px; display:block; fill:currentColor; }
.telegram-connect-card .tg-connect-body { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:12px 16px; }
.telegram-connect-card .tg-state { min-width:0; padding:13px 16px; background:#f1f6ff; border-radius:14px; color:#174ea6; }
.telegram-connect-card.is-connected .tg-state { background:#eaf8f2; color:#16634b; }
.telegram-connect-card .tg-actions { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:10px; }
.telegram-connect-card .button { white-space:normal; text-align:center; }
.telegram-connect-card .tg-open { justify-self:end; }
.telegram-connect-card .tg-language { grid-column:1 / -1; display:block; line-height:1.45; color:var(--text-muted,#667993); }
.telegram-registration-prompt { display:grid; gap:0; }
.telegram-registration-prompt .tg-prompt-icon { width:54px; height:54px; display:grid; place-items:center; margin-bottom:16px; border-radius:17px; background:#eaf4ff; color:#229ED9; }
.telegram-registration-prompt > p { margin:0; line-height:1.58; color:var(--text-soft,#526985); }
.telegram-registration-prompt [data-tg-reg-state] { margin-top:12px; color:var(--blue-700,#075ecf); font-size:.9rem; font-weight:700; }
.telegram-registration-prompt [data-tg-reg-state]:empty { display:none; }
.telegram-registration-prompt .modal-actions { margin-top:24px; padding-top:0; }
@media (max-width:720px) {
  .telegram-connect-card .tg-connect-body { grid-template-columns:1fr; }
  .telegram-connect-card .tg-actions { justify-content:stretch; }
  .telegram-connect-card .tg-actions > *, .telegram-connect-card .tg-open { width:100%; justify-self:stretch; }
  .telegram-registration-prompt .modal-actions { margin-top:20px; }
}
