/* ESFX V78 | Compact desktop header and avatar-only mobile WEB header.
   Scoped to website header. Native WebView app shell remains unchanged.
   Light/Dark color tokens, typography elsewhere, breakpoints and routing untouched. */

/* Compact logo and navigation on desktop; keep the original Light/Dark artwork. */
@media (min-width: 861px) {
  body.esfx-product-body:not(.esfx-native-app) .site-header .brand.brand-logo-only img.esfx-brand-light,
  body.esfx-product-body:not(.esfx-native-app) .site-header .brand.brand-logo-only img.esfx-brand-dark {
    width: 92px !important;
    max-width: 92px !important;
    height: 34px !important;
    max-height: 34px !important;
    object-fit: contain !important;
  }
  body.esfx-product-body:not(.esfx-native-app) .site-header .header-inner {
    gap: clamp(7px, .88vw, 13px);
  }
  body.esfx-product-body:not(.esfx-native-app) .site-header .desktop-nav > a {
    font-size: clamp(.73rem, .67vw, .82rem) !important;
    padding-inline: clamp(5px, .46vw, 8px) !important;
    letter-spacing: -.01em;
    white-space: nowrap;
  }
}

/* Mobile WEB: only the user avatar is visible in the right-side header.
   The profile link remains accessible via its explicit localized aria-label. */
@media (max-width: 860px) {
  body.esfx-product-body:not(.esfx-native-app) .site-header .header-actions > a.user-chip {
    display: inline-flex !important;
    justify-content: center !important;
    align-items: center !important;
    flex: 0 0 38px;
    width: 38px !important;
    height: 38px !important;
    min-width: 38px;
    padding: 2px !important;
    gap: 0 !important;
    margin-left: 1px;
    border: 0 !important;
    border-radius: 50% !important;
    background: transparent !important;
    box-shadow: none !important;
    overflow: hidden;
  }
  body.esfx-product-body:not(.esfx-native-app) .site-header .header-actions > a.user-chip > .user-chip-name {
    display: none !important;
  }
  body.esfx-product-body:not(.esfx-native-app) .site-header .header-actions > a.user-chip > .avatar {
    display: grid;
    flex: 0 0 34px;
    width: 34px !important;
    height: 34px !important;
    margin: 0 !important;
    border-radius: 50% !important;
    object-fit: cover;
  }
}
@media (max-width: 390px) {
  body.esfx-product-body:not(.esfx-native-app) .site-header .header-actions > a.user-chip {
    flex-basis: 36px;
    width: 36px !important;
    height: 36px !important;
    min-width: 36px;
  }
  body.esfx-product-body:not(.esfx-native-app) .site-header .header-actions > a.user-chip > .avatar {
    flex-basis: 32px;
    width: 32px !important;
    height: 32px !important;
  }
}
