/* Shared themed select, including the opened menu, in both appearances. */
select.select-native { display: none !important; }
.select-menu { display: block; min-width: 0; margin-top: 8px; }
.select-trigger {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  width: 100%; min-height: 48px; padding: 12px 14px;
  border: 1px solid var(--line-strong); border-radius: 12px;
  background: var(--paper); color: var(--ink); font-size: 16px;
  font-weight: 400; line-height: 1.5; text-align: left;
  transition: border-color 160ms, background 160ms;
}
.select-trigger:hover:not(:disabled), .select-trigger[aria-expanded="true"] { border-color: var(--primary); background: var(--surface-hover); }
.select-trigger:disabled { opacity: 1; background: var(--surface-disabled); color: var(--muted); cursor: not-allowed; }
.select-value { min-width: 0; overflow-wrap: anywhere; }
.select-chevron { width: 8px; height: 8px; flex: 0 0 8px; border-right: 1.7px solid currentColor; border-bottom: 1.7px solid currentColor; transform: translateY(-2px) rotate(45deg); margin: 0 3px; color: var(--muted); }
.select-trigger[aria-expanded="true"] .select-chevron { transform: translateY(2px) rotate(225deg); color: var(--primary); }
.select-options {
  position: fixed; inset: auto; z-index: 500; margin: 0; padding: 6px;
  border: 1px solid var(--line-strong); border-radius: 16px;
  background: var(--paper); color: var(--ink); box-shadow: var(--shadow), 0 12px 36px #0002;
  overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent;
  font: 400 16px/1.5 "Plus Jakarta Sans", system-ui, sans-serif;
}
.select-options[hidden], .select-option[hidden] { display: none; }
.select-option { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; padding: 10px 12px; border-radius: 10px; cursor: pointer; overflow-wrap: anywhere; }
.select-option > span:first-child { min-width: 0; }
.select-option[aria-selected="true"] { background: var(--sky); color: var(--primary-hover); font-weight: 600; }
.select-option.is-active { background: var(--surface-hover); outline: 1px solid var(--primary); outline-offset: -1px; }
.select-option[aria-disabled="true"] { color: var(--muted); cursor: not-allowed; }
.select-check { flex: 0 0 18px; color: var(--primary); visibility: hidden; }
.select-option[aria-selected="true"] .select-check { visibility: visible; }
.speech-settings .select-menu { margin: 8px 0 20px; }
.admin-users .select-menu { width: 158px; margin: 0; }
.admin-users .select-trigger { min-height: 44px; padding: 10px; font-size: 13px; }
@media (max-width: 600px) { .admin-users .select-trigger { font-size: 16px; } }
@media (prefers-reduced-motion: reduce) { .select-trigger { transition: none; } }
