
        /* Navigation Icon-Text Pairing Logic */
        @media (min-width: 981px) {
            .nav-text { display: inline !important; }
        }
        @media (max-width: 980px) {
            .nav-text { display: block !important; font-size: 10px !important; line-height: 1.15 !important; white-space: nowrap !important; }
            .header-center .nav-btn {
                flex-direction: column !important;
                gap: 3px !important;
                font-size: 10px !important;
                min-width: 48px !important;
                padding: 4px 8px !important;
                white-space: nowrap !important;
            }
            .header-center .nav-btn i:not(.fa-caret-down) { margin-right: 0 !important; font-size: 12px !important; display: block !important; }
        }

        /* Ensure all navigator buttons are in a SINGLE ROW - no wrapping */
        .header-center {
            display: flex !important;
            flex-direction: row !important;
            flex-wrap: nowrap !important;
            align-items: center !important;
            overflow: visible !important;
            z-index: 10001 !important;
            position: relative !important;
            isolation: auto !important; /* Don't create new stacking context */
        }
        @media (min-width: 993px) {
            #headerSecondRow,
            .header-center {
                justify-content: center !important;
            }
            .header-center {
                gap: 12px !important;
                width: auto !important;
                min-width: 0 !important;
                max-width: none !important;
            }
            .header-center .nav-item {
                flex-shrink: 0 !important;
                flex-grow: 0 !important;
                width: auto !important;
            }
        }
        @media (max-width: 992px) {
            .header-center {
                justify-content: stretch !important;
                gap: 0 !important;
                width: 100% !important;
                min-width: 0 !important;
                max-width: 100% !important;
            }
            .header-center .nav-item {
                flex: 1 1 0 !important;
                flex-grow: 1 !important;
                flex-shrink: 1 !important;
                min-width: 0 !important;
                width: auto !important;
                max-width: none !important;
            }
        }
        /* Override any responsive CSS that might cause wrapping */
        @media (max-width: 1200px) {
            .header-center {
                flex-wrap: nowrap !important;
            }
            .header-center .nav-item {
                display: inline-flex !important;
                flex-wrap: nowrap !important;
            }
        }
        .header-center .nav-item {
            display: inline-flex !important;
            flex-direction: row !important;
            flex-wrap: nowrap !important;
            align-items: center !important;
            justify-content: center !important;
            height: auto !important;
            margin: 0 !important;
            padding: 0 !important;
            vertical-align: middle !important;
            visibility: visible !important;
            opacity: 1 !important;
            white-space: nowrap !important;
            position: relative !important; /* Ensure nav-item can contain absolute positioned dropdown */
        }
        
            /* Ensure dropdowns are visible on hover and above everything */
        /* Exclude Impact and Regions from the position:fixed rule to avoid misalignment */
        .header-center .nav-item:not(.impact-dropdown-container):not(.regions-dropdown-container):hover .nav-item-grid {
            display: block !important;
            visibility: visible !important;
            opacity: 1 !important;
            pointer-events: auto !important;
            z-index: 999999 !important;
            position: fixed !important; /* Fixed to escape containers for Profile/Guest */
        }
        
        /* Force dropdown to appear above all other elements */
        .header-center .nav-item:last-child {
            z-index: 999999 !important;
            position: relative !important;
        }
        .header-center .nav-btn {
            display: inline-flex !important;
            align-items: center !important;
            justify-content: center !important;
            vertical-align: middle !important;
            line-height: 1.1 !important;
            height: auto !important;
            padding: 2px 6px !important;
            margin: 0 !important;
            visibility: visible !important;
            opacity: 1 !important;
            color: #0F1111 !important;
            text-decoration: none !important;
            font-size: 12px !important;
            font-weight: 500 !important;
            white-space: nowrap !important;
        }
        .header-center .nav-btn:hover {
            color: #007bff !important;
        }
        
         /* Ensure navigation stays on a single horizontal line */
         .header-center {
             flex-wrap: nowrap !important;
             overflow-x: auto !important; /* Allow horizontal scroll if needed */
             scrollbar-width: none !important;
             -ms-overflow-style: none !important;
             background: transparent !important;
             border: none !important;
         }
         .header-center::-webkit-scrollbar {
             display: none !important;
             width: 0 !important;
             height: 0 !important;
         }
         .header-center .nav-item,
         .header-center .nav-btn {
             flex: 0 0 auto !important;
             white-space: nowrap !important;
             background: transparent !important;
             border: none !important;
             box-shadow: none !important;
         }
         
         /* Additional fixes to keep navigation on a single row */
         .header-second-row .header-center {
             width: 100% !important;
             flex-shrink: 0 !important;
         }
         
         .header-second-row {
             scrollbar-width: none !important;
             -ms-overflow-style: none !important;
         }
         .header-second-row::-webkit-scrollbar {
             display: none !important;
         }
 
         /* Remove unwanted pseudo-elements and borders */
         #navigator-container > *::before,
         #navigator-container > *::after {
             content: none !important;
             display: none !important;
         }
         #smartphoneLauncherWrapper {
             border: none !important;
             outline: none !important;
             background: transparent !important;
             box-shadow: none !important;
             margin: 0 !important;
             padding: 0 !important;
         }
         #sidebarToggleBtn {
             border: none !important;
             outline: none !important;
             background: transparent !important;
             box-shadow: none !important;
             padding: 0 !important;
             /* Allow margin-left to be set separately */
         }
         
         /* Desktop navigator — centered row (no negative offset; it hid items off-screen) */
         @media (min-width: 981px) {
         #navigator-container {
             gap: 12px !important;
             margin-left: 0 !important;
             justify-content: center !important;
         }
         }
         /* Smartphone wrapper stays, but header hamburger is removed (sidebar is opened from LEFT UFO hamburger) */
         #smartphoneLauncherWrapper { margin-right: 0 !important; padding-right: 0 !important; }
         
         /* Hide the "close phone" button when smartphone launcher is in header navigation */
         #navigator-container #homeBtnContainer,
         #navigator-container #homeBtn,
         #smartphoneLauncherWrapper #homeBtnContainer,
         #smartphoneLauncherWrapper #homeBtn {
             display: none !important;
             visibility: hidden !important;
             opacity: 0 !important;
             height: 0 !important;
             width: 0 !important;
             overflow: hidden !important;
             margin: 0 !important;
             padding: 0 !important;
         }
         
         /* Ensure smartphone icon button is properly sized and doesn't cause overflow */
         #smartphoneLauncherWrapper {
             overflow: visible !important;
             overflow-x: visible !important;
             overflow-y: visible !important;
             height: auto !important;
             min-height: auto !important;
             max-height: none !important;
         }
         
         /* Remove scrollbars from navigator container */
         #navigator-container {
             overflow: visible !important;
             overflow-x: visible !important;
             overflow-y: visible !important;
         }
         
         /* Hide scrollbars if they appear */
         #navigator-container::-webkit-scrollbar {
             display: none !important;
             width: 0 !important;
             height: 0 !important;
         }
         #navigator-container {
             -ms-overflow-style: none !important;
             scrollbar-width: none !important;
         }
         /* App launcher button removed from header */
         
        /* MOBILE HEADER RESTRUCTURE (Hamburger - Navigator - Rocket) */
        @media (max-width: 992px) {
            .header-second-row {
                justify-content: center !important; /* Center the container */
                padding: 0 2px 4px 0 !important;
            }
            
            /* NAVIGATOR CONTAINER: equal-width tab row on first paint */
            #navigator-container {
                margin: 0 auto !important;
                flex-grow: 1 !important;
                justify-content: stretch !important;
                position: relative !important;
                padding: 0 !important;
                gap: 0 !important;
                width: 100% !important;
            }

            #navigator-container .nav-item:not(.at-nav-mobile-only) {
                flex: 1 1 0 !important;
                min-width: 0 !important;
            }

            /* LEFT ANCHOR: Hamburger */
            #headerHamburgerRow2 {
                position: absolute !important;
                left: 0 !important;
                top: 50% !important;
                transform: translateY(-50%) !important;
                margin: 0 !important;
                z-index: 10010 !important;
                order: unset !important; /* CSS order irrelevant now */
            }



            /* Ensure Buttons are on edges (Legacy override) */
            .mobile-header-btn-inline {
                position: absolute !important; /* Enforce absolute */
            }
        }

          /* FORCE HOVER FOR IMPACT & REGIONS DROPDOWNS */
          .impact-dropdown-container:hover .impact-dropdown,
          .regions-dropdown-container:hover .regions-dropdown {
              visibility: visible !important;
              opacity: 1 !important;
              transform: translateY(0) !important;
              display: flex !important;
              z-index: 9999999 !important;
              pointer-events: auto !important;
              position: absolute !important;
          }
          .impact-dropdown { top: 100% !important; }
          .regions-dropdown { top: 100% !important; }
        