/* Learner-facing copy/print deterrents, not DRM or screenshot protection. */
html.sgy-content-restricted body {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
html.sgy-content-restricted input:not([readonly]),
html.sgy-content-restricted textarea:not([readonly]),
html.sgy-content-restricted [contenteditable="true"] {
  -webkit-user-select: text;
  user-select: text;
  -webkit-touch-callout: default;
}
html.sgy-content-restricted img { -webkit-user-drag: none; }
html.sgy-content-admin .failure-reference-panel,
html.sgy-content-admin .failure-reference-panel * {
  -webkit-user-select: text !important;
  user-select: text !important;
  -webkit-touch-callout: default;
}
#sgy-content-notice {
  position: fixed; inset: auto 16px 16px auto; z-index: 2147483646;
  max-width: min(420px, calc(100vw - 32px)); padding: 12px 16px;
  border-radius: 9px; background: #203451; color: #fff;
  font: 500 13px/1.45 system-ui, sans-serif; box-shadow: 0 5px 20px #0002;
  pointer-events: none;
}
#sgy-content-notice[hidden] { display: none; }
@media print {
  #sgy-content-notice { display: none !important; }
  html.sgy-content-restricted body { display: block !important; margin: 24px !important; }
  html.sgy-content-restricted body > * { display: none !important; }
  html.sgy-content-restricted body::before { display: none !important; }
  html.sgy-content-restricted body::after {
    content: "SGY LMS — Training content is view-only. Printing is not available for this account.";
    display: block !important; color: #17233a !important;
    font: 16px/1.5 system-ui, sans-serif !important;
  }
}
