FACTORY_OUTCOME: COMPLETED

## Root Cause

The deployed page at `lit.iovon.com` served this stylesheet link:

```html
<link rel="stylesheet" href="http://lit.iovon.com/static/css/app.css">
```

The template used Starlette's `url_for('static', ...)`, which builds an **absolute** URL from the ASGI request scope. The production topology is Apache terminating TLS → `ProxyPass` to uvicorn on `127.0.0.1:8200`. Apache sets `X-Forwarded-Proto: https`, but the systemd unit (`/etc/systemd/system/lit-console.service`) starts uvicorn **without `--proxy-headers`**, so that header is ignored and the scope scheme stays `http`.

Result: an `http://` stylesheet on an `https://` page is **blocked by the browser as mixed content**. The CSS file itself was fine (a direct fetch of `/static/css/app.css` returns `200 text/css`) — it was simply never applied. That is why the review saw essentially unstyled HTML.

Note this was **not** a missing `StaticFiles` mount: the correct path is `app/static/` (derived from `__file__`), which matches the real working directory, so `uvicorn app.main:app` from the repo root serves assets correctly. The failure was purely the absolute, wrong-scheme URL.

## Fix

Emit a **root-relative** asset path (`/static/css/app.css`), which inherits the page's scheme and is immune to proxy headers and `root_path` configuration — no server config change required.

## Files Changed

| File | Change |
|---|---|
| `app/main.py` | Added `STATIC_URL_PATH`/`STYLESHEET_PATH` constants; added `static_url()` Jinja global returning root-relative paths; mount now uses the shared constant; added quiet `204` `/favicon.ico`. `GET /health`, `GET /`, and the app factory are otherwise unchanged. |
| `app/templates/base.html` | `url_for('static', …)` → `static_url('css/app.css')`; added skip link, `#main-content`, `color-scheme`. |
| `app/static/css/app.css` | Polished desktop layout (spacing/typography, equal-height workflow cards, focus rings, `overflow-x` guard); added real tablet (960px) and mobile (620px/380px) rules, including stacked label/value table cards via `data-label` so the table no longer requires sideways scrolling. |
| `app/templates/index.html` | Added `data-label` attributes derived from `entry_columns` (workflow/sample/dry-run content untouched). |
| `tests/test_static_assets.py` | **New** — 13 regression tests asserting the asset URL is root-relative and contains no scheme/host, is stable under `X-Forwarded-Proto`/`root_path`, actually resolves to served CSS, and that responsive breakpoints exist. |

## Test Result

```
113 passed, 1 warning in 0.50s      (full suite; baseline was 100 passed)
 32 passed  — UI + static asset tests
 81 passed  — health/config/dry-run/mapping/adapters/domain (backend preserved)
```

**Bug-catching verified:** reverting the template to `url_for` makes **6 of the new tests fail**, including `test_stylesheet_url_has_no_scheme_or_host[https]` — the exact production failure. Restoring the fix returns to 113 passed.

**Local end-to-end verified:** ran uvicorn with the production flags (no `--proxy-headers`) and sent `X-Forwarded-Proto: https` / `Host: lit.iovon.com`. The page emitted `href="/static/css/app.css"`, the CSS returned `200` with `12500` bytes, and the page contained **zero** `http://` references. `/health` still returns `{"status":"ok","service":"l-it-console","version":"0.1.0"}`.

## Deployment Action Still Required

No rollout was performed — production is untouched (`lit-console.service` remains `active` serving the old build). To ship this fix:

```bash
cd /home/iovon/ai-factory/workspaces/lit-console
git pull                # or check out the commit containing this fix
sudo systemctl restart lit-console
curl -s https://lit.iovon.com/ | grep -o '<link rel="stylesheet"[^>]*>'
# expect: <link rel="stylesheet" href="/static/css/app.css">
```

No Apache or systemd changes are needed. Separately, consider adding `--proxy-headers --forwarded-allow-ips=127.0.0.1` to the unit so any *future* absolute URLs are scheme-correct — but the delivered fix does not depend on it.