/* «Подключить Telegram» (telegram.js). Классы — tgc-. */
.tgc-btn{display:inline-flex;align-items:center;gap:8px;height:42px;padding:0 18px 0 14px;border:0;border-radius:999px;background:var(--hl);color:var(--hl-fg);font:600 14px/1 var(--font);cursor:pointer;white-space:nowrap;box-shadow:0 0 0 0 color-mix(in srgb,var(--hl) 70%,transparent);animation:tgc-pulse 2.6s ease-out 1s 3;transition:transform .15s}
.tgc-btn:active{transform:scale(.96)}
.tgc-btn svg{width:18px;height:18px;flex:none}
.tgc-btn .tgc-short{display:none}
.tgc-btn.tgc-on{background:var(--panel);color:var(--fg);font-weight:500;animation:none;padding:0 14px 0 12px}
.tgc-btn.tgc-on svg{color:#2aa3df}
.tgc-btn.tgc-on i{font-style:normal;color:var(--ok);font-weight:700}
@keyframes tgc-pulse{0%{box-shadow:0 0 0 0 color-mix(in srgb,var(--hl) 80%,transparent)}100%{box-shadow:0 0 0 14px transparent}}
@media (prefers-reduced-motion:reduce){.tgc-btn{animation:none}}
@media (max-width:640px){.tgc-btn .tgc-long{display:none}.tgc-btn .tgc-short{display:inline}}

.tgc-modal{position:fixed;inset:0;z-index:1000;background:rgba(10,10,10,.45);display:grid;justify-items:center;align-items:start;padding:max(16px,7vh) 16px 16px}
.tgc-modal[hidden]{display:none}
.tgc-box{position:relative;width:min(440px,100%);max-height:calc(100vh - 32px);overflow:auto;background:var(--panel);color:var(--fg);border-radius:var(--r-panel,24px);padding:28px 26px 24px;font-family:var(--font);box-shadow:0 20px 60px rgba(0,0,0,.25)}
.tgc-x{position:absolute;top:14px;right:14px;width:34px;height:34px;border:0;border-radius:50%;background:var(--inset);color:var(--fg);font-size:22px;line-height:1;cursor:pointer}
.tgc-logo{width:52px;height:52px;border-radius:16px;background:#2aa3df;color:#fff;display:grid;place-items:center;margin-bottom:14px}
.tgc-logo svg{width:28px;height:28px}
.tgc-box h2{margin:0 0 8px;font-size:22px;line-height:1.2;font-weight:700}
.tgc-ok{color:var(--ok)}
.tgc-lead{margin:0 0 16px;color:var(--fg);font-size:15px;line-height:1.45}
.tgc-steps{margin:0 0 18px;padding-left:20px;color:var(--muted2);font-size:14px;line-height:1.7}
.tgc-steps b{color:var(--fg)}
.tgc-go{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;height:50px;border:0;border-radius:999px;background:#2aa3df;color:#fff;font:600 16px/1 var(--font);text-decoration:none;cursor:pointer}
.tgc-go:disabled{opacity:.6;cursor:default}
.tgc-go svg{width:20px;height:20px}
.tgc-small{margin:12px 0 0;color:var(--muted2);font-size:13px;line-height:1.45}
.tgc-link{border:0;background:none;padding:0;color:var(--fg);font:inherit;text-decoration:underline;cursor:pointer}
.tgc-wait{display:flex;align-items:center;gap:10px;margin:14px 0 0;font-size:14px;color:var(--fg)}
.tgc-wait i{width:14px;height:14px;border-radius:50%;border:2px solid var(--line);border-top-color:#2aa3df;animation:tgc-spin .8s linear infinite}
@keyframes tgc-spin{to{transform:rotate(360deg)}}
.tgc-note{margin:14px 0 0;padding:10px 12px;border-radius:12px;background:var(--inset);font-size:14px;color:var(--fg);word-break:break-word}
.tgc-opts{display:grid;gap:8px}
.tgc-opt{display:flex;gap:12px;align-items:flex-start;padding:12px 14px;border-radius:14px;background:var(--inset);cursor:pointer}
.tgc-opt input,.tgc-sub input{width:18px;height:18px;margin:2px 0 0;accent-color:#2aa3df;flex:none}
.tgc-opt b{display:block;font-size:15px;font-weight:600}
.tgc-opt small{display:block;color:var(--muted2);font-size:13px;margin-top:2px}
.tgc-sub{display:flex;gap:10px;align-items:center;margin:-2px 0 2px 44px;font-size:14px;color:var(--fg);cursor:pointer}
.tgc-sub[hidden]{display:none}
.tgc-row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:18px;flex-wrap:wrap}
.tgc-test{height:44px;padding:0 20px;border:0;border-radius:999px;background:var(--pill);color:var(--pill-fg);font:600 14px/1 var(--font);cursor:pointer}
.tgc-test:disabled{opacity:.6}
.tgc-off{color:var(--muted2)}
