.sidebar .sidebar-navigation .nav-section {
    border: 0;
    margin: 0;
    padding: .2rem 0;
}
.sidebar .sidebar-navigation .nav-section > .nav-root {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr) 12px;
    align-items: center;
    gap: .7rem;
    box-sizing: border-box;
    min-height: 42px;
    margin: 1px .5rem;
    padding: .65rem .875rem;
    border-left: 3px solid transparent;
    border-radius: 0;
    color: var(--text-sidebar, #bfc5cf);
    font-family: inherit;
    font-size: .8rem;
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: .025em;
    text-transform: none;
    text-decoration: none;
    opacity: 1;
}
.sidebar .sidebar-navigation .nav-root > i:first-child {
    width: 18px;
    font-size: 1rem;
    text-align: center;
}
.sidebar .sidebar-navigation .nav-root > span {
    min-width: 0;
}
.sidebar .sidebar-navigation .nav-root.active {
    border-left-color: var(--cetrex-cyan, var(--primary));
    background: rgba(8,171,227,.16);
    color: #fff;
}
.sidebar .sidebar-navigation .nav-group-items > a,
.sidebar .sidebar-navigation .nav-more > a,
.sidebar .sidebar-navigation .nav-more > summary {
    margin: 1px .5rem;
    padding: .55rem .875rem .55rem 1.75rem;
    border-left: 3px solid transparent;
    gap: .7rem;
}
.sidebar .sidebar-navigation .nav-group-items a.active {
    border-left-color: var(--cetrex-cyan, var(--primary));
}
.sidebar-navigation summary {
    list-style: none;
    cursor: pointer;
    user-select: none;
}
.sidebar-navigation summary::-webkit-details-marker {
    display: none;
}
.sidebar-navigation .nav-chevron {
    font-size: .65rem;
    transition: transform .15s ease;
}
.sidebar-navigation .nav-fold[open] > summary .nav-chevron {
    transform: rotate(90deg);
}
.sidebar-navigation summary:hover {
    color: #fff;
    background: rgba(255,255,255,.05);
}
.sidebar-navigation summary:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: -2px;
}
.sidebar-navigation .nav-more > summary {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .55rem 1.25rem;
    color: rgba(255,255,255,.55);
    font-size: .78rem;
}
.sidebar-navigation .nav-more-open,
.sidebar-navigation .nav-more[open] > summary .nav-more-closed {
    display: none;
}
.sidebar-navigation .nav-more[open] > summary .nav-more-open {
    display: inline;
}
.sidebar-navigation .nav-favorite {
    margin-left: auto;
    font-size: .55rem;
    color: #f59e0b;
}
.sidebar-navigation .nav-item-separator {
    border-color: rgba(255,255,255,.06);
    margin: 4px 20px;
}
.sidebar-navigation .nav-item-header {
    padding: 6px 20px 2px;
    font-size: .65rem;
    color: rgba(255,255,255,.4);
}

.mobile-nav-bar, #mobile-navigation:not([open]) { display:none; }
.mobile-nav-logo { display:flex; align-items:center; justify-content:center; min-width:0; height:44px; }
.mobile-nav-logo img { display:block; max-width:100%; max-height:32px; object-fit:contain; }
@media (max-width:1024px) {
    .mobile-nav-bar, #mobile-navigation { background:var(--sidebar-bg,#0f1115); color:#fff; }
    .mobile-nav-bar { position:fixed; inset:0 0 auto; height:56px; z-index:1000; display:grid; grid-template-columns:80px minmax(0,1fr) 80px; align-items:center; padding:0 8px; }
    .mobile-nav-bar strong { text-align:center; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
    .mobile-nav-bar button, .mobile-nav-heading button { background:transparent; color:inherit; border:0; min-height:44px; min-width:44px; }
    .mobile-nav-bar button:last-child { justify-self:end; }
    #mobile-navigation { position:fixed; inset:0 auto 0 0; margin:0; border:0; padding:0; width:min(336px,calc(100vw - 32px)); height:100dvh; max-height:none; max-width:none; overflow:auto; overscroll-behavior:contain; }
    #mobile-navigation::backdrop { background:rgba(0,0,0,.5); }
    body:has(#mobile-navigation[open]) { overflow:hidden; }
    .mobile-nav-heading { position:sticky; top:0; z-index:1; display:flex; align-items:center; justify-content:space-between; height:56px; padding:0 12px 0 24px; background:inherit; border-bottom:1px solid #ffffff24; }
    .mobile-nav-heading button { font-size:1.6rem; }
    #mobile-navigation .sidebar { position:static; display:flex; flex-direction:column; align-items:stretch; height:auto; width:100%; max-width:none; overflow:visible; box-shadow:none; }
    #mobile-navigation .brand { display:none!important; }
    #mobile-navigation .nav-section { display:block; }
    #mobile-navigation .sidebar a { width:auto; height:auto; min-height:44px; justify-content:start; }
    #mobile-navigation .sidebar a span { display:inline; }
    #mobile-navigation .sidebar .nav-section > .nav-root { display:grid; min-height:44px; }
    #mobile-navigation .nav-more > summary { min-height:44px; }
    body > .mobile-nav-bar ~ .main-content { width:100%; max-width:100%; margin-left:0; padding-top:72px; }
}

