/* Shared focus treatment: use the existing contour, never a second outer ring. */
*:focus, *:focus-visible, *:focus-within {
  outline: none !important;
  box-shadow: none !important;
}
:is(input:not([type=checkbox]):not([type=radio]), select, textarea):focus {
  border-color: var(--primary, var(--accent)) !important;
}
:is(a, summary):focus-visible { text-decoration: underline; text-underline-offset: 4px; }
button:focus-visible { filter: brightness(.9); }
:is(.resource-search, .server-search, .doc-search, .quota-search):focus-within {
  border-color: var(--primary, var(--accent)) !important;
}
@media (forced-colors: active) {
  :is(button, a, summary):focus-visible { border: 1px solid Highlight; }
}

/* One arrow for single-choice fields, without the browser's native side button. */
html body select:not([multiple]) {
  appearance: none !important;
  -webkit-appearance: none !important;
  padding-right: 38px !important;
  background-image: url('chevron-down.svg') !important;
  background-repeat: no-repeat !important;
  background-position: right 13px center !important;
  background-size: 14px 14px !important;
}
html body select:disabled { cursor: not-allowed; opacity: .6; }
