/* Keep the same space around the label and disclosure arrow in every single-choice picker. */
select:not([multiple]):is(:not([size]), [size="0"], [size="1"]) {
  -webkit-appearance: none;
  appearance: none;
  box-sizing: border-box;
  min-inline-size: 0;
  max-inline-size: 100%;
  min-block-size: 44px;
  padding-block: .65rem;
  padding-inline: .875rem 2.75rem;
  background-image: 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='m3.5 6 4.5 4.5L12.5 6' fill='none' stroke='%2348584c' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 1rem 1rem;
  background-position: var(--select-arrow-edge, right) .875rem center;
  text-overflow: ellipsis;
}

select:dir(rtl) { --select-arrow-edge: left; }
.field:has(> select), .family-field:has(> select) { min-inline-size: 0; }

/* Text-entry suggestions keep the browser's own affordance inside the field. */
input[list]:not([type="hidden"]) { padding-inline: .875rem; }

@media (forced-colors: active) {
  select:not([multiple]):is(:not([size]), [size="0"], [size="1"]) {
    -webkit-appearance: auto;
    appearance: auto;
    background-image: none;
    padding-inline-end: .875rem;
  }
}
