/* The shared single-select owns its arrow and its text gutter. Protect just these longhands:
   component, dialog and preview themes use padding/background shorthands with varying specificity.
   Keep their fills, borders, heights, and the native keyboard/menu behaviour. Listboxes and
   forced-colors mode retain the OS control; custom project pickers aren't select elements. */
@media screen and (forced-colors: none) {
  select:not([multiple]):is(:not([size]), [size="0"], [size="1"]) {
    --select-arrow-inset: 10px;
    --select-arrow-size: 12px;
    appearance: none !important;
    padding-inline-end: calc(var(--select-arrow-inset) + var(--select-arrow-size) + 8px) !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='m2 4 4 4 4-4' fill='none' stroke='%2360687d' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
    background-position: right var(--select-arrow-inset) center !important;
    background-size: var(--select-arrow-size) var(--select-arrow-size) !important;
    background-repeat: no-repeat !important;
  }
  select:not([multiple]):is(:not([size]), [size="0"], [size="1"]):dir(rtl) {
    background-position: left var(--select-arrow-inset) center !important;
  }
}
