/*
 * BeaMiiLocal profile overlay – native account menu v2
 * Dedicated last-loaded stylesheet to keep new overlay markup isolated from legacy app.css.
 */

#profileOverlay .beamii-profile-sheet{
  --profile-ink:#15324c;
  --profile-muted:#718399;
  --profile-line:#dfe7ef;
  --profile-soft:#f5f8fb;
  --profile-blue:#235b86;
  --profile-orange:#ff8a2a;
  background:#f6f8fb !important;
}

#profileOverlay .beamii-profile-sheet__top{
  display:block !important;
  min-height:0 !important;
  padding:calc(10px + env(safe-area-inset-top)) 14px 12px !important;
  background:#fff !important;
  color:var(--profile-ink) !important;
  border-bottom:1px solid #e8edf3 !important;
}

#profileOverlay .beamii-profile-sheet__top::after{
  display:none !important;
}

#profileOverlay .beamii-profile-sheet__toolbar{
  display:grid !important;
  grid-template-columns:40px minmax(0,1fr) 40px !important;
  align-items:center !important;
  min-height:44px !important;
  margin:0 0 10px !important;
}

#profileOverlay .beamii-profile-sheet__toolbar-spacer{
  display:block !important;
  width:40px !important;
  height:40px !important;
}

#profileOverlay .beamii-profile-sheet__heading{
  min-width:0 !important;
  margin:0 !important;
  text-align:center !important;
  color:var(--profile-ink) !important;
  font-size:16px !important;
  line-height:1.2 !important;
  font-weight:900 !important;
  letter-spacing:-.02em !important;
  white-space:nowrap !important;
}

#profileOverlay .beamii-profile-sheet__close{
  position:static !important;
  display:grid !important;
  place-items:center !important;
  width:36px !important;
  height:36px !important;
  margin:0 0 0 auto !important;
  padding:0 !important;
  border-radius:999px !important;
  border:1px solid #dde6ef !important;
  background:#f0f4f8 !important;
  color:#47627a !important;
  box-shadow:none !important;
}

#profileOverlay .beamii-profile-sheet__identity{
  display:grid !important;
  grid-template-columns:54px minmax(0,1fr) 28px !important;
  gap:12px !important;
  align-items:center !important;
  width:100% !important;
  min-width:0 !important;
  padding:12px 13px !important;
  margin:0 !important;
  border:1px solid #dce6ef !important;
  border-radius:18px !important;
  background:#fff !important;
  color:inherit !important;
  text-decoration:none !important;
  box-shadow:0 7px 22px rgba(22,48,73,.055) !important;
}

#profileOverlay .beamii-profile-sheet__identity--link:hover,
#profileOverlay .beamii-profile-sheet__identity--link:focus-visible{
  border-color:#c9d9e6 !important;
  background:#fcfdff !important;
}

#profileOverlay .beamii-profile-sheet__avatar{
  display:grid !important;
  place-items:center !important;
  width:54px !important;
  height:54px !important;
  min-width:54px !important;
  margin:0 !important;
  border:0 !important;
  border-radius:50% !important;
  background:#edf3f8 !important;
  box-shadow:0 0 0 1px rgba(22,48,73,.08) !important;
  overflow:hidden !important;
}

#profileOverlay .beamii-profile-sheet__avatar img{
  display:block !important;
  width:100% !important;
  height:100% !important;
  object-fit:cover !important;
  border-radius:inherit !important;
}

#profileOverlay .beamii-profile-sheet__meta{
  min-width:0 !important;
  padding:0 !important;
}

#profileOverlay .beamii-profile-sheet__title{
  display:block !important;
  max-width:100% !important;
  margin:0 !important;
  color:var(--profile-ink) !important;
  font-size:16px !important;
  line-height:1.18 !important;
  font-weight:900 !important;
  letter-spacing:-.018em !important;
  white-space:nowrap !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
}

#profileOverlay .beamii-profile-sheet__email-line{
  display:block !important;
  max-width:100% !important;
  margin-top:3px !important;
  color:#667b90 !important;
  font-size:12px !important;
  line-height:1.3 !important;
  font-weight:650 !important;
  white-space:nowrap !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
}

#profileOverlay .beamii-profile-sheet__identity-meta{
  display:flex !important;
  align-items:center !important;
  flex-wrap:wrap !important;
  gap:5px !important;
  margin-top:7px !important;
}

#profileOverlay .beamii-profile-sheet__status,
#profileOverlay .beamii-profile-sheet__contextpill{
  display:inline-flex !important;
  align-items:center !important;
  gap:5px !important;
  min-height:24px !important;
  max-width:100% !important;
  padding:4px 8px !important;
  border-radius:999px !important;
  font-size:10.5px !important;
  line-height:1.1 !important;
  font-weight:850 !important;
  white-space:nowrap !important;
}

#profileOverlay .beamii-profile-sheet__status{
  color:#187149 !important;
  background:#eaf8f0 !important;
  border:1px solid #d1eedc !important;
}

