/* REC0DET shared mobile header V1.
   Keep the existing two-row hub identity and module handlers.
   Row 1: Back/Log out | Team | REC0DET | Country flag.
   Row 2: RC | Chat | Notifications.
   Flag is a native select so Android/iOS can open its picker. */
.topbar.topbarTwoRow .recodetGlobalCountry {
  box-sizing:border-box!important;
  background:linear-gradient(165deg,#221b0c,#0b0905)!important;
  border:1px solid rgba(239,192,74,.60)!important;
  border-radius:13px!important;
  box-shadow:inset 0 1px 0 rgba(255,241,185,.07)!important;
  overflow:hidden!important;
}
.topbar.topbarTwoRow .recodetGlobalCountryFlag {
  display:block!important;
  font-family:"Noto Color Emoji","Apple Color Emoji","Segoe UI Emoji",sans-serif!important;
  font-size:23px!important;
  line-height:1!important;
  pointer-events:none!important;
  transform:translateY(-2px);
}
.topbar.topbarTwoRow .recodetGlobalCountry::after {
  content:"⌄"; position:absolute;right:3px;bottom:1px;
  font:700 11px/1 system-ui,sans-serif;color:#ebca74;
  pointer-events:none;
}
.topbar.topbarTwoRow .recodetGlobalCountry select {
  position:absolute!important;inset:0!important;
  width:100%!important;height:100%!important;
  margin:0!important;padding:0!important;
  opacity:0!important;z-index:2!important;cursor:pointer!important;
}
.topbar.topbarTwoRow #hubSignOutBtn.recodetHeaderSignout {
  position:absolute!important;left:8px!important;top:50%!important;
  transform:translateY(-50%)!important;
  display:grid!important;place-items:center!important;
  width:42px!important;min-width:42px!important;
  height:42px!important;min-height:42px!important;
  padding:0!important;margin:0!important;
  border-radius:13px!important;
  color:#efc85e!important;background:#100d07!important;
  border:1px solid rgba(231,185,67,.48)!important;
  z-index:20!important;pointer-events:auto!important;
}
.topbar.topbarTwoRow #hubSignOutBtn.recodetHeaderSignout svg {
  display:block;width:22px!important;height:22px!important;
}
.topbar.topbarTwoRow #hubSignOutBtn.recodetHeaderSignout.hidden,
.topbar.topbarTwoRow:not(.recodetHeaderHub) #hubSignOutBtn.recodetHeaderSignout {
  display:none!important;
}
/* The original hub header had no Back slot. The sign-out action occupies it. */
html body.recodet-pro #app .topbar.topbarTwoRow.recodetHeaderHub .topbarPrimaryRow {
  position:absolute!important;inset:0!important;
  width:100%!important;height:100%!important;
  transform:none!important;
}
html body.recodet-pro #app .topbar.topbarTwoRow.recodetHeaderHub #teamTopBadge {
  left:59px!important;
}
html body.recodet-pro #app .topbar.topbarTwoRow.recodetHeaderHub #coinPill {
  right:62px!important;
}
html body.recodet-pro #app .topbar.topbarTwoRow.recodetHeaderHub .recodetGlobalCountry {
  right:9px!important;
}
/* Do not make login/OTP/navigation show sign-out. */
.topbar.topbarTwoRow:not(.recodetHeaderActive) #hubSignOutBtn.recodetHeaderSignout {
  display:none!important;
}

