.web-auth-slot{position:relative;display:flex;align-items:center}.telegram-auth-button{min-height:44px!important;gap:9px;padding:0 16px!important}.telegram-auth-button:before{display:grid;width:24px;height:24px;place-items:center;border-radius:50%;content:'↗';color:#fff;background:linear-gradient(145deg,#53c8ff,#4b78ff);font-size:12px;font-weight:900}.account-chip{display:flex;min-height:46px;align-items:center;gap:10px;padding:4px 12px 4px 5px;border:1px solid var(--line);border-radius:15px;color:var(--text);background:var(--surface);box-shadow:0 10px 30px rgba(0,0,0,.12);cursor:pointer;transition:transform .2s,border-color .2s,box-shadow .2s}.account-chip:hover{border-color:color-mix(in srgb,var(--purple) 45%,var(--line));transform:translateY(-2px);box-shadow:0 15px 34px rgba(0,0,0,.18)}.account-avatar{display:grid;width:36px;height:36px;flex:0 0 auto;place-items:center;overflow:hidden;border-radius:50%;color:#fff;background:linear-gradient(145deg,#8d70ff,#4d8cff);font-size:12px;font-weight:900;box-shadow:0 0 0 2px color-mix(in srgb,var(--purple) 28%,transparent)}.account-avatar img{width:100%;height:100%;border-radius:50%;object-fit:cover}.account-copy{display:grid;min-width:0;text-align:left}.account-copy small{color:var(--muted);font-size:9px;font-weight:800;letter-spacing:.06em;text-transform:uppercase}.account-copy b{max-width:110px;overflow:hidden;font-size:12px;text-overflow:ellipsis;white-space:nowrap}.profile-shell{width:min(1120px,calc(100% - 48px));margin:auto;padding:148px 0 30px}.profile-hero{display:grid;grid-template-columns:1fr auto;gap:30px;align-items:center;padding:34px;border:1px solid var(--line);border-radius:30px;background:radial-gradient(circle at 85% 10%,rgba(141,112,255,.18),transparent 32%),var(--surface);box-shadow:var(--shadow);backdrop-filter:blur(20px)}.profile-identity{display:flex;align-items:center;gap:20px}.profile-identity .account-avatar{width:82px;height:82px;font-size:23px;box-shadow:0 0 0 4px rgba(141,112,255,.14),0 20px 40px rgba(0,0,0,.2)}.profile-identity span{display:grid;gap:5px}.profile-identity small{color:var(--muted);font-weight:800}.profile-identity h1{margin:0;font-size:clamp(30px,5vw,52px)}.profile-identity p{margin:0;color:var(--muted)}.profile-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-top:16px}.profile-card{min-height:180px;padding:24px;border:1px solid var(--line);border-radius:24px;background:var(--surface);backdrop-filter:blur(18px);transition:.22s}.profile-card:hover{border-color:rgba(141,112,255,.35);transform:translateY(-4px)}.profile-card small{color:var(--muted);font-weight:800}.profile-card strong{display:block;margin-top:13px;font:600 clamp(24px,4vw,37px)/1 Unbounded,sans-serif;letter-spacing:-.05em}.profile-card p{margin:12px 0 0;color:var(--muted);font-size:13px}.profile-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:16px}.profile-login-empty{padding:48px;border:1px solid var(--line);border-radius:30px;background:var(--surface);text-align:center}.profile-login-empty h1{font-size:clamp(34px,6vw,58px)}.profile-login-empty p{max-width:600px;margin:18px auto;color:var(--muted)}
@media(max-width:860px){.web-auth-slot{display:none}.mobile-auth-slot{display:block;margin-top:8px}.mobile-auth-slot .account-chip,.mobile-auth-slot .telegram-auth-button{width:100%;justify-content:flex-start}.profile-shell{width:min(100% - 28px,1120px);padding-top:110px}.profile-hero{grid-template-columns:1fr}.profile-grid{grid-template-columns:1fr}}
@media(max-width:520px){.profile-identity{align-items:flex-start;flex-direction:column}.profile-hero{padding:24px}.profile-login-empty{padding:30px 20px}}

/* v3 — Telegram auth button */
.telegram-auth-button{gap:9px!important;white-space:nowrap}
.telegram-auth-button:before{display:none!important;content:none!important}
.telegram-auth-button>svg{width:20px;height:20px;flex:0 0 auto;fill:currentColor;filter:drop-shadow(0 3px 8px rgba(63,163,255,.28))}
.telegram-auth-button>span{display:inline-block}
.telegram-login-mark{color:#fff}
.telegram-login-mark svg{width:30px;height:30px;fill:currentColor}
@media(max-width:1200px) and (min-width:861px){.telegram-auth-button{padding:0 12px!important}.telegram-auth-button>span{font-size:11px}}
.telegram-auth-button svg{width:20px;height:20px;flex:0 0 auto;fill:currentColor}.telegram-auth-button:before{display:none!important}.profile-auth-status{max-width:620px;margin:0 auto 18px;padding:12px 14px;border:1px solid color-mix(in srgb,#ffb547 40%,var(--line));border-radius:14px;color:var(--text);background:color-mix(in srgb,#ffb547 8%,var(--surface));font-size:13px;line-height:1.55}

/* OIDC visibility hotfix — keep Telegram sign-in reachable on every viewport. */
@media(max-width:860px){
  .web-auth-slot{display:flex!important;align-items:center!important;flex:0 0 auto!important}
  .mobile-auth-slot{display:none!important}
  .telegram-auth-button{display:inline-flex!important;min-width:44px!important;min-height:42px!important;padding:0 10px!important;gap:7px!important;border-radius:13px!important}
  .telegram-auth-button>span{display:none!important}
  .telegram-auth-button:after{content:'Войти';display:inline-block;font-size:11px;font-weight:850;white-space:nowrap}
  html[lang=en] .telegram-auth-button:after{content:'Login'}
}
@media(max-width:520px){
  .header-actions{gap:6px!important}
  .profile-controls{display:flex;align-items:center;gap:2px}
  .language-toggle{padding:0 6px!important;gap:2px!important}
  .theme-toggle{padding:2px!important}
  .theme-track{width:46px!important;height:28px!important}
  .theme-thumb{width:20px!important;height:20px!important}
  html[data-theme=light] .theme-thumb{transform:translateX(18px)!important}
  .telegram-auth-button{width:42px!important;min-width:42px!important;padding:0!important;justify-content:center!important}
  .telegram-auth-button:after{display:none!important}
  .telegram-auth-button>svg{width:21px!important;height:21px!important}
}
