"""OphthalmoCapture — Image Protection Layer
Injects CSS and JavaScript into the Streamlit page to prevent users from
downloading, dragging, or otherwise saving the confidential medical images.
APPROACH (HF Spaces compatible):
1. CSS via st.markdown(unsafe_allow_html=True) — Streamlit renders
"""
# ── JS via st.html() — runs inside srcdoc iframe, reaches parent DOM ─────────
_PROTECTION_JS = """
"""
def inject_image_protection():
"""Inject CSS + JS image-protection layers into the page.
- CSS via st.markdown (always re-injected per rerun, as Streamlit requires).
- JS via st.html (rendered with