.nk-header .nk-menu-categories > .nk-menu-account-link {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 46px;
    min-width: 0;
    padding: 10px 14px;
    border: 1px solid transparent;
    border-radius: 10px;
    color: inherit;
    font-weight: 700;
    text-decoration: none;
}

.nk-header .nk-menu-account-link svg {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.nk-header .nk-menu-categories > .nk-menu-account-link--mail:hover {
    background: #eceafa;
    color: #413ac4;
}

.nk-header .nk-menu-categories > .nk-menu-account-link--profile {
    margin-block: 6px 2px;
    background: #4840cf;
    border-color: #4840cf;
    color: #fff;
}

.nk-header .nk-menu-categories > .nk-menu-account-link--profile:hover {
    background: #3931ad;
    border-color: #3931ad;
    color: #fff;
}

.nk-header .nk-menu-account-link:focus-visible {
    outline: 2px solid #746aff;
    outline-offset: 2px;
}

@media (max-width: 800px) {
    body.nk-portal .nk-header #nkNavigation:has(.nk-menu-account-link--mail) > .nk-inbox-trigger {
        display: none !important;
    }

    /* Section borders and chevrons belong to the accordion, not to the links. */
    body.nk-portal .nk-header #nkNavigation .nk-nav :is(a, summary),
    body.nk-portal .nk-header #nkNavigation .nk-nav :is(a, summary):is(:hover, :active, :focus, [aria-current]) {
        background: transparent !important;
        color: var(--ink, #24232e) !important;
        -webkit-text-fill-color: currentColor;
        border-inline: 0 !important;
        box-shadow: none !important;
        text-decoration: none !important;
    }

    body.nk-portal .nk-header #nkNavigation .nk-nav :is(a, summary)::before {
        display: none !important;
    }

    body.nk-portal .nk-header #nkNavigation .nk-nav > .nk-menu-account-link {
        display: flex !important;
        align-items: center;
        min-height: 44px;
        padding: 12px 14px !important;
        margin: 0;
        font-size: 14px !important;
        line-height: 1.4;
        font-weight: 700;
    }

    body.nk-portal .nk-header #nkNavigation .nk-nav :is(a, summary):focus-visible {
        outline: 2px solid var(--primary, #5865f2);
        outline-offset: -2px;
    }
}

/* Subject shortcuts are useful in the catalog, where the learner picks a subject. */
body.nk-portal [data-nk-toolbar]:is(.nk-lesson-toolbar, :has(.geo-reader-context)) :is(.nk-site-subjects, .nk-site-toolbar-utilities) {
    display: none !important;
}

body.nk-portal .nk-lesson-toolbar .nk-room-toolbar-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
    gap: .5rem 1rem;
}

body.nk-portal .nk-lesson-toolbar .nk-room-toolbar-inner > .nk-room-toolbar-actions {
    margin-inline-start: 0;
    justify-content: flex-start;
}

#nkgeo .geo-native-toolbar:has(.geo-reader-context) .nk-room-toolbar-inner {
    justify-content: flex-start;
}

#nkgeo .geo-native-toolbar .geo-reader-context {
    flex: 0 1 auto;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: .5rem 1rem;
}

#nkgeo .geo-native-toolbar .geo-reader-context .geo-context-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem;
    margin-inline-start: 0;
}

#nkgeo .geo-native-toolbar:has(.geo-reader-context) .nk-room-toolbar-actions {
    display: none;
}

