.tg-signin { width: 100%; max-width: 360px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.tg-signin > * { animation: tg-rise .42s cubic-bezier(.16, 1, .3, 1) both; }
.tg-sub { margin: 0; color: var(--muted); font-size: 14.5px; text-wrap: balance; }
.tg-pill { position: relative; display: flex; align-items: center; gap: 8px; width: 100%; height: 60px; padding: 0 18px 0 9px;
  border-radius: 999px; color: #fff !important; text-decoration: none !important; font: 600 16.5px/1.2 Onest, system-ui, sans-serif; letter-spacing: -.1px;
  background: linear-gradient(118deg, #2AABEE 0%, #229ED9 55%, #1C8BD1 100%);
  box-shadow: 0 8px 24px rgba(34, 158, 217, .36), inset 0 0 0 1px rgba(255, 255, 255, .18);
  transition: transform .26s cubic-bezier(.34, 1.56, .64, 1), box-shadow .26s ease, filter .16s ease; -webkit-tap-highlight-color: transparent; }
.tg-pill::before { content: ""; position: absolute; inset: 1px; border-radius: inherit; pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, .2), rgba(255, 255, 255, 0) 46%); }
.tg-pill:hover { box-shadow: 0 10px 30px rgba(34, 158, 217, .52), inset 0 0 0 1px rgba(255, 255, 255, .2); }
.tg-pill:hover .chev { transform: translateX(2px); }
.tg-pill:active { transform: scale(.97); filter: brightness(.93); transition-duration: .09s; }
.tg-pill:focus-visible { outline: 3px solid rgba(42, 171, 238, .45); outline-offset: 3px; }
.tg-pill .tile { position: relative; flex: none; width: 42px; height: 42px; border-radius: 50%; background: #fff; display: grid; place-items: center; color: #229ED9; }
.tg-pill .tg-mark { fill: currentColor; transform: translateX(-1px); }
.tg-pill .label { position: relative; flex: 1; min-width: 0; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tg-pill .chev { position: relative; flex: none; width: 18px; height: 18px; opacity: .75; transition: transform .16s ease; }
.tg-pill .chev path { fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.tg-pill .spin { position: relative; color: #fff; }
.tg-pill.busy .tile { animation: tg-breath 1.2s ease-in-out infinite; }
.tg-pill.ok { animation: tg-flash .7s ease-out; }
@keyframes tg-breath { 50% { transform: scale(.9); } }
@keyframes tg-flash { 30% { box-shadow: 0 10px 44px rgba(42, 171, 238, .9), inset 0 0 0 1px rgba(255, 255, 255, .3); } }
.tg-alt { display: flex; justify-content: center; width: 100%; }
.tg-alt-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 46px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink-2); font: 600 14.5px/1 Onest, system-ui, sans-serif; cursor: pointer;
  transition: border-color .16s ease, color .16s ease, transform .2s cubic-bezier(.34, 1.56, .64, 1); }
.tg-alt-btn:hover { border-color: #229ED9; color: #1C8BD1; }
.tg-alt-btn:active { transform: scale(.98); }
.tg-act { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; margin-top: 8px; font-size: 13.5px; }
.tg-act .linkish { font-size: 13.5px; }
.linkish.quiet { color: var(--muted); font-weight: 500; }
.tg-steps { width: 100%; padding: 14px 16px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); text-align: left; font-size: 14px; color: var(--ink-2); }
.tg-steps p { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; }
.tg-steps p b { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: #e5f4fc; color: #1C8BD1; font-size: 13px; }
.tg-steps .tg-act { justify-content: space-between; margin-top: 4px; }
/* QR-код на ПК: карточка белая и в тёмной теме — код должен читаться */
.tg-qr { width: 100%; display: flex; align-items: center; gap: 16px; padding: 14px; border-radius: 20px; background: #fff; border: 1px solid var(--line); text-align: left;
  box-shadow: 0 12px 32px -18px rgba(28, 139, 209, .45); }
.tg-qr-box { position: relative; flex: none; width: 148px; height: 148px; display: grid; place-items: center; }
.tg-qr-img { position: absolute; inset: 0; animation: tg-fade .42s ease both; }
.tg-qr-img svg { width: 100%; height: 100%; display: block; }
.tg-qr-wait { width: 26px; height: 26px; border-radius: 50%; border: 2.5px solid #d7ecf8; border-top-color: #229ED9; animation: tg-spin .9s linear infinite; }
.tg-qr-badge { position: absolute; left: 50%; top: 50%; width: 32px; height: 32px; margin: -16px 0 0 -16px; border-radius: 50%; background: #229ED9; color: #fff;
  display: grid; place-items: center; box-shadow: 0 0 0 4px #fff; }
.tg-qr-badge .tg-mark { fill: currentColor; transform: translateX(-1px); }
.tg-qr-text { min-width: 0; color: #1b2a33; }
.tg-qr-text b { display: block; font-size: 15px; margin-bottom: 4px; }
.tg-qr-text p { margin: 0; font-size: 13px; line-height: 1.4; color: #4f6270; }
.tg-qr .linkish { color: #1C8BD1; }
.tg-qr .linkish.quiet { color: #6b7c88; }
.tg-signin .note { width: 100%; text-align: left; }
@media (max-width: 420px) {
  .tg-qr { flex-direction: column; text-align: center; }
  .tg-qr .tg-act { justify-content: center; }
}
@keyframes tg-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes tg-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes tg-spin { to { transform: rotate(360deg); } }
