.notes-nav-target {
  scroll-margin-top: 28px;
}

.notes-nav-shell {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 940;
}

.notes-nav-desktop {
  display: none !important;
}

.notes-nav-card,
.notes-nav-drawer {
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(31, 47, 71, 0.12);
  box-shadow: 0 20px 40px rgba(15, 24, 38, 0.16);
  color: #233243;
}

.notes-nav-card {
  width: 250px;
  max-height: calc(100vh - 120px);
  border-radius: 18px;
  overflow: hidden;
}

.notes-nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(360px, 92vw);
  transform: translateX(100%);
  transition: transform 0.25s ease;
  display: flex;
  flex-direction: column;
  z-index: 980;
}

.notes-nav-head {
  padding: 16px 18px 12px;
  border-bottom: 1px solid rgba(31, 47, 71, 0.1);
  background: linear-gradient(180deg, rgba(245, 248, 252, 0.96), rgba(255, 255, 255, 0.96));
}

.notes-nav-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #5b6d86;
  margin-bottom: 0.3rem;
}

.notes-nav-title {
  font-size: 1rem;
  font-weight: 700;
  color: #16273f;
}

.notes-nav-body {
  padding: 10px 10px 12px;
  overflow-y: auto;
}

.notes-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.28rem;
}

.notes-nav-list ul {
  list-style: none;
  margin: 0.2rem 0 0.35rem;
  padding: 0 0 0 0.85rem;
  display: grid;
  gap: 0.24rem;
}

.notes-nav-link {
  display: block;
  padding: 0.5rem 0.68rem;
  border-radius: 10px;
  color: #314867;
  font-size: 0.9rem;
  line-height: 1.35;
  transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.notes-nav-link:hover,
.notes-nav-link:focus-visible {
  background: rgba(79, 110, 168, 0.09);
  color: #16273f;
  transform: translateX(2px);
}

.notes-nav-link.is-active {
  background: rgba(79, 110, 168, 0.12);
  color: #16273f;
  font-weight: 700;
}

.notes-nav-child > .notes-nav-link {
  font-size: 0.84rem;
  color: #5f7086;
  padding-top: 0.38rem;
  padding-bottom: 0.38rem;
}

.notes-nav-toggle {
  position: relative;
  z-index: 970;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.85rem 1.05rem;
  border: none;
  border-radius: 999px;
  background: #16273f;
  color: #ffffff;
  font: inherit;
  font-weight: 700;
  box-shadow: 0 16px 30px rgba(15, 24, 38, 0.28);
  cursor: pointer;
}

.notes-nav-toggle:hover,
.notes-nav-toggle:focus-visible {
  background: #203556;
}

.notes-nav-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-end;
  margin: 12px 14px 0 0;
  min-width: 72px;
  height: 38px;
  padding: 0 0.95rem;
  border: none;
  border-radius: 999px;
  background: rgba(22, 39, 63, 0.08);
  color: #16273f;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
}

.notes-nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 16, 26, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 960;
}

body.notes-nav-open {
  overflow: hidden;
}

body.notes-nav-open .notes-nav-overlay {
  opacity: 1;
  pointer-events: auto;
}

body.notes-nav-open .notes-nav-drawer {
  transform: translateX(0);
}

@media (max-width: 1239px) {
  .notes-nav-shell {
    right: 18px;
    bottom: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .notes-nav-link,
  .notes-nav-drawer,
  .notes-nav-overlay {
    transition: none;
  }
}