/* General toolbar controls now live in the menu; lesson navigation stays in place. */
body.nk-portal .nk-site-toolbar:not(.nk-lesson-toolbar):not(:has(.geo-reader-context)){display:none!important}
body.nk-portal .nk-room-toolbar-actions [data-display-settings],
body.nk-portal .nk-site-toolbar-utilities [data-display-settings],
body.nk-portal .nk-header [data-display-settings]{display:none!important}
body.nk-portal .nk-site-toolbar-utilities{display:none!important}
body.nk-portal .nk-header .nk-inbox-trigger{display:none!important}
body.nk-portal .nk-header.nk-header-with-toolbar{margin-bottom:0!important}
body.nk-portal .nk-header .nk-menu-account-link--mail:hover{background:color-mix(in srgb,var(--primary,#4d55f7) 10%,var(--surface,#fff));color:var(--ink,#24232e)}
@media(max-width:800px){body.nk-portal .nk-header #nkNavigation .nk-nav>.nk-menu-account-link{gap:.75rem}body.nk-portal .nk-header .nk-mobile-account[data-login]{font-size:0}}

body.nk-portal .nk-header .nk-menu-categories>.nk-menu-account-link--profile{font-size:1rem;line-height:1.35;white-space:nowrap}

.nk-header .nk-menu-inbox-dot{width:8px;height:8px;background:var(--primary,#4d55f7);border-radius:50%;margin-inline-start:auto;flex:0 0 8px}.nk-header .nk-menu-inbox-dot[hidden]{display:none!important}

/* Public header account actions, matching the course navigation. */
body.nk-portal .nk-header .nk-site-utilities{display:flex!important;align-items:center;gap:16px;flex:0 0 auto;margin-inline-start:auto}
body.nk-portal .nk-header .nk-site-utilities>.nk-language-switcher{display:flex!important;visibility:visible!important;flex:0 0 auto}
body.nk-portal .nk-header .nk-header-account-actions{display:flex;align-items:center;gap:12px;flex:0 0 auto}
body.nk-portal .nk-header .nk-header-action{position:relative;display:inline-flex;align-items:center;justify-content:center;width:40px;height:44px;padding:0;border:0;border-radius:8px;background:transparent;color:var(--ink,#202236);text-decoration:none;box-shadow:none;flex:0 0 40px}
body.nk-portal .nk-header .nk-header-action svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
body.nk-portal .nk-header .nk-header-action:hover{color:var(--primary,#5865f2);background:var(--primary-soft,#eeedff)}
body.nk-portal .nk-header .nk-header-cart-count{position:absolute;top:0;right:0;min-width:17px;height:17px;padding:0 4px;border-radius:10px;background:var(--primary,#5865f2);color:#fff;font-size:10px;font-weight:700;line-height:17px;text-align:center}
body.nk-portal .nk-header .nk-header-cart-count[hidden]{display:none!important}
body.nk-portal .nk-header .nk-header-account{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:0 18px;border:1px solid var(--line,#d9d9ef);border-radius:9px;background:var(--surface,#fff);color:var(--ink,#202236);font-size:13px;font-weight:700;line-height:1.2;white-space:nowrap;text-decoration:none;box-shadow:none}
body.nk-portal .nk-header .nk-header-account:hover{border-color:var(--primary,#5865f2);color:var(--primary,#5865f2);background:var(--primary-soft,#eeedff)}
body.nk-portal .nk-header :is(.nk-header-action,.nk-header-account):focus-visible{outline:2px solid var(--primary,#5865f2);outline-offset:3px}
@media(max-width:1100px) and (min-width:801px){body.nk-portal .nk-header .nk-header-account-actions{gap:5px}body.nk-portal .nk-header .nk-site-utilities{gap:8px}body.nk-portal .nk-header .nk-header-account{padding-inline:12px}}
@media(max-width:800px){
 body.nk-portal .nk-header .nk-site-header-main .nk-header-row{height:auto;min-height:72px;flex-wrap:wrap;row-gap:8px;padding-block:10px}
 body.nk-portal .nk-header .nk-site-utilities{order:5;width:100%;justify-content:flex-end;gap:10px;margin-inline-start:0}
 body.nk-portal .nk-header .nk-header-account-actions{gap:6px}
 body.nk-portal .nk-header .nk-header-action{width:36px;flex-basis:36px;height:44px}
 body.nk-portal .nk-header .nk-header-account{min-height:44px;padding-inline:12px;font-size:12px}
 body.nk-portal .nk-header .nk-site-utilities>.nk-language-switcher{margin:0!important}
}
