.connected-accounts-page [hidden]{display:none}
.telegram-account-panel,.telegram-destinations-panel{padding:26px;margin-block:18px}
.telegram-account-heading,.telegram-account-identity,.telegram-actions,.telegram-destinations-heading{display:flex;align-items:center;gap:14px}
.telegram-account-heading,.telegram-destinations-heading{justify-content:space-between;margin-bottom:22px}
.telegram-account-identity .brand-icon{width:48px;height:48px}
.telegram-account-identity h2,.telegram-destinations-heading h2{margin:0 0 5px}
.telegram-account-identity p,.telegram-destinations-heading p,.muted{color:var(--ref-muted);margin:0}
.telegram-actions{flex-wrap:wrap;margin-block:18px}
.telegram-connected-identity{display:flex;align-items:center;gap:16px;flex-wrap:wrap}
.telegram-connected-identity strong{font-size:1.2rem}
.telegram-connected-identity span{color:var(--ref-muted)}
.telegram-qr-panel{display:grid;grid-template-columns:230px minmax(0,1fr);gap:28px;align-items:center;background:var(--ref-panel-2);border:1px solid var(--ref-line);border-radius:var(--ref-radius);padding:22px;margin-block:20px}
.telegram-qr-panel[hidden],.telegram-login-form[hidden]{display:none}
.telegram-qr-frame{width:220px;min-height:220px;display:grid;place-items:center;background:white;color:#31445b;border-radius:12px;overflow:hidden;padding:8px}
.telegram-qr-frame img{width:204px;height:204px}
.telegram-qr-frame p{padding:20px;text-align:center}
.telegram-qr-instructions ol{padding-inline-start:22px;line-height:2.1;margin:8px 0 12px}
.telegram-qr-instructions h3{margin:0}
.telegram-qr-instructions button{margin-top:12px}
.telegram-login-form{display:grid;gap:12px;max-width:420px;margin-block:20px}
.telegram-login-form input,.telegram-destinations-panel input{width:100%;min-height:44px;border:1px solid var(--ref-line);border-radius:10px;background:var(--ref-panel);color:var(--ref-ink);padding:10px 12px;font:inherit}
.telegram-login-form .button{justify-self:start}
.telegram-guest-guidance{color:var(--ref-muted);font-size:.88rem;line-height:1.9;padding-top:18px;border-top:1px solid var(--ref-line);margin-bottom:0}
.telegram-dialog-list{display:grid;gap:10px;margin-block:18px}
.telegram-dialog-row{display:flex;justify-content:space-between;align-items:center;gap:14px;border:1px solid var(--ref-line);border-radius:12px;padding:14px;background:var(--ref-panel-2)}
.telegram-dialog-row strong{display:block;overflow-wrap:anywhere}
.telegram-dialog-row small{display:block;color:var(--ref-muted);margin-top:5px}
.telegram-dialog-row .button{flex-shrink:0}
@media(max-width:600px){.telegram-account-panel,.telegram-destinations-panel{padding:18px}.telegram-qr-panel{grid-template-columns:1fr;justify-items:center;padding:16px;gap:18px}.telegram-qr-instructions{width:100%}.telegram-destinations-heading{align-items:flex-start;flex-direction:column}.telegram-dialog-row{align-items:flex-start;flex-direction:column}.telegram-actions .button{flex:1}.telegram-account-heading{gap:8px}.telegram-account-identity .brand-icon{width:40px;height:40px}}

.telegram-dialog-row .brand-icon{width:24px;height:24px;float:inline-start;margin-inline-end:10px}
