.shell {
    display: grid;
    min-height: 100vh;
    grid-template-columns: 308px 1fr;
    gap: 22px;
    padding: 22px;
    align-items: start;
    transition: grid-template-columns .24s ease;
}
.shell.is-collapsed {
    grid-template-columns: 92px 1fr;
}
.sidebar {
    position: sticky;
    top: 22px;
    height: calc(100vh - 44px);
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 18px;
    border-radius: 34px;
    background:
        radial-gradient(circle at top right, rgba(255, 97, 15, 0.20), transparent 28%),
        linear-gradient(180deg, #1f1c29 0%, #17151f 100%);
    color: #f6f1ff;
    box-shadow: 0 28px 70px rgba(20, 14, 42, 0.28);
    overflow: visible;
    transition: padding .24s ease, border-radius .24s ease;
}
.shell.is-collapsed .sidebar {
    padding: 16px 12px;
    border-radius: 30px;
}
.sidebar-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}
.sidebar-brand {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-width: 0;
    color: inherit;
    text-decoration: none;
    border-radius: 18px;
    outline: none;
    transition: background .18s ease, box-shadow .18s ease, transform .18s ease;
}
.sidebar-brand:hover {
    background: rgba(255,255,255,0.06);
    transform: translateY(-1px);
}
.sidebar-brand:focus-visible {
    box-shadow: 0 0 0 3px rgba(5,191,224,0.28);
}
.sidebar-brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    overflow: hidden;
    flex: 0 0 auto;
}
.sidebar-brand-mark img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 7px;
    background: transparent;
}
.sidebar-brand-copy {
    min-width: 0;
}
.sidebar h1 {
    font-size: 20px;
    line-height: 1.05;
    margin: 0;
    color: #fff8ff;
}
.sidebar p {
    color: rgba(236, 226, 255, 0.74);
    font-size: 13px;
    line-height: 1.55;
    margin: 8px 0 0;
}
.sidebar-toggle {
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 14px;
    background: rgba(255,255,255,0.08);
    color: #fff7ff;
    font: inherit;
    font-size: 20px;
    cursor: pointer;
    display: inline-grid;
    place-items: center;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
    transition: background .18s ease, transform .18s ease;
}
.sidebar-toggle:hover {
    background: rgba(255,255,255,0.16);
    transform: translateY(-1px);
}
.shell.is-collapsed .sidebar-brand-copy {
    display: none;
}
.nav {
    margin-top: 4px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-right: 6px;
    margin-right: -6px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.18) transparent;
}
.nav::-webkit-scrollbar {
    width: 8px;
}
.nav::-webkit-scrollbar-track {
    background: transparent;
}
.nav::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.16);
    border-radius: 999px;
}
.nav::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,0.24);
}
.nav-search {
    position: sticky;
    top: 0;
    z-index: 4;
    padding-bottom: 8px;
    background: linear-gradient(180deg, #1f1c29 0%, rgba(31, 28, 41, 0.92) 72%, rgba(31, 28, 41, 0));
}
.nav-search input {
    width: 100%;
    min-height: 42px;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 16px;
    background: rgba(255,255,255,0.08);
    color: #fff8ff;
    padding: 10px 12px;
    font: inherit;
    outline: none;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.03);
}
.nav-search input::placeholder {
    color: rgba(236, 226, 255, 0.58);
}
.nav-search input:focus {
    border-color: rgba(5,191,224,0.58);
    background: rgba(255,255,255,0.11);
    box-shadow: 0 0 0 3px rgba(5,191,224,0.16);
}
.nav-search-status {
    margin-top: 7px;
    color: rgba(236, 226, 255, 0.70);
}
.nav-group.is-search-hidden,
.nav-group-items a.is-search-hidden {
    display: none !important;
}
.nav-group.is-searching .nav-group-items {
    display: block;
}
.shell.is-collapsed .nav-search {
    display: none;
}
.nav-group {
    position: relative;
}
.nav-group-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border: 0;
    border-radius: 18px;
    background: rgba(255,255,255,0.03);
    color: #f6f1ff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    text-align: left;
    transition: background .18s ease, transform .18s ease, border-color .18s ease;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.05);
}
.nav-group-toggle:hover,
.nav-group.is-open .nav-group-toggle,
.nav-group.is-active .nav-group-toggle {
    background: rgba(255,255,255,0.08);
    transform: translateY(-1px);
}
.nav-group-toggle::after {
    content: "▾";
    font-size: 11px;
    opacity: 0.74;
    transition: transform .18s ease, opacity .18s ease;
}
.nav-group.is-open .nav-group-toggle::after {
    transform: rotate(180deg);
    opacity: 1;
}
.nav-group-head {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex: 1 1 auto;
}
.nav-group-icon {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    display: inline-grid;
    place-items: center;
    background: rgba(255,255,255,0.06);
    color: #fff8ff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    flex: 0 0 auto;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
}
.nav-group-meta {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.nav-group-meta strong {
    display: block;
    font-size: 14px;
    line-height: 1.15;
    color: #fff8ff;
}
.nav-group-meta span {
    display: block;
    color: rgba(236, 226, 255, 0.68);
    font-size: 12px;
    line-height: 1.35;
}
.nav-group-items {
    display: none;
    margin-top: 8px;
    margin-left: 18px;
    padding-left: 18px;
    border-left: 1px solid rgba(255,255,255,0.08);
}
.nav-group.is-open .nav-group-items {
    display: block;
}
.nav a {
    display: block;
    padding: 10px 12px;
    margin: 6px 0;
    border-radius: 12px;
    color: rgba(246, 241, 255, 0.86);
    background: transparent;
    transition: background .18s ease, color .18s ease, transform .18s ease;
}
.nav a.active,
.nav a:hover {
    background: rgba(255,255,255,0.09);
    color: #fff;
    transform: translateX(2px);
}
.nav-group-panel {
    display: none;
    position: absolute;
    left: calc(100% + 14px);
    top: 0;
    width: 292px;
    padding: 16px;
    border-radius: 24px;
    background: rgba(23, 21, 31, 0.97);
    color: #f6f1ff;
    box-shadow: 0 28px 70px rgba(20, 14, 42, 0.32);
    border: 1px solid rgba(255,255,255,0.08);
    z-index: 55;
}
.nav-group-panel strong {
    display: block;
    margin-bottom: 4px;
    font-size: 15px;
}
.nav-group-panel p {
    margin: 0 0 12px;
    color: rgba(236, 226, 255, 0.68);
    font-size: 12px;
    line-height: 1.5;
}
.nav-group-panel-links {
    display: grid;
    gap: 6px;
}
.nav-group-panel-links a {
    margin: 0;
    background: rgba(255,255,255,0.04);
}
.shell.is-collapsed .nav-group-toggle {
    padding: 10px;
    justify-content: center;
}
.shell.is-collapsed .nav-group-toggle::after,
.shell.is-collapsed .nav-group-meta,
.shell.is-collapsed .nav-group-items {
    display: none !important;
}
.shell.is-collapsed .nav-group-head {
    justify-content: center;
}
.shell.is-collapsed .nav-group-icon {
    width: 40px;
    height: 40px;
    border-radius: 14px;
}
.shell.is-collapsed .nav-group:hover .nav-group-panel,
.shell.is-collapsed .nav-group:focus-within .nav-group-panel,
.shell.is-collapsed .nav-group.is-open .nav-group-panel {
    display: block;
}
.nav-footer {
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid rgba(255,255,255,0.08);
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.nav-footer-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 18px;
    background: rgba(255,255,255,0.04);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06);
}
.nav-footer-avatar {
    width: 38px;
    height: 38px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(255, 97, 15, 0.92), rgba(79, 23, 168, 0.92));
    color: #fff;
    font-weight: 800;
    flex: 0 0 auto;
}
.nav-footer-meta {
    min-width: 0;
}
.nav-footer-meta strong {
    display: block;
    font-size: 13px;
    color: #fff8ff;
}
.nav-footer-meta span {
    display: block;
    margin-top: 2px;
    color: rgba(236, 226, 255, 0.68);
    font-size: 12px;
}
.shell.is-collapsed .nav-footer-card {
    justify-content: center;
    padding: 10px;
}
.shell.is-collapsed .nav-footer-meta {
    display: none;
}
.nav-footer-actions {
    display: grid;
    gap: 8px;
}
.shell.is-collapsed .nav-footer-actions a {
    text-indent: -9999px;
    position: relative;
    overflow: hidden;
    min-height: 42px;
}
.shell.is-collapsed .nav-footer-actions a::before {
    content: "↗";
    position: absolute;
    inset: 0;
    text-indent: 0;
    display: grid;
    place-items: center;
    font-size: 16px;
    color: #fff;
}
