/* Keep the native select interaction; control only its closed-field chrome. */
select:not([multiple]):not([size]),
select[size="1"] {
  --select-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%2352697f' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  -webkit-appearance: none;
  appearance: none;
  background-image: var(--select-chevron);
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px 16px;
  padding-inline-end: 44px;
  text-overflow: ellipsis;
}

/* The CV editor has a dark interface; its controls need a lighter icon. */
:is(.toolbar, .editor, .modal) select:not([multiple]):not([size]),
:is(.toolbar, .editor, .modal) select[size="1"] {
  --select-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%23b8c8df' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* System high-contrast mode retains its own accessible select indicator. */
@media (forced-colors: active) {
  select:not([multiple]):not([size]), select[size="1"] {
    -webkit-appearance: auto;
    appearance: auto;
    background-image: none;
  }
}
