/* All selectors share one compact trigger, floating panel, and selection treatment. */
.select-field { display: flex; flex-direction: column; gap: 8px; min-width: 0; color: var(--md-sys-color-on-surface); }
.select-label { font: var(--md-sys-typescale-label-medium); }
.select-trigger { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-width: 0; min-height: 40px; padding: 10px 12px; border: 0; border-radius: 12px; background: var(--md-sys-color-surface-container); color: var(--color-heading); font: var(--md-sys-typescale-label-large); text-align: left; cursor: pointer; transition: filter 150ms, background-color 150ms; }
.select-trigger:hover { filter: brightness(var(--hover-brightness)); }
.select-trigger[aria-expanded='true'] { outline: 2px solid var(--color-link); outline-offset: 2px; }
.select-value { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.select-chevron { display: block; width: 7px; height: 7px; flex: 0 0 auto; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform 150ms ease; }
.select-trigger[aria-expanded='true'] .select-chevron { transform: translateY(2px) rotate(225deg); }
.select-menu { position: fixed; z-index: 100; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; padding: 6px; border: 1px solid var(--color-card-border); border-radius: 12px; background: var(--md-sys-color-surface-container-lowest); color: var(--color-heading); box-shadow: 0 4px 12px #0003; font-size: 14px; line-height: 20px; }
.select-option { display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 10px 12px; border-radius: 8px; cursor: pointer; overflow-wrap: anywhere; }
.select-option:hover, .select-option.is-active { background: var(--md-sys-color-surface-container-high); }
.select-option.is-active { outline: 2px solid var(--color-link); outline-offset: -2px; }
.select-option.is-selected { background: var(--color-selected); color: var(--color-on-selected); font-weight: 600; }
.select-option-check { width: 16px; height: 16px; flex: 0 0 16px; }
.select-option-check::after { content: ''; display: block; width: 11px; height: 6px; margin-top: 3px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); visibility: hidden; }
.select-option.is-selected .select-option-check::after { visibility: visible; }
.select-group-label { padding: 12px 12px 6px; color: var(--md-sys-color-on-surface-variant); font-size: 12px; font-weight: 600; }
.header-field .select-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.header-field .select-trigger { width: auto; font-size: 14px; }
.header-field .select-trigger .icon { width: 20px; height: 20px; }
.theme-field .select-trigger { width: 40px; height: 40px; justify-content: center; padding: 8px; }
.theme-field .select-trigger .icon { width: 24px; height: 24px; }
.theme-field .select-value { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.theme-field .select-chevron { display: none; }
@media (max-width: 600px) {
  .locale-field .select-trigger { width: 40px; height: 40px; justify-content: center; padding: 8px; }
  .locale-field .select-trigger .icon { width: 24px; height: 24px; }
  .locale-field .select-value { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .locale-field .select-chevron { display: none; }
}
@media (pointer: coarse) {
  .header-field .select-trigger, .select-option { min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  .select-trigger, .select-chevron { transition: none; }
}
