.portal_shell {
    display: flex;
    flex-direction: column;
    min-height: 100svh;
}

.portal_container {
    width: min(1304px, calc(100% - 48px));
    margin-inline: auto;
}

.portal_header {}

.header_inner {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding-bottom: 10px;
}

.header_logo {
    width: 225px;
    max-width: 100%;
    display: block;
}

.account_menu {
    position: relative;
}

.account_menu summary {
    display: flex;
    align-items: center;
    gap: 13px;
    cursor: pointer;
    list-style: none;
    padding: 15px 0;
}

.account_menu summary::-webkit-details-marker {
    display: none;
}

.account_menu summary>.bi-person-circle {
    color: #bdc6d1;
    font-size: 24px;
}

.account_chevron {
    font-size: 14px;
}

.account_dropdown {
    position: absolute;
    z-index: 5;
    top: 100%;
    right: 0;
    min-width: 240px;
    max-width: min(330px, 85vw);
    padding: 18px;
    border: 1px solid #646b74;
    border-radius: 10px;
    background: #22282e;
    box-shadow: 0 10px 30px #0007;
}

.account_dropdown p {
    font-size: 14px;
    overflow-wrap: anywhere;
    margin: 0 0 12px;
}

.account_sign_out {
    border: 0;
    border-radius: 6px;
    background: #ffffff0c;
    color: #f5f5f6;
    padding: 10px 14px;
    width: 100%;
    text-align: left;
}

.account_sign_out:hover {
    background: #ffffff18;
}

.account_dropdown .message {
    margin: 12px 0 0;
}

.portal_nav {
    background: linear-gradient(181deg, #343a4085, #363b4275);
    border-top: 1px solid #000000;
    border-bottom: 1px solid #000000;
}

.nav_inner {
    display: flex;


}

.nav_link {
    position: relative;
    width: 126px;
    min-height: 101px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 11px;
    background: transparent;
    border: 0;

    color: #f5f5f6;
    text-decoration: none;
    font-size: 17px;
}

.nav_link>i {
    font-size: 32px;
    line-height: 1;
}

.nav_link:not([aria-current='page']):not(:disabled):hover {
    background: #000000ab;
    color: white;
    text-decoration: none;
}

.nav_link[aria-current='page'] {
    background: #18191acc;
}

.nav_link::after {
    content: '';
    position: absolute;
    height: 6px;

    background: transparent;
    bottom: 0;
    left: 0;
    right: 0;
}

.nav_link:not([aria-current='page']):not(:disabled):hover::after {
    background: #90959d;
}

.nav_link[aria-current='page']::after {
    background: #f00914;
}

.nav_link[aria-current='page']:hover {
    color: #f5f5f6;
    text-decoration: none;
}

.nav_link:disabled {
    cursor: default;
    opacity: .45;
}

#shell_main {
    flex: 1;
    padding-block: 26px;
}

.section_panel {
    padding: 26px 30px;
}

.section_heading {
    border-bottom: 1px solid #ffffff25;
    padding-bottom: 18px;
}

.section_heading h1 {
    margin: 0 0 3px;
    font-size: clamp(18px, 4vw, 24px);
    line-height: 1.2;
    letter-spacing: -.7px;
}

#section_title:focus {
    outline: none;
}

.section_return {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 7px;
    font-size: 14px;
    text-decoration: none;
}

.section_return:hover {
    text-decoration: underline;
}

.section_content {
    min-height: 420px;
    padding-top: 24px;
}

.portal_footer {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    border-top: 1px solid #ffffff20;
    padding-block: 20px;
    font-size: 14px;
    color: #aeb7c3;
}

.loading_message {
    color: #bec7d1;
    padding: 25px 0;
}

.shell_error {
    padding: 30px;
}

.shell_error h1 {
    font-size: 28px;
}

.shell_error .primary_button {
    width: auto;
    padding-inline: 24px;
    display: inline-flex;
    margin-right: 18px;
    font-size: 18px;
}

.skip_link {
    position: fixed;
    z-index: 10;
    top: -80px;
    left: 20px;
    padding: 12px;
    background: #20262d;
}

.skip_link:focus {
    top: 10px;
}

@media (max-width: 600px) {
    .portal_container {
        width: calc(100% - 28px);
    }

    .header_inner {
        padding-inline: 0;
        gap: 16px;
        min-height: 80px;
    }

    .header_logo {
        width: 175px;
    }

    .account_menu summary {
        gap: 7px;
        font-size: 14px;
    }

    #header_user_name {
        max-width: 110px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .nav_inner {
        padding-inline: 0;
        gap: 5px;
    }

    .nav_link {
        width: 25%;
        font-size: 13px;
        min-height: 85px;
    }

    .nav_link>i {
        font-size: 27px;
    }

    .section_panel {
        padding: 22px 20px;
    }

    .section_content {
        min-height: 320px;
    }

    .portal_footer {
        flex-wrap: wrap;
    }
}