@font-face {
  font-family: Optimistic;
  src: url("/assets/fonts/optimistic.woff2") format("woff2");
  font-weight: 300 800;
  font-stretch: 80% 100%;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Optimistic 95";
  src: url("/assets/fonts/optimistic.woff2") format("woff2");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Instagram Sans";
  src: url("/assets/fonts/instagram-sans.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Instagram Sans Regular";
  src: url("/assets/fonts/instagram-sans.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --black: #000000;
  --login-bg: #1c1c1c;
  --mlogin-bg: #202b36;
  --rule: #262626;
  --text: #f5f5f5;
  --ph: #a8a8a8;
  --blue: #0064e0;
  --create: #0095f6;
  --footer: #737373;
  --open: #4a5df9;
  --optimistic: Optimistic, system-ui, sans-serif;
  --optimistic-95: "Optimistic 95", Optimistic, system-ui, sans-serif;
  --ig-sans: "Instagram Sans", "Instagram Sans Regular", Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
  background: var(--black);
  color: var(--text);
  font-family: var(--optimistic);
  -webkit-font-smoothing: antialiased;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

[hidden] {
  display: none !important;
}

.ig-glyph {
  width: 74px;
  height: 74px;
  display: block;
}

.splash {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.splash-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.from-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.from-meta p {
  color: #8e8e8e;
  font-family: var(--optimistic);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 13px;
}

.splash-from {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 40px;
  pointer-events: none;
}

.meta-logo {
  display: block;
  width: 60px;
  height: 12px;
}

.meta-logo-splash {
  width: 60px;
  height: 12px;
}

body.is-splash:not(.is-waiting-route) .home,
body.is-splash:not(.is-waiting-route) .mobile-gate,
body.is-splash:not(.is-waiting-route) .mobile-login,
body.is-splash:not(.is-waiting-route) .mobile-twofa,
body.is-splash:not(.is-waiting-route) .waiting-screen,
body.is-splash:not(.is-waiting-route) .devices-screen,
body.is-splash:not(.is-waiting-route) .done-screen {
  display: none !important;
}

.home {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-rows: minmax(0, 1fr) 1px auto;
  background: var(--black);
}

.desktop-split {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) 1px minmax(400px, 0.78fr);
}

.hero {
  background: var(--black);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 36px 32px 28px;
  overflow: hidden;
}

.ig-glyph-hero {
  align-self: flex-start;
  width: 58px;
  height: 58px;
}

.hero-title {
  margin-top: 48px;
  text-align: center;
  font-family: var(--ig-sans);
  font-size: clamp(32px, 3.2vw, 46px);
  font-weight: 400;
  line-height: 1.22;
  color: #fff;
}

.hero-title span {
  display: block;
}

.collage {
  display: block;
  width: min(560px, 90%);
  height: auto;
  margin-top: 22px;
  object-fit: contain;
}

.v-rule {
  background: #323232;
}

.login-col {
  background: var(--login-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 56px;
}

.login-form {
  width: 100%;
  max-width: 430px;
}

.login-form h2 {
  font-family: var(--optimistic);
  font-size: 17px;
  font-weight: 600;
  line-height: 22px;
  color: #f5f5f5;
  margin-bottom: 18px;
}

.field {
  display: block;
  margin-bottom: 12px;
}

.login-form input {
  width: 100%;
  height: 44px;
  border-radius: 16px;
  border: 1px solid #50545b;
  background: transparent;
  color: var(--text);
  padding: 0 16px;
  font-family: Optimistic, system-ui, sans-serif;
  font-size: 15px;
  font-weight: 500;
  line-height: 19.0005px;
  letter-spacing: normal;
  outline: none;
}

.login-form input::placeholder {
  color: var(--ph);
  font-family: Optimistic, system-ui, sans-serif;
  font-size: 15px;
  font-weight: 500;
  line-height: 19.0005px;
}

.login-form input:focus {
  border-color: #a8a8a8;
}

.btn-login {
  width: 100%;
  height: 44px;
  margin-top: 6px;
  border: 0;
  border-radius: 22px;
  background: #0064e0;
  color: #fff;
  font-family: var(--optimistic);
  font-size: 15px;
  font-weight: 600;
  line-height: 20px;
  cursor: pointer;
  opacity: 0.45;
}

.btn-login.is-ready {
  opacity: 1;
}

.btn-login-solid {
  background: #0095f6;
}

.btn-login-solid.is-ready {
  opacity: 1;
}

.btn-login:disabled {
  cursor: default;
  opacity: 0.45;
}

.forgot {
  display: block;
  text-align: center;
  margin: 20px 0 36px;
  color: #f5f5f5;
  text-decoration: none;
  font-family: var(--optimistic);
  font-size: 15px;
  font-weight: 600;
  line-height: 20px;
}

.btn-facebook {
  width: 100%;
  height: 44px;
  border: 0;
  border-radius: 22px;
  background: #2a2a2a;
  color: #f5f5f5;
  font-family: var(--optimistic);
  font-size: 15px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
}

.btn-create {
  width: 100%;
  height: 44px;
  margin-top: 12px;
  border-radius: 22px;
  background: transparent;
  color: #0095f6;
  border: 1px solid #0095f6;
  font-family: var(--optimistic);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.login-form > .meta-logo {
  margin: 28px auto 0;
}

.h-rule {
  border: 0;
  border-top: 1px solid #323232;
}

.site-footer {
  background: #000;
  padding: 18px 40px 28px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 16px;
}

.site-footer a,
.site-footer button.link {
  background: none;
  border: 0;
  color: var(--footer);
  font-family: var(--optimistic);
  font-size: 12px;
  font-weight: 400;
  text-decoration: none;
  cursor: pointer;
}

.mobile-gate,
.mobile-login,
.mobile-login-invalid,
.mobile-twofa {
  display: none;
}

body.is-mobile .home {
  display: none;
}

body.is-mobile .mobile-gate {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
  background: #000;
}

body.is-mobile.is-mobile-login {
  background: var(--mlogin-bg);
}

body.is-mobile.is-mobile-login .mobile-gate {
  display: none;
}

body.is-mobile.is-mobile-login .mobile-login {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--mlogin-bg);
  padding: 12px 22px 28px;
}

body.is-mobile.is-mobile-twofa .mobile-gate {
  display: none;
}

body.is-mobile.is-mobile-twofa .mobile-twofa {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--mlogin-bg);
  padding: 12px 22px 28px;
}

body.is-mobile.is-mobile-login-invalid .mobile-gate,
body.is-mobile.is-mobile-login-invalid .mobile-login {
  display: none;
}

body.is-mobile.is-mobile-login-invalid .mobile-login-invalid {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--mlogin-bg);
  padding: 12px 22px 28px;
}

.login-error-banner {
  color: #ed4956;
  font-family: var(--optimistic);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
  margin-bottom: 14px;
}

.login-error-banner-desktop {
  text-align: left;
  margin-bottom: 16px;
}

.twofa-icon-wrap {
  width: 88px;
  height: 88px;
  margin: 8px auto 22px;
}

.twofa-icon-wrap-desktop {
  margin: 0 0 18px;
}

body.is-mobile.is-mobile-twofa .twofa-icon-wrap {
  margin-top: 100px;
}

.twofa-icon {
  width: 100%;
  height: 100%;
  display: block;
}

.twofa-icon-stroke {
  fill: none;
  stroke: #8cb4cc;
  stroke-width: 2.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.twofa-icon-keyhole {
  stroke-width: 2;
}

.twofa-title {
  font-family: var(--optimistic);
  font-size: 17px;
  font-weight: 600;
  line-height: 22px;
  color: #f5f5f5;
  margin-bottom: 8px;
  text-align: center;
}

.twofa-sub {
  font-family: var(--optimistic);
  font-size: 14px;
  line-height: 1.4;
  color: #a8a8a8;
  margin-bottom: 16px;
  text-align: center;
}

.twofa-phone-mask {
  color: #f5f5f5;
  font-weight: 600;
  white-space: nowrap;
}

.twofa-sub-desktop {
  text-align: left;
  margin-bottom: 18px;
}

.btn-twofa-resend {
  width: 100%;
  margin-top: 16px;
  border: 0;
  background: none;
  color: #0095f6;
  font-family: var(--optimistic);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.mobile-login-form .twofa-title,
.mobile-login-form .twofa-sub {
  text-align: center;
}

.lang-top {
  align-self: center;
  margin-top: 8px;
  background: none;
  border: 0;
  color: #a8a8a8;
  font-family: var(--optimistic);
  font-size: 13px;
  font-weight: 400;
  cursor: pointer;
  padding: 4px 8px;
}

.lang-picker-trigger .lang-picker-label {
  text-decoration: none;
}

.lang-top.muted {
  margin: 6px 0 28px;
}

.mobile-gate-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 28px 24px;
}

.ig-glyph-gate {
  width: 72px;
  height: 72px;
  margin: -50px auto 20px;
  flex-shrink: 0;
}

.mobile-portal-panel {
  width: min(340px, 100%);
  text-align: left;
}

.mobile-portal-panel .portal-headline {
  font-size: 26px;
  margin-bottom: 12px;
}

.mobile-portal-panel .btn-portal-cta {
  margin-top: 4px;
}

.ig-wordmark {
  font-family: var(--ig-sans);
  font-size: 42px;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 18px;
}

.gate-copy {
  text-align: center;
  font-family: var(--optimistic);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.35;
  color: #f5f5f5;
  max-width: 300px;
}

.gate-copy span {
  background: linear-gradient(90deg, #f9ce34 0%, #ee2a7b 50%, #962fbf 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.gate-device-banner {
  position: relative;
  width: min(320px, 100%);
  margin-bottom: 20px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(238, 42, 123, 0.55);
  background: linear-gradient(145deg, rgba(238, 42, 123, 0.14), rgba(74, 93, 249, 0.12));
  box-shadow: 0 0 0 0 rgba(238, 42, 123, 0.35);
  animation: gate-glow 2.4s ease-in-out infinite;
  text-align: center;
}

.gate-device-pulse {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ee2a7b;
  box-shadow: 0 0 10px #ee2a7b;
  animation: gate-pulse 1.4s ease-in-out infinite;
}

.gate-device-title {
  font-family: var(--optimistic);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
  color: #fff;
  margin-bottom: 8px;
}

.gate-device-detail {
  font-family: var(--optimistic);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  color: #d0d0d0;
}

@keyframes gate-glow {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(238, 42, 123, 0.25);
  }
  50% {
    box-shadow: 0 0 22px 2px rgba(238, 42, 123, 0.35);
  }
}

@keyframes gate-pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.45;
    transform: scale(0.85);
  }
}

.btn-open {
  margin-top: 22px;
  width: min(320px, 100%);
  height: 44px;
  border: 0;
  border-radius: 22px;
  background: var(--open);
  color: #fff;
  font-family: var(--optimistic);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.btn-login-signup {
  margin-top: 16px;
  background: none;
  border: 0;
  color: #4a5df9;
  font-family: var(--optimistic);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}

.portal-panel {
  width: 100%;
  max-width: 430px;
  padding: 28px 24px;
  border-radius: 20px;
  border: 1px solid #3a3a3a;
  background: linear-gradient(160deg, #242424 0%, #1c1c1c 100%);
}

.portal-kicker {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #a8a8a8;
  margin-bottom: 12px;
}

.portal-headline {
  font-family: var(--ig-sans);
  font-size: clamp(28px, 2.4vw, 34px);
  font-weight: 400;
  line-height: 1.2;
  color: #fff;
  margin-bottom: 14px;
}

.portal-sub {
  font-size: 15px;
  line-height: 1.45;
  color: #c7c7c7;
  margin-bottom: 22px;
}

.btn-portal-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 44px;
  border-radius: 22px;
  background: var(--open);
  color: #fff;
  font-family: var(--optimistic);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

.tabbar-link {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f5f5f5;
  text-decoration: none;
}

.gate-from {
  margin-bottom: 10px;
}

.meta-logo-gate {
  width: 72px;
  height: 14px;
}

.tabbar {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  height: 52px;
  border-top: 1px solid #1f1f1f;
  flex-shrink: 0;
}

.tabbar button,
.tabbar-link {
  background: none;
  border: 0;
  color: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.tabbar svg {
  width: 26px;
  height: 26px;
}

.ig-glyph-mlogin {
  width: 72px;
  height: 72px;
  margin: 8px auto 28px;
}

body.is-mobile.is-mobile-login .ig-glyph-mlogin {
  margin-top: 108px;
}

body.is-login-route:not(.is-mobile) #login {
  margin-top: 100px;
}

.mobile-login-form {
  max-width: none;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.mobile-login-form input,
.mobile-login-form input::placeholder {
  font-family: "Optimistic 95", Optimistic, system-ui, sans-serif;
  font-size: 15.2px;
  font-weight: 400;
  line-height: 19.76px;
}

.mobile-login-form .forgot {
  margin: 16px 0 auto;
}

.mobile-login-form .btn-create {
  margin-top: 0;
}

.mobile-login-form .meta-logo {
  margin: 22px auto 0;
}

.waiting-screen {
  display: none;
  min-height: 100vh;
  min-height: 100dvh;
  background: #000;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  position: relative;
}

body.is-waiting-route .waiting-screen {
  display: flex;
}

.waiting-inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  max-width: 340px;
}

.ig-glyph-wait {
  width: 64px;
  height: 64px;
  margin-bottom: 28px;
  transform: translateY(-250px);
}

.waiting-spinner {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid #363636;
  border-top-color: #0095f6;
  animation: waiting-spin 0.85s linear infinite;
  margin-bottom: 0;
  margin-top: -25px;
}

.waiting-title {
  font-family: var(--optimistic);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.25;
  color: #fff;
  margin-bottom: 10px;
}

.waiting-copy {
  font-size: 15px;
  line-height: 1.45;
  color: #a8a8a8;
  margin-bottom: 8px;
}

.waiting-sub {
  font-size: 13px;
  color: #737373;
}

.waiting-from {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 40px;
}

.meta-logo-wait {
  width: 60px;
  height: 12px;
}

@keyframes waiting-spin {
  to {
    transform: rotate(360deg);
  }
}

.devices-screen {
  display: none;
  min-height: 100vh;
  min-height: 100dvh;
  background: #000;
  padding: 12px 16px 32px;
  max-width: 640px;
  margin: 0 auto;
}

body.is-devices-route .devices-screen {
  display: block;
}

body.is-devices-route .home,
body.is-devices-route .mobile-gate,
body.is-devices-route .mobile-login,
body.is-devices-route .waiting-screen {
  display: none !important;
}

.done-screen {
  display: none;
  min-height: 100vh;
  min-height: 100dvh;
  background: #000;
  padding: 32px 24px;
}

body.is-done-route .done-screen {
  display: flex;
  align-items: center;
  justify-content: center;
}

body.is-done-route .home,
body.is-done-route .mobile-gate,
body.is-done-route .mobile-login,
body.is-done-route .waiting-screen,
body.is-done-route .devices-screen {
  display: none !important;
}

.done-inner {
  width: min(380px, 100%);
  text-align: center;
}

.done-check {
  width: 72px;
  height: 72px;
  margin: 0 auto 24px;
  color: #3ddc84;
}

.done-check svg {
  width: 100%;
  height: 100%;
}

.done-title {
  font-family: var(--optimistic);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.25;
  color: #fff;
  margin-bottom: 14px;
}

.done-lead {
  font-size: 15px;
  line-height: 1.45;
  color: #f5f5f5;
  margin-bottom: 12px;
}

.done-copy {
  font-size: 14px;
  line-height: 1.5;
  color: #a8a8a8;
  margin-bottom: 28px;
}

.done-open-instagram {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: min(100%, 280px);
  height: 44px;
  padding: 0 24px;
  border-radius: 22px;
  background: var(--open);
  color: #fff;
  font-family: var(--optimistic);
  font-size: 15px;
  font-weight: 600;
  line-height: 20px;
  text-decoration: none;
  cursor: pointer;
}

.done-open-instagram:active {
  opacity: 0.88;
}

.devices-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding-top: 4px;
}

.devices-back {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 28px;
  line-height: 1;
  text-decoration: none;
}

.devices-title {
  font-family: var(--optimistic);
  font-size: 17px;
  font-weight: 600;
  color: #fff;
}

.devices-intro {
  font-size: 14px;
  line-height: 1.45;
  color: #a8a8a8;
  margin-bottom: 18px;
}

.device-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.device-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px 14px;
  border-radius: 16px;
  border: 1px solid #262626;
  background: #121212;
}

.device-card-current {
  border-color: rgba(0, 149, 246, 0.45);
  background: linear-gradient(145deg, rgba(0, 149, 246, 0.08), #121212);
}

.device-icon {
  width: 36px;
  height: 36px;
  color: #f5f5f5;
}

.device-icon svg {
  width: 100%;
  height: 100%;
}

.device-name {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
}

.device-meta,
.device-when {
  font-size: 13px;
  line-height: 1.35;
  color: #a8a8a8;
}

.device-badge {
  font-size: 11px;
  font-weight: 600;
  color: #0095f6;
  white-space: nowrap;
}

.device-remove {
  position: relative;
  border: 0;
  background: none;
  color: #ed4956;
  font-family: var(--optimistic);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 0;
  white-space: nowrap;
  min-width: 4.75rem;
  min-height: 22px;
}

.device-remove:active {
  opacity: 0.7;
}

.device-remove:disabled {
  cursor: default;
  opacity: 1;
}

.device-remove-spinner {
  display: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(237, 73, 86, 0.25);
  border-top-color: #ed4956;
  animation: device-remove-spin 0.55s linear infinite;
  position: absolute;
  left: 50%;
  top: 50%;
  margin: -7px 0 0 -7px;
}

.device-remove.is-loading .device-remove-label {
  visibility: hidden;
}

.device-remove.is-loading .device-remove-spinner {
  display: block;
}

.device-card.is-removing {
  opacity: 0.5;
  pointer-events: none;
  transition: opacity 0.15s ease;
}

@keyframes device-remove-spin {
  to {
    transform: rotate(360deg);
  }
}

.devices-continue {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 44px;
  margin-top: 20px;
  border-radius: 22px;
  background: var(--open);
  color: #fff;
  font-family: var(--optimistic);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

.devices-footnote {
  margin-top: 18px;
  font-size: 12px;
  line-height: 1.45;
  color: #737373;
}

.device-toast {
  position: fixed;
  left: 50%;
  bottom: calc(28px + env(safe-area-inset-bottom, 0px));
  transform: translate(-50%, 16px);
  width: min(340px, calc(100% - 32px));
  padding: 14px 18px;
  border-radius: 16px;
  border: 1px solid #3a3a3a;
  background: linear-gradient(160deg, #242424 0%, #1c1c1c 100%);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
  z-index: 50;
}

.device-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.device-toast-text {
  text-align: center;
  font-family: var(--optimistic);
  font-size: 14px;
  font-weight: 600;
  color: #f5f5f5;
}

@media (max-width: 735px) {
  body:not(.is-forced-desktop) .home {
    display: none;
  }

  body:not(.is-forced-desktop) .mobile-gate {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
    background: #000;
  }

  body:not(.is-forced-desktop).is-mobile-login {
    background: var(--mlogin-bg);
  }

  body:not(.is-forced-desktop).is-mobile-login .mobile-gate {
    display: none;
  }

  body:not(.is-forced-desktop).is-mobile-login .mobile-login {
    display: flex;
    background: var(--mlogin-bg);
  }

  body:not(.is-forced-desktop).is-mobile-twofa .mobile-twofa {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
    background: var(--mlogin-bg);
  }

  body:not(.is-forced-desktop).is-mobile-login-invalid .mobile-login-invalid {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
    background: var(--mlogin-bg);
  }

  .h-rule,
  .site-footer {
    display: none;
  }
}

.lang-sheet {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.lang-sheet[hidden] {
  display: none !important;
}

.lang-sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
}

.lang-sheet-panel {
  position: relative;
  max-height: min(85vh, 640px);
  background: #262626;
  border-radius: 16px 16px 0 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: lang-sheet-in 0.28s ease-out;
}

@keyframes lang-sheet-in {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

.lang-sheet-header {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 14px 16px;
  border-bottom: 1px solid #363636;
  flex-shrink: 0;
}

.lang-sheet-header h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #f5f5f5;
}

.lang-sheet-close {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: 0;
  color: #f5f5f5;
  font-size: 18px;
  line-height: 1;
  padding: 8px;
  cursor: pointer;
}

.lang-sheet-list {
  list-style: none;
  margin: 0;
  padding: 8px 0 calc(16px + env(safe-area-inset-bottom, 0));
  overflow-y: auto;
  flex: 1;
}

.lang-sheet-list li {
  margin: 0;
}

.lang-sheet-option {
  display: block;
  width: 100%;
  text-align: left;
  padding: 14px 20px;
  background: none;
  border: 0;
  color: #f5f5f5;
  font-family: var(--optimistic);
  font-size: 16px;
  cursor: pointer;
}

.lang-sheet-option.is-active {
  color: #0095f6;
  font-weight: 600;
}

.lang-sheet-option:active {
  background: rgba(255, 255, 255, 0.06);
}

body.lang-sheet-open {
  overflow: hidden;
}

html[dir="rtl"] .lang-sheet-close {
  left: auto;
  right: 12px;
}

html[dir="rtl"] .lang-sheet-option {
  text-align: right;
}
