/* Discourage ordinary text selection/copying. Editable controls and rich-text editors remain usable. */
body,body *{-webkit-user-select:none!important;user-select:none!important;-webkit-touch-callout:none!important}
input,textarea,select,[contenteditable="true"],[contenteditable=""],.ql-editor,.copy-allowed,.allow-copy,[data-copy-allowed]{-webkit-user-select:text!important;user-select:text!important;-webkit-touch-callout:default!important}
/* The established typing guard owns these surfaces: preserve practice's own-text copy/cut and its exam event logging. */
[data-guard="practice"]{-webkit-user-select:text!important;user-select:text!important;-webkit-touch-callout:default!important}
[data-guard="exam"],[data-guard="exam"] *,[data-guard="exam-source"],[data-guard="exam-source"] *,[data-guard-surface="exam"],[data-guard-surface="exam"] *{-webkit-user-select:none!important;user-select:none!important;-webkit-touch-callout:none!important}

/* Administrators authenticated by the server can select and use the clipboard across the entire site, including exam surfaces. */
body.admin-copy-enabled,body.admin-copy-enabled *{ -webkit-user-select:text!important; user-select:text!important; -webkit-touch-callout:default!important; }
body.admin-copy-enabled [data-guard],body.admin-copy-enabled [data-guard] *,body.admin-copy-enabled [data-guard-surface],body.admin-copy-enabled [data-guard-surface] *{ -webkit-user-select:text!important; user-select:text!important; -webkit-touch-callout:default!important; }
