.app-shell {
  grid-template-columns: 292px minmax(0, 1fr);
}

.member-chip {
  gap: 12px;
}

.member-chip .avatar {
  width: 52px;
  height: 52px;
}

.sidebar {
  isolation: isolate;
  overflow: hidden;
  padding: 22px 16px 18px;
  background:
    radial-gradient(circle at 8% 2%, rgba(224, 91, 114, .25), transparent 26%),
    radial-gradient(circle at 108% 42%, rgba(102, 146, 209, .24), transparent 34%),
    linear-gradient(165deg, #244b7c 0%, #183961 48%, #102944 100%);
  box-shadow: 12px 0 36px rgba(9, 30, 57, .13);
}

.sidebar::before {
  position: absolute;
  z-index: -1;
  top: 104px;
  right: -94px;
  width: 280px;
  height: 280px;
  content: "";
  opacity: .055;
  background: url("../assets/favicons/favicon-bonhommes-master.png") center / contain no-repeat;
  filter: brightness(0) invert(1);
  transform: rotate(-7deg);
  pointer-events: none;
}

.sidebar > * {
  position: relative;
  z-index: 1;
}

.sidebar .brand {
  gap: 13px;
  margin: 0 0 25px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 17px;
  background: rgba(255, 255, 255, .08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 12px 30px rgba(5, 22, 43, .13);
  backdrop-filter: blur(8px);
}

.sidebar .brand img {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 15px;
  object-fit: cover;
  background: #1f345f;
  box-shadow: 0 8px 20px rgba(7, 23, 45, .24);
}

.sidebar .brand strong {
  font-size: .98rem;
  letter-spacing: -.01em;
}

.sidebar .brand small {
  margin-top: 3px;
  color: rgba(255, 255, 255, .68);
  font-size: .79rem;
}

.sidebar-label {
  margin: 0 12px 9px;
  color: rgba(255, 255, 255, .48);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.sidebar nav {
  flex: 1 1 auto;
  min-height: 0;
  gap: 6px;
  overflow-y: auto;
  padding-right: 3px;
  scrollbar-color: rgba(255, 255, 255, .22) transparent;
  scrollbar-width: thin;
}

.sidebar .nav-item {
  position: relative;
  min-height: 49px;
  gap: 11px;
  overflow: hidden;
  padding: 7px 10px;
  border: 1px solid transparent;
  border-radius: 13px;
  color: rgba(255, 255, 255, .82);
  font-size: .9rem;
  font-weight: 720;
  transition: transform .18s ease, color .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.sidebar .nav-item .app-icon {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  border-radius: 10px;
  color: #d8e8ff;
  background: rgba(255, 255, 255, .09);
  transition: color .18s ease, background .18s ease, transform .18s ease;
}

.sidebar .nav-item:hover {
  transform: translateX(3px);
  color: #fff;
  border-color: rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .09);
}

.sidebar .nav-item:hover .app-icon {
  transform: scale(1.04);
  background: rgba(255, 255, 255, .15);
}

.sidebar .nav-item.active {
  transform: translateX(3px);
  color: #17345e;
  border-color: rgba(255, 255, 255, .55);
  background: linear-gradient(135deg, #fff 0%, #edf4ff 100%);
  box-shadow: 0 12px 28px rgba(5, 24, 48, .21);
}

.sidebar .nav-item.active::before {
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 0;
  width: 4px;
  border-radius: 0 6px 6px 0;
  content: "";
  background: #e05b72;
}

.sidebar .nav-item.active .app-icon {
  color: #fff;
  background: linear-gradient(145deg, #244f82, #17345e);
  box-shadow: 0 5px 13px rgba(23, 52, 94, .22);
}

.sidebar .sidebar-footer {
  gap: 10px;
  margin-top: auto;
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, .11);
  border-radius: 15px;
  background: rgba(5, 24, 48, .18);
}

.sidebar-footer small {
  color: rgba(255, 255, 255, .46);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.sidebar-footer a,
.sidebar-footer button {
  display: block;
  width: 100%;
  padding: 4px 0;
  font-size: .86rem;
  text-align: left;
}

.sidebar-footer a:hover {
  color: #fff;
}

.sidebar-footer button {
  color: #ffadbc;
}

@media (max-width: 820px) {
  .sidebar {
    width: min(292px, 88vw);
  }
}

@media (prefers-reduced-motion: reduce) {
  .sidebar .nav-item,
  .sidebar .nav-item .app-icon {
    transition: none;
  }
}
