/* Public web auth equalizer. This file is loaded last so login/register/forgot
   keep the same card width and do not jump while switching tabs. */
html:not(.electron-client) #authView #authDrawer.auth-drawer {
  overflow: hidden !important;
}

/* Exeify v17: maximized Windows view can be wide but still short; keep both cards equal and fully visible. */
@media (min-width: 1101px) and (max-height: 900px) {
  html.exeify-client.exeify-compact-window #authView#authView.client-login-mode:not(.hidden) {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    grid-template-rows: minmax(0, 1fr) !important;
    align-items: stretch !important;
    justify-items: stretch !important;
    gap: clamp(18px, 2vw, 28px) !important;
    width: 100vw !important;
    height: 100vh !important;
    min-width: 0 !important;
    min-height: 0 !important;
    padding: 16px clamp(32px, 3.5vw, 48px) clamp(44px, 5.8vh, 64px) !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }

  html.exeify-client.exeify-compact-window #authView#authView.client-login-mode .client-login-preview,
  html.exeify-client.exeify-compact-window #authView#authView.client-login-mode #authDrawer.auth-drawer {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    height: 100% !important;
    max-height: none !important;
    min-width: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    overflow: visible !important;
    box-sizing: border-box !important;
  }

  html.exeify-client.exeify-compact-window #authView#authView.client-login-mode .client-login-brand-panel,
  html.exeify-client.exeify-compact-window #authView#authView.client-login-mode #authDrawer.auth-drawer .auth-drawer-scroll {
    align-self: stretch !important;
    justify-self: stretch !important;
    width: 100% !important;
    max-width: none !important;
    height: 100% !important;
    max-height: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    border: 1px solid rgba(255, 151, 76, .28) !important;
    border-radius: 18px !important;
    background: rgba(255, 255, 255, .94) !important;
    box-shadow: 0 18px 44px rgba(255, 126, 33, .08) !important;
    box-sizing: border-box !important;
  }

  html.exeify-client.exeify-compact-window #authView#authView.client-login-mode .client-login-brand-panel {
    display: grid !important;
    grid-template-rows: minmax(0, 1fr) auto auto !important;
    align-content: stretch !important;
    align-items: center !important;
    row-gap: clamp(16px, 2.5vh, 22px) !important;
    padding: clamp(28px, 4vh, 38px) clamp(28px, 3.2vw, 42px) clamp(24px, 3.4vh, 34px) !important;
    overflow: hidden !important;
  }

  html.exeify-client.exeify-compact-window #authView#authView.client-login-mode #authDrawer.auth-drawer .auth-drawer-scroll {
    padding: clamp(18px, 2.8vh, 24px) clamp(24px, 3vw, 34px) clamp(18px, 2.8vh, 24px) !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    scrollbar-gutter: stable !important;
  }

  html.exeify-client.exeify-compact-window #authView#authView.client-login-mode #authDrawer.auth-drawer .auth-card-inner {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    height: 100% !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    box-sizing: border-box !important;
  }

  html.exeify-client.exeify-compact-window #authView#authView.client-login-mode .client-login-hero-copy h1 {
    font-size: clamp(40px, 4vw, 54px) !important;
    line-height: 1.07 !important;
    letter-spacing: 0 !important;
  }

  html.exeify-client.exeify-compact-window #authView#authView.client-login-mode .client-login-hero-copy p {
    max-width: 100% !important;
    margin-top: 16px !important;
    font-size: 14px !important;
    line-height: 1.62 !important;
  }

  html.exeify-client.exeify-compact-window #authView#authView.client-login-mode .client-login-chips {
    gap: 10px !important;
    margin: 0 !important;
  }

  html.exeify-client.exeify-compact-window #authView#authView.client-login-mode .client-login-chips span {
    height: 30px !important;
    padding: 0 11px !important;
    font-size: 12px !important;
  }

  html.exeify-client.exeify-compact-window #authView#authView.client-login-mode .client-login-stat-grid {
    margin: 0 !important;
    padding: 14px 0 !important;
  }

  html.exeify-client.exeify-compact-window #authView#authView.client-login-mode #authDrawer.auth-drawer .auth-title {
    min-height: 86px !important;
    margin: 0 0 10px !important;
  }

  html.exeify-client.exeify-compact-window #authView#authView.client-login-mode #authDrawer.auth-drawer .auth-title h2 {
    min-height: 30px !important;
    margin: 6px 0 0 !important;
    font-size: 25px !important;
    line-height: 1.14 !important;
  }

  html.exeify-client.exeify-compact-window #authView#authView.client-login-mode #authDrawer.auth-drawer .auth-title p:not(.eyebrow) {
    min-height: 30px !important;
    margin: 7px 0 0 !important;
    font-size: 13px !important;
    line-height: 1.38 !important;
  }

  html.exeify-client.exeify-compact-window #authView#authView.client-login-mode #authDrawer.auth-drawer .auth-tabs {
    height: 34px !important;
    min-height: 34px !important;
    margin: 0 0 10px !important;
  }

  html.exeify-client.exeify-compact-window #authView#authView.client-login-mode #authDrawer.auth-drawer .auth-tabs button {
    min-height: 34px !important;
    font-size: 13px !important;
  }

  html.exeify-client.exeify-compact-window #authView#authView.client-login-mode #authDrawer.auth-drawer .auth-form:not(.hidden) {
    gap: 9px !important;
    margin-top: 0 !important;
  }

  html.exeify-client.exeify-compact-window #authView#authView.client-login-mode #authDrawer.auth-drawer .input-wrap,
  html.exeify-client.exeify-compact-window #authView#authView.client-login-mode #authDrawer.auth-drawer .input-wrap input,
  html.exeify-client.exeify-compact-window #authView#authView.client-login-mode #authDrawer.auth-drawer .captcha-row input,
  html.exeify-client.exeify-compact-window #authView#authView.client-login-mode #authDrawer.auth-drawer .code-row input,
  html.exeify-client.exeify-compact-window #authView#authView.client-login-mode #authDrawer.auth-drawer .code-row .secondary,
  html.exeify-client.exeify-compact-window #authView#authView.client-login-mode #authDrawer.auth-drawer .ali-captcha-button,
  html.exeify-client.exeify-compact-window #authView#authView.client-login-mode #authDrawer.auth-drawer .ali-captcha-status {
    height: 38px !important;
    min-height: 38px !important;
    border-radius: 12px !important;
    font-size: 12px !important;
  }

  html.exeify-client.exeify-compact-window #authView#authView.client-login-mode #authDrawer.auth-drawer .auth-form > .primary {
    height: 42px !important;
    min-height: 42px !important;
    margin-top: 0 !important;
    border-radius: 13px !important;
    font-size: 14px !important;
  }

  html.exeify-client.exeify-compact-window #authView#authView.client-login-mode .client-sync-foot {
    margin-top: 14px !important;
  }
}

