:root {
  --shell-nav-launcher-top: 112px;
  --shell-nav-launcher-left: 0;
  --shell-nav-launcher-left-hover: 3px;
  --shell-nav-launcher-width: 24px;
  --shell-nav-launcher-height: 64px;
  --shell-nav-launcher-radius: 0 14px 14px 0;
  --shell-nav-launcher-z: 28;
  --shell-nav-backdrop-z: 27;
  --shell-nav-rail-z: 29;
  --shell-nav-rail-top: 16px;
  --shell-nav-rail-left: 16px;
  --shell-nav-rail-right: auto;
  --shell-nav-rail-bottom: 16px;
  --shell-nav-rail-width: 296px;
  --shell-nav-rail-hidden-offset: -28px;
  --shell-nav-mobile-launcher-top: 88px;
  --shell-nav-mobile-launcher-left: 0;
  --shell-nav-mobile-launcher-width: var(--shell-nav-launcher-width);
  --shell-nav-mobile-launcher-height: var(--shell-nav-launcher-height);
  --shell-nav-mobile-launcher-left-hover: 2px;
  --shell-nav-mobile-backdrop-z: var(--shell-nav-backdrop-z);
  --shell-nav-mobile-rail-top: 12px;
  --shell-nav-mobile-rail-left: 12px;
  --shell-nav-mobile-rail-right: 12px;
  --shell-nav-mobile-rail-bottom: auto;
  --shell-nav-mobile-rail-width: auto;
  --shell-nav-mobile-rail-max-height: calc(100vh - 24px);
  --shell-nav-mobile-rail-z: var(--shell-nav-rail-z);
}

.nav-launcher {
  position: fixed;
  top: var(--shell-nav-launcher-top);
  left: var(--shell-nav-launcher-left);
  z-index: var(--shell-nav-launcher-z);
  width: var(--shell-nav-launcher-width);
  height: var(--shell-nav-launcher-height);
  border: 1px solid rgba(88, 118, 151, 0.26);
  border-left: 0;
  border-radius: var(--shell-nav-launcher-radius);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 28px rgba(20, 36, 56, 0.14);
  display: inline-grid;
  place-items: center;
  padding: 0;
  cursor: pointer;
  backdrop-filter: blur(12px);
  transition: left 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.nav-launcher:hover {
  left: var(--shell-nav-launcher-left-hover);
  box-shadow: 0 20px 38px rgba(20, 36, 56, 0.18);
}

.nav-chevron {
  width: 8px;
  height: 8px;
  border-top: 2px solid #204766;
  border-right: 2px solid #204766;
  transform: translateX(-1px) rotate(45deg);
}

.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: var(--shell-nav-backdrop-z);
  background: rgba(10, 23, 38, 0.18);
  backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

.nav-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.nav-rail {
  position: fixed;
  top: var(--shell-nav-rail-top);
  left: var(--shell-nav-rail-left);
  right: var(--shell-nav-rail-right);
  bottom: var(--shell-nav-rail-bottom);
  width: var(--shell-nav-rail-width);
  z-index: var(--shell-nav-rail-z);
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 12px;
  padding: 14px;
  border-radius: 26px;
  border: 1px solid rgba(144, 166, 193, 0.22);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(14px);
  box-shadow: 0 24px 56px rgba(19, 38, 58, 0.12);
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateX(var(--shell-nav-rail-hidden-offset));
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.nav-rail.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 2px;
}

.nav-brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(155deg, #0f76c9, #0b548f);
  color: #fff;
  font-weight: 900;
  font-size: 19px;
  box-shadow: 0 16px 28px rgba(11, 84, 143, 0.24);
}

.nav-brand-copy {
  display: grid;
  gap: 2px;
}

.nav-brand-copy strong {
  font-size: 16px;
}

.nav-brand-copy span {
  font-size: 12px;
  color: var(--muted);
}

.nav-list {
  min-height: 0;
  display: grid;
  align-content: start;
  gap: 8px;
  overflow: auto;
  padding-right: 2px;
}

.nav-item {
  display: grid;
  grid-template-columns: 44px 1fr;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 18px;
  text-decoration: none;
  color: inherit;
  background: rgba(255, 255, 255, 0.28);
  border: 1px solid transparent;
  transition: transform 0.16s ease, border-color 0.16s ease, background-color 0.16s ease;
}

.nav-item:hover {
  transform: translateY(-1px);
  border-color: rgba(79, 123, 170, 0.2);
  background: rgba(255, 255, 255, 0.52);
}

.nav-item.active {
  background: linear-gradient(135deg, rgba(13, 111, 190, 0.14), rgba(16, 159, 135, 0.08));
  border-color: rgba(13, 111, 190, 0.18);
}

.nav-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(13, 111, 190, 0.1);
  color: #0d6fbe;
  font-weight: 900;
}

.nav-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.nav-copy strong {
  font-size: 14px;
  line-height: 1.3;
}

.nav-copy small {
  color: var(--muted);
  line-height: 1.4;
}

@media (max-width: 960px) {
  .nav-launcher {
    top: var(--shell-nav-mobile-launcher-top);
    left: var(--shell-nav-mobile-launcher-left);
    width: var(--shell-nav-mobile-launcher-width);
    height: var(--shell-nav-mobile-launcher-height);
  }

  .nav-launcher:hover {
    left: var(--shell-nav-mobile-launcher-left-hover);
  }

  .nav-backdrop {
    z-index: var(--shell-nav-mobile-backdrop-z);
  }

  .nav-rail {
    top: var(--shell-nav-mobile-rail-top);
    left: var(--shell-nav-mobile-rail-left);
    right: var(--shell-nav-mobile-rail-right);
    bottom: var(--shell-nav-mobile-rail-bottom);
    width: var(--shell-nav-mobile-rail-width);
    max-height: var(--shell-nav-mobile-rail-max-height);
    z-index: var(--shell-nav-mobile-rail-z);
  }
}
