/* The top bar (urbi/navigation.php): all rules scoped to #esNav, linked straight after the overlay. */

/* ── Bar ───────────────────────────────────────────────────────────── */
#esNav.navbar {
    background-color: var(--es-blue-800, #4265AF) !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    min-height: 56px;
    margin-bottom: 0;
    padding-top: 0;
    padding-bottom: 0;
    font-family: 'Poppins', system-ui, sans-serif;
}
#esNav .navbar-collapse { border-color: rgba(255,255,255,.10); box-shadow: none; }

/* Overflow containment — let the flex row shrink instead of stretching
   the document. (Keeps the page from scrolling horizontally / clipping
   the left of the strips below the bar.) */
#esNav > .container-fluid { min-width: 0; }
#esNav .navbar-collapse   { min-width: 0; }

/* ── Brand (logged-out: standalone white eCore panel) ───────────────── */
#esNav .navbar-brand {
    height: 56px;
    display: flex;
    align-items: center;
    padding: 0 18px;
    margin: 0;
    background-color: var(--es-white, #FFFFFF);      /* white brand panel */
    border: 1px solid var(--es-grey-300, #C7CCD4);   /* fallback */
    border: 1px solid color-mix(in srgb, var(--es-blue-900, #293F6D) 55%, #fff);  /* soft navy frame */
    box-shadow: none;
}
#esNav .es-wordmark {
    color: var(--es-blue-800, #4265AF);     /* e/u/b in nav-bar blue */
    font-weight: 600;
    font-size: 25px;
    letter-spacing: -.01em;
    vertical-align: middle;
}
#esNav .es-wordmark .es-orange { color: var(--es-orange-500, #FA650D); }

/* ── V8: brand pill (Home + eCore wordmark + eSuite-apps dropdown) ─────
   The Home shortcut and the eCore wordmark now live as the first pill in the
   nav track: the left portion links to Home, the caret opens the eSuite
   product family. A white chip so the blue-800 wordmark stays legible on the
   blue bar (blue-on-blue would vanish). */
#esNav #navBar > li.es-brand-pill { display: flex; align-items: center; margin-right: 4px; }
#esNav #navBar > li.es-brand-pill > a.es-brand-link,
#esNav #navBar > li.es-brand-pill > a.es-brand-caret {
    height: 36px;
    display: flex;
    align-items: center;
    background-color: var(--es-grey-50, #F1F2F7) !important;                                       /* fallback */
    background-color: color-mix(in srgb, var(--es-grey-50, #F1F2F7) 55%, var(--es-grey-100, #E1E6EB) 45%) !important;   /* resting: greyer step toward grey-100 when not in Home */
    color: var(--es-blue-800, #4265AF) !important;
    text-decoration: none;
    border-bottom: none !important;
    box-shadow: none !important;
    transition: opacity .14s ease, color .14s ease, background-color .14s ease;
}
/* in the Home area the pill lifts to pure white ("in use") */
#esNav #navBar > li.es-brand-pill.active > a.es-brand-link,
#esNav #navBar > li.es-brand-pill.active > a.es-brand-caret {
    background-color: var(--es-white, #FFFFFF) !important;
}
#esNav #navBar > li.es-brand-pill > a.es-brand-link {
    gap: 8px;
    padding: 0 8px 0 13px;
    border-radius: 999px 0 0 999px;                       /* left half of the pill */
}
#esNav #navBar > li.es-brand-pill > a.es-brand-caret {
    padding: 0 12px 0 9px;
    border-radius: 0 999px 999px 0;                       /* right half of the pill */
    border-left: 1px solid var(--es-grey-100, #E1E6EB);   /* hairline split */
}
#esNav #navBar > li.es-brand-pill > a.es-brand-link:hover,
#esNav #navBar > li.es-brand-pill > a.es-brand-link:focus,
#esNav #navBar > li.es-brand-pill > a.es-brand-caret:hover,
#esNav #navBar > li.es-brand-pill > a.es-brand-caret:focus,
#esNav #navBar > li.es-brand-pill.show > a.es-brand-caret {
    background-color: var(--es-grey-50, #F1F2F7) !important;                                       /* fallback */
    background-color: color-mix(in srgb, var(--es-grey-50, #F1F2F7) 55%, var(--es-grey-100, #E1E6EB) 45%) !important;   /* resting hue holds; feedback via opacity */
    opacity: .86;
}
/* in Home the pill is white — keep it white on hover too */
#esNav #navBar > li.es-brand-pill.active > a.es-brand-link:hover,
#esNav #navBar > li.es-brand-pill.active > a.es-brand-link:focus,
#esNav #navBar > li.es-brand-pill.active > a.es-brand-caret:hover,
#esNav #navBar > li.es-brand-pill.active > a.es-brand-caret:focus,
#esNav #navBar > li.es-brand-pill.active.show > a.es-brand-caret {
    background-color: var(--es-white, #FFFFFF) !important;
    opacity: .86;
}
#esNav .es-brand-home {
    font-size: 18px;
    color: var(--es-blue-800, #4265AF);                   /* navy by default */
    transition: color .14s ease;
}
#esNav #navBar > li.es-brand-pill > a.es-brand-link:hover .es-brand-home {
    color: var(--es-blue-900, #293F6D);                   /* dark navy on hover */
}
#esNav .es-brand-caret .es-caret { margin-left: 0; opacity: .75; font-size: 10px; }
/* eSuite-apps dropdown: white surface, navy labels, orange product letters */
#esNav .dropdown-menu.es-brand-menu {
    background-color: var(--es-white, #FFFFFF);
    border: 1px solid var(--es-grey-100, #E1E6EB);        /* hairline frame on white */
}
#esNav .es-brand-menu > li > a.dropdown-item { color: var(--es-blue-900, #293F6D) !important; }   /* navy labels */
#esNav .es-brand-menu > li > a.dropdown-item:hover,
#esNav .es-brand-menu > li > a.dropdown-item:focus {
    background-color: var(--es-grey-50, #F1F2F7) !important;   /* light hover highlight */
    color: var(--es-blue-900, #293F6D) !important;
}
#esNav .es-brand-menu .es-orange { color: var(--es-orange-500, #FA650D) !important; }
#esNav .es-brand-menu sup.es-orange { font-size: .62em; font-weight: 600; }

/* suppress Bootstrap's auto-generated caret — we use the explicit FA icon instead */
#esNav .navbar-nav > li > .dropdown-toggle::after { display: none; }

/* ── Primary nav links (flat; an area's toggle is a button) ────────── */
#esNav .navbar-nav { margin: 0; align-items: stretch; }
#esNav .navbar-nav > li > a,
#esNav .navbar-nav > li > button.nav-link {
    font-family: inherit;
    display: flex;
    align-items: center;
    height: 56px;
    padding: 0 11px;                             /* B: thinner (was 0 14px) */
    font-size: 14px;
    font-weight: 500;
    line-height: 18px;
    white-space: nowrap;                         /* FIX: no wrapping */
    color: rgba(255,255,255,.90) !important;   /* .82 was ~4.4:1 on blue-800; .90 clears AA */
    border-bottom: 3px solid transparent;
    transition: color .14s ease, background-color .14s ease;
}
#esNav .navbar-nav > li > a:hover,
#esNav .navbar-nav > li > a:focus,
#esNav .navbar-nav > li > button.nav-link:hover,
#esNav .navbar-nav > li > button.nav-link:focus,
#esNav .navbar-nav .show > .nav-link,
#esNav .navbar-nav .show > .nav-link:hover,
#esNav .navbar-nav .show > .nav-link:focus {
    color: #fff !important;
    background-color: rgba(255,255,255,.12) !important;
}
#esNav .navbar-nav > .active > .nav-link,
#esNav .navbar-nav > .active > .nav-link:hover,
#esNav .navbar-nav > .active > .nav-link:focus {
    color: #fff !important;
    font-weight: 600;
    background-color: transparent !important;
}
#esNav .navbar-nav > li > .nav-link .nav-text,
#esNav .navbar-nav > li > .nav-link .es-caret,
#esNav .navbar-nav > li > .nav-link img { vertical-align: middle; }
#esNav .es-caret { font-size: 9px; opacity: .7; margin-left: 3px; transition: transform var(--es-dur) var(--es-ease); }
#esNav .nav-link[aria-expanded="true"] .es-caret { transform: rotate(180deg); }
@media (prefers-reduced-motion: reduce) { #esNav .es-caret { transition: none; } }

/* ── Dropdown menus ────────────────────────────────────────────────── */
#esNav .dropdown-menu {
    background-color: var(--es-blue-900, #293F6D);
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 10px;
    box-shadow: var(--es-shadow-md, 0 8px 24px rgba(10,26,47,.22));
    margin-top: 0;
    padding: 6px;
    min-width: 200px;
    max-height: 80vh;                            /* C: tall "More" menu scrolls */
    overflow-y: auto;
}
#esNav .dropdown-menu > li > a,
#esNav .dropdown-menu > li > .dropdown-item {
    color: rgba(255,255,255,.85) !important;
    font-size: 13px;
    padding: 8px 12px;
    border-radius: 6px;
    white-space: nowrap;
}
#esNav .dropdown-menu > li > a:hover,
#esNav .dropdown-menu > li > a:focus,
#esNav .dropdown-menu > li > .dropdown-item:hover,
#esNav .dropdown-menu > li > .dropdown-item:focus {
    background-color: rgba(255,255,255,.12) !important;
    color: #fff !important;
}
#esNav .dropdown-menu > .active > a,
#esNav .dropdown-menu .dropdown-item.active {
    background-color: var(--es-aqua-700, #0673A1) !important;   /* aqua-500 gave white text only ~2.5:1 */
    color: #fff !important;
}
#esNav .dropdown-menu > li.disabled > a,
#esNav .dropdown-menu .dropdown-item.disabled { color: rgba(255,255,255,.38) !important; }
#esNav .dropdown-menu .divider,
#esNav .dropdown-menu .dropdown-divider { background-color: rgba(255,255,255,.10); border: none; height: 1px; margin: 6px 4px; }

/* C: section headers inside the consolidated "More" menu */
#esNav .dropdown-menu .dropdown-header {
    color: rgba(255,255,255,.68);   /* .5 was ~3.9:1 on blue-900; .68 clears AA for the small header */
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    padding: 6px 12px 2px;
    margin: 0;
}

/* ── Right-side links / icons ──────────────────────────────────────── */
#esNav #navRight { margin: 0; align-items: center; flex-shrink: 0; }   /* FIX: centre + never shrink utilities */
#esNav #navRight > li > a {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 9px 10px;                                    /* B: tighter (was 9px 12px) */
    font-size: 14px;
    font-weight: 500;
    line-height: 18px;
    white-space: nowrap;                                  /* FIX: no wrapping */
    border-radius: 8px;
    color: rgba(255,255,255,.90) !important;   /* .82 was ~4.4:1 on blue-800; .90 clears AA */
}
#esNav #navRight > li > a:hover,
#esNav #navRight > li > a:focus,
#esNav #navRight > .active > a {
    color: #fff !important;
    background-color: rgba(255,255,255,.12) !important;
}
#esNav #navRight .es-icon { font-size: 15px; vertical-align: middle; }
#esNav #navRight .nav-text { vertical-align: middle; }
#esNav #navAccount .fa-user-circle { color: var(--es-aqua-500, #00AEEF); }

/* FIX: utility icons become true 34×34 rounded buttons (≥ lg, when the
        bar is expanded). In the collapsed mobile menu they fall back to
        normal full-width links with their text labels. */
@media (min-width: 992px) {
    #esNav #navRight > li > a.es-iconbtn {
        width: 34px;
        height: 34px;
        padding: 0;
        justify-content: center;
        border-radius: 8px;
    }

    /* ── V6: primary nav as a recessed pill track ─────────────── */
    #esNav #navBar {
        align-self: center;                     /* 44px track centred in the 56px bar */
        align-items: center;
        margin-left: 8px;
        padding: 4px;
        background: rgba(0,0,0,.22);            /* recessed well */
        border-radius: 999px;
        box-shadow: inset 0 1px 3px rgba(0,0,0,.25);
    }

    /* The bar and its menus stretch to its full height, so the page's area can rise out of the track to meet what lies below */
    #esNav > .container-fluid,
    #esNav .navbar-collapse { align-self: stretch; align-items: stretch; min-height: 56px; }
    #esNav #navRight { align-self: center; }

    /* each area becomes a pill */
    #esNav #navBar > li > .nav-link {
        height: 36px;
        padding: 0 15px;
        border-radius: 999px;
        font-size: 13px;
        border-bottom: none !important;
    }

    #esNav #navBar > li > .nav-link:hover,
    #esNav #navBar > li > .nav-link:focus,
    #esNav #navBar .show > .nav-link,
    #esNav #navBar .show > .nav-link:hover,
    #esNav #navBar .show > .nav-link:focus {
        color: #fff !important;
        background-color: rgba(255,255,255,.12) !important;
    }
}

