.site-menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    align-content: center;
    justify-items: center;
    gap: 5px;
    margin-right: -12px;
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 9px;
    background: rgba(255,255,255,.1);
    cursor: pointer;
    transition: background-color .2s ease, transform .2s ease;
}

.site-menu-toggle:hover {
    background: rgba(255,255,255,.2);
    transform: translateY(-1px);
}

.site-menu-toggle span {
    width: 19px;
    height: 2px;
    border-radius: 2px;
    background: white;
}

.site-menu-toggle:focus-visible,
.site-menu-close:focus-visible,
.site-drawer-link:focus-visible,
.site-drawer-auth:focus-visible {
    outline: 3px solid #ffd43b;
    outline-offset: 3px;
}

.site-menu-backdrop {
    position: fixed;
    inset: 0;
    z-index: 300;
    background: rgba(9, 20, 43, .56);
}

.site-menu-backdrop:not([hidden]) {
    animation: site-menu-backdrop-in .2s ease both;
}

.site-account-drawer {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 301;
    display: flex;
    width: min(350px, 90vw);
    height: 100vh;
    height: 100dvh;
    flex-direction: column;
    gap: 16px;
    overflow-y: auto;
    padding: 22px 18px;
    background: #fff;
    box-shadow: 12px 0 35px rgba(9, 20, 43, .2);
    transform: translateX(-105%);
    visibility: hidden;
    transition: transform .24s cubic-bezier(.2, .8, .2, 1), visibility .24s ease;
}

html.theme-dark .site-account-drawer {
    background: #111d31;
    color: #e5edf7;
}

html.theme-dark .site-drawer-header,
html.theme-dark .site-drawer-profile strong {
    color: #e5edf7;
}

html.theme-dark .site-menu-close {
    background: #26364e;
    color: #e5edf7;
}

html.theme-dark .site-drawer-profile {
    border-color: #334258;
    background: #192638;
}

html.theme-dark .site-drawer-profile small,
html.theme-dark .site-drawer-section h2 {
    color: #aab8ca;
}

html.theme-dark .site-drawer-link {
    border-color: #425572;
    background: #1b2b43;
    color: #dce7f5;
}

html.theme-dark .site-drawer-link:nth-of-type(4n + 2) {
    border-color: #31635b;
    background: #16332f;
    color: #a5e8dc;
}

html.theme-dark .site-drawer-link:nth-of-type(4n + 3) {
    border-color: #80652c;
    background: #3a2f1e;
    color: #f3d48f;
}

html.theme-dark .site-drawer-link:nth-of-type(4n + 4) {
    border-color: #5f4b83;
    background: #2b2340;
    color: #d5c1ff;
}

html.theme-dark .site-drawer-link:hover {
    border-color: #7188bf;
    background: #223450;
    color: #fff;
    box-shadow: 0 6px 15px rgba(0, 0, 0, .24);
}

html.theme-dark .site-drawer-status {
    background: #3a2a19;
    color: #f5c984;
}

.site-account-drawer.is-open {
    transform: translateX(0);
    visibility: visible;
}

.site-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #101c3a;
    font-family: "Manrope", sans-serif;
    font-size: 19px;
}

.site-menu-close {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border: 0;
    border-radius: 9px;
    background: #edf2ff;
    color: #101c3a;
    font-size: 25px;
    cursor: pointer;
}

.site-drawer-profile {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 12px;
    border: 1px solid #dfe6f3;
    border-radius: 10px;
    background: #f7f9ff;
}

.site-drawer-profile[hidden],
.site-drawer-status[hidden] {
    display: none;
}

.site-drawer-avatar {
    display: grid;
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 50%;
    background: #e7edff;
    color: #315cf5;
    font-weight: 800;
}

.site-drawer-profile strong,
.site-drawer-profile small {
    display: block;
}

.site-drawer-profile strong {
    color: #101c3a;
    font-size: 13px;
}

.site-drawer-profile small {
    margin-top: 3px;
    color: #7b8498;
    font-size: 11px;
}

.site-drawer-status {
    padding: 10px;
    border-radius: 8px;
    background: #fff3e5;
    color: #8d5211;
    font-size: 12px;
    line-height: 1.5;
}

.site-drawer-section {
    display: grid;
    gap: 8px;
}

.site-drawer-section h2 {
    margin: 0 0 2px;
    color: #7b8498;
    font-family: "DM Sans", sans-serif;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.site-drawer-link {
    display: flex;
    min-height: 43px;
    align-items: center;
    padding: 10px 12px;
    border: 1px solid #a9bcff;
    border-left-width: 4px;
    border-radius: 9px;
    background: #f2f5ff;
    color: #2749c7;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background-color .2s ease;
}

.site-drawer-link:nth-of-type(4n + 2) {
    border-color: #9ee5d4;
    background: #ebfaf7;
    color: #087a67;
}

.site-drawer-link:nth-of-type(4n + 3) {
    border-color: #f4d18a;
    background: #fff7e9;
    color: #93600c;
}

.site-drawer-link:nth-of-type(4n + 4) {
    border-color: #d1b7ff;
    background: #f6f0ff;
    color: #6636ad;
}

.site-drawer-link:nth-of-type(4n + 5) {
    border-color: #a9bcff;
    background: #f2f5ff;
    color: #2749c7;
}

.site-drawer-link:hover {
    border-color: #647fe8;
    background: #e6ecff;
    box-shadow: 0 6px 15px rgba(49, 92, 245, .13);
    transform: translateX(4px);
}

.site-account-drawer.is-open .site-drawer-link {
    animation: site-menu-option-in .28s ease both;
}

.site-drawer-link:nth-of-type(1) { animation-delay: .02s; }
.site-drawer-link:nth-of-type(2) { animation-delay: .04s; }
.site-drawer-link:nth-of-type(3) { animation-delay: .06s; }
.site-drawer-link:nth-of-type(4) { animation-delay: .08s; }
.site-drawer-link:nth-of-type(5) { animation-delay: .10s; }
.site-drawer-link:nth-of-type(6) { animation-delay: .12s; }
.site-drawer-link:nth-of-type(7) { animation-delay: .14s; }
.site-drawer-link:nth-of-type(8) { animation-delay: .16s; }
.site-drawer-link:nth-of-type(9) { animation-delay: .18s; }
.site-drawer-link:nth-of-type(10) { animation-delay: .20s; }

.site-drawer-auth {
    width: 100%;
    margin-top: auto;
    padding: 12px;
    border: 1px solid #315cf5;
    border-radius: 9px;
    background: #315cf5;
    color: #fff;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    text-align: center;
    cursor: pointer;
    transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease;
}

.site-drawer-section[hidden] {
    display: none;
}

.site-drawer-auth:hover {
    background: #244bd2;
    box-shadow: 0 5px 14px rgba(49, 92, 245, .2);
    transform: translateY(-1px);
}

.site-drawer-auth.is-logout {
    border-color: #f1dada;
    background: #fff7f7;
    color: #b33a3a;
}

.site-drawer-auth.is-logout:hover {
    background: #ffeded;
    box-shadow: 0 5px 14px rgba(179, 58, 58, .12);
}

body.site-drawer-open {
    overflow: hidden;
}

@keyframes site-menu-option-in {
    from { opacity: 0; filter: blur(2px); }
    to { opacity: 1; filter: blur(0); }
}

@keyframes site-menu-backdrop-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .site-menu-toggle,
    .site-menu-backdrop,
    .site-account-drawer,
    .site-drawer-link,
    .site-drawer-auth {
        animation: none !important;
        transition: none !important;
    }
}