html:not(.electron-client) #authView #authDrawer.auth-drawer .auth-drawer-head {
  height: 73px !important;
  min-height: 73px !important;
  flex: 0 0 73px !important;
  padding: 12px 20px !important;
  box-sizing: border-box !important;
}

html:not(.electron-client) #authView #authDrawer.auth-drawer .auth-drawer-scroll {
  display: block !important;
  width: 100% !important;
  overflow-y: scroll !important;
  overflow-x: hidden !important;
  scrollbar-gutter: stable both-edges !important;
  box-sizing: border-box !important;
}

html:not(.electron-client) #authView:not(.client-login-mode) #authDrawer.auth-drawer .auth-drawer-scroll {
  padding: 22px 24px !important;
}

html:not(.electron-client) #authView.client-login-mode #authDrawer.auth-drawer .auth-drawer-scroll {
  padding: 22px 24px !important;
}

html:not(.electron-client) #authView #authDrawer.auth-drawer .auth-card-inner {
  display: block !important;
  width: 430px !important;
  max-width: calc(100vw - 28px) !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin: 0 auto 18px !important;
  padding: 22px !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}

html:not(.electron-client) #authView #authDrawer.auth-drawer .auth-title {
  min-height: 112px !important;
}

html:not(.electron-client) #authView #authDrawer.auth-drawer .auth-title .eyebrow {
  min-height: 17px !important;
}

html:not(.electron-client) #authView #authDrawer.auth-drawer .auth-title h2 {
  min-height: 34px !important;
  margin: 6px 0 0 !important;
  font-size: clamp(1.34rem, 4vw, 1.76rem) !important;
  line-height: 1.16 !important;
}

html:not(.electron-client) #authView #authDrawer.auth-drawer .auth-title p:not(.eyebrow) {
  min-height: 42px !important;
  margin: 8px 0 0 !important;
  font-size: .86rem !important;
  line-height: 1.48 !important;
}

html:not(.electron-client) #authView #authDrawer.auth-drawer .auth-tabs {
  min-height: 38px !important;
  margin: 16px 0 0 !important;
}

html:not(.electron-client) #authView #authDrawer.auth-drawer .auth-tabs button {
  min-height: 38px !important;
  font-size: .84rem !important;
}

html:not(.electron-client) #authView #authDrawer.auth-drawer .auth-form.hidden {
  display: none !important;
}

html:not(.electron-client) #authView #authDrawer.auth-drawer .auth-form:not(.hidden) {
  display: grid !important;
  width: 100% !important;
  gap: 12px !important;
  margin-top: 16px !important;
  box-sizing: border-box !important;
}

html:not(.electron-client) #authView #authDrawer.auth-drawer .auth-form label,
html:not(.electron-client) #authView #authDrawer.auth-drawer .auth-form .auth-form-row,
html:not(.electron-client) #authView #authDrawer.auth-drawer .auth-form .input-wrap,
html:not(.electron-client) #authView #authDrawer.auth-drawer .auth-form .captcha-row,
html:not(.electron-client) #authView #authDrawer.auth-drawer .auth-form .code-row,
html:not(.electron-client) #authView #authDrawer.auth-drawer .auth-form > .primary {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}

html:not(.electron-client) #authView #loginForm .local-captcha-label > span,
html:not(.electron-client) #authView #loginForm .local-captcha-label .captcha-row {
  display: none !important;
}

html:not(.electron-client) #authView #loginForm .local-captcha-label > span {
  display: inline-block !important;
}

html:not(.electron-client) #authView #loginForm .local-captcha-label .captcha-row {
  display: grid !important;
}

html:not(.electron-client) #authView #authDrawer.auth-drawer .auth-form .input-wrap,
html:not(.electron-client) #authView #authDrawer.auth-drawer .auth-form .input-wrap input,
html:not(.electron-client) #authView #authDrawer.auth-drawer .auth-form .captcha-row input,
html:not(.electron-client) #authView #authDrawer.auth-drawer .auth-form .captcha-image,
html:not(.electron-client) #authView #authDrawer.auth-drawer .auth-form .code-row input,
html:not(.electron-client) #authView #authDrawer.auth-drawer .auth-form .code-row .secondary {
  height: 44px !important;
  min-height: 44px !important;
  border-radius: 14px !important;
  box-sizing: border-box !important;
}

html:not(.electron-client) #authView #authDrawer.auth-drawer .auth-form > .primary {
  height: 46px !important;
  min-height: 46px !important;
  margin-top: 4px !important;
  border-radius: 14px !important;
}

html:not(.electron-client) #authView #registerForm.auth-form:not(.hidden) {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  column-gap: 14px !important;
  row-gap: 12px !important;
}

html:not(.electron-client) #authView #registerForm > .auth-form-row,
html:not(.electron-client) #authView #registerForm > .graph-captcha-label,
html:not(.electron-client) #authView #registerForm > .primary {
  grid-column: 1 / -1 !important;
}

html:not(.electron-client) #authView #registerForm > label {
  grid-column: auto !important;
  min-width: 0 !important;
}

html:not(.electron-client) #authView #registerForm > .auth-form-row.auth-form-row-7-3 {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  column-gap: 14px !important;
}

