/* BeliTech 4.16.26 | Shared account identity and notification controls.
 * Keep the PHP/React markup, event handlers, badges and mobile layout intact.
 */
/* BeliTech 4.16.22 | Approved minimal account pill.
   Shared by PHP and React public headers for Admin, Operator and Explorer.
   Does not change the account dropdown, auth state, notification bell or role privileges. */

body:is(body,#belitec-desktop-scope):not(.wp-admin) :is(
 .bst-php-header .bt-header-account--identity > summary,
 #bst-marketplace-root#bst-marketplace-root .bst-app-header--marketplace .bt-header-account--identity > summary
){
 width:clamp(172px,17vw,228px)!important;
 max-width:100%!important;
 height:48px!important;
 min-height:48px!important;
 padding:5px 12px 5px 7px!important;
 border:1px solid var(--bt-ds-header-border)!important;
 border-radius:var(--bt-ds-pill-radius)!important;
 background:#fff!important;
 box-shadow:var(--bt-ds-header-shadow)!important;
 color:#081a2b!important;
 transition:border-color .16s ease,box-shadow .16s ease,background-color .16s ease!important;
}
body:is(body,#belitec-desktop-scope):not(.wp-admin) :is(
 .bst-php-header .bt-header-account--identity > summary:hover,
 .bst-php-header .bt-header-account--identity[open] > summary,
 #bst-marketplace-root#bst-marketplace-root .bst-app-header--marketplace .bt-header-account--identity > summary:hover,
 #bst-marketplace-root#bst-marketplace-root .bst-app-header--marketplace .bt-header-account--identity[open] > summary
){
 background:#fff!important;
 border-color:var(--bt-ds-header-hover-border)!important;
 box-shadow:0 5px 16px rgba(13,43,72,0.11),inset 0 1px 0 #fff!important;
 color:#081a2b!important;
}
body:is(body,#belitec-desktop-scope):not(.wp-admin) :is(
 .bst-php-header .bt-header-account--identity > summary:focus-visible,
 #bst-marketplace-root#bst-marketplace-root .bst-app-header--marketplace .bt-header-account--identity > summary:focus-visible
){outline:2px solid var(--bt-ds-focus)!important;outline-offset:3px!important;}
body:is(body,#belitec-desktop-scope):not(.wp-admin) :is(
 .bst-php-header .bt-account-identity,
 #bst-marketplace-root#bst-marketplace-root .bst-app-header--marketplace .bt-account-identity
){gap:10px!important;}
body:is(body,#belitec-desktop-scope):not(.wp-admin) :is(
 .bst-php-header .bt-account-identity__avatar,
 #bst-marketplace-root#bst-marketplace-root .bst-app-header--marketplace .bt-account-identity__avatar
){
 width:36px!important;height:36px!important;min-width:36px!important;max-width:36px!important;
 background:#f7f8f9!important;color:#0d2b48!important;
 border:2px solid #fff!important;
 box-shadow:0 0 0 1px #edeff1,0 2px 5px rgba(13,43,72,0.06)!important;
}
body:is(body,#belitec-desktop-scope):not(.wp-admin) :is(
 .bst-php-header .bt-account-identity__details,
 #bst-marketplace-root#bst-marketplace-root .bst-app-header--marketplace .bt-account-identity__details
){gap:3px!important;}
body:is(body,#belitec-desktop-scope):not(.wp-admin) :is(
 .bst-php-header .bt-account-identity__details strong,
 #bst-marketplace-root#bst-marketplace-root .bst-app-header--marketplace .bt-account-identity__details strong
){font-size:12px!important;font-weight:750!important;color:#081a2b!important;}
body:is(body,#belitec-desktop-scope):not(.wp-admin) :is(
 .bst-php-header .bt-account-identity__details small,
 #bst-marketplace-root#bst-marketplace-root .bst-app-header--marketplace .bt-account-identity__details small
){font-size:10px!important;font-weight:500!important;color:#4e6479!important;}
body:is(body,#belitec-desktop-scope):not(.wp-admin) :is(
 .bst-php-header .bt-account-identity__chevron,
 #bst-marketplace-root#bst-marketplace-root .bst-app-header--marketplace .bt-account-identity__chevron
){border-color:#4e6479!important;margin:0 1px 0 2px!important;}

/* Preserve compact account access when the logo, navigation and search compete for space. */
@media (min-width:768px) and (max-width:1199px){
 body:is(body,#belitec-desktop-scope):not(.wp-admin) :is(
  .bst-php-header .bt-header-account--identity > summary,
  #bst-marketplace-root#bst-marketplace-root .bst-app-header--marketplace .bt-header-account--identity > summary
 ){width:178px!important;}
}
@media (max-width:767px){
 body:is(body,#belitec-desktop-scope):not(.wp-admin) :is(
  .bst-php-header .bt-header-account--identity > summary,
  #bst-marketplace-root#bst-marketplace-root .bst-app-header--marketplace .bt-header-account--identity > summary
 ){width:176px!important;height:44px!important;min-height:44px!important;padding:4px 9px 4px 5px!important;}
 body:is(body,#belitec-desktop-scope):not(.wp-admin) :is(
  .bst-php-header .bt-account-identity__avatar,
  #bst-marketplace-root#bst-marketplace-root .bst-app-header--marketplace .bt-account-identity__avatar
 ){width:32px!important;height:32px!important;min-width:32px!important;max-width:32px!important;}
}
@media (max-width:460px){
 body:is(body,#belitec-desktop-scope):not(.wp-admin) :is(
  .bst-php-header .bt-header-account--identity > summary,
  #bst-marketplace-root#bst-marketplace-root .bst-app-header--marketplace .bt-header-account--identity > summary
 ){width:72px!important;min-width:72px!important;padding:4px 8px 4px 5px!important;}
}
@media (prefers-reduced-motion:reduce){
 body:is(body,#belitec-desktop-scope):not(.wp-admin) :is(
  .bst-php-header .bt-header-account--identity > summary,
  #bst-marketplace-root#bst-marketplace-root .bst-app-header--marketplace .bt-header-account--identity > summary
 ){transition:none!important;}
}

/* BeliTech v4.16.23 | Matching minimal notification control.
   The universal PHP and React headers use the existing live bell button.
   Only presentation changes; click handlers, unread count and panel remain intact. */
body:is(body,#belitec-desktop-scope):not(.wp-admin) :is(
  .bst-php-header #bst-header-notifications-anchor #bst-v3-notifications,
  #bst-marketplace-root#bst-marketplace-root .bst-app-header--marketplace #bst-header-notifications-anchor #bst-v3-notifications
){
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  position:relative!important;
  flex:0 0 44px!important;
  width:44px!important;
  min-width:44px!important;
  height:44px!important;
  min-height:44px!important;
  margin:0!important;
  padding:0!important;
  text-shadow:none!important;
  box-sizing:border-box!important;
  appearance:none!important;
  border:1px solid var(--bt-ds-header-border)!important;
  border-radius:50%!important;
  background:#fff!important;
  background-image:none!important;
  color:#0d2b48!important;
  box-shadow:var(--bt-ds-header-shadow)!important;
  cursor:pointer!important;
  transition:background-color .16s ease,border-color .16s ease,color .16s ease,box-shadow .16s ease!important;
}
body:is(body,#belitec-desktop-scope):not(.wp-admin) :is(
  .bst-php-header #bst-header-notifications-anchor #bst-v3-notifications:hover,
  #bst-marketplace-root#bst-marketplace-root .bst-app-header--marketplace #bst-header-notifications-anchor #bst-v3-notifications:hover,
  .bst-php-header #bst-header-notifications-anchor #bst-v3-notifications[aria-expanded="true"],
  #bst-marketplace-root#bst-marketplace-root .bst-app-header--marketplace #bst-header-notifications-anchor #bst-v3-notifications[aria-expanded="true"]
){
  border-color:var(--bt-ds-header-hover-border)!important;
  background:#ffffff!important;
  color:#0d2b48!important;
  box-shadow:0 5px 16px rgba(13,43,72,0.11),inset 0 1px 0 #fff!important;
}
body:is(body,#belitec-desktop-scope):not(.wp-admin) :is(
  .bst-php-header #bst-header-notifications-anchor #bst-v3-notifications:focus-visible,
  #bst-marketplace-root#bst-marketplace-root .bst-app-header--marketplace #bst-header-notifications-anchor #bst-v3-notifications:focus-visible
){
  outline:2px solid var(--bt-ds-focus)!important;
  outline-offset:3px!important;
}
body:not(.wp-admin) :is(
  .bst-php-header,
  #bst-marketplace-root .bst-app-header--marketplace
) #bst-header-notifications-anchor #bst-v3-notifications > svg {
  display:block!important;
  width:21px!important;
  height:21px!important;
  flex:none!important;
  stroke-width:1.8!important;
}
/* Keep counts readable and fully attached to the new circular bell. */
body:is(body,#belitec-desktop-scope):not(.wp-admin) :is(
  .bst-php-header #bst-header-notifications-anchor #bst-v3-notifications,
  #bst-marketplace-root#bst-marketplace-root .bst-app-header--marketplace #bst-header-notifications-anchor #bst-v3-notifications
) #bst-v3-notification-count:not([hidden]) {
  position:absolute!important;
  top:-5px!important;
  right:-5px!important;
  display:inline-flex!important;
  justify-content:center!important;
  align-items:center!important;
  min-width:18px!important;
  height:18px!important;
  padding:0 4px!important;
  margin:0!important;
  border:2px solid #fff!important;
  border-radius:var(--bt-ds-pill-radius)!important;
  background:#2a445e!important;
  color:#fff!important;
  font-size:10px!important;
  font-weight:800!important;
  line-height:1!important;
  box-sizing:border-box!important;
  box-shadow:0 1px 4px rgba(13,43,72,0.12)!important;
}
body:is(body,#belitec-desktop-scope):not(.wp-admin) :is(
  .bst-php-header #bst-header-notifications-anchor #bst-v3-notifications,
  #bst-marketplace-root#bst-marketplace-root .bst-app-header--marketplace #bst-header-notifications-anchor #bst-v3-notifications
) #bst-v3-notification-count[hidden] { display:none!important; }
@media (prefers-reduced-motion:reduce){
  body:is(body,#belitec-desktop-scope):not(.wp-admin) :is(
    .bst-php-header #bst-header-notifications-anchor #bst-v3-notifications,
    #bst-marketplace-root#bst-marketplace-root .bst-app-header--marketplace #bst-header-notifications-anchor #bst-v3-notifications
  ){transition:none!important;}
}
/* Ensure the companion account pill remains compact beside the bell on narrow screens.
   The original mobile hide rule lost to desktop identity specificity in some headers. */
@media(max-width:460px){
  body:is(body,#belitec-desktop-scope):not(.wp-admin) :is(
    .bst-php-header .bt-account-identity__details,
    #bst-marketplace-root#bst-marketplace-root .bst-app-header--marketplace .bt-account-identity__details
  ){display:none!important;}
}
