.select {
  position: relative;
  width: 100%;
  font-family: var(--font-family-r);
  font-weight: var(--font-weight-r);
}

/* trigger */
.select-trigger {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  min-height: 36px;
  padding: 10px 2.6em 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, .08);
  background: var(--bg);
  font-size: .98rem;
  line-height: 1.3;
  color: var(--txt);
  cursor: pointer;
  display: flex;
  align-items: center;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
  font-family: var(--font-family-r);
  font-weight: var(--font-weight-r);
  box-sizing: border-box;
}

/* focus */
.select.open .select-trigger,
.select-trigger:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(47,123,255,.12);
}

/* arrow */
.select-trigger::after {
  content: "";
  position: absolute;
  right: 14px;
  width: 6px;
  height: 6px;
  border-right: 2px solid rgba(0,0,0,.5);
  border-bottom: 2px solid rgba(0,0,0,.5);
  transform: rotate(45deg);
  pointer-events: none;
}

/* dropdown list */
.select-options {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  width: 100%;              /* 🔒 never exceed trigger width */
  max-width: 100%;
  background: white;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, .08);
  box-shadow: 0 10px 30px rgba(0,0,0,.08);
  padding: 6px;
  list-style: none;
  margin: 0;
  display: none;
  max-height: 220px;
  overflow-y: auto;
  z-index: 1000;
  box-sizing: border-box;
  font-family: var(--font-family-r);
  font-weight: var(--font-weight-r);
}

.select.open .select-options {
  display: block;
}

.select-options li {
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: background .12s ease;
  font-family: var(--font-family-r);
  font-weight: var(--font-weight-r);
}

.select-options li:hover,
.select-options li[aria-selected="true"] {
  background: rgba(47,123,255,.12);
}