html.telegram-launch #account-signin{display:none}
html.telegram-launch{--brainlab-header-offset:max(env(safe-area-inset-top,0px),var(--brainlab-safe-top,0px))}
.telegram-miniapp{box-sizing:border-box;min-height:var(--brainlab-stable-height,100dvh);padding-top:var(--brainlab-header-offset,0px);padding-right:max(env(safe-area-inset-right,0px),var(--brainlab-safe-right,0px));padding-bottom:max(env(safe-area-inset-bottom,0px),var(--brainlab-safe-bottom,0px));padding-left:max(env(safe-area-inset-left,0px),var(--brainlab-safe-left,0px))}
@media(min-width:1800px){
 html.telegram-desktop-fullscreen{--brainlab-header-offset:max(env(safe-area-inset-top,0px),var(--brainlab-device-top,0px))}
 .telegram-desktop-fullscreen .app-shell>.topbar{padding-inline-end:max(120px,calc(2 * var(--brainlab-telegram-top,0px) + 16px))}
}
.telegram-miniapp dialog{max-height:calc(var(--brainlab-viewport-height,100dvh) - var(--brainlab-safe-top,0px) - var(--brainlab-safe-bottom,0px) - 24px);overflow-y:auto;overscroll-behavior:contain;scroll-padding-block:16px}
.telegram-miniapp.auth-required #account-dialog[open]{top:var(--brainlab-dialog-top,calc(var(--brainlab-safe-top,0px) + 16px));bottom:auto;max-height:calc(var(--brainlab-viewport-height,100dvh) - var(--brainlab-safe-top,0px) - var(--brainlab-safe-bottom,0px) - 24px);margin-block:0}
.telegram-launch #account-dialog #login-status{white-space:normal;overflow-wrap:anywhere}
#account-dialog #account-retry{white-space:normal}
@media(max-width:600px){.telegram-miniapp input,.telegram-miniapp textarea,.telegram-miniapp select{font-size:16px}}