#profileOverlay .beamii-profile-sheet__status.is-pending{
  color:#956019 !important;
  background:#fff6e7 !important;
  border-color:#f1dfbd !important;
}

#profileOverlay .beamii-profile-sheet__status i{
  color:inherit !important;
}

#profileOverlay .beamii-profile-sheet__contextpill{
  color:#285f88 !important;
  background:#eef6fb !important;
  border:1px solid #d9e9f4 !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
}

#profileOverlay .beamii-profile-sheet__contextpill i{
  flex:0 0 auto !important;
  color:inherit !important;
}

#profileOverlay .beamii-profile-sheet__identity-arrow{
  display:grid !important;
  place-items:center !important;
  width:28px !important;
  height:28px !important;
  color:#7f93a6 !important;
  font-size:12px !important;
}

#profileOverlay .beamii-profile-sheet__summary{
  padding:12px 14px 2px !important;
  background:#f6f8fb !important;
}

#profileOverlay .beamii-profile-quickgrid{
  display:grid !important;
  grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  gap:9px !important;
}

#profileOverlay .beamii-profile-shortcut{
  display:grid !important;
  grid-template-columns:38px minmax(0,1fr) !important;
  gap:9px !important;
  align-items:center !important;
  min-width:0 !important;
  min-height:66px !important;
  padding:10px 11px !important;
  border:1px solid var(--profile-line) !important;
  border-radius:17px !important;
  background:#fff !important;
  color:inherit !important;
  text-decoration:none !important;
  box-shadow:none !important;
}

#profileOverlay .beamii-profile-shortcut--business{
  grid-column:1 / -1 !important;
  grid-template-columns:38px minmax(0,1fr) !important;
}

#profileOverlay .beamii-profile-shortcut__icon{
  display:grid !important;
  place-items:center !important;
  width:38px !important;
  height:38px !important;
  border-radius:13px !important;
  background:#edf3f8 !important;
  color:#2a5e85 !important;
}

#profileOverlay .beamii-profile-shortcut--primary .beamii-profile-shortcut__icon{
  background:#fdeef5 !important;
  color:#bd3c78 !important;
}

#profileOverlay .beamii-profile-shortcut--business .beamii-profile-shortcut__icon{
  background:#edf7f2 !important;
  color:#287157 !important;
}

#profileOverlay .beamii-profile-shortcut strong{
  display:block !important;
  min-width:0 !important;
  color:var(--profile-ink) !important;
  font-size:13px !important;
  line-height:1.2 !important;
  font-weight:900 !important;
}

#profileOverlay .beamii-profile-shortcut small{
  display:block !important;
  margin-top:2px !important;
  color:#74869a !important;
  font-size:10.5px !important;
  line-height:1.3 !important;
}

#profileOverlay .beamii-profile-shortcut__status{
  display:inline-flex !important;
  margin-top:4px !important;
  color:#21704e !important;
  font-size:10px !important;
  line-height:1.1 !important;
  font-style:normal !important;
  font-weight:900 !important;
}

#profileOverlay .beamii-profile-sheet__body{
  padding:12px 14px 18px !important;
  background:#f6f8fb !important;
}

#profileOverlay .beamii-profile-group{
  margin:0 !important;
  padding:0 !important;
  border:0 !important;
  background:transparent !important;
  box-shadow:none !important;
}

#profileOverlay .beamii-profile-group + .beamii-profile-group{
  margin-top:17px !important;
}

#profileOverlay .beamii-profile-group__title{
  margin:0 0 8px 2px !important;
  color:#7e8e9f !important;
  font-size:10px !important;
  line-height:1.2 !important;
  font-weight:900 !important;
  letter-spacing:.10em !important;
  text-transform:uppercase !important;
}

#profileOverlay .beamii-profile-language{
  margin:0 0 8px !important;
  padding:10px !important;
  border:1px solid var(--profile-line) !important;
  border-radius:17px !important;
  background:#fff !important;
  box-shadow:none !important;
}

#profileOverlay .beamii-profile-language__label{
  display:flex !important;
  align-items:center !important;
  gap:8px !important;
  margin:0 0 8px !important;
  color:var(--profile-ink) !important;
  font-size:12.5px !important;
  font-weight:850 !important;
}

#profileOverlay .beamii-profile-language__label i{
  color:var(--profile-orange) !important;
}

#profileOverlay .beamii-profile-language__options{
  display:grid !important;
  grid-template-columns:repeat(3,minmax(0,1fr)) !important;
  gap:7px !important;
}

#profileOverlay .beamii-profile-language__btn{
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  gap:6px !important;
  min-width:0 !important;
  min-height:40px !important;
  padding:0 8px !important;
  border:1px solid transparent !important;
  border-radius:13px !important;
  background:#f3f6f9 !important;
  color:#496075 !important;
  text-decoration:none !important;
}

