"""Entry-point PM2D — webapp HTML.
Esegui locale: uv run python main.py (default 127.0.0.1:8080)
Container: HOST=0.0.0.0 PORT=8080 python main.py
"""
import os
from pm2d.web.server import serve
if __name__ == "__main__":
host = os.environ.get("HOST", "127.0.0.1")
port = int(os.environ.get("PORT", "8080"))
serve(host=host, port=port)