html:not(.electron-client) #authView #registerForm > .auth-form-row.auth-form-row-7-3:nth-of-type(2) {
  grid-template-columns: minmax(0, 1.28fr) minmax(0, .72fr) !important;
}

html:not(.electron-client) #authView #registerForm > .auth-form-row.auth-form-row-7-3:nth-of-type(2) .code-row,
html:not(.electron-client) #authView #forgotForm .code-row {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  gap: 10px !important;
}

html:not(.electron-client) #authView #registerForm .ali-captcha-panel,
html:not(.electron-client) #authView #loginForm .ali-captcha-panel,
html:not(.electron-client) #authView #forgotForm .ali-captcha-panel {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}

html:not(.electron-client) #authView #registerForm .ali-captcha-button,
html:not(.electron-client) #authView #loginForm .ali-captcha-button,
html:not(.electron-client) #authView #forgotForm .ali-captcha-button {
  flex: 0 0 216px !important;
  width: 216px !important;
  max-width: 216px !important;
  min-width: 0 !important;
}

html:not(.electron-client) #authView #registerForm .ali-captcha-status,
html:not(.electron-client) #authView #loginForm .ali-captcha-status,
html:not(.electron-client) #authView #forgotForm .ali-captcha-status {
  flex: 0 0 88px !important;
  width: 88px !important;
  min-width: 88px !important;
  height: 44px !important;
  min-height: 44px !important;
  border-radius: 999px !important;
}

html:not(.electron-client) #authView #authDrawer.auth-drawer .message {
  min-height: 18px !important;
  margin: 10px 0 0 !important;
}

html:not(.electron-client) #authView #authDrawer.auth-drawer .client-sync-foot {
  margin-top: 22px !important;
}

html:not(.electron-client) #authView #authDrawer.auth-drawer .auth-drawer-foot {
  display: block !important;
  visibility: hidden !important;
  min-height: 18px !important;
  margin: 12px auto 0 !important;
}

@media (max-width: 640px) {
  html:not(.electron-client) #authView #authDrawer.auth-drawer .auth-card-inner {
    width: 430px !important;
    max-width: calc(100vw - 28px) !important;
    padding: 20px !important;
  }

  html:not(.electron-client) #authView #registerForm.auth-form:not(.hidden),
  html:not(.electron-client) #authView #registerForm > .auth-form-row.auth-form-row-7-3,
  html:not(.electron-client) #authView #registerForm > .auth-form-row.auth-form-row-7-3:nth-of-type(2) {
    grid-template-columns: 1fr !important;
  }

  html:not(.electron-client) #authView #registerForm .ali-captcha-button,
  html:not(.electron-client) #authView #loginForm .ali-captcha-button,
  html:not(.electron-client) #authView #forgotForm .ali-captcha-button {
    flex: 1 1 auto !important;
    width: auto !important;
    max-width: none !important;
  }
}

/* Same/higher specificity than legacy reference-clone auth rules. */
html:not(.electron-client) body.auth-mode-login #authView:not(.client-login-mode) #authDrawer.auth-drawer .auth-drawer-scroll,
html:not(.electron-client) body.auth-mode-register #authView:not(.client-login-mode) #authDrawer.auth-drawer .auth-drawer-scroll,
html:not(.electron-client) body.auth-mode-forgot #authView:not(.client-login-mode) #authDrawer.auth-drawer .auth-drawer-scroll {
  overflow-y: scroll !important;
  overflow-x: hidden !important;
  scrollbar-gutter: stable both-edges !important;
}

html:not(.electron-client) body.auth-mode-login #authView:not(.client-login-mode) #authDrawer.auth-drawer .auth-card-inner,
html:not(.electron-client) body.auth-mode-register #authView:not(.client-login-mode) #authDrawer.auth-drawer .auth-card-inner,
html:not(.electron-client) body.auth-mode-forgot #authView:not(.client-login-mode) #authDrawer.auth-drawer .auth-card-inner {
  width: 430px !important;
  max-width: calc(100vw - 28px) !important;
  min-width: 0 !important;
  margin-left: auto !important;
  margin-right: auto !important;
  box-sizing: border-box !important;
}

html:not(.electron-client) body.auth-mode-login #authView.client-login-mode #authDrawer.auth-drawer .auth-card-inner,
html:not(.electron-client) body.auth-mode-register #authView.client-login-mode #authDrawer.auth-drawer .auth-card-inner,
html:not(.electron-client) body.auth-mode-forgot #authView.client-login-mode #authDrawer.auth-drawer .auth-card-inner {
  width: 430px !important;
  max-width: calc(100vw - 28px) !important;
  min-width: 0 !important;
  margin-left: auto !important;
  margin-right: auto !important;
  box-sizing: border-box !important;
}

html:not(.electron-client) body.auth-mode-login #authView #authDrawer.auth-drawer .auth-card-inner,
html:not(.electron-client) body.auth-mode-register #authView #authDrawer.auth-drawer .auth-card-inner,
html:not(.electron-client) body.auth-mode-forgot #authView #authDrawer.auth-drawer .auth-card-inner {
  width: 430px !important;
  max-width: none !important;
  min-width: 0 !important;
  margin-left: auto !important;
  margin-right: auto !important;
  box-sizing: border-box !important;
}

html:not(.electron-client) #authView #authDrawer.auth-drawer,
html:not(.electron-client) #authView #authDrawer.auth-drawer.drawer-open {
  animation: none !important;
  transition: none !important;
}

html:not(.electron-client) #authView #authDrawer.auth-drawer .auth-drawer-scroll,
html:not(.electron-client) #authView #authDrawer.auth-drawer .auth-card-inner,
html:not(.electron-client) #authView #authDrawer.auth-drawer .auth-title,
html:not(.electron-client) #authView #authDrawer.auth-drawer .auth-tabs,
html:not(.electron-client) #authView #authDrawer.auth-drawer .auth-tabs button,
html:not(.electron-client) #authView #authDrawer.auth-drawer .auth-form,
html:not(.electron-client) #authView #authDrawer.auth-drawer .auth-form *,
html:not(.electron-client) #authView #authDrawer.auth-drawer .client-sync-foot,
html:not(.electron-client) #authView #authDrawer.auth-drawer .auth-drawer-foot {
  animation: none !important;
  transition: none !important;
}

