
  /* ── Body-inlined: loads AFTER all linked stylesheets, wins on specificity + cascade ── */

  html body .layout_page_header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 10050 !important;
    box-sizing: border-box;
  }

  /* ═══════════════ DESKTOP mini-menu ═══════════════ */
  html body .layout_page_header #core_menu_mini_menu > ul {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 0.125rem;
  }
  html body .layout_page_header #core_menu_mini_menu > ul > li {
    min-width: 3.125rem;
    text-align: center !important;
  }
  html body .layout_page_header #core_menu_mini_menu > ul > li > a.show_icons {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    line-height: 1.1 !important;
    padding: 0.5rem 0.25rem 0.3125rem !important;
  }
  html body .layout_page_header #core_menu_mini_menu > ul > li > a.show_icons > span._linktxt {
    display: block !important;
    white-space: nowrap;
    margin-top: 0.125rem;
    font-size: 0.6875rem;
    line-height: 1.1;
  }
  html body .layout_page_header #core_menu_mini_menu > ul > li.core_mini_menu_profile > a.show_icons {
    min-width: 3.125rem;
  }
  html body .layout_page_header #core_menu_mini_menu > ul > li.core_mini_menu_profile > a.show_icons > .bg_thumb_icon {
    width: 1.625rem !important;
    height: 1.625rem !important;
    min-width: 1.625rem !important;
    min-height: 1.625rem !important;
    display: block !important;
    flex-shrink: 0 !important;
    background-size: cover !important;
    background-position: center center !important;
  }
  html body .layout_page_header #core_menu_mini_menu > ul > li a.show_icons > i.minimenu_icon,
  html body .layout_page_header #core_menu_mini_menu > ul > li a.show_icons > i.menuicon,
  html body .layout_page_header #core_menu_mini_menu > ul > li .show_icons > i.minimenu_icon {
    overflow: visible !important;
    height: auto !important;
    min-height: 2.25rem !important;
    max-height: none !important;
    line-height: 1 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.125rem !important;
  }
  /* Notification + message count badges — desktop */
  html body .layout_page_header .minimenu_update_count_bubble,
  html body .layout_page_header .minimenu_message_count_bubble {
    position: absolute !important;
    top: 0.25rem !important;
    left: auto !important;
    right: 0.125rem !important;
    min-width: 1.0625rem !important;
    height: 1.0625rem !important;
    line-height: 1.0625rem !important;
    font-size: 0.625rem !important;
    font-weight: 700 !important;
    padding: 0 0.25rem !important;
    border-radius: 0.625rem !important;
    text-align: center !important;
    box-sizing: border-box !important;
  }
  /* Profile avatar — desktop */
  html body .layout_page_header #core_menu_mini_menu > ul > li.core_mini_menu_profile > a.show_icons > .bg_thumb_icon {
    width: 1.875rem !important;
    height: 1.875rem !important;
    min-width: 1.875rem !important;
    min-height: 1.875rem !important;
    border-radius: 50% !important;
    border: 0.125rem solid var(--theme-border-color) !important;
    background-size: cover !important;
    background-position: center center !important;
    display: block !important;
    flex-shrink: 0 !important;
    overflow: hidden !important;
  }
  html body .layout_page_header .updates_pulldown a.core_mini_update,
  html body .layout_page_header .updates_pulldown_active a.core_mini_update,
  html body .layout_page_header .header_menu_mini,
  html body .layout_page_header .header_right,
  html body .layout_page_header #core_menu_mini_menu_update,
  html body .layout_page_header #core_menu_mini_menu,
  html body .layout_page_header #core_menu_mini_menu > ul,
  html body .layout_page_header #core_menu_mini_menu > ul > li {
    overflow: visible !important;
  }

  /* ═══════════════ MOBILE / TABLET ≤ 991px ═══════════════ */
  @media (max-width: 991px) {

    /* ── ALL mini-menu dropdowns: fixed below header ── */
    /* Target only the DROPDOWN PANEL, never the trigger/icon wrapper */

    /* Notifications: bell trigger lives inside #core_mini_updates_pulldown (moved by JS),
       so only fix the inner .pulldown_contents_wrapper, not the outer span */
    html body .layout_page_header #core_mini_updates_pulldown .pulldown_contents_wrapper,
    /* Messages: trigger is <a class="show_icons">, dropdown is the sibling .pulldown_contents_wrapper */
    html body .layout_page_header #core_menu_mini_menu > ul > li.core_mini_messages .pulldown_contents_wrapper {
      position: fixed !important;
      top: 3.5rem !important;
      left: 0 !important;
      right: 0 !important;
      width: 100% !important;
      max-height: 75vh !important;
      overflow-y: auto !important;
      overflow-x: hidden !important;
      z-index: 10060 !important;
      margin: 0 !important;
      border-radius: 0 0 0.75rem 0.75rem !important;
      box-shadow: 0 0.5rem 2rem rgba(0,0,0,0.18) !important;
    }
    /* Make the notification container itself stay inline in the header row */
    html body .layout_page_header #core_mini_updates_pulldown {
      display: inline-flex !important;
      align-items: center !important;
      position: relative !important;
    }

    /* Single fixed row */
    html body .layout_page_header .harmony_header {
      padding: 0 0.5rem !important;
      box-sizing: border-box !important;
    }
    html body .layout_page_header .harmony_header_inner {
      display: flex !important;
      flex-direction: row !important;
      flex-wrap: nowrap !important;
      align-items: center !important;
      height: 3.5rem !important;
      width: 100% !important;
      padding-left: 0 !important;
      padding-right: 0 !important;
      box-sizing: border-box !important;
    }

    /* LEFT: grows to fill — logo anchored left, absorbs dead space */
    html body .layout_page_header .header_left {
      flex: 1 1 auto !important;
      width: auto !important;
      max-width: none !important;
      min-width: 0 !important;
      padding-left: 2.375rem !important;
      padding-right: 0.375rem !important;
      margin: 0 !important;
      display: flex !important;
      align-items: center !important;
      justify-content: flex-start !important;
      overflow: hidden !important;
      box-sizing: border-box !important;
    }
    html body .layout_page_header .header_logo a img,
    html body .layout_page_header .header_logo_contrast img {
      max-height: 2rem !important;
      width: auto !important;
    }
    html body .layout_page_header .header_logo a {
      white-space: nowrap !important;
      overflow: hidden !important;
      text-overflow: ellipsis !important;
    }

    /* RIGHT: compact, always at the far right edge */
    html body .layout_page_header .header_right {
      flex: 0 0 auto !important;
      width: auto !important;
      max-width: none !important;
      min-width: 0 !important;
      margin: 0 !important;
      padding: 0 !important;
      display: flex !important;
      flex-direction: row !important;
      align-items: center !important;
      justify-content: flex-end !important;
      flex-wrap: nowrap !important;
      gap: 0.125rem !important;
      overflow: visible !important;
    }

    /* Search button: inline, not absolute */
    html body .layout_page_header .header_search .search_mobile_btn,
    html body .layout_page_header .header_left .header_search .search_mobile_btn {
      position: static !important;
      right: auto !important;
      top: auto !important;
      transform: none !important;
      width: 2.25rem !important;
      height: 2.25rem !important;
      display: flex !important;
      align-items: center !important;
      justify-content: center !important;
      flex-shrink: 0 !important;
      border-radius: 0.5rem !important;
    }

    /* Search dropdown: fixed below header */
    html body .layout_page_header .layout_core_search_mini .core_search_form_wrap {
      position: fixed !important;
      top: 3.5rem !important;
      left: 0 !important;
      right: 0 !important;
      z-index: 10040 !important;
      display: none !important;
      width: 100% !important;
      box-sizing: border-box !important;
    }
    html body .layout_page_header .layout_core_search_mini .core_search_form_wrap.search_mobile_btn_active {
      display: block !important;
    }

    /* Mini-menu: compact, no artificial min-width */
    html body .layout_page_header .header_menu_mini {
      flex-shrink: 0 !important;
      width: auto !important;
    }
    html body .layout_page_header #core_menu_mini_menu > ul {
      display: flex !important;
      flex-wrap: nowrap !important;
      align-items: center !important;
      justify-content: flex-end !important;
    }
    html body .layout_page_header #core_menu_mini_menu > ul > li {
      min-width: 0 !important;
      width: auto !important;
      flex-shrink: 0 !important;
      margin: 0 !important;
    }
    html body .layout_page_header #core_menu_mini_menu > ul > li > a.show_icons {
      display: flex !important;
      flex-direction: column !important;
      align-items: center !important;
      justify-content: center !important;
      padding: 0.375rem 0.4375rem !important;
    }

    /* Logged-in: hide ONLY label text — avatar span (.bg_thumb_icon) stays visible */
    html body .layout_page_header #core_menu_mini_menu:not(.minimenu_guest) > ul > li > a.show_icons > span._linktxt {
      display: none !important;
    }
    /* Mobile icon size — smaller than desktop */
    html body .layout_page_header #core_menu_mini_menu > ul > li a.show_icons > i.minimenu_icon,
    html body .layout_page_header #core_menu_mini_menu > ul > li a.show_icons > i.menuicon,
    html body .layout_page_header #core_menu_mini_menu > ul > li .show_icons > i.minimenu_icon {
      min-height: 1.5rem !important;
      font-size: 1.125rem !important;
    }
    /* header_right: kill responsive.css margin-top at ≤600px (stacked column layout artefact) */
    html body .layout_page_header .harmony_header_inner .header_right {
      margin: 0 !important;
    }

    /* GUEST: Sign In / Sign Up live inside .harmony_guest_auth dropdown; keep Accessibility & Language as clean neutral icons */
    html body .layout_page_header #core_menu_mini_menu.minimenu_guest > ul > li > a.show_icons,
    html body .layout_page_header #core_menu_mini_menu.minimenu_guest > ul > li:last-child > a.show_icons {
      background: transparent !important;
      border: 0 !important;
      padding: 0.375rem !important;
      color: var(--theme-font-color, #1f2937) !important;
      border-radius: 0.5rem !important;
    }
    html body .layout_page_header #core_menu_mini_menu.minimenu_guest > ul > li > a.show_icons > i,
    html body .layout_page_header #core_menu_mini_menu.minimenu_guest > ul > li:last-child > a.show_icons > i {
      font-size: 1.0625rem !important;
      line-height: 1 !important;
      color: var(--theme-font-color, #1f2937) !important;
      min-height: auto !important;
      height: auto !important;
    }
    html body .layout_page_header #core_menu_mini_menu.minimenu_guest > ul > li > a.show_icons > span._linktxt,
    html body .layout_page_header #core_menu_mini_menu.minimenu_guest > ul > li:last-child > a.show_icons > span._linktxt {
      display: none !important;
    }
    /* Space between guest buttons */
    html body .layout_page_header #core_menu_mini_menu.minimenu_guest > ul {
      gap: 0.25rem !important;
    }

    /* Profile avatar — circular, clean, no dropdown caret on mobile */
    html body .layout_page_header #core_menu_mini_menu > ul > li.core_mini_menu_profile > a.show_icons {
      padding: 0.25rem 0.375rem !important;
      position: relative !important;
    }
    html body .layout_page_header #core_menu_mini_menu > ul > li.core_mini_menu_profile > a.show_icons > .bg_thumb_icon {
      width: 2rem !important;
      height: 2rem !important;
      min-width: 2rem !important;
      min-height: 2rem !important;
      border-radius: 50% !important;
      border: 0.125rem solid var(--theme-color) !important;
      background-size: cover !important;
      background-position: center center !important;
      display: block !important;
      flex-shrink: 0 !important;
      overflow: hidden !important;
    }
    /* Hide the dropdown caret arrow on mobile — it clutters the avatar */
    html body .layout_page_header #core_menu_mini_menu > ul > li.core_mini_menu_profile > a.show_icons > i.icon_down {
      display: none !important;
    }
    /* Profile dropdown: fixed below header, anchored to right edge so it never clips off-screen */
    html body .layout_page_header #core_menu_mini_menu > ul > li.core_mini_menu_profile .pulldown_contents_wrapper,
    html body .layout_page_header #core_menu_mini_menu > ul > li.core_mini_menu_profile .core_settings_dropdown {
      position: fixed !important;
      top: 3.5rem !important;
      right: 0.5rem !important;
      left: auto !important;
      width: 13rem !important;
      max-width: calc(100vw - 1rem) !important;
      margin: 0 !important;
      z-index: 10060 !important;
      border-radius: 0.625rem !important;
      box-shadow: 0 0.5rem 1.5rem rgba(0,0,0,0.15) !important;
      overflow: hidden !important;
    }

    /* li must be the badge anchor — overrides responsive.css position:inherit !important */
    html body .layout_page_header #core_menu_mini_menu > ul > li {
      position: relative !important;
    }
    /* Notification + message count badges — small overlay dot at top-right of icon */
    html body .layout_page_header .minimenu_update_count_bubble,
    html body .layout_page_header .minimenu_message_count_bubble {
      position: absolute !important;
      top: 0.25rem !important;
      right: 0 !important;
      left: auto !important;
      margin: 0 !important;
      min-width: 1rem !important;
      height: 1rem !important;
      line-height: 1rem !important;
      font-size: 0.5625rem !important;
      font-weight: 700 !important;
      padding: 0 0.1875rem !important;
      border-radius: 0.625rem !important;
      text-align: center !important;
      box-sizing: border-box !important;
    }

    /* Drawer: always below header */
    html body .layout_page_header .mobile_navigation .mobile_navigation_menu {
      top: 3.5rem !important;
      height: calc(100vh - 3.5rem) !important;
    }

    /* Hamburger: centred vertically */
    html body .layout_page_header .mobile_navigation .mobile_menu {
      top: 50% !important;
      transform: translateY(-50%) !important;
      left: 0.625rem !important;
      width: 2.25rem !important;
      height: 2.25rem !important;
    }
  }

  /* ═══════════════ SMALL PHONES ≤ 600px ═══════════════ */
  @media (max-width: 600px) {
    html body .layout_page_header .harmony_header {
      padding: 0 0.375rem !important;
    }
    html body .layout_page_header .harmony_header_inner {
      flex-direction: row !important;
      height: 3.25rem !important;
    }
    html body .layout_page_header .header_left {
      padding-left: 2.25rem !important;
    }
    html body .layout_page_header .header_right {
      margin: 0 !important;
      gap: 0.0625rem !important;
    }
    html body .layout_page_header .header_logo a img,
    html body .layout_page_header .header_logo_contrast img {
      max-height: 1.75rem !important;
    }
    html body .layout_page_header .header_search .search_mobile_btn {
      width: 2rem !important;
      height: 2rem !important;
    }
    html body .layout_page_header .layout_core_search_mini .core_search_form_wrap {
      top: 3.25rem !important;
    }
    html body .layout_page_header .mobile_navigation .mobile_navigation_menu {
      top: 3.25rem !important;
      height: calc(100vh - 3.25rem) !important;
    }
    html body .layout_page_header .mobile_navigation .mobile_menu {
      width: 2rem !important;
      height: 2rem !important;
      left: 0.375rem !important;
    }
    /* Shrink guest pill buttons on small phones */
    html body .layout_page_header #core_menu_mini_menu.minimenu_guest > ul > li > a.show_icons {
      padding: 0.3125rem 0.5rem !important;
    }
    html body .layout_page_header #core_menu_mini_menu.minimenu_guest > ul > li > a.show_icons > span._linktxt {
      font-size: 0.75rem !important;
    }
    html body .layout_page_header #core_menu_mini_menu > ul > li > a.show_icons {
      padding: 0.3125rem 0.3125rem !important;
    }
    /* All dropdowns at 3.25rem header height */
    html body .layout_page_header #core_mini_updates_pulldown .pulldown_contents_wrapper,
    html body .layout_page_header #core_menu_mini_menu > ul > li.core_mini_messages .pulldown_contents_wrapper,
    html body .layout_page_header #core_menu_mini_menu > ul > li.core_mini_menu_profile .pulldown_contents_wrapper,
    html body .layout_page_header #core_menu_mini_menu > ul > li.core_mini_menu_profile .core_settings_dropdown {
      top: 3.25rem !important;
    }
  }

  /* ═══════════════ VERY SMALL ≤ 400px ═══════════════ */
  @media (max-width: 400px) {
    html body .layout_page_header .header_logo a {
      font-size: 0.8125rem !important;
    }
    html body .layout_page_header .header_logo a img {
      max-height: 1.5rem !important;
    }
    /* On tiny screens: hide label, show guest icon-only buttons */
    html body .layout_page_header #core_menu_mini_menu.minimenu_guest > ul > li > a.show_icons > span._linktxt {
      display: none !important;
    }
    html body .layout_page_header #core_menu_mini_menu.minimenu_guest > ul > li > a.show_icons {
      flex-direction: column !important;
      padding: 0.3125rem 0.4375rem !important;
      border-radius: 0.5rem !important;
    }
    html body .layout_page_header #core_menu_mini_menu.minimenu_guest > ul > li > a.show_icons > i {
      font-size: 1rem !important;
    }
  }

  /* ═══════════════ HARMONY RESPONSIVE POLISH (ALL DEVICES) ═══════════════ */
  html body .layout_page_header .header_menu_mini {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-end !important;
    flex-wrap: nowrap !important;
    gap: 0.5rem !important;
  }
  html body .layout_page_header li.harmony_guest_auth_original {
    display: none !important;
  }
  html body .layout_page_header .harmony_guest_auth {
    position: relative;
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
  }
  html body .layout_page_header .harmony_guest_auth_trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.4375rem 0.75rem;
    border-radius: 999px;
    border: 1px solid var(--theme-border-color, #d0d7de);
    background: var(--theme-box-background-color, #fff);
    color: var(--theme-font-color, #1f2937);
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    white-space: nowrap;
  }
  html body .layout_page_header .harmony_guest_auth_trigger:hover,
  html body .layout_page_header .harmony_guest_auth.is-open .harmony_guest_auth_trigger {
    background: rgba(0, 0, 0, 0.04);
    color: var(--theme-font-color, #1f2937);
  }
  html body .layout_page_header .harmony_guest_auth_options {
    display: none;
    position: absolute;
    top: calc(100% + 0.375rem);
    right: 0;
    min-width: 10.5rem;
    background: var(--theme-box-background-color, #fff);
    border: 1px solid var(--theme-border-color, #e5e7eb);
    border-radius: 0.625rem;
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.14);
    padding: 0.375rem;
    flex-direction: column;
    gap: 0.25rem;
    z-index: 10070;
  }
  html body .layout_page_header .harmony_guest_auth.is-open .harmony_guest_auth_options {
    display: flex;
  }
  html body .layout_page_header .harmony_guest_auth_options a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    text-decoration: none;
    color: var(--theme-font-color, #1f2937);
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
  }
  html body .layout_page_header .harmony_guest_auth_options a:hover {
    background: rgba(0, 0, 0, 0.05);
  }

  html body .layout_page_header #core_menu_mini_menu > ul > li.core_mini_menu_accessibility a.show_icons i::before {
    content: "\f29a" !important;
    font-family: 'Font Awesome 6 Free' !important;
    font-weight: 900 !important;
    font-style: normal !important;
  }

  @media (min-width: 992px) {
    html body .layout_page_header .harmony_guest_auth_trigger {
      flex-direction: column !important;
      gap: 0.125rem !important;
      padding: 0.5rem 0.5rem 0.3125rem !important;
      border: 0 !important;
      border-radius: 0 !important;
      background: transparent !important;
      font-weight: normal !important;
    }
    html body .layout_page_header .harmony_guest_auth_trigger:hover,
    html body .layout_page_header .harmony_guest_auth.is-open .harmony_guest_auth_trigger {
      background: transparent !important;
      color: var(--theme-color, #2478e8) !important;
    }
    html body .layout_page_header .harmony_guest_auth_trigger > i:first-child {
      font-size: 1.125rem !important;
      min-height: 2.25rem !important;
      display: inline-flex !important;
      align-items: center !important;
      justify-content: center !important;
    }
    html body .layout_page_header .harmony_guest_auth_trigger > .harmony_guest_auth_label {
      display: inline-flex !important;
      align-items: center !important;
      gap: 0.25rem !important;
      font-size: 0.6875rem !important;
      line-height: 1.1 !important;
      white-space: nowrap !important;
    }
    html body .layout_page_header .harmony_header_inner {
      display: flex !important;
      align-items: center !important;
      justify-content: space-between !important;
      flex-wrap: nowrap !important;
      gap: 0.75rem !important;
    }
    html body .layout_page_header .header_left {
      display: flex !important;
      align-items: center !important;
      gap: 0.75rem !important;
      flex: 0 1 auto !important;
      min-width: 0 !important;
    }
    html body .layout_page_header .header_search {
      flex: 0 1 13.75rem !important;
      min-width: 7.5rem !important;
      max-width: 15rem !important;
    }
    html body .layout_page_header .header_right {
      display: flex !important;
      align-items: center !important;
      justify-content: flex-end !important;
      flex: 0 0 auto !important;
      gap: 0.5rem !important;
      min-width: 0 !important;
    }
    html body .layout_page_header .harmony_main_menu .navigation {
      display: flex !important;
      flex-wrap: nowrap !important;
      align-items: center !important;
      white-space: nowrap !important;
    }
    html body .layout_page_header .harmony_main_menu .navigation > li {
      flex: 0 0 auto !important;
    }
    html body .layout_page_header .harmony_main_menu .navigation > li > a {
      white-space: nowrap !important;
    }
  }

  @media (min-width: 992px) and (max-width: 1200px) {
    html body .layout_page_header .header_search {
      max-width: 10.5rem !important;
    }
    html body .layout_page_header .harmony_main_menu .navigation > li > a {
      padding-left: 0.625rem !important;
      padding-right: 0.625rem !important;
    }
  }

  @media (max-width: 991px) {
    html body .layout_page_header #core_menu_mini_menu > ul > li.core_mini_menu_accessibility > a > span._linktxt,
    html body .layout_page_header #core_menu_mini_menu_accessibility > a > span._linktxt {
      display: none !important;
    }
    html body .layout_page_header #core_menu_mini_menu > ul > li.core_mini_menu_accessibility,
    html body .layout_page_header #core_menu_mini_menu_accessibility {
      min-width: auto !important;
    }
    html body .layout_page_header #core_menu_mini_menu.minimenu_guest > ul > li.core_mini_menu_accessibility > a.show_icons,
    html body .layout_page_header #core_menu_mini_menu > ul > li.core_mini_menu_accessibility > a.show_icons {
      background: transparent !important;
      border-color: transparent !important;
      color: var(--theme-font-color, #1f2937) !important;
      padding: 0.3125rem !important;
    }
    html body .layout_page_header #core_menu_mini_menu.minimenu_guest > ul > li.core_mini_menu_accessibility > a.show_icons > i {
      color: var(--theme-font-color, #1f2937) !important;
    }
    html body .layout_page_header .harmony_guest_auth_trigger {
      padding: 0.375rem 0.625rem;
      font-size: 0.75rem;
    }
  }

  @media (max-width: 480px) {
    html body .layout_page_header .harmony_guest_auth_trigger > span,
    html body .layout_page_header .harmony_guest_auth_caret {
      display: none !important;
    }
    html body .layout_page_header .harmony_guest_auth_trigger {
      padding: 0.4375rem !important;
      border-radius: 50% !important;
    }
  }
