/* Keep dropdown arrows centered and inset consistently, independently of the OS. */
html body[data-brand="aura"] {
  --select-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='m3 5.5 5 5 5-5' stroke='%23606060' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

html[data-theme="dark"] body[data-brand="aura"] {
  --select-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='m3 5.5 5 5 5-5' stroke='%23c5d2e6' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* Longhands preserve each field's surface, borders, height and focus treatment.
   !important protects the arrow from legacy background/padding shorthands. */
html body[data-brand="aura"] select:not([multiple]):is(:not([size]), [size="0"], [size="1"]) {
  -webkit-appearance: none;
  appearance: none;
  padding-inline-end: 40px !important;
  background-image: var(--select-arrow) !important;
  background-position: right 12px center !important;
  background-size: 16px 16px !important;
  background-repeat: no-repeat !important;
  background-origin: padding-box !important;
}

/* Give short time fields room for both the time and the arrow on small phones. */
@media (max-width: 380px) {
  html body[data-brand="aura"] .ob-day {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  html body[data-brand="aura"] .ob-day .chk-line {
    grid-column: 1 / -1;
  }
}

/* Native arrows remain visible when the user relies on forced system colors. */
@media (forced-colors: active) {
  html body[data-brand="aura"] select:not([multiple]):is(:not([size]), [size="0"], [size="1"]) {
    -webkit-appearance: menulist;
    appearance: auto;
    background-image: none !important;
  }
}