html:not(.electron-client) body.auth-mode-login.auth-drawer-open #authView:not(.client-login-mode) #authDrawer.auth-drawer .auth-drawer-scroll,
html:not(.electron-client) body.auth-mode-register.auth-drawer-open #authView:not(.client-login-mode) #authDrawer.auth-drawer .auth-drawer-scroll,
html:not(.electron-client) body.auth-mode-forgot.auth-drawer-open #authView:not(.client-login-mode) #authDrawer.auth-drawer .auth-drawer-scroll,
html:not(.electron-client) body.auth-mode-login.auth-drawer-open #authView #authDrawer.auth-drawer .auth-drawer-scroll,
html:not(.electron-client) body.auth-mode-register.auth-drawer-open #authView #authDrawer.auth-drawer .auth-drawer-scroll,
html:not(.electron-client) body.auth-mode-forgot.auth-drawer-open #authView #authDrawer.auth-drawer .auth-drawer-scroll {
  width: 100% !important;
  max-width: none !important;
  overflow-y: scroll !important;
  overflow-x: hidden !important;
  scrollbar-gutter: stable !important;
  scrollbar-width: thin !important;
  padding: 22px 24px !important;
  box-sizing: border-box !important;
}

html:not(.electron-client) #authView #authDrawer.auth-drawer .auth-drawer-scroll::-webkit-scrollbar {
  width: 8px !important;
  height: 8px !important;
}

html:not(.electron-client) #authView #authDrawer.auth-drawer .auth-drawer-scroll::-webkit-scrollbar-track {
  background: rgba(255, 237, 213, .58) !important;
  border-radius: 999px !important;
}

html:not(.electron-client) #authView #authDrawer.auth-drawer .auth-drawer-scroll::-webkit-scrollbar-thumb {
  background: rgba(251, 146, 60, .48) !important;
  border: 2px solid #fffaf5 !important;
  border-radius: 999px !important;
}

html:not(.electron-client) body.auth-mode-login.auth-drawer-open #authView:not(.client-login-mode) #authDrawer.auth-drawer .auth-card-inner,
html:not(.electron-client) body.auth-mode-register.auth-drawer-open #authView:not(.client-login-mode) #authDrawer.auth-drawer .auth-card-inner,
html:not(.electron-client) body.auth-mode-forgot.auth-drawer-open #authView:not(.client-login-mode) #authDrawer.auth-drawer .auth-card-inner,
html:not(.electron-client) body.auth-mode-login.auth-drawer-open #authView #authDrawer.auth-drawer .auth-card-inner,
html:not(.electron-client) body.auth-mode-register.auth-drawer-open #authView #authDrawer.auth-drawer .auth-card-inner,
html:not(.electron-client) body.auth-mode-forgot.auth-drawer-open #authView #authDrawer.auth-drawer .auth-card-inner {
  width: 430px !important;
  max-width: none !important;
  min-width: 0 !important;
  margin-left: auto !important;
  margin-right: auto !important;
  transform: none !important;
}

html:not(.electron-client) #authView #registerForm .ali-captcha-panel,
html:not(.electron-client) #authView #loginForm .ali-captcha-panel,
html:not(.electron-client) #authView #forgotForm .ali-captcha-panel {
  justify-content: flex-start !important;
}

html:not(.electron-client) #authView #registerForm .ali-captcha-button,
html:not(.electron-client) #authView #loginForm .ali-captcha-button,
html:not(.electron-client) #authView #forgotForm .ali-captcha-button,
html:not(.electron-client) #authView #registerForm .ali-captcha-status,
html:not(.electron-client) #authView #loginForm .ali-captcha-status,
html:not(.electron-client) #authView #forgotForm .ali-captcha-status {
  flex: 0 0 156px !important;
  width: 156px !important;
  max-width: 156px !important;
  min-width: 156px !important;
  height: 44px !important;
  min-height: 44px !important;
  padding-inline: 14px !important;
  border-radius: 999px !important;
  box-sizing: border-box !important;
  justify-content: center !important;
}

html:not(.electron-client) #authView #registerForm .referral-input-wrap {
  width: 50% !important;
  max-width: 178px !important;
  min-width: 178px !important;
}

html:not(.electron-client) #authView #registerForm .code-row {
  display: grid !important;
  grid-template-columns: 156px 156px !important;
  justify-content: flex-start !important;
  gap: 10px !important;
  width: auto !important;
  max-width: 322px !important;
}

html:not(.electron-client) #authView #registerForm .code-row input,
html:not(.electron-client) #authView #registerForm .code-row .secondary {
  width: 156px !important;
  max-width: 156px !important;
  min-width: 156px !important;
}

html:not(.electron-client) #authView #authDrawer.auth-drawer #registerForm.auth-form .referral-input-wrap {
  flex: 0 0 178px !important;
  width: 178px !important;
  max-width: 178px !important;
  min-width: 178px !important;
}

html:not(.electron-client) #authView #authDrawer.auth-drawer #registerForm.auth-form .ali-captcha-panel .ali-captcha-button,
html:not(.electron-client) #authView #authDrawer.auth-drawer #registerForm.auth-form .ali-captcha-panel .ali-captcha-status,
html:not(.electron-client) #authView #authDrawer.auth-drawer #loginForm.auth-form .ali-captcha-panel .ali-captcha-button,
html:not(.electron-client) #authView #authDrawer.auth-drawer #loginForm.auth-form .ali-captcha-panel .ali-captcha-status,
html:not(.electron-client) #authView #authDrawer.auth-drawer #forgotForm.auth-form .ali-captcha-panel .ali-captcha-button,
html:not(.electron-client) #authView #authDrawer.auth-drawer #forgotForm.auth-form .ali-captcha-panel .ali-captcha-status {
  flex: 0 0 156px !important;
  width: 156px !important;
  max-width: 156px !important;
  min-width: 156px !important;
  height: 44px !important;
  min-height: 44px !important;
  padding-inline: 14px !important;
  border-radius: 999px !important;
}

