/* Global single-select chrome. Keep native option menus and keyboard behavior.
   Arrow color follows each control; components keep their own size and surface; both inline edges share one inset. */
:root {
  --select-inline-inset: 12px;
  --select-arrow-part: 4px;
  --select-arrow-reserve: 28px;
}

/* Important declarations prevent module background/padding shorthands from
   replacing the shared arrow. Multiple and list-box selects are excluded. */
select:not([multiple]):not([size]),
select:not([multiple])[size="0"],
select:not([multiple])[size="1"] {
  appearance: none !important;
  -webkit-appearance: none !important;
  padding-left: var(--select-inline-inset) !important;
  padding-right: var(--select-arrow-reserve) !important;
  background-image:
    linear-gradient(45deg, transparent 43%, currentColor 43%, currentColor 58%, transparent 58%),
    linear-gradient(135deg, transparent 43%, currentColor 43%, currentColor 58%, transparent 58%) !important;
  background-position:
    right calc(var(--select-inline-inset) + var(--select-arrow-part)) center,
    right var(--select-inline-inset) center !important;
  background-size: var(--select-arrow-part) var(--select-arrow-part) !important;
  background-repeat: no-repeat !important;
}

/* The property toolbar previously drew an extra arrow on its label. */
.market-filterbar label:has(select)::after { content: none; }

/* Retain the operating system arrow when background graphics are suppressed. */
@media (forced-colors: active) {
  select:not([multiple]):not([size]),
  select:not([multiple])[size="0"],
  select:not([multiple])[size="1"] {
    appearance: auto !important;
    -webkit-appearance: auto !important;
    background-image: none !important;
  }
}
