.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;
}
