from pathlib import Path
_here = Path(__file__).parent
_ep = _here / "error-page.html"
if _ep.exists():
    AUTH_REQUIRED_HTML = _ep.read_text()
else:
    AUTH_REQUIRED_HTML = """<!DOCTYPE html><html><body style=font-family:sans-serif;display:flex;align-items:center;justify-content:center;height:100vh;margin:0;background:#0b0f19;color:#8b949e><div style=text-align:center><h1>Page not available</h1><p>Try again later.</p></div></body></html>"""

# Admin UI
_ui = _here / "admin-ui.html"
if _ui.exists():
    UI_HTML = _ui.read_text()
else:
    UI_HTML = """<!DOCTYPE html><html><head><meta charset="UTF-8"><title>Demo Manager</title></head><body style="background:#0d1117;color:#c9d1d9;font-family:sans-serif;padding:24px"><h1>Demo Manager</h1><p>Admin UI not loaded. Deploy with admin-ui.html.</p></body></html>"""
