.wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 38px;
  border-radius: 50px;
  background: linear-gradient(
    145deg,
    color-mix(in srgb, var(--elevated-surface) 78%, transparent) 0%,
    color-mix(in srgb, var(--glass-bg) 55%, transparent) 55%,
    color-mix(in srgb, var(--surface) 42%, transparent) 100%
  );
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--glass-border);
  transition: box-shadow 0.2s, border-color 0.2s, background 0.2s;
}

.wrap:hover,
.wrap:focus-within {
  box-shadow: var(--glass-shadow);
  border-color: rgba(var(--primary-rgb) / 0.25);
}

.icon {
  position: absolute;
  inset-inline-start: 12px;
  color: var(--text-secondary);
  pointer-events: none;
  z-index: 1;
}

.chevron {
  position: absolute;
  inset-inline-end: 10px;
  color: var(--text-muted);
  pointer-events: none;
  z-index: 1;
}

/* Beat global `select` + `html[data-theme='dark'] select` so the pill stays one surface */
.wrap .select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  height: 100%;
  min-height: 0;
  min-width: 76px;
  padding-block: 0;
  padding-inline: 34px 28px;
  border: none;
  border-radius: 50px;
  background-color: transparent;
  background-image: none;
  box-shadow: none;
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-ui);
  line-height: 1;
  cursor: pointer;
  outline: none;
  transition: none;
}

.wrap .select:focus {
  border: none;
  box-shadow: none;
  outline: none;
}

.srOnly {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
