/* JakSky auth compact v229.0
   Only login/register view; profile, staff panel, recovery and auth requests are unchanged.
   Brand: warm mocha, cream. Motion: quiet. Optimized for Android viewport.
*/
#userModal:has(> .authBox[data-auth-ui-v4="1"] .authModeTabs){
  box-sizing:border-box !important;
  align-items:center !important;
  justify-content:center !important;
  padding: max(12px, env(safe-area-inset-top)) 12px max(12px, env(safe-area-inset-bottom)) !important;
  background:rgba(25,18,15,.68) !important;
  backdrop-filter:none !important;
  -webkit-backdrop-filter:none !important;
  overscroll-behavior:contain;
}
#userModal > .authBox[data-auth-ui-v4="1"]:has(.authModeTabs){
  box-sizing:border-box !important;
  display:block !important;
  position:relative !important;
  width:min(100%,420px) !important;
  max-width:420px !important;
  max-height:calc(100dvh - 30px) !important;
  margin:0 auto !important;
  padding:24px 24px 19px !important;
  overflow-x:hidden !important;
  overflow-y:auto !important;
  scrollbar-width:thin;
  background:#F9F5F0 !important;
  color:#34271F !important;
  border:1px solid #D9C8BB !important;
  border-radius:20px !important;
  box-shadow:0 14px 42px rgba(18,12,9,.21) !important;
  text-align:left !important;
  isolation:isolate;
  animation:none !important;
  transition:none !important;
  opacity:1 !important;
  transform:none !important;
  filter:none !important;
  will-change:auto !important;
  -webkit-overflow-scrolling:touch;
}
#userModal .authBox[data-auth-ui-v4="1"]:has(.authModeTabs) .authV4Decor,
#userModal .authBox[data-auth-ui-v4="1"]:has(.authModeTabs) .authV4Decor i,
#userModal .authBox[data-auth-ui-v4="1"]:has(.authModeTabs) .authActionsV4 .authBtn::after{
  display:none !important;
  content:none !important;
  animation:none !important;
}
#userModal .authBox[data-auth-ui-v4="1"]:has(.authModeTabs) #catLogin{
  float:none;
  width:170px !important;
  height:auto !important;
  margin:0 12px 10px 0 !important;
  object-fit:contain;
  animation:none !important;
  transform:none !important;
  transition:none !important;
  filter:none !important;
}
#userModal .authBox[data-auth-ui-v4="1"][data-auth-mode="register"] #catLogin{
  display:block !important;
}
#userModal .authBox[data-auth-ui-v4="1"]:has(.authModeTabs) .authV4Title{
  margin:0 48px 5px 0 !important;
  padding:0 !important;
  font-family:inherit !important;
  font-size:clamp(21px,5.7vw,25px) !important;
  font-weight:760 !important;
  letter-spacing:-.035em !important;
  line-height:1.18 !important;
  color:#33261E !important;
  text-align:left !important;
  animation:none !important;
  transform:none !important;
}
#userModal .authBox[data-auth-ui-v4="1"]:has(.authModeTabs) .authV4Sub{
  margin:0 45px 15px 0 !important;
  max-width:none !important;
  color:#705C50 !important;
  font-size:13px !important;
  line-height:1.38 !important;
  text-align:left !important;
  animation:none !important;
  transform:none !important;
}
#userModal .authBox[data-auth-ui-v4="1"]:has(.authModeTabs) .authClose{
  top:16px !important;
  right:16px !important;
  width:44px !important;
  height:44px !important;
  min-width:44px !important;
  min-height:44px !important;
  border-radius:12px !important;
  border:1px solid #DDCFC2 !important;
  background:#EFE6DC !important;
  color:#544035 !important;
  box-shadow:none !important;
  font-size:21px !important;
  font-weight:500 !important;
  display:grid !important;
  place-items:center !important;
}
#userModal .authBox[data-auth-ui-v4="1"]:has(.authModeTabs) .authModeTabs{
  clear:both;
  display:grid !important;
  grid-template-columns:1fr 1fr !important;
  gap:4px !important;
  margin:0 0 16px !important;
  padding:4px !important;
  border:1px solid #D8C8BA !important;
  border-radius:12px !important;
  background:#EDE3D9 !important;
  box-shadow:none !important;
}
#userModal .authBox[data-auth-ui-v4="1"]:has(.authModeTabs) .authModeTab{
  box-sizing:border-box;
  min-height:44px !important;
  height:44px !important;
  border-radius:9px !important;
  background:transparent !important;
  border:0 !important;
  color:#69584D !important;
  -webkit-text-fill-color:#69584D !important;
  font-size:14px !important;
  font-weight:650 !important;
  box-shadow:none !important;
  transition:background-color .14s ease !important;
  transform:none !important;
}
#userModal .authBox[data-auth-ui-v4="1"]:has(.authModeTabs) .authModeTab.active{
  background:#FFFDFC !important;
  color:#3E2E24 !important;
  -webkit-text-fill-color:#3E2E24 !important;
  box-shadow:0 1px 4px rgba(73,49,34,.10) !important;
}
#userModal .authBox[data-auth-ui-v4="1"]:has(.authModeTabs) .authV4Fields{
  display:grid !important;
  gap:11px !important;
  margin:0 !important;
  animation:none !important;
  transform:none !important;
}
#userModal .authBox[data-auth-ui-v4="1"]:has(.authModeTabs) .authV4Fields > input,
#userModal .authBox[data-auth-ui-v4="1"]:has(.authModeTabs) .authPasswordWrap input,
#userModal .authBox[data-auth-ui-v4="1"]:has(.authModeTabs) .authRegisterBirthV3 input{
  box-sizing:border-box !important;
  display:block;
  width:100% !important;
  height:49px !important;
  min-height:49px !important;
  padding:0 14px !important;
  margin:0 !important;
  border:1px solid #CBB8A8 !important;
  border-radius:11px !important;
  background:#FFFDFC !important;
  color:#33271F !important;
  -webkit-text-fill-color:#33271F !important;
  caret-color:#71513C !important;
  color-scheme:light !important;
  box-shadow:none !important;
  outline:0;
  font-size:16px !important;
  font-weight:430 !important;
  transition:border-color .13s ease,box-shadow .13s ease !important;
  transform:none !important;
}
#userModal .authBox[data-auth-ui-v4="1"]:has(.authModeTabs) input::placeholder{
  color:#806C60 !important;
  -webkit-text-fill-color:#806C60 !important;
  opacity:1 !important;
}
#userModal .authBox[data-auth-ui-v4="1"]:has(.authModeTabs) input:focus,
#userModal .authBox[data-auth-ui-v4="1"]:has(.authModeTabs) button:focus-visible{
  border-color:#83644F !important;
  outline:2px solid #8F6C53 !important;
  outline-offset:2px;
  box-shadow:0 0 0 3px rgba(143,108,83,.12) !important;
}
#userModal .authBox[data-auth-ui-v4="1"]:has(.authModeTabs) .authPasswordWrap input{
  padding-right:58px !important;
}
#userModal .authBox[data-auth-ui-v4="1"]:has(.authModeTabs) .authEyeBtn{
  position:absolute !important;
  top:50% !important;
  right:4px !important;
  transform:translateY(-50%) !important;
  width:44px !important;
  height:44px !important;
  min-width:44px !important;
  min-height:44px !important;
  border:0 !important;
  border-radius:9px !important;
  background:transparent !important;
  color:#6B5142 !important;
  box-shadow:none !important;
  filter:none !important;
  display:grid !important;
  place-items:center !important;
}
#userModal .authBox[data-auth-ui-v4="1"]:has(.authModeTabs) .authEyeBtn svg,
#userModal .authBox[data-auth-ui-v4="1"]:has(.authModeTabs) .authEyeBtn svg *{
  width:21px;
  height:21px;
  stroke:#6B5142 !important;
  filter:none !important;
}
#userModal .authBox[data-auth-ui-v4="1"]:has(.authModeTabs) .authRegisterBirthV3{
  margin:0 !important;
  gap:5px !important;
  text-align:left !important;
}
#userModal .authBox[data-auth-ui-v4="1"]:has(.authModeTabs) .authRegisterBirthLabel{
  margin:1px 0 0 !important;
  color:#544438 !important;
  font-weight:660 !important;
  font-size:12px !important;
}
#userModal .authBox[data-auth-ui-v4="1"]:has(.authModeTabs) .authRegisterBirthHint{
  margin:0 !important;
  color:#756154 !important;
  font-size:11px !important;
  line-height:1.3 !important;
}
#userModal .authBox[data-auth-ui-v4="1"]:has(.authModeTabs) .registrationLimitNote{
  margin:10px 0 0 !important;
  padding:8px 10px !important;
  background:#F2E9E0 !important;
  border:1px solid #DECDBD !important;
  border-radius:9px !important;
  color:#5C4A3D !important;
  font-size:11px !important;
}
#userModal .authBox[data-auth-ui-v4="1"]:has(.authModeTabs) .authActionsV4{
  display:block !important;
  margin:14px 0 0 !important;
  padding:0 !important;
}
#userModal .authBox[data-auth-ui-v4="1"]:has(.authModeTabs) .authActionsV4 .authBtn{
  box-sizing:border-box !important;
  display:block;
  width:100% !important;
  min-height:48px !important;
  height:48px !important;
  padding:0 12px !important;
  border:1px solid #5C4233 !important;
  border-radius:11px !important;
  background:#644A3A !important;
  color:#FFF9F4 !important;
  -webkit-text-fill-color:#FFF9F4 !important;
  box-shadow:none !important;
  font-weight:680 !important;
  font-size:15px !important;
  transition:background-color .15s ease !important;
  transform:none !important;
  filter:none !important;
  animation:none !important;
}
#userModal .authBox[data-auth-ui-v4="1"]:has(.authModeTabs) .authActionsV4 .authBtn:hover{
  background:#50392C !important;
}
#userModal .authBox[data-auth-ui-v4="1"]:has(.authModeTabs) .authActionsV4 .authBtn[hidden]{display:none !important;}
#userModal .authBox[data-auth-ui-v4="1"]:has(.authModeTabs) .authV4Utility{
  display:flex !important;
  justify-content:center !important;
  align-items:center !important;
  flex-wrap:wrap !important;
  gap:5px !important;
  margin:12px 0 0 !important;


  color:#fff4e8 !important;
  -webkit-text-fill-color:#fff4e8 !important;
  opacity:1 !important;
}
#userModal .authBox[data-auth-ui-v4="1"]:has(.authModeTabs) .authV4Link{
  box-sizing:border-box !important;
  min-height:44px !important;
  padding:11px 6px !important;
  border:0 !important;
  background:transparent !important;


  font-weight:610 !important;
  font-size:12px !important;
  text-decoration:underline;
  text-underline-offset:3px;

  color:#fff4e8 !important;
  -webkit-text-fill-color:#fff4e8 !important;
  opacity:1 !important;
}
#userModal .authBox[data-auth-ui-v4="1"]:has(.authModeTabs) #authStatus{
  margin:7px 0 0 !important;
  min-height:0 !important;
  color:#75402D !important;
  font-size:12px !important;
}
#userModal .authBox[data-auth-ui-v4="1"]:has(.authModeTabs) .authV4LegacyTrust{
  display:none !important;
}
@media (max-width:480px){
  #userModal > .authBox[data-auth-ui-v4="1"]:has(.authModeTabs){
    width:100% !important;
    max-width:420px !important;
    padding:22px 19px 17px !important;
    border-radius:18px !important;
  }
}
@media (max-height:680px){
  #userModal:has(> .authBox[data-auth-ui-v4="1"] .authModeTabs){align-items:flex-start !important;}
  #userModal > .authBox[data-auth-ui-v4="1"]:has(.authModeTabs){
    max-height:calc(100dvh - 24px) !important;
  }
}
@media (prefers-reduced-motion:reduce){
  #userModal .authBox[data-auth-ui-v4="1"]:has(.authModeTabs),
  #userModal .authBox[data-auth-ui-v4="1"]:has(.authModeTabs) *{
    animation:none !important;
    transition:none !important;
    scroll-behavior:auto !important;
  }
}


