"""Add the AC Beta controls to the existing stable fixed-height chat shell."""
from pathlib import Path
HERE=Path(__file__).parent
def enhance_frontend(page: str, *, is_admin: bool) -> str:
page=page.replace('', '\n',1) if False else page
css=(HERE/'beta_ui.css').read_text(encoding='utf-8')
js=(HERE/'beta_ui.js').read_text(encoding='utf-8')
page=page.replace('', '',1)
page=page.replace('