"""Shared page shell for the ClientFlow admin UI.""" from __future__ import annotations from fastapi.responses import HTMLResponse from app.admin_ui.components import esc from app.admin_ui.navigation import nav from app.admin_ui.styles import ADMIN_UI_V451_CSS def layout(title: str, subtitle: str, body: str, active: str = "") -> HTMLResponse: html_doc = f""" {esc(title)} · ClientFlow
{nav(active)}

{esc(title)}

{esc(subtitle)}

{body}
""" return HTMLResponse(html_doc)