/* FIX AUTH v229.3 */
body #userModal > .authBox[data-auth-ui-v4="1"]:has(.authModeTabs) {
  display:flex !important;
  flex-direction:column !important;
  align-items:stretch !important;
}
body #userModal .authBox[data-auth-ui-v4="1"] #catLogin,
body #userModal .authBox[data-auth-ui-v4="1"][data-auth-mode="register"] #catLogin {
  display:block !important;
  order:1 !important;
  float:none !important;
  position:static !important;
  width:160px !important;
  height:170px !important;
  max-width:160px !important;
  max-height:170px !important;
  margin:0 auto 18px !important;
  object-fit:contain !important;
}
body #userModal .authBox[data-auth-ui-v4="1"] .authV4Title {
  order:2 !important;
  position:static !important;
  margin:0 0 6px !important;
  color:#fff7ef !important;
  -webkit-text-fill-color:#fff7ef !important;
}
body #userModal .authBox[data-auth-ui-v4="1"] .authV4Sub {
  order:3 !important;
  margin:0 0 16px !important;
  color:#f4e5d8 !important;
  -webkit-text-fill-color:#f4e5d8 !important;
  opacity:1 !important;
}
body #userModal .authModeTabs {order:4 !important}
body #userModal .authV4Fields {order:5 !important}
body #userModal .authActionsV4 {order:6 !important}
body #userModal .authV4Utility {order:7 !important}
body #userModal .authV4Link,
body #userModal .authV4Utility span {
  color:#fff1e3 !important;
  -webkit-text-fill-color:#fff1e3 !important;
  opacity:1 !important;
  visibility:visible !important;
}
body #userModal .registrationLimitNote {
  background:#e9d7c5 !important;
  color:#35271f !important;
  -webkit-text-fill-color:#35271f !important;
  opacity:1 !important;
}

