/* Login-method chooser. Scoped: does not affect invitation templates. */
.priglo-auth-backdrop{position:fixed;inset:0;z-index:2147483000;background:rgba(22,29,39,.48);-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);display:grid;place-items:center;padding:16px;overflow-y:auto}
.priglo-auth-sheet{position:relative;width:min(100%,440px);max-height:calc(100dvh - 32px);overflow-y:auto;box-sizing:border-box;border:1px solid rgba(255,255,255,.75);border-radius:28px;box-shadow:0 25px 75px rgba(18,29,42,.22);background:linear-gradient(148deg,rgba(255,255,255,.96),rgba(244,249,255,.96) 58%,rgba(238,239,251,.96));color:#253047;padding:36px 28px 25px;text-align:center;font-family:inherit}
.priglo-auth-sheet *{box-sizing:border-box}
.priglo-auth-brand{font-size:17px;font-weight:800;letter-spacing:.26em;color:#263c5c;margin-bottom:20px}
.priglo-auth-sheet h2{font-size:clamp(21px,5vw,26px);line-height:1.2;letter-spacing:-.025em;margin:0 12px 8px;font-weight:750;color:#222e41}
.priglo-auth-lead{margin:0 0 25px;color:#6b7485;font-size:14px}
.priglo-auth-x{position:absolute;right:15px;top:13px;border:0;display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:rgba(60,82,107,.08);color:#36475a;font-size:23px;cursor:pointer}
.priglo-auth-choice{font:inherit;font-weight:650;min-height:54px;width:100%;border:1px solid transparent;border-radius:16px;display:flex;align-items:center;justify-content:center;gap:12px;cursor:pointer;padding:12px 18px;transition:transform .15s ease,background .15s ease}
.priglo-auth-choice:active{transform:scale(.985)}
.priglo-auth-choice:focus-visible,.priglo-auth-x:focus-visible{outline:3px solid #f0ac34;outline-offset:3px}
.priglo-auth-telegram{background:linear-gradient(105deg,#249fda,#357feb);color:white;box-shadow:0 12px 24px rgba(24,143,208,.17)}
.priglo-auth-google{margin-top:11px;color:#35445b;background:rgba(255,255,255,.9);border-color:rgba(86,111,148,.22)}
.priglo-auth-telegram-mark{font-size:19px;transform:rotate(-25deg);font-weight:800}
.priglo-auth-google-mark{font-family:Arial,sans-serif;font-size:21px;font-weight:700;color:#4285f4}
.priglo-auth-unavailable{background:#a9b1bf;box-shadow:none;cursor:not-allowed}
.priglo-auth-note{font-size:12px;line-height:1.6;color:#657187;margin:20px 2px 12px}
.priglo-auth-legal{font-size:11px;line-height:1.65;color:#8a92a0;margin:0}
.priglo-auth-legal a{color:inherit;text-decoration:underline;text-underline-offset:2px}
@media(max-width:480px){.priglo-auth-sheet{padding:33px 19px 25px;border-radius:24px}}
@media(prefers-reduced-motion:reduce){.priglo-auth-choice{transition:none}}

.auth-card .telegram-mark{margin:0 auto 14px;width:54px;height:54px;border-radius:50%;display:grid;place-items:center;background:#e1f3fc;color:#259bd2;font-size:26px;font-weight:800;transform:rotate(-22deg)}

/* Confirmed Telegram identity indicator (not a re-link action). */
.priglo-telegram-connected{cursor:default!important;user-select:none;white-space:nowrap}
.priglo-telegram-connected-mobile{display:flex;align-items:center;justify-content:center;color:#22694c!important;border-color:rgba(34,105,76,.24)!important;background:rgba(229,246,236,.85)!important;font-weight:650}
.desktop-user-pill .priglo-telegram-connected{font-size:11px;letter-spacing:-.025em;width:auto;min-width:38px;padding:0 5px;color:#22694c}

/* Telegram identity belongs inside the account card, not as a separate status button. */
.mobile-account-card .priglo-account-telegram{display:block;max-width:100%;overflow-wrap:anywhere;color:#477b6c;font-weight:550;margin-top:3px}

/* TG8: keeps PRIGLO open while a separate Telegram tab is authorized. */
.priglo-auth-wait-icon{width:60px;height:60px;margin:2px auto 20px;border-radius:18px;display:grid;place-items:center;background:linear-gradient(120deg,#269dda,#357dea);color:white;font-size:28px;transform:none}
.priglo-auth-wait-hint{font-size:14px;line-height:1.7;color:#55647a;margin:12px 0 16px}
.priglo-auth-wait-status{font-size:12px;color:#66788c;min-height:2em;margin:0 0 19px}
.priglo-auth-check{margin-top:10px}
.priglo-auth-cancel{margin-top:10px;background:#f0f3f5;color:#405164;border-color:#e0e6ec}
