html {
  font-size: 14px;
}

.text-ltr {
  direction: ltr;
  unicode-bidi: isolate;
}

.app-version {
  position: fixed;
  inset-inline-end: 16px;
  bottom: 10px;
  color: var(--muted, #7f8ea3);
  font-size: 11px;
  opacity: .8;
}

.topbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.login-language {
  display: flex;
  justify-content: flex-end;
  max-width: 1080px;
  margin: 24px auto -18px;
  padding-inline: 26px;
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 4px;
  border: 1px solid var(--line, rgba(0, 0, 0, .15));
  border-radius: 12px;
  background: var(--panel, rgba(255, 255, 255, .8));
}

.language-switcher__option {
  border: 0;
  border-radius: 9px;
  padding: 6px 9px;
  color: var(--muted, #495057);
  background: transparent;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
}

.language-switcher__option:hover,
.language-switcher__option.active {
  color: #07111f;
  background: var(--brand, #7dd3fc);
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

@media (max-width: 780px) {
  .topbar { flex-wrap: wrap; }
  .topbar-actions {
    width: 100%;
    min-width: 0;
    align-items: stretch;
    justify-content: flex-start;
    flex-wrap: wrap;
    row-gap: 10px;
  }

  .topbar-actions .language-switcher,
  .topbar-actions .profile {
    max-width: 100%;
  }

  .topbar-actions .profile {
    width: 100%;
  }

  .login-language {
    margin-top: 16px;
    padding-inline: 16px;
  }
}