/* JAKSKY AUTH LINK VISIBILITY FIX v229.4 */

html[data-jak-theme="dark"] body #userModal
.authBox[data-auth-ui-v4="1"] .authV4Utility {
  display:flex !important;
  position:relative !important;
  z-index:50 !important;
  isolation:isolate !important;
  justify-content:center !important;
  align-items:center !important;
  flex-wrap:wrap !important;
  gap:9px !important;
  margin:16px 0 8px !important;
  padding:5px 0 !important;
  opacity:1 !important;
  visibility:visible !important;
  filter:none !important;
}

html[data-jak-theme="dark"] body #userModal
.authBox[data-auth-ui-v4="1"] .authV4Utility .authV4Link {
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  min-height:38px !important;
  padding:8px 13px !important;
  border:1px solid rgba(255,244,232,.35) !important;
  border-radius:30px !important;
  background:rgba(255,244,232,.10) !important;
  color:#FFF4E8 !important;
  -webkit-text-fill-color:#FFF4E8 !important;
  font-size:12px !important;
  font-weight:750 !important;
  opacity:1 !important;
  visibility:visible !important;
  filter:none !important;
  text-decoration:none !important;
  text-shadow:none !important;
  cursor:pointer !important;
}

html[data-jak-theme="dark"] body #userModal
.authBox[data-auth-ui-v4="1"] .authV4Utility span {
  color:#FFF4E8 !important;
  -webkit-text-fill-color:#FFF4E8 !important;
  opacity:1 !important;
  visibility:visible !important;
}

html[data-jak-theme="dark"] body #userModal
.authBox[data-auth-ui-v4="1"] .authV4Utility .authV4Link:active {
  background:rgba(255,244,232,.22) !important;
}

