@layer visibility {
  /* The approved night sky fills the existing header, including wide games. */
  html.refresh.sphere-menu-v1[data-theme=dark] body .site #siteHeader.top {
    background: #07142f url("header-night-aurora-20261110.svg") center / 100% 100% no-repeat !important;
  }
  html.refresh.sphere-menu-v1[data-theme=dark] body .site #siteHeader.top::before,
  html.refresh.sphere-menu-v1[data-theme=dark] body .site #siteHeader.top::after,
  html.refresh.sphere-menu-v1[data-theme=dark] body .site #siteHeader .site-header-inner::before,
  html.refresh.sphere-menu-v1[data-theme=dark] body .site #siteHeader .terra-scenery .terra-floor-dark,
  html.refresh.sphere-menu-v1[data-theme=dark] body .site #siteHeader .terra-wide-clouds {
    display: none !important;
  }

  /* A separate, compact control; the original header geometry is unchanged. */
  html.refresh.sphere-menu-v1 body .site #siteHeader #headerLogout:not([hidden]) {
    position: absolute !important;
    right: 9px !important;
    top: 52px !important;
    bottom: auto !important;
    z-index: 50 !important;
    box-sizing: border-box !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    width: auto !important;
    min-width: 0 !important;
    height: 26px !important;
    min-height: 26px !important;
    margin: 0 !important;
    padding: 0 8px !important;
    border: 1px solid rgba(150, 205, 246, .48) !important;
    border-radius: 9px !important;
    background: rgba(8, 30, 59, .83) !important;
    color: #e9f5ff !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12) !important;
    font: 700 10px/1 Manrope, Arial, sans-serif !important;
    white-space: nowrap !important;
    cursor: pointer !important;
  }
  html.refresh.sphere-menu-v1 body .site #siteHeader #headerLogout[hidden] {
    display: none !important;
  }
  html.refresh.sphere-menu-v1[data-theme=light] body .site #siteHeader #headerLogout:not([hidden]) {
    color: #153f63 !important;
    background: rgba(247, 252, 255, .94) !important;
    border-color: rgba(70, 131, 180, .55) !important;
  }
  html.refresh.sphere-menu-v1 body .site #siteHeader #headerLogout svg {
    display: block !important;
    width: 13px !important;
    height: 13px !important;
    flex: none !important;
  }
  html.refresh.sphere-menu-v1 body .site #siteHeader #headerLogout:focus-visible {
    outline: 2px solid #56cfff !important;
    outline-offset: 2px !important;
  }
}
