.nsel {
  position: relative;
  display: inline-block;
}
.nsel__btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 42px;
  padding: 0 12px 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: saturate(160%) blur(18px);
  color: inherit;
  font: 600 0.86rem "Inter", "Helvetica Neue", Arial, sans-serif;
  cursor: pointer;
  transition: background-color 0.15s;
}
.nsel__btn .bi {
  font-size: 1rem;
}
.nsel__btn:hover {
  background: rgba(255, 255, 255, 0.34);
}
.nsel__btn:focus {
  outline: none;
}
.nsel__btn:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}
.nsel__val {
  max-width: 120px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.nsel__chev {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.2s;
}
.nsel.is-open .nsel__chev {
  transform: rotate(180deg);
}
.nsel__menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 80;
  min-width: 190px;
  max-height: min(60vh, 360px);
  margin: 0;
  padding: 6px;
  overflow-y: auto;
  border: 1px solid rgba(23, 19, 31, 0.06);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: saturate(180%) blur(24px);
  box-shadow: 0 24px 60px -12px rgba(15, 10, 25, 0.3);
  list-style: none;
  color: #17131f;
  text-shadow: none;
  animation: nsel-in 0.18s cubic-bezier(0.22, 1, 0.36, 1);
  scrollbar-width: thin;
}
.nsel__menu[hidden] {
  display: none;
}
.nsel__menu li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  font: 500 0.92rem "Inter", "Helvetica Neue", Arial, sans-serif;
  cursor: pointer;
}
.nsel__menu li svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: #17131f;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0;
}
.nsel__menu li:hover, .nsel__menu li:focus {
  background: rgba(23, 19, 31, 0.06);
  outline: none;
}
.nsel__menu li[aria-selected=true] {
  font-weight: 700;
}
.nsel__menu li[aria-selected=true] svg {
  opacity: 1;
}

[dir=rtl] .nsel__menu {
  right: auto;
  left: 0;
}

@keyframes nsel-in {
  from {
    opacity: 0;
    transform: translateY(-4px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
[data-tone=dark] .nsel__btn {
  border-color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.55);
}