/* ── The current area's tab (from eMis; heights for URBI's 56px bar) ── */
#esNav #navBar > li.es-nav-current > .es-nav-tab,
#esNav #navBar > li.es-nav-current > .es-nav-tab:hover,
#esNav #navBar > li.es-nav-current > .es-nav-tab:focus,
#esNav #navBar > li.es-nav-current.show > .es-nav-tab {
    color: var(--navy-800) !important;
    background-color: var(--es-white) !important;
    font-weight: 600;
}
#esNav #navBar > li.es-nav-current > .es-nav-tab .es-caret { opacity: 1; }
@media (min-width: 992px) {
    /* Out of the track: from its top, past its bottom padding and edge, down to the bar's bottom edge */
    #esNav #navBar > li.es-nav-current { align-self: flex-start; margin-bottom: -10px; position: relative; z-index: 1; }
    #esNav #navBar > li.es-nav-current > .es-nav-tab {
        position: relative;
        height: 46px;
        padding: 0 16px 10px;
        border-radius: 18px 18px 0 0;
    }
    #esNav #navBar > li.es-nav-current > .es-nav-tab::before,
    #esNav #navBar > li.es-nav-current > .es-nav-tab::after {
        content: "";
        display: block;
        margin: 0;
        border: 0;
        position: absolute;
        bottom: 0;
        width: 12px;
        height: 12px;
        pointer-events: none;
    }
    #esNav #navBar > li.es-nav-current > .es-nav-tab::before { left: -12px; background: radial-gradient(circle at 0 0, transparent 12px, var(--es-white) 12.5px); }
    #esNav #navBar > li.es-nav-current > .es-nav-tab::after { right: -12px; background: radial-gradient(circle at 100% 0, transparent 12px, var(--es-white) 12.5px); }
}

