:root,
[data-theme="light"] {
  color-scheme: light;
  --tg-bg: #8cc8a0;
  --tg-card: #ffffff;
  --tg-text: #222222;
  --tg-muted: #707579;
  --tg-line: #dfe1e5;
  --tg-accent: #3390ec;
  --tg-accent-hover: #2b7fd4;
  --tg-link: #3390ec;
  --tg-logo: #3390ec;
  --tg-chat-bg: #e6ebee;
  --tg-sidebar: #ffffff;
  --tg-bubble-in: #ffffff;
  --tg-bubble-out: #effdde;
  --tg-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  --tg-input-bg: #ffffff;
  --tg-toggle-bg: rgba(255, 255, 255, 0.85);
  --tg-toggle-color: #707579;
}

[data-theme="dark"] {
  color-scheme: dark;
  --tg-bg: #0e1621;
  --tg-card: #212121;
  --tg-text: #ffffff;
  --tg-muted: #aaaaaa;
  --tg-line: #3a3a3a;
  --tg-accent: #8774e1;
  --tg-accent-hover: #7764d2;
  --tg-link: #8774e1;
  --tg-logo: #8774e1;
  --tg-chat-bg: #0e1621;
  --tg-sidebar: #17212b;
  --tg-bubble-in: #182533;
  --tg-bubble-out: #2b5278;
  --tg-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  --tg-input-bg: #212121;
  --tg-toggle-bg: rgba(33, 33, 33, 0.92);
  --tg-toggle-color: #ffffff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--tg-text);
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--tg-bg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='%23ffffff55' stroke-width='1.2'%3E%3Cpath d='M10 18c8 0 8-8 16-8M84 10l6 8M30 70c6-10 14-6 20 0M92 88c-6 8-14 4-18-4M18 98c10-2 12-12 6-18'/%3E%3Ccircle cx='58' cy='24' r='4'/%3E%3Cpath d='M48 48h16v10H48zM72 52l8 6-8 6'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 120px 120px;
}

[data-theme="dark"] body {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='%23ffffff18' stroke-width='1.2'%3E%3Cpath d='M10 18c8 0 8-8 16-8M84 10l6 8M30 70c6-10 14-6 20 0M92 88c-6 8-14 4-18-4M18 98c10-2 12-12 6-18'/%3E%3Ccircle cx='58' cy='24' r='4'/%3E%3Cpath d='M48 48h16v10H48zM72 52l8 6-8 6'/%3E%3C/g%3E%3C/svg%3E");
}

button,
input,
select,
textarea {
  font: inherit;
}

.hidden {
  display: none !important;
}

.theme-toggle {
  position: fixed;
  z-index: 20;
  top: 16px;
  right: 16px;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: var(--tg-toggle-color);
  background: var(--tg-toggle-bg);
  box-shadow: var(--tg-shadow);
  cursor: pointer;
}

.theme-toggle svg {
  width: 22px;
  height: 22px;
}

body.auth-mode .theme-toggle {
  display: grid;
}

.theme-toggle-inline {
  font-size: 18px;
}

.auth-shell {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px 16px;
}

