/* BeliTech v4.14.59 — universal desktop header across PHP and React pages.
   Structural overrides only: preserve each portal's access checks and content. */
@media (min-width:1024px) {
  body:is(body,#belitec-desktop-scope):not(.wp-admin) :is(.bst-php-header,.bst-app-header--marketplace) {
    background:#fff!important;
    border-bottom:1px solid #edeff1!important;
    box-shadow:none!important;
  }
  body:is(body,#belitec-desktop-scope):not(.wp-admin) :is(.bst-php-header,.bst-app-header--marketplace):after{content:none!important;display:none!important;}
  body:is(body,#belitec-desktop-scope):not(.wp-admin) :is(.bst-php-header .bst-php-header__inner,#bst-marketplace-root#bst-marketplace-root .bst-app-header--marketplace .bst-app-header__inner) {
    display:grid!important;
    grid-template-columns:max-content minmax(130px,1fr) max-content!important;
    align-items:center!important;
    justify-content:normal!important;
    width:calc(100% - 64px)!important;
    max-width:1320px!important;
    height:76px!important;
    min-height:76px!important;
    margin:0 auto!important;
    padding:0!important;
    gap:clamp(12px,1.8vw,26px)!important;
    flex-wrap:nowrap!important;
  }
  body:is(body,#belitec-desktop-scope):not(.wp-admin) :is(.bst-php-header .bst-marketplace-header-title,#bst-marketplace-root#bst-marketplace-root .bst-app-header--marketplace .bst-marketplace-header-title){
    display:block!important;
    justify-self:center!important;
    max-width:none!important;
    min-width:0!important;
    margin:0!important;
    font-size:clamp(12px,.96vw,15px)!important;
    color:#142c46!important;
    font-weight:750!important;
    line-height:1.35!important;
    letter-spacing:-.2px!important;
    text-align:center!important;
    white-space:nowrap!important;
  }
  body:is(body,#belitec-desktop-scope):not(.wp-admin) :is(.bst-php-header .bst-php-header__right,#bst-marketplace-root#bst-marketplace-root .bst-app-header--marketplace .bst-app-header__right){
    display:flex!important;
    align-items:center!important;
    justify-content:flex-end!important;
    justify-self:end!important;
    flex:0 0 auto!important;
    flex-wrap:nowrap!important;
    gap:clamp(8px,1.05vw,16px)!important;
    width:max-content!important;
    min-width:0!important;
    margin:0!important;
  }
  body:is(body,#belitec-desktop-scope):not(.wp-admin) :is(.bst-php-header .bst-role-nav,#bst-marketplace-root#bst-marketplace-root .bst-app-header--marketplace .bst-role-nav){
    display:flex!important;
    align-items:center!important;
    flex:0 0 auto!important;
    flex-wrap:nowrap!important;
    gap:clamp(10px,1.25vw,20px)!important;
    padding:0!important;
    margin:0!important;
    width:max-content!important;
    overflow:visible!important;
    background:transparent!important;
    border:0!important;
    box-shadow:none!important;
  }
  body:is(body,#belitec-desktop-scope):not(.wp-admin) :is(.bst-php-header .bst-role-nav__link,#bst-marketplace-root#bst-marketplace-root .bst-app-header--marketplace .bst-role-nav__link){
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    height:76px!important;
    min-height:76px!important;
    padding:0!important;
    border-radius:0!important;
    background:transparent!important;
    box-shadow:none!important;
    font-size:13px!important;
    font-weight:700!important;
    line-height:20px!important;
  }
  body:is(body,#belitec-desktop-scope):not(.wp-admin) :is(.bst-php-header .bst-role-nav__link .dashicons,#bst-marketplace-root#bst-marketplace-root .bst-app-header--marketplace .bst-role-nav__link .dashicons){display:none!important;}
  body:is(body,#belitec-desktop-scope):not(.wp-admin) :is(.bst-php-header .bst-php-admin-indicator,#bst-marketplace-root#bst-marketplace-root .bst-app-header--marketplace .bst-marketplace-admin-indicator){
    display:inline-flex!important;
    flex:0 0 44px!important;
    width:44px!important;min-width:44px!important;max-width:44px!important;
    height:44px!important;min-height:44px!important;
    padding:0!important;margin:0!important;
    border:1px solid #cad0d7!important;
    border-radius:8px!important;
    align-items:center!important;justify-content:center!important;
    background:#fff!important;color:#0d2b48!important;
    cursor:default!important;pointer-events:none!important;
    user-select:none!important;
  }
  body:is(body,#belitec-desktop-scope):not(.wp-admin) :is(.bst-php-header .bst-php-admin-indicator .dashicons,#bst-marketplace-root#bst-marketplace-root .bst-app-header--marketplace .bst-marketplace-admin-indicator .dashicons,.bst-php-admin-indicator .dashicons){width:19px!important;height:19px!important;font-size:19px!important;line-height:19px!important;}
  body:is(body,#belitec-desktop-scope):not(.wp-admin) :is(.bst-php-header .bst-php-admin-indicator img,#bst-marketplace-root#bst-marketplace-root .bst-app-header--marketplace .bst-marketplace-admin-indicator img){display:block!important;width:24px!important;height:24px!important;max-width:24px!important;max-height:24px!important;object-fit:contain!important;}
  /* Auth screens already have the wordmark in the global header. */
  body:is(body,#belitec-desktop-scope):not(.wp-admin) .bst-auth-page .bst-auth-brand{display:none!important;}
}
@media (min-width:1024px) and (max-width:1199px){
  body:is(body,#belitec-desktop-scope):not(.wp-admin) :is(.bst-php-header .bst-php-header__inner,#bst-marketplace-root#bst-marketplace-root .bst-app-header--marketplace .bst-app-header__inner){width:calc(100% - 40px)!important;grid-template-columns:max-content minmax(100px,1fr) max-content!important;gap:12px!important;}
  body:is(body,#belitec-desktop-scope):not(.wp-admin) :is(.bst-php-header .bst-marketplace-header-title,#bst-marketplace-root#bst-marketplace-root .bst-app-header--marketplace .bst-marketplace-header-title){font-size:11px!important;white-space:normal!important;}
  body:is(body,#belitec-desktop-scope):not(.wp-admin) :is(.bst-php-header .bst-php-header__right,#bst-marketplace-root#bst-marketplace-root .bst-app-header--marketplace .bst-app-header__right){gap:7px!important;}
  body:is(body,#belitec-desktop-scope):not(.wp-admin) :is(.bst-php-header .bst-role-nav,#bst-marketplace-root#bst-marketplace-root .bst-app-header--marketplace .bst-role-nav){gap:10px!important;}
  body:is(body,#belitec-desktop-scope):not(.wp-admin) :is(.bst-php-header .bt-header-account>summary,#bst-marketplace-root#bst-marketplace-root .bst-app-header--marketplace .bt-header-account>summary){padding:0 10px!important;}
  body:is(body,#belitec-desktop-scope):not(.wp-admin) :is(.bst-php-header .bst-belitec-wordmark,#bst-marketplace-root#bst-marketplace-root .bst-app-header--marketplace .bst-belitec-wordmark){font-size:25px!important;}
}
@media (min-width:768px) and (max-width:1023px){
  /* Avoid leaving an empty title column on tablet-sized headers. */
  body:is(body,#belitec-desktop-scope):not(.wp-admin) :is(.bst-php-header .bst-marketplace-header-title,#bst-marketplace-root#bst-marketplace-root .bst-app-header--marketplace .bst-marketplace-header-title){display:none!important;}
}

@media (max-width:1023px){
  body:is(body,#belitec-desktop-scope):not(.wp-admin) .bst-php-header .bst-marketplace-header-title{display:none!important;}
}

/* v4.14.78 — administrator status is a non-clickable badge.
   Match the high-specificity desktop header selector so its native
   tooltip still appears on hover (no link or click handler is added). */
body:is(body,#belitec-desktop-scope):not(.wp-admin) :is(.bst-php-header .bst-php-admin-indicator,#bst-marketplace-root#bst-marketplace-root .bst-app-header--marketplace .bst-marketplace-admin-indicator){
  pointer-events:auto!important;
  cursor:default!important;
}
body:is(body,#belitec-desktop-scope):not(.wp-admin) :is(.bst-php-header .bst-php-admin-indicator img,#bst-marketplace-root#bst-marketplace-root .bst-app-header--marketplace .bst-marketplace-admin-indicator img){
  pointer-events:none!important;
}


/* v4.14.79 — header title prominence adjustment */
@media (min-width:1024px) {
  body:is(body,#belitec-desktop-scope):not(.wp-admin) :is(.bst-php-header .bst-brand-logo,#bst-marketplace-root#bst-marketplace-root .bst-app-header--marketplace .bst-brand-logo){
    width:122px!important;
    height:36px!important;
    max-width:122px!important;
  }
  body:is(body,#belitec-desktop-scope):not(.wp-admin) :is(.bst-php-header .bst-marketplace-header-title,#bst-marketplace-root#bst-marketplace-root .bst-app-header--marketplace .bst-marketplace-header-title){
    font-size:clamp(16px,1.22vw,20px)!important;
    font-weight:800!important;
    letter-spacing:-.32px!important;
    color:#102a43!important;
    line-height:1.2!important;
  }
}
@media (min-width:1024px) and (max-width:1199px){
  body:is(body,#belitec-desktop-scope):not(.wp-admin) :is(.bst-php-header .bst-brand-logo,#bst-marketplace-root#bst-marketplace-root .bst-app-header--marketplace .bst-brand-logo){
    width:112px!important;
    height:33px!important;
    max-width:112px!important;
  }
  body:is(body,#belitec-desktop-scope):not(.wp-admin) :is(.bst-php-header .bst-marketplace-header-title,#bst-marketplace-root#bst-marketplace-root .bst-app-header--marketplace .bst-marketplace-header-title){
    font-size:14px!important;
    line-height:1.25!important;
    white-space:normal!important;
  }
}


/* v4.14.80 — correctly size the text wordmark (not the unused logo image).
   Both public PHP pages and React Explorer share this visual scale. */
@media (min-width:1200px) {
  body:is(body,#belitec-desktop-scope):not(.wp-admin) :is(.bst-php-header .bst-belitec-wordmark,#bst-marketplace-root#bst-marketplace-root .bst-app-header--marketplace .bst-belitec-wordmark) {
    font-size:24px!important;
    line-height:1!important;
    letter-spacing:-.85px!important;
  }
}
@media (min-width:1024px) and (max-width:1199px) {
  body:is(body,#belitec-desktop-scope):not(.wp-admin) :is(.bst-php-header .bst-belitec-wordmark,#bst-marketplace-root#bst-marketplace-root .bst-app-header--marketplace .bst-belitec-wordmark) {
    font-size:22px!important;
    line-height:1!important;
    letter-spacing:-.75px!important;
  }
}


/* v4.14.82 — custom image-based marketplace header branding */
body:is(body,#belitec-desktop-scope):not(.wp-admin) :is(.bst-php-header .bst-brand-link,#bst-marketplace-root#bst-marketplace-root .bst-app-header--marketplace .bst-brand-link){gap:10px!important}
body:is(body,#belitec-desktop-scope):not(.wp-admin) :is(.bst-php-header .bst-brand-icon,#bst-marketplace-root#bst-marketplace-root .bst-app-header--marketplace .bst-brand-icon){
  width:44px!important;height:44px!important;flex:0 0 44px!important;display:block!important;object-fit:contain!important;border-radius:0!important;
}
body:is(body,#belitec-desktop-scope):not(.wp-admin) :is(.bst-php-header .bst-belitec-wordmark,#bst-marketplace-root#bst-marketplace-root .bst-app-header--marketplace .bst-belitec-wordmark){
  font-size:24px!important;line-height:1!important;font-weight:800!important;letter-spacing:-1px!important;white-space:nowrap!important;
}
body:is(body,#belitec-desktop-scope):not(.wp-admin) :is(.bst-php-header .bst-marketplace-header-title,#bst-marketplace-root#bst-marketplace-root .bst-app-header--marketplace .bst-marketplace-header-title){
  display:flex!important;align-items:center!important;justify-content:center!important;min-width:0!important;flex:1 1 auto!important;
}
body:is(body,#belitec-desktop-scope):not(.wp-admin) :is(.bst-php-header .bst-marketplace-header-title img,#bst-marketplace-root#bst-marketplace-root .bst-app-header--marketplace .bst-marketplace-header-title img){
  display:block!important;width:auto!important;max-width:min(100%, 520px)!important;height:auto!important;max-height:64px!important;object-fit:contain!important;
}
@media (max-width: 1199px){
  body:is(body,#belitec-desktop-scope):not(.wp-admin) :is(.bst-php-header .bst-brand-icon,#bst-marketplace-root#bst-marketplace-root .bst-app-header--marketplace .bst-brand-icon){width:38px!important;height:38px!important;flex-basis:38px!important}
  body:is(body,#belitec-desktop-scope):not(.wp-admin) :is(.bst-php-header .bst-belitec-wordmark,#bst-marketplace-root#bst-marketplace-root .bst-app-header--marketplace .bst-belitec-wordmark){font-size:22px!important}
  body:is(body,#belitec-desktop-scope):not(.wp-admin) :is(.bst-php-header .bst-marketplace-header-title img,#bst-marketplace-root#bst-marketplace-root .bst-app-header--marketplace .bst-marketplace-header-title img){max-width:min(100%, 430px)!important;max-height:54px!important}
}
@media (max-width: 900px){
  body:is(body,#belitec-desktop-scope):not(.wp-admin) :is(.bst-php-header .bst-marketplace-header-title img,#bst-marketplace-root#bst-marketplace-root .bst-app-header--marketplace .bst-marketplace-header-title img){max-width:min(100%, 320px)!important;max-height:42px!important}
}


/* Preserve the compact mobile/tablet header: there is no room for a centered script title beside controls. */
@media (max-width:1023px) {
  body:is(body,#belitec-desktop-scope):not(.wp-admin) :is(.bst-php-header .bst-marketplace-header-title,#bst-marketplace-root#bst-marketplace-root .bst-app-header--marketplace .bst-marketplace-header-title){
    display:none!important;
  }
}
/* v4.14.83 — optimized transparent header branding */
/* Center the script artwork on wide desktop screens despite a wider right-hand action group. */
@media (min-width:1320px) {
  body:is(body,#belitec-desktop-scope):not(.wp-admin) :is(.bst-php-header .bst-php-header__inner,#bst-marketplace-root#bst-marketplace-root .bst-app-header--marketplace .bst-app-header__inner){
    grid-template-columns:minmax(max-content,1fr) max-content minmax(max-content,1fr)!important;
  }
}

@media (min-width:1200px) {
  body:is(body,#belitec-desktop-scope):not(.wp-admin) :is(.bst-php-header .bst-brand-icon,#bst-marketplace-root#bst-marketplace-root .bst-app-header--marketplace .bst-brand-icon){
    width:46px!important;height:46px!important;flex:0 0 46px!important;object-fit:contain!important;
  }
  body:is(body,#belitec-desktop-scope):not(.wp-admin) :is(.bst-php-header .bst-marketplace-header-title img,#bst-marketplace-root#bst-marketplace-root .bst-app-header--marketplace .bst-marketplace-header-title img){
    width:auto!important;max-width:100%!important;max-height:66px!important;height:auto!important;object-fit:contain!important;
  }
}
@media (min-width:1024px) and (max-width:1199px) {
  body:is(body,#belitec-desktop-scope):not(.wp-admin) :is(.bst-php-header .bst-marketplace-header-title img,#bst-marketplace-root#bst-marketplace-root .bst-app-header--marketplace .bst-marketplace-header-title img){
    width:auto!important;max-width:100%!important;max-height:54px!important;height:auto!important;object-fit:contain!important;
  }
}


/* BeliTech v4.14.84: icon-only brand and rigorously centered desktop header. */
body:is(body,#belitec-desktop-scope):not(.wp-admin) :is(.bst-php-header .bst-brand-link,#bst-marketplace-root#bst-marketplace-root .bst-app-header--marketplace .bst-brand-link){
  display:inline-flex!important;align-items:center!important;justify-content:flex-start!important;gap:0!important;line-height:1!important;min-width:0!important;
}
body:is(body,#belitec-desktop-scope):not(.wp-admin) :is(.bst-php-header .bst-brand-icon,#bst-marketplace-root#bst-marketplace-root .bst-app-header--marketplace .bst-brand-icon){
  display:block!important;width:54px!important;height:54px!important;flex:0 0 54px!important;max-width:54px!important;max-height:54px!important;object-fit:contain!important;
}
body:is(body,#belitec-desktop-scope):not(.wp-admin) :is(.bst-php-header .bst-belitec-wordmark,#bst-marketplace-root#bst-marketplace-root .bst-app-header--marketplace .bst-belitec-wordmark){display:none!important}
@media (min-width:1360px){
  body:is(body,#belitec-desktop-scope):not(.wp-admin) :is(.bst-php-header .bst-php-header__inner,#bst-marketplace-root#bst-marketplace-root .bst-app-header--marketplace .bst-app-header__inner){
    position:relative!important;display:grid!important;grid-template-columns:max-content minmax(0,1fr) max-content!important;
    width:calc(100% - 64px)!important;max-width:1520px!important;min-height:76px!important;height:76px!important;
    padding:0!important;margin:0 auto!important;gap:18px!important;align-items:center!important;
  }
  body:is(body,#belitec-desktop-scope):not(.wp-admin) :is(.bst-php-header .bst-marketplace-header-title,#bst-marketplace-root#bst-marketplace-root .bst-app-header--marketplace .bst-marketplace-header-title){
    position:absolute!important;left:50%!important;top:50%!important;transform:translate(-50%,-50%)!important;
    width:clamp(210px,18vw,305px)!important;max-width:305px!important;min-width:0!important;
    display:flex!important;align-items:center!important;justify-content:center!important;z-index:1!important;
    margin:0!important;padding:0!important;
  }
  body:is(body,#belitec-desktop-scope):not(.wp-admin) :is(.bst-php-header .bst-marketplace-header-title img,#bst-marketplace-root#bst-marketplace-root .bst-app-header--marketplace .bst-marketplace-header-title img){
    width:100%!important;max-width:100%!important;height:auto!important;max-height:66px!important;object-fit:contain!important;
  }
  body:is(body,#belitec-desktop-scope):not(.wp-admin) :is(.bst-php-header .bst-php-header__right,#bst-marketplace-root#bst-marketplace-root .bst-app-header--marketplace .bst-app-header__right){
    grid-column:3!important;justify-self:end!important;position:relative!important;z-index:2!important;gap:clamp(8px,0.85vw,14px)!important;
  }
}
@media (min-width:1024px) and (max-width:1359px){
  body:is(body,#belitec-desktop-scope):not(.wp-admin) :is(.bst-php-header .bst-php-header__inner,#bst-marketplace-root#bst-marketplace-root .bst-app-header--marketplace .bst-app-header__inner){
    display:grid!important;grid-template-columns:max-content minmax(0,1fr) max-content!important;gap:12px!important;
    width:calc(100% - 40px)!important;max-width:1520px!important;height:76px!important;min-height:76px!important;
  }
  body:is(body,#belitec-desktop-scope):not(.wp-admin) :is(.bst-php-header .bst-marketplace-header-title,#bst-marketplace-root#bst-marketplace-root .bst-app-header--marketplace .bst-marketplace-header-title){display:none!important}
  body:is(body,#belitec-desktop-scope):not(.wp-admin) :is(.bst-php-header .bst-php-header__right,#bst-marketplace-root#bst-marketplace-root .bst-app-header--marketplace .bst-app-header__right){grid-column:3!important;justify-self:end!important}
}
@media(max-width:1023px){
  body:is(body,#belitec-desktop-scope):not(.wp-admin) :is(.bst-php-header .bst-brand-icon,#bst-marketplace-root#bst-marketplace-root .bst-app-header--marketplace .bst-brand-icon){width:42px!important;height:42px!important;flex:0 0 42px!important}
}
/* The footer retains its meaningful brand label for assistive technology. */
.bst-site-footer__brand .bt-footer-logo{display:block!important;width:max-content!important;padding:5px!important;background:#fff!important;border-radius:50%!important;line-height:0!important}
.bst-site-footer__brand .bt-footer-logo img{display:block!important;width:56px!important;height:56px!important;object-fit:contain!important}
.bst-site-footer__bottom .bt-footer-copyright-logo{display:inline-block!important;vertical-align:middle!important;margin:0 4px!important;width:23px!important;height:23px!important;object-fit:contain!important;background:#fff!important;border-radius:50%!important;padding:1px!important}
.bt-admin-brand-emblem{display:block;width:24px;height:24px;object-fit:contain}

/* v4.17.01 — Unified, three-zone desktop header. The root-scoped branch of each
   :is() selector matches the specificity of the legacy React tourist grid,
   while its PHP branch receives the same cascade priority. */
@media (min-width:1024px) {
  body:is(body,#belitec-desktop-scope):not(.wp-admin) :is(
    .bst-php-header .bst-php-header__inner,
    #bst-marketplace-root#bst-marketplace-root .bst-marketplace-root .bst-app-header--marketplace .bst-app-header__inner
  ) {
    position:relative!important;display:grid!important;
    grid-template-columns:max-content minmax(0,1fr) max-content!important;
    align-items:center!important;justify-content:normal!important;
    column-gap:clamp(16px,2vw,36px)!important;
  }
  body:is(body,#belitec-desktop-scope):not(.wp-admin) :is(
    .bst-php-header .bst-php-header__inner > .bst-brand-link,
    #bst-marketplace-root#bst-marketplace-root .bst-marketplace-root .bst-app-header--marketplace .bst-app-header__inner > .bst-brand-link
  ) {
    grid-column:1!important;grid-row:1!important;
    justify-self:start!important;align-self:center!important;z-index:2!important;
    width:max-content!important;min-width:0!important;
  }
  body:is(body,#belitec-desktop-scope):not(.wp-admin) :is(
    .bst-php-header .bst-php-header__inner > .bst-role-nav,
    #bst-marketplace-root#bst-marketplace-root .bst-marketplace-root .bst-app-header--marketplace .bst-app-header__inner > .bst-role-nav
  ) {
    grid-column:2!important;grid-row:1!important;display:flex!important;
    justify-self:start!important;align-self:center!important;justify-content:flex-start!important;
    flex:0 0 auto!important;width:max-content!important;margin:0!important;padding:0!important;
    gap:clamp(14px,1.25vw,24px)!important;position:relative!important;z-index:2!important;
  }
  body:is(body,#belitec-desktop-scope):not(.wp-admin) :is(
    .bst-php-header .bst-php-header__inner > .bst-php-header__right,
    #bst-marketplace-root#bst-marketplace-root .bst-marketplace-root .bst-app-header--marketplace .bst-app-header__inner > .bst-app-header__right
  ) {
    grid-column:3!important;grid-row:1!important;justify-self:end!important;
    flex:0 0 auto!important;width:max-content!important;margin:0!important;
    position:relative!important;z-index:3!important;
  }
  /* The preferences entry is now a standard-width item in the My account menu,
     not a separate 44-pixel toolbar button in the header. */
  body:is(body,#belitec-desktop-scope):not(.wp-admin) :is(
    .bst-php-header .bt-header-account > nav > .bt-header-preferences,
    #bst-marketplace-root#bst-marketplace-root .bst-app-header--marketplace .bt-header-account > nav > .bt-header-preferences
  ){
    display:block!important;position:relative!important;
    width:100%!important;height:auto!important;min-height:0!important;
    padding:0!important;margin:4px 0!important;box-sizing:border-box!important;
  }
  body:is(body,#belitec-desktop-scope):not(.wp-admin) :is(
    .bst-php-header .bt-header-account > nav > .bt-header-preferences .bst-v3-toolbar,
    .bst-php-header .bt-header-account > nav > .bt-header-preferences .bst-v3-toolbar__inner,
    #bst-marketplace-root#bst-marketplace-root .bst-app-header--marketplace .bt-header-account > nav > .bt-header-preferences .bst-v3-toolbar,
    #bst-marketplace-root#bst-marketplace-root .bst-app-header--marketplace .bt-header-account > nav > .bt-header-preferences .bst-v3-toolbar__inner
  ){
    display:block!important;width:100%!important;height:auto!important;
    min-height:0!important;max-width:none!important;
    padding:0!important;margin:0!important;
  }
  body:is(body,#belitec-desktop-scope):not(.wp-admin) :is(
    .bst-php-header .bt-header-account > nav > .bt-header-preferences .bt-preferences-menu,
    #bst-marketplace-root#bst-marketplace-root .bst-app-header--marketplace .bt-header-account > nav > .bt-header-preferences .bt-preferences-menu
  ){width:100%!important;margin:0!important}
  body:is(body,#belitec-desktop-scope):not(.wp-admin) :is(
    .bst-php-header .bt-header-account > nav > .bt-header-preferences .bt-preferences-menu > summary,
    #bst-marketplace-root#bst-marketplace-root .bst-app-header--marketplace .bt-header-account > nav > .bt-header-preferences .bt-preferences-menu > summary
  ){
    display:flex!important;justify-content:space-between!important;
    width:100%!important;min-height:44px!important;height:44px!important;
    padding:10px 12px!important;margin:0!important;
    border:0!important;border-radius:6px!important;
    color:#0d2b48!important;background:transparent!important;
    font-size:13px!important;font-weight:600!important;cursor:pointer!important;
    box-sizing:border-box!important;
  }
  body:is(body,#belitec-desktop-scope):not(.wp-admin) :is(
    .bst-php-header .bt-header-account > nav > .bt-header-preferences .bt-preferences-menu > summary:hover,
    #bst-marketplace-root#bst-marketplace-root .bst-app-header--marketplace .bt-header-account > nav > .bt-header-preferences .bt-preferences-menu > summary:hover
  ){background:#f7f8f9!important}
}
@media (min-width:1360px){
  body:is(body,#belitec-desktop-scope):not(.wp-admin) :is(
    .bst-php-header .bst-php-header__inner,
    #bst-marketplace-root#bst-marketplace-root .bst-marketplace-root .bst-app-header--marketplace .bst-app-header__inner
  ) {width:80%!important;max-width:1520px!important;}
}
@media (min-width:1360px){
  body:is(body,#belitec-desktop-scope):not(.wp-admin) :is(
    .bst-php-header .bst-php-header__inner > .bst-marketplace-header-title,
    #bst-marketplace-root#bst-marketplace-root .bst-marketplace-root .bst-app-header--marketplace .bst-app-header__inner > .bst-marketplace-header-title
  ) {
    position:absolute!important;left:50%!important;top:50%!important;
    transform:translate(-50%,-50%)!important;grid-column:auto!important;grid-row:auto!important;
    display:flex!important;z-index:1!important;pointer-events:none!important;
  }
}
@media (min-width:1024px) and (max-width:1359px){
  body:is(body,#belitec-desktop-scope):not(.wp-admin) :is(
    .bst-php-header .bst-php-header__inner > .bst-marketplace-header-title,
    #bst-marketplace-root#bst-marketplace-root .bst-marketplace-root .bst-app-header--marketplace .bst-app-header__inner > .bst-marketplace-header-title
  ) {display:none!important;}
}
/* Preserve the tablet/mobile layout: direct desktop navigation becomes a dedicated
   second row, rather than crowding sign-in, notifications or profile controls. */
@media (max-width:1023px){
  body:is(body,#belitec-desktop-scope):not(.wp-admin) .bst-php-header .bst-php-header__inner > .bst-role-nav{
    order:3!important;flex:0 0 100%!important;justify-content:flex-start!important;
    width:100%!important;margin:0!important;
  }
  /* The React app already has a separate mobile portal-nav row. */
  body:is(body,#belitec-desktop-scope):not(.wp-admin) #bst-marketplace-root#bst-marketplace-root .bst-app-header--marketplace .bst-app-header__inner > .bst-role-nav{display:none!important}
}

/* On tablet React's md:hidden secondary row is absent, so retain the in-header links. */
@media (min-width:768px) and (max-width:1023px){
  body:is(body,#belitec-desktop-scope):not(.wp-admin) #bst-marketplace-root#bst-marketplace-root .bst-app-header--marketplace .bst-app-header__inner > .bst-role-nav{
    display:flex!important;order:2!important;flex:0 0 auto!important;
    width:max-content!important;gap:14px!important;margin-left:auto!important;
  }
}

/* v4.14.95 — Preferences is a nested, in-flow section of the SAME My account
   dropdown on PHP pages and the React Explorer / Operator / Admin header.
   The prior fixed-position panel detached from its trigger and the account
   menu closed when the nested details was opened. */
@media (min-width:1024px) {
  body:not(.wp-admin) :is(.bst-php-header,#bst-marketplace-root .bst-app-header--marketplace)
    .bt-header-account > nav {
    width:300px!important;
    max-width:calc(100vw - 24px)!important;
    max-height:min(650px,calc(100vh - 105px))!important;
    overflow-x:hidden!important;
    overflow-y:auto!important;
    overscroll-behavior:contain;
  }
  body:not(.wp-admin) :is(.bst-php-header,#bst-marketplace-root .bst-app-header--marketplace)
    .bt-header-account > nav > .bt-header-preferences {
    display:block!important;
    position:relative!important;
    flex:none!important;
    width:100%!important;
    height:auto!important;
    min-height:0!important;
    padding:0!important;
    margin:4px 0!important;
  }
  body:not(.wp-admin) :is(.bst-php-header,#bst-marketplace-root .bst-app-header--marketplace)
    .bt-header-preferences :is(.bst-v3-toolbar,.bst-v3-toolbar__inner) {
    display:block!important;
    width:100%!important;
    height:auto!important;
    min-height:0!important;
    max-width:none!important;
    padding:0!important;
    margin:0!important;
  }
  body:not(.wp-admin) :is(.bst-php-header,#bst-marketplace-root .bst-app-header--marketplace)
    .bt-header-preferences .bt-preferences-menu {
    display:block!important;
    width:100%!important;
    margin:0!important;
  }
}
/* In-flow on all viewports where the account dropdown is rendered. */
body:not(.wp-admin) :is(.bst-php-header,#bst-marketplace-root .bst-app-header--marketplace)
  .bt-header-account .bt-preferences-panel {
  display:block;
  position:static!important;
  inset:auto!important;
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  max-height:none!important;
  padding:10px 8px 12px!important;
  margin:0!important;
  background:#f7f8f9!important;
  border:0!important;
  border-top:1px solid #edeff1!important;
  border-radius:0 0 8px 8px!important;
  box-shadow:none!important;
  overflow:visible!important;
  box-sizing:border-box!important;
}
body:not(.wp-admin) :is(.bst-php-header,#bst-marketplace-root .bst-app-header--marketplace)
  .bt-header-account .bt-preferences-menu:not([open]) > .bt-preferences-panel {
  display:none!important;
}
body:not(.wp-admin) :is(.bst-php-header,#bst-marketplace-root .bst-app-header--marketplace)
  .bt-header-account .bt-preferences-panel .bst-v3-toolgroup--prefs {
  display:flex!important;
  flex-direction:column!important;
  align-items:stretch!important;
  gap:10px!important;
  width:100%!important;
}
body:not(.wp-admin) :is(.bst-php-header,#bst-marketplace-root .bst-app-header--marketplace)
  .bt-header-account .bt-preferences-panel .bst-v3-select-control {
  display:flex!important;
  justify-content:space-between!important;
  align-items:center!important;
  gap:8px!important;
  width:100%!important;
  min-width:0!important;
}
body:not(.wp-admin) :is(.bst-php-header,#bst-marketplace-root .bst-app-header--marketplace)
  .bt-header-account .bt-preferences-menu > summary {
  justify-content:space-between!important;
  width:100%!important;
  min-height:44px!important;
  height:auto!important;
  padding:10px 12px!important;
  border-radius:6px!important;
  box-sizing:border-box!important;
}
body:not(.wp-admin) :is(.bst-php-header,#bst-marketplace-root .bst-app-header--marketplace)
  .bt-header-account .bt-preferences-menu > summary:hover {
  background:#f7f8f9!important;
}
/* Override the older high-specificity 240px / 260px rules. */
@media (min-width:1024px) {
  body:is(body,#belitec-desktop-scope):not(.wp-admin)
    :is(#bst-marketplace-root#bst-marketplace-root .bst-app-header--marketplace,.bst-php-header)
    .bt-header-account > nav {
    width:304px!important;
    max-width:calc(100vw - 24px)!important;
  }
  body:is(body,#belitec-desktop-scope):not(.wp-admin)
    :is(#bst-marketplace-root#bst-marketplace-root .bst-app-header--marketplace,.bst-php-header)
    .bt-header-account .bt-preferences-panel {
    position:static!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    overflow:visible!important;
  }
}