/* ── The current area's tooltip ("Learners › Employers") ───────────── */
#esNav .es-nav-tip {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    padding: 6px 10px;
    border-radius: 6px;
    background: var(--navy-900);
    color: var(--es-white);
    box-shadow: var(--shadow-md);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.3;
    white-space: nowrap;
}
#esNav .es-nav-tip[hidden] { display: none; }

/* ── Every area menu: white under its item, the page ticked ───────── */
#esNav #navBar .dropdown-menu {
    min-width: 190px;
    margin-top: 0;
    padding: 4px 8px 8px;
    border: 0;
    border-top: 1px solid var(--grey-100);
    border-radius: 0 10px 10px 10px;
    background-color: var(--es-white);
    box-shadow: var(--shadow-md);
}
#esNav #navBar .dropdown-menu-end { border-radius: 10px 0 10px 10px; }
#esNav #navBar .dropdown-menu.show { animation: es-nav-menu-in var(--es-dur) var(--es-ease); }
@keyframes es-nav-menu-in { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { #esNav #navBar .dropdown-menu.show { animation: none; } }
#esNav #navBar .dropdown-menu > li > .dropdown-item {
    padding: 9px 12px;
    border-radius: 6px;
    color: var(--grey-700) !important;
    font-size: 13px;
    font-weight: 500;
}
#esNav #navBar .dropdown-menu > li > .dropdown-item:hover,
#esNav #navBar .dropdown-menu > li > .dropdown-item:focus {
    background-color: var(--blue-50) !important;
    color: var(--grey-700) !important;
}
#esNav #navBar .dropdown-menu > li > .dropdown-item.active,
#esNav #navBar .dropdown-menu > li > .dropdown-item[aria-current="page"] {
    background-color: var(--blue-50) !important;
    color: var(--navy-900) !important;
    font-weight: 600;
}
#esNav #navBar .dropdown-menu > li > .dropdown-item[aria-current="page"] { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
#esNav #navBar .dropdown-menu .es-nav-tick { font-size: 11px; color: var(--navy-900); }
#esNav #navBar .dropdown-menu .dropdown-divider { background-color: var(--grey-100); margin: 4px; }
#esNav #navBar .dropdown-menu .dropdown-header { color: var(--grey-700); }

