#telegram-auth .button {
  margin: 0.6rem 0.4rem 0.3rem 0;
}
#telegram-auth textarea {
  width: 100%;
  font-size: 0.78rem;
  resize: vertical;
  white-space: pre;
  overflow-x: auto;
}
.recovery-account {
  display: block;
  overflow-wrap: anywhere;
  font-size: 0.8rem;
  margin-bottom: 1rem;
}
.telegram-check {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  line-height: 1.5;
  margin: 1.2rem 0;
}
.telegram-check input {
  width: auto;
  min-width: 1.1rem;
  margin-top: 0.25rem;
}
html[data-telegram-scheme] body {
  padding-top: var(--telegram-safe-top, 0px);
  padding-bottom: var(--telegram-safe-bottom, 0px);
}
html[data-telegram-scheme] .auth-story {
  display: none;
}
html[data-telegram-scheme] .auth-screen {
  display: block;
  min-height: 100dvh;
}
html[data-telegram-scheme] .auth-panel {
  min-height: 100dvh;
  padding: 2rem 1.25rem;
}
html[data-telegram-scheme="dark"] #telegram-auth {
  border-radius: 1rem;
}
.recovery-page {
  max-width: 38rem;
  margin: 3rem auto;
  padding: 0 1.3rem;
}
.recovery-page .panel {
  padding: 2rem;
}
.recovery-page label {
  display: block;
  margin-top: 1rem;
}
.recovery-page input {
  width: 100%;
}
.recovery-page .button {
  margin-top: 1.3rem;
}
html[data-telegram-scheme] body {
  padding-left: max(
    env(safe-area-inset-left, 0px),
    var(--telegram-safe-left, 0px)
  );
  padding-right: max(
    env(safe-area-inset-right, 0px),
    var(--telegram-safe-right, 0px)
  );
}
html[data-telegram-scheme] dialog {
  color: var(--ink);
  background: var(--surface);
}
@media (max-width: 580px) {
  html[data-telegram-scheme] .sidebar {
    padding-left: max(6px, var(--telegram-safe-left, 0px));
    padding-right: max(6px, var(--telegram-safe-right, 0px));
  }
  html[data-keyboard-open="true"] .sidebar {
    display: none;
  }
  html[data-keyboard-open="true"] .app-body {
    padding-bottom: 16px;
  }
  html[data-keyboard-open="true"] .chat-panel {
    min-height: 0;
  }
  html[data-keyboard-open="true"] .chat-messages {
    max-height: 25dvh;
  }
}
