/* 前台所有入口共用：页面文字不参与原生选择，文字输入和编辑仍可选择、复制、粘贴。
 * :root 覆盖 body 外挂载的弹窗；!important 避免组件和画布库的普通样式重新放开选择。
 */
:root,
:root * {
  -webkit-user-select: none !important;
  user-select: none !important;
}

/* :read-write 跟随真实可编辑状态，包含富文本、CodeMirror 和画布文字编辑器的子节点，
 * 也能识别嵌套的 contenteditable=false。只读输入框仍放行，便于复制生成的值。
 */
:root input:not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="image"]):not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="file"]):not([type="hidden"]),
:root textarea,
:root :read-write {
  -webkit-user-select: text !important;
  user-select: text !important;
  -webkit-touch-callout: default !important;
}
