/* Custom select — replaces native <select> so the dropdown menu can be
   themed instead of using the OS popup. */
.selectWrap {
  position: relative;
  display: inline-block;
}
.select {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-tertiary);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 14px;
  cursor: pointer;
  outline: none;
  white-space: nowrap;
  transition: border-color 0.15s, background 0.15s;
}
.select:hover {
  border-color: var(--text-muted);
  color: var(--text-bright);
}
.select svg {
  flex-shrink: 0;
  opacity: 0.6;
}
.selectMenu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 100%;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px;
  box-shadow: var(--shadow-popover);
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.selectOption {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 6px 10px;
  font-family: inherit;
  font-size: 14px;
  color: var(--text-primary);
  background: transparent;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  text-align: left;
  white-space: nowrap;
  transition: background 0.1s, color 0.1s;
}
.selectOption:hover {
  background: var(--bg-hover);
  color: var(--text-bright);
}
.selectOptionActive {
  background: var(--bg-selected);
  color: var(--text-bright);
}