/* mobile toggle */
#esNav .navbar-toggler { border: none; padding: 8px; align-self: center; }
#esNav .navbar-toggler .navbar-toggler-icon { filter: brightness(0) invert(1); }
#esNav .navbar-toggler:hover,
#esNav .navbar-toggler:focus { background-color: rgba(255,255,255,.15); box-shadow: none; }

/* ── Provider / contract pill (in the top bar, between account & log out) ── */
#esNav .es-cb-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    max-width: 300px;
    padding: 4px 12px;
    border-radius: 999px;
    background: transparent;
    color: rgba(255,255,255,.90);
    font-family: 'Poppins', system-ui, sans-serif;
    font-size: 12px;                /* the 12px floor (UP-044) */
    line-height: 1.2;
    white-space: nowrap;
    text-decoration: none;
    transition: color .14s ease;
}
#esNav .es-cb-pill:hover,
#esNav .es-cb-pill:focus-visible { color: #fff; }
#esNav .es-cb-pill-icon { color: #fff; flex-shrink: 0; font-size: 13px; }
#esNav .es-cb-pill-logo { display: block; flex-shrink: 0; width: auto; max-width: 96px; height: 28px; object-fit: contain; }
#esNav .es-cb-pill-logo-inverted { filter: grayscale(1) invert(1); mix-blend-mode: screen; }
/* Stack provider (line 1) over contract (line 2) */
#esNav .es-cb-pill-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
#esNav .es-cb-pill-provider {
    font-weight: 600;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}
