/* COGO_AUTH_FIT_R1 — one scroll surface; all native controls remain reachable. */
html:has(#modal.auth-modal289[open]),
html body:has(#modal.auth-modal289[open]) {
  overflow: hidden !important;
  overscroll-behavior: none;
}
html body dialog#modal.auth-modal289[open] {
  display: flex !important;
  flex-direction: column;
  box-sizing: border-box;
  max-height: calc(100dvh - 40px) !important;
  min-height: 0;
  overflow: hidden !important;
}
html body dialog#modal.auth-modal289[open] > .dialog-head {
  flex: 0 0 auto;
  padding: 14px 24px !important;
  margin: 0;
}
html body dialog#modal.auth-modal289[open] > #modalContent {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior: contain;
  scrollbar-width: none;
  scrollbar-gutter: auto;
  scroll-padding-block: 16px;
}
html body dialog#modal.auth-modal289[open] > #modalContent::-webkit-scrollbar {
  display: none;
}
html body #modal.auth-modal289[open]:has(input[name=nickname]) .auth-simple289 {
  padding: 20px 32px 22px;
}
html body #modal.auth-modal289[open]:has(input[name=nickname]) .auth-intro7 {
  padding: 16px 22px;
  margin-bottom: 16px;
}
html body #modal.auth-modal289[open]:has(input[name=nickname]) #cogoServerAuth {
  gap: 10px;
}
html body #modal.auth-modal289[open] #passwordHint289 {
  margin: 0;
  font-size: 12px;
  line-height: 1.6;
}
html body #modal.auth-modal289[open] .signup-gender286 {
  padding: 8px 0;
  margin: 0;
  min-width: 0;
}
html body #modal.auth-modal289[open] .auth-switch289 {
  padding-block: 4px;
}
html body #modal.auth-modal289[open] [data-cogo-legal=signup] {
  margin: 4px 0 0;
}
@media (max-width: 700px) {
  html body dialog#modal.auth-modal289[open] {
    max-height: calc(100dvh - 20px) !important;
  }
  html body dialog#modal.auth-modal289[open] > .dialog-head {
    padding: 12px 20px !important;
  }
  html body #modal.auth-modal289[open]:has(input[name=nickname]) .auth-simple289 {
    padding: 16px 20px 20px;
  }
  html body #modal.auth-modal289[open]:has(input[name=nickname]) .auth-intro7 {
    padding: 14px 16px;
    margin-bottom: 14px;
  }
}
