.app-nav {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
}

.app-nav.open {
  pointer-events: auto;
}

.app-nav-overlay {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(8, 10, 15, 0.5);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.app-nav.open .app-nav-overlay {
  opacity: 1;
}

.app-nav-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(84vw, 20.5rem);
  height: 100dvh;
  background: #ffffff;
  border-left: 1px solid #e7ebf2;
  box-shadow: -14px 0 28px rgba(8, 10, 16, 0.18);
  transform: translateX(100%);
  transition: transform 0.22s ease;
  display: flex;
  flex-direction: column;
  padding: max(1rem, env(safe-area-inset-top)) 1rem calc(1rem + env(safe-area-inset-bottom));
}

.app-nav.open .app-nav-panel {
  transform: translateX(0);
}

.app-nav-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.app-nav-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 900;
  color: #0f131b;
  letter-spacing: 0.04em;
}

.app-nav-subtitle {
  margin: 0.24rem 0 0;
  color: #7e8798;
  font-size: 0.8rem;
  line-height: 1.35;
}

.app-nav-close {
  width: 2.4rem;
  height: 2.4rem;
}

.app-nav-content {
  display: grid;
  gap: 0.45rem;
  margin-top: 0.25rem;
}

.app-nav-item {
  display: block;
  border: 1px solid #e4e8f0;
  border-radius: 0.85rem;
  background: #f9fafd;
  padding: 0.78rem 0.82rem;
  color: #1d2533;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
}

.app-nav-item.is-current {
  border-color: #0a0c11;
  background: #0a0c11;
  color: #ffffff;
}

.app-nav-item.is-meta {
  background: transparent;
  border-style: dashed;
  color: #768095;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.5rem 0.7rem;
}

.app-nav-item.is-disabled {
  color: #9ea7b7;
  background: #f4f6fa;
  border-style: dashed;
  cursor: not-allowed;
}

.app-nav-logout {
  margin-top: auto;
  border: 0;
  border-radius: 999px;
  background: #151922;
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 0.7rem 0.9rem;
  cursor: pointer;
}

.app-nav-logout:disabled {
  opacity: 0.7;
  cursor: wait;
}

.hide {
  display: none !important;
}