#profileOverlay .beamii-profile-language__btn span{
  display:grid !important;
  place-items:center !important;
  width:24px !important;
  height:24px !important;
  border-radius:999px !important;
  background:#e7eef5 !important;
  color:#38536c !important;
  font-size:9px !important;
  font-weight:900 !important;
}

#profileOverlay .beamii-profile-language__btn strong{
  min-width:0 !important;
  color:inherit !important;
  font-size:10.5px !important;
  font-weight:850 !important;
  white-space:nowrap !important;
}

#profileOverlay .beamii-profile-language__btn.is-active{
  border-color:#ffaf63 !important;
  background:#fff9f3 !important;
  color:var(--profile-ink) !important;
}

#profileOverlay .beamii-profile-language__btn.is-active span{
  background:#ff8a2a !important;
  color:#fff !important;
}

#profileOverlay .beamii-profile-nav--settings,
#profileOverlay .beamii-profile-nav--extra{
  display:grid !important;
  gap:7px !important;
}

#profileOverlay .beamii-profile-nav--settings .beamii-profile-link,
#profileOverlay .beamii-profile-nav--extra .beamii-profile-link{
  display:grid !important;
  grid-template-columns:38px minmax(0,1fr) 22px !important;
  align-items:center !important;
  gap:10px !important;
  min-width:0 !important;
  min-height:60px !important;
  padding:9px 11px !important;
  border:1px solid var(--profile-line) !important;
  border-radius:16px !important;
  background:#fff !important;
  color:inherit !important;
  text-align:left !important;
  text-decoration:none !important;
  box-shadow:none !important;
}

#profileOverlay .beamii-profile-nav--settings .beamii-profile-link__icon,
#profileOverlay .beamii-profile-nav--extra .beamii-profile-link__icon{
  display:grid !important;
  place-items:center !important;
  width:38px !important;
  height:38px !important;
  border-radius:13px !important;
  background:#edf3f8 !important;
  color:#315e7e !important;
}

#profileOverlay .beamii-profile-link__copy{
  min-width:0 !important;
}

#profileOverlay .beamii-profile-link__text{
  display:block !important;
  color:var(--profile-ink) !important;
  font-size:13.5px !important;
  line-height:1.2 !important;
  font-weight:900 !important;
}

#profileOverlay .beamii-profile-link__desc{
  display:block !important;
  margin-top:2px !important;
  color:#77899d !important;
  font-size:10.5px !important;
  line-height:1.3 !important;
}

#profileOverlay .beamii-profile-link__arrow{
  display:grid !important;
  place-items:center !important;
  width:22px !important;
  color:#90a2b4 !important;
  font-size:11px !important;
}

#profileOverlay .beamii-profile-sheet__footer{
  position:sticky !important;
  bottom:0 !important;
  display:grid !important;
  grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  gap:8px !important;
  padding:10px 14px calc(10px + env(safe-area-inset-bottom)) !important;
  border-top:1px solid #e1e8ef !important;
  background:rgba(246,248,251,.98) !important;
  backdrop-filter:blur(14px) !important;
}

#profileOverlay .beamii-profile-sheet__footer > :only-child{
  grid-column:1 / -1 !important;
}

#profileOverlay .beamii-profile-footer-link{
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  gap:8px !important;
  min-width:0 !important;
  min-height:46px !important;
  padding:0 12px !important;
  border:1px solid var(--profile-line) !important;
  border-radius:15px !important;
  box-shadow:none !important;
  font-size:13px !important;
  font-weight:900 !important;
  text-decoration:none !important;
}

#profileOverlay .beamii-profile-footer-link--admin{
  background:#eef4f9 !important;
  color:#315b7a !important;
}

#profileOverlay .beamii-profile-footer-link--danger{
  background:#fff !important;
  color:#b42318 !important;
  border-color:#f1d3d0 !important;
}

@media (max-width:390px){
  #profileOverlay .beamii-profile-sheet__top{
    padding-left:12px !important;
    padding-right:12px !important;
  }

  #profileOverlay .beamii-profile-sheet__summary,
  #profileOverlay .beamii-profile-sheet__body,
  #profileOverlay .beamii-profile-sheet__footer{
    padding-left:12px !important;
    padding-right:12px !important;
  }
}

@media (max-width:350px){
  #profileOverlay .beamii-profile-quickgrid{
    grid-template-columns:1fr !important;
  }

  #profileOverlay .beamii-profile-shortcut--business{
    grid-column:auto !important;
  }

  #profileOverlay .beamii-profile-language__btn strong{
    display:none !important;
  }
}


/* Business/association access CTA for users without dashboard access. */
#profileOverlay .beamii-profile-shortcut--business-request{
  border-style:dashed;
  border-color:rgba(31,106,82,.24);
  background:linear-gradient(180deg,#ffffff 0%,#f8fcfa 100%);
}

#profileOverlay .beamii-profile-shortcut--business-request .beamii-profile-shortcut__icon{
  background:#eaf6f0;
  color:#1f6a52;
}

#profileOverlay .beamii-profile-shortcut--business-request strong{
  color:#173f34;
}
