/* Renders inside Shadow DOM — page styles don't reach here, these don't leak out. */

.rs-root {
  --rs-font-size: 14px;

  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro",
    "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* ---- trigger pill ---- */

.rs-trigger {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.6);
  font-size: var(--rs-font-size);
  font-weight: 500;
  line-height: 20px;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.rs-trigger:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.16);
}

.rs-chevron {
  width: 8px;
  height: 8px;
  flex: none;
  opacity: 0.5;
  transition: transform 0.18s ease;
}

.rs-trigger[aria-expanded="true"] .rs-chevron {
  transform: rotate(180deg);
}

/* ---- dropdown ---- */

.rs-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  min-width: max(100%, 96px);
  margin: 0;
  padding: 0;
  overflow: hidden;
  list-style: none;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: #161616;
  box-shadow: 0 12px 32px 0 rgba(0, 0, 0, 0.5);
}

.rs-item {
  display: block;
  padding: 10px 16px;
  border-left: 1px solid transparent;
  color: rgba(255, 255, 255, 0.38);
  font-size: var(--rs-font-size);
  font-weight: 500;
  line-height: 20px;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.12s ease, color 0.12s ease;
}

.rs-item:hover {
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.7);
}

.rs-item[aria-disabled="true"] {
  cursor: default;
  opacity: 0.5;
}

.rs-item[aria-disabled="true"]:hover {
  background: none;
  color: rgba(255, 255, 255, 0.38);
}

.rs-item--active,
.rs-item--active:hover {
  background: rgba(93, 254, 243, 0.07);
  border-left-color: #5dfef3;
  color: #5dfef3;
}

/* ---- focus ---- */

.rs-trigger:focus-visible,
.rs-item:focus-visible {
  outline: 2px solid #5dfef3;
  outline-offset: -2px;
}