html:not(.electron-client) #authView #authDrawer.auth-drawer #registerForm.auth-form .code-row {
  width: 322px !important;
  max-width: 322px !important;
  min-width: 0 !important;
}

html:not(.electron-client) #authView #authDrawer.auth-drawer #registerForm.auth-form .referral-input-wrap {
  flex: 0 0 84px !important;
  width: 84px !important;
  max-width: 84px !important;
  min-width: 84px !important;
}

html:not(.electron-client) #authView #authDrawer.auth-drawer #registerForm.auth-form .code-row {
  grid-template-columns: 84px 84px !important;
  width: 180px !important;
  max-width: 180px !important;
  gap: 12px !important;
}

html:not(.electron-client) #authView #authDrawer.auth-drawer #registerForm.auth-form .code-row input,
html:not(.electron-client) #authView #authDrawer.auth-drawer #registerForm.auth-form .code-row .secondary {
  flex: 0 0 84px !important;
  width: 84px !important;
  max-width: 84px !important;
  min-width: 84px !important;
  padding-inline: 10px !important;
}

html:not(.electron-client) #authView #authDrawer.auth-drawer #registerForm.auth-form > .auth-form-row.auth-form-row-7-3 {
  display: grid !important;
  align-items: start !important;
  column-gap: 14px !important;
}

html:not(.electron-client) #authView #authDrawer.auth-drawer #registerForm.auth-form > .auth-form-row.auth-form-row-7-3:nth-of-type(1) {
  grid-template-columns: minmax(0, 1fr) 84px !important;
}

html:not(.electron-client) #authView #authDrawer.auth-drawer #registerForm.auth-form > .auth-form-row.auth-form-row-7-3:nth-of-type(2) {
  grid-template-columns: minmax(0, 1fr) 180px !important;
}

html:not(.electron-client) #authView #authDrawer.auth-drawer #registerForm.auth-form > .auth-form-row.auth-form-row-7-3 > label {
  min-width: 0 !important;
}

html:not(.electron-client) #authView #authDrawer.auth-drawer #registerForm.auth-form > .auth-form-row.auth-form-row-7-3 > label:first-child .input-wrap {
  width: 100% !important;
  max-width: none !important;
}

html:not(.electron-client) body.auth-drawer-entering #authView:not(.client-login-mode) #authDrawer.auth-drawer.drawer-open {
  animation: authDrawerSpringIn .62s cubic-bezier(.18, .92, .24, 1.08) both !important;
}

@keyframes authDrawerSpringIn {
  0% {
    opacity: .82;
    transform: translate3d(calc(100% + 26px), 0, 0);
  }

  68% {
    opacity: 1;
    transform: translate3d(-10px, 0, 0);
  }

  86% {
    transform: translate3d(3px, 0, 0);
  }

  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

html:not(.electron-client) #authView #authDrawer.auth-drawer .auth-form button:disabled,
html:not(.electron-client) #authView #authDrawer.auth-drawer .auth-form button.is-disabled {
  cursor: not-allowed !important;
  opacity: .56 !important;
  box-shadow: none !important;
}

html:not(.electron-client) #authView #authDrawer.auth-drawer .auth-form .primary:disabled,
html:not(.electron-client) #authView #authDrawer.auth-drawer .auth-form .primary.is-disabled {
  background: #ffd3b3 !important;
  color: rgba(124, 45, 18, .72) !important;
}

/* Login option row: keep "forgot password" on one line. */
html:not(.electron-client) #authView #authDrawer.auth-drawer #loginForm.auth-form .client-login-options {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
}

html:not(.electron-client) #authView #authDrawer.auth-drawer #loginForm.auth-form .client-login-options label {
  display: inline-flex !important;
  flex: 0 0 auto !important;
  align-items: center !important;
  gap: 8px !important;
  width: auto !important;
  max-width: none !important;
  min-width: max-content !important;
  white-space: nowrap !important;
}

html:not(.electron-client) #authView #authDrawer.auth-drawer #loginForm.auth-form .client-login-options button[data-auth-open="forgot"] {
  display: inline-flex !important;
  flex: 0 0 auto !important;
  align-items: center !important;
  justify-content: flex-end !important;
  width: auto !important;
  max-width: none !important;
  min-width: max-content !important;
  padding: 0 2px !important;
  letter-spacing: 0 !important;
  line-height: 1.2 !important;
  text-align: right !important;
  white-space: nowrap !important;
  word-break: keep-all !important;
  writing-mode: horizontal-tb !important;
}