.auth-stub {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background-color: var(--tg-bg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='%23ffffff55' stroke-width='1.2'%3E%3Cpath d='M10 18c8 0 8-8 16-8M84 10l6 8M30 70c6-10 14-6 20 0M92 88c-6 8-14 4-18-4M18 98c10-2 12-12 6-18'/%3E%3Ccircle cx='58' cy='24' r='4'/%3E%3Cpath d='M48 48h16v10H48zM72 52l8 6-8 6'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 120px 120px;
}

.auth-stub.hidden {
  display: none;
}

.tg-card {
  width: min(376px, 100%);
  padding: 44px 44px 36px;
  border-radius: 12px;
  background: var(--tg-card);
  box-shadow: var(--tg-shadow);
  text-align: center;
}

.tg-logo {
  width: 120px;
  height: 120px;
  margin: 0 auto 22px;
}

.tg-logo svg {
  display: block;
  width: 100%;
  height: 100%;
}

.tg-logo-circle {
  fill: var(--tg-logo);
}

.tg-card h1 {
  margin: 0 0 12px;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
}

.tg-subtitle {
  margin: 0 0 28px;
  color: var(--tg-muted);
  font-size: 14px;
  line-height: 1.45;
}

.tg-field {
  position: relative;
  display: block;
  margin-bottom: 18px;
  text-align: left;
}

.tg-label {
  position: absolute;
  z-index: 1;
  top: -8px;
  left: 12px;
  padding: 0 4px;
  color: var(--tg-muted);
  background: var(--tg-card);
  font-size: 12px;
  line-height: 1;
}

.tg-field select,
.tg-field input {
  width: 100%;
  min-height: 54px;
  padding: 14px 14px 10px;
  border: 1px solid var(--tg-line);
  border-radius: 8px;
  color: var(--tg-text);
  background: var(--tg-input-bg);
  appearance: none;
}

.tg-field select {
  padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23707579' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}

.tg-field input:focus,
.tg-field select:focus {
  outline: none;
  border-color: var(--tg-accent);
}

.tg-btn {
  width: 100%;
  min-height: 46px;
  margin-top: 4px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: var(--tg-accent);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}

.tg-btn:hover {
  background: var(--tg-accent-hover);
}

.tg-links {
  display: grid;
  gap: 18px;
  margin-top: 32px;
}

.tg-link {
  border: 0;
  padding: 0;
  color: var(--tg-link);
  background: transparent;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  cursor: pointer;
}

.tg-link-alt:disabled {
  opacity: 1;
  color: var(--tg-link);
  cursor: default;
}

.tg-link.back-link {
  text-transform: none;
  letter-spacing: 0;
}

.code-card {
  padding-top: 36px;
}

.code-monkey {
  margin-bottom: 18px;
  font-size: 72px;
  line-height: 1;
}

.code-phone-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.code-phone-row span {
  font-size: 20px;
  font-weight: 600;
}

.edit-phone {
  border: 0;
  padding: 4px;
  color: var(--tg-muted);
  background: transparent;
  font-size: 16px;
  cursor: pointer;
}

.code-hint {
  margin-bottom: 24px;
}

.code-boxes {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.code-digit {
  width: 44px;
  height: 48px;
  padding: 0;
  border: 1px solid var(--tg-line);
  border-radius: 8px;
  color: var(--tg-text);
  background: var(--tg-input-bg);
  font-size: 22px;
  font-weight: 600;
  text-align: center;
}

.code-digit:focus {
  outline: none;
  border-color: var(--tg-accent);
  box-shadow: 0 0 0 1px var(--tg-accent);
}

.status {
  min-height: 18px;
  margin-top: 12px;
  color: var(--tg-muted);
  font-size: 13px;
}

.status.ok {
  color: #4caf50;
}

.status.bad {
  color: #e53935;
}

.messenger {
  position: relative;
  display: grid;
  grid-template-rows: 56px 1fr;
  height: 100vh;
  background: var(--tg-chat-bg);
}

.menu-stub {
  position: absolute;
  z-index: 30;
  top: 56px;
  right: 0;
  bottom: 0;
  left: 340px;
  display: grid;
  place-items: center;
  background: var(--tg-chat-bg);
}

.menu-stub-spinner {
  width: 42px;
  height: 42px;
  border: 3px solid rgba(135, 116, 225, 0.18);
  border-top-color: var(--tg-accent);
  border-radius: 50%;
  animation: menu-spin 0.85s linear infinite;
}

@keyframes menu-spin {
  to {
    transform: rotate(360deg);
  }
}

[data-theme="light"] .menu-stub-spinner {
  border-color: rgba(51, 144, 236, 0.18);
  border-top-color: #3390ec;
}

.messenger-top {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 14px;
  border-bottom: 1px solid var(--tg-line);
  background: var(--tg-sidebar);
}

.back,
.icon-btn {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  color: var(--tg-accent);
  background: transparent;
  font-size: 22px;
  cursor: pointer;
}

.avatar {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--tg-accent);
  font-weight: 700;
}

.user-meta {
  min-width: 0;
  flex: 1;
}

.user-meta strong,
.user-meta span {
  display: block;
}

.user-meta span {
  overflow: hidden;
  margin-top: 2px;
  color: var(--tg-muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.messenger-body {
  display: grid;
  grid-template-columns: 340px 1fr;
  min-height: 0;
}

.sidebar {
  display: grid;
  grid-template-rows: auto 1fr;
  min-width: 0;
  border-right: 1px solid var(--tg-line);
  background: var(--tg-sidebar);
}

.sidebar input {
  margin: 8px 10px;
  min-height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: 18px;
  color: var(--tg-text);
  background: var(--tg-chat-bg);
}

.dialog-list {
  overflow-y: auto;
}

.dialog {
  display: flex;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-bottom: 1px solid var(--tg-line);
  color: var(--tg-text);
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.dialog:hover,
.dialog.active {
  background: rgba(51, 144, 236, 0.08);
}

.dialog-avatar {
  display: grid;
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--tg-accent);
  font-weight: 700;
}

.dialog-main {
  min-width: 0;
  flex: 1;
}

.dialog-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.dialog-title,
.dialog-preview {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dialog-title {
  font-weight: 600;
}

.dialog-preview,
.dialog-time {
  color: var(--tg-muted);
  font-size: 13px;
}

.dialog-preview {
  margin-top: 4px;
}

.chat-pane {
  display: grid;
  min-width: 0;
  grid-template-rows: auto 1fr auto;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='%23c5d0c855' stroke-width='1.2'%3E%3Cpath d='M10 18c8 0 8-8 16-8M84 10l6 8M30 70c6-10 14-6 20 0M92 88c-6 8-14 4-18-4M18 98c10-2 12-12 6-18'/%3E%3Ccircle cx='58' cy='24' r='4'/%3E%3Cpath d='M48 48h16v10H48zM72 52l8 6-8 6'/%3E%3C/g%3E%3C/svg%3E")
      0 0 / 120px 120px,
    var(--tg-chat-bg);
}

[data-theme="dark"] .chat-pane {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='%23ffffff18' stroke-width='1.2'%3E%3Cpath d='M10 18c8 0 8-8 16-8M84 10l6 8M30 70c6-10 14-6 20 0M92 88c-6 8-14 4-18-4M18 98c10-2 12-12 6-18'/%3E%3Ccircle cx='58' cy='24' r='4'/%3E%3Cpath d='M48 48h16v10H48zM72 52l8 6-8 6'/%3E%3C/g%3E%3C/svg%3E")
      0 0 / 120px 120px,
    var(--tg-chat-bg);
}

.chat-top {
  padding: 12px 18px;
  border-bottom: 1px solid var(--tg-line);
  background: var(--tg-sidebar);
}

.chat-top strong,
.chat-top span {
  display: block;
}

.chat-top span {
  margin-top: 2px;
  color: var(--tg-muted);
  font-size: 13px;
}

.messages {
  display: flex;
  overflow-y: auto;
  flex-direction: column;
  gap: 6px;
  padding: 16px;
}

.message {
  align-self: flex-start;
  max-width: min(78%, 560px);
  padding: 8px 12px;
  border-radius: 12px 12px 12px 4px;
  background: var(--tg-bubble-in);
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.06);
  white-space: pre-wrap;
  word-break: break-word;
}

.message.out {
  align-self: flex-end;
  border-radius: 12px 12px 4px;
  background: var(--tg-bubble-out);
}

.message-time {
  display: block;
  margin-top: 4px;
  color: var(--tg-muted);
  font-size: 11px;
  text-align: right;
}

.composer {
  display: grid;
  grid-template-columns: 1fr 44px;
  gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid var(--tg-line);
  background: var(--tg-sidebar);
}

.composer textarea {
  min-height: 42px;
  max-height: 120px;
  padding: 10px 14px;
  border: 0;
  border-radius: 20px;
  color: var(--tg-text);
  background: var(--tg-chat-bg);
  resize: vertical;
}

.composer button {
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: var(--tg-accent);
  cursor: pointer;
}

.empty {
  display: grid;
  min-height: 180px;
  place-items: center;
  padding: 20px;
  color: var(--tg-muted);
  text-align: center;
}

[data-theme="dark"] .dialog:hover,
[data-theme="dark"] .dialog.active {
  background: rgba(135, 116, 225, 0.12);
}

.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  opacity: 0;
  background: rgba(0, 0, 0, 0.45);
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.menu-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.tg-menu {
  position: fixed;
  z-index: 50;
  top: 0;
  left: 0;
  display: flex;
  overflow-y: auto;
  flex-direction: column;
  width: min(296px, 84vw);
  height: 100vh;
  padding: 0 0 20px;
  color: #c5d0dc;
  background: #17212b;
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.35);
  transform: translateX(-105%);
  transition: transform 0.22s ease;
}

.tg-menu.open {
  transform: translateX(0);
}

.menu-profile {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 18px 16px 14px;
}

.menu-avatar {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #4caf50;
  font-size: 20px;
  font-weight: 700;
}

.menu-profile-meta {
  min-width: 0;
}

.menu-profile-meta strong {
  display: block;
  overflow: hidden;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.menu-status {
  display: block;
  margin-top: 2px;
  color: #70baf5;
  font-size: 13px;
}

.menu-badge {
  border: 0;
  padding: 4px 8px;
  border-radius: 12px;
  color: #fff;
  background: #3390ec;
  font-size: 12px;
  font-weight: 600;
  cursor: default;
}

.menu-nav {
  display: grid;
  padding: 4px 0 0;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 24px;
  width: 100%;
  padding: 10px 21px;
  border: 0;
  color: #c5d0dc;
  background: transparent;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
}

.menu-item > span:first-child {
  flex: 1;
}

.menu-item::before {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  content: "";
  opacity: 0.95;
  background: currentColor;
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
}

.menu-item:nth-child(1)::before {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.8'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 20c0-4 3.6-7 8-7s8 3 8 7'/%3E%3C/svg%3E");
}

.menu-item:nth-child(2)::before {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.8'%3E%3Crect x='3' y='6' width='18' height='13' rx='2'/%3E%3Cpath d='M3 10h18'/%3E%3C/svg%3E");
}

.menu-item:nth-child(3)::before {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.8'%3E%3Ccircle cx='9' cy='9' r='3'/%3E%3Ccircle cx='16' cy='11' r='2.5'/%3E%3Cpath d='M3 19c0-3 2.5-5 6-5M14 19c0-2 1.5-3.5 3.5-3.5'/%3E%3C/svg%3E");
}

.menu-item:nth-child(4)::before {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.8'%3E%3Cpath d='M4 10v4a2 2 0 0 0 2 2h8l4 3v-3h2a2 2 0 0 0 2-2v-4a2 2 0 0 0-2-2H6a2 2 0 0 0-2 2z'/%3E%3C/svg%3E");
}

.menu-item:nth-child(5)::before {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.8'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 20c0-4 3.6-7 8-7s8 3 8 7'/%3E%3C/svg%3E");
}

.menu-item:nth-child(6)::before {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.8'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.8 19.8 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.8 19.8 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72c.12.96.36 1.9.7 2.81a2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45c.91.34 1.85.58 2.81.7A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E");
}

.menu-item:nth-child(7)::before {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.8'%3E%3Cpath d='M6 4h12v16l-6-4-6 4V4z'/%3E%3C/svg%3E");
}

.menu-item:nth-child(8)::before {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.8'%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cpath d='M12 2v2M12 20v2M4.9 4.9l1.4 1.4M17.7 17.7l1.4 1.4M2 12h2M20 12h2M4.9 19.1l1.4-1.4M17.7 6.3l1.4-1.4'/%3E%3C/svg%3E");
}

.menu-item:nth-child(9)::before {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.8'%3E%3Cpath d='M12 3a7 7 0 1 0 0 14 7 7 0 0 0 0-14z'/%3E%3C/svg%3E");
}

.menu-item:nth-child(3) {
  margin-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 16px;
}

.menu-item:hover {
  background: rgba(255, 255, 255, 0.04);
}

.menu-tag {
  margin-left: auto;
  padding: 2px 7px;
  border-radius: 10px;
  color: #fff;
  background: #3390ec;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.menu-item-toggle {
  justify-content: flex-start;
  gap: 24px;
}

.menu-item-toggle > span:first-child {
  flex: 1;
}

.menu-item-toggle .toggle-switch {
  margin-left: auto;
}

.menu-item-toggle::after {
  content: none;
}

.toggle-switch {
  position: relative;
  flex: 0 0 36px;
  width: 36px;
  height: 20px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.25);
  transition: background 0.2s ease;
}

.toggle-switch::after {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  content: "";
  background: #fff;
  transition: transform 0.2s ease;
}

.toggle-switch.on {
  background: #3390ec;
}

.toggle-switch.on::after {
  transform: translateX(16px);
}

.menu-btn {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  color: var(--tg-accent);
  background: transparent;
  font-size: 22px;
  cursor: pointer;
}

[data-theme="dark"] .messenger-top,
[data-theme="dark"] .sidebar,
[data-theme="dark"] .chat-top,
[data-theme="dark"] .composer {
  background: #17212b;
  border-color: #0e1621;
}

[data-theme="dark"] .sidebar input,
[data-theme="dark"] .composer textarea {
  background: #242f3d;
  color: #fff;
}

[data-theme="dark"] .avatar,
[data-theme="dark"] .dialog-avatar {
  background: #8774e1;
}

[data-theme="dark"] .message-time {
  color: rgba(255, 255, 255, 0.45);
}

@media (max-width: 820px) {
  .menu-stub {
    left: 0;
  }

  .messenger-body {
    grid-template-columns: 1fr;
  }

  .chat-pane {
    display: none;
  }

  .messenger.chat-open .sidebar {
    display: none;
  }

  .messenger.chat-open .chat-pane {
    display: grid;
  }
}

@media (max-width: 480px) {
  .tg-card {
    padding: 32px 24px 28px;
  }

  .tg-logo {
    width: 100px;
    height: 100px;
  }

  .code-digit {
    width: 40px;
    height: 44px;
    font-size: 20px;
  }

  .code-boxes {
    gap: 8px;
  }
}