@media (max-width:760px) {
  /* V190's grid applies to all modules, but hid Back and placed the flag
     absolutely at mid-header. Reclaim two columns for each primary action. */
  html body.recodet-pro #app .topbar.topbarTwoRow.v78MobileShell .topbarPrimaryRow,
  html body.recodet-pro #app .topbar.topbarTwoRow.v78MobileShell .topbarSecondaryRow,
  html body.recodet-pro #app .topbar.topbarTwoRow.v78MobileShell .topbarSecondaryActions {
    display:contents!important;position:static!important;
    inset:auto!important;transform:none!important;
  }

  html body.recodet-pro #app .topbar.topbarTwoRow.v78MobileShell #globalBackBtn {
    display:grid!important;grid-column:1 / 3!important;grid-row:1!important;
    position:static!important;inset:auto!important;
    justify-self:stretch!important;align-self:center!important;
    place-items:center!important;
    width:100%!important;min-width:0!important;max-width:none!important;
    height:46px!important;min-height:46px!important;
    margin:0!important;padding:0!important;
    transform:none!important;z-index:19!important;
    pointer-events:auto!important;opacity:1!important;
  }
  html body.recodet-pro #app .topbar.topbarTwoRow.v78MobileShell.recodetHeaderHub #globalBackBtn {
    display:none!important;
  }
  html body.recodet-pro #app .topbar.topbarTwoRow.v78MobileShell #hubSignOutBtn.recodetHeaderSignout {
    grid-column:1 / 3!important;grid-row:1!important;
    position:static!important;inset:auto!important;
    justify-self:stretch!important;align-self:center!important;
    width:100%!important;min-width:0!important;max-width:none!important;
    height:46px!important;min-height:46px!important;
    margin:0!important;padding:0!important;
    transform:none!important;
  }
  html body.recodet-pro #app .topbar.topbarTwoRow.v78MobileShell #hubSignOutBtn.recodetHeaderSignout.hidden,
  html body.recodet-pro #app .topbar.topbarTwoRow.v78MobileShell:not(.recodetHeaderHub) #hubSignOutBtn.recodetHeaderSignout {
    display:none!important;
  }

  html body.recodet-pro #app .topbar.topbarTwoRow.v78MobileShell #teamTopBadge {
    grid-column:3 / 5!important;grid-row:1!important;
    position:static!important;inset:auto!important;
    width:100%!important;min-width:0!important;max-width:none!important;
    height:46px!important;min-height:46px!important;
    justify-self:stretch!important;transform:none!important;
  }
  html body.recodet-pro #app .topbar.topbarTwoRow.v78MobileShell #pageTitle {
    grid-column:5 / 11!important;grid-row:1!important;
    position:static!important;inset:auto!important;
    width:100%!important;max-width:none!important;
    justify-self:stretch!important;transform:none!important;
  }
  html body.recodet-pro #app .topbar.topbarTwoRow.v78MobileShell .recodetGlobalCountry {
    grid-column:11 / 13!important;grid-row:1!important;
    position:static!important;inset:auto!important;
    justify-self:stretch!important;align-self:center!important;
    width:100%!important;min-width:0!important;max-width:none!important;
    height:46px!important;min-height:46px!important;
    margin:0!important;transform:none!important;z-index:21!important;
  }
  html body.recodet-pro #app .topbar.topbarTwoRow.v78MobileShell .recodetGlobalCountry[hidden]{
    display:none!important;
  }
  /* V78 hides Back in JS for every screen. Only the module navigation
     controller decides its action; this stylesheet just makes it visible. */
  html body.recodet-pro #app .topbar.topbarTwoRow.v78MobileShell #btnSearch,
  html body.recodet-pro #app .topbar.topbarTwoRow.v78MobileShell #btnSort {
    display:none!important;
  }
  html body.recodet-pro #app .topbar.topbarTwoRow.v78MobileShell #coinPill {
    grid-column:1 / 9!important;grid-row:2!important;
    right:auto!important;
  }
}
@media (max-width:360px) {
  html body.recodet-pro #app .topbar.topbarTwoRow.v78MobileShell #pageTitle::after {
    font-size:10px!important;letter-spacing:.05em!important;
  }
  html body.recodet-pro #app .topbar.topbarTwoRow.v78MobileShell .recodetGlobalCountryFlag {
    font-size:21px!important;
  }
}