#esNav .es-cb-pill-contract {
    color: rgba(255,255,255,.85);   /* .65 was ~3.4:1 on blue-800; .85 clears AA (hierarchy kept via weight) */
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}
#esNav .es-cb-pill-contract.es-ci-none { font-style: italic; }
#esNav button.es-cb-pill { border: 0; cursor: pointer; }
#esNav .es-cb-switcher { max-height: 70vh; overflow-y: auto; z-index: 1045; }   /* above the pin rail (1040) */
#esNav .es-cb-switcher form { margin: 0; }
/* The user menu (from eMis's §19): a navy panel of the account page and Log out. */
#esNav .es-user-menu { position: relative; display: flex; align-items: center; margin-left: var(--space-2, 8px); }
#esNav .es-user-menu-button { display: inline-flex; align-items: center; gap: var(--space-2, 8px); min-height: 32px; padding: 2px 12px 2px 2px; border: 0;
    border-radius: var(--radius-pill, 999px); background: rgba(255,255,255,.08); color: #fff; font: 600 13px 'Poppins', system-ui, sans-serif; cursor: pointer; }
#esNav .es-user-menu-button:hover, #esNav .es-user-menu-button[aria-expanded="true"] { background: rgba(255,255,255,.16); }
#esNav .es-user-menu-avatar .es-avatar { background: #fff; color: var(--es-blue-900, #293F6D); }
#esNav .es-user-menu-name { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#esNav .es-user-menu-chevron { font-size: 11px; transition: transform .12s cubic-bezier(.2,0,0,1); }
#esNav .es-user-menu-button[aria-expanded="true"] .es-user-menu-chevron { transform: rotate(180deg); }
#esNav .es-user-menu-panel { position: absolute; top: calc(100% + 6px); right: 0; z-index: 1045; min-width: 260px; max-width: min(320px, calc(100vw - 32px)); padding: 6px;
    background: var(--es-blue-900, #293F6D); border: 1px solid rgba(255,255,255,.12); border-radius: 10px; box-shadow: var(--es-shadow-md, 0 8px 24px rgba(10,26,47,.22)); }
#esNav .es-user-menu-panel[hidden] { display: none; }
#esNav .es-user-menu-who { display: flex; flex-direction: column; gap: 2px; margin: 0; padding: 8px 12px; color: #fff; font-size: 13px; }
#esNav .es-user-menu-full { font-weight: 600; overflow-wrap: anywhere; }
#esNav .es-user-menu-email { color: var(--text-on-navy-muted, rgba(255,255,255,.85)); font-size: 12px; overflow-wrap: anywhere; }
#esNav .es-user-menu-links { margin: 0; padding: 0; list-style: none; }
#esNav .es-user-menu-item { display: flex; align-items: center; gap: 9px; width: 100%; min-height: 32px; padding: 8px 12px; border: 0; border-radius: 6px;
    background: none; color: var(--text-on-navy-muted, rgba(255,255,255,.85)); font-size: 13px; text-align: left; text-decoration: none; white-space: nowrap; cursor: pointer; }
