/* Guard only the article containing [neko_copy_guard] or a wrapped region. */
.neko-copy-guard-active,
.neko-copy-guard-active :not(input):not(textarea):not(select):not([contenteditable]):not([contenteditable="true"]) {
  -webkit-user-select: none !important;
  user-select: none !important;
  -webkit-touch-callout: none !important;
}

/* Keep the page functional: forms, controls, and editable fields still work. */
.neko-copy-guard-active input,
.neko-copy-guard-active textarea,
.neko-copy-guard-active select,
.neko-copy-guard-active [contenteditable],
.neko-copy-guard-active [contenteditable="true"],
.neko-copy-guard-active [contenteditable] *,
.neko-copy-guard-active [contenteditable="true"] * {
  -webkit-user-select: text !important;
  user-select: text !important;
  -webkit-touch-callout: default !important;
}

.neko-copy-guard-active img,
.neko-copy-guard-active picture,
.neko-copy-guard-active svg,
.neko-copy-guard-active video {
  -webkit-user-drag: none !important;
  user-drag: none !important;
  -webkit-touch-callout: none !important;
}
