web: gated access, anchored viewers, mobile tabs and chat colour

- serve.mjs requires a signed session cookie for every page, artifact and the
  WebSocket, with a password file, 30-day sessions, login throttling and public
  brand assets for the sign-in page.
- The diff viewer is a fixed-height top-anchored panel whose toolbar (modes,
  copy, previous, next, close as icons) is its first row; the artifact viewer is
  likewise a fixed frame so its navigation never moves.
- The audit's selected tab uses the app's normal selected surface and bottom
  accent. Sessions that were not recorded say so plainly.
- Chat code blocks are syntax-coloured; graph pinch-zoom works with two fingers
  while a single pointer still pans and clicks nodes.
- Phones always keep the destination bar (pane collapse is wide-only), with the
  destinations spread evenly and Search on the right; the list default width is
  narrower; the theme colour matches the app.
- Code-format and layout tests, plus the full browser suite, pass.
This commit is contained in:
2026-10-20 02:21:51 +01:00
parent d7763ec466
commit ebf02c3bed
17 changed files with 558 additions and 42 deletions
+4 -2
View File
@@ -512,7 +512,7 @@
flex-direction: column;
gap: var(--space-s);
width: min(1100px, 100%);
max-height: 100%;
height: calc(100vh - 40px);
min-height: 0;
padding: 16px;
background: var(--surface);
@@ -616,11 +616,13 @@
cursor: pointer;
}
.audit-tab:hover { background: var(--tint-hover); color: var(--color-text); }
/* Match the app's other tab selection exactly: the panel surface and a bottom
accent, never the rail's tinted left bar. */
.audit-tab.active {
background: var(--color-bg);
color: var(--color-text);
font-weight: var(--weight-semibold);
box-shadow: inset 2px 0 0 var(--color-accent);
box-shadow: inset 0 -2px 0 var(--color-accent);
}
.audit-body { min-height: 0; overflow: auto; padding: 16px 18px; }
.audit-doc { max-width: var(--layout-measure); }