#esNav .es-user-menu-item:hover { background: rgba(255,255,255,.12); color: #fff; }
#esNav .es-user-menu-item[aria-current="page"] { background: var(--es-aqua-700, #0673A1); color: #fff; font-weight: 600; }
#esNav .es-user-menu-divider { margin: 6px 0; border: 0; border-top: 1px solid rgba(255,255,255,.14); opacity: 1; }
#esNav .es-user-menu-out { margin: 0; }
@media (max-width: 991.98px) {
    #esNav .es-user-menu-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
    #esNav .es-user-menu-chevron { display: none; }
}
#esNav .es-cb-switcher form > .dropdown-item {
    color: rgba(255,255,255,.85);
    font-size: 13px;
    padding: 8px 12px;
    border-radius: 6px;
    white-space: nowrap;
}
#esNav .es-cb-switcher form > .dropdown-item:hover,
#esNav .es-cb-switcher form > .dropdown-item:focus { background-color: rgba(255,255,255,.12); color: #fff; }
#esNav .es-cb-switcher form > .dropdown-item.active { opacity: 1; }
#esNav .es-cb-pill-change {
    flex-shrink: 0;
    margin-left: 6px;
    color: #fff;
    font-size: 12px;
}
/* Account avatar icon — white (matches the contract pill icons) */
#esNav #navAccount .es-icon { color: #fff; }

/* ── Priority-overflow nav ─────────────────────────────────────────────
   A top-level menu that has been folded into the "More" dropdown by the
   overflow script below. Only ever set at ≥ lg (the script no-ops on the
   collapsed mobile menu, so the hamburger always shows every item). */
