.navbar.app-navbar {
    min-height: 68px;
    padding: .5rem 0 !important;
    border-bottom: 1px solid #dbe5ec;
    color: #17354b;
    background: rgba(255, 255, 255, .98) !important;
    box-shadow: 0 7px 22px rgba(16, 42, 67, .08);
}

.navbar.app-navbar .header-layout {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 0;
}

.navbar.app-navbar .navbar-brand {
    display: inline-flex;
    flex: 0 0 42px;
    align-items: center;
    gap: .55rem;
    min-width: 42px;
    margin: 0;
    color: #17354b !important;
    text-decoration: none;
}

.navbar.app-navbar .brand-logo {
    width: 2.35rem;
    height: 2.35rem;
    flex: 0 0 2.35rem;
    border-radius: 7px;
    object-fit: contain;
}

.navbar.app-navbar .app-brand-title {
    overflow: hidden;
    color: #193b58;
    font-size: .8rem;
    font-weight: 900;
    line-height: 1.5;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.header-primary-nav {
    display: flex;
    align-items: center;
    gap: .15rem;
    min-width: 0;
    flex: 1 1 auto;
    justify-content: flex-start;
    padding: .25rem;
    border: 1px solid #e2e8ee;
    border-radius: 7px;
    background: #f7f9fb;
}

.header-primary-nav a {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: .45rem .6rem;
    border-radius: 5px;
    color: #4b6072;
    font-size: .78rem;
    font-weight: 850;
    text-decoration: none;
    white-space: nowrap;
    transition: color .15s ease, background-color .15s ease, box-shadow .15s ease;
}

.header-primary-nav a:hover,
.header-primary-nav a:focus-visible {
    color: #0f6075;
    background: #edf5f7;
    outline: none;
}

.header-primary-nav a.is-active {
    color: #07586b;
    background: #fff;
    box-shadow: 0 1px 5px rgba(20, 72, 89, .13), inset 0 -3px #168299;
}

.navbar.app-navbar .header-spacer {
    min-width: .25rem;
}

.header-actions {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: .45rem;
}

.header-support-action,
.navbar.app-navbar .header-menu-toggle,
.navbar.app-navbar .account-menu__toggle {
    min-height: 42px;
    border: 1px solid #d5e1e8;
    border-radius: 7px;
    color: #375366;
    background: #fff;
    box-shadow: none;
}

.header-support-action {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .45rem .68rem;
    font-size: .76rem;
    font-weight: 850;
    text-decoration: none;
    white-space: nowrap;
}

.header-support-action:hover,
.header-support-action:focus-visible,
.header-support-action.is-active {
    border-color: #8cc6d2;
    color: #0c6478;
    background: #eef8fa;
    outline: none;
}

.header-support-action strong {
    display: grid;
    min-width: 1.35rem;
    height: 1.35rem;
    padding: 0 .25rem;
    place-items: center;
    border-radius: 999px;
    color: #fff;
    background: #c24135;
    font-size: .65rem;
    font-weight: 900;
}

.navbar.app-navbar .header-menu-toggle {
    display: grid;
    grid-template-columns: 20px auto;
    grid-template-rows: repeat(3, 2px);
    align-content: center;
    column-gap: .5rem;
    row-gap: 3px;
    width: auto;
    height: 42px;
    padding: 0 .68rem;
    cursor: pointer;
}

.navbar.app-navbar .header-menu-toggle > span {
    display: block;
    grid-column: 1;
    width: 20px;
    height: 2px;
    border-radius: 2px;
    background: #17677b;
}

.navbar.app-navbar .header-menu-toggle > b {
    grid-column: 2;
    grid-row: 1 / 4;
    align-self: center;
    color: #375366;
    font-size: .74rem;
    font-weight: 850;
    white-space: nowrap;
}

.navbar.app-navbar .header-menu-toggle:hover,
.navbar.app-navbar .header-menu-toggle:focus-visible {
    border-color: #8cc6d2;
    background: #eef8fa;
    outline: none;
}

.navbar.app-navbar .account-menu {
    margin: 0;
}

.navbar.app-navbar .account-menu__toggle {
    display: flex;
    width: auto;
    height: 42px;
    max-width: 190px;
    padding: .25rem .35rem .25rem .55rem;
    overflow: visible;
    align-items: center;
    gap: .45rem;
}

.account-menu__avatar {
    display: grid;
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    overflow: hidden;
    place-items: center;
    border-radius: 6px;
    color: #17677b;
    background: #e9f6f7;
}

.account-menu__avatar img,
.account-menu__avatar svg,
.account-menu__avatar-emoji {
    width: 100%;
    height: 100%;
}

.account-menu__avatar img {
    object-fit: cover;
}

.account-menu__avatar svg {
    width: 1.2rem;
    height: 1.2rem;
    fill: #17677b;
}

.account-menu__avatar-emoji {
    display: grid;
    place-items: center;
    font-size: 1.1rem;
    line-height: 1;
}

.account-menu__identity-copy {
    display: grid;
    min-width: 0;
    text-align: right;
}

.account-menu__identity-copy strong,
.account-menu__identity-copy small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.account-menu__identity-copy strong {
    color: #2b475b;
    font-size: .72rem;
    font-weight: 900;
}

.account-menu__identity-copy small {
    color: #8493a0;
    font-size: .6rem;
    font-weight: 700;
}

.account-menu__chevron {
    color: #738896;
    font-size: .8rem;
}

.navbar.app-navbar .account-menu__panel {
    top: calc(100% + .55rem);
    left: 0;
    min-width: 250px;
    border-radius: 8px;
}

.account-menu__push-toggle {
    width: 100%;
    border: 0;
    border-top: 1px solid #e5ebef;
    background: #f7fafb;
    color: #173c4d;
    padding: .7rem .75rem;
    text-align: right;
    cursor: pointer;
    display: grid;
    gap: .16rem;
}

.account-menu__push-toggle:hover,
.account-menu__push-toggle:focus-visible {
    background: #eaf7f8;
    color: #006f7b;
}

.account-menu__push-toggle > span {
    font-size: .82rem;
    font-weight: 900;
}

.account-menu__push-toggle > small {
    color: #70838e;
    font-size: .68rem;
    line-height: 1.6;
}

.account-menu__push-toggle.is-enabled {
    background: #edf8f2;
    color: #087443;
}

.account-menu__push-toggle.is-blocked {
    background: #fff5f2;
    color: #a63b24;
    cursor: default;
}

.account-menu__push-toggle[disabled] {
    opacity: .7;
    cursor: wait;
}

.account-menu__push-preferences {
    margin: 0;
    padding: .55rem .75rem .65rem;
    border: 0;
    border-top: 1px solid #e5ebef;
    background: #f7fafb;
    display: grid;
    gap: .3rem;
}

.account-menu__push-preferences[hidden] {
    display: none;
}

.account-menu__push-preferences legend {
    float: none;
    width: auto;
    margin: 0;
    padding: 0;
    color: #70838e;
    font-size: .7rem;
    font-weight: 800;
}

.account-menu__push-preferences label {
    display: flex;
    align-items: center;
    gap: .45rem;
    color: #173c4d;
    font-size: .78rem;
    cursor: pointer;
}

.account-menu__push-preferences input {
    accent-color: #006f7b;
}

@media (max-width: 1280px) {
    .header-primary-nav a {
        padding-inline: .42rem;
        font-size: .72rem;
    }

    .account-menu__identity-copy,
    .account-menu__chevron {
        display: none;
    }

    .navbar.app-navbar .account-menu__toggle {
        width: 42px;
        padding: .25rem;
    }
}

@media (max-width: 1050px) {
    .header-primary-nav {
        display: none;
    }

    .navbar.app-navbar .navbar-brand {
        flex: 1 1 auto;
    }
}

@media (max-width: 575.98px) {
    .navbar.app-navbar {
        min-height: 62px;
        padding: .4rem 0 !important;
    }

    .navbar.app-navbar .header-layout {
        gap: .4rem;
        padding-inline: .65rem;
    }

    .navbar.app-navbar .navbar-brand {
        min-width: 0;
    }

    .navbar.app-navbar .brand-logo {
        width: 2rem;
        height: 2rem;
        flex-basis: 2rem;
    }

    .navbar.app-navbar .app-brand-title {
        display: -webkit-box;
        overflow: hidden;
        font-size: .67rem;
        line-height: 1.4;
        white-space: normal;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

    .header-support-action {
        display: none;
    }

    .navbar.app-navbar .header-menu-toggle {
        grid-template-columns: 20px;
        width: 42px;
        padding: 0;
        place-content: center;
    }

    .navbar.app-navbar .header-menu-toggle > b {
        display: none;
    }
}
