:root {
    --site-sidebar-width: 58px;
}

:root.has-expanded-sidebar {
    --site-sidebar-width: 184px;
}

.site-shell {
    min-height: 100svh;
    display: grid;
    grid-template-columns: var(--site-sidebar-width) minmax(0, 1fr);
    position: relative;
    z-index: 1;
}

.site-sidebar {
    position: sticky;
    top: 0;
    height: 100svh;
    min-width: 0;
    padding: 12px 8px;
    display: grid;
    grid-template-rows: auto auto 1fr;
    align-content: start;
    gap: 10px;
    background: rgba(10, 10, 14, 0.74);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(18px);
    overflow: hidden;
}

.site-sidebar a,
.site-sidebar button {
    font: inherit;
    -webkit-tap-highlight-color: transparent;
}

.site-sidebar a:focus-visible,
.site-sidebar button:focus-visible {
    outline: 2px solid rgba(38, 200, 189, 0.66);
    outline-offset: 3px;
}

.site-sidebar button {
    border: 0;
    margin: 0;
    padding: 0;
    cursor: pointer;
}

.site-sidebar-brand,
.site-sidebar-toggle,
.site-side-nav a {
    width: 40px;
    height: 40px;
    min-width: 0;
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    align-items: center;
    justify-self: center;
    border-radius: 12px;
    color: #f1edf2;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid transparent;
    overflow: hidden;
    transition: width 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.site-sidebar-brand {
    color: #101018;
    background: linear-gradient(135deg, #26c8bd, #e5c776);
    font-weight: 800;
}

.site-sidebar-toggle {
    color: #d8d6df;
    background: rgba(255, 255, 255, 0.05);
}

.site-side-nav {
    display: grid;
    align-content: start;
    gap: 10px;
}

.site-nav-icon {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    font-size: 18px;
    line-height: 1;
}

.site-nav-label {
    min-width: 0;
    padding-right: 12px;
    color: inherit;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.12s ease;
}

.site-side-nav a:hover,
.site-side-nav a.is-active,
.site-sidebar-toggle:hover {
    border-color: rgba(38, 200, 189, 0.38);
    background: rgba(38, 200, 189, 0.16);
}

:root.has-expanded-sidebar .site-sidebar-brand,
:root.has-expanded-sidebar .site-sidebar-toggle,
:root.has-expanded-sidebar .site-side-nav a {
    width: 100%;
    justify-self: stretch;
}

:root.has-expanded-sidebar .site-nav-label {
    opacity: 1;
}

@media (max-width: 720px) {
    :root,
    :root.has-expanded-sidebar {
        --site-sidebar-width: 1fr;
    }

    .site-shell {
        grid-template-columns: 1fr;
    }

    .site-sidebar {
        position: fixed;
        inset: auto 0 0;
        height: 58px;
        padding: 8px 12px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        border-right: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        z-index: 30;
    }

    .site-sidebar-toggle {
        display: none;
    }

    .site-side-nav {
        display: flex;
        gap: 8px;
    }

    .site-sidebar-brand,
    .site-side-nav a,
    :root.has-expanded-sidebar .site-sidebar-brand,
    :root.has-expanded-sidebar .site-side-nav a {
        width: 40px;
        height: 40px;
        justify-self: center;
    }

    .site-nav-label,
    :root.has-expanded-sidebar .site-nav-label {
        opacity: 0;
        display: none;
    }
}