#esNav #navBar > li.es-nav-hidden { display: none !important; }
/* The bell and the user menu share one navy pill at the end of the bar (eMis §19a); each opens its own panel, aligned to the pill. */
#esNav .es-user-pill { position: relative; display: flex; align-items: center; gap: 8px; width: max-content; height: 42px; margin-left: var(--space-2, 8px);
    padding: 0 14px 0 4px; border-radius: var(--radius-pill, 999px); background: var(--es-accent-press); }
#esNav .es-user-pill .es-bell,
#esNav .es-user-pill .es-user-menu { position: static; margin-left: 0; }
#esNav .es-user-pill .es-user-menu-button { padding: 0; background: transparent; }
#esNav .es-user-pill .es-user-menu-button:hover,
#esNav .es-user-pill .es-user-menu-button[aria-expanded="true"] { background: transparent; opacity: .86; }
@media (max-width: 991.98px) {
    #esNav .es-user-pill { margin: 8px 0; padding-right: 4px; }
    #esNav .es-user-pill .es-bell-panel,
    #esNav .es-user-pill .es-user-menu-panel { left: 0; right: auto; }
}
/* The notifications bell, left of the user menu. */
#esNav .es-bell { position: relative; display: flex; align-items: center; margin-left: var(--space-2, 8px); }
#esNav .es-bell-button { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; padding: 0; border: 0;
    border-radius: var(--radius-pill, 999px); background: #fff; color: var(--es-blue-800); font-size: 14px; line-height: 1; cursor: pointer; }
#esNav .es-bell-button:hover { opacity: .86; }
#esNav .es-bell.is-new .es-bell-button { box-shadow: 0 0 0 2px var(--es-red-700); }
#esNav .es-bell-count { position: absolute; top: -5px; right: -6px; z-index: 1; display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px;
    padding: 0 4px; border: 1.5px solid var(--es-accent-press); border-radius: var(--radius-pill, 999px); background: var(--es-red-700); color: #fff;
    font: 600 11px 'Poppins', system-ui, sans-serif; font-variant-numeric: tabular-nums; line-height: 1; }
#esNav .es-bell-count[hidden], #esNav .es-bell-panel[hidden], #esNav .es-bell-action[hidden], #esNav .es-bell-note[hidden] { display: none; }
#esNav .es-bell-panel { position: absolute; top: calc(100% + 6px); right: 0; z-index: 1045; width: min(360px, calc(100vw - 32px)); padding: 8px; background: #fff;
    border: 0.5px solid var(--es-grey-100); border-radius: 10px; box-shadow: var(--es-shadow-lg); color: var(--es-grey-700); text-align: left; }
#esNav .es-bell-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 4px 8px 8px; }
#esNav .es-bell-title { margin: 0; color: var(--es-blue-900); font: 600 13px 'Poppins', system-ui, sans-serif; }
#esNav .es-bell-action { padding: 4px 6px; border: 0; border-radius: 6px; background: none; color: var(--es-blue-800); font: 600 12px 'Poppins', system-ui, sans-serif;
    text-decoration: underline; cursor: pointer; }
#esNav .es-bell-note { margin: 0; padding: 12px 8px; color: var(--es-grey-700); font-size: 13px; }
#esNav .es-bell-list { max-height: min(60vh, 420px); margin: 0; padding: 0; overflow-y: auto; list-style: none; }
#esNav .es-bell-link { display: flex; flex-direction: column; gap: 2px; padding: 8px; border-radius: 6px; color: var(--es-grey-700); text-decoration: none; }
#esNav .es-bell-link:hover { background: var(--es-aqua-50); }
#esNav .es-bell-item.is-unread .es-bell-link { background: var(--es-grey-50); }
#esNav .es-bell-item.is-unread .es-bell-subject { color: var(--es-blue-900); font-weight: 600; }
#esNav .es-bell-subject { font-size: 13px; overflow-wrap: anywhere; }
#esNav .es-bell-meta { color: var(--es-grey-700); font-size: 12px; }
#esNav .es-bell-all { display: block; padding: 8px; color: var(--es-blue-800); font-size: 13px; text-align: center; }
