/* Prevent accidental highlighting of the public UI while leaving actual
   fields and editable content available for normal selection and clipboard use. */
body:not(.admin-mode),
body:not(.admin-mode) :where(*) {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

body:not(.admin-mode) :where(input, textarea, select, [contenteditable]:not([contenteditable="false"])),
body:not(.admin-mode) :where([contenteditable]:not([contenteditable="false"]) *) {
  -webkit-user-select: text;
  user-select: text;
  -webkit-touch-callout: default;
}

/* Keep ordinary link actions such as opening a page in another tab. */
body:not(.admin-mode) :where(a[href], a[href] *) {
  -webkit-touch-callout: default;
}
