:root {
  color-scheme: light;
  --ekor-safe-top: env(safe-area-inset-top, 0px);
  --ekor-safe-right: env(safe-area-inset-right, 0px);
  --ekor-safe-bottom: env(safe-area-inset-bottom, 0px);
  --ekor-safe-left: env(safe-area-inset-left, 0px);
}
.telegram-entry { border: 0; background: var(--blue-light); color: var(--blue); border-radius: 20px; padding: 8px 12px; font-size: 13px; white-space: nowrap; }
.telegram-entry[data-authenticated="true"] { color: #148063; background: #e5f7ef; }
.telegram-account { display:flex; align-items:center; justify-content:space-between; gap:16px; margin:18px 0; }
.telegram-account h3 { font-size:16px; margin:0 0 5px; }
.telegram-account p { margin:0; font-size:14px; color:var(--muted); line-height:1.6; }
.telegram-account .primary, .telegram-account .secondary { flex-shrink:0; }
.telegram-account [role="status"] { color:var(--ink); }
.profile-top h2 { overflow-wrap:anywhere; }
.telegram-app body { min-height:var(--ekor-viewport-height, 100dvh); }
.telegram-app .sidebar { display:none; }
.telegram-app .shell { margin-left:0; }
.telegram-app .mobile-brand { display:flex; }
.telegram-app .breadcrumb, .telegram-app .top-date { display:none; }
.telegram-app .topbar { position:sticky; top:0; z-index:20; height:calc(64px + var(--ekor-safe-top)); padding:var(--ekor-safe-top) max(16px,var(--ekor-safe-right)) 0 max(16px,var(--ekor-safe-left)); background:var(--white); }
.telegram-app .content { padding-bottom:calc(110px + var(--ekor-safe-bottom)); padding-left:max(18px,var(--ekor-safe-left)); padding-right:max(18px,var(--ekor-safe-right)); }
.telegram-app .mobile-nav { display:flex; padding-bottom:calc(10px + var(--ekor-safe-bottom)); padding-left:max(8px,var(--ekor-safe-left)); padding-right:max(8px,var(--ekor-safe-right)); }
.telegram-frame body { height:var(--ekor-viewport-height,100dvh); min-height:0; }
.telegram-frame .frame-navigation-ready main { position:fixed; top:var(--ekor-safe-top); left:var(--ekor-safe-left); right:var(--ekor-safe-right); height:calc(var(--ekor-viewport-height,100dvh) - var(--ekor-safe-top) - var(--ekor-safe-bottom)); }
.telegram-frame { --frame-bar-height:calc(36px + var(--ekor-safe-top)); }
.telegram-frame .game-bar { padding-top:var(--ekor-safe-top); }
.telegram-frame #frame-nav-toggle { --safe-top:var(--ekor-safe-top); --safe-right:var(--ekor-safe-right); --safe-bottom:var(--ekor-safe-bottom); --safe-left:var(--ekor-safe-left); }
.telegram-app dialog { max-height:calc(var(--ekor-viewport-height,100dvh) - var(--ekor-safe-top) - var(--ekor-safe-bottom) - 32px); }
@media(max-width:700px) { .top-actions .language { display:none; } .telegram-account { align-items:flex-start; flex-direction:column; } }