/* Exeify v16: lock the login cards to equal columns, including maximized Exeify windows. */
@media (min-width: 900px) {
  html.exeify-client #authView#authView.client-login-mode:not(.hidden) {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    grid-template-rows: minmax(0, 1fr) !important;
    align-items: stretch !important;
    justify-items: stretch !important;
    gap: clamp(16px, 2vw, 28px) !important;
    width: 100vw !important;
    height: 100vh !important;
    min-width: 0 !important;
    min-height: 0 !important;
    padding: clamp(16px, 2.2vh, 28px) clamp(24px, 4vw, 44px) clamp(54px, 6vh, 76px) !important;
    overflow: hidden !important;
    background: linear-gradient(90deg, #fffaf6 0%, #fffdfb 50%, #fff7ef 100%) !important;
    box-sizing: border-box !important;
  }

  html.exeify-client #authView#authView.client-login-mode .client-login-titlebar,
  html.exeify-client #authView#authView.client-login-mode .home-header,
  html.exeify-client #authView#authView.client-login-mode .mobile-public-menu,
  html.exeify-client #authView#authView.client-login-mode .public-page,
  html.exeify-client #authView#authView.client-login-mode .auth-drawer-head,
  html.exeify-client #authView#authView.client-login-mode .auth-drawer-foot {
    display: none !important;
  }

  html.exeify-client #authView#authView.client-login-mode .client-login-preview,
  html.exeify-client #authView#authView.client-login-mode #authDrawer.auth-drawer {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    height: 100% !important;
    max-height: none !important;
    flex: initial !important;
    flex-basis: auto !important;
    min-width: 0 !important;
    min-height: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    overflow: visible !important;
    box-sizing: border-box !important;
  }

  html.exeify-client #authView#authView.client-login-mode .client-login-preview {
    border-right: 0 !important;
  }

  html.exeify-client.exeify-expanded-window #authView#authView.client-login-mode:not(.hidden) {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  }

  html.exeify-client.exeify-expanded-window #authView#authView.client-login-mode .client-login-preview,
  html.exeify-client.exeify-expanded-window #authView#authView.client-login-mode #authDrawer.auth-drawer,
  html.exeify-client.exeify-expanded-window #authView#authView.client-login-mode .client-login-brand-panel,
  html.exeify-client.exeify-expanded-window #authView#authView.client-login-mode #authDrawer.auth-drawer .auth-drawer-scroll {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    justify-self: stretch !important;
    align-self: stretch !important;
  }

  html.exeify-client #authView#authView.client-login-mode .client-login-brand-panel,
  html.exeify-client #authView#authView.client-login-mode #authDrawer.auth-drawer .auth-drawer-scroll {
    align-self: stretch !important;
    justify-self: stretch !important;
    width: 100% !important;
    max-width: none !important;
    height: 100% !important;
    max-height: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    border: 1px solid rgba(255, 151, 76, .28) !important;
    border-radius: 18px !important;
    background: rgba(255, 255, 255, .94) !important;
    box-shadow: 0 18px 44px rgba(255, 126, 33, .08) !important;
    box-sizing: border-box !important;
  }

  html.exeify-client #authView#authView.client-login-mode .client-login-brand-panel {
    display: grid !important;
    grid-template-rows: minmax(0, 1fr) auto auto !important;
    align-content: stretch !important;
    align-items: center !important;
    row-gap: clamp(18px, 3vh, 34px) !important;
    padding: clamp(32px, 5.4vh, 58px) clamp(30px, 4vw, 48px) clamp(28px, 4.2vh, 44px) !important;
    overflow: hidden !important;
  }

  html.exeify-client #authView#authView.client-login-mode #authDrawer.auth-drawer .auth-drawer-scroll {
    padding: clamp(20px, 3.2vh, 34px) clamp(30px, 4vw, 44px) clamp(22px, 3.4vh, 36px) !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior: contain !important;
    scrollbar-gutter: stable !important;
  }

  html.exeify-client #authView#authView.client-login-mode #authDrawer.auth-drawer .auth-card-inner {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    height: 100% !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    box-sizing: border-box !important;
  }
}

