/* Keep interface controls out of text selections. Data cards, tables, notes,
   headings and other readable content retain the browser's selection behavior. */
:where(
  button, a[href], summary, select, option,
  [role="button"]:not(.card), [role="link"], [role="tab"],
  [role="menuitem"], [role="menuitemcheckbox"], [role="menuitemradio"],
  [role="option"], [role="switch"], [role="checkbox"], [role="radio"],
  .nav-item, .collapse-head, .app-select-group,
  svg[aria-hidden="true"], img
){
  -webkit-user-select:none;
  user-select:none;
}

/* Editors remain selectable even when placed inside a control or its label.
   Use CSS only so Ctrl/Cmd+A, copying and keyboard shortcuts stay native. */
:where(input, textarea, [contenteditable]:not([contenteditable="false"])){
  -webkit-user-select:text;
  user-select:text;
}
