aside { width: 250px; }
main { margin-right: 250px; }
aside .brand, aside footer { flex-shrink: 0; }
#navigation {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 12px 0 18px 6px;
  scrollbar-width: thin;
  scrollbar-color: #9673b0 #2b1b3a;
}
#navigation::-webkit-scrollbar { width: 6px; height: 6px; }
#navigation::-webkit-scrollbar-track { background: #2b1b3a; border-radius: 10px; }
#navigation::-webkit-scrollbar-thumb { background: #9673b0; border-radius: 10px; }
#navigation::-webkit-scrollbar-thumb:hover { background: #b79acb; }
.nav-group { margin: 5px 0; border: 1px solid transparent; border-radius: 13px; }
.nav-group.is-open { background: #ffffff0c; border-color: #ffffff20; }
.nav-group>p { margin: 8px 12px; }
.nav-group-toggle { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 11px 12px; border-radius: 12px; text-align: right; color: #f7f1fb; font-size: 13px; }
.nav-group-label { display: flex; align-items: center; gap: 11px; }
.nav-group-label svg { width: 19px; height: 19px; flex: none; color: #c9addb; }
.nav-group-toggle:hover, .nav-group.is-open>.nav-group-toggle { color: white; background: #ffffff13; }
.nav-group.is-open>.nav-group-toggle { font-weight: 700; }
.nav-chevron { font-size: 18px; line-height: 1; color: #cab6d9; transition: transform .18s; }
.nav-group.is-open .nav-chevron { transform: rotate(180deg); }
.nav-group-links { margin: 5px 20px 10px 8px; padding: 2px 9px 2px 0; border-right: 2px solid #b997d2; }
.nav-group-links[hidden] { display: none; }
.nav-group-links a { position: relative; padding: 8px 12px; margin: 3px 0; color: #ddd0e8; font-size: 12px; }
.nav-group-links a:hover { background: #ffffff10; color: white; }
.nav-group-links a[aria-current] { color: white; font-weight: 700; }
.mobile-nav-toggle { display: none; }
@media (max-width: 1150px) { aside { width: 250px; } main { margin-right: 250px; } }
@media (max-width: 670px) {
  aside { width: auto; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 0 12px; padding: 10px 14px; }
  main { margin-right: 0; }
  aside .brand { padding: 0; }
  .mobile-nav-toggle { display: flex; align-items: center; justify-content: center; gap: 7px; min-width: 64px; min-height: 44px; padding: 8px 12px; border: 1px solid #ffffff30; border-radius: 11px; color: white; background: #ffffff12; }
  .mobile-nav-toggle span:first-child { font-size: 20px; line-height: 1; }
  #navigation { display: none; grid-column: 1 / -1; max-height: min(60vh, 480px); overflow-x: hidden; overflow-y: auto; margin-top: 10px; padding: 8px 0; border-top: 1px solid #ffffff21; }
  aside.mobile-nav-open #navigation { display: block; }
  aside.mobile-nav-open footer { display: flex; grid-column: 1 / -1; margin-top: 0; padding: 12px 5px 2px; }
  .nav-group { margin: 5px 0; }
  .nav-group-toggle { min-height: 44px; }
  .nav-group-links a, .nav-dashboard>a { min-height: 44px; }
  .nav-dashboard>p { display: flex; margin: 8px 12px; }
}