/* Exeify v13: 1024x720 login shell uses two equal cards, matching the client window. */
@media (min-width: 900px) and (max-width: 1100px) and (max-height: 760px) {
  html.exeify-client.exeify-compact-window #authView#authView.client-login-mode:not(.hidden) {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    grid-template-rows: minmax(0, 1fr) !important;
    align-items: stretch !important;
    justify-items: stretch !important;
    gap: 16px !important;
    width: 100vw !important;
    height: 100vh !important;
    min-width: 0 !important;
    min-height: 0 !important;
    padding: 14px 24px 64px !important;
    overflow: hidden !important;
    background: linear-gradient(90deg, #fffaf6 0%, #fffdfb 50%, #fff7ef 100%) !important;
    box-sizing: border-box !important;
  }

  html.exeify-client.exeify-compact-window #authView#authView.client-login-mode .client-login-titlebar,
  html.exeify-client.exeify-compact-window #authView#authView.client-login-mode .home-header,
  html.exeify-client.exeify-compact-window #authView#authView.client-login-mode .mobile-public-menu,
  html.exeify-client.exeify-compact-window #authView#authView.client-login-mode .public-page,
  html.exeify-client.exeify-compact-window #authView#authView.client-login-mode .auth-drawer-head,
  html.exeify-client.exeify-compact-window #authView#authView.client-login-mode .auth-drawer-foot {
    display: none !important;
  }

  html.exeify-client.exeify-compact-window #authView#authView.client-login-mode .client-login-preview,
  html.exeify-client.exeify-compact-window #authView#authView.client-login-mode #authDrawer.auth-drawer {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    height: 100% !important;
    max-height: none !important;
    flex: initial !important;
    flex-basis: auto !important;
    min-width: 0 !important;
    min-height: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    overflow: visible !important;
    box-sizing: border-box !important;
  }

  html.exeify-client.exeify-compact-window #authView#authView.client-login-mode .client-login-preview {
    border-right: 0 !important;
  }

  html.exeify-client.exeify-compact-window #authView#authView.client-login-mode .client-login-brand-panel,
  html.exeify-client.exeify-compact-window #authView#authView.client-login-mode #authDrawer.auth-drawer .auth-drawer-scroll {
    width: 100% !important;
    max-width: none !important;
    height: 100% !important;
    max-height: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    border: 1px solid rgba(255, 151, 76, .28) !important;
    border-radius: 18px !important;
    background: rgba(255, 255, 255, .94) !important;
    box-shadow: 0 18px 44px rgba(255, 126, 33, .08) !important;
    box-sizing: border-box !important;
  }

  html.exeify-client.exeify-compact-window #authView#authView.client-login-mode .client-login-brand-panel {
    display: grid !important;
    grid-template-rows: minmax(0, 1fr) auto auto !important;
    align-content: stretch !important;
    align-items: center !important;
    row-gap: 22px !important;
    padding: 34px 30px 26px !important;
    overflow: hidden !important;
  }

  html.exeify-client.exeify-compact-window #authView#authView.client-login-mode #authDrawer.auth-drawer .auth-drawer-scroll {
    padding: 20px 30px 18px !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior: contain !important;
    scrollbar-gutter: stable !important;
  }

  html.exeify-client.exeify-compact-window #authView#authView.client-login-mode #authDrawer.auth-drawer .auth-card-inner {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    height: 100% !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    box-sizing: border-box !important;
  }

  html.exeify-client.exeify-compact-window #authView#authView.client-login-mode .client-login-hero-copy h1 {
    margin: 0 !important;
    font-size: 42px !important;
    line-height: 1.08 !important;
    letter-spacing: 0 !important;
  }

  html.exeify-client.exeify-compact-window #authView#authView.client-login-mode .client-login-hero-copy p {
    max-width: 380px !important;
    margin-top: 18px !important;
    color: #667085 !important;
    font-size: 14px !important;
    line-height: 1.65 !important;
  }

  html.exeify-client.exeify-compact-window #authView#authView.client-login-mode .client-login-chips {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    margin: 0 !important;
  }

  html.exeify-client.exeify-compact-window #authView#authView.client-login-mode .client-login-chips span {
    height: 30px !important;
    padding: 0 11px !important;
    border-radius: 999px !important;
    font-size: 12px !important;
    white-space: nowrap !important;
  }

  html.exeify-client.exeify-compact-window #authView#authView.client-login-mode .client-login-stat-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 0 !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 14px 0 !important;
    border-top: 1px solid #fed7aa !important;
    border-bottom: 1px solid #fed7aa !important;
  }

  html.exeify-client.exeify-compact-window #authView#authView.client-login-mode .client-login-stat-grid article {
    min-width: 0 !important;
    padding: 0 11px !important;
    border-right: 1px solid #fed7aa !important;
  }

  html.exeify-client.exeify-compact-window #authView#authView.client-login-mode .client-login-stat-grid article:last-child {
    border-right: 0 !important;
  }

  html.exeify-client.exeify-compact-window #authView#authView.client-login-mode .client-login-stat-grid b {
    font-size: 18px !important;
    line-height: 1.18 !important;
  }

  html.exeify-client.exeify-compact-window #authView#authView.client-login-mode .client-login-stat-grid small {
    font-size: 12px !important;
    line-height: 1.25 !important;
  }

  html.exeify-client.exeify-compact-window #authView#authView.client-login-mode #authDrawer.auth-drawer .auth-title {
    min-height: 96px !important;
    margin: 0 0 12px !important;
  }

  html.exeify-client.exeify-compact-window #authView#authView.client-login-mode #authDrawer.auth-drawer .auth-title .eyebrow {
    min-height: 16px !important;
    font-size: 11px !important;
    letter-spacing: 1.6px !important;
    white-space: nowrap !important;
  }

  html.exeify-client.exeify-compact-window #authView#authView.client-login-mode #authDrawer.auth-drawer .auth-title h2 {
    min-height: 32px !important;
    margin: 7px 0 0 !important;
    font-size: 27px !important;
    line-height: 1.14 !important;
    letter-spacing: 0 !important;
  }

  html.exeify-client.exeify-compact-window #authView#authView.client-login-mode #authDrawer.auth-drawer .auth-title p:not(.eyebrow) {
    min-height: 36px !important;
    margin: 8px 0 0 !important;
    color: #667085 !important;
    font-size: 13px !important;
    line-height: 1.42 !important;
  }

  html.exeify-client.exeify-compact-window #authView#authView.client-login-mode #authDrawer.auth-drawer .auth-tabs {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    width: 100% !important;
    height: 36px !important;
    min-height: 36px !important;
    margin: 0 0 12px !important;
  }

  html.exeify-client.exeify-compact-window #authView#authView.client-login-mode #authDrawer.auth-drawer .auth-tabs button {
    min-height: 36px !important;
    font-size: 13px !important;
    white-space: nowrap !important;
  }

  html.exeify-client.exeify-compact-window #authView#authView.client-login-mode #authDrawer.auth-drawer .auth-form:not(.hidden) {
    width: 100% !important;
    margin-top: 0 !important;
    gap: 10px !important;
  }

  html.exeify-client.exeify-compact-window #authView#authView.client-login-mode #authDrawer.auth-drawer .auth-form label > span {
    display: none !important;
  }

  html.exeify-client.exeify-compact-window #authView#authView.client-login-mode #authDrawer.auth-drawer .input-wrap,
  html.exeify-client.exeify-compact-window #authView#authView.client-login-mode #authDrawer.auth-drawer .input-wrap input,
  html.exeify-client.exeify-compact-window #authView#authView.client-login-mode #authDrawer.auth-drawer .captcha-row input,
  html.exeify-client.exeify-compact-window #authView#authView.client-login-mode #authDrawer.auth-drawer .code-row input,
  html.exeify-client.exeify-compact-window #authView#authView.client-login-mode #authDrawer.auth-drawer .code-row .secondary,
  html.exeify-client.exeify-compact-window #authView#authView.client-login-mode #authDrawer.auth-drawer .ali-captcha-button,
  html.exeify-client.exeify-compact-window #authView#authView.client-login-mode #authDrawer.auth-drawer .ali-captcha-status {
    height: 40px !important;
    min-height: 40px !important;
    border-radius: 13px !important;
    font-size: 13px !important;
    box-sizing: border-box !important;
  }

  html.exeify-client.exeify-compact-window #authView#authView.client-login-mode #authDrawer.auth-drawer .auth-form > .primary {
    height: 44px !important;
    min-height: 44px !important;
    margin-top: 2px !important;
    border-radius: 13px !important;
    font-size: 14px !important;
  }

  html.exeify-client.exeify-compact-window #authView#authView.client-login-mode #loginForm.auth-form:not(.hidden),
  html.exeify-client.exeify-compact-window #authView#authView.client-login-mode #forgotForm.auth-form:not(.hidden) {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  html.exeify-client.exeify-compact-window #authView#authView.client-login-mode #loginForm .ali-captcha-panel,
  html.exeify-client.exeify-compact-window #authView#authView.client-login-mode #forgotForm .ali-captcha-panel {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 96px !important;
    gap: 10px !important;
    width: 100% !important;
  }

  html.exeify-client.exeify-compact-window #authView#authView.client-login-mode #loginForm .ali-captcha-button,
  html.exeify-client.exeify-compact-window #authView#authView.client-login-mode #forgotForm .ali-captcha-button,
  html.exeify-client.exeify-compact-window #authView#authView.client-login-mode #loginForm .ali-captcha-status,
  html.exeify-client.exeify-compact-window #authView#authView.client-login-mode #forgotForm .ali-captcha-status {
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    flex: initial !important;
  }

  html.exeify-client.exeify-compact-window #authView#authView.client-login-mode #registerForm.auth-form:not(.hidden) {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    column-gap: 10px !important;
    row-gap: 10px !important;
  }

  html.exeify-client.exeify-compact-window #authView#authView.client-login-mode #registerForm.auth-form > .auth-form-row,
  html.exeify-client.exeify-compact-window #authView#authView.client-login-mode #registerForm.auth-form > .graph-captcha-label,
  html.exeify-client.exeify-compact-window #authView#authView.client-login-mode #registerForm.auth-form > .ali-captcha-panel,
  html.exeify-client.exeify-compact-window #authView#authView.client-login-mode #registerForm.auth-form > .primary {
    grid-column: 1 / -1 !important;
  }

  html.exeify-client.exeify-compact-window #authView#authView.client-login-mode #registerForm.auth-form > label {
    grid-column: auto !important;
    min-width: 0 !important;
  }

  html.exeify-client.exeify-compact-window #authView#authView.client-login-mode #authDrawer.auth-drawer #registerForm.auth-form > .auth-form-row.auth-form-row-7-3 {
    display: grid !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    align-items: start !important;
    gap: 10px !important;
  }

  html.exeify-client.exeify-compact-window #authView#authView.client-login-mode #authDrawer.auth-drawer #registerForm.auth-form > .auth-form-row.auth-form-row-7-3:nth-of-type(1) {
    grid-template-columns: minmax(0, 1fr) 108px !important;
  }

  html.exeify-client.exeify-compact-window #authView#authView.client-login-mode #authDrawer.auth-drawer #registerForm.auth-form > .auth-form-row.auth-form-row-7-3:nth-of-type(2) {
    grid-template-columns: minmax(0, 1fr) 228px !important;
  }

  html.exeify-client.exeify-compact-window #authView#authView.client-login-mode #registerForm .referral-input-wrap {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    flex: initial !important;
  }

  html.exeify-client.exeify-compact-window #authView#authView.client-login-mode #registerForm .code-row {
    display: grid !important;
    grid-template-columns: 90px 128px !important;
    gap: 10px !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    justify-content: stretch !important;
  }

  html.exeify-client.exeify-compact-window #authView#authView.client-login-mode #registerForm .code-row input,
  html.exeify-client.exeify-compact-window #authView#authView.client-login-mode #registerForm .code-row .secondary {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    padding-inline: 9px !important;
    font-size: 12px !important;
    white-space: nowrap !important;
  }

  html.exeify-client.exeify-compact-window #authView#authView.client-login-mode #registerForm .ali-captcha-panel {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 96px !important;
    gap: 10px !important;
    width: 100% !important;
    max-width: none !important;
  }

  html.exeify-client.exeify-compact-window #authView#authView.client-login-mode #registerForm .ali-captcha-button,
  html.exeify-client.exeify-compact-window #authView#authView.client-login-mode #registerForm .ali-captcha-status {
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    flex: initial !important;
    padding-inline: 10px !important;
  }

  html.exeify-client.exeify-compact-window #authView#authView.client-login-mode #authMessage.message {
    min-height: 14px !important;
    margin: 6px 0 0 !important;
    font-size: 12px !important;
  }

  html.exeify-client.exeify-compact-window #authView#authView.client-login-mode .client-sync-foot {
    margin-top: 16px !important;
  }

  html.exeify-client.exeify-compact-window #authView#authView.client-login-mode .client-sync-foot p {
    margin-bottom: 12px !important;
    font-size: 12px !important;
  }

  html.exeify-client.exeify-compact-window #authView#authView.client-login-mode .client-sync-foot div {
    gap: 12px !important;
  }

  html.exeify-client.exeify-compact-window #authView#authView.client-login-mode .client-sync-foot iconify-icon {
    width: 19px !important;
  }

  html.exeify-client.exeify-compact-window #authView#authView.client-login-mode .client-sync-foot small {
    margin-top: 6px !important;
    font-size: 12px !important;
    white-space: nowrap !important;
  }
}

