/* Sitewide browser deterrent. Editable answers and account fields stay usable. */
.learning-protection-active body {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
.learning-protection-active img,
.learning-protection-active canvas {
  -webkit-user-drag: none;
}
.learning-protection-active :is(input, textarea, [contenteditable="true"]):not([readonly]):not(:disabled) {
  -webkit-user-select: text;
  user-select: text;
  -webkit-touch-callout: default;
}

/* Cover each browser top layer: a body overlay alone cannot cover a modal
   dialog or a fullscreen slide reader. No fade: concealment is immediate. */
html.learning-protection-concealed::after {
  content: "";
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #000 !important;
  opacity: 1 !important;
  visibility: visible !important;
  z-index: 2147483647;
  pointer-events: auto;
  transition: none !important;
  animation: none !important;
}
.learning-protection-concealed body,
.learning-protection-concealed dialog,
.learning-protection-concealed dialog::backdrop,
.learning-protection-concealed :fullscreen {
  background: #000 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}
.learning-protection-concealed body * {
  visibility: hidden !important;
}
.learning-protection-shield:not([open]),
.learning-protection-panel[hidden] {
  display: none !important;
}
html.learning-protection-concealed .learning-protection-shield,
html.learning-protection-concealed .learning-protection-shield * {
  visibility: visible !important;
}
html .learning-protection-shield {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  width: 100dvw !important;
  height: 100vh !important;
  height: 100dvh !important;
  max-width: none !important;
  max-height: none !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #000 !important;
  box-shadow: none !important;
  transform: none !important;
  opacity: 1 !important;
  transition: none !important;
  animation: none !important;
  place-items: center;
  padding: 24px !important;
  box-sizing: border-box;
  overflow: auto;
  color: #fff !important;
}
html .learning-protection-shield[open] { display: grid !important; }
html .learning-protection-shield::backdrop { background: #000 !important; backdrop-filter: none !important; }
.learning-protection-panel {
  width: min(100%, 440px);
  margin: auto;
  text-align: center;
}
.learning-protection-panel h2 {
  color: #fff !important;
  font-size: clamp(22px, 4vw, 28px);
  line-height: 1.25;
  margin: 0 0 16px;
}
.learning-protection-panel p {
  color: #ccc !important;
  font-size: 15px;
  line-height: 1.6;
  margin: 0 0 28px;
}
.learning-protection-panel button {
  display: block;
  width: 100%;
  min-height: 48px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: #ffd75a !important;
  color: #201c26 !important;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  padding: 14px 20px;
  cursor: pointer;
}
.learning-protection-panel button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 5px;
}

@media print {
  html.learning-protection-active,
  .learning-protection-active body {
    background: #000 !important;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }
  .learning-protection-active body > * {
    display: none !important;
  }
  .learning-protection-active body::after {
    content: "";
    display: block !important;
    position: fixed;
    inset: 0;
    height: 100vh;
    background: #000 !important;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }
}
