/* Pairs with js/guard.js. Text outside form fields cannot be selected; form fields stay fully usable. */
body {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
input, textarea, select, [contenteditable=""], [contenteditable="true"] {
  -webkit-user-select: text;
  user-select: text;
  -webkit-touch-callout: default;
}
img { -webkit-user-drag: none; }

html.guard-blank body { visibility: hidden; }

.guard-notice { display: none; }
html.guard-devtools body > :not(.guard-notice) { filter: blur(14px); pointer-events: none; }
html.guard-devtools .guard-notice {
  display: block;
  position: fixed;
  inset: 40% 10% auto;
  z-index: 2147483647;
  padding: 1.25rem 1.5rem;
  border-radius: 8px;
  background: #7a1f1f;
  color: #fff;
  font: 600 1rem/1.4 system-ui, sans-serif;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
}

@media print {
  html.guard-blank body { visibility: visible; }
  html.guard-devtools body > :not(.guard-notice) { filter: none; }
  .guard-notice { display: none !important; }
}
