.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: var(--bg-backdrop);
  z-index: 60;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.drawer-backdrop.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  inset-inline-end: 0;
  width: min(300px, 84vw);
  background: var(--bg-canvas);
  z-index: 70;
  padding: calc(18px + env(safe-area-inset-top)) 16px calc(20px + env(safe-area-inset-bottom)) 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  visibility: hidden;
  pointer-events: none;
}

[dir="ltr"] .mobile-drawer {
  transform: translateX(100%);
}

[dir="rtl"] .mobile-drawer {
  transform: translateX(-100%);
}

.mobile-drawer.open {
  visibility: visible;
  pointer-events: auto;
  transform: translateX(0);
}

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 40px;
}

.drawer-nav {
  display: grid;
  gap: 4px;
  margin-top: 20px;
}

.drawer-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 44px;
  padding-inline: 12px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}

.drawer-link:hover {
  background: var(--bg-surface);
  color: var(--text-primary);
}

.drawer-link.active {
  background: var(--bg-surface);
  color: var(--text-primary);
  font-weight: 600;
}

.drawer-link.active::after {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 99px;
  background: var(--brand-primary);
}

.drawer-footer {
  display: grid;
  gap: 10px;
}