/* Exeify client v21: keep login captcha status pill the same width as the verify trigger. */
@media (min-width: 900px) and (max-width: 1100px) and (max-height: 760px) {
  html.exeify-client.exeify-compact-window #authView#authView.client-login-mode #authDrawer.auth-drawer #loginForm .ali-captcha-panel,
  html.exeify-client.exeify-compact-window #authView#authView.client-login-mode #authDrawer.auth-drawer #forgotForm .ali-captcha-panel {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, min(235px, calc(50% - 6px)))) !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 0 !important;
    width: 100% !important;
  }

  html.exeify-client.exeify-compact-window #authView#authView.client-login-mode #authDrawer.auth-drawer #loginForm .ali-captcha-button,
  html.exeify-client.exeify-compact-window #authView#authView.client-login-mode #authDrawer.auth-drawer #forgotForm .ali-captcha-button,
  html.exeify-client.exeify-compact-window #authView#authView.client-login-mode #authDrawer.auth-drawer #loginForm .ali-captcha-status,
  html.exeify-client.exeify-compact-window #authView#authView.client-login-mode #authDrawer.auth-drawer #forgotForm .ali-captcha-status {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    justify-self: stretch !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    white-space: nowrap !important;
  }
}

/* Ali captcha switch: keep hidden captcha panels hidden on both web and client. */
#authView .ali-captcha-panel.hidden,
#authView .captcha-row.hidden {
  display: none !important;
}

html #authView #authDrawer.auth-drawer #loginForm .captcha-row.hidden,
html #authView #authDrawer.auth-drawer #registerForm .captcha-row.hidden,
html #authView #authDrawer.auth-drawer #forgotForm .captcha-row.hidden,
html #authView #authDrawer.auth-drawer #loginForm .ali-captcha-panel.hidden,
html #authView #authDrawer.auth-drawer #registerForm .ali-captcha-panel.hidden,
html #authView #authDrawer.auth-drawer #forgotForm .ali-captcha-panel.hidden {
  display: none !important;
}
